@linxiraos/pi-stats 1.5.15 → 1.5.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- var IE=Object.create;var{getPrototypeOf:RE,defineProperty:A1,getOwnPropertyNames:AE}=Object;var M1=Object.prototype.hasOwnProperty;function ME(r){return this[r]}var DE,EE,_=(r,l,i)=>{var d=r!=null&&typeof r==="object";if(d){var f=l?DE??=new WeakMap:EE??=new WeakMap,g=f.get(r);if(g)return g}i=r!=null?IE(RE(r)):{};let v=l||!r||!r.__esModule||!M1.call(r,"default")?A1(i,"default",{value:r,enumerable:!0}):i;if(r&&typeof r==="object"||typeof r==="function"){for(let h of AE(r))if(!M1.call(v,h))A1(v,h,{get:ME.bind(r,h),enumerable:!0})}if(d)f.set(r,v);return v};var Ti=(r,l)=>()=>(l||r((l={exports:{}}).exports,l),l.exports);var D1=Ti(function(Qu){(function(){function r(){if(W=!1,ee){var oe=Qu.unstable_now();Re=oe;var Se=!0;try{e:{z=!1,Y&&(Y=!1,Z(G),G=-1),O=!0;var Ee=R;try{t:{g(oe);for(I=i(L);I!==null&&!(I.expirationTime>oe&&h());){var Qe=I.callback;if(typeof Qe==="function"){I.callback=null,R=I.priorityLevel;var yt=Qe(I.expirationTime<=oe);if(oe=Qu.unstable_now(),typeof yt==="function"){I.callback=yt,g(oe),Se=!0;break t}I===i(L)&&d(L),g(oe)}else d(L);I=i(L)}if(I!==null)Se=!0;else{var Q=i(T);Q!==null&&m(v,Q.startTime-oe),Se=!1}}break e}finally{I=null,R=Ee,O=!1}Se=void 0}}finally{Se?pe():ee=!1}}}function l(oe,Se){var Ee=oe.length;oe.push(Se);e:for(;0<Ee;){var Qe=Ee-1>>>1,yt=oe[Qe];if(0<f(yt,Se))oe[Qe]=Se,oe[Ee]=yt,Ee=Qe;else break e}}function i(oe){return oe.length===0?null:oe[0]}function d(oe){if(oe.length===0)return null;var Se=oe[0],Ee=oe.pop();if(Ee!==Se){oe[0]=Ee;e:for(var Qe=0,yt=oe.length,Q=yt>>>1;Qe<Q;){var Fe=2*(Qe+1)-1,It=oe[Fe],St=Fe+1,ge=oe[St];if(0>f(It,Ee))St<yt&&0>f(ge,It)?(oe[Qe]=ge,oe[St]=Ee,Qe=St):(oe[Qe]=It,oe[Fe]=Ee,Qe=Fe);else if(St<yt&&0>f(ge,Ee))oe[Qe]=ge,oe[St]=Ee,Qe=St;else break e}}return Se}function f(oe,Se){var Ee=oe.sortIndex-Se.sortIndex;return Ee!==0?Ee:oe.id-Se.id}function g(oe){for(var Se=i(T);Se!==null;){if(Se.callback===null)d(T);else if(Se.startTime<=oe)d(T),Se.sortIndex=Se.expirationTime,l(L,Se);else break;Se=i(T)}}function v(oe){if(Y=!1,g(oe),!z)if(i(L)!==null)z=!0,ee||(ee=!0,pe());else{var Se=i(T);Se!==null&&m(v,Se.startTime-oe)}}function h(){return W?!0:Qu.unstable_now()-Re<V?!1:!0}function m(oe,Se){G=ue(function(){oe(Qu.unstable_now())},Se)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),Qu.unstable_now=void 0,typeof performance==="object"&&typeof performance.now==="function"){var S=performance;Qu.unstable_now=function(){return S.now()}}else{var y=Date,b=y.now();Qu.unstable_now=function(){return y.now()-b}}var L=[],T=[],C=1,I=null,R=3,O=!1,z=!1,Y=!1,W=!1,ue=typeof setTimeout==="function"?setTimeout:null,Z=typeof clearTimeout==="function"?clearTimeout:null,ce=typeof setImmediate<"u"?setImmediate:null,ee=!1,G=-1,V=5,Re=-1;if(typeof ce==="function")var pe=function(){ce(r)};else if(typeof MessageChannel<"u"){var Ne=new MessageChannel,Te=Ne.port2;Ne.port1.onmessage=r,pe=function(){Te.postMessage(null)}}else pe=function(){ue(r,0)};Qu.unstable_IdlePriority=5,Qu.unstable_ImmediatePriority=1,Qu.unstable_LowPriority=4,Qu.unstable_NormalPriority=3,Qu.unstable_Profiling=null,Qu.unstable_UserBlockingPriority=2,Qu.unstable_cancelCallback=function(oe){oe.callback=null},Qu.unstable_forceFrameRate=function(oe){0>oe||125<oe?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):V=0<oe?Math.floor(1000/oe):5},Qu.unstable_getCurrentPriorityLevel=function(){return R},Qu.unstable_next=function(oe){switch(R){case 1:case 2:case 3:var Se=3;break;default:Se=R}var Ee=R;R=Se;try{return oe()}finally{R=Ee}},Qu.unstable_requestPaint=function(){W=!0},Qu.unstable_runWithPriority=function(oe,Se){switch(oe){case 1:case 2:case 3:case 4:case 5:break;default:oe=3}var Ee=R;R=oe;try{return Se()}finally{R=Ee}},Qu.unstable_scheduleCallback=function(oe,Se,Ee){var Qe=Qu.unstable_now();switch(typeof Ee==="object"&&Ee!==null?(Ee=Ee.delay,Ee=typeof Ee==="number"&&0<Ee?Qe+Ee:Qe):Ee=Qe,oe){case 1:var yt=-1;break;case 2:yt=250;break;case 5:yt=1073741823;break;case 4:yt=1e4;break;default:yt=5000}return yt=Ee+yt,oe={id:C++,callback:Se,priorityLevel:oe,startTime:Ee,expirationTime:yt,sortIndex:-1},Ee>Qe?(oe.sortIndex=Ee,l(T,oe),i(L)===null&&oe===i(T)&&(Y?(Z(G),G=-1):Y=!0,m(v,Ee-Qe))):(oe.sortIndex=yt,l(L,oe),z||O||(z=!0,ee||(ee=!0,pe()))),oe},Qu.unstable_shouldYield=h,Qu.unstable_wrapCallback=function(oe){var Se=R;return function(){var Ee=R;R=Se;try{return oe.apply(this,arguments)}finally{R=Ee}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var Ke=Ti(function(NE,Sh){(function(){function r(w,U){Object.defineProperty(d.prototype,w,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",U[0],U[1])}})}function l(w){if(w===null||typeof w!=="object")return null;return w=We&&w[We]||w["@@iterator"],typeof w==="function"?w:null}function i(w,U){w=(w=w.constructor)&&(w.displayName||w.name)||"ReactClass";var le=w+"."+U;H[le]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",U,w),H[le]=!0)}function d(w,U,le){this.props=w,this.context=U,this.refs=it,this.updater=le||we}function f(){}function g(w,U,le){this.props=w,this.context=U,this.refs=it,this.updater=le||we}function v(){}function h(w){return""+w}function m(w){try{h(w);var U=!1}catch(Ae){U=!0}if(U){U=console;var le=U.error,ye=typeof Symbol==="function"&&Symbol.toStringTag&&w[Symbol.toStringTag]||w.constructor.name||"Object";return le.call(U,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",ye),h(w)}}function S(w){if(w==null)return null;if(typeof w==="function")return w.$$typeof===Qt?null:w.displayName||w.name||null;if(typeof w==="string")return w;switch(w){case yt:return"Fragment";case Fe:return"Profiler";case Q:return"StrictMode";case Ye:return"Suspense";case He:return"SuspenseList";case j:return"Activity"}if(typeof w==="object")switch(typeof w.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),w.$$typeof){case Qe:return"Portal";case St:return w.displayName||"Context";case It:return(w._context.displayName||"Context")+".Consumer";case ge:var U=w.render;return w=w.displayName,w||(w=U.displayName||U.name||"",w=w!==""?"ForwardRef("+w+")":"ForwardRef"),w;case ua:return U=w.displayName||null,U!==null?U:S(w.type)||"Memo";case da:U=w._payload,w=w._init;try{return S(w(U))}catch(le){}}return null}function y(w){if(w===yt)return"<>";if(typeof w==="object"&&w!==null&&w.$$typeof===da)return"<...>";try{var U=S(w);return U?"<"+U+">":"<...>"}catch(le){return"<...>"}}function b(){var w=qe.A;return w===null?null:w.getOwner()}function L(){return Error("react-stack-top-frame")}function T(w){if(Ea.call(w,"key")){var U=Object.getOwnPropertyDescriptor(w,"key").get;if(U&&U.isReactWarning)return!1}return w.key!==void 0}function C(w,U){function le(){$i||($i=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",U))}le.isReactWarning=!0,Object.defineProperty(w,"key",{get:le,configurable:!0})}function I(){var w=S(this.type);return ga[w]||(ga[w]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),w=this.props.ref,w!==void 0?w:null}function R(w,U,le,ye,Ae,rt){var nt=le.ref;return w={$$typeof:Ee,type:w,key:U,props:le,_owner:ye},(nt!==void 0?nt:null)!==null?Object.defineProperty(w,"ref",{enumerable:!1,get:I}):Object.defineProperty(w,"ref",{enumerable:!1,value:null}),w._store={},Object.defineProperty(w._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(w,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(w,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Ae}),Object.defineProperty(w,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:rt}),Object.freeze&&(Object.freeze(w.props),Object.freeze(w)),w}function O(w,U){return U=R(w.type,U,w.props,w._owner,w._debugStack,w._debugTask),w._store&&(U._store.validated=w._store.validated),U}function z(w){Y(w)?w._store&&(w._store.validated=1):typeof w==="object"&&w!==null&&w.$$typeof===da&&(w._payload.status==="fulfilled"?Y(w._payload.value)&&w._payload.value._store&&(w._payload.value._store.validated=1):w._store&&(w._store.validated=1))}function Y(w){return typeof w==="object"&&w!==null&&w.$$typeof===Ee}function W(w){var U={"=":"=0",":":"=2"};return"$"+w.replace(/[=:]/g,function(le){return U[le]})}function ue(w,U){return typeof w==="object"&&w!==null&&w.key!=null?(m(w.key),W(""+w.key)):U.toString(36)}function Z(w){switch(w.status){case"fulfilled":return w.value;case"rejected":throw w.reason;default:switch(typeof w.status==="string"?w.then(v,v):(w.status="pending",w.then(function(U){w.status==="pending"&&(w.status="fulfilled",w.value=U)},function(U){w.status==="pending"&&(w.status="rejected",w.reason=U)})),w.status){case"fulfilled":return w.value;case"rejected":throw w.reason}}throw w}function ce(w,U,le,ye,Ae){var rt=typeof w;if(rt==="undefined"||rt==="boolean")w=null;var nt=!1;if(w===null)nt=!0;else switch(rt){case"bigint":case"string":case"number":nt=!0;break;case"object":switch(w.$$typeof){case Ee:case Qe:nt=!0;break;case da:return nt=w._init,ce(nt(w._payload),U,le,ye,Ae)}}if(nt){nt=w,Ae=Ae(nt);var _t=ye===""?"."+ue(nt,0):ye;return ke(Ae)?(le="",_t!=null&&(le=_t.replace(Yi,"$&/")+"/"),ce(Ae,U,le,"",function(wo){return wo})):Ae!=null&&(Y(Ae)&&(Ae.key!=null&&(nt&&nt.key===Ae.key||m(Ae.key)),le=O(Ae,le+(Ae.key==null||nt&&nt.key===Ae.key?"":(""+Ae.key).replace(Yi,"$&/")+"/")+_t),ye!==""&&nt!=null&&Y(nt)&&nt.key==null&&nt._store&&!nt._store.validated&&(le._store.validated=2),Ae=le),U.push(Ae)),1}if(nt=0,_t=ye===""?".":ye+":",ke(w))for(var Pe=0;Pe<w.length;Pe++)ye=w[Pe],rt=_t+ue(ye,Pe),nt+=ce(ye,U,le,rt,Ae);else if(Pe=l(w),typeof Pe==="function")for(Pe===w.entries&&(Xi||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Xi=!0),w=Pe.call(w),Pe=0;!(ye=w.next()).done;)ye=ye.value,rt=_t+ue(ye,Pe++),nt+=ce(ye,U,le,rt,Ae);else if(rt==="object"){if(typeof w.then==="function")return ce(Z(w),U,le,ye,Ae);throw U=String(w),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(w).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.")}return nt}function ee(w,U,le){if(w==null)return w;var ye=[],Ae=0;return ce(w,ye,"","",function(rt){return U.call(le,rt,Ae++)}),ye}function G(w){if(w._status===-1){var U=w._ioInfo;U!=null&&(U.start=U.end=performance.now()),U=w._result;var le=U();if(le.then(function(Ae){if(w._status===0||w._status===-1){w._status=1,w._result=Ae;var rt=w._ioInfo;rt!=null&&(rt.end=performance.now()),le.status===void 0&&(le.status="fulfilled",le.value=Ae)}},function(Ae){if(w._status===0||w._status===-1){w._status=2,w._result=Ae;var rt=w._ioInfo;rt!=null&&(rt.end=performance.now()),le.status===void 0&&(le.status="rejected",le.reason=Ae)}}),U=w._ioInfo,U!=null){U.value=le;var ye=le.displayName;typeof ye==="string"&&(U.name=ye)}w._status===-1&&(w._status=0,w._result=le)}if(w._status===1)return U=w._result,U===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
1
+ var IE=Object.create;var{getPrototypeOf:RE,defineProperty:A1,getOwnPropertyNames:AE}=Object;var M1=Object.prototype.hasOwnProperty;function ME(r){return this[r]}var DE,EE,_=(r,l,i)=>{var d=r!=null&&typeof r==="object";if(d){var f=l?DE??=new WeakMap:EE??=new WeakMap,g=f.get(r);if(g)return g}i=r!=null?IE(RE(r)):{};let v=l||!r||!r.__esModule||!M1.call(r,"default")?A1(i,"default",{value:r,enumerable:!0}):i;if(r&&typeof r==="object"||typeof r==="function"){for(let h of AE(r))if(!M1.call(v,h))A1(v,h,{get:ME.bind(r,h),enumerable:!0})}if(d)f.set(r,v);return v};var Ti=(r,l)=>()=>(l||r((l={exports:{}}).exports,l),l.exports);var D1=Ti(function(Qu){(function(){function r(){if(W=!1,ee){var oe=Qu.unstable_now();Re=oe;var Se=!0;try{e:{P=!1,Y&&(Y=!1,Z(G),G=-1),O=!0;var Ee=R;try{t:{g(oe);for(I=i(L);I!==null&&!(I.expirationTime>oe&&h());){var Qe=I.callback;if(typeof Qe==="function"){I.callback=null,R=I.priorityLevel;var yt=Qe(I.expirationTime<=oe);if(oe=Qu.unstable_now(),typeof yt==="function"){I.callback=yt,g(oe),Se=!0;break t}I===i(L)&&d(L),g(oe)}else d(L);I=i(L)}if(I!==null)Se=!0;else{var Q=i(T);Q!==null&&m(v,Q.startTime-oe),Se=!1}}break e}finally{I=null,R=Ee,O=!1}Se=void 0}}finally{Se?pe():ee=!1}}}function l(oe,Se){var Ee=oe.length;oe.push(Se);e:for(;0<Ee;){var Qe=Ee-1>>>1,yt=oe[Qe];if(0<f(yt,Se))oe[Qe]=Se,oe[Ee]=yt,Ee=Qe;else break e}}function i(oe){return oe.length===0?null:oe[0]}function d(oe){if(oe.length===0)return null;var Se=oe[0],Ee=oe.pop();if(Ee!==Se){oe[0]=Ee;e:for(var Qe=0,yt=oe.length,Q=yt>>>1;Qe<Q;){var Fe=2*(Qe+1)-1,It=oe[Fe],St=Fe+1,ge=oe[St];if(0>f(It,Ee))St<yt&&0>f(ge,It)?(oe[Qe]=ge,oe[St]=Ee,Qe=St):(oe[Qe]=It,oe[Fe]=Ee,Qe=Fe);else if(St<yt&&0>f(ge,Ee))oe[Qe]=ge,oe[St]=Ee,Qe=St;else break e}}return Se}function f(oe,Se){var Ee=oe.sortIndex-Se.sortIndex;return Ee!==0?Ee:oe.id-Se.id}function g(oe){for(var Se=i(T);Se!==null;){if(Se.callback===null)d(T);else if(Se.startTime<=oe)d(T),Se.sortIndex=Se.expirationTime,l(L,Se);else break;Se=i(T)}}function v(oe){if(Y=!1,g(oe),!P)if(i(L)!==null)P=!0,ee||(ee=!0,pe());else{var Se=i(T);Se!==null&&m(v,Se.startTime-oe)}}function h(){return W?!0:Qu.unstable_now()-Re<V?!1:!0}function m(oe,Se){G=ue(function(){oe(Qu.unstable_now())},Se)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),Qu.unstable_now=void 0,typeof performance==="object"&&typeof performance.now==="function"){var S=performance;Qu.unstable_now=function(){return S.now()}}else{var y=Date,b=y.now();Qu.unstable_now=function(){return y.now()-b}}var L=[],T=[],C=1,I=null,R=3,O=!1,P=!1,Y=!1,W=!1,ue=typeof setTimeout==="function"?setTimeout:null,Z=typeof clearTimeout==="function"?clearTimeout:null,ce=typeof setImmediate<"u"?setImmediate:null,ee=!1,G=-1,V=5,Re=-1;if(typeof ce==="function")var pe=function(){ce(r)};else if(typeof MessageChannel<"u"){var Ne=new MessageChannel,Te=Ne.port2;Ne.port1.onmessage=r,pe=function(){Te.postMessage(null)}}else pe=function(){ue(r,0)};Qu.unstable_IdlePriority=5,Qu.unstable_ImmediatePriority=1,Qu.unstable_LowPriority=4,Qu.unstable_NormalPriority=3,Qu.unstable_Profiling=null,Qu.unstable_UserBlockingPriority=2,Qu.unstable_cancelCallback=function(oe){oe.callback=null},Qu.unstable_forceFrameRate=function(oe){0>oe||125<oe?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):V=0<oe?Math.floor(1000/oe):5},Qu.unstable_getCurrentPriorityLevel=function(){return R},Qu.unstable_next=function(oe){switch(R){case 1:case 2:case 3:var Se=3;break;default:Se=R}var Ee=R;R=Se;try{return oe()}finally{R=Ee}},Qu.unstable_requestPaint=function(){W=!0},Qu.unstable_runWithPriority=function(oe,Se){switch(oe){case 1:case 2:case 3:case 4:case 5:break;default:oe=3}var Ee=R;R=oe;try{return Se()}finally{R=Ee}},Qu.unstable_scheduleCallback=function(oe,Se,Ee){var Qe=Qu.unstable_now();switch(typeof Ee==="object"&&Ee!==null?(Ee=Ee.delay,Ee=typeof Ee==="number"&&0<Ee?Qe+Ee:Qe):Ee=Qe,oe){case 1:var yt=-1;break;case 2:yt=250;break;case 5:yt=1073741823;break;case 4:yt=1e4;break;default:yt=5000}return yt=Ee+yt,oe={id:C++,callback:Se,priorityLevel:oe,startTime:Ee,expirationTime:yt,sortIndex:-1},Ee>Qe?(oe.sortIndex=Ee,l(T,oe),i(L)===null&&oe===i(T)&&(Y?(Z(G),G=-1):Y=!0,m(v,Ee-Qe))):(oe.sortIndex=yt,l(L,oe),P||O||(P=!0,ee||(ee=!0,pe()))),oe},Qu.unstable_shouldYield=h,Qu.unstable_wrapCallback=function(oe){var Se=R;return function(){var Ee=R;R=Se;try{return oe.apply(this,arguments)}finally{R=Ee}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var Ke=Ti(function(NE,Sh){(function(){function r(w,U){Object.defineProperty(d.prototype,w,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",U[0],U[1])}})}function l(w){if(w===null||typeof w!=="object")return null;return w=We&&w[We]||w["@@iterator"],typeof w==="function"?w:null}function i(w,U){w=(w=w.constructor)&&(w.displayName||w.name)||"ReactClass";var le=w+"."+U;H[le]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",U,w),H[le]=!0)}function d(w,U,le){this.props=w,this.context=U,this.refs=it,this.updater=le||we}function f(){}function g(w,U,le){this.props=w,this.context=U,this.refs=it,this.updater=le||we}function v(){}function h(w){return""+w}function m(w){try{h(w);var U=!1}catch(Ae){U=!0}if(U){U=console;var le=U.error,ye=typeof Symbol==="function"&&Symbol.toStringTag&&w[Symbol.toStringTag]||w.constructor.name||"Object";return le.call(U,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",ye),h(w)}}function S(w){if(w==null)return null;if(typeof w==="function")return w.$$typeof===Qt?null:w.displayName||w.name||null;if(typeof w==="string")return w;switch(w){case yt:return"Fragment";case Fe:return"Profiler";case Q:return"StrictMode";case Ye:return"Suspense";case He:return"SuspenseList";case j:return"Activity"}if(typeof w==="object")switch(typeof w.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),w.$$typeof){case Qe:return"Portal";case St:return w.displayName||"Context";case It:return(w._context.displayName||"Context")+".Consumer";case ge:var U=w.render;return w=w.displayName,w||(w=U.displayName||U.name||"",w=w!==""?"ForwardRef("+w+")":"ForwardRef"),w;case ua:return U=w.displayName||null,U!==null?U:S(w.type)||"Memo";case da:U=w._payload,w=w._init;try{return S(w(U))}catch(le){}}return null}function y(w){if(w===yt)return"<>";if(typeof w==="object"&&w!==null&&w.$$typeof===da)return"<...>";try{var U=S(w);return U?"<"+U+">":"<...>"}catch(le){return"<...>"}}function b(){var w=qe.A;return w===null?null:w.getOwner()}function L(){return Error("react-stack-top-frame")}function T(w){if(Ea.call(w,"key")){var U=Object.getOwnPropertyDescriptor(w,"key").get;if(U&&U.isReactWarning)return!1}return w.key!==void 0}function C(w,U){function le(){$i||($i=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",U))}le.isReactWarning=!0,Object.defineProperty(w,"key",{get:le,configurable:!0})}function I(){var w=S(this.type);return ga[w]||(ga[w]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),w=this.props.ref,w!==void 0?w:null}function R(w,U,le,ye,Ae,rt){var nt=le.ref;return w={$$typeof:Ee,type:w,key:U,props:le,_owner:ye},(nt!==void 0?nt:null)!==null?Object.defineProperty(w,"ref",{enumerable:!1,get:I}):Object.defineProperty(w,"ref",{enumerable:!1,value:null}),w._store={},Object.defineProperty(w._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(w,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(w,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Ae}),Object.defineProperty(w,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:rt}),Object.freeze&&(Object.freeze(w.props),Object.freeze(w)),w}function O(w,U){return U=R(w.type,U,w.props,w._owner,w._debugStack,w._debugTask),w._store&&(U._store.validated=w._store.validated),U}function P(w){Y(w)?w._store&&(w._store.validated=1):typeof w==="object"&&w!==null&&w.$$typeof===da&&(w._payload.status==="fulfilled"?Y(w._payload.value)&&w._payload.value._store&&(w._payload.value._store.validated=1):w._store&&(w._store.validated=1))}function Y(w){return typeof w==="object"&&w!==null&&w.$$typeof===Ee}function W(w){var U={"=":"=0",":":"=2"};return"$"+w.replace(/[=:]/g,function(le){return U[le]})}function ue(w,U){return typeof w==="object"&&w!==null&&w.key!=null?(m(w.key),W(""+w.key)):U.toString(36)}function Z(w){switch(w.status){case"fulfilled":return w.value;case"rejected":throw w.reason;default:switch(typeof w.status==="string"?w.then(v,v):(w.status="pending",w.then(function(U){w.status==="pending"&&(w.status="fulfilled",w.value=U)},function(U){w.status==="pending"&&(w.status="rejected",w.reason=U)})),w.status){case"fulfilled":return w.value;case"rejected":throw w.reason}}throw w}function ce(w,U,le,ye,Ae){var rt=typeof w;if(rt==="undefined"||rt==="boolean")w=null;var nt=!1;if(w===null)nt=!0;else switch(rt){case"bigint":case"string":case"number":nt=!0;break;case"object":switch(w.$$typeof){case Ee:case Qe:nt=!0;break;case da:return nt=w._init,ce(nt(w._payload),U,le,ye,Ae)}}if(nt){nt=w,Ae=Ae(nt);var _t=ye===""?"."+ue(nt,0):ye;return ke(Ae)?(le="",_t!=null&&(le=_t.replace(Yi,"$&/")+"/"),ce(Ae,U,le,"",function(wo){return wo})):Ae!=null&&(Y(Ae)&&(Ae.key!=null&&(nt&&nt.key===Ae.key||m(Ae.key)),le=O(Ae,le+(Ae.key==null||nt&&nt.key===Ae.key?"":(""+Ae.key).replace(Yi,"$&/")+"/")+_t),ye!==""&&nt!=null&&Y(nt)&&nt.key==null&&nt._store&&!nt._store.validated&&(le._store.validated=2),Ae=le),U.push(Ae)),1}if(nt=0,_t=ye===""?".":ye+":",ke(w))for(var ze=0;ze<w.length;ze++)ye=w[ze],rt=_t+ue(ye,ze),nt+=ce(ye,U,le,rt,Ae);else if(ze=l(w),typeof ze==="function")for(ze===w.entries&&(Xi||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Xi=!0),w=ze.call(w),ze=0;!(ye=w.next()).done;)ye=ye.value,rt=_t+ue(ye,ze++),nt+=ce(ye,U,le,rt,Ae);else if(rt==="object"){if(typeof w.then==="function")return ce(Z(w),U,le,ye,Ae);throw U=String(w),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(w).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.")}return nt}function ee(w,U,le){if(w==null)return w;var ye=[],Ae=0;return ce(w,ye,"","",function(rt){return U.call(le,rt,Ae++)}),ye}function G(w){if(w._status===-1){var U=w._ioInfo;U!=null&&(U.start=U.end=performance.now()),U=w._result;var le=U();if(le.then(function(Ae){if(w._status===0||w._status===-1){w._status=1,w._result=Ae;var rt=w._ioInfo;rt!=null&&(rt.end=performance.now()),le.status===void 0&&(le.status="fulfilled",le.value=Ae)}},function(Ae){if(w._status===0||w._status===-1){w._status=2,w._result=Ae;var rt=w._ioInfo;rt!=null&&(rt.end=performance.now()),le.status===void 0&&(le.status="rejected",le.reason=Ae)}}),U=w._ioInfo,U!=null){U.value=le;var ye=le.displayName;typeof ye==="string"&&(U.name=ye)}w._status===-1&&(w._status=0,w._result=le)}if(w._status===1)return U=w._result,U===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
2
2
 
3
3
  Your code should look like:
4
4
  const MyComponent = lazy(() => import('./MyComponent'))
@@ -10,11 +10,11 @@ Your code should look like:
10
10
  1. You might have mismatching versions of React and the renderer (such as React DOM)
11
11
  2. You might be breaking the Rules of Hooks
12
12
  3. You might have more than one copy of React in the same app
13
- See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),w}function Re(){qe.asyncTransitions--}function pe(w){if(Pl===null)try{var U=("require"+Math.random()).slice(0,7);Pl=(Sh&&Sh[U]).call(Sh,"timers").setImmediate}catch(le){Pl=function(ye){sp===!1&&(sp=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var Ae=new MessageChannel;Ae.port1.onmessage=ye,Ae.port2.postMessage(void 0)}}return Pl(w)}function Ne(w){return 1<w.length&&typeof AggregateError==="function"?AggregateError(w):w[0]}function Te(w,U){U!==Ul-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),Ul=U}function oe(w,U,le){var ye=qe.actQueue;if(ye!==null)if(ye.length!==0)try{Se(ye),pe(function(){return oe(w,U,le)});return}catch(Ae){qe.thrownErrors.push(Ae)}else qe.actQueue=null;0<qe.thrownErrors.length?(ye=Ne(qe.thrownErrors),qe.thrownErrors.length=0,le(ye)):U(w)}function Se(w){if(!Hl){Hl=!0;var U=0;try{for(;U<w.length;U++){var le=w[U];do{qe.didUsePromise=!1;var ye=le(!1);if(ye!==null){if(qe.didUsePromise){w[U]=le,w.splice(0,U);return}le=ye}else break}while(1)}w.length=0}catch(Ae){w.splice(0,U+1),qe.thrownErrors.push(Ae)}finally{Hl=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var Ee=Symbol.for("react.transitional.element"),Qe=Symbol.for("react.portal"),yt=Symbol.for("react.fragment"),Q=Symbol.for("react.strict_mode"),Fe=Symbol.for("react.profiler"),It=Symbol.for("react.consumer"),St=Symbol.for("react.context"),ge=Symbol.for("react.forward_ref"),Ye=Symbol.for("react.suspense"),He=Symbol.for("react.suspense_list"),ua=Symbol.for("react.memo"),da=Symbol.for("react.lazy"),j=Symbol.for("react.activity"),We=Symbol.iterator,H={},we={isMounted:function(){return!1},enqueueForceUpdate:function(w){i(w,"forceUpdate")},enqueueReplaceState:function(w){i(w,"replaceState")},enqueueSetState:function(w){i(w,"setState")}},he=Object.assign,it={};Object.freeze(it),d.prototype.isReactComponent={},d.prototype.setState=function(w,U){if(typeof w!=="object"&&typeof w!=="function"&&w!=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,w,U,"setState")},d.prototype.forceUpdate=function(w){this.updater.enqueueForceUpdate(this,w,"forceUpdate")};var ze={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]};for(Bs in ze)ze.hasOwnProperty(Bs)&&r(Bs,ze[Bs]);f.prototype=d.prototype,ze=g.prototype=new f,ze.constructor=g,he(ze,d.prototype),ze.isPureReactComponent=!0;var ke=Array.isArray,Qt=Symbol.for("react.client.reference"),qe={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},Ea=Object.prototype.hasOwnProperty,Wt=console.createTask?console.createTask:function(){return null};ze={react_stack_bottom_frame:function(w){return w()}};var $i,Bt,ga={},ho=ze.react_stack_bottom_frame.bind(ze,L)(),zl=Wt(y(L)),Xi=!1,Yi=/\/+/g,Os=typeof reportError==="function"?reportError:function(w){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var U=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof w==="object"&&w!==null&&typeof w.message==="string"?String(w.message):String(w),error:w});if(!window.dispatchEvent(U))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",w);return}console.error(w)},sp=!1,Pl=null,Ul=0,_l=!1,Hl=!1,Sd=typeof queueMicrotask==="function"?function(w){queueMicrotask(function(){return queueMicrotask(w)})}:pe;ze=Object.freeze({__proto__:null,c:function(w){return V().useMemoCache(w)}});var Bs={map:ee,forEach:function(w,U,le){ee(w,function(){U.apply(this,arguments)},le)},count:function(w){var U=0;return ee(w,function(){U++}),U},toArray:function(w){return ee(w,function(U){return U})||[]},only:function(w){if(!Y(w))throw Error("React.Children.only expected to receive a single React element child.");return w}};NE.Activity=j,NE.Children=Bs,NE.Component=d,NE.Fragment=yt,NE.Profiler=Fe,NE.PureComponent=g,NE.StrictMode=Q,NE.Suspense=Ye,NE.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=qe,NE.__COMPILER_RUNTIME=ze,NE.act=function(w){var U=qe.actQueue,le=Ul;Ul++;var ye=qe.actQueue=U!==null?U:[],Ae=!1;try{var rt=w()}catch(Pe){qe.thrownErrors.push(Pe)}if(0<qe.thrownErrors.length)throw Te(U,le),w=Ne(qe.thrownErrors),qe.thrownErrors.length=0,w;if(rt!==null&&typeof rt==="object"&&typeof rt.then==="function"){var nt=rt;return Sd(function(){Ae||_l||(_l=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(Pe,wo){Ae=!0,nt.then(function(Zo){if(Te(U,le),le===0){try{Se(ye),pe(function(){return oe(Zo,Pe,wo)})}catch(kd){qe.thrownErrors.push(kd)}if(0<qe.thrownErrors.length){var zs=Ne(qe.thrownErrors);qe.thrownErrors.length=0,wo(zs)}}else Pe(Zo)},function(Zo){Te(U,le),0<qe.thrownErrors.length?(Zo=Ne(qe.thrownErrors),qe.thrownErrors.length=0,wo(Zo)):wo(Zo)})}}}var _t=rt;if(Te(U,le),le===0&&(Se(ye),ye.length!==0&&Sd(function(){Ae||_l||(_l=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),qe.actQueue=null),0<qe.thrownErrors.length)throw w=Ne(qe.thrownErrors),qe.thrownErrors.length=0,w;return{then:function(Pe,wo){Ae=!0,le===0?(qe.actQueue=ye,pe(function(){return oe(_t,Pe,wo)})):Pe(_t)}}},NE.cache=function(w){return function(){return w.apply(null,arguments)}},NE.cacheSignal=function(){return null},NE.captureOwnerStack=function(){var w=qe.getCurrentStack;return w===null?null:w()},NE.cloneElement=function(w,U,le){if(w===null||w===void 0)throw Error("The argument must be a React element, but you passed "+w+".");var ye=he({},w.props),{key:Ae,_owner:rt}=w;if(U!=null){var nt;e:{if(Ea.call(U,"ref")&&(nt=Object.getOwnPropertyDescriptor(U,"ref").get)&&nt.isReactWarning){nt=!1;break e}nt=U.ref!==void 0}nt&&(rt=b()),T(U)&&(m(U.key),Ae=""+U.key);for(_t in U)!Ea.call(U,_t)||_t==="key"||_t==="__self"||_t==="__source"||_t==="ref"&&U.ref===void 0||(ye[_t]=U[_t])}var _t=arguments.length-2;if(_t===1)ye.children=le;else if(1<_t){nt=Array(_t);for(var Pe=0;Pe<_t;Pe++)nt[Pe]=arguments[Pe+2];ye.children=nt}ye=R(w.type,Ae,ye,rt,w._debugStack,w._debugTask);for(Ae=2;Ae<arguments.length;Ae++)z(arguments[Ae]);return ye},NE.createContext=function(w){return w={$$typeof:St,_currentValue:w,_currentValue2:w,_threadCount:0,Provider:null,Consumer:null},w.Provider=w,w.Consumer={$$typeof:It,_context:w},w._currentRenderer=null,w._currentRenderer2=null,w},NE.createElement=function(w,U,le){for(var ye=2;ye<arguments.length;ye++)z(arguments[ye]);ye={};var Ae=null;if(U!=null)for(Pe in Bt||!("__self"in U)||"key"in U||(Bt=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),T(U)&&(m(U.key),Ae=""+U.key),U)Ea.call(U,Pe)&&Pe!=="key"&&Pe!=="__self"&&Pe!=="__source"&&(ye[Pe]=U[Pe]);var rt=arguments.length-2;if(rt===1)ye.children=le;else if(1<rt){for(var nt=Array(rt),_t=0;_t<rt;_t++)nt[_t]=arguments[_t+2];Object.freeze&&Object.freeze(nt),ye.children=nt}if(w&&w.defaultProps)for(Pe in rt=w.defaultProps,rt)ye[Pe]===void 0&&(ye[Pe]=rt[Pe]);Ae&&C(ye,typeof w==="function"?w.displayName||w.name||"Unknown":w);var Pe=1e4>qe.recentlyCreatedOwnerStacks++;return R(w,Ae,ye,b(),Pe?Error("react-stack-top-frame"):ho,Pe?Wt(y(w)):zl)},NE.createRef=function(){var w={current:null};return Object.seal(w),w},NE.forwardRef=function(w){w!=null&&w.$$typeof===ua?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof w!=="function"?console.error("forwardRef requires a render function but was given %s.",w===null?"null":typeof w):w.length!==0&&w.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",w.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),w!=null&&w.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var U={$$typeof:ge,render:w},le;return Object.defineProperty(U,"displayName",{enumerable:!1,configurable:!0,get:function(){return le},set:function(ye){le=ye,w.name||w.displayName||(Object.defineProperty(w,"name",{value:ye}),w.displayName=ye)}}),U},NE.isValidElement=Y,NE.lazy=function(w){w={_status:-1,_result:w};var U={$$typeof:da,_payload:w,_init:G},le={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return w._ioInfo=le,U._debugInfo=[{awaited:le}],U},NE.memo=function(w,U){w==null&&console.error("memo: The first argument must be a component. Instead received: %s",w===null?"null":typeof w),U={$$typeof:ua,type:w,compare:U===void 0?null:U};var le;return Object.defineProperty(U,"displayName",{enumerable:!1,configurable:!0,get:function(){return le},set:function(ye){le=ye,w.name||w.displayName||(Object.defineProperty(w,"name",{value:ye}),w.displayName=ye)}}),U},NE.startTransition=function(w){var U=qe.T,le={};le._updatedFibers=new Set,qe.T=le;try{var ye=w(),Ae=qe.S;Ae!==null&&Ae(le,ye),typeof ye==="object"&&ye!==null&&typeof ye.then==="function"&&(qe.asyncTransitions++,ye.then(Re,Re),ye.then(v,Os))}catch(rt){Os(rt)}finally{U===null&&le._updatedFibers&&(w=le._updatedFibers.size,le._updatedFibers.clear(),10<w&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),U!==null&&le.types!==null&&(U.types!==null&&U.types!==le.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),U.types=le.types),qe.T=U}},NE.unstable_useCacheRefresh=function(){return V().useCacheRefresh()},NE.use=function(w){return V().use(w)},NE.useActionState=function(w,U,le){return V().useActionState(w,U,le)},NE.useCallback=function(w,U){return V().useCallback(w,U)},NE.useContext=function(w){var U=V();return w.$$typeof===It&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),U.useContext(w)},NE.useDebugValue=function(w,U){return V().useDebugValue(w,U)},NE.useDeferredValue=function(w,U){return V().useDeferredValue(w,U)},NE.useEffect=function(w,U){return w==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),V().useEffect(w,U)},NE.useEffectEvent=function(w){return V().useEffectEvent(w)},NE.useId=function(){return V().useId()},NE.useImperativeHandle=function(w,U,le){return V().useImperativeHandle(w,U,le)},NE.useInsertionEffect=function(w,U){return w==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),V().useInsertionEffect(w,U)},NE.useLayoutEffect=function(w,U){return w==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),V().useLayoutEffect(w,U)},NE.useMemo=function(w,U){return V().useMemo(w,U)},NE.useOptimistic=function(w,U){return V().useOptimistic(w,U)},NE.useReducer=function(w,U,le){return V().useReducer(w,U,le)},NE.useRef=function(w){return V().useRef(w)},NE.useState=function(w){return V().useState(w)},NE.useSyncExternalStore=function(w,U,le){return V().useSyncExternalStore(w,U,le)},NE.useTransition=function(){return V().useTransition()},NE.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var E1=Ti(function(qE){var sb=_(Ke());(function(){function r(){}function l(y){return""+y}function i(y,b,L){var T=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{l(T);var C=!1}catch(I){C=!0}return C&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol==="function"&&Symbol.toStringTag&&T[Symbol.toStringTag]||T.constructor.name||"Object"),l(T)),{$$typeof:m,key:T==null?null:""+T,children:y,containerInfo:b,implementation:L}}function d(y,b){if(y==="font")return"";if(typeof b==="string")return b==="use-credentials"?b:""}function f(y){return y===null?"`null`":y===void 0?"`undefined`":y===""?"an empty string":'something with type "'+typeof y+'"'}function g(y){return y===null?"`null`":y===void 0?"`undefined`":y===""?"an empty string":typeof y==="string"?JSON.stringify(y):typeof y==="number"?"`"+y+"`":'something with type "'+typeof y+'"'}function v(){var y=S.H;return y===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
13
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),w}function Re(){qe.asyncTransitions--}function pe(w){if(zl===null)try{var U=("require"+Math.random()).slice(0,7);zl=(Sh&&Sh[U]).call(Sh,"timers").setImmediate}catch(le){zl=function(ye){sp===!1&&(sp=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var Ae=new MessageChannel;Ae.port1.onmessage=ye,Ae.port2.postMessage(void 0)}}return zl(w)}function Ne(w){return 1<w.length&&typeof AggregateError==="function"?AggregateError(w):w[0]}function Te(w,U){U!==Ul-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),Ul=U}function oe(w,U,le){var ye=qe.actQueue;if(ye!==null)if(ye.length!==0)try{Se(ye),pe(function(){return oe(w,U,le)});return}catch(Ae){qe.thrownErrors.push(Ae)}else qe.actQueue=null;0<qe.thrownErrors.length?(ye=Ne(qe.thrownErrors),qe.thrownErrors.length=0,le(ye)):U(w)}function Se(w){if(!Hl){Hl=!0;var U=0;try{for(;U<w.length;U++){var le=w[U];do{qe.didUsePromise=!1;var ye=le(!1);if(ye!==null){if(qe.didUsePromise){w[U]=le,w.splice(0,U);return}le=ye}else break}while(1)}w.length=0}catch(Ae){w.splice(0,U+1),qe.thrownErrors.push(Ae)}finally{Hl=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var Ee=Symbol.for("react.transitional.element"),Qe=Symbol.for("react.portal"),yt=Symbol.for("react.fragment"),Q=Symbol.for("react.strict_mode"),Fe=Symbol.for("react.profiler"),It=Symbol.for("react.consumer"),St=Symbol.for("react.context"),ge=Symbol.for("react.forward_ref"),Ye=Symbol.for("react.suspense"),He=Symbol.for("react.suspense_list"),ua=Symbol.for("react.memo"),da=Symbol.for("react.lazy"),j=Symbol.for("react.activity"),We=Symbol.iterator,H={},we={isMounted:function(){return!1},enqueueForceUpdate:function(w){i(w,"forceUpdate")},enqueueReplaceState:function(w){i(w,"replaceState")},enqueueSetState:function(w){i(w,"setState")}},he=Object.assign,it={};Object.freeze(it),d.prototype.isReactComponent={},d.prototype.setState=function(w,U){if(typeof w!=="object"&&typeof w!=="function"&&w!=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,w,U,"setState")},d.prototype.forceUpdate=function(w){this.updater.enqueueForceUpdate(this,w,"forceUpdate")};var Pe={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]};for(Bs in Pe)Pe.hasOwnProperty(Bs)&&r(Bs,Pe[Bs]);f.prototype=d.prototype,Pe=g.prototype=new f,Pe.constructor=g,he(Pe,d.prototype),Pe.isPureReactComponent=!0;var ke=Array.isArray,Qt=Symbol.for("react.client.reference"),qe={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},Ea=Object.prototype.hasOwnProperty,Wt=console.createTask?console.createTask:function(){return null};Pe={react_stack_bottom_frame:function(w){return w()}};var $i,Bt,ga={},ho=Pe.react_stack_bottom_frame.bind(Pe,L)(),Pl=Wt(y(L)),Xi=!1,Yi=/\/+/g,Os=typeof reportError==="function"?reportError:function(w){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var U=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof w==="object"&&w!==null&&typeof w.message==="string"?String(w.message):String(w),error:w});if(!window.dispatchEvent(U))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",w);return}console.error(w)},sp=!1,zl=null,Ul=0,_l=!1,Hl=!1,Sd=typeof queueMicrotask==="function"?function(w){queueMicrotask(function(){return queueMicrotask(w)})}:pe;Pe=Object.freeze({__proto__:null,c:function(w){return V().useMemoCache(w)}});var Bs={map:ee,forEach:function(w,U,le){ee(w,function(){U.apply(this,arguments)},le)},count:function(w){var U=0;return ee(w,function(){U++}),U},toArray:function(w){return ee(w,function(U){return U})||[]},only:function(w){if(!Y(w))throw Error("React.Children.only expected to receive a single React element child.");return w}};NE.Activity=j,NE.Children=Bs,NE.Component=d,NE.Fragment=yt,NE.Profiler=Fe,NE.PureComponent=g,NE.StrictMode=Q,NE.Suspense=Ye,NE.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=qe,NE.__COMPILER_RUNTIME=Pe,NE.act=function(w){var U=qe.actQueue,le=Ul;Ul++;var ye=qe.actQueue=U!==null?U:[],Ae=!1;try{var rt=w()}catch(ze){qe.thrownErrors.push(ze)}if(0<qe.thrownErrors.length)throw Te(U,le),w=Ne(qe.thrownErrors),qe.thrownErrors.length=0,w;if(rt!==null&&typeof rt==="object"&&typeof rt.then==="function"){var nt=rt;return Sd(function(){Ae||_l||(_l=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(ze,wo){Ae=!0,nt.then(function(Zo){if(Te(U,le),le===0){try{Se(ye),pe(function(){return oe(Zo,ze,wo)})}catch(kd){qe.thrownErrors.push(kd)}if(0<qe.thrownErrors.length){var Ps=Ne(qe.thrownErrors);qe.thrownErrors.length=0,wo(Ps)}}else ze(Zo)},function(Zo){Te(U,le),0<qe.thrownErrors.length?(Zo=Ne(qe.thrownErrors),qe.thrownErrors.length=0,wo(Zo)):wo(Zo)})}}}var _t=rt;if(Te(U,le),le===0&&(Se(ye),ye.length!==0&&Sd(function(){Ae||_l||(_l=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),qe.actQueue=null),0<qe.thrownErrors.length)throw w=Ne(qe.thrownErrors),qe.thrownErrors.length=0,w;return{then:function(ze,wo){Ae=!0,le===0?(qe.actQueue=ye,pe(function(){return oe(_t,ze,wo)})):ze(_t)}}},NE.cache=function(w){return function(){return w.apply(null,arguments)}},NE.cacheSignal=function(){return null},NE.captureOwnerStack=function(){var w=qe.getCurrentStack;return w===null?null:w()},NE.cloneElement=function(w,U,le){if(w===null||w===void 0)throw Error("The argument must be a React element, but you passed "+w+".");var ye=he({},w.props),{key:Ae,_owner:rt}=w;if(U!=null){var nt;e:{if(Ea.call(U,"ref")&&(nt=Object.getOwnPropertyDescriptor(U,"ref").get)&&nt.isReactWarning){nt=!1;break e}nt=U.ref!==void 0}nt&&(rt=b()),T(U)&&(m(U.key),Ae=""+U.key);for(_t in U)!Ea.call(U,_t)||_t==="key"||_t==="__self"||_t==="__source"||_t==="ref"&&U.ref===void 0||(ye[_t]=U[_t])}var _t=arguments.length-2;if(_t===1)ye.children=le;else if(1<_t){nt=Array(_t);for(var ze=0;ze<_t;ze++)nt[ze]=arguments[ze+2];ye.children=nt}ye=R(w.type,Ae,ye,rt,w._debugStack,w._debugTask);for(Ae=2;Ae<arguments.length;Ae++)P(arguments[Ae]);return ye},NE.createContext=function(w){return w={$$typeof:St,_currentValue:w,_currentValue2:w,_threadCount:0,Provider:null,Consumer:null},w.Provider=w,w.Consumer={$$typeof:It,_context:w},w._currentRenderer=null,w._currentRenderer2=null,w},NE.createElement=function(w,U,le){for(var ye=2;ye<arguments.length;ye++)P(arguments[ye]);ye={};var Ae=null;if(U!=null)for(ze in Bt||!("__self"in U)||"key"in U||(Bt=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),T(U)&&(m(U.key),Ae=""+U.key),U)Ea.call(U,ze)&&ze!=="key"&&ze!=="__self"&&ze!=="__source"&&(ye[ze]=U[ze]);var rt=arguments.length-2;if(rt===1)ye.children=le;else if(1<rt){for(var nt=Array(rt),_t=0;_t<rt;_t++)nt[_t]=arguments[_t+2];Object.freeze&&Object.freeze(nt),ye.children=nt}if(w&&w.defaultProps)for(ze in rt=w.defaultProps,rt)ye[ze]===void 0&&(ye[ze]=rt[ze]);Ae&&C(ye,typeof w==="function"?w.displayName||w.name||"Unknown":w);var ze=1e4>qe.recentlyCreatedOwnerStacks++;return R(w,Ae,ye,b(),ze?Error("react-stack-top-frame"):ho,ze?Wt(y(w)):Pl)},NE.createRef=function(){var w={current:null};return Object.seal(w),w},NE.forwardRef=function(w){w!=null&&w.$$typeof===ua?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof w!=="function"?console.error("forwardRef requires a render function but was given %s.",w===null?"null":typeof w):w.length!==0&&w.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",w.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),w!=null&&w.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var U={$$typeof:ge,render:w},le;return Object.defineProperty(U,"displayName",{enumerable:!1,configurable:!0,get:function(){return le},set:function(ye){le=ye,w.name||w.displayName||(Object.defineProperty(w,"name",{value:ye}),w.displayName=ye)}}),U},NE.isValidElement=Y,NE.lazy=function(w){w={_status:-1,_result:w};var U={$$typeof:da,_payload:w,_init:G},le={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return w._ioInfo=le,U._debugInfo=[{awaited:le}],U},NE.memo=function(w,U){w==null&&console.error("memo: The first argument must be a component. Instead received: %s",w===null?"null":typeof w),U={$$typeof:ua,type:w,compare:U===void 0?null:U};var le;return Object.defineProperty(U,"displayName",{enumerable:!1,configurable:!0,get:function(){return le},set:function(ye){le=ye,w.name||w.displayName||(Object.defineProperty(w,"name",{value:ye}),w.displayName=ye)}}),U},NE.startTransition=function(w){var U=qe.T,le={};le._updatedFibers=new Set,qe.T=le;try{var ye=w(),Ae=qe.S;Ae!==null&&Ae(le,ye),typeof ye==="object"&&ye!==null&&typeof ye.then==="function"&&(qe.asyncTransitions++,ye.then(Re,Re),ye.then(v,Os))}catch(rt){Os(rt)}finally{U===null&&le._updatedFibers&&(w=le._updatedFibers.size,le._updatedFibers.clear(),10<w&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),U!==null&&le.types!==null&&(U.types!==null&&U.types!==le.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),U.types=le.types),qe.T=U}},NE.unstable_useCacheRefresh=function(){return V().useCacheRefresh()},NE.use=function(w){return V().use(w)},NE.useActionState=function(w,U,le){return V().useActionState(w,U,le)},NE.useCallback=function(w,U){return V().useCallback(w,U)},NE.useContext=function(w){var U=V();return w.$$typeof===It&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),U.useContext(w)},NE.useDebugValue=function(w,U){return V().useDebugValue(w,U)},NE.useDeferredValue=function(w,U){return V().useDeferredValue(w,U)},NE.useEffect=function(w,U){return w==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),V().useEffect(w,U)},NE.useEffectEvent=function(w){return V().useEffectEvent(w)},NE.useId=function(){return V().useId()},NE.useImperativeHandle=function(w,U,le){return V().useImperativeHandle(w,U,le)},NE.useInsertionEffect=function(w,U){return w==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),V().useInsertionEffect(w,U)},NE.useLayoutEffect=function(w,U){return w==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),V().useLayoutEffect(w,U)},NE.useMemo=function(w,U){return V().useMemo(w,U)},NE.useOptimistic=function(w,U){return V().useOptimistic(w,U)},NE.useReducer=function(w,U,le){return V().useReducer(w,U,le)},NE.useRef=function(w){return V().useRef(w)},NE.useState=function(w){return V().useState(w)},NE.useSyncExternalStore=function(w,U,le){return V().useSyncExternalStore(w,U,le)},NE.useTransition=function(){return V().useTransition()},NE.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var E1=Ti(function(qE){var sb=_(Ke());(function(){function r(){}function l(y){return""+y}function i(y,b,L){var T=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{l(T);var C=!1}catch(I){C=!0}return C&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol==="function"&&Symbol.toStringTag&&T[Symbol.toStringTag]||T.constructor.name||"Object"),l(T)),{$$typeof:m,key:T==null?null:""+T,children:y,containerInfo:b,implementation:L}}function d(y,b){if(y==="font")return"";if(typeof b==="string")return b==="use-credentials"?b:""}function f(y){return y===null?"`null`":y===void 0?"`undefined`":y===""?"an empty string":'something with type "'+typeof y+'"'}function g(y){return y===null?"`null`":y===void 0?"`undefined`":y===""?"an empty string":typeof y==="string"?JSON.stringify(y):typeof y==="number"?"`"+y+"`":'something with type "'+typeof y+'"'}function v(){var y=S.H;return y===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
14
14
  1. You might have mismatching versions of React and the renderer (such as React DOM)
15
15
  2. You might be breaking the Rules of Hooks
16
16
  3. You might have more than one copy of React in the same app
17
- See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),y}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var h={d:{f:r,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},m=Symbol.for("react.portal"),S=sb.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map==="function"&&Map.prototype!=null&&typeof Map.prototype.forEach==="function"&&typeof Set==="function"&&Set.prototype!=null&&typeof Set.prototype.clear==="function"&&typeof Set.prototype.forEach==="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),qE.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=h,qE.createPortal=function(y,b){var L=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!b||b.nodeType!==1&&b.nodeType!==9&&b.nodeType!==11)throw Error("Target container is not a DOM element.");return i(y,b,null,L)},qE.flushSync=function(y){var b=S.T,L=h.p;try{if(S.T=null,h.p=2,y)return y()}finally{S.T=b,h.p=L,h.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},qE.preconnect=function(y,b){typeof y==="string"&&y?b!=null&&typeof b!=="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",g(b)):b!=null&&typeof b.crossOrigin!=="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",f(b.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",f(y)),typeof y==="string"&&(b?(b=b.crossOrigin,b=typeof b==="string"?b==="use-credentials"?b:"":void 0):b=null,h.d.C(y,b))},qE.prefetchDNS=function(y){if(typeof y!=="string"||!y)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",f(y));else if(1<arguments.length){var b=arguments[1];typeof b==="object"&&b.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",g(b)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",g(b))}typeof y==="string"&&h.d.D(y)},qE.preinit=function(y,b){if(typeof y==="string"&&y?b==null||typeof b!=="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",g(b)):b.as!=="style"&&b.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',g(b.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",f(y)),typeof y==="string"&&b&&typeof b.as==="string"){var L=b.as,T=d(L,b.crossOrigin),C=typeof b.integrity==="string"?b.integrity:void 0,I=typeof b.fetchPriority==="string"?b.fetchPriority:void 0;L==="style"?h.d.S(y,typeof b.precedence==="string"?b.precedence:void 0,{crossOrigin:T,integrity:C,fetchPriority:I}):L==="script"&&h.d.X(y,{crossOrigin:T,integrity:C,fetchPriority:I,nonce:typeof b.nonce==="string"?b.nonce:void 0})}},qE.preinitModule=function(y,b){var L="";if(typeof y==="string"&&y||(L+=" The `href` argument encountered was "+f(y)+"."),b!==void 0&&typeof b!=="object"?L+=" The `options` argument encountered was "+f(b)+".":b&&("as"in b)&&b.as!=="script"&&(L+=" The `as` option encountered was "+g(b.as)+"."),L)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",L);else switch(L=b&&typeof b.as==="string"?b.as:"script",L){case"script":break;default:L=g(L),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',L,y)}if(typeof y==="string")if(typeof b==="object"&&b!==null){if(b.as==null||b.as==="script")L=d(b.as,b.crossOrigin),h.d.M(y,{crossOrigin:L,integrity:typeof b.integrity==="string"?b.integrity:void 0,nonce:typeof b.nonce==="string"?b.nonce:void 0})}else b==null&&h.d.M(y)},qE.preload=function(y,b){var L="";if(typeof y==="string"&&y||(L+=" The `href` argument encountered was "+f(y)+"."),b==null||typeof b!=="object"?L+=" The `options` argument encountered was "+f(b)+".":typeof b.as==="string"&&b.as||(L+=" The `as` option encountered was "+f(b.as)+"."),L&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',L),typeof y==="string"&&typeof b==="object"&&b!==null&&typeof b.as==="string"){L=b.as;var T=d(L,b.crossOrigin);h.d.L(y,L,{crossOrigin:T,integrity:typeof b.integrity==="string"?b.integrity:void 0,nonce:typeof b.nonce==="string"?b.nonce:void 0,type:typeof b.type==="string"?b.type:void 0,fetchPriority:typeof b.fetchPriority==="string"?b.fetchPriority:void 0,referrerPolicy:typeof b.referrerPolicy==="string"?b.referrerPolicy:void 0,imageSrcSet:typeof b.imageSrcSet==="string"?b.imageSrcSet:void 0,imageSizes:typeof b.imageSizes==="string"?b.imageSizes:void 0,media:typeof b.media==="string"?b.media:void 0})}},qE.preloadModule=function(y,b){var L="";typeof y==="string"&&y||(L+=" The `href` argument encountered was "+f(y)+"."),b!==void 0&&typeof b!=="object"?L+=" The `options` argument encountered was "+f(b)+".":b&&("as"in b)&&typeof b.as!=="string"&&(L+=" The `as` option encountered was "+f(b.as)+"."),L&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',L),typeof y==="string"&&(b?(L=d(b.as,b.crossOrigin),h.d.m(y,{as:typeof b.as==="string"&&b.as!=="script"?b.as:void 0,crossOrigin:L,integrity:typeof b.integrity==="string"?b.integrity:void 0})):h.d.m(y))},qE.requestFormReset=function(y){h.d.r(y)},qE.unstable_batchedUpdates=function(y,b){return y(b)},qE.useFormState=function(y,b,L){return v().useFormState(y,b,L)},qE.useFormStatus=function(){return v().useHostTransitionStatus()},qE.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var Jc=Ti(function(OE,kh){kh.exports=_(E1())});var N1=Ti(function(BE){var Ht=_(D1()),Wu=_(Ke()),lb=_(Jc());(function(){function r(e,t){for(e=e.memoizedState;e!==null&&0<t;)e=e.next,t--;return e}function l(e,t,a,o){if(a>=t.length)return o;var n=t[a],s=eo(e)?e.slice():Lt({},e);return s[n]=l(e[n],t,a+1,o),s}function i(e,t,a){if(t.length!==a.length)console.warn("copyWithRename() expects paths of the same length");else{for(var o=0;o<a.length-1;o++)if(t[o]!==a[o]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return d(e,t,a,0)}}function d(e,t,a,o){var n=t[o],s=eo(e)?e.slice():Lt({},e);return o+1===t.length?(s[a[o]]=s[n],eo(s)?s.splice(n,1):delete s[n]):s[n]=d(e[n],t,a,o+1),s}function f(e,t,a){var o=t[a],n=eo(e)?e.slice():Lt({},e);if(a+1===t.length)return eo(n)?n.splice(o,1):delete n[o],n;return n[o]=f(e[o],t,a+1),n}function g(){return!1}function v(){return null}function h(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}function m(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}function S(){}function y(){}function b(e){var t=[];return e.forEach(function(a){t.push(a)}),t.sort().join(", ")}function L(e,t,a,o){return new gA(e,t,a,o)}function T(e,t){e.context===ol&&(Tv(e.current,2,t,e,null,null),lu())}function C(e,t){if(Tr!==null){var a=t.staleFamilies;t=t.updatedFamilies,Yd(),O0(e.current,t,a),lu()}}function I(e){Tr=e}function R(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function O(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 z(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 Y(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 W(e){if(O(e)!==e)throw Error("Unable to find node on an unmounted component.")}function ue(e){var t=e.alternate;if(!t){if(t=O(e),t===null)throw Error("Unable to find node on an unmounted component.");return t!==e?null:e}for(var a=e,o=t;;){var n=a.return;if(n===null)break;var s=n.alternate;if(s===null){if(o=n.return,o!==null){a=o;continue}break}if(n.child===s.child){for(s=n.child;s;){if(s===a)return W(n),e;if(s===o)return W(n),t;s=s.sibling}throw Error("Unable to find node on an unmounted component.")}if(a.return!==o.return)a=n,o=s;else{for(var c=!1,p=n.child;p;){if(p===a){c=!0,a=n,o=s;break}if(p===o){c=!0,o=n,a=s;break}p=p.sibling}if(!c){for(p=s.child;p;){if(p===a){c=!0,a=s,o=n;break}if(p===o){c=!0,o=s,a=n;break}p=p.sibling}if(!c)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(a.alternate!==o)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(a.tag!==3)throw Error("Unable to find node on an unmounted component.");return a.stateNode.current===a?e:t}function Z(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=Z(e),t!==null)return t;e=e.sibling}return null}function ce(e){if(e===null||typeof e!=="object")return null;return e=FL&&e[FL]||e["@@iterator"],typeof e==="function"?e:null}function ee(e){if(e==null)return null;if(typeof e==="function")return e.$$typeof===zM?null:e.displayName||e.name||null;if(typeof e==="string")return e;switch(e){case mu:return"Fragment";case Ev:return"Profiler";case hm:return"StrictMode";case qv:return"Suspense";case Ov:return"SuspenseList";case Bv:return"Activity"}if(typeof e==="object")switch(typeof e.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case pu:return"Portal";case Rn:return e.displayName||"Context";case Nv:return(e._context.displayName||"Context")+".Consumer";case rc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case gm:return t=e.displayName||null,t!==null?t:ee(e.type)||"Memo";case lr:t=e._payload,e=e._init;try{return ee(e(t))}catch(a){}}return null}function G(e){return typeof e.tag==="number"?V(e):typeof e.name==="string"?e.name:null}function V(e){var t=e.type;switch(e.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(t._context.displayName||"Context")+".Consumer";case 10:return t.displayName||"Context";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ee(t);case 8:return t===hm?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 14:case 15:if(typeof t==="function")return t.displayName||t.name||null;if(typeof t==="string")return t;break;case 29:if(t=e._debugInfo,t!=null){for(var a=t.length-1;0<=a;a--)if(typeof t[a].name==="string")return t[a].name}if(e.return!==null)return V(e.return)}return null}function Re(e){return{current:e}}function pe(e,t){0>ls?console.error("Unexpected pop."):(t!==Pv[ls]&&console.error("Unexpected Fiber popped."),e.current=zv[ls],zv[ls]=null,Pv[ls]=null,ls--)}function Ne(e,t,a){ls++,zv[ls]=e.current,Pv[ls]=a,e.current=t}function Te(e){return e===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),e}function oe(e,t){Ne(Ws,t,e),Ne(nc,e,e),Ne(Qs,null,e);var a=t.nodeType;switch(a){case 9:case 11:a=a===9?"#document":"#fragment",t=(t=t.documentElement)?(t=t.namespaceURI)?fL(t):Ss:Ss;break;default:if(a=t.tagName,t=t.namespaceURI)t=fL(t),t=pL(t,a);else switch(a){case"svg":t=Yu;break;case"math":t=mh;break;default:t=Ss}}a=a.toLowerCase(),a=s0(null,a),a={context:t,ancestorInfo:a},pe(Qs,e),Ne(Qs,a,e)}function Se(e){pe(Qs,e),pe(nc,e),pe(Ws,e)}function Ee(){return Te(Qs.current)}function Qe(e){e.memoizedState!==null&&Ne(ym,e,e);var t=Te(Qs.current),a=e.type,o=pL(t.context,a);a=s0(t.ancestorInfo,a),o={context:o,ancestorInfo:a},t!==o&&(Ne(nc,e,e),Ne(Qs,o,e))}function yt(e){nc.current===e&&(pe(Qs,e),pe(nc,e)),ym.current===e&&(pe(ym,e),Qc._currentValue=Ci)}function Q(){}function Fe(){if(sc===0){GL=console.log,VL=console.info,jL=console.warn,$L=console.error,XL=console.group,YL=console.groupCollapsed,KL=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Q,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}sc++}function It(){if(sc--,sc===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Lt({},e,{value:GL}),info:Lt({},e,{value:VL}),warn:Lt({},e,{value:jL}),error:Lt({},e,{value:$L}),group:Lt({},e,{value:XL}),groupCollapsed:Lt({},e,{value:YL}),groupEnd:Lt({},e,{value:KL})})}0>sc&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function St(e){var t=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,e=e.stack,Error.prepareStackTrace=t,e.startsWith(`Error: react-stack-top-frame
17
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),y}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var h={d:{f:r,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},m=Symbol.for("react.portal"),S=sb.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map==="function"&&Map.prototype!=null&&typeof Map.prototype.forEach==="function"&&typeof Set==="function"&&Set.prototype!=null&&typeof Set.prototype.clear==="function"&&typeof Set.prototype.forEach==="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),qE.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=h,qE.createPortal=function(y,b){var L=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!b||b.nodeType!==1&&b.nodeType!==9&&b.nodeType!==11)throw Error("Target container is not a DOM element.");return i(y,b,null,L)},qE.flushSync=function(y){var b=S.T,L=h.p;try{if(S.T=null,h.p=2,y)return y()}finally{S.T=b,h.p=L,h.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},qE.preconnect=function(y,b){typeof y==="string"&&y?b!=null&&typeof b!=="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",g(b)):b!=null&&typeof b.crossOrigin!=="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",f(b.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",f(y)),typeof y==="string"&&(b?(b=b.crossOrigin,b=typeof b==="string"?b==="use-credentials"?b:"":void 0):b=null,h.d.C(y,b))},qE.prefetchDNS=function(y){if(typeof y!=="string"||!y)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",f(y));else if(1<arguments.length){var b=arguments[1];typeof b==="object"&&b.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",g(b)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",g(b))}typeof y==="string"&&h.d.D(y)},qE.preinit=function(y,b){if(typeof y==="string"&&y?b==null||typeof b!=="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",g(b)):b.as!=="style"&&b.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',g(b.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",f(y)),typeof y==="string"&&b&&typeof b.as==="string"){var L=b.as,T=d(L,b.crossOrigin),C=typeof b.integrity==="string"?b.integrity:void 0,I=typeof b.fetchPriority==="string"?b.fetchPriority:void 0;L==="style"?h.d.S(y,typeof b.precedence==="string"?b.precedence:void 0,{crossOrigin:T,integrity:C,fetchPriority:I}):L==="script"&&h.d.X(y,{crossOrigin:T,integrity:C,fetchPriority:I,nonce:typeof b.nonce==="string"?b.nonce:void 0})}},qE.preinitModule=function(y,b){var L="";if(typeof y==="string"&&y||(L+=" The `href` argument encountered was "+f(y)+"."),b!==void 0&&typeof b!=="object"?L+=" The `options` argument encountered was "+f(b)+".":b&&("as"in b)&&b.as!=="script"&&(L+=" The `as` option encountered was "+g(b.as)+"."),L)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",L);else switch(L=b&&typeof b.as==="string"?b.as:"script",L){case"script":break;default:L=g(L),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',L,y)}if(typeof y==="string")if(typeof b==="object"&&b!==null){if(b.as==null||b.as==="script")L=d(b.as,b.crossOrigin),h.d.M(y,{crossOrigin:L,integrity:typeof b.integrity==="string"?b.integrity:void 0,nonce:typeof b.nonce==="string"?b.nonce:void 0})}else b==null&&h.d.M(y)},qE.preload=function(y,b){var L="";if(typeof y==="string"&&y||(L+=" The `href` argument encountered was "+f(y)+"."),b==null||typeof b!=="object"?L+=" The `options` argument encountered was "+f(b)+".":typeof b.as==="string"&&b.as||(L+=" The `as` option encountered was "+f(b.as)+"."),L&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',L),typeof y==="string"&&typeof b==="object"&&b!==null&&typeof b.as==="string"){L=b.as;var T=d(L,b.crossOrigin);h.d.L(y,L,{crossOrigin:T,integrity:typeof b.integrity==="string"?b.integrity:void 0,nonce:typeof b.nonce==="string"?b.nonce:void 0,type:typeof b.type==="string"?b.type:void 0,fetchPriority:typeof b.fetchPriority==="string"?b.fetchPriority:void 0,referrerPolicy:typeof b.referrerPolicy==="string"?b.referrerPolicy:void 0,imageSrcSet:typeof b.imageSrcSet==="string"?b.imageSrcSet:void 0,imageSizes:typeof b.imageSizes==="string"?b.imageSizes:void 0,media:typeof b.media==="string"?b.media:void 0})}},qE.preloadModule=function(y,b){var L="";typeof y==="string"&&y||(L+=" The `href` argument encountered was "+f(y)+"."),b!==void 0&&typeof b!=="object"?L+=" The `options` argument encountered was "+f(b)+".":b&&("as"in b)&&typeof b.as!=="string"&&(L+=" The `as` option encountered was "+f(b.as)+"."),L&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',L),typeof y==="string"&&(b?(L=d(b.as,b.crossOrigin),h.d.m(y,{as:typeof b.as==="string"&&b.as!=="script"?b.as:void 0,crossOrigin:L,integrity:typeof b.integrity==="string"?b.integrity:void 0})):h.d.m(y))},qE.requestFormReset=function(y){h.d.r(y)},qE.unstable_batchedUpdates=function(y,b){return y(b)},qE.useFormState=function(y,b,L){return v().useFormState(y,b,L)},qE.useFormStatus=function(){return v().useHostTransitionStatus()},qE.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var Jc=Ti(function(OE,kh){kh.exports=_(E1())});var N1=Ti(function(BE){var Ht=_(D1()),Wu=_(Ke()),lb=_(Jc());(function(){function r(e,t){for(e=e.memoizedState;e!==null&&0<t;)e=e.next,t--;return e}function l(e,t,a,o){if(a>=t.length)return o;var n=t[a],s=eo(e)?e.slice():Lt({},e);return s[n]=l(e[n],t,a+1,o),s}function i(e,t,a){if(t.length!==a.length)console.warn("copyWithRename() expects paths of the same length");else{for(var o=0;o<a.length-1;o++)if(t[o]!==a[o]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return d(e,t,a,0)}}function d(e,t,a,o){var n=t[o],s=eo(e)?e.slice():Lt({},e);return o+1===t.length?(s[a[o]]=s[n],eo(s)?s.splice(n,1):delete s[n]):s[n]=d(e[n],t,a,o+1),s}function f(e,t,a){var o=t[a],n=eo(e)?e.slice():Lt({},e);if(a+1===t.length)return eo(n)?n.splice(o,1):delete n[o],n;return n[o]=f(e[o],t,a+1),n}function g(){return!1}function v(){return null}function h(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}function m(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}function S(){}function y(){}function b(e){var t=[];return e.forEach(function(a){t.push(a)}),t.sort().join(", ")}function L(e,t,a,o){return new gA(e,t,a,o)}function T(e,t){e.context===ol&&(Tv(e.current,2,t,e,null,null),lu())}function C(e,t){if(Tr!==null){var a=t.staleFamilies;t=t.updatedFamilies,Yd(),O0(e.current,t,a),lu()}}function I(e){Tr=e}function R(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function O(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 P(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 Y(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 W(e){if(O(e)!==e)throw Error("Unable to find node on an unmounted component.")}function ue(e){var t=e.alternate;if(!t){if(t=O(e),t===null)throw Error("Unable to find node on an unmounted component.");return t!==e?null:e}for(var a=e,o=t;;){var n=a.return;if(n===null)break;var s=n.alternate;if(s===null){if(o=n.return,o!==null){a=o;continue}break}if(n.child===s.child){for(s=n.child;s;){if(s===a)return W(n),e;if(s===o)return W(n),t;s=s.sibling}throw Error("Unable to find node on an unmounted component.")}if(a.return!==o.return)a=n,o=s;else{for(var c=!1,p=n.child;p;){if(p===a){c=!0,a=n,o=s;break}if(p===o){c=!0,o=n,a=s;break}p=p.sibling}if(!c){for(p=s.child;p;){if(p===a){c=!0,a=s,o=n;break}if(p===o){c=!0,o=s,a=n;break}p=p.sibling}if(!c)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(a.alternate!==o)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(a.tag!==3)throw Error("Unable to find node on an unmounted component.");return a.stateNode.current===a?e:t}function Z(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=Z(e),t!==null)return t;e=e.sibling}return null}function ce(e){if(e===null||typeof e!=="object")return null;return e=FL&&e[FL]||e["@@iterator"],typeof e==="function"?e:null}function ee(e){if(e==null)return null;if(typeof e==="function")return e.$$typeof===PM?null:e.displayName||e.name||null;if(typeof e==="string")return e;switch(e){case mu:return"Fragment";case Ev:return"Profiler";case hm:return"StrictMode";case qv:return"Suspense";case Ov:return"SuspenseList";case Bv:return"Activity"}if(typeof e==="object")switch(typeof e.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case pu:return"Portal";case Rn:return e.displayName||"Context";case Nv:return(e._context.displayName||"Context")+".Consumer";case rc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case gm:return t=e.displayName||null,t!==null?t:ee(e.type)||"Memo";case lr:t=e._payload,e=e._init;try{return ee(e(t))}catch(a){}}return null}function G(e){return typeof e.tag==="number"?V(e):typeof e.name==="string"?e.name:null}function V(e){var t=e.type;switch(e.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(t._context.displayName||"Context")+".Consumer";case 10:return t.displayName||"Context";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ee(t);case 8:return t===hm?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 14:case 15:if(typeof t==="function")return t.displayName||t.name||null;if(typeof t==="string")return t;break;case 29:if(t=e._debugInfo,t!=null){for(var a=t.length-1;0<=a;a--)if(typeof t[a].name==="string")return t[a].name}if(e.return!==null)return V(e.return)}return null}function Re(e){return{current:e}}function pe(e,t){0>ls?console.error("Unexpected pop."):(t!==zv[ls]&&console.error("Unexpected Fiber popped."),e.current=Pv[ls],Pv[ls]=null,zv[ls]=null,ls--)}function Ne(e,t,a){ls++,Pv[ls]=e.current,zv[ls]=a,e.current=t}function Te(e){return e===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),e}function oe(e,t){Ne(Ws,t,e),Ne(nc,e,e),Ne(Qs,null,e);var a=t.nodeType;switch(a){case 9:case 11:a=a===9?"#document":"#fragment",t=(t=t.documentElement)?(t=t.namespaceURI)?fL(t):Ss:Ss;break;default:if(a=t.tagName,t=t.namespaceURI)t=fL(t),t=pL(t,a);else switch(a){case"svg":t=Yu;break;case"math":t=mh;break;default:t=Ss}}a=a.toLowerCase(),a=s0(null,a),a={context:t,ancestorInfo:a},pe(Qs,e),Ne(Qs,a,e)}function Se(e){pe(Qs,e),pe(nc,e),pe(Ws,e)}function Ee(){return Te(Qs.current)}function Qe(e){e.memoizedState!==null&&Ne(ym,e,e);var t=Te(Qs.current),a=e.type,o=pL(t.context,a);a=s0(t.ancestorInfo,a),o={context:o,ancestorInfo:a},t!==o&&(Ne(nc,e,e),Ne(Qs,o,e))}function yt(e){nc.current===e&&(pe(Qs,e),pe(nc,e)),ym.current===e&&(pe(ym,e),Qc._currentValue=Ci)}function Q(){}function Fe(){if(sc===0){GL=console.log,VL=console.info,jL=console.warn,$L=console.error,XL=console.group,YL=console.groupCollapsed,KL=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Q,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}sc++}function It(){if(sc--,sc===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Lt({},e,{value:GL}),info:Lt({},e,{value:VL}),warn:Lt({},e,{value:jL}),error:Lt({},e,{value:$L}),group:Lt({},e,{value:XL}),groupCollapsed:Lt({},e,{value:YL}),groupEnd:Lt({},e,{value:KL})})}0>sc&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function St(e){var t=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,e=e.stack,Error.prepareStackTrace=t,e.startsWith(`Error: react-stack-top-frame
18
18
  `)&&(e=e.slice(29)),t=e.indexOf(`
19
19
  `),t!==-1&&(e=e.slice(t+1)),t=e.indexOf("react_stack_bottom_frame"),t!==-1&&(t=e.lastIndexOf(`
20
20
  `,t)),t!==-1)e=e.slice(0,t);else return"";return e}function ge(e){if(Uv===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Uv=t&&t[1]||"",QL=-1<a.stack.indexOf(`
@@ -30,7 +30,7 @@ Error generating stack: `+me.message+`
30
30
  `+n)}}else if(e.debugStack!=null){var s=e.debugStack;(e=e.owner)&&s&&(t+=`
31
31
  `+St(s))}else break;var c=t}catch(p){c=`
32
32
  Error generating stack: `+p.message+`
33
- `+p.stack}return c}function H(e,t,a,o,n,s,c){var p=ir;we(e);try{return e!==null&&e._debugTask?e._debugTask.run(t.bind(null,a,o,n,s,c)):t(a,o,n,s,c)}finally{we(p)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function we(e){K.getCurrentStack=e===null?null:We,An=!1,ir=e}function he(e){return typeof Symbol==="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}function it(e){try{return ze(e),!1}catch(t){return!0}}function ze(e){return""+e}function ke(e,t){if(it(e))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",t,he(e)),ze(e)}function Qt(e,t){if(it(e))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",t,he(e)),ze(e)}function qe(e){if(it(e))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",he(e)),ze(e)}function Ea(e){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled)return!0;if(!t.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{gu=t.inject(e),To=t}catch(a){console.error("React instrumentation encountered an error: %o.",a)}return t.checkDCE?!0:!1}function Wt(e){if(typeof VM==="function"&&jM(e),To&&typeof To.setStrictMode==="function")try{To.setStrictMode(gu,e)}catch(t){Mn||(Mn=!0,console.error("React instrumentation encountered an error: %o",t))}}function $i(e){return e>>>=0,e===0?32:31-($M(e)/XM|0)|0}function Bt(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 console.error("Should have found matching lanes. This is a bug in React."),e}}function ga(e,t,a){var o=e.pendingLanes;if(o===0)return 0;var n=0,s=e.suspendedLanes,c=e.pingedLanes;e=e.warmLanes;var p=o&134217727;return p!==0?(o=p&~s,o!==0?n=Bt(o):(c&=p,c!==0?n=Bt(c):a||(a=p&~e,a!==0&&(n=Bt(a))))):(p=o&~s,p!==0?n=Bt(p):c!==0?n=Bt(c):a||(a=o&~e,a!==0&&(n=Bt(a)))),n===0?0:t!==0&&t!==n&&(t&s)===0&&(s=n&-n,a=t&-t,s>=a||s===32&&(a&4194048)!==0)?t:n}function ho(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function zl(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+5000;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error("Should have found matching lanes. This is a bug in React."),-1}}function Xi(){var e=bm;return bm<<=1,(bm&62914560)===0&&(bm=4194304),e}function Yi(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Os(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function sp(e,t,a,o,n,s){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{entanglements:p,expirationTimes:x,hiddenUpdates:k}=e;for(a=c&~a;0<a;){var q=31-Eo(a),B=1<<q;p[q]=0,x[q]=-1;var D=k[q];if(D!==null)for(k[q]=null,q=0;q<D.length;q++){var F=D[q];F!==null&&(F.lane&=-536870913)}a&=~B}o!==0&&Pl(e,o,0),s!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=s&~(c&~t))}function Pl(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var o=31-Eo(t);e.entangledLanes|=t,e.entanglements[o]=e.entanglements[o]|1073741824|a&261930}function Ul(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var o=31-Eo(a),n=1<<o;n&t|e[o]&t&&(e[o]|=t),a&=~n}}function _l(e,t){var a=t&-t;return a=(a&42)!==0?1:Hl(a),(a&(e.suspendedLanes|t))!==0?0:a}function Hl(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 Sd(e,t,a){if(Dn)for(e=e.pendingUpdatersLaneMap;0<a;){var o=31-Eo(a),n=1<<o;e[o].add(t),a&=~n}}function Bs(e,t){if(Dn)for(var a=e.pendingUpdatersLaneMap,o=e.memoizedUpdaters;0<t;){var n=31-Eo(t);e=1<<n,n=a[n],0<n.size&&(n.forEach(function(s){var c=s.alternate;c!==null&&o.has(c)||o.add(s)}),n.clear()),t&=~e}}function w(e){return e&=-e,ur!==0&&ur<e?$r!==0&&$r<e?(e&134217727)!==0?En:Sm:$r:ur}function U(){var e=Jt.p;if(e!==0)return e;return e=window.event,e===void 0?En:OL(e.type)}function le(e,t){var a=Jt.p;try{return Jt.p=e,t()}finally{Jt.p=a}}function ye(e){delete e[xo],delete e[No],delete e[$v],delete e[YM],delete e[KM]}function Ae(e){var t=e[xo];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Js]||a[xo]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=SL(e);e!==null;){if(a=e[xo])return a;e=SL(e)}return t}e=a,a=e.parentNode}return null}function rt(e){if(e=e[xo]||e[Js]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function nt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function _t(e){var t=e[WL];return t||(t=e[WL]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Pe(e){e[lc]=!0}function wo(e,t){Zo(e,t),Zo(e+"Capture",t)}function Zo(e,t){oi[e]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),oi[e]=t;var a=e.toLowerCase();Xv[a]=e,e==="onDoubleClick"&&(Xv.ondblclick=e);for(e=0;e<t.length;e++)ZL.add(t[e])}function zs(e,t){QM[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||t.value==null||(e==="select"?console.error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`."):console.error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.")),t.onChange||t.readOnly||t.disabled||t.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function kd(e){if(jr.call(ew,e))return!0;if(jr.call(JL,e))return!1;if(WM.test(e))return ew[e]=!0;return JL[e]=!0,console.error("Invalid attribute name: `%s`",e),!1}function jb(e,t,a){if(kd(t)){if(!e.hasAttribute(t)){switch(typeof a){case"symbol":case"object":return a;case"function":return a;case"boolean":if(a===!1)return a}return a===void 0?void 0:null}if(e=e.getAttribute(t),e===""&&a===!0)return!0;return ke(a,t),e===""+a?a:e}}function lp(e,t,a){if(kd(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var o=t.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){e.removeAttribute(t);return}}ke(a,t),e.setAttribute(t,""+a)}}function ip(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}ke(a,t),e.setAttribute(t,""+a)}}function Zn(e,t,a,o){if(o===null)e.removeAttribute(a);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}ke(o,a),e.setAttributeNS(t,a,""+o)}}function Sr(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return qe(e),e;default:return""}}function $b(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function XR(e,t,a){var o=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof o<"u"&&typeof o.get==="function"&&typeof o.set==="function"){var{get:n,set:s}=o;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(c){qe(c),a=""+c,s.call(this,c)}}),Object.defineProperty(e,t,{enumerable:o.enumerable}),{getValue:function(){return a},setValue:function(c){qe(c),a=""+c},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ig(e){if(!e._valueTracker){var t=$b(e)?"checked":"value";e._valueTracker=XR(e,t,""+e[t])}}function Xb(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),o="";return e&&(o=$b(e)?e.checked?"true":"false":e.value),e=o,e!==a?(t.setValue(e),!0):!1}function up(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch(t){return e.body}}function kr(e){return e.replace(ZM,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Yb(e,t){t.checked===void 0||t.defaultChecked===void 0||aw||(console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",j()||"A component",t.type),aw=!0),t.value===void 0||t.defaultValue===void 0||tw||(console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",j()||"A component",t.type),tw=!0)}function Rg(e,t,a,o,n,s,c,p){if(e.name="",c!=null&&typeof c!=="function"&&typeof c!=="symbol"&&typeof c!=="boolean"?(ke(c,"type"),e.type=c):e.removeAttribute("type"),t!=null)if(c==="number"){if(t===0&&e.value===""||e.value!=t)e.value=""+Sr(t)}else e.value!==""+Sr(t)&&(e.value=""+Sr(t));else c!=="submit"&&c!=="reset"||e.removeAttribute("value");t!=null?Ag(e,c,Sr(t)):a!=null?Ag(e,c,Sr(a)):o!=null&&e.removeAttribute("value"),n==null&&s!=null&&(e.defaultChecked=!!s),n!=null&&(e.checked=n&&typeof n!=="function"&&typeof n!=="symbol"),p!=null&&typeof p!=="function"&&typeof p!=="symbol"&&typeof p!=="boolean"?(ke(p,"name"),e.name=""+Sr(p)):e.removeAttribute("name")}function Kb(e,t,a,o,n,s,c,p){if(s!=null&&typeof s!=="function"&&typeof s!=="symbol"&&typeof s!=="boolean"&&(ke(s,"type"),e.type=s),t!=null||a!=null){if(!(s!=="submit"&&s!=="reset"||t!==void 0&&t!==null)){Ig(e);return}a=a!=null?""+Sr(a):"",t=t!=null?""+Sr(t):a,p||t===e.value||(e.value=t),e.defaultValue=t}o=o!=null?o:n,o=typeof o!=="function"&&typeof o!=="symbol"&&!!o,e.checked=p?e.checked:!!o,e.defaultChecked=!!o,c!=null&&typeof c!=="function"&&typeof c!=="symbol"&&typeof c!=="boolean"&&(ke(c,"name"),e.name=c),Ig(e)}function Ag(e,t,a){t==="number"&&up(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Qb(e,t){t.value==null&&(typeof t.children==="object"&&t.children!==null?Wu.Children.forEach(t.children,function(a){a==null||typeof a==="string"||typeof a==="number"||typeof a==="bigint"||rw||(rw=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):t.dangerouslySetInnerHTML==null||nw||(nw=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),t.selected==null||ow||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),ow=!0)}function Wb(){var e=j();return e?`
33
+ `+p.stack}return c}function H(e,t,a,o,n,s,c){var p=ir;we(e);try{return e!==null&&e._debugTask?e._debugTask.run(t.bind(null,a,o,n,s,c)):t(a,o,n,s,c)}finally{we(p)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function we(e){K.getCurrentStack=e===null?null:We,An=!1,ir=e}function he(e){return typeof Symbol==="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}function it(e){try{return Pe(e),!1}catch(t){return!0}}function Pe(e){return""+e}function ke(e,t){if(it(e))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",t,he(e)),Pe(e)}function Qt(e,t){if(it(e))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",t,he(e)),Pe(e)}function qe(e){if(it(e))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",he(e)),Pe(e)}function Ea(e){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled)return!0;if(!t.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{gu=t.inject(e),To=t}catch(a){console.error("React instrumentation encountered an error: %o.",a)}return t.checkDCE?!0:!1}function Wt(e){if(typeof VM==="function"&&jM(e),To&&typeof To.setStrictMode==="function")try{To.setStrictMode(gu,e)}catch(t){Mn||(Mn=!0,console.error("React instrumentation encountered an error: %o",t))}}function $i(e){return e>>>=0,e===0?32:31-($M(e)/XM|0)|0}function Bt(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 console.error("Should have found matching lanes. This is a bug in React."),e}}function ga(e,t,a){var o=e.pendingLanes;if(o===0)return 0;var n=0,s=e.suspendedLanes,c=e.pingedLanes;e=e.warmLanes;var p=o&134217727;return p!==0?(o=p&~s,o!==0?n=Bt(o):(c&=p,c!==0?n=Bt(c):a||(a=p&~e,a!==0&&(n=Bt(a))))):(p=o&~s,p!==0?n=Bt(p):c!==0?n=Bt(c):a||(a=o&~e,a!==0&&(n=Bt(a)))),n===0?0:t!==0&&t!==n&&(t&s)===0&&(s=n&-n,a=t&-t,s>=a||s===32&&(a&4194048)!==0)?t:n}function ho(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Pl(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+5000;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error("Should have found matching lanes. This is a bug in React."),-1}}function Xi(){var e=bm;return bm<<=1,(bm&62914560)===0&&(bm=4194304),e}function Yi(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Os(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function sp(e,t,a,o,n,s){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{entanglements:p,expirationTimes:x,hiddenUpdates:k}=e;for(a=c&~a;0<a;){var q=31-Eo(a),B=1<<q;p[q]=0,x[q]=-1;var D=k[q];if(D!==null)for(k[q]=null,q=0;q<D.length;q++){var F=D[q];F!==null&&(F.lane&=-536870913)}a&=~B}o!==0&&zl(e,o,0),s!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=s&~(c&~t))}function zl(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var o=31-Eo(t);e.entangledLanes|=t,e.entanglements[o]=e.entanglements[o]|1073741824|a&261930}function Ul(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var o=31-Eo(a),n=1<<o;n&t|e[o]&t&&(e[o]|=t),a&=~n}}function _l(e,t){var a=t&-t;return a=(a&42)!==0?1:Hl(a),(a&(e.suspendedLanes|t))!==0?0:a}function Hl(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 Sd(e,t,a){if(Dn)for(e=e.pendingUpdatersLaneMap;0<a;){var o=31-Eo(a),n=1<<o;e[o].add(t),a&=~n}}function Bs(e,t){if(Dn)for(var a=e.pendingUpdatersLaneMap,o=e.memoizedUpdaters;0<t;){var n=31-Eo(t);e=1<<n,n=a[n],0<n.size&&(n.forEach(function(s){var c=s.alternate;c!==null&&o.has(c)||o.add(s)}),n.clear()),t&=~e}}function w(e){return e&=-e,ur!==0&&ur<e?$r!==0&&$r<e?(e&134217727)!==0?En:Sm:$r:ur}function U(){var e=Jt.p;if(e!==0)return e;return e=window.event,e===void 0?En:OL(e.type)}function le(e,t){var a=Jt.p;try{return Jt.p=e,t()}finally{Jt.p=a}}function ye(e){delete e[xo],delete e[No],delete e[$v],delete e[YM],delete e[KM]}function Ae(e){var t=e[xo];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Js]||a[xo]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=SL(e);e!==null;){if(a=e[xo])return a;e=SL(e)}return t}e=a,a=e.parentNode}return null}function rt(e){if(e=e[xo]||e[Js]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function nt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function _t(e){var t=e[WL];return t||(t=e[WL]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ze(e){e[lc]=!0}function wo(e,t){Zo(e,t),Zo(e+"Capture",t)}function Zo(e,t){oi[e]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),oi[e]=t;var a=e.toLowerCase();Xv[a]=e,e==="onDoubleClick"&&(Xv.ondblclick=e);for(e=0;e<t.length;e++)ZL.add(t[e])}function Ps(e,t){QM[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||t.value==null||(e==="select"?console.error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`."):console.error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.")),t.onChange||t.readOnly||t.disabled||t.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function kd(e){if(jr.call(ew,e))return!0;if(jr.call(JL,e))return!1;if(WM.test(e))return ew[e]=!0;return JL[e]=!0,console.error("Invalid attribute name: `%s`",e),!1}function jb(e,t,a){if(kd(t)){if(!e.hasAttribute(t)){switch(typeof a){case"symbol":case"object":return a;case"function":return a;case"boolean":if(a===!1)return a}return a===void 0?void 0:null}if(e=e.getAttribute(t),e===""&&a===!0)return!0;return ke(a,t),e===""+a?a:e}}function lp(e,t,a){if(kd(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var o=t.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){e.removeAttribute(t);return}}ke(a,t),e.setAttribute(t,""+a)}}function ip(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}ke(a,t),e.setAttribute(t,""+a)}}function Zn(e,t,a,o){if(o===null)e.removeAttribute(a);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}ke(o,a),e.setAttributeNS(t,a,""+o)}}function Sr(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return qe(e),e;default:return""}}function $b(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function XR(e,t,a){var o=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof o<"u"&&typeof o.get==="function"&&typeof o.set==="function"){var{get:n,set:s}=o;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(c){qe(c),a=""+c,s.call(this,c)}}),Object.defineProperty(e,t,{enumerable:o.enumerable}),{getValue:function(){return a},setValue:function(c){qe(c),a=""+c},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ig(e){if(!e._valueTracker){var t=$b(e)?"checked":"value";e._valueTracker=XR(e,t,""+e[t])}}function Xb(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),o="";return e&&(o=$b(e)?e.checked?"true":"false":e.value),e=o,e!==a?(t.setValue(e),!0):!1}function up(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch(t){return e.body}}function kr(e){return e.replace(ZM,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Yb(e,t){t.checked===void 0||t.defaultChecked===void 0||aw||(console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",j()||"A component",t.type),aw=!0),t.value===void 0||t.defaultValue===void 0||tw||(console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",j()||"A component",t.type),tw=!0)}function Rg(e,t,a,o,n,s,c,p){if(e.name="",c!=null&&typeof c!=="function"&&typeof c!=="symbol"&&typeof c!=="boolean"?(ke(c,"type"),e.type=c):e.removeAttribute("type"),t!=null)if(c==="number"){if(t===0&&e.value===""||e.value!=t)e.value=""+Sr(t)}else e.value!==""+Sr(t)&&(e.value=""+Sr(t));else c!=="submit"&&c!=="reset"||e.removeAttribute("value");t!=null?Ag(e,c,Sr(t)):a!=null?Ag(e,c,Sr(a)):o!=null&&e.removeAttribute("value"),n==null&&s!=null&&(e.defaultChecked=!!s),n!=null&&(e.checked=n&&typeof n!=="function"&&typeof n!=="symbol"),p!=null&&typeof p!=="function"&&typeof p!=="symbol"&&typeof p!=="boolean"?(ke(p,"name"),e.name=""+Sr(p)):e.removeAttribute("name")}function Kb(e,t,a,o,n,s,c,p){if(s!=null&&typeof s!=="function"&&typeof s!=="symbol"&&typeof s!=="boolean"&&(ke(s,"type"),e.type=s),t!=null||a!=null){if(!(s!=="submit"&&s!=="reset"||t!==void 0&&t!==null)){Ig(e);return}a=a!=null?""+Sr(a):"",t=t!=null?""+Sr(t):a,p||t===e.value||(e.value=t),e.defaultValue=t}o=o!=null?o:n,o=typeof o!=="function"&&typeof o!=="symbol"&&!!o,e.checked=p?e.checked:!!o,e.defaultChecked=!!o,c!=null&&typeof c!=="function"&&typeof c!=="symbol"&&typeof c!=="boolean"&&(ke(c,"name"),e.name=c),Ig(e)}function Ag(e,t,a){t==="number"&&up(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Qb(e,t){t.value==null&&(typeof t.children==="object"&&t.children!==null?Wu.Children.forEach(t.children,function(a){a==null||typeof a==="string"||typeof a==="number"||typeof a==="bigint"||rw||(rw=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):t.dangerouslySetInnerHTML==null||nw||(nw=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),t.selected==null||ow||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),ow=!0)}function Wb(){var e=j();return e?`
34
34
 
35
35
  Check the render method of \``+e+"`.":""}function Ki(e,t,a,o){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&&o&&(e[a].defaultSelected=!0)}else{a=""+Sr(a),t=null;for(n=0;n<e.length;n++){if(e[n].value===a){e[n].selected=!0,o&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function Zb(e,t){for(e=0;e<lw.length;e++){var a=lw[e];if(t[a]!=null){var o=eo(t[a]);t.multiple&&!o?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",a,Wb()):!t.multiple&&o&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",a,Wb())}}t.value===void 0||t.defaultValue===void 0||sw||(console.error("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components"),sw=!0)}function Jb(e,t){t.value===void 0||t.defaultValue===void 0||iw||(console.error("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components",j()||"A component"),iw=!0),t.children!=null&&t.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function e0(e,t,a){if(t!=null&&(t=""+Sr(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Sr(a):""}function t0(e,t,a,o){if(t==null){if(o!=null){if(a!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(eo(o)){if(1<o.length)throw Error("<textarea> can only have at most one child.");o=o[0]}a=o}a==null&&(a=""),t=a}a=Sr(t),e.defaultValue=a,o=e.textContent,o===a&&o!==""&&o!==null&&(e.value=o),Ig(e)}function a0(e,t){return e.serverProps===void 0&&e.serverTail.length===0&&e.children.length===1&&3<e.distanceFromLeaf&&e.distanceFromLeaf>15-t?a0(e.children[0],t):e}function Jo(e){return" "+" ".repeat(e)}function Qi(e){return"+ "+" ".repeat(e)}function Fl(e){return"- "+" ".repeat(e)}function o0(e){switch(e.tag){case 26:case 27:case 5:return e.type;case 16:return"Lazy";case 31:return"Activity";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return e=e.type,e.displayName||e.name||null;case 11:return e=e.type.render,e.displayName||e.name||null;case 1:return e=e.type,e.displayName||e.name||null;default:return null}}function Ld(e,t){return uw.test(e)?(e=JSON.stringify(e),e.length>t-2?8>t?'{"..."}':"{"+e.slice(0,t-7)+'..."}':"{"+e+"}"):e.length>t?5>t?'{"..."}':e.slice(0,t-3)+"...":e}function dp(e,t,a){var o=120-2*a;if(t===null)return Qi(a)+Ld(e,o)+`
36
36
  `;if(typeof t==="string"){for(var n=0;n<t.length&&n<e.length&&t.charCodeAt(n)===e.charCodeAt(n);n++);return n>o-8&&10<n&&(e="..."+e.slice(n-8),t="..."+t.slice(n-8)),Qi(a)+Ld(e,o)+`
@@ -68,9 +68,9 @@ This will cause a hydration error.%s`,c,o,a,s)):console.error(`In HTML, %s canno
68
68
  This will cause a hydration error.%s`,c,o,s),t&&(e=t.return,n===null||e===null||n===e&&e._debugOwner===t._debugOwner||H(n,function(){console.error(`<%s> cannot contain a nested %s.
69
69
  See this log for the ancestor stack trace.`,o,c)})),!1}function cp(e,t,a){if(a||l0("#text",t,!1))return!0;if(a="#text|"+t,km[a])return!1;km[a]=!0;var o=(a=ir)?i0(a,t):null;return a=a!==null&&o!==null?n0(o,a,a.tag!==6?{children:null}:null):"",/\S/.test(e)?console.error(`In HTML, text nodes cannot be a child of <%s>.
70
70
  This will cause a hydration error.%s`,t,a):console.error(`In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.
71
- This will cause a hydration error.%s`,t,a),!1}function Cd(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}function WR(e){return e.replace(rD,function(t,a){return a.toUpperCase()})}function u0(e,t,a){var o=t.indexOf("--")===0;o||(-1<t.indexOf("-")?yu.hasOwnProperty(t)&&yu[t]||(yu[t]=!0,console.error("Unsupported style property %s. Did you mean %s?",t,WR(t.replace(oD,"ms-")))):aD.test(t)?yu.hasOwnProperty(t)&&yu[t]||(yu[t]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",t,t.charAt(0).toUpperCase()+t.slice(1))):!mw.test(a)||Kv.hasOwnProperty(a)&&Kv[a]||(Kv[a]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,t,a.replace(mw,""))),typeof a==="number"&&(isNaN(a)?hw||(hw=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",t)):isFinite(a)||gw||(gw=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",t)))),a==null||typeof a==="boolean"||a===""?o?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":o?e.setProperty(t,a):typeof a!=="number"||a===0||yw.has(t)?t==="float"?e.cssFloat=a:(Qt(a,t),e[t]=(""+a).trim()):e[t]=a+"px"}function d0(e,t,a){if(t!=null&&typeof t!=="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(t&&Object.freeze(t),e=e.style,a!=null){if(t){var o={};if(a){for(var n in a)if(a.hasOwnProperty(n)&&!t.hasOwnProperty(n))for(var s=Yv[n]||[n],c=0;c<s.length;c++)o[s[c]]=n}for(var p in t)if(t.hasOwnProperty(p)&&(!a||a[p]!==t[p]))for(n=Yv[p]||[p],s=0;s<n.length;s++)o[n[s]]=p;p={};for(var x in t)for(n=Yv[x]||[x],s=0;s<n.length;s++)p[n[s]]=x;x={};for(var k in o)if(n=o[k],(s=p[k])&&n!==s&&(c=n+","+s,!x[c])){x[c]=!0,c=console;var q=t[n];c.error.call(c,"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",q==null||typeof q==="boolean"||q===""?"Removing":"Updating",n,s)}}for(var B in a)!a.hasOwnProperty(B)||t!=null&&t.hasOwnProperty(B)||(B.indexOf("--")===0?e.setProperty(B,""):B==="float"?e.cssFloat="":e[B]="");for(var D in t)k=t[D],t.hasOwnProperty(D)&&a[D]!==k&&u0(e,D,k)}else for(o in t)t.hasOwnProperty(o)&&u0(e,o,t[o])}function Td(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}}function c0(e){return nD.get(e)||e}function ZR(e,t){if(jr.call(xu,t)&&xu[t])return!0;if(lD.test(t)){if(e="aria-"+t.slice(4).toLowerCase(),e=vw.hasOwnProperty(e)?e:null,e==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),xu[t]=!0;if(t!==e)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,e),xu[t]=!0}if(sD.test(t)){if(e=t.toLowerCase(),e=vw.hasOwnProperty(e)?e:null,e==null)return xu[t]=!0,!1;t!==e&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,e),xu[t]=!0)}return!0}function JR(e,t){var a=[],o;for(o in t)ZR(e,o)||a.push(o);t=a.map(function(n){return"`"+n+"`"}).join(", "),a.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e):1<a.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e)}function eA(e,t,a,o){if(jr.call(qo,t)&&qo[t])return!0;var n=t.toLowerCase();if(n==="onfocusin"||n==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),qo[t]=!0;if(typeof a==="function"&&(e==="form"&&t==="action"||e==="input"&&t==="formAction"||e==="button"&&t==="formAction"))return!0;if(o!=null){if(e=o.possibleRegistrationNames,o.registrationNameDependencies.hasOwnProperty(t))return!0;if(o=e.hasOwnProperty(n)?e[n]:null,o!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",t,o),qo[t]=!0;if(bw.test(t))return console.error("Unknown event handler property `%s`. It will be ignored.",t),qo[t]=!0}else if(bw.test(t))return iD.test(t)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),qo[t]=!0;if(uD.test(t)||dD.test(t))return!0;if(n==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),qo[t]=!0;if(n==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),qo[t]=!0;if(n==="is"&&a!==null&&a!==void 0&&typeof a!=="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof a),qo[t]=!0;if(typeof a==="number"&&isNaN(a))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),qo[t]=!0;if(wm.hasOwnProperty(n)){if(n=wm[n],n!==t)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",t,n),qo[t]=!0}else if(t!==n)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",t,n),qo[t]=!0;switch(t){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof a){case"boolean":switch(t){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":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":case"capture":case"download":case"inert":return!0;default:if(n=t.toLowerCase().slice(0,5),n==="data-"||n==="aria-")return!0;return a?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',a,t,t,a,t):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',a,t,t,a,t,t,t),qo[t]=!0}case"function":case"symbol":return qo[t]=!0,!1;case"string":if(a==="false"||a==="true"){switch(t){case"checked":case"selected":case"multiple":case"muted":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":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",a,t,a==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',t,a),qo[t]=!0}}return!0}function tA(e,t,a){var o=[],n;for(n in t)eA(e,n,t[n],a)||o.push(n);t=o.map(function(s){return"`"+s+"`"}).join(", "),o.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",t,e):1<o.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",t,e)}function Id(e){return cD.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Jn(){}function Og(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}function f0(e){var t=rt(e);if(t&&(e=t.stateNode)){var a=e[No]||null;e:switch(e=t.stateNode,t.type){case"input":if(Rg(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;ke(t,"name"),a=a.querySelectorAll('input[name="'+kr(""+t)+'"][type="radio"]');for(t=0;t<a.length;t++){var o=a[t];if(o!==e&&o.form===e.form){var n=o[No]||null;if(!n)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");Rg(o,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(t=0;t<a.length;t++)o=a[t],o.form===e.form&&Xb(o)}break e;case"textarea":e0(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&Ki(e,!!a.multiple,t,!1)}}}function p0(e,t,a){if(Qv)return e(t,a);Qv=!0;try{var o=e(t);return o}finally{if(Qv=!1,bu!==null||Su!==null){if(lu(),bu&&(t=bu,e=Su,Su=bu=null,f0(t),e))for(t=0;t<e.length;t++)f0(e[t])}}}function Rd(e,t){var a=e.stateNode;if(a===null)return null;var o=a[No]||null;if(o===null)return null;a=o[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":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(a&&typeof a!=="function")throw Error("Expected `"+t+"` listener to be a function, instead got a value of `"+typeof a+"` type.");return a}function m0(){if(Cm)return Cm;var e,t=Zv,a=t.length,o,n="value"in el?el.value:el.textContent,s=n.length;for(e=0;e<a&&t[e]===n[e];e++);var c=a-e;for(o=1;o<=c&&t[a-o]===n[s-o];o++);return Cm=n.slice(e,1<o?1-o:void 0)}function fp(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 pp(){return!0}function h0(){return!1}function Fo(e){function t(a,o,n,s,c){this._reactName=a,this._targetInst=n,this.type=o,this.nativeEvent=s,this.target=c,this.currentTarget=null;for(var p in e)e.hasOwnProperty(p)&&(a=e[p],this[p]=a?a(s):s[p]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?pp:h0,this.isPropagationStopped=h0,this}return Lt(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=pp)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!=="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=pp)},persist:function(){},isPersistent:pp}),t}function aA(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=wD[e])?!!t[e]:!1}function Bg(){return aA}function g0(e,t){switch(e){case"keyup":return BD.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==ww;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function y0(e){return e=e.detail,typeof e==="object"&&"data"in e?e.data:null}function oA(e,t){switch(e){case"compositionend":return y0(t);case"keypress":if(t.which!==Tw)return null;return Rw=!0,Iw;case"textInput":return e=t.data,e===Iw&&Rw?null:e;default:return null}}function rA(e,t){if(ku)return e==="compositionend"||!ax&&g0(e,t)?(e=m0(),Cm=Zv=el=null,ku=!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 Cw&&t.locale!=="ko"?null:t.data;default:return null}}function v0(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!PD[e.type]:t==="textarea"?!0:!1}function nA(e){if(!Nn)return!1;e="on"+e;var t=e in document;return t||(t=document.createElement("div"),t.setAttribute(e,"return;"),t=typeof t[e]==="function"),t}function x0(e,t,a,o){bu?Su?Su.push(o):Su=[o]:bu=o,t=nm(t,"onChange"),0<t.length&&(a=new Tm("onChange","change",null,a,o),e.push({event:a,listeners:t}))}function sA(e){tL(e,0)}function mp(e){var t=nt(e);if(Xb(t))return e}function b0(e,t){if(e==="change")return t}function S0(){pc&&(pc.detachEvent("onpropertychange",k0),mc=pc=null)}function k0(e){if(e.propertyName==="value"&&mp(mc)){var t=[];x0(t,mc,e,Og(e)),p0(sA,t)}}function lA(e,t,a){e==="focusin"?(S0(),pc=t,mc=a,pc.attachEvent("onpropertychange",k0)):e==="focusout"&&S0()}function iA(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return mp(mc)}function uA(e,t){if(e==="click")return mp(t)}function dA(e,t){if(e==="input"||e==="change")return mp(t)}function cA(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}function Ad(e,t){if(Oo(e,t))return!0;if(typeof e!=="object"||e===null||typeof t!=="object"||t===null)return!1;var a=Object.keys(e),o=Object.keys(t);if(a.length!==o.length)return!1;for(o=0;o<a.length;o++){var n=a[o];if(!jr.call(t,n)||!Oo(e[n],t[n]))return!1}return!0}function L0(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function w0(e,t){var a=L0(e);e=0;for(var o;a;){if(a.nodeType===3){if(o=e+a.textContent.length,e<=t&&o>=t)return{node:a,offset:t-e};e=o}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=L0(a)}}function C0(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?C0(e,t.parentNode):("contains"in e)?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function T0(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=up(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href==="string"}catch(o){a=!1}if(a)e=t.contentWindow;else break;t=up(e.document)}return t}function zg(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")}function I0(e,t,a){var o=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;rx||Lu==null||Lu!==up(o)||(o=Lu,("selectionStart"in o)&&zg(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),hc&&Ad(hc,o)||(hc=o,o=nm(ox,"onSelect"),0<o.length&&(t=new Tm("onSelect","select",null,t,a),e.push({event:t,listeners:o}),t.target=Lu)))}function Gl(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}function Vl(e){if(nx[e])return nx[e];if(!wu[e])return e;var t=wu[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Mw)return nx[e]=t[a];return e}function Fr(e,t){Ow.set(e,t),wo(t,[e])}function fA(e){for(var t=Rm,a=0;a<e.length;a++){var o=e[a];if(typeof o==="object"&&o!==null)if(eo(o)&&o.length===2&&typeof o[0]==="string"){if(t!==Rm&&t!==dx)return ix;t=dx}else return ix;else{if(typeof o==="function"||typeof o==="string"&&50<o.length||t!==Rm&&t!==ux)return ix;t=ux}}return t}function Pg(e,t,a,o){for(var n in e)jr.call(e,n)&&n[0]!=="_"&&cn(n,e[n],t,a,o)}function cn(e,t,a,o,n){switch(typeof t){case"object":if(t===null){t="null";break}else{if(t.$$typeof===In){var s=ee(t.type)||"…",c=t.key;t=t.props;var p=Object.keys(t),x=p.length;if(c==null&&x===0){t="<"+s+" />";break}if(3>o||x===1&&p[0]==="children"&&c==null){t="<"+s+" … />";break}a.push([n+"  ".repeat(o)+e,"<"+s]),c!==null&&cn("key",c,a,o+1,n),e=!1;for(var k in t)k==="children"?t.children!=null&&(!eo(t.children)||0<t.children.length)&&(e=!0):jr.call(t,k)&&k[0]!=="_"&&cn(k,t[k],a,o+1,n);a.push(["",e?">…</"+s+">":"/>"]);return}if(s=Object.prototype.toString.call(t),s=s.slice(8,s.length-1),s==="Array"){if(k=fA(t),k===ux||k===Rm){t=JSON.stringify(t);break}else if(k===dx){a.push([n+"  ".repeat(o)+e,""]);for(e=0;e<t.length;e++)s=t[e],cn(s[0],s[1],a,o+1,n);return}}if(s==="Promise"){if(t.status==="fulfilled"){if(s=a.length,cn(e,t.value,a,o,n),a.length>s){a=a[s],a[1]="Promise<"+(a[1]||"Object")+">";return}}else if(t.status==="rejected"&&(s=a.length,cn(e,t.reason,a,o,n),a.length>s)){a=a[s],a[1]="Rejected Promise<"+a[1]+">";return}a.push(["  ".repeat(o)+e,"Promise"]);return}s==="Object"&&(k=Object.getPrototypeOf(t))&&typeof k.constructor==="function"&&(s=k.constructor.name),a.push([n+"  ".repeat(o)+e,s==="Object"?3>o?"":"…":s]),3>o&&Pg(t,a,o+1,n);return}case"function":t=t.name===""?"() => {}":t.name+"() {}";break;case"string":t=t===jD?"…":JSON.stringify(t);break;case"undefined":t="undefined";break;case"boolean":t=t?"true":"false";break;default:t=String(t)}a.push([n+"  ".repeat(o)+e,t])}function R0(e,t,a,o){var n=!0;for(c in e)c in t||(a.push([Am+"  ".repeat(o)+c,"…"]),n=!1);for(var s in t)if(s in e){var c=e[s],p=t[s];if(c!==p){if(o===0&&s==="children")n="  ".repeat(o)+s,a.push([Am+n,"…"],[Mm+n,"…"]);else{if(!(3<=o)){if(typeof c==="object"&&typeof p==="object"&&c!==null&&p!==null&&c.$$typeof===p.$$typeof)if(p.$$typeof===In){if(c.type===p.type&&c.key===p.key){c=ee(p.type)||"…",n="  ".repeat(o)+s,c="<"+c+" … />",a.push([Am+n,c],[Mm+n,c]),n=!1;continue}}else{var x=Object.prototype.toString.call(c),k=Object.prototype.toString.call(p);if(x===k&&(k==="[object Object]"||k==="[object Array]")){x=[Pw+"  ".repeat(o)+s,k==="[object Array]"?"Array":""],a.push(x),k=a.length,R0(c,p,a,o+1)?k===a.length&&(x[1]="Referentially unequal but deeply equal objects. Consider memoization."):n=!1;continue}}else if(typeof c==="function"&&typeof p==="function"&&c.name===p.name&&c.length===p.length&&(x=Function.prototype.toString.call(c),k=Function.prototype.toString.call(p),x===k)){c=p.name===""?"() => {}":p.name+"() {}",a.push([Pw+"  ".repeat(o)+s,c+" Referentially unequal function closure. Consider memoization."]);continue}}cn(s,c,a,o,Am),cn(s,p,a,o,Mm)}n=!1}}else a.push([Mm+"  ".repeat(o)+s,"…"]),n=!1;return n}function er(e){Tt=e&63?"Blocking":e&64?"Gesture":e&4194176?"Transition":e&62914560?"Suspense":e&2080374784?"Idle":"Other"}function fn(e,t,a,o){ya&&(al.start=t,al.end=a,is.color="warning",is.tooltipText=o,is.properties=null,(e=e._debugTask)?e.run(performance.measure.bind(performance,o,al)):performance.measure(o,al))}function hp(e,t,a){fn(e,t,a,"Reconnect")}function gp(e,t,a,o,n){var s=V(e);if(s!==null&&ya){var{alternate:c,actualDuration:p}=e;if(c===null||c.child!==e.child)for(var x=e.child;x!==null;x=x.sibling)p-=x.actualDuration;o=0.5>p?o?"tertiary-light":"primary-light":10>p?o?"tertiary":"primary":100>p?o?"tertiary-dark":"primary-dark":"error";var k=e.memoizedProps;p=e._debugTask,k!==null&&c!==null&&c.memoizedProps!==k?(x=[$D],k=R0(c.memoizedProps,k,x,0),1<x.length&&(k&&!tl&&(c.lanes&n)===0&&100<e.actualDuration?(tl=!0,x[0]=XD,is.color="warning",is.tooltipText=Uw):(is.color=o,is.tooltipText=s),is.properties=x,al.start=t,al.end=a,p!=null?p.run(performance.measure.bind(performance,"​"+s,al)):performance.measure("​"+s,al))):p!=null?p.run(console.timeStamp.bind(console,s,t,a,wr,void 0,o)):console.timeStamp(s,t,a,wr,void 0,o)}}function Ug(e,t,a,o){if(ya){var n=V(e);if(n!==null){for(var s=null,c=[],p=0;p<o.length;p++){var x=o[p];s==null&&x.source!==null&&(s=x.source._debugTask),x=x.value,c.push(["Error",typeof x==="object"&&x!==null&&typeof x.message==="string"?String(x.message):String(x)])}e.key!==null&&cn("key",e.key,c,0,""),e.memoizedProps!==null&&Pg(e.memoizedProps,c,0,""),s==null&&(s=e._debugTask),e={start:t,end:a,detail:{devtools:{color:"error",track:wr,tooltipText:e.tag===13?"Hydration failed":"Error boundary caught an error",properties:c}}},s?s.run(performance.measure.bind(performance,"​"+n,e)):performance.measure("​"+n,e)}}}function pn(e,t,a,o,n){if(n!==null){if(ya){var s=V(e);if(s!==null){o=[];for(var c=0;c<n.length;c++){var p=n[c].value;o.push(["Error",typeof p==="object"&&p!==null&&typeof p.message==="string"?String(p.message):String(p)])}e.key!==null&&cn("key",e.key,o,0,""),e.memoizedProps!==null&&Pg(e.memoizedProps,o,0,""),t={start:t,end:a,detail:{devtools:{color:"error",track:wr,tooltipText:"A lifecycle or effect errored",properties:o}}},(e=e._debugTask)?e.run(performance.measure.bind(performance,"​"+s,t)):performance.measure("​"+s,t)}}}else s=V(e),s!==null&&ya&&(n=1>o?"secondary-light":100>o?"secondary":500>o?"secondary-dark":"error",(e=e._debugTask)?e.run(console.timeStamp.bind(console,s,t,a,wr,void 0,n)):console.timeStamp(s,t,a,wr,void 0,n))}function pA(e,t,a,o){if(ya&&!(t<=e)){var n=(a&738197653)===a?"tertiary-dark":"primary-dark";a=(a&536870912)===a?"Prepared":(a&201326741)===a?"Hydrated":"Render",o?o.run(console.timeStamp.bind(console,a,e,t,Tt,wt,n)):console.timeStamp(a,e,t,Tt,wt,n)}}function A0(e,t,a,o){!ya||t<=e||(a=(a&738197653)===a?"tertiary-dark":"primary-dark",o?o.run(console.timeStamp.bind(console,"Prewarm",e,t,Tt,wt,a)):console.timeStamp("Prewarm",e,t,Tt,wt,a))}function M0(e,t,a,o){!ya||t<=e||(a=(a&738197653)===a?"tertiary-dark":"primary-dark",o?o.run(console.timeStamp.bind(console,"Suspended",e,t,Tt,wt,a)):console.timeStamp("Suspended",e,t,Tt,wt,a))}function mA(e,t,a,o,n,s){if(ya&&!(t<=e)){a=[];for(var c=0;c<o.length;c++){var p=o[c].value;a.push(["Recoverable Error",typeof p==="object"&&p!==null&&typeof p.message==="string"?String(p.message):String(p)])}e={start:e,end:t,detail:{devtools:{color:"primary-dark",track:Tt,trackGroup:wt,tooltipText:n?"Hydration Failed":"Recovered after Error",properties:a}}},s?s.run(performance.measure.bind(performance,"Recovered",e)):performance.measure("Recovered",e)}}function _g(e,t,a,o){!ya||t<=e||(o?o.run(console.timeStamp.bind(console,"Errored",e,t,Tt,wt,"error")):console.timeStamp("Errored",e,t,Tt,wt,"error"))}function hA(e,t,a,o){!ya||t<=e||(o?o.run(console.timeStamp.bind(console,a,e,t,Tt,wt,"secondary-light")):console.timeStamp(a,e,t,Tt,wt,"secondary-light"))}function D0(e,t,a,o,n){if(ya&&!(t<=e)){for(var s=[],c=0;c<a.length;c++){var p=a[c].value;s.push(["Error",typeof p==="object"&&p!==null&&typeof p.message==="string"?String(p.message):String(p)])}e={start:e,end:t,detail:{devtools:{color:"error",track:Tt,trackGroup:wt,tooltipText:o?"Remaining Effects Errored":"Commit Errored",properties:s}}},n?n.run(performance.measure.bind(performance,"Errored",e)):performance.measure("Errored",e)}}function Md(e,t,a){!ya||t<=e||(a?a.run(console.timeStamp.bind(console,"Animating",e,t,Tt,wt,"secondary-dark")):console.timeStamp("Animating",e,t,Tt,wt,"secondary-dark"))}function yp(){for(var e=Cu,t=cx=Cu=0;t<e;){var a=Cr[t];Cr[t++]=null;var o=Cr[t];Cr[t++]=null;var n=Cr[t];Cr[t++]=null;var s=Cr[t];if(Cr[t++]=null,o!==null&&n!==null){var c=o.pending;c===null?n.next=n:(n.next=c.next,c.next=n),o.pending=n}s!==0&&E0(a,n,s)}}function vp(e,t,a,o){Cr[Cu++]=e,Cr[Cu++]=t,Cr[Cu++]=a,Cr[Cu++]=o,cx|=o,e.lanes|=o,e=e.alternate,e!==null&&(e.lanes|=o)}function Hg(e,t,a,o){return vp(e,t,a,o),xp(e)}function Co(e,t){return vp(e,null,null,t),xp(e)}function E0(e,t,a){e.lanes|=a;var o=e.alternate;o!==null&&(o.lanes|=a);for(var n=!1,s=e.return;s!==null;)s.childLanes|=a,o=s.alternate,o!==null&&(o.childLanes|=a),s.tag===22&&(e=s.stateNode,e===null||e._visibility&gc||(n=!0)),e=s,s=s.return;return e.tag===3?(s=e.stateNode,n&&t!==null&&(n=31-Eo(a),e=s.hiddenUpdates,o=e[n],o===null?e[n]=[t]:o.push(t),t.lane=a|536870912),s):null}function xp(e){if(Gc>iE)throw xi=Gc=0,Vc=Vx=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");xi>uE&&(xi=0,Vc=null,console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")),e.alternate===null&&(e.flags&4098)!==0&&Yk(e);for(var t=e,a=t.return;a!==null;)t.alternate===null&&(t.flags&4098)!==0&&Yk(e),t=a,a=t.return;return t.tag===3?t.stateNode:null}function jl(e){if(Tr===null)return e;var t=Tr(e);return t===void 0?e:t.current}function Fg(e){if(Tr===null)return e;var t=Tr(e);return t===void 0?e!==null&&e!==void 0&&typeof e.render==="function"&&(t=jl(e.render),e.render!==t)?(t={$$typeof:rc,render:t},e.displayName!==void 0&&(t.displayName=e.displayName),t):e:t.current}function N0(e,t){if(Tr===null)return!1;var a=e.elementType;t=t.type;var o=!1,n=typeof t==="object"&&t!==null?t.$$typeof:null;switch(e.tag){case 1:typeof t==="function"&&(o=!0);break;case 0:typeof t==="function"?o=!0:n===lr&&(o=!0);break;case 11:n===rc?o=!0:n===lr&&(o=!0);break;case 14:case 15:n===gm?o=!0:n===lr&&(o=!0);break;default:return!1}return o&&(e=Tr(a),e!==void 0&&e===Tr(t))?!0:!1}function q0(e){Tr!==null&&typeof WeakSet==="function"&&(Tu===null&&(Tu=new WeakSet),Tu.add(e))}function O0(e,t,a){do{var o=e,n=o.alternate,s=o.child,c=o.sibling,p=o.tag;o=o.type;var x=null;switch(p){case 0:case 15:case 1:x=o;break;case 11:x=o.render}if(Tr===null)throw Error("Expected resolveFamily to be set during hot reload.");var k=!1;if(o=!1,x!==null&&(x=Tr(x),x!==void 0&&(a.has(x)?o=!0:t.has(x)&&(p===1?o=!0:k=!0))),Tu!==null&&(Tu.has(e)||n!==null&&Tu.has(n))&&(o=!0),o&&(e._debugNeedsRemount=!0),o||k)n=Co(e,2),n!==null&&Ra(n,e,2);if(s===null||o||O0(s,t,a),c===null)break;e=c}while(1)}function gA(e,t,a,o){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=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,_w||typeof Object.preventExtensions!=="function"||Object.preventExtensions(this)}function Gg(e){return e=e.prototype,!(!e||!e.isReactComponent)}function es(e,t){var a=e.alternate;switch(a===null?(a=L(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a._debugOwner=e._debugOwner,a._debugStack=e._debugStack,a._debugTask=e._debugTask,a._debugHookTypes=e._debugHookTypes,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null,a.actualDuration=-0,a.actualStartTime=-1.1),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,_debugThenableState:t._debugThenableState},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a.selfBaseDuration=e.selfBaseDuration,a.treeBaseDuration=e.treeBaseDuration,a._debugInfo=e._debugInfo,a._debugNeedsRemount=e._debugNeedsRemount,a.tag){case 0:case 15:a.type=jl(e.type);break;case 1:a.type=jl(e.type);break;case 11:a.type=Fg(e.type)}return a}function B0(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.selfBaseDuration=0,e.treeBaseDuration=0):(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,_debugThenableState:t._debugThenableState},e.selfBaseDuration=a.selfBaseDuration,e.treeBaseDuration=a.treeBaseDuration),e}function Vg(e,t,a,o,n,s){var c=0,p=e;if(typeof e==="function")Gg(e)&&(c=1),p=jl(p);else if(typeof e==="string")c=Ee(),c=CM(e,a,c)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Bv:return t=L(31,a,t,n),t.elementType=Bv,t.lanes=s,t;case mu:return $l(a.children,n,s,t);case hm:c=8,n|=Io,n|=Xr;break;case Ev:return e=a,o=n,typeof e.id!=="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id),t=L(12,e,t,o|mt),t.elementType=Ev,t.lanes=s,t.stateNode={effectDuration:0,passiveEffectDuration:0},t;case qv:return t=L(13,a,t,n),t.elementType=qv,t.lanes=s,t;case Ov:return t=L(19,a,t,n),t.elementType=Ov,t.lanes=s,t;default:if(typeof e==="object"&&e!==null)switch(e.$$typeof){case Rn:c=10;break e;case Nv:c=9;break e;case rc:c=11,p=Fg(p);break e;case gm:c=14;break e;case lr:c=16,p=null;break e}if(p="",e===void 0||typeof e==="object"&&e!==null&&Object.keys(e).length===0)p+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";e===null?a="null":eo(e)?a="array":e!==void 0&&e.$$typeof===In?(a="<"+(ee(e.type)||"Unknown")+" />",p=" Did you accidentally export a JSX literal instead of a component?"):a=typeof e,(c=o?G(o):null)&&(p+=`
71
+ This will cause a hydration error.%s`,t,a),!1}function Cd(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}function WR(e){return e.replace(rD,function(t,a){return a.toUpperCase()})}function u0(e,t,a){var o=t.indexOf("--")===0;o||(-1<t.indexOf("-")?yu.hasOwnProperty(t)&&yu[t]||(yu[t]=!0,console.error("Unsupported style property %s. Did you mean %s?",t,WR(t.replace(oD,"ms-")))):aD.test(t)?yu.hasOwnProperty(t)&&yu[t]||(yu[t]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",t,t.charAt(0).toUpperCase()+t.slice(1))):!mw.test(a)||Kv.hasOwnProperty(a)&&Kv[a]||(Kv[a]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,t,a.replace(mw,""))),typeof a==="number"&&(isNaN(a)?hw||(hw=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",t)):isFinite(a)||gw||(gw=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",t)))),a==null||typeof a==="boolean"||a===""?o?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":o?e.setProperty(t,a):typeof a!=="number"||a===0||yw.has(t)?t==="float"?e.cssFloat=a:(Qt(a,t),e[t]=(""+a).trim()):e[t]=a+"px"}function d0(e,t,a){if(t!=null&&typeof t!=="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(t&&Object.freeze(t),e=e.style,a!=null){if(t){var o={};if(a){for(var n in a)if(a.hasOwnProperty(n)&&!t.hasOwnProperty(n))for(var s=Yv[n]||[n],c=0;c<s.length;c++)o[s[c]]=n}for(var p in t)if(t.hasOwnProperty(p)&&(!a||a[p]!==t[p]))for(n=Yv[p]||[p],s=0;s<n.length;s++)o[n[s]]=p;p={};for(var x in t)for(n=Yv[x]||[x],s=0;s<n.length;s++)p[n[s]]=x;x={};for(var k in o)if(n=o[k],(s=p[k])&&n!==s&&(c=n+","+s,!x[c])){x[c]=!0,c=console;var q=t[n];c.error.call(c,"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",q==null||typeof q==="boolean"||q===""?"Removing":"Updating",n,s)}}for(var B in a)!a.hasOwnProperty(B)||t!=null&&t.hasOwnProperty(B)||(B.indexOf("--")===0?e.setProperty(B,""):B==="float"?e.cssFloat="":e[B]="");for(var D in t)k=t[D],t.hasOwnProperty(D)&&a[D]!==k&&u0(e,D,k)}else for(o in t)t.hasOwnProperty(o)&&u0(e,o,t[o])}function Td(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}}function c0(e){return nD.get(e)||e}function ZR(e,t){if(jr.call(xu,t)&&xu[t])return!0;if(lD.test(t)){if(e="aria-"+t.slice(4).toLowerCase(),e=vw.hasOwnProperty(e)?e:null,e==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),xu[t]=!0;if(t!==e)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,e),xu[t]=!0}if(sD.test(t)){if(e=t.toLowerCase(),e=vw.hasOwnProperty(e)?e:null,e==null)return xu[t]=!0,!1;t!==e&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,e),xu[t]=!0)}return!0}function JR(e,t){var a=[],o;for(o in t)ZR(e,o)||a.push(o);t=a.map(function(n){return"`"+n+"`"}).join(", "),a.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e):1<a.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e)}function eA(e,t,a,o){if(jr.call(qo,t)&&qo[t])return!0;var n=t.toLowerCase();if(n==="onfocusin"||n==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),qo[t]=!0;if(typeof a==="function"&&(e==="form"&&t==="action"||e==="input"&&t==="formAction"||e==="button"&&t==="formAction"))return!0;if(o!=null){if(e=o.possibleRegistrationNames,o.registrationNameDependencies.hasOwnProperty(t))return!0;if(o=e.hasOwnProperty(n)?e[n]:null,o!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",t,o),qo[t]=!0;if(bw.test(t))return console.error("Unknown event handler property `%s`. It will be ignored.",t),qo[t]=!0}else if(bw.test(t))return iD.test(t)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),qo[t]=!0;if(uD.test(t)||dD.test(t))return!0;if(n==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),qo[t]=!0;if(n==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),qo[t]=!0;if(n==="is"&&a!==null&&a!==void 0&&typeof a!=="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof a),qo[t]=!0;if(typeof a==="number"&&isNaN(a))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),qo[t]=!0;if(wm.hasOwnProperty(n)){if(n=wm[n],n!==t)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",t,n),qo[t]=!0}else if(t!==n)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",t,n),qo[t]=!0;switch(t){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof a){case"boolean":switch(t){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":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":case"capture":case"download":case"inert":return!0;default:if(n=t.toLowerCase().slice(0,5),n==="data-"||n==="aria-")return!0;return a?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',a,t,t,a,t):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',a,t,t,a,t,t,t),qo[t]=!0}case"function":case"symbol":return qo[t]=!0,!1;case"string":if(a==="false"||a==="true"){switch(t){case"checked":case"selected":case"multiple":case"muted":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":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",a,t,a==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',t,a),qo[t]=!0}}return!0}function tA(e,t,a){var o=[],n;for(n in t)eA(e,n,t[n],a)||o.push(n);t=o.map(function(s){return"`"+s+"`"}).join(", "),o.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",t,e):1<o.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",t,e)}function Id(e){return cD.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Jn(){}function Og(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}function f0(e){var t=rt(e);if(t&&(e=t.stateNode)){var a=e[No]||null;e:switch(e=t.stateNode,t.type){case"input":if(Rg(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;ke(t,"name"),a=a.querySelectorAll('input[name="'+kr(""+t)+'"][type="radio"]');for(t=0;t<a.length;t++){var o=a[t];if(o!==e&&o.form===e.form){var n=o[No]||null;if(!n)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");Rg(o,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(t=0;t<a.length;t++)o=a[t],o.form===e.form&&Xb(o)}break e;case"textarea":e0(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&Ki(e,!!a.multiple,t,!1)}}}function p0(e,t,a){if(Qv)return e(t,a);Qv=!0;try{var o=e(t);return o}finally{if(Qv=!1,bu!==null||Su!==null){if(lu(),bu&&(t=bu,e=Su,Su=bu=null,f0(t),e))for(t=0;t<e.length;t++)f0(e[t])}}}function Rd(e,t){var a=e.stateNode;if(a===null)return null;var o=a[No]||null;if(o===null)return null;a=o[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":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(a&&typeof a!=="function")throw Error("Expected `"+t+"` listener to be a function, instead got a value of `"+typeof a+"` type.");return a}function m0(){if(Cm)return Cm;var e,t=Zv,a=t.length,o,n="value"in el?el.value:el.textContent,s=n.length;for(e=0;e<a&&t[e]===n[e];e++);var c=a-e;for(o=1;o<=c&&t[a-o]===n[s-o];o++);return Cm=n.slice(e,1<o?1-o:void 0)}function fp(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 pp(){return!0}function h0(){return!1}function Fo(e){function t(a,o,n,s,c){this._reactName=a,this._targetInst=n,this.type=o,this.nativeEvent=s,this.target=c,this.currentTarget=null;for(var p in e)e.hasOwnProperty(p)&&(a=e[p],this[p]=a?a(s):s[p]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?pp:h0,this.isPropagationStopped=h0,this}return Lt(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=pp)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!=="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=pp)},persist:function(){},isPersistent:pp}),t}function aA(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=wD[e])?!!t[e]:!1}function Bg(){return aA}function g0(e,t){switch(e){case"keyup":return BD.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==ww;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function y0(e){return e=e.detail,typeof e==="object"&&"data"in e?e.data:null}function oA(e,t){switch(e){case"compositionend":return y0(t);case"keypress":if(t.which!==Tw)return null;return Rw=!0,Iw;case"textInput":return e=t.data,e===Iw&&Rw?null:e;default:return null}}function rA(e,t){if(ku)return e==="compositionend"||!ax&&g0(e,t)?(e=m0(),Cm=Zv=el=null,ku=!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 Cw&&t.locale!=="ko"?null:t.data;default:return null}}function v0(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!zD[e.type]:t==="textarea"?!0:!1}function nA(e){if(!Nn)return!1;e="on"+e;var t=e in document;return t||(t=document.createElement("div"),t.setAttribute(e,"return;"),t=typeof t[e]==="function"),t}function x0(e,t,a,o){bu?Su?Su.push(o):Su=[o]:bu=o,t=nm(t,"onChange"),0<t.length&&(a=new Tm("onChange","change",null,a,o),e.push({event:a,listeners:t}))}function sA(e){tL(e,0)}function mp(e){var t=nt(e);if(Xb(t))return e}function b0(e,t){if(e==="change")return t}function S0(){pc&&(pc.detachEvent("onpropertychange",k0),mc=pc=null)}function k0(e){if(e.propertyName==="value"&&mp(mc)){var t=[];x0(t,mc,e,Og(e)),p0(sA,t)}}function lA(e,t,a){e==="focusin"?(S0(),pc=t,mc=a,pc.attachEvent("onpropertychange",k0)):e==="focusout"&&S0()}function iA(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return mp(mc)}function uA(e,t){if(e==="click")return mp(t)}function dA(e,t){if(e==="input"||e==="change")return mp(t)}function cA(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}function Ad(e,t){if(Oo(e,t))return!0;if(typeof e!=="object"||e===null||typeof t!=="object"||t===null)return!1;var a=Object.keys(e),o=Object.keys(t);if(a.length!==o.length)return!1;for(o=0;o<a.length;o++){var n=a[o];if(!jr.call(t,n)||!Oo(e[n],t[n]))return!1}return!0}function L0(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function w0(e,t){var a=L0(e);e=0;for(var o;a;){if(a.nodeType===3){if(o=e+a.textContent.length,e<=t&&o>=t)return{node:a,offset:t-e};e=o}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=L0(a)}}function C0(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?C0(e,t.parentNode):("contains"in e)?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function T0(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=up(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href==="string"}catch(o){a=!1}if(a)e=t.contentWindow;else break;t=up(e.document)}return t}function Pg(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")}function I0(e,t,a){var o=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;rx||Lu==null||Lu!==up(o)||(o=Lu,("selectionStart"in o)&&Pg(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),hc&&Ad(hc,o)||(hc=o,o=nm(ox,"onSelect"),0<o.length&&(t=new Tm("onSelect","select",null,t,a),e.push({event:t,listeners:o}),t.target=Lu)))}function Gl(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}function Vl(e){if(nx[e])return nx[e];if(!wu[e])return e;var t=wu[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Mw)return nx[e]=t[a];return e}function Fr(e,t){Ow.set(e,t),wo(t,[e])}function fA(e){for(var t=Rm,a=0;a<e.length;a++){var o=e[a];if(typeof o==="object"&&o!==null)if(eo(o)&&o.length===2&&typeof o[0]==="string"){if(t!==Rm&&t!==dx)return ix;t=dx}else return ix;else{if(typeof o==="function"||typeof o==="string"&&50<o.length||t!==Rm&&t!==ux)return ix;t=ux}}return t}function zg(e,t,a,o){for(var n in e)jr.call(e,n)&&n[0]!=="_"&&cn(n,e[n],t,a,o)}function cn(e,t,a,o,n){switch(typeof t){case"object":if(t===null){t="null";break}else{if(t.$$typeof===In){var s=ee(t.type)||"…",c=t.key;t=t.props;var p=Object.keys(t),x=p.length;if(c==null&&x===0){t="<"+s+" />";break}if(3>o||x===1&&p[0]==="children"&&c==null){t="<"+s+" … />";break}a.push([n+"  ".repeat(o)+e,"<"+s]),c!==null&&cn("key",c,a,o+1,n),e=!1;for(var k in t)k==="children"?t.children!=null&&(!eo(t.children)||0<t.children.length)&&(e=!0):jr.call(t,k)&&k[0]!=="_"&&cn(k,t[k],a,o+1,n);a.push(["",e?">…</"+s+">":"/>"]);return}if(s=Object.prototype.toString.call(t),s=s.slice(8,s.length-1),s==="Array"){if(k=fA(t),k===ux||k===Rm){t=JSON.stringify(t);break}else if(k===dx){a.push([n+"  ".repeat(o)+e,""]);for(e=0;e<t.length;e++)s=t[e],cn(s[0],s[1],a,o+1,n);return}}if(s==="Promise"){if(t.status==="fulfilled"){if(s=a.length,cn(e,t.value,a,o,n),a.length>s){a=a[s],a[1]="Promise<"+(a[1]||"Object")+">";return}}else if(t.status==="rejected"&&(s=a.length,cn(e,t.reason,a,o,n),a.length>s)){a=a[s],a[1]="Rejected Promise<"+a[1]+">";return}a.push(["  ".repeat(o)+e,"Promise"]);return}s==="Object"&&(k=Object.getPrototypeOf(t))&&typeof k.constructor==="function"&&(s=k.constructor.name),a.push([n+"  ".repeat(o)+e,s==="Object"?3>o?"":"…":s]),3>o&&zg(t,a,o+1,n);return}case"function":t=t.name===""?"() => {}":t.name+"() {}";break;case"string":t=t===jD?"…":JSON.stringify(t);break;case"undefined":t="undefined";break;case"boolean":t=t?"true":"false";break;default:t=String(t)}a.push([n+"  ".repeat(o)+e,t])}function R0(e,t,a,o){var n=!0;for(c in e)c in t||(a.push([Am+"  ".repeat(o)+c,"…"]),n=!1);for(var s in t)if(s in e){var c=e[s],p=t[s];if(c!==p){if(o===0&&s==="children")n="  ".repeat(o)+s,a.push([Am+n,"…"],[Mm+n,"…"]);else{if(!(3<=o)){if(typeof c==="object"&&typeof p==="object"&&c!==null&&p!==null&&c.$$typeof===p.$$typeof)if(p.$$typeof===In){if(c.type===p.type&&c.key===p.key){c=ee(p.type)||"…",n="  ".repeat(o)+s,c="<"+c+" … />",a.push([Am+n,c],[Mm+n,c]),n=!1;continue}}else{var x=Object.prototype.toString.call(c),k=Object.prototype.toString.call(p);if(x===k&&(k==="[object Object]"||k==="[object Array]")){x=[zw+"  ".repeat(o)+s,k==="[object Array]"?"Array":""],a.push(x),k=a.length,R0(c,p,a,o+1)?k===a.length&&(x[1]="Referentially unequal but deeply equal objects. Consider memoization."):n=!1;continue}}else if(typeof c==="function"&&typeof p==="function"&&c.name===p.name&&c.length===p.length&&(x=Function.prototype.toString.call(c),k=Function.prototype.toString.call(p),x===k)){c=p.name===""?"() => {}":p.name+"() {}",a.push([zw+"  ".repeat(o)+s,c+" Referentially unequal function closure. Consider memoization."]);continue}}cn(s,c,a,o,Am),cn(s,p,a,o,Mm)}n=!1}}else a.push([Mm+"  ".repeat(o)+s,"…"]),n=!1;return n}function er(e){Tt=e&63?"Blocking":e&64?"Gesture":e&4194176?"Transition":e&62914560?"Suspense":e&2080374784?"Idle":"Other"}function fn(e,t,a,o){ya&&(al.start=t,al.end=a,is.color="warning",is.tooltipText=o,is.properties=null,(e=e._debugTask)?e.run(performance.measure.bind(performance,o,al)):performance.measure(o,al))}function hp(e,t,a){fn(e,t,a,"Reconnect")}function gp(e,t,a,o,n){var s=V(e);if(s!==null&&ya){var{alternate:c,actualDuration:p}=e;if(c===null||c.child!==e.child)for(var x=e.child;x!==null;x=x.sibling)p-=x.actualDuration;o=0.5>p?o?"tertiary-light":"primary-light":10>p?o?"tertiary":"primary":100>p?o?"tertiary-dark":"primary-dark":"error";var k=e.memoizedProps;p=e._debugTask,k!==null&&c!==null&&c.memoizedProps!==k?(x=[$D],k=R0(c.memoizedProps,k,x,0),1<x.length&&(k&&!tl&&(c.lanes&n)===0&&100<e.actualDuration?(tl=!0,x[0]=XD,is.color="warning",is.tooltipText=Uw):(is.color=o,is.tooltipText=s),is.properties=x,al.start=t,al.end=a,p!=null?p.run(performance.measure.bind(performance,"​"+s,al)):performance.measure("​"+s,al))):p!=null?p.run(console.timeStamp.bind(console,s,t,a,wr,void 0,o)):console.timeStamp(s,t,a,wr,void 0,o)}}function Ug(e,t,a,o){if(ya){var n=V(e);if(n!==null){for(var s=null,c=[],p=0;p<o.length;p++){var x=o[p];s==null&&x.source!==null&&(s=x.source._debugTask),x=x.value,c.push(["Error",typeof x==="object"&&x!==null&&typeof x.message==="string"?String(x.message):String(x)])}e.key!==null&&cn("key",e.key,c,0,""),e.memoizedProps!==null&&zg(e.memoizedProps,c,0,""),s==null&&(s=e._debugTask),e={start:t,end:a,detail:{devtools:{color:"error",track:wr,tooltipText:e.tag===13?"Hydration failed":"Error boundary caught an error",properties:c}}},s?s.run(performance.measure.bind(performance,"​"+n,e)):performance.measure("​"+n,e)}}}function pn(e,t,a,o,n){if(n!==null){if(ya){var s=V(e);if(s!==null){o=[];for(var c=0;c<n.length;c++){var p=n[c].value;o.push(["Error",typeof p==="object"&&p!==null&&typeof p.message==="string"?String(p.message):String(p)])}e.key!==null&&cn("key",e.key,o,0,""),e.memoizedProps!==null&&zg(e.memoizedProps,o,0,""),t={start:t,end:a,detail:{devtools:{color:"error",track:wr,tooltipText:"A lifecycle or effect errored",properties:o}}},(e=e._debugTask)?e.run(performance.measure.bind(performance,"​"+s,t)):performance.measure("​"+s,t)}}}else s=V(e),s!==null&&ya&&(n=1>o?"secondary-light":100>o?"secondary":500>o?"secondary-dark":"error",(e=e._debugTask)?e.run(console.timeStamp.bind(console,s,t,a,wr,void 0,n)):console.timeStamp(s,t,a,wr,void 0,n))}function pA(e,t,a,o){if(ya&&!(t<=e)){var n=(a&738197653)===a?"tertiary-dark":"primary-dark";a=(a&536870912)===a?"Prepared":(a&201326741)===a?"Hydrated":"Render",o?o.run(console.timeStamp.bind(console,a,e,t,Tt,wt,n)):console.timeStamp(a,e,t,Tt,wt,n)}}function A0(e,t,a,o){!ya||t<=e||(a=(a&738197653)===a?"tertiary-dark":"primary-dark",o?o.run(console.timeStamp.bind(console,"Prewarm",e,t,Tt,wt,a)):console.timeStamp("Prewarm",e,t,Tt,wt,a))}function M0(e,t,a,o){!ya||t<=e||(a=(a&738197653)===a?"tertiary-dark":"primary-dark",o?o.run(console.timeStamp.bind(console,"Suspended",e,t,Tt,wt,a)):console.timeStamp("Suspended",e,t,Tt,wt,a))}function mA(e,t,a,o,n,s){if(ya&&!(t<=e)){a=[];for(var c=0;c<o.length;c++){var p=o[c].value;a.push(["Recoverable Error",typeof p==="object"&&p!==null&&typeof p.message==="string"?String(p.message):String(p)])}e={start:e,end:t,detail:{devtools:{color:"primary-dark",track:Tt,trackGroup:wt,tooltipText:n?"Hydration Failed":"Recovered after Error",properties:a}}},s?s.run(performance.measure.bind(performance,"Recovered",e)):performance.measure("Recovered",e)}}function _g(e,t,a,o){!ya||t<=e||(o?o.run(console.timeStamp.bind(console,"Errored",e,t,Tt,wt,"error")):console.timeStamp("Errored",e,t,Tt,wt,"error"))}function hA(e,t,a,o){!ya||t<=e||(o?o.run(console.timeStamp.bind(console,a,e,t,Tt,wt,"secondary-light")):console.timeStamp(a,e,t,Tt,wt,"secondary-light"))}function D0(e,t,a,o,n){if(ya&&!(t<=e)){for(var s=[],c=0;c<a.length;c++){var p=a[c].value;s.push(["Error",typeof p==="object"&&p!==null&&typeof p.message==="string"?String(p.message):String(p)])}e={start:e,end:t,detail:{devtools:{color:"error",track:Tt,trackGroup:wt,tooltipText:o?"Remaining Effects Errored":"Commit Errored",properties:s}}},n?n.run(performance.measure.bind(performance,"Errored",e)):performance.measure("Errored",e)}}function Md(e,t,a){!ya||t<=e||(a?a.run(console.timeStamp.bind(console,"Animating",e,t,Tt,wt,"secondary-dark")):console.timeStamp("Animating",e,t,Tt,wt,"secondary-dark"))}function yp(){for(var e=Cu,t=cx=Cu=0;t<e;){var a=Cr[t];Cr[t++]=null;var o=Cr[t];Cr[t++]=null;var n=Cr[t];Cr[t++]=null;var s=Cr[t];if(Cr[t++]=null,o!==null&&n!==null){var c=o.pending;c===null?n.next=n:(n.next=c.next,c.next=n),o.pending=n}s!==0&&E0(a,n,s)}}function vp(e,t,a,o){Cr[Cu++]=e,Cr[Cu++]=t,Cr[Cu++]=a,Cr[Cu++]=o,cx|=o,e.lanes|=o,e=e.alternate,e!==null&&(e.lanes|=o)}function Hg(e,t,a,o){return vp(e,t,a,o),xp(e)}function Co(e,t){return vp(e,null,null,t),xp(e)}function E0(e,t,a){e.lanes|=a;var o=e.alternate;o!==null&&(o.lanes|=a);for(var n=!1,s=e.return;s!==null;)s.childLanes|=a,o=s.alternate,o!==null&&(o.childLanes|=a),s.tag===22&&(e=s.stateNode,e===null||e._visibility&gc||(n=!0)),e=s,s=s.return;return e.tag===3?(s=e.stateNode,n&&t!==null&&(n=31-Eo(a),e=s.hiddenUpdates,o=e[n],o===null?e[n]=[t]:o.push(t),t.lane=a|536870912),s):null}function xp(e){if(Gc>iE)throw xi=Gc=0,Vc=Vx=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");xi>uE&&(xi=0,Vc=null,console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")),e.alternate===null&&(e.flags&4098)!==0&&Yk(e);for(var t=e,a=t.return;a!==null;)t.alternate===null&&(t.flags&4098)!==0&&Yk(e),t=a,a=t.return;return t.tag===3?t.stateNode:null}function jl(e){if(Tr===null)return e;var t=Tr(e);return t===void 0?e:t.current}function Fg(e){if(Tr===null)return e;var t=Tr(e);return t===void 0?e!==null&&e!==void 0&&typeof e.render==="function"&&(t=jl(e.render),e.render!==t)?(t={$$typeof:rc,render:t},e.displayName!==void 0&&(t.displayName=e.displayName),t):e:t.current}function N0(e,t){if(Tr===null)return!1;var a=e.elementType;t=t.type;var o=!1,n=typeof t==="object"&&t!==null?t.$$typeof:null;switch(e.tag){case 1:typeof t==="function"&&(o=!0);break;case 0:typeof t==="function"?o=!0:n===lr&&(o=!0);break;case 11:n===rc?o=!0:n===lr&&(o=!0);break;case 14:case 15:n===gm?o=!0:n===lr&&(o=!0);break;default:return!1}return o&&(e=Tr(a),e!==void 0&&e===Tr(t))?!0:!1}function q0(e){Tr!==null&&typeof WeakSet==="function"&&(Tu===null&&(Tu=new WeakSet),Tu.add(e))}function O0(e,t,a){do{var o=e,n=o.alternate,s=o.child,c=o.sibling,p=o.tag;o=o.type;var x=null;switch(p){case 0:case 15:case 1:x=o;break;case 11:x=o.render}if(Tr===null)throw Error("Expected resolveFamily to be set during hot reload.");var k=!1;if(o=!1,x!==null&&(x=Tr(x),x!==void 0&&(a.has(x)?o=!0:t.has(x)&&(p===1?o=!0:k=!0))),Tu!==null&&(Tu.has(e)||n!==null&&Tu.has(n))&&(o=!0),o&&(e._debugNeedsRemount=!0),o||k)n=Co(e,2),n!==null&&Ra(n,e,2);if(s===null||o||O0(s,t,a),c===null)break;e=c}while(1)}function gA(e,t,a,o){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=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,_w||typeof Object.preventExtensions!=="function"||Object.preventExtensions(this)}function Gg(e){return e=e.prototype,!(!e||!e.isReactComponent)}function es(e,t){var a=e.alternate;switch(a===null?(a=L(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a._debugOwner=e._debugOwner,a._debugStack=e._debugStack,a._debugTask=e._debugTask,a._debugHookTypes=e._debugHookTypes,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null,a.actualDuration=-0,a.actualStartTime=-1.1),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,_debugThenableState:t._debugThenableState},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a.selfBaseDuration=e.selfBaseDuration,a.treeBaseDuration=e.treeBaseDuration,a._debugInfo=e._debugInfo,a._debugNeedsRemount=e._debugNeedsRemount,a.tag){case 0:case 15:a.type=jl(e.type);break;case 1:a.type=jl(e.type);break;case 11:a.type=Fg(e.type)}return a}function B0(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.selfBaseDuration=0,e.treeBaseDuration=0):(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,_debugThenableState:t._debugThenableState},e.selfBaseDuration=a.selfBaseDuration,e.treeBaseDuration=a.treeBaseDuration),e}function Vg(e,t,a,o,n,s){var c=0,p=e;if(typeof e==="function")Gg(e)&&(c=1),p=jl(p);else if(typeof e==="string")c=Ee(),c=CM(e,a,c)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Bv:return t=L(31,a,t,n),t.elementType=Bv,t.lanes=s,t;case mu:return $l(a.children,n,s,t);case hm:c=8,n|=Io,n|=Xr;break;case Ev:return e=a,o=n,typeof e.id!=="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id),t=L(12,e,t,o|mt),t.elementType=Ev,t.lanes=s,t.stateNode={effectDuration:0,passiveEffectDuration:0},t;case qv:return t=L(13,a,t,n),t.elementType=qv,t.lanes=s,t;case Ov:return t=L(19,a,t,n),t.elementType=Ov,t.lanes=s,t;default:if(typeof e==="object"&&e!==null)switch(e.$$typeof){case Rn:c=10;break e;case Nv:c=9;break e;case rc:c=11,p=Fg(p);break e;case gm:c=14;break e;case lr:c=16,p=null;break e}if(p="",e===void 0||typeof e==="object"&&e!==null&&Object.keys(e).length===0)p+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";e===null?a="null":eo(e)?a="array":e!==void 0&&e.$$typeof===In?(a="<"+(ee(e.type)||"Unknown")+" />",p=" Did you accidentally export a JSX literal instead of a component?"):a=typeof e,(c=o?G(o):null)&&(p+=`
72
72
 
73
- Check the render method of \``+c+"`."),c=29,a=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(a+"."+p)),p=null}return t=L(c,a,t,n),t.elementType=e,t.type=p,t.lanes=s,t._debugOwner=o,t}function bp(e,t,a){return t=Vg(e.type,e.key,e.props,e._owner,t,a),t._debugOwner=e._owner,t._debugStack=e._debugStack,t._debugTask=e._debugTask,t}function $l(e,t,a,o){return e=L(7,e,o,t),e.lanes=a,e}function jg(e,t,a){return e=L(6,e,null,t),e.lanes=a,e}function z0(e){var t=L(18,null,null,Ze);return t.stateNode=e,t}function $g(e,t,a){return t=L(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function tr(e,t){if(typeof e==="object"&&e!==null){var a=fx.get(e);if(a!==void 0)return a;return t={value:e,source:t,stack:ua(t)},fx.set(e,t),t}return{value:e,source:t,stack:ua(t)}}function ts(e,t){Ps(),Iu[Ru++]=yc,Iu[Ru++]=Dm,Dm=e,yc=t}function P0(e,t,a){Ps(),Ir[Rr++]=ds,Ir[Rr++]=cs,Ir[Rr++]=ni,ni=e;var o=ds;e=cs;var n=32-Eo(o)-1;o&=~(1<<n),a+=1;var s=32-Eo(t)+n;if(30<s){var c=n-n%5;s=(o&(1<<c)-1).toString(32),o>>=c,n-=c,ds=1<<32-Eo(t)+n|a<<n|o,cs=s+e}else ds=1<<s|a<<n|o,cs=e}function Xg(e){Ps(),e.return!==null&&(ts(e,1),P0(e,1,0))}function Yg(e){for(;e===Dm;)Dm=Iu[--Ru],Iu[Ru]=null,yc=Iu[--Ru],Iu[Ru]=null;for(;e===ni;)ni=Ir[--Rr],Ir[Rr]=null,cs=Ir[--Rr],Ir[Rr]=null,ds=Ir[--Rr],Ir[Rr]=null}function U0(){return Ps(),ni!==null?{id:ds,overflow:cs}:null}function _0(e,t){Ps(),Ir[Rr++]=ds,Ir[Rr++]=cs,Ir[Rr++]=ni,ds=t.id,cs=t.overflow,ni=e}function Ps(){Rt||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function Xl(e,t){if(e.return===null){if(dr===null)dr={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t};else{if(dr.fiber!==e)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");dr.distanceFromLeaf>t&&(dr.distanceFromLeaf=t)}return dr}var a=Xl(e.return,t+1).children;if(0<a.length&&a[a.length-1].fiber===e)return a=a[a.length-1],a.distanceFromLeaf>t&&(a.distanceFromLeaf=t),a;return t={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t},a.push(t),t}function H0(){Rt&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function Sp(e,t){qn||(e=Xl(e,0),e.serverProps=null,t!==null&&(t=xL(t),e.serverTail.push(t)))}function Us(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,a="",o=dr;throw o!==null&&(dr=null,a=Ng(o)),Dd(tr(Error("Hydration failed because the server rendered "+(t?"text":"HTML")+` didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
73
+ Check the render method of \``+c+"`."),c=29,a=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(a+"."+p)),p=null}return t=L(c,a,t,n),t.elementType=e,t.type=p,t.lanes=s,t._debugOwner=o,t}function bp(e,t,a){return t=Vg(e.type,e.key,e.props,e._owner,t,a),t._debugOwner=e._owner,t._debugStack=e._debugStack,t._debugTask=e._debugTask,t}function $l(e,t,a,o){return e=L(7,e,o,t),e.lanes=a,e}function jg(e,t,a){return e=L(6,e,null,t),e.lanes=a,e}function P0(e){var t=L(18,null,null,Ze);return t.stateNode=e,t}function $g(e,t,a){return t=L(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function tr(e,t){if(typeof e==="object"&&e!==null){var a=fx.get(e);if(a!==void 0)return a;return t={value:e,source:t,stack:ua(t)},fx.set(e,t),t}return{value:e,source:t,stack:ua(t)}}function ts(e,t){zs(),Iu[Ru++]=yc,Iu[Ru++]=Dm,Dm=e,yc=t}function z0(e,t,a){zs(),Ir[Rr++]=ds,Ir[Rr++]=cs,Ir[Rr++]=ni,ni=e;var o=ds;e=cs;var n=32-Eo(o)-1;o&=~(1<<n),a+=1;var s=32-Eo(t)+n;if(30<s){var c=n-n%5;s=(o&(1<<c)-1).toString(32),o>>=c,n-=c,ds=1<<32-Eo(t)+n|a<<n|o,cs=s+e}else ds=1<<s|a<<n|o,cs=e}function Xg(e){zs(),e.return!==null&&(ts(e,1),z0(e,1,0))}function Yg(e){for(;e===Dm;)Dm=Iu[--Ru],Iu[Ru]=null,yc=Iu[--Ru],Iu[Ru]=null;for(;e===ni;)ni=Ir[--Rr],Ir[Rr]=null,cs=Ir[--Rr],Ir[Rr]=null,ds=Ir[--Rr],Ir[Rr]=null}function U0(){return zs(),ni!==null?{id:ds,overflow:cs}:null}function _0(e,t){zs(),Ir[Rr++]=ds,Ir[Rr++]=cs,Ir[Rr++]=ni,ds=t.id,cs=t.overflow,ni=e}function zs(){Rt||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function Xl(e,t){if(e.return===null){if(dr===null)dr={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t};else{if(dr.fiber!==e)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");dr.distanceFromLeaf>t&&(dr.distanceFromLeaf=t)}return dr}var a=Xl(e.return,t+1).children;if(0<a.length&&a[a.length-1].fiber===e)return a=a[a.length-1],a.distanceFromLeaf>t&&(a.distanceFromLeaf=t),a;return t={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t},a.push(t),t}function H0(){Rt&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function Sp(e,t){qn||(e=Xl(e,0),e.serverProps=null,t!==null&&(t=xL(t),e.serverTail.push(t)))}function Us(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,a="",o=dr;throw o!==null&&(dr=null,a=Ng(o)),Dd(tr(Error("Hydration failed because the server rendered "+(t?"text":"HTML")+` didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
74
74
 
75
75
  - A server/client branch \`if (typeof window !== 'undefined')\`.
76
76
  - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
@@ -80,7 +80,7 @@ Check the render method of \``+c+"`."),c=29,a=Error("Element type is invalid: ex
80
80
 
81
81
  It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
82
82
 
83
- https://react.dev/link/hydration-mismatch`+a),e)),px}function F0(e){var{stateNode:t,type:a,memoizedProps:o}=e;switch(t[xo]=e,t[No]=o,mv(a,o),a){case"dialog":Et("cancel",t),Et("close",t);break;case"iframe":case"object":case"embed":Et("load",t);break;case"video":case"audio":for(a=0;a<jc.length;a++)Et(jc[a],t);break;case"source":Et("error",t);break;case"img":case"image":case"link":Et("error",t),Et("load",t);break;case"details":Et("toggle",t);break;case"input":zs("input",o),Et("invalid",t),Yb(t,o),Kb(t,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0);break;case"option":Qb(t,o);break;case"select":zs("select",o),Et("invalid",t),Zb(t,o);break;case"textarea":zs("textarea",o),Et("invalid",t),Jb(t,o),t0(t,o.value,o.defaultValue,o.children)}a=o.children,typeof a!=="string"&&typeof a!=="number"&&typeof a!=="bigint"||t.textContent===""+a||o.suppressHydrationWarning===!0||nL(t.textContent,a)?(o.popover!=null&&(Et("beforetoggle",t),Et("toggle",t)),o.onScroll!=null&&Et("scroll",t),o.onScrollEnd!=null&&Et("scrollend",t),o.onClick!=null&&(t.onclick=Jn),t=!0):t=!1,t||Us(e,!0)}function G0(e){for(bo=e.return;bo;)switch(bo.tag){case 5:case 31:case 13:Ar=!1;return;case 27:case 3:Ar=!0;return;default:bo=bo.return}}function Zi(e){if(e!==bo)return!1;if(!Rt)return G0(e),Rt=!0,!1;var t=e.tag,a;if(a=t!==3&&t!==27){if(a=t===5)a=e.type,a=!(a!=="form"&&a!=="button")||xv(e.type,e.memoizedProps);a=!a}if(a&&va){for(a=va;a;){var o=Xl(e,0),n=xL(a);o.serverTail.push(n),a=n.type==="Suspense"?Lv(a):sr(a.nextSibling)}Us(e)}if(G0(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");va=Lv(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");va=Lv(e)}else t===27?(t=va,Ks(e.type)?(e=ab,ab=null,va=e):va=t):va=bo?sr(e.stateNode.nextSibling):null;return!0}function Yl(){va=bo=null,qn=Rt=!1}function Kg(){var e=rl;return e!==null&&(Uo===null?Uo=e:Uo.push.apply(Uo,e),rl=null),e}function Dd(e){rl===null?rl=[e]:rl.push(e)}function Qg(){var e=dr;if(e!==null){dr=null;for(var t=Ng(e);0<e.children.length;)e=e.children[0];H(e.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:
83
+ https://react.dev/link/hydration-mismatch`+a),e)),px}function F0(e){var{stateNode:t,type:a,memoizedProps:o}=e;switch(t[xo]=e,t[No]=o,mv(a,o),a){case"dialog":Et("cancel",t),Et("close",t);break;case"iframe":case"object":case"embed":Et("load",t);break;case"video":case"audio":for(a=0;a<jc.length;a++)Et(jc[a],t);break;case"source":Et("error",t);break;case"img":case"image":case"link":Et("error",t),Et("load",t);break;case"details":Et("toggle",t);break;case"input":Ps("input",o),Et("invalid",t),Yb(t,o),Kb(t,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0);break;case"option":Qb(t,o);break;case"select":Ps("select",o),Et("invalid",t),Zb(t,o);break;case"textarea":Ps("textarea",o),Et("invalid",t),Jb(t,o),t0(t,o.value,o.defaultValue,o.children)}a=o.children,typeof a!=="string"&&typeof a!=="number"&&typeof a!=="bigint"||t.textContent===""+a||o.suppressHydrationWarning===!0||nL(t.textContent,a)?(o.popover!=null&&(Et("beforetoggle",t),Et("toggle",t)),o.onScroll!=null&&Et("scroll",t),o.onScrollEnd!=null&&Et("scrollend",t),o.onClick!=null&&(t.onclick=Jn),t=!0):t=!1,t||Us(e,!0)}function G0(e){for(bo=e.return;bo;)switch(bo.tag){case 5:case 31:case 13:Ar=!1;return;case 27:case 3:Ar=!0;return;default:bo=bo.return}}function Zi(e){if(e!==bo)return!1;if(!Rt)return G0(e),Rt=!0,!1;var t=e.tag,a;if(a=t!==3&&t!==27){if(a=t===5)a=e.type,a=!(a!=="form"&&a!=="button")||xv(e.type,e.memoizedProps);a=!a}if(a&&va){for(a=va;a;){var o=Xl(e,0),n=xL(a);o.serverTail.push(n),a=n.type==="Suspense"?Lv(a):sr(a.nextSibling)}Us(e)}if(G0(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");va=Lv(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");va=Lv(e)}else t===27?(t=va,Ks(e.type)?(e=ab,ab=null,va=e):va=t):va=bo?sr(e.stateNode.nextSibling):null;return!0}function Yl(){va=bo=null,qn=Rt=!1}function Kg(){var e=rl;return e!==null&&(Uo===null?Uo=e:Uo.push.apply(Uo,e),rl=null),e}function Dd(e){rl===null?rl=[e]:rl.push(e)}function Qg(){var e=dr;if(e!==null){dr=null;for(var t=Ng(e);0<e.children.length;)e=e.children[0];H(e.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:
84
84
 
85
85
  - A server/client branch \`if (typeof window !== 'undefined')\`.
86
86
  - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
@@ -99,7 +99,7 @@ It can also happen if the client has a browser extension installed which messes
99
99
  root.render(%s)`,t):console.error(`Symbols are not valid as a React child.
100
100
  <%s>%s</%s>`,a,t,a))}function Ep(e,t){var a=oy();a!==null?a.run(aS.bind(null,e,t)):aS(e,t)}function oS(e){function t(M,E){if(e){var N=M.deletions;N===null?(M.deletions=[E],M.flags|=16):N.push(E)}}function a(M,E){if(!e)return null;for(;E!==null;)t(M,E),E=E.sibling;return null}function o(M){for(var E=new Map;M!==null;)M.key!==null?E.set(M.key,M):E.set(M.index,M),M=M.sibling;return E}function n(M,E){return M=es(M,E),M.index=0,M.sibling=null,M}function s(M,E,N){if(M.index=N,!e)return M.flags|=1048576,E;if(N=M.alternate,N!==null)return N=N.index,N<E?(M.flags|=67108866,E):N;return M.flags|=67108866,E}function c(M){return e&&M.alternate===null&&(M.flags|=67108866),M}function p(M,E,N,J){if(E===null||E.tag!==6)return E=jg(N,M.mode,J),E.return=M,E._debugOwner=M,E._debugTask=M._debugTask,E._debugInfo=ht,E;return E=n(E,N),E.return=M,E._debugInfo=ht,E}function x(M,E,N,J){var ve=N.type;if(ve===mu)return E=q(M,E,N.props.children,J,N.key),Rp(N,E,M),E;if(E!==null&&(E.elementType===ve||N0(E,N)||typeof ve==="object"&&ve!==null&&ve.$$typeof===lr&&Hs(ve)===E.type))return E=n(E,N.props),Od(E,N),E.return=M,E._debugOwner=N._owner,E._debugInfo=ht,E;return E=bp(N,M.mode,J),Od(E,N),E.return=M,E._debugInfo=ht,E}function k(M,E,N,J){if(E===null||E.tag!==4||E.stateNode.containerInfo!==N.containerInfo||E.stateNode.implementation!==N.implementation)return E=$g(N,M.mode,J),E.return=M,E._debugInfo=ht,E;return E=n(E,N.children||[]),E.return=M,E._debugInfo=ht,E}function q(M,E,N,J,ve){if(E===null||E.tag!==7)return E=$l(N,M.mode,J,ve),E.return=M,E._debugOwner=M,E._debugTask=M._debugTask,E._debugInfo=ht,E;return E=n(E,N),E.return=M,E._debugInfo=ht,E}function B(M,E,N){if(typeof E==="string"&&E!==""||typeof E==="number"||typeof E==="bigint")return E=jg(""+E,M.mode,N),E.return=M,E._debugOwner=M,E._debugTask=M._debugTask,E._debugInfo=ht,E;if(typeof E==="object"&&E!==null){switch(E.$$typeof){case In:return N=bp(E,M.mode,N),Od(N,E),N.return=M,M=go(E._debugInfo),N._debugInfo=ht,ht=M,N;case pu:return E=$g(E,M.mode,N),E.return=M,E._debugInfo=ht,E;case lr:var J=go(E._debugInfo);return E=Hs(E),M=B(M,E,N),ht=J,M}if(eo(E)||ce(E))return N=$l(E,M.mode,N,null),N.return=M,N._debugOwner=M,N._debugTask=M._debugTask,M=go(E._debugInfo),N._debugInfo=ht,ht=M,N;if(typeof E.then==="function")return J=go(E._debugInfo),M=B(M,Ap(E),N),ht=J,M;if(E.$$typeof===Rn)return B(M,wp(M,E),N);Mp(M,E)}return typeof E==="function"&&Dp(M,E),typeof E==="symbol"&&Ep(M,E),null}function D(M,E,N,J){var ve=E!==null?E.key:null;if(typeof N==="string"&&N!==""||typeof N==="number"||typeof N==="bigint")return ve!==null?null:p(M,E,""+N,J);if(typeof N==="object"&&N!==null){switch(N.$$typeof){case In:return N.key===ve?(ve=go(N._debugInfo),M=x(M,E,N,J),ht=ve,M):null;case pu:return N.key===ve?k(M,E,N,J):null;case lr:return ve=go(N._debugInfo),N=Hs(N),M=D(M,E,N,J),ht=ve,M}if(eo(N)||ce(N)){if(ve!==null)return null;return ve=go(N._debugInfo),M=q(M,E,N,J,null),ht=ve,M}if(typeof N.then==="function")return ve=go(N._debugInfo),M=D(M,E,Ap(N),J),ht=ve,M;if(N.$$typeof===Rn)return D(M,E,wp(M,N),J);Mp(M,N)}return typeof N==="function"&&Dp(M,N),typeof N==="symbol"&&Ep(M,N),null}function F(M,E,N,J,ve){if(typeof J==="string"&&J!==""||typeof J==="number"||typeof J==="bigint")return M=M.get(N)||null,p(E,M,""+J,ve);if(typeof J==="object"&&J!==null){switch(J.$$typeof){case In:return N=M.get(J.key===null?N:J.key)||null,M=go(J._debugInfo),E=x(E,N,J,ve),ht=M,E;case pu:return M=M.get(J.key===null?N:J.key)||null,k(E,M,J,ve);case lr:var ot=go(J._debugInfo);return J=Hs(J),E=F(M,E,N,J,ve),ht=ot,E}if(eo(J)||ce(J))return N=M.get(N)||null,M=go(J._debugInfo),E=q(E,N,J,ve,null),ht=M,E;if(typeof J.then==="function")return ot=go(J._debugInfo),E=F(M,E,N,Ap(J),ve),ht=ot,E;if(J.$$typeof===Rn)return F(M,E,N,wp(E,J),ve);Mp(E,J)}return typeof J==="function"&&Dp(E,J),typeof J==="symbol"&&Ep(E,J),null}function me(M,E,N,J){if(typeof N!=="object"||N===null)return J;switch(N.$$typeof){case In:case pu:y(M,E,N);var ve=N.key;if(typeof ve!=="string")break;if(J===null){J=new Set,J.add(ve);break}if(!J.has(ve)){J.add(ve);break}H(E,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",ve)});break;case lr:N=Hs(N),me(M,E,N,J)}return J}function xe(M,E,N,J){for(var ve=null,ot=null,Be=null,Me=E,dt=E=0,xa=null;Me!==null&&dt<N.length;dt++){Me.index>dt?(xa=Me,Me=null):xa=Me.sibling;var Fa=D(M,Me,N[dt],J);if(Fa===null){Me===null&&(Me=xa);break}ve=me(M,Fa,N[dt],ve),e&&Me&&Fa.alternate===null&&t(M,Me),E=s(Fa,E,dt),Be===null?ot=Fa:Be.sibling=Fa,Be=Fa,Me=xa}if(dt===N.length)return a(M,Me),Rt&&ts(M,dt),ot;if(Me===null){for(;dt<N.length;dt++)Me=B(M,N[dt],J),Me!==null&&(ve=me(M,Me,N[dt],ve),E=s(Me,E,dt),Be===null?ot=Me:Be.sibling=Me,Be=Me);return Rt&&ts(M,dt),ot}for(Me=o(Me);dt<N.length;dt++)xa=F(Me,M,dt,N[dt],J),xa!==null&&(ve=me(M,xa,N[dt],ve),e&&xa.alternate!==null&&Me.delete(xa.key===null?dt:xa.key),E=s(xa,E,dt),Be===null?ot=xa:Be.sibling=xa,Be=xa);return e&&Me.forEach(function(Ls){return t(M,Ls)}),Rt&&ts(M,dt),ot}function fa(M,E,N,J){if(N==null)throw Error("An iterable object provided no iterator.");for(var ve=null,ot=null,Be=E,Me=E=0,dt=null,xa=null,Fa=N.next();Be!==null&&!Fa.done;Me++,Fa=N.next()){Be.index>Me?(dt=Be,Be=null):dt=Be.sibling;var Ls=D(M,Be,Fa.value,J);if(Ls===null){Be===null&&(Be=dt);break}xa=me(M,Ls,Fa.value,xa),e&&Be&&Ls.alternate===null&&t(M,Be),E=s(Ls,E,Me),ot===null?ve=Ls:ot.sibling=Ls,ot=Ls,Be=dt}if(Fa.done)return a(M,Be),Rt&&ts(M,Me),ve;if(Be===null){for(;!Fa.done;Me++,Fa=N.next())Be=B(M,Fa.value,J),Be!==null&&(xa=me(M,Be,Fa.value,xa),E=s(Be,E,Me),ot===null?ve=Be:ot.sibling=Be,ot=Be);return Rt&&ts(M,Me),ve}for(Be=o(Be);!Fa.done;Me++,Fa=N.next())dt=F(Be,M,Me,Fa.value,J),dt!==null&&(xa=me(M,dt,Fa.value,xa),e&&dt.alternate!==null&&Be.delete(dt.key===null?Me:dt.key),E=s(dt,E,Me),ot===null?ve=dt:ot.sibling=dt,ot=dt);return e&&Be.forEach(function(TE){return t(M,TE)}),Rt&&ts(M,Me),ve}function Nt(M,E,N,J){if(typeof N==="object"&&N!==null&&N.type===mu&&N.key===null&&(Rp(N,null,M),N=N.props.children),typeof N==="object"&&N!==null){switch(N.$$typeof){case In:var ve=go(N._debugInfo);e:{for(var ot=N.key;E!==null;){if(E.key===ot){if(ot=N.type,ot===mu){if(E.tag===7){a(M,E.sibling),J=n(E,N.props.children),J.return=M,J._debugOwner=N._owner,J._debugInfo=ht,Rp(N,J,M),M=J;break e}}else if(E.elementType===ot||N0(E,N)||typeof ot==="object"&&ot!==null&&ot.$$typeof===lr&&Hs(ot)===E.type){a(M,E.sibling),J=n(E,N.props),Od(J,N),J.return=M,J._debugOwner=N._owner,J._debugInfo=ht,M=J;break e}a(M,E);break}else t(M,E);E=E.sibling}N.type===mu?(J=$l(N.props.children,M.mode,J,N.key),J.return=M,J._debugOwner=M,J._debugTask=M._debugTask,J._debugInfo=ht,Rp(N,J,M),M=J):(J=bp(N,M.mode,J),Od(J,N),J.return=M,J._debugInfo=ht,M=J)}return M=c(M),ht=ve,M;case pu:e:{ve=N;for(N=ve.key;E!==null;){if(E.key===N)if(E.tag===4&&E.stateNode.containerInfo===ve.containerInfo&&E.stateNode.implementation===ve.implementation){a(M,E.sibling),J=n(E,ve.children||[]),J.return=M,M=J;break e}else{a(M,E);break}else t(M,E);E=E.sibling}J=$g(ve,M.mode,J),J.return=M,M=J}return c(M);case lr:return ve=go(N._debugInfo),N=Hs(N),M=Nt(M,E,N,J),ht=ve,M}if(eo(N))return ve=go(N._debugInfo),M=xe(M,E,N,J),ht=ve,M;if(ce(N)){if(ve=go(N._debugInfo),ot=ce(N),typeof ot!=="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var Be=ot.call(N);if(Be===N){if(M.tag!==0||Object.prototype.toString.call(M.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(Be)!=="[object Generator]")iC||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),iC=!0}else N.entries!==ot||Lx||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Lx=!0);return M=fa(M,E,Be,J),ht=ve,M}if(typeof N.then==="function")return ve=go(N._debugInfo),M=Nt(M,E,Ap(N),J),ht=ve,M;if(N.$$typeof===Rn)return Nt(M,E,wp(M,N),J);Mp(M,N)}if(typeof N==="string"&&N!==""||typeof N==="number"||typeof N==="bigint")return ve=""+N,E!==null&&E.tag===6?(a(M,E.sibling),J=n(E,ve),J.return=M,M=J):(a(M,E),J=jg(ve,M.mode,J),J.return=M,J._debugOwner=M,J._debugTask=M._debugTask,J._debugInfo=ht,M=J),c(M);return typeof N==="function"&&Dp(M,N),typeof N==="symbol"&&Ep(M,N),a(M,E)}return function(M,E,N,J){var ve=ht;ht=null;try{Dc=0;var ot=Nt(M,E,N,J);return qu=null,ot}catch(xa){if(xa===Nu||xa===Hm)throw xa;var Be=L(29,xa,null,M.mode);Be.lanes=J,Be.return=M;var Me=Be._debugInfo=ht;if(Be._debugOwner=M._debugOwner,Be._debugTask=M._debugTask,Me!=null){for(var dt=Me.length-1;0<=dt;dt--)if(typeof Me[dt].stack==="string"){Be._debugOwner=Me[dt],Be._debugTask=Me[dt].debugTask;break}}return Be}finally{ht=ve}}}function rS(e,t){var a=eo(e);return e=!a&&typeof ce(e)==="function",a||e?(a=a?"array":"iterable",console.error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",a,t,a),!1):!0}function ry(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ny(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 Fs(e){return{lane:e,tag:pC,payload:null,callback:null,next:null}}function Gs(e,t,a){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,Cx===o&&!gC){var n=V(e);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
101
101
 
102
- Please update the following component: %s`,n),gC=!0}if((Ut&ao)!==uo)return n=o.pending,n===null?t.next=t:(t.next=n.next,n.next=t),o.pending=t,t=xp(e),E0(e,null,a),t;return vp(e,o,t,a),xp(e)}function Bd(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var o=t.lanes;o&=e.pendingLanes,a|=o,t.lanes=a,Ul(e,a)}}function Np(e,t){var a=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,a===o)){var n=null,s=null;if(a=a.firstBaseUpdate,a!==null){do{var c={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};s===null?n=s=c:s=s.next=c,a=a.next}while(a!==null);s===null?n=s=t:s=s.next=t}else n=s=t;a={baseState:o.baseState,firstBaseUpdate:n,lastBaseUpdate:s,shared:o.shared,callbacks:o.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}function zd(){if(Tx){var e=Eu;if(e!==null)throw e}}function Pd(e,t,a,o){Tx=!1;var n=e.updateQueue;dl=!1,Cx=n.shared;var{firstBaseUpdate:s,lastBaseUpdate:c}=n,p=n.shared.pending;if(p!==null){n.shared.pending=null;var x=p,k=x.next;x.next=null,c===null?s=k:c.next=k,c=x;var q=e.alternate;q!==null&&(q=q.updateQueue,p=q.lastBaseUpdate,p!==c&&(p===null?q.firstBaseUpdate=k:p.next=k,q.lastBaseUpdate=x))}if(s!==null){var B=n.baseState;c=0,q=k=x=null,p=s;do{var D=p.lane&-536870913,F=D!==p.lane;if(F?(gt&D)===D:(o&D)===D){D!==0&&D===ui&&(Tx=!0),q!==null&&(q=q.next={lane:0,tag:p.tag,payload:p.payload,callback:null,next:null});e:{D=e;var me=p,xe=t,fa=a;switch(me.tag){case mC:if(me=me.payload,typeof me==="function"){Mu=!0;var Nt=me.call(fa,B,xe);if(D.mode&Io){Wt(!0);try{me.call(fa,B,xe)}finally{Wt(!1)}}Mu=!1,B=Nt;break e}B=me;break e;case wx:D.flags=D.flags&-65537|128;case pC:if(Nt=me.payload,typeof Nt==="function"){if(Mu=!0,me=Nt.call(fa,B,xe),D.mode&Io){Wt(!0);try{Nt.call(fa,B,xe)}finally{Wt(!1)}}Mu=!1}else me=Nt;if(me===null||me===void 0)break e;B=Lt({},B,me);break e;case hC:dl=!0}}D=p.callback,D!==null&&(e.flags|=64,F&&(e.flags|=8192),F=n.callbacks,F===null?n.callbacks=[D]:F.push(D))}else F={lane:D,tag:p.tag,payload:p.payload,callback:p.callback,next:null},q===null?(k=q=F,x=B):q=q.next=F,c|=D;if(p=p.next,p===null)if(p=n.shared.pending,p===null)break;else F=p,p=F.next,F.next=null,n.lastBaseUpdate=F,n.shared.pending=null}while(1);q===null&&(x=B),n.baseState=x,n.firstBaseUpdate=k,n.lastBaseUpdate=q,s===null&&(n.shared.lanes=0),pl|=c,e.lanes=c,e.memoizedState=B}Cx=null}function nS(e,t){if(typeof e!=="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+e);e.call(t)}function bA(e,t){var a=e.shared.hiddenCallbacks;if(a!==null)for(e.shared.hiddenCallbacks=null,e=0;e<a.length;e++)nS(a[e],t)}function sS(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)nS(a[e],t)}function lS(e,t){var a=Pn;Ne(Gm,a,e),Ne(Ou,t,e),Pn=a|t.baseLanes}function sy(e){Ne(Gm,Pn,e),Ne(Ou,Ou.current,e)}function ly(e){Pn=Gm.current,pe(Ou,e),pe(Gm,e)}function Vs(e){var t=e.alternate;Ne(Ha,Ha.current&Bu,e),Ne(cr,e,e),Dr===null&&(t===null||Ou.current!==null?Dr=e:t.memoizedState!==null&&(Dr=e))}function iy(e){Ne(Ha,Ha.current,e),Ne(cr,e,e),Dr===null&&(Dr=e)}function iS(e){e.tag===22?(Ne(Ha,Ha.current,e),Ne(cr,e,e),Dr===null&&(Dr=e)):js(e)}function js(e){Ne(Ha,Ha.current,e),Ne(cr,cr.current,e)}function rr(e){pe(cr,e),Dr===e&&(Dr=null),pe(Ha,e)}function qp(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Sv(a)||kv(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}function kt(){var e=X;Nr===null?Nr=[e]:Nr.push(e)}function ne(){var e=X;if(Nr!==null&&(vs++,Nr[vs]!==e)){var t=V(at);if(!yC.has(t)&&(yC.add(t),Nr!==null)){for(var a="",o=0;o<=vs;o++){var n=Nr[o],s=o===vs?e:n;for(n=o+1+". "+n;30>n.length;)n+=" ";n+=s+`
102
+ Please update the following component: %s`,n),gC=!0}if((Ut&ao)!==uo)return n=o.pending,n===null?t.next=t:(t.next=n.next,n.next=t),o.pending=t,t=xp(e),E0(e,null,a),t;return vp(e,o,t,a),xp(e)}function Bd(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var o=t.lanes;o&=e.pendingLanes,a|=o,t.lanes=a,Ul(e,a)}}function Np(e,t){var a=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,a===o)){var n=null,s=null;if(a=a.firstBaseUpdate,a!==null){do{var c={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};s===null?n=s=c:s=s.next=c,a=a.next}while(a!==null);s===null?n=s=t:s=s.next=t}else n=s=t;a={baseState:o.baseState,firstBaseUpdate:n,lastBaseUpdate:s,shared:o.shared,callbacks:o.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}function Pd(){if(Tx){var e=Eu;if(e!==null)throw e}}function zd(e,t,a,o){Tx=!1;var n=e.updateQueue;dl=!1,Cx=n.shared;var{firstBaseUpdate:s,lastBaseUpdate:c}=n,p=n.shared.pending;if(p!==null){n.shared.pending=null;var x=p,k=x.next;x.next=null,c===null?s=k:c.next=k,c=x;var q=e.alternate;q!==null&&(q=q.updateQueue,p=q.lastBaseUpdate,p!==c&&(p===null?q.firstBaseUpdate=k:p.next=k,q.lastBaseUpdate=x))}if(s!==null){var B=n.baseState;c=0,q=k=x=null,p=s;do{var D=p.lane&-536870913,F=D!==p.lane;if(F?(gt&D)===D:(o&D)===D){D!==0&&D===ui&&(Tx=!0),q!==null&&(q=q.next={lane:0,tag:p.tag,payload:p.payload,callback:null,next:null});e:{D=e;var me=p,xe=t,fa=a;switch(me.tag){case mC:if(me=me.payload,typeof me==="function"){Mu=!0;var Nt=me.call(fa,B,xe);if(D.mode&Io){Wt(!0);try{me.call(fa,B,xe)}finally{Wt(!1)}}Mu=!1,B=Nt;break e}B=me;break e;case wx:D.flags=D.flags&-65537|128;case pC:if(Nt=me.payload,typeof Nt==="function"){if(Mu=!0,me=Nt.call(fa,B,xe),D.mode&Io){Wt(!0);try{Nt.call(fa,B,xe)}finally{Wt(!1)}}Mu=!1}else me=Nt;if(me===null||me===void 0)break e;B=Lt({},B,me);break e;case hC:dl=!0}}D=p.callback,D!==null&&(e.flags|=64,F&&(e.flags|=8192),F=n.callbacks,F===null?n.callbacks=[D]:F.push(D))}else F={lane:D,tag:p.tag,payload:p.payload,callback:p.callback,next:null},q===null?(k=q=F,x=B):q=q.next=F,c|=D;if(p=p.next,p===null)if(p=n.shared.pending,p===null)break;else F=p,p=F.next,F.next=null,n.lastBaseUpdate=F,n.shared.pending=null}while(1);q===null&&(x=B),n.baseState=x,n.firstBaseUpdate=k,n.lastBaseUpdate=q,s===null&&(n.shared.lanes=0),pl|=c,e.lanes=c,e.memoizedState=B}Cx=null}function nS(e,t){if(typeof e!=="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+e);e.call(t)}function bA(e,t){var a=e.shared.hiddenCallbacks;if(a!==null)for(e.shared.hiddenCallbacks=null,e=0;e<a.length;e++)nS(a[e],t)}function sS(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)nS(a[e],t)}function lS(e,t){var a=zn;Ne(Gm,a,e),Ne(Ou,t,e),zn=a|t.baseLanes}function sy(e){Ne(Gm,zn,e),Ne(Ou,Ou.current,e)}function ly(e){zn=Gm.current,pe(Ou,e),pe(Gm,e)}function Vs(e){var t=e.alternate;Ne(Ha,Ha.current&Bu,e),Ne(cr,e,e),Dr===null&&(t===null||Ou.current!==null?Dr=e:t.memoizedState!==null&&(Dr=e))}function iy(e){Ne(Ha,Ha.current,e),Ne(cr,e,e),Dr===null&&(Dr=e)}function iS(e){e.tag===22?(Ne(Ha,Ha.current,e),Ne(cr,e,e),Dr===null&&(Dr=e)):js(e)}function js(e){Ne(Ha,Ha.current,e),Ne(cr,cr.current,e)}function rr(e){pe(cr,e),Dr===e&&(Dr=null),pe(Ha,e)}function qp(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Sv(a)||kv(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}function kt(){var e=X;Nr===null?Nr=[e]:Nr.push(e)}function ne(){var e=X;if(Nr!==null&&(vs++,Nr[vs]!==e)){var t=V(at);if(!yC.has(t)&&(yC.add(t),Nr!==null)){for(var a="",o=0;o<=vs;o++){var n=Nr[o],s=o===vs?e:n;for(n=o+1+". "+n;30>n.length;)n+=" ";n+=s+`
103
103
  `,a+=n}console.error(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks
104
104
 
105
105
  Previous render Next render
@@ -112,7 +112,7 @@ Please update the following component: %s`,n),gC=!0}if((Ut&ao)!==uo)return n=o.p
112
112
  See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function uy(e,t){if(qc)return!1;if(t===null)return console.error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",X),!1;e.length!==t.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
113
113
 
114
114
  Previous: %s
115
- Incoming: %s`,X,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var a=0;a<t.length&&a<e.length;a++)if(!Oo(e[a],t[a]))return!1;return!0}function dy(e,t,a,o,n,s){if(gs=s,at=t,Nr=e!==null?e._debugHookTypes:null,vs=-1,qc=e!==null&&e.type!==t.type,Object.prototype.toString.call(a)==="[object AsyncFunction]"||Object.prototype.toString.call(a)==="[object AsyncGeneratorFunction]")s=V(at),Ix.has(s)||(Ix.add(s),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",s===null?"An unknown Component":"<"+s+">"));t.memoizedState=null,t.updateQueue=null,t.lanes=0,K.H=e!==null&&e.memoizedState!==null?Ax:Nr!==null?bC:Rx,mi=s=(t.mode&Io)!==Ze;var c=bx(a,o,n);if(mi=!1,Pu&&(c=cy(t,a,o,n)),s){Wt(!0);try{c=cy(t,a,o,n)}finally{Wt(!1)}}return uS(e,t),c}function uS(e,t){t._debugHookTypes=Nr,t.dependencies===null?ys!==null&&(t.dependencies={lanes:0,firstContext:null,_debugThenableState:ys}):t.dependencies._debugThenableState=ys,K.H=Oc;var a=na!==null&&na.next!==null;if(gs=0,Nr=X=Ya=na=at=null,vs=-1,e!==null&&(e.flags&65011712)!==(t.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),jm=!1,Nc=0,ys=null,a)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");e===null||Ka||(e=e.dependencies,e!==null&&Lp(e)&&(Ka=!0)),Mc?(Mc=!1,e=!0):e=!1,e&&(t=V(t)||"Unknown",vC.has(t)||Ix.has(t)||(vC.add(t),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function cy(e,t,a,o){at=e;var n=0;do{if(Pu&&(ys=null),Nc=0,Pu=!1,n>=rE)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(n+=1,qc=!1,Ya=na=null,e.updateQueue!=null){var s=e.updateQueue;s.lastEffect=null,s.events=null,s.stores=null,s.memoCache!=null&&(s.memoCache.index=0)}vs=-1,K.H=SC,s=bx(t,a,o)}while(Pu);return s}function SA(){var e=K.H,t=e.useState()[0];return t=typeof t.then==="function"?Ud(t):t,e=e.useState()[0],(na!==null?na.memoizedState:null)!==e&&(at.flags|=1024),t}function fy(){var e=$m!==0;return $m=0,e}function py(e,t,a){t.updateQueue=e.updateQueue,t.flags=(t.mode&Xr)!==Ze?t.flags&-402655237:t.flags&-2053,e.lanes&=~a}function my(e){if(jm){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}jm=!1}gs=0,Nr=Ya=na=at=null,vs=-1,X=null,Pu=!1,Nc=$m=0,ys=null}function Do(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ya===null?at.memoizedState=Ya=e:Ya=Ya.next=e,Ya}function ea(){if(na===null){var e=at.alternate;e=e!==null?e.memoizedState:null}else e=na.next;var t=Ya===null?at.memoizedState:Ya.next;if(t!==null)Ya=t,na=e;else{if(e===null){if(at.alternate===null)throw Error("Update hook called on initial render. This is likely a bug in React. Please file an issue.");throw Error("Rendered more hooks than during the previous render.")}na=e,e={memoizedState:na.memoizedState,baseState:na.baseState,baseQueue:na.baseQueue,queue:na.queue,next:null},Ya===null?at.memoizedState=Ya=e:Ya=Ya.next=e}return Ya}function Bp(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ud(e){var t=Nc;return Nc+=1,ys===null&&(ys=K0()),e=W0(ys,e,t),t=at,(Ya===null?t.memoizedState:Ya.next)===null&&(t=t.alternate,K.H=t!==null&&t.memoizedState!==null?Ax:Rx),e}function $s(e){if(e!==null&&typeof e==="object"){if(typeof e.then==="function")return Ud(e);if(e.$$typeof===Rn)return ka(e)}throw Error("An unsupported type was passed to use(): "+String(e))}function Wl(e){var t=null,a=at.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var o=at.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(t={data:o.data.map(function(n){return n.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Bp(),at.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0||qc)for(a=t.data[t.index]=Array(e),o=0;o<e;o++)a[o]=BM;else a.length!==e&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",a.length,e);return t.index++,a}function Gr(e,t){return typeof t==="function"?t(e):t}function hy(e,t,a){var o=Do();if(a!==void 0){var n=a(t);if(mi){Wt(!0);try{a(t)}finally{Wt(!1)}}}else n=t;return o.memoizedState=o.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},o.queue=e,e=e.dispatch=TA.bind(null,at,e),[o.memoizedState,e]}function tu(e){var t=ea();return gy(t,na,e)}function gy(e,t,a){var o=e.queue;if(o===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");o.lastRenderedReducer=a;var n=e.baseQueue,s=o.pending;if(s!==null){if(n!==null){var c=n.next;n.next=s.next,s.next=c}t.baseQueue!==n&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),t.baseQueue=n=s,o.pending=null}if(s=e.baseState,n===null)e.memoizedState=s;else{t=n.next;var p=c=null,x=null,k=t,q=!1;do{var B=k.lane&-536870913;if(B!==k.lane?(gt&B)===B:(gs&B)===B){var D=k.revertLane;if(D===0)x!==null&&(x=x.next={lane:0,revertLane:0,gesture:null,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null}),B===ui&&(q=!0);else if((gs&D)===D){k=k.next,D===ui&&(q=!0);continue}else B={lane:0,revertLane:k.revertLane,gesture:null,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null},x===null?(p=x=B,c=s):x=x.next=B,at.lanes|=D,pl|=D;B=k.action,mi&&a(s,B),s=k.hasEagerState?k.eagerState:a(s,B)}else D={lane:B,revertLane:k.revertLane,gesture:k.gesture,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null},x===null?(p=x=D,c=s):x=x.next=D,at.lanes|=B,pl|=B;k=k.next}while(k!==null&&k!==t);if(x===null?c=s:x.next=p,!Oo(s,e.memoizedState)&&(Ka=!0,q&&(a=Eu,a!==null)))throw a;e.memoizedState=s,e.baseState=c,e.baseQueue=x,o.lastRenderedState=s}return n===null&&(o.lanes=0),[e.memoizedState,o.dispatch]}function _d(e){var t=ea(),a=t.queue;if(a===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");a.lastRenderedReducer=e;var{dispatch:o,pending:n}=a,s=t.memoizedState;if(n!==null){a.pending=null;var c=n=n.next;do s=e(s,c.action),c=c.next;while(c!==n);Oo(s,t.memoizedState)||(Ka=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),a.lastRenderedState=s}return[s,o]}function yy(e,t,a){var o=at,n=Do();if(Rt){if(a===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var s=a();zu||s===a()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),zu=!0)}else{if(s=t(),zu||(a=t(),Oo(s,a)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),zu=!0)),sa===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(gt&127)!==0||dS(o,t,s)}return n.memoizedState=s,a={value:s,getSnapshot:t},n.queue=a,_p(fS.bind(null,o,a,e),[e]),o.flags|=2048,ou(Er|Po,{destroy:void 0},cS.bind(null,o,a,s,t),null),s}function zp(e,t,a){var o=at,n=ea(),s=Rt;if(s){if(a===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");a=a()}else if(a=t(),!zu){var c=t();Oo(a,c)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),zu=!0)}if(c=!Oo((na||n).memoizedState,a))n.memoizedState=a,Ka=!0;n=n.queue;var p=fS.bind(null,o,n,e);if(Go(2048,Po,p,[e]),n.getSnapshot!==t||c||Ya!==null&&Ya.memoizedState.tag&Er){if(o.flags|=2048,ou(Er|Po,{destroy:void 0},cS.bind(null,o,n,a,t),null),sa===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");s||(gs&127)!==0||dS(o,t,a)}return a}function dS(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=at.updateQueue,t===null?(t=Bp(),at.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function cS(e,t,a,o){t.value=a,t.getSnapshot=o,pS(t)&&mS(e)}function fS(e,t,a){return a(function(){pS(t)&&(mn(2,"updateSyncExternalStore()",e),mS(e))})}function pS(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Oo(e,a)}catch(o){return!0}}function mS(e){var t=Co(e,2);t!==null&&Ra(t,e,2)}function vy(e){var t=Do();if(typeof e==="function"){var a=e;if(e=a(),mi){Wt(!0);try{a()}finally{Wt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gr,lastRenderedState:e},t}function xy(e){e=vy(e);var t=e.queue,a=NS.bind(null,at,t);return t.dispatch=a,[e.memoizedState,a]}function by(e){var t=Do();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=qy.bind(null,at,!0,a),a.dispatch=t,[e,t]}function hS(e,t){var a=ea();return gS(a,na,e,t)}function gS(e,t,a,o){return e.baseState=a,gy(e,na,typeof o==="function"?o:Gr)}function yS(e,t){var a=ea();if(na!==null)return gS(a,na,e,t);return a.baseState=e,[e,a.queue.dispatch]}function kA(e,t,a,o,n){if($p(e))throw Error("Cannot update form state while rendering.");if(e=t.action,e!==null){var s={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(c){s.listeners.push(c)}};K.T!==null?a(!0):s.isTransition=!1,o(s),a=t.pending,a===null?(s.next=t.pending=s,vS(t,s)):(s.next=a.next,t.pending=a.next=s)}}function vS(e,t){var{action:a,payload:o}=t,n=e.state;if(t.isTransition){var s=K.T,c={};c._updatedFibers=new Set,K.T=c;try{var p=a(n,o),x=K.S;x!==null&&x(c,p),xS(e,t,p)}catch(k){Sy(e,t,k)}finally{s!==null&&c.types!==null&&(s.types!==null&&s.types!==c.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),s.types=c.types),K.T=s,s===null&&c._updatedFibers&&(e=c._updatedFibers.size,c._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}else try{c=a(n,o),xS(e,t,c)}catch(k){Sy(e,t,k)}}function xS(e,t,a){a!==null&&typeof a==="object"&&typeof a.then==="function"?(K.asyncTransitions++,a.then(jp,jp),a.then(function(o){bS(e,t,o)},function(o){return Sy(e,t,o)}),t.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):bS(e,t,a)}function bS(e,t,a){t.status="fulfilled",t.value=a,SS(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,vS(e,a)))}function Sy(e,t,a){var o=e.pending;if(e.pending=null,o!==null){o=o.next;do t.status="rejected",t.reason=a,SS(t),t=t.next;while(t!==o)}e.action=null}function SS(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function kS(e,t){return t}function au(e,t){if(Rt){var a=sa.formState;if(a!==null){e:{var o=at;if(Rt){if(va){t:{var n=va;for(var s=Ar;n.nodeType!==8;){if(!s){n=null;break t}if(n=sr(n.nextSibling),n===null){n=null;break t}}s=n.data,n=s===Zx||s===s1?n:null}if(n){va=sr(n.nextSibling),o=n.data===Zx;break e}}Us(o)}o=!1}o&&(t=a[0])}}return a=Do(),a.memoizedState=a.baseState=t,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:kS,lastRenderedState:t},a.queue=o,a=NS.bind(null,at,o),o.dispatch=a,o=vy(!1),s=qy.bind(null,at,!1,o.queue),o=Do(),n={state:t,dispatch:null,action:e,pending:null},o.queue=n,a=kA.bind(null,at,n,s,a),n.dispatch=a,o.memoizedState=e,[t,a,!1]}function Pp(e){var t=ea();return LS(t,na,e)}function LS(e,t,a){if(t=gy(e,t,kS)[0],e=tu(Gr)[0],typeof t==="object"&&t!==null&&typeof t.then==="function")try{var o=Ud(t)}catch(c){if(c===Nu)throw Hm;throw c}else o=t;t=ea();var n=t.queue,s=n.dispatch;return a!==t.memoizedState&&(at.flags|=2048,ou(Er|Po,{destroy:void 0},LA.bind(null,n,a),null)),[o,s,e]}function LA(e,t){e.action=t}function Up(e){var t=ea(),a=na;if(a!==null)return LS(t,a,e);ea(),t=t.memoizedState,a=ea();var o=a.queue.dispatch;return a.memoizedState=e,[t,o,!1]}function ou(e,t,a,o){return e={tag:e,create:a,deps:o,inst:t,next:null},t=at.updateQueue,t===null&&(t=Bp(),at.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(o=a.next,a.next=e,e.next=o,t.lastEffect=e),e}function ky(e){var t=Do();return e={current:e},t.memoizedState=e}function Zl(e,t,a,o){var n=Do();at.flags|=e,n.memoizedState=ou(Er|t,{destroy:void 0},a,o===void 0?null:o)}function Go(e,t,a,o){var n=ea();o=o===void 0?null:o;var s=n.memoizedState.inst;na!==null&&o!==null&&uy(o,na.memoizedState.deps)?n.memoizedState=ou(t,s,a,o):(at.flags|=e,n.memoizedState=ou(Er|t,s,a,o))}function _p(e,t){(at.mode&Xr)!==Ze?Zl(276826112,Po,e,t):Zl(8390656,Po,e,t)}function wA(e){at.flags|=4;var t=at.updateQueue;if(t===null)t=Bp(),at.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Ly(e){var t=Do(),a={impl:e};return t.memoizedState=a,function(){if((Ut&ao)!==uo)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return a.impl.apply(void 0,arguments)}}function Hp(e){var t=ea().memoizedState;return wA({ref:t,nextImpl:e}),function(){if((Ut&ao)!==uo)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return t.impl.apply(void 0,arguments)}}function wy(e,t){var a=4194308;return(at.mode&Xr)!==Ze&&(a|=134217728),Zl(a,fr,e,t)}function wS(e,t){if(typeof t==="function"){e=e();var a=t(e);return function(){typeof a==="function"?a():t(null)}}if(t!==null&&t!==void 0)return t.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(t).join(", ")+"}"),e=e(),t.current=e,function(){t.current=null}}function Cy(e,t,a){typeof t!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null"),a=a!==null&&a!==void 0?a.concat([e]):null;var o=4194308;(at.mode&Xr)!==Ze&&(o|=134217728),Zl(o,fr,wS.bind(null,t,e),a)}function Fp(e,t,a){typeof t!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null"),a=a!==null&&a!==void 0?a.concat([e]):null,Go(4,fr,wS.bind(null,t,e),a)}function Ty(e,t){return Do().memoizedState=[e,t===void 0?null:t],e}function Gp(e,t){var a=ea();t=t===void 0?null:t;var o=a.memoizedState;if(t!==null&&uy(t,o[1]))return o[0];return a.memoizedState=[e,t],e}function Iy(e,t){var a=Do();t=t===void 0?null:t;var o=e();if(mi){Wt(!0);try{e()}finally{Wt(!1)}}return a.memoizedState=[o,t],o}function Vp(e,t){var a=ea();t=t===void 0?null:t;var o=a.memoizedState;if(t!==null&&uy(t,o[1]))return o[0];if(o=e(),mi){Wt(!0);try{e()}finally{Wt(!1)}}return a.memoizedState=[o,t],o}function Ry(e,t){var a=Do();return Ay(a,e,t)}function CS(e,t){var a=ea();return IS(a,na.memoizedState,e,t)}function TS(e,t){var a=ea();return na===null?Ay(a,e,t):IS(a,na.memoizedState,e,t)}function Ay(e,t,a){if(a===void 0||(gs&1073741824)!==0&&(gt&261930)===0)return e.memoizedState=t;return e.memoizedState=a,e=Rk(),at.lanes|=e,pl|=e,a}function IS(e,t,a,o){if(Oo(a,t))return a;if(Ou.current!==null)return e=Ay(e,a,o),Oo(e,t)||(Ka=!0),e;if((gs&42)===0||(gs&1073741824)!==0&&(gt&261930)===0)return Ka=!0,e.memoizedState=a;return e=Rk(),at.lanes|=e,pl|=e,t}function jp(){K.asyncTransitions--}function RS(e,t,a,o,n){var s=Jt.p;Jt.p=s!==0&&s<$r?s:$r;var c=K.T,p={};p._updatedFibers=new Set,K.T=p,qy(e,!1,t,a);try{var x=n(),k=K.S;if(k!==null&&k(p,x),x!==null&&typeof x==="object"&&typeof x.then==="function"){K.asyncTransitions++,x.then(jp,jp);var q=xA(x,o);Hd(e,t,q,nr(e))}else Hd(e,t,o,nr(e))}catch(B){Hd(e,t,{then:function(){},status:"rejected",reason:B},nr(e))}finally{Jt.p=s,c!==null&&p.types!==null&&(c.types!==null&&c.types!==p.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),c.types=p.types),K.T=c,c===null&&p._updatedFibers&&(e=p._updatedFibers.size,p._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}function My(e,t,a,o){if(e.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var n=AS(e).queue;yA(e),RS(e,n,t,Ci,a===null?S:function(){return MS(e),a(o)})}function AS(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Ci,baseState:Ci,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gr,lastRenderedState:Ci},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gr,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function MS(e){K.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var t=AS(e);t.next===null&&(t=e.alternate.memoizedState),Hd(e,t.next.queue,{},nr(e))}function Dy(){var e=vy(!1);return e=RS.bind(null,at,e.queue,!0,!1),Do().memoizedState=e,[!1,e]}function DS(){var e=tu(Gr)[0],t=ea().memoizedState;return[typeof e==="boolean"?e:Ud(e),t]}function ES(){var e=_d(Gr)[0],t=ea().memoizedState;return[typeof e==="boolean"?e:Ud(e),t]}function Jl(){return ka(Qc)}function Ey(){var e=Do(),t=sa.identifierPrefix;if(Rt){var a=cs,o=ds;a=(o&~(1<<32-Eo(o)-1)).toString(32)+a,t="_"+t+"R_"+a,a=$m++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=oE++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t}function Ny(){return Do().memoizedState=CA.bind(null,at)}function CA(e,t){for(var a=e.return;a!==null;){switch(a.tag){case 24:case 3:var o=nr(a),n=Fs(o),s=Gs(a,n,o);s!==null&&(mn(o,"refresh()",e),Ra(s,a,o),Bd(s,a,o)),e=Jg(),t!==null&&t!==void 0&&s!==null&&console.error("The seed argument is not enabled outside experimental channels."),n.payload={cache:e};return}a=a.return}}function TA(e,t,a){var o=arguments;typeof o[3]==="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),o=nr(e);var n={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};$p(e)?qS(t,n):(n=Hg(e,t,n,o),n!==null&&(mn(o,"dispatch()",e),Ra(n,e,o),OS(n,t,o)))}function NS(e,t,a){var o=arguments;typeof o[3]==="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),o=nr(e),Hd(e,t,a,o)&&mn(o,"setState()",e)}function Hd(e,t,a,o){var n={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if($p(e))qS(t,n);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null)){var c=K.H;K.H=Kr;try{var p=t.lastRenderedState,x=s(p,a);if(n.hasEagerState=!0,n.eagerState=x,Oo(x,p))return vp(e,t,n,0),sa===null&&yp(),!1}catch(k){}finally{K.H=c}}if(a=Hg(e,t,n,o),a!==null)return Ra(a,e,o),OS(a,t,o),!0}return!1}function qy(e,t,a,o){if(K.T===null&&ui===0&&console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."),o={lane:2,revertLane:dv(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},$p(e)){if(t)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else t=Hg(e,a,o,2),t!==null&&(mn(2,"setOptimistic()",e),Ra(t,e,2))}function $p(e){var t=e.alternate;return e===at||t!==null&&t===at}function qS(e,t){Pu=jm=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function OS(e,t,a){if((a&4194048)!==0){var o=t.lanes;o&=e.pendingLanes,a|=o,t.lanes=a,Ul(e,a)}}function Oy(e){if(e!==null&&typeof e!=="function"){var t=String(e);EC.has(t)||(EC.add(t),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",e))}}function By(e,t,a,o){var n=e.memoizedState,s=a(o,n);if(e.mode&Io){Wt(!0);try{s=a(o,n)}finally{Wt(!1)}}s===void 0&&(t=ee(t)||"Component",RC.has(t)||(RC.add(t),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",t))),n=s===null||s===void 0?n:Lt({},n,s),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}function BS(e,t,a,o,n,s,c){var p=e.stateNode;if(typeof p.shouldComponentUpdate==="function"){if(a=p.shouldComponentUpdate(o,s,c),e.mode&Io){Wt(!0);try{a=p.shouldComponentUpdate(o,s,c)}finally{Wt(!1)}}return a===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",ee(t)||"Component"),a}return t.prototype&&t.prototype.isPureReactComponent?!Ad(a,o)||!Ad(n,s):!0}function zS(e,t,a,o){var n=t.state;typeof t.componentWillReceiveProps==="function"&&t.componentWillReceiveProps(a,o),typeof t.UNSAFE_componentWillReceiveProps==="function"&&t.UNSAFE_componentWillReceiveProps(a,o),t.state!==n&&(e=V(e)||"Component",LC.has(e)||(LC.add(e),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",e)),Mx.enqueueReplaceState(t,t.state,null))}function ei(e,t){var a=t;if("ref"in t){a={};for(var o in t)o!=="ref"&&(a[o]=t[o])}if(e=e.defaultProps){a===t&&(a=Lt({},a));for(var n in e)a[n]===void 0&&(a[n]=e[n])}return a}function PS(e){lx(e),console.warn(`%s
115
+ Incoming: %s`,X,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var a=0;a<t.length&&a<e.length;a++)if(!Oo(e[a],t[a]))return!1;return!0}function dy(e,t,a,o,n,s){if(gs=s,at=t,Nr=e!==null?e._debugHookTypes:null,vs=-1,qc=e!==null&&e.type!==t.type,Object.prototype.toString.call(a)==="[object AsyncFunction]"||Object.prototype.toString.call(a)==="[object AsyncGeneratorFunction]")s=V(at),Ix.has(s)||(Ix.add(s),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",s===null?"An unknown Component":"<"+s+">"));t.memoizedState=null,t.updateQueue=null,t.lanes=0,K.H=e!==null&&e.memoizedState!==null?Ax:Nr!==null?bC:Rx,mi=s=(t.mode&Io)!==Ze;var c=bx(a,o,n);if(mi=!1,zu&&(c=cy(t,a,o,n)),s){Wt(!0);try{c=cy(t,a,o,n)}finally{Wt(!1)}}return uS(e,t),c}function uS(e,t){t._debugHookTypes=Nr,t.dependencies===null?ys!==null&&(t.dependencies={lanes:0,firstContext:null,_debugThenableState:ys}):t.dependencies._debugThenableState=ys,K.H=Oc;var a=na!==null&&na.next!==null;if(gs=0,Nr=X=Ya=na=at=null,vs=-1,e!==null&&(e.flags&65011712)!==(t.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),jm=!1,Nc=0,ys=null,a)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");e===null||Ka||(e=e.dependencies,e!==null&&Lp(e)&&(Ka=!0)),Mc?(Mc=!1,e=!0):e=!1,e&&(t=V(t)||"Unknown",vC.has(t)||Ix.has(t)||(vC.add(t),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function cy(e,t,a,o){at=e;var n=0;do{if(zu&&(ys=null),Nc=0,zu=!1,n>=rE)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(n+=1,qc=!1,Ya=na=null,e.updateQueue!=null){var s=e.updateQueue;s.lastEffect=null,s.events=null,s.stores=null,s.memoCache!=null&&(s.memoCache.index=0)}vs=-1,K.H=SC,s=bx(t,a,o)}while(zu);return s}function SA(){var e=K.H,t=e.useState()[0];return t=typeof t.then==="function"?Ud(t):t,e=e.useState()[0],(na!==null?na.memoizedState:null)!==e&&(at.flags|=1024),t}function fy(){var e=$m!==0;return $m=0,e}function py(e,t,a){t.updateQueue=e.updateQueue,t.flags=(t.mode&Xr)!==Ze?t.flags&-402655237:t.flags&-2053,e.lanes&=~a}function my(e){if(jm){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}jm=!1}gs=0,Nr=Ya=na=at=null,vs=-1,X=null,zu=!1,Nc=$m=0,ys=null}function Do(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ya===null?at.memoizedState=Ya=e:Ya=Ya.next=e,Ya}function ea(){if(na===null){var e=at.alternate;e=e!==null?e.memoizedState:null}else e=na.next;var t=Ya===null?at.memoizedState:Ya.next;if(t!==null)Ya=t,na=e;else{if(e===null){if(at.alternate===null)throw Error("Update hook called on initial render. This is likely a bug in React. Please file an issue.");throw Error("Rendered more hooks than during the previous render.")}na=e,e={memoizedState:na.memoizedState,baseState:na.baseState,baseQueue:na.baseQueue,queue:na.queue,next:null},Ya===null?at.memoizedState=Ya=e:Ya=Ya.next=e}return Ya}function Bp(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ud(e){var t=Nc;return Nc+=1,ys===null&&(ys=K0()),e=W0(ys,e,t),t=at,(Ya===null?t.memoizedState:Ya.next)===null&&(t=t.alternate,K.H=t!==null&&t.memoizedState!==null?Ax:Rx),e}function $s(e){if(e!==null&&typeof e==="object"){if(typeof e.then==="function")return Ud(e);if(e.$$typeof===Rn)return ka(e)}throw Error("An unsupported type was passed to use(): "+String(e))}function Wl(e){var t=null,a=at.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var o=at.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(t={data:o.data.map(function(n){return n.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Bp(),at.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0||qc)for(a=t.data[t.index]=Array(e),o=0;o<e;o++)a[o]=BM;else a.length!==e&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",a.length,e);return t.index++,a}function Gr(e,t){return typeof t==="function"?t(e):t}function hy(e,t,a){var o=Do();if(a!==void 0){var n=a(t);if(mi){Wt(!0);try{a(t)}finally{Wt(!1)}}}else n=t;return o.memoizedState=o.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},o.queue=e,e=e.dispatch=TA.bind(null,at,e),[o.memoizedState,e]}function tu(e){var t=ea();return gy(t,na,e)}function gy(e,t,a){var o=e.queue;if(o===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");o.lastRenderedReducer=a;var n=e.baseQueue,s=o.pending;if(s!==null){if(n!==null){var c=n.next;n.next=s.next,s.next=c}t.baseQueue!==n&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),t.baseQueue=n=s,o.pending=null}if(s=e.baseState,n===null)e.memoizedState=s;else{t=n.next;var p=c=null,x=null,k=t,q=!1;do{var B=k.lane&-536870913;if(B!==k.lane?(gt&B)===B:(gs&B)===B){var D=k.revertLane;if(D===0)x!==null&&(x=x.next={lane:0,revertLane:0,gesture:null,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null}),B===ui&&(q=!0);else if((gs&D)===D){k=k.next,D===ui&&(q=!0);continue}else B={lane:0,revertLane:k.revertLane,gesture:null,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null},x===null?(p=x=B,c=s):x=x.next=B,at.lanes|=D,pl|=D;B=k.action,mi&&a(s,B),s=k.hasEagerState?k.eagerState:a(s,B)}else D={lane:B,revertLane:k.revertLane,gesture:k.gesture,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null},x===null?(p=x=D,c=s):x=x.next=D,at.lanes|=B,pl|=B;k=k.next}while(k!==null&&k!==t);if(x===null?c=s:x.next=p,!Oo(s,e.memoizedState)&&(Ka=!0,q&&(a=Eu,a!==null)))throw a;e.memoizedState=s,e.baseState=c,e.baseQueue=x,o.lastRenderedState=s}return n===null&&(o.lanes=0),[e.memoizedState,o.dispatch]}function _d(e){var t=ea(),a=t.queue;if(a===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");a.lastRenderedReducer=e;var{dispatch:o,pending:n}=a,s=t.memoizedState;if(n!==null){a.pending=null;var c=n=n.next;do s=e(s,c.action),c=c.next;while(c!==n);Oo(s,t.memoizedState)||(Ka=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),a.lastRenderedState=s}return[s,o]}function yy(e,t,a){var o=at,n=Do();if(Rt){if(a===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var s=a();Pu||s===a()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),Pu=!0)}else{if(s=t(),Pu||(a=t(),Oo(s,a)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Pu=!0)),sa===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(gt&127)!==0||dS(o,t,s)}return n.memoizedState=s,a={value:s,getSnapshot:t},n.queue=a,_p(fS.bind(null,o,a,e),[e]),o.flags|=2048,ou(Er|zo,{destroy:void 0},cS.bind(null,o,a,s,t),null),s}function Pp(e,t,a){var o=at,n=ea(),s=Rt;if(s){if(a===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");a=a()}else if(a=t(),!Pu){var c=t();Oo(a,c)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Pu=!0)}if(c=!Oo((na||n).memoizedState,a))n.memoizedState=a,Ka=!0;n=n.queue;var p=fS.bind(null,o,n,e);if(Go(2048,zo,p,[e]),n.getSnapshot!==t||c||Ya!==null&&Ya.memoizedState.tag&Er){if(o.flags|=2048,ou(Er|zo,{destroy:void 0},cS.bind(null,o,n,a,t),null),sa===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");s||(gs&127)!==0||dS(o,t,a)}return a}function dS(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=at.updateQueue,t===null?(t=Bp(),at.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function cS(e,t,a,o){t.value=a,t.getSnapshot=o,pS(t)&&mS(e)}function fS(e,t,a){return a(function(){pS(t)&&(mn(2,"updateSyncExternalStore()",e),mS(e))})}function pS(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Oo(e,a)}catch(o){return!0}}function mS(e){var t=Co(e,2);t!==null&&Ra(t,e,2)}function vy(e){var t=Do();if(typeof e==="function"){var a=e;if(e=a(),mi){Wt(!0);try{a()}finally{Wt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gr,lastRenderedState:e},t}function xy(e){e=vy(e);var t=e.queue,a=NS.bind(null,at,t);return t.dispatch=a,[e.memoizedState,a]}function by(e){var t=Do();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=qy.bind(null,at,!0,a),a.dispatch=t,[e,t]}function hS(e,t){var a=ea();return gS(a,na,e,t)}function gS(e,t,a,o){return e.baseState=a,gy(e,na,typeof o==="function"?o:Gr)}function yS(e,t){var a=ea();if(na!==null)return gS(a,na,e,t);return a.baseState=e,[e,a.queue.dispatch]}function kA(e,t,a,o,n){if($p(e))throw Error("Cannot update form state while rendering.");if(e=t.action,e!==null){var s={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(c){s.listeners.push(c)}};K.T!==null?a(!0):s.isTransition=!1,o(s),a=t.pending,a===null?(s.next=t.pending=s,vS(t,s)):(s.next=a.next,t.pending=a.next=s)}}function vS(e,t){var{action:a,payload:o}=t,n=e.state;if(t.isTransition){var s=K.T,c={};c._updatedFibers=new Set,K.T=c;try{var p=a(n,o),x=K.S;x!==null&&x(c,p),xS(e,t,p)}catch(k){Sy(e,t,k)}finally{s!==null&&c.types!==null&&(s.types!==null&&s.types!==c.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),s.types=c.types),K.T=s,s===null&&c._updatedFibers&&(e=c._updatedFibers.size,c._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}else try{c=a(n,o),xS(e,t,c)}catch(k){Sy(e,t,k)}}function xS(e,t,a){a!==null&&typeof a==="object"&&typeof a.then==="function"?(K.asyncTransitions++,a.then(jp,jp),a.then(function(o){bS(e,t,o)},function(o){return Sy(e,t,o)}),t.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):bS(e,t,a)}function bS(e,t,a){t.status="fulfilled",t.value=a,SS(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,vS(e,a)))}function Sy(e,t,a){var o=e.pending;if(e.pending=null,o!==null){o=o.next;do t.status="rejected",t.reason=a,SS(t),t=t.next;while(t!==o)}e.action=null}function SS(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function kS(e,t){return t}function au(e,t){if(Rt){var a=sa.formState;if(a!==null){e:{var o=at;if(Rt){if(va){t:{var n=va;for(var s=Ar;n.nodeType!==8;){if(!s){n=null;break t}if(n=sr(n.nextSibling),n===null){n=null;break t}}s=n.data,n=s===Zx||s===s1?n:null}if(n){va=sr(n.nextSibling),o=n.data===Zx;break e}}Us(o)}o=!1}o&&(t=a[0])}}return a=Do(),a.memoizedState=a.baseState=t,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:kS,lastRenderedState:t},a.queue=o,a=NS.bind(null,at,o),o.dispatch=a,o=vy(!1),s=qy.bind(null,at,!1,o.queue),o=Do(),n={state:t,dispatch:null,action:e,pending:null},o.queue=n,a=kA.bind(null,at,n,s,a),n.dispatch=a,o.memoizedState=e,[t,a,!1]}function zp(e){var t=ea();return LS(t,na,e)}function LS(e,t,a){if(t=gy(e,t,kS)[0],e=tu(Gr)[0],typeof t==="object"&&t!==null&&typeof t.then==="function")try{var o=Ud(t)}catch(c){if(c===Nu)throw Hm;throw c}else o=t;t=ea();var n=t.queue,s=n.dispatch;return a!==t.memoizedState&&(at.flags|=2048,ou(Er|zo,{destroy:void 0},LA.bind(null,n,a),null)),[o,s,e]}function LA(e,t){e.action=t}function Up(e){var t=ea(),a=na;if(a!==null)return LS(t,a,e);ea(),t=t.memoizedState,a=ea();var o=a.queue.dispatch;return a.memoizedState=e,[t,o,!1]}function ou(e,t,a,o){return e={tag:e,create:a,deps:o,inst:t,next:null},t=at.updateQueue,t===null&&(t=Bp(),at.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(o=a.next,a.next=e,e.next=o,t.lastEffect=e),e}function ky(e){var t=Do();return e={current:e},t.memoizedState=e}function Zl(e,t,a,o){var n=Do();at.flags|=e,n.memoizedState=ou(Er|t,{destroy:void 0},a,o===void 0?null:o)}function Go(e,t,a,o){var n=ea();o=o===void 0?null:o;var s=n.memoizedState.inst;na!==null&&o!==null&&uy(o,na.memoizedState.deps)?n.memoizedState=ou(t,s,a,o):(at.flags|=e,n.memoizedState=ou(Er|t,s,a,o))}function _p(e,t){(at.mode&Xr)!==Ze?Zl(276826112,zo,e,t):Zl(8390656,zo,e,t)}function wA(e){at.flags|=4;var t=at.updateQueue;if(t===null)t=Bp(),at.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Ly(e){var t=Do(),a={impl:e};return t.memoizedState=a,function(){if((Ut&ao)!==uo)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return a.impl.apply(void 0,arguments)}}function Hp(e){var t=ea().memoizedState;return wA({ref:t,nextImpl:e}),function(){if((Ut&ao)!==uo)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return t.impl.apply(void 0,arguments)}}function wy(e,t){var a=4194308;return(at.mode&Xr)!==Ze&&(a|=134217728),Zl(a,fr,e,t)}function wS(e,t){if(typeof t==="function"){e=e();var a=t(e);return function(){typeof a==="function"?a():t(null)}}if(t!==null&&t!==void 0)return t.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(t).join(", ")+"}"),e=e(),t.current=e,function(){t.current=null}}function Cy(e,t,a){typeof t!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null"),a=a!==null&&a!==void 0?a.concat([e]):null;var o=4194308;(at.mode&Xr)!==Ze&&(o|=134217728),Zl(o,fr,wS.bind(null,t,e),a)}function Fp(e,t,a){typeof t!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null"),a=a!==null&&a!==void 0?a.concat([e]):null,Go(4,fr,wS.bind(null,t,e),a)}function Ty(e,t){return Do().memoizedState=[e,t===void 0?null:t],e}function Gp(e,t){var a=ea();t=t===void 0?null:t;var o=a.memoizedState;if(t!==null&&uy(t,o[1]))return o[0];return a.memoizedState=[e,t],e}function Iy(e,t){var a=Do();t=t===void 0?null:t;var o=e();if(mi){Wt(!0);try{e()}finally{Wt(!1)}}return a.memoizedState=[o,t],o}function Vp(e,t){var a=ea();t=t===void 0?null:t;var o=a.memoizedState;if(t!==null&&uy(t,o[1]))return o[0];if(o=e(),mi){Wt(!0);try{e()}finally{Wt(!1)}}return a.memoizedState=[o,t],o}function Ry(e,t){var a=Do();return Ay(a,e,t)}function CS(e,t){var a=ea();return IS(a,na.memoizedState,e,t)}function TS(e,t){var a=ea();return na===null?Ay(a,e,t):IS(a,na.memoizedState,e,t)}function Ay(e,t,a){if(a===void 0||(gs&1073741824)!==0&&(gt&261930)===0)return e.memoizedState=t;return e.memoizedState=a,e=Rk(),at.lanes|=e,pl|=e,a}function IS(e,t,a,o){if(Oo(a,t))return a;if(Ou.current!==null)return e=Ay(e,a,o),Oo(e,t)||(Ka=!0),e;if((gs&42)===0||(gs&1073741824)!==0&&(gt&261930)===0)return Ka=!0,e.memoizedState=a;return e=Rk(),at.lanes|=e,pl|=e,t}function jp(){K.asyncTransitions--}function RS(e,t,a,o,n){var s=Jt.p;Jt.p=s!==0&&s<$r?s:$r;var c=K.T,p={};p._updatedFibers=new Set,K.T=p,qy(e,!1,t,a);try{var x=n(),k=K.S;if(k!==null&&k(p,x),x!==null&&typeof x==="object"&&typeof x.then==="function"){K.asyncTransitions++,x.then(jp,jp);var q=xA(x,o);Hd(e,t,q,nr(e))}else Hd(e,t,o,nr(e))}catch(B){Hd(e,t,{then:function(){},status:"rejected",reason:B},nr(e))}finally{Jt.p=s,c!==null&&p.types!==null&&(c.types!==null&&c.types!==p.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),c.types=p.types),K.T=c,c===null&&p._updatedFibers&&(e=p._updatedFibers.size,p._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}function My(e,t,a,o){if(e.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var n=AS(e).queue;yA(e),RS(e,n,t,Ci,a===null?S:function(){return MS(e),a(o)})}function AS(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Ci,baseState:Ci,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gr,lastRenderedState:Ci},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gr,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function MS(e){K.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var t=AS(e);t.next===null&&(t=e.alternate.memoizedState),Hd(e,t.next.queue,{},nr(e))}function Dy(){var e=vy(!1);return e=RS.bind(null,at,e.queue,!0,!1),Do().memoizedState=e,[!1,e]}function DS(){var e=tu(Gr)[0],t=ea().memoizedState;return[typeof e==="boolean"?e:Ud(e),t]}function ES(){var e=_d(Gr)[0],t=ea().memoizedState;return[typeof e==="boolean"?e:Ud(e),t]}function Jl(){return ka(Qc)}function Ey(){var e=Do(),t=sa.identifierPrefix;if(Rt){var a=cs,o=ds;a=(o&~(1<<32-Eo(o)-1)).toString(32)+a,t="_"+t+"R_"+a,a=$m++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=oE++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t}function Ny(){return Do().memoizedState=CA.bind(null,at)}function CA(e,t){for(var a=e.return;a!==null;){switch(a.tag){case 24:case 3:var o=nr(a),n=Fs(o),s=Gs(a,n,o);s!==null&&(mn(o,"refresh()",e),Ra(s,a,o),Bd(s,a,o)),e=Jg(),t!==null&&t!==void 0&&s!==null&&console.error("The seed argument is not enabled outside experimental channels."),n.payload={cache:e};return}a=a.return}}function TA(e,t,a){var o=arguments;typeof o[3]==="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),o=nr(e);var n={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};$p(e)?qS(t,n):(n=Hg(e,t,n,o),n!==null&&(mn(o,"dispatch()",e),Ra(n,e,o),OS(n,t,o)))}function NS(e,t,a){var o=arguments;typeof o[3]==="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),o=nr(e),Hd(e,t,a,o)&&mn(o,"setState()",e)}function Hd(e,t,a,o){var n={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if($p(e))qS(t,n);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null)){var c=K.H;K.H=Kr;try{var p=t.lastRenderedState,x=s(p,a);if(n.hasEagerState=!0,n.eagerState=x,Oo(x,p))return vp(e,t,n,0),sa===null&&yp(),!1}catch(k){}finally{K.H=c}}if(a=Hg(e,t,n,o),a!==null)return Ra(a,e,o),OS(a,t,o),!0}return!1}function qy(e,t,a,o){if(K.T===null&&ui===0&&console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."),o={lane:2,revertLane:dv(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},$p(e)){if(t)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else t=Hg(e,a,o,2),t!==null&&(mn(2,"setOptimistic()",e),Ra(t,e,2))}function $p(e){var t=e.alternate;return e===at||t!==null&&t===at}function qS(e,t){zu=jm=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function OS(e,t,a){if((a&4194048)!==0){var o=t.lanes;o&=e.pendingLanes,a|=o,t.lanes=a,Ul(e,a)}}function Oy(e){if(e!==null&&typeof e!=="function"){var t=String(e);EC.has(t)||(EC.add(t),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",e))}}function By(e,t,a,o){var n=e.memoizedState,s=a(o,n);if(e.mode&Io){Wt(!0);try{s=a(o,n)}finally{Wt(!1)}}s===void 0&&(t=ee(t)||"Component",RC.has(t)||(RC.add(t),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",t))),n=s===null||s===void 0?n:Lt({},n,s),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}function BS(e,t,a,o,n,s,c){var p=e.stateNode;if(typeof p.shouldComponentUpdate==="function"){if(a=p.shouldComponentUpdate(o,s,c),e.mode&Io){Wt(!0);try{a=p.shouldComponentUpdate(o,s,c)}finally{Wt(!1)}}return a===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",ee(t)||"Component"),a}return t.prototype&&t.prototype.isPureReactComponent?!Ad(a,o)||!Ad(n,s):!0}function PS(e,t,a,o){var n=t.state;typeof t.componentWillReceiveProps==="function"&&t.componentWillReceiveProps(a,o),typeof t.UNSAFE_componentWillReceiveProps==="function"&&t.UNSAFE_componentWillReceiveProps(a,o),t.state!==n&&(e=V(e)||"Component",LC.has(e)||(LC.add(e),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",e)),Mx.enqueueReplaceState(t,t.state,null))}function ei(e,t){var a=t;if("ref"in t){a={};for(var o in t)o!=="ref"&&(a[o]=t[o])}if(e=e.defaultProps){a===t&&(a=Lt({},a));for(var n in e)a[n]===void 0&&(a[n]=e[n])}return a}function zS(e){lx(e),console.warn(`%s
116
116
 
117
117
  %s
118
118
  `,Uu?"An error occurred in the <"+Uu+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
@@ -126,9 +126,9 @@ Visit https://react.dev/link/error-boundaries to learn more about error boundari
126
126
  %s
127
127
 
128
128
  %s
129
- `,e,t,a)}function _S(e){lx(e)}function Xp(e,t){try{Uu=t.source?V(t.source):null,Dx=null;var a=t.value;if(K.actQueue!==null)K.thrownErrors.push(a);else{var o=e.onUncaughtError;o(a,{componentStack:t.stack})}}catch(n){setTimeout(function(){throw n})}}function HS(e,t,a){try{Uu=a.source?V(a.source):null,Dx=V(t);var o=e.onCaughtError;o(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function zy(e,t,a){return a=Fs(a),a.tag=wx,a.payload={element:null},a.callback=function(){H(t.source,Xp,e,t)},a}function Py(e){return e=Fs(e),e.tag=wx,e}function Uy(e,t,a,o){var n=a.type.getDerivedStateFromError;if(typeof n==="function"){var s=o.value;e.payload=function(){return n(s)},e.callback=function(){q0(a),H(o.source,HS,t,a,o)}}var c=a.stateNode;c!==null&&typeof c.componentDidCatch==="function"&&(e.callback=function(){q0(a),H(o.source,HS,t,a,o),typeof n!=="function"&&(hl===null?hl=new Set([this]):hl.add(this)),JD(this,o),typeof n==="function"||(a.lanes&2)===0&&console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",V(a)||"Unknown")})}function IA(e,t,a,o,n){if(a.flags|=32768,Dn&&Kd(e,n),o!==null&&typeof o==="object"&&typeof o.then==="function"){if(t=a.alternate,t!==null&&Ji(t,a,n,!0),Rt&&(qn=!0),a=cr.current,a!==null){switch(a.tag){case 31:case 13:return Dr===null?am():a.alternate===null&&Ta===bs&&(Ta=Km),a.flags&=-257,a.flags|=65536,a.lanes=n,o===Fm?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([o]):t.add(o),sv(e,o,n)),!1;case 22:return a.flags|=65536,o===Fm?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([o])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([o]):a.add(o)),sv(e,o,n)),!1}throw Error("Unexpected Suspense handler tag ("+a.tag+"). This is a bug in React.")}return sv(e,o,n),am(),!1}if(Rt)return qn=!0,t=cr.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,o!==px&&Dd(tr(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:o}),a))):(o!==px&&Dd(tr(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:o}),a)),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,o=tr(o,a),n=zy(e.stateNode,o,n),Np(e,n),Ta!==cl&&(Ta=hi)),!1;var s=tr(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:o}),a);if(Hc===null?Hc=[s]:Hc.push(s),Ta!==cl&&(Ta=hi),t===null)return!0;o=tr(o,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=n&-n,a.lanes|=e,e=zy(a.stateNode,o,e),Np(a,e),!1;case 1:if(t=a.type,s=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError==="function"||s!==null&&typeof s.componentDidCatch==="function"&&(hl===null||!hl.has(s))))return a.flags|=65536,n&=-n,a.lanes|=n,n=Py(n),Uy(n,e,a,o),Np(a,n),!1}a=a.return}while(a!==null);return!1}function yo(e,t,a,o){t.child=e===null?fC(t,null,a,o):pi(t,e.child,a,o)}function FS(e,t,a,o,n){a=a.render;var s=t.ref;if("ref"in o){var c={};for(var p in o)p!=="ref"&&(c[p]=o[p])}else c=o;if(Kl(t),o=dy(e,t,a,c,s,n),p=fy(),e!==null&&!Ka)return py(e,t,n),rs(e,t,n);return Rt&&p&&Xg(t),t.flags|=1,yo(e,t,o,n),t.child}function GS(e,t,a,o,n){if(e===null){var s=a.type;if(typeof s==="function"&&!Gg(s)&&s.defaultProps===void 0&&a.compare===null)return a=jl(s),t.tag=15,t.type=a,Hy(t,s),VS(e,t,a,o,n);return e=Vg(a.type,null,o,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e}if(s=e.child,!Xy(e,n)){var c=s.memoizedProps;if(a=a.compare,a=a!==null?a:Ad,a(c,o)&&e.ref===t.ref)return rs(e,t,n)}return t.flags|=1,e=es(s,o),e.ref=t.ref,e.return=t,t.child=e}function VS(e,t,a,o,n){if(e!==null){var s=e.memoizedProps;if(Ad(s,o)&&e.ref===t.ref&&t.type===e.type)if(Ka=!1,t.pendingProps=o=s,Xy(e,n))(e.flags&131072)!==0&&(Ka=!0);else return t.lanes=e.lanes,rs(e,t,n)}return _y(e,t,a,o,n)}function jS(e,t,a,o){var n=o.children,s=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:gc,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.mode==="hidden"){if((t.flags&128)!==0){if(s=s!==null?s.baseLanes|a:a,e!==null){o=t.child=e.child;for(n=0;o!==null;)n=n|o.lanes|o.childLanes,o=o.sibling;o=n&~s}else o=0,t.child=null;return $S(e,t,s,a,o)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ip(t,s!==null?s.cachePool:null),s!==null?lS(t,s):sy(t),iS(t);else return o=t.lanes=536870912,$S(e,t,s!==null?s.baseLanes|a:a,a,o)}else s!==null?(Ip(t,s.cachePool),lS(t,s),js(t),t.memoizedState=null):(e!==null&&Ip(t,null),sy(t),js(t));return yo(e,t,n,a),t.child}function Fd(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:gc,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function $S(e,t,a,o,n){var s=ay();return s=s===null?null:{parent:$a._currentValue,pool:s},t.memoizedState={baseLanes:a,cachePool:s},e!==null&&Ip(t,null),sy(t),iS(t),e!==null&&Ji(e,t,o,!0),t.childLanes=n,null}function Yp(e,t){var a=t.hidden;return a!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
129
+ `,e,t,a)}function _S(e){lx(e)}function Xp(e,t){try{Uu=t.source?V(t.source):null,Dx=null;var a=t.value;if(K.actQueue!==null)K.thrownErrors.push(a);else{var o=e.onUncaughtError;o(a,{componentStack:t.stack})}}catch(n){setTimeout(function(){throw n})}}function HS(e,t,a){try{Uu=a.source?V(a.source):null,Dx=V(t);var o=e.onCaughtError;o(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function Py(e,t,a){return a=Fs(a),a.tag=wx,a.payload={element:null},a.callback=function(){H(t.source,Xp,e,t)},a}function zy(e){return e=Fs(e),e.tag=wx,e}function Uy(e,t,a,o){var n=a.type.getDerivedStateFromError;if(typeof n==="function"){var s=o.value;e.payload=function(){return n(s)},e.callback=function(){q0(a),H(o.source,HS,t,a,o)}}var c=a.stateNode;c!==null&&typeof c.componentDidCatch==="function"&&(e.callback=function(){q0(a),H(o.source,HS,t,a,o),typeof n!=="function"&&(hl===null?hl=new Set([this]):hl.add(this)),JD(this,o),typeof n==="function"||(a.lanes&2)===0&&console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",V(a)||"Unknown")})}function IA(e,t,a,o,n){if(a.flags|=32768,Dn&&Kd(e,n),o!==null&&typeof o==="object"&&typeof o.then==="function"){if(t=a.alternate,t!==null&&Ji(t,a,n,!0),Rt&&(qn=!0),a=cr.current,a!==null){switch(a.tag){case 31:case 13:return Dr===null?am():a.alternate===null&&Ta===bs&&(Ta=Km),a.flags&=-257,a.flags|=65536,a.lanes=n,o===Fm?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([o]):t.add(o),sv(e,o,n)),!1;case 22:return a.flags|=65536,o===Fm?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([o])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([o]):a.add(o)),sv(e,o,n)),!1}throw Error("Unexpected Suspense handler tag ("+a.tag+"). This is a bug in React.")}return sv(e,o,n),am(),!1}if(Rt)return qn=!0,t=cr.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,o!==px&&Dd(tr(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:o}),a))):(o!==px&&Dd(tr(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:o}),a)),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,o=tr(o,a),n=Py(e.stateNode,o,n),Np(e,n),Ta!==cl&&(Ta=hi)),!1;var s=tr(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:o}),a);if(Hc===null?Hc=[s]:Hc.push(s),Ta!==cl&&(Ta=hi),t===null)return!0;o=tr(o,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=n&-n,a.lanes|=e,e=Py(a.stateNode,o,e),Np(a,e),!1;case 1:if(t=a.type,s=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError==="function"||s!==null&&typeof s.componentDidCatch==="function"&&(hl===null||!hl.has(s))))return a.flags|=65536,n&=-n,a.lanes|=n,n=zy(n),Uy(n,e,a,o),Np(a,n),!1}a=a.return}while(a!==null);return!1}function yo(e,t,a,o){t.child=e===null?fC(t,null,a,o):pi(t,e.child,a,o)}function FS(e,t,a,o,n){a=a.render;var s=t.ref;if("ref"in o){var c={};for(var p in o)p!=="ref"&&(c[p]=o[p])}else c=o;if(Kl(t),o=dy(e,t,a,c,s,n),p=fy(),e!==null&&!Ka)return py(e,t,n),rs(e,t,n);return Rt&&p&&Xg(t),t.flags|=1,yo(e,t,o,n),t.child}function GS(e,t,a,o,n){if(e===null){var s=a.type;if(typeof s==="function"&&!Gg(s)&&s.defaultProps===void 0&&a.compare===null)return a=jl(s),t.tag=15,t.type=a,Hy(t,s),VS(e,t,a,o,n);return e=Vg(a.type,null,o,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e}if(s=e.child,!Xy(e,n)){var c=s.memoizedProps;if(a=a.compare,a=a!==null?a:Ad,a(c,o)&&e.ref===t.ref)return rs(e,t,n)}return t.flags|=1,e=es(s,o),e.ref=t.ref,e.return=t,t.child=e}function VS(e,t,a,o,n){if(e!==null){var s=e.memoizedProps;if(Ad(s,o)&&e.ref===t.ref&&t.type===e.type)if(Ka=!1,t.pendingProps=o=s,Xy(e,n))(e.flags&131072)!==0&&(Ka=!0);else return t.lanes=e.lanes,rs(e,t,n)}return _y(e,t,a,o,n)}function jS(e,t,a,o){var n=o.children,s=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:gc,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.mode==="hidden"){if((t.flags&128)!==0){if(s=s!==null?s.baseLanes|a:a,e!==null){o=t.child=e.child;for(n=0;o!==null;)n=n|o.lanes|o.childLanes,o=o.sibling;o=n&~s}else o=0,t.child=null;return $S(e,t,s,a,o)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ip(t,s!==null?s.cachePool:null),s!==null?lS(t,s):sy(t),iS(t);else return o=t.lanes=536870912,$S(e,t,s!==null?s.baseLanes|a:a,a,o)}else s!==null?(Ip(t,s.cachePool),lS(t,s),js(t),t.memoizedState=null):(e!==null&&Ip(t,null),sy(t),js(t));return yo(e,t,n,a),t.child}function Fd(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:gc,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function $S(e,t,a,o,n){var s=ay();return s=s===null?null:{parent:$a._currentValue,pool:s},t.memoizedState={baseLanes:a,cachePool:s},e!==null&&Ip(t,null),sy(t),iS(t),e!==null&&Ji(e,t,o,!0),t.childLanes=n,null}function Yp(e,t){var a=t.hidden;return a!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
130
130
  - <Activity %s>
131
- + <Activity %s>`,a===!0?"hidden":a===!1?"hidden={false}":"hidden={...}",a?'mode="hidden"':'mode="visible"'),t=Qp({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function XS(e,t,a){return pi(t,e.child,null,a),e=Yp(t,t.pendingProps),e.flags|=2,rr(t),t.memoizedState=null,e}function RA(e,t,a){var o=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Rt){if(o.mode==="hidden")return e=Yp(t,o),t.lanes=536870912,Fd(null,e);if(iy(t),(e=va)?(a=vL(e,Ar),a=a!==null&&a.data===Si?a:null,a!==null&&(o={dehydrated:a,treeContext:U0(),retryLane:536870912,hydrationErrors:null},t.memoizedState=o,o=z0(a),o.return=t,t.child=o,bo=t,va=null)):a=null,a===null)throw Sp(t,e),Us(t);return t.lanes=536870912,null}return Yp(t,o)}var s=e.memoizedState;if(s!==null){var c=s.dehydrated;if(iy(t),n)if(t.flags&256)t.flags&=-257,t=XS(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error("Client rendering an Activity suspended it again. This is a bug in React.");else if(H0(),(a&536870912)!==0&&tm(t),Ka||Ji(e,t,a,!1),n=(a&e.childLanes)!==0,Ka||n){if(o=sa,o!==null&&(c=_l(o,a),c!==0&&c!==s.retryLane))throw s.retryLane=c,Co(e,c),Ra(o,e,c),Ex;am(),t=XS(e,t,a)}else e=s.treeContext,va=sr(c.nextSibling),bo=t,Rt=!0,rl=null,qn=!1,dr=null,Ar=!1,e!==null&&_0(t,e),t=Yp(t,o),t.flags|=4096;return t}return s=e.child,o={mode:o.mode,children:o.children},(a&536870912)!==0&&(a&e.lanes)!==0&&tm(t),e=es(s,o),e.ref=t.ref,t.child=e,e.return=t,e}function Kp(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("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");if(e===null||e.ref!==a)t.flags|=4194816}}function _y(e,t,a,o,n){if(a.prototype&&typeof a.prototype.render==="function"){var s=ee(a)||"Unknown";NC[s]||(console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",s,s),NC[s]=!0)}if(t.mode&Io&&Yr.recordLegacyContextWarning(t,null),e===null&&(Hy(t,t.type),a.contextTypes&&(s=ee(a)||"Unknown",OC[s]||(OC[s]=!0,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",s)))),Kl(t),a=dy(e,t,a,o,void 0,n),o=fy(),e!==null&&!Ka)return py(e,t,n),rs(e,t,n);return Rt&&o&&Xg(t),t.flags|=1,yo(e,t,a,n),t.child}function YS(e,t,a,o,n,s){if(Kl(t),vs=-1,qc=e!==null&&e.type!==t.type,t.updateQueue=null,a=cy(t,o,a,n),uS(e,t),o=fy(),e!==null&&!Ka)return py(e,t,s),rs(e,t,s);return Rt&&o&&Xg(t),t.flags|=1,yo(e,t,a,s),t.child}function KS(e,t,a,o,n){switch(v(t)){case!1:var s=t.stateNode,c=new t.type(t.memoizedProps,s.context).state;s.updater.enqueueSetState(s,c,null);break;case!0:t.flags|=128,t.flags|=65536,s=Error("Simulated error coming from DevTools");var p=n&-n;if(t.lanes|=p,c=sa,c===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");p=Py(p),Uy(p,c,t,tr(s,t)),Np(t,p)}if(Kl(t),t.stateNode===null){if(c=ol,s=a.contextType,"contextType"in a&&s!==null&&(s===void 0||s.$$typeof!==Rn)&&!DC.has(a)&&(DC.add(a),p=s===void 0?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof s!=="object"?" However, it is set to a "+typeof s+".":s.$$typeof===Nv?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(s).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",ee(a)||"Component",p)),typeof s==="object"&&s!==null&&(c=ka(s)),s=new a(o,c),t.mode&Io){Wt(!0);try{s=new a(o,c)}finally{Wt(!1)}}if(c=t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=Mx,t.stateNode=s,s._reactInternals=t,s._reactInternalInstance=kC,typeof a.getDerivedStateFromProps==="function"&&c===null&&(c=ee(a)||"Component",wC.has(c)||(wC.add(c),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",c,s.state===null?"null":"undefined",c))),typeof a.getDerivedStateFromProps==="function"||typeof s.getSnapshotBeforeUpdate==="function"){var x=p=c=null;if(typeof s.componentWillMount==="function"&&s.componentWillMount.__suppressDeprecationWarning!==!0?c="componentWillMount":typeof s.UNSAFE_componentWillMount==="function"&&(c="UNSAFE_componentWillMount"),typeof s.componentWillReceiveProps==="function"&&s.componentWillReceiveProps.__suppressDeprecationWarning!==!0?p="componentWillReceiveProps":typeof s.UNSAFE_componentWillReceiveProps==="function"&&(p="UNSAFE_componentWillReceiveProps"),typeof s.componentWillUpdate==="function"&&s.componentWillUpdate.__suppressDeprecationWarning!==!0?x="componentWillUpdate":typeof s.UNSAFE_componentWillUpdate==="function"&&(x="UNSAFE_componentWillUpdate"),c!==null||p!==null||x!==null){s=ee(a)||"Component";var k=typeof a.getDerivedStateFromProps==="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";TC.has(s)||(TC.add(s),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
131
+ + <Activity %s>`,a===!0?"hidden":a===!1?"hidden={false}":"hidden={...}",a?'mode="hidden"':'mode="visible"'),t=Qp({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function XS(e,t,a){return pi(t,e.child,null,a),e=Yp(t,t.pendingProps),e.flags|=2,rr(t),t.memoizedState=null,e}function RA(e,t,a){var o=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Rt){if(o.mode==="hidden")return e=Yp(t,o),t.lanes=536870912,Fd(null,e);if(iy(t),(e=va)?(a=vL(e,Ar),a=a!==null&&a.data===Si?a:null,a!==null&&(o={dehydrated:a,treeContext:U0(),retryLane:536870912,hydrationErrors:null},t.memoizedState=o,o=P0(a),o.return=t,t.child=o,bo=t,va=null)):a=null,a===null)throw Sp(t,e),Us(t);return t.lanes=536870912,null}return Yp(t,o)}var s=e.memoizedState;if(s!==null){var c=s.dehydrated;if(iy(t),n)if(t.flags&256)t.flags&=-257,t=XS(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error("Client rendering an Activity suspended it again. This is a bug in React.");else if(H0(),(a&536870912)!==0&&tm(t),Ka||Ji(e,t,a,!1),n=(a&e.childLanes)!==0,Ka||n){if(o=sa,o!==null&&(c=_l(o,a),c!==0&&c!==s.retryLane))throw s.retryLane=c,Co(e,c),Ra(o,e,c),Ex;am(),t=XS(e,t,a)}else e=s.treeContext,va=sr(c.nextSibling),bo=t,Rt=!0,rl=null,qn=!1,dr=null,Ar=!1,e!==null&&_0(t,e),t=Yp(t,o),t.flags|=4096;return t}return s=e.child,o={mode:o.mode,children:o.children},(a&536870912)!==0&&(a&e.lanes)!==0&&tm(t),e=es(s,o),e.ref=t.ref,t.child=e,e.return=t,e}function Kp(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("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");if(e===null||e.ref!==a)t.flags|=4194816}}function _y(e,t,a,o,n){if(a.prototype&&typeof a.prototype.render==="function"){var s=ee(a)||"Unknown";NC[s]||(console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",s,s),NC[s]=!0)}if(t.mode&Io&&Yr.recordLegacyContextWarning(t,null),e===null&&(Hy(t,t.type),a.contextTypes&&(s=ee(a)||"Unknown",OC[s]||(OC[s]=!0,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",s)))),Kl(t),a=dy(e,t,a,o,void 0,n),o=fy(),e!==null&&!Ka)return py(e,t,n),rs(e,t,n);return Rt&&o&&Xg(t),t.flags|=1,yo(e,t,a,n),t.child}function YS(e,t,a,o,n,s){if(Kl(t),vs=-1,qc=e!==null&&e.type!==t.type,t.updateQueue=null,a=cy(t,o,a,n),uS(e,t),o=fy(),e!==null&&!Ka)return py(e,t,s),rs(e,t,s);return Rt&&o&&Xg(t),t.flags|=1,yo(e,t,a,s),t.child}function KS(e,t,a,o,n){switch(v(t)){case!1:var s=t.stateNode,c=new t.type(t.memoizedProps,s.context).state;s.updater.enqueueSetState(s,c,null);break;case!0:t.flags|=128,t.flags|=65536,s=Error("Simulated error coming from DevTools");var p=n&-n;if(t.lanes|=p,c=sa,c===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");p=zy(p),Uy(p,c,t,tr(s,t)),Np(t,p)}if(Kl(t),t.stateNode===null){if(c=ol,s=a.contextType,"contextType"in a&&s!==null&&(s===void 0||s.$$typeof!==Rn)&&!DC.has(a)&&(DC.add(a),p=s===void 0?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof s!=="object"?" However, it is set to a "+typeof s+".":s.$$typeof===Nv?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(s).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",ee(a)||"Component",p)),typeof s==="object"&&s!==null&&(c=ka(s)),s=new a(o,c),t.mode&Io){Wt(!0);try{s=new a(o,c)}finally{Wt(!1)}}if(c=t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=Mx,t.stateNode=s,s._reactInternals=t,s._reactInternalInstance=kC,typeof a.getDerivedStateFromProps==="function"&&c===null&&(c=ee(a)||"Component",wC.has(c)||(wC.add(c),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",c,s.state===null?"null":"undefined",c))),typeof a.getDerivedStateFromProps==="function"||typeof s.getSnapshotBeforeUpdate==="function"){var x=p=c=null;if(typeof s.componentWillMount==="function"&&s.componentWillMount.__suppressDeprecationWarning!==!0?c="componentWillMount":typeof s.UNSAFE_componentWillMount==="function"&&(c="UNSAFE_componentWillMount"),typeof s.componentWillReceiveProps==="function"&&s.componentWillReceiveProps.__suppressDeprecationWarning!==!0?p="componentWillReceiveProps":typeof s.UNSAFE_componentWillReceiveProps==="function"&&(p="UNSAFE_componentWillReceiveProps"),typeof s.componentWillUpdate==="function"&&s.componentWillUpdate.__suppressDeprecationWarning!==!0?x="componentWillUpdate":typeof s.UNSAFE_componentWillUpdate==="function"&&(x="UNSAFE_componentWillUpdate"),c!==null||p!==null||x!==null){s=ee(a)||"Component";var k=typeof a.getDerivedStateFromProps==="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";TC.has(s)||(TC.add(s),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
132
132
 
133
133
  %s uses %s but also contains the following legacy lifecycles:%s%s%s
134
134
 
@@ -136,8 +136,8 @@ The above lifecycles should be removed. Learn more about this warning here:
136
136
  https://react.dev/link/unsafe-component-lifecycles`,s,k,c!==null?`
137
137
  `+c:"",p!==null?`
138
138
  `+p:"",x!==null?`
139
- `+x:""))}}s=t.stateNode,c=ee(a)||"Component",s.render||(a.prototype&&typeof a.prototype.render==="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",c):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",c)),!s.getInitialState||s.getInitialState.isReactClassApproved||s.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",c),s.getDefaultProps&&!s.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",c),s.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",c),a.childContextTypes&&!MC.has(a)&&(MC.add(a),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",c)),a.contextTypes&&!AC.has(a)&&(AC.add(a),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",c)),typeof s.componentShouldUpdate==="function"&&console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",c),a.prototype&&a.prototype.isPureReactComponent&&typeof s.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",ee(a)||"A pure component"),typeof s.componentDidUnmount==="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",c),typeof s.componentDidReceiveProps==="function"&&console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",c),typeof s.componentWillRecieveProps==="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",c),typeof s.UNSAFE_componentWillRecieveProps==="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",c),p=s.props!==o,s.props!==void 0&&p&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",c),s.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",c,c),typeof s.getSnapshotBeforeUpdate!=="function"||typeof s.componentDidUpdate==="function"||CC.has(a)||(CC.add(a),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",ee(a))),typeof s.getDerivedStateFromProps==="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",c),typeof s.getDerivedStateFromError==="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",c),typeof a.getSnapshotBeforeUpdate==="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",c),(p=s.state)&&(typeof p!=="object"||eo(p))&&console.error("%s.state: must be set to an object or null",c),typeof s.getChildContext==="function"&&typeof a.childContextTypes!=="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",c),s=t.stateNode,s.props=o,s.state=t.memoizedState,s.refs={},ry(t),c=a.contextType,s.context=typeof c==="object"&&c!==null?ka(c):ol,s.state===o&&(c=ee(a)||"Component",IC.has(c)||(IC.add(c),console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",c))),t.mode&Io&&Yr.recordLegacyContextWarning(t,s),Yr.recordUnsafeLifecycleWarnings(t,s),s.state=t.memoizedState,c=a.getDerivedStateFromProps,typeof c==="function"&&(By(t,a,c,o),s.state=t.memoizedState),typeof a.getDerivedStateFromProps==="function"||typeof s.getSnapshotBeforeUpdate==="function"||typeof s.UNSAFE_componentWillMount!=="function"&&typeof s.componentWillMount!=="function"||(c=s.state,typeof s.componentWillMount==="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount==="function"&&s.UNSAFE_componentWillMount(),c!==s.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",V(t)||"Component"),Mx.enqueueReplaceState(s,s.state,null)),Pd(t,o,s,n),zd(),s.state=t.memoizedState),typeof s.componentDidMount==="function"&&(t.flags|=4194308),(t.mode&Xr)!==Ze&&(t.flags|=134217728),s=!0}else if(e===null){s=t.stateNode;var q=t.memoizedProps;p=ei(a,q),s.props=p;var B=s.context;x=a.contextType,c=ol,typeof x==="object"&&x!==null&&(c=ka(x)),k=a.getDerivedStateFromProps,x=typeof k==="function"||typeof s.getSnapshotBeforeUpdate==="function",q=t.pendingProps!==q,x||typeof s.UNSAFE_componentWillReceiveProps!=="function"&&typeof s.componentWillReceiveProps!=="function"||(q||B!==c)&&zS(t,s,o,c),dl=!1;var D=t.memoizedState;s.state=D,Pd(t,o,s,n),zd(),B=t.memoizedState,q||D!==B||dl?(typeof k==="function"&&(By(t,a,k,o),B=t.memoizedState),(p=dl||BS(t,a,p,o,D,B,c))?(x||typeof s.UNSAFE_componentWillMount!=="function"&&typeof s.componentWillMount!=="function"||(typeof s.componentWillMount==="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount==="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount==="function"&&(t.flags|=4194308),(t.mode&Xr)!==Ze&&(t.flags|=134217728)):(typeof s.componentDidMount==="function"&&(t.flags|=4194308),(t.mode&Xr)!==Ze&&(t.flags|=134217728),t.memoizedProps=o,t.memoizedState=B),s.props=o,s.state=B,s.context=c,s=p):(typeof s.componentDidMount==="function"&&(t.flags|=4194308),(t.mode&Xr)!==Ze&&(t.flags|=134217728),s=!1)}else{s=t.stateNode,ny(e,t),c=t.memoizedProps,x=ei(a,c),s.props=x,k=t.pendingProps,D=s.context,B=a.contextType,p=ol,typeof B==="object"&&B!==null&&(p=ka(B)),q=a.getDerivedStateFromProps,(B=typeof q==="function"||typeof s.getSnapshotBeforeUpdate==="function")||typeof s.UNSAFE_componentWillReceiveProps!=="function"&&typeof s.componentWillReceiveProps!=="function"||(c!==k||D!==p)&&zS(t,s,o,p),dl=!1,D=t.memoizedState,s.state=D,Pd(t,o,s,n),zd();var F=t.memoizedState;c!==k||D!==F||dl||e!==null&&e.dependencies!==null&&Lp(e.dependencies)?(typeof q==="function"&&(By(t,a,q,o),F=t.memoizedState),(x=dl||BS(t,a,x,o,D,F,p)||e!==null&&e.dependencies!==null&&Lp(e.dependencies))?(B||typeof s.UNSAFE_componentWillUpdate!=="function"&&typeof s.componentWillUpdate!=="function"||(typeof s.componentWillUpdate==="function"&&s.componentWillUpdate(o,F,p),typeof s.UNSAFE_componentWillUpdate==="function"&&s.UNSAFE_componentWillUpdate(o,F,p)),typeof s.componentDidUpdate==="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate==="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!=="function"||c===e.memoizedProps&&D===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!=="function"||c===e.memoizedProps&&D===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=F),s.props=o,s.state=F,s.context=p,s=x):(typeof s.componentDidUpdate!=="function"||c===e.memoizedProps&&D===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!=="function"||c===e.memoizedProps&&D===e.memoizedState||(t.flags|=1024),s=!1)}if(p=s,Kp(e,t),c=(t.flags&128)!==0,p||c){if(p=t.stateNode,we(t),c&&typeof a.getDerivedStateFromError!=="function")a=null,Bo=-1;else if(a=Zw(p),t.mode&Io){Wt(!0);try{Zw(p)}finally{Wt(!1)}}t.flags|=1,e!==null&&c?(t.child=pi(t,e.child,null,n),t.child=pi(t,null,a,n)):yo(e,t,a,n),t.memoizedState=p.state,e=t.child}else e=rs(e,t,n);return n=t.stateNode,s&&n.props!==o&&(_u||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",V(t)||"a component"),_u=!0),e}function QS(e,t,a,o){return Yl(),t.flags|=256,yo(e,t,a,o),t.child}function Hy(e,t){t&&t.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
140
- %s.childContextTypes = ...`,t.displayName||t.name||"Component"),typeof t.getDerivedStateFromProps==="function"&&(e=ee(t)||"Unknown",BC[e]||(console.error("%s: Function components do not support getDerivedStateFromProps.",e),BC[e]=!0)),typeof t.contextType==="object"&&t.contextType!==null&&(t=ee(t)||"Unknown",qC[t]||(console.error("%s: Function components do not support contextType.",t),qC[t]=!0))}function Fy(e){return{baseLanes:e,cachePool:Y0()}}function Gy(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Yo),e}function WS(e,t,a){var o,n=t.pendingProps;g(t)&&(t.flags|=128);var s=!1,c=(t.flags&128)!==0;if((o=c)||(o=e!==null&&e.memoizedState===null?!1:(Ha.current&Ec)!==0),o&&(s=!0,t.flags&=-129),o=(t.flags&32)!==0,t.flags&=-33,e===null){if(Rt){if(s?Vs(t):js(t),(e=va)?(a=vL(e,Ar),a=a!==null&&a.data!==Si?a:null,a!==null&&(o={dehydrated:a,treeContext:U0(),retryLane:536870912,hydrationErrors:null},t.memoizedState=o,o=z0(a),o.return=t,t.child=o,bo=t,va=null)):a=null,a===null)throw Sp(t,e),Us(t);return kv(a)?t.lanes=32:t.lanes=536870912,null}var p=n.children;if(n=n.fallback,s){js(t);var x=t.mode;return p=Qp({mode:"hidden",children:p},x),n=$l(n,x,a,null),p.return=t,n.return=t,p.sibling=n,t.child=p,n=t.child,n.memoizedState=Fy(a),n.childLanes=Gy(e,o,a),t.memoizedState=Nx,Fd(null,n)}return Vs(t),Vy(t,p)}var k=e.memoizedState;if(k!==null){var q=k.dehydrated;if(q!==null){if(c)t.flags&256?(Vs(t),t.flags&=-257,t=jy(e,t,a)):t.memoizedState!==null?(js(t),t.child=e.child,t.flags|=128,t=null):(js(t),p=n.fallback,x=t.mode,n=Qp({mode:"visible",children:n.children},x),p=$l(p,x,a,null),p.flags|=2,n.return=t,p.return=t,n.sibling=p,t.child=n,pi(t,e.child,null,a),n=t.child,n.memoizedState=Fy(a),n.childLanes=Gy(e,o,a),t.memoizedState=Nx,t=Fd(null,n));else if(Vs(t),H0(),(a&536870912)!==0&&tm(t),kv(q)){if(o=q.nextSibling&&q.nextSibling.dataset,o){p=o.dgst;var B=o.msg;x=o.stck;var D=o.cstck}s=B,o=p,n=x,q=D,p=s,x=q,p=p?Error(p):Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),p.stack=n||"",p.digest=o,o=x===void 0?null:x,n={value:p,source:null,stack:o},typeof o==="string"&&fx.set(p,n),Dd(n),t=jy(e,t,a)}else if(Ka||Ji(e,t,a,!1),o=(a&e.childLanes)!==0,Ka||o){if(o=sa,o!==null&&(n=_l(o,a),n!==0&&n!==k.retryLane))throw k.retryLane=n,Co(e,n),Ra(o,e,n),Ex;Sv(q)||am(),t=jy(e,t,a)}else Sv(q)?(t.flags|=192,t.child=e.child,t=null):(e=k.treeContext,va=sr(q.nextSibling),bo=t,Rt=!0,rl=null,qn=!1,dr=null,Ar=!1,e!==null&&_0(t,e),t=Vy(t,n.children),t.flags|=4096);return t}}if(s)return js(t),p=n.fallback,x=t.mode,D=e.child,q=D.sibling,n=es(D,{mode:"hidden",children:n.children}),n.subtreeFlags=D.subtreeFlags&65011712,q!==null?p=es(q,p):(p=$l(p,x,a,null),p.flags|=2),p.return=t,n.return=t,n.sibling=p,t.child=n,Fd(null,n),n=t.child,p=e.child.memoizedState,p===null?p=Fy(a):(x=p.cachePool,x!==null?(D=$a._currentValue,x=x.parent!==D?{parent:D,pool:D}:x):x=Y0(),p={baseLanes:p.baseLanes|a,cachePool:x}),n.memoizedState=p,n.childLanes=Gy(e,o,a),t.memoizedState=Nx,Fd(e.child,n);return k!==null&&(a&62914560)===a&&(a&e.lanes)!==0&&tm(t),Vs(t),a=e.child,e=a.sibling,a=es(a,{mode:"visible",children:n.children}),a.return=t,a.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=a,t.memoizedState=null,a}function Vy(e,t){return t=Qp({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Qp(e,t){return e=L(22,e,null,t),e.lanes=0,e}function jy(e,t,a){return pi(t,e.child,null,a),e=Vy(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ZS(e,t,a){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),Wg(e.return,t,a)}function $y(e,t,a,o,n,s){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:a,tailMode:n,treeForkCount:s}:(c.isBackwards=t,c.rendering=null,c.renderingStartTime=0,c.last=o,c.tail=a,c.tailMode=n,c.treeForkCount=s)}function JS(e,t,a){var o=t.pendingProps,n=o.revealOrder,s=o.tail,c=o.children,p=Ha.current;if((o=(p&Ec)!==0)?(p=p&Bu|Ec,t.flags|=128):p&=Bu,Ne(Ha,p,t),p=n==null?"null":n,n!=="forwards"&&n!=="unstable_legacy-backwards"&&n!=="together"&&n!=="independent"&&!zC[p])if(zC[p]=!0,n==null)console.error('The default for the <SuspenseList revealOrder="..."> prop is changing. To be future compatible you must explictly specify either "independent" (the current default), "together", "forwards" or "legacy_unstable-backwards".');else if(n==="backwards")console.error('The rendering order of <SuspenseList revealOrder="backwards"> is changing. To be future compatible you must specify revealOrder="legacy_unstable-backwards" instead.');else if(typeof n==="string")switch(n.toLowerCase()){case"together":case"forwards":case"backwards":case"independent":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',n,n.toLowerCase());break;case"forward":case"backward":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',n,n.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',n)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',n);if(p=s==null?"null":s,!Ym[p])if(s==null){if(n==="forwards"||n==="backwards"||n==="unstable_legacy-backwards")Ym[p]=!0,console.error('The default for the <SuspenseList tail="..."> prop is changing. To be future compatible you must explictly specify either "visible" (the current default), "collapsed" or "hidden".')}else s!=="visible"&&s!=="collapsed"&&s!=="hidden"?(Ym[p]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',s)):n!=="forwards"&&n!=="backwards"&&n!=="unstable_legacy-backwards"&&(Ym[p]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',s));e:if((n==="forwards"||n==="backwards"||n==="unstable_legacy-backwards")&&c!==void 0&&c!==null&&c!==!1)if(eo(c)){for(p=0;p<c.length;p++)if(!rS(c[p],p))break e}else if(p=ce(c),typeof p==="function"){if(p=p.call(c))for(var x=p.next(),k=0;!x.done;x=p.next()){if(!rS(x.value,k))break e;k++}}else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',n);if(yo(e,t,c,a),Rt?(Ps(),c=yc):c=0,!o&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ZS(e,a,t);else if(e.tag===19)ZS(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":a=t.child;for(n=null;a!==null;)e=a.alternate,e!==null&&qp(e)===null&&(n=a),a=a.sibling;a=n,a===null?(n=t.child,t.child=null):(n=a.sibling,a.sibling=null),$y(t,!1,n,a,s,c);break;case"backwards":case"unstable_legacy-backwards":a=null,n=t.child;for(t.child=null;n!==null;){if(e=n.alternate,e!==null&&qp(e)===null){t.child=n;break}e=n.sibling,n.sibling=a,a=n,n=e}$y(t,!0,a,null,s,c);break;case"together":$y(t,!1,null,null,void 0,c);break;default:t.memoizedState=null}return t.child}function rs(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Bo=-1,pl|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(Ji(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error("Resuming work not yet implemented.");if(t.child!==null){e=t.child,a=es(e,e.pendingProps),t.child=a;for(a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=es(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Xy(e,t){if((e.lanes&t)!==0)return!0;return e=e.dependencies,e!==null&&Lp(e)?!0:!1}function AA(e,t,a){switch(t.tag){case 3:oe(t,t.stateNode.containerInfo),_s(t,$a,e.memoizedState.cache),Yl();break;case 27:case 5:Qe(t);break;case 4:oe(t,t.stateNode.containerInfo);break;case 10:_s(t,t.type,t.memoizedProps.value);break;case 12:(a&t.childLanes)!==0&&(t.flags|=4),t.flags|=2048;var o=t.stateNode;o.effectDuration=-0,o.passiveEffectDuration=-0;break;case 31:if(t.memoizedState!==null)return t.flags|=128,iy(t),null;break;case 13:if(o=t.memoizedState,o!==null){if(o.dehydrated!==null)return Vs(t),t.flags|=128,null;if((a&t.child.childLanes)!==0)return WS(e,t,a);return Vs(t),e=rs(e,t,a),e!==null?e.sibling:null}Vs(t);break;case 19:var n=(e.flags&128)!==0;if(o=(a&t.childLanes)!==0,o||(Ji(e,t,a,!1),o=(a&t.childLanes)!==0),n){if(o)return JS(e,t,a);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),Ne(Ha,Ha.current,t),o)break;else return null;case 22:return t.lanes=0,jS(e,t,a,t.pendingProps);case 24:_s(t,$a,e.memoizedState.cache)}return rs(e,t,a)}function Yy(e,t,a){if(t._debugNeedsRemount&&e!==null){a=Vg(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes),a._debugStack=t._debugStack,a._debugTask=t._debugTask;var o=t.return;if(o===null)throw Error("Cannot swap the root fiber.");if(e.alternate=null,t.alternate=null,a.index=t.index,a.sibling=t.sibling,a.return=t.return,a.ref=t.ref,a._debugInfo=t._debugInfo,t===o.child)o.child=a;else{var n=o.child;if(n===null)throw Error("Expected parent to have a child.");for(;n.sibling!==t;)if(n=n.sibling,n===null)throw Error("Expected to find the previous sibling.");n.sibling=a}return t=o.deletions,t===null?(o.deletions=[e],o.flags|=16):t.push(e),a.flags|=2,a}if(e!==null)if(e.memoizedProps!==t.pendingProps||t.type!==e.type)Ka=!0;else{if(!Xy(e,a)&&(t.flags&128)===0)return Ka=!1,AA(e,t,a);Ka=(e.flags&131072)!==0?!0:!1}else{if(Ka=!1,o=Rt)Ps(),o=(t.flags&1048576)!==0;o&&(o=t.index,Ps(),P0(t,yc,o))}switch(t.lanes=0,t.tag){case 16:e:if(o=t.pendingProps,e=Hs(t.elementType),t.type=e,typeof e==="function")Gg(e)?(o=ei(e,o),t.tag=1,t.type=e=jl(e),t=KS(null,t,e,o,a)):(t.tag=0,Hy(t,e),t.type=e=jl(e),t=_y(null,t,e,o,a));else{if(e!==void 0&&e!==null){if(n=e.$$typeof,n===rc){t.tag=11,t.type=e=Fg(e),t=FS(null,t,e,o,a);break e}else if(n===gm){t.tag=14,t=GS(null,t,e,o,a);break e}}throw t="",e!==null&&typeof e==="object"&&e.$$typeof===lr&&(t=" Did you wrap a component in React.lazy() more than once?"),a=ee(e)||e,Error("Element type is invalid. Received a promise that resolves to: "+a+". Lazy element type must resolve to a class or function."+t)}return t;case 0:return _y(e,t,t.type,t.pendingProps,a);case 1:return o=t.type,n=ei(o,t.pendingProps),KS(e,t,o,n,a);case 3:e:{if(oe(t,t.stateNode.containerInfo),e===null)throw Error("Should have a current fiber. This is a bug in React.");o=t.pendingProps;var s=t.memoizedState;n=s.element,ny(e,t),Pd(t,o,null,a);var c=t.memoizedState;if(o=c.cache,_s(t,$a,o),o!==s.cache&&Zg(t,[$a],a,!0),zd(),o=c.element,s.isDehydrated)if(s={element:o,isDehydrated:!1,cache:c.cache},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){t=QS(e,t,o,a);break e}else if(o!==n){n=tr(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t),Dd(n),t=QS(e,t,o,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}va=sr(e.firstChild),bo=t,Rt=!0,rl=null,qn=!1,dr=null,Ar=!0,a=fC(t,null,o,a);for(t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(Yl(),o===n){t=rs(e,t,a);break e}yo(e,t,o,a)}t=t.child}return t;case 26:return Kp(e,t),e===null?(a=wL(t.type,null,t.pendingProps,null))?t.memoizedState=a:Rt||(a=t.type,e=t.pendingProps,o=Te(Ws.current),o=sm(o).createElement(a),o[xo]=t,o[No]=e,vo(o,a,e),Pe(o),t.stateNode=o):t.memoizedState=wL(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Qe(t),e===null&&Rt&&(o=Te(Ws.current),n=Ee(),o=t.stateNode=kL(t.type,t.pendingProps,o,n,!1),qn||(n=dL(o,t.type,t.pendingProps,n),n!==null&&(Xl(t,0).serverProps=n)),bo=t,Ar=!0,n=va,Ks(t.type)?(ab=n,va=sr(o.firstChild)):va=n),yo(e,t,t.pendingProps.children,a),Kp(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Rt&&(s=Ee(),o=qg(t.type,s.ancestorInfo),n=va,(c=!n)||(c=yM(n,t.type,t.pendingProps,Ar),c!==null?(t.stateNode=c,qn||(s=dL(c,t.type,t.pendingProps,s),s!==null&&(Xl(t,0).serverProps=s)),bo=t,va=sr(c.firstChild),Ar=!1,s=!0):s=!1,c=!s),c&&(o&&Sp(t,n),Us(t))),Qe(t),n=t.type,s=t.pendingProps,c=e!==null?e.memoizedProps:null,o=s.children,xv(n,s)?o=null:c!==null&&xv(n,c)&&(t.flags|=32),t.memoizedState!==null&&(n=dy(e,t,SA,null,null,a),Qc._currentValue=n),Kp(e,t),yo(e,t,o,a),t.child;case 6:return e===null&&Rt&&(a=t.pendingProps,e=Ee(),o=e.ancestorInfo.current,a=o!=null?cp(a,o.tag,e.ancestorInfo.implicitRootScope):!0,e=va,(o=!e)||(o=vM(e,t.pendingProps,Ar),o!==null?(t.stateNode=o,bo=t,va=null,o=!0):o=!1,o=!o),o&&(a&&Sp(t,e),Us(t))),null;case 13:return WS(e,t,a);case 4:return oe(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=pi(t,null,o,a):yo(e,t,o,a),t.child;case 11:return FS(e,t,t.type,t.pendingProps,a);case 7:return yo(e,t,t.pendingProps,a),t.child;case 8:return yo(e,t,t.pendingProps.children,a),t.child;case 12:return t.flags|=4,t.flags|=2048,o=t.stateNode,o.effectDuration=-0,o.passiveEffectDuration=-0,yo(e,t,t.pendingProps.children,a),t.child;case 10:return o=t.type,n=t.pendingProps,s=n.value,"value"in n||PC||(PC=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),_s(t,o,s),yo(e,t,n.children,a),t.child;case 9:return n=t.type._context,o=t.pendingProps.children,typeof o!=="function"&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),Kl(t),n=ka(n),o=bx(o,n,void 0),t.flags|=1,yo(e,t,o,a),t.child;case 14:return GS(e,t,t.type,t.pendingProps,a);case 15:return VS(e,t,t.type,t.pendingProps,a);case 19:return JS(e,t,a);case 31:return RA(e,t,a);case 22:return jS(e,t,a,t.pendingProps);case 24:return Kl(t),o=ka($a),e===null?(n=ay(),n===null&&(n=sa,s=Jg(),n.pooledCache=s,Ql(s),s!==null&&(n.pooledCacheLanes|=a),n=s),t.memoizedState={parent:o,cache:n},ry(t),_s(t,$a,n)):((e.lanes&a)!==0&&(ny(e,t),Pd(t,null,null,a),zd()),n=e.memoizedState,s=t.memoizedState,n.parent!==o?(n={parent:o,cache:o},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),_s(t,$a,o)):(o=s.cache,_s(t,$a,o),o!==n.cache&&Zg(t,[$a],a,!0))),yo(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function ns(e){e.flags|=4}function Ky(e,t,a,o,n){if(t=(e.mode&KD)!==Ze)t=!1;if(t){if(e.flags|=16777216,(n&335544128)===n)if(e.stateNode.complete)e.flags|=8192;else if(Ek())e.flags|=8192;else throw fi=Fm,kx}else e.flags&=-16777217}function ek(e,t){if(t.type!=="stylesheet"||(t.state.loading&qr)!==wi)e.flags&=-16777217;else if(e.flags|=16777216,!AL(t))if(Ek())e.flags|=8192;else throw fi=Fm,kx}function Wp(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Xi():536870912,e.lanes|=t,vi|=t)}function Gd(e,t){if(!Rt)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 o=null;a!==null;)a.alternate!==null&&(o=a),a=a.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function ca(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,o=0;if(t)if((e.mode&mt)!==Ze){for(var{selfBaseDuration:n,child:s}=e;s!==null;)a|=s.lanes|s.childLanes,o|=s.subtreeFlags&65011712,o|=s.flags&65011712,n+=s.treeBaseDuration,s=s.sibling;e.treeBaseDuration=n}else for(n=e.child;n!==null;)a|=n.lanes|n.childLanes,o|=n.subtreeFlags&65011712,o|=n.flags&65011712,n.return=e,n=n.sibling;else if((e.mode&mt)!==Ze){n=e.actualDuration,s=e.selfBaseDuration;for(var c=e.child;c!==null;)a|=c.lanes|c.childLanes,o|=c.subtreeFlags,o|=c.flags,n+=c.actualDuration,s+=c.treeBaseDuration,c=c.sibling;e.actualDuration=n,e.treeBaseDuration=s}else for(n=e.child;n!==null;)a|=n.lanes|n.childLanes,o|=n.subtreeFlags,o|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=o,e.childLanes=a,t}function MA(e,t,a){var o=t.pendingProps;switch(Yg(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ca(t),null;case 1:return ca(t),null;case 3:if(a=t.stateNode,o=null,e!==null&&(o=e.memoizedState.cache),t.memoizedState.cache!==o&&(t.flags|=2048),as($a,t),Se(t),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),e===null||e.child===null)Zi(t)?(Qg(),ns(t)):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Kg());return ca(t),null;case 26:var{type:n,memoizedState:s}=t;return e===null?(ns(t),s!==null?(ca(t),ek(t,s)):(ca(t),Ky(t,n,null,o,a))):s?s!==e.memoizedState?(ns(t),ca(t),ek(t,s)):(ca(t),t.flags&=-16777217):(e=e.memoizedProps,e!==o&&ns(t),ca(t),Ky(t,n,e,o,a)),null;case 27:if(yt(t),a=Te(Ws.current),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&ns(t);else{if(!o){if(t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return ca(t),null}e=Ee(),Zi(t)?F0(t,e):(e=kL(n,o,a,e,!0),t.stateNode=e,ns(t))}return ca(t),null;case 5:if(yt(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&ns(t);else{if(!o){if(t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return ca(t),null}var c=Ee();if(Zi(t))F0(t,c);else{switch(s=Te(Ws.current),qg(n,c.ancestorInfo),c=c.context,s=sm(s),c){case Yu:s=s.createElementNS(vu,n);break;case mh:s=s.createElementNS(Lm,n);break;default:switch(n){case"svg":s=s.createElementNS(vu,n);break;case"math":s=s.createElementNS(Lm,n);break;case"script":s=s.createElement("div"),s.innerHTML="<script></script>",s=s.removeChild(s.firstChild);break;case"select":s=typeof o.is==="string"?s.createElement("select",{is:o.is}):s.createElement("select"),o.multiple?s.multiple=!0:o.size&&(s.size=o.size);break;default:s=typeof o.is==="string"?s.createElement(n,{is:o.is}):s.createElement(n),n.indexOf("-")===-1&&(n!==n.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",n),Object.prototype.toString.call(s)!=="[object HTMLUnknownElement]"||jr.call(i1,n)||(i1[n]=!0,console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",n)))}}s[xo]=t,s[No]=o;e:for(c=t.child;c!==null;){if(c.tag===5||c.tag===6)s.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=s;e:switch(vo(s,n,o),n){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&ns(t)}}return ca(t),Ky(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==o&&ns(t);else{if(typeof o!=="string"&&t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(e=Te(Ws.current),a=Ee(),Zi(t)){if(e=t.stateNode,a=t.memoizedProps,n=!qn,o=null,s=bo,s!==null)switch(s.tag){case 3:n&&(n=bL(e,a,o),n!==null&&(Xl(t,0).serverProps=n));break;case 27:case 5:o=s.memoizedProps,n&&(n=bL(e,a,o),n!==null&&(Xl(t,0).serverProps=n))}e[xo]=t,e=e.nodeValue===a||o!==null&&o.suppressHydrationWarning===!0||nL(e.nodeValue,a)?!0:!1,e||Us(t,!0)}else n=a.ancestorInfo.current,n!=null&&cp(o,n.tag,a.ancestorInfo.implicitRootScope),e=sm(e).createTextNode(o),e[xo]=t,t.stateNode=e}return ca(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(o=Zi(t),a!==null){if(e===null){if(!o)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.");e[xo]=t,ca(t),(t.mode&mt)!==Ze&&a!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration))}else Qg(),Yl(),(t.flags&128)===0&&(a=t.memoizedState=null),t.flags|=4,ca(t),(t.mode&mt)!==Ze&&a!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration));e=!1}else a=Kg(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e){if(t.flags&256)return rr(t),t;return rr(t),null}if((t.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return ca(t),null;case 13:if(o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=o,s=Zi(t),n!==null&&n.dehydrated!==null){if(e===null){if(!s)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");s[xo]=t,ca(t),(t.mode&mt)!==Ze&&n!==null&&(n=t.child,n!==null&&(t.treeBaseDuration-=n.treeBaseDuration))}else Qg(),Yl(),(t.flags&128)===0&&(n=t.memoizedState=null),t.flags|=4,ca(t),(t.mode&mt)!==Ze&&n!==null&&(n=t.child,n!==null&&(t.treeBaseDuration-=n.treeBaseDuration));n=!1}else n=Kg(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n){if(t.flags&256)return rr(t),t;return rr(t),null}}if(rr(t),(t.flags&128)!==0)return t.lanes=a,(t.mode&mt)!==Ze&&qd(t),t;return a=o!==null,e=e!==null&&e.memoizedState!==null,a&&(o=t.child,n=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(n=o.alternate.memoizedState.cachePool.pool),s=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(s=o.memoizedState.cachePool.pool),s!==n&&(o.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Wp(t,t.updateQueue),ca(t),(t.mode&mt)!==Ze&&a&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration)),null;case 4:return Se(t),e===null&&fv(t.stateNode.containerInfo),ca(t),null;case 10:return as(t.type,t),ca(t),null;case 19:if(pe(Ha,t),o=t.memoizedState,o===null)return ca(t),null;if(n=(t.flags&128)!==0,s=o.rendering,s===null)if(n)Gd(o,!1);else{if(Ta!==bs||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=qp(e),s!==null){t.flags|=128,Gd(o,!1),e=s.updateQueue,t.updateQueue=e,Wp(t,e),t.subtreeFlags=0,e=a;for(a=t.child;a!==null;)B0(a,e),a=a.sibling;return Ne(Ha,Ha.current&Bu|Ec,t),Rt&&ts(t,o.treeForkCount),t.child}e=e.sibling}o.tail!==null&&so()>th&&(t.flags|=128,n=!0,Gd(o,!1),t.lanes=4194304)}else{if(!n)if(e=qp(s),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,Wp(t,e),Gd(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!Rt)return ca(t),null}else 2*so()-o.renderingStartTime>th&&a!==536870912&&(t.flags|=128,n=!0,Gd(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(e=o.last,e!==null?e.sibling=s:t.child=s,o.last=s)}if(o.tail!==null)return e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=so(),e.sibling=null,a=Ha.current,a=n?a&Bu|Ec:a&Bu,Ne(Ha,a,t),Rt&&ts(t,o.treeForkCount),e;return ca(t),null;case 22:case 23:return rr(t),ly(t),o=t.memoizedState!==null,e!==null?e.memoizedState!==null!==o&&(t.flags|=8192):o&&(t.flags|=8192),o?(a&536870912)!==0&&(t.flags&128)===0&&(ca(t),t.subtreeFlags&6&&(t.flags|=8192)):ca(t),a=t.updateQueue,a!==null&&Wp(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),o=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(o=t.memoizedState.cachePool.pool),o!==a&&(t.flags|=2048),e!==null&&pe(di,t),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),as($a,t),ca(t),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function DA(e,t){switch(Yg(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&mt)!==Ze&&qd(t),t):null;case 3:return as($a,t),Se(t),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return yt(t),null;case 31:if(t.memoizedState!==null){if(rr(t),t.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Yl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&mt)!==Ze&&qd(t),t):null;case 13:if(rr(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Yl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&mt)!==Ze&&qd(t),t):null;case 19:return pe(Ha,t),null;case 4:return Se(t),null;case 10:return as(t.type,t),null;case 22:case 23:return rr(t),ly(t),e!==null&&pe(di,t),e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&mt)!==Ze&&qd(t),t):null;case 24:return as($a,t),null;case 25:return null;default:return null}}function tk(e,t){switch(Yg(t),t.tag){case 3:as($a,t),Se(t);break;case 26:case 27:case 5:yt(t);break;case 4:Se(t);break;case 31:t.memoizedState!==null&&rr(t);break;case 13:rr(t);break;case 19:pe(Ha,t);break;case 10:as(t.type,t);break;case 22:case 23:rr(t),ly(t),e!==null&&pe(di,t);break;case 24:as($a,t)}}function Sn(e){return(e.mode&mt)!==Ze}function ak(e,t){Sn(e)?(bn(),Vd(t,e),xn()):Vd(t,e)}function Qy(e,t,a){Sn(e)?(bn(),ru(a,e,t),xn()):ru(a,e,t)}function Vd(e,t){try{var a=t.updateQueue,o=a!==null?a.lastEffect:null;if(o!==null){var n=o.next;a=n;do{if((a.tag&e)===e&&(o=void 0,(e&zo)!==Vm&&(ju=!0),o=H(t,eE,a),(e&zo)!==Vm&&(ju=!1),o!==void 0&&typeof o!=="function")){var s=void 0;s=(a.tag&fr)!==0?"useLayoutEffect":(a.tag&zo)!==0?"useInsertionEffect":"useEffect";var c=void 0;c=o===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof o.then==="function"?`
139
+ `+x:""))}}s=t.stateNode,c=ee(a)||"Component",s.render||(a.prototype&&typeof a.prototype.render==="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",c):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",c)),!s.getInitialState||s.getInitialState.isReactClassApproved||s.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",c),s.getDefaultProps&&!s.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",c),s.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",c),a.childContextTypes&&!MC.has(a)&&(MC.add(a),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",c)),a.contextTypes&&!AC.has(a)&&(AC.add(a),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",c)),typeof s.componentShouldUpdate==="function"&&console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",c),a.prototype&&a.prototype.isPureReactComponent&&typeof s.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",ee(a)||"A pure component"),typeof s.componentDidUnmount==="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",c),typeof s.componentDidReceiveProps==="function"&&console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",c),typeof s.componentWillRecieveProps==="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",c),typeof s.UNSAFE_componentWillRecieveProps==="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",c),p=s.props!==o,s.props!==void 0&&p&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",c),s.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",c,c),typeof s.getSnapshotBeforeUpdate!=="function"||typeof s.componentDidUpdate==="function"||CC.has(a)||(CC.add(a),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",ee(a))),typeof s.getDerivedStateFromProps==="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",c),typeof s.getDerivedStateFromError==="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",c),typeof a.getSnapshotBeforeUpdate==="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",c),(p=s.state)&&(typeof p!=="object"||eo(p))&&console.error("%s.state: must be set to an object or null",c),typeof s.getChildContext==="function"&&typeof a.childContextTypes!=="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",c),s=t.stateNode,s.props=o,s.state=t.memoizedState,s.refs={},ry(t),c=a.contextType,s.context=typeof c==="object"&&c!==null?ka(c):ol,s.state===o&&(c=ee(a)||"Component",IC.has(c)||(IC.add(c),console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",c))),t.mode&Io&&Yr.recordLegacyContextWarning(t,s),Yr.recordUnsafeLifecycleWarnings(t,s),s.state=t.memoizedState,c=a.getDerivedStateFromProps,typeof c==="function"&&(By(t,a,c,o),s.state=t.memoizedState),typeof a.getDerivedStateFromProps==="function"||typeof s.getSnapshotBeforeUpdate==="function"||typeof s.UNSAFE_componentWillMount!=="function"&&typeof s.componentWillMount!=="function"||(c=s.state,typeof s.componentWillMount==="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount==="function"&&s.UNSAFE_componentWillMount(),c!==s.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",V(t)||"Component"),Mx.enqueueReplaceState(s,s.state,null)),zd(t,o,s,n),Pd(),s.state=t.memoizedState),typeof s.componentDidMount==="function"&&(t.flags|=4194308),(t.mode&Xr)!==Ze&&(t.flags|=134217728),s=!0}else if(e===null){s=t.stateNode;var q=t.memoizedProps;p=ei(a,q),s.props=p;var B=s.context;x=a.contextType,c=ol,typeof x==="object"&&x!==null&&(c=ka(x)),k=a.getDerivedStateFromProps,x=typeof k==="function"||typeof s.getSnapshotBeforeUpdate==="function",q=t.pendingProps!==q,x||typeof s.UNSAFE_componentWillReceiveProps!=="function"&&typeof s.componentWillReceiveProps!=="function"||(q||B!==c)&&PS(t,s,o,c),dl=!1;var D=t.memoizedState;s.state=D,zd(t,o,s,n),Pd(),B=t.memoizedState,q||D!==B||dl?(typeof k==="function"&&(By(t,a,k,o),B=t.memoizedState),(p=dl||BS(t,a,p,o,D,B,c))?(x||typeof s.UNSAFE_componentWillMount!=="function"&&typeof s.componentWillMount!=="function"||(typeof s.componentWillMount==="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount==="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount==="function"&&(t.flags|=4194308),(t.mode&Xr)!==Ze&&(t.flags|=134217728)):(typeof s.componentDidMount==="function"&&(t.flags|=4194308),(t.mode&Xr)!==Ze&&(t.flags|=134217728),t.memoizedProps=o,t.memoizedState=B),s.props=o,s.state=B,s.context=c,s=p):(typeof s.componentDidMount==="function"&&(t.flags|=4194308),(t.mode&Xr)!==Ze&&(t.flags|=134217728),s=!1)}else{s=t.stateNode,ny(e,t),c=t.memoizedProps,x=ei(a,c),s.props=x,k=t.pendingProps,D=s.context,B=a.contextType,p=ol,typeof B==="object"&&B!==null&&(p=ka(B)),q=a.getDerivedStateFromProps,(B=typeof q==="function"||typeof s.getSnapshotBeforeUpdate==="function")||typeof s.UNSAFE_componentWillReceiveProps!=="function"&&typeof s.componentWillReceiveProps!=="function"||(c!==k||D!==p)&&PS(t,s,o,p),dl=!1,D=t.memoizedState,s.state=D,zd(t,o,s,n),Pd();var F=t.memoizedState;c!==k||D!==F||dl||e!==null&&e.dependencies!==null&&Lp(e.dependencies)?(typeof q==="function"&&(By(t,a,q,o),F=t.memoizedState),(x=dl||BS(t,a,x,o,D,F,p)||e!==null&&e.dependencies!==null&&Lp(e.dependencies))?(B||typeof s.UNSAFE_componentWillUpdate!=="function"&&typeof s.componentWillUpdate!=="function"||(typeof s.componentWillUpdate==="function"&&s.componentWillUpdate(o,F,p),typeof s.UNSAFE_componentWillUpdate==="function"&&s.UNSAFE_componentWillUpdate(o,F,p)),typeof s.componentDidUpdate==="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate==="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!=="function"||c===e.memoizedProps&&D===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!=="function"||c===e.memoizedProps&&D===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=F),s.props=o,s.state=F,s.context=p,s=x):(typeof s.componentDidUpdate!=="function"||c===e.memoizedProps&&D===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!=="function"||c===e.memoizedProps&&D===e.memoizedState||(t.flags|=1024),s=!1)}if(p=s,Kp(e,t),c=(t.flags&128)!==0,p||c){if(p=t.stateNode,we(t),c&&typeof a.getDerivedStateFromError!=="function")a=null,Bo=-1;else if(a=Zw(p),t.mode&Io){Wt(!0);try{Zw(p)}finally{Wt(!1)}}t.flags|=1,e!==null&&c?(t.child=pi(t,e.child,null,n),t.child=pi(t,null,a,n)):yo(e,t,a,n),t.memoizedState=p.state,e=t.child}else e=rs(e,t,n);return n=t.stateNode,s&&n.props!==o&&(_u||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",V(t)||"a component"),_u=!0),e}function QS(e,t,a,o){return Yl(),t.flags|=256,yo(e,t,a,o),t.child}function Hy(e,t){t&&t.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
140
+ %s.childContextTypes = ...`,t.displayName||t.name||"Component"),typeof t.getDerivedStateFromProps==="function"&&(e=ee(t)||"Unknown",BC[e]||(console.error("%s: Function components do not support getDerivedStateFromProps.",e),BC[e]=!0)),typeof t.contextType==="object"&&t.contextType!==null&&(t=ee(t)||"Unknown",qC[t]||(console.error("%s: Function components do not support contextType.",t),qC[t]=!0))}function Fy(e){return{baseLanes:e,cachePool:Y0()}}function Gy(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Yo),e}function WS(e,t,a){var o,n=t.pendingProps;g(t)&&(t.flags|=128);var s=!1,c=(t.flags&128)!==0;if((o=c)||(o=e!==null&&e.memoizedState===null?!1:(Ha.current&Ec)!==0),o&&(s=!0,t.flags&=-129),o=(t.flags&32)!==0,t.flags&=-33,e===null){if(Rt){if(s?Vs(t):js(t),(e=va)?(a=vL(e,Ar),a=a!==null&&a.data!==Si?a:null,a!==null&&(o={dehydrated:a,treeContext:U0(),retryLane:536870912,hydrationErrors:null},t.memoizedState=o,o=P0(a),o.return=t,t.child=o,bo=t,va=null)):a=null,a===null)throw Sp(t,e),Us(t);return kv(a)?t.lanes=32:t.lanes=536870912,null}var p=n.children;if(n=n.fallback,s){js(t);var x=t.mode;return p=Qp({mode:"hidden",children:p},x),n=$l(n,x,a,null),p.return=t,n.return=t,p.sibling=n,t.child=p,n=t.child,n.memoizedState=Fy(a),n.childLanes=Gy(e,o,a),t.memoizedState=Nx,Fd(null,n)}return Vs(t),Vy(t,p)}var k=e.memoizedState;if(k!==null){var q=k.dehydrated;if(q!==null){if(c)t.flags&256?(Vs(t),t.flags&=-257,t=jy(e,t,a)):t.memoizedState!==null?(js(t),t.child=e.child,t.flags|=128,t=null):(js(t),p=n.fallback,x=t.mode,n=Qp({mode:"visible",children:n.children},x),p=$l(p,x,a,null),p.flags|=2,n.return=t,p.return=t,n.sibling=p,t.child=n,pi(t,e.child,null,a),n=t.child,n.memoizedState=Fy(a),n.childLanes=Gy(e,o,a),t.memoizedState=Nx,t=Fd(null,n));else if(Vs(t),H0(),(a&536870912)!==0&&tm(t),kv(q)){if(o=q.nextSibling&&q.nextSibling.dataset,o){p=o.dgst;var B=o.msg;x=o.stck;var D=o.cstck}s=B,o=p,n=x,q=D,p=s,x=q,p=p?Error(p):Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),p.stack=n||"",p.digest=o,o=x===void 0?null:x,n={value:p,source:null,stack:o},typeof o==="string"&&fx.set(p,n),Dd(n),t=jy(e,t,a)}else if(Ka||Ji(e,t,a,!1),o=(a&e.childLanes)!==0,Ka||o){if(o=sa,o!==null&&(n=_l(o,a),n!==0&&n!==k.retryLane))throw k.retryLane=n,Co(e,n),Ra(o,e,n),Ex;Sv(q)||am(),t=jy(e,t,a)}else Sv(q)?(t.flags|=192,t.child=e.child,t=null):(e=k.treeContext,va=sr(q.nextSibling),bo=t,Rt=!0,rl=null,qn=!1,dr=null,Ar=!1,e!==null&&_0(t,e),t=Vy(t,n.children),t.flags|=4096);return t}}if(s)return js(t),p=n.fallback,x=t.mode,D=e.child,q=D.sibling,n=es(D,{mode:"hidden",children:n.children}),n.subtreeFlags=D.subtreeFlags&65011712,q!==null?p=es(q,p):(p=$l(p,x,a,null),p.flags|=2),p.return=t,n.return=t,n.sibling=p,t.child=n,Fd(null,n),n=t.child,p=e.child.memoizedState,p===null?p=Fy(a):(x=p.cachePool,x!==null?(D=$a._currentValue,x=x.parent!==D?{parent:D,pool:D}:x):x=Y0(),p={baseLanes:p.baseLanes|a,cachePool:x}),n.memoizedState=p,n.childLanes=Gy(e,o,a),t.memoizedState=Nx,Fd(e.child,n);return k!==null&&(a&62914560)===a&&(a&e.lanes)!==0&&tm(t),Vs(t),a=e.child,e=a.sibling,a=es(a,{mode:"visible",children:n.children}),a.return=t,a.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=a,t.memoizedState=null,a}function Vy(e,t){return t=Qp({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Qp(e,t){return e=L(22,e,null,t),e.lanes=0,e}function jy(e,t,a){return pi(t,e.child,null,a),e=Vy(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ZS(e,t,a){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),Wg(e.return,t,a)}function $y(e,t,a,o,n,s){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:a,tailMode:n,treeForkCount:s}:(c.isBackwards=t,c.rendering=null,c.renderingStartTime=0,c.last=o,c.tail=a,c.tailMode=n,c.treeForkCount=s)}function JS(e,t,a){var o=t.pendingProps,n=o.revealOrder,s=o.tail,c=o.children,p=Ha.current;if((o=(p&Ec)!==0)?(p=p&Bu|Ec,t.flags|=128):p&=Bu,Ne(Ha,p,t),p=n==null?"null":n,n!=="forwards"&&n!=="unstable_legacy-backwards"&&n!=="together"&&n!=="independent"&&!PC[p])if(PC[p]=!0,n==null)console.error('The default for the <SuspenseList revealOrder="..."> prop is changing. To be future compatible you must explictly specify either "independent" (the current default), "together", "forwards" or "legacy_unstable-backwards".');else if(n==="backwards")console.error('The rendering order of <SuspenseList revealOrder="backwards"> is changing. To be future compatible you must specify revealOrder="legacy_unstable-backwards" instead.');else if(typeof n==="string")switch(n.toLowerCase()){case"together":case"forwards":case"backwards":case"independent":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',n,n.toLowerCase());break;case"forward":case"backward":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',n,n.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',n)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',n);if(p=s==null?"null":s,!Ym[p])if(s==null){if(n==="forwards"||n==="backwards"||n==="unstable_legacy-backwards")Ym[p]=!0,console.error('The default for the <SuspenseList tail="..."> prop is changing. To be future compatible you must explictly specify either "visible" (the current default), "collapsed" or "hidden".')}else s!=="visible"&&s!=="collapsed"&&s!=="hidden"?(Ym[p]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',s)):n!=="forwards"&&n!=="backwards"&&n!=="unstable_legacy-backwards"&&(Ym[p]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',s));e:if((n==="forwards"||n==="backwards"||n==="unstable_legacy-backwards")&&c!==void 0&&c!==null&&c!==!1)if(eo(c)){for(p=0;p<c.length;p++)if(!rS(c[p],p))break e}else if(p=ce(c),typeof p==="function"){if(p=p.call(c))for(var x=p.next(),k=0;!x.done;x=p.next()){if(!rS(x.value,k))break e;k++}}else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',n);if(yo(e,t,c,a),Rt?(zs(),c=yc):c=0,!o&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ZS(e,a,t);else if(e.tag===19)ZS(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":a=t.child;for(n=null;a!==null;)e=a.alternate,e!==null&&qp(e)===null&&(n=a),a=a.sibling;a=n,a===null?(n=t.child,t.child=null):(n=a.sibling,a.sibling=null),$y(t,!1,n,a,s,c);break;case"backwards":case"unstable_legacy-backwards":a=null,n=t.child;for(t.child=null;n!==null;){if(e=n.alternate,e!==null&&qp(e)===null){t.child=n;break}e=n.sibling,n.sibling=a,a=n,n=e}$y(t,!0,a,null,s,c);break;case"together":$y(t,!1,null,null,void 0,c);break;default:t.memoizedState=null}return t.child}function rs(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Bo=-1,pl|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(Ji(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error("Resuming work not yet implemented.");if(t.child!==null){e=t.child,a=es(e,e.pendingProps),t.child=a;for(a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=es(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Xy(e,t){if((e.lanes&t)!==0)return!0;return e=e.dependencies,e!==null&&Lp(e)?!0:!1}function AA(e,t,a){switch(t.tag){case 3:oe(t,t.stateNode.containerInfo),_s(t,$a,e.memoizedState.cache),Yl();break;case 27:case 5:Qe(t);break;case 4:oe(t,t.stateNode.containerInfo);break;case 10:_s(t,t.type,t.memoizedProps.value);break;case 12:(a&t.childLanes)!==0&&(t.flags|=4),t.flags|=2048;var o=t.stateNode;o.effectDuration=-0,o.passiveEffectDuration=-0;break;case 31:if(t.memoizedState!==null)return t.flags|=128,iy(t),null;break;case 13:if(o=t.memoizedState,o!==null){if(o.dehydrated!==null)return Vs(t),t.flags|=128,null;if((a&t.child.childLanes)!==0)return WS(e,t,a);return Vs(t),e=rs(e,t,a),e!==null?e.sibling:null}Vs(t);break;case 19:var n=(e.flags&128)!==0;if(o=(a&t.childLanes)!==0,o||(Ji(e,t,a,!1),o=(a&t.childLanes)!==0),n){if(o)return JS(e,t,a);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),Ne(Ha,Ha.current,t),o)break;else return null;case 22:return t.lanes=0,jS(e,t,a,t.pendingProps);case 24:_s(t,$a,e.memoizedState.cache)}return rs(e,t,a)}function Yy(e,t,a){if(t._debugNeedsRemount&&e!==null){a=Vg(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes),a._debugStack=t._debugStack,a._debugTask=t._debugTask;var o=t.return;if(o===null)throw Error("Cannot swap the root fiber.");if(e.alternate=null,t.alternate=null,a.index=t.index,a.sibling=t.sibling,a.return=t.return,a.ref=t.ref,a._debugInfo=t._debugInfo,t===o.child)o.child=a;else{var n=o.child;if(n===null)throw Error("Expected parent to have a child.");for(;n.sibling!==t;)if(n=n.sibling,n===null)throw Error("Expected to find the previous sibling.");n.sibling=a}return t=o.deletions,t===null?(o.deletions=[e],o.flags|=16):t.push(e),a.flags|=2,a}if(e!==null)if(e.memoizedProps!==t.pendingProps||t.type!==e.type)Ka=!0;else{if(!Xy(e,a)&&(t.flags&128)===0)return Ka=!1,AA(e,t,a);Ka=(e.flags&131072)!==0?!0:!1}else{if(Ka=!1,o=Rt)zs(),o=(t.flags&1048576)!==0;o&&(o=t.index,zs(),z0(t,yc,o))}switch(t.lanes=0,t.tag){case 16:e:if(o=t.pendingProps,e=Hs(t.elementType),t.type=e,typeof e==="function")Gg(e)?(o=ei(e,o),t.tag=1,t.type=e=jl(e),t=KS(null,t,e,o,a)):(t.tag=0,Hy(t,e),t.type=e=jl(e),t=_y(null,t,e,o,a));else{if(e!==void 0&&e!==null){if(n=e.$$typeof,n===rc){t.tag=11,t.type=e=Fg(e),t=FS(null,t,e,o,a);break e}else if(n===gm){t.tag=14,t=GS(null,t,e,o,a);break e}}throw t="",e!==null&&typeof e==="object"&&e.$$typeof===lr&&(t=" Did you wrap a component in React.lazy() more than once?"),a=ee(e)||e,Error("Element type is invalid. Received a promise that resolves to: "+a+". Lazy element type must resolve to a class or function."+t)}return t;case 0:return _y(e,t,t.type,t.pendingProps,a);case 1:return o=t.type,n=ei(o,t.pendingProps),KS(e,t,o,n,a);case 3:e:{if(oe(t,t.stateNode.containerInfo),e===null)throw Error("Should have a current fiber. This is a bug in React.");o=t.pendingProps;var s=t.memoizedState;n=s.element,ny(e,t),zd(t,o,null,a);var c=t.memoizedState;if(o=c.cache,_s(t,$a,o),o!==s.cache&&Zg(t,[$a],a,!0),Pd(),o=c.element,s.isDehydrated)if(s={element:o,isDehydrated:!1,cache:c.cache},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){t=QS(e,t,o,a);break e}else if(o!==n){n=tr(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t),Dd(n),t=QS(e,t,o,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}va=sr(e.firstChild),bo=t,Rt=!0,rl=null,qn=!1,dr=null,Ar=!0,a=fC(t,null,o,a);for(t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(Yl(),o===n){t=rs(e,t,a);break e}yo(e,t,o,a)}t=t.child}return t;case 26:return Kp(e,t),e===null?(a=wL(t.type,null,t.pendingProps,null))?t.memoizedState=a:Rt||(a=t.type,e=t.pendingProps,o=Te(Ws.current),o=sm(o).createElement(a),o[xo]=t,o[No]=e,vo(o,a,e),ze(o),t.stateNode=o):t.memoizedState=wL(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Qe(t),e===null&&Rt&&(o=Te(Ws.current),n=Ee(),o=t.stateNode=kL(t.type,t.pendingProps,o,n,!1),qn||(n=dL(o,t.type,t.pendingProps,n),n!==null&&(Xl(t,0).serverProps=n)),bo=t,Ar=!0,n=va,Ks(t.type)?(ab=n,va=sr(o.firstChild)):va=n),yo(e,t,t.pendingProps.children,a),Kp(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Rt&&(s=Ee(),o=qg(t.type,s.ancestorInfo),n=va,(c=!n)||(c=yM(n,t.type,t.pendingProps,Ar),c!==null?(t.stateNode=c,qn||(s=dL(c,t.type,t.pendingProps,s),s!==null&&(Xl(t,0).serverProps=s)),bo=t,va=sr(c.firstChild),Ar=!1,s=!0):s=!1,c=!s),c&&(o&&Sp(t,n),Us(t))),Qe(t),n=t.type,s=t.pendingProps,c=e!==null?e.memoizedProps:null,o=s.children,xv(n,s)?o=null:c!==null&&xv(n,c)&&(t.flags|=32),t.memoizedState!==null&&(n=dy(e,t,SA,null,null,a),Qc._currentValue=n),Kp(e,t),yo(e,t,o,a),t.child;case 6:return e===null&&Rt&&(a=t.pendingProps,e=Ee(),o=e.ancestorInfo.current,a=o!=null?cp(a,o.tag,e.ancestorInfo.implicitRootScope):!0,e=va,(o=!e)||(o=vM(e,t.pendingProps,Ar),o!==null?(t.stateNode=o,bo=t,va=null,o=!0):o=!1,o=!o),o&&(a&&Sp(t,e),Us(t))),null;case 13:return WS(e,t,a);case 4:return oe(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=pi(t,null,o,a):yo(e,t,o,a),t.child;case 11:return FS(e,t,t.type,t.pendingProps,a);case 7:return yo(e,t,t.pendingProps,a),t.child;case 8:return yo(e,t,t.pendingProps.children,a),t.child;case 12:return t.flags|=4,t.flags|=2048,o=t.stateNode,o.effectDuration=-0,o.passiveEffectDuration=-0,yo(e,t,t.pendingProps.children,a),t.child;case 10:return o=t.type,n=t.pendingProps,s=n.value,"value"in n||zC||(zC=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),_s(t,o,s),yo(e,t,n.children,a),t.child;case 9:return n=t.type._context,o=t.pendingProps.children,typeof o!=="function"&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),Kl(t),n=ka(n),o=bx(o,n,void 0),t.flags|=1,yo(e,t,o,a),t.child;case 14:return GS(e,t,t.type,t.pendingProps,a);case 15:return VS(e,t,t.type,t.pendingProps,a);case 19:return JS(e,t,a);case 31:return RA(e,t,a);case 22:return jS(e,t,a,t.pendingProps);case 24:return Kl(t),o=ka($a),e===null?(n=ay(),n===null&&(n=sa,s=Jg(),n.pooledCache=s,Ql(s),s!==null&&(n.pooledCacheLanes|=a),n=s),t.memoizedState={parent:o,cache:n},ry(t),_s(t,$a,n)):((e.lanes&a)!==0&&(ny(e,t),zd(t,null,null,a),Pd()),n=e.memoizedState,s=t.memoizedState,n.parent!==o?(n={parent:o,cache:o},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),_s(t,$a,o)):(o=s.cache,_s(t,$a,o),o!==n.cache&&Zg(t,[$a],a,!0))),yo(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function ns(e){e.flags|=4}function Ky(e,t,a,o,n){if(t=(e.mode&KD)!==Ze)t=!1;if(t){if(e.flags|=16777216,(n&335544128)===n)if(e.stateNode.complete)e.flags|=8192;else if(Ek())e.flags|=8192;else throw fi=Fm,kx}else e.flags&=-16777217}function ek(e,t){if(t.type!=="stylesheet"||(t.state.loading&qr)!==wi)e.flags&=-16777217;else if(e.flags|=16777216,!AL(t))if(Ek())e.flags|=8192;else throw fi=Fm,kx}function Wp(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Xi():536870912,e.lanes|=t,vi|=t)}function Gd(e,t){if(!Rt)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 o=null;a!==null;)a.alternate!==null&&(o=a),a=a.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function ca(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,o=0;if(t)if((e.mode&mt)!==Ze){for(var{selfBaseDuration:n,child:s}=e;s!==null;)a|=s.lanes|s.childLanes,o|=s.subtreeFlags&65011712,o|=s.flags&65011712,n+=s.treeBaseDuration,s=s.sibling;e.treeBaseDuration=n}else for(n=e.child;n!==null;)a|=n.lanes|n.childLanes,o|=n.subtreeFlags&65011712,o|=n.flags&65011712,n.return=e,n=n.sibling;else if((e.mode&mt)!==Ze){n=e.actualDuration,s=e.selfBaseDuration;for(var c=e.child;c!==null;)a|=c.lanes|c.childLanes,o|=c.subtreeFlags,o|=c.flags,n+=c.actualDuration,s+=c.treeBaseDuration,c=c.sibling;e.actualDuration=n,e.treeBaseDuration=s}else for(n=e.child;n!==null;)a|=n.lanes|n.childLanes,o|=n.subtreeFlags,o|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=o,e.childLanes=a,t}function MA(e,t,a){var o=t.pendingProps;switch(Yg(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ca(t),null;case 1:return ca(t),null;case 3:if(a=t.stateNode,o=null,e!==null&&(o=e.memoizedState.cache),t.memoizedState.cache!==o&&(t.flags|=2048),as($a,t),Se(t),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),e===null||e.child===null)Zi(t)?(Qg(),ns(t)):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Kg());return ca(t),null;case 26:var{type:n,memoizedState:s}=t;return e===null?(ns(t),s!==null?(ca(t),ek(t,s)):(ca(t),Ky(t,n,null,o,a))):s?s!==e.memoizedState?(ns(t),ca(t),ek(t,s)):(ca(t),t.flags&=-16777217):(e=e.memoizedProps,e!==o&&ns(t),ca(t),Ky(t,n,e,o,a)),null;case 27:if(yt(t),a=Te(Ws.current),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&ns(t);else{if(!o){if(t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return ca(t),null}e=Ee(),Zi(t)?F0(t,e):(e=kL(n,o,a,e,!0),t.stateNode=e,ns(t))}return ca(t),null;case 5:if(yt(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&ns(t);else{if(!o){if(t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return ca(t),null}var c=Ee();if(Zi(t))F0(t,c);else{switch(s=Te(Ws.current),qg(n,c.ancestorInfo),c=c.context,s=sm(s),c){case Yu:s=s.createElementNS(vu,n);break;case mh:s=s.createElementNS(Lm,n);break;default:switch(n){case"svg":s=s.createElementNS(vu,n);break;case"math":s=s.createElementNS(Lm,n);break;case"script":s=s.createElement("div"),s.innerHTML="<script></script>",s=s.removeChild(s.firstChild);break;case"select":s=typeof o.is==="string"?s.createElement("select",{is:o.is}):s.createElement("select"),o.multiple?s.multiple=!0:o.size&&(s.size=o.size);break;default:s=typeof o.is==="string"?s.createElement(n,{is:o.is}):s.createElement(n),n.indexOf("-")===-1&&(n!==n.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",n),Object.prototype.toString.call(s)!=="[object HTMLUnknownElement]"||jr.call(i1,n)||(i1[n]=!0,console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",n)))}}s[xo]=t,s[No]=o;e:for(c=t.child;c!==null;){if(c.tag===5||c.tag===6)s.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=s;e:switch(vo(s,n,o),n){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&ns(t)}}return ca(t),Ky(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==o&&ns(t);else{if(typeof o!=="string"&&t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(e=Te(Ws.current),a=Ee(),Zi(t)){if(e=t.stateNode,a=t.memoizedProps,n=!qn,o=null,s=bo,s!==null)switch(s.tag){case 3:n&&(n=bL(e,a,o),n!==null&&(Xl(t,0).serverProps=n));break;case 27:case 5:o=s.memoizedProps,n&&(n=bL(e,a,o),n!==null&&(Xl(t,0).serverProps=n))}e[xo]=t,e=e.nodeValue===a||o!==null&&o.suppressHydrationWarning===!0||nL(e.nodeValue,a)?!0:!1,e||Us(t,!0)}else n=a.ancestorInfo.current,n!=null&&cp(o,n.tag,a.ancestorInfo.implicitRootScope),e=sm(e).createTextNode(o),e[xo]=t,t.stateNode=e}return ca(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(o=Zi(t),a!==null){if(e===null){if(!o)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.");e[xo]=t,ca(t),(t.mode&mt)!==Ze&&a!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration))}else Qg(),Yl(),(t.flags&128)===0&&(a=t.memoizedState=null),t.flags|=4,ca(t),(t.mode&mt)!==Ze&&a!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration));e=!1}else a=Kg(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e){if(t.flags&256)return rr(t),t;return rr(t),null}if((t.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return ca(t),null;case 13:if(o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=o,s=Zi(t),n!==null&&n.dehydrated!==null){if(e===null){if(!s)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");s[xo]=t,ca(t),(t.mode&mt)!==Ze&&n!==null&&(n=t.child,n!==null&&(t.treeBaseDuration-=n.treeBaseDuration))}else Qg(),Yl(),(t.flags&128)===0&&(n=t.memoizedState=null),t.flags|=4,ca(t),(t.mode&mt)!==Ze&&n!==null&&(n=t.child,n!==null&&(t.treeBaseDuration-=n.treeBaseDuration));n=!1}else n=Kg(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n){if(t.flags&256)return rr(t),t;return rr(t),null}}if(rr(t),(t.flags&128)!==0)return t.lanes=a,(t.mode&mt)!==Ze&&qd(t),t;return a=o!==null,e=e!==null&&e.memoizedState!==null,a&&(o=t.child,n=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(n=o.alternate.memoizedState.cachePool.pool),s=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(s=o.memoizedState.cachePool.pool),s!==n&&(o.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Wp(t,t.updateQueue),ca(t),(t.mode&mt)!==Ze&&a&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration)),null;case 4:return Se(t),e===null&&fv(t.stateNode.containerInfo),ca(t),null;case 10:return as(t.type,t),ca(t),null;case 19:if(pe(Ha,t),o=t.memoizedState,o===null)return ca(t),null;if(n=(t.flags&128)!==0,s=o.rendering,s===null)if(n)Gd(o,!1);else{if(Ta!==bs||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=qp(e),s!==null){t.flags|=128,Gd(o,!1),e=s.updateQueue,t.updateQueue=e,Wp(t,e),t.subtreeFlags=0,e=a;for(a=t.child;a!==null;)B0(a,e),a=a.sibling;return Ne(Ha,Ha.current&Bu|Ec,t),Rt&&ts(t,o.treeForkCount),t.child}e=e.sibling}o.tail!==null&&so()>th&&(t.flags|=128,n=!0,Gd(o,!1),t.lanes=4194304)}else{if(!n)if(e=qp(s),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,Wp(t,e),Gd(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!Rt)return ca(t),null}else 2*so()-o.renderingStartTime>th&&a!==536870912&&(t.flags|=128,n=!0,Gd(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(e=o.last,e!==null?e.sibling=s:t.child=s,o.last=s)}if(o.tail!==null)return e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=so(),e.sibling=null,a=Ha.current,a=n?a&Bu|Ec:a&Bu,Ne(Ha,a,t),Rt&&ts(t,o.treeForkCount),e;return ca(t),null;case 22:case 23:return rr(t),ly(t),o=t.memoizedState!==null,e!==null?e.memoizedState!==null!==o&&(t.flags|=8192):o&&(t.flags|=8192),o?(a&536870912)!==0&&(t.flags&128)===0&&(ca(t),t.subtreeFlags&6&&(t.flags|=8192)):ca(t),a=t.updateQueue,a!==null&&Wp(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),o=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(o=t.memoizedState.cachePool.pool),o!==a&&(t.flags|=2048),e!==null&&pe(di,t),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),as($a,t),ca(t),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function DA(e,t){switch(Yg(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&mt)!==Ze&&qd(t),t):null;case 3:return as($a,t),Se(t),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return yt(t),null;case 31:if(t.memoizedState!==null){if(rr(t),t.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Yl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&mt)!==Ze&&qd(t),t):null;case 13:if(rr(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Yl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&mt)!==Ze&&qd(t),t):null;case 19:return pe(Ha,t),null;case 4:return Se(t),null;case 10:return as(t.type,t),null;case 22:case 23:return rr(t),ly(t),e!==null&&pe(di,t),e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&mt)!==Ze&&qd(t),t):null;case 24:return as($a,t),null;case 25:return null;default:return null}}function tk(e,t){switch(Yg(t),t.tag){case 3:as($a,t),Se(t);break;case 26:case 27:case 5:yt(t);break;case 4:Se(t);break;case 31:t.memoizedState!==null&&rr(t);break;case 13:rr(t);break;case 19:pe(Ha,t);break;case 10:as(t.type,t);break;case 22:case 23:rr(t),ly(t),e!==null&&pe(di,t);break;case 24:as($a,t)}}function Sn(e){return(e.mode&mt)!==Ze}function ak(e,t){Sn(e)?(bn(),Vd(t,e),xn()):Vd(t,e)}function Qy(e,t,a){Sn(e)?(bn(),ru(a,e,t),xn()):ru(a,e,t)}function Vd(e,t){try{var a=t.updateQueue,o=a!==null?a.lastEffect:null;if(o!==null){var n=o.next;a=n;do{if((a.tag&e)===e&&(o=void 0,(e&Po)!==Vm&&(ju=!0),o=H(t,eE,a),(e&Po)!==Vm&&(ju=!1),o!==void 0&&typeof o!=="function")){var s=void 0;s=(a.tag&fr)!==0?"useLayoutEffect":(a.tag&Po)!==0?"useInsertionEffect":"useEffect";var c=void 0;c=o===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof o.then==="function"?`
141
141
 
142
142
  It looks like you wrote `+s+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
143
143
 
@@ -150,11 +150,11 @@ It looks like you wrote `+s+`(async () => ...) or returned a Promise. Instead, w
150
150
  fetchData();
151
151
  }, [someId]); // Or [] if effect doesn't need props or state
152
152
 
153
- Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+o,H(t,function(p,x){console.error("%s must not return anything besides a function, which is used for clean-up.%s",p,x)},s,c)}a=a.next}while(a!==n)}}catch(p){Zt(t,t.return,p)}}function ru(e,t,a){try{var o=t.updateQueue,n=o!==null?o.lastEffect:null;if(n!==null){var s=n.next;o=s;do{if((o.tag&e)===e){var c=o.inst,p=c.destroy;p!==void 0&&(c.destroy=void 0,(e&zo)!==Vm&&(ju=!0),n=t,H(n,tE,n,a,p),(e&zo)!==Vm&&(ju=!1))}o=o.next}while(o!==s)}}catch(x){Zt(t,t.return,x)}}function ok(e,t){Sn(e)?(bn(),Vd(t,e),xn()):Vd(t,e)}function Wy(e,t,a){Sn(e)?(bn(),ru(a,e,t),xn()):ru(a,e,t)}function rk(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;e.type.defaultProps||"ref"in e.memoizedProps||_u||(a.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",V(e)||"instance"),a.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",V(e)||"instance"));try{H(e,sS,t,a)}catch(o){Zt(e,e.return,o)}}}function EA(e,t,a){return e.getSnapshotBeforeUpdate(t,a)}function NA(e,t){var a=t.memoizedProps,o=t.memoizedState;t=e.stateNode,e.type.defaultProps||"ref"in e.memoizedProps||_u||(t.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",V(e)||"instance"),t.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",V(e)||"instance"));try{var n=ei(e.type,a),s=H(e,EA,t,n,o);a=UC,s!==void 0||a.has(e.type)||(a.add(e.type),H(e,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",V(e))})),t.__reactInternalSnapshotBeforeUpdate=s}catch(c){Zt(e,e.return,c)}}function nk(e,t,a){a.props=ei(e.type,e.memoizedProps),a.state=e.memoizedState,Sn(e)?(bn(),H(e,rC,e,t,a),xn()):H(e,rC,e,t,a)}function qA(e){var t=e.ref;if(t!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}if(typeof t==="function")if(Sn(e))try{bn(),e.refCleanup=t(a)}finally{xn()}else e.refCleanup=t(a);else typeof t==="string"?console.error("String refs are no longer supported."):t.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",V(e)),t.current=a}}function jd(e,t){try{H(e,qA,e)}catch(a){Zt(e,t,a)}}function kn(e,t){var a=e.ref,o=e.refCleanup;if(a!==null)if(typeof o==="function")try{if(Sn(e))try{bn(),H(e,o)}finally{xn(e)}else H(e,o)}catch(n){Zt(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a==="function")try{if(Sn(e))try{bn(),H(e,a,null)}finally{xn(e)}else H(e,a,null)}catch(n){Zt(e,t,n)}else a.current=null}function sk(e,t,a,o){var n=e.memoizedProps,s=n.id,c=n.onCommit;n=n.onRender,t=t===null?"mount":"update",Pm&&(t="nested-update"),typeof n==="function"&&n(s,t,e.actualDuration,e.treeBaseDuration,e.actualStartTime,a),typeof c==="function"&&c(s,t,o,a)}function OA(e,t,a,o){var n=e.memoizedProps;e=n.id,n=n.onPostCommit,t=t===null?"mount":"update",Pm&&(t="nested-update"),typeof n==="function"&&n(e,t,o,a)}function lk(e){var{type:t,memoizedProps:a,stateNode:o}=e;try{H(e,nM,o,t,a,e)}catch(n){Zt(e,e.return,n)}}function Zy(e,t,a){try{H(e,lM,e.stateNode,e.type,a,t,e)}catch(o){Zt(e,e.return,o)}}function ik(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ks(e.type)||e.tag===4}function Jy(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ik(e.return))return null;e=e.return}e.sibling.return=e.return;for(e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Ks(e.type))continue e;if(e.flags&2)continue e;if(e.child===null||e.tag===4)continue e;else e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ev(e,t,a){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?(hL(a),(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t)):(hL(a),t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!==null&&a!==void 0||t.onclick!==null||(t.onclick=Jn));else if(o!==4&&(o===27&&Ks(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(ev(e,t,a),e=e.sibling;e!==null;)ev(e,t,a),e=e.sibling}function Zp(e,t,a){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(o!==4&&(o===27&&Ks(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Zp(e,t,a),e=e.sibling;e!==null;)Zp(e,t,a),e=e.sibling}function BA(e){for(var t,a=e.return;a!==null;){if(ik(a)){t=a;break}a=a.return}if(t==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(t.tag){case 27:t=t.stateNode,a=Jy(e),Zp(e,a,t);break;case 5:a=t.stateNode,t.flags&32&&(mL(a),t.flags&=-33),t=Jy(e),Zp(e,t,a);break;case 3:case 4:t=t.stateNode.containerInfo,a=Jy(e),ev(e,a,t);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function uk(e){var{stateNode:t,memoizedProps:a}=e;try{H(e,LM,e.type,a,t,e)}catch(o){Zt(e,e.return,o)}}function dk(e,t){return t.tag===31?(t=t.memoizedState,e.memoizedState!==null&&t===null):t.tag===13?(e=e.memoizedState,t=t.memoizedState,e!==null&&e.dehydrated!==null&&(t===null||t.dehydrated===null)):t.tag===3?e.memoizedState.isDehydrated&&(t.flags&256)===0:!1}function zA(e,t){if(e=e.containerInfo,Jx=vh,e=T0(e),zg(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var o=a.getSelection&&a.getSelection();if(o&&o.rangeCount!==0){a=o.anchorNode;var n=o.anchorOffset,s=o.focusNode;o=o.focusOffset;try{a.nodeType,s.nodeType}catch(me){a=null;break e}var c=0,p=-1,x=-1,k=0,q=0,B=e,D=null;t:for(;;){for(var F;;){if(B!==a||n!==0&&B.nodeType!==3||(p=c+n),B!==s||o!==0&&B.nodeType!==3||(x=c+o),B.nodeType===3&&(c+=B.nodeValue.length),(F=B.firstChild)===null)break;D=B,B=F}for(;;){if(B===e)break t;if(D===a&&++k===n&&(p=c),D===s&&++q===o&&(x=c),(F=B.nextSibling)!==null)break;B=D,D=B.parentNode}B=F}a=p===-1||x===-1?null:{start:p,end:x}}else a=null}a=a||{start:0,end:0}}else a=null;eb={focusedElem:e,selectionRange:a},vh=!1;for(io=t;io!==null;)if(t=io,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,io=e;else for(;io!==null;){switch(e=t=io,a=e.alternate,n=e.flags,e.tag){case 0:if((n&4)!==0&&(e=e.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:(n&1024)!==0&&a!==null&&NA(e,a);break;case 3:if((n&1024)!==0){if(e=e.stateNode.containerInfo,a=e.nodeType,a===9)bv(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":bv(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((n&1024)!==0)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if(e=t.sibling,e!==null){e.return=t.return,io=e;break}io=t.return}}function ck(e,t,a){var o=ar(),n=hn(),s=yn(),c=vn(),p=a.flags;switch(a.tag){case 0:case 11:case 15:Ln(e,a),p&4&&ak(a,fr|Er);break;case 1:if(Ln(e,a),p&4)if(e=a.stateNode,t===null)a.type.defaultProps||"ref"in a.memoizedProps||_u||(e.props!==a.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",V(a)||"instance"),e.state!==a.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",V(a)||"instance")),Sn(a)?(bn(),H(a,Sx,a,e),xn()):H(a,Sx,a,e);else{var x=ei(a.type,t.memoizedProps);t=t.memoizedState,a.type.defaultProps||"ref"in a.memoizedProps||_u||(e.props!==a.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",V(a)||"instance"),e.state!==a.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",V(a)||"instance")),Sn(a)?(bn(),H(a,tC,a,e,x,t,e.__reactInternalSnapshotBeforeUpdate),xn()):H(a,tC,a,e,x,t,e.__reactInternalSnapshotBeforeUpdate)}p&64&&rk(a),p&512&&jd(a,a.return);break;case 3:if(t=os(),Ln(e,a),p&64&&(p=a.updateQueue,p!==null)){if(x=null,a.child!==null)switch(a.child.tag){case 27:case 5:x=a.child.stateNode;break;case 1:x=a.child.stateNode}try{H(a,sS,p,x)}catch(q){Zt(a,a.return,q)}}e.effectDuration+=Cp(t);break;case 27:t===null&&p&4&&uk(a);case 26:case 5:if(Ln(e,a),t===null){if(p&4)lk(a);else if(p&64){e=a.type,t=a.memoizedProps,x=a.stateNode;try{H(a,sM,x,e,t,a)}catch(q){Zt(a,a.return,q)}}}p&512&&jd(a,a.return);break;case 12:if(p&4){p=os(),Ln(e,a),e=a.stateNode,e.effectDuration+=Nd(p);try{H(a,sk,a,t,nl,e.effectDuration)}catch(q){Zt(a,a.return,q)}}else Ln(e,a);break;case 31:Ln(e,a),p&4&&mk(e,a);break;case 13:Ln(e,a),p&4&&hk(e,a),p&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(p=$A.bind(null,a),xM(e,p))));break;case 22:if(p=a.memoizedState!==null||xs,!p){t=t!==null&&t.memoizedState!==null||Qa,x=xs;var k=Qa;xs=p,(Qa=t)&&!k?(wn(e,a,(a.subtreeFlags&8772)!==0),(a.mode&mt)!==Ze&&0<=Ue&&0<=$e&&0.05<$e-Ue&&hp(a,Ue,$e)):Ln(e,a),xs=x,Qa=k}break;case 30:break;default:Ln(e,a)}(a.mode&mt)!==Ze&&0<=Ue&&0<=$e&&((Aa||0.05<Ca)&&pn(a,Ue,$e,Ca,La),a.alternate===null&&a.return!==null&&a.return.alternate!==null&&0.05<$e-Ue&&(dk(a.return.alternate,a.return)||fn(a,Ue,$e,"Mount"))),or(o),gn(n),La=s,Aa=c}function fk(e){var t=e.alternate;t!==null&&(e.alternate=null,fk(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ye(t)),e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ss(e,t,a){for(a=a.child;a!==null;)pk(e,t,a),a=a.sibling}function pk(e,t,a){if(To&&typeof To.onCommitFiberUnmount==="function")try{To.onCommitFiberUnmount(gu,a)}catch(k){Mn||(Mn=!0,console.error("React instrumentation encountered an error: %o",k))}var o=ar(),n=hn(),s=yn(),c=vn();switch(a.tag){case 26:Qa||kn(a,t),ss(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(e=a.stateNode,e.parentNode.removeChild(e));break;case 27:Qa||kn(a,t);var p=Wa,x=$o;Ks(a.type)&&(Wa=a.stateNode,$o=!1),ss(e,t,a),H(a,ec,a.stateNode),Wa=p,$o=x;break;case 5:Qa||kn(a,t);case 6:if(p=Wa,x=$o,Wa=null,ss(e,t,a),Wa=p,$o=x,Wa!==null)if($o)try{H(a,dM,Wa,a.stateNode)}catch(k){Zt(a,t,k)}else try{H(a,uM,Wa,a.stateNode)}catch(k){Zt(a,t,k)}break;case 18:Wa!==null&&($o?(e=Wa,gL(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),fu(e)):gL(Wa,a.stateNode));break;case 4:p=Wa,x=$o,Wa=a.stateNode.containerInfo,$o=!0,ss(e,t,a),Wa=p,$o=x;break;case 0:case 11:case 14:case 15:ru(zo,a,t),Qa||Qy(a,t,fr),ss(e,t,a);break;case 1:Qa||(kn(a,t),p=a.stateNode,typeof p.componentWillUnmount==="function"&&nk(a,t,p)),ss(e,t,a);break;case 21:ss(e,t,a);break;case 22:Qa=(p=Qa)||a.memoizedState!==null,ss(e,t,a),Qa=p;break;default:ss(e,t,a)}(a.mode&mt)!==Ze&&0<=Ue&&0<=$e&&(Aa||0.05<Ca)&&pn(a,Ue,$e,Ca,La),or(o),gn(n),La=s,Aa=c}function mk(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{H(t,SM,e)}catch(a){Zt(t,t.return,a)}}}function hk(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{H(t,kM,e)}catch(a){Zt(t,t.return,a)}}function PA(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new _C),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new _C),t;default:throw Error("Unexpected Suspense handler tag ("+e.tag+"). This is a bug in React.")}}function Jp(e,t){var a=PA(e);t.forEach(function(o){if(!a.has(o)){if(a.add(o),Dn)if(Hu!==null&&Fu!==null)Kd(Fu,Hu);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var n=XA.bind(null,e,o);o.then(n,n)}})}function Vo(e,t){var a=t.deletions;if(a!==null)for(var o=0;o<a.length;o++){var n=e,s=t,c=a[o],p=ar(),x=s;e:for(;x!==null;){switch(x.tag){case 27:if(Ks(x.type)){Wa=x.stateNode,$o=!1;break e}break;case 5:Wa=x.stateNode,$o=!1;break e;case 3:case 4:Wa=x.stateNode.containerInfo,$o=!0;break e}x=x.return}if(Wa===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");pk(n,s,c),Wa=null,$o=!1,(c.mode&mt)!==Ze&&0<=Ue&&0<=$e&&0.05<$e-Ue&&fn(c,Ue,$e,"Unmount"),or(p),n=c,s=n.alternate,s!==null&&(s.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)gk(t,e),t=t.sibling}function gk(e,t){var a=ar(),o=hn(),n=yn(),s=vn(),{alternate:c,flags:p}=e;switch(e.tag){case 0:case 11:case 14:case 15:Vo(t,e),jo(e),p&4&&(ru(zo|Er,e,e.return),Vd(zo|Er,e),Qy(e,e.return,fr|Er));break;case 1:if(Vo(t,e),jo(e),p&512&&(Qa||c===null||kn(c,c.return)),p&64&&xs&&(p=e.updateQueue,p!==null&&(c=p.callbacks,c!==null))){var x=p.shared.hiddenCallbacks;p.shared.hiddenCallbacks=x===null?c:x.concat(c)}break;case 26:if(x=Qr,Vo(t,e),jo(e),p&512&&(Qa||c===null||kn(c,c.return)),p&4){var k=c!==null?c.memoizedState:null;if(p=e.memoizedState,c===null)if(p===null)if(e.stateNode===null){e:{p=e.type,c=e.memoizedProps,x=x.ownerDocument||x;t:switch(p){case"title":if(k=x.getElementsByTagName("title")[0],!k||k[lc]||k[xo]||k.namespaceURI===vu||k.hasAttribute("itemprop"))k=x.createElement(p),x.head.insertBefore(k,x.querySelector("head > title"));vo(k,p,c),k[xo]=e,Pe(k),p=k;break e;case"link":var q=IL("link","href",x).get(p+(c.href||""));if(q){for(var B=0;B<q.length;B++)if(k=q[B],k.getAttribute("href")===(c.href==null||c.href===""?null:c.href)&&k.getAttribute("rel")===(c.rel==null?null:c.rel)&&k.getAttribute("title")===(c.title==null?null:c.title)&&k.getAttribute("crossorigin")===(c.crossOrigin==null?null:c.crossOrigin)){q.splice(B,1);break t}}k=x.createElement(p),vo(k,p,c),x.head.appendChild(k);break;case"meta":if(q=IL("meta","content",x).get(p+(c.content||""))){for(B=0;B<q.length;B++)if(k=q[B],ke(c.content,"content"),k.getAttribute("content")===(c.content==null?null:""+c.content)&&k.getAttribute("name")===(c.name==null?null:c.name)&&k.getAttribute("property")===(c.property==null?null:c.property)&&k.getAttribute("http-equiv")===(c.httpEquiv==null?null:c.httpEquiv)&&k.getAttribute("charset")===(c.charSet==null?null:c.charSet)){q.splice(B,1);break t}}k=x.createElement(p),vo(k,p,c),x.head.appendChild(k);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+p+'". This is a bug in React.')}k[xo]=e,Pe(k),p=k}e.stateNode=p}else RL(x,e.type,e.stateNode);else e.stateNode=TL(x,p,e.memoizedProps);else k!==p?(k===null?c.stateNode!==null&&(c=c.stateNode,c.parentNode.removeChild(c)):k.count--,p===null?RL(x,e.type,e.stateNode):TL(x,p,e.memoizedProps)):p===null&&e.stateNode!==null&&Zy(e,e.memoizedProps,c.memoizedProps)}break;case 27:Vo(t,e),jo(e),p&512&&(Qa||c===null||kn(c,c.return)),c!==null&&p&4&&Zy(e,e.memoizedProps,c.memoizedProps);break;case 5:if(Vo(t,e),jo(e),p&512&&(Qa||c===null||kn(c,c.return)),e.flags&32){x=e.stateNode;try{H(e,mL,x)}catch(xe){Zt(e,e.return,xe)}}p&4&&e.stateNode!=null&&(x=e.memoizedProps,Zy(e,x,c!==null?c.memoizedProps:x)),p&1024&&(qx=!0,e.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(Vo(t,e),jo(e),p&4){if(e.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");p=e.memoizedProps,c=c!==null?c.memoizedProps:p,x=e.stateNode;try{H(e,iM,x,c,p)}catch(xe){Zt(e,e.return,xe)}}break;case 3:if(x=os(),hh=null,k=Qr,Qr=lm(t.containerInfo),Vo(t,e),Qr=k,jo(e),p&4&&c!==null&&c.memoizedState.isDehydrated)try{H(e,bM,t.containerInfo)}catch(xe){Zt(e,e.return,xe)}qx&&(qx=!1,yk(e)),t.effectDuration+=Cp(x);break;case 4:p=Qr,Qr=lm(e.stateNode.containerInfo),Vo(t,e),jo(e),Qr=p;break;case 12:p=os(),Vo(t,e),jo(e),e.stateNode.effectDuration+=Nd(p);break;case 31:Vo(t,e),jo(e),p&4&&(p=e.updateQueue,p!==null&&(e.updateQueue=null,Jp(e,p)));break;case 13:Vo(t,e),jo(e),e.child.flags&8192&&e.memoizedState!==null!==(c!==null&&c.memoizedState!==null)&&(eh=so()),p&4&&(p=e.updateQueue,p!==null&&(e.updateQueue=null,Jp(e,p)));break;case 22:x=e.memoizedState!==null;var D=c!==null&&c.memoizedState!==null,F=xs,me=Qa;if(xs=F||x,Qa=me||D,Vo(t,e),Qa=me,xs=F,D&&!x&&!F&&!me&&(e.mode&mt)!==Ze&&0<=Ue&&0<=$e&&0.05<$e-Ue&&hp(e,Ue,$e),jo(e),p&8192)e:for(t=e.stateNode,t._visibility=x?t._visibility&~gc:t._visibility|gc,!x||c===null||D||xs||Qa||(ti(e),(e.mode&mt)!==Ze&&0<=Ue&&0<=$e&&0.05<$e-Ue&&fn(e,Ue,$e,"Disconnect")),c=null,t=e;;){if(t.tag===5||t.tag===26){if(c===null){D=c=t;try{k=D.stateNode,x?H(D,fM,k):H(D,hM,D.stateNode,D.memoizedProps)}catch(xe){Zt(D,D.return,xe)}}}else if(t.tag===6){if(c===null){D=t;try{q=D.stateNode,x?H(D,pM,q):H(D,gM,q,D.memoizedProps)}catch(xe){Zt(D,D.return,xe)}}}else if(t.tag===18){if(c===null){D=t;try{B=D.stateNode,x?H(D,cM,B):H(D,mM,D.stateNode)}catch(xe){Zt(D,D.return,xe)}}}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;c===t&&(c=null),t=t.return}c===t&&(c=null),t.sibling.return=t.return,t=t.sibling}p&4&&(p=e.updateQueue,p!==null&&(c=p.retryQueue,c!==null&&(p.retryQueue=null,Jp(e,c))));break;case 19:Vo(t,e),jo(e),p&4&&(p=e.updateQueue,p!==null&&(e.updateQueue=null,Jp(e,p)));break;case 30:break;case 21:break;default:Vo(t,e),jo(e)}(e.mode&mt)!==Ze&&0<=Ue&&0<=$e&&((Aa||0.05<Ca)&&pn(e,Ue,$e,Ca,La),e.alternate===null&&e.return!==null&&e.return.alternate!==null&&0.05<$e-Ue&&(dk(e.return.alternate,e.return)||fn(e,Ue,$e,"Mount"))),or(a),gn(o),La=n,Aa=s}function jo(e){var t=e.flags;if(t&2){try{H(e,BA,e)}catch(a){Zt(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function yk(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;yk(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Ln(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)ck(e,t.alternate,t),t=t.sibling}function vk(e){var t=ar(),a=hn(),o=yn(),n=vn();switch(e.tag){case 0:case 11:case 14:case 15:Qy(e,e.return,fr),ti(e);break;case 1:kn(e,e.return);var s=e.stateNode;typeof s.componentWillUnmount==="function"&&nk(e,e.return,s),ti(e);break;case 27:H(e,ec,e.stateNode);case 26:case 5:kn(e,e.return),ti(e);break;case 22:e.memoizedState===null&&ti(e);break;case 30:ti(e);break;default:ti(e)}(e.mode&mt)!==Ze&&0<=Ue&&0<=$e&&(Aa||0.05<Ca)&&pn(e,Ue,$e,Ca,La),or(t),gn(a),La=o,Aa=n}function ti(e){for(e=e.child;e!==null;)vk(e),e=e.sibling}function xk(e,t,a,o){var n=ar(),s=hn(),c=yn(),p=vn(),x=a.flags;switch(a.tag){case 0:case 11:case 15:wn(e,a,o),ak(a,fr);break;case 1:if(wn(e,a,o),t=a.stateNode,typeof t.componentDidMount==="function"&&H(a,Sx,a,t),t=a.updateQueue,t!==null){e=a.stateNode;try{H(a,bA,t,e)}catch(k){Zt(a,a.return,k)}}o&&x&64&&rk(a),jd(a,a.return);break;case 27:uk(a);case 26:case 5:wn(e,a,o),o&&t===null&&x&4&&lk(a),jd(a,a.return);break;case 12:if(o&&x&4){x=os(),wn(e,a,o),o=a.stateNode,o.effectDuration+=Nd(x);try{H(a,sk,a,t,nl,o.effectDuration)}catch(k){Zt(a,a.return,k)}}else wn(e,a,o);break;case 31:wn(e,a,o),o&&x&4&&mk(e,a);break;case 13:wn(e,a,o),o&&x&4&&hk(e,a);break;case 22:a.memoizedState===null&&wn(e,a,o),jd(a,a.return);break;case 30:break;default:wn(e,a,o)}(a.mode&mt)!==Ze&&0<=Ue&&0<=$e&&(Aa||0.05<Ca)&&pn(a,Ue,$e,Ca,La),or(n),gn(s),La=c,Aa=p}function wn(e,t,a){a=a&&(t.subtreeFlags&8772)!==0;for(t=t.child;t!==null;)xk(e,t.alternate,t,a),t=t.sibling}function tv(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&&Ql(e),a!=null&&Ed(a))}function av(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(Ql(t),e!=null&&Ed(e))}function Vr(e,t,a,o,n){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(t=t.child;t!==null;){var s=t.sibling;bk(e,t,a,o,s!==null?s.actualStartTime:n),t=s}}function bk(e,t,a,o,n){var s=ar(),c=hn(),p=yn(),x=vn(),k=tl,q=t.flags;switch(t.tag){case 0:case 11:case 15:(t.mode&mt)!==Ze&&0<t.actualStartTime&&(t.flags&1)!==0&&gp(t,t.actualStartTime,n,to,a),Vr(e,t,a,o,n),q&2048&&ok(t,Po|Er);break;case 1:(t.mode&mt)!==Ze&&0<t.actualStartTime&&((t.flags&128)!==0?Ug(t,t.actualStartTime,n,[]):(t.flags&1)!==0&&gp(t,t.actualStartTime,n,to,a)),Vr(e,t,a,o,n);break;case 3:var B=os(),D=to;to=t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)===0,Vr(e,t,a,o,n),to=D,q&2048&&(a=null,t.alternate!==null&&(a=t.alternate.memoizedState.cache),o=t.memoizedState.cache,o!==a&&(Ql(o),a!=null&&Ed(a))),e.passiveEffectDuration+=Cp(B);break;case 12:if(q&2048){q=os(),Vr(e,t,a,o,n),e=t.stateNode,e.passiveEffectDuration+=Nd(q);try{H(t,OA,t,t.alternate,nl,e.passiveEffectDuration)}catch(F){Zt(t,t.return,F)}}else Vr(e,t,a,o,n);break;case 31:q=to,B=t.alternate!==null?t.alternate.memoizedState:null,D=t.memoizedState,B!==null&&D===null?(D=t.deletions,D!==null&&0<D.length&&D[0].tag===18?(to=!1,B=B.hydrationErrors,B!==null&&Ug(t,t.actualStartTime,n,B)):to=!0):to=!1,Vr(e,t,a,o,n),to=q;break;case 13:q=to,B=t.alternate!==null?t.alternate.memoizedState:null,D=t.memoizedState,B===null||B.dehydrated===null||D!==null&&D.dehydrated!==null?to=!1:(D=t.deletions,D!==null&&0<D.length&&D[0].tag===18?(to=!1,B=B.hydrationErrors,B!==null&&Ug(t,t.actualStartTime,n,B)):to=!0),Vr(e,t,a,o,n),to=q;break;case 23:break;case 22:D=t.stateNode,B=t.alternate,t.memoizedState!==null?D._visibility&us?Vr(e,t,a,o,n):$d(e,t,a,o,n):D._visibility&us?Vr(e,t,a,o,n):(D._visibility|=us,nu(e,t,a,o,(t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child),n),(t.mode&mt)===Ze||to||(e=t.actualStartTime,0<=e&&0.05<n-e&&hp(t,e,n),0<=Ue&&0<=$e&&0.05<$e-Ue&&hp(t,Ue,$e))),q&2048&&tv(B,t);break;case 24:Vr(e,t,a,o,n),q&2048&&av(t.alternate,t);break;default:Vr(e,t,a,o,n)}if((t.mode&mt)!==Ze){if(e=!to&&t.alternate===null&&t.return!==null&&t.return.alternate!==null)a=t.actualStartTime,0<=a&&0.05<n-a&&fn(t,a,n,"Mount");0<=Ue&&0<=$e&&((Aa||0.05<Ca)&&pn(t,Ue,$e,Ca,La),e&&0.05<$e-Ue&&fn(t,Ue,$e,"Mount"))}or(s),gn(c),La=p,Aa=x,tl=k}function nu(e,t,a,o,n,s){n=n&&((t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child));for(t=t.child;t!==null;){var c=t.sibling;Sk(e,t,a,o,n,c!==null?c.actualStartTime:s),t=c}}function Sk(e,t,a,o,n,s){var c=ar(),p=hn(),x=yn(),k=vn(),q=tl;n&&(t.mode&mt)!==Ze&&0<t.actualStartTime&&(t.flags&1)!==0&&gp(t,t.actualStartTime,s,to,a);var B=t.flags;switch(t.tag){case 0:case 11:case 15:nu(e,t,a,o,n,s),ok(t,Po);break;case 23:break;case 22:var D=t.stateNode;t.memoizedState!==null?D._visibility&us?nu(e,t,a,o,n,s):$d(e,t,a,o,s):(D._visibility|=us,nu(e,t,a,o,n,s)),n&&B&2048&&tv(t.alternate,t);break;case 24:nu(e,t,a,o,n,s),n&&B&2048&&av(t.alternate,t);break;default:nu(e,t,a,o,n,s)}(t.mode&mt)!==Ze&&0<=Ue&&0<=$e&&(Aa||0.05<Ca)&&pn(t,Ue,$e,Ca,La),or(c),gn(p),La=x,Aa=k,tl=q}function $d(e,t,a,o,n){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(var s=t.child;s!==null;){t=s.sibling;var c=e,p=a,x=o,k=t!==null?t.actualStartTime:n,q=tl;(s.mode&mt)!==Ze&&0<s.actualStartTime&&(s.flags&1)!==0&&gp(s,s.actualStartTime,k,to,p);var B=s.flags;switch(s.tag){case 22:$d(c,s,p,x,k),B&2048&&tv(s.alternate,s);break;case 24:$d(c,s,p,x,k),B&2048&&av(s.alternate,s);break;default:$d(c,s,p,x,k)}tl=q,s=t}}function su(e,t,a){if(e.subtreeFlags&Bc)for(e=e.child;e!==null;)kk(e,t,a),e=e.sibling}function kk(e,t,a){switch(e.tag){case 26:su(e,t,a),e.flags&Bc&&e.memoizedState!==null&&TM(a,Qr,e.memoizedState,e.memoizedProps);break;case 5:su(e,t,a);break;case 3:case 4:var o=Qr;Qr=lm(e.stateNode.containerInfo),su(e,t,a),Qr=o;break;case 22:e.memoizedState===null&&(o=e.alternate,o!==null&&o.memoizedState!==null?(o=Bc,Bc=16777216,su(e,t,a),Bc=o):su(e,t,a));break;default:su(e,t,a)}}function Lk(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 Xd(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var o=t[a],n=ar();io=o,Tk(o,e),(o.mode&mt)!==Ze&&0<=Ue&&0<=$e&&0.05<$e-Ue&&fn(o,Ue,$e,"Unmount"),or(n)}Lk(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)wk(e),e=e.sibling}function wk(e){var t=ar(),a=hn(),o=yn(),n=vn();switch(e.tag){case 0:case 11:case 15:Xd(e),e.flags&2048&&Wy(e,e.return,Po|Er);break;case 3:var s=os();Xd(e),e.stateNode.passiveEffectDuration+=Cp(s);break;case 12:s=os(),Xd(e),e.stateNode.passiveEffectDuration+=Nd(s);break;case 22:s=e.stateNode,e.memoizedState!==null&&s._visibility&us&&(e.return===null||e.return.tag!==13)?(s._visibility&=~us,em(e),(e.mode&mt)!==Ze&&0<=Ue&&0<=$e&&0.05<$e-Ue&&fn(e,Ue,$e,"Disconnect")):Xd(e);break;default:Xd(e)}(e.mode&mt)!==Ze&&0<=Ue&&0<=$e&&(Aa||0.05<Ca)&&pn(e,Ue,$e,Ca,La),or(t),gn(a),Aa=n,La=o}function em(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var o=t[a],n=ar();io=o,Tk(o,e),(o.mode&mt)!==Ze&&0<=Ue&&0<=$e&&0.05<$e-Ue&&fn(o,Ue,$e,"Unmount"),or(n)}Lk(e)}for(e=e.child;e!==null;)Ck(e),e=e.sibling}function Ck(e){var t=ar(),a=hn(),o=yn(),n=vn();switch(e.tag){case 0:case 11:case 15:Wy(e,e.return,Po),em(e);break;case 22:var s=e.stateNode;s._visibility&us&&(s._visibility&=~us,em(e));break;default:em(e)}(e.mode&mt)!==Ze&&0<=Ue&&0<=$e&&(Aa||0.05<Ca)&&pn(e,Ue,$e,Ca,La),or(t),gn(a),Aa=n,La=o}function Tk(e,t){for(;io!==null;){var a=io,o=a,n=t,s=ar(),c=hn(),p=yn(),x=vn();switch(o.tag){case 0:case 11:case 15:Wy(o,n,Po);break;case 23:case 22:o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(n=o.memoizedState.cachePool.pool,n!=null&&Ql(n));break;case 24:Ed(o.memoizedState.cache)}if((o.mode&mt)!==Ze&&0<=Ue&&0<=$e&&(Aa||0.05<Ca)&&pn(o,Ue,$e,Ca,La),or(s),gn(c),Aa=x,La=p,o=a.child,o!==null)o.return=a,io=o;else e:for(a=e;io!==null;){if(o=io,s=o.sibling,c=o.return,fk(o),o===a){io=null;break e}if(s!==null){s.return=c,io=s;break e}io=c}}}function UA(){sE.forEach(function(e){return e()})}function Ik(){var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return e||K.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),e}function nr(e){if((Ut&ao)!==uo&&gt!==0)return gt&-gt;var t=K.T;return t!==null?(t._updatedFibers||(t._updatedFibers=new Set),t._updatedFibers.add(e),dv()):U()}function Rk(){if(Yo===0)if((gt&536870912)===0||Rt){var e=xm;xm<<=1,(xm&3932160)===0&&(xm=262144),Yo=e}else Yo=536870912;return e=cr.current,e!==null&&(e.flags|=32),Yo}function Ra(e,t,a){if(ju&&console.error("useInsertionEffect must not schedule updates."),jx&&(rh=!0),e===sa&&(ta===gi||ta===yi)||e.cancelPendingCommit!==null)iu(e,0),Xs(e,gt,Yo,!1);if(Os(e,a),(Ut&ao)!==uo&&e===sa){if(An)switch(t.tag){case 0:case 11:case 15:e=vt&&V(vt)||"Unknown",t1.has(e)||(t1.add(e),t=V(t)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",t,e,e));break;case 1:e1||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),e1=!0)}}else Dn&&Sd(e,t,a),KA(t),e===sa&&((Ut&ao)===uo&&(ml|=a),Ta===cl&&Xs(e,gt,Yo,!1)),Cn(e)}function Ak(e,t,a){if((Ut&(ao|pr))!==uo)throw Error("Should not already be working.");if(gt!==0&&vt!==null){var o=vt,n=so();switch(Xw){case Uc:case gi:var s=kc;ya&&((o=o._debugTask)?o.run(console.timeStamp.bind(console,"Suspended",s,n,wr,void 0,"primary-light")):console.timeStamp("Suspended",s,n,wr,void 0,"primary-light"));break;case yi:s=kc,ya&&((o=o._debugTask)?o.run(console.timeStamp.bind(console,"Action",s,n,wr,void 0,"primary-light")):console.timeStamp("Action",s,n,wr,void 0,"primary-light"));break;default:ya&&(o=n-kc,3>o||console.timeStamp("Blocked",kc,n,wr,void 0,5>o?"primary-light":10>o?"primary":100>o?"primary-dark":"error"))}}s=(a=!a&&(t&127)===0&&(t&e.expiredLanes)===0||ho(e,t))?HA(e,t):rv(e,t,!0);var c=a;do{if(s===bs){Gu&&!a&&Xs(e,t,0,!1),t=ta,kc=Xa(),Xw=t;break}else{if(o=so(),n=e.current.alternate,c&&!_A(n)){er(t),n=lo,s=o,!ya||s<=n||(qa?qa.run(console.timeStamp.bind(console,"Teared Render",n,s,Tt,wt,"error")):console.timeStamp("Teared Render",n,s,Tt,wt,"error")),ai(t,o),s=rv(e,t,!1),c=!1;continue}if(s===hi){if(c=t,e.errorRecoveryDisabledLanes&c)var p=0;else p=e.pendingLanes&-536870913,p=p!==0?p:p&536870912?536870912:0;if(p!==0){er(t),_g(lo,o,t,qa),ai(t,o),t=p;e:{o=e,s=c,c=Hc;var x=o.current.memoizedState.isDehydrated;if(x&&(iu(o,p).flags|=256),p=rv(o,p,!1),p!==hi){if(zx&&!x){o.errorRecoveryDisabledLanes|=s,ml|=s,s=cl;break e}o=Uo,Uo=c,o!==null&&(Uo===null?Uo=o:Uo.push.apply(Uo,o))}s=p}if(c=!1,s!==hi)continue;else o=so()}}if(s===Pc){er(t),_g(lo,o,t,qa),ai(t,o),iu(e,0),Xs(e,t,0,!0);break}e:{switch(a=e,s){case bs:case Pc:throw Error("Root did not complete. This is a bug in React.");case cl:if((t&4194048)!==t)break;case Qm:er(t),A0(lo,o,t,qa),ai(t,o),n=t,(n&127)!==0?Om=o:(n&4194048)!==0&&(Bm=o),Xs(a,t,Yo,!fl);break e;case hi:Uo=null;break;case Km:case HC:break;default:throw Error("Unknown root exit status.")}if(K.actQueue!==null)nv(a,n,t,Uo,Fc,Jm,Yo,ml,vi,s,null,null,lo,o);else{if((t&62914560)===t&&(c=eh+VC-so(),10<c)){if(Xs(a,t,Yo,!fl),ga(a,0,!0)!==0)break e;Wr=t,a.timeoutHandle=u1(Mk.bind(null,a,n,Uo,Fc,Jm,t,Yo,ml,vi,fl,s,"Throttled",lo,o),c);break e}Mk(a,n,Uo,Fc,Jm,t,Yo,ml,vi,fl,s,null,lo,o)}}}break}while(1);Cn(e)}function Mk(e,t,a,o,n,s,c,p,x,k,q,B,D,F){e.timeoutHandle=Li;var me=t.subtreeFlags,xe=null;if(me&8192||(me&16785408)===16785408){if(xe={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Jn},kk(t,s,xe),me=(s&62914560)===s?eh-so():(s&4194048)===s?GC-so():0,me=IM(xe,me),me!==null){Wr=s,e.cancelPendingCommit=me(nv.bind(null,e,t,s,a,o,n,c,p,x,q,xe,xe.waitingForViewTransition?"Waiting for the previous Animation":0<xe.count?0<xe.imgCount?"Suspended on CSS and Images":"Suspended on CSS":xe.imgCount===1?"Suspended on an Image":0<xe.imgCount?"Suspended on Images":null,D,F)),Xs(e,s,c,!k);return}}nv(e,t,s,a,o,n,c,p,x,q,xe,B,D,F)}function _A(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 o=0;o<a.length;o++){var n=a[o],s=n.getSnapshot;n=n.value;try{if(!Oo(s(),n))return!1}catch(c){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 Xs(e,t,a,o){t&=~Px,t&=~ml,e.suspendedLanes|=t,e.pingedLanes&=~t,o&&(e.warmLanes|=t),o=e.expirationTimes;for(var n=t;0<n;){var s=31-Eo(n),c=1<<s;o[s]=-1,n&=~c}a!==0&&Pl(e,a,t)}function lu(){return(Ut&(ao|pr))===uo?(Qd(0,!1),!1):!0}function ov(){if(vt!==null){if(ta===Xo)var e=vt.return;else e=vt,kp(),my(e),qu=null,Dc=0,e=vt;for(;e!==null;)tk(e.alternate,e),e=e.return;vt=null}}function ai(e,t){(e&127)!==0&&(sl=t),(e&4194048)!==0&&(Bn=t),(e&62914560)!==0&&(jw=t),(e&2080374784)!==0&&($w=t)}function iu(e,t){ya&&(console.timeStamp("Blocking Track",0.003,0.003,"Blocking",wt,"primary-light"),console.timeStamp("Transition Track",0.003,0.003,"Transition",wt,"primary-light"),console.timeStamp("Suspense Track",0.003,0.003,"Suspense",wt,"primary-light"),console.timeStamp("Idle Track",0.003,0.003,"Idle",wt,"primary-light"));var a=lo;if(lo=Xa(),gt!==0&&0<a){if(er(gt),Ta===Km||Ta===cl)A0(a,lo,t,qa);else{var o=lo,n=qa;if(ya&&!(o<=a)){var s=(t&738197653)===t?"tertiary-dark":"primary-dark",c=(t&536870912)===t?"Prewarm":(t&201326741)===t?"Interrupted Hydration":"Interrupted Render";n?n.run(console.timeStamp.bind(console,c,a,o,Tt,wt,s)):console.timeStamp(c,a,o,Tt,wt,s)}}ai(gt,lo)}if(a=qa,qa=null,(t&127)!==0){qa=xc,n=0<=On&&On<sl?sl:On,o=0<=li&&li<sl?sl:li,s=0<=o?o:0<=n?n:lo,0<=Om?(er(2),M0(Om,s,t,a)):(zm&127)!==0&&(er(2),Md(sl,s,hs)),a=n;var p=o,x=bc,k=0<Du,q=ll===vc,B=ll===qm;if(n=lo,o=xc,s=gx,c=yx,ya){if(Tt="Blocking",0<a?a>n&&(a=n):a=n,0<p?p>a&&(p=a):p=a,x!==null&&a>p){var D=k?"secondary-light":"warning";o?o.run(console.timeStamp.bind(console,k?"Consecutive":"Event: "+x,p,a,Tt,wt,D)):console.timeStamp(k?"Consecutive":"Event: "+x,p,a,Tt,wt,D)}n>a&&(p=q?"error":(t&738197653)===t?"tertiary-light":"primary-light",q=B?"Promise Resolved":q?"Cascading Update":5<n-a?"Update Blocked":"Update",B=[],c!=null&&B.push(["Component name",c]),s!=null&&B.push(["Method name",s]),a={start:a,end:n,detail:{devtools:{properties:B,track:Tt,trackGroup:wt,color:p}}},o?o.run(performance.measure.bind(performance,q,a)):performance.measure(q,a))}On=-1.1,ll=0,yx=gx=null,Om=-1.1,Du=li,li=-1.1,sl=Xa()}if((t&4194048)!==0&&(qa=Sc,n=0<=ms&&ms<Bn?Bn:ms,a=0<=Mr&&Mr<Bn?Bn:Mr,o=0<=il&&il<Bn?Bn:il,s=0<=o?o:0<=a?a:lo,0<=Bm?(er(256),M0(Bm,s,t,qa)):(zm&4194048)!==0&&(er(256),Md(Bn,s,hs)),B=o,p=ii,x=0<ul,k=vx===qm,s=lo,o=Sc,c=Gw,q=Vw,ya&&(Tt="Transition",0<a?a>s&&(a=s):a=s,0<n?n>a&&(n=a):n=a,0<B?B>n&&(B=n):B=n,n>B&&p!==null&&(D=x?"secondary-light":"warning",o?o.run(console.timeStamp.bind(console,x?"Consecutive":"Event: "+p,B,n,Tt,wt,D)):console.timeStamp(x?"Consecutive":"Event: "+p,B,n,Tt,wt,D)),a>n&&(o?o.run(console.timeStamp.bind(console,"Action",n,a,Tt,wt,"primary-dark")):console.timeStamp("Action",n,a,Tt,wt,"primary-dark")),s>a&&(n=k?"Promise Resolved":5<s-a?"Update Blocked":"Update",B=[],q!=null&&B.push(["Component name",q]),c!=null&&B.push(["Method name",c]),a={start:a,end:s,detail:{devtools:{properties:B,track:Tt,trackGroup:wt,color:"primary-light"}}},o?o.run(performance.measure.bind(performance,n,a)):performance.measure(n,a))),Mr=ms=-1.1,vx=0,Bm=-1.1,ul=il,il=-1.1,Bn=Xa()),(t&62914560)!==0&&(zm&62914560)!==0&&(er(4194304),Md(jw,lo,hs)),(t&2080374784)!==0&&(zm&2080374784)!==0&&(er(268435456),Md($w,lo,hs)),a=e.timeoutHandle,a!==Li&&(e.timeoutHandle=Li,xE(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),Wr=0,ov(),sa=e,vt=a=es(e.current,null),gt=t,ta=Xo,mr=null,fl=!1,Gu=ho(e,t),zx=!1,Ta=bs,vi=Yo=Px=ml=pl=0,Uo=Hc=null,Jm=!1,(t&8)!==0&&(t|=t&32),o=e.entangledLanes,o!==0)for(e=e.entanglements,o&=t;0<o;)n=31-Eo(o),s=1<<n,t|=e[n],o&=~s;return Pn=t,yp(),e=zw(),1000<e-Bw&&(K.recentlyCreatedOwnerStacks=0,Bw=e),Yr.discardPendingWarnings(),a}function Dk(e,t){at=null,K.H=Oc,K.getCurrentStack=null,An=!1,ir=null,t===Nu||t===Hm?(t=Z0(),ta=Uc):t===kx?(t=Z0(),ta=FC):ta=t===Ex?Bx:t!==null&&typeof t==="object"&&typeof t.then==="function"?_c:Wm,mr=t;var a=vt;a===null?(Ta=Pc,Xp(e,tr(t,e.current))):a.mode&mt&&ty(a)}function Ek(){var e=cr.current;return e===null?!0:(gt&4194048)===gt?Dr===null?!0:!1:(gt&62914560)===gt||(gt&536870912)!==0?e===Dr:!1}function Nk(){var e=K.H;return K.H=Oc,e===null?Oc:e}function qk(){var e=K.A;return K.A=nE,e}function tm(e){qa===null&&(qa=e._debugTask==null?null:e._debugTask)}function am(){Ta=cl,fl||(gt&4194048)!==gt&&cr.current!==null||(Gu=!0),(pl&134217727)===0&&(ml&134217727)===0||sa===null||Xs(sa,gt,Yo,!1)}function rv(e,t,a){var o=Ut;Ut|=ao;var n=Nk(),s=qk();if(sa!==e||gt!==t){if(Dn){var c=e.memoizedUpdaters;0<c.size&&(Kd(e,gt),c.clear()),Bs(e,t)}Fc=null,iu(e,t)}t=!1,c=Ta;e:do try{if(ta!==Xo&&vt!==null){var p=vt,x=mr;switch(ta){case Bx:ov(),c=Qm;break e;case Uc:case gi:case yi:case _c:cr.current===null&&(t=!0);var k=ta;if(ta=Xo,mr=null,uu(e,p,x,k),a&&Gu){c=bs;break e}break;default:k=ta,ta=Xo,mr=null,uu(e,p,x,k)}}Ok(),c=Ta;break}catch(q){Dk(e,q)}while(1);return t&&e.shellSuspendCounter++,kp(),Ut=o,K.H=n,K.A=s,vt===null&&(sa=null,gt=0,yp()),c}function Ok(){for(;vt!==null;)Bk(vt)}function HA(e,t){var a=Ut;Ut|=ao;var o=Nk(),n=qk();if(sa!==e||gt!==t){if(Dn){var s=e.memoizedUpdaters;0<s.size&&(Kd(e,gt),s.clear()),Bs(e,t)}Fc=null,th=so()+jC,iu(e,t)}else Gu=ho(e,t);e:do try{if(ta!==Xo&&vt!==null)t:switch(t=vt,s=mr,ta){case Wm:ta=Xo,mr=null,uu(e,t,s,Wm);break;case gi:case yi:if(Q0(s)){ta=Xo,mr=null,zk(t);break}t=function(){ta!==gi&&ta!==yi||sa!==e||(ta=Zm),Cn(e)},s.then(t,t);break e;case Uc:ta=Zm;break e;case FC:ta=Ox;break e;case Zm:Q0(s)?(ta=Xo,mr=null,zk(t)):(ta=Xo,mr=null,uu(e,t,s,Zm));break;case Ox:var c=null;switch(vt.tag){case 26:c=vt.memoizedState;case 5:case 27:var p=vt;if(c?AL(c):p.stateNode.complete){ta=Xo,mr=null;var x=p.sibling;if(x!==null)vt=x;else{var k=p.return;k!==null?(vt=k,om(k)):vt=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}ta=Xo,mr=null,uu(e,t,s,Ox);break;case _c:ta=Xo,mr=null,uu(e,t,s,_c);break;case Bx:ov(),Ta=Qm;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}K.actQueue!==null?Ok():FA();break}catch(q){Dk(e,q)}while(1);if(kp(),K.H=o,K.A=n,Ut=a,vt!==null)return bs;return sa=null,gt=0,yp(),Ta}function FA(){for(;vt!==null&&!_M();)Bk(vt)}function Bk(e){var t=e.alternate;(e.mode&mt)!==Ze?(ey(e),t=H(e,Yy,t,e,Pn),ty(e)):t=H(e,Yy,t,e,Pn),e.memoizedProps=e.pendingProps,t===null?om(e):vt=t}function zk(e){var t=H(e,GA,e);e.memoizedProps=e.pendingProps,t===null?om(e):vt=t}function GA(e){var t=e.alternate,a=(e.mode&mt)!==Ze;switch(a&&ey(e),e.tag){case 15:case 0:t=YS(t,e,e.pendingProps,e.type,void 0,gt);break;case 11:t=YS(t,e,e.pendingProps,e.type.render,e.ref,gt);break;case 5:my(e);default:tk(t,e),e=vt=B0(e,Pn),t=Yy(t,e,Pn)}return a&&ty(e),t}function uu(e,t,a,o){kp(),my(t),qu=null,Dc=0;var n=t.return;try{if(IA(e,n,t,a,gt)){Ta=Pc,Xp(e,tr(a,e.current)),vt=null;return}}catch(s){if(n!==null)throw vt=n,s;Ta=Pc,Xp(e,tr(a,e.current)),vt=null;return}if(t.flags&32768){if(Rt||o===Wm)e=!0;else if(Gu||(gt&536870912)!==0)e=!1;else if(fl=e=!0,o===gi||o===yi||o===Uc||o===_c)o=cr.current,o!==null&&o.tag===13&&(o.flags|=16384);Pk(t,e)}else om(t)}function om(e){var t=e;do{if((t.flags&32768)!==0){Pk(t,fl);return}var a=t.alternate;if(e=t.return,ey(t),a=H(t,MA,a,t,Pn),(t.mode&mt)!==Ze&&j0(t),a!==null){vt=a;return}if(t=t.sibling,t!==null){vt=t;return}vt=t=e}while(t!==null);Ta===bs&&(Ta=HC)}function Pk(e,t){do{var a=DA(e.alternate,e);if(a!==null){a.flags&=32767,vt=a;return}if((e.mode&mt)!==Ze){j0(e),a=e.actualDuration;for(var o=e.child;o!==null;)a+=o.actualDuration,o=o.sibling;e.actualDuration=a}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){vt=e;return}vt=e=a}while(e!==null);Ta=Qm,vt=null}function nv(e,t,a,o,n,s,c,p,x,k,q,B,D,F){e.cancelPendingCommit=null;do Yd();while(Za!==gl);if(Yr.flushLegacyContextWarning(),Yr.flushPendingUnsafeLifecycleWarnings(),(Ut&(ao|pr))!==uo)throw Error("Should not already be working.");if(er(a),k===hi?_g(D,F,a,qa):o!==null?mA(D,F,a,o,t!==null&&t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)!==0,qa):pA(D,F,a,qa),t!==null){if(a===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),t===e.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(s=t.lanes|t.childLanes,s|=cx,sp(e,a,s,c,p,x),e===sa&&(vt=sa=null,gt=0),Vu=t,yl=e,Wr=a,Hx=s,Gx=n,WC=o,Fx=F,ZC=B,Zr=ah,JC=null,t.actualDuration!==0||(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,YA(hu,function(){return Yc=window.event,Zr===ah&&(Zr=_x),Gk(),null})):(e.callbackNode=null,e.callbackPriority=0),ps=null,nl=Xa(),B!==null&&hA(F,nl,B,qa),o=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||o){o=K.T,K.T=null,n=Jt.p,Jt.p=ur,c=Ut,Ut|=pr;try{zA(e,t,a)}finally{Ut=c,Jt.p=n,K.T=o}}Za=XC,Uk(),_k(),Hk()}}function Uk(){if(Za===XC){Za=gl;var e=yl,t=Vu,a=Wr,o=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||o){o=K.T,K.T=null;var n=Jt.p;Jt.p=ur;var s=Ut;Ut|=pr;try{Hu=a,Fu=e,Tp(),gk(t,e),Fu=Hu=null,a=eb;var c=T0(e.containerInfo),p=a.focusedElem,x=a.selectionRange;if(c!==p&&p&&p.ownerDocument&&C0(p.ownerDocument.documentElement,p)){if(x!==null&&zg(p)){var{start:k,end:q}=x;if(q===void 0&&(q=k),"selectionStart"in p)p.selectionStart=k,p.selectionEnd=Math.min(q,p.value.length);else{var B=p.ownerDocument||document,D=B&&B.defaultView||window;if(D.getSelection){var F=D.getSelection(),me=p.textContent.length,xe=Math.min(x.start,me),fa=x.end===void 0?xe:Math.min(x.end,me);!F.extend&&xe>fa&&(c=fa,fa=xe,xe=c);var Nt=w0(p,xe),M=w0(p,fa);if(Nt&&M&&(F.rangeCount!==1||F.anchorNode!==Nt.node||F.anchorOffset!==Nt.offset||F.focusNode!==M.node||F.focusOffset!==M.offset)){var E=B.createRange();E.setStart(Nt.node,Nt.offset),F.removeAllRanges(),xe>fa?(F.addRange(E),F.extend(M.node,M.offset)):(E.setEnd(M.node,M.offset),F.addRange(E))}}}}B=[];for(F=p;F=F.parentNode;)F.nodeType===1&&B.push({element:F,left:F.scrollLeft,top:F.scrollTop});typeof p.focus==="function"&&p.focus();for(p=0;p<B.length;p++){var N=B[p];N.element.scrollLeft=N.left,N.element.scrollTop=N.top}}vh=!!Jx,eb=Jx=null}finally{Ut=s,Jt.p=n,K.T=o}}e.current=t,Za=YC}}function _k(){if(Za===YC){Za=gl;var e=JC;if(e!==null){nl=Xa();var t=fs,a=nl;!ya||a<=t||(hs?hs.run(console.timeStamp.bind(console,e,t,a,Tt,wt,"secondary-light")):console.timeStamp(e,t,a,Tt,wt,"secondary-light"))}e=yl,t=Vu,a=Wr;var o=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||o){o=K.T,K.T=null;var n=Jt.p;Jt.p=ur;var s=Ut;Ut|=pr;try{Hu=a,Fu=e,Tp(),ck(e,t.alternate,t),Fu=Hu=null}finally{Ut=s,Jt.p=n,K.T=o}}e=Fx,t=ZC,fs=Xa(),e=t===null?e:nl,t=fs,a=Zr===Ux,o=qa,ps!==null?D0(e,t,ps,!1,o):!ya||t<=e||(o?o.run(console.timeStamp.bind(console,a?"Commit Interrupted View Transition":"Commit",e,t,Tt,wt,a?"error":"secondary-dark")):console.timeStamp(a?"Commit Interrupted View Transition":"Commit",e,t,Tt,wt,a?"error":"secondary-dark")),Za=KC}}function Hk(){if(Za===QC||Za===KC){if(Za===QC){var e=fs;fs=Xa();var t=fs,a=Zr===Ux;!ya||t<=e||(hs?hs.run(console.timeStamp.bind(console,a?"Interrupted View Transition":"Starting Animation",e,t,Tt,wt,a?"error":"secondary-light")):console.timeStamp(a?"Interrupted View Transition":"Starting Animation",e,t,Tt,wt,a?" error":"secondary-light")),Zr!==Ux&&(Zr=$C)}Za=gl,HM(),e=yl;var o=Vu;t=Wr,a=WC;var n=o.actualDuration!==0||(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0;n?Za=oh:(Za=gl,Vu=yl=null,Fk(e,e.pendingLanes),xi=0,Vc=null);var s=e.pendingLanes;if(s===0&&(hl=null),n||Xk(e),s=w(t),o=o.stateNode,To&&typeof To.onCommitFiberRoot==="function")try{var c=(o.current.flags&128)===128;switch(s){case ur:var p=Gv;break;case $r:p=Vv;break;case En:p=hu;break;case Sm:p=jv;break;default:p=hu}To.onCommitFiberRoot(gu,o,p,c)}catch(B){Mn||(Mn=!0,console.error("React instrumentation encountered an error: %o",B))}if(Dn&&e.memoizedUpdaters.clear(),UA(),a!==null){c=K.T,p=Jt.p,Jt.p=ur,K.T=null;try{var x=e.onRecoverableError;for(o=0;o<a.length;o++){var k=a[o],q=VA(k.stack);H(k.source,x,k.value,q)}}finally{K.T=c,Jt.p=p}}(Wr&3)!==0&&Yd(),Cn(e),s=e.pendingLanes,(t&261930)!==0&&(s&42)!==0?(Um=!0,e===Vx?Gc++:(Gc=0,Vx=e)):Gc=0,n||ai(t,fs),Qd(0,!1)}}function VA(e){return e={componentStack:e},Object.defineProperty(e,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),e}function Fk(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Ed(t)))}function Yd(){return Uk(),_k(),Hk(),Gk()}function Gk(){if(Za!==oh)return!1;var e=yl,t=Hx;Hx=0;var a=w(Wr),o=En===0||En>a?En:a;a=K.T;var n=Jt.p;try{Jt.p=o,K.T=null;var s=Gx;Gx=null,o=yl;var c=Wr;if(Za=gl,Vu=yl=null,Wr=0,(Ut&(ao|pr))!==uo)throw Error("Cannot flush passive effects while already rendering.");er(c),jx=!0,rh=!1;var p=0;if(ps=null,p=so(),Zr===$C)Md(fs,p,hs);else{var x=fs,k=p,q=Zr===_x;!ya||k<=x||(qa?qa.run(console.timeStamp.bind(console,q?"Waiting for Paint":"Waiting",x,k,Tt,wt,"secondary-light")):console.timeStamp(q?"Waiting for Paint":"Waiting",x,k,Tt,wt,"secondary-light"))}x=Ut,Ut|=pr;var B=o.current;Tp(),wk(B);var D=o.current;B=Fx,Tp(),bk(o,D,c,s,B),Xk(o),Ut=x;var F=so();if(D=p,B=qa,ps!==null?D0(D,F,ps,!0,B):!ya||F<=D||(B?B.run(console.timeStamp.bind(console,"Remaining Effects",D,F,Tt,wt,"secondary-dark")):console.timeStamp("Remaining Effects",D,F,Tt,wt,"secondary-dark")),ai(c,F),Qd(0,!1),rh?o===Vc?xi++:(xi=0,Vc=o):xi=0,rh=jx=!1,To&&typeof To.onPostCommitFiberRoot==="function")try{To.onPostCommitFiberRoot(gu,o)}catch(xe){Mn||(Mn=!0,console.error("React instrumentation encountered an error: %o",xe))}var me=o.current.stateNode;return me.effectDuration=0,me.passiveEffectDuration=0,!0}finally{Jt.p=n,K.T=a,Fk(e,t)}}function Vk(e,t,a){t=tr(a,t),$0(t),t=zy(e.stateNode,t,2),e=Gs(e,t,2),e!==null&&(Os(e,2),Cn(e))}function Zt(e,t,a){if(ju=!1,e.tag===3)Vk(e,e,a);else{for(;t!==null;){if(t.tag===3){Vk(t,e,a);return}if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError==="function"||typeof o.componentDidCatch==="function"&&(hl===null||!hl.has(o))){e=tr(a,e),$0(e),a=Py(2),o=Gs(t,a,2),o!==null&&(Uy(a,o,t,e),Os(o,2),Cn(o));return}}t=t.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
153
+ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+o,H(t,function(p,x){console.error("%s must not return anything besides a function, which is used for clean-up.%s",p,x)},s,c)}a=a.next}while(a!==n)}}catch(p){Zt(t,t.return,p)}}function ru(e,t,a){try{var o=t.updateQueue,n=o!==null?o.lastEffect:null;if(n!==null){var s=n.next;o=s;do{if((o.tag&e)===e){var c=o.inst,p=c.destroy;p!==void 0&&(c.destroy=void 0,(e&Po)!==Vm&&(ju=!0),n=t,H(n,tE,n,a,p),(e&Po)!==Vm&&(ju=!1))}o=o.next}while(o!==s)}}catch(x){Zt(t,t.return,x)}}function ok(e,t){Sn(e)?(bn(),Vd(t,e),xn()):Vd(t,e)}function Wy(e,t,a){Sn(e)?(bn(),ru(a,e,t),xn()):ru(a,e,t)}function rk(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;e.type.defaultProps||"ref"in e.memoizedProps||_u||(a.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",V(e)||"instance"),a.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",V(e)||"instance"));try{H(e,sS,t,a)}catch(o){Zt(e,e.return,o)}}}function EA(e,t,a){return e.getSnapshotBeforeUpdate(t,a)}function NA(e,t){var a=t.memoizedProps,o=t.memoizedState;t=e.stateNode,e.type.defaultProps||"ref"in e.memoizedProps||_u||(t.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",V(e)||"instance"),t.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",V(e)||"instance"));try{var n=ei(e.type,a),s=H(e,EA,t,n,o);a=UC,s!==void 0||a.has(e.type)||(a.add(e.type),H(e,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",V(e))})),t.__reactInternalSnapshotBeforeUpdate=s}catch(c){Zt(e,e.return,c)}}function nk(e,t,a){a.props=ei(e.type,e.memoizedProps),a.state=e.memoizedState,Sn(e)?(bn(),H(e,rC,e,t,a),xn()):H(e,rC,e,t,a)}function qA(e){var t=e.ref;if(t!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}if(typeof t==="function")if(Sn(e))try{bn(),e.refCleanup=t(a)}finally{xn()}else e.refCleanup=t(a);else typeof t==="string"?console.error("String refs are no longer supported."):t.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",V(e)),t.current=a}}function jd(e,t){try{H(e,qA,e)}catch(a){Zt(e,t,a)}}function kn(e,t){var a=e.ref,o=e.refCleanup;if(a!==null)if(typeof o==="function")try{if(Sn(e))try{bn(),H(e,o)}finally{xn(e)}else H(e,o)}catch(n){Zt(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a==="function")try{if(Sn(e))try{bn(),H(e,a,null)}finally{xn(e)}else H(e,a,null)}catch(n){Zt(e,t,n)}else a.current=null}function sk(e,t,a,o){var n=e.memoizedProps,s=n.id,c=n.onCommit;n=n.onRender,t=t===null?"mount":"update",zm&&(t="nested-update"),typeof n==="function"&&n(s,t,e.actualDuration,e.treeBaseDuration,e.actualStartTime,a),typeof c==="function"&&c(s,t,o,a)}function OA(e,t,a,o){var n=e.memoizedProps;e=n.id,n=n.onPostCommit,t=t===null?"mount":"update",zm&&(t="nested-update"),typeof n==="function"&&n(e,t,o,a)}function lk(e){var{type:t,memoizedProps:a,stateNode:o}=e;try{H(e,nM,o,t,a,e)}catch(n){Zt(e,e.return,n)}}function Zy(e,t,a){try{H(e,lM,e.stateNode,e.type,a,t,e)}catch(o){Zt(e,e.return,o)}}function ik(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ks(e.type)||e.tag===4}function Jy(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ik(e.return))return null;e=e.return}e.sibling.return=e.return;for(e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Ks(e.type))continue e;if(e.flags&2)continue e;if(e.child===null||e.tag===4)continue e;else e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ev(e,t,a){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?(hL(a),(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t)):(hL(a),t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!==null&&a!==void 0||t.onclick!==null||(t.onclick=Jn));else if(o!==4&&(o===27&&Ks(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(ev(e,t,a),e=e.sibling;e!==null;)ev(e,t,a),e=e.sibling}function Zp(e,t,a){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(o!==4&&(o===27&&Ks(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Zp(e,t,a),e=e.sibling;e!==null;)Zp(e,t,a),e=e.sibling}function BA(e){for(var t,a=e.return;a!==null;){if(ik(a)){t=a;break}a=a.return}if(t==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(t.tag){case 27:t=t.stateNode,a=Jy(e),Zp(e,a,t);break;case 5:a=t.stateNode,t.flags&32&&(mL(a),t.flags&=-33),t=Jy(e),Zp(e,t,a);break;case 3:case 4:t=t.stateNode.containerInfo,a=Jy(e),ev(e,a,t);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function uk(e){var{stateNode:t,memoizedProps:a}=e;try{H(e,LM,e.type,a,t,e)}catch(o){Zt(e,e.return,o)}}function dk(e,t){return t.tag===31?(t=t.memoizedState,e.memoizedState!==null&&t===null):t.tag===13?(e=e.memoizedState,t=t.memoizedState,e!==null&&e.dehydrated!==null&&(t===null||t.dehydrated===null)):t.tag===3?e.memoizedState.isDehydrated&&(t.flags&256)===0:!1}function PA(e,t){if(e=e.containerInfo,Jx=vh,e=T0(e),Pg(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var o=a.getSelection&&a.getSelection();if(o&&o.rangeCount!==0){a=o.anchorNode;var n=o.anchorOffset,s=o.focusNode;o=o.focusOffset;try{a.nodeType,s.nodeType}catch(me){a=null;break e}var c=0,p=-1,x=-1,k=0,q=0,B=e,D=null;t:for(;;){for(var F;;){if(B!==a||n!==0&&B.nodeType!==3||(p=c+n),B!==s||o!==0&&B.nodeType!==3||(x=c+o),B.nodeType===3&&(c+=B.nodeValue.length),(F=B.firstChild)===null)break;D=B,B=F}for(;;){if(B===e)break t;if(D===a&&++k===n&&(p=c),D===s&&++q===o&&(x=c),(F=B.nextSibling)!==null)break;B=D,D=B.parentNode}B=F}a=p===-1||x===-1?null:{start:p,end:x}}else a=null}a=a||{start:0,end:0}}else a=null;eb={focusedElem:e,selectionRange:a},vh=!1;for(io=t;io!==null;)if(t=io,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,io=e;else for(;io!==null;){switch(e=t=io,a=e.alternate,n=e.flags,e.tag){case 0:if((n&4)!==0&&(e=e.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:(n&1024)!==0&&a!==null&&NA(e,a);break;case 3:if((n&1024)!==0){if(e=e.stateNode.containerInfo,a=e.nodeType,a===9)bv(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":bv(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((n&1024)!==0)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if(e=t.sibling,e!==null){e.return=t.return,io=e;break}io=t.return}}function ck(e,t,a){var o=ar(),n=hn(),s=yn(),c=vn(),p=a.flags;switch(a.tag){case 0:case 11:case 15:Ln(e,a),p&4&&ak(a,fr|Er);break;case 1:if(Ln(e,a),p&4)if(e=a.stateNode,t===null)a.type.defaultProps||"ref"in a.memoizedProps||_u||(e.props!==a.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",V(a)||"instance"),e.state!==a.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",V(a)||"instance")),Sn(a)?(bn(),H(a,Sx,a,e),xn()):H(a,Sx,a,e);else{var x=ei(a.type,t.memoizedProps);t=t.memoizedState,a.type.defaultProps||"ref"in a.memoizedProps||_u||(e.props!==a.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",V(a)||"instance"),e.state!==a.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",V(a)||"instance")),Sn(a)?(bn(),H(a,tC,a,e,x,t,e.__reactInternalSnapshotBeforeUpdate),xn()):H(a,tC,a,e,x,t,e.__reactInternalSnapshotBeforeUpdate)}p&64&&rk(a),p&512&&jd(a,a.return);break;case 3:if(t=os(),Ln(e,a),p&64&&(p=a.updateQueue,p!==null)){if(x=null,a.child!==null)switch(a.child.tag){case 27:case 5:x=a.child.stateNode;break;case 1:x=a.child.stateNode}try{H(a,sS,p,x)}catch(q){Zt(a,a.return,q)}}e.effectDuration+=Cp(t);break;case 27:t===null&&p&4&&uk(a);case 26:case 5:if(Ln(e,a),t===null){if(p&4)lk(a);else if(p&64){e=a.type,t=a.memoizedProps,x=a.stateNode;try{H(a,sM,x,e,t,a)}catch(q){Zt(a,a.return,q)}}}p&512&&jd(a,a.return);break;case 12:if(p&4){p=os(),Ln(e,a),e=a.stateNode,e.effectDuration+=Nd(p);try{H(a,sk,a,t,nl,e.effectDuration)}catch(q){Zt(a,a.return,q)}}else Ln(e,a);break;case 31:Ln(e,a),p&4&&mk(e,a);break;case 13:Ln(e,a),p&4&&hk(e,a),p&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(p=$A.bind(null,a),xM(e,p))));break;case 22:if(p=a.memoizedState!==null||xs,!p){t=t!==null&&t.memoizedState!==null||Qa,x=xs;var k=Qa;xs=p,(Qa=t)&&!k?(wn(e,a,(a.subtreeFlags&8772)!==0),(a.mode&mt)!==Ze&&0<=Ue&&0<=$e&&0.05<$e-Ue&&hp(a,Ue,$e)):Ln(e,a),xs=x,Qa=k}break;case 30:break;default:Ln(e,a)}(a.mode&mt)!==Ze&&0<=Ue&&0<=$e&&((Aa||0.05<Ca)&&pn(a,Ue,$e,Ca,La),a.alternate===null&&a.return!==null&&a.return.alternate!==null&&0.05<$e-Ue&&(dk(a.return.alternate,a.return)||fn(a,Ue,$e,"Mount"))),or(o),gn(n),La=s,Aa=c}function fk(e){var t=e.alternate;t!==null&&(e.alternate=null,fk(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ye(t)),e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ss(e,t,a){for(a=a.child;a!==null;)pk(e,t,a),a=a.sibling}function pk(e,t,a){if(To&&typeof To.onCommitFiberUnmount==="function")try{To.onCommitFiberUnmount(gu,a)}catch(k){Mn||(Mn=!0,console.error("React instrumentation encountered an error: %o",k))}var o=ar(),n=hn(),s=yn(),c=vn();switch(a.tag){case 26:Qa||kn(a,t),ss(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(e=a.stateNode,e.parentNode.removeChild(e));break;case 27:Qa||kn(a,t);var p=Wa,x=$o;Ks(a.type)&&(Wa=a.stateNode,$o=!1),ss(e,t,a),H(a,ec,a.stateNode),Wa=p,$o=x;break;case 5:Qa||kn(a,t);case 6:if(p=Wa,x=$o,Wa=null,ss(e,t,a),Wa=p,$o=x,Wa!==null)if($o)try{H(a,dM,Wa,a.stateNode)}catch(k){Zt(a,t,k)}else try{H(a,uM,Wa,a.stateNode)}catch(k){Zt(a,t,k)}break;case 18:Wa!==null&&($o?(e=Wa,gL(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),fu(e)):gL(Wa,a.stateNode));break;case 4:p=Wa,x=$o,Wa=a.stateNode.containerInfo,$o=!0,ss(e,t,a),Wa=p,$o=x;break;case 0:case 11:case 14:case 15:ru(Po,a,t),Qa||Qy(a,t,fr),ss(e,t,a);break;case 1:Qa||(kn(a,t),p=a.stateNode,typeof p.componentWillUnmount==="function"&&nk(a,t,p)),ss(e,t,a);break;case 21:ss(e,t,a);break;case 22:Qa=(p=Qa)||a.memoizedState!==null,ss(e,t,a),Qa=p;break;default:ss(e,t,a)}(a.mode&mt)!==Ze&&0<=Ue&&0<=$e&&(Aa||0.05<Ca)&&pn(a,Ue,$e,Ca,La),or(o),gn(n),La=s,Aa=c}function mk(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{H(t,SM,e)}catch(a){Zt(t,t.return,a)}}}function hk(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{H(t,kM,e)}catch(a){Zt(t,t.return,a)}}function zA(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new _C),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new _C),t;default:throw Error("Unexpected Suspense handler tag ("+e.tag+"). This is a bug in React.")}}function Jp(e,t){var a=zA(e);t.forEach(function(o){if(!a.has(o)){if(a.add(o),Dn)if(Hu!==null&&Fu!==null)Kd(Fu,Hu);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var n=XA.bind(null,e,o);o.then(n,n)}})}function Vo(e,t){var a=t.deletions;if(a!==null)for(var o=0;o<a.length;o++){var n=e,s=t,c=a[o],p=ar(),x=s;e:for(;x!==null;){switch(x.tag){case 27:if(Ks(x.type)){Wa=x.stateNode,$o=!1;break e}break;case 5:Wa=x.stateNode,$o=!1;break e;case 3:case 4:Wa=x.stateNode.containerInfo,$o=!0;break e}x=x.return}if(Wa===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");pk(n,s,c),Wa=null,$o=!1,(c.mode&mt)!==Ze&&0<=Ue&&0<=$e&&0.05<$e-Ue&&fn(c,Ue,$e,"Unmount"),or(p),n=c,s=n.alternate,s!==null&&(s.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)gk(t,e),t=t.sibling}function gk(e,t){var a=ar(),o=hn(),n=yn(),s=vn(),{alternate:c,flags:p}=e;switch(e.tag){case 0:case 11:case 14:case 15:Vo(t,e),jo(e),p&4&&(ru(Po|Er,e,e.return),Vd(Po|Er,e),Qy(e,e.return,fr|Er));break;case 1:if(Vo(t,e),jo(e),p&512&&(Qa||c===null||kn(c,c.return)),p&64&&xs&&(p=e.updateQueue,p!==null&&(c=p.callbacks,c!==null))){var x=p.shared.hiddenCallbacks;p.shared.hiddenCallbacks=x===null?c:x.concat(c)}break;case 26:if(x=Qr,Vo(t,e),jo(e),p&512&&(Qa||c===null||kn(c,c.return)),p&4){var k=c!==null?c.memoizedState:null;if(p=e.memoizedState,c===null)if(p===null)if(e.stateNode===null){e:{p=e.type,c=e.memoizedProps,x=x.ownerDocument||x;t:switch(p){case"title":if(k=x.getElementsByTagName("title")[0],!k||k[lc]||k[xo]||k.namespaceURI===vu||k.hasAttribute("itemprop"))k=x.createElement(p),x.head.insertBefore(k,x.querySelector("head > title"));vo(k,p,c),k[xo]=e,ze(k),p=k;break e;case"link":var q=IL("link","href",x).get(p+(c.href||""));if(q){for(var B=0;B<q.length;B++)if(k=q[B],k.getAttribute("href")===(c.href==null||c.href===""?null:c.href)&&k.getAttribute("rel")===(c.rel==null?null:c.rel)&&k.getAttribute("title")===(c.title==null?null:c.title)&&k.getAttribute("crossorigin")===(c.crossOrigin==null?null:c.crossOrigin)){q.splice(B,1);break t}}k=x.createElement(p),vo(k,p,c),x.head.appendChild(k);break;case"meta":if(q=IL("meta","content",x).get(p+(c.content||""))){for(B=0;B<q.length;B++)if(k=q[B],ke(c.content,"content"),k.getAttribute("content")===(c.content==null?null:""+c.content)&&k.getAttribute("name")===(c.name==null?null:c.name)&&k.getAttribute("property")===(c.property==null?null:c.property)&&k.getAttribute("http-equiv")===(c.httpEquiv==null?null:c.httpEquiv)&&k.getAttribute("charset")===(c.charSet==null?null:c.charSet)){q.splice(B,1);break t}}k=x.createElement(p),vo(k,p,c),x.head.appendChild(k);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+p+'". This is a bug in React.')}k[xo]=e,ze(k),p=k}e.stateNode=p}else RL(x,e.type,e.stateNode);else e.stateNode=TL(x,p,e.memoizedProps);else k!==p?(k===null?c.stateNode!==null&&(c=c.stateNode,c.parentNode.removeChild(c)):k.count--,p===null?RL(x,e.type,e.stateNode):TL(x,p,e.memoizedProps)):p===null&&e.stateNode!==null&&Zy(e,e.memoizedProps,c.memoizedProps)}break;case 27:Vo(t,e),jo(e),p&512&&(Qa||c===null||kn(c,c.return)),c!==null&&p&4&&Zy(e,e.memoizedProps,c.memoizedProps);break;case 5:if(Vo(t,e),jo(e),p&512&&(Qa||c===null||kn(c,c.return)),e.flags&32){x=e.stateNode;try{H(e,mL,x)}catch(xe){Zt(e,e.return,xe)}}p&4&&e.stateNode!=null&&(x=e.memoizedProps,Zy(e,x,c!==null?c.memoizedProps:x)),p&1024&&(qx=!0,e.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(Vo(t,e),jo(e),p&4){if(e.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");p=e.memoizedProps,c=c!==null?c.memoizedProps:p,x=e.stateNode;try{H(e,iM,x,c,p)}catch(xe){Zt(e,e.return,xe)}}break;case 3:if(x=os(),hh=null,k=Qr,Qr=lm(t.containerInfo),Vo(t,e),Qr=k,jo(e),p&4&&c!==null&&c.memoizedState.isDehydrated)try{H(e,bM,t.containerInfo)}catch(xe){Zt(e,e.return,xe)}qx&&(qx=!1,yk(e)),t.effectDuration+=Cp(x);break;case 4:p=Qr,Qr=lm(e.stateNode.containerInfo),Vo(t,e),jo(e),Qr=p;break;case 12:p=os(),Vo(t,e),jo(e),e.stateNode.effectDuration+=Nd(p);break;case 31:Vo(t,e),jo(e),p&4&&(p=e.updateQueue,p!==null&&(e.updateQueue=null,Jp(e,p)));break;case 13:Vo(t,e),jo(e),e.child.flags&8192&&e.memoizedState!==null!==(c!==null&&c.memoizedState!==null)&&(eh=so()),p&4&&(p=e.updateQueue,p!==null&&(e.updateQueue=null,Jp(e,p)));break;case 22:x=e.memoizedState!==null;var D=c!==null&&c.memoizedState!==null,F=xs,me=Qa;if(xs=F||x,Qa=me||D,Vo(t,e),Qa=me,xs=F,D&&!x&&!F&&!me&&(e.mode&mt)!==Ze&&0<=Ue&&0<=$e&&0.05<$e-Ue&&hp(e,Ue,$e),jo(e),p&8192)e:for(t=e.stateNode,t._visibility=x?t._visibility&~gc:t._visibility|gc,!x||c===null||D||xs||Qa||(ti(e),(e.mode&mt)!==Ze&&0<=Ue&&0<=$e&&0.05<$e-Ue&&fn(e,Ue,$e,"Disconnect")),c=null,t=e;;){if(t.tag===5||t.tag===26){if(c===null){D=c=t;try{k=D.stateNode,x?H(D,fM,k):H(D,hM,D.stateNode,D.memoizedProps)}catch(xe){Zt(D,D.return,xe)}}}else if(t.tag===6){if(c===null){D=t;try{q=D.stateNode,x?H(D,pM,q):H(D,gM,q,D.memoizedProps)}catch(xe){Zt(D,D.return,xe)}}}else if(t.tag===18){if(c===null){D=t;try{B=D.stateNode,x?H(D,cM,B):H(D,mM,D.stateNode)}catch(xe){Zt(D,D.return,xe)}}}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;c===t&&(c=null),t=t.return}c===t&&(c=null),t.sibling.return=t.return,t=t.sibling}p&4&&(p=e.updateQueue,p!==null&&(c=p.retryQueue,c!==null&&(p.retryQueue=null,Jp(e,c))));break;case 19:Vo(t,e),jo(e),p&4&&(p=e.updateQueue,p!==null&&(e.updateQueue=null,Jp(e,p)));break;case 30:break;case 21:break;default:Vo(t,e),jo(e)}(e.mode&mt)!==Ze&&0<=Ue&&0<=$e&&((Aa||0.05<Ca)&&pn(e,Ue,$e,Ca,La),e.alternate===null&&e.return!==null&&e.return.alternate!==null&&0.05<$e-Ue&&(dk(e.return.alternate,e.return)||fn(e,Ue,$e,"Mount"))),or(a),gn(o),La=n,Aa=s}function jo(e){var t=e.flags;if(t&2){try{H(e,BA,e)}catch(a){Zt(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function yk(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;yk(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Ln(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)ck(e,t.alternate,t),t=t.sibling}function vk(e){var t=ar(),a=hn(),o=yn(),n=vn();switch(e.tag){case 0:case 11:case 14:case 15:Qy(e,e.return,fr),ti(e);break;case 1:kn(e,e.return);var s=e.stateNode;typeof s.componentWillUnmount==="function"&&nk(e,e.return,s),ti(e);break;case 27:H(e,ec,e.stateNode);case 26:case 5:kn(e,e.return),ti(e);break;case 22:e.memoizedState===null&&ti(e);break;case 30:ti(e);break;default:ti(e)}(e.mode&mt)!==Ze&&0<=Ue&&0<=$e&&(Aa||0.05<Ca)&&pn(e,Ue,$e,Ca,La),or(t),gn(a),La=o,Aa=n}function ti(e){for(e=e.child;e!==null;)vk(e),e=e.sibling}function xk(e,t,a,o){var n=ar(),s=hn(),c=yn(),p=vn(),x=a.flags;switch(a.tag){case 0:case 11:case 15:wn(e,a,o),ak(a,fr);break;case 1:if(wn(e,a,o),t=a.stateNode,typeof t.componentDidMount==="function"&&H(a,Sx,a,t),t=a.updateQueue,t!==null){e=a.stateNode;try{H(a,bA,t,e)}catch(k){Zt(a,a.return,k)}}o&&x&64&&rk(a),jd(a,a.return);break;case 27:uk(a);case 26:case 5:wn(e,a,o),o&&t===null&&x&4&&lk(a),jd(a,a.return);break;case 12:if(o&&x&4){x=os(),wn(e,a,o),o=a.stateNode,o.effectDuration+=Nd(x);try{H(a,sk,a,t,nl,o.effectDuration)}catch(k){Zt(a,a.return,k)}}else wn(e,a,o);break;case 31:wn(e,a,o),o&&x&4&&mk(e,a);break;case 13:wn(e,a,o),o&&x&4&&hk(e,a);break;case 22:a.memoizedState===null&&wn(e,a,o),jd(a,a.return);break;case 30:break;default:wn(e,a,o)}(a.mode&mt)!==Ze&&0<=Ue&&0<=$e&&(Aa||0.05<Ca)&&pn(a,Ue,$e,Ca,La),or(n),gn(s),La=c,Aa=p}function wn(e,t,a){a=a&&(t.subtreeFlags&8772)!==0;for(t=t.child;t!==null;)xk(e,t.alternate,t,a),t=t.sibling}function tv(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&&Ql(e),a!=null&&Ed(a))}function av(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(Ql(t),e!=null&&Ed(e))}function Vr(e,t,a,o,n){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(t=t.child;t!==null;){var s=t.sibling;bk(e,t,a,o,s!==null?s.actualStartTime:n),t=s}}function bk(e,t,a,o,n){var s=ar(),c=hn(),p=yn(),x=vn(),k=tl,q=t.flags;switch(t.tag){case 0:case 11:case 15:(t.mode&mt)!==Ze&&0<t.actualStartTime&&(t.flags&1)!==0&&gp(t,t.actualStartTime,n,to,a),Vr(e,t,a,o,n),q&2048&&ok(t,zo|Er);break;case 1:(t.mode&mt)!==Ze&&0<t.actualStartTime&&((t.flags&128)!==0?Ug(t,t.actualStartTime,n,[]):(t.flags&1)!==0&&gp(t,t.actualStartTime,n,to,a)),Vr(e,t,a,o,n);break;case 3:var B=os(),D=to;to=t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)===0,Vr(e,t,a,o,n),to=D,q&2048&&(a=null,t.alternate!==null&&(a=t.alternate.memoizedState.cache),o=t.memoizedState.cache,o!==a&&(Ql(o),a!=null&&Ed(a))),e.passiveEffectDuration+=Cp(B);break;case 12:if(q&2048){q=os(),Vr(e,t,a,o,n),e=t.stateNode,e.passiveEffectDuration+=Nd(q);try{H(t,OA,t,t.alternate,nl,e.passiveEffectDuration)}catch(F){Zt(t,t.return,F)}}else Vr(e,t,a,o,n);break;case 31:q=to,B=t.alternate!==null?t.alternate.memoizedState:null,D=t.memoizedState,B!==null&&D===null?(D=t.deletions,D!==null&&0<D.length&&D[0].tag===18?(to=!1,B=B.hydrationErrors,B!==null&&Ug(t,t.actualStartTime,n,B)):to=!0):to=!1,Vr(e,t,a,o,n),to=q;break;case 13:q=to,B=t.alternate!==null?t.alternate.memoizedState:null,D=t.memoizedState,B===null||B.dehydrated===null||D!==null&&D.dehydrated!==null?to=!1:(D=t.deletions,D!==null&&0<D.length&&D[0].tag===18?(to=!1,B=B.hydrationErrors,B!==null&&Ug(t,t.actualStartTime,n,B)):to=!0),Vr(e,t,a,o,n),to=q;break;case 23:break;case 22:D=t.stateNode,B=t.alternate,t.memoizedState!==null?D._visibility&us?Vr(e,t,a,o,n):$d(e,t,a,o,n):D._visibility&us?Vr(e,t,a,o,n):(D._visibility|=us,nu(e,t,a,o,(t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child),n),(t.mode&mt)===Ze||to||(e=t.actualStartTime,0<=e&&0.05<n-e&&hp(t,e,n),0<=Ue&&0<=$e&&0.05<$e-Ue&&hp(t,Ue,$e))),q&2048&&tv(B,t);break;case 24:Vr(e,t,a,o,n),q&2048&&av(t.alternate,t);break;default:Vr(e,t,a,o,n)}if((t.mode&mt)!==Ze){if(e=!to&&t.alternate===null&&t.return!==null&&t.return.alternate!==null)a=t.actualStartTime,0<=a&&0.05<n-a&&fn(t,a,n,"Mount");0<=Ue&&0<=$e&&((Aa||0.05<Ca)&&pn(t,Ue,$e,Ca,La),e&&0.05<$e-Ue&&fn(t,Ue,$e,"Mount"))}or(s),gn(c),La=p,Aa=x,tl=k}function nu(e,t,a,o,n,s){n=n&&((t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child));for(t=t.child;t!==null;){var c=t.sibling;Sk(e,t,a,o,n,c!==null?c.actualStartTime:s),t=c}}function Sk(e,t,a,o,n,s){var c=ar(),p=hn(),x=yn(),k=vn(),q=tl;n&&(t.mode&mt)!==Ze&&0<t.actualStartTime&&(t.flags&1)!==0&&gp(t,t.actualStartTime,s,to,a);var B=t.flags;switch(t.tag){case 0:case 11:case 15:nu(e,t,a,o,n,s),ok(t,zo);break;case 23:break;case 22:var D=t.stateNode;t.memoizedState!==null?D._visibility&us?nu(e,t,a,o,n,s):$d(e,t,a,o,s):(D._visibility|=us,nu(e,t,a,o,n,s)),n&&B&2048&&tv(t.alternate,t);break;case 24:nu(e,t,a,o,n,s),n&&B&2048&&av(t.alternate,t);break;default:nu(e,t,a,o,n,s)}(t.mode&mt)!==Ze&&0<=Ue&&0<=$e&&(Aa||0.05<Ca)&&pn(t,Ue,$e,Ca,La),or(c),gn(p),La=x,Aa=k,tl=q}function $d(e,t,a,o,n){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(var s=t.child;s!==null;){t=s.sibling;var c=e,p=a,x=o,k=t!==null?t.actualStartTime:n,q=tl;(s.mode&mt)!==Ze&&0<s.actualStartTime&&(s.flags&1)!==0&&gp(s,s.actualStartTime,k,to,p);var B=s.flags;switch(s.tag){case 22:$d(c,s,p,x,k),B&2048&&tv(s.alternate,s);break;case 24:$d(c,s,p,x,k),B&2048&&av(s.alternate,s);break;default:$d(c,s,p,x,k)}tl=q,s=t}}function su(e,t,a){if(e.subtreeFlags&Bc)for(e=e.child;e!==null;)kk(e,t,a),e=e.sibling}function kk(e,t,a){switch(e.tag){case 26:su(e,t,a),e.flags&Bc&&e.memoizedState!==null&&TM(a,Qr,e.memoizedState,e.memoizedProps);break;case 5:su(e,t,a);break;case 3:case 4:var o=Qr;Qr=lm(e.stateNode.containerInfo),su(e,t,a),Qr=o;break;case 22:e.memoizedState===null&&(o=e.alternate,o!==null&&o.memoizedState!==null?(o=Bc,Bc=16777216,su(e,t,a),Bc=o):su(e,t,a));break;default:su(e,t,a)}}function Lk(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 Xd(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var o=t[a],n=ar();io=o,Tk(o,e),(o.mode&mt)!==Ze&&0<=Ue&&0<=$e&&0.05<$e-Ue&&fn(o,Ue,$e,"Unmount"),or(n)}Lk(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)wk(e),e=e.sibling}function wk(e){var t=ar(),a=hn(),o=yn(),n=vn();switch(e.tag){case 0:case 11:case 15:Xd(e),e.flags&2048&&Wy(e,e.return,zo|Er);break;case 3:var s=os();Xd(e),e.stateNode.passiveEffectDuration+=Cp(s);break;case 12:s=os(),Xd(e),e.stateNode.passiveEffectDuration+=Nd(s);break;case 22:s=e.stateNode,e.memoizedState!==null&&s._visibility&us&&(e.return===null||e.return.tag!==13)?(s._visibility&=~us,em(e),(e.mode&mt)!==Ze&&0<=Ue&&0<=$e&&0.05<$e-Ue&&fn(e,Ue,$e,"Disconnect")):Xd(e);break;default:Xd(e)}(e.mode&mt)!==Ze&&0<=Ue&&0<=$e&&(Aa||0.05<Ca)&&pn(e,Ue,$e,Ca,La),or(t),gn(a),Aa=n,La=o}function em(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var o=t[a],n=ar();io=o,Tk(o,e),(o.mode&mt)!==Ze&&0<=Ue&&0<=$e&&0.05<$e-Ue&&fn(o,Ue,$e,"Unmount"),or(n)}Lk(e)}for(e=e.child;e!==null;)Ck(e),e=e.sibling}function Ck(e){var t=ar(),a=hn(),o=yn(),n=vn();switch(e.tag){case 0:case 11:case 15:Wy(e,e.return,zo),em(e);break;case 22:var s=e.stateNode;s._visibility&us&&(s._visibility&=~us,em(e));break;default:em(e)}(e.mode&mt)!==Ze&&0<=Ue&&0<=$e&&(Aa||0.05<Ca)&&pn(e,Ue,$e,Ca,La),or(t),gn(a),Aa=n,La=o}function Tk(e,t){for(;io!==null;){var a=io,o=a,n=t,s=ar(),c=hn(),p=yn(),x=vn();switch(o.tag){case 0:case 11:case 15:Wy(o,n,zo);break;case 23:case 22:o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(n=o.memoizedState.cachePool.pool,n!=null&&Ql(n));break;case 24:Ed(o.memoizedState.cache)}if((o.mode&mt)!==Ze&&0<=Ue&&0<=$e&&(Aa||0.05<Ca)&&pn(o,Ue,$e,Ca,La),or(s),gn(c),Aa=x,La=p,o=a.child,o!==null)o.return=a,io=o;else e:for(a=e;io!==null;){if(o=io,s=o.sibling,c=o.return,fk(o),o===a){io=null;break e}if(s!==null){s.return=c,io=s;break e}io=c}}}function UA(){sE.forEach(function(e){return e()})}function Ik(){var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return e||K.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),e}function nr(e){if((Ut&ao)!==uo&&gt!==0)return gt&-gt;var t=K.T;return t!==null?(t._updatedFibers||(t._updatedFibers=new Set),t._updatedFibers.add(e),dv()):U()}function Rk(){if(Yo===0)if((gt&536870912)===0||Rt){var e=xm;xm<<=1,(xm&3932160)===0&&(xm=262144),Yo=e}else Yo=536870912;return e=cr.current,e!==null&&(e.flags|=32),Yo}function Ra(e,t,a){if(ju&&console.error("useInsertionEffect must not schedule updates."),jx&&(rh=!0),e===sa&&(ta===gi||ta===yi)||e.cancelPendingCommit!==null)iu(e,0),Xs(e,gt,Yo,!1);if(Os(e,a),(Ut&ao)!==uo&&e===sa){if(An)switch(t.tag){case 0:case 11:case 15:e=vt&&V(vt)||"Unknown",t1.has(e)||(t1.add(e),t=V(t)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",t,e,e));break;case 1:e1||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),e1=!0)}}else Dn&&Sd(e,t,a),KA(t),e===sa&&((Ut&ao)===uo&&(ml|=a),Ta===cl&&Xs(e,gt,Yo,!1)),Cn(e)}function Ak(e,t,a){if((Ut&(ao|pr))!==uo)throw Error("Should not already be working.");if(gt!==0&&vt!==null){var o=vt,n=so();switch(Xw){case Uc:case gi:var s=kc;ya&&((o=o._debugTask)?o.run(console.timeStamp.bind(console,"Suspended",s,n,wr,void 0,"primary-light")):console.timeStamp("Suspended",s,n,wr,void 0,"primary-light"));break;case yi:s=kc,ya&&((o=o._debugTask)?o.run(console.timeStamp.bind(console,"Action",s,n,wr,void 0,"primary-light")):console.timeStamp("Action",s,n,wr,void 0,"primary-light"));break;default:ya&&(o=n-kc,3>o||console.timeStamp("Blocked",kc,n,wr,void 0,5>o?"primary-light":10>o?"primary":100>o?"primary-dark":"error"))}}s=(a=!a&&(t&127)===0&&(t&e.expiredLanes)===0||ho(e,t))?HA(e,t):rv(e,t,!0);var c=a;do{if(s===bs){Gu&&!a&&Xs(e,t,0,!1),t=ta,kc=Xa(),Xw=t;break}else{if(o=so(),n=e.current.alternate,c&&!_A(n)){er(t),n=lo,s=o,!ya||s<=n||(qa?qa.run(console.timeStamp.bind(console,"Teared Render",n,s,Tt,wt,"error")):console.timeStamp("Teared Render",n,s,Tt,wt,"error")),ai(t,o),s=rv(e,t,!1),c=!1;continue}if(s===hi){if(c=t,e.errorRecoveryDisabledLanes&c)var p=0;else p=e.pendingLanes&-536870913,p=p!==0?p:p&536870912?536870912:0;if(p!==0){er(t),_g(lo,o,t,qa),ai(t,o),t=p;e:{o=e,s=c,c=Hc;var x=o.current.memoizedState.isDehydrated;if(x&&(iu(o,p).flags|=256),p=rv(o,p,!1),p!==hi){if(Px&&!x){o.errorRecoveryDisabledLanes|=s,ml|=s,s=cl;break e}o=Uo,Uo=c,o!==null&&(Uo===null?Uo=o:Uo.push.apply(Uo,o))}s=p}if(c=!1,s!==hi)continue;else o=so()}}if(s===zc){er(t),_g(lo,o,t,qa),ai(t,o),iu(e,0),Xs(e,t,0,!0);break}e:{switch(a=e,s){case bs:case zc:throw Error("Root did not complete. This is a bug in React.");case cl:if((t&4194048)!==t)break;case Qm:er(t),A0(lo,o,t,qa),ai(t,o),n=t,(n&127)!==0?Om=o:(n&4194048)!==0&&(Bm=o),Xs(a,t,Yo,!fl);break e;case hi:Uo=null;break;case Km:case HC:break;default:throw Error("Unknown root exit status.")}if(K.actQueue!==null)nv(a,n,t,Uo,Fc,Jm,Yo,ml,vi,s,null,null,lo,o);else{if((t&62914560)===t&&(c=eh+VC-so(),10<c)){if(Xs(a,t,Yo,!fl),ga(a,0,!0)!==0)break e;Wr=t,a.timeoutHandle=u1(Mk.bind(null,a,n,Uo,Fc,Jm,t,Yo,ml,vi,fl,s,"Throttled",lo,o),c);break e}Mk(a,n,Uo,Fc,Jm,t,Yo,ml,vi,fl,s,null,lo,o)}}}break}while(1);Cn(e)}function Mk(e,t,a,o,n,s,c,p,x,k,q,B,D,F){e.timeoutHandle=Li;var me=t.subtreeFlags,xe=null;if(me&8192||(me&16785408)===16785408){if(xe={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Jn},kk(t,s,xe),me=(s&62914560)===s?eh-so():(s&4194048)===s?GC-so():0,me=IM(xe,me),me!==null){Wr=s,e.cancelPendingCommit=me(nv.bind(null,e,t,s,a,o,n,c,p,x,q,xe,xe.waitingForViewTransition?"Waiting for the previous Animation":0<xe.count?0<xe.imgCount?"Suspended on CSS and Images":"Suspended on CSS":xe.imgCount===1?"Suspended on an Image":0<xe.imgCount?"Suspended on Images":null,D,F)),Xs(e,s,c,!k);return}}nv(e,t,s,a,o,n,c,p,x,q,xe,B,D,F)}function _A(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 o=0;o<a.length;o++){var n=a[o],s=n.getSnapshot;n=n.value;try{if(!Oo(s(),n))return!1}catch(c){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 Xs(e,t,a,o){t&=~zx,t&=~ml,e.suspendedLanes|=t,e.pingedLanes&=~t,o&&(e.warmLanes|=t),o=e.expirationTimes;for(var n=t;0<n;){var s=31-Eo(n),c=1<<s;o[s]=-1,n&=~c}a!==0&&zl(e,a,t)}function lu(){return(Ut&(ao|pr))===uo?(Qd(0,!1),!1):!0}function ov(){if(vt!==null){if(ta===Xo)var e=vt.return;else e=vt,kp(),my(e),qu=null,Dc=0,e=vt;for(;e!==null;)tk(e.alternate,e),e=e.return;vt=null}}function ai(e,t){(e&127)!==0&&(sl=t),(e&4194048)!==0&&(Bn=t),(e&62914560)!==0&&(jw=t),(e&2080374784)!==0&&($w=t)}function iu(e,t){ya&&(console.timeStamp("Blocking Track",0.003,0.003,"Blocking",wt,"primary-light"),console.timeStamp("Transition Track",0.003,0.003,"Transition",wt,"primary-light"),console.timeStamp("Suspense Track",0.003,0.003,"Suspense",wt,"primary-light"),console.timeStamp("Idle Track",0.003,0.003,"Idle",wt,"primary-light"));var a=lo;if(lo=Xa(),gt!==0&&0<a){if(er(gt),Ta===Km||Ta===cl)A0(a,lo,t,qa);else{var o=lo,n=qa;if(ya&&!(o<=a)){var s=(t&738197653)===t?"tertiary-dark":"primary-dark",c=(t&536870912)===t?"Prewarm":(t&201326741)===t?"Interrupted Hydration":"Interrupted Render";n?n.run(console.timeStamp.bind(console,c,a,o,Tt,wt,s)):console.timeStamp(c,a,o,Tt,wt,s)}}ai(gt,lo)}if(a=qa,qa=null,(t&127)!==0){qa=xc,n=0<=On&&On<sl?sl:On,o=0<=li&&li<sl?sl:li,s=0<=o?o:0<=n?n:lo,0<=Om?(er(2),M0(Om,s,t,a)):(Pm&127)!==0&&(er(2),Md(sl,s,hs)),a=n;var p=o,x=bc,k=0<Du,q=ll===vc,B=ll===qm;if(n=lo,o=xc,s=gx,c=yx,ya){if(Tt="Blocking",0<a?a>n&&(a=n):a=n,0<p?p>a&&(p=a):p=a,x!==null&&a>p){var D=k?"secondary-light":"warning";o?o.run(console.timeStamp.bind(console,k?"Consecutive":"Event: "+x,p,a,Tt,wt,D)):console.timeStamp(k?"Consecutive":"Event: "+x,p,a,Tt,wt,D)}n>a&&(p=q?"error":(t&738197653)===t?"tertiary-light":"primary-light",q=B?"Promise Resolved":q?"Cascading Update":5<n-a?"Update Blocked":"Update",B=[],c!=null&&B.push(["Component name",c]),s!=null&&B.push(["Method name",s]),a={start:a,end:n,detail:{devtools:{properties:B,track:Tt,trackGroup:wt,color:p}}},o?o.run(performance.measure.bind(performance,q,a)):performance.measure(q,a))}On=-1.1,ll=0,yx=gx=null,Om=-1.1,Du=li,li=-1.1,sl=Xa()}if((t&4194048)!==0&&(qa=Sc,n=0<=ms&&ms<Bn?Bn:ms,a=0<=Mr&&Mr<Bn?Bn:Mr,o=0<=il&&il<Bn?Bn:il,s=0<=o?o:0<=a?a:lo,0<=Bm?(er(256),M0(Bm,s,t,qa)):(Pm&4194048)!==0&&(er(256),Md(Bn,s,hs)),B=o,p=ii,x=0<ul,k=vx===qm,s=lo,o=Sc,c=Gw,q=Vw,ya&&(Tt="Transition",0<a?a>s&&(a=s):a=s,0<n?n>a&&(n=a):n=a,0<B?B>n&&(B=n):B=n,n>B&&p!==null&&(D=x?"secondary-light":"warning",o?o.run(console.timeStamp.bind(console,x?"Consecutive":"Event: "+p,B,n,Tt,wt,D)):console.timeStamp(x?"Consecutive":"Event: "+p,B,n,Tt,wt,D)),a>n&&(o?o.run(console.timeStamp.bind(console,"Action",n,a,Tt,wt,"primary-dark")):console.timeStamp("Action",n,a,Tt,wt,"primary-dark")),s>a&&(n=k?"Promise Resolved":5<s-a?"Update Blocked":"Update",B=[],q!=null&&B.push(["Component name",q]),c!=null&&B.push(["Method name",c]),a={start:a,end:s,detail:{devtools:{properties:B,track:Tt,trackGroup:wt,color:"primary-light"}}},o?o.run(performance.measure.bind(performance,n,a)):performance.measure(n,a))),Mr=ms=-1.1,vx=0,Bm=-1.1,ul=il,il=-1.1,Bn=Xa()),(t&62914560)!==0&&(Pm&62914560)!==0&&(er(4194304),Md(jw,lo,hs)),(t&2080374784)!==0&&(Pm&2080374784)!==0&&(er(268435456),Md($w,lo,hs)),a=e.timeoutHandle,a!==Li&&(e.timeoutHandle=Li,xE(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),Wr=0,ov(),sa=e,vt=a=es(e.current,null),gt=t,ta=Xo,mr=null,fl=!1,Gu=ho(e,t),Px=!1,Ta=bs,vi=Yo=zx=ml=pl=0,Uo=Hc=null,Jm=!1,(t&8)!==0&&(t|=t&32),o=e.entangledLanes,o!==0)for(e=e.entanglements,o&=t;0<o;)n=31-Eo(o),s=1<<n,t|=e[n],o&=~s;return zn=t,yp(),e=Pw(),1000<e-Bw&&(K.recentlyCreatedOwnerStacks=0,Bw=e),Yr.discardPendingWarnings(),a}function Dk(e,t){at=null,K.H=Oc,K.getCurrentStack=null,An=!1,ir=null,t===Nu||t===Hm?(t=Z0(),ta=Uc):t===kx?(t=Z0(),ta=FC):ta=t===Ex?Bx:t!==null&&typeof t==="object"&&typeof t.then==="function"?_c:Wm,mr=t;var a=vt;a===null?(Ta=zc,Xp(e,tr(t,e.current))):a.mode&mt&&ty(a)}function Ek(){var e=cr.current;return e===null?!0:(gt&4194048)===gt?Dr===null?!0:!1:(gt&62914560)===gt||(gt&536870912)!==0?e===Dr:!1}function Nk(){var e=K.H;return K.H=Oc,e===null?Oc:e}function qk(){var e=K.A;return K.A=nE,e}function tm(e){qa===null&&(qa=e._debugTask==null?null:e._debugTask)}function am(){Ta=cl,fl||(gt&4194048)!==gt&&cr.current!==null||(Gu=!0),(pl&134217727)===0&&(ml&134217727)===0||sa===null||Xs(sa,gt,Yo,!1)}function rv(e,t,a){var o=Ut;Ut|=ao;var n=Nk(),s=qk();if(sa!==e||gt!==t){if(Dn){var c=e.memoizedUpdaters;0<c.size&&(Kd(e,gt),c.clear()),Bs(e,t)}Fc=null,iu(e,t)}t=!1,c=Ta;e:do try{if(ta!==Xo&&vt!==null){var p=vt,x=mr;switch(ta){case Bx:ov(),c=Qm;break e;case Uc:case gi:case yi:case _c:cr.current===null&&(t=!0);var k=ta;if(ta=Xo,mr=null,uu(e,p,x,k),a&&Gu){c=bs;break e}break;default:k=ta,ta=Xo,mr=null,uu(e,p,x,k)}}Ok(),c=Ta;break}catch(q){Dk(e,q)}while(1);return t&&e.shellSuspendCounter++,kp(),Ut=o,K.H=n,K.A=s,vt===null&&(sa=null,gt=0,yp()),c}function Ok(){for(;vt!==null;)Bk(vt)}function HA(e,t){var a=Ut;Ut|=ao;var o=Nk(),n=qk();if(sa!==e||gt!==t){if(Dn){var s=e.memoizedUpdaters;0<s.size&&(Kd(e,gt),s.clear()),Bs(e,t)}Fc=null,th=so()+jC,iu(e,t)}else Gu=ho(e,t);e:do try{if(ta!==Xo&&vt!==null)t:switch(t=vt,s=mr,ta){case Wm:ta=Xo,mr=null,uu(e,t,s,Wm);break;case gi:case yi:if(Q0(s)){ta=Xo,mr=null,Pk(t);break}t=function(){ta!==gi&&ta!==yi||sa!==e||(ta=Zm),Cn(e)},s.then(t,t);break e;case Uc:ta=Zm;break e;case FC:ta=Ox;break e;case Zm:Q0(s)?(ta=Xo,mr=null,Pk(t)):(ta=Xo,mr=null,uu(e,t,s,Zm));break;case Ox:var c=null;switch(vt.tag){case 26:c=vt.memoizedState;case 5:case 27:var p=vt;if(c?AL(c):p.stateNode.complete){ta=Xo,mr=null;var x=p.sibling;if(x!==null)vt=x;else{var k=p.return;k!==null?(vt=k,om(k)):vt=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}ta=Xo,mr=null,uu(e,t,s,Ox);break;case _c:ta=Xo,mr=null,uu(e,t,s,_c);break;case Bx:ov(),Ta=Qm;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}K.actQueue!==null?Ok():FA();break}catch(q){Dk(e,q)}while(1);if(kp(),K.H=o,K.A=n,Ut=a,vt!==null)return bs;return sa=null,gt=0,yp(),Ta}function FA(){for(;vt!==null&&!_M();)Bk(vt)}function Bk(e){var t=e.alternate;(e.mode&mt)!==Ze?(ey(e),t=H(e,Yy,t,e,zn),ty(e)):t=H(e,Yy,t,e,zn),e.memoizedProps=e.pendingProps,t===null?om(e):vt=t}function Pk(e){var t=H(e,GA,e);e.memoizedProps=e.pendingProps,t===null?om(e):vt=t}function GA(e){var t=e.alternate,a=(e.mode&mt)!==Ze;switch(a&&ey(e),e.tag){case 15:case 0:t=YS(t,e,e.pendingProps,e.type,void 0,gt);break;case 11:t=YS(t,e,e.pendingProps,e.type.render,e.ref,gt);break;case 5:my(e);default:tk(t,e),e=vt=B0(e,zn),t=Yy(t,e,zn)}return a&&ty(e),t}function uu(e,t,a,o){kp(),my(t),qu=null,Dc=0;var n=t.return;try{if(IA(e,n,t,a,gt)){Ta=zc,Xp(e,tr(a,e.current)),vt=null;return}}catch(s){if(n!==null)throw vt=n,s;Ta=zc,Xp(e,tr(a,e.current)),vt=null;return}if(t.flags&32768){if(Rt||o===Wm)e=!0;else if(Gu||(gt&536870912)!==0)e=!1;else if(fl=e=!0,o===gi||o===yi||o===Uc||o===_c)o=cr.current,o!==null&&o.tag===13&&(o.flags|=16384);zk(t,e)}else om(t)}function om(e){var t=e;do{if((t.flags&32768)!==0){zk(t,fl);return}var a=t.alternate;if(e=t.return,ey(t),a=H(t,MA,a,t,zn),(t.mode&mt)!==Ze&&j0(t),a!==null){vt=a;return}if(t=t.sibling,t!==null){vt=t;return}vt=t=e}while(t!==null);Ta===bs&&(Ta=HC)}function zk(e,t){do{var a=DA(e.alternate,e);if(a!==null){a.flags&=32767,vt=a;return}if((e.mode&mt)!==Ze){j0(e),a=e.actualDuration;for(var o=e.child;o!==null;)a+=o.actualDuration,o=o.sibling;e.actualDuration=a}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){vt=e;return}vt=e=a}while(e!==null);Ta=Qm,vt=null}function nv(e,t,a,o,n,s,c,p,x,k,q,B,D,F){e.cancelPendingCommit=null;do Yd();while(Za!==gl);if(Yr.flushLegacyContextWarning(),Yr.flushPendingUnsafeLifecycleWarnings(),(Ut&(ao|pr))!==uo)throw Error("Should not already be working.");if(er(a),k===hi?_g(D,F,a,qa):o!==null?mA(D,F,a,o,t!==null&&t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)!==0,qa):pA(D,F,a,qa),t!==null){if(a===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),t===e.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(s=t.lanes|t.childLanes,s|=cx,sp(e,a,s,c,p,x),e===sa&&(vt=sa=null,gt=0),Vu=t,yl=e,Wr=a,Hx=s,Gx=n,WC=o,Fx=F,ZC=B,Zr=ah,JC=null,t.actualDuration!==0||(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,YA(hu,function(){return Yc=window.event,Zr===ah&&(Zr=_x),Gk(),null})):(e.callbackNode=null,e.callbackPriority=0),ps=null,nl=Xa(),B!==null&&hA(F,nl,B,qa),o=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||o){o=K.T,K.T=null,n=Jt.p,Jt.p=ur,c=Ut,Ut|=pr;try{PA(e,t,a)}finally{Ut=c,Jt.p=n,K.T=o}}Za=XC,Uk(),_k(),Hk()}}function Uk(){if(Za===XC){Za=gl;var e=yl,t=Vu,a=Wr,o=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||o){o=K.T,K.T=null;var n=Jt.p;Jt.p=ur;var s=Ut;Ut|=pr;try{Hu=a,Fu=e,Tp(),gk(t,e),Fu=Hu=null,a=eb;var c=T0(e.containerInfo),p=a.focusedElem,x=a.selectionRange;if(c!==p&&p&&p.ownerDocument&&C0(p.ownerDocument.documentElement,p)){if(x!==null&&Pg(p)){var{start:k,end:q}=x;if(q===void 0&&(q=k),"selectionStart"in p)p.selectionStart=k,p.selectionEnd=Math.min(q,p.value.length);else{var B=p.ownerDocument||document,D=B&&B.defaultView||window;if(D.getSelection){var F=D.getSelection(),me=p.textContent.length,xe=Math.min(x.start,me),fa=x.end===void 0?xe:Math.min(x.end,me);!F.extend&&xe>fa&&(c=fa,fa=xe,xe=c);var Nt=w0(p,xe),M=w0(p,fa);if(Nt&&M&&(F.rangeCount!==1||F.anchorNode!==Nt.node||F.anchorOffset!==Nt.offset||F.focusNode!==M.node||F.focusOffset!==M.offset)){var E=B.createRange();E.setStart(Nt.node,Nt.offset),F.removeAllRanges(),xe>fa?(F.addRange(E),F.extend(M.node,M.offset)):(E.setEnd(M.node,M.offset),F.addRange(E))}}}}B=[];for(F=p;F=F.parentNode;)F.nodeType===1&&B.push({element:F,left:F.scrollLeft,top:F.scrollTop});typeof p.focus==="function"&&p.focus();for(p=0;p<B.length;p++){var N=B[p];N.element.scrollLeft=N.left,N.element.scrollTop=N.top}}vh=!!Jx,eb=Jx=null}finally{Ut=s,Jt.p=n,K.T=o}}e.current=t,Za=YC}}function _k(){if(Za===YC){Za=gl;var e=JC;if(e!==null){nl=Xa();var t=fs,a=nl;!ya||a<=t||(hs?hs.run(console.timeStamp.bind(console,e,t,a,Tt,wt,"secondary-light")):console.timeStamp(e,t,a,Tt,wt,"secondary-light"))}e=yl,t=Vu,a=Wr;var o=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||o){o=K.T,K.T=null;var n=Jt.p;Jt.p=ur;var s=Ut;Ut|=pr;try{Hu=a,Fu=e,Tp(),ck(e,t.alternate,t),Fu=Hu=null}finally{Ut=s,Jt.p=n,K.T=o}}e=Fx,t=ZC,fs=Xa(),e=t===null?e:nl,t=fs,a=Zr===Ux,o=qa,ps!==null?D0(e,t,ps,!1,o):!ya||t<=e||(o?o.run(console.timeStamp.bind(console,a?"Commit Interrupted View Transition":"Commit",e,t,Tt,wt,a?"error":"secondary-dark")):console.timeStamp(a?"Commit Interrupted View Transition":"Commit",e,t,Tt,wt,a?"error":"secondary-dark")),Za=KC}}function Hk(){if(Za===QC||Za===KC){if(Za===QC){var e=fs;fs=Xa();var t=fs,a=Zr===Ux;!ya||t<=e||(hs?hs.run(console.timeStamp.bind(console,a?"Interrupted View Transition":"Starting Animation",e,t,Tt,wt,a?"error":"secondary-light")):console.timeStamp(a?"Interrupted View Transition":"Starting Animation",e,t,Tt,wt,a?" error":"secondary-light")),Zr!==Ux&&(Zr=$C)}Za=gl,HM(),e=yl;var o=Vu;t=Wr,a=WC;var n=o.actualDuration!==0||(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0;n?Za=oh:(Za=gl,Vu=yl=null,Fk(e,e.pendingLanes),xi=0,Vc=null);var s=e.pendingLanes;if(s===0&&(hl=null),n||Xk(e),s=w(t),o=o.stateNode,To&&typeof To.onCommitFiberRoot==="function")try{var c=(o.current.flags&128)===128;switch(s){case ur:var p=Gv;break;case $r:p=Vv;break;case En:p=hu;break;case Sm:p=jv;break;default:p=hu}To.onCommitFiberRoot(gu,o,p,c)}catch(B){Mn||(Mn=!0,console.error("React instrumentation encountered an error: %o",B))}if(Dn&&e.memoizedUpdaters.clear(),UA(),a!==null){c=K.T,p=Jt.p,Jt.p=ur,K.T=null;try{var x=e.onRecoverableError;for(o=0;o<a.length;o++){var k=a[o],q=VA(k.stack);H(k.source,x,k.value,q)}}finally{K.T=c,Jt.p=p}}(Wr&3)!==0&&Yd(),Cn(e),s=e.pendingLanes,(t&261930)!==0&&(s&42)!==0?(Um=!0,e===Vx?Gc++:(Gc=0,Vx=e)):Gc=0,n||ai(t,fs),Qd(0,!1)}}function VA(e){return e={componentStack:e},Object.defineProperty(e,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),e}function Fk(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Ed(t)))}function Yd(){return Uk(),_k(),Hk(),Gk()}function Gk(){if(Za!==oh)return!1;var e=yl,t=Hx;Hx=0;var a=w(Wr),o=En===0||En>a?En:a;a=K.T;var n=Jt.p;try{Jt.p=o,K.T=null;var s=Gx;Gx=null,o=yl;var c=Wr;if(Za=gl,Vu=yl=null,Wr=0,(Ut&(ao|pr))!==uo)throw Error("Cannot flush passive effects while already rendering.");er(c),jx=!0,rh=!1;var p=0;if(ps=null,p=so(),Zr===$C)Md(fs,p,hs);else{var x=fs,k=p,q=Zr===_x;!ya||k<=x||(qa?qa.run(console.timeStamp.bind(console,q?"Waiting for Paint":"Waiting",x,k,Tt,wt,"secondary-light")):console.timeStamp(q?"Waiting for Paint":"Waiting",x,k,Tt,wt,"secondary-light"))}x=Ut,Ut|=pr;var B=o.current;Tp(),wk(B);var D=o.current;B=Fx,Tp(),bk(o,D,c,s,B),Xk(o),Ut=x;var F=so();if(D=p,B=qa,ps!==null?D0(D,F,ps,!0,B):!ya||F<=D||(B?B.run(console.timeStamp.bind(console,"Remaining Effects",D,F,Tt,wt,"secondary-dark")):console.timeStamp("Remaining Effects",D,F,Tt,wt,"secondary-dark")),ai(c,F),Qd(0,!1),rh?o===Vc?xi++:(xi=0,Vc=o):xi=0,rh=jx=!1,To&&typeof To.onPostCommitFiberRoot==="function")try{To.onPostCommitFiberRoot(gu,o)}catch(xe){Mn||(Mn=!0,console.error("React instrumentation encountered an error: %o",xe))}var me=o.current.stateNode;return me.effectDuration=0,me.passiveEffectDuration=0,!0}finally{Jt.p=n,K.T=a,Fk(e,t)}}function Vk(e,t,a){t=tr(a,t),$0(t),t=Py(e.stateNode,t,2),e=Gs(e,t,2),e!==null&&(Os(e,2),Cn(e))}function Zt(e,t,a){if(ju=!1,e.tag===3)Vk(e,e,a);else{for(;t!==null;){if(t.tag===3){Vk(t,e,a);return}if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError==="function"||typeof o.componentDidCatch==="function"&&(hl===null||!hl.has(o))){e=tr(a,e),$0(e),a=zy(2),o=Gs(t,a,2),o!==null&&(Uy(a,o,t,e),Os(o,2),Cn(o));return}}t=t.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
154
154
 
155
155
  Error message:
156
156
 
157
- %s`,a)}}function sv(e,t,a){var o=e.pingCache;if(o===null){o=e.pingCache=new lE;var n=new Set;o.set(t,n)}else n=o.get(t),n===void 0&&(n=new Set,o.set(t,n));n.has(a)||(zx=!0,n.add(a),o=jA.bind(null,e,t,a),Dn&&Kd(e,a),t.then(o,o))}function jA(e,t,a){var o=e.pingCache;o!==null&&o.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,(a&127)!==0?0>On&&(sl=On=Xa(),xc=Nm("Promise Resolved"),ll=qm):(a&4194048)!==0&&0>Mr&&(Bn=Mr=Xa(),Sc=Nm("Promise Resolved"),vx=qm),Ik()&&K.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
157
+ %s`,a)}}function sv(e,t,a){var o=e.pingCache;if(o===null){o=e.pingCache=new lE;var n=new Set;o.set(t,n)}else n=o.get(t),n===void 0&&(n=new Set,o.set(t,n));n.has(a)||(Px=!0,n.add(a),o=jA.bind(null,e,t,a),Dn&&Kd(e,a),t.then(o,o))}function jA(e,t,a){var o=e.pingCache;o!==null&&o.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,(a&127)!==0?0>On&&(sl=On=Xa(),xc=Nm("Promise Resolved"),ll=qm):(a&4194048)!==0&&0>Mr&&(Bn=Mr=Xa(),Sc=Nm("Promise Resolved"),vx=qm),Ik()&&K.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
158
158
 
159
159
  When testing, code that resolves suspended data should be wrapped into act(...):
160
160
 
@@ -163,7 +163,7 @@ act(() => {
163
163
  });
164
164
  /* assert on the output */
165
165
 
166
- This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),sa===e&&(gt&a)===a&&(Ta===cl||Ta===Km&&(gt&62914560)===gt&&so()-eh<VC?(Ut&ao)===uo&&iu(e,0):Px|=a,vi===gt&&(vi=0)),Cn(e)}function jk(e,t){t===0&&(t=Xi()),e=Co(e,t),e!==null&&(Os(e,t),Cn(e))}function $A(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),jk(e,a)}function XA(e,t){var a=0;switch(e.tag){case 31:case 13:var{stateNode:o,memoizedState:n}=e;n!==null&&(a=n.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}o!==null&&o.delete(t),jk(e,a)}function lv(e,t,a){if((t.subtreeFlags&67117056)!==0)for(t=t.child;t!==null;){var o=e,n=t,s=n.type===hm;s=a||s,n.tag!==22?n.flags&67108864?s&&H(n,$k,o,n):lv(o,n,s):n.memoizedState===null&&(s&&n.flags&8192?H(n,$k,o,n):n.subtreeFlags&67108864&&H(n,lv,o,n,s)),t=t.sibling}}function $k(e,t){Wt(!0);try{vk(t),Ck(t),xk(e,t.alternate,t,!1),Sk(e,t,0,null,!1,0)}finally{Wt(!1)}}function Xk(e){var t=!0;e.current.mode&(Io|Xr)||(t=!1),lv(e,e.current,t)}function Yk(e){if((Ut&ao)===uo){var t=e.tag;if(t===3||t===1||t===0||t===11||t===14||t===15){if(t=V(e)||"ReactComponent",nh!==null){if(nh.has(t))return;nh.add(t)}else nh=new Set([t]);H(e,function(){console.error("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously tries to update the component. Move this work to useEffect instead.")})}}}function Kd(e,t){Dn&&e.memoizedUpdaters.forEach(function(a){Sd(e,a,t)})}function YA(e,t){var a=K.actQueue;return a!==null?(a.push(t),dE):Fv(e,t)}function KA(e){Ik()&&K.actQueue===null&&H(e,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
166
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),sa===e&&(gt&a)===a&&(Ta===cl||Ta===Km&&(gt&62914560)===gt&&so()-eh<VC?(Ut&ao)===uo&&iu(e,0):zx|=a,vi===gt&&(vi=0)),Cn(e)}function jk(e,t){t===0&&(t=Xi()),e=Co(e,t),e!==null&&(Os(e,t),Cn(e))}function $A(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),jk(e,a)}function XA(e,t){var a=0;switch(e.tag){case 31:case 13:var{stateNode:o,memoizedState:n}=e;n!==null&&(a=n.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}o!==null&&o.delete(t),jk(e,a)}function lv(e,t,a){if((t.subtreeFlags&67117056)!==0)for(t=t.child;t!==null;){var o=e,n=t,s=n.type===hm;s=a||s,n.tag!==22?n.flags&67108864?s&&H(n,$k,o,n):lv(o,n,s):n.memoizedState===null&&(s&&n.flags&8192?H(n,$k,o,n):n.subtreeFlags&67108864&&H(n,lv,o,n,s)),t=t.sibling}}function $k(e,t){Wt(!0);try{vk(t),Ck(t),xk(e,t.alternate,t,!1),Sk(e,t,0,null,!1,0)}finally{Wt(!1)}}function Xk(e){var t=!0;e.current.mode&(Io|Xr)||(t=!1),lv(e,e.current,t)}function Yk(e){if((Ut&ao)===uo){var t=e.tag;if(t===3||t===1||t===0||t===11||t===14||t===15){if(t=V(e)||"ReactComponent",nh!==null){if(nh.has(t))return;nh.add(t)}else nh=new Set([t]);H(e,function(){console.error("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously tries to update the component. Move this work to useEffect instead.")})}}}function Kd(e,t){Dn&&e.memoizedUpdaters.forEach(function(a){Sd(e,a,t)})}function YA(e,t){var a=K.actQueue;return a!==null?(a.push(t),dE):Fv(e,t)}function KA(e){Ik()&&K.actQueue===null&&H(e,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
167
167
 
168
168
  When testing, code that causes React state updates should be wrapped into act(...):
169
169
 
@@ -172,16 +172,16 @@ act(() => {
172
172
  });
173
173
  /* assert on the output */
174
174
 
175
- This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,V(e))})}function Cn(e){e!==$u&&e.next===null&&($u===null?sh=$u=e:$u=$u.next=e),lh=!0,K.actQueue!==null?Xx||(Xx=!0,Zk()):$x||($x=!0,Zk())}function Qd(e,t){if(!Yx&&lh){Yx=!0;do{var a=!1;for(var o=sh;o!==null;){if(!t)if(e!==0){var n=o.pendingLanes;if(n===0)var s=0;else{var c=o.suspendedLanes,p=o.pingedLanes;s=(1<<31-Eo(42|e)+1)-1,s&=n&~(c&~p),s=s&201326741?s&201326741|1:s?s|2:0}s!==0&&(a=!0,Wk(o,s))}else s=gt,s=ga(o,o===sa?s:0,o.cancelPendingCommit!==null||o.timeoutHandle!==Li),(s&3)===0||ho(o,s)||(a=!0,Wk(o,s));o=o.next}}while(a);Yx=!1}}function QA(){Yc=window.event,iv()}function iv(){lh=Xx=$x=!1;var e=0;vl!==0&&oM()&&(e=vl);for(var t=so(),a=null,o=sh;o!==null;){var n=o.next,s=Kk(o,t);if(s===0)o.next=null,a===null?sh=n:a.next=n,n===null&&($u=a);else if(a=o,e!==0||(s&3)!==0)lh=!0;o=n}Za!==gl&&Za!==oh||Qd(e,!1),vl!==0&&(vl=0)}function Kk(e,t){for(var{suspendedLanes:a,pingedLanes:o,expirationTimes:n}=e,s=e.pendingLanes&-62914561;0<s;){var c=31-Eo(s),p=1<<c,x=n[c];if(x===-1){if((p&a)===0||(p&o)!==0)n[c]=zl(p,t)}else x<=t&&(e.expiredLanes|=p);s&=~p}if(t=sa,a=gt,a=ga(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==Li),o=e.callbackNode,a===0||e===t&&(ta===gi||ta===yi)||e.cancelPendingCommit!==null)return o!==null&&uv(o),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||ho(e,a)){if(t=a&-a,t!==e.callbackPriority||K.actQueue!==null&&o!==Kx)uv(o);else return t;switch(w(a)){case ur:case $r:a=Vv;break;case En:a=hu;break;case Sm:a=jv;break;default:a=hu}return o=Qk.bind(null,e),K.actQueue!==null?(K.actQueue.push(o),a=Kx):a=Fv(a,o),e.callbackPriority=t,e.callbackNode=a,t}return o!==null&&uv(o),e.callbackPriority=2,e.callbackNode=null,2}function Qk(e,t){if(Um=Pm=!1,Yc=window.event,Za!==gl&&Za!==oh)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Zr===ah&&(Zr=_x),Yd()&&e.callbackNode!==a)return null;var o=gt;if(o=ga(e,e===sa?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==Li),o===0)return null;return Ak(e,o,t),Kk(e,so()),e.callbackNode!=null&&e.callbackNode===a?Qk.bind(null,e):null}function Wk(e,t){if(Yd())return null;Pm=Um,Um=!1,Ak(e,t,!0)}function uv(e){e!==Kx&&e!==null&&UM(e)}function Zk(){K.actQueue!==null&&K.actQueue.push(function(){return iv(),null}),bE(function(){(Ut&(ao|pr))!==uo?Fv(Gv,QA):iv()})}function dv(){if(vl===0){var e=ui;e===0&&(e=vm,vm<<=1,(vm&261888)===0&&(vm=256)),vl=e}return vl}function Jk(e){if(e==null||typeof e==="symbol"||typeof e==="boolean")return null;if(typeof e==="function")return e;return ke(e,"action"),Id(""+e)}function eL(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 WA(e,t,a,o,n){if(t==="submit"&&a&&a.stateNode===n){var s=Jk((n[No]||null).action),c=o.submitter;c&&(t=(t=c[No]||null)?Jk(t.formAction):c.getAttribute("formAction"),t!==null&&(s=t,c=null));var p=new Tm("action","action",null,o,n);e.push({event:p,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(vl!==0){var x=c?eL(n,c):new FormData(n),k={pending:!0,data:x,method:n.method,action:s};Object.freeze(k),My(a,k,null,x)}}else typeof s==="function"&&(p.preventDefault(),x=c?eL(n,c):new FormData(n),k={pending:!0,data:x,method:n.method,action:s},Object.freeze(k),My(a,k,s,x))},currentTarget:n}]})}}function rm(e,t,a){e.currentTarget=a;try{t(e)}catch(o){lx(o)}e.currentTarget=null}function tL(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var o=e[a];e:{var n=void 0,s=o.event;if(o=o.listeners,t)for(var c=o.length-1;0<=c;c--){var p=o[c],x=p.instance,k=p.currentTarget;if(p=p.listener,x!==n&&s.isPropagationStopped())break e;x!==null?H(x,rm,s,p,k):rm(s,p,k),n=x}else for(c=0;c<o.length;c++){if(p=o[c],x=p.instance,k=p.currentTarget,p=p.listener,x!==n&&s.isPropagationStopped())break e;x!==null?H(x,rm,s,p,k):rm(s,p,k),n=x}}}}function Et(e,t){Qx.has(e)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var a=t[$v];a===void 0&&(a=t[$v]=new Set);var o=e+"__bubble";a.has(o)||(aL(t,e,2,!1),a.add(o))}function cv(e,t,a){Qx.has(e)&&!t&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',e);var o=0;t&&(o|=4),aL(a,e,o,t)}function fv(e){if(!e[ih]){e[ih]=!0,ZL.forEach(function(a){a!=="selectionchange"&&(Qx.has(a)||cv(a,!1,e),cv(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ih]||(t[ih]=!0,cv("selectionchange",!1,t))}}function aL(e,t,a,o){switch(OL(t)){case ur:var n=DM;break;case $r:n=EM;break;default:n=Rv}a=n.bind(null,t,a,e),n=void 0,!Wv||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),o?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 pv(e,t,a,o,n){var s=o;if((t&1)===0&&(t&2)===0&&o!==null)e:for(;;){if(o===null)return;var c=o.tag;if(c===3||c===4){var p=o.stateNode.containerInfo;if(p===n)break;if(c===4)for(c=o.return;c!==null;){var x=c.tag;if((x===3||x===4)&&c.stateNode.containerInfo===n)return;c=c.return}for(;p!==null;){if(c=Ae(p),c===null)return;if(x=c.tag,x===5||x===6||x===26||x===27){o=s=c;continue e}p=p.parentNode}}o=o.return}p0(function(){var k=s,q=Og(a),B=[];e:{var D=Ow.get(e);if(D!==void 0){var F=Tm,me=e;switch(e){case"keypress":if(fp(a)===0)break e;case"keydown":case"keyup":F=TD;break;case"focusin":me="focus",F=tx;break;case"focusout":me="blur",F=tx;break;case"beforeblur":case"afterblur":F=tx;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":F=Sw;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":F=mD;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":F=AD;break;case Dw:case Ew:case Nw:F=yD;break;case qw:F=DD;break;case"scroll":case"scrollend":F=fD;break;case"wheel":F=ND;break;case"copy":case"cut":case"paste":F=xD;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":F=Lw;break;case"toggle":case"beforetoggle":F=OD}var xe=(t&4)!==0,fa=!xe&&(e==="scroll"||e==="scrollend"),Nt=xe?D!==null?D+"Capture":null:D;xe=[];for(var M=k,E;M!==null;){var N=M;if(E=N.stateNode,N=N.tag,N!==5&&N!==26&&N!==27||E===null||Nt===null||(N=Rd(M,Nt),N!=null&&xe.push(Wd(M,N,E))),fa)break;M=M.return}0<xe.length&&(D=new F(D,me,null,a,q),B.push({event:D,listeners:xe}))}}if((t&7)===0){e:{if(D=e==="mouseover"||e==="pointerover",F=e==="mouseout"||e==="pointerout",D&&a!==ic&&(me=a.relatedTarget||a.fromElement)&&(Ae(me)||me[Js]))break e;if(F||D){if(D=q.window===q?q:(D=q.ownerDocument)?D.defaultView||D.parentWindow:window,F){if(me=a.relatedTarget||a.toElement,F=k,me=me?Ae(me):null,me!==null&&(fa=O(me),xe=me.tag,me!==fa||xe!==5&&xe!==27&&xe!==6))me=null}else F=null,me=k;if(F!==me){if(xe=Sw,N="onMouseLeave",Nt="onMouseEnter",M="mouse",e==="pointerout"||e==="pointerover")xe=Lw,N="onPointerLeave",Nt="onPointerEnter",M="pointer";if(fa=F==null?D:nt(F),E=me==null?D:nt(me),D=new xe(N,M+"leave",F,a,q),D.target=fa,D.relatedTarget=E,N=null,Ae(q)===k&&(xe=new xe(Nt,M+"enter",me,a,q),xe.target=E,xe.relatedTarget=fa,N=xe),fa=N,F&&me)t:{xe=ZA,Nt=F,M=me,E=0;for(N=Nt;N;N=xe(N))E++;N=0;for(var J=M;J;J=xe(J))N++;for(;0<E-N;)Nt=xe(Nt),E--;for(;0<N-E;)M=xe(M),N--;for(;E--;){if(Nt===M||M!==null&&Nt===M.alternate){xe=Nt;break t}Nt=xe(Nt),M=xe(M)}xe=null}else xe=null;F!==null&&oL(B,D,F,xe,!1),me!==null&&fa!==null&&oL(B,fa,me,xe,!0)}}}e:{if(D=k?nt(k):window,F=D.nodeName&&D.nodeName.toLowerCase(),F==="select"||F==="input"&&D.type==="file")var ve=b0;else if(v0(D))if(Aw)ve=dA;else{ve=iA;var ot=lA}else F=D.nodeName,!F||F.toLowerCase()!=="input"||D.type!=="checkbox"&&D.type!=="radio"?k&&Td(k.elementType)&&(ve=b0):ve=uA;if(ve&&(ve=ve(e,k))){x0(B,ve,a,q);break e}ot&&ot(e,D,k),e==="focusout"&&k&&D.type==="number"&&k.memoizedProps.value!=null&&Ag(D,"number",D.value)}switch(ot=k?nt(k):window,e){case"focusin":if(v0(ot)||ot.contentEditable==="true")Lu=ot,ox=k,hc=null;break;case"focusout":hc=ox=Lu=null;break;case"mousedown":rx=!0;break;case"contextmenu":case"mouseup":case"dragend":rx=!1,I0(B,a,q);break;case"selectionchange":if(UD)break;case"keydown":case"keyup":I0(B,a,q)}var Be;if(ax)e:{switch(e){case"compositionstart":var Me="onCompositionStart";break e;case"compositionend":Me="onCompositionEnd";break e;case"compositionupdate":Me="onCompositionUpdate";break e}Me=void 0}else ku?g0(e,a)&&(Me="onCompositionEnd"):e==="keydown"&&a.keyCode===ww&&(Me="onCompositionStart");if(Me&&(Cw&&a.locale!=="ko"&&(ku||Me!=="onCompositionStart"?Me==="onCompositionEnd"&&ku&&(Be=m0()):(el=q,Zv=("value"in el)?el.value:el.textContent,ku=!0)),ot=nm(k,Me),0<ot.length&&(Me=new kw(Me,e,null,a,q),B.push({event:Me,listeners:ot}),Be?Me.data=Be:(Be=y0(a),Be!==null&&(Me.data=Be)))),Be=zD?oA(e,a):rA(e,a))Me=nm(k,"onBeforeInput"),0<Me.length&&(ot=new SD("onBeforeInput","beforeinput",null,a,q),B.push({event:ot,listeners:Me}),ot.data=Be);WA(B,e,k,a,q)}tL(B,t)})}function Wd(e,t,a){return{instance:e,listener:t,currentTarget:a}}function nm(e,t){for(var a=t+"Capture",o=[];e!==null;){var n=e,s=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||s===null||(n=Rd(e,a),n!=null&&o.unshift(Wd(e,n,s)),n=Rd(e,t),n!=null&&o.push(Wd(e,n,s))),e.tag===3)return o;e=e.return}return[]}function ZA(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e?e:null}function oL(e,t,a,o,n){for(var s=t._reactName,c=[];a!==null&&a!==o;){var p=a,x=p.alternate,k=p.stateNode;if(p=p.tag,x!==null&&x===o)break;p!==5&&p!==26&&p!==27||k===null||(x=k,n?(k=Rd(a,s),k!=null&&c.unshift(Wd(a,k,x))):n||(k=Rd(a,s),k!=null&&c.push(Wd(a,k,x)))),a=a.return}c.length!==0&&e.push({event:t,listeners:c})}function mv(e,t){JR(e,t),e!=="input"&&e!=="textarea"&&e!=="select"||t==null||t.value!==null||xw||(xw=!0,e==="select"&&t.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",e):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e));var a={registrationNameDependencies:oi,possibleRegistrationNames:Xv};Td(e)||typeof t.is==="string"||tA(e,t,a),t.contentEditable&&!t.suppressContentEditableWarning&&t.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function no(e,t,a,o){t!==a&&(a=Ys(a),Ys(t)!==a&&(o[e]=t))}function JA(e,t,a){t.forEach(function(o){a[sL(o)]=o==="style"?gv(e):e.getAttribute(o)})}function Tn(e,t){t===!1?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",e,e,e):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)}function rL(e,t){return e=e.namespaceURI===Lm||e.namespaceURI===vu?e.ownerDocument.createElementNS(e.namespaceURI,e.tagName):e.ownerDocument.createElement(e.tagName),e.innerHTML=t,e.innerHTML}function Ys(e){return it(e)&&(console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",he(e)),ze(e)),(typeof e==="string"?e:""+e).replace(cE,`
176
- `).replace(fE,"")}function nL(e,t){return t=Ys(t),Ys(e)===t?!0:!1}function ra(e,t,a,o,n,s){switch(a){case"children":if(typeof o==="string")cp(o,t,!1),t==="body"||t==="textarea"&&o===""||Cd(e,o);else if(typeof o==="number"||typeof o==="bigint")cp(""+o,t,!1),t!=="body"&&Cd(e,""+o);break;case"className":ip(e,"class",o);break;case"tabIndex":ip(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":ip(e,a,o);break;case"style":d0(e,o,s);break;case"data":if(t!=="object"){ip(e,"data",o);break}case"src":case"href":if(o===""&&(t!=="a"||a!=="href")){a==="src"?console.error('An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',a,a):console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',a,a),e.removeAttribute(a);break}if(o==null||typeof o==="function"||typeof o==="symbol"||typeof o==="boolean"){e.removeAttribute(a);break}ke(o,a),o=Id(""+o),e.setAttribute(a,o);break;case"action":case"formAction":if(o!=null&&(t==="form"?a==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof o==="function"&&(n.encType==null&&n.method==null||ch||(ch=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),n.target==null||dh||(dh=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):t==="input"||t==="button"?a==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):t!=="input"||n.type==="submit"||n.type==="image"||uh?t!=="button"||n.type==null||n.type==="submit"||uh?typeof o==="function"&&(n.name==null||r1||(r1=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),n.formEncType==null&&n.formMethod==null||ch||(ch=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),n.formTarget==null||dh||(dh=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))):(uh=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(uh=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):a==="action"?console.error("You can only pass the action prop to <form>."):console.error("You can only pass the formAction prop to <input> or <button>.")),typeof o==="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 s==="function"&&(a==="formAction"?(t!=="input"&&ra(e,t,"name",n.name,n,null),ra(e,t,"formEncType",n.formEncType,n,null),ra(e,t,"formMethod",n.formMethod,n,null),ra(e,t,"formTarget",n.formTarget,n,null)):(ra(e,t,"encType",n.encType,n,null),ra(e,t,"method",n.method,n,null),ra(e,t,"target",n.target,n,null)));if(o==null||typeof o==="symbol"||typeof o==="boolean"){e.removeAttribute(a);break}ke(o,a),o=Id(""+o),e.setAttribute(a,o);break;case"onClick":o!=null&&(typeof o!=="function"&&Tn(a,o),e.onclick=Jn);break;case"onScroll":o!=null&&(typeof o!=="function"&&Tn(a,o),Et("scroll",e));break;case"onScrollEnd":o!=null&&(typeof o!=="function"&&Tn(a,o),Et("scrollend",e));break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!=="object"||!("__html"in o))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(a=o.__html,a!=null){if(n.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=a}}break;case"multiple":e.multiple=o&&typeof o!=="function"&&typeof o!=="symbol";break;case"muted":e.muted=o&&typeof o!=="function"&&typeof o!=="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o==="function"||typeof o==="boolean"||typeof o==="symbol"){e.removeAttribute("xlink:href");break}ke(o,a),a=Id(""+o),e.setAttributeNS(bi,"xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!=="function"&&typeof o!=="symbol"?(ke(o,a),e.setAttribute(a,""+o)):e.removeAttribute(a);break;case"inert":o!==""||fh[a]||(fh[a]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",a));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":o&&typeof o!=="function"&&typeof o!=="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":o===!0?e.setAttribute(a,""):o!==!1&&o!=null&&typeof o!=="function"&&typeof o!=="symbol"?(ke(o,a),e.setAttribute(a,o)):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!=="function"&&typeof o!=="symbol"&&!isNaN(o)&&1<=o?(ke(o,a),e.setAttribute(a,o)):e.removeAttribute(a);break;case"rowSpan":case"start":o==null||typeof o==="function"||typeof o==="symbol"||isNaN(o)?e.removeAttribute(a):(ke(o,a),e.setAttribute(a,o));break;case"popover":Et("beforetoggle",e),Et("toggle",e),lp(e,"popover",o);break;case"xlinkActuate":Zn(e,bi,"xlink:actuate",o);break;case"xlinkArcrole":Zn(e,bi,"xlink:arcrole",o);break;case"xlinkRole":Zn(e,bi,"xlink:role",o);break;case"xlinkShow":Zn(e,bi,"xlink:show",o);break;case"xlinkTitle":Zn(e,bi,"xlink:title",o);break;case"xlinkType":Zn(e,bi,"xlink:type",o);break;case"xmlBase":Zn(e,Wx,"xml:base",o);break;case"xmlLang":Zn(e,Wx,"xml:lang",o);break;case"xmlSpace":Zn(e,Wx,"xml:space",o);break;case"is":s!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),lp(e,"is",o);break;case"innerText":case"textContent":break;case"popoverTarget":n1||o==null||typeof o!=="object"||(n1=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",o));default:!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N"?(a=c0(a),lp(e,a,o)):oi.hasOwnProperty(a)&&o!=null&&typeof o!=="function"&&Tn(a,o)}}function hv(e,t,a,o,n,s){switch(a){case"style":d0(e,o,s);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!=="object"||!("__html"in o))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(a=o.__html,a!=null){if(n.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=a}}break;case"children":typeof o==="string"?Cd(e,o):(typeof o==="number"||typeof o==="bigint")&&Cd(e,""+o);break;case"onScroll":o!=null&&(typeof o!=="function"&&Tn(a,o),Et("scroll",e));break;case"onScrollEnd":o!=null&&(typeof o!=="function"&&Tn(a,o),Et("scrollend",e));break;case"onClick":o!=null&&(typeof o!=="function"&&Tn(a,o),e.onclick=Jn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(oi.hasOwnProperty(a))o!=null&&typeof o!=="function"&&Tn(a,o);else e:{if(a[0]==="o"&&a[1]==="n"&&(n=a.endsWith("Capture"),t=a.slice(2,n?a.length-7:void 0),s=e[No]||null,s=s!=null?s[a]:null,typeof s==="function"&&e.removeEventListener(t,s,n),typeof o==="function")){typeof s!=="function"&&s!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,o,n);break e}a in e?e[a]=o:o===!0?e.setAttribute(a,""):lp(e,a,o)}}}function vo(e,t,a){switch(mv(t,a),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Et("error",e),Et("load",e);var o=!1,n=!1,s;for(s in a)if(a.hasOwnProperty(s)){var c=a[s];if(c!=null)switch(s){case"src":o=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:ra(e,t,s,c,a,null)}}n&&ra(e,t,"srcSet",a.srcSet,a,null),o&&ra(e,t,"src",a.src,a,null);return;case"input":zs("input",a),Et("invalid",e);var p=s=c=n=null,x=null,k=null;for(o in a)if(a.hasOwnProperty(o)){var q=a[o];if(q!=null)switch(o){case"name":n=q;break;case"type":c=q;break;case"checked":x=q;break;case"defaultChecked":k=q;break;case"value":s=q;break;case"defaultValue":p=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:ra(e,t,o,q,a,null)}}Yb(e,a),Kb(e,s,p,x,k,c,n,!1);return;case"select":zs("select",a),Et("invalid",e),o=c=s=null;for(n in a)if(a.hasOwnProperty(n)&&(p=a[n],p!=null))switch(n){case"value":s=p;break;case"defaultValue":c=p;break;case"multiple":o=p;default:ra(e,t,n,p,a,null)}Zb(e,a),t=s,a=c,e.multiple=!!o,t!=null?Ki(e,!!o,t,!1):a!=null&&Ki(e,!!o,a,!0);return;case"textarea":zs("textarea",a),Et("invalid",e),s=n=o=null;for(c in a)if(a.hasOwnProperty(c)&&(p=a[c],p!=null))switch(c){case"value":o=p;break;case"defaultValue":n=p;break;case"children":s=p;break;case"dangerouslySetInnerHTML":if(p!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:ra(e,t,c,p,a,null)}Jb(e,a),t0(e,o,n,s);return;case"option":Qb(e,a);for(x in a)if(a.hasOwnProperty(x)&&(o=a[x],o!=null))switch(x){case"selected":e.selected=o&&typeof o!=="function"&&typeof o!=="symbol";break;default:ra(e,t,x,o,a,null)}return;case"dialog":Et("beforetoggle",e),Et("toggle",e),Et("cancel",e),Et("close",e);break;case"iframe":case"object":Et("load",e);break;case"video":case"audio":for(o=0;o<jc.length;o++)Et(jc[o],e);break;case"image":Et("error",e),Et("load",e);break;case"details":Et("toggle",e);break;case"embed":case"source":case"link":Et("error",e),Et("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(k in a)if(a.hasOwnProperty(k)&&(o=a[k],o!=null))switch(k){case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:ra(e,t,k,o,a,null)}return;default:if(Td(t)){for(q in a)a.hasOwnProperty(q)&&(o=a[q],o!==void 0&&hv(e,t,q,o,a,void 0));return}}for(p in a)a.hasOwnProperty(p)&&(o=a[p],o!=null&&ra(e,t,p,o,a,null))}function eM(e,t,a,o){switch(mv(t,o),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,s=null,c=null,p=null,x=null,k=null,q=null;for(F in a){var B=a[F];if(a.hasOwnProperty(F)&&B!=null)switch(F){case"checked":break;case"value":break;case"defaultValue":x=B;default:o.hasOwnProperty(F)||ra(e,t,F,null,o,B)}}for(var D in o){var F=o[D];if(B=a[D],o.hasOwnProperty(D)&&(F!=null||B!=null))switch(D){case"type":s=F;break;case"name":n=F;break;case"checked":k=F;break;case"defaultChecked":q=F;break;case"value":c=F;break;case"defaultValue":p=F;break;case"children":case"dangerouslySetInnerHTML":if(F!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:F!==B&&ra(e,t,D,F,o,B)}}t=a.type==="checkbox"||a.type==="radio"?a.checked!=null:a.value!=null,o=o.type==="checkbox"||o.type==="radio"?o.checked!=null:o.value!=null,t||!o||o1||(console.error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),o1=!0),!t||o||a1||(console.error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),a1=!0),Rg(e,c,p,x,k,q,s,n);return;case"select":F=c=p=D=null;for(s in a)if(x=a[s],a.hasOwnProperty(s)&&x!=null)switch(s){case"value":break;case"multiple":F=x;default:o.hasOwnProperty(s)||ra(e,t,s,null,o,x)}for(n in o)if(s=o[n],x=a[n],o.hasOwnProperty(n)&&(s!=null||x!=null))switch(n){case"value":D=s;break;case"defaultValue":p=s;break;case"multiple":c=s;default:s!==x&&ra(e,t,n,s,o,x)}o=p,t=c,a=F,D!=null?Ki(e,!!t,D,!1):!!a!==!!t&&(o!=null?Ki(e,!!t,o,!0):Ki(e,!!t,t?[]:"",!1));return;case"textarea":F=D=null;for(p in a)if(n=a[p],a.hasOwnProperty(p)&&n!=null&&!o.hasOwnProperty(p))switch(p){case"value":break;case"children":break;default:ra(e,t,p,null,o,n)}for(c in o)if(n=o[c],s=a[c],o.hasOwnProperty(c)&&(n!=null||s!=null))switch(c){case"value":D=n;break;case"defaultValue":F=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:n!==s&&ra(e,t,c,n,o,s)}e0(e,D,F);return;case"option":for(var me in a)if(D=a[me],a.hasOwnProperty(me)&&D!=null&&!o.hasOwnProperty(me))switch(me){case"selected":e.selected=!1;break;default:ra(e,t,me,null,o,D)}for(x in o)if(D=o[x],F=a[x],o.hasOwnProperty(x)&&D!==F&&(D!=null||F!=null))switch(x){case"selected":e.selected=D&&typeof D!=="function"&&typeof D!=="symbol";break;default:ra(e,t,x,D,o,F)}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 xe in a)D=a[xe],a.hasOwnProperty(xe)&&D!=null&&!o.hasOwnProperty(xe)&&ra(e,t,xe,null,o,D);for(k in o)if(D=o[k],F=a[k],o.hasOwnProperty(k)&&D!==F&&(D!=null||F!=null))switch(k){case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:ra(e,t,k,D,o,F)}return;default:if(Td(t)){for(var fa in a)D=a[fa],a.hasOwnProperty(fa)&&D!==void 0&&!o.hasOwnProperty(fa)&&hv(e,t,fa,void 0,o,D);for(q in o)D=o[q],F=a[q],!o.hasOwnProperty(q)||D===F||D===void 0&&F===void 0||hv(e,t,q,D,o,F);return}}for(var Nt in a)D=a[Nt],a.hasOwnProperty(Nt)&&D!=null&&!o.hasOwnProperty(Nt)&&ra(e,t,Nt,null,o,D);for(B in o)D=o[B],F=a[B],!o.hasOwnProperty(B)||D===F||D==null&&F==null||ra(e,t,B,D,o,F)}function sL(e){switch(e){case"class":return"className";case"for":return"htmlFor";default:return e}}function gv(e){var t={};e=e.style;for(var a=0;a<e.length;a++){var o=e[a];t[o]=e.getPropertyValue(o)}return t}function lL(e,t,a){if(t!=null&&typeof t!=="object")console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var o,n=o="",s;for(s in t)if(t.hasOwnProperty(s)){var c=t[s];c!=null&&typeof c!=="boolean"&&c!==""&&(s.indexOf("--")===0?(Qt(c,s),o+=n+s+":"+(""+c).trim()):typeof c!=="number"||c===0||yw.has(s)?(Qt(c,s),o+=n+s.replace(fw,"-$1").toLowerCase().replace(pw,"-ms-")+":"+(""+c).trim()):o+=n+s.replace(fw,"-$1").toLowerCase().replace(pw,"-ms-")+":"+c+"px",n=";")}o=o||null,t=e.getAttribute("style"),t!==o&&(o=Ys(o),Ys(t)!==o&&(a.style=gv(e)))}}function Lr(e,t,a,o,n,s){if(n.delete(a),e=e.getAttribute(a),e===null)switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":return}else if(o!=null)switch(typeof o){case"function":case"symbol":case"boolean":break;default:if(ke(o,t),e===""+o)return}no(t,e,o,s)}function iL(e,t,a,o,n,s){if(n.delete(a),e=e.getAttribute(a),e===null){switch(typeof o){case"function":case"symbol":return}if(!o)return}else switch(typeof o){case"function":case"symbol":break;default:if(o)return}no(t,e,o,s)}function yv(e,t,a,o,n,s){if(n.delete(a),e=e.getAttribute(a),e===null)switch(typeof o){case"undefined":case"function":case"symbol":return}else if(o!=null)switch(typeof o){case"function":case"symbol":break;default:if(ke(o,a),e===""+o)return}no(t,e,o,s)}function uL(e,t,a,o,n,s){if(n.delete(a),e=e.getAttribute(a),e===null)switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(o))return}else if(o!=null)switch(typeof o){case"function":case"symbol":case"boolean":break;default:if(!isNaN(o)&&(ke(o,t),e===""+o))return}no(t,e,o,s)}function vv(e,t,a,o,n,s){if(n.delete(a),e=e.getAttribute(a),e===null)switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":return}else if(o!=null)switch(typeof o){case"function":case"symbol":case"boolean":break;default:if(ke(o,t),a=Id(""+o),e===a)return}no(t,e,o,s)}function dL(e,t,a,o){for(var n={},s=new Set,c=e.attributes,p=0;p<c.length;p++)switch(c[p].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:s.add(c[p].name)}if(Td(t)){for(var x in a)if(a.hasOwnProperty(x)){var k=a[x];if(k!=null){if(oi.hasOwnProperty(x))typeof k!=="function"&&Tn(x,k);else if(a.suppressHydrationWarning!==!0)switch(x){case"children":typeof k!=="string"&&typeof k!=="number"||no("children",e.textContent,k,n);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":c=e.innerHTML,k=k?k.__html:void 0,k!=null&&(k=rL(e,k),no(x,c,k,n));continue;case"style":s.delete(x),lL(e,k,n);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":s.delete(x.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",x);continue;case"className":s.delete("class"),c=jb(e,"class",k),no("className",c,k,n);continue;default:o.context===Ss&&t!=="svg"&&t!=="math"?s.delete(x.toLowerCase()):s.delete(x),c=jb(e,x,k),no(x,c,k,n)}}}}else for(k in a)if(a.hasOwnProperty(k)&&(x=a[k],x!=null)){if(oi.hasOwnProperty(k))typeof x!=="function"&&Tn(k,x);else if(a.suppressHydrationWarning!==!0)switch(k){case"children":typeof x!=="string"&&typeof x!=="number"||no("children",e.textContent,x,n);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":c=e.innerHTML,x=x?x.__html:void 0,x!=null&&(x=rL(e,x),c!==x&&(n[k]={__html:c}));continue;case"className":Lr(e,k,"class",x,s,n);continue;case"tabIndex":Lr(e,k,"tabindex",x,s,n);continue;case"style":s.delete(k),lL(e,x,n);continue;case"multiple":s.delete(k),no(k,e.multiple,x,n);continue;case"muted":s.delete(k),no(k,e.muted,x,n);continue;case"autoFocus":s.delete("autofocus"),no(k,e.autofocus,x,n);continue;case"data":if(t!=="object"){s.delete(k),c=e.getAttribute("data"),no(k,c,x,n);continue}case"src":case"href":if(!(x!==""||t==="a"&&k==="href"||t==="object"&&k==="data")){k==="src"?console.error('An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',k,k):console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',k,k);continue}vv(e,k,k,x,s,n);continue;case"action":case"formAction":if(c=e.getAttribute(k),typeof x==="function"){s.delete(k.toLowerCase()),k==="formAction"?(s.delete("name"),s.delete("formenctype"),s.delete("formmethod"),s.delete("formtarget")):(s.delete("enctype"),s.delete("method"),s.delete("target"));continue}else if(c===pE){s.delete(k.toLowerCase()),no(k,"function",x,n);continue}vv(e,k,k.toLowerCase(),x,s,n);continue;case"xlinkHref":vv(e,k,"xlink:href",x,s,n);continue;case"contentEditable":yv(e,k,"contenteditable",x,s,n);continue;case"spellCheck":yv(e,k,"spellcheck",x,s,n);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":yv(e,k,k,x,s,n);continue;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":iL(e,k,k.toLowerCase(),x,s,n);continue;case"capture":case"download":e:{p=e;var q=c=k,B=n;if(s.delete(q),p=p.getAttribute(q),p===null)switch(typeof x){case"undefined":case"function":case"symbol":break e;default:if(x===!1)break e}else if(x!=null)switch(typeof x){case"function":case"symbol":break;case"boolean":if(x===!0&&p==="")break e;break;default:if(ke(x,c),p===""+x)break e}no(c,p,x,B)}continue;case"cols":case"rows":case"size":case"span":e:{if(p=e,q=c=k,B=n,s.delete(q),p=p.getAttribute(q),p===null)switch(typeof x){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(x)||1>x)break e}else if(x!=null)switch(typeof x){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(x)||1>x)&&(ke(x,c),p===""+x))break e}no(c,p,x,B)}continue;case"rowSpan":uL(e,k,"rowspan",x,s,n);continue;case"start":uL(e,k,k,x,s,n);continue;case"xHeight":Lr(e,k,"x-height",x,s,n);continue;case"xlinkActuate":Lr(e,k,"xlink:actuate",x,s,n);continue;case"xlinkArcrole":Lr(e,k,"xlink:arcrole",x,s,n);continue;case"xlinkRole":Lr(e,k,"xlink:role",x,s,n);continue;case"xlinkShow":Lr(e,k,"xlink:show",x,s,n);continue;case"xlinkTitle":Lr(e,k,"xlink:title",x,s,n);continue;case"xlinkType":Lr(e,k,"xlink:type",x,s,n);continue;case"xmlBase":Lr(e,k,"xml:base",x,s,n);continue;case"xmlLang":Lr(e,k,"xml:lang",x,s,n);continue;case"xmlSpace":Lr(e,k,"xml:space",x,s,n);continue;case"inert":x!==""||fh[k]||(fh[k]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",k)),iL(e,k,k,x,s,n);continue;default:if(!(2<k.length)||k[0]!=="o"&&k[0]!=="O"||k[1]!=="n"&&k[1]!=="N"){p=c0(k),c=!1,o.context===Ss&&t!=="svg"&&t!=="math"?s.delete(p.toLowerCase()):(q=k.toLowerCase(),q=wm.hasOwnProperty(q)?wm[q]||null:null,q!==null&&q!==k&&(c=!0,s.delete(q)),s.delete(p));e:if(q=e,B=p,p=x,kd(B))if(q.hasAttribute(B))q=q.getAttribute(B),ke(p,B),p=q===""+p?p:q;else{switch(typeof p){case"function":case"symbol":break e;case"boolean":if(q=B.toLowerCase().slice(0,5),q!=="data-"&&q!=="aria-")break e}p=p===void 0?void 0:null}else p=void 0;c||no(k,p,x,n)}}}return 0<s.size&&a.suppressHydrationWarning!==!0&&JA(e,s,n),Object.keys(n).length===0?null:n}function tM(e,t){switch(e.length){case 0:return"";case 1:return e[0];case 2:return e[0]+" "+t+" "+e[1];default:return e.slice(0,-1).join(", ")+", "+t+" "+e[e.length-1]}}function cL(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function aM(){if(typeof performance.getEntriesByType==="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),o=0;o<a.length;o++){var n=a[o],{transferSize:s,initiatorType:c,duration:p}=n;if(s&&p&&cL(c)){c=0,p=n.responseEnd;for(o+=1;o<a.length;o++){var x=a[o],k=x.startTime;if(k>p)break;var q=x.transferSize,B=x.initiatorType;q&&cL(B)&&(x=x.responseEnd,c+=q*(x<p?1:(p-k)/(x-k)))}if(--o,t+=8*(s+c)/(n.duration/1000),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==="number")?e:5}function sm(e){return e.nodeType===9?e:e.ownerDocument}function fL(e){switch(e){case vu:return Yu;case Lm:return mh;default:return Ss}}function pL(e,t){if(e===Ss)switch(t){case"svg":return Yu;case"math":return mh;default:return Ss}return e===Yu&&t==="foreignObject"?Ss:e}function xv(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}function oM(){var e=window.event;if(e&&e.type==="popstate"){if(e===tb)return!1;return tb=e,!0}return tb=null,!1}function Zd(){var e=window.event;return e&&e!==Yc?e.type:null}function Jd(){var e=window.event;return e&&e!==Yc?e.timeStamp:-1.1}function rM(e){setTimeout(function(){throw e})}function nM(e,t,a){switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&e.focus();break;case"img":a.src?e.src=a.src:a.srcSet&&(e.srcset=a.srcSet)}}function sM(){}function lM(e,t,a,o){eM(e,t,a,o),e[No]=o}function mL(e){Cd(e,"")}function iM(e,t,a){e.nodeValue=a}function hL(e){if(!e.__reactWarnedAboutChildrenConflict){var t=e[No]||null;if(t!==null){var a=rt(e);a!==null&&(typeof t.children==="string"||typeof t.children==="number"?(e.__reactWarnedAboutChildrenConflict=!0,H(a,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "children" text content using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})):t.dangerouslySetInnerHTML!=null&&(e.__reactWarnedAboutChildrenConflict=!0,H(a,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "dangerouslySetInnerHTML" using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})))}}}function Ks(e){return e==="head"}function uM(e,t){e.removeChild(t)}function dM(e,t){(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e).removeChild(t)}function gL(e,t){var a=t,o=0;do{var n=a.nextSibling;if(e.removeChild(a),n&&n.nodeType===8)if(a=n.data,a===Xc||a===ph){if(o===0){e.removeChild(n),fu(t);return}o--}else if(a===$c||a===xl||a===ki||a===Xu||a===Si)o++;else if(a===hE)ec(e.ownerDocument.documentElement);else if(a===yE){a=e.ownerDocument.head,ec(a);for(var s=a.firstChild;s;){var c=s.nextSibling,p=s.nodeName;s[lc]||p==="SCRIPT"||p==="STYLE"||p==="LINK"&&s.rel.toLowerCase()==="stylesheet"||a.removeChild(s),s=c}}else a===gE&&ec(e.ownerDocument.body);a=n}while(a);fu(t)}function yL(e,t){var a=e;e=0;do{var o=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||""),o&&o.nodeType===8)if(a=o.data,a===Xc)if(e===0)break;else e--;else a!==$c&&a!==xl&&a!==ki&&a!==Xu||e++;a=o}while(a)}function cM(e){yL(e,!0)}function fM(e){e=e.style,typeof e.setProperty==="function"?e.setProperty("display","none","important"):e.display="none"}function pM(e){e.nodeValue=""}function mM(e){yL(e,!1)}function hM(e,t){t=t[vE],t=t!==void 0&&t!==null&&t.hasOwnProperty("display")?t.display:null,e.style.display=t==null||typeof t==="boolean"?"":(""+t).trim()}function gM(e,t){e.nodeValue=t}function bv(e){var t=e.firstChild;t&&t.nodeType===10&&(t=t.nextSibling);for(;t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":bv(a),ye(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function yM(e,t,a,o){for(;e.nodeType===1;){var n=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!o&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(!o)if(t==="input"&&e.type==="hidden"){ke(n.name,"name");var s=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===s)return e}else return e;else if(!e[lc])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(s=e.getAttribute("rel"),s==="stylesheet"&&e.hasAttribute("data-precedence"))break;else if(s!==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(s=e.getAttribute("src"),(s!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&s&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}if(e=sr(e.nextSibling),e===null)break}return null}function vM(e,t,a){if(t==="")return null;for(;e.nodeType!==3;){if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a)return null;if(e=sr(e.nextSibling),e===null)return null}return e}function vL(e,t){for(;e.nodeType!==8;){if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t)return null;if(e=sr(e.nextSibling),e===null)return null}return e}function Sv(e){return e.data===xl||e.data===ki}function kv(e){return e.data===Xu||e.data===xl&&e.ownerDocument.readyState!==l1}function xM(e,t){var a=e.ownerDocument;if(e.data===ki)e._reactRetry=t;else if(e.data!==xl||a.readyState!==l1)t();else{var o=function(){t(),a.removeEventListener("DOMContentLoaded",o)};a.addEventListener("DOMContentLoaded",o),e._reactRetry=o}}function sr(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===$c||t===Xu||t===xl||t===ki||t===Si||t===Zx||t===s1)break;if(t===Xc||t===ph)return null}}return e}function xL(e){if(e.nodeType===1){for(var t=e.nodeName.toLowerCase(),a={},o=e.attributes,n=0;n<o.length;n++){var s=o[n];a[sL(s.name)]=s.name.toLowerCase()==="style"?gv(e):s.value}return{type:t,props:a}}return e.nodeType===8?e.data===Si?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:e.nodeValue}function bL(e,t,a){return a===null||a[mE]!==!0?(e.nodeValue===t?e=null:(t=Ys(t),e=Ys(e.nodeValue)===t?null:e.nodeValue),e):null}function Lv(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a===Xc||a===ph){if(t===0)return sr(e.nextSibling);t--}else a!==$c&&a!==Xu&&a!==xl&&a!==ki&&a!==Si||t++}e=e.nextSibling}return null}function SL(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a===$c||a===Xu||a===xl||a===ki||a===Si){if(t===0)return e;t--}else a!==Xc&&a!==ph||t++}e=e.previousSibling}return null}function bM(e){fu(e)}function SM(e){fu(e)}function kM(e){fu(e)}function kL(e,t,a,o,n){switch(n&&qg(e,o.ancestorInfo),t=sm(a),e){case"html":if(e=t.documentElement,!e)throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"head":if(e=t.head,!e)throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"body":if(e=t.body,!e)throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return e;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function LM(e,t,a,o){if(!a[Js]&&rt(a)){var n=a.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",n,n,n)}switch(e){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(n=a.attributes;n.length;)a.removeAttributeNode(n[0]);vo(a,e,t),a[xo]=o,a[No]=t}function ec(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ye(e)}function lm(e){return typeof e.getRootNode==="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}function LL(e,t,a){var o=Ku;if(o&&typeof t==="string"&&t){var n=kr(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof a==="string"&&(n+='[crossorigin="'+a+'"]'),p1.has(n)||(p1.add(n),e={rel:e,crossOrigin:a,href:t},o.querySelector(n)===null&&(t=o.createElement("link"),vo(t,"link",e),Pe(t),o.head.appendChild(t)))}}function wL(e,t,a,o){var n=(n=Ws.current)?lm(n):null;if(!n)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence==="string"&&typeof a.href==="string"?(a=du(a.href),t=_t(n).hoistableStyles,o=t.get(a),o||(o={type:"style",instance:null,count:0,state:null},t.set(a,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href==="string"&&typeof a.precedence==="string"){e=du(a.href);var s=_t(n).hoistableStyles,c=s.get(e);if(!c&&(n=n.ownerDocument||n,c={type:"stylesheet",instance:null,count:0,state:{loading:wi,preload:null}},s.set(e,c),(s=n.querySelector(tc(e)))&&!s._p&&(c.instance=s,c.state.loading=Kc|qr),!Or.has(e))){var p={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy};Or.set(e,p),s||wM(n,e,p,c.state)}if(t&&o===null)throw a=`
175
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,V(e))})}function Cn(e){e!==$u&&e.next===null&&($u===null?sh=$u=e:$u=$u.next=e),lh=!0,K.actQueue!==null?Xx||(Xx=!0,Zk()):$x||($x=!0,Zk())}function Qd(e,t){if(!Yx&&lh){Yx=!0;do{var a=!1;for(var o=sh;o!==null;){if(!t)if(e!==0){var n=o.pendingLanes;if(n===0)var s=0;else{var c=o.suspendedLanes,p=o.pingedLanes;s=(1<<31-Eo(42|e)+1)-1,s&=n&~(c&~p),s=s&201326741?s&201326741|1:s?s|2:0}s!==0&&(a=!0,Wk(o,s))}else s=gt,s=ga(o,o===sa?s:0,o.cancelPendingCommit!==null||o.timeoutHandle!==Li),(s&3)===0||ho(o,s)||(a=!0,Wk(o,s));o=o.next}}while(a);Yx=!1}}function QA(){Yc=window.event,iv()}function iv(){lh=Xx=$x=!1;var e=0;vl!==0&&oM()&&(e=vl);for(var t=so(),a=null,o=sh;o!==null;){var n=o.next,s=Kk(o,t);if(s===0)o.next=null,a===null?sh=n:a.next=n,n===null&&($u=a);else if(a=o,e!==0||(s&3)!==0)lh=!0;o=n}Za!==gl&&Za!==oh||Qd(e,!1),vl!==0&&(vl=0)}function Kk(e,t){for(var{suspendedLanes:a,pingedLanes:o,expirationTimes:n}=e,s=e.pendingLanes&-62914561;0<s;){var c=31-Eo(s),p=1<<c,x=n[c];if(x===-1){if((p&a)===0||(p&o)!==0)n[c]=Pl(p,t)}else x<=t&&(e.expiredLanes|=p);s&=~p}if(t=sa,a=gt,a=ga(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==Li),o=e.callbackNode,a===0||e===t&&(ta===gi||ta===yi)||e.cancelPendingCommit!==null)return o!==null&&uv(o),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||ho(e,a)){if(t=a&-a,t!==e.callbackPriority||K.actQueue!==null&&o!==Kx)uv(o);else return t;switch(w(a)){case ur:case $r:a=Vv;break;case En:a=hu;break;case Sm:a=jv;break;default:a=hu}return o=Qk.bind(null,e),K.actQueue!==null?(K.actQueue.push(o),a=Kx):a=Fv(a,o),e.callbackPriority=t,e.callbackNode=a,t}return o!==null&&uv(o),e.callbackPriority=2,e.callbackNode=null,2}function Qk(e,t){if(Um=zm=!1,Yc=window.event,Za!==gl&&Za!==oh)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Zr===ah&&(Zr=_x),Yd()&&e.callbackNode!==a)return null;var o=gt;if(o=ga(e,e===sa?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==Li),o===0)return null;return Ak(e,o,t),Kk(e,so()),e.callbackNode!=null&&e.callbackNode===a?Qk.bind(null,e):null}function Wk(e,t){if(Yd())return null;zm=Um,Um=!1,Ak(e,t,!0)}function uv(e){e!==Kx&&e!==null&&UM(e)}function Zk(){K.actQueue!==null&&K.actQueue.push(function(){return iv(),null}),bE(function(){(Ut&(ao|pr))!==uo?Fv(Gv,QA):iv()})}function dv(){if(vl===0){var e=ui;e===0&&(e=vm,vm<<=1,(vm&261888)===0&&(vm=256)),vl=e}return vl}function Jk(e){if(e==null||typeof e==="symbol"||typeof e==="boolean")return null;if(typeof e==="function")return e;return ke(e,"action"),Id(""+e)}function eL(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 WA(e,t,a,o,n){if(t==="submit"&&a&&a.stateNode===n){var s=Jk((n[No]||null).action),c=o.submitter;c&&(t=(t=c[No]||null)?Jk(t.formAction):c.getAttribute("formAction"),t!==null&&(s=t,c=null));var p=new Tm("action","action",null,o,n);e.push({event:p,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(vl!==0){var x=c?eL(n,c):new FormData(n),k={pending:!0,data:x,method:n.method,action:s};Object.freeze(k),My(a,k,null,x)}}else typeof s==="function"&&(p.preventDefault(),x=c?eL(n,c):new FormData(n),k={pending:!0,data:x,method:n.method,action:s},Object.freeze(k),My(a,k,s,x))},currentTarget:n}]})}}function rm(e,t,a){e.currentTarget=a;try{t(e)}catch(o){lx(o)}e.currentTarget=null}function tL(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var o=e[a];e:{var n=void 0,s=o.event;if(o=o.listeners,t)for(var c=o.length-1;0<=c;c--){var p=o[c],x=p.instance,k=p.currentTarget;if(p=p.listener,x!==n&&s.isPropagationStopped())break e;x!==null?H(x,rm,s,p,k):rm(s,p,k),n=x}else for(c=0;c<o.length;c++){if(p=o[c],x=p.instance,k=p.currentTarget,p=p.listener,x!==n&&s.isPropagationStopped())break e;x!==null?H(x,rm,s,p,k):rm(s,p,k),n=x}}}}function Et(e,t){Qx.has(e)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var a=t[$v];a===void 0&&(a=t[$v]=new Set);var o=e+"__bubble";a.has(o)||(aL(t,e,2,!1),a.add(o))}function cv(e,t,a){Qx.has(e)&&!t&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',e);var o=0;t&&(o|=4),aL(a,e,o,t)}function fv(e){if(!e[ih]){e[ih]=!0,ZL.forEach(function(a){a!=="selectionchange"&&(Qx.has(a)||cv(a,!1,e),cv(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ih]||(t[ih]=!0,cv("selectionchange",!1,t))}}function aL(e,t,a,o){switch(OL(t)){case ur:var n=DM;break;case $r:n=EM;break;default:n=Rv}a=n.bind(null,t,a,e),n=void 0,!Wv||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),o?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 pv(e,t,a,o,n){var s=o;if((t&1)===0&&(t&2)===0&&o!==null)e:for(;;){if(o===null)return;var c=o.tag;if(c===3||c===4){var p=o.stateNode.containerInfo;if(p===n)break;if(c===4)for(c=o.return;c!==null;){var x=c.tag;if((x===3||x===4)&&c.stateNode.containerInfo===n)return;c=c.return}for(;p!==null;){if(c=Ae(p),c===null)return;if(x=c.tag,x===5||x===6||x===26||x===27){o=s=c;continue e}p=p.parentNode}}o=o.return}p0(function(){var k=s,q=Og(a),B=[];e:{var D=Ow.get(e);if(D!==void 0){var F=Tm,me=e;switch(e){case"keypress":if(fp(a)===0)break e;case"keydown":case"keyup":F=TD;break;case"focusin":me="focus",F=tx;break;case"focusout":me="blur",F=tx;break;case"beforeblur":case"afterblur":F=tx;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":F=Sw;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":F=mD;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":F=AD;break;case Dw:case Ew:case Nw:F=yD;break;case qw:F=DD;break;case"scroll":case"scrollend":F=fD;break;case"wheel":F=ND;break;case"copy":case"cut":case"paste":F=xD;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":F=Lw;break;case"toggle":case"beforetoggle":F=OD}var xe=(t&4)!==0,fa=!xe&&(e==="scroll"||e==="scrollend"),Nt=xe?D!==null?D+"Capture":null:D;xe=[];for(var M=k,E;M!==null;){var N=M;if(E=N.stateNode,N=N.tag,N!==5&&N!==26&&N!==27||E===null||Nt===null||(N=Rd(M,Nt),N!=null&&xe.push(Wd(M,N,E))),fa)break;M=M.return}0<xe.length&&(D=new F(D,me,null,a,q),B.push({event:D,listeners:xe}))}}if((t&7)===0){e:{if(D=e==="mouseover"||e==="pointerover",F=e==="mouseout"||e==="pointerout",D&&a!==ic&&(me=a.relatedTarget||a.fromElement)&&(Ae(me)||me[Js]))break e;if(F||D){if(D=q.window===q?q:(D=q.ownerDocument)?D.defaultView||D.parentWindow:window,F){if(me=a.relatedTarget||a.toElement,F=k,me=me?Ae(me):null,me!==null&&(fa=O(me),xe=me.tag,me!==fa||xe!==5&&xe!==27&&xe!==6))me=null}else F=null,me=k;if(F!==me){if(xe=Sw,N="onMouseLeave",Nt="onMouseEnter",M="mouse",e==="pointerout"||e==="pointerover")xe=Lw,N="onPointerLeave",Nt="onPointerEnter",M="pointer";if(fa=F==null?D:nt(F),E=me==null?D:nt(me),D=new xe(N,M+"leave",F,a,q),D.target=fa,D.relatedTarget=E,N=null,Ae(q)===k&&(xe=new xe(Nt,M+"enter",me,a,q),xe.target=E,xe.relatedTarget=fa,N=xe),fa=N,F&&me)t:{xe=ZA,Nt=F,M=me,E=0;for(N=Nt;N;N=xe(N))E++;N=0;for(var J=M;J;J=xe(J))N++;for(;0<E-N;)Nt=xe(Nt),E--;for(;0<N-E;)M=xe(M),N--;for(;E--;){if(Nt===M||M!==null&&Nt===M.alternate){xe=Nt;break t}Nt=xe(Nt),M=xe(M)}xe=null}else xe=null;F!==null&&oL(B,D,F,xe,!1),me!==null&&fa!==null&&oL(B,fa,me,xe,!0)}}}e:{if(D=k?nt(k):window,F=D.nodeName&&D.nodeName.toLowerCase(),F==="select"||F==="input"&&D.type==="file")var ve=b0;else if(v0(D))if(Aw)ve=dA;else{ve=iA;var ot=lA}else F=D.nodeName,!F||F.toLowerCase()!=="input"||D.type!=="checkbox"&&D.type!=="radio"?k&&Td(k.elementType)&&(ve=b0):ve=uA;if(ve&&(ve=ve(e,k))){x0(B,ve,a,q);break e}ot&&ot(e,D,k),e==="focusout"&&k&&D.type==="number"&&k.memoizedProps.value!=null&&Ag(D,"number",D.value)}switch(ot=k?nt(k):window,e){case"focusin":if(v0(ot)||ot.contentEditable==="true")Lu=ot,ox=k,hc=null;break;case"focusout":hc=ox=Lu=null;break;case"mousedown":rx=!0;break;case"contextmenu":case"mouseup":case"dragend":rx=!1,I0(B,a,q);break;case"selectionchange":if(UD)break;case"keydown":case"keyup":I0(B,a,q)}var Be;if(ax)e:{switch(e){case"compositionstart":var Me="onCompositionStart";break e;case"compositionend":Me="onCompositionEnd";break e;case"compositionupdate":Me="onCompositionUpdate";break e}Me=void 0}else ku?g0(e,a)&&(Me="onCompositionEnd"):e==="keydown"&&a.keyCode===ww&&(Me="onCompositionStart");if(Me&&(Cw&&a.locale!=="ko"&&(ku||Me!=="onCompositionStart"?Me==="onCompositionEnd"&&ku&&(Be=m0()):(el=q,Zv=("value"in el)?el.value:el.textContent,ku=!0)),ot=nm(k,Me),0<ot.length&&(Me=new kw(Me,e,null,a,q),B.push({event:Me,listeners:ot}),Be?Me.data=Be:(Be=y0(a),Be!==null&&(Me.data=Be)))),Be=PD?oA(e,a):rA(e,a))Me=nm(k,"onBeforeInput"),0<Me.length&&(ot=new SD("onBeforeInput","beforeinput",null,a,q),B.push({event:ot,listeners:Me}),ot.data=Be);WA(B,e,k,a,q)}tL(B,t)})}function Wd(e,t,a){return{instance:e,listener:t,currentTarget:a}}function nm(e,t){for(var a=t+"Capture",o=[];e!==null;){var n=e,s=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||s===null||(n=Rd(e,a),n!=null&&o.unshift(Wd(e,n,s)),n=Rd(e,t),n!=null&&o.push(Wd(e,n,s))),e.tag===3)return o;e=e.return}return[]}function ZA(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e?e:null}function oL(e,t,a,o,n){for(var s=t._reactName,c=[];a!==null&&a!==o;){var p=a,x=p.alternate,k=p.stateNode;if(p=p.tag,x!==null&&x===o)break;p!==5&&p!==26&&p!==27||k===null||(x=k,n?(k=Rd(a,s),k!=null&&c.unshift(Wd(a,k,x))):n||(k=Rd(a,s),k!=null&&c.push(Wd(a,k,x)))),a=a.return}c.length!==0&&e.push({event:t,listeners:c})}function mv(e,t){JR(e,t),e!=="input"&&e!=="textarea"&&e!=="select"||t==null||t.value!==null||xw||(xw=!0,e==="select"&&t.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",e):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e));var a={registrationNameDependencies:oi,possibleRegistrationNames:Xv};Td(e)||typeof t.is==="string"||tA(e,t,a),t.contentEditable&&!t.suppressContentEditableWarning&&t.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function no(e,t,a,o){t!==a&&(a=Ys(a),Ys(t)!==a&&(o[e]=t))}function JA(e,t,a){t.forEach(function(o){a[sL(o)]=o==="style"?gv(e):e.getAttribute(o)})}function Tn(e,t){t===!1?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",e,e,e):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)}function rL(e,t){return e=e.namespaceURI===Lm||e.namespaceURI===vu?e.ownerDocument.createElementNS(e.namespaceURI,e.tagName):e.ownerDocument.createElement(e.tagName),e.innerHTML=t,e.innerHTML}function Ys(e){return it(e)&&(console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",he(e)),Pe(e)),(typeof e==="string"?e:""+e).replace(cE,`
176
+ `).replace(fE,"")}function nL(e,t){return t=Ys(t),Ys(e)===t?!0:!1}function ra(e,t,a,o,n,s){switch(a){case"children":if(typeof o==="string")cp(o,t,!1),t==="body"||t==="textarea"&&o===""||Cd(e,o);else if(typeof o==="number"||typeof o==="bigint")cp(""+o,t,!1),t!=="body"&&Cd(e,""+o);break;case"className":ip(e,"class",o);break;case"tabIndex":ip(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":ip(e,a,o);break;case"style":d0(e,o,s);break;case"data":if(t!=="object"){ip(e,"data",o);break}case"src":case"href":if(o===""&&(t!=="a"||a!=="href")){a==="src"?console.error('An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',a,a):console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',a,a),e.removeAttribute(a);break}if(o==null||typeof o==="function"||typeof o==="symbol"||typeof o==="boolean"){e.removeAttribute(a);break}ke(o,a),o=Id(""+o),e.setAttribute(a,o);break;case"action":case"formAction":if(o!=null&&(t==="form"?a==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof o==="function"&&(n.encType==null&&n.method==null||ch||(ch=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),n.target==null||dh||(dh=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):t==="input"||t==="button"?a==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):t!=="input"||n.type==="submit"||n.type==="image"||uh?t!=="button"||n.type==null||n.type==="submit"||uh?typeof o==="function"&&(n.name==null||r1||(r1=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),n.formEncType==null&&n.formMethod==null||ch||(ch=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),n.formTarget==null||dh||(dh=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))):(uh=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(uh=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):a==="action"?console.error("You can only pass the action prop to <form>."):console.error("You can only pass the formAction prop to <input> or <button>.")),typeof o==="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 s==="function"&&(a==="formAction"?(t!=="input"&&ra(e,t,"name",n.name,n,null),ra(e,t,"formEncType",n.formEncType,n,null),ra(e,t,"formMethod",n.formMethod,n,null),ra(e,t,"formTarget",n.formTarget,n,null)):(ra(e,t,"encType",n.encType,n,null),ra(e,t,"method",n.method,n,null),ra(e,t,"target",n.target,n,null)));if(o==null||typeof o==="symbol"||typeof o==="boolean"){e.removeAttribute(a);break}ke(o,a),o=Id(""+o),e.setAttribute(a,o);break;case"onClick":o!=null&&(typeof o!=="function"&&Tn(a,o),e.onclick=Jn);break;case"onScroll":o!=null&&(typeof o!=="function"&&Tn(a,o),Et("scroll",e));break;case"onScrollEnd":o!=null&&(typeof o!=="function"&&Tn(a,o),Et("scrollend",e));break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!=="object"||!("__html"in o))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(a=o.__html,a!=null){if(n.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=a}}break;case"multiple":e.multiple=o&&typeof o!=="function"&&typeof o!=="symbol";break;case"muted":e.muted=o&&typeof o!=="function"&&typeof o!=="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o==="function"||typeof o==="boolean"||typeof o==="symbol"){e.removeAttribute("xlink:href");break}ke(o,a),a=Id(""+o),e.setAttributeNS(bi,"xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!=="function"&&typeof o!=="symbol"?(ke(o,a),e.setAttribute(a,""+o)):e.removeAttribute(a);break;case"inert":o!==""||fh[a]||(fh[a]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",a));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":o&&typeof o!=="function"&&typeof o!=="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":o===!0?e.setAttribute(a,""):o!==!1&&o!=null&&typeof o!=="function"&&typeof o!=="symbol"?(ke(o,a),e.setAttribute(a,o)):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!=="function"&&typeof o!=="symbol"&&!isNaN(o)&&1<=o?(ke(o,a),e.setAttribute(a,o)):e.removeAttribute(a);break;case"rowSpan":case"start":o==null||typeof o==="function"||typeof o==="symbol"||isNaN(o)?e.removeAttribute(a):(ke(o,a),e.setAttribute(a,o));break;case"popover":Et("beforetoggle",e),Et("toggle",e),lp(e,"popover",o);break;case"xlinkActuate":Zn(e,bi,"xlink:actuate",o);break;case"xlinkArcrole":Zn(e,bi,"xlink:arcrole",o);break;case"xlinkRole":Zn(e,bi,"xlink:role",o);break;case"xlinkShow":Zn(e,bi,"xlink:show",o);break;case"xlinkTitle":Zn(e,bi,"xlink:title",o);break;case"xlinkType":Zn(e,bi,"xlink:type",o);break;case"xmlBase":Zn(e,Wx,"xml:base",o);break;case"xmlLang":Zn(e,Wx,"xml:lang",o);break;case"xmlSpace":Zn(e,Wx,"xml:space",o);break;case"is":s!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),lp(e,"is",o);break;case"innerText":case"textContent":break;case"popoverTarget":n1||o==null||typeof o!=="object"||(n1=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",o));default:!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N"?(a=c0(a),lp(e,a,o)):oi.hasOwnProperty(a)&&o!=null&&typeof o!=="function"&&Tn(a,o)}}function hv(e,t,a,o,n,s){switch(a){case"style":d0(e,o,s);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!=="object"||!("__html"in o))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(a=o.__html,a!=null){if(n.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=a}}break;case"children":typeof o==="string"?Cd(e,o):(typeof o==="number"||typeof o==="bigint")&&Cd(e,""+o);break;case"onScroll":o!=null&&(typeof o!=="function"&&Tn(a,o),Et("scroll",e));break;case"onScrollEnd":o!=null&&(typeof o!=="function"&&Tn(a,o),Et("scrollend",e));break;case"onClick":o!=null&&(typeof o!=="function"&&Tn(a,o),e.onclick=Jn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(oi.hasOwnProperty(a))o!=null&&typeof o!=="function"&&Tn(a,o);else e:{if(a[0]==="o"&&a[1]==="n"&&(n=a.endsWith("Capture"),t=a.slice(2,n?a.length-7:void 0),s=e[No]||null,s=s!=null?s[a]:null,typeof s==="function"&&e.removeEventListener(t,s,n),typeof o==="function")){typeof s!=="function"&&s!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,o,n);break e}a in e?e[a]=o:o===!0?e.setAttribute(a,""):lp(e,a,o)}}}function vo(e,t,a){switch(mv(t,a),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Et("error",e),Et("load",e);var o=!1,n=!1,s;for(s in a)if(a.hasOwnProperty(s)){var c=a[s];if(c!=null)switch(s){case"src":o=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:ra(e,t,s,c,a,null)}}n&&ra(e,t,"srcSet",a.srcSet,a,null),o&&ra(e,t,"src",a.src,a,null);return;case"input":Ps("input",a),Et("invalid",e);var p=s=c=n=null,x=null,k=null;for(o in a)if(a.hasOwnProperty(o)){var q=a[o];if(q!=null)switch(o){case"name":n=q;break;case"type":c=q;break;case"checked":x=q;break;case"defaultChecked":k=q;break;case"value":s=q;break;case"defaultValue":p=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:ra(e,t,o,q,a,null)}}Yb(e,a),Kb(e,s,p,x,k,c,n,!1);return;case"select":Ps("select",a),Et("invalid",e),o=c=s=null;for(n in a)if(a.hasOwnProperty(n)&&(p=a[n],p!=null))switch(n){case"value":s=p;break;case"defaultValue":c=p;break;case"multiple":o=p;default:ra(e,t,n,p,a,null)}Zb(e,a),t=s,a=c,e.multiple=!!o,t!=null?Ki(e,!!o,t,!1):a!=null&&Ki(e,!!o,a,!0);return;case"textarea":Ps("textarea",a),Et("invalid",e),s=n=o=null;for(c in a)if(a.hasOwnProperty(c)&&(p=a[c],p!=null))switch(c){case"value":o=p;break;case"defaultValue":n=p;break;case"children":s=p;break;case"dangerouslySetInnerHTML":if(p!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:ra(e,t,c,p,a,null)}Jb(e,a),t0(e,o,n,s);return;case"option":Qb(e,a);for(x in a)if(a.hasOwnProperty(x)&&(o=a[x],o!=null))switch(x){case"selected":e.selected=o&&typeof o!=="function"&&typeof o!=="symbol";break;default:ra(e,t,x,o,a,null)}return;case"dialog":Et("beforetoggle",e),Et("toggle",e),Et("cancel",e),Et("close",e);break;case"iframe":case"object":Et("load",e);break;case"video":case"audio":for(o=0;o<jc.length;o++)Et(jc[o],e);break;case"image":Et("error",e),Et("load",e);break;case"details":Et("toggle",e);break;case"embed":case"source":case"link":Et("error",e),Et("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(k in a)if(a.hasOwnProperty(k)&&(o=a[k],o!=null))switch(k){case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:ra(e,t,k,o,a,null)}return;default:if(Td(t)){for(q in a)a.hasOwnProperty(q)&&(o=a[q],o!==void 0&&hv(e,t,q,o,a,void 0));return}}for(p in a)a.hasOwnProperty(p)&&(o=a[p],o!=null&&ra(e,t,p,o,a,null))}function eM(e,t,a,o){switch(mv(t,o),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,s=null,c=null,p=null,x=null,k=null,q=null;for(F in a){var B=a[F];if(a.hasOwnProperty(F)&&B!=null)switch(F){case"checked":break;case"value":break;case"defaultValue":x=B;default:o.hasOwnProperty(F)||ra(e,t,F,null,o,B)}}for(var D in o){var F=o[D];if(B=a[D],o.hasOwnProperty(D)&&(F!=null||B!=null))switch(D){case"type":s=F;break;case"name":n=F;break;case"checked":k=F;break;case"defaultChecked":q=F;break;case"value":c=F;break;case"defaultValue":p=F;break;case"children":case"dangerouslySetInnerHTML":if(F!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:F!==B&&ra(e,t,D,F,o,B)}}t=a.type==="checkbox"||a.type==="radio"?a.checked!=null:a.value!=null,o=o.type==="checkbox"||o.type==="radio"?o.checked!=null:o.value!=null,t||!o||o1||(console.error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),o1=!0),!t||o||a1||(console.error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),a1=!0),Rg(e,c,p,x,k,q,s,n);return;case"select":F=c=p=D=null;for(s in a)if(x=a[s],a.hasOwnProperty(s)&&x!=null)switch(s){case"value":break;case"multiple":F=x;default:o.hasOwnProperty(s)||ra(e,t,s,null,o,x)}for(n in o)if(s=o[n],x=a[n],o.hasOwnProperty(n)&&(s!=null||x!=null))switch(n){case"value":D=s;break;case"defaultValue":p=s;break;case"multiple":c=s;default:s!==x&&ra(e,t,n,s,o,x)}o=p,t=c,a=F,D!=null?Ki(e,!!t,D,!1):!!a!==!!t&&(o!=null?Ki(e,!!t,o,!0):Ki(e,!!t,t?[]:"",!1));return;case"textarea":F=D=null;for(p in a)if(n=a[p],a.hasOwnProperty(p)&&n!=null&&!o.hasOwnProperty(p))switch(p){case"value":break;case"children":break;default:ra(e,t,p,null,o,n)}for(c in o)if(n=o[c],s=a[c],o.hasOwnProperty(c)&&(n!=null||s!=null))switch(c){case"value":D=n;break;case"defaultValue":F=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:n!==s&&ra(e,t,c,n,o,s)}e0(e,D,F);return;case"option":for(var me in a)if(D=a[me],a.hasOwnProperty(me)&&D!=null&&!o.hasOwnProperty(me))switch(me){case"selected":e.selected=!1;break;default:ra(e,t,me,null,o,D)}for(x in o)if(D=o[x],F=a[x],o.hasOwnProperty(x)&&D!==F&&(D!=null||F!=null))switch(x){case"selected":e.selected=D&&typeof D!=="function"&&typeof D!=="symbol";break;default:ra(e,t,x,D,o,F)}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 xe in a)D=a[xe],a.hasOwnProperty(xe)&&D!=null&&!o.hasOwnProperty(xe)&&ra(e,t,xe,null,o,D);for(k in o)if(D=o[k],F=a[k],o.hasOwnProperty(k)&&D!==F&&(D!=null||F!=null))switch(k){case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:ra(e,t,k,D,o,F)}return;default:if(Td(t)){for(var fa in a)D=a[fa],a.hasOwnProperty(fa)&&D!==void 0&&!o.hasOwnProperty(fa)&&hv(e,t,fa,void 0,o,D);for(q in o)D=o[q],F=a[q],!o.hasOwnProperty(q)||D===F||D===void 0&&F===void 0||hv(e,t,q,D,o,F);return}}for(var Nt in a)D=a[Nt],a.hasOwnProperty(Nt)&&D!=null&&!o.hasOwnProperty(Nt)&&ra(e,t,Nt,null,o,D);for(B in o)D=o[B],F=a[B],!o.hasOwnProperty(B)||D===F||D==null&&F==null||ra(e,t,B,D,o,F)}function sL(e){switch(e){case"class":return"className";case"for":return"htmlFor";default:return e}}function gv(e){var t={};e=e.style;for(var a=0;a<e.length;a++){var o=e[a];t[o]=e.getPropertyValue(o)}return t}function lL(e,t,a){if(t!=null&&typeof t!=="object")console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var o,n=o="",s;for(s in t)if(t.hasOwnProperty(s)){var c=t[s];c!=null&&typeof c!=="boolean"&&c!==""&&(s.indexOf("--")===0?(Qt(c,s),o+=n+s+":"+(""+c).trim()):typeof c!=="number"||c===0||yw.has(s)?(Qt(c,s),o+=n+s.replace(fw,"-$1").toLowerCase().replace(pw,"-ms-")+":"+(""+c).trim()):o+=n+s.replace(fw,"-$1").toLowerCase().replace(pw,"-ms-")+":"+c+"px",n=";")}o=o||null,t=e.getAttribute("style"),t!==o&&(o=Ys(o),Ys(t)!==o&&(a.style=gv(e)))}}function Lr(e,t,a,o,n,s){if(n.delete(a),e=e.getAttribute(a),e===null)switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":return}else if(o!=null)switch(typeof o){case"function":case"symbol":case"boolean":break;default:if(ke(o,t),e===""+o)return}no(t,e,o,s)}function iL(e,t,a,o,n,s){if(n.delete(a),e=e.getAttribute(a),e===null){switch(typeof o){case"function":case"symbol":return}if(!o)return}else switch(typeof o){case"function":case"symbol":break;default:if(o)return}no(t,e,o,s)}function yv(e,t,a,o,n,s){if(n.delete(a),e=e.getAttribute(a),e===null)switch(typeof o){case"undefined":case"function":case"symbol":return}else if(o!=null)switch(typeof o){case"function":case"symbol":break;default:if(ke(o,a),e===""+o)return}no(t,e,o,s)}function uL(e,t,a,o,n,s){if(n.delete(a),e=e.getAttribute(a),e===null)switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(o))return}else if(o!=null)switch(typeof o){case"function":case"symbol":case"boolean":break;default:if(!isNaN(o)&&(ke(o,t),e===""+o))return}no(t,e,o,s)}function vv(e,t,a,o,n,s){if(n.delete(a),e=e.getAttribute(a),e===null)switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":return}else if(o!=null)switch(typeof o){case"function":case"symbol":case"boolean":break;default:if(ke(o,t),a=Id(""+o),e===a)return}no(t,e,o,s)}function dL(e,t,a,o){for(var n={},s=new Set,c=e.attributes,p=0;p<c.length;p++)switch(c[p].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:s.add(c[p].name)}if(Td(t)){for(var x in a)if(a.hasOwnProperty(x)){var k=a[x];if(k!=null){if(oi.hasOwnProperty(x))typeof k!=="function"&&Tn(x,k);else if(a.suppressHydrationWarning!==!0)switch(x){case"children":typeof k!=="string"&&typeof k!=="number"||no("children",e.textContent,k,n);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":c=e.innerHTML,k=k?k.__html:void 0,k!=null&&(k=rL(e,k),no(x,c,k,n));continue;case"style":s.delete(x),lL(e,k,n);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":s.delete(x.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",x);continue;case"className":s.delete("class"),c=jb(e,"class",k),no("className",c,k,n);continue;default:o.context===Ss&&t!=="svg"&&t!=="math"?s.delete(x.toLowerCase()):s.delete(x),c=jb(e,x,k),no(x,c,k,n)}}}}else for(k in a)if(a.hasOwnProperty(k)&&(x=a[k],x!=null)){if(oi.hasOwnProperty(k))typeof x!=="function"&&Tn(k,x);else if(a.suppressHydrationWarning!==!0)switch(k){case"children":typeof x!=="string"&&typeof x!=="number"||no("children",e.textContent,x,n);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":c=e.innerHTML,x=x?x.__html:void 0,x!=null&&(x=rL(e,x),c!==x&&(n[k]={__html:c}));continue;case"className":Lr(e,k,"class",x,s,n);continue;case"tabIndex":Lr(e,k,"tabindex",x,s,n);continue;case"style":s.delete(k),lL(e,x,n);continue;case"multiple":s.delete(k),no(k,e.multiple,x,n);continue;case"muted":s.delete(k),no(k,e.muted,x,n);continue;case"autoFocus":s.delete("autofocus"),no(k,e.autofocus,x,n);continue;case"data":if(t!=="object"){s.delete(k),c=e.getAttribute("data"),no(k,c,x,n);continue}case"src":case"href":if(!(x!==""||t==="a"&&k==="href"||t==="object"&&k==="data")){k==="src"?console.error('An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',k,k):console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',k,k);continue}vv(e,k,k,x,s,n);continue;case"action":case"formAction":if(c=e.getAttribute(k),typeof x==="function"){s.delete(k.toLowerCase()),k==="formAction"?(s.delete("name"),s.delete("formenctype"),s.delete("formmethod"),s.delete("formtarget")):(s.delete("enctype"),s.delete("method"),s.delete("target"));continue}else if(c===pE){s.delete(k.toLowerCase()),no(k,"function",x,n);continue}vv(e,k,k.toLowerCase(),x,s,n);continue;case"xlinkHref":vv(e,k,"xlink:href",x,s,n);continue;case"contentEditable":yv(e,k,"contenteditable",x,s,n);continue;case"spellCheck":yv(e,k,"spellcheck",x,s,n);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":yv(e,k,k,x,s,n);continue;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":iL(e,k,k.toLowerCase(),x,s,n);continue;case"capture":case"download":e:{p=e;var q=c=k,B=n;if(s.delete(q),p=p.getAttribute(q),p===null)switch(typeof x){case"undefined":case"function":case"symbol":break e;default:if(x===!1)break e}else if(x!=null)switch(typeof x){case"function":case"symbol":break;case"boolean":if(x===!0&&p==="")break e;break;default:if(ke(x,c),p===""+x)break e}no(c,p,x,B)}continue;case"cols":case"rows":case"size":case"span":e:{if(p=e,q=c=k,B=n,s.delete(q),p=p.getAttribute(q),p===null)switch(typeof x){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(x)||1>x)break e}else if(x!=null)switch(typeof x){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(x)||1>x)&&(ke(x,c),p===""+x))break e}no(c,p,x,B)}continue;case"rowSpan":uL(e,k,"rowspan",x,s,n);continue;case"start":uL(e,k,k,x,s,n);continue;case"xHeight":Lr(e,k,"x-height",x,s,n);continue;case"xlinkActuate":Lr(e,k,"xlink:actuate",x,s,n);continue;case"xlinkArcrole":Lr(e,k,"xlink:arcrole",x,s,n);continue;case"xlinkRole":Lr(e,k,"xlink:role",x,s,n);continue;case"xlinkShow":Lr(e,k,"xlink:show",x,s,n);continue;case"xlinkTitle":Lr(e,k,"xlink:title",x,s,n);continue;case"xlinkType":Lr(e,k,"xlink:type",x,s,n);continue;case"xmlBase":Lr(e,k,"xml:base",x,s,n);continue;case"xmlLang":Lr(e,k,"xml:lang",x,s,n);continue;case"xmlSpace":Lr(e,k,"xml:space",x,s,n);continue;case"inert":x!==""||fh[k]||(fh[k]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",k)),iL(e,k,k,x,s,n);continue;default:if(!(2<k.length)||k[0]!=="o"&&k[0]!=="O"||k[1]!=="n"&&k[1]!=="N"){p=c0(k),c=!1,o.context===Ss&&t!=="svg"&&t!=="math"?s.delete(p.toLowerCase()):(q=k.toLowerCase(),q=wm.hasOwnProperty(q)?wm[q]||null:null,q!==null&&q!==k&&(c=!0,s.delete(q)),s.delete(p));e:if(q=e,B=p,p=x,kd(B))if(q.hasAttribute(B))q=q.getAttribute(B),ke(p,B),p=q===""+p?p:q;else{switch(typeof p){case"function":case"symbol":break e;case"boolean":if(q=B.toLowerCase().slice(0,5),q!=="data-"&&q!=="aria-")break e}p=p===void 0?void 0:null}else p=void 0;c||no(k,p,x,n)}}}return 0<s.size&&a.suppressHydrationWarning!==!0&&JA(e,s,n),Object.keys(n).length===0?null:n}function tM(e,t){switch(e.length){case 0:return"";case 1:return e[0];case 2:return e[0]+" "+t+" "+e[1];default:return e.slice(0,-1).join(", ")+", "+t+" "+e[e.length-1]}}function cL(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function aM(){if(typeof performance.getEntriesByType==="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),o=0;o<a.length;o++){var n=a[o],{transferSize:s,initiatorType:c,duration:p}=n;if(s&&p&&cL(c)){c=0,p=n.responseEnd;for(o+=1;o<a.length;o++){var x=a[o],k=x.startTime;if(k>p)break;var q=x.transferSize,B=x.initiatorType;q&&cL(B)&&(x=x.responseEnd,c+=q*(x<p?1:(p-k)/(x-k)))}if(--o,t+=8*(s+c)/(n.duration/1000),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==="number")?e:5}function sm(e){return e.nodeType===9?e:e.ownerDocument}function fL(e){switch(e){case vu:return Yu;case Lm:return mh;default:return Ss}}function pL(e,t){if(e===Ss)switch(t){case"svg":return Yu;case"math":return mh;default:return Ss}return e===Yu&&t==="foreignObject"?Ss:e}function xv(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}function oM(){var e=window.event;if(e&&e.type==="popstate"){if(e===tb)return!1;return tb=e,!0}return tb=null,!1}function Zd(){var e=window.event;return e&&e!==Yc?e.type:null}function Jd(){var e=window.event;return e&&e!==Yc?e.timeStamp:-1.1}function rM(e){setTimeout(function(){throw e})}function nM(e,t,a){switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&e.focus();break;case"img":a.src?e.src=a.src:a.srcSet&&(e.srcset=a.srcSet)}}function sM(){}function lM(e,t,a,o){eM(e,t,a,o),e[No]=o}function mL(e){Cd(e,"")}function iM(e,t,a){e.nodeValue=a}function hL(e){if(!e.__reactWarnedAboutChildrenConflict){var t=e[No]||null;if(t!==null){var a=rt(e);a!==null&&(typeof t.children==="string"||typeof t.children==="number"?(e.__reactWarnedAboutChildrenConflict=!0,H(a,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "children" text content using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})):t.dangerouslySetInnerHTML!=null&&(e.__reactWarnedAboutChildrenConflict=!0,H(a,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "dangerouslySetInnerHTML" using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})))}}}function Ks(e){return e==="head"}function uM(e,t){e.removeChild(t)}function dM(e,t){(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e).removeChild(t)}function gL(e,t){var a=t,o=0;do{var n=a.nextSibling;if(e.removeChild(a),n&&n.nodeType===8)if(a=n.data,a===Xc||a===ph){if(o===0){e.removeChild(n),fu(t);return}o--}else if(a===$c||a===xl||a===ki||a===Xu||a===Si)o++;else if(a===hE)ec(e.ownerDocument.documentElement);else if(a===yE){a=e.ownerDocument.head,ec(a);for(var s=a.firstChild;s;){var c=s.nextSibling,p=s.nodeName;s[lc]||p==="SCRIPT"||p==="STYLE"||p==="LINK"&&s.rel.toLowerCase()==="stylesheet"||a.removeChild(s),s=c}}else a===gE&&ec(e.ownerDocument.body);a=n}while(a);fu(t)}function yL(e,t){var a=e;e=0;do{var o=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||""),o&&o.nodeType===8)if(a=o.data,a===Xc)if(e===0)break;else e--;else a!==$c&&a!==xl&&a!==ki&&a!==Xu||e++;a=o}while(a)}function cM(e){yL(e,!0)}function fM(e){e=e.style,typeof e.setProperty==="function"?e.setProperty("display","none","important"):e.display="none"}function pM(e){e.nodeValue=""}function mM(e){yL(e,!1)}function hM(e,t){t=t[vE],t=t!==void 0&&t!==null&&t.hasOwnProperty("display")?t.display:null,e.style.display=t==null||typeof t==="boolean"?"":(""+t).trim()}function gM(e,t){e.nodeValue=t}function bv(e){var t=e.firstChild;t&&t.nodeType===10&&(t=t.nextSibling);for(;t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":bv(a),ye(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function yM(e,t,a,o){for(;e.nodeType===1;){var n=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!o&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(!o)if(t==="input"&&e.type==="hidden"){ke(n.name,"name");var s=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===s)return e}else return e;else if(!e[lc])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(s=e.getAttribute("rel"),s==="stylesheet"&&e.hasAttribute("data-precedence"))break;else if(s!==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(s=e.getAttribute("src"),(s!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&s&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}if(e=sr(e.nextSibling),e===null)break}return null}function vM(e,t,a){if(t==="")return null;for(;e.nodeType!==3;){if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a)return null;if(e=sr(e.nextSibling),e===null)return null}return e}function vL(e,t){for(;e.nodeType!==8;){if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t)return null;if(e=sr(e.nextSibling),e===null)return null}return e}function Sv(e){return e.data===xl||e.data===ki}function kv(e){return e.data===Xu||e.data===xl&&e.ownerDocument.readyState!==l1}function xM(e,t){var a=e.ownerDocument;if(e.data===ki)e._reactRetry=t;else if(e.data!==xl||a.readyState!==l1)t();else{var o=function(){t(),a.removeEventListener("DOMContentLoaded",o)};a.addEventListener("DOMContentLoaded",o),e._reactRetry=o}}function sr(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===$c||t===Xu||t===xl||t===ki||t===Si||t===Zx||t===s1)break;if(t===Xc||t===ph)return null}}return e}function xL(e){if(e.nodeType===1){for(var t=e.nodeName.toLowerCase(),a={},o=e.attributes,n=0;n<o.length;n++){var s=o[n];a[sL(s.name)]=s.name.toLowerCase()==="style"?gv(e):s.value}return{type:t,props:a}}return e.nodeType===8?e.data===Si?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:e.nodeValue}function bL(e,t,a){return a===null||a[mE]!==!0?(e.nodeValue===t?e=null:(t=Ys(t),e=Ys(e.nodeValue)===t?null:e.nodeValue),e):null}function Lv(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a===Xc||a===ph){if(t===0)return sr(e.nextSibling);t--}else a!==$c&&a!==Xu&&a!==xl&&a!==ki&&a!==Si||t++}e=e.nextSibling}return null}function SL(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a===$c||a===Xu||a===xl||a===ki||a===Si){if(t===0)return e;t--}else a!==Xc&&a!==ph||t++}e=e.previousSibling}return null}function bM(e){fu(e)}function SM(e){fu(e)}function kM(e){fu(e)}function kL(e,t,a,o,n){switch(n&&qg(e,o.ancestorInfo),t=sm(a),e){case"html":if(e=t.documentElement,!e)throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"head":if(e=t.head,!e)throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"body":if(e=t.body,!e)throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return e;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function LM(e,t,a,o){if(!a[Js]&&rt(a)){var n=a.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",n,n,n)}switch(e){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(n=a.attributes;n.length;)a.removeAttributeNode(n[0]);vo(a,e,t),a[xo]=o,a[No]=t}function ec(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ye(e)}function lm(e){return typeof e.getRootNode==="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}function LL(e,t,a){var o=Ku;if(o&&typeof t==="string"&&t){var n=kr(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof a==="string"&&(n+='[crossorigin="'+a+'"]'),p1.has(n)||(p1.add(n),e={rel:e,crossOrigin:a,href:t},o.querySelector(n)===null&&(t=o.createElement("link"),vo(t,"link",e),ze(t),o.head.appendChild(t)))}}function wL(e,t,a,o){var n=(n=Ws.current)?lm(n):null;if(!n)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence==="string"&&typeof a.href==="string"?(a=du(a.href),t=_t(n).hoistableStyles,o=t.get(a),o||(o={type:"style",instance:null,count:0,state:null},t.set(a,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href==="string"&&typeof a.precedence==="string"){e=du(a.href);var s=_t(n).hoistableStyles,c=s.get(e);if(!c&&(n=n.ownerDocument||n,c={type:"stylesheet",instance:null,count:0,state:{loading:wi,preload:null}},s.set(e,c),(s=n.querySelector(tc(e)))&&!s._p&&(c.instance=s,c.state.loading=Kc|qr),!Or.has(e))){var p={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy};Or.set(e,p),s||wM(n,e,p,c.state)}if(t&&o===null)throw a=`
177
177
 
178
178
  - `+im(t)+`
179
179
  + `+im(a),Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+a);return c}if(t&&o!==null)throw a=`
180
180
 
181
181
  - `+im(t)+`
182
- + `+im(a),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+a);return null;case"script":return t=a.async,a=a.src,typeof a==="string"&&t&&typeof t!=="function"&&typeof t!=="symbol"?(a=cu(a),t=_t(n).hoistableScripts,o=t.get(a),o||(o={type:"script",instance:null,count:0,state:null},t.set(a,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+e+'". this is a bug in React.')}}function im(e){var t=0,a="<link";return typeof e.rel==="string"?(t++,a+=' rel="'+e.rel+'"'):jr.call(e,"rel")&&(t++,a+=' rel="'+(e.rel===null?"null":"invalid type "+typeof e.rel)+'"'),typeof e.href==="string"?(t++,a+=' href="'+e.href+'"'):jr.call(e,"href")&&(t++,a+=' href="'+(e.href===null?"null":"invalid type "+typeof e.href)+'"'),typeof e.precedence==="string"?(t++,a+=' precedence="'+e.precedence+'"'):jr.call(e,"precedence")&&(t++,a+=" precedence={"+(e.precedence===null?"null":"invalid type "+typeof e.precedence)+"}"),Object.getOwnPropertyNames(e).length>t&&(a+=" ..."),a+" />"}function du(e){return'href="'+kr(e)+'"'}function tc(e){return'link[rel="stylesheet"]['+e+"]"}function CL(e){return Lt({},e,{"data-precedence":e.precedence,precedence:null})}function wM(e,t,a,o){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?o.loading=Kc:(t=e.createElement("link"),o.preload=t,t.addEventListener("load",function(){return o.loading|=Kc}),t.addEventListener("error",function(){return o.loading|=c1}),vo(t,"link",a),Pe(t),e.head.appendChild(t))}function cu(e){return'[src="'+kr(e)+'"]'}function ac(e){return"script[async]"+e}function TL(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var o=e.querySelector('style[data-href~="'+kr(a.href)+'"]');if(o)return t.instance=o,Pe(o),o;var n=Lt({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return o=(e.ownerDocument||e).createElement("style"),Pe(o),vo(o,"style",n),um(o,a.precedence,e),t.instance=o;case"stylesheet":n=du(a.href);var s=e.querySelector(tc(n));if(s)return t.state.loading|=qr,t.instance=s,Pe(s),s;o=CL(a),(n=Or.get(n))&&wv(o,n),s=(e.ownerDocument||e).createElement("link"),Pe(s);var c=s;return c._p=new Promise(function(p,x){c.onload=p,c.onerror=x}),vo(s,"link",o),t.state.loading|=qr,um(s,a.precedence,e),t.instance=s;case"script":if(s=cu(a.src),n=e.querySelector(ac(s)))return t.instance=n,Pe(n),n;if(o=a,n=Or.get(s))o=Lt({},a),Cv(o,n);return e=e.ownerDocument||e,n=e.createElement("script"),Pe(n),vo(n,"link",o),e.head.appendChild(n),t.instance=n;case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+t.type+'". this is a bug in React.')}else t.type==="stylesheet"&&(t.state.loading&qr)===wi&&(o=t.instance,t.state.loading|=qr,um(o,a.precedence,e));return t.instance}function um(e,t,a){for(var o=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=o.length?o[o.length-1]:null,s=n,c=0;c<o.length;c++){var p=o[c];if(p.dataset.precedence===t)s=p;else if(s!==n)break}s?s.parentNode.insertBefore(e,s.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function wv(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Cv(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}function IL(e,t,a){if(hh===null){var o=new Map,n=hh=new Map;n.set(a,o)}else n=hh,o=n.get(a),o||(o=new Map,n.set(a,o));if(o.has(e))return o;o.set(e,null),a=a.getElementsByTagName(e);for(n=0;n<a.length;n++){var s=a[n];if(!(s[lc]||s[xo]||e==="link"&&s.getAttribute("rel")==="stylesheet")&&s.namespaceURI!==vu){var c=s.getAttribute(t)||"";c=e+c;var p=o.get(c);p?p.push(s):o.set(c,[s])}}return o}function RL(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function CM(e,t,a){var o=!a.ancestorInfo.containerTagInScope;if(a.context===Yu||t.itemProp!=null)return!o||t.itemProp==null||e!=="meta"&&e!=="title"&&e!=="style"&&e!=="link"&&e!=="script"||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",e,e),!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!=="string"||typeof t.href!=="string"||t.href===""){o&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case"link":if(typeof t.rel!=="string"||typeof t.href!=="string"||t.href===""||t.onLoad||t.onError){if(t.rel==="stylesheet"&&typeof t.precedence==="string"){e=t.href;var n=t.onError,s=t.disabled;a=[],t.onLoad&&a.push("`onLoad`"),n&&a.push("`onError`"),s!=null&&a.push("`disabled`"),n=tM(a,"and"),n+=a.length===1?" prop":" props",s=a.length===1?"an "+n:"the "+n,a.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',e,s,n)}o&&(typeof t.rel!=="string"||typeof t.href!=="string"||t.href===""?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(t.onError||t.onLoad)&&console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."));break}switch(t.rel){case"stylesheet":return e=t.precedence,t=t.disabled,typeof e!=="string"&&o&&console.error('Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.'),typeof e==="string"&&t==null;default:return!0}case"script":if(e=t.async&&typeof t.async!=="function"&&typeof t.async!=="symbol",!e||t.onLoad||t.onError||!t.src||typeof t.src!=="string"){o&&(e?t.onLoad||t.onError?console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error('Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.'));break}return!0;case"noscript":case"template":o&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",e)}return!1}function AL(e){return e.type==="stylesheet"&&(e.state.loading&f1)===wi?!1:!0}function TM(e,t,a,o){if(a.type==="stylesheet"&&(typeof o.media!=="string"||matchMedia(o.media).matches!==!1)&&(a.state.loading&qr)===wi){if(a.instance===null){var n=du(o.href),s=t.querySelector(tc(n));if(s){t=s._p,t!==null&&typeof t==="object"&&typeof t.then==="function"&&(e.count++,e=dm.bind(e),t.then(e,e)),a.state.loading|=qr,a.instance=s,Pe(s);return}s=t.ownerDocument||t,o=CL(o),(n=Or.get(n))&&wv(o,n),s=s.createElement("link"),Pe(s);var c=s;c._p=new Promise(function(p,x){c.onload=p,c.onerror=x}),vo(s,"link",o),a.instance=s}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&f1)===wi&&(e.count++,a=dm.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}function IM(e,t){return e.stylesheets&&e.count===0&&cm(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var o=setTimeout(function(){if(e.stylesheets&&cm(e,e.stylesheets),e.unsuspend){var s=e.unsuspend;e.unsuspend=null,s()}},SE+t);0<e.imgBytes&&ob===0&&(ob=125*aM()*LE);var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&cm(e,e.stylesheets),e.unsuspend)){var s=e.unsuspend;e.unsuspend=null,s()}},(e.imgBytes>ob?50:kE)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(o),clearTimeout(n)}}:null}function dm(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)cm(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}function cm(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,gh=new Map,t.forEach(RM,e),gh=null,dm.call(e))}function RM(e,t){if(!(t.state.loading&qr)){var a=gh.get(e);if(a)var o=a.get(rb);else{a=new Map,gh.set(e,a);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),s=0;s<n.length;s++){var c=n[s];if(c.nodeName==="LINK"||c.getAttribute("media")!=="not all")a.set(c.dataset.precedence,c),o=c}o&&a.set(rb,o)}n=t.instance,c=n.getAttribute("data-precedence"),s=a.get(c)||o,s===o&&a.set(rb,n),a.set(c,n),this.count++,o=dm.bind(this),n.addEventListener("load",o),n.addEventListener("error",o),s?s.parentNode.insertBefore(n,s.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=qr}}function AM(e,t,a,o,n,s,c,p,x){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=Li,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Yi(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Yi(0),this.hiddenUpdates=Yi(null),this.identifierPrefix=o,this.onUncaughtError=n,this.onCaughtError=s,this.onRecoverableError=c,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=x,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,e=this.pendingUpdatersLaneMap=[];for(t=0;31>t;t++)e.push(new Set);this._debugRootType=a?"hydrateRoot()":"createRoot()"}function ML(e,t,a,o,n,s,c,p,x,k,q,B){return e=new AM(e,t,a,c,x,k,q,B,p),t=YD,s===!0&&(t|=Io|Xr),t|=mt,s=L(3,null,null,t),e.current=s,s.stateNode=e,t=Jg(),Ql(t),e.pooledCache=t,Ql(t),s.memoizedState={element:o,isDehydrated:a,cache:t},ry(s),e}function DL(e){if(!e)return ol;return e=ol,e}function Tv(e,t,a,o,n,s){if(To&&typeof To.onScheduleFiberRoot==="function")try{To.onScheduleFiberRoot(gu,o,a)}catch(c){Mn||(Mn=!0,console.error("React instrumentation encountered an error: %o",c))}n=DL(n),o.context===null?o.context=n:o.pendingContext=n,An&&ir!==null&&!y1&&(y1=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
182
+ + `+im(a),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+a);return null;case"script":return t=a.async,a=a.src,typeof a==="string"&&t&&typeof t!=="function"&&typeof t!=="symbol"?(a=cu(a),t=_t(n).hoistableScripts,o=t.get(a),o||(o={type:"script",instance:null,count:0,state:null},t.set(a,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+e+'". this is a bug in React.')}}function im(e){var t=0,a="<link";return typeof e.rel==="string"?(t++,a+=' rel="'+e.rel+'"'):jr.call(e,"rel")&&(t++,a+=' rel="'+(e.rel===null?"null":"invalid type "+typeof e.rel)+'"'),typeof e.href==="string"?(t++,a+=' href="'+e.href+'"'):jr.call(e,"href")&&(t++,a+=' href="'+(e.href===null?"null":"invalid type "+typeof e.href)+'"'),typeof e.precedence==="string"?(t++,a+=' precedence="'+e.precedence+'"'):jr.call(e,"precedence")&&(t++,a+=" precedence={"+(e.precedence===null?"null":"invalid type "+typeof e.precedence)+"}"),Object.getOwnPropertyNames(e).length>t&&(a+=" ..."),a+" />"}function du(e){return'href="'+kr(e)+'"'}function tc(e){return'link[rel="stylesheet"]['+e+"]"}function CL(e){return Lt({},e,{"data-precedence":e.precedence,precedence:null})}function wM(e,t,a,o){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?o.loading=Kc:(t=e.createElement("link"),o.preload=t,t.addEventListener("load",function(){return o.loading|=Kc}),t.addEventListener("error",function(){return o.loading|=c1}),vo(t,"link",a),ze(t),e.head.appendChild(t))}function cu(e){return'[src="'+kr(e)+'"]'}function ac(e){return"script[async]"+e}function TL(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var o=e.querySelector('style[data-href~="'+kr(a.href)+'"]');if(o)return t.instance=o,ze(o),o;var n=Lt({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return o=(e.ownerDocument||e).createElement("style"),ze(o),vo(o,"style",n),um(o,a.precedence,e),t.instance=o;case"stylesheet":n=du(a.href);var s=e.querySelector(tc(n));if(s)return t.state.loading|=qr,t.instance=s,ze(s),s;o=CL(a),(n=Or.get(n))&&wv(o,n),s=(e.ownerDocument||e).createElement("link"),ze(s);var c=s;return c._p=new Promise(function(p,x){c.onload=p,c.onerror=x}),vo(s,"link",o),t.state.loading|=qr,um(s,a.precedence,e),t.instance=s;case"script":if(s=cu(a.src),n=e.querySelector(ac(s)))return t.instance=n,ze(n),n;if(o=a,n=Or.get(s))o=Lt({},a),Cv(o,n);return e=e.ownerDocument||e,n=e.createElement("script"),ze(n),vo(n,"link",o),e.head.appendChild(n),t.instance=n;case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+t.type+'". this is a bug in React.')}else t.type==="stylesheet"&&(t.state.loading&qr)===wi&&(o=t.instance,t.state.loading|=qr,um(o,a.precedence,e));return t.instance}function um(e,t,a){for(var o=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=o.length?o[o.length-1]:null,s=n,c=0;c<o.length;c++){var p=o[c];if(p.dataset.precedence===t)s=p;else if(s!==n)break}s?s.parentNode.insertBefore(e,s.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function wv(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Cv(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}function IL(e,t,a){if(hh===null){var o=new Map,n=hh=new Map;n.set(a,o)}else n=hh,o=n.get(a),o||(o=new Map,n.set(a,o));if(o.has(e))return o;o.set(e,null),a=a.getElementsByTagName(e);for(n=0;n<a.length;n++){var s=a[n];if(!(s[lc]||s[xo]||e==="link"&&s.getAttribute("rel")==="stylesheet")&&s.namespaceURI!==vu){var c=s.getAttribute(t)||"";c=e+c;var p=o.get(c);p?p.push(s):o.set(c,[s])}}return o}function RL(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function CM(e,t,a){var o=!a.ancestorInfo.containerTagInScope;if(a.context===Yu||t.itemProp!=null)return!o||t.itemProp==null||e!=="meta"&&e!=="title"&&e!=="style"&&e!=="link"&&e!=="script"||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",e,e),!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!=="string"||typeof t.href!=="string"||t.href===""){o&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case"link":if(typeof t.rel!=="string"||typeof t.href!=="string"||t.href===""||t.onLoad||t.onError){if(t.rel==="stylesheet"&&typeof t.precedence==="string"){e=t.href;var n=t.onError,s=t.disabled;a=[],t.onLoad&&a.push("`onLoad`"),n&&a.push("`onError`"),s!=null&&a.push("`disabled`"),n=tM(a,"and"),n+=a.length===1?" prop":" props",s=a.length===1?"an "+n:"the "+n,a.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',e,s,n)}o&&(typeof t.rel!=="string"||typeof t.href!=="string"||t.href===""?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(t.onError||t.onLoad)&&console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."));break}switch(t.rel){case"stylesheet":return e=t.precedence,t=t.disabled,typeof e!=="string"&&o&&console.error('Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.'),typeof e==="string"&&t==null;default:return!0}case"script":if(e=t.async&&typeof t.async!=="function"&&typeof t.async!=="symbol",!e||t.onLoad||t.onError||!t.src||typeof t.src!=="string"){o&&(e?t.onLoad||t.onError?console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error('Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.'));break}return!0;case"noscript":case"template":o&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",e)}return!1}function AL(e){return e.type==="stylesheet"&&(e.state.loading&f1)===wi?!1:!0}function TM(e,t,a,o){if(a.type==="stylesheet"&&(typeof o.media!=="string"||matchMedia(o.media).matches!==!1)&&(a.state.loading&qr)===wi){if(a.instance===null){var n=du(o.href),s=t.querySelector(tc(n));if(s){t=s._p,t!==null&&typeof t==="object"&&typeof t.then==="function"&&(e.count++,e=dm.bind(e),t.then(e,e)),a.state.loading|=qr,a.instance=s,ze(s);return}s=t.ownerDocument||t,o=CL(o),(n=Or.get(n))&&wv(o,n),s=s.createElement("link"),ze(s);var c=s;c._p=new Promise(function(p,x){c.onload=p,c.onerror=x}),vo(s,"link",o),a.instance=s}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&f1)===wi&&(e.count++,a=dm.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}function IM(e,t){return e.stylesheets&&e.count===0&&cm(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var o=setTimeout(function(){if(e.stylesheets&&cm(e,e.stylesheets),e.unsuspend){var s=e.unsuspend;e.unsuspend=null,s()}},SE+t);0<e.imgBytes&&ob===0&&(ob=125*aM()*LE);var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&cm(e,e.stylesheets),e.unsuspend)){var s=e.unsuspend;e.unsuspend=null,s()}},(e.imgBytes>ob?50:kE)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(o),clearTimeout(n)}}:null}function dm(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)cm(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}function cm(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,gh=new Map,t.forEach(RM,e),gh=null,dm.call(e))}function RM(e,t){if(!(t.state.loading&qr)){var a=gh.get(e);if(a)var o=a.get(rb);else{a=new Map,gh.set(e,a);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),s=0;s<n.length;s++){var c=n[s];if(c.nodeName==="LINK"||c.getAttribute("media")!=="not all")a.set(c.dataset.precedence,c),o=c}o&&a.set(rb,o)}n=t.instance,c=n.getAttribute("data-precedence"),s=a.get(c)||o,s===o&&a.set(rb,n),a.set(c,n),this.count++,o=dm.bind(this),n.addEventListener("load",o),n.addEventListener("error",o),s?s.parentNode.insertBefore(n,s.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=qr}}function AM(e,t,a,o,n,s,c,p,x){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=Li,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Yi(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Yi(0),this.hiddenUpdates=Yi(null),this.identifierPrefix=o,this.onUncaughtError=n,this.onCaughtError=s,this.onRecoverableError=c,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=x,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,e=this.pendingUpdatersLaneMap=[];for(t=0;31>t;t++)e.push(new Set);this._debugRootType=a?"hydrateRoot()":"createRoot()"}function ML(e,t,a,o,n,s,c,p,x,k,q,B){return e=new AM(e,t,a,c,x,k,q,B,p),t=YD,s===!0&&(t|=Io|Xr),t|=mt,s=L(3,null,null,t),e.current=s,s.stateNode=e,t=Jg(),Ql(t),e.pooledCache=t,Ql(t),s.memoizedState={element:o,isDehydrated:a,cache:t},ry(s),e}function DL(e){if(!e)return ol;return e=ol,e}function Tv(e,t,a,o,n,s){if(To&&typeof To.onScheduleFiberRoot==="function")try{To.onScheduleFiberRoot(gu,o,a)}catch(c){Mn||(Mn=!0,console.error("React instrumentation encountered an error: %o",c))}n=DL(n),o.context===null?o.context=n:o.pendingContext=n,An&&ir!==null&&!y1&&(y1=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
183
183
 
184
- Check the render method of %s.`,V(ir)||"Unknown")),o=Fs(t),o.payload={element:a},s=s===void 0?null:s,s!==null&&(typeof s!=="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",s),o.callback=s),a=Gs(e,o,t),a!==null&&(mn(t,"root.render()",null),Ra(a,e,t),Bd(a,e,t))}function EL(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Iv(e,t){EL(e,t),(e=e.alternate)&&EL(e,t)}function NL(e){if(e.tag===13||e.tag===31){var t=Co(e,67108864);t!==null&&Ra(t,e,67108864),Iv(e,67108864)}}function qL(e){if(e.tag===13||e.tag===31){var t=nr(e);t=Hl(t);var a=Co(e,t);a!==null&&Ra(a,e,t),Iv(e,t)}}function MM(){return ir}function DM(e,t,a,o){var n=K.T;K.T=null;var s=Jt.p;try{Jt.p=ur,Rv(e,t,a,o)}finally{Jt.p=s,K.T=n}}function EM(e,t,a,o){var n=K.T;K.T=null;var s=Jt.p;try{Jt.p=$r,Rv(e,t,a,o)}finally{Jt.p=s,K.T=n}}function Rv(e,t,a,o){if(vh){var n=Av(o);if(n===null)pv(e,t,o,xh,a),BL(e,o);else if(NM(n,e,t,a,o))o.stopPropagation();else if(BL(e,o),t&4&&-1<CE.indexOf(e)){for(;n!==null;){var s=rt(n);if(s!==null)switch(s.tag){case 3:if(s=s.stateNode,s.current.memoizedState.isDehydrated){var c=Bt(s.pendingLanes);if(c!==0){var p=s;p.pendingLanes|=2;for(p.entangledLanes|=2;c;){var x=1<<31-Eo(c);p.entanglements[1]|=x,c&=~x}Cn(s),(Ut&(ao|pr))===uo&&(th=so()+jC,Qd(0,!1))}}break;case 31:case 13:p=Co(s,2),p!==null&&Ra(p,s,2),lu(),Iv(s,2)}if(s=Av(o),s===null&&pv(e,t,o,xh,a),s===n)break;n=s}n!==null&&o.stopPropagation()}else pv(e,t,o,null,a)}}function Av(e){return e=Og(e),Mv(e)}function Mv(e){if(xh=null,e=Ae(e),e!==null){var t=O(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=z(t),e!==null)return e;e=null}else if(a===31){if(e=Y(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 xh=e,null}function OL(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 ur;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 $r;case"message":switch(FM()){case Gv:return ur;case Vv:return $r;case hu:case GM:return En;case jv:return Sm;default:return En}default:return En}}function BL(e,t){switch(e){case"focusin":case"focusout":bl=null;break;case"dragenter":case"dragleave":Sl=null;break;case"mouseover":case"mouseout":kl=null;break;case"pointerover":case"pointerout":Wc.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Zc.delete(t.pointerId)}}function oc(e,t,a,o,n,s){if(e===null||e.nativeEvent!==s)return e={blockedOn:t,domEventName:a,eventSystemFlags:o,nativeEvent:s,targetContainers:[n]},t!==null&&(t=rt(t),t!==null&&NL(t)),e;return e.eventSystemFlags|=o,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e}function NM(e,t,a,o,n){switch(t){case"focusin":return bl=oc(bl,e,t,a,o,n),!0;case"dragenter":return Sl=oc(Sl,e,t,a,o,n),!0;case"mouseover":return kl=oc(kl,e,t,a,o,n),!0;case"pointerover":var s=n.pointerId;return Wc.set(s,oc(Wc.get(s)||null,e,t,a,o,n)),!0;case"gotpointercapture":return s=n.pointerId,Zc.set(s,oc(Zc.get(s)||null,e,t,a,o,n)),!0}return!1}function zL(e){var t=Ae(e.target);if(t!==null){var a=O(t);if(a!==null){if(t=a.tag,t===13){if(t=z(a),t!==null){e.blockedOn=t,le(e.priority,function(){qL(a)});return}}else if(t===31){if(t=Y(a),t!==null){e.blockedOn=t,le(e.priority,function(){qL(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 fm(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Av(e.nativeEvent);if(a===null){a=e.nativeEvent;var o=new a.constructor(a.type,a),n=o;ic!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),ic=n,a.target.dispatchEvent(o),ic===null&&console.error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),ic=null}else return t=rt(a),t!==null&&NL(t),e.blockedOn=a,!1;t.shift()}return!0}function PL(e,t,a){fm(e)&&a.delete(t)}function qM(){nb=!1,bl!==null&&fm(bl)&&(bl=null),Sl!==null&&fm(Sl)&&(Sl=null),kl!==null&&fm(kl)&&(kl=null),Wc.forEach(PL),Zc.forEach(PL)}function pm(e,t){e.blockedOn===t&&(e.blockedOn=null,nb||(nb=!0,Ht.unstable_scheduleCallback(Ht.unstable_NormalPriority,qM)))}function UL(e){bh!==e&&(bh=e,Ht.unstable_scheduleCallback(Ht.unstable_NormalPriority,function(){bh===e&&(bh=null);for(var t=0;t<e.length;t+=3){var a=e[t],o=e[t+1],n=e[t+2];if(typeof o!=="function")if(Mv(o||a)===null)continue;else break;var s=rt(a);s!==null&&(e.splice(t,3),t-=3,a={pending:!0,data:n,method:a.method,action:o},Object.freeze(a),My(s,a,o,n))}}))}function fu(e){function t(x){return pm(x,e)}bl!==null&&pm(bl,e),Sl!==null&&pm(Sl,e),kl!==null&&pm(kl,e),Wc.forEach(t),Zc.forEach(t);for(var a=0;a<Ll.length;a++){var o=Ll[a];o.blockedOn===e&&(o.blockedOn=null)}for(;0<Ll.length&&(a=Ll[0],a.blockedOn===null);)zL(a),a.blockedOn===null&&Ll.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(o=0;o<a.length;o+=3){var n=a[o],s=a[o+1],c=n[No]||null;if(typeof s==="function")c||UL(a);else if(c){var p=null;if(s&&s.hasAttribute("formAction")){if(n=s,c=s[No]||null)p=c.formAction;else if(Mv(n)!==null)continue}else p=c.action;typeof p==="function"?a[o+1]=p:(a.splice(o,3),o-=3),UL(a)}}}function _L(){function e(s){s.canIntercept&&s.info==="react-transition"&&s.intercept({handler:function(){return new Promise(function(c){return n=c})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),o||setTimeout(a,20)}function a(){if(!o&&!navigation.transition){var s=navigation.currentEntry;s&&s.url!=null&&navigation.navigate(s.url,{state:s.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation==="object"){var o=!1,n=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){o=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),n!==null&&(n(),n=null)}}}function Dv(e){this._internalRoot=e}function mm(e){this._internalRoot=e}function HL(e){e[Js]&&(e._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var Lt=Object.assign,OM=Symbol.for("react.element"),In=Symbol.for("react.transitional.element"),pu=Symbol.for("react.portal"),mu=Symbol.for("react.fragment"),hm=Symbol.for("react.strict_mode"),Ev=Symbol.for("react.profiler"),Nv=Symbol.for("react.consumer"),Rn=Symbol.for("react.context"),rc=Symbol.for("react.forward_ref"),qv=Symbol.for("react.suspense"),Ov=Symbol.for("react.suspense_list"),gm=Symbol.for("react.memo"),lr=Symbol.for("react.lazy"),Bv=Symbol.for("react.activity"),BM=Symbol.for("react.memo_cache_sentinel"),FL=Symbol.iterator,zM=Symbol.for("react.client.reference"),eo=Array.isArray,K=Wu.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Jt=lb.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,PM=Object.freeze({pending:!1,data:null,method:null,action:null}),zv=[],Pv=[],ls=-1,Qs=Re(null),nc=Re(null),Ws=Re(null),ym=Re(null),sc=0,GL,VL,jL,$L,XL,YL,KL;Q.__reactDisabledLog=!0;var Uv,QL,_v=!1,Hv=new(typeof WeakMap==="function"?WeakMap:Map),ir=null,An=!1,jr=Object.prototype.hasOwnProperty,Fv=Ht.unstable_scheduleCallback,UM=Ht.unstable_cancelCallback,_M=Ht.unstable_shouldYield,HM=Ht.unstable_requestPaint,so=Ht.unstable_now,FM=Ht.unstable_getCurrentPriorityLevel,Gv=Ht.unstable_ImmediatePriority,Vv=Ht.unstable_UserBlockingPriority,hu=Ht.unstable_NormalPriority,GM=Ht.unstable_LowPriority,jv=Ht.unstable_IdlePriority,VM=Ht.log,jM=Ht.unstable_setDisableYieldValue,gu=null,To=null,Mn=!1,Dn=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",Eo=Math.clz32?Math.clz32:$i,{log:$M,LN2:XM}=Math,vm=256,xm=262144,bm=4194304,ur=2,$r=8,En=32,Sm=268435456,Zs=Math.random().toString(36).slice(2),xo="__reactFiber$"+Zs,No="__reactProps$"+Zs,Js="__reactContainer$"+Zs,$v="__reactEvents$"+Zs,YM="__reactListeners$"+Zs,KM="__reactHandles$"+Zs,WL="__reactResources$"+Zs,lc="__reactMarker$"+Zs,ZL=new Set,oi={},Xv={},QM={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},WM=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]*$"),JL={},ew={},ZM=/[\n"\\]/g,tw=!1,aw=!1,ow=!1,rw=!1,nw=!1,sw=!1,lw=["value","defaultValue"],iw=!1,uw=/["'&<>\n\t]|^\s|\s$/,JM="address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp".split(" "),dw="applet caption html table td th marquee object template foreignObject desc title".split(" "),eD=dw.concat(["button"]),tD="dd dt li option optgroup p rp rt".split(" "),cw={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},km={},Yv={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split(" "),fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split(" "),maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},fw=/([A-Z])/g,pw=/^ms-/,aD=/^(?:webkit|moz|o)[A-Z]/,oD=/^-ms-/,rD=/-(.)/g,mw=/;\s*$/,yu={},Kv={},hw=!1,gw=!1,yw=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(" ")),Lm="http://www.w3.org/1998/Math/MathML",vu="http://www.w3.org/2000/svg",nD=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"]]),wm={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},vw={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0,"aria-braillelabel":0,"aria-brailleroledescription":0,"aria-colindextext":0,"aria-rowindextext":0},xu={},sD=RegExp("^(aria)-[: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]*$"),lD=RegExp("^(aria)[A-Z][: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]*$"),xw=!1,qo={},bw=/^on./,iD=/^on[^A-Z]/,uD=RegExp("^(aria)-[: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]*$"),dD=RegExp("^(aria)[A-Z][: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]*$"),cD=/^[\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,ic=null,bu=null,Su=null,Qv=!1,Nn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Wv=!1;if(Nn)try{var uc={};Object.defineProperty(uc,"passive",{get:function(){Wv=!0}}),window.addEventListener("test",uc,uc),window.removeEventListener("test",uc,uc)}catch(e){Wv=!1}var el=null,Zv=null,Cm=null,ri={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Tm=Fo(ri),dc=Lt({},ri,{view:0,detail:0}),fD=Fo(dc),Jv,ex,cc,Im=Lt({},dc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Bg,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){if("movementX"in e)return e.movementX;return e!==cc&&(cc&&e.type==="mousemove"?(Jv=e.screenX-cc.screenX,ex=e.screenY-cc.screenY):ex=Jv=0,cc=e),Jv},movementY:function(e){return"movementY"in e?e.movementY:ex}}),Sw=Fo(Im),pD=Lt({},Im,{dataTransfer:0}),mD=Fo(pD),hD=Lt({},dc,{relatedTarget:0}),tx=Fo(hD),gD=Lt({},ri,{animationName:0,elapsedTime:0,pseudoElement:0}),yD=Fo(gD),vD=Lt({},ri,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),xD=Fo(vD),bD=Lt({},ri,{data:0}),kw=Fo(bD),SD=kw,kD={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},LD={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"},wD={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},CD=Lt({},dc,{key:function(e){if(e.key){var t=kD[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=fp(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?LD[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Bg,charCode:function(e){return e.type==="keypress"?fp(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?fp(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),TD=Fo(CD),ID=Lt({},Im,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Lw=Fo(ID),RD=Lt({},dc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Bg}),AD=Fo(RD),MD=Lt({},ri,{propertyName:0,elapsedTime:0,pseudoElement:0}),DD=Fo(MD),ED=Lt({},Im,{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}),ND=Fo(ED),qD=Lt({},ri,{newState:0,oldState:0}),OD=Fo(qD),BD=[9,13,27,32],ww=229,ax=Nn&&"CompositionEvent"in window,fc=null;Nn&&"documentMode"in document&&(fc=document.documentMode);var zD=Nn&&"TextEvent"in window&&!fc,Cw=Nn&&(!ax||fc&&8<fc&&11>=fc),Tw=32,Iw=String.fromCharCode(Tw),Rw=!1,ku=!1,PD={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},pc=null,mc=null,Aw=!1;Nn&&(Aw=nA("input")&&(!document.documentMode||9<document.documentMode));var Oo=typeof Object.is==="function"?Object.is:cA,UD=Nn&&"documentMode"in document&&11>=document.documentMode,Lu=null,ox=null,hc=null,rx=!1,wu={animationend:Gl("Animation","AnimationEnd"),animationiteration:Gl("Animation","AnimationIteration"),animationstart:Gl("Animation","AnimationStart"),transitionrun:Gl("Transition","TransitionRun"),transitionstart:Gl("Transition","TransitionStart"),transitioncancel:Gl("Transition","TransitionCancel"),transitionend:Gl("Transition","TransitionEnd")},nx={},Mw={};Nn&&(Mw=document.createElement("div").style,("AnimationEvent"in window)||(delete wu.animationend.animation,delete wu.animationiteration.animation,delete wu.animationstart.animation),("TransitionEvent"in window)||delete wu.transitionend.transition);var Dw=Vl("animationend"),Ew=Vl("animationiteration"),Nw=Vl("animationstart"),_D=Vl("transitionrun"),HD=Vl("transitionstart"),FD=Vl("transitioncancel"),qw=Vl("transitionend"),Ow=new Map,sx="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(" ");sx.push("scrollEnd");var Bw=0;if(typeof performance==="object"&&typeof performance.now==="function")var GD=performance,zw=function(){return GD.now()};else{var VD=Date;zw=function(){return VD.now()}}var lx=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)},jD="This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.",Rm=0,ix=1,ux=2,dx=3,Am="– ",Mm="+ ",Pw="  ",ya=typeof console<"u"&&typeof console.timeStamp==="function"&&typeof performance<"u"&&typeof performance.measure==="function",wr="Components ⚛",wt="Scheduler ⚛",Tt="Blocking",tl=!1,is={color:"primary",properties:null,tooltipText:"",track:wr},al={start:-0,end:-0,detail:{devtools:is}},$D=["Changed Props",""],Uw="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",XD=["Changed Props",Uw],gc=1,us=2,Cr=[],Cu=0,cx=0,ol={};Object.freeze(ol);var Tr=null,Tu=null,Ze=0,YD=1,mt=2,Io=8,Xr=16,KD=32,_w=!1;try{var Hw=Object.preventExtensions({})}catch(e){_w=!0}var fx=new WeakMap,Iu=[],Ru=0,Dm=null,yc=0,Ir=[],Rr=0,ni=null,ds=1,cs="",bo=null,va=null,Rt=!1,qn=!1,dr=null,rl=null,Ar=!1,px=Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),mx=Re(null),hx=Re(null),Fw={},Em=null,Au=null,Mu=!1,QD=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,o){e.push(o)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},WD=Ht.unstable_scheduleCallback,ZD=Ht.unstable_NormalPriority,$a={$$typeof:Rn,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},Xa=Ht.unstable_now,Nm=console.createTask?console.createTask:function(){return null},vc=1,qm=2,lo=-0,nl=-0,fs=-0,ps=null,Bo=-1.1,si=-0,Ca=-0,Ue=-1.1,$e=-1.1,La=null,Aa=!1,sl=-0,On=-1.1,xc=null,ll=0,gx=null,yx=null,li=-1.1,bc=null,Du=-1.1,Om=-1.1,Bn=-0,ms=-1.1,Mr=-1.1,vx=0,Sc=null,Gw=null,Vw=null,il=-1.1,ii=null,ul=-1.1,Bm=-1.1,jw=-0,$w=-0,zm=0,hs=null,Xw=0,kc=-1.1,Pm=!1,Um=!1,Lc=null,xx=0,ui=0,Eu=null,Yw=K.S;K.S=function(e,t){if(GC=so(),typeof t==="object"&&t!==null&&typeof t.then==="function"){if(0>ms&&0>Mr){ms=Xa();var a=Jd(),o=Zd();if(a!==ul||o!==ii)ul=-1.1;il=a,ii=o}vA(e,t)}Yw!==null&&Yw(e,t)};var di=Re(null),Yr={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},wc=[],Cc=[],Tc=[],Ic=[],Rc=[],Ac=[],ci=new Set;Yr.recordUnsafeLifecycleWarnings=function(e,t){ci.has(e.type)||(typeof t.componentWillMount==="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&wc.push(e),e.mode&Io&&typeof t.UNSAFE_componentWillMount==="function"&&Cc.push(e),typeof t.componentWillReceiveProps==="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&Tc.push(e),e.mode&Io&&typeof t.UNSAFE_componentWillReceiveProps==="function"&&Ic.push(e),typeof t.componentWillUpdate==="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&Rc.push(e),e.mode&Io&&typeof t.UNSAFE_componentWillUpdate==="function"&&Ac.push(e))},Yr.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;0<wc.length&&(wc.forEach(function(p){e.add(V(p)||"Component"),ci.add(p.type)}),wc=[]);var t=new Set;0<Cc.length&&(Cc.forEach(function(p){t.add(V(p)||"Component"),ci.add(p.type)}),Cc=[]);var a=new Set;0<Tc.length&&(Tc.forEach(function(p){a.add(V(p)||"Component"),ci.add(p.type)}),Tc=[]);var o=new Set;0<Ic.length&&(Ic.forEach(function(p){o.add(V(p)||"Component"),ci.add(p.type)}),Ic=[]);var n=new Set;0<Rc.length&&(Rc.forEach(function(p){n.add(V(p)||"Component"),ci.add(p.type)}),Rc=[]);var s=new Set;if(0<Ac.length&&(Ac.forEach(function(p){s.add(V(p)||"Component"),ci.add(p.type)}),Ac=[]),0<t.size){var c=b(t);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
184
+ Check the render method of %s.`,V(ir)||"Unknown")),o=Fs(t),o.payload={element:a},s=s===void 0?null:s,s!==null&&(typeof s!=="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",s),o.callback=s),a=Gs(e,o,t),a!==null&&(mn(t,"root.render()",null),Ra(a,e,t),Bd(a,e,t))}function EL(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Iv(e,t){EL(e,t),(e=e.alternate)&&EL(e,t)}function NL(e){if(e.tag===13||e.tag===31){var t=Co(e,67108864);t!==null&&Ra(t,e,67108864),Iv(e,67108864)}}function qL(e){if(e.tag===13||e.tag===31){var t=nr(e);t=Hl(t);var a=Co(e,t);a!==null&&Ra(a,e,t),Iv(e,t)}}function MM(){return ir}function DM(e,t,a,o){var n=K.T;K.T=null;var s=Jt.p;try{Jt.p=ur,Rv(e,t,a,o)}finally{Jt.p=s,K.T=n}}function EM(e,t,a,o){var n=K.T;K.T=null;var s=Jt.p;try{Jt.p=$r,Rv(e,t,a,o)}finally{Jt.p=s,K.T=n}}function Rv(e,t,a,o){if(vh){var n=Av(o);if(n===null)pv(e,t,o,xh,a),BL(e,o);else if(NM(n,e,t,a,o))o.stopPropagation();else if(BL(e,o),t&4&&-1<CE.indexOf(e)){for(;n!==null;){var s=rt(n);if(s!==null)switch(s.tag){case 3:if(s=s.stateNode,s.current.memoizedState.isDehydrated){var c=Bt(s.pendingLanes);if(c!==0){var p=s;p.pendingLanes|=2;for(p.entangledLanes|=2;c;){var x=1<<31-Eo(c);p.entanglements[1]|=x,c&=~x}Cn(s),(Ut&(ao|pr))===uo&&(th=so()+jC,Qd(0,!1))}}break;case 31:case 13:p=Co(s,2),p!==null&&Ra(p,s,2),lu(),Iv(s,2)}if(s=Av(o),s===null&&pv(e,t,o,xh,a),s===n)break;n=s}n!==null&&o.stopPropagation()}else pv(e,t,o,null,a)}}function Av(e){return e=Og(e),Mv(e)}function Mv(e){if(xh=null,e=Ae(e),e!==null){var t=O(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=P(t),e!==null)return e;e=null}else if(a===31){if(e=Y(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 xh=e,null}function OL(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 ur;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 $r;case"message":switch(FM()){case Gv:return ur;case Vv:return $r;case hu:case GM:return En;case jv:return Sm;default:return En}default:return En}}function BL(e,t){switch(e){case"focusin":case"focusout":bl=null;break;case"dragenter":case"dragleave":Sl=null;break;case"mouseover":case"mouseout":kl=null;break;case"pointerover":case"pointerout":Wc.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Zc.delete(t.pointerId)}}function oc(e,t,a,o,n,s){if(e===null||e.nativeEvent!==s)return e={blockedOn:t,domEventName:a,eventSystemFlags:o,nativeEvent:s,targetContainers:[n]},t!==null&&(t=rt(t),t!==null&&NL(t)),e;return e.eventSystemFlags|=o,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e}function NM(e,t,a,o,n){switch(t){case"focusin":return bl=oc(bl,e,t,a,o,n),!0;case"dragenter":return Sl=oc(Sl,e,t,a,o,n),!0;case"mouseover":return kl=oc(kl,e,t,a,o,n),!0;case"pointerover":var s=n.pointerId;return Wc.set(s,oc(Wc.get(s)||null,e,t,a,o,n)),!0;case"gotpointercapture":return s=n.pointerId,Zc.set(s,oc(Zc.get(s)||null,e,t,a,o,n)),!0}return!1}function PL(e){var t=Ae(e.target);if(t!==null){var a=O(t);if(a!==null){if(t=a.tag,t===13){if(t=P(a),t!==null){e.blockedOn=t,le(e.priority,function(){qL(a)});return}}else if(t===31){if(t=Y(a),t!==null){e.blockedOn=t,le(e.priority,function(){qL(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 fm(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Av(e.nativeEvent);if(a===null){a=e.nativeEvent;var o=new a.constructor(a.type,a),n=o;ic!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),ic=n,a.target.dispatchEvent(o),ic===null&&console.error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),ic=null}else return t=rt(a),t!==null&&NL(t),e.blockedOn=a,!1;t.shift()}return!0}function zL(e,t,a){fm(e)&&a.delete(t)}function qM(){nb=!1,bl!==null&&fm(bl)&&(bl=null),Sl!==null&&fm(Sl)&&(Sl=null),kl!==null&&fm(kl)&&(kl=null),Wc.forEach(zL),Zc.forEach(zL)}function pm(e,t){e.blockedOn===t&&(e.blockedOn=null,nb||(nb=!0,Ht.unstable_scheduleCallback(Ht.unstable_NormalPriority,qM)))}function UL(e){bh!==e&&(bh=e,Ht.unstable_scheduleCallback(Ht.unstable_NormalPriority,function(){bh===e&&(bh=null);for(var t=0;t<e.length;t+=3){var a=e[t],o=e[t+1],n=e[t+2];if(typeof o!=="function")if(Mv(o||a)===null)continue;else break;var s=rt(a);s!==null&&(e.splice(t,3),t-=3,a={pending:!0,data:n,method:a.method,action:o},Object.freeze(a),My(s,a,o,n))}}))}function fu(e){function t(x){return pm(x,e)}bl!==null&&pm(bl,e),Sl!==null&&pm(Sl,e),kl!==null&&pm(kl,e),Wc.forEach(t),Zc.forEach(t);for(var a=0;a<Ll.length;a++){var o=Ll[a];o.blockedOn===e&&(o.blockedOn=null)}for(;0<Ll.length&&(a=Ll[0],a.blockedOn===null);)PL(a),a.blockedOn===null&&Ll.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(o=0;o<a.length;o+=3){var n=a[o],s=a[o+1],c=n[No]||null;if(typeof s==="function")c||UL(a);else if(c){var p=null;if(s&&s.hasAttribute("formAction")){if(n=s,c=s[No]||null)p=c.formAction;else if(Mv(n)!==null)continue}else p=c.action;typeof p==="function"?a[o+1]=p:(a.splice(o,3),o-=3),UL(a)}}}function _L(){function e(s){s.canIntercept&&s.info==="react-transition"&&s.intercept({handler:function(){return new Promise(function(c){return n=c})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),o||setTimeout(a,20)}function a(){if(!o&&!navigation.transition){var s=navigation.currentEntry;s&&s.url!=null&&navigation.navigate(s.url,{state:s.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation==="object"){var o=!1,n=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){o=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),n!==null&&(n(),n=null)}}}function Dv(e){this._internalRoot=e}function mm(e){this._internalRoot=e}function HL(e){e[Js]&&(e._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var Lt=Object.assign,OM=Symbol.for("react.element"),In=Symbol.for("react.transitional.element"),pu=Symbol.for("react.portal"),mu=Symbol.for("react.fragment"),hm=Symbol.for("react.strict_mode"),Ev=Symbol.for("react.profiler"),Nv=Symbol.for("react.consumer"),Rn=Symbol.for("react.context"),rc=Symbol.for("react.forward_ref"),qv=Symbol.for("react.suspense"),Ov=Symbol.for("react.suspense_list"),gm=Symbol.for("react.memo"),lr=Symbol.for("react.lazy"),Bv=Symbol.for("react.activity"),BM=Symbol.for("react.memo_cache_sentinel"),FL=Symbol.iterator,PM=Symbol.for("react.client.reference"),eo=Array.isArray,K=Wu.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Jt=lb.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,zM=Object.freeze({pending:!1,data:null,method:null,action:null}),Pv=[],zv=[],ls=-1,Qs=Re(null),nc=Re(null),Ws=Re(null),ym=Re(null),sc=0,GL,VL,jL,$L,XL,YL,KL;Q.__reactDisabledLog=!0;var Uv,QL,_v=!1,Hv=new(typeof WeakMap==="function"?WeakMap:Map),ir=null,An=!1,jr=Object.prototype.hasOwnProperty,Fv=Ht.unstable_scheduleCallback,UM=Ht.unstable_cancelCallback,_M=Ht.unstable_shouldYield,HM=Ht.unstable_requestPaint,so=Ht.unstable_now,FM=Ht.unstable_getCurrentPriorityLevel,Gv=Ht.unstable_ImmediatePriority,Vv=Ht.unstable_UserBlockingPriority,hu=Ht.unstable_NormalPriority,GM=Ht.unstable_LowPriority,jv=Ht.unstable_IdlePriority,VM=Ht.log,jM=Ht.unstable_setDisableYieldValue,gu=null,To=null,Mn=!1,Dn=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",Eo=Math.clz32?Math.clz32:$i,{log:$M,LN2:XM}=Math,vm=256,xm=262144,bm=4194304,ur=2,$r=8,En=32,Sm=268435456,Zs=Math.random().toString(36).slice(2),xo="__reactFiber$"+Zs,No="__reactProps$"+Zs,Js="__reactContainer$"+Zs,$v="__reactEvents$"+Zs,YM="__reactListeners$"+Zs,KM="__reactHandles$"+Zs,WL="__reactResources$"+Zs,lc="__reactMarker$"+Zs,ZL=new Set,oi={},Xv={},QM={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},WM=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]*$"),JL={},ew={},ZM=/[\n"\\]/g,tw=!1,aw=!1,ow=!1,rw=!1,nw=!1,sw=!1,lw=["value","defaultValue"],iw=!1,uw=/["'&<>\n\t]|^\s|\s$/,JM="address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp".split(" "),dw="applet caption html table td th marquee object template foreignObject desc title".split(" "),eD=dw.concat(["button"]),tD="dd dt li option optgroup p rp rt".split(" "),cw={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},km={},Yv={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split(" "),fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split(" "),maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},fw=/([A-Z])/g,pw=/^ms-/,aD=/^(?:webkit|moz|o)[A-Z]/,oD=/^-ms-/,rD=/-(.)/g,mw=/;\s*$/,yu={},Kv={},hw=!1,gw=!1,yw=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(" ")),Lm="http://www.w3.org/1998/Math/MathML",vu="http://www.w3.org/2000/svg",nD=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"]]),wm={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},vw={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0,"aria-braillelabel":0,"aria-brailleroledescription":0,"aria-colindextext":0,"aria-rowindextext":0},xu={},sD=RegExp("^(aria)-[: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]*$"),lD=RegExp("^(aria)[A-Z][: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]*$"),xw=!1,qo={},bw=/^on./,iD=/^on[^A-Z]/,uD=RegExp("^(aria)-[: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]*$"),dD=RegExp("^(aria)[A-Z][: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]*$"),cD=/^[\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,ic=null,bu=null,Su=null,Qv=!1,Nn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Wv=!1;if(Nn)try{var uc={};Object.defineProperty(uc,"passive",{get:function(){Wv=!0}}),window.addEventListener("test",uc,uc),window.removeEventListener("test",uc,uc)}catch(e){Wv=!1}var el=null,Zv=null,Cm=null,ri={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Tm=Fo(ri),dc=Lt({},ri,{view:0,detail:0}),fD=Fo(dc),Jv,ex,cc,Im=Lt({},dc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Bg,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){if("movementX"in e)return e.movementX;return e!==cc&&(cc&&e.type==="mousemove"?(Jv=e.screenX-cc.screenX,ex=e.screenY-cc.screenY):ex=Jv=0,cc=e),Jv},movementY:function(e){return"movementY"in e?e.movementY:ex}}),Sw=Fo(Im),pD=Lt({},Im,{dataTransfer:0}),mD=Fo(pD),hD=Lt({},dc,{relatedTarget:0}),tx=Fo(hD),gD=Lt({},ri,{animationName:0,elapsedTime:0,pseudoElement:0}),yD=Fo(gD),vD=Lt({},ri,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),xD=Fo(vD),bD=Lt({},ri,{data:0}),kw=Fo(bD),SD=kw,kD={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},LD={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"},wD={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},CD=Lt({},dc,{key:function(e){if(e.key){var t=kD[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=fp(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?LD[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Bg,charCode:function(e){return e.type==="keypress"?fp(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?fp(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),TD=Fo(CD),ID=Lt({},Im,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Lw=Fo(ID),RD=Lt({},dc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Bg}),AD=Fo(RD),MD=Lt({},ri,{propertyName:0,elapsedTime:0,pseudoElement:0}),DD=Fo(MD),ED=Lt({},Im,{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}),ND=Fo(ED),qD=Lt({},ri,{newState:0,oldState:0}),OD=Fo(qD),BD=[9,13,27,32],ww=229,ax=Nn&&"CompositionEvent"in window,fc=null;Nn&&"documentMode"in document&&(fc=document.documentMode);var PD=Nn&&"TextEvent"in window&&!fc,Cw=Nn&&(!ax||fc&&8<fc&&11>=fc),Tw=32,Iw=String.fromCharCode(Tw),Rw=!1,ku=!1,zD={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},pc=null,mc=null,Aw=!1;Nn&&(Aw=nA("input")&&(!document.documentMode||9<document.documentMode));var Oo=typeof Object.is==="function"?Object.is:cA,UD=Nn&&"documentMode"in document&&11>=document.documentMode,Lu=null,ox=null,hc=null,rx=!1,wu={animationend:Gl("Animation","AnimationEnd"),animationiteration:Gl("Animation","AnimationIteration"),animationstart:Gl("Animation","AnimationStart"),transitionrun:Gl("Transition","TransitionRun"),transitionstart:Gl("Transition","TransitionStart"),transitioncancel:Gl("Transition","TransitionCancel"),transitionend:Gl("Transition","TransitionEnd")},nx={},Mw={};Nn&&(Mw=document.createElement("div").style,("AnimationEvent"in window)||(delete wu.animationend.animation,delete wu.animationiteration.animation,delete wu.animationstart.animation),("TransitionEvent"in window)||delete wu.transitionend.transition);var Dw=Vl("animationend"),Ew=Vl("animationiteration"),Nw=Vl("animationstart"),_D=Vl("transitionrun"),HD=Vl("transitionstart"),FD=Vl("transitioncancel"),qw=Vl("transitionend"),Ow=new Map,sx="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(" ");sx.push("scrollEnd");var Bw=0;if(typeof performance==="object"&&typeof performance.now==="function")var GD=performance,Pw=function(){return GD.now()};else{var VD=Date;Pw=function(){return VD.now()}}var lx=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)},jD="This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.",Rm=0,ix=1,ux=2,dx=3,Am="– ",Mm="+ ",zw="  ",ya=typeof console<"u"&&typeof console.timeStamp==="function"&&typeof performance<"u"&&typeof performance.measure==="function",wr="Components ⚛",wt="Scheduler ⚛",Tt="Blocking",tl=!1,is={color:"primary",properties:null,tooltipText:"",track:wr},al={start:-0,end:-0,detail:{devtools:is}},$D=["Changed Props",""],Uw="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",XD=["Changed Props",Uw],gc=1,us=2,Cr=[],Cu=0,cx=0,ol={};Object.freeze(ol);var Tr=null,Tu=null,Ze=0,YD=1,mt=2,Io=8,Xr=16,KD=32,_w=!1;try{var Hw=Object.preventExtensions({})}catch(e){_w=!0}var fx=new WeakMap,Iu=[],Ru=0,Dm=null,yc=0,Ir=[],Rr=0,ni=null,ds=1,cs="",bo=null,va=null,Rt=!1,qn=!1,dr=null,rl=null,Ar=!1,px=Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),mx=Re(null),hx=Re(null),Fw={},Em=null,Au=null,Mu=!1,QD=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,o){e.push(o)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},WD=Ht.unstable_scheduleCallback,ZD=Ht.unstable_NormalPriority,$a={$$typeof:Rn,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},Xa=Ht.unstable_now,Nm=console.createTask?console.createTask:function(){return null},vc=1,qm=2,lo=-0,nl=-0,fs=-0,ps=null,Bo=-1.1,si=-0,Ca=-0,Ue=-1.1,$e=-1.1,La=null,Aa=!1,sl=-0,On=-1.1,xc=null,ll=0,gx=null,yx=null,li=-1.1,bc=null,Du=-1.1,Om=-1.1,Bn=-0,ms=-1.1,Mr=-1.1,vx=0,Sc=null,Gw=null,Vw=null,il=-1.1,ii=null,ul=-1.1,Bm=-1.1,jw=-0,$w=-0,Pm=0,hs=null,Xw=0,kc=-1.1,zm=!1,Um=!1,Lc=null,xx=0,ui=0,Eu=null,Yw=K.S;K.S=function(e,t){if(GC=so(),typeof t==="object"&&t!==null&&typeof t.then==="function"){if(0>ms&&0>Mr){ms=Xa();var a=Jd(),o=Zd();if(a!==ul||o!==ii)ul=-1.1;il=a,ii=o}vA(e,t)}Yw!==null&&Yw(e,t)};var di=Re(null),Yr={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},wc=[],Cc=[],Tc=[],Ic=[],Rc=[],Ac=[],ci=new Set;Yr.recordUnsafeLifecycleWarnings=function(e,t){ci.has(e.type)||(typeof t.componentWillMount==="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&wc.push(e),e.mode&Io&&typeof t.UNSAFE_componentWillMount==="function"&&Cc.push(e),typeof t.componentWillReceiveProps==="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&Tc.push(e),e.mode&Io&&typeof t.UNSAFE_componentWillReceiveProps==="function"&&Ic.push(e),typeof t.componentWillUpdate==="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&Rc.push(e),e.mode&Io&&typeof t.UNSAFE_componentWillUpdate==="function"&&Ac.push(e))},Yr.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;0<wc.length&&(wc.forEach(function(p){e.add(V(p)||"Component"),ci.add(p.type)}),wc=[]);var t=new Set;0<Cc.length&&(Cc.forEach(function(p){t.add(V(p)||"Component"),ci.add(p.type)}),Cc=[]);var a=new Set;0<Tc.length&&(Tc.forEach(function(p){a.add(V(p)||"Component"),ci.add(p.type)}),Tc=[]);var o=new Set;0<Ic.length&&(Ic.forEach(function(p){o.add(V(p)||"Component"),ci.add(p.type)}),Ic=[]);var n=new Set;0<Rc.length&&(Rc.forEach(function(p){n.add(V(p)||"Component"),ci.add(p.type)}),Rc=[]);var s=new Set;if(0<Ac.length&&(Ac.forEach(function(p){s.add(V(p)||"Component"),ci.add(p.type)}),Ac=[]),0<t.size){var c=b(t);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
185
185
 
186
186
  * Move code with side effects to componentDidMount, and set initial state in the constructor.
187
187
 
@@ -220,21 +220,21 @@ Learn more about this warning here: https://react.dev/link/legacy-context`,o)})}
220
220
 
221
221
  Check the render method of \``+n+"`."),s||o&&(s=`
222
222
 
223
- Check the top-level render call using <`+o+">.");var c="";a!=null&&e!==a&&(o=null,typeof a.tag==="number"?o=V(a):typeof a.name==="string"&&(o=a.name),o&&(c=" It was passed a child from "+o+".")),H(t,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',s,c)})}}};var pi=oS(!0),fC=oS(!1),pC=0,mC=1,hC=2,wx=3,dl=!1,gC=!1,Cx=null,Tx=!1,Ou=Re(null),Gm=Re(0),cr=Re(null),Dr=null,Bu=1,Ec=2,Ha=Re(0),Vm=0,Er=1,zo=2,fr=4,Po=8,zu,yC=new Set,vC=new Set,Ix=new Set,xC=new Set,gs=0,at=null,na=null,Ya=null,jm=!1,Pu=!1,mi=!1,$m=0,Nc=0,ys=null,oE=0,rE=25,X=null,Nr=null,vs=-1,qc=!1,Oc={readContext:ka,use:$s,useCallback:Na,useContext:Na,useEffect:Na,useImperativeHandle:Na,useLayoutEffect:Na,useInsertionEffect:Na,useMemo:Na,useReducer:Na,useRef:Na,useState:Na,useDebugValue:Na,useDeferredValue:Na,useTransition:Na,useSyncExternalStore:Na,useId:Na,useHostTransitionStatus:Na,useFormState:Na,useActionState:Na,useOptimistic:Na,useMemoCache:Na,useCacheRefresh:Na};Oc.useEffectEvent=Na;var Rx=null,bC=null,Ax=null,SC=null,zn=null,Kr=null,Xm=null;Rx={readContext:function(e){return ka(e)},use:$s,useCallback:function(e,t){return X="useCallback",kt(),eu(t),Ty(e,t)},useContext:function(e){return X="useContext",kt(),ka(e)},useEffect:function(e,t){return X="useEffect",kt(),eu(t),_p(e,t)},useImperativeHandle:function(e,t,a){return X="useImperativeHandle",kt(),eu(a),Cy(e,t,a)},useInsertionEffect:function(e,t){X="useInsertionEffect",kt(),eu(t),Zl(4,zo,e,t)},useLayoutEffect:function(e,t){return X="useLayoutEffect",kt(),eu(t),wy(e,t)},useMemo:function(e,t){X="useMemo",kt(),eu(t);var a=K.H;K.H=zn;try{return Iy(e,t)}finally{K.H=a}},useReducer:function(e,t,a){X="useReducer",kt();var o=K.H;K.H=zn;try{return hy(e,t,a)}finally{K.H=o}},useRef:function(e){return X="useRef",kt(),ky(e)},useState:function(e){X="useState",kt();var t=K.H;K.H=zn;try{return xy(e)}finally{K.H=t}},useDebugValue:function(){X="useDebugValue",kt()},useDeferredValue:function(e,t){return X="useDeferredValue",kt(),Ry(e,t)},useTransition:function(){return X="useTransition",kt(),Dy()},useSyncExternalStore:function(e,t,a){return X="useSyncExternalStore",kt(),yy(e,t,a)},useId:function(){return X="useId",kt(),Ey()},useFormState:function(e,t){return X="useFormState",kt(),Op(),au(e,t)},useActionState:function(e,t){return X="useActionState",kt(),au(e,t)},useOptimistic:function(e){return X="useOptimistic",kt(),by(e)},useHostTransitionStatus:Jl,useMemoCache:Wl,useCacheRefresh:function(){return X="useCacheRefresh",kt(),Ny()},useEffectEvent:function(e){return X="useEffectEvent",kt(),Ly(e)}},bC={readContext:function(e){return ka(e)},use:$s,useCallback:function(e,t){return X="useCallback",ne(),Ty(e,t)},useContext:function(e){return X="useContext",ne(),ka(e)},useEffect:function(e,t){return X="useEffect",ne(),_p(e,t)},useImperativeHandle:function(e,t,a){return X="useImperativeHandle",ne(),Cy(e,t,a)},useInsertionEffect:function(e,t){X="useInsertionEffect",ne(),Zl(4,zo,e,t)},useLayoutEffect:function(e,t){return X="useLayoutEffect",ne(),wy(e,t)},useMemo:function(e,t){X="useMemo",ne();var a=K.H;K.H=zn;try{return Iy(e,t)}finally{K.H=a}},useReducer:function(e,t,a){X="useReducer",ne();var o=K.H;K.H=zn;try{return hy(e,t,a)}finally{K.H=o}},useRef:function(e){return X="useRef",ne(),ky(e)},useState:function(e){X="useState",ne();var t=K.H;K.H=zn;try{return xy(e)}finally{K.H=t}},useDebugValue:function(){X="useDebugValue",ne()},useDeferredValue:function(e,t){return X="useDeferredValue",ne(),Ry(e,t)},useTransition:function(){return X="useTransition",ne(),Dy()},useSyncExternalStore:function(e,t,a){return X="useSyncExternalStore",ne(),yy(e,t,a)},useId:function(){return X="useId",ne(),Ey()},useActionState:function(e,t){return X="useActionState",ne(),au(e,t)},useFormState:function(e,t){return X="useFormState",ne(),Op(),au(e,t)},useOptimistic:function(e){return X="useOptimistic",ne(),by(e)},useHostTransitionStatus:Jl,useMemoCache:Wl,useCacheRefresh:function(){return X="useCacheRefresh",ne(),Ny()},useEffectEvent:function(e){return X="useEffectEvent",ne(),Ly(e)}},Ax={readContext:function(e){return ka(e)},use:$s,useCallback:function(e,t){return X="useCallback",ne(),Gp(e,t)},useContext:function(e){return X="useContext",ne(),ka(e)},useEffect:function(e,t){X="useEffect",ne(),Go(2048,Po,e,t)},useImperativeHandle:function(e,t,a){return X="useImperativeHandle",ne(),Fp(e,t,a)},useInsertionEffect:function(e,t){return X="useInsertionEffect",ne(),Go(4,zo,e,t)},useLayoutEffect:function(e,t){return X="useLayoutEffect",ne(),Go(4,fr,e,t)},useMemo:function(e,t){X="useMemo",ne();var a=K.H;K.H=Kr;try{return Vp(e,t)}finally{K.H=a}},useReducer:function(e,t,a){X="useReducer",ne();var o=K.H;K.H=Kr;try{return tu(e,t,a)}finally{K.H=o}},useRef:function(){return X="useRef",ne(),ea().memoizedState},useState:function(){X="useState",ne();var e=K.H;K.H=Kr;try{return tu(Gr)}finally{K.H=e}},useDebugValue:function(){X="useDebugValue",ne()},useDeferredValue:function(e,t){return X="useDeferredValue",ne(),CS(e,t)},useTransition:function(){return X="useTransition",ne(),DS()},useSyncExternalStore:function(e,t,a){return X="useSyncExternalStore",ne(),zp(e,t,a)},useId:function(){return X="useId",ne(),ea().memoizedState},useFormState:function(e){return X="useFormState",ne(),Op(),Pp(e)},useActionState:function(e){return X="useActionState",ne(),Pp(e)},useOptimistic:function(e,t){return X="useOptimistic",ne(),hS(e,t)},useHostTransitionStatus:Jl,useMemoCache:Wl,useCacheRefresh:function(){return X="useCacheRefresh",ne(),ea().memoizedState},useEffectEvent:function(e){return X="useEffectEvent",ne(),Hp(e)}},SC={readContext:function(e){return ka(e)},use:$s,useCallback:function(e,t){return X="useCallback",ne(),Gp(e,t)},useContext:function(e){return X="useContext",ne(),ka(e)},useEffect:function(e,t){X="useEffect",ne(),Go(2048,Po,e,t)},useImperativeHandle:function(e,t,a){return X="useImperativeHandle",ne(),Fp(e,t,a)},useInsertionEffect:function(e,t){return X="useInsertionEffect",ne(),Go(4,zo,e,t)},useLayoutEffect:function(e,t){return X="useLayoutEffect",ne(),Go(4,fr,e,t)},useMemo:function(e,t){X="useMemo",ne();var a=K.H;K.H=Xm;try{return Vp(e,t)}finally{K.H=a}},useReducer:function(e,t,a){X="useReducer",ne();var o=K.H;K.H=Xm;try{return _d(e,t,a)}finally{K.H=o}},useRef:function(){return X="useRef",ne(),ea().memoizedState},useState:function(){X="useState",ne();var e=K.H;K.H=Xm;try{return _d(Gr)}finally{K.H=e}},useDebugValue:function(){X="useDebugValue",ne()},useDeferredValue:function(e,t){return X="useDeferredValue",ne(),TS(e,t)},useTransition:function(){return X="useTransition",ne(),ES()},useSyncExternalStore:function(e,t,a){return X="useSyncExternalStore",ne(),zp(e,t,a)},useId:function(){return X="useId",ne(),ea().memoizedState},useFormState:function(e){return X="useFormState",ne(),Op(),Up(e)},useActionState:function(e){return X="useActionState",ne(),Up(e)},useOptimistic:function(e,t){return X="useOptimistic",ne(),yS(e,t)},useHostTransitionStatus:Jl,useMemoCache:Wl,useCacheRefresh:function(){return X="useCacheRefresh",ne(),ea().memoizedState},useEffectEvent:function(e){return X="useEffectEvent",ne(),Hp(e)}},zn={readContext:function(e){return m(),ka(e)},use:function(e){return h(),$s(e)},useCallback:function(e,t){return X="useCallback",h(),kt(),Ty(e,t)},useContext:function(e){return X="useContext",h(),kt(),ka(e)},useEffect:function(e,t){return X="useEffect",h(),kt(),_p(e,t)},useImperativeHandle:function(e,t,a){return X="useImperativeHandle",h(),kt(),Cy(e,t,a)},useInsertionEffect:function(e,t){X="useInsertionEffect",h(),kt(),Zl(4,zo,e,t)},useLayoutEffect:function(e,t){return X="useLayoutEffect",h(),kt(),wy(e,t)},useMemo:function(e,t){X="useMemo",h(),kt();var a=K.H;K.H=zn;try{return Iy(e,t)}finally{K.H=a}},useReducer:function(e,t,a){X="useReducer",h(),kt();var o=K.H;K.H=zn;try{return hy(e,t,a)}finally{K.H=o}},useRef:function(e){return X="useRef",h(),kt(),ky(e)},useState:function(e){X="useState",h(),kt();var t=K.H;K.H=zn;try{return xy(e)}finally{K.H=t}},useDebugValue:function(){X="useDebugValue",h(),kt()},useDeferredValue:function(e,t){return X="useDeferredValue",h(),kt(),Ry(e,t)},useTransition:function(){return X="useTransition",h(),kt(),Dy()},useSyncExternalStore:function(e,t,a){return X="useSyncExternalStore",h(),kt(),yy(e,t,a)},useId:function(){return X="useId",h(),kt(),Ey()},useFormState:function(e,t){return X="useFormState",h(),kt(),au(e,t)},useActionState:function(e,t){return X="useActionState",h(),kt(),au(e,t)},useOptimistic:function(e){return X="useOptimistic",h(),kt(),by(e)},useMemoCache:function(e){return h(),Wl(e)},useHostTransitionStatus:Jl,useCacheRefresh:function(){return X="useCacheRefresh",kt(),Ny()},useEffectEvent:function(e){return X="useEffectEvent",h(),kt(),Ly(e)}},Kr={readContext:function(e){return m(),ka(e)},use:function(e){return h(),$s(e)},useCallback:function(e,t){return X="useCallback",h(),ne(),Gp(e,t)},useContext:function(e){return X="useContext",h(),ne(),ka(e)},useEffect:function(e,t){X="useEffect",h(),ne(),Go(2048,Po,e,t)},useImperativeHandle:function(e,t,a){return X="useImperativeHandle",h(),ne(),Fp(e,t,a)},useInsertionEffect:function(e,t){return X="useInsertionEffect",h(),ne(),Go(4,zo,e,t)},useLayoutEffect:function(e,t){return X="useLayoutEffect",h(),ne(),Go(4,fr,e,t)},useMemo:function(e,t){X="useMemo",h(),ne();var a=K.H;K.H=Kr;try{return Vp(e,t)}finally{K.H=a}},useReducer:function(e,t,a){X="useReducer",h(),ne();var o=K.H;K.H=Kr;try{return tu(e,t,a)}finally{K.H=o}},useRef:function(){return X="useRef",h(),ne(),ea().memoizedState},useState:function(){X="useState",h(),ne();var e=K.H;K.H=Kr;try{return tu(Gr)}finally{K.H=e}},useDebugValue:function(){X="useDebugValue",h(),ne()},useDeferredValue:function(e,t){return X="useDeferredValue",h(),ne(),CS(e,t)},useTransition:function(){return X="useTransition",h(),ne(),DS()},useSyncExternalStore:function(e,t,a){return X="useSyncExternalStore",h(),ne(),zp(e,t,a)},useId:function(){return X="useId",h(),ne(),ea().memoizedState},useFormState:function(e){return X="useFormState",h(),ne(),Pp(e)},useActionState:function(e){return X="useActionState",h(),ne(),Pp(e)},useOptimistic:function(e,t){return X="useOptimistic",h(),ne(),hS(e,t)},useMemoCache:function(e){return h(),Wl(e)},useHostTransitionStatus:Jl,useCacheRefresh:function(){return X="useCacheRefresh",ne(),ea().memoizedState},useEffectEvent:function(e){return X="useEffectEvent",h(),ne(),Hp(e)}},Xm={readContext:function(e){return m(),ka(e)},use:function(e){return h(),$s(e)},useCallback:function(e,t){return X="useCallback",h(),ne(),Gp(e,t)},useContext:function(e){return X="useContext",h(),ne(),ka(e)},useEffect:function(e,t){X="useEffect",h(),ne(),Go(2048,Po,e,t)},useImperativeHandle:function(e,t,a){return X="useImperativeHandle",h(),ne(),Fp(e,t,a)},useInsertionEffect:function(e,t){return X="useInsertionEffect",h(),ne(),Go(4,zo,e,t)},useLayoutEffect:function(e,t){return X="useLayoutEffect",h(),ne(),Go(4,fr,e,t)},useMemo:function(e,t){X="useMemo",h(),ne();var a=K.H;K.H=Kr;try{return Vp(e,t)}finally{K.H=a}},useReducer:function(e,t,a){X="useReducer",h(),ne();var o=K.H;K.H=Kr;try{return _d(e,t,a)}finally{K.H=o}},useRef:function(){return X="useRef",h(),ne(),ea().memoizedState},useState:function(){X="useState",h(),ne();var e=K.H;K.H=Kr;try{return _d(Gr)}finally{K.H=e}},useDebugValue:function(){X="useDebugValue",h(),ne()},useDeferredValue:function(e,t){return X="useDeferredValue",h(),ne(),TS(e,t)},useTransition:function(){return X="useTransition",h(),ne(),ES()},useSyncExternalStore:function(e,t,a){return X="useSyncExternalStore",h(),ne(),zp(e,t,a)},useId:function(){return X="useId",h(),ne(),ea().memoizedState},useFormState:function(e){return X="useFormState",h(),ne(),Up(e)},useActionState:function(e){return X="useActionState",h(),ne(),Up(e)},useOptimistic:function(e,t){return X="useOptimistic",h(),ne(),yS(e,t)},useMemoCache:function(e){return h(),Wl(e)},useHostTransitionStatus:Jl,useCacheRefresh:function(){return X="useCacheRefresh",ne(),ea().memoizedState},useEffectEvent:function(e){return X="useEffectEvent",h(),ne(),Hp(e)}};var kC={},LC=new Set,wC=new Set,CC=new Set,TC=new Set,IC=new Set,RC=new Set,AC=new Set,MC=new Set,DC=new Set,EC=new Set;Object.freeze(kC);var Mx={enqueueSetState:function(e,t,a){e=e._reactInternals;var o=nr(e),n=Fs(o);n.payload=t,a!==void 0&&a!==null&&(Oy(a),n.callback=a),t=Gs(e,n,o),t!==null&&(mn(o,"this.setState()",e),Ra(t,e,o),Bd(t,e,o))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var o=nr(e),n=Fs(o);n.tag=mC,n.payload=t,a!==void 0&&a!==null&&(Oy(a),n.callback=a),t=Gs(e,n,o),t!==null&&(mn(o,"this.replaceState()",e),Ra(t,e,o),Bd(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=nr(e),o=Fs(a);o.tag=hC,t!==void 0&&t!==null&&(Oy(t),o.callback=t),t=Gs(e,o,a),t!==null&&(mn(a,"this.forceUpdate()",e),Ra(t,e,a),Bd(t,e,a))}},Uu=null,Dx=null,Ex=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),Ka=!1,NC={},qC={},OC={},BC={},_u=!1,zC={},Ym={},Nx={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},PC=!1,UC=null;UC=new Set;var xs=!1,Qa=!1,qx=!1,_C=typeof WeakSet==="function"?WeakSet:Set,io=null,Hu=null,Fu=null,Wa=null,$o=!1,Qr=null,to=!1,Bc=8192,nE={getCacheForType:function(e){var t=ka($a),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return ka($a).controller.signal},getOwner:function(){return ir}};if(typeof Symbol==="function"&&Symbol.for){var zc=Symbol.for;zc("selector.component"),zc("selector.has_pseudo_class"),zc("selector.role"),zc("selector.test_id"),zc("selector.text")}var sE=[],lE=typeof WeakMap==="function"?WeakMap:Map,uo=0,ao=2,pr=4,bs=0,Pc=1,hi=2,Km=3,cl=4,Qm=6,HC=5,Ut=uo,sa=null,vt=null,gt=0,Xo=0,Wm=1,gi=2,Uc=3,FC=4,Ox=5,_c=6,Zm=7,Bx=8,yi=9,ta=Xo,mr=null,fl=!1,Gu=!1,zx=!1,Pn=0,Ta=bs,pl=0,ml=0,Px=0,Yo=0,vi=0,Hc=null,Uo=null,Jm=!1,eh=0,GC=0,VC=300,th=1/0,jC=500,Fc=null,qa=null,hl=null,ah=0,Ux=1,_x=2,$C=3,gl=0,XC=1,YC=2,KC=3,QC=4,oh=5,Za=0,yl=null,Vu=null,Wr=0,Hx=0,Fx=-0,Gx=null,WC=null,ZC=null,Zr=ah,JC=null,iE=50,Gc=0,Vx=null,jx=!1,rh=!1,uE=50,xi=0,Vc=null,ju=!1,nh=null,e1=!1,t1=new Set,dE={},sh=null,$u=null,$x=!1,Xx=!1,lh=!1,Yx=!1,vl=0,Kx={};(function(){for(var e=0;e<sx.length;e++){var t=sx[e],a=t.toLowerCase();t=t[0].toUpperCase()+t.slice(1),Fr(a,"on"+t)}Fr(Dw,"onAnimationEnd"),Fr(Ew,"onAnimationIteration"),Fr(Nw,"onAnimationStart"),Fr("dblclick","onDoubleClick"),Fr("focusin","onFocus"),Fr("focusout","onBlur"),Fr(_D,"onTransitionRun"),Fr(HD,"onTransitionStart"),Fr(FD,"onTransitionCancel"),Fr(qw,"onTransitionEnd")})(),Zo("onMouseEnter",["mouseout","mouseover"]),Zo("onMouseLeave",["mouseout","mouseover"]),Zo("onPointerEnter",["pointerout","pointerover"]),Zo("onPointerLeave",["pointerout","pointerover"]),wo("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),wo("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),wo("onBeforeInput",["compositionend","keypress","textInput","paste"]),wo("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),wo("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),wo("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var jc="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(" "),Qx=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(jc)),ih="_reactListening"+Math.random().toString(36).slice(2),a1=!1,o1=!1,uh=!1,r1=!1,dh=!1,ch=!1,n1=!1,fh={},cE=/\r\n?/g,fE=/\u0000|\uFFFD/g,bi="http://www.w3.org/1999/xlink",Wx="http://www.w3.org/XML/1998/namespace",pE="javascript:throw new Error('React form unexpectedly submitted.')",mE="suppressHydrationWarning",Si="&",ph="/&",$c="$",Xc="/$",xl="$?",ki="$~",Xu="$!",hE="html",gE="body",yE="head",Zx="F!",s1="F",l1="loading",vE="style",Ss=0,Yu=1,mh=2,Jx=null,eb=null,i1={dialog:!0,webview:!0},tb=null,Yc=void 0,u1=typeof setTimeout==="function"?setTimeout:void 0,xE=typeof clearTimeout==="function"?clearTimeout:void 0,Li=-1,d1=typeof Promise==="function"?Promise:void 0,bE=typeof queueMicrotask==="function"?queueMicrotask:typeof d1<"u"?function(e){return d1.resolve(null).then(e).catch(rM)}:u1,ab=null,wi=0,Kc=1,c1=2,f1=3,qr=4,Or=new Map,p1=new Set,ks=Jt.d;Jt.d={f:function(){var e=ks.f(),t=lu();return e||t},r:function(e){var t=rt(e);t!==null&&t.tag===5&&t.type==="form"?MS(t):ks.r(e)},D:function(e){ks.D(e),LL("dns-prefetch",e,null)},C:function(e,t){ks.C(e,t),LL("preconnect",e,t)},L:function(e,t,a){ks.L(e,t,a);var o=Ku;if(o&&e&&t){var n='link[rel="preload"][as="'+kr(t)+'"]';t==="image"?a&&a.imageSrcSet?(n+='[imagesrcset="'+kr(a.imageSrcSet)+'"]',typeof a.imageSizes==="string"&&(n+='[imagesizes="'+kr(a.imageSizes)+'"]')):n+='[href="'+kr(e)+'"]':n+='[href="'+kr(e)+'"]';var s=n;switch(t){case"style":s=du(e);break;case"script":s=cu(e)}Or.has(s)||(e=Lt({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Or.set(s,e),o.querySelector(n)!==null||t==="style"&&o.querySelector(tc(s))||t==="script"&&o.querySelector(ac(s))||(t=o.createElement("link"),vo(t,"link",e),Pe(t),o.head.appendChild(t)))}},m:function(e,t){ks.m(e,t);var a=Ku;if(a&&e){var o=t&&typeof t.as==="string"?t.as:"script",n='link[rel="modulepreload"][as="'+kr(o)+'"][href="'+kr(e)+'"]',s=n;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":s=cu(e)}if(!Or.has(s)&&(e=Lt({rel:"modulepreload",href:e},t),Or.set(s,e),a.querySelector(n)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(ac(s)))return}o=a.createElement("link"),vo(o,"link",e),Pe(o),a.head.appendChild(o)}}},X:function(e,t){ks.X(e,t);var a=Ku;if(a&&e){var o=_t(a).hoistableScripts,n=cu(e),s=o.get(n);s||(s=a.querySelector(ac(n)),s||(e=Lt({src:e,async:!0},t),(t=Or.get(n))&&Cv(e,t),s=a.createElement("script"),Pe(s),vo(s,"link",e),a.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},o.set(n,s))}},S:function(e,t,a){ks.S(e,t,a);var o=Ku;if(o&&e){var n=_t(o).hoistableStyles,s=du(e);t=t||"default";var c=n.get(s);if(!c){var p={loading:wi,preload:null};if(c=o.querySelector(tc(s)))p.loading=Kc|qr;else{e=Lt({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Or.get(s))&&wv(e,a);var x=c=o.createElement("link");Pe(x),vo(x,"link",e),x._p=new Promise(function(k,q){x.onload=k,x.onerror=q}),x.addEventListener("load",function(){p.loading|=Kc}),x.addEventListener("error",function(){p.loading|=c1}),p.loading|=qr,um(c,t,o)}c={type:"stylesheet",instance:c,count:1,state:p},n.set(s,c)}}},M:function(e,t){ks.M(e,t);var a=Ku;if(a&&e){var o=_t(a).hoistableScripts,n=cu(e),s=o.get(n);s||(s=a.querySelector(ac(n)),s||(e=Lt({src:e,async:!0,type:"module"},t),(t=Or.get(n))&&Cv(e,t),s=a.createElement("script"),Pe(s),vo(s,"link",e),a.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},o.set(n,s))}}};var Ku=typeof document>"u"?null:document,hh=null,SE=60000,kE=800,LE=500,ob=0,rb=null,gh=null,Ci=PM,Qc={$$typeof:Rn,Provider:null,Consumer:null,_currentValue:Ci,_currentValue2:Ci,_threadCount:0},m1="%c%s%c",h1="background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",g1="",yh=" ",wE=Function.prototype.bind,y1=!1,v1=null,x1=null,b1=null,S1=null,k1=null,L1=null,w1=null,C1=null,T1=null,I1=null;v1=function(e,t,a,o){t=r(e,t),t!==null&&(a=l(t.memoizedState,a,0,o),t.memoizedState=a,t.baseState=a,e.memoizedProps=Lt({},e.memoizedProps),a=Co(e,2),a!==null&&Ra(a,e,2))},x1=function(e,t,a){t=r(e,t),t!==null&&(a=f(t.memoizedState,a,0),t.memoizedState=a,t.baseState=a,e.memoizedProps=Lt({},e.memoizedProps),a=Co(e,2),a!==null&&Ra(a,e,2))},b1=function(e,t,a,o){t=r(e,t),t!==null&&(a=i(t.memoizedState,a,o),t.memoizedState=a,t.baseState=a,e.memoizedProps=Lt({},e.memoizedProps),a=Co(e,2),a!==null&&Ra(a,e,2))},S1=function(e,t,a){e.pendingProps=l(e.memoizedProps,t,0,a),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=Co(e,2),t!==null&&Ra(t,e,2)},k1=function(e,t){e.pendingProps=f(e.memoizedProps,t,0),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=Co(e,2),t!==null&&Ra(t,e,2)},L1=function(e,t,a){e.pendingProps=i(e.memoizedProps,t,a),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=Co(e,2),t!==null&&Ra(t,e,2)},w1=function(e){var t=Co(e,2);t!==null&&Ra(t,e,2)},C1=function(e){var t=Xi(),a=Co(e,t);a!==null&&Ra(a,e,t)},T1=function(e){v=e},I1=function(e){g=e};var vh=!0,xh=null,nb=!1,bl=null,Sl=null,kl=null,Wc=new Map,Zc=new Map,Ll=[],CE="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(" "),bh=null;if(mm.prototype.render=Dv.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error("Cannot update an unmounted root.");var a=arguments;typeof a[1]==="function"?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):R(a[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof a[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),a=e;var o=t.current,n=nr(o);Tv(o,n,a,t,null,null)},mm.prototype.unmount=Dv.prototype.unmount=function(){var e=arguments;if(typeof e[0]==="function"&&console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."),e=this._internalRoot,e!==null){this._internalRoot=null;var t=e.containerInfo;(Ut&(ao|pr))!==uo&&console.error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),Tv(e.current,2,null,e,null,null),lu(),t[Js]=null}},mm.prototype.unstable_scheduleHydration=function(e){if(e){var t=U();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Ll.length&&t!==0&&t<Ll[a].priority;a++);Ll.splice(a,0,e),a===0&&zL(e)}},function(){var e=Wu.version;if(e!=="19.2.7")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
223
+ Check the top-level render call using <`+o+">.");var c="";a!=null&&e!==a&&(o=null,typeof a.tag==="number"?o=V(a):typeof a.name==="string"&&(o=a.name),o&&(c=" It was passed a child from "+o+".")),H(t,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',s,c)})}}};var pi=oS(!0),fC=oS(!1),pC=0,mC=1,hC=2,wx=3,dl=!1,gC=!1,Cx=null,Tx=!1,Ou=Re(null),Gm=Re(0),cr=Re(null),Dr=null,Bu=1,Ec=2,Ha=Re(0),Vm=0,Er=1,Po=2,fr=4,zo=8,Pu,yC=new Set,vC=new Set,Ix=new Set,xC=new Set,gs=0,at=null,na=null,Ya=null,jm=!1,zu=!1,mi=!1,$m=0,Nc=0,ys=null,oE=0,rE=25,X=null,Nr=null,vs=-1,qc=!1,Oc={readContext:ka,use:$s,useCallback:Na,useContext:Na,useEffect:Na,useImperativeHandle:Na,useLayoutEffect:Na,useInsertionEffect:Na,useMemo:Na,useReducer:Na,useRef:Na,useState:Na,useDebugValue:Na,useDeferredValue:Na,useTransition:Na,useSyncExternalStore:Na,useId:Na,useHostTransitionStatus:Na,useFormState:Na,useActionState:Na,useOptimistic:Na,useMemoCache:Na,useCacheRefresh:Na};Oc.useEffectEvent=Na;var Rx=null,bC=null,Ax=null,SC=null,Pn=null,Kr=null,Xm=null;Rx={readContext:function(e){return ka(e)},use:$s,useCallback:function(e,t){return X="useCallback",kt(),eu(t),Ty(e,t)},useContext:function(e){return X="useContext",kt(),ka(e)},useEffect:function(e,t){return X="useEffect",kt(),eu(t),_p(e,t)},useImperativeHandle:function(e,t,a){return X="useImperativeHandle",kt(),eu(a),Cy(e,t,a)},useInsertionEffect:function(e,t){X="useInsertionEffect",kt(),eu(t),Zl(4,Po,e,t)},useLayoutEffect:function(e,t){return X="useLayoutEffect",kt(),eu(t),wy(e,t)},useMemo:function(e,t){X="useMemo",kt(),eu(t);var a=K.H;K.H=Pn;try{return Iy(e,t)}finally{K.H=a}},useReducer:function(e,t,a){X="useReducer",kt();var o=K.H;K.H=Pn;try{return hy(e,t,a)}finally{K.H=o}},useRef:function(e){return X="useRef",kt(),ky(e)},useState:function(e){X="useState",kt();var t=K.H;K.H=Pn;try{return xy(e)}finally{K.H=t}},useDebugValue:function(){X="useDebugValue",kt()},useDeferredValue:function(e,t){return X="useDeferredValue",kt(),Ry(e,t)},useTransition:function(){return X="useTransition",kt(),Dy()},useSyncExternalStore:function(e,t,a){return X="useSyncExternalStore",kt(),yy(e,t,a)},useId:function(){return X="useId",kt(),Ey()},useFormState:function(e,t){return X="useFormState",kt(),Op(),au(e,t)},useActionState:function(e,t){return X="useActionState",kt(),au(e,t)},useOptimistic:function(e){return X="useOptimistic",kt(),by(e)},useHostTransitionStatus:Jl,useMemoCache:Wl,useCacheRefresh:function(){return X="useCacheRefresh",kt(),Ny()},useEffectEvent:function(e){return X="useEffectEvent",kt(),Ly(e)}},bC={readContext:function(e){return ka(e)},use:$s,useCallback:function(e,t){return X="useCallback",ne(),Ty(e,t)},useContext:function(e){return X="useContext",ne(),ka(e)},useEffect:function(e,t){return X="useEffect",ne(),_p(e,t)},useImperativeHandle:function(e,t,a){return X="useImperativeHandle",ne(),Cy(e,t,a)},useInsertionEffect:function(e,t){X="useInsertionEffect",ne(),Zl(4,Po,e,t)},useLayoutEffect:function(e,t){return X="useLayoutEffect",ne(),wy(e,t)},useMemo:function(e,t){X="useMemo",ne();var a=K.H;K.H=Pn;try{return Iy(e,t)}finally{K.H=a}},useReducer:function(e,t,a){X="useReducer",ne();var o=K.H;K.H=Pn;try{return hy(e,t,a)}finally{K.H=o}},useRef:function(e){return X="useRef",ne(),ky(e)},useState:function(e){X="useState",ne();var t=K.H;K.H=Pn;try{return xy(e)}finally{K.H=t}},useDebugValue:function(){X="useDebugValue",ne()},useDeferredValue:function(e,t){return X="useDeferredValue",ne(),Ry(e,t)},useTransition:function(){return X="useTransition",ne(),Dy()},useSyncExternalStore:function(e,t,a){return X="useSyncExternalStore",ne(),yy(e,t,a)},useId:function(){return X="useId",ne(),Ey()},useActionState:function(e,t){return X="useActionState",ne(),au(e,t)},useFormState:function(e,t){return X="useFormState",ne(),Op(),au(e,t)},useOptimistic:function(e){return X="useOptimistic",ne(),by(e)},useHostTransitionStatus:Jl,useMemoCache:Wl,useCacheRefresh:function(){return X="useCacheRefresh",ne(),Ny()},useEffectEvent:function(e){return X="useEffectEvent",ne(),Ly(e)}},Ax={readContext:function(e){return ka(e)},use:$s,useCallback:function(e,t){return X="useCallback",ne(),Gp(e,t)},useContext:function(e){return X="useContext",ne(),ka(e)},useEffect:function(e,t){X="useEffect",ne(),Go(2048,zo,e,t)},useImperativeHandle:function(e,t,a){return X="useImperativeHandle",ne(),Fp(e,t,a)},useInsertionEffect:function(e,t){return X="useInsertionEffect",ne(),Go(4,Po,e,t)},useLayoutEffect:function(e,t){return X="useLayoutEffect",ne(),Go(4,fr,e,t)},useMemo:function(e,t){X="useMemo",ne();var a=K.H;K.H=Kr;try{return Vp(e,t)}finally{K.H=a}},useReducer:function(e,t,a){X="useReducer",ne();var o=K.H;K.H=Kr;try{return tu(e,t,a)}finally{K.H=o}},useRef:function(){return X="useRef",ne(),ea().memoizedState},useState:function(){X="useState",ne();var e=K.H;K.H=Kr;try{return tu(Gr)}finally{K.H=e}},useDebugValue:function(){X="useDebugValue",ne()},useDeferredValue:function(e,t){return X="useDeferredValue",ne(),CS(e,t)},useTransition:function(){return X="useTransition",ne(),DS()},useSyncExternalStore:function(e,t,a){return X="useSyncExternalStore",ne(),Pp(e,t,a)},useId:function(){return X="useId",ne(),ea().memoizedState},useFormState:function(e){return X="useFormState",ne(),Op(),zp(e)},useActionState:function(e){return X="useActionState",ne(),zp(e)},useOptimistic:function(e,t){return X="useOptimistic",ne(),hS(e,t)},useHostTransitionStatus:Jl,useMemoCache:Wl,useCacheRefresh:function(){return X="useCacheRefresh",ne(),ea().memoizedState},useEffectEvent:function(e){return X="useEffectEvent",ne(),Hp(e)}},SC={readContext:function(e){return ka(e)},use:$s,useCallback:function(e,t){return X="useCallback",ne(),Gp(e,t)},useContext:function(e){return X="useContext",ne(),ka(e)},useEffect:function(e,t){X="useEffect",ne(),Go(2048,zo,e,t)},useImperativeHandle:function(e,t,a){return X="useImperativeHandle",ne(),Fp(e,t,a)},useInsertionEffect:function(e,t){return X="useInsertionEffect",ne(),Go(4,Po,e,t)},useLayoutEffect:function(e,t){return X="useLayoutEffect",ne(),Go(4,fr,e,t)},useMemo:function(e,t){X="useMemo",ne();var a=K.H;K.H=Xm;try{return Vp(e,t)}finally{K.H=a}},useReducer:function(e,t,a){X="useReducer",ne();var o=K.H;K.H=Xm;try{return _d(e,t,a)}finally{K.H=o}},useRef:function(){return X="useRef",ne(),ea().memoizedState},useState:function(){X="useState",ne();var e=K.H;K.H=Xm;try{return _d(Gr)}finally{K.H=e}},useDebugValue:function(){X="useDebugValue",ne()},useDeferredValue:function(e,t){return X="useDeferredValue",ne(),TS(e,t)},useTransition:function(){return X="useTransition",ne(),ES()},useSyncExternalStore:function(e,t,a){return X="useSyncExternalStore",ne(),Pp(e,t,a)},useId:function(){return X="useId",ne(),ea().memoizedState},useFormState:function(e){return X="useFormState",ne(),Op(),Up(e)},useActionState:function(e){return X="useActionState",ne(),Up(e)},useOptimistic:function(e,t){return X="useOptimistic",ne(),yS(e,t)},useHostTransitionStatus:Jl,useMemoCache:Wl,useCacheRefresh:function(){return X="useCacheRefresh",ne(),ea().memoizedState},useEffectEvent:function(e){return X="useEffectEvent",ne(),Hp(e)}},Pn={readContext:function(e){return m(),ka(e)},use:function(e){return h(),$s(e)},useCallback:function(e,t){return X="useCallback",h(),kt(),Ty(e,t)},useContext:function(e){return X="useContext",h(),kt(),ka(e)},useEffect:function(e,t){return X="useEffect",h(),kt(),_p(e,t)},useImperativeHandle:function(e,t,a){return X="useImperativeHandle",h(),kt(),Cy(e,t,a)},useInsertionEffect:function(e,t){X="useInsertionEffect",h(),kt(),Zl(4,Po,e,t)},useLayoutEffect:function(e,t){return X="useLayoutEffect",h(),kt(),wy(e,t)},useMemo:function(e,t){X="useMemo",h(),kt();var a=K.H;K.H=Pn;try{return Iy(e,t)}finally{K.H=a}},useReducer:function(e,t,a){X="useReducer",h(),kt();var o=K.H;K.H=Pn;try{return hy(e,t,a)}finally{K.H=o}},useRef:function(e){return X="useRef",h(),kt(),ky(e)},useState:function(e){X="useState",h(),kt();var t=K.H;K.H=Pn;try{return xy(e)}finally{K.H=t}},useDebugValue:function(){X="useDebugValue",h(),kt()},useDeferredValue:function(e,t){return X="useDeferredValue",h(),kt(),Ry(e,t)},useTransition:function(){return X="useTransition",h(),kt(),Dy()},useSyncExternalStore:function(e,t,a){return X="useSyncExternalStore",h(),kt(),yy(e,t,a)},useId:function(){return X="useId",h(),kt(),Ey()},useFormState:function(e,t){return X="useFormState",h(),kt(),au(e,t)},useActionState:function(e,t){return X="useActionState",h(),kt(),au(e,t)},useOptimistic:function(e){return X="useOptimistic",h(),kt(),by(e)},useMemoCache:function(e){return h(),Wl(e)},useHostTransitionStatus:Jl,useCacheRefresh:function(){return X="useCacheRefresh",kt(),Ny()},useEffectEvent:function(e){return X="useEffectEvent",h(),kt(),Ly(e)}},Kr={readContext:function(e){return m(),ka(e)},use:function(e){return h(),$s(e)},useCallback:function(e,t){return X="useCallback",h(),ne(),Gp(e,t)},useContext:function(e){return X="useContext",h(),ne(),ka(e)},useEffect:function(e,t){X="useEffect",h(),ne(),Go(2048,zo,e,t)},useImperativeHandle:function(e,t,a){return X="useImperativeHandle",h(),ne(),Fp(e,t,a)},useInsertionEffect:function(e,t){return X="useInsertionEffect",h(),ne(),Go(4,Po,e,t)},useLayoutEffect:function(e,t){return X="useLayoutEffect",h(),ne(),Go(4,fr,e,t)},useMemo:function(e,t){X="useMemo",h(),ne();var a=K.H;K.H=Kr;try{return Vp(e,t)}finally{K.H=a}},useReducer:function(e,t,a){X="useReducer",h(),ne();var o=K.H;K.H=Kr;try{return tu(e,t,a)}finally{K.H=o}},useRef:function(){return X="useRef",h(),ne(),ea().memoizedState},useState:function(){X="useState",h(),ne();var e=K.H;K.H=Kr;try{return tu(Gr)}finally{K.H=e}},useDebugValue:function(){X="useDebugValue",h(),ne()},useDeferredValue:function(e,t){return X="useDeferredValue",h(),ne(),CS(e,t)},useTransition:function(){return X="useTransition",h(),ne(),DS()},useSyncExternalStore:function(e,t,a){return X="useSyncExternalStore",h(),ne(),Pp(e,t,a)},useId:function(){return X="useId",h(),ne(),ea().memoizedState},useFormState:function(e){return X="useFormState",h(),ne(),zp(e)},useActionState:function(e){return X="useActionState",h(),ne(),zp(e)},useOptimistic:function(e,t){return X="useOptimistic",h(),ne(),hS(e,t)},useMemoCache:function(e){return h(),Wl(e)},useHostTransitionStatus:Jl,useCacheRefresh:function(){return X="useCacheRefresh",ne(),ea().memoizedState},useEffectEvent:function(e){return X="useEffectEvent",h(),ne(),Hp(e)}},Xm={readContext:function(e){return m(),ka(e)},use:function(e){return h(),$s(e)},useCallback:function(e,t){return X="useCallback",h(),ne(),Gp(e,t)},useContext:function(e){return X="useContext",h(),ne(),ka(e)},useEffect:function(e,t){X="useEffect",h(),ne(),Go(2048,zo,e,t)},useImperativeHandle:function(e,t,a){return X="useImperativeHandle",h(),ne(),Fp(e,t,a)},useInsertionEffect:function(e,t){return X="useInsertionEffect",h(),ne(),Go(4,Po,e,t)},useLayoutEffect:function(e,t){return X="useLayoutEffect",h(),ne(),Go(4,fr,e,t)},useMemo:function(e,t){X="useMemo",h(),ne();var a=K.H;K.H=Kr;try{return Vp(e,t)}finally{K.H=a}},useReducer:function(e,t,a){X="useReducer",h(),ne();var o=K.H;K.H=Kr;try{return _d(e,t,a)}finally{K.H=o}},useRef:function(){return X="useRef",h(),ne(),ea().memoizedState},useState:function(){X="useState",h(),ne();var e=K.H;K.H=Kr;try{return _d(Gr)}finally{K.H=e}},useDebugValue:function(){X="useDebugValue",h(),ne()},useDeferredValue:function(e,t){return X="useDeferredValue",h(),ne(),TS(e,t)},useTransition:function(){return X="useTransition",h(),ne(),ES()},useSyncExternalStore:function(e,t,a){return X="useSyncExternalStore",h(),ne(),Pp(e,t,a)},useId:function(){return X="useId",h(),ne(),ea().memoizedState},useFormState:function(e){return X="useFormState",h(),ne(),Up(e)},useActionState:function(e){return X="useActionState",h(),ne(),Up(e)},useOptimistic:function(e,t){return X="useOptimistic",h(),ne(),yS(e,t)},useMemoCache:function(e){return h(),Wl(e)},useHostTransitionStatus:Jl,useCacheRefresh:function(){return X="useCacheRefresh",ne(),ea().memoizedState},useEffectEvent:function(e){return X="useEffectEvent",h(),ne(),Hp(e)}};var kC={},LC=new Set,wC=new Set,CC=new Set,TC=new Set,IC=new Set,RC=new Set,AC=new Set,MC=new Set,DC=new Set,EC=new Set;Object.freeze(kC);var Mx={enqueueSetState:function(e,t,a){e=e._reactInternals;var o=nr(e),n=Fs(o);n.payload=t,a!==void 0&&a!==null&&(Oy(a),n.callback=a),t=Gs(e,n,o),t!==null&&(mn(o,"this.setState()",e),Ra(t,e,o),Bd(t,e,o))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var o=nr(e),n=Fs(o);n.tag=mC,n.payload=t,a!==void 0&&a!==null&&(Oy(a),n.callback=a),t=Gs(e,n,o),t!==null&&(mn(o,"this.replaceState()",e),Ra(t,e,o),Bd(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=nr(e),o=Fs(a);o.tag=hC,t!==void 0&&t!==null&&(Oy(t),o.callback=t),t=Gs(e,o,a),t!==null&&(mn(a,"this.forceUpdate()",e),Ra(t,e,a),Bd(t,e,a))}},Uu=null,Dx=null,Ex=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),Ka=!1,NC={},qC={},OC={},BC={},_u=!1,PC={},Ym={},Nx={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},zC=!1,UC=null;UC=new Set;var xs=!1,Qa=!1,qx=!1,_C=typeof WeakSet==="function"?WeakSet:Set,io=null,Hu=null,Fu=null,Wa=null,$o=!1,Qr=null,to=!1,Bc=8192,nE={getCacheForType:function(e){var t=ka($a),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return ka($a).controller.signal},getOwner:function(){return ir}};if(typeof Symbol==="function"&&Symbol.for){var Pc=Symbol.for;Pc("selector.component"),Pc("selector.has_pseudo_class"),Pc("selector.role"),Pc("selector.test_id"),Pc("selector.text")}var sE=[],lE=typeof WeakMap==="function"?WeakMap:Map,uo=0,ao=2,pr=4,bs=0,zc=1,hi=2,Km=3,cl=4,Qm=6,HC=5,Ut=uo,sa=null,vt=null,gt=0,Xo=0,Wm=1,gi=2,Uc=3,FC=4,Ox=5,_c=6,Zm=7,Bx=8,yi=9,ta=Xo,mr=null,fl=!1,Gu=!1,Px=!1,zn=0,Ta=bs,pl=0,ml=0,zx=0,Yo=0,vi=0,Hc=null,Uo=null,Jm=!1,eh=0,GC=0,VC=300,th=1/0,jC=500,Fc=null,qa=null,hl=null,ah=0,Ux=1,_x=2,$C=3,gl=0,XC=1,YC=2,KC=3,QC=4,oh=5,Za=0,yl=null,Vu=null,Wr=0,Hx=0,Fx=-0,Gx=null,WC=null,ZC=null,Zr=ah,JC=null,iE=50,Gc=0,Vx=null,jx=!1,rh=!1,uE=50,xi=0,Vc=null,ju=!1,nh=null,e1=!1,t1=new Set,dE={},sh=null,$u=null,$x=!1,Xx=!1,lh=!1,Yx=!1,vl=0,Kx={};(function(){for(var e=0;e<sx.length;e++){var t=sx[e],a=t.toLowerCase();t=t[0].toUpperCase()+t.slice(1),Fr(a,"on"+t)}Fr(Dw,"onAnimationEnd"),Fr(Ew,"onAnimationIteration"),Fr(Nw,"onAnimationStart"),Fr("dblclick","onDoubleClick"),Fr("focusin","onFocus"),Fr("focusout","onBlur"),Fr(_D,"onTransitionRun"),Fr(HD,"onTransitionStart"),Fr(FD,"onTransitionCancel"),Fr(qw,"onTransitionEnd")})(),Zo("onMouseEnter",["mouseout","mouseover"]),Zo("onMouseLeave",["mouseout","mouseover"]),Zo("onPointerEnter",["pointerout","pointerover"]),Zo("onPointerLeave",["pointerout","pointerover"]),wo("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),wo("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),wo("onBeforeInput",["compositionend","keypress","textInput","paste"]),wo("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),wo("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),wo("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var jc="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(" "),Qx=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(jc)),ih="_reactListening"+Math.random().toString(36).slice(2),a1=!1,o1=!1,uh=!1,r1=!1,dh=!1,ch=!1,n1=!1,fh={},cE=/\r\n?/g,fE=/\u0000|\uFFFD/g,bi="http://www.w3.org/1999/xlink",Wx="http://www.w3.org/XML/1998/namespace",pE="javascript:throw new Error('React form unexpectedly submitted.')",mE="suppressHydrationWarning",Si="&",ph="/&",$c="$",Xc="/$",xl="$?",ki="$~",Xu="$!",hE="html",gE="body",yE="head",Zx="F!",s1="F",l1="loading",vE="style",Ss=0,Yu=1,mh=2,Jx=null,eb=null,i1={dialog:!0,webview:!0},tb=null,Yc=void 0,u1=typeof setTimeout==="function"?setTimeout:void 0,xE=typeof clearTimeout==="function"?clearTimeout:void 0,Li=-1,d1=typeof Promise==="function"?Promise:void 0,bE=typeof queueMicrotask==="function"?queueMicrotask:typeof d1<"u"?function(e){return d1.resolve(null).then(e).catch(rM)}:u1,ab=null,wi=0,Kc=1,c1=2,f1=3,qr=4,Or=new Map,p1=new Set,ks=Jt.d;Jt.d={f:function(){var e=ks.f(),t=lu();return e||t},r:function(e){var t=rt(e);t!==null&&t.tag===5&&t.type==="form"?MS(t):ks.r(e)},D:function(e){ks.D(e),LL("dns-prefetch",e,null)},C:function(e,t){ks.C(e,t),LL("preconnect",e,t)},L:function(e,t,a){ks.L(e,t,a);var o=Ku;if(o&&e&&t){var n='link[rel="preload"][as="'+kr(t)+'"]';t==="image"?a&&a.imageSrcSet?(n+='[imagesrcset="'+kr(a.imageSrcSet)+'"]',typeof a.imageSizes==="string"&&(n+='[imagesizes="'+kr(a.imageSizes)+'"]')):n+='[href="'+kr(e)+'"]':n+='[href="'+kr(e)+'"]';var s=n;switch(t){case"style":s=du(e);break;case"script":s=cu(e)}Or.has(s)||(e=Lt({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Or.set(s,e),o.querySelector(n)!==null||t==="style"&&o.querySelector(tc(s))||t==="script"&&o.querySelector(ac(s))||(t=o.createElement("link"),vo(t,"link",e),ze(t),o.head.appendChild(t)))}},m:function(e,t){ks.m(e,t);var a=Ku;if(a&&e){var o=t&&typeof t.as==="string"?t.as:"script",n='link[rel="modulepreload"][as="'+kr(o)+'"][href="'+kr(e)+'"]',s=n;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":s=cu(e)}if(!Or.has(s)&&(e=Lt({rel:"modulepreload",href:e},t),Or.set(s,e),a.querySelector(n)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(ac(s)))return}o=a.createElement("link"),vo(o,"link",e),ze(o),a.head.appendChild(o)}}},X:function(e,t){ks.X(e,t);var a=Ku;if(a&&e){var o=_t(a).hoistableScripts,n=cu(e),s=o.get(n);s||(s=a.querySelector(ac(n)),s||(e=Lt({src:e,async:!0},t),(t=Or.get(n))&&Cv(e,t),s=a.createElement("script"),ze(s),vo(s,"link",e),a.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},o.set(n,s))}},S:function(e,t,a){ks.S(e,t,a);var o=Ku;if(o&&e){var n=_t(o).hoistableStyles,s=du(e);t=t||"default";var c=n.get(s);if(!c){var p={loading:wi,preload:null};if(c=o.querySelector(tc(s)))p.loading=Kc|qr;else{e=Lt({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Or.get(s))&&wv(e,a);var x=c=o.createElement("link");ze(x),vo(x,"link",e),x._p=new Promise(function(k,q){x.onload=k,x.onerror=q}),x.addEventListener("load",function(){p.loading|=Kc}),x.addEventListener("error",function(){p.loading|=c1}),p.loading|=qr,um(c,t,o)}c={type:"stylesheet",instance:c,count:1,state:p},n.set(s,c)}}},M:function(e,t){ks.M(e,t);var a=Ku;if(a&&e){var o=_t(a).hoistableScripts,n=cu(e),s=o.get(n);s||(s=a.querySelector(ac(n)),s||(e=Lt({src:e,async:!0,type:"module"},t),(t=Or.get(n))&&Cv(e,t),s=a.createElement("script"),ze(s),vo(s,"link",e),a.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},o.set(n,s))}}};var Ku=typeof document>"u"?null:document,hh=null,SE=60000,kE=800,LE=500,ob=0,rb=null,gh=null,Ci=zM,Qc={$$typeof:Rn,Provider:null,Consumer:null,_currentValue:Ci,_currentValue2:Ci,_threadCount:0},m1="%c%s%c",h1="background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",g1="",yh=" ",wE=Function.prototype.bind,y1=!1,v1=null,x1=null,b1=null,S1=null,k1=null,L1=null,w1=null,C1=null,T1=null,I1=null;v1=function(e,t,a,o){t=r(e,t),t!==null&&(a=l(t.memoizedState,a,0,o),t.memoizedState=a,t.baseState=a,e.memoizedProps=Lt({},e.memoizedProps),a=Co(e,2),a!==null&&Ra(a,e,2))},x1=function(e,t,a){t=r(e,t),t!==null&&(a=f(t.memoizedState,a,0),t.memoizedState=a,t.baseState=a,e.memoizedProps=Lt({},e.memoizedProps),a=Co(e,2),a!==null&&Ra(a,e,2))},b1=function(e,t,a,o){t=r(e,t),t!==null&&(a=i(t.memoizedState,a,o),t.memoizedState=a,t.baseState=a,e.memoizedProps=Lt({},e.memoizedProps),a=Co(e,2),a!==null&&Ra(a,e,2))},S1=function(e,t,a){e.pendingProps=l(e.memoizedProps,t,0,a),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=Co(e,2),t!==null&&Ra(t,e,2)},k1=function(e,t){e.pendingProps=f(e.memoizedProps,t,0),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=Co(e,2),t!==null&&Ra(t,e,2)},L1=function(e,t,a){e.pendingProps=i(e.memoizedProps,t,a),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=Co(e,2),t!==null&&Ra(t,e,2)},w1=function(e){var t=Co(e,2);t!==null&&Ra(t,e,2)},C1=function(e){var t=Xi(),a=Co(e,t);a!==null&&Ra(a,e,t)},T1=function(e){v=e},I1=function(e){g=e};var vh=!0,xh=null,nb=!1,bl=null,Sl=null,kl=null,Wc=new Map,Zc=new Map,Ll=[],CE="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(" "),bh=null;if(mm.prototype.render=Dv.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error("Cannot update an unmounted root.");var a=arguments;typeof a[1]==="function"?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):R(a[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof a[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),a=e;var o=t.current,n=nr(o);Tv(o,n,a,t,null,null)},mm.prototype.unmount=Dv.prototype.unmount=function(){var e=arguments;if(typeof e[0]==="function"&&console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."),e=this._internalRoot,e!==null){this._internalRoot=null;var t=e.containerInfo;(Ut&(ao|pr))!==uo&&console.error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),Tv(e.current,2,null,e,null,null),lu(),t[Js]=null}},mm.prototype.unstable_scheduleHydration=function(e){if(e){var t=U();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Ll.length&&t!==0&&t<Ll[a].priority;a++);Ll.splice(a,0,e),a===0&&PL(e)}},function(){var e=Wu.version;if(e!=="19.2.7")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
224
224
  - react: `+(e+`
225
225
  - react-dom: 19.2.7
226
226
  Learn more: https://react.dev/warnings/version-mismatch`))}(),typeof Map==="function"&&Map.prototype!=null&&typeof Map.prototype.forEach==="function"&&typeof Set==="function"&&Set.prototype!=null&&typeof Set.prototype.clear==="function"&&typeof Set.prototype.forEach==="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills"),Jt.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0){if(typeof e.render==="function")throw Error("Unable to find node on an unmounted component.");throw e=Object.keys(e).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+e)}return e=ue(t),e=e!==null?Z(e):null,e=e===null?null:e.stateNode,e},!function(){var e={bundleType:1,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:K,reconcilerVersion:"19.2.7"};return e.overrideHookState=v1,e.overrideHookStateDeletePath=x1,e.overrideHookStateRenamePath=b1,e.overrideProps=S1,e.overridePropsDeletePath=k1,e.overridePropsRenamePath=L1,e.scheduleUpdate=w1,e.scheduleRetry=C1,e.setErrorHandler=T1,e.setSuspenseHandler=I1,e.scheduleRefresh=C,e.scheduleRoot=T,e.setRefreshHandler=I,e.getCurrentFiber=MM,Ea(e)}()&&Nn&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var R1=window.location.protocol;/^(https?|file):$/.test(R1)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(R1==="file:"?`
227
- You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}BE.createRoot=function(e,t){if(!R(e))throw Error("Target container is not a DOM element.");HL(e);var a=!1,o="",n=PS,s=US,c=_S;return t!==null&&t!==void 0&&(t.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof t==="object"&&t!==null&&t.$$typeof===In&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
227
+ You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}BE.createRoot=function(e,t){if(!R(e))throw Error("Target container is not a DOM element.");HL(e);var a=!1,o="",n=zS,s=US,c=_S;return t!==null&&t!==void 0&&(t.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof t==="object"&&t!==null&&t.$$typeof===In&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
228
228
 
229
229
  let root = createRoot(domContainer);
230
- root.render(<App />);`),t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onUncaughtError!==void 0&&(n=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=ML(e,1,!1,null,null,a,o,null,n,s,c,_L),e[Js]=t.current,fv(e),new Dv(t)},BE.hydrateRoot=function(e,t,a){if(!R(e))throw Error("Target container is not a DOM element.");HL(e),t===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var o=!1,n="",s=PS,c=US,p=_S,x=null;return a!==null&&a!==void 0&&(a.unstable_strictMode===!0&&(o=!0),a.identifierPrefix!==void 0&&(n=a.identifierPrefix),a.onUncaughtError!==void 0&&(s=a.onUncaughtError),a.onCaughtError!==void 0&&(c=a.onCaughtError),a.onRecoverableError!==void 0&&(p=a.onRecoverableError),a.formState!==void 0&&(x=a.formState)),t=ML(e,1,!0,t,a!=null?a:null,o,n,x,s,c,p,_L),t.context=DL(null),a=t.current,o=nr(a),o=Hl(o),n=Fs(o),n.callback=null,Gs(a,n,o),mn(o,"hydrateRoot()",null),a=o,t.current.lanes=a,Os(t,a),Cn(t),e[Js]=t.current,fv(e),new mm(t)},BE.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var q1=Ti(function(zE,Lh){Lh.exports=_(N1())});var te=Ti(function(tN){var Ni=_(Ke());(function(){function r(Q){if(Q==null)return null;if(typeof Q==="function")return Q.$$typeof===V?null:Q.displayName||Q.name||null;if(typeof Q==="string")return Q;switch(Q){case I:return"Fragment";case O:return"Profiler";case R:return"StrictMode";case ue:return"Suspense";case Z:return"SuspenseList";case G:return"Activity"}if(typeof Q==="object")switch(typeof Q.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),Q.$$typeof){case C:return"Portal";case Y:return Q.displayName||"Context";case z:return(Q._context.displayName||"Context")+".Consumer";case W:var Fe=Q.render;return Q=Q.displayName,Q||(Q=Fe.displayName||Fe.name||"",Q=Q!==""?"ForwardRef("+Q+")":"ForwardRef"),Q;case ce:return Fe=Q.displayName||null,Fe!==null?Fe:r(Q.type)||"Memo";case ee:Fe=Q._payload,Q=Q._init;try{return r(Q(Fe))}catch(It){}}return null}function l(Q){return""+Q}function i(Q){try{l(Q);var Fe=!1}catch(ge){Fe=!0}if(Fe){Fe=console;var It=Fe.error,St=typeof Symbol==="function"&&Symbol.toStringTag&&Q[Symbol.toStringTag]||Q.constructor.name||"Object";return It.call(Fe,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",St),l(Q)}}function d(Q){if(Q===I)return"<>";if(typeof Q==="object"&&Q!==null&&Q.$$typeof===ee)return"<...>";try{var Fe=r(Q);return Fe?"<"+Fe+">":"<...>"}catch(It){return"<...>"}}function f(){var Q=Re.A;return Q===null?null:Q.getOwner()}function g(){return Error("react-stack-top-frame")}function v(Q){if(pe.call(Q,"key")){var Fe=Object.getOwnPropertyDescriptor(Q,"key").get;if(Fe&&Fe.isReactWarning)return!1}return Q.key!==void 0}function h(Q,Fe){function It(){oe||(oe=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",Fe))}It.isReactWarning=!0,Object.defineProperty(Q,"key",{get:It,configurable:!0})}function m(){var Q=r(this.type);return Se[Q]||(Se[Q]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),Q=this.props.ref,Q!==void 0?Q:null}function S(Q,Fe,It,St,ge,Ye){var He=It.ref;return Q={$$typeof:T,type:Q,key:Fe,props:It,_owner:St},(He!==void 0?He:null)!==null?Object.defineProperty(Q,"ref",{enumerable:!1,get:m}):Object.defineProperty(Q,"ref",{enumerable:!1,value:null}),Q._store={},Object.defineProperty(Q._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(Q,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(Q,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ge}),Object.defineProperty(Q,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Ye}),Object.freeze&&(Object.freeze(Q.props),Object.freeze(Q)),Q}function y(Q,Fe,It,St,ge,Ye){var He=Fe.children;if(He!==void 0)if(St)if(Ne(He)){for(St=0;St<He.length;St++)b(He[St]);Object.freeze&&Object.freeze(He)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else b(He);if(pe.call(Fe,"key")){He=r(Q);var ua=Object.keys(Fe).filter(function(j){return j!=="key"});St=0<ua.length?"{key: someKey, "+ua.join(": ..., ")+": ...}":"{key: someKey}",yt[He+St]||(ua=0<ua.length?"{"+ua.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
230
+ root.render(<App />);`),t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onUncaughtError!==void 0&&(n=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=ML(e,1,!1,null,null,a,o,null,n,s,c,_L),e[Js]=t.current,fv(e),new Dv(t)},BE.hydrateRoot=function(e,t,a){if(!R(e))throw Error("Target container is not a DOM element.");HL(e),t===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var o=!1,n="",s=zS,c=US,p=_S,x=null;return a!==null&&a!==void 0&&(a.unstable_strictMode===!0&&(o=!0),a.identifierPrefix!==void 0&&(n=a.identifierPrefix),a.onUncaughtError!==void 0&&(s=a.onUncaughtError),a.onCaughtError!==void 0&&(c=a.onCaughtError),a.onRecoverableError!==void 0&&(p=a.onRecoverableError),a.formState!==void 0&&(x=a.formState)),t=ML(e,1,!0,t,a!=null?a:null,o,n,x,s,c,p,_L),t.context=DL(null),a=t.current,o=nr(a),o=Hl(o),n=Fs(o),n.callback=null,Gs(a,n,o),mn(o,"hydrateRoot()",null),a=o,t.current.lanes=a,Os(t,a),Cn(t),e[Js]=t.current,fv(e),new mm(t)},BE.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var q1=Ti(function(PE,Lh){Lh.exports=_(N1())});var te=Ti(function(tN){var Ni=_(Ke());(function(){function r(Q){if(Q==null)return null;if(typeof Q==="function")return Q.$$typeof===V?null:Q.displayName||Q.name||null;if(typeof Q==="string")return Q;switch(Q){case I:return"Fragment";case O:return"Profiler";case R:return"StrictMode";case ue:return"Suspense";case Z:return"SuspenseList";case G:return"Activity"}if(typeof Q==="object")switch(typeof Q.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),Q.$$typeof){case C:return"Portal";case Y:return Q.displayName||"Context";case P:return(Q._context.displayName||"Context")+".Consumer";case W:var Fe=Q.render;return Q=Q.displayName,Q||(Q=Fe.displayName||Fe.name||"",Q=Q!==""?"ForwardRef("+Q+")":"ForwardRef"),Q;case ce:return Fe=Q.displayName||null,Fe!==null?Fe:r(Q.type)||"Memo";case ee:Fe=Q._payload,Q=Q._init;try{return r(Q(Fe))}catch(It){}}return null}function l(Q){return""+Q}function i(Q){try{l(Q);var Fe=!1}catch(ge){Fe=!0}if(Fe){Fe=console;var It=Fe.error,St=typeof Symbol==="function"&&Symbol.toStringTag&&Q[Symbol.toStringTag]||Q.constructor.name||"Object";return It.call(Fe,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",St),l(Q)}}function d(Q){if(Q===I)return"<>";if(typeof Q==="object"&&Q!==null&&Q.$$typeof===ee)return"<...>";try{var Fe=r(Q);return Fe?"<"+Fe+">":"<...>"}catch(It){return"<...>"}}function f(){var Q=Re.A;return Q===null?null:Q.getOwner()}function g(){return Error("react-stack-top-frame")}function v(Q){if(pe.call(Q,"key")){var Fe=Object.getOwnPropertyDescriptor(Q,"key").get;if(Fe&&Fe.isReactWarning)return!1}return Q.key!==void 0}function h(Q,Fe){function It(){oe||(oe=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",Fe))}It.isReactWarning=!0,Object.defineProperty(Q,"key",{get:It,configurable:!0})}function m(){var Q=r(this.type);return Se[Q]||(Se[Q]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),Q=this.props.ref,Q!==void 0?Q:null}function S(Q,Fe,It,St,ge,Ye){var He=It.ref;return Q={$$typeof:T,type:Q,key:Fe,props:It,_owner:St},(He!==void 0?He:null)!==null?Object.defineProperty(Q,"ref",{enumerable:!1,get:m}):Object.defineProperty(Q,"ref",{enumerable:!1,value:null}),Q._store={},Object.defineProperty(Q._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(Q,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(Q,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ge}),Object.defineProperty(Q,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Ye}),Object.freeze&&(Object.freeze(Q.props),Object.freeze(Q)),Q}function y(Q,Fe,It,St,ge,Ye){var He=Fe.children;if(He!==void 0)if(St)if(Ne(He)){for(St=0;St<He.length;St++)b(He[St]);Object.freeze&&Object.freeze(He)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else b(He);if(pe.call(Fe,"key")){He=r(Q);var ua=Object.keys(Fe).filter(function(j){return j!=="key"});St=0<ua.length?"{key: someKey, "+ua.join(": ..., ")+": ...}":"{key: someKey}",yt[He+St]||(ua=0<ua.length?"{"+ua.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
231
231
  let props = %s;
232
232
  <%s {...props} />
233
233
  React keys must be passed directly to JSX without using spread:
234
234
  let props = %s;
235
- <%s key={someKey} {...props} />`,St,He,ua,He),yt[He+St]=!0)}if(He=null,It!==void 0&&(i(It),He=""+It),v(Fe)&&(i(Fe.key),He=""+Fe.key),"key"in Fe){It={};for(var da in Fe)da!=="key"&&(It[da]=Fe[da])}else It=Fe;return He&&h(It,typeof Q==="function"?Q.displayName||Q.name||"Unknown":Q),S(Q,He,It,f(),ge,Ye)}function b(Q){L(Q)?Q._store&&(Q._store.validated=1):typeof Q==="object"&&Q!==null&&Q.$$typeof===ee&&(Q._payload.status==="fulfilled"?L(Q._payload.value)&&Q._payload.value._store&&(Q._payload.value._store.validated=1):Q._store&&(Q._store.validated=1))}function L(Q){return typeof Q==="object"&&Q!==null&&Q.$$typeof===T}var T=Symbol.for("react.transitional.element"),C=Symbol.for("react.portal"),I=Symbol.for("react.fragment"),R=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),z=Symbol.for("react.consumer"),Y=Symbol.for("react.context"),W=Symbol.for("react.forward_ref"),ue=Symbol.for("react.suspense"),Z=Symbol.for("react.suspense_list"),ce=Symbol.for("react.memo"),ee=Symbol.for("react.lazy"),G=Symbol.for("react.activity"),V=Symbol.for("react.client.reference"),Re=Ni.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,pe=Object.prototype.hasOwnProperty,Ne=Array.isArray,Te=console.createTask?console.createTask:function(){return null};Ni={react_stack_bottom_frame:function(Q){return Q()}};var oe,Se={},Ee=Ni.react_stack_bottom_frame.bind(Ni,g)(),Qe=Te(d(g)),yt={};tN.Fragment=I,tN.jsxDEV=function(Q,Fe,It,St){var ge=1e4>Re.recentlyCreatedOwnerStacks++;return y(Q,Fe,It,St,ge?Error("react-stack-top-frame"):Ee,ge?Te(d(Q)):Qe)}})()});var VR=_(q1(),1);var bd=_(Ke(),1);var wh=_(Ke(),1);var O1=(r)=>(r.match(/\d+[xX]\d+|[A-Z]?[a-z]+|[A-Z]|\d+/g)??[]).join("-").toLowerCase();function B1(r,l,i=[]){if(l==null)throw Error("[lucide]: iconNode is required when icon name is used");return{name:O1(r),size:24,node:l,...i.length>0?{aliases:i}:{}}}var z1=(r)=>{let l="",i=!1;for(let d of r){if(d==="-"||d==="_"||d<=" "){i=l.length>0;continue}if(l.length===0)l+=d.toLowerCase();else l+=i?d.toUpperCase():d;i=!1}return l};var P1=(r)=>{let l=z1(r);return l.charAt(0).toUpperCase()+l.slice(1)};var tf=_(Ke(),1);var ef=(...r)=>{let l=new Set;for(let i of r){if(typeof i!=="string")continue;for(let d of i.split(/\s+/))if(d)l.add(d)}return[...l].join(" ")};var Ri={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};function ib(r){return r!==null&&r!==void 0}function U1(r,l={}){let i=l.attributeNames??{},d=(L)=>i[L]??L,f=r.size??r.width??Ri.width,g=r.size??r.height??Ri.height,v=r.aliases?.filter((L)=>typeof L==="string"&&L.trim()!=="").map((L)=>`lucide-${L}`)??[],h=[...r.name?[`lucide-${r.name}`]:[],...v],m=l.className?.split(" ").filter(Boolean)??[],S=l.includeDefaultClasses===!1?ef(...m):ef("lucide",...h,...m),y=l.strokeWidth??Ri["stroke-width"];if(l.absoluteStrokeWidth){let L=Number(y)*Number(r.size??r.width??Ri.width)/Number(l.size??l.width??Ri.width);if(Number.isFinite(L))y=L}return["svg",{...Object.entries(Ri).reduce((L,[T,C])=>(L[d(T)]=C,L),{}),..."color"in l&&l.color&&{[d("stroke")]:l.color},..."size"in l&&ib(l.size)&&{[d("width")]:l.size,[d("height")]:l.size},..."width"in l&&ib(l.width)&&{[d("width")]:l.width},..."height"in l&&ib(l.height)&&{[d("height")]:l.height},[d("stroke-width")]:y,...S&&{[d("class")]:S},[d("viewBox")]:`0 0 ${f} ${g}`,...l.hasA11yProp===!1?{[d("aria-hidden")]:"true"}:{},..."attributes"in l&&l.attributes},r.node.map((L)=>{let[T,C,I]=L,R=l.nonScalingStroke?{[d("vector-effect")]:"non-scaling-stroke",...C}:C;return I?[T,R,I]:[T,R]})]}function _1(r,l={}){return U1(r,{...l,attributeNames:{...l.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}var H1=(r)=>{if(r==null||typeof r!=="object")return!1;for(let l in r)if(Object.prototype.hasOwnProperty.call(r,l)&&(l.startsWith("aria-")||l==="role"||l==="title")&&r[l]!=null)return!0;return!1};var Zu=_(Ke(),1),PE=Zu.createContext({});var F1=()=>Zu.useContext(PE);var G1=tf.forwardRef(({color:r,size:l,width:i,height:d,strokeWidth:f,absoluteStrokeWidth:g,nonScalingStroke:v,className:h="",children:m,iconNode:S=[],icon:y={node:S,aliases:[],size:24},...b},L)=>{let{size:T=24,strokeWidth:C=2,absoluteStrokeWidth:I=!1,nonScalingStroke:R=!1,color:O="currentColor",className:z=""}=F1()??{},Y=Boolean(m)||H1(b),[W,ue,Z=[]]=_1(y,{color:r??O,width:i??l??T,height:d??l??T,strokeWidth:f??C,absoluteStrokeWidth:g??I,nonScalingStroke:v??R,className:ef(z,h),hasA11yProp:Y,attributes:b});return tf.createElement(W,{ref:L,...ue},[...Z.map(([ce,ee])=>tf.createElement(ce,ee)),...Array.isArray(m)?m:[m]])});function re(r,l=[],i=[]){let d=typeof r==="string"?B1(r,l,i):r,f=wh.forwardRef(({className:g,...v},h)=>wh.createElement(G1,{ref:h,icon:d,className:g,...v}));if(d.name)f.displayName=P1(d.name);return f}var V1={name:"braces",size:24,node:[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]],aliases:["curly-braces"]};V1.node;var wl=re(V1);var j1={name:"circle-exclamation-point",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],aliases:["alert-circle","circle-alert"]};j1.node;var Jr=re(j1);var $1={name:"cloud-download",size:24,node:[["path",{d:"M12 13v8l-4-4",key:"1f5nwf"}],["path",{d:"m12 21 4-4",key:"1lfcce"}],["path",{d:"M4.393 15.269A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.436 8.284",key:"ui1hmy"}]],aliases:["download-cloud"]};$1.node;var Cl=re($1);var X1={name:"ellipsis",size:24,node:[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],aliases:["more-horizontal"]};X1.node;var Tl=re(X1);var Y1={name:"face-slightly-frowning",size:24,node:[["path",{d:"M15 10V9",key:"4dkmfx"}],["path",{d:"M9 10V9",key:"1lazqi"}],["path",{d:"M9 16a5 5 0 016 0",key:"34mdxb"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],aliases:["frown"]};Y1.node;var Il=re(Y1);var K1={name:"file-pen-line",size:24,node:[["path",{d:"M14.364 13.634a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506l4.013-4.009a1 1 0 0 0-3.004-3.004z",key:"ukzhwg"}],["path",{d:"M14.487 7.858A1 1 0 0 1 14 7V2",key:"1klhew"}],["path",{d:"M20 19.645V20a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l2.516 2.516",key:"rxaxab"}],["path",{d:"M8 18h1",key:"13wk12"}]],aliases:["file-signature"]};K1.node;var Rl=re(K1);var Q1={name:"plug-zap",size:24,node:[["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",key:"goz73y"}],["path",{d:"m2 22 3-3",key:"19mgm9"}],["path",{d:"M7.5 13.5 10 11",key:"7xgeeb"}],["path",{d:"M10.5 16.5 13 14",key:"10btkg"}],["path",{d:"m18 3-4 4h6l-4 4",key:"16psg9"}]],aliases:["plug-zap-2"]};Q1.node;var Al=re(Q1);var W1={name:"sparkles",size:24,node:[["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"}]],aliases:["stars"]};W1.node;var Un=re(W1);var Z1={name:"square-chart-gantt",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 8h7",key:"kbo1nt"}],["path",{d:"M8 12h6",key:"ikassy"}],["path",{d:"M11 16h5",key:"oq65wt"}]],aliases:["gantt-chart-square","square-gantt-chart"]};Z1.node;var en=re(Z1);var J1={name:"square-terminal",size:24,node:[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]],aliases:["terminal-square"]};J1.node;var Ml=re(J1);var eT={name:"triangle-exclamation-point",size:24,node:[["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"}]],aliases:["alert-triangle","triangle-alert"]};eT.node;var Ro=re(eT);var tT={name:"activity",size:24,node:[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]};tT.node;var af=re(tT);var aT={name:"archive",size:24,node:[["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:"M10 12h4",key:"a56b0p"}]]};aT.node;var of=re(aT);var oT={name:"arrow-down",size:24,node:[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]};oT.node;var rf=re(oT);var rT={name:"arrow-left",size:24,node:[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]};rT.node;var nf=re(rT);var nT={name:"arrow-right",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]};nT.node;var sf=re(nT);var sT={name:"arrow-up-right",size:24,node:[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]};sT.node;var lf=re(sT);var lT={name:"arrow-up",size:24,node:[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]};lT.node;var uf=re(lT);var iT={name:"bot",size:24,node:[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]};iT.node;var df=re(iT);var uT={name:"check",size:24,node:[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]};uT.node;var Ai=re(uT);var dT={name:"chevron-down",size:24,node:[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]};dT.node;var Mi=re(dT);var cT={name:"chevron-left",size:24,node:[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]};cT.node;var cf=re(cT);var fT={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};fT.node;var tn=re(fT);var pT={name:"clipboard-list",size:24,node:[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]]};pT.node;var ff=re(pT);var mT={name:"coins",size:24,node:[["path",{d:"M13.744 17.736a6 6 0 1 1-7.48-7.48",key:"bq4yh3"}],["path",{d:"M15 6h1v4",key:"11y1tn"}],["path",{d:"m6.134 14.768.866-.5 2 3.464",key:"17snzx"}],["circle",{cx:"16",cy:"8",r:"6",key:"14bfc9"}]]};mT.node;var pf=re(mT);var hT={name:"copy",size:24,node:[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]};hT.node;var Di=re(hT);var gT={name:"corner-down-right",size:24,node:[["path",{d:"m15 10 5 5-5 5",key:"qqa56n"}],["path",{d:"M4 4v7a4 4 0 0 0 4 4h12",key:"z08zvw"}]]};gT.node;var mf=re(gT);var yT={name:"cpu",size:24,node:[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]]};yT.node;var hf=re(yT);var vT={name:"file-plus",size:24,node:[["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:"M9 15h6",key:"cctwl0"}],["path",{d:"M12 18v-6",key:"17g6i2"}]]};vT.node;var gf=re(vT);var xT={name:"file-search",size:24,node:[["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"}],["circle",{cx:"11.5",cy:"14.5",r:"2.5",key:"1bq0ko"}],["path",{d:"M13.3 16.3 15 18",key:"2quom7"}]]};xT.node;var yf=re(xT);var bT={name:"file-text",size:24,node:[["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"}]]};bT.node;var vf=re(bT);var ST={name:"folder-git-2",size:24,node:[["path",{d:"M18 19a5 5 0 0 1-5-5v8",key:"sz5oeg"}],["path",{d:"M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v5",key:"1w6njk"}],["circle",{cx:"13",cy:"12",r:"2",key:"1j92g6"}],["circle",{cx:"20",cy:"19",r:"2",key:"1obnsp"}]]};ST.node;var xf=re(ST);var kT={name:"folder-search",size:24,node:[["path",{d:"M10.7 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v4.1",key:"1bw5m7"}],["path",{d:"m21 21-1.9-1.9",key:"1g2n9r"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}]]};kT.node;var bf=re(kT);var LT={name:"git-branch",size:24,node:[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]]};LT.node;var Sf=re(LT);var wT={name:"globe",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]};wT.node;var kf=re(wT);var CT={name:"hourglass",size:24,node:[["path",{d:"M5 22h14",key:"ehvnwv"}],["path",{d:"M5 2h14",key:"pdyrp9"}],["path",{d:"M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22",key:"1d314k"}],["path",{d:"M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2",key:"1vvvr6"}]]};CT.node;var Lf=re(CT);var TT={name:"inbox",size:24,node:[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]]};TT.node;var wf=re(TT);var IT={name:"languages",size:24,node:[["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"}]]};IT.node;var Cf=re(IT);var RT={name:"layout-grid",size:24,node:[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]};RT.node;var Tf=re(RT);var AT={name:"list-todo",size:24,node:[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["rect",{x:"3",y:"4",width:"6",height:"6",rx:"1",key:"cif1o7"}]]};AT.node;var If=re(AT);var MT={name:"menu",size:24,node:[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]};MT.node;var Rf=re(MT);var DT={name:"monitor",size:24,node:[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]};DT.node;var Af=re(DT);var ET={name:"moon",size:24,node:[["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"}]]};ET.node;var Mf=re(ET);var NT={name:"network",size:24,node:[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]};NT.node;var Df=re(NT);var qT={name:"refresh-cw",size:24,node:[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]};qT.node;var Dl=re(qT);var OT={name:"repeat-2",size:24,node:[["path",{d:"m2 9 3-3 3 3",key:"1ltn5i"}],["path",{d:"M13 18H7a2 2 0 0 1-2-2V6",key:"1r6tfw"}],["path",{d:"m22 15-3 3-3-3",key:"4rnwn2"}],["path",{d:"M11 6h6a2 2 0 0 1 2 2v10",key:"2f72bc"}]]};OT.node;var Ef=re(OT);var BT={name:"rotate-cw",size:24,node:[["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"}]]};BT.node;var Nf=re(BT);var zT={name:"scan-search",size:24,node:[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["path",{d:"m16 16-1.9-1.9",key:"1dq9hf"}]]};zT.node;var ws=re(zT);var PT={name:"scissors",size:24,node:[["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M8.12 8.12 12 12",key:"1alkpv"}],["path",{d:"M20 4 8.12 15.88",key:"xgtan2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M14.8 14.8 20 20",key:"ptml3r"}]]};PT.node;var qf=re(PT);var UT={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};UT.node;var Of=re(UT);var _T={name:"sun",size:24,node:[["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"}]]};_T.node;var Bf=re(_T);var HT={name:"text-search",size:24,node:[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M10 12H3",key:"1ulcyk"}],["path",{d:"M10 19H3",key:"108z41"}],["circle",{cx:"17",cy:"15",r:"3",key:"1upz2a"}],["path",{d:"m21 19-1.9-1.9",key:"dwi7p8"}]]};HT.node;var zf=re(HT);var FT={name:"wrench",size:24,node:[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]]};FT.node;var Ei=re(FT);var GT={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};GT.node;var Ao=re(GT);var ud=_(Ke(),1);function Ch(r){let l=r?.trim().toLowerCase()??"";if(l==="zh"||l.startsWith("zh-")||l.startsWith("zh_"))return"zh-CN";return"en"}function VT(r){for(let l of r??[]){let i=Ch(l);if(i!=="en")return i}return"en"}function UE(r,l={}){return r.replace(/\{([\w.-]+)\}/g,(i,d)=>{let f=l[d];return f===void 0?i:String(f)})}function jT(r,l,i,d={}){let f=i[r]?.[l]??i.en?.[l];if(f===void 0)return console.warn(`[stats.i18n] missing translation: ${l}`),l;return UE(f,d)}var Th={en:{"nav.usage":"Usage","nav.activity":"Activity","nav.insights":"Insights","nav.overview":"Overview","nav.models":"Models","nav.providers":"Providers","nav.costs":"Costs","nav.requests":"Requests","nav.errors":"Errors","nav.traces":"Traces","nav.tools":"Tools","nav.frustration":"Frustration","nav.projects":"Projects","nav.tracking":"Tracking","nav.gain":"Gain","nav.spotlight":"Spotlight","nav.dashboard":"zetacode stats","nav.breadcrumb-stats":"stats","nav.pages":"Pages","nav.open-navigation":"Open navigation"},"zh-CN":{"nav.usage":"用量","nav.activity":"活动","nav.insights":"洞察","nav.overview":"总览","nav.models":"模型","nav.providers":"服务商","nav.costs":"费用","nav.requests":"请求","nav.errors":"错误","nav.traces":"调用链","nav.tools":"工具","nav.frustration":"情绪压力","nav.projects":"项目","nav.tracking":"追踪","nav.gain":"收益","nav.spotlight":"亮点","nav.dashboard":"zeta 统计","nav.breadcrumb-stats":"统计","nav.pages":"导航","nav.open-navigation":"打开导航"}};var Ih={en:{"common.provider":"Provider","common.providers":"Providers","common.model":"Model","common.models":"Models","common.requests":"Requests","common.request":"Request","common.tokens":"Tokens","common.share":"Share","common.cost":"Cost","common.error-rate":"Error rate","common.tokens-per-second":"Tokens/s","common.output-tokens-per-second":"Output tokens/s","common.premium":"Premium","common.premium-requests":"Premium requests","common.duration":"Duration","common.started":"Started","common.request-id":"Request id","common.session-entry":"Session entry","common.entry-id":"Entry id","common.input":"Input","common.output":"Output","common.output-message":"Output message","common.cache-read":"Cache read","common.cache-write":"Cache write","common.project":"Project","common.pages":"Pages","common.filter":"Filter…","common.no-data-in-range":"No data in this range","common.nothing-here-yet":"Nothing here yet","common.show-more":"Show more","common.total":"Total","common.average":"Average","common.unknown":"Unknown","common.root":"(root)","common.other-n":"Other ({count})","common.time-range":"Time range","common.range-1h":"1h","common.range-24h":"24h","common.range-7d":"7d","common.range-30d":"30d","common.range-90d":"90d","common.range-all":"All","common.window-1h":"the last hour","common.window-24h":"the last 24 hours","common.window-7d":"the last 7 days","common.window-30d":"the last 30 days","common.window-90d":"the last 90 days","common.window-all":"all time","common.copy":"Copy","common.copied":"Copied","common.close":"Close","common.cancel":"Cancel","common.aborted":"Aborted","common.failed":"Failed","common.error":"Error","shell.live":"Live","shell.reconnecting":"Reconnecting","shell.syncing":"Syncing","shell.sync-failed":"Sync failed","shell.indexing":"Indexing","shell.lost-connection":"Lost the live connection to the stats server; retrying","shell.ingesting":"Ingesting session files","shell.building-rollups":"Building hourly rollups; older ranges fill in as it goes","shell.sync-now":"Click to sync session files now","shell.just-now":"just now","shell.system-theme":"System theme","shell.dark-theme":"Dark theme","shell.light-theme":"Light theme","shell.range-suffix":"range","shell.jump-hint":"then letter to jump","shell.language":"Language","shell.switch-language":"Switch dashboard language"},"zh-CN":{"common.provider":"服务商","common.providers":"服务商","common.model":"模型","common.models":"模型","common.requests":"请求","common.request":"请求","common.tokens":"Token","common.share":"占比","common.cost":"费用","common.error-rate":"错误率","common.tokens-per-second":"Token/s","common.output-tokens-per-second":"输出 Token/s","common.premium":"溢价","common.premium-requests":"溢价请求","common.duration":"耗时","common.started":"开始时间","common.request-id":"请求 ID","common.session-entry":"会话条目","common.entry-id":"条目 ID","common.input":"输入","common.output":"输出","common.output-message":"输出消息","common.cache-read":"缓存读取","common.cache-write":"缓存写入","common.project":"项目","common.pages":"页数","common.filter":"筛选…","common.no-data-in-range":"该时间范围内没有数据","common.nothing-here-yet":"暂无数据","common.show-more":"显示更多","common.total":"合计","common.average":"平均","common.unknown":"未知","common.root":"(根目录)","common.other-n":"其他({count})","common.time-range":"时间范围","common.range-1h":"1 小时","common.range-24h":"24 小时","common.range-7d":"7 天","common.range-30d":"30 天","common.range-90d":"90 天","common.range-all":"全部","common.window-1h":"最近 1 小时","common.window-24h":"最近 24 小时","common.window-7d":"最近 7 天","common.window-30d":"最近 30 天","common.window-90d":"最近 90 天","common.window-all":"全部时间","common.copy":"复制","common.copied":"已复制","common.close":"关闭","common.cancel":"取消","common.aborted":"已中止","common.failed":"失败","common.error":"错误","shell.live":"实时","shell.reconnecting":"重新连接中","shell.syncing":"同步中","shell.sync-failed":"同步失败","shell.indexing":"建立索引","shell.lost-connection":"与统计服务的实时连接已断开,正在重试","shell.ingesting":"正在导入会话文件","shell.building-rollups":"正在构建小时汇总;更早的时间范围会逐步补全","shell.sync-now":"点击立即同步会话文件","shell.just-now":"刚刚","shell.system-theme":"跟随系统","shell.dark-theme":"深色主题","shell.light-theme":"浅色主题","shell.range-suffix":"范围","shell.jump-hint":"再按字母跳转","shell.language":"语言","shell.switch-language":"切换仪表盘语言"}};var Rh={en:{"overview.title":"Overview","overview.description":"Everything zeta did across your sessions in {window}.","overview.api-equivalent-cost":"API-equivalent cost","overview.api-cost-title":"What this usage would cost at public API rates","overview.unpriced-n":"{count} unpriced","overview.failed-n":"{count} failed","overview.conversation-tokens":"Conversation tokens","overview.tokens-title":"Uncached input + cache reads + cache writes + output","overview.output-n":"{count} output","overview.cache-rate":"Cache rate","overview.cache-rate-title":"Cache reads ÷ (uncached input + cache reads)","overview.cache-saved":"{value} saved","overview.succeeded-n":"{count} succeeded","overview.uncached-input":"Uncached input","overview.avg-latency":"Avg latency","overview.avg-ttft":"Avg TTFT","overview.activity":"Activity","overview.per-5m":"Per 5 minutes","overview.per-hour":"Per hour","overview.per-day":"Per day","overview.succeeded":"Succeeded","overview.api-equivalent":"API-equivalent","overview.token-mix":"Token mix","overview.token-mix-description":"Where conversation tokens went","overview.by-agent":"By agent","overview.requests-short":"{count} req","overview.main-agent":"Main agent","overview.subagents":"Subagent","overview.advisor":"Advisor","overview.latest-requests":"Latest requests","overview.latest-requests-description":"Most recent model calls across every session","overview.all-requests":"All requests","overview.when":"When","overview.status":"Status","overview.ok":"OK"},"zh-CN":{"overview.title":"概览","overview.description":"在{window}内,zeta 在你的所有会话中完成的一切。","overview.api-equivalent-cost":"API 等效费用","overview.api-cost-title":"这些用量按公开 API 费率计算所需的费用","overview.unpriced-n":"{count} 个未定价","overview.failed-n":"{count} 个失败","overview.conversation-tokens":"对话 Token","overview.tokens-title":"未缓存输入 + 缓存读取 + 缓存写入 + 输出","overview.output-n":"{count} 输出","overview.cache-rate":"缓存命中率","overview.cache-rate-title":"缓存读取 ÷(未缓存输入 + 缓存读取)","overview.cache-saved":"节省 {value}","overview.succeeded-n":"{count} 个成功","overview.uncached-input":"未缓存输入","overview.avg-latency":"平均延迟","overview.avg-ttft":"平均 TTFT","overview.activity":"活动","overview.per-5m":"每 5 分钟","overview.per-hour":"每小时","overview.per-day":"每天","overview.succeeded":"成功","overview.api-equivalent":"API 等效","overview.token-mix":"Token 构成","overview.token-mix-description":"对话 Token 的去向","overview.by-agent":"按代理","overview.requests-short":"{count} 次请求","overview.main-agent":"主代理","overview.subagents":"子代理","overview.advisor":"顾问","overview.latest-requests":"最新请求","overview.latest-requests-description":"所有会话中最近的模型调用","overview.all-requests":"全部请求","overview.when":"时间","overview.status":"状态","overview.ok":"正常"}};var Ah={en:{"models.subtitle":"Which models did the work in {window}, and how fast they answered.","models.empty-title":"No model usage in this range","models.empty-hint":"Pick a wider range in the top bar.","models.used":"Models used","models.across-providers-one":"across {count} provider","models.across-providers":"across {count} providers","models.most-used":"Most used","models.most-used-hint":"{share} of requests · {provider}","models.failed-n":"{count} failed","models.api-cost":"API-equivalent cost","models.api-cost-title":"What this usage would cost at public API rates","models.unpriced-n":"{count} unpriced","models.request-share":"Request share","models.share-desc":"Each model's share of requests per {bucket}","models.count-desc":"Requests per {bucket}, stacked by model","models.share-mode-aria":"Share chart mode","models.all-models":"All models","models.table-desc":"Click a row for latency and throughput over time","models.cost-title":"API-equivalent estimate at public rates","models.tokens-title":"Uncached input + cache reads + cache writes + output","models.cache-rate":"Cache rate","models.cache-title":"Cache reads ÷ (uncached input + cache reads)","models.errors":"Errors","models.tps-title":"Average output tokens per second","models.ttft":"TTFT","models.ttft-title":"Average time to first token","models.trend":"Trend","models.trend-title":"Requests per {bucket}","models.efficiency":"Efficiency","models.latency":"Latency","models.cache-savings":"Cache savings","models.avg-duration":"Avg duration","models.avg-ttft":"Avg TTFT","models.uncached-input":"Uncached input","models.first-last-seen":"First seen {first} · last seen {last}","models.performance-per-bucket":"Performance per active {bucket}","models.no-samples-title":"No performance samples","models.no-samples-hint":"Timing is recorded for streamed responses.","models.tok-per-second":"{value} tok/s","models.bucket-5m":"5 minutes","models.bucket-hour":"hour","models.bucket-day":"day"},"zh-CN":{"models.subtitle":"在{window}内哪些模型完成了工作,以及它们的响应速度如何。","models.empty-title":"该时间范围内没有模型用量","models.empty-hint":"请在顶部栏选择更宽的时间范围。","models.used":"使用模型数","models.across-providers-one":"覆盖 {count} 个服务商","models.across-providers":"覆盖 {count} 个服务商","models.most-used":"使用最多","models.most-used-hint":"{share} 请求占比 · {provider}","models.failed-n":"{count} 个失败","models.api-cost":"API 等价费用","models.api-cost-title":"按公开 API 价格计算这笔用量的费用","models.unpriced-n":"{count} 个未定价","models.request-share":"请求占比","models.share-desc":"每个{bucket}中各模型的请求占比","models.count-desc":"每个{bucket}的请求数,按模型堆叠","models.share-mode-aria":"占比图表模式","models.all-models":"所有模型","models.table-desc":"点击某行可查看延迟与吞吐随时间的变化","models.cost-title":"按公开价格估算的 API 等价费用","models.tokens-title":"未缓存输入 + 缓存读取 + 缓存写入 + 输出","models.cache-rate":"缓存命中率","models.cache-title":"缓存读取 ÷(未缓存输入 + 缓存读取)","models.errors":"错误","models.tps-title":"平均输出 Token/s","models.ttft":"首 Token 延迟","models.ttft-title":"平均首 Token 延迟","models.trend":"趋势","models.trend-title":"每个{bucket}的请求数","models.efficiency":"效率","models.latency":"延迟","models.cache-savings":"缓存节省","models.avg-duration":"平均耗时","models.avg-ttft":"平均首 Token 延迟","models.uncached-input":"未缓存输入","models.first-last-seen":"首次出现 {first} · 最近出现 {last}","models.performance-per-bucket":"每个活跃{bucket}的性能","models.no-samples-title":"没有性能样本","models.no-samples-hint":"只有流式响应会记录耗时。","models.tok-per-second":"{value} Token/s","models.bucket-5m":"5 分钟","models.bucket-hour":"小时","models.bucket-day":"天"}};var Mh={en:{"providers.description":"Burn, reliability and subscription headroom per provider over {window}.","providers.most-tokens":"Most tokens: {provider}","providers.failed-n":"{count} failed","providers.succeeded-n":"{count} succeeded","providers.tokens-title":"Uncached input + cache reads + cache writes + output","providers.api-equivalent-cost":"API-equivalent cost","providers.api-cost-title":"What this usage would cost at public API rates","providers.unpriced-n":"{count} unpriced","providers.totals":"Provider totals","providers.totals-description":"Cost is an API-equivalent estimate. Select a row for its token mix.","providers.totals-description-unpriced-one":"Cost is an API-equivalent estimate and excludes {count} unpriced subscription request. Select a row for its token mix.","providers.totals-description-unpriced-n":"Cost is an API-equivalent estimate and excludes {count} unpriced subscription requests. Select a row for its token mix.","providers.no-requests-in-range":"No requests in this range","providers.models-title":"Distinct models used through this provider","providers.share-title":"Fraction of all tokens in range","providers.cost-title":"API-equivalent estimate","providers.tps-title":"Average output throughput","providers.premium-title":"Premium requests (subscription multiplier units)","providers.burn":"Burn by provider","providers.burn-estimate-description":"API-equivalent estimate per {bucket}; excludes unpriced subscription requests","providers.burn-description":"Per {bucket}, top {count} providers stacked","providers.bucket-5m":"5 minutes","providers.bucket-hour":"hour","providers.bucket-day":"day","providers.no-provider-activity":"No provider activity in this range","providers.peak-burn-hours":"Peak burn hours","providers.peak-hours-description":"Tokens by local hour of day; peak at {hour}","providers.hours-description":"Tokens by local hour of day","providers.all-providers":"All providers","providers.tokens-peak-hour":"Tokens (peak hour)","providers.no-activity-in-range":"No activity in this range","providers.subscription-windows":"Subscription windows","providers.subscription-windows-description":"What one usage window buys you and how many accounts peak demand needs. Select a row to chart it.","providers.window":"Window","providers.accounts":"Accounts","providers.accounts-title":"Accounts with at least one snapshot for this window in range","providers.resets":"Resets","providers.resets-title":"Window resets observed (drops in used fraction)","providers.windows-burned":"Windows burned","providers.windows-burned-title":"Subscription-window equivalents consumed in range (sum of used-fraction increases across accounts)","providers.tokens-per-window":"Tokens / window","providers.tokens-per-window-title":"Provider tokens burned in range ÷ windows burned — what one full window is worth","providers.too-little-consumed":"Too little of the window was consumed to extrapolate","providers.peak-utilization":"Peak utilization","providers.peak-utilization-title":"Peak of summed used fraction across accounts at any sampled instant; the bar is relative to fleet capacity","providers.accounts-needed":"Accounts needed","providers.accounts-needed-title":"Accounts needed to keep peak demand under 90% of fleet capacity","providers.ideal-accounts":"{ideal} · have {have}","providers.exhaustions":"Exhaustions","providers.exhaustions-title":"Transitions into an exhausted state observed in range","providers.exhausted-n":"{count} exhausted","providers.no-snapshots-in-range":"No usage snapshots in this range","providers.snapshot-hint":"Usage snapshots accumulate whenever usage limits are fetched (TUI footer, /usage, zetacode usage).","providers.utilization":"Window utilization","providers.utilization-description":"{window} used fraction per account, {from} – {to}","providers.utilization-description-plain":"Recorded limit utilization per account","providers.no-utilization-readings":"No utilization readings for this window","providers.exhausted":"Exhausted","providers.no-reading":"No reading","providers.high":"High","providers.account":"Account","providers.latest-used":"Latest used","providers.status":"Status","providers.peak-in-range":"Peak in range","providers.snapshots":"Snapshots","providers.recorded":"Recorded"},"zh-CN":{"providers.description":"各服务商在{window}内的消耗、可靠性与订阅余量。","providers.most-tokens":"Token 最多:{provider}","providers.failed-n":"{count} 次失败","providers.succeeded-n":"{count} 次成功","providers.tokens-title":"未缓存输入 + 缓存读取 + 缓存写入 + 输出","providers.api-equivalent-cost":"API 等效费用","providers.api-cost-title":"此用量按公开 API 费率计算需要多少费用","providers.unpriced-n":"{count} 个未定价","providers.totals":"服务商汇总","providers.totals-description":"费用为 API 等效估算。选择一行可查看其 Token 构成。","providers.totals-description-unpriced-one":"费用为 API 等效估算,且未包含 {count} 个未定价的订阅请求。选择一行可查看其 Token 构成。","providers.totals-description-unpriced-n":"费用为 API 等效估算,且未包含 {count} 个未定价的订阅请求。选择一行可查看其 Token 构成。","providers.no-requests-in-range":"该时间范围内没有请求","providers.models-title":"通过该服务商使用的不同模型","providers.share-title":"该时间范围内全部 Token 中的占比","providers.cost-title":"API 等效估算","providers.tps-title":"平均输出吞吐量","providers.premium-title":"溢价请求(订阅倍率单位)","providers.burn":"按服务商的消耗","providers.burn-estimate-description":"每{bucket}的 API 等效估算;不含未定价的订阅请求","providers.burn-description":"每{bucket},堆叠显示前 {count} 个服务商","providers.bucket-5m":"5 分钟","providers.bucket-hour":"小时","providers.bucket-day":"天","providers.no-provider-activity":"该时间范围内没有服务商活动","providers.peak-burn-hours":"消耗高峰时段","providers.peak-hours-description":"按本地时段统计的 Token;高峰在 {hour}","providers.hours-description":"按本地时段统计的 Token","providers.all-providers":"全部服务商","providers.tokens-peak-hour":"Token(高峰时段)","providers.no-activity-in-range":"该时间范围内没有活动","providers.subscription-windows":"订阅窗口","providers.subscription-windows-description":"一个用量窗口能带来多少用量,以及峰值需求需要多少个账号。选择一行可将它绘制成图表。","providers.window":"窗口","providers.accounts":"账号","providers.accounts-title":"该时间范围内对此窗口至少有一个快照的账号","providers.resets":"重置次数","providers.resets-title":"观测到的窗口重置次数(已用比例下降)","providers.windows-burned":"消耗的窗口数","providers.windows-burned-title":"该时间范围内消耗的订阅窗口等效量(各账号已用比例增量之和)","providers.tokens-per-window":"Token / 窗口","providers.tokens-per-window-title":"该时间范围内消耗的服务商 Token ÷ 消耗的窗口数 —— 一个完整窗口的价值","providers.too-little-consumed":"该窗口消耗太少,无法外推","providers.peak-utilization":"峰值利用率","providers.peak-utilization-title":"任意采样时刻各账号已用比例之和的峰值;进度条相对于整体容量","providers.accounts-needed":"所需账号数","providers.accounts-needed-title":"将峰值需求控制在整体容量 90% 以下所需的账号数","providers.ideal-accounts":"{ideal} · 现有 {have}","providers.exhaustions":"耗尽次数","providers.exhaustions-title":"该时间范围内观测到的进入耗尽状态的次数","providers.exhausted-n":"{count} 次耗尽","providers.no-snapshots-in-range":"该时间范围内没有用量快照","providers.snapshot-hint":"每当获取用量限额时都会累积用量快照(TUI 底部、/usage、zetacode usage)。","providers.utilization":"窗口利用率","providers.utilization-description":"{window} 各账号的已用比例,{from} – {to}","providers.utilization-description-plain":"各账号已记录的限额利用率","providers.no-utilization-readings":"该窗口没有利用率记录","providers.exhausted":"已耗尽","providers.no-reading":"无读数","providers.high":"偏高","providers.account":"账号","providers.latest-used":"最新已用","providers.status":"状态","providers.peak-in-range":"范围内峰值","providers.snapshots":"快照数","providers.recorded":"记录时间"}};var Dh={en:{"costs.title":"Costs","costs.description":"What {window} of usage would cost at public API rates. Subscription usage without a public price is counted as unpriced, not free.","costs.no-usage-in-range":"No usage in this range","costs.empty-hint":"Pick a wider range in the top bar.","costs.daily-estimate":"Daily estimate","costs.daily-by-model":"Per day, stacked by model","costs.daily-by-component":"Per day, stacked by billing component","costs.split-by":"Split by","costs.by-model":"By model","costs.by-component":"By component","costs.no-priced-usage":"No priced usage in this range","costs.unpriced-requests":"Unpriced requests","costs.where-it-went":"Where it went","costs.estimate-by-component":"Estimate by billing component","costs.unpriced-note-one":"{count} unpriced subscription request is not included.","costs.unpriced-note-n":"{count} unpriced subscription requests are not included.","costs.by-model-description":"Estimate per model with its input, output and cache split","costs.estimate":"Estimate","costs.estimate-title":"API-equivalent estimate at public rates","costs.split":"Split","costs.split-title":"Input · output · cache read · cache write","costs.per-request":"Per request","costs.per-request-title":"Estimate ÷ priced requests","costs.unpriced":"Unpriced","costs.unpriced-column-title":"Requests with no public-equivalent price","costs.api-equivalent-estimate":"API-equivalent estimate","costs.api-estimate-title":"What this usage would cost at public API rates","costs.requests-n":"{count} requests","costs.average-per-day":"Average per day","costs.average-per-day-title":"Estimate ÷ days with any usage","costs.active-days-one":"over {count} active day","costs.active-days-n":"over {count} active days","costs.top-model":"Top model","costs.top-model-hint":"{cost} · {share} of estimate","costs.nothing-priced-yet":"Nothing priced yet","costs.per-priced-request":"Per priced request","costs.per-priced-request-title":"Estimate ÷ requests that have a public price","costs.priced-n":"{count} priced","costs.unpriced-title":"Subscription usage with no public-equivalent price; excluded from the estimate","costs.unpriced-hint":"excluded from the estimate","costs.all-priced":"all usage priced"},"zh-CN":{"costs.title":"费用","costs.description":"按公开 API 费率计算,{window}的用量需要多少费用。没有公开价格的订阅用量计为未定价,而不是免费。","costs.no-usage-in-range":"此时间范围内没有用量","costs.empty-hint":"请在顶栏选择更宽的时间范围。","costs.daily-estimate":"每日估算","costs.daily-by-model":"按本地日统计,按模型堆叠","costs.daily-by-component":"按本地日统计,按计费组件堆叠","costs.split-by":"拆分依据","costs.by-model":"按模型","costs.by-component":"按组件","costs.no-priced-usage":"此时间范围内没有已定价的用量","costs.unpriced-requests":"未定价请求","costs.where-it-went":"费用去向","costs.estimate-by-component":"按计费组件估算","costs.unpriced-note-one":"{count} 个未定价的订阅请求未计入。","costs.unpriced-note-n":"{count} 个未定价的订阅请求未计入。","costs.by-model-description":"按模型估算,并附输入、输出与缓存的拆分","costs.estimate":"估算","costs.estimate-title":"按公开费率计算的 API 等效估算","costs.split":"拆分","costs.split-title":"输入 · 输出 · 缓存读取 · 缓存写入","costs.per-request":"单次请求","costs.per-request-title":"估算值 ÷ 已定价请求数","costs.unpriced":"未定价","costs.unpriced-column-title":"没有公开等效价格的请求","costs.api-equivalent-estimate":"API 等效估算","costs.api-estimate-title":"此用量按公开 API 费率计算需要多少费用","costs.requests-n":"{count} 个请求","costs.average-per-day":"日均","costs.average-per-day-title":"估算值 ÷ 有用量的天数","costs.active-days-one":"共 {count} 个活跃日","costs.active-days-n":"共 {count} 个活跃日","costs.top-model":"费用最高的模型","costs.top-model-hint":"{cost} · 占估算值的 {share}","costs.nothing-priced-yet":"暂无已定价用量","costs.per-priced-request":"单个已定价请求","costs.per-priced-request-title":"估算值 ÷ 有公开价格的请求数","costs.priced-n":"已定价 {count} 个","costs.unpriced-title":"没有公开等效价格的订阅用量;不计入估算","costs.unpriced-hint":"不计入估算","costs.all-priced":"全部用量均已定价"}};var Eh={en:{"requests.description":"Every model call zeta made in {window}, newest first. Open a row for its full payload.","requests.loading":"Loading…","requests.load-latest":"Load latest {count}","requests.status":"Status","requests.status-all":"All","requests.none-in-window":"none in {window}","requests.since":"since {time}","requests.failed-hint":"{rate} · {count} aborted","requests.tokens-hint":"Total tokens across these requests","requests.api-equivalent-cost":"API-equivalent cost","requests.cost-hint":"What these requests would cost at public API rates","requests.unpriced-n":"{count} unpriced","requests.median-duration":"Median duration","requests.p95":"p95 {value}","requests.median-ttft":"Median TTFT","requests.ttft":"TTFT","requests.ttft-hint":"Time to first token","requests.log-title":"Request log","requests.log-loading":"Loading the latest requests…","requests.log-count-in-window":"{shown} of {total} requests in {window}","requests.log-count-latest":"{shown} of the latest {total} requests","requests.search-placeholder":"Model, provider or project","requests.footer":"Showing the latest {count} requests, back to {time}. Older requests in {window} are not loaded.","requests.empty-in-window":"No requests in {window}","requests.empty-no-match":"No requests match","requests.empty-no-match-hint":"Clear the search or status filter.","requests.when":"When","requests.uncached-input":"Uncached input tokens","requests.cache-read-title":"Cache read tokens (hover a cell for cache writes)","requests.cache-write":"Cache write: {count}","requests.cost-estimate":"API-equivalent estimate"},"zh-CN":{"requests.description":"zeta 在 {window} 内发出的每一次模型调用,最新在前。打开某一行可查看其完整载荷。","requests.loading":"加载中…","requests.load-latest":"加载最新 {count} 条","requests.status":"状态","requests.status-all":"全部","requests.none-in-window":"{window} 内没有请求","requests.since":"自 {time} 起","requests.failed-hint":"{rate} · {count} 个已中止","requests.tokens-hint":"这些请求的 Token 总量","requests.api-equivalent-cost":"API 等价费用","requests.cost-hint":"这些请求按公开 API 费率计算的费用","requests.unpriced-n":"{count} 个未定价","requests.median-duration":"耗时中位数","requests.p95":"p95 分位 {value}","requests.median-ttft":"首 Token 延迟中位数","requests.ttft":"首 Token 延迟","requests.ttft-hint":"首 Token 延迟","requests.log-title":"请求日志","requests.log-loading":"正在加载最新请求…","requests.log-count-in-window":"{window} 内共 {total} 个请求,显示 {shown} 个","requests.log-count-latest":"最新 {total} 个请求中显示 {shown} 个","requests.search-placeholder":"模型、服务商或项目","requests.footer":"显示最新 {count} 个请求,回溯至 {time}。{window} 内更早的请求未加载。","requests.empty-in-window":"{window} 内没有请求","requests.empty-no-match":"没有匹配的请求","requests.empty-no-match-hint":"清除搜索内容或状态筛选。","requests.when":"时间","requests.uncached-input":"未缓存输入 Token","requests.cache-read-title":"缓存读取 Token(将鼠标悬停在单元格上可查看缓存写入)","requests.cache-write":"缓存写入:{count}","requests.cost-estimate":"API 等价估算"}};var Nh={en:{"errors.title":"Errors","errors.description":"Failed model requests in {window}, grouped by error signature. Open a failure for its full payload.","errors.footer":"Showing the latest {count} failures in {window}; older ones are not loaded.","errors.loading":"Loading…","errors.load-latest":"Load latest {count}","errors.failures":"Failures","errors.hint-in-window":"in {window}","errors.hint-latest-loaded":"latest {count} loaded","errors.signatures":"Signatures","errors.signatures-hint":"Distinct error messages after normalizing ids and numbers","errors.signatures-top":"top: {count} failures","errors.affected-models":"Affected models","errors.last-failure":"Last failure","errors.none-in-window":"none in {window}","errors.error-signatures":"Error signatures","errors.signatures-card-description":"Same message with ids and counters normalized. Select one to filter the failures below.","errors.empty-no-failures":"No failures in {window}","errors.empty-all-succeeded":"Every request succeeded or was aborted.","errors.by-model":"By model","errors.by-model-description":"Failures per model. Select one to filter.","errors.empty-no-affected-models":"No affected models","errors.loading-failures":"Loading failures…","errors.filtered-of-total":"{shown} of {total} failures, newest first","errors.search-placeholder":"Message, model or project","errors.no-match":"No failures match","errors.no-match-hint":"Clear the search or the selected filters.","errors.signature":"Signature","errors.more-models":"+{count} more","errors.last-seen":"Last seen","errors.unknown-error":"Unknown error","errors.group-meta":"{count} failures · first {first} · last {last}","errors.open-latest":"Open latest","errors.when":"When","errors.cost-hint":"API-equivalent estimate"},"zh-CN":{"errors.title":"错误","errors.description":"在 {window} 内失败的模型请求,按错误签名分组。打开某条失败可查看完整载荷。","errors.footer":"显示 {window} 内最新的 {count} 个失败;更早的未加载。","errors.loading":"加载中…","errors.load-latest":"加载最新 {count} 条","errors.failures":"失败","errors.hint-in-window":"{window} 内","errors.hint-latest-loaded":"已加载最新 {count} 条","errors.signatures":"签名","errors.signatures-hint":"对 ID 和数字归一化后不同的错误消息","errors.signatures-top":"最多:{count} 个失败","errors.affected-models":"受影响的模型","errors.last-failure":"最近一次失败","errors.none-in-window":"{window} 内没有失败","errors.error-signatures":"错误签名","errors.signatures-card-description":"同一消息在归一化 ID 和计数后归为一组。选择一项可筛选下方的失败。","errors.empty-no-failures":"{window} 内没有失败","errors.empty-all-succeeded":"所有请求均已成功或被中止。","errors.by-model":"按模型","errors.by-model-description":"各模型的失败数。选择一项可筛选。","errors.empty-no-affected-models":"没有受影响的模型","errors.loading-failures":"正在加载失败…","errors.filtered-of-total":"共 {total} 个失败,显示 {shown} 个,最新在前","errors.search-placeholder":"消息、模型或项目","errors.no-match":"没有匹配的失败","errors.no-match-hint":"清除搜索内容或已选筛选条件。","errors.signature":"签名","errors.more-models":"另有 {count} 个","errors.last-seen":"最近出现","errors.unknown-error":"未知错误","errors.group-meta":"{count} 个失败 · 首次 {first} · 最近 {last}","errors.open-latest":"打开最新","errors.when":"时间","errors.cost-hint":"按 API 价格估算"}};var qh={en:{"trace.title":"Traces","trace.description":"Recent sessions with subagent activity folded in. Open one to inspect its timeline.","trace.sessions":"Sessions","trace.session":"Session","trace.most-recent":"{count} most recent","trace.most-recent-filtered":"{shown} of {total} most recent","trace.filter-placeholder":"Filter by title, project, model…","trace.empty-title":"No sessions found","trace.empty-hint":"Run a sync to index recent activity.","trace.no-matching-title":"No matching sessions","trace.no-matching-hint":"Try a different filter.","trace.tool":"Tool","trace.tools":"Tools","trace.agent":"Agent","trace.agents":"Agents","trace.background":"Background","trace.bg":"Bg","trace.refresh":"Refresh trace","trace.timeline":"Timeline","trace.timeline-hint":"W/S zoom · A/D pan · drag pan · wheel zoom · 0 fit · F focus selection · dbl-click focus · Esc deselect","trace.expand-all":"Expand all","trace.collapse-all":"Collapse all","trace.axis-mode":"Axis mode","trace.mode-time-title":"Real wall-clock time","trace.mode-turns-title":"Equal width per user turn","trace.mode-calls-title":"Equal width per model/tool call boundary","trace.turns":"Turns","trace.calls":"Calls","trace.compress-idle":"Compress idle","trace.search-placeholder":"Search spans…","trace.previous-match":"Previous match","trace.next-match":"Next match","trace.transcript":"Transcript","trace.transcript-description":"Every span and marker in order; click to inspect","trace.no-matching-events":"No matching events","trace.canvas-aria":"Trace timeline. W and S zoom, A and D pan, 0 fits all, F focuses the selection.","trace.minimap-aria":"Timeline overview brush","trace.expand-track":"Expand {track}","trace.collapse-track":"Collapse {track}","trace.unterminated":"unterminated","trace.tok":"tok","trace.ttft":"TTFT","trace.wall-time":"Wall time","trace.model-time":"Model time","trace.tool-time":"Tool time","trace.idle":"Idle","trace.tool-calls-n":"{count} tool calls","trace.of-wall":"{percent} of wall","trace.tool-aggregates":"Tool aggregates","trace.tool-aggregates-desc":"{count} tools, by total time","trace.errors":"Errors","trace.failed-n":"{count} failed","trace.avg":"Avg","trace.max":"Max","trace.start":"Start","trace.track":"Track","trace.io-cached":"Input / output / cached","trace.stop-reason":"Stop reason","trace.copy-json":"Copy raw JSON","trace.error-message":"Error message","trace.task":"Task","trace.open-child-track":"Open child track","trace.args":"Args","trace.thinking":"Thinking","trace.text":"Text","trace.raw-entry":"Raw entry","trace.load-failed":"Failed to load entry: {message}"},"zh-CN":{"trace.title":"调用链","trace.description":"最近的会话,已合并子代理活动。打开其中一个即可查看其时间线。","trace.sessions":"会话","trace.session":"会话","trace.most-recent":"最近 {count} 条","trace.most-recent-filtered":"最近 {total} 条中的 {shown} 条","trace.filter-placeholder":"按标题、项目或模型筛选…","trace.empty-title":"未找到会话","trace.empty-hint":"运行一次同步以索引最近的活动。","trace.no-matching-title":"没有匹配的会话","trace.no-matching-hint":"请尝试其他筛选条件。","trace.tool":"工具","trace.tools":"工具","trace.agent":"智能体","trace.agents":"智能体","trace.background":"后台","trace.bg":"背景","trace.refresh":"刷新调用链","trace.timeline":"时间线","trace.timeline-hint":"W/S 缩放 · A/D 平移 · 拖拽平移 · 滚轮缩放 · 0 适应全部 · F 聚焦所选 · 双击聚焦 · Esc 取消选择","trace.expand-all":"全部展开","trace.collapse-all":"全部折叠","trace.axis-mode":"坐标轴模式","trace.mode-time-title":"真实墙钟时间","trace.mode-turns-title":"每个用户轮次等宽","trace.mode-calls-title":"每个模型/工具调用边界等宽","trace.turns":"轮次","trace.calls":"调用次数","trace.compress-idle":"压缩空闲时间","trace.search-placeholder":"搜索跨度…","trace.previous-match":"上一个匹配","trace.next-match":"下一个匹配","trace.transcript":"对话记录","trace.transcript-description":"按顺序列出所有跨度和标记;点击可查看详情","trace.no-matching-events":"没有匹配的事件","trace.canvas-aria":"调用链时间线。W 和 S 缩放,A 和 D 平移,0 适应全部,F 聚焦所选。","trace.minimap-aria":"时间线概览刷选","trace.expand-track":"展开 {track}","trace.collapse-track":"折叠 {track}","trace.unterminated":"未结束","trace.tok":"Token","trace.ttft":"首 Token 延迟","trace.wall-time":"墙钟时间","trace.model-time":"模型耗时","trace.tool-time":"工具耗时","trace.idle":"空闲","trace.tool-calls-n":"{count} 次工具调用","trace.of-wall":"占墙钟时间 {percent}","trace.tool-aggregates":"工具汇总","trace.tool-aggregates-desc":"{count} 个工具,按总耗时排序","trace.errors":"错误","trace.failed-n":"{count} 个失败","trace.avg":"平均","trace.max":"最大","trace.start":"开始","trace.track":"轨道","trace.io-cached":"输入 / 输出 / 缓存读取","trace.stop-reason":"停止原因","trace.copy-json":"复制原始 JSON","trace.error-message":"错误信息","trace.task":"任务","trace.open-child-track":"打开子轨道","trace.args":"参数","trace.thinking":"思考过程","trace.text":"文本","trace.raw-entry":"原始条目","trace.load-failed":"加载条目失败:{message}"}};var Oh={en:{"tools.title":"Tools","tools.description":"Which tools zeta called in {window}, how often they failed, and what they cost.","tools.tool-calls":"Tool calls","tools.failed-n":"{count} failed","tools.distinct-tools":"Distinct tools","tools.most-used":"Most used: {tool}","tools.error-rate-title":"Tool results that came back flagged as errors","tools.succeeded-n":"{count} succeeded","tools.attributed-tokens":"Attributed tokens","tools.tokens-output":"{tokens} output","tools.attributed-cost":"Attributed cost","tools.attribution-note":"Tokens and API-equivalent cost of each invoking turn, split evenly across that turn's tool calls","tools.attribution-estimate":"{note}; API-equivalent estimate","tools.unpriced-requests-n":"{count} unpriced requests","tools.api-equivalent":"API-equivalent","tools.result-text":"Result text","tools.result-chars-title":"Characters of tool-result text fed back into context","tools.chars":"{count} chars","tools.call-arguments":"Call arguments","tools.args-chars-title":"Characters of serialized tool-call arguments","tools.avg-result-per-call":"Avg result per call","tools.avg-args-per-call":"Avg arguments per call","tools.calls-over-time":"Calls over time","tools.errors-over-time":"Errors over time","tools.chart-description":"Per {bucket}, top {count} tools stacked","tools.bucket-5m":"5 minutes","tools.bucket-hour":"hour","tools.bucket-day":"day","tools.calls":"Calls","tools.errors":"Errors","tools.no-tool-errors":"No tool errors in this range","tools.by-tool":"By tool","tools.by-tool-description":"{note}. Select a tool to break it down by model.","tools.by-tool-and-model":"By tool and model","tools.by-tool-and-model-description":"Which models call which tools, and how often those calls fail","tools.filter-by-tool":"Filter by tool","tools.all-tools":"All tools","tools.clear-tool-filter":"Clear tool filter","tools.no-tool-calls":"No tool calls in this range","tools.no-calls-to-tool":"No calls to {tool} in this range","tools.tool":"Tool","tools.trend":"Trend","tools.trend-title":"Calls per bucket over the range","tools.share-of-calls":"{percent} of all tool calls","tools.errors-title":"Calls whose result came back flagged as an error","tools.args":"Args","tools.result":"Result","tools.result-per-call":"Result / call","tools.result-per-call-title":"Mean tool-result characters per call","tools.attr-tokens":"Attr. tokens","tools.share-of-tokens":"{percent} of attributed tokens","tools.attr-cost":"Attr. cost","tools.share-of-cost":"{percent} of attributed cost","tools.last-used":"Last used"},"zh-CN":{"tools.title":"工具","tools.description":"zeta 在{window}调用了哪些工具、它们的失败频率如何,以及产生了多少费用。","tools.tool-calls":"工具调用","tools.failed-n":"{count} 个失败","tools.distinct-tools":"不同工具数","tools.most-used":"使用最多:{tool}","tools.error-rate-title":"返回时被标记为错误的工具结果","tools.succeeded-n":"{count} 个成功","tools.attributed-tokens":"归属 Token","tools.tokens-output":"{tokens} 输出","tools.attributed-cost":"归属费用","tools.attribution-note":"每次调用回合的 Token 与 API 等价费用,平均分摊到该回合的各个工具调用","tools.attribution-estimate":"{note};按 API 等价估算","tools.unpriced-requests-n":"{count} 个未定价请求","tools.api-equivalent":"按 API 等价","tools.result-text":"结果文本","tools.result-chars-title":"回填到上下文中的工具结果文本字符数","tools.chars":"{count} 字符","tools.call-arguments":"调用参数","tools.args-chars-title":"序列化后的工具调用参数字符数","tools.avg-result-per-call":"每次调用平均结果","tools.avg-args-per-call":"每次调用平均参数","tools.calls-over-time":"调用次数随时间变化","tools.errors-over-time":"错误数随时间变化","tools.chart-description":"按{bucket}统计,堆叠显示前 {count} 个工具","tools.bucket-5m":"5 分钟","tools.bucket-hour":"小时","tools.bucket-day":"天","tools.calls":"调用次数","tools.errors":"错误数","tools.no-tool-errors":"该时间范围内没有工具错误","tools.by-tool":"按工具","tools.by-tool-description":"{note}。选择某个工具可按模型细分。","tools.by-tool-and-model":"按工具和模型","tools.by-tool-and-model-description":"哪些模型调用了哪些工具,以及这些调用的失败频率","tools.filter-by-tool":"按工具筛选","tools.all-tools":"全部工具","tools.clear-tool-filter":"清除工具筛选","tools.no-tool-calls":"该时间范围内没有工具调用","tools.no-calls-to-tool":"该时间范围内没有对 {tool} 的调用","tools.tool":"工具","tools.trend":"趋势","tools.trend-title":"时间范围内每个分桶的调用次数","tools.share-of-calls":"占全部工具调用的 {percent}","tools.errors-title":"结果返回时被标记为错误的调用","tools.args":"参数","tools.result":"结果","tools.result-per-call":"结果 / 次","tools.result-per-call-title":"每次调用平均工具结果字符数","tools.attr-tokens":"归属 Token","tools.share-of-tokens":"占归属 Token 的 {percent}","tools.attr-cost":"归属费用","tools.share-of-cost":"占归属费用的 {percent}","tools.last-used":"最近使用"}};var Bh={en:{"frustration.estimate-note":"Identical messages share one verdict, and verdicts are cached, so later runs only pay for new messages. Nothing is spent until you proceed.","frustration.column-model-ids":"Model IDs","frustration.column-messages":"Messages","frustration.column-judged":"Judged","frustration.model-versions":"Model versions","frustration.no-model-match":"No model versions match the filters","frustration.small-models-title":"Models with fewer than {count} messages have noisy rates","frustration.hide-regex-title":"Hide models with under {share}% judged messages (rates from regex signals)","frustration.hatch-title":"Under {share}% of these messages are judged; their rates come from regex signals","frustration.regex-badge":"regex","frustration.legend-annoyed-any":"Annoyed, any target","frustration.table-description":"Rates are shares of user messages; rows follow the chart filters.","frustration.running":"Running","frustration.estimating":"Estimating cost…","frustration.failed-n":"{count} failed","frustration.cost-so-far":"cost so far","frustration.elapsed":"elapsed {time}","frustration.in-flight":"{count} in flight","frustration.messages-progress":"{done}/{total} messages","frustration.failed-suffix":", {count} failed","frustration.judge-with":" with {judge}","frustration.in-time":" in {time}","frustration.run-done-line":"Last run judged {progress}{failed}{judge}{elapsed} for {cost}.","frustration.run-cancelled-line":"Last run cancelled after {progress}{failed}; spent {cost}.","frustration.run-failed-line":"Last run failed after {progress}{failed}: {error}. Spent {cost}.","frustration.title":"Frustration","frustration.description":"How often your messages sound annoyed, per model version, in {window}.","frustration.user-messages":"User messages","frustration.user-messages-title":"User messages with prose in range","frustration.judge-coverage":"Judge coverage","frustration.judge-coverage-title":"Messages with a cached judge verdict; the rest use the regex lexicons","frustration.coverage-hint":"{judged} judged · {regex} regex","frustration.coverage-unscored":" · {count} unscored (no lexicon)","frustration.unscored-line":"Messages in a language without a lexicon: {count} — unscored, not calm.","frustration.annoyed":"Annoyed","frustration.annoyed-title":"Messages annoyed at any target","frustration.at-assistant":"At assistant","frustration.at-assistant-title":"Messages annoyed at the assistant","frustration.angry":"Angry","frustration.angry-title":"Messages angry or hostile toward the assistant","frustration.messages-n":"{count} messages","frustration.judge-panel":"Judge classification","frustration.judge-description":"Cached LLM verdicts replace the regex lexicons; unjudged messages fall back to regex signals. Messages in a language no lexicon covers are reported as unscored rather than counted as calm.","frustration.classify":"Classify with judge","frustration.proceed":"Proceed","frustration.starting":"Starting…","frustration.judge-running":"A judge run is in progress","frustration.quote-title":"Quote the cost of judging every unjudged message in range","frustration.estimated-cost":"Estimated cost","frustration.unjudged-messages":"Unjudged unique messages","frustration.prose-chars":"Prose characters","frustration.input-tokens":"Estimated input tokens","frustration.judge-model":"Judge","frustration.all-judged":"Everything in this range is already judged. There is nothing left to classify.","frustration.no-run-yet":"No judge run yet. Classify the unjudged messages to replace regex estimates with verdicts.","frustration.last-run-done":"Last run done","frustration.last-run-cancelled":"Last run cancelled","frustration.last-run-failed":"Last run failed","frustration.not-run-yet":"Not run yet","frustration.regex-only":"Regex only","frustration.cancel-run":"Cancel run","frustration.cancelling":"Cancelling…","frustration.run-judged":"Last run judged {progress}","frustration.run-cancelled-after":"Last run cancelled after {progress}","frustration.run-failed-after":"Last run failed after {progress}","frustration.by-model":"Frustration by model version","frustration.by-model-description":"Share of user messages per model version. Each bar reaches the annoyed rate; the subsets aimed at the assistant stack inside it.","frustration.all-classes":"All","frustration.every-model-class":"Every model class","frustration.model-class":"Model class","frustration.include-small":"Include < {count} messages","frustration.unclassified":"unclassified","frustration.legend-angry":"Angry at assistant","frustration.legend-assistant":"At assistant, not angry","frustration.legend-other":"Annoyed at other targets","frustration.legend-trend":"At assistant trend","frustration.legend-hatched":"Hatched: mostly regex fallback","frustration.legend-hatched-run":"Hatched: mostly regex fallback (run the judge)","frustration.legend-hue":"Hue = model family","frustration.no-messages":"No user messages in this range","frustration.try-longer-range":"Try a longer range.","frustration.mostly-regex":"Mostly regex fallback: run the judge for accurate rates","frustration.row-mostly-regex":" · mostly regex fallback","frustration.stack-relation":"annoyed ⊇ atAssistant ⊇ angry","frustration.unknown-error":"unknown error","frustration.cancelled":"Cancelled","frustration.failed":"Failed","frustration.done":"Done","frustration.model-side-title":"AI breakdown","frustration.model-side-description":"How the model's own replies read, per model version, in {window}.","frustration.model-turns":"Assistant turns","frustration.model-turns-title":"Assistant replies with text in range; tool-call-only replies and thinking blocks are not analyzed","frustration.model-breakdown":"Breakdown rate","frustration.model-breakdown-title":"Share of analyzed turns with at least one breakdown signal","frustration.model-mean":"Signals / turn","frustration.model-mean-title":"Average per-turn aggregate: text markers plus capped failed tool results","frustration.model-self-blame":"Self-blame","frustration.model-self-blame-title":"Turns containing an apology or admission","frustration.model-restatement":"Restatement","frustration.model-restatement-title":"Turns repeating earlier content, by explicit marker or near-duplicate reply","frustration.model-hedge":"Hedged","frustration.model-hedge-title":"Turns with hedged fallbacks: uncertainty or suggested alternatives","frustration.model-spiral":"Tool spirals","frustration.model-spiral-title":"Turns following three or more failed tool results","frustration.model-rambling":"Rambling","frustration.model-rambling-title":"Turns past the verbosity threshold","frustration.model-unscored-line":"Turns in a language without a lexicon: {count} — unscored, not calm.","frustration.model-by-model":"AI breakdown by model version","frustration.model-table-title":"Model breakdown detail","frustration.model-by-model-description":"Share of each model's analyzed turns carrying a breakdown signal. Hue = model family.","frustration.model-over-time":"AI breakdown over time","frustration.model-over-time-description":"Breakdown rate per bucket: turns with a signal over analyzed turns. Gaps are buckets with no turns.","frustration.model-sessions":"Sessions by breakdown","frustration.model-sessions-description":"Sessions with the most analyzed assistant turns.","frustration.model-table-description":"Rates are shares of analyzed assistant turns.","frustration.column-session":"Session","frustration.column-turns":"Turns","frustration.column-mean":"Signals/turn","frustration.column-tool-errors":"Tool errors","frustration.model-no-turns":"No assistant turns with text in this range","frustration.model-try-longer-range":"Try a longer range.","frustration.model-legend-breakdown":"Breakdown rate","frustration.turns-n":"{count} turns","frustration.model-hint-mean":"{value} signals per turn on average"},"zh-CN":{"frustration.estimate-note":"内容相同的消息共用一份结论,且结论会被缓存,因此后续运行只为新消息付费。在你开始之前不会产生任何费用。","frustration.column-model-ids":"模型 ID","frustration.column-messages":"消息数","frustration.column-judged":"已评判","frustration.model-versions":"模型版本","frustration.no-model-match":"没有符合筛选条件的模型版本","frustration.small-models-title":"消息少于 {count} 条的模型比例噪声较大","frustration.hide-regex-title":"隐藏已评判比例低于 {share}% 的模型(其比例来自正则信号)","frustration.hatch-title":"这些消息中已评判比例低于 {share}%,其比例来自正则信号","frustration.regex-badge":"正则","frustration.legend-annoyed-any":"不耐烦(任意对象)","frustration.table-description":"比例为占用户消息的百分比;行跟随图表筛选。","frustration.running":"运行中","frustration.estimating":"正在估算费用…","frustration.failed-n":"{count} 条失败","frustration.cost-so-far":"当前费用","frustration.elapsed":"已用时 {time}","frustration.in-flight":"并发 {count}","frustration.messages-progress":"{done}/{total} 条消息","frustration.failed-suffix":",{count} 条失败","frustration.judge-with":",评判模型 {judge}","frustration.in-time":",用时 {time}","frustration.run-done-line":"上次运行评判了 {progress}{failed}{judge}{elapsed},花费 {cost}。","frustration.run-cancelled-line":"上次运行在 {progress}{failed} 后取消,花费 {cost}。","frustration.run-failed-line":"上次运行在 {progress}{failed} 后失败:{error}。花费 {cost}。","frustration.title":"情绪压力","frustration.description":"按模型版本统计你的消息有多不耐烦({window})。","frustration.user-messages":"用户消息","frustration.user-messages-title":"该时间范围内的用户消息(含正文)","frustration.judge-coverage":"判据覆盖率","frustration.judge-coverage-title":"已有缓存的评判模型结论的消息;其余使用正则词典","frustration.coverage-hint":"{judged} 条已评判 · {regex} 条正则","frustration.coverage-unscored":" · {count} 条未评分(无词典)","frustration.unscored-line":"缺少对应词典的语言:{count} 条 —— 未评分,不代表平静。","frustration.annoyed":"不耐烦","frustration.annoyed-title":"对任何对象不耐烦的消息","frustration.at-assistant":"针对助手","frustration.at-assistant-title":"对助手不耐烦的消息","frustration.angry":"发怒","frustration.angry-title":"对助手发怒或带有敌意的消息","frustration.messages-n":"{count} 条消息","frustration.judge-panel":"评判模型分类","frustration.judge-description":"缓存的模型结论会取代正则词典;未评判的消息回退到正则信号。缺少词典的语言显示为未评分,而不是判定为平静。","frustration.classify":"用评判模型分类","frustration.proceed":"开始","frustration.starting":"正在开始…","frustration.judge-running":"评判任务正在进行","frustration.quote-title":"估算对该范围内所有未评判消息进行判定的成本","frustration.estimated-cost":"预估费用","frustration.unjudged-messages":"未评判的唯一消息","frustration.prose-chars":"正文字符数","frustration.input-tokens":"预估输入 Token","frustration.judge-model":"评判模型","frustration.all-judged":"该范围内已全部评判,没有需要分类的消息。","frustration.no-run-yet":"尚未运行评判。对未评判的消息分类,即可用结论取代正则估算。","frustration.last-run-done":"上次运行完成","frustration.last-run-cancelled":"上次运行已取消","frustration.last-run-failed":"上次运行失败","frustration.not-run-yet":"尚未运行","frustration.regex-only":"仅正则","frustration.cancel-run":"取消运行","frustration.cancelling":"正在取消…","frustration.run-judged":"上次运行已评判 {progress}","frustration.run-cancelled-after":"上次运行在 {progress} 后取消","frustration.run-failed-after":"上次运行在 {progress} 后失败","frustration.by-model":"按模型版本的情绪压力","frustration.by-model-description":"各模型版本中用户消息的占比。每根柱子到达不耐烦比例,其中针对助手的子集叠在其内部。","frustration.all-classes":"全部","frustration.every-model-class":"所有模型类别","frustration.model-class":"模型类别","frustration.include-small":"包含少于 {count} 条消息","frustration.unclassified":"未分类","frustration.legend-angry":"对助手发怒","frustration.legend-assistant":"针对助手但未发怒","frustration.legend-other":"对其他对象不耐烦","frustration.legend-trend":"针对助手趋势","frustration.legend-hatched":"斜线:多为正则回退","frustration.legend-hatched-run":"斜线:多为正则回退(运行评判)","frustration.legend-hue":"色相 = 模型家族","frustration.no-messages":"该时间范围内没有用户消息","frustration.try-longer-range":"试试更长的时间范围。","frustration.mostly-regex":"多为正则回退:运行评判以获得准确比例","frustration.row-mostly-regex":" · 多为正则回退","frustration.stack-relation":"不耐烦 ⊇ 针对助手 ⊇ 发怒","frustration.unknown-error":"未知错误","frustration.cancelled":"已取消","frustration.failed":"失败","frustration.done":"完成","frustration.model-side-title":"AI 崩溃度","frustration.model-side-description":"各模型版本自身回复的读感,统计窗口:{window}。","frustration.model-turns":"助手回合","frustration.model-turns-title":"时间范围内带文本的助手回复;仅含工具调用的回复与思考块不参与分析","frustration.model-breakdown":"崩溃率","frustration.model-breakdown-title":"至少带一个崩溃信号的已分析回合占比","frustration.model-mean":"信号 / 回合","frustration.model-mean-title":"每回合聚合均值:文本标记加上封顶的工具失败数","frustration.model-self-blame":"自责","frustration.model-self-blame-title":"包含道歉或认错的回合","frustration.model-restatement":"重复陈述","frustration.model-restatement-title":"以显式标记或与上一条回复高度相似的方式重复先前内容的回合","frustration.model-hedge":"含糊兜底","frustration.model-hedge-title":"带有含糊兜底的回合:不确定表述或建议替代方案","frustration.model-spiral":"工具失败螺旋","frustration.model-spiral-title":"紧随三个及以上工具失败之后的回合","frustration.model-rambling":"冗长","frustration.model-rambling-title":"超过冗长阈值的回合","frustration.model-unscored-line":"使用无词典语言的回合:{count} — 未评分,而非平静。","frustration.model-by-model":"各模型版本的 AI 崩溃度","frustration.model-table-title":"模型崩溃明细","frustration.model-by-model-description":"每个模型已分析回合中带崩溃信号的占比。色相 = 模型家族。","frustration.model-over-time":"AI 崩溃度随时间变化","frustration.model-over-time-description":"每个时间桶的崩溃率:带信号的回合除以已分析回合。空白表示该桶没有回合。","frustration.model-sessions":"按崩溃度查看会话","frustration.model-sessions-description":"已分析助手回合最多的会话。","frustration.model-table-description":"比例为已分析助手回合的占比。","frustration.column-session":"会话","frustration.column-turns":"回合数","frustration.column-mean":"信号/回合","frustration.column-tool-errors":"工具错误","frustration.model-no-turns":"该时间范围内没有带文本的助手回合","frustration.model-try-longer-range":"试试更长的时间范围。","frustration.model-legend-breakdown":"崩溃率","frustration.turns-n":"{count} 个回合","frustration.model-hint-mean":"平均每回合 {value} 个信号"}};var zh={en:{"projects.title":"Projects","projects.description":"Usage by session folder in {window}.","projects.folders":"Folders","projects.folder":"Folder","projects.temporary-n":"{count} temporary","projects.failed-n":"{count} failed","projects.api-equivalent-cost":"API-equivalent cost","projects.api-equivalent-cost-hint":"What this usage would cost at public API rates","projects.unpriced-n":"{count} unpriced","projects.conversation-tokens":"Conversation tokens","projects.conversation-tokens-hint":"Uncached input + cache reads + cache writes + output","projects.cache-rate":"Cache rate","projects.cache-rate-hint":"Cache reads ÷ (uncached input + cache reads)","projects.cache-rate-hint-all":"Cache reads ÷ (uncached input + cache reads), across every folder","projects.top-by-cost":"Top by cost","projects.top-by-cost-description":"Share of API-equivalent cost","projects.top-by-requests":"Top by requests","projects.top-by-requests-description":"Share of all requests","projects.folders-n":"{count} folders","projects.folders-of-n":"{count} of {total} folders","projects.hide-temporary":"Hide temporary ({count})","projects.hide-temporary-hint":"Session folders under /tmp or /var/folders","projects.filter-placeholder":"Filter folders…","projects.empty-no-folders":"No project folders in this range","projects.empty-only-temporary":"Only temporary folders in this range","projects.empty-no-match":"No folders match","projects.hint-longer-range":"Try a longer range.","projects.hint-temporary-hidden":"Temporary folders are hidden.","projects.temp":"temp","projects.share-of-requests":"{share} of all requests","projects.share-of-cost":"{share} of all cost","projects.api-equivalent-cost-rates":"API-equivalent cost at public API rates","projects.cache-savings":"Cache savings","projects.cache-savings-hint":"Prompt-input cost saved versus billing the same tokens uncached","projects.errors":"Errors","projects.avg-duration":"Avg duration","projects.last-active":"Last active"},"zh-CN":{"projects.title":"项目","projects.description":"{window}内按会话文件夹统计的用量。","projects.folders":"文件夹","projects.folder":"文件夹","projects.temporary-n":"{count} 个临时","projects.failed-n":"{count} 个失败","projects.api-equivalent-cost":"API 等效费用","projects.api-equivalent-cost-hint":"这些用量按公开 API 费率计算所需的费用","projects.unpriced-n":"{count} 个未计价","projects.conversation-tokens":"对话 Token","projects.conversation-tokens-hint":"未缓存输入 + 缓存读取 + 缓存写入 + 输出","projects.cache-rate":"缓存命中率","projects.cache-rate-hint":"缓存读取 ÷(未缓存输入 + 缓存读取)","projects.cache-rate-hint-all":"缓存读取 ÷(未缓存输入 + 缓存读取),覆盖所有文件夹","projects.top-by-cost":"费用最高","projects.top-by-cost-description":"占 API 等效费用的比例","projects.top-by-requests":"请求最多","projects.top-by-requests-description":"占全部请求的比例","projects.folders-n":"{count} 个文件夹","projects.folders-of-n":"{total} 个文件夹中的 {count} 个","projects.hide-temporary":"隐藏临时文件夹({count})","projects.hide-temporary-hint":"/tmp 或 /var/folders 下的会话文件夹","projects.filter-placeholder":"筛选文件夹…","projects.empty-no-folders":"该时间范围内没有项目文件夹","projects.empty-only-temporary":"该时间范围内只有临时文件夹","projects.empty-no-match":"没有匹配的文件夹","projects.hint-longer-range":"试试更长的时间范围。","projects.hint-temporary-hidden":"临时文件夹已隐藏。","projects.temp":"临时","projects.share-of-requests":"占全部请求的 {share}","projects.share-of-cost":"占全部费用的 {share}","projects.api-equivalent-cost-rates":"按公开 API 费率计算的等效费用","projects.cache-savings":"缓存节省","projects.cache-savings-hint":"同样的 Token 按未缓存计费时,提示输入费用节省的比例","projects.errors":"错误","projects.avg-duration":"平均耗时","projects.last-active":"最近活动"}};var Ph={en:{"tracking.title":"Tracking","tracking.description":"Read-only snapshot of a project's tracking documents: process state, not learned facts.","tracking.project":"Project","tracking.select-project":"Select a project…","tracking.no-projects":"No projects in the stats registry","tracking.no-projects-hint":"Tracking is scoped to folders the stats database has seen.","tracking.read-only":"The dashboard only reads these files; it never writes tracking.","tracking.directory":"Directory","tracking.updated":"Updated","tracking.none":"None","tracking.no-documents":"No tracking documents","tracking.no-documents-hint":"Tracking is opt-in. Run /tracking on, or enable tools → Project Tracking (tracking.enabled) in /settings, then /tracking start.","tracking.status":"Status","tracking.index":"Index","tracking.actions":"Actions","tracking.sessions":"Sessions","tracking.phase":"Phase","tracking.progress":"Progress","tracking.blockers":"Blockers","tracking.decisions":"Decisions","tracking.stage":"Stage","tracking.phases":"Todo phases","tracking.last-updated":"Last updated","tracking.last-session":"Last session","tracking.missing":"Missing","tracking.partial":"Partial","tracking.corrupt":"Corrupt","tracking.error":"Error","tracking.truncated":"Truncated read","tracking.status-missing":"status.json is missing","tracking.status-corrupt":"status.json is not valid JSON","tracking.status-error":"Could not read status.json","tracking.index-missing":"INDEX.md is missing","tracking.actions-missing":"No action log yet","tracking.sessions-missing":"No sessions directory yet","tracking.sessions-empty":"No session documents","tracking.invalid-rows":"{count} malformed action rows skipped","tracking.actions-empty":"The action log has no readable rows","tracking.document-empty":"This document is empty"},"zh-CN":{"tracking.title":"追踪","tracking.description":"项目追踪文档的只读快照:这里是过程状态,不是学到的知识事实。","tracking.project":"项目","tracking.select-project":"选择项目…","tracking.no-projects":"统计注册表中没有项目","tracking.no-projects-hint":"追踪只读取统计数据库见过的项目文件夹。","tracking.read-only":"仪表盘只读取这些文件,绝不写入追踪。","tracking.directory":"目录","tracking.updated":"更新时间","tracking.none":"无","tracking.no-documents":"没有追踪文档","tracking.no-documents-hint":"追踪是可选功能。运行 /tracking on,或在 /settings → tools → Project Tracking(tracking.enabled)中启用,然后执行 /tracking start。","tracking.status":"状态","tracking.index":"索引","tracking.actions":"操作","tracking.sessions":"会话","tracking.phase":"阶段","tracking.progress":"进度","tracking.blockers":"阻塞","tracking.decisions":"决策","tracking.stage":"当前阶段","tracking.phases":"待办阶段","tracking.last-updated":"最近更新","tracking.last-session":"最近会话","tracking.missing":"缺失","tracking.partial":"不完整","tracking.corrupt":"损坏","tracking.error":"错误","tracking.truncated":"读取已截断","tracking.status-missing":"status.json 缺失","tracking.status-corrupt":"status.json 不是有效 JSON","tracking.status-error":"无法读取 status.json","tracking.index-missing":"INDEX.md 缺失","tracking.actions-missing":"还没有操作日志","tracking.sessions-missing":"还没有 sessions 目录","tracking.sessions-empty":"没有会话文档","tracking.invalid-rows":"已跳过 {count} 行格式错误的操作记录","tracking.actions-empty":"操作日志没有可读记录","tracking.document-empty":"该文档为空"}};var Uh={en:{"gain.title":"Gain","gain.description":"Tokens snapcompact kept out of context in {window}.","gain.description-scoped":"Tokens snapcompact kept out of context for {project} in {window}.","gain.all-projects":"All projects","gain.empty-title":"No savings recorded in {window}","gain.empty-title-scoped":"No savings recorded for {project} in {window}","gain.empty-hint-all":"Savings appear here once snapcompact compacts tool output.","gain.empty-hint-longer-range":"Try a longer range.","gain.saved-tokens":"Saved tokens","gain.saved-bytes":"Saved bytes","gain.reduction":"Reduction","gain.reduction-title":"Saved bytes ÷ original bytes, when the original size is known","gain.reduction-unknown":"original size not recorded","gain.hits":"Hits","gain.saved-per-hit":"Saved per hit","gain.savings-over-time":"Savings over time","gain.savings-over-time-description":"Tokens saved per day, with the running total","gain.saved-per-day":"Saved per day","gain.cumulative":"Cumulative","gain.by-source":"By source","gain.by-source-description":"Savings per subsystem","gain.source":"Source"},"zh-CN":{"gain.title":"收益","gain.description":"在{window}内被 snapcompact 挡在上下文之外的 Token。","gain.description-scoped":"在{window}内被 snapcompact 为 {project} 挡在上下文之外的 Token。","gain.all-projects":"全部项目","gain.empty-title":"在{window}内没有节省记录","gain.empty-title-scoped":"在{window}内没有 {project} 的节省记录","gain.empty-hint-all":"snapcompact 压缩工具输出后,节省量会显示在这里。","gain.empty-hint-longer-range":"请尝试更长的时间范围。","gain.saved-tokens":"节省的 Token","gain.saved-bytes":"节省的字节","gain.reduction":"节省比例","gain.reduction-title":"原始大小已知时,节省字节 ÷ 原始字节","gain.reduction-unknown":"未记录原始大小","gain.hits":"命中次数","gain.saved-per-hit":"每次命中节省","gain.savings-over-time":"节省趋势","gain.savings-over-time-description":"按本地日统计节省的 Token,以及累计总量","gain.saved-per-day":"每日节省","gain.cumulative":"累计","gain.by-source":"按来源","gain.by-source-description":"各子系统节省量","gain.source":"来源"}};var _h={en:{"ui.table-shown-of":"{shown} of {total}","ui.show-fewer":"Show fewer","ui.retry":"Retry","ui.delta-new":"new","ui.json":"JSON","ui.trace":"Trace","ui.open-trace":"Open this request's session in the trace view","ui.status-ok":"OK","ui.section-timing":"Timing","ui.time-to-first-token":"Time to first token","ui.uncached-input":"Uncached input","ui.section-cost":"API-equivalent cost","ui.section-identity":"Identity","ui.stop-reason":"Stop reason","ui.api":"API","ui.session-file":"Session file","ui.stats-row":"Stats row"},"zh-CN":{"ui.table-shown-of":"已显示 {shown} / 共 {total}","ui.show-fewer":"收起","ui.retry":"重试","ui.delta-new":"新增","ui.json":"JSON 数据","ui.trace":"调用链","ui.open-trace":"在调用链视图中打开该请求的会话","ui.status-ok":"正常","ui.section-timing":"时间","ui.time-to-first-token":"首 Token 延迟","ui.uncached-input":"未缓存输入","ui.section-cost":"API 等价费用","ui.section-identity":"标识","ui.stop-reason":"停止原因","ui.api":"接口","ui.session-file":"会话文件","ui.stats-row":"统计行"}};var Hh={en:{},"zh-CN":{}};var _E={...Th.en,...Ih.en,...Rh.en,...Ah.en,...Mh.en,...Dh.en,...Eh.en,...Nh.en,...qh.en,...Oh.en,...Bh.en,...zh.en,...Ph.en,...Uh.en,..._h.en,...Hh.en},$T={id:"en",messages:_E};var HE={...Th["zh-CN"],...Ih["zh-CN"],...Rh["zh-CN"],...Ah["zh-CN"],...Mh["zh-CN"],...Dh["zh-CN"],...Eh["zh-CN"],...Nh["zh-CN"],...qh["zh-CN"],...Oh["zh-CN"],...Bh["zh-CN"],...zh["zh-CN"],...Ph["zh-CN"],...Uh["zh-CN"],..._h["zh-CN"],...Hh["zh-CN"]},XT={id:"zh-CN",messages:HE};function FE(){return globalThis.__ZETA_STATS_LOCALE__}var GE={en:$T.messages,"zh-CN":XT.messages},YT="zeta.stats.locale",ub=new Set,Gh="en";jE();function Br(){return Gh}function KT(r){return ub.add(r),()=>{ub.delete(r)}}function Fh(r){return Gh=Ch(r),Gh}function QT(r){let l=Fh(r);try{globalThis.localStorage?.setItem(YT,l)}catch{}for(let i of[...ub])i();return l}function VE(){try{let r=globalThis.localStorage?.getItem(YT);if(!r)return;let l=Ch(r);return l==="en"||l==="zh-CN"?l:void 0}catch{return}}function jE(){let r=VE();if(r)return Fh(r);let l=FE();if(l)return Fh(l);if(typeof navigator>"u")return"en";return Fh(VT(navigator.languages))}function u(r,l){return jT(Gh,r,GE,l)}var ZT=60000,Ju=60*ZT,hr=24*Ju,db={"1h":{labelKey:"common.range-1h",windowKey:"common.window-1h",spanMs:Ju,bucketMs:5*ZT},"24h":{labelKey:"common.range-24h",windowKey:"common.window-24h",spanMs:hr,bucketMs:Ju},"2d":{labelKey:"common.range-2d",windowKey:"common.window-2d",spanMs:2*hr,bucketMs:Ju},"3d":{labelKey:"common.range-3d",windowKey:"common.window-3d",spanMs:3*hr,bucketMs:Ju},"7d":{labelKey:"common.range-7d",windowKey:"common.window-7d",spanMs:7*hr,bucketMs:hr},"30d":{labelKey:"common.range-30d",windowKey:"common.window-30d",spanMs:30*hr,bucketMs:hr},"90d":{labelKey:"common.range-90d",windowKey:"common.window-90d",spanMs:90*hr,bucketMs:hr},all:{labelKey:"common.range-all",windowKey:"common.window-all",spanMs:null,bucketMs:hr}},$E=1500,ed=["1h","24h","2d","3d","7d","30d","90d","all"];function aa(r){return db[r]}var cb={hour:"2-digit",minute:"2-digit",hourCycle:"h23"},fb={month:"short",day:"numeric"},WT=new Map;function Pf(r,l){let i=Br(),d=`${i}:${r}`,f=WT.get(d);if(!f)f=new Intl.DateTimeFormat(i,l),WT.set(d,f);return f}function td(r,l){if(l<Ju)return Pf("hm",cb).format(r);if(l<hr)return Pf("mdhm",{...fb,...cb}).format(r);return Pf("md",fb).format(r)}function Vh(r,l){return l<hr?Pf("hm",cb).format(r):Pf("md",fb).format(r)}function oo(r,l,i=db[r].bucketMs,d=Date.now()){let f=i===hr,g=(y)=>f?new Date(y).setHours(0,0,0,0):Math.floor(y/i)*i,v=g(d),h=db[r].spanMs,m;if(h!==null)m=g(d-h);else{m=v;for(let y of l)if(y<m)m=y;m=g(m)}m=Math.max(m,g(v-($E-1)*i));let S=[];for(let y=m;y<=v;)if(S.push(y),f){let b=new Date(y);b.setDate(b.getDate()+1),y=b.setHours(0,0,0,0)}else y+=i;return S}var JT=_(Ke(),1);function _n(){return JT.useSyncExternalStore(KT,Br,Br)}var Uf=_(Ke(),1);class pb extends Error{status;endpoint;constructor(r,l,i){super(i);this.name="ApiError",this.status=r,this.endpoint=l}}async function tI(r,l){try{let i=await r.json();if(typeof i==="object"&&i!==null&&"error"in i&&typeof i.error==="string")return i.error}catch{}return`HTTP error ${r.status} on ${l}`}var eI=new WeakMap;async function Ia(r,l,i){let d=typeof i==="object"&&i!==null?eI.get(i):void 0,f=l;if(d){let m=new Headers(l?.headers);m.set("If-None-Match",d),f={...l,headers:m}}let g=await fetch(r,f);if(g.status===304&&d)return i;if(!g.ok)throw new pb(g.status,r,await tI(g,r));let v=await g.json(),h=g.headers.get("ETag");if(h&&typeof v==="object"&&v!==null)eI.set(v,h);return v}var mb={"X-Zeta-Stats-Action":"1"};async function aI(r="24h",l){return Ia(`/api/stats/overview?range=${encodeURIComponent(r)}`,{signal:l})}async function oI(r="24h",l){return Ia(`/api/stats/model-dashboard?range=${encodeURIComponent(r)}`,{signal:l})}async function rI(r="24h",l){return Ia(`/api/stats/costs?range=${encodeURIComponent(r)}`,{signal:l})}async function jh(r=50,l){return Ia(`/api/stats/recent?limit=${r}`,{signal:l})}async function nI(r="24h",l=50,i){return Ia(`/api/stats/errors?range=${encodeURIComponent(r)}&limit=${l}`,{signal:i})}async function sI(r,l){return Ia(`/api/request/${r}`,{signal:l})}async function lI(r){let{closable:l}=await Ia("/api/close",{signal:r});return l}async function iI(){let l=await fetch("/api/close",{method:"POST",headers:mb});if(!l.ok)throw new pb(l.status,"/api/close",await tI(l,"/api/close"))}async function uI(){return Ia("/api/sync",{method:"POST"})}async function dI(r="24h",l){return Ia(`/api/stats/frustration?range=${encodeURIComponent(r)}`,{signal:l})}async function cI(r,l){return Ia(`/api/frustration/estimate?range=${encodeURIComponent(r)}`,{signal:l})}async function fI(r){return Ia(`/api/frustration/judge?range=${encodeURIComponent(r)}`,{method:"POST",headers:mb})}async function pI(){return Ia("/api/frustration/cancel",{method:"POST",headers:mb})}async function mI(r="24h",l){return Ia(`/api/stats/folders?range=${encodeURIComponent(r)}`,{signal:l})}async function hI(r){return Ia("/api/tracking/projects",{signal:r})}async function gI(r,l){return Ia(`/api/tracking?project=${encodeURIComponent(r)}`,{signal:l})}async function yI(r="24h",l,i){let d=new URLSearchParams({range:r});if(l)d.set("project",l);return Ia(`/api/stats/gain?${d}`,{signal:i})}async function vI(r="24h",l="all",i){return Ia(`/api/stats/spotlight?range=${encodeURIComponent(r)}&agent=${encodeURIComponent(l)}`,{signal:i})}async function xI(r,l){return Ia(`/api/stats/spotlight/session?file=${encodeURIComponent(r)}`,{signal:l})}async function bI(r="24h",l){return Ia(`/api/stats/tools?range=${encodeURIComponent(r)}`,{signal:l})}async function SI(r="24h",l){return Ia(`/api/stats/providers?range=${encodeURIComponent(r)}`,{signal:l})}async function hb(r,l,i){let d=new URLSearchParams({range:r});if(l!==null)d.set("provider",l);return Ia(`/api/stats/provider-windows?${d}`,{signal:i})}async function kI(r=100,l,i){let d=new URLSearchParams({limit:String(r)});if(l)d.set("q",l);return Ia(`/api/sessions?${d}`,{signal:i})}async function LI(r,l,i){return Ia(`/api/session/trace?file=${encodeURIComponent(r)}`,{signal:l,cache:"no-store"},i)}async function wI(r,l,i){return Ia(`/api/session/entry?file=${encodeURIComponent(r)}&id=${encodeURIComponent(l)}`,{signal:i})}var YE={phase:"idle",current:0,total:0,processed:0,lastSyncedAt:null,error:null};function KE(){uI().catch(()=>{})}var CI=null,TI=0,$h=0,El={sync:YE,indexingHours:0,connected:!1,requestSync:KE},yb=new Set;function II(r){return yb.add(r),()=>yb.delete(r)}function RI(){for(let r of yb)r()}function QE(r,l){return r.phase===l.phase&&r.current===l.current&&r.total===l.total&&r.processed===l.processed&&r.lastSyncedAt===l.lastSyncedAt&&r.error===l.error}function WE(r){if(CI!==r.version)CI=r.version,TI++;let l=Math.max(0,TI-1),i=r.indexingHours!==El.indexingHours||!QE(r.sync,El.sync);if(!i&&l===$h)return;if($h=l,i)El={...El,sync:r.sync,indexingHours:r.indexingHours};RI()}function gb(r){if(r===El.connected)return;El={...El,connected:r},RI()}var ZE=()=>El,JE=()=>$h,eN=()=>-1;function vb(){return $h}function AI({children:r}){return Uf.useEffect(()=>{let l=new EventSource("/api/events");return l.onopen=()=>gb(!0),l.onerror=()=>gb(!1),l.onmessage=(i)=>WE(JSON.parse(i.data)),()=>{l.close(),gb(!1)}},[]),r}function Xh(){return Uf.useSyncExternalStore(II,ZE)}function MI(r=!0){return Uf.useSyncExternalStore(II,r?JE:eN)}var Yh=_(te(),1);function ct({tone:r="neutral",mono:l,children:i}){return Yh.jsxDEV("span",{className:"badge","data-tone":r,"data-mono":l??!1,children:i},void 0,!1,void 0,this)}function Hn({tone:r="neutral",pulse:l}){return Yh.jsxDEV("span",{className:"dot","data-tone":r,"data-pulse":l??!1},void 0,!1,void 0,this)}function an({color:r}){return Yh.jsxDEV("span",{className:"swatch",style:{background:r}},void 0,!1,void 0,this)}function gr(r){if(r>=0.05)return"bad";if(r>=0.01)return"warn";return"ok"}var Ko=_(te(),1);function fe({title:r,description:l,actions:i,flush:d,footer:f,className:g,index:v,stale:h,children:m}){let S=r!==void 0||l!==void 0||i!==void 0;return Ko.jsxDEV("section",{className:g?`card rise ${g}`:"card rise",style:v!==void 0?{"--i":v}:void 0,children:[S&&Ko.jsxDEV("header",{className:"card-header",children:[Ko.jsxDEV("div",{className:"card-titles",children:[r!==void 0&&Ko.jsxDEV("h2",{className:"card-title",children:r},void 0,!1,void 0,this),l!==void 0&&Ko.jsxDEV("p",{className:"card-description",children:l},void 0,!1,void 0,this)]},void 0,!0,void 0,this),i!==void 0&&Ko.jsxDEV("div",{className:"card-actions",children:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ko.jsxDEV("div",{className:"card-body","data-flush":d??!1,"data-stale":h??!1,children:m},void 0,!1,void 0,this),f!==void 0&&Ko.jsxDEV("footer",{className:"card-footer",children:f},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function la({title:r,description:l,actions:i}){return Ko.jsxDEV("header",{className:"page-header rise",children:[Ko.jsxDEV("div",{children:[Ko.jsxDEV("h1",{className:"page-title",children:r},void 0,!1,void 0,this),l!==void 0&&Ko.jsxDEV("p",{className:"page-description",children:l},void 0,!1,void 0,this)]},void 0,!0,void 0,this),i!==void 0&&Ko.jsxDEV("div",{className:"page-actions",children:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var _f=_(Ke(),1),DI=_(Jc(),1),So=_(te(),1);function ad({open:r,onClose:l,title:i,subtitle:d,actions:f,width:g,children:v}){let h=_f.useRef(l);h.current=l;let m=_f.useRef(null);if(_f.useEffect(()=>{if(!r)return;let S=document.activeElement instanceof HTMLElement?document.activeElement:null;m.current?.focus();let y=(b)=>{if(b.key==="Escape")b.preventDefault(),h.current()};return window.addEventListener("keydown",y),()=>{window.removeEventListener("keydown",y),S?.focus()}},[r]),!r)return null;return DI.createPortal(So.jsxDEV(So.Fragment,{children:[So.jsxDEV("div",{className:"drawer-scrim",onClick:l,role:"presentation"},void 0,!1,void 0,this),So.jsxDEV("div",{ref:m,className:"drawer",role:"dialog","aria-modal":"true",tabIndex:-1,style:g!==void 0?{"--drawer-w":`${g}px`}:void 0,children:[So.jsxDEV("header",{className:"drawer-header",children:[So.jsxDEV("div",{className:"drawer-titles",children:[So.jsxDEV("h2",{className:"drawer-title",children:i},void 0,!1,void 0,this),d!==void 0&&So.jsxDEV("div",{className:"drawer-subtitle",children:d},void 0,!1,void 0,this)]},void 0,!0,void 0,this),f,So.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-icon":"true",onClick:l,"aria-label":"Close",children:So.jsxDEV(Ao,{size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),So.jsxDEV("div",{className:"drawer-body",children:v},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),document.body)}function ko({items:r}){return So.jsxDEV("dl",{className:"kv",style:{margin:0},children:r.map((l)=>So.jsxDEV("div",{className:"kv-item",children:[So.jsxDEV("dt",{className:"kv-key",children:l.label},void 0,!1,void 0,this),So.jsxDEV("dd",{className:"kv-value",style:{margin:0},children:l.value},void 0,!1,void 0,this)]},l.key,!0,void 0,this))},void 0,!1,void 0,this)}var qi=_(Ke(),1);var on=_(te(),1);function od({data:r,title:l=u("ui.json"),initialCollapsed:i=!1}){let[d,f]=qi.useState(i),[g,v]=qi.useState(!1),h=qi.useRef(0),m=JSON.stringify(r,null,2);return qi.useEffect(()=>()=>window.clearTimeout(h.current),[]),on.jsxDEV("div",{className:"stack",style:{gap:6},children:[on.jsxDEV("div",{className:"row",style:{justifyContent:"space-between"},children:[on.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm",onClick:()=>f((y)=>!y),"aria-expanded":!d,children:[d?on.jsxDEV(tn,{size:13},void 0,!1,void 0,this):on.jsxDEV(Mi,{size:13},void 0,!1,void 0,this),l]},void 0,!0,void 0,this),on.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm",onClick:async()=>{try{await navigator.clipboard.writeText(m),v(!0),window.clearTimeout(h.current),h.current=window.setTimeout(()=>v(!1),1500)}catch{}},children:[g?on.jsxDEV(Ai,{size:13},void 0,!1,void 0,this):on.jsxDEV(Di,{size:13},void 0,!1,void 0,this),g?u("common.copied"):u("common.copy")]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),!d&&on.jsxDEV("pre",{className:"code-block",children:on.jsxDEV("code",{children:m},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Oi=_(Ke(),1),EI=_(Jc(),1);var rn=_(te(),1);function NI({open:r,title:l,onClose:i,primaryAction:d,cancelLabel:f=u("common.cancel"),children:g}){let v=Oi.useRef(null),h=Oi.useRef(null),m=Oi.useRef(i);m.current=i,Oi.useEffect(()=>{if(!r)return;let L=document.activeElement instanceof HTMLElement?document.activeElement:null,T=(C)=>{if(C.key==="Escape")C.preventDefault(),m.current()};return window.addEventListener("keydown",T),()=>{window.removeEventListener("keydown",T),L?.focus()}},[r]);let S=d!==void 0,y=d?.disabled??!1;if(Oi.useEffect(()=>{if(!r)return;(S&&!y?v.current:h.current)?.focus()},[r,S,y]),!r)return null;return EI.createPortal(rn.jsxDEV("div",{className:"modal-overlay",onClick:(L)=>{if(L.target===L.currentTarget)i()},role:"presentation",children:rn.jsxDEV("div",{className:"modal",role:"dialog","aria-modal":"true","aria-labelledby":"modal-title",children:[rn.jsxDEV("div",{className:"modal-header",children:[rn.jsxDEV("h2",{id:"modal-title",className:"modal-title",children:l},void 0,!1,void 0,this),rn.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-icon":"true","data-size":"sm",onClick:i,"aria-label":u("common.close"),children:rn.jsxDEV(Ao,{size:15},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),rn.jsxDEV("div",{className:"modal-body",children:g},void 0,!1,void 0,this),rn.jsxDEV("div",{className:"modal-footer",children:[rn.jsxDEV("button",{ref:h,type:"button",className:"btn",onClick:i,children:f},void 0,!1,void 0,this),d&&rn.jsxDEV("button",{ref:v,type:"button",className:"btn","data-variant":"primary",onClick:d.onClick,disabled:d.disabled,children:d.label},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),document.body)}var Kh=_(te(),1);function Fn({value:r,onChange:l,placeholder:i=u("common.filter"),label:d="Filter",width:f}){return Kh.jsxDEV("label",{className:"search",children:[Kh.jsxDEV(Of,{size:14},void 0,!1,void 0,this),Kh.jsxDEV("input",{className:"input",type:"search","aria-label":d,value:r,placeholder:i,onChange:(g)=>l(g.target.value),style:f!==void 0?{width:f}:void 0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var rd=_(Ke(),1),Qh=_(te(),1);function Oa({options:r,value:l,onChange:i,size:d="md","aria-label":f}){let g=rd.useRef(null),[v,h]=rd.useState(null);return rd.useLayoutEffect(()=>{let m=g.current,S=m?.querySelector('[data-active="true"]');if(!m||!S){h(null);return}let y=()=>h({left:S.offsetLeft,width:S.offsetWidth});y();let b=new ResizeObserver(y);return b.observe(m),()=>b.disconnect()},[l,r]),Qh.jsxDEV("div",{ref:g,className:"segmented","data-size":d,role:"radiogroup","aria-label":f,children:[v&&Qh.jsxDEV("span",{className:"segmented-thumb",style:{left:v.left,width:v.width}},void 0,!1,void 0,this),r.map((m)=>Qh.jsxDEV("button",{type:"button",role:"radio","aria-checked":m.value===l,className:"segmented-option","data-active":m.value===l,title:m.title,onClick:()=>i(m.value),children:m.label},m.value,!1,void 0,this))]},void 0,!0,void 0,this)}var ld=_(Ke(),1);var nd=_(Ke(),1);function Wh(){let r=nd.useRef(null),[l,i]=nd.useState(0);return nd.useLayoutEffect(()=>{let d=r.current;if(!d)return;i(d.clientWidth);let f=new ResizeObserver((g)=>{let v=Math.round(g[0]?.contentRect.width??0);i((h)=>h===v?h:v)});return f.observe(d),()=>f.disconnect()},[]),[r,l]}var Hf=_(te(),1);function sd({values:r,color:l="var(--chart-primary)",height:i=28,width:d,area:f=!0}){let[g,v]=Wh(),h=d??v,m=Math.max(0,...r),S=Math.min(0,...r),y=r.length,b="";if(h>0&&y>0){let L=y>1?h/(y-1):0;for(let T=0;T<y;T++){let C=y>1?T*L:h/2,I=m>S?i-2-(r[T]-S)/(m-S)*(i-4):i-2;b+=`${T===0?"M":"L"}${C.toFixed(1)},${I.toFixed(1)}`}}return Hf.jsxDEV("div",{ref:g,className:"sparkline",style:{width:d??"100%",height:i},children:h>0&&y>0&&Hf.jsxDEV("svg",{width:h,height:i,"aria-hidden":"true",children:[f&&Hf.jsxDEV("path",{className:"area",d:`${b}L${h},${i}L0,${i}Z`,fill:l},void 0,!1,void 0,this),Hf.jsxDEV("path",{className:"chart-line",d:b,stroke:l},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var zr=_(te(),1);function ie({label:r,value:l,hint:i,delta:d,spark:f,sparkColor:g,size:v="md",title:h}){let m=oN(typeof l==="string"||typeof l==="number"?l:null);return zr.jsxDEV("div",{className:"stat","data-size":v,title:h,children:[zr.jsxDEV("div",{className:"stat-label",children:r},void 0,!1,void 0,this),zr.jsxDEV("div",{className:"stat-value","data-flash":m,children:l},void 0,!1,void 0,this),(i!==void 0||d)&&zr.jsxDEV("div",{className:"stat-foot",children:[d&&zr.jsxDEV(aN,{...d},void 0,!1,void 0,this),i!==void 0&&zr.jsxDEV("span",{className:"truncate",children:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this),f&&f.length>1&&zr.jsxDEV("div",{className:"stat-spark",children:zr.jsxDEV(sd,{values:f,color:g},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function wa({min:r,children:l}){return zr.jsxDEV("div",{className:"stat-grid rise",style:r!==void 0?{"--stat-min":`${r}px`}:void 0,children:l},void 0,!1,void 0,this)}function aN({change:r,good:l="up"}){if(r===null||!Number.isFinite(r))return zr.jsxDEV("span",{className:"delta",children:"new"},void 0,!1,void 0,this);let i=Math.abs(r)<0.0005?0:r,d=i===0?void 0:i>0===(l==="up")?"good":"bad",f=i>0?"+":i<0?"−":"±",g=Math.abs(i)*100;return zr.jsxDEV("span",{className:"delta","data-tone":d,children:[f,g>=100?g.toFixed(0):g.toFixed(1),"%"]},void 0,!0,void 0,this)}function oN(r){let l=ld.useRef(r),[i,d]=ld.useState(!1);return ld.useEffect(()=>{if(l.current===r)return;let f=l.current!==null;if(l.current=r,!f)return;d(!0);let g=setTimeout(()=>d(!1),900);return()=>clearTimeout(g)},[r]),i}var Ba=_(te(),1);function Je({title:r=u("common.nothing-here-yet"),hint:l}){return Ba.jsxDEV("div",{className:"empty",children:[Ba.jsxDEV(wf,{size:20},void 0,!1,void 0,this),Ba.jsxDEV("div",{className:"empty-title",children:r},void 0,!1,void 0,this),l!==void 0&&Ba.jsxDEV("div",{className:"empty-hint",children:l},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Nl({error:r,onRetry:l}){return Ba.jsxDEV("div",{className:"error-state",role:"alert",children:[Ba.jsxDEV(Ro,{size:15},void 0,!1,void 0,this),Ba.jsxDEV("span",{className:"error-state-message",children:typeof r==="string"?r:r.message},void 0,!1,void 0,this),l&&Ba.jsxDEV("button",{type:"button",className:"btn","data-size":"sm","data-variant":"ghost",onClick:l,children:[Ba.jsxDEV(Nf,{size:13},void 0,!1,void 0,this)," ",u("ui.retry")]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function Ga({width:r="100%",height:l=14,style:i}){return Ba.jsxDEV("div",{className:"skeleton",style:{width:r,height:l,...i}},void 0,!1,void 0,this)}function qt({height:r=220}){return Ba.jsxDEV(Ga,{height:r,style:{borderRadius:8}},void 0,!1,void 0,this)}function pa({rows:r=6}){return Ba.jsxDEV("div",{style:{display:"flex",flexDirection:"column",gap:10,padding:"8px 16px 16px"},children:Array.from({length:r},(l,i)=>Ba.jsxDEV(Ga,{height:16,width:`${92-i*13%30}%`},i,!1,void 0,this))},void 0,!1,void 0,this)}function _e({query:r,skeleton:l,isEmpty:i,empty:d,children:f}){if(r.data===null){if(r.error)return Ba.jsxDEV(Nl,{error:r.error,onRetry:r.refetch},void 0,!1,void 0,this);return Ba.jsxDEV(Ba.Fragment,{children:l},void 0,!1,void 0,this)}return Ba.jsxDEV(Ba.Fragment,{children:[r.error&&Ba.jsxDEV(Nl,{error:r.error,onRetry:r.refetch},void 0,!1,void 0,this),i?.(r.data)?d??Ba.jsxDEV(Je,{},void 0,!1,void 0,this):f(r.data)]},void 0,!0,void 0,this)}var Bi=_(Ke(),1);function BI(){return Br()}function A(r){return r.toLocaleString(BI())}function se(r){return r.toLocaleString("en",{notation:"compact"})}function zt(r,l){if(r===0)return"$0";let i=l!==void 0?l:r>0&&r<0.01?4:2;return`$${r.toLocaleString(BI(),{minimumFractionDigits:i,maximumFractionDigits:i})}`}function oa(r,l,i){return r===0&&l>0?"N/A":zt(r,i)}function bb(r){return r.usage.totalTokens>0&&r.usage.cost.total===0&&(r.provider==="xai-oauth"||r.costUnpriced===!0)}function ql(r,l){return oa(r.usage.cost.total,bb(r)?1:0,l)}function Ge(r,l=1){return`${(r*100).toFixed(l)}%`}function Mo(r){let l=r*100;if(l>0&&l<0.005)return"<0.01%";return Ge(r,l>0&&l<0.1?2:1)}function Ct(r,l){if(r===null)return"-";let i=r/1000,d=l!==void 0?l:i<1?2:1;return`${i.toFixed(d)}s`}function yr(r){if(r<60000)return Ct(r);let l=Math.floor(r/60000);if(l<60)return`${l}m ${String(Math.floor(r%60000/1000)).padStart(2,"0")}s`;return`${Math.floor(l/60)}h ${String(l%60).padStart(2,"0")}m`}function Gn(r){if(r===null)return"-";return r.toFixed(1)}var xb=[["second",1000],["minute",60000],["hour",3600000],["day",86400000],["month",2629800000],["year",31557600000]],qI=new Map,id=new Map;function ma(r,l=Date.now()){let i=Br(),d=qI.get(i);if(!d)d=new Intl.RelativeTimeFormat(i,{numeric:"auto"}),qI.set(i,d);let f=r-l,g=0;for(let m=1;m<xb.length;m++)if(Math.abs(f)>=xb[m][1])g=m;let[v,h]=xb[g];return d.format(Math.round(f/h),v)}function Sb(r){let l=Br(),i=`${l}:mdhm`,d=id.get(i);if(!d)d=new Intl.DateTimeFormat(l,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",hourCycle:"h23"}),id.set(i,d);return d.format(r)}function ro(r){let l=Br(),i=id.get(l);if(!i)i=new Intl.DateTimeFormat(l,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit",hourCycle:"h23"}),id.set(l,i);return i.format(r)}var OI=new Map;function Ff(r,l=!1){let i=Br(),d=`${i}:${l?"long":"short"}`,f=OI.get(d);if(!f)f=new Intl.DateTimeFormat(i,l?{weekday:"short",month:"short",day:"numeric",year:"numeric"}:{month:"short",day:"numeric"}),OI.set(d,f);return f.format(r)}function Gf(r){let l=Br(),i=`${l}:time`,d=id.get(i);if(!d)d=new Intl.DateTimeFormat(l,{hour:"2-digit",minute:"2-digit",second:"2-digit",hourCycle:"h23"}),id.set(i,d);return d.format(r)}function Pr(r){return r.replace(/^\/+|\/+$/g,"")||u("common.root")}function kb(r){if(r>=1e9)return`${(r/1e9).toFixed(1)} GB`;if(r>=1e6)return`${(r/1e6).toFixed(1)} MB`;if(r>=1000)return`${(r/1000).toFixed(1)} KB`;return`${r} B`}var Vt=_(te(),1);function Ft({columns:r,rows:l,rowKey:i,onRowClick:d,selectedKey:f,initialSort:g,limit:v,dense:h,empty:m,expanded:S}){let[y,b]=Bi.useState(g??null),[L,T]=Bi.useState(v??Number.POSITIVE_INFINITY),C=Bi.useMemo(()=>{let O=y?r.find((W)=>W.key===y.key):void 0;if(!y||!O?.sort)return l;let z=O.sort,Y=y.dir==="asc"?1:-1;return[...l].sort((W,ue)=>{let Z=z(W),ce=z(ue);if(typeof Z==="number"&&typeof ce==="number")return(Z-ce)*Y;return String(Z).localeCompare(String(ce))*Y})},[l,r,y]);if(l.length===0)return Vt.jsxDEV(Vt.Fragment,{children:m??Vt.jsxDEV(Je,{},void 0,!1,void 0,this)},void 0,!1,void 0,this);let I=C.length>L?C.slice(0,L):C,R=(O)=>{if(!O.sort)return;b((z)=>z?.key===O.key?{key:O.key,dir:z.dir==="asc"?"desc":"asc"}:{key:O.key,dir:O.align==="right"?"desc":"asc"})};return Vt.jsxDEV(Vt.Fragment,{children:[Vt.jsxDEV("div",{className:"table-wrap",children:Vt.jsxDEV("table",{className:"table","data-dense":h??!1,children:[Vt.jsxDEV("thead",{children:Vt.jsxDEV("tr",{children:r.map((O)=>{let z=y?.key===O.key?y.dir:void 0;return Vt.jsxDEV("th",{"data-align":O.align??"left","data-sortable":O.sort!==void 0,"data-sorted":z,style:O.width!==void 0?{width:O.width}:void 0,title:O.title,onClick:()=>R(O),"aria-sort":z==="asc"?"ascending":z==="desc"?"descending":void 0,children:[O.header,z&&Vt.jsxDEV("span",{className:"sort-arrow",children:z==="asc"?Vt.jsxDEV(uf,{size:11},void 0,!1,void 0,this):Vt.jsxDEV(rf,{size:11},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},O.key,!0,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),Vt.jsxDEV("tbody",{children:I.map((O)=>{let z=i(O),Y=S?.(O)??null;return Vt.jsxDEV(Bi.Fragment,{children:[Vt.jsxDEV("tr",{"data-clickable":d!==void 0,"data-selected":f===z,onClick:d?()=>d(O):void 0,onKeyDown:d?(W)=>{if(W.key==="Enter"||W.key===" ")W.preventDefault(),d(O)}:void 0,tabIndex:d?0:void 0,children:r.map((W)=>Vt.jsxDEV("td",{"data-align":W.align??"left","data-wrap":W.wrap??!1,children:W.render(O)},W.key,!1,void 0,this))},void 0,!1,void 0,this),Y!==null&&Vt.jsxDEV("tr",{children:Vt.jsxDEV("td",{colSpan:r.length,"data-wrap":"true",style:{padding:0},children:Y},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},z,!0,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),v!==void 0&&C.length>v&&Vt.jsxDEV("div",{className:"table-more",children:[Vt.jsxDEV("span",{className:"micro",children:u("ui.table-shown-of",{shown:A(I.length),total:A(C.length)})},void 0,!1,void 0,this),C.length>L&&Vt.jsxDEV("button",{type:"button",className:"btn","data-size":"sm","data-variant":"ghost",onClick:()=>T((O)=>O+v*4),children:u("common.show-more")},void 0,!1,void 0,this),L>v&&Vt.jsxDEV("button",{type:"button",className:"btn","data-size":"sm","data-variant":"ghost",onClick:()=>T(v),children:u("ui.show-fewer")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function Ma({value:r,max:l,display:i,color:d}){let f=l>0?Math.min(100,r/l*100):0;return Vt.jsxDEV("div",{className:"meter-cell",children:[Vt.jsxDEV("span",{className:"num",children:i},void 0,!1,void 0,this),Vt.jsxDEV("div",{className:"meter",children:Vt.jsxDEV("div",{className:"meter-fill",style:{width:`${f}%`,background:d}},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function co({primary:r,secondary:l,lead:i}){return Vt.jsxDEV("div",{className:"row",style:{gap:10},children:[i,Vt.jsxDEV("div",{className:"stack",style:{gap:0},children:[Vt.jsxDEV("span",{className:"cell-primary truncate",children:r},void 0,!1,void 0,this),l!==void 0&&Vt.jsxDEV("span",{className:"cell-secondary truncate",children:l},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var Vf=_(Ke(),1);function Zh(r){return r instanceof HTMLElement&&(r.isContentEditable||r.tagName==="INPUT"||r.tagName==="TEXTAREA"||r.tagName==="SELECT")}function Jh(){return document.querySelector('[aria-modal="true"]')!==null}var eg=_(te(),1);function PI(){let r=rN();if(Vf.useEffect(()=>{if(!r)return;let l=(i)=>{if(!nN(i))return;i.preventDefault(),zI()};return window.addEventListener("keydown",l),()=>window.removeEventListener("keydown",l)},[r]),!r)return null;return eg.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost",onClick:zI,title:"Close the dashboard (Esc)",children:[eg.jsxDEV(Ao,{size:15},void 0,!1,void 0,this),"Close",eg.jsxDEV("span",{className:"kbd",children:"Esc"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function zI(){iI().catch((r)=>console.error("Closing the dashboard failed",r))}function rN(){let[r,l]=Vf.useState(!1);return Vf.useEffect(()=>{let i=new AbortController;return lI(i.signal).then(l,()=>{}),()=>i.abort()},[]),r}function nN(r){if(r.defaultPrevented||r.altKey||r.metaKey||r.shiftKey)return!1;if(Zh(r.target)||Jh())return!1;if(r.key==="Escape")return!r.ctrlKey;return r.ctrlKey&&r.key.toLowerCase()==="c"&&!window.getSelection()?.toString()}var tg=_(te(),1);function UI(){let r=_n(),l=r==="en"?"zh-CN":"en",i=r==="en"?"中文":"EN";return tg.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-locale-toggle":r,onClick:()=>QT(l),"aria-label":u("shell.switch-language"),title:`${u("shell.language")}: ${i}`,children:[tg.jsxDEV(Cf,{size:15},void 0,!1,void 0,this),tg.jsxDEV("span",{className:"topbar-locale-label",children:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var ag=_(Ke(),1);var ba=_(te(),1);function _I(){let{sync:r,indexingHours:l,connected:i,requestSync:d}=Xh(),f=lN(r.phase==="idle"?15000:null),g,v;if(!i)g=ba.jsxDEV(ba.Fragment,{children:[ba.jsxDEV(Hn,{tone:"warn"},void 0,!1,void 0,this),ba.jsxDEV("span",{children:u("shell.reconnecting")},void 0,!1,void 0,this)]},void 0,!0,void 0,this),v=u("shell.lost-connection");else if(r.phase==="syncing")g=ba.jsxDEV(ba.Fragment,{children:[ba.jsxDEV(Dl,{size:13,className:"spin"},void 0,!1,void 0,this),ba.jsxDEV("span",{children:u("shell.syncing")},void 0,!1,void 0,this),r.total>0&&ba.jsxDEV("span",{className:"live-chip-count",children:[A(r.current),"/",A(r.total)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),v=u("shell.ingesting");else if(r.phase==="error")g=ba.jsxDEV(ba.Fragment,{children:[ba.jsxDEV(Hn,{tone:"bad"},void 0,!1,void 0,this),ba.jsxDEV("span",{children:u("shell.sync-failed")},void 0,!1,void 0,this)]},void 0,!0,void 0,this),v=`${r.error??u("shell.sync-failed")} — click to retry`;else if(l>sN)g=ba.jsxDEV(ba.Fragment,{children:[ba.jsxDEV(Dl,{size:13,className:"spin"},void 0,!1,void 0,this),ba.jsxDEV("span",{children:u("shell.indexing")},void 0,!1,void 0,this),ba.jsxDEV("span",{className:"live-chip-count",children:[A(l),"h left"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),v=u("shell.building-rollups");else g=ba.jsxDEV(ba.Fragment,{children:[ba.jsxDEV(Hn,{tone:"live",pulse:!0},void 0,!1,void 0,this),ba.jsxDEV("span",{children:u("shell.live")},void 0,!1,void 0,this),r.lastSyncedAt!==null&&ba.jsxDEV("span",{className:"live-chip-count",children:iN(f-r.lastSyncedAt)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),v=u("shell.sync-now");return ba.jsxDEV("button",{type:"button",className:"live-chip",onClick:d,disabled:r.phase==="syncing",title:v,children:g},void 0,!1,void 0,this)}var sN=24;function lN(r){let[l,i]=ag.useState(Date.now);return ag.useEffect(()=>{if(r===null)return;i(Date.now());let d=setInterval(()=>i(Date.now()),r);return()=>clearInterval(d)},[r]),l}function iN(r){let l=Math.max(0,Math.round(r/1000));if(l<45)return u("shell.just-now");let i=Math.round(l/60);if(i<60)return`${i}m ago`;let d=Math.round(i/60);return d<24?`${d}h ago`:`${Math.round(d/24)}d ago`}var og=[{headingKey:"nav.usage",items:[{id:"overview",labelKey:"nav.overview",icon:Tf,hotkey:"o"},{id:"models",labelKey:"nav.models",icon:hf,hotkey:"m"},{id:"providers",labelKey:"nav.providers",icon:Al,hotkey:"p"},{id:"costs",labelKey:"nav.costs",icon:pf,hotkey:"c"}]},{headingKey:"nav.activity",items:[{id:"requests",labelKey:"nav.requests",icon:af,hotkey:"r"},{id:"errors",labelKey:"nav.errors",icon:Jr,hotkey:"e"},{id:"traces",labelKey:"nav.traces",icon:en,hotkey:"t"}]},{headingKey:"nav.insights",items:[{id:"tools",labelKey:"nav.tools",icon:Ei,hotkey:"l"},{id:"frustration",labelKey:"nav.frustration",icon:Il,hotkey:"f"},{id:"projects",labelKey:"nav.projects",icon:xf,hotkey:"j"},{id:"tracking",labelKey:"nav.tracking",icon:ff,hotkey:"k"},{id:"gain",labelKey:"nav.gain",icon:Un,hotkey:"g"},{id:"spotlight",labelKey:"nav.spotlight",icon:ws,hotkey:"s"}]}],uN=og.flatMap((r)=>r.items),HI=uN.map((r)=>r.id);var Lb=_(Ke(),1),GI="zeta-stats-theme",VI="(prefers-color-scheme: dark)";function dN(){if(typeof localStorage>"u")return"system";let r=localStorage.getItem(GI);return r==="light"||r==="dark"||r==="system"?r:"system"}function jI(){if(typeof window>"u")return"dark";return window.matchMedia(VI).matches?"dark":"light"}var zi=dN(),rg=zi==="system"?jI():zi,wb=new Set;function $I(){for(let r of wb)r()}function Cb(){if(rg=zi==="system"?jI():zi,typeof document<"u")document.documentElement.dataset.theme=rg,document.documentElement.style.colorScheme=rg}if(typeof window<"u")Cb(),window.matchMedia(VI).addEventListener("change",()=>{if(zi==="system")Cb(),$I()});function cN(r){if(zi=r,typeof localStorage<"u")localStorage.setItem(GI,r);Cb(),$I()}function FI(r){return wb.add(r),()=>wb.delete(r)}function XI(){let r=Lb.useSyncExternalStore(FI,()=>zi,()=>"system"),l=Lb.useSyncExternalStore(FI,()=>rg,()=>"dark");return{preference:r,resolved:l,setPreference:cN}}var Tb=_(te(),1),fN={system:"light",light:"dark",dark:"system"},pN={system:"shell.system-theme",light:"shell.light-theme",dark:"shell.dark-theme"},mN={system:Af,light:Bf,dark:Mf};function YI(){_n();let{preference:r,setPreference:l}=XI(),i=mN[r],d=u(pN[r]);return Tb.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-icon":"true",onClick:()=>l(fN[r]),"aria-label":`${d} (click to switch)`,title:`${d} — click to switch`,children:Tb.jsxDEV(i,{size:15},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var st=_(te(),1);function KI({section:r,onSectionChange:l,range:i,onRangeChange:d,children:f}){_n();let g=ed.map((L,T)=>({value:L,label:u(aa(L).labelKey),title:`${u(aa(L).windowKey)} (${T+1})`})),[v,h]=ud.useState(!1),m=hN(),{sync:S}=Xh();gN(l,d);let y=(L)=>{l(L),h(!1),window.scrollTo({top:0})},b=S.phase==="syncing"?S.total>0?S.current/S.total:null:void 0;return st.jsxDEV(st.Fragment,{children:[st.jsxDEV("div",{className:"shell-ambient"},void 0,!1,void 0,this),st.jsxDEV("header",{className:"topbar","data-scrolled":m,children:[st.jsxDEV("button",{type:"button",className:"btn topbar-menu","data-variant":"ghost","data-icon":"true",onClick:()=>h(!0),"aria-label":u("nav.open-navigation"),children:st.jsxDEV(Rf,{size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this),st.jsxDEV("div",{className:"topbar-brand",children:[st.jsxDEV("svg",{className:"topbar-mark",viewBox:"0 0 64 64",width:"22",height:"22","aria-hidden":"true",children:[st.jsxDEV("defs",{children:st.jsxDEV("linearGradient",{id:"zeta-mark-grad",x1:"0",y1:"0",x2:"1",y2:"1",children:[st.jsxDEV("stop",{offset:"0",stopColor:"oklch(0.7 0.24 340)"},void 0,!1,void 0,this),st.jsxDEV("stop",{offset:".5",stopColor:"oklch(0.62 0.21 295)"},void 0,!1,void 0,this),st.jsxDEV("stop",{offset:"1",stopColor:"oklch(0.81 0.14 200)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),st.jsxDEV("text",{x:"32",y:"47",textAnchor:"middle",fontSize:"52",fontWeight:"700",fontFamily:"Georgia, 'Times New Roman', serif",fill:"url(#zeta-mark-grad)",children:"ζ"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),st.jsxDEV("span",{children:"zeta"},void 0,!1,void 0,this),st.jsxDEV("span",{className:"topbar-slash",children:"/"},void 0,!1,void 0,this),st.jsxDEV("span",{className:"topbar-title",children:u("nav.breadcrumb-stats")},void 0,!1,void 0,this)]},void 0,!0,void 0,this),st.jsxDEV("div",{className:"topbar-spacer"},void 0,!1,void 0,this),st.jsxDEV("div",{className:"topbar-actions",children:[st.jsxDEV("span",{className:"topbar-hide-narrow",children:st.jsxDEV(_I,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),st.jsxDEV(Oa,{options:g,value:i,onChange:d,"aria-label":u("common.time-range")},void 0,!1,void 0,this),st.jsxDEV(UI,{},void 0,!1,void 0,this),st.jsxDEV(YI,{},void 0,!1,void 0,this),st.jsxDEV(PI,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this),b!==void 0&&st.jsxDEV("div",{className:"topbar-progress",children:st.jsxDEV("div",{className:"topbar-progress-fill","data-indeterminate":b===null,style:{width:`${(b??0)*100}%`}},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),v&&st.jsxDEV("div",{className:"drawer-scrim",onClick:()=>h(!1),role:"presentation"},void 0,!1,void 0,this),st.jsxDEV("nav",{className:"sidebar","data-open":v,"aria-label":u("nav.pages"),children:[og.map((L)=>st.jsxDEV("div",{className:"nav-group",children:[st.jsxDEV("div",{className:"nav-heading",children:u(L.headingKey)},void 0,!1,void 0,this),L.items.map((T)=>st.jsxDEV("button",{type:"button",className:"nav-row","data-active":T.id===r,"aria-current":T.id===r?"page":void 0,onClick:()=>y(T.id),children:[st.jsxDEV(T.icon,{size:15},void 0,!1,void 0,this),st.jsxDEV("span",{className:"nav-row-label",children:u(T.labelKey)},void 0,!1,void 0,this),st.jsxDEV("kbd",{children:["G ",T.hotkey.toUpperCase()]},void 0,!0,void 0,this)]},T.id,!0,void 0,this))]},L.headingKey,!0,void 0,this)),st.jsxDEV("div",{className:"sidebar-foot micro",children:[st.jsxDEV("span",{children:[st.jsxDEV("span",{className:"kbd",children:"1"},void 0,!1,void 0,this),"–",st.jsxDEV("span",{className:"kbd",children:"6"},void 0,!1,void 0,this)," ",u("shell.range-suffix")]},void 0,!0,void 0,this),st.jsxDEV("span",{children:[st.jsxDEV("span",{className:"kbd",children:"G"},void 0,!1,void 0,this)," ",u("shell.jump-hint")]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),st.jsxDEV("main",{className:"shell-panel",children:st.jsxDEV("div",{className:"shell-content",children:f},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function hN(){let[r,l]=ud.useState(!1);return ud.useEffect(()=>{let i=()=>l(window.scrollY>4);return i(),window.addEventListener("scroll",i,{passive:!0}),()=>window.removeEventListener("scroll",i)},[]),r}function gN(r,l){ud.useEffect(()=>{let i=0,d=(f)=>{if(f.metaKey||f.ctrlKey||f.altKey||f.defaultPrevented)return;if(Zh(f.target)||Jh())return;let g=f.key.toLowerCase();if(i&&Date.now()-i<1200){i=0;let h=og.flatMap((m)=>m.items).find((m)=>m.hotkey===g);if(h)f.preventDefault(),r(h.id),window.scrollTo({top:0});return}if(g==="g"){i=Date.now();return}let v=Number(g)-1;if(Number.isInteger(v)&&v>=0&&v<ed.length)f.preventDefault(),l(ed[v])};return window.addEventListener("keydown",d),()=>window.removeEventListener("keydown",d)},[r,l])}var Cs=_(Ke(),1);function jf(r){let[l,i]=r.replace(/^#\/?/,"").split("?"),d=HI.includes(l)?l:"overview",f=new URLSearchParams(i??""),g=f.get("range"),v=ed.includes(g??"")?g:"24h";return{section:d,range:v,session:f.get("s")}}function ng({section:r,range:l,session:i}){let d=i?`&s=${encodeURIComponent(i)}`:"";return`#/${r}?range=${l}${d}`}function QI(){let[r,l]=Cs.useState(()=>jf(window.location.hash));Cs.useEffect(()=>{let v=()=>l(jf(window.location.hash));window.addEventListener("hashchange",v),window.addEventListener("popstate",v);let h=ng(jf(window.location.hash));if(window.location.hash!==h)history.replaceState(null,"",h);return()=>{window.removeEventListener("hashchange",v),window.removeEventListener("popstate",v)}},[]);let i=Cs.useCallback((v)=>{l(v);let h=ng(v);if(window.location.hash!==h)history.pushState(null,"",h)},[]),d=Cs.useCallback((v)=>i({...r,section:v,session:v==="traces"?r.session:null}),[r,i]),f=Cs.useCallback((v)=>i({...r,range:v}),[r,i]),g=Cs.useCallback((v)=>i({...r,session:v}),[r,i]);return{...r,setSection:d,setRange:f,setSession:g}}var $f=_(Ke(),1);var Vn=_(te(),1);function Ts({items:r,max:l,onSelect:i}){let d=l??Math.max(0,...r.map((f)=>f.value));return Vn.jsxDEV("div",{className:"bar-list",children:r.map((f)=>{let g=d>0?Math.max(0.5,f.value/d*100):0,v=Vn.jsxDEV(Vn.Fragment,{children:[Vn.jsxDEV("span",{className:"bar-list-fill",style:{width:`${g}%`,background:f.color??"var(--chart-primary)"}},void 0,!1,void 0,this),Vn.jsxDEV("span",{className:"bar-list-label",children:f.label},void 0,!1,void 0,this),Vn.jsxDEV("span",{className:"bar-list-value",children:f.display??A(f.value)},void 0,!1,void 0,this)]},void 0,!0,void 0,this);return i?Vn.jsxDEV("button",{type:"button",className:"bar-list-row",onClick:()=>i(f.key),children:v},f.key,!1,void 0,this):Vn.jsxDEV("div",{className:"bar-list-row",children:v},f.key,!1,void 0,this)})},void 0,!1,void 0,this)}var Rs=_(Ke(),1);var ft=_(te(),1),Is=10,yN=24,vN=68,xN=4;function vr({slots:r,tickLabel:l,tooltipTitle:i,series:d,kind:f="bars",stacked:g=!0,height:v=220,format:h=se,formatRight:m,formatTooltip:S,yMax:y,yMaxRight:b,hidden:L,showTotal:T,references:C,markers:I,onSelect:R,emptyLabel:O="No data in this range",tooltipExtra:z}){let[Y,W]=Wh(),[ue,Z]=Rs.useState(null),ce=Rs.useId().replace(/:/g,""),ee=Rs.useMemo(()=>d.filter((j)=>!L?.has(j.key)),[d,L]),G=Rs.useMemo(()=>{let j=ee.filter((Bt)=>Bt.axis!=="right"),We=ee.filter((Bt)=>Bt.axis==="right"),H=(Bt)=>{let ga=Bt.kind??f;return g&&(ga==="bars"||ga==="area")},we=new Map,he=Array.from({length:r},()=>0),it=Array.from({length:r},()=>0),ze=0,ke=0;for(let Bt of j)if(H(Bt)){let ga=Array.from({length:r},()=>0);for(let ho=0;ho<r;ho++){let zl=Bt.values[ho]??0;if(zl<0)ga[ho]=it[ho],it[ho]+=zl;else ga[ho]=he[ho],he[ho]+=zl}we.set(Bt.key,ga)}else for(let ga=0;ga<r;ga++)ze=Math.max(ze,Bt.values[ga]??0),ke=Math.min(ke,Bt.values[ga]??0);for(let Bt=0;Bt<r;Bt++)ze=Math.max(ze,he[Bt]),ke=Math.min(ke,it[Bt]);let Qt=0,qe=0;for(let Bt of We)for(let ga=0;ga<r;ga++)Qt=Math.max(Qt,Bt.values[ga]??0),qe=Math.min(qe,Bt.values[ga]??0);for(let Bt of C??[])if(Bt.axis==="right")Qt=Math.max(Qt,Bt.value);else ze=Math.max(ze,Bt.value);let Ea=sg(y??ze,ke),Wt=We.length>0?sg(b??Qt,qe):null,$i=ee.every((Bt)=>Bt.values.every((ga)=>!ga));return{left:j,right:We,bases:we,stackable:H,leftScale:Ea,rightScale:Wt,empty:$i}},[ee,r,g,f,y,b,C]),V=G.leftScale.ticks.map((j)=>h(j)),Re=G.rightScale?.ticks.map((j)=>(m??h)(j))??[],pe=Math.max(28,WI(V)+12),Ne=G.rightScale?Math.max(28,WI(Re)+12):8,Te=Math.max(0,W-pe-Ne),oe=v-Is-yN,Se=r>0?Te/r:0,Ee=(j,We)=>Is+oe-(We-j.min)/(j.max-j.min)*oe,Qe=(j)=>Ee(G.leftScale,j),yt=(j)=>G.rightScale?Ee(G.rightScale,j):Qe(j),Q=(j)=>pe+(j+0.5)*Se,Fe=ee.filter((j)=>(j.kind??f)==="bars"),It=Fe.filter((j)=>!G.stackable(j)||j.axis==="right"),St=Math.max(1,Math.min(56,Se*(Se>6?0.72:0.9))),ge=Math.max(1,Math.ceil(r/Math.max(1,Math.floor(Te/vN)))),Ye=(j)=>{let We=j.currentTarget.getBoundingClientRect(),H=Math.floor((j.clientX-We.left)/(We.width/r));Z(H>=0&&H<r?H:null)},He=ue===null?[]:ee.filter((j)=>j.tooltip!==!1).map((j)=>({s:j,v:j.values[ue]})).filter((j)=>j.v!==null&&j.v!==void 0&&(j.v!==0||ee.length===1)).sort((j,We)=>ee.length>1?We.v-j.v:0),ua=He.filter((j)=>j.s.axis!=="right").reduce((j,We)=>j+We.v,0),da=T??(g&&G.left.length>1);return ft.jsxDEV("div",{className:"chart",ref:Y,"data-hovering":ue!==null,style:{height:v},children:[W>0&&ft.jsxDEV("svg",{width:W,height:v,role:"img",children:[ft.jsxDEV("defs",{children:ee.filter((j)=>j.pattern==="hatch").map((j)=>ft.jsxDEV("pattern",{id:`${ce}-${Ib(j.key)}`,width:"5",height:"5",patternUnits:"userSpaceOnUse",patternTransform:"rotate(45)",children:[ft.jsxDEV("rect",{width:"5",height:"5",fill:j.color,fillOpacity:"0.14"},void 0,!1,void 0,this),ft.jsxDEV("rect",{width:"1.6",height:"5",fill:j.color},void 0,!1,void 0,this)]},j.key,!0,void 0,this))},void 0,!1,void 0,this),ft.jsxDEV("g",{className:"chart-grid",children:G.leftScale.ticks.map((j)=>ft.jsxDEV("line",{x1:pe,x2:pe+Te,y1:Qe(j),y2:Qe(j)},j,!1,void 0,this))},void 0,!1,void 0,this),ft.jsxDEV("g",{className:"chart-axis",children:[G.leftScale.ticks.map((j,We)=>ft.jsxDEV("text",{x:pe-8,y:Qe(j),dy:"0.32em",textAnchor:"end",children:V[We]},j,!1,void 0,this)),G.rightScale?.ticks.map((j,We)=>ft.jsxDEV("text",{x:pe+Te+8,y:yt(j),dy:"0.32em",textAnchor:"start",children:Re[We]},j,!1,void 0,this)),Array.from({length:r},(j,We)=>We%ge===0?ft.jsxDEV("text",{x:Q(We),y:v-6,textAnchor:"middle",children:l(We)},We,!1,void 0,this):null)]},void 0,!0,void 0,this),ue!==null&&ft.jsxDEV("rect",{className:"chart-cursor",x:pe+ue*Se,y:Is,width:Se,height:oe},void 0,!1,void 0,this),ee.filter((j)=>(j.kind??f)==="area").map((j)=>{let We=j.axis==="right"?yt:Qe,H=G.bases.get(j.key),we=(ke)=>(H?.[ke]??0)+(j.values[ke]??0),he=ZI(r,Q,(ke)=>We(we(ke))),it=Array.from({length:r},(ke,Qt)=>r-1-Qt).map((ke)=>`L${Q(ke).toFixed(1)},${We(H?.[ke]??0).toFixed(1)}`).join(""),ze=j.pattern==="hatch"?`url(#${ce}-${Ib(j.key)})`:j.color;return ft.jsxDEV("g",{children:[ft.jsxDEV("path",{d:`${he}${it}Z`,fill:ze,fillOpacity:j.pattern?1:0.2},void 0,!1,void 0,this),ft.jsxDEV("path",{className:"chart-line",d:he,stroke:j.color,strokeDasharray:j.dashed?"4 3":void 0},void 0,!1,void 0,this)]},j.key,!0,void 0,this)}),Fe.map((j)=>{let We=j.axis==="right"?yt:Qe,H=G.bases.get(j.key),we=It.indexOf(j),he=we>=0?St/It.length:St,it=j.pattern==="hatch"?`url(#${ce}-${Ib(j.key)})`:j.color;return ft.jsxDEV("g",{children:j.values.map((ze,ke)=>{if(!ze)return null;let Qt=we>=0?0:H?.[ke]??0,qe=We(Qt),Ea=We(Qt+ze),Wt=Q(ke)-St/2+(we>=0?we*he:0);return ft.jsxDEV("rect",{className:"chart-bar","data-hover":ue===ke,x:Wt,y:Math.min(qe,Ea),width:Math.max(1,he-(we>=0&&It.length>1?1:0)),height:Math.max(ze>0?1:0,Math.abs(qe-Ea)),fill:it},ke,!1,void 0,this)})},j.key,!1,void 0,this)}),ee.filter((j)=>(j.kind??f)==="line").map((j)=>{let We=j.axis==="right"?yt:Qe,H=(we)=>{let he=j.values[we];return he===null||he===void 0?null:We(he)};return ft.jsxDEV("g",{children:[ft.jsxDEV("path",{className:"chart-line",d:ZI(r,Q,H),stroke:j.color,strokeDasharray:j.dashed?"4 3":void 0},void 0,!1,void 0,this),j.values.map((we,he)=>{let it=H(he);if(it===null||he>0&&H(he-1)!==null||he<r-1&&H(he+1)!==null)return null;return ft.jsxDEV("circle",{cx:Q(he),cy:it,r:2.5,fill:j.color},he,!1,void 0,this)})]},j.key,!0,void 0,this)}),ee.filter((j)=>(j.kind??f)==="dots").map((j)=>{let We=j.axis==="right"?yt:Qe;return ft.jsxDEV("g",{className:"chart-dots",fill:j.color,children:j.values.map((H,we)=>H===null||H===void 0?null:ft.jsxDEV("circle",{cx:Q(we),cy:We(H),r:ue===we?3.5:2.5},we,!1,void 0,this))},j.key,!1,void 0,this)}),I?.map((j)=>j.index>=0&&j.index<r?ft.jsxDEV("g",{className:"chart-marker",children:[ft.jsxDEV("line",{x1:Q(j.index),x2:Q(j.index),y1:Is,y2:Is+oe},void 0,!1,void 0,this),j.label&&ft.jsxDEV("text",{x:Q(j.index)+(Q(j.index)>pe+Te/2?-5:5),y:Is+9,textAnchor:Q(j.index)>pe+Te/2?"end":"start",children:j.label},void 0,!1,void 0,this)]},`marker:${j.index}`,!0,void 0,this):null),C?.map((j)=>{let We=j.axis==="right"?yt(j.value):Qe(j.value);return ft.jsxDEV("g",{className:"chart-axis",children:[ft.jsxDEV("line",{x1:pe,x2:pe+Te,y1:We,y2:We,stroke:"var(--line-4)",strokeDasharray:"3 3"},void 0,!1,void 0,this),j.label&&ft.jsxDEV("text",{x:pe+Te-4,y:We-5,textAnchor:"end",children:j.label},void 0,!1,void 0,this)]},`${j.axis??"left"}:${j.value}`,!0,void 0,this)}),ft.jsxDEV("line",{className:"chart-baseline",x1:pe,x2:pe+Te,y1:Qe(0),y2:Qe(0)},void 0,!1,void 0,this),ft.jsxDEV("rect",{x:pe,y:Is,width:Te,height:oe,fill:"transparent",onPointerMove:Ye,onPointerLeave:()=>Z(null),onClick:R&&ue!==null?()=>R(ue):void 0,style:{cursor:R?"pointer":"crosshair"}},void 0,!1,void 0,this)]},void 0,!0,void 0,this),G.empty&&ft.jsxDEV("div",{className:"chart-empty",children:O},void 0,!1,void 0,this),ue!==null&&!G.empty&&ft.jsxDEV("div",{className:"chart-tooltip",style:Q(ue)>W/2?{right:W-Q(ue)+Math.min(Se/2,24)+8,top:Is}:{left:Q(ue)+Math.min(Se/2,24)+8,top:Is},children:[ft.jsxDEV("div",{className:"chart-tooltip-title",children:(i??l)(ue)},void 0,!1,void 0,this),He.map(({s:j,v:We})=>ft.jsxDEV("div",{className:"chart-tooltip-row",children:[ft.jsxDEV("span",{className:"swatch",style:{background:j.color}},void 0,!1,void 0,this),ft.jsxDEV("span",{className:"chart-tooltip-label",children:j.label},void 0,!1,void 0,this),ft.jsxDEV("span",{className:"chart-tooltip-value",children:j.axis==="right"?(m??h)(We):(S??h)(We)},void 0,!1,void 0,this)]},j.key,!0,void 0,this)),da&&He.length>1&&ft.jsxDEV("div",{className:"chart-tooltip-row chart-tooltip-total",children:[ft.jsxDEV("span",{className:"chart-tooltip-label",children:"Total"},void 0,!1,void 0,this),ft.jsxDEV("span",{className:"chart-tooltip-value",children:(S??h)(ua)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),z&&ft.jsxDEV(Rs.Fragment,{children:z(ue)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function sg(r,l=0){let i=Math.max(0,r),d=Math.min(0,l);if(!(i-d>0))return{min:0,max:1,ticks:[0]};let f=(i-d)/xN,g=10**Math.floor(Math.log10(f)),v=[1,2,2.5,5,10].map((y)=>y*g).find((y)=>y>=f)??10*g,h=Math.ceil(i/v)*v,m=Math.floor(d/v)*v,S=[];for(let y=m;y<=h+v/2;y+=v)S.push(Number(y.toPrecision(12)));return{min:m,max:h>m?h:m+v,ticks:S}}function WI(r){return r.reduce((l,i)=>Math.max(l,i.length*6.3),0)}function ZI(r,l,i){let d="",f=!1;for(let g=0;g<r;g++){let v=i(g);if(v===null){f=!1;continue}d+=`${f?"L":"M"}${l(g).toFixed(1)},${v.toFixed(1)}`,f=!0}return d}function Ib(r){return r.replace(/[^a-zA-Z0-9_-]/g,"_")}var Va=_(te(),1);function lg({rows:r,guides:l,band:i,format:d,formatTick:f}){let g=0,v=0,h=(T)=>{if(T===null)return;g=Math.max(g,T),v=Math.min(v,T)};for(let T of r)for(let C of T.marks)h(C.value),h(C.lo),h(C.hi);for(let T of l??[])h(T.value);if(i)h(i.lo),h(i.hi);let m=sg(g,v),S=m.max-m.min,y=(T)=>(Math.min(m.max,Math.max(m.min,T))-m.min)/S*100,b=(T)=>`${y(T)}%`,L=Va.jsxDEV(Va.Fragment,{children:[i&&Va.jsxDEV("span",{className:"dw-band",style:{left:b(i.lo),width:`${y(i.hi)-y(i.lo)}%`,"--band":i.color}},void 0,!1,void 0,this),l?.map((T)=>Va.jsxDEV("span",{className:"dw-guide",style:{left:b(T.value),"--guide":T.color}},T.key,!1,void 0,this))]},void 0,!0,void 0,this);return Va.jsxDEV("div",{className:"dw",children:[r.map((T)=>{let C=T.marks[0],I=C!==void 0&&C.lo!==null&&C.hi!==null?`${d(C.lo)}–${d(C.hi)}`:"";return Va.jsxDEV("div",{className:"dw-row",children:[Va.jsxDEV("div",{className:"dw-label",children:T.label},void 0,!1,void 0,this),Va.jsxDEV("div",{className:"dw-track",children:[L,T.marks.map((R)=>Va.jsxDEV("span",{className:"dw-mark","data-shape":R.shape??"dot",style:{"--dot":R.color,"--dy":`${R.offset??0}px`},children:[R.lo!==null&&R.hi!==null&&Va.jsxDEV("span",{className:"dw-whisker",style:{left:b(R.lo),width:`${y(R.hi)-y(R.lo)}%`}},void 0,!1,void 0,this),R.value!==null&&Va.jsxDEV("span",{className:"dw-dot",style:{left:b(R.value)},title:R.title},void 0,!1,void 0,this)]},R.key,!0,void 0,this))]},void 0,!0,void 0,this),Va.jsxDEV("div",{className:"dw-value",children:[Va.jsxDEV("span",{className:"num",children:T.figure??(C?.value===null||C===void 0?"–":d(C.value))},void 0,!1,void 0,this),Va.jsxDEV("span",{className:"dw-detail",children:T.detail??I},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},T.key,!0,void 0,this)}),Va.jsxDEV("div",{className:"dw-row dw-axis","aria-hidden":"true",children:[Va.jsxDEV("div",{},void 0,!1,void 0,this),Va.jsxDEV("div",{className:"dw-track",children:m.ticks.map((T)=>Va.jsxDEV("span",{className:"dw-tick",style:{left:b(T)},children:(f??d)(T)},T,!1,void 0,this))},void 0,!1,void 0,this),Va.jsxDEV("div",{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var ig=_(Ke(),1),jn=_(te(),1);function ia({items:r,hidden:l,onToggle:i}){return jn.jsxDEV("div",{className:"legend",children:r.map((d)=>{let f=jn.jsxDEV(jn.Fragment,{children:[jn.jsxDEV("span",{className:"swatch",style:{background:d.color}},void 0,!1,void 0,this),jn.jsxDEV("span",{className:"truncate",children:d.label},void 0,!1,void 0,this),d.value&&jn.jsxDEV("span",{className:"legend-value",children:d.value},void 0,!1,void 0,this)]},void 0,!0,void 0,this);return i?jn.jsxDEV("button",{type:"button",className:"legend-item","data-off":l?.has(d.key)??!1,onClick:()=>i(d.key),title:d.label,children:f},d.key,!1,void 0,this):jn.jsxDEV("span",{className:"legend-item",title:d.label,children:f},d.key,!1,void 0,this)})},void 0,!1,void 0,this)}function Ur(){let[r,l]=ig.useState(()=>new Set),i=ig.useCallback((d)=>{l((f)=>{let g=new Set(f);if(!g.delete(d))g.add(d);return g})},[]);return[r,i]}var Rb=_(te(),1);function $n({segments:r,height:l=8}){let i=r.reduce((d,f)=>d+Math.max(0,f.value),0);return Rb.jsxDEV("div",{className:"share-bar",style:{height:l},role:"img",children:i>0&&r.filter((d)=>d.value>0).map((d)=>Rb.jsxDEV("div",{className:"share-bar-seg",style:{flexGrow:d.value/i,background:d.color},title:`${d.label}: ${(d.value/i*100).toFixed(1)}%`},d.key,!1,void 0,this))},void 0,!1,void 0,this)}var e2=_(te(),1),JI=86400000;function _o({buckets:r,bucketMs:l,onSelectBucket:i,...d}){return e2.jsxDEV(vr,{...d,slots:r.length,tickLabel:(f)=>Vh(r[f],r.length>1&&r[r.length-1]-r[0]>JI?JI:l),tooltipTitle:(f)=>td(r[f],l),onSelect:i?(f)=>i(r[f]):void 0},void 0,!1,void 0,this)}var nn=_(te(),1);function t2({steps:r,format:l}){let i=0,d=r.map((m)=>{let S=i;if(m.kind==="total")return i=m.value,{...m,from:0,to:m.value,before:S};return i+=m.value,{...m,from:S,to:i,before:S}}),f=0,g=0;for(let m of d)f=Math.min(f,m.from,m.to),g=Math.max(g,m.from,m.to);let v=g-f||1,h=(m)=>(m-f)/v*100;return nn.jsxDEV("ol",{className:"waterfall",children:d.map((m,S)=>{let y=h(Math.min(m.from,m.to)),b=Math.abs(h(m.to)-h(m.from)),L=m.kind==="delta"?m.value<0?"−":"+":m.value<0?"−":"";return nn.jsxDEV("li",{className:"waterfall-row","data-kind":m.kind,title:m.title,children:[nn.jsxDEV("span",{className:"waterfall-label",children:m.label},void 0,!1,void 0,this),nn.jsxDEV("span",{className:"waterfall-track",children:[f<0&&nn.jsxDEV("span",{className:"waterfall-zero",style:{left:`${h(0)}%`}},void 0,!1,void 0,this),S>0&&nn.jsxDEV("span",{className:"waterfall-link",style:{left:`${h(m.before)}%`}},void 0,!1,void 0,this),nn.jsxDEV("span",{className:"waterfall-bar","data-empty":m.value===0,style:{left:`${y}%`,width:`${b}%`,"--bar":m.color}},void 0,!1,void 0,this)]},void 0,!0,void 0,this),nn.jsxDEV("span",{className:"waterfall-value",children:[nn.jsxDEV("span",{className:"num",children:[L,l(Math.abs(m.value))]},void 0,!0,void 0,this),m.note!==void 0&&nn.jsxDEV("span",{className:"waterfall-note",children:m.note},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},m.key,!0,void 0,this)})},void 0,!1,void 0,this)}var za=["#5ad8e6","#ed4abf","#9d7bff","#f5b54a","#4ade80","#5b8cff","#ff7a59","#2dd4bf","#c3e94f","#fb7185"],fo="#6c6c74";function ja(r,l){return`${r}::${l}`}function ug(r){return Pi(r.map((l)=>({key:ja(l.model,l.provider),weight:l.totalRequests})))}function Pi(r,l=za){let i=[...r].sort((d,f)=>f.weight-d.weight||d.key.localeCompare(f.key));return new Map(i.map((d,f)=>[d.key,l[f%l.length]]))}function dg(r){return r instanceof Error?r:Error(String(r))}var Pa=_(Ke(),1);var bN={entries:new Map,limit:128},SN={entries:new Map,limit:4},kN={entries:new Map,limit:16},Ui=new Map;function a2(r){if(r.startsWith('["trace",'))return SN;if(r.startsWith('["request",'))return kN;return bN}function dd(r){return a2(r).entries.get(r)}function o2(r){return Ui.get(r)}function LN(r,l){let{entries:i,limit:d}=a2(r);if(i.delete(r),i.set(r,l),i.size>d){let f=i.keys().next().value;if(f!==void 0)i.delete(f)}}function r2(r,l,i){let d=Ui.get(r);if(d)return d.waiters++,d;let f=new AbortController,g=dd(r)?.data,v={promise:i({signal:f.signal},g).then((h)=>(LN(r,{data:h,updatedAt:Date.now(),version:l}),h)).finally(()=>{if(Ui.get(r)===v)Ui.delete(r)}),controller:f,waiters:1};return Ui.set(r,v),v}function Ab(r,l){if(l.waiters--,l.waiters>0)return;if(Ui.get(r)===l)Ui.delete(r);l.controller.abort()}var wN=1500;function Pt(r,l,i){let d=JSON.stringify(r),f=i?.enabled??!0,g=i?.pollMs,v=MI(f),[,h]=Pa.useReducer((G)=>G+1,0),[m,S]=Pa.useReducer((G)=>G+1,0),[y,b]=Pa.useState(null),[L,T]=Pa.useState(!1),C=Pa.useRef(l);C.current=l;let I=Pa.useRef(d);I.current=d;let R=Pa.useRef(null),O=Pa.useRef(0),z=Pa.useRef(null),Y=Pa.useCallback((G)=>{O.current=Date.now();let V=z.current;if(V?.key===G&&o2(G)===V.request)return;let Re=dd(G)?.data;T(!0);let pe=r2(G,vb(),C.current);if(z.current={key:G,request:pe},V)Ab(V.key,V.request);let Ne=!1;pe.promise.then((Te)=>{if(Ne=!0,I.current!==G)return;if(Te===Re){b((oe)=>oe===null?oe:null);return}Pa.startTransition(()=>{b(null),h()})}).catch((Te)=>{if(I.current!==G||pe.controller.signal.aborted)return;b({key:G,error:dg(Te)})}).finally(()=>{if(z.current?.request!==pe)return;if(z.current=null,I.current!==G)return;if(T(!1),Ne&&(dd(G)?.version??-1)<vb())S()})},[]),W=Pa.useCallback(()=>{let G=z.current;if(z.current=null,G)Ab(G.key,G.request)},[]);Pa.useEffect(()=>W,[W]),Pa.useEffect(()=>{if(!f||z.current&&z.current.key!==d)W();if(!f)return;let G=dd(d);if(G&&G.version>=v)return;let V=G?O.current+wN-Date.now():0;if(V<=0){Y(d);return}let Re=setTimeout(()=>Y(d),V);return()=>clearTimeout(Re)},[d,f,v,m,Y,W]),Pa.useEffect(()=>{if(!f||!g)return;let G=setInterval(()=>{if(!document.hidden)Y(I.current)},g);return()=>clearInterval(G)},[f,g,Y]);let ue=Pa.useCallback(()=>Y(I.current),[Y]),Z=dd(d);if(Z)R.current={key:d,data:Z.data,updatedAt:Z.updatedAt};let ce=R.current,ee=y?.key===d?y.error:null;return{data:ce?.data??null,error:ee,loading:!ce&&!ee,stale:!!ce&&ce.key!==d,refreshing:L,updatedAt:ce?.updatedAt??null,refetch:ue}}function cg(r,l){let i=0,d=r.length-1,f=-1;while(i<=d){let g=i+d>>1;if(r[g]<=l)f=g,i=g+1;else d=g-1}return f}function ha(r,l,i){let d=Array.from({length:l.length},()=>0);for(let f of r){let g=cg(l,f.timestamp);if(g>=0)d[g]+=i(f)}return d}function Xn(r,l){let i=new Map;for(let m of r){let S=cg(l.buckets,m.timestamp);if(S<0)continue;let y=l.key(m),b=i.get(y);if(!b)b=Array.from({length:l.buckets.length},()=>0),i.set(y,b);b[S]+=l.value(m)}let d=[...i.entries()].map(([m,S])=>({key:m,values:S,total:S.reduce((y,b)=>y+b,0)})).filter((m)=>m.total!==0).sort((m,S)=>S.total-m.total||m.key.localeCompare(S.key)),f=l.limit??Number.POSITIVE_INFINITY,g=d.slice(0,f),v=d.slice(f),h=g.map((m,S)=>({key:m.key,label:l.label?l.label(m.key):m.key,color:l.colors?.get(m.key)??za[S%za.length],values:m.values}));if(v.length>0){let m=Array.from({length:l.buckets.length},()=>0);for(let S of v)for(let y=0;y<m.length;y++)m[y]+=S.values[y];h.push({key:"__other__",label:u("common.other-n",{count:v.length}),color:fo,values:m})}return h}var CN=["main","subagent","advisor"],TN=za.slice(3);function _i(r){return r.totalInputTokens+r.totalOutputTokens+r.totalCacheReadTokens+r.totalCacheWriteTokens}function l2(r){return{tokens:_i(r),requests:r.totalRequests,cost:r.totalCost,share:0}}function IN(r){let l=new Map;for(let d of r)l.set(d.agentType,d);let i=[];for(let d of CN){let f=l.get(d);if(f)i.push({kind:"agent",agentType:d,key:`agent:${d}`,...l2(f)})}return i}function i2(r,l){let i=[];for(let d of r){if(d.decision!==l)continue;i.push({kind:"sideChannel",category:d.category,key:`side:${d.category}`,...l2(d)})}return i.sort((d,f)=>f.tokens-d.tokens||d.category.localeCompare(f.category))}function u2(r,l){let i=0,d=0,f=[];for(let g of r)if(i+=g.tokens,d+=g.cost,g.kind==="sideChannel")f.push({key:g.category,weight:g.tokens});if(i>0)for(let g of r)g.share=g.tokens/i;return{totalTokens:i,totalCost:d,segments:r,categoryColors:Pi(f,l)}}function d2(r,l){return u2([...IN(r),...i2(l,!1)],TN)}function c2(r){return u2(i2(r,!0),za)}function f2(r){let l={totalCost:0,requests:0,unpricedRequests:0,activeDays:new Set(r.map((f)=>f.timestamp)).size,avgDailyCost:0,costInput:0,costOutput:0,costCacheRead:0,costCacheWrite:0,models:[],topModel:null},i=new Map;for(let f of r){let g=ja(f.model,f.provider),v=i.get(g);if(!v)v={key:g,model:f.model,provider:f.provider,cost:0,requests:0,unpricedRequests:0,costInput:0,costOutput:0,costCacheRead:0,costCacheWrite:0,share:0},i.set(g,v);n2(v,f),n2(l,f),v.cost+=f.cost,l.totalCost+=f.cost}l.avgDailyCost=l.activeDays>0?l.totalCost/l.activeDays:0,l.models=[...i.values()].sort((f,g)=>g.cost-f.cost||g.requests-f.requests||f.key.localeCompare(g.key));for(let f of l.models)f.share=l.totalCost>0?f.cost/l.totalCost:0;let d=l.models[0];return l.topModel=d!==void 0&&d.cost>0?d:null,l}function n2(r,l){r.costInput+=l.costInput,r.costOutput+=l.costOutput,r.costCacheRead+=l.costCacheRead,r.costCacheWrite+=l.costCacheWrite,r.requests+=l.requests,r.unpricedRequests+=l.unpricedRequests}function p2(r){let l=new Map;for(let i of r){let d=ja(i.model,i.provider),f=l.get(d);if(!f)f=[],l.set(d,f);f.push({timestamp:i.timestamp,avgTtftSeconds:i.avgTtft!==null?i.avgTtft/1000:null,avgTokensPerSecond:i.avgTokensPerSecond,requests:i.requests})}for(let i of l.values())i.sort((d,f)=>d.timestamp-f.timestamp);return l}var RN=/^\/?-?(?:private-)?(?:tmp|var-folders)(?:[-/]|$)/;function m2(r){let l=0,i=0,d=0,f=0,g=0,v=0,h=0,m=0,S=0;for(let L of r){if(l+=L.totalRequests,i+=L.failedRequests,d+=L.totalCost,f+=L.unpricedRequests,g+=L.totalInputTokens+L.totalCacheReadTokens+L.totalCacheWriteTokens+L.totalOutputTokens,v+=L.totalInputTokens,h+=L.totalCacheReadTokens,L.totalRequests>m)m=L.totalRequests;if(L.totalCost>S)S=L.totalCost}let y=0;return{rows:r.map((L)=>{let T=RN.test(L.folder);if(T)y++;return{...L,conversationTokens:L.totalInputTokens+L.totalCacheReadTokens+L.totalCacheWriteTokens+L.totalOutputTokens,requestShare:l>0?L.totalRequests/l:0,costShare:d>0?L.totalCost/d:0,temporary:T}}),totalRequests:l,failedRequests:i,totalCost:d,unpricedRequests:f,conversationTokens:g,cacheRate:v+h>0?h/(v+h):0,maxRequests:m,maxCost:S,temporaryCount:y}}function h2(r){let l=0,i=0,d=0;for(let f of r)l+=f.calls,i+=f.totalTokensShare,d+=f.costShare;return r.map((f)=>({...f,errorRate:f.calls>0?f.errors/f.calls:0,callFraction:l>0?f.calls/l:0,tokenFraction:i>0?f.totalTokensShare/i:0,costFraction:d>0?f.costShare/d:0,avgResultChars:f.calls>0?f.resultChars/f.calls:0}))}function As(r){if(r.stopReason==="aborted")return"aborted";if(r.stopReason==="error"||r.errorMessage)return"failed";return"ok"}function Mb(r,l){if(r.length===0)return null;return r[Math.min(r.length-1,Math.max(0,Math.ceil(l*r.length)-1))]}function g2(r){let l=0,i=0,d=0,f=0,g=0,v=null,h=null,m=[],S=[];for(let y of r){let b=As(y);if(b==="failed")l++;else if(b==="aborted")i++;if(d+=y.usage.totalTokens,f+=y.usage.cost.total,bb(y))g++;if(y.duration!==null)m.push(y.duration);if(y.ttft!==null)S.push(y.ttft);if(v===null||y.timestamp<v)v=y.timestamp;if(h===null||y.timestamp>h)h=y.timestamp}return m.sort((y,b)=>y-b),S.sort((y,b)=>y-b),{requests:r.length,failed:l,aborted:i,tokens:d,cost:f,unpriced:g,medianDuration:Mb(m,0.5),p95Duration:Mb(m,0.95),medianTtft:Mb(S,0.5),oldest:v,newest:h}}var s2=180,AN=/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/gi,MN=/\b(?:req|msg|call|toolu|chatcmpl|resp|run|gen)[-_][A-Za-z0-9_-]{6,}/g,DN=/\b[0-9a-f]{12,}\b/gi,EN=/(?<![\w.-])\d+(?:\.\d+)?/g,NN=/^[1-5]\d\d$/;function Db(r){if(!r?.trim())return"Unknown error";let l=r.replace(/\s+/g," ").trim().replace(AN,"<id>").replace(MN,"<id>").replace(DN,"<hex>").replace(EN,(i)=>NN.test(i)?i:"N");return l.length>s2?`${l.slice(0,s2-1)}…`:l}function y2(r){let l=new Map;for(let i of r){let d=Db(i.errorMessage),f=l.get(d);if(!f)f={signature:d,count:0,firstSeen:i.timestamp,lastSeen:i.timestamp,latest:i,models:[],byModel:new Map},l.set(d,f);if(f.count++,i.timestamp<f.firstSeen)f.firstSeen=i.timestamp;if(i.timestamp>f.lastSeen)f.lastSeen=i.timestamp,f.latest=i;let g=ja(i.model,i.provider),v=f.byModel.get(g);if(v)v.count++;else f.byModel.set(g,{model:i.model,provider:i.provider,count:1})}return[...l.values()].map(({byModel:i,...d})=>({...d,models:[...i.values()].sort((f,g)=>g.count-f.count||f.model.localeCompare(g.model))})).sort((i,d)=>d.count-i.count||d.lastSeen-i.lastSeen)}var Oe=_(te(),1);function qN(){return[{value:"model",label:u("costs.by-model")},{value:"component",label:u("costs.by-component")}]}var ON=6,BN=86400000;function Xf(){return[{key:"costInput",label:u("common.input"),color:"#5b8cff"},{key:"costOutput",label:u("common.output"),color:"var(--chart-secondary)"},{key:"costCacheRead",label:u("common.cache-read"),color:"var(--chart-primary)"},{key:"costCacheWrite",label:u("common.cache-write"),color:"#f5b54a"}]}function v2({active:r,range:l}){let i=Pt(["costs",l],({signal:L})=>rI(l,L),{enabled:r}),d=aa(l),[f,g]=$f.useState("model"),[v,h]=Ur(),m=$f.useMemo(()=>i.data?zN(i.data,l):null,[i.data,l]),S=$f.useMemo(()=>m?_N(m):[],[m]),y=(L)=>L.costSeries.length===0,b=Oe.jsxDEV(Je,{title:u("costs.no-usage-in-range"),hint:u("costs.empty-hint")},void 0,!1,void 0,this);return Oe.jsxDEV("div",{className:"page",children:[Oe.jsxDEV(la,{title:u("costs.title"),description:u("costs.description",{window:u(d.windowKey)})},void 0,!1,void 0,this),Oe.jsxDEV(_e,{query:i,skeleton:Oe.jsxDEV(Ga,{height:112,style:{borderRadius:12}},void 0,!1,void 0,this),isEmpty:y,empty:b,children:()=>m&&Oe.jsxDEV(PN,{view:m,stale:i.stale},void 0,!1,void 0,this)},void 0,!1,void 0,this),Oe.jsxDEV("div",{className:"grid grid-main-side",children:[Oe.jsxDEV(fe,{index:1,title:u("costs.daily-estimate"),description:f==="model"?u("costs.daily-by-model"):u("costs.daily-by-component"),actions:Oe.jsxDEV(Oa,{size:"sm",options:qN(),value:f,onChange:g,"aria-label":u("costs.split-by")},void 0,!1,void 0,this),stale:i.stale,children:Oe.jsxDEV(_e,{query:i,skeleton:Oe.jsxDEV(qt,{height:280},void 0,!1,void 0,this),isEmpty:y,empty:b,children:()=>{if(!m)return null;let L=f==="model"?m.modelSeries:m.componentSeries;return Oe.jsxDEV("div",{className:"stack",style:{gap:12},children:[Oe.jsxDEV(vr,{slots:m.buckets.length,tickLabel:(T)=>Ff(m.buckets[T]),tooltipTitle:(T)=>Ff(m.buckets[T],!0),series:L,hidden:v,height:280,format:(T)=>zt(T,Number.isInteger(T)?0:2),formatTooltip:(T)=>zt(T),emptyLabel:u("costs.no-priced-usage"),tooltipExtra:(T)=>m.unpricedPerDay[T]>0?Oe.jsxDEV("div",{className:"chart-tooltip-row chart-tooltip-total",children:[Oe.jsxDEV("span",{className:"chart-tooltip-label",children:u("costs.unpriced-requests")},void 0,!1,void 0,this),Oe.jsxDEV("span",{className:"chart-tooltip-value",children:A(m.unpricedPerDay[T])},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null},void 0,!1,void 0,this),Oe.jsxDEV(ia,{items:L.map((T)=>({key:T.key,label:T.label,color:T.color,value:zt(HN(T.values))})),hidden:v,onToggle:h},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}},void 0,!1,void 0,this)},void 0,!1,void 0,this),Oe.jsxDEV(fe,{index:2,title:u("costs.where-it-went"),description:u("costs.estimate-by-component"),stale:i.stale,children:Oe.jsxDEV(_e,{query:i,skeleton:Oe.jsxDEV(qt,{height:280},void 0,!1,void 0,this),isEmpty:y,empty:b,children:()=>m&&Oe.jsxDEV(UN,{summary:m.summary},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Oe.jsxDEV(fe,{index:3,title:u("costs.by-model"),description:u("costs.by-model-description"),stale:i.stale,flush:!0,children:Oe.jsxDEV(_e,{query:i,skeleton:Oe.jsxDEV(pa,{rows:8},void 0,!1,void 0,this),isEmpty:y,empty:b,children:()=>m&&Oe.jsxDEV(Ft,{rows:m.summary.models,rowKey:(L)=>L.key,columns:S,initialSort:{key:"cost",dir:"desc"},limit:20},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function zN(r,l){let i=r.costSeries,d=f2(i),f=ug(d.models.map((S)=>({model:S.model,provider:S.provider,totalRequests:S.requests}))),g=new Map(d.models.map((S)=>[S.key,S])),v=oo(l,i.map((S)=>S.timestamp),BN),h=Xn(i,{buckets:v,key:(S)=>ja(S.model,S.provider),label:(S)=>g.get(S)?.model??S,value:(S)=>S.cost,limit:ON,colors:f}).map((S)=>({...S,values:S.values.map((y)=>y||null)})),m=new Set;for(let S of h){if(S.key==="__other__")continue;if(m.has(S.color))S.color=za.find((y)=>!m.has(y))??S.color;m.add(S.color)}return{summary:d,swatches:new Map(h.filter((S)=>S.key!=="__other__").map((S)=>[S.key,S.color])),buckets:v,dailyTotals:ha(i,v,(S)=>S.cost),unpricedPerDay:ha(i,v,(S)=>S.unpricedRequests),modelSeries:h,componentSeries:Xf().map((S)=>({key:S.key,label:S.label,color:S.color,values:ha(i,v,(y)=>y[S.key]).map((y)=>y||null)})),maxModelCost:d.models[0]?.cost??0}}function PN({view:r,stale:l}){let{summary:i}=r,d=i.requests-i.unpricedRequests,f=i.topModel;return Oe.jsxDEV("div",{"data-stale":l,children:Oe.jsxDEV(wa,{min:180,children:[Oe.jsxDEV(ie,{label:u("costs.api-equivalent-estimate"),title:u("costs.api-estimate-title"),value:oa(i.totalCost,i.unpricedRequests),hint:u("costs.requests-n",{count:A(i.requests)}),spark:r.dailyTotals,sparkColor:"var(--chart-secondary)"},void 0,!1,void 0,this),Oe.jsxDEV(ie,{label:u("costs.average-per-day"),title:u("costs.average-per-day-title"),value:oa(i.avgDailyCost,i.unpricedRequests),hint:u(i.activeDays===1?"costs.active-days-one":"costs.active-days-n",{count:A(i.activeDays)})},void 0,!1,void 0,this),Oe.jsxDEV(ie,{label:u("costs.top-model"),title:f?`${f.model} (${f.provider})`:void 0,value:f?f.model:"–",hint:f?u("costs.top-model-hint",{cost:zt(f.cost),share:Ge(f.share)}):u("costs.nothing-priced-yet")},void 0,!1,void 0,this),Oe.jsxDEV(ie,{label:u("costs.per-priced-request"),title:u("costs.per-priced-request-title"),value:d>0?x2(i.totalCost/d):"–",hint:u("costs.priced-n",{count:A(d)})},void 0,!1,void 0,this),Oe.jsxDEV(ie,{label:u("costs.unpriced-requests"),title:u("costs.unpriced-title"),value:A(i.unpricedRequests),hint:i.unpricedRequests>0?u("costs.unpriced-hint"):u("costs.all-priced")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function UN({summary:r}){return Oe.jsxDEV("div",{className:"stack",style:{gap:14},children:[Oe.jsxDEV($n,{height:10,segments:Xf().map((l)=>({key:l.key,label:l.label,value:r[l.key],color:l.color}))},void 0,!1,void 0,this),Oe.jsxDEV("div",{className:"costs-components",children:[Xf().map((l)=>Oe.jsxDEV("div",{className:"costs-component-row",children:[Oe.jsxDEV("span",{className:"row",children:[Oe.jsxDEV(an,{color:l.color},void 0,!1,void 0,this),l.label]},void 0,!0,void 0,this),Oe.jsxDEV("span",{className:"num",children:zt(r[l.key])},void 0,!1,void 0,this),Oe.jsxDEV("span",{className:"num dim costs-component-share",children:r.totalCost>0?Ge(r[l.key]/r.totalCost):"–"},void 0,!1,void 0,this)]},l.key,!0,void 0,this)),Oe.jsxDEV("div",{className:"costs-component-row costs-component-total",children:[Oe.jsxDEV("span",{children:u("common.total")},void 0,!1,void 0,this),Oe.jsxDEV("span",{className:"num",children:oa(r.totalCost,r.unpricedRequests)},void 0,!1,void 0,this),Oe.jsxDEV("span",{className:"costs-component-share"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),r.unpricedRequests>0&&Oe.jsxDEV("p",{className:"micro dim",children:u(r.unpricedRequests===1?"costs.unpriced-note-one":"costs.unpriced-note-n",{count:A(r.unpricedRequests)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function _N(r){let l=Xf().map((i)=>({key:i.key,header:i.label,align:"right",sort:(d)=>d[i.key],render:(d)=>Oe.jsxDEV("span",{className:"num",children:zt(d[i.key])},void 0,!1,void 0,this)}));return[{key:"model",header:u("common.model"),sort:(i)=>i.model,render:(i)=>Oe.jsxDEV(co,{lead:Oe.jsxDEV(an,{color:r.swatches.get(i.key)??fo},void 0,!1,void 0,this),primary:Oe.jsxDEV("span",{className:"mono",children:i.model},void 0,!1,void 0,this),secondary:i.provider},void 0,!1,void 0,this)},{key:"requests",header:u("common.requests"),align:"right",sort:(i)=>i.requests,render:(i)=>Oe.jsxDEV("span",{className:"num",children:A(i.requests)},void 0,!1,void 0,this)},{key:"cost",header:u("costs.estimate"),title:u("costs.estimate-title"),align:"right",sort:(i)=>i.cost,render:(i)=>Oe.jsxDEV(Ma,{value:i.cost,max:r.maxModelCost,display:oa(i.cost,i.unpricedRequests),color:r.swatches.get(i.key)??fo},void 0,!1,void 0,this)},{key:"share",header:u("common.share"),align:"right",sort:(i)=>i.share,render:(i)=>Oe.jsxDEV("span",{className:"num muted",children:i.cost>0?Ge(i.share):"–"},void 0,!1,void 0,this)},{key:"split",header:u("costs.split"),title:"Input · output · cache read · cache write",width:150,render:(i)=>i.cost>0?Oe.jsxDEV($n,{segments:Xf().map((d)=>({key:d.key,label:d.label,value:i[d.key],color:d.color}))},void 0,!1,void 0,this):Oe.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this)},...l,{key:"perRequest",header:u("costs.per-request"),title:"Estimate ÷ priced requests",align:"right",sort:(i)=>i.requests>i.unpricedRequests?i.cost/(i.requests-i.unpricedRequests):-1,render:(i)=>Oe.jsxDEV("span",{className:"num",children:i.requests>i.unpricedRequests?x2(i.cost/(i.requests-i.unpricedRequests)):"–"},void 0,!1,void 0,this)},{key:"unpriced",header:u("costs.unpriced"),title:"Requests with no public-equivalent price",align:"right",sort:(i)=>i.unpricedRequests,render:(i)=>i.unpricedRequests>0?Oe.jsxDEV("span",{className:"num tone-warn",children:A(i.unpricedRequests)},void 0,!1,void 0,this):Oe.jsxDEV("span",{className:"num dim",children:"–"},void 0,!1,void 0,this)}]}function x2(r){return r>0&&r<0.0001?"<$0.0001":zt(r)}function HN(r){let l=0;for(let i of r)l+=i??0;return l}var Ms=_(Ke(),1);var Le=_(te(),1),Eb=[50,200,1000];function b2({active:r,range:l,onRequestClick:i}){let[d,f]=Ms.useState(0),g=Eb[d],v=Pt(["errors",l,g],({signal:G})=>nI(l,g,G),{enabled:r}),[h,m]=Ms.useState(null),[S,y]=Ms.useState(null),[b,L]=Ms.useState(""),T=aa(l),C=Ms.useMemo(()=>{let G=(v.data??[]).map((Te)=>({row:Te,signature:Db(Te.errorMessage)})),V=y2(v.data??[]),Re=new Map;for(let{row:Te}of G){let oe=ja(Te.model,Te.provider),Se=Re.get(oe);if(Se)Se.count++;else Re.set(oe,{model:Te.model,provider:Te.provider,count:1})}let pe=[...Re.entries()].map(([Te,oe])=>({key:Te,...oe})).sort((Te,oe)=>oe.count-Te.count||Te.model.localeCompare(oe.model)),Ne=G.reduce((Te,{row:oe})=>!Te||oe.timestamp>Te.timestamp?oe:Te,null);return{rows:G,groups:V,models:pe,newest:Ne}},[v.data]),I=C.groups.some((G)=>G.signature===h)?h:null,R=C.models.some((G)=>G.key===S)?S:null,O=Ms.useMemo(()=>{let G=b.trim().toLowerCase();return C.rows.filter((V)=>(I===null||V.signature===I)&&(R===null||ja(V.row.model,V.row.provider)===R)&&(G===""||V.row.model.toLowerCase().includes(G)||V.row.provider.toLowerCase().includes(G)||V.row.folder.toLowerCase().includes(G)||(V.row.errorMessage??"").toLowerCase().includes(G))).map((V)=>V.row)},[C.rows,I,R,b]),z=v.data?.length??0,Y=!v.stale&&z<g,W=d+1<Eb.length?Eb[d+1]:null,ue=v.data!==null&&!Y?Le.jsxDEV(Le.Fragment,{children:[Le.jsxDEV("span",{children:u("errors.footer",{count:A(z),window:u(T.windowKey)})},void 0,!1,void 0,this),W!==null&&Le.jsxDEV("button",{type:"button",className:"btn","data-size":"sm",disabled:v.refreshing,onClick:()=>f(d+1),children:v.refreshing&&v.stale?u("errors.loading"):u("errors.load-latest",{count:A(W)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this):void 0,Z=C.groups[0]?.count??0,ce=Ms.useMemo(()=>FN(Z),[Z]),ee=C.models.find((G)=>G.key===R);return Le.jsxDEV("div",{className:"page",children:[Le.jsxDEV(la,{title:u("errors.title"),description:u("errors.description",{window:u(T.windowKey)})},void 0,!1,void 0,this),Le.jsxDEV(_e,{query:v,skeleton:Le.jsxDEV(Ga,{height:96,style:{borderRadius:12}},void 0,!1,void 0,this),children:()=>Le.jsxDEV("div",{"data-stale":v.stale,children:Le.jsxDEV(wa,{min:170,children:[Le.jsxDEV(ie,{label:u("errors.failures"),value:A(z),hint:Y?u("errors.hint-in-window",{window:u(T.windowKey)}):u("errors.hint-latest-loaded",{count:A(z)})},void 0,!1,void 0,this),Le.jsxDEV(ie,{label:u("errors.signatures"),title:u("errors.signatures-hint"),value:A(C.groups.length),hint:C.groups[0]?u("errors.signatures-top",{count:A(C.groups[0].count)}):void 0},void 0,!1,void 0,this),Le.jsxDEV(ie,{label:u("errors.affected-models"),value:A(C.models.length),hint:C.models[0]?.model},void 0,!1,void 0,this),Le.jsxDEV(ie,{label:u("errors.last-failure"),value:C.newest?ma(C.newest.timestamp):"–",hint:C.newest?ro(C.newest.timestamp):u("errors.none-in-window",{window:u(T.windowKey)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),Le.jsxDEV("div",{className:"grid grid-main-side",children:[Le.jsxDEV(fe,{index:1,title:u("errors.error-signatures"),description:u("errors.signatures-card-description"),flush:!0,stale:v.stale,children:Le.jsxDEV(_e,{query:v,skeleton:Le.jsxDEV(pa,{rows:8},void 0,!1,void 0,this),isEmpty:(G)=>G.length===0,empty:Le.jsxDEV(Je,{title:u("errors.empty-no-failures",{window:u(T.windowKey)}),hint:u("errors.empty-all-succeeded")},void 0,!1,void 0,this),children:()=>Le.jsxDEV(Ft,{rows:C.groups,rowKey:(G)=>G.signature,columns:ce,onRowClick:(G)=>m(I===G.signature?null:G.signature),selectedKey:I,expanded:(G)=>G.signature===I?Le.jsxDEV(GN,{group:G,onRequestClick:i},void 0,!1,void 0,this):null,limit:12},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),Le.jsxDEV(fe,{index:2,title:u("errors.by-model"),description:u("errors.by-model-description"),stale:v.stale,children:Le.jsxDEV(_e,{query:v,skeleton:Le.jsxDEV(Ga,{height:180},void 0,!1,void 0,this),isEmpty:(G)=>G.length===0,empty:Le.jsxDEV(Je,{title:u("errors.empty-no-affected-models")},void 0,!1,void 0,this),children:()=>Le.jsxDEV(Ts,{items:C.models.slice(0,12).map((G)=>({key:G.key,label:Le.jsxDEV("span",{className:"row",style:{gap:6,minWidth:0},children:[Le.jsxDEV("span",{className:"mono truncate",children:G.model},void 0,!1,void 0,this),Le.jsxDEV("span",{className:"dim truncate",children:G.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),value:G.count,color:G.key===R?"var(--bad)":"color-mix(in srgb, var(--bad) 45%, transparent)"})),onSelect:(G)=>y(R===G?null:G)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Le.jsxDEV(fe,{index:3,title:u("errors.failures"),description:v.data===null?u("errors.loading-failures"):u("errors.filtered-of-total",{shown:A(O.length),total:A(z)}),actions:Le.jsxDEV(Le.Fragment,{children:[I!==null&&Le.jsxDEV("button",{type:"button",className:"btn errors-filter","data-size":"sm",onClick:()=>m(null),title:I,children:[Le.jsxDEV("span",{className:"mono truncate",children:I},void 0,!1,void 0,this),Le.jsxDEV(Ao,{size:12},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ee&&Le.jsxDEV("button",{type:"button",className:"btn errors-filter","data-size":"sm",onClick:()=>y(null),children:[Le.jsxDEV("span",{className:"mono truncate",children:ee.model},void 0,!1,void 0,this),Le.jsxDEV(Ao,{size:12},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Le.jsxDEV(Fn,{value:b,onChange:L,placeholder:u("errors.search-placeholder")},void 0,!1,void 0,this)]},void 0,!0,void 0,this),flush:!0,stale:v.stale,footer:ue,children:Le.jsxDEV(_e,{query:v,skeleton:Le.jsxDEV(pa,{rows:10},void 0,!1,void 0,this),isEmpty:(G)=>G.length===0,empty:Le.jsxDEV(Je,{title:u("errors.empty-no-failures",{window:u(T.windowKey)})},void 0,!1,void 0,this),children:()=>Le.jsxDEV(Ft,{rows:O,rowKey:(G)=>G.id??`${G.sessionFile}:${G.entryId}`,onRowClick:(G)=>G.id!==void 0&&i(G.id),columns:VN(),initialSort:{key:"time",dir:"desc"},limit:50,dense:!0,empty:Le.jsxDEV(Je,{title:u("errors.no-match"),hint:u("errors.no-match-hint")},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function FN(r){return[{key:"signature",header:u("errors.signature"),wrap:!0,sort:(l)=>l.signature,render:(l)=>Le.jsxDEV("span",{className:"errors-signature",title:l.latest.errorMessage??void 0,children:l.signature},void 0,!1,void 0,this)},{key:"models",header:u("common.models"),sort:(l)=>l.models.length,render:(l)=>Le.jsxDEV(co,{primary:Le.jsxDEV("span",{className:"mono",children:l.models[0]?.model},void 0,!1,void 0,this),secondary:l.models.length>1?u("errors.more-models",{count:A(l.models.length-1)}):l.models[0]?.provider},void 0,!1,void 0,this)},{key:"last",header:u("errors.last-seen"),sort:(l)=>l.lastSeen,render:(l)=>Le.jsxDEV("span",{className:"muted",title:ro(l.lastSeen),children:ma(l.lastSeen)},void 0,!1,void 0,this)},{key:"count",header:u("errors.failures"),align:"right",width:120,sort:(l)=>l.count,render:(l)=>Le.jsxDEV(Ma,{value:l.count,max:r,display:A(l.count),color:"var(--bad)"},void 0,!1,void 0,this)}]}function GN({group:r,onRequestClick:l}){let i=r.latest.id;return Le.jsxDEV("div",{className:"errors-detail",children:[Le.jsxDEV("pre",{className:"code-block errors-detail-message",children:r.latest.errorMessage??u("errors.unknown-error")},void 0,!1,void 0,this),Le.jsxDEV("div",{className:"errors-detail-meta",children:[Le.jsxDEV("span",{className:"muted",children:u("errors.group-meta",{count:A(r.count),first:ro(r.firstSeen),last:ro(r.lastSeen)})},void 0,!1,void 0,this),i!==void 0&&Le.jsxDEV("button",{type:"button",className:"btn","data-size":"sm",onClick:()=>l(i),children:[u("errors.open-latest")," ",Le.jsxDEV(lf,{size:13},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Le.jsxDEV("div",{className:"errors-detail-models",children:r.models.map((d)=>Le.jsxDEV("span",{className:"badge","data-mono":"true",children:[d.model," ",Le.jsxDEV("span",{className:"dim",children:d.provider},void 0,!1,void 0,this)," ",Le.jsxDEV("span",{className:"num",children:se(d.count)},void 0,!1,void 0,this)]},ja(d.model,d.provider),!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function VN(){return[{key:"time",header:u("errors.when"),width:120,sort:(r)=>r.timestamp,render:(r)=>Le.jsxDEV("span",{className:"muted",title:ro(r.timestamp),children:ma(r.timestamp)},void 0,!1,void 0,this)},{key:"model",header:u("common.model"),sort:(r)=>r.model,render:(r)=>Le.jsxDEV(co,{primary:Le.jsxDEV("span",{className:"mono",children:r.model},void 0,!1,void 0,this),secondary:r.provider},void 0,!1,void 0,this)},{key:"error",header:u("common.error"),sort:(r)=>r.errorMessage??"",render:(r)=>Le.jsxDEV("span",{className:"errors-message",title:r.errorMessage??void 0,children:r.errorMessage??u("errors.unknown-error")},void 0,!1,void 0,this)},{key:"project",header:u("common.project"),sort:(r)=>r.folder,render:(r)=>Le.jsxDEV("span",{className:"mono muted",title:r.folder,children:Pr(r.folder)},void 0,!1,void 0,this)},{key:"tokens",header:u("common.tokens"),align:"right",sort:(r)=>r.usage.totalTokens,render:(r)=>Le.jsxDEV("span",{className:"num",children:A(r.usage.totalTokens)},void 0,!1,void 0,this)},{key:"cost",header:u("common.cost"),title:u("errors.cost-hint"),align:"right",sort:(r)=>r.usage.cost.total,render:(r)=>Le.jsxDEV("span",{className:"num",children:ql(r,4)},void 0,!1,void 0,this)}]}var At=_(Ke(),1);var P=_(te(),1),jN=1000,fg=50,qb=0.5,Yf="*";function k2({active:r,range:l}){let[i,d]=At.useState(!1),f=Pt(["frustration",l],({signal:S})=>dI(l,S),{enabled:r,pollMs:i?jN:void 0}),g=aa(l),v=f.data?.job.state;At.useEffect(()=>{if(v!==void 0)d(v==="running")},[v]);let{refetch:h}=f,m=At.useCallback(()=>{d(!0),h()},[h]);return P.jsxDEV("div",{className:"page",children:[P.jsxDEV(la,{title:u("frustration.title"),description:u("frustration.description",{window:u(g.windowKey)})},void 0,!1,void 0,this),P.jsxDEV(_e,{query:f,skeleton:P.jsxDEV(qt,{height:96},void 0,!1,void 0,this),children:(S)=>P.jsxDEV("div",{"data-stale":f.stale,children:P.jsxDEV($N,{overall:S.overall},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),P.jsxDEV(_e,{query:f,skeleton:P.jsxDEV(qt,{height:120},void 0,!1,void 0,this),children:(S)=>P.jsxDEV(XN,{active:r,range:l,judgeAvailable:S.judgeAvailable,job:S.job,onRunStarted:m,onRunChanged:h},void 0,!1,void 0,this)},void 0,!1,void 0,this),P.jsxDEV(_e,{query:f,skeleton:P.jsxDEV(fe,{index:2,title:u("frustration.by-model"),children:[P.jsxDEV(qt,{height:340},void 0,!1,void 0,this),P.jsxDEV(pa,{rows:6},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:(S)=>P.jsxDEV(aq,{models:S.byModel,stale:f.stale},void 0,!1,void 0,this)},void 0,!1,void 0,this),P.jsxDEV(_e,{query:f,skeleton:P.jsxDEV(qt,{height:96},void 0,!1,void 0,this),children:(S)=>P.jsxDEV("div",{className:"frustration-model-summary","data-stale":f.stale,children:P.jsxDEV(sq,{overall:S.modelSide.overall,window:u(g.windowKey)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),P.jsxDEV(_e,{query:f,skeleton:P.jsxDEV(fe,{index:4,title:u("frustration.model-by-model"),children:[P.jsxDEV(qt,{height:300},void 0,!1,void 0,this),P.jsxDEV(pa,{rows:5},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:(S)=>P.jsxDEV(lq,{models:S.modelSide.byModel,series:S.modelSide.series,range:l,stale:f.stale},void 0,!1,void 0,this)},void 0,!1,void 0,this),P.jsxDEV(_e,{query:f,skeleton:P.jsxDEV(fe,{index:7,title:u("frustration.model-sessions"),children:P.jsxDEV(pa,{rows:5},void 0,!1,void 0,this)},void 0,!1,void 0,this),children:(S)=>P.jsxDEV(uq,{sessions:S.modelSide.bySession,stale:f.stale},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Da(r,l){return l>0?Ge(r/l):"–"}function Nb(r){return r instanceof Error?r.message:String(r)}function L2(r){let l=Math.max(0,Math.floor(r/1000)),i=Math.floor(l/60),d=l%60;return i>0?`${i}m ${String(d).padStart(2,"0")}s`:`${d}s`}function $N({overall:r}){let l=r.messages-r.judged,i=r.unscored>0?u("frustration.coverage-unscored",{count:A(r.unscored)}):"";return P.jsxDEV(P.Fragment,{children:[P.jsxDEV(wa,{min:170,children:[P.jsxDEV(ie,{label:u("frustration.user-messages"),title:u("frustration.user-messages-title"),value:A(r.messages)},void 0,!1,void 0,this),P.jsxDEV(ie,{label:u("frustration.judge-coverage"),title:u("frustration.judge-coverage-title"),value:Da(r.judged,r.messages),hint:`${u("frustration.coverage-hint",{judged:A(r.judged),regex:A(l)})}${i}`},void 0,!1,void 0,this),P.jsxDEV(ie,{label:u("frustration.annoyed"),title:u("frustration.annoyed-title"),value:Da(r.annoyed,r.messages),hint:u("frustration.messages-n",{count:A(r.annoyed)})},void 0,!1,void 0,this),P.jsxDEV(ie,{label:u("frustration.at-assistant"),title:u("frustration.at-assistant-title"),value:Da(r.atAssistant,r.messages),hint:u("frustration.messages-n",{count:A(r.atAssistant)})},void 0,!1,void 0,this),P.jsxDEV(ie,{label:u("frustration.angry"),title:u("frustration.angry-title"),value:Da(r.angry,r.messages),hint:u("frustration.messages-n",{count:A(r.angry)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this),r.unscored>0&&P.jsxDEV("p",{className:"micro dim",children:u("frustration.unscored-line",{count:A(r.unscored)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var S2="Judging needs the zeta host process: open the dashboard with zetacode stats and configure a judge model. Until then messages are classified by regex signals.";function XN({active:r,range:l,judgeAvailable:i,job:d,onRunStarted:f,onRunChanged:g}){let[v,h]=At.useState(!1),[m,S]=At.useState({status:"loading"}),[y,b]=At.useState(!1),[L,T]=At.useState(null),[C,I]=At.useState(!1),[R,O]=At.useState(null),z=At.useRef(null),Y=d.state==="running",W=At.useCallback(()=>{z.current?.abort(),z.current=null,h(!1)},[]);At.useEffect(()=>{if(!r)W()},[r,W]),At.useEffect(()=>()=>z.current?.abort(),[]);let ue=()=>{z.current?.abort();let V=new AbortController;z.current=V;let Re=l;S({status:"loading"}),T(null),O(null),h(!0),cI(Re,V.signal).then((pe)=>{if(!V.signal.aborted)S({status:"ready",estimate:pe,range:Re})},(pe)=>{if(!V.signal.aborted)S({status:"error",message:Nb(pe)})})},Z=async()=>{if(m.status!=="ready")return;b(!0),T(null);try{await fI(m.range),W(),f()}catch(V){T(Nb(V))}finally{b(!1)}},ce=async()=>{I(!0),O(null);try{await pI(),g()}catch(V){O(Nb(V))}finally{I(!1)}},ee=m.status==="ready"?m.estimate:null,G=m.status==="loading"?{label:"Proceed",onClick:Z,disabled:!0}:ee?.available?{label:y?"Starting…":"Proceed",onClick:Z,disabled:y||ee.messages===0}:void 0;return P.jsxDEV(fe,{index:1,title:P.jsxDEV(P.Fragment,{children:[u("frustration.judge-panel")," ",P.jsxDEV(YN,{job:d,judgeAvailable:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this),description:u("frustration.judge-description"),actions:P.jsxDEV("button",{type:"button",className:"btn","data-variant":"accent","data-size":"sm",onClick:ue,disabled:!i||Y,title:!i?S2:Y?u("frustration.judge-running"):u("frustration.quote-title"),children:[P.jsxDEV(Un,{size:13},void 0,!1,void 0,this)," ",u("frustration.classify")]},void 0,!0,void 0,this),children:[P.jsxDEV("div",{className:"stack frustration-judge",children:[Y?P.jsxDEV(QN,{job:d,cancelling:C,onCancel:ce},void 0,!1,void 0,this):P.jsxDEV(WN,{job:d},void 0,!1,void 0,this),!i&&P.jsxDEV("p",{className:"micro dim",children:S2},void 0,!1,void 0,this),R&&P.jsxDEV("p",{className:"micro tone-bad",role:"alert",children:R},void 0,!1,void 0,this)]},void 0,!0,void 0,this),P.jsxDEV(NI,{open:v,title:u("frustration.classify"),onClose:W,primaryAction:G,children:[P.jsxDEV(KN,{estimate:m},void 0,!1,void 0,this),L&&P.jsxDEV("p",{className:"micro tone-bad",role:"alert",children:L},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function YN({job:r,judgeAvailable:l}){switch(r.state){case"running":return P.jsxDEV(ct,{tone:"ok",children:[P.jsxDEV(Hn,{tone:"live",pulse:!0},void 0,!1,void 0,this)," ",u("frustration.running")]},void 0,!0,void 0,this);case"done":return P.jsxDEV(ct,{tone:"ok",children:u("frustration.last-run-done")},void 0,!1,void 0,this);case"cancelled":return P.jsxDEV(ct,{tone:"warn",children:u("frustration.last-run-cancelled")},void 0,!1,void 0,this);case"failed":return P.jsxDEV(ct,{tone:"bad",children:u("frustration.last-run-failed")},void 0,!1,void 0,this);case"idle":return P.jsxDEV(ct,{children:l?u("frustration.not-run-yet"):u("frustration.regex-only")},void 0,!1,void 0,this)}}function KN({estimate:r}){if(r.status==="loading")return P.jsxDEV("p",{className:"muted",children:u("frustration.estimating")},void 0,!1,void 0,this);if(r.status==="error")return P.jsxDEV("p",{className:"tone-bad",children:r.message},void 0,!1,void 0,this);let l=r.estimate;if(!l.available)return P.jsxDEV("p",{children:l.reason},void 0,!1,void 0,this);if(l.messages===0)return P.jsxDEV("p",{children:u("frustration.all-judged")},void 0,!1,void 0,this);return P.jsxDEV(P.Fragment,{children:[P.jsxDEV("div",{className:"frustration-quote",children:[P.jsxDEV("span",{className:"dim micro",children:u("frustration.estimated-cost")},void 0,!1,void 0,this),P.jsxDEV("span",{className:"num frustration-quote-value",children:["≈ ",zt(l.cost)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),P.jsxDEV(ko,{items:[{key:"messages",label:u("frustration.unjudged-messages"),value:A(l.messages)},{key:"chars",label:u("frustration.prose-chars"),value:A(l.chars)},{key:"tokens",label:u("frustration.input-tokens"),value:A(l.inputTokens)},{key:"judge",label:u("frustration.judge-model"),value:l.judge}]},void 0,!1,void 0,this),P.jsxDEV("p",{className:"micro dim",children:u("frustration.estimate-note")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function QN({job:r,cancelling:l,onCancel:i}){let d=r.done+r.failed,f=r.total>0?Math.min(1,d/r.total):0;return P.jsxDEV("div",{className:"stack frustration-progress",children:[P.jsxDEV("div",{className:"row frustration-progress-head",children:[P.jsxDEV("span",{className:"num",children:[A(r.done),"/",A(r.total)," judged"]},void 0,!0,void 0,this),P.jsxDEV("span",{className:"num dim",children:Ge(f)},void 0,!1,void 0,this),P.jsxDEV("span",{className:"frustration-spacer"},void 0,!1,void 0,this),P.jsxDEV("button",{type:"button",className:"btn","data-variant":"danger","data-size":"sm",onClick:i,disabled:l,children:l?u("frustration.cancelling"):u("frustration.cancel-run")},void 0,!1,void 0,this)]},void 0,!0,void 0,this),P.jsxDEV("div",{className:"meter frustration-progress-track",role:"progressbar","aria-valuemin":0,"aria-valuemax":r.total,"aria-valuenow":d,children:P.jsxDEV("div",{className:"meter-fill frustration-progress-fill",style:{width:`${f*100}%`}},void 0,!1,void 0,this)},void 0,!1,void 0,this),P.jsxDEV("div",{className:"row micro muted frustration-progress-meta",children:[P.jsxDEV("span",{className:r.failed>0?"tone-bad":void 0,children:u("frustration.failed-n",{count:A(r.failed)})},void 0,!1,void 0,this),P.jsxDEV("span",{children:[u("frustration.cost-so-far")," ",P.jsxDEV("span",{className:"num",children:zt(r.cost)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),r.judge&&P.jsxDEV("span",{className:"mono",children:r.judge},void 0,!1,void 0,this),r.startedAt!==null&&P.jsxDEV("span",{children:u("frustration.elapsed",{time:L2(Date.now()-r.startedAt)})},void 0,!1,void 0,this),r.startedAt!==null&&r.done>0&&P.jsxDEV("span",{className:"num",children:[(r.done/Math.max(1,(Date.now()-r.startedAt)/1000)).toFixed(0),"/s"]},void 0,!0,void 0,this),r.concurrency>0&&P.jsxDEV("span",{className:"num",children:u("frustration.in-flight",{count:A(r.concurrency)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function WN({job:r}){let l=u("frustration.messages-progress",{done:A(r.done),total:A(r.total)}),i=r.failed>0?u("frustration.failed-suffix",{count:A(r.failed)}):"",d=r.judge?u("frustration.judge-with",{judge:r.judge}):"",f=r.startedAt!==null&&r.finishedAt!==null?u("frustration.in-time",{time:L2(r.finishedAt-r.startedAt)}):"";switch(r.state){case"idle":return P.jsxDEV("p",{className:"muted",children:u("frustration.no-run-yet")},void 0,!1,void 0,this);case"running":return null;case"done":return P.jsxDEV("p",{className:"muted",children:u("frustration.run-done-line",{progress:l,failed:i,judge:d,elapsed:f,cost:zt(r.cost)})},void 0,!1,void 0,this);case"cancelled":return P.jsxDEV("p",{className:"muted",children:u("frustration.run-cancelled-line",{progress:l,failed:i,cost:zt(r.cost)})},void 0,!1,void 0,this);case"failed":return P.jsxDEV("p",{className:"muted",children:u("frustration.run-failed-line",{progress:l,failed:i,error:r.error??u("frustration.unknown-error"),cost:zt(r.cost)})},void 0,!1,void 0,this)}}function Hi(r){return`${r.modelClass}/${r.family??"unclassified"}`}function cd(r){return r.messages>0&&r.judged/r.messages<qb}function ZN(r){let l=2166136261;for(let i=0;i<r.length;i++)l^=r.charCodeAt(i),l=Math.imul(l,16777619);return l>>>0}function w2(r){let l=[...new Set(r.map(Hi))].sort(),i=new Set,d=new Map;for(let f of l){let g=ZN(f)%za.length;for(let v=0;v<za.length&&i.has(g);v++)g=(g+1)%za.length;i.add(g),d.set(f,za[g])}return d}function JN(r,l){if(l==="angry")return`color-mix(in srgb, ${r} 55%, black)`;if(l==="other")return`color-mix(in srgb, ${r} 32%, transparent)`;return r}var eq=[{key:"angry",label:"Angry at assistant"},{key:"assistant",label:"At assistant, not angry"},{key:"other",label:"Annoyed at other targets"}];function tq(r,l){if(l==="angry")return r.angry;if(l==="assistant")return r.atAssistant-r.angry;return r.annoyed-r.atAssistant}function Kf(r,l){return l>0?r/l*100:0}function aq({models:r,stale:l}){let[i,d]=At.useState(null),[f,g]=Ur(),[v,h]=At.useState(!1),[m,S]=At.useState(!1),y=At.useMemo(()=>w2(r),[r]),b=At.useMemo(()=>{let Z=new Map;for(let ce of r)Z.set(ce.modelClass,(Z.get(ce.modelClass)??0)+ce.messages);return Z},[r]),L=At.useMemo(()=>{let Z=null,ce=-1;for(let[ee,G]of b)if(G>ce)Z=ee,ce=G;return Z??Yf},[b]),T=i!==null&&(i===Yf||b.has(i))?i:L,C=At.useMemo(()=>[{value:Yf,label:"All",title:"Every model class"},...[...b].map(([Z,ce])=>({value:Z,label:Z,title:`${A(ce)} messages`}))],[b]),I=At.useMemo(()=>T===Yf?r:r.filter((Z)=>Z.modelClass===T),[r,T]),R=At.useMemo(()=>{let Z=new Map;for(let ce of I){let ee=Hi(ce),G=Z.get(ee);if(G){G.messages+=ce.messages;continue}let V=ce.family??"unclassified";Z.set(ee,{key:ee,label:T===Yf?`${ce.modelClass} · ${V}`:V,messages:ce.messages})}return[...Z.values()]},[I,T]),O=At.useMemo(()=>I.filter((Z)=>!f.has(Hi(Z))),[I,f]),z=O.filter((Z)=>Z.messages<fg).length,Y=O.filter(cd).length,W=At.useMemo(()=>O.filter((Z)=>(v||Z.messages>=fg)&&!(m&&cd(Z))),[O,v,m]);if(r.length===0)return P.jsxDEV(fe,{index:2,title:u("frustration.by-model"),stale:l,children:P.jsxDEV(Je,{title:u("frustration.no-messages"),hint:u("frustration.try-longer-range")},void 0,!1,void 0,this)},void 0,!1,void 0,this);let ue=W.some(cd);return P.jsxDEV(P.Fragment,{children:[P.jsxDEV(fe,{index:2,title:u("frustration.by-model"),description:u("frustration.by-model-description"),stale:l,children:P.jsxDEV("div",{className:"stack frustration-chart-body",children:[P.jsxDEV("div",{className:"frustration-classes",children:P.jsxDEV(Oa,{size:"sm","aria-label":u("frustration.model-class"),options:C,value:T,onChange:d},void 0,!1,void 0,this)},void 0,!1,void 0,this),P.jsxDEV("div",{className:"row frustration-filters",children:[P.jsxDEV(ia,{items:R.map((Z)=>({key:Z.key,label:Z.label,color:y.get(Z.key)??za[0],value:A(Z.messages)})),hidden:f,onToggle:g},void 0,!1,void 0,this),P.jsxDEV("span",{className:"frustration-spacer"},void 0,!1,void 0,this),P.jsxDEV("label",{className:"check",title:u("frustration.small-models-title",{count:fg}),children:[P.jsxDEV("input",{type:"checkbox",checked:v,onChange:(Z)=>h(Z.target.checked)},void 0,!1,void 0,this),u("frustration.include-small",{count:fg}),z>0?` (${z})`:""]},void 0,!0,void 0,this),P.jsxDEV("label",{className:"check",title:u("frustration.hide-regex-title",{share:qb*100}),children:[P.jsxDEV("input",{type:"checkbox",checked:m,onChange:(Z)=>S(Z.target.checked)},void 0,!1,void 0,this),"Hide mostly regex",Y>0?` (${Y})`:""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),P.jsxDEV(oq,{hasRegexRows:ue},void 0,!1,void 0,this),P.jsxDEV(rq,{rows:W,familyColors:y},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),P.jsxDEV(nq,{rows:W,familyColors:y,stale:l},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function oq({hasRegexRows:r}){return P.jsxDEV("div",{className:"legend frustration-key",children:[P.jsxDEV("span",{className:"legend-item",children:[P.jsxDEV("span",{className:"swatch frustration-key-swatch","data-variant":"angry"},void 0,!1,void 0,this),"Angry at assistant"]},void 0,!0,void 0,this),P.jsxDEV("span",{className:"legend-item",children:[P.jsxDEV("span",{className:"swatch frustration-key-swatch","data-variant":"assistant"},void 0,!1,void 0,this),"At assistant"]},void 0,!0,void 0,this),P.jsxDEV("span",{className:"legend-item",children:[P.jsxDEV("span",{className:"swatch frustration-key-swatch","data-variant":"other"},void 0,!1,void 0,this),"Annoyed at other targets"]},void 0,!0,void 0,this),P.jsxDEV("span",{className:"legend-item",children:[P.jsxDEV("span",{className:"frustration-key-line"},void 0,!1,void 0,this),u("frustration.legend-trend")]},void 0,!0,void 0,this),P.jsxDEV("span",{className:"legend-item frustration-key-wide",title:u("frustration.hatch-title",{share:qb*100}),children:[P.jsxDEV("span",{className:"swatch frustration-key-swatch","data-variant":"hatch"},void 0,!1,void 0,this),r?u("frustration.legend-hatched-run"):u("frustration.legend-hatched")]},void 0,!0,void 0,this),P.jsxDEV("span",{className:"legend-item dim",children:u("frustration.legend-hue")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function rq({rows:r,familyColors:l}){let i=At.useMemo(()=>{let d=new Map;r.forEach((g,v)=>{let h=Hi(g),m=cd(g),S=`${h}|${m?"regex":"judged"}`,y=d.get(S);if(y)y.slots.push(v);else d.set(S,{family:h,regex:m,slots:[v]})});let f=[];for(let g of eq)for(let[v,h]of d){let m=r.map(()=>null);for(let S of h.slots)m[S]=Kf(tq(r[S],g.key),r[S].messages);f.push({key:`${g.key}|${v}`,label:g.label,color:JN(l.get(h.family)??za[0],g.key),values:m,pattern:h.regex?"hatch":void 0})}return f.push({key:"trend",label:"At assistant (total)",color:"var(--ink-1)",values:r.map((g)=>Kf(g.atAssistant,g.messages)),kind:"line",tooltip:!1}),f},[r,l]);if(r.length===0)return P.jsxDEV("div",{className:"frustration-chart-empty",children:P.jsxDEV(Je,{title:u("frustration.no-model-match")},void 0,!1,void 0,this)},void 0,!1,void 0,this);return P.jsxDEV(vr,{slots:r.length,tickLabel:(d)=>r[d].label,series:i,height:340,format:(d)=>`${d}%`,formatTooltip:(d)=>`${d.toFixed(1)}%`,showTotal:!1,emptyLabel:"No frustrated messages for these models",tooltipExtra:(d)=>{let f=r[d];return P.jsxDEV("div",{className:"frustration-tooltip-extra",children:[P.jsxDEV("div",{className:"chart-tooltip-row chart-tooltip-total",children:[P.jsxDEV("span",{className:"chart-tooltip-label",children:u("frustration.legend-annoyed-any")},void 0,!1,void 0,this),P.jsxDEV("span",{className:"chart-tooltip-value",children:Da(f.annoyed,f.messages)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),P.jsxDEV("div",{className:"micro dim",children:[A(f.messages)," messages · judged ",A(f.judged)," (",Da(f.judged,f.messages),")",cd(f)?u("frustration.row-mostly-regex"):""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}},void 0,!1,void 0,this)}function nq({rows:r,familyColors:l,stale:i}){let d=At.useMemo(()=>[{key:"model",header:u("common.model"),sort:(f)=>f.label,render:(f)=>P.jsxDEV("span",{className:"row",title:f.key,children:[P.jsxDEV("span",{className:"swatch",style:{background:l.get(Hi(f))??za[0]}},void 0,!1,void 0,this),P.jsxDEV("span",{className:"cell-primary",children:f.label},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"ids",header:u("frustration.column-model-ids"),wrap:!0,render:(f)=>P.jsxDEV("span",{className:"mono micro dim",children:f.models.join(", ")},void 0,!1,void 0,this)},{key:"messages",header:u("frustration.column-messages"),align:"right",sort:(f)=>f.messages,render:(f)=>P.jsxDEV("span",{className:"num",children:A(f.messages)},void 0,!1,void 0,this)},{key:"judged",header:u("frustration.column-judged"),align:"right",sort:(f)=>f.messages>0?f.judged/f.messages:0,render:(f)=>cd(f)?P.jsxDEV("span",{className:"row frustration-judged",title:u("frustration.mostly-regex"),children:[P.jsxDEV(ct,{tone:"warn",children:u("frustration.regex-badge")},void 0,!1,void 0,this),P.jsxDEV("span",{className:"num dim",children:Da(f.judged,f.messages)},void 0,!1,void 0,this)]},void 0,!0,void 0,this):P.jsxDEV("span",{className:"num",children:Da(f.judged,f.messages)},void 0,!1,void 0,this)},{key:"annoyed",header:u("frustration.annoyed"),align:"right",sort:(f)=>Kf(f.annoyed,f.messages),render:(f)=>P.jsxDEV("span",{className:"num",title:u("frustration.messages-n",{count:A(f.annoyed)}),children:Da(f.annoyed,f.messages)},void 0,!1,void 0,this)},{key:"atAssistant",header:u("frustration.at-assistant"),align:"right",sort:(f)=>Kf(f.atAssistant,f.messages),render:(f)=>P.jsxDEV("span",{className:"num",title:u("frustration.messages-n",{count:A(f.atAssistant)}),children:Da(f.atAssistant,f.messages)},void 0,!1,void 0,this)},{key:"angry",header:u("frustration.angry"),align:"right",sort:(f)=>Kf(f.angry,f.messages),render:(f)=>P.jsxDEV("span",{className:f.angry>0?"num tone-bad":"num",title:u("frustration.messages-n",{count:A(f.angry)}),children:Da(f.angry,f.messages)},void 0,!1,void 0,this)}],[l]);return P.jsxDEV(fe,{index:3,title:u("frustration.model-versions"),description:u("frustration.table-description"),flush:!0,stale:i,children:P.jsxDEV(Ft,{rows:r,rowKey:(f)=>f.key,columns:d,dense:!0,empty:P.jsxDEV(Je,{title:u("frustration.no-model-match")},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function sq({overall:r,window:l}){let i=r.messages>0?(r.collapse/r.messages).toFixed(2):"–";return P.jsxDEV(P.Fragment,{children:[P.jsxDEV("div",{className:"card-titles",children:[P.jsxDEV("h2",{className:"page-title",children:u("frustration.model-side-title")},void 0,!1,void 0,this),P.jsxDEV("p",{className:"page-description",children:u("frustration.model-side-description",{window:l})},void 0,!1,void 0,this)]},void 0,!0,void 0,this),P.jsxDEV("div",{className:"frustration-model-notes",children:[P.jsxDEV(wa,{min:170,children:[P.jsxDEV(ie,{label:u("frustration.model-turns"),title:u("frustration.model-turns-title"),value:A(r.messages)},void 0,!1,void 0,this),P.jsxDEV(ie,{label:u("frustration.model-breakdown"),title:u("frustration.model-breakdown-title"),value:Da(r.breakdown,r.messages),hint:u("frustration.turns-n",{count:A(r.breakdown)})},void 0,!1,void 0,this),P.jsxDEV(ie,{label:u("frustration.model-mean"),title:u("frustration.model-mean-title"),value:i,hint:u("frustration.model-hint-mean",{value:i})},void 0,!1,void 0,this),P.jsxDEV(ie,{label:u("frustration.model-self-blame"),title:u("frustration.model-self-blame-title"),value:Da(r.blamed,r.messages)},void 0,!1,void 0,this),P.jsxDEV(ie,{label:u("frustration.model-hedge"),title:u("frustration.model-hedge-title"),value:Da(r.hedged,r.messages)},void 0,!1,void 0,this),P.jsxDEV(ie,{label:u("frustration.model-spiral"),title:u("frustration.model-spiral-title"),value:Da(r.spiraled,r.messages)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),r.unscored>0&&P.jsxDEV("p",{className:"micro dim",children:u("frustration.model-unscored-line",{count:A(r.unscored)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function sn(r,l){return l>0?r/l*100:0}function lq({models:r,series:l,range:i,stale:d}){let f=aa(i),g=At.useMemo(()=>w2(r),[r]),v=At.useMemo(()=>oo(i,l.map((y)=>y.timestamp),f.bucketMs),[l,i,f.bucketMs]),h=At.useMemo(()=>new Map(l.map((y)=>[y.timestamp,y])),[l]),m=At.useMemo(()=>[{key:"breakdown",label:u("frustration.model-legend-breakdown"),color:"var(--chart-primary)",values:v.map((y)=>{let b=h.get(y);return b&&b.messages>0?sn(b.breakdown,b.messages):null})}],[v,h]),S=At.useMemo(()=>[...r].sort((y,b)=>sn(b.breakdown,b.messages)-sn(y.breakdown,y.messages)||b.messages-y.messages).slice(0,12),[r]);if(r.length===0)return P.jsxDEV(fe,{index:4,title:u("frustration.model-by-model"),stale:d,children:P.jsxDEV(Je,{title:u("frustration.model-no-turns"),hint:u("frustration.model-try-longer-range")},void 0,!1,void 0,this)},void 0,!1,void 0,this);return P.jsxDEV(P.Fragment,{children:[P.jsxDEV(fe,{index:4,title:u("frustration.model-by-model"),description:u("frustration.model-by-model-description"),stale:d,children:P.jsxDEV(Ts,{max:100,items:S.map((y)=>({key:y.key,label:y.label,value:sn(y.breakdown,y.messages),display:Da(y.breakdown,y.messages),color:g.get(Hi(y))??za[0]}))},void 0,!1,void 0,this)},void 0,!1,void 0,this),P.jsxDEV(fe,{index:5,title:u("frustration.model-over-time"),description:u("frustration.model-over-time-description"),actions:P.jsxDEV(ia,{items:m.map((y)=>({key:y.key,label:y.label,color:y.color}))},void 0,!1,void 0,this),stale:d,children:P.jsxDEV(_o,{buckets:v,bucketMs:f.bucketMs,series:m,height:260,yMax:100,format:(y)=>`${y}%`,formatTooltip:(y)=>`${y.toFixed(1)}%`,emptyLabel:u("frustration.model-no-turns")},void 0,!1,void 0,this)},void 0,!1,void 0,this),P.jsxDEV(iq,{rows:r,familyColors:g,stale:d},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function iq({rows:r,familyColors:l,stale:i}){let d=At.useMemo(()=>[{key:"model",header:u("common.model"),sort:(f)=>f.label,render:(f)=>P.jsxDEV("span",{className:"row",title:f.key,children:[P.jsxDEV("span",{className:"swatch",style:{background:l.get(Hi(f))??za[0]}},void 0,!1,void 0,this),P.jsxDEV("span",{className:"cell-primary",children:f.label},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"ids",header:u("frustration.column-model-ids"),wrap:!0,render:(f)=>P.jsxDEV("span",{className:"mono micro dim",children:f.models.join(", ")},void 0,!1,void 0,this)},{key:"turns",header:u("frustration.column-turns"),align:"right",sort:(f)=>f.messages,render:(f)=>P.jsxDEV("span",{className:"num",children:A(f.messages)},void 0,!1,void 0,this)},{key:"selfBlame",header:u("frustration.model-self-blame"),align:"right",sort:(f)=>sn(f.blamed,f.messages),render:(f)=>P.jsxDEV("span",{className:"num",title:u("frustration.turns-n",{count:A(f.blamed)}),children:Da(f.blamed,f.messages)},void 0,!1,void 0,this)},{key:"restatement",header:u("frustration.model-restatement"),title:u("frustration.model-restatement-title"),align:"right",sort:(f)=>sn(f.restated,f.messages),render:(f)=>P.jsxDEV("span",{className:"num",title:u("frustration.turns-n",{count:A(f.restated)}),children:Da(f.restated,f.messages)},void 0,!1,void 0,this)},{key:"hedge",header:u("frustration.model-hedge"),align:"right",sort:(f)=>sn(f.hedged,f.messages),render:(f)=>P.jsxDEV("span",{className:"num",title:u("frustration.turns-n",{count:A(f.hedged)}),children:Da(f.hedged,f.messages)},void 0,!1,void 0,this)},{key:"rambling",header:u("frustration.model-rambling"),title:u("frustration.model-rambling-title"),align:"right",sort:(f)=>sn(f.verbose,f.messages),render:(f)=>P.jsxDEV("span",{className:"num",title:u("frustration.turns-n",{count:A(f.verbose)}),children:Da(f.verbose,f.messages)},void 0,!1,void 0,this)},{key:"spiral",header:u("frustration.model-spiral"),align:"right",sort:(f)=>sn(f.spiraled,f.messages),render:(f)=>P.jsxDEV("span",{className:"num",title:u("frustration.turns-n",{count:A(f.spiraled)}),children:Da(f.spiraled,f.messages)},void 0,!1,void 0,this)},{key:"breakdown",header:u("frustration.model-breakdown"),align:"right",sort:(f)=>sn(f.breakdown,f.messages),render:(f)=>P.jsxDEV("span",{className:"num",title:u("frustration.turns-n",{count:A(f.breakdown)}),children:Da(f.breakdown,f.messages)},void 0,!1,void 0,this)},{key:"mean",header:u("frustration.column-mean"),align:"right",sort:(f)=>f.messages>0?f.collapse/f.messages:0,render:(f)=>P.jsxDEV("span",{className:"num",children:f.messages>0?(f.collapse/f.messages).toFixed(2):"–"},void 0,!1,void 0,this)}],[l]);return P.jsxDEV(fe,{index:6,title:u("frustration.model-table-title"),description:u("frustration.model-table-description"),flush:!0,stale:i,children:P.jsxDEV(Ft,{rows:r,rowKey:(f)=>f.key,columns:d,dense:!0,empty:P.jsxDEV(Je,{title:u("frustration.model-no-turns")},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function uq({sessions:r,stale:l}){let i=At.useMemo(()=>[{key:"session",header:u("frustration.column-session"),render:(d)=>P.jsxDEV("span",{className:"stack",title:d.sessionFile,children:[P.jsxDEV("span",{className:"cell-primary mono micro",children:d.sessionFile.split(/[\\/]/).pop()??d.sessionFile},void 0,!1,void 0,this),P.jsxDEV("span",{className:"micro dim truncate",children:d.folder},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"models",header:u("common.model"),wrap:!0,render:(d)=>P.jsxDEV("span",{className:"mono micro dim",children:d.models.join(", ")},void 0,!1,void 0,this)},{key:"turns",header:u("frustration.column-turns"),align:"right",sort:(d)=>d.messages,render:(d)=>P.jsxDEV("span",{className:"num",children:A(d.messages)},void 0,!1,void 0,this)},{key:"breakdown",header:u("frustration.model-breakdown"),align:"right",sort:(d)=>sn(d.breakdown,d.messages),render:(d)=>P.jsxDEV("span",{className:"num",title:u("frustration.turns-n",{count:A(d.breakdown)}),children:Da(d.breakdown,d.messages)},void 0,!1,void 0,this)},{key:"mean",header:u("frustration.column-mean"),align:"right",sort:(d)=>d.messages>0?d.collapse/d.messages:0,render:(d)=>P.jsxDEV("span",{className:"num",children:d.messages>0?(d.collapse/d.messages).toFixed(2):"–"},void 0,!1,void 0,this)},{key:"toolErrors",header:u("frustration.column-tool-errors"),align:"right",sort:(d)=>d.toolErrors,render:(d)=>P.jsxDEV("span",{className:d.toolErrors>0?"num tone-bad":"num",children:A(d.toolErrors)},void 0,!1,void 0,this)}],[]);return P.jsxDEV(fe,{index:7,title:u("frustration.model-sessions"),description:u("frustration.model-sessions-description"),flush:!0,stale:l,children:P.jsxDEV(Ft,{rows:r,rowKey:(d)=>d.sessionFile,columns:i,dense:!0,empty:P.jsxDEV(Je,{title:u("frustration.model-no-turns")},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var Qf=_(Ke(),1);var Yt=_(te(),1),dq=86400000,cq={snapcompact:"Snapcompact imaged tool results",compaction:"Snapcompact compaction (context freed)"};function C2({active:r,range:l}){let[i,d]=Qf.useState(null),f=Pt(["gain",l,i],({signal:L})=>yI(l,i,L),{enabled:r}),g=aa(l),v=f.data,h=Qf.useMemo(()=>{let L=(v?.timeSeries??[]).map((O)=>({...O,timestamp:Date.parse(`${O.date}T00:00:00`)})),T=oo(l,L.map((O)=>O.timestamp),dq),C=ha(L,T,(O)=>O.total),I=0,R=C.map((O)=>I+=O);return{buckets:T,daily:C,cumulative:R}},[v,l]),m=Qf.useMemo(()=>{if(!v)return[];let L=v.overall.savedTokens;return Object.keys(v.bySource).map((T)=>({...v.bySource[T],source:T,share:L>0?v.bySource[T].savedTokens/L:0}))},[v]),S=v?.projects??[],y=i!==null&&!S.includes(i)?[i,...S]:S,b=[{key:"daily",label:u("gain.saved-per-day"),color:"var(--chart-primary)",values:h.daily},{key:"cumulative",label:u("gain.cumulative"),color:"var(--chart-secondary)",values:h.cumulative,kind:"line",axis:"right"}];return Yt.jsxDEV("div",{className:"page",children:[Yt.jsxDEV(la,{title:u("gain.title"),description:i?u("gain.description-scoped",{project:i,window:u(g.windowKey)}):u("gain.description",{window:u(g.windowKey)}),actions:y.length>0&&Yt.jsxDEV("select",{className:"input","aria-label":u("common.project"),value:i??"",onChange:(L)=>d(L.target.value||null),style:{maxWidth:320},children:[Yt.jsxDEV("option",{value:"",children:u("gain.all-projects")},void 0,!1,void 0,this),y.map((L)=>Yt.jsxDEV("option",{value:L,children:L},L,!1,void 0,this))]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Yt.jsxDEV(_e,{query:f,skeleton:Yt.jsxDEV(qt,{height:96},void 0,!1,void 0,this),isEmpty:(L)=>L.overall.hits===0&&L.timeSeries.length===0,empty:Yt.jsxDEV(fe,{children:Yt.jsxDEV(Je,{title:i?u("gain.empty-title-scoped",{project:i,window:u(g.windowKey)}):u("gain.empty-title",{window:u(g.windowKey)}),hint:l==="all"?u("gain.empty-hint-all"):u("gain.empty-hint-longer-range")},void 0,!1,void 0,this)},void 0,!1,void 0,this),children:({overall:L})=>Yt.jsxDEV(Yt.Fragment,{children:[Yt.jsxDEV("div",{"data-stale":f.stale,children:Yt.jsxDEV(wa,{min:180,children:[Yt.jsxDEV(ie,{label:u("gain.saved-tokens"),value:se(L.savedTokens),hint:A(L.savedTokens),spark:h.daily},void 0,!1,void 0,this),Yt.jsxDEV(ie,{label:u("gain.saved-bytes"),value:kb(L.savedBytes)},void 0,!1,void 0,this),Yt.jsxDEV(ie,{label:u("gain.reduction"),title:u("gain.reduction-title"),value:L.reductionPercent!==null?Ge(L.reductionPercent):"–",hint:L.reductionPercent===null?u("gain.reduction-unknown"):void 0},void 0,!1,void 0,this),Yt.jsxDEV(ie,{label:u("gain.hits"),value:A(L.hits)},void 0,!1,void 0,this),Yt.jsxDEV(ie,{label:u("gain.saved-per-hit"),value:L.hits>0?se(L.savedTokens/L.hits):"–",hint:u("common.tokens")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Yt.jsxDEV(fe,{index:1,title:u("gain.savings-over-time"),description:u("gain.savings-over-time-description"),actions:Yt.jsxDEV(ia,{items:b.map((T)=>({key:T.key,label:T.label,color:T.color}))},void 0,!1,void 0,this),stale:f.stale,children:Yt.jsxDEV(vr,{slots:h.buckets.length,tickLabel:(T)=>Ff(h.buckets[T]),series:b,height:260,formatTooltip:A,formatRight:se},void 0,!1,void 0,this)},void 0,!1,void 0,this),Yt.jsxDEV(fe,{index:2,title:u("gain.by-source"),description:u("gain.by-source-description"),flush:!0,stale:f.stale,children:Yt.jsxDEV(Ft,{rows:m,rowKey:(T)=>T.source,columns:fq()},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function fq(){return[{key:"source",header:u("gain.source"),sort:(r)=>r.source,render:(r)=>Yt.jsxDEV("span",{className:"cell-primary",children:cq[r.source]},void 0,!1,void 0,this)},{key:"tokens",header:u("gain.saved-tokens"),align:"right",sort:(r)=>r.savedTokens,render:(r)=>Yt.jsxDEV("span",{title:A(r.savedTokens),children:Yt.jsxDEV(Ma,{value:r.share,max:1,display:se(r.savedTokens)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"share",header:u("common.share"),align:"right",sort:(r)=>r.share,render:(r)=>Yt.jsxDEV("span",{className:"num muted",children:Ge(r.share)},void 0,!1,void 0,this)},{key:"bytes",header:u("gain.saved-bytes"),align:"right",sort:(r)=>r.savedBytes,render:(r)=>Yt.jsxDEV("span",{className:"num",children:kb(r.savedBytes)},void 0,!1,void 0,this)},{key:"hits",header:u("gain.hits"),align:"right",sort:(r)=>r.hits,render:(r)=>Yt.jsxDEV("span",{className:"num",children:A(r.hits)},void 0,!1,void 0,this)},{key:"reduction",header:u("gain.reduction"),align:"right",sort:(r)=>r.reductionPercent??-1,render:(r)=>Yt.jsxDEV("span",{className:"num",children:r.reductionPercent!==null?Ge(r.reductionPercent):"–"},void 0,!1,void 0,this)}]}var fd=_(Ke(),1);var Ie=_(te(),1);function pq(){return[{value:"share",label:u("common.share")},{value:"requests",label:u("common.requests")}]}var mq=6;function I2({active:r,range:l}){let i=Pt(["models",l],({signal:I})=>oI(l,I),{enabled:r}),d=aa(l),[f,g]=fd.useState("share"),[v,h]=Ur(),[m,S]=fd.useState(null),y=fd.useMemo(()=>i.data?hq(i.data,l):null,[i.data,l]),b=xq(d.bucketMs),L=fd.useMemo(()=>y?yq(y,m,b):[],[y,m,b]),T=(I)=>I.byModel.length===0,C=Ie.jsxDEV(Je,{title:u("models.empty-title"),hint:u("models.empty-hint")},void 0,!1,void 0,this);return Ie.jsxDEV("div",{className:"page",children:[Ie.jsxDEV(la,{title:u("common.models"),description:u("models.subtitle",{window:u(d.windowKey)})},void 0,!1,void 0,this),Ie.jsxDEV(_e,{query:i,skeleton:Ie.jsxDEV(Ga,{height:112,style:{borderRadius:12}},void 0,!1,void 0,this),isEmpty:T,empty:C,children:()=>y&&Ie.jsxDEV("div",{"data-stale":i.stale,children:Ie.jsxDEV(wa,{min:200,children:[Ie.jsxDEV(ie,{label:u("models.used"),value:A(y.models.length),hint:y.providerCount===1?u("models.across-providers-one",{count:A(y.providerCount)}):u("models.across-providers",{count:A(y.providerCount)})},void 0,!1,void 0,this),Ie.jsxDEV(ie,{label:u("models.most-used"),title:y.top?`${y.top.model} (${y.top.provider})`:void 0,value:y.top?y.top.model:"–",hint:y.top?u("models.most-used-hint",{share:Ge(y.top.totalRequests/Math.max(1,y.totalRequests)),provider:y.top.provider}):void 0},void 0,!1,void 0,this),Ie.jsxDEV(ie,{label:u("common.requests"),value:A(y.totalRequests),hint:u("models.failed-n",{count:A(y.failedRequests)}),spark:y.requestTotals},void 0,!1,void 0,this),Ie.jsxDEV(ie,{label:u("models.api-cost"),title:u("models.api-cost-title"),value:oa(y.totalCost,y.unpricedRequests),hint:y.unpricedRequests>0?u("models.unpriced-n",{count:A(y.unpricedRequests)}):void 0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ie.jsxDEV(fe,{index:1,title:u("models.request-share"),description:f==="share"?u("models.share-desc",{bucket:b}):u("models.count-desc",{bucket:b}),actions:Ie.jsxDEV(Oa,{size:"sm",options:pq(),value:f,onChange:g,"aria-label":u("models.share-mode-aria")},void 0,!1,void 0,this),stale:i.stale,children:Ie.jsxDEV(_e,{query:i,skeleton:Ie.jsxDEV(qt,{height:260},void 0,!1,void 0,this),isEmpty:T,empty:C,children:()=>y&&Ie.jsxDEV("div",{className:"stack",style:{gap:12},children:[Ie.jsxDEV(_o,{buckets:y.buckets,bucketMs:d.bucketMs,series:f==="share"?y.shareSeries:y.countSeries,hidden:v,height:260,yMax:f==="share"?1:void 0,format:f==="share"?(I)=>Ge(I,0):se,formatTooltip:f==="share"?(I)=>Ge(I):A,showTotal:f==="requests"},void 0,!1,void 0,this),Ie.jsxDEV(ia,{items:y.countSeries.map((I)=>({key:I.key,label:I.label,color:I.color,value:Ge(T2(I.values)/Math.max(1,T2(y.requestTotals)))})),hidden:v,onToggle:h},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ie.jsxDEV(fe,{index:2,title:u("models.all-models"),description:u("models.table-desc"),stale:i.stale,flush:!0,children:Ie.jsxDEV(_e,{query:i,skeleton:Ie.jsxDEV(pa,{rows:8},void 0,!1,void 0,this),isEmpty:T,empty:C,children:()=>y&&Ie.jsxDEV(Ft,{rows:y.models,rowKey:(I)=>ja(I.model,I.provider),columns:L,initialSort:{key:"requests",dir:"desc"},limit:25,onRowClick:(I)=>{let R=ja(I.model,I.provider);S((O)=>O===R?null:R)},selectedKey:m,expanded:(I)=>{let R=ja(I.model,I.provider);return R===m?Ie.jsxDEV(vq,{model:I,color:y.swatches.get(R)??"var(--chart-primary)",points:y.performance.get(R)??[],bucketMs:d.bucketMs,bucketWord:b},void 0,!1,void 0,this):null}},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function hq(r,l){let i=r.byModel,d=ug(i),f=gq(i),g=oo(l,r.modelSeries.map((R)=>R.timestamp)),v=ha(r.modelSeries,g,(R)=>R.requests),h={buckets:g,key:(R)=>ja(R.model,R.provider),label:(R)=>f.get(R)??R,value:(R)=>R.requests,colors:d},m=Xn(r.modelSeries,{...h,limit:mq}).map((R)=>({...R,values:R.values.map((O)=>O||null)})),S=m.map((R)=>({...R,values:R.values.map((O,z)=>O===null?null:O/v[z])})),y=new Map(Xn(r.modelSeries,h).map((R)=>[R.key,R.values])),b,L=0,T=0,C=0,I=0;for(let R of i){if(!b||R.totalRequests>b.totalRequests)b=R;L+=R.totalRequests,T+=R.failedRequests,C+=R.totalCost,I+=R.unpricedRequests}return{models:i,top:b,swatches:new Map(m.filter((R)=>R.key!=="__other__").map((R)=>[R.key,R.color])),labels:f,providerCount:new Set(i.map((R)=>R.provider)).size,totalRequests:L,failedRequests:T,totalCost:C,unpricedRequests:I,maxRequests:b?.totalRequests??0,buckets:g,requestTotals:v,countSeries:m,shareSeries:S,trends:y,performance:p2(r.modelPerformanceSeries)}}function gq(r){let l=new Map;for(let i of r)l.set(i.model,(l.get(i.model)??0)+1);return new Map(r.map((i)=>[ja(i.model,i.provider),(l.get(i.model)??0)>1?`${i.model} · ${i.provider}`:i.model]))}function yq(r,l,i){return[{key:"expand",header:"",width:28,render:(d)=>Ie.jsxDEV("span",{className:"models-chevron","data-open":ja(d.model,d.provider)===l,children:Ie.jsxDEV(tn,{size:14},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"model",header:u("common.model"),sort:(d)=>d.model,render:(d)=>Ie.jsxDEV(co,{lead:Ie.jsxDEV(an,{color:r.swatches.get(ja(d.model,d.provider))??fo},void 0,!1,void 0,this),primary:Ie.jsxDEV("span",{className:"mono",children:d.model},void 0,!1,void 0,this),secondary:d.provider},void 0,!1,void 0,this)},{key:"requests",header:u("common.requests"),align:"right",sort:(d)=>d.totalRequests,render:(d)=>Ie.jsxDEV(Ma,{value:d.totalRequests,max:r.maxRequests,display:A(d.totalRequests),color:r.swatches.get(ja(d.model,d.provider))??fo},void 0,!1,void 0,this)},{key:"cost",header:u("common.cost"),title:u("models.cost-title"),align:"right",sort:(d)=>d.totalCost,render:(d)=>Ie.jsxDEV("span",{className:"num",children:oa(d.totalCost,d.unpricedRequests)},void 0,!1,void 0,this)},{key:"tokens",header:u("common.tokens"),title:u("models.tokens-title"),align:"right",sort:(d)=>_i(d),render:(d)=>{let f=_i(d);return Ie.jsxDEV("span",{className:"num",title:A(f),children:se(f)},void 0,!1,void 0,this)}},{key:"cache",header:u("models.cache-rate"),title:u("models.cache-title"),align:"right",sort:(d)=>d.cacheRate,render:(d)=>Ie.jsxDEV("span",{className:"num",children:Ge(d.cacheRate)},void 0,!1,void 0,this)},{key:"errors",header:u("models.errors"),align:"right",sort:(d)=>d.errorRate,render:(d)=>d.failedRequests===0?Ie.jsxDEV("span",{className:"num dim",children:"0%"},void 0,!1,void 0,this):Ie.jsxDEV("span",{title:u("models.failed-n",{count:A(d.failedRequests)}),children:Ie.jsxDEV(ct,{tone:gr(d.errorRate),mono:!0,children:Mo(d.errorRate)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"tps",header:u("common.tokens-per-second"),title:u("models.tps-title"),align:"right",sort:(d)=>d.avgTokensPerSecond??-1,render:(d)=>Ie.jsxDEV("span",{className:"num",children:Gn(d.avgTokensPerSecond)},void 0,!1,void 0,this)},{key:"ttft",header:u("models.ttft"),title:u("models.ttft-title"),align:"right",sort:(d)=>d.avgTtft??-1,render:(d)=>Ie.jsxDEV("span",{className:"num",children:Ct(d.avgTtft)},void 0,!1,void 0,this)},{key:"trend",header:u("models.trend"),title:u("models.trend-title",{bucket:i}),width:112,render:(d)=>{let f=ja(d.model,d.provider),g=r.trends.get(f);return g?Ie.jsxDEV(sd,{values:g.map((v)=>v??0),color:r.swatches.get(f)??fo,width:96,height:22},void 0,!1,void 0,this):Ie.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this)}}]}function vq({model:r,color:l,points:i,bucketMs:d,bucketWord:f}){let[g,v]=Ur(),h=[{key:"tps",label:u("common.tokens-per-second"),color:l,kind:i.length>1?"line":"bars",values:i.map((m)=>m.avgTokensPerSecond)},{key:"ttft",label:u("models.ttft"),color:fo,kind:i.length>1?"line":"bars",axis:"right",dashed:!0,values:i.map((m)=>m.avgTtftSeconds)}];return Ie.jsxDEV("div",{className:"models-detail",children:[Ie.jsxDEV("div",{className:"models-detail-facts",children:[Ie.jsxDEV("div",{children:[Ie.jsxDEV("div",{className:"section-label",children:u("models.efficiency")},void 0,!1,void 0,this),Ie.jsxDEV(ko,{items:[{key:"err",label:u("common.error-rate"),value:Ie.jsxDEV("span",{className:`tone-${gr(r.errorRate)}`,children:[Mo(r.errorRate)," ",Ie.jsxDEV("span",{className:"dim",children:["(",u("models.failed-n",{count:A(r.failedRequests)}),")"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},{key:"cache",label:u("models.cache-rate"),value:Ge(r.cacheRate)},{key:"savings",label:u("models.cache-savings"),value:Ie.jsxDEV("span",{className:r.cacheSavings<0?"tone-bad":void 0,children:Ge(r.cacheSavings)},void 0,!1,void 0,this)},{key:"premium",label:u("common.premium-requests"),value:A(Math.round(r.totalPremiumRequests*100)/100)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ie.jsxDEV("div",{children:[Ie.jsxDEV("div",{className:"section-label",children:u("models.latency")},void 0,!1,void 0,this),Ie.jsxDEV(ko,{items:[{key:"dur",label:u("models.avg-duration"),value:Ct(r.avgDuration)},{key:"ttft",label:u("models.avg-ttft"),value:Ct(r.avgTtft)},{key:"tps",label:u("common.tokens-per-second"),value:Gn(r.avgTokensPerSecond)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ie.jsxDEV("div",{children:[Ie.jsxDEV("div",{className:"section-label",children:u("common.tokens")},void 0,!1,void 0,this),Ie.jsxDEV(ko,{items:[{key:"in",label:u("models.uncached-input"),value:se(r.totalInputTokens)},{key:"cr",label:u("common.cache-read"),value:se(r.totalCacheReadTokens)},{key:"cw",label:u("common.cache-write"),value:se(r.totalCacheWriteTokens)},{key:"out",label:u("common.output"),value:se(r.totalOutputTokens)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ie.jsxDEV("div",{className:"micro dim",children:u("models.first-last-seen",{first:ma(r.firstTimestamp),last:ma(r.lastTimestamp)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ie.jsxDEV("div",{className:"models-detail-chart",children:[Ie.jsxDEV("div",{className:"row",style:{justifyContent:"space-between"},children:[Ie.jsxDEV("div",{className:"section-label",style:{marginBottom:0},children:u("models.performance-per-bucket",{bucket:f})},void 0,!1,void 0,this),Ie.jsxDEV(ia,{items:h.map((m)=>({key:m.key,label:m.label,color:m.color})),hidden:g,onToggle:v},void 0,!1,void 0,this)]},void 0,!0,void 0,this),i.length===0?Ie.jsxDEV(Je,{title:u("models.no-samples-title"),hint:u("models.no-samples-hint")},void 0,!1,void 0,this):Ie.jsxDEV(_o,{buckets:i.map((m)=>m.timestamp),bucketMs:d,series:h,hidden:g,stacked:!1,height:240,format:se,formatTooltip:(m)=>u("models.tok-per-second",{value:Gn(m)}),formatRight:(m)=>`${Number(m.toFixed(2))}s`,tooltipExtra:(m)=>Ie.jsxDEV("div",{className:"chart-tooltip-row chart-tooltip-total",children:[Ie.jsxDEV("span",{className:"chart-tooltip-label",children:u("common.requests")},void 0,!1,void 0,this),Ie.jsxDEV("span",{className:"chart-tooltip-value",children:A(i[m].requests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function xq(r){if(r<3600000)return u("models.bucket-5m");if(r<86400000)return u("models.bucket-hour");return u("models.bucket-day")}function T2(r){let l=0;for(let i of r)l+=i??0;return l}var Wf=_(Ke(),1);var Ce=_(te(),1);function bq(){return[{value:"requests",label:u("common.requests")},{value:"tokens",label:u("common.tokens")},{value:"cost",label:u("common.cost")}]}var Sq={main:"overview.main-agent",subagent:"overview.subagents",advisor:"overview.advisor"},kq={main:"var(--chart-primary)",subagent:"var(--chart-secondary)",advisor:"#9d7bff"};function R2(){return[{key:"input",label:u("overview.uncached-input"),color:"#5b8cff"},{key:"cacheRead",label:u("common.cache-read"),color:"var(--chart-primary)"},{key:"cacheWrite",label:u("common.cache-write"),color:"#f5b54a"},{key:"output",label:u("common.output"),color:"var(--chart-secondary)"}]}function E2({active:r,range:l,onRequestClick:i}){let d=Pt(["overview",l],({signal:b})=>aI(l,b),{enabled:r}),f=Pt(["recent-requests"],({signal:b})=>jh(12,b),{enabled:r}),[g,v]=Wf.useState("requests"),h=aa(l),m=Wf.useMemo(()=>{let b=d.data?.timeSeries??[],L=oo(l,b.map((T)=>T.timestamp));return{buckets:L,requests:ha(b,L,(T)=>T.requests-T.errors),errors:ha(b,L,(T)=>T.errors),tokens:ha(b,L,(T)=>T.tokens),cost:ha(b,L,(T)=>T.cost),all:ha(b,L,(T)=>T.requests)}},[d.data,l]),S=Wf.useMemo(()=>{let b=d.data;if(!b)return null;return{usage:d2(b.byAgentType,b.bySideChannel),decisions:c2(b.bySideChannel)}},[d.data]),y=g==="requests"?[{key:"ok",label:u("overview.succeeded"),color:"var(--chart-primary)",values:m.requests},{key:"err",label:u("common.failed"),color:"var(--bad)",values:m.errors}]:g==="tokens"?[{key:"tokens",label:u("common.tokens"),color:"var(--chart-primary)",values:m.tokens}]:[{key:"cost",label:u("overview.api-equivalent"),color:"var(--chart-secondary)",values:m.cost}];return Ce.jsxDEV("div",{className:"page",children:[Ce.jsxDEV(la,{title:u("overview.title"),description:u("overview.description",{window:u(h.windowKey)})},void 0,!1,void 0,this),Ce.jsxDEV(_e,{query:d,skeleton:Ce.jsxDEV(qt,{height:112},void 0,!1,void 0,this),children:({overall:b})=>Ce.jsxDEV("div",{"data-stale":d.stale,className:"stack",style:{gap:16},children:[Ce.jsxDEV(wa,{min:190,children:[Ce.jsxDEV(ie,{label:u("overview.api-equivalent-cost"),title:u("overview.api-cost-title"),value:oa(b.totalCost,b.unpricedRequests),hint:b.unpricedRequests>0?u("overview.unpriced-n",{count:A(b.unpricedRequests)}):void 0,spark:m.cost,sparkColor:"var(--chart-secondary)"},void 0,!1,void 0,this),Ce.jsxDEV(ie,{label:u("common.requests"),value:A(b.totalRequests),hint:u("overview.failed-n",{count:A(b.failedRequests)}),spark:m.all},void 0,!1,void 0,this),Ce.jsxDEV(ie,{label:u("overview.conversation-tokens"),title:u("overview.tokens-title"),value:se(_i(b)),hint:u("overview.output-n",{count:se(b.totalOutputTokens)}),spark:m.tokens},void 0,!1,void 0,this),Ce.jsxDEV(ie,{label:u("overview.cache-rate"),title:u("overview.cache-rate-title"),value:Ge(b.cacheRate),hint:u("overview.cache-saved",{value:Ge(b.cacheSavings)})},void 0,!1,void 0,this),Ce.jsxDEV(ie,{label:u("common.error-rate"),value:Mo(b.errorRate),hint:u("overview.succeeded-n",{count:A(b.successfulRequests)}),spark:m.errors,sparkColor:"var(--bad)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ce.jsxDEV(wa,{min:140,children:[Ce.jsxDEV(ie,{size:"sm",label:u("overview.uncached-input"),value:se(b.totalInputTokens)},void 0,!1,void 0,this),Ce.jsxDEV(ie,{size:"sm",label:u("common.cache-read"),value:se(b.totalCacheReadTokens)},void 0,!1,void 0,this),Ce.jsxDEV(ie,{size:"sm",label:u("common.cache-write"),value:se(b.totalCacheWriteTokens)},void 0,!1,void 0,this),Ce.jsxDEV(ie,{size:"sm",label:u("common.output"),value:se(b.totalOutputTokens)},void 0,!1,void 0,this),Ce.jsxDEV(ie,{size:"sm",label:u("common.premium-requests"),value:A(Math.round(b.totalPremiumRequests*100)/100)},void 0,!1,void 0,this),Ce.jsxDEV(ie,{size:"sm",label:u("common.tokens-per-second"),value:Gn(b.avgTokensPerSecond)},void 0,!1,void 0,this),Ce.jsxDEV(ie,{size:"sm",label:u("overview.avg-latency"),value:Ct(b.avgDuration)},void 0,!1,void 0,this),Ce.jsxDEV(ie,{size:"sm",label:u("overview.avg-ttft"),value:Ct(b.avgTtft)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Ce.jsxDEV("div",{className:"grid grid-main-side",children:[Ce.jsxDEV(fe,{index:1,title:u("overview.activity"),description:h.bucketMs<3600000?u("overview.per-5m"):h.bucketMs<86400000?u("overview.per-hour"):u("overview.per-day"),actions:Ce.jsxDEV(Oa,{size:"sm",options:bq(),value:g,onChange:v},void 0,!1,void 0,this),stale:d.stale,children:Ce.jsxDEV(_e,{query:d,skeleton:Ce.jsxDEV(qt,{height:260},void 0,!1,void 0,this),children:()=>Ce.jsxDEV(_o,{buckets:m.buckets,bucketMs:h.bucketMs,series:y,height:260,format:g==="cost"?(b)=>oa(b,0):se},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ce.jsxDEV(fe,{index:2,title:u("overview.token-mix"),description:u("overview.token-mix-description"),stale:d.stale,children:Ce.jsxDEV(_e,{query:d,skeleton:Ce.jsxDEV(qt,{height:260},void 0,!1,void 0,this),children:({overall:b})=>{let L={input:b.totalInputTokens,cacheRead:b.totalCacheReadTokens,cacheWrite:b.totalCacheWriteTokens,output:b.totalOutputTokens},T=_i(b);return Ce.jsxDEV("div",{className:"stack",style:{gap:18},children:[Ce.jsxDEV("div",{className:"stack",style:{gap:10},children:[Ce.jsxDEV($n,{segments:R2().map((C)=>({key:C.key,label:C.label,value:L[C.key],color:C.color}))},void 0,!1,void 0,this),Ce.jsxDEV(ia,{items:R2().map((C)=>({key:C.key,label:C.label,color:C.color,value:T>0?Ge(L[C.key]/T,0):"–"}))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),S&&Ce.jsxDEV("div",{className:"stack",style:{gap:10},children:[Ce.jsxDEV("div",{className:"section-label",style:{marginBottom:0},children:"By source"},void 0,!1,void 0,this),Ce.jsxDEV(D2,{view:S.usage},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),S&&S.decisions.segments.length>0&&Ce.jsxDEV(fe,{index:3,title:"Decision models",description:"Where decision-model tokens went, by use case",stale:d.stale,children:Ce.jsxDEV(D2,{view:S.decisions,wide:!0},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ce.jsxDEV(fe,{index:4,title:Ce.jsxDEV(Ce.Fragment,{children:[Ce.jsxDEV(Hn,{tone:"live",pulse:!0},void 0,!1,void 0,this)," ",u("overview.latest-requests")]},void 0,!0,void 0,this),description:u("overview.latest-requests-description"),actions:Ce.jsxDEV("a",{className:"btn","data-size":"sm","data-variant":"ghost",href:`#/requests?range=${l}`,children:[u("overview.all-requests")," ",Ce.jsxDEV(sf,{size:13},void 0,!1,void 0,this)]},void 0,!0,void 0,this),flush:!0,children:Ce.jsxDEV(_e,{query:f,skeleton:Ce.jsxDEV(pa,{rows:8},void 0,!1,void 0,this),children:(b)=>Ce.jsxDEV(Ft,{rows:b,rowKey:(L)=>L.id??`${L.sessionFile}:${L.entryId}`,onRowClick:(L)=>L.id!==void 0&&i(L.id),columns:Lq(),dense:!0},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function A2(r){if(r.kind==="agent")return u(Sq[r.agentType]);return r.category.charAt(0).toUpperCase()+r.category.slice(1)}function M2(r,l){if(r.kind==="agent")return kq[r.agentType];return l.get(r.category)??fo}function D2({view:r,wide:l=!1}){let{segments:i,categoryColors:d}=r;return Ce.jsxDEV("div",{className:"stack",style:{gap:10},children:[Ce.jsxDEV($n,{segments:i.map((f)=>({key:f.key,label:A2(f),value:f.tokens,color:M2(f,d)}))},void 0,!1,void 0,this),Ce.jsxDEV("div",{className:l?"grid grid-3":"stack",style:{gap:l?"10px 28px":10},children:i.map((f)=>Ce.jsxDEV("div",{className:"row",style:{justifyContent:"space-between"},children:[Ce.jsxDEV("span",{className:"row",style:{minWidth:0},children:[Ce.jsxDEV("span",{className:"swatch",style:{background:M2(f,d)}},void 0,!1,void 0,this),Ce.jsxDEV("span",{className:"truncate",children:A2(f)},void 0,!1,void 0,this),Ce.jsxDEV("span",{className:"dim num",style:{flexShrink:0},children:u("overview.requests-short",{count:A(f.requests)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ce.jsxDEV("span",{className:"row",style:{flexShrink:0},children:[Ce.jsxDEV("span",{className:"dim num",children:se(f.tokens)},void 0,!1,void 0,this),Ce.jsxDEV("span",{className:"num",style:{minWidth:48,textAlign:"right"},children:Ge(f.share)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},f.key,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Lq(){return[{key:"model",header:u("common.model"),render:(r)=>Ce.jsxDEV(co,{primary:r.model,secondary:r.provider},void 0,!1,void 0,this)},{key:"time",header:u("overview.when"),render:(r)=>Ce.jsxDEV("span",{className:"muted",children:ma(r.timestamp)},void 0,!1,void 0,this)},{key:"tokens",header:u("common.tokens"),align:"right",render:(r)=>Ce.jsxDEV("span",{className:"num",children:A(r.usage.totalTokens)},void 0,!1,void 0,this)},{key:"cost",header:u("common.cost"),align:"right",render:(r)=>Ce.jsxDEV("span",{className:"num",children:ql(r,4)},void 0,!1,void 0,this)},{key:"duration",header:u("common.duration"),align:"right",render:(r)=>Ce.jsxDEV("span",{className:"num",children:Ct(r.duration)},void 0,!1,void 0,this)},{key:"status",header:u("overview.status"),align:"right",render:(r)=>r.errorMessage?Ce.jsxDEV(ct,{tone:"bad",children:u("common.failed")},void 0,!1,void 0,this):Ce.jsxDEV(ct,{tone:"ok",children:u("overview.ok")},void 0,!1,void 0,this)}]}var ln=_(Ke(),1);var et=_(te(),1),wq=100,N2=8;function q2({active:r,range:l}){let i=Pt(["projects",l],({signal:I})=>mI(l,I),{enabled:r}),[d,f]=ln.useState(""),[g,v]=ln.useState(!0),h=ln.useDeferredValue(d.trim().toLowerCase()),m=aa(l),S=ln.useMemo(()=>m2(i.data??[]),[i.data]),y=ln.useMemo(()=>g?S.rows.filter((I)=>!I.temporary):S.rows,[S,g]),b=ln.useMemo(()=>h?y.filter((I)=>I.folder.toLowerCase().includes(h)):y,[y,h]),L=ln.useMemo(()=>({cost:[...y].sort((I,R)=>R.totalCost-I.totalCost).slice(0,N2),requests:[...y].sort((I,R)=>R.totalRequests-I.totalRequests).slice(0,N2)}),[y]),T=et.jsxDEV(Je,{title:u(S.rows.length===0?"projects.empty-no-folders":"projects.empty-only-temporary")},void 0,!1,void 0,this),C=ln.useMemo(()=>Cq(S.maxRequests,S.maxCost),[S]);return et.jsxDEV("div",{className:"page",children:[et.jsxDEV(la,{title:u("projects.title"),description:u("projects.description",{window:u(m.windowKey)})},void 0,!1,void 0,this),et.jsxDEV(_e,{query:i,skeleton:et.jsxDEV(qt,{height:96},void 0,!1,void 0,this),children:()=>et.jsxDEV("div",{"data-stale":i.stale,children:et.jsxDEV(wa,{min:180,children:[et.jsxDEV(ie,{label:u("projects.folders"),value:A(S.rows.length),hint:S.temporaryCount>0?u("projects.temporary-n",{count:A(S.temporaryCount)}):void 0},void 0,!1,void 0,this),et.jsxDEV(ie,{label:u("common.requests"),value:A(S.totalRequests),hint:u("projects.failed-n",{count:A(S.failedRequests)})},void 0,!1,void 0,this),et.jsxDEV(ie,{label:u("projects.api-equivalent-cost"),title:u("projects.api-equivalent-cost-hint"),value:oa(S.totalCost,S.unpricedRequests),hint:S.unpricedRequests>0?u("projects.unpriced-n",{count:A(S.unpricedRequests)}):void 0},void 0,!1,void 0,this),et.jsxDEV(ie,{label:u("projects.conversation-tokens"),title:u("projects.conversation-tokens-hint"),value:se(S.conversationTokens)},void 0,!1,void 0,this),et.jsxDEV(ie,{label:u("projects.cache-rate"),title:u("projects.cache-rate-hint-all"),value:Ge(S.cacheRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),et.jsxDEV("div",{className:"grid grid-2",children:[et.jsxDEV(fe,{index:1,title:u("projects.top-by-cost"),description:u("projects.top-by-cost-description"),stale:i.stale,children:et.jsxDEV(_e,{query:i,skeleton:et.jsxDEV(qt,{height:236},void 0,!1,void 0,this),isEmpty:()=>L.cost.length===0,empty:T,children:()=>et.jsxDEV(Ts,{items:L.cost.map((I)=>({key:I.folder,label:et.jsxDEV("span",{className:"mono",children:Pr(I.folder)},void 0,!1,void 0,this),value:I.totalCost,display:`${oa(I.totalCost,I.unpricedRequests)} · ${Ge(I.costShare)}`,color:"var(--chart-secondary)"})),onSelect:f},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),et.jsxDEV(fe,{index:2,title:u("projects.top-by-requests"),description:u("projects.top-by-requests-description"),stale:i.stale,children:et.jsxDEV(_e,{query:i,skeleton:et.jsxDEV(qt,{height:236},void 0,!1,void 0,this),isEmpty:()=>L.requests.length===0,empty:T,children:()=>et.jsxDEV(Ts,{items:L.requests.map((I)=>({key:I.folder,label:et.jsxDEV("span",{className:"mono",children:Pr(I.folder)},void 0,!1,void 0,this),value:I.totalRequests,display:`${A(I.totalRequests)} · ${Ge(I.requestShare)}`})),onSelect:f},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),et.jsxDEV(fe,{index:3,title:u("projects.folders"),description:i.data?b.length===S.rows.length?u("projects.folders-n",{count:A(S.rows.length)}):u("projects.folders-of-n",{count:A(b.length),total:A(S.rows.length)}):void 0,actions:et.jsxDEV(et.Fragment,{children:[S.temporaryCount>0&&et.jsxDEV("label",{className:"check",title:u("projects.hide-temporary-hint"),children:[et.jsxDEV("input",{type:"checkbox",checked:g,onChange:(I)=>v(I.target.checked)},void 0,!1,void 0,this),u("projects.hide-temporary",{count:A(S.temporaryCount)})]},void 0,!0,void 0,this),et.jsxDEV(Fn,{value:d,onChange:f,placeholder:u("projects.filter-placeholder"),width:240},void 0,!1,void 0,this)]},void 0,!0,void 0,this),flush:!0,stale:i.stale,children:et.jsxDEV(_e,{query:i,skeleton:et.jsxDEV(pa,{rows:10},void 0,!1,void 0,this),children:()=>et.jsxDEV(Ft,{rows:b,rowKey:(I)=>I.folder,columns:C,initialSort:{key:"cost",dir:"desc"},limit:wq,dense:!0,empty:et.jsxDEV(Je,{title:u(S.rows.length===0?"projects.empty-no-folders":"projects.empty-no-match"),hint:S.rows.length===0?u("projects.hint-longer-range"):g&&S.temporaryCount>0?u("projects.hint-temporary-hidden"):void 0},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Cq(r,l){return[{key:"folder",header:u("projects.folder"),sort:(i)=>i.folder,render:(i)=>et.jsxDEV("span",{className:"row projects-folder",title:i.folder||u("common.root"),children:[et.jsxDEV("span",{className:"mono truncate",children:Pr(i.folder)},void 0,!1,void 0,this),i.temporary&&et.jsxDEV(ct,{children:u("projects.temp")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"requests",header:u("common.requests"),align:"right",sort:(i)=>i.totalRequests,render:(i)=>et.jsxDEV("span",{title:u("projects.share-of-requests",{share:Ge(i.requestShare)}),children:et.jsxDEV(Ma,{value:i.totalRequests,max:r,display:A(i.totalRequests)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"cost",header:u("common.cost"),title:u("projects.api-equivalent-cost-rates"),align:"right",sort:(i)=>i.totalCost,render:(i)=>et.jsxDEV("span",{title:u("projects.share-of-cost",{share:Ge(i.costShare)}),children:et.jsxDEV(Ma,{value:i.totalCost,max:l,display:oa(i.totalCost,i.unpricedRequests),color:"var(--chart-secondary)"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"tokens",header:u("common.tokens"),title:u("projects.conversation-tokens-hint"),align:"right",sort:(i)=>i.conversationTokens,render:(i)=>et.jsxDEV("span",{className:"num",title:A(i.conversationTokens),children:se(i.conversationTokens)},void 0,!1,void 0,this)},{key:"cacheRate",header:u("projects.cache-rate"),title:u("projects.cache-rate-hint"),align:"right",sort:(i)=>i.cacheRate,render:(i)=>et.jsxDEV("span",{className:"num",children:Ge(i.cacheRate)},void 0,!1,void 0,this)},{key:"cacheSavings",header:u("projects.cache-savings"),title:u("projects.cache-savings-hint"),align:"right",sort:(i)=>i.cacheSavings,render:(i)=>et.jsxDEV("span",{className:`num ${i.cacheSavings<0?"tone-bad":"muted"}`,children:Ge(i.cacheSavings)},void 0,!1,void 0,this)},{key:"errorRate",header:u("projects.errors"),align:"right",sort:(i)=>i.errorRate,render:(i)=>et.jsxDEV("span",{title:u("projects.failed-n",{count:A(i.failedRequests)}),children:et.jsxDEV(ct,{tone:i.failedRequests>0?gr(i.errorRate):"neutral",mono:!0,children:Mo(i.errorRate)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"duration",header:u("projects.avg-duration"),align:"right",sort:(i)=>i.avgDuration??-1,render:(i)=>et.jsxDEV("span",{className:"num",children:Ct(i.avgDuration)},void 0,!1,void 0,this)},{key:"last",header:u("projects.last-active"),align:"right",sort:(i)=>i.lastTimestamp,render:(i)=>et.jsxDEV("span",{className:"dim",children:ma(i.lastTimestamp)},void 0,!1,void 0,this)}]}var Ho=_(Ke(),1);var ae=_(te(),1);function Tq(){return[{value:"tokens",label:u("common.tokens")},{value:"cost",label:u("common.cost"),title:u("providers.cost-title")},{value:"requests",label:u("common.requests")}]}var O2=6;function B2(){return[{key:"input",label:u("ui.uncached-input"),color:"#5b8cff"},{key:"cacheRead",label:u("common.cache-read"),color:"var(--chart-primary)"},{key:"cacheWrite",label:u("common.cache-write"),color:"#f5b54a"},{key:"output",label:u("common.output"),color:"var(--chart-secondary)"}]}function z2({active:r,range:l}){let i=Pt(["providers",l],({signal:z})=>SI(l,z),{enabled:r}),[d,f]=Ho.useState("tokens"),[g,v]=Ur(),h=aa(l),m=Pt(["provider-windows",l],({signal:z})=>hb(l,null,z),{enabled:r}),[S,y]=Ho.useState(null),b=Iq(m.data?.windowInsights??[],S),L=b?.provider??null,T=Pt(["provider-windows",l,L],({signal:z})=>hb(l,L,z),{enabled:r&&L!==null}),C=Ho.useMemo(()=>{let z=i.data?.providers??[],Y=i.data?.series??[],W=Pi(z.map((ee)=>({key:ee.provider,weight:ee.totalTokens}))),ue=oo(l,Y.map((ee)=>ee.timestamp)),Z={requests:0,failed:0,tokens:0,cost:0,unpriced:0};for(let ee of z)Z.requests+=ee.totalRequests,Z.failed+=ee.failedRequests,Z.tokens+=ee.totalTokens,Z.cost+=ee.totalCost,Z.unpriced+=ee.unpricedRequests;let ce=(ee)=>Xn(Y,{buckets:ue,key:(G)=>G.provider,value:ee,limit:O2,colors:W}).map((G)=>({...G,values:G.values.map((V)=>V||null)}));return{colors:W,buckets:ue,totals:Z,burn:{tokens:ce((ee)=>ee.totalTokens),cost:ce((ee)=>ee.cost),requests:ce((ee)=>ee.requests)},spark:{tokens:ha(Y,ue,(ee)=>ee.totalTokens),cost:ha(Y,ue,(ee)=>ee.cost),requests:ha(Y,ue,(ee)=>ee.requests)},topProvider:z.reduce((ee,G)=>ee===null||G.totalTokens>ee.totalTokens?G:ee,null)}},[i.data,l]),I=C.burn[d],R=d==="cost"?(z)=>zt(z):se,O=C.totals;return ae.jsxDEV("div",{className:"page",children:[ae.jsxDEV(la,{title:u("common.providers"),description:u("providers.description",{window:u(h.windowKey)})},void 0,!1,void 0,this),ae.jsxDEV(_e,{query:i,skeleton:ae.jsxDEV(qt,{height:112},void 0,!1,void 0,this),children:({providers:z})=>ae.jsxDEV("div",{"data-stale":i.stale,children:ae.jsxDEV(wa,{min:190,children:[ae.jsxDEV(ie,{label:u("common.providers"),value:A(z.length),hint:C.topProvider?u("providers.most-tokens",{provider:C.topProvider.provider}):void 0},void 0,!1,void 0,this),ae.jsxDEV(ie,{label:u("common.requests"),value:A(O.requests),hint:u("providers.failed-n",{count:A(O.failed)}),spark:C.spark.requests},void 0,!1,void 0,this),ae.jsxDEV(ie,{label:u("common.tokens"),title:u("providers.tokens-title"),value:se(O.tokens),spark:C.spark.tokens},void 0,!1,void 0,this),ae.jsxDEV(ie,{label:u("providers.api-equivalent-cost"),title:u("providers.api-cost-title"),value:oa(O.cost,O.unpriced),hint:O.unpriced>0?u("providers.unpriced-n",{count:A(O.unpriced)}):void 0,spark:C.spark.cost,sparkColor:"var(--chart-secondary)"},void 0,!1,void 0,this),ae.jsxDEV(ie,{label:u("common.error-rate"),value:Mo(O.requests>0?O.failed/O.requests:0),hint:u("providers.succeeded-n",{count:A(O.requests-O.failed)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),ae.jsxDEV(fe,{index:1,title:u("providers.totals"),description:O.unpriced>0?u(O.unpriced===1?"providers.totals-description-unpriced-one":"providers.totals-description-unpriced-n",{count:A(O.unpriced)}):u("providers.totals-description"),flush:!0,stale:i.stale,children:ae.jsxDEV(_e,{query:i,skeleton:ae.jsxDEV(pa,{rows:6},void 0,!1,void 0,this),children:({providers:z})=>ae.jsxDEV(Rq,{providers:z,colors:C.colors},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),ae.jsxDEV("div",{className:"grid grid-main-side",children:[ae.jsxDEV(fe,{index:2,title:u("providers.burn"),description:d==="cost"&&O.unpriced>0?u("providers.burn-estimate-description",{bucket:h.bucketMs<86400000?u("providers.bucket-hour"):u("providers.bucket-day")}):u("providers.burn-description",{bucket:h.bucketMs<3600000?u("providers.bucket-5m"):h.bucketMs<86400000?u("providers.bucket-hour"):u("providers.bucket-day"),count:O2}),actions:ae.jsxDEV(Oa,{size:"sm",options:Tq(),value:d,onChange:f},void 0,!1,void 0,this),stale:i.stale,children:ae.jsxDEV(_e,{query:i,skeleton:ae.jsxDEV(qt,{height:260},void 0,!1,void 0,this),children:()=>ae.jsxDEV("div",{className:"stack",style:{gap:12},children:[ae.jsxDEV(_o,{buckets:C.buckets,bucketMs:h.bucketMs,series:I,hidden:g,height:260,format:R,formatTooltip:d==="cost"?(z)=>zt(z):A,emptyLabel:u("providers.no-provider-activity")},void 0,!1,void 0,this),ae.jsxDEV(ia,{items:I.map((z)=>({key:z.key,label:z.label,color:z.color,value:R(z.values.reduce((Y,W)=>Y+(W??0),0))})),hidden:g,onToggle:v},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),ae.jsxDEV(_e,{query:i,skeleton:ae.jsxDEV(qt,{height:320},void 0,!1,void 0,this),children:({hourly:z,providers:Y})=>ae.jsxDEV(Mq,{hourly:z,providers:Y,stale:i.stale},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ae.jsxDEV(fe,{index:4,title:u("providers.subscription-windows"),description:u("providers.subscription-windows-description"),flush:!0,stale:m.stale,children:ae.jsxDEV(_e,{query:m,skeleton:ae.jsxDEV(pa,{rows:6},void 0,!1,void 0,this),children:(z)=>ae.jsxDEV(Dq,{insights:z.windowInsights,selected:b,onSelect:y},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),ae.jsxDEV(Bq,{insights:m.data?.windowInsights??null,accounts:T,selected:b,onSelect:y},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Iq(r,l){if(l&&r.some((d)=>d.provider===l.provider&&d.windowKey===l.windowKey))return l;let i=l&&r.find((d)=>d.provider===l.provider)||r.reduce((d,f)=>d===void 0||f.fractionConsumed>d.fractionConsumed?f:d,void 0);return i?{provider:i.provider,windowKey:i.windowKey}:null}function Rq({providers:r,colors:l}){let[i,d]=Ho.useState(null),f=Ho.useMemo(()=>{let g=0,v=0,h=0;for(let m of r)g=Math.max(g,m.totalRequests),v=Math.max(v,m.totalTokens),h+=m.totalTokens;return[{key:"provider",header:u("common.provider"),sort:(m)=>m.provider,render:(m)=>ae.jsxDEV("span",{className:"row",style:{gap:8},children:[ae.jsxDEV(an,{color:l.get(m.provider)??fo},void 0,!1,void 0,this),ae.jsxDEV("span",{className:"mono cell-primary",children:m.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"requests",header:u("common.requests"),align:"right",sort:(m)=>m.totalRequests,render:(m)=>ae.jsxDEV(Ma,{value:m.totalRequests,max:g,display:A(m.totalRequests)},void 0,!1,void 0,this)},{key:"errors",header:u("common.error-rate"),align:"right",sort:(m)=>m.totalRequests>0?m.failedRequests/m.totalRequests:0,render:(m)=>{let S=m.totalRequests>0?m.failedRequests/m.totalRequests:0;return ae.jsxDEV("span",{className:"row",style:{gap:8,justifyContent:"flex-end"},children:[ae.jsxDEV("span",{className:"num dim",children:A(m.failedRequests)},void 0,!1,void 0,this),ae.jsxDEV(ct,{tone:m.failedRequests>0?gr(S):"neutral",mono:!0,children:Mo(S)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}},{key:"models",header:u("common.models"),title:u("providers.models-title"),align:"right",sort:(m)=>m.models,render:(m)=>ae.jsxDEV("span",{className:"num",children:A(m.models)},void 0,!1,void 0,this)},{key:"tokens",header:u("common.tokens"),title:u("providers.tokens-title"),align:"right",sort:(m)=>m.totalTokens,render:(m)=>ae.jsxDEV(Ma,{value:m.totalTokens,max:v,display:se(m.totalTokens),color:l.get(m.provider)},void 0,!1,void 0,this)},{key:"share",header:u("common.share"),title:u("providers.share-title"),align:"right",sort:(m)=>m.totalTokens,render:(m)=>ae.jsxDEV("span",{className:"num muted",children:Ge(h>0?m.totalTokens/h:0)},void 0,!1,void 0,this)},{key:"cost",header:u("common.cost"),title:u("providers.cost-title"),align:"right",sort:(m)=>m.totalCost,render:(m)=>ae.jsxDEV("span",{className:"num",title:m.unpricedRequests>0?u("providers.unpriced-n",{count:A(m.unpricedRequests)}):void 0,children:oa(m.totalCost,m.unpricedRequests)},void 0,!1,void 0,this)},{key:"tps",header:u("common.tokens-per-second"),title:u("providers.tps-title"),align:"right",sort:(m)=>m.avgTokensPerSecond??-1,render:(m)=>ae.jsxDEV("span",{className:"num",children:Gn(m.avgTokensPerSecond)},void 0,!1,void 0,this)},{key:"premium",header:u("common.premium"),title:u("providers.premium-title"),align:"right",sort:(m)=>m.totalPremiumRequests,render:(m)=>ae.jsxDEV("span",{className:m.totalPremiumRequests>0?"num":"num dim",children:A(Math.round(m.totalPremiumRequests*100)/100)},void 0,!1,void 0,this)}]},[r,l]);return ae.jsxDEV(Ft,{rows:r,rowKey:(g)=>g.provider,columns:f,initialSort:{key:"tokens",dir:"desc"},limit:12,selectedKey:i,onRowClick:(g)=>d((v)=>v===g.provider?null:g.provider),expanded:(g)=>g.provider===i?ae.jsxDEV(Aq,{provider:g},void 0,!1,void 0,this):null,empty:ae.jsxDEV(Je,{title:u("providers.no-requests-in-range")},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function Aq({provider:r}){let l={input:r.totalInputTokens,cacheRead:r.totalCacheReadTokens,cacheWrite:r.totalCacheWriteTokens,output:r.totalOutputTokens};return ae.jsxDEV("div",{className:"providers-mix",children:[ae.jsxDEV($n,{segments:B2().map((i)=>({key:i.key,label:i.label,value:l[i.key],color:i.color}))},void 0,!1,void 0,this),ae.jsxDEV(ia,{items:B2().map((i)=>({key:i.key,label:i.label,color:i.color,value:`${se(l[i.key])} · ${r.totalTokens>0?Ge(l[i.key]/r.totalTokens,0):"–"}`}))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Zf="";function Mq({hourly:r,providers:l,stale:i}){let[d,f]=Ho.useState(Zf),g=d===Zf||l.some((m)=>m.provider===d)?d:Zf,v=Ho.useMemo(()=>{let m=Array.from({length:24},()=>0),S=Array.from({length:24},()=>0),y=Array.from({length:24},()=>0);for(let C of r){if(g!==Zf&&C.provider!==g)continue;m[C.hour]+=C.totalTokens,S[C.hour]+=C.outputTokens,y[C.hour]+=C.requests}let b=0;for(let C=1;C<24;C++)if(m[C]>m[b])b=C;let L=m[b]>0;return{series:[{key:"tokens",label:u("common.tokens"),color:"var(--chart-primary)",values:m.map((C,I)=>L&&I===b?null:C)},{key:"peak",label:u("providers.tokens-peak-hour"),color:"var(--chart-secondary)",values:m.map((C,I)=>L&&I===b?C:null)}],output:S,requests:y,peak:b,hasData:L}},[r,g]),h=(m)=>`${String(m).padStart(2,"0")}:00`;return ae.jsxDEV(fe,{index:3,title:u("providers.peak-burn-hours"),description:v.hasData?u("providers.peak-hours-description",{hour:h(v.peak)}):u("providers.hours-description"),actions:ae.jsxDEV("select",{className:"input providers-select",value:g,onChange:(m)=>f(m.target.value),"aria-label":u("common.provider"),children:[ae.jsxDEV("option",{value:Zf,children:u("providers.all-providers")},void 0,!1,void 0,this),l.map((m)=>ae.jsxDEV("option",{value:m.provider,children:m.provider},m.provider,!1,void 0,this))]},void 0,!0,void 0,this),stale:i,children:ae.jsxDEV(vr,{slots:24,tickLabel:(m)=>String(m).padStart(2,"0"),tooltipTitle:(m)=>`${h(m)}–${h((m+1)%24)}`,series:v.series,height:260,showTotal:!1,formatTooltip:A,emptyLabel:u("providers.no-activity-in-range"),tooltipExtra:(m)=>ae.jsxDEV(ae.Fragment,{children:[ae.jsxDEV("div",{className:"chart-tooltip-row",children:[ae.jsxDEV("span",{className:"chart-tooltip-label",children:u("common.output")},void 0,!1,void 0,this),ae.jsxDEV("span",{className:"chart-tooltip-value",children:A(v.output[m])},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ae.jsxDEV("div",{className:"chart-tooltip-row",children:[ae.jsxDEV("span",{className:"chart-tooltip-label",children:u("common.requests")},void 0,!1,void 0,this),ae.jsxDEV("span",{className:"chart-tooltip-value",children:A(v.requests[m])},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function Dq({insights:r,selected:l,onSelect:i}){return ae.jsxDEV(Ft,{rows:r,rowKey:(d)=>`${d.provider}::${d.windowKey}`,columns:Eq(),initialSort:{key:"consumed",dir:"desc"},limit:12,selectedKey:l?`${l.provider}::${l.windowKey}`:null,onRowClick:(d)=>i({provider:d.provider,windowKey:d.windowKey}),empty:ae.jsxDEV(Je,{title:u("providers.no-snapshots-in-range"),hint:u("providers.snapshot-hint")},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function Eq(){return[{key:"window",header:u("providers.window"),sort:(r)=>`${r.provider} ${r.windowKey}`,render:(r)=>ae.jsxDEV(co,{primary:r.windowKey,secondary:ae.jsxDEV("span",{className:"mono",children:r.provider},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"accounts",header:u("providers.accounts"),title:u("providers.accounts-title"),align:"right",sort:(r)=>r.accounts,render:(r)=>ae.jsxDEV("span",{className:"num",children:A(r.accounts)},void 0,!1,void 0,this)},{key:"cycles",header:u("providers.resets"),title:u("providers.resets-title"),align:"right",sort:(r)=>r.cycles,render:(r)=>ae.jsxDEV("span",{className:"num muted",children:A(r.cycles)},void 0,!1,void 0,this)},{key:"consumed",header:u("providers.windows-burned"),title:u("providers.windows-burned-title"),align:"right",sort:(r)=>r.fractionConsumed,render:(r)=>ae.jsxDEV("span",{className:"num",children:r.fractionConsumed.toFixed(2)},void 0,!1,void 0,this)},{key:"capacity",header:u("providers.tokens-per-window"),title:u("providers.tokens-per-window-title"),align:"right",sort:(r)=>r.estTokensPerWindow??-1,render:(r)=>r.estTokensPerWindow!==null?ae.jsxDEV("span",{className:"num",children:se(r.estTokensPerWindow)},void 0,!1,void 0,this):ae.jsxDEV("span",{className:"dim",title:u("providers.too-little-consumed"),children:"–"},void 0,!1,void 0,this)},{key:"peak",header:u("providers.peak-utilization"),title:u("providers.peak-utilization-title"),align:"right",sort:(r)=>r.peakConcurrentFraction,render:(r)=>{let l=r.accounts>0?r.peakConcurrentFraction/r.accounts:0;return ae.jsxDEV(Ma,{value:r.peakConcurrentFraction,max:r.accounts,display:Ge(r.peakConcurrentFraction,0),color:l>=0.9?"var(--warn)":void 0},void 0,!1,void 0,this)}},{key:"ideal",header:u("providers.accounts-needed"),title:u("providers.accounts-needed-title"),align:"right",sort:(r)=>r.idealAccounts-r.accounts,render:(r)=>r.idealAccounts>r.accounts?ae.jsxDEV(ct,{tone:"warn",mono:!0,children:u("providers.ideal-accounts",{ideal:A(r.idealAccounts),have:A(r.accounts)})},void 0,!1,void 0,this):ae.jsxDEV("span",{className:"num",children:A(r.idealAccounts)},void 0,!1,void 0,this)},{key:"exhausted",header:u("providers.exhaustions"),title:u("providers.exhaustions-title"),align:"right",sort:(r)=>r.exhaustedEvents,render:(r)=>r.exhaustedEvents>0?ae.jsxDEV(ct,{tone:"warn",mono:!0,children:u("providers.exhausted-n",{count:A(r.exhaustedEvents)})},void 0,!1,void 0,this):ae.jsxDEV("span",{className:"num dim",children:"0"},void 0,!1,void 0,this)}]}var pg=60000,Ds=60*pg,mg=24*Ds,Nq=[5*pg,15*pg,30*pg,Ds,2*Ds,3*Ds,6*Ds,12*Ds,mg],qq=240,Oq=6*Ds;function Bq({insights:r,accounts:l,selected:i,onSelect:d}){let[f,g]=Ur(),v=Ho.useMemo(()=>[...new Set((r??[]).map((C)=>C.provider))],[r]),h=Ho.useMemo(()=>(r??[]).filter((C)=>C.provider===i?.provider).map((C)=>({key:C.windowKey,label:C.windowKey})),[r,i?.provider]),m=Ho.useMemo(()=>(l.data?.usageSeries??[]).filter((C)=>C.provider===i?.provider),[l.data,i?.provider]),S=m.length===0&&(l.loading||l.stale),y=Ho.useMemo(()=>{let C=new Map;for(let R of m){let O=C.get(R.accountLabel)??[];if(!O.includes(R.accountKey))O.push(R.accountKey);C.set(R.accountLabel,O)}let I=new Map;for(let[R,O]of C)O.sort(),O.forEach((z,Y)=>I.set(z,O.length>1?`${R} #${Y+1}`:R));return I},[m]),b=Ho.useMemo(()=>zq(m.filter((C)=>C.windowKey===i?.windowKey),y),[m,y,i?.windowKey]),L=Ho.useMemo(()=>{let C=new Map(b.series.map((I)=>[I.key,I.color]));return m.map((I)=>{let R=null,O=null;for(let W of I.points){if(W.usedFraction===null)continue;if(O=Math.max(O??0,W.usedFraction),!R||W.timestamp>=R.timestamp)R={fraction:W.usedFraction,exhausted:W.exhausted,timestamp:W.timestamp}}let z=I.windowKey===i?.windowKey?C.get(I.accountKey)??null:null,Y=y.get(I.accountKey)??I.accountLabel;return{series:I,name:Y,color:z,latest:R,peak:O,samples:I.points.length}}).sort((I,R)=>Number(R.color!==null)-Number(I.color!==null)||I.series.windowKey.localeCompare(R.series.windowKey)||(R.latest?.fraction??-1)-(I.latest?.fraction??-1))},[m,y,b.series,i?.windowKey]),T=h.find((C)=>C.key===i?.windowKey)?.label;return ae.jsxDEV(fe,{index:5,title:u("providers.utilization"),description:b.buckets.length>0?u("providers.utilization-description",{window:T??u("providers.window"),from:Sb(b.first),to:Sb(b.last)}):u("providers.utilization-description-plain"),actions:i&&ae.jsxDEV("div",{className:"row",style:{gap:6},children:[ae.jsxDEV("select",{className:"input providers-select",value:i.provider,onChange:(C)=>{let I=C.target.value,R=r?.find((O)=>O.provider===I);if(R)d({provider:I,windowKey:R.windowKey})},"aria-label":u("common.provider"),children:v.map((C)=>ae.jsxDEV("option",{value:C,children:C},C,!1,void 0,this))},void 0,!1,void 0,this),ae.jsxDEV("select",{className:"input providers-select",value:i.windowKey,onChange:(C)=>d({provider:i.provider,windowKey:C.target.value}),"aria-label":u("providers.window"),children:h.map((C)=>ae.jsxDEV("option",{value:C.key,children:C.label},C.key,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),stale:l.stale,children:r===null?ae.jsxDEV(qt,{height:260},void 0,!1,void 0,this):i===null?ae.jsxDEV(Je,{title:u("providers.no-snapshots-in-range"),hint:u("providers.snapshot-hint")},void 0,!1,void 0,this):ae.jsxDEV(_e,{query:l,skeleton:ae.jsxDEV(qt,{height:260},void 0,!1,void 0,this),children:()=>S?ae.jsxDEV(qt,{height:260},void 0,!1,void 0,this):ae.jsxDEV("div",{className:"stack",style:{gap:16},children:[ae.jsxDEV("div",{className:"stack",style:{gap:12},children:[ae.jsxDEV(vr,{slots:b.buckets.length,tickLabel:(C)=>Vh(b.buckets[C],b.last-b.first>mg?mg:b.bucketMs),tooltipTitle:(C)=>td(b.buckets[C],Ds),series:b.series,hidden:f,kind:"line",stacked:!1,height:260,yMax:Math.max(1,b.max),format:(C)=>Ge(C,0),formatTooltip:(C)=>Ge(C,1),references:[{value:1,label:"100%"}],emptyLabel:u("providers.no-utilization-readings"),tooltipExtra:(C)=>{let I=b.exhausted[C];return I.length>0?ae.jsxDEV("div",{className:"chart-tooltip-row",children:[ae.jsxDEV("span",{className:"chart-tooltip-label tone-bad",children:u("providers.exhausted")},void 0,!1,void 0,this),ae.jsxDEV("span",{className:"chart-tooltip-value",children:I.join(", ")},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null}},void 0,!1,void 0,this),b.series.length>1&&ae.jsxDEV(ia,{items:b.series.map((C)=>({key:C.key,label:C.label,color:C.color})),hidden:f,onToggle:g},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ae.jsxDEV("div",{className:"providers-accounts",children:ae.jsxDEV(Ft,{rows:L,rowKey:(C)=>`${C.series.windowKey}::${C.series.accountKey}`,columns:Uq(),limit:16,onRowClick:(C)=>d({provider:C.series.provider,windowKey:C.series.windowKey}),dense:!0},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function zq(r,l){let{POSITIVE_INFINITY:i,NEGATIVE_INFINITY:d}=Number;for(let L of r)for(let T of L.points){if(T.timestamp<i)i=T.timestamp;if(T.timestamp>d)d=T.timestamp}if(!(d>=i))return{buckets:[],bucketMs:Ds,first:0,last:0,max:0,series:[],exhausted:[]};let f=d-i,g=Nq.find((L)=>f/L<qq)??mg,v=oo("all",[i],g,d),h=v.map(()=>[]),m=0,S=(L)=>l.get(L.accountKey)??L.accountLabel,b=[...r].sort((L,T)=>S(L).localeCompare(S(T))).map((L,T)=>{let C=v.map(()=>null),I=v.map(()=>0);for(let z of L.points){let Y=cg(v,z.timestamp);if(Y<0)continue;if(z.exhausted&&!h[Y].includes(S(L)))h[Y].push(S(L));if(z.usedFraction===null||z.timestamp<I[Y])continue;C[Y]=z.usedFraction,I[Y]=z.timestamp,m=Math.max(m,z.usedFraction)}let R=null,O=0;for(let z=0;z<v.length;z++)if(C[z]!==null)R=C[z],O=I[z];else if(R!==null&&v[z]-O<=Oq)C[z]=R;return{key:L.accountKey,label:S(L),color:za[T%za.length],values:C}});return{buckets:v,bucketMs:g,first:i,last:d,max:m,series:b,exhausted:h}}function Pq(r){if(!r)return ae.jsxDEV("span",{className:"dim",children:u("providers.no-reading")},void 0,!1,void 0,this);if(r.exhausted)return ae.jsxDEV(ct,{tone:"bad",children:u("providers.exhausted")},void 0,!1,void 0,this);if(r.fraction>=0.8)return ae.jsxDEV(ct,{tone:"warn",children:u("providers.high")},void 0,!1,void 0,this);return ae.jsxDEV(ct,{tone:"ok",children:u("ui.status-ok")},void 0,!1,void 0,this)}function Uq(){return[{key:"account",header:u("providers.account"),sort:(r)=>r.name,render:(r)=>ae.jsxDEV("span",{className:"row",style:{gap:8},children:[ae.jsxDEV("span",{className:"providers-swatch-slot",children:r.color&&ae.jsxDEV(an,{color:r.color},void 0,!1,void 0,this)},void 0,!1,void 0,this),ae.jsxDEV("span",{className:"truncate providers-account",title:r.series.accountKey,children:r.name},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"window",header:u("providers.window"),sort:(r)=>r.series.windowKey,render:(r)=>ae.jsxDEV("span",{className:r.color?void 0:"muted",children:r.series.windowKey},void 0,!1,void 0,this)},{key:"latest",header:u("providers.latest-used"),align:"right",sort:(r)=>r.latest?.fraction??-1,render:(r)=>r.latest?ae.jsxDEV(Ma,{value:r.latest.fraction,max:1,display:Ge(r.latest.fraction,0),color:r.latest.exhausted?"var(--bad)":r.latest.fraction>=0.8?"var(--warn)":"var(--ok)"},void 0,!1,void 0,this):ae.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this)},{key:"status",header:u("providers.status"),sort:(r)=>r.latest?.exhausted?2:(r.latest?.fraction??0)>=0.8?1:0,render:(r)=>Pq(r.latest)},{key:"peak",header:u("providers.peak-in-range"),align:"right",sort:(r)=>r.peak??-1,render:(r)=>ae.jsxDEV("span",{className:"num",children:r.peak===null?"–":Ge(r.peak,0)},void 0,!1,void 0,this)},{key:"samples",header:u("providers.snapshots"),align:"right",sort:(r)=>r.samples,render:(r)=>ae.jsxDEV("span",{className:"num muted",children:A(r.samples)},void 0,!1,void 0,this)},{key:"recorded",header:u("providers.recorded"),align:"right",sort:(r)=>r.latest?.timestamp??0,render:(r)=>ae.jsxDEV("span",{className:"muted",children:r.latest?ma(r.latest.timestamp):"–"},void 0,!1,void 0,this)}]}var Fi=_(Ke(),1);var pt=_(te(),1),_q={ok:"ok",aborted:"warn",failed:"bad"},Hq={ok:"ui.status-ok",aborted:"common.aborted",failed:"common.failed"};function hg(r){return{label:u(Hq[r]),tone:_q[r]}}function P2({id:r,onClose:l}){let i=Pt(["request",r],({signal:g})=>sI(r??0,g),{enabled:r!==null}),d=i.stale?null:i.data,f=d?hg(As(d)):null;return pt.jsxDEV(ad,{open:r!==null,onClose:l,width:620,title:d?pt.jsxDEV("span",{className:"mono",children:d.model},void 0,!1,void 0,this):u("common.request"),subtitle:d?pt.jsxDEV(pt.Fragment,{children:[d.provider," ·"," ",pt.jsxDEV("span",{title:ro(d.timestamp),children:ma(d.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this):r!==null?pt.jsxDEV("span",{className:"mono",children:["#",r]},void 0,!0,void 0,this):void 0,actions:d&&f?pt.jsxDEV("div",{className:"row",style:{gap:6},children:[pt.jsxDEV("a",{className:"btn","data-size":"sm","data-variant":"ghost",href:ng({...jf(window.location.hash),section:"traces",session:d.sessionFile}),onClick:l,title:u("ui.open-trace"),children:[pt.jsxDEV(Sf,{size:13},void 0,!1,void 0,this)," Trace"]},void 0,!0,void 0,this),pt.jsxDEV(ct,{tone:f.tone,children:f.label},void 0,!1,void 0,this)]},void 0,!0,void 0,this):void 0,children:d?pt.jsxDEV(Fq,{details:d,aborted:As(d)==="aborted"},void 0,!1,void 0,this):i.error?pt.jsxDEV(Nl,{error:i.error,onRetry:i.refetch},void 0,!1,void 0,this):pt.jsxDEV("div",{className:"stack",style:{gap:12},children:[pt.jsxDEV(Ga,{height:56},void 0,!1,void 0,this),pt.jsxDEV(Ga,{height:120},void 0,!1,void 0,this),pt.jsxDEV(Ga,{height:120},void 0,!1,void 0,this),pt.jsxDEV(Ga,{height:220},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function Fq({details:r,aborted:l}){let{usage:i}=r,d=r.duration!==null&&r.duration>0&&i.output>0?i.output*1000/r.duration:null,{messages:f,output:g,...v}=r;return pt.jsxDEV(pt.Fragment,{children:[r.errorMessage&&pt.jsxDEV("section",{className:"request-drawer-error","data-tone":l?"warn":"bad",role:"note",children:[pt.jsxDEV("div",{className:"request-drawer-error-label",children:l?u("common.aborted"):u("common.error")},void 0,!1,void 0,this),pt.jsxDEV("pre",{className:"request-drawer-error-text",children:r.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this),pt.jsxDEV("section",{children:[pt.jsxDEV("div",{className:"section-label",children:u("ui.section-timing")},void 0,!1,void 0,this),pt.jsxDEV(ko,{items:[{key:"at",label:u("common.started"),value:ro(r.timestamp)},{key:"duration",label:u("common.duration"),value:Ct(r.duration)},{key:"ttft",label:u("ui.time-to-first-token"),value:Ct(r.ttft)},{key:"tps",label:u("common.output-tokens-per-second"),value:Gn(d)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),pt.jsxDEV("section",{children:[pt.jsxDEV("div",{className:"section-label",children:u("common.tokens")},void 0,!1,void 0,this),pt.jsxDEV(ko,{items:[{key:"input",label:u("ui.uncached-input"),value:A(i.input)},{key:"cacheRead",label:u("common.cache-read"),value:A(i.cacheRead)},{key:"cacheWrite",label:u("common.cache-write"),value:A(i.cacheWrite)},{key:"output",label:u("common.output"),value:A(i.output)},{key:"total",label:u("common.total"),value:A(i.totalTokens)},{key:"premium",label:u("common.premium-requests"),value:A(Math.round((i.premiumRequests??0)*100)/100)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),pt.jsxDEV("section",{children:[pt.jsxDEV("div",{className:"section-label",children:u("ui.section-cost")},void 0,!1,void 0,this),pt.jsxDEV(ko,{items:[{key:"total",label:"Total",value:ql(r,4)},{key:"input",label:u("common.input"),value:zt(i.cost.input,4)},{key:"cacheRead",label:"Cache read",value:zt(i.cost.cacheRead,4)},{key:"cacheWrite",label:"Cache write",value:zt(i.cost.cacheWrite,4)},{key:"output",label:"Output",value:zt(i.cost.output,4)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),pt.jsxDEV("section",{children:[pt.jsxDEV("div",{className:"section-label",children:u("ui.section-identity")},void 0,!1,void 0,this),pt.jsxDEV(ko,{items:[{key:"id",label:u("common.request-id"),value:r.id??"–"},{key:"entry",label:u("common.entry-id"),value:r.entryId},{key:"stop",label:u("ui.stop-reason"),value:r.stopReason},{key:"api",label:"API",value:r.api},{key:"project",label:u("common.project"),value:pt.jsxDEV("span",{title:r.folder,children:Pr(r.folder)},void 0,!1,void 0,this)}]},void 0,!1,void 0,this),pt.jsxDEV("div",{className:"request-drawer-file",children:[pt.jsxDEV("span",{className:"kv-key",children:u("ui.session-file")},void 0,!1,void 0,this),pt.jsxDEV("span",{className:"kv-value",children:r.sessionFile},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),g!=null&&pt.jsxDEV(od,{data:g,title:u("common.output-message")},void 0,!1,void 0,this),pt.jsxDEV(od,{data:f,title:u("common.session-entry"),initialCollapsed:!0},void 0,!1,void 0,this),pt.jsxDEV(od,{data:v,title:u("ui.stats-row"),initialCollapsed:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var ut=_(te(),1),Ob=[500,2000,1e4];function U2({active:r,range:l,onRequestClick:i}){let[d,f]=Fi.useState(0),g=Ob[d],v=Pt(["requests-log",g],({signal:W})=>jh(g,W),{enabled:r}),[h,m]=Fi.useState(""),[S,y]=Fi.useState("all"),b=aa(l),L=Fi.useMemo(()=>{let W=v.data??[],ue=b.spanMs===null?null:Date.now()-b.spanMs,Z=ue===null?W:W.filter((G)=>G.timestamp>=ue),ce=!v.stale&&(W.length<g||ue!==null&&Z.length<W.length),ee={all:Z.length,ok:0,aborted:0,failed:0};for(let G of Z)ee[As(G)]++;return{loaded:W.length,inRange:Z,complete:ce,counts:ee,summary:g2(Z)}},[v.data,v.stale,g,b.spanMs]),T=Fi.useMemo(()=>{let W=h.trim().toLowerCase();return L.inRange.filter((ue)=>(S==="all"||As(ue)===S)&&(W===""||ue.model.toLowerCase().includes(W)||ue.provider.toLowerCase().includes(W)||ue.folder.toLowerCase().includes(W)))},[L.inRange,h,S]),{summary:C,counts:I,complete:R}=L,O=d+1<Ob.length?Ob[d+1]:null,z=O!==null?ut.jsxDEV("button",{type:"button",className:"btn","data-size":"sm",disabled:v.refreshing,onClick:()=>f(d+1),children:v.refreshing&&v.stale?u("requests.loading"):u("requests.load-latest",{count:A(O)})},void 0,!1,void 0,this):void 0,Y=["all","ok","aborted","failed"].map((W)=>({value:W,label:ut.jsxDEV(ut.Fragment,{children:[W==="all"?u("requests.status-all"):hg(W).label," ",ut.jsxDEV("span",{className:"dim num",children:se(I[W])},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}));return ut.jsxDEV("div",{className:"page",children:[ut.jsxDEV(la,{title:u("common.requests"),description:u("requests.description",{window:u(b.windowKey)})},void 0,!1,void 0,this),ut.jsxDEV(_e,{query:v,skeleton:ut.jsxDEV(Ga,{height:96,style:{borderRadius:12}},void 0,!1,void 0,this),children:()=>ut.jsxDEV("div",{"data-stale":v.stale,children:ut.jsxDEV(wa,{min:160,children:[ut.jsxDEV(ie,{label:u("common.requests"),value:A(C.requests),hint:C.oldest===null?u("requests.none-in-window",{window:u(b.windowKey)}):u("requests.since",{time:ma(C.oldest)})},void 0,!1,void 0,this),ut.jsxDEV(ie,{label:u("common.failed"),value:A(C.failed),hint:u("requests.failed-hint",{rate:C.requests>0?Mo(C.failed/C.requests):"–",count:A(C.aborted)})},void 0,!1,void 0,this),ut.jsxDEV(ie,{label:u("common.tokens"),title:u("requests.tokens-hint"),value:se(C.tokens)},void 0,!1,void 0,this),ut.jsxDEV(ie,{label:u("requests.api-equivalent-cost"),title:u("requests.cost-hint"),value:oa(C.cost,C.unpriced),hint:C.unpriced>0?u("requests.unpriced-n",{count:A(C.unpriced)}):void 0},void 0,!1,void 0,this),ut.jsxDEV(ie,{label:u("requests.median-duration"),value:Ct(C.medianDuration),hint:u("requests.p95",{value:Ct(C.p95Duration)})},void 0,!1,void 0,this),ut.jsxDEV(ie,{label:u("requests.median-ttft"),title:u("requests.ttft-hint"),value:Ct(C.medianTtft)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),ut.jsxDEV(fe,{index:1,title:u("requests.log-title"),description:v.data===null?u("requests.log-loading"):R?u("requests.log-count-in-window",{shown:A(T.length),total:A(C.requests),window:u(b.windowKey)}):u("requests.log-count-latest",{shown:A(T.length),total:A(C.requests)}),actions:ut.jsxDEV(ut.Fragment,{children:[ut.jsxDEV(Fn,{value:h,onChange:m,placeholder:u("requests.search-placeholder")},void 0,!1,void 0,this),ut.jsxDEV(Oa,{size:"sm","aria-label":u("requests.status"),options:Y,value:S,onChange:y},void 0,!1,void 0,this)]},void 0,!0,void 0,this),flush:!0,stale:v.stale,footer:v.data!==null&&!R?ut.jsxDEV(ut.Fragment,{children:[ut.jsxDEV("span",{children:u("requests.footer",{count:A(L.loaded),time:C.oldest===null?"–":ro(C.oldest),window:u(b.windowKey)})},void 0,!1,void 0,this),z]},void 0,!0,void 0,this):void 0,children:ut.jsxDEV(_e,{query:v,skeleton:ut.jsxDEV(pa,{rows:12},void 0,!1,void 0,this),children:()=>ut.jsxDEV(Ft,{rows:T,rowKey:(W)=>W.id??`${W.sessionFile}:${W.entryId}`,onRowClick:(W)=>W.id!==void 0&&i(W.id),columns:Gq(),initialSort:{key:"time",dir:"desc"},limit:100,dense:!0,empty:ut.jsxDEV(Je,{title:C.requests===0?u("requests.empty-in-window",{window:u(b.windowKey)}):u("requests.empty-no-match"),hint:C.requests===0?void 0:u("requests.empty-no-match-hint")},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Gq(){return[{key:"model",header:u("common.model"),sort:(r)=>r.model,render:(r)=>ut.jsxDEV(co,{primary:ut.jsxDEV("span",{className:"mono",children:r.model},void 0,!1,void 0,this),secondary:r.provider},void 0,!1,void 0,this)},{key:"time",header:u("requests.when"),sort:(r)=>r.timestamp,render:(r)=>ut.jsxDEV("span",{className:"muted",title:ro(r.timestamp),children:ma(r.timestamp)},void 0,!1,void 0,this)},{key:"project",header:u("common.project"),sort:(r)=>r.folder,render:(r)=>ut.jsxDEV("span",{className:"mono muted truncate",title:r.folder,style:{display:"block",maxWidth:180},children:Pr(r.folder)},void 0,!1,void 0,this)},{key:"input",header:u("common.input"),title:u("requests.uncached-input"),align:"right",sort:(r)=>r.usage.input,render:(r)=>ut.jsxDEV("span",{className:"num",children:se(r.usage.input)},void 0,!1,void 0,this)},{key:"cache",header:u("common.cache-read"),title:u("requests.cache-read-title"),align:"right",sort:(r)=>r.usage.cacheRead,render:(r)=>ut.jsxDEV("span",{className:"num",title:u("requests.cache-write",{count:A(r.usage.cacheWrite)}),children:se(r.usage.cacheRead)},void 0,!1,void 0,this)},{key:"output",header:u("common.output"),align:"right",sort:(r)=>r.usage.output,render:(r)=>ut.jsxDEV("span",{className:"num",children:se(r.usage.output)},void 0,!1,void 0,this)},{key:"cost",header:u("common.cost"),title:u("requests.cost-estimate"),align:"right",sort:(r)=>r.usage.cost.total,render:(r)=>ut.jsxDEV("span",{className:"num",children:ql(r,4)},void 0,!1,void 0,this)},{key:"duration",header:u("common.duration"),align:"right",sort:(r)=>r.duration??-1,render:(r)=>ut.jsxDEV("span",{className:"num",children:Ct(r.duration)},void 0,!1,void 0,this)},{key:"ttft",header:u("requests.ttft"),title:u("requests.ttft-hint"),align:"right",sort:(r)=>r.ttft??-1,render:(r)=>ut.jsxDEV("span",{className:"num muted",children:Ct(r.ttft)},void 0,!1,void 0,this)},{key:"status",header:u("requests.status"),sort:(r)=>As(r),render:(r)=>{let l=hg(As(r));return ut.jsxDEV("span",{title:r.errorMessage??void 0,children:ut.jsxDEV(co,{lead:ut.jsxDEV(Hn,{tone:l.tone},void 0,!1,void 0,this),primary:l.label,secondary:ut.jsxDEV("span",{className:"mono",children:r.stopReason},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}}]}var vR=_(Ke(),1);var _2=["January","February","March","April","May","June","July","August","September","October","November","December"],H2=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Vq=["MMMM","yyyy","EEEE","MMM","EEE","yy","MM","dd","HH","hh","mm","ss","M","d","H","h","m","s","a"];function Ol(r,l=2){return String(r).padStart(l,"0")}function jq(r,l){let i=r.getMonth(),d=r.getDay(),f=r.getHours(),g=f%12||12;switch(l){case"yyyy":return Ol(r.getFullYear(),4);case"yy":return Ol(r.getFullYear()%100);case"MMMM":return _2[i];case"MMM":return _2[i].slice(0,3);case"MM":return Ol(i+1);case"M":return String(i+1);case"dd":return Ol(r.getDate());case"d":return String(r.getDate());case"EEEE":return H2[d];case"EEE":return H2[d].slice(0,3);case"HH":return Ol(f);case"H":return String(f);case"hh":return Ol(g);case"h":return String(g);case"mm":return Ol(r.getMinutes());case"m":return String(r.getMinutes());case"ss":return Ol(r.getSeconds());case"s":return String(r.getSeconds());case"a":return f<12?"AM":"PM"}}function $q(r){let l=r instanceof Date?new Date(r.getTime()):new Date(r);if(Number.isNaN(l.getTime()))throw RangeError("Invalid time value");return l}function F2(r,l){let i=$q(r),d="";for(let f=0;f<l.length;){if(l[f]==="'"){if(l[f+1]==="'"){d+="'",f+=2;continue}f++;while(f<l.length){if(l[f]!=="'"){d+=l[f++];continue}if(l[f+1]==="'"){d+="'",f+=2;continue}f++;break}continue}let g=l.slice(f),v=Vq.find((m)=>g.startsWith(m));if(v){d+=jq(i,v),f+=v.length;continue}let h=l[f++];if(/[A-Za-z]/.test(h))throw RangeError(`Format string contains an unescaped latin alphabet character \`${h}\``);d+=h}return d}var Jf=_(Ke(),1);var gg=["artifact","reread","rerun"],Es={artifact:{label:"Artifact dive",plural:"Artifact dives",icon:of,color:"var(--spot-artifact)",rule:"A later call read or searched an artifact the shortened result named"},reread:{label:"Re-read",plural:"Re-reads",icon:yf,color:"var(--spot-reread)",rule:"A later read of the same file overlapping the hidden lines, or the whole file again"},rerun:{label:"Rerun",plural:"Reruns",icon:Ef,color:"var(--spot-rerun)",rule:"A call of the same tool within 12 calls repeating the shortened one: a bash command the same, with a pipe or redirect added, or ≥ 60% shared tokens; any other tool with ≥ 60% shared argument tokens"}};function Gi(r){return r.gross.byTool.map((l)=>l.tool)}var Xq=6,_r="other";function Qo(r,l=Xq){if(r.length<=l+1)return{listed:r,rest:[]};return{listed:r.slice(0,l),rest:r.slice(l)}}var Ua={applied:{label:"Shortened",color:"var(--spot-applied)",shape:"dot",rule:"Spotlight scored the result, shaping shortened it and the model saw the cut"},scoreFree:{label:"Score-free",color:"var(--spot-score-free)",shape:"square",rule:"A random coin skipped Spotlight: the no-score fallback rules shortened it and the model saw the cut"},holdout:{label:"Held out",color:"var(--spot-holdout)",shape:"ring",rule:"Spotlight would have shortened it, but it was held out at random and the model saw it whole"},reference:{label:"Unchanged",color:"var(--spot-reference)",shape:"diamond",rule:"Results shaping left unchanged, re-weighted to the cuts' original-size mix"},gated:{label:"Gated",color:"var(--spot-gated)",shape:"ring",rule:"A read pi's former edit gate (removed) kept whole: the model saw it uncut"}},Bb=["applied","scoreFree","holdout","gated","reference"],yg=["<250","250–1k","1k–4k","≥4k"],V2=["1","2","3","4–6","7–12"],G2={read:vf,bash:Ml,eval:wl,grep:zf,find:ws,glob:bf,edit:Rl,write:gf,web_search:kf,task:df,todo:If,wait:Lf,fetch:Cl,lsp:Df,[_r]:Tl};function Hr(r){return Object.hasOwn(G2,r)?G2[r]:Ei}function vg(r){if(r>=86400000)return"day";if(r>=3600000)return"hour";return`${Math.round(r/60000)} minutes`}function po(r){return r<0?`−${se(-r)}`:se(r)}function xr(r){return r<0?`−${zt(-r)}`:zt(r)}function Yn(r,l){return r.lo===null||r.hi===null?"":`${l(r.lo)}–${l(r.hi)}`}function jt(r){if(r===null||!Number.isFinite(r))return"–";if(r===0)return"0%";let l=Math.abs(r*100);return`${r<0?"−":""}${l>=10?l.toFixed(0):l.toFixed(1)}%`}var tt=_(te(),1);function Yq(r){let l=r.agentType==="main",i=(r.sessionFile.split("/").pop()??"").replace(/\.jsonl$/,""),d=r.title?.trim()||(l?Pr(r.folder):i);return`${l?d:`↳ ${d} (${r.agentType})`} · ${se(r.savedTokens)} saved`}function j2({stats:r,active:l,stale:i}){let{compounding:d}=r,[f,g]=Jf.useState(null),v=r.sessionList,h=v.find((C)=>C.savedTokens>0)??v[0],m=f!==null&&v.some((C)=>C.sessionFile===f)?f:h?.sessionFile,S=Pt(["spotlight-session",m??null],({signal:C})=>xI(m??"",C),{enabled:l&&m!==void 0}),y=d.avoidedTokens-d.recoveredCarriedTokens,b=r.gross.savedTokens>0?d.avoidedTokens/r.gross.savedTokens:null,L=S.data?.points,T=Jf.useMemo(()=>{if(!L)return null;let C=0,I=0;for(let R of L)C+=R.withoutTokens-R.contextTokens,I+=R.withoutTokens;return I>0?{share:C/I,tokens:C}:null},[L]);return tt.jsxDEV(fe,{index:3,title:"Compounding",description:"A cut is never re-read: each later request of the session carries a smaller context",actions:v.length>0&&tt.jsxDEV("select",{className:"input spot-session-select","aria-label":"Session",value:m??"",onChange:(C)=>g(C.target.value),children:v.map((C)=>tt.jsxDEV("option",{value:C.sessionFile,children:Yq(C)},C.sessionFile,!1,void 0,this))},void 0,!1,void 0,this),stale:i,footer:"Context = input + cache read + cache write of each request. A compaction is a request whose context is under 60% of the previous one's; it ends the carry.",children:tt.jsxDEV("div",{className:"spot-compounding",children:[tt.jsxDEV("div",{className:"spot-compounding-chart",children:m===void 0?tt.jsxDEV(Je,{title:"No experiment sessions in this range"},void 0,!1,void 0,this):S.data===null?S.error?tt.jsxDEV(Nl,{error:S.error,onRetry:S.refetch},void 0,!1,void 0,this):tt.jsxDEV(qt,{height:280},void 0,!1,void 0,this):tt.jsxDEV(Wq,{context:S.data,stale:S.stale},void 0,!1,void 0,this)},void 0,!1,void 0,this),tt.jsxDEV("aside",{className:"spot-compounding-side",children:[tt.jsxDEV("div",{className:"spot-eyebrow",children:"Context avoided in this session"},void 0,!1,void 0,this),tt.jsxDEV("div",{className:"spot-side-value",children:jt(T?.share??null)},void 0,!1,void 0,this),L!==void 0&&tt.jsxDEV("p",{className:"spot-side-copy",children:T===null?"This session has no recorded requests.":`of what its requests would have carried without Spotlight: ${po(T.tokens)} prompt tokens, net of recoveries.`},void 0,!1,void 0,this),S.data&&tt.jsxDEV(Kq,{session:S.data.session},void 0,!1,void 0,this),tt.jsxDEV("p",{className:"spot-side-range",children:[tt.jsxDEV("span",{className:"spot-side-range-value",children:jt(d.avoidedShare)},void 0,!1,void 0,this)," across all the sessions shown: cuts kept ",se(Math.max(0,y))," tokens out of later requests",b!==null&&tt.jsxDEV(tt.Fragment,{children:[", each saved token re-sent ",b.toFixed(1)," times on average"]},void 0,!0,void 0,this),"."]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function Kq({session:r}){return tt.jsxDEV("dl",{className:"spot-facts",children:[tt.jsxDEV("div",{children:[tt.jsxDEV("dt",{children:"Agent"},void 0,!1,void 0,this),tt.jsxDEV("dd",{className:"row",children:tt.jsxDEV(ct,{children:r.agentType},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),tt.jsxDEV("div",{children:[tt.jsxDEV("dt",{children:"Requests"},void 0,!1,void 0,this),tt.jsxDEV("dd",{className:"num",children:A(r.requests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),tt.jsxDEV("div",{children:[tt.jsxDEV("dt",{children:"Saved"},void 0,!1,void 0,this),tt.jsxDEV("dd",{className:"num",children:po(r.savedTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),tt.jsxDEV("div",{children:[tt.jsxDEV("dt",{children:"Net $"},void 0,!1,void 0,this),tt.jsxDEV("dd",{className:"num",children:xr(r.netUsd)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var Qq=[{key:"actual",label:"Context",color:"var(--spot-gross)"},{key:"ghost",label:"Without Spotlight",color:"var(--spot-ghost)"},{key:"compaction",label:"Compaction",color:"var(--line-4)"}];function Wq({context:r,stale:l}){let{points:i}=r,d=Jf.useMemo(()=>{let f=[{key:"actual",label:"Context",color:"var(--spot-gross)",kind:"area",values:i.map((v)=>v.contextTokens)},{key:"ghost",label:"Avoided",color:"var(--spot-ghost)",kind:"area",pattern:"hatch",dashed:!0,values:i.map((v)=>Math.max(0,v.withoutTokens-v.contextTokens))}],g=[];return i.forEach((v,h)=>{if(v.compacted)g.push({index:h})}),{series:f,markers:g}},[i]);if(i.length===0)return tt.jsxDEV(Je,{title:"No requests recorded for this session"},void 0,!1,void 0,this);return tt.jsxDEV("div",{className:"spot-context","data-stale":l,children:[tt.jsxDEV(ia,{items:Qq},void 0,!1,void 0,this),tt.jsxDEV(vr,{slots:i.length,series:d.series,markers:d.markers,height:280,tickLabel:(f)=>`#${f+1}`,tooltipTitle:(f)=>`Request ${f+1} · ${F2(new Date(i[f].timestamp),"MMM d HH:mm:ss")}`,formatTooltip:A,showTotal:!1,tooltipExtra:(f)=>{let g=i[f];return tt.jsxDEV("div",{className:"spot-tooltip-extra",children:[tt.jsxDEV("div",{className:"chart-tooltip-row chart-tooltip-total",children:[tt.jsxDEV("span",{className:"chart-tooltip-label",children:"Without Spotlight"},void 0,!1,void 0,this),tt.jsxDEV("span",{className:"chart-tooltip-value",children:A(g.withoutTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),g.saved>0&&tt.jsxDEV("div",{className:"chart-tooltip-row",children:[tt.jsxDEV("span",{className:"chart-tooltip-label",children:"Cut since last request"},void 0,!1,void 0,this),tt.jsxDEV("span",{className:"chart-tooltip-value",children:A(g.saved)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),g.recovered>0&&tt.jsxDEV("div",{className:"chart-tooltip-row",children:[tt.jsxDEV("span",{className:"chart-tooltip-label",children:"Fetched back"},void 0,!1,void 0,this),tt.jsxDEV("span",{className:"chart-tooltip-value",children:A(g.recovered)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),g.compacted&&tt.jsxDEV("div",{className:"chart-tooltip-row dim",children:"Compaction before this request"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Ja=_(te(),1),xg="var(--spot-applied)",bg="var(--spot-unshaped)";function $2({stats:r,stale:l}){let i=[...r.coverage].sort((m,S)=>S.tokens-m.tokens),{listed:d,rest:f}=Qo(i),g=0,v=0;for(let m of i)if(m.shaped)g+=m.share;else v+=m.share;let h=d.map((m)=>({key:m.tool,label:Ja.jsxDEV(Ja.Fragment,{children:[Ja.jsxDEV("span",{className:"spot-coverage-tool",children:m.tool},void 0,!1,void 0,this),m.shaped&&Ja.jsxDEV(ct,{children:"shaped"},void 0,!1,void 0,this),Ja.jsxDEV("span",{className:"dim num",children:[A(m.calls)," calls"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),value:m.share,display:`${jt(m.share)} · ${se(m.tokens)}`,color:m.shaped?xg:bg}));if(f.length>0){let m=0,S=0,y=0;for(let b of f)m+=b.share,S+=b.tokens,y+=b.calls;h.push({key:"\x00rest",label:Ja.jsxDEV(Ja.Fragment,{children:[Ja.jsxDEV("span",{className:"spot-coverage-tool",children:[A(f.length)," more ",f.length===1?"tool":"tools"]},void 0,!0,void 0,this),Ja.jsxDEV("span",{className:"dim num",children:[A(y)," calls"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),value:m,display:`${jt(m)} · ${se(S)}`,color:f.some((b)=>b.shaped)?xg:bg})}return Ja.jsxDEV(fe,{index:5,title:"Not shaped yet",description:"Share of the tool output experiment sessions' models saw, by tool: the unshaped ones are where shaping could reach next",actions:Ja.jsxDEV(ia,{items:[{key:"shaped",label:"Shaped",color:xg},{key:"unshaped",label:"Not shaped",color:bg}]},void 0,!1,void 0,this),stale:l,footer:"Tokens are tool-result chars ÷ 4 over the experiment's sessions in the range; a tool counts as shaped when the experiment evaluated any of its results in the range.",children:i.length===0?Ja.jsxDEV("div",{className:"empty",children:"No tool output in this range."},void 0,!1,void 0,this):Ja.jsxDEV("div",{className:"spot-coverage",children:[Ja.jsxDEV("div",{className:"spot-coverage-summary",children:[Ja.jsxDEV("div",{className:"spot-coverage-headline",children:[Ja.jsxDEV("span",{className:"num",children:jt(v)},void 0,!1,void 0,this)," of tool output comes from tools the experiment did not shape in this range"]},void 0,!0,void 0,this),Ja.jsxDEV($n,{height:8,segments:[{key:"shaped",label:"Shaped",value:g,color:xg},{key:"unshaped",label:"Not shaped",value:v,color:bg}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ja.jsxDEV(Ts,{items:h},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var $t=_(te(),1),Zq=30,X2=5,Jq=120;function eO(r){return[`${r.tool}: ${A(r.cuts)} cuts`,`Saved ${se(r.savedTokens)} tokens (${zt(r.savedUsd)})`,`Fetched back ${se(r.recoveredTokens)} tokens (${zt(r.recoveryUsd)})`,`${A(r.extraTurns)} extra turns (${zt(r.turnUsd)})`,`Net ${xr(r.netUsd)}`].join(`
236
- `)}function tO(r){if(r.length===0)return;let l={tool:_r,cuts:0,savedTokens:0,recoveredTokens:0,extraTurns:0,savedUsd:0,recoveryUsd:0,turnUsd:0,netUsd:0,extraTurnsPer100Cuts:0,netUsdPer100Cuts:0};for(let i of r)l.cuts+=i.cuts,l.savedTokens+=i.savedTokens,l.recoveredTokens+=i.recoveredTokens,l.extraTurns+=i.extraTurns,l.savedUsd+=i.savedUsd,l.recoveryUsd+=i.recoveryUsd,l.turnUsd+=i.turnUsd,l.netUsd+=i.netUsd;if(l.cuts>0)l.extraTurnsPer100Cuts=l.extraTurns*100/l.cuts,l.netUsdPer100Cuts=l.netUsd*100/l.cuts;return l}function Y2({stats:r,stale:l}){let i=new Set(r.economics.filter((y)=>y.cuts>0).map((y)=>y.tool)),{listed:d,rest:f}=Qo(Gi(r).filter((y)=>i.has(y))),g=new Set(f),v=new Map(r.economics.filter((y)=>!g.has(y.tool)).map((y)=>[y.tool,y])),h=tO(r.economics.filter((y)=>g.has(y.tool)));if(h)v.set(_r,h);let m=f.length>0?[...d,_r]:d,S=0;for(let y of v.values())if(y.cuts>0)S=Math.max(S,Math.abs(y.netUsdPer100Cuts));return $t.jsxDEV(fe,{index:3,title:"What cuts earn, by tool",description:"Net dollars per 100 cuts after fetch-backs, extra turns and Spotlight's own bill",actions:S>0&&$t.jsxDEV("span",{className:"spot-econ-scale","aria-hidden":"true",children:[$t.jsxDEV("span",{className:"num",children:xr(-S)},void 0,!1,void 0,this),$t.jsxDEV("span",{className:"spot-econ-ramp"},void 0,!1,void 0,this),$t.jsxDEV("span",{className:"num",children:xr(S)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),stale:l,footer:"Shortened results only; held-out ones save nothing. Every fetch-back counts against the cut here, the share held-out results show comes back anyway included, so this is the cautious view. An extra turn is a request whose every tool call fetched back output these cuts hid. Dollars price saved and fetched-back tokens as carried context, like Compounding.",children:m.length===0?$t.jsxDEV("div",{className:"empty",children:"No shortened results in this range."},void 0,!1,void 0,this):$t.jsxDEV("div",{className:"spot-econ-scroll",children:$t.jsxDEV("table",{className:"spot-econ",style:{minWidth:`${m.length*Jq}px`},children:[$t.jsxDEV("thead",{children:$t.jsxDEV("tr",{children:m.map((y)=>{let b=Hr(y);return $t.jsxDEV("th",{scope:"col",title:y===_r?f.join(", "):y,children:$t.jsxDEV("span",{className:"row spot-econ-tool",children:[$t.jsxDEV(b,{size:13,"aria-hidden":"true"},void 0,!1,void 0,this),$t.jsxDEV("span",{className:"spot-econ-tool-name",children:y},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},y,!1,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),$t.jsxDEV("tbody",{children:$t.jsxDEV("tr",{children:m.map((y)=>{let b=v.get(y);if(b===void 0||b.cuts===0)return $t.jsxDEV("td",{children:$t.jsxDEV("div",{className:"spot-econ-cell","data-empty":"true",children:$t.jsxDEV("span",{className:"dim",children:"No cuts"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},y,!1,void 0,this);let L=b.netUsdPer100Cuts,T=S>0?X2+Math.sqrt(Math.abs(L)/S)*(Zq-X2):0,C=L<0?"bad":L>0?"ok":"neutral";return $t.jsxDEV("td",{children:$t.jsxDEV("div",{className:"spot-econ-cell","data-tone":C,style:{"--tint":`${T}%`},title:eO(b),children:[$t.jsxDEV("span",{className:"spot-econ-net num",children:xr(L)},void 0,!1,void 0,this),$t.jsxDEV("dl",{className:"spot-econ-facts",children:[$t.jsxDEV("div",{children:[$t.jsxDEV("dt",{children:"cuts"},void 0,!1,void 0,this),$t.jsxDEV("dd",{className:"num",children:A(b.cuts)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),$t.jsxDEV("div",{children:[$t.jsxDEV("dt",{children:"saved"},void 0,!1,void 0,this),$t.jsxDEV("dd",{className:"num",children:se(b.savedTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),$t.jsxDEV("div",{children:[$t.jsxDEV("dt",{children:"extra turns /100"},void 0,!1,void 0,this),$t.jsxDEV("dd",{className:"num",children:b.extraTurnsPer100Cuts.toFixed(1)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},y,!1,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var Pb=_(Ke(),1);var Ns=_(te(),1);function ep({groups:r}){return Ns.jsxDEV("div",{className:"legend spot-group-legend",children:r.map((l)=>Ns.jsxDEV("span",{className:"legend-item",title:Ua[l].rule,style:{"--dot":Ua[l].color},children:[Ns.jsxDEV("span",{className:"spot-group-mark","data-shape":Ua[l].shape,"aria-hidden":"true"},void 0,!1,void 0,this),Ua[l].label]},l,!0,void 0,this))},void 0,!1,void 0,this)}function tp({hidden:r,expanded:l,onToggle:i}){return Ns.jsxDEV("button",{type:"button",className:"btn spot-more-tools","data-variant":"ghost","data-size":"sm","aria-expanded":l,title:l?void 0:r.join(", "),onClick:i,children:l?"Show fewer tools":`Show ${r.length} more tools`},void 0,!1,void 0,this)}function zb({kind:r,count:l}){let i=Es[r],d=i.icon;return Ns.jsxDEV("span",{className:"spot-kind",style:{"--kind":i.color},title:l===void 0?i.rule:`${l} × ${i.label.toLowerCase()}: ${i.rule}`,children:[Ns.jsxDEV(d,{size:12,"aria-hidden":"true"},void 0,!1,void 0,this),l===void 0?i.label:Ns.jsxDEV("span",{className:"num",children:l},void 0,!1,void 0,this),l!==void 0&&Ns.jsxDEV("span",{className:"sr-only",children:i.plural},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Mt=_(te(),1),aO={applied:-12,scoreFree:-6,holdout:0,gated:6,reference:12},oO=["scoreFree","holdout","reference"],K2=["applied","holdout"],rO="One rule for every group: within 12 calls, a read of the same path overlapping the result's own window (the whole file without a selector), a rerun of the call (a similar bash command; for other tools, ≥ 60% shared argument tokens), or a read of an artifact it named; not after an edit of that path (reads) or any edit (reruns), nor from the same request.";function Q2({stats:r,stale:l}){let[i,d]=Pb.useState(!1),f=new Map;for(let y of r.fetchBack)f.set(`${y.tool}/${y.group}`,y);let g=new Set(r.fetchBack.filter((y)=>y.results>0).map((y)=>y.tool)),{listed:v,rest:h}=Qo(Gi(r).filter((y)=>g.has(y))),m=Bb.filter((y)=>y!=="gated"||r.fetchBack.some((b)=>b.group==="gated"&&b.results>0)),S=[];for(let y of i?[...v,...h]:v){let b=Hr(y),L=Bb.flatMap((R)=>{let O=f.get(`${y}/${R}`);return O!==void 0&&O.results>0?[O]:[]});if(L.length===0)continue;let T=new Map(L.map((R)=>[R.group,R])),C=T.get("applied"),I=L.map((R)=>({key:R.group,...R.rate,color:Ua[R.group].color,shape:Ua[R.group].shape,offset:aO[R.group],title:`${Ua[R.group].label}: ${jt(R.rate.value)} of ${A(R.results)} results in ${A(R.sessions)} sessions`}));S.push({key:y,label:Mt.jsxDEV("span",{className:"spot-fb-tool",title:y,children:[Mt.jsxDEV(b,{size:13,"aria-hidden":"true"},void 0,!1,void 0,this),Mt.jsxDEV("span",{className:"spot-fb-tool-name",children:y},void 0,!1,void 0,this)]},void 0,!0,void 0,this),marks:I,figure:Mt.jsxDEV("span",{style:{color:Ua.applied.color},title:Ua.applied.rule,children:C===void 0?"–":jt(C.rate.value)},void 0,!1,void 0,this),detail:Mt.jsxDEV(Mt.Fragment,{children:oO.map((R,O)=>{let z=T.get(R);return Mt.jsxDEV("span",{title:`${Ua[R].label}: ${Ua[R].rule}`,children:[O>0&&" · ",Mt.jsxDEV("span",{className:"spot-fb-detail","data-group":R,children:z===void 0?"–":jt(z.rate.value)},void 0,!1,void 0,this)]},R,!0,void 0,this)})},void 0,!1,void 0,this)})}return Mt.jsxDEV(fe,{index:3,title:"Does the agent come back for it?",description:"Share of results the agent fetched more of within 12 calls: cut with Spotlight's scores, cut without them, held out at random, kept whole by pi's former edit gate, and left unchanged",stale:l,footer:`${rO} Held-out results are the true counterfactual: drawn at random from the would-be cuts and shown whole; until they accumulate, unchanged results stand in, re-weighted to the cuts' size mix. Score-free cuts skip Spotlight by a second coin and take the no-score fallback rules: if they come back as often as scored cuts, the scores add nothing. Gated reads are reads pi's former edit gate (removed) kept whole, listed only where the range has any. Small print: score-free · held out · unchanged. Whiskers are 90% session bootstrap intervals, from 3 sessions.`,children:S.length===0?Mt.jsxDEV("div",{className:"empty",children:"No evaluated results in this range."},void 0,!1,void 0,this):Mt.jsxDEV("div",{className:"spot-fb",children:[Mt.jsxDEV(ep,{groups:m},void 0,!1,void 0,this),Mt.jsxDEV(lg,{rows:S,format:jt,formatTick:(y)=>`${Math.round(y*100)}%`},void 0,!1,void 0,this),h.length>0&&Mt.jsxDEV(tp,{hidden:h,expanded:i,onToggle:()=>d((y)=>!y)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function nO({tool:r,counts:l}){let i=Hr(r),d=new Map(l.map((m)=>[m.gap,m])),f=0,g=0;for(let m of l)f+=m.applied,g+=m.holdout;let v={applied:f,holdout:g},h=0;for(let m of l){if(f>0)h=Math.max(h,m.applied/f);if(g>0)h=Math.max(h,m.holdout/g)}return Mt.jsxDEV("section",{className:"spot-gap","aria-label":`${r} fetch-back gaps`,children:[Mt.jsxDEV("h3",{className:"spot-panel-title row spot-gap-title",children:[Mt.jsxDEV(i,{size:13,"aria-hidden":"true"},void 0,!1,void 0,this),r,Mt.jsxDEV("span",{className:"dim",children:[Mt.jsxDEV("span",{className:"num",children:A(f)},void 0,!1,void 0,this)," shortened ·"," ",Mt.jsxDEV("span",{className:"num",children:A(g)},void 0,!1,void 0,this)," held out"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),f+g===0?Mt.jsxDEV("div",{className:"spot-gap-empty dim",children:"No fetch-backs"},void 0,!1,void 0,this):Mt.jsxDEV("div",{className:"spot-gap-bins",children:V2.map((m)=>{let S=d.get(m);return Mt.jsxDEV("div",{className:"spot-gap-bin",children:[Mt.jsxDEV("div",{className:"spot-gap-bars",children:K2.map((y)=>{let b=S?.[y]??0,L=v[y],T=L>0?b/L:0;return Mt.jsxDEV("span",{className:"spot-gap-bar","data-group":y,"data-empty":L===0,title:`${m} ${m==="1"?"call":"calls"} later: ${A(b)} of ${A(L)} ${Ua[y].label.toLowerCase()} fetch-backs`,children:[L>0&&Mt.jsxDEV("span",{className:"spot-gap-value num",children:jt(T)},void 0,!1,void 0,this),Mt.jsxDEV("span",{className:"spot-gap-fill",style:{height:`${h>0?T/h*100:0}%`}},void 0,!1,void 0,this)]},y,!0,void 0,this)})},void 0,!1,void 0,this),Mt.jsxDEV("span",{className:"spot-gap-label num",children:m},void 0,!1,void 0,this)]},m,!0,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function W2({stats:r,stale:l}){let[i,d]=Pb.useState(!1),f=new Set(r.gaps.map((h)=>h.tool)),{listed:g,rest:v}=Qo(Gi(r).filter((h)=>f.has(h)));return Mt.jsxDEV(fe,{index:3,title:"How soon it comes back",description:"Calls between a result and the first fetch-back after it",stale:l,footer:"Bars are each group's share of its own fetch-backs, so shortened and held-out results compare despite their different counts (next to each tool). Same rule as above; nothing after 12 calls counts.",children:g.length===0?Mt.jsxDEV("div",{className:"empty",children:"No fetch-backs in this range."},void 0,!1,void 0,this):Mt.jsxDEV(Mt.Fragment,{children:[Mt.jsxDEV(ep,{groups:K2},void 0,!1,void 0,this),Mt.jsxDEV("div",{className:"spot-gaps",children:(i?[...g,...v]:g).map((h)=>Mt.jsxDEV(nO,{tool:h,counts:r.gaps.filter((m)=>m.tool===h)},h,!1,void 0,this))},void 0,!1,void 0,this),v.length>0&&Mt.jsxDEV(tp,{hidden:v,expanded:i,onToggle:()=>d((h)=>!h)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var Ot=_(te(),1);function Z2({stats:r,windowLabel:l,stale:i}){let{gross:d,clawback:f,adjusted:g}=r,{netTokens:v,netUsd:h}=g,m=Yn(v,po),S=Yn(h,xr),y=g.byTool.filter((O)=>O.cuts>0&&O.holdouts<g.minHoldouts).map((O)=>O.tool),b=Qo(y),L=b.rest.length>0?[...b.listed,`${b.rest.length} more tools`]:y,T=L.length<2?L[0]??"":`${L.slice(0,-1).join(", ")} and ${L.at(-1)}`,C=Qo(g.byTool),I=C.listed.map((O)=>({tool:O.tool,holdouts:O.holdouts,thin:y.includes(O.tool)}));if(C.rest.length>0)I.push({tool:_r,holdouts:C.rest.reduce((O,z)=>O+z.holdouts,0),thin:C.rest.some((O)=>y.includes(O.tool))});let R=d.fullSavedTokens>0?1-d.savedTokens/d.fullSavedTokens:null;return Ot.jsxDEV("section",{className:"card rise spot-hero","data-stale":i,"aria-label":"Spotlight savings summary",children:[Ot.jsxDEV("div",{className:"spot-hero-main",children:[Ot.jsxDEV("div",{className:"spot-hero-headline",children:[Ot.jsxDEV("div",{className:"spot-eyebrow",children:["Net saved in ",l,", after fetch-backs a cut caused"]},void 0,!0,void 0,this),Ot.jsxDEV("div",{className:"spot-hero-figures",children:[Ot.jsxDEV("span",{className:"spot-hero-value gradient-text",title:v.value===null?void 0:`${A(v.value)} tokens`,children:v.value===null?"–":po(v.value)},void 0,!1,void 0,this),Ot.jsxDEV("span",{className:"spot-hero-unit",children:"tokens"},void 0,!1,void 0,this),h.value!==null&&Ot.jsxDEV("span",{className:"spot-hero-usd","data-negative":h.value<0,title:"Avoided context priced at each later request's cache rates, minus the fetch-backs beyond the holdout baseline (priced the same way) and Spotlight's own bill",children:xr(h.value)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),(m!==""||S!=="")&&Ot.jsxDEV("div",{className:"spot-hero-interval",children:["90% interval"," ",Ot.jsxDEV("span",{className:"num",children:[m,S].filter(Boolean).join(" · ")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Ot.jsxDEV("div",{className:"spot-hero-aside",children:[Ot.jsxDEV("p",{className:"spot-hero-note",children:["Counted against what pi would have shown unshaped (",Ot.jsxDEV("code",{children:"plain"},void 0,!1,void 0,this),") for the same call (its inline cap and read page), with fetch-backs that held-out results show happen anyway added back."," ",d.fullSavedTokens>d.savedTokens&&Ot.jsxDEV(Ot.Fragment,{children:["Against the full output the shaping read, the cuts would claim"," ",Ot.jsxDEV("s",{className:"spot-struck num",children:se(d.fullSavedTokens)},void 0,!1,void 0,this),", overstating the gross by ",jt(R),"."," "]},void 0,!0,void 0,this),d.widerThanPlain>0&&`${A(d.widerThanPlain)} ${d.widerThanPlain===1?"result was":"results were"} wider than plain would have shown: cuts shown that way count as losses, results pi capped at plain's text save nothing. `,d.estimatedPlain>0&&`${A(d.estimatedPlain)} older ${d.estimatedPlain===1?"result estimates":"results estimate"} plain from the inline cap.`]},void 0,!0,void 0,this),y.length>0&&Ot.jsxDEV("p",{className:"spot-hero-warn",role:"note",children:[Ot.jsxDEV(Ro,{size:14,"aria-hidden":"true"},void 0,!1,void 0,this),Ot.jsxDEV("span",{children:[T," ",y.length===1?"has":"have"," fewer than"," ",A(g.minHoldouts)," held-out results: ",y.length===1?"its":"their"," ","part of the net rests on a thin baseline."]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Ot.jsxDEV("div",{className:"spot-hero-stats",children:[Ot.jsxDEV(ie,{size:"sm",label:"Gross vs plain",title:"Σ (plain − shortened) tokens over shortened results; a cut that showed more than plain counts negative",value:po(d.savedTokens),hint:`${jt(d.ofToolOutput)} of tool output · ${A(d.shaped)} of ${A(d.results)} results shortened`},void 0,!1,void 0,this),Ot.jsxDEV(ie,{size:"sm",label:"Fetched back beyond baseline",title:"Fetch-back tokens beyond what held-out results (shown whole) fetch anyway, per tool (reads split by whether the agent was likely to edit them); 90% interval below",value:g.excessTokens.value===null?"–":po(-g.excessTokens.value),hint:Ot.jsxDEV(Ot.Fragment,{children:["of ",se(f.tokens)," fetched back",g.excessTokens.lo!==null&&g.excessTokens.hi!==null&&Ot.jsxDEV(Ot.Fragment,{children:[" ",Ot.jsxDEV("span",{className:"dim",children:["·"," ",Ot.jsxDEV("span",{className:"spot-nowrap",children:["90% ",Yn(g.excessTokens,se)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Ot.jsxDEV(ie,{size:"sm",label:"Held out",title:`Would-be cuts shown whole at random: the baseline per tool (under ${g.minHoldouts} is thin)`,value:A(r.holdouts),hint:Ot.jsxDEV("span",{className:"spot-hero-tools",children:I.map((O)=>Ot.jsxDEV("span",{"data-thin":O.thin,title:O.tool===_r?C.rest.map((z)=>`${z.tool} ${A(z.holdouts)}`).join(", "):O.thin?`${O.tool}: under ${g.minHoldouts} held out`:void 0,children:[O.tool," ",Ot.jsxDEV("span",{className:"num",children:A(O.holdouts)},void 0,!1,void 0,this),O.thin&&Ot.jsxDEV(Ro,{size:11,"aria-label":"thin baseline"},void 0,!1,void 0,this)]},O.tool,!0,void 0,this))},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ot.jsxDEV(ie,{size:"sm",label:"Score-free cuts",title:"Cuts a random coin made without Spotlight (the no-score fallback rules): what Spotlight's scores add is the difference",value:A(r.scoreFree),hint:"cut without Spotlight, for comparison"},void 0,!1,void 0,this),Ot.jsxDEV(ie,{size:"sm",label:"Sessions",value:A(r.sessions),hint:"experiment sessions, all shaped"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var eR=_(Ke(),1);var Dt=_(te(),1);function J2({p50:r,p90:l}){if(r===null)return Dt.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this);return Dt.jsxDEV("span",{className:"num",children:[Ct(r),Dt.jsxDEV("span",{className:"dim",children:[" / ",Ct(l)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var sO={no_credential:"not signed in",transport:"network"};function lO(r){let l=/^http_(\d+)$/.exec(r);if(l)return`HTTP ${l[1]}`;return sO[r]??r.replaceAll("_"," ")}function iO({causes:r}){if(r.length===0)return Dt.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this);return Dt.jsxDEV("span",{children:r.map(({cause:l,results:i,share:d},f)=>Dt.jsxDEV(eR.Fragment,{children:[f>0&&Dt.jsxDEV("span",{className:"dim",children:" · "},void 0,!1,void 0,this),Dt.jsxDEV("span",{className:"spot-nowrap",title:`${A(i)} results`,children:[lO(l)," ",Dt.jsxDEV("span",{className:"num",children:jt(d)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},l,!0,void 0,this))},void 0,!1,void 0,this)}var uO=[{key:"failures",header:"Spotlight failures",align:"right",sort:(r)=>r.failureRate??-1,title:"Results whose Spotlight calls failed or timed out, of those that called it: they were cut by the no-score fallback",render:(r)=>r.failureRate===null?Dt.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this):Dt.jsxDEV(ct,{tone:gr(r.failureRate),mono:!0,children:jt(r.failureRate)},void 0,!1,void 0,this)},{key:"causes",header:"Failure causes",align:"right",sort:(r)=>r.failureCauses[0]?.share??-1,wrap:!0,title:"Why the calls failed, as shares of the results that called Spotlight. A result whose calls failed two ways counts under both; unrecorded results were journaled before pi recorded causes",render:(r)=>Dt.jsxDEV(iO,{causes:r.failureCauses},void 0,!1,void 0,this)},{key:"failedWait",header:"Waited on failures",align:"right",sort:(r)=>r.failedWaitMs,title:"Wall time tool calls spent on Spotlight calls that failed or timed out",render:(r)=>r.failedWaitMs>0?Dt.jsxDEV("span",{className:"num",children:Ct(r.failedWaitMs)},void 0,!1,void 0,this):Dt.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this)},{key:"results",header:"Results",align:"right",sort:(r)=>r.results,title:"Results Spotlight evaluated, held-out ones included",render:(r)=>Dt.jsxDEV("span",{className:"num",children:A(r.results)},void 0,!1,void 0,this)},{key:"shape",header:"Shaping p50 / p90",align:"right",sort:(r)=>r.shapeMsP50??-1,title:"Wall time shaping added to a tool call",render:(r)=>Dt.jsxDEV(J2,{p50:r.shapeMsP50,p90:r.shapeMsP90},void 0,!1,void 0,this)},{key:"spotlight",header:"Spotlight p50 / p90",align:"right",sort:(r)=>r.spotlightMsP50??-1,title:"Spotlight's own request time, over results whose calls all answered",render:(r)=>Dt.jsxDEV(J2,{p50:r.spotlightMsP50,p90:r.spotlightMsP90},void 0,!1,void 0,this)},{key:"usd",header:"Spotlight $",align:"right",sort:(r)=>r.spotlightUsd,render:(r)=>Dt.jsxDEV("span",{className:"num",children:zt(r.spotlightUsd)},void 0,!1,void 0,this)}];function dO({overhead:r}){let l=r.failureRate;if(l===null)return null;let i=gr(l);if(i==="ok")return null;let d=r.failedWaitMs,f=r.failureCauses.find((g)=>g.cause==="no_credential");return Dt.jsxDEV("div",{className:"spot-callout","data-tone":i,role:"note",children:[Dt.jsxDEV(Ro,{size:16,"aria-hidden":"true"},void 0,!1,void 0,this),Dt.jsxDEV("div",{children:[Dt.jsxDEV("div",{className:"spot-callout-head",children:[Dt.jsxDEV("span",{className:"num",children:jt(l)},void 0,!1,void 0,this)," of results that called Spotlight failed"]},void 0,!0,void 0,this),Dt.jsxDEV("p",{className:"spot-callout-copy",children:["A failed or timed-out call leaves the cut to the no-score fallback, so those results measure the fallback rather than Spotlight's scorer. Read every comparison on this page with that share in mind.",d>0&&Dt.jsxDEV(Dt.Fragment,{children:[" ","Tool calls waited ",Dt.jsxDEV("span",{className:"num",children:Ct(d)},void 0,!1,void 0,this)," on those failures."]},void 0,!0,void 0,this),f&&Dt.jsxDEV(Dt.Fragment,{children:[" ",Dt.jsxDEV("span",{className:"num",children:jt(f.share)},void 0,!1,void 0,this)," had no Stencil sign-in: run"," ",Dt.jsxDEV("code",{children:"/login"},void 0,!1,void 0,this)," and choose Stencil, or set ",Dt.jsxDEV("code",{children:"STENCIL_API_KEY"},void 0,!1,void 0,this),", to restore ranking."]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function tR({stats:r,stale:l}){let{overhead:i}=r,d=i.results>0?[i]:[];return Dt.jsxDEV(fe,{index:3,title:"Overhead",description:"What shaping costs: Spotlight failures, added latency and its bill",flush:!0,stale:l,footer:"Every evaluated result counts, held-out ones included: they were shaped too, just not shown.",children:[i.results>0&&Dt.jsxDEV(dO,{overhead:i},void 0,!1,void 0,this),Dt.jsxDEV(Ft,{rows:d,rowKey:()=>"overhead",columns:uO,dense:!0,empty:Dt.jsxDEV("div",{className:"empty",children:"No evaluated results in this range."},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Ve=_(te(),1),ap=["applied","scoreFree","holdout"],cO={applied:-7,scoreFree:0,holdout:7},fO=[{key:"auc",title:"Heat ranks needed lines higher",chanceLabel:"AUC · chance 0.5",chance:0.5,rule:"P(a needed line is hotter than an unneeded line of the same result), ties half",format:(r)=>r.toFixed(2)},{key:"topLift",title:"Hottest tenth holds them",chanceLabel:"lift · chance 1.0",chance:1,rule:"Needed-line rate among each result's hottest 10% of lines over its rate among all lines",format:(r)=>`${r.toFixed(2)}×`},{key:"keptLift",title:"The cut keeps them",chanceLabel:"lift · random cut 1.0",chance:1,rule:"Share of needed lines the cut kept over the share of all lines it kept",format:(r)=>`${r.toFixed(2)}×`}],pO=[{key:"reread",label:"Read again",rule:"A later read of the same file selected the lines"},{key:"edit",label:"Edited",rule:"A later edit's Find text matched the lines"}];function aR({stats:r,stale:l}){let{ranking:i}=r,d=new Map(i.cells.map((g)=>[g.group,g])),f=ap.some((g)=>(d.get(g)?.results??0)>0);return Ve.jsxDEV(fe,{index:4,title:"Does Spotlight keep what the agent needs?",description:"Lines of a shaped read the agent read again or edited later, against Spotlight's heat and the cut",actions:Ve.jsxDEV(ep,{groups:ap},void 0,!1,void 0,this),stale:l,footer:"Shaped reads with at least one needed line, until the file's first edit or a later whole-file read. Scored and score-free cuts are biased alike (the agent re-reads what a cut hid), so compare them with each other; held-out would-be cuts, shown whole, are the unbiased measure. Score-free cuts have no heat, so only the cut's lift exists for them. Dashed lines are chance; whiskers are 90% session bootstrap intervals, from 3 sessions.",children:!f?Ve.jsxDEV("div",{className:"empty",children:"No shaped read was needed again in this range."},void 0,!1,void 0,this):Ve.jsxDEV("div",{className:"spot-rank",children:[Ve.jsxDEV("div",{className:"spot-rank-panels",children:fO.map((g)=>Ve.jsxDEV(mO,{measure:g,cells:d},g.key,!1,void 0,this))},void 0,!1,void 0,this),Ve.jsxDEV("div",{className:"spot-rank-foot",children:[Ve.jsxDEV(hO,{cells:d},void 0,!1,void 0,this),Ve.jsxDEV(gO,{positions:i.position},void 0,!1,void 0,this),Ve.jsxDEV("section",{className:"spot-rank-sources","aria-label":"How the need was seen",children:[Ve.jsxDEV("h3",{className:"spot-panel-title",children:"How the need was seen"},void 0,!1,void 0,this),Ve.jsxDEV("dl",{className:"spot-facts spot-rank-facts",children:pO.map((g)=>Ve.jsxDEV("div",{title:g.rule,children:[Ve.jsxDEV("dt",{children:g.label},void 0,!1,void 0,this),Ve.jsxDEV("dd",{className:"num",children:[A(i.sources[g.key]),Ve.jsxDEV("span",{className:"dim",children:" results"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},g.key,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function mO({measure:r,cells:l}){let i=ap.flatMap((g)=>{let v=l.get(g);if(v===void 0||v.results===0)return[];let h=v[r.key],m=Yn(h,r.format);return[{key:g,...h,color:Ua[g].color,shape:Ua[g].shape,offset:cO[g],title:`${Ua[g].label}: ${h.value===null?"–":r.format(h.value)}${m===""?"":` (${m})`} over ${A(v.results)} results, ${A(v.neededLines)} needed lines`}]}),d=l.get("applied")?.[r.key].value??null,f=[{key:"reads",label:"Shaped reads",marks:i,figure:Ve.jsxDEV("span",{style:{color:Ua.applied.color},children:d===null?"–":r.format(d)},void 0,!1,void 0,this),detail:Ve.jsxDEV(Ve.Fragment,{children:["scoreFree","holdout"].map((g,v)=>{let h=l.get(g)?.[r.key].value??null;return Ve.jsxDEV("span",{title:Ua[g].label,children:[v>0&&" · ",Ve.jsxDEV("span",{className:"spot-fb-detail","data-group":g,children:h===null?"–":r.format(h)},void 0,!1,void 0,this)]},g,!0,void 0,this)})},void 0,!1,void 0,this)}];return Ve.jsxDEV("section",{className:"spot-rank-panel","aria-label":r.title,children:[Ve.jsxDEV("h3",{className:"spot-panel-title",title:r.rule,children:[r.title,Ve.jsxDEV("span",{className:"spot-rank-chance",children:r.chanceLabel},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ve.jsxDEV(lg,{rows:f,guides:[{key:"chance",value:r.chance,color:"var(--ink-3)"}],format:r.format,formatTick:(g)=>String(Number(g.toFixed(2)))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function hO({cells:r}){return Ve.jsxDEV("section",{"aria-label":"Sample per cell",children:[Ve.jsxDEV("h3",{className:"spot-panel-title",children:["Sample per cell",Ve.jsxDEV("span",{className:"spot-rank-chance",children:"results · needed lines"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ve.jsxDEV("table",{className:"spot-rank-n",children:[Ve.jsxDEV("thead",{children:Ve.jsxDEV("tr",{children:ap.map((l)=>Ve.jsxDEV("th",{scope:"col",title:Ua[l].rule,children:Ua[l].label},l,!1,void 0,this))},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ve.jsxDEV("tbody",{children:Ve.jsxDEV("tr",{children:ap.map((l)=>{let i=r.get(l);return Ve.jsxDEV("td",{className:"num","data-thin":i!==void 0&&i.results<20,children:i===void 0||i.results===0?Ve.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this):Ve.jsxDEV("span",{title:`${A(i.neededLines)} needed lines`,children:[A(i.results),Ve.jsxDEV("span",{className:"dim",children:[" · ",se(i.neededLines)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},l,!1,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function gO({positions:r}){let l=Math.max(0,...r.map((i)=>i.meanHeat));return Ve.jsxDEV("section",{className:"spot-rank-pos","aria-label":"Mean heat by position",children:[Ve.jsxDEV("h3",{className:"spot-panel-title",children:["Mean heat by position",Ve.jsxDEV("span",{className:"spot-rank-chance",children:"0–9, outputs ≥ 40 lines"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),r.length===0||l===0?Ve.jsxDEV("div",{className:"dim spot-gap-empty",children:"No heat recorded"},void 0,!1,void 0,this):Ve.jsxDEV(Ve.Fragment,{children:[Ve.jsxDEV("div",{className:"spot-rank-bars",children:r.map((i)=>Ve.jsxDEV("div",{className:"spot-rank-bar",title:`${i.label}: mean heat ${i.meanHeat.toFixed(2)} over ${A(i.lines)} lines`,children:[Ve.jsxDEV("span",{className:"spot-rank-bar-track",children:[Ve.jsxDEV("span",{className:"spot-rank-bar-value num",children:i.meanHeat.toFixed(1)},void 0,!1,void 0,this),Ve.jsxDEV("span",{className:"spot-rank-bar-fill",style:{height:`calc((100% - 14px) * ${i.meanHeat/l})`}},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ve.jsxDEV("span",{className:"spot-rank-bar-label num",children:i.label.replace(/^lines? /,"L").replace(/%$/,"")},void 0,!1,void 0,this)]},i.label,!0,void 0,this))},void 0,!1,void 0,this),Ve.jsxDEV("div",{className:"micro spot-rank-axis",children:"L = line of the output, then each tenth of it (% into it)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var pd=_(Ke(),1);var de=_(te(),1);function Ub(r){return`${r.sessionFile}\x00${r.toolCallId}`}function oR({value:r}){return de.jsxDEV("span",{className:r<0?"num tone-bad":r>0?"num tone-ok":"num",children:po(r)},void 0,!1,void 0,this)}function yO({row:r}){let{plainTokens:l,outTokens:i}=r,d=l>0?Math.min(1,i/l):1;return de.jsxDEV("div",{className:"spot-shrink","data-holdout":r.holdout,title:`plain would show ${A(l)} tokens, the cut ${r.holdout?"would show":"showed"} ${A(i)} (shaping read ${A(r.inTokens)})`,children:[de.jsxDEV("span",{className:"num",children:[se(l),de.jsxDEV("span",{className:"dim",children:" → "},void 0,!1,void 0,this),se(i)]},void 0,!0,void 0,this),de.jsxDEV("span",{className:"spot-shrink-bar","aria-hidden":"true",children:de.jsxDEV("span",{className:"spot-shrink-kept",style:{width:`${d*100}%`}},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function vO(r){let l=new Map;for(let i of r.recoveries)l.set(i.kind,(l.get(i.kind)??0)+1);return gg.flatMap((i)=>{let d=l.get(i);return d?[[i,d]]:[]})}var xO=[{key:"target",header:"Result",width:"40%",sort:(r)=>r.timestamp,render:(r)=>{let l=Hr(r.tool);return de.jsxDEV("div",{className:"spot-result",children:[de.jsxDEV("span",{className:"spot-tool",title:r.tool,children:[de.jsxDEV(l,{size:14,"aria-hidden":"true"},void 0,!1,void 0,this),de.jsxDEV("span",{className:"sr-only",children:r.tool},void 0,!1,void 0,this)]},void 0,!0,void 0,this),de.jsxDEV("div",{className:"stack spot-result-text",children:[de.jsxDEV("span",{className:"spot-target truncate",title:r.target,children:r.target},void 0,!1,void 0,this),de.jsxDEV("span",{className:"row spot-result-meta",children:[r.holdout&&de.jsxDEV(rR,{},void 0,!1,void 0,this),r.scoreFree&&de.jsxDEV(nR,{},void 0,!1,void 0,this),de.jsxDEV("span",{className:"dim",title:ro(r.timestamp),children:ma(r.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}},{key:"shrink",header:"Plain → out",align:"right",sort:(r)=>r.plainTokens>0?r.outTokens/r.plainTokens:1,title:"What pi would have shown unshaped (plain) for the call, and what the cut showed; the bar is the share that survived",render:(r)=>de.jsxDEV(yO,{row:r},void 0,!1,void 0,this)},{key:"saved",header:"Saved",align:"right",sort:(r)=>r.savedTokens,render:(r)=>r.holdout?de.jsxDEV("span",{className:"spot-would-save",title:"Held out: what the cut would have saved",children:[de.jsxDEV("span",{className:"dim",children:"would save "},void 0,!1,void 0,this),de.jsxDEV("span",{className:"num",children:po(r.savedTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this):de.jsxDEV("span",{className:"num",children:po(r.savedTokens)},void 0,!1,void 0,this)},{key:"hidden",header:"Hidden lines",align:"right",sort:(r)=>r.hiddenLines,render:(r)=>r.hiddenLines>0?de.jsxDEV("span",{className:"num",children:A(r.hiddenLines)},void 0,!1,void 0,this):de.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this)},{key:"recoveries",header:"Fetched back",sort:(r)=>r.recoveries.length,render:(r)=>{let l=vO(r);return l.length===0?de.jsxDEV("span",{className:"dim",title:"Nothing fetched back",children:"–"},void 0,!1,void 0,this):de.jsxDEV("span",{className:"row spot-kinds",children:l.map(([i,d])=>de.jsxDEV(zb,{kind:i,count:d},i,!1,void 0,this))},void 0,!1,void 0,this)}},{key:"net",header:"Net",align:"right",sort:(r)=>r.netTokens,title:"Saved tokens minus the tokens of the calls that fetched hidden output back",render:(r)=>r.holdout?de.jsxDEV("span",{className:"dim",title:"Held out: the model saw the whole result, so nothing was saved",children:"–"},void 0,!1,void 0,this):de.jsxDEV(oR,{value:r.netTokens},void 0,!1,void 0,this)}];function rR(){return de.jsxDEV("span",{title:"Held out at random: the model saw the original, unshortened result",children:de.jsxDEV(ct,{children:"held out"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function nR(){return de.jsxDEV("span",{title:"A random coin skipped Spotlight: the no-score fallback rules made this cut",children:de.jsxDEV(ct,{children:"score-free"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function sR({rows:r,stale:l}){let[i,d]=pd.useState(null),f=pd.useCallback(()=>d(null),[]),g=pd.useMemo(()=>r.find((v)=>Ub(v)===i)??null,[r,i]);return de.jsxDEV(de.Fragment,{children:[de.jsxDEV(fe,{index:6,title:"Recent results",description:"The newest shortened and held-out tool results and what the agent fetched back",flush:!0,stale:l,footer:"Saved is what plain would have shown minus what the cut showed (the would-be cut for held-out ones, which save nothing); recovery tokens are the recovery calls' results (chars ÷ 4 when no exact count exists).",children:de.jsxDEV(Ft,{rows:r,rowKey:Ub,columns:xO,onRowClick:(v)=>d(Ub(v)),selectedKey:i,limit:15,empty:de.jsxDEV("div",{className:"empty",children:"No shortened or held-out results in this range."},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),de.jsxDEV(bO,{row:g,onClose:f},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function bO({row:r,onClose:l}){if(r===null)return null;let i=Hr(r.tool),d=r.savedTokens-r.netTokens;return de.jsxDEV(ad,{open:!0,onClose:l,width:600,title:de.jsxDEV("span",{className:"spot-drawer-title",title:r.target,children:r.target},void 0,!1,void 0,this),subtitle:de.jsxDEV("span",{className:"row spot-drawer-subtitle",children:[de.jsxDEV(i,{size:13,"aria-hidden":"true"},void 0,!1,void 0,this),r.tool,r.holdout&&de.jsxDEV(rR,{},void 0,!1,void 0,this),r.scoreFree&&de.jsxDEV(nR,{},void 0,!1,void 0,this),de.jsxDEV("span",{children:ro(r.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:[de.jsxDEV("div",{className:"spot-drawer-summary",children:[de.jsxDEV("div",{children:[de.jsxDEV("div",{className:"spot-eyebrow",children:r.holdout?"Would save":"Saved"},void 0,!1,void 0,this),de.jsxDEV("div",{className:"spot-drawer-figure num",children:po(r.savedTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),de.jsxDEV("div",{children:[de.jsxDEV("div",{className:"spot-eyebrow",children:"Fetched back"},void 0,!1,void 0,this),de.jsxDEV("div",{className:d>0?"spot-drawer-figure num tone-warn":"spot-drawer-figure num",children:se(d)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),de.jsxDEV("div",{children:[de.jsxDEV("div",{className:"spot-eyebrow",children:"Net"},void 0,!1,void 0,this),r.holdout?de.jsxDEV("div",{className:"spot-drawer-figure dim",title:"Held out: the model saw the whole result",children:"–"},void 0,!1,void 0,this):de.jsxDEV("div",{className:r.netTokens<0?"spot-drawer-figure num tone-bad":"spot-drawer-figure num tone-ok",children:po(r.netTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),de.jsxDEV(ko,{items:[{key:"plain",label:"Plain would show",value:A(r.plainTokens)},{key:"out",label:"Tokens out",value:A(r.outTokens)},{key:"in",label:"Full output read",value:A(r.inTokens)},{key:"hidden",label:r.holdout?"Lines it would hide":"Hidden lines",value:A(r.hiddenLines)},{key:"steps",label:"Steps",value:r.steps.length>0?r.steps.join(" → "):"–"},{key:"cost",label:"Spotlight cost",value:zt(r.spotlightUsd)},{key:"ms",label:"Shaping time",value:Ct(r.shapeMs)}]},void 0,!1,void 0,this),de.jsxDEV("div",{children:[de.jsxDEV("div",{className:"section-label",children:"Call"},void 0,!1,void 0,this),de.jsxDEV("pre",{className:"code-block spot-drawer-call",children:r.target},void 0,!1,void 0,this)]},void 0,!0,void 0,this),de.jsxDEV("div",{children:[de.jsxDEV("div",{className:"section-label",children:"Recovery timeline"},void 0,!1,void 0,this),de.jsxDEV("ol",{className:"spot-timeline",children:[de.jsxDEV("li",{className:"spot-timeline-item","data-kind":r.holdout?"holdout":"cut",children:[de.jsxDEV("span",{className:"spot-timeline-node","aria-hidden":"true",children:de.jsxDEV(qf,{size:12},void 0,!1,void 0,this)},void 0,!1,void 0,this),de.jsxDEV("div",{className:"spot-timeline-body",children:de.jsxDEV("div",{className:"row spot-timeline-head",children:[de.jsxDEV("span",{className:"cell-primary",children:r.holdout?"Held out: the model saw the original":"Shortened"},void 0,!1,void 0,this),de.jsxDEV("span",{className:"dim num",children:[r.holdout&&"would be ",se(r.plainTokens)," → ",se(r.outTokens)," tokens",r.hiddenLines>0&&`, ${A(r.hiddenLines)} lines hidden`]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),r.recoveries.map((f)=>de.jsxDEV("li",{className:"spot-timeline-item","data-kind":f.kind,style:{"--kind":Es[f.kind].color},children:[de.jsxDEV("span",{className:"spot-timeline-node","aria-hidden":"true",children:de.jsxDEV(mf,{size:12},void 0,!1,void 0,this)},void 0,!1,void 0,this),de.jsxDEV("div",{className:"spot-timeline-body",children:[de.jsxDEV("div",{className:"row spot-timeline-head",children:[de.jsxDEV(zb,{kind:f.kind},void 0,!1,void 0,this),f.turn&&de.jsxDEV(ct,{tone:"warn",children:"extra turn"},void 0,!1,void 0,this),de.jsxDEV("span",{className:"spot-timeline-spacer"},void 0,!1,void 0,this),de.jsxDEV("span",{className:"num tone-warn",children:["+",se(f.tokens)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),de.jsxDEV("code",{className:"spot-timeline-target",title:f.target,children:[de.jsxDEV("span",{className:"dim",children:[f.tool," "]},void 0,!0,void 0,this),f.target]},void 0,!0,void 0,this),de.jsxDEV("div",{className:"micro",children:[f.after===0?"The next call":`${A(f.after)} ${f.after===1?"call":"calls"} later`,` · ${yr(Math.max(0,f.timestamp-r.timestamp))} after the cut`]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},f.toolCallId,!0,void 0,this)),de.jsxDEV("li",{className:"spot-timeline-item","data-kind":"net",children:[de.jsxDEV("span",{className:"spot-timeline-node","aria-hidden":"true"},void 0,!1,void 0,this),de.jsxDEV("div",{className:"spot-timeline-body",children:de.jsxDEV("div",{className:"row spot-timeline-head",children:[de.jsxDEV("span",{className:"cell-primary",children:r.holdout?r.recoveries.length===0?"Nothing fetched back":"Fetched more although it saw everything":r.recoveries.length===0?"Nothing fetched back: the full saving stands":"Net"},void 0,!1,void 0,this),de.jsxDEV("span",{className:"spot-timeline-spacer"},void 0,!1,void 0,this),r.holdout?de.jsxDEV("span",{className:"dim",children:"saves nothing"},void 0,!1,void 0,this):de.jsxDEV(oR,{value:r.netTokens},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var md=_(Ke(),1);var xt=_(te(),1),SO=[{value:"tokens",label:"Tokens"},{value:"usd",label:"$"}];function lR({value:r,onChange:l}){return xt.jsxDEV(Oa,{size:"sm","aria-label":"Unit",options:SO,value:r,onChange:l},void 0,!1,void 0,this)}function iR({stats:r,range:l,stale:i}){let[d,f]=md.useState("tokens"),g=aa(l),v=md.useMemo(()=>{let m=oo(l,r.series.map((I)=>I.timestamp),g.bucketMs),S=d==="usd",y=ha(r.series,m,(I)=>S?I.savedUsd:I.savedTokens),b=ha(r.series,m,(I)=>S?I.netUsd:I.netTokens),L=0,T=0,C=[{key:"gross",label:"Gross (cumulative)",color:"var(--spot-gross)",kind:"area",values:y.map((I)=>L+=I)},{key:"clawback",label:S?"Recoveries + Spotlight cost":"Fetched back",color:"var(--spot-clawback)",kind:"bars",values:y.map((I,R)=>b[R]-I)},{key:"net",label:"Net of every fetch-back (cumulative)",color:"var(--spot-net)",kind:"line",values:b.map((I)=>T+=I)}];return{buckets:m,series:C}},[r.series,l,g.bucketMs,d]),h=d==="usd"?xr:po;return xt.jsxDEV(fe,{index:1,title:"Savings over time",description:`Running gross and net per ${vg(g.bucketMs)}; what recoveries took back hangs below zero`,actions:xt.jsxDEV(lR,{value:d,onChange:f},void 0,!1,void 0,this),stale:i,footer:d==="usd"?"Dollars price each saved token at the cache-read rate of every later request that would have carried it (plus one cache write); recoveries are priced the same way.":"Gross is what the cuts removed against what plain would have shown; this net subtracts every later call that fetched hidden output back, including the share held-out results show comes back anyway (the headline adds that back). Each lands in the bucket of its own timestamp.",children:[xt.jsxDEV("div",{className:"spot-chart-legend",children:xt.jsxDEV(ia,{items:v.series.map((m)=>({key:m.key,label:m.label,color:m.color}))},void 0,!1,void 0,this)},void 0,!1,void 0,this),xt.jsxDEV(_o,{buckets:v.buckets,bucketMs:g.bucketMs,series:v.series,stacked:!1,height:480,format:h,formatTooltip:d==="usd"?xr:(m)=>m<0?`−${A(-m)}`:A(m),showTotal:!1,emptyLabel:"No shortened results in this range"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function uR({stats:r,stale:l}){let[i,d]=md.useState("tokens"),{gross:f,clawback:g,compounding:v,adjusted:h}=r,m=md.useMemo(()=>{let S=i==="usd",y=S?v.savedUsd:f.savedTokens,b=(O)=>y>0?jt(O/y):"",L=gg.map((O)=>{let z=g.byKind[O],Y=S?z.usd:z.tokens;return{key:O,label:xt.jsxDEV(xt.Fragment,{children:[xt.jsxDEV("span",{className:"spot-step-swatch",style:{background:Es[O].color}},void 0,!1,void 0,this),Es[O].plural,xt.jsxDEV("span",{className:"dim num",children:A(z.events)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),kind:"delta",value:-Y,color:Es[O].color,note:b(Y),title:Es[O].rule}}),T=[{key:"gross",label:S?"Gross saved":"Gross vs plain",kind:"total",value:y,color:"var(--spot-gross)",title:S?"Avoided context priced at each later request's cache-read rate, plus one cache write":"Σ (plain − shortened) tokens over shortened results; a cut that showed more than plain counts negative"},...L];if(S)T.push({key:"turns",label:xt.jsxDEV(xt.Fragment,{children:[xt.jsxDEV("span",{className:"spot-step-swatch",style:{background:"var(--spot-turns)"}},void 0,!1,void 0,this),"Extra turns",xt.jsxDEV("span",{className:"dim num",children:A(g.turns)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),kind:"delta",value:-g.turnsUsd,color:"var(--spot-turns)",note:b(g.turnsUsd),title:"Provider cost of requests that issued nothing but recovery calls"},{key:"spotlight",label:xt.jsxDEV(xt.Fragment,{children:[xt.jsxDEV("span",{className:"spot-step-swatch",style:{background:"var(--spot-cost)"}},void 0,!1,void 0,this),"Spotlight cost"]},void 0,!0,void 0,this),kind:"delta",value:-v.spotlightUsd,color:"var(--spot-cost)",note:b(v.spotlightUsd),title:"Spotlight's own scoring bill"});let C=S?v.netUsd:g.netTokens,I=S?h.netUsd.value:h.netTokens.value;if(I!==null){let O=I-C;T.push({key:"anyway",label:xt.jsxDEV(xt.Fragment,{children:[xt.jsxDEV("span",{className:"spot-step-swatch",style:{background:"var(--spot-anyway)"}},void 0,!1,void 0,this),"Back anyway"]},void 0,!0,void 0,this),kind:"delta",value:O,color:"var(--spot-anyway)",note:b(O),title:"Fetch-backs held-out results (shown whole) show the agent makes regardless, per tool: not the cut's cost"})}let R=I??C;return T.push({key:"net",label:I===null?"Net (no holdout baseline yet)":"Net",kind:"total",value:R,color:"var(--spot-net-fill)",note:b(R)}),T},[i,f,g,v,h]);return xt.jsxDEV(fe,{index:2,title:"Where the savings went",description:"Gross, minus each way hidden output came back",actions:xt.jsxDEV(lR,{value:i,onChange:d},void 0,!1,void 0,this),stale:l,footer:i==="usd"?"Recoveries are priced as carried context; extra turns are requests that only recovered; Spotlight cost is its own scoring bill. What comes back anyway is the recovery $ in proportion to the tokens held-out results fetch regardless.":"Recovered tokens are the full results of the recovery calls (estimated as chars ÷ 4 where no exact count exists). What comes back anyway is, per tool, the tokens a held-out result gets fetched back times the tool's cuts.",children:[xt.jsxDEV(t2,{steps:m,format:i==="usd"?zt:se},void 0,!1,void 0,this),xt.jsxDEV("div",{className:"spot-by-tool",children:[xt.jsxDEV("div",{className:"section-label",children:"Net by tool, tokens"},void 0,!1,void 0,this),xt.jsxDEV(LO,{byTool:f.byTool,adjusted:h.byTool},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var kO=3;function LO({byTool:r,adjusted:l}){let i=new Map(l.map((h)=>[h.tool,h])),{listed:d,rest:f}=Qo(r,kO),g=d.map((h)=>{let m=i.get(h.tool),S=m===void 0?"":Yn(m.excessTokens,se),y=m?.baselinePerCut.value??null;return{tool:h.tool,totals:h,excess:m?.excessTokens.value??null,title:m===void 0?void 0:[`${A(m.cuts)} cuts fetched back ${se(m.recoveredTokens)} tokens`,y===null?"No held-out baseline yet":`${A(m.holdouts)} held-out results get ${se(y)} each fetched back anyway`,S===""?"":`Beyond the baseline: ${S} (90%)`].filter(Boolean).join(`
237
- `)}});if(f.length>0){let h={tool:_r,results:0,shaped:0,inTokens:0,plainTokens:0,outTokens:0,savedTokens:0,fullSavedTokens:0},m=null;for(let S of f){h.results+=S.results,h.shaped+=S.shaped,h.savedTokens+=S.savedTokens;let y=i.get(S.tool)?.excessTokens.value??null;if(y!==null)m=(m??0)+y}g.push({tool:_r,totals:h,excess:m,title:`${A(f.length)} more tools: ${f.map((S)=>S.tool).join(", ")}`})}let v=Math.max(0,...g.map((h)=>h.totals.savedTokens));return xt.jsxDEV("ul",{className:"spot-tool-net",children:g.map(({tool:h,totals:m,excess:S,title:y})=>{let b=S===null?null:m.savedTokens-S,L=Hr(h),T=v>0?Math.max(0,m.savedTokens)/v*100:0,C=S!==null&&m.savedTokens>0?Math.min(1,S/m.savedTokens):0;return xt.jsxDEV("li",{className:"spot-tool-net-row",title:y,children:[xt.jsxDEV("div",{className:"row spot-tool-net-head",children:[xt.jsxDEV(L,{size:13,"aria-hidden":"true"},void 0,!1,void 0,this),xt.jsxDEV("span",{className:"cell-primary",children:h},void 0,!1,void 0,this),xt.jsxDEV("span",{className:"dim num",children:[A(m.shaped)," of ",A(m.results)," shortened"]},void 0,!0,void 0,this),xt.jsxDEV("span",{className:"spot-tool-net-value num",title:b===null?"No holdout baseline yet":void 0,children:po(b??m.savedTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),xt.jsxDEV("div",{className:"spot-tool-net-track","aria-hidden":"true",children:xt.jsxDEV("span",{className:"spot-tool-net-bar",style:{width:`${T}%`},children:xt.jsxDEV("span",{className:"spot-tool-net-excess",style:{width:`${C*100}%`}},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),xt.jsxDEV("div",{className:"micro spot-tool-net-detail",children:[po(m.savedTokens)," gross",S!==null&&xt.jsxDEV(xt.Fragment,{children:[" − ",se(S)," beyond baseline"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},h,!0,void 0,this)})},void 0,!1,void 0,this)}var cR=_(Ke(),1);var Sg=_(te(),1),dR=7,wO=[{group:"shaped",label:"Shaped sessions",color:"var(--spot-shaped)"},{group:"outside",label:"Outside the experiment",color:"var(--spot-outside)"}];function fR({stats:r,range:l,stale:i}){let d=aa(l),f=cR.useMemo(()=>{let g=oo(l,r.share.map((S)=>S.timestamp),d.bucketMs),v=[],h=[];for(let{group:S,label:y,color:b}of wO){let L=r.share.filter((z)=>z.group===S),T=ha(L,g,(z)=>z.toolTokens),C=ha(L,g,(z)=>z.contextTokens),I=0,R=0,O=g.map((z,Y)=>{let W=0,ue=0;for(let Z=Math.max(0,Y-dR+1);Z<=Y;Z++)W+=T[Z],ue+=C[Z];return I+=T[Y],R+=C[Y],ue>0?W/ue:null});if(R===0)continue;v.push({key:`${S}:raw`,label:`${y} · bucket`,color:b,kind:"dots",values:g.map((z,Y)=>C[Y]>0?T[Y]/C[Y]:null)},{key:`${S}:avg`,label:`${y} · rolling`,color:b,kind:"line",values:O}),h.push({key:S,label:y,color:b,value:jt(I/R)})}let m=[];if(r.experimentStart!==null){let S=Math.floor(r.experimentStart/d.bucketMs)*d.bucketMs,y=g.indexOf(S);if(y>=0)m.push({index:y,label:"experiment starts"})}return{buckets:g,series:v,legend:h,markers:m}},[r.share,r.experimentStart,l,d.bucketMs]);return Sg.jsxDEV(fe,{index:4,title:"Tool-output share of context",description:r.experimentStart!==null&&f.markers.length===0?`Since ${td(r.experimentStart,86400000)}, shaped sessions should carry less tool output`:"Shaped sessions should carry less tool output than the rest of your history",actions:Sg.jsxDEV(ia,{items:f.legend},void 0,!1,void 0,this),stale:i,footer:`Tool tokens are result chars ÷ 4; context adds assistant output, your prompts (chars ÷ 4) and each session's first prompt. Dots are single buckets (one ${vg(d.bucketMs)}); lines are the trailing ${dR}-bucket ratio of sums.`,children:Sg.jsxDEV(_o,{buckets:f.buckets,bucketMs:d.bucketMs,series:f.series,markers:f.markers,stacked:!1,height:260,format:(g)=>Ge(g,0),formatTooltip:(g)=>Ge(g),showTotal:!1,emptyLabel:"No tool calls in this range"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var kg=_(Ke(),1);var Xe=_(te(),1),hR=10,CO=30,pR=4;function TO(r,l){let i=new Map;for(let d of r){if(d.tool!==l)continue;let f=i.get(d.steps);if(f===void 0)f={steps:d.steps,bySize:new Map,total:{cuts:0,savedTokens:0,excessTokens:0}},i.set(d.steps,f);f.bySize.set(d.size,d),f.total.cuts+=d.cuts,f.total.savedTokens+=d.savedTokens,f.total.excessTokens+=d.excessTokens}return[...i.values()].sort((d,f)=>Number(d.steps==="other")-Number(f.steps==="other")||f.total.savedTokens-d.total.savedTokens)}function mR({kept:r,cuts:l,title:i,children:d}){if(r===null)return Xe.jsxDEV("div",{className:"spot-econ-cell","data-empty":"true",title:i,children:Xe.jsxDEV("span",{className:"dim",children:"No saving"},void 0,!1,void 0,this)},void 0,!1,void 0,this);let f=pR+Math.min(1,Math.abs(r-0.5)*2)*(CO-pR);return Xe.jsxDEV("div",{className:"spot-econ-cell","data-tone":r>=0.5?"ok":"bad","data-thin":l<hR,style:{"--tint":`${f}%`},title:i,children:[Xe.jsxDEV("span",{className:"spot-econ-net num",children:[jt(r),Xe.jsxDEV("span",{className:"spot-steps-unit",children:" kept"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Xe.jsxDEV("dl",{className:"spot-econ-facts",children:d},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function gR({stats:r,stale:l}){let[i,d]=kg.useState(!1),f=Gi(r).flatMap((m)=>{let S=TO(r.steps,m);return S.length===0?[]:[{tool:m,rows:S}]}),{listed:g,rest:v}=Qo(f),h=i?f:g;return Xe.jsxDEV(fe,{index:5,title:"Which cuts pay",description:"Share of each kind of cut's saving that stays saved after fetch-backs beyond the holdout baseline, by size",actions:Xe.jsxDEV("span",{className:"spot-econ-scale","aria-hidden":"true",children:[Xe.jsxDEV("span",{className:"num",children:"0%"},void 0,!1,void 0,this),Xe.jsxDEV("span",{className:"spot-econ-ramp"},void 0,!1,void 0,this),Xe.jsxDEV("span",{className:"num",children:"100% kept"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),stale:l,footer:`Scored and score-free cuts. Kept = (saved − fetch-back beyond the tool's holdout baseline) ÷ saved; fetched back is the share of cuts the agent came back for within 12 calls. Sizes are the tokens a cut saved against plain; step combinations under 10 cuts fold into "other". Cells under ${hR} cuts are dimmed.`,children:h.length===0?Xe.jsxDEV("div",{className:"empty",children:"No shortened results in this range."},void 0,!1,void 0,this):Xe.jsxDEV(Xe.Fragment,{children:[Xe.jsxDEV("div",{className:"spot-steps-scroll",children:Xe.jsxDEV("table",{className:"spot-econ spot-steps",children:[Xe.jsxDEV("thead",{children:Xe.jsxDEV("tr",{children:[Xe.jsxDEV("th",{scope:"col",children:"Steps"},void 0,!1,void 0,this),yg.map((m)=>Xe.jsxDEV("th",{scope:"col",className:"num",children:[m," ",Xe.jsxDEV("span",{className:"dim",children:"saved"},void 0,!1,void 0,this)]},m,!0,void 0,this)),Xe.jsxDEV("th",{scope:"col",children:"All sizes"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Xe.jsxDEV("tbody",{children:h.map(({tool:m,rows:S})=>{let y=Hr(m);return Xe.jsxDEV(kg.Fragment,{children:[Xe.jsxDEV("tr",{className:"spot-steps-tool",children:Xe.jsxDEV("th",{scope:"rowgroup",colSpan:yg.length+2,children:Xe.jsxDEV("span",{className:"row spot-econ-tool",children:[Xe.jsxDEV(y,{size:13,"aria-hidden":"true"},void 0,!1,void 0,this),m]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),S.map((b)=>{let{total:L}=b,T=L.savedTokens>0?(L.savedTokens-L.excessTokens)/L.savedTokens:null;return Xe.jsxDEV("tr",{children:[Xe.jsxDEV("th",{scope:"row",className:"spot-steps-name",title:b.steps,children:b.steps},void 0,!1,void 0,this),yg.map((C)=>{let I=b.bySize.get(C);if(I===void 0||I.cuts===0)return Xe.jsxDEV("td",{children:Xe.jsxDEV("div",{className:"spot-econ-cell","data-empty":"true",children:Xe.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},C,!1,void 0,this);let R=Yn(I.fetchBackRate,jt);return Xe.jsxDEV("td",{children:Xe.jsxDEV(mR,{kept:I.keptShare,cuts:I.cuts,title:[`${m} · ${b.steps} · ${C} saved: ${A(I.cuts)} cuts`,`Saved ${se(I.savedTokens)}, fetched back ${se(I.recoveredTokens)}, ${se(I.excessTokens)} beyond the baseline`,`Fetched back after ${jt(I.fetchBackRate.value)} of cuts${R===""?"":` (${R})`}`].join(`
238
- `),children:[Xe.jsxDEV("div",{children:[Xe.jsxDEV("dt",{children:"cuts"},void 0,!1,void 0,this),Xe.jsxDEV("dd",{className:"num",children:A(I.cuts)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Xe.jsxDEV("div",{children:[Xe.jsxDEV("dt",{children:"fetched back"},void 0,!1,void 0,this),Xe.jsxDEV("dd",{className:"num",children:jt(I.fetchBackRate.value)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},C,!1,void 0,this)}),Xe.jsxDEV("td",{children:Xe.jsxDEV(mR,{kept:T,cuts:L.cuts,title:`${m} · ${b.steps}: ${A(L.cuts)} cuts saved ${se(L.savedTokens)}, ${se(L.excessTokens)} fetched back beyond the baseline`,children:[Xe.jsxDEV("div",{children:[Xe.jsxDEV("dt",{children:"cuts"},void 0,!1,void 0,this),Xe.jsxDEV("dd",{className:"num",children:A(L.cuts)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Xe.jsxDEV("div",{children:[Xe.jsxDEV("dt",{children:"saved"},void 0,!1,void 0,this),Xe.jsxDEV("dd",{className:"num",children:se(L.savedTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},b.steps,!0,void 0,this)})]},m,!0,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),v.length>0&&Xe.jsxDEV(tp,{hidden:v.map((m)=>m.tool),expanded:i,onToggle:()=>d((m)=>!m)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var Lo=_(te(),1),IO=[{key:"fetch",label:"Fetch-back turns",color:"var(--spot-turns)"},{key:"shape",label:"Shaping",color:"var(--spot-cost)"}];function yR({stats:r,stale:l}){let i=r.timeCost,d=i.agentMs>0?i.fetchBackMs/i.agentMs:0,f=i.agentMs>0?i.shapeMs/i.agentMs:0,g=d+f,v=g>0?g*1.15:1,h=d/v*100,m=f/v*100;return Lo.jsxDEV(fe,{index:3,title:"Time cost",description:"Share of the experiment sessions' model time spent on requests that only fetched cut output back, plus the time tool calls spent shaping",actions:Lo.jsxDEV(ia,{items:IO},void 0,!1,void 0,this),stale:l,footer:`Model time is the summed duration of the experiment sessions' requests. A fetch-back turn is a request whose every tool call fetched back output a cut hid; shaping is the wall time tool calls spent shaping (Spotlight's requests included, held-out results too). Bars run to ${jt(v)} of model time.`,children:i.agentMs===0?Lo.jsxDEV("div",{className:"empty",children:"No experiment requests in this range."},void 0,!1,void 0,this):Lo.jsxDEV("ul",{className:"spot-time",children:Lo.jsxDEV("li",{className:"spot-time-row",children:[Lo.jsxDEV("span",{className:"spot-time-label",children:"Shaped sessions"},void 0,!1,void 0,this),Lo.jsxDEV("span",{className:"spot-time-track","aria-hidden":"true",children:[Lo.jsxDEV("span",{className:"spot-time-fill",style:{width:`${h}%`,background:"var(--spot-turns)"}},void 0,!1,void 0,this),Lo.jsxDEV("span",{className:"spot-time-fill",style:{width:`${m}%`,background:"var(--spot-cost)"}},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Lo.jsxDEV("span",{className:"spot-time-share num",children:jt(g)},void 0,!1,void 0,this),Lo.jsxDEV("span",{className:"spot-time-detail",children:[Lo.jsxDEV("span",{className:"num",children:yr(i.fetchBackMs)},void 0,!1,void 0,this)," in"," ",Lo.jsxDEV("span",{className:"num",children:A(i.fetchBackTurns)},void 0,!1,void 0,this)," ",i.fetchBackTurns===1?"turn":"turns"," ·"," ",Lo.jsxDEV("span",{className:"num",children:yr(i.shapeMs)},void 0,!1,void 0,this)," shaping",Lo.jsxDEV("span",{className:"dim",children:[" ","of ",Lo.jsxDEV("span",{className:"num",children:yr(i.agentMs)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var bt=_(te(),1),RO=[{value:"all",label:"All",title:"Every experiment session, subagents and advisors included"},{value:"main",label:"Main",title:"Sessions you drove: the main agent only"},{value:"subagent",label:"Subagents",title:"Sessions the task tool spawned"}],AO={all:"",main:"main-agent ",subagent:"subagent "};function Lg({id:r,title:l,children:i}){return bt.jsxDEV("header",{className:"spot-section rise",id:r,children:[bt.jsxDEV("h2",{className:"spot-section-title",children:l},void 0,!1,void 0,this),bt.jsxDEV("p",{className:"spot-section-copy",children:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function xR({active:r,range:l}){let[i,d]=vR.useState("all"),f=Pt(["spotlight",l,i],({signal:h})=>vI(l,i,h),{enabled:r}),g=aa(l),v=f.data?.experimentStart??null;return bt.jsxDEV("div",{className:"page spot-page",children:[bt.jsxDEV(la,{title:"Spotlight",description:`What shaping tool output saved in ${u(g.windowKey)} against what pi would have shown unshaped, after taking back what the agent fetched again because of a cut.`,actions:bt.jsxDEV(Oa,{"aria-label":"Sessions",options:RO,value:i,onChange:d},void 0,!1,void 0,this)},void 0,!1,void 0,this),bt.jsxDEV(_e,{query:f,skeleton:bt.jsxDEV(qt,{height:220},void 0,!1,void 0,this),isEmpty:(h)=>h.sessions===0&&h.recent.length===0,empty:bt.jsxDEV(fe,{children:bt.jsxDEV("div",{className:"spot-empty",children:[bt.jsxDEV("span",{className:"spot-empty-icon","aria-hidden":"true",children:bt.jsxDEV(ws,{size:20},void 0,!1,void 0,this)},void 0,!1,void 0,this),bt.jsxDEV("h2",{className:"spot-empty-title",children:v===null?"The Spotlight experiment hasn't run yet":`No ${AO[i]}experiment sessions in ${u(g.windowKey)}`},void 0,!1,void 0,this),bt.jsxDEV("p",{className:"spot-empty-hint",children:v===null?bt.jsxDEV(bt.Fragment,{children:["Turn it on with ",bt.jsxDEV("code",{children:"spotlight.experiment.enabled"},void 0,!1,void 0,this)," in your settings or"," ",bt.jsxDEV("code",{children:"PI_SPOTLIGHT_EXPERIMENT=1"},void 0,!1,void 0,this),". Every session then shapes tool output, a random share of results is held out unshaped as the counterfactual, and this page tracks what the cuts save as you work."]},void 0,!0,void 0,this):i==="all"?"Try a longer range, or start a session with the experiment enabled.":"Try a longer range, or switch to All sessions."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),children:(h)=>bt.jsxDEV(bt.Fragment,{children:[bt.jsxDEV(Z2,{stats:h,windowLabel:u(g.windowKey),stale:f.stale},void 0,!1,void 0,this),bt.jsxDEV(Lg,{id:"spot-saved",title:"What it saved",children:"Where the saving came from, what fetch-backs took back, and what later requests no longer carry."},void 0,!1,void 0,this),bt.jsxDEV("div",{className:"grid grid-main-side",children:[bt.jsxDEV(iR,{stats:h,range:l,stale:f.stale},void 0,!1,void 0,this),bt.jsxDEV(uR,{stats:h,stale:f.stale},void 0,!1,void 0,this)]},void 0,!0,void 0,this),bt.jsxDEV(j2,{stats:h,active:r,stale:f.stale},void 0,!1,void 0,this),bt.jsxDEV(fR,{stats:h,range:l,stale:f.stale},void 0,!1,void 0,this),bt.jsxDEV(Lg,{id:"spot-cost",title:"What it cost",children:"Agent time, Spotlight's latency and failures, and whether shaped sessions got worse."},void 0,!1,void 0,this),bt.jsxDEV(yR,{stats:h,stale:f.stale},void 0,!1,void 0,this),bt.jsxDEV(tR,{stats:h,stale:f.stale},void 0,!1,void 0,this),bt.jsxDEV(Lg,{id:"spot-work",title:"Is Spotlight doing the work?",children:"Whether its heat finds the lines the agent needs, and whether its cuts come back less than cuts made without it."},void 0,!1,void 0,this),bt.jsxDEV(aR,{stats:h,stale:f.stale},void 0,!1,void 0,this),bt.jsxDEV(Q2,{stats:h,stale:f.stale},void 0,!1,void 0,this),bt.jsxDEV(W2,{stats:h,stale:f.stale},void 0,!1,void 0,this),bt.jsxDEV(Lg,{id:"spot-tune",title:"Where to tune",children:"Which steps, sizes and tools pay, and which tools Spotlight doesn't shape yet."},void 0,!1,void 0,this),bt.jsxDEV(gR,{stats:h,stale:f.stale},void 0,!1,void 0,this),bt.jsxDEV(Y2,{stats:h,stale:f.stale},void 0,!1,void 0,this),bt.jsxDEV($2,{stats:h,stale:f.stale},void 0,!1,void 0,this),bt.jsxDEV(sR,{rows:h.recent,stale:f.stale},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Vi=_(Ke(),1);var be=_(te(),1);function MO(){return[{value:"calls",label:u("tools.calls")},{value:"errors",label:u("tools.errors")}]}var bR=6;function DO(r){if(r<3600000)return u("tools.bucket-5m");if(r<86400000)return u("tools.bucket-hour");return u("tools.bucket-day")}function SR({active:r,range:l}){let i=be.jsxDEV(Je,{title:u("tools.no-tool-calls")},void 0,!1,void 0,this),d=Pt(["tools",l],({signal:I})=>bI(l,I),{enabled:r}),[f,g]=Vi.useState("calls"),[v,h]=Ur(),[m,S]=Vi.useState(null),y=aa(l),b=Vi.useMemo(()=>EO(d.data,l),[d.data,l]),L=m!==null&&b.toolNames.includes(m)?m:null,T=f==="calls"?b.callSeries:b.errorSeries,C=(I)=>I.byTool.length===0;return be.jsxDEV("div",{className:"page",children:[be.jsxDEV(la,{title:u("tools.title"),description:u("tools.description",{window:u(y.windowKey)})},void 0,!1,void 0,this),be.jsxDEV(_e,{query:d,skeleton:be.jsxDEV(qt,{height:112},void 0,!1,void 0,this),children:()=>{let I=b.totals;return be.jsxDEV("div",{"data-stale":d.stale,className:"stack",style:{gap:16},children:[be.jsxDEV(wa,{min:190,children:[be.jsxDEV(ie,{label:u("tools.tool-calls"),value:A(I.calls),hint:u("tools.failed-n",{count:A(I.errors)}),spark:b.totalCalls},void 0,!1,void 0,this),be.jsxDEV(ie,{label:u("tools.distinct-tools"),value:A(I.tools),hint:b.rows[0]?u("tools.most-used",{tool:b.rows[0].tool}):void 0},void 0,!1,void 0,this),be.jsxDEV(ie,{label:u("common.error-rate"),title:u("tools.error-rate-title"),value:Mo(I.calls>0?I.errors/I.calls:0),hint:u("tools.succeeded-n",{count:A(I.calls-I.errors)}),spark:b.totalErrors,sparkColor:"var(--bad)"},void 0,!1,void 0,this),be.jsxDEV(ie,{label:u("tools.attributed-tokens"),title:u("tools.attribution-note"),value:se(Math.round(I.tokens)),hint:u("tools.tokens-output",{tokens:se(Math.round(I.output))})},void 0,!1,void 0,this),be.jsxDEV(ie,{label:u("tools.attributed-cost"),title:u("tools.attribution-estimate",{note:u("tools.attribution-note")}),value:oa(I.cost,I.unpriced),hint:I.unpriced>0?u("tools.unpriced-requests-n",{count:A(Math.round(I.unpriced))}):u("tools.api-equivalent")},void 0,!1,void 0,this)]},void 0,!0,void 0,this),be.jsxDEV(wa,{min:150,children:[be.jsxDEV(ie,{size:"sm",label:u("tools.result-text"),title:u("tools.result-chars-title"),value:u("tools.chars",{count:se(I.resultChars)})},void 0,!1,void 0,this),be.jsxDEV(ie,{size:"sm",label:u("tools.call-arguments"),title:u("tools.args-chars-title"),value:u("tools.chars",{count:se(I.argsChars)})},void 0,!1,void 0,this),be.jsxDEV(ie,{size:"sm",label:u("tools.avg-result-per-call"),value:u("tools.chars",{count:se(I.calls>0?Math.round(I.resultChars/I.calls):0)})},void 0,!1,void 0,this),be.jsxDEV(ie,{size:"sm",label:u("tools.avg-args-per-call"),value:u("tools.chars",{count:se(I.calls>0?Math.round(I.argsChars/I.calls):0)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}},void 0,!1,void 0,this),be.jsxDEV(fe,{index:1,title:f==="calls"?u("tools.calls-over-time"):u("tools.errors-over-time"),description:u("tools.chart-description",{bucket:DO(y.bucketMs),count:bR}),actions:be.jsxDEV(Oa,{size:"sm",options:MO(),value:f,onChange:g},void 0,!1,void 0,this),stale:d.stale,children:be.jsxDEV(_e,{query:d,skeleton:be.jsxDEV(qt,{height:260},void 0,!1,void 0,this),isEmpty:C,empty:i,children:()=>be.jsxDEV("div",{className:"stack",style:{gap:12},children:[be.jsxDEV(_o,{buckets:b.buckets,bucketMs:y.bucketMs,series:T,hidden:v,height:260,formatTooltip:A,emptyLabel:f==="errors"?u("tools.no-tool-errors"):void 0},void 0,!1,void 0,this),be.jsxDEV(ia,{items:T.map((I)=>({key:I.key,label:I.label,color:I.color,value:se(I.values.reduce((R,O)=>R+(O??0),0))})),hidden:v,onToggle:h},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),be.jsxDEV(fe,{index:2,title:u("tools.by-tool"),description:u("tools.by-tool-description",{note:u("tools.attribution-note")}),flush:!0,stale:d.stale,children:be.jsxDEV(_e,{query:d,skeleton:be.jsxDEV(pa,{rows:8},void 0,!1,void 0,this),isEmpty:C,empty:i,children:()=>be.jsxDEV(Ft,{rows:b.rows,rowKey:(I)=>I.tool,columns:b.toolColumns,initialSort:{key:"calls",dir:"desc"},limit:20,selectedKey:L,onRowClick:(I)=>S((R)=>R===I.tool?null:I.tool),dense:!0},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),be.jsxDEV(fe,{index:3,title:u("tools.by-tool-and-model"),description:u("tools.by-tool-and-model-description"),flush:!0,stale:d.stale,actions:be.jsxDEV("div",{className:"row",style:{gap:6},children:[be.jsxDEV("select",{className:"input tools-filter",value:L??"",onChange:(I)=>S(I.target.value||null),"aria-label":u("tools.filter-by-tool"),children:[be.jsxDEV("option",{value:"",children:u("tools.all-tools")},void 0,!1,void 0,this),b.toolNames.map((I)=>be.jsxDEV("option",{value:I,children:I},I,!1,void 0,this))]},void 0,!0,void 0,this),L!==null&&be.jsxDEV("button",{type:"button",className:"btn","data-size":"sm","data-variant":"ghost","data-icon":"true",title:u("tools.clear-tool-filter"),"aria-label":u("tools.clear-tool-filter"),onClick:()=>S(null),children:be.jsxDEV(Ao,{size:13},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:be.jsxDEV(_e,{query:d,skeleton:be.jsxDEV(pa,{rows:8},void 0,!1,void 0,this),isEmpty:C,empty:i,children:(I)=>be.jsxDEV(qO,{rows:I.byToolModel,tool:L,colors:b.colors},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function EO(r,l){let i=r?.byTool??[],d=r?.series??[],f=h2(i).sort((T,C)=>C.calls-T.calls),g=Pi(i.map((T)=>({key:T.tool,weight:T.calls}))),v=oo(l,d.map((T)=>T.timestamp)),h={calls:0,errors:0,tools:i.length,tokens:0,output:0,cost:0,unpriced:0,resultChars:0,argsChars:0};for(let T of i)h.calls+=T.calls,h.errors+=T.errors,h.tokens+=T.totalTokensShare,h.output+=T.outputTokensShare,h.cost+=T.costShare,h.unpriced+=T.unpricedRequestsShare,h.resultChars+=T.resultChars,h.argsChars+=T.argsChars;let[m,S]=[(T)=>T.calls,(T)=>T.errors].map((T)=>Xn(d,{buckets:v,key:(C)=>C.tool,value:T,limit:bR,colors:g}).map((C)=>({...C,values:C.values.map((I)=>I||null)}))),y=new Map(Xn(d,{buckets:v,key:(T)=>T.tool,value:(T)=>T.calls}).map((T)=>[T.key,T.values])),b=f[0]?.calls??0,L=NO(b,g,y);return{rows:f,colors:g,buckets:v,totals:h,callSeries:m,errorSeries:S,totalCalls:ha(d,v,(T)=>T.calls),totalErrors:ha(d,v,(T)=>T.errors),toolNames:f.map((T)=>T.tool).sort((T,C)=>T.localeCompare(C)),toolColumns:L}}function NO(r,l,i){return[{key:"tool",header:u("tools.tool"),sort:(d)=>d.tool,render:(d)=>be.jsxDEV("span",{className:"row",style:{gap:8},children:[be.jsxDEV(an,{color:l.get(d.tool)??fo},void 0,!1,void 0,this),be.jsxDEV("span",{className:"mono truncate tools-name",title:d.tool,children:d.tool},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"trend",header:u("tools.trend"),title:u("tools.trend-title"),render:(d)=>{let f=i.get(d.tool);return f&&f.length>1?be.jsxDEV(sd,{values:f,width:80,height:20,color:l.get(d.tool)??fo},void 0,!1,void 0,this):be.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this)}},{key:"calls",header:u("tools.calls"),align:"right",sort:(d)=>d.calls,render:(d)=>be.jsxDEV(Ma,{value:d.calls,max:r,display:be.jsxDEV("span",{title:u("tools.share-of-calls",{percent:Ge(d.callFraction)}),children:[A(d.calls),be.jsxDEV("span",{className:"dim tools-share",children:Ge(d.callFraction,0)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},{key:"errorRate",header:u("tools.errors"),title:u("tools.errors-title"),align:"right",sort:(d)=>d.errorRate,render:(d)=>be.jsxDEV("span",{className:"row",style:{gap:8,justifyContent:"flex-end"},children:[be.jsxDEV("span",{className:"num dim",children:A(d.errors)},void 0,!1,void 0,this),be.jsxDEV(ct,{tone:d.errors>0?gr(d.errorRate):"neutral",mono:!0,children:Mo(d.errorRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"args",header:u("tools.args"),title:u("tools.args-chars-title"),align:"right",sort:(d)=>d.argsChars,render:(d)=>be.jsxDEV("span",{className:"num",children:se(d.argsChars)},void 0,!1,void 0,this)},{key:"result",header:u("tools.result"),title:u("tools.result-chars-title"),align:"right",sort:(d)=>d.resultChars,render:(d)=>be.jsxDEV("span",{className:"num",children:se(d.resultChars)},void 0,!1,void 0,this)},{key:"avgResult",header:u("tools.result-per-call"),title:u("tools.result-per-call-title"),align:"right",sort:(d)=>d.avgResultChars,render:(d)=>be.jsxDEV("span",{className:"num muted",children:se(Math.round(d.avgResultChars))},void 0,!1,void 0,this)},{key:"tokens",header:u("tools.attr-tokens"),title:u("tools.attribution-note"),align:"right",sort:(d)=>d.totalTokensShare,render:(d)=>be.jsxDEV("span",{className:"num",title:u("tools.share-of-tokens",{percent:Ge(d.tokenFraction)}),children:[se(Math.round(d.totalTokensShare)),be.jsxDEV("span",{className:"dim tools-share",children:Ge(d.tokenFraction,0)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"cost",header:u("tools.attr-cost"),title:u("tools.attribution-estimate",{note:u("tools.attribution-note")}),align:"right",sort:(d)=>d.costShare,render:(d)=>be.jsxDEV("span",{className:"num",title:u("tools.share-of-cost",{percent:Ge(d.costFraction)}),children:[oa(d.costShare,d.unpricedRequestsShare),be.jsxDEV("span",{className:"dim tools-share",children:Ge(d.costFraction,0)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"lastUsed",header:u("tools.last-used"),align:"right",sort:(d)=>d.lastUsed,render:(d)=>be.jsxDEV("span",{className:"muted",children:ma(d.lastUsed)},void 0,!1,void 0,this)}]}function qO({rows:r,tool:l,colors:i}){let d=Vi.useMemo(()=>(l===null?r:r.filter((g)=>g.tool===l)).map((g)=>({...g,errorRate:g.calls>0?g.errors/g.calls:0})),[r,l]),f=Vi.useMemo(()=>{let g=d.reduce((v,h)=>Math.max(v,h.calls),0);return[{key:"tool",header:u("tools.tool"),sort:(v)=>v.tool,render:(v)=>be.jsxDEV("span",{className:"row",style:{gap:8},children:[be.jsxDEV(an,{color:i.get(v.tool)??fo},void 0,!1,void 0,this),be.jsxDEV("span",{className:"mono truncate tools-name",title:v.tool,children:v.tool},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"model",header:u("common.model"),sort:(v)=>v.model,render:(v)=>be.jsxDEV(co,{primary:be.jsxDEV("span",{className:"mono",children:v.model||u("common.unknown")},void 0,!1,void 0,this),secondary:v.provider},void 0,!1,void 0,this)},{key:"calls",header:u("tools.calls"),align:"right",sort:(v)=>v.calls,render:(v)=>be.jsxDEV(Ma,{value:v.calls,max:g,display:A(v.calls)},void 0,!1,void 0,this)},{key:"errorRate",header:u("tools.errors"),align:"right",sort:(v)=>v.errorRate,render:(v)=>be.jsxDEV("span",{className:"row",style:{gap:8,justifyContent:"flex-end"},children:[be.jsxDEV("span",{className:"num dim",children:A(v.errors)},void 0,!1,void 0,this),be.jsxDEV(ct,{tone:v.errors>0?gr(v.errorRate):"neutral",mono:!0,children:Mo(v.errorRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"result",header:u("tools.result"),title:u("tools.result-chars-title"),align:"right",sort:(v)=>v.resultChars,render:(v)=>be.jsxDEV("span",{className:"num",children:se(v.resultChars)},void 0,!1,void 0,this)},{key:"tokens",header:u("tools.attr-tokens"),title:u("tools.attribution-note"),align:"right",sort:(v)=>v.totalTokensShare,render:(v)=>be.jsxDEV("span",{className:"num",children:se(Math.round(v.totalTokensShare))},void 0,!1,void 0,this)},{key:"cost",header:u("tools.attr-cost"),title:u("tools.attribution-estimate",{note:u("tools.attribution-note")}),align:"right",sort:(v)=>v.costShare,render:(v)=>be.jsxDEV("span",{className:"num",children:oa(v.costShare,v.unpricedRequestsShare)},void 0,!1,void 0,this)},{key:"lastUsed",header:u("tools.last-used"),align:"right",sort:(v)=>v.lastUsed,render:(v)=>be.jsxDEV("span",{className:"muted",children:ma(v.lastUsed)},void 0,!1,void 0,this)}]},[d,i]);return be.jsxDEV(Ft,{rows:d,rowKey:(g)=>`${g.tool}::${g.model}::${g.provider}`,columns:f,initialSort:{key:"calls",dir:"desc"},limit:25,dense:!0,empty:be.jsxDEV(Je,{title:l?u("tools.no-calls-to-tool",{tool:l}):u("tools.no-tool-calls")},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var kR=_(Ke(),1);var De=_(te(),1),OO={missing:"tracking.missing",partial:"tracking.partial",corrupt:"tracking.corrupt",error:"tracking.error"};function BO(r){if(r==="present")return"ok";if(r==="partial")return"warn";if(r==="corrupt"||r==="error")return"bad";return"neutral"}function op({state:r,truncated:l}){if(r==="present"&&!l)return null;return De.jsxDEV(ct,{tone:BO(r),children:r==="present"?u("tracking.truncated"):u(OO[r])},void 0,!1,void 0,this)}function zO(r){return[{key:"phase",label:u("tracking.phase"),value:r.phase||u("tracking.none")},{key:"progress",label:u("tracking.progress"),value:r.progress||u("tracking.none")},...r.stage?[{key:"stage",label:u("tracking.stage"),value:r.stage}]:[],{key:"blockers",label:u("tracking.blockers"),value:r.blockers.length?r.blockers.join("; "):u("tracking.none")},{key:"decisions",label:u("tracking.decisions"),value:r.decisions.length?r.decisions.join("; "):u("tracking.none")},{key:"updated",label:u("tracking.last-updated"),value:r.lastUpdated||u("tracking.none")},...r.lastSessionId?[{key:"session",label:u("tracking.last-session"),value:De.jsxDEV("span",{className:"mono",children:r.lastSessionId},void 0,!1,void 0,this)}]:[],...r.phases?.length?[{key:"phases",label:u("tracking.phases"),value:r.phases.map((l)=>`${l.name} · ${l.status}`).join("; ")}]:[]]}function wg(r){if(!r)return null;return De.jsxDEV("p",{className:"tracking-error",children:r},void 0,!1,void 0,this)}function LR({active:r}){let l=Pt(["tracking-projects"],({signal:h})=>hI(h),{enabled:r}),i=l.data?.projects??[],[d,f]=kR.useState(null),g=d!==null&&i.includes(d)?d:i[0]??null,v=Pt(["tracking",g],({signal:h})=>gI(g??"",h),{enabled:r&&g!==null});return De.jsxDEV("div",{className:"page",children:[De.jsxDEV(la,{title:u("tracking.title"),description:u("tracking.description")},void 0,!1,void 0,this),De.jsxDEV(fe,{index:0,children:De.jsxDEV("div",{className:"tracking-toolbar",children:[De.jsxDEV("label",{className:"tracking-project",children:[De.jsxDEV("span",{className:"section-label",children:u("tracking.project")},void 0,!1,void 0,this),l.data===null?De.jsxDEV(Ga,{width:280,height:30},void 0,!1,void 0,this):De.jsxDEV("select",{className:"tracking-select",value:g??"","aria-label":u("tracking.project"),onChange:(h)=>f(h.target.value),disabled:i.length===0,children:[i.length===0&&De.jsxDEV("option",{value:"",children:u("tracking.no-projects")},void 0,!1,void 0,this),i.map((h)=>De.jsxDEV("option",{value:h,children:h},h,!1,void 0,this))]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),De.jsxDEV("p",{className:"tracking-note",children:u("tracking.read-only")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),l.data!==null&&i.length===0?De.jsxDEV(fe,{index:1,children:De.jsxDEV(Je,{title:u("tracking.no-projects"),hint:u("tracking.no-projects-hint")},void 0,!1,void 0,this)},void 0,!1,void 0,this):De.jsxDEV(_e,{query:v,skeleton:De.jsxDEV(pa,{rows:5},void 0,!1,void 0,this),isEmpty:(h)=>!h.exists,empty:De.jsxDEV(Je,{title:u("tracking.no-documents"),hint:`${u("tracking.no-documents-hint")}
239
- ${v.data?.trackingDir??""}`},void 0,!1,void 0,this),children:(h)=>De.jsxDEV("div",{className:"grid grid-main-side",children:[De.jsxDEV(fe,{index:1,title:u("tracking.status"),flush:!0,children:De.jsxDEV("div",{className:"tracking-panel",children:[De.jsxDEV("div",{className:"row tracking-meta",children:[De.jsxDEV("span",{className:"mono dim",children:h.trackingDir},void 0,!1,void 0,this),De.jsxDEV("span",{className:"row",children:[h.updatedAt&&De.jsxDEV("span",{className:"dim",title:ro(Date.parse(h.updatedAt)),children:[u("tracking.updated"),": ",ma(Date.parse(h.updatedAt))]},void 0,!0,void 0,this),De.jsxDEV(op,{state:h.status.state,truncated:h.status.truncated},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),h.status.value?De.jsxDEV(ko,{items:zO(h.status.value)},void 0,!1,void 0,this):De.jsxDEV(Je,{title:h.status.state==="missing"?u("tracking.status-missing"):h.status.state==="corrupt"?u("tracking.status-corrupt"):u("tracking.status-error")},void 0,!1,void 0,this),wg(h.status.error)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),De.jsxDEV(fe,{index:2,title:u("tracking.index"),flush:!0,children:De.jsxDEV("div",{className:"tracking-panel",children:[De.jsxDEV("div",{className:"row tracking-meta",children:[De.jsxDEV("span",{className:"dim",children:u("tracking.index")},void 0,!1,void 0,this),De.jsxDEV(op,{state:h.index.state,truncated:h.index.truncated},void 0,!1,void 0,this)]},void 0,!0,void 0,this),h.index.content!==null?De.jsxDEV("pre",{className:"tracking-doc",children:h.index.content||u("tracking.document-empty")},void 0,!1,void 0,this):De.jsxDEV(Je,{title:u("tracking.index-missing")},void 0,!1,void 0,this),wg(h.index.error)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),De.jsxDEV(fe,{index:3,title:u("tracking.actions"),flush:!0,children:De.jsxDEV("div",{className:"tracking-panel",children:[De.jsxDEV("div",{className:"row tracking-meta",children:[De.jsxDEV("span",{className:"dim",children:[u("tracking.actions")," · ",A(h.actions.rows.length)]},void 0,!0,void 0,this),De.jsxDEV(op,{state:h.actions.state,truncated:h.actions.truncated},void 0,!1,void 0,this)]},void 0,!0,void 0,this),h.actions.invalidRows>0&&De.jsxDEV("p",{className:"tracking-error",children:u("tracking.invalid-rows",{count:A(h.actions.invalidRows)})},void 0,!1,void 0,this),h.actions.rows.length===0?De.jsxDEV(Je,{title:h.actions.state==="missing"?u("tracking.actions-missing"):u("tracking.actions-empty")},void 0,!1,void 0,this):De.jsxDEV("ul",{className:"tracking-list",children:[...h.actions.rows].reverse().map((m,S)=>De.jsxDEV("li",{className:"tracking-list-row",children:[De.jsxDEV("span",{className:"mono dim",children:m.timestamp||"—"},void 0,!1,void 0,this),De.jsxDEV("span",{children:m.action},void 0,!1,void 0,this),m.detail!==void 0&&De.jsxDEV("span",{className:"muted",children:m.detail},void 0,!1,void 0,this)]},`${m.timestamp}:${m.action}:${S}`,!0,void 0,this))},void 0,!1,void 0,this),wg(h.actions.error)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),De.jsxDEV(fe,{index:4,title:u("tracking.sessions"),flush:!0,children:De.jsxDEV("div",{className:"tracking-panel",children:[De.jsxDEV("div",{className:"row tracking-meta",children:[De.jsxDEV("span",{className:"dim",children:[u("tracking.sessions")," · ",A(h.sessions.length)]},void 0,!0,void 0,this),De.jsxDEV(op,{state:h.sessionsState},void 0,!1,void 0,this)]},void 0,!0,void 0,this),h.sessions.length===0?De.jsxDEV(Je,{title:h.sessionsState==="missing"?u("tracking.sessions-missing"):u("tracking.sessions-empty")},void 0,!1,void 0,this):De.jsxDEV("div",{className:"stack",children:h.sessions.map((m)=>De.jsxDEV("details",{className:"tracking-session",children:[De.jsxDEV("summary",{className:"row",children:[De.jsxDEV("span",{className:"mono",children:m.name},void 0,!1,void 0,this),De.jsxDEV(op,{state:m.state,truncated:m.truncated},void 0,!1,void 0,this)]},void 0,!0,void 0,this),m.content!==null?De.jsxDEV("pre",{className:"tracking-doc",children:m.content||u("tracking.document-empty")},void 0,!1,void 0,this):De.jsxDEV(Je,{title:u("tracking.sessions-empty")},void 0,!1,void 0,this),wg(m.error)]},m.name,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var xd=_(Ke(),1);var Xt=_(Ke(),1);var Kn=_(te(),1);function wR({toolStats:r,index:l}){if(r.length===0)return null;let i=Math.max(...r.map((f)=>f.totalMs)),d=[{key:"tool",header:u("trace.tool"),render:(f)=>Kn.jsxDEV("span",{className:"mono",children:f.tool},void 0,!1,void 0,this),sort:(f)=>f.tool},{key:"calls",header:u("trace.calls"),align:"right",render:(f)=>Kn.jsxDEV("span",{className:"num",children:A(f.calls)},void 0,!1,void 0,this),sort:(f)=>f.calls},{key:"errors",header:u("trace.errors"),align:"right",render:(f)=>f.errors>0?Kn.jsxDEV(ct,{tone:"bad",children:u("trace.failed-n",{count:A(f.errors)})},void 0,!1,void 0,this):Kn.jsxDEV("span",{className:"num dim",children:"0"},void 0,!1,void 0,this),sort:(f)=>f.errors},{key:"total",header:u("common.total"),align:"right",width:200,render:(f)=>Kn.jsxDEV(Ma,{value:f.totalMs,max:i,display:Ct(f.totalMs),color:"var(--warn)"},void 0,!1,void 0,this),sort:(f)=>f.totalMs},{key:"avg",header:u("trace.avg"),align:"right",render:(f)=>Kn.jsxDEV("span",{className:"num",children:Ct(f.calls>0?f.totalMs/f.calls:0)},void 0,!1,void 0,this),sort:(f)=>f.calls>0?f.totalMs/f.calls:0},{key:"max",header:u("trace.max"),align:"right",render:(f)=>Kn.jsxDEV("span",{className:"num",children:Ct(f.maxMs)},void 0,!1,void 0,this),sort:(f)=>f.maxMs}];return Kn.jsxDEV(fe,{title:u("trace.tool-aggregates"),description:u("trace.tool-aggregates-desc",{count:r.length}),flush:!0,index:l,children:Kn.jsxDEV(Ft,{columns:d,rows:r,rowKey:(f)=>f.tool,dense:!0,limit:12},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var br=_(Ke(),1);var Qn=_(Ke(),1),PO=Qn.createContext(null),ji={turn:"--ink-2",model:"--chart-primary",tool:"--warn",subagent:"--chart-secondary",background:"--ink-4"};function UO(r){let l=getComputedStyle(r),i=(d,f)=>l.getPropertyValue(d).trim()||f;return{category:{turn:i(ji.turn,"#a0a0a8"),model:i(ji.model,"#5ad8e6"),tool:i(ji.tool,"#f5a524"),subagent:i(ji.subagent,"#ed4abf"),background:i(ji.background,"#46464c")},error:i("--bad","#ff6166"),errorSoft:i("--bad-soft","rgba(255, 97, 102, 0.13)"),marker:i("--ink-1","#ededef"),turnBand:i("--hover","rgba(255, 255, 255, 0.035)"),grid:i("--chart-grid","rgba(255, 255, 255, 0.055)"),tick:i("--chart-axis","#5c5c64"),spanText:i("--ink-inverse","#0a0a0b"),selection:i("--focus","#5ad8e6"),brush:i("--selected","rgba(255, 255, 255, 0.075)"),fontSans:i("--font-sans","system-ui, sans-serif"),fontMono:i("--font-mono","ui-monospace, monospace")}}function hd(){let r=Qn.useContext(PO)??document.documentElement,[l,i]=Qn.useState(0);return Qn.useEffect(()=>{let d=new MutationObserver(()=>i((g)=>g+1)),f={attributes:!0,attributeFilter:["data-theme","style","class"]};if(d.observe(document.documentElement,f),r!==document.documentElement)d.observe(r,f);return()=>d.disconnect()},[r]),Qn.useMemo(()=>UO(r),[r,l])}var IR=_(te(),1),Bl=44,rp=["turn","model","tool","subagent"],CR=6,gd=10;function _O(r,l,i,d){let f=devicePixelRatio,g=Math.floor(i*f),v=Math.floor(Bl*f),h,m;if(typeof OffscreenCanvas>"u"){let C=document.createElement("canvas");C.width=g,C.height=v,h=C,m=C.getContext("2d")}else{let C=new OffscreenCanvas(g,v);h=C,m=C.getContext("2d")}if(!m)return h;m.setTransform(f,0,0,f,0,0);let[S,y]=l.domain,b=Math.max(y-S,0.000000001),L=rp.map(()=>new Float32Array(i));for(let C of r)for(let I of C.spans){let R=rp.indexOf(I.kind);if(R===-1)continue;let O=L[R],z=Math.max(0,Math.floor((l.toU(I.start)-S)/b*i)),Y=Math.min(i-1,Math.ceil((l.toU(I.end)-S)/b*i));for(let W=z;W<=Y;W++)O[W]=Math.min(1,O[W]+0.34)}let T=Bl/rp.length;for(let C=0;C<rp.length;C++){let I=L[C];m.fillStyle=d.category[rp[C]];for(let R=0;R<i;R++){if(I[R]<=0)continue;m.globalAlpha=0.25+I[R]*0.75,m.fillRect(R,C*T+1,1,T-2)}m.globalAlpha=1}return h}function TR({tracks:r,scale:l,viewport:i,onViewportChange:d}){let f=hd(),g=br.useRef(null),[v,h]=br.useState(800),m=br.useRef(null);br.useEffect(()=>{let z=g.current;if(!z)return;let Y=new ResizeObserver((W)=>{h(Math.max(100,Math.floor(W[0].contentRect.width)))});return Y.observe(z),()=>Y.disconnect()},[]);let[S,y]=l.domain,b=Math.max(y-S,0.000000001),L=br.useCallback((z)=>(z-S)/b*v,[S,b,v]),T=br.useCallback((z)=>S+z/Math.max(v,1)*b,[S,b,v]),C=br.useMemo(()=>_O(r,l,v,f),[r,l,v,f]);br.useEffect(()=>{let z=g.current;if(!z)return;let Y=z.getContext("2d");if(!Y)return;let W=devicePixelRatio;Y.setTransform(1,0,0,1,0,0),Y.clearRect(0,0,z.width,z.height),Y.drawImage(C,0,0),Y.setTransform(W,0,0,W,0,0);let ue=L(i.u0),Z=L(i.u1);Y.fillStyle=f.brush,Y.fillRect(ue,0,Z-ue,Bl),Y.strokeStyle=f.selection,Y.strokeRect(ue+0.5,0.5,Z-ue-1,Bl-1),Y.fillStyle=f.selection,Y.fillRect(ue,0,2,Bl),Y.fillRect(Z-2,0,2,Bl)},[C,i,f,L]);let I=(z)=>{let Y=z.currentTarget.getBoundingClientRect(),W=z.clientX-Y.left,ue=L(i.u0),Z=L(i.u1),ce;if(Math.abs(W-ue)<=CR)ce="left";else if(Math.abs(W-Z)<=CR)ce="right";else if(W>ue&&W<Z)ce="move";else{ce="create";let ee=T(W);d(np({u0:ee,u1:ee+gd},S,y))}m.current={mode:ce,startX:W,startViewport:i},z.currentTarget.setPointerCapture(z.pointerId)},R=(z)=>{let Y=m.current;if(!Y)return;let W=z.currentTarget.getBoundingClientRect(),ue=z.clientX-W.left,Z=T(ue)-T(Y.startX),{u0:ce,u1:ee}=Y.startViewport;if(Y.mode==="move")d(np({u0:ce+Z,u1:ee+Z},S,y));else if(Y.mode==="left")d(np({u0:Math.min(ce+Z,ee-gd),u1:ee},S,y));else if(Y.mode==="right")d(np({u0:ce,u1:Math.max(ee+Z,ce+gd)},S,y));else{let G=T(Y.startX),V=T(ue);d(np({u0:Math.min(G,V),u1:Math.max(G,V,Math.min(G,V)+gd)},S,y))}},O=()=>{m.current=null};return IR.jsxDEV("canvas",{ref:g,width:Math.floor(v*devicePixelRatio),height:Math.floor(Bl*devicePixelRatio),className:"traces-minimap",style:{height:Bl},role:"slider","aria-label":u("trace.minimap-aria"),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round((i.u0-S)/b*100),tabIndex:-1,onPointerDown:I,onPointerMove:R,onPointerUp:O},void 0,!1,void 0,this)}function np(r,l,i){let d=Math.max(gd,r.u1-r.u0);d=Math.min(d,i-l||gd);let f=r.u0;if(f<l)f=l;if(f+d>i)f=i-d;return{u0:f,u1:f+d}}var Wn=_(Ke(),1);var je=_(te(),1);function HO(r){let l=[];if(typeof r==="string"){if(r.trim())l.push({kind:"text",text:r});return l}if(!Array.isArray(r))return l;for(let i of r){if(!i||typeof i!=="object"||!("type"in i))continue;if((i.type==="text"||i.type==="thinking")&&"text"in i&&typeof i.text==="string")l.push({kind:String(i.type),text:i.text})}return l}function FO({title:r,subtitle:l,actions:i,onClose:d,children:f}){return je.jsxDEV("section",{className:"traces-inline-detail","aria-label":"Selected span details",children:[je.jsxDEV("header",{className:"drawer-header",children:[je.jsxDEV("div",{className:"drawer-titles",children:[je.jsxDEV("h2",{className:"drawer-title",children:r},void 0,!1,void 0,this),l!==void 0&&je.jsxDEV("div",{className:"drawer-subtitle",children:l},void 0,!1,void 0,this)]},void 0,!0,void 0,this),i,je.jsxDEV("button",{type:"button",className:"btn","data-icon":"true",onClick:d,"aria-label":"Close span details",children:je.jsxDEV(Ao,{size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),je.jsxDEV("div",{className:"drawer-body",children:f},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function RR({span:r,track:l,onClose:i,onOpenChildTrack:d,loadEntry:f=wI,inline:g=!1,onNavigate:v}){let[h,m]=Wn.useState(null),[S,y]=Wn.useState(!1),[b,L]=Wn.useState(null),[T,C]=Wn.useState(!1),I=Wn.useRef(0);if(Wn.useEffect(()=>{if(m(null),L(null),C(!1),y(!1),!r||!l||!r.entryId)return;y(!0);let Z=new AbortController;return f(l.file,r.entryId,Z.signal).then((ce)=>{if(!Z.signal.aborted)m(ce.entry)}).catch((ce)=>{if(Z.signal.aborted)return;L(dg(ce))}).finally(()=>{if(!Z.signal.aborted)y(!1)}),()=>Z.abort()},[r,l,f]),Wn.useEffect(()=>()=>window.clearTimeout(I.current),[]),!r)return null;let R=async()=>{try{await navigator.clipboard.writeText(JSON.stringify(h??r,null,2)),C(!0),window.clearTimeout(I.current),I.current=window.setTimeout(()=>C(!1),1500)}catch{}},z=(h&&typeof h==="object"?h:{}).message,Y=z?.usage,W=[{key:"duration",label:u("common.duration"),value:je.jsxDEV("span",{className:"num",children:[Ct(r.end-r.start),r.unterminated&&je.jsxDEV("span",{className:"muted",children:[" · ",u("trace.unterminated")]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},{key:"start",label:u("trace.start"),value:je.jsxDEV("span",{className:"num",children:Gf(r.start)},void 0,!1,void 0,this)},{key:"track",label:u("trace.track"),value:je.jsxDEV("span",{className:"mono",children:l?.label??"-"},void 0,!1,void 0,this)}];if(r.kind==="model"){if(W.push({key:"tokens",label:u("common.tokens"),value:je.jsxDEV("span",{className:"num",children:A(r.tokens??0)},void 0,!1,void 0,this)},{key:"cost",label:u("common.cost"),value:je.jsxDEV("span",{className:"num",children:["$",(r.cost??0).toFixed(4)]},void 0,!0,void 0,this)},{key:"ttft",label:u("trace.ttft"),value:je.jsxDEV("span",{className:"num",children:Ct(r.ttft??null)},void 0,!1,void 0,this)},{key:"model",label:u("common.model"),value:je.jsxDEV("span",{className:"mono",children:z?.model??r.model??"-"},void 0,!1,void 0,this)}),Y)W.push({key:"split",label:u("trace.io-cached"),value:je.jsxDEV("span",{className:"num",children:[A(Y.input??0)," / ",A(Y.output??0)," /"," ",A(Y.cacheRead??0)]},void 0,!0,void 0,this)});if(z?.provider)W.push({key:"provider",label:u("common.provider"),value:je.jsxDEV("span",{className:"mono",children:z.provider},void 0,!1,void 0,this)});if(z?.stopReason)W.push({key:"stop",label:u("trace.stop-reason"),value:je.jsxDEV("span",{className:"mono",children:z.stopReason},void 0,!1,void 0,this)})}return je.jsxDEV(g?FO:ad,{open:!0,onClose:i,title:r.label,subtitle:je.jsxDEV("span",{className:"row",style:{gap:6},children:je.jsxDEV(ct,{tone:r.isError?"bad":"neutral",children:r.isError?`${r.kind} · ${u("common.error")}`:r.kind},void 0,!1,void 0,this)},void 0,!1,void 0,this),actions:je.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-icon":"true",onClick:R,"aria-label":u("trace.copy-json"),title:u("trace.copy-json"),children:T?je.jsxDEV(Ai,{size:15},void 0,!1,void 0,this):je.jsxDEV(Di,{size:15},void 0,!1,void 0,this)},void 0,!1,void 0,this),children:je.jsxDEV("div",{className:"stack traces-drawer",children:[je.jsxDEV(ko,{items:W},void 0,!1,void 0,this),v&&l&&r.entryId&&je.jsxDEV("div",{children:je.jsxDEV("button",{type:"button",className:"btn","data-size":"sm",onClick:()=>{if(r.entryId)v(l.id,r.entryId)},children:"Jump to transcript"},void 0,!1,void 0,this)},void 0,!1,void 0,this),z?.errorMessage&&je.jsxDEV("div",{className:"stack",style:{gap:6},children:[je.jsxDEV("div",{className:"section-label tone-bad",children:u("trace.error-message")},void 0,!1,void 0,this),je.jsxDEV("pre",{className:"code-block traces-pre",children:z.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this),r.kind==="subagent"&&je.jsxDEV("div",{className:"stack",style:{gap:8},children:[r.detail&&je.jsxDEV(je.Fragment,{children:[je.jsxDEV("div",{className:"section-label",children:u("trace.task")},void 0,!1,void 0,this),je.jsxDEV("pre",{className:"code-block traces-pre",children:r.detail},void 0,!1,void 0,this)]},void 0,!0,void 0,this),r.childTrackId&&d&&je.jsxDEV("div",{children:je.jsxDEV("button",{type:"button",className:"btn","data-size":"sm",onClick:()=>d(r.childTrackId??""),children:[u("trace.open-child-track")," ",je.jsxDEV("span",{className:"mono",children:r.childTrackId},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),r.kind==="tool"&&r.detail&&je.jsxDEV("div",{className:"stack",style:{gap:6},children:[je.jsxDEV("div",{className:"section-label",children:u("trace.args")},void 0,!1,void 0,this),je.jsxDEV("pre",{className:"code-block traces-pre",children:r.detail},void 0,!1,void 0,this)]},void 0,!0,void 0,this),S&&je.jsxDEV("div",{className:"stack",children:[je.jsxDEV(Ga,{height:80},void 0,!1,void 0,this),je.jsxDEV(Ga,{height:160},void 0,!1,void 0,this)]},void 0,!0,void 0,this),b&&je.jsxDEV(Nl,{error:u("trace.load-failed",{message:b.message})},void 0,!1,void 0,this),!S&&h!==null&&HO(z?.content).map((Z,ce)=>je.jsxDEV("div",{className:"stack",style:{gap:6},children:[je.jsxDEV("div",{className:"section-label",children:Z.kind==="thinking"?u("trace.thinking"):u("trace.text")},void 0,!1,void 0,this),je.jsxDEV("pre",{className:"code-block traces-pre","data-scroll":"true",children:Z.text},void 0,!1,void 0,this)]},`${Z.kind}-${ce}`,!0,void 0,this)),!S&&h!==null&&je.jsxDEV(od,{data:h,title:u("trace.raw-entry"),initialCollapsed:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var un=_(te(),1);function AR({summary:r}){let l=(i)=>r.wallMs>0?u("trace.of-wall",{percent:Ge(i/r.wallMs)}):void 0;return un.jsxDEV(wa,{min:112,children:[un.jsxDEV(ie,{size:"sm",label:u("trace.wall-time"),value:yr(r.wallMs)},void 0,!1,void 0,this),un.jsxDEV(ie,{size:"sm",label:u("trace.model-time"),value:yr(r.modelMs),hint:l(r.modelMs)},void 0,!1,void 0,this),un.jsxDEV(ie,{size:"sm",label:u("trace.tool-time"),value:yr(r.toolMs),hint:l(r.toolMs)},void 0,!1,void 0,this),un.jsxDEV(ie,{size:"sm",label:u("trace.idle"),value:yr(r.idleMs),hint:l(r.idleMs)},void 0,!1,void 0,this),un.jsxDEV(ie,{size:"sm",label:u("trace.turns"),value:A(r.turns)},void 0,!1,void 0,this),un.jsxDEV(ie,{size:"sm",label:u("common.requests"),value:A(r.requests),hint:u("trace.tool-calls-n",{count:A(r.toolCalls)})},void 0,!1,void 0,this),un.jsxDEV(ie,{size:"sm",label:u("trace.agents"),value:A(r.subagents)},void 0,!1,void 0,this),un.jsxDEV(ie,{size:"sm",label:u("common.tokens"),value:se(r.totalTokens)},void 0,!1,void 0,this),un.jsxDEV(ie,{size:"sm",label:u("common.cost"),value:oa(r.costTotal,r.unpricedRequests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Kt=_(Ke(),1),BR=_(Jc(),1);function Cg(r,l){let i=r.length,d=[l[0],l[i-1]],f=(g,v)=>{let h=0,m=i-1;while(h<m){let S=h+m+1>>1;if(g[S]<=v)h=S;else m=S-1}return Math.min(h,i-2)};return{toU(g){if(g<=r[0])return l[0];if(g>=r[i-1])return l[i-1];let v=f(r,g),h=r[v+1]-r[v];if(h<=0)return l[v];return l[v]+(g-r[v])/h*(l[v+1]-l[v])},toT(g){if(g<=l[0])return r[0];if(g>=l[i-1])return r[i-1];let v=f(l,g),h=l[v+1]-l[v];if(h<=0)return r[v];return r[v]+(g-l[v])/h*(r[v+1]-r[v])},domain:d,gaps:[]}}function GO(r){let l=[];for(let i of r)for(let d of i.spans)l.push([d.start,d.end]);return l.sort((i,d)=>i[0]-d[0]),l}function VO(r){let{POSITIVE_INFINITY:l,NEGATIVE_INFINITY:i}=Number;for(let d of r)for(let f of d.spans){if(f.start<l)l=f.start;if(f.end>i)i=f.end}if(!Number.isFinite(l))return[0,1];return[l,Math.max(i,l+1)]}function MR(r,l,i){let d=[...new Set(r.filter((h)=>h>=l&&h<=i))].sort((h,m)=>h-m);if(d[0]!==l)d.unshift(l);if(d[d.length-1]!==i)d.push(i);if(d.length<2)return Cg([l,i],[l,i]);let g=(i-l)/(d.length-1),v=d.map((h,m)=>l+m*g);return Cg(d,v)}function jO(r,l,i){let d=GO(r),f=[];for(let[y,b]of d){let L=y-2000,T=b+2000,C=f[f.length-1];if(C&&L<=C[1]){if(T>C[1])C[1]=T}else f.push([L,T])}if(f.length===0)f.push([l,i]);f[0][0]=Math.max(f[0][0],l),f[f.length-1][1]=Math.min(Math.max(f[f.length-1][1],f[f.length-1][0]),i);let g=[],v=[],h=[],m=f[0][0];for(let y=0;y<f.length;y++){let[b,L]=f[y];if(y===0)g.push(b),v.push(m);else{let T=f[y-1][1],C=b-T;if(C>30000)m+=8000,h.push({t0:T,t1:b,uMid:m-4000});else m+=C;g.push(b),v.push(m)}m+=Math.max(0,L-b),g.push(L),v.push(m)}return{...Cg(g,v),gaps:h}}function DR(r,l,i){let[d,f]=VO(r);if(l==="turns"){let v=(r.find((h)=>h.id==="main")?.spans??[]).filter((h)=>h.kind==="turn").map((h)=>h.start);return MR(v,d,f)}if(l==="calls"){let g=[];for(let v of r)for(let h of v.spans)if(h.kind==="model"||h.kind==="tool"||h.kind==="background")g.push(h.start,h.end);return MR(g,d,f)}if(i)return jO(r,d,f);return Cg([d,f],[d,f])}var $O=90;function XO(r){let l=10**Math.floor(Math.log10(Math.max(r,1)));for(let i of[1,2,5,10])if(l*i>=r)return l*i;return l*10}function YO(r){let l=new Date(r),i=String(l.getHours()).padStart(2,"0"),d=String(l.getMinutes()).padStart(2,"0"),f=String(l.getSeconds()).padStart(2,"0");return`${i}:${d}:${f}`}function yd(r){let l=r<0?"-":"+",i=Math.abs(r),d=Math.floor(i/3600000),f=Math.floor(i%3600000/60000),g=Math.floor(i%60000/1000),v=Math.floor(i%1000),h=i%1000!==0,m=`${String(f).padStart(2,"0")}:${String(g).padStart(2,"0")}${h?".":""}${h?String(v).padStart(3,"0"):""}`;return d>0?`${l}${d}:${m}`:`${l}${m}`}function ER(r,l,i,d){let f=i-l;if(f<=0||d<=0)return[];let g=[],v=r.domain[0],h=XO(f*$O/d),m=v+Math.ceil((l-v)/h)*h,S=0;for(let y=m;y<=i&&S<200;y+=h,S++){let b=r.toT(y),L=Math.round((y-v)/h)%5===0;g.push({u:y,label:L?YO(b):yd(y-v),major:L})}return g}var Gt=_(te(),1),qs=28,Gb=22,Wo=18,NR=3,KO=14,qR=200,_b=10,zR=2,QO=4,WO=56,Tg=3,Fb=0.3;function ZO(){return[{kind:"turn",label:u("common.input")},{kind:"model",label:u("common.model")},{kind:"tool",label:u("trace.tools")},{kind:"subagent",label:u("trace.agents")},{kind:"background",label:u("trace.bg")}]}function JO(r,l){let i=new Map(r.map((m)=>[m.id,m])),d=new Set;for(let m of r)if(m.parentId)d.add(m.parentId);let f=(m)=>{let S=m.parentId;while(S){if(l.has(S))return!0;S=i.get(S)?.parentId??null}return!1},g=[],v=[],h=qs+6;for(let m of r){if(f(m))continue;let S=m.id==="main"?0:m.id.split("/").length,y={turn:[],model:[],tool:[],subagent:[],background:[]};for(let L of m.spans)y[L.kind].push(L);let b={track:m,depth:S,hasChildren:d.has(m.id),headerY:h,lanes:[],turnSpans:y.turn,y0:h,y1:h};h+=Gb;for(let{kind:L,label:T}of ZO()){let C=y[L],I=L==="turn"||L==="model"||L==="tool";if(C.length===0&&!(m.id==="main"&&I))continue;let R={track:m,kind:L,label:T,y:h,spans:C};b.lanes.push(R),v.push(R),h+=Wo+NR}b.y1=h-NR,g.push(b),h+=KO}return{blocks:g,lanes:v,totalHeight:Math.max(h,qs+48)}}function eB(r,l){return r.lanes.map((i)=>{let d=i.spans.length,f=new Float64Array(d),g=new Float64Array(d),v=new Float64Array(d),h=Number.NEGATIVE_INFINITY;for(let m=0;m<d;m++){let S=i.spans[m];f[m]=l.toU(S.start),g[m]=l.toU(S.end),h=Math.max(h,g[m]),v[m]=h}return{startU:f,endU:g,maxEndU:v}})}function tB(r,l){let i=0,d=r.length;while(i<d){let f=i+d>>>1;if(r[f]<l)i=f+1;else d=f}return i}function aB(r,l){if(r===null||l===null)return r===l;if(r.kind==="span")return l.kind==="span"&&r.span===l.span;return l.kind==="marker"&&r.marker===l.marker}function PR({tracks:r,scale:l,viewport:i,onViewportChange:d,selected:f,onSelect:g,matchIds:v,collapsed:h,onToggleCollapse:m,traceStart:S,autoFocus:y=!0}){let b=_n(),L=hd(),T=Kt.useRef(null),C=Kt.useRef(null),I=Kt.useRef(null),[R,O]=Kt.useState(800),[z,Y]=Kt.useState(null),W=Kt.useRef(null);W.current=z;let ue=Kt.useRef({clientX:0,clientY:0}),Z=Kt.useRef([]),ce=Kt.useRef(null),ee=Kt.useRef(null),G=Kt.useRef(i);G.current=i;let V=Kt.useMemo(()=>JO(r,h),[r,h,b]),Re=Kt.useMemo(()=>eB(V,l),[V,l]);Kt.useEffect(()=>{let H=T.current;if(!H)return;let we=new ResizeObserver((he)=>{let it=Math.max(100,Math.floor(he[0].contentRect.width-qR));O(it)});return we.observe(H),()=>we.disconnect()},[]);let pe=Kt.useCallback((H,we)=>{let[he,it]=l.domain,ze=Math.max(_b,we-H);ze=Math.min(ze,it-he||_b);let ke=H;if(ke<he)ke=he;if(ke+ze>it)ke=it-ze;return{u0:ke,u1:ke+ze}},[l]),Ne=Kt.useCallback((H)=>{G.current=H,d(H)},[d]),Te=Kt.useCallback((H,we)=>{let he=R,{u0:it,u1:ze}=G.current,ke=ze-it,Qt=we===null?0.5:Math.min(1,Math.max(0,we/he)),qe=it+ke*Qt,Ea=ke*H;Ne(pe(qe-Ea*Qt,qe+Ea*(1-Qt)))},[R,Ne,pe]),oe=Kt.useCallback((H)=>{let{u0:we,u1:he}=G.current;Ne(pe(we+H,he+H))},[Ne,pe]),Se=Kt.useCallback((H)=>{let we=l.toU(H.start),he=l.toU(H.end),it=Math.max((he-we)*0.1,_b/2);Ne(pe(we-it,he+it))},[l,Ne,pe]);Kt.useEffect(()=>{let H=C.current;if(!H)return;let we=(he)=>{he.preventDefault();let it=H.getBoundingClientRect(),ze=he.clientX-it.left;ee.current=ze,Y(null);let ke=H.clientWidth||1,Qt=()=>G.current.u1-G.current.u0;if(he.shiftKey){let qe=Math.abs(he.deltaY)>=Math.abs(he.deltaX)?he.deltaY:he.deltaX;oe(qe/ke*Qt());return}if(he.deltaX!==0)oe(he.deltaX/ke*Qt());if(he.deltaY!==0)Te(1.0015**he.deltaY,ze)};return H.addEventListener("wheel",we,{passive:!1}),()=>H.removeEventListener("wheel",we)},[Te,oe]);let Ee=Kt.useCallback((H,we)=>{let he=C.current;if(!he)return null;let it=he.getBoundingClientRect(),ze=H-it.left,ke=we-it.top,Qt=Z.current;for(let qe=Qt.length-1;qe>=0;qe--){let Ea=Qt[qe];if(ze>=Ea.x&&ze<=Ea.x+Ea.w&&ke>=Ea.y&&ke<=Ea.y+Ea.h)return Ea}return null},[]),Qe=Kt.useCallback(()=>{let H=I.current;if(!H)return;let{clientX:we,clientY:he}=ue.current,it=Math.min(we+14,window.innerWidth-320),ze=he+16>window.innerHeight-140?he-120:he+16;H.style.transform=`translate(${it}px, ${ze}px)`},[]),yt=(H)=>{H.currentTarget.setPointerCapture(H.pointerId),ce.current={pointerId:H.pointerId,lastX:H.clientX,moved:!1},H.currentTarget.focus()},Q=(H)=>{let we=H.currentTarget.getBoundingClientRect();ee.current=H.clientX-we.left;let he=ce.current;if(he&&he.pointerId===H.pointerId){let ze=H.clientX-he.lastX;if(Math.abs(ze)>0){if(Math.abs(ze)>2)he.moved=!0;he.lastX=H.clientX;let ke=G.current.u1-G.current.u0;oe(-ze/(R||1)*ke)}Y(null);return}ue.current={clientX:H.clientX,clientY:H.clientY};let it=Ee(H.clientX,H.clientY);if(aB(it,W.current))Qe();else Y(it)},Fe=(H)=>{let we=ce.current;if(ce.current=null,we?.moved)return;let he=Ee(H.clientX,H.clientY);if(he?.kind==="span")g(he.span.id);else g(null)},It=(H)=>{let we=Ee(H.clientX,H.clientY);if(we?.kind==="span")Se(we.span)},St=Kt.useCallback((H)=>{let we=f?.span.id;if(!we)return;for(let he of V.lanes){let it=he.spans.findIndex((Qt)=>Qt.id===we);if(it===-1)continue;let ze=he.spans[it+H];if(!ze)return;g(ze.id);let ke=l.toU(ze.start);if(ke<i.u0||ke>i.u1){let Qt=i.u1-i.u0;d(pe(ke-Qt/2,ke+Qt/2))}return}},[f,V,g,l,i,d,pe]),ge=(H)=>{let we=i.u1-i.u0;switch(H.key){case"w":case"W":Te(0.7692307692307692,ee.current);break;case"s":case"S":Te(1.3,ee.current);break;case"a":case"A":oe(-we*0.2);break;case"d":case"D":oe(we*0.2);break;case"0":d({u0:l.domain[0],u1:l.domain[1]});break;case"f":case"F":if(f)Se(f.span);break;case"Escape":g(null);break;case",":St(-1);break;case".":St(1);break;default:return}H.preventDefault(),H.stopPropagation()};Kt.useEffect(()=>{if(y)C.current?.focus({preventScroll:!0})},[y]),Kt.useEffect(()=>{let H=C.current;if(!H)return;let we=requestAnimationFrame(()=>{Z.current=oB(H,V,Re,l,i,L,R,v)});return()=>cancelAnimationFrame(we)},[V,Re,l,i,L,R,v]);let Ye=z?.kind==="span"?OR(z,V,l,i,R):null,He=f?OR(f,V,l,i,R):null;Kt.useLayoutEffect(()=>{if(z)Qe()},[z,Qe]);let ua=z?rB(z,S,I):null,da=Math.floor(R*devicePixelRatio),j=Math.floor(V.totalHeight*devicePixelRatio),We={width:R,height:V.totalHeight};return Gt.jsxDEV("div",{ref:T,className:"traces-timeline",children:[Gt.jsxDEV("div",{style:{width:qR,flexShrink:0,position:"relative",height:V.totalHeight},children:V.blocks.map((H)=>Gt.jsxDEV("div",{children:[Gt.jsxDEV("div",{style:{position:"absolute",top:H.headerY,left:4+H.depth*14,right:8,height:Gb,display:"flex",alignItems:"center",gap:5,minWidth:0},children:[H.hasChildren?Gt.jsxDEV("button",{type:"button",onClick:()=>m(H.track.id),"aria-label":h.has(H.track.id)?u("trace.expand-track",{track:H.track.label}):u("trace.collapse-track",{track:H.track.label}),className:"traces-chevron",children:h.has(H.track.id)?Gt.jsxDEV(tn,{size:12},void 0,!1,void 0,this):Gt.jsxDEV(Mi,{size:12},void 0,!1,void 0,this)},void 0,!1,void 0,this):Gt.jsxDEV("span",{style:{width:12,flexShrink:0}},void 0,!1,void 0,this),Gt.jsxDEV("span",{className:"traces-gutter-track truncate",style:{minWidth:0},children:H.track.label},void 0,!1,void 0,this),H.track.model&&Gt.jsxDEV("span",{className:"traces-gutter-model mono truncate",style:{flexShrink:1,minWidth:0},children:H.track.model},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H.lanes.map((we)=>Gt.jsxDEV("div",{className:"traces-gutter-lane",style:{top:we.y,left:20+H.depth*14,lineHeight:`${Wo}px`},children:we.label},`${we.track.id}:${we.kind}`,!1,void 0,this))]},H.track.id,!0,void 0,this))},void 0,!1,void 0,this),Gt.jsxDEV("div",{className:"traces-canvas-stack",style:We,children:[Gt.jsxDEV("canvas",{ref:C,className:"traces-canvas",width:da,height:j,style:We,tabIndex:0,role:"application","aria-label":u("trace.canvas-aria"),onPointerDown:yt,onPointerMove:Q,onPointerUp:Fe,onPointerLeave:()=>{ee.current=null,Y(null)},onDoubleClick:It,onKeyDown:ge},void 0,!1,void 0,this),Ye&&z?.kind==="span"&&Gt.jsxDEV("div",{className:"traces-canvas-hover","aria-hidden":"true",style:{left:Ye.x,top:Ye.y,width:Ye.w,height:Wo,borderRadius:Tg,opacity:v===null||v.has(z.span.id)?1:Fb}},void 0,!1,void 0,this),He&&f&&Gt.jsxDEV("div",{className:"traces-canvas-selection","aria-hidden":"true",style:{left:He.x-1,top:He.y-1,width:He.w+2,height:Wo+2,borderRadius:Tg,borderColor:L.selection,opacity:v===null||v.has(f.span.id)?1:Fb}},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ua&&BR.createPortal(ua,T.current?.getRootNode()instanceof ShadowRoot?T.current.getRootNode():document.body)]},void 0,!0,void 0,this)}function Hb(r,l,i,d,f){if(r.beginPath(),d>=Tg*2+1)r.roundRect(l,i,d,f,Tg);else r.rect(l,i,d,f)}function oB(r,l,i,d,f,g,v,h){let m=[],S=r.getContext("2d");if(!S)return m;let y=l.totalHeight,b=devicePixelRatio;S.setTransform(b,0,0,b,0,0),S.clearRect(0,0,v,y);let{u0:L,u1:T}=f,C=Math.max(T-L,0.000000001),I=(R)=>(R-L)/C*v;for(let R of l.blocks){let O=R.turnSpans;for(let z=0;z<O.length;z++){let Y=I(d.toU(O[z].start)),W=z+1<O.length?I(d.toU(O[z+1].start)):v;if(W<0||Y>v)continue;if(z%2===1)S.fillStyle=g.turnBand,S.fillRect(Math.max(0,Y),R.y0,Math.min(v,W)-Math.max(0,Y),R.y1-R.y0);if(Y>=0&&Y<=v)S.strokeStyle=g.grid,S.beginPath(),S.moveTo(Math.round(Y)+0.5,R.y0),S.lineTo(Math.round(Y)+0.5,R.y1),S.stroke()}}S.font=`9px ${g.fontMono}`;for(let R of d.gaps){let O=I(R.uMid);if(O<-24||O>v+24)continue;S.save(),S.strokeStyle=g.grid,S.setLineDash([2,4]),S.beginPath(),S.moveTo(O,qs),S.lineTo(O,y),S.stroke(),S.restore(),S.fillStyle=g.tick,S.textAlign="center",S.fillText(`⋯ ${Ct(R.t1-R.t0)}`,O,qs-4),S.textAlign="left"}for(let R of ER(d,L,T,v)){let O=Math.round(I(R.u))+0.5;if(S.strokeStyle=g.grid,S.beginPath(),R.major)S.moveTo(O,4),S.lineTo(O,y);else S.moveTo(O,qs-8),S.lineTo(O,qs);if(S.stroke(),S.fillStyle=g.tick,R.major)S.fillText(R.label,O+4,11);else S.globalAlpha=0.75,S.fillText(R.label,O+3,qs-10),S.globalAlpha=1}S.strokeStyle=g.grid,S.beginPath(),S.moveTo(0,qs+0.5),S.lineTo(v,qs+0.5),S.stroke(),S.font=`10px ${g.fontSans}`;for(let R=0;R<l.lanes.length;R++){let O=l.lanes[R],{startU:z,endU:Y,maxEndU:W}=i[R],ue=O.kind==="turn";for(let Z=tB(W,L);Z<O.spans.length;Z++){let ce=z[Z];if(ce>T)break;let ee=Y[Z];if(ee<L)continue;let G=O.spans[Z],V=I(ce),Re=Math.max(zR,I(ee)-V),pe=O.y,Ne=h===null||h.has(G.id)?1:Fb,Te=g.category[G.kind];if(S.globalAlpha=Ne,ue)S.fillStyle=Te,S.globalAlpha=Ne*0.23,Hb(S,V,pe,Re,Wo),S.fill(),S.globalAlpha=Ne,S.fillStyle=Te,S.fillRect(V,pe,2,Wo);else S.fillStyle=Te,Hb(S,V,pe,Re,Wo),S.fill();if(G.isError)S.fillStyle=g.errorSoft,Hb(S,V,pe,Re,Wo),S.fill(),S.fillStyle=g.error,S.fillRect(V,pe,2,Wo);if(G.kind==="model"&&typeof G.ttft==="number"&&G.ttft>0&&Re>20){let Se=I(d.toU(G.start+G.ttft));if(Se>V+1&&Se<V+Re-1)S.fillStyle="rgba(0,0,0,0.5)",S.fillRect(Se,pe+3,1,Wo-6)}if(G.unterminated)S.save(),S.strokeStyle=g.tick,S.setLineDash([2,2]),S.beginPath(),S.moveTo(V+Re-0.5,pe),S.lineTo(V+Re-0.5,pe+Wo),S.stroke(),S.restore();if(Re>WO)S.save(),S.beginPath(),S.rect(V+3,pe,Re-6,Wo),S.clip(),S.fillStyle=ue?g.tick:g.spanText,S.fillText(G.label,V+5,pe+Wo-5),S.restore();S.globalAlpha=1;let oe=Math.max(Re,QO);m.push({kind:"span",x:V-(oe-Re)/2,y:pe,w:oe,h:Wo,span:G,track:O.track})}}for(let R of l.blocks)for(let O of R.track.markers){let z=I(d.toU(O.time));if(z<-6||z>v+6)continue;let Y=R.headerY+Gb/2;S.fillStyle=g.marker,S.beginPath(),S.moveTo(z,Y-4),S.lineTo(z+4,Y),S.lineTo(z,Y+4),S.lineTo(z-4,Y),S.closePath(),S.fill(),m.push({kind:"marker",x:z-5,y:Y-5,w:10,h:10,marker:O,track:R.track})}return m}function OR({span:r,track:l},i,d,f,g){let{u0:v,u1:h}=f,m=d.toU(r.start),S=d.toU(r.end);if(m>h||S<v)return null;let y=i.lanes.find((C)=>C.track===l&&C.kind===r.kind);if(!y)return null;let b=Math.max(h-v,0.000000001),L=(m-v)/b*g,T=(S-v)/b*g;return{x:L,y:y.y,w:Math.max(zR,T-L)}}function rB(r,l,i){let d={left:0,top:0};if(r.kind==="marker"){let{marker:g}=r;return Gt.jsxDEV("div",{ref:i,className:"traces-tooltip",style:d,children:[Gt.jsxDEV("div",{className:"traces-tooltip-title",children:g.label},void 0,!1,void 0,this),Gt.jsxDEV("div",{className:"muted num",children:[Gf(g.time)," (",yd(g.time-l),")"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}let{span:f}=r;return Gt.jsxDEV("div",{ref:i,className:"traces-tooltip",style:d,children:[Gt.jsxDEV("div",{className:"traces-tooltip-title truncate",children:f.label},void 0,!1,void 0,this),Gt.jsxDEV("div",{className:"muted num",children:[Ct(f.end-f.start)," · ",Gf(f.start)," (",yd(f.start-l),")",f.unterminated?` · ${u("trace.unterminated")}`:""]},void 0,!0,void 0,this),f.kind==="model"&&Gt.jsxDEV("div",{className:"muted num",children:[f.tokens!==void 0&&Gt.jsxDEV(Gt.Fragment,{children:[A(f.tokens)," ",u("trace.tok")]},void 0,!0,void 0,this),f.cost!==void 0&&Gt.jsxDEV(Gt.Fragment,{children:[" · $",f.cost.toFixed(4)]},void 0,!0,void 0,this),f.ttft!==void 0&&Gt.jsxDEV(Gt.Fragment,{children:[" ","· ",u("trace.ttft")," ",Ct(f.ttft)]},void 0,!0,void 0,this),f.isError&&Gt.jsxDEV(Gt.Fragment,{children:[" · ",u("common.error")]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),f.kind==="subagent"&&f.model&&Gt.jsxDEV("div",{className:"muted num",children:f.model},void 0,!1,void 0,this),f.detail&&Gt.jsxDEV("div",{className:"traces-tooltip-detail",children:f.detail},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var dn=_(Ke(),1);var mo=_(te(),1),vd=28,UR=20,nB=340;function sB(r){let l=[];for(let i of r){let d=i.id==="main"?0:i.id.split("/").length;for(let f of i.spans)l.push({key:f.id,time:f.start,span:f,track:i,depth:d});for(let f=0;f<i.markers.length;f++){let g=i.markers[f];l.push({key:`${i.id}:marker:${f}`,time:g.time,marker:g,track:i,depth:d})}}return l.sort((i,d)=>i.time-d.time),l}var _R=dn.memo(function({tracks:l,selection:i,onSelect:d,search:f,matchIds:g,traceStart:v}){let h=hd(),m=dn.useRef(null),[S,y]=dn.useState(0),b=dn.useMemo(()=>sB(l),[l]),L=dn.useMemo(()=>{if(!g)return b;let R=f.trim().toLowerCase();return b.filter((O)=>O.span?g.has(O.span.id):(O.marker?.label??"").toLowerCase().includes(R))},[b,f,g]);dn.useEffect(()=>{if(!i)return;let R=m.current;if(!R)return;let O=L.findIndex((Y)=>Y.span?.id===i);if(O===-1)return;let z=O*vd;if(z<R.scrollTop||z+vd>R.scrollTop+R.clientHeight)R.scrollTop=Math.max(0,z-R.clientHeight/2)},[i,L]);let T=Math.max(0,Math.floor(S/vd)-UR),C=Math.min(L.length,Math.ceil((S+nB)/vd)+UR),I=L.slice(T,C);return mo.jsxDEV("div",{ref:m,onScroll:(R)=>y(R.currentTarget.scrollTop),className:"traces-list",children:[mo.jsxDEV("div",{style:{height:L.length*vd,position:"relative"},children:mo.jsxDEV("div",{style:{position:"absolute",top:T*vd,left:0,right:0},children:I.map((R)=>{let O=R.span,z=O!==void 0&&O.id===i,Y=R.span?h.category[R.span.kind]:h.marker,W=R.span?.label??R.marker?.label??"",ue=R.span?.detail,Z=R.span?Ct(R.span.end-R.span.start):"",ce=R.span?.kind??R.marker?.kind??"",ee=mo.jsxDEV(mo.Fragment,{children:[mo.jsxDEV("span",{className:"traces-kind",style:{"--traces-kind-color":Y},children:ce},void 0,!1,void 0,this),R.depth>0&&mo.jsxDEV("span",{className:"traces-row-track mono truncate",title:R.track.label,children:R.track.id},void 0,!1,void 0,this),mo.jsxDEV("span",{className:"traces-row-label truncate",children:W},void 0,!1,void 0,this),ue&&mo.jsxDEV("span",{className:"traces-row-detail truncate",children:ue},void 0,!1,void 0,this),mo.jsxDEV("span",{className:"traces-row-meta num",children:[R.span?.isError&&mo.jsxDEV("span",{className:"tone-bad",children:u("common.error")},void 0,!1,void 0,this),mo.jsxDEV("span",{children:Z},void 0,!1,void 0,this),mo.jsxDEV("span",{children:yd(R.time-v)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),G={paddingLeft:12+R.depth*12};return O?mo.jsxDEV("button",{type:"button",onClick:()=>d(O.id),className:"traces-row","data-selected":z?"true":"false",style:G,children:ee},R.key,!1,void 0,this):mo.jsxDEV("div",{className:"traces-row","data-static":"true",style:G,children:ee},R.key,!1,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),L.length===0&&mo.jsxDEV(Je,{title:u("trace.no-matching-events")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});var lt=_(te(),1);function lB(){return[{value:"time",label:u("common.duration"),title:u("trace.mode-time-title")},{value:"turns",label:u("trace.turns"),title:u("trace.mode-turns-title")},{value:"calls",label:u("trace.calls"),title:u("trace.mode-calls-title")}]}function iB(){return[{kind:"turn",label:u("common.input")},{kind:"model",label:u("common.model")},{kind:"tool",label:u("trace.tool")},{kind:"subagent",label:u("trace.agent")},{kind:"background",label:u("trace.background")}]}function HR({file:r,active:l,onBack:i}){let d=Pt(["trace",r],({signal:g},v)=>LI(r,g,v),{pollMs:15000,enabled:l}),f=d.stale?null:d.data;return lt.jsxDEV("div",{className:"stack traces-view",children:[lt.jsxDEV("div",{children:lt.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm",onClick:i,children:[lt.jsxDEV(nf,{size:14,"aria-hidden":"true"},void 0,!1,void 0,this),"Sessions"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),lt.jsxDEV(la,{title:lt.jsxDEV("span",{className:"traces-title truncate",children:f?.title??r.split("/").pop()},void 0,!1,void 0,this),description:f?.cwd?lt.jsxDEV("span",{className:"mono",children:f.cwd},void 0,!1,void 0,this):void 0,actions:lt.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-icon":"true",onClick:d.refetch,"aria-label":"Refresh trace",title:"Refresh trace",children:lt.jsxDEV(Dl,{size:14,className:d.refreshing?"traces-spin":void 0},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),lt.jsxDEV(_e,{query:{...d,data:f},skeleton:lt.jsxDEV(qt,{height:420},void 0,!1,void 0,this),children:(g)=>lt.jsxDEV(uB,{trace:g},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function uB({trace:r,view:l="full",loadEntry:i,embedded:d=!1,onNavigate:f}){let[g,v]=Xt.useState("time"),[h,m]=Xt.useState(!0),[S,y]=Xt.useState(null),[b,L]=Xt.useState(!1),[T,C]=Xt.useState(""),[I,R]=Xt.useState(0),[O,z]=Xt.useState(new Set),[Y,W]=Xt.useState(null),ue=Xt.useMemo(()=>r?.tracks??[],[r]),Z=Xt.useMemo(()=>DR(ue,g,h),[ue,g,h]),ce=Xt.useRef(Z),ee=Xt.useRef(null);Xt.useEffect(()=>{if(!r)return;if(ee.current===r.file)return;ee.current=r.file,y(null),C(""),W(null);let ge=new Set;for(let Ye of r.tracks)if((Ye.id==="main"?0:Ye.id.split("/").length)>=1)ge.add(Ye.id);z(ge)},[r]),Xt.useEffect(()=>{let ge=ce.current;ce.current=Z,W((Ye)=>{if(!Ye)return Ye;let He=ge.toT(Ye.u0),ua=ge.toT(Ye.u1),da=Z.toU(He),j=Z.toU(ua);return j-da>0?{u0:da,u1:j}:null})},[Z]);let G=Xt.useMemo(()=>Y??{u0:Z.domain[0],u1:Z.domain[1]},[Y,Z]),V=Xt.useMemo(()=>{let ge=[];for(let Ye of ue)for(let He of Ye.spans)ge.push({span:He,track:Ye});return ge.sort((Ye,He)=>Ye.span.start-He.span.start),ge},[ue]),Re=Xt.useMemo(()=>{let ge=T.trim().toLowerCase();if(!ge)return[];return V.filter(({span:Ye})=>`${Ye.label} ${Ye.detail??""}`.toLowerCase().includes(ge))},[V,T]),pe=Xt.useMemo(()=>T.trim()?new Set(Re.map(({span:ge})=>ge.id)):null,[Re,T]),Ne=Xt.useCallback((ge)=>{let Ye=Z.toU(ge.start),He=Z.toU(ge.end);W((ua)=>{let da=ua??{u0:Z.domain[0],u1:Z.domain[1]};if(Ye>=da.u0&&He<=da.u1)return ua;let j=da.u1-da.u0,We=(Ye+He)/2,[H,we]=Z.domain,he=We-j/2;if(he<H)he=H;if(he+j>we)he=Math.max(H,we-j);return{u0:he,u1:he+j}})},[Z]),Te=Xt.useCallback((ge)=>{y(ge);let Ye=V.find(({span:He})=>He.id===ge);if(Ye)Ne(Ye.span)},[V,Ne]),oe=Xt.useCallback((ge)=>{y(ge),L(ge!==null)},[]),Se=Xt.useCallback((ge)=>{if(Re.length===0)return;let Ye=((I+ge)%Re.length+Re.length)%Re.length;R(Ye),Te(Re[Ye].span.id)},[Re,I,Te]),Ee=Xt.useCallback((ge)=>{z((Ye)=>{let He=new Set(Ye);if(He.has(ge))He.delete(ge);else He.add(ge);return He})},[]),Qe=Xt.useMemo(()=>{if(!S)return null;return V.find(({span:ge})=>ge.id===S)??null},[S,V]),yt=Xt.useCallback((ge)=>{let Ye=ue.find((ua)=>ua.id===ge),He=Ye?.spans[0];if(z((ua)=>{let da=new Set(ua),j=Ye;while(j?.parentId)da.delete(j.parentId),j=ue.find((We)=>We.id===j?.parentId);return da}),He)Te(He.id)},[ue,Te]),Q=Xt.useCallback((ge)=>{if(!ge){z(new Set);return}let Ye=new Set;for(let He of ue)if(He.id!=="main")Ye.add(He.id);z(Ye)},[ue]),Fe=Xt.useCallback((ge)=>{Te(ge),L(!0)},[Te]),It=Xt.useCallback(()=>L(!1),[]),St=r.startedAt;return lt.jsxDEV("div",{className:"stack traces-view","data-view":l,children:[l==="full"&&lt.jsxDEV(AR,{summary:r.summary},void 0,!1,void 0,this),V.length===0&&lt.jsxDEV("p",{className:"muted",children:"No spans recorded in this session."},void 0,!1,void 0,this),lt.jsxDEV(fe,{index:1,title:u("trace.timeline"),description:u("trace.timeline-hint"),actions:lt.jsxDEV(lt.Fragment,{children:[lt.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm",onClick:()=>Q(!1),children:u("trace.expand-all")},void 0,!1,void 0,this),lt.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm",onClick:()=>Q(!0),children:u("trace.collapse-all")},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:lt.jsxDEV("div",{className:"stack",children:[lt.jsxDEV("div",{className:"traces-toolbar",children:[lt.jsxDEV(Oa,{options:lB(),value:g,onChange:v,size:"sm","aria-label":u("trace.axis-mode")},void 0,!1,void 0,this),g==="time"&&lt.jsxDEV("label",{className:"traces-check",children:[lt.jsxDEV("input",{type:"checkbox",checked:h,onChange:(ge)=>m(ge.target.checked)},void 0,!1,void 0,this),u("trace.compress-idle")]},void 0,!0,void 0,this),lt.jsxDEV("div",{className:"traces-search",children:[lt.jsxDEV(Fn,{value:T,onChange:(ge)=>{C(ge),R(0)},label:u("trace.search-placeholder"),placeholder:u("trace.search-placeholder"),width:200},void 0,!1,void 0,this),T.trim()&&lt.jsxDEV(lt.Fragment,{children:[lt.jsxDEV("span",{className:"num muted traces-match-count",children:Re.length===0?"0":`${I%Math.max(Re.length,1)+1}/${Re.length}`},void 0,!1,void 0,this),lt.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm","data-icon":"true",onClick:()=>Se(-1),"aria-label":u("trace.previous-match"),disabled:Re.length===0,children:lt.jsxDEV(cf,{size:14},void 0,!1,void 0,this)},void 0,!1,void 0,this),lt.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm","data-icon":"true",onClick:()=>Se(1),"aria-label":u("trace.next-match"),disabled:Re.length===0,children:lt.jsxDEV(tn,{size:14},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),lt.jsxDEV("div",{className:"traces-legend",children:iB().map((ge)=>lt.jsxDEV("span",{className:"traces-legend-item",children:[lt.jsxDEV("span",{className:"swatch",style:{background:`var(${ji[ge.kind]})`}},void 0,!1,void 0,this),ge.label]},ge.kind,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),lt.jsxDEV(TR,{tracks:ue,scale:Z,viewport:G,onViewportChange:W},void 0,!1,void 0,this),lt.jsxDEV(PR,{tracks:ue,scale:Z,viewport:G,onViewportChange:W,selected:Qe,onSelect:oe,matchIds:pe,collapsed:O,onToggleCollapse:Ee,traceStart:St,autoFocus:!d},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),lt.jsxDEV(RR,{span:b?Qe?.span??null:null,track:Qe?.track??null,onClose:It,onOpenChildTrack:yt,loadEntry:i,inline:d,onNavigate:f},void 0,!1,void 0,this),l==="full"&&lt.jsxDEV(fe,{index:2,title:u("trace.transcript"),description:u("trace.transcript-description"),flush:!0,children:lt.jsxDEV(_R,{tracks:ue,selection:S,onSelect:Fe,search:T,matchIds:pe,traceStart:St},void 0,!1,void 0,this)},void 0,!1,void 0,this),l==="full"&&lt.jsxDEV(wR,{toolStats:r.summary.toolStats,index:3},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Sa=_(te(),1),FR=200;function dB({models:r}){if(r.length===0)return Sa.jsxDEV("span",{className:"dim",children:"-"},void 0,!1,void 0,this);return Sa.jsxDEV("span",{className:"traces-models",title:r.join(`
240
- `),children:[Sa.jsxDEV("span",{className:"mono truncate",children:r[0]},void 0,!1,void 0,this),r.length>1&&Sa.jsxDEV("span",{className:"badge",children:["+",r.length-1]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function GR({active:r,session:l,onOpenSession:i}){let[d,f]=xd.useState(""),g=Pt(["sessions",FR],({signal:y})=>kI(FR,void 0,y),{pollMs:30000,enabled:r&&l===null}),v=xd.useMemo(()=>{let y=g.data??[],b=d.trim().toLowerCase();if(!b)return y;return y.filter((L)=>(L.title??"").toLowerCase().includes(b)||L.folder.toLowerCase().includes(b)||L.models.some((T)=>T.toLowerCase().includes(b)))},[g.data,d]),h=xd.useMemo(()=>Math.max(0,...v.map((y)=>y.costTotal)),[v]),m=xd.useMemo(()=>[{key:"title",header:u("trace.session"),width:"32%",render:(y)=>Sa.jsxDEV(co,{primary:y.title??y.file.split("/").pop(),secondary:Sa.jsxDEV("span",{className:"mono",children:y.folder.split("/").slice(-2).join("/")},void 0,!1,void 0,this)},void 0,!1,void 0,this),sort:(y)=>(y.title??y.file).toLowerCase()},{key:"models",header:u("common.models"),render:(y)=>Sa.jsxDEV(dB,{models:y.models},void 0,!1,void 0,this)},{key:"started",header:u("common.started"),align:"right",render:(y)=>Sa.jsxDEV("span",{className:"muted",title:ro(y.startedAt),children:ma(y.startedAt)},void 0,!1,void 0,this),sort:(y)=>y.startedAt},{key:"duration",header:u("common.duration"),align:"right",render:(y)=>Sa.jsxDEV("span",{className:"num",children:yr(y.endedAt-y.startedAt)},void 0,!1,void 0,this),sort:(y)=>y.endedAt-y.startedAt},{key:"requests",header:u("common.requests"),align:"right",render:(y)=>Sa.jsxDEV("span",{className:"num",children:A(y.requests)},void 0,!1,void 0,this),sort:(y)=>y.requests},{key:"toolCalls",header:u("trace.tools"),align:"right",render:(y)=>Sa.jsxDEV("span",{className:"num",children:A(y.toolCalls)},void 0,!1,void 0,this),sort:(y)=>y.toolCalls},{key:"subagents",header:u("trace.agents"),align:"right",render:(y)=>y.subagents>0?Sa.jsxDEV("span",{className:"num",children:A(y.subagents)},void 0,!1,void 0,this):Sa.jsxDEV("span",{className:"num dim",children:"0"},void 0,!1,void 0,this),sort:(y)=>y.subagents},{key:"tokens",header:u("common.tokens"),align:"right",render:(y)=>Sa.jsxDEV("span",{className:"num",children:se(y.totalTokens)},void 0,!1,void 0,this),sort:(y)=>y.totalTokens},{key:"cost",header:u("common.cost"),align:"right",width:150,render:(y)=>Sa.jsxDEV(Ma,{value:y.costTotal,max:h,display:oa(y.costTotal,y.unpricedRequests)},void 0,!1,void 0,this),sort:(y)=>y.costTotal}],[h]);if(l!==null)return Sa.jsxDEV(HR,{file:l,active:r,onBack:()=>i(null)},void 0,!1,void 0,this);let S=g.data?.length??0;return Sa.jsxDEV("div",{className:"stack traces-page",children:[Sa.jsxDEV(la,{title:u("trace.title"),description:u("trace.description")},void 0,!1,void 0,this),Sa.jsxDEV(fe,{title:u("trace.sessions"),description:g.data?d.trim()?u("trace.most-recent-filtered",{shown:A(v.length),total:A(S)}):u("trace.most-recent",{count:A(S)}):void 0,actions:Sa.jsxDEV(Fn,{value:d,onChange:f,placeholder:u("trace.filter-placeholder"),width:260},void 0,!1,void 0,this),flush:!0,index:0,stale:g.stale,children:Sa.jsxDEV(_e,{query:g,skeleton:Sa.jsxDEV(pa,{rows:10},void 0,!1,void 0,this),isEmpty:(y)=>y.length===0,empty:Sa.jsxDEV(Je,{title:u("trace.empty-title"),hint:u("trace.empty-hint")},void 0,!1,void 0,this),children:()=>Sa.jsxDEV(Ft,{columns:m,rows:v,rowKey:(y)=>y.file,onRowClick:(y)=>i(y.file),initialSort:{key:"started",dir:"desc"},limit:50,empty:Sa.jsxDEV(Je,{title:u("trace.no-matching-title"),hint:u("trace.no-matching-hint")},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var _a=_(te(),1);function Vb(){return _a.jsxDEV(AI,{children:_a.jsxDEV(cB,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function cB(){_n();let{section:r,setSection:l,range:i,setRange:d,session:f,setSession:g}=QI(),[v,h]=bd.useState(null),m=bd.useCallback(()=>h(null),[]),S=bd.useRef(new Set);S.current.add(r);let y=(b)=>{let L=b===r;switch(b){case"overview":return _a.jsxDEV(E2,{active:L,range:i,onRequestClick:h},void 0,!1,void 0,this);case"requests":return _a.jsxDEV(U2,{active:L,range:i,onRequestClick:h},void 0,!1,void 0,this);case"errors":return _a.jsxDEV(b2,{active:L,range:i,onRequestClick:h},void 0,!1,void 0,this);case"traces":return _a.jsxDEV(GR,{active:L,session:f,onOpenSession:g},void 0,!1,void 0,this);case"models":return _a.jsxDEV(I2,{active:L,range:i},void 0,!1,void 0,this);case"providers":return _a.jsxDEV(z2,{active:L,range:i},void 0,!1,void 0,this);case"costs":return _a.jsxDEV(v2,{active:L,range:i},void 0,!1,void 0,this);case"tools":return _a.jsxDEV(SR,{active:L,range:i},void 0,!1,void 0,this);case"frustration":return _a.jsxDEV(k2,{active:L,range:i},void 0,!1,void 0,this);case"projects":return _a.jsxDEV(q2,{active:L,range:i},void 0,!1,void 0,this);case"tracking":return _a.jsxDEV(LR,{active:L},void 0,!1,void 0,this);case"gain":return _a.jsxDEV(C2,{active:L,range:i},void 0,!1,void 0,this);case"spotlight":return _a.jsxDEV(xR,{active:L,range:i},void 0,!1,void 0,this)}};return _a.jsxDEV(_a.Fragment,{children:[_a.jsxDEV(KI,{section:r,onSectionChange:l,range:i,onRangeChange:d,children:[...S.current].map((b)=>_a.jsxDEV("div",{hidden:b!==r,children:y(b)},b,!1,void 0,this))},void 0,!1,void 0,this),_a.jsxDEV(P2,{id:v,onClose:m},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var $R=_(te(),1),jR=document.getElementById("root");if(!jR)throw Error("missing #root");VR.createRoot(jR).render($R.jsxDEV(Vb,{},void 0,!1,void 0,this));
235
+ <%s key={someKey} {...props} />`,St,He,ua,He),yt[He+St]=!0)}if(He=null,It!==void 0&&(i(It),He=""+It),v(Fe)&&(i(Fe.key),He=""+Fe.key),"key"in Fe){It={};for(var da in Fe)da!=="key"&&(It[da]=Fe[da])}else It=Fe;return He&&h(It,typeof Q==="function"?Q.displayName||Q.name||"Unknown":Q),S(Q,He,It,f(),ge,Ye)}function b(Q){L(Q)?Q._store&&(Q._store.validated=1):typeof Q==="object"&&Q!==null&&Q.$$typeof===ee&&(Q._payload.status==="fulfilled"?L(Q._payload.value)&&Q._payload.value._store&&(Q._payload.value._store.validated=1):Q._store&&(Q._store.validated=1))}function L(Q){return typeof Q==="object"&&Q!==null&&Q.$$typeof===T}var T=Symbol.for("react.transitional.element"),C=Symbol.for("react.portal"),I=Symbol.for("react.fragment"),R=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),P=Symbol.for("react.consumer"),Y=Symbol.for("react.context"),W=Symbol.for("react.forward_ref"),ue=Symbol.for("react.suspense"),Z=Symbol.for("react.suspense_list"),ce=Symbol.for("react.memo"),ee=Symbol.for("react.lazy"),G=Symbol.for("react.activity"),V=Symbol.for("react.client.reference"),Re=Ni.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,pe=Object.prototype.hasOwnProperty,Ne=Array.isArray,Te=console.createTask?console.createTask:function(){return null};Ni={react_stack_bottom_frame:function(Q){return Q()}};var oe,Se={},Ee=Ni.react_stack_bottom_frame.bind(Ni,g)(),Qe=Te(d(g)),yt={};tN.Fragment=I,tN.jsxDEV=function(Q,Fe,It,St){var ge=1e4>Re.recentlyCreatedOwnerStacks++;return y(Q,Fe,It,St,ge?Error("react-stack-top-frame"):Ee,ge?Te(d(Q)):Qe)}})()});var VR=_(q1(),1);var bd=_(Ke(),1);var wh=_(Ke(),1);var O1=(r)=>(r.match(/\d+[xX]\d+|[A-Z]?[a-z]+|[A-Z]|\d+/g)??[]).join("-").toLowerCase();function B1(r,l,i=[]){if(l==null)throw Error("[lucide]: iconNode is required when icon name is used");return{name:O1(r),size:24,node:l,...i.length>0?{aliases:i}:{}}}var P1=(r)=>{let l="",i=!1;for(let d of r){if(d==="-"||d==="_"||d<=" "){i=l.length>0;continue}if(l.length===0)l+=d.toLowerCase();else l+=i?d.toUpperCase():d;i=!1}return l};var z1=(r)=>{let l=P1(r);return l.charAt(0).toUpperCase()+l.slice(1)};var tf=_(Ke(),1);var ef=(...r)=>{let l=new Set;for(let i of r){if(typeof i!=="string")continue;for(let d of i.split(/\s+/))if(d)l.add(d)}return[...l].join(" ")};var Ri={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};function ib(r){return r!==null&&r!==void 0}function U1(r,l={}){let i=l.attributeNames??{},d=(L)=>i[L]??L,f=r.size??r.width??Ri.width,g=r.size??r.height??Ri.height,v=r.aliases?.filter((L)=>typeof L==="string"&&L.trim()!=="").map((L)=>`lucide-${L}`)??[],h=[...r.name?[`lucide-${r.name}`]:[],...v],m=l.className?.split(" ").filter(Boolean)??[],S=l.includeDefaultClasses===!1?ef(...m):ef("lucide",...h,...m),y=l.strokeWidth??Ri["stroke-width"];if(l.absoluteStrokeWidth){let L=Number(y)*Number(r.size??r.width??Ri.width)/Number(l.size??l.width??Ri.width);if(Number.isFinite(L))y=L}return["svg",{...Object.entries(Ri).reduce((L,[T,C])=>(L[d(T)]=C,L),{}),..."color"in l&&l.color&&{[d("stroke")]:l.color},..."size"in l&&ib(l.size)&&{[d("width")]:l.size,[d("height")]:l.size},..."width"in l&&ib(l.width)&&{[d("width")]:l.width},..."height"in l&&ib(l.height)&&{[d("height")]:l.height},[d("stroke-width")]:y,...S&&{[d("class")]:S},[d("viewBox")]:`0 0 ${f} ${g}`,...l.hasA11yProp===!1?{[d("aria-hidden")]:"true"}:{},..."attributes"in l&&l.attributes},r.node.map((L)=>{let[T,C,I]=L,R=l.nonScalingStroke?{[d("vector-effect")]:"non-scaling-stroke",...C}:C;return I?[T,R,I]:[T,R]})]}function _1(r,l={}){return U1(r,{...l,attributeNames:{...l.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}var H1=(r)=>{if(r==null||typeof r!=="object")return!1;for(let l in r)if(Object.prototype.hasOwnProperty.call(r,l)&&(l.startsWith("aria-")||l==="role"||l==="title")&&r[l]!=null)return!0;return!1};var Zu=_(Ke(),1),zE=Zu.createContext({});var F1=()=>Zu.useContext(zE);var G1=tf.forwardRef(({color:r,size:l,width:i,height:d,strokeWidth:f,absoluteStrokeWidth:g,nonScalingStroke:v,className:h="",children:m,iconNode:S=[],icon:y={node:S,aliases:[],size:24},...b},L)=>{let{size:T=24,strokeWidth:C=2,absoluteStrokeWidth:I=!1,nonScalingStroke:R=!1,color:O="currentColor",className:P=""}=F1()??{},Y=Boolean(m)||H1(b),[W,ue,Z=[]]=_1(y,{color:r??O,width:i??l??T,height:d??l??T,strokeWidth:f??C,absoluteStrokeWidth:g??I,nonScalingStroke:v??R,className:ef(P,h),hasA11yProp:Y,attributes:b});return tf.createElement(W,{ref:L,...ue},[...Z.map(([ce,ee])=>tf.createElement(ce,ee)),...Array.isArray(m)?m:[m]])});function re(r,l=[],i=[]){let d=typeof r==="string"?B1(r,l,i):r,f=wh.forwardRef(({className:g,...v},h)=>wh.createElement(G1,{ref:h,icon:d,className:g,...v}));if(d.name)f.displayName=z1(d.name);return f}var V1={name:"braces",size:24,node:[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]],aliases:["curly-braces"]};V1.node;var wl=re(V1);var j1={name:"circle-exclamation-point",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],aliases:["alert-circle","circle-alert"]};j1.node;var Jr=re(j1);var $1={name:"cloud-download",size:24,node:[["path",{d:"M12 13v8l-4-4",key:"1f5nwf"}],["path",{d:"m12 21 4-4",key:"1lfcce"}],["path",{d:"M4.393 15.269A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.436 8.284",key:"ui1hmy"}]],aliases:["download-cloud"]};$1.node;var Cl=re($1);var X1={name:"ellipsis",size:24,node:[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],aliases:["more-horizontal"]};X1.node;var Tl=re(X1);var Y1={name:"face-slightly-frowning",size:24,node:[["path",{d:"M15 10V9",key:"4dkmfx"}],["path",{d:"M9 10V9",key:"1lazqi"}],["path",{d:"M9 16a5 5 0 016 0",key:"34mdxb"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],aliases:["frown"]};Y1.node;var Il=re(Y1);var K1={name:"file-pen-line",size:24,node:[["path",{d:"M14.364 13.634a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506l4.013-4.009a1 1 0 0 0-3.004-3.004z",key:"ukzhwg"}],["path",{d:"M14.487 7.858A1 1 0 0 1 14 7V2",key:"1klhew"}],["path",{d:"M20 19.645V20a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l2.516 2.516",key:"rxaxab"}],["path",{d:"M8 18h1",key:"13wk12"}]],aliases:["file-signature"]};K1.node;var Rl=re(K1);var Q1={name:"plug-zap",size:24,node:[["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",key:"goz73y"}],["path",{d:"m2 22 3-3",key:"19mgm9"}],["path",{d:"M7.5 13.5 10 11",key:"7xgeeb"}],["path",{d:"M10.5 16.5 13 14",key:"10btkg"}],["path",{d:"m18 3-4 4h6l-4 4",key:"16psg9"}]],aliases:["plug-zap-2"]};Q1.node;var Al=re(Q1);var W1={name:"sparkles",size:24,node:[["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"}]],aliases:["stars"]};W1.node;var Un=re(W1);var Z1={name:"square-chart-gantt",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 8h7",key:"kbo1nt"}],["path",{d:"M8 12h6",key:"ikassy"}],["path",{d:"M11 16h5",key:"oq65wt"}]],aliases:["gantt-chart-square","square-gantt-chart"]};Z1.node;var en=re(Z1);var J1={name:"square-terminal",size:24,node:[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]],aliases:["terminal-square"]};J1.node;var Ml=re(J1);var eT={name:"triangle-exclamation-point",size:24,node:[["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"}]],aliases:["alert-triangle","triangle-alert"]};eT.node;var Ro=re(eT);var tT={name:"activity",size:24,node:[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]};tT.node;var af=re(tT);var aT={name:"archive",size:24,node:[["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:"M10 12h4",key:"a56b0p"}]]};aT.node;var of=re(aT);var oT={name:"arrow-down",size:24,node:[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]};oT.node;var rf=re(oT);var rT={name:"arrow-left",size:24,node:[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]};rT.node;var nf=re(rT);var nT={name:"arrow-right",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]};nT.node;var sf=re(nT);var sT={name:"arrow-up-right",size:24,node:[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]};sT.node;var lf=re(sT);var lT={name:"arrow-up",size:24,node:[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]};lT.node;var uf=re(lT);var iT={name:"bot",size:24,node:[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]};iT.node;var df=re(iT);var uT={name:"check",size:24,node:[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]};uT.node;var Ai=re(uT);var dT={name:"chevron-down",size:24,node:[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]};dT.node;var Mi=re(dT);var cT={name:"chevron-left",size:24,node:[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]};cT.node;var cf=re(cT);var fT={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};fT.node;var tn=re(fT);var pT={name:"clipboard-list",size:24,node:[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]]};pT.node;var ff=re(pT);var mT={name:"coins",size:24,node:[["path",{d:"M13.744 17.736a6 6 0 1 1-7.48-7.48",key:"bq4yh3"}],["path",{d:"M15 6h1v4",key:"11y1tn"}],["path",{d:"m6.134 14.768.866-.5 2 3.464",key:"17snzx"}],["circle",{cx:"16",cy:"8",r:"6",key:"14bfc9"}]]};mT.node;var pf=re(mT);var hT={name:"copy",size:24,node:[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]};hT.node;var Di=re(hT);var gT={name:"corner-down-right",size:24,node:[["path",{d:"m15 10 5 5-5 5",key:"qqa56n"}],["path",{d:"M4 4v7a4 4 0 0 0 4 4h12",key:"z08zvw"}]]};gT.node;var mf=re(gT);var yT={name:"cpu",size:24,node:[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]]};yT.node;var hf=re(yT);var vT={name:"file-plus",size:24,node:[["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:"M9 15h6",key:"cctwl0"}],["path",{d:"M12 18v-6",key:"17g6i2"}]]};vT.node;var gf=re(vT);var xT={name:"file-search",size:24,node:[["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"}],["circle",{cx:"11.5",cy:"14.5",r:"2.5",key:"1bq0ko"}],["path",{d:"M13.3 16.3 15 18",key:"2quom7"}]]};xT.node;var yf=re(xT);var bT={name:"file-text",size:24,node:[["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"}]]};bT.node;var vf=re(bT);var ST={name:"folder-git-2",size:24,node:[["path",{d:"M18 19a5 5 0 0 1-5-5v8",key:"sz5oeg"}],["path",{d:"M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v5",key:"1w6njk"}],["circle",{cx:"13",cy:"12",r:"2",key:"1j92g6"}],["circle",{cx:"20",cy:"19",r:"2",key:"1obnsp"}]]};ST.node;var xf=re(ST);var kT={name:"folder-search",size:24,node:[["path",{d:"M10.7 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v4.1",key:"1bw5m7"}],["path",{d:"m21 21-1.9-1.9",key:"1g2n9r"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}]]};kT.node;var bf=re(kT);var LT={name:"git-branch",size:24,node:[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]]};LT.node;var Sf=re(LT);var wT={name:"globe",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]};wT.node;var kf=re(wT);var CT={name:"hourglass",size:24,node:[["path",{d:"M5 22h14",key:"ehvnwv"}],["path",{d:"M5 2h14",key:"pdyrp9"}],["path",{d:"M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22",key:"1d314k"}],["path",{d:"M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2",key:"1vvvr6"}]]};CT.node;var Lf=re(CT);var TT={name:"inbox",size:24,node:[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]]};TT.node;var wf=re(TT);var IT={name:"languages",size:24,node:[["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"}]]};IT.node;var Cf=re(IT);var RT={name:"layout-grid",size:24,node:[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]};RT.node;var Tf=re(RT);var AT={name:"list-todo",size:24,node:[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["rect",{x:"3",y:"4",width:"6",height:"6",rx:"1",key:"cif1o7"}]]};AT.node;var If=re(AT);var MT={name:"menu",size:24,node:[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]};MT.node;var Rf=re(MT);var DT={name:"monitor",size:24,node:[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]};DT.node;var Af=re(DT);var ET={name:"moon",size:24,node:[["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"}]]};ET.node;var Mf=re(ET);var NT={name:"network",size:24,node:[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]};NT.node;var Df=re(NT);var qT={name:"refresh-cw",size:24,node:[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]};qT.node;var Dl=re(qT);var OT={name:"repeat-2",size:24,node:[["path",{d:"m2 9 3-3 3 3",key:"1ltn5i"}],["path",{d:"M13 18H7a2 2 0 0 1-2-2V6",key:"1r6tfw"}],["path",{d:"m22 15-3 3-3-3",key:"4rnwn2"}],["path",{d:"M11 6h6a2 2 0 0 1 2 2v10",key:"2f72bc"}]]};OT.node;var Ef=re(OT);var BT={name:"rotate-cw",size:24,node:[["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"}]]};BT.node;var Nf=re(BT);var PT={name:"scan-search",size:24,node:[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["path",{d:"m16 16-1.9-1.9",key:"1dq9hf"}]]};PT.node;var ws=re(PT);var zT={name:"scissors",size:24,node:[["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M8.12 8.12 12 12",key:"1alkpv"}],["path",{d:"M20 4 8.12 15.88",key:"xgtan2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M14.8 14.8 20 20",key:"ptml3r"}]]};zT.node;var qf=re(zT);var UT={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};UT.node;var Of=re(UT);var _T={name:"sun",size:24,node:[["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"}]]};_T.node;var Bf=re(_T);var HT={name:"text-search",size:24,node:[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M10 12H3",key:"1ulcyk"}],["path",{d:"M10 19H3",key:"108z41"}],["circle",{cx:"17",cy:"15",r:"3",key:"1upz2a"}],["path",{d:"m21 19-1.9-1.9",key:"dwi7p8"}]]};HT.node;var Pf=re(HT);var FT={name:"wrench",size:24,node:[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]]};FT.node;var Ei=re(FT);var GT={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};GT.node;var Ao=re(GT);var ud=_(Ke(),1);function Ch(r){let l=r?.trim().toLowerCase()??"";if(l==="zh"||l.startsWith("zh-")||l.startsWith("zh_"))return"zh-CN";return"en"}function VT(r){for(let l of r??[]){let i=Ch(l);if(i!=="en")return i}return"en"}function UE(r,l={}){return r.replace(/\{([\w.-]+)\}/g,(i,d)=>{let f=l[d];return f===void 0?i:String(f)})}function jT(r,l,i,d={}){let f=i[r]?.[l]??i.en?.[l];if(f===void 0)return console.warn(`[stats.i18n] missing translation: ${l}`),l;return UE(f,d)}var Th={en:{"nav.usage":"Usage","nav.activity":"Activity","nav.insights":"Insights","nav.overview":"Overview","nav.models":"Models","nav.providers":"Providers","nav.costs":"Costs","nav.requests":"Requests","nav.errors":"Errors","nav.traces":"Traces","nav.tools":"Tools","nav.frustration":"Frustration","nav.projects":"Projects","nav.tracking":"Tracking","nav.gain":"Gain","nav.spotlight":"Spotlight","nav.dashboard":"zetacode stats","nav.breadcrumb-stats":"stats","nav.pages":"Pages","nav.open-navigation":"Open navigation"},"zh-CN":{"nav.usage":"用量","nav.activity":"活动","nav.insights":"洞察","nav.overview":"总览","nav.models":"模型","nav.providers":"服务商","nav.costs":"费用","nav.requests":"请求","nav.errors":"错误","nav.traces":"调用链","nav.tools":"工具","nav.frustration":"情绪压力","nav.projects":"项目","nav.tracking":"追踪","nav.gain":"收益","nav.spotlight":"亮点","nav.dashboard":"zeta 统计","nav.breadcrumb-stats":"统计","nav.pages":"导航","nav.open-navigation":"打开导航"}};var Ih={en:{"common.provider":"Provider","common.providers":"Providers","common.model":"Model","common.models":"Models","common.requests":"Requests","common.request":"Request","common.tokens":"Tokens","common.share":"Share","common.cost":"Cost","common.error-rate":"Error rate","common.tokens-per-second":"Tokens/s","common.output-tokens-per-second":"Output tokens/s","common.premium":"Premium","common.premium-requests":"Premium requests","common.duration":"Duration","common.started":"Started","common.request-id":"Request id","common.session-entry":"Session entry","common.entry-id":"Entry id","common.input":"Input","common.output":"Output","common.output-message":"Output message","common.cache-read":"Cache read","common.cache-write":"Cache write","common.project":"Project","common.pages":"Pages","common.filter":"Filter…","common.no-data-in-range":"No data in this range","common.nothing-here-yet":"Nothing here yet","common.show-more":"Show more","common.total":"Total","common.average":"Average","common.unknown":"Unknown","common.root":"(root)","common.other-n":"Other ({count})","common.time-range":"Time range","common.range-1h":"1h","common.range-24h":"24h","common.range-7d":"7d","common.range-30d":"30d","common.range-90d":"90d","common.range-all":"All","common.window-1h":"the last hour","common.window-24h":"the last 24 hours","common.window-7d":"the last 7 days","common.window-30d":"the last 30 days","common.window-90d":"the last 90 days","common.window-all":"all time","common.copy":"Copy","common.copied":"Copied","common.close":"Close","common.cancel":"Cancel","common.aborted":"Aborted","common.failed":"Failed","common.error":"Error","shell.live":"Live","shell.reconnecting":"Reconnecting","shell.syncing":"Syncing","shell.sync-failed":"Sync failed","shell.indexing":"Indexing","shell.lost-connection":"Lost the live connection to the stats server; retrying","shell.ingesting":"Ingesting session files","shell.building-rollups":"Building hourly rollups; older ranges fill in as it goes","shell.sync-now":"Click to sync session files now","shell.just-now":"just now","shell.system-theme":"System theme","shell.dark-theme":"Dark theme","shell.light-theme":"Light theme","shell.range-suffix":"range","shell.jump-hint":"then letter to jump","shell.language":"Language","shell.switch-language":"Switch dashboard language"},"zh-CN":{"common.provider":"服务商","common.providers":"服务商","common.model":"模型","common.models":"模型","common.requests":"请求","common.request":"请求","common.tokens":"Token","common.share":"占比","common.cost":"费用","common.error-rate":"错误率","common.tokens-per-second":"Token/s","common.output-tokens-per-second":"输出 Token/s","common.premium":"溢价","common.premium-requests":"溢价请求","common.duration":"耗时","common.started":"开始时间","common.request-id":"请求 ID","common.session-entry":"会话条目","common.entry-id":"条目 ID","common.input":"输入","common.output":"输出","common.output-message":"输出消息","common.cache-read":"缓存读取","common.cache-write":"缓存写入","common.project":"项目","common.pages":"页数","common.filter":"筛选…","common.no-data-in-range":"该时间范围内没有数据","common.nothing-here-yet":"暂无数据","common.show-more":"显示更多","common.total":"合计","common.average":"平均","common.unknown":"未知","common.root":"(根目录)","common.other-n":"其他({count})","common.time-range":"时间范围","common.range-1h":"1 小时","common.range-24h":"24 小时","common.range-7d":"7 天","common.range-30d":"30 天","common.range-90d":"90 天","common.range-all":"全部","common.window-1h":"最近 1 小时","common.window-24h":"最近 24 小时","common.window-7d":"最近 7 天","common.window-30d":"最近 30 天","common.window-90d":"最近 90 天","common.window-all":"全部时间","common.copy":"复制","common.copied":"已复制","common.close":"关闭","common.cancel":"取消","common.aborted":"已中止","common.failed":"失败","common.error":"错误","shell.live":"实时","shell.reconnecting":"重新连接中","shell.syncing":"同步中","shell.sync-failed":"同步失败","shell.indexing":"建立索引","shell.lost-connection":"与统计服务的实时连接已断开,正在重试","shell.ingesting":"正在导入会话文件","shell.building-rollups":"正在构建小时汇总;更早的时间范围会逐步补全","shell.sync-now":"点击立即同步会话文件","shell.just-now":"刚刚","shell.system-theme":"跟随系统","shell.dark-theme":"深色主题","shell.light-theme":"浅色主题","shell.range-suffix":"范围","shell.jump-hint":"再按字母跳转","shell.language":"语言","shell.switch-language":"切换仪表盘语言"}};var Rh={en:{"overview.title":"Overview","overview.description":"Everything zeta did across your sessions in {window}.","overview.api-equivalent-cost":"API-equivalent cost","overview.api-cost-title":"What this usage would cost at public API rates","overview.unpriced-n":"{count} unpriced","overview.failed-n":"{count} failed","overview.conversation-tokens":"Conversation tokens","overview.tokens-title":"Uncached input + cache reads + cache writes + output","overview.output-n":"{count} output","overview.cache-rate":"Cache rate","overview.cache-rate-title":"Cache reads ÷ (uncached input + cache reads)","overview.cache-saved":"{value} saved","overview.succeeded-n":"{count} succeeded","overview.uncached-input":"Uncached input","overview.avg-latency":"Avg latency","overview.avg-ttft":"Avg TTFT","overview.activity":"Activity","overview.per-5m":"Per 5 minutes","overview.per-hour":"Per hour","overview.per-day":"Per day","overview.succeeded":"Succeeded","overview.api-equivalent":"API-equivalent","overview.token-mix":"Token mix","overview.token-mix-description":"Where conversation tokens went","overview.by-agent":"By agent","overview.requests-short":"{count} req","overview.main-agent":"Main agent","overview.subagents":"Subagent","overview.advisor":"Advisor","overview.latest-requests":"Latest requests","overview.latest-requests-description":"Most recent model calls across every session","overview.all-requests":"All requests","overview.when":"When","overview.status":"Status","overview.ok":"OK"},"zh-CN":{"overview.title":"概览","overview.description":"在{window}内,zeta 在你的所有会话中完成的一切。","overview.api-equivalent-cost":"API 等效费用","overview.api-cost-title":"这些用量按公开 API 费率计算所需的费用","overview.unpriced-n":"{count} 个未定价","overview.failed-n":"{count} 个失败","overview.conversation-tokens":"对话 Token","overview.tokens-title":"未缓存输入 + 缓存读取 + 缓存写入 + 输出","overview.output-n":"{count} 输出","overview.cache-rate":"缓存命中率","overview.cache-rate-title":"缓存读取 ÷(未缓存输入 + 缓存读取)","overview.cache-saved":"节省 {value}","overview.succeeded-n":"{count} 个成功","overview.uncached-input":"未缓存输入","overview.avg-latency":"平均延迟","overview.avg-ttft":"平均 TTFT","overview.activity":"活动","overview.per-5m":"每 5 分钟","overview.per-hour":"每小时","overview.per-day":"每天","overview.succeeded":"成功","overview.api-equivalent":"API 等效","overview.token-mix":"Token 构成","overview.token-mix-description":"对话 Token 的去向","overview.by-agent":"按代理","overview.requests-short":"{count} 次请求","overview.main-agent":"主代理","overview.subagents":"子代理","overview.advisor":"顾问","overview.latest-requests":"最新请求","overview.latest-requests-description":"所有会话中最近的模型调用","overview.all-requests":"全部请求","overview.when":"时间","overview.status":"状态","overview.ok":"正常"}};var Ah={en:{"models.subtitle":"Which models did the work in {window}, and how fast they answered.","models.empty-title":"No model usage in this range","models.empty-hint":"Pick a wider range in the top bar.","models.used":"Models used","models.across-providers-one":"across {count} provider","models.across-providers":"across {count} providers","models.most-used":"Most used","models.most-used-hint":"{share} of requests · {provider}","models.failed-n":"{count} failed","models.api-cost":"API-equivalent cost","models.api-cost-title":"What this usage would cost at public API rates","models.unpriced-n":"{count} unpriced","models.request-share":"Request share","models.share-desc":"Each model's share of requests per {bucket}","models.count-desc":"Requests per {bucket}, stacked by model","models.share-mode-aria":"Share chart mode","models.all-models":"All models","models.table-desc":"Click a row for latency and throughput over time","models.cost-title":"API-equivalent estimate at public rates","models.tokens-title":"Uncached input + cache reads + cache writes + output","models.cache-rate":"Cache rate","models.cache-title":"Cache reads ÷ (uncached input + cache reads)","models.errors":"Errors","models.tps-title":"Average output tokens per second","models.ttft":"TTFT","models.ttft-title":"Average time to first token","models.trend":"Trend","models.trend-title":"Requests per {bucket}","models.efficiency":"Efficiency","models.latency":"Latency","models.cache-savings":"Cache savings","models.avg-duration":"Avg duration","models.avg-ttft":"Avg TTFT","models.uncached-input":"Uncached input","models.first-last-seen":"First seen {first} · last seen {last}","models.performance-per-bucket":"Performance per active {bucket}","models.no-samples-title":"No performance samples","models.no-samples-hint":"Timing is recorded for streamed responses.","models.tok-per-second":"{value} tok/s","models.bucket-5m":"5 minutes","models.bucket-hour":"hour","models.bucket-day":"day"},"zh-CN":{"models.subtitle":"在{window}内哪些模型完成了工作,以及它们的响应速度如何。","models.empty-title":"该时间范围内没有模型用量","models.empty-hint":"请在顶部栏选择更宽的时间范围。","models.used":"使用模型数","models.across-providers-one":"覆盖 {count} 个服务商","models.across-providers":"覆盖 {count} 个服务商","models.most-used":"使用最多","models.most-used-hint":"{share} 请求占比 · {provider}","models.failed-n":"{count} 个失败","models.api-cost":"API 等价费用","models.api-cost-title":"按公开 API 价格计算这笔用量的费用","models.unpriced-n":"{count} 个未定价","models.request-share":"请求占比","models.share-desc":"每个{bucket}中各模型的请求占比","models.count-desc":"每个{bucket}的请求数,按模型堆叠","models.share-mode-aria":"占比图表模式","models.all-models":"所有模型","models.table-desc":"点击某行可查看延迟与吞吐随时间的变化","models.cost-title":"按公开价格估算的 API 等价费用","models.tokens-title":"未缓存输入 + 缓存读取 + 缓存写入 + 输出","models.cache-rate":"缓存命中率","models.cache-title":"缓存读取 ÷(未缓存输入 + 缓存读取)","models.errors":"错误","models.tps-title":"平均输出 Token/s","models.ttft":"首 Token 延迟","models.ttft-title":"平均首 Token 延迟","models.trend":"趋势","models.trend-title":"每个{bucket}的请求数","models.efficiency":"效率","models.latency":"延迟","models.cache-savings":"缓存节省","models.avg-duration":"平均耗时","models.avg-ttft":"平均首 Token 延迟","models.uncached-input":"未缓存输入","models.first-last-seen":"首次出现 {first} · 最近出现 {last}","models.performance-per-bucket":"每个活跃{bucket}的性能","models.no-samples-title":"没有性能样本","models.no-samples-hint":"只有流式响应会记录耗时。","models.tok-per-second":"{value} Token/s","models.bucket-5m":"5 分钟","models.bucket-hour":"小时","models.bucket-day":"天"}};var Mh={en:{"providers.description":"Burn, reliability and subscription headroom per provider over {window}.","providers.most-tokens":"Most tokens: {provider}","providers.failed-n":"{count} failed","providers.succeeded-n":"{count} succeeded","providers.tokens-title":"Uncached input + cache reads + cache writes + output","providers.api-equivalent-cost":"API-equivalent cost","providers.api-cost-title":"What this usage would cost at public API rates","providers.unpriced-n":"{count} unpriced","providers.totals":"Provider totals","providers.totals-description":"Cost is an API-equivalent estimate. Select a row for its token mix.","providers.totals-description-unpriced-one":"Cost is an API-equivalent estimate and excludes {count} unpriced subscription request. Select a row for its token mix.","providers.totals-description-unpriced-n":"Cost is an API-equivalent estimate and excludes {count} unpriced subscription requests. Select a row for its token mix.","providers.no-requests-in-range":"No requests in this range","providers.models-title":"Distinct models used through this provider","providers.share-title":"Fraction of all tokens in range","providers.cost-title":"API-equivalent estimate","providers.tps-title":"Average output throughput","providers.premium-title":"Premium requests (subscription multiplier units)","providers.burn":"Burn by provider","providers.burn-estimate-description":"API-equivalent estimate per {bucket}; excludes unpriced subscription requests","providers.burn-description":"Per {bucket}, top {count} providers stacked","providers.bucket-5m":"5 minutes","providers.bucket-hour":"hour","providers.bucket-day":"day","providers.no-provider-activity":"No provider activity in this range","providers.peak-burn-hours":"Peak burn hours","providers.peak-hours-description":"Tokens by local hour of day; peak at {hour}","providers.hours-description":"Tokens by local hour of day","providers.all-providers":"All providers","providers.tokens-peak-hour":"Tokens (peak hour)","providers.no-activity-in-range":"No activity in this range","providers.subscription-windows":"Subscription windows","providers.subscription-windows-description":"What one usage window buys you and how many accounts peak demand needs. Select a row to chart it.","providers.window":"Window","providers.accounts":"Accounts","providers.accounts-title":"Accounts with at least one snapshot for this window in range","providers.resets":"Resets","providers.resets-title":"Window resets observed (drops in used fraction)","providers.windows-burned":"Windows burned","providers.windows-burned-title":"Subscription-window equivalents consumed in range (sum of used-fraction increases across accounts)","providers.tokens-per-window":"Tokens / window","providers.tokens-per-window-title":"Provider tokens burned in range ÷ windows burned — what one full window is worth","providers.too-little-consumed":"Too little of the window was consumed to extrapolate","providers.peak-utilization":"Peak utilization","providers.peak-utilization-title":"Peak of summed used fraction across accounts at any sampled instant; the bar is relative to fleet capacity","providers.accounts-needed":"Accounts needed","providers.accounts-needed-title":"Accounts needed to keep peak demand under 90% of fleet capacity","providers.ideal-accounts":"{ideal} · have {have}","providers.exhaustions":"Exhaustions","providers.exhaustions-title":"Transitions into an exhausted state observed in range","providers.exhausted-n":"{count} exhausted","providers.no-snapshots-in-range":"No usage snapshots in this range","providers.snapshot-hint":"Usage snapshots accumulate whenever usage limits are fetched (TUI footer, /usage, zetacode usage).","providers.utilization":"Window utilization","providers.utilization-description":"{window} used fraction per account, {from} – {to}","providers.utilization-description-plain":"Recorded limit utilization per account","providers.no-utilization-readings":"No utilization readings for this window","providers.exhausted":"Exhausted","providers.no-reading":"No reading","providers.high":"High","providers.account":"Account","providers.latest-used":"Latest used","providers.status":"Status","providers.peak-in-range":"Peak in range","providers.snapshots":"Snapshots","providers.recorded":"Recorded"},"zh-CN":{"providers.description":"各服务商在{window}内的消耗、可靠性与订阅余量。","providers.most-tokens":"Token 最多:{provider}","providers.failed-n":"{count} 次失败","providers.succeeded-n":"{count} 次成功","providers.tokens-title":"未缓存输入 + 缓存读取 + 缓存写入 + 输出","providers.api-equivalent-cost":"API 等效费用","providers.api-cost-title":"此用量按公开 API 费率计算需要多少费用","providers.unpriced-n":"{count} 个未定价","providers.totals":"服务商汇总","providers.totals-description":"费用为 API 等效估算。选择一行可查看其 Token 构成。","providers.totals-description-unpriced-one":"费用为 API 等效估算,且未包含 {count} 个未定价的订阅请求。选择一行可查看其 Token 构成。","providers.totals-description-unpriced-n":"费用为 API 等效估算,且未包含 {count} 个未定价的订阅请求。选择一行可查看其 Token 构成。","providers.no-requests-in-range":"该时间范围内没有请求","providers.models-title":"通过该服务商使用的不同模型","providers.share-title":"该时间范围内全部 Token 中的占比","providers.cost-title":"API 等效估算","providers.tps-title":"平均输出吞吐量","providers.premium-title":"溢价请求(订阅倍率单位)","providers.burn":"按服务商的消耗","providers.burn-estimate-description":"每{bucket}的 API 等效估算;不含未定价的订阅请求","providers.burn-description":"每{bucket},堆叠显示前 {count} 个服务商","providers.bucket-5m":"5 分钟","providers.bucket-hour":"小时","providers.bucket-day":"天","providers.no-provider-activity":"该时间范围内没有服务商活动","providers.peak-burn-hours":"消耗高峰时段","providers.peak-hours-description":"按本地时段统计的 Token;高峰在 {hour}","providers.hours-description":"按本地时段统计的 Token","providers.all-providers":"全部服务商","providers.tokens-peak-hour":"Token(高峰时段)","providers.no-activity-in-range":"该时间范围内没有活动","providers.subscription-windows":"订阅窗口","providers.subscription-windows-description":"一个用量窗口能带来多少用量,以及峰值需求需要多少个账号。选择一行可将它绘制成图表。","providers.window":"窗口","providers.accounts":"账号","providers.accounts-title":"该时间范围内对此窗口至少有一个快照的账号","providers.resets":"重置次数","providers.resets-title":"观测到的窗口重置次数(已用比例下降)","providers.windows-burned":"消耗的窗口数","providers.windows-burned-title":"该时间范围内消耗的订阅窗口等效量(各账号已用比例增量之和)","providers.tokens-per-window":"Token / 窗口","providers.tokens-per-window-title":"该时间范围内消耗的服务商 Token ÷ 消耗的窗口数 —— 一个完整窗口的价值","providers.too-little-consumed":"该窗口消耗太少,无法外推","providers.peak-utilization":"峰值利用率","providers.peak-utilization-title":"任意采样时刻各账号已用比例之和的峰值;进度条相对于整体容量","providers.accounts-needed":"所需账号数","providers.accounts-needed-title":"将峰值需求控制在整体容量 90% 以下所需的账号数","providers.ideal-accounts":"{ideal} · 现有 {have}","providers.exhaustions":"耗尽次数","providers.exhaustions-title":"该时间范围内观测到的进入耗尽状态的次数","providers.exhausted-n":"{count} 次耗尽","providers.no-snapshots-in-range":"该时间范围内没有用量快照","providers.snapshot-hint":"每当获取用量限额时都会累积用量快照(TUI 底部、/usage、zetacode usage)。","providers.utilization":"窗口利用率","providers.utilization-description":"{window} 各账号的已用比例,{from} – {to}","providers.utilization-description-plain":"各账号已记录的限额利用率","providers.no-utilization-readings":"该窗口没有利用率记录","providers.exhausted":"已耗尽","providers.no-reading":"无读数","providers.high":"偏高","providers.account":"账号","providers.latest-used":"最新已用","providers.status":"状态","providers.peak-in-range":"范围内峰值","providers.snapshots":"快照数","providers.recorded":"记录时间"}};var Dh={en:{"costs.title":"Costs","costs.description":"What {window} of usage would cost at public API rates. Subscription usage without a public price is counted as unpriced, not free.","costs.no-usage-in-range":"No usage in this range","costs.empty-hint":"Pick a wider range in the top bar.","costs.daily-estimate":"Daily estimate","costs.daily-by-model":"Per day, stacked by model","costs.daily-by-component":"Per day, stacked by billing component","costs.split-by":"Split by","costs.by-model":"By model","costs.by-component":"By component","costs.no-priced-usage":"No priced usage in this range","costs.unpriced-requests":"Unpriced requests","costs.where-it-went":"Where it went","costs.estimate-by-component":"Estimate by billing component","costs.unpriced-note-one":"{count} unpriced subscription request is not included.","costs.unpriced-note-n":"{count} unpriced subscription requests are not included.","costs.by-model-description":"Estimate per model with its input, output and cache split","costs.estimate":"Estimate","costs.estimate-title":"API-equivalent estimate at public rates","costs.split":"Split","costs.split-title":"Input · output · cache read · cache write","costs.per-request":"Per request","costs.per-request-title":"Estimate ÷ priced requests","costs.unpriced":"Unpriced","costs.unpriced-column-title":"Requests with no public-equivalent price","costs.api-equivalent-estimate":"API-equivalent estimate","costs.api-estimate-title":"What this usage would cost at public API rates","costs.requests-n":"{count} requests","costs.average-per-day":"Average per day","costs.average-per-day-title":"Estimate ÷ days with any usage","costs.active-days-one":"over {count} active day","costs.active-days-n":"over {count} active days","costs.top-model":"Top model","costs.top-model-hint":"{cost} · {share} of estimate","costs.nothing-priced-yet":"Nothing priced yet","costs.per-priced-request":"Per priced request","costs.per-priced-request-title":"Estimate ÷ requests that have a public price","costs.priced-n":"{count} priced","costs.unpriced-title":"Subscription usage with no public-equivalent price; excluded from the estimate","costs.unpriced-hint":"excluded from the estimate","costs.all-priced":"all usage priced"},"zh-CN":{"costs.title":"费用","costs.description":"按公开 API 费率计算,{window}的用量需要多少费用。没有公开价格的订阅用量计为未定价,而不是免费。","costs.no-usage-in-range":"此时间范围内没有用量","costs.empty-hint":"请在顶栏选择更宽的时间范围。","costs.daily-estimate":"每日估算","costs.daily-by-model":"按本地日统计,按模型堆叠","costs.daily-by-component":"按本地日统计,按计费组件堆叠","costs.split-by":"拆分依据","costs.by-model":"按模型","costs.by-component":"按组件","costs.no-priced-usage":"此时间范围内没有已定价的用量","costs.unpriced-requests":"未定价请求","costs.where-it-went":"费用去向","costs.estimate-by-component":"按计费组件估算","costs.unpriced-note-one":"{count} 个未定价的订阅请求未计入。","costs.unpriced-note-n":"{count} 个未定价的订阅请求未计入。","costs.by-model-description":"按模型估算,并附输入、输出与缓存的拆分","costs.estimate":"估算","costs.estimate-title":"按公开费率计算的 API 等效估算","costs.split":"拆分","costs.split-title":"输入 · 输出 · 缓存读取 · 缓存写入","costs.per-request":"单次请求","costs.per-request-title":"估算值 ÷ 已定价请求数","costs.unpriced":"未定价","costs.unpriced-column-title":"没有公开等效价格的请求","costs.api-equivalent-estimate":"API 等效估算","costs.api-estimate-title":"此用量按公开 API 费率计算需要多少费用","costs.requests-n":"{count} 个请求","costs.average-per-day":"日均","costs.average-per-day-title":"估算值 ÷ 有用量的天数","costs.active-days-one":"共 {count} 个活跃日","costs.active-days-n":"共 {count} 个活跃日","costs.top-model":"费用最高的模型","costs.top-model-hint":"{cost} · 占估算值的 {share}","costs.nothing-priced-yet":"暂无已定价用量","costs.per-priced-request":"单个已定价请求","costs.per-priced-request-title":"估算值 ÷ 有公开价格的请求数","costs.priced-n":"已定价 {count} 个","costs.unpriced-title":"没有公开等效价格的订阅用量;不计入估算","costs.unpriced-hint":"不计入估算","costs.all-priced":"全部用量均已定价"}};var Eh={en:{"requests.description":"Every model call zeta made in {window}, newest first. Open a row for its full payload.","requests.loading":"Loading…","requests.load-latest":"Load latest {count}","requests.status":"Status","requests.status-all":"All","requests.none-in-window":"none in {window}","requests.since":"since {time}","requests.failed-hint":"{rate} · {count} aborted","requests.tokens-hint":"Total tokens across these requests","requests.api-equivalent-cost":"API-equivalent cost","requests.cost-hint":"What these requests would cost at public API rates","requests.unpriced-n":"{count} unpriced","requests.median-duration":"Median duration","requests.p95":"p95 {value}","requests.median-ttft":"Median TTFT","requests.ttft":"TTFT","requests.ttft-hint":"Time to first token","requests.log-title":"Request log","requests.log-loading":"Loading the latest requests…","requests.log-count-in-window":"{shown} of {total} requests in {window}","requests.log-count-latest":"{shown} of the latest {total} requests","requests.search-placeholder":"Model, provider or project","requests.footer":"Showing the latest {count} requests, back to {time}. Older requests in {window} are not loaded.","requests.empty-in-window":"No requests in {window}","requests.empty-no-match":"No requests match","requests.empty-no-match-hint":"Clear the search or status filter.","requests.when":"When","requests.uncached-input":"Uncached input tokens","requests.cache-read-title":"Cache read tokens (hover a cell for cache writes)","requests.cache-write":"Cache write: {count}","requests.cost-estimate":"API-equivalent estimate"},"zh-CN":{"requests.description":"zeta 在 {window} 内发出的每一次模型调用,最新在前。打开某一行可查看其完整载荷。","requests.loading":"加载中…","requests.load-latest":"加载最新 {count} 条","requests.status":"状态","requests.status-all":"全部","requests.none-in-window":"{window} 内没有请求","requests.since":"自 {time} 起","requests.failed-hint":"{rate} · {count} 个已中止","requests.tokens-hint":"这些请求的 Token 总量","requests.api-equivalent-cost":"API 等价费用","requests.cost-hint":"这些请求按公开 API 费率计算的费用","requests.unpriced-n":"{count} 个未定价","requests.median-duration":"耗时中位数","requests.p95":"p95 分位 {value}","requests.median-ttft":"首 Token 延迟中位数","requests.ttft":"首 Token 延迟","requests.ttft-hint":"首 Token 延迟","requests.log-title":"请求日志","requests.log-loading":"正在加载最新请求…","requests.log-count-in-window":"{window} 内共 {total} 个请求,显示 {shown} 个","requests.log-count-latest":"最新 {total} 个请求中显示 {shown} 个","requests.search-placeholder":"模型、服务商或项目","requests.footer":"显示最新 {count} 个请求,回溯至 {time}。{window} 内更早的请求未加载。","requests.empty-in-window":"{window} 内没有请求","requests.empty-no-match":"没有匹配的请求","requests.empty-no-match-hint":"清除搜索内容或状态筛选。","requests.when":"时间","requests.uncached-input":"未缓存输入 Token","requests.cache-read-title":"缓存读取 Token(将鼠标悬停在单元格上可查看缓存写入)","requests.cache-write":"缓存写入:{count}","requests.cost-estimate":"API 等价估算"}};var Nh={en:{"errors.title":"Errors","errors.description":"Failed model requests in {window}, grouped by error signature. Open a failure for its full payload.","errors.footer":"Showing the latest {count} failures in {window}; older ones are not loaded.","errors.loading":"Loading…","errors.load-latest":"Load latest {count}","errors.failures":"Failures","errors.hint-in-window":"in {window}","errors.hint-latest-loaded":"latest {count} loaded","errors.signatures":"Signatures","errors.signatures-hint":"Distinct error messages after normalizing ids and numbers","errors.signatures-top":"top: {count} failures","errors.affected-models":"Affected models","errors.last-failure":"Last failure","errors.none-in-window":"none in {window}","errors.error-signatures":"Error signatures","errors.signatures-card-description":"Same message with ids and counters normalized. Select one to filter the failures below.","errors.empty-no-failures":"No failures in {window}","errors.empty-all-succeeded":"Every request succeeded or was aborted.","errors.by-model":"By model","errors.by-model-description":"Failures per model. Select one to filter.","errors.empty-no-affected-models":"No affected models","errors.loading-failures":"Loading failures…","errors.filtered-of-total":"{shown} of {total} failures, newest first","errors.search-placeholder":"Message, model or project","errors.no-match":"No failures match","errors.no-match-hint":"Clear the search or the selected filters.","errors.signature":"Signature","errors.more-models":"+{count} more","errors.last-seen":"Last seen","errors.unknown-error":"Unknown error","errors.group-meta":"{count} failures · first {first} · last {last}","errors.open-latest":"Open latest","errors.when":"When","errors.cost-hint":"API-equivalent estimate"},"zh-CN":{"errors.title":"错误","errors.description":"在 {window} 内失败的模型请求,按错误签名分组。打开某条失败可查看完整载荷。","errors.footer":"显示 {window} 内最新的 {count} 个失败;更早的未加载。","errors.loading":"加载中…","errors.load-latest":"加载最新 {count} 条","errors.failures":"失败","errors.hint-in-window":"{window} 内","errors.hint-latest-loaded":"已加载最新 {count} 条","errors.signatures":"签名","errors.signatures-hint":"对 ID 和数字归一化后不同的错误消息","errors.signatures-top":"最多:{count} 个失败","errors.affected-models":"受影响的模型","errors.last-failure":"最近一次失败","errors.none-in-window":"{window} 内没有失败","errors.error-signatures":"错误签名","errors.signatures-card-description":"同一消息在归一化 ID 和计数后归为一组。选择一项可筛选下方的失败。","errors.empty-no-failures":"{window} 内没有失败","errors.empty-all-succeeded":"所有请求均已成功或被中止。","errors.by-model":"按模型","errors.by-model-description":"各模型的失败数。选择一项可筛选。","errors.empty-no-affected-models":"没有受影响的模型","errors.loading-failures":"正在加载失败…","errors.filtered-of-total":"共 {total} 个失败,显示 {shown} 个,最新在前","errors.search-placeholder":"消息、模型或项目","errors.no-match":"没有匹配的失败","errors.no-match-hint":"清除搜索内容或已选筛选条件。","errors.signature":"签名","errors.more-models":"另有 {count} 个","errors.last-seen":"最近出现","errors.unknown-error":"未知错误","errors.group-meta":"{count} 个失败 · 首次 {first} · 最近 {last}","errors.open-latest":"打开最新","errors.when":"时间","errors.cost-hint":"按 API 价格估算"}};var qh={en:{"trace.title":"Traces","trace.description":"Recent sessions with subagent activity folded in. Open one to inspect its timeline.","trace.sessions":"Sessions","trace.session":"Session","trace.most-recent":"{count} most recent","trace.most-recent-filtered":"{shown} of {total} most recent","trace.filter-placeholder":"Filter by title, project, model…","trace.empty-title":"No sessions found","trace.empty-hint":"Run a sync to index recent activity.","trace.no-matching-title":"No matching sessions","trace.no-matching-hint":"Try a different filter.","trace.tool":"Tool","trace.tools":"Tools","trace.agent":"Agent","trace.agents":"Agents","trace.background":"Background","trace.bg":"Bg","trace.refresh":"Refresh trace","trace.timeline":"Timeline","trace.timeline-hint":"W/S zoom · A/D pan · drag pan · wheel zoom · 0 fit · F focus selection · dbl-click focus · Esc deselect","trace.expand-all":"Expand all","trace.collapse-all":"Collapse all","trace.axis-mode":"Axis mode","trace.mode-time-title":"Real wall-clock time","trace.mode-turns-title":"Equal width per user turn","trace.mode-calls-title":"Equal width per model/tool call boundary","trace.turns":"Turns","trace.calls":"Calls","trace.compress-idle":"Compress idle","trace.search-placeholder":"Search spans…","trace.previous-match":"Previous match","trace.next-match":"Next match","trace.transcript":"Transcript","trace.transcript-description":"Every span and marker in order; click to inspect","trace.no-matching-events":"No matching events","trace.canvas-aria":"Trace timeline. W and S zoom, A and D pan, 0 fits all, F focuses the selection.","trace.minimap-aria":"Timeline overview brush","trace.expand-track":"Expand {track}","trace.collapse-track":"Collapse {track}","trace.unterminated":"unterminated","trace.tok":"tok","trace.ttft":"TTFT","trace.wall-time":"Wall time","trace.model-time":"Model time","trace.tool-time":"Tool time","trace.idle":"Idle","trace.tool-calls-n":"{count} tool calls","trace.of-wall":"{percent} of wall","trace.tool-aggregates":"Tool aggregates","trace.tool-aggregates-desc":"{count} tools, by total time","trace.errors":"Errors","trace.failed-n":"{count} failed","trace.avg":"Avg","trace.max":"Max","trace.start":"Start","trace.track":"Track","trace.io-cached":"Input / output / cached","trace.stop-reason":"Stop reason","trace.copy-json":"Copy raw JSON","trace.error-message":"Error message","trace.task":"Task","trace.open-child-track":"Open child track","trace.args":"Args","trace.thinking":"Thinking","trace.text":"Text","trace.raw-entry":"Raw entry","trace.load-failed":"Failed to load entry: {message}"},"zh-CN":{"trace.title":"调用链","trace.description":"最近的会话,已合并子代理活动。打开其中一个即可查看其时间线。","trace.sessions":"会话","trace.session":"会话","trace.most-recent":"最近 {count} 条","trace.most-recent-filtered":"最近 {total} 条中的 {shown} 条","trace.filter-placeholder":"按标题、项目或模型筛选…","trace.empty-title":"未找到会话","trace.empty-hint":"运行一次同步以索引最近的活动。","trace.no-matching-title":"没有匹配的会话","trace.no-matching-hint":"请尝试其他筛选条件。","trace.tool":"工具","trace.tools":"工具","trace.agent":"智能体","trace.agents":"智能体","trace.background":"后台","trace.bg":"背景","trace.refresh":"刷新调用链","trace.timeline":"时间线","trace.timeline-hint":"W/S 缩放 · A/D 平移 · 拖拽平移 · 滚轮缩放 · 0 适应全部 · F 聚焦所选 · 双击聚焦 · Esc 取消选择","trace.expand-all":"全部展开","trace.collapse-all":"全部折叠","trace.axis-mode":"坐标轴模式","trace.mode-time-title":"真实墙钟时间","trace.mode-turns-title":"每个用户轮次等宽","trace.mode-calls-title":"每个模型/工具调用边界等宽","trace.turns":"轮次","trace.calls":"调用次数","trace.compress-idle":"压缩空闲时间","trace.search-placeholder":"搜索跨度…","trace.previous-match":"上一个匹配","trace.next-match":"下一个匹配","trace.transcript":"对话记录","trace.transcript-description":"按顺序列出所有跨度和标记;点击可查看详情","trace.no-matching-events":"没有匹配的事件","trace.canvas-aria":"调用链时间线。W 和 S 缩放,A 和 D 平移,0 适应全部,F 聚焦所选。","trace.minimap-aria":"时间线概览刷选","trace.expand-track":"展开 {track}","trace.collapse-track":"折叠 {track}","trace.unterminated":"未结束","trace.tok":"Token","trace.ttft":"首 Token 延迟","trace.wall-time":"墙钟时间","trace.model-time":"模型耗时","trace.tool-time":"工具耗时","trace.idle":"空闲","trace.tool-calls-n":"{count} 次工具调用","trace.of-wall":"占墙钟时间 {percent}","trace.tool-aggregates":"工具汇总","trace.tool-aggregates-desc":"{count} 个工具,按总耗时排序","trace.errors":"错误","trace.failed-n":"{count} 个失败","trace.avg":"平均","trace.max":"最大","trace.start":"开始","trace.track":"轨道","trace.io-cached":"输入 / 输出 / 缓存读取","trace.stop-reason":"停止原因","trace.copy-json":"复制原始 JSON","trace.error-message":"错误信息","trace.task":"任务","trace.open-child-track":"打开子轨道","trace.args":"参数","trace.thinking":"思考过程","trace.text":"文本","trace.raw-entry":"原始条目","trace.load-failed":"加载条目失败:{message}"}};var Oh={en:{"tools.title":"Tools","tools.description":"Which tools zeta called in {window}, how often they failed, and what they cost.","tools.tool-calls":"Tool calls","tools.failed-n":"{count} failed","tools.distinct-tools":"Distinct tools","tools.most-used":"Most used: {tool}","tools.error-rate-title":"Tool results that came back flagged as errors","tools.succeeded-n":"{count} succeeded","tools.attributed-tokens":"Attributed tokens","tools.tokens-output":"{tokens} output","tools.attributed-cost":"Attributed cost","tools.attribution-note":"Tokens and API-equivalent cost of each invoking turn, split evenly across that turn's tool calls","tools.attribution-estimate":"{note}; API-equivalent estimate","tools.unpriced-requests-n":"{count} unpriced requests","tools.api-equivalent":"API-equivalent","tools.result-text":"Result text","tools.result-chars-title":"Characters of tool-result text fed back into context","tools.chars":"{count} chars","tools.call-arguments":"Call arguments","tools.args-chars-title":"Characters of serialized tool-call arguments","tools.avg-result-per-call":"Avg result per call","tools.avg-args-per-call":"Avg arguments per call","tools.calls-over-time":"Calls over time","tools.errors-over-time":"Errors over time","tools.chart-description":"Per {bucket}, top {count} tools stacked","tools.bucket-5m":"5 minutes","tools.bucket-hour":"hour","tools.bucket-day":"day","tools.calls":"Calls","tools.errors":"Errors","tools.no-tool-errors":"No tool errors in this range","tools.by-tool":"By tool","tools.by-tool-description":"{note}. Select a tool to break it down by model.","tools.by-tool-and-model":"By tool and model","tools.by-tool-and-model-description":"Which models call which tools, and how often those calls fail","tools.filter-by-tool":"Filter by tool","tools.all-tools":"All tools","tools.clear-tool-filter":"Clear tool filter","tools.no-tool-calls":"No tool calls in this range","tools.no-calls-to-tool":"No calls to {tool} in this range","tools.tool":"Tool","tools.trend":"Trend","tools.trend-title":"Calls per bucket over the range","tools.share-of-calls":"{percent} of all tool calls","tools.errors-title":"Calls whose result came back flagged as an error","tools.args":"Args","tools.result":"Result","tools.result-per-call":"Result / call","tools.result-per-call-title":"Mean tool-result characters per call","tools.attr-tokens":"Attr. tokens","tools.share-of-tokens":"{percent} of attributed tokens","tools.attr-cost":"Attr. cost","tools.share-of-cost":"{percent} of attributed cost","tools.last-used":"Last used"},"zh-CN":{"tools.title":"工具","tools.description":"zeta 在{window}调用了哪些工具、它们的失败频率如何,以及产生了多少费用。","tools.tool-calls":"工具调用","tools.failed-n":"{count} 个失败","tools.distinct-tools":"不同工具数","tools.most-used":"使用最多:{tool}","tools.error-rate-title":"返回时被标记为错误的工具结果","tools.succeeded-n":"{count} 个成功","tools.attributed-tokens":"归属 Token","tools.tokens-output":"{tokens} 输出","tools.attributed-cost":"归属费用","tools.attribution-note":"每次调用回合的 Token 与 API 等价费用,平均分摊到该回合的各个工具调用","tools.attribution-estimate":"{note};按 API 等价估算","tools.unpriced-requests-n":"{count} 个未定价请求","tools.api-equivalent":"按 API 等价","tools.result-text":"结果文本","tools.result-chars-title":"回填到上下文中的工具结果文本字符数","tools.chars":"{count} 字符","tools.call-arguments":"调用参数","tools.args-chars-title":"序列化后的工具调用参数字符数","tools.avg-result-per-call":"每次调用平均结果","tools.avg-args-per-call":"每次调用平均参数","tools.calls-over-time":"调用次数随时间变化","tools.errors-over-time":"错误数随时间变化","tools.chart-description":"按{bucket}统计,堆叠显示前 {count} 个工具","tools.bucket-5m":"5 分钟","tools.bucket-hour":"小时","tools.bucket-day":"天","tools.calls":"调用次数","tools.errors":"错误数","tools.no-tool-errors":"该时间范围内没有工具错误","tools.by-tool":"按工具","tools.by-tool-description":"{note}。选择某个工具可按模型细分。","tools.by-tool-and-model":"按工具和模型","tools.by-tool-and-model-description":"哪些模型调用了哪些工具,以及这些调用的失败频率","tools.filter-by-tool":"按工具筛选","tools.all-tools":"全部工具","tools.clear-tool-filter":"清除工具筛选","tools.no-tool-calls":"该时间范围内没有工具调用","tools.no-calls-to-tool":"该时间范围内没有对 {tool} 的调用","tools.tool":"工具","tools.trend":"趋势","tools.trend-title":"时间范围内每个分桶的调用次数","tools.share-of-calls":"占全部工具调用的 {percent}","tools.errors-title":"结果返回时被标记为错误的调用","tools.args":"参数","tools.result":"结果","tools.result-per-call":"结果 / 次","tools.result-per-call-title":"每次调用平均工具结果字符数","tools.attr-tokens":"归属 Token","tools.share-of-tokens":"占归属 Token 的 {percent}","tools.attr-cost":"归属费用","tools.share-of-cost":"占归属费用的 {percent}","tools.last-used":"最近使用"}};var Bh={en:{"frustration.estimate-note":"Identical messages share one verdict, and verdicts are cached, so later runs only pay for new messages. Nothing is spent until you proceed.","frustration.column-model-ids":"Model IDs","frustration.column-messages":"Messages","frustration.column-judged":"Judged","frustration.model-versions":"Model versions","frustration.no-model-match":"No model versions match the filters","frustration.small-models-title":"Models with fewer than {count} messages have noisy rates","frustration.hide-regex-title":"Hide models with under {share}% judged messages (rates from regex signals)","frustration.hatch-title":"Under {share}% of these messages are judged; their rates come from regex signals","frustration.regex-badge":"regex","frustration.legend-annoyed-any":"Annoyed, any target","frustration.table-description":"Rates are shares of user messages; rows follow the chart filters.","frustration.running":"Running","frustration.estimating":"Estimating cost…","frustration.failed-n":"{count} failed","frustration.cost-so-far":"cost so far","frustration.elapsed":"elapsed {time}","frustration.in-flight":"{count} in flight","frustration.messages-progress":"{done}/{total} messages","frustration.failed-suffix":", {count} failed","frustration.judge-with":" with {judge}","frustration.in-time":" in {time}","frustration.run-done-line":"Last run judged {progress}{failed}{judge}{elapsed} for {cost}.","frustration.run-cancelled-line":"Last run cancelled after {progress}{failed}; spent {cost}.","frustration.run-failed-line":"Last run failed after {progress}{failed}: {error}. Spent {cost}.","frustration.title":"Frustration","frustration.description":"How often your messages sound annoyed, per model version, in {window}.","frustration.user-messages":"User messages","frustration.user-messages-title":"User messages with prose in range","frustration.judge-coverage":"Judge coverage","frustration.judge-coverage-title":"Messages with a cached judge verdict; the rest use the regex lexicons","frustration.coverage-hint":"{judged} judged · {regex} regex","frustration.coverage-unscored":" · {count} unscored (no lexicon)","frustration.unscored-line":"Messages in a language without a lexicon: {count} — unscored, not calm.","frustration.annoyed":"Annoyed","frustration.annoyed-title":"Messages annoyed at any target","frustration.at-assistant":"At assistant","frustration.at-assistant-title":"Messages annoyed at the assistant","frustration.angry":"Angry","frustration.angry-title":"Messages angry or hostile toward the assistant","frustration.messages-n":"{count} messages","frustration.judge-panel":"Judge classification","frustration.judge-description":"Cached LLM verdicts replace the regex lexicons; unjudged messages fall back to regex signals. Messages in a language no lexicon covers are reported as unscored rather than counted as calm.","frustration.classify":"Classify with judge","frustration.proceed":"Proceed","frustration.starting":"Starting…","frustration.judge-running":"A judge run is in progress","frustration.quote-title":"Quote the cost of judging every unjudged message in range","frustration.estimated-cost":"Estimated cost","frustration.unjudged-messages":"Unjudged unique messages","frustration.prose-chars":"Prose characters","frustration.input-tokens":"Estimated input tokens","frustration.judge-model":"Judge","frustration.all-judged":"Everything in this range is already judged. There is nothing left to classify.","frustration.no-run-yet":"No judge run yet. Classify the unjudged messages to replace regex estimates with verdicts.","frustration.last-run-done":"Last run done","frustration.last-run-cancelled":"Last run cancelled","frustration.last-run-failed":"Last run failed","frustration.not-run-yet":"Not run yet","frustration.regex-only":"Regex only","frustration.cancel-run":"Cancel run","frustration.cancelling":"Cancelling…","frustration.run-judged":"Last run judged {progress}","frustration.run-cancelled-after":"Last run cancelled after {progress}","frustration.run-failed-after":"Last run failed after {progress}","frustration.by-model":"Frustration by model version","frustration.by-model-description":"Share of user messages per model version. Each bar reaches the annoyed rate; the subsets aimed at the assistant stack inside it.","frustration.all-classes":"All","frustration.every-model-class":"Every model class","frustration.model-class":"Model class","frustration.include-small":"Include < {count} messages","frustration.unclassified":"unclassified","frustration.legend-angry":"Angry at assistant","frustration.legend-assistant":"At assistant, not angry","frustration.legend-other":"Annoyed at other targets","frustration.legend-trend":"At assistant trend","frustration.legend-hatched":"Hatched: mostly regex fallback","frustration.legend-hatched-run":"Hatched: mostly regex fallback (run the judge)","frustration.legend-hue":"Hue = model family","frustration.no-messages":"No user messages in this range","frustration.try-longer-range":"Try a longer range.","frustration.mostly-regex":"Mostly regex fallback: run the judge for accurate rates","frustration.row-mostly-regex":" · mostly regex fallback","frustration.stack-relation":"annoyed ⊇ atAssistant ⊇ angry","frustration.unknown-error":"unknown error","frustration.cancelled":"Cancelled","frustration.failed":"Failed","frustration.done":"Done","frustration.model-side-title":"AI breakdown","frustration.model-side-description":"How the model's own replies read, per model version, in {window}.","frustration.model-turns":"Assistant turns","frustration.model-turns-title":"Assistant replies with text in range; tool-call-only replies and thinking blocks are not analyzed","frustration.model-breakdown":"Breakdown rate","frustration.model-breakdown-title":"Share of analyzed turns with at least one breakdown signal","frustration.model-mean":"Signals / turn","frustration.model-mean-title":"Average per-turn aggregate: text markers plus capped failed tool results","frustration.model-self-blame":"Self-blame","frustration.model-self-blame-title":"Turns containing an apology or admission","frustration.model-restatement":"Restatement","frustration.model-restatement-title":"Turns repeating earlier content, by explicit marker or near-duplicate reply","frustration.model-hedge":"Hedged","frustration.model-hedge-title":"Turns with hedged fallbacks: uncertainty or suggested alternatives","frustration.model-spiral":"Tool spirals","frustration.model-spiral-title":"Turns following three or more failed tool results","frustration.model-rambling":"Rambling","frustration.model-rambling-title":"Turns past the verbosity threshold","frustration.model-unscored-line":"Turns in a language without a lexicon: {count} — unscored, not calm.","frustration.model-by-model":"AI breakdown by model version","frustration.model-table-title":"Model breakdown detail","frustration.model-by-model-description":"Share of each model's analyzed turns carrying a breakdown signal. Hue = model family.","frustration.model-over-time":"AI breakdown over time","frustration.model-over-time-description":"Breakdown rate per bucket: turns with a signal over analyzed turns. Gaps are buckets with no turns.","frustration.model-sessions":"Sessions by breakdown","frustration.model-sessions-description":"Sessions with the most analyzed assistant turns.","frustration.model-table-description":"Rates are shares of analyzed assistant turns.","frustration.column-session":"Session","frustration.column-turns":"Turns","frustration.column-mean":"Signals/turn","frustration.column-tool-errors":"Tool errors","frustration.model-no-turns":"No assistant turns with text in this range","frustration.model-try-longer-range":"Try a longer range.","frustration.model-legend-breakdown":"Breakdown rate","frustration.turns-n":"{count} turns","frustration.model-hint-mean":"{value} signals per turn on average"},"zh-CN":{"frustration.estimate-note":"内容相同的消息共用一份结论,且结论会被缓存,因此后续运行只为新消息付费。在你开始之前不会产生任何费用。","frustration.column-model-ids":"模型 ID","frustration.column-messages":"消息数","frustration.column-judged":"已评判","frustration.model-versions":"模型版本","frustration.no-model-match":"没有符合筛选条件的模型版本","frustration.small-models-title":"消息少于 {count} 条的模型比例噪声较大","frustration.hide-regex-title":"隐藏已评判比例低于 {share}% 的模型(其比例来自正则信号)","frustration.hatch-title":"这些消息中已评判比例低于 {share}%,其比例来自正则信号","frustration.regex-badge":"正则","frustration.legend-annoyed-any":"不耐烦(任意对象)","frustration.table-description":"比例为占用户消息的百分比;行跟随图表筛选。","frustration.running":"运行中","frustration.estimating":"正在估算费用…","frustration.failed-n":"{count} 条失败","frustration.cost-so-far":"当前费用","frustration.elapsed":"已用时 {time}","frustration.in-flight":"并发 {count}","frustration.messages-progress":"{done}/{total} 条消息","frustration.failed-suffix":",{count} 条失败","frustration.judge-with":",评判模型 {judge}","frustration.in-time":",用时 {time}","frustration.run-done-line":"上次运行评判了 {progress}{failed}{judge}{elapsed},花费 {cost}。","frustration.run-cancelled-line":"上次运行在 {progress}{failed} 后取消,花费 {cost}。","frustration.run-failed-line":"上次运行在 {progress}{failed} 后失败:{error}。花费 {cost}。","frustration.title":"情绪压力","frustration.description":"按模型版本统计你的消息有多不耐烦({window})。","frustration.user-messages":"用户消息","frustration.user-messages-title":"该时间范围内的用户消息(含正文)","frustration.judge-coverage":"判据覆盖率","frustration.judge-coverage-title":"已有缓存的评判模型结论的消息;其余使用正则词典","frustration.coverage-hint":"{judged} 条已评判 · {regex} 条正则","frustration.coverage-unscored":" · {count} 条未评分(无词典)","frustration.unscored-line":"缺少对应词典的语言:{count} 条 —— 未评分,不代表平静。","frustration.annoyed":"不耐烦","frustration.annoyed-title":"对任何对象不耐烦的消息","frustration.at-assistant":"针对助手","frustration.at-assistant-title":"对助手不耐烦的消息","frustration.angry":"发怒","frustration.angry-title":"对助手发怒或带有敌意的消息","frustration.messages-n":"{count} 条消息","frustration.judge-panel":"评判模型分类","frustration.judge-description":"缓存的模型结论会取代正则词典;未评判的消息回退到正则信号。缺少词典的语言显示为未评分,而不是判定为平静。","frustration.classify":"用评判模型分类","frustration.proceed":"开始","frustration.starting":"正在开始…","frustration.judge-running":"评判任务正在进行","frustration.quote-title":"估算对该范围内所有未评判消息进行判定的成本","frustration.estimated-cost":"预估费用","frustration.unjudged-messages":"未评判的唯一消息","frustration.prose-chars":"正文字符数","frustration.input-tokens":"预估输入 Token","frustration.judge-model":"评判模型","frustration.all-judged":"该范围内已全部评判,没有需要分类的消息。","frustration.no-run-yet":"尚未运行评判。对未评判的消息分类,即可用结论取代正则估算。","frustration.last-run-done":"上次运行完成","frustration.last-run-cancelled":"上次运行已取消","frustration.last-run-failed":"上次运行失败","frustration.not-run-yet":"尚未运行","frustration.regex-only":"仅正则","frustration.cancel-run":"取消运行","frustration.cancelling":"正在取消…","frustration.run-judged":"上次运行已评判 {progress}","frustration.run-cancelled-after":"上次运行在 {progress} 后取消","frustration.run-failed-after":"上次运行在 {progress} 后失败","frustration.by-model":"按模型版本的情绪压力","frustration.by-model-description":"各模型版本中用户消息的占比。每根柱子到达不耐烦比例,其中针对助手的子集叠在其内部。","frustration.all-classes":"全部","frustration.every-model-class":"所有模型类别","frustration.model-class":"模型类别","frustration.include-small":"包含少于 {count} 条消息","frustration.unclassified":"未分类","frustration.legend-angry":"对助手发怒","frustration.legend-assistant":"针对助手但未发怒","frustration.legend-other":"对其他对象不耐烦","frustration.legend-trend":"针对助手趋势","frustration.legend-hatched":"斜线:多为正则回退","frustration.legend-hatched-run":"斜线:多为正则回退(运行评判)","frustration.legend-hue":"色相 = 模型家族","frustration.no-messages":"该时间范围内没有用户消息","frustration.try-longer-range":"试试更长的时间范围。","frustration.mostly-regex":"多为正则回退:运行评判以获得准确比例","frustration.row-mostly-regex":" · 多为正则回退","frustration.stack-relation":"不耐烦 ⊇ 针对助手 ⊇ 发怒","frustration.unknown-error":"未知错误","frustration.cancelled":"已取消","frustration.failed":"失败","frustration.done":"完成","frustration.model-side-title":"AI 崩溃度","frustration.model-side-description":"各模型版本自身回复的读感,统计窗口:{window}。","frustration.model-turns":"助手回合","frustration.model-turns-title":"时间范围内带文本的助手回复;仅含工具调用的回复与思考块不参与分析","frustration.model-breakdown":"崩溃率","frustration.model-breakdown-title":"至少带一个崩溃信号的已分析回合占比","frustration.model-mean":"信号 / 回合","frustration.model-mean-title":"每回合聚合均值:文本标记加上封顶的工具失败数","frustration.model-self-blame":"自责","frustration.model-self-blame-title":"包含道歉或认错的回合","frustration.model-restatement":"重复陈述","frustration.model-restatement-title":"以显式标记或与上一条回复高度相似的方式重复先前内容的回合","frustration.model-hedge":"含糊兜底","frustration.model-hedge-title":"带有含糊兜底的回合:不确定表述或建议替代方案","frustration.model-spiral":"工具失败螺旋","frustration.model-spiral-title":"紧随三个及以上工具失败之后的回合","frustration.model-rambling":"冗长","frustration.model-rambling-title":"超过冗长阈值的回合","frustration.model-unscored-line":"使用无词典语言的回合:{count} — 未评分,而非平静。","frustration.model-by-model":"各模型版本的 AI 崩溃度","frustration.model-table-title":"模型崩溃明细","frustration.model-by-model-description":"每个模型已分析回合中带崩溃信号的占比。色相 = 模型家族。","frustration.model-over-time":"AI 崩溃度随时间变化","frustration.model-over-time-description":"每个时间桶的崩溃率:带信号的回合除以已分析回合。空白表示该桶没有回合。","frustration.model-sessions":"按崩溃度查看会话","frustration.model-sessions-description":"已分析助手回合最多的会话。","frustration.model-table-description":"比例为已分析助手回合的占比。","frustration.column-session":"会话","frustration.column-turns":"回合数","frustration.column-mean":"信号/回合","frustration.column-tool-errors":"工具错误","frustration.model-no-turns":"该时间范围内没有带文本的助手回合","frustration.model-try-longer-range":"试试更长的时间范围。","frustration.model-legend-breakdown":"崩溃率","frustration.turns-n":"{count} 个回合","frustration.model-hint-mean":"平均每回合 {value} 个信号"}};var Ph={en:{"projects.title":"Projects","projects.description":"Usage by session folder in {window}.","projects.folders":"Folders","projects.folder":"Folder","projects.temporary-n":"{count} temporary","projects.failed-n":"{count} failed","projects.api-equivalent-cost":"API-equivalent cost","projects.api-equivalent-cost-hint":"What this usage would cost at public API rates","projects.unpriced-n":"{count} unpriced","projects.conversation-tokens":"Conversation tokens","projects.conversation-tokens-hint":"Uncached input + cache reads + cache writes + output","projects.cache-rate":"Cache rate","projects.cache-rate-hint":"Cache reads ÷ (uncached input + cache reads)","projects.cache-rate-hint-all":"Cache reads ÷ (uncached input + cache reads), across every folder","projects.top-by-cost":"Top by cost","projects.top-by-cost-description":"Share of API-equivalent cost","projects.top-by-requests":"Top by requests","projects.top-by-requests-description":"Share of all requests","projects.folders-n":"{count} folders","projects.folders-of-n":"{count} of {total} folders","projects.hide-temporary":"Hide temporary ({count})","projects.hide-temporary-hint":"Session folders under /tmp or /var/folders","projects.filter-placeholder":"Filter folders…","projects.empty-no-folders":"No project folders in this range","projects.empty-only-temporary":"Only temporary folders in this range","projects.empty-no-match":"No folders match","projects.hint-longer-range":"Try a longer range.","projects.hint-temporary-hidden":"Temporary folders are hidden.","projects.temp":"temp","projects.share-of-requests":"{share} of all requests","projects.share-of-cost":"{share} of all cost","projects.api-equivalent-cost-rates":"API-equivalent cost at public API rates","projects.cache-savings":"Cache savings","projects.cache-savings-hint":"Prompt-input cost saved versus billing the same tokens uncached","projects.errors":"Errors","projects.avg-duration":"Avg duration","projects.last-active":"Last active"},"zh-CN":{"projects.title":"项目","projects.description":"{window}内按会话文件夹统计的用量。","projects.folders":"文件夹","projects.folder":"文件夹","projects.temporary-n":"{count} 个临时","projects.failed-n":"{count} 个失败","projects.api-equivalent-cost":"API 等效费用","projects.api-equivalent-cost-hint":"这些用量按公开 API 费率计算所需的费用","projects.unpriced-n":"{count} 个未计价","projects.conversation-tokens":"对话 Token","projects.conversation-tokens-hint":"未缓存输入 + 缓存读取 + 缓存写入 + 输出","projects.cache-rate":"缓存命中率","projects.cache-rate-hint":"缓存读取 ÷(未缓存输入 + 缓存读取)","projects.cache-rate-hint-all":"缓存读取 ÷(未缓存输入 + 缓存读取),覆盖所有文件夹","projects.top-by-cost":"费用最高","projects.top-by-cost-description":"占 API 等效费用的比例","projects.top-by-requests":"请求最多","projects.top-by-requests-description":"占全部请求的比例","projects.folders-n":"{count} 个文件夹","projects.folders-of-n":"{total} 个文件夹中的 {count} 个","projects.hide-temporary":"隐藏临时文件夹({count})","projects.hide-temporary-hint":"/tmp 或 /var/folders 下的会话文件夹","projects.filter-placeholder":"筛选文件夹…","projects.empty-no-folders":"该时间范围内没有项目文件夹","projects.empty-only-temporary":"该时间范围内只有临时文件夹","projects.empty-no-match":"没有匹配的文件夹","projects.hint-longer-range":"试试更长的时间范围。","projects.hint-temporary-hidden":"临时文件夹已隐藏。","projects.temp":"临时","projects.share-of-requests":"占全部请求的 {share}","projects.share-of-cost":"占全部费用的 {share}","projects.api-equivalent-cost-rates":"按公开 API 费率计算的等效费用","projects.cache-savings":"缓存节省","projects.cache-savings-hint":"同样的 Token 按未缓存计费时,提示输入费用节省的比例","projects.errors":"错误","projects.avg-duration":"平均耗时","projects.last-active":"最近活动"}};var zh={en:{"tracking.title":"Tracking","tracking.description":"Read-only snapshot of a project's tracking documents: process state, not learned facts.","tracking.project":"Project","tracking.select-project":"Select a project…","tracking.no-projects":"No projects in the stats registry","tracking.no-projects-hint":"Tracking is scoped to folders the stats database has seen.","tracking.read-only":"The dashboard only reads these files; it never writes tracking.","tracking.directory":"Directory","tracking.updated":"Updated","tracking.none":"None","tracking.no-documents":"No tracking documents","tracking.no-documents-hint":"Tracking is opt-in. Run /tracking on, or enable tools → Project Tracking (tracking.enabled) in /settings, then /tracking start.","tracking.status":"Status","tracking.index":"Index","tracking.actions":"Actions","tracking.sessions":"Sessions","tracking.phase":"Phase","tracking.progress":"Progress","tracking.blockers":"Blockers","tracking.decisions":"Decisions","tracking.stage":"Stage","tracking.phases":"Todo phases","tracking.last-updated":"Last updated","tracking.last-session":"Last session","tracking.missing":"Missing","tracking.partial":"Partial","tracking.corrupt":"Corrupt","tracking.error":"Error","tracking.truncated":"Truncated read","tracking.status-missing":"status.json is missing","tracking.status-corrupt":"status.json is not valid JSON","tracking.status-error":"Could not read status.json","tracking.index-missing":"INDEX.md is missing","tracking.actions-missing":"No action log yet","tracking.sessions-missing":"No sessions directory yet","tracking.sessions-empty":"No session documents","tracking.invalid-rows":"{count} malformed action rows skipped","tracking.actions-empty":"The action log has no readable rows","tracking.document-empty":"This document is empty"},"zh-CN":{"tracking.title":"追踪","tracking.description":"项目追踪文档的只读快照:这里是过程状态,不是学到的知识事实。","tracking.project":"项目","tracking.select-project":"选择项目…","tracking.no-projects":"统计注册表中没有项目","tracking.no-projects-hint":"追踪只读取统计数据库见过的项目文件夹。","tracking.read-only":"仪表盘只读取这些文件,绝不写入追踪。","tracking.directory":"目录","tracking.updated":"更新时间","tracking.none":"无","tracking.no-documents":"没有追踪文档","tracking.no-documents-hint":"追踪是可选功能。运行 /tracking on,或在 /settings → tools → Project Tracking(tracking.enabled)中启用,然后执行 /tracking start。","tracking.status":"状态","tracking.index":"索引","tracking.actions":"操作","tracking.sessions":"会话","tracking.phase":"阶段","tracking.progress":"进度","tracking.blockers":"阻塞","tracking.decisions":"决策","tracking.stage":"当前阶段","tracking.phases":"待办阶段","tracking.last-updated":"最近更新","tracking.last-session":"最近会话","tracking.missing":"缺失","tracking.partial":"不完整","tracking.corrupt":"损坏","tracking.error":"错误","tracking.truncated":"读取已截断","tracking.status-missing":"status.json 缺失","tracking.status-corrupt":"status.json 不是有效 JSON","tracking.status-error":"无法读取 status.json","tracking.index-missing":"INDEX.md 缺失","tracking.actions-missing":"还没有操作日志","tracking.sessions-missing":"还没有 sessions 目录","tracking.sessions-empty":"没有会话文档","tracking.invalid-rows":"已跳过 {count} 行格式错误的操作记录","tracking.actions-empty":"操作日志没有可读记录","tracking.document-empty":"该文档为空"}};var Uh={en:{"gain.title":"Gain","gain.description":"Tokens snapcompact kept out of context in {window}.","gain.description-scoped":"Tokens snapcompact kept out of context for {project} in {window}.","gain.all-projects":"All projects","gain.empty-title":"No savings recorded in {window}","gain.empty-title-scoped":"No savings recorded for {project} in {window}","gain.empty-hint-all":"Savings appear here once snapcompact compacts tool output.","gain.empty-hint-longer-range":"Try a longer range.","gain.saved-tokens":"Saved tokens","gain.saved-bytes":"Saved bytes","gain.reduction":"Reduction","gain.reduction-title":"Saved bytes ÷ original bytes, when the original size is known","gain.reduction-unknown":"original size not recorded","gain.hits":"Hits","gain.saved-per-hit":"Saved per hit","gain.savings-over-time":"Savings over time","gain.savings-over-time-description":"Tokens saved per day, with the running total","gain.saved-per-day":"Saved per day","gain.cumulative":"Cumulative","gain.by-source":"By source","gain.by-source-description":"Savings per subsystem","gain.source":"Source"},"zh-CN":{"gain.title":"收益","gain.description":"在{window}内被 snapcompact 挡在上下文之外的 Token。","gain.description-scoped":"在{window}内被 snapcompact 为 {project} 挡在上下文之外的 Token。","gain.all-projects":"全部项目","gain.empty-title":"在{window}内没有节省记录","gain.empty-title-scoped":"在{window}内没有 {project} 的节省记录","gain.empty-hint-all":"snapcompact 压缩工具输出后,节省量会显示在这里。","gain.empty-hint-longer-range":"请尝试更长的时间范围。","gain.saved-tokens":"节省的 Token","gain.saved-bytes":"节省的字节","gain.reduction":"节省比例","gain.reduction-title":"原始大小已知时,节省字节 ÷ 原始字节","gain.reduction-unknown":"未记录原始大小","gain.hits":"命中次数","gain.saved-per-hit":"每次命中节省","gain.savings-over-time":"节省趋势","gain.savings-over-time-description":"按本地日统计节省的 Token,以及累计总量","gain.saved-per-day":"每日节省","gain.cumulative":"累计","gain.by-source":"按来源","gain.by-source-description":"各子系统节省量","gain.source":"来源"}};var _h={en:{"ui.table-shown-of":"{shown} of {total}","ui.show-fewer":"Show fewer","ui.retry":"Retry","ui.delta-new":"new","ui.json":"JSON","ui.trace":"Trace","ui.open-trace":"Open this request's session in the trace view","ui.status-ok":"OK","ui.section-timing":"Timing","ui.time-to-first-token":"Time to first token","ui.uncached-input":"Uncached input","ui.section-cost":"API-equivalent cost","ui.section-identity":"Identity","ui.stop-reason":"Stop reason","ui.api":"API","ui.session-file":"Session file","ui.stats-row":"Stats row"},"zh-CN":{"ui.table-shown-of":"已显示 {shown} / 共 {total}","ui.show-fewer":"收起","ui.retry":"重试","ui.delta-new":"新增","ui.json":"JSON 数据","ui.trace":"调用链","ui.open-trace":"在调用链视图中打开该请求的会话","ui.status-ok":"正常","ui.section-timing":"时间","ui.time-to-first-token":"首 Token 延迟","ui.uncached-input":"未缓存输入","ui.section-cost":"API 等价费用","ui.section-identity":"标识","ui.stop-reason":"停止原因","ui.api":"接口","ui.session-file":"会话文件","ui.stats-row":"统计行"}};var Hh={en:{},"zh-CN":{}};var _E={...Th.en,...Ih.en,...Rh.en,...Ah.en,...Mh.en,...Dh.en,...Eh.en,...Nh.en,...qh.en,...Oh.en,...Bh.en,...Ph.en,...zh.en,...Uh.en,..._h.en,...Hh.en},$T={id:"en",messages:_E};var HE={...Th["zh-CN"],...Ih["zh-CN"],...Rh["zh-CN"],...Ah["zh-CN"],...Mh["zh-CN"],...Dh["zh-CN"],...Eh["zh-CN"],...Nh["zh-CN"],...qh["zh-CN"],...Oh["zh-CN"],...Bh["zh-CN"],...Ph["zh-CN"],...zh["zh-CN"],...Uh["zh-CN"],..._h["zh-CN"],...Hh["zh-CN"]},XT={id:"zh-CN",messages:HE};function FE(){return globalThis.__ZETA_STATS_LOCALE__}var GE={en:$T.messages,"zh-CN":XT.messages},YT="zeta.stats.locale",ub=new Set,Gh="en";jE();function Br(){return Gh}function KT(r){return ub.add(r),()=>{ub.delete(r)}}function Fh(r){return Gh=Ch(r),Gh}function QT(r){let l=Fh(r);try{globalThis.localStorage?.setItem(YT,l)}catch{}for(let i of[...ub])i();return l}function VE(){try{let r=globalThis.localStorage?.getItem(YT);if(!r)return;let l=Ch(r);return l==="en"||l==="zh-CN"?l:void 0}catch{return}}function jE(){let r=VE();if(r)return Fh(r);let l=FE();if(l)return Fh(l);if(typeof navigator>"u")return"en";return Fh(VT(navigator.languages))}function u(r,l){return jT(Gh,r,GE,l)}var ZT=60000,Ju=60*ZT,hr=24*Ju,db={"1h":{labelKey:"common.range-1h",windowKey:"common.window-1h",spanMs:Ju,bucketMs:5*ZT},"24h":{labelKey:"common.range-24h",windowKey:"common.window-24h",spanMs:hr,bucketMs:Ju},"2d":{labelKey:"common.range-2d",windowKey:"common.window-2d",spanMs:2*hr,bucketMs:Ju},"3d":{labelKey:"common.range-3d",windowKey:"common.window-3d",spanMs:3*hr,bucketMs:Ju},"7d":{labelKey:"common.range-7d",windowKey:"common.window-7d",spanMs:7*hr,bucketMs:hr},"30d":{labelKey:"common.range-30d",windowKey:"common.window-30d",spanMs:30*hr,bucketMs:hr},"90d":{labelKey:"common.range-90d",windowKey:"common.window-90d",spanMs:90*hr,bucketMs:hr},all:{labelKey:"common.range-all",windowKey:"common.window-all",spanMs:null,bucketMs:hr}},$E=1500,ed=["1h","24h","2d","3d","7d","30d","90d","all"];function aa(r){return db[r]}var cb={hour:"2-digit",minute:"2-digit",hourCycle:"h23"},fb={month:"short",day:"numeric"},WT=new Map;function zf(r,l){let i=Br(),d=`${i}:${r}`,f=WT.get(d);if(!f)f=new Intl.DateTimeFormat(i,l),WT.set(d,f);return f}function td(r,l){if(l<Ju)return zf("hm",cb).format(r);if(l<hr)return zf("mdhm",{...fb,...cb}).format(r);return zf("md",fb).format(r)}function Vh(r,l){return l<hr?zf("hm",cb).format(r):zf("md",fb).format(r)}function oo(r,l,i=db[r].bucketMs,d=Date.now()){let f=i===hr,g=(y)=>f?new Date(y).setHours(0,0,0,0):Math.floor(y/i)*i,v=g(d),h=db[r].spanMs,m;if(h!==null)m=g(d-h);else{m=v;for(let y of l)if(y<m)m=y;m=g(m)}m=Math.max(m,g(v-($E-1)*i));let S=[];for(let y=m;y<=v;)if(S.push(y),f){let b=new Date(y);b.setDate(b.getDate()+1),y=b.setHours(0,0,0,0)}else y+=i;return S}var JT=_(Ke(),1);function _n(){return JT.useSyncExternalStore(KT,Br,Br)}var Uf=_(Ke(),1);class pb extends Error{status;endpoint;constructor(r,l,i){super(i);this.name="ApiError",this.status=r,this.endpoint=l}}async function tI(r,l){try{let i=await r.json();if(typeof i==="object"&&i!==null&&"error"in i&&typeof i.error==="string")return i.error}catch{}return`HTTP error ${r.status} on ${l}`}var eI=new WeakMap;async function Ia(r,l,i){let d=typeof i==="object"&&i!==null?eI.get(i):void 0,f=l;if(d){let m=new Headers(l?.headers);m.set("If-None-Match",d),f={...l,headers:m}}let g=await fetch(r,f);if(g.status===304&&d)return i;if(!g.ok)throw new pb(g.status,r,await tI(g,r));let v=await g.json(),h=g.headers.get("ETag");if(h&&typeof v==="object"&&v!==null)eI.set(v,h);return v}var mb={"X-Zeta-Stats-Action":"1"};async function aI(r="24h",l){return Ia(`/api/stats/overview?range=${encodeURIComponent(r)}`,{signal:l})}async function oI(r="24h",l){return Ia(`/api/stats/model-dashboard?range=${encodeURIComponent(r)}`,{signal:l})}async function rI(r="24h",l){return Ia(`/api/stats/costs?range=${encodeURIComponent(r)}`,{signal:l})}async function jh(r=50,l){return Ia(`/api/stats/recent?limit=${r}`,{signal:l})}async function nI(r="24h",l=50,i){return Ia(`/api/stats/errors?range=${encodeURIComponent(r)}&limit=${l}`,{signal:i})}async function sI(r,l){return Ia(`/api/request/${r}`,{signal:l})}async function lI(r){let{closable:l}=await Ia("/api/close",{signal:r});return l}async function iI(){let l=await fetch("/api/close",{method:"POST",headers:mb});if(!l.ok)throw new pb(l.status,"/api/close",await tI(l,"/api/close"))}async function uI(){return Ia("/api/sync",{method:"POST"})}async function dI(r="24h",l){return Ia(`/api/stats/frustration?range=${encodeURIComponent(r)}`,{signal:l})}async function cI(r,l){return Ia(`/api/frustration/estimate?range=${encodeURIComponent(r)}`,{signal:l})}async function fI(r){return Ia(`/api/frustration/judge?range=${encodeURIComponent(r)}`,{method:"POST",headers:mb})}async function pI(){return Ia("/api/frustration/cancel",{method:"POST",headers:mb})}async function mI(r="24h",l){return Ia(`/api/stats/folders?range=${encodeURIComponent(r)}`,{signal:l})}async function hI(r){return Ia("/api/tracking/projects",{signal:r})}async function gI(r,l){return Ia(`/api/tracking?project=${encodeURIComponent(r)}`,{signal:l})}async function yI(r="24h",l,i){let d=new URLSearchParams({range:r});if(l)d.set("project",l);return Ia(`/api/stats/gain?${d}`,{signal:i})}async function vI(r="24h",l="all",i){return Ia(`/api/stats/spotlight?range=${encodeURIComponent(r)}&agent=${encodeURIComponent(l)}`,{signal:i})}async function xI(r,l){return Ia(`/api/stats/spotlight/session?file=${encodeURIComponent(r)}`,{signal:l})}async function bI(r="24h",l){return Ia(`/api/stats/tools?range=${encodeURIComponent(r)}`,{signal:l})}async function SI(r="24h",l){return Ia(`/api/stats/providers?range=${encodeURIComponent(r)}`,{signal:l})}async function hb(r,l,i){let d=new URLSearchParams({range:r});if(l!==null)d.set("provider",l);return Ia(`/api/stats/provider-windows?${d}`,{signal:i})}async function kI(r=100,l,i){let d=new URLSearchParams({limit:String(r)});if(l)d.set("q",l);return Ia(`/api/sessions?${d}`,{signal:i})}async function LI(r,l,i){return Ia(`/api/session/trace?file=${encodeURIComponent(r)}`,{signal:l,cache:"no-store"},i)}async function wI(r,l,i){return Ia(`/api/session/entry?file=${encodeURIComponent(r)}&id=${encodeURIComponent(l)}`,{signal:i})}var YE={phase:"idle",current:0,total:0,processed:0,lastSyncedAt:null,error:null};function KE(){uI().catch(()=>{})}var CI=null,TI=0,$h=0,El={sync:YE,indexingHours:0,connected:!1,requestSync:KE},yb=new Set;function II(r){return yb.add(r),()=>yb.delete(r)}function RI(){for(let r of yb)r()}function QE(r,l){return r.phase===l.phase&&r.current===l.current&&r.total===l.total&&r.processed===l.processed&&r.lastSyncedAt===l.lastSyncedAt&&r.error===l.error}function WE(r){if(CI!==r.version)CI=r.version,TI++;let l=Math.max(0,TI-1),i=r.indexingHours!==El.indexingHours||!QE(r.sync,El.sync);if(!i&&l===$h)return;if($h=l,i)El={...El,sync:r.sync,indexingHours:r.indexingHours};RI()}function gb(r){if(r===El.connected)return;El={...El,connected:r},RI()}var ZE=()=>El,JE=()=>$h,eN=()=>-1;function vb(){return $h}function AI({children:r}){return Uf.useEffect(()=>{let l=new EventSource("/api/events");return l.onopen=()=>gb(!0),l.onerror=()=>gb(!1),l.onmessage=(i)=>WE(JSON.parse(i.data)),()=>{l.close(),gb(!1)}},[]),r}function Xh(){return Uf.useSyncExternalStore(II,ZE)}function MI(r=!0){return Uf.useSyncExternalStore(II,r?JE:eN)}var Yh=_(te(),1);function ct({tone:r="neutral",mono:l,children:i}){return Yh.jsxDEV("span",{className:"badge","data-tone":r,"data-mono":l??!1,children:i},void 0,!1,void 0,this)}function Hn({tone:r="neutral",pulse:l}){return Yh.jsxDEV("span",{className:"dot","data-tone":r,"data-pulse":l??!1},void 0,!1,void 0,this)}function an({color:r}){return Yh.jsxDEV("span",{className:"swatch",style:{background:r}},void 0,!1,void 0,this)}function gr(r){if(r>=0.05)return"bad";if(r>=0.01)return"warn";return"ok"}var Ko=_(te(),1);function fe({title:r,description:l,actions:i,flush:d,footer:f,className:g,index:v,stale:h,children:m}){let S=r!==void 0||l!==void 0||i!==void 0;return Ko.jsxDEV("section",{className:g?`card rise ${g}`:"card rise",style:v!==void 0?{"--i":v}:void 0,children:[S&&Ko.jsxDEV("header",{className:"card-header",children:[Ko.jsxDEV("div",{className:"card-titles",children:[r!==void 0&&Ko.jsxDEV("h2",{className:"card-title",children:r},void 0,!1,void 0,this),l!==void 0&&Ko.jsxDEV("p",{className:"card-description",children:l},void 0,!1,void 0,this)]},void 0,!0,void 0,this),i!==void 0&&Ko.jsxDEV("div",{className:"card-actions",children:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ko.jsxDEV("div",{className:"card-body","data-flush":d??!1,"data-stale":h??!1,children:m},void 0,!1,void 0,this),f!==void 0&&Ko.jsxDEV("footer",{className:"card-footer",children:f},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function la({title:r,description:l,actions:i}){return Ko.jsxDEV("header",{className:"page-header rise",children:[Ko.jsxDEV("div",{children:[Ko.jsxDEV("h1",{className:"page-title",children:r},void 0,!1,void 0,this),l!==void 0&&Ko.jsxDEV("p",{className:"page-description",children:l},void 0,!1,void 0,this)]},void 0,!0,void 0,this),i!==void 0&&Ko.jsxDEV("div",{className:"page-actions",children:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var _f=_(Ke(),1),DI=_(Jc(),1),So=_(te(),1);function ad({open:r,onClose:l,title:i,subtitle:d,actions:f,width:g,children:v}){let h=_f.useRef(l);h.current=l;let m=_f.useRef(null);if(_f.useEffect(()=>{if(!r)return;let S=document.activeElement instanceof HTMLElement?document.activeElement:null;m.current?.focus();let y=(b)=>{if(b.key==="Escape")b.preventDefault(),h.current()};return window.addEventListener("keydown",y),()=>{window.removeEventListener("keydown",y),S?.focus()}},[r]),!r)return null;return DI.createPortal(So.jsxDEV(So.Fragment,{children:[So.jsxDEV("div",{className:"drawer-scrim",onClick:l,role:"presentation"},void 0,!1,void 0,this),So.jsxDEV("div",{ref:m,className:"drawer",role:"dialog","aria-modal":"true",tabIndex:-1,style:g!==void 0?{"--drawer-w":`${g}px`}:void 0,children:[So.jsxDEV("header",{className:"drawer-header",children:[So.jsxDEV("div",{className:"drawer-titles",children:[So.jsxDEV("h2",{className:"drawer-title",children:i},void 0,!1,void 0,this),d!==void 0&&So.jsxDEV("div",{className:"drawer-subtitle",children:d},void 0,!1,void 0,this)]},void 0,!0,void 0,this),f,So.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-icon":"true",onClick:l,"aria-label":"Close",children:So.jsxDEV(Ao,{size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),So.jsxDEV("div",{className:"drawer-body",children:v},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),document.body)}function ko({items:r}){return So.jsxDEV("dl",{className:"kv",style:{margin:0},children:r.map((l)=>So.jsxDEV("div",{className:"kv-item",children:[So.jsxDEV("dt",{className:"kv-key",children:l.label},void 0,!1,void 0,this),So.jsxDEV("dd",{className:"kv-value",style:{margin:0},children:l.value},void 0,!1,void 0,this)]},l.key,!0,void 0,this))},void 0,!1,void 0,this)}var qi=_(Ke(),1);var on=_(te(),1);function od({data:r,title:l=u("ui.json"),initialCollapsed:i=!1}){let[d,f]=qi.useState(i),[g,v]=qi.useState(!1),h=qi.useRef(0),m=JSON.stringify(r,null,2);return qi.useEffect(()=>()=>window.clearTimeout(h.current),[]),on.jsxDEV("div",{className:"stack",style:{gap:6},children:[on.jsxDEV("div",{className:"row",style:{justifyContent:"space-between"},children:[on.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm",onClick:()=>f((y)=>!y),"aria-expanded":!d,children:[d?on.jsxDEV(tn,{size:13},void 0,!1,void 0,this):on.jsxDEV(Mi,{size:13},void 0,!1,void 0,this),l]},void 0,!0,void 0,this),on.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm",onClick:async()=>{try{await navigator.clipboard.writeText(m),v(!0),window.clearTimeout(h.current),h.current=window.setTimeout(()=>v(!1),1500)}catch{}},children:[g?on.jsxDEV(Ai,{size:13},void 0,!1,void 0,this):on.jsxDEV(Di,{size:13},void 0,!1,void 0,this),g?u("common.copied"):u("common.copy")]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),!d&&on.jsxDEV("pre",{className:"code-block",children:on.jsxDEV("code",{children:m},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Oi=_(Ke(),1),EI=_(Jc(),1);var rn=_(te(),1);function NI({open:r,title:l,onClose:i,primaryAction:d,cancelLabel:f=u("common.cancel"),children:g}){let v=Oi.useRef(null),h=Oi.useRef(null),m=Oi.useRef(i);m.current=i,Oi.useEffect(()=>{if(!r)return;let L=document.activeElement instanceof HTMLElement?document.activeElement:null,T=(C)=>{if(C.key==="Escape")C.preventDefault(),m.current()};return window.addEventListener("keydown",T),()=>{window.removeEventListener("keydown",T),L?.focus()}},[r]);let S=d!==void 0,y=d?.disabled??!1;if(Oi.useEffect(()=>{if(!r)return;(S&&!y?v.current:h.current)?.focus()},[r,S,y]),!r)return null;return EI.createPortal(rn.jsxDEV("div",{className:"modal-overlay",onClick:(L)=>{if(L.target===L.currentTarget)i()},role:"presentation",children:rn.jsxDEV("div",{className:"modal",role:"dialog","aria-modal":"true","aria-labelledby":"modal-title",children:[rn.jsxDEV("div",{className:"modal-header",children:[rn.jsxDEV("h2",{id:"modal-title",className:"modal-title",children:l},void 0,!1,void 0,this),rn.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-icon":"true","data-size":"sm",onClick:i,"aria-label":u("common.close"),children:rn.jsxDEV(Ao,{size:15},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),rn.jsxDEV("div",{className:"modal-body",children:g},void 0,!1,void 0,this),rn.jsxDEV("div",{className:"modal-footer",children:[rn.jsxDEV("button",{ref:h,type:"button",className:"btn",onClick:i,children:f},void 0,!1,void 0,this),d&&rn.jsxDEV("button",{ref:v,type:"button",className:"btn","data-variant":"primary",onClick:d.onClick,disabled:d.disabled,children:d.label},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),document.body)}var Kh=_(te(),1);function Fn({value:r,onChange:l,placeholder:i=u("common.filter"),label:d="Filter",width:f}){return Kh.jsxDEV("label",{className:"search",children:[Kh.jsxDEV(Of,{size:14},void 0,!1,void 0,this),Kh.jsxDEV("input",{className:"input",type:"search","aria-label":d,value:r,placeholder:i,onChange:(g)=>l(g.target.value),style:f!==void 0?{width:f}:void 0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var rd=_(Ke(),1),Qh=_(te(),1);function Oa({options:r,value:l,onChange:i,size:d="md","aria-label":f}){let g=rd.useRef(null),[v,h]=rd.useState(null);return rd.useLayoutEffect(()=>{let m=g.current,S=m?.querySelector('[data-active="true"]');if(!m||!S){h(null);return}let y=()=>h({left:S.offsetLeft,width:S.offsetWidth});y();let b=new ResizeObserver(y);return b.observe(m),()=>b.disconnect()},[l,r]),Qh.jsxDEV("div",{ref:g,className:"segmented","data-size":d,role:"radiogroup","aria-label":f,children:[v&&Qh.jsxDEV("span",{className:"segmented-thumb",style:{left:v.left,width:v.width}},void 0,!1,void 0,this),r.map((m)=>Qh.jsxDEV("button",{type:"button",role:"radio","aria-checked":m.value===l,className:"segmented-option","data-active":m.value===l,title:m.title,onClick:()=>i(m.value),children:m.label},m.value,!1,void 0,this))]},void 0,!0,void 0,this)}var ld=_(Ke(),1);var nd=_(Ke(),1);function Wh(){let r=nd.useRef(null),[l,i]=nd.useState(0);return nd.useLayoutEffect(()=>{let d=r.current;if(!d)return;i(d.clientWidth);let f=new ResizeObserver((g)=>{let v=Math.round(g[0]?.contentRect.width??0);i((h)=>h===v?h:v)});return f.observe(d),()=>f.disconnect()},[]),[r,l]}var Hf=_(te(),1);function sd({values:r,color:l="var(--chart-primary)",height:i=28,width:d,area:f=!0}){let[g,v]=Wh(),h=d??v,m=Math.max(0,...r),S=Math.min(0,...r),y=r.length,b="";if(h>0&&y>0){let L=y>1?h/(y-1):0;for(let T=0;T<y;T++){let C=y>1?T*L:h/2,I=m>S?i-2-(r[T]-S)/(m-S)*(i-4):i-2;b+=`${T===0?"M":"L"}${C.toFixed(1)},${I.toFixed(1)}`}}return Hf.jsxDEV("div",{ref:g,className:"sparkline",style:{width:d??"100%",height:i},children:h>0&&y>0&&Hf.jsxDEV("svg",{width:h,height:i,"aria-hidden":"true",children:[f&&Hf.jsxDEV("path",{className:"area",d:`${b}L${h},${i}L0,${i}Z`,fill:l},void 0,!1,void 0,this),Hf.jsxDEV("path",{className:"chart-line",d:b,stroke:l},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var Pr=_(te(),1);function ie({label:r,value:l,hint:i,delta:d,spark:f,sparkColor:g,size:v="md",title:h}){let m=oN(typeof l==="string"||typeof l==="number"?l:null);return Pr.jsxDEV("div",{className:"stat","data-size":v,title:h,children:[Pr.jsxDEV("div",{className:"stat-label",children:r},void 0,!1,void 0,this),Pr.jsxDEV("div",{className:"stat-value","data-flash":m,children:l},void 0,!1,void 0,this),(i!==void 0||d)&&Pr.jsxDEV("div",{className:"stat-foot",children:[d&&Pr.jsxDEV(aN,{...d},void 0,!1,void 0,this),i!==void 0&&Pr.jsxDEV("span",{className:"truncate",children:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this),f&&f.length>1&&Pr.jsxDEV("div",{className:"stat-spark",children:Pr.jsxDEV(sd,{values:f,color:g},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function wa({min:r,children:l}){return Pr.jsxDEV("div",{className:"stat-grid rise",style:r!==void 0?{"--stat-min":`${r}px`}:void 0,children:l},void 0,!1,void 0,this)}function aN({change:r,good:l="up"}){if(r===null||!Number.isFinite(r))return Pr.jsxDEV("span",{className:"delta",children:"new"},void 0,!1,void 0,this);let i=Math.abs(r)<0.0005?0:r,d=i===0?void 0:i>0===(l==="up")?"good":"bad",f=i>0?"+":i<0?"−":"±",g=Math.abs(i)*100;return Pr.jsxDEV("span",{className:"delta","data-tone":d,children:[f,g>=100?g.toFixed(0):g.toFixed(1),"%"]},void 0,!0,void 0,this)}function oN(r){let l=ld.useRef(r),[i,d]=ld.useState(!1);return ld.useEffect(()=>{if(l.current===r)return;let f=l.current!==null;if(l.current=r,!f)return;d(!0);let g=setTimeout(()=>d(!1),900);return()=>clearTimeout(g)},[r]),i}var Ba=_(te(),1);function Je({title:r=u("common.nothing-here-yet"),hint:l}){return Ba.jsxDEV("div",{className:"empty",children:[Ba.jsxDEV(wf,{size:20},void 0,!1,void 0,this),Ba.jsxDEV("div",{className:"empty-title",children:r},void 0,!1,void 0,this),l!==void 0&&Ba.jsxDEV("div",{className:"empty-hint",children:l},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Nl({error:r,onRetry:l}){return Ba.jsxDEV("div",{className:"error-state",role:"alert",children:[Ba.jsxDEV(Ro,{size:15},void 0,!1,void 0,this),Ba.jsxDEV("span",{className:"error-state-message",children:typeof r==="string"?r:r.message},void 0,!1,void 0,this),l&&Ba.jsxDEV("button",{type:"button",className:"btn","data-size":"sm","data-variant":"ghost",onClick:l,children:[Ba.jsxDEV(Nf,{size:13},void 0,!1,void 0,this)," ",u("ui.retry")]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function Ga({width:r="100%",height:l=14,style:i}){return Ba.jsxDEV("div",{className:"skeleton",style:{width:r,height:l,...i}},void 0,!1,void 0,this)}function qt({height:r=220}){return Ba.jsxDEV(Ga,{height:r,style:{borderRadius:8}},void 0,!1,void 0,this)}function pa({rows:r=6}){return Ba.jsxDEV("div",{style:{display:"flex",flexDirection:"column",gap:10,padding:"8px 16px 16px"},children:Array.from({length:r},(l,i)=>Ba.jsxDEV(Ga,{height:16,width:`${92-i*13%30}%`},i,!1,void 0,this))},void 0,!1,void 0,this)}function _e({query:r,skeleton:l,isEmpty:i,empty:d,children:f}){if(r.data===null){if(r.error)return Ba.jsxDEV(Nl,{error:r.error,onRetry:r.refetch},void 0,!1,void 0,this);return Ba.jsxDEV(Ba.Fragment,{children:l},void 0,!1,void 0,this)}return Ba.jsxDEV(Ba.Fragment,{children:[r.error&&Ba.jsxDEV(Nl,{error:r.error,onRetry:r.refetch},void 0,!1,void 0,this),i?.(r.data)?d??Ba.jsxDEV(Je,{},void 0,!1,void 0,this):f(r.data)]},void 0,!0,void 0,this)}var Bi=_(Ke(),1);function BI(){return Br()}function A(r){return r.toLocaleString(BI())}function se(r){return r.toLocaleString("en",{notation:"compact"})}function Pt(r,l){if(r===0)return"$0";let i=l!==void 0?l:r>0&&r<0.01?4:2;return`$${r.toLocaleString(BI(),{minimumFractionDigits:i,maximumFractionDigits:i})}`}function oa(r,l,i){return r===0&&l>0?"N/A":Pt(r,i)}function bb(r){return r.usage.totalTokens>0&&r.usage.cost.total===0&&(r.provider==="xai-oauth"||r.costUnpriced===!0)}function ql(r,l){return oa(r.usage.cost.total,bb(r)?1:0,l)}function Ge(r,l=1){return`${(r*100).toFixed(l)}%`}function Mo(r){let l=r*100;if(l>0&&l<0.005)return"<0.01%";return Ge(r,l>0&&l<0.1?2:1)}function Ct(r,l){if(r===null)return"-";let i=r/1000,d=l!==void 0?l:i<1?2:1;return`${i.toFixed(d)}s`}function yr(r){if(r<60000)return Ct(r);let l=Math.floor(r/60000);if(l<60)return`${l}m ${String(Math.floor(r%60000/1000)).padStart(2,"0")}s`;return`${Math.floor(l/60)}h ${String(l%60).padStart(2,"0")}m`}function Gn(r){if(r===null)return"-";return r.toFixed(1)}var xb=[["second",1000],["minute",60000],["hour",3600000],["day",86400000],["month",2629800000],["year",31557600000]],qI=new Map,id=new Map;function ma(r,l=Date.now()){let i=Br(),d=qI.get(i);if(!d)d=new Intl.RelativeTimeFormat(i,{numeric:"auto"}),qI.set(i,d);let f=r-l,g=0;for(let m=1;m<xb.length;m++)if(Math.abs(f)>=xb[m][1])g=m;let[v,h]=xb[g];return d.format(Math.round(f/h),v)}function Sb(r){let l=Br(),i=`${l}:mdhm`,d=id.get(i);if(!d)d=new Intl.DateTimeFormat(l,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",hourCycle:"h23"}),id.set(i,d);return d.format(r)}function ro(r){let l=Br(),i=id.get(l);if(!i)i=new Intl.DateTimeFormat(l,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit",hourCycle:"h23"}),id.set(l,i);return i.format(r)}var OI=new Map;function Ff(r,l=!1){let i=Br(),d=`${i}:${l?"long":"short"}`,f=OI.get(d);if(!f)f=new Intl.DateTimeFormat(i,l?{weekday:"short",month:"short",day:"numeric",year:"numeric"}:{month:"short",day:"numeric"}),OI.set(d,f);return f.format(r)}function Gf(r){let l=Br(),i=`${l}:time`,d=id.get(i);if(!d)d=new Intl.DateTimeFormat(l,{hour:"2-digit",minute:"2-digit",second:"2-digit",hourCycle:"h23"}),id.set(i,d);return d.format(r)}function zr(r){return r.replace(/^\/+|\/+$/g,"")||u("common.root")}function kb(r){if(r>=1e9)return`${(r/1e9).toFixed(1)} GB`;if(r>=1e6)return`${(r/1e6).toFixed(1)} MB`;if(r>=1000)return`${(r/1000).toFixed(1)} KB`;return`${r} B`}var Vt=_(te(),1);function Ft({columns:r,rows:l,rowKey:i,onRowClick:d,selectedKey:f,initialSort:g,limit:v,dense:h,empty:m,expanded:S}){let[y,b]=Bi.useState(g??null),[L,T]=Bi.useState(v??Number.POSITIVE_INFINITY),C=Bi.useMemo(()=>{let O=y?r.find((W)=>W.key===y.key):void 0;if(!y||!O?.sort)return l;let P=O.sort,Y=y.dir==="asc"?1:-1;return[...l].sort((W,ue)=>{let Z=P(W),ce=P(ue);if(typeof Z==="number"&&typeof ce==="number")return(Z-ce)*Y;return String(Z).localeCompare(String(ce))*Y})},[l,r,y]);if(l.length===0)return Vt.jsxDEV(Vt.Fragment,{children:m??Vt.jsxDEV(Je,{},void 0,!1,void 0,this)},void 0,!1,void 0,this);let I=C.length>L?C.slice(0,L):C,R=(O)=>{if(!O.sort)return;b((P)=>P?.key===O.key?{key:O.key,dir:P.dir==="asc"?"desc":"asc"}:{key:O.key,dir:O.align==="right"?"desc":"asc"})};return Vt.jsxDEV(Vt.Fragment,{children:[Vt.jsxDEV("div",{className:"table-wrap",children:Vt.jsxDEV("table",{className:"table","data-dense":h??!1,children:[Vt.jsxDEV("thead",{children:Vt.jsxDEV("tr",{children:r.map((O)=>{let P=y?.key===O.key?y.dir:void 0;return Vt.jsxDEV("th",{"data-align":O.align??"left","data-sortable":O.sort!==void 0,"data-sorted":P,style:O.width!==void 0?{width:O.width}:void 0,title:O.title,onClick:()=>R(O),"aria-sort":P==="asc"?"ascending":P==="desc"?"descending":void 0,children:[O.header,P&&Vt.jsxDEV("span",{className:"sort-arrow",children:P==="asc"?Vt.jsxDEV(uf,{size:11},void 0,!1,void 0,this):Vt.jsxDEV(rf,{size:11},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},O.key,!0,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),Vt.jsxDEV("tbody",{children:I.map((O)=>{let P=i(O),Y=S?.(O)??null;return Vt.jsxDEV(Bi.Fragment,{children:[Vt.jsxDEV("tr",{"data-clickable":d!==void 0,"data-selected":f===P,onClick:d?()=>d(O):void 0,onKeyDown:d?(W)=>{if(W.key==="Enter"||W.key===" ")W.preventDefault(),d(O)}:void 0,tabIndex:d?0:void 0,children:r.map((W)=>Vt.jsxDEV("td",{"data-align":W.align??"left","data-wrap":W.wrap??!1,children:W.render(O)},W.key,!1,void 0,this))},void 0,!1,void 0,this),Y!==null&&Vt.jsxDEV("tr",{children:Vt.jsxDEV("td",{colSpan:r.length,"data-wrap":"true",style:{padding:0},children:Y},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},P,!0,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),v!==void 0&&C.length>v&&Vt.jsxDEV("div",{className:"table-more",children:[Vt.jsxDEV("span",{className:"micro",children:u("ui.table-shown-of",{shown:A(I.length),total:A(C.length)})},void 0,!1,void 0,this),C.length>L&&Vt.jsxDEV("button",{type:"button",className:"btn","data-size":"sm","data-variant":"ghost",onClick:()=>T((O)=>O+v*4),children:u("common.show-more")},void 0,!1,void 0,this),L>v&&Vt.jsxDEV("button",{type:"button",className:"btn","data-size":"sm","data-variant":"ghost",onClick:()=>T(v),children:u("ui.show-fewer")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function Ma({value:r,max:l,display:i,color:d}){let f=l>0?Math.min(100,r/l*100):0;return Vt.jsxDEV("div",{className:"meter-cell",children:[Vt.jsxDEV("span",{className:"num",children:i},void 0,!1,void 0,this),Vt.jsxDEV("div",{className:"meter",children:Vt.jsxDEV("div",{className:"meter-fill",style:{width:`${f}%`,background:d}},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function co({primary:r,secondary:l,lead:i}){return Vt.jsxDEV("div",{className:"row",style:{gap:10},children:[i,Vt.jsxDEV("div",{className:"stack",style:{gap:0},children:[Vt.jsxDEV("span",{className:"cell-primary truncate",children:r},void 0,!1,void 0,this),l!==void 0&&Vt.jsxDEV("span",{className:"cell-secondary truncate",children:l},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var Vf=_(Ke(),1);function Zh(r){return r instanceof HTMLElement&&(r.isContentEditable||r.tagName==="INPUT"||r.tagName==="TEXTAREA"||r.tagName==="SELECT")}function Jh(){return document.querySelector('[aria-modal="true"]')!==null}var eg=_(te(),1);function zI(){let r=rN();if(Vf.useEffect(()=>{if(!r)return;let l=(i)=>{if(!nN(i))return;i.preventDefault(),PI()};return window.addEventListener("keydown",l),()=>window.removeEventListener("keydown",l)},[r]),!r)return null;return eg.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost",onClick:PI,title:"Close the dashboard (Esc)",children:[eg.jsxDEV(Ao,{size:15},void 0,!1,void 0,this),"Close",eg.jsxDEV("span",{className:"kbd",children:"Esc"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function PI(){iI().catch((r)=>console.error("Closing the dashboard failed",r))}function rN(){let[r,l]=Vf.useState(!1);return Vf.useEffect(()=>{let i=new AbortController;return lI(i.signal).then(l,()=>{}),()=>i.abort()},[]),r}function nN(r){if(r.defaultPrevented||r.altKey||r.metaKey||r.shiftKey)return!1;if(Zh(r.target)||Jh())return!1;if(r.key==="Escape")return!r.ctrlKey;return r.ctrlKey&&r.key.toLowerCase()==="c"&&!window.getSelection()?.toString()}var tg=_(te(),1);function UI(){let r=_n(),l=r==="en"?"zh-CN":"en",i=r==="en"?"中文":"EN";return tg.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-locale-toggle":r,onClick:()=>QT(l),"aria-label":u("shell.switch-language"),title:`${u("shell.language")}: ${i}`,children:[tg.jsxDEV(Cf,{size:15},void 0,!1,void 0,this),tg.jsxDEV("span",{className:"topbar-locale-label",children:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var ag=_(Ke(),1);var ba=_(te(),1);function _I(){let{sync:r,indexingHours:l,connected:i,requestSync:d}=Xh(),f=lN(r.phase==="idle"?15000:null),g,v;if(!i)g=ba.jsxDEV(ba.Fragment,{children:[ba.jsxDEV(Hn,{tone:"warn"},void 0,!1,void 0,this),ba.jsxDEV("span",{children:u("shell.reconnecting")},void 0,!1,void 0,this)]},void 0,!0,void 0,this),v=u("shell.lost-connection");else if(r.phase==="syncing")g=ba.jsxDEV(ba.Fragment,{children:[ba.jsxDEV(Dl,{size:13,className:"spin"},void 0,!1,void 0,this),ba.jsxDEV("span",{children:u("shell.syncing")},void 0,!1,void 0,this),r.total>0&&ba.jsxDEV("span",{className:"live-chip-count",children:[A(r.current),"/",A(r.total)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),v=u("shell.ingesting");else if(r.phase==="error")g=ba.jsxDEV(ba.Fragment,{children:[ba.jsxDEV(Hn,{tone:"bad"},void 0,!1,void 0,this),ba.jsxDEV("span",{children:u("shell.sync-failed")},void 0,!1,void 0,this)]},void 0,!0,void 0,this),v=`${r.error??u("shell.sync-failed")} — click to retry`;else if(l>sN)g=ba.jsxDEV(ba.Fragment,{children:[ba.jsxDEV(Dl,{size:13,className:"spin"},void 0,!1,void 0,this),ba.jsxDEV("span",{children:u("shell.indexing")},void 0,!1,void 0,this),ba.jsxDEV("span",{className:"live-chip-count",children:[A(l),"h left"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),v=u("shell.building-rollups");else g=ba.jsxDEV(ba.Fragment,{children:[ba.jsxDEV(Hn,{tone:"live",pulse:!0},void 0,!1,void 0,this),ba.jsxDEV("span",{children:u("shell.live")},void 0,!1,void 0,this),r.lastSyncedAt!==null&&ba.jsxDEV("span",{className:"live-chip-count",children:iN(f-r.lastSyncedAt)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),v=u("shell.sync-now");return ba.jsxDEV("button",{type:"button",className:"live-chip",onClick:d,disabled:r.phase==="syncing",title:v,children:g},void 0,!1,void 0,this)}var sN=24;function lN(r){let[l,i]=ag.useState(Date.now);return ag.useEffect(()=>{if(r===null)return;i(Date.now());let d=setInterval(()=>i(Date.now()),r);return()=>clearInterval(d)},[r]),l}function iN(r){let l=Math.max(0,Math.round(r/1000));if(l<45)return u("shell.just-now");let i=Math.round(l/60);if(i<60)return`${i}m ago`;let d=Math.round(i/60);return d<24?`${d}h ago`:`${Math.round(d/24)}d ago`}var og=[{headingKey:"nav.usage",items:[{id:"overview",labelKey:"nav.overview",icon:Tf,hotkey:"o"},{id:"models",labelKey:"nav.models",icon:hf,hotkey:"m"},{id:"providers",labelKey:"nav.providers",icon:Al,hotkey:"p"},{id:"costs",labelKey:"nav.costs",icon:pf,hotkey:"c"}]},{headingKey:"nav.activity",items:[{id:"requests",labelKey:"nav.requests",icon:af,hotkey:"r"},{id:"errors",labelKey:"nav.errors",icon:Jr,hotkey:"e"},{id:"traces",labelKey:"nav.traces",icon:en,hotkey:"t"}]},{headingKey:"nav.insights",items:[{id:"tools",labelKey:"nav.tools",icon:Ei,hotkey:"l"},{id:"frustration",labelKey:"nav.frustration",icon:Il,hotkey:"f"},{id:"projects",labelKey:"nav.projects",icon:xf,hotkey:"j"},{id:"tracking",labelKey:"nav.tracking",icon:ff,hotkey:"k"},{id:"gain",labelKey:"nav.gain",icon:Un,hotkey:"g"},{id:"spotlight",labelKey:"nav.spotlight",icon:ws,hotkey:"s"}]}],uN=og.flatMap((r)=>r.items),HI=uN.map((r)=>r.id);var Lb=_(Ke(),1),GI="zeta-stats-theme",VI="(prefers-color-scheme: dark)";function dN(){if(typeof localStorage>"u")return"system";let r=localStorage.getItem(GI);return r==="light"||r==="dark"||r==="system"?r:"system"}function jI(){if(typeof window>"u")return"dark";return window.matchMedia(VI).matches?"dark":"light"}var Pi=dN(),rg=Pi==="system"?jI():Pi,wb=new Set;function $I(){for(let r of wb)r()}function Cb(){if(rg=Pi==="system"?jI():Pi,typeof document<"u")document.documentElement.dataset.theme=rg,document.documentElement.style.colorScheme=rg}if(typeof window<"u")Cb(),window.matchMedia(VI).addEventListener("change",()=>{if(Pi==="system")Cb(),$I()});function cN(r){if(Pi=r,typeof localStorage<"u")localStorage.setItem(GI,r);Cb(),$I()}function FI(r){return wb.add(r),()=>wb.delete(r)}function XI(){let r=Lb.useSyncExternalStore(FI,()=>Pi,()=>"system"),l=Lb.useSyncExternalStore(FI,()=>rg,()=>"dark");return{preference:r,resolved:l,setPreference:cN}}var Tb=_(te(),1),fN={system:"light",light:"dark",dark:"system"},pN={system:"shell.system-theme",light:"shell.light-theme",dark:"shell.dark-theme"},mN={system:Af,light:Bf,dark:Mf};function YI(){_n();let{preference:r,setPreference:l}=XI(),i=mN[r],d=u(pN[r]);return Tb.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-icon":"true",onClick:()=>l(fN[r]),"aria-label":`${d} (click to switch)`,title:`${d} — click to switch`,children:Tb.jsxDEV(i,{size:15},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var st=_(te(),1);function KI({section:r,onSectionChange:l,range:i,onRangeChange:d,children:f}){_n();let g=ed.map((L,T)=>({value:L,label:u(aa(L).labelKey),title:`${u(aa(L).windowKey)} (${T+1})`})),[v,h]=ud.useState(!1),m=hN(),{sync:S}=Xh();gN(l,d);let y=(L)=>{l(L),h(!1),window.scrollTo({top:0})},b=S.phase==="syncing"?S.total>0?S.current/S.total:null:void 0;return st.jsxDEV(st.Fragment,{children:[st.jsxDEV("div",{className:"shell-ambient"},void 0,!1,void 0,this),st.jsxDEV("header",{className:"topbar","data-scrolled":m,children:[st.jsxDEV("button",{type:"button",className:"btn topbar-menu","data-variant":"ghost","data-icon":"true",onClick:()=>h(!0),"aria-label":u("nav.open-navigation"),children:st.jsxDEV(Rf,{size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this),st.jsxDEV("div",{className:"topbar-brand",children:[st.jsxDEV("svg",{className:"topbar-mark",viewBox:"0 0 64 64",width:"22",height:"22","aria-hidden":"true",children:[st.jsxDEV("defs",{children:st.jsxDEV("linearGradient",{id:"zeta-mark-grad",x1:"0",y1:"0",x2:"1",y2:"1",children:[st.jsxDEV("stop",{offset:"0",stopColor:"oklch(0.7 0.24 340)"},void 0,!1,void 0,this),st.jsxDEV("stop",{offset:".5",stopColor:"oklch(0.62 0.21 295)"},void 0,!1,void 0,this),st.jsxDEV("stop",{offset:"1",stopColor:"oklch(0.81 0.14 200)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),st.jsxDEV("text",{x:"32",y:"47",textAnchor:"middle",fontSize:"52",fontWeight:"700",fontFamily:"Georgia, 'Times New Roman', serif",fill:"url(#zeta-mark-grad)",children:"ζ"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),st.jsxDEV("span",{children:"zeta"},void 0,!1,void 0,this),st.jsxDEV("span",{className:"topbar-slash",children:"/"},void 0,!1,void 0,this),st.jsxDEV("span",{className:"topbar-title",children:u("nav.breadcrumb-stats")},void 0,!1,void 0,this)]},void 0,!0,void 0,this),st.jsxDEV("div",{className:"topbar-spacer"},void 0,!1,void 0,this),st.jsxDEV("div",{className:"topbar-actions",children:[st.jsxDEV("span",{className:"topbar-hide-narrow",children:st.jsxDEV(_I,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),st.jsxDEV(Oa,{options:g,value:i,onChange:d,"aria-label":u("common.time-range")},void 0,!1,void 0,this),st.jsxDEV(UI,{},void 0,!1,void 0,this),st.jsxDEV(YI,{},void 0,!1,void 0,this),st.jsxDEV(zI,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this),b!==void 0&&st.jsxDEV("div",{className:"topbar-progress",children:st.jsxDEV("div",{className:"topbar-progress-fill","data-indeterminate":b===null,style:{width:`${(b??0)*100}%`}},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),v&&st.jsxDEV("div",{className:"drawer-scrim",onClick:()=>h(!1),role:"presentation"},void 0,!1,void 0,this),st.jsxDEV("nav",{className:"sidebar","data-open":v,"aria-label":u("nav.pages"),children:[og.map((L)=>st.jsxDEV("div",{className:"nav-group",children:[st.jsxDEV("div",{className:"nav-heading",children:u(L.headingKey)},void 0,!1,void 0,this),L.items.map((T)=>st.jsxDEV("button",{type:"button",className:"nav-row","data-active":T.id===r,"aria-current":T.id===r?"page":void 0,onClick:()=>y(T.id),children:[st.jsxDEV(T.icon,{size:15},void 0,!1,void 0,this),st.jsxDEV("span",{className:"nav-row-label",children:u(T.labelKey)},void 0,!1,void 0,this),st.jsxDEV("kbd",{children:["G ",T.hotkey.toUpperCase()]},void 0,!0,void 0,this)]},T.id,!0,void 0,this))]},L.headingKey,!0,void 0,this)),st.jsxDEV("div",{className:"sidebar-foot micro",children:[st.jsxDEV("span",{children:[st.jsxDEV("span",{className:"kbd",children:"1"},void 0,!1,void 0,this),"–",st.jsxDEV("span",{className:"kbd",children:"6"},void 0,!1,void 0,this)," ",u("shell.range-suffix")]},void 0,!0,void 0,this),st.jsxDEV("span",{children:[st.jsxDEV("span",{className:"kbd",children:"G"},void 0,!1,void 0,this)," ",u("shell.jump-hint")]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),st.jsxDEV("main",{className:"shell-panel",children:st.jsxDEV("div",{className:"shell-content",children:f},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function hN(){let[r,l]=ud.useState(!1);return ud.useEffect(()=>{let i=()=>l(window.scrollY>4);return i(),window.addEventListener("scroll",i,{passive:!0}),()=>window.removeEventListener("scroll",i)},[]),r}function gN(r,l){ud.useEffect(()=>{let i=0,d=(f)=>{if(f.metaKey||f.ctrlKey||f.altKey||f.defaultPrevented)return;if(Zh(f.target)||Jh())return;let g=f.key.toLowerCase();if(i&&Date.now()-i<1200){i=0;let h=og.flatMap((m)=>m.items).find((m)=>m.hotkey===g);if(h)f.preventDefault(),r(h.id),window.scrollTo({top:0});return}if(g==="g"){i=Date.now();return}let v=Number(g)-1;if(Number.isInteger(v)&&v>=0&&v<ed.length)f.preventDefault(),l(ed[v])};return window.addEventListener("keydown",d),()=>window.removeEventListener("keydown",d)},[r,l])}var Cs=_(Ke(),1);function jf(r){let[l,i]=r.replace(/^#\/?/,"").split("?"),d=HI.includes(l)?l:"overview",f=new URLSearchParams(i??""),g=f.get("range"),v=ed.includes(g??"")?g:"24h";return{section:d,range:v,session:f.get("s")}}function ng({section:r,range:l,session:i}){let d=i?`&s=${encodeURIComponent(i)}`:"";return`#/${r}?range=${l}${d}`}function QI(){let[r,l]=Cs.useState(()=>jf(window.location.hash));Cs.useEffect(()=>{let v=()=>l(jf(window.location.hash));window.addEventListener("hashchange",v),window.addEventListener("popstate",v);let h=ng(jf(window.location.hash));if(window.location.hash!==h)history.replaceState(null,"",h);return()=>{window.removeEventListener("hashchange",v),window.removeEventListener("popstate",v)}},[]);let i=Cs.useCallback((v)=>{l(v);let h=ng(v);if(window.location.hash!==h)history.pushState(null,"",h)},[]),d=Cs.useCallback((v)=>i({...r,section:v,session:v==="traces"?r.session:null}),[r,i]),f=Cs.useCallback((v)=>i({...r,range:v}),[r,i]),g=Cs.useCallback((v)=>i({...r,session:v}),[r,i]);return{...r,setSection:d,setRange:f,setSession:g}}var $f=_(Ke(),1);var Vn=_(te(),1);function Ts({items:r,max:l,onSelect:i}){let d=l??Math.max(0,...r.map((f)=>f.value));return Vn.jsxDEV("div",{className:"bar-list",children:r.map((f)=>{let g=d>0?Math.max(0.5,f.value/d*100):0,v=Vn.jsxDEV(Vn.Fragment,{children:[Vn.jsxDEV("span",{className:"bar-list-fill",style:{width:`${g}%`,background:f.color??"var(--chart-primary)"}},void 0,!1,void 0,this),Vn.jsxDEV("span",{className:"bar-list-label",children:f.label},void 0,!1,void 0,this),Vn.jsxDEV("span",{className:"bar-list-value",children:f.display??A(f.value)},void 0,!1,void 0,this)]},void 0,!0,void 0,this);return i?Vn.jsxDEV("button",{type:"button",className:"bar-list-row",onClick:()=>i(f.key),children:v},f.key,!1,void 0,this):Vn.jsxDEV("div",{className:"bar-list-row",children:v},f.key,!1,void 0,this)})},void 0,!1,void 0,this)}var Rs=_(Ke(),1);var ft=_(te(),1),Is=10,yN=24,vN=68,xN=4;function vr({slots:r,tickLabel:l,tooltipTitle:i,series:d,kind:f="bars",stacked:g=!0,height:v=220,format:h=se,formatRight:m,formatTooltip:S,yMax:y,yMaxRight:b,hidden:L,showTotal:T,references:C,markers:I,onSelect:R,emptyLabel:O="No data in this range",tooltipExtra:P}){let[Y,W]=Wh(),[ue,Z]=Rs.useState(null),ce=Rs.useId().replace(/:/g,""),ee=Rs.useMemo(()=>d.filter((j)=>!L?.has(j.key)),[d,L]),G=Rs.useMemo(()=>{let j=ee.filter((Bt)=>Bt.axis!=="right"),We=ee.filter((Bt)=>Bt.axis==="right"),H=(Bt)=>{let ga=Bt.kind??f;return g&&(ga==="bars"||ga==="area")},we=new Map,he=Array.from({length:r},()=>0),it=Array.from({length:r},()=>0),Pe=0,ke=0;for(let Bt of j)if(H(Bt)){let ga=Array.from({length:r},()=>0);for(let ho=0;ho<r;ho++){let Pl=Bt.values[ho]??0;if(Pl<0)ga[ho]=it[ho],it[ho]+=Pl;else ga[ho]=he[ho],he[ho]+=Pl}we.set(Bt.key,ga)}else for(let ga=0;ga<r;ga++)Pe=Math.max(Pe,Bt.values[ga]??0),ke=Math.min(ke,Bt.values[ga]??0);for(let Bt=0;Bt<r;Bt++)Pe=Math.max(Pe,he[Bt]),ke=Math.min(ke,it[Bt]);let Qt=0,qe=0;for(let Bt of We)for(let ga=0;ga<r;ga++)Qt=Math.max(Qt,Bt.values[ga]??0),qe=Math.min(qe,Bt.values[ga]??0);for(let Bt of C??[])if(Bt.axis==="right")Qt=Math.max(Qt,Bt.value);else Pe=Math.max(Pe,Bt.value);let Ea=sg(y??Pe,ke),Wt=We.length>0?sg(b??Qt,qe):null,$i=ee.every((Bt)=>Bt.values.every((ga)=>!ga));return{left:j,right:We,bases:we,stackable:H,leftScale:Ea,rightScale:Wt,empty:$i}},[ee,r,g,f,y,b,C]),V=G.leftScale.ticks.map((j)=>h(j)),Re=G.rightScale?.ticks.map((j)=>(m??h)(j))??[],pe=Math.max(28,WI(V)+12),Ne=G.rightScale?Math.max(28,WI(Re)+12):8,Te=Math.max(0,W-pe-Ne),oe=v-Is-yN,Se=r>0?Te/r:0,Ee=(j,We)=>Is+oe-(We-j.min)/(j.max-j.min)*oe,Qe=(j)=>Ee(G.leftScale,j),yt=(j)=>G.rightScale?Ee(G.rightScale,j):Qe(j),Q=(j)=>pe+(j+0.5)*Se,Fe=ee.filter((j)=>(j.kind??f)==="bars"),It=Fe.filter((j)=>!G.stackable(j)||j.axis==="right"),St=Math.max(1,Math.min(56,Se*(Se>6?0.72:0.9))),ge=Math.max(1,Math.ceil(r/Math.max(1,Math.floor(Te/vN)))),Ye=(j)=>{let We=j.currentTarget.getBoundingClientRect(),H=Math.floor((j.clientX-We.left)/(We.width/r));Z(H>=0&&H<r?H:null)},He=ue===null?[]:ee.filter((j)=>j.tooltip!==!1).map((j)=>({s:j,v:j.values[ue]})).filter((j)=>j.v!==null&&j.v!==void 0&&(j.v!==0||ee.length===1)).sort((j,We)=>ee.length>1?We.v-j.v:0),ua=He.filter((j)=>j.s.axis!=="right").reduce((j,We)=>j+We.v,0),da=T??(g&&G.left.length>1);return ft.jsxDEV("div",{className:"chart",ref:Y,"data-hovering":ue!==null,style:{height:v},children:[W>0&&ft.jsxDEV("svg",{width:W,height:v,role:"img",children:[ft.jsxDEV("defs",{children:ee.filter((j)=>j.pattern==="hatch").map((j)=>ft.jsxDEV("pattern",{id:`${ce}-${Ib(j.key)}`,width:"5",height:"5",patternUnits:"userSpaceOnUse",patternTransform:"rotate(45)",children:[ft.jsxDEV("rect",{width:"5",height:"5",fill:j.color,fillOpacity:"0.14"},void 0,!1,void 0,this),ft.jsxDEV("rect",{width:"1.6",height:"5",fill:j.color},void 0,!1,void 0,this)]},j.key,!0,void 0,this))},void 0,!1,void 0,this),ft.jsxDEV("g",{className:"chart-grid",children:G.leftScale.ticks.map((j)=>ft.jsxDEV("line",{x1:pe,x2:pe+Te,y1:Qe(j),y2:Qe(j)},j,!1,void 0,this))},void 0,!1,void 0,this),ft.jsxDEV("g",{className:"chart-axis",children:[G.leftScale.ticks.map((j,We)=>ft.jsxDEV("text",{x:pe-8,y:Qe(j),dy:"0.32em",textAnchor:"end",children:V[We]},j,!1,void 0,this)),G.rightScale?.ticks.map((j,We)=>ft.jsxDEV("text",{x:pe+Te+8,y:yt(j),dy:"0.32em",textAnchor:"start",children:Re[We]},j,!1,void 0,this)),Array.from({length:r},(j,We)=>We%ge===0?ft.jsxDEV("text",{x:Q(We),y:v-6,textAnchor:"middle",children:l(We)},We,!1,void 0,this):null)]},void 0,!0,void 0,this),ue!==null&&ft.jsxDEV("rect",{className:"chart-cursor",x:pe+ue*Se,y:Is,width:Se,height:oe},void 0,!1,void 0,this),ee.filter((j)=>(j.kind??f)==="area").map((j)=>{let We=j.axis==="right"?yt:Qe,H=G.bases.get(j.key),we=(ke)=>(H?.[ke]??0)+(j.values[ke]??0),he=ZI(r,Q,(ke)=>We(we(ke))),it=Array.from({length:r},(ke,Qt)=>r-1-Qt).map((ke)=>`L${Q(ke).toFixed(1)},${We(H?.[ke]??0).toFixed(1)}`).join(""),Pe=j.pattern==="hatch"?`url(#${ce}-${Ib(j.key)})`:j.color;return ft.jsxDEV("g",{children:[ft.jsxDEV("path",{d:`${he}${it}Z`,fill:Pe,fillOpacity:j.pattern?1:0.2},void 0,!1,void 0,this),ft.jsxDEV("path",{className:"chart-line",d:he,stroke:j.color,strokeDasharray:j.dashed?"4 3":void 0},void 0,!1,void 0,this)]},j.key,!0,void 0,this)}),Fe.map((j)=>{let We=j.axis==="right"?yt:Qe,H=G.bases.get(j.key),we=It.indexOf(j),he=we>=0?St/It.length:St,it=j.pattern==="hatch"?`url(#${ce}-${Ib(j.key)})`:j.color;return ft.jsxDEV("g",{children:j.values.map((Pe,ke)=>{if(!Pe)return null;let Qt=we>=0?0:H?.[ke]??0,qe=We(Qt),Ea=We(Qt+Pe),Wt=Q(ke)-St/2+(we>=0?we*he:0);return ft.jsxDEV("rect",{className:"chart-bar","data-hover":ue===ke,x:Wt,y:Math.min(qe,Ea),width:Math.max(1,he-(we>=0&&It.length>1?1:0)),height:Math.max(Pe>0?1:0,Math.abs(qe-Ea)),fill:it},ke,!1,void 0,this)})},j.key,!1,void 0,this)}),ee.filter((j)=>(j.kind??f)==="line").map((j)=>{let We=j.axis==="right"?yt:Qe,H=(we)=>{let he=j.values[we];return he===null||he===void 0?null:We(he)};return ft.jsxDEV("g",{children:[ft.jsxDEV("path",{className:"chart-line",d:ZI(r,Q,H),stroke:j.color,strokeDasharray:j.dashed?"4 3":void 0},void 0,!1,void 0,this),j.values.map((we,he)=>{let it=H(he);if(it===null||he>0&&H(he-1)!==null||he<r-1&&H(he+1)!==null)return null;return ft.jsxDEV("circle",{cx:Q(he),cy:it,r:2.5,fill:j.color},he,!1,void 0,this)})]},j.key,!0,void 0,this)}),ee.filter((j)=>(j.kind??f)==="dots").map((j)=>{let We=j.axis==="right"?yt:Qe;return ft.jsxDEV("g",{className:"chart-dots",fill:j.color,children:j.values.map((H,we)=>H===null||H===void 0?null:ft.jsxDEV("circle",{cx:Q(we),cy:We(H),r:ue===we?3.5:2.5},we,!1,void 0,this))},j.key,!1,void 0,this)}),I?.map((j)=>j.index>=0&&j.index<r?ft.jsxDEV("g",{className:"chart-marker",children:[ft.jsxDEV("line",{x1:Q(j.index),x2:Q(j.index),y1:Is,y2:Is+oe},void 0,!1,void 0,this),j.label&&ft.jsxDEV("text",{x:Q(j.index)+(Q(j.index)>pe+Te/2?-5:5),y:Is+9,textAnchor:Q(j.index)>pe+Te/2?"end":"start",children:j.label},void 0,!1,void 0,this)]},`marker:${j.index}`,!0,void 0,this):null),C?.map((j)=>{let We=j.axis==="right"?yt(j.value):Qe(j.value);return ft.jsxDEV("g",{className:"chart-axis",children:[ft.jsxDEV("line",{x1:pe,x2:pe+Te,y1:We,y2:We,stroke:"var(--line-4)",strokeDasharray:"3 3"},void 0,!1,void 0,this),j.label&&ft.jsxDEV("text",{x:pe+Te-4,y:We-5,textAnchor:"end",children:j.label},void 0,!1,void 0,this)]},`${j.axis??"left"}:${j.value}`,!0,void 0,this)}),ft.jsxDEV("line",{className:"chart-baseline",x1:pe,x2:pe+Te,y1:Qe(0),y2:Qe(0)},void 0,!1,void 0,this),ft.jsxDEV("rect",{x:pe,y:Is,width:Te,height:oe,fill:"transparent",onPointerMove:Ye,onPointerLeave:()=>Z(null),onClick:R&&ue!==null?()=>R(ue):void 0,style:{cursor:R?"pointer":"crosshair"}},void 0,!1,void 0,this)]},void 0,!0,void 0,this),G.empty&&ft.jsxDEV("div",{className:"chart-empty",children:O},void 0,!1,void 0,this),ue!==null&&!G.empty&&ft.jsxDEV("div",{className:"chart-tooltip",style:Q(ue)>W/2?{right:W-Q(ue)+Math.min(Se/2,24)+8,top:Is}:{left:Q(ue)+Math.min(Se/2,24)+8,top:Is},children:[ft.jsxDEV("div",{className:"chart-tooltip-title",children:(i??l)(ue)},void 0,!1,void 0,this),He.map(({s:j,v:We})=>ft.jsxDEV("div",{className:"chart-tooltip-row",children:[ft.jsxDEV("span",{className:"swatch",style:{background:j.color}},void 0,!1,void 0,this),ft.jsxDEV("span",{className:"chart-tooltip-label",children:j.label},void 0,!1,void 0,this),ft.jsxDEV("span",{className:"chart-tooltip-value",children:j.axis==="right"?(m??h)(We):(S??h)(We)},void 0,!1,void 0,this)]},j.key,!0,void 0,this)),da&&He.length>1&&ft.jsxDEV("div",{className:"chart-tooltip-row chart-tooltip-total",children:[ft.jsxDEV("span",{className:"chart-tooltip-label",children:"Total"},void 0,!1,void 0,this),ft.jsxDEV("span",{className:"chart-tooltip-value",children:(S??h)(ua)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),P&&ft.jsxDEV(Rs.Fragment,{children:P(ue)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function sg(r,l=0){let i=Math.max(0,r),d=Math.min(0,l);if(!(i-d>0))return{min:0,max:1,ticks:[0]};let f=(i-d)/xN,g=10**Math.floor(Math.log10(f)),v=[1,2,2.5,5,10].map((y)=>y*g).find((y)=>y>=f)??10*g,h=Math.ceil(i/v)*v,m=Math.floor(d/v)*v,S=[];for(let y=m;y<=h+v/2;y+=v)S.push(Number(y.toPrecision(12)));return{min:m,max:h>m?h:m+v,ticks:S}}function WI(r){return r.reduce((l,i)=>Math.max(l,i.length*6.3),0)}function ZI(r,l,i){let d="",f=!1;for(let g=0;g<r;g++){let v=i(g);if(v===null){f=!1;continue}d+=`${f?"L":"M"}${l(g).toFixed(1)},${v.toFixed(1)}`,f=!0}return d}function Ib(r){return r.replace(/[^a-zA-Z0-9_-]/g,"_")}var Va=_(te(),1);function lg({rows:r,guides:l,band:i,format:d,formatTick:f}){let g=0,v=0,h=(T)=>{if(T===null)return;g=Math.max(g,T),v=Math.min(v,T)};for(let T of r)for(let C of T.marks)h(C.value),h(C.lo),h(C.hi);for(let T of l??[])h(T.value);if(i)h(i.lo),h(i.hi);let m=sg(g,v),S=m.max-m.min,y=(T)=>(Math.min(m.max,Math.max(m.min,T))-m.min)/S*100,b=(T)=>`${y(T)}%`,L=Va.jsxDEV(Va.Fragment,{children:[i&&Va.jsxDEV("span",{className:"dw-band",style:{left:b(i.lo),width:`${y(i.hi)-y(i.lo)}%`,"--band":i.color}},void 0,!1,void 0,this),l?.map((T)=>Va.jsxDEV("span",{className:"dw-guide",style:{left:b(T.value),"--guide":T.color}},T.key,!1,void 0,this))]},void 0,!0,void 0,this);return Va.jsxDEV("div",{className:"dw",children:[r.map((T)=>{let C=T.marks[0],I=C!==void 0&&C.lo!==null&&C.hi!==null?`${d(C.lo)}–${d(C.hi)}`:"";return Va.jsxDEV("div",{className:"dw-row",children:[Va.jsxDEV("div",{className:"dw-label",children:T.label},void 0,!1,void 0,this),Va.jsxDEV("div",{className:"dw-track",children:[L,T.marks.map((R)=>Va.jsxDEV("span",{className:"dw-mark","data-shape":R.shape??"dot",style:{"--dot":R.color,"--dy":`${R.offset??0}px`},children:[R.lo!==null&&R.hi!==null&&Va.jsxDEV("span",{className:"dw-whisker",style:{left:b(R.lo),width:`${y(R.hi)-y(R.lo)}%`}},void 0,!1,void 0,this),R.value!==null&&Va.jsxDEV("span",{className:"dw-dot",style:{left:b(R.value)},title:R.title},void 0,!1,void 0,this)]},R.key,!0,void 0,this))]},void 0,!0,void 0,this),Va.jsxDEV("div",{className:"dw-value",children:[Va.jsxDEV("span",{className:"num",children:T.figure??(C?.value===null||C===void 0?"–":d(C.value))},void 0,!1,void 0,this),Va.jsxDEV("span",{className:"dw-detail",children:T.detail??I},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},T.key,!0,void 0,this)}),Va.jsxDEV("div",{className:"dw-row dw-axis","aria-hidden":"true",children:[Va.jsxDEV("div",{},void 0,!1,void 0,this),Va.jsxDEV("div",{className:"dw-track",children:m.ticks.map((T)=>Va.jsxDEV("span",{className:"dw-tick",style:{left:b(T)},children:(f??d)(T)},T,!1,void 0,this))},void 0,!1,void 0,this),Va.jsxDEV("div",{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var ig=_(Ke(),1),jn=_(te(),1);function ia({items:r,hidden:l,onToggle:i}){return jn.jsxDEV("div",{className:"legend",children:r.map((d)=>{let f=jn.jsxDEV(jn.Fragment,{children:[jn.jsxDEV("span",{className:"swatch",style:{background:d.color}},void 0,!1,void 0,this),jn.jsxDEV("span",{className:"truncate",children:d.label},void 0,!1,void 0,this),d.value&&jn.jsxDEV("span",{className:"legend-value",children:d.value},void 0,!1,void 0,this)]},void 0,!0,void 0,this);return i?jn.jsxDEV("button",{type:"button",className:"legend-item","data-off":l?.has(d.key)??!1,onClick:()=>i(d.key),title:d.label,children:f},d.key,!1,void 0,this):jn.jsxDEV("span",{className:"legend-item",title:d.label,children:f},d.key,!1,void 0,this)})},void 0,!1,void 0,this)}function Ur(){let[r,l]=ig.useState(()=>new Set),i=ig.useCallback((d)=>{l((f)=>{let g=new Set(f);if(!g.delete(d))g.add(d);return g})},[]);return[r,i]}var Rb=_(te(),1);function $n({segments:r,height:l=8}){let i=r.reduce((d,f)=>d+Math.max(0,f.value),0);return Rb.jsxDEV("div",{className:"share-bar",style:{height:l},role:"img",children:i>0&&r.filter((d)=>d.value>0).map((d)=>Rb.jsxDEV("div",{className:"share-bar-seg",style:{flexGrow:d.value/i,background:d.color},title:`${d.label}: ${(d.value/i*100).toFixed(1)}%`},d.key,!1,void 0,this))},void 0,!1,void 0,this)}var e2=_(te(),1),JI=86400000;function _o({buckets:r,bucketMs:l,onSelectBucket:i,...d}){return e2.jsxDEV(vr,{...d,slots:r.length,tickLabel:(f)=>Vh(r[f],r.length>1&&r[r.length-1]-r[0]>JI?JI:l),tooltipTitle:(f)=>td(r[f],l),onSelect:i?(f)=>i(r[f]):void 0},void 0,!1,void 0,this)}var nn=_(te(),1);function t2({steps:r,format:l}){let i=0,d=r.map((m)=>{let S=i;if(m.kind==="total")return i=m.value,{...m,from:0,to:m.value,before:S};return i+=m.value,{...m,from:S,to:i,before:S}}),f=0,g=0;for(let m of d)f=Math.min(f,m.from,m.to),g=Math.max(g,m.from,m.to);let v=g-f||1,h=(m)=>(m-f)/v*100;return nn.jsxDEV("ol",{className:"waterfall",children:d.map((m,S)=>{let y=h(Math.min(m.from,m.to)),b=Math.abs(h(m.to)-h(m.from)),L=m.kind==="delta"?m.value<0?"−":"+":m.value<0?"−":"";return nn.jsxDEV("li",{className:"waterfall-row","data-kind":m.kind,title:m.title,children:[nn.jsxDEV("span",{className:"waterfall-label",children:m.label},void 0,!1,void 0,this),nn.jsxDEV("span",{className:"waterfall-track",children:[f<0&&nn.jsxDEV("span",{className:"waterfall-zero",style:{left:`${h(0)}%`}},void 0,!1,void 0,this),S>0&&nn.jsxDEV("span",{className:"waterfall-link",style:{left:`${h(m.before)}%`}},void 0,!1,void 0,this),nn.jsxDEV("span",{className:"waterfall-bar","data-empty":m.value===0,style:{left:`${y}%`,width:`${b}%`,"--bar":m.color}},void 0,!1,void 0,this)]},void 0,!0,void 0,this),nn.jsxDEV("span",{className:"waterfall-value",children:[nn.jsxDEV("span",{className:"num",children:[L,l(Math.abs(m.value))]},void 0,!0,void 0,this),m.note!==void 0&&nn.jsxDEV("span",{className:"waterfall-note",children:m.note},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},m.key,!0,void 0,this)})},void 0,!1,void 0,this)}var Pa=["#5ad8e6","#ed4abf","#9d7bff","#f5b54a","#4ade80","#5b8cff","#ff7a59","#2dd4bf","#c3e94f","#fb7185"],fo="#6c6c74";function ja(r,l){return`${r}::${l}`}function ug(r){return zi(r.map((l)=>({key:ja(l.model,l.provider),weight:l.totalRequests})))}function zi(r,l=Pa){let i=[...r].sort((d,f)=>f.weight-d.weight||d.key.localeCompare(f.key));return new Map(i.map((d,f)=>[d.key,l[f%l.length]]))}function dg(r){return r instanceof Error?r:Error(String(r))}var za=_(Ke(),1);var bN={entries:new Map,limit:128},SN={entries:new Map,limit:4},kN={entries:new Map,limit:16},Ui=new Map;function a2(r){if(r.startsWith('["trace",'))return SN;if(r.startsWith('["request",'))return kN;return bN}function dd(r){return a2(r).entries.get(r)}function o2(r){return Ui.get(r)}function LN(r,l){let{entries:i,limit:d}=a2(r);if(i.delete(r),i.set(r,l),i.size>d){let f=i.keys().next().value;if(f!==void 0)i.delete(f)}}function r2(r,l,i){let d=Ui.get(r);if(d)return d.waiters++,d;let f=new AbortController,g=dd(r)?.data,v={promise:i({signal:f.signal},g).then((h)=>(LN(r,{data:h,updatedAt:Date.now(),version:l}),h)).finally(()=>{if(Ui.get(r)===v)Ui.delete(r)}),controller:f,waiters:1};return Ui.set(r,v),v}function Ab(r,l){if(l.waiters--,l.waiters>0)return;if(Ui.get(r)===l)Ui.delete(r);l.controller.abort()}var wN=1500;function zt(r,l,i){let d=JSON.stringify(r),f=i?.enabled??!0,g=i?.pollMs,v=MI(f),[,h]=za.useReducer((G)=>G+1,0),[m,S]=za.useReducer((G)=>G+1,0),[y,b]=za.useState(null),[L,T]=za.useState(!1),C=za.useRef(l);C.current=l;let I=za.useRef(d);I.current=d;let R=za.useRef(null),O=za.useRef(0),P=za.useRef(null),Y=za.useCallback((G)=>{O.current=Date.now();let V=P.current;if(V?.key===G&&o2(G)===V.request)return;let Re=dd(G)?.data;T(!0);let pe=r2(G,vb(),C.current);if(P.current={key:G,request:pe},V)Ab(V.key,V.request);let Ne=!1;pe.promise.then((Te)=>{if(Ne=!0,I.current!==G)return;if(Te===Re){b((oe)=>oe===null?oe:null);return}za.startTransition(()=>{b(null),h()})}).catch((Te)=>{if(I.current!==G||pe.controller.signal.aborted)return;b({key:G,error:dg(Te)})}).finally(()=>{if(P.current?.request!==pe)return;if(P.current=null,I.current!==G)return;if(T(!1),Ne&&(dd(G)?.version??-1)<vb())S()})},[]),W=za.useCallback(()=>{let G=P.current;if(P.current=null,G)Ab(G.key,G.request)},[]);za.useEffect(()=>W,[W]),za.useEffect(()=>{if(!f||P.current&&P.current.key!==d)W();if(!f)return;let G=dd(d);if(G&&G.version>=v)return;let V=G?O.current+wN-Date.now():0;if(V<=0){Y(d);return}let Re=setTimeout(()=>Y(d),V);return()=>clearTimeout(Re)},[d,f,v,m,Y,W]),za.useEffect(()=>{if(!f||!g)return;let G=setInterval(()=>{if(!document.hidden)Y(I.current)},g);return()=>clearInterval(G)},[f,g,Y]);let ue=za.useCallback(()=>Y(I.current),[Y]),Z=dd(d);if(Z)R.current={key:d,data:Z.data,updatedAt:Z.updatedAt};let ce=R.current,ee=y?.key===d?y.error:null;return{data:ce?.data??null,error:ee,loading:!ce&&!ee,stale:!!ce&&ce.key!==d,refreshing:L,updatedAt:ce?.updatedAt??null,refetch:ue}}function cg(r,l){let i=0,d=r.length-1,f=-1;while(i<=d){let g=i+d>>1;if(r[g]<=l)f=g,i=g+1;else d=g-1}return f}function ha(r,l,i){let d=Array.from({length:l.length},()=>0);for(let f of r){let g=cg(l,f.timestamp);if(g>=0)d[g]+=i(f)}return d}function Xn(r,l){let i=new Map;for(let m of r){let S=cg(l.buckets,m.timestamp);if(S<0)continue;let y=l.key(m),b=i.get(y);if(!b)b=Array.from({length:l.buckets.length},()=>0),i.set(y,b);b[S]+=l.value(m)}let d=[...i.entries()].map(([m,S])=>({key:m,values:S,total:S.reduce((y,b)=>y+b,0)})).filter((m)=>m.total!==0).sort((m,S)=>S.total-m.total||m.key.localeCompare(S.key)),f=l.limit??Number.POSITIVE_INFINITY,g=d.slice(0,f),v=d.slice(f),h=g.map((m,S)=>({key:m.key,label:l.label?l.label(m.key):m.key,color:l.colors?.get(m.key)??Pa[S%Pa.length],values:m.values}));if(v.length>0){let m=Array.from({length:l.buckets.length},()=>0);for(let S of v)for(let y=0;y<m.length;y++)m[y]+=S.values[y];h.push({key:"__other__",label:u("common.other-n",{count:v.length}),color:fo,values:m})}return h}var CN=["main","subagent","advisor"],TN=Pa.slice(3);function _i(r){return r.totalInputTokens+r.totalOutputTokens+r.totalCacheReadTokens+r.totalCacheWriteTokens}function l2(r){return{tokens:_i(r),requests:r.totalRequests,cost:r.totalCost,share:0}}function IN(r){let l=new Map;for(let d of r)l.set(d.agentType,d);let i=[];for(let d of CN){let f=l.get(d);if(f)i.push({kind:"agent",agentType:d,key:`agent:${d}`,...l2(f)})}return i}function i2(r,l){let i=[];for(let d of r){if(d.decision!==l)continue;i.push({kind:"sideChannel",category:d.category,key:`side:${d.category}`,...l2(d)})}return i.sort((d,f)=>f.tokens-d.tokens||d.category.localeCompare(f.category))}function u2(r,l){let i=0,d=0,f=[];for(let g of r)if(i+=g.tokens,d+=g.cost,g.kind==="sideChannel")f.push({key:g.category,weight:g.tokens});if(i>0)for(let g of r)g.share=g.tokens/i;return{totalTokens:i,totalCost:d,segments:r,categoryColors:zi(f,l)}}function d2(r,l){return u2([...IN(r),...i2(l,!1)],TN)}function c2(r){return u2(i2(r,!0),Pa)}function f2(r){let l={totalCost:0,requests:0,unpricedRequests:0,activeDays:new Set(r.map((f)=>f.timestamp)).size,avgDailyCost:0,costInput:0,costOutput:0,costCacheRead:0,costCacheWrite:0,models:[],topModel:null},i=new Map;for(let f of r){let g=ja(f.model,f.provider),v=i.get(g);if(!v)v={key:g,model:f.model,provider:f.provider,cost:0,requests:0,unpricedRequests:0,costInput:0,costOutput:0,costCacheRead:0,costCacheWrite:0,share:0},i.set(g,v);n2(v,f),n2(l,f),v.cost+=f.cost,l.totalCost+=f.cost}l.avgDailyCost=l.activeDays>0?l.totalCost/l.activeDays:0,l.models=[...i.values()].sort((f,g)=>g.cost-f.cost||g.requests-f.requests||f.key.localeCompare(g.key));for(let f of l.models)f.share=l.totalCost>0?f.cost/l.totalCost:0;let d=l.models[0];return l.topModel=d!==void 0&&d.cost>0?d:null,l}function n2(r,l){r.costInput+=l.costInput,r.costOutput+=l.costOutput,r.costCacheRead+=l.costCacheRead,r.costCacheWrite+=l.costCacheWrite,r.requests+=l.requests,r.unpricedRequests+=l.unpricedRequests}function p2(r){let l=new Map;for(let i of r){let d=ja(i.model,i.provider),f=l.get(d);if(!f)f=[],l.set(d,f);f.push({timestamp:i.timestamp,avgTtftSeconds:i.avgTtft!==null?i.avgTtft/1000:null,avgTokensPerSecond:i.avgTokensPerSecond,requests:i.requests})}for(let i of l.values())i.sort((d,f)=>d.timestamp-f.timestamp);return l}var RN=/^\/?-?(?:private-)?(?:tmp|var-folders)(?:[-/]|$)/;function m2(r){let l=0,i=0,d=0,f=0,g=0,v=0,h=0,m=0,S=0;for(let L of r){if(l+=L.totalRequests,i+=L.failedRequests,d+=L.totalCost,f+=L.unpricedRequests,g+=L.totalInputTokens+L.totalCacheReadTokens+L.totalCacheWriteTokens+L.totalOutputTokens,v+=L.totalInputTokens,h+=L.totalCacheReadTokens,L.totalRequests>m)m=L.totalRequests;if(L.totalCost>S)S=L.totalCost}let y=0;return{rows:r.map((L)=>{let T=RN.test(L.folder);if(T)y++;return{...L,conversationTokens:L.totalInputTokens+L.totalCacheReadTokens+L.totalCacheWriteTokens+L.totalOutputTokens,requestShare:l>0?L.totalRequests/l:0,costShare:d>0?L.totalCost/d:0,temporary:T}}),totalRequests:l,failedRequests:i,totalCost:d,unpricedRequests:f,conversationTokens:g,cacheRate:v+h>0?h/(v+h):0,maxRequests:m,maxCost:S,temporaryCount:y}}function h2(r){let l=0,i=0,d=0;for(let f of r)l+=f.calls,i+=f.totalTokensShare,d+=f.costShare;return r.map((f)=>({...f,errorRate:f.calls>0?f.errors/f.calls:0,callFraction:l>0?f.calls/l:0,tokenFraction:i>0?f.totalTokensShare/i:0,costFraction:d>0?f.costShare/d:0,avgResultChars:f.calls>0?f.resultChars/f.calls:0}))}function As(r){if(r.stopReason==="aborted")return"aborted";if(r.stopReason==="error"||r.errorMessage)return"failed";return"ok"}function Mb(r,l){if(r.length===0)return null;return r[Math.min(r.length-1,Math.max(0,Math.ceil(l*r.length)-1))]}function g2(r){let l=0,i=0,d=0,f=0,g=0,v=null,h=null,m=[],S=[];for(let y of r){let b=As(y);if(b==="failed")l++;else if(b==="aborted")i++;if(d+=y.usage.totalTokens,f+=y.usage.cost.total,bb(y))g++;if(y.duration!==null)m.push(y.duration);if(y.ttft!==null)S.push(y.ttft);if(v===null||y.timestamp<v)v=y.timestamp;if(h===null||y.timestamp>h)h=y.timestamp}return m.sort((y,b)=>y-b),S.sort((y,b)=>y-b),{requests:r.length,failed:l,aborted:i,tokens:d,cost:f,unpriced:g,medianDuration:Mb(m,0.5),p95Duration:Mb(m,0.95),medianTtft:Mb(S,0.5),oldest:v,newest:h}}var s2=180,AN=/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/gi,MN=/\b(?:req|msg|call|toolu|chatcmpl|resp|run|gen)[-_][A-Za-z0-9_-]{6,}/g,DN=/\b[0-9a-f]{12,}\b/gi,EN=/(?<![\w.-])\d+(?:\.\d+)?/g,NN=/^[1-5]\d\d$/;function Db(r){if(!r?.trim())return"Unknown error";let l=r.replace(/\s+/g," ").trim().replace(AN,"<id>").replace(MN,"<id>").replace(DN,"<hex>").replace(EN,(i)=>NN.test(i)?i:"N");return l.length>s2?`${l.slice(0,s2-1)}…`:l}function y2(r){let l=new Map;for(let i of r){let d=Db(i.errorMessage),f=l.get(d);if(!f)f={signature:d,count:0,firstSeen:i.timestamp,lastSeen:i.timestamp,latest:i,models:[],byModel:new Map},l.set(d,f);if(f.count++,i.timestamp<f.firstSeen)f.firstSeen=i.timestamp;if(i.timestamp>f.lastSeen)f.lastSeen=i.timestamp,f.latest=i;let g=ja(i.model,i.provider),v=f.byModel.get(g);if(v)v.count++;else f.byModel.set(g,{model:i.model,provider:i.provider,count:1})}return[...l.values()].map(({byModel:i,...d})=>({...d,models:[...i.values()].sort((f,g)=>g.count-f.count||f.model.localeCompare(g.model))})).sort((i,d)=>d.count-i.count||d.lastSeen-i.lastSeen)}var Oe=_(te(),1);function qN(){return[{value:"model",label:u("costs.by-model")},{value:"component",label:u("costs.by-component")}]}var ON=6,BN=86400000;function Xf(){return[{key:"costInput",label:u("common.input"),color:"#5b8cff"},{key:"costOutput",label:u("common.output"),color:"var(--chart-secondary)"},{key:"costCacheRead",label:u("common.cache-read"),color:"var(--chart-primary)"},{key:"costCacheWrite",label:u("common.cache-write"),color:"#f5b54a"}]}function v2({active:r,range:l}){let i=zt(["costs",l],({signal:L})=>rI(l,L),{enabled:r}),d=aa(l),[f,g]=$f.useState("model"),[v,h]=Ur(),m=$f.useMemo(()=>i.data?PN(i.data,l):null,[i.data,l]),S=$f.useMemo(()=>m?_N(m):[],[m]),y=(L)=>L.costSeries.length===0,b=Oe.jsxDEV(Je,{title:u("costs.no-usage-in-range"),hint:u("costs.empty-hint")},void 0,!1,void 0,this);return Oe.jsxDEV("div",{className:"page",children:[Oe.jsxDEV(la,{title:u("costs.title"),description:u("costs.description",{window:u(d.windowKey)})},void 0,!1,void 0,this),Oe.jsxDEV(_e,{query:i,skeleton:Oe.jsxDEV(Ga,{height:112,style:{borderRadius:12}},void 0,!1,void 0,this),isEmpty:y,empty:b,children:()=>m&&Oe.jsxDEV(zN,{view:m,stale:i.stale},void 0,!1,void 0,this)},void 0,!1,void 0,this),Oe.jsxDEV("div",{className:"grid grid-main-side",children:[Oe.jsxDEV(fe,{index:1,title:u("costs.daily-estimate"),description:f==="model"?u("costs.daily-by-model"):u("costs.daily-by-component"),actions:Oe.jsxDEV(Oa,{size:"sm",options:qN(),value:f,onChange:g,"aria-label":u("costs.split-by")},void 0,!1,void 0,this),stale:i.stale,children:Oe.jsxDEV(_e,{query:i,skeleton:Oe.jsxDEV(qt,{height:280},void 0,!1,void 0,this),isEmpty:y,empty:b,children:()=>{if(!m)return null;let L=f==="model"?m.modelSeries:m.componentSeries;return Oe.jsxDEV("div",{className:"stack",style:{gap:12},children:[Oe.jsxDEV(vr,{slots:m.buckets.length,tickLabel:(T)=>Ff(m.buckets[T]),tooltipTitle:(T)=>Ff(m.buckets[T],!0),series:L,hidden:v,height:280,format:(T)=>Pt(T,Number.isInteger(T)?0:2),formatTooltip:(T)=>Pt(T),emptyLabel:u("costs.no-priced-usage"),tooltipExtra:(T)=>m.unpricedPerDay[T]>0?Oe.jsxDEV("div",{className:"chart-tooltip-row chart-tooltip-total",children:[Oe.jsxDEV("span",{className:"chart-tooltip-label",children:u("costs.unpriced-requests")},void 0,!1,void 0,this),Oe.jsxDEV("span",{className:"chart-tooltip-value",children:A(m.unpricedPerDay[T])},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null},void 0,!1,void 0,this),Oe.jsxDEV(ia,{items:L.map((T)=>({key:T.key,label:T.label,color:T.color,value:Pt(HN(T.values))})),hidden:v,onToggle:h},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}},void 0,!1,void 0,this)},void 0,!1,void 0,this),Oe.jsxDEV(fe,{index:2,title:u("costs.where-it-went"),description:u("costs.estimate-by-component"),stale:i.stale,children:Oe.jsxDEV(_e,{query:i,skeleton:Oe.jsxDEV(qt,{height:280},void 0,!1,void 0,this),isEmpty:y,empty:b,children:()=>m&&Oe.jsxDEV(UN,{summary:m.summary},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Oe.jsxDEV(fe,{index:3,title:u("costs.by-model"),description:u("costs.by-model-description"),stale:i.stale,flush:!0,children:Oe.jsxDEV(_e,{query:i,skeleton:Oe.jsxDEV(pa,{rows:8},void 0,!1,void 0,this),isEmpty:y,empty:b,children:()=>m&&Oe.jsxDEV(Ft,{rows:m.summary.models,rowKey:(L)=>L.key,columns:S,initialSort:{key:"cost",dir:"desc"},limit:20},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function PN(r,l){let i=r.costSeries,d=f2(i),f=ug(d.models.map((S)=>({model:S.model,provider:S.provider,totalRequests:S.requests}))),g=new Map(d.models.map((S)=>[S.key,S])),v=oo(l,i.map((S)=>S.timestamp),BN),h=Xn(i,{buckets:v,key:(S)=>ja(S.model,S.provider),label:(S)=>g.get(S)?.model??S,value:(S)=>S.cost,limit:ON,colors:f}).map((S)=>({...S,values:S.values.map((y)=>y||null)})),m=new Set;for(let S of h){if(S.key==="__other__")continue;if(m.has(S.color))S.color=Pa.find((y)=>!m.has(y))??S.color;m.add(S.color)}return{summary:d,swatches:new Map(h.filter((S)=>S.key!=="__other__").map((S)=>[S.key,S.color])),buckets:v,dailyTotals:ha(i,v,(S)=>S.cost),unpricedPerDay:ha(i,v,(S)=>S.unpricedRequests),modelSeries:h,componentSeries:Xf().map((S)=>({key:S.key,label:S.label,color:S.color,values:ha(i,v,(y)=>y[S.key]).map((y)=>y||null)})),maxModelCost:d.models[0]?.cost??0}}function zN({view:r,stale:l}){let{summary:i}=r,d=i.requests-i.unpricedRequests,f=i.topModel;return Oe.jsxDEV("div",{"data-stale":l,children:Oe.jsxDEV(wa,{min:180,children:[Oe.jsxDEV(ie,{label:u("costs.api-equivalent-estimate"),title:u("costs.api-estimate-title"),value:oa(i.totalCost,i.unpricedRequests),hint:u("costs.requests-n",{count:A(i.requests)}),spark:r.dailyTotals,sparkColor:"var(--chart-secondary)"},void 0,!1,void 0,this),Oe.jsxDEV(ie,{label:u("costs.average-per-day"),title:u("costs.average-per-day-title"),value:oa(i.avgDailyCost,i.unpricedRequests),hint:u(i.activeDays===1?"costs.active-days-one":"costs.active-days-n",{count:A(i.activeDays)})},void 0,!1,void 0,this),Oe.jsxDEV(ie,{label:u("costs.top-model"),title:f?`${f.model} (${f.provider})`:void 0,value:f?f.model:"–",hint:f?u("costs.top-model-hint",{cost:Pt(f.cost),share:Ge(f.share)}):u("costs.nothing-priced-yet")},void 0,!1,void 0,this),Oe.jsxDEV(ie,{label:u("costs.per-priced-request"),title:u("costs.per-priced-request-title"),value:d>0?x2(i.totalCost/d):"–",hint:u("costs.priced-n",{count:A(d)})},void 0,!1,void 0,this),Oe.jsxDEV(ie,{label:u("costs.unpriced-requests"),title:u("costs.unpriced-title"),value:A(i.unpricedRequests),hint:i.unpricedRequests>0?u("costs.unpriced-hint"):u("costs.all-priced")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function UN({summary:r}){return Oe.jsxDEV("div",{className:"stack",style:{gap:14},children:[Oe.jsxDEV($n,{height:10,segments:Xf().map((l)=>({key:l.key,label:l.label,value:r[l.key],color:l.color}))},void 0,!1,void 0,this),Oe.jsxDEV("div",{className:"costs-components",children:[Xf().map((l)=>Oe.jsxDEV("div",{className:"costs-component-row",children:[Oe.jsxDEV("span",{className:"row",children:[Oe.jsxDEV(an,{color:l.color},void 0,!1,void 0,this),l.label]},void 0,!0,void 0,this),Oe.jsxDEV("span",{className:"num",children:Pt(r[l.key])},void 0,!1,void 0,this),Oe.jsxDEV("span",{className:"num dim costs-component-share",children:r.totalCost>0?Ge(r[l.key]/r.totalCost):"–"},void 0,!1,void 0,this)]},l.key,!0,void 0,this)),Oe.jsxDEV("div",{className:"costs-component-row costs-component-total",children:[Oe.jsxDEV("span",{children:u("common.total")},void 0,!1,void 0,this),Oe.jsxDEV("span",{className:"num",children:oa(r.totalCost,r.unpricedRequests)},void 0,!1,void 0,this),Oe.jsxDEV("span",{className:"costs-component-share"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),r.unpricedRequests>0&&Oe.jsxDEV("p",{className:"micro dim",children:u(r.unpricedRequests===1?"costs.unpriced-note-one":"costs.unpriced-note-n",{count:A(r.unpricedRequests)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function _N(r){let l=Xf().map((i)=>({key:i.key,header:i.label,align:"right",sort:(d)=>d[i.key],render:(d)=>Oe.jsxDEV("span",{className:"num",children:Pt(d[i.key])},void 0,!1,void 0,this)}));return[{key:"model",header:u("common.model"),sort:(i)=>i.model,render:(i)=>Oe.jsxDEV(co,{lead:Oe.jsxDEV(an,{color:r.swatches.get(i.key)??fo},void 0,!1,void 0,this),primary:Oe.jsxDEV("span",{className:"mono",children:i.model},void 0,!1,void 0,this),secondary:i.provider},void 0,!1,void 0,this)},{key:"requests",header:u("common.requests"),align:"right",sort:(i)=>i.requests,render:(i)=>Oe.jsxDEV("span",{className:"num",children:A(i.requests)},void 0,!1,void 0,this)},{key:"cost",header:u("costs.estimate"),title:u("costs.estimate-title"),align:"right",sort:(i)=>i.cost,render:(i)=>Oe.jsxDEV(Ma,{value:i.cost,max:r.maxModelCost,display:oa(i.cost,i.unpricedRequests),color:r.swatches.get(i.key)??fo},void 0,!1,void 0,this)},{key:"share",header:u("common.share"),align:"right",sort:(i)=>i.share,render:(i)=>Oe.jsxDEV("span",{className:"num muted",children:i.cost>0?Ge(i.share):"–"},void 0,!1,void 0,this)},{key:"split",header:u("costs.split"),title:"Input · output · cache read · cache write",width:150,render:(i)=>i.cost>0?Oe.jsxDEV($n,{segments:Xf().map((d)=>({key:d.key,label:d.label,value:i[d.key],color:d.color}))},void 0,!1,void 0,this):Oe.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this)},...l,{key:"perRequest",header:u("costs.per-request"),title:"Estimate ÷ priced requests",align:"right",sort:(i)=>i.requests>i.unpricedRequests?i.cost/(i.requests-i.unpricedRequests):-1,render:(i)=>Oe.jsxDEV("span",{className:"num",children:i.requests>i.unpricedRequests?x2(i.cost/(i.requests-i.unpricedRequests)):"–"},void 0,!1,void 0,this)},{key:"unpriced",header:u("costs.unpriced"),title:"Requests with no public-equivalent price",align:"right",sort:(i)=>i.unpricedRequests,render:(i)=>i.unpricedRequests>0?Oe.jsxDEV("span",{className:"num tone-warn",children:A(i.unpricedRequests)},void 0,!1,void 0,this):Oe.jsxDEV("span",{className:"num dim",children:"–"},void 0,!1,void 0,this)}]}function x2(r){return r>0&&r<0.0001?"<$0.0001":Pt(r)}function HN(r){let l=0;for(let i of r)l+=i??0;return l}var Ms=_(Ke(),1);var Le=_(te(),1),Eb=[50,200,1000];function b2({active:r,range:l,onRequestClick:i}){let[d,f]=Ms.useState(0),g=Eb[d],v=zt(["errors",l,g],({signal:G})=>nI(l,g,G),{enabled:r}),[h,m]=Ms.useState(null),[S,y]=Ms.useState(null),[b,L]=Ms.useState(""),T=aa(l),C=Ms.useMemo(()=>{let G=(v.data??[]).map((Te)=>({row:Te,signature:Db(Te.errorMessage)})),V=y2(v.data??[]),Re=new Map;for(let{row:Te}of G){let oe=ja(Te.model,Te.provider),Se=Re.get(oe);if(Se)Se.count++;else Re.set(oe,{model:Te.model,provider:Te.provider,count:1})}let pe=[...Re.entries()].map(([Te,oe])=>({key:Te,...oe})).sort((Te,oe)=>oe.count-Te.count||Te.model.localeCompare(oe.model)),Ne=G.reduce((Te,{row:oe})=>!Te||oe.timestamp>Te.timestamp?oe:Te,null);return{rows:G,groups:V,models:pe,newest:Ne}},[v.data]),I=C.groups.some((G)=>G.signature===h)?h:null,R=C.models.some((G)=>G.key===S)?S:null,O=Ms.useMemo(()=>{let G=b.trim().toLowerCase();return C.rows.filter((V)=>(I===null||V.signature===I)&&(R===null||ja(V.row.model,V.row.provider)===R)&&(G===""||V.row.model.toLowerCase().includes(G)||V.row.provider.toLowerCase().includes(G)||V.row.folder.toLowerCase().includes(G)||(V.row.errorMessage??"").toLowerCase().includes(G))).map((V)=>V.row)},[C.rows,I,R,b]),P=v.data?.length??0,Y=!v.stale&&P<g,W=d+1<Eb.length?Eb[d+1]:null,ue=v.data!==null&&!Y?Le.jsxDEV(Le.Fragment,{children:[Le.jsxDEV("span",{children:u("errors.footer",{count:A(P),window:u(T.windowKey)})},void 0,!1,void 0,this),W!==null&&Le.jsxDEV("button",{type:"button",className:"btn","data-size":"sm",disabled:v.refreshing,onClick:()=>f(d+1),children:v.refreshing&&v.stale?u("errors.loading"):u("errors.load-latest",{count:A(W)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this):void 0,Z=C.groups[0]?.count??0,ce=Ms.useMemo(()=>FN(Z),[Z]),ee=C.models.find((G)=>G.key===R);return Le.jsxDEV("div",{className:"page",children:[Le.jsxDEV(la,{title:u("errors.title"),description:u("errors.description",{window:u(T.windowKey)})},void 0,!1,void 0,this),Le.jsxDEV(_e,{query:v,skeleton:Le.jsxDEV(Ga,{height:96,style:{borderRadius:12}},void 0,!1,void 0,this),children:()=>Le.jsxDEV("div",{"data-stale":v.stale,children:Le.jsxDEV(wa,{min:170,children:[Le.jsxDEV(ie,{label:u("errors.failures"),value:A(P),hint:Y?u("errors.hint-in-window",{window:u(T.windowKey)}):u("errors.hint-latest-loaded",{count:A(P)})},void 0,!1,void 0,this),Le.jsxDEV(ie,{label:u("errors.signatures"),title:u("errors.signatures-hint"),value:A(C.groups.length),hint:C.groups[0]?u("errors.signatures-top",{count:A(C.groups[0].count)}):void 0},void 0,!1,void 0,this),Le.jsxDEV(ie,{label:u("errors.affected-models"),value:A(C.models.length),hint:C.models[0]?.model},void 0,!1,void 0,this),Le.jsxDEV(ie,{label:u("errors.last-failure"),value:C.newest?ma(C.newest.timestamp):"–",hint:C.newest?ro(C.newest.timestamp):u("errors.none-in-window",{window:u(T.windowKey)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),Le.jsxDEV("div",{className:"grid grid-main-side",children:[Le.jsxDEV(fe,{index:1,title:u("errors.error-signatures"),description:u("errors.signatures-card-description"),flush:!0,stale:v.stale,children:Le.jsxDEV(_e,{query:v,skeleton:Le.jsxDEV(pa,{rows:8},void 0,!1,void 0,this),isEmpty:(G)=>G.length===0,empty:Le.jsxDEV(Je,{title:u("errors.empty-no-failures",{window:u(T.windowKey)}),hint:u("errors.empty-all-succeeded")},void 0,!1,void 0,this),children:()=>Le.jsxDEV(Ft,{rows:C.groups,rowKey:(G)=>G.signature,columns:ce,onRowClick:(G)=>m(I===G.signature?null:G.signature),selectedKey:I,expanded:(G)=>G.signature===I?Le.jsxDEV(GN,{group:G,onRequestClick:i},void 0,!1,void 0,this):null,limit:12},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),Le.jsxDEV(fe,{index:2,title:u("errors.by-model"),description:u("errors.by-model-description"),stale:v.stale,children:Le.jsxDEV(_e,{query:v,skeleton:Le.jsxDEV(Ga,{height:180},void 0,!1,void 0,this),isEmpty:(G)=>G.length===0,empty:Le.jsxDEV(Je,{title:u("errors.empty-no-affected-models")},void 0,!1,void 0,this),children:()=>Le.jsxDEV(Ts,{items:C.models.slice(0,12).map((G)=>({key:G.key,label:Le.jsxDEV("span",{className:"row",style:{gap:6,minWidth:0},children:[Le.jsxDEV("span",{className:"mono truncate",children:G.model},void 0,!1,void 0,this),Le.jsxDEV("span",{className:"dim truncate",children:G.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),value:G.count,color:G.key===R?"var(--bad)":"color-mix(in srgb, var(--bad) 45%, transparent)"})),onSelect:(G)=>y(R===G?null:G)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Le.jsxDEV(fe,{index:3,title:u("errors.failures"),description:v.data===null?u("errors.loading-failures"):u("errors.filtered-of-total",{shown:A(O.length),total:A(P)}),actions:Le.jsxDEV(Le.Fragment,{children:[I!==null&&Le.jsxDEV("button",{type:"button",className:"btn errors-filter","data-size":"sm",onClick:()=>m(null),title:I,children:[Le.jsxDEV("span",{className:"mono truncate",children:I},void 0,!1,void 0,this),Le.jsxDEV(Ao,{size:12},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ee&&Le.jsxDEV("button",{type:"button",className:"btn errors-filter","data-size":"sm",onClick:()=>y(null),children:[Le.jsxDEV("span",{className:"mono truncate",children:ee.model},void 0,!1,void 0,this),Le.jsxDEV(Ao,{size:12},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Le.jsxDEV(Fn,{value:b,onChange:L,placeholder:u("errors.search-placeholder")},void 0,!1,void 0,this)]},void 0,!0,void 0,this),flush:!0,stale:v.stale,footer:ue,children:Le.jsxDEV(_e,{query:v,skeleton:Le.jsxDEV(pa,{rows:10},void 0,!1,void 0,this),isEmpty:(G)=>G.length===0,empty:Le.jsxDEV(Je,{title:u("errors.empty-no-failures",{window:u(T.windowKey)})},void 0,!1,void 0,this),children:()=>Le.jsxDEV(Ft,{rows:O,rowKey:(G)=>G.id??`${G.sessionFile}:${G.entryId}`,onRowClick:(G)=>G.id!==void 0&&i(G.id),columns:VN(),initialSort:{key:"time",dir:"desc"},limit:50,dense:!0,empty:Le.jsxDEV(Je,{title:u("errors.no-match"),hint:u("errors.no-match-hint")},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function FN(r){return[{key:"signature",header:u("errors.signature"),wrap:!0,sort:(l)=>l.signature,render:(l)=>Le.jsxDEV("span",{className:"errors-signature",title:l.latest.errorMessage??void 0,children:l.signature},void 0,!1,void 0,this)},{key:"models",header:u("common.models"),sort:(l)=>l.models.length,render:(l)=>Le.jsxDEV(co,{primary:Le.jsxDEV("span",{className:"mono",children:l.models[0]?.model},void 0,!1,void 0,this),secondary:l.models.length>1?u("errors.more-models",{count:A(l.models.length-1)}):l.models[0]?.provider},void 0,!1,void 0,this)},{key:"last",header:u("errors.last-seen"),sort:(l)=>l.lastSeen,render:(l)=>Le.jsxDEV("span",{className:"muted",title:ro(l.lastSeen),children:ma(l.lastSeen)},void 0,!1,void 0,this)},{key:"count",header:u("errors.failures"),align:"right",width:120,sort:(l)=>l.count,render:(l)=>Le.jsxDEV(Ma,{value:l.count,max:r,display:A(l.count),color:"var(--bad)"},void 0,!1,void 0,this)}]}function GN({group:r,onRequestClick:l}){let i=r.latest.id;return Le.jsxDEV("div",{className:"errors-detail",children:[Le.jsxDEV("pre",{className:"code-block errors-detail-message",children:r.latest.errorMessage??u("errors.unknown-error")},void 0,!1,void 0,this),Le.jsxDEV("div",{className:"errors-detail-meta",children:[Le.jsxDEV("span",{className:"muted",children:u("errors.group-meta",{count:A(r.count),first:ro(r.firstSeen),last:ro(r.lastSeen)})},void 0,!1,void 0,this),i!==void 0&&Le.jsxDEV("button",{type:"button",className:"btn","data-size":"sm",onClick:()=>l(i),children:[u("errors.open-latest")," ",Le.jsxDEV(lf,{size:13},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Le.jsxDEV("div",{className:"errors-detail-models",children:r.models.map((d)=>Le.jsxDEV("span",{className:"badge","data-mono":"true",children:[d.model," ",Le.jsxDEV("span",{className:"dim",children:d.provider},void 0,!1,void 0,this)," ",Le.jsxDEV("span",{className:"num",children:se(d.count)},void 0,!1,void 0,this)]},ja(d.model,d.provider),!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function VN(){return[{key:"time",header:u("errors.when"),width:120,sort:(r)=>r.timestamp,render:(r)=>Le.jsxDEV("span",{className:"muted",title:ro(r.timestamp),children:ma(r.timestamp)},void 0,!1,void 0,this)},{key:"model",header:u("common.model"),sort:(r)=>r.model,render:(r)=>Le.jsxDEV(co,{primary:Le.jsxDEV("span",{className:"mono",children:r.model},void 0,!1,void 0,this),secondary:r.provider},void 0,!1,void 0,this)},{key:"error",header:u("common.error"),sort:(r)=>r.errorMessage??"",render:(r)=>Le.jsxDEV("span",{className:"errors-message",title:r.errorMessage??void 0,children:r.errorMessage??u("errors.unknown-error")},void 0,!1,void 0,this)},{key:"project",header:u("common.project"),sort:(r)=>r.folder,render:(r)=>Le.jsxDEV("span",{className:"mono muted",title:r.folder,children:zr(r.folder)},void 0,!1,void 0,this)},{key:"tokens",header:u("common.tokens"),align:"right",sort:(r)=>r.usage.totalTokens,render:(r)=>Le.jsxDEV("span",{className:"num",children:A(r.usage.totalTokens)},void 0,!1,void 0,this)},{key:"cost",header:u("common.cost"),title:u("errors.cost-hint"),align:"right",sort:(r)=>r.usage.cost.total,render:(r)=>Le.jsxDEV("span",{className:"num",children:ql(r,4)},void 0,!1,void 0,this)}]}var At=_(Ke(),1);var z=_(te(),1),jN=1000,fg=50,qb=0.5,Yf="*";function k2({active:r,range:l}){let[i,d]=At.useState(!1),f=zt(["frustration",l],({signal:S})=>dI(l,S),{enabled:r,pollMs:i?jN:void 0}),g=aa(l),v=f.data?.job.state;At.useEffect(()=>{if(v!==void 0)d(v==="running")},[v]);let{refetch:h}=f,m=At.useCallback(()=>{d(!0),h()},[h]);return z.jsxDEV("div",{className:"page",children:[z.jsxDEV(la,{title:u("frustration.title"),description:u("frustration.description",{window:u(g.windowKey)})},void 0,!1,void 0,this),z.jsxDEV(_e,{query:f,skeleton:z.jsxDEV(qt,{height:96},void 0,!1,void 0,this),children:(S)=>z.jsxDEV("div",{"data-stale":f.stale,children:z.jsxDEV($N,{overall:S.overall},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),z.jsxDEV(_e,{query:f,skeleton:z.jsxDEV(qt,{height:120},void 0,!1,void 0,this),children:(S)=>z.jsxDEV(XN,{active:r,range:l,judgeAvailable:S.judgeAvailable,job:S.job,onRunStarted:m,onRunChanged:h},void 0,!1,void 0,this)},void 0,!1,void 0,this),z.jsxDEV(_e,{query:f,skeleton:z.jsxDEV(fe,{index:2,title:u("frustration.by-model"),children:[z.jsxDEV(qt,{height:340},void 0,!1,void 0,this),z.jsxDEV(pa,{rows:6},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:(S)=>z.jsxDEV(aq,{models:S.byModel,stale:f.stale},void 0,!1,void 0,this)},void 0,!1,void 0,this),z.jsxDEV(_e,{query:f,skeleton:z.jsxDEV(qt,{height:96},void 0,!1,void 0,this),children:(S)=>z.jsxDEV("div",{className:"frustration-model-summary","data-stale":f.stale,children:z.jsxDEV(sq,{overall:S.modelSide.overall,window:u(g.windowKey)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),z.jsxDEV(_e,{query:f,skeleton:z.jsxDEV(fe,{index:4,title:u("frustration.model-by-model"),children:[z.jsxDEV(qt,{height:300},void 0,!1,void 0,this),z.jsxDEV(pa,{rows:5},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:(S)=>z.jsxDEV(lq,{models:S.modelSide.byModel,series:S.modelSide.series,range:l,stale:f.stale},void 0,!1,void 0,this)},void 0,!1,void 0,this),z.jsxDEV(_e,{query:f,skeleton:z.jsxDEV(fe,{index:7,title:u("frustration.model-sessions"),children:z.jsxDEV(pa,{rows:5},void 0,!1,void 0,this)},void 0,!1,void 0,this),children:(S)=>z.jsxDEV(uq,{sessions:S.modelSide.bySession,stale:f.stale},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Da(r,l){return l>0?Ge(r/l):"–"}function Nb(r){return r instanceof Error?r.message:String(r)}function L2(r){let l=Math.max(0,Math.floor(r/1000)),i=Math.floor(l/60),d=l%60;return i>0?`${i}m ${String(d).padStart(2,"0")}s`:`${d}s`}function $N({overall:r}){let l=r.messages-r.judged,i=r.unscored>0?u("frustration.coverage-unscored",{count:A(r.unscored)}):"";return z.jsxDEV(z.Fragment,{children:[z.jsxDEV(wa,{min:170,children:[z.jsxDEV(ie,{label:u("frustration.user-messages"),title:u("frustration.user-messages-title"),value:A(r.messages)},void 0,!1,void 0,this),z.jsxDEV(ie,{label:u("frustration.judge-coverage"),title:u("frustration.judge-coverage-title"),value:Da(r.judged,r.messages),hint:`${u("frustration.coverage-hint",{judged:A(r.judged),regex:A(l)})}${i}`},void 0,!1,void 0,this),z.jsxDEV(ie,{label:u("frustration.annoyed"),title:u("frustration.annoyed-title"),value:Da(r.annoyed,r.messages),hint:u("frustration.messages-n",{count:A(r.annoyed)})},void 0,!1,void 0,this),z.jsxDEV(ie,{label:u("frustration.at-assistant"),title:u("frustration.at-assistant-title"),value:Da(r.atAssistant,r.messages),hint:u("frustration.messages-n",{count:A(r.atAssistant)})},void 0,!1,void 0,this),z.jsxDEV(ie,{label:u("frustration.angry"),title:u("frustration.angry-title"),value:Da(r.angry,r.messages),hint:u("frustration.messages-n",{count:A(r.angry)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this),r.unscored>0&&z.jsxDEV("p",{className:"micro dim",children:u("frustration.unscored-line",{count:A(r.unscored)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var S2="Judging needs the zeta host process: open the dashboard with zetacode stats and configure a judge model. Until then messages are classified by regex signals.";function XN({active:r,range:l,judgeAvailable:i,job:d,onRunStarted:f,onRunChanged:g}){let[v,h]=At.useState(!1),[m,S]=At.useState({status:"loading"}),[y,b]=At.useState(!1),[L,T]=At.useState(null),[C,I]=At.useState(!1),[R,O]=At.useState(null),P=At.useRef(null),Y=d.state==="running",W=At.useCallback(()=>{P.current?.abort(),P.current=null,h(!1)},[]);At.useEffect(()=>{if(!r)W()},[r,W]),At.useEffect(()=>()=>P.current?.abort(),[]);let ue=()=>{P.current?.abort();let V=new AbortController;P.current=V;let Re=l;S({status:"loading"}),T(null),O(null),h(!0),cI(Re,V.signal).then((pe)=>{if(!V.signal.aborted)S({status:"ready",estimate:pe,range:Re})},(pe)=>{if(!V.signal.aborted)S({status:"error",message:Nb(pe)})})},Z=async()=>{if(m.status!=="ready")return;b(!0),T(null);try{await fI(m.range),W(),f()}catch(V){T(Nb(V))}finally{b(!1)}},ce=async()=>{I(!0),O(null);try{await pI(),g()}catch(V){O(Nb(V))}finally{I(!1)}},ee=m.status==="ready"?m.estimate:null,G=m.status==="loading"?{label:"Proceed",onClick:Z,disabled:!0}:ee?.available?{label:y?"Starting…":"Proceed",onClick:Z,disabled:y||ee.messages===0}:void 0;return z.jsxDEV(fe,{index:1,title:z.jsxDEV(z.Fragment,{children:[u("frustration.judge-panel")," ",z.jsxDEV(YN,{job:d,judgeAvailable:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this),description:u("frustration.judge-description"),actions:z.jsxDEV("button",{type:"button",className:"btn","data-variant":"accent","data-size":"sm",onClick:ue,disabled:!i||Y,title:!i?S2:Y?u("frustration.judge-running"):u("frustration.quote-title"),children:[z.jsxDEV(Un,{size:13},void 0,!1,void 0,this)," ",u("frustration.classify")]},void 0,!0,void 0,this),children:[z.jsxDEV("div",{className:"stack frustration-judge",children:[Y?z.jsxDEV(QN,{job:d,cancelling:C,onCancel:ce},void 0,!1,void 0,this):z.jsxDEV(WN,{job:d},void 0,!1,void 0,this),!i&&z.jsxDEV("p",{className:"micro dim",children:S2},void 0,!1,void 0,this),R&&z.jsxDEV("p",{className:"micro tone-bad",role:"alert",children:R},void 0,!1,void 0,this)]},void 0,!0,void 0,this),z.jsxDEV(NI,{open:v,title:u("frustration.classify"),onClose:W,primaryAction:G,children:[z.jsxDEV(KN,{estimate:m},void 0,!1,void 0,this),L&&z.jsxDEV("p",{className:"micro tone-bad",role:"alert",children:L},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function YN({job:r,judgeAvailable:l}){switch(r.state){case"running":return z.jsxDEV(ct,{tone:"ok",children:[z.jsxDEV(Hn,{tone:"live",pulse:!0},void 0,!1,void 0,this)," ",u("frustration.running")]},void 0,!0,void 0,this);case"done":return z.jsxDEV(ct,{tone:"ok",children:u("frustration.last-run-done")},void 0,!1,void 0,this);case"cancelled":return z.jsxDEV(ct,{tone:"warn",children:u("frustration.last-run-cancelled")},void 0,!1,void 0,this);case"failed":return z.jsxDEV(ct,{tone:"bad",children:u("frustration.last-run-failed")},void 0,!1,void 0,this);case"idle":return z.jsxDEV(ct,{children:l?u("frustration.not-run-yet"):u("frustration.regex-only")},void 0,!1,void 0,this)}}function KN({estimate:r}){if(r.status==="loading")return z.jsxDEV("p",{className:"muted",children:u("frustration.estimating")},void 0,!1,void 0,this);if(r.status==="error")return z.jsxDEV("p",{className:"tone-bad",children:r.message},void 0,!1,void 0,this);let l=r.estimate;if(!l.available)return z.jsxDEV("p",{children:l.reason},void 0,!1,void 0,this);if(l.messages===0)return z.jsxDEV("p",{children:u("frustration.all-judged")},void 0,!1,void 0,this);return z.jsxDEV(z.Fragment,{children:[z.jsxDEV("div",{className:"frustration-quote",children:[z.jsxDEV("span",{className:"dim micro",children:u("frustration.estimated-cost")},void 0,!1,void 0,this),z.jsxDEV("span",{className:"num frustration-quote-value",children:["≈ ",Pt(l.cost)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),z.jsxDEV(ko,{items:[{key:"messages",label:u("frustration.unjudged-messages"),value:A(l.messages)},{key:"chars",label:u("frustration.prose-chars"),value:A(l.chars)},{key:"tokens",label:u("frustration.input-tokens"),value:A(l.inputTokens)},{key:"judge",label:u("frustration.judge-model"),value:l.judge}]},void 0,!1,void 0,this),z.jsxDEV("p",{className:"micro dim",children:u("frustration.estimate-note")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function QN({job:r,cancelling:l,onCancel:i}){let d=r.done+r.failed,f=r.total>0?Math.min(1,d/r.total):0;return z.jsxDEV("div",{className:"stack frustration-progress",children:[z.jsxDEV("div",{className:"row frustration-progress-head",children:[z.jsxDEV("span",{className:"num",children:[A(r.done),"/",A(r.total)," judged"]},void 0,!0,void 0,this),z.jsxDEV("span",{className:"num dim",children:Ge(f)},void 0,!1,void 0,this),z.jsxDEV("span",{className:"frustration-spacer"},void 0,!1,void 0,this),z.jsxDEV("button",{type:"button",className:"btn","data-variant":"danger","data-size":"sm",onClick:i,disabled:l,children:l?u("frustration.cancelling"):u("frustration.cancel-run")},void 0,!1,void 0,this)]},void 0,!0,void 0,this),z.jsxDEV("div",{className:"meter frustration-progress-track",role:"progressbar","aria-valuemin":0,"aria-valuemax":r.total,"aria-valuenow":d,children:z.jsxDEV("div",{className:"meter-fill frustration-progress-fill",style:{width:`${f*100}%`}},void 0,!1,void 0,this)},void 0,!1,void 0,this),z.jsxDEV("div",{className:"row micro muted frustration-progress-meta",children:[z.jsxDEV("span",{className:r.failed>0?"tone-bad":void 0,children:u("frustration.failed-n",{count:A(r.failed)})},void 0,!1,void 0,this),z.jsxDEV("span",{children:[u("frustration.cost-so-far")," ",z.jsxDEV("span",{className:"num",children:Pt(r.cost)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),r.judge&&z.jsxDEV("span",{className:"mono",children:r.judge},void 0,!1,void 0,this),r.startedAt!==null&&z.jsxDEV("span",{children:u("frustration.elapsed",{time:L2(Date.now()-r.startedAt)})},void 0,!1,void 0,this),r.startedAt!==null&&r.done>0&&z.jsxDEV("span",{className:"num",children:[(r.done/Math.max(1,(Date.now()-r.startedAt)/1000)).toFixed(0),"/s"]},void 0,!0,void 0,this),r.concurrency>0&&z.jsxDEV("span",{className:"num",children:u("frustration.in-flight",{count:A(r.concurrency)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function WN({job:r}){let l=u("frustration.messages-progress",{done:A(r.done),total:A(r.total)}),i=r.failed>0?u("frustration.failed-suffix",{count:A(r.failed)}):"",d=r.judge?u("frustration.judge-with",{judge:r.judge}):"",f=r.startedAt!==null&&r.finishedAt!==null?u("frustration.in-time",{time:L2(r.finishedAt-r.startedAt)}):"";switch(r.state){case"idle":return z.jsxDEV("p",{className:"muted",children:u("frustration.no-run-yet")},void 0,!1,void 0,this);case"running":return null;case"done":return z.jsxDEV("p",{className:"muted",children:u("frustration.run-done-line",{progress:l,failed:i,judge:d,elapsed:f,cost:Pt(r.cost)})},void 0,!1,void 0,this);case"cancelled":return z.jsxDEV("p",{className:"muted",children:u("frustration.run-cancelled-line",{progress:l,failed:i,cost:Pt(r.cost)})},void 0,!1,void 0,this);case"failed":return z.jsxDEV("p",{className:"muted",children:u("frustration.run-failed-line",{progress:l,failed:i,error:r.error??u("frustration.unknown-error"),cost:Pt(r.cost)})},void 0,!1,void 0,this)}}function Hi(r){return`${r.modelClass}/${r.family??"unclassified"}`}function cd(r){return r.messages>0&&r.judged/r.messages<qb}function ZN(r){let l=2166136261;for(let i=0;i<r.length;i++)l^=r.charCodeAt(i),l=Math.imul(l,16777619);return l>>>0}function w2(r){let l=[...new Set(r.map(Hi))].sort(),i=new Set,d=new Map;for(let f of l){let g=ZN(f)%Pa.length;for(let v=0;v<Pa.length&&i.has(g);v++)g=(g+1)%Pa.length;i.add(g),d.set(f,Pa[g])}return d}function JN(r,l){if(l==="angry")return`color-mix(in srgb, ${r} 55%, black)`;if(l==="other")return`color-mix(in srgb, ${r} 32%, transparent)`;return r}var eq=[{key:"angry",label:"Angry at assistant"},{key:"assistant",label:"At assistant, not angry"},{key:"other",label:"Annoyed at other targets"}];function tq(r,l){if(l==="angry")return r.angry;if(l==="assistant")return r.atAssistant-r.angry;return r.annoyed-r.atAssistant}function Kf(r,l){return l>0?r/l*100:0}function aq({models:r,stale:l}){let[i,d]=At.useState(null),[f,g]=Ur(),[v,h]=At.useState(!1),[m,S]=At.useState(!1),y=At.useMemo(()=>w2(r),[r]),b=At.useMemo(()=>{let Z=new Map;for(let ce of r)Z.set(ce.modelClass,(Z.get(ce.modelClass)??0)+ce.messages);return Z},[r]),L=At.useMemo(()=>{let Z=null,ce=-1;for(let[ee,G]of b)if(G>ce)Z=ee,ce=G;return Z??Yf},[b]),T=i!==null&&(i===Yf||b.has(i))?i:L,C=At.useMemo(()=>[{value:Yf,label:"All",title:"Every model class"},...[...b].map(([Z,ce])=>({value:Z,label:Z,title:`${A(ce)} messages`}))],[b]),I=At.useMemo(()=>T===Yf?r:r.filter((Z)=>Z.modelClass===T),[r,T]),R=At.useMemo(()=>{let Z=new Map;for(let ce of I){let ee=Hi(ce),G=Z.get(ee);if(G){G.messages+=ce.messages;continue}let V=ce.family??"unclassified";Z.set(ee,{key:ee,label:T===Yf?`${ce.modelClass} · ${V}`:V,messages:ce.messages})}return[...Z.values()]},[I,T]),O=At.useMemo(()=>I.filter((Z)=>!f.has(Hi(Z))),[I,f]),P=O.filter((Z)=>Z.messages<fg).length,Y=O.filter(cd).length,W=At.useMemo(()=>O.filter((Z)=>(v||Z.messages>=fg)&&!(m&&cd(Z))),[O,v,m]);if(r.length===0)return z.jsxDEV(fe,{index:2,title:u("frustration.by-model"),stale:l,children:z.jsxDEV(Je,{title:u("frustration.no-messages"),hint:u("frustration.try-longer-range")},void 0,!1,void 0,this)},void 0,!1,void 0,this);let ue=W.some(cd);return z.jsxDEV(z.Fragment,{children:[z.jsxDEV(fe,{index:2,title:u("frustration.by-model"),description:u("frustration.by-model-description"),stale:l,children:z.jsxDEV("div",{className:"stack frustration-chart-body",children:[z.jsxDEV("div",{className:"frustration-classes",children:z.jsxDEV(Oa,{size:"sm","aria-label":u("frustration.model-class"),options:C,value:T,onChange:d},void 0,!1,void 0,this)},void 0,!1,void 0,this),z.jsxDEV("div",{className:"row frustration-filters",children:[z.jsxDEV(ia,{items:R.map((Z)=>({key:Z.key,label:Z.label,color:y.get(Z.key)??Pa[0],value:A(Z.messages)})),hidden:f,onToggle:g},void 0,!1,void 0,this),z.jsxDEV("span",{className:"frustration-spacer"},void 0,!1,void 0,this),z.jsxDEV("label",{className:"check",title:u("frustration.small-models-title",{count:fg}),children:[z.jsxDEV("input",{type:"checkbox",checked:v,onChange:(Z)=>h(Z.target.checked)},void 0,!1,void 0,this),u("frustration.include-small",{count:fg}),P>0?` (${P})`:""]},void 0,!0,void 0,this),z.jsxDEV("label",{className:"check",title:u("frustration.hide-regex-title",{share:qb*100}),children:[z.jsxDEV("input",{type:"checkbox",checked:m,onChange:(Z)=>S(Z.target.checked)},void 0,!1,void 0,this),"Hide mostly regex",Y>0?` (${Y})`:""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),z.jsxDEV(oq,{hasRegexRows:ue},void 0,!1,void 0,this),z.jsxDEV(rq,{rows:W,familyColors:y},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),z.jsxDEV(nq,{rows:W,familyColors:y,stale:l},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function oq({hasRegexRows:r}){return z.jsxDEV("div",{className:"legend frustration-key",children:[z.jsxDEV("span",{className:"legend-item",children:[z.jsxDEV("span",{className:"swatch frustration-key-swatch","data-variant":"angry"},void 0,!1,void 0,this),"Angry at assistant"]},void 0,!0,void 0,this),z.jsxDEV("span",{className:"legend-item",children:[z.jsxDEV("span",{className:"swatch frustration-key-swatch","data-variant":"assistant"},void 0,!1,void 0,this),"At assistant"]},void 0,!0,void 0,this),z.jsxDEV("span",{className:"legend-item",children:[z.jsxDEV("span",{className:"swatch frustration-key-swatch","data-variant":"other"},void 0,!1,void 0,this),"Annoyed at other targets"]},void 0,!0,void 0,this),z.jsxDEV("span",{className:"legend-item",children:[z.jsxDEV("span",{className:"frustration-key-line"},void 0,!1,void 0,this),u("frustration.legend-trend")]},void 0,!0,void 0,this),z.jsxDEV("span",{className:"legend-item frustration-key-wide",title:u("frustration.hatch-title",{share:qb*100}),children:[z.jsxDEV("span",{className:"swatch frustration-key-swatch","data-variant":"hatch"},void 0,!1,void 0,this),r?u("frustration.legend-hatched-run"):u("frustration.legend-hatched")]},void 0,!0,void 0,this),z.jsxDEV("span",{className:"legend-item dim",children:u("frustration.legend-hue")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function rq({rows:r,familyColors:l}){let i=At.useMemo(()=>{let d=new Map;r.forEach((g,v)=>{let h=Hi(g),m=cd(g),S=`${h}|${m?"regex":"judged"}`,y=d.get(S);if(y)y.slots.push(v);else d.set(S,{family:h,regex:m,slots:[v]})});let f=[];for(let g of eq)for(let[v,h]of d){let m=r.map(()=>null);for(let S of h.slots)m[S]=Kf(tq(r[S],g.key),r[S].messages);f.push({key:`${g.key}|${v}`,label:g.label,color:JN(l.get(h.family)??Pa[0],g.key),values:m,pattern:h.regex?"hatch":void 0})}return f.push({key:"trend",label:"At assistant (total)",color:"var(--ink-1)",values:r.map((g)=>Kf(g.atAssistant,g.messages)),kind:"line",tooltip:!1}),f},[r,l]);if(r.length===0)return z.jsxDEV("div",{className:"frustration-chart-empty",children:z.jsxDEV(Je,{title:u("frustration.no-model-match")},void 0,!1,void 0,this)},void 0,!1,void 0,this);return z.jsxDEV(vr,{slots:r.length,tickLabel:(d)=>r[d].label,series:i,height:340,format:(d)=>`${d}%`,formatTooltip:(d)=>`${d.toFixed(1)}%`,showTotal:!1,emptyLabel:"No frustrated messages for these models",tooltipExtra:(d)=>{let f=r[d];return z.jsxDEV("div",{className:"frustration-tooltip-extra",children:[z.jsxDEV("div",{className:"chart-tooltip-row chart-tooltip-total",children:[z.jsxDEV("span",{className:"chart-tooltip-label",children:u("frustration.legend-annoyed-any")},void 0,!1,void 0,this),z.jsxDEV("span",{className:"chart-tooltip-value",children:Da(f.annoyed,f.messages)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),z.jsxDEV("div",{className:"micro dim",children:[A(f.messages)," messages · judged ",A(f.judged)," (",Da(f.judged,f.messages),")",cd(f)?u("frustration.row-mostly-regex"):""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}},void 0,!1,void 0,this)}function nq({rows:r,familyColors:l,stale:i}){let d=At.useMemo(()=>[{key:"model",header:u("common.model"),sort:(f)=>f.label,render:(f)=>z.jsxDEV("span",{className:"row",title:f.key,children:[z.jsxDEV("span",{className:"swatch",style:{background:l.get(Hi(f))??Pa[0]}},void 0,!1,void 0,this),z.jsxDEV("span",{className:"cell-primary",children:f.label},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"ids",header:u("frustration.column-model-ids"),wrap:!0,render:(f)=>z.jsxDEV("span",{className:"mono micro dim",children:f.models.join(", ")},void 0,!1,void 0,this)},{key:"messages",header:u("frustration.column-messages"),align:"right",sort:(f)=>f.messages,render:(f)=>z.jsxDEV("span",{className:"num",children:A(f.messages)},void 0,!1,void 0,this)},{key:"judged",header:u("frustration.column-judged"),align:"right",sort:(f)=>f.messages>0?f.judged/f.messages:0,render:(f)=>cd(f)?z.jsxDEV("span",{className:"row frustration-judged",title:u("frustration.mostly-regex"),children:[z.jsxDEV(ct,{tone:"warn",children:u("frustration.regex-badge")},void 0,!1,void 0,this),z.jsxDEV("span",{className:"num dim",children:Da(f.judged,f.messages)},void 0,!1,void 0,this)]},void 0,!0,void 0,this):z.jsxDEV("span",{className:"num",children:Da(f.judged,f.messages)},void 0,!1,void 0,this)},{key:"annoyed",header:u("frustration.annoyed"),align:"right",sort:(f)=>Kf(f.annoyed,f.messages),render:(f)=>z.jsxDEV("span",{className:"num",title:u("frustration.messages-n",{count:A(f.annoyed)}),children:Da(f.annoyed,f.messages)},void 0,!1,void 0,this)},{key:"atAssistant",header:u("frustration.at-assistant"),align:"right",sort:(f)=>Kf(f.atAssistant,f.messages),render:(f)=>z.jsxDEV("span",{className:"num",title:u("frustration.messages-n",{count:A(f.atAssistant)}),children:Da(f.atAssistant,f.messages)},void 0,!1,void 0,this)},{key:"angry",header:u("frustration.angry"),align:"right",sort:(f)=>Kf(f.angry,f.messages),render:(f)=>z.jsxDEV("span",{className:f.angry>0?"num tone-bad":"num",title:u("frustration.messages-n",{count:A(f.angry)}),children:Da(f.angry,f.messages)},void 0,!1,void 0,this)}],[l]);return z.jsxDEV(fe,{index:3,title:u("frustration.model-versions"),description:u("frustration.table-description"),flush:!0,stale:i,children:z.jsxDEV(Ft,{rows:r,rowKey:(f)=>f.key,columns:d,dense:!0,empty:z.jsxDEV(Je,{title:u("frustration.no-model-match")},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function sq({overall:r,window:l}){let i=r.messages>0?(r.collapse/r.messages).toFixed(2):"–";return z.jsxDEV(z.Fragment,{children:[z.jsxDEV("div",{className:"card-titles",children:[z.jsxDEV("h2",{className:"page-title",children:u("frustration.model-side-title")},void 0,!1,void 0,this),z.jsxDEV("p",{className:"page-description",children:u("frustration.model-side-description",{window:l})},void 0,!1,void 0,this)]},void 0,!0,void 0,this),z.jsxDEV("div",{className:"frustration-model-notes",children:[z.jsxDEV(wa,{min:170,children:[z.jsxDEV(ie,{label:u("frustration.model-turns"),title:u("frustration.model-turns-title"),value:A(r.messages)},void 0,!1,void 0,this),z.jsxDEV(ie,{label:u("frustration.model-breakdown"),title:u("frustration.model-breakdown-title"),value:Da(r.breakdown,r.messages),hint:u("frustration.turns-n",{count:A(r.breakdown)})},void 0,!1,void 0,this),z.jsxDEV(ie,{label:u("frustration.model-mean"),title:u("frustration.model-mean-title"),value:i,hint:u("frustration.model-hint-mean",{value:i})},void 0,!1,void 0,this),z.jsxDEV(ie,{label:u("frustration.model-self-blame"),title:u("frustration.model-self-blame-title"),value:Da(r.blamed,r.messages)},void 0,!1,void 0,this),z.jsxDEV(ie,{label:u("frustration.model-hedge"),title:u("frustration.model-hedge-title"),value:Da(r.hedged,r.messages)},void 0,!1,void 0,this),z.jsxDEV(ie,{label:u("frustration.model-spiral"),title:u("frustration.model-spiral-title"),value:Da(r.spiraled,r.messages)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),r.unscored>0&&z.jsxDEV("p",{className:"micro dim",children:u("frustration.model-unscored-line",{count:A(r.unscored)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function sn(r,l){return l>0?r/l*100:0}function lq({models:r,series:l,range:i,stale:d}){let f=aa(i),g=At.useMemo(()=>w2(r),[r]),v=At.useMemo(()=>oo(i,l.map((y)=>y.timestamp),f.bucketMs),[l,i,f.bucketMs]),h=At.useMemo(()=>new Map(l.map((y)=>[y.timestamp,y])),[l]),m=At.useMemo(()=>[{key:"breakdown",label:u("frustration.model-legend-breakdown"),color:"var(--chart-primary)",values:v.map((y)=>{let b=h.get(y);return b&&b.messages>0?sn(b.breakdown,b.messages):null})}],[v,h]),S=At.useMemo(()=>[...r].sort((y,b)=>sn(b.breakdown,b.messages)-sn(y.breakdown,y.messages)||b.messages-y.messages).slice(0,12),[r]);if(r.length===0)return z.jsxDEV(fe,{index:4,title:u("frustration.model-by-model"),stale:d,children:z.jsxDEV(Je,{title:u("frustration.model-no-turns"),hint:u("frustration.model-try-longer-range")},void 0,!1,void 0,this)},void 0,!1,void 0,this);return z.jsxDEV(z.Fragment,{children:[z.jsxDEV(fe,{index:4,title:u("frustration.model-by-model"),description:u("frustration.model-by-model-description"),stale:d,children:z.jsxDEV(Ts,{max:100,items:S.map((y)=>({key:y.key,label:y.label,value:sn(y.breakdown,y.messages),display:Da(y.breakdown,y.messages),color:g.get(Hi(y))??Pa[0]}))},void 0,!1,void 0,this)},void 0,!1,void 0,this),z.jsxDEV(fe,{index:5,title:u("frustration.model-over-time"),description:u("frustration.model-over-time-description"),actions:z.jsxDEV(ia,{items:m.map((y)=>({key:y.key,label:y.label,color:y.color}))},void 0,!1,void 0,this),stale:d,children:z.jsxDEV(_o,{buckets:v,bucketMs:f.bucketMs,series:m,height:260,yMax:100,format:(y)=>`${y}%`,formatTooltip:(y)=>`${y.toFixed(1)}%`,emptyLabel:u("frustration.model-no-turns")},void 0,!1,void 0,this)},void 0,!1,void 0,this),z.jsxDEV(iq,{rows:r,familyColors:g,stale:d},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function iq({rows:r,familyColors:l,stale:i}){let d=At.useMemo(()=>[{key:"model",header:u("common.model"),sort:(f)=>f.label,render:(f)=>z.jsxDEV("span",{className:"row",title:f.key,children:[z.jsxDEV("span",{className:"swatch",style:{background:l.get(Hi(f))??Pa[0]}},void 0,!1,void 0,this),z.jsxDEV("span",{className:"cell-primary",children:f.label},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"ids",header:u("frustration.column-model-ids"),wrap:!0,render:(f)=>z.jsxDEV("span",{className:"mono micro dim",children:f.models.join(", ")},void 0,!1,void 0,this)},{key:"turns",header:u("frustration.column-turns"),align:"right",sort:(f)=>f.messages,render:(f)=>z.jsxDEV("span",{className:"num",children:A(f.messages)},void 0,!1,void 0,this)},{key:"selfBlame",header:u("frustration.model-self-blame"),align:"right",sort:(f)=>sn(f.blamed,f.messages),render:(f)=>z.jsxDEV("span",{className:"num",title:u("frustration.turns-n",{count:A(f.blamed)}),children:Da(f.blamed,f.messages)},void 0,!1,void 0,this)},{key:"restatement",header:u("frustration.model-restatement"),title:u("frustration.model-restatement-title"),align:"right",sort:(f)=>sn(f.restated,f.messages),render:(f)=>z.jsxDEV("span",{className:"num",title:u("frustration.turns-n",{count:A(f.restated)}),children:Da(f.restated,f.messages)},void 0,!1,void 0,this)},{key:"hedge",header:u("frustration.model-hedge"),align:"right",sort:(f)=>sn(f.hedged,f.messages),render:(f)=>z.jsxDEV("span",{className:"num",title:u("frustration.turns-n",{count:A(f.hedged)}),children:Da(f.hedged,f.messages)},void 0,!1,void 0,this)},{key:"rambling",header:u("frustration.model-rambling"),title:u("frustration.model-rambling-title"),align:"right",sort:(f)=>sn(f.verbose,f.messages),render:(f)=>z.jsxDEV("span",{className:"num",title:u("frustration.turns-n",{count:A(f.verbose)}),children:Da(f.verbose,f.messages)},void 0,!1,void 0,this)},{key:"spiral",header:u("frustration.model-spiral"),align:"right",sort:(f)=>sn(f.spiraled,f.messages),render:(f)=>z.jsxDEV("span",{className:"num",title:u("frustration.turns-n",{count:A(f.spiraled)}),children:Da(f.spiraled,f.messages)},void 0,!1,void 0,this)},{key:"breakdown",header:u("frustration.model-breakdown"),align:"right",sort:(f)=>sn(f.breakdown,f.messages),render:(f)=>z.jsxDEV("span",{className:"num",title:u("frustration.turns-n",{count:A(f.breakdown)}),children:Da(f.breakdown,f.messages)},void 0,!1,void 0,this)},{key:"mean",header:u("frustration.column-mean"),align:"right",sort:(f)=>f.messages>0?f.collapse/f.messages:0,render:(f)=>z.jsxDEV("span",{className:"num",children:f.messages>0?(f.collapse/f.messages).toFixed(2):"–"},void 0,!1,void 0,this)}],[l]);return z.jsxDEV(fe,{index:6,title:u("frustration.model-table-title"),description:u("frustration.model-table-description"),flush:!0,stale:i,children:z.jsxDEV(Ft,{rows:r,rowKey:(f)=>f.key,columns:d,dense:!0,empty:z.jsxDEV(Je,{title:u("frustration.model-no-turns")},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function uq({sessions:r,stale:l}){let i=At.useMemo(()=>[{key:"session",header:u("frustration.column-session"),render:(d)=>z.jsxDEV("span",{className:"stack",title:d.sessionFile,children:[z.jsxDEV("span",{className:"cell-primary mono micro",children:d.sessionFile.split(/[\\/]/).pop()??d.sessionFile},void 0,!1,void 0,this),z.jsxDEV("span",{className:"micro dim truncate",children:d.folder},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"models",header:u("common.model"),wrap:!0,render:(d)=>z.jsxDEV("span",{className:"mono micro dim",children:d.models.join(", ")},void 0,!1,void 0,this)},{key:"turns",header:u("frustration.column-turns"),align:"right",sort:(d)=>d.messages,render:(d)=>z.jsxDEV("span",{className:"num",children:A(d.messages)},void 0,!1,void 0,this)},{key:"breakdown",header:u("frustration.model-breakdown"),align:"right",sort:(d)=>sn(d.breakdown,d.messages),render:(d)=>z.jsxDEV("span",{className:"num",title:u("frustration.turns-n",{count:A(d.breakdown)}),children:Da(d.breakdown,d.messages)},void 0,!1,void 0,this)},{key:"mean",header:u("frustration.column-mean"),align:"right",sort:(d)=>d.messages>0?d.collapse/d.messages:0,render:(d)=>z.jsxDEV("span",{className:"num",children:d.messages>0?(d.collapse/d.messages).toFixed(2):"–"},void 0,!1,void 0,this)},{key:"toolErrors",header:u("frustration.column-tool-errors"),align:"right",sort:(d)=>d.toolErrors,render:(d)=>z.jsxDEV("span",{className:d.toolErrors>0?"num tone-bad":"num",children:A(d.toolErrors)},void 0,!1,void 0,this)}],[]);return z.jsxDEV(fe,{index:7,title:u("frustration.model-sessions"),description:u("frustration.model-sessions-description"),flush:!0,stale:l,children:z.jsxDEV(Ft,{rows:r,rowKey:(d)=>d.sessionFile,columns:i,dense:!0,empty:z.jsxDEV(Je,{title:u("frustration.model-no-turns")},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var Qf=_(Ke(),1);var Yt=_(te(),1),dq=86400000,cq={snapcompact:"Snapcompact imaged tool results",compaction:"Snapcompact compaction (context freed)"};function C2({active:r,range:l}){let[i,d]=Qf.useState(null),f=zt(["gain",l,i],({signal:L})=>yI(l,i,L),{enabled:r}),g=aa(l),v=f.data,h=Qf.useMemo(()=>{let L=(v?.timeSeries??[]).map((O)=>({...O,timestamp:Date.parse(`${O.date}T00:00:00`)})),T=oo(l,L.map((O)=>O.timestamp),dq),C=ha(L,T,(O)=>O.total),I=0,R=C.map((O)=>I+=O);return{buckets:T,daily:C,cumulative:R}},[v,l]),m=Qf.useMemo(()=>{if(!v)return[];let L=v.overall.savedTokens;return Object.keys(v.bySource).map((T)=>({...v.bySource[T],source:T,share:L>0?v.bySource[T].savedTokens/L:0}))},[v]),S=v?.projects??[],y=i!==null&&!S.includes(i)?[i,...S]:S,b=[{key:"daily",label:u("gain.saved-per-day"),color:"var(--chart-primary)",values:h.daily},{key:"cumulative",label:u("gain.cumulative"),color:"var(--chart-secondary)",values:h.cumulative,kind:"line",axis:"right"}];return Yt.jsxDEV("div",{className:"page",children:[Yt.jsxDEV(la,{title:u("gain.title"),description:i?u("gain.description-scoped",{project:i,window:u(g.windowKey)}):u("gain.description",{window:u(g.windowKey)}),actions:y.length>0&&Yt.jsxDEV("select",{className:"input","aria-label":u("common.project"),value:i??"",onChange:(L)=>d(L.target.value||null),style:{maxWidth:320},children:[Yt.jsxDEV("option",{value:"",children:u("gain.all-projects")},void 0,!1,void 0,this),y.map((L)=>Yt.jsxDEV("option",{value:L,children:L},L,!1,void 0,this))]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Yt.jsxDEV(_e,{query:f,skeleton:Yt.jsxDEV(qt,{height:96},void 0,!1,void 0,this),isEmpty:(L)=>L.overall.hits===0&&L.timeSeries.length===0,empty:Yt.jsxDEV(fe,{children:Yt.jsxDEV(Je,{title:i?u("gain.empty-title-scoped",{project:i,window:u(g.windowKey)}):u("gain.empty-title",{window:u(g.windowKey)}),hint:l==="all"?u("gain.empty-hint-all"):u("gain.empty-hint-longer-range")},void 0,!1,void 0,this)},void 0,!1,void 0,this),children:({overall:L})=>Yt.jsxDEV(Yt.Fragment,{children:[Yt.jsxDEV("div",{"data-stale":f.stale,children:Yt.jsxDEV(wa,{min:180,children:[Yt.jsxDEV(ie,{label:u("gain.saved-tokens"),value:se(L.savedTokens),hint:A(L.savedTokens),spark:h.daily},void 0,!1,void 0,this),Yt.jsxDEV(ie,{label:u("gain.saved-bytes"),value:kb(L.savedBytes)},void 0,!1,void 0,this),Yt.jsxDEV(ie,{label:u("gain.reduction"),title:u("gain.reduction-title"),value:L.reductionPercent!==null?Ge(L.reductionPercent):"–",hint:L.reductionPercent===null?u("gain.reduction-unknown"):void 0},void 0,!1,void 0,this),Yt.jsxDEV(ie,{label:u("gain.hits"),value:A(L.hits)},void 0,!1,void 0,this),Yt.jsxDEV(ie,{label:u("gain.saved-per-hit"),value:L.hits>0?se(L.savedTokens/L.hits):"–",hint:u("common.tokens")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Yt.jsxDEV(fe,{index:1,title:u("gain.savings-over-time"),description:u("gain.savings-over-time-description"),actions:Yt.jsxDEV(ia,{items:b.map((T)=>({key:T.key,label:T.label,color:T.color}))},void 0,!1,void 0,this),stale:f.stale,children:Yt.jsxDEV(vr,{slots:h.buckets.length,tickLabel:(T)=>Ff(h.buckets[T]),series:b,height:260,formatTooltip:A,formatRight:se},void 0,!1,void 0,this)},void 0,!1,void 0,this),Yt.jsxDEV(fe,{index:2,title:u("gain.by-source"),description:u("gain.by-source-description"),flush:!0,stale:f.stale,children:Yt.jsxDEV(Ft,{rows:m,rowKey:(T)=>T.source,columns:fq()},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function fq(){return[{key:"source",header:u("gain.source"),sort:(r)=>r.source,render:(r)=>Yt.jsxDEV("span",{className:"cell-primary",children:cq[r.source]},void 0,!1,void 0,this)},{key:"tokens",header:u("gain.saved-tokens"),align:"right",sort:(r)=>r.savedTokens,render:(r)=>Yt.jsxDEV("span",{title:A(r.savedTokens),children:Yt.jsxDEV(Ma,{value:r.share,max:1,display:se(r.savedTokens)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"share",header:u("common.share"),align:"right",sort:(r)=>r.share,render:(r)=>Yt.jsxDEV("span",{className:"num muted",children:Ge(r.share)},void 0,!1,void 0,this)},{key:"bytes",header:u("gain.saved-bytes"),align:"right",sort:(r)=>r.savedBytes,render:(r)=>Yt.jsxDEV("span",{className:"num",children:kb(r.savedBytes)},void 0,!1,void 0,this)},{key:"hits",header:u("gain.hits"),align:"right",sort:(r)=>r.hits,render:(r)=>Yt.jsxDEV("span",{className:"num",children:A(r.hits)},void 0,!1,void 0,this)},{key:"reduction",header:u("gain.reduction"),align:"right",sort:(r)=>r.reductionPercent??-1,render:(r)=>Yt.jsxDEV("span",{className:"num",children:r.reductionPercent!==null?Ge(r.reductionPercent):"–"},void 0,!1,void 0,this)}]}var fd=_(Ke(),1);var Ie=_(te(),1);function pq(){return[{value:"share",label:u("common.share")},{value:"requests",label:u("common.requests")}]}var mq=6;function I2({active:r,range:l}){let i=zt(["models",l],({signal:I})=>oI(l,I),{enabled:r}),d=aa(l),[f,g]=fd.useState("share"),[v,h]=Ur(),[m,S]=fd.useState(null),y=fd.useMemo(()=>i.data?hq(i.data,l):null,[i.data,l]),b=xq(d.bucketMs),L=fd.useMemo(()=>y?yq(y,m,b):[],[y,m,b]),T=(I)=>I.byModel.length===0,C=Ie.jsxDEV(Je,{title:u("models.empty-title"),hint:u("models.empty-hint")},void 0,!1,void 0,this);return Ie.jsxDEV("div",{className:"page",children:[Ie.jsxDEV(la,{title:u("common.models"),description:u("models.subtitle",{window:u(d.windowKey)})},void 0,!1,void 0,this),Ie.jsxDEV(_e,{query:i,skeleton:Ie.jsxDEV(Ga,{height:112,style:{borderRadius:12}},void 0,!1,void 0,this),isEmpty:T,empty:C,children:()=>y&&Ie.jsxDEV("div",{"data-stale":i.stale,children:Ie.jsxDEV(wa,{min:200,children:[Ie.jsxDEV(ie,{label:u("models.used"),value:A(y.models.length),hint:y.providerCount===1?u("models.across-providers-one",{count:A(y.providerCount)}):u("models.across-providers",{count:A(y.providerCount)})},void 0,!1,void 0,this),Ie.jsxDEV(ie,{label:u("models.most-used"),title:y.top?`${y.top.model} (${y.top.provider})`:void 0,value:y.top?y.top.model:"–",hint:y.top?u("models.most-used-hint",{share:Ge(y.top.totalRequests/Math.max(1,y.totalRequests)),provider:y.top.provider}):void 0},void 0,!1,void 0,this),Ie.jsxDEV(ie,{label:u("common.requests"),value:A(y.totalRequests),hint:u("models.failed-n",{count:A(y.failedRequests)}),spark:y.requestTotals},void 0,!1,void 0,this),Ie.jsxDEV(ie,{label:u("models.api-cost"),title:u("models.api-cost-title"),value:oa(y.totalCost,y.unpricedRequests),hint:y.unpricedRequests>0?u("models.unpriced-n",{count:A(y.unpricedRequests)}):void 0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ie.jsxDEV(fe,{index:1,title:u("models.request-share"),description:f==="share"?u("models.share-desc",{bucket:b}):u("models.count-desc",{bucket:b}),actions:Ie.jsxDEV(Oa,{size:"sm",options:pq(),value:f,onChange:g,"aria-label":u("models.share-mode-aria")},void 0,!1,void 0,this),stale:i.stale,children:Ie.jsxDEV(_e,{query:i,skeleton:Ie.jsxDEV(qt,{height:260},void 0,!1,void 0,this),isEmpty:T,empty:C,children:()=>y&&Ie.jsxDEV("div",{className:"stack",style:{gap:12},children:[Ie.jsxDEV(_o,{buckets:y.buckets,bucketMs:d.bucketMs,series:f==="share"?y.shareSeries:y.countSeries,hidden:v,height:260,yMax:f==="share"?1:void 0,format:f==="share"?(I)=>Ge(I,0):se,formatTooltip:f==="share"?(I)=>Ge(I):A,showTotal:f==="requests"},void 0,!1,void 0,this),Ie.jsxDEV(ia,{items:y.countSeries.map((I)=>({key:I.key,label:I.label,color:I.color,value:Ge(T2(I.values)/Math.max(1,T2(y.requestTotals)))})),hidden:v,onToggle:h},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ie.jsxDEV(fe,{index:2,title:u("models.all-models"),description:u("models.table-desc"),stale:i.stale,flush:!0,children:Ie.jsxDEV(_e,{query:i,skeleton:Ie.jsxDEV(pa,{rows:8},void 0,!1,void 0,this),isEmpty:T,empty:C,children:()=>y&&Ie.jsxDEV(Ft,{rows:y.models,rowKey:(I)=>ja(I.model,I.provider),columns:L,initialSort:{key:"requests",dir:"desc"},limit:25,onRowClick:(I)=>{let R=ja(I.model,I.provider);S((O)=>O===R?null:R)},selectedKey:m,expanded:(I)=>{let R=ja(I.model,I.provider);return R===m?Ie.jsxDEV(vq,{model:I,color:y.swatches.get(R)??"var(--chart-primary)",points:y.performance.get(R)??[],bucketMs:d.bucketMs,bucketWord:b},void 0,!1,void 0,this):null}},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function hq(r,l){let i=r.byModel,d=ug(i),f=gq(i),g=oo(l,r.modelSeries.map((R)=>R.timestamp)),v=ha(r.modelSeries,g,(R)=>R.requests),h={buckets:g,key:(R)=>ja(R.model,R.provider),label:(R)=>f.get(R)??R,value:(R)=>R.requests,colors:d},m=Xn(r.modelSeries,{...h,limit:mq}).map((R)=>({...R,values:R.values.map((O)=>O||null)})),S=m.map((R)=>({...R,values:R.values.map((O,P)=>O===null?null:O/v[P])})),y=new Map(Xn(r.modelSeries,h).map((R)=>[R.key,R.values])),b,L=0,T=0,C=0,I=0;for(let R of i){if(!b||R.totalRequests>b.totalRequests)b=R;L+=R.totalRequests,T+=R.failedRequests,C+=R.totalCost,I+=R.unpricedRequests}return{models:i,top:b,swatches:new Map(m.filter((R)=>R.key!=="__other__").map((R)=>[R.key,R.color])),labels:f,providerCount:new Set(i.map((R)=>R.provider)).size,totalRequests:L,failedRequests:T,totalCost:C,unpricedRequests:I,maxRequests:b?.totalRequests??0,buckets:g,requestTotals:v,countSeries:m,shareSeries:S,trends:y,performance:p2(r.modelPerformanceSeries)}}function gq(r){let l=new Map;for(let i of r)l.set(i.model,(l.get(i.model)??0)+1);return new Map(r.map((i)=>[ja(i.model,i.provider),(l.get(i.model)??0)>1?`${i.model} · ${i.provider}`:i.model]))}function yq(r,l,i){return[{key:"expand",header:"",width:28,render:(d)=>Ie.jsxDEV("span",{className:"models-chevron","data-open":ja(d.model,d.provider)===l,children:Ie.jsxDEV(tn,{size:14},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"model",header:u("common.model"),sort:(d)=>d.model,render:(d)=>Ie.jsxDEV(co,{lead:Ie.jsxDEV(an,{color:r.swatches.get(ja(d.model,d.provider))??fo},void 0,!1,void 0,this),primary:Ie.jsxDEV("span",{className:"mono",children:d.model},void 0,!1,void 0,this),secondary:d.provider},void 0,!1,void 0,this)},{key:"requests",header:u("common.requests"),align:"right",sort:(d)=>d.totalRequests,render:(d)=>Ie.jsxDEV(Ma,{value:d.totalRequests,max:r.maxRequests,display:A(d.totalRequests),color:r.swatches.get(ja(d.model,d.provider))??fo},void 0,!1,void 0,this)},{key:"cost",header:u("common.cost"),title:u("models.cost-title"),align:"right",sort:(d)=>d.totalCost,render:(d)=>Ie.jsxDEV("span",{className:"num",children:oa(d.totalCost,d.unpricedRequests)},void 0,!1,void 0,this)},{key:"tokens",header:u("common.tokens"),title:u("models.tokens-title"),align:"right",sort:(d)=>_i(d),render:(d)=>{let f=_i(d);return Ie.jsxDEV("span",{className:"num",title:A(f),children:se(f)},void 0,!1,void 0,this)}},{key:"cache",header:u("models.cache-rate"),title:u("models.cache-title"),align:"right",sort:(d)=>d.cacheRate,render:(d)=>Ie.jsxDEV("span",{className:"num",children:Ge(d.cacheRate)},void 0,!1,void 0,this)},{key:"errors",header:u("models.errors"),align:"right",sort:(d)=>d.errorRate,render:(d)=>d.failedRequests===0?Ie.jsxDEV("span",{className:"num dim",children:"0%"},void 0,!1,void 0,this):Ie.jsxDEV("span",{title:u("models.failed-n",{count:A(d.failedRequests)}),children:Ie.jsxDEV(ct,{tone:gr(d.errorRate),mono:!0,children:Mo(d.errorRate)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"tps",header:u("common.tokens-per-second"),title:u("models.tps-title"),align:"right",sort:(d)=>d.avgTokensPerSecond??-1,render:(d)=>Ie.jsxDEV("span",{className:"num",children:Gn(d.avgTokensPerSecond)},void 0,!1,void 0,this)},{key:"ttft",header:u("models.ttft"),title:u("models.ttft-title"),align:"right",sort:(d)=>d.avgTtft??-1,render:(d)=>Ie.jsxDEV("span",{className:"num",children:Ct(d.avgTtft)},void 0,!1,void 0,this)},{key:"trend",header:u("models.trend"),title:u("models.trend-title",{bucket:i}),width:112,render:(d)=>{let f=ja(d.model,d.provider),g=r.trends.get(f);return g?Ie.jsxDEV(sd,{values:g.map((v)=>v??0),color:r.swatches.get(f)??fo,width:96,height:22},void 0,!1,void 0,this):Ie.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this)}}]}function vq({model:r,color:l,points:i,bucketMs:d,bucketWord:f}){let[g,v]=Ur(),h=[{key:"tps",label:u("common.tokens-per-second"),color:l,kind:i.length>1?"line":"bars",values:i.map((m)=>m.avgTokensPerSecond)},{key:"ttft",label:u("models.ttft"),color:fo,kind:i.length>1?"line":"bars",axis:"right",dashed:!0,values:i.map((m)=>m.avgTtftSeconds)}];return Ie.jsxDEV("div",{className:"models-detail",children:[Ie.jsxDEV("div",{className:"models-detail-facts",children:[Ie.jsxDEV("div",{children:[Ie.jsxDEV("div",{className:"section-label",children:u("models.efficiency")},void 0,!1,void 0,this),Ie.jsxDEV(ko,{items:[{key:"err",label:u("common.error-rate"),value:Ie.jsxDEV("span",{className:`tone-${gr(r.errorRate)}`,children:[Mo(r.errorRate)," ",Ie.jsxDEV("span",{className:"dim",children:["(",u("models.failed-n",{count:A(r.failedRequests)}),")"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},{key:"cache",label:u("models.cache-rate"),value:Ge(r.cacheRate)},{key:"savings",label:u("models.cache-savings"),value:Ie.jsxDEV("span",{className:r.cacheSavings<0?"tone-bad":void 0,children:Ge(r.cacheSavings)},void 0,!1,void 0,this)},{key:"premium",label:u("common.premium-requests"),value:A(Math.round(r.totalPremiumRequests*100)/100)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ie.jsxDEV("div",{children:[Ie.jsxDEV("div",{className:"section-label",children:u("models.latency")},void 0,!1,void 0,this),Ie.jsxDEV(ko,{items:[{key:"dur",label:u("models.avg-duration"),value:Ct(r.avgDuration)},{key:"ttft",label:u("models.avg-ttft"),value:Ct(r.avgTtft)},{key:"tps",label:u("common.tokens-per-second"),value:Gn(r.avgTokensPerSecond)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ie.jsxDEV("div",{children:[Ie.jsxDEV("div",{className:"section-label",children:u("common.tokens")},void 0,!1,void 0,this),Ie.jsxDEV(ko,{items:[{key:"in",label:u("models.uncached-input"),value:se(r.totalInputTokens)},{key:"cr",label:u("common.cache-read"),value:se(r.totalCacheReadTokens)},{key:"cw",label:u("common.cache-write"),value:se(r.totalCacheWriteTokens)},{key:"out",label:u("common.output"),value:se(r.totalOutputTokens)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ie.jsxDEV("div",{className:"micro dim",children:u("models.first-last-seen",{first:ma(r.firstTimestamp),last:ma(r.lastTimestamp)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ie.jsxDEV("div",{className:"models-detail-chart",children:[Ie.jsxDEV("div",{className:"row",style:{justifyContent:"space-between"},children:[Ie.jsxDEV("div",{className:"section-label",style:{marginBottom:0},children:u("models.performance-per-bucket",{bucket:f})},void 0,!1,void 0,this),Ie.jsxDEV(ia,{items:h.map((m)=>({key:m.key,label:m.label,color:m.color})),hidden:g,onToggle:v},void 0,!1,void 0,this)]},void 0,!0,void 0,this),i.length===0?Ie.jsxDEV(Je,{title:u("models.no-samples-title"),hint:u("models.no-samples-hint")},void 0,!1,void 0,this):Ie.jsxDEV(_o,{buckets:i.map((m)=>m.timestamp),bucketMs:d,series:h,hidden:g,stacked:!1,height:240,format:se,formatTooltip:(m)=>u("models.tok-per-second",{value:Gn(m)}),formatRight:(m)=>`${Number(m.toFixed(2))}s`,tooltipExtra:(m)=>Ie.jsxDEV("div",{className:"chart-tooltip-row chart-tooltip-total",children:[Ie.jsxDEV("span",{className:"chart-tooltip-label",children:u("common.requests")},void 0,!1,void 0,this),Ie.jsxDEV("span",{className:"chart-tooltip-value",children:A(i[m].requests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function xq(r){if(r<3600000)return u("models.bucket-5m");if(r<86400000)return u("models.bucket-hour");return u("models.bucket-day")}function T2(r){let l=0;for(let i of r)l+=i??0;return l}var Wf=_(Ke(),1);var Ce=_(te(),1);function bq(){return[{value:"requests",label:u("common.requests")},{value:"tokens",label:u("common.tokens")},{value:"cost",label:u("common.cost")}]}var Sq={main:"overview.main-agent",subagent:"overview.subagents",advisor:"overview.advisor"},kq={main:"var(--chart-primary)",subagent:"var(--chart-secondary)",advisor:"#9d7bff"};function R2(){return[{key:"input",label:u("overview.uncached-input"),color:"#5b8cff"},{key:"cacheRead",label:u("common.cache-read"),color:"var(--chart-primary)"},{key:"cacheWrite",label:u("common.cache-write"),color:"#f5b54a"},{key:"output",label:u("common.output"),color:"var(--chart-secondary)"}]}function E2({active:r,range:l,onRequestClick:i}){let d=zt(["overview",l],({signal:b})=>aI(l,b),{enabled:r}),f=zt(["recent-requests"],({signal:b})=>jh(12,b),{enabled:r}),[g,v]=Wf.useState("requests"),h=aa(l),m=Wf.useMemo(()=>{let b=d.data?.timeSeries??[],L=oo(l,b.map((T)=>T.timestamp));return{buckets:L,requests:ha(b,L,(T)=>T.requests-T.errors),errors:ha(b,L,(T)=>T.errors),tokens:ha(b,L,(T)=>T.tokens),cost:ha(b,L,(T)=>T.cost),all:ha(b,L,(T)=>T.requests)}},[d.data,l]),S=Wf.useMemo(()=>{let b=d.data;if(!b)return null;return{usage:d2(b.byAgentType,b.bySideChannel),decisions:c2(b.bySideChannel)}},[d.data]),y=g==="requests"?[{key:"ok",label:u("overview.succeeded"),color:"var(--chart-primary)",values:m.requests},{key:"err",label:u("common.failed"),color:"var(--bad)",values:m.errors}]:g==="tokens"?[{key:"tokens",label:u("common.tokens"),color:"var(--chart-primary)",values:m.tokens}]:[{key:"cost",label:u("overview.api-equivalent"),color:"var(--chart-secondary)",values:m.cost}];return Ce.jsxDEV("div",{className:"page",children:[Ce.jsxDEV(la,{title:u("overview.title"),description:u("overview.description",{window:u(h.windowKey)})},void 0,!1,void 0,this),Ce.jsxDEV(_e,{query:d,skeleton:Ce.jsxDEV(qt,{height:112},void 0,!1,void 0,this),children:({overall:b})=>Ce.jsxDEV("div",{"data-stale":d.stale,className:"stack",style:{gap:16},children:[Ce.jsxDEV(wa,{min:190,children:[Ce.jsxDEV(ie,{label:u("overview.api-equivalent-cost"),title:u("overview.api-cost-title"),value:oa(b.totalCost,b.unpricedRequests),hint:b.unpricedRequests>0?u("overview.unpriced-n",{count:A(b.unpricedRequests)}):void 0,spark:m.cost,sparkColor:"var(--chart-secondary)"},void 0,!1,void 0,this),Ce.jsxDEV(ie,{label:u("common.requests"),value:A(b.totalRequests),hint:u("overview.failed-n",{count:A(b.failedRequests)}),spark:m.all},void 0,!1,void 0,this),Ce.jsxDEV(ie,{label:u("overview.conversation-tokens"),title:u("overview.tokens-title"),value:se(_i(b)),hint:u("overview.output-n",{count:se(b.totalOutputTokens)}),spark:m.tokens},void 0,!1,void 0,this),Ce.jsxDEV(ie,{label:u("overview.cache-rate"),title:u("overview.cache-rate-title"),value:Ge(b.cacheRate),hint:u("overview.cache-saved",{value:Ge(b.cacheSavings)})},void 0,!1,void 0,this),Ce.jsxDEV(ie,{label:u("common.error-rate"),value:Mo(b.errorRate),hint:u("overview.succeeded-n",{count:A(b.successfulRequests)}),spark:m.errors,sparkColor:"var(--bad)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ce.jsxDEV(wa,{min:140,children:[Ce.jsxDEV(ie,{size:"sm",label:u("overview.uncached-input"),value:se(b.totalInputTokens)},void 0,!1,void 0,this),Ce.jsxDEV(ie,{size:"sm",label:u("common.cache-read"),value:se(b.totalCacheReadTokens)},void 0,!1,void 0,this),Ce.jsxDEV(ie,{size:"sm",label:u("common.cache-write"),value:se(b.totalCacheWriteTokens)},void 0,!1,void 0,this),Ce.jsxDEV(ie,{size:"sm",label:u("common.output"),value:se(b.totalOutputTokens)},void 0,!1,void 0,this),Ce.jsxDEV(ie,{size:"sm",label:u("common.premium-requests"),value:A(Math.round(b.totalPremiumRequests*100)/100)},void 0,!1,void 0,this),Ce.jsxDEV(ie,{size:"sm",label:u("common.tokens-per-second"),value:Gn(b.avgTokensPerSecond)},void 0,!1,void 0,this),Ce.jsxDEV(ie,{size:"sm",label:u("overview.avg-latency"),value:Ct(b.avgDuration)},void 0,!1,void 0,this),Ce.jsxDEV(ie,{size:"sm",label:u("overview.avg-ttft"),value:Ct(b.avgTtft)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Ce.jsxDEV("div",{className:"grid grid-main-side",children:[Ce.jsxDEV(fe,{index:1,title:u("overview.activity"),description:h.bucketMs<3600000?u("overview.per-5m"):h.bucketMs<86400000?u("overview.per-hour"):u("overview.per-day"),actions:Ce.jsxDEV(Oa,{size:"sm",options:bq(),value:g,onChange:v},void 0,!1,void 0,this),stale:d.stale,children:Ce.jsxDEV(_e,{query:d,skeleton:Ce.jsxDEV(qt,{height:260},void 0,!1,void 0,this),children:()=>Ce.jsxDEV(_o,{buckets:m.buckets,bucketMs:h.bucketMs,series:y,height:260,format:g==="cost"?(b)=>oa(b,0):se},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ce.jsxDEV(fe,{index:2,title:u("overview.token-mix"),description:u("overview.token-mix-description"),stale:d.stale,children:Ce.jsxDEV(_e,{query:d,skeleton:Ce.jsxDEV(qt,{height:260},void 0,!1,void 0,this),children:({overall:b})=>{let L={input:b.totalInputTokens,cacheRead:b.totalCacheReadTokens,cacheWrite:b.totalCacheWriteTokens,output:b.totalOutputTokens},T=_i(b);return Ce.jsxDEV("div",{className:"stack",style:{gap:18},children:[Ce.jsxDEV("div",{className:"stack",style:{gap:10},children:[Ce.jsxDEV($n,{segments:R2().map((C)=>({key:C.key,label:C.label,value:L[C.key],color:C.color}))},void 0,!1,void 0,this),Ce.jsxDEV(ia,{items:R2().map((C)=>({key:C.key,label:C.label,color:C.color,value:T>0?Ge(L[C.key]/T,0):"–"}))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),S&&Ce.jsxDEV("div",{className:"stack",style:{gap:10},children:[Ce.jsxDEV("div",{className:"section-label",style:{marginBottom:0},children:"By source"},void 0,!1,void 0,this),Ce.jsxDEV(D2,{view:S.usage},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),S&&S.decisions.segments.length>0&&Ce.jsxDEV(fe,{index:3,title:"Decision models",description:"Where decision-model tokens went, by use case",stale:d.stale,children:Ce.jsxDEV(D2,{view:S.decisions,wide:!0},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ce.jsxDEV(fe,{index:4,title:Ce.jsxDEV(Ce.Fragment,{children:[Ce.jsxDEV(Hn,{tone:"live",pulse:!0},void 0,!1,void 0,this)," ",u("overview.latest-requests")]},void 0,!0,void 0,this),description:u("overview.latest-requests-description"),actions:Ce.jsxDEV("a",{className:"btn","data-size":"sm","data-variant":"ghost",href:`#/requests?range=${l}`,children:[u("overview.all-requests")," ",Ce.jsxDEV(sf,{size:13},void 0,!1,void 0,this)]},void 0,!0,void 0,this),flush:!0,children:Ce.jsxDEV(_e,{query:f,skeleton:Ce.jsxDEV(pa,{rows:8},void 0,!1,void 0,this),children:(b)=>Ce.jsxDEV(Ft,{rows:b,rowKey:(L)=>L.id??`${L.sessionFile}:${L.entryId}`,onRowClick:(L)=>L.id!==void 0&&i(L.id),columns:Lq(),dense:!0},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function A2(r){if(r.kind==="agent")return u(Sq[r.agentType]);return r.category.charAt(0).toUpperCase()+r.category.slice(1)}function M2(r,l){if(r.kind==="agent")return kq[r.agentType];return l.get(r.category)??fo}function D2({view:r,wide:l=!1}){let{segments:i,categoryColors:d}=r;return Ce.jsxDEV("div",{className:"stack",style:{gap:10},children:[Ce.jsxDEV($n,{segments:i.map((f)=>({key:f.key,label:A2(f),value:f.tokens,color:M2(f,d)}))},void 0,!1,void 0,this),Ce.jsxDEV("div",{className:l?"grid grid-3":"stack",style:{gap:l?"10px 28px":10},children:i.map((f)=>Ce.jsxDEV("div",{className:"row",style:{justifyContent:"space-between"},children:[Ce.jsxDEV("span",{className:"row",style:{minWidth:0},children:[Ce.jsxDEV("span",{className:"swatch",style:{background:M2(f,d)}},void 0,!1,void 0,this),Ce.jsxDEV("span",{className:"truncate",children:A2(f)},void 0,!1,void 0,this),Ce.jsxDEV("span",{className:"dim num",style:{flexShrink:0},children:u("overview.requests-short",{count:A(f.requests)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ce.jsxDEV("span",{className:"row",style:{flexShrink:0},children:[Ce.jsxDEV("span",{className:"dim num",children:se(f.tokens)},void 0,!1,void 0,this),Ce.jsxDEV("span",{className:"num",style:{minWidth:48,textAlign:"right"},children:Ge(f.share)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},f.key,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Lq(){return[{key:"model",header:u("common.model"),render:(r)=>Ce.jsxDEV(co,{primary:r.model,secondary:r.provider},void 0,!1,void 0,this)},{key:"time",header:u("overview.when"),render:(r)=>Ce.jsxDEV("span",{className:"muted",children:ma(r.timestamp)},void 0,!1,void 0,this)},{key:"tokens",header:u("common.tokens"),align:"right",render:(r)=>Ce.jsxDEV("span",{className:"num",children:A(r.usage.totalTokens)},void 0,!1,void 0,this)},{key:"cost",header:u("common.cost"),align:"right",render:(r)=>Ce.jsxDEV("span",{className:"num",children:ql(r,4)},void 0,!1,void 0,this)},{key:"duration",header:u("common.duration"),align:"right",render:(r)=>Ce.jsxDEV("span",{className:"num",children:Ct(r.duration)},void 0,!1,void 0,this)},{key:"status",header:u("overview.status"),align:"right",render:(r)=>r.errorMessage?Ce.jsxDEV(ct,{tone:"bad",children:u("common.failed")},void 0,!1,void 0,this):Ce.jsxDEV(ct,{tone:"ok",children:u("overview.ok")},void 0,!1,void 0,this)}]}var ln=_(Ke(),1);var et=_(te(),1),wq=100,N2=8;function q2({active:r,range:l}){let i=zt(["projects",l],({signal:I})=>mI(l,I),{enabled:r}),[d,f]=ln.useState(""),[g,v]=ln.useState(!0),h=ln.useDeferredValue(d.trim().toLowerCase()),m=aa(l),S=ln.useMemo(()=>m2(i.data??[]),[i.data]),y=ln.useMemo(()=>g?S.rows.filter((I)=>!I.temporary):S.rows,[S,g]),b=ln.useMemo(()=>h?y.filter((I)=>I.folder.toLowerCase().includes(h)):y,[y,h]),L=ln.useMemo(()=>({cost:[...y].sort((I,R)=>R.totalCost-I.totalCost).slice(0,N2),requests:[...y].sort((I,R)=>R.totalRequests-I.totalRequests).slice(0,N2)}),[y]),T=et.jsxDEV(Je,{title:u(S.rows.length===0?"projects.empty-no-folders":"projects.empty-only-temporary")},void 0,!1,void 0,this),C=ln.useMemo(()=>Cq(S.maxRequests,S.maxCost),[S]);return et.jsxDEV("div",{className:"page",children:[et.jsxDEV(la,{title:u("projects.title"),description:u("projects.description",{window:u(m.windowKey)})},void 0,!1,void 0,this),et.jsxDEV(_e,{query:i,skeleton:et.jsxDEV(qt,{height:96},void 0,!1,void 0,this),children:()=>et.jsxDEV("div",{"data-stale":i.stale,children:et.jsxDEV(wa,{min:180,children:[et.jsxDEV(ie,{label:u("projects.folders"),value:A(S.rows.length),hint:S.temporaryCount>0?u("projects.temporary-n",{count:A(S.temporaryCount)}):void 0},void 0,!1,void 0,this),et.jsxDEV(ie,{label:u("common.requests"),value:A(S.totalRequests),hint:u("projects.failed-n",{count:A(S.failedRequests)})},void 0,!1,void 0,this),et.jsxDEV(ie,{label:u("projects.api-equivalent-cost"),title:u("projects.api-equivalent-cost-hint"),value:oa(S.totalCost,S.unpricedRequests),hint:S.unpricedRequests>0?u("projects.unpriced-n",{count:A(S.unpricedRequests)}):void 0},void 0,!1,void 0,this),et.jsxDEV(ie,{label:u("projects.conversation-tokens"),title:u("projects.conversation-tokens-hint"),value:se(S.conversationTokens)},void 0,!1,void 0,this),et.jsxDEV(ie,{label:u("projects.cache-rate"),title:u("projects.cache-rate-hint-all"),value:Ge(S.cacheRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),et.jsxDEV("div",{className:"grid grid-2",children:[et.jsxDEV(fe,{index:1,title:u("projects.top-by-cost"),description:u("projects.top-by-cost-description"),stale:i.stale,children:et.jsxDEV(_e,{query:i,skeleton:et.jsxDEV(qt,{height:236},void 0,!1,void 0,this),isEmpty:()=>L.cost.length===0,empty:T,children:()=>et.jsxDEV(Ts,{items:L.cost.map((I)=>({key:I.folder,label:et.jsxDEV("span",{className:"mono",children:zr(I.folder)},void 0,!1,void 0,this),value:I.totalCost,display:`${oa(I.totalCost,I.unpricedRequests)} · ${Ge(I.costShare)}`,color:"var(--chart-secondary)"})),onSelect:f},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),et.jsxDEV(fe,{index:2,title:u("projects.top-by-requests"),description:u("projects.top-by-requests-description"),stale:i.stale,children:et.jsxDEV(_e,{query:i,skeleton:et.jsxDEV(qt,{height:236},void 0,!1,void 0,this),isEmpty:()=>L.requests.length===0,empty:T,children:()=>et.jsxDEV(Ts,{items:L.requests.map((I)=>({key:I.folder,label:et.jsxDEV("span",{className:"mono",children:zr(I.folder)},void 0,!1,void 0,this),value:I.totalRequests,display:`${A(I.totalRequests)} · ${Ge(I.requestShare)}`})),onSelect:f},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),et.jsxDEV(fe,{index:3,title:u("projects.folders"),description:i.data?b.length===S.rows.length?u("projects.folders-n",{count:A(S.rows.length)}):u("projects.folders-of-n",{count:A(b.length),total:A(S.rows.length)}):void 0,actions:et.jsxDEV(et.Fragment,{children:[S.temporaryCount>0&&et.jsxDEV("label",{className:"check",title:u("projects.hide-temporary-hint"),children:[et.jsxDEV("input",{type:"checkbox",checked:g,onChange:(I)=>v(I.target.checked)},void 0,!1,void 0,this),u("projects.hide-temporary",{count:A(S.temporaryCount)})]},void 0,!0,void 0,this),et.jsxDEV(Fn,{value:d,onChange:f,placeholder:u("projects.filter-placeholder"),width:240},void 0,!1,void 0,this)]},void 0,!0,void 0,this),flush:!0,stale:i.stale,children:et.jsxDEV(_e,{query:i,skeleton:et.jsxDEV(pa,{rows:10},void 0,!1,void 0,this),children:()=>et.jsxDEV(Ft,{rows:b,rowKey:(I)=>I.folder,columns:C,initialSort:{key:"cost",dir:"desc"},limit:wq,dense:!0,empty:et.jsxDEV(Je,{title:u(S.rows.length===0?"projects.empty-no-folders":"projects.empty-no-match"),hint:S.rows.length===0?u("projects.hint-longer-range"):g&&S.temporaryCount>0?u("projects.hint-temporary-hidden"):void 0},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Cq(r,l){return[{key:"folder",header:u("projects.folder"),sort:(i)=>i.folder,render:(i)=>et.jsxDEV("span",{className:"row projects-folder",title:i.folder||u("common.root"),children:[et.jsxDEV("span",{className:"mono truncate",children:zr(i.folder)},void 0,!1,void 0,this),i.temporary&&et.jsxDEV(ct,{children:u("projects.temp")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"requests",header:u("common.requests"),align:"right",sort:(i)=>i.totalRequests,render:(i)=>et.jsxDEV("span",{title:u("projects.share-of-requests",{share:Ge(i.requestShare)}),children:et.jsxDEV(Ma,{value:i.totalRequests,max:r,display:A(i.totalRequests)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"cost",header:u("common.cost"),title:u("projects.api-equivalent-cost-rates"),align:"right",sort:(i)=>i.totalCost,render:(i)=>et.jsxDEV("span",{title:u("projects.share-of-cost",{share:Ge(i.costShare)}),children:et.jsxDEV(Ma,{value:i.totalCost,max:l,display:oa(i.totalCost,i.unpricedRequests),color:"var(--chart-secondary)"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"tokens",header:u("common.tokens"),title:u("projects.conversation-tokens-hint"),align:"right",sort:(i)=>i.conversationTokens,render:(i)=>et.jsxDEV("span",{className:"num",title:A(i.conversationTokens),children:se(i.conversationTokens)},void 0,!1,void 0,this)},{key:"cacheRate",header:u("projects.cache-rate"),title:u("projects.cache-rate-hint"),align:"right",sort:(i)=>i.cacheRate,render:(i)=>et.jsxDEV("span",{className:"num",children:Ge(i.cacheRate)},void 0,!1,void 0,this)},{key:"cacheSavings",header:u("projects.cache-savings"),title:u("projects.cache-savings-hint"),align:"right",sort:(i)=>i.cacheSavings,render:(i)=>et.jsxDEV("span",{className:`num ${i.cacheSavings<0?"tone-bad":"muted"}`,children:Ge(i.cacheSavings)},void 0,!1,void 0,this)},{key:"errorRate",header:u("projects.errors"),align:"right",sort:(i)=>i.errorRate,render:(i)=>et.jsxDEV("span",{title:u("projects.failed-n",{count:A(i.failedRequests)}),children:et.jsxDEV(ct,{tone:i.failedRequests>0?gr(i.errorRate):"neutral",mono:!0,children:Mo(i.errorRate)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"duration",header:u("projects.avg-duration"),align:"right",sort:(i)=>i.avgDuration??-1,render:(i)=>et.jsxDEV("span",{className:"num",children:Ct(i.avgDuration)},void 0,!1,void 0,this)},{key:"last",header:u("projects.last-active"),align:"right",sort:(i)=>i.lastTimestamp,render:(i)=>et.jsxDEV("span",{className:"dim",children:ma(i.lastTimestamp)},void 0,!1,void 0,this)}]}var Ho=_(Ke(),1);var ae=_(te(),1);function Tq(){return[{value:"tokens",label:u("common.tokens")},{value:"cost",label:u("common.cost"),title:u("providers.cost-title")},{value:"requests",label:u("common.requests")}]}var O2=6;function B2(){return[{key:"input",label:u("ui.uncached-input"),color:"#5b8cff"},{key:"cacheRead",label:u("common.cache-read"),color:"var(--chart-primary)"},{key:"cacheWrite",label:u("common.cache-write"),color:"#f5b54a"},{key:"output",label:u("common.output"),color:"var(--chart-secondary)"}]}function P2({active:r,range:l}){let i=zt(["providers",l],({signal:P})=>SI(l,P),{enabled:r}),[d,f]=Ho.useState("tokens"),[g,v]=Ur(),h=aa(l),m=zt(["provider-windows",l],({signal:P})=>hb(l,null,P),{enabled:r}),[S,y]=Ho.useState(null),b=Iq(m.data?.windowInsights??[],S),L=b?.provider??null,T=zt(["provider-windows",l,L],({signal:P})=>hb(l,L,P),{enabled:r&&L!==null}),C=Ho.useMemo(()=>{let P=i.data?.providers??[],Y=i.data?.series??[],W=zi(P.map((ee)=>({key:ee.provider,weight:ee.totalTokens}))),ue=oo(l,Y.map((ee)=>ee.timestamp)),Z={requests:0,failed:0,tokens:0,cost:0,unpriced:0};for(let ee of P)Z.requests+=ee.totalRequests,Z.failed+=ee.failedRequests,Z.tokens+=ee.totalTokens,Z.cost+=ee.totalCost,Z.unpriced+=ee.unpricedRequests;let ce=(ee)=>Xn(Y,{buckets:ue,key:(G)=>G.provider,value:ee,limit:O2,colors:W}).map((G)=>({...G,values:G.values.map((V)=>V||null)}));return{colors:W,buckets:ue,totals:Z,burn:{tokens:ce((ee)=>ee.totalTokens),cost:ce((ee)=>ee.cost),requests:ce((ee)=>ee.requests)},spark:{tokens:ha(Y,ue,(ee)=>ee.totalTokens),cost:ha(Y,ue,(ee)=>ee.cost),requests:ha(Y,ue,(ee)=>ee.requests)},topProvider:P.reduce((ee,G)=>ee===null||G.totalTokens>ee.totalTokens?G:ee,null)}},[i.data,l]),I=C.burn[d],R=d==="cost"?(P)=>Pt(P):se,O=C.totals;return ae.jsxDEV("div",{className:"page",children:[ae.jsxDEV(la,{title:u("common.providers"),description:u("providers.description",{window:u(h.windowKey)})},void 0,!1,void 0,this),ae.jsxDEV(_e,{query:i,skeleton:ae.jsxDEV(qt,{height:112},void 0,!1,void 0,this),children:({providers:P})=>ae.jsxDEV("div",{"data-stale":i.stale,children:ae.jsxDEV(wa,{min:190,children:[ae.jsxDEV(ie,{label:u("common.providers"),value:A(P.length),hint:C.topProvider?u("providers.most-tokens",{provider:C.topProvider.provider}):void 0},void 0,!1,void 0,this),ae.jsxDEV(ie,{label:u("common.requests"),value:A(O.requests),hint:u("providers.failed-n",{count:A(O.failed)}),spark:C.spark.requests},void 0,!1,void 0,this),ae.jsxDEV(ie,{label:u("common.tokens"),title:u("providers.tokens-title"),value:se(O.tokens),spark:C.spark.tokens},void 0,!1,void 0,this),ae.jsxDEV(ie,{label:u("providers.api-equivalent-cost"),title:u("providers.api-cost-title"),value:oa(O.cost,O.unpriced),hint:O.unpriced>0?u("providers.unpriced-n",{count:A(O.unpriced)}):void 0,spark:C.spark.cost,sparkColor:"var(--chart-secondary)"},void 0,!1,void 0,this),ae.jsxDEV(ie,{label:u("common.error-rate"),value:Mo(O.requests>0?O.failed/O.requests:0),hint:u("providers.succeeded-n",{count:A(O.requests-O.failed)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),ae.jsxDEV(fe,{index:1,title:u("providers.totals"),description:O.unpriced>0?u(O.unpriced===1?"providers.totals-description-unpriced-one":"providers.totals-description-unpriced-n",{count:A(O.unpriced)}):u("providers.totals-description"),flush:!0,stale:i.stale,children:ae.jsxDEV(_e,{query:i,skeleton:ae.jsxDEV(pa,{rows:6},void 0,!1,void 0,this),children:({providers:P})=>ae.jsxDEV(Rq,{providers:P,colors:C.colors},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),ae.jsxDEV("div",{className:"grid grid-main-side",children:[ae.jsxDEV(fe,{index:2,title:u("providers.burn"),description:d==="cost"&&O.unpriced>0?u("providers.burn-estimate-description",{bucket:h.bucketMs<86400000?u("providers.bucket-hour"):u("providers.bucket-day")}):u("providers.burn-description",{bucket:h.bucketMs<3600000?u("providers.bucket-5m"):h.bucketMs<86400000?u("providers.bucket-hour"):u("providers.bucket-day"),count:O2}),actions:ae.jsxDEV(Oa,{size:"sm",options:Tq(),value:d,onChange:f},void 0,!1,void 0,this),stale:i.stale,children:ae.jsxDEV(_e,{query:i,skeleton:ae.jsxDEV(qt,{height:260},void 0,!1,void 0,this),children:()=>ae.jsxDEV("div",{className:"stack",style:{gap:12},children:[ae.jsxDEV(_o,{buckets:C.buckets,bucketMs:h.bucketMs,series:I,hidden:g,height:260,format:R,formatTooltip:d==="cost"?(P)=>Pt(P):A,emptyLabel:u("providers.no-provider-activity")},void 0,!1,void 0,this),ae.jsxDEV(ia,{items:I.map((P)=>({key:P.key,label:P.label,color:P.color,value:R(P.values.reduce((Y,W)=>Y+(W??0),0))})),hidden:g,onToggle:v},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),ae.jsxDEV(_e,{query:i,skeleton:ae.jsxDEV(qt,{height:320},void 0,!1,void 0,this),children:({hourly:P,providers:Y})=>ae.jsxDEV(Mq,{hourly:P,providers:Y,stale:i.stale},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ae.jsxDEV(fe,{index:4,title:u("providers.subscription-windows"),description:u("providers.subscription-windows-description"),flush:!0,stale:m.stale,children:ae.jsxDEV(_e,{query:m,skeleton:ae.jsxDEV(pa,{rows:6},void 0,!1,void 0,this),children:(P)=>ae.jsxDEV(Dq,{insights:P.windowInsights,selected:b,onSelect:y},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),ae.jsxDEV(Bq,{insights:m.data?.windowInsights??null,accounts:T,selected:b,onSelect:y},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Iq(r,l){if(l&&r.some((d)=>d.provider===l.provider&&d.windowKey===l.windowKey))return l;let i=l&&r.find((d)=>d.provider===l.provider)||r.reduce((d,f)=>d===void 0||f.fractionConsumed>d.fractionConsumed?f:d,void 0);return i?{provider:i.provider,windowKey:i.windowKey}:null}function Rq({providers:r,colors:l}){let[i,d]=Ho.useState(null),f=Ho.useMemo(()=>{let g=0,v=0,h=0;for(let m of r)g=Math.max(g,m.totalRequests),v=Math.max(v,m.totalTokens),h+=m.totalTokens;return[{key:"provider",header:u("common.provider"),sort:(m)=>m.provider,render:(m)=>ae.jsxDEV("span",{className:"row",style:{gap:8},children:[ae.jsxDEV(an,{color:l.get(m.provider)??fo},void 0,!1,void 0,this),ae.jsxDEV("span",{className:"mono cell-primary",children:m.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"requests",header:u("common.requests"),align:"right",sort:(m)=>m.totalRequests,render:(m)=>ae.jsxDEV(Ma,{value:m.totalRequests,max:g,display:A(m.totalRequests)},void 0,!1,void 0,this)},{key:"errors",header:u("common.error-rate"),align:"right",sort:(m)=>m.totalRequests>0?m.failedRequests/m.totalRequests:0,render:(m)=>{let S=m.totalRequests>0?m.failedRequests/m.totalRequests:0;return ae.jsxDEV("span",{className:"row",style:{gap:8,justifyContent:"flex-end"},children:[ae.jsxDEV("span",{className:"num dim",children:A(m.failedRequests)},void 0,!1,void 0,this),ae.jsxDEV(ct,{tone:m.failedRequests>0?gr(S):"neutral",mono:!0,children:Mo(S)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}},{key:"models",header:u("common.models"),title:u("providers.models-title"),align:"right",sort:(m)=>m.models,render:(m)=>ae.jsxDEV("span",{className:"num",children:A(m.models)},void 0,!1,void 0,this)},{key:"tokens",header:u("common.tokens"),title:u("providers.tokens-title"),align:"right",sort:(m)=>m.totalTokens,render:(m)=>ae.jsxDEV(Ma,{value:m.totalTokens,max:v,display:se(m.totalTokens),color:l.get(m.provider)},void 0,!1,void 0,this)},{key:"share",header:u("common.share"),title:u("providers.share-title"),align:"right",sort:(m)=>m.totalTokens,render:(m)=>ae.jsxDEV("span",{className:"num muted",children:Ge(h>0?m.totalTokens/h:0)},void 0,!1,void 0,this)},{key:"cost",header:u("common.cost"),title:u("providers.cost-title"),align:"right",sort:(m)=>m.totalCost,render:(m)=>ae.jsxDEV("span",{className:"num",title:m.unpricedRequests>0?u("providers.unpriced-n",{count:A(m.unpricedRequests)}):void 0,children:oa(m.totalCost,m.unpricedRequests)},void 0,!1,void 0,this)},{key:"tps",header:u("common.tokens-per-second"),title:u("providers.tps-title"),align:"right",sort:(m)=>m.avgTokensPerSecond??-1,render:(m)=>ae.jsxDEV("span",{className:"num",children:Gn(m.avgTokensPerSecond)},void 0,!1,void 0,this)},{key:"premium",header:u("common.premium"),title:u("providers.premium-title"),align:"right",sort:(m)=>m.totalPremiumRequests,render:(m)=>ae.jsxDEV("span",{className:m.totalPremiumRequests>0?"num":"num dim",children:A(Math.round(m.totalPremiumRequests*100)/100)},void 0,!1,void 0,this)}]},[r,l]);return ae.jsxDEV(Ft,{rows:r,rowKey:(g)=>g.provider,columns:f,initialSort:{key:"tokens",dir:"desc"},limit:12,selectedKey:i,onRowClick:(g)=>d((v)=>v===g.provider?null:g.provider),expanded:(g)=>g.provider===i?ae.jsxDEV(Aq,{provider:g},void 0,!1,void 0,this):null,empty:ae.jsxDEV(Je,{title:u("providers.no-requests-in-range")},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function Aq({provider:r}){let l={input:r.totalInputTokens,cacheRead:r.totalCacheReadTokens,cacheWrite:r.totalCacheWriteTokens,output:r.totalOutputTokens};return ae.jsxDEV("div",{className:"providers-mix",children:[ae.jsxDEV($n,{segments:B2().map((i)=>({key:i.key,label:i.label,value:l[i.key],color:i.color}))},void 0,!1,void 0,this),ae.jsxDEV(ia,{items:B2().map((i)=>({key:i.key,label:i.label,color:i.color,value:`${se(l[i.key])} · ${r.totalTokens>0?Ge(l[i.key]/r.totalTokens,0):"–"}`}))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Zf="";function Mq({hourly:r,providers:l,stale:i}){let[d,f]=Ho.useState(Zf),g=d===Zf||l.some((m)=>m.provider===d)?d:Zf,v=Ho.useMemo(()=>{let m=Array.from({length:24},()=>0),S=Array.from({length:24},()=>0),y=Array.from({length:24},()=>0);for(let C of r){if(g!==Zf&&C.provider!==g)continue;m[C.hour]+=C.totalTokens,S[C.hour]+=C.outputTokens,y[C.hour]+=C.requests}let b=0;for(let C=1;C<24;C++)if(m[C]>m[b])b=C;let L=m[b]>0;return{series:[{key:"tokens",label:u("common.tokens"),color:"var(--chart-primary)",values:m.map((C,I)=>L&&I===b?null:C)},{key:"peak",label:u("providers.tokens-peak-hour"),color:"var(--chart-secondary)",values:m.map((C,I)=>L&&I===b?C:null)}],output:S,requests:y,peak:b,hasData:L}},[r,g]),h=(m)=>`${String(m).padStart(2,"0")}:00`;return ae.jsxDEV(fe,{index:3,title:u("providers.peak-burn-hours"),description:v.hasData?u("providers.peak-hours-description",{hour:h(v.peak)}):u("providers.hours-description"),actions:ae.jsxDEV("select",{className:"input providers-select",value:g,onChange:(m)=>f(m.target.value),"aria-label":u("common.provider"),children:[ae.jsxDEV("option",{value:Zf,children:u("providers.all-providers")},void 0,!1,void 0,this),l.map((m)=>ae.jsxDEV("option",{value:m.provider,children:m.provider},m.provider,!1,void 0,this))]},void 0,!0,void 0,this),stale:i,children:ae.jsxDEV(vr,{slots:24,tickLabel:(m)=>String(m).padStart(2,"0"),tooltipTitle:(m)=>`${h(m)}–${h((m+1)%24)}`,series:v.series,height:260,showTotal:!1,formatTooltip:A,emptyLabel:u("providers.no-activity-in-range"),tooltipExtra:(m)=>ae.jsxDEV(ae.Fragment,{children:[ae.jsxDEV("div",{className:"chart-tooltip-row",children:[ae.jsxDEV("span",{className:"chart-tooltip-label",children:u("common.output")},void 0,!1,void 0,this),ae.jsxDEV("span",{className:"chart-tooltip-value",children:A(v.output[m])},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ae.jsxDEV("div",{className:"chart-tooltip-row",children:[ae.jsxDEV("span",{className:"chart-tooltip-label",children:u("common.requests")},void 0,!1,void 0,this),ae.jsxDEV("span",{className:"chart-tooltip-value",children:A(v.requests[m])},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function Dq({insights:r,selected:l,onSelect:i}){return ae.jsxDEV(Ft,{rows:r,rowKey:(d)=>`${d.provider}::${d.windowKey}`,columns:Eq(),initialSort:{key:"consumed",dir:"desc"},limit:12,selectedKey:l?`${l.provider}::${l.windowKey}`:null,onRowClick:(d)=>i({provider:d.provider,windowKey:d.windowKey}),empty:ae.jsxDEV(Je,{title:u("providers.no-snapshots-in-range"),hint:u("providers.snapshot-hint")},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function Eq(){return[{key:"window",header:u("providers.window"),sort:(r)=>`${r.provider} ${r.windowKey}`,render:(r)=>ae.jsxDEV(co,{primary:r.windowKey,secondary:ae.jsxDEV("span",{className:"mono",children:r.provider},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"accounts",header:u("providers.accounts"),title:u("providers.accounts-title"),align:"right",sort:(r)=>r.accounts,render:(r)=>ae.jsxDEV("span",{className:"num",children:A(r.accounts)},void 0,!1,void 0,this)},{key:"cycles",header:u("providers.resets"),title:u("providers.resets-title"),align:"right",sort:(r)=>r.cycles,render:(r)=>ae.jsxDEV("span",{className:"num muted",children:A(r.cycles)},void 0,!1,void 0,this)},{key:"consumed",header:u("providers.windows-burned"),title:u("providers.windows-burned-title"),align:"right",sort:(r)=>r.fractionConsumed,render:(r)=>ae.jsxDEV("span",{className:"num",children:r.fractionConsumed.toFixed(2)},void 0,!1,void 0,this)},{key:"capacity",header:u("providers.tokens-per-window"),title:u("providers.tokens-per-window-title"),align:"right",sort:(r)=>r.estTokensPerWindow??-1,render:(r)=>r.estTokensPerWindow!==null?ae.jsxDEV("span",{className:"num",children:se(r.estTokensPerWindow)},void 0,!1,void 0,this):ae.jsxDEV("span",{className:"dim",title:u("providers.too-little-consumed"),children:"–"},void 0,!1,void 0,this)},{key:"peak",header:u("providers.peak-utilization"),title:u("providers.peak-utilization-title"),align:"right",sort:(r)=>r.peakConcurrentFraction,render:(r)=>{let l=r.accounts>0?r.peakConcurrentFraction/r.accounts:0;return ae.jsxDEV(Ma,{value:r.peakConcurrentFraction,max:r.accounts,display:Ge(r.peakConcurrentFraction,0),color:l>=0.9?"var(--warn)":void 0},void 0,!1,void 0,this)}},{key:"ideal",header:u("providers.accounts-needed"),title:u("providers.accounts-needed-title"),align:"right",sort:(r)=>r.idealAccounts-r.accounts,render:(r)=>r.idealAccounts>r.accounts?ae.jsxDEV(ct,{tone:"warn",mono:!0,children:u("providers.ideal-accounts",{ideal:A(r.idealAccounts),have:A(r.accounts)})},void 0,!1,void 0,this):ae.jsxDEV("span",{className:"num",children:A(r.idealAccounts)},void 0,!1,void 0,this)},{key:"exhausted",header:u("providers.exhaustions"),title:u("providers.exhaustions-title"),align:"right",sort:(r)=>r.exhaustedEvents,render:(r)=>r.exhaustedEvents>0?ae.jsxDEV(ct,{tone:"warn",mono:!0,children:u("providers.exhausted-n",{count:A(r.exhaustedEvents)})},void 0,!1,void 0,this):ae.jsxDEV("span",{className:"num dim",children:"0"},void 0,!1,void 0,this)}]}var pg=60000,Ds=60*pg,mg=24*Ds,Nq=[5*pg,15*pg,30*pg,Ds,2*Ds,3*Ds,6*Ds,12*Ds,mg],qq=240,Oq=6*Ds;function Bq({insights:r,accounts:l,selected:i,onSelect:d}){let[f,g]=Ur(),v=Ho.useMemo(()=>[...new Set((r??[]).map((C)=>C.provider))],[r]),h=Ho.useMemo(()=>(r??[]).filter((C)=>C.provider===i?.provider).map((C)=>({key:C.windowKey,label:C.windowKey})),[r,i?.provider]),m=Ho.useMemo(()=>(l.data?.usageSeries??[]).filter((C)=>C.provider===i?.provider),[l.data,i?.provider]),S=m.length===0&&(l.loading||l.stale),y=Ho.useMemo(()=>{let C=new Map;for(let R of m){let O=C.get(R.accountLabel)??[];if(!O.includes(R.accountKey))O.push(R.accountKey);C.set(R.accountLabel,O)}let I=new Map;for(let[R,O]of C)O.sort(),O.forEach((P,Y)=>I.set(P,O.length>1?`${R} #${Y+1}`:R));return I},[m]),b=Ho.useMemo(()=>Pq(m.filter((C)=>C.windowKey===i?.windowKey),y),[m,y,i?.windowKey]),L=Ho.useMemo(()=>{let C=new Map(b.series.map((I)=>[I.key,I.color]));return m.map((I)=>{let R=null,O=null;for(let W of I.points){if(W.usedFraction===null)continue;if(O=Math.max(O??0,W.usedFraction),!R||W.timestamp>=R.timestamp)R={fraction:W.usedFraction,exhausted:W.exhausted,timestamp:W.timestamp}}let P=I.windowKey===i?.windowKey?C.get(I.accountKey)??null:null,Y=y.get(I.accountKey)??I.accountLabel;return{series:I,name:Y,color:P,latest:R,peak:O,samples:I.points.length}}).sort((I,R)=>Number(R.color!==null)-Number(I.color!==null)||I.series.windowKey.localeCompare(R.series.windowKey)||(R.latest?.fraction??-1)-(I.latest?.fraction??-1))},[m,y,b.series,i?.windowKey]),T=h.find((C)=>C.key===i?.windowKey)?.label;return ae.jsxDEV(fe,{index:5,title:u("providers.utilization"),description:b.buckets.length>0?u("providers.utilization-description",{window:T??u("providers.window"),from:Sb(b.first),to:Sb(b.last)}):u("providers.utilization-description-plain"),actions:i&&ae.jsxDEV("div",{className:"row",style:{gap:6},children:[ae.jsxDEV("select",{className:"input providers-select",value:i.provider,onChange:(C)=>{let I=C.target.value,R=r?.find((O)=>O.provider===I);if(R)d({provider:I,windowKey:R.windowKey})},"aria-label":u("common.provider"),children:v.map((C)=>ae.jsxDEV("option",{value:C,children:C},C,!1,void 0,this))},void 0,!1,void 0,this),ae.jsxDEV("select",{className:"input providers-select",value:i.windowKey,onChange:(C)=>d({provider:i.provider,windowKey:C.target.value}),"aria-label":u("providers.window"),children:h.map((C)=>ae.jsxDEV("option",{value:C.key,children:C.label},C.key,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),stale:l.stale,children:r===null?ae.jsxDEV(qt,{height:260},void 0,!1,void 0,this):i===null?ae.jsxDEV(Je,{title:u("providers.no-snapshots-in-range"),hint:u("providers.snapshot-hint")},void 0,!1,void 0,this):ae.jsxDEV(_e,{query:l,skeleton:ae.jsxDEV(qt,{height:260},void 0,!1,void 0,this),children:()=>S?ae.jsxDEV(qt,{height:260},void 0,!1,void 0,this):ae.jsxDEV("div",{className:"stack",style:{gap:16},children:[ae.jsxDEV("div",{className:"stack",style:{gap:12},children:[ae.jsxDEV(vr,{slots:b.buckets.length,tickLabel:(C)=>Vh(b.buckets[C],b.last-b.first>mg?mg:b.bucketMs),tooltipTitle:(C)=>td(b.buckets[C],Ds),series:b.series,hidden:f,kind:"line",stacked:!1,height:260,yMax:Math.max(1,b.max),format:(C)=>Ge(C,0),formatTooltip:(C)=>Ge(C,1),references:[{value:1,label:"100%"}],emptyLabel:u("providers.no-utilization-readings"),tooltipExtra:(C)=>{let I=b.exhausted[C];return I.length>0?ae.jsxDEV("div",{className:"chart-tooltip-row",children:[ae.jsxDEV("span",{className:"chart-tooltip-label tone-bad",children:u("providers.exhausted")},void 0,!1,void 0,this),ae.jsxDEV("span",{className:"chart-tooltip-value",children:I.join(", ")},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null}},void 0,!1,void 0,this),b.series.length>1&&ae.jsxDEV(ia,{items:b.series.map((C)=>({key:C.key,label:C.label,color:C.color})),hidden:f,onToggle:g},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ae.jsxDEV("div",{className:"providers-accounts",children:ae.jsxDEV(Ft,{rows:L,rowKey:(C)=>`${C.series.windowKey}::${C.series.accountKey}`,columns:Uq(),limit:16,onRowClick:(C)=>d({provider:C.series.provider,windowKey:C.series.windowKey}),dense:!0},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function Pq(r,l){let{POSITIVE_INFINITY:i,NEGATIVE_INFINITY:d}=Number;for(let L of r)for(let T of L.points){if(T.timestamp<i)i=T.timestamp;if(T.timestamp>d)d=T.timestamp}if(!(d>=i))return{buckets:[],bucketMs:Ds,first:0,last:0,max:0,series:[],exhausted:[]};let f=d-i,g=Nq.find((L)=>f/L<qq)??mg,v=oo("all",[i],g,d),h=v.map(()=>[]),m=0,S=(L)=>l.get(L.accountKey)??L.accountLabel,b=[...r].sort((L,T)=>S(L).localeCompare(S(T))).map((L,T)=>{let C=v.map(()=>null),I=v.map(()=>0);for(let P of L.points){let Y=cg(v,P.timestamp);if(Y<0)continue;if(P.exhausted&&!h[Y].includes(S(L)))h[Y].push(S(L));if(P.usedFraction===null||P.timestamp<I[Y])continue;C[Y]=P.usedFraction,I[Y]=P.timestamp,m=Math.max(m,P.usedFraction)}let R=null,O=0;for(let P=0;P<v.length;P++)if(C[P]!==null)R=C[P],O=I[P];else if(R!==null&&v[P]-O<=Oq)C[P]=R;return{key:L.accountKey,label:S(L),color:Pa[T%Pa.length],values:C}});return{buckets:v,bucketMs:g,first:i,last:d,max:m,series:b,exhausted:h}}function zq(r){if(!r)return ae.jsxDEV("span",{className:"dim",children:u("providers.no-reading")},void 0,!1,void 0,this);if(r.exhausted)return ae.jsxDEV(ct,{tone:"bad",children:u("providers.exhausted")},void 0,!1,void 0,this);if(r.fraction>=0.8)return ae.jsxDEV(ct,{tone:"warn",children:u("providers.high")},void 0,!1,void 0,this);return ae.jsxDEV(ct,{tone:"ok",children:u("ui.status-ok")},void 0,!1,void 0,this)}function Uq(){return[{key:"account",header:u("providers.account"),sort:(r)=>r.name,render:(r)=>ae.jsxDEV("span",{className:"row",style:{gap:8},children:[ae.jsxDEV("span",{className:"providers-swatch-slot",children:r.color&&ae.jsxDEV(an,{color:r.color},void 0,!1,void 0,this)},void 0,!1,void 0,this),ae.jsxDEV("span",{className:"truncate providers-account",title:r.series.accountKey,children:r.name},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"window",header:u("providers.window"),sort:(r)=>r.series.windowKey,render:(r)=>ae.jsxDEV("span",{className:r.color?void 0:"muted",children:r.series.windowKey},void 0,!1,void 0,this)},{key:"latest",header:u("providers.latest-used"),align:"right",sort:(r)=>r.latest?.fraction??-1,render:(r)=>r.latest?ae.jsxDEV(Ma,{value:r.latest.fraction,max:1,display:Ge(r.latest.fraction,0),color:r.latest.exhausted?"var(--bad)":r.latest.fraction>=0.8?"var(--warn)":"var(--ok)"},void 0,!1,void 0,this):ae.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this)},{key:"status",header:u("providers.status"),sort:(r)=>r.latest?.exhausted?2:(r.latest?.fraction??0)>=0.8?1:0,render:(r)=>zq(r.latest)},{key:"peak",header:u("providers.peak-in-range"),align:"right",sort:(r)=>r.peak??-1,render:(r)=>ae.jsxDEV("span",{className:"num",children:r.peak===null?"–":Ge(r.peak,0)},void 0,!1,void 0,this)},{key:"samples",header:u("providers.snapshots"),align:"right",sort:(r)=>r.samples,render:(r)=>ae.jsxDEV("span",{className:"num muted",children:A(r.samples)},void 0,!1,void 0,this)},{key:"recorded",header:u("providers.recorded"),align:"right",sort:(r)=>r.latest?.timestamp??0,render:(r)=>ae.jsxDEV("span",{className:"muted",children:r.latest?ma(r.latest.timestamp):"–"},void 0,!1,void 0,this)}]}var Fi=_(Ke(),1);var pt=_(te(),1),_q={ok:"ok",aborted:"warn",failed:"bad"},Hq={ok:"ui.status-ok",aborted:"common.aborted",failed:"common.failed"};function hg(r){return{label:u(Hq[r]),tone:_q[r]}}function z2({id:r,onClose:l}){let i=zt(["request",r],({signal:g})=>sI(r??0,g),{enabled:r!==null}),d=i.stale?null:i.data,f=d?hg(As(d)):null;return pt.jsxDEV(ad,{open:r!==null,onClose:l,width:620,title:d?pt.jsxDEV("span",{className:"mono",children:d.model},void 0,!1,void 0,this):u("common.request"),subtitle:d?pt.jsxDEV(pt.Fragment,{children:[d.provider," ·"," ",pt.jsxDEV("span",{title:ro(d.timestamp),children:ma(d.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this):r!==null?pt.jsxDEV("span",{className:"mono",children:["#",r]},void 0,!0,void 0,this):void 0,actions:d&&f?pt.jsxDEV("div",{className:"row",style:{gap:6},children:[pt.jsxDEV("a",{className:"btn","data-size":"sm","data-variant":"ghost",href:ng({...jf(window.location.hash),section:"traces",session:d.sessionFile}),onClick:l,title:u("ui.open-trace"),children:[pt.jsxDEV(Sf,{size:13},void 0,!1,void 0,this)," Trace"]},void 0,!0,void 0,this),pt.jsxDEV(ct,{tone:f.tone,children:f.label},void 0,!1,void 0,this)]},void 0,!0,void 0,this):void 0,children:d?pt.jsxDEV(Fq,{details:d,aborted:As(d)==="aborted"},void 0,!1,void 0,this):i.error?pt.jsxDEV(Nl,{error:i.error,onRetry:i.refetch},void 0,!1,void 0,this):pt.jsxDEV("div",{className:"stack",style:{gap:12},children:[pt.jsxDEV(Ga,{height:56},void 0,!1,void 0,this),pt.jsxDEV(Ga,{height:120},void 0,!1,void 0,this),pt.jsxDEV(Ga,{height:120},void 0,!1,void 0,this),pt.jsxDEV(Ga,{height:220},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function Fq({details:r,aborted:l}){let{usage:i}=r,d=r.duration!==null&&r.duration>0&&i.output>0?i.output*1000/r.duration:null,{messages:f,output:g,...v}=r;return pt.jsxDEV(pt.Fragment,{children:[r.errorMessage&&pt.jsxDEV("section",{className:"request-drawer-error","data-tone":l?"warn":"bad",role:"note",children:[pt.jsxDEV("div",{className:"request-drawer-error-label",children:l?u("common.aborted"):u("common.error")},void 0,!1,void 0,this),pt.jsxDEV("pre",{className:"request-drawer-error-text",children:r.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this),pt.jsxDEV("section",{children:[pt.jsxDEV("div",{className:"section-label",children:u("ui.section-timing")},void 0,!1,void 0,this),pt.jsxDEV(ko,{items:[{key:"at",label:u("common.started"),value:ro(r.timestamp)},{key:"duration",label:u("common.duration"),value:Ct(r.duration)},{key:"ttft",label:u("ui.time-to-first-token"),value:Ct(r.ttft)},{key:"tps",label:u("common.output-tokens-per-second"),value:Gn(d)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),pt.jsxDEV("section",{children:[pt.jsxDEV("div",{className:"section-label",children:u("common.tokens")},void 0,!1,void 0,this),pt.jsxDEV(ko,{items:[{key:"input",label:u("ui.uncached-input"),value:A(i.input)},{key:"cacheRead",label:u("common.cache-read"),value:A(i.cacheRead)},{key:"cacheWrite",label:u("common.cache-write"),value:A(i.cacheWrite)},{key:"output",label:u("common.output"),value:A(i.output)},{key:"total",label:u("common.total"),value:A(i.totalTokens)},{key:"premium",label:u("common.premium-requests"),value:A(Math.round((i.premiumRequests??0)*100)/100)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),pt.jsxDEV("section",{children:[pt.jsxDEV("div",{className:"section-label",children:u("ui.section-cost")},void 0,!1,void 0,this),pt.jsxDEV(ko,{items:[{key:"total",label:"Total",value:ql(r,4)},{key:"input",label:u("common.input"),value:Pt(i.cost.input,4)},{key:"cacheRead",label:"Cache read",value:Pt(i.cost.cacheRead,4)},{key:"cacheWrite",label:"Cache write",value:Pt(i.cost.cacheWrite,4)},{key:"output",label:"Output",value:Pt(i.cost.output,4)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),pt.jsxDEV("section",{children:[pt.jsxDEV("div",{className:"section-label",children:u("ui.section-identity")},void 0,!1,void 0,this),pt.jsxDEV(ko,{items:[{key:"id",label:u("common.request-id"),value:r.id??"–"},{key:"entry",label:u("common.entry-id"),value:r.entryId},{key:"stop",label:u("ui.stop-reason"),value:r.stopReason},{key:"api",label:"API",value:r.api},{key:"project",label:u("common.project"),value:pt.jsxDEV("span",{title:r.folder,children:zr(r.folder)},void 0,!1,void 0,this)}]},void 0,!1,void 0,this),pt.jsxDEV("div",{className:"request-drawer-file",children:[pt.jsxDEV("span",{className:"kv-key",children:u("ui.session-file")},void 0,!1,void 0,this),pt.jsxDEV("span",{className:"kv-value",children:r.sessionFile},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),g!=null&&pt.jsxDEV(od,{data:g,title:u("common.output-message")},void 0,!1,void 0,this),pt.jsxDEV(od,{data:f,title:u("common.session-entry"),initialCollapsed:!0},void 0,!1,void 0,this),pt.jsxDEV(od,{data:v,title:u("ui.stats-row"),initialCollapsed:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var ut=_(te(),1),Ob=[500,2000,1e4];function U2({active:r,range:l,onRequestClick:i}){let[d,f]=Fi.useState(0),g=Ob[d],v=zt(["requests-log",g],({signal:W})=>jh(g,W),{enabled:r}),[h,m]=Fi.useState(""),[S,y]=Fi.useState("all"),b=aa(l),L=Fi.useMemo(()=>{let W=v.data??[],ue=b.spanMs===null?null:Date.now()-b.spanMs,Z=ue===null?W:W.filter((G)=>G.timestamp>=ue),ce=!v.stale&&(W.length<g||ue!==null&&Z.length<W.length),ee={all:Z.length,ok:0,aborted:0,failed:0};for(let G of Z)ee[As(G)]++;return{loaded:W.length,inRange:Z,complete:ce,counts:ee,summary:g2(Z)}},[v.data,v.stale,g,b.spanMs]),T=Fi.useMemo(()=>{let W=h.trim().toLowerCase();return L.inRange.filter((ue)=>(S==="all"||As(ue)===S)&&(W===""||ue.model.toLowerCase().includes(W)||ue.provider.toLowerCase().includes(W)||ue.folder.toLowerCase().includes(W)))},[L.inRange,h,S]),{summary:C,counts:I,complete:R}=L,O=d+1<Ob.length?Ob[d+1]:null,P=O!==null?ut.jsxDEV("button",{type:"button",className:"btn","data-size":"sm",disabled:v.refreshing,onClick:()=>f(d+1),children:v.refreshing&&v.stale?u("requests.loading"):u("requests.load-latest",{count:A(O)})},void 0,!1,void 0,this):void 0,Y=["all","ok","aborted","failed"].map((W)=>({value:W,label:ut.jsxDEV(ut.Fragment,{children:[W==="all"?u("requests.status-all"):hg(W).label," ",ut.jsxDEV("span",{className:"dim num",children:se(I[W])},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}));return ut.jsxDEV("div",{className:"page",children:[ut.jsxDEV(la,{title:u("common.requests"),description:u("requests.description",{window:u(b.windowKey)})},void 0,!1,void 0,this),ut.jsxDEV(_e,{query:v,skeleton:ut.jsxDEV(Ga,{height:96,style:{borderRadius:12}},void 0,!1,void 0,this),children:()=>ut.jsxDEV("div",{"data-stale":v.stale,children:ut.jsxDEV(wa,{min:160,children:[ut.jsxDEV(ie,{label:u("common.requests"),value:A(C.requests),hint:C.oldest===null?u("requests.none-in-window",{window:u(b.windowKey)}):u("requests.since",{time:ma(C.oldest)})},void 0,!1,void 0,this),ut.jsxDEV(ie,{label:u("common.failed"),value:A(C.failed),hint:u("requests.failed-hint",{rate:C.requests>0?Mo(C.failed/C.requests):"–",count:A(C.aborted)})},void 0,!1,void 0,this),ut.jsxDEV(ie,{label:u("common.tokens"),title:u("requests.tokens-hint"),value:se(C.tokens)},void 0,!1,void 0,this),ut.jsxDEV(ie,{label:u("requests.api-equivalent-cost"),title:u("requests.cost-hint"),value:oa(C.cost,C.unpriced),hint:C.unpriced>0?u("requests.unpriced-n",{count:A(C.unpriced)}):void 0},void 0,!1,void 0,this),ut.jsxDEV(ie,{label:u("requests.median-duration"),value:Ct(C.medianDuration),hint:u("requests.p95",{value:Ct(C.p95Duration)})},void 0,!1,void 0,this),ut.jsxDEV(ie,{label:u("requests.median-ttft"),title:u("requests.ttft-hint"),value:Ct(C.medianTtft)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),ut.jsxDEV(fe,{index:1,title:u("requests.log-title"),description:v.data===null?u("requests.log-loading"):R?u("requests.log-count-in-window",{shown:A(T.length),total:A(C.requests),window:u(b.windowKey)}):u("requests.log-count-latest",{shown:A(T.length),total:A(C.requests)}),actions:ut.jsxDEV(ut.Fragment,{children:[ut.jsxDEV(Fn,{value:h,onChange:m,placeholder:u("requests.search-placeholder")},void 0,!1,void 0,this),ut.jsxDEV(Oa,{size:"sm","aria-label":u("requests.status"),options:Y,value:S,onChange:y},void 0,!1,void 0,this)]},void 0,!0,void 0,this),flush:!0,stale:v.stale,footer:v.data!==null&&!R?ut.jsxDEV(ut.Fragment,{children:[ut.jsxDEV("span",{children:u("requests.footer",{count:A(L.loaded),time:C.oldest===null?"–":ro(C.oldest),window:u(b.windowKey)})},void 0,!1,void 0,this),P]},void 0,!0,void 0,this):void 0,children:ut.jsxDEV(_e,{query:v,skeleton:ut.jsxDEV(pa,{rows:12},void 0,!1,void 0,this),children:()=>ut.jsxDEV(Ft,{rows:T,rowKey:(W)=>W.id??`${W.sessionFile}:${W.entryId}`,onRowClick:(W)=>W.id!==void 0&&i(W.id),columns:Gq(),initialSort:{key:"time",dir:"desc"},limit:100,dense:!0,empty:ut.jsxDEV(Je,{title:C.requests===0?u("requests.empty-in-window",{window:u(b.windowKey)}):u("requests.empty-no-match"),hint:C.requests===0?void 0:u("requests.empty-no-match-hint")},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Gq(){return[{key:"model",header:u("common.model"),sort:(r)=>r.model,render:(r)=>ut.jsxDEV(co,{primary:ut.jsxDEV("span",{className:"mono",children:r.model},void 0,!1,void 0,this),secondary:r.provider},void 0,!1,void 0,this)},{key:"time",header:u("requests.when"),sort:(r)=>r.timestamp,render:(r)=>ut.jsxDEV("span",{className:"muted",title:ro(r.timestamp),children:ma(r.timestamp)},void 0,!1,void 0,this)},{key:"project",header:u("common.project"),sort:(r)=>r.folder,render:(r)=>ut.jsxDEV("span",{className:"mono muted truncate",title:r.folder,style:{display:"block",maxWidth:180},children:zr(r.folder)},void 0,!1,void 0,this)},{key:"input",header:u("common.input"),title:u("requests.uncached-input"),align:"right",sort:(r)=>r.usage.input,render:(r)=>ut.jsxDEV("span",{className:"num",children:se(r.usage.input)},void 0,!1,void 0,this)},{key:"cache",header:u("common.cache-read"),title:u("requests.cache-read-title"),align:"right",sort:(r)=>r.usage.cacheRead,render:(r)=>ut.jsxDEV("span",{className:"num",title:u("requests.cache-write",{count:A(r.usage.cacheWrite)}),children:se(r.usage.cacheRead)},void 0,!1,void 0,this)},{key:"output",header:u("common.output"),align:"right",sort:(r)=>r.usage.output,render:(r)=>ut.jsxDEV("span",{className:"num",children:se(r.usage.output)},void 0,!1,void 0,this)},{key:"cost",header:u("common.cost"),title:u("requests.cost-estimate"),align:"right",sort:(r)=>r.usage.cost.total,render:(r)=>ut.jsxDEV("span",{className:"num",children:ql(r,4)},void 0,!1,void 0,this)},{key:"duration",header:u("common.duration"),align:"right",sort:(r)=>r.duration??-1,render:(r)=>ut.jsxDEV("span",{className:"num",children:Ct(r.duration)},void 0,!1,void 0,this)},{key:"ttft",header:u("requests.ttft"),title:u("requests.ttft-hint"),align:"right",sort:(r)=>r.ttft??-1,render:(r)=>ut.jsxDEV("span",{className:"num muted",children:Ct(r.ttft)},void 0,!1,void 0,this)},{key:"status",header:u("requests.status"),sort:(r)=>As(r),render:(r)=>{let l=hg(As(r));return ut.jsxDEV("span",{title:r.errorMessage??void 0,children:ut.jsxDEV(co,{lead:ut.jsxDEV(Hn,{tone:l.tone},void 0,!1,void 0,this),primary:l.label,secondary:ut.jsxDEV("span",{className:"mono",children:r.stopReason},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}}]}var vR=_(Ke(),1);var _2=["January","February","March","April","May","June","July","August","September","October","November","December"],H2=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Vq=["MMMM","yyyy","EEEE","MMM","EEE","yy","MM","dd","HH","hh","mm","ss","M","d","H","h","m","s","a"];function Ol(r,l=2){return String(r).padStart(l,"0")}function jq(r,l){let i=r.getMonth(),d=r.getDay(),f=r.getHours(),g=f%12||12;switch(l){case"yyyy":return Ol(r.getFullYear(),4);case"yy":return Ol(r.getFullYear()%100);case"MMMM":return _2[i];case"MMM":return _2[i].slice(0,3);case"MM":return Ol(i+1);case"M":return String(i+1);case"dd":return Ol(r.getDate());case"d":return String(r.getDate());case"EEEE":return H2[d];case"EEE":return H2[d].slice(0,3);case"HH":return Ol(f);case"H":return String(f);case"hh":return Ol(g);case"h":return String(g);case"mm":return Ol(r.getMinutes());case"m":return String(r.getMinutes());case"ss":return Ol(r.getSeconds());case"s":return String(r.getSeconds());case"a":return f<12?"AM":"PM"}}function $q(r){let l=r instanceof Date?new Date(r.getTime()):new Date(r);if(Number.isNaN(l.getTime()))throw RangeError("Invalid time value");return l}function F2(r,l){let i=$q(r),d="";for(let f=0;f<l.length;){if(l[f]==="'"){if(l[f+1]==="'"){d+="'",f+=2;continue}f++;while(f<l.length){if(l[f]!=="'"){d+=l[f++];continue}if(l[f+1]==="'"){d+="'",f+=2;continue}f++;break}continue}let g=l.slice(f),v=Vq.find((m)=>g.startsWith(m));if(v){d+=jq(i,v),f+=v.length;continue}let h=l[f++];if(/[A-Za-z]/.test(h))throw RangeError(`Format string contains an unescaped latin alphabet character \`${h}\``);d+=h}return d}var Jf=_(Ke(),1);var gg=["artifact","reread","rerun"],Es={artifact:{label:"Artifact dive",plural:"Artifact dives",icon:of,color:"var(--spot-artifact)",rule:"A later call read or searched an artifact the shortened result named"},reread:{label:"Re-read",plural:"Re-reads",icon:yf,color:"var(--spot-reread)",rule:"A later read of the same file overlapping the hidden lines, or the whole file again"},rerun:{label:"Rerun",plural:"Reruns",icon:Ef,color:"var(--spot-rerun)",rule:"A call of the same tool within 12 calls repeating the shortened one: a bash command the same, with a pipe or redirect added, or ≥ 60% shared tokens; any other tool with ≥ 60% shared argument tokens"}};function Gi(r){return r.gross.byTool.map((l)=>l.tool)}var Xq=6,_r="other";function Qo(r,l=Xq){if(r.length<=l+1)return{listed:r,rest:[]};return{listed:r.slice(0,l),rest:r.slice(l)}}var Ua={applied:{label:"Shortened",color:"var(--spot-applied)",shape:"dot",rule:"Spotlight scored the result, shaping shortened it and the model saw the cut"},scoreFree:{label:"Score-free",color:"var(--spot-score-free)",shape:"square",rule:"A random coin skipped Spotlight: the no-score fallback rules shortened it and the model saw the cut"},holdout:{label:"Held out",color:"var(--spot-holdout)",shape:"ring",rule:"Spotlight would have shortened it, but it was held out at random and the model saw it whole"},reference:{label:"Unchanged",color:"var(--spot-reference)",shape:"diamond",rule:"Results shaping left unchanged, re-weighted to the cuts' original-size mix"},gated:{label:"Gated",color:"var(--spot-gated)",shape:"ring",rule:"A read pi's former edit gate (removed) kept whole: the model saw it uncut"}},Bb=["applied","scoreFree","holdout","gated","reference"],yg=["<250","250–1k","1k–4k","≥4k"],V2=["1","2","3","4–6","7–12"],G2={read:vf,bash:Ml,eval:wl,grep:Pf,find:ws,glob:bf,edit:Rl,write:gf,web_search:kf,task:df,todo:If,wait:Lf,fetch:Cl,lsp:Df,[_r]:Tl};function Hr(r){return Object.hasOwn(G2,r)?G2[r]:Ei}function vg(r){if(r>=86400000)return"day";if(r>=3600000)return"hour";return`${Math.round(r/60000)} minutes`}function po(r){return r<0?`−${se(-r)}`:se(r)}function xr(r){return r<0?`−${Pt(-r)}`:Pt(r)}function Yn(r,l){return r.lo===null||r.hi===null?"":`${l(r.lo)}–${l(r.hi)}`}function jt(r){if(r===null||!Number.isFinite(r))return"–";if(r===0)return"0%";let l=Math.abs(r*100);return`${r<0?"−":""}${l>=10?l.toFixed(0):l.toFixed(1)}%`}var tt=_(te(),1);function Yq(r){let l=r.agentType==="main",i=(r.sessionFile.split("/").pop()??"").replace(/\.jsonl$/,""),d=r.title?.trim()||(l?zr(r.folder):i);return`${l?d:`↳ ${d} (${r.agentType})`} · ${se(r.savedTokens)} saved`}function j2({stats:r,active:l,stale:i}){let{compounding:d}=r,[f,g]=Jf.useState(null),v=r.sessionList,h=v.find((C)=>C.savedTokens>0)??v[0],m=f!==null&&v.some((C)=>C.sessionFile===f)?f:h?.sessionFile,S=zt(["spotlight-session",m??null],({signal:C})=>xI(m??"",C),{enabled:l&&m!==void 0}),y=d.avoidedTokens-d.recoveredCarriedTokens,b=r.gross.savedTokens>0?d.avoidedTokens/r.gross.savedTokens:null,L=S.data?.points,T=Jf.useMemo(()=>{if(!L)return null;let C=0,I=0;for(let R of L)C+=R.withoutTokens-R.contextTokens,I+=R.withoutTokens;return I>0?{share:C/I,tokens:C}:null},[L]);return tt.jsxDEV(fe,{index:3,title:"Compounding",description:"A cut is never re-read: each later request of the session carries a smaller context",actions:v.length>0&&tt.jsxDEV("select",{className:"input spot-session-select","aria-label":"Session",value:m??"",onChange:(C)=>g(C.target.value),children:v.map((C)=>tt.jsxDEV("option",{value:C.sessionFile,children:Yq(C)},C.sessionFile,!1,void 0,this))},void 0,!1,void 0,this),stale:i,footer:"Context = input + cache read + cache write of each request. A compaction is a request whose context is under 60% of the previous one's; it ends the carry.",children:tt.jsxDEV("div",{className:"spot-compounding",children:[tt.jsxDEV("div",{className:"spot-compounding-chart",children:m===void 0?tt.jsxDEV(Je,{title:"No experiment sessions in this range"},void 0,!1,void 0,this):S.data===null?S.error?tt.jsxDEV(Nl,{error:S.error,onRetry:S.refetch},void 0,!1,void 0,this):tt.jsxDEV(qt,{height:280},void 0,!1,void 0,this):tt.jsxDEV(Wq,{context:S.data,stale:S.stale},void 0,!1,void 0,this)},void 0,!1,void 0,this),tt.jsxDEV("aside",{className:"spot-compounding-side",children:[tt.jsxDEV("div",{className:"spot-eyebrow",children:"Context avoided in this session"},void 0,!1,void 0,this),tt.jsxDEV("div",{className:"spot-side-value",children:jt(T?.share??null)},void 0,!1,void 0,this),L!==void 0&&tt.jsxDEV("p",{className:"spot-side-copy",children:T===null?"This session has no recorded requests.":`of what its requests would have carried without Spotlight: ${po(T.tokens)} prompt tokens, net of recoveries.`},void 0,!1,void 0,this),S.data&&tt.jsxDEV(Kq,{session:S.data.session},void 0,!1,void 0,this),tt.jsxDEV("p",{className:"spot-side-range",children:[tt.jsxDEV("span",{className:"spot-side-range-value",children:jt(d.avoidedShare)},void 0,!1,void 0,this)," across all the sessions shown: cuts kept ",se(Math.max(0,y))," tokens out of later requests",b!==null&&tt.jsxDEV(tt.Fragment,{children:[", each saved token re-sent ",b.toFixed(1)," times on average"]},void 0,!0,void 0,this),"."]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function Kq({session:r}){return tt.jsxDEV("dl",{className:"spot-facts",children:[tt.jsxDEV("div",{children:[tt.jsxDEV("dt",{children:"Agent"},void 0,!1,void 0,this),tt.jsxDEV("dd",{className:"row",children:tt.jsxDEV(ct,{children:r.agentType},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),tt.jsxDEV("div",{children:[tt.jsxDEV("dt",{children:"Requests"},void 0,!1,void 0,this),tt.jsxDEV("dd",{className:"num",children:A(r.requests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),tt.jsxDEV("div",{children:[tt.jsxDEV("dt",{children:"Saved"},void 0,!1,void 0,this),tt.jsxDEV("dd",{className:"num",children:po(r.savedTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),tt.jsxDEV("div",{children:[tt.jsxDEV("dt",{children:"Net $"},void 0,!1,void 0,this),tt.jsxDEV("dd",{className:"num",children:xr(r.netUsd)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var Qq=[{key:"actual",label:"Context",color:"var(--spot-gross)"},{key:"ghost",label:"Without Spotlight",color:"var(--spot-ghost)"},{key:"compaction",label:"Compaction",color:"var(--line-4)"}];function Wq({context:r,stale:l}){let{points:i}=r,d=Jf.useMemo(()=>{let f=[{key:"actual",label:"Context",color:"var(--spot-gross)",kind:"area",values:i.map((v)=>v.contextTokens)},{key:"ghost",label:"Avoided",color:"var(--spot-ghost)",kind:"area",pattern:"hatch",dashed:!0,values:i.map((v)=>Math.max(0,v.withoutTokens-v.contextTokens))}],g=[];return i.forEach((v,h)=>{if(v.compacted)g.push({index:h})}),{series:f,markers:g}},[i]);if(i.length===0)return tt.jsxDEV(Je,{title:"No requests recorded for this session"},void 0,!1,void 0,this);return tt.jsxDEV("div",{className:"spot-context","data-stale":l,children:[tt.jsxDEV(ia,{items:Qq},void 0,!1,void 0,this),tt.jsxDEV(vr,{slots:i.length,series:d.series,markers:d.markers,height:280,tickLabel:(f)=>`#${f+1}`,tooltipTitle:(f)=>`Request ${f+1} · ${F2(new Date(i[f].timestamp),"MMM d HH:mm:ss")}`,formatTooltip:A,showTotal:!1,tooltipExtra:(f)=>{let g=i[f];return tt.jsxDEV("div",{className:"spot-tooltip-extra",children:[tt.jsxDEV("div",{className:"chart-tooltip-row chart-tooltip-total",children:[tt.jsxDEV("span",{className:"chart-tooltip-label",children:"Without Spotlight"},void 0,!1,void 0,this),tt.jsxDEV("span",{className:"chart-tooltip-value",children:A(g.withoutTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),g.saved>0&&tt.jsxDEV("div",{className:"chart-tooltip-row",children:[tt.jsxDEV("span",{className:"chart-tooltip-label",children:"Cut since last request"},void 0,!1,void 0,this),tt.jsxDEV("span",{className:"chart-tooltip-value",children:A(g.saved)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),g.recovered>0&&tt.jsxDEV("div",{className:"chart-tooltip-row",children:[tt.jsxDEV("span",{className:"chart-tooltip-label",children:"Fetched back"},void 0,!1,void 0,this),tt.jsxDEV("span",{className:"chart-tooltip-value",children:A(g.recovered)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),g.compacted&&tt.jsxDEV("div",{className:"chart-tooltip-row dim",children:"Compaction before this request"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Ja=_(te(),1),xg="var(--spot-applied)",bg="var(--spot-unshaped)";function $2({stats:r,stale:l}){let i=[...r.coverage].sort((m,S)=>S.tokens-m.tokens),{listed:d,rest:f}=Qo(i),g=0,v=0;for(let m of i)if(m.shaped)g+=m.share;else v+=m.share;let h=d.map((m)=>({key:m.tool,label:Ja.jsxDEV(Ja.Fragment,{children:[Ja.jsxDEV("span",{className:"spot-coverage-tool",children:m.tool},void 0,!1,void 0,this),m.shaped&&Ja.jsxDEV(ct,{children:"shaped"},void 0,!1,void 0,this),Ja.jsxDEV("span",{className:"dim num",children:[A(m.calls)," calls"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),value:m.share,display:`${jt(m.share)} · ${se(m.tokens)}`,color:m.shaped?xg:bg}));if(f.length>0){let m=0,S=0,y=0;for(let b of f)m+=b.share,S+=b.tokens,y+=b.calls;h.push({key:"\x00rest",label:Ja.jsxDEV(Ja.Fragment,{children:[Ja.jsxDEV("span",{className:"spot-coverage-tool",children:[A(f.length)," more ",f.length===1?"tool":"tools"]},void 0,!0,void 0,this),Ja.jsxDEV("span",{className:"dim num",children:[A(y)," calls"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),value:m,display:`${jt(m)} · ${se(S)}`,color:f.some((b)=>b.shaped)?xg:bg})}return Ja.jsxDEV(fe,{index:5,title:"Not shaped yet",description:"Share of the tool output experiment sessions' models saw, by tool: the unshaped ones are where shaping could reach next",actions:Ja.jsxDEV(ia,{items:[{key:"shaped",label:"Shaped",color:xg},{key:"unshaped",label:"Not shaped",color:bg}]},void 0,!1,void 0,this),stale:l,footer:"Tokens are tool-result chars ÷ 4 over the experiment's sessions in the range; a tool counts as shaped when the experiment evaluated any of its results in the range.",children:i.length===0?Ja.jsxDEV("div",{className:"empty",children:"No tool output in this range."},void 0,!1,void 0,this):Ja.jsxDEV("div",{className:"spot-coverage",children:[Ja.jsxDEV("div",{className:"spot-coverage-summary",children:[Ja.jsxDEV("div",{className:"spot-coverage-headline",children:[Ja.jsxDEV("span",{className:"num",children:jt(v)},void 0,!1,void 0,this)," of tool output comes from tools the experiment did not shape in this range"]},void 0,!0,void 0,this),Ja.jsxDEV($n,{height:8,segments:[{key:"shaped",label:"Shaped",value:g,color:xg},{key:"unshaped",label:"Not shaped",value:v,color:bg}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ja.jsxDEV(Ts,{items:h},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var $t=_(te(),1),Zq=30,X2=5,Jq=120;function eO(r){return[`${r.tool}: ${A(r.cuts)} cuts`,`Saved ${se(r.savedTokens)} tokens (${Pt(r.savedUsd)})`,`Fetched back ${se(r.recoveredTokens)} tokens (${Pt(r.recoveryUsd)})`,`${A(r.extraTurns)} extra turns (${Pt(r.turnUsd)})`,`Net ${xr(r.netUsd)}`].join(`
236
+ `)}function tO(r){if(r.length===0)return;let l={tool:_r,cuts:0,savedTokens:0,recoveredTokens:0,extraTurns:0,savedUsd:0,recoveryUsd:0,turnUsd:0,netUsd:0,extraTurnsPer100Cuts:0,netUsdPer100Cuts:0};for(let i of r)l.cuts+=i.cuts,l.savedTokens+=i.savedTokens,l.recoveredTokens+=i.recoveredTokens,l.extraTurns+=i.extraTurns,l.savedUsd+=i.savedUsd,l.recoveryUsd+=i.recoveryUsd,l.turnUsd+=i.turnUsd,l.netUsd+=i.netUsd;if(l.cuts>0)l.extraTurnsPer100Cuts=l.extraTurns*100/l.cuts,l.netUsdPer100Cuts=l.netUsd*100/l.cuts;return l}function Y2({stats:r,stale:l}){let i=new Set(r.economics.filter((y)=>y.cuts>0).map((y)=>y.tool)),{listed:d,rest:f}=Qo(Gi(r).filter((y)=>i.has(y))),g=new Set(f),v=new Map(r.economics.filter((y)=>!g.has(y.tool)).map((y)=>[y.tool,y])),h=tO(r.economics.filter((y)=>g.has(y.tool)));if(h)v.set(_r,h);let m=f.length>0?[...d,_r]:d,S=0;for(let y of v.values())if(y.cuts>0)S=Math.max(S,Math.abs(y.netUsdPer100Cuts));return $t.jsxDEV(fe,{index:3,title:"What cuts earn, by tool",description:"Net dollars per 100 cuts after fetch-backs, extra turns and Spotlight's own bill",actions:S>0&&$t.jsxDEV("span",{className:"spot-econ-scale","aria-hidden":"true",children:[$t.jsxDEV("span",{className:"num",children:xr(-S)},void 0,!1,void 0,this),$t.jsxDEV("span",{className:"spot-econ-ramp"},void 0,!1,void 0,this),$t.jsxDEV("span",{className:"num",children:xr(S)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),stale:l,footer:"Shortened results only; held-out ones save nothing. Every fetch-back counts against the cut here, the share held-out results show comes back anyway included, so this is the cautious view. An extra turn is a request whose every tool call fetched back output these cuts hid. Dollars price saved and fetched-back tokens as carried context, like Compounding.",children:m.length===0?$t.jsxDEV("div",{className:"empty",children:"No shortened results in this range."},void 0,!1,void 0,this):$t.jsxDEV("div",{className:"spot-econ-scroll",children:$t.jsxDEV("table",{className:"spot-econ",style:{minWidth:`${m.length*Jq}px`},children:[$t.jsxDEV("thead",{children:$t.jsxDEV("tr",{children:m.map((y)=>{let b=Hr(y);return $t.jsxDEV("th",{scope:"col",title:y===_r?f.join(", "):y,children:$t.jsxDEV("span",{className:"row spot-econ-tool",children:[$t.jsxDEV(b,{size:13,"aria-hidden":"true"},void 0,!1,void 0,this),$t.jsxDEV("span",{className:"spot-econ-tool-name",children:y},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},y,!1,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),$t.jsxDEV("tbody",{children:$t.jsxDEV("tr",{children:m.map((y)=>{let b=v.get(y);if(b===void 0||b.cuts===0)return $t.jsxDEV("td",{children:$t.jsxDEV("div",{className:"spot-econ-cell","data-empty":"true",children:$t.jsxDEV("span",{className:"dim",children:"No cuts"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},y,!1,void 0,this);let L=b.netUsdPer100Cuts,T=S>0?X2+Math.sqrt(Math.abs(L)/S)*(Zq-X2):0,C=L<0?"bad":L>0?"ok":"neutral";return $t.jsxDEV("td",{children:$t.jsxDEV("div",{className:"spot-econ-cell","data-tone":C,style:{"--tint":`${T}%`},title:eO(b),children:[$t.jsxDEV("span",{className:"spot-econ-net num",children:xr(L)},void 0,!1,void 0,this),$t.jsxDEV("dl",{className:"spot-econ-facts",children:[$t.jsxDEV("div",{children:[$t.jsxDEV("dt",{children:"cuts"},void 0,!1,void 0,this),$t.jsxDEV("dd",{className:"num",children:A(b.cuts)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),$t.jsxDEV("div",{children:[$t.jsxDEV("dt",{children:"saved"},void 0,!1,void 0,this),$t.jsxDEV("dd",{className:"num",children:se(b.savedTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),$t.jsxDEV("div",{children:[$t.jsxDEV("dt",{children:"extra turns /100"},void 0,!1,void 0,this),$t.jsxDEV("dd",{className:"num",children:b.extraTurnsPer100Cuts.toFixed(1)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},y,!1,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var zb=_(Ke(),1);var Ns=_(te(),1);function ep({groups:r}){return Ns.jsxDEV("div",{className:"legend spot-group-legend",children:r.map((l)=>Ns.jsxDEV("span",{className:"legend-item",title:Ua[l].rule,style:{"--dot":Ua[l].color},children:[Ns.jsxDEV("span",{className:"spot-group-mark","data-shape":Ua[l].shape,"aria-hidden":"true"},void 0,!1,void 0,this),Ua[l].label]},l,!0,void 0,this))},void 0,!1,void 0,this)}function tp({hidden:r,expanded:l,onToggle:i}){return Ns.jsxDEV("button",{type:"button",className:"btn spot-more-tools","data-variant":"ghost","data-size":"sm","aria-expanded":l,title:l?void 0:r.join(", "),onClick:i,children:l?"Show fewer tools":`Show ${r.length} more tools`},void 0,!1,void 0,this)}function Pb({kind:r,count:l}){let i=Es[r],d=i.icon;return Ns.jsxDEV("span",{className:"spot-kind",style:{"--kind":i.color},title:l===void 0?i.rule:`${l} × ${i.label.toLowerCase()}: ${i.rule}`,children:[Ns.jsxDEV(d,{size:12,"aria-hidden":"true"},void 0,!1,void 0,this),l===void 0?i.label:Ns.jsxDEV("span",{className:"num",children:l},void 0,!1,void 0,this),l!==void 0&&Ns.jsxDEV("span",{className:"sr-only",children:i.plural},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Mt=_(te(),1),aO={applied:-12,scoreFree:-6,holdout:0,gated:6,reference:12},oO=["scoreFree","holdout","reference"],K2=["applied","holdout"],rO="One rule for every group: within 12 calls, a read of the same path overlapping the result's own window (the whole file without a selector), a rerun of the call (a similar bash command; for other tools, ≥ 60% shared argument tokens), or a read of an artifact it named; not after an edit of that path (reads) or any edit (reruns), nor from the same request.";function Q2({stats:r,stale:l}){let[i,d]=zb.useState(!1),f=new Map;for(let y of r.fetchBack)f.set(`${y.tool}/${y.group}`,y);let g=new Set(r.fetchBack.filter((y)=>y.results>0).map((y)=>y.tool)),{listed:v,rest:h}=Qo(Gi(r).filter((y)=>g.has(y))),m=Bb.filter((y)=>y!=="gated"||r.fetchBack.some((b)=>b.group==="gated"&&b.results>0)),S=[];for(let y of i?[...v,...h]:v){let b=Hr(y),L=Bb.flatMap((R)=>{let O=f.get(`${y}/${R}`);return O!==void 0&&O.results>0?[O]:[]});if(L.length===0)continue;let T=new Map(L.map((R)=>[R.group,R])),C=T.get("applied"),I=L.map((R)=>({key:R.group,...R.rate,color:Ua[R.group].color,shape:Ua[R.group].shape,offset:aO[R.group],title:`${Ua[R.group].label}: ${jt(R.rate.value)} of ${A(R.results)} results in ${A(R.sessions)} sessions`}));S.push({key:y,label:Mt.jsxDEV("span",{className:"spot-fb-tool",title:y,children:[Mt.jsxDEV(b,{size:13,"aria-hidden":"true"},void 0,!1,void 0,this),Mt.jsxDEV("span",{className:"spot-fb-tool-name",children:y},void 0,!1,void 0,this)]},void 0,!0,void 0,this),marks:I,figure:Mt.jsxDEV("span",{style:{color:Ua.applied.color},title:Ua.applied.rule,children:C===void 0?"–":jt(C.rate.value)},void 0,!1,void 0,this),detail:Mt.jsxDEV(Mt.Fragment,{children:oO.map((R,O)=>{let P=T.get(R);return Mt.jsxDEV("span",{title:`${Ua[R].label}: ${Ua[R].rule}`,children:[O>0&&" · ",Mt.jsxDEV("span",{className:"spot-fb-detail","data-group":R,children:P===void 0?"–":jt(P.rate.value)},void 0,!1,void 0,this)]},R,!0,void 0,this)})},void 0,!1,void 0,this)})}return Mt.jsxDEV(fe,{index:3,title:"Does the agent come back for it?",description:"Share of results the agent fetched more of within 12 calls: cut with Spotlight's scores, cut without them, held out at random, kept whole by pi's former edit gate, and left unchanged",stale:l,footer:`${rO} Held-out results are the true counterfactual: drawn at random from the would-be cuts and shown whole; until they accumulate, unchanged results stand in, re-weighted to the cuts' size mix. Score-free cuts skip Spotlight by a second coin and take the no-score fallback rules: if they come back as often as scored cuts, the scores add nothing. Gated reads are reads pi's former edit gate (removed) kept whole, listed only where the range has any. Small print: score-free · held out · unchanged. Whiskers are 90% session bootstrap intervals, from 3 sessions.`,children:S.length===0?Mt.jsxDEV("div",{className:"empty",children:"No evaluated results in this range."},void 0,!1,void 0,this):Mt.jsxDEV("div",{className:"spot-fb",children:[Mt.jsxDEV(ep,{groups:m},void 0,!1,void 0,this),Mt.jsxDEV(lg,{rows:S,format:jt,formatTick:(y)=>`${Math.round(y*100)}%`},void 0,!1,void 0,this),h.length>0&&Mt.jsxDEV(tp,{hidden:h,expanded:i,onToggle:()=>d((y)=>!y)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function nO({tool:r,counts:l}){let i=Hr(r),d=new Map(l.map((m)=>[m.gap,m])),f=0,g=0;for(let m of l)f+=m.applied,g+=m.holdout;let v={applied:f,holdout:g},h=0;for(let m of l){if(f>0)h=Math.max(h,m.applied/f);if(g>0)h=Math.max(h,m.holdout/g)}return Mt.jsxDEV("section",{className:"spot-gap","aria-label":`${r} fetch-back gaps`,children:[Mt.jsxDEV("h3",{className:"spot-panel-title row spot-gap-title",children:[Mt.jsxDEV(i,{size:13,"aria-hidden":"true"},void 0,!1,void 0,this),r,Mt.jsxDEV("span",{className:"dim",children:[Mt.jsxDEV("span",{className:"num",children:A(f)},void 0,!1,void 0,this)," shortened ·"," ",Mt.jsxDEV("span",{className:"num",children:A(g)},void 0,!1,void 0,this)," held out"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),f+g===0?Mt.jsxDEV("div",{className:"spot-gap-empty dim",children:"No fetch-backs"},void 0,!1,void 0,this):Mt.jsxDEV("div",{className:"spot-gap-bins",children:V2.map((m)=>{let S=d.get(m);return Mt.jsxDEV("div",{className:"spot-gap-bin",children:[Mt.jsxDEV("div",{className:"spot-gap-bars",children:K2.map((y)=>{let b=S?.[y]??0,L=v[y],T=L>0?b/L:0;return Mt.jsxDEV("span",{className:"spot-gap-bar","data-group":y,"data-empty":L===0,title:`${m} ${m==="1"?"call":"calls"} later: ${A(b)} of ${A(L)} ${Ua[y].label.toLowerCase()} fetch-backs`,children:[L>0&&Mt.jsxDEV("span",{className:"spot-gap-value num",children:jt(T)},void 0,!1,void 0,this),Mt.jsxDEV("span",{className:"spot-gap-fill",style:{height:`${h>0?T/h*100:0}%`}},void 0,!1,void 0,this)]},y,!0,void 0,this)})},void 0,!1,void 0,this),Mt.jsxDEV("span",{className:"spot-gap-label num",children:m},void 0,!1,void 0,this)]},m,!0,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function W2({stats:r,stale:l}){let[i,d]=zb.useState(!1),f=new Set(r.gaps.map((h)=>h.tool)),{listed:g,rest:v}=Qo(Gi(r).filter((h)=>f.has(h)));return Mt.jsxDEV(fe,{index:3,title:"How soon it comes back",description:"Calls between a result and the first fetch-back after it",stale:l,footer:"Bars are each group's share of its own fetch-backs, so shortened and held-out results compare despite their different counts (next to each tool). Same rule as above; nothing after 12 calls counts.",children:g.length===0?Mt.jsxDEV("div",{className:"empty",children:"No fetch-backs in this range."},void 0,!1,void 0,this):Mt.jsxDEV(Mt.Fragment,{children:[Mt.jsxDEV(ep,{groups:K2},void 0,!1,void 0,this),Mt.jsxDEV("div",{className:"spot-gaps",children:(i?[...g,...v]:g).map((h)=>Mt.jsxDEV(nO,{tool:h,counts:r.gaps.filter((m)=>m.tool===h)},h,!1,void 0,this))},void 0,!1,void 0,this),v.length>0&&Mt.jsxDEV(tp,{hidden:v,expanded:i,onToggle:()=>d((h)=>!h)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var Ot=_(te(),1);function Z2({stats:r,windowLabel:l,stale:i}){let{gross:d,clawback:f,adjusted:g}=r,{netTokens:v,netUsd:h}=g,m=Yn(v,po),S=Yn(h,xr),y=g.byTool.filter((O)=>O.cuts>0&&O.holdouts<g.minHoldouts).map((O)=>O.tool),b=Qo(y),L=b.rest.length>0?[...b.listed,`${b.rest.length} more tools`]:y,T=L.length<2?L[0]??"":`${L.slice(0,-1).join(", ")} and ${L.at(-1)}`,C=Qo(g.byTool),I=C.listed.map((O)=>({tool:O.tool,holdouts:O.holdouts,thin:y.includes(O.tool)}));if(C.rest.length>0)I.push({tool:_r,holdouts:C.rest.reduce((O,P)=>O+P.holdouts,0),thin:C.rest.some((O)=>y.includes(O.tool))});let R=d.fullSavedTokens>0?1-d.savedTokens/d.fullSavedTokens:null;return Ot.jsxDEV("section",{className:"card rise spot-hero","data-stale":i,"aria-label":"Spotlight savings summary",children:[Ot.jsxDEV("div",{className:"spot-hero-main",children:[Ot.jsxDEV("div",{className:"spot-hero-headline",children:[Ot.jsxDEV("div",{className:"spot-eyebrow",children:["Net saved in ",l,", after fetch-backs a cut caused"]},void 0,!0,void 0,this),Ot.jsxDEV("div",{className:"spot-hero-figures",children:[Ot.jsxDEV("span",{className:"spot-hero-value gradient-text",title:v.value===null?void 0:`${A(v.value)} tokens`,children:v.value===null?"–":po(v.value)},void 0,!1,void 0,this),Ot.jsxDEV("span",{className:"spot-hero-unit",children:"tokens"},void 0,!1,void 0,this),h.value!==null&&Ot.jsxDEV("span",{className:"spot-hero-usd","data-negative":h.value<0,title:"Avoided context priced at each later request's cache rates, minus the fetch-backs beyond the holdout baseline (priced the same way) and Spotlight's own bill",children:xr(h.value)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),(m!==""||S!=="")&&Ot.jsxDEV("div",{className:"spot-hero-interval",children:["90% interval"," ",Ot.jsxDEV("span",{className:"num",children:[m,S].filter(Boolean).join(" · ")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Ot.jsxDEV("div",{className:"spot-hero-aside",children:[Ot.jsxDEV("p",{className:"spot-hero-note",children:["Counted against what pi would have shown unshaped (",Ot.jsxDEV("code",{children:"plain"},void 0,!1,void 0,this),") for the same call (its inline cap and read page), with fetch-backs that held-out results show happen anyway added back."," ",d.fullSavedTokens>d.savedTokens&&Ot.jsxDEV(Ot.Fragment,{children:["Against the full output the shaping read, the cuts would claim"," ",Ot.jsxDEV("s",{className:"spot-struck num",children:se(d.fullSavedTokens)},void 0,!1,void 0,this),", overstating the gross by ",jt(R),"."," "]},void 0,!0,void 0,this),d.widerThanPlain>0&&`${A(d.widerThanPlain)} ${d.widerThanPlain===1?"result was":"results were"} wider than plain would have shown: cuts shown that way count as losses, results pi capped at plain's text save nothing. `,d.estimatedPlain>0&&`${A(d.estimatedPlain)} older ${d.estimatedPlain===1?"result estimates":"results estimate"} plain from the inline cap.`]},void 0,!0,void 0,this),y.length>0&&Ot.jsxDEV("p",{className:"spot-hero-warn",role:"note",children:[Ot.jsxDEV(Ro,{size:14,"aria-hidden":"true"},void 0,!1,void 0,this),Ot.jsxDEV("span",{children:[T," ",y.length===1?"has":"have"," fewer than"," ",A(g.minHoldouts)," held-out results: ",y.length===1?"its":"their"," ","part of the net rests on a thin baseline."]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Ot.jsxDEV("div",{className:"spot-hero-stats",children:[Ot.jsxDEV(ie,{size:"sm",label:"Gross vs plain",title:"Σ (plain − shortened) tokens over shortened results; a cut that showed more than plain counts negative",value:po(d.savedTokens),hint:`${jt(d.ofToolOutput)} of tool output · ${A(d.shaped)} of ${A(d.results)} results shortened`},void 0,!1,void 0,this),Ot.jsxDEV(ie,{size:"sm",label:"Fetched back beyond baseline",title:"Fetch-back tokens beyond what held-out results (shown whole) fetch anyway, per tool (reads split by whether the agent was likely to edit them); 90% interval below",value:g.excessTokens.value===null?"–":po(-g.excessTokens.value),hint:Ot.jsxDEV(Ot.Fragment,{children:["of ",se(f.tokens)," fetched back",g.excessTokens.lo!==null&&g.excessTokens.hi!==null&&Ot.jsxDEV(Ot.Fragment,{children:[" ",Ot.jsxDEV("span",{className:"dim",children:["·"," ",Ot.jsxDEV("span",{className:"spot-nowrap",children:["90% ",Yn(g.excessTokens,se)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Ot.jsxDEV(ie,{size:"sm",label:"Held out",title:`Would-be cuts shown whole at random: the baseline per tool (under ${g.minHoldouts} is thin)`,value:A(r.holdouts),hint:Ot.jsxDEV("span",{className:"spot-hero-tools",children:I.map((O)=>Ot.jsxDEV("span",{"data-thin":O.thin,title:O.tool===_r?C.rest.map((P)=>`${P.tool} ${A(P.holdouts)}`).join(", "):O.thin?`${O.tool}: under ${g.minHoldouts} held out`:void 0,children:[O.tool," ",Ot.jsxDEV("span",{className:"num",children:A(O.holdouts)},void 0,!1,void 0,this),O.thin&&Ot.jsxDEV(Ro,{size:11,"aria-label":"thin baseline"},void 0,!1,void 0,this)]},O.tool,!0,void 0,this))},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ot.jsxDEV(ie,{size:"sm",label:"Score-free cuts",title:"Cuts a random coin made without Spotlight (the no-score fallback rules): what Spotlight's scores add is the difference",value:A(r.scoreFree),hint:"cut without Spotlight, for comparison"},void 0,!1,void 0,this),Ot.jsxDEV(ie,{size:"sm",label:"Sessions",value:A(r.sessions),hint:"experiment sessions, all shaped"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var eR=_(Ke(),1);var Dt=_(te(),1);function J2({p50:r,p90:l}){if(r===null)return Dt.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this);return Dt.jsxDEV("span",{className:"num",children:[Ct(r),Dt.jsxDEV("span",{className:"dim",children:[" / ",Ct(l)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var sO={no_credential:"not signed in",transport:"network"};function lO(r){let l=/^http_(\d+)$/.exec(r);if(l)return`HTTP ${l[1]}`;return sO[r]??r.replaceAll("_"," ")}function iO({causes:r}){if(r.length===0)return Dt.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this);return Dt.jsxDEV("span",{children:r.map(({cause:l,results:i,share:d},f)=>Dt.jsxDEV(eR.Fragment,{children:[f>0&&Dt.jsxDEV("span",{className:"dim",children:" · "},void 0,!1,void 0,this),Dt.jsxDEV("span",{className:"spot-nowrap",title:`${A(i)} results`,children:[lO(l)," ",Dt.jsxDEV("span",{className:"num",children:jt(d)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},l,!0,void 0,this))},void 0,!1,void 0,this)}var uO=[{key:"failures",header:"Spotlight failures",align:"right",sort:(r)=>r.failureRate??-1,title:"Results whose Spotlight calls failed or timed out, of those that called it: they were cut by the no-score fallback",render:(r)=>r.failureRate===null?Dt.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this):Dt.jsxDEV(ct,{tone:gr(r.failureRate),mono:!0,children:jt(r.failureRate)},void 0,!1,void 0,this)},{key:"causes",header:"Failure causes",align:"right",sort:(r)=>r.failureCauses[0]?.share??-1,wrap:!0,title:"Why the calls failed, as shares of the results that called Spotlight. A result whose calls failed two ways counts under both; unrecorded results were journaled before pi recorded causes",render:(r)=>Dt.jsxDEV(iO,{causes:r.failureCauses},void 0,!1,void 0,this)},{key:"failedWait",header:"Waited on failures",align:"right",sort:(r)=>r.failedWaitMs,title:"Wall time tool calls spent on Spotlight calls that failed or timed out",render:(r)=>r.failedWaitMs>0?Dt.jsxDEV("span",{className:"num",children:Ct(r.failedWaitMs)},void 0,!1,void 0,this):Dt.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this)},{key:"results",header:"Results",align:"right",sort:(r)=>r.results,title:"Results Spotlight evaluated, held-out ones included",render:(r)=>Dt.jsxDEV("span",{className:"num",children:A(r.results)},void 0,!1,void 0,this)},{key:"shape",header:"Shaping p50 / p90",align:"right",sort:(r)=>r.shapeMsP50??-1,title:"Wall time shaping added to a tool call",render:(r)=>Dt.jsxDEV(J2,{p50:r.shapeMsP50,p90:r.shapeMsP90},void 0,!1,void 0,this)},{key:"spotlight",header:"Spotlight p50 / p90",align:"right",sort:(r)=>r.spotlightMsP50??-1,title:"Spotlight's own request time, over results whose calls all answered",render:(r)=>Dt.jsxDEV(J2,{p50:r.spotlightMsP50,p90:r.spotlightMsP90},void 0,!1,void 0,this)},{key:"usd",header:"Spotlight $",align:"right",sort:(r)=>r.spotlightUsd,render:(r)=>Dt.jsxDEV("span",{className:"num",children:Pt(r.spotlightUsd)},void 0,!1,void 0,this)}];function dO({overhead:r}){let l=r.failureRate;if(l===null)return null;let i=gr(l);if(i==="ok")return null;let d=r.failedWaitMs,f=r.failureCauses.find((g)=>g.cause==="no_credential");return Dt.jsxDEV("div",{className:"spot-callout","data-tone":i,role:"note",children:[Dt.jsxDEV(Ro,{size:16,"aria-hidden":"true"},void 0,!1,void 0,this),Dt.jsxDEV("div",{children:[Dt.jsxDEV("div",{className:"spot-callout-head",children:[Dt.jsxDEV("span",{className:"num",children:jt(l)},void 0,!1,void 0,this)," of results that called Spotlight failed"]},void 0,!0,void 0,this),Dt.jsxDEV("p",{className:"spot-callout-copy",children:["A failed or timed-out call leaves the cut to the no-score fallback, so those results measure the fallback rather than Spotlight's scorer. Read every comparison on this page with that share in mind.",d>0&&Dt.jsxDEV(Dt.Fragment,{children:[" ","Tool calls waited ",Dt.jsxDEV("span",{className:"num",children:Ct(d)},void 0,!1,void 0,this)," on those failures."]},void 0,!0,void 0,this),f&&Dt.jsxDEV(Dt.Fragment,{children:[" ",Dt.jsxDEV("span",{className:"num",children:jt(f.share)},void 0,!1,void 0,this)," had no Stencil sign-in: run"," ",Dt.jsxDEV("code",{children:"/login"},void 0,!1,void 0,this)," and choose Stencil, or set ",Dt.jsxDEV("code",{children:"STENCIL_API_KEY"},void 0,!1,void 0,this),", to restore ranking."]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function tR({stats:r,stale:l}){let{overhead:i}=r,d=i.results>0?[i]:[];return Dt.jsxDEV(fe,{index:3,title:"Overhead",description:"What shaping costs: Spotlight failures, added latency and its bill",flush:!0,stale:l,footer:"Every evaluated result counts, held-out ones included: they were shaped too, just not shown.",children:[i.results>0&&Dt.jsxDEV(dO,{overhead:i},void 0,!1,void 0,this),Dt.jsxDEV(Ft,{rows:d,rowKey:()=>"overhead",columns:uO,dense:!0,empty:Dt.jsxDEV("div",{className:"empty",children:"No evaluated results in this range."},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Ve=_(te(),1),ap=["applied","scoreFree","holdout"],cO={applied:-7,scoreFree:0,holdout:7},fO=[{key:"auc",title:"Heat ranks needed lines higher",chanceLabel:"AUC · chance 0.5",chance:0.5,rule:"P(a needed line is hotter than an unneeded line of the same result), ties half",format:(r)=>r.toFixed(2)},{key:"topLift",title:"Hottest tenth holds them",chanceLabel:"lift · chance 1.0",chance:1,rule:"Needed-line rate among each result's hottest 10% of lines over its rate among all lines",format:(r)=>`${r.toFixed(2)}×`},{key:"keptLift",title:"The cut keeps them",chanceLabel:"lift · random cut 1.0",chance:1,rule:"Share of needed lines the cut kept over the share of all lines it kept",format:(r)=>`${r.toFixed(2)}×`}],pO=[{key:"reread",label:"Read again",rule:"A later read of the same file selected the lines"},{key:"edit",label:"Edited",rule:"A later edit's Find text matched the lines"}];function aR({stats:r,stale:l}){let{ranking:i}=r,d=new Map(i.cells.map((g)=>[g.group,g])),f=ap.some((g)=>(d.get(g)?.results??0)>0);return Ve.jsxDEV(fe,{index:4,title:"Does Spotlight keep what the agent needs?",description:"Lines of a shaped read the agent read again or edited later, against Spotlight's heat and the cut",actions:Ve.jsxDEV(ep,{groups:ap},void 0,!1,void 0,this),stale:l,footer:"Shaped reads with at least one needed line, until the file's first edit or a later whole-file read. Scored and score-free cuts are biased alike (the agent re-reads what a cut hid), so compare them with each other; held-out would-be cuts, shown whole, are the unbiased measure. Score-free cuts have no heat, so only the cut's lift exists for them. Dashed lines are chance; whiskers are 90% session bootstrap intervals, from 3 sessions.",children:!f?Ve.jsxDEV("div",{className:"empty",children:"No shaped read was needed again in this range."},void 0,!1,void 0,this):Ve.jsxDEV("div",{className:"spot-rank",children:[Ve.jsxDEV("div",{className:"spot-rank-panels",children:fO.map((g)=>Ve.jsxDEV(mO,{measure:g,cells:d},g.key,!1,void 0,this))},void 0,!1,void 0,this),Ve.jsxDEV("div",{className:"spot-rank-foot",children:[Ve.jsxDEV(hO,{cells:d},void 0,!1,void 0,this),Ve.jsxDEV(gO,{positions:i.position},void 0,!1,void 0,this),Ve.jsxDEV("section",{className:"spot-rank-sources","aria-label":"How the need was seen",children:[Ve.jsxDEV("h3",{className:"spot-panel-title",children:"How the need was seen"},void 0,!1,void 0,this),Ve.jsxDEV("dl",{className:"spot-facts spot-rank-facts",children:pO.map((g)=>Ve.jsxDEV("div",{title:g.rule,children:[Ve.jsxDEV("dt",{children:g.label},void 0,!1,void 0,this),Ve.jsxDEV("dd",{className:"num",children:[A(i.sources[g.key]),Ve.jsxDEV("span",{className:"dim",children:" results"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},g.key,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function mO({measure:r,cells:l}){let i=ap.flatMap((g)=>{let v=l.get(g);if(v===void 0||v.results===0)return[];let h=v[r.key],m=Yn(h,r.format);return[{key:g,...h,color:Ua[g].color,shape:Ua[g].shape,offset:cO[g],title:`${Ua[g].label}: ${h.value===null?"–":r.format(h.value)}${m===""?"":` (${m})`} over ${A(v.results)} results, ${A(v.neededLines)} needed lines`}]}),d=l.get("applied")?.[r.key].value??null,f=[{key:"reads",label:"Shaped reads",marks:i,figure:Ve.jsxDEV("span",{style:{color:Ua.applied.color},children:d===null?"–":r.format(d)},void 0,!1,void 0,this),detail:Ve.jsxDEV(Ve.Fragment,{children:["scoreFree","holdout"].map((g,v)=>{let h=l.get(g)?.[r.key].value??null;return Ve.jsxDEV("span",{title:Ua[g].label,children:[v>0&&" · ",Ve.jsxDEV("span",{className:"spot-fb-detail","data-group":g,children:h===null?"–":r.format(h)},void 0,!1,void 0,this)]},g,!0,void 0,this)})},void 0,!1,void 0,this)}];return Ve.jsxDEV("section",{className:"spot-rank-panel","aria-label":r.title,children:[Ve.jsxDEV("h3",{className:"spot-panel-title",title:r.rule,children:[r.title,Ve.jsxDEV("span",{className:"spot-rank-chance",children:r.chanceLabel},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ve.jsxDEV(lg,{rows:f,guides:[{key:"chance",value:r.chance,color:"var(--ink-3)"}],format:r.format,formatTick:(g)=>String(Number(g.toFixed(2)))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function hO({cells:r}){return Ve.jsxDEV("section",{"aria-label":"Sample per cell",children:[Ve.jsxDEV("h3",{className:"spot-panel-title",children:["Sample per cell",Ve.jsxDEV("span",{className:"spot-rank-chance",children:"results · needed lines"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ve.jsxDEV("table",{className:"spot-rank-n",children:[Ve.jsxDEV("thead",{children:Ve.jsxDEV("tr",{children:ap.map((l)=>Ve.jsxDEV("th",{scope:"col",title:Ua[l].rule,children:Ua[l].label},l,!1,void 0,this))},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ve.jsxDEV("tbody",{children:Ve.jsxDEV("tr",{children:ap.map((l)=>{let i=r.get(l);return Ve.jsxDEV("td",{className:"num","data-thin":i!==void 0&&i.results<20,children:i===void 0||i.results===0?Ve.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this):Ve.jsxDEV("span",{title:`${A(i.neededLines)} needed lines`,children:[A(i.results),Ve.jsxDEV("span",{className:"dim",children:[" · ",se(i.neededLines)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},l,!1,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function gO({positions:r}){let l=Math.max(0,...r.map((i)=>i.meanHeat));return Ve.jsxDEV("section",{className:"spot-rank-pos","aria-label":"Mean heat by position",children:[Ve.jsxDEV("h3",{className:"spot-panel-title",children:["Mean heat by position",Ve.jsxDEV("span",{className:"spot-rank-chance",children:"0–9, outputs ≥ 40 lines"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),r.length===0||l===0?Ve.jsxDEV("div",{className:"dim spot-gap-empty",children:"No heat recorded"},void 0,!1,void 0,this):Ve.jsxDEV(Ve.Fragment,{children:[Ve.jsxDEV("div",{className:"spot-rank-bars",children:r.map((i)=>Ve.jsxDEV("div",{className:"spot-rank-bar",title:`${i.label}: mean heat ${i.meanHeat.toFixed(2)} over ${A(i.lines)} lines`,children:[Ve.jsxDEV("span",{className:"spot-rank-bar-track",children:[Ve.jsxDEV("span",{className:"spot-rank-bar-value num",children:i.meanHeat.toFixed(1)},void 0,!1,void 0,this),Ve.jsxDEV("span",{className:"spot-rank-bar-fill",style:{height:`calc((100% - 14px) * ${i.meanHeat/l})`}},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ve.jsxDEV("span",{className:"spot-rank-bar-label num",children:i.label.replace(/^lines? /,"L").replace(/%$/,"")},void 0,!1,void 0,this)]},i.label,!0,void 0,this))},void 0,!1,void 0,this),Ve.jsxDEV("div",{className:"micro spot-rank-axis",children:"L = line of the output, then each tenth of it (% into it)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var pd=_(Ke(),1);var de=_(te(),1);function Ub(r){return`${r.sessionFile}\x00${r.toolCallId}`}function oR({value:r}){return de.jsxDEV("span",{className:r<0?"num tone-bad":r>0?"num tone-ok":"num",children:po(r)},void 0,!1,void 0,this)}function yO({row:r}){let{plainTokens:l,outTokens:i}=r,d=l>0?Math.min(1,i/l):1;return de.jsxDEV("div",{className:"spot-shrink","data-holdout":r.holdout,title:`plain would show ${A(l)} tokens, the cut ${r.holdout?"would show":"showed"} ${A(i)} (shaping read ${A(r.inTokens)})`,children:[de.jsxDEV("span",{className:"num",children:[se(l),de.jsxDEV("span",{className:"dim",children:" → "},void 0,!1,void 0,this),se(i)]},void 0,!0,void 0,this),de.jsxDEV("span",{className:"spot-shrink-bar","aria-hidden":"true",children:de.jsxDEV("span",{className:"spot-shrink-kept",style:{width:`${d*100}%`}},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function vO(r){let l=new Map;for(let i of r.recoveries)l.set(i.kind,(l.get(i.kind)??0)+1);return gg.flatMap((i)=>{let d=l.get(i);return d?[[i,d]]:[]})}var xO=[{key:"target",header:"Result",width:"40%",sort:(r)=>r.timestamp,render:(r)=>{let l=Hr(r.tool);return de.jsxDEV("div",{className:"spot-result",children:[de.jsxDEV("span",{className:"spot-tool",title:r.tool,children:[de.jsxDEV(l,{size:14,"aria-hidden":"true"},void 0,!1,void 0,this),de.jsxDEV("span",{className:"sr-only",children:r.tool},void 0,!1,void 0,this)]},void 0,!0,void 0,this),de.jsxDEV("div",{className:"stack spot-result-text",children:[de.jsxDEV("span",{className:"spot-target truncate",title:r.target,children:r.target},void 0,!1,void 0,this),de.jsxDEV("span",{className:"row spot-result-meta",children:[r.holdout&&de.jsxDEV(rR,{},void 0,!1,void 0,this),r.scoreFree&&de.jsxDEV(nR,{},void 0,!1,void 0,this),de.jsxDEV("span",{className:"dim",title:ro(r.timestamp),children:ma(r.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}},{key:"shrink",header:"Plain → out",align:"right",sort:(r)=>r.plainTokens>0?r.outTokens/r.plainTokens:1,title:"What pi would have shown unshaped (plain) for the call, and what the cut showed; the bar is the share that survived",render:(r)=>de.jsxDEV(yO,{row:r},void 0,!1,void 0,this)},{key:"saved",header:"Saved",align:"right",sort:(r)=>r.savedTokens,render:(r)=>r.holdout?de.jsxDEV("span",{className:"spot-would-save",title:"Held out: what the cut would have saved",children:[de.jsxDEV("span",{className:"dim",children:"would save "},void 0,!1,void 0,this),de.jsxDEV("span",{className:"num",children:po(r.savedTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this):de.jsxDEV("span",{className:"num",children:po(r.savedTokens)},void 0,!1,void 0,this)},{key:"hidden",header:"Hidden lines",align:"right",sort:(r)=>r.hiddenLines,render:(r)=>r.hiddenLines>0?de.jsxDEV("span",{className:"num",children:A(r.hiddenLines)},void 0,!1,void 0,this):de.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this)},{key:"recoveries",header:"Fetched back",sort:(r)=>r.recoveries.length,render:(r)=>{let l=vO(r);return l.length===0?de.jsxDEV("span",{className:"dim",title:"Nothing fetched back",children:"–"},void 0,!1,void 0,this):de.jsxDEV("span",{className:"row spot-kinds",children:l.map(([i,d])=>de.jsxDEV(Pb,{kind:i,count:d},i,!1,void 0,this))},void 0,!1,void 0,this)}},{key:"net",header:"Net",align:"right",sort:(r)=>r.netTokens,title:"Saved tokens minus the tokens of the calls that fetched hidden output back",render:(r)=>r.holdout?de.jsxDEV("span",{className:"dim",title:"Held out: the model saw the whole result, so nothing was saved",children:"–"},void 0,!1,void 0,this):de.jsxDEV(oR,{value:r.netTokens},void 0,!1,void 0,this)}];function rR(){return de.jsxDEV("span",{title:"Held out at random: the model saw the original, unshortened result",children:de.jsxDEV(ct,{children:"held out"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function nR(){return de.jsxDEV("span",{title:"A random coin skipped Spotlight: the no-score fallback rules made this cut",children:de.jsxDEV(ct,{children:"score-free"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function sR({rows:r,stale:l}){let[i,d]=pd.useState(null),f=pd.useCallback(()=>d(null),[]),g=pd.useMemo(()=>r.find((v)=>Ub(v)===i)??null,[r,i]);return de.jsxDEV(de.Fragment,{children:[de.jsxDEV(fe,{index:6,title:"Recent results",description:"The newest shortened and held-out tool results and what the agent fetched back",flush:!0,stale:l,footer:"Saved is what plain would have shown minus what the cut showed (the would-be cut for held-out ones, which save nothing); recovery tokens are the recovery calls' results (chars ÷ 4 when no exact count exists).",children:de.jsxDEV(Ft,{rows:r,rowKey:Ub,columns:xO,onRowClick:(v)=>d(Ub(v)),selectedKey:i,limit:15,empty:de.jsxDEV("div",{className:"empty",children:"No shortened or held-out results in this range."},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),de.jsxDEV(bO,{row:g,onClose:f},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function bO({row:r,onClose:l}){if(r===null)return null;let i=Hr(r.tool),d=r.savedTokens-r.netTokens;return de.jsxDEV(ad,{open:!0,onClose:l,width:600,title:de.jsxDEV("span",{className:"spot-drawer-title",title:r.target,children:r.target},void 0,!1,void 0,this),subtitle:de.jsxDEV("span",{className:"row spot-drawer-subtitle",children:[de.jsxDEV(i,{size:13,"aria-hidden":"true"},void 0,!1,void 0,this),r.tool,r.holdout&&de.jsxDEV(rR,{},void 0,!1,void 0,this),r.scoreFree&&de.jsxDEV(nR,{},void 0,!1,void 0,this),de.jsxDEV("span",{children:ro(r.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:[de.jsxDEV("div",{className:"spot-drawer-summary",children:[de.jsxDEV("div",{children:[de.jsxDEV("div",{className:"spot-eyebrow",children:r.holdout?"Would save":"Saved"},void 0,!1,void 0,this),de.jsxDEV("div",{className:"spot-drawer-figure num",children:po(r.savedTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),de.jsxDEV("div",{children:[de.jsxDEV("div",{className:"spot-eyebrow",children:"Fetched back"},void 0,!1,void 0,this),de.jsxDEV("div",{className:d>0?"spot-drawer-figure num tone-warn":"spot-drawer-figure num",children:se(d)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),de.jsxDEV("div",{children:[de.jsxDEV("div",{className:"spot-eyebrow",children:"Net"},void 0,!1,void 0,this),r.holdout?de.jsxDEV("div",{className:"spot-drawer-figure dim",title:"Held out: the model saw the whole result",children:"–"},void 0,!1,void 0,this):de.jsxDEV("div",{className:r.netTokens<0?"spot-drawer-figure num tone-bad":"spot-drawer-figure num tone-ok",children:po(r.netTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),de.jsxDEV(ko,{items:[{key:"plain",label:"Plain would show",value:A(r.plainTokens)},{key:"out",label:"Tokens out",value:A(r.outTokens)},{key:"in",label:"Full output read",value:A(r.inTokens)},{key:"hidden",label:r.holdout?"Lines it would hide":"Hidden lines",value:A(r.hiddenLines)},{key:"steps",label:"Steps",value:r.steps.length>0?r.steps.join(" → "):"–"},{key:"cost",label:"Spotlight cost",value:Pt(r.spotlightUsd)},{key:"ms",label:"Shaping time",value:Ct(r.shapeMs)}]},void 0,!1,void 0,this),de.jsxDEV("div",{children:[de.jsxDEV("div",{className:"section-label",children:"Call"},void 0,!1,void 0,this),de.jsxDEV("pre",{className:"code-block spot-drawer-call",children:r.target},void 0,!1,void 0,this)]},void 0,!0,void 0,this),de.jsxDEV("div",{children:[de.jsxDEV("div",{className:"section-label",children:"Recovery timeline"},void 0,!1,void 0,this),de.jsxDEV("ol",{className:"spot-timeline",children:[de.jsxDEV("li",{className:"spot-timeline-item","data-kind":r.holdout?"holdout":"cut",children:[de.jsxDEV("span",{className:"spot-timeline-node","aria-hidden":"true",children:de.jsxDEV(qf,{size:12},void 0,!1,void 0,this)},void 0,!1,void 0,this),de.jsxDEV("div",{className:"spot-timeline-body",children:de.jsxDEV("div",{className:"row spot-timeline-head",children:[de.jsxDEV("span",{className:"cell-primary",children:r.holdout?"Held out: the model saw the original":"Shortened"},void 0,!1,void 0,this),de.jsxDEV("span",{className:"dim num",children:[r.holdout&&"would be ",se(r.plainTokens)," → ",se(r.outTokens)," tokens",r.hiddenLines>0&&`, ${A(r.hiddenLines)} lines hidden`]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),r.recoveries.map((f)=>de.jsxDEV("li",{className:"spot-timeline-item","data-kind":f.kind,style:{"--kind":Es[f.kind].color},children:[de.jsxDEV("span",{className:"spot-timeline-node","aria-hidden":"true",children:de.jsxDEV(mf,{size:12},void 0,!1,void 0,this)},void 0,!1,void 0,this),de.jsxDEV("div",{className:"spot-timeline-body",children:[de.jsxDEV("div",{className:"row spot-timeline-head",children:[de.jsxDEV(Pb,{kind:f.kind},void 0,!1,void 0,this),f.turn&&de.jsxDEV(ct,{tone:"warn",children:"extra turn"},void 0,!1,void 0,this),de.jsxDEV("span",{className:"spot-timeline-spacer"},void 0,!1,void 0,this),de.jsxDEV("span",{className:"num tone-warn",children:["+",se(f.tokens)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),de.jsxDEV("code",{className:"spot-timeline-target",title:f.target,children:[de.jsxDEV("span",{className:"dim",children:[f.tool," "]},void 0,!0,void 0,this),f.target]},void 0,!0,void 0,this),de.jsxDEV("div",{className:"micro",children:[f.after===0?"The next call":`${A(f.after)} ${f.after===1?"call":"calls"} later`,` · ${yr(Math.max(0,f.timestamp-r.timestamp))} after the cut`]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},f.toolCallId,!0,void 0,this)),de.jsxDEV("li",{className:"spot-timeline-item","data-kind":"net",children:[de.jsxDEV("span",{className:"spot-timeline-node","aria-hidden":"true"},void 0,!1,void 0,this),de.jsxDEV("div",{className:"spot-timeline-body",children:de.jsxDEV("div",{className:"row spot-timeline-head",children:[de.jsxDEV("span",{className:"cell-primary",children:r.holdout?r.recoveries.length===0?"Nothing fetched back":"Fetched more although it saw everything":r.recoveries.length===0?"Nothing fetched back: the full saving stands":"Net"},void 0,!1,void 0,this),de.jsxDEV("span",{className:"spot-timeline-spacer"},void 0,!1,void 0,this),r.holdout?de.jsxDEV("span",{className:"dim",children:"saves nothing"},void 0,!1,void 0,this):de.jsxDEV(oR,{value:r.netTokens},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var md=_(Ke(),1);var xt=_(te(),1),SO=[{value:"tokens",label:"Tokens"},{value:"usd",label:"$"}];function lR({value:r,onChange:l}){return xt.jsxDEV(Oa,{size:"sm","aria-label":"Unit",options:SO,value:r,onChange:l},void 0,!1,void 0,this)}function iR({stats:r,range:l,stale:i}){let[d,f]=md.useState("tokens"),g=aa(l),v=md.useMemo(()=>{let m=oo(l,r.series.map((I)=>I.timestamp),g.bucketMs),S=d==="usd",y=ha(r.series,m,(I)=>S?I.savedUsd:I.savedTokens),b=ha(r.series,m,(I)=>S?I.netUsd:I.netTokens),L=0,T=0,C=[{key:"gross",label:"Gross (cumulative)",color:"var(--spot-gross)",kind:"area",values:y.map((I)=>L+=I)},{key:"clawback",label:S?"Recoveries + Spotlight cost":"Fetched back",color:"var(--spot-clawback)",kind:"bars",values:y.map((I,R)=>b[R]-I)},{key:"net",label:"Net of every fetch-back (cumulative)",color:"var(--spot-net)",kind:"line",values:b.map((I)=>T+=I)}];return{buckets:m,series:C}},[r.series,l,g.bucketMs,d]),h=d==="usd"?xr:po;return xt.jsxDEV(fe,{index:1,title:"Savings over time",description:`Running gross and net per ${vg(g.bucketMs)}; what recoveries took back hangs below zero`,actions:xt.jsxDEV(lR,{value:d,onChange:f},void 0,!1,void 0,this),stale:i,footer:d==="usd"?"Dollars price each saved token at the cache-read rate of every later request that would have carried it (plus one cache write); recoveries are priced the same way.":"Gross is what the cuts removed against what plain would have shown; this net subtracts every later call that fetched hidden output back, including the share held-out results show comes back anyway (the headline adds that back). Each lands in the bucket of its own timestamp.",children:[xt.jsxDEV("div",{className:"spot-chart-legend",children:xt.jsxDEV(ia,{items:v.series.map((m)=>({key:m.key,label:m.label,color:m.color}))},void 0,!1,void 0,this)},void 0,!1,void 0,this),xt.jsxDEV(_o,{buckets:v.buckets,bucketMs:g.bucketMs,series:v.series,stacked:!1,height:480,format:h,formatTooltip:d==="usd"?xr:(m)=>m<0?`−${A(-m)}`:A(m),showTotal:!1,emptyLabel:"No shortened results in this range"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function uR({stats:r,stale:l}){let[i,d]=md.useState("tokens"),{gross:f,clawback:g,compounding:v,adjusted:h}=r,m=md.useMemo(()=>{let S=i==="usd",y=S?v.savedUsd:f.savedTokens,b=(O)=>y>0?jt(O/y):"",L=gg.map((O)=>{let P=g.byKind[O],Y=S?P.usd:P.tokens;return{key:O,label:xt.jsxDEV(xt.Fragment,{children:[xt.jsxDEV("span",{className:"spot-step-swatch",style:{background:Es[O].color}},void 0,!1,void 0,this),Es[O].plural,xt.jsxDEV("span",{className:"dim num",children:A(P.events)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),kind:"delta",value:-Y,color:Es[O].color,note:b(Y),title:Es[O].rule}}),T=[{key:"gross",label:S?"Gross saved":"Gross vs plain",kind:"total",value:y,color:"var(--spot-gross)",title:S?"Avoided context priced at each later request's cache-read rate, plus one cache write":"Σ (plain − shortened) tokens over shortened results; a cut that showed more than plain counts negative"},...L];if(S)T.push({key:"turns",label:xt.jsxDEV(xt.Fragment,{children:[xt.jsxDEV("span",{className:"spot-step-swatch",style:{background:"var(--spot-turns)"}},void 0,!1,void 0,this),"Extra turns",xt.jsxDEV("span",{className:"dim num",children:A(g.turns)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),kind:"delta",value:-g.turnsUsd,color:"var(--spot-turns)",note:b(g.turnsUsd),title:"Provider cost of requests that issued nothing but recovery calls"},{key:"spotlight",label:xt.jsxDEV(xt.Fragment,{children:[xt.jsxDEV("span",{className:"spot-step-swatch",style:{background:"var(--spot-cost)"}},void 0,!1,void 0,this),"Spotlight cost"]},void 0,!0,void 0,this),kind:"delta",value:-v.spotlightUsd,color:"var(--spot-cost)",note:b(v.spotlightUsd),title:"Spotlight's own scoring bill"});let C=S?v.netUsd:g.netTokens,I=S?h.netUsd.value:h.netTokens.value;if(I!==null){let O=I-C;T.push({key:"anyway",label:xt.jsxDEV(xt.Fragment,{children:[xt.jsxDEV("span",{className:"spot-step-swatch",style:{background:"var(--spot-anyway)"}},void 0,!1,void 0,this),"Back anyway"]},void 0,!0,void 0,this),kind:"delta",value:O,color:"var(--spot-anyway)",note:b(O),title:"Fetch-backs held-out results (shown whole) show the agent makes regardless, per tool: not the cut's cost"})}let R=I??C;return T.push({key:"net",label:I===null?"Net (no holdout baseline yet)":"Net",kind:"total",value:R,color:"var(--spot-net-fill)",note:b(R)}),T},[i,f,g,v,h]);return xt.jsxDEV(fe,{index:2,title:"Where the savings went",description:"Gross, minus each way hidden output came back",actions:xt.jsxDEV(lR,{value:i,onChange:d},void 0,!1,void 0,this),stale:l,footer:i==="usd"?"Recoveries are priced as carried context; extra turns are requests that only recovered; Spotlight cost is its own scoring bill. What comes back anyway is the recovery $ in proportion to the tokens held-out results fetch regardless.":"Recovered tokens are the full results of the recovery calls (estimated as chars ÷ 4 where no exact count exists). What comes back anyway is, per tool, the tokens a held-out result gets fetched back times the tool's cuts.",children:[xt.jsxDEV(t2,{steps:m,format:i==="usd"?Pt:se},void 0,!1,void 0,this),xt.jsxDEV("div",{className:"spot-by-tool",children:[xt.jsxDEV("div",{className:"section-label",children:"Net by tool, tokens"},void 0,!1,void 0,this),xt.jsxDEV(LO,{byTool:f.byTool,adjusted:h.byTool},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var kO=3;function LO({byTool:r,adjusted:l}){let i=new Map(l.map((h)=>[h.tool,h])),{listed:d,rest:f}=Qo(r,kO),g=d.map((h)=>{let m=i.get(h.tool),S=m===void 0?"":Yn(m.excessTokens,se),y=m?.baselinePerCut.value??null;return{tool:h.tool,totals:h,excess:m?.excessTokens.value??null,title:m===void 0?void 0:[`${A(m.cuts)} cuts fetched back ${se(m.recoveredTokens)} tokens`,y===null?"No held-out baseline yet":`${A(m.holdouts)} held-out results get ${se(y)} each fetched back anyway`,S===""?"":`Beyond the baseline: ${S} (90%)`].filter(Boolean).join(`
237
+ `)}});if(f.length>0){let h={tool:_r,results:0,shaped:0,inTokens:0,plainTokens:0,outTokens:0,savedTokens:0,fullSavedTokens:0},m=null;for(let S of f){h.results+=S.results,h.shaped+=S.shaped,h.savedTokens+=S.savedTokens;let y=i.get(S.tool)?.excessTokens.value??null;if(y!==null)m=(m??0)+y}g.push({tool:_r,totals:h,excess:m,title:`${A(f.length)} more tools: ${f.map((S)=>S.tool).join(", ")}`})}let v=Math.max(0,...g.map((h)=>h.totals.savedTokens));return xt.jsxDEV("ul",{className:"spot-tool-net",children:g.map(({tool:h,totals:m,excess:S,title:y})=>{let b=S===null?null:m.savedTokens-S,L=Hr(h),T=v>0?Math.max(0,m.savedTokens)/v*100:0,C=S!==null&&m.savedTokens>0?Math.min(1,S/m.savedTokens):0;return xt.jsxDEV("li",{className:"spot-tool-net-row",title:y,children:[xt.jsxDEV("div",{className:"row spot-tool-net-head",children:[xt.jsxDEV(L,{size:13,"aria-hidden":"true"},void 0,!1,void 0,this),xt.jsxDEV("span",{className:"cell-primary",children:h},void 0,!1,void 0,this),xt.jsxDEV("span",{className:"dim num",children:[A(m.shaped)," of ",A(m.results)," shortened"]},void 0,!0,void 0,this),xt.jsxDEV("span",{className:"spot-tool-net-value num",title:b===null?"No holdout baseline yet":void 0,children:po(b??m.savedTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),xt.jsxDEV("div",{className:"spot-tool-net-track","aria-hidden":"true",children:xt.jsxDEV("span",{className:"spot-tool-net-bar",style:{width:`${T}%`},children:xt.jsxDEV("span",{className:"spot-tool-net-excess",style:{width:`${C*100}%`}},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),xt.jsxDEV("div",{className:"micro spot-tool-net-detail",children:[po(m.savedTokens)," gross",S!==null&&xt.jsxDEV(xt.Fragment,{children:[" − ",se(S)," beyond baseline"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},h,!0,void 0,this)})},void 0,!1,void 0,this)}var cR=_(Ke(),1);var Sg=_(te(),1),dR=7,wO=[{group:"shaped",label:"Shaped sessions",color:"var(--spot-shaped)"},{group:"outside",label:"Outside the experiment",color:"var(--spot-outside)"}];function fR({stats:r,range:l,stale:i}){let d=aa(l),f=cR.useMemo(()=>{let g=oo(l,r.share.map((S)=>S.timestamp),d.bucketMs),v=[],h=[];for(let{group:S,label:y,color:b}of wO){let L=r.share.filter((P)=>P.group===S),T=ha(L,g,(P)=>P.toolTokens),C=ha(L,g,(P)=>P.contextTokens),I=0,R=0,O=g.map((P,Y)=>{let W=0,ue=0;for(let Z=Math.max(0,Y-dR+1);Z<=Y;Z++)W+=T[Z],ue+=C[Z];return I+=T[Y],R+=C[Y],ue>0?W/ue:null});if(R===0)continue;v.push({key:`${S}:raw`,label:`${y} · bucket`,color:b,kind:"dots",values:g.map((P,Y)=>C[Y]>0?T[Y]/C[Y]:null)},{key:`${S}:avg`,label:`${y} · rolling`,color:b,kind:"line",values:O}),h.push({key:S,label:y,color:b,value:jt(I/R)})}let m=[];if(r.experimentStart!==null){let S=Math.floor(r.experimentStart/d.bucketMs)*d.bucketMs,y=g.indexOf(S);if(y>=0)m.push({index:y,label:"experiment starts"})}return{buckets:g,series:v,legend:h,markers:m}},[r.share,r.experimentStart,l,d.bucketMs]);return Sg.jsxDEV(fe,{index:4,title:"Tool-output share of context",description:r.experimentStart!==null&&f.markers.length===0?`Since ${td(r.experimentStart,86400000)}, shaped sessions should carry less tool output`:"Shaped sessions should carry less tool output than the rest of your history",actions:Sg.jsxDEV(ia,{items:f.legend},void 0,!1,void 0,this),stale:i,footer:`Tool tokens are result chars ÷ 4; context adds assistant output, your prompts (chars ÷ 4) and each session's first prompt. Dots are single buckets (one ${vg(d.bucketMs)}); lines are the trailing ${dR}-bucket ratio of sums.`,children:Sg.jsxDEV(_o,{buckets:f.buckets,bucketMs:d.bucketMs,series:f.series,markers:f.markers,stacked:!1,height:260,format:(g)=>Ge(g,0),formatTooltip:(g)=>Ge(g),showTotal:!1,emptyLabel:"No tool calls in this range"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var kg=_(Ke(),1);var Xe=_(te(),1),hR=10,CO=30,pR=4;function TO(r,l){let i=new Map;for(let d of r){if(d.tool!==l)continue;let f=i.get(d.steps);if(f===void 0)f={steps:d.steps,bySize:new Map,total:{cuts:0,savedTokens:0,excessTokens:0}},i.set(d.steps,f);f.bySize.set(d.size,d),f.total.cuts+=d.cuts,f.total.savedTokens+=d.savedTokens,f.total.excessTokens+=d.excessTokens}return[...i.values()].sort((d,f)=>Number(d.steps==="other")-Number(f.steps==="other")||f.total.savedTokens-d.total.savedTokens)}function mR({kept:r,cuts:l,title:i,children:d}){if(r===null)return Xe.jsxDEV("div",{className:"spot-econ-cell","data-empty":"true",title:i,children:Xe.jsxDEV("span",{className:"dim",children:"No saving"},void 0,!1,void 0,this)},void 0,!1,void 0,this);let f=pR+Math.min(1,Math.abs(r-0.5)*2)*(CO-pR);return Xe.jsxDEV("div",{className:"spot-econ-cell","data-tone":r>=0.5?"ok":"bad","data-thin":l<hR,style:{"--tint":`${f}%`},title:i,children:[Xe.jsxDEV("span",{className:"spot-econ-net num",children:[jt(r),Xe.jsxDEV("span",{className:"spot-steps-unit",children:" kept"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Xe.jsxDEV("dl",{className:"spot-econ-facts",children:d},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function gR({stats:r,stale:l}){let[i,d]=kg.useState(!1),f=Gi(r).flatMap((m)=>{let S=TO(r.steps,m);return S.length===0?[]:[{tool:m,rows:S}]}),{listed:g,rest:v}=Qo(f),h=i?f:g;return Xe.jsxDEV(fe,{index:5,title:"Which cuts pay",description:"Share of each kind of cut's saving that stays saved after fetch-backs beyond the holdout baseline, by size",actions:Xe.jsxDEV("span",{className:"spot-econ-scale","aria-hidden":"true",children:[Xe.jsxDEV("span",{className:"num",children:"0%"},void 0,!1,void 0,this),Xe.jsxDEV("span",{className:"spot-econ-ramp"},void 0,!1,void 0,this),Xe.jsxDEV("span",{className:"num",children:"100% kept"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),stale:l,footer:`Scored and score-free cuts. Kept = (saved − fetch-back beyond the tool's holdout baseline) ÷ saved; fetched back is the share of cuts the agent came back for within 12 calls. Sizes are the tokens a cut saved against plain; step combinations under 10 cuts fold into "other". Cells under ${hR} cuts are dimmed.`,children:h.length===0?Xe.jsxDEV("div",{className:"empty",children:"No shortened results in this range."},void 0,!1,void 0,this):Xe.jsxDEV(Xe.Fragment,{children:[Xe.jsxDEV("div",{className:"spot-steps-scroll",children:Xe.jsxDEV("table",{className:"spot-econ spot-steps",children:[Xe.jsxDEV("thead",{children:Xe.jsxDEV("tr",{children:[Xe.jsxDEV("th",{scope:"col",children:"Steps"},void 0,!1,void 0,this),yg.map((m)=>Xe.jsxDEV("th",{scope:"col",className:"num",children:[m," ",Xe.jsxDEV("span",{className:"dim",children:"saved"},void 0,!1,void 0,this)]},m,!0,void 0,this)),Xe.jsxDEV("th",{scope:"col",children:"All sizes"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Xe.jsxDEV("tbody",{children:h.map(({tool:m,rows:S})=>{let y=Hr(m);return Xe.jsxDEV(kg.Fragment,{children:[Xe.jsxDEV("tr",{className:"spot-steps-tool",children:Xe.jsxDEV("th",{scope:"rowgroup",colSpan:yg.length+2,children:Xe.jsxDEV("span",{className:"row spot-econ-tool",children:[Xe.jsxDEV(y,{size:13,"aria-hidden":"true"},void 0,!1,void 0,this),m]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),S.map((b)=>{let{total:L}=b,T=L.savedTokens>0?(L.savedTokens-L.excessTokens)/L.savedTokens:null;return Xe.jsxDEV("tr",{children:[Xe.jsxDEV("th",{scope:"row",className:"spot-steps-name",title:b.steps,children:b.steps},void 0,!1,void 0,this),yg.map((C)=>{let I=b.bySize.get(C);if(I===void 0||I.cuts===0)return Xe.jsxDEV("td",{children:Xe.jsxDEV("div",{className:"spot-econ-cell","data-empty":"true",children:Xe.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},C,!1,void 0,this);let R=Yn(I.fetchBackRate,jt);return Xe.jsxDEV("td",{children:Xe.jsxDEV(mR,{kept:I.keptShare,cuts:I.cuts,title:[`${m} · ${b.steps} · ${C} saved: ${A(I.cuts)} cuts`,`Saved ${se(I.savedTokens)}, fetched back ${se(I.recoveredTokens)}, ${se(I.excessTokens)} beyond the baseline`,`Fetched back after ${jt(I.fetchBackRate.value)} of cuts${R===""?"":` (${R})`}`].join(`
238
+ `),children:[Xe.jsxDEV("div",{children:[Xe.jsxDEV("dt",{children:"cuts"},void 0,!1,void 0,this),Xe.jsxDEV("dd",{className:"num",children:A(I.cuts)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Xe.jsxDEV("div",{children:[Xe.jsxDEV("dt",{children:"fetched back"},void 0,!1,void 0,this),Xe.jsxDEV("dd",{className:"num",children:jt(I.fetchBackRate.value)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},C,!1,void 0,this)}),Xe.jsxDEV("td",{children:Xe.jsxDEV(mR,{kept:T,cuts:L.cuts,title:`${m} · ${b.steps}: ${A(L.cuts)} cuts saved ${se(L.savedTokens)}, ${se(L.excessTokens)} fetched back beyond the baseline`,children:[Xe.jsxDEV("div",{children:[Xe.jsxDEV("dt",{children:"cuts"},void 0,!1,void 0,this),Xe.jsxDEV("dd",{className:"num",children:A(L.cuts)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Xe.jsxDEV("div",{children:[Xe.jsxDEV("dt",{children:"saved"},void 0,!1,void 0,this),Xe.jsxDEV("dd",{className:"num",children:se(L.savedTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},b.steps,!0,void 0,this)})]},m,!0,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),v.length>0&&Xe.jsxDEV(tp,{hidden:v.map((m)=>m.tool),expanded:i,onToggle:()=>d((m)=>!m)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var Lo=_(te(),1),IO=[{key:"fetch",label:"Fetch-back turns",color:"var(--spot-turns)"},{key:"shape",label:"Shaping",color:"var(--spot-cost)"}];function yR({stats:r,stale:l}){let i=r.timeCost,d=i.agentMs>0?i.fetchBackMs/i.agentMs:0,f=i.agentMs>0?i.shapeMs/i.agentMs:0,g=d+f,v=g>0?g*1.15:1,h=d/v*100,m=f/v*100;return Lo.jsxDEV(fe,{index:3,title:"Time cost",description:"Share of the experiment sessions' model time spent on requests that only fetched cut output back, plus the time tool calls spent shaping",actions:Lo.jsxDEV(ia,{items:IO},void 0,!1,void 0,this),stale:l,footer:`Model time is the summed duration of the experiment sessions' requests. A fetch-back turn is a request whose every tool call fetched back output a cut hid; shaping is the wall time tool calls spent shaping (Spotlight's requests included, held-out results too). Bars run to ${jt(v)} of model time.`,children:i.agentMs===0?Lo.jsxDEV("div",{className:"empty",children:"No experiment requests in this range."},void 0,!1,void 0,this):Lo.jsxDEV("ul",{className:"spot-time",children:Lo.jsxDEV("li",{className:"spot-time-row",children:[Lo.jsxDEV("span",{className:"spot-time-label",children:"Shaped sessions"},void 0,!1,void 0,this),Lo.jsxDEV("span",{className:"spot-time-track","aria-hidden":"true",children:[Lo.jsxDEV("span",{className:"spot-time-fill",style:{width:`${h}%`,background:"var(--spot-turns)"}},void 0,!1,void 0,this),Lo.jsxDEV("span",{className:"spot-time-fill",style:{width:`${m}%`,background:"var(--spot-cost)"}},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Lo.jsxDEV("span",{className:"spot-time-share num",children:jt(g)},void 0,!1,void 0,this),Lo.jsxDEV("span",{className:"spot-time-detail",children:[Lo.jsxDEV("span",{className:"num",children:yr(i.fetchBackMs)},void 0,!1,void 0,this)," in"," ",Lo.jsxDEV("span",{className:"num",children:A(i.fetchBackTurns)},void 0,!1,void 0,this)," ",i.fetchBackTurns===1?"turn":"turns"," ·"," ",Lo.jsxDEV("span",{className:"num",children:yr(i.shapeMs)},void 0,!1,void 0,this)," shaping",Lo.jsxDEV("span",{className:"dim",children:[" ","of ",Lo.jsxDEV("span",{className:"num",children:yr(i.agentMs)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var bt=_(te(),1),RO=[{value:"all",label:"All",title:"Every experiment session, subagents and advisors included"},{value:"main",label:"Main",title:"Sessions you drove: the main agent only"},{value:"subagent",label:"Subagents",title:"Sessions the task tool spawned"}],AO={all:"",main:"main-agent ",subagent:"subagent "};function Lg({id:r,title:l,children:i}){return bt.jsxDEV("header",{className:"spot-section rise",id:r,children:[bt.jsxDEV("h2",{className:"spot-section-title",children:l},void 0,!1,void 0,this),bt.jsxDEV("p",{className:"spot-section-copy",children:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function xR({active:r,range:l}){let[i,d]=vR.useState("all"),f=zt(["spotlight",l,i],({signal:h})=>vI(l,i,h),{enabled:r}),g=aa(l),v=f.data?.experimentStart??null;return bt.jsxDEV("div",{className:"page spot-page",children:[bt.jsxDEV(la,{title:"Spotlight",description:`What shaping tool output saved in ${u(g.windowKey)} against what pi would have shown unshaped, after taking back what the agent fetched again because of a cut.`,actions:bt.jsxDEV(Oa,{"aria-label":"Sessions",options:RO,value:i,onChange:d},void 0,!1,void 0,this)},void 0,!1,void 0,this),bt.jsxDEV(_e,{query:f,skeleton:bt.jsxDEV(qt,{height:220},void 0,!1,void 0,this),isEmpty:(h)=>h.sessions===0&&h.recent.length===0,empty:bt.jsxDEV(fe,{children:bt.jsxDEV("div",{className:"spot-empty",children:[bt.jsxDEV("span",{className:"spot-empty-icon","aria-hidden":"true",children:bt.jsxDEV(ws,{size:20},void 0,!1,void 0,this)},void 0,!1,void 0,this),bt.jsxDEV("h2",{className:"spot-empty-title",children:v===null?"The Spotlight experiment hasn't run yet":`No ${AO[i]}experiment sessions in ${u(g.windowKey)}`},void 0,!1,void 0,this),bt.jsxDEV("p",{className:"spot-empty-hint",children:v===null?bt.jsxDEV(bt.Fragment,{children:["Turn it on with ",bt.jsxDEV("code",{children:"spotlight.experiment.enabled"},void 0,!1,void 0,this)," in your settings or"," ",bt.jsxDEV("code",{children:"PI_SPOTLIGHT_EXPERIMENT=1"},void 0,!1,void 0,this),". Every session then shapes tool output, a random share of results is held out unshaped as the counterfactual, and this page tracks what the cuts save as you work."]},void 0,!0,void 0,this):i==="all"?"Try a longer range, or start a session with the experiment enabled.":"Try a longer range, or switch to All sessions."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),children:(h)=>bt.jsxDEV(bt.Fragment,{children:[bt.jsxDEV(Z2,{stats:h,windowLabel:u(g.windowKey),stale:f.stale},void 0,!1,void 0,this),bt.jsxDEV(Lg,{id:"spot-saved",title:"What it saved",children:"Where the saving came from, what fetch-backs took back, and what later requests no longer carry."},void 0,!1,void 0,this),bt.jsxDEV("div",{className:"grid grid-main-side",children:[bt.jsxDEV(iR,{stats:h,range:l,stale:f.stale},void 0,!1,void 0,this),bt.jsxDEV(uR,{stats:h,stale:f.stale},void 0,!1,void 0,this)]},void 0,!0,void 0,this),bt.jsxDEV(j2,{stats:h,active:r,stale:f.stale},void 0,!1,void 0,this),bt.jsxDEV(fR,{stats:h,range:l,stale:f.stale},void 0,!1,void 0,this),bt.jsxDEV(Lg,{id:"spot-cost",title:"What it cost",children:"Agent time, Spotlight's latency and failures, and whether shaped sessions got worse."},void 0,!1,void 0,this),bt.jsxDEV(yR,{stats:h,stale:f.stale},void 0,!1,void 0,this),bt.jsxDEV(tR,{stats:h,stale:f.stale},void 0,!1,void 0,this),bt.jsxDEV(Lg,{id:"spot-work",title:"Is Spotlight doing the work?",children:"Whether its heat finds the lines the agent needs, and whether its cuts come back less than cuts made without it."},void 0,!1,void 0,this),bt.jsxDEV(aR,{stats:h,stale:f.stale},void 0,!1,void 0,this),bt.jsxDEV(Q2,{stats:h,stale:f.stale},void 0,!1,void 0,this),bt.jsxDEV(W2,{stats:h,stale:f.stale},void 0,!1,void 0,this),bt.jsxDEV(Lg,{id:"spot-tune",title:"Where to tune",children:"Which steps, sizes and tools pay, and which tools Spotlight doesn't shape yet."},void 0,!1,void 0,this),bt.jsxDEV(gR,{stats:h,stale:f.stale},void 0,!1,void 0,this),bt.jsxDEV(Y2,{stats:h,stale:f.stale},void 0,!1,void 0,this),bt.jsxDEV($2,{stats:h,stale:f.stale},void 0,!1,void 0,this),bt.jsxDEV(sR,{rows:h.recent,stale:f.stale},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Vi=_(Ke(),1);var be=_(te(),1);function MO(){return[{value:"calls",label:u("tools.calls")},{value:"errors",label:u("tools.errors")}]}var bR=6;function DO(r){if(r<3600000)return u("tools.bucket-5m");if(r<86400000)return u("tools.bucket-hour");return u("tools.bucket-day")}function SR({active:r,range:l}){let i=be.jsxDEV(Je,{title:u("tools.no-tool-calls")},void 0,!1,void 0,this),d=zt(["tools",l],({signal:I})=>bI(l,I),{enabled:r}),[f,g]=Vi.useState("calls"),[v,h]=Ur(),[m,S]=Vi.useState(null),y=aa(l),b=Vi.useMemo(()=>EO(d.data,l),[d.data,l]),L=m!==null&&b.toolNames.includes(m)?m:null,T=f==="calls"?b.callSeries:b.errorSeries,C=(I)=>I.byTool.length===0;return be.jsxDEV("div",{className:"page",children:[be.jsxDEV(la,{title:u("tools.title"),description:u("tools.description",{window:u(y.windowKey)})},void 0,!1,void 0,this),be.jsxDEV(_e,{query:d,skeleton:be.jsxDEV(qt,{height:112},void 0,!1,void 0,this),children:()=>{let I=b.totals;return be.jsxDEV("div",{"data-stale":d.stale,className:"stack",style:{gap:16},children:[be.jsxDEV(wa,{min:190,children:[be.jsxDEV(ie,{label:u("tools.tool-calls"),value:A(I.calls),hint:u("tools.failed-n",{count:A(I.errors)}),spark:b.totalCalls},void 0,!1,void 0,this),be.jsxDEV(ie,{label:u("tools.distinct-tools"),value:A(I.tools),hint:b.rows[0]?u("tools.most-used",{tool:b.rows[0].tool}):void 0},void 0,!1,void 0,this),be.jsxDEV(ie,{label:u("common.error-rate"),title:u("tools.error-rate-title"),value:Mo(I.calls>0?I.errors/I.calls:0),hint:u("tools.succeeded-n",{count:A(I.calls-I.errors)}),spark:b.totalErrors,sparkColor:"var(--bad)"},void 0,!1,void 0,this),be.jsxDEV(ie,{label:u("tools.attributed-tokens"),title:u("tools.attribution-note"),value:se(Math.round(I.tokens)),hint:u("tools.tokens-output",{tokens:se(Math.round(I.output))})},void 0,!1,void 0,this),be.jsxDEV(ie,{label:u("tools.attributed-cost"),title:u("tools.attribution-estimate",{note:u("tools.attribution-note")}),value:oa(I.cost,I.unpriced),hint:I.unpriced>0?u("tools.unpriced-requests-n",{count:A(Math.round(I.unpriced))}):u("tools.api-equivalent")},void 0,!1,void 0,this)]},void 0,!0,void 0,this),be.jsxDEV(wa,{min:150,children:[be.jsxDEV(ie,{size:"sm",label:u("tools.result-text"),title:u("tools.result-chars-title"),value:u("tools.chars",{count:se(I.resultChars)})},void 0,!1,void 0,this),be.jsxDEV(ie,{size:"sm",label:u("tools.call-arguments"),title:u("tools.args-chars-title"),value:u("tools.chars",{count:se(I.argsChars)})},void 0,!1,void 0,this),be.jsxDEV(ie,{size:"sm",label:u("tools.avg-result-per-call"),value:u("tools.chars",{count:se(I.calls>0?Math.round(I.resultChars/I.calls):0)})},void 0,!1,void 0,this),be.jsxDEV(ie,{size:"sm",label:u("tools.avg-args-per-call"),value:u("tools.chars",{count:se(I.calls>0?Math.round(I.argsChars/I.calls):0)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}},void 0,!1,void 0,this),be.jsxDEV(fe,{index:1,title:f==="calls"?u("tools.calls-over-time"):u("tools.errors-over-time"),description:u("tools.chart-description",{bucket:DO(y.bucketMs),count:bR}),actions:be.jsxDEV(Oa,{size:"sm",options:MO(),value:f,onChange:g},void 0,!1,void 0,this),stale:d.stale,children:be.jsxDEV(_e,{query:d,skeleton:be.jsxDEV(qt,{height:260},void 0,!1,void 0,this),isEmpty:C,empty:i,children:()=>be.jsxDEV("div",{className:"stack",style:{gap:12},children:[be.jsxDEV(_o,{buckets:b.buckets,bucketMs:y.bucketMs,series:T,hidden:v,height:260,formatTooltip:A,emptyLabel:f==="errors"?u("tools.no-tool-errors"):void 0},void 0,!1,void 0,this),be.jsxDEV(ia,{items:T.map((I)=>({key:I.key,label:I.label,color:I.color,value:se(I.values.reduce((R,O)=>R+(O??0),0))})),hidden:v,onToggle:h},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),be.jsxDEV(fe,{index:2,title:u("tools.by-tool"),description:u("tools.by-tool-description",{note:u("tools.attribution-note")}),flush:!0,stale:d.stale,children:be.jsxDEV(_e,{query:d,skeleton:be.jsxDEV(pa,{rows:8},void 0,!1,void 0,this),isEmpty:C,empty:i,children:()=>be.jsxDEV(Ft,{rows:b.rows,rowKey:(I)=>I.tool,columns:b.toolColumns,initialSort:{key:"calls",dir:"desc"},limit:20,selectedKey:L,onRowClick:(I)=>S((R)=>R===I.tool?null:I.tool),dense:!0},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),be.jsxDEV(fe,{index:3,title:u("tools.by-tool-and-model"),description:u("tools.by-tool-and-model-description"),flush:!0,stale:d.stale,actions:be.jsxDEV("div",{className:"row",style:{gap:6},children:[be.jsxDEV("select",{className:"input tools-filter",value:L??"",onChange:(I)=>S(I.target.value||null),"aria-label":u("tools.filter-by-tool"),children:[be.jsxDEV("option",{value:"",children:u("tools.all-tools")},void 0,!1,void 0,this),b.toolNames.map((I)=>be.jsxDEV("option",{value:I,children:I},I,!1,void 0,this))]},void 0,!0,void 0,this),L!==null&&be.jsxDEV("button",{type:"button",className:"btn","data-size":"sm","data-variant":"ghost","data-icon":"true",title:u("tools.clear-tool-filter"),"aria-label":u("tools.clear-tool-filter"),onClick:()=>S(null),children:be.jsxDEV(Ao,{size:13},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:be.jsxDEV(_e,{query:d,skeleton:be.jsxDEV(pa,{rows:8},void 0,!1,void 0,this),isEmpty:C,empty:i,children:(I)=>be.jsxDEV(qO,{rows:I.byToolModel,tool:L,colors:b.colors},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function EO(r,l){let i=r?.byTool??[],d=r?.series??[],f=h2(i).sort((T,C)=>C.calls-T.calls),g=zi(i.map((T)=>({key:T.tool,weight:T.calls}))),v=oo(l,d.map((T)=>T.timestamp)),h={calls:0,errors:0,tools:i.length,tokens:0,output:0,cost:0,unpriced:0,resultChars:0,argsChars:0};for(let T of i)h.calls+=T.calls,h.errors+=T.errors,h.tokens+=T.totalTokensShare,h.output+=T.outputTokensShare,h.cost+=T.costShare,h.unpriced+=T.unpricedRequestsShare,h.resultChars+=T.resultChars,h.argsChars+=T.argsChars;let[m,S]=[(T)=>T.calls,(T)=>T.errors].map((T)=>Xn(d,{buckets:v,key:(C)=>C.tool,value:T,limit:bR,colors:g}).map((C)=>({...C,values:C.values.map((I)=>I||null)}))),y=new Map(Xn(d,{buckets:v,key:(T)=>T.tool,value:(T)=>T.calls}).map((T)=>[T.key,T.values])),b=f[0]?.calls??0,L=NO(b,g,y);return{rows:f,colors:g,buckets:v,totals:h,callSeries:m,errorSeries:S,totalCalls:ha(d,v,(T)=>T.calls),totalErrors:ha(d,v,(T)=>T.errors),toolNames:f.map((T)=>T.tool).sort((T,C)=>T.localeCompare(C)),toolColumns:L}}function NO(r,l,i){return[{key:"tool",header:u("tools.tool"),sort:(d)=>d.tool,render:(d)=>be.jsxDEV("span",{className:"row",style:{gap:8},children:[be.jsxDEV(an,{color:l.get(d.tool)??fo},void 0,!1,void 0,this),be.jsxDEV("span",{className:"mono truncate tools-name",title:d.tool,children:d.tool},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"trend",header:u("tools.trend"),title:u("tools.trend-title"),render:(d)=>{let f=i.get(d.tool);return f&&f.length>1?be.jsxDEV(sd,{values:f,width:80,height:20,color:l.get(d.tool)??fo},void 0,!1,void 0,this):be.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this)}},{key:"calls",header:u("tools.calls"),align:"right",sort:(d)=>d.calls,render:(d)=>be.jsxDEV(Ma,{value:d.calls,max:r,display:be.jsxDEV("span",{title:u("tools.share-of-calls",{percent:Ge(d.callFraction)}),children:[A(d.calls),be.jsxDEV("span",{className:"dim tools-share",children:Ge(d.callFraction,0)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},{key:"errorRate",header:u("tools.errors"),title:u("tools.errors-title"),align:"right",sort:(d)=>d.errorRate,render:(d)=>be.jsxDEV("span",{className:"row",style:{gap:8,justifyContent:"flex-end"},children:[be.jsxDEV("span",{className:"num dim",children:A(d.errors)},void 0,!1,void 0,this),be.jsxDEV(ct,{tone:d.errors>0?gr(d.errorRate):"neutral",mono:!0,children:Mo(d.errorRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"args",header:u("tools.args"),title:u("tools.args-chars-title"),align:"right",sort:(d)=>d.argsChars,render:(d)=>be.jsxDEV("span",{className:"num",children:se(d.argsChars)},void 0,!1,void 0,this)},{key:"result",header:u("tools.result"),title:u("tools.result-chars-title"),align:"right",sort:(d)=>d.resultChars,render:(d)=>be.jsxDEV("span",{className:"num",children:se(d.resultChars)},void 0,!1,void 0,this)},{key:"avgResult",header:u("tools.result-per-call"),title:u("tools.result-per-call-title"),align:"right",sort:(d)=>d.avgResultChars,render:(d)=>be.jsxDEV("span",{className:"num muted",children:se(Math.round(d.avgResultChars))},void 0,!1,void 0,this)},{key:"tokens",header:u("tools.attr-tokens"),title:u("tools.attribution-note"),align:"right",sort:(d)=>d.totalTokensShare,render:(d)=>be.jsxDEV("span",{className:"num",title:u("tools.share-of-tokens",{percent:Ge(d.tokenFraction)}),children:[se(Math.round(d.totalTokensShare)),be.jsxDEV("span",{className:"dim tools-share",children:Ge(d.tokenFraction,0)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"cost",header:u("tools.attr-cost"),title:u("tools.attribution-estimate",{note:u("tools.attribution-note")}),align:"right",sort:(d)=>d.costShare,render:(d)=>be.jsxDEV("span",{className:"num",title:u("tools.share-of-cost",{percent:Ge(d.costFraction)}),children:[oa(d.costShare,d.unpricedRequestsShare),be.jsxDEV("span",{className:"dim tools-share",children:Ge(d.costFraction,0)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"lastUsed",header:u("tools.last-used"),align:"right",sort:(d)=>d.lastUsed,render:(d)=>be.jsxDEV("span",{className:"muted",children:ma(d.lastUsed)},void 0,!1,void 0,this)}]}function qO({rows:r,tool:l,colors:i}){let d=Vi.useMemo(()=>(l===null?r:r.filter((g)=>g.tool===l)).map((g)=>({...g,errorRate:g.calls>0?g.errors/g.calls:0})),[r,l]),f=Vi.useMemo(()=>{let g=d.reduce((v,h)=>Math.max(v,h.calls),0);return[{key:"tool",header:u("tools.tool"),sort:(v)=>v.tool,render:(v)=>be.jsxDEV("span",{className:"row",style:{gap:8},children:[be.jsxDEV(an,{color:i.get(v.tool)??fo},void 0,!1,void 0,this),be.jsxDEV("span",{className:"mono truncate tools-name",title:v.tool,children:v.tool},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"model",header:u("common.model"),sort:(v)=>v.model,render:(v)=>be.jsxDEV(co,{primary:be.jsxDEV("span",{className:"mono",children:v.model||u("common.unknown")},void 0,!1,void 0,this),secondary:v.provider},void 0,!1,void 0,this)},{key:"calls",header:u("tools.calls"),align:"right",sort:(v)=>v.calls,render:(v)=>be.jsxDEV(Ma,{value:v.calls,max:g,display:A(v.calls)},void 0,!1,void 0,this)},{key:"errorRate",header:u("tools.errors"),align:"right",sort:(v)=>v.errorRate,render:(v)=>be.jsxDEV("span",{className:"row",style:{gap:8,justifyContent:"flex-end"},children:[be.jsxDEV("span",{className:"num dim",children:A(v.errors)},void 0,!1,void 0,this),be.jsxDEV(ct,{tone:v.errors>0?gr(v.errorRate):"neutral",mono:!0,children:Mo(v.errorRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"result",header:u("tools.result"),title:u("tools.result-chars-title"),align:"right",sort:(v)=>v.resultChars,render:(v)=>be.jsxDEV("span",{className:"num",children:se(v.resultChars)},void 0,!1,void 0,this)},{key:"tokens",header:u("tools.attr-tokens"),title:u("tools.attribution-note"),align:"right",sort:(v)=>v.totalTokensShare,render:(v)=>be.jsxDEV("span",{className:"num",children:se(Math.round(v.totalTokensShare))},void 0,!1,void 0,this)},{key:"cost",header:u("tools.attr-cost"),title:u("tools.attribution-estimate",{note:u("tools.attribution-note")}),align:"right",sort:(v)=>v.costShare,render:(v)=>be.jsxDEV("span",{className:"num",children:oa(v.costShare,v.unpricedRequestsShare)},void 0,!1,void 0,this)},{key:"lastUsed",header:u("tools.last-used"),align:"right",sort:(v)=>v.lastUsed,render:(v)=>be.jsxDEV("span",{className:"muted",children:ma(v.lastUsed)},void 0,!1,void 0,this)}]},[d,i]);return be.jsxDEV(Ft,{rows:d,rowKey:(g)=>`${g.tool}::${g.model}::${g.provider}`,columns:f,initialSort:{key:"calls",dir:"desc"},limit:25,dense:!0,empty:be.jsxDEV(Je,{title:l?u("tools.no-calls-to-tool",{tool:l}):u("tools.no-tool-calls")},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var kR=_(Ke(),1);var De=_(te(),1),OO={missing:"tracking.missing",partial:"tracking.partial",corrupt:"tracking.corrupt",error:"tracking.error"};function BO(r){if(r==="present")return"ok";if(r==="partial")return"warn";if(r==="corrupt"||r==="error")return"bad";return"neutral"}function op({state:r,truncated:l}){if(r==="present"&&!l)return null;return De.jsxDEV(ct,{tone:BO(r),children:r==="present"?u("tracking.truncated"):u(OO[r])},void 0,!1,void 0,this)}function PO(r){return[{key:"phase",label:u("tracking.phase"),value:r.phase||u("tracking.none")},{key:"progress",label:u("tracking.progress"),value:r.progress||u("tracking.none")},...r.stage?[{key:"stage",label:u("tracking.stage"),value:r.stage}]:[],{key:"blockers",label:u("tracking.blockers"),value:r.blockers.length?r.blockers.join("; "):u("tracking.none")},{key:"decisions",label:u("tracking.decisions"),value:r.decisions.length?r.decisions.join("; "):u("tracking.none")},{key:"updated",label:u("tracking.last-updated"),value:r.lastUpdated||u("tracking.none")},...r.lastSessionId?[{key:"session",label:u("tracking.last-session"),value:De.jsxDEV("span",{className:"mono",children:r.lastSessionId},void 0,!1,void 0,this)}]:[],...r.phases?.length?[{key:"phases",label:u("tracking.phases"),value:r.phases.map((l)=>`${l.name} · ${l.status}`).join("; ")}]:[]]}function wg(r){if(!r)return null;return De.jsxDEV("p",{className:"tracking-error",children:r},void 0,!1,void 0,this)}function LR({active:r}){let l=zt(["tracking-projects"],({signal:h})=>hI(h),{enabled:r}),i=l.data?.projects??[],[d,f]=kR.useState(null),g=d!==null&&i.includes(d)?d:i[0]??null,v=zt(["tracking",g],({signal:h})=>gI(g??"",h),{enabled:r&&g!==null});return De.jsxDEV("div",{className:"page",children:[De.jsxDEV(la,{title:u("tracking.title"),description:u("tracking.description")},void 0,!1,void 0,this),De.jsxDEV(fe,{index:0,children:De.jsxDEV("div",{className:"tracking-toolbar",children:[De.jsxDEV("label",{className:"tracking-project",children:[De.jsxDEV("span",{className:"section-label",children:u("tracking.project")},void 0,!1,void 0,this),l.data===null?De.jsxDEV(Ga,{width:280,height:30},void 0,!1,void 0,this):De.jsxDEV("select",{className:"tracking-select",value:g??"","aria-label":u("tracking.project"),onChange:(h)=>f(h.target.value),disabled:i.length===0,children:[i.length===0&&De.jsxDEV("option",{value:"",children:u("tracking.no-projects")},void 0,!1,void 0,this),i.map((h)=>De.jsxDEV("option",{value:h,children:h},h,!1,void 0,this))]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),De.jsxDEV("p",{className:"tracking-note",children:u("tracking.read-only")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),l.data!==null&&i.length===0?De.jsxDEV(fe,{index:1,children:De.jsxDEV(Je,{title:u("tracking.no-projects"),hint:u("tracking.no-projects-hint")},void 0,!1,void 0,this)},void 0,!1,void 0,this):De.jsxDEV(_e,{query:v,skeleton:De.jsxDEV(pa,{rows:5},void 0,!1,void 0,this),isEmpty:(h)=>!h.exists,empty:De.jsxDEV(Je,{title:u("tracking.no-documents"),hint:`${u("tracking.no-documents-hint")}
239
+ ${v.data?.trackingDir??""}`},void 0,!1,void 0,this),children:(h)=>De.jsxDEV("div",{className:"grid grid-main-side",children:[De.jsxDEV(fe,{index:1,title:u("tracking.status"),flush:!0,children:De.jsxDEV("div",{className:"tracking-panel",children:[De.jsxDEV("div",{className:"row tracking-meta",children:[De.jsxDEV("span",{className:"mono dim",children:h.trackingDir},void 0,!1,void 0,this),De.jsxDEV("span",{className:"row",children:[h.updatedAt&&De.jsxDEV("span",{className:"dim",title:ro(Date.parse(h.updatedAt)),children:[u("tracking.updated"),": ",ma(Date.parse(h.updatedAt))]},void 0,!0,void 0,this),De.jsxDEV(op,{state:h.status.state,truncated:h.status.truncated},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),h.status.value?De.jsxDEV(ko,{items:PO(h.status.value)},void 0,!1,void 0,this):De.jsxDEV(Je,{title:h.status.state==="missing"?u("tracking.status-missing"):h.status.state==="corrupt"?u("tracking.status-corrupt"):u("tracking.status-error")},void 0,!1,void 0,this),wg(h.status.error)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),De.jsxDEV(fe,{index:2,title:u("tracking.index"),flush:!0,children:De.jsxDEV("div",{className:"tracking-panel",children:[De.jsxDEV("div",{className:"row tracking-meta",children:[De.jsxDEV("span",{className:"dim",children:u("tracking.index")},void 0,!1,void 0,this),De.jsxDEV(op,{state:h.index.state,truncated:h.index.truncated},void 0,!1,void 0,this)]},void 0,!0,void 0,this),h.index.content!==null?De.jsxDEV("pre",{className:"tracking-doc",children:h.index.content||u("tracking.document-empty")},void 0,!1,void 0,this):De.jsxDEV(Je,{title:u("tracking.index-missing")},void 0,!1,void 0,this),wg(h.index.error)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),De.jsxDEV(fe,{index:3,title:u("tracking.actions"),flush:!0,children:De.jsxDEV("div",{className:"tracking-panel",children:[De.jsxDEV("div",{className:"row tracking-meta",children:[De.jsxDEV("span",{className:"dim",children:[u("tracking.actions")," · ",A(h.actions.rows.length)]},void 0,!0,void 0,this),De.jsxDEV(op,{state:h.actions.state,truncated:h.actions.truncated},void 0,!1,void 0,this)]},void 0,!0,void 0,this),h.actions.invalidRows>0&&De.jsxDEV("p",{className:"tracking-error",children:u("tracking.invalid-rows",{count:A(h.actions.invalidRows)})},void 0,!1,void 0,this),h.actions.rows.length===0?De.jsxDEV(Je,{title:h.actions.state==="missing"?u("tracking.actions-missing"):u("tracking.actions-empty")},void 0,!1,void 0,this):De.jsxDEV("ul",{className:"tracking-list",children:[...h.actions.rows].reverse().map((m,S)=>De.jsxDEV("li",{className:"tracking-list-row",children:[De.jsxDEV("span",{className:"mono dim",children:m.timestamp||"—"},void 0,!1,void 0,this),De.jsxDEV("span",{children:m.action},void 0,!1,void 0,this),m.detail!==void 0&&De.jsxDEV("span",{className:"muted",children:m.detail},void 0,!1,void 0,this)]},`${m.timestamp}:${m.action}:${S}`,!0,void 0,this))},void 0,!1,void 0,this),wg(h.actions.error)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),De.jsxDEV(fe,{index:4,title:u("tracking.sessions"),flush:!0,children:De.jsxDEV("div",{className:"tracking-panel",children:[De.jsxDEV("div",{className:"row tracking-meta",children:[De.jsxDEV("span",{className:"dim",children:[u("tracking.sessions")," · ",A(h.sessions.length)]},void 0,!0,void 0,this),De.jsxDEV(op,{state:h.sessionsState},void 0,!1,void 0,this)]},void 0,!0,void 0,this),h.sessions.length===0?De.jsxDEV(Je,{title:h.sessionsState==="missing"?u("tracking.sessions-missing"):u("tracking.sessions-empty")},void 0,!1,void 0,this):De.jsxDEV("div",{className:"stack",children:h.sessions.map((m)=>De.jsxDEV("details",{className:"tracking-session",children:[De.jsxDEV("summary",{className:"row",children:[De.jsxDEV("span",{className:"mono",children:m.name},void 0,!1,void 0,this),De.jsxDEV(op,{state:m.state,truncated:m.truncated},void 0,!1,void 0,this)]},void 0,!0,void 0,this),m.content!==null?De.jsxDEV("pre",{className:"tracking-doc",children:m.content||u("tracking.document-empty")},void 0,!1,void 0,this):De.jsxDEV(Je,{title:u("tracking.sessions-empty")},void 0,!1,void 0,this),wg(m.error)]},m.name,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var xd=_(Ke(),1);var Xt=_(Ke(),1);var Kn=_(te(),1);function wR({toolStats:r,index:l}){if(r.length===0)return null;let i=Math.max(...r.map((f)=>f.totalMs)),d=[{key:"tool",header:u("trace.tool"),render:(f)=>Kn.jsxDEV("span",{className:"mono",children:f.tool},void 0,!1,void 0,this),sort:(f)=>f.tool},{key:"calls",header:u("trace.calls"),align:"right",render:(f)=>Kn.jsxDEV("span",{className:"num",children:A(f.calls)},void 0,!1,void 0,this),sort:(f)=>f.calls},{key:"errors",header:u("trace.errors"),align:"right",render:(f)=>f.errors>0?Kn.jsxDEV(ct,{tone:"bad",children:u("trace.failed-n",{count:A(f.errors)})},void 0,!1,void 0,this):Kn.jsxDEV("span",{className:"num dim",children:"0"},void 0,!1,void 0,this),sort:(f)=>f.errors},{key:"total",header:u("common.total"),align:"right",width:200,render:(f)=>Kn.jsxDEV(Ma,{value:f.totalMs,max:i,display:Ct(f.totalMs),color:"var(--warn)"},void 0,!1,void 0,this),sort:(f)=>f.totalMs},{key:"avg",header:u("trace.avg"),align:"right",render:(f)=>Kn.jsxDEV("span",{className:"num",children:Ct(f.calls>0?f.totalMs/f.calls:0)},void 0,!1,void 0,this),sort:(f)=>f.calls>0?f.totalMs/f.calls:0},{key:"max",header:u("trace.max"),align:"right",render:(f)=>Kn.jsxDEV("span",{className:"num",children:Ct(f.maxMs)},void 0,!1,void 0,this),sort:(f)=>f.maxMs}];return Kn.jsxDEV(fe,{title:u("trace.tool-aggregates"),description:u("trace.tool-aggregates-desc",{count:r.length}),flush:!0,index:l,children:Kn.jsxDEV(Ft,{columns:d,rows:r,rowKey:(f)=>f.tool,dense:!0,limit:12},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var br=_(Ke(),1);var Qn=_(Ke(),1),zO=Qn.createContext(null),ji={turn:"--ink-2",model:"--chart-primary",tool:"--warn",subagent:"--chart-secondary",background:"--ink-4"};function UO(r){let l=getComputedStyle(r),i=(d,f)=>l.getPropertyValue(d).trim()||f;return{category:{turn:i(ji.turn,"#a0a0a8"),model:i(ji.model,"#5ad8e6"),tool:i(ji.tool,"#f5a524"),subagent:i(ji.subagent,"#ed4abf"),background:i(ji.background,"#46464c")},error:i("--bad","#ff6166"),errorSoft:i("--bad-soft","rgba(255, 97, 102, 0.13)"),marker:i("--ink-1","#ededef"),turnBand:i("--hover","rgba(255, 255, 255, 0.035)"),grid:i("--chart-grid","rgba(255, 255, 255, 0.055)"),tick:i("--chart-axis","#5c5c64"),spanText:i("--ink-inverse","#0a0a0b"),selection:i("--focus","#5ad8e6"),brush:i("--selected","rgba(255, 255, 255, 0.075)"),fontSans:i("--font-sans","system-ui, sans-serif"),fontMono:i("--font-mono","ui-monospace, monospace")}}function hd(){let r=Qn.useContext(zO)??document.documentElement,[l,i]=Qn.useState(0);return Qn.useEffect(()=>{let d=new MutationObserver(()=>i((g)=>g+1)),f={attributes:!0,attributeFilter:["data-theme","style","class"]};if(d.observe(document.documentElement,f),r!==document.documentElement)d.observe(r,f);return()=>d.disconnect()},[r]),Qn.useMemo(()=>UO(r),[r,l])}var IR=_(te(),1),Bl=44,rp=["turn","model","tool","subagent"],CR=6,gd=10;function _O(r,l,i,d){let f=devicePixelRatio,g=Math.floor(i*f),v=Math.floor(Bl*f),h,m;if(typeof OffscreenCanvas>"u"){let C=document.createElement("canvas");C.width=g,C.height=v,h=C,m=C.getContext("2d")}else{let C=new OffscreenCanvas(g,v);h=C,m=C.getContext("2d")}if(!m)return h;m.setTransform(f,0,0,f,0,0);let[S,y]=l.domain,b=Math.max(y-S,0.000000001),L=rp.map(()=>new Float32Array(i));for(let C of r)for(let I of C.spans){let R=rp.indexOf(I.kind);if(R===-1)continue;let O=L[R],P=Math.max(0,Math.floor((l.toU(I.start)-S)/b*i)),Y=Math.min(i-1,Math.ceil((l.toU(I.end)-S)/b*i));for(let W=P;W<=Y;W++)O[W]=Math.min(1,O[W]+0.34)}let T=Bl/rp.length;for(let C=0;C<rp.length;C++){let I=L[C];m.fillStyle=d.category[rp[C]];for(let R=0;R<i;R++){if(I[R]<=0)continue;m.globalAlpha=0.25+I[R]*0.75,m.fillRect(R,C*T+1,1,T-2)}m.globalAlpha=1}return h}function TR({tracks:r,scale:l,viewport:i,onViewportChange:d}){let f=hd(),g=br.useRef(null),[v,h]=br.useState(800),m=br.useRef(null);br.useEffect(()=>{let P=g.current;if(!P)return;let Y=new ResizeObserver((W)=>{h(Math.max(100,Math.floor(W[0].contentRect.width)))});return Y.observe(P),()=>Y.disconnect()},[]);let[S,y]=l.domain,b=Math.max(y-S,0.000000001),L=br.useCallback((P)=>(P-S)/b*v,[S,b,v]),T=br.useCallback((P)=>S+P/Math.max(v,1)*b,[S,b,v]),C=br.useMemo(()=>_O(r,l,v,f),[r,l,v,f]);br.useEffect(()=>{let P=g.current;if(!P)return;let Y=P.getContext("2d");if(!Y)return;let W=devicePixelRatio;Y.setTransform(1,0,0,1,0,0),Y.clearRect(0,0,P.width,P.height),Y.drawImage(C,0,0),Y.setTransform(W,0,0,W,0,0);let ue=L(i.u0),Z=L(i.u1);Y.fillStyle=f.brush,Y.fillRect(ue,0,Z-ue,Bl),Y.strokeStyle=f.selection,Y.strokeRect(ue+0.5,0.5,Z-ue-1,Bl-1),Y.fillStyle=f.selection,Y.fillRect(ue,0,2,Bl),Y.fillRect(Z-2,0,2,Bl)},[C,i,f,L]);let I=(P)=>{let Y=P.currentTarget.getBoundingClientRect(),W=P.clientX-Y.left,ue=L(i.u0),Z=L(i.u1),ce;if(Math.abs(W-ue)<=CR)ce="left";else if(Math.abs(W-Z)<=CR)ce="right";else if(W>ue&&W<Z)ce="move";else{ce="create";let ee=T(W);d(np({u0:ee,u1:ee+gd},S,y))}m.current={mode:ce,startX:W,startViewport:i},P.currentTarget.setPointerCapture(P.pointerId)},R=(P)=>{let Y=m.current;if(!Y)return;let W=P.currentTarget.getBoundingClientRect(),ue=P.clientX-W.left,Z=T(ue)-T(Y.startX),{u0:ce,u1:ee}=Y.startViewport;if(Y.mode==="move")d(np({u0:ce+Z,u1:ee+Z},S,y));else if(Y.mode==="left")d(np({u0:Math.min(ce+Z,ee-gd),u1:ee},S,y));else if(Y.mode==="right")d(np({u0:ce,u1:Math.max(ee+Z,ce+gd)},S,y));else{let G=T(Y.startX),V=T(ue);d(np({u0:Math.min(G,V),u1:Math.max(G,V,Math.min(G,V)+gd)},S,y))}},O=()=>{m.current=null};return IR.jsxDEV("canvas",{ref:g,width:Math.floor(v*devicePixelRatio),height:Math.floor(Bl*devicePixelRatio),className:"traces-minimap",style:{height:Bl},role:"slider","aria-label":u("trace.minimap-aria"),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round((i.u0-S)/b*100),tabIndex:-1,onPointerDown:I,onPointerMove:R,onPointerUp:O},void 0,!1,void 0,this)}function np(r,l,i){let d=Math.max(gd,r.u1-r.u0);d=Math.min(d,i-l||gd);let f=r.u0;if(f<l)f=l;if(f+d>i)f=i-d;return{u0:f,u1:f+d}}var Wn=_(Ke(),1);var je=_(te(),1);function HO(r){let l=[];if(typeof r==="string"){if(r.trim())l.push({kind:"text",text:r});return l}if(!Array.isArray(r))return l;for(let i of r){if(!i||typeof i!=="object"||!("type"in i))continue;if((i.type==="text"||i.type==="thinking")&&"text"in i&&typeof i.text==="string")l.push({kind:String(i.type),text:i.text})}return l}function FO({title:r,subtitle:l,actions:i,onClose:d,children:f}){return je.jsxDEV("section",{className:"traces-inline-detail","aria-label":"Selected span details",children:[je.jsxDEV("header",{className:"drawer-header",children:[je.jsxDEV("div",{className:"drawer-titles",children:[je.jsxDEV("h2",{className:"drawer-title",children:r},void 0,!1,void 0,this),l!==void 0&&je.jsxDEV("div",{className:"drawer-subtitle",children:l},void 0,!1,void 0,this)]},void 0,!0,void 0,this),i,je.jsxDEV("button",{type:"button",className:"btn","data-icon":"true",onClick:d,"aria-label":"Close span details",children:je.jsxDEV(Ao,{size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),je.jsxDEV("div",{className:"drawer-body",children:f},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function RR({span:r,track:l,onClose:i,onOpenChildTrack:d,loadEntry:f=wI,inline:g=!1,onNavigate:v}){let[h,m]=Wn.useState(null),[S,y]=Wn.useState(!1),[b,L]=Wn.useState(null),[T,C]=Wn.useState(!1),I=Wn.useRef(0);if(Wn.useEffect(()=>{if(m(null),L(null),C(!1),y(!1),!r||!l||!r.entryId)return;y(!0);let Z=new AbortController;return f(l.file,r.entryId,Z.signal).then((ce)=>{if(!Z.signal.aborted)m(ce.entry)}).catch((ce)=>{if(Z.signal.aborted)return;L(dg(ce))}).finally(()=>{if(!Z.signal.aborted)y(!1)}),()=>Z.abort()},[r,l,f]),Wn.useEffect(()=>()=>window.clearTimeout(I.current),[]),!r)return null;let R=async()=>{try{await navigator.clipboard.writeText(JSON.stringify(h??r,null,2)),C(!0),window.clearTimeout(I.current),I.current=window.setTimeout(()=>C(!1),1500)}catch{}},P=(h&&typeof h==="object"?h:{}).message,Y=P?.usage,W=[{key:"duration",label:u("common.duration"),value:je.jsxDEV("span",{className:"num",children:[Ct(r.end-r.start),r.unterminated&&je.jsxDEV("span",{className:"muted",children:[" · ",u("trace.unterminated")]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},{key:"start",label:u("trace.start"),value:je.jsxDEV("span",{className:"num",children:Gf(r.start)},void 0,!1,void 0,this)},{key:"track",label:u("trace.track"),value:je.jsxDEV("span",{className:"mono",children:l?.label??"-"},void 0,!1,void 0,this)}];if(r.kind==="model"){if(W.push({key:"tokens",label:u("common.tokens"),value:je.jsxDEV("span",{className:"num",children:A(r.tokens??0)},void 0,!1,void 0,this)},{key:"cost",label:u("common.cost"),value:je.jsxDEV("span",{className:"num",children:["$",(r.cost??0).toFixed(4)]},void 0,!0,void 0,this)},{key:"ttft",label:u("trace.ttft"),value:je.jsxDEV("span",{className:"num",children:Ct(r.ttft??null)},void 0,!1,void 0,this)},{key:"model",label:u("common.model"),value:je.jsxDEV("span",{className:"mono",children:P?.model??r.model??"-"},void 0,!1,void 0,this)}),Y)W.push({key:"split",label:u("trace.io-cached"),value:je.jsxDEV("span",{className:"num",children:[A(Y.input??0)," / ",A(Y.output??0)," /"," ",A(Y.cacheRead??0)]},void 0,!0,void 0,this)});if(P?.provider)W.push({key:"provider",label:u("common.provider"),value:je.jsxDEV("span",{className:"mono",children:P.provider},void 0,!1,void 0,this)});if(P?.stopReason)W.push({key:"stop",label:u("trace.stop-reason"),value:je.jsxDEV("span",{className:"mono",children:P.stopReason},void 0,!1,void 0,this)})}return je.jsxDEV(g?FO:ad,{open:!0,onClose:i,title:r.label,subtitle:je.jsxDEV("span",{className:"row",style:{gap:6},children:je.jsxDEV(ct,{tone:r.isError?"bad":"neutral",children:r.isError?`${r.kind} · ${u("common.error")}`:r.kind},void 0,!1,void 0,this)},void 0,!1,void 0,this),actions:je.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-icon":"true",onClick:R,"aria-label":u("trace.copy-json"),title:u("trace.copy-json"),children:T?je.jsxDEV(Ai,{size:15},void 0,!1,void 0,this):je.jsxDEV(Di,{size:15},void 0,!1,void 0,this)},void 0,!1,void 0,this),children:je.jsxDEV("div",{className:"stack traces-drawer",children:[je.jsxDEV(ko,{items:W},void 0,!1,void 0,this),v&&l&&r.entryId&&je.jsxDEV("div",{children:je.jsxDEV("button",{type:"button",className:"btn","data-size":"sm",onClick:()=>{if(r.entryId)v(l.id,r.entryId)},children:"Jump to transcript"},void 0,!1,void 0,this)},void 0,!1,void 0,this),P?.errorMessage&&je.jsxDEV("div",{className:"stack",style:{gap:6},children:[je.jsxDEV("div",{className:"section-label tone-bad",children:u("trace.error-message")},void 0,!1,void 0,this),je.jsxDEV("pre",{className:"code-block traces-pre",children:P.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this),r.kind==="subagent"&&je.jsxDEV("div",{className:"stack",style:{gap:8},children:[r.detail&&je.jsxDEV(je.Fragment,{children:[je.jsxDEV("div",{className:"section-label",children:u("trace.task")},void 0,!1,void 0,this),je.jsxDEV("pre",{className:"code-block traces-pre",children:r.detail},void 0,!1,void 0,this)]},void 0,!0,void 0,this),r.childTrackId&&d&&je.jsxDEV("div",{children:je.jsxDEV("button",{type:"button",className:"btn","data-size":"sm",onClick:()=>d(r.childTrackId??""),children:[u("trace.open-child-track")," ",je.jsxDEV("span",{className:"mono",children:r.childTrackId},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),r.kind==="tool"&&r.detail&&je.jsxDEV("div",{className:"stack",style:{gap:6},children:[je.jsxDEV("div",{className:"section-label",children:u("trace.args")},void 0,!1,void 0,this),je.jsxDEV("pre",{className:"code-block traces-pre",children:r.detail},void 0,!1,void 0,this)]},void 0,!0,void 0,this),S&&je.jsxDEV("div",{className:"stack",children:[je.jsxDEV(Ga,{height:80},void 0,!1,void 0,this),je.jsxDEV(Ga,{height:160},void 0,!1,void 0,this)]},void 0,!0,void 0,this),b&&je.jsxDEV(Nl,{error:u("trace.load-failed",{message:b.message})},void 0,!1,void 0,this),!S&&h!==null&&HO(P?.content).map((Z,ce)=>je.jsxDEV("div",{className:"stack",style:{gap:6},children:[je.jsxDEV("div",{className:"section-label",children:Z.kind==="thinking"?u("trace.thinking"):u("trace.text")},void 0,!1,void 0,this),je.jsxDEV("pre",{className:"code-block traces-pre","data-scroll":"true",children:Z.text},void 0,!1,void 0,this)]},`${Z.kind}-${ce}`,!0,void 0,this)),!S&&h!==null&&je.jsxDEV(od,{data:h,title:u("trace.raw-entry"),initialCollapsed:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var un=_(te(),1);function AR({summary:r}){let l=(i)=>r.wallMs>0?u("trace.of-wall",{percent:Ge(i/r.wallMs)}):void 0;return un.jsxDEV(wa,{min:112,children:[un.jsxDEV(ie,{size:"sm",label:u("trace.wall-time"),value:yr(r.wallMs)},void 0,!1,void 0,this),un.jsxDEV(ie,{size:"sm",label:u("trace.model-time"),value:yr(r.modelMs),hint:l(r.modelMs)},void 0,!1,void 0,this),un.jsxDEV(ie,{size:"sm",label:u("trace.tool-time"),value:yr(r.toolMs),hint:l(r.toolMs)},void 0,!1,void 0,this),un.jsxDEV(ie,{size:"sm",label:u("trace.idle"),value:yr(r.idleMs),hint:l(r.idleMs)},void 0,!1,void 0,this),un.jsxDEV(ie,{size:"sm",label:u("trace.turns"),value:A(r.turns)},void 0,!1,void 0,this),un.jsxDEV(ie,{size:"sm",label:u("common.requests"),value:A(r.requests),hint:u("trace.tool-calls-n",{count:A(r.toolCalls)})},void 0,!1,void 0,this),un.jsxDEV(ie,{size:"sm",label:u("trace.agents"),value:A(r.subagents)},void 0,!1,void 0,this),un.jsxDEV(ie,{size:"sm",label:u("common.tokens"),value:se(r.totalTokens)},void 0,!1,void 0,this),un.jsxDEV(ie,{size:"sm",label:u("common.cost"),value:oa(r.costTotal,r.unpricedRequests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Kt=_(Ke(),1),BR=_(Jc(),1);function Cg(r,l){let i=r.length,d=[l[0],l[i-1]],f=(g,v)=>{let h=0,m=i-1;while(h<m){let S=h+m+1>>1;if(g[S]<=v)h=S;else m=S-1}return Math.min(h,i-2)};return{toU(g){if(g<=r[0])return l[0];if(g>=r[i-1])return l[i-1];let v=f(r,g),h=r[v+1]-r[v];if(h<=0)return l[v];return l[v]+(g-r[v])/h*(l[v+1]-l[v])},toT(g){if(g<=l[0])return r[0];if(g>=l[i-1])return r[i-1];let v=f(l,g),h=l[v+1]-l[v];if(h<=0)return r[v];return r[v]+(g-l[v])/h*(r[v+1]-r[v])},domain:d,gaps:[]}}function GO(r){let l=[];for(let i of r)for(let d of i.spans)l.push([d.start,d.end]);return l.sort((i,d)=>i[0]-d[0]),l}function VO(r){let{POSITIVE_INFINITY:l,NEGATIVE_INFINITY:i}=Number;for(let d of r)for(let f of d.spans){if(f.start<l)l=f.start;if(f.end>i)i=f.end}if(!Number.isFinite(l))return[0,1];return[l,Math.max(i,l+1)]}function MR(r,l,i){let d=[...new Set(r.filter((h)=>h>=l&&h<=i))].sort((h,m)=>h-m);if(d[0]!==l)d.unshift(l);if(d[d.length-1]!==i)d.push(i);if(d.length<2)return Cg([l,i],[l,i]);let g=(i-l)/(d.length-1),v=d.map((h,m)=>l+m*g);return Cg(d,v)}function jO(r,l,i){let d=GO(r),f=[];for(let[y,b]of d){let L=y-2000,T=b+2000,C=f[f.length-1];if(C&&L<=C[1]){if(T>C[1])C[1]=T}else f.push([L,T])}if(f.length===0)f.push([l,i]);f[0][0]=Math.max(f[0][0],l),f[f.length-1][1]=Math.min(Math.max(f[f.length-1][1],f[f.length-1][0]),i);let g=[],v=[],h=[],m=f[0][0];for(let y=0;y<f.length;y++){let[b,L]=f[y];if(y===0)g.push(b),v.push(m);else{let T=f[y-1][1],C=b-T;if(C>30000)m+=8000,h.push({t0:T,t1:b,uMid:m-4000});else m+=C;g.push(b),v.push(m)}m+=Math.max(0,L-b),g.push(L),v.push(m)}return{...Cg(g,v),gaps:h}}function DR(r,l,i){let[d,f]=VO(r);if(l==="turns"){let v=(r.find((h)=>h.id==="main")?.spans??[]).filter((h)=>h.kind==="turn").map((h)=>h.start);return MR(v,d,f)}if(l==="calls"){let g=[];for(let v of r)for(let h of v.spans)if(h.kind==="model"||h.kind==="tool"||h.kind==="background")g.push(h.start,h.end);return MR(g,d,f)}if(i)return jO(r,d,f);return Cg([d,f],[d,f])}var $O=90;function XO(r){let l=10**Math.floor(Math.log10(Math.max(r,1)));for(let i of[1,2,5,10])if(l*i>=r)return l*i;return l*10}function YO(r){let l=new Date(r),i=String(l.getHours()).padStart(2,"0"),d=String(l.getMinutes()).padStart(2,"0"),f=String(l.getSeconds()).padStart(2,"0");return`${i}:${d}:${f}`}function yd(r){let l=r<0?"-":"+",i=Math.abs(r),d=Math.floor(i/3600000),f=Math.floor(i%3600000/60000),g=Math.floor(i%60000/1000),v=Math.floor(i%1000),h=i%1000!==0,m=`${String(f).padStart(2,"0")}:${String(g).padStart(2,"0")}${h?".":""}${h?String(v).padStart(3,"0"):""}`;return d>0?`${l}${d}:${m}`:`${l}${m}`}function ER(r,l,i,d){let f=i-l;if(f<=0||d<=0)return[];let g=[],v=r.domain[0],h=XO(f*$O/d),m=v+Math.ceil((l-v)/h)*h,S=0;for(let y=m;y<=i&&S<200;y+=h,S++){let b=r.toT(y),L=Math.round((y-v)/h)%5===0;g.push({u:y,label:L?YO(b):yd(y-v),major:L})}return g}var Gt=_(te(),1),qs=28,Gb=22,Wo=18,NR=3,KO=14,qR=200,_b=10,PR=2,QO=4,WO=56,Tg=3,Fb=0.3;function ZO(){return[{kind:"turn",label:u("common.input")},{kind:"model",label:u("common.model")},{kind:"tool",label:u("trace.tools")},{kind:"subagent",label:u("trace.agents")},{kind:"background",label:u("trace.bg")}]}function JO(r,l){let i=new Map(r.map((m)=>[m.id,m])),d=new Set;for(let m of r)if(m.parentId)d.add(m.parentId);let f=(m)=>{let S=m.parentId;while(S){if(l.has(S))return!0;S=i.get(S)?.parentId??null}return!1},g=[],v=[],h=qs+6;for(let m of r){if(f(m))continue;let S=m.id==="main"?0:m.id.split("/").length,y={turn:[],model:[],tool:[],subagent:[],background:[]};for(let L of m.spans)y[L.kind].push(L);let b={track:m,depth:S,hasChildren:d.has(m.id),headerY:h,lanes:[],turnSpans:y.turn,y0:h,y1:h};h+=Gb;for(let{kind:L,label:T}of ZO()){let C=y[L],I=L==="turn"||L==="model"||L==="tool";if(C.length===0&&!(m.id==="main"&&I))continue;let R={track:m,kind:L,label:T,y:h,spans:C};b.lanes.push(R),v.push(R),h+=Wo+NR}b.y1=h-NR,g.push(b),h+=KO}return{blocks:g,lanes:v,totalHeight:Math.max(h,qs+48)}}function eB(r,l){return r.lanes.map((i)=>{let d=i.spans.length,f=new Float64Array(d),g=new Float64Array(d),v=new Float64Array(d),h=Number.NEGATIVE_INFINITY;for(let m=0;m<d;m++){let S=i.spans[m];f[m]=l.toU(S.start),g[m]=l.toU(S.end),h=Math.max(h,g[m]),v[m]=h}return{startU:f,endU:g,maxEndU:v}})}function tB(r,l){let i=0,d=r.length;while(i<d){let f=i+d>>>1;if(r[f]<l)i=f+1;else d=f}return i}function aB(r,l){if(r===null||l===null)return r===l;if(r.kind==="span")return l.kind==="span"&&r.span===l.span;return l.kind==="marker"&&r.marker===l.marker}function zR({tracks:r,scale:l,viewport:i,onViewportChange:d,selected:f,onSelect:g,matchIds:v,collapsed:h,onToggleCollapse:m,traceStart:S,autoFocus:y=!0}){let b=_n(),L=hd(),T=Kt.useRef(null),C=Kt.useRef(null),I=Kt.useRef(null),[R,O]=Kt.useState(800),[P,Y]=Kt.useState(null),W=Kt.useRef(null);W.current=P;let ue=Kt.useRef({clientX:0,clientY:0}),Z=Kt.useRef([]),ce=Kt.useRef(null),ee=Kt.useRef(null),G=Kt.useRef(i);G.current=i;let V=Kt.useMemo(()=>JO(r,h),[r,h,b]),Re=Kt.useMemo(()=>eB(V,l),[V,l]);Kt.useEffect(()=>{let H=T.current;if(!H)return;let we=new ResizeObserver((he)=>{let it=Math.max(100,Math.floor(he[0].contentRect.width-qR));O(it)});return we.observe(H),()=>we.disconnect()},[]);let pe=Kt.useCallback((H,we)=>{let[he,it]=l.domain,Pe=Math.max(_b,we-H);Pe=Math.min(Pe,it-he||_b);let ke=H;if(ke<he)ke=he;if(ke+Pe>it)ke=it-Pe;return{u0:ke,u1:ke+Pe}},[l]),Ne=Kt.useCallback((H)=>{G.current=H,d(H)},[d]),Te=Kt.useCallback((H,we)=>{let he=R,{u0:it,u1:Pe}=G.current,ke=Pe-it,Qt=we===null?0.5:Math.min(1,Math.max(0,we/he)),qe=it+ke*Qt,Ea=ke*H;Ne(pe(qe-Ea*Qt,qe+Ea*(1-Qt)))},[R,Ne,pe]),oe=Kt.useCallback((H)=>{let{u0:we,u1:he}=G.current;Ne(pe(we+H,he+H))},[Ne,pe]),Se=Kt.useCallback((H)=>{let we=l.toU(H.start),he=l.toU(H.end),it=Math.max((he-we)*0.1,_b/2);Ne(pe(we-it,he+it))},[l,Ne,pe]);Kt.useEffect(()=>{let H=C.current;if(!H)return;let we=(he)=>{he.preventDefault();let it=H.getBoundingClientRect(),Pe=he.clientX-it.left;ee.current=Pe,Y(null);let ke=H.clientWidth||1,Qt=()=>G.current.u1-G.current.u0;if(he.shiftKey){let qe=Math.abs(he.deltaY)>=Math.abs(he.deltaX)?he.deltaY:he.deltaX;oe(qe/ke*Qt());return}if(he.deltaX!==0)oe(he.deltaX/ke*Qt());if(he.deltaY!==0)Te(1.0015**he.deltaY,Pe)};return H.addEventListener("wheel",we,{passive:!1}),()=>H.removeEventListener("wheel",we)},[Te,oe]);let Ee=Kt.useCallback((H,we)=>{let he=C.current;if(!he)return null;let it=he.getBoundingClientRect(),Pe=H-it.left,ke=we-it.top,Qt=Z.current;for(let qe=Qt.length-1;qe>=0;qe--){let Ea=Qt[qe];if(Pe>=Ea.x&&Pe<=Ea.x+Ea.w&&ke>=Ea.y&&ke<=Ea.y+Ea.h)return Ea}return null},[]),Qe=Kt.useCallback(()=>{let H=I.current;if(!H)return;let{clientX:we,clientY:he}=ue.current,it=Math.min(we+14,window.innerWidth-320),Pe=he+16>window.innerHeight-140?he-120:he+16;H.style.transform=`translate(${it}px, ${Pe}px)`},[]),yt=(H)=>{H.currentTarget.setPointerCapture(H.pointerId),ce.current={pointerId:H.pointerId,lastX:H.clientX,moved:!1},H.currentTarget.focus()},Q=(H)=>{let we=H.currentTarget.getBoundingClientRect();ee.current=H.clientX-we.left;let he=ce.current;if(he&&he.pointerId===H.pointerId){let Pe=H.clientX-he.lastX;if(Math.abs(Pe)>0){if(Math.abs(Pe)>2)he.moved=!0;he.lastX=H.clientX;let ke=G.current.u1-G.current.u0;oe(-Pe/(R||1)*ke)}Y(null);return}ue.current={clientX:H.clientX,clientY:H.clientY};let it=Ee(H.clientX,H.clientY);if(aB(it,W.current))Qe();else Y(it)},Fe=(H)=>{let we=ce.current;if(ce.current=null,we?.moved)return;let he=Ee(H.clientX,H.clientY);if(he?.kind==="span")g(he.span.id);else g(null)},It=(H)=>{let we=Ee(H.clientX,H.clientY);if(we?.kind==="span")Se(we.span)},St=Kt.useCallback((H)=>{let we=f?.span.id;if(!we)return;for(let he of V.lanes){let it=he.spans.findIndex((Qt)=>Qt.id===we);if(it===-1)continue;let Pe=he.spans[it+H];if(!Pe)return;g(Pe.id);let ke=l.toU(Pe.start);if(ke<i.u0||ke>i.u1){let Qt=i.u1-i.u0;d(pe(ke-Qt/2,ke+Qt/2))}return}},[f,V,g,l,i,d,pe]),ge=(H)=>{let we=i.u1-i.u0;switch(H.key){case"w":case"W":Te(0.7692307692307692,ee.current);break;case"s":case"S":Te(1.3,ee.current);break;case"a":case"A":oe(-we*0.2);break;case"d":case"D":oe(we*0.2);break;case"0":d({u0:l.domain[0],u1:l.domain[1]});break;case"f":case"F":if(f)Se(f.span);break;case"Escape":g(null);break;case",":St(-1);break;case".":St(1);break;default:return}H.preventDefault(),H.stopPropagation()};Kt.useEffect(()=>{if(y)C.current?.focus({preventScroll:!0})},[y]),Kt.useEffect(()=>{let H=C.current;if(!H)return;let we=requestAnimationFrame(()=>{Z.current=oB(H,V,Re,l,i,L,R,v)});return()=>cancelAnimationFrame(we)},[V,Re,l,i,L,R,v]);let Ye=P?.kind==="span"?OR(P,V,l,i,R):null,He=f?OR(f,V,l,i,R):null;Kt.useLayoutEffect(()=>{if(P)Qe()},[P,Qe]);let ua=P?rB(P,S,I):null,da=Math.floor(R*devicePixelRatio),j=Math.floor(V.totalHeight*devicePixelRatio),We={width:R,height:V.totalHeight};return Gt.jsxDEV("div",{ref:T,className:"traces-timeline",children:[Gt.jsxDEV("div",{style:{width:qR,flexShrink:0,position:"relative",height:V.totalHeight},children:V.blocks.map((H)=>Gt.jsxDEV("div",{children:[Gt.jsxDEV("div",{style:{position:"absolute",top:H.headerY,left:4+H.depth*14,right:8,height:Gb,display:"flex",alignItems:"center",gap:5,minWidth:0},children:[H.hasChildren?Gt.jsxDEV("button",{type:"button",onClick:()=>m(H.track.id),"aria-label":h.has(H.track.id)?u("trace.expand-track",{track:H.track.label}):u("trace.collapse-track",{track:H.track.label}),className:"traces-chevron",children:h.has(H.track.id)?Gt.jsxDEV(tn,{size:12},void 0,!1,void 0,this):Gt.jsxDEV(Mi,{size:12},void 0,!1,void 0,this)},void 0,!1,void 0,this):Gt.jsxDEV("span",{style:{width:12,flexShrink:0}},void 0,!1,void 0,this),Gt.jsxDEV("span",{className:"traces-gutter-track truncate",style:{minWidth:0},children:H.track.label},void 0,!1,void 0,this),H.track.model&&Gt.jsxDEV("span",{className:"traces-gutter-model mono truncate",style:{flexShrink:1,minWidth:0},children:H.track.model},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H.lanes.map((we)=>Gt.jsxDEV("div",{className:"traces-gutter-lane",style:{top:we.y,left:20+H.depth*14,lineHeight:`${Wo}px`},children:we.label},`${we.track.id}:${we.kind}`,!1,void 0,this))]},H.track.id,!0,void 0,this))},void 0,!1,void 0,this),Gt.jsxDEV("div",{className:"traces-canvas-stack",style:We,children:[Gt.jsxDEV("canvas",{ref:C,className:"traces-canvas",width:da,height:j,style:We,tabIndex:0,role:"application","aria-label":u("trace.canvas-aria"),onPointerDown:yt,onPointerMove:Q,onPointerUp:Fe,onPointerLeave:()=>{ee.current=null,Y(null)},onDoubleClick:It,onKeyDown:ge},void 0,!1,void 0,this),Ye&&P?.kind==="span"&&Gt.jsxDEV("div",{className:"traces-canvas-hover","aria-hidden":"true",style:{left:Ye.x,top:Ye.y,width:Ye.w,height:Wo,borderRadius:Tg,opacity:v===null||v.has(P.span.id)?1:Fb}},void 0,!1,void 0,this),He&&f&&Gt.jsxDEV("div",{className:"traces-canvas-selection","aria-hidden":"true",style:{left:He.x-1,top:He.y-1,width:He.w+2,height:Wo+2,borderRadius:Tg,borderColor:L.selection,opacity:v===null||v.has(f.span.id)?1:Fb}},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ua&&BR.createPortal(ua,T.current?.getRootNode()instanceof ShadowRoot?T.current.getRootNode():document.body)]},void 0,!0,void 0,this)}function Hb(r,l,i,d,f){if(r.beginPath(),d>=Tg*2+1)r.roundRect(l,i,d,f,Tg);else r.rect(l,i,d,f)}function oB(r,l,i,d,f,g,v,h){let m=[],S=r.getContext("2d");if(!S)return m;let y=l.totalHeight,b=devicePixelRatio;S.setTransform(b,0,0,b,0,0),S.clearRect(0,0,v,y);let{u0:L,u1:T}=f,C=Math.max(T-L,0.000000001),I=(R)=>(R-L)/C*v;for(let R of l.blocks){let O=R.turnSpans;for(let P=0;P<O.length;P++){let Y=I(d.toU(O[P].start)),W=P+1<O.length?I(d.toU(O[P+1].start)):v;if(W<0||Y>v)continue;if(P%2===1)S.fillStyle=g.turnBand,S.fillRect(Math.max(0,Y),R.y0,Math.min(v,W)-Math.max(0,Y),R.y1-R.y0);if(Y>=0&&Y<=v)S.strokeStyle=g.grid,S.beginPath(),S.moveTo(Math.round(Y)+0.5,R.y0),S.lineTo(Math.round(Y)+0.5,R.y1),S.stroke()}}S.font=`9px ${g.fontMono}`;for(let R of d.gaps){let O=I(R.uMid);if(O<-24||O>v+24)continue;S.save(),S.strokeStyle=g.grid,S.setLineDash([2,4]),S.beginPath(),S.moveTo(O,qs),S.lineTo(O,y),S.stroke(),S.restore(),S.fillStyle=g.tick,S.textAlign="center",S.fillText(`⋯ ${Ct(R.t1-R.t0)}`,O,qs-4),S.textAlign="left"}for(let R of ER(d,L,T,v)){let O=Math.round(I(R.u))+0.5;if(S.strokeStyle=g.grid,S.beginPath(),R.major)S.moveTo(O,4),S.lineTo(O,y);else S.moveTo(O,qs-8),S.lineTo(O,qs);if(S.stroke(),S.fillStyle=g.tick,R.major)S.fillText(R.label,O+4,11);else S.globalAlpha=0.75,S.fillText(R.label,O+3,qs-10),S.globalAlpha=1}S.strokeStyle=g.grid,S.beginPath(),S.moveTo(0,qs+0.5),S.lineTo(v,qs+0.5),S.stroke(),S.font=`10px ${g.fontSans}`;for(let R=0;R<l.lanes.length;R++){let O=l.lanes[R],{startU:P,endU:Y,maxEndU:W}=i[R],ue=O.kind==="turn";for(let Z=tB(W,L);Z<O.spans.length;Z++){let ce=P[Z];if(ce>T)break;let ee=Y[Z];if(ee<L)continue;let G=O.spans[Z],V=I(ce),Re=Math.max(PR,I(ee)-V),pe=O.y,Ne=h===null||h.has(G.id)?1:Fb,Te=g.category[G.kind];if(S.globalAlpha=Ne,ue)S.fillStyle=Te,S.globalAlpha=Ne*0.23,Hb(S,V,pe,Re,Wo),S.fill(),S.globalAlpha=Ne,S.fillStyle=Te,S.fillRect(V,pe,2,Wo);else S.fillStyle=Te,Hb(S,V,pe,Re,Wo),S.fill();if(G.isError)S.fillStyle=g.errorSoft,Hb(S,V,pe,Re,Wo),S.fill(),S.fillStyle=g.error,S.fillRect(V,pe,2,Wo);if(G.kind==="model"&&typeof G.ttft==="number"&&G.ttft>0&&Re>20){let Se=I(d.toU(G.start+G.ttft));if(Se>V+1&&Se<V+Re-1)S.fillStyle="rgba(0,0,0,0.5)",S.fillRect(Se,pe+3,1,Wo-6)}if(G.unterminated)S.save(),S.strokeStyle=g.tick,S.setLineDash([2,2]),S.beginPath(),S.moveTo(V+Re-0.5,pe),S.lineTo(V+Re-0.5,pe+Wo),S.stroke(),S.restore();if(Re>WO)S.save(),S.beginPath(),S.rect(V+3,pe,Re-6,Wo),S.clip(),S.fillStyle=ue?g.tick:g.spanText,S.fillText(G.label,V+5,pe+Wo-5),S.restore();S.globalAlpha=1;let oe=Math.max(Re,QO);m.push({kind:"span",x:V-(oe-Re)/2,y:pe,w:oe,h:Wo,span:G,track:O.track})}}for(let R of l.blocks)for(let O of R.track.markers){let P=I(d.toU(O.time));if(P<-6||P>v+6)continue;let Y=R.headerY+Gb/2;S.fillStyle=g.marker,S.beginPath(),S.moveTo(P,Y-4),S.lineTo(P+4,Y),S.lineTo(P,Y+4),S.lineTo(P-4,Y),S.closePath(),S.fill(),m.push({kind:"marker",x:P-5,y:Y-5,w:10,h:10,marker:O,track:R.track})}return m}function OR({span:r,track:l},i,d,f,g){let{u0:v,u1:h}=f,m=d.toU(r.start),S=d.toU(r.end);if(m>h||S<v)return null;let y=i.lanes.find((C)=>C.track===l&&C.kind===r.kind);if(!y)return null;let b=Math.max(h-v,0.000000001),L=(m-v)/b*g,T=(S-v)/b*g;return{x:L,y:y.y,w:Math.max(PR,T-L)}}function rB(r,l,i){let d={left:0,top:0};if(r.kind==="marker"){let{marker:g}=r;return Gt.jsxDEV("div",{ref:i,className:"traces-tooltip",style:d,children:[Gt.jsxDEV("div",{className:"traces-tooltip-title",children:g.label},void 0,!1,void 0,this),Gt.jsxDEV("div",{className:"muted num",children:[Gf(g.time)," (",yd(g.time-l),")"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}let{span:f}=r;return Gt.jsxDEV("div",{ref:i,className:"traces-tooltip",style:d,children:[Gt.jsxDEV("div",{className:"traces-tooltip-title truncate",children:f.label},void 0,!1,void 0,this),Gt.jsxDEV("div",{className:"muted num",children:[Ct(f.end-f.start)," · ",Gf(f.start)," (",yd(f.start-l),")",f.unterminated?` · ${u("trace.unterminated")}`:""]},void 0,!0,void 0,this),f.kind==="model"&&Gt.jsxDEV("div",{className:"muted num",children:[f.tokens!==void 0&&Gt.jsxDEV(Gt.Fragment,{children:[A(f.tokens)," ",u("trace.tok")]},void 0,!0,void 0,this),f.cost!==void 0&&Gt.jsxDEV(Gt.Fragment,{children:[" · $",f.cost.toFixed(4)]},void 0,!0,void 0,this),f.ttft!==void 0&&Gt.jsxDEV(Gt.Fragment,{children:[" ","· ",u("trace.ttft")," ",Ct(f.ttft)]},void 0,!0,void 0,this),f.isError&&Gt.jsxDEV(Gt.Fragment,{children:[" · ",u("common.error")]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),f.kind==="subagent"&&f.model&&Gt.jsxDEV("div",{className:"muted num",children:f.model},void 0,!1,void 0,this),f.detail&&Gt.jsxDEV("div",{className:"traces-tooltip-detail",children:f.detail},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var dn=_(Ke(),1);var mo=_(te(),1),vd=28,UR=20,nB=340;function sB(r){let l=[];for(let i of r){let d=i.id==="main"?0:i.id.split("/").length;for(let f of i.spans)l.push({key:f.id,time:f.start,span:f,track:i,depth:d});for(let f=0;f<i.markers.length;f++){let g=i.markers[f];l.push({key:`${i.id}:marker:${f}`,time:g.time,marker:g,track:i,depth:d})}}return l.sort((i,d)=>i.time-d.time),l}var _R=dn.memo(function({tracks:l,selection:i,onSelect:d,search:f,matchIds:g,traceStart:v}){let h=hd(),m=dn.useRef(null),[S,y]=dn.useState(0),b=dn.useMemo(()=>sB(l),[l]),L=dn.useMemo(()=>{if(!g)return b;let R=f.trim().toLowerCase();return b.filter((O)=>O.span?g.has(O.span.id):(O.marker?.label??"").toLowerCase().includes(R))},[b,f,g]);dn.useEffect(()=>{if(!i)return;let R=m.current;if(!R)return;let O=L.findIndex((Y)=>Y.span?.id===i);if(O===-1)return;let P=O*vd;if(P<R.scrollTop||P+vd>R.scrollTop+R.clientHeight)R.scrollTop=Math.max(0,P-R.clientHeight/2)},[i,L]);let T=Math.max(0,Math.floor(S/vd)-UR),C=Math.min(L.length,Math.ceil((S+nB)/vd)+UR),I=L.slice(T,C);return mo.jsxDEV("div",{ref:m,onScroll:(R)=>y(R.currentTarget.scrollTop),className:"traces-list",children:[mo.jsxDEV("div",{style:{height:L.length*vd,position:"relative"},children:mo.jsxDEV("div",{style:{position:"absolute",top:T*vd,left:0,right:0},children:I.map((R)=>{let O=R.span,P=O!==void 0&&O.id===i,Y=R.span?h.category[R.span.kind]:h.marker,W=R.span?.label??R.marker?.label??"",ue=R.span?.detail,Z=R.span?Ct(R.span.end-R.span.start):"",ce=R.span?.kind??R.marker?.kind??"",ee=mo.jsxDEV(mo.Fragment,{children:[mo.jsxDEV("span",{className:"traces-kind",style:{"--traces-kind-color":Y},children:ce},void 0,!1,void 0,this),R.depth>0&&mo.jsxDEV("span",{className:"traces-row-track mono truncate",title:R.track.label,children:R.track.id},void 0,!1,void 0,this),mo.jsxDEV("span",{className:"traces-row-label truncate",children:W},void 0,!1,void 0,this),ue&&mo.jsxDEV("span",{className:"traces-row-detail truncate",children:ue},void 0,!1,void 0,this),mo.jsxDEV("span",{className:"traces-row-meta num",children:[R.span?.isError&&mo.jsxDEV("span",{className:"tone-bad",children:u("common.error")},void 0,!1,void 0,this),mo.jsxDEV("span",{children:Z},void 0,!1,void 0,this),mo.jsxDEV("span",{children:yd(R.time-v)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),G={paddingLeft:12+R.depth*12};return O?mo.jsxDEV("button",{type:"button",onClick:()=>d(O.id),className:"traces-row","data-selected":P?"true":"false",style:G,children:ee},R.key,!1,void 0,this):mo.jsxDEV("div",{className:"traces-row","data-static":"true",style:G,children:ee},R.key,!1,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),L.length===0&&mo.jsxDEV(Je,{title:u("trace.no-matching-events")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});var lt=_(te(),1);function lB(){return[{value:"time",label:u("common.duration"),title:u("trace.mode-time-title")},{value:"turns",label:u("trace.turns"),title:u("trace.mode-turns-title")},{value:"calls",label:u("trace.calls"),title:u("trace.mode-calls-title")}]}function iB(){return[{kind:"turn",label:u("common.input")},{kind:"model",label:u("common.model")},{kind:"tool",label:u("trace.tool")},{kind:"subagent",label:u("trace.agent")},{kind:"background",label:u("trace.background")}]}function HR({file:r,active:l,onBack:i}){let d=zt(["trace",r],({signal:g},v)=>LI(r,g,v),{pollMs:15000,enabled:l}),f=d.stale?null:d.data;return lt.jsxDEV("div",{className:"stack traces-view",children:[lt.jsxDEV("div",{children:lt.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm",onClick:i,children:[lt.jsxDEV(nf,{size:14,"aria-hidden":"true"},void 0,!1,void 0,this),"Sessions"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),lt.jsxDEV(la,{title:lt.jsxDEV("span",{className:"traces-title truncate",children:f?.title??r.split("/").pop()},void 0,!1,void 0,this),description:f?.cwd?lt.jsxDEV("span",{className:"mono",children:f.cwd},void 0,!1,void 0,this):void 0,actions:lt.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-icon":"true",onClick:d.refetch,"aria-label":"Refresh trace",title:"Refresh trace",children:lt.jsxDEV(Dl,{size:14,className:d.refreshing?"traces-spin":void 0},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),lt.jsxDEV(_e,{query:{...d,data:f},skeleton:lt.jsxDEV(qt,{height:420},void 0,!1,void 0,this),children:(g)=>lt.jsxDEV(uB,{trace:g},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function uB({trace:r,view:l="full",loadEntry:i,embedded:d=!1,onNavigate:f}){let[g,v]=Xt.useState("time"),[h,m]=Xt.useState(!0),[S,y]=Xt.useState(null),[b,L]=Xt.useState(!1),[T,C]=Xt.useState(""),[I,R]=Xt.useState(0),[O,P]=Xt.useState(new Set),[Y,W]=Xt.useState(null),ue=Xt.useMemo(()=>r?.tracks??[],[r]),Z=Xt.useMemo(()=>DR(ue,g,h),[ue,g,h]),ce=Xt.useRef(Z),ee=Xt.useRef(null);Xt.useEffect(()=>{if(!r)return;if(ee.current===r.file)return;ee.current=r.file,y(null),C(""),W(null);let ge=new Set;for(let Ye of r.tracks)if((Ye.id==="main"?0:Ye.id.split("/").length)>=1)ge.add(Ye.id);P(ge)},[r]),Xt.useEffect(()=>{let ge=ce.current;ce.current=Z,W((Ye)=>{if(!Ye)return Ye;let He=ge.toT(Ye.u0),ua=ge.toT(Ye.u1),da=Z.toU(He),j=Z.toU(ua);return j-da>0?{u0:da,u1:j}:null})},[Z]);let G=Xt.useMemo(()=>Y??{u0:Z.domain[0],u1:Z.domain[1]},[Y,Z]),V=Xt.useMemo(()=>{let ge=[];for(let Ye of ue)for(let He of Ye.spans)ge.push({span:He,track:Ye});return ge.sort((Ye,He)=>Ye.span.start-He.span.start),ge},[ue]),Re=Xt.useMemo(()=>{let ge=T.trim().toLowerCase();if(!ge)return[];return V.filter(({span:Ye})=>`${Ye.label} ${Ye.detail??""}`.toLowerCase().includes(ge))},[V,T]),pe=Xt.useMemo(()=>T.trim()?new Set(Re.map(({span:ge})=>ge.id)):null,[Re,T]),Ne=Xt.useCallback((ge)=>{let Ye=Z.toU(ge.start),He=Z.toU(ge.end);W((ua)=>{let da=ua??{u0:Z.domain[0],u1:Z.domain[1]};if(Ye>=da.u0&&He<=da.u1)return ua;let j=da.u1-da.u0,We=(Ye+He)/2,[H,we]=Z.domain,he=We-j/2;if(he<H)he=H;if(he+j>we)he=Math.max(H,we-j);return{u0:he,u1:he+j}})},[Z]),Te=Xt.useCallback((ge)=>{y(ge);let Ye=V.find(({span:He})=>He.id===ge);if(Ye)Ne(Ye.span)},[V,Ne]),oe=Xt.useCallback((ge)=>{y(ge),L(ge!==null)},[]),Se=Xt.useCallback((ge)=>{if(Re.length===0)return;let Ye=((I+ge)%Re.length+Re.length)%Re.length;R(Ye),Te(Re[Ye].span.id)},[Re,I,Te]),Ee=Xt.useCallback((ge)=>{P((Ye)=>{let He=new Set(Ye);if(He.has(ge))He.delete(ge);else He.add(ge);return He})},[]),Qe=Xt.useMemo(()=>{if(!S)return null;return V.find(({span:ge})=>ge.id===S)??null},[S,V]),yt=Xt.useCallback((ge)=>{let Ye=ue.find((ua)=>ua.id===ge),He=Ye?.spans[0];if(P((ua)=>{let da=new Set(ua),j=Ye;while(j?.parentId)da.delete(j.parentId),j=ue.find((We)=>We.id===j?.parentId);return da}),He)Te(He.id)},[ue,Te]),Q=Xt.useCallback((ge)=>{if(!ge){P(new Set);return}let Ye=new Set;for(let He of ue)if(He.id!=="main")Ye.add(He.id);P(Ye)},[ue]),Fe=Xt.useCallback((ge)=>{Te(ge),L(!0)},[Te]),It=Xt.useCallback(()=>L(!1),[]),St=r.startedAt;return lt.jsxDEV("div",{className:"stack traces-view","data-view":l,children:[l==="full"&&lt.jsxDEV(AR,{summary:r.summary},void 0,!1,void 0,this),V.length===0&&lt.jsxDEV("p",{className:"muted",children:"No spans recorded in this session."},void 0,!1,void 0,this),lt.jsxDEV(fe,{index:1,title:u("trace.timeline"),description:u("trace.timeline-hint"),actions:lt.jsxDEV(lt.Fragment,{children:[lt.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm",onClick:()=>Q(!1),children:u("trace.expand-all")},void 0,!1,void 0,this),lt.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm",onClick:()=>Q(!0),children:u("trace.collapse-all")},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:lt.jsxDEV("div",{className:"stack",children:[lt.jsxDEV("div",{className:"traces-toolbar",children:[lt.jsxDEV(Oa,{options:lB(),value:g,onChange:v,size:"sm","aria-label":u("trace.axis-mode")},void 0,!1,void 0,this),g==="time"&&lt.jsxDEV("label",{className:"traces-check",children:[lt.jsxDEV("input",{type:"checkbox",checked:h,onChange:(ge)=>m(ge.target.checked)},void 0,!1,void 0,this),u("trace.compress-idle")]},void 0,!0,void 0,this),lt.jsxDEV("div",{className:"traces-search",children:[lt.jsxDEV(Fn,{value:T,onChange:(ge)=>{C(ge),R(0)},label:u("trace.search-placeholder"),placeholder:u("trace.search-placeholder"),width:200},void 0,!1,void 0,this),T.trim()&&lt.jsxDEV(lt.Fragment,{children:[lt.jsxDEV("span",{className:"num muted traces-match-count",children:Re.length===0?"0":`${I%Math.max(Re.length,1)+1}/${Re.length}`},void 0,!1,void 0,this),lt.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm","data-icon":"true",onClick:()=>Se(-1),"aria-label":u("trace.previous-match"),disabled:Re.length===0,children:lt.jsxDEV(cf,{size:14},void 0,!1,void 0,this)},void 0,!1,void 0,this),lt.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm","data-icon":"true",onClick:()=>Se(1),"aria-label":u("trace.next-match"),disabled:Re.length===0,children:lt.jsxDEV(tn,{size:14},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),lt.jsxDEV("div",{className:"traces-legend",children:iB().map((ge)=>lt.jsxDEV("span",{className:"traces-legend-item",children:[lt.jsxDEV("span",{className:"swatch",style:{background:`var(${ji[ge.kind]})`}},void 0,!1,void 0,this),ge.label]},ge.kind,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),lt.jsxDEV(TR,{tracks:ue,scale:Z,viewport:G,onViewportChange:W},void 0,!1,void 0,this),lt.jsxDEV(zR,{tracks:ue,scale:Z,viewport:G,onViewportChange:W,selected:Qe,onSelect:oe,matchIds:pe,collapsed:O,onToggleCollapse:Ee,traceStart:St,autoFocus:!d},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),lt.jsxDEV(RR,{span:b?Qe?.span??null:null,track:Qe?.track??null,onClose:It,onOpenChildTrack:yt,loadEntry:i,inline:d,onNavigate:f},void 0,!1,void 0,this),l==="full"&&lt.jsxDEV(fe,{index:2,title:u("trace.transcript"),description:u("trace.transcript-description"),flush:!0,children:lt.jsxDEV(_R,{tracks:ue,selection:S,onSelect:Fe,search:T,matchIds:pe,traceStart:St},void 0,!1,void 0,this)},void 0,!1,void 0,this),l==="full"&&lt.jsxDEV(wR,{toolStats:r.summary.toolStats,index:3},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Sa=_(te(),1),FR=200;function dB({models:r}){if(r.length===0)return Sa.jsxDEV("span",{className:"dim",children:"-"},void 0,!1,void 0,this);return Sa.jsxDEV("span",{className:"traces-models",title:r.join(`
240
+ `),children:[Sa.jsxDEV("span",{className:"mono truncate",children:r[0]},void 0,!1,void 0,this),r.length>1&&Sa.jsxDEV("span",{className:"badge",children:["+",r.length-1]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function GR({active:r,session:l,onOpenSession:i}){let[d,f]=xd.useState(""),g=zt(["sessions",FR],({signal:y})=>kI(FR,void 0,y),{pollMs:30000,enabled:r&&l===null}),v=xd.useMemo(()=>{let y=g.data??[],b=d.trim().toLowerCase();if(!b)return y;return y.filter((L)=>(L.title??"").toLowerCase().includes(b)||L.folder.toLowerCase().includes(b)||L.models.some((T)=>T.toLowerCase().includes(b)))},[g.data,d]),h=xd.useMemo(()=>Math.max(0,...v.map((y)=>y.costTotal)),[v]),m=xd.useMemo(()=>[{key:"title",header:u("trace.session"),width:"32%",render:(y)=>Sa.jsxDEV(co,{primary:y.title??y.file.split("/").pop(),secondary:Sa.jsxDEV("span",{className:"mono",children:y.folder.split("/").slice(-2).join("/")},void 0,!1,void 0,this)},void 0,!1,void 0,this),sort:(y)=>(y.title??y.file).toLowerCase()},{key:"models",header:u("common.models"),render:(y)=>Sa.jsxDEV(dB,{models:y.models},void 0,!1,void 0,this)},{key:"started",header:u("common.started"),align:"right",render:(y)=>Sa.jsxDEV("span",{className:"muted",title:ro(y.startedAt),children:ma(y.startedAt)},void 0,!1,void 0,this),sort:(y)=>y.startedAt},{key:"duration",header:u("common.duration"),align:"right",render:(y)=>Sa.jsxDEV("span",{className:"num",children:yr(y.endedAt-y.startedAt)},void 0,!1,void 0,this),sort:(y)=>y.endedAt-y.startedAt},{key:"requests",header:u("common.requests"),align:"right",render:(y)=>Sa.jsxDEV("span",{className:"num",children:A(y.requests)},void 0,!1,void 0,this),sort:(y)=>y.requests},{key:"toolCalls",header:u("trace.tools"),align:"right",render:(y)=>Sa.jsxDEV("span",{className:"num",children:A(y.toolCalls)},void 0,!1,void 0,this),sort:(y)=>y.toolCalls},{key:"subagents",header:u("trace.agents"),align:"right",render:(y)=>y.subagents>0?Sa.jsxDEV("span",{className:"num",children:A(y.subagents)},void 0,!1,void 0,this):Sa.jsxDEV("span",{className:"num dim",children:"0"},void 0,!1,void 0,this),sort:(y)=>y.subagents},{key:"tokens",header:u("common.tokens"),align:"right",render:(y)=>Sa.jsxDEV("span",{className:"num",children:se(y.totalTokens)},void 0,!1,void 0,this),sort:(y)=>y.totalTokens},{key:"cost",header:u("common.cost"),align:"right",width:150,render:(y)=>Sa.jsxDEV(Ma,{value:y.costTotal,max:h,display:oa(y.costTotal,y.unpricedRequests)},void 0,!1,void 0,this),sort:(y)=>y.costTotal}],[h]);if(l!==null)return Sa.jsxDEV(HR,{file:l,active:r,onBack:()=>i(null)},void 0,!1,void 0,this);let S=g.data?.length??0;return Sa.jsxDEV("div",{className:"stack traces-page",children:[Sa.jsxDEV(la,{title:u("trace.title"),description:u("trace.description")},void 0,!1,void 0,this),Sa.jsxDEV(fe,{title:u("trace.sessions"),description:g.data?d.trim()?u("trace.most-recent-filtered",{shown:A(v.length),total:A(S)}):u("trace.most-recent",{count:A(S)}):void 0,actions:Sa.jsxDEV(Fn,{value:d,onChange:f,placeholder:u("trace.filter-placeholder"),width:260},void 0,!1,void 0,this),flush:!0,index:0,stale:g.stale,children:Sa.jsxDEV(_e,{query:g,skeleton:Sa.jsxDEV(pa,{rows:10},void 0,!1,void 0,this),isEmpty:(y)=>y.length===0,empty:Sa.jsxDEV(Je,{title:u("trace.empty-title"),hint:u("trace.empty-hint")},void 0,!1,void 0,this),children:()=>Sa.jsxDEV(Ft,{columns:m,rows:v,rowKey:(y)=>y.file,onRowClick:(y)=>i(y.file),initialSort:{key:"started",dir:"desc"},limit:50,empty:Sa.jsxDEV(Je,{title:u("trace.no-matching-title"),hint:u("trace.no-matching-hint")},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var _a=_(te(),1);function Vb(){return _a.jsxDEV(AI,{children:_a.jsxDEV(cB,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function cB(){_n();let{section:r,setSection:l,range:i,setRange:d,session:f,setSession:g}=QI(),[v,h]=bd.useState(null),m=bd.useCallback(()=>h(null),[]),S=bd.useRef(new Set);S.current.add(r);let y=(b)=>{let L=b===r;switch(b){case"overview":return _a.jsxDEV(E2,{active:L,range:i,onRequestClick:h},void 0,!1,void 0,this);case"requests":return _a.jsxDEV(U2,{active:L,range:i,onRequestClick:h},void 0,!1,void 0,this);case"errors":return _a.jsxDEV(b2,{active:L,range:i,onRequestClick:h},void 0,!1,void 0,this);case"traces":return _a.jsxDEV(GR,{active:L,session:f,onOpenSession:g},void 0,!1,void 0,this);case"models":return _a.jsxDEV(I2,{active:L,range:i},void 0,!1,void 0,this);case"providers":return _a.jsxDEV(P2,{active:L,range:i},void 0,!1,void 0,this);case"costs":return _a.jsxDEV(v2,{active:L,range:i},void 0,!1,void 0,this);case"tools":return _a.jsxDEV(SR,{active:L,range:i},void 0,!1,void 0,this);case"frustration":return _a.jsxDEV(k2,{active:L,range:i},void 0,!1,void 0,this);case"projects":return _a.jsxDEV(q2,{active:L,range:i},void 0,!1,void 0,this);case"tracking":return _a.jsxDEV(LR,{active:L},void 0,!1,void 0,this);case"gain":return _a.jsxDEV(C2,{active:L,range:i},void 0,!1,void 0,this);case"spotlight":return _a.jsxDEV(xR,{active:L,range:i},void 0,!1,void 0,this)}};return _a.jsxDEV(_a.Fragment,{children:[_a.jsxDEV(KI,{section:r,onSectionChange:l,range:i,onRangeChange:d,children:[...S.current].map((b)=>_a.jsxDEV("div",{hidden:b!==r,children:y(b)},b,!1,void 0,this))},void 0,!1,void 0,this),_a.jsxDEV(z2,{id:v,onClose:m},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var $R=_(te(),1),jR=document.getElementById("root");if(!jR)throw Error("missing #root");VR.createRoot(jR).render($R.jsxDEV(Vb,{},void 0,!1,void 0,this));