@linxiraos/pi-stats 1.3.2 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/README.md +2 -0
- package/dist/client/index.css +1 -1
- package/dist/client/index.js +88 -88
- package/dist/types/client/i18n/messages/en.d.ts +72 -0
- package/dist/types/client/i18n/messages/frustration.d.ts +72 -0
- package/dist/types/client/i18n/messages/zh-CN.d.ts +1 -1
- package/dist/types/db.d.ts +34 -1
- package/dist/types/model-identity.d.ts +29 -0
- package/dist/types/model-metrics.d.ts +53 -0
- package/dist/types/model-side.d.ts +6 -0
- package/dist/types/parser.d.ts +2 -1
- package/dist/types/shared-types.d.ts +88 -0
- package/dist/types/types.d.ts +47 -1
- package/dist/types/user-metrics.d.ts +22 -2
- package/package.json +4 -4
- package/src/aggregator.ts +1 -0
- package/src/client/i18n/messages/frustration.ts +77 -0
- package/src/client/routes/FrustrationRoute.tsx +439 -4
- package/src/client/routes/frustration.css +13 -0
- package/src/db.ts +321 -2
- package/src/frustration.ts +8 -33
- package/src/model-identity.ts +61 -0
- package/src/model-metrics.ts +153 -0
- package/src/model-side.ts +77 -0
- package/src/parser.ts +104 -11
- package/src/shared-types.ts +93 -0
- package/src/types.ts +48 -1
- package/src/user-metrics.ts +9 -7
package/dist/client/index.js
CHANGED
|
@@ -1,76 +1,76 @@
|
|
|
1
|
-
var D2=Object.create;var{getPrototypeOf:E2,defineProperty:Jw,getOwnPropertyNames:O2}=Object;var ek=Object.prototype.hasOwnProperty;function q2(l){return this[l]}var B2,N2,Z=(l,i,c)=>{var f=l!=null&&typeof l==="object";if(f){var p=i?B2??=new WeakMap:N2??=new WeakMap,S=p.get(l);if(S)return S}c=l!=null?D2(E2(l)):{};let h=i||!l||!l.__esModule||!ek.call(l,"default")?Jw(c,"default",{value:l,enumerable:!0}):c;if(l&&typeof l==="object"||typeof l==="function"){for(let x of O2(l))if(!ek.call(h,x))Jw(h,x,{get:q2.bind(l,x),enumerable:!0})}if(f)p.set(l,h);return h};var Hs=(l,i)=>()=>(i||l((i={exports:{}}).exports,i),i.exports);var tk=Hs(function(ui){(function(){function l(){if(Y=!1,X){var ne=ui.unstable_now();de=ne;var me=!0;try{e:{P=!1,j&&(j=!1,J(ae),ae=-1),N=!0;var ke=M;try{t:{S(ne);for(D=c(w);D!==null&&!(D.expirationTime>ne&&x());){var $e=D.callback;if(typeof $e==="function"){D.callback=null,M=D.priorityLevel;var xt=$e(D.expirationTime<=ne);if(ne=ui.unstable_now(),typeof xt==="function"){D.callback=xt,S(ne),me=!0;break t}D===c(w)&&f(w),S(ne)}else f(w);D=c(w)}if(D!==null)me=!0;else{var W=c(A);W!==null&&b(h,W.startTime-ne),me=!1}}break e}finally{D=null,M=ke,N=!1}me=void 0}}finally{me?xe():X=!1}}}function i(ne,me){var ke=ne.length;ne.push(me);e:for(;0<ke;){var $e=ke-1>>>1,xt=ne[$e];if(0<p(xt,me))ne[$e]=me,ne[ke]=xt,ke=$e;else break e}}function c(ne){return ne.length===0?null:ne[0]}function f(ne){if(ne.length===0)return null;var me=ne[0],ke=ne.pop();if(ke!==me){ne[0]=ke;e:for(var $e=0,xt=ne.length,W=xt>>>1;$e<W;){var ze=2*($e+1)-1,Ct=ne[ze],it=ze+1,ct=ne[it];if(0>p(Ct,ke))it<xt&&0>p(ct,Ct)?(ne[$e]=ct,ne[it]=ke,$e=it):(ne[$e]=Ct,ne[ze]=ke,$e=ze);else if(it<xt&&0>p(ct,ke))ne[$e]=ct,ne[it]=ke,$e=it;else break e}}return me}function p(ne,me){var ke=ne.sortIndex-me.sortIndex;return ke!==0?ke:ne.id-me.id}function S(ne){for(var me=c(A);me!==null;){if(me.callback===null)f(A);else if(me.startTime<=ne)f(A),me.sortIndex=me.expirationTime,i(w,me);else break;me=c(A)}}function h(ne){if(j=!1,S(ne),!P)if(c(w)!==null)P=!0,X||(X=!0,xe());else{var me=c(A);me!==null&&b(h,me.startTime-ne)}}function x(){return Y?!0:ui.unstable_now()-de<H?!1:!0}function b(ne,me){ae=ce(function(){ne(ui.unstable_now())},me)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),ui.unstable_now=void 0,typeof performance==="object"&&typeof performance.now==="function"){var L=performance;ui.unstable_now=function(){return L.now()}}else{var g=Date,C=g.now();ui.unstable_now=function(){return g.now()-C}}var w=[],A=[],k=1,D=null,M=3,N=!1,P=!1,j=!1,Y=!1,ce=typeof setTimeout==="function"?setTimeout:null,J=typeof clearTimeout==="function"?clearTimeout:null,te=typeof setImmediate<"u"?setImmediate:null,X=!1,ae=-1,H=5,de=-1;if(typeof te==="function")var xe=function(){te(l)};else if(typeof MessageChannel<"u"){var Ce=new MessageChannel,Ne=Ce.port2;Ce.port1.onmessage=l,xe=function(){Ne.postMessage(null)}}else xe=function(){ce(l,0)};ui.unstable_IdlePriority=5,ui.unstable_ImmediatePriority=1,ui.unstable_LowPriority=4,ui.unstable_NormalPriority=3,ui.unstable_Profiling=null,ui.unstable_UserBlockingPriority=2,ui.unstable_cancelCallback=function(ne){ne.callback=null},ui.unstable_forceFrameRate=function(ne){0>ne||125<ne?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):H=0<ne?Math.floor(1000/ne):5},ui.unstable_getCurrentPriorityLevel=function(){return M},ui.unstable_next=function(ne){switch(M){case 1:case 2:case 3:var me=3;break;default:me=M}var ke=M;M=me;try{return ne()}finally{M=ke}},ui.unstable_requestPaint=function(){Y=!0},ui.unstable_runWithPriority=function(ne,me){switch(ne){case 1:case 2:case 3:case 4:case 5:break;default:ne=3}var ke=M;M=ne;try{return me()}finally{M=ke}},ui.unstable_scheduleCallback=function(ne,me,ke){var $e=ui.unstable_now();switch(typeof ke==="object"&&ke!==null?(ke=ke.delay,ke=typeof ke==="number"&&0<ke?$e+ke:$e):ke=$e,ne){case 1:var xt=-1;break;case 2:xt=250;break;case 5:xt=1073741823;break;case 4:xt=1e4;break;default:xt=5000}return xt=ke+xt,ne={id:k++,callback:me,priorityLevel:ne,startTime:ke,expirationTime:xt,sortIndex:-1},ke>$e?(ne.sortIndex=ke,i(A,ne),c(w)===null&&ne===c(A)&&(j?(J(ae),ae=-1):j=!0,b(h,ke-$e))):(ne.sortIndex=xt,i(w,ne),P||N||(P=!0,X||(X=!0,xe()))),ne},ui.unstable_shouldYield=x,ui.unstable_wrapCallback=function(ne){var me=M;return function(){var ke=M;M=me;try{return ne.apply(this,arguments)}finally{M=ke}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var gt=Hs(function(z2,cm){(function(){function l(v,B){Object.defineProperty(f.prototype,v,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",B[0],B[1])}})}function i(v){if(v===null||typeof v!=="object")return null;return v=ve&&v[ve]||v["@@iterator"],typeof v==="function"?v:null}function c(v,B){v=(v=v.constructor)&&(v.displayName||v.name)||"ReactClass";var le=v+"."+B;G[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.",B,v),G[le]=!0)}function f(v,B,le){this.props=v,this.context=B,this.refs=Ue,this.updater=le||_e}function p(){}function S(v,B,le){this.props=v,this.context=B,this.refs=Ue,this.updater=le||_e}function h(){}function x(v){return""+v}function b(v){try{x(v);var B=!1}catch(we){B=!0}if(B){B=console;var le=B.error,fe=typeof Symbol==="function"&&Symbol.toStringTag&&v[Symbol.toStringTag]||v.constructor.name||"Object";return le.call(B,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",fe),x(v)}}function L(v){if(v==null)return null;if(typeof v==="function")return v.$$typeof===ft?null:v.displayName||v.name||null;if(typeof v==="string")return v;switch(v){case xt:return"Fragment";case ze:return"Profiler";case W:return"StrictMode";case Me:return"Suspense";case ye:return"SuspenseList";case oe:return"Activity"}if(typeof v==="object")switch(typeof v.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),v.$$typeof){case $e:return"Portal";case it:return v.displayName||"Context";case Ct:return(v._context.displayName||"Context")+".Consumer";case ct:var B=v.render;return v=v.displayName,v||(v=B.displayName||B.name||"",v=v!==""?"ForwardRef("+v+")":"ForwardRef"),v;case V:return B=v.displayName||null,B!==null?B:L(v.type)||"Memo";case Re:B=v._payload,v=v._init;try{return L(v(B))}catch(le){}}return null}function g(v){if(v===xt)return"<>";if(typeof v==="object"&&v!==null&&v.$$typeof===Re)return"<...>";try{var B=L(v);return B?"<"+B+">":"<...>"}catch(le){return"<...>"}}function C(){var v=Oe.A;return v===null?null:v.getOwner()}function w(){return Error("react-stack-top-frame")}function A(v){if(un.call(v,"key")){var B=Object.getOwnPropertyDescriptor(v,"key").get;if(B&&B.isReactWarning)return!1}return v.key!==void 0}function k(v,B){function le(){Yd||(Yd=!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)",B))}le.isReactWarning=!0,Object.defineProperty(v,"key",{get:le,configurable:!0})}function D(){var v=L(this.type);return Zl[v]||(Zl[v]=!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.")),v=this.props.ref,v!==void 0?v:null}function M(v,B,le,fe,we,Ke){var Ze=le.ref;return v={$$typeof:ke,type:v,key:B,props:le,_owner:fe},(Ze!==void 0?Ze:null)!==null?Object.defineProperty(v,"ref",{enumerable:!1,get:D}):Object.defineProperty(v,"ref",{enumerable:!1,value:null}),v._store={},Object.defineProperty(v._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(v,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(v,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:we}),Object.defineProperty(v,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Ke}),Object.freeze&&(Object.freeze(v.props),Object.freeze(v)),v}function N(v,B){return B=M(v.type,B,v.props,v._owner,v._debugStack,v._debugTask),v._store&&(B._store.validated=v._store.validated),B}function P(v){j(v)?v._store&&(v._store.validated=1):typeof v==="object"&&v!==null&&v.$$typeof===Re&&(v._payload.status==="fulfilled"?j(v._payload.value)&&v._payload.value._store&&(v._payload.value._store.validated=1):v._store&&(v._store.validated=1))}function j(v){return typeof v==="object"&&v!==null&&v.$$typeof===ke}function Y(v){var B={"=":"=0",":":"=2"};return"$"+v.replace(/[=:]/g,function(le){return B[le]})}function ce(v,B){return typeof v==="object"&&v!==null&&v.key!=null?(b(v.key),Y(""+v.key)):B.toString(36)}function J(v){switch(v.status){case"fulfilled":return v.value;case"rejected":throw v.reason;default:switch(typeof v.status==="string"?v.then(h,h):(v.status="pending",v.then(function(B){v.status==="pending"&&(v.status="fulfilled",v.value=B)},function(B){v.status==="pending"&&(v.status="rejected",v.reason=B)})),v.status){case"fulfilled":return v.value;case"rejected":throw v.reason}}throw v}function te(v,B,le,fe,we){var Ke=typeof v;if(Ke==="undefined"||Ke==="boolean")v=null;var Ze=!1;if(v===null)Ze=!0;else switch(Ke){case"bigint":case"string":case"number":Ze=!0;break;case"object":switch(v.$$typeof){case ke:case $e:Ze=!0;break;case Re:return Ze=v._init,te(Ze(v._payload),B,le,fe,we)}}if(Ze){Ze=v,we=we(Ze);var Tt=fe===""?"."+ce(Ze,0):fe;return et(we)?(le="",Tt!=null&&(le=Tt.replace(lu,"$&/")+"/"),te(we,B,le,"",function(Za){return Za})):we!=null&&(j(we)&&(we.key!=null&&(Ze&&Ze.key===we.key||b(we.key)),le=N(we,le+(we.key==null||Ze&&Ze.key===we.key?"":(""+we.key).replace(lu,"$&/")+"/")+Tt),fe!==""&&Ze!=null&&j(Ze)&&Ze.key==null&&Ze._store&&!Ze._store.validated&&(le._store.validated=2),we=le),B.push(we)),1}if(Ze=0,Tt=fe===""?".":fe+":",et(v))for(var qe=0;qe<v.length;qe++)fe=v[qe],Ke=Tt+ce(fe,qe),Ze+=te(fe,B,le,Ke,we);else if(qe=i(v),typeof qe==="function")for(qe===v.entries&&(ru||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ru=!0),v=qe.call(v),qe=0;!(fe=v.next()).done;)fe=fe.value,Ke=Tt+ce(fe,qe++),Ze+=te(fe,B,le,Ke,we);else if(Ke==="object"){if(typeof v.then==="function")return te(J(v),B,le,fe,we);throw B=String(v),Error("Objects are not valid as a React child (found: "+(B==="[object Object]"?"object with keys {"+Object.keys(v).join(", ")+"}":B)+"). If you meant to render a collection of children, use an array instead.")}return Ze}function X(v,B,le){if(v==null)return v;var fe=[],we=0;return te(v,fe,"","",function(Ke){return B.call(le,Ke,we++)}),fe}function ae(v){if(v._status===-1){var B=v._ioInfo;B!=null&&(B.start=B.end=performance.now()),B=v._result;var le=B();if(le.then(function(we){if(v._status===0||v._status===-1){v._status=1,v._result=we;var Ke=v._ioInfo;Ke!=null&&(Ke.end=performance.now()),le.status===void 0&&(le.status="fulfilled",le.value=we)}},function(we){if(v._status===0||v._status===-1){v._status=2,v._result=we;var Ke=v._ioInfo;Ke!=null&&(Ke.end=performance.now()),le.status===void 0&&(le.status="rejected",le.reason=we)}}),B=v._ioInfo,B!=null){B.value=le;var fe=le.displayName;typeof fe==="string"&&(B.name=fe)}v._status===-1&&(v._status=0,v._result=le)}if(v._status===1)return B=v._result,B===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
1
|
+
var OM=Object.create;var{getPrototypeOf:qM,defineProperty:ek,getOwnPropertyNames:NM}=Object;var tk=Object.prototype.hasOwnProperty;function BM(l){return this[l]}var zM,UM,Z=(l,i,c)=>{var f=l!=null&&typeof l==="object";if(f){var p=i?zM??=new WeakMap:UM??=new WeakMap,L=p.get(l);if(L)return L}c=l!=null?OM(qM(l)):{};let g=i||!l||!l.__esModule||!tk.call(l,"default")?ek(c,"default",{value:l,enumerable:!0}):c;if(l&&typeof l==="object"||typeof l==="function"){for(let S of NM(l))if(!tk.call(g,S))ek(g,S,{get:BM.bind(l,S),enumerable:!0})}if(f)p.set(l,g);return g};var Fs=(l,i)=>()=>(i||l((i={exports:{}}).exports,i),i.exports);var ak=Fs(function(di){(function(){function l(){if(Q=!1,Y){var ne=di.unstable_now();de=ne;var me=!0;try{e:{_=!1,X&&(X=!1,J(ae),ae=-1),U=!0;var ke=M;try{t:{L(ne);for(D=c(w);D!==null&&!(D.expirationTime>ne&&S());){var $e=D.callback;if(typeof $e==="function"){D.callback=null,M=D.priorityLevel;var Lt=$e(D.expirationTime<=ne);if(ne=di.unstable_now(),typeof Lt==="function"){D.callback=Lt,L(ne),me=!0;break t}D===c(w)&&f(w),L(ne)}else f(w);D=c(w)}if(D!==null)me=!0;else{var W=c(A);W!==null&&v(g,W.startTime-ne),me=!1}}break e}finally{D=null,M=ke,U=!1}me=void 0}}finally{me?xe():Y=!1}}}function i(ne,me){var ke=ne.length;ne.push(me);e:for(;0<ke;){var $e=ke-1>>>1,Lt=ne[$e];if(0<p(Lt,me))ne[$e]=me,ne[ke]=Lt,ke=$e;else break e}}function c(ne){return ne.length===0?null:ne[0]}function f(ne){if(ne.length===0)return null;var me=ne[0],ke=ne.pop();if(ke!==me){ne[0]=ke;e:for(var $e=0,Lt=ne.length,W=Lt>>>1;$e<W;){var ze=2*($e+1)-1,kt=ne[ze],it=ze+1,ct=ne[it];if(0>p(kt,ke))it<Lt&&0>p(ct,kt)?(ne[$e]=ct,ne[it]=ke,$e=it):(ne[$e]=kt,ne[ze]=ke,$e=ze);else if(it<Lt&&0>p(ct,ke))ne[$e]=ct,ne[it]=ke,$e=it;else break e}}return me}function p(ne,me){var ke=ne.sortIndex-me.sortIndex;return ke!==0?ke:ne.id-me.id}function L(ne){for(var me=c(A);me!==null;){if(me.callback===null)f(A);else if(me.startTime<=ne)f(A),me.sortIndex=me.expirationTime,i(w,me);else break;me=c(A)}}function g(ne){if(X=!1,L(ne),!_)if(c(w)!==null)_=!0,Y||(Y=!0,xe());else{var me=c(A);me!==null&&v(g,me.startTime-ne)}}function S(){return Q?!0:di.unstable_now()-de<F?!1:!0}function v(ne,me){ae=ce(function(){ne(di.unstable_now())},me)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),di.unstable_now=void 0,typeof performance==="object"&&typeof performance.now==="function"){var x=performance;di.unstable_now=function(){return x.now()}}else{var h=Date,C=h.now();di.unstable_now=function(){return h.now()-C}}var w=[],A=[],k=1,D=null,M=3,U=!1,_=!1,X=!1,Q=!1,ce=typeof setTimeout==="function"?setTimeout:null,J=typeof clearTimeout==="function"?clearTimeout:null,te=typeof setImmediate<"u"?setImmediate:null,Y=!1,ae=-1,F=5,de=-1;if(typeof te==="function")var xe=function(){te(l)};else if(typeof MessageChannel<"u"){var Ce=new MessageChannel,Be=Ce.port2;Ce.port1.onmessage=l,xe=function(){Be.postMessage(null)}}else xe=function(){ce(l,0)};di.unstable_IdlePriority=5,di.unstable_ImmediatePriority=1,di.unstable_LowPriority=4,di.unstable_NormalPriority=3,di.unstable_Profiling=null,di.unstable_UserBlockingPriority=2,di.unstable_cancelCallback=function(ne){ne.callback=null},di.unstable_forceFrameRate=function(ne){0>ne||125<ne?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):F=0<ne?Math.floor(1000/ne):5},di.unstable_getCurrentPriorityLevel=function(){return M},di.unstable_next=function(ne){switch(M){case 1:case 2:case 3:var me=3;break;default:me=M}var ke=M;M=me;try{return ne()}finally{M=ke}},di.unstable_requestPaint=function(){Q=!0},di.unstable_runWithPriority=function(ne,me){switch(ne){case 1:case 2:case 3:case 4:case 5:break;default:ne=3}var ke=M;M=ne;try{return me()}finally{M=ke}},di.unstable_scheduleCallback=function(ne,me,ke){var $e=di.unstable_now();switch(typeof ke==="object"&&ke!==null?(ke=ke.delay,ke=typeof ke==="number"&&0<ke?$e+ke:$e):ke=$e,ne){case 1:var Lt=-1;break;case 2:Lt=250;break;case 5:Lt=1073741823;break;case 4:Lt=1e4;break;default:Lt=5000}return Lt=ke+Lt,ne={id:k++,callback:me,priorityLevel:ne,startTime:ke,expirationTime:Lt,sortIndex:-1},ke>$e?(ne.sortIndex=ke,i(A,ne),c(w)===null&&ne===c(A)&&(X?(J(ae),ae=-1):X=!0,v(g,ke-$e))):(ne.sortIndex=Lt,i(w,ne),_||U||(_=!0,Y||(Y=!0,xe()))),ne},di.unstable_shouldYield=S,di.unstable_wrapCallback=function(ne){var me=M;return function(){var ke=M;M=me;try{return ne.apply(this,arguments)}finally{M=ke}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var gt=Fs(function(PM,dm){(function(){function l(b,z){Object.defineProperty(f.prototype,b,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",z[0],z[1])}})}function i(b){if(b===null||typeof b!=="object")return null;return b=ve&&b[ve]||b["@@iterator"],typeof b==="function"?b:null}function c(b,z){b=(b=b.constructor)&&(b.displayName||b.name)||"ReactClass";var le=b+"."+z;V[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.",z,b),V[le]=!0)}function f(b,z,le){this.props=b,this.context=z,this.refs=Pe,this.updater=le||Fe}function p(){}function L(b,z,le){this.props=b,this.context=z,this.refs=Pe,this.updater=le||Fe}function g(){}function S(b){return""+b}function v(b){try{S(b);var z=!1}catch(we){z=!0}if(z){z=console;var le=z.error,fe=typeof Symbol==="function"&&Symbol.toStringTag&&b[Symbol.toStringTag]||b.constructor.name||"Object";return le.call(z,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",fe),S(b)}}function x(b){if(b==null)return null;if(typeof b==="function")return b.$$typeof===ft?null:b.displayName||b.name||null;if(typeof b==="string")return b;switch(b){case Lt:return"Fragment";case ze:return"Profiler";case W:return"StrictMode";case Me:return"Suspense";case ye:return"SuspenseList";case oe:return"Activity"}if(typeof b==="object")switch(typeof b.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),b.$$typeof){case $e:return"Portal";case it:return b.displayName||"Context";case kt:return(b._context.displayName||"Context")+".Consumer";case ct:var z=b.render;return b=b.displayName,b||(b=z.displayName||z.name||"",b=b!==""?"ForwardRef("+b+")":"ForwardRef"),b;case j:return z=b.displayName||null,z!==null?z:x(b.type)||"Memo";case Re:z=b._payload,b=b._init;try{return x(b(z))}catch(le){}}return null}function h(b){if(b===Lt)return"<>";if(typeof b==="object"&&b!==null&&b.$$typeof===Re)return"<...>";try{var z=x(b);return z?"<"+z+">":"<...>"}catch(le){return"<...>"}}function C(){var b=Oe.A;return b===null?null:b.getOwner()}function w(){return Error("react-stack-top-frame")}function A(b){if(cn.call(b,"key")){var z=Object.getOwnPropertyDescriptor(b,"key").get;if(z&&z.isReactWarning)return!1}return b.key!==void 0}function k(b,z){function le(){$d||($d=!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)",z))}le.isReactWarning=!0,Object.defineProperty(b,"key",{get:le,configurable:!0})}function D(){var b=x(this.type);return Wl[b]||(Wl[b]=!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.")),b=this.props.ref,b!==void 0?b:null}function M(b,z,le,fe,we,Ke){var Ze=le.ref;return b={$$typeof:ke,type:b,key:z,props:le,_owner:fe},(Ze!==void 0?Ze:null)!==null?Object.defineProperty(b,"ref",{enumerable:!1,get:D}):Object.defineProperty(b,"ref",{enumerable:!1,value:null}),b._store={},Object.defineProperty(b._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(b,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(b,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:we}),Object.defineProperty(b,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Ke}),Object.freeze&&(Object.freeze(b.props),Object.freeze(b)),b}function U(b,z){return z=M(b.type,z,b.props,b._owner,b._debugStack,b._debugTask),b._store&&(z._store.validated=b._store.validated),z}function _(b){X(b)?b._store&&(b._store.validated=1):typeof b==="object"&&b!==null&&b.$$typeof===Re&&(b._payload.status==="fulfilled"?X(b._payload.value)&&b._payload.value._store&&(b._payload.value._store.validated=1):b._store&&(b._store.validated=1))}function X(b){return typeof b==="object"&&b!==null&&b.$$typeof===ke}function Q(b){var z={"=":"=0",":":"=2"};return"$"+b.replace(/[=:]/g,function(le){return z[le]})}function ce(b,z){return typeof b==="object"&&b!==null&&b.key!=null?(v(b.key),Q(""+b.key)):z.toString(36)}function J(b){switch(b.status){case"fulfilled":return b.value;case"rejected":throw b.reason;default:switch(typeof b.status==="string"?b.then(g,g):(b.status="pending",b.then(function(z){b.status==="pending"&&(b.status="fulfilled",b.value=z)},function(z){b.status==="pending"&&(b.status="rejected",b.reason=z)})),b.status){case"fulfilled":return b.value;case"rejected":throw b.reason}}throw b}function te(b,z,le,fe,we){var Ke=typeof b;if(Ke==="undefined"||Ke==="boolean")b=null;var Ze=!1;if(b===null)Ze=!0;else switch(Ke){case"bigint":case"string":case"number":Ze=!0;break;case"object":switch(b.$$typeof){case ke:case $e:Ze=!0;break;case Re:return Ze=b._init,te(Ze(b._payload),z,le,fe,we)}}if(Ze){Ze=b,we=we(Ze);var It=fe===""?"."+ce(Ze,0):fe;return et(we)?(le="",It!=null&&(le=It.replace(iu,"$&/")+"/"),te(we,z,le,"",function(Wa){return Wa})):we!=null&&(X(we)&&(we.key!=null&&(Ze&&Ze.key===we.key||v(we.key)),le=U(we,le+(we.key==null||Ze&&Ze.key===we.key?"":(""+we.key).replace(iu,"$&/")+"/")+It),fe!==""&&Ze!=null&&X(Ze)&&Ze.key==null&&Ze._store&&!Ze._store.validated&&(le._store.validated=2),we=le),z.push(we)),1}if(Ze=0,It=fe===""?".":fe+":",et(b))for(var qe=0;qe<b.length;qe++)fe=b[qe],Ke=It+ce(fe,qe),Ze+=te(fe,z,le,Ke,we);else if(qe=i(b),typeof qe==="function")for(qe===b.entries&&(uu||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),uu=!0),b=qe.call(b),qe=0;!(fe=b.next()).done;)fe=fe.value,Ke=It+ce(fe,qe++),Ze+=te(fe,z,le,Ke,we);else if(Ke==="object"){if(typeof b.then==="function")return te(J(b),z,le,fe,we);throw z=String(b),Error("Objects are not valid as a React child (found: "+(z==="[object Object]"?"object with keys {"+Object.keys(b).join(", ")+"}":z)+"). If you meant to render a collection of children, use an array instead.")}return Ze}function Y(b,z,le){if(b==null)return b;var fe=[],we=0;return te(b,fe,"","",function(Ke){return z.call(le,Ke,we++)}),fe}function ae(b){if(b._status===-1){var z=b._ioInfo;z!=null&&(z.start=z.end=performance.now()),z=b._result;var le=z();if(le.then(function(we){if(b._status===0||b._status===-1){b._status=1,b._result=we;var Ke=b._ioInfo;Ke!=null&&(Ke.end=performance.now()),le.status===void 0&&(le.status="fulfilled",le.value=we)}},function(we){if(b._status===0||b._status===-1){b._status=2,b._result=we;var Ke=b._ioInfo;Ke!=null&&(Ke.end=performance.now()),le.status===void 0&&(le.status="rejected",le.reason=we)}}),z=b._ioInfo,z!=null){z.value=le;var fe=le.displayName;typeof fe==="string"&&(z.name=fe)}b._status===-1&&(b._status=0,b._result=le)}if(b._status===1)return z=b._result,z===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'))
|
|
5
5
|
|
|
6
|
-
Did you accidentally put curly braces around the import?`,
|
|
6
|
+
Did you accidentally put curly braces around the import?`,z),"default"in z||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
7
7
|
|
|
8
8
|
Your code should look like:
|
|
9
|
-
const MyComponent = lazy(() => import('./MyComponent'))`,
|
|
9
|
+
const MyComponent = lazy(() => import('./MyComponent'))`,z),z.default;throw b._result}function F(){var b=Oe.H;return b===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:
|
|
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.`),v}function de(){Oe.asyncTransitions--}function xe(v){if(Jl===null)try{var B=("require"+Math.random()).slice(0,7);Jl=(cm&&cm[B]).call(cm,"timers").setImmediate}catch(le){Jl=function(fe){$d===!1&&($d=!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 we=new MessageChannel;we.port1.onmessage=fe,we.port2.postMessage(void 0)}}return Jl(v)}function Ce(v){return 1<v.length&&typeof AggregateError==="function"?AggregateError(v):v[0]}function Ne(v,B){B!==es-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. "),es=B}function ne(v,B,le){var fe=Oe.actQueue;if(fe!==null)if(fe.length!==0)try{me(fe),xe(function(){return ne(v,B,le)});return}catch(we){Oe.thrownErrors.push(we)}else Oe.actQueue=null;0<Oe.thrownErrors.length?(fe=Ce(Oe.thrownErrors),Oe.thrownErrors.length=0,le(fe)):B(v)}function me(v){if(!as){as=!0;var B=0;try{for(;B<v.length;B++){var le=v[B];do{Oe.didUsePromise=!1;var fe=le(!1);if(fe!==null){if(Oe.didUsePromise){v[B]=le,v.splice(0,B);return}le=fe}else break}while(1)}v.length=0}catch(we){v.splice(0,B+1),Oe.thrownErrors.push(we)}finally{as=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var ke=Symbol.for("react.transitional.element"),$e=Symbol.for("react.portal"),xt=Symbol.for("react.fragment"),W=Symbol.for("react.strict_mode"),ze=Symbol.for("react.profiler"),Ct=Symbol.for("react.consumer"),it=Symbol.for("react.context"),ct=Symbol.for("react.forward_ref"),Me=Symbol.for("react.suspense"),ye=Symbol.for("react.suspense_list"),V=Symbol.for("react.memo"),Re=Symbol.for("react.lazy"),oe=Symbol.for("react.activity"),ve=Symbol.iterator,G={},_e={isMounted:function(){return!1},enqueueForceUpdate:function(v){c(v,"forceUpdate")},enqueueReplaceState:function(v){c(v,"replaceState")},enqueueSetState:function(v){c(v,"setState")}},Qe=Object.assign,Ue={};Object.freeze(Ue),f.prototype.isReactComponent={},f.prototype.setState=function(v,B){if(typeof v!=="object"&&typeof v!=="function"&&v!=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,v,B,"setState")},f.prototype.forceUpdate=function(v){this.updater.enqueueForceUpdate(this,v,"forceUpdate")};var dt={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(Wr in dt)dt.hasOwnProperty(Wr)&&l(Wr,dt[Wr]);p.prototype=f.prototype,dt=S.prototype=new p,dt.constructor=S,Qe(dt,f.prototype),dt.isPureReactComponent=!0;var et=Array.isArray,ft=Symbol.for("react.client.reference"),Oe={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},un=Object.prototype.hasOwnProperty,Yt=console.createTask?console.createTask:function(){return null};dt={react_stack_bottom_frame:function(v){return v()}};var Yd,Dn,Zl={},Wl=dt.react_stack_bottom_frame.bind(dt,w)(),th=Yt(g(w)),ru=!1,lu=/\/+/g,Zr=typeof reportError==="function"?reportError:function(v){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var B=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof v==="object"&&v!==null&&typeof v.message==="string"?String(v.message):String(v),error:v});if(!window.dispatchEvent(B))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",v);return}console.error(v)},$d=!1,Jl=null,es=0,ts=!1,as=!1,Ri=typeof queueMicrotask==="function"?function(v){queueMicrotask(function(){return queueMicrotask(v)})}:xe;dt=Object.freeze({__proto__:null,c:function(v){return H().useMemoCache(v)}});var Wr={map:X,forEach:function(v,B,le){X(v,function(){B.apply(this,arguments)},le)},count:function(v){var B=0;return X(v,function(){B++}),B},toArray:function(v){return X(v,function(B){return B})||[]},only:function(v){if(!j(v))throw Error("React.Children.only expected to receive a single React element child.");return v}};z2.Activity=oe,z2.Children=Wr,z2.Component=f,z2.Fragment=xt,z2.Profiler=ze,z2.PureComponent=S,z2.StrictMode=W,z2.Suspense=Me,z2.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Oe,z2.__COMPILER_RUNTIME=dt,z2.act=function(v){var B=Oe.actQueue,le=es;es++;var fe=Oe.actQueue=B!==null?B:[],we=!1;try{var Ke=v()}catch(qe){Oe.thrownErrors.push(qe)}if(0<Oe.thrownErrors.length)throw Ne(B,le),v=Ce(Oe.thrownErrors),Oe.thrownErrors.length=0,v;if(Ke!==null&&typeof Ke==="object"&&typeof Ke.then==="function"){var Ze=Ke;return Ri(function(){we||ts||(ts=!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(qe,Za){we=!0,Ze.then(function(Co){if(Ne(B,le),le===0){try{me(fe),xe(function(){return ne(Co,qe,Za)})}catch(Ai){Oe.thrownErrors.push(Ai)}if(0<Oe.thrownErrors.length){var Jr=Ce(Oe.thrownErrors);Oe.thrownErrors.length=0,Za(Jr)}}else qe(Co)},function(Co){Ne(B,le),0<Oe.thrownErrors.length?(Co=Ce(Oe.thrownErrors),Oe.thrownErrors.length=0,Za(Co)):Za(Co)})}}}var Tt=Ke;if(Ne(B,le),le===0&&(me(fe),fe.length!==0&&Ri(function(){we||ts||(ts=!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(() => ...)"))}),Oe.actQueue=null),0<Oe.thrownErrors.length)throw v=Ce(Oe.thrownErrors),Oe.thrownErrors.length=0,v;return{then:function(qe,Za){we=!0,le===0?(Oe.actQueue=fe,xe(function(){return ne(Tt,qe,Za)})):qe(Tt)}}},z2.cache=function(v){return function(){return v.apply(null,arguments)}},z2.cacheSignal=function(){return null},z2.captureOwnerStack=function(){var v=Oe.getCurrentStack;return v===null?null:v()},z2.cloneElement=function(v,B,le){if(v===null||v===void 0)throw Error("The argument must be a React element, but you passed "+v+".");var fe=Qe({},v.props),{key:we,_owner:Ke}=v;if(B!=null){var Ze;e:{if(un.call(B,"ref")&&(Ze=Object.getOwnPropertyDescriptor(B,"ref").get)&&Ze.isReactWarning){Ze=!1;break e}Ze=B.ref!==void 0}Ze&&(Ke=C()),A(B)&&(b(B.key),we=""+B.key);for(Tt in B)!un.call(B,Tt)||Tt==="key"||Tt==="__self"||Tt==="__source"||Tt==="ref"&&B.ref===void 0||(fe[Tt]=B[Tt])}var Tt=arguments.length-2;if(Tt===1)fe.children=le;else if(1<Tt){Ze=Array(Tt);for(var qe=0;qe<Tt;qe++)Ze[qe]=arguments[qe+2];fe.children=Ze}fe=M(v.type,we,fe,Ke,v._debugStack,v._debugTask);for(we=2;we<arguments.length;we++)P(arguments[we]);return fe},z2.createContext=function(v){return v={$$typeof:it,_currentValue:v,_currentValue2:v,_threadCount:0,Provider:null,Consumer:null},v.Provider=v,v.Consumer={$$typeof:Ct,_context:v},v._currentRenderer=null,v._currentRenderer2=null,v},z2.createElement=function(v,B,le){for(var fe=2;fe<arguments.length;fe++)P(arguments[fe]);fe={};var we=null;if(B!=null)for(qe in Dn||!("__self"in B)||"key"in B||(Dn=!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")),A(B)&&(b(B.key),we=""+B.key),B)un.call(B,qe)&&qe!=="key"&&qe!=="__self"&&qe!=="__source"&&(fe[qe]=B[qe]);var Ke=arguments.length-2;if(Ke===1)fe.children=le;else if(1<Ke){for(var Ze=Array(Ke),Tt=0;Tt<Ke;Tt++)Ze[Tt]=arguments[Tt+2];Object.freeze&&Object.freeze(Ze),fe.children=Ze}if(v&&v.defaultProps)for(qe in Ke=v.defaultProps,Ke)fe[qe]===void 0&&(fe[qe]=Ke[qe]);we&&k(fe,typeof v==="function"?v.displayName||v.name||"Unknown":v);var qe=1e4>Oe.recentlyCreatedOwnerStacks++;return M(v,we,fe,C(),qe?Error("react-stack-top-frame"):Wl,qe?Yt(g(v)):th)},z2.createRef=function(){var v={current:null};return Object.seal(v),v},z2.forwardRef=function(v){v!=null&&v.$$typeof===V?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof v!=="function"?console.error("forwardRef requires a render function but was given %s.",v===null?"null":typeof v):v.length!==0&&v.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",v.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),v!=null&&v.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var B={$$typeof:ct,render:v},le;return Object.defineProperty(B,"displayName",{enumerable:!1,configurable:!0,get:function(){return le},set:function(fe){le=fe,v.name||v.displayName||(Object.defineProperty(v,"name",{value:fe}),v.displayName=fe)}}),B},z2.isValidElement=j,z2.lazy=function(v){v={_status:-1,_result:v};var B={$$typeof:Re,_payload:v,_init:ae},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 v._ioInfo=le,B._debugInfo=[{awaited:le}],B},z2.memo=function(v,B){v==null&&console.error("memo: The first argument must be a component. Instead received: %s",v===null?"null":typeof v),B={$$typeof:V,type:v,compare:B===void 0?null:B};var le;return Object.defineProperty(B,"displayName",{enumerable:!1,configurable:!0,get:function(){return le},set:function(fe){le=fe,v.name||v.displayName||(Object.defineProperty(v,"name",{value:fe}),v.displayName=fe)}}),B},z2.startTransition=function(v){var B=Oe.T,le={};le._updatedFibers=new Set,Oe.T=le;try{var fe=v(),we=Oe.S;we!==null&&we(le,fe),typeof fe==="object"&&fe!==null&&typeof fe.then==="function"&&(Oe.asyncTransitions++,fe.then(de,de),fe.then(h,Zr))}catch(Ke){Zr(Ke)}finally{B===null&&le._updatedFibers&&(v=le._updatedFibers.size,le._updatedFibers.clear(),10<v&&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.")),B!==null&&le.types!==null&&(B.types!==null&&B.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."),B.types=le.types),Oe.T=B}},z2.unstable_useCacheRefresh=function(){return H().useCacheRefresh()},z2.use=function(v){return H().use(v)},z2.useActionState=function(v,B,le){return H().useActionState(v,B,le)},z2.useCallback=function(v,B){return H().useCallback(v,B)},z2.useContext=function(v){var B=H();return v.$$typeof===Ct&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),B.useContext(v)},z2.useDebugValue=function(v,B){return H().useDebugValue(v,B)},z2.useDeferredValue=function(v,B){return H().useDeferredValue(v,B)},z2.useEffect=function(v,B){return v==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),H().useEffect(v,B)},z2.useEffectEvent=function(v){return H().useEffectEvent(v)},z2.useId=function(){return H().useId()},z2.useImperativeHandle=function(v,B,le){return H().useImperativeHandle(v,B,le)},z2.useInsertionEffect=function(v,B){return v==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),H().useInsertionEffect(v,B)},z2.useLayoutEffect=function(v,B){return v==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),H().useLayoutEffect(v,B)},z2.useMemo=function(v,B){return H().useMemo(v,B)},z2.useOptimistic=function(v,B){return H().useOptimistic(v,B)},z2.useReducer=function(v,B,le){return H().useReducer(v,B,le)},z2.useRef=function(v){return H().useRef(v)},z2.useState=function(v){return H().useState(v)},z2.useSyncExternalStore=function(v,B,le){return H().useSyncExternalStore(v,B,le)},z2.useTransition=function(){return H().useTransition()},z2.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var ak=Hs(function(U2){var Bv=Z(gt());(function(){function l(){}function i(g){return""+g}function c(g,C,w){var A=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{i(A);var k=!1}catch(D){k=!0}return k&&(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&&A[Symbol.toStringTag]||A.constructor.name||"Object"),i(A)),{$$typeof:b,key:A==null?null:""+A,children:g,containerInfo:C,implementation:w}}function f(g,C){if(g==="font")return"";if(typeof C==="string")return C==="use-credentials"?C:""}function p(g){return g===null?"`null`":g===void 0?"`undefined`":g===""?"an empty string":'something with type "'+typeof g+'"'}function S(g){return g===null?"`null`":g===void 0?"`undefined`":g===""?"an empty string":typeof g==="string"?JSON.stringify(g):typeof g==="number"?"`"+g+"`":'something with type "'+typeof g+'"'}function h(){var g=L.H;return g===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.`),b}function de(){Oe.asyncTransitions--}function xe(b){if(es===null)try{var z=("require"+Math.random()).slice(0,7);es=(dm&&dm[z]).call(dm,"timers").setImmediate}catch(le){es=function(fe){Qd===!1&&(Qd=!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 we=new MessageChannel;we.port1.onmessage=fe,we.port2.postMessage(void 0)}}return es(b)}function Ce(b){return 1<b.length&&typeof AggregateError==="function"?AggregateError(b):b[0]}function Be(b,z){z!==ts-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. "),ts=z}function ne(b,z,le){var fe=Oe.actQueue;if(fe!==null)if(fe.length!==0)try{me(fe),xe(function(){return ne(b,z,le)});return}catch(we){Oe.thrownErrors.push(we)}else Oe.actQueue=null;0<Oe.thrownErrors.length?(fe=Ce(Oe.thrownErrors),Oe.thrownErrors.length=0,le(fe)):z(b)}function me(b){if(!os){os=!0;var z=0;try{for(;z<b.length;z++){var le=b[z];do{Oe.didUsePromise=!1;var fe=le(!1);if(fe!==null){if(Oe.didUsePromise){b[z]=le,b.splice(0,z);return}le=fe}else break}while(1)}b.length=0}catch(we){b.splice(0,z+1),Oe.thrownErrors.push(we)}finally{os=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var ke=Symbol.for("react.transitional.element"),$e=Symbol.for("react.portal"),Lt=Symbol.for("react.fragment"),W=Symbol.for("react.strict_mode"),ze=Symbol.for("react.profiler"),kt=Symbol.for("react.consumer"),it=Symbol.for("react.context"),ct=Symbol.for("react.forward_ref"),Me=Symbol.for("react.suspense"),ye=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),Re=Symbol.for("react.lazy"),oe=Symbol.for("react.activity"),ve=Symbol.iterator,V={},Fe={isMounted:function(){return!1},enqueueForceUpdate:function(b){c(b,"forceUpdate")},enqueueReplaceState:function(b){c(b,"replaceState")},enqueueSetState:function(b){c(b,"setState")}},Qe=Object.assign,Pe={};Object.freeze(Pe),f.prototype.isReactComponent={},f.prototype.setState=function(b,z){if(typeof b!=="object"&&typeof b!=="function"&&b!=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,b,z,"setState")},f.prototype.forceUpdate=function(b){this.updater.enqueueForceUpdate(this,b,"forceUpdate")};var dt={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(Jr in dt)dt.hasOwnProperty(Jr)&&l(Jr,dt[Jr]);p.prototype=f.prototype,dt=L.prototype=new p,dt.constructor=L,Qe(dt,f.prototype),dt.isPureReactComponent=!0;var et=Array.isArray,ft=Symbol.for("react.client.reference"),Oe={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},cn=Object.prototype.hasOwnProperty,Yt=console.createTask?console.createTask:function(){return null};dt={react_stack_bottom_frame:function(b){return b()}};var $d,On,Wl={},Jl=dt.react_stack_bottom_frame.bind(dt,w)(),ah=Yt(h(w)),uu=!1,iu=/\/+/g,Wr=typeof reportError==="function"?reportError:function(b){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var z=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof b==="object"&&b!==null&&typeof b.message==="string"?String(b.message):String(b),error:b});if(!window.dispatchEvent(z))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",b);return}console.error(b)},Qd=!1,es=null,ts=0,as=!1,os=!1,Di=typeof queueMicrotask==="function"?function(b){queueMicrotask(function(){return queueMicrotask(b)})}:xe;dt=Object.freeze({__proto__:null,c:function(b){return F().useMemoCache(b)}});var Jr={map:Y,forEach:function(b,z,le){Y(b,function(){z.apply(this,arguments)},le)},count:function(b){var z=0;return Y(b,function(){z++}),z},toArray:function(b){return Y(b,function(z){return z})||[]},only:function(b){if(!X(b))throw Error("React.Children.only expected to receive a single React element child.");return b}};PM.Activity=oe,PM.Children=Jr,PM.Component=f,PM.Fragment=Lt,PM.Profiler=ze,PM.PureComponent=L,PM.StrictMode=W,PM.Suspense=Me,PM.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Oe,PM.__COMPILER_RUNTIME=dt,PM.act=function(b){var z=Oe.actQueue,le=ts;ts++;var fe=Oe.actQueue=z!==null?z:[],we=!1;try{var Ke=b()}catch(qe){Oe.thrownErrors.push(qe)}if(0<Oe.thrownErrors.length)throw Be(z,le),b=Ce(Oe.thrownErrors),Oe.thrownErrors.length=0,b;if(Ke!==null&&typeof Ke==="object"&&typeof Ke.then==="function"){var Ze=Ke;return Di(function(){we||as||(as=!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(qe,Wa){we=!0,Ze.then(function(ko){if(Be(z,le),le===0){try{me(fe),xe(function(){return ne(ko,qe,Wa)})}catch(Ei){Oe.thrownErrors.push(Ei)}if(0<Oe.thrownErrors.length){var el=Ce(Oe.thrownErrors);Oe.thrownErrors.length=0,Wa(el)}}else qe(ko)},function(ko){Be(z,le),0<Oe.thrownErrors.length?(ko=Ce(Oe.thrownErrors),Oe.thrownErrors.length=0,Wa(ko)):Wa(ko)})}}}var It=Ke;if(Be(z,le),le===0&&(me(fe),fe.length!==0&&Di(function(){we||as||(as=!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(() => ...)"))}),Oe.actQueue=null),0<Oe.thrownErrors.length)throw b=Ce(Oe.thrownErrors),Oe.thrownErrors.length=0,b;return{then:function(qe,Wa){we=!0,le===0?(Oe.actQueue=fe,xe(function(){return ne(It,qe,Wa)})):qe(It)}}},PM.cache=function(b){return function(){return b.apply(null,arguments)}},PM.cacheSignal=function(){return null},PM.captureOwnerStack=function(){var b=Oe.getCurrentStack;return b===null?null:b()},PM.cloneElement=function(b,z,le){if(b===null||b===void 0)throw Error("The argument must be a React element, but you passed "+b+".");var fe=Qe({},b.props),{key:we,_owner:Ke}=b;if(z!=null){var Ze;e:{if(cn.call(z,"ref")&&(Ze=Object.getOwnPropertyDescriptor(z,"ref").get)&&Ze.isReactWarning){Ze=!1;break e}Ze=z.ref!==void 0}Ze&&(Ke=C()),A(z)&&(v(z.key),we=""+z.key);for(It in z)!cn.call(z,It)||It==="key"||It==="__self"||It==="__source"||It==="ref"&&z.ref===void 0||(fe[It]=z[It])}var It=arguments.length-2;if(It===1)fe.children=le;else if(1<It){Ze=Array(It);for(var qe=0;qe<It;qe++)Ze[qe]=arguments[qe+2];fe.children=Ze}fe=M(b.type,we,fe,Ke,b._debugStack,b._debugTask);for(we=2;we<arguments.length;we++)_(arguments[we]);return fe},PM.createContext=function(b){return b={$$typeof:it,_currentValue:b,_currentValue2:b,_threadCount:0,Provider:null,Consumer:null},b.Provider=b,b.Consumer={$$typeof:kt,_context:b},b._currentRenderer=null,b._currentRenderer2=null,b},PM.createElement=function(b,z,le){for(var fe=2;fe<arguments.length;fe++)_(arguments[fe]);fe={};var we=null;if(z!=null)for(qe in On||!("__self"in z)||"key"in z||(On=!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")),A(z)&&(v(z.key),we=""+z.key),z)cn.call(z,qe)&&qe!=="key"&&qe!=="__self"&&qe!=="__source"&&(fe[qe]=z[qe]);var Ke=arguments.length-2;if(Ke===1)fe.children=le;else if(1<Ke){for(var Ze=Array(Ke),It=0;It<Ke;It++)Ze[It]=arguments[It+2];Object.freeze&&Object.freeze(Ze),fe.children=Ze}if(b&&b.defaultProps)for(qe in Ke=b.defaultProps,Ke)fe[qe]===void 0&&(fe[qe]=Ke[qe]);we&&k(fe,typeof b==="function"?b.displayName||b.name||"Unknown":b);var qe=1e4>Oe.recentlyCreatedOwnerStacks++;return M(b,we,fe,C(),qe?Error("react-stack-top-frame"):Jl,qe?Yt(h(b)):ah)},PM.createRef=function(){var b={current:null};return Object.seal(b),b},PM.forwardRef=function(b){b!=null&&b.$$typeof===j?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof b!=="function"?console.error("forwardRef requires a render function but was given %s.",b===null?"null":typeof b):b.length!==0&&b.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",b.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),b!=null&&b.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var z={$$typeof:ct,render:b},le;return Object.defineProperty(z,"displayName",{enumerable:!1,configurable:!0,get:function(){return le},set:function(fe){le=fe,b.name||b.displayName||(Object.defineProperty(b,"name",{value:fe}),b.displayName=fe)}}),z},PM.isValidElement=X,PM.lazy=function(b){b={_status:-1,_result:b};var z={$$typeof:Re,_payload:b,_init:ae},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 b._ioInfo=le,z._debugInfo=[{awaited:le}],z},PM.memo=function(b,z){b==null&&console.error("memo: The first argument must be a component. Instead received: %s",b===null?"null":typeof b),z={$$typeof:j,type:b,compare:z===void 0?null:z};var le;return Object.defineProperty(z,"displayName",{enumerable:!1,configurable:!0,get:function(){return le},set:function(fe){le=fe,b.name||b.displayName||(Object.defineProperty(b,"name",{value:fe}),b.displayName=fe)}}),z},PM.startTransition=function(b){var z=Oe.T,le={};le._updatedFibers=new Set,Oe.T=le;try{var fe=b(),we=Oe.S;we!==null&&we(le,fe),typeof fe==="object"&&fe!==null&&typeof fe.then==="function"&&(Oe.asyncTransitions++,fe.then(de,de),fe.then(g,Wr))}catch(Ke){Wr(Ke)}finally{z===null&&le._updatedFibers&&(b=le._updatedFibers.size,le._updatedFibers.clear(),10<b&&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.")),z!==null&&le.types!==null&&(z.types!==null&&z.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."),z.types=le.types),Oe.T=z}},PM.unstable_useCacheRefresh=function(){return F().useCacheRefresh()},PM.use=function(b){return F().use(b)},PM.useActionState=function(b,z,le){return F().useActionState(b,z,le)},PM.useCallback=function(b,z){return F().useCallback(b,z)},PM.useContext=function(b){var z=F();return b.$$typeof===kt&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),z.useContext(b)},PM.useDebugValue=function(b,z){return F().useDebugValue(b,z)},PM.useDeferredValue=function(b,z){return F().useDeferredValue(b,z)},PM.useEffect=function(b,z){return b==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),F().useEffect(b,z)},PM.useEffectEvent=function(b){return F().useEffectEvent(b)},PM.useId=function(){return F().useId()},PM.useImperativeHandle=function(b,z,le){return F().useImperativeHandle(b,z,le)},PM.useInsertionEffect=function(b,z){return b==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),F().useInsertionEffect(b,z)},PM.useLayoutEffect=function(b,z){return b==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),F().useLayoutEffect(b,z)},PM.useMemo=function(b,z){return F().useMemo(b,z)},PM.useOptimistic=function(b,z){return F().useOptimistic(b,z)},PM.useReducer=function(b,z,le){return F().useReducer(b,z,le)},PM.useRef=function(b){return F().useRef(b)},PM.useState=function(b){return F().useState(b)},PM.useSyncExternalStore=function(b,z,le){return F().useSyncExternalStore(b,z,le)},PM.useTransition=function(){return F().useTransition()},PM.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var ok=Fs(function(_M){var Bv=Z(gt());(function(){function l(){}function i(h){return""+h}function c(h,C,w){var A=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{i(A);var k=!1}catch(D){k=!0}return k&&(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&&A[Symbol.toStringTag]||A.constructor.name||"Object"),i(A)),{$$typeof:v,key:A==null?null:""+A,children:h,containerInfo:C,implementation:w}}function f(h,C){if(h==="font")return"";if(typeof C==="string")return C==="use-credentials"?C:""}function p(h){return h===null?"`null`":h===void 0?"`undefined`":h===""?"an empty string":'something with type "'+typeof h+'"'}function L(h){return h===null?"`null`":h===void 0?"`undefined`":h===""?"an empty string":typeof h==="string"?JSON.stringify(h):typeof h==="number"?"`"+h+"`":'something with type "'+typeof h+'"'}function g(){var h=x.H;return h===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.`),g}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var x={d:{f:l,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:l,C:l,L:l,m:l,X:l,S:l,M:l},p:0,findDOMNode:null},b=Symbol.for("react.portal"),L=Bv.__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"),U2.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=x,U2.createPortal=function(g,C){var w=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!C||C.nodeType!==1&&C.nodeType!==9&&C.nodeType!==11)throw Error("Target container is not a DOM element.");return c(g,C,null,w)},U2.flushSync=function(g){var C=L.T,w=x.p;try{if(L.T=null,x.p=2,g)return g()}finally{L.T=C,x.p=w,x.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.")}},U2.preconnect=function(g,C){typeof g==="string"&&g?C!=null&&typeof C!=="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.",S(C)):C!=null&&typeof C.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.",p(C.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",p(g)),typeof g==="string"&&(C?(C=C.crossOrigin,C=typeof C==="string"?C==="use-credentials"?C:"":void 0):C=null,x.d.C(g,C))},U2.prefetchDNS=function(g){if(typeof g!=="string"||!g)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",p(g));else if(1<arguments.length){var C=arguments[1];typeof C==="object"&&C.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`.",S(C)):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`.",S(C))}typeof g==="string"&&x.d.D(g)},U2.preinit=function(g,C){if(typeof g==="string"&&g?C==null||typeof C!=="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.",S(C)):C.as!=="style"&&C.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".',S(C.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",p(g)),typeof g==="string"&&C&&typeof C.as==="string"){var w=C.as,A=f(w,C.crossOrigin),k=typeof C.integrity==="string"?C.integrity:void 0,D=typeof C.fetchPriority==="string"?C.fetchPriority:void 0;w==="style"?x.d.S(g,typeof C.precedence==="string"?C.precedence:void 0,{crossOrigin:A,integrity:k,fetchPriority:D}):w==="script"&&x.d.X(g,{crossOrigin:A,integrity:k,fetchPriority:D,nonce:typeof C.nonce==="string"?C.nonce:void 0})}},U2.preinitModule=function(g,C){var w="";if(typeof g==="string"&&g||(w+=" The `href` argument encountered was "+p(g)+"."),C!==void 0&&typeof C!=="object"?w+=" The `options` argument encountered was "+p(C)+".":C&&("as"in C)&&C.as!=="script"&&(w+=" The `as` option encountered was "+S(C.as)+"."),w)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",w);else switch(w=C&&typeof C.as==="string"?C.as:"script",w){case"script":break;default:w=S(w),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)',w,g)}if(typeof g==="string")if(typeof C==="object"&&C!==null){if(C.as==null||C.as==="script")w=f(C.as,C.crossOrigin),x.d.M(g,{crossOrigin:w,integrity:typeof C.integrity==="string"?C.integrity:void 0,nonce:typeof C.nonce==="string"?C.nonce:void 0})}else C==null&&x.d.M(g)},U2.preload=function(g,C){var w="";if(typeof g==="string"&&g||(w+=" The `href` argument encountered was "+p(g)+"."),C==null||typeof C!=="object"?w+=" The `options` argument encountered was "+p(C)+".":typeof C.as==="string"&&C.as||(w+=" The `as` option encountered was "+p(C.as)+"."),w&&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',w),typeof g==="string"&&typeof C==="object"&&C!==null&&typeof C.as==="string"){w=C.as;var A=f(w,C.crossOrigin);x.d.L(g,w,{crossOrigin:A,integrity:typeof C.integrity==="string"?C.integrity:void 0,nonce:typeof C.nonce==="string"?C.nonce:void 0,type:typeof C.type==="string"?C.type:void 0,fetchPriority:typeof C.fetchPriority==="string"?C.fetchPriority:void 0,referrerPolicy:typeof C.referrerPolicy==="string"?C.referrerPolicy:void 0,imageSrcSet:typeof C.imageSrcSet==="string"?C.imageSrcSet:void 0,imageSizes:typeof C.imageSizes==="string"?C.imageSizes:void 0,media:typeof C.media==="string"?C.media:void 0})}},U2.preloadModule=function(g,C){var w="";typeof g==="string"&&g||(w+=" The `href` argument encountered was "+p(g)+"."),C!==void 0&&typeof C!=="object"?w+=" The `options` argument encountered was "+p(C)+".":C&&("as"in C)&&typeof C.as!=="string"&&(w+=" The `as` option encountered was "+p(C.as)+"."),w&&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',w),typeof g==="string"&&(C?(w=f(C.as,C.crossOrigin),x.d.m(g,{as:typeof C.as==="string"&&C.as!=="script"?C.as:void 0,crossOrigin:w,integrity:typeof C.integrity==="string"?C.integrity:void 0})):x.d.m(g))},U2.requestFormReset=function(g){x.d.r(g)},U2.unstable_batchedUpdates=function(g,C){return g(C)},U2.useFormState=function(g,C,w){return h().useFormState(g,C,w)},U2.useFormStatus=function(){return h().useHostTransitionStatus()},U2.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var ld=Hs(function(P2,dm){dm.exports=Z(ak())});var ok=Hs(function(_2){var It=Z(tk()),ii=Z(gt()),Nv=Z(ld());(function(){function l(e,t){for(e=e.memoizedState;e!==null&&0<t;)e=e.next,t--;return e}function i(e,t,a,o){if(a>=t.length)return o;var n=t[a],r=Ma(e)?e.slice():mt({},e);return r[n]=i(e[n],t,a+1,o),r}function c(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 f(e,t,a,0)}}function f(e,t,a,o){var n=t[o],r=Ma(e)?e.slice():mt({},e);return o+1===t.length?(r[a[o]]=r[n],Ma(r)?r.splice(n,1):delete r[n]):r[n]=f(e[n],t,a,o+1),r}function p(e,t,a){var o=t[a],n=Ma(e)?e.slice():mt({},e);if(a+1===t.length)return Ma(n)?n.splice(o,1):delete n[o],n;return n[o]=p(e[o],t,a+1),n}function S(){return!1}function h(){return null}function x(){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 b(){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 L(){}function g(){}function C(e){var t=[];return e.forEach(function(a){t.push(a)}),t.sort().join(", ")}function w(e,t,a,o){return new xI(e,t,a,o)}function A(e,t){e.context===bl&&(ty(e.current,2,t,e,null,null),bu())}function k(e,t){if($o!==null){var a=t.staleFamilies;t=t.updatedFamilies,tc(),rx(e.current,t,a),bu()}}function D(e){$o=e}function M(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function N(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 j(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Y(e){if(N(e)!==e)throw Error("Unable to find node on an unmounted component.")}function ce(e){var t=e.alternate;if(!t){if(t=N(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 r=n.alternate;if(r===null){if(o=n.return,o!==null){a=o;continue}break}if(n.child===r.child){for(r=n.child;r;){if(r===a)return Y(n),e;if(r===o)return Y(n),t;r=r.sibling}throw Error("Unable to find node on an unmounted component.")}if(a.return!==o.return)a=n,o=r;else{for(var s=!1,d=n.child;d;){if(d===a){s=!0,a=n,o=r;break}if(d===o){s=!0,o=n,a=r;break}d=d.sibling}if(!s){for(d=r.child;d;){if(d===a){s=!0,a=r,o=n;break}if(d===o){s=!0,o=r,a=n;break}d=d.sibling}if(!s)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 J(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=J(e),t!==null)return t;e=e.sibling}return null}function te(e){if(e===null||typeof e!=="object")return null;return e=fL&&e[fL]||e["@@iterator"],typeof e==="function"?e:null}function X(e){if(e==null)return null;if(typeof e==="function")return e.$$typeof===HR?null:e.displayName||e.name||null;if(typeof e==="string")return e;switch(e){case Tu:return"Fragment";case sy:return"Profiler";case np:return"StrictMode";case iy:return"Suspense";case cy:return"SuspenseList";case dy: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 ku:return"Portal";case Qn:return e.displayName||"Context";case uy:return(e._context.displayName||"Context")+".Consumer";case dc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case rp:return t=e.displayName||null,t!==null?t:X(e.type)||"Memo";case Eo:t=e._payload,e=e._init;try{return X(e(t))}catch(a){}}return null}function ae(e){return typeof e.tag==="number"?H(e):typeof e.name==="string"?e.name:null}function H(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 X(t);case 8:return t===np?"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 H(e.return)}return null}function de(e){return{current:e}}function xe(e,t){0>Ir?console.error("Unexpected pop."):(t!==py[Ir]&&console.error("Unexpected Fiber popped."),e.current=fy[Ir],fy[Ir]=null,py[Ir]=null,Ir--)}function Ce(e,t,a){Ir++,fy[Ir]=e.current,py[Ir]=a,e.current=t}function Ne(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 ne(e,t){Ce(pl,t,e),Ce(fc,e,e),Ce(fl,null,e);var a=t.nodeType;switch(a){case 9:case 11:a=a===9?"#document":"#fragment",t=(t=t.documentElement)?(t=t.namespaceURI)?NS(t):Hr:Hr;break;default:if(a=t.tagName,t=t.namespaceURI)t=NS(t),t=zS(t,a);else switch(a){case"svg":t=li;break;case"math":t=om;break;default:t=Hr}}a=a.toLowerCase(),a=Mb(null,a),a={context:t,ancestorInfo:a},xe(fl,e),Ce(fl,a,e)}function me(e){xe(fl,e),xe(fc,e),xe(pl,e)}function ke(){return Ne(fl.current)}function $e(e){e.memoizedState!==null&&Ce(lp,e,e);var t=Ne(fl.current),a=e.type,o=zS(t.context,a);a=Mb(t.ancestorInfo,a),o={context:o,ancestorInfo:a},t!==o&&(Ce(fc,e,e),Ce(fl,o,e))}function xt(e){fc.current===e&&(xe(fl,e),xe(fc,e)),lp.current===e&&(xe(lp,e),od._currentValue=_s)}function W(){}function ze(){if(pc===0){pL=console.log,mL=console.info,hL=console.warn,gL=console.error,yL=console.group,vL=console.groupCollapsed,bL=console.groupEnd;var e={configurable:!0,enumerable:!0,value:W,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}pc++}function Ct(){if(pc--,pc===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:mt({},e,{value:pL}),info:mt({},e,{value:mL}),warn:mt({},e,{value:hL}),error:mt({},e,{value:gL}),group:mt({},e,{value:yL}),groupCollapsed:mt({},e,{value:vL}),groupEnd:mt({},e,{value:bL})})}0>pc&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function it(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.`),h}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var S={d:{f:l,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:l,C:l,L:l,m:l,X:l,S:l,M:l},p:0,findDOMNode:null},v=Symbol.for("react.portal"),x=Bv.__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"),_M.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=S,_M.createPortal=function(h,C){var w=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!C||C.nodeType!==1&&C.nodeType!==9&&C.nodeType!==11)throw Error("Target container is not a DOM element.");return c(h,C,null,w)},_M.flushSync=function(h){var C=x.T,w=S.p;try{if(x.T=null,S.p=2,h)return h()}finally{x.T=C,S.p=w,S.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.")}},_M.preconnect=function(h,C){typeof h==="string"&&h?C!=null&&typeof C!=="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.",L(C)):C!=null&&typeof C.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.",p(C.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",p(h)),typeof h==="string"&&(C?(C=C.crossOrigin,C=typeof C==="string"?C==="use-credentials"?C:"":void 0):C=null,S.d.C(h,C))},_M.prefetchDNS=function(h){if(typeof h!=="string"||!h)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",p(h));else if(1<arguments.length){var C=arguments[1];typeof C==="object"&&C.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`.",L(C)):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`.",L(C))}typeof h==="string"&&S.d.D(h)},_M.preinit=function(h,C){if(typeof h==="string"&&h?C==null||typeof C!=="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.",L(C)):C.as!=="style"&&C.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".',L(C.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",p(h)),typeof h==="string"&&C&&typeof C.as==="string"){var w=C.as,A=f(w,C.crossOrigin),k=typeof C.integrity==="string"?C.integrity:void 0,D=typeof C.fetchPriority==="string"?C.fetchPriority:void 0;w==="style"?S.d.S(h,typeof C.precedence==="string"?C.precedence:void 0,{crossOrigin:A,integrity:k,fetchPriority:D}):w==="script"&&S.d.X(h,{crossOrigin:A,integrity:k,fetchPriority:D,nonce:typeof C.nonce==="string"?C.nonce:void 0})}},_M.preinitModule=function(h,C){var w="";if(typeof h==="string"&&h||(w+=" The `href` argument encountered was "+p(h)+"."),C!==void 0&&typeof C!=="object"?w+=" The `options` argument encountered was "+p(C)+".":C&&("as"in C)&&C.as!=="script"&&(w+=" The `as` option encountered was "+L(C.as)+"."),w)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",w);else switch(w=C&&typeof C.as==="string"?C.as:"script",w){case"script":break;default:w=L(w),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)',w,h)}if(typeof h==="string")if(typeof C==="object"&&C!==null){if(C.as==null||C.as==="script")w=f(C.as,C.crossOrigin),S.d.M(h,{crossOrigin:w,integrity:typeof C.integrity==="string"?C.integrity:void 0,nonce:typeof C.nonce==="string"?C.nonce:void 0})}else C==null&&S.d.M(h)},_M.preload=function(h,C){var w="";if(typeof h==="string"&&h||(w+=" The `href` argument encountered was "+p(h)+"."),C==null||typeof C!=="object"?w+=" The `options` argument encountered was "+p(C)+".":typeof C.as==="string"&&C.as||(w+=" The `as` option encountered was "+p(C.as)+"."),w&&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',w),typeof h==="string"&&typeof C==="object"&&C!==null&&typeof C.as==="string"){w=C.as;var A=f(w,C.crossOrigin);S.d.L(h,w,{crossOrigin:A,integrity:typeof C.integrity==="string"?C.integrity:void 0,nonce:typeof C.nonce==="string"?C.nonce:void 0,type:typeof C.type==="string"?C.type:void 0,fetchPriority:typeof C.fetchPriority==="string"?C.fetchPriority:void 0,referrerPolicy:typeof C.referrerPolicy==="string"?C.referrerPolicy:void 0,imageSrcSet:typeof C.imageSrcSet==="string"?C.imageSrcSet:void 0,imageSizes:typeof C.imageSizes==="string"?C.imageSizes:void 0,media:typeof C.media==="string"?C.media:void 0})}},_M.preloadModule=function(h,C){var w="";typeof h==="string"&&h||(w+=" The `href` argument encountered was "+p(h)+"."),C!==void 0&&typeof C!=="object"?w+=" The `options` argument encountered was "+p(C)+".":C&&("as"in C)&&typeof C.as!=="string"&&(w+=" The `as` option encountered was "+p(C.as)+"."),w&&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',w),typeof h==="string"&&(C?(w=f(C.as,C.crossOrigin),S.d.m(h,{as:typeof C.as==="string"&&C.as!=="script"?C.as:void 0,crossOrigin:w,integrity:typeof C.integrity==="string"?C.integrity:void 0})):S.d.m(h))},_M.requestFormReset=function(h){S.d.r(h)},_M.unstable_batchedUpdates=function(h,C){return h(C)},_M.useFormState=function(h,C,w){return g().useFormState(h,C,w)},_M.useFormStatus=function(){return g().useHostTransitionStatus()},_M.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var id=Fs(function(HM,fm){fm.exports=Z(ok())});var nk=Fs(function(FM){var Rt=Z(ak()),fi=Z(gt()),zv=Z(id());(function(){function l(e,t){for(e=e.memoizedState;e!==null&&0<t;)e=e.next,t--;return e}function i(e,t,a,o){if(a>=t.length)return o;var n=t[a],r=Ea(e)?e.slice():mt({},e);return r[n]=i(e[n],t,a+1,o),r}function c(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 f(e,t,a,0)}}function f(e,t,a,o){var n=t[o],r=Ea(e)?e.slice():mt({},e);return o+1===t.length?(r[a[o]]=r[n],Ea(r)?r.splice(n,1):delete r[n]):r[n]=f(e[n],t,a,o+1),r}function p(e,t,a){var o=t[a],n=Ea(e)?e.slice():mt({},e);if(a+1===t.length)return Ea(n)?n.splice(o,1):delete n[o],n;return n[o]=p(e[o],t,a+1),n}function L(){return!1}function g(){return null}function S(){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 v(){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 x(){}function h(){}function C(e){var t=[];return e.forEach(function(a){t.push(a)}),t.sort().join(", ")}function w(e,t,a,o){return new LI(e,t,a,o)}function A(e,t){e.context===xl&&(ay(e.current,2,t,e,null,null),Lu())}function k(e,t){if(Qo!==null){var a=t.staleFamilies;t=t.updatedFamilies,nc(),lx(e.current,t,a),Lu()}}function D(e){Qo=e}function M(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function U(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 _(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 X(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 Q(e){if(U(e)!==e)throw Error("Unable to find node on an unmounted component.")}function ce(e){var t=e.alternate;if(!t){if(t=U(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 r=n.alternate;if(r===null){if(o=n.return,o!==null){a=o;continue}break}if(n.child===r.child){for(r=n.child;r;){if(r===a)return Q(n),e;if(r===o)return Q(n),t;r=r.sibling}throw Error("Unable to find node on an unmounted component.")}if(a.return!==o.return)a=n,o=r;else{for(var u=!1,d=n.child;d;){if(d===a){u=!0,a=n,o=r;break}if(d===o){u=!0,o=n,a=r;break}d=d.sibling}if(!u){for(d=r.child;d;){if(d===a){u=!0,a=r,o=n;break}if(d===o){u=!0,o=r,a=n;break}d=d.sibling}if(!u)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 J(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=J(e),t!==null)return t;e=e.sibling}return null}function te(e){if(e===null||typeof e!=="object")return null;return e=pL&&e[pL]||e["@@iterator"],typeof e==="function"?e:null}function Y(e){if(e==null)return null;if(typeof e==="function")return e.$$typeof===GR?null:e.displayName||e.name||null;if(typeof e==="string")return e;switch(e){case Au:return"Fragment";case uy:return"Profiler";case rp:return"StrictMode";case cy:return"Suspense";case dy:return"SuspenseList";case fy: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 Ru:return"Portal";case Zn:return e.displayName||"Context";case iy:return(e._context.displayName||"Context")+".Consumer";case mc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case lp:return t=e.displayName||null,t!==null?t:Y(e.type)||"Memo";case qo:t=e._payload,e=e._init;try{return Y(e(t))}catch(a){}}return null}function ae(e){return typeof e.tag==="number"?F(e):typeof e.name==="string"?e.name:null}function F(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 Y(t);case 8:return t===rp?"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 F(e.return)}return null}function de(e){return{current:e}}function xe(e,t){0>Ar?console.error("Unexpected pop."):(t!==my[Ar]&&console.error("Unexpected Fiber popped."),e.current=py[Ar],py[Ar]=null,my[Ar]=null,Ar--)}function Ce(e,t,a){Ar++,py[Ar]=e.current,my[Ar]=a,e.current=t}function Be(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 ne(e,t){Ce(ml,t,e),Ce(hc,e,e),Ce(pl,null,e);var a=t.nodeType;switch(a){case 9:case 11:a=a===9?"#document":"#fragment",t=(t=t.documentElement)?(t=t.namespaceURI)?zS(t):Gr:Gr;break;default:if(a=t.tagName,t=t.namespaceURI)t=zS(t),t=US(t,a);else switch(a){case"svg":t=ii;break;case"math":t=nm;break;default:t=Gr}}a=a.toLowerCase(),a=Db(null,a),a={context:t,ancestorInfo:a},xe(pl,e),Ce(pl,a,e)}function me(e){xe(pl,e),xe(hc,e),xe(ml,e)}function ke(){return Be(pl.current)}function $e(e){e.memoizedState!==null&&Ce(sp,e,e);var t=Be(pl.current),a=e.type,o=US(t.context,a);a=Db(t.ancestorInfo,a),o={context:o,ancestorInfo:a},t!==o&&(Ce(hc,e,e),Ce(pl,o,e))}function Lt(e){hc.current===e&&(xe(pl,e),xe(hc,e)),sp.current===e&&(xe(sp,e),ld._currentValue=Hs)}function W(){}function ze(){if(gc===0){mL=console.log,hL=console.info,gL=console.warn,yL=console.error,vL=console.group,bL=console.groupCollapsed,xL=console.groupEnd;var e={configurable:!0,enumerable:!0,value:W,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}gc++}function kt(){if(gc--,gc===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:mt({},e,{value:mL}),info:mt({},e,{value:hL}),warn:mt({},e,{value:gL}),error:mt({},e,{value:yL}),group:mt({},e,{value:vL}),groupCollapsed:mt({},e,{value:bL}),groupEnd:mt({},e,{value:xL})})}0>gc&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function it(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
|
-
`,t)),t!==-1)e=e.slice(0,t);else return"";return e}function ct(e){if(
|
|
20
|
+
`,t)),t!==-1)e=e.slice(0,t);else return"";return e}function ct(e){if(hy===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);hy=t&&t[1]||"",SL=-1<a.stack.indexOf(`
|
|
21
21
|
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
22
|
-
`+
|
|
22
|
+
`+hy+e+SL}function Me(e,t){if(!e||gy)return"";var a=yy.get(e);if(a!==void 0)return a;gy=!0,a=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var o=null;o=G.H,G.H=null,ze();try{var n={DetermineComponentFrameRoot:function(){try{if(t){var I=function(){throw Error()};if(Object.defineProperty(I.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(I,[])}catch(ue){var P=ue}Reflect.construct(e,[],I)}else{try{I.call()}catch(ue){P=ue}e.call(I.prototype)}}else{try{throw Error()}catch(ue){P=ue}(I=e())&&typeof I.catch==="function"&&I.catch(function(){})}}catch(ue){if(ue&&P&&typeof ue.stack==="string")return[ue.stack,P.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var r=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=n.DetermineComponentFrameRoot(),d=u[0],m=u[1];if(d&&m){var y=d.split(`
|
|
23
23
|
`),O=m.split(`
|
|
24
|
-
`);for(
|
|
25
|
-
`+y[r].replace(" at new "," at ");return e.displayName&&q.includes("<anonymous>")&&(q=q.replace("<anonymous>",e.displayName)),typeof e==="function"&&
|
|
26
|
-
`),I=q===-1?O:O.slice(q+1);if(I.indexOf(d)!==-1){var
|
|
27
|
-
`+I;break e}}
|
|
28
|
-
Error generating stack: `+
|
|
29
|
-
`+
|
|
24
|
+
`);for(u=r=0;r<y.length&&!y[r].includes("DetermineComponentFrameRoot");)r++;for(;u<O.length&&!O[u].includes("DetermineComponentFrameRoot");)u++;if(r===y.length||u===O.length)for(r=y.length-1,u=O.length-1;1<=r&&0<=u&&y[r]!==O[u];)u--;for(;1<=r&&0<=u;r--,u--)if(y[r]!==O[u]){if(r!==1||u!==1)do if(r--,u--,0>u||y[r]!==O[u]){var q=`
|
|
25
|
+
`+y[r].replace(" at new "," at ");return e.displayName&&q.includes("<anonymous>")&&(q=q.replace("<anonymous>",e.displayName)),typeof e==="function"&&yy.set(e,q),q}while(1<=r&&0<=u);break}}}finally{gy=!1,G.H=o,kt(),Error.prepareStackTrace=a}return y=(y=e?e.displayName||e.name:"")?ct(y):"",typeof e==="function"&&yy.set(e,y),y}function ye(e,t){switch(e.tag){case 26:case 27:case 5:return ct(e.type);case 16:return ct("Lazy");case 13:return e.child!==t&&t!==null?ct("Suspense Fallback"):ct("Suspense");case 19:return ct("SuspenseList");case 0:case 15:return Me(e.type,!1);case 11:return Me(e.type.render,!1);case 1:return Me(e.type,!0);case 31:return ct("Activity");default:return""}}function j(e){try{var t="",a=null;do{t+=ye(e,a);var o=e._debugInfo;if(o)for(var n=o.length-1;0<=n;n--){var r=o[n];if(typeof r.name==="string"){var u=t;e:{var{name:d,env:m,debugLocation:y}=r;if(y!=null){var O=it(y),q=O.lastIndexOf(`
|
|
26
|
+
`),I=q===-1?O:O.slice(q+1);if(I.indexOf(d)!==-1){var P=`
|
|
27
|
+
`+I;break e}}P=ct(d+(m?" ["+m+"]":""))}t=u+P}}a=e,e=e.return}while(e);return t}catch(ue){return`
|
|
28
|
+
Error generating stack: `+ue.message+`
|
|
29
|
+
`+ue.stack}}function Re(e){return(e=e?e.displayName||e.name:"")?ct(e):""}function oe(){if(No===null)return null;var e=No._debugOwner;return e!=null?ae(e):null}function ve(){if(No===null)return"";var e=No;try{var t="";switch(e.tag===6&&(e=e.return),e.tag){case 26:case 27:case 5:t+=ct(e.type);break;case 13:t+=ct("Suspense");break;case 19:t+=ct("SuspenseList");break;case 31:t+=ct("Activity");break;case 30:case 0:case 15:case 1:e._debugOwner||t!==""||(t+=Re(e.type));break;case 11:e._debugOwner||t!==""||(t+=Re(e.type.render))}for(;e;)if(typeof e.tag==="number"){var a=e;e=a._debugOwner;var o=a._debugStack;if(e&&o){var n=it(o);n!==""&&(t+=`
|
|
30
30
|
`+n)}}else if(e.debugStack!=null){var r=e.debugStack;(e=e.owner)&&r&&(t+=`
|
|
31
|
-
`+it(r))}else break;var
|
|
31
|
+
`+it(r))}else break;var u=t}catch(d){u=`
|
|
32
32
|
Error generating stack: `+d.message+`
|
|
33
|
-
`+d.stack}return s}function G(e,t,a,o,n,r,s){var d=Oo;_e(e);try{return e!==null&&e._debugTask?e._debugTask.run(t.bind(null,a,o,n,r,s)):t(a,o,n,r,s)}finally{_e(d)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function _e(e){F.getCurrentStack=e===null?null:ve,Kn=!1,Oo=e}function Qe(e){return typeof Symbol==="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}function Ue(e){try{return dt(e),!1}catch(t){return!0}}function dt(e){return""+e}function et(e,t){if(Ue(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,Qe(e)),dt(e)}function ft(e,t){if(Ue(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,Qe(e)),dt(e)}function Oe(e){if(Ue(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.",Qe(e)),dt(e)}function un(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{Ru=t.inject(e),Ja=t}catch(a){console.error("React instrumentation encountered an error: %o.",a)}return t.checkDCE?!0:!1}function Yt(e){if(typeof $R==="function"&&QR(e),Ja&&typeof Ja.setStrictMode==="function")try{Ja.setStrictMode(Ru,e)}catch(t){Zn||(Zn=!0,console.error("React instrumentation encountered an error: %o",t))}}function Yd(e){return e>>>=0,e===0?32:31-(KR(e)/ZR|0)|0}function Dn(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 Zl(e,t,a){var o=e.pendingLanes;if(o===0)return 0;var n=0,r=e.suspendedLanes,s=e.pingedLanes;e=e.warmLanes;var d=o&134217727;return d!==0?(o=d&~r,o!==0?n=Dn(o):(s&=d,s!==0?n=Dn(s):a||(a=d&~e,a!==0&&(n=Dn(a))))):(d=o&~r,d!==0?n=Dn(d):s!==0?n=Dn(s):a||(a=o&~e,a!==0&&(n=Dn(a)))),n===0?0:t!==0&&t!==n&&(t&r)===0&&(r=n&-n,a=t&-t,r>=a||r===32&&(a&4194048)!==0)?t:n}function Wl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function th(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 ru(){var e=ip;return ip<<=1,(ip&62914560)===0&&(ip=4194304),e}function lu(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Zr(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function $d(e,t,a,o,n,r){var s=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:d,expirationTimes:m,hiddenUpdates:y}=e;for(a=s&~a;0<a;){var O=31-no(a),q=1<<O;d[O]=0,m[O]=-1;var I=y[O];if(I!==null)for(y[O]=null,O=0;O<I.length;O++){var U=I[O];U!==null&&(U.lane&=-536870913)}a&=~q}o!==0&&Jl(e,o,0),r!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=r&~(s&~t))}function Jl(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var o=31-no(t);e.entangledLanes|=t,e.entanglements[o]=e.entanglements[o]|1073741824|a&261930}function es(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var o=31-no(a),n=1<<o;n&t|e[o]&t&&(e[o]|=t),a&=~n}}function ts(e,t){var a=t&-t;return a=(a&42)!==0?1:as(a),(a&(e.suspendedLanes|t))!==0?0:a}function as(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 Ri(e,t,a){if(Wn)for(e=e.pendingUpdatersLaneMap;0<a;){var o=31-no(a),n=1<<o;e[o].add(t),a&=~n}}function Wr(e,t){if(Wn)for(var a=e.pendingUpdatersLaneMap,o=e.memoizedUpdaters;0<t;){var n=31-no(t);e=1<<n,n=a[n],0<n.size&&(n.forEach(function(r){var s=r.alternate;s!==null&&o.has(s)||o.add(r)}),n.clear()),t&=~e}}function v(e){return e&=-e,qo!==0&&qo<e?mn!==0&&mn<e?(e&134217727)!==0?Jn:cp:mn:qo}function B(){var e=Bt.p;if(e!==0)return e;return e=window.event,e===void 0?Jn:rL(e.type)}function le(e,t){var a=Bt.p;try{return Bt.p=e,t()}finally{Bt.p=a}}function fe(e){delete e[Ya],delete e[ro],delete e[Sy],delete e[WR],delete e[JR]}function we(e){var t=e[Ya];if(t)return t;for(var a=e.parentNode;a;){if(t=a[hl]||a[Ya]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=jS(e);e!==null;){if(a=e[Ya])return a;e=jS(e)}return t}e=a,a=e.parentNode}return null}function Ke(e){if(e=e[Ya]||e[hl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ze(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function Tt(e){var t=e[SL];return t||(t=e[SL]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function qe(e){e[mc]=!0}function Za(e,t){Co(e,t),Co(e+"Capture",t)}function Co(e,t){vs[e]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),vs[e]=t;var a=e.toLowerCase();Ly[a]=e,e==="onDoubleClick"&&(Ly.ondblclick=e);for(e=0;e<t.length;e++)LL.add(t[e])}function Jr(e,t){eA[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 Ai(e){if(pn.call(wL,e))return!0;if(pn.call(CL,e))return!1;if(tA.test(e))return wL[e]=!0;return CL[e]=!0,console.error("Invalid attribute name: `%s`",e),!1}function hb(e,t,a){if(Ai(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 et(a,t),e===""+a?a:e}}function Qd(e,t,a){if(Ai(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}}et(a,t),e.setAttribute(t,""+a)}}function Kd(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}et(a,t),e.setAttribute(t,""+a)}}function vr(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}et(o,a),e.setAttributeNS(t,a,""+o)}}function Go(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return Oe(e),e;default:return""}}function gb(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ZT(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:r}=o;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(s){Oe(s),a=""+s,r.call(this,s)}}),Object.defineProperty(e,t,{enumerable:o.enumerable}),{getValue:function(){return a},setValue:function(s){Oe(s),a=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ah(e){if(!e._valueTracker){var t=gb(e)?"checked":"value";e._valueTracker=ZT(e,t,""+e[t])}}function yb(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),o="";return e&&(o=gb(e)?e.checked?"true":"false":e.value),e=o,e!==a?(t.setValue(e),!0):!1}function Zd(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 Vo(e){return e.replace(aA,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function vb(e,t){t.checked===void 0||t.defaultChecked===void 0||TL||(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",oe()||"A component",t.type),TL=!0),t.value===void 0||t.defaultValue===void 0||kL||(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",oe()||"A component",t.type),kL=!0)}function oh(e,t,a,o,n,r,s,d){if(e.name="",s!=null&&typeof s!=="function"&&typeof s!=="symbol"&&typeof s!=="boolean"?(et(s,"type"),e.type=s):e.removeAttribute("type"),t!=null)if(s==="number"){if(t===0&&e.value===""||e.value!=t)e.value=""+Go(t)}else e.value!==""+Go(t)&&(e.value=""+Go(t));else s!=="submit"&&s!=="reset"||e.removeAttribute("value");t!=null?nh(e,s,Go(t)):a!=null?nh(e,s,Go(a)):o!=null&&e.removeAttribute("value"),n==null&&r!=null&&(e.defaultChecked=!!r),n!=null&&(e.checked=n&&typeof n!=="function"&&typeof n!=="symbol"),d!=null&&typeof d!=="function"&&typeof d!=="symbol"&&typeof d!=="boolean"?(et(d,"name"),e.name=""+Go(d)):e.removeAttribute("name")}function bb(e,t,a,o,n,r,s,d){if(r!=null&&typeof r!=="function"&&typeof r!=="symbol"&&typeof r!=="boolean"&&(et(r,"type"),e.type=r),t!=null||a!=null){if(!(r!=="submit"&&r!=="reset"||t!==void 0&&t!==null)){ah(e);return}a=a!=null?""+Go(a):"",t=t!=null?""+Go(t):a,d||t===e.value||(e.value=t),e.defaultValue=t}o=o!=null?o:n,o=typeof o!=="function"&&typeof o!=="symbol"&&!!o,e.checked=d?e.checked:!!o,e.defaultChecked=!!o,s!=null&&typeof s!=="function"&&typeof s!=="symbol"&&typeof s!=="boolean"&&(et(s,"name"),e.name=s),ah(e)}function nh(e,t,a){t==="number"&&Zd(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function xb(e,t){t.value==null&&(typeof t.children==="object"&&t.children!==null?ii.Children.forEach(t.children,function(a){a==null||typeof a==="string"||typeof a==="number"||typeof a==="bigint"||RL||(RL=!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||AL||(AL=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),t.selected==null||IL||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),IL=!0)}function Sb(){var e=oe();return e?`
|
|
33
|
+
`+d.stack}return u}function V(e,t,a,o,n,r,u){var d=No;Fe(e);try{return e!==null&&e._debugTask?e._debugTask.run(t.bind(null,a,o,n,r,u)):t(a,o,n,r,u)}finally{Fe(d)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function Fe(e){G.getCurrentStack=e===null?null:ve,Wn=!1,No=e}function Qe(e){return typeof Symbol==="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}function Pe(e){try{return dt(e),!1}catch(t){return!0}}function dt(e){return""+e}function et(e,t){if(Pe(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,Qe(e)),dt(e)}function ft(e,t){if(Pe(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,Qe(e)),dt(e)}function Oe(e){if(Pe(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.",Qe(e)),dt(e)}function cn(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{Du=t.inject(e),eo=t}catch(a){console.error("React instrumentation encountered an error: %o.",a)}return t.checkDCE?!0:!1}function Yt(e){if(typeof KR==="function"&&ZR(e),eo&&typeof eo.setStrictMode==="function")try{eo.setStrictMode(Du,e)}catch(t){Jn||(Jn=!0,console.error("React instrumentation encountered an error: %o",t))}}function $d(e){return e>>>=0,e===0?32:31-(WR(e)/JR|0)|0}function On(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 Wl(e,t,a){var o=e.pendingLanes;if(o===0)return 0;var n=0,r=e.suspendedLanes,u=e.pingedLanes;e=e.warmLanes;var d=o&134217727;return d!==0?(o=d&~r,o!==0?n=On(o):(u&=d,u!==0?n=On(u):a||(a=d&~e,a!==0&&(n=On(a))))):(d=o&~r,d!==0?n=On(d):u!==0?n=On(u):a||(a=o&~e,a!==0&&(n=On(a)))),n===0?0:t!==0&&t!==n&&(t&r)===0&&(r=n&-n,a=t&-t,r>=a||r===32&&(a&4194048)!==0)?t:n}function Jl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function ah(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 uu(){var e=cp;return cp<<=1,(cp&62914560)===0&&(cp=4194304),e}function iu(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Wr(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Qd(e,t,a,o,n,r){var u=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:d,expirationTimes:m,hiddenUpdates:y}=e;for(a=u&~a;0<a;){var O=31-ro(a),q=1<<O;d[O]=0,m[O]=-1;var I=y[O];if(I!==null)for(y[O]=null,O=0;O<I.length;O++){var P=I[O];P!==null&&(P.lane&=-536870913)}a&=~q}o!==0&&es(e,o,0),r!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=r&~(u&~t))}function es(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var o=31-ro(t);e.entangledLanes|=t,e.entanglements[o]=e.entanglements[o]|1073741824|a&261930}function ts(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var o=31-ro(a),n=1<<o;n&t|e[o]&t&&(e[o]|=t),a&=~n}}function as(e,t){var a=t&-t;return a=(a&42)!==0?1:os(a),(a&(e.suspendedLanes|t))!==0?0:a}function os(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 Di(e,t,a){if(er)for(e=e.pendingUpdatersLaneMap;0<a;){var o=31-ro(a),n=1<<o;e[o].add(t),a&=~n}}function Jr(e,t){if(er)for(var a=e.pendingUpdatersLaneMap,o=e.memoizedUpdaters;0<t;){var n=31-ro(t);e=1<<n,n=a[n],0<n.size&&(n.forEach(function(r){var u=r.alternate;u!==null&&o.has(u)||o.add(r)}),n.clear()),t&=~e}}function b(e){return e&=-e,Bo!==0&&Bo<e?hn!==0&&hn<e?(e&134217727)!==0?tr:dp:hn:Bo}function z(){var e=zt.p;if(e!==0)return e;return e=window.event,e===void 0?tr:lL(e.type)}function le(e,t){var a=zt.p;try{return zt.p=e,t()}finally{zt.p=a}}function fe(e){delete e[Qa],delete e[lo],delete e[Ly],delete e[eA],delete e[tA]}function we(e){var t=e[Qa];if(t)return t;for(var a=e.parentNode;a;){if(t=a[gl]||a[Qa]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=XS(e);e!==null;){if(a=e[Qa])return a;e=XS(e)}return t}e=a,a=e.parentNode}return null}function Ke(e){if(e=e[Qa]||e[gl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ze(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function It(e){var t=e[LL];return t||(t=e[LL]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function qe(e){e[yc]=!0}function Wa(e,t){ko(e,t),ko(e+"Capture",t)}function ko(e,t){bs[e]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),bs[e]=t;var a=e.toLowerCase();Cy[a]=e,e==="onDoubleClick"&&(Cy.ondblclick=e);for(e=0;e<t.length;e++)CL.add(t[e])}function el(e,t){aA[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 Ei(e){if(mn.call(kL,e))return!0;if(mn.call(wL,e))return!1;if(oA.test(e))return kL[e]=!0;return wL[e]=!0,console.error("Invalid attribute name: `%s`",e),!1}function gb(e,t,a){if(Ei(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 et(a,t),e===""+a?a:e}}function Kd(e,t,a){if(Ei(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}}et(a,t),e.setAttribute(t,""+a)}}function Zd(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}et(a,t),e.setAttribute(t,""+a)}}function xr(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}et(o,a),e.setAttributeNS(t,a,""+o)}}function Vo(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return Oe(e),e;default:return""}}function yb(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function JT(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:r}=o;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(u){Oe(u),a=""+u,r.call(this,u)}}),Object.defineProperty(e,t,{enumerable:o.enumerable}),{getValue:function(){return a},setValue:function(u){Oe(u),a=""+u},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function oh(e){if(!e._valueTracker){var t=yb(e)?"checked":"value";e._valueTracker=JT(e,t,""+e[t])}}function vb(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),o="";return e&&(o=yb(e)?e.checked?"true":"false":e.value),e=o,e!==a?(t.setValue(e),!0):!1}function Wd(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 jo(e){return e.replace(nA,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function bb(e,t){t.checked===void 0||t.defaultChecked===void 0||IL||(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",oe()||"A component",t.type),IL=!0),t.value===void 0||t.defaultValue===void 0||TL||(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",oe()||"A component",t.type),TL=!0)}function nh(e,t,a,o,n,r,u,d){if(e.name="",u!=null&&typeof u!=="function"&&typeof u!=="symbol"&&typeof u!=="boolean"?(et(u,"type"),e.type=u):e.removeAttribute("type"),t!=null)if(u==="number"){if(t===0&&e.value===""||e.value!=t)e.value=""+Vo(t)}else e.value!==""+Vo(t)&&(e.value=""+Vo(t));else u!=="submit"&&u!=="reset"||e.removeAttribute("value");t!=null?rh(e,u,Vo(t)):a!=null?rh(e,u,Vo(a)):o!=null&&e.removeAttribute("value"),n==null&&r!=null&&(e.defaultChecked=!!r),n!=null&&(e.checked=n&&typeof n!=="function"&&typeof n!=="symbol"),d!=null&&typeof d!=="function"&&typeof d!=="symbol"&&typeof d!=="boolean"?(et(d,"name"),e.name=""+Vo(d)):e.removeAttribute("name")}function xb(e,t,a,o,n,r,u,d){if(r!=null&&typeof r!=="function"&&typeof r!=="symbol"&&typeof r!=="boolean"&&(et(r,"type"),e.type=r),t!=null||a!=null){if(!(r!=="submit"&&r!=="reset"||t!==void 0&&t!==null)){oh(e);return}a=a!=null?""+Vo(a):"",t=t!=null?""+Vo(t):a,d||t===e.value||(e.value=t),e.defaultValue=t}o=o!=null?o:n,o=typeof o!=="function"&&typeof o!=="symbol"&&!!o,e.checked=d?e.checked:!!o,e.defaultChecked=!!o,u!=null&&typeof u!=="function"&&typeof u!=="symbol"&&typeof u!=="boolean"&&(et(u,"name"),e.name=u),oh(e)}function rh(e,t,a){t==="number"&&Wd(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Sb(e,t){t.value==null&&(typeof t.children==="object"&&t.children!==null?fi.Children.forEach(t.children,function(a){a==null||typeof a==="string"||typeof a==="number"||typeof a==="bigint"||AL||(AL=!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||ML||(ML=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),t.selected==null||RL||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),RL=!0)}function Lb(){var e=oe();return e?`
|
|
34
34
|
|
|
35
|
-
Check the render method of \``+e+"`.":""}function
|
|
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)),
|
|
37
|
-
`+
|
|
38
|
-
`}return
|
|
39
|
-
`}function
|
|
35
|
+
Check the render method of \``+e+"`.":""}function cu(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=""+Vo(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 Cb(e,t){for(e=0;e<EL.length;e++){var a=EL[e];if(t[a]!=null){var o=Ea(t[a]);t.multiple&&!o?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",a,Lb()):!t.multiple&&o&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",a,Lb())}}t.value===void 0||t.defaultValue===void 0||DL||(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"),DL=!0)}function wb(e,t){t.value===void 0||t.defaultValue===void 0||OL||(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",oe()||"A component"),OL=!0),t.children!=null&&t.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function kb(e,t,a){if(t!=null&&(t=""+Vo(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Vo(a):""}function Tb(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(Ea(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=Vo(t),e.defaultValue=a,o=e.textContent,o===a&&o!==""&&o!==null&&(e.value=o),oh(e)}function Ib(e,t){return e.serverProps===void 0&&e.serverTail.length===0&&e.children.length===1&&3<e.distanceFromLeaf&&e.distanceFromLeaf>15-t?Ib(e.children[0],t):e}function To(e){return" "+" ".repeat(e)}function du(e){return"+ "+" ".repeat(e)}function ns(e){return"- "+" ".repeat(e)}function Rb(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 Oi(e,t){return qL.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 Jd(e,t,a){var o=120-2*a;if(t===null)return du(a)+Oi(e,o)+`
|
|
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)),du(a)+Oi(e,o)+`
|
|
37
|
+
`+ns(a)+Oi(t,o)+`
|
|
38
|
+
`}return To(a)+Oi(e,o)+`
|
|
39
|
+
`}function lh(e){return Object.prototype.toString.call(e).replace(/^\[object (.*)\]$/,function(t,a){return a})}function qi(e,t){switch(typeof e){case"string":return e=JSON.stringify(e),e.length>t?5>t?'"..."':e.slice(0,t-4)+'..."':e;case"object":if(e===null)return"null";if(Ea(e))return"[...]";if(e.$$typeof===Kn)return(t=Y(e.type))?"<"+t+">":"<...>";var a=lh(e);if(a==="Object"){a="",t-=2;for(var o in e)if(e.hasOwnProperty(o)){var n=JSON.stringify(o);if(n!=='"'+o+'"'&&(o=n),t-=o.length-2,n=qi(e[o],15>t?t:15),t-=n.length,0>t){a+=a===""?"...":", ...";break}a+=(a===""?"":",")+o+":"+n}return"{"+a+"}"}return a;case"function":return(t=e.displayName||e.name)?"function "+t:"function";default:return String(e)}}function fu(e,t){return typeof e!=="string"||qL.test(e)?"{"+qi(e,t-2)+"}":e.length>t-2?5>t?'"..."':'"'+e.slice(0,t-5)+'..."':'"'+e+'"'}function sh(e,t,a){var o=120-a.length-e.length,n=[],r;for(r in t)if(t.hasOwnProperty(r)&&r!=="children"){var u=fu(t[r],120-a.length-r.length-1);o-=r.length+u.length+2,n.push(r+"="+u)}return n.length===0?a+"<"+e+`>
|
|
40
40
|
`:0<o?a+"<"+e+" "+n.join(" ")+`>
|
|
41
41
|
`:a+"<"+e+`
|
|
42
42
|
`+a+" "+n.join(`
|
|
43
43
|
`+a+" ")+`
|
|
44
44
|
`+a+`>
|
|
45
|
-
`}function
|
|
46
|
-
`,o+=
|
|
47
|
-
`):o+=
|
|
48
|
-
`}for(var m in n)n.hasOwnProperty(m)&&(e=
|
|
49
|
-
`);return o}function
|
|
50
|
-
`+
|
|
51
|
-
`:(n+=
|
|
52
|
-
`,n+=
|
|
53
|
-
`)}else n+=
|
|
54
|
-
`}r.forEach(function(q){if(q!=="children"){var I=120-2*(o+1)-q.length-1;n+=
|
|
55
|
-
`}}),n=n===""?
|
|
56
|
-
`:
|
|
57
|
-
`+n+
|
|
58
|
-
`}if(e=a.children,t=t.children,typeof e==="string"||typeof e==="number"||typeof e==="bigint"){if(r="",typeof t==="string"||typeof t==="number"||typeof t==="bigint")r=""+t;n+=
|
|
59
|
-
`}function
|
|
60
|
-
`+
|
|
61
|
-
`,t++)}if(o="",n=e.fiber.pendingProps,e.fiber.tag===6)o=
|
|
62
|
-
`,t++}else e.serverProps===null?(o=
|
|
63
|
-
`),n=e.serverTail,e.serverProps===null&&t--;for(e=0;e<n.length;e++)r=n[e],y=typeof r==="string"?y+(
|
|
64
|
-
`):y+
|
|
65
|
-
|
|
66
|
-
`+
|
|
67
|
-
This will cause a hydration error.%s`,
|
|
68
|
-
This will cause a hydration error.%s`,
|
|
69
|
-
See this log for the ancestor stack trace.`,o,
|
|
45
|
+
`}function eI(e,t,a){var o="",n=mt({},t),r;for(r in e)if(e.hasOwnProperty(r)){delete n[r];var u=120-2*a-r.length-2,d=qi(e[r],u);t.hasOwnProperty(r)?(u=qi(t[r],u),o+=du(a)+r+": "+d+`
|
|
46
|
+
`,o+=ns(a)+r+": "+u+`
|
|
47
|
+
`):o+=du(a)+r+": "+d+`
|
|
48
|
+
`}for(var m in n)n.hasOwnProperty(m)&&(e=qi(n[m],120-2*a-m.length-2),o+=ns(a)+m+": "+e+`
|
|
49
|
+
`);return o}function tI(e,t,a,o){var n="",r=new Map;for(y in a)a.hasOwnProperty(y)&&r.set(y.toLowerCase(),y);if(r.size===1&&r.has("children"))n+=sh(e,t,To(o));else{for(var u in t)if(t.hasOwnProperty(u)&&u!=="children"){var d=120-2*(o+1)-u.length-1,m=r.get(u.toLowerCase());if(m!==void 0){r.delete(u.toLowerCase());var y=t[u];m=a[m];var O=fu(y,d);d=fu(m,d),typeof y==="object"&&y!==null&&typeof m==="object"&&m!==null&&lh(y)==="Object"&&lh(m)==="Object"&&(2<Object.keys(y).length||2<Object.keys(m).length||-1<O.indexOf("...")||-1<d.indexOf("..."))?n+=To(o+1)+u+`={{
|
|
50
|
+
`+eI(y,m,o+2)+To(o+1)+`}}
|
|
51
|
+
`:(n+=du(o+1)+u+"="+O+`
|
|
52
|
+
`,n+=ns(o+1)+u+"="+d+`
|
|
53
|
+
`)}else n+=To(o+1)+u+"="+fu(t[u],d)+`
|
|
54
|
+
`}r.forEach(function(q){if(q!=="children"){var I=120-2*(o+1)-q.length-1;n+=ns(o+1)+q+"="+fu(a[q],I)+`
|
|
55
|
+
`}}),n=n===""?To(o)+"<"+e+`>
|
|
56
|
+
`:To(o)+"<"+e+`
|
|
57
|
+
`+n+To(o)+`>
|
|
58
|
+
`}if(e=a.children,t=t.children,typeof e==="string"||typeof e==="number"||typeof e==="bigint"){if(r="",typeof t==="string"||typeof t==="number"||typeof t==="bigint")r=""+t;n+=Jd(r,""+e,o+1)}else if(typeof t==="string"||typeof t==="number"||typeof t==="bigint")n=e==null?n+Jd(""+t,null,o+1):n+Jd(""+t,void 0,o+1);return n}function Ab(e,t){var a=Rb(e);if(a===null){a="";for(e=e.child;e;)a+=Ab(e,t),e=e.sibling;return a}return To(t)+"<"+a+`>
|
|
59
|
+
`}function uh(e,t){var a=Ib(e,t);if(a!==e&&(e.children.length!==1||e.children[0]!==a))return To(t)+`...
|
|
60
|
+
`+uh(a,t+1);a="";var o=e.fiber._debugInfo;if(o)for(var n=0;n<o.length;n++){var r=o[n].name;typeof r==="string"&&(a+=To(t)+"<"+r+`>
|
|
61
|
+
`,t++)}if(o="",n=e.fiber.pendingProps,e.fiber.tag===6)o=Jd(n,e.serverProps,t),t++;else if(r=Rb(e.fiber),r!==null)if(e.serverProps===void 0){o=t;var u=120-2*o-r.length-2,d="";for(y in n)if(n.hasOwnProperty(y)&&y!=="children"){var m=fu(n[y],15);if(u-=y.length+m.length+2,0>u){d+=" ...";break}d+=" "+y+"="+m}o=To(o)+"<"+r+d+`>
|
|
62
|
+
`,t++}else e.serverProps===null?(o=sh(r,n,du(t)),t++):typeof e.serverProps==="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(o=tI(r,n,e.serverProps,t),t++);var y="";n=e.fiber.child;for(r=0;n&&r<e.children.length;)u=e.children[r],u.fiber===n?(y+=uh(u,t),r++):y+=Ab(n,t),n=n.sibling;n&&0<e.children.length&&(y+=To(t)+`...
|
|
63
|
+
`),n=e.serverTail,e.serverProps===null&&t--;for(e=0;e<n.length;e++)r=n[e],y=typeof r==="string"?y+(ns(t)+Oi(r,120-2*t)+`
|
|
64
|
+
`):y+sh(r.type,r.props,ns(t));return a+o+y}function ih(e){try{return`
|
|
65
|
+
|
|
66
|
+
`+uh(e,0)}catch(t){return""}}function Mb(e,t,a){for(var o=t,n=null,r=0;o;)o===e&&(r=0),n={fiber:o,children:n!==null?[n]:[],serverProps:o===t?a:o===e?null:void 0,serverTail:[],distanceFromLeaf:r},r++,o=o.return;return n!==null?ih(n).replaceAll(/^[+-]/gm,">"):""}function Db(e,t){var a=mt({},e||BL),o={tag:t};if(NL.indexOf(t)!==-1&&(a.aTagInScope=null,a.buttonTagInScope=null,a.nobrTagInScope=null),lA.indexOf(t)!==-1&&(a.pTagInButtonScope=null),rA.indexOf(t)!==-1&&t!=="address"&&t!=="div"&&t!=="p"&&(a.listItemTagAutoclosing=null,a.dlItemTagAutoclosing=null),a.current=o,t==="form"&&(a.formTag=o),t==="a"&&(a.aTagInScope=o),t==="button"&&(a.buttonTagInScope=o),t==="nobr"&&(a.nobrTagInScope=o),t==="p"&&(a.pTagInButtonScope=o),t==="li"&&(a.listItemTagAutoclosing=o),t==="dd"||t==="dt")a.dlItemTagAutoclosing=o;return t==="#document"||t==="html"?a.containerTagInScope=null:a.containerTagInScope||(a.containerTagInScope=o),e!==null||t!=="#document"&&t!=="html"&&t!=="body"?a.implicitRootScope===!0&&(a.implicitRootScope=!1):a.implicitRootScope=!0,a}function Eb(e,t,a){switch(t){case"select":return e==="hr"||e==="option"||e==="optgroup"||e==="script"||e==="template"||e==="#text";case"optgroup":return e==="option"||e==="#text";case"option":return e==="#text";case"tr":return e==="th"||e==="td"||e==="style"||e==="script"||e==="template";case"tbody":case"thead":case"tfoot":return e==="tr"||e==="style"||e==="script"||e==="template";case"colgroup":return e==="col"||e==="template";case"table":return e==="caption"||e==="colgroup"||e==="tbody"||e==="tfoot"||e==="thead"||e==="style"||e==="script"||e==="template";case"head":return e==="base"||e==="basefont"||e==="bgsound"||e==="link"||e==="meta"||e==="title"||e==="noscript"||e==="noframes"||e==="style"||e==="script"||e==="template";case"html":if(a)break;return e==="head"||e==="body"||e==="frameset";case"frameset":return e==="frame";case"#document":if(!a)return e==="html"}switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t!=="h1"&&t!=="h2"&&t!=="h3"&&t!=="h4"&&t!=="h5"&&t!=="h6";case"rp":case"rt":return sA.indexOf(t)===-1;case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return t==null;case"head":return a||t===null;case"html":return a&&t==="#document"||t===null;case"body":return a&&(t==="#document"||t==="html")||t===null}return!0}function aI(e,t){switch(e){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t.pTagInButtonScope;case"form":return t.formTag||t.pTagInButtonScope;case"li":return t.listItemTagAutoclosing;case"dd":case"dt":return t.dlItemTagAutoclosing;case"button":return t.buttonTagInScope;case"a":return t.aTagInScope;case"nobr":return t.nobrTagInScope}return null}function Ob(e,t){for(;e;){switch(e.tag){case 5:case 26:case 27:if(e.type===t)return e}e=e.return}return null}function ch(e,t){t=t||BL;var a=t.current;if(t=(a=Eb(e,a&&a.tag,t.implicitRootScope)?null:a)?null:aI(e,t),t=a||t,!t)return!0;var o=t.tag;if(t=String(!!a)+"|"+e+"|"+o,fp[t])return!1;fp[t]=!0;var n=(t=No)?Ob(t.return,o):null,r=t!==null&&n!==null?Mb(n,t,null):"",u="<"+e+">";return a?(a="",o==="table"&&e==="tr"&&(a+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),console.error(`In HTML, %s cannot be a child of <%s>.%s
|
|
67
|
+
This will cause a hydration error.%s`,u,o,a,r)):console.error(`In HTML, %s cannot be a descendant of <%s>.
|
|
68
|
+
This will cause a hydration error.%s`,u,o,r),t&&(e=t.return,n===null||e===null||n===e&&e._debugOwner===t._debugOwner||V(n,function(){console.error(`<%s> cannot contain a nested %s.
|
|
69
|
+
See this log for the ancestor stack trace.`,o,u)})),!1}function ef(e,t,a){if(a||Eb("#text",t,!1))return!0;if(a="#text|"+t,fp[a])return!1;fp[a]=!0;var o=(a=No)?Ob(a,t):null;return a=a!==null&&o!==null?Mb(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 Ei(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}function tI(e){return e.replace(uA,function(t,a){return a.toUpperCase()})}function Ob(e,t,a){var o=t.indexOf("--")===0;o||(-1<t.indexOf("-")?Au.hasOwnProperty(t)&&Au[t]||(Au[t]=!0,console.error("Unsupported style property %s. Did you mean %s?",t,tI(t.replace(sA,"ms-")))):lA.test(t)?Au.hasOwnProperty(t)&&Au[t]||(Au[t]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",t,t.charAt(0).toUpperCase()+t.slice(1))):!UL.test(a)||wy.hasOwnProperty(a)&&wy[a]||(wy[a]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,t,a.replace(UL,""))),typeof a==="number"&&(isNaN(a)?PL||(PL=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",t)):isFinite(a)||_L||(_L=!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||HL.has(t)?t==="float"?e.cssFloat=a:(ft(a,t),e[t]=(""+a).trim()):e[t]=a+"px"}function qb(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 r=Cy[n]||[n],s=0;s<r.length;s++)o[r[s]]=n}for(var d in t)if(t.hasOwnProperty(d)&&(!a||a[d]!==t[d]))for(n=Cy[d]||[d],r=0;r<n.length;r++)o[n[r]]=d;d={};for(var m in t)for(n=Cy[m]||[m],r=0;r<n.length;r++)d[n[r]]=m;m={};for(var y in o)if(n=o[y],(r=d[y])&&n!==r&&(s=n+","+r,!m[s])){m[s]=!0,s=console;var O=t[n];s.error.call(s,"%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.",O==null||typeof O==="boolean"||O===""?"Removing":"Updating",n,r)}}for(var q in a)!a.hasOwnProperty(q)||t!=null&&t.hasOwnProperty(q)||(q.indexOf("--")===0?e.setProperty(q,""):q==="float"?e.cssFloat="":e[q]="");for(var I in t)y=t[I],t.hasOwnProperty(I)&&a[I]!==y&&Ob(e,I,y)}else for(o in t)t.hasOwnProperty(o)&&Ob(e,o,t[o])}function Oi(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 Bb(e){return iA.get(e)||e}function aI(e,t){if(pn.call(Du,t)&&Du[t])return!0;if(dA.test(t)){if(e="aria-"+t.slice(4).toLowerCase(),e=FL.hasOwnProperty(e)?e:null,e==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),Du[t]=!0;if(t!==e)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,e),Du[t]=!0}if(cA.test(t)){if(e=t.toLowerCase(),e=FL.hasOwnProperty(e)?e:null,e==null)return Du[t]=!0,!1;t!==e&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,e),Du[t]=!0)}return!0}function oI(e,t){var a=[],o;for(o in t)aI(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 nI(e,t,a,o){if(pn.call(lo,t)&&lo[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."),lo[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),lo[t]=!0;if(VL.test(t))return console.error("Unknown event handler property `%s`. It will be ignored.",t),lo[t]=!0}else if(VL.test(t))return fA.test(t)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),lo[t]=!0;if(pA.test(t)||mA.test(t))return!0;if(n==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),lo[t]=!0;if(n==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),lo[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),lo[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),lo[t]=!0;if(pp.hasOwnProperty(n)){if(n=pp[n],n!==t)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",t,n),lo[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),lo[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),lo[t]=!0}case"function":case"symbol":return lo[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),lo[t]=!0}}return!0}function rI(e,t,a){var o=[],n;for(n in t)nI(e,n,t[n],a)||o.push(n);t=o.map(function(r){return"`"+r+"`"}).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 qi(e){return hA.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function br(){}function ch(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}function Nb(e){var t=Ke(e);if(t&&(e=t.stateNode)){var a=e[ro]||null;e:switch(e=t.stateNode,t.type){case"input":if(oh(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;et(t,"name"),a=a.querySelectorAll('input[name="'+Vo(""+t)+'"][type="radio"]');for(t=0;t<a.length;t++){var o=a[t];if(o!==e&&o.form===e.form){var n=o[ro]||null;if(!n)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");oh(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&&yb(o)}break e;case"textarea":wb(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&su(e,!!a.multiple,t,!1)}}}function zb(e,t,a){if(ky)return e(t,a);ky=!0;try{var o=e(t);return o}finally{if(ky=!1,Eu!==null||Ou!==null){if(bu(),Eu&&(t=Eu,e=Ou,Ou=Eu=null,Nb(t),e))for(t=0;t<e.length;t++)Nb(e[t])}}}function Bi(e,t){var a=e.stateNode;if(a===null)return null;var o=a[ro]||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 Ub(){if(mp)return mp;var e,t=Iy,a=t.length,o,n="value"in gl?gl.value:gl.textContent,r=n.length;for(e=0;e<a&&t[e]===n[e];e++);var s=a-e;for(o=1;o<=s&&t[a-o]===n[r-o];o++);return mp=n.slice(e,1<o?1-o:void 0)}function ef(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 tf(){return!0}function Pb(){return!1}function mo(e){function t(a,o,n,r,s){this._reactName=a,this._targetInst=n,this.type=o,this.nativeEvent=r,this.target=s,this.currentTarget=null;for(var d in e)e.hasOwnProperty(d)&&(a=e[d],this[d]=a?a(r):r[d]);return this.isDefaultPrevented=(r.defaultPrevented!=null?r.defaultPrevented:r.returnValue===!1)?tf:Pb,this.isPropagationStopped=Pb,this}return mt(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=tf)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!=="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=tf)},persist:function(){},isPersistent:tf}),t}function lI(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=RA[e])?!!t[e]:!1}function dh(){return lI}function _b(e,t){switch(e){case"keyup":return _A.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==$L;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hb(e){return e=e.detail,typeof e==="object"&&"data"in e?e.data:null}function sI(e,t){switch(e){case"compositionend":return Hb(t);case"keypress":if(t.which!==KL)return null;return WL=!0,ZL;case"textInput":return e=t.data,e===ZL&&WL?null:e;default:return null}}function uI(e,t){if(qu)return e==="compositionend"||!Dy&&_b(e,t)?(e=Ub(),mp=Iy=gl=null,qu=!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 QL&&t.locale!=="ko"?null:t.data;default:return null}}function Fb(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!FA[e.type]:t==="textarea"?!0:!1}function iI(e){if(!er)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 Gb(e,t,a,o){Eu?Ou?Ou.push(o):Ou=[o]:Eu=o,t=$f(t,"onChange"),0<t.length&&(a=new hp("onChange","change",null,a,o),e.push({event:a,listeners:t}))}function cI(e){kS(e,0)}function af(e){var t=Ze(e);if(yb(t))return e}function Vb(e,t){if(e==="change")return t}function jb(){xc&&(xc.detachEvent("onpropertychange",Xb),Sc=xc=null)}function Xb(e){if(e.propertyName==="value"&&af(Sc)){var t=[];Gb(t,Sc,e,ch(e)),zb(cI,t)}}function dI(e,t,a){e==="focusin"?(jb(),xc=t,Sc=a,xc.attachEvent("onpropertychange",Xb)):e==="focusout"&&jb()}function fI(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return af(Sc)}function pI(e,t){if(e==="click")return af(t)}function mI(e,t){if(e==="input"||e==="change")return af(t)}function hI(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}function Ni(e,t){if(so(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(!pn.call(t,n)||!so(e[n],t[n]))return!1}return!0}function Yb(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function $b(e,t){var a=Yb(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=Yb(a)}}function Qb(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Qb(e,t.parentNode):("contains"in e)?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Kb(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Zd(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=Zd(e.document)}return t}function fh(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 Zb(e,t,a){var o=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Oy||Bu==null||Bu!==Zd(o)||(o=Bu,("selectionStart"in o)&&fh(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}),Lc&&Ni(Lc,o)||(Lc=o,o=$f(Ey,"onSelect"),0<o.length&&(t=new hp("onSelect","select",null,t,a),e.push({event:t,listeners:o}),t.target=Bu)))}function ns(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}function rs(e){if(qy[e])return qy[e];if(!Nu[e])return e;var t=Nu[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in eC)return qy[e]=t[a];return e}function cn(e,t){rC.set(e,t),Za(t,[e])}function gI(e){for(var t=yp,a=0;a<e.length;a++){var o=e[a];if(typeof o==="object"&&o!==null)if(Ma(o)&&o.length===2&&typeof o[0]==="string"){if(t!==yp&&t!==Py)return zy;t=Py}else return zy;else{if(typeof o==="function"||typeof o==="string"&&50<o.length||t!==yp&&t!==Uy)return zy;t=Uy}}return t}function ph(e,t,a,o){for(var n in e)pn.call(e,n)&&n[0]!=="_"&&En(n,e[n],t,a,o)}function En(e,t,a,o,n){switch(typeof t){case"object":if(t===null){t="null";break}else{if(t.$$typeof===$n){var r=X(t.type)||"…",s=t.key;t=t.props;var d=Object.keys(t),m=d.length;if(s==null&&m===0){t="<"+r+" />";break}if(3>o||m===1&&d[0]==="children"&&s==null){t="<"+r+" … />";break}a.push([n+" ".repeat(o)+e,"<"+r]),s!==null&&En("key",s,a,o+1,n),e=!1;for(var y in t)y==="children"?t.children!=null&&(!Ma(t.children)||0<t.children.length)&&(e=!0):pn.call(t,y)&&y[0]!=="_"&&En(y,t[y],a,o+1,n);a.push(["",e?">…</"+r+">":"/>"]);return}if(r=Object.prototype.toString.call(t),r=r.slice(8,r.length-1),r==="Array"){if(y=gI(t),y===Uy||y===yp){t=JSON.stringify(t);break}else if(y===Py){a.push([n+" ".repeat(o)+e,""]);for(e=0;e<t.length;e++)r=t[e],En(r[0],r[1],a,o+1,n);return}}if(r==="Promise"){if(t.status==="fulfilled"){if(r=a.length,En(e,t.value,a,o,n),a.length>r){a=a[r],a[1]="Promise<"+(a[1]||"Object")+">";return}}else if(t.status==="rejected"&&(r=a.length,En(e,t.reason,a,o,n),a.length>r)){a=a[r],a[1]="Rejected Promise<"+a[1]+">";return}a.push([" ".repeat(o)+e,"Promise"]);return}r==="Object"&&(y=Object.getPrototypeOf(t))&&typeof y.constructor==="function"&&(r=y.constructor.name),a.push([n+" ".repeat(o)+e,r==="Object"?3>o?"":"…":r]),3>o&&ph(t,a,o+1,n);return}case"function":t=t.name===""?"() => {}":t.name+"() {}";break;case"string":t=t===QA?"…":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 Wb(e,t,a,o){var n=!0;for(s in e)s in t||(a.push([vp+" ".repeat(o)+s,"…"]),n=!1);for(var r in t)if(r in e){var s=e[r],d=t[r];if(s!==d){if(o===0&&r==="children")n=" ".repeat(o)+r,a.push([vp+n,"…"],[bp+n,"…"]);else{if(!(3<=o)){if(typeof s==="object"&&typeof d==="object"&&s!==null&&d!==null&&s.$$typeof===d.$$typeof)if(d.$$typeof===$n){if(s.type===d.type&&s.key===d.key){s=X(d.type)||"…",n=" ".repeat(o)+r,s="<"+s+" … />",a.push([vp+n,s],[bp+n,s]),n=!1;continue}}else{var m=Object.prototype.toString.call(s),y=Object.prototype.toString.call(d);if(m===y&&(y==="[object Object]"||y==="[object Array]")){m=[uC+" ".repeat(o)+r,y==="[object Array]"?"Array":""],a.push(m),y=a.length,Wb(s,d,a,o+1)?y===a.length&&(m[1]="Referentially unequal but deeply equal objects. Consider memoization."):n=!1;continue}}else if(typeof s==="function"&&typeof d==="function"&&s.name===d.name&&s.length===d.length&&(m=Function.prototype.toString.call(s),y=Function.prototype.toString.call(d),m===y)){s=d.name===""?"() => {}":d.name+"() {}",a.push([uC+" ".repeat(o)+r,s+" Referentially unequal function closure. Consider memoization."]);continue}}En(r,s,a,o,vp),En(r,d,a,o,bp)}n=!1}}else a.push([bp+" ".repeat(o)+r,"…"]),n=!1;return n}function ko(e){yt=e&63?"Blocking":e&64?"Gesture":e&4194176?"Transition":e&62914560?"Suspense":e&2080374784?"Idle":"Other"}function On(e,t,a,o){Kt&&(vl.start=t,vl.end=a,Rr.color="warning",Rr.tooltipText=o,Rr.properties=null,(e=e._debugTask)?e.run(performance.measure.bind(performance,o,vl)):performance.measure(o,vl))}function of(e,t,a){On(e,t,a,"Reconnect")}function nf(e,t,a,o,n){var r=H(e);if(r!==null&&Kt){var{alternate:s,actualDuration:d}=e;if(s===null||s.child!==e.child)for(var m=e.child;m!==null;m=m.sibling)d-=m.actualDuration;o=0.5>d?o?"tertiary-light":"primary-light":10>d?o?"tertiary":"primary":100>d?o?"tertiary-dark":"primary-dark":"error";var y=e.memoizedProps;d=e._debugTask,y!==null&&s!==null&&s.memoizedProps!==y?(m=[KA],y=Wb(s.memoizedProps,y,m,0),1<m.length&&(y&&!yl&&(s.lanes&n)===0&&100<e.actualDuration?(yl=!0,m[0]=ZA,Rr.color="warning",Rr.tooltipText=iC):(Rr.color=o,Rr.tooltipText=r),Rr.properties=m,vl.start=t,vl.end=a,d!=null?d.run(performance.measure.bind(performance,""+r,vl)):performance.measure(""+r,vl))):d!=null?d.run(console.timeStamp.bind(console,r,t,a,Xo,void 0,o)):console.timeStamp(r,t,a,Xo,void 0,o)}}function mh(e,t,a,o){if(Kt){var n=H(e);if(n!==null){for(var r=null,s=[],d=0;d<o.length;d++){var m=o[d];r==null&&m.source!==null&&(r=m.source._debugTask),m=m.value,s.push(["Error",typeof m==="object"&&m!==null&&typeof m.message==="string"?String(m.message):String(m)])}e.key!==null&&En("key",e.key,s,0,""),e.memoizedProps!==null&&ph(e.memoizedProps,s,0,""),r==null&&(r=e._debugTask),e={start:t,end:a,detail:{devtools:{color:"error",track:Xo,tooltipText:e.tag===13?"Hydration failed":"Error boundary caught an error",properties:s}}},r?r.run(performance.measure.bind(performance,""+n,e)):performance.measure(""+n,e)}}}function qn(e,t,a,o,n){if(n!==null){if(Kt){var r=H(e);if(r!==null){o=[];for(var s=0;s<n.length;s++){var d=n[s].value;o.push(["Error",typeof d==="object"&&d!==null&&typeof d.message==="string"?String(d.message):String(d)])}e.key!==null&&En("key",e.key,o,0,""),e.memoizedProps!==null&&ph(e.memoizedProps,o,0,""),t={start:t,end:a,detail:{devtools:{color:"error",track:Xo,tooltipText:"A lifecycle or effect errored",properties:o}}},(e=e._debugTask)?e.run(performance.measure.bind(performance,""+r,t)):performance.measure(""+r,t)}}}else r=H(e),r!==null&&Kt&&(n=1>o?"secondary-light":100>o?"secondary":500>o?"secondary-dark":"error",(e=e._debugTask)?e.run(console.timeStamp.bind(console,r,t,a,Xo,void 0,n)):console.timeStamp(r,t,a,Xo,void 0,n))}function yI(e,t,a,o){if(Kt&&!(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,yt,ht,n)):console.timeStamp(a,e,t,yt,ht,n)}}function Jb(e,t,a,o){!Kt||t<=e||(a=(a&738197653)===a?"tertiary-dark":"primary-dark",o?o.run(console.timeStamp.bind(console,"Prewarm",e,t,yt,ht,a)):console.timeStamp("Prewarm",e,t,yt,ht,a))}function ex(e,t,a,o){!Kt||t<=e||(a=(a&738197653)===a?"tertiary-dark":"primary-dark",o?o.run(console.timeStamp.bind(console,"Suspended",e,t,yt,ht,a)):console.timeStamp("Suspended",e,t,yt,ht,a))}function vI(e,t,a,o,n,r){if(Kt&&!(t<=e)){a=[];for(var s=0;s<o.length;s++){var d=o[s].value;a.push(["Recoverable Error",typeof d==="object"&&d!==null&&typeof d.message==="string"?String(d.message):String(d)])}e={start:e,end:t,detail:{devtools:{color:"primary-dark",track:yt,trackGroup:ht,tooltipText:n?"Hydration Failed":"Recovered after Error",properties:a}}},r?r.run(performance.measure.bind(performance,"Recovered",e)):performance.measure("Recovered",e)}}function hh(e,t,a,o){!Kt||t<=e||(o?o.run(console.timeStamp.bind(console,"Errored",e,t,yt,ht,"error")):console.timeStamp("Errored",e,t,yt,ht,"error"))}function bI(e,t,a,o){!Kt||t<=e||(o?o.run(console.timeStamp.bind(console,a,e,t,yt,ht,"secondary-light")):console.timeStamp(a,e,t,yt,ht,"secondary-light"))}function tx(e,t,a,o,n){if(Kt&&!(t<=e)){for(var r=[],s=0;s<a.length;s++){var d=a[s].value;r.push(["Error",typeof d==="object"&&d!==null&&typeof d.message==="string"?String(d.message):String(d)])}e={start:e,end:t,detail:{devtools:{color:"error",track:yt,trackGroup:ht,tooltipText:o?"Remaining Effects Errored":"Commit Errored",properties:r}}},n?n.run(performance.measure.bind(performance,"Errored",e)):performance.measure("Errored",e)}}function zi(e,t,a){!Kt||t<=e||(a?a.run(console.timeStamp.bind(console,"Animating",e,t,yt,ht,"secondary-dark")):console.timeStamp("Animating",e,t,yt,ht,"secondary-dark"))}function rf(){for(var e=zu,t=_y=zu=0;t<e;){var a=Yo[t];Yo[t++]=null;var o=Yo[t];Yo[t++]=null;var n=Yo[t];Yo[t++]=null;var r=Yo[t];if(Yo[t++]=null,o!==null&&n!==null){var s=o.pending;s===null?n.next=n:(n.next=s.next,s.next=n),o.pending=n}r!==0&&ax(a,n,r)}}function lf(e,t,a,o){Yo[zu++]=e,Yo[zu++]=t,Yo[zu++]=a,Yo[zu++]=o,_y|=o,e.lanes|=o,e=e.alternate,e!==null&&(e.lanes|=o)}function gh(e,t,a,o){return lf(e,t,a,o),sf(e)}function Wa(e,t){return lf(e,null,null,t),sf(e)}function ax(e,t,a){e.lanes|=a;var o=e.alternate;o!==null&&(o.lanes|=a);for(var n=!1,r=e.return;r!==null;)r.childLanes|=a,o=r.alternate,o!==null&&(o.childLanes|=a),r.tag===22&&(e=r.stateNode,e===null||e._visibility&Cc||(n=!0)),e=r,r=r.return;return e.tag===3?(r=e.stateNode,n&&t!==null&&(n=31-no(a),e=r.hiddenUpdates,o=e[n],o===null?e[n]=[t]:o.push(t),t.lane=a|536870912),r):null}function sf(e){if(Kc>f2)throw qs=Kc=0,Zc=bv=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.");qs>p2&&(qs=0,Zc=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&&vS(e);for(var t=e,a=t.return;a!==null;)t.alternate===null&&(t.flags&4098)!==0&&vS(e),t=a,a=t.return;return t.tag===3?t.stateNode:null}function ls(e){if($o===null)return e;var t=$o(e);return t===void 0?e:t.current}function yh(e){if($o===null)return e;var t=$o(e);return t===void 0?e!==null&&e!==void 0&&typeof e.render==="function"&&(t=ls(e.render),e.render!==t)?(t={$$typeof:dc,render:t},e.displayName!==void 0&&(t.displayName=e.displayName),t):e:t.current}function ox(e,t){if($o===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===Eo&&(o=!0);break;case 11:n===dc?o=!0:n===Eo&&(o=!0);break;case 14:case 15:n===rp?o=!0:n===Eo&&(o=!0);break;default:return!1}return o&&(e=$o(a),e!==void 0&&e===$o(t))?!0:!1}function nx(e){$o!==null&&typeof WeakSet==="function"&&(Uu===null&&(Uu=new WeakSet),Uu.add(e))}function rx(e,t,a){do{var o=e,n=o.alternate,r=o.child,s=o.sibling,d=o.tag;o=o.type;var m=null;switch(d){case 0:case 15:case 1:m=o;break;case 11:m=o.render}if($o===null)throw Error("Expected resolveFamily to be set during hot reload.");var y=!1;if(o=!1,m!==null&&(m=$o(m),m!==void 0&&(a.has(m)?o=!0:t.has(m)&&(d===1?o=!0:y=!0))),Uu!==null&&(Uu.has(e)||n!==null&&Uu.has(n))&&(o=!0),o&&(e._debugNeedsRemount=!0),o||y)n=Wa(e,2),n!==null&&sa(n,e,2);if(r===null||o||rx(r,t,a),s===null)break;e=s}while(1)}function xI(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,cC||typeof Object.preventExtensions!=="function"||Object.preventExtensions(this)}function vh(e){return e=e.prototype,!(!e||!e.isReactComponent)}function xr(e,t){var a=e.alternate;switch(a===null?(a=w(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=ls(e.type);break;case 1:a.type=ls(e.type);break;case 11:a.type=yh(e.type)}return a}function lx(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 bh(e,t,a,o,n,r){var s=0,d=e;if(typeof e==="function")vh(e)&&(s=1),d=ls(d);else if(typeof e==="string")s=ke(),s=AR(e,a,s)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case dy:return t=w(31,a,t,n),t.elementType=dy,t.lanes=r,t;case Tu:return ss(a.children,n,r,t);case np:s=8,n|=eo,n|=hn;break;case sy: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=w(12,e,t,o|rt),t.elementType=sy,t.lanes=r,t.stateNode={effectDuration:0,passiveEffectDuration:0},t;case iy:return t=w(13,a,t,n),t.elementType=iy,t.lanes=r,t;case cy:return t=w(19,a,t,n),t.elementType=cy,t.lanes=r,t;default:if(typeof e==="object"&&e!==null)switch(e.$$typeof){case Qn:s=10;break e;case uy:s=9;break e;case dc:s=11,d=yh(d);break e;case rp:s=14;break e;case Eo:s=16,d=null;break e}if(d="",e===void 0||typeof e==="object"&&e!==null&&Object.keys(e).length===0)d+=" 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":Ma(e)?a="array":e!==void 0&&e.$$typeof===$n?(a="<"+(X(e.type)||"Unknown")+" />",d=" Did you accidentally export a JSX literal instead of a component?"):a=typeof e,(s=o?ae(o):null)&&(d+=`
|
|
71
|
+
This will cause a hydration error.%s`,t,a),!1}function Ni(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}function oI(e){return e.replace(cA,function(t,a){return a.toUpperCase()})}function qb(e,t,a){var o=t.indexOf("--")===0;o||(-1<t.indexOf("-")?Eu.hasOwnProperty(t)&&Eu[t]||(Eu[t]=!0,console.error("Unsupported style property %s. Did you mean %s?",t,oI(t.replace(iA,"ms-")))):uA.test(t)?Eu.hasOwnProperty(t)&&Eu[t]||(Eu[t]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",t,t.charAt(0).toUpperCase()+t.slice(1))):!PL.test(a)||ky.hasOwnProperty(a)&&ky[a]||(ky[a]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,t,a.replace(PL,""))),typeof a==="number"&&(isNaN(a)?_L||(_L=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",t)):isFinite(a)||HL||(HL=!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||FL.has(t)?t==="float"?e.cssFloat=a:(ft(a,t),e[t]=(""+a).trim()):e[t]=a+"px"}function Nb(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 r=wy[n]||[n],u=0;u<r.length;u++)o[r[u]]=n}for(var d in t)if(t.hasOwnProperty(d)&&(!a||a[d]!==t[d]))for(n=wy[d]||[d],r=0;r<n.length;r++)o[n[r]]=d;d={};for(var m in t)for(n=wy[m]||[m],r=0;r<n.length;r++)d[n[r]]=m;m={};for(var y in o)if(n=o[y],(r=d[y])&&n!==r&&(u=n+","+r,!m[u])){m[u]=!0,u=console;var O=t[n];u.error.call(u,"%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.",O==null||typeof O==="boolean"||O===""?"Removing":"Updating",n,r)}}for(var q in a)!a.hasOwnProperty(q)||t!=null&&t.hasOwnProperty(q)||(q.indexOf("--")===0?e.setProperty(q,""):q==="float"?e.cssFloat="":e[q]="");for(var I in t)y=t[I],t.hasOwnProperty(I)&&a[I]!==y&&qb(e,I,y)}else for(o in t)t.hasOwnProperty(o)&&qb(e,o,t[o])}function Bi(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 Bb(e){return dA.get(e)||e}function nI(e,t){if(mn.call(qu,t)&&qu[t])return!0;if(pA.test(t)){if(e="aria-"+t.slice(4).toLowerCase(),e=GL.hasOwnProperty(e)?e:null,e==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),qu[t]=!0;if(t!==e)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,e),qu[t]=!0}if(fA.test(t)){if(e=t.toLowerCase(),e=GL.hasOwnProperty(e)?e:null,e==null)return qu[t]=!0,!1;t!==e&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,e),qu[t]=!0)}return!0}function rI(e,t){var a=[],o;for(o in t)nI(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 lI(e,t,a,o){if(mn.call(so,t)&&so[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."),so[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),so[t]=!0;if(jL.test(t))return console.error("Unknown event handler property `%s`. It will be ignored.",t),so[t]=!0}else if(jL.test(t))return mA.test(t)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),so[t]=!0;if(hA.test(t)||gA.test(t))return!0;if(n==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),so[t]=!0;if(n==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),so[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),so[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),so[t]=!0;if(mp.hasOwnProperty(n)){if(n=mp[n],n!==t)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",t,n),so[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),so[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),so[t]=!0}case"function":case"symbol":return so[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),so[t]=!0}}return!0}function sI(e,t,a){var o=[],n;for(n in t)lI(e,n,t[n],a)||o.push(n);t=o.map(function(r){return"`"+r+"`"}).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 zi(e){return yA.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Sr(){}function dh(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}function zb(e){var t=Ke(e);if(t&&(e=t.stateNode)){var a=e[lo]||null;e:switch(e=t.stateNode,t.type){case"input":if(nh(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;et(t,"name"),a=a.querySelectorAll('input[name="'+jo(""+t)+'"][type="radio"]');for(t=0;t<a.length;t++){var o=a[t];if(o!==e&&o.form===e.form){var n=o[lo]||null;if(!n)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");nh(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&&vb(o)}break e;case"textarea":kb(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&cu(e,!!a.multiple,t,!1)}}}function Ub(e,t,a){if(Ty)return e(t,a);Ty=!0;try{var o=e(t);return o}finally{if(Ty=!1,Nu!==null||Bu!==null){if(Lu(),Nu&&(t=Nu,e=Bu,Bu=Nu=null,zb(t),e))for(t=0;t<e.length;t++)zb(e[t])}}}function Ui(e,t){var a=e.stateNode;if(a===null)return null;var o=a[lo]||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 Pb(){if(hp)return hp;var e,t=Ry,a=t.length,o,n="value"in yl?yl.value:yl.textContent,r=n.length;for(e=0;e<a&&t[e]===n[e];e++);var u=a-e;for(o=1;o<=u&&t[a-o]===n[r-o];o++);return hp=n.slice(e,1<o?1-o:void 0)}function tf(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 af(){return!0}function _b(){return!1}function go(e){function t(a,o,n,r,u){this._reactName=a,this._targetInst=n,this.type=o,this.nativeEvent=r,this.target=u,this.currentTarget=null;for(var d in e)e.hasOwnProperty(d)&&(a=e[d],this[d]=a?a(r):r[d]);return this.isDefaultPrevented=(r.defaultPrevented!=null?r.defaultPrevented:r.returnValue===!1)?af:_b,this.isPropagationStopped=_b,this}return mt(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=af)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!=="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=af)},persist:function(){},isPersistent:af}),t}function uI(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=MA[e])?!!t[e]:!1}function fh(){return uI}function Hb(e,t){switch(e){case"keyup":return FA.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==QL;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Fb(e){return e=e.detail,typeof e==="object"&&"data"in e?e.data:null}function iI(e,t){switch(e){case"compositionend":return Fb(t);case"keypress":if(t.which!==ZL)return null;return JL=!0,WL;case"textInput":return e=t.data,e===WL&&JL?null:e;default:return null}}function cI(e,t){if(zu)return e==="compositionend"||!Ey&&Hb(e,t)?(e=Pb(),hp=Ry=yl=null,zu=!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 KL&&t.locale!=="ko"?null:t.data;default:return null}}function Gb(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!VA[e.type]:t==="textarea"?!0:!1}function dI(e){if(!ar)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 Vb(e,t,a,o){Nu?Bu?Bu.push(o):Bu=[o]:Nu=o,t=Qf(t,"onChange"),0<t.length&&(a=new gp("onChange","change",null,a,o),e.push({event:a,listeners:t}))}function fI(e){TS(e,0)}function of(e){var t=Ze(e);if(vb(t))return e}function jb(e,t){if(e==="change")return t}function Xb(){Cc&&(Cc.detachEvent("onpropertychange",Yb),wc=Cc=null)}function Yb(e){if(e.propertyName==="value"&&of(wc)){var t=[];Vb(t,wc,e,dh(e)),Ub(fI,t)}}function pI(e,t,a){e==="focusin"?(Xb(),Cc=t,wc=a,Cc.attachEvent("onpropertychange",Yb)):e==="focusout"&&Xb()}function mI(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return of(wc)}function hI(e,t){if(e==="click")return of(t)}function gI(e,t){if(e==="input"||e==="change")return of(t)}function yI(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}function Pi(e,t){if(uo(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(!mn.call(t,n)||!uo(e[n],t[n]))return!1}return!0}function $b(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Qb(e,t){var a=$b(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=$b(a)}}function Kb(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Kb(e,t.parentNode):("contains"in e)?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Zb(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Wd(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=Wd(e.document)}return t}function ph(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 Wb(e,t,a){var o=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;qy||Uu==null||Uu!==Wd(o)||(o=Uu,("selectionStart"in o)&&ph(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}),kc&&Pi(kc,o)||(kc=o,o=Qf(Oy,"onSelect"),0<o.length&&(t=new gp("onSelect","select",null,t,a),e.push({event:t,listeners:o}),t.target=Uu)))}function rs(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}function ls(e){if(Ny[e])return Ny[e];if(!Pu[e])return e;var t=Pu[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in tC)return Ny[e]=t[a];return e}function dn(e,t){lC.set(e,t),Wa(t,[e])}function vI(e){for(var t=vp,a=0;a<e.length;a++){var o=e[a];if(typeof o==="object"&&o!==null)if(Ea(o)&&o.length===2&&typeof o[0]==="string"){if(t!==vp&&t!==_y)return Uy;t=_y}else return Uy;else{if(typeof o==="function"||typeof o==="string"&&50<o.length||t!==vp&&t!==Py)return Uy;t=Py}}return t}function mh(e,t,a,o){for(var n in e)mn.call(e,n)&&n[0]!=="_"&&qn(n,e[n],t,a,o)}function qn(e,t,a,o,n){switch(typeof t){case"object":if(t===null){t="null";break}else{if(t.$$typeof===Kn){var r=Y(t.type)||"…",u=t.key;t=t.props;var d=Object.keys(t),m=d.length;if(u==null&&m===0){t="<"+r+" />";break}if(3>o||m===1&&d[0]==="children"&&u==null){t="<"+r+" … />";break}a.push([n+" ".repeat(o)+e,"<"+r]),u!==null&&qn("key",u,a,o+1,n),e=!1;for(var y in t)y==="children"?t.children!=null&&(!Ea(t.children)||0<t.children.length)&&(e=!0):mn.call(t,y)&&y[0]!=="_"&&qn(y,t[y],a,o+1,n);a.push(["",e?">…</"+r+">":"/>"]);return}if(r=Object.prototype.toString.call(t),r=r.slice(8,r.length-1),r==="Array"){if(y=vI(t),y===Py||y===vp){t=JSON.stringify(t);break}else if(y===_y){a.push([n+" ".repeat(o)+e,""]);for(e=0;e<t.length;e++)r=t[e],qn(r[0],r[1],a,o+1,n);return}}if(r==="Promise"){if(t.status==="fulfilled"){if(r=a.length,qn(e,t.value,a,o,n),a.length>r){a=a[r],a[1]="Promise<"+(a[1]||"Object")+">";return}}else if(t.status==="rejected"&&(r=a.length,qn(e,t.reason,a,o,n),a.length>r)){a=a[r],a[1]="Rejected Promise<"+a[1]+">";return}a.push([" ".repeat(o)+e,"Promise"]);return}r==="Object"&&(y=Object.getPrototypeOf(t))&&typeof y.constructor==="function"&&(r=y.constructor.name),a.push([n+" ".repeat(o)+e,r==="Object"?3>o?"":"…":r]),3>o&&mh(t,a,o+1,n);return}case"function":t=t.name===""?"() => {}":t.name+"() {}";break;case"string":t=t===ZA?"…":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 Jb(e,t,a,o){var n=!0;for(u in e)u in t||(a.push([bp+" ".repeat(o)+u,"…"]),n=!1);for(var r in t)if(r in e){var u=e[r],d=t[r];if(u!==d){if(o===0&&r==="children")n=" ".repeat(o)+r,a.push([bp+n,"…"],[xp+n,"…"]);else{if(!(3<=o)){if(typeof u==="object"&&typeof d==="object"&&u!==null&&d!==null&&u.$$typeof===d.$$typeof)if(d.$$typeof===Kn){if(u.type===d.type&&u.key===d.key){u=Y(d.type)||"…",n=" ".repeat(o)+r,u="<"+u+" … />",a.push([bp+n,u],[xp+n,u]),n=!1;continue}}else{var m=Object.prototype.toString.call(u),y=Object.prototype.toString.call(d);if(m===y&&(y==="[object Object]"||y==="[object Array]")){m=[iC+" ".repeat(o)+r,y==="[object Array]"?"Array":""],a.push(m),y=a.length,Jb(u,d,a,o+1)?y===a.length&&(m[1]="Referentially unequal but deeply equal objects. Consider memoization."):n=!1;continue}}else if(typeof u==="function"&&typeof d==="function"&&u.name===d.name&&u.length===d.length&&(m=Function.prototype.toString.call(u),y=Function.prototype.toString.call(d),m===y)){u=d.name===""?"() => {}":d.name+"() {}",a.push([iC+" ".repeat(o)+r,u+" Referentially unequal function closure. Consider memoization."]);continue}}qn(r,u,a,o,bp),qn(r,d,a,o,xp)}n=!1}}else a.push([xp+" ".repeat(o)+r,"…"]),n=!1;return n}function Io(e){yt=e&63?"Blocking":e&64?"Gesture":e&4194176?"Transition":e&62914560?"Suspense":e&2080374784?"Idle":"Other"}function Nn(e,t,a,o){Kt&&(bl.start=t,bl.end=a,Mr.color="warning",Mr.tooltipText=o,Mr.properties=null,(e=e._debugTask)?e.run(performance.measure.bind(performance,o,bl)):performance.measure(o,bl))}function nf(e,t,a){Nn(e,t,a,"Reconnect")}function rf(e,t,a,o,n){var r=F(e);if(r!==null&&Kt){var{alternate:u,actualDuration:d}=e;if(u===null||u.child!==e.child)for(var m=e.child;m!==null;m=m.sibling)d-=m.actualDuration;o=0.5>d?o?"tertiary-light":"primary-light":10>d?o?"tertiary":"primary":100>d?o?"tertiary-dark":"primary-dark":"error";var y=e.memoizedProps;d=e._debugTask,y!==null&&u!==null&&u.memoizedProps!==y?(m=[WA],y=Jb(u.memoizedProps,y,m,0),1<m.length&&(y&&!vl&&(u.lanes&n)===0&&100<e.actualDuration?(vl=!0,m[0]=JA,Mr.color="warning",Mr.tooltipText=cC):(Mr.color=o,Mr.tooltipText=r),Mr.properties=m,bl.start=t,bl.end=a,d!=null?d.run(performance.measure.bind(performance,""+r,bl)):performance.measure(""+r,bl))):d!=null?d.run(console.timeStamp.bind(console,r,t,a,Yo,void 0,o)):console.timeStamp(r,t,a,Yo,void 0,o)}}function hh(e,t,a,o){if(Kt){var n=F(e);if(n!==null){for(var r=null,u=[],d=0;d<o.length;d++){var m=o[d];r==null&&m.source!==null&&(r=m.source._debugTask),m=m.value,u.push(["Error",typeof m==="object"&&m!==null&&typeof m.message==="string"?String(m.message):String(m)])}e.key!==null&&qn("key",e.key,u,0,""),e.memoizedProps!==null&&mh(e.memoizedProps,u,0,""),r==null&&(r=e._debugTask),e={start:t,end:a,detail:{devtools:{color:"error",track:Yo,tooltipText:e.tag===13?"Hydration failed":"Error boundary caught an error",properties:u}}},r?r.run(performance.measure.bind(performance,""+n,e)):performance.measure(""+n,e)}}}function Bn(e,t,a,o,n){if(n!==null){if(Kt){var r=F(e);if(r!==null){o=[];for(var u=0;u<n.length;u++){var d=n[u].value;o.push(["Error",typeof d==="object"&&d!==null&&typeof d.message==="string"?String(d.message):String(d)])}e.key!==null&&qn("key",e.key,o,0,""),e.memoizedProps!==null&&mh(e.memoizedProps,o,0,""),t={start:t,end:a,detail:{devtools:{color:"error",track:Yo,tooltipText:"A lifecycle or effect errored",properties:o}}},(e=e._debugTask)?e.run(performance.measure.bind(performance,""+r,t)):performance.measure(""+r,t)}}}else r=F(e),r!==null&&Kt&&(n=1>o?"secondary-light":100>o?"secondary":500>o?"secondary-dark":"error",(e=e._debugTask)?e.run(console.timeStamp.bind(console,r,t,a,Yo,void 0,n)):console.timeStamp(r,t,a,Yo,void 0,n))}function bI(e,t,a,o){if(Kt&&!(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,yt,ht,n)):console.timeStamp(a,e,t,yt,ht,n)}}function ex(e,t,a,o){!Kt||t<=e||(a=(a&738197653)===a?"tertiary-dark":"primary-dark",o?o.run(console.timeStamp.bind(console,"Prewarm",e,t,yt,ht,a)):console.timeStamp("Prewarm",e,t,yt,ht,a))}function tx(e,t,a,o){!Kt||t<=e||(a=(a&738197653)===a?"tertiary-dark":"primary-dark",o?o.run(console.timeStamp.bind(console,"Suspended",e,t,yt,ht,a)):console.timeStamp("Suspended",e,t,yt,ht,a))}function xI(e,t,a,o,n,r){if(Kt&&!(t<=e)){a=[];for(var u=0;u<o.length;u++){var d=o[u].value;a.push(["Recoverable Error",typeof d==="object"&&d!==null&&typeof d.message==="string"?String(d.message):String(d)])}e={start:e,end:t,detail:{devtools:{color:"primary-dark",track:yt,trackGroup:ht,tooltipText:n?"Hydration Failed":"Recovered after Error",properties:a}}},r?r.run(performance.measure.bind(performance,"Recovered",e)):performance.measure("Recovered",e)}}function gh(e,t,a,o){!Kt||t<=e||(o?o.run(console.timeStamp.bind(console,"Errored",e,t,yt,ht,"error")):console.timeStamp("Errored",e,t,yt,ht,"error"))}function SI(e,t,a,o){!Kt||t<=e||(o?o.run(console.timeStamp.bind(console,a,e,t,yt,ht,"secondary-light")):console.timeStamp(a,e,t,yt,ht,"secondary-light"))}function ax(e,t,a,o,n){if(Kt&&!(t<=e)){for(var r=[],u=0;u<a.length;u++){var d=a[u].value;r.push(["Error",typeof d==="object"&&d!==null&&typeof d.message==="string"?String(d.message):String(d)])}e={start:e,end:t,detail:{devtools:{color:"error",track:yt,trackGroup:ht,tooltipText:o?"Remaining Effects Errored":"Commit Errored",properties:r}}},n?n.run(performance.measure.bind(performance,"Errored",e)):performance.measure("Errored",e)}}function _i(e,t,a){!Kt||t<=e||(a?a.run(console.timeStamp.bind(console,"Animating",e,t,yt,ht,"secondary-dark")):console.timeStamp("Animating",e,t,yt,ht,"secondary-dark"))}function lf(){for(var e=_u,t=Hy=_u=0;t<e;){var a=$o[t];$o[t++]=null;var o=$o[t];$o[t++]=null;var n=$o[t];$o[t++]=null;var r=$o[t];if($o[t++]=null,o!==null&&n!==null){var u=o.pending;u===null?n.next=n:(n.next=u.next,u.next=n),o.pending=n}r!==0&&ox(a,n,r)}}function sf(e,t,a,o){$o[_u++]=e,$o[_u++]=t,$o[_u++]=a,$o[_u++]=o,Hy|=o,e.lanes|=o,e=e.alternate,e!==null&&(e.lanes|=o)}function yh(e,t,a,o){return sf(e,t,a,o),uf(e)}function Ja(e,t){return sf(e,null,null,t),uf(e)}function ox(e,t,a){e.lanes|=a;var o=e.alternate;o!==null&&(o.lanes|=a);for(var n=!1,r=e.return;r!==null;)r.childLanes|=a,o=r.alternate,o!==null&&(o.childLanes|=a),r.tag===22&&(e=r.stateNode,e===null||e._visibility&Tc||(n=!0)),e=r,r=r.return;return e.tag===3?(r=e.stateNode,n&&t!==null&&(n=31-ro(a),e=r.hiddenUpdates,o=e[n],o===null?e[n]=[t]:o.push(t),t.lane=a|536870912),r):null}function uf(e){if(Jc>mM)throw Ns=Jc=0,ed=xv=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.");Ns>hM&&(Ns=0,ed=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&&bS(e);for(var t=e,a=t.return;a!==null;)t.alternate===null&&(t.flags&4098)!==0&&bS(e),t=a,a=t.return;return t.tag===3?t.stateNode:null}function ss(e){if(Qo===null)return e;var t=Qo(e);return t===void 0?e:t.current}function vh(e){if(Qo===null)return e;var t=Qo(e);return t===void 0?e!==null&&e!==void 0&&typeof e.render==="function"&&(t=ss(e.render),e.render!==t)?(t={$$typeof:mc,render:t},e.displayName!==void 0&&(t.displayName=e.displayName),t):e:t.current}function nx(e,t){if(Qo===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===qo&&(o=!0);break;case 11:n===mc?o=!0:n===qo&&(o=!0);break;case 14:case 15:n===lp?o=!0:n===qo&&(o=!0);break;default:return!1}return o&&(e=Qo(a),e!==void 0&&e===Qo(t))?!0:!1}function rx(e){Qo!==null&&typeof WeakSet==="function"&&(Hu===null&&(Hu=new WeakSet),Hu.add(e))}function lx(e,t,a){do{var o=e,n=o.alternate,r=o.child,u=o.sibling,d=o.tag;o=o.type;var m=null;switch(d){case 0:case 15:case 1:m=o;break;case 11:m=o.render}if(Qo===null)throw Error("Expected resolveFamily to be set during hot reload.");var y=!1;if(o=!1,m!==null&&(m=Qo(m),m!==void 0&&(a.has(m)?o=!0:t.has(m)&&(d===1?o=!0:y=!0))),Hu!==null&&(Hu.has(e)||n!==null&&Hu.has(n))&&(o=!0),o&&(e._debugNeedsRemount=!0),o||y)n=Ja(e,2),n!==null&&ia(n,e,2);if(r===null||o||lx(r,t,a),u===null)break;e=u}while(1)}function LI(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,dC||typeof Object.preventExtensions!=="function"||Object.preventExtensions(this)}function bh(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Lr(e,t){var a=e.alternate;switch(a===null?(a=w(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=ss(e.type);break;case 1:a.type=ss(e.type);break;case 11:a.type=vh(e.type)}return a}function sx(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 xh(e,t,a,o,n,r){var u=0,d=e;if(typeof e==="function")bh(e)&&(u=1),d=ss(d);else if(typeof e==="string")u=ke(),u=DR(e,a,u)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case fy:return t=w(31,a,t,n),t.elementType=fy,t.lanes=r,t;case Au:return us(a.children,n,r,t);case rp:u=8,n|=to,n|=gn;break;case uy: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=w(12,e,t,o|rt),t.elementType=uy,t.lanes=r,t.stateNode={effectDuration:0,passiveEffectDuration:0},t;case cy:return t=w(13,a,t,n),t.elementType=cy,t.lanes=r,t;case dy:return t=w(19,a,t,n),t.elementType=dy,t.lanes=r,t;default:if(typeof e==="object"&&e!==null)switch(e.$$typeof){case Zn:u=10;break e;case iy:u=9;break e;case mc:u=11,d=vh(d);break e;case lp:u=14;break e;case qo:u=16,d=null;break e}if(d="",e===void 0||typeof e==="object"&&e!==null&&Object.keys(e).length===0)d+=" 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":Ea(e)?a="array":e!==void 0&&e.$$typeof===Kn?(a="<"+(Y(e.type)||"Unknown")+" />",d=" Did you accidentally export a JSX literal instead of a component?"):a=typeof e,(u=o?ae(o):null)&&(d+=`
|
|
72
72
|
|
|
73
|
-
Check the render method of \``+
|
|
73
|
+
Check the render method of \``+u+"`."),u=29,a=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(a+"."+d)),d=null}return t=w(u,a,t,n),t.elementType=e,t.type=d,t.lanes=r,t._debugOwner=o,t}function cf(e,t,a){return t=xh(e.type,e.key,e.props,e._owner,t,a),t._debugOwner=e._owner,t._debugStack=e._debugStack,t._debugTask=e._debugTask,t}function us(e,t,a,o){return e=w(7,e,o,t),e.lanes=a,e}function Sh(e,t,a){return e=w(6,e,null,t),e.lanes=a,e}function ux(e){var t=w(18,null,null,Ge);return t.stateNode=e,t}function Lh(e,t,a){return t=w(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ro(e,t){if(typeof e==="object"&&e!==null){var a=Fy.get(e);if(a!==void 0)return a;return t={value:e,source:t,stack:j(t)},Fy.set(e,t),t}return{value:e,source:t,stack:j(t)}}function Cr(e,t){tl(),Fu[Gu++]=Ic,Fu[Gu++]=Sp,Sp=e,Ic=t}function ix(e,t,a){tl(),Ko[Zo++]=Er,Ko[Zo++]=Or,Ko[Zo++]=Ss,Ss=e;var o=Er;e=Or;var n=32-ro(o)-1;o&=~(1<<n),a+=1;var r=32-ro(t)+n;if(30<r){var u=n-n%5;r=(o&(1<<u)-1).toString(32),o>>=u,n-=u,Er=1<<32-ro(t)+n|a<<n|o,Or=r+e}else Er=1<<r|a<<n|o,Or=e}function Ch(e){tl(),e.return!==null&&(Cr(e,1),ix(e,1,0))}function wh(e){for(;e===Sp;)Sp=Fu[--Gu],Fu[Gu]=null,Ic=Fu[--Gu],Fu[Gu]=null;for(;e===Ss;)Ss=Ko[--Zo],Ko[Zo]=null,Or=Ko[--Zo],Ko[Zo]=null,Er=Ko[--Zo],Ko[Zo]=null}function cx(){return tl(),Ss!==null?{id:Er,overflow:Or}:null}function dx(e,t){tl(),Ko[Zo++]=Er,Ko[Zo++]=Or,Ko[Zo++]=Ss,Er=t.id,Or=t.overflow,Ss=e}function tl(){bt||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function is(e,t){if(e.return===null){if(zo===null)zo={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t};else{if(zo.fiber!==e)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");zo.distanceFromLeaf>t&&(zo.distanceFromLeaf=t)}return zo}var a=is(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 fx(){bt&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function df(e,t){or||(e=is(e,0),e.serverProps=null,t!==null&&(t=VS(t),e.serverTail.push(t)))}function al(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,a="",o=zo;throw o!==null&&(zo=null,a=ih(o)),Hi(Ro(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 \``+s+"`."),s=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)),
|
|
83
|
+
https://react.dev/link/hydration-mismatch`+a),e)),Gy}function px(e){var{stateNode:t,type:a,memoizedProps:o}=e;switch(t[Qa]=e,t[lo]=o,Vg(a,o),a){case"dialog":Ct("cancel",t),Ct("close",t);break;case"iframe":case"object":case"embed":Ct("load",t);break;case"video":case"audio":for(a=0;a<td.length;a++)Ct(td[a],t);break;case"source":Ct("error",t);break;case"img":case"image":case"link":Ct("error",t),Ct("load",t);break;case"details":Ct("toggle",t);break;case"input":el("input",o),Ct("invalid",t),bb(t,o),xb(t,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0);break;case"option":Sb(t,o);break;case"select":el("select",o),Ct("invalid",t),Cb(t,o);break;case"textarea":el("textarea",o),Ct("invalid",t),wb(t,o),Tb(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||MS(t.textContent,a)?(o.popover!=null&&(Ct("beforetoggle",t),Ct("toggle",t)),o.onScroll!=null&&Ct("scroll",t),o.onScrollEnd!=null&&Ct("scrollend",t),o.onClick!=null&&(t.onclick=Sr),t=!0):t=!1,t||al(e,!0)}function mx(e){for(Ka=e.return;Ka;)switch(Ka.tag){case 5:case 31:case 13:Wo=!1;return;case 27:case 3:Wo=!0;return;default:Ka=Ka.return}}function pu(e){if(e!==Ka)return!1;if(!bt)return mx(e),bt=!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")||Qg(e.type,e.memoizedProps);a=!a}if(a&&Zt){for(a=Zt;a;){var o=is(e,0),n=VS(a);o.serverTail.push(n),a=n.type==="Suspense"?Jg(a):Oo(a.nextSibling)}al(e)}if(mx(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.");Zt=Jg(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.");Zt=Jg(e)}else t===27?(t=Zt,fl(e.type)?(e=Ev,Ev=null,Zt=e):Zt=t):Zt=Ka?Oo(e.stateNode.nextSibling):null;return!0}function cs(){Zt=Ka=null,or=bt=!1}function kh(){var e=Sl;return e!==null&&(po===null?po=e:po.push.apply(po,e),Sl=null),e}function Hi(e){Sl===null?Sl=[e]:Sl.push(e)}function Th(){var e=zo;if(e!==null){zo=null;for(var t=ih(e);0<e.children.length;)e=e.children[0];V(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.
|
|
@@ -90,54 +90,54 @@ https://react.dev/link/hydration-mismatch`+a),e)),Fy}function fx(e){var{stateNod
|
|
|
90
90
|
|
|
91
91
|
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
|
|
92
92
|
|
|
93
|
-
%s%s`,"https://react.dev/link/hydration-mismatch",t)})}}function
|
|
93
|
+
%s%s`,"https://react.dev/link/hydration-mismatch",t)})}}function ff(){Vu=Lp=null,ju=!1}function ol(e,t,a){Ce(Vy,t._currentValue,e),t._currentValue=a,Ce(jy,t._currentRenderer,e),t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==pC&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=pC}function wr(e,t){e._currentValue=Vy.current;var a=jy.current;xe(jy,t),e._currentRenderer=a,xe(Vy,t)}function Ih(e,t,a){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===a)break;e=e.return}e!==a&&console.error("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function Rh(e,t,a,o){var n=e.child;n!==null&&(n.return=e);for(;n!==null;){var r=n.dependencies;if(r!==null){var u=n.child;r=r.firstContext;e:for(;r!==null;){var d=r;r=n;for(var m=0;m<t.length;m++)if(d.context===t[m]){r.lanes|=a,d=r.alternate,d!==null&&(d.lanes|=a),Ih(r.return,a,e),o||(u=null);break e}r=d.next}}else if(n.tag===18){if(u=n.return,u===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");u.lanes|=a,r=u.alternate,r!==null&&(r.lanes|=a),Ih(u,a,e),u=null}else u=n.child;if(u!==null)u.return=n;else for(u=n;u!==null;){if(u===e){u=null;break}if(n=u.sibling,n!==null){n.return=u.return,u=n;break}u=u.return}n=u}}function mu(e,t,a,o){e=null;for(var n=t,r=!1;n!==null;){if(!r){if((n.flags&524288)!==0)r=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var u=n.alternate;if(u===null)throw Error("Should have a current fiber. This is a bug in React.");if(u=u.memoizedProps,u!==null){var d=n.type;uo(n.pendingProps.value,u.value)||(e!==null?e.push(d):e=[d])}}else if(n===sp.current){if(u=n.alternate,u===null)throw Error("Should have a current fiber. This is a bug in React.");u.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(ld):e=[ld])}n=n.return}e!==null&&Rh(t,e,a,o),t.flags|=262144}function pf(e){for(e=e.firstContext;e!==null;){if(!uo(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ds(e){Lp=e,Vu=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ta(e){return ju&&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()."),hx(Lp,e)}function mf(e,t){return Lp===null&&ds(e),hx(e,t)}function hx(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},Vu===null){if(e===null)throw 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().");Vu=t,e.dependencies={lanes:0,firstContext:t,_debugThenableState:null},e.flags|=524288}else Vu=Vu.next=t;return a}function Ah(){return{controller:new aM,data:new Map,refCount:0}}function fs(e){e.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),e.refCount++}function Fi(e){e.refCount--,0>e.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),e.refCount===0&&oM(nM,function(){e.controller.abort()})}function zn(e,t,a){if((e&127)!==0)0>nr&&(nr=wa(),Ac=Cp(t),Xy=t,a!=null&&(Yy=F(a)),(Tt&(qa|_o))!==Ha&&(ca=!0,wl=Rc),e=ic(),t=uc(),e!==Xu||t!==Mc?Xu=-1.1:t!==null&&(wl=Rc),Cs=e,Mc=t);else if((e&4194048)!==0&&0>Jo&&(Jo=wa(),Dc=Cp(t),mC=t,a!=null&&(hC=F(a)),0>Br)){if(e=ic(),t=uc(),e!==Tl||t!==ws)Tl=-1.1;kl=e,ws=t}}function CI(e){if(0>nr){nr=wa(),Ac=e._debugTask!=null?e._debugTask:null,(Tt&(qa|_o))!==Ha&&(wl=Rc);var t=ic(),a=uc();t!==Xu||a!==Mc?Xu=-1.1:a!==null&&(wl=Rc),Cs=t,Mc=a}if(0>Jo&&(Jo=wa(),Dc=e._debugTask!=null?e._debugTask:null,0>Br)){if(e=ic(),t=uc(),e!==Tl||t!==ws)Tl=-1.1;kl=e,ws=t}}function kr(){var e=Ls;return Ls=0,e}function hf(e){var t=Ls;return Ls=e,t}function Gi(e){var t=Ls;return Ls+=e,t}function gf(){_e=Ne=-1.1}function Ao(){var e=Ne;return Ne=-1.1,e}function Mo(e){0<=e&&(Ne=e)}function Un(){var e=ra;return ra=-0,e}function Pn(e){0<=e&&(ra=e)}function _n(){var e=aa;return aa=null,e}function Hn(){var e=ca;return ca=!1,e}function Mh(e){io=wa(),0>e.actualStartTime&&(e.actualStartTime=io)}function Dh(e){if(0<=io){var t=wa()-io;e.actualDuration+=t,e.selfBaseDuration=t,io=-1}}function gx(e){if(0<=io){var t=wa()-io;e.actualDuration+=t,io=-1}}function Fn(){if(0<=io){var e=wa(),t=e-io;io=-1,Ls+=t,ra+=t,_e=e}}function yx(e){aa===null&&(aa=[]),aa.push(e),Nr===null&&(Nr=[]),Nr.push(e)}function Gn(){io=wa(),0>Ne&&(Ne=io)}function Vi(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function wI(e,t){if(Oc===null){var a=Oc=[];Qy=0,ks=_g(),Yu={status:"pending",value:void 0,then:function(o){a.push(o)}}}return Qy++,t.then(vx,vx),t}function vx(){if(--Qy===0&&(-1<Jo||(Br=-1.1),Oc!==null)){Yu!==null&&(Yu.status="fulfilled");var e=Oc;Oc=null,ks=0,Yu=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function kI(e,t){var a=[],o={status:"pending",value:null,reason:null,then:function(n){a.push(n)}};return e.then(function(){o.status="fulfilled",o.value=t;for(var n=0;n<a.length;n++)(0,a[n])(t)},function(n){o.status="rejected",o.reason=n;for(n=0;n<a.length;n++)(0,a[n])(void 0)}),o}function Eh(){var e=Ts.current;return e!==null?e:Xt.pooledCache}function yf(e,t){t===null?Ce(Ts,Ts.current,e):Ce(Ts,t.pool,e)}function bx(){var e=Eh();return e===null?null:{parent:Ca._currentValue,pool:e}}function xx(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function Sx(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Lx(e,t,a){G.actQueue!==null&&(G.didUsePromise=!0);var o=e.thenables;if(a=o[a],a===void 0?o.push(t):a!==t&&(e.didWarnAboutUncachedPromise||(e.didWarnAboutUncachedPromise=!0,console.error("A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.")),t.then(Sr,Sr),t=a),t._debugInfo===void 0){e=performance.now(),o=t.displayName;var n={name:typeof o==="string"?o:"Promise",start:e,end:e,value:t};t._debugInfo=[{awaited:n}],t.status!=="fulfilled"&&t.status!=="rejected"&&(e=function(){n.end=performance.now()},t.then(e,e))}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,wx(e),e;default:if(typeof t.status==="string")t.then(Sr,Sr);else{if(e=Xt,e!==null&&100<e.shellSuspendCounter)throw Error("An unknown Component 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.");e=t,e.status="pending",e.then(function(r){if(t.status==="pending"){var u=t;u.status="fulfilled",u.value=r}},function(r){if(t.status==="pending"){var u=t;u.status="rejected",u.reason=r}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,wx(e),e}throw Rs=t,_c=!0,$u}}function nl(e){try{return uM(e)}catch(t){if(t!==null&&typeof t==="object"&&typeof t.then==="function")throw Rs=t,_c=!0,$u;throw t}}function Cx(){if(Rs===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var e=Rs;return Rs=null,_c=!1,e}function wx(e){if(e===$u||e===Dp)throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.")}function Xa(e){var t=lt;return e!=null&&(lt=t===null?e:t.concat(e)),t}function Oh(){var e=lt;if(e!=null){for(var t=e.length-1;0<=t;t--)if(e[t].name!=null){var a=e[t].debugTask;if(a!=null)return a}}return null}function vf(e,t,a){for(var o=Object.keys(e.props),n=0;n<o.length;n++){var r=o[n];if(r!=="children"&&r!=="key"){t===null&&(t=cf(e,a.mode,0),t._debugInfo=lt,t.return=a),V(t,function(u){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",u)},r);break}}}function bf(e){var t=Hc;return Hc+=1,Qu===null&&(Qu=xx()),Lx(Qu,e,t)}function ji(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function kx(e,t){if(t.$$typeof===HR)throw Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
|
|
94
94
|
- Multiple copies of the "react" package is used.
|
|
95
95
|
- A library pre-bundled an old copy of "react" or "react/jsx-runtime".
|
|
96
|
-
- A compiler tries to "inline" JSX instead of using the runtime.`);throw e=Object.prototype.toString.call(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.")}function
|
|
96
|
+
- A compiler tries to "inline" JSX instead of using the runtime.`);throw e=Object.prototype.toString.call(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.")}function xf(e,t){var a=Oh();a!==null?a.run(kx.bind(null,e,t)):kx(e,t)}function Tx(e,t){var a=F(e)||"Component";NC[a]||(NC[a]=!0,t=t.displayName||t.name||"Component",e.tag===3?console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
|
|
97
97
|
root.render(%s)`,t,t,t):console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
|
|
98
|
-
<%s>{%s}</%s>`,t,t,a,t,a))}function
|
|
98
|
+
<%s>{%s}</%s>`,t,t,a,t,a))}function Sf(e,t){var a=Oh();a!==null?a.run(Tx.bind(null,e,t)):Tx(e,t)}function Ix(e,t){var a=F(e)||"Component";BC[a]||(BC[a]=!0,t=String(t),e.tag===3?console.error(`Symbols are not valid as a React child.
|
|
99
99
|
root.render(%s)`,t):console.error(`Symbols are not valid as a React child.
|
|
100
|
-
<%s>%s</%s>`,a,t,a))}function Sf(e,t){var a=Eh();a!==null?a.run(Tx.bind(null,e,t)):Tx(e,t)}function Ix(e){function t(T,R){if(e){var E=T.deletions;E===null?(T.deletions=[R],T.flags|=16):E.push(R)}}function a(T,R){if(!e)return null;for(;R!==null;)t(T,R),R=R.sibling;return null}function o(T){for(var R=new Map;T!==null;)T.key!==null?R.set(T.key,T):R.set(T.index,T),T=T.sibling;return R}function n(T,R){return T=xr(T,R),T.index=0,T.sibling=null,T}function r(T,R,E){if(T.index=E,!e)return T.flags|=1048576,R;if(E=T.alternate,E!==null)return E=E.index,E<R?(T.flags|=67108866,R):E;return T.flags|=67108866,R}function s(T){return e&&T.alternate===null&&(T.flags|=67108866),T}function d(T,R,E,K){if(R===null||R.tag!==6)return R=xh(E,T.mode,K),R.return=T,R._debugOwner=T,R._debugTask=T._debugTask,R._debugInfo=lt,R;return R=n(R,E),R.return=T,R._debugInfo=lt,R}function m(T,R,E,K){var pe=E.type;if(pe===Tu)return R=O(T,R,E.props.children,K,E.key),yf(E,R,T),R;if(R!==null&&(R.elementType===pe||ox(R,E)||typeof pe==="object"&&pe!==null&&pe.$$typeof===Eo&&ol(pe)===R.type))return R=n(R,E.props),Fi(R,E),R.return=T,R._debugOwner=E._owner,R._debugInfo=lt,R;return R=uf(E,T.mode,K),Fi(R,E),R.return=T,R._debugInfo=lt,R}function y(T,R,E,K){if(R===null||R.tag!==4||R.stateNode.containerInfo!==E.containerInfo||R.stateNode.implementation!==E.implementation)return R=Sh(E,T.mode,K),R.return=T,R._debugInfo=lt,R;return R=n(R,E.children||[]),R.return=T,R._debugInfo=lt,R}function O(T,R,E,K,pe){if(R===null||R.tag!==7)return R=ss(E,T.mode,K,pe),R.return=T,R._debugOwner=T,R._debugTask=T._debugTask,R._debugInfo=lt,R;return R=n(R,E),R.return=T,R._debugInfo=lt,R}function q(T,R,E){if(typeof R==="string"&&R!==""||typeof R==="number"||typeof R==="bigint")return R=xh(""+R,T.mode,E),R.return=T,R._debugOwner=T,R._debugTask=T._debugTask,R._debugInfo=lt,R;if(typeof R==="object"&&R!==null){switch(R.$$typeof){case $n:return E=uf(R,T.mode,E),Fi(E,R),E.return=T,T=Va(R._debugInfo),E._debugInfo=lt,lt=T,E;case ku:return R=Sh(R,T.mode,E),R.return=T,R._debugInfo=lt,R;case Eo:var K=Va(R._debugInfo);return R=ol(R),T=q(T,R,E),lt=K,T}if(Ma(R)||te(R))return E=ss(R,T.mode,E,null),E.return=T,E._debugOwner=T,E._debugTask=T._debugTask,T=Va(R._debugInfo),E._debugInfo=lt,lt=T,E;if(typeof R.then==="function")return K=Va(R._debugInfo),T=q(T,vf(R),E),lt=K,T;if(R.$$typeof===Qn)return q(T,pf(T,R),E);bf(T,R)}return typeof R==="function"&&xf(T,R),typeof R==="symbol"&&Sf(T,R),null}function I(T,R,E,K){var pe=R!==null?R.key:null;if(typeof E==="string"&&E!==""||typeof E==="number"||typeof E==="bigint")return pe!==null?null:d(T,R,""+E,K);if(typeof E==="object"&&E!==null){switch(E.$$typeof){case $n:return E.key===pe?(pe=Va(E._debugInfo),T=m(T,R,E,K),lt=pe,T):null;case ku:return E.key===pe?y(T,R,E,K):null;case Eo:return pe=Va(E._debugInfo),E=ol(E),T=I(T,R,E,K),lt=pe,T}if(Ma(E)||te(E)){if(pe!==null)return null;return pe=Va(E._debugInfo),T=O(T,R,E,K,null),lt=pe,T}if(typeof E.then==="function")return pe=Va(E._debugInfo),T=I(T,R,vf(E),K),lt=pe,T;if(E.$$typeof===Qn)return I(T,R,pf(T,E),K);bf(T,E)}return typeof E==="function"&&xf(T,E),typeof E==="symbol"&&Sf(T,E),null}function U(T,R,E,K,pe){if(typeof K==="string"&&K!==""||typeof K==="number"||typeof K==="bigint")return T=T.get(E)||null,d(R,T,""+K,pe);if(typeof K==="object"&&K!==null){switch(K.$$typeof){case $n:return E=T.get(K.key===null?E:K.key)||null,T=Va(K._debugInfo),R=m(R,E,K,pe),lt=T,R;case ku:return T=T.get(K.key===null?E:K.key)||null,y(R,T,K,pe);case Eo:var Xe=Va(K._debugInfo);return K=ol(K),R=U(T,R,E,K,pe),lt=Xe,R}if(Ma(K)||te(K))return E=T.get(E)||null,T=Va(K._debugInfo),R=O(R,E,K,pe,null),lt=T,R;if(typeof K.then==="function")return Xe=Va(K._debugInfo),R=U(T,R,E,vf(K),pe),lt=Xe,R;if(K.$$typeof===Qn)return U(T,R,E,pf(R,K),pe);bf(R,K)}return typeof K==="function"&&xf(R,K),typeof K==="symbol"&&Sf(R,K),null}function se(T,R,E,K){if(typeof E!=="object"||E===null)return K;switch(E.$$typeof){case $n:case ku:g(T,R,E);var pe=E.key;if(typeof pe!=="string")break;if(K===null){K=new Set,K.add(pe);break}if(!K.has(pe)){K.add(pe);break}G(R,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.",pe)});break;case Eo:E=ol(E),se(T,R,E,K)}return K}function he(T,R,E,K){for(var pe=null,Xe=null,Ee=null,Te=R,tt=R=0,Wt=null;Te!==null&&tt<E.length;tt++){Te.index>tt?(Wt=Te,Te=null):Wt=Te.sibling;var va=I(T,Te,E[tt],K);if(va===null){Te===null&&(Te=Wt);break}pe=se(T,va,E[tt],pe),e&&Te&&va.alternate===null&&t(T,Te),R=r(va,R,tt),Ee===null?Xe=va:Ee.sibling=va,Ee=va,Te=Wt}if(tt===E.length)return a(T,Te),vt&&Sr(T,tt),Xe;if(Te===null){for(;tt<E.length;tt++)Te=q(T,E[tt],K),Te!==null&&(pe=se(T,Te,E[tt],pe),R=r(Te,R,tt),Ee===null?Xe=Te:Ee.sibling=Te,Ee=Te);return vt&&Sr(T,tt),Xe}for(Te=o(Te);tt<E.length;tt++)Wt=U(Te,T,tt,E[tt],K),Wt!==null&&(pe=se(T,Wt,E[tt],pe),e&&Wt.alternate!==null&&Te.delete(Wt.key===null?tt:Wt.key),R=r(Wt,R,tt),Ee===null?Xe=Wt:Ee.sibling=Wt,Ee=Wt);return e&&Te.forEach(function(Gr){return t(T,Gr)}),vt&&Sr(T,tt),Xe}function Qt(T,R,E,K){if(E==null)throw Error("An iterable object provided no iterator.");for(var pe=null,Xe=null,Ee=R,Te=R=0,tt=null,Wt=null,va=E.next();Ee!==null&&!va.done;Te++,va=E.next()){Ee.index>Te?(tt=Ee,Ee=null):tt=Ee.sibling;var Gr=I(T,Ee,va.value,K);if(Gr===null){Ee===null&&(Ee=tt);break}Wt=se(T,Gr,va.value,Wt),e&&Ee&&Gr.alternate===null&&t(T,Ee),R=r(Gr,R,Te),Xe===null?pe=Gr:Xe.sibling=Gr,Xe=Gr,Ee=tt}if(va.done)return a(T,Ee),vt&&Sr(T,Te),pe;if(Ee===null){for(;!va.done;Te++,va=E.next())Ee=q(T,va.value,K),Ee!==null&&(Wt=se(T,Ee,va.value,Wt),R=r(Ee,R,Te),Xe===null?pe=Ee:Xe.sibling=Ee,Xe=Ee);return vt&&Sr(T,Te),pe}for(Ee=o(Ee);!va.done;Te++,va=E.next())tt=U(Ee,T,Te,va.value,K),tt!==null&&(Wt=se(T,tt,va.value,Wt),e&&tt.alternate!==null&&Ee.delete(tt.key===null?Te:tt.key),R=r(tt,R,Te),Xe===null?pe=tt:Xe.sibling=tt,Xe=tt);return e&&Ee.forEach(function(M2){return t(T,M2)}),vt&&Sr(T,Te),pe}function Lt(T,R,E,K){if(typeof E==="object"&&E!==null&&E.type===Tu&&E.key===null&&(yf(E,null,T),E=E.props.children),typeof E==="object"&&E!==null){switch(E.$$typeof){case $n:var pe=Va(E._debugInfo);e:{for(var Xe=E.key;R!==null;){if(R.key===Xe){if(Xe=E.type,Xe===Tu){if(R.tag===7){a(T,R.sibling),K=n(R,E.props.children),K.return=T,K._debugOwner=E._owner,K._debugInfo=lt,yf(E,K,T),T=K;break e}}else if(R.elementType===Xe||ox(R,E)||typeof Xe==="object"&&Xe!==null&&Xe.$$typeof===Eo&&ol(Xe)===R.type){a(T,R.sibling),K=n(R,E.props),Fi(K,E),K.return=T,K._debugOwner=E._owner,K._debugInfo=lt,T=K;break e}a(T,R);break}else t(T,R);R=R.sibling}E.type===Tu?(K=ss(E.props.children,T.mode,K,E.key),K.return=T,K._debugOwner=T,K._debugTask=T._debugTask,K._debugInfo=lt,yf(E,K,T),T=K):(K=uf(E,T.mode,K),Fi(K,E),K.return=T,K._debugInfo=lt,T=K)}return T=s(T),lt=pe,T;case ku:e:{pe=E;for(E=pe.key;R!==null;){if(R.key===E)if(R.tag===4&&R.stateNode.containerInfo===pe.containerInfo&&R.stateNode.implementation===pe.implementation){a(T,R.sibling),K=n(R,pe.children||[]),K.return=T,T=K;break e}else{a(T,R);break}else t(T,R);R=R.sibling}K=Sh(pe,T.mode,K),K.return=T,T=K}return s(T);case Eo:return pe=Va(E._debugInfo),E=ol(E),T=Lt(T,R,E,K),lt=pe,T}if(Ma(E))return pe=Va(E._debugInfo),T=he(T,R,E,K),lt=pe,T;if(te(E)){if(pe=Va(E._debugInfo),Xe=te(E),typeof Xe!=="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var Ee=Xe.call(E);if(Ee===E){if(T.tag!==0||Object.prototype.toString.call(T.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(Ee)!=="[object Generator]")EC||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."),EC=!0}else E.entries!==Xe||Wy||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Wy=!0);return T=Qt(T,R,Ee,K),lt=pe,T}if(typeof E.then==="function")return pe=Va(E._debugInfo),T=Lt(T,R,vf(E),K),lt=pe,T;if(E.$$typeof===Qn)return Lt(T,R,pf(T,E),K);bf(T,E)}if(typeof E==="string"&&E!==""||typeof E==="number"||typeof E==="bigint")return pe=""+E,R!==null&&R.tag===6?(a(T,R.sibling),K=n(R,pe),K.return=T,T=K):(a(T,R),K=xh(pe,T.mode,K),K.return=T,K._debugOwner=T,K._debugTask=T._debugTask,K._debugInfo=lt,T=K),s(T);return typeof E==="function"&&xf(T,E),typeof E==="symbol"&&Sf(T,E),a(T,R)}return function(T,R,E,K){var pe=lt;lt=null;try{Uc=0;var Xe=Lt(T,R,E,K);return Xu=null,Xe}catch(Wt){if(Wt===ju||Wt===Mp)throw Wt;var Ee=w(29,Wt,null,T.mode);Ee.lanes=K,Ee.return=T;var Te=Ee._debugInfo=lt;if(Ee._debugOwner=T._debugOwner,Ee._debugTask=T._debugTask,Te!=null){for(var tt=Te.length-1;0<=tt;tt--)if(typeof Te[tt].stack==="string"){Ee._debugOwner=Te[tt],Ee._debugTask=Te[tt].debugTask;break}}return Ee}finally{lt=pe}}}function Rx(e,t){var a=Ma(e);return e=!a&&typeof te(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 Oh(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function qh(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 nl(e){return{lane:e,tag:zC,payload:null,callback:null,next:null}}function rl(e,t,a){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,ev===o&&!_C){var n=H(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.
|
|
100
|
+
<%s>%s</%s>`,a,t,a))}function Lf(e,t){var a=Oh();a!==null?a.run(Ix.bind(null,e,t)):Ix(e,t)}function Rx(e){function t(T,R){if(e){var E=T.deletions;E===null?(T.deletions=[R],T.flags|=16):E.push(R)}}function a(T,R){if(!e)return null;for(;R!==null;)t(T,R),R=R.sibling;return null}function o(T){for(var R=new Map;T!==null;)T.key!==null?R.set(T.key,T):R.set(T.index,T),T=T.sibling;return R}function n(T,R){return T=Lr(T,R),T.index=0,T.sibling=null,T}function r(T,R,E){if(T.index=E,!e)return T.flags|=1048576,R;if(E=T.alternate,E!==null)return E=E.index,E<R?(T.flags|=67108866,R):E;return T.flags|=67108866,R}function u(T){return e&&T.alternate===null&&(T.flags|=67108866),T}function d(T,R,E,K){if(R===null||R.tag!==6)return R=Sh(E,T.mode,K),R.return=T,R._debugOwner=T,R._debugTask=T._debugTask,R._debugInfo=lt,R;return R=n(R,E),R.return=T,R._debugInfo=lt,R}function m(T,R,E,K){var pe=E.type;if(pe===Au)return R=O(T,R,E.props.children,K,E.key),vf(E,R,T),R;if(R!==null&&(R.elementType===pe||nx(R,E)||typeof pe==="object"&&pe!==null&&pe.$$typeof===qo&&nl(pe)===R.type))return R=n(R,E.props),ji(R,E),R.return=T,R._debugOwner=E._owner,R._debugInfo=lt,R;return R=cf(E,T.mode,K),ji(R,E),R.return=T,R._debugInfo=lt,R}function y(T,R,E,K){if(R===null||R.tag!==4||R.stateNode.containerInfo!==E.containerInfo||R.stateNode.implementation!==E.implementation)return R=Lh(E,T.mode,K),R.return=T,R._debugInfo=lt,R;return R=n(R,E.children||[]),R.return=T,R._debugInfo=lt,R}function O(T,R,E,K,pe){if(R===null||R.tag!==7)return R=us(E,T.mode,K,pe),R.return=T,R._debugOwner=T,R._debugTask=T._debugTask,R._debugInfo=lt,R;return R=n(R,E),R.return=T,R._debugInfo=lt,R}function q(T,R,E){if(typeof R==="string"&&R!==""||typeof R==="number"||typeof R==="bigint")return R=Sh(""+R,T.mode,E),R.return=T,R._debugOwner=T,R._debugTask=T._debugTask,R._debugInfo=lt,R;if(typeof R==="object"&&R!==null){switch(R.$$typeof){case Kn:return E=cf(R,T.mode,E),ji(E,R),E.return=T,T=Xa(R._debugInfo),E._debugInfo=lt,lt=T,E;case Ru:return R=Lh(R,T.mode,E),R.return=T,R._debugInfo=lt,R;case qo:var K=Xa(R._debugInfo);return R=nl(R),T=q(T,R,E),lt=K,T}if(Ea(R)||te(R))return E=us(R,T.mode,E,null),E.return=T,E._debugOwner=T,E._debugTask=T._debugTask,T=Xa(R._debugInfo),E._debugInfo=lt,lt=T,E;if(typeof R.then==="function")return K=Xa(R._debugInfo),T=q(T,bf(R),E),lt=K,T;if(R.$$typeof===Zn)return q(T,mf(T,R),E);xf(T,R)}return typeof R==="function"&&Sf(T,R),typeof R==="symbol"&&Lf(T,R),null}function I(T,R,E,K){var pe=R!==null?R.key:null;if(typeof E==="string"&&E!==""||typeof E==="number"||typeof E==="bigint")return pe!==null?null:d(T,R,""+E,K);if(typeof E==="object"&&E!==null){switch(E.$$typeof){case Kn:return E.key===pe?(pe=Xa(E._debugInfo),T=m(T,R,E,K),lt=pe,T):null;case Ru:return E.key===pe?y(T,R,E,K):null;case qo:return pe=Xa(E._debugInfo),E=nl(E),T=I(T,R,E,K),lt=pe,T}if(Ea(E)||te(E)){if(pe!==null)return null;return pe=Xa(E._debugInfo),T=O(T,R,E,K,null),lt=pe,T}if(typeof E.then==="function")return pe=Xa(E._debugInfo),T=I(T,R,bf(E),K),lt=pe,T;if(E.$$typeof===Zn)return I(T,R,mf(T,E),K);xf(T,E)}return typeof E==="function"&&Sf(T,E),typeof E==="symbol"&&Lf(T,E),null}function P(T,R,E,K,pe){if(typeof K==="string"&&K!==""||typeof K==="number"||typeof K==="bigint")return T=T.get(E)||null,d(R,T,""+K,pe);if(typeof K==="object"&&K!==null){switch(K.$$typeof){case Kn:return E=T.get(K.key===null?E:K.key)||null,T=Xa(K._debugInfo),R=m(R,E,K,pe),lt=T,R;case Ru:return T=T.get(K.key===null?E:K.key)||null,y(R,T,K,pe);case qo:var Ye=Xa(K._debugInfo);return K=nl(K),R=P(T,R,E,K,pe),lt=Ye,R}if(Ea(K)||te(K))return E=T.get(E)||null,T=Xa(K._debugInfo),R=O(R,E,K,pe,null),lt=T,R;if(typeof K.then==="function")return Ye=Xa(K._debugInfo),R=P(T,R,E,bf(K),pe),lt=Ye,R;if(K.$$typeof===Zn)return P(T,R,E,mf(R,K),pe);xf(R,K)}return typeof K==="function"&&Sf(R,K),typeof K==="symbol"&&Lf(R,K),null}function ue(T,R,E,K){if(typeof E!=="object"||E===null)return K;switch(E.$$typeof){case Kn:case Ru:h(T,R,E);var pe=E.key;if(typeof pe!=="string")break;if(K===null){K=new Set,K.add(pe);break}if(!K.has(pe)){K.add(pe);break}V(R,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.",pe)});break;case qo:E=nl(E),ue(T,R,E,K)}return K}function he(T,R,E,K){for(var pe=null,Ye=null,Ee=null,Te=R,tt=R=0,Wt=null;Te!==null&&tt<E.length;tt++){Te.index>tt?(Wt=Te,Te=null):Wt=Te.sibling;var ba=I(T,Te,E[tt],K);if(ba===null){Te===null&&(Te=Wt);break}pe=ue(T,ba,E[tt],pe),e&&Te&&ba.alternate===null&&t(T,Te),R=r(ba,R,tt),Ee===null?Ye=ba:Ee.sibling=ba,Ee=ba,Te=Wt}if(tt===E.length)return a(T,Te),bt&&Cr(T,tt),Ye;if(Te===null){for(;tt<E.length;tt++)Te=q(T,E[tt],K),Te!==null&&(pe=ue(T,Te,E[tt],pe),R=r(Te,R,tt),Ee===null?Ye=Te:Ee.sibling=Te,Ee=Te);return bt&&Cr(T,tt),Ye}for(Te=o(Te);tt<E.length;tt++)Wt=P(Te,T,tt,E[tt],K),Wt!==null&&(pe=ue(T,Wt,E[tt],pe),e&&Wt.alternate!==null&&Te.delete(Wt.key===null?tt:Wt.key),R=r(Wt,R,tt),Ee===null?Ye=Wt:Ee.sibling=Wt,Ee=Wt);return e&&Te.forEach(function(jr){return t(T,jr)}),bt&&Cr(T,tt),Ye}function Qt(T,R,E,K){if(E==null)throw Error("An iterable object provided no iterator.");for(var pe=null,Ye=null,Ee=R,Te=R=0,tt=null,Wt=null,ba=E.next();Ee!==null&&!ba.done;Te++,ba=E.next()){Ee.index>Te?(tt=Ee,Ee=null):tt=Ee.sibling;var jr=I(T,Ee,ba.value,K);if(jr===null){Ee===null&&(Ee=tt);break}Wt=ue(T,jr,ba.value,Wt),e&&Ee&&jr.alternate===null&&t(T,Ee),R=r(jr,R,Te),Ye===null?pe=jr:Ye.sibling=jr,Ye=jr,Ee=tt}if(ba.done)return a(T,Ee),bt&&Cr(T,Te),pe;if(Ee===null){for(;!ba.done;Te++,ba=E.next())Ee=q(T,ba.value,K),Ee!==null&&(Wt=ue(T,Ee,ba.value,Wt),R=r(Ee,R,Te),Ye===null?pe=Ee:Ye.sibling=Ee,Ye=Ee);return bt&&Cr(T,Te),pe}for(Ee=o(Ee);!ba.done;Te++,ba=E.next())tt=P(Ee,T,Te,ba.value,K),tt!==null&&(Wt=ue(T,tt,ba.value,Wt),e&&tt.alternate!==null&&Ee.delete(tt.key===null?Te:tt.key),R=r(tt,R,Te),Ye===null?pe=tt:Ye.sibling=tt,Ye=tt);return e&&Ee.forEach(function(EM){return t(T,EM)}),bt&&Cr(T,Te),pe}function wt(T,R,E,K){if(typeof E==="object"&&E!==null&&E.type===Au&&E.key===null&&(vf(E,null,T),E=E.props.children),typeof E==="object"&&E!==null){switch(E.$$typeof){case Kn:var pe=Xa(E._debugInfo);e:{for(var Ye=E.key;R!==null;){if(R.key===Ye){if(Ye=E.type,Ye===Au){if(R.tag===7){a(T,R.sibling),K=n(R,E.props.children),K.return=T,K._debugOwner=E._owner,K._debugInfo=lt,vf(E,K,T),T=K;break e}}else if(R.elementType===Ye||nx(R,E)||typeof Ye==="object"&&Ye!==null&&Ye.$$typeof===qo&&nl(Ye)===R.type){a(T,R.sibling),K=n(R,E.props),ji(K,E),K.return=T,K._debugOwner=E._owner,K._debugInfo=lt,T=K;break e}a(T,R);break}else t(T,R);R=R.sibling}E.type===Au?(K=us(E.props.children,T.mode,K,E.key),K.return=T,K._debugOwner=T,K._debugTask=T._debugTask,K._debugInfo=lt,vf(E,K,T),T=K):(K=cf(E,T.mode,K),ji(K,E),K.return=T,K._debugInfo=lt,T=K)}return T=u(T),lt=pe,T;case Ru:e:{pe=E;for(E=pe.key;R!==null;){if(R.key===E)if(R.tag===4&&R.stateNode.containerInfo===pe.containerInfo&&R.stateNode.implementation===pe.implementation){a(T,R.sibling),K=n(R,pe.children||[]),K.return=T,T=K;break e}else{a(T,R);break}else t(T,R);R=R.sibling}K=Lh(pe,T.mode,K),K.return=T,T=K}return u(T);case qo:return pe=Xa(E._debugInfo),E=nl(E),T=wt(T,R,E,K),lt=pe,T}if(Ea(E))return pe=Xa(E._debugInfo),T=he(T,R,E,K),lt=pe,T;if(te(E)){if(pe=Xa(E._debugInfo),Ye=te(E),typeof Ye!=="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var Ee=Ye.call(E);if(Ee===E){if(T.tag!==0||Object.prototype.toString.call(T.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(Ee)!=="[object Generator]")OC||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."),OC=!0}else E.entries!==Ye||Jy||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Jy=!0);return T=Qt(T,R,Ee,K),lt=pe,T}if(typeof E.then==="function")return pe=Xa(E._debugInfo),T=wt(T,R,bf(E),K),lt=pe,T;if(E.$$typeof===Zn)return wt(T,R,mf(T,E),K);xf(T,E)}if(typeof E==="string"&&E!==""||typeof E==="number"||typeof E==="bigint")return pe=""+E,R!==null&&R.tag===6?(a(T,R.sibling),K=n(R,pe),K.return=T,T=K):(a(T,R),K=Sh(pe,T.mode,K),K.return=T,K._debugOwner=T,K._debugTask=T._debugTask,K._debugInfo=lt,T=K),u(T);return typeof E==="function"&&Sf(T,E),typeof E==="symbol"&&Lf(T,E),a(T,R)}return function(T,R,E,K){var pe=lt;lt=null;try{Hc=0;var Ye=wt(T,R,E,K);return Qu=null,Ye}catch(Wt){if(Wt===$u||Wt===Dp)throw Wt;var Ee=w(29,Wt,null,T.mode);Ee.lanes=K,Ee.return=T;var Te=Ee._debugInfo=lt;if(Ee._debugOwner=T._debugOwner,Ee._debugTask=T._debugTask,Te!=null){for(var tt=Te.length-1;0<=tt;tt--)if(typeof Te[tt].stack==="string"){Ee._debugOwner=Te[tt],Ee._debugTask=Te[tt].debugTask;break}}return Ee}finally{lt=pe}}}function Ax(e,t){var a=Ea(e);return e=!a&&typeof te(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 qh(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Nh(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 rl(e){return{lane:e,tag:UC,payload:null,callback:null,next:null}}function ll(e,t,a){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,tv===o&&!HC){var n=F(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),
|
|
102
|
+
Please update the following component: %s`,n),HC=!0}if((Tt&qa)!==Ha)return n=o.pending,n===null?t.next=t:(t.next=n.next,n.next=t),o.pending=t,t=uf(e),ox(e,null,a),t;return sf(e,o,t,a),uf(e)}function Xi(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,ts(e,a)}}function Cf(e,t){var a=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,a===o)){var n=null,r=null;if(a=a.firstBaseUpdate,a!==null){do{var u={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};r===null?n=r=u:r=r.next=u,a=a.next}while(a!==null);r===null?n=r=t:r=r.next=t}else n=r=t;a={baseState:o.baseState,firstBaseUpdate:n,lastBaseUpdate:r,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 Yi(){if(av){var e=Yu;if(e!==null)throw e}}function $i(e,t,a,o){av=!1;var n=e.updateQueue;Il=!1,tv=n.shared;var{firstBaseUpdate:r,lastBaseUpdate:u}=n,d=n.shared.pending;if(d!==null){n.shared.pending=null;var m=d,y=m.next;m.next=null,u===null?r=y:u.next=y,u=m;var O=e.alternate;O!==null&&(O=O.updateQueue,d=O.lastBaseUpdate,d!==u&&(d===null?O.firstBaseUpdate=y:d.next=y,O.lastBaseUpdate=m))}if(r!==null){var q=n.baseState;u=0,O=y=m=null,d=r;do{var I=d.lane&-536870913,P=I!==d.lane;if(P?(st&I)===I:(o&I)===I){I!==0&&I===ks&&(av=!0),O!==null&&(O=O.next={lane:0,tag:d.tag,payload:d.payload,callback:null,next:null});e:{I=e;var ue=d,he=t,Qt=a;switch(ue.tag){case PC:if(ue=ue.payload,typeof ue==="function"){ju=!0;var wt=ue.call(Qt,q,he);if(I.mode&to){Yt(!0);try{ue.call(Qt,q,he)}finally{Yt(!1)}}ju=!1,q=wt;break e}q=ue;break e;case ev:I.flags=I.flags&-65537|128;case UC:if(wt=ue.payload,typeof wt==="function"){if(ju=!0,ue=wt.call(Qt,q,he),I.mode&to){Yt(!0);try{wt.call(Qt,q,he)}finally{Yt(!1)}}ju=!1}else ue=wt;if(ue===null||ue===void 0)break e;q=mt({},q,ue);break e;case _C:Il=!0}}I=d.callback,I!==null&&(e.flags|=64,P&&(e.flags|=8192),P=n.callbacks,P===null?n.callbacks=[I]:P.push(I))}else P={lane:I,tag:d.tag,payload:d.payload,callback:d.callback,next:null},O===null?(y=O=P,m=q):O=O.next=P,u|=I;if(d=d.next,d===null)if(d=n.shared.pending,d===null)break;else P=d,d=P.next,P.next=null,n.lastBaseUpdate=P,n.shared.pending=null}while(1);O===null&&(m=q),n.baseState=m,n.firstBaseUpdate=y,n.lastBaseUpdate=O,r===null&&(n.shared.lanes=0),Ml|=u,e.lanes=u,e.memoizedState=q}tv=null}function Mx(e,t){if(typeof e!=="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+e);e.call(t)}function TI(e,t){var a=e.shared.hiddenCallbacks;if(a!==null)for(e.shared.hiddenCallbacks=null,e=0;e<a.length;e++)Mx(a[e],t)}function Dx(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Mx(a[e],t)}function Ex(e,t){var a=sr;Ce(Op,a,e),Ce(Ku,t,e),sr=a|t.baseLanes}function Bh(e){Ce(Op,sr,e),Ce(Ku,Ku.current,e)}function zh(e){sr=Op.current,xe(Ku,e),xe(Op,e)}function sl(e){var t=e.alternate;Ce(va,va.current&Zu,e),Ce(Uo,e,e),en===null&&(t===null||Ku.current!==null?en=e:t.memoizedState!==null&&(en=e))}function Uh(e){Ce(va,va.current,e),Ce(Uo,e,e),en===null&&(en=e)}function Ox(e){e.tag===22?(Ce(va,va.current,e),Ce(Uo,e,e),en===null&&(en=e)):ul(e)}function ul(e){Ce(va,va.current,e),Ce(Uo,Uo.current,e)}function Do(e){xe(Uo,e),en===e&&(en=null),xe(va,e)}function wf(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Zg(a)||Wg(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 pt(){var e=H;an===null?an=[e]:an.push(e)}function re(){var e=H;if(an!==null&&(_r++,an[_r]!==e)){var t=F(Xe);if(!FC.has(t)&&(FC.add(t),an!==null)){for(var a="",o=0;o<=_r;o++){var n=an[o],r=o===_r?e:n;for(n=o+1+". "+n;30>n.length;)n+=" ";n+=r+`
|
|
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
|
|
106
106
|
------------------------------------------------------
|
|
107
107
|
%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
108
|
-
`,t,a)}}}function
|
|
108
|
+
`,t,a)}}}function hu(e){e===void 0||e===null||Ea(e)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",H,typeof e)}function kf(){var e=F(Xe);VC.has(e)||(VC.add(e),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",e))}function ha(){throw 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:
|
|
109
109
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
110
110
|
2. You might be breaking the Rules of Hooks
|
|
111
111
|
3. You might have more than one copy of React in the same app
|
|
112
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function
|
|
112
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function Ph(e,t){if(Vc)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.",H),!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`,_,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var a=0;a<t.length&&a<e.length;a++)if(!so(e[a],t[a]))return!1;return!0}function Ph(e,t,a,o,n,r){if(Nr=r,je=t,tn=e!==null?e._debugHookTypes:null,Ur=-1,Hc=e!==null&&e.type!==t.type,Object.prototype.toString.call(a)==="[object AsyncFunction]"||Object.prototype.toString.call(a)==="[object AsyncGeneratorFunction]")r=H(je),av.has(r)||(av.add(r),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.",r===null?"An unknown Component":"<"+r+">"));t.memoizedState=null,t.updateQueue=null,t.lanes=0,F.H=e!==null&&e.memoizedState!==null?nv:tn!==null?VC:ov,As=r=(t.mode&eo)!==He;var s=Qy(a,o,n);if(As=!1,Ku&&(s=_h(t,a,o,n)),r){Yt(!0);try{s=_h(t,a,o,n)}finally{Yt(!1)}}return Ox(e,t),s}function Ox(e,t){t._debugHookTypes=tn,t.dependencies===null?zr!==null&&(t.dependencies={lanes:0,firstContext:null,_debugThenableState:zr}):t.dependencies._debugThenableState=zr,F.H=Fc;var a=Vt!==null&&Vt.next!==null;if(Nr=0,tn=_=wa=Vt=je=null,Ur=-1,e!==null&&(e.flags&65011712)!==(t.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),qp=!1,_c=0,zr=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&&ff(e)&&(ka=!0)),zc?(zc=!1,e=!0):e=!1,e&&(t=H(t)||"Unknown",FC.has(t)||av.has(t)||(FC.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 _h(e,t,a,o){je=e;var n=0;do{if(Ku&&(zr=null),_c=0,Ku=!1,n>=u2)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(n+=1,Hc=!1,wa=Vt=null,e.updateQueue!=null){var r=e.updateQueue;r.lastEffect=null,r.events=null,r.stores=null,r.memoCache!=null&&(r.memoCache.index=0)}Ur=-1,F.H=jC,r=Qy(t,a,o)}while(Ku);return r}function kI(){var e=F.H,t=e.useState()[0];return t=typeof t.then==="function"?Xi(t):t,e=e.useState()[0],(Vt!==null?Vt.memoizedState:null)!==e&&(je.flags|=1024),t}function Hh(){var e=Bp!==0;return Bp=0,e}function Fh(e,t,a){t.updateQueue=e.updateQueue,t.flags=(t.mode&hn)!==He?t.flags&-402655237:t.flags&-2053,e.lanes&=~a}function Gh(e){if(qp){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}qp=!1}Nr=0,tn=wa=Vt=je=null,Ur=-1,_=null,Ku=!1,_c=Bp=0,zr=null}function oo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return wa===null?je.memoizedState=wa=e:wa=wa.next=e,wa}function Pt(){if(Vt===null){var e=je.alternate;e=e!==null?e.memoizedState:null}else e=Vt.next;var t=wa===null?je.memoizedState:wa.next;if(t!==null)wa=t,Vt=e;else{if(e===null){if(je.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.")}Vt=e,e={memoizedState:Vt.memoizedState,baseState:Vt.baseState,baseQueue:Vt.baseQueue,queue:Vt.queue,next:null},wa===null?je.memoizedState=wa=e:wa=wa.next=e}return wa}function kf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Xi(e){var t=_c;return _c+=1,zr===null&&(zr=bx()),e=Sx(zr,e,t),t=je,(wa===null?t.memoizedState:wa.next)===null&&(t=t.alternate,F.H=t!==null&&t.memoizedState!==null?nv:ov),e}function ul(e){if(e!==null&&typeof e==="object"){if(typeof e.then==="function")return Xi(e);if(e.$$typeof===Qn)return ta(e)}throw Error("An unsupported type was passed to use(): "+String(e))}function fs(e){var t=null,a=je.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var o=je.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=kf(),je.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0||Hc)for(a=t.data[t.index]=Array(e),o=0;o<e;o++)a[o]=_R;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 dn(e,t){return typeof t==="function"?t(e):t}function Vh(e,t,a){var o=oo();if(a!==void 0){var n=a(t);if(As){Yt(!0);try{a(t)}finally{Yt(!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=MI.bind(null,je,e),[o.memoizedState,e]}function pu(e){var t=Pt();return jh(t,Vt,e)}function jh(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,r=o.pending;if(r!==null){if(n!==null){var s=n.next;n.next=r.next,r.next=s}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=r,o.pending=null}if(r=e.baseState,n===null)e.memoizedState=r;else{t=n.next;var d=s=null,m=null,y=t,O=!1;do{var q=y.lane&-536870913;if(q!==y.lane?(st&q)===q:(Nr&q)===q){var I=y.revertLane;if(I===0)m!==null&&(m=m.next={lane:0,revertLane:0,gesture:null,action:y.action,hasEagerState:y.hasEagerState,eagerState:y.eagerState,next:null}),q===ws&&(O=!0);else if((Nr&I)===I){y=y.next,I===ws&&(O=!0);continue}else q={lane:0,revertLane:y.revertLane,gesture:null,action:y.action,hasEagerState:y.hasEagerState,eagerState:y.eagerState,next:null},m===null?(d=m=q,s=r):m=m.next=q,je.lanes|=I,Al|=I;q=y.action,As&&a(r,q),r=y.hasEagerState?y.eagerState:a(r,q)}else I={lane:q,revertLane:y.revertLane,gesture:y.gesture,action:y.action,hasEagerState:y.hasEagerState,eagerState:y.eagerState,next:null},m===null?(d=m=I,s=r):m=m.next=I,je.lanes|=q,Al|=q;y=y.next}while(y!==null&&y!==t);if(m===null?s=r:m.next=d,!so(r,e.memoizedState)&&(ka=!0,O&&(a=Vu,a!==null)))throw a;e.memoizedState=r,e.baseState=s,e.baseQueue=m,o.lastRenderedState=r}return n===null&&(o.lanes=0),[e.memoizedState,o.dispatch]}function Yi(e){var t=Pt(),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,r=t.memoizedState;if(n!==null){a.pending=null;var s=n=n.next;do r=e(r,s.action),s=s.next;while(s!==n);so(r,t.memoizedState)||(ka=!0),t.memoizedState=r,t.baseQueue===null&&(t.baseState=r),a.lastRenderedState=r}return[r,o]}function Xh(e,t,a){var o=je,n=oo();if(vt){if(a===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var r=a();Qu||r===a()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),Qu=!0)}else{if(r=t(),Qu||(a=t(),so(r,a)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Qu=!0)),jt===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(st&127)!==0||qx(o,t,r)}return n.memoizedState=r,a={value:r,getSnapshot:t},n.queue=a,Af(Nx.bind(null,o,a,e),[e]),o.flags|=2048,hu(en|co,{destroy:void 0},Bx.bind(null,o,a,r,t),null),r}function Tf(e,t,a){var o=je,n=Pt(),r=vt;if(r){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(),!Qu){var s=t();so(a,s)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Qu=!0)}if(s=!so((Vt||n).memoizedState,a))n.memoizedState=a,ka=!0;n=n.queue;var d=Nx.bind(null,o,n,e);if(ho(2048,co,d,[e]),n.getSnapshot!==t||s||wa!==null&&wa.memoizedState.tag&en){if(o.flags|=2048,hu(en|co,{destroy:void 0},Bx.bind(null,o,n,a,t),null),jt===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");r||(Nr&127)!==0||qx(o,t,a)}return a}function qx(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=je.updateQueue,t===null?(t=kf(),je.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function Bx(e,t,a,o){t.value=a,t.getSnapshot=o,zx(t)&&Ux(e)}function Nx(e,t,a){return a(function(){zx(t)&&(Bn(2,"updateSyncExternalStore()",e),Ux(e))})}function zx(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!so(e,a)}catch(o){return!0}}function Ux(e){var t=Wa(e,2);t!==null&&sa(t,e,2)}function Yh(e){var t=oo();if(typeof e==="function"){var a=e;if(e=a(),As){Yt(!0);try{a()}finally{Yt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:dn,lastRenderedState:e},t}function $h(e){e=Yh(e);var t=e.queue,a=o0.bind(null,je,t);return t.dispatch=a,[e.memoizedState,a]}function Qh(e){var t=oo();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=ig.bind(null,je,!0,a),a.dispatch=t,[e,t]}function Px(e,t){var a=Pt();return _x(a,Vt,e,t)}function _x(e,t,a,o){return e.baseState=a,jh(e,Vt,typeof o==="function"?o:dn)}function Hx(e,t){var a=Pt();if(Vt!==null)return _x(a,Vt,e,t);return a.baseState=e,[e,a.queue.dispatch]}function TI(e,t,a,o,n){if(Bf(e))throw Error("Cannot update form state while rendering.");if(e=t.action,e!==null){var r={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(s){r.listeners.push(s)}};F.T!==null?a(!0):r.isTransition=!1,o(r),a=t.pending,a===null?(r.next=t.pending=r,Fx(t,r)):(r.next=a.next,t.pending=a.next=r)}}function Fx(e,t){var{action:a,payload:o}=t,n=e.state;if(t.isTransition){var r=F.T,s={};s._updatedFibers=new Set,F.T=s;try{var d=a(n,o),m=F.S;m!==null&&m(s,d),Gx(e,t,d)}catch(y){Kh(e,t,y)}finally{r!==null&&s.types!==null&&(r.types!==null&&r.types!==s.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."),r.types=s.types),F.T=r,r===null&&s._updatedFibers&&(e=s._updatedFibers.size,s._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{s=a(n,o),Gx(e,t,s)}catch(y){Kh(e,t,y)}}function Gx(e,t,a){a!==null&&typeof a==="object"&&typeof a.then==="function"?(F.asyncTransitions++,a.then(qf,qf),a.then(function(o){Vx(e,t,o)},function(o){return Kh(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.")):Vx(e,t,a)}function Vx(e,t,a){t.status="fulfilled",t.value=a,jx(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Fx(e,a)))}function Kh(e,t,a){var o=e.pending;if(e.pending=null,o!==null){o=o.next;do t.status="rejected",t.reason=a,jx(t),t=t.next;while(t!==o)}e.action=null}function jx(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Xx(e,t){return t}function mu(e,t){if(vt){var a=jt.formState;if(a!==null){e:{var o=je;if(vt){if(Zt){t:{var n=Zt;for(var r=Zo;n.nodeType!==8;){if(!r){n=null;break t}if(n=Do(n.nextSibling),n===null){n=null;break t}}r=n.data,n=r===Iv||r===Mw?n:null}if(n){Zt=Do(n.nextSibling),o=n.data===Iv;break e}}tl(o)}o=!1}o&&(t=a[0])}}return a=oo(),a.memoizedState=a.baseState=t,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xx,lastRenderedState:t},a.queue=o,a=o0.bind(null,je,o),o.dispatch=a,o=Yh(!1),r=ig.bind(null,je,!1,o.queue),o=oo(),n={state:t,dispatch:null,action:e,pending:null},o.queue=n,a=TI.bind(null,je,n,r,a),n.dispatch=a,o.memoizedState=e,[t,a,!1]}function If(e){var t=Pt();return Yx(t,Vt,e)}function Yx(e,t,a){if(t=jh(e,t,Xx)[0],e=pu(dn)[0],typeof t==="object"&&t!==null&&typeof t.then==="function")try{var o=Xi(t)}catch(s){if(s===ju)throw Mp;throw s}else o=t;t=Pt();var n=t.queue,r=n.dispatch;return a!==t.memoizedState&&(je.flags|=2048,hu(en|co,{destroy:void 0},II.bind(null,n,a),null)),[o,r,e]}function II(e,t){e.action=t}function Rf(e){var t=Pt(),a=Vt;if(a!==null)return Yx(t,a,e);Pt(),t=t.memoizedState,a=Pt();var o=a.queue.dispatch;return a.memoizedState=e,[t,o,!1]}function hu(e,t,a,o){return e={tag:e,create:a,deps:o,inst:t,next:null},t=je.updateQueue,t===null&&(t=kf(),je.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 Zh(e){var t=oo();return e={current:e},t.memoizedState=e}function ps(e,t,a,o){var n=oo();je.flags|=e,n.memoizedState=hu(en|t,{destroy:void 0},a,o===void 0?null:o)}function ho(e,t,a,o){var n=Pt();o=o===void 0?null:o;var r=n.memoizedState.inst;Vt!==null&&o!==null&&Uh(o,Vt.memoizedState.deps)?n.memoizedState=hu(t,r,a,o):(je.flags|=e,n.memoizedState=hu(en|t,r,a,o))}function Af(e,t){(je.mode&hn)!==He?ps(276826112,co,e,t):ps(8390656,co,e,t)}function RI(e){je.flags|=4;var t=je.updateQueue;if(t===null)t=kf(),je.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Wh(e){var t=oo(),a={impl:e};return t.memoizedState=a,function(){if((kt&Ea)!==Pa)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return a.impl.apply(void 0,arguments)}}function Mf(e){var t=Pt().memoizedState;return RI({ref:t,nextImpl:e}),function(){if((kt&Ea)!==Pa)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return t.impl.apply(void 0,arguments)}}function Jh(e,t){var a=4194308;return(je.mode&hn)!==He&&(a|=134217728),ps(a,zo,e,t)}function $x(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 eg(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;(je.mode&hn)!==He&&(o|=134217728),ps(o,zo,$x.bind(null,t,e),a)}function Df(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,ho(4,zo,$x.bind(null,t,e),a)}function tg(e,t){return oo().memoizedState=[e,t===void 0?null:t],e}function Ef(e,t){var a=Pt();t=t===void 0?null:t;var o=a.memoizedState;if(t!==null&&Uh(t,o[1]))return o[0];return a.memoizedState=[e,t],e}function ag(e,t){var a=oo();t=t===void 0?null:t;var o=e();if(As){Yt(!0);try{e()}finally{Yt(!1)}}return a.memoizedState=[o,t],o}function Of(e,t){var a=Pt();t=t===void 0?null:t;var o=a.memoizedState;if(t!==null&&Uh(t,o[1]))return o[0];if(o=e(),As){Yt(!0);try{e()}finally{Yt(!1)}}return a.memoizedState=[o,t],o}function og(e,t){var a=oo();return ng(a,e,t)}function Qx(e,t){var a=Pt();return Zx(a,Vt.memoizedState,e,t)}function Kx(e,t){var a=Pt();return Vt===null?ng(a,e,t):Zx(a,Vt.memoizedState,e,t)}function ng(e,t,a){if(a===void 0||(Nr&1073741824)!==0&&(st&261930)===0)return e.memoizedState=t;return e.memoizedState=a,e=W0(),je.lanes|=e,Al|=e,a}function Zx(e,t,a,o){if(so(a,t))return a;if(Yu.current!==null)return e=ng(e,a,o),so(e,t)||(ka=!0),e;if((Nr&42)===0||(Nr&1073741824)!==0&&(st&261930)===0)return ka=!0,e.memoizedState=a;return e=W0(),je.lanes|=e,Al|=e,t}function qf(){F.asyncTransitions--}function Wx(e,t,a,o,n){var r=Bt.p;Bt.p=r!==0&&r<mn?r:mn;var s=F.T,d={};d._updatedFibers=new Set,F.T=d,ig(e,!1,t,a);try{var m=n(),y=F.S;if(y!==null&&y(d,m),m!==null&&typeof m==="object"&&typeof m.then==="function"){F.asyncTransitions++,m.then(qf,qf);var O=CI(m,o);$i(e,t,O,Mo(e))}else $i(e,t,o,Mo(e))}catch(q){$i(e,t,{then:function(){},status:"rejected",reason:q},Mo(e))}finally{Bt.p=r,s!==null&&d.types!==null&&(s.types!==null&&s.types!==d.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=d.types),F.T=s,s===null&&d._updatedFibers&&(e=d._updatedFibers.size,d._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 rg(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=Jx(e).queue;SI(e),Wx(e,n,t,_s,a===null?L:function(){return e0(e),a(o)})}function Jx(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:_s,baseState:_s,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:dn,lastRenderedState:_s},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:dn,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function e0(e){F.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var t=Jx(e);t.next===null&&(t=e.alternate.memoizedState),$i(e,t.next.queue,{},Mo(e))}function lg(){var e=Yh(!1);return e=Wx.bind(null,je,e.queue,!0,!1),oo().memoizedState=e,[!1,e]}function t0(){var e=pu(dn)[0],t=Pt().memoizedState;return[typeof e==="boolean"?e:Xi(e),t]}function a0(){var e=Yi(dn)[0],t=Pt().memoizedState;return[typeof e==="boolean"?e:Xi(e),t]}function ms(){return ta(od)}function sg(){var e=oo(),t=jt.identifierPrefix;if(vt){var a=Dr,o=Mr;a=(o&~(1<<32-no(o)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Bp++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=s2++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t}function ug(){return oo().memoizedState=AI.bind(null,je)}function AI(e,t){for(var a=e.return;a!==null;){switch(a.tag){case 24:case 3:var o=Mo(a),n=nl(o),r=rl(a,n,o);r!==null&&(Bn(o,"refresh()",e),sa(r,a,o),Gi(r,a,o)),e=Rh(),t!==null&&t!==void 0&&r!==null&&console.error("The seed argument is not enabled outside experimental channels."),n.payload={cache:e};return}a=a.return}}function MI(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=Mo(e);var n={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};Bf(e)?n0(t,n):(n=gh(e,t,n,o),n!==null&&(Bn(o,"dispatch()",e),sa(n,e,o),r0(n,t,o)))}function o0(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=Mo(e),$i(e,t,a,o)&&Bn(o,"setState()",e)}function $i(e,t,a,o){var n={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Bf(e))n0(t,n);else{var r=e.alternate;if(e.lanes===0&&(r===null||r.lanes===0)&&(r=t.lastRenderedReducer,r!==null)){var s=F.H;F.H=yn;try{var d=t.lastRenderedState,m=r(d,a);if(n.hasEagerState=!0,n.eagerState=m,so(m,d))return lf(e,t,n,0),jt===null&&rf(),!1}catch(y){}finally{F.H=s}}if(a=gh(e,t,n,o),a!==null)return sa(a,e,o),r0(a,t,o),!0}return!1}function ig(e,t,a,o){if(F.T===null&&ws===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:Pg(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},Bf(e)){if(t)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else t=gh(e,a,o,2),t!==null&&(Bn(2,"setOptimistic()",e),sa(t,e,2))}function Bf(e){var t=e.alternate;return e===je||t!==null&&t===je}function n0(e,t){Ku=qp=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function r0(e,t,a){if((a&4194048)!==0){var o=t.lanes;o&=e.pendingLanes,a|=o,t.lanes=a,es(e,a)}}function cg(e){if(e!==null&&typeof e!=="function"){var t=String(e);aw.has(t)||(aw.add(t),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",e))}}function dg(e,t,a,o){var n=e.memoizedState,r=a(o,n);if(e.mode&eo){Yt(!0);try{r=a(o,n)}finally{Yt(!1)}}r===void 0&&(t=X(t)||"Component",WC.has(t)||(WC.add(t),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",t))),n=r===null||r===void 0?n:mt({},n,r),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}function l0(e,t,a,o,n,r,s){var d=e.stateNode;if(typeof d.shouldComponentUpdate==="function"){if(a=d.shouldComponentUpdate(o,r,s),e.mode&eo){Yt(!0);try{a=d.shouldComponentUpdate(o,r,s)}finally{Yt(!1)}}return a===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",X(t)||"Component"),a}return t.prototype&&t.prototype.isPureReactComponent?!Ni(a,o)||!Ni(n,r):!0}function s0(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=H(e)||"Component",YC.has(e)||(YC.add(e),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",e)),rv.enqueueReplaceState(t,t.state,null))}function hs(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=mt({},a));for(var n in e)a[n]===void 0&&(a[n]=e[n])}return a}function u0(e){Ny(e),console.warn(`%s
|
|
115
|
+
Incoming: %s`,H,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var a=0;a<t.length&&a<e.length;a++)if(!uo(e[a],t[a]))return!1;return!0}function _h(e,t,a,o,n,r){if(Ur=r,Xe=t,an=e!==null?e._debugHookTypes:null,_r=-1,Vc=e!==null&&e.type!==t.type,Object.prototype.toString.call(a)==="[object AsyncFunction]"||Object.prototype.toString.call(a)==="[object AsyncGeneratorFunction]")r=F(Xe),ov.has(r)||(ov.add(r),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.",r===null?"An unknown Component":"<"+r+">"));t.memoizedState=null,t.updateQueue=null,t.lanes=0,G.H=e!==null&&e.memoizedState!==null?rv:an!==null?jC:nv,Ms=r=(t.mode&to)!==Ge;var u=Ky(a,o,n);if(Ms=!1,Ju&&(u=Hh(t,a,o,n)),r){Yt(!0);try{u=Hh(t,a,o,n)}finally{Yt(!1)}}return qx(e,t),u}function qx(e,t){t._debugHookTypes=an,t.dependencies===null?Pr!==null&&(t.dependencies={lanes:0,firstContext:null,_debugThenableState:Pr}):t.dependencies._debugThenableState=Pr,G.H=jc;var a=jt!==null&&jt.next!==null;if(Ur=0,an=H=ka=jt=Xe=null,_r=-1,e!==null&&(e.flags&65011712)!==(t.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),Np=!1,Gc=0,Pr=null,a)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");e===null||Ta||(e=e.dependencies,e!==null&&pf(e)&&(Ta=!0)),_c?(_c=!1,e=!0):e=!1,e&&(t=F(t)||"Unknown",GC.has(t)||ov.has(t)||(GC.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 Hh(e,t,a,o){Xe=e;var n=0;do{if(Ju&&(Pr=null),Gc=0,Ju=!1,n>=cM)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(n+=1,Vc=!1,ka=jt=null,e.updateQueue!=null){var r=e.updateQueue;r.lastEffect=null,r.events=null,r.stores=null,r.memoCache!=null&&(r.memoCache.index=0)}_r=-1,G.H=XC,r=Ky(t,a,o)}while(Ju);return r}function II(){var e=G.H,t=e.useState()[0];return t=typeof t.then==="function"?Qi(t):t,e=e.useState()[0],(jt!==null?jt.memoizedState:null)!==e&&(Xe.flags|=1024),t}function Fh(){var e=Bp!==0;return Bp=0,e}function Gh(e,t,a){t.updateQueue=e.updateQueue,t.flags=(t.mode&gn)!==Ge?t.flags&-402655237:t.flags&-2053,e.lanes&=~a}function Vh(e){if(Np){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Np=!1}Ur=0,an=ka=jt=Xe=null,_r=-1,H=null,Ju=!1,Gc=Bp=0,Pr=null}function no(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ka===null?Xe.memoizedState=ka=e:ka=ka.next=e,ka}function Pt(){if(jt===null){var e=Xe.alternate;e=e!==null?e.memoizedState:null}else e=jt.next;var t=ka===null?Xe.memoizedState:ka.next;if(t!==null)ka=t,jt=e;else{if(e===null){if(Xe.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.")}jt=e,e={memoizedState:jt.memoizedState,baseState:jt.baseState,baseQueue:jt.baseQueue,queue:jt.queue,next:null},ka===null?Xe.memoizedState=ka=e:ka=ka.next=e}return ka}function Tf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Qi(e){var t=Gc;return Gc+=1,Pr===null&&(Pr=xx()),e=Lx(Pr,e,t),t=Xe,(ka===null?t.memoizedState:ka.next)===null&&(t=t.alternate,G.H=t!==null&&t.memoizedState!==null?rv:nv),e}function il(e){if(e!==null&&typeof e==="object"){if(typeof e.then==="function")return Qi(e);if(e.$$typeof===Zn)return ta(e)}throw Error("An unsupported type was passed to use(): "+String(e))}function ps(e){var t=null,a=Xe.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var o=Xe.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=Tf(),Xe.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0||Vc)for(a=t.data[t.index]=Array(e),o=0;o<e;o++)a[o]=FR;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 fn(e,t){return typeof t==="function"?t(e):t}function jh(e,t,a){var o=no();if(a!==void 0){var n=a(t);if(Ms){Yt(!0);try{a(t)}finally{Yt(!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=EI.bind(null,Xe,e),[o.memoizedState,e]}function gu(e){var t=Pt();return Xh(t,jt,e)}function Xh(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,r=o.pending;if(r!==null){if(n!==null){var u=n.next;n.next=r.next,r.next=u}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=r,o.pending=null}if(r=e.baseState,n===null)e.memoizedState=r;else{t=n.next;var d=u=null,m=null,y=t,O=!1;do{var q=y.lane&-536870913;if(q!==y.lane?(st&q)===q:(Ur&q)===q){var I=y.revertLane;if(I===0)m!==null&&(m=m.next={lane:0,revertLane:0,gesture:null,action:y.action,hasEagerState:y.hasEagerState,eagerState:y.eagerState,next:null}),q===ks&&(O=!0);else if((Ur&I)===I){y=y.next,I===ks&&(O=!0);continue}else q={lane:0,revertLane:y.revertLane,gesture:null,action:y.action,hasEagerState:y.hasEagerState,eagerState:y.eagerState,next:null},m===null?(d=m=q,u=r):m=m.next=q,Xe.lanes|=I,Ml|=I;q=y.action,Ms&&a(r,q),r=y.hasEagerState?y.eagerState:a(r,q)}else I={lane:q,revertLane:y.revertLane,gesture:y.gesture,action:y.action,hasEagerState:y.hasEagerState,eagerState:y.eagerState,next:null},m===null?(d=m=I,u=r):m=m.next=I,Xe.lanes|=q,Ml|=q;y=y.next}while(y!==null&&y!==t);if(m===null?u=r:m.next=d,!uo(r,e.memoizedState)&&(Ta=!0,O&&(a=Yu,a!==null)))throw a;e.memoizedState=r,e.baseState=u,e.baseQueue=m,o.lastRenderedState=r}return n===null&&(o.lanes=0),[e.memoizedState,o.dispatch]}function Ki(e){var t=Pt(),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,r=t.memoizedState;if(n!==null){a.pending=null;var u=n=n.next;do r=e(r,u.action),u=u.next;while(u!==n);uo(r,t.memoizedState)||(Ta=!0),t.memoizedState=r,t.baseQueue===null&&(t.baseState=r),a.lastRenderedState=r}return[r,o]}function Yh(e,t,a){var o=Xe,n=no();if(bt){if(a===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var r=a();Wu||r===a()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),Wu=!0)}else{if(r=t(),Wu||(a=t(),uo(r,a)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Wu=!0)),Xt===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(st&127)!==0||Nx(o,t,r)}return n.memoizedState=r,a={value:r,getSnapshot:t},n.queue=a,Mf(zx.bind(null,o,a,e),[e]),o.flags|=2048,vu(tn|fo,{destroy:void 0},Bx.bind(null,o,a,r,t),null),r}function If(e,t,a){var o=Xe,n=Pt(),r=bt;if(r){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(),!Wu){var u=t();uo(a,u)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Wu=!0)}if(u=!uo((jt||n).memoizedState,a))n.memoizedState=a,Ta=!0;n=n.queue;var d=zx.bind(null,o,n,e);if(yo(2048,fo,d,[e]),n.getSnapshot!==t||u||ka!==null&&ka.memoizedState.tag&tn){if(o.flags|=2048,vu(tn|fo,{destroy:void 0},Bx.bind(null,o,n,a,t),null),Xt===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");r||(Ur&127)!==0||Nx(o,t,a)}return a}function Nx(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=Xe.updateQueue,t===null?(t=Tf(),Xe.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function Bx(e,t,a,o){t.value=a,t.getSnapshot=o,Ux(t)&&Px(e)}function zx(e,t,a){return a(function(){Ux(t)&&(zn(2,"updateSyncExternalStore()",e),Px(e))})}function Ux(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!uo(e,a)}catch(o){return!0}}function Px(e){var t=Ja(e,2);t!==null&&ia(t,e,2)}function $h(e){var t=no();if(typeof e==="function"){var a=e;if(e=a(),Ms){Yt(!0);try{a()}finally{Yt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:fn,lastRenderedState:e},t}function Qh(e){e=$h(e);var t=e.queue,a=n0.bind(null,Xe,t);return t.dispatch=a,[e.memoizedState,a]}function Kh(e){var t=no();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=cg.bind(null,Xe,!0,a),a.dispatch=t,[e,t]}function _x(e,t){var a=Pt();return Hx(a,jt,e,t)}function Hx(e,t,a,o){return e.baseState=a,Xh(e,jt,typeof o==="function"?o:fn)}function Fx(e,t){var a=Pt();if(jt!==null)return Hx(a,jt,e,t);return a.baseState=e,[e,a.queue.dispatch]}function RI(e,t,a,o,n){if(Bf(e))throw Error("Cannot update form state while rendering.");if(e=t.action,e!==null){var r={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(u){r.listeners.push(u)}};G.T!==null?a(!0):r.isTransition=!1,o(r),a=t.pending,a===null?(r.next=t.pending=r,Gx(t,r)):(r.next=a.next,t.pending=a.next=r)}}function Gx(e,t){var{action:a,payload:o}=t,n=e.state;if(t.isTransition){var r=G.T,u={};u._updatedFibers=new Set,G.T=u;try{var d=a(n,o),m=G.S;m!==null&&m(u,d),Vx(e,t,d)}catch(y){Zh(e,t,y)}finally{r!==null&&u.types!==null&&(r.types!==null&&r.types!==u.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."),r.types=u.types),G.T=r,r===null&&u._updatedFibers&&(e=u._updatedFibers.size,u._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{u=a(n,o),Vx(e,t,u)}catch(y){Zh(e,t,y)}}function Vx(e,t,a){a!==null&&typeof a==="object"&&typeof a.then==="function"?(G.asyncTransitions++,a.then(Nf,Nf),a.then(function(o){jx(e,t,o)},function(o){return Zh(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.")):jx(e,t,a)}function jx(e,t,a){t.status="fulfilled",t.value=a,Xx(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Gx(e,a)))}function Zh(e,t,a){var o=e.pending;if(e.pending=null,o!==null){o=o.next;do t.status="rejected",t.reason=a,Xx(t),t=t.next;while(t!==o)}e.action=null}function Xx(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Yx(e,t){return t}function yu(e,t){if(bt){var a=Xt.formState;if(a!==null){e:{var o=Xe;if(bt){if(Zt){t:{var n=Zt;for(var r=Wo;n.nodeType!==8;){if(!r){n=null;break t}if(n=Oo(n.nextSibling),n===null){n=null;break t}}r=n.data,n=r===Rv||r===Dw?n:null}if(n){Zt=Oo(n.nextSibling),o=n.data===Rv;break e}}al(o)}o=!1}o&&(t=a[0])}}return a=no(),a.memoizedState=a.baseState=t,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yx,lastRenderedState:t},a.queue=o,a=n0.bind(null,Xe,o),o.dispatch=a,o=$h(!1),r=cg.bind(null,Xe,!1,o.queue),o=no(),n={state:t,dispatch:null,action:e,pending:null},o.queue=n,a=RI.bind(null,Xe,n,r,a),n.dispatch=a,o.memoizedState=e,[t,a,!1]}function Rf(e){var t=Pt();return $x(t,jt,e)}function $x(e,t,a){if(t=Xh(e,t,Yx)[0],e=gu(fn)[0],typeof t==="object"&&t!==null&&typeof t.then==="function")try{var o=Qi(t)}catch(u){if(u===$u)throw Dp;throw u}else o=t;t=Pt();var n=t.queue,r=n.dispatch;return a!==t.memoizedState&&(Xe.flags|=2048,vu(tn|fo,{destroy:void 0},AI.bind(null,n,a),null)),[o,r,e]}function AI(e,t){e.action=t}function Af(e){var t=Pt(),a=jt;if(a!==null)return $x(t,a,e);Pt(),t=t.memoizedState,a=Pt();var o=a.queue.dispatch;return a.memoizedState=e,[t,o,!1]}function vu(e,t,a,o){return e={tag:e,create:a,deps:o,inst:t,next:null},t=Xe.updateQueue,t===null&&(t=Tf(),Xe.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 Wh(e){var t=no();return e={current:e},t.memoizedState=e}function ms(e,t,a,o){var n=no();Xe.flags|=e,n.memoizedState=vu(tn|t,{destroy:void 0},a,o===void 0?null:o)}function yo(e,t,a,o){var n=Pt();o=o===void 0?null:o;var r=n.memoizedState.inst;jt!==null&&o!==null&&Ph(o,jt.memoizedState.deps)?n.memoizedState=vu(t,r,a,o):(Xe.flags|=e,n.memoizedState=vu(tn|t,r,a,o))}function Mf(e,t){(Xe.mode&gn)!==Ge?ms(276826112,fo,e,t):ms(8390656,fo,e,t)}function MI(e){Xe.flags|=4;var t=Xe.updateQueue;if(t===null)t=Tf(),Xe.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Jh(e){var t=no(),a={impl:e};return t.memoizedState=a,function(){if((Tt&qa)!==Ha)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return a.impl.apply(void 0,arguments)}}function Df(e){var t=Pt().memoizedState;return MI({ref:t,nextImpl:e}),function(){if((Tt&qa)!==Ha)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return t.impl.apply(void 0,arguments)}}function eg(e,t){var a=4194308;return(Xe.mode&gn)!==Ge&&(a|=134217728),ms(a,Po,e,t)}function Qx(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 tg(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;(Xe.mode&gn)!==Ge&&(o|=134217728),ms(o,Po,Qx.bind(null,t,e),a)}function Ef(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,yo(4,Po,Qx.bind(null,t,e),a)}function ag(e,t){return no().memoizedState=[e,t===void 0?null:t],e}function Of(e,t){var a=Pt();t=t===void 0?null:t;var o=a.memoizedState;if(t!==null&&Ph(t,o[1]))return o[0];return a.memoizedState=[e,t],e}function og(e,t){var a=no();t=t===void 0?null:t;var o=e();if(Ms){Yt(!0);try{e()}finally{Yt(!1)}}return a.memoizedState=[o,t],o}function qf(e,t){var a=Pt();t=t===void 0?null:t;var o=a.memoizedState;if(t!==null&&Ph(t,o[1]))return o[0];if(o=e(),Ms){Yt(!0);try{e()}finally{Yt(!1)}}return a.memoizedState=[o,t],o}function ng(e,t){var a=no();return rg(a,e,t)}function Kx(e,t){var a=Pt();return Wx(a,jt.memoizedState,e,t)}function Zx(e,t){var a=Pt();return jt===null?rg(a,e,t):Wx(a,jt.memoizedState,e,t)}function rg(e,t,a){if(a===void 0||(Ur&1073741824)!==0&&(st&261930)===0)return e.memoizedState=t;return e.memoizedState=a,e=J0(),Xe.lanes|=e,Ml|=e,a}function Wx(e,t,a,o){if(uo(a,t))return a;if(Ku.current!==null)return e=rg(e,a,o),uo(e,t)||(Ta=!0),e;if((Ur&42)===0||(Ur&1073741824)!==0&&(st&261930)===0)return Ta=!0,e.memoizedState=a;return e=J0(),Xe.lanes|=e,Ml|=e,t}function Nf(){G.asyncTransitions--}function Jx(e,t,a,o,n){var r=zt.p;zt.p=r!==0&&r<hn?r:hn;var u=G.T,d={};d._updatedFibers=new Set,G.T=d,cg(e,!1,t,a);try{var m=n(),y=G.S;if(y!==null&&y(d,m),m!==null&&typeof m==="object"&&typeof m.then==="function"){G.asyncTransitions++,m.then(Nf,Nf);var O=kI(m,o);Zi(e,t,O,Eo(e))}else Zi(e,t,o,Eo(e))}catch(q){Zi(e,t,{then:function(){},status:"rejected",reason:q},Eo(e))}finally{zt.p=r,u!==null&&d.types!==null&&(u.types!==null&&u.types!==d.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=d.types),G.T=u,u===null&&d._updatedFibers&&(e=d._updatedFibers.size,d._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 lg(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=e0(e).queue;CI(e),Jx(e,n,t,Hs,a===null?x:function(){return t0(e),a(o)})}function e0(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Hs,baseState:Hs,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fn,lastRenderedState:Hs},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fn,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function t0(e){G.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var t=e0(e);t.next===null&&(t=e.alternate.memoizedState),Zi(e,t.next.queue,{},Eo(e))}function sg(){var e=$h(!1);return e=Jx.bind(null,Xe,e.queue,!0,!1),no().memoizedState=e,[!1,e]}function a0(){var e=gu(fn)[0],t=Pt().memoizedState;return[typeof e==="boolean"?e:Qi(e),t]}function o0(){var e=Ki(fn)[0],t=Pt().memoizedState;return[typeof e==="boolean"?e:Qi(e),t]}function hs(){return ta(ld)}function ug(){var e=no(),t=Xt.identifierPrefix;if(bt){var a=Or,o=Er;a=(o&~(1<<32-ro(o)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Bp++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=iM++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t}function ig(){return no().memoizedState=DI.bind(null,Xe)}function DI(e,t){for(var a=e.return;a!==null;){switch(a.tag){case 24:case 3:var o=Eo(a),n=rl(o),r=ll(a,n,o);r!==null&&(zn(o,"refresh()",e),ia(r,a,o),Xi(r,a,o)),e=Ah(),t!==null&&t!==void 0&&r!==null&&console.error("The seed argument is not enabled outside experimental channels."),n.payload={cache:e};return}a=a.return}}function EI(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=Eo(e);var n={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};Bf(e)?r0(t,n):(n=yh(e,t,n,o),n!==null&&(zn(o,"dispatch()",e),ia(n,e,o),l0(n,t,o)))}function n0(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=Eo(e),Zi(e,t,a,o)&&zn(o,"setState()",e)}function Zi(e,t,a,o){var n={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Bf(e))r0(t,n);else{var r=e.alternate;if(e.lanes===0&&(r===null||r.lanes===0)&&(r=t.lastRenderedReducer,r!==null)){var u=G.H;G.H=vn;try{var d=t.lastRenderedState,m=r(d,a);if(n.hasEagerState=!0,n.eagerState=m,uo(m,d))return sf(e,t,n,0),Xt===null&&lf(),!1}catch(y){}finally{G.H=u}}if(a=yh(e,t,n,o),a!==null)return ia(a,e,o),l0(a,t,o),!0}return!1}function cg(e,t,a,o){if(G.T===null&&ks===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:_g(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},Bf(e)){if(t)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else t=yh(e,a,o,2),t!==null&&(zn(2,"setOptimistic()",e),ia(t,e,2))}function Bf(e){var t=e.alternate;return e===Xe||t!==null&&t===Xe}function r0(e,t){Ju=Np=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function l0(e,t,a){if((a&4194048)!==0){var o=t.lanes;o&=e.pendingLanes,a|=o,t.lanes=a,ts(e,a)}}function dg(e){if(e!==null&&typeof e!=="function"){var t=String(e);ow.has(t)||(ow.add(t),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",e))}}function fg(e,t,a,o){var n=e.memoizedState,r=a(o,n);if(e.mode&to){Yt(!0);try{r=a(o,n)}finally{Yt(!1)}}r===void 0&&(t=Y(t)||"Component",JC.has(t)||(JC.add(t),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",t))),n=r===null||r===void 0?n:mt({},n,r),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}function s0(e,t,a,o,n,r,u){var d=e.stateNode;if(typeof d.shouldComponentUpdate==="function"){if(a=d.shouldComponentUpdate(o,r,u),e.mode&to){Yt(!0);try{a=d.shouldComponentUpdate(o,r,u)}finally{Yt(!1)}}return a===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",Y(t)||"Component"),a}return t.prototype&&t.prototype.isPureReactComponent?!Pi(a,o)||!Pi(n,r):!0}function u0(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=F(e)||"Component",$C.has(e)||($C.add(e),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",e)),lv.enqueueReplaceState(t,t.state,null))}function gs(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=mt({},a));for(var n in e)a[n]===void 0&&(a[n]=e[n])}return a}function i0(e){zy(e),console.warn(`%s
|
|
116
116
|
|
|
117
117
|
%s
|
|
118
|
-
`,
|
|
119
|
-
Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function
|
|
118
|
+
`,ei?"An error occurred in the <"+ei+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
|
|
119
|
+
Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function c0(e){var t=ei?"The above error occurred in the <"+ei+"> component.":"The above error occurred in one of your React components.",a="React will try to recreate this component tree from scratch using the error boundary you provided, "+((sv||"Anonymous")+".");if(typeof e==="object"&&e!==null&&typeof e.environmentName==="string"){var o=e.environmentName;e=[`%o
|
|
120
120
|
|
|
121
121
|
%s
|
|
122
122
|
|
|
123
123
|
%s
|
|
124
|
-
`,e,t,a].slice(0),typeof e[0]==="string"?e.splice(0,1,
|
|
124
|
+
`,e,t,a].slice(0),typeof e[0]==="string"?e.splice(0,1,Pw+" "+e[0],_w,sm+o+sm,Hw):e.splice(0,0,Pw,_w,sm+o+sm,Hw),e.unshift(console),o=MM.apply(console.error,e),o()}else console.error(`%o
|
|
125
125
|
|
|
126
126
|
%s
|
|
127
127
|
|
|
128
128
|
%s
|
|
129
|
-
`,e,t,a)}function
|
|
129
|
+
`,e,t,a)}function d0(e){zy(e)}function zf(e,t){try{ei=t.source?F(t.source):null,sv=null;var a=t.value;if(G.actQueue!==null)G.thrownErrors.push(a);else{var o=e.onUncaughtError;o(a,{componentStack:t.stack})}}catch(n){setTimeout(function(){throw n})}}function f0(e,t,a){try{ei=a.source?F(a.source):null,sv=F(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 pg(e,t,a){return a=rl(a),a.tag=ev,a.payload={element:null},a.callback=function(){V(t.source,zf,e,t)},a}function mg(e){return e=rl(e),e.tag=ev,e}function hg(e,t,a,o){var n=a.type.getDerivedStateFromError;if(typeof n==="function"){var r=o.value;e.payload=function(){return n(r)},e.callback=function(){rx(a),V(o.source,f0,t,a,o)}}var u=a.stateNode;u!==null&&typeof u.componentDidCatch==="function"&&(e.callback=function(){rx(a),V(o.source,f0,t,a,o),typeof n!=="function"&&(El===null?El=new Set([this]):El.add(this)),rM(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.",F(a)||"Unknown")})}function OI(e,t,a,o,n){if(a.flags|=32768,er&&rc(e,n),o!==null&&typeof o==="object"&&typeof o.then==="function"){if(t=a.alternate,t!==null&&mu(t,a,n,!0),bt&&(or=!0),a=Uo.current,a!==null){switch(a.tag){case 31:case 13:return en===null?Xf():a.alternate===null&&la===Fr&&(la=Pp),a.flags&=-257,a.flags|=65536,a.lanes=n,o===Ep?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([o]):t.add(o),Bg(e,o,n)),!1;case 22:return a.flags|=65536,o===Ep?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)),Bg(e,o,n)),!1}throw Error("Unexpected Suspense handler tag ("+a.tag+"). This is a bug in React.")}return Bg(e,o,n),Xf(),!1}if(bt)return or=!0,t=Uo.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,o!==Gy&&Hi(Ro(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!==Gy&&Hi(Ro(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=Ro(o,a),n=pg(e.stateNode,o,n),Cf(e,n),la!==Rl&&(la=Ds)),!1;var r=Ro(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(Zc===null?Zc=[r]:Zc.push(r),la!==Rl&&(la=Ds),t===null)return!0;o=Ro(o,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=n&-n,a.lanes|=e,e=pg(a.stateNode,o,e),Cf(a,e),!1;case 1:if(t=a.type,r=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError==="function"||r!==null&&typeof r.componentDidCatch==="function"&&(El===null||!El.has(r))))return a.flags|=65536,n&=-n,a.lanes|=n,n=mg(n),hg(n,e,a,o),Cf(a,n),!1}a=a.return}while(a!==null);return!1}function Ya(e,t,a,o){t.child=e===null?zC(t,null,a,o):As(t,e.child,a,o)}function p0(e,t,a,o,n){a=a.render;var r=t.ref;if("ref"in o){var u={};for(var d in o)d!=="ref"&&(u[d]=o[d])}else u=o;if(ds(t),o=_h(e,t,a,u,r,n),d=Fh(),e!==null&&!Ta)return Gh(e,t,n),Tr(e,t,n);return bt&&d&&Ch(t),t.flags|=1,Ya(e,t,o,n),t.child}function m0(e,t,a,o,n){if(e===null){var r=a.type;if(typeof r==="function"&&!bh(r)&&r.defaultProps===void 0&&a.compare===null)return a=ss(r),t.tag=15,t.type=a,yg(t,r),h0(e,t,a,o,n);return e=xh(a.type,null,o,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e}if(r=e.child,!Cg(e,n)){var u=r.memoizedProps;if(a=a.compare,a=a!==null?a:Pi,a(u,o)&&e.ref===t.ref)return Tr(e,t,n)}return t.flags|=1,e=Lr(r,o),e.ref=t.ref,e.return=t,t.child=e}function h0(e,t,a,o,n){if(e!==null){var r=e.memoizedProps;if(Pi(r,o)&&e.ref===t.ref&&t.type===e.type)if(Ta=!1,t.pendingProps=o=r,Cg(e,n))(e.flags&131072)!==0&&(Ta=!0);else return t.lanes=e.lanes,Tr(e,t,n)}return gg(e,t,a,o,n)}function g0(e,t,a,o){var n=o.children,r=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:Tc,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.mode==="hidden"){if((t.flags&128)!==0){if(r=r!==null?r.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&~r}else o=0,t.child=null;return y0(e,t,r,a,o)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&yf(t,r!==null?r.cachePool:null),r!==null?Ex(t,r):Bh(t),Ox(t);else return o=t.lanes=536870912,y0(e,t,r!==null?r.baseLanes|a:a,a,o)}else r!==null?(yf(t,r.cachePool),Ex(t,r),ul(t),t.memoizedState=null):(e!==null&&yf(t,null),Bh(t),ul(t));return Ya(e,t,n,a),t.child}function Wi(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:Tc,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function y0(e,t,a,o,n){var r=Eh();return r=r===null?null:{parent:Ca._currentValue,pool:r},t.memoizedState={baseLanes:a,cachePool:r},e!==null&&yf(t,null),Bh(t),Ox(t),e!==null&&mu(e,t,o,!0),t.childLanes=n,null}function Uf(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=
|
|
131
|
+
+ <Activity %s>`,a===!0?"hidden":a===!1?"hidden={false}":"hidden={...}",a?'mode="hidden"':'mode="visible"'),t=_f({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function v0(e,t,a){return As(t,e.child,null,a),e=Uf(t,t.pendingProps),e.flags|=2,Do(t),t.memoizedState=null,e}function qI(e,t,a){var o=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(bt){if(o.mode==="hidden")return e=Uf(t,o),t.lanes=536870912,Wi(null,e);if(Uh(t),(e=Zt)?(a=GS(e,Wo),a=a!==null&&a.data===zs?a:null,a!==null&&(o={dehydrated:a,treeContext:cx(),retryLane:536870912,hydrationErrors:null},t.memoizedState=o,o=ux(a),o.return=t,t.child=o,Ka=t,Zt=null)):a=null,a===null)throw df(t,e),al(t);return t.lanes=536870912,null}return Uf(t,o)}var r=e.memoizedState;if(r!==null){var u=r.dehydrated;if(Uh(t),n)if(t.flags&256)t.flags&=-257,t=v0(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(fx(),(a&536870912)!==0&&jf(t),Ta||mu(e,t,a,!1),n=(a&e.childLanes)!==0,Ta||n){if(o=Xt,o!==null&&(u=as(o,a),u!==0&&u!==r.retryLane))throw r.retryLane=u,Ja(e,u),ia(o,e,u),uv;Xf(),t=v0(e,t,a)}else e=r.treeContext,Zt=Oo(u.nextSibling),Ka=t,bt=!0,Sl=null,or=!1,zo=null,Wo=!1,e!==null&&dx(t,e),t=Uf(t,o),t.flags|=4096;return t}return r=e.child,o={mode:o.mode,children:o.children},(a&536870912)!==0&&(a&e.lanes)!==0&&jf(t),e=Lr(r,o),e.ref=t.ref,t.child=e,e.return=t,e}function Pf(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 gg(e,t,a,o,n){if(a.prototype&&typeof a.prototype.render==="function"){var r=Y(a)||"Unknown";nw[r]||(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.",r,r),nw[r]=!0)}if(t.mode&to&&yn.recordLegacyContextWarning(t,null),e===null&&(yg(t,t.type),a.contextTypes&&(r=Y(a)||"Unknown",lw[r]||(lw[r]=!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)",r)))),ds(t),a=_h(e,t,a,o,void 0,n),o=Fh(),e!==null&&!Ta)return Gh(e,t,n),Tr(e,t,n);return bt&&o&&Ch(t),t.flags|=1,Ya(e,t,a,n),t.child}function b0(e,t,a,o,n,r){if(ds(t),_r=-1,Vc=e!==null&&e.type!==t.type,t.updateQueue=null,a=Hh(t,o,a,n),qx(e,t),o=Fh(),e!==null&&!Ta)return Gh(e,t,r),Tr(e,t,r);return bt&&o&&Ch(t),t.flags|=1,Ya(e,t,a,r),t.child}function x0(e,t,a,o,n){switch(g(t)){case!1:var r=t.stateNode,u=new t.type(t.memoizedProps,r.context).state;r.updater.enqueueSetState(r,u,null);break;case!0:t.flags|=128,t.flags|=65536,r=Error("Simulated error coming from DevTools");var d=n&-n;if(t.lanes|=d,u=Xt,u===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");d=mg(d),hg(d,u,t,Ro(r,t)),Cf(t,d)}if(ds(t),t.stateNode===null){if(u=xl,r=a.contextType,"contextType"in a&&r!==null&&(r===void 0||r.$$typeof!==Zn)&&!aw.has(a)&&(aw.add(a),d=r===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 r!=="object"?" However, it is set to a "+typeof r+".":r.$$typeof===iy?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(r).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",Y(a)||"Component",d)),typeof r==="object"&&r!==null&&(u=ta(r)),r=new a(o,u),t.mode&to){Yt(!0);try{r=new a(o,u)}finally{Yt(!1)}}if(u=t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=lv,t.stateNode=r,r._reactInternals=t,r._reactInternalInstance=YC,typeof a.getDerivedStateFromProps==="function"&&u===null&&(u=Y(a)||"Component",QC.has(u)||(QC.add(u),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.",u,r.state===null?"null":"undefined",u))),typeof a.getDerivedStateFromProps==="function"||typeof r.getSnapshotBeforeUpdate==="function"){var m=d=u=null;if(typeof r.componentWillMount==="function"&&r.componentWillMount.__suppressDeprecationWarning!==!0?u="componentWillMount":typeof r.UNSAFE_componentWillMount==="function"&&(u="UNSAFE_componentWillMount"),typeof r.componentWillReceiveProps==="function"&&r.componentWillReceiveProps.__suppressDeprecationWarning!==!0?d="componentWillReceiveProps":typeof r.UNSAFE_componentWillReceiveProps==="function"&&(d="UNSAFE_componentWillReceiveProps"),typeof r.componentWillUpdate==="function"&&r.componentWillUpdate.__suppressDeprecationWarning!==!0?m="componentWillUpdate":typeof r.UNSAFE_componentWillUpdate==="function"&&(m="UNSAFE_componentWillUpdate"),u!==null||d!==null||m!==null){r=Y(a)||"Component";var y=typeof a.getDerivedStateFromProps==="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";ZC.has(r)||(ZC.add(r),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
|
|
|
135
135
|
The above lifecycles should be removed. Learn more about this warning here:
|
|
136
|
-
https://react.dev/link/unsafe-component-lifecycles`,r,y,
|
|
137
|
-
`+
|
|
136
|
+
https://react.dev/link/unsafe-component-lifecycles`,r,y,u!==null?`
|
|
137
|
+
`+u:"",d!==null?`
|
|
138
138
|
`+d:"",m!==null?`
|
|
139
|
-
`+m:""))}}r=t.stateNode,
|
|
140
|
-
%s.childContextTypes = ...`,t.displayName||t.name||"Component"),typeof t.getDerivedStateFromProps==="function"&&(e=X(t)||"Unknown",lw[e]||(console.error("%s: Function components do not support getDerivedStateFromProps.",e),lw[e]=!0)),typeof t.contextType==="object"&&t.contextType!==null&&(t=X(t)||"Unknown",nw[t]||(console.error("%s: Function components do not support contextType.",t),nw[t]=!0))}function yg(e){return{baseLanes:e,cachePool:vx()}}function vg(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=xo),e}function S0(e,t,a){var o,n=t.pendingProps;S(t)&&(t.flags|=128);var r=!1,s=(t.flags&128)!==0;if((o=s)||(o=e!==null&&e.memoizedState===null?!1:(ya.current&Pc)!==0),o&&(r=!0,t.flags&=-129),o=(t.flags&32)!==0,t.flags&=-33,e===null){if(vt){if(r?ll(t):sl(t),(e=Zt)?(a=FS(e,Zo),a=a!==null&&a.data!==Ns?a:null,a!==null&&(o={dehydrated:a,treeContext:ix(),retryLane:536870912,hydrationErrors:null},t.memoizedState=o,o=sx(a),o.return=t,t.child=o,$a=t,Zt=null)):a=null,a===null)throw cf(t,e),tl(t);return Zg(a)?t.lanes=32:t.lanes=536870912,null}var d=n.children;if(n=n.fallback,r){sl(t);var m=t.mode;return d=Pf({mode:"hidden",children:d},m),n=ss(n,m,a,null),d.return=t,n.return=t,d.sibling=n,t.child=d,n=t.child,n.memoizedState=yg(a),n.childLanes=vg(e,o,a),t.memoizedState=uv,Qi(null,n)}return ll(t),bg(t,d)}var y=e.memoizedState;if(y!==null){var O=y.dehydrated;if(O!==null){if(s)t.flags&256?(ll(t),t.flags&=-257,t=xg(e,t,a)):t.memoizedState!==null?(sl(t),t.child=e.child,t.flags|=128,t=null):(sl(t),d=n.fallback,m=t.mode,n=Pf({mode:"visible",children:n.children},m),d=ss(d,m,a,null),d.flags|=2,n.return=t,d.return=t,n.sibling=d,t.child=n,Rs(t,e.child,null,a),n=t.child,n.memoizedState=yg(a),n.childLanes=vg(e,o,a),t.memoizedState=uv,t=Qi(null,n));else if(ll(t),dx(),(a&536870912)!==0&&Vf(t),Zg(O)){if(o=O.nextSibling&&O.nextSibling.dataset,o){d=o.dgst;var q=o.msg;m=o.stck;var I=o.cstck}r=q,o=d,n=m,O=I,d=r,m=O,d=d?Error(d):Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),d.stack=n||"",d.digest=o,o=m===void 0?null:m,n={value:d,source:null,stack:o},typeof o==="string"&&Hy.set(d,n),Ui(n),t=xg(e,t,a)}else if(ka||du(e,t,a,!1),o=(a&e.childLanes)!==0,ka||o){if(o=jt,o!==null&&(n=ts(o,a),n!==0&&n!==y.retryLane))throw y.retryLane=n,Wa(e,n),sa(o,e,n),sv;Kg(O)||jf(),t=xg(e,t,a)}else Kg(O)?(t.flags|=192,t.child=e.child,t=null):(e=y.treeContext,Zt=Do(O.nextSibling),$a=t,vt=!0,xl=null,tr=!1,Bo=null,Zo=!1,e!==null&&cx(t,e),t=bg(t,n.children),t.flags|=4096);return t}}if(r)return sl(t),d=n.fallback,m=t.mode,I=e.child,O=I.sibling,n=xr(I,{mode:"hidden",children:n.children}),n.subtreeFlags=I.subtreeFlags&65011712,O!==null?d=xr(O,d):(d=ss(d,m,a,null),d.flags|=2),d.return=t,n.return=t,n.sibling=d,t.child=n,Qi(null,n),n=t.child,d=e.child.memoizedState,d===null?d=yg(a):(m=d.cachePool,m!==null?(I=La._currentValue,m=m.parent!==I?{parent:I,pool:I}:m):m=vx(),d={baseLanes:d.baseLanes|a,cachePool:m}),n.memoizedState=d,n.childLanes=vg(e,o,a),t.memoizedState=uv,Qi(e.child,n);return y!==null&&(a&62914560)===a&&(a&e.lanes)!==0&&Vf(t),ll(t),a=e.child,e=a.sibling,a=xr(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 bg(e,t){return t=Pf({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Pf(e,t){return e=w(22,e,null,t),e.lanes=0,e}function xg(e,t,a){return Rs(t,e.child,null,a),e=bg(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function L0(e,t,a){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),Th(e.return,t,a)}function Sg(e,t,a,o,n,r){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:a,tailMode:n,treeForkCount:r}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=o,s.tail=a,s.tailMode=n,s.treeForkCount=r)}function C0(e,t,a){var o=t.pendingProps,n=o.revealOrder,r=o.tail,s=o.children,d=ya.current;if((o=(d&Pc)!==0)?(d=d&$u|Pc,t.flags|=128):d&=$u,Ce(ya,d,t),d=n==null?"null":n,n!=="forwards"&&n!=="unstable_legacy-backwards"&&n!=="together"&&n!=="independent"&&!sw[d])if(sw[d]=!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(d=r==null?"null":r,!zp[d])if(r==null){if(n==="forwards"||n==="backwards"||n==="unstable_legacy-backwards")zp[d]=!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 r!=="visible"&&r!=="collapsed"&&r!=="hidden"?(zp[d]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',r)):n!=="forwards"&&n!=="backwards"&&n!=="unstable_legacy-backwards"&&(zp[d]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',r));e:if((n==="forwards"||n==="backwards"||n==="unstable_legacy-backwards")&&s!==void 0&&s!==null&&s!==!1)if(Ma(s)){for(d=0;d<s.length;d++)if(!Rx(s[d],d))break e}else if(d=te(s),typeof d==="function"){if(d=d.call(s))for(var m=d.next(),y=0;!m.done;m=d.next()){if(!Rx(m.value,y))break e;y++}}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(ja(e,t,s,a),vt?(el(),s=wc):s=0,!o&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&L0(e,a,t);else if(e.tag===19)L0(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&&Cf(e)===null&&(n=a),a=a.sibling;a=n,a===null?(n=t.child,t.child=null):(n=a.sibling,a.sibling=null),Sg(t,!1,n,a,r,s);break;case"backwards":case"unstable_legacy-backwards":a=null,n=t.child;for(t.child=null;n!==null;){if(e=n.alternate,e!==null&&Cf(e)===null){t.child=n;break}e=n.sibling,n.sibling=a,a=n,n=e}Sg(t,!0,a,null,r,s);break;case"together":Sg(t,!1,null,null,void 0,s);break;default:t.memoizedState=null}return t.child}function wr(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),uo=-1,Al|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(du(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=xr(e,e.pendingProps),t.child=a;for(a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=xr(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Lg(e,t){if((e.lanes&t)!==0)return!0;return e=e.dependencies,e!==null&&ff(e)?!0:!1}function OI(e,t,a){switch(t.tag){case 3:ne(t,t.stateNode.containerInfo),al(t,La,e.memoizedState.cache),is();break;case 27:case 5:$e(t);break;case 4:ne(t,t.stateNode.containerInfo);break;case 10:al(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,zh(t),null;break;case 13:if(o=t.memoizedState,o!==null){if(o.dehydrated!==null)return ll(t),t.flags|=128,null;if((a&t.child.childLanes)!==0)return S0(e,t,a);return ll(t),e=wr(e,t,a),e!==null?e.sibling:null}ll(t);break;case 19:var n=(e.flags&128)!==0;if(o=(a&t.childLanes)!==0,o||(du(e,t,a,!1),o=(a&t.childLanes)!==0),n){if(o)return C0(e,t,a);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),Ce(ya,ya.current,t),o)break;else return null;case 22:return t.lanes=0,h0(e,t,a,t.pendingProps);case 24:al(t,La,e.memoizedState.cache)}return wr(e,t,a)}function Cg(e,t,a){if(t._debugNeedsRemount&&e!==null){a=bh(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(!Lg(e,a)&&(t.flags&128)===0)return ka=!1,OI(e,t,a);ka=(e.flags&131072)!==0?!0:!1}else{if(ka=!1,o=vt)el(),o=(t.flags&1048576)!==0;o&&(o=t.index,el(),ux(t,wc,o))}switch(t.lanes=0,t.tag){case 16:e:if(o=t.pendingProps,e=ol(t.elementType),t.type=e,typeof e==="function")vh(e)?(o=hs(e,o),t.tag=1,t.type=e=ls(e),t=b0(null,t,e,o,a)):(t.tag=0,gg(t,e),t.type=e=ls(e),t=hg(null,t,e,o,a));else{if(e!==void 0&&e!==null){if(n=e.$$typeof,n===dc){t.tag=11,t.type=e=yh(e),t=f0(null,t,e,o,a);break e}else if(n===rp){t.tag=14,t=p0(null,t,e,o,a);break e}}throw t="",e!==null&&typeof e==="object"&&e.$$typeof===Eo&&(t=" Did you wrap a component in React.lazy() more than once?"),a=X(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 hg(e,t,t.type,t.pendingProps,a);case 1:return o=t.type,n=hs(o,t.pendingProps),b0(e,t,o,n,a);case 3:e:{if(ne(t,t.stateNode.containerInfo),e===null)throw Error("Should have a current fiber. This is a bug in React.");o=t.pendingProps;var r=t.memoizedState;n=r.element,qh(e,t),ji(t,o,null,a);var s=t.memoizedState;if(o=s.cache,al(t,La,o),o!==r.cache&&Ih(t,[La],a,!0),Vi(),o=s.element,r.isDehydrated)if(r={element:o,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=r,t.memoizedState=r,t.flags&256){t=x0(e,t,o,a);break e}else if(o!==n){n=To(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t),Ui(n),t=x0(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}Zt=Do(e.firstChild),$a=t,vt=!0,xl=null,tr=!1,Bo=null,Zo=!0,a=NC(t,null,o,a);for(t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(is(),o===n){t=wr(e,t,a);break e}ja(e,t,o,a)}t=t.child}return t;case 26:return Uf(e,t),e===null?(a=$S(t.type,null,t.pendingProps,null))?t.memoizedState=a:vt||(a=t.type,e=t.pendingProps,o=Ne(pl.current),o=Qf(o).createElement(a),o[Ya]=t,o[ro]=e,Xa(o,a,e),qe(o),t.stateNode=o):t.memoizedState=$S(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return $e(t),e===null&&vt&&(o=Ne(pl.current),n=ke(),o=t.stateNode=XS(t.type,t.pendingProps,o,n,!1),tr||(n=qS(o,t.type,t.pendingProps,n),n!==null&&(us(t,0).serverProps=n)),$a=t,Zo=!0,n=Zt,dl(t.type)?(Dv=n,Zt=Do(o.firstChild)):Zt=n),ja(e,t,t.pendingProps.children,a),Uf(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&vt&&(r=ke(),o=ih(t.type,r.ancestorInfo),n=Zt,(s=!n)||(s=SR(n,t.type,t.pendingProps,Zo),s!==null?(t.stateNode=s,tr||(r=qS(s,t.type,t.pendingProps,r),r!==null&&(us(t,0).serverProps=r)),$a=t,Zt=Do(s.firstChild),Zo=!1,r=!0):r=!1,s=!r),s&&(o&&cf(t,n),tl(t))),$e(t),n=t.type,r=t.pendingProps,s=e!==null?e.memoizedProps:null,o=r.children,$g(n,r)?o=null:s!==null&&$g(n,s)&&(t.flags|=32),t.memoizedState!==null&&(n=Ph(e,t,kI,null,null,a),od._currentValue=n),Uf(e,t),ja(e,t,o,a),t.child;case 6:return e===null&&vt&&(a=t.pendingProps,e=ke(),o=e.ancestorInfo.current,a=o!=null?Jd(a,o.tag,e.ancestorInfo.implicitRootScope):!0,e=Zt,(o=!e)||(o=LR(e,t.pendingProps,Zo),o!==null?(t.stateNode=o,$a=t,Zt=null,o=!0):o=!1,o=!o),o&&(a&&cf(t,e),tl(t))),null;case 13:return S0(e,t,a);case 4:return ne(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=Rs(t,null,o,a):ja(e,t,o,a),t.child;case 11:return f0(e,t,t.type,t.pendingProps,a);case 7:return ja(e,t,t.pendingProps,a),t.child;case 8:return ja(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,ja(e,t,t.pendingProps.children,a),t.child;case 10:return o=t.type,n=t.pendingProps,r=n.value,"value"in n||uw||(uw=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),al(t,o,r),ja(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."),cs(t),n=ta(n),o=Qy(o,n,void 0),t.flags|=1,ja(e,t,o,a),t.child;case 14:return p0(e,t,t.type,t.pendingProps,a);case 15:return m0(e,t,t.type,t.pendingProps,a);case 19:return C0(e,t,a);case 31:return EI(e,t,a);case 22:return h0(e,t,a,t.pendingProps);case 24:return cs(t),o=ta(La),e===null?(n=Dh(),n===null&&(n=jt,r=Rh(),n.pooledCache=r,ds(r),r!==null&&(n.pooledCacheLanes|=a),n=r),t.memoizedState={parent:o,cache:n},Oh(t),al(t,La,n)):((e.lanes&a)!==0&&(qh(e,t),ji(t,null,null,a),Vi()),n=e.memoizedState,r=t.memoizedState,n.parent!==o?(n={parent:o,cache:o},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),al(t,La,o)):(o=r.cache,al(t,La,o),o!==n.cache&&Ih(t,[La],a,!0))),ja(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 kr(e){e.flags|=4}function wg(e,t,a,o,n){if(t=(e.mode&JA)!==He)t=!1;if(t){if(e.flags|=16777216,(n&335544128)===n)if(e.stateNode.complete)e.flags|=8192;else if(aS())e.flags|=8192;else throw Is=Dp,Zy}else e.flags&=-16777217}function w0(e,t){if(t.type!=="stylesheet"||(t.state.loading&an)!==Ps)e.flags&=-16777217;else if(e.flags|=16777216,!JS(t))if(aS())e.flags|=8192;else throw Is=Dp,Zy}function _f(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?ru():536870912,e.lanes|=t,Os|=t)}function Ki(e,t){if(!vt)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 $t(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,o=0;if(t)if((e.mode&rt)!==He){for(var{selfBaseDuration:n,child:r}=e;r!==null;)a|=r.lanes|r.childLanes,o|=r.subtreeFlags&65011712,o|=r.flags&65011712,n+=r.treeBaseDuration,r=r.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&rt)!==He){n=e.actualDuration,r=e.selfBaseDuration;for(var s=e.child;s!==null;)a|=s.lanes|s.childLanes,o|=s.subtreeFlags,o|=s.flags,n+=s.actualDuration,r+=s.treeBaseDuration,s=s.sibling;e.actualDuration=n,e.treeBaseDuration=r}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 qI(e,t,a){var o=t.pendingProps;switch(Ch(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return $t(t),null;case 1:return $t(t),null;case 3:if(a=t.stateNode,o=null,e!==null&&(o=e.memoizedState.cache),t.memoizedState.cache!==o&&(t.flags|=2048),Lr(La,t),me(t),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),e===null||e.child===null)cu(t)?(kh(),kr(t)):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,wh());return $t(t),null;case 26:var{type:n,memoizedState:r}=t;return e===null?(kr(t),r!==null?($t(t),w0(t,r)):($t(t),wg(t,n,null,o,a))):r?r!==e.memoizedState?(kr(t),$t(t),w0(t,r)):($t(t),t.flags&=-16777217):(e=e.memoizedProps,e!==o&&kr(t),$t(t),wg(t,n,e,o,a)),null;case 27:if(xt(t),a=Ne(pl.current),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&kr(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 $t(t),null}e=ke(),cu(t)?fx(t,e):(e=XS(n,o,a,e,!0),t.stateNode=e,kr(t))}return $t(t),null;case 5:if(xt(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&kr(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 $t(t),null}var s=ke();if(cu(t))fx(t,s);else{switch(r=Ne(pl.current),ih(n,s.ancestorInfo),s=s.context,r=Qf(r),s){case li:r=r.createElementNS(Mu,n);break;case om:r=r.createElementNS(fp,n);break;default:switch(n){case"svg":r=r.createElementNS(Mu,n);break;case"math":r=r.createElementNS(fp,n);break;case"script":r=r.createElement("div"),r.innerHTML="<script></script>",r=r.removeChild(r.firstChild);break;case"select":r=typeof o.is==="string"?r.createElement("select",{is:o.is}):r.createElement("select"),o.multiple?r.multiple=!0:o.size&&(r.size=o.size);break;default:r=typeof o.is==="string"?r.createElement(n,{is:o.is}):r.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(r)!=="[object HTMLUnknownElement]"||pn.call(Ew,n)||(Ew[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)))}}r[Ya]=t,r[ro]=o;e:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)r.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break e;for(;s.sibling===null;){if(s.return===null||s.return===t)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=r;e:switch(Xa(r,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&&kr(t)}}return $t(t),wg(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==o&&kr(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=Ne(pl.current),a=ke(),cu(t)){if(e=t.stateNode,a=t.memoizedProps,n=!tr,o=null,r=$a,r!==null)switch(r.tag){case 3:n&&(n=VS(e,a,o),n!==null&&(us(t,0).serverProps=n));break;case 27:case 5:o=r.memoizedProps,n&&(n=VS(e,a,o),n!==null&&(us(t,0).serverProps=n))}e[Ya]=t,e=e.nodeValue===a||o!==null&&o.suppressHydrationWarning===!0||AS(e.nodeValue,a)?!0:!1,e||tl(t,!0)}else n=a.ancestorInfo.current,n!=null&&Jd(o,n.tag,a.ancestorInfo.implicitRootScope),e=Qf(e).createTextNode(o),e[Ya]=t,t.stateNode=e}return $t(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(o=cu(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[Ya]=t,$t(t),(t.mode&rt)!==He&&a!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration))}else kh(),is(),(t.flags&128)===0&&(a=t.memoizedState=null),t.flags|=4,$t(t),(t.mode&rt)!==He&&a!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration));e=!1}else a=wh(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e){if(t.flags&256)return Ao(t),t;return Ao(t),null}if((t.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return $t(t),null;case 13:if(o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=o,r=cu(t),n!==null&&n.dehydrated!==null){if(e===null){if(!r)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(r=t.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");r[Ya]=t,$t(t),(t.mode&rt)!==He&&n!==null&&(n=t.child,n!==null&&(t.treeBaseDuration-=n.treeBaseDuration))}else kh(),is(),(t.flags&128)===0&&(n=t.memoizedState=null),t.flags|=4,$t(t),(t.mode&rt)!==He&&n!==null&&(n=t.child,n!==null&&(t.treeBaseDuration-=n.treeBaseDuration));n=!1}else n=wh(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n){if(t.flags&256)return Ao(t),t;return Ao(t),null}}if(Ao(t),(t.flags&128)!==0)return t.lanes=a,(t.mode&rt)!==He&&Hi(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),r=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(r=o.memoizedState.cachePool.pool),r!==n&&(o.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),_f(t,t.updateQueue),$t(t),(t.mode&rt)!==He&&a&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration)),null;case 4:return me(t),e===null&&Hg(t.stateNode.containerInfo),$t(t),null;case 10:return Lr(t.type,t),$t(t),null;case 19:if(xe(ya,t),o=t.memoizedState,o===null)return $t(t),null;if(n=(t.flags&128)!==0,r=o.rendering,r===null)if(n)Ki(o,!1);else{if(na!==_r||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(r=Cf(e),r!==null){t.flags|=128,Ki(o,!1),e=r.updateQueue,t.updateQueue=e,_f(t,e),t.subtreeFlags=0,e=a;for(a=t.child;a!==null;)lx(a,e),a=a.sibling;return Ce(ya,ya.current&$u|Pc,t),vt&&Sr(t,o.treeForkCount),t.child}e=e.sibling}o.tail!==null&&Na()>Vp&&(t.flags|=128,n=!0,Ki(o,!1),t.lanes=4194304)}else{if(!n)if(e=Cf(r),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,_f(t,e),Ki(o,!0),o.tail===null&&o.tailMode==="hidden"&&!r.alternate&&!vt)return $t(t),null}else 2*Na()-o.renderingStartTime>Vp&&a!==536870912&&(t.flags|=128,n=!0,Ki(o,!1),t.lanes=4194304);o.isBackwards?(r.sibling=t.child,t.child=r):(e=o.last,e!==null?e.sibling=r:t.child=r,o.last=r)}if(o.tail!==null)return e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=Na(),e.sibling=null,a=ya.current,a=n?a&$u|Pc:a&$u,Ce(ya,a,t),vt&&Sr(t,o.treeForkCount),e;return $t(t),null;case 22:case 23:return Ao(t),Nh(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&&($t(t),t.subtreeFlags&6&&(t.flags|=8192)):$t(t),a=t.updateQueue,a!==null&&_f(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&&xe(ks,t),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Lr(La,t),$t(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 BI(e,t){switch(Ch(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&rt)!==He&&Hi(t),t):null;case 3:return Lr(La,t),me(t),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return xt(t),null;case 31:if(t.memoizedState!==null){if(Ao(t),t.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");is()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&rt)!==He&&Hi(t),t):null;case 13:if(Ao(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.");is()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&rt)!==He&&Hi(t),t):null;case 19:return xe(ya,t),null;case 4:return me(t),null;case 10:return Lr(t.type,t),null;case 22:case 23:return Ao(t),Nh(t),e!==null&&xe(ks,t),e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&rt)!==He&&Hi(t),t):null;case 24:return Lr(La,t),null;case 25:return null;default:return null}}function k0(e,t){switch(Ch(t),t.tag){case 3:Lr(La,t),me(t);break;case 26:case 27:case 5:xt(t);break;case 4:me(t);break;case 31:t.memoizedState!==null&&Ao(t);break;case 13:Ao(t);break;case 19:xe(ya,t);break;case 10:Lr(t.type,t);break;case 22:case 23:Ao(t),Nh(t),e!==null&&xe(ks,t);break;case 24:Lr(La,t)}}function Fn(e){return(e.mode&rt)!==He}function T0(e,t){Fn(e)?(Hn(),Zi(t,e),_n()):Zi(t,e)}function kg(e,t,a){Fn(e)?(Hn(),gu(a,e,t),_n()):gu(a,e,t)}function Zi(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&io)!==Op&&(oi=!0),o=G(t,n2,a),(e&io)!==Op&&(oi=!1),o!==void 0&&typeof o!=="function")){var r=void 0;r=(a.tag&zo)!==0?"useLayoutEffect":(a.tag&io)!==0?"useInsertionEffect":"useEffect";var s=void 0;s=o===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof o.then==="function"?`
|
|
139
|
+
`+m:""))}}r=t.stateNode,u=Y(a)||"Component",r.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?",u):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",u)),!r.getInitialState||r.getInitialState.isReactClassApproved||r.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?",u),r.getDefaultProps&&!r.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.",u),r.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",u),a.childContextTypes&&!tw.has(a)&&(tw.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)",u)),a.contextTypes&&!ew.has(a)&&(ew.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)",u)),typeof r.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.",u),a.prototype&&a.prototype.isPureReactComponent&&typeof r.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.",Y(a)||"A pure component"),typeof r.componentDidUnmount==="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",u),typeof r.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().",u),typeof r.componentWillRecieveProps==="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",u),typeof r.UNSAFE_componentWillRecieveProps==="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",u),d=r.props!==o,r.props!==void 0&&d&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",u),r.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.",u,u),typeof r.getSnapshotBeforeUpdate!=="function"||typeof r.componentDidUpdate==="function"||KC.has(a)||(KC.add(a),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",Y(a))),typeof r.getDerivedStateFromProps==="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",u),typeof r.getDerivedStateFromError==="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",u),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.",u),(d=r.state)&&(typeof d!=="object"||Ea(d))&&console.error("%s.state: must be set to an object or null",u),typeof r.getChildContext==="function"&&typeof a.childContextTypes!=="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",u),r=t.stateNode,r.props=o,r.state=t.memoizedState,r.refs={},qh(t),u=a.contextType,r.context=typeof u==="object"&&u!==null?ta(u):xl,r.state===o&&(u=Y(a)||"Component",WC.has(u)||(WC.add(u),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.",u))),t.mode&to&&yn.recordLegacyContextWarning(t,r),yn.recordUnsafeLifecycleWarnings(t,r),r.state=t.memoizedState,u=a.getDerivedStateFromProps,typeof u==="function"&&(fg(t,a,u,o),r.state=t.memoizedState),typeof a.getDerivedStateFromProps==="function"||typeof r.getSnapshotBeforeUpdate==="function"||typeof r.UNSAFE_componentWillMount!=="function"&&typeof r.componentWillMount!=="function"||(u=r.state,typeof r.componentWillMount==="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount==="function"&&r.UNSAFE_componentWillMount(),u!==r.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",F(t)||"Component"),lv.enqueueReplaceState(r,r.state,null)),$i(t,o,r,n),Yi(),r.state=t.memoizedState),typeof r.componentDidMount==="function"&&(t.flags|=4194308),(t.mode&gn)!==Ge&&(t.flags|=134217728),r=!0}else if(e===null){r=t.stateNode;var O=t.memoizedProps;d=gs(a,O),r.props=d;var q=r.context;m=a.contextType,u=xl,typeof m==="object"&&m!==null&&(u=ta(m)),y=a.getDerivedStateFromProps,m=typeof y==="function"||typeof r.getSnapshotBeforeUpdate==="function",O=t.pendingProps!==O,m||typeof r.UNSAFE_componentWillReceiveProps!=="function"&&typeof r.componentWillReceiveProps!=="function"||(O||q!==u)&&u0(t,r,o,u),Il=!1;var I=t.memoizedState;r.state=I,$i(t,o,r,n),Yi(),q=t.memoizedState,O||I!==q||Il?(typeof y==="function"&&(fg(t,a,y,o),q=t.memoizedState),(d=Il||s0(t,a,d,o,I,q,u))?(m||typeof r.UNSAFE_componentWillMount!=="function"&&typeof r.componentWillMount!=="function"||(typeof r.componentWillMount==="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount==="function"&&r.UNSAFE_componentWillMount()),typeof r.componentDidMount==="function"&&(t.flags|=4194308),(t.mode&gn)!==Ge&&(t.flags|=134217728)):(typeof r.componentDidMount==="function"&&(t.flags|=4194308),(t.mode&gn)!==Ge&&(t.flags|=134217728),t.memoizedProps=o,t.memoizedState=q),r.props=o,r.state=q,r.context=u,r=d):(typeof r.componentDidMount==="function"&&(t.flags|=4194308),(t.mode&gn)!==Ge&&(t.flags|=134217728),r=!1)}else{r=t.stateNode,Nh(e,t),u=t.memoizedProps,m=gs(a,u),r.props=m,y=t.pendingProps,I=r.context,q=a.contextType,d=xl,typeof q==="object"&&q!==null&&(d=ta(q)),O=a.getDerivedStateFromProps,(q=typeof O==="function"||typeof r.getSnapshotBeforeUpdate==="function")||typeof r.UNSAFE_componentWillReceiveProps!=="function"&&typeof r.componentWillReceiveProps!=="function"||(u!==y||I!==d)&&u0(t,r,o,d),Il=!1,I=t.memoizedState,r.state=I,$i(t,o,r,n),Yi();var P=t.memoizedState;u!==y||I!==P||Il||e!==null&&e.dependencies!==null&&pf(e.dependencies)?(typeof O==="function"&&(fg(t,a,O,o),P=t.memoizedState),(m=Il||s0(t,a,m,o,I,P,d)||e!==null&&e.dependencies!==null&&pf(e.dependencies))?(q||typeof r.UNSAFE_componentWillUpdate!=="function"&&typeof r.componentWillUpdate!=="function"||(typeof r.componentWillUpdate==="function"&&r.componentWillUpdate(o,P,d),typeof r.UNSAFE_componentWillUpdate==="function"&&r.UNSAFE_componentWillUpdate(o,P,d)),typeof r.componentDidUpdate==="function"&&(t.flags|=4),typeof r.getSnapshotBeforeUpdate==="function"&&(t.flags|=1024)):(typeof r.componentDidUpdate!=="function"||u===e.memoizedProps&&I===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!=="function"||u===e.memoizedProps&&I===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=P),r.props=o,r.state=P,r.context=d,r=m):(typeof r.componentDidUpdate!=="function"||u===e.memoizedProps&&I===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!=="function"||u===e.memoizedProps&&I===e.memoizedState||(t.flags|=1024),r=!1)}if(d=r,Pf(e,t),u=(t.flags&128)!==0,d||u){if(d=t.stateNode,Fe(t),u&&typeof a.getDerivedStateFromError!=="function")a=null,io=-1;else if(a=CC(d),t.mode&to){Yt(!0);try{CC(d)}finally{Yt(!1)}}t.flags|=1,e!==null&&u?(t.child=As(t,e.child,null,n),t.child=As(t,null,a,n)):Ya(e,t,a,n),t.memoizedState=d.state,e=t.child}else e=Tr(e,t,n);return n=t.stateNode,r&&n.props!==o&&(ti||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",F(t)||"a component"),ti=!0),e}function S0(e,t,a,o){return cs(),t.flags|=256,Ya(e,t,a,o),t.child}function yg(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=Y(t)||"Unknown",sw[e]||(console.error("%s: Function components do not support getDerivedStateFromProps.",e),sw[e]=!0)),typeof t.contextType==="object"&&t.contextType!==null&&(t=Y(t)||"Unknown",rw[t]||(console.error("%s: Function components do not support contextType.",t),rw[t]=!0))}function vg(e){return{baseLanes:e,cachePool:bx()}}function bg(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Lo),e}function L0(e,t,a){var o,n=t.pendingProps;L(t)&&(t.flags|=128);var r=!1,u=(t.flags&128)!==0;if((o=u)||(o=e!==null&&e.memoizedState===null?!1:(va.current&Fc)!==0),o&&(r=!0,t.flags&=-129),o=(t.flags&32)!==0,t.flags&=-33,e===null){if(bt){if(r?sl(t):ul(t),(e=Zt)?(a=GS(e,Wo),a=a!==null&&a.data!==zs?a:null,a!==null&&(o={dehydrated:a,treeContext:cx(),retryLane:536870912,hydrationErrors:null},t.memoizedState=o,o=ux(a),o.return=t,t.child=o,Ka=t,Zt=null)):a=null,a===null)throw df(t,e),al(t);return Wg(a)?t.lanes=32:t.lanes=536870912,null}var d=n.children;if(n=n.fallback,r){ul(t);var m=t.mode;return d=_f({mode:"hidden",children:d},m),n=us(n,m,a,null),d.return=t,n.return=t,d.sibling=n,t.child=d,n=t.child,n.memoizedState=vg(a),n.childLanes=bg(e,o,a),t.memoizedState=iv,Wi(null,n)}return sl(t),xg(t,d)}var y=e.memoizedState;if(y!==null){var O=y.dehydrated;if(O!==null){if(u)t.flags&256?(sl(t),t.flags&=-257,t=Sg(e,t,a)):t.memoizedState!==null?(ul(t),t.child=e.child,t.flags|=128,t=null):(ul(t),d=n.fallback,m=t.mode,n=_f({mode:"visible",children:n.children},m),d=us(d,m,a,null),d.flags|=2,n.return=t,d.return=t,n.sibling=d,t.child=n,As(t,e.child,null,a),n=t.child,n.memoizedState=vg(a),n.childLanes=bg(e,o,a),t.memoizedState=iv,t=Wi(null,n));else if(sl(t),fx(),(a&536870912)!==0&&jf(t),Wg(O)){if(o=O.nextSibling&&O.nextSibling.dataset,o){d=o.dgst;var q=o.msg;m=o.stck;var I=o.cstck}r=q,o=d,n=m,O=I,d=r,m=O,d=d?Error(d):Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),d.stack=n||"",d.digest=o,o=m===void 0?null:m,n={value:d,source:null,stack:o},typeof o==="string"&&Fy.set(d,n),Hi(n),t=Sg(e,t,a)}else if(Ta||mu(e,t,a,!1),o=(a&e.childLanes)!==0,Ta||o){if(o=Xt,o!==null&&(n=as(o,a),n!==0&&n!==y.retryLane))throw y.retryLane=n,Ja(e,n),ia(o,e,n),uv;Zg(O)||Xf(),t=Sg(e,t,a)}else Zg(O)?(t.flags|=192,t.child=e.child,t=null):(e=y.treeContext,Zt=Oo(O.nextSibling),Ka=t,bt=!0,Sl=null,or=!1,zo=null,Wo=!1,e!==null&&dx(t,e),t=xg(t,n.children),t.flags|=4096);return t}}if(r)return ul(t),d=n.fallback,m=t.mode,I=e.child,O=I.sibling,n=Lr(I,{mode:"hidden",children:n.children}),n.subtreeFlags=I.subtreeFlags&65011712,O!==null?d=Lr(O,d):(d=us(d,m,a,null),d.flags|=2),d.return=t,n.return=t,n.sibling=d,t.child=n,Wi(null,n),n=t.child,d=e.child.memoizedState,d===null?d=vg(a):(m=d.cachePool,m!==null?(I=Ca._currentValue,m=m.parent!==I?{parent:I,pool:I}:m):m=bx(),d={baseLanes:d.baseLanes|a,cachePool:m}),n.memoizedState=d,n.childLanes=bg(e,o,a),t.memoizedState=iv,Wi(e.child,n);return y!==null&&(a&62914560)===a&&(a&e.lanes)!==0&&jf(t),sl(t),a=e.child,e=a.sibling,a=Lr(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 xg(e,t){return t=_f({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function _f(e,t){return e=w(22,e,null,t),e.lanes=0,e}function Sg(e,t,a){return As(t,e.child,null,a),e=xg(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function C0(e,t,a){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),Ih(e.return,t,a)}function Lg(e,t,a,o,n,r){var u=e.memoizedState;u===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:a,tailMode:n,treeForkCount:r}:(u.isBackwards=t,u.rendering=null,u.renderingStartTime=0,u.last=o,u.tail=a,u.tailMode=n,u.treeForkCount=r)}function w0(e,t,a){var o=t.pendingProps,n=o.revealOrder,r=o.tail,u=o.children,d=va.current;if((o=(d&Fc)!==0)?(d=d&Zu|Fc,t.flags|=128):d&=Zu,Ce(va,d,t),d=n==null?"null":n,n!=="forwards"&&n!=="unstable_legacy-backwards"&&n!=="together"&&n!=="independent"&&!uw[d])if(uw[d]=!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(d=r==null?"null":r,!Up[d])if(r==null){if(n==="forwards"||n==="backwards"||n==="unstable_legacy-backwards")Up[d]=!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 r!=="visible"&&r!=="collapsed"&&r!=="hidden"?(Up[d]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',r)):n!=="forwards"&&n!=="backwards"&&n!=="unstable_legacy-backwards"&&(Up[d]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',r));e:if((n==="forwards"||n==="backwards"||n==="unstable_legacy-backwards")&&u!==void 0&&u!==null&&u!==!1)if(Ea(u)){for(d=0;d<u.length;d++)if(!Ax(u[d],d))break e}else if(d=te(u),typeof d==="function"){if(d=d.call(u))for(var m=d.next(),y=0;!m.done;m=d.next()){if(!Ax(m.value,y))break e;y++}}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(Ya(e,t,u,a),bt?(tl(),u=Ic):u=0,!o&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&C0(e,a,t);else if(e.tag===19)C0(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&&wf(e)===null&&(n=a),a=a.sibling;a=n,a===null?(n=t.child,t.child=null):(n=a.sibling,a.sibling=null),Lg(t,!1,n,a,r,u);break;case"backwards":case"unstable_legacy-backwards":a=null,n=t.child;for(t.child=null;n!==null;){if(e=n.alternate,e!==null&&wf(e)===null){t.child=n;break}e=n.sibling,n.sibling=a,a=n,n=e}Lg(t,!0,a,null,r,u);break;case"together":Lg(t,!1,null,null,void 0,u);break;default:t.memoizedState=null}return t.child}function Tr(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),io=-1,Ml|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(mu(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=Lr(e,e.pendingProps),t.child=a;for(a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=Lr(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Cg(e,t){if((e.lanes&t)!==0)return!0;return e=e.dependencies,e!==null&&pf(e)?!0:!1}function NI(e,t,a){switch(t.tag){case 3:ne(t,t.stateNode.containerInfo),ol(t,Ca,e.memoizedState.cache),cs();break;case 27:case 5:$e(t);break;case 4:ne(t,t.stateNode.containerInfo);break;case 10:ol(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,Uh(t),null;break;case 13:if(o=t.memoizedState,o!==null){if(o.dehydrated!==null)return sl(t),t.flags|=128,null;if((a&t.child.childLanes)!==0)return L0(e,t,a);return sl(t),e=Tr(e,t,a),e!==null?e.sibling:null}sl(t);break;case 19:var n=(e.flags&128)!==0;if(o=(a&t.childLanes)!==0,o||(mu(e,t,a,!1),o=(a&t.childLanes)!==0),n){if(o)return w0(e,t,a);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),Ce(va,va.current,t),o)break;else return null;case 22:return t.lanes=0,g0(e,t,a,t.pendingProps);case 24:ol(t,Ca,e.memoizedState.cache)}return Tr(e,t,a)}function wg(e,t,a){if(t._debugNeedsRemount&&e!==null){a=xh(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)Ta=!0;else{if(!Cg(e,a)&&(t.flags&128)===0)return Ta=!1,NI(e,t,a);Ta=(e.flags&131072)!==0?!0:!1}else{if(Ta=!1,o=bt)tl(),o=(t.flags&1048576)!==0;o&&(o=t.index,tl(),ix(t,Ic,o))}switch(t.lanes=0,t.tag){case 16:e:if(o=t.pendingProps,e=nl(t.elementType),t.type=e,typeof e==="function")bh(e)?(o=gs(e,o),t.tag=1,t.type=e=ss(e),t=x0(null,t,e,o,a)):(t.tag=0,yg(t,e),t.type=e=ss(e),t=gg(null,t,e,o,a));else{if(e!==void 0&&e!==null){if(n=e.$$typeof,n===mc){t.tag=11,t.type=e=vh(e),t=p0(null,t,e,o,a);break e}else if(n===lp){t.tag=14,t=m0(null,t,e,o,a);break e}}throw t="",e!==null&&typeof e==="object"&&e.$$typeof===qo&&(t=" Did you wrap a component in React.lazy() more than once?"),a=Y(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 gg(e,t,t.type,t.pendingProps,a);case 1:return o=t.type,n=gs(o,t.pendingProps),x0(e,t,o,n,a);case 3:e:{if(ne(t,t.stateNode.containerInfo),e===null)throw Error("Should have a current fiber. This is a bug in React.");o=t.pendingProps;var r=t.memoizedState;n=r.element,Nh(e,t),$i(t,o,null,a);var u=t.memoizedState;if(o=u.cache,ol(t,Ca,o),o!==r.cache&&Rh(t,[Ca],a,!0),Yi(),o=u.element,r.isDehydrated)if(r={element:o,isDehydrated:!1,cache:u.cache},t.updateQueue.baseState=r,t.memoizedState=r,t.flags&256){t=S0(e,t,o,a);break e}else if(o!==n){n=Ro(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t),Hi(n),t=S0(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}Zt=Oo(e.firstChild),Ka=t,bt=!0,Sl=null,or=!1,zo=null,Wo=!0,a=zC(t,null,o,a);for(t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(cs(),o===n){t=Tr(e,t,a);break e}Ya(e,t,o,a)}t=t.child}return t;case 26:return Pf(e,t),e===null?(a=QS(t.type,null,t.pendingProps,null))?t.memoizedState=a:bt||(a=t.type,e=t.pendingProps,o=Be(ml.current),o=Kf(o).createElement(a),o[Qa]=t,o[lo]=e,$a(o,a,e),qe(o),t.stateNode=o):t.memoizedState=QS(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return $e(t),e===null&&bt&&(o=Be(ml.current),n=ke(),o=t.stateNode=YS(t.type,t.pendingProps,o,n,!1),or||(n=NS(o,t.type,t.pendingProps,n),n!==null&&(is(t,0).serverProps=n)),Ka=t,Wo=!0,n=Zt,fl(t.type)?(Ev=n,Zt=Oo(o.firstChild)):Zt=n),Ya(e,t,t.pendingProps.children,a),Pf(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&bt&&(r=ke(),o=ch(t.type,r.ancestorInfo),n=Zt,(u=!n)||(u=CR(n,t.type,t.pendingProps,Wo),u!==null?(t.stateNode=u,or||(r=NS(u,t.type,t.pendingProps,r),r!==null&&(is(t,0).serverProps=r)),Ka=t,Zt=Oo(u.firstChild),Wo=!1,r=!0):r=!1,u=!r),u&&(o&&df(t,n),al(t))),$e(t),n=t.type,r=t.pendingProps,u=e!==null?e.memoizedProps:null,o=r.children,Qg(n,r)?o=null:u!==null&&Qg(n,u)&&(t.flags|=32),t.memoizedState!==null&&(n=_h(e,t,II,null,null,a),ld._currentValue=n),Pf(e,t),Ya(e,t,o,a),t.child;case 6:return e===null&&bt&&(a=t.pendingProps,e=ke(),o=e.ancestorInfo.current,a=o!=null?ef(a,o.tag,e.ancestorInfo.implicitRootScope):!0,e=Zt,(o=!e)||(o=wR(e,t.pendingProps,Wo),o!==null?(t.stateNode=o,Ka=t,Zt=null,o=!0):o=!1,o=!o),o&&(a&&df(t,e),al(t))),null;case 13:return L0(e,t,a);case 4:return ne(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=As(t,null,o,a):Ya(e,t,o,a),t.child;case 11:return p0(e,t,t.type,t.pendingProps,a);case 7:return Ya(e,t,t.pendingProps,a),t.child;case 8:return Ya(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,Ya(e,t,t.pendingProps.children,a),t.child;case 10:return o=t.type,n=t.pendingProps,r=n.value,"value"in n||iw||(iw=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),ol(t,o,r),Ya(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."),ds(t),n=ta(n),o=Ky(o,n,void 0),t.flags|=1,Ya(e,t,o,a),t.child;case 14:return m0(e,t,t.type,t.pendingProps,a);case 15:return h0(e,t,t.type,t.pendingProps,a);case 19:return w0(e,t,a);case 31:return qI(e,t,a);case 22:return g0(e,t,a,t.pendingProps);case 24:return ds(t),o=ta(Ca),e===null?(n=Eh(),n===null&&(n=Xt,r=Ah(),n.pooledCache=r,fs(r),r!==null&&(n.pooledCacheLanes|=a),n=r),t.memoizedState={parent:o,cache:n},qh(t),ol(t,Ca,n)):((e.lanes&a)!==0&&(Nh(e,t),$i(t,null,null,a),Yi()),n=e.memoizedState,r=t.memoizedState,n.parent!==o?(n={parent:o,cache:o},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),ol(t,Ca,o)):(o=r.cache,ol(t,Ca,o),o!==n.cache&&Rh(t,[Ca],a,!0))),Ya(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 Ir(e){e.flags|=4}function kg(e,t,a,o,n){if(t=(e.mode&tM)!==Ge)t=!1;if(t){if(e.flags|=16777216,(n&335544128)===n)if(e.stateNode.complete)e.flags|=8192;else if(oS())e.flags|=8192;else throw Rs=Ep,Wy}else e.flags&=-16777217}function k0(e,t){if(t.type!=="stylesheet"||(t.state.loading&on)!==_s)e.flags&=-16777217;else if(e.flags|=16777216,!eL(t))if(oS())e.flags|=8192;else throw Rs=Ep,Wy}function Hf(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?uu():536870912,e.lanes|=t,qs|=t)}function Ji(e,t){if(!bt)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 $t(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,o=0;if(t)if((e.mode&rt)!==Ge){for(var{selfBaseDuration:n,child:r}=e;r!==null;)a|=r.lanes|r.childLanes,o|=r.subtreeFlags&65011712,o|=r.flags&65011712,n+=r.treeBaseDuration,r=r.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&rt)!==Ge){n=e.actualDuration,r=e.selfBaseDuration;for(var u=e.child;u!==null;)a|=u.lanes|u.childLanes,o|=u.subtreeFlags,o|=u.flags,n+=u.actualDuration,r+=u.treeBaseDuration,u=u.sibling;e.actualDuration=n,e.treeBaseDuration=r}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 BI(e,t,a){var o=t.pendingProps;switch(wh(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return $t(t),null;case 1:return $t(t),null;case 3:if(a=t.stateNode,o=null,e!==null&&(o=e.memoizedState.cache),t.memoizedState.cache!==o&&(t.flags|=2048),wr(Ca,t),me(t),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),e===null||e.child===null)pu(t)?(Th(),Ir(t)):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,kh());return $t(t),null;case 26:var{type:n,memoizedState:r}=t;return e===null?(Ir(t),r!==null?($t(t),k0(t,r)):($t(t),kg(t,n,null,o,a))):r?r!==e.memoizedState?(Ir(t),$t(t),k0(t,r)):($t(t),t.flags&=-16777217):(e=e.memoizedProps,e!==o&&Ir(t),$t(t),kg(t,n,e,o,a)),null;case 27:if(Lt(t),a=Be(ml.current),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&Ir(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 $t(t),null}e=ke(),pu(t)?px(t,e):(e=YS(n,o,a,e,!0),t.stateNode=e,Ir(t))}return $t(t),null;case 5:if(Lt(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&Ir(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 $t(t),null}var u=ke();if(pu(t))px(t,u);else{switch(r=Be(ml.current),ch(n,u.ancestorInfo),u=u.context,r=Kf(r),u){case ii:r=r.createElementNS(Ou,n);break;case nm:r=r.createElementNS(pp,n);break;default:switch(n){case"svg":r=r.createElementNS(Ou,n);break;case"math":r=r.createElementNS(pp,n);break;case"script":r=r.createElement("div"),r.innerHTML="<script></script>",r=r.removeChild(r.firstChild);break;case"select":r=typeof o.is==="string"?r.createElement("select",{is:o.is}):r.createElement("select"),o.multiple?r.multiple=!0:o.size&&(r.size=o.size);break;default:r=typeof o.is==="string"?r.createElement(n,{is:o.is}):r.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(r)!=="[object HTMLUnknownElement]"||mn.call(Ow,n)||(Ow[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)))}}r[Qa]=t,r[lo]=o;e:for(u=t.child;u!==null;){if(u.tag===5||u.tag===6)r.appendChild(u.stateNode);else if(u.tag!==4&&u.tag!==27&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===t)break e;for(;u.sibling===null;){if(u.return===null||u.return===t)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}t.stateNode=r;e:switch($a(r,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&&Ir(t)}}return $t(t),kg(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==o&&Ir(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=Be(ml.current),a=ke(),pu(t)){if(e=t.stateNode,a=t.memoizedProps,n=!or,o=null,r=Ka,r!==null)switch(r.tag){case 3:n&&(n=jS(e,a,o),n!==null&&(is(t,0).serverProps=n));break;case 27:case 5:o=r.memoizedProps,n&&(n=jS(e,a,o),n!==null&&(is(t,0).serverProps=n))}e[Qa]=t,e=e.nodeValue===a||o!==null&&o.suppressHydrationWarning===!0||MS(e.nodeValue,a)?!0:!1,e||al(t,!0)}else n=a.ancestorInfo.current,n!=null&&ef(o,n.tag,a.ancestorInfo.implicitRootScope),e=Kf(e).createTextNode(o),e[Qa]=t,t.stateNode=e}return $t(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(o=pu(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[Qa]=t,$t(t),(t.mode&rt)!==Ge&&a!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration))}else Th(),cs(),(t.flags&128)===0&&(a=t.memoizedState=null),t.flags|=4,$t(t),(t.mode&rt)!==Ge&&a!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration));e=!1}else a=kh(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e){if(t.flags&256)return Do(t),t;return Do(t),null}if((t.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return $t(t),null;case 13:if(o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=o,r=pu(t),n!==null&&n.dehydrated!==null){if(e===null){if(!r)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(r=t.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");r[Qa]=t,$t(t),(t.mode&rt)!==Ge&&n!==null&&(n=t.child,n!==null&&(t.treeBaseDuration-=n.treeBaseDuration))}else Th(),cs(),(t.flags&128)===0&&(n=t.memoizedState=null),t.flags|=4,$t(t),(t.mode&rt)!==Ge&&n!==null&&(n=t.child,n!==null&&(t.treeBaseDuration-=n.treeBaseDuration));n=!1}else n=kh(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n){if(t.flags&256)return Do(t),t;return Do(t),null}}if(Do(t),(t.flags&128)!==0)return t.lanes=a,(t.mode&rt)!==Ge&&Vi(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),r=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(r=o.memoizedState.cachePool.pool),r!==n&&(o.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Hf(t,t.updateQueue),$t(t),(t.mode&rt)!==Ge&&a&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration)),null;case 4:return me(t),e===null&&Fg(t.stateNode.containerInfo),$t(t),null;case 10:return wr(t.type,t),$t(t),null;case 19:if(xe(va,t),o=t.memoizedState,o===null)return $t(t),null;if(n=(t.flags&128)!==0,r=o.rendering,r===null)if(n)Ji(o,!1);else{if(la!==Fr||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(r=wf(e),r!==null){t.flags|=128,Ji(o,!1),e=r.updateQueue,t.updateQueue=e,Hf(t,e),t.subtreeFlags=0,e=a;for(a=t.child;a!==null;)sx(a,e),a=a.sibling;return Ce(va,va.current&Zu|Fc,t),bt&&Cr(t,o.treeForkCount),t.child}e=e.sibling}o.tail!==null&&Ua()>jp&&(t.flags|=128,n=!0,Ji(o,!1),t.lanes=4194304)}else{if(!n)if(e=wf(r),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,Hf(t,e),Ji(o,!0),o.tail===null&&o.tailMode==="hidden"&&!r.alternate&&!bt)return $t(t),null}else 2*Ua()-o.renderingStartTime>jp&&a!==536870912&&(t.flags|=128,n=!0,Ji(o,!1),t.lanes=4194304);o.isBackwards?(r.sibling=t.child,t.child=r):(e=o.last,e!==null?e.sibling=r:t.child=r,o.last=r)}if(o.tail!==null)return e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=Ua(),e.sibling=null,a=va.current,a=n?a&Zu|Fc:a&Zu,Ce(va,a,t),bt&&Cr(t,o.treeForkCount),e;return $t(t),null;case 22:case 23:return Do(t),zh(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&&($t(t),t.subtreeFlags&6&&(t.flags|=8192)):$t(t),a=t.updateQueue,a!==null&&Hf(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&&xe(Ts,t),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),wr(Ca,t),$t(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 zI(e,t){switch(wh(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&rt)!==Ge&&Vi(t),t):null;case 3:return wr(Ca,t),me(t),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Lt(t),null;case 31:if(t.memoizedState!==null){if(Do(t),t.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");cs()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&rt)!==Ge&&Vi(t),t):null;case 13:if(Do(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.");cs()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&rt)!==Ge&&Vi(t),t):null;case 19:return xe(va,t),null;case 4:return me(t),null;case 10:return wr(t.type,t),null;case 22:case 23:return Do(t),zh(t),e!==null&&xe(Ts,t),e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&rt)!==Ge&&Vi(t),t):null;case 24:return wr(Ca,t),null;case 25:return null;default:return null}}function T0(e,t){switch(wh(t),t.tag){case 3:wr(Ca,t),me(t);break;case 26:case 27:case 5:Lt(t);break;case 4:me(t);break;case 31:t.memoizedState!==null&&Do(t);break;case 13:Do(t);break;case 19:xe(va,t);break;case 10:wr(t.type,t);break;case 22:case 23:Do(t),zh(t),e!==null&&xe(Ts,t);break;case 24:wr(Ca,t)}}function Vn(e){return(e.mode&rt)!==Ge}function I0(e,t){Vn(e)?(Gn(),ec(t,e),Fn()):ec(t,e)}function Tg(e,t,a){Vn(e)?(Gn(),bu(a,e,t),Fn()):bu(a,e,t)}function ec(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&co)!==qp&&(li=!0),o=V(t,lM,a),(e&co)!==qp&&(li=!1),o!==void 0&&typeof o!=="function")){var r=void 0;r=(a.tag&Po)!==0?"useLayoutEffect":(a.tag&co)!==0?"useInsertionEffect":"useEffect";var u=void 0;u=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 `+r+`(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 `+r+`(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,G(t,function(d,m){console.error("%s must not return anything besides a function, which is used for clean-up.%s",d,m)},r,s)}a=a.next}while(a!==n)}}catch(d){qt(t,t.return,d)}}function gu(e,t,a){try{var o=t.updateQueue,n=o!==null?o.lastEffect:null;if(n!==null){var r=n.next;o=r;do{if((o.tag&e)===e){var s=o.inst,d=s.destroy;d!==void 0&&(s.destroy=void 0,(e&io)!==Op&&(oi=!0),n=t,G(n,r2,n,a,d),(e&io)!==Op&&(oi=!1))}o=o.next}while(o!==r)}}catch(m){qt(t,t.return,m)}}function I0(e,t){Fn(e)?(Hn(),Zi(t,e),_n()):Zi(t,e)}function Tg(e,t,a){Fn(e)?(Hn(),gu(a,e,t),_n()):gu(a,e,t)}function R0(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;e.type.defaultProps||"ref"in e.memoizedProps||Wu||(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.",H(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.",H(e)||"instance"));try{G(e,Mx,t,a)}catch(o){qt(e,e.return,o)}}}function NI(e,t,a){return e.getSnapshotBeforeUpdate(t,a)}function zI(e,t){var a=t.memoizedProps,o=t.memoizedState;t=e.stateNode,e.type.defaultProps||"ref"in e.memoizedProps||Wu||(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.",H(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.",H(e)||"instance"));try{var n=hs(e.type,a),r=G(e,NI,t,n,o);a=iw,r!==void 0||a.has(e.type)||(a.add(e.type),G(e,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",H(e))})),t.__reactInternalSnapshotBeforeUpdate=r}catch(s){qt(e,e.return,s)}}function A0(e,t,a){a.props=hs(e.type,e.memoizedProps),a.state=e.memoizedState,Fn(e)?(Hn(),G(e,RC,e,t,a),_n()):G(e,RC,e,t,a)}function UI(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(Fn(e))try{Hn(),e.refCleanup=t(a)}finally{_n()}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().",H(e)),t.current=a}}function Wi(e,t){try{G(e,UI,e)}catch(a){qt(e,t,a)}}function Gn(e,t){var a=e.ref,o=e.refCleanup;if(a!==null)if(typeof o==="function")try{if(Fn(e))try{Hn(),G(e,o)}finally{_n(e)}else G(e,o)}catch(n){qt(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a==="function")try{if(Fn(e))try{Hn(),G(e,a,null)}finally{_n(e)}else G(e,a,null)}catch(n){qt(e,t,n)}else a.current=null}function M0(e,t,a,o){var n=e.memoizedProps,r=n.id,s=n.onCommit;n=n.onRender,t=t===null?"mount":"update",Ip&&(t="nested-update"),typeof n==="function"&&n(r,t,e.actualDuration,e.treeBaseDuration,e.actualStartTime,a),typeof s==="function"&&s(r,t,o,a)}function PI(e,t,a,o){var n=e.memoizedProps;e=n.id,n=n.onPostCommit,t=t===null?"mount":"update",Ip&&(t="nested-update"),typeof n==="function"&&n(e,t,o,a)}function D0(e){var{type:t,memoizedProps:a,stateNode:o}=e;try{G(e,iR,o,t,a,e)}catch(n){qt(e,e.return,n)}}function Ig(e,t,a){try{G(e,dR,e.stateNode,e.type,a,t,e)}catch(o){qt(e,e.return,o)}}function E0(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&dl(e.type)||e.tag===4}function Rg(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||E0(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&&dl(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 Ag(e,t,a){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?(PS(a),(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t)):(PS(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=br));else if(o!==4&&(o===27&&dl(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Ag(e,t,a),e=e.sibling;e!==null;)Ag(e,t,a),e=e.sibling}function Hf(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&&dl(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Hf(e,t,a),e=e.sibling;e!==null;)Hf(e,t,a),e=e.sibling}function _I(e){for(var t,a=e.return;a!==null;){if(E0(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=Rg(e),Hf(e,a,t);break;case 5:a=t.stateNode,t.flags&32&&(US(a),t.flags&=-33),t=Rg(e),Hf(e,t,a);break;case 3:case 4:t=t.stateNode.containerInfo,a=Rg(e),Ag(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 O0(e){var{stateNode:t,memoizedProps:a}=e;try{G(e,IR,e.type,a,t,e)}catch(o){qt(e,e.return,o)}}function q0(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 HI(e,t){if(e=e.containerInfo,Rv=sm,e=Kb(e),fh(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,r=o.focusNode;o=o.focusOffset;try{a.nodeType,r.nodeType}catch(se){a=null;break e}var s=0,d=-1,m=-1,y=0,O=0,q=e,I=null;t:for(;;){for(var U;;){if(q!==a||n!==0&&q.nodeType!==3||(d=s+n),q!==r||o!==0&&q.nodeType!==3||(m=s+o),q.nodeType===3&&(s+=q.nodeValue.length),(U=q.firstChild)===null)break;I=q,q=U}for(;;){if(q===e)break t;if(I===a&&++y===n&&(d=s),I===r&&++O===o&&(m=s),(U=q.nextSibling)!==null)break;q=I,I=q.parentNode}q=U}a=d===-1||m===-1?null:{start:d,end:m}}else a=null}a=a||{start:0,end:0}}else a=null;Av={focusedElem:e,selectionRange:a},sm=!1;for(Ua=t;Ua!==null;)if(t=Ua,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ua=e;else for(;Ua!==null;){switch(e=t=Ua,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&&zI(e,a);break;case 3:if((n&1024)!==0){if(e=e.stateNode.containerInfo,a=e.nodeType,a===9)Qg(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Qg(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,Ua=e;break}Ua=t.return}}function B0(e,t,a){var o=Io(),n=Nn(),r=Un(),s=Pn(),d=a.flags;switch(a.tag){case 0:case 11:case 15:Vn(e,a),d&4&&T0(a,zo|en);break;case 1:if(Vn(e,a),d&4)if(e=a.stateNode,t===null)a.type.defaultProps||"ref"in a.memoizedProps||Wu||(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.",H(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.",H(a)||"instance")),Fn(a)?(Hn(),G(a,Ky,a,e),_n()):G(a,Ky,a,e);else{var m=hs(a.type,t.memoizedProps);t=t.memoizedState,a.type.defaultProps||"ref"in a.memoizedProps||Wu||(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.",H(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.",H(a)||"instance")),Fn(a)?(Hn(),G(a,kC,a,e,m,t,e.__reactInternalSnapshotBeforeUpdate),_n()):G(a,kC,a,e,m,t,e.__reactInternalSnapshotBeforeUpdate)}d&64&&R0(a),d&512&&Wi(a,a.return);break;case 3:if(t=Cr(),Vn(e,a),d&64&&(d=a.updateQueue,d!==null)){if(m=null,a.child!==null)switch(a.child.tag){case 27:case 5:m=a.child.stateNode;break;case 1:m=a.child.stateNode}try{G(a,Mx,d,m)}catch(O){qt(a,a.return,O)}}e.effectDuration+=mf(t);break;case 27:t===null&&d&4&&O0(a);case 26:case 5:if(Vn(e,a),t===null){if(d&4)D0(a);else if(d&64){e=a.type,t=a.memoizedProps,m=a.stateNode;try{G(a,cR,m,e,t,a)}catch(O){qt(a,a.return,O)}}}d&512&&Wi(a,a.return);break;case 12:if(d&4){d=Cr(),Vn(e,a),e=a.stateNode,e.effectDuration+=_i(d);try{G(a,M0,a,t,Sl,e.effectDuration)}catch(O){qt(a,a.return,O)}}else Vn(e,a);break;case 31:Vn(e,a),d&4&&U0(e,a);break;case 13:Vn(e,a),d&4&&P0(e,a),d&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(d=KI.bind(null,a),CR(e,d))));break;case 22:if(d=a.memoizedState!==null||Pr,!d){t=t!==null&&t.memoizedState!==null||Ta,m=Pr;var y=Ta;Pr=d,(Ta=t)&&!y?(jn(e,a,(a.subtreeFlags&8772)!==0),(a.mode&rt)!==He&&0<=Be&&0<=Pe&&0.05<Pe-Be&&of(a,Be,Pe)):Vn(e,a),Pr=m,Ta=y}break;case 30:break;default:Vn(e,a)}(a.mode&rt)!==He&&0<=Be&&0<=Pe&&((ua||0.05<oa)&&qn(a,Be,Pe,oa,aa),a.alternate===null&&a.return!==null&&a.return.alternate!==null&&0.05<Pe-Be&&(q0(a.return.alternate,a.return)||On(a,Be,Pe,"Mount"))),Ro(o),zn(n),aa=r,ua=s}function N0(e){var t=e.alternate;t!==null&&(e.alternate=null,N0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&fe(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 Tr(e,t,a){for(a=a.child;a!==null;)z0(e,t,a),a=a.sibling}function z0(e,t,a){if(Ja&&typeof Ja.onCommitFiberUnmount==="function")try{Ja.onCommitFiberUnmount(Ru,a)}catch(y){Zn||(Zn=!0,console.error("React instrumentation encountered an error: %o",y))}var o=Io(),n=Nn(),r=Un(),s=Pn();switch(a.tag){case 26:Ta||Gn(a,t),Tr(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(e=a.stateNode,e.parentNode.removeChild(e));break;case 27:Ta||Gn(a,t);var d=Ia,m=vo;dl(a.type)&&(Ia=a.stateNode,vo=!1),Tr(e,t,a),G(a,sc,a.stateNode),Ia=d,vo=m;break;case 5:Ta||Gn(a,t);case 6:if(d=Ia,m=vo,Ia=null,Tr(e,t,a),Ia=d,vo=m,Ia!==null)if(vo)try{G(a,mR,Ia,a.stateNode)}catch(y){qt(a,t,y)}else try{G(a,pR,Ia,a.stateNode)}catch(y){qt(a,t,y)}break;case 18:Ia!==null&&(vo?(e=Ia,_S(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),wu(e)):_S(Ia,a.stateNode));break;case 4:d=Ia,m=vo,Ia=a.stateNode.containerInfo,vo=!0,Tr(e,t,a),Ia=d,vo=m;break;case 0:case 11:case 14:case 15:gu(io,a,t),Ta||kg(a,t,zo),Tr(e,t,a);break;case 1:Ta||(Gn(a,t),d=a.stateNode,typeof d.componentWillUnmount==="function"&&A0(a,t,d)),Tr(e,t,a);break;case 21:Tr(e,t,a);break;case 22:Ta=(d=Ta)||a.memoizedState!==null,Tr(e,t,a),Ta=d;break;default:Tr(e,t,a)}(a.mode&rt)!==He&&0<=Be&&0<=Pe&&(ua||0.05<oa)&&qn(a,Be,Pe,oa,aa),Ro(o),zn(n),aa=r,ua=s}function U0(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{G(t,kR,e)}catch(a){qt(t,t.return,a)}}}function P0(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{G(t,TR,e)}catch(a){qt(t,t.return,a)}}function FI(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new cw),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new cw),t;default:throw Error("Unexpected Suspense handler tag ("+e.tag+"). This is a bug in React.")}}function Ff(e,t){var a=FI(e);t.forEach(function(o){if(!a.has(o)){if(a.add(o),Wn)if(Ju!==null&&ei!==null)ac(ei,Ju);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var n=ZI.bind(null,e,o);o.then(n,n)}})}function go(e,t){var a=t.deletions;if(a!==null)for(var o=0;o<a.length;o++){var n=e,r=t,s=a[o],d=Io(),m=r;e:for(;m!==null;){switch(m.tag){case 27:if(dl(m.type)){Ia=m.stateNode,vo=!1;break e}break;case 5:Ia=m.stateNode,vo=!1;break e;case 3:case 4:Ia=m.stateNode.containerInfo,vo=!0;break e}m=m.return}if(Ia===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");z0(n,r,s),Ia=null,vo=!1,(s.mode&rt)!==He&&0<=Be&&0<=Pe&&0.05<Pe-Be&&On(s,Be,Pe,"Unmount"),Ro(d),n=s,r=n.alternate,r!==null&&(r.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)_0(t,e),t=t.sibling}function _0(e,t){var a=Io(),o=Nn(),n=Un(),r=Pn(),{alternate:s,flags:d}=e;switch(e.tag){case 0:case 11:case 14:case 15:go(t,e),yo(e),d&4&&(gu(io|en,e,e.return),Zi(io|en,e),kg(e,e.return,zo|en));break;case 1:if(go(t,e),yo(e),d&512&&(Ta||s===null||Gn(s,s.return)),d&64&&Pr&&(d=e.updateQueue,d!==null&&(s=d.callbacks,s!==null))){var m=d.shared.hiddenCallbacks;d.shared.hiddenCallbacks=m===null?s:m.concat(s)}break;case 26:if(m=vn,go(t,e),yo(e),d&512&&(Ta||s===null||Gn(s,s.return)),d&4){var y=s!==null?s.memoizedState:null;if(d=e.memoizedState,s===null)if(d===null)if(e.stateNode===null){e:{d=e.type,s=e.memoizedProps,m=m.ownerDocument||m;t:switch(d){case"title":if(y=m.getElementsByTagName("title")[0],!y||y[mc]||y[Ya]||y.namespaceURI===Mu||y.hasAttribute("itemprop"))y=m.createElement(d),m.head.insertBefore(y,m.querySelector("head > title"));Xa(y,d,s),y[Ya]=e,qe(y),d=y;break e;case"link":var O=ZS("link","href",m).get(d+(s.href||""));if(O){for(var q=0;q<O.length;q++)if(y=O[q],y.getAttribute("href")===(s.href==null||s.href===""?null:s.href)&&y.getAttribute("rel")===(s.rel==null?null:s.rel)&&y.getAttribute("title")===(s.title==null?null:s.title)&&y.getAttribute("crossorigin")===(s.crossOrigin==null?null:s.crossOrigin)){O.splice(q,1);break t}}y=m.createElement(d),Xa(y,d,s),m.head.appendChild(y);break;case"meta":if(O=ZS("meta","content",m).get(d+(s.content||""))){for(q=0;q<O.length;q++)if(y=O[q],et(s.content,"content"),y.getAttribute("content")===(s.content==null?null:""+s.content)&&y.getAttribute("name")===(s.name==null?null:s.name)&&y.getAttribute("property")===(s.property==null?null:s.property)&&y.getAttribute("http-equiv")===(s.httpEquiv==null?null:s.httpEquiv)&&y.getAttribute("charset")===(s.charSet==null?null:s.charSet)){O.splice(q,1);break t}}y=m.createElement(d),Xa(y,d,s),m.head.appendChild(y);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+d+'". This is a bug in React.')}y[Ya]=e,qe(y),d=y}e.stateNode=d}else WS(m,e.type,e.stateNode);else e.stateNode=KS(m,d,e.memoizedProps);else y!==d?(y===null?s.stateNode!==null&&(s=s.stateNode,s.parentNode.removeChild(s)):y.count--,d===null?WS(m,e.type,e.stateNode):KS(m,d,e.memoizedProps)):d===null&&e.stateNode!==null&&Ig(e,e.memoizedProps,s.memoizedProps)}break;case 27:go(t,e),yo(e),d&512&&(Ta||s===null||Gn(s,s.return)),s!==null&&d&4&&Ig(e,e.memoizedProps,s.memoizedProps);break;case 5:if(go(t,e),yo(e),d&512&&(Ta||s===null||Gn(s,s.return)),e.flags&32){m=e.stateNode;try{G(e,US,m)}catch(he){qt(e,e.return,he)}}d&4&&e.stateNode!=null&&(m=e.memoizedProps,Ig(e,m,s!==null?s.memoizedProps:m)),d&1024&&(iv=!0,e.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(go(t,e),yo(e),d&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.");d=e.memoizedProps,s=s!==null?s.memoizedProps:d,m=e.stateNode;try{G(e,fR,m,s,d)}catch(he){qt(e,e.return,he)}}break;case 3:if(m=Cr(),nm=null,y=vn,vn=Kf(t.containerInfo),go(t,e),vn=y,yo(e),d&4&&s!==null&&s.memoizedState.isDehydrated)try{G(e,wR,t.containerInfo)}catch(he){qt(e,e.return,he)}iv&&(iv=!1,H0(e)),t.effectDuration+=mf(m);break;case 4:d=vn,vn=Kf(e.stateNode.containerInfo),go(t,e),yo(e),vn=d;break;case 12:d=Cr(),go(t,e),yo(e),e.stateNode.effectDuration+=_i(d);break;case 31:go(t,e),yo(e),d&4&&(d=e.updateQueue,d!==null&&(e.updateQueue=null,Ff(e,d)));break;case 13:go(t,e),yo(e),e.child.flags&8192&&e.memoizedState!==null!==(s!==null&&s.memoizedState!==null)&&(Gp=Na()),d&4&&(d=e.updateQueue,d!==null&&(e.updateQueue=null,Ff(e,d)));break;case 22:m=e.memoizedState!==null;var I=s!==null&&s.memoizedState!==null,U=Pr,se=Ta;if(Pr=U||m,Ta=se||I,go(t,e),Ta=se,Pr=U,I&&!m&&!U&&!se&&(e.mode&rt)!==He&&0<=Be&&0<=Pe&&0.05<Pe-Be&&of(e,Be,Pe),yo(e),d&8192)e:for(t=e.stateNode,t._visibility=m?t._visibility&~Cc:t._visibility|Cc,!m||s===null||I||Pr||Ta||(gs(e),(e.mode&rt)!==He&&0<=Be&&0<=Pe&&0.05<Pe-Be&&On(e,Be,Pe,"Disconnect")),s=null,t=e;;){if(t.tag===5||t.tag===26){if(s===null){I=s=t;try{y=I.stateNode,m?G(I,gR,y):G(I,bR,I.stateNode,I.memoizedProps)}catch(he){qt(I,I.return,he)}}}else if(t.tag===6){if(s===null){I=t;try{O=I.stateNode,m?G(I,yR,O):G(I,xR,O,I.memoizedProps)}catch(he){qt(I,I.return,he)}}}else if(t.tag===18){if(s===null){I=t;try{q=I.stateNode,m?G(I,hR,q):G(I,vR,I.stateNode)}catch(he){qt(I,I.return,he)}}}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;s===t&&(s=null),t=t.return}s===t&&(s=null),t.sibling.return=t.return,t=t.sibling}d&4&&(d=e.updateQueue,d!==null&&(s=d.retryQueue,s!==null&&(d.retryQueue=null,Ff(e,s))));break;case 19:go(t,e),yo(e),d&4&&(d=e.updateQueue,d!==null&&(e.updateQueue=null,Ff(e,d)));break;case 30:break;case 21:break;default:go(t,e),yo(e)}(e.mode&rt)!==He&&0<=Be&&0<=Pe&&((ua||0.05<oa)&&qn(e,Be,Pe,oa,aa),e.alternate===null&&e.return!==null&&e.return.alternate!==null&&0.05<Pe-Be&&(q0(e.return.alternate,e.return)||On(e,Be,Pe,"Mount"))),Ro(a),zn(o),aa=n,ua=r}function yo(e){var t=e.flags;if(t&2){try{G(e,_I,e)}catch(a){qt(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function H0(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;H0(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Vn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)B0(e,t.alternate,t),t=t.sibling}function F0(e){var t=Io(),a=Nn(),o=Un(),n=Pn();switch(e.tag){case 0:case 11:case 14:case 15:kg(e,e.return,zo),gs(e);break;case 1:Gn(e,e.return);var r=e.stateNode;typeof r.componentWillUnmount==="function"&&A0(e,e.return,r),gs(e);break;case 27:G(e,sc,e.stateNode);case 26:case 5:Gn(e,e.return),gs(e);break;case 22:e.memoizedState===null&&gs(e);break;case 30:gs(e);break;default:gs(e)}(e.mode&rt)!==He&&0<=Be&&0<=Pe&&(ua||0.05<oa)&&qn(e,Be,Pe,oa,aa),Ro(t),zn(a),aa=o,ua=n}function gs(e){for(e=e.child;e!==null;)F0(e),e=e.sibling}function G0(e,t,a,o){var n=Io(),r=Nn(),s=Un(),d=Pn(),m=a.flags;switch(a.tag){case 0:case 11:case 15:jn(e,a,o),T0(a,zo);break;case 1:if(jn(e,a,o),t=a.stateNode,typeof t.componentDidMount==="function"&&G(a,Ky,a,t),t=a.updateQueue,t!==null){e=a.stateNode;try{G(a,wI,t,e)}catch(y){qt(a,a.return,y)}}o&&m&64&&R0(a),Wi(a,a.return);break;case 27:O0(a);case 26:case 5:jn(e,a,o),o&&t===null&&m&4&&D0(a),Wi(a,a.return);break;case 12:if(o&&m&4){m=Cr(),jn(e,a,o),o=a.stateNode,o.effectDuration+=_i(m);try{G(a,M0,a,t,Sl,o.effectDuration)}catch(y){qt(a,a.return,y)}}else jn(e,a,o);break;case 31:jn(e,a,o),o&&m&4&&U0(e,a);break;case 13:jn(e,a,o),o&&m&4&&P0(e,a);break;case 22:a.memoizedState===null&&jn(e,a,o),Wi(a,a.return);break;case 30:break;default:jn(e,a,o)}(a.mode&rt)!==He&&0<=Be&&0<=Pe&&(ua||0.05<oa)&&qn(a,Be,Pe,oa,aa),Ro(n),zn(r),aa=s,ua=d}function jn(e,t,a){a=a&&(t.subtreeFlags&8772)!==0;for(t=t.child;t!==null;)G0(e,t.alternate,t,a),t=t.sibling}function Mg(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&&ds(e),a!=null&&Pi(a))}function Dg(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(ds(t),e!=null&&Pi(e))}function fn(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 r=t.sibling;V0(e,t,a,o,r!==null?r.actualStartTime:n),t=r}}function V0(e,t,a,o,n){var r=Io(),s=Nn(),d=Un(),m=Pn(),y=yl,O=t.flags;switch(t.tag){case 0:case 11:case 15:(t.mode&rt)!==He&&0<t.actualStartTime&&(t.flags&1)!==0&&nf(t,t.actualStartTime,n,Da,a),fn(e,t,a,o,n),O&2048&&I0(t,co|en);break;case 1:(t.mode&rt)!==He&&0<t.actualStartTime&&((t.flags&128)!==0?mh(t,t.actualStartTime,n,[]):(t.flags&1)!==0&&nf(t,t.actualStartTime,n,Da,a)),fn(e,t,a,o,n);break;case 3:var q=Cr(),I=Da;Da=t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)===0,fn(e,t,a,o,n),Da=I,O&2048&&(a=null,t.alternate!==null&&(a=t.alternate.memoizedState.cache),o=t.memoizedState.cache,o!==a&&(ds(o),a!=null&&Pi(a))),e.passiveEffectDuration+=mf(q);break;case 12:if(O&2048){O=Cr(),fn(e,t,a,o,n),e=t.stateNode,e.passiveEffectDuration+=_i(O);try{G(t,PI,t,t.alternate,Sl,e.passiveEffectDuration)}catch(U){qt(t,t.return,U)}}else fn(e,t,a,o,n);break;case 31:O=Da,q=t.alternate!==null?t.alternate.memoizedState:null,I=t.memoizedState,q!==null&&I===null?(I=t.deletions,I!==null&&0<I.length&&I[0].tag===18?(Da=!1,q=q.hydrationErrors,q!==null&&mh(t,t.actualStartTime,n,q)):Da=!0):Da=!1,fn(e,t,a,o,n),Da=O;break;case 13:O=Da,q=t.alternate!==null?t.alternate.memoizedState:null,I=t.memoizedState,q===null||q.dehydrated===null||I!==null&&I.dehydrated!==null?Da=!1:(I=t.deletions,I!==null&&0<I.length&&I[0].tag===18?(Da=!1,q=q.hydrationErrors,q!==null&&mh(t,t.actualStartTime,n,q)):Da=!0),fn(e,t,a,o,n),Da=O;break;case 23:break;case 22:I=t.stateNode,q=t.alternate,t.memoizedState!==null?I._visibility&Ar?fn(e,t,a,o,n):Ji(e,t,a,o,n):I._visibility&Ar?fn(e,t,a,o,n):(I._visibility|=Ar,yu(e,t,a,o,(t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child),n),(t.mode&rt)===He||Da||(e=t.actualStartTime,0<=e&&0.05<n-e&&of(t,e,n),0<=Be&&0<=Pe&&0.05<Pe-Be&&of(t,Be,Pe))),O&2048&&Mg(q,t);break;case 24:fn(e,t,a,o,n),O&2048&&Dg(t.alternate,t);break;default:fn(e,t,a,o,n)}if((t.mode&rt)!==He){if(e=!Da&&t.alternate===null&&t.return!==null&&t.return.alternate!==null)a=t.actualStartTime,0<=a&&0.05<n-a&&On(t,a,n,"Mount");0<=Be&&0<=Pe&&((ua||0.05<oa)&&qn(t,Be,Pe,oa,aa),e&&0.05<Pe-Be&&On(t,Be,Pe,"Mount"))}Ro(r),zn(s),aa=d,ua=m,yl=y}function yu(e,t,a,o,n,r){n=n&&((t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child));for(t=t.child;t!==null;){var s=t.sibling;j0(e,t,a,o,n,s!==null?s.actualStartTime:r),t=s}}function j0(e,t,a,o,n,r){var s=Io(),d=Nn(),m=Un(),y=Pn(),O=yl;n&&(t.mode&rt)!==He&&0<t.actualStartTime&&(t.flags&1)!==0&&nf(t,t.actualStartTime,r,Da,a);var q=t.flags;switch(t.tag){case 0:case 11:case 15:yu(e,t,a,o,n,r),I0(t,co);break;case 23:break;case 22:var I=t.stateNode;t.memoizedState!==null?I._visibility&Ar?yu(e,t,a,o,n,r):Ji(e,t,a,o,r):(I._visibility|=Ar,yu(e,t,a,o,n,r)),n&&q&2048&&Mg(t.alternate,t);break;case 24:yu(e,t,a,o,n,r),n&&q&2048&&Dg(t.alternate,t);break;default:yu(e,t,a,o,n,r)}(t.mode&rt)!==He&&0<=Be&&0<=Pe&&(ua||0.05<oa)&&qn(t,Be,Pe,oa,aa),Ro(s),zn(d),aa=m,ua=y,yl=O}function Ji(e,t,a,o,n){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(var r=t.child;r!==null;){t=r.sibling;var s=e,d=a,m=o,y=t!==null?t.actualStartTime:n,O=yl;(r.mode&rt)!==He&&0<r.actualStartTime&&(r.flags&1)!==0&&nf(r,r.actualStartTime,y,Da,d);var q=r.flags;switch(r.tag){case 22:Ji(s,r,d,m,y),q&2048&&Mg(r.alternate,r);break;case 24:Ji(s,r,d,m,y),q&2048&&Dg(r.alternate,r);break;default:Ji(s,r,d,m,y)}yl=O,r=t}}function vu(e,t,a){if(e.subtreeFlags&Gc)for(e=e.child;e!==null;)X0(e,t,a),e=e.sibling}function X0(e,t,a){switch(e.tag){case 26:vu(e,t,a),e.flags&Gc&&e.memoizedState!==null&&MR(a,vn,e.memoizedState,e.memoizedProps);break;case 5:vu(e,t,a);break;case 3:case 4:var o=vn;vn=Kf(e.stateNode.containerInfo),vu(e,t,a),vn=o;break;case 22:e.memoizedState===null&&(o=e.alternate,o!==null&&o.memoizedState!==null?(o=Gc,Gc=16777216,vu(e,t,a),Gc=o):vu(e,t,a));break;default:vu(e,t,a)}}function Y0(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 ec(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=Io();Ua=o,K0(o,e),(o.mode&rt)!==He&&0<=Be&&0<=Pe&&0.05<Pe-Be&&On(o,Be,Pe,"Unmount"),Ro(n)}Y0(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)$0(e),e=e.sibling}function $0(e){var t=Io(),a=Nn(),o=Un(),n=Pn();switch(e.tag){case 0:case 11:case 15:ec(e),e.flags&2048&&Tg(e,e.return,co|en);break;case 3:var r=Cr();ec(e),e.stateNode.passiveEffectDuration+=mf(r);break;case 12:r=Cr(),ec(e),e.stateNode.passiveEffectDuration+=_i(r);break;case 22:r=e.stateNode,e.memoizedState!==null&&r._visibility&Ar&&(e.return===null||e.return.tag!==13)?(r._visibility&=~Ar,Gf(e),(e.mode&rt)!==He&&0<=Be&&0<=Pe&&0.05<Pe-Be&&On(e,Be,Pe,"Disconnect")):ec(e);break;default:ec(e)}(e.mode&rt)!==He&&0<=Be&&0<=Pe&&(ua||0.05<oa)&&qn(e,Be,Pe,oa,aa),Ro(t),zn(a),ua=n,aa=o}function Gf(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=Io();Ua=o,K0(o,e),(o.mode&rt)!==He&&0<=Be&&0<=Pe&&0.05<Pe-Be&&On(o,Be,Pe,"Unmount"),Ro(n)}Y0(e)}for(e=e.child;e!==null;)Q0(e),e=e.sibling}function Q0(e){var t=Io(),a=Nn(),o=Un(),n=Pn();switch(e.tag){case 0:case 11:case 15:Tg(e,e.return,co),Gf(e);break;case 22:var r=e.stateNode;r._visibility&Ar&&(r._visibility&=~Ar,Gf(e));break;default:Gf(e)}(e.mode&rt)!==He&&0<=Be&&0<=Pe&&(ua||0.05<oa)&&qn(e,Be,Pe,oa,aa),Ro(t),zn(a),ua=n,aa=o}function K0(e,t){for(;Ua!==null;){var a=Ua,o=a,n=t,r=Io(),s=Nn(),d=Un(),m=Pn();switch(o.tag){case 0:case 11:case 15:Tg(o,n,co);break;case 23:case 22:o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(n=o.memoizedState.cachePool.pool,n!=null&&ds(n));break;case 24:Pi(o.memoizedState.cache)}if((o.mode&rt)!==He&&0<=Be&&0<=Pe&&(ua||0.05<oa)&&qn(o,Be,Pe,oa,aa),Ro(r),zn(s),ua=m,aa=d,o=a.child,o!==null)o.return=a,Ua=o;else e:for(a=e;Ua!==null;){if(o=Ua,r=o.sibling,s=o.return,N0(o),o===a){Ua=null;break e}if(r!==null){r.return=s,Ua=r;break e}Ua=s}}}function GI(){c2.forEach(function(e){return e()})}function Z0(){var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return e||F.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),e}function Mo(e){if((kt&Ea)!==Pa&&st!==0)return st&-st;var t=F.T;return t!==null?(t._updatedFibers||(t._updatedFibers=new Set),t._updatedFibers.add(e),Pg()):B()}function W0(){if(xo===0)if((st&536870912)===0||vt){var e=up;up<<=1,(up&3932160)===0&&(up=262144),xo=e}else xo=536870912;return e=No.current,e!==null&&(e.flags|=32),xo}function sa(e,t,a){if(oi&&console.error("useInsertionEffect must not schedule updates."),xv&&(Yp=!0),e===jt&&(_t===Ds||_t===Es)||e.cancelPendingCommit!==null)xu(e,0),il(e,st,xo,!1);if(Zr(e,a),(kt&Ea)!==Pa&&e===jt){if(Kn)switch(t.tag){case 0:case 11:case 15:e=ut&&H(ut)||"Unknown",kw.has(e)||(kw.add(e),t=H(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:ww||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),ww=!0)}}else Wn&&Ri(e,t,a),JI(t),e===jt&&((kt&Ea)===Pa&&(Ml|=a),na===Il&&il(e,st,xo,!1)),Xn(e)}function J0(e,t,a){if((kt&(Ea|Uo))!==Pa)throw Error("Should not already be working.");if(st!==0&&ut!==null){var o=ut,n=Na();switch(yC){case Xc:case Ds:var r=Ac;Kt&&((o=o._debugTask)?o.run(console.timeStamp.bind(console,"Suspended",r,n,Xo,void 0,"primary-light")):console.timeStamp("Suspended",r,n,Xo,void 0,"primary-light"));break;case Es:r=Ac,Kt&&((o=o._debugTask)?o.run(console.timeStamp.bind(console,"Action",r,n,Xo,void 0,"primary-light")):console.timeStamp("Action",r,n,Xo,void 0,"primary-light"));break;default:Kt&&(o=n-Ac,3>o||console.timeStamp("Blocked",Ac,n,Xo,void 0,5>o?"primary-light":10>o?"primary":100>o?"primary-dark":"error"))}}r=(a=!a&&(t&127)===0&&(t&e.expiredLanes)===0||Wl(e,t))?jI(e,t):Og(e,t,!0);var s=a;do{if(r===_r){ti&&!a&&il(e,t,0,!1),t=_t,Ac=Ca(),yC=t;break}else{if(o=Na(),n=e.current.alternate,s&&!VI(n)){ko(t),n=za,r=o,!Kt||r<=n||(ha?ha.run(console.timeStamp.bind(console,"Teared Render",n,r,yt,ht,"error")):console.timeStamp("Teared Render",n,r,yt,ht,"error")),ys(t,o),r=Og(e,t,!1),s=!1;continue}if(r===Ms){if(s=t,e.errorRecoveryDisabledLanes&s)var d=0;else d=e.pendingLanes&-536870913,d=d!==0?d:d&536870912?536870912:0;if(d!==0){ko(t),hh(za,o,t,ha),ys(t,o),t=d;e:{o=e,r=s,s=$c;var m=o.current.memoizedState.isDehydrated;if(m&&(xu(o,d).flags|=256),d=Og(o,d,!1),d!==Ms){if(fv&&!m){o.errorRecoveryDisabledLanes|=r,Ml|=r,r=Il;break e}o=fo,fo=s,o!==null&&(fo===null?fo=o:fo.push.apply(fo,o))}r=d}if(s=!1,r!==Ms)continue;else o=Na()}}if(r===jc){ko(t),hh(za,o,t,ha),ys(t,o),xu(e,0),il(e,t,0,!0);break}e:{switch(a=e,r){case _r:case jc:throw Error("Root did not complete. This is a bug in React.");case Il:if((t&4194048)!==t)break;case Pp:ko(t),Jb(za,o,t,ha),ys(t,o),n=t,(n&127)!==0?wp=o:(n&4194048)!==0&&(kp=o),il(a,t,xo,!Rl);break e;case Ms:fo=null;break;case Up:case dw:break;default:throw Error("Unknown root exit status.")}if(F.actQueue!==null)qg(a,n,t,fo,Qc,Fp,xo,Ml,Os,r,null,null,za,o);else{if((t&62914560)===t&&(s=Gp+mw-Na(),10<s)){if(il(a,t,xo,!Rl),Zl(a,0,!0)!==0)break e;bn=t,a.timeoutHandle=Ow(eS.bind(null,a,n,fo,Qc,Fp,t,xo,Ml,Os,Rl,r,"Throttled",za,o),s);break e}eS(a,n,fo,Qc,Fp,t,xo,Ml,Os,Rl,r,null,za,o)}}}break}while(1);Xn(e)}function eS(e,t,a,o,n,r,s,d,m,y,O,q,I,U){e.timeoutHandle=Us;var se=t.subtreeFlags,he=null;if(se&8192||(se&16785408)===16785408){if(he={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:br},X0(t,r,he),se=(r&62914560)===r?Gp-Na():(r&4194048)===r?pw-Na():0,se=DR(he,se),se!==null){bn=r,e.cancelPendingCommit=se(qg.bind(null,e,t,r,a,o,n,s,d,m,O,he,he.waitingForViewTransition?"Waiting for the previous Animation":0<he.count?0<he.imgCount?"Suspended on CSS and Images":"Suspended on CSS":he.imgCount===1?"Suspended on an Image":0<he.imgCount?"Suspended on Images":null,I,U)),il(e,r,s,!y);return}}qg(e,t,r,a,o,n,s,d,m,O,he,q,I,U)}function VI(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],r=n.getSnapshot;n=n.value;try{if(!so(r(),n))return!1}catch(s){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 il(e,t,a,o){t&=~pv,t&=~Ml,e.suspendedLanes|=t,e.pingedLanes&=~t,o&&(e.warmLanes|=t),o=e.expirationTimes;for(var n=t;0<n;){var r=31-no(n),s=1<<r;o[r]=-1,n&=~s}a!==0&&Jl(e,a,t)}function bu(){return(kt&(Ea|Uo))===Pa?(oc(0,!1),!1):!0}function Eg(){if(ut!==null){if(_t===bo)var e=ut.return;else e=ut,df(),Gh(e),Xu=null,Uc=0,e=ut;for(;e!==null;)k0(e.alternate,e),e=e.return;ut=null}}function ys(e,t){(e&127)!==0&&(Ll=t),(e&4194048)!==0&&(or=t),(e&62914560)!==0&&(hC=t),(e&2080374784)!==0&&(gC=t)}function xu(e,t){Kt&&(console.timeStamp("Blocking Track",0.003,0.003,"Blocking",ht,"primary-light"),console.timeStamp("Transition Track",0.003,0.003,"Transition",ht,"primary-light"),console.timeStamp("Suspense Track",0.003,0.003,"Suspense",ht,"primary-light"),console.timeStamp("Idle Track",0.003,0.003,"Idle",ht,"primary-light"));var a=za;if(za=Ca(),st!==0&&0<a){if(ko(st),na===Up||na===Il)Jb(a,za,t,ha);else{var o=za,n=ha;if(Kt&&!(o<=a)){var r=(t&738197653)===t?"tertiary-dark":"primary-dark",s=(t&536870912)===t?"Prewarm":(t&201326741)===t?"Interrupted Hydration":"Interrupted Render";n?n.run(console.timeStamp.bind(console,s,a,o,yt,ht,r)):console.timeStamp(s,a,o,yt,ht,r)}}ys(st,za)}if(a=ha,ha=null,(t&127)!==0){ha=Tc,n=0<=ar&&ar<Ll?Ll:ar,o=0<=Ls&&Ls<Ll?Ll:Ls,r=0<=o?o:0<=n?n:za,0<=wp?(ko(2),ex(wp,r,t,a)):(Tp&127)!==0&&(ko(2),zi(Ll,r,Br)),a=n;var d=o,m=Ic,y=0<Gu,O=Cl===kc,q=Cl===Cp;if(n=za,o=Tc,r=jy,s=Xy,Kt){if(yt="Blocking",0<a?a>n&&(a=n):a=n,0<d?d>a&&(d=a):d=a,m!==null&&a>d){var I=y?"secondary-light":"warning";o?o.run(console.timeStamp.bind(console,y?"Consecutive":"Event: "+m,d,a,yt,ht,I)):console.timeStamp(y?"Consecutive":"Event: "+m,d,a,yt,ht,I)}n>a&&(d=O?"error":(t&738197653)===t?"tertiary-light":"primary-light",O=q?"Promise Resolved":O?"Cascading Update":5<n-a?"Update Blocked":"Update",q=[],s!=null&&q.push(["Component name",s]),r!=null&&q.push(["Method name",r]),a={start:a,end:n,detail:{devtools:{properties:q,track:yt,trackGroup:ht,color:d}}},o?o.run(performance.measure.bind(performance,O,a)):performance.measure(O,a))}ar=-1.1,Cl=0,Xy=jy=null,wp=-1.1,Gu=Ls,Ls=-1.1,Ll=Ca()}if((t&4194048)!==0&&(ha=Rc,n=0<=qr&&qr<or?or:qr,a=0<=Wo&&Wo<or?or:Wo,o=0<=wl&&wl<or?or:wl,r=0<=o?o:0<=a?a:za,0<=kp?(ko(256),ex(kp,r,t,ha)):(Tp&4194048)!==0&&(ko(256),zi(or,r,Br)),q=o,d=Cs,m=0<kl,y=Yy===Cp,r=za,o=Rc,s=pC,O=mC,Kt&&(yt="Transition",0<a?a>r&&(a=r):a=r,0<n?n>a&&(n=a):n=a,0<q?q>n&&(q=n):q=n,n>q&&d!==null&&(I=m?"secondary-light":"warning",o?o.run(console.timeStamp.bind(console,m?"Consecutive":"Event: "+d,q,n,yt,ht,I)):console.timeStamp(m?"Consecutive":"Event: "+d,q,n,yt,ht,I)),a>n&&(o?o.run(console.timeStamp.bind(console,"Action",n,a,yt,ht,"primary-dark")):console.timeStamp("Action",n,a,yt,ht,"primary-dark")),r>a&&(n=y?"Promise Resolved":5<r-a?"Update Blocked":"Update",q=[],O!=null&&q.push(["Component name",O]),s!=null&&q.push(["Method name",s]),a={start:a,end:r,detail:{devtools:{properties:q,track:yt,trackGroup:ht,color:"primary-light"}}},o?o.run(performance.measure.bind(performance,n,a)):performance.measure(n,a))),Wo=qr=-1.1,Yy=0,kp=-1.1,kl=wl,wl=-1.1,or=Ca()),(t&62914560)!==0&&(Tp&62914560)!==0&&(ko(4194304),zi(hC,za,Br)),(t&2080374784)!==0&&(Tp&2080374784)!==0&&(ko(268435456),zi(gC,za,Br)),a=e.timeoutHandle,a!==Us&&(e.timeoutHandle=Us,C2(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),bn=0,Eg(),jt=e,ut=a=xr(e.current,null),st=t,_t=bo,Po=null,Rl=!1,ti=Wl(e,t),fv=!1,na=_r,Os=xo=pv=Ml=Al=0,fo=$c=null,Fp=!1,(t&8)!==0&&(t|=t&32),o=e.entangledLanes,o!==0)for(e=e.entanglements,o&=t;0<o;)n=31-no(o),r=1<<n,t|=e[n],o&=~r;return rr=t,rf(),e=sC(),1000<e-lC&&(F.recentlyCreatedOwnerStacks=0,lC=e),gn.discardPendingWarnings(),a}function tS(e,t){je=null,F.H=Fc,F.getCurrentStack=null,Kn=!1,Oo=null,t===ju||t===Mp?(t=Lx(),_t=Xc):t===Zy?(t=Lx(),_t=fw):_t=t===sv?dv:t!==null&&typeof t==="object"&&typeof t.then==="function"?Yc:_p,Po=t;var a=ut;a===null?(na=jc,Nf(e,To(t,e.current))):a.mode&rt&&Mh(a)}function aS(){var e=No.current;return e===null?!0:(st&4194048)===st?Jo===null?!0:!1:(st&62914560)===st||(st&536870912)!==0?e===Jo:!1}function oS(){var e=F.H;return F.H=Fc,e===null?Fc:e}function nS(){var e=F.A;return F.A=i2,e}function Vf(e){ha===null&&(ha=e._debugTask==null?null:e._debugTask)}function jf(){na=Il,Rl||(st&4194048)!==st&&No.current!==null||(ti=!0),(Al&134217727)===0&&(Ml&134217727)===0||jt===null||il(jt,st,xo,!1)}function Og(e,t,a){var o=kt;kt|=Ea;var n=oS(),r=nS();if(jt!==e||st!==t){if(Wn){var s=e.memoizedUpdaters;0<s.size&&(ac(e,st),s.clear()),Wr(e,t)}Qc=null,xu(e,t)}t=!1,s=na;e:do try{if(_t!==bo&&ut!==null){var d=ut,m=Po;switch(_t){case dv:Eg(),s=Pp;break e;case Xc:case Ds:case Es:case Yc:No.current===null&&(t=!0);var y=_t;if(_t=bo,Po=null,Su(e,d,m,y),a&&ti){s=_r;break e}break;default:y=_t,_t=bo,Po=null,Su(e,d,m,y)}}rS(),s=na;break}catch(O){tS(e,O)}while(1);return t&&e.shellSuspendCounter++,df(),kt=o,F.H=n,F.A=r,ut===null&&(jt=null,st=0,rf()),s}function rS(){for(;ut!==null;)lS(ut)}function jI(e,t){var a=kt;kt|=Ea;var o=oS(),n=nS();if(jt!==e||st!==t){if(Wn){var r=e.memoizedUpdaters;0<r.size&&(ac(e,st),r.clear()),Wr(e,t)}Qc=null,Vp=Na()+hw,xu(e,t)}else ti=Wl(e,t);e:do try{if(_t!==bo&&ut!==null)t:switch(t=ut,r=Po,_t){case _p:_t=bo,Po=null,Su(e,t,r,_p);break;case Ds:case Es:if(xx(r)){_t=bo,Po=null,sS(t);break}t=function(){_t!==Ds&&_t!==Es||jt!==e||(_t=Hp),Xn(e)},r.then(t,t);break e;case Xc:_t=Hp;break e;case fw:_t=cv;break e;case Hp:xx(r)?(_t=bo,Po=null,sS(t)):(_t=bo,Po=null,Su(e,t,r,Hp));break;case cv:var s=null;switch(ut.tag){case 26:s=ut.memoizedState;case 5:case 27:var d=ut;if(s?JS(s):d.stateNode.complete){_t=bo,Po=null;var m=d.sibling;if(m!==null)ut=m;else{var y=d.return;y!==null?(ut=y,Xf(y)):ut=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}_t=bo,Po=null,Su(e,t,r,cv);break;case Yc:_t=bo,Po=null,Su(e,t,r,Yc);break;case dv:Eg(),na=Pp;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}F.actQueue!==null?rS():XI();break}catch(O){tS(e,O)}while(1);if(df(),F.H=o,F.A=n,kt=a,ut!==null)return _r;return jt=null,st=0,rf(),na}function XI(){for(;ut!==null&&!VR();)lS(ut)}function lS(e){var t=e.alternate;(e.mode&rt)!==He?(Ah(e),t=G(e,Cg,t,e,rr),Mh(e)):t=G(e,Cg,t,e,rr),e.memoizedProps=e.pendingProps,t===null?Xf(e):ut=t}function sS(e){var t=G(e,YI,e);e.memoizedProps=e.pendingProps,t===null?Xf(e):ut=t}function YI(e){var t=e.alternate,a=(e.mode&rt)!==He;switch(a&&Ah(e),e.tag){case 15:case 0:t=v0(t,e,e.pendingProps,e.type,void 0,st);break;case 11:t=v0(t,e,e.pendingProps,e.type.render,e.ref,st);break;case 5:Gh(e);default:k0(t,e),e=ut=lx(e,rr),t=Cg(t,e,rr)}return a&&Mh(e),t}function Su(e,t,a,o){df(),Gh(t),Xu=null,Uc=0;var n=t.return;try{if(DI(e,n,t,a,st)){na=jc,Nf(e,To(a,e.current)),ut=null;return}}catch(r){if(n!==null)throw ut=n,r;na=jc,Nf(e,To(a,e.current)),ut=null;return}if(t.flags&32768){if(vt||o===_p)e=!0;else if(ti||(st&536870912)!==0)e=!1;else if(Rl=e=!0,o===Ds||o===Es||o===Xc||o===Yc)o=No.current,o!==null&&o.tag===13&&(o.flags|=16384);uS(t,e)}else Xf(t)}function Xf(e){var t=e;do{if((t.flags&32768)!==0){uS(t,Rl);return}var a=t.alternate;if(e=t.return,Ah(t),a=G(t,qI,a,t,rr),(t.mode&rt)!==He&&hx(t),a!==null){ut=a;return}if(t=t.sibling,t!==null){ut=t;return}ut=t=e}while(t!==null);na===_r&&(na=dw)}function uS(e,t){do{var a=BI(e.alternate,e);if(a!==null){a.flags&=32767,ut=a;return}if((e.mode&rt)!==He){hx(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)){ut=e;return}ut=e=a}while(e!==null);na=Pp,ut=null}function qg(e,t,a,o,n,r,s,d,m,y,O,q,I,U){e.cancelPendingCommit=null;do tc();while(Ra!==El);if(gn.flushLegacyContextWarning(),gn.flushPendingUnsafeLifecycleWarnings(),(kt&(Ea|Uo))!==Pa)throw Error("Should not already be working.");if(ko(a),y===Ms?hh(I,U,a,ha):o!==null?vI(I,U,a,o,t!==null&&t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)!==0,ha):yI(I,U,a,ha),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(r=t.lanes|t.childLanes,r|=_y,$d(e,a,r,s,d,m),e===jt&&(ut=jt=null,st=0),ai=t,Ol=e,bn=a,gv=r,vv=n,Sw=o,yv=U,Lw=q,xn=jp,Cw=null,t.actualDuration!==0||(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,WI(Iu,function(){return td=window.event,xn===jp&&(xn=hv),pS(),null})):(e.callbackNode=null,e.callbackPriority=0),Or=null,Sl=Ca(),q!==null&&bI(U,Sl,q,ha),o=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||o){o=F.T,F.T=null,n=Bt.p,Bt.p=qo,s=kt,kt|=Uo;try{HI(e,t,a)}finally{kt=s,Bt.p=n,F.T=o}}Ra=yw,iS(),cS(),dS()}}function iS(){if(Ra===yw){Ra=El;var e=Ol,t=ai,a=bn,o=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||o){o=F.T,F.T=null;var n=Bt.p;Bt.p=qo;var r=kt;kt|=Uo;try{Ju=a,ei=e,hf(),_0(t,e),ei=Ju=null,a=Av;var s=Kb(e.containerInfo),d=a.focusedElem,m=a.selectionRange;if(s!==d&&d&&d.ownerDocument&&Qb(d.ownerDocument.documentElement,d)){if(m!==null&&fh(d)){var{start:y,end:O}=m;if(O===void 0&&(O=y),"selectionStart"in d)d.selectionStart=y,d.selectionEnd=Math.min(O,d.value.length);else{var q=d.ownerDocument||document,I=q&&q.defaultView||window;if(I.getSelection){var U=I.getSelection(),se=d.textContent.length,he=Math.min(m.start,se),Qt=m.end===void 0?he:Math.min(m.end,se);!U.extend&&he>Qt&&(s=Qt,Qt=he,he=s);var Lt=$b(d,he),T=$b(d,Qt);if(Lt&&T&&(U.rangeCount!==1||U.anchorNode!==Lt.node||U.anchorOffset!==Lt.offset||U.focusNode!==T.node||U.focusOffset!==T.offset)){var R=q.createRange();R.setStart(Lt.node,Lt.offset),U.removeAllRanges(),he>Qt?(U.addRange(R),U.extend(T.node,T.offset)):(R.setEnd(T.node,T.offset),U.addRange(R))}}}}q=[];for(U=d;U=U.parentNode;)U.nodeType===1&&q.push({element:U,left:U.scrollLeft,top:U.scrollTop});typeof d.focus==="function"&&d.focus();for(d=0;d<q.length;d++){var E=q[d];E.element.scrollLeft=E.left,E.element.scrollTop=E.top}}sm=!!Rv,Av=Rv=null}finally{kt=r,Bt.p=n,F.T=o}}e.current=t,Ra=vw}}function cS(){if(Ra===vw){Ra=El;var e=Cw;if(e!==null){Sl=Ca();var t=Er,a=Sl;!Kt||a<=t||(Br?Br.run(console.timeStamp.bind(console,e,t,a,yt,ht,"secondary-light")):console.timeStamp(e,t,a,yt,ht,"secondary-light"))}e=Ol,t=ai,a=bn;var o=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||o){o=F.T,F.T=null;var n=Bt.p;Bt.p=qo;var r=kt;kt|=Uo;try{Ju=a,ei=e,hf(),B0(e,t.alternate,t),ei=Ju=null}finally{kt=r,Bt.p=n,F.T=o}}e=yv,t=Lw,Er=Ca(),e=t===null?e:Sl,t=Er,a=xn===mv,o=ha,Or!==null?tx(e,t,Or,!1,o):!Kt||t<=e||(o?o.run(console.timeStamp.bind(console,a?"Commit Interrupted View Transition":"Commit",e,t,yt,ht,a?"error":"secondary-dark")):console.timeStamp(a?"Commit Interrupted View Transition":"Commit",e,t,yt,ht,a?"error":"secondary-dark")),Ra=bw}}function dS(){if(Ra===xw||Ra===bw){if(Ra===xw){var e=Er;Er=Ca();var t=Er,a=xn===mv;!Kt||t<=e||(Br?Br.run(console.timeStamp.bind(console,a?"Interrupted View Transition":"Starting Animation",e,t,yt,ht,a?"error":"secondary-light")):console.timeStamp(a?"Interrupted View Transition":"Starting Animation",e,t,yt,ht,a?" error":"secondary-light")),xn!==mv&&(xn=gw)}Ra=El,jR(),e=Ol;var o=ai;t=bn,a=Sw;var n=o.actualDuration!==0||(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0;n?Ra=Xp:(Ra=El,ai=Ol=null,fS(e,e.pendingLanes),qs=0,Zc=null);var r=e.pendingLanes;if(r===0&&(Dl=null),n||yS(e),r=v(t),o=o.stateNode,Ja&&typeof Ja.onCommitFiberRoot==="function")try{var s=(o.current.flags&128)===128;switch(r){case qo:var d=vy;break;case mn:d=by;break;case Jn:d=Iu;break;case cp:d=xy;break;default:d=Iu}Ja.onCommitFiberRoot(Ru,o,d,s)}catch(q){Zn||(Zn=!0,console.error("React instrumentation encountered an error: %o",q))}if(Wn&&e.memoizedUpdaters.clear(),GI(),a!==null){s=F.T,d=Bt.p,Bt.p=qo,F.T=null;try{var m=e.onRecoverableError;for(o=0;o<a.length;o++){var y=a[o],O=$I(y.stack);G(y.source,m,y.value,O)}}finally{F.T=s,Bt.p=d}}(bn&3)!==0&&tc(),Xn(e),r=e.pendingLanes,(t&261930)!==0&&(r&42)!==0?(Rp=!0,e===bv?Kc++:(Kc=0,bv=e)):Kc=0,n||ys(t,Er),oc(0,!1)}}function $I(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 fS(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Pi(t)))}function tc(){return iS(),cS(),dS(),pS()}function pS(){if(Ra!==Xp)return!1;var e=Ol,t=gv;gv=0;var a=v(bn),o=Jn===0||Jn>a?Jn:a;a=F.T;var n=Bt.p;try{Bt.p=o,F.T=null;var r=vv;vv=null,o=Ol;var s=bn;if(Ra=El,ai=Ol=null,bn=0,(kt&(Ea|Uo))!==Pa)throw Error("Cannot flush passive effects while already rendering.");ko(s),xv=!0,Yp=!1;var d=0;if(Or=null,d=Na(),xn===gw)zi(Er,d,Br);else{var m=Er,y=d,O=xn===hv;!Kt||y<=m||(ha?ha.run(console.timeStamp.bind(console,O?"Waiting for Paint":"Waiting",m,y,yt,ht,"secondary-light")):console.timeStamp(O?"Waiting for Paint":"Waiting",m,y,yt,ht,"secondary-light"))}m=kt,kt|=Uo;var q=o.current;hf(),$0(q);var I=o.current;q=yv,hf(),V0(o,I,s,r,q),yS(o),kt=m;var U=Na();if(I=d,q=ha,Or!==null?tx(I,U,Or,!0,q):!Kt||U<=I||(q?q.run(console.timeStamp.bind(console,"Remaining Effects",I,U,yt,ht,"secondary-dark")):console.timeStamp("Remaining Effects",I,U,yt,ht,"secondary-dark")),ys(s,U),oc(0,!1),Yp?o===Zc?qs++:(qs=0,Zc=o):qs=0,Yp=xv=!1,Ja&&typeof Ja.onPostCommitFiberRoot==="function")try{Ja.onPostCommitFiberRoot(Ru,o)}catch(he){Zn||(Zn=!0,console.error("React instrumentation encountered an error: %o",he))}var se=o.current.stateNode;return se.effectDuration=0,se.passiveEffectDuration=0,!0}finally{Bt.p=n,F.T=a,fS(e,t)}}function mS(e,t,a){t=To(a,t),gx(t),t=fg(e.stateNode,t,2),e=rl(e,t,2),e!==null&&(Zr(e,2),Xn(e))}function qt(e,t,a){if(oi=!1,e.tag===3)mS(e,e,a);else{for(;t!==null;){if(t.tag===3){mS(t,e,a);return}if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError==="function"||typeof o.componentDidCatch==="function"&&(Dl===null||!Dl.has(o))){e=To(a,e),gx(e),a=pg(2),o=rl(t,a,2),o!==null&&(mg(a,o,t,e),Zr(o,2),Xn(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,V(t,function(d,m){console.error("%s must not return anything besides a function, which is used for clean-up.%s",d,m)},r,u)}a=a.next}while(a!==n)}}catch(d){Bt(t,t.return,d)}}function bu(e,t,a){try{var o=t.updateQueue,n=o!==null?o.lastEffect:null;if(n!==null){var r=n.next;o=r;do{if((o.tag&e)===e){var u=o.inst,d=u.destroy;d!==void 0&&(u.destroy=void 0,(e&co)!==qp&&(li=!0),n=t,V(n,sM,n,a,d),(e&co)!==qp&&(li=!1))}o=o.next}while(o!==r)}}catch(m){Bt(t,t.return,m)}}function R0(e,t){Vn(e)?(Gn(),ec(t,e),Fn()):ec(t,e)}function Ig(e,t,a){Vn(e)?(Gn(),bu(a,e,t),Fn()):bu(a,e,t)}function A0(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;e.type.defaultProps||"ref"in e.memoizedProps||ti||(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.",F(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.",F(e)||"instance"));try{V(e,Dx,t,a)}catch(o){Bt(e,e.return,o)}}}function UI(e,t,a){return e.getSnapshotBeforeUpdate(t,a)}function PI(e,t){var a=t.memoizedProps,o=t.memoizedState;t=e.stateNode,e.type.defaultProps||"ref"in e.memoizedProps||ti||(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.",F(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.",F(e)||"instance"));try{var n=gs(e.type,a),r=V(e,UI,t,n,o);a=cw,r!==void 0||a.has(e.type)||(a.add(e.type),V(e,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",F(e))})),t.__reactInternalSnapshotBeforeUpdate=r}catch(u){Bt(e,e.return,u)}}function M0(e,t,a){a.props=gs(e.type,e.memoizedProps),a.state=e.memoizedState,Vn(e)?(Gn(),V(e,AC,e,t,a),Fn()):V(e,AC,e,t,a)}function _I(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(Vn(e))try{Gn(),e.refCleanup=t(a)}finally{Fn()}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().",F(e)),t.current=a}}function tc(e,t){try{V(e,_I,e)}catch(a){Bt(e,t,a)}}function jn(e,t){var a=e.ref,o=e.refCleanup;if(a!==null)if(typeof o==="function")try{if(Vn(e))try{Gn(),V(e,o)}finally{Fn(e)}else V(e,o)}catch(n){Bt(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a==="function")try{if(Vn(e))try{Gn(),V(e,a,null)}finally{Fn(e)}else V(e,a,null)}catch(n){Bt(e,t,n)}else a.current=null}function D0(e,t,a,o){var n=e.memoizedProps,r=n.id,u=n.onCommit;n=n.onRender,t=t===null?"mount":"update",Rp&&(t="nested-update"),typeof n==="function"&&n(r,t,e.actualDuration,e.treeBaseDuration,e.actualStartTime,a),typeof u==="function"&&u(r,t,o,a)}function HI(e,t,a,o){var n=e.memoizedProps;e=n.id,n=n.onPostCommit,t=t===null?"mount":"update",Rp&&(t="nested-update"),typeof n==="function"&&n(e,t,o,a)}function E0(e){var{type:t,memoizedProps:a,stateNode:o}=e;try{V(e,dR,o,t,a,e)}catch(n){Bt(e,e.return,n)}}function Rg(e,t,a){try{V(e,pR,e.stateNode,e.type,a,t,e)}catch(o){Bt(e,e.return,o)}}function O0(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&fl(e.type)||e.tag===4}function Ag(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||O0(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&&fl(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 Mg(e,t,a){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?(_S(a),(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t)):(_S(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=Sr));else if(o!==4&&(o===27&&fl(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Mg(e,t,a),e=e.sibling;e!==null;)Mg(e,t,a),e=e.sibling}function Ff(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&&fl(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Ff(e,t,a),e=e.sibling;e!==null;)Ff(e,t,a),e=e.sibling}function FI(e){for(var t,a=e.return;a!==null;){if(O0(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=Ag(e),Ff(e,a,t);break;case 5:a=t.stateNode,t.flags&32&&(PS(a),t.flags&=-33),t=Ag(e),Ff(e,t,a);break;case 3:case 4:t=t.stateNode.containerInfo,a=Ag(e),Mg(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 q0(e){var{stateNode:t,memoizedProps:a}=e;try{V(e,AR,e.type,a,t,e)}catch(o){Bt(e,e.return,o)}}function N0(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 GI(e,t){if(e=e.containerInfo,Av=um,e=Zb(e),ph(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,r=o.focusNode;o=o.focusOffset;try{a.nodeType,r.nodeType}catch(ue){a=null;break e}var u=0,d=-1,m=-1,y=0,O=0,q=e,I=null;t:for(;;){for(var P;;){if(q!==a||n!==0&&q.nodeType!==3||(d=u+n),q!==r||o!==0&&q.nodeType!==3||(m=u+o),q.nodeType===3&&(u+=q.nodeValue.length),(P=q.firstChild)===null)break;I=q,q=P}for(;;){if(q===e)break t;if(I===a&&++y===n&&(d=u),I===r&&++O===o&&(m=u),(P=q.nextSibling)!==null)break;q=I,I=q.parentNode}q=P}a=d===-1||m===-1?null:{start:d,end:m}}else a=null}a=a||{start:0,end:0}}else a=null;Mv={focusedElem:e,selectionRange:a},um=!1;for(_a=t;_a!==null;)if(t=_a,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,_a=e;else for(;_a!==null;){switch(e=t=_a,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&&PI(e,a);break;case 3:if((n&1024)!==0){if(e=e.stateNode.containerInfo,a=e.nodeType,a===9)Kg(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Kg(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,_a=e;break}_a=t.return}}function B0(e,t,a){var o=Ao(),n=Un(),r=_n(),u=Hn(),d=a.flags;switch(a.tag){case 0:case 11:case 15:Xn(e,a),d&4&&I0(a,Po|tn);break;case 1:if(Xn(e,a),d&4)if(e=a.stateNode,t===null)a.type.defaultProps||"ref"in a.memoizedProps||ti||(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.",F(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.",F(a)||"instance")),Vn(a)?(Gn(),V(a,Zy,a,e),Fn()):V(a,Zy,a,e);else{var m=gs(a.type,t.memoizedProps);t=t.memoizedState,a.type.defaultProps||"ref"in a.memoizedProps||ti||(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.",F(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.",F(a)||"instance")),Vn(a)?(Gn(),V(a,TC,a,e,m,t,e.__reactInternalSnapshotBeforeUpdate),Fn()):V(a,TC,a,e,m,t,e.__reactInternalSnapshotBeforeUpdate)}d&64&&A0(a),d&512&&tc(a,a.return);break;case 3:if(t=kr(),Xn(e,a),d&64&&(d=a.updateQueue,d!==null)){if(m=null,a.child!==null)switch(a.child.tag){case 27:case 5:m=a.child.stateNode;break;case 1:m=a.child.stateNode}try{V(a,Dx,d,m)}catch(O){Bt(a,a.return,O)}}e.effectDuration+=hf(t);break;case 27:t===null&&d&4&&q0(a);case 26:case 5:if(Xn(e,a),t===null){if(d&4)E0(a);else if(d&64){e=a.type,t=a.memoizedProps,m=a.stateNode;try{V(a,fR,m,e,t,a)}catch(O){Bt(a,a.return,O)}}}d&512&&tc(a,a.return);break;case 12:if(d&4){d=kr(),Xn(e,a),e=a.stateNode,e.effectDuration+=Gi(d);try{V(a,D0,a,t,Ll,e.effectDuration)}catch(O){Bt(a,a.return,O)}}else Xn(e,a);break;case 31:Xn(e,a),d&4&&P0(e,a);break;case 13:Xn(e,a),d&4&&_0(e,a),d&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(d=WI.bind(null,a),kR(e,d))));break;case 22:if(d=a.memoizedState!==null||Hr,!d){t=t!==null&&t.memoizedState!==null||Ia,m=Hr;var y=Ia;Hr=d,(Ia=t)&&!y?(Yn(e,a,(a.subtreeFlags&8772)!==0),(a.mode&rt)!==Ge&&0<=Ne&&0<=_e&&0.05<_e-Ne&&nf(a,Ne,_e)):Xn(e,a),Hr=m,Ia=y}break;case 30:break;default:Xn(e,a)}(a.mode&rt)!==Ge&&0<=Ne&&0<=_e&&((ca||0.05<ra)&&Bn(a,Ne,_e,ra,aa),a.alternate===null&&a.return!==null&&a.return.alternate!==null&&0.05<_e-Ne&&(N0(a.return.alternate,a.return)||Nn(a,Ne,_e,"Mount"))),Mo(o),Pn(n),aa=r,ca=u}function z0(e){var t=e.alternate;t!==null&&(e.alternate=null,z0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&fe(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 Rr(e,t,a){for(a=a.child;a!==null;)U0(e,t,a),a=a.sibling}function U0(e,t,a){if(eo&&typeof eo.onCommitFiberUnmount==="function")try{eo.onCommitFiberUnmount(Du,a)}catch(y){Jn||(Jn=!0,console.error("React instrumentation encountered an error: %o",y))}var o=Ao(),n=Un(),r=_n(),u=Hn();switch(a.tag){case 26:Ia||jn(a,t),Rr(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(e=a.stateNode,e.parentNode.removeChild(e));break;case 27:Ia||jn(a,t);var d=Ra,m=xo;fl(a.type)&&(Ra=a.stateNode,xo=!1),Rr(e,t,a),V(a,cc,a.stateNode),Ra=d,xo=m;break;case 5:Ia||jn(a,t);case 6:if(d=Ra,m=xo,Ra=null,Rr(e,t,a),Ra=d,xo=m,Ra!==null)if(xo)try{V(a,gR,Ra,a.stateNode)}catch(y){Bt(a,t,y)}else try{V(a,hR,Ra,a.stateNode)}catch(y){Bt(a,t,y)}break;case 18:Ra!==null&&(xo?(e=Ra,HS(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Iu(e)):HS(Ra,a.stateNode));break;case 4:d=Ra,m=xo,Ra=a.stateNode.containerInfo,xo=!0,Rr(e,t,a),Ra=d,xo=m;break;case 0:case 11:case 14:case 15:bu(co,a,t),Ia||Tg(a,t,Po),Rr(e,t,a);break;case 1:Ia||(jn(a,t),d=a.stateNode,typeof d.componentWillUnmount==="function"&&M0(a,t,d)),Rr(e,t,a);break;case 21:Rr(e,t,a);break;case 22:Ia=(d=Ia)||a.memoizedState!==null,Rr(e,t,a),Ia=d;break;default:Rr(e,t,a)}(a.mode&rt)!==Ge&&0<=Ne&&0<=_e&&(ca||0.05<ra)&&Bn(a,Ne,_e,ra,aa),Mo(o),Pn(n),aa=r,ca=u}function P0(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{V(t,IR,e)}catch(a){Bt(t,t.return,a)}}}function _0(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{V(t,RR,e)}catch(a){Bt(t,t.return,a)}}function VI(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new dw),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new dw),t;default:throw Error("Unexpected Suspense handler tag ("+e.tag+"). This is a bug in React.")}}function Gf(e,t){var a=VI(e);t.forEach(function(o){if(!a.has(o)){if(a.add(o),er)if(ai!==null&&oi!==null)rc(oi,ai);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var n=JI.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,r=t,u=a[o],d=Ao(),m=r;e:for(;m!==null;){switch(m.tag){case 27:if(fl(m.type)){Ra=m.stateNode,xo=!1;break e}break;case 5:Ra=m.stateNode,xo=!1;break e;case 3:case 4:Ra=m.stateNode.containerInfo,xo=!0;break e}m=m.return}if(Ra===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");U0(n,r,u),Ra=null,xo=!1,(u.mode&rt)!==Ge&&0<=Ne&&0<=_e&&0.05<_e-Ne&&Nn(u,Ne,_e,"Unmount"),Mo(d),n=u,r=n.alternate,r!==null&&(r.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)H0(t,e),t=t.sibling}function H0(e,t){var a=Ao(),o=Un(),n=_n(),r=Hn(),{alternate:u,flags:d}=e;switch(e.tag){case 0:case 11:case 14:case 15:vo(t,e),bo(e),d&4&&(bu(co|tn,e,e.return),ec(co|tn,e),Tg(e,e.return,Po|tn));break;case 1:if(vo(t,e),bo(e),d&512&&(Ia||u===null||jn(u,u.return)),d&64&&Hr&&(d=e.updateQueue,d!==null&&(u=d.callbacks,u!==null))){var m=d.shared.hiddenCallbacks;d.shared.hiddenCallbacks=m===null?u:m.concat(u)}break;case 26:if(m=bn,vo(t,e),bo(e),d&512&&(Ia||u===null||jn(u,u.return)),d&4){var y=u!==null?u.memoizedState:null;if(d=e.memoizedState,u===null)if(d===null)if(e.stateNode===null){e:{d=e.type,u=e.memoizedProps,m=m.ownerDocument||m;t:switch(d){case"title":if(y=m.getElementsByTagName("title")[0],!y||y[yc]||y[Qa]||y.namespaceURI===Ou||y.hasAttribute("itemprop"))y=m.createElement(d),m.head.insertBefore(y,m.querySelector("head > title"));$a(y,d,u),y[Qa]=e,qe(y),d=y;break e;case"link":var O=WS("link","href",m).get(d+(u.href||""));if(O){for(var q=0;q<O.length;q++)if(y=O[q],y.getAttribute("href")===(u.href==null||u.href===""?null:u.href)&&y.getAttribute("rel")===(u.rel==null?null:u.rel)&&y.getAttribute("title")===(u.title==null?null:u.title)&&y.getAttribute("crossorigin")===(u.crossOrigin==null?null:u.crossOrigin)){O.splice(q,1);break t}}y=m.createElement(d),$a(y,d,u),m.head.appendChild(y);break;case"meta":if(O=WS("meta","content",m).get(d+(u.content||""))){for(q=0;q<O.length;q++)if(y=O[q],et(u.content,"content"),y.getAttribute("content")===(u.content==null?null:""+u.content)&&y.getAttribute("name")===(u.name==null?null:u.name)&&y.getAttribute("property")===(u.property==null?null:u.property)&&y.getAttribute("http-equiv")===(u.httpEquiv==null?null:u.httpEquiv)&&y.getAttribute("charset")===(u.charSet==null?null:u.charSet)){O.splice(q,1);break t}}y=m.createElement(d),$a(y,d,u),m.head.appendChild(y);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+d+'". This is a bug in React.')}y[Qa]=e,qe(y),d=y}e.stateNode=d}else JS(m,e.type,e.stateNode);else e.stateNode=ZS(m,d,e.memoizedProps);else y!==d?(y===null?u.stateNode!==null&&(u=u.stateNode,u.parentNode.removeChild(u)):y.count--,d===null?JS(m,e.type,e.stateNode):ZS(m,d,e.memoizedProps)):d===null&&e.stateNode!==null&&Rg(e,e.memoizedProps,u.memoizedProps)}break;case 27:vo(t,e),bo(e),d&512&&(Ia||u===null||jn(u,u.return)),u!==null&&d&4&&Rg(e,e.memoizedProps,u.memoizedProps);break;case 5:if(vo(t,e),bo(e),d&512&&(Ia||u===null||jn(u,u.return)),e.flags&32){m=e.stateNode;try{V(e,PS,m)}catch(he){Bt(e,e.return,he)}}d&4&&e.stateNode!=null&&(m=e.memoizedProps,Rg(e,m,u!==null?u.memoizedProps:m)),d&1024&&(cv=!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),bo(e),d&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.");d=e.memoizedProps,u=u!==null?u.memoizedProps:d,m=e.stateNode;try{V(e,mR,m,u,d)}catch(he){Bt(e,e.return,he)}}break;case 3:if(m=kr(),rm=null,y=bn,bn=Zf(t.containerInfo),vo(t,e),bn=y,bo(e),d&4&&u!==null&&u.memoizedState.isDehydrated)try{V(e,TR,t.containerInfo)}catch(he){Bt(e,e.return,he)}cv&&(cv=!1,F0(e)),t.effectDuration+=hf(m);break;case 4:d=bn,bn=Zf(e.stateNode.containerInfo),vo(t,e),bo(e),bn=d;break;case 12:d=kr(),vo(t,e),bo(e),e.stateNode.effectDuration+=Gi(d);break;case 31:vo(t,e),bo(e),d&4&&(d=e.updateQueue,d!==null&&(e.updateQueue=null,Gf(e,d)));break;case 13:vo(t,e),bo(e),e.child.flags&8192&&e.memoizedState!==null!==(u!==null&&u.memoizedState!==null)&&(Vp=Ua()),d&4&&(d=e.updateQueue,d!==null&&(e.updateQueue=null,Gf(e,d)));break;case 22:m=e.memoizedState!==null;var I=u!==null&&u.memoizedState!==null,P=Hr,ue=Ia;if(Hr=P||m,Ia=ue||I,vo(t,e),Ia=ue,Hr=P,I&&!m&&!P&&!ue&&(e.mode&rt)!==Ge&&0<=Ne&&0<=_e&&0.05<_e-Ne&&nf(e,Ne,_e),bo(e),d&8192)e:for(t=e.stateNode,t._visibility=m?t._visibility&~Tc:t._visibility|Tc,!m||u===null||I||Hr||Ia||(ys(e),(e.mode&rt)!==Ge&&0<=Ne&&0<=_e&&0.05<_e-Ne&&Nn(e,Ne,_e,"Disconnect")),u=null,t=e;;){if(t.tag===5||t.tag===26){if(u===null){I=u=t;try{y=I.stateNode,m?V(I,vR,y):V(I,SR,I.stateNode,I.memoizedProps)}catch(he){Bt(I,I.return,he)}}}else if(t.tag===6){if(u===null){I=t;try{O=I.stateNode,m?V(I,bR,O):V(I,LR,O,I.memoizedProps)}catch(he){Bt(I,I.return,he)}}}else if(t.tag===18){if(u===null){I=t;try{q=I.stateNode,m?V(I,yR,q):V(I,xR,I.stateNode)}catch(he){Bt(I,I.return,he)}}}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;u===t&&(u=null),t=t.return}u===t&&(u=null),t.sibling.return=t.return,t=t.sibling}d&4&&(d=e.updateQueue,d!==null&&(u=d.retryQueue,u!==null&&(d.retryQueue=null,Gf(e,u))));break;case 19:vo(t,e),bo(e),d&4&&(d=e.updateQueue,d!==null&&(e.updateQueue=null,Gf(e,d)));break;case 30:break;case 21:break;default:vo(t,e),bo(e)}(e.mode&rt)!==Ge&&0<=Ne&&0<=_e&&((ca||0.05<ra)&&Bn(e,Ne,_e,ra,aa),e.alternate===null&&e.return!==null&&e.return.alternate!==null&&0.05<_e-Ne&&(N0(e.return.alternate,e.return)||Nn(e,Ne,_e,"Mount"))),Mo(a),Pn(o),aa=n,ca=r}function bo(e){var t=e.flags;if(t&2){try{V(e,FI,e)}catch(a){Bt(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function F0(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;F0(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Xn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)B0(e,t.alternate,t),t=t.sibling}function G0(e){var t=Ao(),a=Un(),o=_n(),n=Hn();switch(e.tag){case 0:case 11:case 14:case 15:Tg(e,e.return,Po),ys(e);break;case 1:jn(e,e.return);var r=e.stateNode;typeof r.componentWillUnmount==="function"&&M0(e,e.return,r),ys(e);break;case 27:V(e,cc,e.stateNode);case 26:case 5:jn(e,e.return),ys(e);break;case 22:e.memoizedState===null&&ys(e);break;case 30:ys(e);break;default:ys(e)}(e.mode&rt)!==Ge&&0<=Ne&&0<=_e&&(ca||0.05<ra)&&Bn(e,Ne,_e,ra,aa),Mo(t),Pn(a),aa=o,ca=n}function ys(e){for(e=e.child;e!==null;)G0(e),e=e.sibling}function V0(e,t,a,o){var n=Ao(),r=Un(),u=_n(),d=Hn(),m=a.flags;switch(a.tag){case 0:case 11:case 15:Yn(e,a,o),I0(a,Po);break;case 1:if(Yn(e,a,o),t=a.stateNode,typeof t.componentDidMount==="function"&&V(a,Zy,a,t),t=a.updateQueue,t!==null){e=a.stateNode;try{V(a,TI,t,e)}catch(y){Bt(a,a.return,y)}}o&&m&64&&A0(a),tc(a,a.return);break;case 27:q0(a);case 26:case 5:Yn(e,a,o),o&&t===null&&m&4&&E0(a),tc(a,a.return);break;case 12:if(o&&m&4){m=kr(),Yn(e,a,o),o=a.stateNode,o.effectDuration+=Gi(m);try{V(a,D0,a,t,Ll,o.effectDuration)}catch(y){Bt(a,a.return,y)}}else Yn(e,a,o);break;case 31:Yn(e,a,o),o&&m&4&&P0(e,a);break;case 13:Yn(e,a,o),o&&m&4&&_0(e,a);break;case 22:a.memoizedState===null&&Yn(e,a,o),tc(a,a.return);break;case 30:break;default:Yn(e,a,o)}(a.mode&rt)!==Ge&&0<=Ne&&0<=_e&&(ca||0.05<ra)&&Bn(a,Ne,_e,ra,aa),Mo(n),Pn(r),aa=u,ca=d}function Yn(e,t,a){a=a&&(t.subtreeFlags&8772)!==0;for(t=t.child;t!==null;)V0(e,t.alternate,t,a),t=t.sibling}function Dg(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&&fs(e),a!=null&&Fi(a))}function Eg(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(fs(t),e!=null&&Fi(e))}function pn(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 r=t.sibling;j0(e,t,a,o,r!==null?r.actualStartTime:n),t=r}}function j0(e,t,a,o,n){var r=Ao(),u=Un(),d=_n(),m=Hn(),y=vl,O=t.flags;switch(t.tag){case 0:case 11:case 15:(t.mode&rt)!==Ge&&0<t.actualStartTime&&(t.flags&1)!==0&&rf(t,t.actualStartTime,n,Oa,a),pn(e,t,a,o,n),O&2048&&R0(t,fo|tn);break;case 1:(t.mode&rt)!==Ge&&0<t.actualStartTime&&((t.flags&128)!==0?hh(t,t.actualStartTime,n,[]):(t.flags&1)!==0&&rf(t,t.actualStartTime,n,Oa,a)),pn(e,t,a,o,n);break;case 3:var q=kr(),I=Oa;Oa=t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)===0,pn(e,t,a,o,n),Oa=I,O&2048&&(a=null,t.alternate!==null&&(a=t.alternate.memoizedState.cache),o=t.memoizedState.cache,o!==a&&(fs(o),a!=null&&Fi(a))),e.passiveEffectDuration+=hf(q);break;case 12:if(O&2048){O=kr(),pn(e,t,a,o,n),e=t.stateNode,e.passiveEffectDuration+=Gi(O);try{V(t,HI,t,t.alternate,Ll,e.passiveEffectDuration)}catch(P){Bt(t,t.return,P)}}else pn(e,t,a,o,n);break;case 31:O=Oa,q=t.alternate!==null?t.alternate.memoizedState:null,I=t.memoizedState,q!==null&&I===null?(I=t.deletions,I!==null&&0<I.length&&I[0].tag===18?(Oa=!1,q=q.hydrationErrors,q!==null&&hh(t,t.actualStartTime,n,q)):Oa=!0):Oa=!1,pn(e,t,a,o,n),Oa=O;break;case 13:O=Oa,q=t.alternate!==null?t.alternate.memoizedState:null,I=t.memoizedState,q===null||q.dehydrated===null||I!==null&&I.dehydrated!==null?Oa=!1:(I=t.deletions,I!==null&&0<I.length&&I[0].tag===18?(Oa=!1,q=q.hydrationErrors,q!==null&&hh(t,t.actualStartTime,n,q)):Oa=!0),pn(e,t,a,o,n),Oa=O;break;case 23:break;case 22:I=t.stateNode,q=t.alternate,t.memoizedState!==null?I._visibility&Dr?pn(e,t,a,o,n):ac(e,t,a,o,n):I._visibility&Dr?pn(e,t,a,o,n):(I._visibility|=Dr,xu(e,t,a,o,(t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child),n),(t.mode&rt)===Ge||Oa||(e=t.actualStartTime,0<=e&&0.05<n-e&&nf(t,e,n),0<=Ne&&0<=_e&&0.05<_e-Ne&&nf(t,Ne,_e))),O&2048&&Dg(q,t);break;case 24:pn(e,t,a,o,n),O&2048&&Eg(t.alternate,t);break;default:pn(e,t,a,o,n)}if((t.mode&rt)!==Ge){if(e=!Oa&&t.alternate===null&&t.return!==null&&t.return.alternate!==null)a=t.actualStartTime,0<=a&&0.05<n-a&&Nn(t,a,n,"Mount");0<=Ne&&0<=_e&&((ca||0.05<ra)&&Bn(t,Ne,_e,ra,aa),e&&0.05<_e-Ne&&Nn(t,Ne,_e,"Mount"))}Mo(r),Pn(u),aa=d,ca=m,vl=y}function xu(e,t,a,o,n,r){n=n&&((t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child));for(t=t.child;t!==null;){var u=t.sibling;X0(e,t,a,o,n,u!==null?u.actualStartTime:r),t=u}}function X0(e,t,a,o,n,r){var u=Ao(),d=Un(),m=_n(),y=Hn(),O=vl;n&&(t.mode&rt)!==Ge&&0<t.actualStartTime&&(t.flags&1)!==0&&rf(t,t.actualStartTime,r,Oa,a);var q=t.flags;switch(t.tag){case 0:case 11:case 15:xu(e,t,a,o,n,r),R0(t,fo);break;case 23:break;case 22:var I=t.stateNode;t.memoizedState!==null?I._visibility&Dr?xu(e,t,a,o,n,r):ac(e,t,a,o,r):(I._visibility|=Dr,xu(e,t,a,o,n,r)),n&&q&2048&&Dg(t.alternate,t);break;case 24:xu(e,t,a,o,n,r),n&&q&2048&&Eg(t.alternate,t);break;default:xu(e,t,a,o,n,r)}(t.mode&rt)!==Ge&&0<=Ne&&0<=_e&&(ca||0.05<ra)&&Bn(t,Ne,_e,ra,aa),Mo(u),Pn(d),aa=m,ca=y,vl=O}function ac(e,t,a,o,n){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(var r=t.child;r!==null;){t=r.sibling;var u=e,d=a,m=o,y=t!==null?t.actualStartTime:n,O=vl;(r.mode&rt)!==Ge&&0<r.actualStartTime&&(r.flags&1)!==0&&rf(r,r.actualStartTime,y,Oa,d);var q=r.flags;switch(r.tag){case 22:ac(u,r,d,m,y),q&2048&&Dg(r.alternate,r);break;case 24:ac(u,r,d,m,y),q&2048&&Eg(r.alternate,r);break;default:ac(u,r,d,m,y)}vl=O,r=t}}function Su(e,t,a){if(e.subtreeFlags&Xc)for(e=e.child;e!==null;)Y0(e,t,a),e=e.sibling}function Y0(e,t,a){switch(e.tag){case 26:Su(e,t,a),e.flags&Xc&&e.memoizedState!==null&&ER(a,bn,e.memoizedState,e.memoizedProps);break;case 5:Su(e,t,a);break;case 3:case 4:var o=bn;bn=Zf(e.stateNode.containerInfo),Su(e,t,a),bn=o;break;case 22:e.memoizedState===null&&(o=e.alternate,o!==null&&o.memoizedState!==null?(o=Xc,Xc=16777216,Su(e,t,a),Xc=o):Su(e,t,a));break;default:Su(e,t,a)}}function $0(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 oc(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=Ao();_a=o,Z0(o,e),(o.mode&rt)!==Ge&&0<=Ne&&0<=_e&&0.05<_e-Ne&&Nn(o,Ne,_e,"Unmount"),Mo(n)}$0(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Q0(e),e=e.sibling}function Q0(e){var t=Ao(),a=Un(),o=_n(),n=Hn();switch(e.tag){case 0:case 11:case 15:oc(e),e.flags&2048&&Ig(e,e.return,fo|tn);break;case 3:var r=kr();oc(e),e.stateNode.passiveEffectDuration+=hf(r);break;case 12:r=kr(),oc(e),e.stateNode.passiveEffectDuration+=Gi(r);break;case 22:r=e.stateNode,e.memoizedState!==null&&r._visibility&Dr&&(e.return===null||e.return.tag!==13)?(r._visibility&=~Dr,Vf(e),(e.mode&rt)!==Ge&&0<=Ne&&0<=_e&&0.05<_e-Ne&&Nn(e,Ne,_e,"Disconnect")):oc(e);break;default:oc(e)}(e.mode&rt)!==Ge&&0<=Ne&&0<=_e&&(ca||0.05<ra)&&Bn(e,Ne,_e,ra,aa),Mo(t),Pn(a),ca=n,aa=o}function Vf(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=Ao();_a=o,Z0(o,e),(o.mode&rt)!==Ge&&0<=Ne&&0<=_e&&0.05<_e-Ne&&Nn(o,Ne,_e,"Unmount"),Mo(n)}$0(e)}for(e=e.child;e!==null;)K0(e),e=e.sibling}function K0(e){var t=Ao(),a=Un(),o=_n(),n=Hn();switch(e.tag){case 0:case 11:case 15:Ig(e,e.return,fo),Vf(e);break;case 22:var r=e.stateNode;r._visibility&Dr&&(r._visibility&=~Dr,Vf(e));break;default:Vf(e)}(e.mode&rt)!==Ge&&0<=Ne&&0<=_e&&(ca||0.05<ra)&&Bn(e,Ne,_e,ra,aa),Mo(t),Pn(a),ca=n,aa=o}function Z0(e,t){for(;_a!==null;){var a=_a,o=a,n=t,r=Ao(),u=Un(),d=_n(),m=Hn();switch(o.tag){case 0:case 11:case 15:Ig(o,n,fo);break;case 23:case 22:o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(n=o.memoizedState.cachePool.pool,n!=null&&fs(n));break;case 24:Fi(o.memoizedState.cache)}if((o.mode&rt)!==Ge&&0<=Ne&&0<=_e&&(ca||0.05<ra)&&Bn(o,Ne,_e,ra,aa),Mo(r),Pn(u),ca=m,aa=d,o=a.child,o!==null)o.return=a,_a=o;else e:for(a=e;_a!==null;){if(o=_a,r=o.sibling,u=o.return,z0(o),o===a){_a=null;break e}if(r!==null){r.return=u,_a=r;break e}_a=u}}}function jI(){fM.forEach(function(e){return e()})}function W0(){var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return e||G.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),e}function Eo(e){if((Tt&qa)!==Ha&&st!==0)return st&-st;var t=G.T;return t!==null?(t._updatedFibers||(t._updatedFibers=new Set),t._updatedFibers.add(e),_g()):z()}function J0(){if(Lo===0)if((st&536870912)===0||bt){var e=ip;ip<<=1,(ip&3932160)===0&&(ip=262144),Lo=e}else Lo=536870912;return e=Uo.current,e!==null&&(e.flags|=32),Lo}function ia(e,t,a){if(li&&console.error("useInsertionEffect must not schedule updates."),Sv&&($p=!0),e===Xt&&(_t===Es||_t===Os)||e.cancelPendingCommit!==null)Cu(e,0),cl(e,st,Lo,!1);if(Wr(e,a),(Tt&qa)!==Ha&&e===Xt){if(Wn)switch(t.tag){case 0:case 11:case 15:e=ut&&F(ut)||"Unknown",Tw.has(e)||(Tw.add(e),t=F(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:kw||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),kw=!0)}}else er&&Di(e,t,a),tR(t),e===Xt&&((Tt&qa)===Ha&&(Dl|=a),la===Rl&&cl(e,st,Lo,!1)),$n(e)}function eS(e,t,a){if((Tt&(qa|_o))!==Ha)throw Error("Should not already be working.");if(st!==0&&ut!==null){var o=ut,n=Ua();switch(vC){case Qc:case Es:var r=Ec;Kt&&((o=o._debugTask)?o.run(console.timeStamp.bind(console,"Suspended",r,n,Yo,void 0,"primary-light")):console.timeStamp("Suspended",r,n,Yo,void 0,"primary-light"));break;case Os:r=Ec,Kt&&((o=o._debugTask)?o.run(console.timeStamp.bind(console,"Action",r,n,Yo,void 0,"primary-light")):console.timeStamp("Action",r,n,Yo,void 0,"primary-light"));break;default:Kt&&(o=n-Ec,3>o||console.timeStamp("Blocked",Ec,n,Yo,void 0,5>o?"primary-light":10>o?"primary":100>o?"primary-dark":"error"))}}r=(a=!a&&(t&127)===0&&(t&e.expiredLanes)===0||Jl(e,t))?YI(e,t):qg(e,t,!0);var u=a;do{if(r===Fr){ni&&!a&&cl(e,t,0,!1),t=_t,Ec=wa(),vC=t;break}else{if(o=Ua(),n=e.current.alternate,u&&!XI(n)){Io(t),n=Pa,r=o,!Kt||r<=n||(ga?ga.run(console.timeStamp.bind(console,"Teared Render",n,r,yt,ht,"error")):console.timeStamp("Teared Render",n,r,yt,ht,"error")),vs(t,o),r=qg(e,t,!1),u=!1;continue}if(r===Ds){if(u=t,e.errorRecoveryDisabledLanes&u)var d=0;else d=e.pendingLanes&-536870913,d=d!==0?d:d&536870912?536870912:0;if(d!==0){Io(t),gh(Pa,o,t,ga),vs(t,o),t=d;e:{o=e,r=u,u=Zc;var m=o.current.memoizedState.isDehydrated;if(m&&(Cu(o,d).flags|=256),d=qg(o,d,!1),d!==Ds){if(pv&&!m){o.errorRecoveryDisabledLanes|=r,Dl|=r,r=Rl;break e}o=po,po=u,o!==null&&(po===null?po=o:po.push.apply(po,o))}r=d}if(u=!1,r!==Ds)continue;else o=Ua()}}if(r===$c){Io(t),gh(Pa,o,t,ga),vs(t,o),Cu(e,0),cl(e,t,0,!0);break}e:{switch(a=e,r){case Fr:case $c:throw Error("Root did not complete. This is a bug in React.");case Rl:if((t&4194048)!==t)break;case _p:Io(t),ex(Pa,o,t,ga),vs(t,o),n=t,(n&127)!==0?kp=o:(n&4194048)!==0&&(Tp=o),cl(a,t,Lo,!Al);break e;case Ds:po=null;break;case Pp:case fw:break;default:throw Error("Unknown root exit status.")}if(G.actQueue!==null)Ng(a,n,t,po,Wc,Gp,Lo,Dl,qs,r,null,null,Pa,o);else{if((t&62914560)===t&&(u=Vp+hw-Ua(),10<u)){if(cl(a,t,Lo,!Al),Wl(a,0,!0)!==0)break e;xn=t,a.timeoutHandle=qw(tS.bind(null,a,n,po,Wc,Gp,t,Lo,Dl,qs,Al,r,"Throttled",Pa,o),u);break e}tS(a,n,po,Wc,Gp,t,Lo,Dl,qs,Al,r,null,Pa,o)}}}break}while(1);$n(e)}function tS(e,t,a,o,n,r,u,d,m,y,O,q,I,P){e.timeoutHandle=Ps;var ue=t.subtreeFlags,he=null;if(ue&8192||(ue&16785408)===16785408){if(he={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Sr},Y0(t,r,he),ue=(r&62914560)===r?Vp-Ua():(r&4194048)===r?mw-Ua():0,ue=OR(he,ue),ue!==null){xn=r,e.cancelPendingCommit=ue(Ng.bind(null,e,t,r,a,o,n,u,d,m,O,he,he.waitingForViewTransition?"Waiting for the previous Animation":0<he.count?0<he.imgCount?"Suspended on CSS and Images":"Suspended on CSS":he.imgCount===1?"Suspended on an Image":0<he.imgCount?"Suspended on Images":null,I,P)),cl(e,r,u,!y);return}}Ng(e,t,r,a,o,n,u,d,m,O,he,q,I,P)}function XI(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],r=n.getSnapshot;n=n.value;try{if(!uo(r(),n))return!1}catch(u){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 cl(e,t,a,o){t&=~mv,t&=~Dl,e.suspendedLanes|=t,e.pingedLanes&=~t,o&&(e.warmLanes|=t),o=e.expirationTimes;for(var n=t;0<n;){var r=31-ro(n),u=1<<r;o[r]=-1,n&=~u}a!==0&&es(e,a,t)}function Lu(){return(Tt&(qa|_o))===Ha?(lc(0,!1),!1):!0}function Og(){if(ut!==null){if(_t===So)var e=ut.return;else e=ut,ff(),Vh(e),Qu=null,Hc=0,e=ut;for(;e!==null;)T0(e.alternate,e),e=e.return;ut=null}}function vs(e,t){(e&127)!==0&&(Cl=t),(e&4194048)!==0&&(rr=t),(e&62914560)!==0&&(gC=t),(e&2080374784)!==0&&(yC=t)}function Cu(e,t){Kt&&(console.timeStamp("Blocking Track",0.003,0.003,"Blocking",ht,"primary-light"),console.timeStamp("Transition Track",0.003,0.003,"Transition",ht,"primary-light"),console.timeStamp("Suspense Track",0.003,0.003,"Suspense",ht,"primary-light"),console.timeStamp("Idle Track",0.003,0.003,"Idle",ht,"primary-light"));var a=Pa;if(Pa=wa(),st!==0&&0<a){if(Io(st),la===Pp||la===Rl)ex(a,Pa,t,ga);else{var o=Pa,n=ga;if(Kt&&!(o<=a)){var r=(t&738197653)===t?"tertiary-dark":"primary-dark",u=(t&536870912)===t?"Prewarm":(t&201326741)===t?"Interrupted Hydration":"Interrupted Render";n?n.run(console.timeStamp.bind(console,u,a,o,yt,ht,r)):console.timeStamp(u,a,o,yt,ht,r)}}vs(st,Pa)}if(a=ga,ga=null,(t&127)!==0){ga=Ac,n=0<=nr&&nr<Cl?Cl:nr,o=0<=Cs&&Cs<Cl?Cl:Cs,r=0<=o?o:0<=n?n:Pa,0<=kp?(Io(2),tx(kp,r,t,a)):(Ip&127)!==0&&(Io(2),_i(Cl,r,zr)),a=n;var d=o,m=Mc,y=0<Xu,O=wl===Rc,q=wl===wp;if(n=Pa,o=Ac,r=Xy,u=Yy,Kt){if(yt="Blocking",0<a?a>n&&(a=n):a=n,0<d?d>a&&(d=a):d=a,m!==null&&a>d){var I=y?"secondary-light":"warning";o?o.run(console.timeStamp.bind(console,y?"Consecutive":"Event: "+m,d,a,yt,ht,I)):console.timeStamp(y?"Consecutive":"Event: "+m,d,a,yt,ht,I)}n>a&&(d=O?"error":(t&738197653)===t?"tertiary-light":"primary-light",O=q?"Promise Resolved":O?"Cascading Update":5<n-a?"Update Blocked":"Update",q=[],u!=null&&q.push(["Component name",u]),r!=null&&q.push(["Method name",r]),a={start:a,end:n,detail:{devtools:{properties:q,track:yt,trackGroup:ht,color:d}}},o?o.run(performance.measure.bind(performance,O,a)):performance.measure(O,a))}nr=-1.1,wl=0,Yy=Xy=null,kp=-1.1,Xu=Cs,Cs=-1.1,Cl=wa()}if((t&4194048)!==0&&(ga=Dc,n=0<=Br&&Br<rr?rr:Br,a=0<=Jo&&Jo<rr?rr:Jo,o=0<=kl&&kl<rr?rr:kl,r=0<=o?o:0<=a?a:Pa,0<=Tp?(Io(256),tx(Tp,r,t,ga)):(Ip&4194048)!==0&&(Io(256),_i(rr,r,zr)),q=o,d=ws,m=0<Tl,y=$y===wp,r=Pa,o=Dc,u=mC,O=hC,Kt&&(yt="Transition",0<a?a>r&&(a=r):a=r,0<n?n>a&&(n=a):n=a,0<q?q>n&&(q=n):q=n,n>q&&d!==null&&(I=m?"secondary-light":"warning",o?o.run(console.timeStamp.bind(console,m?"Consecutive":"Event: "+d,q,n,yt,ht,I)):console.timeStamp(m?"Consecutive":"Event: "+d,q,n,yt,ht,I)),a>n&&(o?o.run(console.timeStamp.bind(console,"Action",n,a,yt,ht,"primary-dark")):console.timeStamp("Action",n,a,yt,ht,"primary-dark")),r>a&&(n=y?"Promise Resolved":5<r-a?"Update Blocked":"Update",q=[],O!=null&&q.push(["Component name",O]),u!=null&&q.push(["Method name",u]),a={start:a,end:r,detail:{devtools:{properties:q,track:yt,trackGroup:ht,color:"primary-light"}}},o?o.run(performance.measure.bind(performance,n,a)):performance.measure(n,a))),Jo=Br=-1.1,$y=0,Tp=-1.1,Tl=kl,kl=-1.1,rr=wa()),(t&62914560)!==0&&(Ip&62914560)!==0&&(Io(4194304),_i(gC,Pa,zr)),(t&2080374784)!==0&&(Ip&2080374784)!==0&&(Io(268435456),_i(yC,Pa,zr)),a=e.timeoutHandle,a!==Ps&&(e.timeoutHandle=Ps,kM(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),xn=0,Og(),Xt=e,ut=a=Lr(e.current,null),st=t,_t=So,Ho=null,Al=!1,ni=Jl(e,t),pv=!1,la=Fr,qs=Lo=mv=Dl=Ml=0,po=Zc=null,Gp=!1,(t&8)!==0&&(t|=t&32),o=e.entangledLanes,o!==0)for(e=e.entanglements,o&=t;0<o;)n=31-ro(o),r=1<<n,t|=e[n],o&=~r;return sr=t,lf(),e=uC(),1000<e-sC&&(G.recentlyCreatedOwnerStacks=0,sC=e),yn.discardPendingWarnings(),a}function aS(e,t){Xe=null,G.H=jc,G.getCurrentStack=null,Wn=!1,No=null,t===$u||t===Dp?(t=Cx(),_t=Qc):t===Wy?(t=Cx(),_t=pw):_t=t===uv?fv:t!==null&&typeof t==="object"&&typeof t.then==="function"?Kc:Hp,Ho=t;var a=ut;a===null?(la=$c,zf(e,Ro(t,e.current))):a.mode&rt&&Dh(a)}function oS(){var e=Uo.current;return e===null?!0:(st&4194048)===st?en===null?!0:!1:(st&62914560)===st||(st&536870912)!==0?e===en:!1}function nS(){var e=G.H;return G.H=jc,e===null?jc:e}function rS(){var e=G.A;return G.A=dM,e}function jf(e){ga===null&&(ga=e._debugTask==null?null:e._debugTask)}function Xf(){la=Rl,Al||(st&4194048)!==st&&Uo.current!==null||(ni=!0),(Ml&134217727)===0&&(Dl&134217727)===0||Xt===null||cl(Xt,st,Lo,!1)}function qg(e,t,a){var o=Tt;Tt|=qa;var n=nS(),r=rS();if(Xt!==e||st!==t){if(er){var u=e.memoizedUpdaters;0<u.size&&(rc(e,st),u.clear()),Jr(e,t)}Wc=null,Cu(e,t)}t=!1,u=la;e:do try{if(_t!==So&&ut!==null){var d=ut,m=Ho;switch(_t){case fv:Og(),u=_p;break e;case Qc:case Es:case Os:case Kc:Uo.current===null&&(t=!0);var y=_t;if(_t=So,Ho=null,wu(e,d,m,y),a&&ni){u=Fr;break e}break;default:y=_t,_t=So,Ho=null,wu(e,d,m,y)}}lS(),u=la;break}catch(O){aS(e,O)}while(1);return t&&e.shellSuspendCounter++,ff(),Tt=o,G.H=n,G.A=r,ut===null&&(Xt=null,st=0,lf()),u}function lS(){for(;ut!==null;)sS(ut)}function YI(e,t){var a=Tt;Tt|=qa;var o=nS(),n=rS();if(Xt!==e||st!==t){if(er){var r=e.memoizedUpdaters;0<r.size&&(rc(e,st),r.clear()),Jr(e,t)}Wc=null,jp=Ua()+gw,Cu(e,t)}else ni=Jl(e,t);e:do try{if(_t!==So&&ut!==null)t:switch(t=ut,r=Ho,_t){case Hp:_t=So,Ho=null,wu(e,t,r,Hp);break;case Es:case Os:if(Sx(r)){_t=So,Ho=null,uS(t);break}t=function(){_t!==Es&&_t!==Os||Xt!==e||(_t=Fp),$n(e)},r.then(t,t);break e;case Qc:_t=Fp;break e;case pw:_t=dv;break e;case Fp:Sx(r)?(_t=So,Ho=null,uS(t)):(_t=So,Ho=null,wu(e,t,r,Fp));break;case dv:var u=null;switch(ut.tag){case 26:u=ut.memoizedState;case 5:case 27:var d=ut;if(u?eL(u):d.stateNode.complete){_t=So,Ho=null;var m=d.sibling;if(m!==null)ut=m;else{var y=d.return;y!==null?(ut=y,Yf(y)):ut=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}_t=So,Ho=null,wu(e,t,r,dv);break;case Kc:_t=So,Ho=null,wu(e,t,r,Kc);break;case fv:Og(),la=_p;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}G.actQueue!==null?lS():$I();break}catch(O){aS(e,O)}while(1);if(ff(),G.H=o,G.A=n,Tt=a,ut!==null)return Fr;return Xt=null,st=0,lf(),la}function $I(){for(;ut!==null&&!XR();)sS(ut)}function sS(e){var t=e.alternate;(e.mode&rt)!==Ge?(Mh(e),t=V(e,wg,t,e,sr),Dh(e)):t=V(e,wg,t,e,sr),e.memoizedProps=e.pendingProps,t===null?Yf(e):ut=t}function uS(e){var t=V(e,QI,e);e.memoizedProps=e.pendingProps,t===null?Yf(e):ut=t}function QI(e){var t=e.alternate,a=(e.mode&rt)!==Ge;switch(a&&Mh(e),e.tag){case 15:case 0:t=b0(t,e,e.pendingProps,e.type,void 0,st);break;case 11:t=b0(t,e,e.pendingProps,e.type.render,e.ref,st);break;case 5:Vh(e);default:T0(t,e),e=ut=sx(e,sr),t=wg(t,e,sr)}return a&&Dh(e),t}function wu(e,t,a,o){ff(),Vh(t),Qu=null,Hc=0;var n=t.return;try{if(OI(e,n,t,a,st)){la=$c,zf(e,Ro(a,e.current)),ut=null;return}}catch(r){if(n!==null)throw ut=n,r;la=$c,zf(e,Ro(a,e.current)),ut=null;return}if(t.flags&32768){if(bt||o===Hp)e=!0;else if(ni||(st&536870912)!==0)e=!1;else if(Al=e=!0,o===Es||o===Os||o===Qc||o===Kc)o=Uo.current,o!==null&&o.tag===13&&(o.flags|=16384);iS(t,e)}else Yf(t)}function Yf(e){var t=e;do{if((t.flags&32768)!==0){iS(t,Al);return}var a=t.alternate;if(e=t.return,Mh(t),a=V(t,BI,a,t,sr),(t.mode&rt)!==Ge&&gx(t),a!==null){ut=a;return}if(t=t.sibling,t!==null){ut=t;return}ut=t=e}while(t!==null);la===Fr&&(la=fw)}function iS(e,t){do{var a=zI(e.alternate,e);if(a!==null){a.flags&=32767,ut=a;return}if((e.mode&rt)!==Ge){gx(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)){ut=e;return}ut=e=a}while(e!==null);la=_p,ut=null}function Ng(e,t,a,o,n,r,u,d,m,y,O,q,I,P){e.cancelPendingCommit=null;do nc();while(Aa!==Ol);if(yn.flushLegacyContextWarning(),yn.flushPendingUnsafeLifecycleWarnings(),(Tt&(qa|_o))!==Ha)throw Error("Should not already be working.");if(Io(a),y===Ds?gh(I,P,a,ga):o!==null?xI(I,P,a,o,t!==null&&t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)!==0,ga):bI(I,P,a,ga),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(r=t.lanes|t.childLanes,r|=Hy,Qd(e,a,r,u,d,m),e===Xt&&(ut=Xt=null,st=0),ri=t,ql=e,xn=a,yv=r,bv=n,Lw=o,vv=P,Cw=q,Sn=Xp,ww=null,t.actualDuration!==0||(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,eR(Mu,function(){return nd=window.event,Sn===Xp&&(Sn=gv),mS(),null})):(e.callbackNode=null,e.callbackPriority=0),Nr=null,Ll=wa(),q!==null&&SI(P,Ll,q,ga),o=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||o){o=G.T,G.T=null,n=zt.p,zt.p=Bo,u=Tt,Tt|=_o;try{GI(e,t,a)}finally{Tt=u,zt.p=n,G.T=o}}Aa=vw,cS(),dS(),fS()}}function cS(){if(Aa===vw){Aa=Ol;var e=ql,t=ri,a=xn,o=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||o){o=G.T,G.T=null;var n=zt.p;zt.p=Bo;var r=Tt;Tt|=_o;try{ai=a,oi=e,gf(),H0(t,e),oi=ai=null,a=Mv;var u=Zb(e.containerInfo),d=a.focusedElem,m=a.selectionRange;if(u!==d&&d&&d.ownerDocument&&Kb(d.ownerDocument.documentElement,d)){if(m!==null&&ph(d)){var{start:y,end:O}=m;if(O===void 0&&(O=y),"selectionStart"in d)d.selectionStart=y,d.selectionEnd=Math.min(O,d.value.length);else{var q=d.ownerDocument||document,I=q&&q.defaultView||window;if(I.getSelection){var P=I.getSelection(),ue=d.textContent.length,he=Math.min(m.start,ue),Qt=m.end===void 0?he:Math.min(m.end,ue);!P.extend&&he>Qt&&(u=Qt,Qt=he,he=u);var wt=Qb(d,he),T=Qb(d,Qt);if(wt&&T&&(P.rangeCount!==1||P.anchorNode!==wt.node||P.anchorOffset!==wt.offset||P.focusNode!==T.node||P.focusOffset!==T.offset)){var R=q.createRange();R.setStart(wt.node,wt.offset),P.removeAllRanges(),he>Qt?(P.addRange(R),P.extend(T.node,T.offset)):(R.setEnd(T.node,T.offset),P.addRange(R))}}}}q=[];for(P=d;P=P.parentNode;)P.nodeType===1&&q.push({element:P,left:P.scrollLeft,top:P.scrollTop});typeof d.focus==="function"&&d.focus();for(d=0;d<q.length;d++){var E=q[d];E.element.scrollLeft=E.left,E.element.scrollTop=E.top}}um=!!Av,Mv=Av=null}finally{Tt=r,zt.p=n,G.T=o}}e.current=t,Aa=bw}}function dS(){if(Aa===bw){Aa=Ol;var e=ww;if(e!==null){Ll=wa();var t=qr,a=Ll;!Kt||a<=t||(zr?zr.run(console.timeStamp.bind(console,e,t,a,yt,ht,"secondary-light")):console.timeStamp(e,t,a,yt,ht,"secondary-light"))}e=ql,t=ri,a=xn;var o=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||o){o=G.T,G.T=null;var n=zt.p;zt.p=Bo;var r=Tt;Tt|=_o;try{ai=a,oi=e,gf(),B0(e,t.alternate,t),oi=ai=null}finally{Tt=r,zt.p=n,G.T=o}}e=vv,t=Cw,qr=wa(),e=t===null?e:Ll,t=qr,a=Sn===hv,o=ga,Nr!==null?ax(e,t,Nr,!1,o):!Kt||t<=e||(o?o.run(console.timeStamp.bind(console,a?"Commit Interrupted View Transition":"Commit",e,t,yt,ht,a?"error":"secondary-dark")):console.timeStamp(a?"Commit Interrupted View Transition":"Commit",e,t,yt,ht,a?"error":"secondary-dark")),Aa=xw}}function fS(){if(Aa===Sw||Aa===xw){if(Aa===Sw){var e=qr;qr=wa();var t=qr,a=Sn===hv;!Kt||t<=e||(zr?zr.run(console.timeStamp.bind(console,a?"Interrupted View Transition":"Starting Animation",e,t,yt,ht,a?"error":"secondary-light")):console.timeStamp(a?"Interrupted View Transition":"Starting Animation",e,t,yt,ht,a?" error":"secondary-light")),Sn!==hv&&(Sn=yw)}Aa=Ol,YR(),e=ql;var o=ri;t=xn,a=Lw;var n=o.actualDuration!==0||(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0;n?Aa=Yp:(Aa=Ol,ri=ql=null,pS(e,e.pendingLanes),Ns=0,ed=null);var r=e.pendingLanes;if(r===0&&(El=null),n||vS(e),r=b(t),o=o.stateNode,eo&&typeof eo.onCommitFiberRoot==="function")try{var u=(o.current.flags&128)===128;switch(r){case Bo:var d=by;break;case hn:d=xy;break;case tr:d=Mu;break;case dp:d=Sy;break;default:d=Mu}eo.onCommitFiberRoot(Du,o,d,u)}catch(q){Jn||(Jn=!0,console.error("React instrumentation encountered an error: %o",q))}if(er&&e.memoizedUpdaters.clear(),jI(),a!==null){u=G.T,d=zt.p,zt.p=Bo,G.T=null;try{var m=e.onRecoverableError;for(o=0;o<a.length;o++){var y=a[o],O=KI(y.stack);V(y.source,m,y.value,O)}}finally{G.T=u,zt.p=d}}(xn&3)!==0&&nc(),$n(e),r=e.pendingLanes,(t&261930)!==0&&(r&42)!==0?(Ap=!0,e===xv?Jc++:(Jc=0,xv=e)):Jc=0,n||vs(t,qr),lc(0,!1)}}function KI(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 pS(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Fi(t)))}function nc(){return cS(),dS(),fS(),mS()}function mS(){if(Aa!==Yp)return!1;var e=ql,t=yv;yv=0;var a=b(xn),o=tr===0||tr>a?tr:a;a=G.T;var n=zt.p;try{zt.p=o,G.T=null;var r=bv;bv=null,o=ql;var u=xn;if(Aa=Ol,ri=ql=null,xn=0,(Tt&(qa|_o))!==Ha)throw Error("Cannot flush passive effects while already rendering.");Io(u),Sv=!0,$p=!1;var d=0;if(Nr=null,d=Ua(),Sn===yw)_i(qr,d,zr);else{var m=qr,y=d,O=Sn===gv;!Kt||y<=m||(ga?ga.run(console.timeStamp.bind(console,O?"Waiting for Paint":"Waiting",m,y,yt,ht,"secondary-light")):console.timeStamp(O?"Waiting for Paint":"Waiting",m,y,yt,ht,"secondary-light"))}m=Tt,Tt|=_o;var q=o.current;gf(),Q0(q);var I=o.current;q=vv,gf(),j0(o,I,u,r,q),vS(o),Tt=m;var P=Ua();if(I=d,q=ga,Nr!==null?ax(I,P,Nr,!0,q):!Kt||P<=I||(q?q.run(console.timeStamp.bind(console,"Remaining Effects",I,P,yt,ht,"secondary-dark")):console.timeStamp("Remaining Effects",I,P,yt,ht,"secondary-dark")),vs(u,P),lc(0,!1),$p?o===ed?Ns++:(Ns=0,ed=o):Ns=0,$p=Sv=!1,eo&&typeof eo.onPostCommitFiberRoot==="function")try{eo.onPostCommitFiberRoot(Du,o)}catch(he){Jn||(Jn=!0,console.error("React instrumentation encountered an error: %o",he))}var ue=o.current.stateNode;return ue.effectDuration=0,ue.passiveEffectDuration=0,!0}finally{zt.p=n,G.T=a,pS(e,t)}}function hS(e,t,a){t=Ro(a,t),yx(t),t=pg(e.stateNode,t,2),e=ll(e,t,2),e!==null&&(Wr(e,2),$n(e))}function Bt(e,t,a){if(li=!1,e.tag===3)hS(e,e,a);else{for(;t!==null;){if(t.tag===3){hS(t,e,a);return}if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError==="function"||typeof o.componentDidCatch==="function"&&(El===null||!El.has(o))){e=Ro(a,e),yx(e),a=mg(2),o=ll(t,a,2),o!==null&&(hg(a,o,t,e),Wr(o,2),$n(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 Bg(e,t,a){var o=e.pingCache;if(o===null){o=e.pingCache=new
|
|
157
|
+
%s`,a)}}function Bg(e,t,a){var o=e.pingCache;if(o===null){o=e.pingCache=new pM;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)||(pv=!0,n.add(a),o=ZI.bind(null,e,t,a),er&&rc(e,a),t.then(o,o))}function ZI(e,t,a){var o=e.pingCache;o!==null&&o.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,(a&127)!==0?0>nr&&(Cl=nr=wa(),Ac=Cp("Promise Resolved"),wl=wp):(a&4194048)!==0&&0>Jo&&(rr=Jo=wa(),Dc=Cp("Promise Resolved"),$y=wp),W0()&&G.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`),
|
|
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`),Xt===e&&(st&a)===a&&(la===Rl||la===Pp&&(st&62914560)===st&&Ua()-Vp<hw?(Tt&qa)===Ha&&Cu(e,0):mv|=a,qs===st&&(qs=0)),$n(e)}function gS(e,t){t===0&&(t=uu()),e=Ja(e,t),e!==null&&(Wr(e,t),$n(e))}function WI(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),gS(e,a)}function JI(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),gS(e,a)}function zg(e,t,a){if((t.subtreeFlags&67117056)!==0)for(t=t.child;t!==null;){var o=e,n=t,r=n.type===rp;r=a||r,n.tag!==22?n.flags&67108864?r&&V(n,yS,o,n):zg(o,n,r):n.memoizedState===null&&(r&&n.flags&8192?V(n,yS,o,n):n.subtreeFlags&67108864&&V(n,zg,o,n,r)),t=t.sibling}}function yS(e,t){Yt(!0);try{G0(t),K0(t),V0(e,t.alternate,t,!1),X0(e,t,0,null,!1,0)}finally{Yt(!1)}}function vS(e){var t=!0;e.current.mode&(to|gn)||(t=!1),zg(e,e.current,t)}function bS(e){if((Tt&qa)===Ha){var t=e.tag;if(t===3||t===1||t===0||t===11||t===14||t===15){if(t=F(e)||"ReactComponent",Qp!==null){if(Qp.has(t))return;Qp.add(t)}else Qp=new Set([t]);V(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 rc(e,t){er&&e.memoizedUpdaters.forEach(function(a){Di(e,a,t)})}function eR(e,t){var a=G.actQueue;return a!==null?(a.push(t),gM):vy(e,t)}function tR(e){W0()&&G.actQueue===null&&V(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,65 +172,65 @@ 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`,H(e))})}function Xn(e){e!==ni&&e.next===null&&(ni===null?Qp=ni=e:ni=ni.next=e),Kp=!0,F.actQueue!==null?Lv||(Lv=!0,LS()):Sv||(Sv=!0,LS())}function oc(e,t){if(!Cv&&Kp){Cv=!0;do{var a=!1;for(var o=Qp;o!==null;){if(!t)if(e!==0){var n=o.pendingLanes;if(n===0)var r=0;else{var s=o.suspendedLanes,d=o.pingedLanes;r=(1<<31-no(42|e)+1)-1,r&=n&~(s&~d),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(a=!0,SS(o,r))}else r=st,r=Zl(o,o===jt?r:0,o.cancelPendingCommit!==null||o.timeoutHandle!==Us),(r&3)===0||Wl(o,r)||(a=!0,SS(o,r));o=o.next}}while(a);Cv=!1}}function eR(){td=window.event,zg()}function zg(){Kp=Lv=Sv=!1;var e=0;ql!==0&&sR()&&(e=ql);for(var t=Na(),a=null,o=Qp;o!==null;){var n=o.next,r=bS(o,t);if(r===0)o.next=null,a===null?Qp=n:a.next=n,n===null&&(ni=a);else if(a=o,e!==0||(r&3)!==0)Kp=!0;o=n}Ra!==El&&Ra!==Xp||oc(e,!1),ql!==0&&(ql=0)}function bS(e,t){for(var{suspendedLanes:a,pingedLanes:o,expirationTimes:n}=e,r=e.pendingLanes&-62914561;0<r;){var s=31-no(r),d=1<<s,m=n[s];if(m===-1){if((d&a)===0||(d&o)!==0)n[s]=th(d,t)}else m<=t&&(e.expiredLanes|=d);r&=~d}if(t=jt,a=st,a=Zl(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==Us),o=e.callbackNode,a===0||e===t&&(_t===Ds||_t===Es)||e.cancelPendingCommit!==null)return o!==null&&Ug(o),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Wl(e,a)){if(t=a&-a,t!==e.callbackPriority||F.actQueue!==null&&o!==wv)Ug(o);else return t;switch(v(a)){case qo:case mn:a=by;break;case Jn:a=Iu;break;case cp:a=xy;break;default:a=Iu}return o=xS.bind(null,e),F.actQueue!==null?(F.actQueue.push(o),a=wv):a=yy(a,o),e.callbackPriority=t,e.callbackNode=a,t}return o!==null&&Ug(o),e.callbackPriority=2,e.callbackNode=null,2}function xS(e,t){if(Rp=Ip=!1,td=window.event,Ra!==El&&Ra!==Xp)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(xn===jp&&(xn=hv),tc()&&e.callbackNode!==a)return null;var o=st;if(o=Zl(e,e===jt?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==Us),o===0)return null;return J0(e,o,t),bS(e,Na()),e.callbackNode!=null&&e.callbackNode===a?xS.bind(null,e):null}function SS(e,t){if(tc())return null;Ip=Rp,Rp=!1,J0(e,t,!0)}function Ug(e){e!==wv&&e!==null&&GR(e)}function LS(){F.actQueue!==null&&F.actQueue.push(function(){return zg(),null}),w2(function(){(kt&(Ea|Uo))!==Pa?yy(vy,eR):zg()})}function Pg(){if(ql===0){var e=ws;e===0&&(e=sp,sp<<=1,(sp&261888)===0&&(sp=256)),ql=e}return ql}function CS(e){if(e==null||typeof e==="symbol"||typeof e==="boolean")return null;if(typeof e==="function")return e;return et(e,"action"),qi(""+e)}function wS(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 tR(e,t,a,o,n){if(t==="submit"&&a&&a.stateNode===n){var r=CS((n[ro]||null).action),s=o.submitter;s&&(t=(t=s[ro]||null)?CS(t.formAction):s.getAttribute("formAction"),t!==null&&(r=t,s=null));var d=new hp("action","action",null,o,n);e.push({event:d,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(ql!==0){var m=s?wS(n,s):new FormData(n),y={pending:!0,data:m,method:n.method,action:r};Object.freeze(y),rg(a,y,null,m)}}else typeof r==="function"&&(d.preventDefault(),m=s?wS(n,s):new FormData(n),y={pending:!0,data:m,method:n.method,action:r},Object.freeze(y),rg(a,y,r,m))},currentTarget:n}]})}}function Yf(e,t,a){e.currentTarget=a;try{t(e)}catch(o){Ny(o)}e.currentTarget=null}function kS(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var o=e[a];e:{var n=void 0,r=o.event;if(o=o.listeners,t)for(var s=o.length-1;0<=s;s--){var d=o[s],m=d.instance,y=d.currentTarget;if(d=d.listener,m!==n&&r.isPropagationStopped())break e;m!==null?G(m,Yf,r,d,y):Yf(r,d,y),n=m}else for(s=0;s<o.length;s++){if(d=o[s],m=d.instance,y=d.currentTarget,d=d.listener,m!==n&&r.isPropagationStopped())break e;m!==null?G(m,Yf,r,d,y):Yf(r,d,y),n=m}}}}function St(e,t){kv.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[Sy];a===void 0&&(a=t[Sy]=new Set);var o=e+"__bubble";a.has(o)||(TS(t,e,2,!1),a.add(o))}function _g(e,t,a){kv.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),TS(a,e,o,t)}function Hg(e){if(!e[Zp]){e[Zp]=!0,LL.forEach(function(a){a!=="selectionchange"&&(kv.has(a)||_g(a,!1,e),_g(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Zp]||(t[Zp]=!0,_g("selectionchange",!1,t))}}function TS(e,t,a,o){switch(rL(t)){case qo:var n=BR;break;case mn:n=NR;break;default:n=oy}a=n.bind(null,t,a,e),n=void 0,!Ty||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 Fg(e,t,a,o,n){var r=o;if((t&1)===0&&(t&2)===0&&o!==null)e:for(;;){if(o===null)return;var s=o.tag;if(s===3||s===4){var d=o.stateNode.containerInfo;if(d===n)break;if(s===4)for(s=o.return;s!==null;){var m=s.tag;if((m===3||m===4)&&s.stateNode.containerInfo===n)return;s=s.return}for(;d!==null;){if(s=we(d),s===null)return;if(m=s.tag,m===5||m===6||m===26||m===27){o=r=s;continue e}d=d.parentNode}}o=o.return}zb(function(){var y=r,O=ch(a),q=[];e:{var I=rC.get(e);if(I!==void 0){var U=hp,se=e;switch(e){case"keypress":if(ef(a)===0)break e;case"keydown":case"keyup":U=MA;break;case"focusin":se="focus",U=My;break;case"focusout":se="blur",U=My;break;case"beforeblur":case"afterblur":U=My;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":U=jL;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":U=vA;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":U=OA;break;case tC:case aC:case oC:U=SA;break;case nC:U=BA;break;case"scroll":case"scrollend":U=gA;break;case"wheel":U=zA;break;case"copy":case"cut":case"paste":U=CA;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":U=YL;break;case"toggle":case"beforetoggle":U=PA}var he=(t&4)!==0,Qt=!he&&(e==="scroll"||e==="scrollend"),Lt=he?I!==null?I+"Capture":null:I;he=[];for(var T=y,R;T!==null;){var E=T;if(R=E.stateNode,E=E.tag,E!==5&&E!==26&&E!==27||R===null||Lt===null||(E=Bi(T,Lt),E!=null&&he.push(nc(T,E,R))),Qt)break;T=T.return}0<he.length&&(I=new U(I,se,null,a,O),q.push({event:I,listeners:he}))}}if((t&7)===0){e:{if(I=e==="mouseover"||e==="pointerover",U=e==="mouseout"||e==="pointerout",I&&a!==hc&&(se=a.relatedTarget||a.fromElement)&&(we(se)||se[hl]))break e;if(U||I){if(I=O.window===O?O:(I=O.ownerDocument)?I.defaultView||I.parentWindow:window,U){if(se=a.relatedTarget||a.toElement,U=y,se=se?we(se):null,se!==null&&(Qt=N(se),he=se.tag,se!==Qt||he!==5&&he!==27&&he!==6))se=null}else U=null,se=y;if(U!==se){if(he=jL,E="onMouseLeave",Lt="onMouseEnter",T="mouse",e==="pointerout"||e==="pointerover")he=YL,E="onPointerLeave",Lt="onPointerEnter",T="pointer";if(Qt=U==null?I:Ze(U),R=se==null?I:Ze(se),I=new he(E,T+"leave",U,a,O),I.target=Qt,I.relatedTarget=R,E=null,we(O)===y&&(he=new he(Lt,T+"enter",se,a,O),he.target=R,he.relatedTarget=Qt,E=he),Qt=E,U&&se)t:{he=aR,Lt=U,T=se,R=0;for(E=Lt;E;E=he(E))R++;E=0;for(var K=T;K;K=he(K))E++;for(;0<R-E;)Lt=he(Lt),R--;for(;0<E-R;)T=he(T),E--;for(;R--;){if(Lt===T||T!==null&&Lt===T.alternate){he=Lt;break t}Lt=he(Lt),T=he(T)}he=null}else he=null;U!==null&&IS(q,I,U,he,!1),se!==null&&Qt!==null&&IS(q,Qt,se,he,!0)}}}e:{if(I=y?Ze(y):window,U=I.nodeName&&I.nodeName.toLowerCase(),U==="select"||U==="input"&&I.type==="file")var pe=Vb;else if(Fb(I))if(JL)pe=mI;else{pe=fI;var Xe=dI}else U=I.nodeName,!U||U.toLowerCase()!=="input"||I.type!=="checkbox"&&I.type!=="radio"?y&&Oi(y.elementType)&&(pe=Vb):pe=pI;if(pe&&(pe=pe(e,y))){Gb(q,pe,a,O);break e}Xe&&Xe(e,I,y),e==="focusout"&&y&&I.type==="number"&&y.memoizedProps.value!=null&&nh(I,"number",I.value)}switch(Xe=y?Ze(y):window,e){case"focusin":if(Fb(Xe)||Xe.contentEditable==="true")Bu=Xe,Ey=y,Lc=null;break;case"focusout":Lc=Ey=Bu=null;break;case"mousedown":Oy=!0;break;case"contextmenu":case"mouseup":case"dragend":Oy=!1,Zb(q,a,O);break;case"selectionchange":if(GA)break;case"keydown":case"keyup":Zb(q,a,O)}var Ee;if(Dy)e:{switch(e){case"compositionstart":var Te="onCompositionStart";break e;case"compositionend":Te="onCompositionEnd";break e;case"compositionupdate":Te="onCompositionUpdate";break e}Te=void 0}else qu?_b(e,a)&&(Te="onCompositionEnd"):e==="keydown"&&a.keyCode===$L&&(Te="onCompositionStart");if(Te&&(QL&&a.locale!=="ko"&&(qu||Te!=="onCompositionStart"?Te==="onCompositionEnd"&&qu&&(Ee=Ub()):(gl=O,Iy=("value"in gl)?gl.value:gl.textContent,qu=!0)),Xe=$f(y,Te),0<Xe.length&&(Te=new XL(Te,e,null,a,O),q.push({event:Te,listeners:Xe}),Ee?Te.data=Ee:(Ee=Hb(a),Ee!==null&&(Te.data=Ee)))),Ee=HA?sI(e,a):uI(e,a))Te=$f(y,"onBeforeInput"),0<Te.length&&(Xe=new kA("onBeforeInput","beforeinput",null,a,O),q.push({event:Xe,listeners:Te}),Xe.data=Ee);tR(q,e,y,a,O)}kS(q,t)})}function nc(e,t,a){return{instance:e,listener:t,currentTarget:a}}function $f(e,t){for(var a=t+"Capture",o=[];e!==null;){var n=e,r=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||r===null||(n=Bi(e,a),n!=null&&o.unshift(nc(e,n,r)),n=Bi(e,t),n!=null&&o.push(nc(e,n,r))),e.tag===3)return o;e=e.return}return[]}function aR(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e?e:null}function IS(e,t,a,o,n){for(var r=t._reactName,s=[];a!==null&&a!==o;){var d=a,m=d.alternate,y=d.stateNode;if(d=d.tag,m!==null&&m===o)break;d!==5&&d!==26&&d!==27||y===null||(m=y,n?(y=Bi(a,r),y!=null&&s.unshift(nc(a,y,m))):n||(y=Bi(a,r),y!=null&&s.push(nc(a,y,m)))),a=a.return}s.length!==0&&e.push({event:t,listeners:s})}function Gg(e,t){oI(e,t),e!=="input"&&e!=="textarea"&&e!=="select"||t==null||t.value!==null||GL||(GL=!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:vs,possibleRegistrationNames:Ly};Oi(e)||typeof t.is==="string"||rI(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 Ba(e,t,a,o){t!==a&&(a=cl(a),cl(t)!==a&&(o[e]=t))}function oR(e,t,a){t.forEach(function(o){a[MS(o)]=o==="style"?jg(e):e.getAttribute(o)})}function Yn(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 RS(e,t){return e=e.namespaceURI===fp||e.namespaceURI===Mu?e.ownerDocument.createElementNS(e.namespaceURI,e.tagName):e.ownerDocument.createElement(e.tagName),e.innerHTML=t,e.innerHTML}function cl(e){return Ue(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.",Qe(e)),dt(e)),(typeof e==="string"?e:""+e).replace(h2,`
|
|
176
|
-
`).replace(g2,"")}function AS(e,t){return t=cl(t),cl(e)===t?!0:!1}function Gt(e,t,a,o,n,r){switch(a){case"children":if(typeof o==="string")Jd(o,t,!1),t==="body"||t==="textarea"&&o===""||Ei(e,o);else if(typeof o==="number"||typeof o==="bigint")Jd(""+o,t,!1),t!=="body"&&Ei(e,""+o);break;case"className":Kd(e,"class",o);break;case"tabIndex":Kd(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":Kd(e,a,o);break;case"style":qb(e,o,r);break;case"data":if(t!=="object"){Kd(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}et(o,a),o=qi(""+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||em||(em=!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||Jp||(Jp=!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"||Wp?t!=="button"||n.type==null||n.type==="submit"||Wp?typeof o==="function"&&(n.name==null||Rw||(Rw=!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||em||(em=!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||Jp||(Jp=!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."))):(Wp=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(Wp=!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 r==="function"&&(a==="formAction"?(t!=="input"&&Gt(e,t,"name",n.name,n,null),Gt(e,t,"formEncType",n.formEncType,n,null),Gt(e,t,"formMethod",n.formMethod,n,null),Gt(e,t,"formTarget",n.formTarget,n,null)):(Gt(e,t,"encType",n.encType,n,null),Gt(e,t,"method",n.method,n,null),Gt(e,t,"target",n.target,n,null)));if(o==null||typeof o==="symbol"||typeof o==="boolean"){e.removeAttribute(a);break}et(o,a),o=qi(""+o),e.setAttribute(a,o);break;case"onClick":o!=null&&(typeof o!=="function"&&Yn(a,o),e.onclick=br);break;case"onScroll":o!=null&&(typeof o!=="function"&&Yn(a,o),St("scroll",e));break;case"onScrollEnd":o!=null&&(typeof o!=="function"&&Yn(a,o),St("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}et(o,a),a=qi(""+o),e.setAttributeNS(Bs,"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"?(et(o,a),e.setAttribute(a,""+o)):e.removeAttribute(a);break;case"inert":o!==""||tm[a]||(tm[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"?(et(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?(et(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):(et(o,a),e.setAttribute(a,o));break;case"popover":St("beforetoggle",e),St("toggle",e),Qd(e,"popover",o);break;case"xlinkActuate":vr(e,Bs,"xlink:actuate",o);break;case"xlinkArcrole":vr(e,Bs,"xlink:arcrole",o);break;case"xlinkRole":vr(e,Bs,"xlink:role",o);break;case"xlinkShow":vr(e,Bs,"xlink:show",o);break;case"xlinkTitle":vr(e,Bs,"xlink:title",o);break;case"xlinkType":vr(e,Bs,"xlink:type",o);break;case"xmlBase":vr(e,Tv,"xml:base",o);break;case"xmlLang":vr(e,Tv,"xml:lang",o);break;case"xmlSpace":vr(e,Tv,"xml:space",o);break;case"is":r!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),Qd(e,"is",o);break;case"innerText":case"textContent":break;case"popoverTarget":Aw||o==null||typeof o!=="object"||(Aw=!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=Bb(a),Qd(e,a,o)):vs.hasOwnProperty(a)&&o!=null&&typeof o!=="function"&&Yn(a,o)}}function Vg(e,t,a,o,n,r){switch(a){case"style":qb(e,o,r);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"?Ei(e,o):(typeof o==="number"||typeof o==="bigint")&&Ei(e,""+o);break;case"onScroll":o!=null&&(typeof o!=="function"&&Yn(a,o),St("scroll",e));break;case"onScrollEnd":o!=null&&(typeof o!=="function"&&Yn(a,o),St("scrollend",e));break;case"onClick":o!=null&&(typeof o!=="function"&&Yn(a,o),e.onclick=br);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(vs.hasOwnProperty(a))o!=null&&typeof o!=="function"&&Yn(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),r=e[ro]||null,r=r!=null?r[a]:null,typeof r==="function"&&e.removeEventListener(t,r,n),typeof o==="function")){typeof r!=="function"&&r!==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,""):Qd(e,a,o)}}}function Xa(e,t,a){switch(Gg(t,a),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":St("error",e),St("load",e);var o=!1,n=!1,r;for(r in a)if(a.hasOwnProperty(r)){var s=a[r];if(s!=null)switch(r){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:Gt(e,t,r,s,a,null)}}n&&Gt(e,t,"srcSet",a.srcSet,a,null),o&&Gt(e,t,"src",a.src,a,null);return;case"input":Jr("input",a),St("invalid",e);var d=r=s=n=null,m=null,y=null;for(o in a)if(a.hasOwnProperty(o)){var O=a[o];if(O!=null)switch(o){case"name":n=O;break;case"type":s=O;break;case"checked":m=O;break;case"defaultChecked":y=O;break;case"value":r=O;break;case"defaultValue":d=O;break;case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Gt(e,t,o,O,a,null)}}vb(e,a),bb(e,r,d,m,y,s,n,!1);return;case"select":Jr("select",a),St("invalid",e),o=s=r=null;for(n in a)if(a.hasOwnProperty(n)&&(d=a[n],d!=null))switch(n){case"value":r=d;break;case"defaultValue":s=d;break;case"multiple":o=d;default:Gt(e,t,n,d,a,null)}Lb(e,a),t=r,a=s,e.multiple=!!o,t!=null?su(e,!!o,t,!1):a!=null&&su(e,!!o,a,!0);return;case"textarea":Jr("textarea",a),St("invalid",e),r=n=o=null;for(s in a)if(a.hasOwnProperty(s)&&(d=a[s],d!=null))switch(s){case"value":o=d;break;case"defaultValue":n=d;break;case"children":r=d;break;case"dangerouslySetInnerHTML":if(d!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:Gt(e,t,s,d,a,null)}Cb(e,a),kb(e,o,n,r);return;case"option":xb(e,a);for(m in a)if(a.hasOwnProperty(m)&&(o=a[m],o!=null))switch(m){case"selected":e.selected=o&&typeof o!=="function"&&typeof o!=="symbol";break;default:Gt(e,t,m,o,a,null)}return;case"dialog":St("beforetoggle",e),St("toggle",e),St("cancel",e),St("close",e);break;case"iframe":case"object":St("load",e);break;case"video":case"audio":for(o=0;o<Wc.length;o++)St(Wc[o],e);break;case"image":St("error",e),St("load",e);break;case"details":St("toggle",e);break;case"embed":case"source":case"link":St("error",e),St("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(y in a)if(a.hasOwnProperty(y)&&(o=a[y],o!=null))switch(y){case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Gt(e,t,y,o,a,null)}return;default:if(Oi(t)){for(O in a)a.hasOwnProperty(O)&&(o=a[O],o!==void 0&&Vg(e,t,O,o,a,void 0));return}}for(d in a)a.hasOwnProperty(d)&&(o=a[d],o!=null&&Gt(e,t,d,o,a,null))}function nR(e,t,a,o){switch(Gg(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,r=null,s=null,d=null,m=null,y=null,O=null;for(U in a){var q=a[U];if(a.hasOwnProperty(U)&&q!=null)switch(U){case"checked":break;case"value":break;case"defaultValue":m=q;default:o.hasOwnProperty(U)||Gt(e,t,U,null,o,q)}}for(var I in o){var U=o[I];if(q=a[I],o.hasOwnProperty(I)&&(U!=null||q!=null))switch(I){case"type":r=U;break;case"name":n=U;break;case"checked":y=U;break;case"defaultChecked":O=U;break;case"value":s=U;break;case"defaultValue":d=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:U!==q&&Gt(e,t,I,U,o,q)}}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||Iw||(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"),Iw=!0),!t||o||Tw||(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"),Tw=!0),oh(e,s,d,m,y,O,r,n);return;case"select":U=s=d=I=null;for(r in a)if(m=a[r],a.hasOwnProperty(r)&&m!=null)switch(r){case"value":break;case"multiple":U=m;default:o.hasOwnProperty(r)||Gt(e,t,r,null,o,m)}for(n in o)if(r=o[n],m=a[n],o.hasOwnProperty(n)&&(r!=null||m!=null))switch(n){case"value":I=r;break;case"defaultValue":d=r;break;case"multiple":s=r;default:r!==m&&Gt(e,t,n,r,o,m)}o=d,t=s,a=U,I!=null?su(e,!!t,I,!1):!!a!==!!t&&(o!=null?su(e,!!t,o,!0):su(e,!!t,t?[]:"",!1));return;case"textarea":U=I=null;for(d in a)if(n=a[d],a.hasOwnProperty(d)&&n!=null&&!o.hasOwnProperty(d))switch(d){case"value":break;case"children":break;default:Gt(e,t,d,null,o,n)}for(s in o)if(n=o[s],r=a[s],o.hasOwnProperty(s)&&(n!=null||r!=null))switch(s){case"value":I=n;break;case"defaultValue":U=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:n!==r&&Gt(e,t,s,n,o,r)}wb(e,I,U);return;case"option":for(var se in a)if(I=a[se],a.hasOwnProperty(se)&&I!=null&&!o.hasOwnProperty(se))switch(se){case"selected":e.selected=!1;break;default:Gt(e,t,se,null,o,I)}for(m in o)if(I=o[m],U=a[m],o.hasOwnProperty(m)&&I!==U&&(I!=null||U!=null))switch(m){case"selected":e.selected=I&&typeof I!=="function"&&typeof I!=="symbol";break;default:Gt(e,t,m,I,o,U)}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 he in a)I=a[he],a.hasOwnProperty(he)&&I!=null&&!o.hasOwnProperty(he)&&Gt(e,t,he,null,o,I);for(y in o)if(I=o[y],U=a[y],o.hasOwnProperty(y)&&I!==U&&(I!=null||U!=null))switch(y){case"children":case"dangerouslySetInnerHTML":if(I!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Gt(e,t,y,I,o,U)}return;default:if(Oi(t)){for(var Qt in a)I=a[Qt],a.hasOwnProperty(Qt)&&I!==void 0&&!o.hasOwnProperty(Qt)&&Vg(e,t,Qt,void 0,o,I);for(O in o)I=o[O],U=a[O],!o.hasOwnProperty(O)||I===U||I===void 0&&U===void 0||Vg(e,t,O,I,o,U);return}}for(var Lt in a)I=a[Lt],a.hasOwnProperty(Lt)&&I!=null&&!o.hasOwnProperty(Lt)&&Gt(e,t,Lt,null,o,I);for(q in o)I=o[q],U=a[q],!o.hasOwnProperty(q)||I===U||I==null&&U==null||Gt(e,t,q,I,o,U)}function MS(e){switch(e){case"class":return"className";case"for":return"htmlFor";default:return e}}function jg(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 DS(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="",r;for(r in t)if(t.hasOwnProperty(r)){var s=t[r];s!=null&&typeof s!=="boolean"&&s!==""&&(r.indexOf("--")===0?(ft(s,r),o+=n+r+":"+(""+s).trim()):typeof s!=="number"||s===0||HL.has(r)?(ft(s,r),o+=n+r.replace(NL,"-$1").toLowerCase().replace(zL,"-ms-")+":"+(""+s).trim()):o+=n+r.replace(NL,"-$1").toLowerCase().replace(zL,"-ms-")+":"+s+"px",n=";")}o=o||null,t=e.getAttribute("style"),t!==o&&(o=cl(o),cl(t)!==o&&(a.style=jg(e)))}}function jo(e,t,a,o,n,r){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(et(o,t),e===""+o)return}Ba(t,e,o,r)}function ES(e,t,a,o,n,r){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}Ba(t,e,o,r)}function Xg(e,t,a,o,n,r){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(et(o,a),e===""+o)return}Ba(t,e,o,r)}function OS(e,t,a,o,n,r){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)&&(et(o,t),e===""+o))return}Ba(t,e,o,r)}function Yg(e,t,a,o,n,r){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(et(o,t),a=qi(""+o),e===a)return}Ba(t,e,o,r)}function qS(e,t,a,o){for(var n={},r=new Set,s=e.attributes,d=0;d<s.length;d++)switch(s[d].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:r.add(s[d].name)}if(Oi(t)){for(var m in a)if(a.hasOwnProperty(m)){var y=a[m];if(y!=null){if(vs.hasOwnProperty(m))typeof y!=="function"&&Yn(m,y);else if(a.suppressHydrationWarning!==!0)switch(m){case"children":typeof y!=="string"&&typeof y!=="number"||Ba("children",e.textContent,y,n);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":s=e.innerHTML,y=y?y.__html:void 0,y!=null&&(y=RS(e,y),Ba(m,s,y,n));continue;case"style":r.delete(m),DS(e,y,n);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":r.delete(m.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",m);continue;case"className":r.delete("class"),s=hb(e,"class",y),Ba("className",s,y,n);continue;default:o.context===Hr&&t!=="svg"&&t!=="math"?r.delete(m.toLowerCase()):r.delete(m),s=hb(e,m,y),Ba(m,s,y,n)}}}}else for(y in a)if(a.hasOwnProperty(y)&&(m=a[y],m!=null)){if(vs.hasOwnProperty(y))typeof m!=="function"&&Yn(y,m);else if(a.suppressHydrationWarning!==!0)switch(y){case"children":typeof m!=="string"&&typeof m!=="number"||Ba("children",e.textContent,m,n);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":s=e.innerHTML,m=m?m.__html:void 0,m!=null&&(m=RS(e,m),s!==m&&(n[y]={__html:s}));continue;case"className":jo(e,y,"class",m,r,n);continue;case"tabIndex":jo(e,y,"tabindex",m,r,n);continue;case"style":r.delete(y),DS(e,m,n);continue;case"multiple":r.delete(y),Ba(y,e.multiple,m,n);continue;case"muted":r.delete(y),Ba(y,e.muted,m,n);continue;case"autoFocus":r.delete("autofocus"),Ba(y,e.autofocus,m,n);continue;case"data":if(t!=="object"){r.delete(y),s=e.getAttribute("data"),Ba(y,s,m,n);continue}case"src":case"href":if(!(m!==""||t==="a"&&y==="href"||t==="object"&&y==="data")){y==="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.',y,y):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.',y,y);continue}Yg(e,y,y,m,r,n);continue;case"action":case"formAction":if(s=e.getAttribute(y),typeof m==="function"){r.delete(y.toLowerCase()),y==="formAction"?(r.delete("name"),r.delete("formenctype"),r.delete("formmethod"),r.delete("formtarget")):(r.delete("enctype"),r.delete("method"),r.delete("target"));continue}else if(s===y2){r.delete(y.toLowerCase()),Ba(y,"function",m,n);continue}Yg(e,y,y.toLowerCase(),m,r,n);continue;case"xlinkHref":Yg(e,y,"xlink:href",m,r,n);continue;case"contentEditable":Xg(e,y,"contenteditable",m,r,n);continue;case"spellCheck":Xg(e,y,"spellcheck",m,r,n);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":Xg(e,y,y,m,r,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":ES(e,y,y.toLowerCase(),m,r,n);continue;case"capture":case"download":e:{d=e;var O=s=y,q=n;if(r.delete(O),d=d.getAttribute(O),d===null)switch(typeof m){case"undefined":case"function":case"symbol":break e;default:if(m===!1)break e}else if(m!=null)switch(typeof m){case"function":case"symbol":break;case"boolean":if(m===!0&&d==="")break e;break;default:if(et(m,s),d===""+m)break e}Ba(s,d,m,q)}continue;case"cols":case"rows":case"size":case"span":e:{if(d=e,O=s=y,q=n,r.delete(O),d=d.getAttribute(O),d===null)switch(typeof m){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(m)||1>m)break e}else if(m!=null)switch(typeof m){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(m)||1>m)&&(et(m,s),d===""+m))break e}Ba(s,d,m,q)}continue;case"rowSpan":OS(e,y,"rowspan",m,r,n);continue;case"start":OS(e,y,y,m,r,n);continue;case"xHeight":jo(e,y,"x-height",m,r,n);continue;case"xlinkActuate":jo(e,y,"xlink:actuate",m,r,n);continue;case"xlinkArcrole":jo(e,y,"xlink:arcrole",m,r,n);continue;case"xlinkRole":jo(e,y,"xlink:role",m,r,n);continue;case"xlinkShow":jo(e,y,"xlink:show",m,r,n);continue;case"xlinkTitle":jo(e,y,"xlink:title",m,r,n);continue;case"xlinkType":jo(e,y,"xlink:type",m,r,n);continue;case"xmlBase":jo(e,y,"xml:base",m,r,n);continue;case"xmlLang":jo(e,y,"xml:lang",m,r,n);continue;case"xmlSpace":jo(e,y,"xml:space",m,r,n);continue;case"inert":m!==""||tm[y]||(tm[y]=!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.",y)),ES(e,y,y,m,r,n);continue;default:if(!(2<y.length)||y[0]!=="o"&&y[0]!=="O"||y[1]!=="n"&&y[1]!=="N"){d=Bb(y),s=!1,o.context===Hr&&t!=="svg"&&t!=="math"?r.delete(d.toLowerCase()):(O=y.toLowerCase(),O=pp.hasOwnProperty(O)?pp[O]||null:null,O!==null&&O!==y&&(s=!0,r.delete(O)),r.delete(d));e:if(O=e,q=d,d=m,Ai(q))if(O.hasAttribute(q))O=O.getAttribute(q),et(d,q),d=O===""+d?d:O;else{switch(typeof d){case"function":case"symbol":break e;case"boolean":if(O=q.toLowerCase().slice(0,5),O!=="data-"&&O!=="aria-")break e}d=d===void 0?void 0:null}else d=void 0;s||Ba(y,d,m,n)}}}return 0<r.size&&a.suppressHydrationWarning!==!0&&oR(e,r,n),Object.keys(n).length===0?null:n}function rR(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 BS(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function lR(){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:r,initiatorType:s,duration:d}=n;if(r&&d&&BS(s)){s=0,d=n.responseEnd;for(o+=1;o<a.length;o++){var m=a[o],y=m.startTime;if(y>d)break;var O=m.transferSize,q=m.initiatorType;O&&BS(q)&&(m=m.responseEnd,s+=O*(m<d?1:(d-y)/(m-y)))}if(--o,t+=8*(r+s)/(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 Qf(e){return e.nodeType===9?e:e.ownerDocument}function NS(e){switch(e){case Mu:return li;case fp:return om;default:return Hr}}function zS(e,t){if(e===Hr)switch(t){case"svg":return li;case"math":return om;default:return Hr}return e===li&&t==="foreignObject"?Hr:e}function $g(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 sR(){var e=window.event;if(e&&e.type==="popstate"){if(e===Mv)return!1;return Mv=e,!0}return Mv=null,!1}function rc(){var e=window.event;return e&&e!==td?e.type:null}function lc(){var e=window.event;return e&&e!==td?e.timeStamp:-1.1}function uR(e){setTimeout(function(){throw e})}function iR(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 cR(){}function dR(e,t,a,o){nR(e,t,a,o),e[ro]=o}function US(e){Ei(e,"")}function fR(e,t,a){e.nodeValue=a}function PS(e){if(!e.__reactWarnedAboutChildrenConflict){var t=e[ro]||null;if(t!==null){var a=Ke(e);a!==null&&(typeof t.children==="string"||typeof t.children==="number"?(e.__reactWarnedAboutChildrenConflict=!0,G(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,G(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 dl(e){return e==="head"}function pR(e,t){e.removeChild(t)}function mR(e,t){(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e).removeChild(t)}function _S(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===ed||a===am){if(o===0){e.removeChild(n),wu(t);return}o--}else if(a===Jc||a===Bl||a===zs||a===ri||a===Ns)o++;else if(a===b2)sc(e.ownerDocument.documentElement);else if(a===S2){a=e.ownerDocument.head,sc(a);for(var r=a.firstChild;r;){var s=r.nextSibling,d=r.nodeName;r[mc]||d==="SCRIPT"||d==="STYLE"||d==="LINK"&&r.rel.toLowerCase()==="stylesheet"||a.removeChild(r),r=s}}else a===x2&&sc(e.ownerDocument.body);a=n}while(a);wu(t)}function HS(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===ed)if(e===0)break;else e--;else a!==Jc&&a!==Bl&&a!==zs&&a!==ri||e++;a=o}while(a)}function hR(e){HS(e,!0)}function gR(e){e=e.style,typeof e.setProperty==="function"?e.setProperty("display","none","important"):e.display="none"}function yR(e){e.nodeValue=""}function vR(e){HS(e,!1)}function bR(e,t){t=t[L2],t=t!==void 0&&t!==null&&t.hasOwnProperty("display")?t.display:null,e.style.display=t==null||typeof t==="boolean"?"":(""+t).trim()}function xR(e,t){e.nodeValue=t}function Qg(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":Qg(a),fe(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function SR(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"){et(n.name,"name");var r=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===r)return e}else return e;else if(!e[mc])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(r=e.getAttribute("rel"),r==="stylesheet"&&e.hasAttribute("data-precedence"))break;else if(r!==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(r=e.getAttribute("src"),(r!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&r&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}if(e=Do(e.nextSibling),e===null)break}return null}function LR(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=Do(e.nextSibling),e===null)return null}return e}function FS(e,t){for(;e.nodeType!==8;){if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t)return null;if(e=Do(e.nextSibling),e===null)return null}return e}function Kg(e){return e.data===Bl||e.data===zs}function Zg(e){return e.data===ri||e.data===Bl&&e.ownerDocument.readyState!==Dw}function CR(e,t){var a=e.ownerDocument;if(e.data===zs)e._reactRetry=t;else if(e.data!==Bl||a.readyState!==Dw)t();else{var o=function(){t(),a.removeEventListener("DOMContentLoaded",o)};a.addEventListener("DOMContentLoaded",o),e._reactRetry=o}}function Do(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===Jc||t===ri||t===Bl||t===zs||t===Ns||t===Iv||t===Mw)break;if(t===ed||t===am)return null}}return e}function GS(e){if(e.nodeType===1){for(var t=e.nodeName.toLowerCase(),a={},o=e.attributes,n=0;n<o.length;n++){var r=o[n];a[MS(r.name)]=r.name.toLowerCase()==="style"?jg(e):r.value}return{type:t,props:a}}return e.nodeType===8?e.data===Ns?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:e.nodeValue}function VS(e,t,a){return a===null||a[v2]!==!0?(e.nodeValue===t?e=null:(t=cl(t),e=cl(e.nodeValue)===t?null:e.nodeValue),e):null}function Wg(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a===ed||a===am){if(t===0)return Do(e.nextSibling);t--}else a!==Jc&&a!==ri&&a!==Bl&&a!==zs&&a!==Ns||t++}e=e.nextSibling}return null}function jS(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a===Jc||a===ri||a===Bl||a===zs||a===Ns){if(t===0)return e;t--}else a!==ed&&a!==am||t++}e=e.previousSibling}return null}function wR(e){wu(e)}function kR(e){wu(e)}function TR(e){wu(e)}function XS(e,t,a,o,n){switch(n&&ih(e,o.ancestorInfo),t=Qf(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 IR(e,t,a,o){if(!a[hl]&&Ke(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]);Xa(a,e,t),a[Ya]=o,a[ro]=t}function sc(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);fe(e)}function Kf(e){return typeof e.getRootNode==="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}function YS(e,t,a){var o=si;if(o&&typeof t==="string"&&t){var n=Vo(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof a==="string"&&(n+='[crossorigin="'+a+'"]'),zw.has(n)||(zw.add(n),e={rel:e,crossOrigin:a,href:t},o.querySelector(n)===null&&(t=o.createElement("link"),Xa(t,"link",e),qe(t),o.head.appendChild(t)))}}function $S(e,t,a,o){var n=(n=pl.current)?Kf(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=Lu(a.href),t=Tt(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=Lu(a.href);var r=Tt(n).hoistableStyles,s=r.get(e);if(!s&&(n=n.ownerDocument||n,s={type:"stylesheet",instance:null,count:0,state:{loading:Ps,preload:null}},r.set(e,s),(r=n.querySelector(uc(e)))&&!r._p&&(s.instance=r,s.state.loading=ad|an),!on.has(e))){var d={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy};on.set(e,d),r||RR(n,e,d,s.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`,F(e))})}function $n(e){e!==si&&e.next===null&&(si===null?Kp=si=e:si=si.next=e),Zp=!0,G.actQueue!==null?Cv||(Cv=!0,CS()):Lv||(Lv=!0,CS())}function lc(e,t){if(!wv&&Zp){wv=!0;do{var a=!1;for(var o=Kp;o!==null;){if(!t)if(e!==0){var n=o.pendingLanes;if(n===0)var r=0;else{var u=o.suspendedLanes,d=o.pingedLanes;r=(1<<31-ro(42|e)+1)-1,r&=n&~(u&~d),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(a=!0,LS(o,r))}else r=st,r=Wl(o,o===Xt?r:0,o.cancelPendingCommit!==null||o.timeoutHandle!==Ps),(r&3)===0||Jl(o,r)||(a=!0,LS(o,r));o=o.next}}while(a);wv=!1}}function aR(){nd=window.event,Ug()}function Ug(){Zp=Cv=Lv=!1;var e=0;Nl!==0&&iR()&&(e=Nl);for(var t=Ua(),a=null,o=Kp;o!==null;){var n=o.next,r=xS(o,t);if(r===0)o.next=null,a===null?Kp=n:a.next=n,n===null&&(si=a);else if(a=o,e!==0||(r&3)!==0)Zp=!0;o=n}Aa!==Ol&&Aa!==Yp||lc(e,!1),Nl!==0&&(Nl=0)}function xS(e,t){for(var{suspendedLanes:a,pingedLanes:o,expirationTimes:n}=e,r=e.pendingLanes&-62914561;0<r;){var u=31-ro(r),d=1<<u,m=n[u];if(m===-1){if((d&a)===0||(d&o)!==0)n[u]=ah(d,t)}else m<=t&&(e.expiredLanes|=d);r&=~d}if(t=Xt,a=st,a=Wl(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==Ps),o=e.callbackNode,a===0||e===t&&(_t===Es||_t===Os)||e.cancelPendingCommit!==null)return o!==null&&Pg(o),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Jl(e,a)){if(t=a&-a,t!==e.callbackPriority||G.actQueue!==null&&o!==kv)Pg(o);else return t;switch(b(a)){case Bo:case hn:a=xy;break;case tr:a=Mu;break;case dp:a=Sy;break;default:a=Mu}return o=SS.bind(null,e),G.actQueue!==null?(G.actQueue.push(o),a=kv):a=vy(a,o),e.callbackPriority=t,e.callbackNode=a,t}return o!==null&&Pg(o),e.callbackPriority=2,e.callbackNode=null,2}function SS(e,t){if(Ap=Rp=!1,nd=window.event,Aa!==Ol&&Aa!==Yp)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Sn===Xp&&(Sn=gv),nc()&&e.callbackNode!==a)return null;var o=st;if(o=Wl(e,e===Xt?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==Ps),o===0)return null;return eS(e,o,t),xS(e,Ua()),e.callbackNode!=null&&e.callbackNode===a?SS.bind(null,e):null}function LS(e,t){if(nc())return null;Rp=Ap,Ap=!1,eS(e,t,!0)}function Pg(e){e!==kv&&e!==null&&jR(e)}function CS(){G.actQueue!==null&&G.actQueue.push(function(){return Ug(),null}),TM(function(){(Tt&(qa|_o))!==Ha?vy(by,aR):Ug()})}function _g(){if(Nl===0){var e=ks;e===0&&(e=up,up<<=1,(up&261888)===0&&(up=256)),Nl=e}return Nl}function wS(e){if(e==null||typeof e==="symbol"||typeof e==="boolean")return null;if(typeof e==="function")return e;return et(e,"action"),zi(""+e)}function kS(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 oR(e,t,a,o,n){if(t==="submit"&&a&&a.stateNode===n){var r=wS((n[lo]||null).action),u=o.submitter;u&&(t=(t=u[lo]||null)?wS(t.formAction):u.getAttribute("formAction"),t!==null&&(r=t,u=null));var d=new gp("action","action",null,o,n);e.push({event:d,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(Nl!==0){var m=u?kS(n,u):new FormData(n),y={pending:!0,data:m,method:n.method,action:r};Object.freeze(y),lg(a,y,null,m)}}else typeof r==="function"&&(d.preventDefault(),m=u?kS(n,u):new FormData(n),y={pending:!0,data:m,method:n.method,action:r},Object.freeze(y),lg(a,y,r,m))},currentTarget:n}]})}}function $f(e,t,a){e.currentTarget=a;try{t(e)}catch(o){zy(o)}e.currentTarget=null}function TS(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var o=e[a];e:{var n=void 0,r=o.event;if(o=o.listeners,t)for(var u=o.length-1;0<=u;u--){var d=o[u],m=d.instance,y=d.currentTarget;if(d=d.listener,m!==n&&r.isPropagationStopped())break e;m!==null?V(m,$f,r,d,y):$f(r,d,y),n=m}else for(u=0;u<o.length;u++){if(d=o[u],m=d.instance,y=d.currentTarget,d=d.listener,m!==n&&r.isPropagationStopped())break e;m!==null?V(m,$f,r,d,y):$f(r,d,y),n=m}}}}function Ct(e,t){Tv.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[Ly];a===void 0&&(a=t[Ly]=new Set);var o=e+"__bubble";a.has(o)||(IS(t,e,2,!1),a.add(o))}function Hg(e,t,a){Tv.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),IS(a,e,o,t)}function Fg(e){if(!e[Wp]){e[Wp]=!0,CL.forEach(function(a){a!=="selectionchange"&&(Tv.has(a)||Hg(a,!1,e),Hg(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Wp]||(t[Wp]=!0,Hg("selectionchange",!1,t))}}function IS(e,t,a,o){switch(lL(t)){case Bo:var n=zR;break;case hn:n=UR;break;default:n=ny}a=n.bind(null,t,a,e),n=void 0,!Iy||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 Gg(e,t,a,o,n){var r=o;if((t&1)===0&&(t&2)===0&&o!==null)e:for(;;){if(o===null)return;var u=o.tag;if(u===3||u===4){var d=o.stateNode.containerInfo;if(d===n)break;if(u===4)for(u=o.return;u!==null;){var m=u.tag;if((m===3||m===4)&&u.stateNode.containerInfo===n)return;u=u.return}for(;d!==null;){if(u=we(d),u===null)return;if(m=u.tag,m===5||m===6||m===26||m===27){o=r=u;continue e}d=d.parentNode}}o=o.return}Ub(function(){var y=r,O=dh(a),q=[];e:{var I=lC.get(e);if(I!==void 0){var P=gp,ue=e;switch(e){case"keypress":if(tf(a)===0)break e;case"keydown":case"keyup":P=EA;break;case"focusin":ue="focus",P=Dy;break;case"focusout":ue="blur",P=Dy;break;case"beforeblur":case"afterblur":P=Dy;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":P=XL;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":P=xA;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":P=NA;break;case aC:case oC:case nC:P=CA;break;case rC:P=zA;break;case"scroll":case"scrollend":P=vA;break;case"wheel":P=PA;break;case"copy":case"cut":case"paste":P=kA;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":P=$L;break;case"toggle":case"beforetoggle":P=HA}var he=(t&4)!==0,Qt=!he&&(e==="scroll"||e==="scrollend"),wt=he?I!==null?I+"Capture":null:I;he=[];for(var T=y,R;T!==null;){var E=T;if(R=E.stateNode,E=E.tag,E!==5&&E!==26&&E!==27||R===null||wt===null||(E=Ui(T,wt),E!=null&&he.push(sc(T,E,R))),Qt)break;T=T.return}0<he.length&&(I=new P(I,ue,null,a,O),q.push({event:I,listeners:he}))}}if((t&7)===0){e:{if(I=e==="mouseover"||e==="pointerover",P=e==="mouseout"||e==="pointerout",I&&a!==vc&&(ue=a.relatedTarget||a.fromElement)&&(we(ue)||ue[gl]))break e;if(P||I){if(I=O.window===O?O:(I=O.ownerDocument)?I.defaultView||I.parentWindow:window,P){if(ue=a.relatedTarget||a.toElement,P=y,ue=ue?we(ue):null,ue!==null&&(Qt=U(ue),he=ue.tag,ue!==Qt||he!==5&&he!==27&&he!==6))ue=null}else P=null,ue=y;if(P!==ue){if(he=XL,E="onMouseLeave",wt="onMouseEnter",T="mouse",e==="pointerout"||e==="pointerover")he=$L,E="onPointerLeave",wt="onPointerEnter",T="pointer";if(Qt=P==null?I:Ze(P),R=ue==null?I:Ze(ue),I=new he(E,T+"leave",P,a,O),I.target=Qt,I.relatedTarget=R,E=null,we(O)===y&&(he=new he(wt,T+"enter",ue,a,O),he.target=R,he.relatedTarget=Qt,E=he),Qt=E,P&&ue)t:{he=nR,wt=P,T=ue,R=0;for(E=wt;E;E=he(E))R++;E=0;for(var K=T;K;K=he(K))E++;for(;0<R-E;)wt=he(wt),R--;for(;0<E-R;)T=he(T),E--;for(;R--;){if(wt===T||T!==null&&wt===T.alternate){he=wt;break t}wt=he(wt),T=he(T)}he=null}else he=null;P!==null&&RS(q,I,P,he,!1),ue!==null&&Qt!==null&&RS(q,Qt,ue,he,!0)}}}e:{if(I=y?Ze(y):window,P=I.nodeName&&I.nodeName.toLowerCase(),P==="select"||P==="input"&&I.type==="file")var pe=jb;else if(Gb(I))if(eC)pe=gI;else{pe=mI;var Ye=pI}else P=I.nodeName,!P||P.toLowerCase()!=="input"||I.type!=="checkbox"&&I.type!=="radio"?y&&Bi(y.elementType)&&(pe=jb):pe=hI;if(pe&&(pe=pe(e,y))){Vb(q,pe,a,O);break e}Ye&&Ye(e,I,y),e==="focusout"&&y&&I.type==="number"&&y.memoizedProps.value!=null&&rh(I,"number",I.value)}switch(Ye=y?Ze(y):window,e){case"focusin":if(Gb(Ye)||Ye.contentEditable==="true")Uu=Ye,Oy=y,kc=null;break;case"focusout":kc=Oy=Uu=null;break;case"mousedown":qy=!0;break;case"contextmenu":case"mouseup":case"dragend":qy=!1,Wb(q,a,O);break;case"selectionchange":if(jA)break;case"keydown":case"keyup":Wb(q,a,O)}var Ee;if(Ey)e:{switch(e){case"compositionstart":var Te="onCompositionStart";break e;case"compositionend":Te="onCompositionEnd";break e;case"compositionupdate":Te="onCompositionUpdate";break e}Te=void 0}else zu?Hb(e,a)&&(Te="onCompositionEnd"):e==="keydown"&&a.keyCode===QL&&(Te="onCompositionStart");if(Te&&(KL&&a.locale!=="ko"&&(zu||Te!=="onCompositionStart"?Te==="onCompositionEnd"&&zu&&(Ee=Pb()):(yl=O,Ry=("value"in yl)?yl.value:yl.textContent,zu=!0)),Ye=Qf(y,Te),0<Ye.length&&(Te=new YL(Te,e,null,a,O),q.push({event:Te,listeners:Ye}),Ee?Te.data=Ee:(Ee=Fb(a),Ee!==null&&(Te.data=Ee)))),Ee=GA?iI(e,a):cI(e,a))Te=Qf(y,"onBeforeInput"),0<Te.length&&(Ye=new IA("onBeforeInput","beforeinput",null,a,O),q.push({event:Ye,listeners:Te}),Ye.data=Ee);oR(q,e,y,a,O)}TS(q,t)})}function sc(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Qf(e,t){for(var a=t+"Capture",o=[];e!==null;){var n=e,r=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||r===null||(n=Ui(e,a),n!=null&&o.unshift(sc(e,n,r)),n=Ui(e,t),n!=null&&o.push(sc(e,n,r))),e.tag===3)return o;e=e.return}return[]}function nR(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e?e:null}function RS(e,t,a,o,n){for(var r=t._reactName,u=[];a!==null&&a!==o;){var d=a,m=d.alternate,y=d.stateNode;if(d=d.tag,m!==null&&m===o)break;d!==5&&d!==26&&d!==27||y===null||(m=y,n?(y=Ui(a,r),y!=null&&u.unshift(sc(a,y,m))):n||(y=Ui(a,r),y!=null&&u.push(sc(a,y,m)))),a=a.return}u.length!==0&&e.push({event:t,listeners:u})}function Vg(e,t){rI(e,t),e!=="input"&&e!=="textarea"&&e!=="select"||t==null||t.value!==null||VL||(VL=!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:bs,possibleRegistrationNames:Cy};Bi(e)||typeof t.is==="string"||sI(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 za(e,t,a,o){t!==a&&(a=dl(a),dl(t)!==a&&(o[e]=t))}function rR(e,t,a){t.forEach(function(o){a[DS(o)]=o==="style"?Xg(e):e.getAttribute(o)})}function Qn(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 AS(e,t){return e=e.namespaceURI===pp||e.namespaceURI===Ou?e.ownerDocument.createElementNS(e.namespaceURI,e.tagName):e.ownerDocument.createElement(e.tagName),e.innerHTML=t,e.innerHTML}function dl(e){return Pe(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.",Qe(e)),dt(e)),(typeof e==="string"?e:""+e).replace(yM,`
|
|
176
|
+
`).replace(vM,"")}function MS(e,t){return t=dl(t),dl(e)===t?!0:!1}function Vt(e,t,a,o,n,r){switch(a){case"children":if(typeof o==="string")ef(o,t,!1),t==="body"||t==="textarea"&&o===""||Ni(e,o);else if(typeof o==="number"||typeof o==="bigint")ef(""+o,t,!1),t!=="body"&&Ni(e,""+o);break;case"className":Zd(e,"class",o);break;case"tabIndex":Zd(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":Zd(e,a,o);break;case"style":Nb(e,o,r);break;case"data":if(t!=="object"){Zd(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}et(o,a),o=zi(""+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||tm||(tm=!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||em||(em=!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"||Jp?t!=="button"||n.type==null||n.type==="submit"||Jp?typeof o==="function"&&(n.name==null||Aw||(Aw=!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||tm||(tm=!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||em||(em=!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."))):(Jp=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(Jp=!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 r==="function"&&(a==="formAction"?(t!=="input"&&Vt(e,t,"name",n.name,n,null),Vt(e,t,"formEncType",n.formEncType,n,null),Vt(e,t,"formMethod",n.formMethod,n,null),Vt(e,t,"formTarget",n.formTarget,n,null)):(Vt(e,t,"encType",n.encType,n,null),Vt(e,t,"method",n.method,n,null),Vt(e,t,"target",n.target,n,null)));if(o==null||typeof o==="symbol"||typeof o==="boolean"){e.removeAttribute(a);break}et(o,a),o=zi(""+o),e.setAttribute(a,o);break;case"onClick":o!=null&&(typeof o!=="function"&&Qn(a,o),e.onclick=Sr);break;case"onScroll":o!=null&&(typeof o!=="function"&&Qn(a,o),Ct("scroll",e));break;case"onScrollEnd":o!=null&&(typeof o!=="function"&&Qn(a,o),Ct("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}et(o,a),a=zi(""+o),e.setAttributeNS(Bs,"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"?(et(o,a),e.setAttribute(a,""+o)):e.removeAttribute(a);break;case"inert":o!==""||am[a]||(am[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"?(et(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?(et(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):(et(o,a),e.setAttribute(a,o));break;case"popover":Ct("beforetoggle",e),Ct("toggle",e),Kd(e,"popover",o);break;case"xlinkActuate":xr(e,Bs,"xlink:actuate",o);break;case"xlinkArcrole":xr(e,Bs,"xlink:arcrole",o);break;case"xlinkRole":xr(e,Bs,"xlink:role",o);break;case"xlinkShow":xr(e,Bs,"xlink:show",o);break;case"xlinkTitle":xr(e,Bs,"xlink:title",o);break;case"xlinkType":xr(e,Bs,"xlink:type",o);break;case"xmlBase":xr(e,Iv,"xml:base",o);break;case"xmlLang":xr(e,Iv,"xml:lang",o);break;case"xmlSpace":xr(e,Iv,"xml:space",o);break;case"is":r!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),Kd(e,"is",o);break;case"innerText":case"textContent":break;case"popoverTarget":Mw||o==null||typeof o!=="object"||(Mw=!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=Bb(a),Kd(e,a,o)):bs.hasOwnProperty(a)&&o!=null&&typeof o!=="function"&&Qn(a,o)}}function jg(e,t,a,o,n,r){switch(a){case"style":Nb(e,o,r);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"?Ni(e,o):(typeof o==="number"||typeof o==="bigint")&&Ni(e,""+o);break;case"onScroll":o!=null&&(typeof o!=="function"&&Qn(a,o),Ct("scroll",e));break;case"onScrollEnd":o!=null&&(typeof o!=="function"&&Qn(a,o),Ct("scrollend",e));break;case"onClick":o!=null&&(typeof o!=="function"&&Qn(a,o),e.onclick=Sr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(bs.hasOwnProperty(a))o!=null&&typeof o!=="function"&&Qn(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),r=e[lo]||null,r=r!=null?r[a]:null,typeof r==="function"&&e.removeEventListener(t,r,n),typeof o==="function")){typeof r!=="function"&&r!==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,""):Kd(e,a,o)}}}function $a(e,t,a){switch(Vg(t,a),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ct("error",e),Ct("load",e);var o=!1,n=!1,r;for(r in a)if(a.hasOwnProperty(r)){var u=a[r];if(u!=null)switch(r){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:Vt(e,t,r,u,a,null)}}n&&Vt(e,t,"srcSet",a.srcSet,a,null),o&&Vt(e,t,"src",a.src,a,null);return;case"input":el("input",a),Ct("invalid",e);var d=r=u=n=null,m=null,y=null;for(o in a)if(a.hasOwnProperty(o)){var O=a[o];if(O!=null)switch(o){case"name":n=O;break;case"type":u=O;break;case"checked":m=O;break;case"defaultChecked":y=O;break;case"value":r=O;break;case"defaultValue":d=O;break;case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Vt(e,t,o,O,a,null)}}bb(e,a),xb(e,r,d,m,y,u,n,!1);return;case"select":el("select",a),Ct("invalid",e),o=u=r=null;for(n in a)if(a.hasOwnProperty(n)&&(d=a[n],d!=null))switch(n){case"value":r=d;break;case"defaultValue":u=d;break;case"multiple":o=d;default:Vt(e,t,n,d,a,null)}Cb(e,a),t=r,a=u,e.multiple=!!o,t!=null?cu(e,!!o,t,!1):a!=null&&cu(e,!!o,a,!0);return;case"textarea":el("textarea",a),Ct("invalid",e),r=n=o=null;for(u in a)if(a.hasOwnProperty(u)&&(d=a[u],d!=null))switch(u){case"value":o=d;break;case"defaultValue":n=d;break;case"children":r=d;break;case"dangerouslySetInnerHTML":if(d!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:Vt(e,t,u,d,a,null)}wb(e,a),Tb(e,o,n,r);return;case"option":Sb(e,a);for(m in a)if(a.hasOwnProperty(m)&&(o=a[m],o!=null))switch(m){case"selected":e.selected=o&&typeof o!=="function"&&typeof o!=="symbol";break;default:Vt(e,t,m,o,a,null)}return;case"dialog":Ct("beforetoggle",e),Ct("toggle",e),Ct("cancel",e),Ct("close",e);break;case"iframe":case"object":Ct("load",e);break;case"video":case"audio":for(o=0;o<td.length;o++)Ct(td[o],e);break;case"image":Ct("error",e),Ct("load",e);break;case"details":Ct("toggle",e);break;case"embed":case"source":case"link":Ct("error",e),Ct("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(y in a)if(a.hasOwnProperty(y)&&(o=a[y],o!=null))switch(y){case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Vt(e,t,y,o,a,null)}return;default:if(Bi(t)){for(O in a)a.hasOwnProperty(O)&&(o=a[O],o!==void 0&&jg(e,t,O,o,a,void 0));return}}for(d in a)a.hasOwnProperty(d)&&(o=a[d],o!=null&&Vt(e,t,d,o,a,null))}function lR(e,t,a,o){switch(Vg(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,r=null,u=null,d=null,m=null,y=null,O=null;for(P in a){var q=a[P];if(a.hasOwnProperty(P)&&q!=null)switch(P){case"checked":break;case"value":break;case"defaultValue":m=q;default:o.hasOwnProperty(P)||Vt(e,t,P,null,o,q)}}for(var I in o){var P=o[I];if(q=a[I],o.hasOwnProperty(I)&&(P!=null||q!=null))switch(I){case"type":r=P;break;case"name":n=P;break;case"checked":y=P;break;case"defaultChecked":O=P;break;case"value":u=P;break;case"defaultValue":d=P;break;case"children":case"dangerouslySetInnerHTML":if(P!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:P!==q&&Vt(e,t,I,P,o,q)}}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||Rw||(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"),Rw=!0),!t||o||Iw||(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"),Iw=!0),nh(e,u,d,m,y,O,r,n);return;case"select":P=u=d=I=null;for(r in a)if(m=a[r],a.hasOwnProperty(r)&&m!=null)switch(r){case"value":break;case"multiple":P=m;default:o.hasOwnProperty(r)||Vt(e,t,r,null,o,m)}for(n in o)if(r=o[n],m=a[n],o.hasOwnProperty(n)&&(r!=null||m!=null))switch(n){case"value":I=r;break;case"defaultValue":d=r;break;case"multiple":u=r;default:r!==m&&Vt(e,t,n,r,o,m)}o=d,t=u,a=P,I!=null?cu(e,!!t,I,!1):!!a!==!!t&&(o!=null?cu(e,!!t,o,!0):cu(e,!!t,t?[]:"",!1));return;case"textarea":P=I=null;for(d in a)if(n=a[d],a.hasOwnProperty(d)&&n!=null&&!o.hasOwnProperty(d))switch(d){case"value":break;case"children":break;default:Vt(e,t,d,null,o,n)}for(u in o)if(n=o[u],r=a[u],o.hasOwnProperty(u)&&(n!=null||r!=null))switch(u){case"value":I=n;break;case"defaultValue":P=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:n!==r&&Vt(e,t,u,n,o,r)}kb(e,I,P);return;case"option":for(var ue in a)if(I=a[ue],a.hasOwnProperty(ue)&&I!=null&&!o.hasOwnProperty(ue))switch(ue){case"selected":e.selected=!1;break;default:Vt(e,t,ue,null,o,I)}for(m in o)if(I=o[m],P=a[m],o.hasOwnProperty(m)&&I!==P&&(I!=null||P!=null))switch(m){case"selected":e.selected=I&&typeof I!=="function"&&typeof I!=="symbol";break;default:Vt(e,t,m,I,o,P)}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 he in a)I=a[he],a.hasOwnProperty(he)&&I!=null&&!o.hasOwnProperty(he)&&Vt(e,t,he,null,o,I);for(y in o)if(I=o[y],P=a[y],o.hasOwnProperty(y)&&I!==P&&(I!=null||P!=null))switch(y){case"children":case"dangerouslySetInnerHTML":if(I!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Vt(e,t,y,I,o,P)}return;default:if(Bi(t)){for(var Qt in a)I=a[Qt],a.hasOwnProperty(Qt)&&I!==void 0&&!o.hasOwnProperty(Qt)&&jg(e,t,Qt,void 0,o,I);for(O in o)I=o[O],P=a[O],!o.hasOwnProperty(O)||I===P||I===void 0&&P===void 0||jg(e,t,O,I,o,P);return}}for(var wt in a)I=a[wt],a.hasOwnProperty(wt)&&I!=null&&!o.hasOwnProperty(wt)&&Vt(e,t,wt,null,o,I);for(q in o)I=o[q],P=a[q],!o.hasOwnProperty(q)||I===P||I==null&&P==null||Vt(e,t,q,I,o,P)}function DS(e){switch(e){case"class":return"className";case"for":return"htmlFor";default:return e}}function Xg(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 ES(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="",r;for(r in t)if(t.hasOwnProperty(r)){var u=t[r];u!=null&&typeof u!=="boolean"&&u!==""&&(r.indexOf("--")===0?(ft(u,r),o+=n+r+":"+(""+u).trim()):typeof u!=="number"||u===0||FL.has(r)?(ft(u,r),o+=n+r.replace(zL,"-$1").toLowerCase().replace(UL,"-ms-")+":"+(""+u).trim()):o+=n+r.replace(zL,"-$1").toLowerCase().replace(UL,"-ms-")+":"+u+"px",n=";")}o=o||null,t=e.getAttribute("style"),t!==o&&(o=dl(o),dl(t)!==o&&(a.style=Xg(e)))}}function Xo(e,t,a,o,n,r){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(et(o,t),e===""+o)return}za(t,e,o,r)}function OS(e,t,a,o,n,r){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}za(t,e,o,r)}function Yg(e,t,a,o,n,r){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(et(o,a),e===""+o)return}za(t,e,o,r)}function qS(e,t,a,o,n,r){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)&&(et(o,t),e===""+o))return}za(t,e,o,r)}function $g(e,t,a,o,n,r){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(et(o,t),a=zi(""+o),e===a)return}za(t,e,o,r)}function NS(e,t,a,o){for(var n={},r=new Set,u=e.attributes,d=0;d<u.length;d++)switch(u[d].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:r.add(u[d].name)}if(Bi(t)){for(var m in a)if(a.hasOwnProperty(m)){var y=a[m];if(y!=null){if(bs.hasOwnProperty(m))typeof y!=="function"&&Qn(m,y);else if(a.suppressHydrationWarning!==!0)switch(m){case"children":typeof y!=="string"&&typeof y!=="number"||za("children",e.textContent,y,n);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":u=e.innerHTML,y=y?y.__html:void 0,y!=null&&(y=AS(e,y),za(m,u,y,n));continue;case"style":r.delete(m),ES(e,y,n);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":r.delete(m.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",m);continue;case"className":r.delete("class"),u=gb(e,"class",y),za("className",u,y,n);continue;default:o.context===Gr&&t!=="svg"&&t!=="math"?r.delete(m.toLowerCase()):r.delete(m),u=gb(e,m,y),za(m,u,y,n)}}}}else for(y in a)if(a.hasOwnProperty(y)&&(m=a[y],m!=null)){if(bs.hasOwnProperty(y))typeof m!=="function"&&Qn(y,m);else if(a.suppressHydrationWarning!==!0)switch(y){case"children":typeof m!=="string"&&typeof m!=="number"||za("children",e.textContent,m,n);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":u=e.innerHTML,m=m?m.__html:void 0,m!=null&&(m=AS(e,m),u!==m&&(n[y]={__html:u}));continue;case"className":Xo(e,y,"class",m,r,n);continue;case"tabIndex":Xo(e,y,"tabindex",m,r,n);continue;case"style":r.delete(y),ES(e,m,n);continue;case"multiple":r.delete(y),za(y,e.multiple,m,n);continue;case"muted":r.delete(y),za(y,e.muted,m,n);continue;case"autoFocus":r.delete("autofocus"),za(y,e.autofocus,m,n);continue;case"data":if(t!=="object"){r.delete(y),u=e.getAttribute("data"),za(y,u,m,n);continue}case"src":case"href":if(!(m!==""||t==="a"&&y==="href"||t==="object"&&y==="data")){y==="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.',y,y):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.',y,y);continue}$g(e,y,y,m,r,n);continue;case"action":case"formAction":if(u=e.getAttribute(y),typeof m==="function"){r.delete(y.toLowerCase()),y==="formAction"?(r.delete("name"),r.delete("formenctype"),r.delete("formmethod"),r.delete("formtarget")):(r.delete("enctype"),r.delete("method"),r.delete("target"));continue}else if(u===bM){r.delete(y.toLowerCase()),za(y,"function",m,n);continue}$g(e,y,y.toLowerCase(),m,r,n);continue;case"xlinkHref":$g(e,y,"xlink:href",m,r,n);continue;case"contentEditable":Yg(e,y,"contenteditable",m,r,n);continue;case"spellCheck":Yg(e,y,"spellcheck",m,r,n);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":Yg(e,y,y,m,r,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":OS(e,y,y.toLowerCase(),m,r,n);continue;case"capture":case"download":e:{d=e;var O=u=y,q=n;if(r.delete(O),d=d.getAttribute(O),d===null)switch(typeof m){case"undefined":case"function":case"symbol":break e;default:if(m===!1)break e}else if(m!=null)switch(typeof m){case"function":case"symbol":break;case"boolean":if(m===!0&&d==="")break e;break;default:if(et(m,u),d===""+m)break e}za(u,d,m,q)}continue;case"cols":case"rows":case"size":case"span":e:{if(d=e,O=u=y,q=n,r.delete(O),d=d.getAttribute(O),d===null)switch(typeof m){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(m)||1>m)break e}else if(m!=null)switch(typeof m){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(m)||1>m)&&(et(m,u),d===""+m))break e}za(u,d,m,q)}continue;case"rowSpan":qS(e,y,"rowspan",m,r,n);continue;case"start":qS(e,y,y,m,r,n);continue;case"xHeight":Xo(e,y,"x-height",m,r,n);continue;case"xlinkActuate":Xo(e,y,"xlink:actuate",m,r,n);continue;case"xlinkArcrole":Xo(e,y,"xlink:arcrole",m,r,n);continue;case"xlinkRole":Xo(e,y,"xlink:role",m,r,n);continue;case"xlinkShow":Xo(e,y,"xlink:show",m,r,n);continue;case"xlinkTitle":Xo(e,y,"xlink:title",m,r,n);continue;case"xlinkType":Xo(e,y,"xlink:type",m,r,n);continue;case"xmlBase":Xo(e,y,"xml:base",m,r,n);continue;case"xmlLang":Xo(e,y,"xml:lang",m,r,n);continue;case"xmlSpace":Xo(e,y,"xml:space",m,r,n);continue;case"inert":m!==""||am[y]||(am[y]=!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.",y)),OS(e,y,y,m,r,n);continue;default:if(!(2<y.length)||y[0]!=="o"&&y[0]!=="O"||y[1]!=="n"&&y[1]!=="N"){d=Bb(y),u=!1,o.context===Gr&&t!=="svg"&&t!=="math"?r.delete(d.toLowerCase()):(O=y.toLowerCase(),O=mp.hasOwnProperty(O)?mp[O]||null:null,O!==null&&O!==y&&(u=!0,r.delete(O)),r.delete(d));e:if(O=e,q=d,d=m,Ei(q))if(O.hasAttribute(q))O=O.getAttribute(q),et(d,q),d=O===""+d?d:O;else{switch(typeof d){case"function":case"symbol":break e;case"boolean":if(O=q.toLowerCase().slice(0,5),O!=="data-"&&O!=="aria-")break e}d=d===void 0?void 0:null}else d=void 0;u||za(y,d,m,n)}}}return 0<r.size&&a.suppressHydrationWarning!==!0&&rR(e,r,n),Object.keys(n).length===0?null:n}function sR(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 BS(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function uR(){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:r,initiatorType:u,duration:d}=n;if(r&&d&&BS(u)){u=0,d=n.responseEnd;for(o+=1;o<a.length;o++){var m=a[o],y=m.startTime;if(y>d)break;var O=m.transferSize,q=m.initiatorType;O&&BS(q)&&(m=m.responseEnd,u+=O*(m<d?1:(d-y)/(m-y)))}if(--o,t+=8*(r+u)/(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 Kf(e){return e.nodeType===9?e:e.ownerDocument}function zS(e){switch(e){case Ou:return ii;case pp:return nm;default:return Gr}}function US(e,t){if(e===Gr)switch(t){case"svg":return ii;case"math":return nm;default:return Gr}return e===ii&&t==="foreignObject"?Gr:e}function Qg(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 iR(){var e=window.event;if(e&&e.type==="popstate"){if(e===Dv)return!1;return Dv=e,!0}return Dv=null,!1}function uc(){var e=window.event;return e&&e!==nd?e.type:null}function ic(){var e=window.event;return e&&e!==nd?e.timeStamp:-1.1}function cR(e){setTimeout(function(){throw e})}function dR(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 fR(){}function pR(e,t,a,o){lR(e,t,a,o),e[lo]=o}function PS(e){Ni(e,"")}function mR(e,t,a){e.nodeValue=a}function _S(e){if(!e.__reactWarnedAboutChildrenConflict){var t=e[lo]||null;if(t!==null){var a=Ke(e);a!==null&&(typeof t.children==="string"||typeof t.children==="number"?(e.__reactWarnedAboutChildrenConflict=!0,V(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,V(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 fl(e){return e==="head"}function hR(e,t){e.removeChild(t)}function gR(e,t){(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e).removeChild(t)}function HS(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===od||a===om){if(o===0){e.removeChild(n),Iu(t);return}o--}else if(a===ad||a===Bl||a===Us||a===ui||a===zs)o++;else if(a===SM)cc(e.ownerDocument.documentElement);else if(a===CM){a=e.ownerDocument.head,cc(a);for(var r=a.firstChild;r;){var u=r.nextSibling,d=r.nodeName;r[yc]||d==="SCRIPT"||d==="STYLE"||d==="LINK"&&r.rel.toLowerCase()==="stylesheet"||a.removeChild(r),r=u}}else a===LM&&cc(e.ownerDocument.body);a=n}while(a);Iu(t)}function FS(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===od)if(e===0)break;else e--;else a!==ad&&a!==Bl&&a!==Us&&a!==ui||e++;a=o}while(a)}function yR(e){FS(e,!0)}function vR(e){e=e.style,typeof e.setProperty==="function"?e.setProperty("display","none","important"):e.display="none"}function bR(e){e.nodeValue=""}function xR(e){FS(e,!1)}function SR(e,t){t=t[wM],t=t!==void 0&&t!==null&&t.hasOwnProperty("display")?t.display:null,e.style.display=t==null||typeof t==="boolean"?"":(""+t).trim()}function LR(e,t){e.nodeValue=t}function Kg(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":Kg(a),fe(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function CR(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"){et(n.name,"name");var r=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===r)return e}else return e;else if(!e[yc])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(r=e.getAttribute("rel"),r==="stylesheet"&&e.hasAttribute("data-precedence"))break;else if(r!==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(r=e.getAttribute("src"),(r!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&r&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}if(e=Oo(e.nextSibling),e===null)break}return null}function wR(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=Oo(e.nextSibling),e===null)return null}return e}function GS(e,t){for(;e.nodeType!==8;){if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t)return null;if(e=Oo(e.nextSibling),e===null)return null}return e}function Zg(e){return e.data===Bl||e.data===Us}function Wg(e){return e.data===ui||e.data===Bl&&e.ownerDocument.readyState!==Ew}function kR(e,t){var a=e.ownerDocument;if(e.data===Us)e._reactRetry=t;else if(e.data!==Bl||a.readyState!==Ew)t();else{var o=function(){t(),a.removeEventListener("DOMContentLoaded",o)};a.addEventListener("DOMContentLoaded",o),e._reactRetry=o}}function Oo(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===ad||t===ui||t===Bl||t===Us||t===zs||t===Rv||t===Dw)break;if(t===od||t===om)return null}}return e}function VS(e){if(e.nodeType===1){for(var t=e.nodeName.toLowerCase(),a={},o=e.attributes,n=0;n<o.length;n++){var r=o[n];a[DS(r.name)]=r.name.toLowerCase()==="style"?Xg(e):r.value}return{type:t,props:a}}return e.nodeType===8?e.data===zs?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:e.nodeValue}function jS(e,t,a){return a===null||a[xM]!==!0?(e.nodeValue===t?e=null:(t=dl(t),e=dl(e.nodeValue)===t?null:e.nodeValue),e):null}function Jg(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a===od||a===om){if(t===0)return Oo(e.nextSibling);t--}else a!==ad&&a!==ui&&a!==Bl&&a!==Us&&a!==zs||t++}e=e.nextSibling}return null}function XS(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a===ad||a===ui||a===Bl||a===Us||a===zs){if(t===0)return e;t--}else a!==od&&a!==om||t++}e=e.previousSibling}return null}function TR(e){Iu(e)}function IR(e){Iu(e)}function RR(e){Iu(e)}function YS(e,t,a,o,n){switch(n&&ch(e,o.ancestorInfo),t=Kf(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 AR(e,t,a,o){if(!a[gl]&&Ke(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]);$a(a,e,t),a[Qa]=o,a[lo]=t}function cc(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);fe(e)}function Zf(e){return typeof e.getRootNode==="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}function $S(e,t,a){var o=ci;if(o&&typeof t==="string"&&t){var n=jo(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof a==="string"&&(n+='[crossorigin="'+a+'"]'),Uw.has(n)||(Uw.add(n),e={rel:e,crossOrigin:a,href:t},o.querySelector(n)===null&&(t=o.createElement("link"),$a(t,"link",e),qe(t),o.head.appendChild(t)))}}function QS(e,t,a,o){var n=(n=ml.current)?Zf(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=ku(a.href),t=It(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=ku(a.href);var r=It(n).hoistableStyles,u=r.get(e);if(!u&&(n=n.ownerDocument||n,u={type:"stylesheet",instance:null,count:0,state:{loading:_s,preload:null}},r.set(e,u),(r=n.querySelector(dc(e)))&&!r._p&&(u.instance=r,u.state.loading=rd|on),!nn.has(e))){var d={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy};nn.set(e,d),r||MR(n,e,d,u.state)}if(t&&o===null)throw a=`
|
|
177
177
|
|
|
178
|
-
- `+
|
|
179
|
-
+ `+
|
|
178
|
+
- `+Wf(t)+`
|
|
179
|
+
+ `+Wf(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 u}if(t&&o!==null)throw a=`
|
|
180
180
|
|
|
181
|
-
- `+
|
|
182
|
-
+ `+Zf(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=Tt(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 Zf(e){var t=0,a="<link";return typeof e.rel==="string"?(t++,a+=' rel="'+e.rel+'"'):pn.call(e,"rel")&&(t++,a+=' rel="'+(e.rel===null?"null":"invalid type "+typeof e.rel)+'"'),typeof e.href==="string"?(t++,a+=' href="'+e.href+'"'):pn.call(e,"href")&&(t++,a+=' href="'+(e.href===null?"null":"invalid type "+typeof e.href)+'"'),typeof e.precedence==="string"?(t++,a+=' precedence="'+e.precedence+'"'):pn.call(e,"precedence")&&(t++,a+=" precedence={"+(e.precedence===null?"null":"invalid type "+typeof e.precedence)+"}"),Object.getOwnPropertyNames(e).length>t&&(a+=" ..."),a+" />"}function Lu(e){return'href="'+Vo(e)+'"'}function uc(e){return'link[rel="stylesheet"]['+e+"]"}function QS(e){return mt({},e,{"data-precedence":e.precedence,precedence:null})}function RR(e,t,a,o){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?o.loading=ad:(t=e.createElement("link"),o.preload=t,t.addEventListener("load",function(){return o.loading|=ad}),t.addEventListener("error",function(){return o.loading|=Bw}),Xa(t,"link",a),qe(t),e.head.appendChild(t))}function Cu(e){return'[src="'+Vo(e)+'"]'}function ic(e){return"script[async]"+e}function KS(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var o=e.querySelector('style[data-href~="'+Vo(a.href)+'"]');if(o)return t.instance=o,qe(o),o;var n=mt({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return o=(e.ownerDocument||e).createElement("style"),qe(o),Xa(o,"style",n),Wf(o,a.precedence,e),t.instance=o;case"stylesheet":n=Lu(a.href);var r=e.querySelector(uc(n));if(r)return t.state.loading|=an,t.instance=r,qe(r),r;o=QS(a),(n=on.get(n))&&Jg(o,n),r=(e.ownerDocument||e).createElement("link"),qe(r);var s=r;return s._p=new Promise(function(d,m){s.onload=d,s.onerror=m}),Xa(r,"link",o),t.state.loading|=an,Wf(r,a.precedence,e),t.instance=r;case"script":if(r=Cu(a.src),n=e.querySelector(ic(r)))return t.instance=n,qe(n),n;if(o=a,n=on.get(r))o=mt({},a),ey(o,n);return e=e.ownerDocument||e,n=e.createElement("script"),qe(n),Xa(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&an)===Ps&&(o=t.instance,t.state.loading|=an,Wf(o,a.precedence,e));return t.instance}function Wf(e,t,a){for(var o=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=o.length?o[o.length-1]:null,r=n,s=0;s<o.length;s++){var d=o[s];if(d.dataset.precedence===t)r=d;else if(r!==n)break}r?r.parentNode.insertBefore(e,r.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Jg(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function ey(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}function ZS(e,t,a){if(nm===null){var o=new Map,n=nm=new Map;n.set(a,o)}else n=nm,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 r=a[n];if(!(r[mc]||r[Ya]||e==="link"&&r.getAttribute("rel")==="stylesheet")&&r.namespaceURI!==Mu){var s=r.getAttribute(t)||"";s=e+s;var d=o.get(s);d?d.push(r):o.set(s,[r])}}return o}function WS(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function AR(e,t,a){var o=!a.ancestorInfo.containerTagInScope;if(a.context===li||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,r=t.disabled;a=[],t.onLoad&&a.push("`onLoad`"),n&&a.push("`onError`"),r!=null&&a.push("`disabled`"),n=rR(a,"and"),n+=a.length===1?" prop":" props",r=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,r,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 JS(e){return e.type==="stylesheet"&&(e.state.loading&Nw)===Ps?!1:!0}function MR(e,t,a,o){if(a.type==="stylesheet"&&(typeof o.media!=="string"||matchMedia(o.media).matches!==!1)&&(a.state.loading&an)===Ps){if(a.instance===null){var n=Lu(o.href),r=t.querySelector(uc(n));if(r){t=r._p,t!==null&&typeof t==="object"&&typeof t.then==="function"&&(e.count++,e=Jf.bind(e),t.then(e,e)),a.state.loading|=an,a.instance=r,qe(r);return}r=t.ownerDocument||t,o=QS(o),(n=on.get(n))&&Jg(o,n),r=r.createElement("link"),qe(r);var s=r;s._p=new Promise(function(d,m){s.onload=d,s.onerror=m}),Xa(r,"link",o),a.instance=r}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&Nw)===Ps&&(e.count++,a=Jf.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}function DR(e,t){return e.stylesheets&&e.count===0&&ep(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var o=setTimeout(function(){if(e.stylesheets&&ep(e,e.stylesheets),e.unsuspend){var r=e.unsuspend;e.unsuspend=null,r()}},k2+t);0<e.imgBytes&&Ev===0&&(Ev=125*lR()*I2);var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ep(e,e.stylesheets),e.unsuspend)){var r=e.unsuspend;e.unsuspend=null,r()}},(e.imgBytes>Ev?50:T2)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(o),clearTimeout(n)}}:null}function Jf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ep(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}function ep(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,rm=new Map,t.forEach(ER,e),rm=null,Jf.call(e))}function ER(e,t){if(!(t.state.loading&an)){var a=rm.get(e);if(a)var o=a.get(Ov);else{a=new Map,rm.set(e,a);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),r=0;r<n.length;r++){var s=n[r];if(s.nodeName==="LINK"||s.getAttribute("media")!=="not all")a.set(s.dataset.precedence,s),o=s}o&&a.set(Ov,o)}n=t.instance,s=n.getAttribute("data-precedence"),r=a.get(s)||o,r===o&&a.set(Ov,n),a.set(s,n),this.count++,o=Jf.bind(this),n.addEventListener("load",o),n.addEventListener("error",o),r?r.parentNode.insertBefore(n,r.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=an}}function OR(e,t,a,o,n,r,s,d,m){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=Us,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=lu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=lu(0),this.hiddenUpdates=lu(null),this.identifierPrefix=o,this.onUncaughtError=n,this.onCaughtError=r,this.onRecoverableError=s,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=m,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 eL(e,t,a,o,n,r,s,d,m,y,O,q){return e=new OR(e,t,a,s,m,y,O,q,d),t=WA,r===!0&&(t|=eo|hn),t|=rt,r=w(3,null,null,t),e.current=r,r.stateNode=e,t=Rh(),ds(t),e.pooledCache=t,ds(t),r.memoizedState={element:o,isDehydrated:a,cache:t},Oh(r),e}function tL(e){if(!e)return bl;return e=bl,e}function ty(e,t,a,o,n,r){if(Ja&&typeof Ja.onScheduleFiberRoot==="function")try{Ja.onScheduleFiberRoot(Ru,o,a)}catch(s){Zn||(Zn=!0,console.error("React instrumentation encountered an error: %o",s))}n=tL(n),o.context===null?o.context=n:o.pendingContext=n,Kn&&Oo!==null&&!Hw&&(Hw=!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.
|
|
181
|
+
- `+Wf(t)+`
|
|
182
|
+
+ `+Wf(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=Tu(a),t=It(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 Wf(e){var t=0,a="<link";return typeof e.rel==="string"?(t++,a+=' rel="'+e.rel+'"'):mn.call(e,"rel")&&(t++,a+=' rel="'+(e.rel===null?"null":"invalid type "+typeof e.rel)+'"'),typeof e.href==="string"?(t++,a+=' href="'+e.href+'"'):mn.call(e,"href")&&(t++,a+=' href="'+(e.href===null?"null":"invalid type "+typeof e.href)+'"'),typeof e.precedence==="string"?(t++,a+=' precedence="'+e.precedence+'"'):mn.call(e,"precedence")&&(t++,a+=" precedence={"+(e.precedence===null?"null":"invalid type "+typeof e.precedence)+"}"),Object.getOwnPropertyNames(e).length>t&&(a+=" ..."),a+" />"}function ku(e){return'href="'+jo(e)+'"'}function dc(e){return'link[rel="stylesheet"]['+e+"]"}function KS(e){return mt({},e,{"data-precedence":e.precedence,precedence:null})}function MR(e,t,a,o){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?o.loading=rd:(t=e.createElement("link"),o.preload=t,t.addEventListener("load",function(){return o.loading|=rd}),t.addEventListener("error",function(){return o.loading|=Bw}),$a(t,"link",a),qe(t),e.head.appendChild(t))}function Tu(e){return'[src="'+jo(e)+'"]'}function fc(e){return"script[async]"+e}function ZS(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var o=e.querySelector('style[data-href~="'+jo(a.href)+'"]');if(o)return t.instance=o,qe(o),o;var n=mt({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return o=(e.ownerDocument||e).createElement("style"),qe(o),$a(o,"style",n),Jf(o,a.precedence,e),t.instance=o;case"stylesheet":n=ku(a.href);var r=e.querySelector(dc(n));if(r)return t.state.loading|=on,t.instance=r,qe(r),r;o=KS(a),(n=nn.get(n))&&ey(o,n),r=(e.ownerDocument||e).createElement("link"),qe(r);var u=r;return u._p=new Promise(function(d,m){u.onload=d,u.onerror=m}),$a(r,"link",o),t.state.loading|=on,Jf(r,a.precedence,e),t.instance=r;case"script":if(r=Tu(a.src),n=e.querySelector(fc(r)))return t.instance=n,qe(n),n;if(o=a,n=nn.get(r))o=mt({},a),ty(o,n);return e=e.ownerDocument||e,n=e.createElement("script"),qe(n),$a(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&on)===_s&&(o=t.instance,t.state.loading|=on,Jf(o,a.precedence,e));return t.instance}function Jf(e,t,a){for(var o=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=o.length?o[o.length-1]:null,r=n,u=0;u<o.length;u++){var d=o[u];if(d.dataset.precedence===t)r=d;else if(r!==n)break}r?r.parentNode.insertBefore(e,r.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function ey(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function ty(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}function WS(e,t,a){if(rm===null){var o=new Map,n=rm=new Map;n.set(a,o)}else n=rm,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 r=a[n];if(!(r[yc]||r[Qa]||e==="link"&&r.getAttribute("rel")==="stylesheet")&&r.namespaceURI!==Ou){var u=r.getAttribute(t)||"";u=e+u;var d=o.get(u);d?d.push(r):o.set(u,[r])}}return o}function JS(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function DR(e,t,a){var o=!a.ancestorInfo.containerTagInScope;if(a.context===ii||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,r=t.disabled;a=[],t.onLoad&&a.push("`onLoad`"),n&&a.push("`onError`"),r!=null&&a.push("`disabled`"),n=sR(a,"and"),n+=a.length===1?" prop":" props",r=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,r,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 eL(e){return e.type==="stylesheet"&&(e.state.loading&zw)===_s?!1:!0}function ER(e,t,a,o){if(a.type==="stylesheet"&&(typeof o.media!=="string"||matchMedia(o.media).matches!==!1)&&(a.state.loading&on)===_s){if(a.instance===null){var n=ku(o.href),r=t.querySelector(dc(n));if(r){t=r._p,t!==null&&typeof t==="object"&&typeof t.then==="function"&&(e.count++,e=ep.bind(e),t.then(e,e)),a.state.loading|=on,a.instance=r,qe(r);return}r=t.ownerDocument||t,o=KS(o),(n=nn.get(n))&&ey(o,n),r=r.createElement("link"),qe(r);var u=r;u._p=new Promise(function(d,m){u.onload=d,u.onerror=m}),$a(r,"link",o),a.instance=r}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&zw)===_s&&(e.count++,a=ep.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}function OR(e,t){return e.stylesheets&&e.count===0&&tp(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var o=setTimeout(function(){if(e.stylesheets&&tp(e,e.stylesheets),e.unsuspend){var r=e.unsuspend;e.unsuspend=null,r()}},IM+t);0<e.imgBytes&&Ov===0&&(Ov=125*uR()*AM);var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&tp(e,e.stylesheets),e.unsuspend)){var r=e.unsuspend;e.unsuspend=null,r()}},(e.imgBytes>Ov?50:RM)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(o),clearTimeout(n)}}:null}function ep(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)tp(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}function tp(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,lm=new Map,t.forEach(qR,e),lm=null,ep.call(e))}function qR(e,t){if(!(t.state.loading&on)){var a=lm.get(e);if(a)var o=a.get(qv);else{a=new Map,lm.set(e,a);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),r=0;r<n.length;r++){var u=n[r];if(u.nodeName==="LINK"||u.getAttribute("media")!=="not all")a.set(u.dataset.precedence,u),o=u}o&&a.set(qv,o)}n=t.instance,u=n.getAttribute("data-precedence"),r=a.get(u)||o,r===o&&a.set(qv,n),a.set(u,n),this.count++,o=ep.bind(this),n.addEventListener("load",o),n.addEventListener("error",o),r?r.parentNode.insertBefore(n,r.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=on}}function NR(e,t,a,o,n,r,u,d,m){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=Ps,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=iu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=iu(0),this.hiddenUpdates=iu(null),this.identifierPrefix=o,this.onUncaughtError=n,this.onCaughtError=r,this.onRecoverableError=u,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=m,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 tL(e,t,a,o,n,r,u,d,m,y,O,q){return e=new NR(e,t,a,u,m,y,O,q,d),t=eM,r===!0&&(t|=to|gn),t|=rt,r=w(3,null,null,t),e.current=r,r.stateNode=e,t=Ah(),fs(t),e.pooledCache=t,fs(t),r.memoizedState={element:o,isDehydrated:a,cache:t},qh(r),e}function aL(e){if(!e)return xl;return e=xl,e}function ay(e,t,a,o,n,r){if(eo&&typeof eo.onScheduleFiberRoot==="function")try{eo.onScheduleFiberRoot(Du,o,a)}catch(u){Jn||(Jn=!0,console.error("React instrumentation encountered an error: %o",u))}n=aL(n),o.context===null?o.context=n:o.pendingContext=n,Wn&&No!==null&&!Fw&&(Fw=!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.`,H(Oo)||"Unknown")),o=nl(t),o.payload={element:a},r=r===void 0?null:r,r!==null&&(typeof r!=="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",r),o.callback=r),a=rl(e,o,t),a!==null&&(Bn(t,"root.render()",null),sa(a,e,t),Gi(a,e,t))}function aL(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function ay(e,t){aL(e,t),(e=e.alternate)&&aL(e,t)}function oL(e){if(e.tag===13||e.tag===31){var t=Wa(e,67108864);t!==null&&sa(t,e,67108864),ay(e,67108864)}}function nL(e){if(e.tag===13||e.tag===31){var t=Mo(e);t=as(t);var a=Wa(e,t);a!==null&&sa(a,e,t),ay(e,t)}}function qR(){return Oo}function BR(e,t,a,o){var n=F.T;F.T=null;var r=Bt.p;try{Bt.p=qo,oy(e,t,a,o)}finally{Bt.p=r,F.T=n}}function NR(e,t,a,o){var n=F.T;F.T=null;var r=Bt.p;try{Bt.p=mn,oy(e,t,a,o)}finally{Bt.p=r,F.T=n}}function oy(e,t,a,o){if(sm){var n=ny(o);if(n===null)Fg(e,t,o,um,a),lL(e,o);else if(zR(n,e,t,a,o))o.stopPropagation();else if(lL(e,o),t&4&&-1<A2.indexOf(e)){for(;n!==null;){var r=Ke(n);if(r!==null)switch(r.tag){case 3:if(r=r.stateNode,r.current.memoizedState.isDehydrated){var s=Dn(r.pendingLanes);if(s!==0){var d=r;d.pendingLanes|=2;for(d.entangledLanes|=2;s;){var m=1<<31-no(s);d.entanglements[1]|=m,s&=~m}Xn(r),(kt&(Ea|Uo))===Pa&&(Vp=Na()+hw,oc(0,!1))}}break;case 31:case 13:d=Wa(r,2),d!==null&&sa(d,r,2),bu(),ay(r,2)}if(r=ny(o),r===null&&Fg(e,t,o,um,a),r===n)break;n=r}n!==null&&o.stopPropagation()}else Fg(e,t,o,null,a)}}function ny(e){return e=ch(e),ry(e)}function ry(e){if(um=null,e=we(e),e!==null){var t=N(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=j(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 um=e,null}function rL(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 qo;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 mn;case"message":switch(XR()){case vy:return qo;case by:return mn;case Iu:case YR:return Jn;case xy:return cp;default:return Jn}default:return Jn}}function lL(e,t){switch(e){case"focusin":case"focusout":Nl=null;break;case"dragenter":case"dragleave":zl=null;break;case"mouseover":case"mouseout":Ul=null;break;case"pointerover":case"pointerout":nd.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":rd.delete(t.pointerId)}}function cc(e,t,a,o,n,r){if(e===null||e.nativeEvent!==r)return e={blockedOn:t,domEventName:a,eventSystemFlags:o,nativeEvent:r,targetContainers:[n]},t!==null&&(t=Ke(t),t!==null&&oL(t)),e;return e.eventSystemFlags|=o,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e}function zR(e,t,a,o,n){switch(t){case"focusin":return Nl=cc(Nl,e,t,a,o,n),!0;case"dragenter":return zl=cc(zl,e,t,a,o,n),!0;case"mouseover":return Ul=cc(Ul,e,t,a,o,n),!0;case"pointerover":var r=n.pointerId;return nd.set(r,cc(nd.get(r)||null,e,t,a,o,n)),!0;case"gotpointercapture":return r=n.pointerId,rd.set(r,cc(rd.get(r)||null,e,t,a,o,n)),!0}return!1}function sL(e){var t=we(e.target);if(t!==null){var a=N(t);if(a!==null){if(t=a.tag,t===13){if(t=P(a),t!==null){e.blockedOn=t,le(e.priority,function(){nL(a)});return}}else if(t===31){if(t=j(a),t!==null){e.blockedOn=t,le(e.priority,function(){nL(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 tp(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=ny(e.nativeEvent);if(a===null){a=e.nativeEvent;var o=new a.constructor(a.type,a),n=o;hc!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),hc=n,a.target.dispatchEvent(o),hc===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."),hc=null}else return t=Ke(a),t!==null&&oL(t),e.blockedOn=a,!1;t.shift()}return!0}function uL(e,t,a){tp(e)&&a.delete(t)}function UR(){qv=!1,Nl!==null&&tp(Nl)&&(Nl=null),zl!==null&&tp(zl)&&(zl=null),Ul!==null&&tp(Ul)&&(Ul=null),nd.forEach(uL),rd.forEach(uL)}function ap(e,t){e.blockedOn===t&&(e.blockedOn=null,qv||(qv=!0,It.unstable_scheduleCallback(It.unstable_NormalPriority,UR)))}function iL(e){im!==e&&(im=e,It.unstable_scheduleCallback(It.unstable_NormalPriority,function(){im===e&&(im=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(ry(o||a)===null)continue;else break;var r=Ke(a);r!==null&&(e.splice(t,3),t-=3,a={pending:!0,data:n,method:a.method,action:o},Object.freeze(a),rg(r,a,o,n))}}))}function wu(e){function t(m){return ap(m,e)}Nl!==null&&ap(Nl,e),zl!==null&&ap(zl,e),Ul!==null&&ap(Ul,e),nd.forEach(t),rd.forEach(t);for(var a=0;a<Pl.length;a++){var o=Pl[a];o.blockedOn===e&&(o.blockedOn=null)}for(;0<Pl.length&&(a=Pl[0],a.blockedOn===null);)sL(a),a.blockedOn===null&&Pl.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(o=0;o<a.length;o+=3){var n=a[o],r=a[o+1],s=n[ro]||null;if(typeof r==="function")s||iL(a);else if(s){var d=null;if(r&&r.hasAttribute("formAction")){if(n=r,s=r[ro]||null)d=s.formAction;else if(ry(n)!==null)continue}else d=s.action;typeof d==="function"?a[o+1]=d:(a.splice(o,3),o-=3),iL(a)}}}function cL(){function e(r){r.canIntercept&&r.info==="react-transition"&&r.intercept({handler:function(){return new Promise(function(s){return n=s})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),o||setTimeout(a,20)}function a(){if(!o&&!navigation.transition){var r=navigation.currentEntry;r&&r.url!=null&&navigation.navigate(r.url,{state:r.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 ly(e){this._internalRoot=e}function op(e){this._internalRoot=e}function dL(e){e[hl]&&(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 mt=Object.assign,PR=Symbol.for("react.element"),$n=Symbol.for("react.transitional.element"),ku=Symbol.for("react.portal"),Tu=Symbol.for("react.fragment"),np=Symbol.for("react.strict_mode"),sy=Symbol.for("react.profiler"),uy=Symbol.for("react.consumer"),Qn=Symbol.for("react.context"),dc=Symbol.for("react.forward_ref"),iy=Symbol.for("react.suspense"),cy=Symbol.for("react.suspense_list"),rp=Symbol.for("react.memo"),Eo=Symbol.for("react.lazy"),dy=Symbol.for("react.activity"),_R=Symbol.for("react.memo_cache_sentinel"),fL=Symbol.iterator,HR=Symbol.for("react.client.reference"),Ma=Array.isArray,F=ii.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Bt=Nv.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,FR=Object.freeze({pending:!1,data:null,method:null,action:null}),fy=[],py=[],Ir=-1,fl=de(null),fc=de(null),pl=de(null),lp=de(null),pc=0,pL,mL,hL,gL,yL,vL,bL;W.__reactDisabledLog=!0;var my,xL,hy=!1,gy=new(typeof WeakMap==="function"?WeakMap:Map),Oo=null,Kn=!1,pn=Object.prototype.hasOwnProperty,yy=It.unstable_scheduleCallback,GR=It.unstable_cancelCallback,VR=It.unstable_shouldYield,jR=It.unstable_requestPaint,Na=It.unstable_now,XR=It.unstable_getCurrentPriorityLevel,vy=It.unstable_ImmediatePriority,by=It.unstable_UserBlockingPriority,Iu=It.unstable_NormalPriority,YR=It.unstable_LowPriority,xy=It.unstable_IdlePriority,$R=It.log,QR=It.unstable_setDisableYieldValue,Ru=null,Ja=null,Zn=!1,Wn=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",no=Math.clz32?Math.clz32:Yd,{log:KR,LN2:ZR}=Math,sp=256,up=262144,ip=4194304,qo=2,mn=8,Jn=32,cp=268435456,ml=Math.random().toString(36).slice(2),Ya="__reactFiber$"+ml,ro="__reactProps$"+ml,hl="__reactContainer$"+ml,Sy="__reactEvents$"+ml,WR="__reactListeners$"+ml,JR="__reactHandles$"+ml,SL="__reactResources$"+ml,mc="__reactMarker$"+ml,LL=new Set,vs={},Ly={},eA={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},tA=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]*$"),CL={},wL={},aA=/[\n"\\]/g,kL=!1,TL=!1,IL=!1,RL=!1,AL=!1,ML=!1,DL=["value","defaultValue"],EL=!1,OL=/["'&<>\n\t]|^\s|\s$/,oA="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(" "),qL="applet caption html table td th marquee object template foreignObject desc title".split(" "),nA=qL.concat(["button"]),rA="dd dt li option optgroup p rp rt".split(" "),BL={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},dp={},Cy={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"]},NL=/([A-Z])/g,zL=/^ms-/,lA=/^(?:webkit|moz|o)[A-Z]/,sA=/^-ms-/,uA=/-(.)/g,UL=/;\s*$/,Au={},wy={},PL=!1,_L=!1,HL=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(" ")),fp="http://www.w3.org/1998/Math/MathML",Mu="http://www.w3.org/2000/svg",iA=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"]]),pp={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"},FL={"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},Du={},cA=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]*$"),dA=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]*$"),GL=!1,lo={},VL=/^on./,fA=/^on[^A-Z]/,pA=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]*$"),mA=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]*$"),hA=/^[\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,hc=null,Eu=null,Ou=null,ky=!1,er=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ty=!1;if(er)try{var gc={};Object.defineProperty(gc,"passive",{get:function(){Ty=!0}}),window.addEventListener("test",gc,gc),window.removeEventListener("test",gc,gc)}catch(e){Ty=!1}var gl=null,Iy=null,mp=null,bs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hp=mo(bs),yc=mt({},bs,{view:0,detail:0}),gA=mo(yc),Ry,Ay,vc,gp=mt({},yc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:dh,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!==vc&&(vc&&e.type==="mousemove"?(Ry=e.screenX-vc.screenX,Ay=e.screenY-vc.screenY):Ay=Ry=0,vc=e),Ry},movementY:function(e){return"movementY"in e?e.movementY:Ay}}),jL=mo(gp),yA=mt({},gp,{dataTransfer:0}),vA=mo(yA),bA=mt({},yc,{relatedTarget:0}),My=mo(bA),xA=mt({},bs,{animationName:0,elapsedTime:0,pseudoElement:0}),SA=mo(xA),LA=mt({},bs,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),CA=mo(LA),wA=mt({},bs,{data:0}),XL=mo(wA),kA=XL,TA={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},IA={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"},RA={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},AA=mt({},yc,{key:function(e){if(e.key){var t=TA[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ef(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?IA[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:dh,charCode:function(e){return e.type==="keypress"?ef(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ef(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),MA=mo(AA),DA=mt({},gp,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),YL=mo(DA),EA=mt({},yc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:dh}),OA=mo(EA),qA=mt({},bs,{propertyName:0,elapsedTime:0,pseudoElement:0}),BA=mo(qA),NA=mt({},gp,{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}),zA=mo(NA),UA=mt({},bs,{newState:0,oldState:0}),PA=mo(UA),_A=[9,13,27,32],$L=229,Dy=er&&"CompositionEvent"in window,bc=null;er&&"documentMode"in document&&(bc=document.documentMode);var HA=er&&"TextEvent"in window&&!bc,QL=er&&(!Dy||bc&&8<bc&&11>=bc),KL=32,ZL=String.fromCharCode(KL),WL=!1,qu=!1,FA={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},xc=null,Sc=null,JL=!1;er&&(JL=iI("input")&&(!document.documentMode||9<document.documentMode));var so=typeof Object.is==="function"?Object.is:hI,GA=er&&"documentMode"in document&&11>=document.documentMode,Bu=null,Ey=null,Lc=null,Oy=!1,Nu={animationend:ns("Animation","AnimationEnd"),animationiteration:ns("Animation","AnimationIteration"),animationstart:ns("Animation","AnimationStart"),transitionrun:ns("Transition","TransitionRun"),transitionstart:ns("Transition","TransitionStart"),transitioncancel:ns("Transition","TransitionCancel"),transitionend:ns("Transition","TransitionEnd")},qy={},eC={};er&&(eC=document.createElement("div").style,("AnimationEvent"in window)||(delete Nu.animationend.animation,delete Nu.animationiteration.animation,delete Nu.animationstart.animation),("TransitionEvent"in window)||delete Nu.transitionend.transition);var tC=rs("animationend"),aC=rs("animationiteration"),oC=rs("animationstart"),VA=rs("transitionrun"),jA=rs("transitionstart"),XA=rs("transitioncancel"),nC=rs("transitionend"),rC=new Map,By="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(" ");By.push("scrollEnd");var lC=0;if(typeof performance==="object"&&typeof performance.now==="function")var YA=performance,sC=function(){return YA.now()};else{var $A=Date;sC=function(){return $A.now()}}var Ny=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)},QA="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.",yp=0,zy=1,Uy=2,Py=3,vp="– ",bp="+ ",uC=" ",Kt=typeof console<"u"&&typeof console.timeStamp==="function"&&typeof performance<"u"&&typeof performance.measure==="function",Xo="Components ⚛",ht="Scheduler ⚛",yt="Blocking",yl=!1,Rr={color:"primary",properties:null,tooltipText:"",track:Xo},vl={start:-0,end:-0,detail:{devtools:Rr}},KA=["Changed Props",""],iC="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",ZA=["Changed Props",iC],Cc=1,Ar=2,Yo=[],zu=0,_y=0,bl={};Object.freeze(bl);var $o=null,Uu=null,He=0,WA=1,rt=2,eo=8,hn=16,JA=32,cC=!1;try{var dC=Object.preventExtensions({})}catch(e){cC=!0}var Hy=new WeakMap,Pu=[],_u=0,xp=null,wc=0,Qo=[],Ko=0,xs=null,Mr=1,Dr="",$a=null,Zt=null,vt=!1,tr=!1,Bo=null,xl=null,Zo=!1,Fy=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."),Gy=de(null),Vy=de(null),fC={},Sp=null,Hu=null,Fu=!1,e2=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()})}},t2=It.unstable_scheduleCallback,a2=It.unstable_NormalPriority,La={$$typeof:Qn,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},Ca=It.unstable_now,Lp=console.createTask?console.createTask:function(){return null},kc=1,Cp=2,za=-0,Sl=-0,Er=-0,Or=null,uo=-1.1,Ss=-0,oa=-0,Be=-1.1,Pe=-1.1,aa=null,ua=!1,Ll=-0,ar=-1.1,Tc=null,Cl=0,jy=null,Xy=null,Ls=-1.1,Ic=null,Gu=-1.1,wp=-1.1,or=-0,qr=-1.1,Wo=-1.1,Yy=0,Rc=null,pC=null,mC=null,wl=-1.1,Cs=null,kl=-1.1,kp=-1.1,hC=-0,gC=-0,Tp=0,Br=null,yC=0,Ac=-1.1,Ip=!1,Rp=!1,Mc=null,$y=0,ws=0,Vu=null,vC=F.S;F.S=function(e,t){if(pw=Na(),typeof t==="object"&&t!==null&&typeof t.then==="function"){if(0>qr&&0>Wo){qr=Ca();var a=lc(),o=rc();if(a!==kl||o!==Cs)kl=-1.1;wl=a,Cs=o}LI(e,t)}vC!==null&&vC(e,t)};var ks=de(null),gn={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},Dc=[],Ec=[],Oc=[],qc=[],Bc=[],Nc=[],Ts=new Set;gn.recordUnsafeLifecycleWarnings=function(e,t){Ts.has(e.type)||(typeof t.componentWillMount==="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&Dc.push(e),e.mode&eo&&typeof t.UNSAFE_componentWillMount==="function"&&Ec.push(e),typeof t.componentWillReceiveProps==="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&Oc.push(e),e.mode&eo&&typeof t.UNSAFE_componentWillReceiveProps==="function"&&qc.push(e),typeof t.componentWillUpdate==="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&Bc.push(e),e.mode&eo&&typeof t.UNSAFE_componentWillUpdate==="function"&&Nc.push(e))},gn.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;0<Dc.length&&(Dc.forEach(function(d){e.add(H(d)||"Component"),Ts.add(d.type)}),Dc=[]);var t=new Set;0<Ec.length&&(Ec.forEach(function(d){t.add(H(d)||"Component"),Ts.add(d.type)}),Ec=[]);var a=new Set;0<Oc.length&&(Oc.forEach(function(d){a.add(H(d)||"Component"),Ts.add(d.type)}),Oc=[]);var o=new Set;0<qc.length&&(qc.forEach(function(d){o.add(H(d)||"Component"),Ts.add(d.type)}),qc=[]);var n=new Set;0<Bc.length&&(Bc.forEach(function(d){n.add(H(d)||"Component"),Ts.add(d.type)}),Bc=[]);var r=new Set;if(0<Nc.length&&(Nc.forEach(function(d){r.add(H(d)||"Component"),Ts.add(d.type)}),Nc=[]),0<t.size){var s=C(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.`,F(No)||"Unknown")),o=rl(t),o.payload={element:a},r=r===void 0?null:r,r!==null&&(typeof r!=="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",r),o.callback=r),a=ll(e,o,t),a!==null&&(zn(t,"root.render()",null),ia(a,e,t),Xi(a,e,t))}function oL(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function oy(e,t){oL(e,t),(e=e.alternate)&&oL(e,t)}function nL(e){if(e.tag===13||e.tag===31){var t=Ja(e,67108864);t!==null&&ia(t,e,67108864),oy(e,67108864)}}function rL(e){if(e.tag===13||e.tag===31){var t=Eo(e);t=os(t);var a=Ja(e,t);a!==null&&ia(a,e,t),oy(e,t)}}function BR(){return No}function zR(e,t,a,o){var n=G.T;G.T=null;var r=zt.p;try{zt.p=Bo,ny(e,t,a,o)}finally{zt.p=r,G.T=n}}function UR(e,t,a,o){var n=G.T;G.T=null;var r=zt.p;try{zt.p=hn,ny(e,t,a,o)}finally{zt.p=r,G.T=n}}function ny(e,t,a,o){if(um){var n=ry(o);if(n===null)Gg(e,t,o,im,a),sL(e,o);else if(PR(n,e,t,a,o))o.stopPropagation();else if(sL(e,o),t&4&&-1<DM.indexOf(e)){for(;n!==null;){var r=Ke(n);if(r!==null)switch(r.tag){case 3:if(r=r.stateNode,r.current.memoizedState.isDehydrated){var u=On(r.pendingLanes);if(u!==0){var d=r;d.pendingLanes|=2;for(d.entangledLanes|=2;u;){var m=1<<31-ro(u);d.entanglements[1]|=m,u&=~m}$n(r),(Tt&(qa|_o))===Ha&&(jp=Ua()+gw,lc(0,!1))}}break;case 31:case 13:d=Ja(r,2),d!==null&&ia(d,r,2),Lu(),oy(r,2)}if(r=ry(o),r===null&&Gg(e,t,o,im,a),r===n)break;n=r}n!==null&&o.stopPropagation()}else Gg(e,t,o,null,a)}}function ry(e){return e=dh(e),ly(e)}function ly(e){if(im=null,e=we(e),e!==null){var t=U(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=_(t),e!==null)return e;e=null}else if(a===31){if(e=X(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 im=e,null}function lL(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 Bo;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 hn;case"message":switch($R()){case by:return Bo;case xy:return hn;case Mu:case QR:return tr;case Sy:return dp;default:return tr}default:return tr}}function sL(e,t){switch(e){case"focusin":case"focusout":zl=null;break;case"dragenter":case"dragleave":Ul=null;break;case"mouseover":case"mouseout":Pl=null;break;case"pointerover":case"pointerout":sd.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ud.delete(t.pointerId)}}function pc(e,t,a,o,n,r){if(e===null||e.nativeEvent!==r)return e={blockedOn:t,domEventName:a,eventSystemFlags:o,nativeEvent:r,targetContainers:[n]},t!==null&&(t=Ke(t),t!==null&&nL(t)),e;return e.eventSystemFlags|=o,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e}function PR(e,t,a,o,n){switch(t){case"focusin":return zl=pc(zl,e,t,a,o,n),!0;case"dragenter":return Ul=pc(Ul,e,t,a,o,n),!0;case"mouseover":return Pl=pc(Pl,e,t,a,o,n),!0;case"pointerover":var r=n.pointerId;return sd.set(r,pc(sd.get(r)||null,e,t,a,o,n)),!0;case"gotpointercapture":return r=n.pointerId,ud.set(r,pc(ud.get(r)||null,e,t,a,o,n)),!0}return!1}function uL(e){var t=we(e.target);if(t!==null){var a=U(t);if(a!==null){if(t=a.tag,t===13){if(t=_(a),t!==null){e.blockedOn=t,le(e.priority,function(){rL(a)});return}}else if(t===31){if(t=X(a),t!==null){e.blockedOn=t,le(e.priority,function(){rL(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 ap(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=ry(e.nativeEvent);if(a===null){a=e.nativeEvent;var o=new a.constructor(a.type,a),n=o;vc!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),vc=n,a.target.dispatchEvent(o),vc===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."),vc=null}else return t=Ke(a),t!==null&&nL(t),e.blockedOn=a,!1;t.shift()}return!0}function iL(e,t,a){ap(e)&&a.delete(t)}function _R(){Nv=!1,zl!==null&&ap(zl)&&(zl=null),Ul!==null&&ap(Ul)&&(Ul=null),Pl!==null&&ap(Pl)&&(Pl=null),sd.forEach(iL),ud.forEach(iL)}function op(e,t){e.blockedOn===t&&(e.blockedOn=null,Nv||(Nv=!0,Rt.unstable_scheduleCallback(Rt.unstable_NormalPriority,_R)))}function cL(e){cm!==e&&(cm=e,Rt.unstable_scheduleCallback(Rt.unstable_NormalPriority,function(){cm===e&&(cm=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(ly(o||a)===null)continue;else break;var r=Ke(a);r!==null&&(e.splice(t,3),t-=3,a={pending:!0,data:n,method:a.method,action:o},Object.freeze(a),lg(r,a,o,n))}}))}function Iu(e){function t(m){return op(m,e)}zl!==null&&op(zl,e),Ul!==null&&op(Ul,e),Pl!==null&&op(Pl,e),sd.forEach(t),ud.forEach(t);for(var a=0;a<_l.length;a++){var o=_l[a];o.blockedOn===e&&(o.blockedOn=null)}for(;0<_l.length&&(a=_l[0],a.blockedOn===null);)uL(a),a.blockedOn===null&&_l.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(o=0;o<a.length;o+=3){var n=a[o],r=a[o+1],u=n[lo]||null;if(typeof r==="function")u||cL(a);else if(u){var d=null;if(r&&r.hasAttribute("formAction")){if(n=r,u=r[lo]||null)d=u.formAction;else if(ly(n)!==null)continue}else d=u.action;typeof d==="function"?a[o+1]=d:(a.splice(o,3),o-=3),cL(a)}}}function dL(){function e(r){r.canIntercept&&r.info==="react-transition"&&r.intercept({handler:function(){return new Promise(function(u){return n=u})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),o||setTimeout(a,20)}function a(){if(!o&&!navigation.transition){var r=navigation.currentEntry;r&&r.url!=null&&navigation.navigate(r.url,{state:r.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 sy(e){this._internalRoot=e}function np(e){this._internalRoot=e}function fL(e){e[gl]&&(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 mt=Object.assign,HR=Symbol.for("react.element"),Kn=Symbol.for("react.transitional.element"),Ru=Symbol.for("react.portal"),Au=Symbol.for("react.fragment"),rp=Symbol.for("react.strict_mode"),uy=Symbol.for("react.profiler"),iy=Symbol.for("react.consumer"),Zn=Symbol.for("react.context"),mc=Symbol.for("react.forward_ref"),cy=Symbol.for("react.suspense"),dy=Symbol.for("react.suspense_list"),lp=Symbol.for("react.memo"),qo=Symbol.for("react.lazy"),fy=Symbol.for("react.activity"),FR=Symbol.for("react.memo_cache_sentinel"),pL=Symbol.iterator,GR=Symbol.for("react.client.reference"),Ea=Array.isArray,G=fi.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,zt=zv.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,VR=Object.freeze({pending:!1,data:null,method:null,action:null}),py=[],my=[],Ar=-1,pl=de(null),hc=de(null),ml=de(null),sp=de(null),gc=0,mL,hL,gL,yL,vL,bL,xL;W.__reactDisabledLog=!0;var hy,SL,gy=!1,yy=new(typeof WeakMap==="function"?WeakMap:Map),No=null,Wn=!1,mn=Object.prototype.hasOwnProperty,vy=Rt.unstable_scheduleCallback,jR=Rt.unstable_cancelCallback,XR=Rt.unstable_shouldYield,YR=Rt.unstable_requestPaint,Ua=Rt.unstable_now,$R=Rt.unstable_getCurrentPriorityLevel,by=Rt.unstable_ImmediatePriority,xy=Rt.unstable_UserBlockingPriority,Mu=Rt.unstable_NormalPriority,QR=Rt.unstable_LowPriority,Sy=Rt.unstable_IdlePriority,KR=Rt.log,ZR=Rt.unstable_setDisableYieldValue,Du=null,eo=null,Jn=!1,er=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",ro=Math.clz32?Math.clz32:$d,{log:WR,LN2:JR}=Math,up=256,ip=262144,cp=4194304,Bo=2,hn=8,tr=32,dp=268435456,hl=Math.random().toString(36).slice(2),Qa="__reactFiber$"+hl,lo="__reactProps$"+hl,gl="__reactContainer$"+hl,Ly="__reactEvents$"+hl,eA="__reactListeners$"+hl,tA="__reactHandles$"+hl,LL="__reactResources$"+hl,yc="__reactMarker$"+hl,CL=new Set,bs={},Cy={},aA={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},oA=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]*$"),wL={},kL={},nA=/[\n"\\]/g,TL=!1,IL=!1,RL=!1,AL=!1,ML=!1,DL=!1,EL=["value","defaultValue"],OL=!1,qL=/["'&<>\n\t]|^\s|\s$/,rA="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(" "),NL="applet caption html table td th marquee object template foreignObject desc title".split(" "),lA=NL.concat(["button"]),sA="dd dt li option optgroup p rp rt".split(" "),BL={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},fp={},wy={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"]},zL=/([A-Z])/g,UL=/^ms-/,uA=/^(?:webkit|moz|o)[A-Z]/,iA=/^-ms-/,cA=/-(.)/g,PL=/;\s*$/,Eu={},ky={},_L=!1,HL=!1,FL=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(" ")),pp="http://www.w3.org/1998/Math/MathML",Ou="http://www.w3.org/2000/svg",dA=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"]]),mp={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"},GL={"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},qu={},fA=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]*$"),pA=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]*$"),VL=!1,so={},jL=/^on./,mA=/^on[^A-Z]/,hA=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]*$"),gA=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]*$"),yA=/^[\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,vc=null,Nu=null,Bu=null,Ty=!1,ar=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Iy=!1;if(ar)try{var bc={};Object.defineProperty(bc,"passive",{get:function(){Iy=!0}}),window.addEventListener("test",bc,bc),window.removeEventListener("test",bc,bc)}catch(e){Iy=!1}var yl=null,Ry=null,hp=null,xs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},gp=go(xs),xc=mt({},xs,{view:0,detail:0}),vA=go(xc),Ay,My,Sc,yp=mt({},xc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:fh,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!==Sc&&(Sc&&e.type==="mousemove"?(Ay=e.screenX-Sc.screenX,My=e.screenY-Sc.screenY):My=Ay=0,Sc=e),Ay},movementY:function(e){return"movementY"in e?e.movementY:My}}),XL=go(yp),bA=mt({},yp,{dataTransfer:0}),xA=go(bA),SA=mt({},xc,{relatedTarget:0}),Dy=go(SA),LA=mt({},xs,{animationName:0,elapsedTime:0,pseudoElement:0}),CA=go(LA),wA=mt({},xs,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),kA=go(wA),TA=mt({},xs,{data:0}),YL=go(TA),IA=YL,RA={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},AA={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"},MA={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},DA=mt({},xc,{key:function(e){if(e.key){var t=RA[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=tf(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?AA[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:fh,charCode:function(e){return e.type==="keypress"?tf(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?tf(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),EA=go(DA),OA=mt({},yp,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),$L=go(OA),qA=mt({},xc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:fh}),NA=go(qA),BA=mt({},xs,{propertyName:0,elapsedTime:0,pseudoElement:0}),zA=go(BA),UA=mt({},yp,{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}),PA=go(UA),_A=mt({},xs,{newState:0,oldState:0}),HA=go(_A),FA=[9,13,27,32],QL=229,Ey=ar&&"CompositionEvent"in window,Lc=null;ar&&"documentMode"in document&&(Lc=document.documentMode);var GA=ar&&"TextEvent"in window&&!Lc,KL=ar&&(!Ey||Lc&&8<Lc&&11>=Lc),ZL=32,WL=String.fromCharCode(ZL),JL=!1,zu=!1,VA={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},Cc=null,wc=null,eC=!1;ar&&(eC=dI("input")&&(!document.documentMode||9<document.documentMode));var uo=typeof Object.is==="function"?Object.is:yI,jA=ar&&"documentMode"in document&&11>=document.documentMode,Uu=null,Oy=null,kc=null,qy=!1,Pu={animationend:rs("Animation","AnimationEnd"),animationiteration:rs("Animation","AnimationIteration"),animationstart:rs("Animation","AnimationStart"),transitionrun:rs("Transition","TransitionRun"),transitionstart:rs("Transition","TransitionStart"),transitioncancel:rs("Transition","TransitionCancel"),transitionend:rs("Transition","TransitionEnd")},Ny={},tC={};ar&&(tC=document.createElement("div").style,("AnimationEvent"in window)||(delete Pu.animationend.animation,delete Pu.animationiteration.animation,delete Pu.animationstart.animation),("TransitionEvent"in window)||delete Pu.transitionend.transition);var aC=ls("animationend"),oC=ls("animationiteration"),nC=ls("animationstart"),XA=ls("transitionrun"),YA=ls("transitionstart"),$A=ls("transitioncancel"),rC=ls("transitionend"),lC=new Map,By="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(" ");By.push("scrollEnd");var sC=0;if(typeof performance==="object"&&typeof performance.now==="function")var QA=performance,uC=function(){return QA.now()};else{var KA=Date;uC=function(){return KA.now()}}var zy=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)},ZA="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.",vp=0,Uy=1,Py=2,_y=3,bp="– ",xp="+ ",iC=" ",Kt=typeof console<"u"&&typeof console.timeStamp==="function"&&typeof performance<"u"&&typeof performance.measure==="function",Yo="Components ⚛",ht="Scheduler ⚛",yt="Blocking",vl=!1,Mr={color:"primary",properties:null,tooltipText:"",track:Yo},bl={start:-0,end:-0,detail:{devtools:Mr}},WA=["Changed Props",""],cC="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",JA=["Changed Props",cC],Tc=1,Dr=2,$o=[],_u=0,Hy=0,xl={};Object.freeze(xl);var Qo=null,Hu=null,Ge=0,eM=1,rt=2,to=8,gn=16,tM=32,dC=!1;try{var fC=Object.preventExtensions({})}catch(e){dC=!0}var Fy=new WeakMap,Fu=[],Gu=0,Sp=null,Ic=0,Ko=[],Zo=0,Ss=null,Er=1,Or="",Ka=null,Zt=null,bt=!1,or=!1,zo=null,Sl=null,Wo=!1,Gy=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."),Vy=de(null),jy=de(null),pC={},Lp=null,Vu=null,ju=!1,aM=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()})}},oM=Rt.unstable_scheduleCallback,nM=Rt.unstable_NormalPriority,Ca={$$typeof:Zn,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},wa=Rt.unstable_now,Cp=console.createTask?console.createTask:function(){return null},Rc=1,wp=2,Pa=-0,Ll=-0,qr=-0,Nr=null,io=-1.1,Ls=-0,ra=-0,Ne=-1.1,_e=-1.1,aa=null,ca=!1,Cl=-0,nr=-1.1,Ac=null,wl=0,Xy=null,Yy=null,Cs=-1.1,Mc=null,Xu=-1.1,kp=-1.1,rr=-0,Br=-1.1,Jo=-1.1,$y=0,Dc=null,mC=null,hC=null,kl=-1.1,ws=null,Tl=-1.1,Tp=-1.1,gC=-0,yC=-0,Ip=0,zr=null,vC=0,Ec=-1.1,Rp=!1,Ap=!1,Oc=null,Qy=0,ks=0,Yu=null,bC=G.S;G.S=function(e,t){if(mw=Ua(),typeof t==="object"&&t!==null&&typeof t.then==="function"){if(0>Br&&0>Jo){Br=wa();var a=ic(),o=uc();if(a!==Tl||o!==ws)Tl=-1.1;kl=a,ws=o}wI(e,t)}bC!==null&&bC(e,t)};var Ts=de(null),yn={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},qc=[],Nc=[],Bc=[],zc=[],Uc=[],Pc=[],Is=new Set;yn.recordUnsafeLifecycleWarnings=function(e,t){Is.has(e.type)||(typeof t.componentWillMount==="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&qc.push(e),e.mode&to&&typeof t.UNSAFE_componentWillMount==="function"&&Nc.push(e),typeof t.componentWillReceiveProps==="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&Bc.push(e),e.mode&to&&typeof t.UNSAFE_componentWillReceiveProps==="function"&&zc.push(e),typeof t.componentWillUpdate==="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&Uc.push(e),e.mode&to&&typeof t.UNSAFE_componentWillUpdate==="function"&&Pc.push(e))},yn.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;0<qc.length&&(qc.forEach(function(d){e.add(F(d)||"Component"),Is.add(d.type)}),qc=[]);var t=new Set;0<Nc.length&&(Nc.forEach(function(d){t.add(F(d)||"Component"),Is.add(d.type)}),Nc=[]);var a=new Set;0<Bc.length&&(Bc.forEach(function(d){a.add(F(d)||"Component"),Is.add(d.type)}),Bc=[]);var o=new Set;0<zc.length&&(zc.forEach(function(d){o.add(F(d)||"Component"),Is.add(d.type)}),zc=[]);var n=new Set;0<Uc.length&&(Uc.forEach(function(d){n.add(F(d)||"Component"),Is.add(d.type)}),Uc=[]);var r=new Set;if(0<Pc.length&&(Pc.forEach(function(d){r.add(F(d)||"Component"),Is.add(d.type)}),Pc=[]),0<t.size){var u=C(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
|
|
|
188
|
-
Please update the following components: %s`,
|
|
188
|
+
Please update the following components: %s`,u)}0<o.size&&(u=C(o),console.error(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
189
189
|
|
|
190
190
|
* Move data fetching code or side effects to componentDidUpdate.
|
|
191
191
|
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
|
|
192
192
|
|
|
193
|
-
Please update the following components: %s`,
|
|
193
|
+
Please update the following components: %s`,u)),0<r.size&&(u=C(r),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
194
194
|
|
|
195
195
|
* Move data fetching code or side effects to componentDidUpdate.
|
|
196
196
|
|
|
197
|
-
Please update the following components: %s`,
|
|
197
|
+
Please update the following components: %s`,u)),0<e.size&&(u=C(e),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
198
198
|
|
|
199
199
|
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
200
200
|
* Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
201
201
|
|
|
202
|
-
Please update the following components: %s`,
|
|
202
|
+
Please update the following components: %s`,u)),0<a.size&&(u=C(a),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
203
203
|
|
|
204
204
|
* Move data fetching code or side effects to componentDidUpdate.
|
|
205
205
|
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
|
|
206
206
|
* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
207
207
|
|
|
208
|
-
Please update the following components: %s`,
|
|
208
|
+
Please update the following components: %s`,u)),0<n.size&&(u=C(n),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
209
209
|
|
|
210
210
|
* Move data fetching code or side effects to componentDidUpdate.
|
|
211
211
|
* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
212
212
|
|
|
213
|
-
Please update the following components: %s`,
|
|
213
|
+
Please update the following components: %s`,u))};var Mp=new Map,xC=new Set;yn.recordLegacyContextWarning=function(e,t){var a=null;for(var o=e;o!==null;)o.mode&to&&(a=o),o=o.return;a===null?console.error("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue."):!xC.has(e.type)&&(o=Mp.get(a),e.type.contextTypes!=null||e.type.childContextTypes!=null||t!==null&&typeof t.getChildContext==="function")&&(o===void 0&&(o=[],Mp.set(a,o)),o.push(e))},yn.flushLegacyContextWarning=function(){Mp.forEach(function(e){if(e.length!==0){var t=e[0],a=new Set;e.forEach(function(n){a.add(F(n)||"Component"),xC.add(n.type)});var o=C(a);V(t,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
|
|
214
214
|
|
|
215
215
|
The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
|
|
216
216
|
|
|
217
217
|
Please update the following components: %s
|
|
218
218
|
|
|
219
|
-
Learn more about this warning here: https://react.dev/link/legacy-context`,o)})}})},
|
|
219
|
+
Learn more about this warning here: https://react.dev/link/legacy-context`,o)})}})},yn.discardPendingWarnings=function(){qc=[],Nc=[],Bc=[],zc=[],Uc=[],Pc=[],Mp=new Map};var SC={react_stack_bottom_frame:function(e,t,a){var o=Wn;Wn=!0;try{return e(t,a)}finally{Wn=o}}},Ky=SC.react_stack_bottom_frame.bind(SC),LC={react_stack_bottom_frame:function(e){var t=Wn;Wn=!0;try{return e.render()}finally{Wn=t}}},CC=LC.react_stack_bottom_frame.bind(LC),wC={react_stack_bottom_frame:function(e,t){try{t.componentDidMount()}catch(a){Bt(e,e.return,a)}}},Zy=wC.react_stack_bottom_frame.bind(wC),kC={react_stack_bottom_frame:function(e,t,a,o,n){try{t.componentDidUpdate(a,o,n)}catch(r){Bt(e,e.return,r)}}},TC=kC.react_stack_bottom_frame.bind(kC),IC={react_stack_bottom_frame:function(e,t){var a=t.stack;e.componentDidCatch(t.value,{componentStack:a!==null?a:""})}},rM=IC.react_stack_bottom_frame.bind(IC),RC={react_stack_bottom_frame:function(e,t,a){try{a.componentWillUnmount()}catch(o){Bt(e,t,o)}}},AC=RC.react_stack_bottom_frame.bind(RC),MC={react_stack_bottom_frame:function(e){var t=e.create;return e=e.inst,t=t(),e.destroy=t}},lM=MC.react_stack_bottom_frame.bind(MC),DC={react_stack_bottom_frame:function(e,t,a){try{a()}catch(o){Bt(e,t,o)}}},sM=DC.react_stack_bottom_frame.bind(DC),EC={react_stack_bottom_frame:function(e){var t=e._init;return t(e._payload)}},uM=EC.react_stack_bottom_frame.bind(EC),$u=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),Wy=Error("Suspense 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."),Dp=Error("Suspense Exception: This is not a real error! It's an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary."),Ep={then:function(){console.error('Internal React error: A listener was unexpectedly attached to a "noop" thenable. This is a bug in React. Please file an issue.')}},Rs=null,_c=!1,Qu=null,Hc=0,lt=null,Jy,OC=Jy=!1,qC={},NC={},BC={};h=function(e,t,a){if(a!==null&&typeof a==="object"&&a._store&&(!a._store.validated&&a.key==null||a._store.validated===2)){if(typeof a._store!=="object")throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");a._store.validated=1;var o=F(e),n=o||"null";if(!qC[n]){qC[n]=!0,a=a._owner,e=e._debugOwner;var r="";e&&typeof e.tag==="number"&&(n=F(e))&&(r=`
|
|
220
220
|
|
|
221
221
|
Check the render method of \``+n+"`."),r||o&&(r=`
|
|
222
222
|
|
|
223
|
-
Check the top-level render call using <`+o+">.");var s="";a!=null&&e!==a&&(o=null,typeof a.tag==="number"?o=H(a):typeof a.name==="string"&&(o=a.name),o&&(s=" It was passed a child from "+o+".")),G(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.',r,s)})}}};var Rs=Ix(!0),NC=Ix(!1),zC=0,UC=1,PC=2,Jy=3,Tl=!1,_C=!1,ev=null,tv=!1,Yu=de(null),Ep=de(0),No=de(null),Jo=null,$u=1,Pc=2,ya=de(0),Op=0,en=1,io=2,zo=4,co=8,Qu,HC=new Set,FC=new Set,av=new Set,GC=new Set,Nr=0,je=null,Vt=null,wa=null,qp=!1,Ku=!1,As=!1,Bp=0,_c=0,zr=null,s2=0,u2=25,_=null,tn=null,Ur=-1,Hc=!1,Fc={readContext:ta,use:ul,useCallback:ma,useContext:ma,useEffect:ma,useImperativeHandle:ma,useLayoutEffect:ma,useInsertionEffect:ma,useMemo:ma,useReducer:ma,useRef:ma,useState:ma,useDebugValue:ma,useDeferredValue:ma,useTransition:ma,useSyncExternalStore:ma,useId:ma,useHostTransitionStatus:ma,useFormState:ma,useActionState:ma,useOptimistic:ma,useMemoCache:ma,useCacheRefresh:ma};Fc.useEffectEvent=ma;var ov=null,VC=null,nv=null,jC=null,nr=null,yn=null,Np=null;ov={readContext:function(e){return ta(e)},use:ul,useCallback:function(e,t){return _="useCallback",pt(),fu(t),tg(e,t)},useContext:function(e){return _="useContext",pt(),ta(e)},useEffect:function(e,t){return _="useEffect",pt(),fu(t),Af(e,t)},useImperativeHandle:function(e,t,a){return _="useImperativeHandle",pt(),fu(a),eg(e,t,a)},useInsertionEffect:function(e,t){_="useInsertionEffect",pt(),fu(t),ps(4,io,e,t)},useLayoutEffect:function(e,t){return _="useLayoutEffect",pt(),fu(t),Jh(e,t)},useMemo:function(e,t){_="useMemo",pt(),fu(t);var a=F.H;F.H=nr;try{return ag(e,t)}finally{F.H=a}},useReducer:function(e,t,a){_="useReducer",pt();var o=F.H;F.H=nr;try{return Vh(e,t,a)}finally{F.H=o}},useRef:function(e){return _="useRef",pt(),Zh(e)},useState:function(e){_="useState",pt();var t=F.H;F.H=nr;try{return $h(e)}finally{F.H=t}},useDebugValue:function(){_="useDebugValue",pt()},useDeferredValue:function(e,t){return _="useDeferredValue",pt(),og(e,t)},useTransition:function(){return _="useTransition",pt(),lg()},useSyncExternalStore:function(e,t,a){return _="useSyncExternalStore",pt(),Xh(e,t,a)},useId:function(){return _="useId",pt(),sg()},useFormState:function(e,t){return _="useFormState",pt(),wf(),mu(e,t)},useActionState:function(e,t){return _="useActionState",pt(),mu(e,t)},useOptimistic:function(e){return _="useOptimistic",pt(),Qh(e)},useHostTransitionStatus:ms,useMemoCache:fs,useCacheRefresh:function(){return _="useCacheRefresh",pt(),ug()},useEffectEvent:function(e){return _="useEffectEvent",pt(),Wh(e)}},VC={readContext:function(e){return ta(e)},use:ul,useCallback:function(e,t){return _="useCallback",re(),tg(e,t)},useContext:function(e){return _="useContext",re(),ta(e)},useEffect:function(e,t){return _="useEffect",re(),Af(e,t)},useImperativeHandle:function(e,t,a){return _="useImperativeHandle",re(),eg(e,t,a)},useInsertionEffect:function(e,t){_="useInsertionEffect",re(),ps(4,io,e,t)},useLayoutEffect:function(e,t){return _="useLayoutEffect",re(),Jh(e,t)},useMemo:function(e,t){_="useMemo",re();var a=F.H;F.H=nr;try{return ag(e,t)}finally{F.H=a}},useReducer:function(e,t,a){_="useReducer",re();var o=F.H;F.H=nr;try{return Vh(e,t,a)}finally{F.H=o}},useRef:function(e){return _="useRef",re(),Zh(e)},useState:function(e){_="useState",re();var t=F.H;F.H=nr;try{return $h(e)}finally{F.H=t}},useDebugValue:function(){_="useDebugValue",re()},useDeferredValue:function(e,t){return _="useDeferredValue",re(),og(e,t)},useTransition:function(){return _="useTransition",re(),lg()},useSyncExternalStore:function(e,t,a){return _="useSyncExternalStore",re(),Xh(e,t,a)},useId:function(){return _="useId",re(),sg()},useActionState:function(e,t){return _="useActionState",re(),mu(e,t)},useFormState:function(e,t){return _="useFormState",re(),wf(),mu(e,t)},useOptimistic:function(e){return _="useOptimistic",re(),Qh(e)},useHostTransitionStatus:ms,useMemoCache:fs,useCacheRefresh:function(){return _="useCacheRefresh",re(),ug()},useEffectEvent:function(e){return _="useEffectEvent",re(),Wh(e)}},nv={readContext:function(e){return ta(e)},use:ul,useCallback:function(e,t){return _="useCallback",re(),Ef(e,t)},useContext:function(e){return _="useContext",re(),ta(e)},useEffect:function(e,t){_="useEffect",re(),ho(2048,co,e,t)},useImperativeHandle:function(e,t,a){return _="useImperativeHandle",re(),Df(e,t,a)},useInsertionEffect:function(e,t){return _="useInsertionEffect",re(),ho(4,io,e,t)},useLayoutEffect:function(e,t){return _="useLayoutEffect",re(),ho(4,zo,e,t)},useMemo:function(e,t){_="useMemo",re();var a=F.H;F.H=yn;try{return Of(e,t)}finally{F.H=a}},useReducer:function(e,t,a){_="useReducer",re();var o=F.H;F.H=yn;try{return pu(e,t,a)}finally{F.H=o}},useRef:function(){return _="useRef",re(),Pt().memoizedState},useState:function(){_="useState",re();var e=F.H;F.H=yn;try{return pu(dn)}finally{F.H=e}},useDebugValue:function(){_="useDebugValue",re()},useDeferredValue:function(e,t){return _="useDeferredValue",re(),Qx(e,t)},useTransition:function(){return _="useTransition",re(),t0()},useSyncExternalStore:function(e,t,a){return _="useSyncExternalStore",re(),Tf(e,t,a)},useId:function(){return _="useId",re(),Pt().memoizedState},useFormState:function(e){return _="useFormState",re(),wf(),If(e)},useActionState:function(e){return _="useActionState",re(),If(e)},useOptimistic:function(e,t){return _="useOptimistic",re(),Px(e,t)},useHostTransitionStatus:ms,useMemoCache:fs,useCacheRefresh:function(){return _="useCacheRefresh",re(),Pt().memoizedState},useEffectEvent:function(e){return _="useEffectEvent",re(),Mf(e)}},jC={readContext:function(e){return ta(e)},use:ul,useCallback:function(e,t){return _="useCallback",re(),Ef(e,t)},useContext:function(e){return _="useContext",re(),ta(e)},useEffect:function(e,t){_="useEffect",re(),ho(2048,co,e,t)},useImperativeHandle:function(e,t,a){return _="useImperativeHandle",re(),Df(e,t,a)},useInsertionEffect:function(e,t){return _="useInsertionEffect",re(),ho(4,io,e,t)},useLayoutEffect:function(e,t){return _="useLayoutEffect",re(),ho(4,zo,e,t)},useMemo:function(e,t){_="useMemo",re();var a=F.H;F.H=Np;try{return Of(e,t)}finally{F.H=a}},useReducer:function(e,t,a){_="useReducer",re();var o=F.H;F.H=Np;try{return Yi(e,t,a)}finally{F.H=o}},useRef:function(){return _="useRef",re(),Pt().memoizedState},useState:function(){_="useState",re();var e=F.H;F.H=Np;try{return Yi(dn)}finally{F.H=e}},useDebugValue:function(){_="useDebugValue",re()},useDeferredValue:function(e,t){return _="useDeferredValue",re(),Kx(e,t)},useTransition:function(){return _="useTransition",re(),a0()},useSyncExternalStore:function(e,t,a){return _="useSyncExternalStore",re(),Tf(e,t,a)},useId:function(){return _="useId",re(),Pt().memoizedState},useFormState:function(e){return _="useFormState",re(),wf(),Rf(e)},useActionState:function(e){return _="useActionState",re(),Rf(e)},useOptimistic:function(e,t){return _="useOptimistic",re(),Hx(e,t)},useHostTransitionStatus:ms,useMemoCache:fs,useCacheRefresh:function(){return _="useCacheRefresh",re(),Pt().memoizedState},useEffectEvent:function(e){return _="useEffectEvent",re(),Mf(e)}},nr={readContext:function(e){return b(),ta(e)},use:function(e){return x(),ul(e)},useCallback:function(e,t){return _="useCallback",x(),pt(),tg(e,t)},useContext:function(e){return _="useContext",x(),pt(),ta(e)},useEffect:function(e,t){return _="useEffect",x(),pt(),Af(e,t)},useImperativeHandle:function(e,t,a){return _="useImperativeHandle",x(),pt(),eg(e,t,a)},useInsertionEffect:function(e,t){_="useInsertionEffect",x(),pt(),ps(4,io,e,t)},useLayoutEffect:function(e,t){return _="useLayoutEffect",x(),pt(),Jh(e,t)},useMemo:function(e,t){_="useMemo",x(),pt();var a=F.H;F.H=nr;try{return ag(e,t)}finally{F.H=a}},useReducer:function(e,t,a){_="useReducer",x(),pt();var o=F.H;F.H=nr;try{return Vh(e,t,a)}finally{F.H=o}},useRef:function(e){return _="useRef",x(),pt(),Zh(e)},useState:function(e){_="useState",x(),pt();var t=F.H;F.H=nr;try{return $h(e)}finally{F.H=t}},useDebugValue:function(){_="useDebugValue",x(),pt()},useDeferredValue:function(e,t){return _="useDeferredValue",x(),pt(),og(e,t)},useTransition:function(){return _="useTransition",x(),pt(),lg()},useSyncExternalStore:function(e,t,a){return _="useSyncExternalStore",x(),pt(),Xh(e,t,a)},useId:function(){return _="useId",x(),pt(),sg()},useFormState:function(e,t){return _="useFormState",x(),pt(),mu(e,t)},useActionState:function(e,t){return _="useActionState",x(),pt(),mu(e,t)},useOptimistic:function(e){return _="useOptimistic",x(),pt(),Qh(e)},useMemoCache:function(e){return x(),fs(e)},useHostTransitionStatus:ms,useCacheRefresh:function(){return _="useCacheRefresh",pt(),ug()},useEffectEvent:function(e){return _="useEffectEvent",x(),pt(),Wh(e)}},yn={readContext:function(e){return b(),ta(e)},use:function(e){return x(),ul(e)},useCallback:function(e,t){return _="useCallback",x(),re(),Ef(e,t)},useContext:function(e){return _="useContext",x(),re(),ta(e)},useEffect:function(e,t){_="useEffect",x(),re(),ho(2048,co,e,t)},useImperativeHandle:function(e,t,a){return _="useImperativeHandle",x(),re(),Df(e,t,a)},useInsertionEffect:function(e,t){return _="useInsertionEffect",x(),re(),ho(4,io,e,t)},useLayoutEffect:function(e,t){return _="useLayoutEffect",x(),re(),ho(4,zo,e,t)},useMemo:function(e,t){_="useMemo",x(),re();var a=F.H;F.H=yn;try{return Of(e,t)}finally{F.H=a}},useReducer:function(e,t,a){_="useReducer",x(),re();var o=F.H;F.H=yn;try{return pu(e,t,a)}finally{F.H=o}},useRef:function(){return _="useRef",x(),re(),Pt().memoizedState},useState:function(){_="useState",x(),re();var e=F.H;F.H=yn;try{return pu(dn)}finally{F.H=e}},useDebugValue:function(){_="useDebugValue",x(),re()},useDeferredValue:function(e,t){return _="useDeferredValue",x(),re(),Qx(e,t)},useTransition:function(){return _="useTransition",x(),re(),t0()},useSyncExternalStore:function(e,t,a){return _="useSyncExternalStore",x(),re(),Tf(e,t,a)},useId:function(){return _="useId",x(),re(),Pt().memoizedState},useFormState:function(e){return _="useFormState",x(),re(),If(e)},useActionState:function(e){return _="useActionState",x(),re(),If(e)},useOptimistic:function(e,t){return _="useOptimistic",x(),re(),Px(e,t)},useMemoCache:function(e){return x(),fs(e)},useHostTransitionStatus:ms,useCacheRefresh:function(){return _="useCacheRefresh",re(),Pt().memoizedState},useEffectEvent:function(e){return _="useEffectEvent",x(),re(),Mf(e)}},Np={readContext:function(e){return b(),ta(e)},use:function(e){return x(),ul(e)},useCallback:function(e,t){return _="useCallback",x(),re(),Ef(e,t)},useContext:function(e){return _="useContext",x(),re(),ta(e)},useEffect:function(e,t){_="useEffect",x(),re(),ho(2048,co,e,t)},useImperativeHandle:function(e,t,a){return _="useImperativeHandle",x(),re(),Df(e,t,a)},useInsertionEffect:function(e,t){return _="useInsertionEffect",x(),re(),ho(4,io,e,t)},useLayoutEffect:function(e,t){return _="useLayoutEffect",x(),re(),ho(4,zo,e,t)},useMemo:function(e,t){_="useMemo",x(),re();var a=F.H;F.H=yn;try{return Of(e,t)}finally{F.H=a}},useReducer:function(e,t,a){_="useReducer",x(),re();var o=F.H;F.H=yn;try{return Yi(e,t,a)}finally{F.H=o}},useRef:function(){return _="useRef",x(),re(),Pt().memoizedState},useState:function(){_="useState",x(),re();var e=F.H;F.H=yn;try{return Yi(dn)}finally{F.H=e}},useDebugValue:function(){_="useDebugValue",x(),re()},useDeferredValue:function(e,t){return _="useDeferredValue",x(),re(),Kx(e,t)},useTransition:function(){return _="useTransition",x(),re(),a0()},useSyncExternalStore:function(e,t,a){return _="useSyncExternalStore",x(),re(),Tf(e,t,a)},useId:function(){return _="useId",x(),re(),Pt().memoizedState},useFormState:function(e){return _="useFormState",x(),re(),Rf(e)},useActionState:function(e){return _="useActionState",x(),re(),Rf(e)},useOptimistic:function(e,t){return _="useOptimistic",x(),re(),Hx(e,t)},useMemoCache:function(e){return x(),fs(e)},useHostTransitionStatus:ms,useCacheRefresh:function(){return _="useCacheRefresh",re(),Pt().memoizedState},useEffectEvent:function(e){return _="useEffectEvent",x(),re(),Mf(e)}};var XC={},YC=new Set,$C=new Set,QC=new Set,KC=new Set,ZC=new Set,WC=new Set,JC=new Set,ew=new Set,tw=new Set,aw=new Set;Object.freeze(XC);var rv={enqueueSetState:function(e,t,a){e=e._reactInternals;var o=Mo(e),n=nl(o);n.payload=t,a!==void 0&&a!==null&&(cg(a),n.callback=a),t=rl(e,n,o),t!==null&&(Bn(o,"this.setState()",e),sa(t,e,o),Gi(t,e,o))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var o=Mo(e),n=nl(o);n.tag=UC,n.payload=t,a!==void 0&&a!==null&&(cg(a),n.callback=a),t=rl(e,n,o),t!==null&&(Bn(o,"this.replaceState()",e),sa(t,e,o),Gi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Mo(e),o=nl(a);o.tag=PC,t!==void 0&&t!==null&&(cg(t),o.callback=t),t=rl(e,o,a),t!==null&&(Bn(a,"this.forceUpdate()",e),sa(t,e,a),Gi(t,e,a))}},Zu=null,lv=null,sv=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,ow={},nw={},rw={},lw={},Wu=!1,sw={},zp={},uv={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},uw=!1,iw=null;iw=new Set;var Pr=!1,Ta=!1,iv=!1,cw=typeof WeakSet==="function"?WeakSet:Set,Ua=null,Ju=null,ei=null,Ia=null,vo=!1,vn=null,Da=!1,Gc=8192,i2={getCacheForType:function(e){var t=ta(La),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return ta(La).controller.signal},getOwner:function(){return Oo}};if(typeof Symbol==="function"&&Symbol.for){var Vc=Symbol.for;Vc("selector.component"),Vc("selector.has_pseudo_class"),Vc("selector.role"),Vc("selector.test_id"),Vc("selector.text")}var c2=[],d2=typeof WeakMap==="function"?WeakMap:Map,Pa=0,Ea=2,Uo=4,_r=0,jc=1,Ms=2,Up=3,Il=4,Pp=6,dw=5,kt=Pa,jt=null,ut=null,st=0,bo=0,_p=1,Ds=2,Xc=3,fw=4,cv=5,Yc=6,Hp=7,dv=8,Es=9,_t=bo,Po=null,Rl=!1,ti=!1,fv=!1,rr=0,na=_r,Al=0,Ml=0,pv=0,xo=0,Os=0,$c=null,fo=null,Fp=!1,Gp=0,pw=0,mw=300,Vp=1/0,hw=500,Qc=null,ha=null,Dl=null,jp=0,mv=1,hv=2,gw=3,El=0,yw=1,vw=2,bw=3,xw=4,Xp=5,Ra=0,Ol=null,ai=null,bn=0,gv=0,yv=-0,vv=null,Sw=null,Lw=null,xn=jp,Cw=null,f2=50,Kc=0,bv=null,xv=!1,Yp=!1,p2=50,qs=0,Zc=null,oi=!1,$p=null,ww=!1,kw=new Set,m2={},Qp=null,ni=null,Sv=!1,Lv=!1,Kp=!1,Cv=!1,ql=0,wv={};(function(){for(var e=0;e<By.length;e++){var t=By[e],a=t.toLowerCase();t=t[0].toUpperCase()+t.slice(1),cn(a,"on"+t)}cn(tC,"onAnimationEnd"),cn(aC,"onAnimationIteration"),cn(oC,"onAnimationStart"),cn("dblclick","onDoubleClick"),cn("focusin","onFocus"),cn("focusout","onBlur"),cn(VA,"onTransitionRun"),cn(jA,"onTransitionStart"),cn(XA,"onTransitionCancel"),cn(nC,"onTransitionEnd")})(),Co("onMouseEnter",["mouseout","mouseover"]),Co("onMouseLeave",["mouseout","mouseover"]),Co("onPointerEnter",["pointerout","pointerover"]),Co("onPointerLeave",["pointerout","pointerover"]),Za("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Za("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Za("onBeforeInput",["compositionend","keypress","textInput","paste"]),Za("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Za("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Za("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Wc="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(" "),kv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Wc)),Zp="_reactListening"+Math.random().toString(36).slice(2),Tw=!1,Iw=!1,Wp=!1,Rw=!1,Jp=!1,em=!1,Aw=!1,tm={},h2=/\r\n?/g,g2=/\u0000|\uFFFD/g,Bs="http://www.w3.org/1999/xlink",Tv="http://www.w3.org/XML/1998/namespace",y2="javascript:throw new Error('React form unexpectedly submitted.')",v2="suppressHydrationWarning",Ns="&",am="/&",Jc="$",ed="/$",Bl="$?",zs="$~",ri="$!",b2="html",x2="body",S2="head",Iv="F!",Mw="F",Dw="loading",L2="style",Hr=0,li=1,om=2,Rv=null,Av=null,Ew={dialog:!0,webview:!0},Mv=null,td=void 0,Ow=typeof setTimeout==="function"?setTimeout:void 0,C2=typeof clearTimeout==="function"?clearTimeout:void 0,Us=-1,qw=typeof Promise==="function"?Promise:void 0,w2=typeof queueMicrotask==="function"?queueMicrotask:typeof qw<"u"?function(e){return qw.resolve(null).then(e).catch(uR)}:Ow,Dv=null,Ps=0,ad=1,Bw=2,Nw=3,an=4,on=new Map,zw=new Set,Fr=Bt.d;Bt.d={f:function(){var e=Fr.f(),t=bu();return e||t},r:function(e){var t=Ke(e);t!==null&&t.tag===5&&t.type==="form"?e0(t):Fr.r(e)},D:function(e){Fr.D(e),YS("dns-prefetch",e,null)},C:function(e,t){Fr.C(e,t),YS("preconnect",e,t)},L:function(e,t,a){Fr.L(e,t,a);var o=si;if(o&&e&&t){var n='link[rel="preload"][as="'+Vo(t)+'"]';t==="image"?a&&a.imageSrcSet?(n+='[imagesrcset="'+Vo(a.imageSrcSet)+'"]',typeof a.imageSizes==="string"&&(n+='[imagesizes="'+Vo(a.imageSizes)+'"]')):n+='[href="'+Vo(e)+'"]':n+='[href="'+Vo(e)+'"]';var r=n;switch(t){case"style":r=Lu(e);break;case"script":r=Cu(e)}on.has(r)||(e=mt({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),on.set(r,e),o.querySelector(n)!==null||t==="style"&&o.querySelector(uc(r))||t==="script"&&o.querySelector(ic(r))||(t=o.createElement("link"),Xa(t,"link",e),qe(t),o.head.appendChild(t)))}},m:function(e,t){Fr.m(e,t);var a=si;if(a&&e){var o=t&&typeof t.as==="string"?t.as:"script",n='link[rel="modulepreload"][as="'+Vo(o)+'"][href="'+Vo(e)+'"]',r=n;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":r=Cu(e)}if(!on.has(r)&&(e=mt({rel:"modulepreload",href:e},t),on.set(r,e),a.querySelector(n)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(ic(r)))return}o=a.createElement("link"),Xa(o,"link",e),qe(o),a.head.appendChild(o)}}},X:function(e,t){Fr.X(e,t);var a=si;if(a&&e){var o=Tt(a).hoistableScripts,n=Cu(e),r=o.get(n);r||(r=a.querySelector(ic(n)),r||(e=mt({src:e,async:!0},t),(t=on.get(n))&&ey(e,t),r=a.createElement("script"),qe(r),Xa(r,"link",e),a.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},o.set(n,r))}},S:function(e,t,a){Fr.S(e,t,a);var o=si;if(o&&e){var n=Tt(o).hoistableStyles,r=Lu(e);t=t||"default";var s=n.get(r);if(!s){var d={loading:Ps,preload:null};if(s=o.querySelector(uc(r)))d.loading=ad|an;else{e=mt({rel:"stylesheet",href:e,"data-precedence":t},a),(a=on.get(r))&&Jg(e,a);var m=s=o.createElement("link");qe(m),Xa(m,"link",e),m._p=new Promise(function(y,O){m.onload=y,m.onerror=O}),m.addEventListener("load",function(){d.loading|=ad}),m.addEventListener("error",function(){d.loading|=Bw}),d.loading|=an,Wf(s,t,o)}s={type:"stylesheet",instance:s,count:1,state:d},n.set(r,s)}}},M:function(e,t){Fr.M(e,t);var a=si;if(a&&e){var o=Tt(a).hoistableScripts,n=Cu(e),r=o.get(n);r||(r=a.querySelector(ic(n)),r||(e=mt({src:e,async:!0,type:"module"},t),(t=on.get(n))&&ey(e,t),r=a.createElement("script"),qe(r),Xa(r,"link",e),a.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},o.set(n,r))}}};var si=typeof document>"u"?null:document,nm=null,k2=60000,T2=800,I2=500,Ev=0,Ov=null,rm=null,_s=FR,od={$$typeof:Qn,Provider:null,Consumer:null,_currentValue:_s,_currentValue2:_s,_threadCount:0},Uw="%c%s%c",Pw="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",_w="",lm=" ",R2=Function.prototype.bind,Hw=!1,Fw=null,Gw=null,Vw=null,jw=null,Xw=null,Yw=null,$w=null,Qw=null,Kw=null,Zw=null;Fw=function(e,t,a,o){t=l(e,t),t!==null&&(a=i(t.memoizedState,a,0,o),t.memoizedState=a,t.baseState=a,e.memoizedProps=mt({},e.memoizedProps),a=Wa(e,2),a!==null&&sa(a,e,2))},Gw=function(e,t,a){t=l(e,t),t!==null&&(a=p(t.memoizedState,a,0),t.memoizedState=a,t.baseState=a,e.memoizedProps=mt({},e.memoizedProps),a=Wa(e,2),a!==null&&sa(a,e,2))},Vw=function(e,t,a,o){t=l(e,t),t!==null&&(a=c(t.memoizedState,a,o),t.memoizedState=a,t.baseState=a,e.memoizedProps=mt({},e.memoizedProps),a=Wa(e,2),a!==null&&sa(a,e,2))},jw=function(e,t,a){e.pendingProps=i(e.memoizedProps,t,0,a),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=Wa(e,2),t!==null&&sa(t,e,2)},Xw=function(e,t){e.pendingProps=p(e.memoizedProps,t,0),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=Wa(e,2),t!==null&&sa(t,e,2)},Yw=function(e,t,a){e.pendingProps=c(e.memoizedProps,t,a),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=Wa(e,2),t!==null&&sa(t,e,2)},$w=function(e){var t=Wa(e,2);t!==null&&sa(t,e,2)},Qw=function(e){var t=ru(),a=Wa(e,t);a!==null&&sa(a,e,t)},Kw=function(e){h=e},Zw=function(e){S=e};var sm=!0,um=null,qv=!1,Nl=null,zl=null,Ul=null,nd=new Map,rd=new Map,Pl=[],A2="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(" "),im=null;if(op.prototype.render=ly.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()."):M(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=Mo(o);ty(o,n,a,t,null,null)},op.prototype.unmount=ly.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;(kt&(Ea|Uo))!==Pa&&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."),ty(e.current,2,null,e,null,null),bu(),t[hl]=null}},op.prototype.unstable_scheduleHydration=function(e){if(e){var t=B();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Pl.length&&t!==0&&t<Pl[a].priority;a++);Pl.splice(a,0,e),a===0&&sL(e)}},function(){var e=ii.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 u="";a!=null&&e!==a&&(o=null,typeof a.tag==="number"?o=F(a):typeof a.name==="string"&&(o=a.name),o&&(u=" It was passed a child from "+o+".")),V(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.',r,u)})}}};var As=Rx(!0),zC=Rx(!1),UC=0,PC=1,_C=2,ev=3,Il=!1,HC=!1,tv=null,av=!1,Ku=de(null),Op=de(0),Uo=de(null),en=null,Zu=1,Fc=2,va=de(0),qp=0,tn=1,co=2,Po=4,fo=8,Wu,FC=new Set,GC=new Set,ov=new Set,VC=new Set,Ur=0,Xe=null,jt=null,ka=null,Np=!1,Ju=!1,Ms=!1,Bp=0,Gc=0,Pr=null,iM=0,cM=25,H=null,an=null,_r=-1,Vc=!1,jc={readContext:ta,use:il,useCallback:ha,useContext:ha,useEffect:ha,useImperativeHandle:ha,useLayoutEffect:ha,useInsertionEffect:ha,useMemo:ha,useReducer:ha,useRef:ha,useState:ha,useDebugValue:ha,useDeferredValue:ha,useTransition:ha,useSyncExternalStore:ha,useId:ha,useHostTransitionStatus:ha,useFormState:ha,useActionState:ha,useOptimistic:ha,useMemoCache:ha,useCacheRefresh:ha};jc.useEffectEvent=ha;var nv=null,jC=null,rv=null,XC=null,lr=null,vn=null,zp=null;nv={readContext:function(e){return ta(e)},use:il,useCallback:function(e,t){return H="useCallback",pt(),hu(t),ag(e,t)},useContext:function(e){return H="useContext",pt(),ta(e)},useEffect:function(e,t){return H="useEffect",pt(),hu(t),Mf(e,t)},useImperativeHandle:function(e,t,a){return H="useImperativeHandle",pt(),hu(a),tg(e,t,a)},useInsertionEffect:function(e,t){H="useInsertionEffect",pt(),hu(t),ms(4,co,e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",pt(),hu(t),eg(e,t)},useMemo:function(e,t){H="useMemo",pt(),hu(t);var a=G.H;G.H=lr;try{return og(e,t)}finally{G.H=a}},useReducer:function(e,t,a){H="useReducer",pt();var o=G.H;G.H=lr;try{return jh(e,t,a)}finally{G.H=o}},useRef:function(e){return H="useRef",pt(),Wh(e)},useState:function(e){H="useState",pt();var t=G.H;G.H=lr;try{return Qh(e)}finally{G.H=t}},useDebugValue:function(){H="useDebugValue",pt()},useDeferredValue:function(e,t){return H="useDeferredValue",pt(),ng(e,t)},useTransition:function(){return H="useTransition",pt(),sg()},useSyncExternalStore:function(e,t,a){return H="useSyncExternalStore",pt(),Yh(e,t,a)},useId:function(){return H="useId",pt(),ug()},useFormState:function(e,t){return H="useFormState",pt(),kf(),yu(e,t)},useActionState:function(e,t){return H="useActionState",pt(),yu(e,t)},useOptimistic:function(e){return H="useOptimistic",pt(),Kh(e)},useHostTransitionStatus:hs,useMemoCache:ps,useCacheRefresh:function(){return H="useCacheRefresh",pt(),ig()},useEffectEvent:function(e){return H="useEffectEvent",pt(),Jh(e)}},jC={readContext:function(e){return ta(e)},use:il,useCallback:function(e,t){return H="useCallback",re(),ag(e,t)},useContext:function(e){return H="useContext",re(),ta(e)},useEffect:function(e,t){return H="useEffect",re(),Mf(e,t)},useImperativeHandle:function(e,t,a){return H="useImperativeHandle",re(),tg(e,t,a)},useInsertionEffect:function(e,t){H="useInsertionEffect",re(),ms(4,co,e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",re(),eg(e,t)},useMemo:function(e,t){H="useMemo",re();var a=G.H;G.H=lr;try{return og(e,t)}finally{G.H=a}},useReducer:function(e,t,a){H="useReducer",re();var o=G.H;G.H=lr;try{return jh(e,t,a)}finally{G.H=o}},useRef:function(e){return H="useRef",re(),Wh(e)},useState:function(e){H="useState",re();var t=G.H;G.H=lr;try{return Qh(e)}finally{G.H=t}},useDebugValue:function(){H="useDebugValue",re()},useDeferredValue:function(e,t){return H="useDeferredValue",re(),ng(e,t)},useTransition:function(){return H="useTransition",re(),sg()},useSyncExternalStore:function(e,t,a){return H="useSyncExternalStore",re(),Yh(e,t,a)},useId:function(){return H="useId",re(),ug()},useActionState:function(e,t){return H="useActionState",re(),yu(e,t)},useFormState:function(e,t){return H="useFormState",re(),kf(),yu(e,t)},useOptimistic:function(e){return H="useOptimistic",re(),Kh(e)},useHostTransitionStatus:hs,useMemoCache:ps,useCacheRefresh:function(){return H="useCacheRefresh",re(),ig()},useEffectEvent:function(e){return H="useEffectEvent",re(),Jh(e)}},rv={readContext:function(e){return ta(e)},use:il,useCallback:function(e,t){return H="useCallback",re(),Of(e,t)},useContext:function(e){return H="useContext",re(),ta(e)},useEffect:function(e,t){H="useEffect",re(),yo(2048,fo,e,t)},useImperativeHandle:function(e,t,a){return H="useImperativeHandle",re(),Ef(e,t,a)},useInsertionEffect:function(e,t){return H="useInsertionEffect",re(),yo(4,co,e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",re(),yo(4,Po,e,t)},useMemo:function(e,t){H="useMemo",re();var a=G.H;G.H=vn;try{return qf(e,t)}finally{G.H=a}},useReducer:function(e,t,a){H="useReducer",re();var o=G.H;G.H=vn;try{return gu(e,t,a)}finally{G.H=o}},useRef:function(){return H="useRef",re(),Pt().memoizedState},useState:function(){H="useState",re();var e=G.H;G.H=vn;try{return gu(fn)}finally{G.H=e}},useDebugValue:function(){H="useDebugValue",re()},useDeferredValue:function(e,t){return H="useDeferredValue",re(),Kx(e,t)},useTransition:function(){return H="useTransition",re(),a0()},useSyncExternalStore:function(e,t,a){return H="useSyncExternalStore",re(),If(e,t,a)},useId:function(){return H="useId",re(),Pt().memoizedState},useFormState:function(e){return H="useFormState",re(),kf(),Rf(e)},useActionState:function(e){return H="useActionState",re(),Rf(e)},useOptimistic:function(e,t){return H="useOptimistic",re(),_x(e,t)},useHostTransitionStatus:hs,useMemoCache:ps,useCacheRefresh:function(){return H="useCacheRefresh",re(),Pt().memoizedState},useEffectEvent:function(e){return H="useEffectEvent",re(),Df(e)}},XC={readContext:function(e){return ta(e)},use:il,useCallback:function(e,t){return H="useCallback",re(),Of(e,t)},useContext:function(e){return H="useContext",re(),ta(e)},useEffect:function(e,t){H="useEffect",re(),yo(2048,fo,e,t)},useImperativeHandle:function(e,t,a){return H="useImperativeHandle",re(),Ef(e,t,a)},useInsertionEffect:function(e,t){return H="useInsertionEffect",re(),yo(4,co,e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",re(),yo(4,Po,e,t)},useMemo:function(e,t){H="useMemo",re();var a=G.H;G.H=zp;try{return qf(e,t)}finally{G.H=a}},useReducer:function(e,t,a){H="useReducer",re();var o=G.H;G.H=zp;try{return Ki(e,t,a)}finally{G.H=o}},useRef:function(){return H="useRef",re(),Pt().memoizedState},useState:function(){H="useState",re();var e=G.H;G.H=zp;try{return Ki(fn)}finally{G.H=e}},useDebugValue:function(){H="useDebugValue",re()},useDeferredValue:function(e,t){return H="useDeferredValue",re(),Zx(e,t)},useTransition:function(){return H="useTransition",re(),o0()},useSyncExternalStore:function(e,t,a){return H="useSyncExternalStore",re(),If(e,t,a)},useId:function(){return H="useId",re(),Pt().memoizedState},useFormState:function(e){return H="useFormState",re(),kf(),Af(e)},useActionState:function(e){return H="useActionState",re(),Af(e)},useOptimistic:function(e,t){return H="useOptimistic",re(),Fx(e,t)},useHostTransitionStatus:hs,useMemoCache:ps,useCacheRefresh:function(){return H="useCacheRefresh",re(),Pt().memoizedState},useEffectEvent:function(e){return H="useEffectEvent",re(),Df(e)}},lr={readContext:function(e){return v(),ta(e)},use:function(e){return S(),il(e)},useCallback:function(e,t){return H="useCallback",S(),pt(),ag(e,t)},useContext:function(e){return H="useContext",S(),pt(),ta(e)},useEffect:function(e,t){return H="useEffect",S(),pt(),Mf(e,t)},useImperativeHandle:function(e,t,a){return H="useImperativeHandle",S(),pt(),tg(e,t,a)},useInsertionEffect:function(e,t){H="useInsertionEffect",S(),pt(),ms(4,co,e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",S(),pt(),eg(e,t)},useMemo:function(e,t){H="useMemo",S(),pt();var a=G.H;G.H=lr;try{return og(e,t)}finally{G.H=a}},useReducer:function(e,t,a){H="useReducer",S(),pt();var o=G.H;G.H=lr;try{return jh(e,t,a)}finally{G.H=o}},useRef:function(e){return H="useRef",S(),pt(),Wh(e)},useState:function(e){H="useState",S(),pt();var t=G.H;G.H=lr;try{return Qh(e)}finally{G.H=t}},useDebugValue:function(){H="useDebugValue",S(),pt()},useDeferredValue:function(e,t){return H="useDeferredValue",S(),pt(),ng(e,t)},useTransition:function(){return H="useTransition",S(),pt(),sg()},useSyncExternalStore:function(e,t,a){return H="useSyncExternalStore",S(),pt(),Yh(e,t,a)},useId:function(){return H="useId",S(),pt(),ug()},useFormState:function(e,t){return H="useFormState",S(),pt(),yu(e,t)},useActionState:function(e,t){return H="useActionState",S(),pt(),yu(e,t)},useOptimistic:function(e){return H="useOptimistic",S(),pt(),Kh(e)},useMemoCache:function(e){return S(),ps(e)},useHostTransitionStatus:hs,useCacheRefresh:function(){return H="useCacheRefresh",pt(),ig()},useEffectEvent:function(e){return H="useEffectEvent",S(),pt(),Jh(e)}},vn={readContext:function(e){return v(),ta(e)},use:function(e){return S(),il(e)},useCallback:function(e,t){return H="useCallback",S(),re(),Of(e,t)},useContext:function(e){return H="useContext",S(),re(),ta(e)},useEffect:function(e,t){H="useEffect",S(),re(),yo(2048,fo,e,t)},useImperativeHandle:function(e,t,a){return H="useImperativeHandle",S(),re(),Ef(e,t,a)},useInsertionEffect:function(e,t){return H="useInsertionEffect",S(),re(),yo(4,co,e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",S(),re(),yo(4,Po,e,t)},useMemo:function(e,t){H="useMemo",S(),re();var a=G.H;G.H=vn;try{return qf(e,t)}finally{G.H=a}},useReducer:function(e,t,a){H="useReducer",S(),re();var o=G.H;G.H=vn;try{return gu(e,t,a)}finally{G.H=o}},useRef:function(){return H="useRef",S(),re(),Pt().memoizedState},useState:function(){H="useState",S(),re();var e=G.H;G.H=vn;try{return gu(fn)}finally{G.H=e}},useDebugValue:function(){H="useDebugValue",S(),re()},useDeferredValue:function(e,t){return H="useDeferredValue",S(),re(),Kx(e,t)},useTransition:function(){return H="useTransition",S(),re(),a0()},useSyncExternalStore:function(e,t,a){return H="useSyncExternalStore",S(),re(),If(e,t,a)},useId:function(){return H="useId",S(),re(),Pt().memoizedState},useFormState:function(e){return H="useFormState",S(),re(),Rf(e)},useActionState:function(e){return H="useActionState",S(),re(),Rf(e)},useOptimistic:function(e,t){return H="useOptimistic",S(),re(),_x(e,t)},useMemoCache:function(e){return S(),ps(e)},useHostTransitionStatus:hs,useCacheRefresh:function(){return H="useCacheRefresh",re(),Pt().memoizedState},useEffectEvent:function(e){return H="useEffectEvent",S(),re(),Df(e)}},zp={readContext:function(e){return v(),ta(e)},use:function(e){return S(),il(e)},useCallback:function(e,t){return H="useCallback",S(),re(),Of(e,t)},useContext:function(e){return H="useContext",S(),re(),ta(e)},useEffect:function(e,t){H="useEffect",S(),re(),yo(2048,fo,e,t)},useImperativeHandle:function(e,t,a){return H="useImperativeHandle",S(),re(),Ef(e,t,a)},useInsertionEffect:function(e,t){return H="useInsertionEffect",S(),re(),yo(4,co,e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",S(),re(),yo(4,Po,e,t)},useMemo:function(e,t){H="useMemo",S(),re();var a=G.H;G.H=vn;try{return qf(e,t)}finally{G.H=a}},useReducer:function(e,t,a){H="useReducer",S(),re();var o=G.H;G.H=vn;try{return Ki(e,t,a)}finally{G.H=o}},useRef:function(){return H="useRef",S(),re(),Pt().memoizedState},useState:function(){H="useState",S(),re();var e=G.H;G.H=vn;try{return Ki(fn)}finally{G.H=e}},useDebugValue:function(){H="useDebugValue",S(),re()},useDeferredValue:function(e,t){return H="useDeferredValue",S(),re(),Zx(e,t)},useTransition:function(){return H="useTransition",S(),re(),o0()},useSyncExternalStore:function(e,t,a){return H="useSyncExternalStore",S(),re(),If(e,t,a)},useId:function(){return H="useId",S(),re(),Pt().memoizedState},useFormState:function(e){return H="useFormState",S(),re(),Af(e)},useActionState:function(e){return H="useActionState",S(),re(),Af(e)},useOptimistic:function(e,t){return H="useOptimistic",S(),re(),Fx(e,t)},useMemoCache:function(e){return S(),ps(e)},useHostTransitionStatus:hs,useCacheRefresh:function(){return H="useCacheRefresh",re(),Pt().memoizedState},useEffectEvent:function(e){return H="useEffectEvent",S(),re(),Df(e)}};var YC={},$C=new Set,QC=new Set,KC=new Set,ZC=new Set,WC=new Set,JC=new Set,ew=new Set,tw=new Set,aw=new Set,ow=new Set;Object.freeze(YC);var lv={enqueueSetState:function(e,t,a){e=e._reactInternals;var o=Eo(e),n=rl(o);n.payload=t,a!==void 0&&a!==null&&(dg(a),n.callback=a),t=ll(e,n,o),t!==null&&(zn(o,"this.setState()",e),ia(t,e,o),Xi(t,e,o))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var o=Eo(e),n=rl(o);n.tag=PC,n.payload=t,a!==void 0&&a!==null&&(dg(a),n.callback=a),t=ll(e,n,o),t!==null&&(zn(o,"this.replaceState()",e),ia(t,e,o),Xi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Eo(e),o=rl(a);o.tag=_C,t!==void 0&&t!==null&&(dg(t),o.callback=t),t=ll(e,o,a),t!==null&&(zn(a,"this.forceUpdate()",e),ia(t,e,a),Xi(t,e,a))}},ei=null,sv=null,uv=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."),Ta=!1,nw={},rw={},lw={},sw={},ti=!1,uw={},Up={},iv={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},iw=!1,cw=null;cw=new Set;var Hr=!1,Ia=!1,cv=!1,dw=typeof WeakSet==="function"?WeakSet:Set,_a=null,ai=null,oi=null,Ra=null,xo=!1,bn=null,Oa=!1,Xc=8192,dM={getCacheForType:function(e){var t=ta(Ca),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return ta(Ca).controller.signal},getOwner:function(){return No}};if(typeof Symbol==="function"&&Symbol.for){var Yc=Symbol.for;Yc("selector.component"),Yc("selector.has_pseudo_class"),Yc("selector.role"),Yc("selector.test_id"),Yc("selector.text")}var fM=[],pM=typeof WeakMap==="function"?WeakMap:Map,Ha=0,qa=2,_o=4,Fr=0,$c=1,Ds=2,Pp=3,Rl=4,_p=6,fw=5,Tt=Ha,Xt=null,ut=null,st=0,So=0,Hp=1,Es=2,Qc=3,pw=4,dv=5,Kc=6,Fp=7,fv=8,Os=9,_t=So,Ho=null,Al=!1,ni=!1,pv=!1,sr=0,la=Fr,Ml=0,Dl=0,mv=0,Lo=0,qs=0,Zc=null,po=null,Gp=!1,Vp=0,mw=0,hw=300,jp=1/0,gw=500,Wc=null,ga=null,El=null,Xp=0,hv=1,gv=2,yw=3,Ol=0,vw=1,bw=2,xw=3,Sw=4,Yp=5,Aa=0,ql=null,ri=null,xn=0,yv=0,vv=-0,bv=null,Lw=null,Cw=null,Sn=Xp,ww=null,mM=50,Jc=0,xv=null,Sv=!1,$p=!1,hM=50,Ns=0,ed=null,li=!1,Qp=null,kw=!1,Tw=new Set,gM={},Kp=null,si=null,Lv=!1,Cv=!1,Zp=!1,wv=!1,Nl=0,kv={};(function(){for(var e=0;e<By.length;e++){var t=By[e],a=t.toLowerCase();t=t[0].toUpperCase()+t.slice(1),dn(a,"on"+t)}dn(aC,"onAnimationEnd"),dn(oC,"onAnimationIteration"),dn(nC,"onAnimationStart"),dn("dblclick","onDoubleClick"),dn("focusin","onFocus"),dn("focusout","onBlur"),dn(XA,"onTransitionRun"),dn(YA,"onTransitionStart"),dn($A,"onTransitionCancel"),dn(rC,"onTransitionEnd")})(),ko("onMouseEnter",["mouseout","mouseover"]),ko("onMouseLeave",["mouseout","mouseover"]),ko("onPointerEnter",["pointerout","pointerover"]),ko("onPointerLeave",["pointerout","pointerover"]),Wa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Wa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Wa("onBeforeInput",["compositionend","keypress","textInput","paste"]),Wa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Wa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Wa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var td="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(" "),Tv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(td)),Wp="_reactListening"+Math.random().toString(36).slice(2),Iw=!1,Rw=!1,Jp=!1,Aw=!1,em=!1,tm=!1,Mw=!1,am={},yM=/\r\n?/g,vM=/\u0000|\uFFFD/g,Bs="http://www.w3.org/1999/xlink",Iv="http://www.w3.org/XML/1998/namespace",bM="javascript:throw new Error('React form unexpectedly submitted.')",xM="suppressHydrationWarning",zs="&",om="/&",ad="$",od="/$",Bl="$?",Us="$~",ui="$!",SM="html",LM="body",CM="head",Rv="F!",Dw="F",Ew="loading",wM="style",Gr=0,ii=1,nm=2,Av=null,Mv=null,Ow={dialog:!0,webview:!0},Dv=null,nd=void 0,qw=typeof setTimeout==="function"?setTimeout:void 0,kM=typeof clearTimeout==="function"?clearTimeout:void 0,Ps=-1,Nw=typeof Promise==="function"?Promise:void 0,TM=typeof queueMicrotask==="function"?queueMicrotask:typeof Nw<"u"?function(e){return Nw.resolve(null).then(e).catch(cR)}:qw,Ev=null,_s=0,rd=1,Bw=2,zw=3,on=4,nn=new Map,Uw=new Set,Vr=zt.d;zt.d={f:function(){var e=Vr.f(),t=Lu();return e||t},r:function(e){var t=Ke(e);t!==null&&t.tag===5&&t.type==="form"?t0(t):Vr.r(e)},D:function(e){Vr.D(e),$S("dns-prefetch",e,null)},C:function(e,t){Vr.C(e,t),$S("preconnect",e,t)},L:function(e,t,a){Vr.L(e,t,a);var o=ci;if(o&&e&&t){var n='link[rel="preload"][as="'+jo(t)+'"]';t==="image"?a&&a.imageSrcSet?(n+='[imagesrcset="'+jo(a.imageSrcSet)+'"]',typeof a.imageSizes==="string"&&(n+='[imagesizes="'+jo(a.imageSizes)+'"]')):n+='[href="'+jo(e)+'"]':n+='[href="'+jo(e)+'"]';var r=n;switch(t){case"style":r=ku(e);break;case"script":r=Tu(e)}nn.has(r)||(e=mt({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),nn.set(r,e),o.querySelector(n)!==null||t==="style"&&o.querySelector(dc(r))||t==="script"&&o.querySelector(fc(r))||(t=o.createElement("link"),$a(t,"link",e),qe(t),o.head.appendChild(t)))}},m:function(e,t){Vr.m(e,t);var a=ci;if(a&&e){var o=t&&typeof t.as==="string"?t.as:"script",n='link[rel="modulepreload"][as="'+jo(o)+'"][href="'+jo(e)+'"]',r=n;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":r=Tu(e)}if(!nn.has(r)&&(e=mt({rel:"modulepreload",href:e},t),nn.set(r,e),a.querySelector(n)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(fc(r)))return}o=a.createElement("link"),$a(o,"link",e),qe(o),a.head.appendChild(o)}}},X:function(e,t){Vr.X(e,t);var a=ci;if(a&&e){var o=It(a).hoistableScripts,n=Tu(e),r=o.get(n);r||(r=a.querySelector(fc(n)),r||(e=mt({src:e,async:!0},t),(t=nn.get(n))&&ty(e,t),r=a.createElement("script"),qe(r),$a(r,"link",e),a.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},o.set(n,r))}},S:function(e,t,a){Vr.S(e,t,a);var o=ci;if(o&&e){var n=It(o).hoistableStyles,r=ku(e);t=t||"default";var u=n.get(r);if(!u){var d={loading:_s,preload:null};if(u=o.querySelector(dc(r)))d.loading=rd|on;else{e=mt({rel:"stylesheet",href:e,"data-precedence":t},a),(a=nn.get(r))&&ey(e,a);var m=u=o.createElement("link");qe(m),$a(m,"link",e),m._p=new Promise(function(y,O){m.onload=y,m.onerror=O}),m.addEventListener("load",function(){d.loading|=rd}),m.addEventListener("error",function(){d.loading|=Bw}),d.loading|=on,Jf(u,t,o)}u={type:"stylesheet",instance:u,count:1,state:d},n.set(r,u)}}},M:function(e,t){Vr.M(e,t);var a=ci;if(a&&e){var o=It(a).hoistableScripts,n=Tu(e),r=o.get(n);r||(r=a.querySelector(fc(n)),r||(e=mt({src:e,async:!0,type:"module"},t),(t=nn.get(n))&&ty(e,t),r=a.createElement("script"),qe(r),$a(r,"link",e),a.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},o.set(n,r))}}};var ci=typeof document>"u"?null:document,rm=null,IM=60000,RM=800,AM=500,Ov=0,qv=null,lm=null,Hs=VR,ld={$$typeof:Zn,Provider:null,Consumer:null,_currentValue:Hs,_currentValue2:Hs,_threadCount:0},Pw="%c%s%c",_w="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",Hw="",sm=" ",MM=Function.prototype.bind,Fw=!1,Gw=null,Vw=null,jw=null,Xw=null,Yw=null,$w=null,Qw=null,Kw=null,Zw=null,Ww=null;Gw=function(e,t,a,o){t=l(e,t),t!==null&&(a=i(t.memoizedState,a,0,o),t.memoizedState=a,t.baseState=a,e.memoizedProps=mt({},e.memoizedProps),a=Ja(e,2),a!==null&&ia(a,e,2))},Vw=function(e,t,a){t=l(e,t),t!==null&&(a=p(t.memoizedState,a,0),t.memoizedState=a,t.baseState=a,e.memoizedProps=mt({},e.memoizedProps),a=Ja(e,2),a!==null&&ia(a,e,2))},jw=function(e,t,a,o){t=l(e,t),t!==null&&(a=c(t.memoizedState,a,o),t.memoizedState=a,t.baseState=a,e.memoizedProps=mt({},e.memoizedProps),a=Ja(e,2),a!==null&&ia(a,e,2))},Xw=function(e,t,a){e.pendingProps=i(e.memoizedProps,t,0,a),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=Ja(e,2),t!==null&&ia(t,e,2)},Yw=function(e,t){e.pendingProps=p(e.memoizedProps,t,0),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=Ja(e,2),t!==null&&ia(t,e,2)},$w=function(e,t,a){e.pendingProps=c(e.memoizedProps,t,a),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=Ja(e,2),t!==null&&ia(t,e,2)},Qw=function(e){var t=Ja(e,2);t!==null&&ia(t,e,2)},Kw=function(e){var t=uu(),a=Ja(e,t);a!==null&&ia(a,e,t)},Zw=function(e){g=e},Ww=function(e){L=e};var um=!0,im=null,Nv=!1,zl=null,Ul=null,Pl=null,sd=new Map,ud=new Map,_l=[],DM="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(" "),cm=null;if(np.prototype.render=sy.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()."):M(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=Eo(o);ay(o,n,a,t,null,null)},np.prototype.unmount=sy.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;(Tt&(qa|_o))!==Ha&&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."),ay(e.current,2,null,e,null,null),Lu(),t[gl]=null}},np.prototype.unstable_scheduleHydration=function(e){if(e){var t=z();e={blockedOn:null,target:e,priority:t};for(var a=0;a<_l.length&&t!==0&&t<_l[a].priority;a++);_l.splice(a,0,e),a===0&&uL(e)}},function(){var e=fi.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
|
-
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"),
|
|
227
|
-
You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}
|
|
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"),zt.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=ce(t),e=e!==null?J(e):null,e=e===null?null:e.stateNode,e},!function(){var e={bundleType:1,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:G,reconcilerVersion:"19.2.7"};return e.overrideHookState=Gw,e.overrideHookStateDeletePath=Vw,e.overrideHookStateRenamePath=jw,e.overrideProps=Xw,e.overridePropsDeletePath=Yw,e.overridePropsRenamePath=$w,e.scheduleUpdate=Qw,e.scheduleRetry=Kw,e.setErrorHandler=Zw,e.setSuspenseHandler=Ww,e.scheduleRefresh=k,e.scheduleRoot=A,e.setRefreshHandler=D,e.getCurrentFiber=BR,cn(e)}()&&ar&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var Jw=window.location.protocol;/^(https?|file):$/.test(Jw)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(Jw==="file:"?`
|
|
227
|
+
You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}FM.createRoot=function(e,t){if(!M(e))throw Error("Target container is not a DOM element.");fL(e);var a=!1,o="",n=i0,r=c0,u=d0;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===Kn&&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&&(r=t.onCaughtError),t.onRecoverableError!==void 0&&(
|
|
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&&(r=t.onCaughtError),t.onRecoverableError!==void 0&&(u=t.onRecoverableError)),t=tL(e,1,!1,null,null,a,o,null,n,r,u,dL),e[gl]=t.current,Fg(e),new sy(t)},FM.hydrateRoot=function(e,t,a){if(!M(e))throw Error("Target container is not a DOM element.");fL(e),t===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var o=!1,n="",r=i0,u=c0,d=d0,m=null;return a!==null&&a!==void 0&&(a.unstable_strictMode===!0&&(o=!0),a.identifierPrefix!==void 0&&(n=a.identifierPrefix),a.onUncaughtError!==void 0&&(r=a.onUncaughtError),a.onCaughtError!==void 0&&(u=a.onCaughtError),a.onRecoverableError!==void 0&&(d=a.onRecoverableError),a.formState!==void 0&&(m=a.formState)),t=tL(e,1,!0,t,a!=null?a:null,o,n,m,r,u,d,dL),t.context=aL(null),a=t.current,o=Eo(a),o=os(o),n=rl(o),n.callback=null,ll(a,n,o),zn(o,"hydrateRoot()",null),a=o,t.current.lanes=a,Wr(t,a),$n(t),e[gl]=t.current,Fg(e),new np(t)},FM.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var rk=Fs(function(GM,pm){pm.exports=Z(nk())});var ie=Fs(function(s2){var $s=Z(gt());(function(){function l(W){if(W==null)return null;if(typeof W==="function")return W.$$typeof===F?null:W.displayName||W.name||null;if(typeof W==="string")return W;switch(W){case D:return"Fragment";case U:return"Profiler";case M:return"StrictMode";case ce:return"Suspense";case J:return"SuspenseList";case ae: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 k:return"Portal";case X:return W.displayName||"Context";case _:return(W._context.displayName||"Context")+".Consumer";case Q:var ze=W.render;return W=W.displayName,W||(W=ze.displayName||ze.name||"",W=W!==""?"ForwardRef("+W+")":"ForwardRef"),W;case te:return ze=W.displayName||null,ze!==null?ze:l(W.type)||"Memo";case Y:ze=W._payload,W=W._init;try{return l(W(ze))}catch(kt){}}return null}function i(W){return""+W}function c(W){try{i(W);var ze=!1}catch(ct){ze=!0}if(ze){ze=console;var kt=ze.error,it=typeof Symbol==="function"&&Symbol.toStringTag&&W[Symbol.toStringTag]||W.constructor.name||"Object";return kt.call(ze,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",it),i(W)}}function f(W){if(W===D)return"<>";if(typeof W==="object"&&W!==null&&W.$$typeof===Y)return"<...>";try{var ze=l(W);return ze?"<"+ze+">":"<...>"}catch(kt){return"<...>"}}function p(){var W=de.A;return W===null?null:W.getOwner()}function L(){return Error("react-stack-top-frame")}function g(W){if(xe.call(W,"key")){var ze=Object.getOwnPropertyDescriptor(W,"key").get;if(ze&&ze.isReactWarning)return!1}return W.key!==void 0}function S(W,ze){function kt(){ne||(ne=!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)",ze))}kt.isReactWarning=!0,Object.defineProperty(W,"key",{get:kt,configurable:!0})}function v(){var W=l(this.type);return me[W]||(me[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 x(W,ze,kt,it,ct,Me){var ye=kt.ref;return W={$$typeof:A,type:W,key:ze,props:kt,_owner:it},(ye!==void 0?ye:null)!==null?Object.defineProperty(W,"ref",{enumerable:!1,get:v}):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:ct}),Object.defineProperty(W,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Me}),Object.freeze&&(Object.freeze(W.props),Object.freeze(W)),W}function h(W,ze,kt,it,ct,Me){var ye=ze.children;if(ye!==void 0)if(it)if(Ce(ye)){for(it=0;it<ye.length;it++)C(ye[it]);Object.freeze&&Object.freeze(ye)}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 C(ye);if(xe.call(ze,"key")){ye=l(W);var j=Object.keys(ze).filter(function(oe){return oe!=="key"});it=0<j.length?"{key: someKey, "+j.join(": ..., ")+": ...}":"{key: someKey}",Lt[ye+it]||(j=0<j.length?"{"+j.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} />`,it,ye,V,ye),xt[ye+it]=!0)}if(ye=null,Ct!==void 0&&(c(Ct),ye=""+Ct),h(ze)&&(c(ze.key),ye=""+ze.key),"key"in ze){Ct={};for(var Re in ze)Re!=="key"&&(Ct[Re]=ze[Re])}else Ct=ze;return ye&&x(Ct,typeof W==="function"?W.displayName||W.name||"Unknown":W),L(W,ye,Ct,p(),ct,Me)}function C(W){w(W)?W._store&&(W._store.validated=1):typeof W==="object"&&W!==null&&W.$$typeof===X&&(W._payload.status==="fulfilled"?w(W._payload.value)&&W._payload.value._store&&(W._payload.value._store.validated=1):W._store&&(W._store.validated=1))}function w(W){return typeof W==="object"&&W!==null&&W.$$typeof===A}var A=Symbol.for("react.transitional.element"),k=Symbol.for("react.portal"),D=Symbol.for("react.fragment"),M=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),P=Symbol.for("react.consumer"),j=Symbol.for("react.context"),Y=Symbol.for("react.forward_ref"),ce=Symbol.for("react.suspense"),J=Symbol.for("react.suspense_list"),te=Symbol.for("react.memo"),X=Symbol.for("react.lazy"),ae=Symbol.for("react.activity"),H=Symbol.for("react.client.reference"),de=Ys.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,xe=Object.prototype.hasOwnProperty,Ce=Array.isArray,Ne=console.createTask?console.createTask:function(){return null};Ys={react_stack_bottom_frame:function(W){return W()}};var ne,me={},ke=Ys.react_stack_bottom_frame.bind(Ys,S)(),$e=Ne(f(S)),xt={};rM.Fragment=D,rM.jsxDEV=function(W,ze,Ct,it){var ct=1e4>de.recentlyCreatedOwnerStacks++;return g(W,ze,Ct,it,ct?Error("react-stack-top-frame"):ke,ct?Ne(f(W)):$e)}})()});var $T=Z(nk(),1);var Ii=Z(gt(),1);var pm=Z(gt(),1);var rk=(l)=>l?.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();function lk(l,i,c=[]){if(i==null)throw Error("[lucide]: iconNode is required when icon name is used");return{name:rk(l),size:24,node:i,...c.length>0?{aliases:c}:{}}}var sk=(l)=>{let i="",c=!1;for(let f of l){if(f==="-"||f==="_"||f<=" "){c=i.length>0;continue}if(i.length===0)i+=f.toLowerCase();else i+=c?f.toUpperCase():f;c=!1}return i};var uk=(l)=>{let i=sk(l);return i.charAt(0).toUpperCase()+i.slice(1)};var ud=Z(gt(),1);var sd=(...l)=>l.filter((i,c,f)=>Boolean(i)&&i.trim()!==""&&f.indexOf(i)===c).join(" ").trim();var _l={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 zv(l){return l!==null&&l!==void 0}function ik(l,i={}){let c=i.attributeNames??{},f=(w)=>c[w]??w,p=l.size??l.width??_l.width,S=l.size??l.height??_l.height,h=l.aliases?.filter((w)=>typeof w==="string"&&w.trim()!=="").map((w)=>`lucide-${w}`)??[],x=[...l.name?[`lucide-${l.name}`]:[],...h],b=i.className?.split(" ").filter(Boolean)??[],L=i.includeDefaultClasses===!1?sd(...b):sd("lucide",...x,...b),g=i.absoluteStrokeWidth?Number(i.strokeWidth??_l["stroke-width"])*Number(l.size??l.width??_l.width)/Number(i.size??i.width??_l.width):i.strokeWidth??_l["stroke-width"];return["svg",{...Object.entries(_l).reduce((w,[A,k])=>(w[f(A)]=k,w),{}),..."color"in i&&i.color&&{[f("stroke")]:i.color},..."size"in i&&zv(i.size)&&{[f("width")]:i.size,[f("height")]:i.size},..."width"in i&&zv(i.width)&&{[f("width")]:i.width},..."height"in i&&zv(i.height)&&{[f("height")]:i.height},[f("stroke-width")]:g,...L&&{[f("class")]:L},[f("viewBox")]:`0 0 ${p} ${S}`,...i.hasA11yProp===!1?{[f("aria-hidden")]:"true"}:{},..."attributes"in i&&i.attributes},l.node.map((w)=>{let[A,k,D]=w,M=i.nonScalingStroke?{[f("vector-effect")]:"non-scaling-stroke",...k}:k;return D?[A,M,D]:[A,M]})]}function ck(l,i={}){return ik(l,{...i,attributeNames:{...i.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}var dk=(l)=>{for(let i in l)if(i.startsWith("aria-")||i==="role"||i==="title")return!0;return!1};var ci=Z(gt(),1),F2=ci.createContext({});var fk=()=>ci.useContext(F2);var pk=ud.forwardRef(({color:l,size:i,width:c,height:f,strokeWidth:p,absoluteStrokeWidth:S,nonScalingStroke:h,className:x="",children:b,iconNode:L=[],icon:g={node:L,aliases:[],size:24},...C},w)=>{let{size:A=24,strokeWidth:k=2,absoluteStrokeWidth:D=!1,nonScalingStroke:M=!1,color:N="currentColor",className:P=""}=fk()??{},j=Boolean(b)||dk(C),[Y,ce,J=[]]=ck(g,{color:l??N,width:c??i??A,height:f??i??A,strokeWidth:p??k,absoluteStrokeWidth:S??D,nonScalingStroke:h??M,className:sd(P,x),hasA11yProp:j,attributes:C});return ud.createElement(Y,{ref:w,...ce},[...J.map(([te,X])=>ud.createElement(te,X)),...Array.isArray(b)?b:[b]])});function Se(l,i=[],c=[]){let f=typeof l==="string"?lk(l,i,c):l,p=pm.forwardRef(({className:S,...h},x)=>pm.createElement(pk,{ref:x,icon:f,className:S,...h}));if(f.name)p.displayName=uk(f.name);return p}var mk={name:"circle-alert",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"]};mk.node;var Hl=Se(mk);var hk={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"]};hk.node;var Fl=Se(hk);var gk={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"]};gk.node;var Gl=Se(gk);var yk={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"]};yk.node;var lr=Se(yk);var vk={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"]};vk.node;var Sn=Se(vk);var bk={name:"triangle-alert",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"]};bk.node;var Vl=Se(bk);var xk={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"}]]};xk.node;var id=Se(xk);var Sk={name:"arrow-down",size:24,node:[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]};Sk.node;var cd=Se(Sk);var Lk={name:"arrow-left",size:24,node:[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]};Lk.node;var dd=Se(Lk);var Ck={name:"arrow-right",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]};Ck.node;var fd=Se(Ck);var wk={name:"arrow-up-right",size:24,node:[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]};wk.node;var pd=Se(wk);var kk={name:"arrow-up",size:24,node:[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]};kk.node;var md=Se(kk);var Tk={name:"check",size:24,node:[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]};Tk.node;var Gs=Se(Tk);var Ik={name:"chevron-down",size:24,node:[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]};Ik.node;var Vs=Se(Ik);var Rk={name:"chevron-left",size:24,node:[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]};Rk.node;var hd=Se(Rk);var Ak={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};Ak.node;var Ln=Se(Ak);var Mk={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"}]]};Mk.node;var gd=Se(Mk);var Dk={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"}]]};Dk.node;var js=Se(Dk);var Ek={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"}]]};Ek.node;var yd=Se(Ek);var Ok={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"}]]};Ok.node;var vd=Se(Ok);var qk={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"}]]};qk.node;var bd=Se(qk);var Bk={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"}]]};Bk.node;var xd=Se(Bk);var Nk={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"}]]};Nk.node;var Sd=Se(Nk);var zk={name:"menu",size:24,node:[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]};zk.node;var Ld=Se(zk);var Uk={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"}]]};Uk.node;var Cd=Se(Uk);var Pk={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"}]]};Pk.node;var wd=Se(Pk);var _k={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"}]]};_k.node;var jl=Se(_k);var Hk={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"}]]};Hk.node;var kd=Se(Hk);var Fk={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};Fk.node;var Td=Se(Fk);var Gk={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"}]]};Gk.node;var Id=Se(Gk);var Vk={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"}]]};Vk.node;var Rd=Se(Vk);var jk={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};jk.node;var nn=Se(jk);var vi=Z(gt(),1);function Uv(l){let i=l?.trim().toLowerCase()??"";if(i==="zh"||i.startsWith("zh-")||i.startsWith("zh_"))return"zh-CN";return"en"}function Xk(l){for(let i of l??[]){let c=Uv(i);if(c!=="en")return c}return"en"}function G2(l,i={}){return l.replace(/\{([\w.-]+)\}/g,(c,f)=>{let p=i[f];return p===void 0?c:String(p)})}function Yk(l,i,c,f={}){let p=c[l]?.[i]??c.en?.[i];if(p===void 0)return console.warn(`[stats.i18n] missing translation: ${i}`),i;return G2(p,f)}var mm={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.gain":"Gain","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.gain":"收益","nav.dashboard":"zeta 统计","nav.breadcrumb-stats":"统计","nav.pages":"导航","nav.open-navigation":"打开导航"}};var hm={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"},"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/秒","common.output-tokens-per-second":"输出 Token/秒","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":"再按字母跳转"}};var gm={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":"Subagents","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 ym={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 数","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/秒","models.bucket-5m":"5 分钟","models.bucket-hour":"小时","models.bucket-day":"天"}};var vm={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 bm={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 UTC day, stacked by model","costs.daily-by-component":"Per UTC 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":"按 UTC 日统计,按模型堆叠","costs.daily-by-component":"按 UTC 日统计,按计费组件堆叠","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 xm={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 Sm={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 Lm={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 Cm={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 wm={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"},"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":"完成"}};var km={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 Tm={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 UTC 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":"每个 UTC 日节省的 Token,以及累计总量","gain.saved-per-day":"每日节省","gain.cumulative":"累计","gain.by-source":"按来源","gain.by-source-description":"各子系统节省量","gain.source":"来源"}};var Im={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 Rm={en:{},"zh-CN":{}};var V2={...mm.en,...hm.en,...gm.en,...ym.en,...vm.en,...bm.en,...xm.en,...Sm.en,...Lm.en,...Cm.en,...wm.en,...km.en,...Tm.en,...Im.en,...Rm.en},$k={id:"en",messages:V2};var j2={...mm["zh-CN"],...hm["zh-CN"],...gm["zh-CN"],...ym["zh-CN"],...vm["zh-CN"],...bm["zh-CN"],...xm["zh-CN"],...Sm["zh-CN"],...Lm["zh-CN"],...Cm["zh-CN"],...wm["zh-CN"],...km["zh-CN"],...Tm["zh-CN"],...Im["zh-CN"],...Rm["zh-CN"]},Qk={id:"zh-CN",messages:j2};function X2(){return globalThis.__ZETA_STATS_LOCALE__}var Y2={en:$k.messages,"zh-CN":Qk.messages},Am="en";$2();function Xs(){return Am}function Kk(l){return Am=Uv(l),Am}function $2(){let l=X2();if(l)return Kk(l);if(typeof navigator>"u")return"en";return Kk(Xk(navigator.languages))}function u(l,i){return Yk(Am,l,Y2,i)}var Wk=60000,Mm=60*Wk,sr=24*Mm,Pv={"1h":{labelKey:"common.range-1h",windowKey:"common.window-1h",spanMs:Mm,bucketMs:5*Wk},"24h":{labelKey:"common.range-24h",windowKey:"common.window-24h",spanMs:sr,bucketMs:Mm},"7d":{labelKey:"common.range-7d",windowKey:"common.window-7d",spanMs:7*sr,bucketMs:sr},"30d":{labelKey:"common.range-30d",windowKey:"common.window-30d",spanMs:30*sr,bucketMs:sr},"90d":{labelKey:"common.range-90d",windowKey:"common.window-90d",spanMs:90*sr,bucketMs:sr},all:{labelKey:"common.range-all",windowKey:"common.window-all",spanMs:null,bucketMs:sr}},Q2=1500,di=["1h","24h","7d","30d","90d","all"];function ia(l){return Pv[l]}var _v={hour:"2-digit",minute:"2-digit",hourCycle:"h23"},Hv={month:"short",day:"numeric"},Zk=new Map;function Ad(l,i){let c=Xs(),f=`${c}:${l}`,p=Zk.get(f);if(!p)p=new Intl.DateTimeFormat(c,i),Zk.set(f,p);return p}function Dm(l,i){if(i<Mm)return Ad("hm",_v).format(l);if(i<sr)return Ad("mdhm",{...Hv,..._v}).format(l);return Ad("md",Hv).format(l)}function Em(l,i){return i<sr?Ad("hm",_v).format(l):Ad("md",Hv).format(l)}function _o(l,i,c=Pv[l].bucketMs,f=Date.now()){let p=Math.floor(f/c)*c,S=Pv[l].spanMs,h;if(S!==null)h=Math.floor((f-S)/c)*c;else{h=p;for(let b of i)if(b<h)h=b;h=Math.floor(h/c)*c}h=Math.max(h,p-(Q2-1)*c);let x=[];for(let b=h;b<=p;b+=c)x.push(b);return x}var Md=Z(gt(),1);class e1 extends Error{status;endpoint;constructor(l,i,c){super(c);this.name="ApiError",this.status=l,this.endpoint=i}}async function K2(l,i){try{let c=await l.json();if(typeof c==="object"&&c!==null&&"error"in c&&typeof c.error==="string")return c.error}catch{}return`HTTP error ${l.status} on ${i}`}var Jk=new WeakMap;async function Oa(l,i,c){let f=typeof c==="object"&&c!==null?Jk.get(c):void 0,p=i;if(f){let b=new Headers(i?.headers);b.set("If-None-Match",f),p={...i,headers:b}}let S=await fetch(l,p);if(S.status===304&&f)return c;if(!S.ok)throw new e1(S.status,l,await K2(S,l));let h=await S.json(),x=S.headers.get("ETag");if(x&&typeof h==="object"&&h!==null)Jk.set(h,x);return h}var t1={"X-Zeta-Stats-Action":"1"};async function a1(l="24h",i){return Oa(`/api/stats/overview?range=${encodeURIComponent(l)}`,{signal:i})}async function o1(l="24h",i){return Oa(`/api/stats/model-dashboard?range=${encodeURIComponent(l)}`,{signal:i})}async function n1(l="24h",i){return Oa(`/api/stats/costs?range=${encodeURIComponent(l)}`,{signal:i})}async function Om(l=50,i){return Oa(`/api/stats/recent?limit=${l}`,{signal:i})}async function r1(l="24h",i=50,c){return Oa(`/api/stats/errors?range=${encodeURIComponent(l)}&limit=${i}`,{signal:c})}async function l1(l,i){return Oa(`/api/request/${l}`,{signal:i})}async function s1(){return Oa("/api/sync",{method:"POST"})}async function u1(l="24h",i){return Oa(`/api/stats/frustration?range=${encodeURIComponent(l)}`,{signal:i})}async function i1(l,i){return Oa(`/api/frustration/estimate?range=${encodeURIComponent(l)}`,{signal:i})}async function c1(l){return Oa(`/api/frustration/judge?range=${encodeURIComponent(l)}`,{method:"POST",headers:t1})}async function d1(){return Oa("/api/frustration/cancel",{method:"POST",headers:t1})}async function f1(l="24h",i){return Oa(`/api/stats/folders?range=${encodeURIComponent(l)}`,{signal:i})}async function p1(l="24h",i,c){let f=new URLSearchParams({range:l});if(i)f.set("project",i);return Oa(`/api/stats/gain?${f}`,{signal:c})}async function m1(l="24h",i){return Oa(`/api/stats/tools?range=${encodeURIComponent(l)}`,{signal:i})}async function h1(l="24h",i){return Oa(`/api/stats/providers?range=${encodeURIComponent(l)}`,{signal:i})}async function Fv(l,i,c){let f=new URLSearchParams({range:l});if(i!==null)f.set("provider",i);return Oa(`/api/stats/provider-windows?${f}`,{signal:c})}async function g1(l=100,i,c){let f=new URLSearchParams({limit:String(l)});if(i)f.set("q",i);return Oa(`/api/sessions?${f}`,{signal:c})}async function y1(l,i,c){return Oa(`/api/session/trace?file=${encodeURIComponent(l)}`,{signal:i,cache:"no-store"},c)}async function v1(l,i,c){return Oa(`/api/session/entry?file=${encodeURIComponent(l)}&id=${encodeURIComponent(i)}`,{signal:c})}var W2={phase:"idle",current:0,total:0,processed:0,lastSyncedAt:null,error:null};function J2(){s1().catch(()=>{})}var b1=null,x1=0,qm=0,Xl={sync:W2,indexingHours:0,connected:!1,requestSync:J2},Vv=new Set;function S1(l){return Vv.add(l),()=>Vv.delete(l)}function L1(){for(let l of Vv)l()}function eM(l,i){return l.phase===i.phase&&l.current===i.current&&l.total===i.total&&l.processed===i.processed&&l.lastSyncedAt===i.lastSyncedAt&&l.error===i.error}function tM(l){if(b1!==l.version)b1=l.version,x1++;let i=Math.max(0,x1-1),c=l.indexingHours!==Xl.indexingHours||!eM(l.sync,Xl.sync);if(!c&&i===qm)return;if(qm=i,c)Xl={...Xl,sync:l.sync,indexingHours:l.indexingHours};L1()}function Gv(l){if(l===Xl.connected)return;Xl={...Xl,connected:l},L1()}var aM=()=>Xl,oM=()=>qm,nM=()=>-1;function C1(){return qm}function w1({children:l}){return Md.useEffect(()=>{let i=new EventSource("/api/events");return i.onopen=()=>Gv(!0),i.onerror=()=>Gv(!1),i.onmessage=(c)=>tM(JSON.parse(c.data)),()=>{i.close(),Gv(!1)}},[]),l}function Bm(){return Md.useSyncExternalStore(S1,aM)}function k1(l=!0){return Md.useSyncExternalStore(S1,l?oM:nM)}var Nm=Z(ue(),1);function Nt({tone:l="neutral",mono:i,children:c}){return Nm.jsxDEV("span",{className:"badge","data-tone":l,"data-mono":i??!1,children:c},void 0,!1,void 0,this)}function ur({tone:l="neutral",pulse:i}){return Nm.jsxDEV("span",{className:"dot","data-tone":l,"data-pulse":i??!1},void 0,!1,void 0,this)}function Cn({color:l}){return Nm.jsxDEV("span",{className:"swatch",style:{background:l}},void 0,!1,void 0,this)}function ir(l){if(l>=0.05)return"bad";if(l>=0.01)return"warn";return"ok"}var So=Z(ue(),1);function Ye({title:l,description:i,actions:c,flush:f,footer:p,className:S,index:h,stale:x,children:b}){let L=l!==void 0||i!==void 0||c!==void 0;return So.jsxDEV("section",{className:S?`card rise ${S}`:"card rise",style:h!==void 0?{"--i":h}:void 0,children:[L&&So.jsxDEV("header",{className:"card-header",children:[So.jsxDEV("div",{className:"card-titles",children:[l!==void 0&&So.jsxDEV("h2",{className:"card-title",children:l},void 0,!1,void 0,this),i!==void 0&&So.jsxDEV("p",{className:"card-description",children:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this),c!==void 0&&So.jsxDEV("div",{className:"card-actions",children:c},void 0,!1,void 0,this)]},void 0,!0,void 0,this),So.jsxDEV("div",{className:"card-body","data-flush":f??!1,"data-stale":x??!1,children:b},void 0,!1,void 0,this),p!==void 0&&So.jsxDEV("footer",{className:"card-footer",children:p},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function ra({title:l,description:i,actions:c}){return So.jsxDEV("header",{className:"page-header rise",children:[So.jsxDEV("div",{children:[So.jsxDEV("h1",{className:"page-title",children:l},void 0,!1,void 0,this),i!==void 0&&So.jsxDEV("p",{className:"page-description",children:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this),c!==void 0&&So.jsxDEV("div",{className:"page-actions",children:c},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Dd=Z(gt(),1),T1=Z(ld(),1),Qa=Z(ue(),1);function zm({open:l,onClose:i,title:c,subtitle:f,actions:p,width:S,children:h}){let x=Dd.useRef(i);x.current=i;let b=Dd.useRef(null);if(Dd.useEffect(()=>{if(!l)return;let L=document.activeElement instanceof HTMLElement?document.activeElement:null;b.current?.focus();let g=(C)=>{if(C.key==="Escape")C.preventDefault(),x.current()};return window.addEventListener("keydown",g),()=>{window.removeEventListener("keydown",g),L?.focus()}},[l]),!l)return null;return T1.createPortal(Qa.jsxDEV(Qa.Fragment,{children:[Qa.jsxDEV("div",{className:"drawer-scrim",onClick:i,role:"presentation"},void 0,!1,void 0,this),Qa.jsxDEV("div",{ref:b,className:"drawer",role:"dialog","aria-modal":"true",tabIndex:-1,style:S!==void 0?{"--drawer-w":`${S}px`}:void 0,children:[Qa.jsxDEV("header",{className:"drawer-header",children:[Qa.jsxDEV("div",{className:"drawer-titles",children:[Qa.jsxDEV("h2",{className:"drawer-title",children:c},void 0,!1,void 0,this),f!==void 0&&Qa.jsxDEV("div",{className:"drawer-subtitle",children:f},void 0,!1,void 0,this)]},void 0,!0,void 0,this),p,Qa.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-icon":"true",onClick:i,"aria-label":"Close",children:Qa.jsxDEV(nn,{size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Qa.jsxDEV("div",{className:"drawer-body",children:h},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),document.body)}function Ho({items:l}){return Qa.jsxDEV("dl",{className:"kv",style:{margin:0},children:l.map((i)=>Qa.jsxDEV("div",{className:"kv-item",children:[Qa.jsxDEV("dt",{className:"kv-key",children:i.label},void 0,!1,void 0,this),Qa.jsxDEV("dd",{className:"kv-value",style:{margin:0},children:i.value},void 0,!1,void 0,this)]},i.key,!0,void 0,this))},void 0,!1,void 0,this)}var $s=Z(gt(),1);var wn=Z(ue(),1);function fi({data:l,title:i=u("ui.json"),initialCollapsed:c=!1}){let[f,p]=$s.useState(c),[S,h]=$s.useState(!1),x=$s.useRef(0),b=JSON.stringify(l,null,2);return $s.useEffect(()=>()=>window.clearTimeout(x.current),[]),wn.jsxDEV("div",{className:"stack",style:{gap:6},children:[wn.jsxDEV("div",{className:"row",style:{justifyContent:"space-between"},children:[wn.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm",onClick:()=>p((g)=>!g),"aria-expanded":!f,children:[f?wn.jsxDEV(Ln,{size:13},void 0,!1,void 0,this):wn.jsxDEV(Vs,{size:13},void 0,!1,void 0,this),i]},void 0,!0,void 0,this),wn.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm",onClick:async()=>{try{await navigator.clipboard.writeText(b),h(!0),window.clearTimeout(x.current),x.current=window.setTimeout(()=>h(!1),1500)}catch{}},children:[S?wn.jsxDEV(Gs,{size:13},void 0,!1,void 0,this):wn.jsxDEV(js,{size:13},void 0,!1,void 0,this),S?u("common.copied"):u("common.copy")]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),!f&&wn.jsxDEV("pre",{className:"code-block",children:wn.jsxDEV("code",{children:b},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Qs=Z(gt(),1),I1=Z(ld(),1);var kn=Z(ue(),1);function R1({open:l,title:i,onClose:c,primaryAction:f,cancelLabel:p=u("common.cancel"),children:S}){let h=Qs.useRef(null),x=Qs.useRef(null),b=Qs.useRef(c);b.current=c,Qs.useEffect(()=>{if(!l)return;let w=document.activeElement instanceof HTMLElement?document.activeElement:null,A=(k)=>{if(k.key==="Escape")k.preventDefault(),b.current()};return window.addEventListener("keydown",A),()=>{window.removeEventListener("keydown",A),w?.focus()}},[l]);let L=f!==void 0,g=f?.disabled??!1;if(Qs.useEffect(()=>{if(!l)return;(L&&!g?h.current:x.current)?.focus()},[l,L,g]),!l)return null;return I1.createPortal(kn.jsxDEV("div",{className:"modal-overlay",onClick:(w)=>{if(w.target===w.currentTarget)c()},role:"presentation",children:kn.jsxDEV("div",{className:"modal",role:"dialog","aria-modal":"true","aria-labelledby":"modal-title",children:[kn.jsxDEV("div",{className:"modal-header",children:[kn.jsxDEV("h2",{id:"modal-title",className:"modal-title",children:i},void 0,!1,void 0,this),kn.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-icon":"true","data-size":"sm",onClick:c,"aria-label":u("common.close"),children:kn.jsxDEV(nn,{size:15},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),kn.jsxDEV("div",{className:"modal-body",children:S},void 0,!1,void 0,this),kn.jsxDEV("div",{className:"modal-footer",children:[kn.jsxDEV("button",{ref:x,type:"button",className:"btn",onClick:c,children:p},void 0,!1,void 0,this),f&&kn.jsxDEV("button",{ref:h,type:"button",className:"btn","data-variant":"primary",onClick:f.onClick,disabled:f.disabled,children:f.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 Um=Z(ue(),1);function cr({value:l,onChange:i,placeholder:c=u("common.filter"),width:f}){return Um.jsxDEV("label",{className:"search",children:[Um.jsxDEV(Td,{size:14},void 0,!1,void 0,this),Um.jsxDEV("input",{className:"input",type:"search",value:l,placeholder:c,onChange:(p)=>i(p.target.value),style:f!==void 0?{width:f}:void 0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var pi=Z(gt(),1),Pm=Z(ue(),1);function _a({options:l,value:i,onChange:c,size:f="md","aria-label":p}){let S=pi.useRef(null),[h,x]=pi.useState(null);return pi.useLayoutEffect(()=>{let b=S.current,L=b?.querySelector('[data-active="true"]');if(!b||!L){x(null);return}let g=()=>x({left:L.offsetLeft,width:L.offsetWidth});g();let C=new ResizeObserver(g);return C.observe(b),()=>C.disconnect()},[i,l]),Pm.jsxDEV("div",{ref:S,className:"segmented","data-size":f,role:"radiogroup","aria-label":p,children:[h&&Pm.jsxDEV("span",{className:"segmented-thumb",style:{left:h.left,width:h.width}},void 0,!1,void 0,this),l.map((b)=>Pm.jsxDEV("button",{type:"button",role:"radio","aria-checked":b.value===i,className:"segmented-option","data-active":b.value===i,title:b.title,onClick:()=>c(b.value),children:b.label},b.value,!1,void 0,this))]},void 0,!0,void 0,this)}var gi=Z(gt(),1);var mi=Z(gt(),1);function _m(){let l=mi.useRef(null),[i,c]=mi.useState(0);return mi.useLayoutEffect(()=>{let f=l.current;if(!f)return;c(f.clientWidth);let p=new ResizeObserver((S)=>{let h=Math.round(S[0]?.contentRect.width??0);c((x)=>x===h?x:h)});return p.observe(f),()=>p.disconnect()},[]),[l,i]}var Ed=Z(ue(),1);function hi({values:l,color:i="var(--chart-primary)",height:c=28,width:f,area:p=!0}){let[S,h]=_m(),x=f??h,b=Math.max(0,...l),L=l.length,g="";if(x>0&&L>0){let C=L>1?x/(L-1):0;for(let w=0;w<L;w++){let A=L>1?w*C:x/2,k=b>0?c-2-l[w]/b*(c-4):c-2;g+=`${w===0?"M":"L"}${A.toFixed(1)},${k.toFixed(1)}`}}return Ed.jsxDEV("div",{ref:S,className:"sparkline",style:{width:f??"100%",height:c},children:x>0&&L>0&&Ed.jsxDEV("svg",{width:x,height:c,"aria-hidden":"true",children:[p&&Ed.jsxDEV("path",{className:"area",d:`${g}L${x},${c}L0,${c}Z`,fill:i},void 0,!1,void 0,this),Ed.jsxDEV("path",{className:"chart-line",d:g,stroke:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var rn=Z(ue(),1);function ie({label:l,value:i,hint:c,delta:f,spark:p,sparkColor:S,size:h="md",title:x}){let b=sM(typeof i==="string"||typeof i==="number"?i:null);return rn.jsxDEV("div",{className:"stat","data-size":h,title:x,children:[rn.jsxDEV("div",{className:"stat-label",children:l},void 0,!1,void 0,this),rn.jsxDEV("div",{className:"stat-value","data-flash":b,children:i},void 0,!1,void 0,this),(c!==void 0||f)&&rn.jsxDEV("div",{className:"stat-foot",children:[f&&rn.jsxDEV(lM,{...f},void 0,!1,void 0,this),c!==void 0&&rn.jsxDEV("span",{className:"truncate",children:c},void 0,!1,void 0,this)]},void 0,!0,void 0,this),p&&p.length>1&&rn.jsxDEV("div",{className:"stat-spark",children:rn.jsxDEV(hi,{values:p,color:S},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function la({min:l,children:i}){return rn.jsxDEV("div",{className:"stat-grid rise",style:l!==void 0?{"--stat-min":`${l}px`}:void 0,children:i},void 0,!1,void 0,this)}function lM({change:l,good:i="up"}){if(l===null||!Number.isFinite(l))return rn.jsxDEV("span",{className:"delta",children:"new"},void 0,!1,void 0,this);let c=Math.abs(l)<0.0005?0:l,f=c===0?void 0:c>0===(i==="up")?"good":"bad",p=c>0?"+":c<0?"−":"±",S=Math.abs(c)*100;return rn.jsxDEV("span",{className:"delta","data-tone":f,children:[p,S>=100?S.toFixed(0):S.toFixed(1),"%"]},void 0,!0,void 0,this)}function sM(l){let i=gi.useRef(l),[c,f]=gi.useState(!1);return gi.useEffect(()=>{if(i.current===l)return;let p=i.current!==null;if(i.current=l,!p)return;f(!0);let S=setTimeout(()=>f(!1),900);return()=>clearTimeout(S)},[l]),c}var ga=Z(ue(),1);function wt({title:l=u("common.nothing-here-yet"),hint:i}){return ga.jsxDEV("div",{className:"empty",children:[ga.jsxDEV(xd,{size:20},void 0,!1,void 0,this),ga.jsxDEV("div",{className:"empty-title",children:l},void 0,!1,void 0,this),i!==void 0&&ga.jsxDEV("div",{className:"empty-hint",children:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function yi({error:l,onRetry:i}){return ga.jsxDEV("div",{className:"error-state",role:"alert",children:[ga.jsxDEV(Vl,{size:15},void 0,!1,void 0,this),ga.jsxDEV("span",{className:"error-state-message",children:typeof l==="string"?l:l.message},void 0,!1,void 0,this),i&&ga.jsxDEV("button",{type:"button",className:"btn","data-size":"sm","data-variant":"ghost",onClick:i,children:[ga.jsxDEV(kd,{size:13},void 0,!1,void 0,this)," ",u("ui.retry")]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function qa({width:l="100%",height:i=14,style:c}){return ga.jsxDEV("div",{className:"skeleton",style:{width:l,height:i,...c}},void 0,!1,void 0,this)}function zt({height:l=220}){return ga.jsxDEV(qa,{height:l,style:{borderRadius:8}},void 0,!1,void 0,this)}function ca({rows:l=6}){return ga.jsxDEV("div",{style:{display:"flex",flexDirection:"column",gap:10,padding:"8px 16px 16px"},children:Array.from({length:l},(i,c)=>ga.jsxDEV(qa,{height:16,width:`${92-c*13%30}%`},c,!1,void 0,this))},void 0,!1,void 0,this)}function Ge({query:l,skeleton:i,isEmpty:c,empty:f,children:p}){if(l.data===null){if(l.error)return ga.jsxDEV(yi,{error:l.error,onRetry:l.refetch},void 0,!1,void 0,this);return ga.jsxDEV(ga.Fragment,{children:i},void 0,!1,void 0,this)}return ga.jsxDEV(ga.Fragment,{children:[l.error&&ga.jsxDEV(yi,{error:l.error,onRetry:l.refetch},void 0,!1,void 0,this),c?.(l.data)?f??ga.jsxDEV(wt,{},void 0,!1,void 0,this):p(l.data)]},void 0,!0,void 0,this)}var Zs=Z(gt(),1);function Xv(){return Xs()}function z(l){return l.toLocaleString(Xv())}function Ae(l){return l.toLocaleString(Xv(),{notation:"compact"})}function da(l,i){if(l===0)return"$0";let c=i!==void 0?i:l>0&&l<0.01?4:2;return`$${l.toLocaleString(Xv(),{minimumFractionDigits:c,maximumFractionDigits:c})}`}function Ht(l,i,c){return l===0&&i>0?"N/A":da(l,c)}function Yv(l){return l.usage.totalTokens>0&&l.usage.cost.total===0&&(l.provider==="xai-oauth"||l.costUnpriced===!0)}function Yl(l,i){return Ht(l.usage.cost.total,Yv(l)?1:0,i)}function Fe(l,i=1){return`${(l*100).toFixed(i)}%`}function to(l){let i=l*100;if(i>0&&i<0.005)return"<0.01%";return Fe(l,i>0&&i<0.1?2:1)}function At(l,i){if(l===null)return"-";let c=l/1000,f=i!==void 0?i:c<1?2:1;return`${c.toFixed(f)}s`}function Ks(l){if(l<60000)return At(l);let i=Math.floor(l/60000);if(i<60)return`${i}m ${String(Math.floor(l%60000/1000)).padStart(2,"0")}s`;return`${Math.floor(i/60)}h ${String(i%60).padStart(2,"0")}m`}function dr(l){if(l===null)return"-";return l.toFixed(1)}var jv=[["second",1000],["minute",60000],["hour",3600000],["day",86400000],["month",2629800000],["year",31557600000]],A1=new Map,Hm=new Map;function fa(l,i=Date.now()){let c=Xs(),f=A1.get(c);if(!f)f=new Intl.RelativeTimeFormat(c,{numeric:"auto"}),A1.set(c,f);let p=l-i,S=0;for(let b=1;b<jv.length;b++)if(Math.abs(p)>=jv[b][1])S=b;let[h,x]=jv[S];return f.format(Math.round(p/x),h)}function $v(l){let i=Xs(),c=`${i}:mdhm`,f=Hm.get(c);if(!f)f=new Intl.DateTimeFormat(i,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",hourCycle:"h23"}),Hm.set(c,f);return f.format(l)}function ln(l){let i=Xs(),c=Hm.get(i);if(!c)c=new Intl.DateTimeFormat(i,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit",hourCycle:"h23"}),Hm.set(i,c);return c.format(l)}function fr(l){return l.replace(/^\/+|\/+$/g,"")||u("common.root")}function Qv(l){if(l>=1e9)return`${(l/1e9).toFixed(1)} GB`;if(l>=1e6)return`${(l/1e6).toFixed(1)} MB`;if(l>=1000)return`${(l/1000).toFixed(1)} KB`;return`${l} B`}var Mt=Z(ue(),1);function Xt({columns:l,rows:i,rowKey:c,onRowClick:f,selectedKey:p,initialSort:S,limit:h,dense:x,empty:b,expanded:L}){let[g,C]=Zs.useState(S??null),[w,A]=Zs.useState(h??Number.POSITIVE_INFINITY),k=Zs.useMemo(()=>{let N=g?l.find((Y)=>Y.key===g.key):void 0;if(!g||!N?.sort)return i;let P=N.sort,j=g.dir==="asc"?1:-1;return[...i].sort((Y,ce)=>{let J=P(Y),te=P(ce);if(typeof J==="number"&&typeof te==="number")return(J-te)*j;return String(J).localeCompare(String(te))*j})},[i,l,g]);if(i.length===0)return Mt.jsxDEV(Mt.Fragment,{children:b??Mt.jsxDEV(wt,{},void 0,!1,void 0,this)},void 0,!1,void 0,this);let D=k.length>w?k.slice(0,w):k,M=(N)=>{if(!N.sort)return;C((P)=>P?.key===N.key?{key:N.key,dir:P.dir==="asc"?"desc":"asc"}:{key:N.key,dir:N.align==="right"?"desc":"asc"})};return Mt.jsxDEV(Mt.Fragment,{children:[Mt.jsxDEV("div",{className:"table-wrap",children:Mt.jsxDEV("table",{className:"table","data-dense":x??!1,children:[Mt.jsxDEV("thead",{children:Mt.jsxDEV("tr",{children:l.map((N)=>{let P=g?.key===N.key?g.dir:void 0;return Mt.jsxDEV("th",{"data-align":N.align??"left","data-sortable":N.sort!==void 0,"data-sorted":P,style:N.width!==void 0?{width:N.width}:void 0,title:N.title,onClick:()=>M(N),"aria-sort":P==="asc"?"ascending":P==="desc"?"descending":void 0,children:[N.header,P&&Mt.jsxDEV("span",{className:"sort-arrow",children:P==="asc"?Mt.jsxDEV(md,{size:11},void 0,!1,void 0,this):Mt.jsxDEV(cd,{size:11},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},N.key,!0,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),Mt.jsxDEV("tbody",{children:D.map((N)=>{let P=c(N),j=L?.(N)??null;return Mt.jsxDEV(Zs.Fragment,{children:[Mt.jsxDEV("tr",{"data-clickable":f!==void 0,"data-selected":p===P,onClick:f?()=>f(N):void 0,onKeyDown:f?(Y)=>{if(Y.key==="Enter"||Y.key===" ")Y.preventDefault(),f(N)}:void 0,tabIndex:f?0:void 0,children:l.map((Y)=>Mt.jsxDEV("td",{"data-align":Y.align??"left","data-wrap":Y.wrap??!1,children:Y.render(N)},Y.key,!1,void 0,this))},void 0,!1,void 0,this),j!==null&&Mt.jsxDEV("tr",{children:Mt.jsxDEV("td",{colSpan:l.length,"data-wrap":"true",style:{padding:0},children:j},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),h!==void 0&&k.length>h&&Mt.jsxDEV("div",{className:"table-more",children:[Mt.jsxDEV("span",{className:"micro",children:u("ui.table-shown-of",{shown:z(D.length),total:z(k.length)})},void 0,!1,void 0,this),k.length>w&&Mt.jsxDEV("button",{type:"button",className:"btn","data-size":"sm","data-variant":"ghost",onClick:()=>A((N)=>N+h*4),children:u("common.show-more")},void 0,!1,void 0,this),w>h&&Mt.jsxDEV("button",{type:"button",className:"btn","data-size":"sm","data-variant":"ghost",onClick:()=>A(h),children:u("ui.show-fewer")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function pa({value:l,max:i,display:c,color:f}){let p=i>0?Math.min(100,l/i*100):0;return Mt.jsxDEV("div",{className:"meter-cell",children:[Mt.jsxDEV("span",{className:"num",children:c},void 0,!1,void 0,this),Mt.jsxDEV("div",{className:"meter",children:Mt.jsxDEV("div",{className:"meter-fill",style:{width:`${p}%`,background:f}},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Ha({primary:l,secondary:i,lead:c}){return Mt.jsxDEV("div",{className:"row",style:{gap:10},children:[c,Mt.jsxDEV("div",{className:"stack",style:{gap:0},children:[Mt.jsxDEV("span",{className:"cell-primary truncate",children:l},void 0,!1,void 0,this),i!==void 0&&Mt.jsxDEV("span",{className:"cell-secondary truncate",children:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var Fm=Z(gt(),1);var Jt=Z(ue(),1);function M1(){let{sync:l,indexingHours:i,connected:c,requestSync:f}=Bm(),p=iM(l.phase==="idle"?15000:null),S,h;if(!c)S=Jt.jsxDEV(Jt.Fragment,{children:[Jt.jsxDEV(ur,{tone:"warn"},void 0,!1,void 0,this),Jt.jsxDEV("span",{children:u("shell.reconnecting")},void 0,!1,void 0,this)]},void 0,!0,void 0,this),h=u("shell.lost-connection");else if(l.phase==="syncing")S=Jt.jsxDEV(Jt.Fragment,{children:[Jt.jsxDEV(jl,{size:13,className:"spin"},void 0,!1,void 0,this),Jt.jsxDEV("span",{children:u("shell.syncing")},void 0,!1,void 0,this),l.total>0&&Jt.jsxDEV("span",{className:"live-chip-count",children:[z(l.current),"/",z(l.total)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),h=u("shell.ingesting");else if(l.phase==="error")S=Jt.jsxDEV(Jt.Fragment,{children:[Jt.jsxDEV(ur,{tone:"bad"},void 0,!1,void 0,this),Jt.jsxDEV("span",{children:u("shell.sync-failed")},void 0,!1,void 0,this)]},void 0,!0,void 0,this),h=`${l.error??u("shell.sync-failed")} — click to retry`;else if(i>uM)S=Jt.jsxDEV(Jt.Fragment,{children:[Jt.jsxDEV(jl,{size:13,className:"spin"},void 0,!1,void 0,this),Jt.jsxDEV("span",{children:u("shell.indexing")},void 0,!1,void 0,this),Jt.jsxDEV("span",{className:"live-chip-count",children:[z(i),"h left"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),h=u("shell.building-rollups");else S=Jt.jsxDEV(Jt.Fragment,{children:[Jt.jsxDEV(ur,{tone:"live",pulse:!0},void 0,!1,void 0,this),Jt.jsxDEV("span",{children:u("shell.live")},void 0,!1,void 0,this),l.lastSyncedAt!==null&&Jt.jsxDEV("span",{className:"live-chip-count",children:cM(p-l.lastSyncedAt)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),h=u("shell.sync-now");return Jt.jsxDEV("button",{type:"button",className:"live-chip",onClick:f,disabled:l.phase==="syncing",title:h,children:S},void 0,!1,void 0,this)}var uM=24;function iM(l){let[i,c]=Fm.useState(Date.now);return Fm.useEffect(()=>{if(l===null)return;c(Date.now());let f=setInterval(()=>c(Date.now()),l);return()=>clearInterval(f)},[l]),i}function cM(l){let i=Math.max(0,Math.round(l/1000));if(i<45)return u("shell.just-now");let c=Math.round(i/60);if(c<60)return`${c}m ago`;let f=Math.round(c/60);return f<24?`${f}h ago`:`${Math.round(f/24)}d ago`}var Gm=[{headingKey:"nav.usage",items:[{id:"overview",labelKey:"nav.overview",icon:Sd,hotkey:"o"},{id:"models",labelKey:"nav.models",icon:yd,hotkey:"m"},{id:"providers",labelKey:"nav.providers",icon:Gl,hotkey:"p"},{id:"costs",labelKey:"nav.costs",icon:gd,hotkey:"c"}]},{headingKey:"nav.activity",items:[{id:"requests",labelKey:"nav.requests",icon:id,hotkey:"r"},{id:"errors",labelKey:"nav.errors",icon:Hl,hotkey:"e"},{id:"traces",labelKey:"nav.traces",icon:Sn,hotkey:"t"}]},{headingKey:"nav.insights",items:[{id:"tools",labelKey:"nav.tools",icon:Rd,hotkey:"l"},{id:"frustration",labelKey:"nav.frustration",icon:Fl,hotkey:"f"},{id:"projects",labelKey:"nav.projects",icon:vd,hotkey:"j"},{id:"gain",labelKey:"nav.gain",icon:lr,hotkey:"g"}]}],dM=Gm.flatMap((l)=>l.items),D1=dM.map((l)=>l.id);var Vm=Z(gt(),1),E1="zeta-stats-theme",O1="(prefers-color-scheme: dark)";function fM(){if(typeof localStorage>"u")return"system";let l=localStorage.getItem(E1);return l==="light"||l==="dark"||l==="system"?l:"system"}function q1(){if(typeof window>"u")return"dark";return window.matchMedia(O1).matches?"dark":"light"}var Ws=fM(),Od=Ws==="system"?q1():Ws,Kv=new Set;function B1(){for(let l of Kv)l()}function Zv(){if(Od=Ws==="system"?q1():Ws,typeof document<"u")document.documentElement.dataset.theme=Od,document.documentElement.style.colorScheme=Od}if(typeof window<"u")Zv(),window.matchMedia(O1).addEventListener("change",()=>{if(Ws==="system")Zv(),B1()});function pM(l){if(Ws=l,typeof localStorage<"u")localStorage.setItem(E1,l);Zv(),B1()}function Wv(l){return Kv.add(l),()=>Kv.delete(l)}function N1(){return Vm.useSyncExternalStore(Wv,()=>Od,()=>"dark")}function z1(){let l=Vm.useSyncExternalStore(Wv,()=>Ws,()=>"system"),i=Vm.useSyncExternalStore(Wv,()=>Od,()=>"dark");return{preference:l,resolved:i,setPreference:pM}}var Jv=Z(ue(),1),mM={system:"light",light:"dark",dark:"system"},hM={system:Cd,light:Id,dark:wd},U1={system:u("shell.system-theme"),light:u("shell.light-theme"),dark:u("shell.dark-theme")};function P1(){let{preference:l,setPreference:i}=z1(),c=hM[l];return Jv.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-icon":"true",onClick:()=>i(mM[l]),"aria-label":`${U1[l]} (click to switch)`,title:`${U1[l]} — click to switch`,children:Jv.jsxDEV(c,{size:15},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var at=Z(ue(),1),gM=di.map((l,i)=>({value:l,label:u(ia(l).labelKey),title:`${u(ia(l).windowKey)} (${i+1})`}));function _1({section:l,onSectionChange:i,range:c,onRangeChange:f,children:p}){let[S,h]=vi.useState(!1),x=yM(),{sync:b}=Bm();vM(i,f);let L=(C)=>{i(C),h(!1),window.scrollTo({top:0})},g=b.phase==="syncing"?b.total>0?b.current/b.total:null:void 0;return at.jsxDEV(at.Fragment,{children:[at.jsxDEV("div",{className:"shell-ambient"},void 0,!1,void 0,this),at.jsxDEV("header",{className:"topbar","data-scrolled":x,children:[at.jsxDEV("button",{type:"button",className:"btn topbar-menu","data-variant":"ghost","data-icon":"true",onClick:()=>h(!0),"aria-label":u("nav.open-navigation"),children:at.jsxDEV(Ld,{size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this),at.jsxDEV("div",{className:"topbar-brand",children:[at.jsxDEV("svg",{className:"topbar-mark",viewBox:"0 0 64 64",width:"22",height:"22","aria-hidden":"true",children:[at.jsxDEV("defs",{children:at.jsxDEV("linearGradient",{id:"zeta-mark-grad",x1:"0",y1:"0",x2:"1",y2:"1",children:[at.jsxDEV("stop",{offset:"0",stopColor:"oklch(0.7 0.24 340)"},void 0,!1,void 0,this),at.jsxDEV("stop",{offset:".5",stopColor:"oklch(0.62 0.21 295)"},void 0,!1,void 0,this),at.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),at.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),at.jsxDEV("span",{children:"zeta"},void 0,!1,void 0,this),at.jsxDEV("span",{className:"topbar-slash",children:"/"},void 0,!1,void 0,this),at.jsxDEV("span",{className:"topbar-title",children:u("nav.breadcrumb-stats")},void 0,!1,void 0,this)]},void 0,!0,void 0,this),at.jsxDEV("div",{className:"topbar-spacer"},void 0,!1,void 0,this),at.jsxDEV("div",{className:"topbar-actions",children:[at.jsxDEV("span",{className:"topbar-hide-narrow",children:at.jsxDEV(M1,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),at.jsxDEV(_a,{options:gM,value:c,onChange:f,"aria-label":u("common.time-range")},void 0,!1,void 0,this),at.jsxDEV(P1,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this),g!==void 0&&at.jsxDEV("div",{className:"topbar-progress",children:at.jsxDEV("div",{className:"topbar-progress-fill","data-indeterminate":g===null,style:{width:`${(g??0)*100}%`}},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),S&&at.jsxDEV("div",{className:"drawer-scrim",onClick:()=>h(!1),role:"presentation"},void 0,!1,void 0,this),at.jsxDEV("nav",{className:"sidebar","data-open":S,"aria-label":u("nav.pages"),children:[Gm.map((C)=>at.jsxDEV("div",{className:"nav-group",children:[at.jsxDEV("div",{className:"nav-heading",children:u(C.headingKey)},void 0,!1,void 0,this),C.items.map((w)=>at.jsxDEV("button",{type:"button",className:"nav-row","data-active":w.id===l,"aria-current":w.id===l?"page":void 0,onClick:()=>L(w.id),children:[at.jsxDEV(w.icon,{size:15},void 0,!1,void 0,this),at.jsxDEV("span",{className:"nav-row-label",children:u(w.labelKey)},void 0,!1,void 0,this),at.jsxDEV("kbd",{children:["G ",w.hotkey.toUpperCase()]},void 0,!0,void 0,this)]},w.id,!0,void 0,this))]},C.headingKey,!0,void 0,this)),at.jsxDEV("div",{className:"sidebar-foot micro",children:[at.jsxDEV("span",{children:[at.jsxDEV("span",{className:"kbd",children:"1"},void 0,!1,void 0,this),"–",at.jsxDEV("span",{className:"kbd",children:"6"},void 0,!1,void 0,this)," ",u("shell.range-suffix")]},void 0,!0,void 0,this),at.jsxDEV("span",{children:[at.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),at.jsxDEV("main",{className:"shell-panel",children:at.jsxDEV("div",{className:"shell-content",children:p},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function yM(){let[l,i]=vi.useState(!1);return vi.useEffect(()=>{let c=()=>i(window.scrollY>4);return c(),window.addEventListener("scroll",c,{passive:!0}),()=>window.removeEventListener("scroll",c)},[]),l}function vM(l,i){vi.useEffect(()=>{let c=0,f=(p)=>{if(p.metaKey||p.ctrlKey||p.altKey||p.defaultPrevented)return;let S=p.target;if(S instanceof HTMLElement&&(S.isContentEditable||S.tagName==="INPUT"||S.tagName==="TEXTAREA"||S.tagName==="SELECT"))return;if(document.querySelector('[aria-modal="true"]'))return;let h=p.key.toLowerCase();if(c&&Date.now()-c<1200){c=0;let b=Gm.flatMap((L)=>L.items).find((L)=>L.hotkey===h);if(b)p.preventDefault(),l(b.id),window.scrollTo({top:0});return}if(h==="g"){c=Date.now();return}let x=Number(h)-1;if(Number.isInteger(x)&&x>=0&&x<di.length)p.preventDefault(),i(di[x])};return window.addEventListener("keydown",f),()=>window.removeEventListener("keydown",f)},[l,i])}var Vr=Z(gt(),1);function qd(l){let[i,c]=l.replace(/^#\/?/,"").split("?"),f=D1.includes(i)?i:"overview",p=new URLSearchParams(c??""),S=p.get("range"),h=di.includes(S??"")?S:"24h";return{section:f,range:h,session:p.get("s")}}function jm({section:l,range:i,session:c}){let f=c?`&s=${encodeURIComponent(c)}`:"";return`#/${l}?range=${i}${f}`}function H1(){let[l,i]=Vr.useState(()=>qd(window.location.hash));Vr.useEffect(()=>{let h=()=>i(qd(window.location.hash));window.addEventListener("hashchange",h),window.addEventListener("popstate",h);let x=jm(qd(window.location.hash));if(window.location.hash!==x)history.replaceState(null,"",x);return()=>{window.removeEventListener("hashchange",h),window.removeEventListener("popstate",h)}},[]);let c=Vr.useCallback((h)=>{i(h);let x=jm(h);if(window.location.hash!==x)history.pushState(null,"",x)},[]),f=Vr.useCallback((h)=>c({...l,section:h,session:h==="traces"?l.session:null}),[l,c]),p=Vr.useCallback((h)=>c({...l,range:h}),[l,c]),S=Vr.useCallback((h)=>c({...l,session:h}),[l,c]);return{...l,setSection:f,setRange:p,setSession:S}}var Ud=Z(gt(),1);var pr=Z(ue(),1);function Bd({items:l,max:i,onSelect:c}){let f=i??Math.max(0,...l.map((p)=>p.value));return pr.jsxDEV("div",{className:"bar-list",children:l.map((p)=>{let S=f>0?Math.max(0.5,p.value/f*100):0,h=pr.jsxDEV(pr.Fragment,{children:[pr.jsxDEV("span",{className:"bar-list-fill",style:{width:`${S}%`,background:p.color??"var(--chart-primary)"}},void 0,!1,void 0,this),pr.jsxDEV("span",{className:"bar-list-label",children:p.label},void 0,!1,void 0,this),pr.jsxDEV("span",{className:"bar-list-value",children:p.display??z(p.value)},void 0,!1,void 0,this)]},void 0,!0,void 0,this);return c?pr.jsxDEV("button",{type:"button",className:"bar-list-row",onClick:()=>c(p.key),children:h},p.key,!1,void 0,this):pr.jsxDEV("div",{className:"bar-list-row",children:h},p.key,!1,void 0,this)})},void 0,!1,void 0,this)}var jr=Z(gt(),1);var bt=Z(ue(),1),Js=10,bM=24,xM=68,SM=4;function Tn({slots:l,tickLabel:i,tooltipTitle:c,series:f,kind:p="bars",stacked:S=!0,height:h=220,format:x=Ae,formatRight:b,formatTooltip:L,yMax:g,yMaxRight:C,hidden:w,showTotal:A,references:k,onSelect:D,emptyLabel:M="No data in this range",tooltipExtra:N}){let[P,j]=_m(),[Y,ce]=jr.useState(null),J=jr.useId().replace(/:/g,""),te=jr.useMemo(()=>f.filter((V)=>!w?.has(V.key)),[f,w]),X=jr.useMemo(()=>{let V=te.filter((ft)=>ft.axis!=="right"),Re=te.filter((ft)=>ft.axis==="right"),oe=(ft)=>S&&(ft.kind??p)!=="line",ve=new Map,G=Array.from({length:l},()=>0),_e=0;for(let ft of V)if(oe(ft)){let Oe=G.slice();ve.set(ft.key,Oe);for(let un=0;un<l;un++)G[un]+=ft.values[un]??0}else for(let Oe=0;Oe<l;Oe++)_e=Math.max(_e,ft.values[Oe]??0);for(let ft of G)_e=Math.max(_e,ft);let Qe=0;for(let ft of Re)for(let Oe=0;Oe<l;Oe++)Qe=Math.max(Qe,ft.values[Oe]??0);for(let ft of k??[])if(ft.axis==="right")Qe=Math.max(Qe,ft.value);else _e=Math.max(_e,ft.value);let Ue=F1(g??_e),dt=Re.length>0?F1(C??Qe):null,et=te.every((ft)=>ft.values.every((Oe)=>!Oe));return{left:V,right:Re,bases:ve,stackable:oe,leftScale:Ue,rightScale:dt,empty:et}},[te,l,S,p,g,C,k]),ae=X.leftScale.ticks.map((V)=>x(V)),H=X.rightScale?.ticks.map((V)=>(b??x)(V))??[],de=Math.max(28,G1(ae)+12),xe=X.rightScale?Math.max(28,G1(H)+12):8,Ce=Math.max(0,j-de-xe),Ne=h-Js-bM,ne=l>0?Ce/l:0,me=(V)=>Js+Ne-V/X.leftScale.max*Ne,ke=(V)=>Js+Ne-V/(X.rightScale?.max??1)*Ne,$e=(V)=>de+(V+0.5)*ne,xt=te.filter((V)=>(V.kind??p)==="bars"),W=xt.filter((V)=>!X.stackable(V)||V.axis==="right"),ze=Math.max(1,Math.min(56,ne*(ne>6?0.72:0.9))),Ct=Math.max(1,Math.ceil(l/Math.max(1,Math.floor(Ce/xM)))),it=(V)=>{let Re=V.currentTarget.getBoundingClientRect(),oe=Math.floor((V.clientX-Re.left)/(Re.width/l));ce(oe>=0&&oe<l?oe:null)},ct=Y===null?[]:te.filter((V)=>V.tooltip!==!1).map((V)=>({s:V,v:V.values[Y]})).filter((V)=>V.v!==null&&V.v!==void 0&&(V.v!==0||te.length===1)).sort((V,Re)=>te.length>1?Re.v-V.v:0),Me=ct.filter((V)=>V.s.axis!=="right").reduce((V,Re)=>V+Re.v,0),ye=A??(S&&X.left.length>1);return bt.jsxDEV("div",{className:"chart",ref:P,"data-hovering":Y!==null,style:{height:h},children:[j>0&&bt.jsxDEV("svg",{width:j,height:h,role:"img",children:[bt.jsxDEV("defs",{children:te.filter((V)=>V.pattern==="hatch").map((V)=>bt.jsxDEV("pattern",{id:`${J}-${eb(V.key)}`,width:"5",height:"5",patternUnits:"userSpaceOnUse",patternTransform:"rotate(45)",children:[bt.jsxDEV("rect",{width:"5",height:"5",fill:V.color,fillOpacity:"0.14"},void 0,!1,void 0,this),bt.jsxDEV("rect",{width:"1.6",height:"5",fill:V.color},void 0,!1,void 0,this)]},V.key,!0,void 0,this))},void 0,!1,void 0,this),bt.jsxDEV("g",{className:"chart-grid",children:X.leftScale.ticks.map((V)=>bt.jsxDEV("line",{x1:de,x2:de+Ce,y1:me(V),y2:me(V)},V,!1,void 0,this))},void 0,!1,void 0,this),bt.jsxDEV("g",{className:"chart-axis",children:[X.leftScale.ticks.map((V,Re)=>bt.jsxDEV("text",{x:de-8,y:me(V),dy:"0.32em",textAnchor:"end",children:ae[Re]},V,!1,void 0,this)),X.rightScale?.ticks.map((V,Re)=>bt.jsxDEV("text",{x:de+Ce+8,y:ke(V),dy:"0.32em",textAnchor:"start",children:H[Re]},V,!1,void 0,this)),Array.from({length:l},(V,Re)=>Re%Ct===0?bt.jsxDEV("text",{x:$e(Re),y:h-6,textAnchor:"middle",children:i(Re)},Re,!1,void 0,this):null)]},void 0,!0,void 0,this),Y!==null&&bt.jsxDEV("rect",{className:"chart-cursor",x:de+Y*ne,y:Js,width:ne,height:Ne},void 0,!1,void 0,this),te.filter((V)=>(V.kind??p)==="area").map((V)=>{let Re=V.axis==="right"?ke:me,oe=X.bases.get(V.key),ve=(Ue)=>(oe?.[Ue]??0)+(V.values[Ue]??0),G=V1(l,$e,(Ue)=>Re(ve(Ue))),_e=Array.from({length:l},(Ue,dt)=>l-1-dt).map((Ue)=>`L${$e(Ue).toFixed(1)},${Re(oe?.[Ue]??0).toFixed(1)}`).join(""),Qe=V.pattern==="hatch"?`url(#${J}-${eb(V.key)})`:V.color;return bt.jsxDEV("g",{children:[bt.jsxDEV("path",{d:`${G}${_e}Z`,fill:Qe,fillOpacity:V.pattern?1:0.2},void 0,!1,void 0,this),bt.jsxDEV("path",{className:"chart-line",d:G,stroke:V.color},void 0,!1,void 0,this)]},V.key,!0,void 0,this)}),xt.map((V)=>{let Re=V.axis==="right"?ke:me,oe=X.bases.get(V.key),ve=W.indexOf(V),G=ve>=0?ze/W.length:ze,_e=V.pattern==="hatch"?`url(#${J}-${eb(V.key)})`:V.color;return bt.jsxDEV("g",{children:V.values.map((Qe,Ue)=>{if(!Qe)return null;let dt=ve>=0?0:oe?.[Ue]??0,et=Re(dt),ft=Re(dt+Qe),Oe=$e(Ue)-ze/2+(ve>=0?ve*G:0);return bt.jsxDEV("rect",{className:"chart-bar","data-hover":Y===Ue,x:Oe,y:Math.min(et,ft),width:Math.max(1,G-(ve>=0&&W.length>1?1:0)),height:Math.max(Qe>0?1:0,Math.abs(et-ft)),fill:_e},Ue,!1,void 0,this)})},V.key,!1,void 0,this)}),te.filter((V)=>(V.kind??p)==="line").map((V)=>{let Re=V.axis==="right"?ke:me,oe=(ve)=>{let G=V.values[ve];return G===null||G===void 0?null:Re(G)};return bt.jsxDEV("g",{children:[bt.jsxDEV("path",{className:"chart-line",d:V1(l,$e,oe),stroke:V.color,strokeDasharray:V.dashed?"4 3":void 0},void 0,!1,void 0,this),V.values.map((ve,G)=>{let _e=oe(G);if(_e===null||G>0&&oe(G-1)!==null||G<l-1&&oe(G+1)!==null)return null;return bt.jsxDEV("circle",{cx:$e(G),cy:_e,r:2.5,fill:V.color},G,!1,void 0,this)})]},V.key,!0,void 0,this)}),k?.map((V)=>{let Re=V.axis==="right"?ke(V.value):me(V.value);return bt.jsxDEV("g",{className:"chart-axis",children:[bt.jsxDEV("line",{x1:de,x2:de+Ce,y1:Re,y2:Re,stroke:"var(--line-4)",strokeDasharray:"3 3"},void 0,!1,void 0,this),V.label&&bt.jsxDEV("text",{x:de+Ce-4,y:Re-5,textAnchor:"end",children:V.label},void 0,!1,void 0,this)]},`${V.axis??"left"}:${V.value}`,!0,void 0,this)}),bt.jsxDEV("line",{className:"chart-baseline",x1:de,x2:de+Ce,y1:me(0),y2:me(0)},void 0,!1,void 0,this),bt.jsxDEV("rect",{x:de,y:Js,width:Ce,height:Ne,fill:"transparent",onPointerMove:it,onPointerLeave:()=>ce(null),onClick:D&&Y!==null?()=>D(Y):void 0,style:{cursor:D?"pointer":"crosshair"}},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X.empty&&bt.jsxDEV("div",{className:"chart-empty",children:M},void 0,!1,void 0,this),Y!==null&&!X.empty&&bt.jsxDEV("div",{className:"chart-tooltip",style:$e(Y)>j/2?{right:j-$e(Y)+Math.min(ne/2,24)+8,top:Js}:{left:$e(Y)+Math.min(ne/2,24)+8,top:Js},children:[bt.jsxDEV("div",{className:"chart-tooltip-title",children:(c??i)(Y)},void 0,!1,void 0,this),ct.map(({s:V,v:Re})=>bt.jsxDEV("div",{className:"chart-tooltip-row",children:[bt.jsxDEV("span",{className:"swatch",style:{background:V.color}},void 0,!1,void 0,this),bt.jsxDEV("span",{className:"chart-tooltip-label",children:V.label},void 0,!1,void 0,this),bt.jsxDEV("span",{className:"chart-tooltip-value",children:V.axis==="right"?(b??x)(Re):(L??x)(Re)},void 0,!1,void 0,this)]},V.key,!0,void 0,this)),ye&&ct.length>1&&bt.jsxDEV("div",{className:"chart-tooltip-row chart-tooltip-total",children:[bt.jsxDEV("span",{className:"chart-tooltip-label",children:"Total"},void 0,!1,void 0,this),bt.jsxDEV("span",{className:"chart-tooltip-value",children:(L??x)(Me)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),N&&bt.jsxDEV(jr.Fragment,{children:N(Y)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function F1(l){if(!(l>0))return{max:1,ticks:[0]};let i=l/SM,c=10**Math.floor(Math.log10(i)),f=[1,2,2.5,5,10].map((h)=>h*c).find((h)=>h>=i)??10*c,p=Math.ceil(l/f)*f,S=[];for(let h=0;h<=p+f/2;h+=f)S.push(Number(h.toPrecision(12)));return{max:p,ticks:S}}function G1(l){return l.reduce((i,c)=>Math.max(i,c.length*6.3),0)}function V1(l,i,c){let f="",p=!1;for(let S=0;S<l;S++){let h=c(S);if(h===null){p=!1;continue}f+=`${p?"L":"M"}${i(S).toFixed(1)},${h.toFixed(1)}`,p=!0}return f}function eb(l){return l.replace(/[^a-zA-Z0-9_-]/g,"_")}var Xm=Z(gt(),1),mr=Z(ue(),1);function Ka({items:l,hidden:i,onToggle:c}){return mr.jsxDEV("div",{className:"legend",children:l.map((f)=>{let p=mr.jsxDEV(mr.Fragment,{children:[mr.jsxDEV("span",{className:"swatch",style:{background:f.color}},void 0,!1,void 0,this),mr.jsxDEV("span",{className:"truncate",children:f.label},void 0,!1,void 0,this),f.value&&mr.jsxDEV("span",{className:"legend-value",children:f.value},void 0,!1,void 0,this)]},void 0,!0,void 0,this);return c?mr.jsxDEV("button",{type:"button",className:"legend-item","data-off":i?.has(f.key)??!1,onClick:()=>c(f.key),title:f.label,children:p},f.key,!1,void 0,this):mr.jsxDEV("span",{className:"legend-item",title:f.label,children:p},f.key,!1,void 0,this)})},void 0,!1,void 0,this)}function sn(){let[l,i]=Xm.useState(()=>new Set),c=Xm.useCallback((f)=>{i((p)=>{let S=new Set(p);if(!S.delete(f))S.add(f);return S})},[]);return[l,c]}var tb=Z(ue(),1);function $l({segments:l,height:i=8}){let c=l.reduce((f,p)=>f+Math.max(0,p.value),0);return tb.jsxDEV("div",{className:"share-bar",style:{height:i},role:"img",children:c>0&&l.filter((f)=>f.value>0).map((f)=>tb.jsxDEV("div",{className:"share-bar-seg",style:{flexGrow:f.value/c,background:f.color},title:`${f.label}: ${(f.value/c*100).toFixed(1)}%`},f.key,!1,void 0,this))},void 0,!1,void 0,this)}var j1=Z(ue(),1);function Xr({buckets:l,bucketMs:i,onSelectBucket:c,...f}){return j1.jsxDEV(Tn,{...f,slots:l.length,tickLabel:(p)=>Em(l[p],i),tooltipTitle:(p)=>Dm(l[p],i),onSelect:c?(p)=>c(l[p]):void 0},void 0,!1,void 0,this)}var Fa=["#5ad8e6","#ed4abf","#9d7bff","#f5b54a","#4ade80","#5b8cff","#ff7a59","#2dd4bf","#c3e94f","#fb7185"],ao="#6c6c74";function ba(l,i){return`${l}::${i}`}function Ym(l){return Nd(l.map((i)=>({key:ba(i.model,i.provider),weight:i.totalRequests})))}function Nd(l){let i=[...l].sort((c,f)=>f.weight-c.weight||c.key.localeCompare(f.key));return new Map(i.map((c,f)=>[c.key,Fa[f%Fa.length]]))}var xa=Z(gt(),1);var LM={entries:new Map,limit:128},CM={entries:new Map,limit:4},wM={entries:new Map,limit:16},eu=new Map;function X1(l){if(l.startsWith('["trace",'))return CM;if(l.startsWith('["request",'))return wM;return LM}function zd(l){return X1(l).entries.get(l)}function Y1(l){return eu.get(l)}function kM(l,i){let{entries:c,limit:f}=X1(l);if(c.delete(l),c.set(l,i),c.size>f){let p=c.keys().next().value;if(p!==void 0)c.delete(p)}}function $1(l,i,c){let f=eu.get(l);if(f)return f.waiters++,f;let p=new AbortController,S=zd(l)?.data,h={promise:c({signal:p.signal},S).then((x)=>(kM(l,{data:x,updatedAt:Date.now(),version:i}),x)).finally(()=>{if(eu.get(l)===h)eu.delete(l)}),controller:p,waiters:1};return eu.set(l,h),h}function ab(l,i){if(i.waiters--,i.waiters>0)return;if(eu.get(l)===i)eu.delete(l);i.controller.abort()}var TM=1500;function Ft(l,i,c){let f=JSON.stringify(l),p=c?.enabled??!0,S=c?.pollMs,h=k1(p),[,x]=xa.useReducer((te)=>te+1,0),[b,L]=xa.useState(null),[g,C]=xa.useState(!1),w=xa.useRef(i);w.current=i;let A=xa.useRef(f);A.current=f;let k=xa.useRef(null),D=xa.useRef(0),M=xa.useRef(null),N=xa.useCallback((te)=>{D.current=Date.now();let X=M.current;if(X?.key===te&&Y1(te)===X.request)return;let ae=zd(te)?.data;C(!0);let H=$1(te,C1(),w.current);if(M.current={key:te,request:H},X)ab(X.key,X.request);H.promise.then((de)=>{if(A.current!==te)return;if(de===ae){L((xe)=>xe===null?xe:null);return}xa.startTransition(()=>{L(null),x()})}).catch((de)=>{if(A.current!==te||H.controller.signal.aborted)return;L({key:te,error:de instanceof Error?de:Error(String(de))})}).finally(()=>{if(M.current?.request===H)M.current=null;if(A.current===te)C(!1)})},[]),P=xa.useCallback(()=>{let te=M.current;if(M.current=null,te)ab(te.key,te.request)},[]);xa.useEffect(()=>P,[P]),xa.useEffect(()=>{if(!p||M.current&&M.current.key!==f)P();if(!p)return;let te=zd(f);if(te&&te.version>=h)return;let X=te?D.current+TM-Date.now():0;if(X<=0){N(f);return}let ae=setTimeout(()=>N(f),X);return()=>clearTimeout(ae)},[f,p,h,N,P]),xa.useEffect(()=>{if(!p||!S)return;let te=setInterval(()=>{if(!document.hidden)N(A.current)},S);return()=>clearInterval(te)},[p,S,N]);let j=xa.useCallback(()=>N(A.current),[N]),Y=zd(f);if(Y)k.current={key:f,data:Y.data,updatedAt:Y.updatedAt};let ce=k.current,J=b?.key===f?b.error:null;return{data:ce?.data??null,error:J,loading:!ce&&!J,stale:!!ce&&ce.key!==f,refreshing:g,updatedAt:ce?.updatedAt??null,refetch:j}}function Sa(l,i,c){let f=Q1(i),p=Array.from({length:i.length},()=>0);for(let S of l){let h=f.get(S.timestamp);if(h!==void 0)p[h]+=c(S)}return p}function hr(l,i){let c=Q1(i.buckets),f=new Map;for(let L of l){let g=c.get(L.timestamp);if(g===void 0)continue;let C=i.key(L),w=f.get(C);if(!w)w=Array.from({length:i.buckets.length},()=>0),f.set(C,w);w[g]+=i.value(L)}let p=[...f.entries()].map(([L,g])=>({key:L,values:g,total:g.reduce((C,w)=>C+w,0)})).filter((L)=>L.total!==0).sort((L,g)=>g.total-L.total||L.key.localeCompare(g.key)),S=i.limit??Number.POSITIVE_INFINITY,h=p.slice(0,S),x=p.slice(S),b=h.map((L,g)=>({key:L.key,label:i.label?i.label(L.key):L.key,color:i.colors?.get(L.key)??Fa[g%Fa.length],values:L.values}));if(x.length>0){let L=Array.from({length:i.buckets.length},()=>0);for(let g of x)for(let C=0;C<L.length;C++)L[C]+=g.values[C];b.push({key:"__other__",label:u("common.other-n",{count:x.length}),color:ao,values:L})}return b}function Q1(l){let i=new Map;for(let c=0;c<l.length;c++)i.set(l[c],c);return i}var IM=["main","subagent","advisor"];function Ql(l){return l.totalInputTokens+l.totalOutputTokens+l.totalCacheReadTokens+l.totalCacheWriteTokens}function W1(l){let i=new Map;for(let h of l)i.set(h.agentType,h);let c=IM.map((h)=>i.get(h)).filter((h)=>h!==void 0),f=c.reduce((h,x)=>h+Ql(x),0),p=c.reduce((h,x)=>h+x.totalCost,0),S=c.map((h)=>{let x=Ql(h);return{agentType:h.agentType,tokens:x,requests:h.totalRequests,cost:h.totalCost,share:f>0?x/f:0}});return{totalTokens:f,totalCost:p,segments:S}}function J1(l){let i={totalCost:0,requests:0,unpricedRequests:0,activeDays:new Set(l.map((p)=>p.timestamp)).size,avgDailyCost:0,costInput:0,costOutput:0,costCacheRead:0,costCacheWrite:0,models:[],topModel:null},c=new Map;for(let p of l){let S=ba(p.model,p.provider),h=c.get(S);if(!h)h={key:S,model:p.model,provider:p.provider,cost:0,requests:0,unpricedRequests:0,costInput:0,costOutput:0,costCacheRead:0,costCacheWrite:0,share:0},c.set(S,h);K1(h,p),K1(i,p),h.cost+=p.cost,i.totalCost+=p.cost}i.avgDailyCost=i.activeDays>0?i.totalCost/i.activeDays:0,i.models=[...c.values()].sort((p,S)=>S.cost-p.cost||S.requests-p.requests||p.key.localeCompare(S.key));for(let p of i.models)p.share=i.totalCost>0?p.cost/i.totalCost:0;let f=i.models[0];return i.topModel=f!==void 0&&f.cost>0?f:null,i}function K1(l,i){l.costInput+=i.costInput,l.costOutput+=i.costOutput,l.costCacheRead+=i.costCacheRead,l.costCacheWrite+=i.costCacheWrite,l.requests+=i.requests,l.unpricedRequests+=i.unpricedRequests}function eT(l){let i=new Map;for(let c of l){let f=ba(c.model,c.provider),p=i.get(f);if(!p)p=[],i.set(f,p);p.push({timestamp:c.timestamp,avgTtftSeconds:c.avgTtft!==null?c.avgTtft/1000:null,avgTokensPerSecond:c.avgTokensPerSecond,requests:c.requests})}for(let c of i.values())c.sort((f,p)=>f.timestamp-p.timestamp);return i}var RM=/^\/?-?(?:private-)?(?:tmp|var-folders)(?:[-/]|$)/;function tT(l){let i=0,c=0,f=0,p=0,S=0,h=0,x=0,b=0,L=0;for(let w of l){if(i+=w.totalRequests,c+=w.failedRequests,f+=w.totalCost,p+=w.unpricedRequests,S+=w.totalInputTokens+w.totalCacheReadTokens+w.totalCacheWriteTokens+w.totalOutputTokens,h+=w.totalInputTokens,x+=w.totalCacheReadTokens,w.totalRequests>b)b=w.totalRequests;if(w.totalCost>L)L=w.totalCost}let g=0;return{rows:l.map((w)=>{let A=RM.test(w.folder);if(A)g++;return{...w,conversationTokens:w.totalInputTokens+w.totalCacheReadTokens+w.totalCacheWriteTokens+w.totalOutputTokens,requestShare:i>0?w.totalRequests/i:0,costShare:f>0?w.totalCost/f:0,temporary:A}}),totalRequests:i,failedRequests:c,totalCost:f,unpricedRequests:p,conversationTokens:S,cacheRate:h+x>0?x/(h+x):0,maxRequests:b,maxCost:L,temporaryCount:g}}function aT(l){let i=0,c=0,f=0;for(let p of l)i+=p.calls,c+=p.totalTokensShare,f+=p.costShare;return l.map((p)=>({...p,errorRate:p.calls>0?p.errors/p.calls:0,callFraction:i>0?p.calls/i:0,tokenFraction:c>0?p.totalTokensShare/c:0,costFraction:f>0?p.costShare/f:0,avgResultChars:p.calls>0?p.resultChars/p.calls:0}))}function Yr(l){if(l.stopReason==="aborted")return"aborted";if(l.stopReason==="error"||l.errorMessage)return"failed";return"ok"}function ob(l,i){if(l.length===0)return null;return l[Math.min(l.length-1,Math.max(0,Math.ceil(i*l.length)-1))]}function oT(l){let i=0,c=0,f=0,p=0,S=0,h=null,x=null,b=[],L=[];for(let g of l){let C=Yr(g);if(C==="failed")i++;else if(C==="aborted")c++;if(f+=g.usage.totalTokens,p+=g.usage.cost.total,Yv(g))S++;if(g.duration!==null)b.push(g.duration);if(g.ttft!==null)L.push(g.ttft);if(h===null||g.timestamp<h)h=g.timestamp;if(x===null||g.timestamp>x)x=g.timestamp}return b.sort((g,C)=>g-C),L.sort((g,C)=>g-C),{requests:l.length,failed:i,aborted:c,tokens:f,cost:p,unpriced:S,medianDuration:ob(b,0.5),p95Duration:ob(b,0.95),medianTtft:ob(L,0.5),oldest:h,newest:x}}var Z1=180,AM=/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/gi,MM=/\b(?:req|msg|call|toolu|chatcmpl|resp|run|gen)[-_][A-Za-z0-9_-]{6,}/g,DM=/\b[0-9a-f]{12,}\b/gi,EM=/(?<![\w.-])\d+(?:\.\d+)?/g,OM=/^[1-5]\d\d$/;function nb(l){if(!l?.trim())return"Unknown error";let i=l.replace(/\s+/g," ").trim().replace(AM,"<id>").replace(MM,"<id>").replace(DM,"<hex>").replace(EM,(c)=>OM.test(c)?c:"N");return i.length>Z1?`${i.slice(0,Z1-1)}…`:i}function nT(l){let i=new Map;for(let c of l){let f=nb(c.errorMessage),p=i.get(f);if(!p)p={signature:f,count:0,firstSeen:c.timestamp,lastSeen:c.timestamp,latest:c,models:[],byModel:new Map},i.set(f,p);if(p.count++,c.timestamp<p.firstSeen)p.firstSeen=c.timestamp;if(c.timestamp>p.lastSeen)p.lastSeen=c.timestamp,p.latest=c;let S=ba(c.model,c.provider),h=p.byModel.get(S);if(h)h.count++;else p.byModel.set(S,{model:c.model,provider:c.provider,count:1})}return[...i.values()].map(({byModel:c,...f})=>({...f,models:[...c.values()].sort((p,S)=>S.count-p.count||p.model.localeCompare(S.model))})).sort((c,f)=>f.count-c.count||f.lastSeen-c.lastSeen)}var De=Z(ue(),1),qM=[{value:"model",label:u("costs.by-model")},{value:"component",label:u("costs.by-component")}],BM=6,NM=86400000,Pd=[{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"}],zM=new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric",timeZone:"UTC"}),UM=new Intl.DateTimeFormat(void 0,{weekday:"short",month:"short",day:"numeric",year:"numeric",timeZone:"UTC"});function rT({active:l,range:i}){let c=Ft(["costs",i],({signal:w})=>n1(i,w),{enabled:l}),f=ia(i),[p,S]=Ud.useState("model"),[h,x]=sn(),b=Ud.useMemo(()=>c.data?PM(c.data,i):null,[c.data,i]),L=Ud.useMemo(()=>b?FM(b):[],[b]),g=(w)=>w.costSeries.length===0,C=De.jsxDEV(wt,{title:u("costs.no-usage-in-range"),hint:u("costs.empty-hint")},void 0,!1,void 0,this);return De.jsxDEV("div",{className:"page",children:[De.jsxDEV(ra,{title:u("costs.title"),description:u("costs.description",{window:u(f.windowKey)})},void 0,!1,void 0,this),De.jsxDEV(Ge,{query:c,skeleton:De.jsxDEV(qa,{height:112,style:{borderRadius:12}},void 0,!1,void 0,this),isEmpty:g,empty:C,children:()=>b&&De.jsxDEV(_M,{view:b,stale:c.stale},void 0,!1,void 0,this)},void 0,!1,void 0,this),De.jsxDEV("div",{className:"grid grid-main-side",children:[De.jsxDEV(Ye,{index:1,title:u("costs.daily-estimate"),description:p==="model"?u("costs.daily-by-model"):u("costs.daily-by-component"),actions:De.jsxDEV(_a,{size:"sm",options:qM,value:p,onChange:S,"aria-label":u("costs.split-by")},void 0,!1,void 0,this),stale:c.stale,children:De.jsxDEV(Ge,{query:c,skeleton:De.jsxDEV(zt,{height:280},void 0,!1,void 0,this),isEmpty:g,empty:C,children:()=>{if(!b)return null;let w=p==="model"?b.modelSeries:b.componentSeries;return De.jsxDEV("div",{className:"stack",style:{gap:12},children:[De.jsxDEV(Tn,{slots:b.buckets.length,tickLabel:(A)=>zM.format(b.buckets[A]),tooltipTitle:(A)=>UM.format(b.buckets[A]),series:w,hidden:h,height:280,format:(A)=>da(A,Number.isInteger(A)?0:2),formatTooltip:(A)=>da(A),emptyLabel:u("costs.no-priced-usage"),tooltipExtra:(A)=>b.unpricedPerDay[A]>0?De.jsxDEV("div",{className:"chart-tooltip-row chart-tooltip-total",children:[De.jsxDEV("span",{className:"chart-tooltip-label",children:u("costs.unpriced-requests")},void 0,!1,void 0,this),De.jsxDEV("span",{className:"chart-tooltip-value",children:z(b.unpricedPerDay[A])},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null},void 0,!1,void 0,this),De.jsxDEV(Ka,{items:w.map((A)=>({key:A.key,label:A.label,color:A.color,value:da(GM(A.values))})),hidden:h,onToggle:x},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}},void 0,!1,void 0,this)},void 0,!1,void 0,this),De.jsxDEV(Ye,{index:2,title:u("costs.where-it-went"),description:u("costs.estimate-by-component"),stale:c.stale,children:De.jsxDEV(Ge,{query:c,skeleton:De.jsxDEV(zt,{height:280},void 0,!1,void 0,this),isEmpty:g,empty:C,children:()=>b&&De.jsxDEV(HM,{summary:b.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),De.jsxDEV(Ye,{index:3,title:u("costs.by-model"),description:u("costs.by-model-description"),stale:c.stale,flush:!0,children:De.jsxDEV(Ge,{query:c,skeleton:De.jsxDEV(ca,{rows:8},void 0,!1,void 0,this),isEmpty:g,empty:C,children:()=>b&&De.jsxDEV(Xt,{rows:b.summary.models,rowKey:(w)=>w.key,columns:L,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 PM(l,i){let c=l.costSeries,f=J1(c),p=Ym(f.models.map((L)=>({model:L.model,provider:L.provider,totalRequests:L.requests}))),S=new Map(f.models.map((L)=>[L.key,L])),h=_o(i,c.map((L)=>L.timestamp),NM),x=hr(c,{buckets:h,key:(L)=>ba(L.model,L.provider),label:(L)=>S.get(L)?.model??L,value:(L)=>L.cost,limit:BM,colors:p}).map((L)=>({...L,values:L.values.map((g)=>g||null)})),b=new Set;for(let L of x){if(L.key==="__other__")continue;if(b.has(L.color))L.color=Fa.find((g)=>!b.has(g))??L.color;b.add(L.color)}return{summary:f,swatches:new Map(x.filter((L)=>L.key!=="__other__").map((L)=>[L.key,L.color])),buckets:h,dailyTotals:Sa(c,h,(L)=>L.cost),unpricedPerDay:Sa(c,h,(L)=>L.unpricedRequests),modelSeries:x,componentSeries:Pd.map((L)=>({key:L.key,label:L.label,color:L.color,values:Sa(c,h,(g)=>g[L.key]).map((g)=>g||null)})),maxModelCost:f.models[0]?.cost??0}}function _M({view:l,stale:i}){let{summary:c}=l,f=c.requests-c.unpricedRequests,p=c.topModel;return De.jsxDEV("div",{"data-stale":i,children:De.jsxDEV(la,{min:180,children:[De.jsxDEV(ie,{label:u("costs.api-equivalent-estimate"),title:u("costs.api-estimate-title"),value:Ht(c.totalCost,c.unpricedRequests),hint:u("costs.requests-n",{count:z(c.requests)}),spark:l.dailyTotals,sparkColor:"var(--chart-secondary)"},void 0,!1,void 0,this),De.jsxDEV(ie,{label:u("costs.average-per-day"),title:u("costs.average-per-day-title"),value:Ht(c.avgDailyCost,c.unpricedRequests),hint:u(c.activeDays===1?"costs.active-days-one":"costs.active-days-n",{count:z(c.activeDays)})},void 0,!1,void 0,this),De.jsxDEV(ie,{label:u("costs.top-model"),title:p?`${p.model} (${p.provider})`:void 0,value:p?p.model:"–",hint:p?u("costs.top-model-hint",{cost:da(p.cost),share:Fe(p.share)}):u("costs.nothing-priced-yet")},void 0,!1,void 0,this),De.jsxDEV(ie,{label:u("costs.per-priced-request"),title:u("costs.per-priced-request-title"),value:f>0?lT(c.totalCost/f):"–",hint:u("costs.priced-n",{count:z(f)})},void 0,!1,void 0,this),De.jsxDEV(ie,{label:u("costs.unpriced-requests"),title:u("costs.unpriced-title"),value:z(c.unpricedRequests),hint:c.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 HM({summary:l}){return De.jsxDEV("div",{className:"stack",style:{gap:14},children:[De.jsxDEV($l,{height:10,segments:Pd.map((i)=>({key:i.key,label:i.label,value:l[i.key],color:i.color}))},void 0,!1,void 0,this),De.jsxDEV("div",{className:"costs-components",children:[Pd.map((i)=>De.jsxDEV("div",{className:"costs-component-row",children:[De.jsxDEV("span",{className:"row",children:[De.jsxDEV(Cn,{color:i.color},void 0,!1,void 0,this),i.label]},void 0,!0,void 0,this),De.jsxDEV("span",{className:"num",children:da(l[i.key])},void 0,!1,void 0,this),De.jsxDEV("span",{className:"num dim costs-component-share",children:l.totalCost>0?Fe(l[i.key]/l.totalCost):"–"},void 0,!1,void 0,this)]},i.key,!0,void 0,this)),De.jsxDEV("div",{className:"costs-component-row costs-component-total",children:[De.jsxDEV("span",{children:u("common.total")},void 0,!1,void 0,this),De.jsxDEV("span",{className:"num",children:Ht(l.totalCost,l.unpricedRequests)},void 0,!1,void 0,this),De.jsxDEV("span",{className:"costs-component-share"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),l.unpricedRequests>0&&De.jsxDEV("p",{className:"micro dim",children:u(l.unpricedRequests===1?"costs.unpriced-note-one":"costs.unpriced-note-n",{count:z(l.unpricedRequests)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function FM(l){let i=Pd.map((c)=>({key:c.key,header:c.label,align:"right",sort:(f)=>f[c.key],render:(f)=>De.jsxDEV("span",{className:"num",children:da(f[c.key])},void 0,!1,void 0,this)}));return[{key:"model",header:u("common.model"),sort:(c)=>c.model,render:(c)=>De.jsxDEV(Ha,{lead:De.jsxDEV(Cn,{color:l.swatches.get(c.key)??ao},void 0,!1,void 0,this),primary:De.jsxDEV("span",{className:"mono",children:c.model},void 0,!1,void 0,this),secondary:c.provider},void 0,!1,void 0,this)},{key:"requests",header:u("common.requests"),align:"right",sort:(c)=>c.requests,render:(c)=>De.jsxDEV("span",{className:"num",children:z(c.requests)},void 0,!1,void 0,this)},{key:"cost",header:u("costs.estimate"),title:u("costs.estimate-title"),align:"right",sort:(c)=>c.cost,render:(c)=>De.jsxDEV(pa,{value:c.cost,max:l.maxModelCost,display:Ht(c.cost,c.unpricedRequests),color:l.swatches.get(c.key)??ao},void 0,!1,void 0,this)},{key:"share",header:u("common.share"),align:"right",sort:(c)=>c.share,render:(c)=>De.jsxDEV("span",{className:"num muted",children:c.cost>0?Fe(c.share):"–"},void 0,!1,void 0,this)},{key:"split",header:u("costs.split"),title:"Input · output · cache read · cache write",width:150,render:(c)=>c.cost>0?De.jsxDEV($l,{segments:Pd.map((f)=>({key:f.key,label:f.label,value:c[f.key],color:f.color}))},void 0,!1,void 0,this):De.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this)},...i,{key:"perRequest",header:u("costs.per-request"),title:"Estimate ÷ priced requests",align:"right",sort:(c)=>c.requests>c.unpricedRequests?c.cost/(c.requests-c.unpricedRequests):-1,render:(c)=>De.jsxDEV("span",{className:"num",children:c.requests>c.unpricedRequests?lT(c.cost/(c.requests-c.unpricedRequests)):"–"},void 0,!1,void 0,this)},{key:"unpriced",header:u("costs.unpriced"),title:"Requests with no public-equivalent price",align:"right",sort:(c)=>c.unpricedRequests,render:(c)=>c.unpricedRequests>0?De.jsxDEV("span",{className:"num tone-warn",children:z(c.unpricedRequests)},void 0,!1,void 0,this):De.jsxDEV("span",{className:"num dim",children:"–"},void 0,!1,void 0,this)}]}function lT(l){return l>0&&l<0.0001?"<$0.0001":da(l)}function GM(l){let i=0;for(let c of l)i+=c??0;return i}var $r=Z(gt(),1);var be=Z(ue(),1),rb=[50,200,1000];function sT({active:l,range:i,onRequestClick:c}){let[f,p]=$r.useState(0),S=rb[f],h=Ft(["errors",i,S],({signal:ae})=>r1(i,S,ae),{enabled:l}),[x,b]=$r.useState(null),[L,g]=$r.useState(null),[C,w]=$r.useState(""),A=ia(i),k=$r.useMemo(()=>{let ae=(h.data??[]).map((Ne)=>({row:Ne,signature:nb(Ne.errorMessage)})),H=nT(h.data??[]),de=new Map;for(let{row:Ne}of ae){let ne=ba(Ne.model,Ne.provider),me=de.get(ne);if(me)me.count++;else de.set(ne,{model:Ne.model,provider:Ne.provider,count:1})}let xe=[...de.entries()].map(([Ne,ne])=>({key:Ne,...ne})).sort((Ne,ne)=>ne.count-Ne.count||Ne.model.localeCompare(ne.model)),Ce=ae.reduce((Ne,{row:ne})=>!Ne||ne.timestamp>Ne.timestamp?ne:Ne,null);return{rows:ae,groups:H,models:xe,newest:Ce}},[h.data]),D=k.groups.some((ae)=>ae.signature===x)?x:null,M=k.models.some((ae)=>ae.key===L)?L:null,N=$r.useMemo(()=>{let ae=C.trim().toLowerCase();return k.rows.filter((H)=>(D===null||H.signature===D)&&(M===null||ba(H.row.model,H.row.provider)===M)&&(ae===""||H.row.model.toLowerCase().includes(ae)||H.row.provider.toLowerCase().includes(ae)||H.row.folder.toLowerCase().includes(ae)||(H.row.errorMessage??"").toLowerCase().includes(ae))).map((H)=>H.row)},[k.rows,D,M,C]),P=h.data?.length??0,j=!h.stale&&P<S,Y=f+1<rb.length?rb[f+1]:null,ce=h.data!==null&&!j?be.jsxDEV(be.Fragment,{children:[be.jsxDEV("span",{children:u("errors.footer",{count:z(P),window:u(A.windowKey)})},void 0,!1,void 0,this),Y!==null&&be.jsxDEV("button",{type:"button",className:"btn","data-size":"sm",disabled:h.refreshing,onClick:()=>p(f+1),children:h.refreshing&&h.stale?u("errors.loading"):u("errors.load-latest",{count:z(Y)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this):void 0,J=k.groups[0]?.count??0,te=$r.useMemo(()=>VM(J),[J]),X=k.models.find((ae)=>ae.key===M);return be.jsxDEV("div",{className:"page",children:[be.jsxDEV(ra,{title:u("errors.title"),description:u("errors.description",{window:u(A.windowKey)})},void 0,!1,void 0,this),be.jsxDEV(Ge,{query:h,skeleton:be.jsxDEV(qa,{height:96,style:{borderRadius:12}},void 0,!1,void 0,this),children:()=>be.jsxDEV("div",{"data-stale":h.stale,children:be.jsxDEV(la,{min:170,children:[be.jsxDEV(ie,{label:u("errors.failures"),value:z(P),hint:j?u("errors.hint-in-window",{window:u(A.windowKey)}):u("errors.hint-latest-loaded",{count:z(P)})},void 0,!1,void 0,this),be.jsxDEV(ie,{label:u("errors.signatures"),title:u("errors.signatures-hint"),value:z(k.groups.length),hint:k.groups[0]?u("errors.signatures-top",{count:z(k.groups[0].count)}):void 0},void 0,!1,void 0,this),be.jsxDEV(ie,{label:u("errors.affected-models"),value:z(k.models.length),hint:k.models[0]?.model},void 0,!1,void 0,this),be.jsxDEV(ie,{label:u("errors.last-failure"),value:k.newest?fa(k.newest.timestamp):"–",hint:k.newest?ln(k.newest.timestamp):u("errors.none-in-window",{window:u(A.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),be.jsxDEV("div",{className:"grid grid-main-side",children:[be.jsxDEV(Ye,{index:1,title:u("errors.error-signatures"),description:u("errors.signatures-card-description"),flush:!0,stale:h.stale,children:be.jsxDEV(Ge,{query:h,skeleton:be.jsxDEV(ca,{rows:8},void 0,!1,void 0,this),isEmpty:(ae)=>ae.length===0,empty:be.jsxDEV(wt,{title:u("errors.empty-no-failures",{window:u(A.windowKey)}),hint:u("errors.empty-all-succeeded")},void 0,!1,void 0,this),children:()=>be.jsxDEV(Xt,{rows:k.groups,rowKey:(ae)=>ae.signature,columns:te,onRowClick:(ae)=>b(D===ae.signature?null:ae.signature),selectedKey:D,expanded:(ae)=>ae.signature===D?be.jsxDEV(jM,{group:ae,onRequestClick:c},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),be.jsxDEV(Ye,{index:2,title:u("errors.by-model"),description:u("errors.by-model-description"),stale:h.stale,children:be.jsxDEV(Ge,{query:h,skeleton:be.jsxDEV(qa,{height:180},void 0,!1,void 0,this),isEmpty:(ae)=>ae.length===0,empty:be.jsxDEV(wt,{title:u("errors.empty-no-affected-models")},void 0,!1,void 0,this),children:()=>be.jsxDEV(Bd,{items:k.models.slice(0,12).map((ae)=>({key:ae.key,label:be.jsxDEV("span",{className:"row",style:{gap:6,minWidth:0},children:[be.jsxDEV("span",{className:"mono truncate",children:ae.model},void 0,!1,void 0,this),be.jsxDEV("span",{className:"dim truncate",children:ae.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),value:ae.count,color:ae.key===M?"var(--bad)":"color-mix(in srgb, var(--bad) 45%, transparent)"})),onSelect:(ae)=>g(M===ae?null:ae)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),be.jsxDEV(Ye,{index:3,title:u("errors.failures"),description:h.data===null?u("errors.loading-failures"):u("errors.filtered-of-total",{shown:z(N.length),total:z(P)}),actions:be.jsxDEV(be.Fragment,{children:[D!==null&&be.jsxDEV("button",{type:"button",className:"btn errors-filter","data-size":"sm",onClick:()=>b(null),title:D,children:[be.jsxDEV("span",{className:"mono truncate",children:D},void 0,!1,void 0,this),be.jsxDEV(nn,{size:12},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X&&be.jsxDEV("button",{type:"button",className:"btn errors-filter","data-size":"sm",onClick:()=>g(null),children:[be.jsxDEV("span",{className:"mono truncate",children:X.model},void 0,!1,void 0,this),be.jsxDEV(nn,{size:12},void 0,!1,void 0,this)]},void 0,!0,void 0,this),be.jsxDEV(cr,{value:C,onChange:w,placeholder:u("errors.search-placeholder")},void 0,!1,void 0,this)]},void 0,!0,void 0,this),flush:!0,stale:h.stale,footer:ce,children:be.jsxDEV(Ge,{query:h,skeleton:be.jsxDEV(ca,{rows:10},void 0,!1,void 0,this),isEmpty:(ae)=>ae.length===0,empty:be.jsxDEV(wt,{title:u("errors.empty-no-failures",{window:u(A.windowKey)})},void 0,!1,void 0,this),children:()=>be.jsxDEV(Xt,{rows:N,rowKey:(ae)=>ae.id??`${ae.sessionFile}:${ae.entryId}`,onRowClick:(ae)=>ae.id!==void 0&&c(ae.id),columns:XM,initialSort:{key:"time",dir:"desc"},limit:50,dense:!0,empty:be.jsxDEV(wt,{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 VM(l){return[{key:"signature",header:u("errors.signature"),wrap:!0,sort:(i)=>i.signature,render:(i)=>be.jsxDEV("span",{className:"errors-signature",title:i.latest.errorMessage??void 0,children:i.signature},void 0,!1,void 0,this)},{key:"models",header:u("common.models"),sort:(i)=>i.models.length,render:(i)=>be.jsxDEV(Ha,{primary:be.jsxDEV("span",{className:"mono",children:i.models[0]?.model},void 0,!1,void 0,this),secondary:i.models.length>1?u("errors.more-models",{count:z(i.models.length-1)}):i.models[0]?.provider},void 0,!1,void 0,this)},{key:"last",header:u("errors.last-seen"),sort:(i)=>i.lastSeen,render:(i)=>be.jsxDEV("span",{className:"muted",title:ln(i.lastSeen),children:fa(i.lastSeen)},void 0,!1,void 0,this)},{key:"count",header:u("errors.failures"),align:"right",width:120,sort:(i)=>i.count,render:(i)=>be.jsxDEV(pa,{value:i.count,max:l,display:z(i.count),color:"var(--bad)"},void 0,!1,void 0,this)}]}function jM({group:l,onRequestClick:i}){let c=l.latest.id;return be.jsxDEV("div",{className:"errors-detail",children:[be.jsxDEV("pre",{className:"code-block errors-detail-message",children:l.latest.errorMessage??u("errors.unknown-error")},void 0,!1,void 0,this),be.jsxDEV("div",{className:"errors-detail-meta",children:[be.jsxDEV("span",{className:"muted",children:u("errors.group-meta",{count:z(l.count),first:ln(l.firstSeen),last:ln(l.lastSeen)})},void 0,!1,void 0,this),c!==void 0&&be.jsxDEV("button",{type:"button",className:"btn","data-size":"sm",onClick:()=>i(c),children:[u("errors.open-latest")," ",be.jsxDEV(pd,{size:13},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),be.jsxDEV("div",{className:"errors-detail-models",children:l.models.map((f)=>be.jsxDEV("span",{className:"badge","data-mono":"true",children:[f.model," ",be.jsxDEV("span",{className:"dim",children:f.provider},void 0,!1,void 0,this)," ",be.jsxDEV("span",{className:"num",children:Ae(f.count)},void 0,!1,void 0,this)]},ba(f.model,f.provider),!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var XM=[{key:"time",header:u("errors.when"),width:120,sort:(l)=>l.timestamp,render:(l)=>be.jsxDEV("span",{className:"muted",title:ln(l.timestamp),children:fa(l.timestamp)},void 0,!1,void 0,this)},{key:"model",header:u("common.model"),sort:(l)=>l.model,render:(l)=>be.jsxDEV(Ha,{primary:be.jsxDEV("span",{className:"mono",children:l.model},void 0,!1,void 0,this),secondary:l.provider},void 0,!1,void 0,this)},{key:"error",header:u("common.error"),sort:(l)=>l.errorMessage??"",render:(l)=>be.jsxDEV("span",{className:"errors-message",title:l.errorMessage??void 0,children:l.errorMessage??u("errors.unknown-error")},void 0,!1,void 0,this)},{key:"project",header:u("common.project"),sort:(l)=>l.folder,render:(l)=>be.jsxDEV("span",{className:"mono muted",title:l.folder,children:fr(l.folder)},void 0,!1,void 0,this)},{key:"tokens",header:u("common.tokens"),align:"right",sort:(l)=>l.usage.totalTokens,render:(l)=>be.jsxDEV("span",{className:"num",children:z(l.usage.totalTokens)},void 0,!1,void 0,this)},{key:"cost",header:u("common.cost"),title:u("errors.cost-hint"),align:"right",sort:(l)=>l.usage.cost.total,render:(l)=>be.jsxDEV("span",{className:"num",children:Yl(l,4)},void 0,!1,void 0,this)}];var Ut=Z(gt(),1);var Q=Z(ue(),1),YM=1000,$m=50,sb=0.5,_d="*";function iT({active:l,range:i}){let[c,f]=Ut.useState(!1),p=Ft(["frustration",i],({signal:L})=>u1(i,L),{enabled:l,pollMs:c?YM:void 0}),S=ia(i),h=p.data?.job.state;Ut.useEffect(()=>{if(h!==void 0)f(h==="running")},[h]);let{refetch:x}=p,b=Ut.useCallback(()=>{f(!0),x()},[x]);return Q.jsxDEV("div",{className:"page",children:[Q.jsxDEV(ra,{title:u("frustration.title"),description:u("frustration.description",{window:u(S.windowKey)})},void 0,!1,void 0,this),Q.jsxDEV(Ge,{query:p,skeleton:Q.jsxDEV(zt,{height:96},void 0,!1,void 0,this),children:(L)=>Q.jsxDEV("div",{"data-stale":p.stale,children:Q.jsxDEV($M,{overall:L.overall},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),Q.jsxDEV(Ge,{query:p,skeleton:Q.jsxDEV(zt,{height:120},void 0,!1,void 0,this),children:(L)=>Q.jsxDEV(QM,{active:l,range:i,judgeAvailable:L.judgeAvailable,job:L.job,onRunStarted:b,onRunChanged:x},void 0,!1,void 0,this)},void 0,!1,void 0,this),Q.jsxDEV(Ge,{query:p,skeleton:Q.jsxDEV(Ye,{index:2,title:u("frustration.by-model"),children:[Q.jsxDEV(zt,{height:340},void 0,!1,void 0,this),Q.jsxDEV(ca,{rows:6},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:(L)=>Q.jsxDEV(rD,{models:L.byModel,stale:p.stale},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function In(l,i){return i>0?Fe(l/i):"–"}function lb(l){return l instanceof Error?l.message:String(l)}function cT(l){let i=Math.max(0,Math.floor(l/1000)),c=Math.floor(i/60),f=i%60;return c>0?`${c}m ${String(f).padStart(2,"0")}s`:`${f}s`}function $M({overall:l}){let i=l.messages-l.judged,c=l.unscored>0?u("frustration.coverage-unscored",{count:z(l.unscored)}):"";return Q.jsxDEV(Q.Fragment,{children:[Q.jsxDEV(la,{min:170,children:[Q.jsxDEV(ie,{label:u("frustration.user-messages"),title:u("frustration.user-messages-title"),value:z(l.messages)},void 0,!1,void 0,this),Q.jsxDEV(ie,{label:u("frustration.judge-coverage"),title:u("frustration.judge-coverage-title"),value:In(l.judged,l.messages),hint:`${u("frustration.coverage-hint",{judged:z(l.judged),regex:z(i)})}${c}`},void 0,!1,void 0,this),Q.jsxDEV(ie,{label:u("frustration.annoyed"),title:u("frustration.annoyed-title"),value:In(l.annoyed,l.messages),hint:u("frustration.messages-n",{count:z(l.annoyed)})},void 0,!1,void 0,this),Q.jsxDEV(ie,{label:u("frustration.at-assistant"),title:u("frustration.at-assistant-title"),value:In(l.atAssistant,l.messages),hint:u("frustration.messages-n",{count:z(l.atAssistant)})},void 0,!1,void 0,this),Q.jsxDEV(ie,{label:u("frustration.angry"),title:u("frustration.angry-title"),value:In(l.angry,l.messages),hint:u("frustration.messages-n",{count:z(l.angry)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this),l.unscored>0&&Q.jsxDEV("p",{className:"micro dim",children:u("frustration.unscored-line",{count:z(l.unscored)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var uT="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 QM({active:l,range:i,judgeAvailable:c,job:f,onRunStarted:p,onRunChanged:S}){let[h,x]=Ut.useState(!1),[b,L]=Ut.useState({status:"loading"}),[g,C]=Ut.useState(!1),[w,A]=Ut.useState(null),[k,D]=Ut.useState(!1),[M,N]=Ut.useState(null),P=Ut.useRef(null),j=f.state==="running",Y=Ut.useCallback(()=>{P.current?.abort(),P.current=null,x(!1)},[]);Ut.useEffect(()=>{if(!l)Y()},[l,Y]),Ut.useEffect(()=>()=>P.current?.abort(),[]);let ce=()=>{P.current?.abort();let H=new AbortController;P.current=H;let de=i;L({status:"loading"}),A(null),N(null),x(!0),i1(de,H.signal).then((xe)=>{if(!H.signal.aborted)L({status:"ready",estimate:xe,range:de})},(xe)=>{if(!H.signal.aborted)L({status:"error",message:lb(xe)})})},J=async()=>{if(b.status!=="ready")return;C(!0),A(null);try{await c1(b.range),Y(),p()}catch(H){A(lb(H))}finally{C(!1)}},te=async()=>{D(!0),N(null);try{await d1(),S()}catch(H){N(lb(H))}finally{D(!1)}},X=b.status==="ready"?b.estimate:null,ae=b.status==="loading"?{label:"Proceed",onClick:J,disabled:!0}:X?.available?{label:g?"Starting…":"Proceed",onClick:J,disabled:g||X.messages===0}:void 0;return Q.jsxDEV(Ye,{index:1,title:Q.jsxDEV(Q.Fragment,{children:[u("frustration.judge-panel")," ",Q.jsxDEV(KM,{job:f,judgeAvailable:c},void 0,!1,void 0,this)]},void 0,!0,void 0,this),description:u("frustration.judge-description"),actions:Q.jsxDEV("button",{type:"button",className:"btn","data-variant":"accent","data-size":"sm",onClick:ce,disabled:!c||j,title:!c?uT:j?u("frustration.judge-running"):u("frustration.quote-title"),children:[Q.jsxDEV(lr,{size:13},void 0,!1,void 0,this)," ",u("frustration.classify")]},void 0,!0,void 0,this),children:[Q.jsxDEV("div",{className:"stack frustration-judge",children:[j?Q.jsxDEV(WM,{job:f,cancelling:k,onCancel:te},void 0,!1,void 0,this):Q.jsxDEV(JM,{job:f},void 0,!1,void 0,this),!c&&Q.jsxDEV("p",{className:"micro dim",children:uT},void 0,!1,void 0,this),M&&Q.jsxDEV("p",{className:"micro tone-bad",role:"alert",children:M},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Q.jsxDEV(R1,{open:h,title:u("frustration.classify"),onClose:Y,primaryAction:ae,children:[Q.jsxDEV(ZM,{estimate:b},void 0,!1,void 0,this),w&&Q.jsxDEV("p",{className:"micro tone-bad",role:"alert",children:w},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function KM({job:l,judgeAvailable:i}){switch(l.state){case"running":return Q.jsxDEV(Nt,{tone:"ok",children:[Q.jsxDEV(ur,{tone:"live",pulse:!0},void 0,!1,void 0,this)," ",u("frustration.running")]},void 0,!0,void 0,this);case"done":return Q.jsxDEV(Nt,{tone:"ok",children:u("frustration.last-run-done")},void 0,!1,void 0,this);case"cancelled":return Q.jsxDEV(Nt,{tone:"warn",children:u("frustration.last-run-cancelled")},void 0,!1,void 0,this);case"failed":return Q.jsxDEV(Nt,{tone:"bad",children:u("frustration.last-run-failed")},void 0,!1,void 0,this);case"idle":return Q.jsxDEV(Nt,{children:i?u("frustration.not-run-yet"):u("frustration.regex-only")},void 0,!1,void 0,this)}}function ZM({estimate:l}){if(l.status==="loading")return Q.jsxDEV("p",{className:"muted",children:u("frustration.estimating")},void 0,!1,void 0,this);if(l.status==="error")return Q.jsxDEV("p",{className:"tone-bad",children:l.message},void 0,!1,void 0,this);let i=l.estimate;if(!i.available)return Q.jsxDEV("p",{children:i.reason},void 0,!1,void 0,this);if(i.messages===0)return Q.jsxDEV("p",{children:u("frustration.all-judged")},void 0,!1,void 0,this);return Q.jsxDEV(Q.Fragment,{children:[Q.jsxDEV("div",{className:"frustration-quote",children:[Q.jsxDEV("span",{className:"dim micro",children:u("frustration.estimated-cost")},void 0,!1,void 0,this),Q.jsxDEV("span",{className:"num frustration-quote-value",children:["≈ ",da(i.cost)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Q.jsxDEV(Ho,{items:[{key:"messages",label:u("frustration.unjudged-messages"),value:z(i.messages)},{key:"chars",label:u("frustration.prose-chars"),value:z(i.chars)},{key:"tokens",label:u("frustration.input-tokens"),value:z(i.inputTokens)},{key:"judge",label:u("frustration.judge-model"),value:i.judge}]},void 0,!1,void 0,this),Q.jsxDEV("p",{className:"micro dim",children:u("frustration.estimate-note")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function WM({job:l,cancelling:i,onCancel:c}){let f=l.done+l.failed,p=l.total>0?Math.min(1,f/l.total):0;return Q.jsxDEV("div",{className:"stack frustration-progress",children:[Q.jsxDEV("div",{className:"row frustration-progress-head",children:[Q.jsxDEV("span",{className:"num",children:[z(l.done),"/",z(l.total)," judged"]},void 0,!0,void 0,this),Q.jsxDEV("span",{className:"num dim",children:Fe(p)},void 0,!1,void 0,this),Q.jsxDEV("span",{className:"frustration-spacer"},void 0,!1,void 0,this),Q.jsxDEV("button",{type:"button",className:"btn","data-variant":"danger","data-size":"sm",onClick:c,disabled:i,children:i?u("frustration.cancelling"):u("frustration.cancel-run")},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Q.jsxDEV("div",{className:"meter frustration-progress-track",role:"progressbar","aria-valuemin":0,"aria-valuemax":l.total,"aria-valuenow":f,children:Q.jsxDEV("div",{className:"meter-fill frustration-progress-fill",style:{width:`${p*100}%`}},void 0,!1,void 0,this)},void 0,!1,void 0,this),Q.jsxDEV("div",{className:"row micro muted frustration-progress-meta",children:[Q.jsxDEV("span",{className:l.failed>0?"tone-bad":void 0,children:u("frustration.failed-n",{count:z(l.failed)})},void 0,!1,void 0,this),Q.jsxDEV("span",{children:[u("frustration.cost-so-far")," ",Q.jsxDEV("span",{className:"num",children:da(l.cost)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),l.judge&&Q.jsxDEV("span",{className:"mono",children:l.judge},void 0,!1,void 0,this),l.startedAt!==null&&Q.jsxDEV("span",{children:u("frustration.elapsed",{time:cT(Date.now()-l.startedAt)})},void 0,!1,void 0,this),l.startedAt!==null&&l.done>0&&Q.jsxDEV("span",{className:"num",children:[(l.done/Math.max(1,(Date.now()-l.startedAt)/1000)).toFixed(0),"/s"]},void 0,!0,void 0,this),l.concurrency>0&&Q.jsxDEV("span",{className:"num",children:u("frustration.in-flight",{count:z(l.concurrency)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function JM({job:l}){let i=u("frustration.messages-progress",{done:z(l.done),total:z(l.total)}),c=l.failed>0?u("frustration.failed-suffix",{count:z(l.failed)}):"",f=l.judge?u("frustration.judge-with",{judge:l.judge}):"",p=l.startedAt!==null&&l.finishedAt!==null?u("frustration.in-time",{time:cT(l.finishedAt-l.startedAt)}):"";switch(l.state){case"idle":return Q.jsxDEV("p",{className:"muted",children:u("frustration.no-run-yet")},void 0,!1,void 0,this);case"running":return null;case"done":return Q.jsxDEV("p",{className:"muted",children:u("frustration.run-done-line",{progress:i,failed:c,judge:f,elapsed:p,cost:da(l.cost)})},void 0,!1,void 0,this);case"cancelled":return Q.jsxDEV("p",{className:"muted",children:u("frustration.run-cancelled-line",{progress:i,failed:c,cost:da(l.cost)})},void 0,!1,void 0,this);case"failed":return Q.jsxDEV("p",{className:"muted",children:u("frustration.run-failed-line",{progress:i,failed:c,error:l.error??u("frustration.unknown-error"),cost:da(l.cost)})},void 0,!1,void 0,this)}}function Fd(l){return`${l.modelClass}/${l.family??"unclassified"}`}function bi(l){return l.messages>0&&l.judged/l.messages<sb}function eD(l){let i=2166136261;for(let c=0;c<l.length;c++)i^=l.charCodeAt(c),i=Math.imul(i,16777619);return i>>>0}function tD(l){let i=[...new Set(l.map(Fd))].sort(),c=new Set,f=new Map;for(let p of i){let S=eD(p)%Fa.length;for(let h=0;h<Fa.length&&c.has(S);h++)S=(S+1)%Fa.length;c.add(S),f.set(p,Fa[S])}return f}function aD(l,i){if(i==="angry")return`color-mix(in srgb, ${l} 55%, black)`;if(i==="other")return`color-mix(in srgb, ${l} 32%, transparent)`;return l}var oD=[{key:"angry",label:"Angry at assistant"},{key:"assistant",label:"At assistant, not angry"},{key:"other",label:"Annoyed at other targets"}];function nD(l,i){if(i==="angry")return l.angry;if(i==="assistant")return l.atAssistant-l.angry;return l.annoyed-l.atAssistant}function Hd(l,i){return i>0?l/i*100:0}function rD({models:l,stale:i}){let[c,f]=Ut.useState(null),[p,S]=sn(),[h,x]=Ut.useState(!1),[b,L]=Ut.useState(!1),g=Ut.useMemo(()=>tD(l),[l]),C=Ut.useMemo(()=>{let J=new Map;for(let te of l)J.set(te.modelClass,(J.get(te.modelClass)??0)+te.messages);return J},[l]),w=Ut.useMemo(()=>{let J=null,te=-1;for(let[X,ae]of C)if(ae>te)J=X,te=ae;return J??_d},[C]),A=c!==null&&(c===_d||C.has(c))?c:w,k=Ut.useMemo(()=>[{value:_d,label:"All",title:"Every model class"},...[...C].map(([J,te])=>({value:J,label:J,title:`${z(te)} messages`}))],[C]),D=Ut.useMemo(()=>A===_d?l:l.filter((J)=>J.modelClass===A),[l,A]),M=Ut.useMemo(()=>{let J=new Map;for(let te of D){let X=Fd(te),ae=J.get(X);if(ae){ae.messages+=te.messages;continue}let H=te.family??"unclassified";J.set(X,{key:X,label:A===_d?`${te.modelClass} · ${H}`:H,messages:te.messages})}return[...J.values()]},[D,A]),N=Ut.useMemo(()=>D.filter((J)=>!p.has(Fd(J))),[D,p]),P=N.filter((J)=>J.messages<$m).length,j=N.filter(bi).length,Y=Ut.useMemo(()=>N.filter((J)=>(h||J.messages>=$m)&&!(b&&bi(J))),[N,h,b]);if(l.length===0)return Q.jsxDEV(Ye,{index:2,title:u("frustration.by-model"),stale:i,children:Q.jsxDEV(wt,{title:u("frustration.no-messages"),hint:u("frustration.try-longer-range")},void 0,!1,void 0,this)},void 0,!1,void 0,this);let ce=Y.some(bi);return Q.jsxDEV(Q.Fragment,{children:[Q.jsxDEV(Ye,{index:2,title:u("frustration.by-model"),description:u("frustration.by-model-description"),stale:i,children:Q.jsxDEV("div",{className:"stack frustration-chart-body",children:[Q.jsxDEV("div",{className:"frustration-classes",children:Q.jsxDEV(_a,{size:"sm","aria-label":u("frustration.model-class"),options:k,value:A,onChange:f},void 0,!1,void 0,this)},void 0,!1,void 0,this),Q.jsxDEV("div",{className:"row frustration-filters",children:[Q.jsxDEV(Ka,{items:M.map((J)=>({key:J.key,label:J.label,color:g.get(J.key)??Fa[0],value:z(J.messages)})),hidden:p,onToggle:S},void 0,!1,void 0,this),Q.jsxDEV("span",{className:"frustration-spacer"},void 0,!1,void 0,this),Q.jsxDEV("label",{className:"check",title:u("frustration.small-models-title",{count:$m}),children:[Q.jsxDEV("input",{type:"checkbox",checked:h,onChange:(J)=>x(J.target.checked)},void 0,!1,void 0,this),u("frustration.include-small",{count:$m}),P>0?` (${P})`:""]},void 0,!0,void 0,this),Q.jsxDEV("label",{className:"check",title:u("frustration.hide-regex-title",{share:sb*100}),children:[Q.jsxDEV("input",{type:"checkbox",checked:b,onChange:(J)=>L(J.target.checked)},void 0,!1,void 0,this),"Hide mostly regex",j>0?` (${j})`:""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Q.jsxDEV(lD,{hasRegexRows:ce},void 0,!1,void 0,this),Q.jsxDEV(sD,{rows:Y,familyColors:g},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Q.jsxDEV(uD,{rows:Y,familyColors:g,stale:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function lD({hasRegexRows:l}){return Q.jsxDEV("div",{className:"legend frustration-key",children:[Q.jsxDEV("span",{className:"legend-item",children:[Q.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),Q.jsxDEV("span",{className:"legend-item",children:[Q.jsxDEV("span",{className:"swatch frustration-key-swatch","data-variant":"assistant"},void 0,!1,void 0,this),"At assistant"]},void 0,!0,void 0,this),Q.jsxDEV("span",{className:"legend-item",children:[Q.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),Q.jsxDEV("span",{className:"legend-item",children:[Q.jsxDEV("span",{className:"frustration-key-line"},void 0,!1,void 0,this),u("frustration.legend-trend")]},void 0,!0,void 0,this),Q.jsxDEV("span",{className:"legend-item frustration-key-wide",title:u("frustration.hatch-title",{share:sb*100}),children:[Q.jsxDEV("span",{className:"swatch frustration-key-swatch","data-variant":"hatch"},void 0,!1,void 0,this),l?u("frustration.legend-hatched-run"):u("frustration.legend-hatched")]},void 0,!0,void 0,this),Q.jsxDEV("span",{className:"legend-item dim",children:u("frustration.legend-hue")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function sD({rows:l,familyColors:i}){let c=Ut.useMemo(()=>{let f=new Map;l.forEach((S,h)=>{let x=Fd(S),b=bi(S),L=`${x}|${b?"regex":"judged"}`,g=f.get(L);if(g)g.slots.push(h);else f.set(L,{family:x,regex:b,slots:[h]})});let p=[];for(let S of oD)for(let[h,x]of f){let b=l.map(()=>null);for(let L of x.slots)b[L]=Hd(nD(l[L],S.key),l[L].messages);p.push({key:`${S.key}|${h}`,label:S.label,color:aD(i.get(x.family)??Fa[0],S.key),values:b,pattern:x.regex?"hatch":void 0})}return p.push({key:"trend",label:"At assistant (total)",color:"var(--ink-1)",values:l.map((S)=>Hd(S.atAssistant,S.messages)),kind:"line",tooltip:!1}),p},[l,i]);if(l.length===0)return Q.jsxDEV("div",{className:"frustration-chart-empty",children:Q.jsxDEV(wt,{title:u("frustration.no-model-match")},void 0,!1,void 0,this)},void 0,!1,void 0,this);return Q.jsxDEV(Tn,{slots:l.length,tickLabel:(f)=>l[f].label,series:c,height:340,format:(f)=>`${f}%`,formatTooltip:(f)=>`${f.toFixed(1)}%`,showTotal:!1,emptyLabel:"No frustrated messages for these models",tooltipExtra:(f)=>{let p=l[f];return Q.jsxDEV("div",{className:"frustration-tooltip-extra",children:[Q.jsxDEV("div",{className:"chart-tooltip-row chart-tooltip-total",children:[Q.jsxDEV("span",{className:"chart-tooltip-label",children:u("frustration.legend-annoyed-any")},void 0,!1,void 0,this),Q.jsxDEV("span",{className:"chart-tooltip-value",children:In(p.annoyed,p.messages)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Q.jsxDEV("div",{className:"micro dim",children:[z(p.messages)," messages · judged ",z(p.judged)," (",In(p.judged,p.messages),")",bi(p)?u("frustration.row-mostly-regex"):""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}},void 0,!1,void 0,this)}function uD({rows:l,familyColors:i,stale:c}){let f=Ut.useMemo(()=>[{key:"model",header:u("common.model"),sort:(p)=>p.label,render:(p)=>Q.jsxDEV("span",{className:"row",title:p.key,children:[Q.jsxDEV("span",{className:"swatch",style:{background:i.get(Fd(p))??Fa[0]}},void 0,!1,void 0,this),Q.jsxDEV("span",{className:"cell-primary",children:p.label},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"ids",header:u("frustration.column-model-ids"),wrap:!0,render:(p)=>Q.jsxDEV("span",{className:"mono micro dim",children:p.models.join(", ")},void 0,!1,void 0,this)},{key:"messages",header:u("frustration.column-messages"),align:"right",sort:(p)=>p.messages,render:(p)=>Q.jsxDEV("span",{className:"num",children:z(p.messages)},void 0,!1,void 0,this)},{key:"judged",header:u("frustration.column-judged"),align:"right",sort:(p)=>p.messages>0?p.judged/p.messages:0,render:(p)=>bi(p)?Q.jsxDEV("span",{className:"row frustration-judged",title:u("frustration.mostly-regex"),children:[Q.jsxDEV(Nt,{tone:"warn",children:u("frustration.regex-badge")},void 0,!1,void 0,this),Q.jsxDEV("span",{className:"num dim",children:In(p.judged,p.messages)},void 0,!1,void 0,this)]},void 0,!0,void 0,this):Q.jsxDEV("span",{className:"num",children:In(p.judged,p.messages)},void 0,!1,void 0,this)},{key:"annoyed",header:u("frustration.annoyed"),align:"right",sort:(p)=>Hd(p.annoyed,p.messages),render:(p)=>Q.jsxDEV("span",{className:"num",title:u("frustration.messages-n",{count:z(p.annoyed)}),children:In(p.annoyed,p.messages)},void 0,!1,void 0,this)},{key:"atAssistant",header:u("frustration.at-assistant"),align:"right",sort:(p)=>Hd(p.atAssistant,p.messages),render:(p)=>Q.jsxDEV("span",{className:"num",title:u("frustration.messages-n",{count:z(p.atAssistant)}),children:In(p.atAssistant,p.messages)},void 0,!1,void 0,this)},{key:"angry",header:u("frustration.angry"),align:"right",sort:(p)=>Hd(p.angry,p.messages),render:(p)=>Q.jsxDEV("span",{className:p.angry>0?"num tone-bad":"num",title:u("frustration.messages-n",{count:z(p.angry)}),children:In(p.angry,p.messages)},void 0,!1,void 0,this)}],[i]);return Q.jsxDEV(Ye,{index:3,title:u("frustration.model-versions"),description:u("frustration.table-description"),flush:!0,stale:c,children:Q.jsxDEV(Xt,{rows:l,rowKey:(p)=>p.key,columns:f,dense:!0,empty:Q.jsxDEV(wt,{title:u("frustration.no-model-match")},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var Gd=Z(gt(),1);var Et=Z(ue(),1),iD=86400000,cD={snapcompact:"Snapcompact"},dD=new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric",timeZone:"UTC"});function dT({active:l,range:i}){let[c,f]=Gd.useState(null),p=Ft(["gain",i,c],({signal:w})=>p1(i,c,w),{enabled:l}),S=ia(i),h=p.data,x=Gd.useMemo(()=>{let w=(h?.timeSeries??[]).map((N)=>({...N,timestamp:Date.parse(`${N.date}T00:00:00Z`)})),A=_o(i,w.map((N)=>N.timestamp),iD),k=Sa(w,A,(N)=>N.snapcompact),D=0,M=k.map((N)=>D+=N);return{buckets:A,daily:k,cumulative:M}},[h,i]),b=Gd.useMemo(()=>{if(!h)return[];let w=h.overall.savedTokens;return Object.keys(h.bySource).map((A)=>({...h.bySource[A],source:A,share:w>0?h.bySource[A].savedTokens/w:0}))},[h]),L=h?.projects??[],g=c!==null&&!L.includes(c)?[c,...L]:L,C=[{key:"daily",label:u("gain.saved-per-day"),color:"var(--chart-primary)",values:x.daily},{key:"cumulative",label:u("gain.cumulative"),color:"var(--chart-secondary)",values:x.cumulative,kind:"line",axis:"right"}];return Et.jsxDEV("div",{className:"page",children:[Et.jsxDEV(ra,{title:u("gain.title"),description:c?u("gain.description-scoped",{project:c,window:u(S.windowKey)}):u("gain.description",{window:u(S.windowKey)}),actions:g.length>0&&Et.jsxDEV("select",{className:"input","aria-label":u("common.project"),value:c??"",onChange:(w)=>f(w.target.value||null),style:{maxWidth:320},children:[Et.jsxDEV("option",{value:"",children:u("gain.all-projects")},void 0,!1,void 0,this),g.map((w)=>Et.jsxDEV("option",{value:w,children:w},w,!1,void 0,this))]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Et.jsxDEV(Ge,{query:p,skeleton:Et.jsxDEV(zt,{height:96},void 0,!1,void 0,this),isEmpty:(w)=>w.overall.hits===0&&w.timeSeries.length===0,empty:Et.jsxDEV(Ye,{children:Et.jsxDEV(wt,{title:c?u("gain.empty-title-scoped",{project:c,window:u(S.windowKey)}):u("gain.empty-title",{window:u(S.windowKey)}),hint:i==="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:w})=>Et.jsxDEV(Et.Fragment,{children:[Et.jsxDEV("div",{"data-stale":p.stale,children:Et.jsxDEV(la,{min:180,children:[Et.jsxDEV(ie,{label:u("gain.saved-tokens"),value:Ae(w.savedTokens),hint:z(w.savedTokens),spark:x.daily},void 0,!1,void 0,this),Et.jsxDEV(ie,{label:u("gain.saved-bytes"),value:Qv(w.savedBytes)},void 0,!1,void 0,this),Et.jsxDEV(ie,{label:u("gain.reduction"),title:u("gain.reduction-title"),value:w.reductionPercent!==null?Fe(w.reductionPercent):"–",hint:w.reductionPercent===null?u("gain.reduction-unknown"):void 0},void 0,!1,void 0,this),Et.jsxDEV(ie,{label:u("gain.hits"),value:z(w.hits)},void 0,!1,void 0,this),Et.jsxDEV(ie,{label:u("gain.saved-per-hit"),value:w.hits>0?Ae(w.savedTokens/w.hits):"–",hint:u("common.tokens")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Et.jsxDEV(Ye,{index:1,title:u("gain.savings-over-time"),description:u("gain.savings-over-time-description"),actions:Et.jsxDEV(Ka,{items:C.map((A)=>({key:A.key,label:A.label,color:A.color}))},void 0,!1,void 0,this),stale:p.stale,children:Et.jsxDEV(Tn,{slots:x.buckets.length,tickLabel:(A)=>dD.format(x.buckets[A]),series:C,height:260,formatTooltip:z,formatRight:Ae},void 0,!1,void 0,this)},void 0,!1,void 0,this),Et.jsxDEV(Ye,{index:2,title:u("gain.by-source"),description:u("gain.by-source-description"),flush:!0,stale:p.stale,children:Et.jsxDEV(Xt,{rows:b,rowKey:(A)=>A.source,columns:fD},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)}var fD=[{key:"source",header:u("gain.source"),sort:(l)=>l.source,render:(l)=>Et.jsxDEV("span",{className:"cell-primary",children:cD[l.source]},void 0,!1,void 0,this)},{key:"tokens",header:u("gain.saved-tokens"),align:"right",sort:(l)=>l.savedTokens,render:(l)=>Et.jsxDEV("span",{title:z(l.savedTokens),children:Et.jsxDEV(pa,{value:l.share,max:1,display:Ae(l.savedTokens)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"share",header:u("common.share"),align:"right",sort:(l)=>l.share,render:(l)=>Et.jsxDEV("span",{className:"num muted",children:Fe(l.share)},void 0,!1,void 0,this)},{key:"bytes",header:u("gain.saved-bytes"),align:"right",sort:(l)=>l.savedBytes,render:(l)=>Et.jsxDEV("span",{className:"num",children:Qv(l.savedBytes)},void 0,!1,void 0,this)},{key:"hits",header:u("gain.hits"),align:"right",sort:(l)=>l.hits,render:(l)=>Et.jsxDEV("span",{className:"num",children:z(l.hits)},void 0,!1,void 0,this)},{key:"reduction",header:u("gain.reduction"),align:"right",sort:(l)=>l.reductionPercent??-1,render:(l)=>Et.jsxDEV("span",{className:"num",children:l.reductionPercent!==null?Fe(l.reductionPercent):"–"},void 0,!1,void 0,this)}];var xi=Z(gt(),1);var Le=Z(ue(),1),pD=[{value:"share",label:u("common.share")},{value:"requests",label:u("common.requests")}],mD=6;function pT({active:l,range:i}){let c=Ft(["models",i],({signal:D})=>o1(i,D),{enabled:l}),f=ia(i),[p,S]=xi.useState("share"),[h,x]=sn(),[b,L]=xi.useState(null),g=xi.useMemo(()=>c.data?hD(c.data,i):null,[c.data,i]),C=bD(f.bucketMs),w=xi.useMemo(()=>g?yD(g,b,C):[],[g,b,C]),A=(D)=>D.byModel.length===0,k=Le.jsxDEV(wt,{title:u("models.empty-title"),hint:u("models.empty-hint")},void 0,!1,void 0,this);return Le.jsxDEV("div",{className:"page",children:[Le.jsxDEV(ra,{title:u("common.models"),description:u("models.subtitle",{window:u(f.windowKey)})},void 0,!1,void 0,this),Le.jsxDEV(Ge,{query:c,skeleton:Le.jsxDEV(qa,{height:112,style:{borderRadius:12}},void 0,!1,void 0,this),isEmpty:A,empty:k,children:()=>g&&Le.jsxDEV("div",{"data-stale":c.stale,children:Le.jsxDEV(la,{min:200,children:[Le.jsxDEV(ie,{label:u("models.used"),value:z(g.models.length),hint:g.providerCount===1?u("models.across-providers-one",{count:z(g.providerCount)}):u("models.across-providers",{count:z(g.providerCount)})},void 0,!1,void 0,this),Le.jsxDEV(ie,{label:u("models.most-used"),title:g.top?`${g.top.model} (${g.top.provider})`:void 0,value:g.top?g.top.model:"–",hint:g.top?u("models.most-used-hint",{share:Fe(g.top.totalRequests/Math.max(1,g.totalRequests)),provider:g.top.provider}):void 0},void 0,!1,void 0,this),Le.jsxDEV(ie,{label:u("common.requests"),value:z(g.totalRequests),hint:u("models.failed-n",{count:z(g.failedRequests)}),spark:g.requestTotals},void 0,!1,void 0,this),Le.jsxDEV(ie,{label:u("models.api-cost"),title:u("models.api-cost-title"),value:Ht(g.totalCost,g.unpricedRequests),hint:g.unpricedRequests>0?u("models.unpriced-n",{count:z(g.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),Le.jsxDEV(Ye,{index:1,title:u("models.request-share"),description:p==="share"?u("models.share-desc",{bucket:C}):u("models.count-desc",{bucket:C}),actions:Le.jsxDEV(_a,{size:"sm",options:pD,value:p,onChange:S,"aria-label":u("models.share-mode-aria")},void 0,!1,void 0,this),stale:c.stale,children:Le.jsxDEV(Ge,{query:c,skeleton:Le.jsxDEV(zt,{height:260},void 0,!1,void 0,this),isEmpty:A,empty:k,children:()=>g&&Le.jsxDEV("div",{className:"stack",style:{gap:12},children:[Le.jsxDEV(Xr,{buckets:g.buckets,bucketMs:f.bucketMs,series:p==="share"?g.shareSeries:g.countSeries,hidden:h,height:260,yMax:p==="share"?1:void 0,format:p==="share"?(D)=>Fe(D,0):Ae,formatTooltip:p==="share"?(D)=>Fe(D):z,showTotal:p==="requests"},void 0,!1,void 0,this),Le.jsxDEV(Ka,{items:g.countSeries.map((D)=>({key:D.key,label:D.label,color:D.color,value:Fe(fT(D.values)/Math.max(1,fT(g.requestTotals)))})),hidden:h,onToggle:x},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(Ye,{index:2,title:u("models.all-models"),description:u("models.table-desc"),stale:c.stale,flush:!0,children:Le.jsxDEV(Ge,{query:c,skeleton:Le.jsxDEV(ca,{rows:8},void 0,!1,void 0,this),isEmpty:A,empty:k,children:()=>g&&Le.jsxDEV(Xt,{rows:g.models,rowKey:(D)=>ba(D.model,D.provider),columns:w,initialSort:{key:"requests",dir:"desc"},limit:25,onRowClick:(D)=>{let M=ba(D.model,D.provider);L((N)=>N===M?null:M)},selectedKey:b,expanded:(D)=>{let M=ba(D.model,D.provider);return M===b?Le.jsxDEV(vD,{model:D,color:g.swatches.get(M)??"var(--chart-primary)",points:g.performance.get(M)??[],bucketMs:f.bucketMs,bucketWord:C},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 hD(l,i){let c=l.byModel,f=Ym(c),p=gD(c),S=_o(i,l.modelSeries.map((M)=>M.timestamp)),h=Sa(l.modelSeries,S,(M)=>M.requests),x={buckets:S,key:(M)=>ba(M.model,M.provider),label:(M)=>p.get(M)??M,value:(M)=>M.requests,colors:f},b=hr(l.modelSeries,{...x,limit:mD}).map((M)=>({...M,values:M.values.map((N)=>N||null)})),L=b.map((M)=>({...M,values:M.values.map((N,P)=>N===null?null:N/h[P])})),g=new Map(hr(l.modelSeries,x).map((M)=>[M.key,M.values])),C,w=0,A=0,k=0,D=0;for(let M of c){if(!C||M.totalRequests>C.totalRequests)C=M;w+=M.totalRequests,A+=M.failedRequests,k+=M.totalCost,D+=M.unpricedRequests}return{models:c,top:C,swatches:new Map(b.filter((M)=>M.key!=="__other__").map((M)=>[M.key,M.color])),labels:p,providerCount:new Set(c.map((M)=>M.provider)).size,totalRequests:w,failedRequests:A,totalCost:k,unpricedRequests:D,maxRequests:C?.totalRequests??0,buckets:S,requestTotals:h,countSeries:b,shareSeries:L,trends:g,performance:eT(l.modelPerformanceSeries)}}function gD(l){let i=new Map;for(let c of l)i.set(c.model,(i.get(c.model)??0)+1);return new Map(l.map((c)=>[ba(c.model,c.provider),(i.get(c.model)??0)>1?`${c.model} · ${c.provider}`:c.model]))}function yD(l,i,c){return[{key:"expand",header:"",width:28,render:(f)=>Le.jsxDEV("span",{className:"models-chevron","data-open":ba(f.model,f.provider)===i,children:Le.jsxDEV(Ln,{size:14},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"model",header:u("common.model"),sort:(f)=>f.model,render:(f)=>Le.jsxDEV(Ha,{lead:Le.jsxDEV(Cn,{color:l.swatches.get(ba(f.model,f.provider))??ao},void 0,!1,void 0,this),primary:Le.jsxDEV("span",{className:"mono",children:f.model},void 0,!1,void 0,this),secondary:f.provider},void 0,!1,void 0,this)},{key:"requests",header:u("common.requests"),align:"right",sort:(f)=>f.totalRequests,render:(f)=>Le.jsxDEV(pa,{value:f.totalRequests,max:l.maxRequests,display:z(f.totalRequests),color:l.swatches.get(ba(f.model,f.provider))??ao},void 0,!1,void 0,this)},{key:"cost",header:u("common.cost"),title:u("models.cost-title"),align:"right",sort:(f)=>f.totalCost,render:(f)=>Le.jsxDEV("span",{className:"num",children:Ht(f.totalCost,f.unpricedRequests)},void 0,!1,void 0,this)},{key:"tokens",header:u("common.tokens"),title:u("models.tokens-title"),align:"right",sort:(f)=>Ql(f),render:(f)=>{let p=Ql(f);return Le.jsxDEV("span",{className:"num",title:z(p),children:Ae(p)},void 0,!1,void 0,this)}},{key:"cache",header:u("models.cache-rate"),title:u("models.cache-title"),align:"right",sort:(f)=>f.cacheRate,render:(f)=>Le.jsxDEV("span",{className:"num",children:Fe(f.cacheRate)},void 0,!1,void 0,this)},{key:"errors",header:u("models.errors"),align:"right",sort:(f)=>f.errorRate,render:(f)=>f.failedRequests===0?Le.jsxDEV("span",{className:"num dim",children:"0%"},void 0,!1,void 0,this):Le.jsxDEV("span",{title:u("models.failed-n",{count:z(f.failedRequests)}),children:Le.jsxDEV(Nt,{tone:ir(f.errorRate),mono:!0,children:to(f.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:(f)=>f.avgTokensPerSecond??-1,render:(f)=>Le.jsxDEV("span",{className:"num",children:dr(f.avgTokensPerSecond)},void 0,!1,void 0,this)},{key:"ttft",header:u("models.ttft"),title:u("models.ttft-title"),align:"right",sort:(f)=>f.avgTtft??-1,render:(f)=>Le.jsxDEV("span",{className:"num",children:At(f.avgTtft)},void 0,!1,void 0,this)},{key:"trend",header:u("models.trend"),title:u("models.trend-title",{bucket:c}),width:112,render:(f)=>{let p=ba(f.model,f.provider),S=l.trends.get(p);return S?Le.jsxDEV(hi,{values:S.map((h)=>h??0),color:l.swatches.get(p)??ao,width:96,height:22},void 0,!1,void 0,this):Le.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this)}}]}function vD({model:l,color:i,points:c,bucketMs:f,bucketWord:p}){let[S,h]=sn(),x=[{key:"tps",label:u("common.tokens-per-second"),color:i,kind:c.length>1?"line":"bars",values:c.map((b)=>b.avgTokensPerSecond)},{key:"ttft",label:u("models.ttft"),color:ao,kind:c.length>1?"line":"bars",axis:"right",dashed:!0,values:c.map((b)=>b.avgTtftSeconds)}];return Le.jsxDEV("div",{className:"models-detail",children:[Le.jsxDEV("div",{className:"models-detail-facts",children:[Le.jsxDEV("div",{children:[Le.jsxDEV("div",{className:"section-label",children:u("models.efficiency")},void 0,!1,void 0,this),Le.jsxDEV(Ho,{items:[{key:"err",label:u("common.error-rate"),value:Le.jsxDEV("span",{className:`tone-${ir(l.errorRate)}`,children:[to(l.errorRate)," ",Le.jsxDEV("span",{className:"dim",children:["(",u("models.failed-n",{count:z(l.failedRequests)}),")"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},{key:"cache",label:u("models.cache-rate"),value:Fe(l.cacheRate)},{key:"savings",label:u("models.cache-savings"),value:Le.jsxDEV("span",{className:l.cacheSavings<0?"tone-bad":void 0,children:Fe(l.cacheSavings)},void 0,!1,void 0,this)},{key:"premium",label:u("common.premium-requests"),value:z(Math.round(l.totalPremiumRequests*100)/100)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Le.jsxDEV("div",{children:[Le.jsxDEV("div",{className:"section-label",children:u("models.latency")},void 0,!1,void 0,this),Le.jsxDEV(Ho,{items:[{key:"dur",label:u("models.avg-duration"),value:At(l.avgDuration)},{key:"ttft",label:u("models.avg-ttft"),value:At(l.avgTtft)},{key:"tps",label:u("common.tokens-per-second"),value:dr(l.avgTokensPerSecond)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Le.jsxDEV("div",{children:[Le.jsxDEV("div",{className:"section-label",children:u("common.tokens")},void 0,!1,void 0,this),Le.jsxDEV(Ho,{items:[{key:"in",label:u("models.uncached-input"),value:Ae(l.totalInputTokens)},{key:"cr",label:u("common.cache-read"),value:Ae(l.totalCacheReadTokens)},{key:"cw",label:u("common.cache-write"),value:Ae(l.totalCacheWriteTokens)},{key:"out",label:u("common.output"),value:Ae(l.totalOutputTokens)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Le.jsxDEV("div",{className:"micro dim",children:u("models.first-last-seen",{first:fa(l.firstTimestamp),last:fa(l.lastTimestamp)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Le.jsxDEV("div",{className:"models-detail-chart",children:[Le.jsxDEV("div",{className:"row",style:{justifyContent:"space-between"},children:[Le.jsxDEV("div",{className:"section-label",style:{marginBottom:0},children:u("models.performance-per-bucket",{bucket:p})},void 0,!1,void 0,this),Le.jsxDEV(Ka,{items:x.map((b)=>({key:b.key,label:b.label,color:b.color})),hidden:S,onToggle:h},void 0,!1,void 0,this)]},void 0,!0,void 0,this),c.length===0?Le.jsxDEV(wt,{title:u("models.no-samples-title"),hint:u("models.no-samples-hint")},void 0,!1,void 0,this):Le.jsxDEV(Xr,{buckets:c.map((b)=>b.timestamp),bucketMs:f,series:x,hidden:S,stacked:!1,height:240,format:Ae,formatTooltip:(b)=>u("models.tok-per-second",{value:dr(b)}),formatRight:(b)=>`${Number(b.toFixed(2))}s`,tooltipExtra:(b)=>Le.jsxDEV("div",{className:"chart-tooltip-row chart-tooltip-total",children:[Le.jsxDEV("span",{className:"chart-tooltip-label",children:u("common.requests")},void 0,!1,void 0,this),Le.jsxDEV("span",{className:"chart-tooltip-value",children:z(c[b].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 bD(l){if(l<3600000)return u("models.bucket-5m");if(l<86400000)return u("models.bucket-hour");return u("models.bucket-day")}function fT(l){let i=0;for(let c of l)i+=c??0;return i}var Qm=Z(gt(),1);var Ie=Z(ue(),1),xD=[{value:"requests",label:u("common.requests")},{value:"tokens",label:u("common.tokens")},{value:"cost",label:u("common.cost")}],mT={main:u("overview.main-agent"),subagent:u("overview.subagents"),advisor:u("overview.advisor")},hT={main:"var(--chart-primary)",subagent:"var(--chart-secondary)",advisor:"#9d7bff"},gT=[{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 yT({active:l,range:i,onRequestClick:c}){let f=Ft(["overview",i],({signal:g})=>a1(i,g),{enabled:l}),p=Ft(["recent-requests"],({signal:g})=>Om(12,g),{enabled:l}),[S,h]=Qm.useState("requests"),x=ia(i),b=Qm.useMemo(()=>{let g=f.data?.timeSeries??[],C=_o(i,g.map((w)=>w.timestamp));return{buckets:C,requests:Sa(g,C,(w)=>w.requests-w.errors),errors:Sa(g,C,(w)=>w.errors),tokens:Sa(g,C,(w)=>w.tokens),cost:Sa(g,C,(w)=>w.cost),all:Sa(g,C,(w)=>w.requests)}},[f.data,i]),L=S==="requests"?[{key:"ok",label:u("overview.succeeded"),color:"var(--chart-primary)",values:b.requests},{key:"err",label:u("common.failed"),color:"var(--bad)",values:b.errors}]:S==="tokens"?[{key:"tokens",label:u("common.tokens"),color:"var(--chart-primary)",values:b.tokens}]:[{key:"cost",label:u("overview.api-equivalent"),color:"var(--chart-secondary)",values:b.cost}];return Ie.jsxDEV("div",{className:"page",children:[Ie.jsxDEV(ra,{title:u("overview.title"),description:u("overview.description",{window:u(x.windowKey)})},void 0,!1,void 0,this),Ie.jsxDEV(Ge,{query:f,skeleton:Ie.jsxDEV(zt,{height:112},void 0,!1,void 0,this),children:({overall:g})=>Ie.jsxDEV("div",{"data-stale":f.stale,className:"stack",style:{gap:16},children:[Ie.jsxDEV(la,{min:190,children:[Ie.jsxDEV(ie,{label:u("overview.api-equivalent-cost"),title:u("overview.api-cost-title"),value:Ht(g.totalCost,g.unpricedRequests),hint:g.unpricedRequests>0?u("overview.unpriced-n",{count:z(g.unpricedRequests)}):void 0,spark:b.cost,sparkColor:"var(--chart-secondary)"},void 0,!1,void 0,this),Ie.jsxDEV(ie,{label:u("common.requests"),value:z(g.totalRequests),hint:u("overview.failed-n",{count:z(g.failedRequests)}),spark:b.all},void 0,!1,void 0,this),Ie.jsxDEV(ie,{label:u("overview.conversation-tokens"),title:u("overview.tokens-title"),value:Ae(Ql(g)),hint:u("overview.output-n",{count:Ae(g.totalOutputTokens)}),spark:b.tokens},void 0,!1,void 0,this),Ie.jsxDEV(ie,{label:u("overview.cache-rate"),title:u("overview.cache-rate-title"),value:Fe(g.cacheRate),hint:u("overview.cache-saved",{value:Fe(g.cacheSavings)})},void 0,!1,void 0,this),Ie.jsxDEV(ie,{label:u("common.error-rate"),value:to(g.errorRate),hint:u("overview.succeeded-n",{count:z(g.successfulRequests)}),spark:b.errors,sparkColor:"var(--bad)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ie.jsxDEV(la,{min:140,children:[Ie.jsxDEV(ie,{size:"sm",label:u("overview.uncached-input"),value:Ae(g.totalInputTokens)},void 0,!1,void 0,this),Ie.jsxDEV(ie,{size:"sm",label:u("common.cache-read"),value:Ae(g.totalCacheReadTokens)},void 0,!1,void 0,this),Ie.jsxDEV(ie,{size:"sm",label:u("common.cache-write"),value:Ae(g.totalCacheWriteTokens)},void 0,!1,void 0,this),Ie.jsxDEV(ie,{size:"sm",label:u("common.output"),value:Ae(g.totalOutputTokens)},void 0,!1,void 0,this),Ie.jsxDEV(ie,{size:"sm",label:u("common.premium-requests"),value:z(Math.round(g.totalPremiumRequests*100)/100)},void 0,!1,void 0,this),Ie.jsxDEV(ie,{size:"sm",label:u("common.tokens-per-second"),value:dr(g.avgTokensPerSecond)},void 0,!1,void 0,this),Ie.jsxDEV(ie,{size:"sm",label:u("overview.avg-latency"),value:At(g.avgDuration)},void 0,!1,void 0,this),Ie.jsxDEV(ie,{size:"sm",label:u("overview.avg-ttft"),value:At(g.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),Ie.jsxDEV("div",{className:"grid grid-main-side",children:[Ie.jsxDEV(Ye,{index:1,title:u("overview.activity"),description:x.bucketMs<3600000?u("overview.per-5m"):x.bucketMs<86400000?u("overview.per-hour"):u("overview.per-day"),actions:Ie.jsxDEV(_a,{size:"sm",options:xD,value:S,onChange:h},void 0,!1,void 0,this),stale:f.stale,children:Ie.jsxDEV(Ge,{query:f,skeleton:Ie.jsxDEV(zt,{height:260},void 0,!1,void 0,this),children:()=>Ie.jsxDEV(Xr,{buckets:b.buckets,bucketMs:x.bucketMs,series:L,height:260,format:S==="cost"?(g)=>Ht(g,0):Ae},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ie.jsxDEV(Ye,{index:2,title:u("overview.token-mix"),description:u("overview.token-mix-description"),stale:f.stale,children:Ie.jsxDEV(Ge,{query:f,skeleton:Ie.jsxDEV(zt,{height:260},void 0,!1,void 0,this),children:({overall:g,byAgentType:C})=>{let w={input:g.totalInputTokens,cacheRead:g.totalCacheReadTokens,cacheWrite:g.totalCacheWriteTokens,output:g.totalOutputTokens},A=Ql(g),k=W1(C);return Ie.jsxDEV("div",{className:"stack",style:{gap:18},children:[Ie.jsxDEV("div",{className:"stack",style:{gap:10},children:[Ie.jsxDEV($l,{segments:gT.map((D)=>({key:D.key,label:D.label,value:w[D.key],color:D.color}))},void 0,!1,void 0,this),Ie.jsxDEV(Ka,{items:gT.map((D)=>({key:D.key,label:D.label,color:D.color,value:A>0?Fe(w[D.key]/A,0):"–"}))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ie.jsxDEV("div",{className:"stack",style:{gap:10},children:[Ie.jsxDEV("div",{className:"section-label",style:{marginBottom:0},children:u("overview.by-agent")},void 0,!1,void 0,this),Ie.jsxDEV($l,{segments:k.segments.map((D)=>({key:D.agentType,label:mT[D.agentType],value:D.tokens,color:hT[D.agentType]}))},void 0,!1,void 0,this),k.segments.map((D)=>Ie.jsxDEV("div",{className:"row",style:{justifyContent:"space-between"},children:[Ie.jsxDEV("span",{className:"row",children:[Ie.jsxDEV("span",{className:"swatch",style:{background:hT[D.agentType]}},void 0,!1,void 0,this),mT[D.agentType],Ie.jsxDEV("span",{className:"dim num",children:u("overview.requests-short",{count:z(D.requests)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ie.jsxDEV("span",{className:"row",children:[Ie.jsxDEV("span",{className:"dim num",children:Ae(D.tokens)},void 0,!1,void 0,this),Ie.jsxDEV("span",{className:"num",style:{minWidth:48,textAlign:"right"},children:Fe(D.share)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},D.agentType,!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)]},void 0,!0,void 0,this),Ie.jsxDEV(Ye,{index:3,title:Ie.jsxDEV(Ie.Fragment,{children:[Ie.jsxDEV(ur,{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:Ie.jsxDEV("a",{className:"btn","data-size":"sm","data-variant":"ghost",href:`#/requests?range=${i}`,children:[u("overview.all-requests")," ",Ie.jsxDEV(fd,{size:13},void 0,!1,void 0,this)]},void 0,!0,void 0,this),flush:!0,children:Ie.jsxDEV(Ge,{query:p,skeleton:Ie.jsxDEV(ca,{rows:8},void 0,!1,void 0,this),children:(g)=>Ie.jsxDEV(Xt,{rows:g,rowKey:(C)=>C.id??`${C.sessionFile}:${C.entryId}`,onRowClick:(C)=>C.id!==void 0&&c(C.id),columns:SD,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)}var SD=[{key:"model",header:u("common.model"),render:(l)=>Ie.jsxDEV(Ha,{primary:l.model,secondary:l.provider},void 0,!1,void 0,this)},{key:"time",header:u("overview.when"),render:(l)=>Ie.jsxDEV("span",{className:"muted",children:fa(l.timestamp)},void 0,!1,void 0,this)},{key:"tokens",header:u("common.tokens"),align:"right",render:(l)=>Ie.jsxDEV("span",{className:"num",children:z(l.usage.totalTokens)},void 0,!1,void 0,this)},{key:"cost",header:u("common.cost"),align:"right",render:(l)=>Ie.jsxDEV("span",{className:"num",children:Yl(l,4)},void 0,!1,void 0,this)},{key:"duration",header:u("common.duration"),align:"right",render:(l)=>Ie.jsxDEV("span",{className:"num",children:At(l.duration)},void 0,!1,void 0,this)},{key:"status",header:u("overview.status"),align:"right",render:(l)=>l.errorMessage?Ie.jsxDEV(Nt,{tone:"bad",children:u("common.failed")},void 0,!1,void 0,this):Ie.jsxDEV(Nt,{tone:"ok",children:u("overview.ok")},void 0,!1,void 0,this)}];var Rn=Z(gt(),1);var Ve=Z(ue(),1),LD=100,vT=8;function bT({active:l,range:i}){let c=Ft(["projects",i],({signal:D})=>f1(i,D),{enabled:l}),[f,p]=Rn.useState(""),[S,h]=Rn.useState(!0),x=Rn.useDeferredValue(f.trim().toLowerCase()),b=ia(i),L=Rn.useMemo(()=>tT(c.data??[]),[c.data]),g=Rn.useMemo(()=>S?L.rows.filter((D)=>!D.temporary):L.rows,[L,S]),C=Rn.useMemo(()=>x?g.filter((D)=>D.folder.toLowerCase().includes(x)):g,[g,x]),w=Rn.useMemo(()=>({cost:[...g].sort((D,M)=>M.totalCost-D.totalCost).slice(0,vT),requests:[...g].sort((D,M)=>M.totalRequests-D.totalRequests).slice(0,vT)}),[g]),A=Ve.jsxDEV(wt,{title:u(L.rows.length===0?"projects.empty-no-folders":"projects.empty-only-temporary")},void 0,!1,void 0,this),k=Rn.useMemo(()=>CD(L.maxRequests,L.maxCost),[L]);return Ve.jsxDEV("div",{className:"page",children:[Ve.jsxDEV(ra,{title:u("projects.title"),description:u("projects.description",{window:u(b.windowKey)})},void 0,!1,void 0,this),Ve.jsxDEV(Ge,{query:c,skeleton:Ve.jsxDEV(zt,{height:96},void 0,!1,void 0,this),children:()=>Ve.jsxDEV("div",{"data-stale":c.stale,children:Ve.jsxDEV(la,{min:180,children:[Ve.jsxDEV(ie,{label:u("projects.folders"),value:z(L.rows.length),hint:L.temporaryCount>0?u("projects.temporary-n",{count:z(L.temporaryCount)}):void 0},void 0,!1,void 0,this),Ve.jsxDEV(ie,{label:u("common.requests"),value:z(L.totalRequests),hint:u("projects.failed-n",{count:z(L.failedRequests)})},void 0,!1,void 0,this),Ve.jsxDEV(ie,{label:u("projects.api-equivalent-cost"),title:u("projects.api-equivalent-cost-hint"),value:Ht(L.totalCost,L.unpricedRequests),hint:L.unpricedRequests>0?u("projects.unpriced-n",{count:z(L.unpricedRequests)}):void 0},void 0,!1,void 0,this),Ve.jsxDEV(ie,{label:u("projects.conversation-tokens"),title:u("projects.conversation-tokens-hint"),value:Ae(L.conversationTokens)},void 0,!1,void 0,this),Ve.jsxDEV(ie,{label:u("projects.cache-rate"),title:u("projects.cache-rate-hint-all"),value:Fe(L.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),Ve.jsxDEV("div",{className:"grid grid-2",children:[Ve.jsxDEV(Ye,{index:1,title:u("projects.top-by-cost"),description:u("projects.top-by-cost-description"),stale:c.stale,children:Ve.jsxDEV(Ge,{query:c,skeleton:Ve.jsxDEV(zt,{height:236},void 0,!1,void 0,this),isEmpty:()=>w.cost.length===0,empty:A,children:()=>Ve.jsxDEV(Bd,{items:w.cost.map((D)=>({key:D.folder,label:Ve.jsxDEV("span",{className:"mono",children:fr(D.folder)},void 0,!1,void 0,this),value:D.totalCost,display:`${Ht(D.totalCost,D.unpricedRequests)} · ${Fe(D.costShare)}`,color:"var(--chart-secondary)"})),onSelect:p},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ve.jsxDEV(Ye,{index:2,title:u("projects.top-by-requests"),description:u("projects.top-by-requests-description"),stale:c.stale,children:Ve.jsxDEV(Ge,{query:c,skeleton:Ve.jsxDEV(zt,{height:236},void 0,!1,void 0,this),isEmpty:()=>w.requests.length===0,empty:A,children:()=>Ve.jsxDEV(Bd,{items:w.requests.map((D)=>({key:D.folder,label:Ve.jsxDEV("span",{className:"mono",children:fr(D.folder)},void 0,!1,void 0,this),value:D.totalRequests,display:`${z(D.totalRequests)} · ${Fe(D.requestShare)}`})),onSelect:p},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ve.jsxDEV(Ye,{index:3,title:u("projects.folders"),description:c.data?C.length===L.rows.length?u("projects.folders-n",{count:z(L.rows.length)}):u("projects.folders-of-n",{count:z(C.length),total:z(L.rows.length)}):void 0,actions:Ve.jsxDEV(Ve.Fragment,{children:[L.temporaryCount>0&&Ve.jsxDEV("label",{className:"check",title:u("projects.hide-temporary-hint"),children:[Ve.jsxDEV("input",{type:"checkbox",checked:S,onChange:(D)=>h(D.target.checked)},void 0,!1,void 0,this),u("projects.hide-temporary",{count:z(L.temporaryCount)})]},void 0,!0,void 0,this),Ve.jsxDEV(cr,{value:f,onChange:p,placeholder:u("projects.filter-placeholder"),width:240},void 0,!1,void 0,this)]},void 0,!0,void 0,this),flush:!0,stale:c.stale,children:Ve.jsxDEV(Ge,{query:c,skeleton:Ve.jsxDEV(ca,{rows:10},void 0,!1,void 0,this),children:()=>Ve.jsxDEV(Xt,{rows:C,rowKey:(D)=>D.folder,columns:k,initialSort:{key:"cost",dir:"desc"},limit:LD,dense:!0,empty:Ve.jsxDEV(wt,{title:u(L.rows.length===0?"projects.empty-no-folders":"projects.empty-no-match"),hint:L.rows.length===0?u("projects.hint-longer-range"):S&&L.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 CD(l,i){return[{key:"folder",header:u("projects.folder"),sort:(c)=>c.folder,render:(c)=>Ve.jsxDEV("span",{className:"row projects-folder",title:c.folder||u("common.root"),children:[Ve.jsxDEV("span",{className:"mono truncate",children:fr(c.folder)},void 0,!1,void 0,this),c.temporary&&Ve.jsxDEV(Nt,{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:(c)=>c.totalRequests,render:(c)=>Ve.jsxDEV("span",{title:u("projects.share-of-requests",{share:Fe(c.requestShare)}),children:Ve.jsxDEV(pa,{value:c.totalRequests,max:l,display:z(c.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:(c)=>c.totalCost,render:(c)=>Ve.jsxDEV("span",{title:u("projects.share-of-cost",{share:Fe(c.costShare)}),children:Ve.jsxDEV(pa,{value:c.totalCost,max:i,display:Ht(c.totalCost,c.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:(c)=>c.conversationTokens,render:(c)=>Ve.jsxDEV("span",{className:"num",title:z(c.conversationTokens),children:Ae(c.conversationTokens)},void 0,!1,void 0,this)},{key:"cacheRate",header:u("projects.cache-rate"),title:u("projects.cache-rate-hint"),align:"right",sort:(c)=>c.cacheRate,render:(c)=>Ve.jsxDEV("span",{className:"num",children:Fe(c.cacheRate)},void 0,!1,void 0,this)},{key:"cacheSavings",header:u("projects.cache-savings"),title:u("projects.cache-savings-hint"),align:"right",sort:(c)=>c.cacheSavings,render:(c)=>Ve.jsxDEV("span",{className:`num ${c.cacheSavings<0?"tone-bad":"muted"}`,children:Fe(c.cacheSavings)},void 0,!1,void 0,this)},{key:"errorRate",header:u("projects.errors"),align:"right",sort:(c)=>c.errorRate,render:(c)=>Ve.jsxDEV("span",{title:u("projects.failed-n",{count:z(c.failedRequests)}),children:Ve.jsxDEV(Nt,{tone:c.failedRequests>0?ir(c.errorRate):"neutral",mono:!0,children:to(c.errorRate)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"duration",header:u("projects.avg-duration"),align:"right",sort:(c)=>c.avgDuration??-1,render:(c)=>Ve.jsxDEV("span",{className:"num",children:At(c.avgDuration)},void 0,!1,void 0,this)},{key:"last",header:u("projects.last-active"),align:"right",sort:(c)=>c.lastTimestamp,render:(c)=>Ve.jsxDEV("span",{className:"dim",children:fa(c.lastTimestamp)},void 0,!1,void 0,this)}]}var po=Z(gt(),1);var ee=Z(ue(),1),wD=[{value:"tokens",label:u("common.tokens")},{value:"cost",label:u("common.cost"),title:u("providers.cost-title")},{value:"requests",label:u("common.requests")}],xT=6,ST=[{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)"}],LT=u("providers.snapshot-hint");function CT({active:l,range:i}){let c=Ft(["providers",i],({signal:P})=>h1(i,P),{enabled:l}),[f,p]=po.useState("tokens"),[S,h]=sn(),x=ia(i),b=Ft(["provider-windows",i],({signal:P})=>Fv(i,null,P),{enabled:l}),[L,g]=po.useState(null),C=kD(b.data?.windowInsights??[],L),w=C?.provider??null,A=Ft(["provider-windows",i,w],({signal:P})=>Fv(i,w,P),{enabled:l&&w!==null}),k=po.useMemo(()=>{let P=c.data?.providers??[],j=c.data?.series??[],Y=Nd(P.map((X)=>({key:X.provider,weight:X.totalTokens}))),ce=_o(i,j.map((X)=>X.timestamp)),J={requests:0,failed:0,tokens:0,cost:0,unpriced:0};for(let X of P)J.requests+=X.totalRequests,J.failed+=X.failedRequests,J.tokens+=X.totalTokens,J.cost+=X.totalCost,J.unpriced+=X.unpricedRequests;let te=(X)=>hr(j,{buckets:ce,key:(ae)=>ae.provider,value:X,limit:xT,colors:Y}).map((ae)=>({...ae,values:ae.values.map((H)=>H||null)}));return{colors:Y,buckets:ce,totals:J,burn:{tokens:te((X)=>X.totalTokens),cost:te((X)=>X.cost),requests:te((X)=>X.requests)},spark:{tokens:Sa(j,ce,(X)=>X.totalTokens),cost:Sa(j,ce,(X)=>X.cost),requests:Sa(j,ce,(X)=>X.requests)},topProvider:P.reduce((X,ae)=>X===null||ae.totalTokens>X.totalTokens?ae:X,null)}},[c.data,i]),D=k.burn[f],M=f==="cost"?(P)=>da(P):Ae,N=k.totals;return ee.jsxDEV("div",{className:"page",children:[ee.jsxDEV(ra,{title:u("common.providers"),description:u("providers.description",{window:u(x.windowKey)})},void 0,!1,void 0,this),ee.jsxDEV(Ge,{query:c,skeleton:ee.jsxDEV(zt,{height:112},void 0,!1,void 0,this),children:({providers:P})=>ee.jsxDEV("div",{"data-stale":c.stale,children:ee.jsxDEV(la,{min:190,children:[ee.jsxDEV(ie,{label:u("common.providers"),value:z(P.length),hint:k.topProvider?u("providers.most-tokens",{provider:k.topProvider.provider}):void 0},void 0,!1,void 0,this),ee.jsxDEV(ie,{label:u("common.requests"),value:z(N.requests),hint:u("providers.failed-n",{count:z(N.failed)}),spark:k.spark.requests},void 0,!1,void 0,this),ee.jsxDEV(ie,{label:u("common.tokens"),title:u("providers.tokens-title"),value:Ae(N.tokens),spark:k.spark.tokens},void 0,!1,void 0,this),ee.jsxDEV(ie,{label:u("providers.api-equivalent-cost"),title:u("providers.api-cost-title"),value:Ht(N.cost,N.unpriced),hint:N.unpriced>0?u("providers.unpriced-n",{count:z(N.unpriced)}):void 0,spark:k.spark.cost,sparkColor:"var(--chart-secondary)"},void 0,!1,void 0,this),ee.jsxDEV(ie,{label:u("common.error-rate"),value:to(N.requests>0?N.failed/N.requests:0),hint:u("providers.succeeded-n",{count:z(N.requests-N.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),ee.jsxDEV(Ye,{index:1,title:u("providers.totals"),description:N.unpriced>0?u(N.unpriced===1?"providers.totals-description-unpriced-one":"providers.totals-description-unpriced-n",{count:z(N.unpriced)}):u("providers.totals-description"),flush:!0,stale:c.stale,children:ee.jsxDEV(Ge,{query:c,skeleton:ee.jsxDEV(ca,{rows:6},void 0,!1,void 0,this),children:({providers:P})=>ee.jsxDEV(TD,{providers:P,colors:k.colors},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),ee.jsxDEV("div",{className:"grid grid-main-side",children:[ee.jsxDEV(Ye,{index:2,title:u("providers.burn"),description:f==="cost"&&N.unpriced>0?u("providers.burn-estimate-description",{bucket:x.bucketMs<86400000?u("providers.bucket-hour"):u("providers.bucket-day")}):u("providers.burn-description",{bucket:x.bucketMs<3600000?u("providers.bucket-5m"):x.bucketMs<86400000?u("providers.bucket-hour"):u("providers.bucket-day"),count:xT}),actions:ee.jsxDEV(_a,{size:"sm",options:wD,value:f,onChange:p},void 0,!1,void 0,this),stale:c.stale,children:ee.jsxDEV(Ge,{query:c,skeleton:ee.jsxDEV(zt,{height:260},void 0,!1,void 0,this),children:()=>ee.jsxDEV("div",{className:"stack",style:{gap:12},children:[ee.jsxDEV(Xr,{buckets:k.buckets,bucketMs:x.bucketMs,series:D,hidden:S,height:260,format:M,formatTooltip:f==="cost"?(P)=>da(P):z,emptyLabel:u("providers.no-provider-activity")},void 0,!1,void 0,this),ee.jsxDEV(Ka,{items:D.map((P)=>({key:P.key,label:P.label,color:P.color,value:M(P.values.reduce((j,Y)=>j+(Y??0),0))})),hidden:S,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),ee.jsxDEV(Ge,{query:c,skeleton:ee.jsxDEV(zt,{height:320},void 0,!1,void 0,this),children:({hourly:P,providers:j})=>ee.jsxDEV(RD,{hourly:P,providers:j,stale:c.stale},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ee.jsxDEV(Ye,{index:4,title:u("providers.subscription-windows"),description:u("providers.subscription-windows-description"),flush:!0,stale:b.stale,children:ee.jsxDEV(Ge,{query:b,skeleton:ee.jsxDEV(ca,{rows:6},void 0,!1,void 0,this),children:(P)=>ee.jsxDEV(AD,{insights:P.windowInsights,selected:C,onSelect:g},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),ee.jsxDEV(qD,{insights:b.data?.windowInsights??null,accounts:A,selected:C,onSelect:g},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function kD(l,i){if(i&&l.some((f)=>f.provider===i.provider&&f.windowKey===i.windowKey))return i;let c=i&&l.find((f)=>f.provider===i.provider)||l.reduce((f,p)=>f===void 0||p.fractionConsumed>f.fractionConsumed?p:f,void 0);return c?{provider:c.provider,windowKey:c.windowKey}:null}function TD({providers:l,colors:i}){let[c,f]=po.useState(null),p=po.useMemo(()=>{let S=0,h=0,x=0;for(let b of l)S=Math.max(S,b.totalRequests),h=Math.max(h,b.totalTokens),x+=b.totalTokens;return[{key:"provider",header:u("common.provider"),sort:(b)=>b.provider,render:(b)=>ee.jsxDEV("span",{className:"row",style:{gap:8},children:[ee.jsxDEV(Cn,{color:i.get(b.provider)??ao},void 0,!1,void 0,this),ee.jsxDEV("span",{className:"mono cell-primary",children:b.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"requests",header:u("common.requests"),align:"right",sort:(b)=>b.totalRequests,render:(b)=>ee.jsxDEV(pa,{value:b.totalRequests,max:S,display:z(b.totalRequests)},void 0,!1,void 0,this)},{key:"errors",header:u("common.error-rate"),align:"right",sort:(b)=>b.totalRequests>0?b.failedRequests/b.totalRequests:0,render:(b)=>{let L=b.totalRequests>0?b.failedRequests/b.totalRequests:0;return ee.jsxDEV("span",{className:"row",style:{gap:8,justifyContent:"flex-end"},children:[ee.jsxDEV("span",{className:"num dim",children:z(b.failedRequests)},void 0,!1,void 0,this),ee.jsxDEV(Nt,{tone:b.failedRequests>0?ir(L):"neutral",mono:!0,children:to(L)},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:(b)=>b.models,render:(b)=>ee.jsxDEV("span",{className:"num",children:z(b.models)},void 0,!1,void 0,this)},{key:"tokens",header:u("common.tokens"),title:u("providers.tokens-title"),align:"right",sort:(b)=>b.totalTokens,render:(b)=>ee.jsxDEV(pa,{value:b.totalTokens,max:h,display:Ae(b.totalTokens),color:i.get(b.provider)},void 0,!1,void 0,this)},{key:"share",header:u("common.share"),title:u("providers.share-title"),align:"right",sort:(b)=>b.totalTokens,render:(b)=>ee.jsxDEV("span",{className:"num muted",children:Fe(x>0?b.totalTokens/x:0)},void 0,!1,void 0,this)},{key:"cost",header:u("common.cost"),title:u("providers.cost-title"),align:"right",sort:(b)=>b.totalCost,render:(b)=>ee.jsxDEV("span",{className:"num",title:b.unpricedRequests>0?u("providers.unpriced-n",{count:z(b.unpricedRequests)}):void 0,children:Ht(b.totalCost,b.unpricedRequests)},void 0,!1,void 0,this)},{key:"tps",header:u("common.tokens-per-second"),title:u("providers.tps-title"),align:"right",sort:(b)=>b.avgTokensPerSecond??-1,render:(b)=>ee.jsxDEV("span",{className:"num",children:dr(b.avgTokensPerSecond)},void 0,!1,void 0,this)},{key:"premium",header:u("common.premium"),title:u("providers.premium-title"),align:"right",sort:(b)=>b.totalPremiumRequests,render:(b)=>ee.jsxDEV("span",{className:b.totalPremiumRequests>0?"num":"num dim",children:z(Math.round(b.totalPremiumRequests*100)/100)},void 0,!1,void 0,this)}]},[l,i]);return ee.jsxDEV(Xt,{rows:l,rowKey:(S)=>S.provider,columns:p,initialSort:{key:"tokens",dir:"desc"},limit:12,selectedKey:c,onRowClick:(S)=>f((h)=>h===S.provider?null:S.provider),expanded:(S)=>S.provider===c?ee.jsxDEV(ID,{provider:S},void 0,!1,void 0,this):null,empty:ee.jsxDEV(wt,{title:u("providers.no-requests-in-range")},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function ID({provider:l}){let i={input:l.totalInputTokens,cacheRead:l.totalCacheReadTokens,cacheWrite:l.totalCacheWriteTokens,output:l.totalOutputTokens};return ee.jsxDEV("div",{className:"providers-mix",children:[ee.jsxDEV($l,{segments:ST.map((c)=>({key:c.key,label:c.label,value:i[c.key],color:c.color}))},void 0,!1,void 0,this),ee.jsxDEV(Ka,{items:ST.map((c)=>({key:c.key,label:c.label,color:c.color,value:`${Ae(i[c.key])} · ${l.totalTokens>0?Fe(i[c.key]/l.totalTokens,0):"–"}`}))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Vd="";function RD({hourly:l,providers:i,stale:c}){let[f,p]=po.useState(Vd),S=f===Vd||i.some((b)=>b.provider===f)?f:Vd,h=po.useMemo(()=>{let b=Array.from({length:24},()=>0),L=Array.from({length:24},()=>0),g=Array.from({length:24},()=>0);for(let k of l){if(S!==Vd&&k.provider!==S)continue;b[k.hour]+=k.totalTokens,L[k.hour]+=k.outputTokens,g[k.hour]+=k.requests}let C=0;for(let k=1;k<24;k++)if(b[k]>b[C])C=k;let w=b[C]>0;return{series:[{key:"tokens",label:u("common.tokens"),color:"var(--chart-primary)",values:b.map((k,D)=>w&&D===C?null:k)},{key:"peak",label:u("providers.tokens-peak-hour"),color:"var(--chart-secondary)",values:b.map((k,D)=>w&&D===C?k:null)}],output:L,requests:g,peak:C,hasData:w}},[l,S]),x=(b)=>`${String(b).padStart(2,"0")}:00`;return ee.jsxDEV(Ye,{index:3,title:u("providers.peak-burn-hours"),description:h.hasData?u("providers.peak-hours-description",{hour:x(h.peak)}):u("providers.hours-description"),actions:ee.jsxDEV("select",{className:"input providers-select",value:S,onChange:(b)=>p(b.target.value),"aria-label":u("common.provider"),children:[ee.jsxDEV("option",{value:Vd,children:u("providers.all-providers")},void 0,!1,void 0,this),i.map((b)=>ee.jsxDEV("option",{value:b.provider,children:b.provider},b.provider,!1,void 0,this))]},void 0,!0,void 0,this),stale:c,children:ee.jsxDEV(Tn,{slots:24,tickLabel:(b)=>String(b).padStart(2,"0"),tooltipTitle:(b)=>`${x(b)}–${x((b+1)%24)}`,series:h.series,height:260,showTotal:!1,formatTooltip:z,emptyLabel:u("providers.no-activity-in-range"),tooltipExtra:(b)=>ee.jsxDEV(ee.Fragment,{children:[ee.jsxDEV("div",{className:"chart-tooltip-row",children:[ee.jsxDEV("span",{className:"chart-tooltip-label",children:u("common.output")},void 0,!1,void 0,this),ee.jsxDEV("span",{className:"chart-tooltip-value",children:z(h.output[b])},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ee.jsxDEV("div",{className:"chart-tooltip-row",children:[ee.jsxDEV("span",{className:"chart-tooltip-label",children:u("common.requests")},void 0,!1,void 0,this),ee.jsxDEV("span",{className:"chart-tooltip-value",children:z(h.requests[b])},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 AD({insights:l,selected:i,onSelect:c}){return ee.jsxDEV(Xt,{rows:l,rowKey:(f)=>`${f.provider}::${f.windowKey}`,columns:MD,initialSort:{key:"consumed",dir:"desc"},limit:12,selectedKey:i?`${i.provider}::${i.windowKey}`:null,onRowClick:(f)=>c({provider:f.provider,windowKey:f.windowKey}),empty:ee.jsxDEV(wt,{title:u("providers.no-snapshots-in-range"),hint:LT},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var MD=[{key:"window",header:u("providers.window"),sort:(l)=>`${l.provider} ${l.windowKey}`,render:(l)=>ee.jsxDEV(Ha,{primary:l.windowKey,secondary:ee.jsxDEV("span",{className:"mono",children:l.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:(l)=>l.accounts,render:(l)=>ee.jsxDEV("span",{className:"num",children:z(l.accounts)},void 0,!1,void 0,this)},{key:"cycles",header:u("providers.resets"),title:u("providers.resets-title"),align:"right",sort:(l)=>l.cycles,render:(l)=>ee.jsxDEV("span",{className:"num muted",children:z(l.cycles)},void 0,!1,void 0,this)},{key:"consumed",header:u("providers.windows-burned"),title:u("providers.windows-burned-title"),align:"right",sort:(l)=>l.fractionConsumed,render:(l)=>ee.jsxDEV("span",{className:"num",children:l.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:(l)=>l.estTokensPerWindow??-1,render:(l)=>l.estTokensPerWindow!==null?ee.jsxDEV("span",{className:"num",children:Ae(l.estTokensPerWindow)},void 0,!1,void 0,this):ee.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:(l)=>l.peakConcurrentFraction,render:(l)=>{let i=l.accounts>0?l.peakConcurrentFraction/l.accounts:0;return ee.jsxDEV(pa,{value:l.peakConcurrentFraction,max:l.accounts,display:Fe(l.peakConcurrentFraction,0),color:i>=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:(l)=>l.idealAccounts-l.accounts,render:(l)=>l.idealAccounts>l.accounts?ee.jsxDEV(Nt,{tone:"warn",mono:!0,children:u("providers.ideal-accounts",{ideal:z(l.idealAccounts),have:z(l.accounts)})},void 0,!1,void 0,this):ee.jsxDEV("span",{className:"num",children:z(l.idealAccounts)},void 0,!1,void 0,this)},{key:"exhausted",header:u("providers.exhaustions"),title:u("providers.exhaustions-title"),align:"right",sort:(l)=>l.exhaustedEvents,render:(l)=>l.exhaustedEvents>0?ee.jsxDEV(Nt,{tone:"warn",mono:!0,children:u("providers.exhausted-n",{count:z(l.exhaustedEvents)})},void 0,!1,void 0,this):ee.jsxDEV("span",{className:"num dim",children:"0"},void 0,!1,void 0,this)}],Km=60000,Qr=60*Km,Zm=24*Qr,DD=[5*Km,15*Km,30*Km,Qr,2*Qr,3*Qr,6*Qr,12*Qr,Zm],ED=240,OD=6*Qr;function qD({insights:l,accounts:i,selected:c,onSelect:f}){let[p,S]=sn(),h=po.useMemo(()=>[...new Set((l??[]).map((k)=>k.provider))],[l]),x=po.useMemo(()=>(l??[]).filter((k)=>k.provider===c?.provider).map((k)=>({key:k.windowKey,label:k.windowKey})),[l,c?.provider]),b=po.useMemo(()=>(i.data?.usageSeries??[]).filter((k)=>k.provider===c?.provider),[i.data,c?.provider]),L=b.length===0&&(i.loading||i.stale),g=po.useMemo(()=>{let k=new Map;for(let M of b){let N=k.get(M.accountLabel)??[];if(!N.includes(M.accountKey))N.push(M.accountKey);k.set(M.accountLabel,N)}let D=new Map;for(let[M,N]of k)N.sort(),N.forEach((P,j)=>D.set(P,N.length>1?`${M} #${j+1}`:M));return D},[b]),C=po.useMemo(()=>BD(b.filter((k)=>k.windowKey===c?.windowKey),g),[b,g,c?.windowKey]),w=po.useMemo(()=>{let k=new Map(C.series.map((D)=>[D.key,D.color]));return b.map((D)=>{let M=null,N=null;for(let Y of D.points){if(Y.usedFraction===null)continue;if(N=Math.max(N??0,Y.usedFraction),!M||Y.timestamp>=M.timestamp)M={fraction:Y.usedFraction,exhausted:Y.exhausted,timestamp:Y.timestamp}}let P=D.windowKey===c?.windowKey?k.get(D.accountKey)??null:null,j=g.get(D.accountKey)??D.accountLabel;return{series:D,name:j,color:P,latest:M,peak:N,samples:D.points.length}}).sort((D,M)=>Number(M.color!==null)-Number(D.color!==null)||D.series.windowKey.localeCompare(M.series.windowKey)||(M.latest?.fraction??-1)-(D.latest?.fraction??-1))},[b,g,C.series,c?.windowKey]),A=x.find((k)=>k.key===c?.windowKey)?.label;return ee.jsxDEV(Ye,{index:5,title:u("providers.utilization"),description:C.buckets.length>0?u("providers.utilization-description",{window:A??u("providers.window"),from:$v(C.first),to:$v(C.last)}):u("providers.utilization-description-plain"),actions:c&&ee.jsxDEV("div",{className:"row",style:{gap:6},children:[ee.jsxDEV("select",{className:"input providers-select",value:c.provider,onChange:(k)=>{let D=k.target.value,M=l?.find((N)=>N.provider===D);if(M)f({provider:D,windowKey:M.windowKey})},"aria-label":u("common.provider"),children:h.map((k)=>ee.jsxDEV("option",{value:k,children:k},k,!1,void 0,this))},void 0,!1,void 0,this),ee.jsxDEV("select",{className:"input providers-select",value:c.windowKey,onChange:(k)=>f({provider:c.provider,windowKey:k.target.value}),"aria-label":u("providers.window"),children:x.map((k)=>ee.jsxDEV("option",{value:k.key,children:k.label},k.key,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),stale:i.stale,children:l===null?ee.jsxDEV(zt,{height:260},void 0,!1,void 0,this):c===null?ee.jsxDEV(wt,{title:u("providers.no-snapshots-in-range"),hint:LT},void 0,!1,void 0,this):ee.jsxDEV(Ge,{query:i,skeleton:ee.jsxDEV(zt,{height:260},void 0,!1,void 0,this),children:()=>L?ee.jsxDEV(zt,{height:260},void 0,!1,void 0,this):ee.jsxDEV("div",{className:"stack",style:{gap:16},children:[ee.jsxDEV("div",{className:"stack",style:{gap:12},children:[ee.jsxDEV(Tn,{slots:C.buckets.length,tickLabel:(k)=>Em(C.buckets[k],C.last-C.first>Zm?Zm:C.bucketMs),tooltipTitle:(k)=>Dm(C.buckets[k],Qr),series:C.series,hidden:p,kind:"line",stacked:!1,height:260,yMax:Math.max(1,C.max),format:(k)=>Fe(k,0),formatTooltip:(k)=>Fe(k,1),references:[{value:1,label:"100%"}],emptyLabel:u("providers.no-utilization-readings"),tooltipExtra:(k)=>{let D=C.exhausted[k];return D.length>0?ee.jsxDEV("div",{className:"chart-tooltip-row",children:[ee.jsxDEV("span",{className:"chart-tooltip-label tone-bad",children:u("providers.exhausted")},void 0,!1,void 0,this),ee.jsxDEV("span",{className:"chart-tooltip-value",children:D.join(", ")},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null}},void 0,!1,void 0,this),C.series.length>1&&ee.jsxDEV(Ka,{items:C.series.map((k)=>({key:k.key,label:k.label,color:k.color})),hidden:p,onToggle:S},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ee.jsxDEV("div",{className:"providers-accounts",children:ee.jsxDEV(Xt,{rows:w,rowKey:(k)=>`${k.series.windowKey}::${k.series.accountKey}`,columns:zD,limit:16,onRowClick:(k)=>f({provider:k.series.provider,windowKey:k.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 BD(l,i){let{POSITIVE_INFINITY:c,NEGATIVE_INFINITY:f}=Number;for(let A of l)for(let k of A.points){if(k.timestamp<c)c=k.timestamp;if(k.timestamp>f)f=k.timestamp}if(!(f>=c))return{buckets:[],bucketMs:Qr,first:0,last:0,max:0,series:[],exhausted:[]};let p=f-c,S=DD.find((A)=>p/A<ED)??Zm,h=_o("all",[c],S,f),x=(A)=>Math.floor((A-h[0])/S),b=h.map(()=>[]),L=0,g=(A)=>i.get(A.accountKey)??A.accountLabel,w=[...l].sort((A,k)=>g(A).localeCompare(g(k))).map((A,k)=>{let D=h.map(()=>null),M=h.map(()=>0);for(let j of A.points){let Y=x(j.timestamp);if(Y<0||Y>=h.length)continue;if(j.exhausted&&!b[Y].includes(g(A)))b[Y].push(g(A));if(j.usedFraction===null||j.timestamp<M[Y])continue;D[Y]=j.usedFraction,M[Y]=j.timestamp,L=Math.max(L,j.usedFraction)}let N=null,P=0;for(let j=0;j<h.length;j++)if(D[j]!==null)N=D[j],P=M[j];else if(N!==null&&h[j]-P<=OD)D[j]=N;return{key:A.accountKey,label:g(A),color:Fa[k%Fa.length],values:D}});return{buckets:h,bucketMs:S,first:c,last:f,max:L,series:w,exhausted:b}}function ND(l){if(!l)return ee.jsxDEV("span",{className:"dim",children:u("providers.no-reading")},void 0,!1,void 0,this);if(l.exhausted)return ee.jsxDEV(Nt,{tone:"bad",children:u("providers.exhausted")},void 0,!1,void 0,this);if(l.fraction>=0.8)return ee.jsxDEV(Nt,{tone:"warn",children:u("providers.high")},void 0,!1,void 0,this);return ee.jsxDEV(Nt,{tone:"ok",children:u("ui.status-ok")},void 0,!1,void 0,this)}var zD=[{key:"account",header:u("providers.account"),sort:(l)=>l.name,render:(l)=>ee.jsxDEV("span",{className:"row",style:{gap:8},children:[ee.jsxDEV("span",{className:"providers-swatch-slot",children:l.color&&ee.jsxDEV(Cn,{color:l.color},void 0,!1,void 0,this)},void 0,!1,void 0,this),ee.jsxDEV("span",{className:"truncate providers-account",title:l.series.accountKey,children:l.name},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"window",header:u("providers.window"),sort:(l)=>l.series.windowKey,render:(l)=>ee.jsxDEV("span",{className:l.color?void 0:"muted",children:l.series.windowKey},void 0,!1,void 0,this)},{key:"latest",header:u("providers.latest-used"),align:"right",sort:(l)=>l.latest?.fraction??-1,render:(l)=>l.latest?ee.jsxDEV(pa,{value:l.latest.fraction,max:1,display:Fe(l.latest.fraction,0),color:l.latest.exhausted?"var(--bad)":l.latest.fraction>=0.8?"var(--warn)":"var(--ok)"},void 0,!1,void 0,this):ee.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this)},{key:"status",header:u("providers.status"),sort:(l)=>l.latest?.exhausted?2:(l.latest?.fraction??0)>=0.8?1:0,render:(l)=>ND(l.latest)},{key:"peak",header:u("providers.peak-in-range"),align:"right",sort:(l)=>l.peak??-1,render:(l)=>ee.jsxDEV("span",{className:"num",children:l.peak===null?"–":Fe(l.peak,0)},void 0,!1,void 0,this)},{key:"samples",header:u("providers.snapshots"),align:"right",sort:(l)=>l.samples,render:(l)=>ee.jsxDEV("span",{className:"num muted",children:z(l.samples)},void 0,!1,void 0,this)},{key:"recorded",header:u("providers.recorded"),align:"right",sort:(l)=>l.latest?.timestamp??0,render:(l)=>ee.jsxDEV("span",{className:"muted",children:l.latest?fa(l.latest.timestamp):"–"},void 0,!1,void 0,this)}];var tu=Z(gt(),1);var ot=Z(ue(),1),Wm={ok:{label:u("ui.status-ok"),tone:"ok"},aborted:{label:u("common.aborted"),tone:"warn"},failed:{label:u("common.failed"),tone:"bad"}};function wT({id:l,onClose:i}){let c=Ft(["request",l],({signal:S})=>l1(l??0,S),{enabled:l!==null}),f=c.stale?null:c.data,p=f?Wm[Yr(f)]:null;return ot.jsxDEV(zm,{open:l!==null,onClose:i,width:620,title:f?ot.jsxDEV("span",{className:"mono",children:f.model},void 0,!1,void 0,this):u("common.request"),subtitle:f?ot.jsxDEV(ot.Fragment,{children:[f.provider," ·"," ",ot.jsxDEV("span",{title:ln(f.timestamp),children:fa(f.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this):l!==null?ot.jsxDEV("span",{className:"mono",children:["#",l]},void 0,!0,void 0,this):void 0,actions:f&&p?ot.jsxDEV("div",{className:"row",style:{gap:6},children:[ot.jsxDEV("a",{className:"btn","data-size":"sm","data-variant":"ghost",href:jm({...qd(window.location.hash),section:"traces",session:f.sessionFile}),onClick:i,title:u("ui.open-trace"),children:[ot.jsxDEV(bd,{size:13},void 0,!1,void 0,this)," Trace"]},void 0,!0,void 0,this),ot.jsxDEV(Nt,{tone:p.tone,children:p.label},void 0,!1,void 0,this)]},void 0,!0,void 0,this):void 0,children:f?ot.jsxDEV(UD,{details:f,aborted:Yr(f)==="aborted"},void 0,!1,void 0,this):c.error?ot.jsxDEV(yi,{error:c.error,onRetry:c.refetch},void 0,!1,void 0,this):ot.jsxDEV("div",{className:"stack",style:{gap:12},children:[ot.jsxDEV(qa,{height:56},void 0,!1,void 0,this),ot.jsxDEV(qa,{height:120},void 0,!1,void 0,this),ot.jsxDEV(qa,{height:120},void 0,!1,void 0,this),ot.jsxDEV(qa,{height:220},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function UD({details:l,aborted:i}){let{usage:c}=l,f=l.duration!==null&&l.duration>0&&c.output>0?c.output*1000/l.duration:null,{messages:p,output:S,...h}=l;return ot.jsxDEV(ot.Fragment,{children:[l.errorMessage&&ot.jsxDEV("section",{className:"request-drawer-error","data-tone":i?"warn":"bad",role:"note",children:[ot.jsxDEV("div",{className:"request-drawer-error-label",children:i?u("common.aborted"):u("common.error")},void 0,!1,void 0,this),ot.jsxDEV("pre",{className:"request-drawer-error-text",children:l.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ot.jsxDEV("section",{children:[ot.jsxDEV("div",{className:"section-label",children:u("ui.section-timing")},void 0,!1,void 0,this),ot.jsxDEV(Ho,{items:[{key:"at",label:u("common.started"),value:ln(l.timestamp)},{key:"duration",label:u("common.duration"),value:At(l.duration)},{key:"ttft",label:u("ui.time-to-first-token"),value:At(l.ttft)},{key:"tps",label:u("common.output-tokens-per-second"),value:dr(f)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ot.jsxDEV("section",{children:[ot.jsxDEV("div",{className:"section-label",children:u("common.tokens")},void 0,!1,void 0,this),ot.jsxDEV(Ho,{items:[{key:"input",label:u("ui.uncached-input"),value:z(c.input)},{key:"cacheRead",label:u("common.cache-read"),value:z(c.cacheRead)},{key:"cacheWrite",label:u("common.cache-write"),value:z(c.cacheWrite)},{key:"output",label:u("common.output"),value:z(c.output)},{key:"total",label:u("common.total"),value:z(c.totalTokens)},{key:"premium",label:u("common.premium-requests"),value:z(Math.round((c.premiumRequests??0)*100)/100)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ot.jsxDEV("section",{children:[ot.jsxDEV("div",{className:"section-label",children:u("ui.section-cost")},void 0,!1,void 0,this),ot.jsxDEV(Ho,{items:[{key:"total",label:"Total",value:Yl(l,4)},{key:"input",label:u("common.input"),value:da(c.cost.input,4)},{key:"cacheRead",label:"Cache read",value:da(c.cost.cacheRead,4)},{key:"cacheWrite",label:"Cache write",value:da(c.cost.cacheWrite,4)},{key:"output",label:"Output",value:da(c.cost.output,4)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ot.jsxDEV("section",{children:[ot.jsxDEV("div",{className:"section-label",children:u("ui.section-identity")},void 0,!1,void 0,this),ot.jsxDEV(Ho,{items:[{key:"id",label:u("common.request-id"),value:l.id??"–"},{key:"entry",label:u("common.entry-id"),value:l.entryId},{key:"stop",label:u("ui.stop-reason"),value:l.stopReason},{key:"api",label:"API",value:l.api},{key:"project",label:u("common.project"),value:ot.jsxDEV("span",{title:l.folder,children:fr(l.folder)},void 0,!1,void 0,this)}]},void 0,!1,void 0,this),ot.jsxDEV("div",{className:"request-drawer-file",children:[ot.jsxDEV("span",{className:"kv-key",children:u("ui.session-file")},void 0,!1,void 0,this),ot.jsxDEV("span",{className:"kv-value",children:l.sessionFile},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),S!=null&&ot.jsxDEV(fi,{data:S,title:u("common.output-message")},void 0,!1,void 0,this),ot.jsxDEV(fi,{data:p,title:u("common.session-entry"),initialCollapsed:!0},void 0,!1,void 0,this),ot.jsxDEV(fi,{data:h,title:u("ui.stats-row"),initialCollapsed:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var We=Z(ue(),1),ub=[500,2000,1e4];function kT({active:l,range:i,onRequestClick:c}){let[f,p]=tu.useState(0),S=ub[f],h=Ft(["requests-log",S],({signal:Y})=>Om(S,Y),{enabled:l}),[x,b]=tu.useState(""),[L,g]=tu.useState("all"),C=ia(i),w=tu.useMemo(()=>{let Y=h.data??[],ce=C.spanMs===null?null:Date.now()-C.spanMs,J=ce===null?Y:Y.filter((ae)=>ae.timestamp>=ce),te=!h.stale&&(Y.length<S||ce!==null&&J.length<Y.length),X={all:J.length,ok:0,aborted:0,failed:0};for(let ae of J)X[Yr(ae)]++;return{loaded:Y.length,inRange:J,complete:te,counts:X,summary:oT(J)}},[h.data,h.stale,S,C.spanMs]),A=tu.useMemo(()=>{let Y=x.trim().toLowerCase();return w.inRange.filter((ce)=>(L==="all"||Yr(ce)===L)&&(Y===""||ce.model.toLowerCase().includes(Y)||ce.provider.toLowerCase().includes(Y)||ce.folder.toLowerCase().includes(Y)))},[w.inRange,x,L]),{summary:k,counts:D,complete:M}=w,N=f+1<ub.length?ub[f+1]:null,P=N!==null?We.jsxDEV("button",{type:"button",className:"btn","data-size":"sm",disabled:h.refreshing,onClick:()=>p(f+1),children:h.refreshing&&h.stale?u("requests.loading"):u("requests.load-latest",{count:z(N)})},void 0,!1,void 0,this):void 0,j=["all","ok","aborted","failed"].map((Y)=>({value:Y,label:We.jsxDEV(We.Fragment,{children:[Y==="all"?u("requests.status-all"):Wm[Y].label," ",We.jsxDEV("span",{className:"dim num",children:Ae(D[Y])},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}));return We.jsxDEV("div",{className:"page",children:[We.jsxDEV(ra,{title:u("common.requests"),description:u("requests.description",{window:u(C.windowKey)})},void 0,!1,void 0,this),We.jsxDEV(Ge,{query:h,skeleton:We.jsxDEV(qa,{height:96,style:{borderRadius:12}},void 0,!1,void 0,this),children:()=>We.jsxDEV("div",{"data-stale":h.stale,children:We.jsxDEV(la,{min:160,children:[We.jsxDEV(ie,{label:u("common.requests"),value:z(k.requests),hint:k.oldest===null?u("requests.none-in-window",{window:u(C.windowKey)}):u("requests.since",{time:fa(k.oldest)})},void 0,!1,void 0,this),We.jsxDEV(ie,{label:u("common.failed"),value:z(k.failed),hint:u("requests.failed-hint",{rate:k.requests>0?to(k.failed/k.requests):"–",count:z(k.aborted)})},void 0,!1,void 0,this),We.jsxDEV(ie,{label:u("common.tokens"),title:u("requests.tokens-hint"),value:Ae(k.tokens)},void 0,!1,void 0,this),We.jsxDEV(ie,{label:u("requests.api-equivalent-cost"),title:u("requests.cost-hint"),value:Ht(k.cost,k.unpriced),hint:k.unpriced>0?u("requests.unpriced-n",{count:z(k.unpriced)}):void 0},void 0,!1,void 0,this),We.jsxDEV(ie,{label:u("requests.median-duration"),value:At(k.medianDuration),hint:u("requests.p95",{value:At(k.p95Duration)})},void 0,!1,void 0,this),We.jsxDEV(ie,{label:u("requests.median-ttft"),title:u("requests.ttft-hint"),value:At(k.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),We.jsxDEV(Ye,{index:1,title:u("requests.log-title"),description:h.data===null?u("requests.log-loading"):M?u("requests.log-count-in-window",{shown:z(A.length),total:z(k.requests),window:u(C.windowKey)}):u("requests.log-count-latest",{shown:z(A.length),total:z(k.requests)}),actions:We.jsxDEV(We.Fragment,{children:[We.jsxDEV(cr,{value:x,onChange:b,placeholder:u("requests.search-placeholder")},void 0,!1,void 0,this),We.jsxDEV(_a,{size:"sm","aria-label":u("requests.status"),options:j,value:L,onChange:g},void 0,!1,void 0,this)]},void 0,!0,void 0,this),flush:!0,stale:h.stale,footer:h.data!==null&&!M?We.jsxDEV(We.Fragment,{children:[We.jsxDEV("span",{children:u("requests.footer",{count:z(w.loaded),time:k.oldest===null?"–":ln(k.oldest),window:u(C.windowKey)})},void 0,!1,void 0,this),P]},void 0,!0,void 0,this):void 0,children:We.jsxDEV(Ge,{query:h,skeleton:We.jsxDEV(ca,{rows:12},void 0,!1,void 0,this),children:()=>We.jsxDEV(Xt,{rows:A,rowKey:(Y)=>Y.id??`${Y.sessionFile}:${Y.entryId}`,onRowClick:(Y)=>Y.id!==void 0&&c(Y.id),columns:PD,initialSort:{key:"time",dir:"desc"},limit:100,dense:!0,empty:We.jsxDEV(wt,{title:k.requests===0?u("requests.empty-in-window",{window:u(C.windowKey)}):u("requests.empty-no-match"),hint:k.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)}var PD=[{key:"model",header:u("common.model"),sort:(l)=>l.model,render:(l)=>We.jsxDEV(Ha,{primary:We.jsxDEV("span",{className:"mono",children:l.model},void 0,!1,void 0,this),secondary:l.provider},void 0,!1,void 0,this)},{key:"time",header:u("requests.when"),sort:(l)=>l.timestamp,render:(l)=>We.jsxDEV("span",{className:"muted",title:ln(l.timestamp),children:fa(l.timestamp)},void 0,!1,void 0,this)},{key:"project",header:u("common.project"),sort:(l)=>l.folder,render:(l)=>We.jsxDEV("span",{className:"mono muted truncate",title:l.folder,style:{display:"block",maxWidth:180},children:fr(l.folder)},void 0,!1,void 0,this)},{key:"input",header:u("common.input"),title:u("requests.uncached-input"),align:"right",sort:(l)=>l.usage.input,render:(l)=>We.jsxDEV("span",{className:"num",children:Ae(l.usage.input)},void 0,!1,void 0,this)},{key:"cache",header:u("common.cache-read"),title:u("requests.cache-read-title"),align:"right",sort:(l)=>l.usage.cacheRead,render:(l)=>We.jsxDEV("span",{className:"num",title:u("requests.cache-write",{count:z(l.usage.cacheWrite)}),children:Ae(l.usage.cacheRead)},void 0,!1,void 0,this)},{key:"output",header:u("common.output"),align:"right",sort:(l)=>l.usage.output,render:(l)=>We.jsxDEV("span",{className:"num",children:Ae(l.usage.output)},void 0,!1,void 0,this)},{key:"cost",header:u("common.cost"),title:u("requests.cost-estimate"),align:"right",sort:(l)=>l.usage.cost.total,render:(l)=>We.jsxDEV("span",{className:"num",children:Yl(l,4)},void 0,!1,void 0,this)},{key:"duration",header:u("common.duration"),align:"right",sort:(l)=>l.duration??-1,render:(l)=>We.jsxDEV("span",{className:"num",children:At(l.duration)},void 0,!1,void 0,this)},{key:"ttft",header:u("requests.ttft"),title:u("requests.ttft-hint"),align:"right",sort:(l)=>l.ttft??-1,render:(l)=>We.jsxDEV("span",{className:"num muted",children:At(l.ttft)},void 0,!1,void 0,this)},{key:"status",header:u("requests.status"),sort:(l)=>Yr(l),render:(l)=>{let i=Wm[Yr(l)];return We.jsxDEV("span",{title:l.errorMessage??void 0,children:We.jsxDEV(Ha,{lead:We.jsxDEV(ur,{tone:i.tone},void 0,!1,void 0,this),primary:i.label,secondary:We.jsxDEV("span",{className:"mono",children:l.stopReason},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}}];var ou=Z(gt(),1);var ge=Z(ue(),1),_D=[{value:"calls",label:u("tools.calls")},{value:"errors",label:u("tools.errors")}],TT=6,au=u("tools.attribution-note");function HD(l){if(l<3600000)return u("tools.bucket-5m");if(l<86400000)return u("tools.bucket-hour");return u("tools.bucket-day")}var ib=ge.jsxDEV(wt,{title:u("tools.no-tool-calls")},void 0,!1,void 0,this);function IT({active:l,range:i}){let c=Ft(["tools",i],({signal:k})=>m1(i,k),{enabled:l}),[f,p]=ou.useState("calls"),[S,h]=sn(),[x,b]=ou.useState(null),L=ia(i),g=ou.useMemo(()=>FD(c.data,i),[c.data,i]),C=x!==null&&g.toolNames.includes(x)?x:null,w=f==="calls"?g.callSeries:g.errorSeries,A=(k)=>k.byTool.length===0;return ge.jsxDEV("div",{className:"page",children:[ge.jsxDEV(ra,{title:u("tools.title"),description:u("tools.description",{window:u(L.windowKey)})},void 0,!1,void 0,this),ge.jsxDEV(Ge,{query:c,skeleton:ge.jsxDEV(zt,{height:112},void 0,!1,void 0,this),children:()=>{let k=g.totals;return ge.jsxDEV("div",{"data-stale":c.stale,className:"stack",style:{gap:16},children:[ge.jsxDEV(la,{min:190,children:[ge.jsxDEV(ie,{label:u("tools.tool-calls"),value:z(k.calls),hint:u("tools.failed-n",{count:z(k.errors)}),spark:g.totalCalls},void 0,!1,void 0,this),ge.jsxDEV(ie,{label:u("tools.distinct-tools"),value:z(k.tools),hint:g.rows[0]?u("tools.most-used",{tool:g.rows[0].tool}):void 0},void 0,!1,void 0,this),ge.jsxDEV(ie,{label:u("common.error-rate"),title:u("tools.error-rate-title"),value:to(k.calls>0?k.errors/k.calls:0),hint:u("tools.succeeded-n",{count:z(k.calls-k.errors)}),spark:g.totalErrors,sparkColor:"var(--bad)"},void 0,!1,void 0,this),ge.jsxDEV(ie,{label:u("tools.attributed-tokens"),title:au,value:Ae(Math.round(k.tokens)),hint:u("tools.tokens-output",{tokens:Ae(Math.round(k.output))})},void 0,!1,void 0,this),ge.jsxDEV(ie,{label:u("tools.attributed-cost"),title:u("tools.attribution-estimate",{note:au}),value:Ht(k.cost,k.unpriced),hint:k.unpriced>0?u("tools.unpriced-requests-n",{count:z(Math.round(k.unpriced))}):u("tools.api-equivalent")},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ge.jsxDEV(la,{min:150,children:[ge.jsxDEV(ie,{size:"sm",label:u("tools.result-text"),title:u("tools.result-chars-title"),value:u("tools.chars",{count:Ae(k.resultChars)})},void 0,!1,void 0,this),ge.jsxDEV(ie,{size:"sm",label:u("tools.call-arguments"),title:u("tools.args-chars-title"),value:u("tools.chars",{count:Ae(k.argsChars)})},void 0,!1,void 0,this),ge.jsxDEV(ie,{size:"sm",label:u("tools.avg-result-per-call"),value:u("tools.chars",{count:Ae(k.calls>0?Math.round(k.resultChars/k.calls):0)})},void 0,!1,void 0,this),ge.jsxDEV(ie,{size:"sm",label:u("tools.avg-args-per-call"),value:u("tools.chars",{count:Ae(k.calls>0?Math.round(k.argsChars/k.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),ge.jsxDEV(Ye,{index:1,title:f==="calls"?u("tools.calls-over-time"):u("tools.errors-over-time"),description:u("tools.chart-description",{bucket:HD(L.bucketMs),count:TT}),actions:ge.jsxDEV(_a,{size:"sm",options:_D,value:f,onChange:p},void 0,!1,void 0,this),stale:c.stale,children:ge.jsxDEV(Ge,{query:c,skeleton:ge.jsxDEV(zt,{height:260},void 0,!1,void 0,this),isEmpty:A,empty:ib,children:()=>ge.jsxDEV("div",{className:"stack",style:{gap:12},children:[ge.jsxDEV(Xr,{buckets:g.buckets,bucketMs:L.bucketMs,series:w,hidden:S,height:260,formatTooltip:z,emptyLabel:f==="errors"?u("tools.no-tool-errors"):void 0},void 0,!1,void 0,this),ge.jsxDEV(Ka,{items:w.map((k)=>({key:k.key,label:k.label,color:k.color,value:Ae(k.values.reduce((D,M)=>D+(M??0),0))})),hidden:S,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),ge.jsxDEV(Ye,{index:2,title:u("tools.by-tool"),description:u("tools.by-tool-description",{note:au}),flush:!0,stale:c.stale,children:ge.jsxDEV(Ge,{query:c,skeleton:ge.jsxDEV(ca,{rows:8},void 0,!1,void 0,this),isEmpty:A,empty:ib,children:()=>ge.jsxDEV(Xt,{rows:g.rows,rowKey:(k)=>k.tool,columns:g.toolColumns,initialSort:{key:"calls",dir:"desc"},limit:20,selectedKey:C,onRowClick:(k)=>b((D)=>D===k.tool?null:k.tool),dense:!0},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),ge.jsxDEV(Ye,{index:3,title:u("tools.by-tool-and-model"),description:u("tools.by-tool-and-model-description"),flush:!0,stale:c.stale,actions:ge.jsxDEV("div",{className:"row",style:{gap:6},children:[ge.jsxDEV("select",{className:"input tools-filter",value:C??"",onChange:(k)=>b(k.target.value||null),"aria-label":u("tools.filter-by-tool"),children:[ge.jsxDEV("option",{value:"",children:u("tools.all-tools")},void 0,!1,void 0,this),g.toolNames.map((k)=>ge.jsxDEV("option",{value:k,children:k},k,!1,void 0,this))]},void 0,!0,void 0,this),C!==null&&ge.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:()=>b(null),children:ge.jsxDEV(nn,{size:13},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:ge.jsxDEV(Ge,{query:c,skeleton:ge.jsxDEV(ca,{rows:8},void 0,!1,void 0,this),isEmpty:A,empty:ib,children:(k)=>ge.jsxDEV(VD,{rows:k.byToolModel,tool:C,colors:g.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 FD(l,i){let c=l?.byTool??[],f=l?.series??[],p=aT(c).sort((A,k)=>k.calls-A.calls),S=Nd(c.map((A)=>({key:A.tool,weight:A.calls}))),h=_o(i,f.map((A)=>A.timestamp)),x={calls:0,errors:0,tools:c.length,tokens:0,output:0,cost:0,unpriced:0,resultChars:0,argsChars:0};for(let A of c)x.calls+=A.calls,x.errors+=A.errors,x.tokens+=A.totalTokensShare,x.output+=A.outputTokensShare,x.cost+=A.costShare,x.unpriced+=A.unpricedRequestsShare,x.resultChars+=A.resultChars,x.argsChars+=A.argsChars;let[b,L]=[(A)=>A.calls,(A)=>A.errors].map((A)=>hr(f,{buckets:h,key:(k)=>k.tool,value:A,limit:TT,colors:S}).map((k)=>({...k,values:k.values.map((D)=>D||null)}))),g=new Map(hr(f,{buckets:h,key:(A)=>A.tool,value:(A)=>A.calls}).map((A)=>[A.key,A.values])),C=p[0]?.calls??0,w=GD(C,S,g);return{rows:p,colors:S,buckets:h,totals:x,callSeries:b,errorSeries:L,totalCalls:Sa(f,h,(A)=>A.calls),totalErrors:Sa(f,h,(A)=>A.errors),toolNames:p.map((A)=>A.tool).sort((A,k)=>A.localeCompare(k)),toolColumns:w}}function GD(l,i,c){return[{key:"tool",header:u("tools.tool"),sort:(f)=>f.tool,render:(f)=>ge.jsxDEV("span",{className:"row",style:{gap:8},children:[ge.jsxDEV(Cn,{color:i.get(f.tool)??ao},void 0,!1,void 0,this),ge.jsxDEV("span",{className:"mono truncate tools-name",title:f.tool,children:f.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:(f)=>{let p=c.get(f.tool);return p&&p.length>1?ge.jsxDEV(hi,{values:p,width:80,height:20,color:i.get(f.tool)??ao},void 0,!1,void 0,this):ge.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this)}},{key:"calls",header:u("tools.calls"),align:"right",sort:(f)=>f.calls,render:(f)=>ge.jsxDEV(pa,{value:f.calls,max:l,display:ge.jsxDEV("span",{title:u("tools.share-of-calls",{percent:Fe(f.callFraction)}),children:[z(f.calls),ge.jsxDEV("span",{className:"dim tools-share",children:Fe(f.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:(f)=>f.errorRate,render:(f)=>ge.jsxDEV("span",{className:"row",style:{gap:8,justifyContent:"flex-end"},children:[ge.jsxDEV("span",{className:"num dim",children:z(f.errors)},void 0,!1,void 0,this),ge.jsxDEV(Nt,{tone:f.errors>0?ir(f.errorRate):"neutral",mono:!0,children:to(f.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:(f)=>f.argsChars,render:(f)=>ge.jsxDEV("span",{className:"num",children:Ae(f.argsChars)},void 0,!1,void 0,this)},{key:"result",header:u("tools.result"),title:u("tools.result-chars-title"),align:"right",sort:(f)=>f.resultChars,render:(f)=>ge.jsxDEV("span",{className:"num",children:Ae(f.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:(f)=>f.avgResultChars,render:(f)=>ge.jsxDEV("span",{className:"num muted",children:Ae(Math.round(f.avgResultChars))},void 0,!1,void 0,this)},{key:"tokens",header:u("tools.attr-tokens"),title:au,align:"right",sort:(f)=>f.totalTokensShare,render:(f)=>ge.jsxDEV("span",{className:"num",title:u("tools.share-of-tokens",{percent:Fe(f.tokenFraction)}),children:[Ae(Math.round(f.totalTokensShare)),ge.jsxDEV("span",{className:"dim tools-share",children:Fe(f.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:au}),align:"right",sort:(f)=>f.costShare,render:(f)=>ge.jsxDEV("span",{className:"num",title:u("tools.share-of-cost",{percent:Fe(f.costFraction)}),children:[Ht(f.costShare,f.unpricedRequestsShare),ge.jsxDEV("span",{className:"dim tools-share",children:Fe(f.costFraction,0)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"lastUsed",header:u("tools.last-used"),align:"right",sort:(f)=>f.lastUsed,render:(f)=>ge.jsxDEV("span",{className:"muted",children:fa(f.lastUsed)},void 0,!1,void 0,this)}]}function VD({rows:l,tool:i,colors:c}){let f=ou.useMemo(()=>(i===null?l:l.filter((S)=>S.tool===i)).map((S)=>({...S,errorRate:S.calls>0?S.errors/S.calls:0})),[l,i]),p=ou.useMemo(()=>{let S=f.reduce((h,x)=>Math.max(h,x.calls),0);return[{key:"tool",header:u("tools.tool"),sort:(h)=>h.tool,render:(h)=>ge.jsxDEV("span",{className:"row",style:{gap:8},children:[ge.jsxDEV(Cn,{color:c.get(h.tool)??ao},void 0,!1,void 0,this),ge.jsxDEV("span",{className:"mono truncate tools-name",title:h.tool,children:h.tool},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"model",header:u("common.model"),sort:(h)=>h.model,render:(h)=>ge.jsxDEV(Ha,{primary:ge.jsxDEV("span",{className:"mono",children:h.model||u("common.unknown")},void 0,!1,void 0,this),secondary:h.provider},void 0,!1,void 0,this)},{key:"calls",header:u("tools.calls"),align:"right",sort:(h)=>h.calls,render:(h)=>ge.jsxDEV(pa,{value:h.calls,max:S,display:z(h.calls)},void 0,!1,void 0,this)},{key:"errorRate",header:u("tools.errors"),align:"right",sort:(h)=>h.errorRate,render:(h)=>ge.jsxDEV("span",{className:"row",style:{gap:8,justifyContent:"flex-end"},children:[ge.jsxDEV("span",{className:"num dim",children:z(h.errors)},void 0,!1,void 0,this),ge.jsxDEV(Nt,{tone:h.errors>0?ir(h.errorRate):"neutral",mono:!0,children:to(h.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:(h)=>h.resultChars,render:(h)=>ge.jsxDEV("span",{className:"num",children:Ae(h.resultChars)},void 0,!1,void 0,this)},{key:"tokens",header:u("tools.attr-tokens"),title:au,align:"right",sort:(h)=>h.totalTokensShare,render:(h)=>ge.jsxDEV("span",{className:"num",children:Ae(Math.round(h.totalTokensShare))},void 0,!1,void 0,this)},{key:"cost",header:u("tools.attr-cost"),title:u("tools.attribution-estimate",{note:au}),align:"right",sort:(h)=>h.costShare,render:(h)=>ge.jsxDEV("span",{className:"num",children:Ht(h.costShare,h.unpricedRequestsShare)},void 0,!1,void 0,this)},{key:"lastUsed",header:u("tools.last-used"),align:"right",sort:(h)=>h.lastUsed,render:(h)=>ge.jsxDEV("span",{className:"muted",children:fa(h.lastUsed)},void 0,!1,void 0,this)}]},[f,c]);return ge.jsxDEV(Xt,{rows:f,rowKey:(S)=>`${S.tool}::${S.model}::${S.provider}`,columns:p,initialSort:{key:"calls",dir:"desc"},limit:25,dense:!0,empty:ge.jsxDEV(wt,{title:i?u("tools.no-calls-to-tool",{tool:i}):u("tools.no-tool-calls")},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var Ti=Z(gt(),1);var Dt=Z(gt(),1);var gr=Z(ue(),1);function RT({toolStats:l,index:i}){if(l.length===0)return null;let c=Math.max(...l.map((p)=>p.totalMs)),f=[{key:"tool",header:u("trace.tool"),render:(p)=>gr.jsxDEV("span",{className:"mono",children:p.tool},void 0,!1,void 0,this),sort:(p)=>p.tool},{key:"calls",header:u("trace.calls"),align:"right",render:(p)=>gr.jsxDEV("span",{className:"num",children:z(p.calls)},void 0,!1,void 0,this),sort:(p)=>p.calls},{key:"errors",header:u("trace.errors"),align:"right",render:(p)=>p.errors>0?gr.jsxDEV(Nt,{tone:"bad",children:u("trace.failed-n",{count:z(p.errors)})},void 0,!1,void 0,this):gr.jsxDEV("span",{className:"num dim",children:"0"},void 0,!1,void 0,this),sort:(p)=>p.errors},{key:"total",header:u("common.total"),align:"right",width:200,render:(p)=>gr.jsxDEV(pa,{value:p.totalMs,max:c,display:At(p.totalMs),color:"var(--warn)"},void 0,!1,void 0,this),sort:(p)=>p.totalMs},{key:"avg",header:u("trace.avg"),align:"right",render:(p)=>gr.jsxDEV("span",{className:"num",children:At(p.calls>0?p.totalMs/p.calls:0)},void 0,!1,void 0,this),sort:(p)=>p.calls>0?p.totalMs/p.calls:0},{key:"max",header:u("trace.max"),align:"right",render:(p)=>gr.jsxDEV("span",{className:"num",children:At(p.maxMs)},void 0,!1,void 0,this),sort:(p)=>p.maxMs}];return gr.jsxDEV(Ye,{title:u("trace.tool-aggregates"),description:u("trace.tool-aggregates-desc",{count:l.length}),flush:!0,index:i,children:gr.jsxDEV(Xt,{columns:f,rows:l,rowKey:(p)=>p.tool,dense:!0,limit:12},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var Fo=Z(gt(),1);var Si=Z(gt(),1);var nu={turn:"--ink-2",model:"--chart-primary",tool:"--warn",subagent:"--chart-secondary",background:"--ink-4"};function jD(){let l=getComputedStyle(document.documentElement),i=(c,f)=>l.getPropertyValue(c).trim()||f;return{category:{turn:i(nu.turn,"#a0a0a8"),model:i(nu.model,"#5ad8e6"),tool:i(nu.tool,"#f5a524"),subagent:i(nu.subagent,"#ed4abf"),background:i(nu.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 Li(){let l=N1(),[i,c]=Si.useState(0);return Si.useEffect(()=>{let f=new MutationObserver(()=>c((p)=>p+1));return f.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]}),()=>f.disconnect()},[]),Si.useMemo(jD,[l,i])}var DT=Z(ue(),1),Kl=44,jd=["turn","model","tool","subagent"],AT=6,Ci=10;function XD(l,i,c,f){let p=devicePixelRatio,S=Math.floor(c*p),h=Math.floor(Kl*p),x,b;if(typeof OffscreenCanvas>"u"){let k=document.createElement("canvas");k.width=S,k.height=h,x=k,b=k.getContext("2d")}else{let k=new OffscreenCanvas(S,h);x=k,b=k.getContext("2d")}if(!b)return x;b.setTransform(p,0,0,p,0,0);let[L,g]=i.domain,C=Math.max(g-L,0.000000001),w=jd.map(()=>new Float32Array(c));for(let k of l)for(let D of k.spans){let M=jd.indexOf(D.kind);if(M===-1)continue;let N=w[M],P=Math.max(0,Math.floor((i.toU(D.start)-L)/C*c)),j=Math.min(c-1,Math.ceil((i.toU(D.end)-L)/C*c));for(let Y=P;Y<=j;Y++)N[Y]=Math.min(1,N[Y]+0.34)}let A=Kl/jd.length;for(let k=0;k<jd.length;k++){let D=w[k];b.fillStyle=f.category[jd[k]];for(let M=0;M<c;M++){if(D[M]<=0)continue;b.globalAlpha=0.25+D[M]*0.75,b.fillRect(M,k*A+1,1,A-2)}b.globalAlpha=1}return x}function MT({tracks:l,scale:i,viewport:c,onViewportChange:f}){let p=Li(),S=Fo.useRef(null),[h,x]=Fo.useState(800),b=Fo.useRef(null);Fo.useEffect(()=>{let P=S.current;if(!P)return;let j=new ResizeObserver((Y)=>{x(Math.max(100,Math.floor(Y[0].contentRect.width)))});return j.observe(P),()=>j.disconnect()},[]);let[L,g]=i.domain,C=Math.max(g-L,0.000000001),w=Fo.useCallback((P)=>(P-L)/C*h,[L,C,h]),A=Fo.useCallback((P)=>L+P/Math.max(h,1)*C,[L,C,h]),k=Fo.useMemo(()=>XD(l,i,h,p),[l,i,h,p]);Fo.useEffect(()=>{let P=S.current;if(!P)return;let j=P.getContext("2d");if(!j)return;let Y=devicePixelRatio;j.setTransform(1,0,0,1,0,0),j.clearRect(0,0,P.width,P.height),j.drawImage(k,0,0),j.setTransform(Y,0,0,Y,0,0);let ce=w(c.u0),J=w(c.u1);j.fillStyle=p.brush,j.fillRect(ce,0,J-ce,Kl),j.strokeStyle=p.selection,j.strokeRect(ce+0.5,0.5,J-ce-1,Kl-1),j.fillStyle=p.selection,j.fillRect(ce,0,2,Kl),j.fillRect(J-2,0,2,Kl)},[k,c,p,w]);let D=(P)=>{let j=P.currentTarget.getBoundingClientRect(),Y=P.clientX-j.left,ce=w(c.u0),J=w(c.u1),te;if(Math.abs(Y-ce)<=AT)te="left";else if(Math.abs(Y-J)<=AT)te="right";else if(Y>ce&&Y<J)te="move";else{te="create";let X=A(Y);f(Xd({u0:X,u1:X+Ci},L,g))}b.current={mode:te,startX:Y,startViewport:c},P.currentTarget.setPointerCapture(P.pointerId)},M=(P)=>{let j=b.current;if(!j)return;let Y=P.currentTarget.getBoundingClientRect(),ce=P.clientX-Y.left,J=A(ce)-A(j.startX),{u0:te,u1:X}=j.startViewport;if(j.mode==="move")f(Xd({u0:te+J,u1:X+J},L,g));else if(j.mode==="left")f(Xd({u0:Math.min(te+J,X-Ci),u1:X},L,g));else if(j.mode==="right")f(Xd({u0:te,u1:Math.max(X+J,te+Ci)},L,g));else{let ae=A(j.startX),H=A(ce);f(Xd({u0:Math.min(ae,H),u1:Math.max(ae,H,Math.min(ae,H)+Ci)},L,g))}},N=()=>{b.current=null};return DT.jsxDEV("canvas",{ref:S,width:Math.floor(h*devicePixelRatio),height:Math.floor(Kl*devicePixelRatio),className:"traces-minimap",style:{height:Kl},role:"slider","aria-label":u("trace.minimap-aria"),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round((c.u0-L)/C*100),tabIndex:-1,onPointerDown:D,onPointerMove:M,onPointerUp:N},void 0,!1,void 0,this)}function Xd(l,i,c){let f=Math.max(Ci,l.u1-l.u0);f=Math.min(f,c-i||Ci);let p=l.u0;if(p<i)p=i;if(p+f>c)p=c-f;return{u0:p,u1:p+f}}var yr=Z(gt(),1);var nt=Z(ue(),1);function YD(l){let i=[];if(typeof l==="string"){if(l.trim())i.push({kind:"text",text:l});return i}if(!Array.isArray(l))return i;for(let c of l){if(!c||typeof c!=="object"||!("type"in c))continue;if((c.type==="text"||c.type==="thinking")&&"text"in c&&typeof c.text==="string")i.push({kind:String(c.type),text:c.text})}return i}function ET({span:l,track:i,onClose:c,onOpenChildTrack:f}){let[p,S]=yr.useState(null),[h,x]=yr.useState(!1),[b,L]=yr.useState(null),[g,C]=yr.useState(!1),w=yr.useRef(0);if(yr.useEffect(()=>{if(S(null),L(null),C(!1),x(!1),!l||!i||!l.entryId)return;x(!0);let P=new AbortController;return v1(i.file,l.entryId,P.signal).then((j)=>{if(!P.signal.aborted)S(j.entry)}).catch((j)=>{if(P.signal.aborted)return;L(j instanceof Error?j:Error(String(j)))}).finally(()=>{if(!P.signal.aborted)x(!1)}),()=>P.abort()},[l,i]),yr.useEffect(()=>()=>window.clearTimeout(w.current),[]),!l)return null;let A=async()=>{try{await navigator.clipboard.writeText(JSON.stringify(p??l,null,2)),C(!0),window.clearTimeout(w.current),w.current=window.setTimeout(()=>C(!1),1500)}catch{}},D=(p&&typeof p==="object"?p:{}).message,M=D?.usage,N=[{key:"duration",label:u("common.duration"),value:nt.jsxDEV("span",{className:"num",children:[At(l.end-l.start),l.unterminated&&nt.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:nt.jsxDEV("span",{className:"num",children:new Date(l.start).toLocaleTimeString()},void 0,!1,void 0,this)},{key:"track",label:u("trace.track"),value:nt.jsxDEV("span",{className:"mono",children:i?.label??"-"},void 0,!1,void 0,this)}];if(l.kind==="model"){if(N.push({key:"tokens",label:u("common.tokens"),value:nt.jsxDEV("span",{className:"num",children:z(l.tokens??0)},void 0,!1,void 0,this)},{key:"cost",label:u("common.cost"),value:nt.jsxDEV("span",{className:"num",children:["$",(l.cost??0).toFixed(4)]},void 0,!0,void 0,this)},{key:"ttft",label:u("trace.ttft"),value:nt.jsxDEV("span",{className:"num",children:At(l.ttft??null)},void 0,!1,void 0,this)},{key:"model",label:u("common.model"),value:nt.jsxDEV("span",{className:"mono",children:D?.model??l.model??"-"},void 0,!1,void 0,this)}),M)N.push({key:"split",label:u("trace.io-cached"),value:nt.jsxDEV("span",{className:"num",children:[z(M.input??0)," / ",z(M.output??0)," /"," ",z(M.cacheRead??0)]},void 0,!0,void 0,this)});if(D?.provider)N.push({key:"provider",label:u("common.provider"),value:nt.jsxDEV("span",{className:"mono",children:D.provider},void 0,!1,void 0,this)});if(D?.stopReason)N.push({key:"stop",label:u("trace.stop-reason"),value:nt.jsxDEV("span",{className:"mono",children:D.stopReason},void 0,!1,void 0,this)})}return nt.jsxDEV(zm,{open:!0,onClose:c,title:l.label,subtitle:nt.jsxDEV("span",{className:"row",style:{gap:6},children:nt.jsxDEV(Nt,{tone:l.isError?"bad":"neutral",children:l.isError?`${l.kind} · ${u("common.error")}`:l.kind},void 0,!1,void 0,this)},void 0,!1,void 0,this),actions:nt.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-icon":"true",onClick:A,"aria-label":u("trace.copy-json"),title:u("trace.copy-json"),children:g?nt.jsxDEV(Gs,{size:15},void 0,!1,void 0,this):nt.jsxDEV(js,{size:15},void 0,!1,void 0,this)},void 0,!1,void 0,this),children:nt.jsxDEV("div",{className:"stack traces-drawer",children:[nt.jsxDEV(Ho,{items:N},void 0,!1,void 0,this),D?.errorMessage&&nt.jsxDEV("div",{className:"stack",style:{gap:6},children:[nt.jsxDEV("div",{className:"section-label tone-bad",children:u("trace.error-message")},void 0,!1,void 0,this),nt.jsxDEV("pre",{className:"code-block traces-pre",children:D.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this),l.kind==="subagent"&&nt.jsxDEV("div",{className:"stack",style:{gap:8},children:[l.detail&&nt.jsxDEV(nt.Fragment,{children:[nt.jsxDEV("div",{className:"section-label",children:u("trace.task")},void 0,!1,void 0,this),nt.jsxDEV("pre",{className:"code-block traces-pre",children:l.detail},void 0,!1,void 0,this)]},void 0,!0,void 0,this),l.childTrackId&&f&&nt.jsxDEV("div",{children:nt.jsxDEV("button",{type:"button",className:"btn","data-size":"sm",onClick:()=>f(l.childTrackId??""),children:[u("trace.open-child-track")," ",nt.jsxDEV("span",{className:"mono",children:l.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),l.kind==="tool"&&l.detail&&nt.jsxDEV("div",{className:"stack",style:{gap:6},children:[nt.jsxDEV("div",{className:"section-label",children:u("trace.args")},void 0,!1,void 0,this),nt.jsxDEV("pre",{className:"code-block traces-pre",children:l.detail},void 0,!1,void 0,this)]},void 0,!0,void 0,this),h&&nt.jsxDEV("div",{className:"stack",children:[nt.jsxDEV(qa,{height:80},void 0,!1,void 0,this),nt.jsxDEV(qa,{height:160},void 0,!1,void 0,this)]},void 0,!0,void 0,this),b&&nt.jsxDEV(yi,{error:u("trace.load-failed",{message:b.message})},void 0,!1,void 0,this),!h&&p!==null&&YD(D?.content).map((P,j)=>nt.jsxDEV("div",{className:"stack",style:{gap:6},children:[nt.jsxDEV("div",{className:"section-label",children:P.kind==="thinking"?u("trace.thinking"):u("trace.text")},void 0,!1,void 0,this),nt.jsxDEV("pre",{className:"code-block traces-pre","data-scroll":"true",children:P.text},void 0,!1,void 0,this)]},`${P.kind}-${j}`,!0,void 0,this)),!h&&p!==null&&nt.jsxDEV(fi,{data:p,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 An=Z(ue(),1);function OT({summary:l}){let i=(c)=>l.wallMs>0?u("trace.of-wall",{percent:Fe(c/l.wallMs)}):void 0;return An.jsxDEV(la,{min:112,children:[An.jsxDEV(ie,{size:"sm",label:u("trace.wall-time"),value:Ks(l.wallMs)},void 0,!1,void 0,this),An.jsxDEV(ie,{size:"sm",label:u("trace.model-time"),value:Ks(l.modelMs),hint:i(l.modelMs)},void 0,!1,void 0,this),An.jsxDEV(ie,{size:"sm",label:u("trace.tool-time"),value:Ks(l.toolMs),hint:i(l.toolMs)},void 0,!1,void 0,this),An.jsxDEV(ie,{size:"sm",label:u("trace.idle"),value:Ks(l.idleMs),hint:i(l.idleMs)},void 0,!1,void 0,this),An.jsxDEV(ie,{size:"sm",label:u("trace.turns"),value:z(l.turns)},void 0,!1,void 0,this),An.jsxDEV(ie,{size:"sm",label:u("common.requests"),value:z(l.requests),hint:u("trace.tool-calls-n",{count:z(l.toolCalls)})},void 0,!1,void 0,this),An.jsxDEV(ie,{size:"sm",label:u("trace.agents"),value:z(l.subagents)},void 0,!1,void 0,this),An.jsxDEV(ie,{size:"sm",label:u("common.tokens"),value:Ae(l.totalTokens)},void 0,!1,void 0,this),An.jsxDEV(ie,{size:"sm",label:u("common.cost"),value:Ht(l.costTotal,l.unpricedRequests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Ot=Z(gt(),1),_T=Z(ld(),1);function Jm(l,i){let c=l.length,f=[i[0],i[c-1]],p=(S,h)=>{let x=0,b=c-1;while(x<b){let L=x+b+1>>1;if(S[L]<=h)x=L;else b=L-1}return Math.min(x,c-2)};return{toU(S){if(S<=l[0])return i[0];if(S>=l[c-1])return i[c-1];let h=p(l,S),x=l[h+1]-l[h];if(x<=0)return i[h];return i[h]+(S-l[h])/x*(i[h+1]-i[h])},toT(S){if(S<=i[0])return l[0];if(S>=i[c-1])return l[c-1];let h=p(i,S),x=i[h+1]-i[h];if(x<=0)return l[h];return l[h]+(S-i[h])/x*(l[h+1]-l[h])},domain:f,gaps:[]}}function $D(l){let i=[];for(let c of l)for(let f of c.spans)i.push([f.start,f.end]);return i.sort((c,f)=>c[0]-f[0]),i}function QD(l){let{POSITIVE_INFINITY:i,NEGATIVE_INFINITY:c}=Number;for(let f of l)for(let p of f.spans){if(p.start<i)i=p.start;if(p.end>c)c=p.end}if(!Number.isFinite(i))return[0,1];return[i,Math.max(c,i+1)]}function qT(l,i,c){let f=[...new Set(l.filter((x)=>x>=i&&x<=c))].sort((x,b)=>x-b);if(f[0]!==i)f.unshift(i);if(f[f.length-1]!==c)f.push(c);if(f.length<2)return Jm([i,c],[i,c]);let S=(c-i)/(f.length-1),h=f.map((x,b)=>i+b*S);return Jm(f,h)}function KD(l,i,c){let f=$D(l),p=[];for(let[g,C]of f){let w=g-2000,A=C+2000,k=p[p.length-1];if(k&&w<=k[1]){if(A>k[1])k[1]=A}else p.push([w,A])}if(p.length===0)p.push([i,c]);p[0][0]=Math.max(p[0][0],i),p[p.length-1][1]=Math.min(Math.max(p[p.length-1][1],p[p.length-1][0]),c);let S=[],h=[],x=[],b=p[0][0];for(let g=0;g<p.length;g++){let[C,w]=p[g];if(g===0)S.push(C),h.push(b);else{let A=p[g-1][1],k=C-A;if(k>30000)b+=8000,x.push({t0:A,t1:C,uMid:b-4000});else b+=k;S.push(C),h.push(b)}b+=Math.max(0,w-C),S.push(w),h.push(b)}return{...Jm(S,h),gaps:x}}function BT(l,i,c){let[f,p]=QD(l);if(i==="turns"){let h=(l.find((x)=>x.id==="main")?.spans??[]).filter((x)=>x.kind==="turn").map((x)=>x.start);return qT(h,f,p)}if(i==="calls"){let S=[];for(let h of l)for(let x of h.spans)if(x.kind==="model"||x.kind==="tool"||x.kind==="background")S.push(x.start,x.end);return qT(S,f,p)}if(c)return KD(l,f,p);return Jm([f,p],[f,p])}var ZD=90;function WD(l){let i=10**Math.floor(Math.log10(Math.max(l,1)));for(let c of[1,2,5,10])if(i*c>=l)return i*c;return i*10}function JD(l){let i=new Date(l),c=String(i.getHours()).padStart(2,"0"),f=String(i.getMinutes()).padStart(2,"0"),p=String(i.getSeconds()).padStart(2,"0");return`${c}:${f}:${p}`}function wi(l){let i=l<0?"-":"+",c=Math.abs(l),f=Math.floor(c/3600000),p=Math.floor(c%3600000/60000),S=Math.floor(c%60000/1000),h=Math.floor(c%1000),x=c%1000!==0,b=`${String(p).padStart(2,"0")}:${String(S).padStart(2,"0")}${x?".":""}${x?String(h).padStart(3,"0"):""}`;return f>0?`${i}${f}:${b}`:`${i}${b}`}function NT(l,i,c,f){let p=c-i;if(p<=0||f<=0)return[];let S=[],h=l.domain[0],x=WD(p*ZD/f),b=h+Math.ceil((i-h)/x)*x,L=0;for(let g=b;g<=c&&L<200;g+=x,L++){let C=l.toT(g),w=Math.round((g-h)/x)%5===0;S.push({u:g,label:w?JD(C):wi(g-h),major:w})}return S}var Rt=Z(ue(),1),Kr=28,pb=22,Lo=18,zT=3,eE=14,UT=200,cb=10,HT=2,tE=4,aE=56,eh=3,fb=0.3,oE=[{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 nE(l,i){let c=new Map(l.map((b)=>[b.id,b])),f=new Set;for(let b of l)if(b.parentId)f.add(b.parentId);let p=(b)=>{let L=b.parentId;while(L){if(i.has(L))return!0;L=c.get(L)?.parentId??null}return!1},S=[],h=[],x=Kr+6;for(let b of l){if(p(b))continue;let L=b.id==="main"?0:b.id.split("/").length,g={turn:[],model:[],tool:[],subagent:[],background:[]};for(let w of b.spans)g[w.kind].push(w);let C={track:b,depth:L,hasChildren:f.has(b.id),headerY:x,lanes:[],turnSpans:g.turn,y0:x,y1:x};x+=pb;for(let{kind:w,label:A}of oE){let k=g[w],D=w==="turn"||w==="model"||w==="tool";if(k.length===0&&!(b.id==="main"&&D))continue;let M={track:b,kind:w,label:A,y:x,spans:k};C.lanes.push(M),h.push(M),x+=Lo+zT}C.y1=x-zT,S.push(C),x+=eE}return{blocks:S,lanes:h,totalHeight:Math.max(x,Kr+48)}}function rE(l,i){return l.lanes.map((c)=>{let f=c.spans.length,p=new Float64Array(f),S=new Float64Array(f),h=new Float64Array(f),x=Number.NEGATIVE_INFINITY;for(let b=0;b<f;b++){let L=c.spans[b];p[b]=i.toU(L.start),S[b]=i.toU(L.end),x=Math.max(x,S[b]),h[b]=x}return{startU:p,endU:S,maxEndU:h}})}function lE(l,i){let c=0,f=l.length;while(c<f){let p=c+f>>>1;if(l[p]<i)c=p+1;else f=p}return c}function sE(l,i){if(l===null||i===null)return l===i;if(l.kind==="span")return i.kind==="span"&&l.span===i.span;return i.kind==="marker"&&l.marker===i.marker}function FT({tracks:l,scale:i,viewport:c,onViewportChange:f,selected:p,onSelect:S,matchIds:h,collapsed:x,onToggleCollapse:b,traceStart:L}){let g=Li(),C=Ot.useRef(null),w=Ot.useRef(null),A=Ot.useRef(null),[k,D]=Ot.useState(800),[M,N]=Ot.useState(null),P=Ot.useRef(null);P.current=M;let j=Ot.useRef({clientX:0,clientY:0}),Y=Ot.useRef([]),ce=Ot.useRef(null),J=Ot.useRef(null),te=Ot.useRef(c);te.current=c;let X=Ot.useMemo(()=>nE(l,x),[l,x]),ae=Ot.useMemo(()=>rE(X,i),[X,i]);Ot.useEffect(()=>{let oe=C.current;if(!oe)return;let ve=new ResizeObserver((G)=>{let _e=Math.max(100,Math.floor(G[0].contentRect.width-UT));D(_e)});return ve.observe(oe),()=>ve.disconnect()},[]);let H=Ot.useCallback((oe,ve)=>{let[G,_e]=i.domain,Qe=Math.max(cb,ve-oe);Qe=Math.min(Qe,_e-G||cb);let Ue=oe;if(Ue<G)Ue=G;if(Ue+Qe>_e)Ue=_e-Qe;return{u0:Ue,u1:Ue+Qe}},[i]),de=Ot.useCallback((oe)=>{te.current=oe,f(oe)},[f]),xe=Ot.useCallback((oe,ve)=>{let G=k,{u0:_e,u1:Qe}=te.current,Ue=Qe-_e,dt=ve===null?0.5:Math.min(1,Math.max(0,ve/G)),et=_e+Ue*dt,ft=Ue*oe;de(H(et-ft*dt,et+ft*(1-dt)))},[k,de,H]),Ce=Ot.useCallback((oe)=>{let{u0:ve,u1:G}=te.current;de(H(ve+oe,G+oe))},[de,H]),Ne=Ot.useCallback((oe)=>{let ve=i.toU(oe.start),G=i.toU(oe.end),_e=Math.max((G-ve)*0.1,cb/2);de(H(ve-_e,G+_e))},[i,de,H]);Ot.useEffect(()=>{let oe=w.current;if(!oe)return;let ve=(G)=>{G.preventDefault();let _e=oe.getBoundingClientRect(),Qe=G.clientX-_e.left;J.current=Qe,N(null);let Ue=oe.clientWidth||1,dt=()=>te.current.u1-te.current.u0;if(G.shiftKey){let et=Math.abs(G.deltaY)>=Math.abs(G.deltaX)?G.deltaY:G.deltaX;Ce(et/Ue*dt());return}if(G.deltaX!==0)Ce(G.deltaX/Ue*dt());if(G.deltaY!==0)xe(1.0015**G.deltaY,Qe)};return oe.addEventListener("wheel",ve,{passive:!1}),()=>oe.removeEventListener("wheel",ve)},[xe,Ce]);let ne=Ot.useCallback((oe,ve)=>{let G=w.current;if(!G)return null;let _e=G.getBoundingClientRect(),Qe=oe-_e.left,Ue=ve-_e.top,dt=Y.current;for(let et=dt.length-1;et>=0;et--){let ft=dt[et];if(Qe>=ft.x&&Qe<=ft.x+ft.w&&Ue>=ft.y&&Ue<=ft.y+ft.h)return ft}return null},[]),me=Ot.useCallback(()=>{let oe=A.current;if(!oe)return;let{clientX:ve,clientY:G}=j.current,_e=Math.min(ve+14,window.innerWidth-320),Qe=G+16>window.innerHeight-140?G-120:G+16;oe.style.transform=`translate(${_e}px, ${Qe}px)`},[]),ke=(oe)=>{oe.currentTarget.setPointerCapture(oe.pointerId),ce.current={pointerId:oe.pointerId,lastX:oe.clientX,moved:!1},oe.currentTarget.focus()},$e=(oe)=>{let ve=oe.currentTarget.getBoundingClientRect();J.current=oe.clientX-ve.left;let G=ce.current;if(G&&G.pointerId===oe.pointerId){let Qe=oe.clientX-G.lastX;if(Math.abs(Qe)>0){if(Math.abs(Qe)>2)G.moved=!0;G.lastX=oe.clientX;let Ue=te.current.u1-te.current.u0;Ce(-Qe/(k||1)*Ue)}N(null);return}j.current={clientX:oe.clientX,clientY:oe.clientY};let _e=ne(oe.clientX,oe.clientY);if(sE(_e,P.current))me();else N(_e)},xt=(oe)=>{let ve=ce.current;if(ce.current=null,ve?.moved)return;let G=ne(oe.clientX,oe.clientY);if(G?.kind==="span")S(G.span.id);else S(null)},W=(oe)=>{let ve=ne(oe.clientX,oe.clientY);if(ve?.kind==="span")Ne(ve.span)},ze=Ot.useCallback((oe)=>{let ve=p?.span.id;if(!ve)return;for(let G of X.lanes){let _e=G.spans.findIndex((dt)=>dt.id===ve);if(_e===-1)continue;let Qe=G.spans[_e+oe];if(!Qe)return;S(Qe.id);let Ue=i.toU(Qe.start);if(Ue<c.u0||Ue>c.u1){let dt=c.u1-c.u0;f(H(Ue-dt/2,Ue+dt/2))}return}},[p,X,S,i,c,f,H]),Ct=(oe)=>{let ve=c.u1-c.u0;switch(oe.key){case"w":case"W":xe(0.7692307692307692,J.current);break;case"s":case"S":xe(1.3,J.current);break;case"a":case"A":Ce(-ve*0.2);break;case"d":case"D":Ce(ve*0.2);break;case"0":f({u0:i.domain[0],u1:i.domain[1]});break;case"f":case"F":if(p)Ne(p.span);break;case"Escape":S(null);break;case",":ze(-1);break;case".":ze(1);break;default:return}oe.preventDefault()};Ot.useEffect(()=>{w.current?.focus({preventScroll:!0})},[]),Ot.useEffect(()=>{let oe=w.current;if(!oe)return;let ve=requestAnimationFrame(()=>{Y.current=uE(oe,X,ae,i,c,g,k,h)});return()=>cancelAnimationFrame(ve)},[X,ae,i,c,g,k,h]);let it=M?.kind==="span"?PT(M,X,i,c,k):null,ct=p?PT(p,X,i,c,k):null;Ot.useLayoutEffect(()=>{if(M)me()},[M,me]);let Me=M?iE(M,L,A):null,ye=Math.floor(k*devicePixelRatio),V=Math.floor(X.totalHeight*devicePixelRatio),Re={width:k,height:X.totalHeight};return Rt.jsxDEV("div",{ref:C,className:"traces-timeline",children:[Rt.jsxDEV("div",{style:{width:UT,flexShrink:0,position:"relative",height:X.totalHeight},children:X.blocks.map((oe)=>Rt.jsxDEV("div",{children:[Rt.jsxDEV("div",{style:{position:"absolute",top:oe.headerY,left:4+oe.depth*14,right:8,height:pb,display:"flex",alignItems:"center",gap:5,minWidth:0},children:[oe.hasChildren?Rt.jsxDEV("button",{type:"button",onClick:()=>b(oe.track.id),"aria-label":x.has(oe.track.id)?u("trace.expand-track",{track:oe.track.label}):u("trace.collapse-track",{track:oe.track.label}),className:"traces-chevron",children:x.has(oe.track.id)?Rt.jsxDEV(Ln,{size:12},void 0,!1,void 0,this):Rt.jsxDEV(Vs,{size:12},void 0,!1,void 0,this)},void 0,!1,void 0,this):Rt.jsxDEV("span",{style:{width:12,flexShrink:0}},void 0,!1,void 0,this),Rt.jsxDEV("span",{className:"traces-gutter-track truncate",style:{minWidth:0},children:oe.track.label},void 0,!1,void 0,this),oe.track.model&&Rt.jsxDEV("span",{className:"traces-gutter-model mono truncate",style:{flexShrink:1,minWidth:0},children:oe.track.model},void 0,!1,void 0,this)]},void 0,!0,void 0,this),oe.lanes.map((ve)=>Rt.jsxDEV("div",{className:"traces-gutter-lane",style:{top:ve.y,left:20+oe.depth*14,lineHeight:`${Lo}px`},children:ve.label},`${ve.track.id}:${ve.kind}`,!1,void 0,this))]},oe.track.id,!0,void 0,this))},void 0,!1,void 0,this),Rt.jsxDEV("div",{className:"traces-canvas-stack",style:Re,children:[Rt.jsxDEV("canvas",{ref:w,className:"traces-canvas",width:ye,height:V,style:Re,tabIndex:0,role:"application","aria-label":u("trace.canvas-aria"),onPointerDown:ke,onPointerMove:$e,onPointerUp:xt,onPointerLeave:()=>{J.current=null,N(null)},onDoubleClick:W,onKeyDown:Ct},void 0,!1,void 0,this),it&&M?.kind==="span"&&Rt.jsxDEV("div",{className:"traces-canvas-hover","aria-hidden":"true",style:{left:it.x,top:it.y,width:it.w,height:Lo,borderRadius:eh,opacity:h===null||h.has(M.span.id)?1:fb}},void 0,!1,void 0,this),ct&&p&&Rt.jsxDEV("div",{className:"traces-canvas-selection","aria-hidden":"true",style:{left:ct.x-1,top:ct.y-1,width:ct.w+2,height:Lo+2,borderRadius:eh,borderColor:g.selection,opacity:h===null||h.has(p.span.id)?1:fb}},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Me&&_T.createPortal(Me,document.body)]},void 0,!0,void 0,this)}function db(l,i,c,f,p){if(l.beginPath(),f>=eh*2+1)l.roundRect(i,c,f,p,eh);else l.rect(i,c,f,p)}function uE(l,i,c,f,p,S,h,x){let b=[],L=l.getContext("2d");if(!L)return b;let g=i.totalHeight,C=devicePixelRatio;L.setTransform(C,0,0,C,0,0),L.clearRect(0,0,h,g);let{u0:w,u1:A}=p,k=Math.max(A-w,0.000000001),D=(M)=>(M-w)/k*h;for(let M of i.blocks){let N=M.turnSpans;for(let P=0;P<N.length;P++){let j=D(f.toU(N[P].start)),Y=P+1<N.length?D(f.toU(N[P+1].start)):h;if(Y<0||j>h)continue;if(P%2===1)L.fillStyle=S.turnBand,L.fillRect(Math.max(0,j),M.y0,Math.min(h,Y)-Math.max(0,j),M.y1-M.y0);if(j>=0&&j<=h)L.strokeStyle=S.grid,L.beginPath(),L.moveTo(Math.round(j)+0.5,M.y0),L.lineTo(Math.round(j)+0.5,M.y1),L.stroke()}}L.font=`9px ${S.fontMono}`;for(let M of f.gaps){let N=D(M.uMid);if(N<-24||N>h+24)continue;L.save(),L.strokeStyle=S.grid,L.setLineDash([2,4]),L.beginPath(),L.moveTo(N,Kr),L.lineTo(N,g),L.stroke(),L.restore(),L.fillStyle=S.tick,L.textAlign="center",L.fillText(`⋯ ${At(M.t1-M.t0)}`,N,Kr-4),L.textAlign="left"}for(let M of NT(f,w,A,h)){let N=Math.round(D(M.u))+0.5;if(L.strokeStyle=S.grid,L.beginPath(),M.major)L.moveTo(N,4),L.lineTo(N,g);else L.moveTo(N,Kr-8),L.lineTo(N,Kr);if(L.stroke(),L.fillStyle=S.tick,M.major)L.fillText(M.label,N+4,11);else L.globalAlpha=0.75,L.fillText(M.label,N+3,Kr-10),L.globalAlpha=1}L.strokeStyle=S.grid,L.beginPath(),L.moveTo(0,Kr+0.5),L.lineTo(h,Kr+0.5),L.stroke(),L.font=`10px ${S.fontSans}`;for(let M=0;M<i.lanes.length;M++){let N=i.lanes[M],{startU:P,endU:j,maxEndU:Y}=c[M],ce=N.kind==="turn";for(let J=lE(Y,w);J<N.spans.length;J++){let te=P[J];if(te>A)break;let X=j[J];if(X<w)continue;let ae=N.spans[J],H=D(te),de=Math.max(HT,D(X)-H),xe=N.y,Ce=x===null||x.has(ae.id)?1:fb,Ne=S.category[ae.kind];if(L.globalAlpha=Ce,ce)L.fillStyle=Ne,L.globalAlpha=Ce*0.23,db(L,H,xe,de,Lo),L.fill(),L.globalAlpha=Ce,L.fillStyle=Ne,L.fillRect(H,xe,2,Lo);else L.fillStyle=Ne,db(L,H,xe,de,Lo),L.fill();if(ae.isError)L.fillStyle=S.errorSoft,db(L,H,xe,de,Lo),L.fill(),L.fillStyle=S.error,L.fillRect(H,xe,2,Lo);if(ae.kind==="model"&&typeof ae.ttft==="number"&&ae.ttft>0&&de>20){let me=D(f.toU(ae.start+ae.ttft));if(me>H+1&&me<H+de-1)L.fillStyle="rgba(0,0,0,0.5)",L.fillRect(me,xe+3,1,Lo-6)}if(ae.unterminated)L.save(),L.strokeStyle=S.tick,L.setLineDash([2,2]),L.beginPath(),L.moveTo(H+de-0.5,xe),L.lineTo(H+de-0.5,xe+Lo),L.stroke(),L.restore();if(de>aE)L.save(),L.beginPath(),L.rect(H+3,xe,de-6,Lo),L.clip(),L.fillStyle=ce?S.tick:S.spanText,L.fillText(ae.label,H+5,xe+Lo-5),L.restore();L.globalAlpha=1;let ne=Math.max(de,tE);b.push({kind:"span",x:H-(ne-de)/2,y:xe,w:ne,h:Lo,span:ae,track:N.track})}}for(let M of i.blocks)for(let N of M.track.markers){let P=D(f.toU(N.time));if(P<-6||P>h+6)continue;let j=M.headerY+pb/2;L.fillStyle=S.marker,L.beginPath(),L.moveTo(P,j-4),L.lineTo(P+4,j),L.lineTo(P,j+4),L.lineTo(P-4,j),L.closePath(),L.fill(),b.push({kind:"marker",x:P-5,y:j-5,w:10,h:10,marker:N,track:M.track})}return b}function PT({span:l,track:i},c,f,p,S){let{u0:h,u1:x}=p,b=f.toU(l.start),L=f.toU(l.end);if(b>x||L<h)return null;let g=c.lanes.find((k)=>k.track===i&&k.kind===l.kind);if(!g)return null;let C=Math.max(x-h,0.000000001),w=(b-h)/C*S,A=(L-h)/C*S;return{x:w,y:g.y,w:Math.max(HT,A-w)}}function iE(l,i,c){let f={left:0,top:0};if(l.kind==="marker"){let{marker:S}=l;return Rt.jsxDEV("div",{ref:c,className:"traces-tooltip",style:f,children:[Rt.jsxDEV("div",{className:"traces-tooltip-title",children:S.label},void 0,!1,void 0,this),Rt.jsxDEV("div",{className:"muted num",children:[new Date(S.time).toLocaleTimeString()," (",wi(S.time-i),")"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}let{span:p}=l;return Rt.jsxDEV("div",{ref:c,className:"traces-tooltip",style:f,children:[Rt.jsxDEV("div",{className:"traces-tooltip-title truncate",children:p.label},void 0,!1,void 0,this),Rt.jsxDEV("div",{className:"muted num",children:[At(p.end-p.start)," · ",new Date(p.start).toLocaleTimeString()," (",wi(p.start-i),")",p.unterminated?` · ${u("trace.unterminated")}`:""]},void 0,!0,void 0,this),p.kind==="model"&&Rt.jsxDEV("div",{className:"muted num",children:[p.tokens!==void 0&&Rt.jsxDEV(Rt.Fragment,{children:[z(p.tokens)," ",u("trace.tok")]},void 0,!0,void 0,this),p.cost!==void 0&&Rt.jsxDEV(Rt.Fragment,{children:[" · $",p.cost.toFixed(4)]},void 0,!0,void 0,this),p.ttft!==void 0&&Rt.jsxDEV(Rt.Fragment,{children:[" ","· ",u("trace.ttft")," ",At(p.ttft)]},void 0,!0,void 0,this),p.isError&&Rt.jsxDEV(Rt.Fragment,{children:[" · ",u("common.error")]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),p.kind==="subagent"&&p.model&&Rt.jsxDEV("div",{className:"muted num",children:p.model},void 0,!1,void 0,this),p.detail&&Rt.jsxDEV("div",{className:"traces-tooltip-detail",children:p.detail},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Mn=Z(gt(),1);var Ga=Z(ue(),1),ki=28,GT=20,cE=340;function dE(l){let i=[];for(let c of l){let f=c.id==="main"?0:c.id.split("/").length;for(let p of c.spans)i.push({key:p.id,time:p.start,span:p,track:c,depth:f});for(let p=0;p<c.markers.length;p++){let S=c.markers[p];i.push({key:`${c.id}:marker:${p}`,time:S.time,marker:S,track:c,depth:f})}}return i.sort((c,f)=>c.time-f.time),i}var VT=Mn.memo(function({tracks:i,selection:c,onSelect:f,search:p,matchIds:S,traceStart:h}){let x=Li(),b=Mn.useRef(null),[L,g]=Mn.useState(0),C=Mn.useMemo(()=>dE(i),[i]),w=Mn.useMemo(()=>{if(!S)return C;let M=p.trim().toLowerCase();return C.filter((N)=>N.span?S.has(N.span.id):(N.marker?.label??"").toLowerCase().includes(M))},[C,p,S]);Mn.useEffect(()=>{if(!c)return;let M=b.current;if(!M)return;let N=w.findIndex((j)=>j.span?.id===c);if(N===-1)return;let P=N*ki;if(P<M.scrollTop||P+ki>M.scrollTop+M.clientHeight)M.scrollTop=Math.max(0,P-M.clientHeight/2)},[c,w]);let A=Math.max(0,Math.floor(L/ki)-GT),k=Math.min(w.length,Math.ceil((L+cE)/ki)+GT),D=w.slice(A,k);return Ga.jsxDEV("div",{ref:b,onScroll:(M)=>g(M.currentTarget.scrollTop),className:"traces-list",children:[Ga.jsxDEV("div",{style:{height:w.length*ki,position:"relative"},children:Ga.jsxDEV("div",{style:{position:"absolute",top:A*ki,left:0,right:0},children:D.map((M)=>{let N=M.span,P=N!==void 0&&N.id===c,j=M.span?x.category[M.span.kind]:x.marker,Y=M.span?.label??M.marker?.label??"",ce=M.span?.detail,J=M.span?At(M.span.end-M.span.start):"",te=M.span?.kind??M.marker?.kind??"",X=Ga.jsxDEV(Ga.Fragment,{children:[Ga.jsxDEV("span",{className:"traces-kind",style:{"--traces-kind-color":j},children:te},void 0,!1,void 0,this),M.depth>0&&Ga.jsxDEV("span",{className:"traces-row-track mono truncate",title:M.track.label,children:M.track.id},void 0,!1,void 0,this),Ga.jsxDEV("span",{className:"traces-row-label truncate",children:Y},void 0,!1,void 0,this),ce&&Ga.jsxDEV("span",{className:"traces-row-detail truncate",children:ce},void 0,!1,void 0,this),Ga.jsxDEV("span",{className:"traces-row-meta num",children:[M.span?.isError&&Ga.jsxDEV("span",{className:"tone-bad",children:u("common.error")},void 0,!1,void 0,this),Ga.jsxDEV("span",{children:J},void 0,!1,void 0,this),Ga.jsxDEV("span",{children:wi(M.time-h)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),ae={paddingLeft:12+M.depth*12};return N?Ga.jsxDEV("button",{type:"button",onClick:()=>f(N.id),className:"traces-row","data-selected":P?"true":"false",style:ae,children:X},M.key,!1,void 0,this):Ga.jsxDEV("div",{className:"traces-row","data-static":"true",style:ae,children:X},M.key,!1,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),w.length===0&&Ga.jsxDEV(wt,{title:u("trace.no-matching-events")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});var Je=Z(ue(),1),fE=[{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")}],pE=[{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 jT({file:l,active:i,onBack:c}){let f=Ft(["trace",l],({signal:Me},ye)=>y1(l,Me,ye),{pollMs:15000,enabled:i}),p=f.stale?null:f.data,[S,h]=Dt.useState("time"),[x,b]=Dt.useState(!0),[L,g]=Dt.useState(null),[C,w]=Dt.useState(!1),[A,k]=Dt.useState(""),[D,M]=Dt.useState(0),[N,P]=Dt.useState(new Set),[j,Y]=Dt.useState(null),ce=Dt.useMemo(()=>p?.tracks??[],[p]),J=Dt.useMemo(()=>BT(ce,S,x),[ce,S,x]),te=Dt.useRef(J),X=Dt.useRef(null);Dt.useEffect(()=>{if(!p)return;if(X.current===p.file)return;X.current=p.file,g(null),k(""),Y(null);let Me=new Set;for(let ye of p.tracks)if((ye.id==="main"?0:ye.id.split("/").length)>=1)Me.add(ye.id);P(Me)},[p]),Dt.useEffect(()=>{let Me=te.current;te.current=J,Y((ye)=>{if(!ye)return ye;let V=Me.toT(ye.u0),Re=Me.toT(ye.u1),oe=J.toU(V),ve=J.toU(Re);return ve-oe>0?{u0:oe,u1:ve}:null})},[J]);let ae=Dt.useMemo(()=>j??{u0:J.domain[0],u1:J.domain[1]},[j,J]),H=Dt.useMemo(()=>{let Me=[];for(let ye of ce)for(let V of ye.spans)Me.push({span:V,track:ye});return Me.sort((ye,V)=>ye.span.start-V.span.start),Me},[ce]),de=Dt.useMemo(()=>{let Me=A.trim().toLowerCase();if(!Me)return[];return H.filter(({span:ye})=>`${ye.label} ${ye.detail??""}`.toLowerCase().includes(Me))},[H,A]),xe=Dt.useMemo(()=>A.trim()?new Set(de.map(({span:Me})=>Me.id)):null,[de,A]),Ce=Dt.useCallback((Me)=>{let ye=J.toU(Me.start),V=J.toU(Me.end);Y((Re)=>{let oe=Re??{u0:J.domain[0],u1:J.domain[1]};if(ye>=oe.u0&&V<=oe.u1)return Re;let ve=oe.u1-oe.u0,G=(ye+V)/2,[_e,Qe]=J.domain,Ue=G-ve/2;if(Ue<_e)Ue=_e;if(Ue+ve>Qe)Ue=Math.max(_e,Qe-ve);return{u0:Ue,u1:Ue+ve}})},[J]),Ne=Dt.useCallback((Me)=>{g(Me);let ye=H.find(({span:V})=>V.id===Me);if(ye)Ce(ye.span)},[H,Ce]),ne=Dt.useCallback((Me)=>{g(Me),w(Me!==null)},[]),me=Dt.useCallback((Me)=>{if(de.length===0)return;let ye=((D+Me)%de.length+de.length)%de.length;M(ye),Ne(de[ye].span.id)},[de,D,Ne]),ke=Dt.useCallback((Me)=>{P((ye)=>{let V=new Set(ye);if(V.has(Me))V.delete(Me);else V.add(Me);return V})},[]),$e=Dt.useMemo(()=>{if(!L)return null;return H.find(({span:Me})=>Me.id===L)??null},[L,H]),xt=Dt.useCallback((Me)=>{let ye=ce.find((Re)=>Re.id===Me),V=ye?.spans[0];if(P((Re)=>{let oe=new Set(Re),ve=ye;while(ve?.parentId)oe.delete(ve.parentId),ve=ce.find((G)=>G.id===ve?.parentId);return oe}),V)Ne(V.id)},[ce,Ne]),W=Dt.useCallback((Me)=>{if(!Me){P(new Set);return}let ye=new Set;for(let V of ce)if(V.id!=="main")ye.add(V.id);P(ye)},[ce]),ze=Dt.useCallback((Me)=>{Ne(Me),w(!0)},[Ne]),Ct=Dt.useCallback(()=>w(!1),[]),it=p?.startedAt??0,ct={...f,data:p};return Je.jsxDEV("div",{className:"stack traces-view",children:[Je.jsxDEV("div",{children:Je.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm",onClick:c,children:[Je.jsxDEV(dd,{size:14,"aria-hidden":"true"},void 0,!1,void 0,this),u("trace.sessions")]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Je.jsxDEV(ra,{title:Je.jsxDEV("span",{className:"traces-title truncate",children:p?.title??l.split("/").pop()},void 0,!1,void 0,this),description:p?.cwd?Je.jsxDEV("span",{className:"mono",children:p.cwd},void 0,!1,void 0,this):void 0,actions:Je.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-icon":"true",onClick:f.refetch,"aria-label":u("trace.refresh"),title:u("trace.refresh"),children:Je.jsxDEV(jl,{size:14,className:f.refreshing?"traces-spin":void 0},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),Je.jsxDEV(Ge,{query:ct,skeleton:Je.jsxDEV(zt,{height:420},void 0,!1,void 0,this),children:(Me)=>Je.jsxDEV(Je.Fragment,{children:[Je.jsxDEV(OT,{summary:Me.summary},void 0,!1,void 0,this),Je.jsxDEV(Ye,{index:1,title:u("trace.timeline"),description:u("trace.timeline-hint"),actions:Je.jsxDEV(Je.Fragment,{children:[Je.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm",onClick:()=>W(!1),children:u("trace.expand-all")},void 0,!1,void 0,this),Je.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm",onClick:()=>W(!0),children:u("trace.collapse-all")},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:Je.jsxDEV("div",{className:"stack",children:[Je.jsxDEV("div",{className:"traces-toolbar",children:[Je.jsxDEV(_a,{options:fE,value:S,onChange:h,size:"sm","aria-label":u("trace.axis-mode")},void 0,!1,void 0,this),S==="time"&&Je.jsxDEV("label",{className:"traces-check",children:[Je.jsxDEV("input",{type:"checkbox",checked:x,onChange:(ye)=>b(ye.target.checked)},void 0,!1,void 0,this),u("trace.compress-idle")]},void 0,!0,void 0,this),Je.jsxDEV("div",{className:"traces-search",children:[Je.jsxDEV(cr,{value:A,onChange:(ye)=>{k(ye),M(0)},placeholder:u("trace.search-placeholder"),width:200},void 0,!1,void 0,this),A.trim()&&Je.jsxDEV(Je.Fragment,{children:[Je.jsxDEV("span",{className:"num muted traces-match-count",children:de.length===0?"0":`${D%Math.max(de.length,1)+1}/${de.length}`},void 0,!1,void 0,this),Je.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm","data-icon":"true",onClick:()=>me(-1),"aria-label":u("trace.previous-match"),disabled:de.length===0,children:Je.jsxDEV(hd,{size:14},void 0,!1,void 0,this)},void 0,!1,void 0,this),Je.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm","data-icon":"true",onClick:()=>me(1),"aria-label":u("trace.next-match"),disabled:de.length===0,children:Je.jsxDEV(Ln,{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),Je.jsxDEV("div",{className:"traces-legend",children:pE.map((ye)=>Je.jsxDEV("span",{className:"traces-legend-item",children:[Je.jsxDEV("span",{className:"swatch",style:{background:`var(${nu[ye.kind]})`}},void 0,!1,void 0,this),ye.label]},ye.kind,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Je.jsxDEV(MT,{tracks:ce,scale:J,viewport:ae,onViewportChange:Y},void 0,!1,void 0,this),Je.jsxDEV(FT,{tracks:ce,scale:J,viewport:ae,onViewportChange:Y,selected:$e,onSelect:ne,matchIds:xe,collapsed:N,onToggleCollapse:ke,traceStart:it},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Je.jsxDEV(Ye,{index:2,title:u("trace.transcript"),description:u("trace.transcript-description"),flush:!0,children:Je.jsxDEV(VT,{tracks:ce,selection:L,onSelect:ze,search:A,matchIds:xe,traceStart:it},void 0,!1,void 0,this)},void 0,!1,void 0,this),Je.jsxDEV(RT,{toolStats:Me.summary.toolStats,index:3},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Je.jsxDEV(ET,{span:C?$e?.span??null:null,track:$e?.track??null,onClose:Ct,onOpenChildTrack:xt},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var ea=Z(ue(),1),XT=200;function mE({models:l}){if(l.length===0)return ea.jsxDEV("span",{className:"dim",children:"-"},void 0,!1,void 0,this);return ea.jsxDEV("span",{className:"traces-models",title:l.join(`
|
|
236
|
-
`),children:[ea.jsxDEV("span",{className:"mono truncate",children:l[0]},void 0,!1,void 0,this),l.length>1&&ea.jsxDEV("span",{className:"badge",children:["+",l.length-1]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function
|
|
235
|
+
<%s key={someKey} {...props} />`,it,ye,j,ye),Lt[ye+it]=!0)}if(ye=null,kt!==void 0&&(c(kt),ye=""+kt),g(ze)&&(c(ze.key),ye=""+ze.key),"key"in ze){kt={};for(var Re in ze)Re!=="key"&&(kt[Re]=ze[Re])}else kt=ze;return ye&&S(kt,typeof W==="function"?W.displayName||W.name||"Unknown":W),x(W,ye,kt,p(),ct,Me)}function C(W){w(W)?W._store&&(W._store.validated=1):typeof W==="object"&&W!==null&&W.$$typeof===Y&&(W._payload.status==="fulfilled"?w(W._payload.value)&&W._payload.value._store&&(W._payload.value._store.validated=1):W._store&&(W._store.validated=1))}function w(W){return typeof W==="object"&&W!==null&&W.$$typeof===A}var A=Symbol.for("react.transitional.element"),k=Symbol.for("react.portal"),D=Symbol.for("react.fragment"),M=Symbol.for("react.strict_mode"),U=Symbol.for("react.profiler"),_=Symbol.for("react.consumer"),X=Symbol.for("react.context"),Q=Symbol.for("react.forward_ref"),ce=Symbol.for("react.suspense"),J=Symbol.for("react.suspense_list"),te=Symbol.for("react.memo"),Y=Symbol.for("react.lazy"),ae=Symbol.for("react.activity"),F=Symbol.for("react.client.reference"),de=$s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,xe=Object.prototype.hasOwnProperty,Ce=Array.isArray,Be=console.createTask?console.createTask:function(){return null};$s={react_stack_bottom_frame:function(W){return W()}};var ne,me={},ke=$s.react_stack_bottom_frame.bind($s,L)(),$e=Be(f(L)),Lt={};s2.Fragment=D,s2.jsxDEV=function(W,ze,kt,it){var ct=1e4>de.recentlyCreatedOwnerStacks++;return h(W,ze,kt,it,ct?Error("react-stack-top-frame"):ke,ct?Be(f(W)):$e)}})()});var KT=Z(rk(),1);var Mi=Z(gt(),1);var mm=Z(gt(),1);var lk=(l)=>l?.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();function sk(l,i,c=[]){if(i==null)throw Error("[lucide]: iconNode is required when icon name is used");return{name:lk(l),size:24,node:i,...c.length>0?{aliases:c}:{}}}var uk=(l)=>{let i="",c=!1;for(let f of l){if(f==="-"||f==="_"||f<=" "){c=i.length>0;continue}if(i.length===0)i+=f.toLowerCase();else i+=c?f.toUpperCase():f;c=!1}return i};var ik=(l)=>{let i=uk(l);return i.charAt(0).toUpperCase()+i.slice(1)};var dd=Z(gt(),1);var cd=(...l)=>l.filter((i,c,f)=>Boolean(i)&&i.trim()!==""&&f.indexOf(i)===c).join(" ").trim();var Hl={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 Uv(l){return l!==null&&l!==void 0}function ck(l,i={}){let c=i.attributeNames??{},f=(w)=>c[w]??w,p=l.size??l.width??Hl.width,L=l.size??l.height??Hl.height,g=l.aliases?.filter((w)=>typeof w==="string"&&w.trim()!=="").map((w)=>`lucide-${w}`)??[],S=[...l.name?[`lucide-${l.name}`]:[],...g],v=i.className?.split(" ").filter(Boolean)??[],x=i.includeDefaultClasses===!1?cd(...v):cd("lucide",...S,...v),h=i.absoluteStrokeWidth?Number(i.strokeWidth??Hl["stroke-width"])*Number(l.size??l.width??Hl.width)/Number(i.size??i.width??Hl.width):i.strokeWidth??Hl["stroke-width"];return["svg",{...Object.entries(Hl).reduce((w,[A,k])=>(w[f(A)]=k,w),{}),..."color"in i&&i.color&&{[f("stroke")]:i.color},..."size"in i&&Uv(i.size)&&{[f("width")]:i.size,[f("height")]:i.size},..."width"in i&&Uv(i.width)&&{[f("width")]:i.width},..."height"in i&&Uv(i.height)&&{[f("height")]:i.height},[f("stroke-width")]:h,...x&&{[f("class")]:x},[f("viewBox")]:`0 0 ${p} ${L}`,...i.hasA11yProp===!1?{[f("aria-hidden")]:"true"}:{},..."attributes"in i&&i.attributes},l.node.map((w)=>{let[A,k,D]=w,M=i.nonScalingStroke?{[f("vector-effect")]:"non-scaling-stroke",...k}:k;return D?[A,M,D]:[A,M]})]}function dk(l,i={}){return ck(l,{...i,attributeNames:{...i.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}var fk=(l)=>{for(let i in l)if(i.startsWith("aria-")||i==="role"||i==="title")return!0;return!1};var pi=Z(gt(),1),VM=pi.createContext({});var pk=()=>pi.useContext(VM);var mk=dd.forwardRef(({color:l,size:i,width:c,height:f,strokeWidth:p,absoluteStrokeWidth:L,nonScalingStroke:g,className:S="",children:v,iconNode:x=[],icon:h={node:x,aliases:[],size:24},...C},w)=>{let{size:A=24,strokeWidth:k=2,absoluteStrokeWidth:D=!1,nonScalingStroke:M=!1,color:U="currentColor",className:_=""}=pk()??{},X=Boolean(v)||fk(C),[Q,ce,J=[]]=dk(h,{color:l??U,width:c??i??A,height:f??i??A,strokeWidth:p??k,absoluteStrokeWidth:L??D,nonScalingStroke:g??M,className:cd(_,S),hasA11yProp:X,attributes:C});return dd.createElement(Q,{ref:w,...ce},[...J.map(([te,Y])=>dd.createElement(te,Y)),...Array.isArray(v)?v:[v]])});function Se(l,i=[],c=[]){let f=typeof l==="string"?sk(l,i,c):l,p=mm.forwardRef(({className:L,...g},S)=>mm.createElement(mk,{ref:S,icon:f,className:L,...g}));if(f.name)p.displayName=ik(f.name);return p}var hk={name:"circle-alert",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"]};hk.node;var Fl=Se(hk);var gk={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"]};gk.node;var Gl=Se(gk);var yk={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"]};yk.node;var Vl=Se(yk);var vk={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"]};vk.node;var ur=Se(vk);var bk={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"]};bk.node;var Ln=Se(bk);var xk={name:"triangle-alert",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"]};xk.node;var jl=Se(xk);var Sk={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"}]]};Sk.node;var fd=Se(Sk);var Lk={name:"arrow-down",size:24,node:[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]};Lk.node;var pd=Se(Lk);var Ck={name:"arrow-left",size:24,node:[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]};Ck.node;var md=Se(Ck);var wk={name:"arrow-right",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]};wk.node;var hd=Se(wk);var kk={name:"arrow-up-right",size:24,node:[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]};kk.node;var gd=Se(kk);var Tk={name:"arrow-up",size:24,node:[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]};Tk.node;var yd=Se(Tk);var Ik={name:"check",size:24,node:[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]};Ik.node;var Vs=Se(Ik);var Rk={name:"chevron-down",size:24,node:[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]};Rk.node;var js=Se(Rk);var Ak={name:"chevron-left",size:24,node:[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]};Ak.node;var vd=Se(Ak);var Mk={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};Mk.node;var Cn=Se(Mk);var Dk={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"}]]};Dk.node;var bd=Se(Dk);var Ek={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"}]]};Ek.node;var Xs=Se(Ek);var Ok={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"}]]};Ok.node;var xd=Se(Ok);var qk={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"}]]};qk.node;var Sd=Se(qk);var Nk={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"}]]};Nk.node;var Ld=Se(Nk);var Bk={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"}]]};Bk.node;var Cd=Se(Bk);var zk={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"}]]};zk.node;var wd=Se(zk);var Uk={name:"menu",size:24,node:[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]};Uk.node;var kd=Se(Uk);var Pk={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"}]]};Pk.node;var Td=Se(Pk);var _k={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"}]]};_k.node;var Id=Se(_k);var Hk={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"}]]};Hk.node;var Xl=Se(Hk);var Fk={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"}]]};Fk.node;var Rd=Se(Fk);var Gk={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};Gk.node;var Ad=Se(Gk);var Vk={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"}]]};Vk.node;var Md=Se(Vk);var jk={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"}]]};jk.node;var Dd=Se(jk);var Xk={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};Xk.node;var rn=Se(Xk);var Si=Z(gt(),1);function Pv(l){let i=l?.trim().toLowerCase()??"";if(i==="zh"||i.startsWith("zh-")||i.startsWith("zh_"))return"zh-CN";return"en"}function Yk(l){for(let i of l??[]){let c=Pv(i);if(c!=="en")return c}return"en"}function jM(l,i={}){return l.replace(/\{([\w.-]+)\}/g,(c,f)=>{let p=i[f];return p===void 0?c:String(p)})}function $k(l,i,c,f={}){let p=c[l]?.[i]??c.en?.[i];if(p===void 0)return console.warn(`[stats.i18n] missing translation: ${i}`),i;return jM(p,f)}var hm={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.gain":"Gain","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.gain":"收益","nav.dashboard":"zeta 统计","nav.breadcrumb-stats":"统计","nav.pages":"导航","nav.open-navigation":"打开导航"}};var gm={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"},"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/秒","common.output-tokens-per-second":"输出 Token/秒","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":"再按字母跳转"}};var ym={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":"Subagents","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 vm={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 数","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/秒","models.bucket-5m":"5 分钟","models.bucket-hour":"小时","models.bucket-day":"天"}};var bm={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 xm={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 UTC day, stacked by model","costs.daily-by-component":"Per UTC 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":"按 UTC 日统计,按模型堆叠","costs.daily-by-component":"按 UTC 日统计,按计费组件堆叠","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 Sm={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 Lm={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 Cm={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 wm={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 km={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 Tm={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 Im={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 UTC 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":"每个 UTC 日节省的 Token,以及累计总量","gain.saved-per-day":"每日节省","gain.cumulative":"累计","gain.by-source":"按来源","gain.by-source-description":"各子系统节省量","gain.source":"来源"}};var Rm={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 Am={en:{},"zh-CN":{}};var XM={...hm.en,...gm.en,...ym.en,...vm.en,...bm.en,...xm.en,...Sm.en,...Lm.en,...Cm.en,...wm.en,...km.en,...Tm.en,...Im.en,...Rm.en,...Am.en},Qk={id:"en",messages:XM};var YM={...hm["zh-CN"],...gm["zh-CN"],...ym["zh-CN"],...vm["zh-CN"],...bm["zh-CN"],...xm["zh-CN"],...Sm["zh-CN"],...Lm["zh-CN"],...Cm["zh-CN"],...wm["zh-CN"],...km["zh-CN"],...Tm["zh-CN"],...Im["zh-CN"],...Rm["zh-CN"],...Am["zh-CN"]},Kk={id:"zh-CN",messages:YM};function $M(){return globalThis.__ZETA_STATS_LOCALE__}var QM={en:Qk.messages,"zh-CN":Kk.messages},Mm="en";KM();function Ys(){return Mm}function Zk(l){return Mm=Pv(l),Mm}function KM(){let l=$M();if(l)return Zk(l);if(typeof navigator>"u")return"en";return Zk(Yk(navigator.languages))}function s(l,i){return $k(Mm,l,QM,i)}var Jk=60000,Dm=60*Jk,ir=24*Dm,_v={"1h":{labelKey:"common.range-1h",windowKey:"common.window-1h",spanMs:Dm,bucketMs:5*Jk},"24h":{labelKey:"common.range-24h",windowKey:"common.window-24h",spanMs:ir,bucketMs:Dm},"7d":{labelKey:"common.range-7d",windowKey:"common.window-7d",spanMs:7*ir,bucketMs:ir},"30d":{labelKey:"common.range-30d",windowKey:"common.window-30d",spanMs:30*ir,bucketMs:ir},"90d":{labelKey:"common.range-90d",windowKey:"common.window-90d",spanMs:90*ir,bucketMs:ir},all:{labelKey:"common.range-all",windowKey:"common.window-all",spanMs:null,bucketMs:ir}},ZM=1500,mi=["1h","24h","7d","30d","90d","all"];function sa(l){return _v[l]}var Hv={hour:"2-digit",minute:"2-digit",hourCycle:"h23"},Fv={month:"short",day:"numeric"},Wk=new Map;function Ed(l,i){let c=Ys(),f=`${c}:${l}`,p=Wk.get(f);if(!p)p=new Intl.DateTimeFormat(c,i),Wk.set(f,p);return p}function Em(l,i){if(i<Dm)return Ed("hm",Hv).format(l);if(i<ir)return Ed("mdhm",{...Fv,...Hv}).format(l);return Ed("md",Fv).format(l)}function Om(l,i){return i<ir?Ed("hm",Hv).format(l):Ed("md",Fv).format(l)}function mo(l,i,c=_v[l].bucketMs,f=Date.now()){let p=Math.floor(f/c)*c,L=_v[l].spanMs,g;if(L!==null)g=Math.floor((f-L)/c)*c;else{g=p;for(let v of i)if(v<g)g=v;g=Math.floor(g/c)*c}g=Math.max(g,p-(ZM-1)*c);let S=[];for(let v=g;v<=p;v+=c)S.push(v);return S}var Od=Z(gt(),1);class t1 extends Error{status;endpoint;constructor(l,i,c){super(c);this.name="ApiError",this.status=l,this.endpoint=i}}async function WM(l,i){try{let c=await l.json();if(typeof c==="object"&&c!==null&&"error"in c&&typeof c.error==="string")return c.error}catch{}return`HTTP error ${l.status} on ${i}`}var e1=new WeakMap;async function Na(l,i,c){let f=typeof c==="object"&&c!==null?e1.get(c):void 0,p=i;if(f){let v=new Headers(i?.headers);v.set("If-None-Match",f),p={...i,headers:v}}let L=await fetch(l,p);if(L.status===304&&f)return c;if(!L.ok)throw new t1(L.status,l,await WM(L,l));let g=await L.json(),S=L.headers.get("ETag");if(S&&typeof g==="object"&&g!==null)e1.set(g,S);return g}var a1={"X-Zeta-Stats-Action":"1"};async function o1(l="24h",i){return Na(`/api/stats/overview?range=${encodeURIComponent(l)}`,{signal:i})}async function n1(l="24h",i){return Na(`/api/stats/model-dashboard?range=${encodeURIComponent(l)}`,{signal:i})}async function r1(l="24h",i){return Na(`/api/stats/costs?range=${encodeURIComponent(l)}`,{signal:i})}async function qm(l=50,i){return Na(`/api/stats/recent?limit=${l}`,{signal:i})}async function l1(l="24h",i=50,c){return Na(`/api/stats/errors?range=${encodeURIComponent(l)}&limit=${i}`,{signal:c})}async function s1(l,i){return Na(`/api/request/${l}`,{signal:i})}async function u1(){return Na("/api/sync",{method:"POST"})}async function i1(l="24h",i){return Na(`/api/stats/frustration?range=${encodeURIComponent(l)}`,{signal:i})}async function c1(l,i){return Na(`/api/frustration/estimate?range=${encodeURIComponent(l)}`,{signal:i})}async function d1(l){return Na(`/api/frustration/judge?range=${encodeURIComponent(l)}`,{method:"POST",headers:a1})}async function f1(){return Na("/api/frustration/cancel",{method:"POST",headers:a1})}async function p1(l="24h",i){return Na(`/api/stats/folders?range=${encodeURIComponent(l)}`,{signal:i})}async function m1(l="24h",i,c){let f=new URLSearchParams({range:l});if(i)f.set("project",i);return Na(`/api/stats/gain?${f}`,{signal:c})}async function h1(l="24h",i){return Na(`/api/stats/tools?range=${encodeURIComponent(l)}`,{signal:i})}async function g1(l="24h",i){return Na(`/api/stats/providers?range=${encodeURIComponent(l)}`,{signal:i})}async function Gv(l,i,c){let f=new URLSearchParams({range:l});if(i!==null)f.set("provider",i);return Na(`/api/stats/provider-windows?${f}`,{signal:c})}async function y1(l=100,i,c){let f=new URLSearchParams({limit:String(l)});if(i)f.set("q",i);return Na(`/api/sessions?${f}`,{signal:c})}async function v1(l,i,c){return Na(`/api/session/trace?file=${encodeURIComponent(l)}`,{signal:i,cache:"no-store"},c)}async function b1(l,i,c){return Na(`/api/session/entry?file=${encodeURIComponent(l)}&id=${encodeURIComponent(i)}`,{signal:c})}var e2={phase:"idle",current:0,total:0,processed:0,lastSyncedAt:null,error:null};function t2(){u1().catch(()=>{})}var x1=null,S1=0,Nm=0,Yl={sync:e2,indexingHours:0,connected:!1,requestSync:t2},jv=new Set;function L1(l){return jv.add(l),()=>jv.delete(l)}function C1(){for(let l of jv)l()}function a2(l,i){return l.phase===i.phase&&l.current===i.current&&l.total===i.total&&l.processed===i.processed&&l.lastSyncedAt===i.lastSyncedAt&&l.error===i.error}function o2(l){if(x1!==l.version)x1=l.version,S1++;let i=Math.max(0,S1-1),c=l.indexingHours!==Yl.indexingHours||!a2(l.sync,Yl.sync);if(!c&&i===Nm)return;if(Nm=i,c)Yl={...Yl,sync:l.sync,indexingHours:l.indexingHours};C1()}function Vv(l){if(l===Yl.connected)return;Yl={...Yl,connected:l},C1()}var n2=()=>Yl,r2=()=>Nm,l2=()=>-1;function w1(){return Nm}function k1({children:l}){return Od.useEffect(()=>{let i=new EventSource("/api/events");return i.onopen=()=>Vv(!0),i.onerror=()=>Vv(!1),i.onmessage=(c)=>o2(JSON.parse(c.data)),()=>{i.close(),Vv(!1)}},[]),l}function Bm(){return Od.useSyncExternalStore(L1,n2)}function T1(l=!0){return Od.useSyncExternalStore(L1,l?r2:l2)}var zm=Z(ie(),1);function Ut({tone:l="neutral",mono:i,children:c}){return zm.jsxDEV("span",{className:"badge","data-tone":l,"data-mono":i??!1,children:c},void 0,!1,void 0,this)}function cr({tone:l="neutral",pulse:i}){return zm.jsxDEV("span",{className:"dot","data-tone":l,"data-pulse":i??!1},void 0,!1,void 0,this)}function wn({color:l}){return zm.jsxDEV("span",{className:"swatch",style:{background:l}},void 0,!1,void 0,this)}function dr(l){if(l>=0.05)return"bad";if(l>=0.01)return"warn";return"ok"}var Co=Z(ie(),1);function Ue({title:l,description:i,actions:c,flush:f,footer:p,className:L,index:g,stale:S,children:v}){let x=l!==void 0||i!==void 0||c!==void 0;return Co.jsxDEV("section",{className:L?`card rise ${L}`:"card rise",style:g!==void 0?{"--i":g}:void 0,children:[x&&Co.jsxDEV("header",{className:"card-header",children:[Co.jsxDEV("div",{className:"card-titles",children:[l!==void 0&&Co.jsxDEV("h2",{className:"card-title",children:l},void 0,!1,void 0,this),i!==void 0&&Co.jsxDEV("p",{className:"card-description",children:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this),c!==void 0&&Co.jsxDEV("div",{className:"card-actions",children:c},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Co.jsxDEV("div",{className:"card-body","data-flush":f??!1,"data-stale":S??!1,children:v},void 0,!1,void 0,this),p!==void 0&&Co.jsxDEV("footer",{className:"card-footer",children:p},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function ua({title:l,description:i,actions:c}){return Co.jsxDEV("header",{className:"page-header rise",children:[Co.jsxDEV("div",{children:[Co.jsxDEV("h1",{className:"page-title",children:l},void 0,!1,void 0,this),i!==void 0&&Co.jsxDEV("p",{className:"page-description",children:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this),c!==void 0&&Co.jsxDEV("div",{className:"page-actions",children:c},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var qd=Z(gt(),1),I1=Z(id(),1),Za=Z(ie(),1);function Um({open:l,onClose:i,title:c,subtitle:f,actions:p,width:L,children:g}){let S=qd.useRef(i);S.current=i;let v=qd.useRef(null);if(qd.useEffect(()=>{if(!l)return;let x=document.activeElement instanceof HTMLElement?document.activeElement:null;v.current?.focus();let h=(C)=>{if(C.key==="Escape")C.preventDefault(),S.current()};return window.addEventListener("keydown",h),()=>{window.removeEventListener("keydown",h),x?.focus()}},[l]),!l)return null;return I1.createPortal(Za.jsxDEV(Za.Fragment,{children:[Za.jsxDEV("div",{className:"drawer-scrim",onClick:i,role:"presentation"},void 0,!1,void 0,this),Za.jsxDEV("div",{ref:v,className:"drawer",role:"dialog","aria-modal":"true",tabIndex:-1,style:L!==void 0?{"--drawer-w":`${L}px`}:void 0,children:[Za.jsxDEV("header",{className:"drawer-header",children:[Za.jsxDEV("div",{className:"drawer-titles",children:[Za.jsxDEV("h2",{className:"drawer-title",children:c},void 0,!1,void 0,this),f!==void 0&&Za.jsxDEV("div",{className:"drawer-subtitle",children:f},void 0,!1,void 0,this)]},void 0,!0,void 0,this),p,Za.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-icon":"true",onClick:i,"aria-label":"Close",children:Za.jsxDEV(rn,{size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Za.jsxDEV("div",{className:"drawer-body",children:g},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),document.body)}function Fo({items:l}){return Za.jsxDEV("dl",{className:"kv",style:{margin:0},children:l.map((i)=>Za.jsxDEV("div",{className:"kv-item",children:[Za.jsxDEV("dt",{className:"kv-key",children:i.label},void 0,!1,void 0,this),Za.jsxDEV("dd",{className:"kv-value",style:{margin:0},children:i.value},void 0,!1,void 0,this)]},i.key,!0,void 0,this))},void 0,!1,void 0,this)}var Qs=Z(gt(),1);var kn=Z(ie(),1);function hi({data:l,title:i=s("ui.json"),initialCollapsed:c=!1}){let[f,p]=Qs.useState(c),[L,g]=Qs.useState(!1),S=Qs.useRef(0),v=JSON.stringify(l,null,2);return Qs.useEffect(()=>()=>window.clearTimeout(S.current),[]),kn.jsxDEV("div",{className:"stack",style:{gap:6},children:[kn.jsxDEV("div",{className:"row",style:{justifyContent:"space-between"},children:[kn.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm",onClick:()=>p((h)=>!h),"aria-expanded":!f,children:[f?kn.jsxDEV(Cn,{size:13},void 0,!1,void 0,this):kn.jsxDEV(js,{size:13},void 0,!1,void 0,this),i]},void 0,!0,void 0,this),kn.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm",onClick:async()=>{try{await navigator.clipboard.writeText(v),g(!0),window.clearTimeout(S.current),S.current=window.setTimeout(()=>g(!1),1500)}catch{}},children:[L?kn.jsxDEV(Vs,{size:13},void 0,!1,void 0,this):kn.jsxDEV(Xs,{size:13},void 0,!1,void 0,this),L?s("common.copied"):s("common.copy")]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),!f&&kn.jsxDEV("pre",{className:"code-block",children:kn.jsxDEV("code",{children:v},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Ks=Z(gt(),1),R1=Z(id(),1);var Tn=Z(ie(),1);function A1({open:l,title:i,onClose:c,primaryAction:f,cancelLabel:p=s("common.cancel"),children:L}){let g=Ks.useRef(null),S=Ks.useRef(null),v=Ks.useRef(c);v.current=c,Ks.useEffect(()=>{if(!l)return;let w=document.activeElement instanceof HTMLElement?document.activeElement:null,A=(k)=>{if(k.key==="Escape")k.preventDefault(),v.current()};return window.addEventListener("keydown",A),()=>{window.removeEventListener("keydown",A),w?.focus()}},[l]);let x=f!==void 0,h=f?.disabled??!1;if(Ks.useEffect(()=>{if(!l)return;(x&&!h?g.current:S.current)?.focus()},[l,x,h]),!l)return null;return R1.createPortal(Tn.jsxDEV("div",{className:"modal-overlay",onClick:(w)=>{if(w.target===w.currentTarget)c()},role:"presentation",children:Tn.jsxDEV("div",{className:"modal",role:"dialog","aria-modal":"true","aria-labelledby":"modal-title",children:[Tn.jsxDEV("div",{className:"modal-header",children:[Tn.jsxDEV("h2",{id:"modal-title",className:"modal-title",children:i},void 0,!1,void 0,this),Tn.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-icon":"true","data-size":"sm",onClick:c,"aria-label":s("common.close"),children:Tn.jsxDEV(rn,{size:15},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Tn.jsxDEV("div",{className:"modal-body",children:L},void 0,!1,void 0,this),Tn.jsxDEV("div",{className:"modal-footer",children:[Tn.jsxDEV("button",{ref:S,type:"button",className:"btn",onClick:c,children:p},void 0,!1,void 0,this),f&&Tn.jsxDEV("button",{ref:g,type:"button",className:"btn","data-variant":"primary",onClick:f.onClick,disabled:f.disabled,children:f.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 Pm=Z(ie(),1);function fr({value:l,onChange:i,placeholder:c=s("common.filter"),width:f}){return Pm.jsxDEV("label",{className:"search",children:[Pm.jsxDEV(Ad,{size:14},void 0,!1,void 0,this),Pm.jsxDEV("input",{className:"input",type:"search",value:l,placeholder:c,onChange:(p)=>i(p.target.value),style:f!==void 0?{width:f}:void 0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var gi=Z(gt(),1),_m=Z(ie(),1);function Fa({options:l,value:i,onChange:c,size:f="md","aria-label":p}){let L=gi.useRef(null),[g,S]=gi.useState(null);return gi.useLayoutEffect(()=>{let v=L.current,x=v?.querySelector('[data-active="true"]');if(!v||!x){S(null);return}let h=()=>S({left:x.offsetLeft,width:x.offsetWidth});h();let C=new ResizeObserver(h);return C.observe(v),()=>C.disconnect()},[i,l]),_m.jsxDEV("div",{ref:L,className:"segmented","data-size":f,role:"radiogroup","aria-label":p,children:[g&&_m.jsxDEV("span",{className:"segmented-thumb",style:{left:g.left,width:g.width}},void 0,!1,void 0,this),l.map((v)=>_m.jsxDEV("button",{type:"button",role:"radio","aria-checked":v.value===i,className:"segmented-option","data-active":v.value===i,title:v.title,onClick:()=>c(v.value),children:v.label},v.value,!1,void 0,this))]},void 0,!0,void 0,this)}var bi=Z(gt(),1);var yi=Z(gt(),1);function Hm(){let l=yi.useRef(null),[i,c]=yi.useState(0);return yi.useLayoutEffect(()=>{let f=l.current;if(!f)return;c(f.clientWidth);let p=new ResizeObserver((L)=>{let g=Math.round(L[0]?.contentRect.width??0);c((S)=>S===g?S:g)});return p.observe(f),()=>p.disconnect()},[]),[l,i]}var Nd=Z(ie(),1);function vi({values:l,color:i="var(--chart-primary)",height:c=28,width:f,area:p=!0}){let[L,g]=Hm(),S=f??g,v=Math.max(0,...l),x=l.length,h="";if(S>0&&x>0){let C=x>1?S/(x-1):0;for(let w=0;w<x;w++){let A=x>1?w*C:S/2,k=v>0?c-2-l[w]/v*(c-4):c-2;h+=`${w===0?"M":"L"}${A.toFixed(1)},${k.toFixed(1)}`}}return Nd.jsxDEV("div",{ref:L,className:"sparkline",style:{width:f??"100%",height:c},children:S>0&&x>0&&Nd.jsxDEV("svg",{width:S,height:c,"aria-hidden":"true",children:[p&&Nd.jsxDEV("path",{className:"area",d:`${h}L${S},${c}L0,${c}Z`,fill:i},void 0,!1,void 0,this),Nd.jsxDEV("path",{className:"chart-line",d:h,stroke:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var ln=Z(ie(),1);function se({label:l,value:i,hint:c,delta:f,spark:p,sparkColor:L,size:g="md",title:S}){let v=i2(typeof i==="string"||typeof i==="number"?i:null);return ln.jsxDEV("div",{className:"stat","data-size":g,title:S,children:[ln.jsxDEV("div",{className:"stat-label",children:l},void 0,!1,void 0,this),ln.jsxDEV("div",{className:"stat-value","data-flash":v,children:i},void 0,!1,void 0,this),(c!==void 0||f)&&ln.jsxDEV("div",{className:"stat-foot",children:[f&&ln.jsxDEV(u2,{...f},void 0,!1,void 0,this),c!==void 0&&ln.jsxDEV("span",{className:"truncate",children:c},void 0,!1,void 0,this)]},void 0,!0,void 0,this),p&&p.length>1&&ln.jsxDEV("div",{className:"stat-spark",children:ln.jsxDEV(vi,{values:p,color:L},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function oa({min:l,children:i}){return ln.jsxDEV("div",{className:"stat-grid rise",style:l!==void 0?{"--stat-min":`${l}px`}:void 0,children:i},void 0,!1,void 0,this)}function u2({change:l,good:i="up"}){if(l===null||!Number.isFinite(l))return ln.jsxDEV("span",{className:"delta",children:"new"},void 0,!1,void 0,this);let c=Math.abs(l)<0.0005?0:l,f=c===0?void 0:c>0===(i==="up")?"good":"bad",p=c>0?"+":c<0?"−":"±",L=Math.abs(c)*100;return ln.jsxDEV("span",{className:"delta","data-tone":f,children:[p,L>=100?L.toFixed(0):L.toFixed(1),"%"]},void 0,!0,void 0,this)}function i2(l){let i=bi.useRef(l),[c,f]=bi.useState(!1);return bi.useEffect(()=>{if(i.current===l)return;let p=i.current!==null;if(i.current=l,!p)return;f(!0);let L=setTimeout(()=>f(!1),900);return()=>clearTimeout(L)},[l]),c}var ya=Z(ie(),1);function vt({title:l=s("common.nothing-here-yet"),hint:i}){return ya.jsxDEV("div",{className:"empty",children:[ya.jsxDEV(Cd,{size:20},void 0,!1,void 0,this),ya.jsxDEV("div",{className:"empty-title",children:l},void 0,!1,void 0,this),i!==void 0&&ya.jsxDEV("div",{className:"empty-hint",children:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function xi({error:l,onRetry:i}){return ya.jsxDEV("div",{className:"error-state",role:"alert",children:[ya.jsxDEV(jl,{size:15},void 0,!1,void 0,this),ya.jsxDEV("span",{className:"error-state-message",children:typeof l==="string"?l:l.message},void 0,!1,void 0,this),i&&ya.jsxDEV("button",{type:"button",className:"btn","data-size":"sm","data-variant":"ghost",onClick:i,children:[ya.jsxDEV(Rd,{size:13},void 0,!1,void 0,this)," ",s("ui.retry")]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function Ba({width:l="100%",height:i=14,style:c}){return ya.jsxDEV("div",{className:"skeleton",style:{width:l,height:i,...c}},void 0,!1,void 0,this)}function Mt({height:l=220}){return ya.jsxDEV(Ba,{height:l,style:{borderRadius:8}},void 0,!1,void 0,this)}function na({rows:l=6}){return ya.jsxDEV("div",{style:{display:"flex",flexDirection:"column",gap:10,padding:"8px 16px 16px"},children:Array.from({length:l},(i,c)=>ya.jsxDEV(Ba,{height:16,width:`${92-c*13%30}%`},c,!1,void 0,this))},void 0,!1,void 0,this)}function He({query:l,skeleton:i,isEmpty:c,empty:f,children:p}){if(l.data===null){if(l.error)return ya.jsxDEV(xi,{error:l.error,onRetry:l.refetch},void 0,!1,void 0,this);return ya.jsxDEV(ya.Fragment,{children:i},void 0,!1,void 0,this)}return ya.jsxDEV(ya.Fragment,{children:[l.error&&ya.jsxDEV(xi,{error:l.error,onRetry:l.refetch},void 0,!1,void 0,this),c?.(l.data)?f??ya.jsxDEV(vt,{},void 0,!1,void 0,this):p(l.data)]},void 0,!0,void 0,this)}var Ws=Z(gt(),1);function Yv(){return Ys()}function B(l){return l.toLocaleString(Yv())}function Ae(l){return l.toLocaleString(Yv(),{notation:"compact"})}function da(l,i){if(l===0)return"$0";let c=i!==void 0?i:l>0&&l<0.01?4:2;return`$${l.toLocaleString(Yv(),{minimumFractionDigits:c,maximumFractionDigits:c})}`}function Ft(l,i,c){return l===0&&i>0?"N/A":da(l,c)}function $v(l){return l.usage.totalTokens>0&&l.usage.cost.total===0&&(l.provider==="xai-oauth"||l.costUnpriced===!0)}function $l(l,i){return Ft(l.usage.cost.total,$v(l)?1:0,i)}function Ve(l,i=1){return`${(l*100).toFixed(i)}%`}function ao(l){let i=l*100;if(i>0&&i<0.005)return"<0.01%";return Ve(l,i>0&&i<0.1?2:1)}function Dt(l,i){if(l===null)return"-";let c=l/1000,f=i!==void 0?i:c<1?2:1;return`${c.toFixed(f)}s`}function Zs(l){if(l<60000)return Dt(l);let i=Math.floor(l/60000);if(i<60)return`${i}m ${String(Math.floor(l%60000/1000)).padStart(2,"0")}s`;return`${Math.floor(i/60)}h ${String(i%60).padStart(2,"0")}m`}function pr(l){if(l===null)return"-";return l.toFixed(1)}var Xv=[["second",1000],["minute",60000],["hour",3600000],["day",86400000],["month",2629800000],["year",31557600000]],M1=new Map,Fm=new Map;function fa(l,i=Date.now()){let c=Ys(),f=M1.get(c);if(!f)f=new Intl.RelativeTimeFormat(c,{numeric:"auto"}),M1.set(c,f);let p=l-i,L=0;for(let v=1;v<Xv.length;v++)if(Math.abs(p)>=Xv[v][1])L=v;let[g,S]=Xv[L];return f.format(Math.round(p/S),g)}function Qv(l){let i=Ys(),c=`${i}:mdhm`,f=Fm.get(c);if(!f)f=new Intl.DateTimeFormat(i,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",hourCycle:"h23"}),Fm.set(c,f);return f.format(l)}function sn(l){let i=Ys(),c=Fm.get(i);if(!c)c=new Intl.DateTimeFormat(i,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit",hourCycle:"h23"}),Fm.set(i,c);return c.format(l)}function mr(l){return l.replace(/^\/+|\/+$/g,"")||s("common.root")}function Kv(l){if(l>=1e9)return`${(l/1e9).toFixed(1)} GB`;if(l>=1e6)return`${(l/1e6).toFixed(1)} MB`;if(l>=1000)return`${(l/1000).toFixed(1)} KB`;return`${l} B`}var Et=Z(ie(),1);function Ht({columns:l,rows:i,rowKey:c,onRowClick:f,selectedKey:p,initialSort:L,limit:g,dense:S,empty:v,expanded:x}){let[h,C]=Ws.useState(L??null),[w,A]=Ws.useState(g??Number.POSITIVE_INFINITY),k=Ws.useMemo(()=>{let U=h?l.find((Q)=>Q.key===h.key):void 0;if(!h||!U?.sort)return i;let _=U.sort,X=h.dir==="asc"?1:-1;return[...i].sort((Q,ce)=>{let J=_(Q),te=_(ce);if(typeof J==="number"&&typeof te==="number")return(J-te)*X;return String(J).localeCompare(String(te))*X})},[i,l,h]);if(i.length===0)return Et.jsxDEV(Et.Fragment,{children:v??Et.jsxDEV(vt,{},void 0,!1,void 0,this)},void 0,!1,void 0,this);let D=k.length>w?k.slice(0,w):k,M=(U)=>{if(!U.sort)return;C((_)=>_?.key===U.key?{key:U.key,dir:_.dir==="asc"?"desc":"asc"}:{key:U.key,dir:U.align==="right"?"desc":"asc"})};return Et.jsxDEV(Et.Fragment,{children:[Et.jsxDEV("div",{className:"table-wrap",children:Et.jsxDEV("table",{className:"table","data-dense":S??!1,children:[Et.jsxDEV("thead",{children:Et.jsxDEV("tr",{children:l.map((U)=>{let _=h?.key===U.key?h.dir:void 0;return Et.jsxDEV("th",{"data-align":U.align??"left","data-sortable":U.sort!==void 0,"data-sorted":_,style:U.width!==void 0?{width:U.width}:void 0,title:U.title,onClick:()=>M(U),"aria-sort":_==="asc"?"ascending":_==="desc"?"descending":void 0,children:[U.header,_&&Et.jsxDEV("span",{className:"sort-arrow",children:_==="asc"?Et.jsxDEV(yd,{size:11},void 0,!1,void 0,this):Et.jsxDEV(pd,{size:11},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},U.key,!0,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),Et.jsxDEV("tbody",{children:D.map((U)=>{let _=c(U),X=x?.(U)??null;return Et.jsxDEV(Ws.Fragment,{children:[Et.jsxDEV("tr",{"data-clickable":f!==void 0,"data-selected":p===_,onClick:f?()=>f(U):void 0,onKeyDown:f?(Q)=>{if(Q.key==="Enter"||Q.key===" ")Q.preventDefault(),f(U)}:void 0,tabIndex:f?0:void 0,children:l.map((Q)=>Et.jsxDEV("td",{"data-align":Q.align??"left","data-wrap":Q.wrap??!1,children:Q.render(U)},Q.key,!1,void 0,this))},void 0,!1,void 0,this),X!==null&&Et.jsxDEV("tr",{children:Et.jsxDEV("td",{colSpan:l.length,"data-wrap":"true",style:{padding:0},children:X},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},_,!0,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),g!==void 0&&k.length>g&&Et.jsxDEV("div",{className:"table-more",children:[Et.jsxDEV("span",{className:"micro",children:s("ui.table-shown-of",{shown:B(D.length),total:B(k.length)})},void 0,!1,void 0,this),k.length>w&&Et.jsxDEV("button",{type:"button",className:"btn","data-size":"sm","data-variant":"ghost",onClick:()=>A((U)=>U+g*4),children:s("common.show-more")},void 0,!1,void 0,this),w>g&&Et.jsxDEV("button",{type:"button",className:"btn","data-size":"sm","data-variant":"ghost",onClick:()=>A(g),children:s("ui.show-fewer")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function pa({value:l,max:i,display:c,color:f}){let p=i>0?Math.min(100,l/i*100):0;return Et.jsxDEV("div",{className:"meter-cell",children:[Et.jsxDEV("span",{className:"num",children:c},void 0,!1,void 0,this),Et.jsxDEV("div",{className:"meter",children:Et.jsxDEV("div",{className:"meter-fill",style:{width:`${p}%`,background:f}},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Ga({primary:l,secondary:i,lead:c}){return Et.jsxDEV("div",{className:"row",style:{gap:10},children:[c,Et.jsxDEV("div",{className:"stack",style:{gap:0},children:[Et.jsxDEV("span",{className:"cell-primary truncate",children:l},void 0,!1,void 0,this),i!==void 0&&Et.jsxDEV("span",{className:"cell-secondary truncate",children:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var Gm=Z(gt(),1);var Jt=Z(ie(),1);function D1(){let{sync:l,indexingHours:i,connected:c,requestSync:f}=Bm(),p=d2(l.phase==="idle"?15000:null),L,g;if(!c)L=Jt.jsxDEV(Jt.Fragment,{children:[Jt.jsxDEV(cr,{tone:"warn"},void 0,!1,void 0,this),Jt.jsxDEV("span",{children:s("shell.reconnecting")},void 0,!1,void 0,this)]},void 0,!0,void 0,this),g=s("shell.lost-connection");else if(l.phase==="syncing")L=Jt.jsxDEV(Jt.Fragment,{children:[Jt.jsxDEV(Xl,{size:13,className:"spin"},void 0,!1,void 0,this),Jt.jsxDEV("span",{children:s("shell.syncing")},void 0,!1,void 0,this),l.total>0&&Jt.jsxDEV("span",{className:"live-chip-count",children:[B(l.current),"/",B(l.total)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),g=s("shell.ingesting");else if(l.phase==="error")L=Jt.jsxDEV(Jt.Fragment,{children:[Jt.jsxDEV(cr,{tone:"bad"},void 0,!1,void 0,this),Jt.jsxDEV("span",{children:s("shell.sync-failed")},void 0,!1,void 0,this)]},void 0,!0,void 0,this),g=`${l.error??s("shell.sync-failed")} — click to retry`;else if(i>c2)L=Jt.jsxDEV(Jt.Fragment,{children:[Jt.jsxDEV(Xl,{size:13,className:"spin"},void 0,!1,void 0,this),Jt.jsxDEV("span",{children:s("shell.indexing")},void 0,!1,void 0,this),Jt.jsxDEV("span",{className:"live-chip-count",children:[B(i),"h left"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),g=s("shell.building-rollups");else L=Jt.jsxDEV(Jt.Fragment,{children:[Jt.jsxDEV(cr,{tone:"live",pulse:!0},void 0,!1,void 0,this),Jt.jsxDEV("span",{children:s("shell.live")},void 0,!1,void 0,this),l.lastSyncedAt!==null&&Jt.jsxDEV("span",{className:"live-chip-count",children:f2(p-l.lastSyncedAt)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),g=s("shell.sync-now");return Jt.jsxDEV("button",{type:"button",className:"live-chip",onClick:f,disabled:l.phase==="syncing",title:g,children:L},void 0,!1,void 0,this)}var c2=24;function d2(l){let[i,c]=Gm.useState(Date.now);return Gm.useEffect(()=>{if(l===null)return;c(Date.now());let f=setInterval(()=>c(Date.now()),l);return()=>clearInterval(f)},[l]),i}function f2(l){let i=Math.max(0,Math.round(l/1000));if(i<45)return s("shell.just-now");let c=Math.round(i/60);if(c<60)return`${c}m ago`;let f=Math.round(c/60);return f<24?`${f}h ago`:`${Math.round(f/24)}d ago`}var Vm=[{headingKey:"nav.usage",items:[{id:"overview",labelKey:"nav.overview",icon:wd,hotkey:"o"},{id:"models",labelKey:"nav.models",icon:xd,hotkey:"m"},{id:"providers",labelKey:"nav.providers",icon:Vl,hotkey:"p"},{id:"costs",labelKey:"nav.costs",icon:bd,hotkey:"c"}]},{headingKey:"nav.activity",items:[{id:"requests",labelKey:"nav.requests",icon:fd,hotkey:"r"},{id:"errors",labelKey:"nav.errors",icon:Fl,hotkey:"e"},{id:"traces",labelKey:"nav.traces",icon:Ln,hotkey:"t"}]},{headingKey:"nav.insights",items:[{id:"tools",labelKey:"nav.tools",icon:Dd,hotkey:"l"},{id:"frustration",labelKey:"nav.frustration",icon:Gl,hotkey:"f"},{id:"projects",labelKey:"nav.projects",icon:Sd,hotkey:"j"},{id:"gain",labelKey:"nav.gain",icon:ur,hotkey:"g"}]}],p2=Vm.flatMap((l)=>l.items),E1=p2.map((l)=>l.id);var jm=Z(gt(),1),O1="zeta-stats-theme",q1="(prefers-color-scheme: dark)";function m2(){if(typeof localStorage>"u")return"system";let l=localStorage.getItem(O1);return l==="light"||l==="dark"||l==="system"?l:"system"}function N1(){if(typeof window>"u")return"dark";return window.matchMedia(q1).matches?"dark":"light"}var Js=m2(),Bd=Js==="system"?N1():Js,Zv=new Set;function B1(){for(let l of Zv)l()}function Wv(){if(Bd=Js==="system"?N1():Js,typeof document<"u")document.documentElement.dataset.theme=Bd,document.documentElement.style.colorScheme=Bd}if(typeof window<"u")Wv(),window.matchMedia(q1).addEventListener("change",()=>{if(Js==="system")Wv(),B1()});function h2(l){if(Js=l,typeof localStorage<"u")localStorage.setItem(O1,l);Wv(),B1()}function Jv(l){return Zv.add(l),()=>Zv.delete(l)}function z1(){return jm.useSyncExternalStore(Jv,()=>Bd,()=>"dark")}function U1(){let l=jm.useSyncExternalStore(Jv,()=>Js,()=>"system"),i=jm.useSyncExternalStore(Jv,()=>Bd,()=>"dark");return{preference:l,resolved:i,setPreference:h2}}var eb=Z(ie(),1),g2={system:"light",light:"dark",dark:"system"},y2={system:Td,light:Md,dark:Id},P1={system:s("shell.system-theme"),light:s("shell.light-theme"),dark:s("shell.dark-theme")};function _1(){let{preference:l,setPreference:i}=U1(),c=y2[l];return eb.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-icon":"true",onClick:()=>i(g2[l]),"aria-label":`${P1[l]} (click to switch)`,title:`${P1[l]} — click to switch`,children:eb.jsxDEV(c,{size:15},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var at=Z(ie(),1),v2=mi.map((l,i)=>({value:l,label:s(sa(l).labelKey),title:`${s(sa(l).windowKey)} (${i+1})`}));function H1({section:l,onSectionChange:i,range:c,onRangeChange:f,children:p}){let[L,g]=Si.useState(!1),S=b2(),{sync:v}=Bm();x2(i,f);let x=(C)=>{i(C),g(!1),window.scrollTo({top:0})},h=v.phase==="syncing"?v.total>0?v.current/v.total:null:void 0;return at.jsxDEV(at.Fragment,{children:[at.jsxDEV("div",{className:"shell-ambient"},void 0,!1,void 0,this),at.jsxDEV("header",{className:"topbar","data-scrolled":S,children:[at.jsxDEV("button",{type:"button",className:"btn topbar-menu","data-variant":"ghost","data-icon":"true",onClick:()=>g(!0),"aria-label":s("nav.open-navigation"),children:at.jsxDEV(kd,{size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this),at.jsxDEV("div",{className:"topbar-brand",children:[at.jsxDEV("svg",{className:"topbar-mark",viewBox:"0 0 64 64",width:"22",height:"22","aria-hidden":"true",children:[at.jsxDEV("defs",{children:at.jsxDEV("linearGradient",{id:"zeta-mark-grad",x1:"0",y1:"0",x2:"1",y2:"1",children:[at.jsxDEV("stop",{offset:"0",stopColor:"oklch(0.7 0.24 340)"},void 0,!1,void 0,this),at.jsxDEV("stop",{offset:".5",stopColor:"oklch(0.62 0.21 295)"},void 0,!1,void 0,this),at.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),at.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),at.jsxDEV("span",{children:"zeta"},void 0,!1,void 0,this),at.jsxDEV("span",{className:"topbar-slash",children:"/"},void 0,!1,void 0,this),at.jsxDEV("span",{className:"topbar-title",children:s("nav.breadcrumb-stats")},void 0,!1,void 0,this)]},void 0,!0,void 0,this),at.jsxDEV("div",{className:"topbar-spacer"},void 0,!1,void 0,this),at.jsxDEV("div",{className:"topbar-actions",children:[at.jsxDEV("span",{className:"topbar-hide-narrow",children:at.jsxDEV(D1,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),at.jsxDEV(Fa,{options:v2,value:c,onChange:f,"aria-label":s("common.time-range")},void 0,!1,void 0,this),at.jsxDEV(_1,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this),h!==void 0&&at.jsxDEV("div",{className:"topbar-progress",children:at.jsxDEV("div",{className:"topbar-progress-fill","data-indeterminate":h===null,style:{width:`${(h??0)*100}%`}},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),L&&at.jsxDEV("div",{className:"drawer-scrim",onClick:()=>g(!1),role:"presentation"},void 0,!1,void 0,this),at.jsxDEV("nav",{className:"sidebar","data-open":L,"aria-label":s("nav.pages"),children:[Vm.map((C)=>at.jsxDEV("div",{className:"nav-group",children:[at.jsxDEV("div",{className:"nav-heading",children:s(C.headingKey)},void 0,!1,void 0,this),C.items.map((w)=>at.jsxDEV("button",{type:"button",className:"nav-row","data-active":w.id===l,"aria-current":w.id===l?"page":void 0,onClick:()=>x(w.id),children:[at.jsxDEV(w.icon,{size:15},void 0,!1,void 0,this),at.jsxDEV("span",{className:"nav-row-label",children:s(w.labelKey)},void 0,!1,void 0,this),at.jsxDEV("kbd",{children:["G ",w.hotkey.toUpperCase()]},void 0,!0,void 0,this)]},w.id,!0,void 0,this))]},C.headingKey,!0,void 0,this)),at.jsxDEV("div",{className:"sidebar-foot micro",children:[at.jsxDEV("span",{children:[at.jsxDEV("span",{className:"kbd",children:"1"},void 0,!1,void 0,this),"–",at.jsxDEV("span",{className:"kbd",children:"6"},void 0,!1,void 0,this)," ",s("shell.range-suffix")]},void 0,!0,void 0,this),at.jsxDEV("span",{children:[at.jsxDEV("span",{className:"kbd",children:"G"},void 0,!1,void 0,this)," ",s("shell.jump-hint")]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),at.jsxDEV("main",{className:"shell-panel",children:at.jsxDEV("div",{className:"shell-content",children:p},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function b2(){let[l,i]=Si.useState(!1);return Si.useEffect(()=>{let c=()=>i(window.scrollY>4);return c(),window.addEventListener("scroll",c,{passive:!0}),()=>window.removeEventListener("scroll",c)},[]),l}function x2(l,i){Si.useEffect(()=>{let c=0,f=(p)=>{if(p.metaKey||p.ctrlKey||p.altKey||p.defaultPrevented)return;let L=p.target;if(L instanceof HTMLElement&&(L.isContentEditable||L.tagName==="INPUT"||L.tagName==="TEXTAREA"||L.tagName==="SELECT"))return;if(document.querySelector('[aria-modal="true"]'))return;let g=p.key.toLowerCase();if(c&&Date.now()-c<1200){c=0;let v=Vm.flatMap((x)=>x.items).find((x)=>x.hotkey===g);if(v)p.preventDefault(),l(v.id),window.scrollTo({top:0});return}if(g==="g"){c=Date.now();return}let S=Number(g)-1;if(Number.isInteger(S)&&S>=0&&S<mi.length)p.preventDefault(),i(mi[S])};return window.addEventListener("keydown",f),()=>window.removeEventListener("keydown",f)},[l,i])}var Xr=Z(gt(),1);function zd(l){let[i,c]=l.replace(/^#\/?/,"").split("?"),f=E1.includes(i)?i:"overview",p=new URLSearchParams(c??""),L=p.get("range"),g=mi.includes(L??"")?L:"24h";return{section:f,range:g,session:p.get("s")}}function Xm({section:l,range:i,session:c}){let f=c?`&s=${encodeURIComponent(c)}`:"";return`#/${l}?range=${i}${f}`}function F1(){let[l,i]=Xr.useState(()=>zd(window.location.hash));Xr.useEffect(()=>{let g=()=>i(zd(window.location.hash));window.addEventListener("hashchange",g),window.addEventListener("popstate",g);let S=Xm(zd(window.location.hash));if(window.location.hash!==S)history.replaceState(null,"",S);return()=>{window.removeEventListener("hashchange",g),window.removeEventListener("popstate",g)}},[]);let c=Xr.useCallback((g)=>{i(g);let S=Xm(g);if(window.location.hash!==S)history.pushState(null,"",S)},[]),f=Xr.useCallback((g)=>c({...l,section:g,session:g==="traces"?l.session:null}),[l,c]),p=Xr.useCallback((g)=>c({...l,range:g}),[l,c]),L=Xr.useCallback((g)=>c({...l,session:g}),[l,c]);return{...l,setSection:f,setRange:p,setSession:L}}var _d=Z(gt(),1);var hr=Z(ie(),1);function eu({items:l,max:i,onSelect:c}){let f=i??Math.max(0,...l.map((p)=>p.value));return hr.jsxDEV("div",{className:"bar-list",children:l.map((p)=>{let L=f>0?Math.max(0.5,p.value/f*100):0,g=hr.jsxDEV(hr.Fragment,{children:[hr.jsxDEV("span",{className:"bar-list-fill",style:{width:`${L}%`,background:p.color??"var(--chart-primary)"}},void 0,!1,void 0,this),hr.jsxDEV("span",{className:"bar-list-label",children:p.label},void 0,!1,void 0,this),hr.jsxDEV("span",{className:"bar-list-value",children:p.display??B(p.value)},void 0,!1,void 0,this)]},void 0,!0,void 0,this);return c?hr.jsxDEV("button",{type:"button",className:"bar-list-row",onClick:()=>c(p.key),children:g},p.key,!1,void 0,this):hr.jsxDEV("div",{className:"bar-list-row",children:g},p.key,!1,void 0,this)})},void 0,!1,void 0,this)}var Yr=Z(gt(),1);var xt=Z(ie(),1),tu=10,S2=24,L2=68,C2=4;function In({slots:l,tickLabel:i,tooltipTitle:c,series:f,kind:p="bars",stacked:L=!0,height:g=220,format:S=Ae,formatRight:v,formatTooltip:x,yMax:h,yMaxRight:C,hidden:w,showTotal:A,references:k,onSelect:D,emptyLabel:M="No data in this range",tooltipExtra:U}){let[_,X]=Hm(),[Q,ce]=Yr.useState(null),J=Yr.useId().replace(/:/g,""),te=Yr.useMemo(()=>f.filter((j)=>!w?.has(j.key)),[f,w]),Y=Yr.useMemo(()=>{let j=te.filter((ft)=>ft.axis!=="right"),Re=te.filter((ft)=>ft.axis==="right"),oe=(ft)=>L&&(ft.kind??p)!=="line",ve=new Map,V=Array.from({length:l},()=>0),Fe=0;for(let ft of j)if(oe(ft)){let Oe=V.slice();ve.set(ft.key,Oe);for(let cn=0;cn<l;cn++)V[cn]+=ft.values[cn]??0}else for(let Oe=0;Oe<l;Oe++)Fe=Math.max(Fe,ft.values[Oe]??0);for(let ft of V)Fe=Math.max(Fe,ft);let Qe=0;for(let ft of Re)for(let Oe=0;Oe<l;Oe++)Qe=Math.max(Qe,ft.values[Oe]??0);for(let ft of k??[])if(ft.axis==="right")Qe=Math.max(Qe,ft.value);else Fe=Math.max(Fe,ft.value);let Pe=G1(h??Fe),dt=Re.length>0?G1(C??Qe):null,et=te.every((ft)=>ft.values.every((Oe)=>!Oe));return{left:j,right:Re,bases:ve,stackable:oe,leftScale:Pe,rightScale:dt,empty:et}},[te,l,L,p,h,C,k]),ae=Y.leftScale.ticks.map((j)=>S(j)),F=Y.rightScale?.ticks.map((j)=>(v??S)(j))??[],de=Math.max(28,V1(ae)+12),xe=Y.rightScale?Math.max(28,V1(F)+12):8,Ce=Math.max(0,X-de-xe),Be=g-tu-S2,ne=l>0?Ce/l:0,me=(j)=>tu+Be-j/Y.leftScale.max*Be,ke=(j)=>tu+Be-j/(Y.rightScale?.max??1)*Be,$e=(j)=>de+(j+0.5)*ne,Lt=te.filter((j)=>(j.kind??p)==="bars"),W=Lt.filter((j)=>!Y.stackable(j)||j.axis==="right"),ze=Math.max(1,Math.min(56,ne*(ne>6?0.72:0.9))),kt=Math.max(1,Math.ceil(l/Math.max(1,Math.floor(Ce/L2)))),it=(j)=>{let Re=j.currentTarget.getBoundingClientRect(),oe=Math.floor((j.clientX-Re.left)/(Re.width/l));ce(oe>=0&&oe<l?oe:null)},ct=Q===null?[]:te.filter((j)=>j.tooltip!==!1).map((j)=>({s:j,v:j.values[Q]})).filter((j)=>j.v!==null&&j.v!==void 0&&(j.v!==0||te.length===1)).sort((j,Re)=>te.length>1?Re.v-j.v:0),Me=ct.filter((j)=>j.s.axis!=="right").reduce((j,Re)=>j+Re.v,0),ye=A??(L&&Y.left.length>1);return xt.jsxDEV("div",{className:"chart",ref:_,"data-hovering":Q!==null,style:{height:g},children:[X>0&&xt.jsxDEV("svg",{width:X,height:g,role:"img",children:[xt.jsxDEV("defs",{children:te.filter((j)=>j.pattern==="hatch").map((j)=>xt.jsxDEV("pattern",{id:`${J}-${tb(j.key)}`,width:"5",height:"5",patternUnits:"userSpaceOnUse",patternTransform:"rotate(45)",children:[xt.jsxDEV("rect",{width:"5",height:"5",fill:j.color,fillOpacity:"0.14"},void 0,!1,void 0,this),xt.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),xt.jsxDEV("g",{className:"chart-grid",children:Y.leftScale.ticks.map((j)=>xt.jsxDEV("line",{x1:de,x2:de+Ce,y1:me(j),y2:me(j)},j,!1,void 0,this))},void 0,!1,void 0,this),xt.jsxDEV("g",{className:"chart-axis",children:[Y.leftScale.ticks.map((j,Re)=>xt.jsxDEV("text",{x:de-8,y:me(j),dy:"0.32em",textAnchor:"end",children:ae[Re]},j,!1,void 0,this)),Y.rightScale?.ticks.map((j,Re)=>xt.jsxDEV("text",{x:de+Ce+8,y:ke(j),dy:"0.32em",textAnchor:"start",children:F[Re]},j,!1,void 0,this)),Array.from({length:l},(j,Re)=>Re%kt===0?xt.jsxDEV("text",{x:$e(Re),y:g-6,textAnchor:"middle",children:i(Re)},Re,!1,void 0,this):null)]},void 0,!0,void 0,this),Q!==null&&xt.jsxDEV("rect",{className:"chart-cursor",x:de+Q*ne,y:tu,width:ne,height:Be},void 0,!1,void 0,this),te.filter((j)=>(j.kind??p)==="area").map((j)=>{let Re=j.axis==="right"?ke:me,oe=Y.bases.get(j.key),ve=(Pe)=>(oe?.[Pe]??0)+(j.values[Pe]??0),V=j1(l,$e,(Pe)=>Re(ve(Pe))),Fe=Array.from({length:l},(Pe,dt)=>l-1-dt).map((Pe)=>`L${$e(Pe).toFixed(1)},${Re(oe?.[Pe]??0).toFixed(1)}`).join(""),Qe=j.pattern==="hatch"?`url(#${J}-${tb(j.key)})`:j.color;return xt.jsxDEV("g",{children:[xt.jsxDEV("path",{d:`${V}${Fe}Z`,fill:Qe,fillOpacity:j.pattern?1:0.2},void 0,!1,void 0,this),xt.jsxDEV("path",{className:"chart-line",d:V,stroke:j.color},void 0,!1,void 0,this)]},j.key,!0,void 0,this)}),Lt.map((j)=>{let Re=j.axis==="right"?ke:me,oe=Y.bases.get(j.key),ve=W.indexOf(j),V=ve>=0?ze/W.length:ze,Fe=j.pattern==="hatch"?`url(#${J}-${tb(j.key)})`:j.color;return xt.jsxDEV("g",{children:j.values.map((Qe,Pe)=>{if(!Qe)return null;let dt=ve>=0?0:oe?.[Pe]??0,et=Re(dt),ft=Re(dt+Qe),Oe=$e(Pe)-ze/2+(ve>=0?ve*V:0);return xt.jsxDEV("rect",{className:"chart-bar","data-hover":Q===Pe,x:Oe,y:Math.min(et,ft),width:Math.max(1,V-(ve>=0&&W.length>1?1:0)),height:Math.max(Qe>0?1:0,Math.abs(et-ft)),fill:Fe},Pe,!1,void 0,this)})},j.key,!1,void 0,this)}),te.filter((j)=>(j.kind??p)==="line").map((j)=>{let Re=j.axis==="right"?ke:me,oe=(ve)=>{let V=j.values[ve];return V===null||V===void 0?null:Re(V)};return xt.jsxDEV("g",{children:[xt.jsxDEV("path",{className:"chart-line",d:j1(l,$e,oe),stroke:j.color,strokeDasharray:j.dashed?"4 3":void 0},void 0,!1,void 0,this),j.values.map((ve,V)=>{let Fe=oe(V);if(Fe===null||V>0&&oe(V-1)!==null||V<l-1&&oe(V+1)!==null)return null;return xt.jsxDEV("circle",{cx:$e(V),cy:Fe,r:2.5,fill:j.color},V,!1,void 0,this)})]},j.key,!0,void 0,this)}),k?.map((j)=>{let Re=j.axis==="right"?ke(j.value):me(j.value);return xt.jsxDEV("g",{className:"chart-axis",children:[xt.jsxDEV("line",{x1:de,x2:de+Ce,y1:Re,y2:Re,stroke:"var(--line-4)",strokeDasharray:"3 3"},void 0,!1,void 0,this),j.label&&xt.jsxDEV("text",{x:de+Ce-4,y:Re-5,textAnchor:"end",children:j.label},void 0,!1,void 0,this)]},`${j.axis??"left"}:${j.value}`,!0,void 0,this)}),xt.jsxDEV("line",{className:"chart-baseline",x1:de,x2:de+Ce,y1:me(0),y2:me(0)},void 0,!1,void 0,this),xt.jsxDEV("rect",{x:de,y:tu,width:Ce,height:Be,fill:"transparent",onPointerMove:it,onPointerLeave:()=>ce(null),onClick:D&&Q!==null?()=>D(Q):void 0,style:{cursor:D?"pointer":"crosshair"}},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Y.empty&&xt.jsxDEV("div",{className:"chart-empty",children:M},void 0,!1,void 0,this),Q!==null&&!Y.empty&&xt.jsxDEV("div",{className:"chart-tooltip",style:$e(Q)>X/2?{right:X-$e(Q)+Math.min(ne/2,24)+8,top:tu}:{left:$e(Q)+Math.min(ne/2,24)+8,top:tu},children:[xt.jsxDEV("div",{className:"chart-tooltip-title",children:(c??i)(Q)},void 0,!1,void 0,this),ct.map(({s:j,v:Re})=>xt.jsxDEV("div",{className:"chart-tooltip-row",children:[xt.jsxDEV("span",{className:"swatch",style:{background:j.color}},void 0,!1,void 0,this),xt.jsxDEV("span",{className:"chart-tooltip-label",children:j.label},void 0,!1,void 0,this),xt.jsxDEV("span",{className:"chart-tooltip-value",children:j.axis==="right"?(v??S)(Re):(x??S)(Re)},void 0,!1,void 0,this)]},j.key,!0,void 0,this)),ye&&ct.length>1&&xt.jsxDEV("div",{className:"chart-tooltip-row chart-tooltip-total",children:[xt.jsxDEV("span",{className:"chart-tooltip-label",children:"Total"},void 0,!1,void 0,this),xt.jsxDEV("span",{className:"chart-tooltip-value",children:(x??S)(Me)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),U&&xt.jsxDEV(Yr.Fragment,{children:U(Q)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function G1(l){if(!(l>0))return{max:1,ticks:[0]};let i=l/C2,c=10**Math.floor(Math.log10(i)),f=[1,2,2.5,5,10].map((g)=>g*c).find((g)=>g>=i)??10*c,p=Math.ceil(l/f)*f,L=[];for(let g=0;g<=p+f/2;g+=f)L.push(Number(g.toPrecision(12)));return{max:p,ticks:L}}function V1(l){return l.reduce((i,c)=>Math.max(i,c.length*6.3),0)}function j1(l,i,c){let f="",p=!1;for(let L=0;L<l;L++){let g=c(L);if(g===null){p=!1;continue}f+=`${p?"L":"M"}${i(L).toFixed(1)},${g.toFixed(1)}`,p=!0}return f}function tb(l){return l.replace(/[^a-zA-Z0-9_-]/g,"_")}var Ym=Z(gt(),1),gr=Z(ie(),1);function Va({items:l,hidden:i,onToggle:c}){return gr.jsxDEV("div",{className:"legend",children:l.map((f)=>{let p=gr.jsxDEV(gr.Fragment,{children:[gr.jsxDEV("span",{className:"swatch",style:{background:f.color}},void 0,!1,void 0,this),gr.jsxDEV("span",{className:"truncate",children:f.label},void 0,!1,void 0,this),f.value&&gr.jsxDEV("span",{className:"legend-value",children:f.value},void 0,!1,void 0,this)]},void 0,!0,void 0,this);return c?gr.jsxDEV("button",{type:"button",className:"legend-item","data-off":i?.has(f.key)??!1,onClick:()=>c(f.key),title:f.label,children:p},f.key,!1,void 0,this):gr.jsxDEV("span",{className:"legend-item",title:f.label,children:p},f.key,!1,void 0,this)})},void 0,!1,void 0,this)}function un(){let[l,i]=Ym.useState(()=>new Set),c=Ym.useCallback((f)=>{i((p)=>{let L=new Set(p);if(!L.delete(f))L.add(f);return L})},[]);return[l,c]}var ab=Z(ie(),1);function Ql({segments:l,height:i=8}){let c=l.reduce((f,p)=>f+Math.max(0,p.value),0);return ab.jsxDEV("div",{className:"share-bar",style:{height:i},role:"img",children:c>0&&l.filter((f)=>f.value>0).map((f)=>ab.jsxDEV("div",{className:"share-bar-seg",style:{flexGrow:f.value/c,background:f.color},title:`${f.label}: ${(f.value/c*100).toFixed(1)}%`},f.key,!1,void 0,this))},void 0,!1,void 0,this)}var X1=Z(ie(),1);function Rn({buckets:l,bucketMs:i,onSelectBucket:c,...f}){return X1.jsxDEV(In,{...f,slots:l.length,tickLabel:(p)=>Om(l[p],i),tooltipTitle:(p)=>Em(l[p],i),onSelect:c?(p)=>c(l[p]):void 0},void 0,!1,void 0,this)}var Ma=["#5ad8e6","#ed4abf","#9d7bff","#f5b54a","#4ade80","#5b8cff","#ff7a59","#2dd4bf","#c3e94f","#fb7185"],oo="#6c6c74";function xa(l,i){return`${l}::${i}`}function $m(l){return Ud(l.map((i)=>({key:xa(i.model,i.provider),weight:i.totalRequests})))}function Ud(l){let i=[...l].sort((c,f)=>f.weight-c.weight||c.key.localeCompare(f.key));return new Map(i.map((c,f)=>[c.key,Ma[f%Ma.length]]))}var Sa=Z(gt(),1);var w2={entries:new Map,limit:128},k2={entries:new Map,limit:4},T2={entries:new Map,limit:16},au=new Map;function Y1(l){if(l.startsWith('["trace",'))return k2;if(l.startsWith('["request",'))return T2;return w2}function Pd(l){return Y1(l).entries.get(l)}function $1(l){return au.get(l)}function I2(l,i){let{entries:c,limit:f}=Y1(l);if(c.delete(l),c.set(l,i),c.size>f){let p=c.keys().next().value;if(p!==void 0)c.delete(p)}}function Q1(l,i,c){let f=au.get(l);if(f)return f.waiters++,f;let p=new AbortController,L=Pd(l)?.data,g={promise:c({signal:p.signal},L).then((S)=>(I2(l,{data:S,updatedAt:Date.now(),version:i}),S)).finally(()=>{if(au.get(l)===g)au.delete(l)}),controller:p,waiters:1};return au.set(l,g),g}function ob(l,i){if(i.waiters--,i.waiters>0)return;if(au.get(l)===i)au.delete(l);i.controller.abort()}var R2=1500;function Gt(l,i,c){let f=JSON.stringify(l),p=c?.enabled??!0,L=c?.pollMs,g=T1(p),[,S]=Sa.useReducer((te)=>te+1,0),[v,x]=Sa.useState(null),[h,C]=Sa.useState(!1),w=Sa.useRef(i);w.current=i;let A=Sa.useRef(f);A.current=f;let k=Sa.useRef(null),D=Sa.useRef(0),M=Sa.useRef(null),U=Sa.useCallback((te)=>{D.current=Date.now();let Y=M.current;if(Y?.key===te&&$1(te)===Y.request)return;let ae=Pd(te)?.data;C(!0);let F=Q1(te,w1(),w.current);if(M.current={key:te,request:F},Y)ob(Y.key,Y.request);F.promise.then((de)=>{if(A.current!==te)return;if(de===ae){x((xe)=>xe===null?xe:null);return}Sa.startTransition(()=>{x(null),S()})}).catch((de)=>{if(A.current!==te||F.controller.signal.aborted)return;x({key:te,error:de instanceof Error?de:Error(String(de))})}).finally(()=>{if(M.current?.request===F)M.current=null;if(A.current===te)C(!1)})},[]),_=Sa.useCallback(()=>{let te=M.current;if(M.current=null,te)ob(te.key,te.request)},[]);Sa.useEffect(()=>_,[_]),Sa.useEffect(()=>{if(!p||M.current&&M.current.key!==f)_();if(!p)return;let te=Pd(f);if(te&&te.version>=g)return;let Y=te?D.current+R2-Date.now():0;if(Y<=0){U(f);return}let ae=setTimeout(()=>U(f),Y);return()=>clearTimeout(ae)},[f,p,g,U,_]),Sa.useEffect(()=>{if(!p||!L)return;let te=setInterval(()=>{if(!document.hidden)U(A.current)},L);return()=>clearInterval(te)},[p,L,U]);let X=Sa.useCallback(()=>U(A.current),[U]),Q=Pd(f);if(Q)k.current={key:f,data:Q.data,updatedAt:Q.updatedAt};let ce=k.current,J=v?.key===f?v.error:null;return{data:ce?.data??null,error:J,loading:!ce&&!J,stale:!!ce&&ce.key!==f,refreshing:h,updatedAt:ce?.updatedAt??null,refetch:X}}function La(l,i,c){let f=K1(i),p=Array.from({length:i.length},()=>0);for(let L of l){let g=f.get(L.timestamp);if(g!==void 0)p[g]+=c(L)}return p}function yr(l,i){let c=K1(i.buckets),f=new Map;for(let x of l){let h=c.get(x.timestamp);if(h===void 0)continue;let C=i.key(x),w=f.get(C);if(!w)w=Array.from({length:i.buckets.length},()=>0),f.set(C,w);w[h]+=i.value(x)}let p=[...f.entries()].map(([x,h])=>({key:x,values:h,total:h.reduce((C,w)=>C+w,0)})).filter((x)=>x.total!==0).sort((x,h)=>h.total-x.total||x.key.localeCompare(h.key)),L=i.limit??Number.POSITIVE_INFINITY,g=p.slice(0,L),S=p.slice(L),v=g.map((x,h)=>({key:x.key,label:i.label?i.label(x.key):x.key,color:i.colors?.get(x.key)??Ma[h%Ma.length],values:x.values}));if(S.length>0){let x=Array.from({length:i.buckets.length},()=>0);for(let h of S)for(let C=0;C<x.length;C++)x[C]+=h.values[C];v.push({key:"__other__",label:s("common.other-n",{count:S.length}),color:oo,values:x})}return v}function K1(l){let i=new Map;for(let c=0;c<l.length;c++)i.set(l[c],c);return i}var A2=["main","subagent","advisor"];function Kl(l){return l.totalInputTokens+l.totalOutputTokens+l.totalCacheReadTokens+l.totalCacheWriteTokens}function J1(l){let i=new Map;for(let g of l)i.set(g.agentType,g);let c=A2.map((g)=>i.get(g)).filter((g)=>g!==void 0),f=c.reduce((g,S)=>g+Kl(S),0),p=c.reduce((g,S)=>g+S.totalCost,0),L=c.map((g)=>{let S=Kl(g);return{agentType:g.agentType,tokens:S,requests:g.totalRequests,cost:g.totalCost,share:f>0?S/f:0}});return{totalTokens:f,totalCost:p,segments:L}}function eT(l){let i={totalCost:0,requests:0,unpricedRequests:0,activeDays:new Set(l.map((p)=>p.timestamp)).size,avgDailyCost:0,costInput:0,costOutput:0,costCacheRead:0,costCacheWrite:0,models:[],topModel:null},c=new Map;for(let p of l){let L=xa(p.model,p.provider),g=c.get(L);if(!g)g={key:L,model:p.model,provider:p.provider,cost:0,requests:0,unpricedRequests:0,costInput:0,costOutput:0,costCacheRead:0,costCacheWrite:0,share:0},c.set(L,g);Z1(g,p),Z1(i,p),g.cost+=p.cost,i.totalCost+=p.cost}i.avgDailyCost=i.activeDays>0?i.totalCost/i.activeDays:0,i.models=[...c.values()].sort((p,L)=>L.cost-p.cost||L.requests-p.requests||p.key.localeCompare(L.key));for(let p of i.models)p.share=i.totalCost>0?p.cost/i.totalCost:0;let f=i.models[0];return i.topModel=f!==void 0&&f.cost>0?f:null,i}function Z1(l,i){l.costInput+=i.costInput,l.costOutput+=i.costOutput,l.costCacheRead+=i.costCacheRead,l.costCacheWrite+=i.costCacheWrite,l.requests+=i.requests,l.unpricedRequests+=i.unpricedRequests}function tT(l){let i=new Map;for(let c of l){let f=xa(c.model,c.provider),p=i.get(f);if(!p)p=[],i.set(f,p);p.push({timestamp:c.timestamp,avgTtftSeconds:c.avgTtft!==null?c.avgTtft/1000:null,avgTokensPerSecond:c.avgTokensPerSecond,requests:c.requests})}for(let c of i.values())c.sort((f,p)=>f.timestamp-p.timestamp);return i}var M2=/^\/?-?(?:private-)?(?:tmp|var-folders)(?:[-/]|$)/;function aT(l){let i=0,c=0,f=0,p=0,L=0,g=0,S=0,v=0,x=0;for(let w of l){if(i+=w.totalRequests,c+=w.failedRequests,f+=w.totalCost,p+=w.unpricedRequests,L+=w.totalInputTokens+w.totalCacheReadTokens+w.totalCacheWriteTokens+w.totalOutputTokens,g+=w.totalInputTokens,S+=w.totalCacheReadTokens,w.totalRequests>v)v=w.totalRequests;if(w.totalCost>x)x=w.totalCost}let h=0;return{rows:l.map((w)=>{let A=M2.test(w.folder);if(A)h++;return{...w,conversationTokens:w.totalInputTokens+w.totalCacheReadTokens+w.totalCacheWriteTokens+w.totalOutputTokens,requestShare:i>0?w.totalRequests/i:0,costShare:f>0?w.totalCost/f:0,temporary:A}}),totalRequests:i,failedRequests:c,totalCost:f,unpricedRequests:p,conversationTokens:L,cacheRate:g+S>0?S/(g+S):0,maxRequests:v,maxCost:x,temporaryCount:h}}function oT(l){let i=0,c=0,f=0;for(let p of l)i+=p.calls,c+=p.totalTokensShare,f+=p.costShare;return l.map((p)=>({...p,errorRate:p.calls>0?p.errors/p.calls:0,callFraction:i>0?p.calls/i:0,tokenFraction:c>0?p.totalTokensShare/c:0,costFraction:f>0?p.costShare/f:0,avgResultChars:p.calls>0?p.resultChars/p.calls:0}))}function $r(l){if(l.stopReason==="aborted")return"aborted";if(l.stopReason==="error"||l.errorMessage)return"failed";return"ok"}function nb(l,i){if(l.length===0)return null;return l[Math.min(l.length-1,Math.max(0,Math.ceil(i*l.length)-1))]}function nT(l){let i=0,c=0,f=0,p=0,L=0,g=null,S=null,v=[],x=[];for(let h of l){let C=$r(h);if(C==="failed")i++;else if(C==="aborted")c++;if(f+=h.usage.totalTokens,p+=h.usage.cost.total,$v(h))L++;if(h.duration!==null)v.push(h.duration);if(h.ttft!==null)x.push(h.ttft);if(g===null||h.timestamp<g)g=h.timestamp;if(S===null||h.timestamp>S)S=h.timestamp}return v.sort((h,C)=>h-C),x.sort((h,C)=>h-C),{requests:l.length,failed:i,aborted:c,tokens:f,cost:p,unpriced:L,medianDuration:nb(v,0.5),p95Duration:nb(v,0.95),medianTtft:nb(x,0.5),oldest:g,newest:S}}var W1=180,D2=/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/gi,E2=/\b(?:req|msg|call|toolu|chatcmpl|resp|run|gen)[-_][A-Za-z0-9_-]{6,}/g,O2=/\b[0-9a-f]{12,}\b/gi,q2=/(?<![\w.-])\d+(?:\.\d+)?/g,N2=/^[1-5]\d\d$/;function rb(l){if(!l?.trim())return"Unknown error";let i=l.replace(/\s+/g," ").trim().replace(D2,"<id>").replace(E2,"<id>").replace(O2,"<hex>").replace(q2,(c)=>N2.test(c)?c:"N");return i.length>W1?`${i.slice(0,W1-1)}…`:i}function rT(l){let i=new Map;for(let c of l){let f=rb(c.errorMessage),p=i.get(f);if(!p)p={signature:f,count:0,firstSeen:c.timestamp,lastSeen:c.timestamp,latest:c,models:[],byModel:new Map},i.set(f,p);if(p.count++,c.timestamp<p.firstSeen)p.firstSeen=c.timestamp;if(c.timestamp>p.lastSeen)p.lastSeen=c.timestamp,p.latest=c;let L=xa(c.model,c.provider),g=p.byModel.get(L);if(g)g.count++;else p.byModel.set(L,{model:c.model,provider:c.provider,count:1})}return[...i.values()].map(({byModel:c,...f})=>({...f,models:[...c.values()].sort((p,L)=>L.count-p.count||p.model.localeCompare(L.model))})).sort((c,f)=>f.count-c.count||f.lastSeen-c.lastSeen)}var De=Z(ie(),1),B2=[{value:"model",label:s("costs.by-model")},{value:"component",label:s("costs.by-component")}],z2=6,U2=86400000,Hd=[{key:"costInput",label:s("common.input"),color:"#5b8cff"},{key:"costOutput",label:s("common.output"),color:"var(--chart-secondary)"},{key:"costCacheRead",label:s("common.cache-read"),color:"var(--chart-primary)"},{key:"costCacheWrite",label:s("common.cache-write"),color:"#f5b54a"}],P2=new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric",timeZone:"UTC"}),_2=new Intl.DateTimeFormat(void 0,{weekday:"short",month:"short",day:"numeric",year:"numeric",timeZone:"UTC"});function lT({active:l,range:i}){let c=Gt(["costs",i],({signal:w})=>r1(i,w),{enabled:l}),f=sa(i),[p,L]=_d.useState("model"),[g,S]=un(),v=_d.useMemo(()=>c.data?H2(c.data,i):null,[c.data,i]),x=_d.useMemo(()=>v?V2(v):[],[v]),h=(w)=>w.costSeries.length===0,C=De.jsxDEV(vt,{title:s("costs.no-usage-in-range"),hint:s("costs.empty-hint")},void 0,!1,void 0,this);return De.jsxDEV("div",{className:"page",children:[De.jsxDEV(ua,{title:s("costs.title"),description:s("costs.description",{window:s(f.windowKey)})},void 0,!1,void 0,this),De.jsxDEV(He,{query:c,skeleton:De.jsxDEV(Ba,{height:112,style:{borderRadius:12}},void 0,!1,void 0,this),isEmpty:h,empty:C,children:()=>v&&De.jsxDEV(F2,{view:v,stale:c.stale},void 0,!1,void 0,this)},void 0,!1,void 0,this),De.jsxDEV("div",{className:"grid grid-main-side",children:[De.jsxDEV(Ue,{index:1,title:s("costs.daily-estimate"),description:p==="model"?s("costs.daily-by-model"):s("costs.daily-by-component"),actions:De.jsxDEV(Fa,{size:"sm",options:B2,value:p,onChange:L,"aria-label":s("costs.split-by")},void 0,!1,void 0,this),stale:c.stale,children:De.jsxDEV(He,{query:c,skeleton:De.jsxDEV(Mt,{height:280},void 0,!1,void 0,this),isEmpty:h,empty:C,children:()=>{if(!v)return null;let w=p==="model"?v.modelSeries:v.componentSeries;return De.jsxDEV("div",{className:"stack",style:{gap:12},children:[De.jsxDEV(In,{slots:v.buckets.length,tickLabel:(A)=>P2.format(v.buckets[A]),tooltipTitle:(A)=>_2.format(v.buckets[A]),series:w,hidden:g,height:280,format:(A)=>da(A,Number.isInteger(A)?0:2),formatTooltip:(A)=>da(A),emptyLabel:s("costs.no-priced-usage"),tooltipExtra:(A)=>v.unpricedPerDay[A]>0?De.jsxDEV("div",{className:"chart-tooltip-row chart-tooltip-total",children:[De.jsxDEV("span",{className:"chart-tooltip-label",children:s("costs.unpriced-requests")},void 0,!1,void 0,this),De.jsxDEV("span",{className:"chart-tooltip-value",children:B(v.unpricedPerDay[A])},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null},void 0,!1,void 0,this),De.jsxDEV(Va,{items:w.map((A)=>({key:A.key,label:A.label,color:A.color,value:da(j2(A.values))})),hidden:g,onToggle:S},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}},void 0,!1,void 0,this)},void 0,!1,void 0,this),De.jsxDEV(Ue,{index:2,title:s("costs.where-it-went"),description:s("costs.estimate-by-component"),stale:c.stale,children:De.jsxDEV(He,{query:c,skeleton:De.jsxDEV(Mt,{height:280},void 0,!1,void 0,this),isEmpty:h,empty:C,children:()=>v&&De.jsxDEV(G2,{summary:v.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),De.jsxDEV(Ue,{index:3,title:s("costs.by-model"),description:s("costs.by-model-description"),stale:c.stale,flush:!0,children:De.jsxDEV(He,{query:c,skeleton:De.jsxDEV(na,{rows:8},void 0,!1,void 0,this),isEmpty:h,empty:C,children:()=>v&&De.jsxDEV(Ht,{rows:v.summary.models,rowKey:(w)=>w.key,columns:x,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 H2(l,i){let c=l.costSeries,f=eT(c),p=$m(f.models.map((x)=>({model:x.model,provider:x.provider,totalRequests:x.requests}))),L=new Map(f.models.map((x)=>[x.key,x])),g=mo(i,c.map((x)=>x.timestamp),U2),S=yr(c,{buckets:g,key:(x)=>xa(x.model,x.provider),label:(x)=>L.get(x)?.model??x,value:(x)=>x.cost,limit:z2,colors:p}).map((x)=>({...x,values:x.values.map((h)=>h||null)})),v=new Set;for(let x of S){if(x.key==="__other__")continue;if(v.has(x.color))x.color=Ma.find((h)=>!v.has(h))??x.color;v.add(x.color)}return{summary:f,swatches:new Map(S.filter((x)=>x.key!=="__other__").map((x)=>[x.key,x.color])),buckets:g,dailyTotals:La(c,g,(x)=>x.cost),unpricedPerDay:La(c,g,(x)=>x.unpricedRequests),modelSeries:S,componentSeries:Hd.map((x)=>({key:x.key,label:x.label,color:x.color,values:La(c,g,(h)=>h[x.key]).map((h)=>h||null)})),maxModelCost:f.models[0]?.cost??0}}function F2({view:l,stale:i}){let{summary:c}=l,f=c.requests-c.unpricedRequests,p=c.topModel;return De.jsxDEV("div",{"data-stale":i,children:De.jsxDEV(oa,{min:180,children:[De.jsxDEV(se,{label:s("costs.api-equivalent-estimate"),title:s("costs.api-estimate-title"),value:Ft(c.totalCost,c.unpricedRequests),hint:s("costs.requests-n",{count:B(c.requests)}),spark:l.dailyTotals,sparkColor:"var(--chart-secondary)"},void 0,!1,void 0,this),De.jsxDEV(se,{label:s("costs.average-per-day"),title:s("costs.average-per-day-title"),value:Ft(c.avgDailyCost,c.unpricedRequests),hint:s(c.activeDays===1?"costs.active-days-one":"costs.active-days-n",{count:B(c.activeDays)})},void 0,!1,void 0,this),De.jsxDEV(se,{label:s("costs.top-model"),title:p?`${p.model} (${p.provider})`:void 0,value:p?p.model:"–",hint:p?s("costs.top-model-hint",{cost:da(p.cost),share:Ve(p.share)}):s("costs.nothing-priced-yet")},void 0,!1,void 0,this),De.jsxDEV(se,{label:s("costs.per-priced-request"),title:s("costs.per-priced-request-title"),value:f>0?sT(c.totalCost/f):"–",hint:s("costs.priced-n",{count:B(f)})},void 0,!1,void 0,this),De.jsxDEV(se,{label:s("costs.unpriced-requests"),title:s("costs.unpriced-title"),value:B(c.unpricedRequests),hint:c.unpricedRequests>0?s("costs.unpriced-hint"):s("costs.all-priced")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function G2({summary:l}){return De.jsxDEV("div",{className:"stack",style:{gap:14},children:[De.jsxDEV(Ql,{height:10,segments:Hd.map((i)=>({key:i.key,label:i.label,value:l[i.key],color:i.color}))},void 0,!1,void 0,this),De.jsxDEV("div",{className:"costs-components",children:[Hd.map((i)=>De.jsxDEV("div",{className:"costs-component-row",children:[De.jsxDEV("span",{className:"row",children:[De.jsxDEV(wn,{color:i.color},void 0,!1,void 0,this),i.label]},void 0,!0,void 0,this),De.jsxDEV("span",{className:"num",children:da(l[i.key])},void 0,!1,void 0,this),De.jsxDEV("span",{className:"num dim costs-component-share",children:l.totalCost>0?Ve(l[i.key]/l.totalCost):"–"},void 0,!1,void 0,this)]},i.key,!0,void 0,this)),De.jsxDEV("div",{className:"costs-component-row costs-component-total",children:[De.jsxDEV("span",{children:s("common.total")},void 0,!1,void 0,this),De.jsxDEV("span",{className:"num",children:Ft(l.totalCost,l.unpricedRequests)},void 0,!1,void 0,this),De.jsxDEV("span",{className:"costs-component-share"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),l.unpricedRequests>0&&De.jsxDEV("p",{className:"micro dim",children:s(l.unpricedRequests===1?"costs.unpriced-note-one":"costs.unpriced-note-n",{count:B(l.unpricedRequests)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function V2(l){let i=Hd.map((c)=>({key:c.key,header:c.label,align:"right",sort:(f)=>f[c.key],render:(f)=>De.jsxDEV("span",{className:"num",children:da(f[c.key])},void 0,!1,void 0,this)}));return[{key:"model",header:s("common.model"),sort:(c)=>c.model,render:(c)=>De.jsxDEV(Ga,{lead:De.jsxDEV(wn,{color:l.swatches.get(c.key)??oo},void 0,!1,void 0,this),primary:De.jsxDEV("span",{className:"mono",children:c.model},void 0,!1,void 0,this),secondary:c.provider},void 0,!1,void 0,this)},{key:"requests",header:s("common.requests"),align:"right",sort:(c)=>c.requests,render:(c)=>De.jsxDEV("span",{className:"num",children:B(c.requests)},void 0,!1,void 0,this)},{key:"cost",header:s("costs.estimate"),title:s("costs.estimate-title"),align:"right",sort:(c)=>c.cost,render:(c)=>De.jsxDEV(pa,{value:c.cost,max:l.maxModelCost,display:Ft(c.cost,c.unpricedRequests),color:l.swatches.get(c.key)??oo},void 0,!1,void 0,this)},{key:"share",header:s("common.share"),align:"right",sort:(c)=>c.share,render:(c)=>De.jsxDEV("span",{className:"num muted",children:c.cost>0?Ve(c.share):"–"},void 0,!1,void 0,this)},{key:"split",header:s("costs.split"),title:"Input · output · cache read · cache write",width:150,render:(c)=>c.cost>0?De.jsxDEV(Ql,{segments:Hd.map((f)=>({key:f.key,label:f.label,value:c[f.key],color:f.color}))},void 0,!1,void 0,this):De.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this)},...i,{key:"perRequest",header:s("costs.per-request"),title:"Estimate ÷ priced requests",align:"right",sort:(c)=>c.requests>c.unpricedRequests?c.cost/(c.requests-c.unpricedRequests):-1,render:(c)=>De.jsxDEV("span",{className:"num",children:c.requests>c.unpricedRequests?sT(c.cost/(c.requests-c.unpricedRequests)):"–"},void 0,!1,void 0,this)},{key:"unpriced",header:s("costs.unpriced"),title:"Requests with no public-equivalent price",align:"right",sort:(c)=>c.unpricedRequests,render:(c)=>c.unpricedRequests>0?De.jsxDEV("span",{className:"num tone-warn",children:B(c.unpricedRequests)},void 0,!1,void 0,this):De.jsxDEV("span",{className:"num dim",children:"–"},void 0,!1,void 0,this)}]}function sT(l){return l>0&&l<0.0001?"<$0.0001":da(l)}function j2(l){let i=0;for(let c of l)i+=c??0;return i}var Qr=Z(gt(),1);var be=Z(ie(),1),lb=[50,200,1000];function uT({active:l,range:i,onRequestClick:c}){let[f,p]=Qr.useState(0),L=lb[f],g=Gt(["errors",i,L],({signal:ae})=>l1(i,L,ae),{enabled:l}),[S,v]=Qr.useState(null),[x,h]=Qr.useState(null),[C,w]=Qr.useState(""),A=sa(i),k=Qr.useMemo(()=>{let ae=(g.data??[]).map((Be)=>({row:Be,signature:rb(Be.errorMessage)})),F=rT(g.data??[]),de=new Map;for(let{row:Be}of ae){let ne=xa(Be.model,Be.provider),me=de.get(ne);if(me)me.count++;else de.set(ne,{model:Be.model,provider:Be.provider,count:1})}let xe=[...de.entries()].map(([Be,ne])=>({key:Be,...ne})).sort((Be,ne)=>ne.count-Be.count||Be.model.localeCompare(ne.model)),Ce=ae.reduce((Be,{row:ne})=>!Be||ne.timestamp>Be.timestamp?ne:Be,null);return{rows:ae,groups:F,models:xe,newest:Ce}},[g.data]),D=k.groups.some((ae)=>ae.signature===S)?S:null,M=k.models.some((ae)=>ae.key===x)?x:null,U=Qr.useMemo(()=>{let ae=C.trim().toLowerCase();return k.rows.filter((F)=>(D===null||F.signature===D)&&(M===null||xa(F.row.model,F.row.provider)===M)&&(ae===""||F.row.model.toLowerCase().includes(ae)||F.row.provider.toLowerCase().includes(ae)||F.row.folder.toLowerCase().includes(ae)||(F.row.errorMessage??"").toLowerCase().includes(ae))).map((F)=>F.row)},[k.rows,D,M,C]),_=g.data?.length??0,X=!g.stale&&_<L,Q=f+1<lb.length?lb[f+1]:null,ce=g.data!==null&&!X?be.jsxDEV(be.Fragment,{children:[be.jsxDEV("span",{children:s("errors.footer",{count:B(_),window:s(A.windowKey)})},void 0,!1,void 0,this),Q!==null&&be.jsxDEV("button",{type:"button",className:"btn","data-size":"sm",disabled:g.refreshing,onClick:()=>p(f+1),children:g.refreshing&&g.stale?s("errors.loading"):s("errors.load-latest",{count:B(Q)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this):void 0,J=k.groups[0]?.count??0,te=Qr.useMemo(()=>X2(J),[J]),Y=k.models.find((ae)=>ae.key===M);return be.jsxDEV("div",{className:"page",children:[be.jsxDEV(ua,{title:s("errors.title"),description:s("errors.description",{window:s(A.windowKey)})},void 0,!1,void 0,this),be.jsxDEV(He,{query:g,skeleton:be.jsxDEV(Ba,{height:96,style:{borderRadius:12}},void 0,!1,void 0,this),children:()=>be.jsxDEV("div",{"data-stale":g.stale,children:be.jsxDEV(oa,{min:170,children:[be.jsxDEV(se,{label:s("errors.failures"),value:B(_),hint:X?s("errors.hint-in-window",{window:s(A.windowKey)}):s("errors.hint-latest-loaded",{count:B(_)})},void 0,!1,void 0,this),be.jsxDEV(se,{label:s("errors.signatures"),title:s("errors.signatures-hint"),value:B(k.groups.length),hint:k.groups[0]?s("errors.signatures-top",{count:B(k.groups[0].count)}):void 0},void 0,!1,void 0,this),be.jsxDEV(se,{label:s("errors.affected-models"),value:B(k.models.length),hint:k.models[0]?.model},void 0,!1,void 0,this),be.jsxDEV(se,{label:s("errors.last-failure"),value:k.newest?fa(k.newest.timestamp):"–",hint:k.newest?sn(k.newest.timestamp):s("errors.none-in-window",{window:s(A.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),be.jsxDEV("div",{className:"grid grid-main-side",children:[be.jsxDEV(Ue,{index:1,title:s("errors.error-signatures"),description:s("errors.signatures-card-description"),flush:!0,stale:g.stale,children:be.jsxDEV(He,{query:g,skeleton:be.jsxDEV(na,{rows:8},void 0,!1,void 0,this),isEmpty:(ae)=>ae.length===0,empty:be.jsxDEV(vt,{title:s("errors.empty-no-failures",{window:s(A.windowKey)}),hint:s("errors.empty-all-succeeded")},void 0,!1,void 0,this),children:()=>be.jsxDEV(Ht,{rows:k.groups,rowKey:(ae)=>ae.signature,columns:te,onRowClick:(ae)=>v(D===ae.signature?null:ae.signature),selectedKey:D,expanded:(ae)=>ae.signature===D?be.jsxDEV(Y2,{group:ae,onRequestClick:c},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),be.jsxDEV(Ue,{index:2,title:s("errors.by-model"),description:s("errors.by-model-description"),stale:g.stale,children:be.jsxDEV(He,{query:g,skeleton:be.jsxDEV(Ba,{height:180},void 0,!1,void 0,this),isEmpty:(ae)=>ae.length===0,empty:be.jsxDEV(vt,{title:s("errors.empty-no-affected-models")},void 0,!1,void 0,this),children:()=>be.jsxDEV(eu,{items:k.models.slice(0,12).map((ae)=>({key:ae.key,label:be.jsxDEV("span",{className:"row",style:{gap:6,minWidth:0},children:[be.jsxDEV("span",{className:"mono truncate",children:ae.model},void 0,!1,void 0,this),be.jsxDEV("span",{className:"dim truncate",children:ae.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),value:ae.count,color:ae.key===M?"var(--bad)":"color-mix(in srgb, var(--bad) 45%, transparent)"})),onSelect:(ae)=>h(M===ae?null:ae)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),be.jsxDEV(Ue,{index:3,title:s("errors.failures"),description:g.data===null?s("errors.loading-failures"):s("errors.filtered-of-total",{shown:B(U.length),total:B(_)}),actions:be.jsxDEV(be.Fragment,{children:[D!==null&&be.jsxDEV("button",{type:"button",className:"btn errors-filter","data-size":"sm",onClick:()=>v(null),title:D,children:[be.jsxDEV("span",{className:"mono truncate",children:D},void 0,!1,void 0,this),be.jsxDEV(rn,{size:12},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Y&&be.jsxDEV("button",{type:"button",className:"btn errors-filter","data-size":"sm",onClick:()=>h(null),children:[be.jsxDEV("span",{className:"mono truncate",children:Y.model},void 0,!1,void 0,this),be.jsxDEV(rn,{size:12},void 0,!1,void 0,this)]},void 0,!0,void 0,this),be.jsxDEV(fr,{value:C,onChange:w,placeholder:s("errors.search-placeholder")},void 0,!1,void 0,this)]},void 0,!0,void 0,this),flush:!0,stale:g.stale,footer:ce,children:be.jsxDEV(He,{query:g,skeleton:be.jsxDEV(na,{rows:10},void 0,!1,void 0,this),isEmpty:(ae)=>ae.length===0,empty:be.jsxDEV(vt,{title:s("errors.empty-no-failures",{window:s(A.windowKey)})},void 0,!1,void 0,this),children:()=>be.jsxDEV(Ht,{rows:U,rowKey:(ae)=>ae.id??`${ae.sessionFile}:${ae.entryId}`,onRowClick:(ae)=>ae.id!==void 0&&c(ae.id),columns:$2,initialSort:{key:"time",dir:"desc"},limit:50,dense:!0,empty:be.jsxDEV(vt,{title:s("errors.no-match"),hint:s("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 X2(l){return[{key:"signature",header:s("errors.signature"),wrap:!0,sort:(i)=>i.signature,render:(i)=>be.jsxDEV("span",{className:"errors-signature",title:i.latest.errorMessage??void 0,children:i.signature},void 0,!1,void 0,this)},{key:"models",header:s("common.models"),sort:(i)=>i.models.length,render:(i)=>be.jsxDEV(Ga,{primary:be.jsxDEV("span",{className:"mono",children:i.models[0]?.model},void 0,!1,void 0,this),secondary:i.models.length>1?s("errors.more-models",{count:B(i.models.length-1)}):i.models[0]?.provider},void 0,!1,void 0,this)},{key:"last",header:s("errors.last-seen"),sort:(i)=>i.lastSeen,render:(i)=>be.jsxDEV("span",{className:"muted",title:sn(i.lastSeen),children:fa(i.lastSeen)},void 0,!1,void 0,this)},{key:"count",header:s("errors.failures"),align:"right",width:120,sort:(i)=>i.count,render:(i)=>be.jsxDEV(pa,{value:i.count,max:l,display:B(i.count),color:"var(--bad)"},void 0,!1,void 0,this)}]}function Y2({group:l,onRequestClick:i}){let c=l.latest.id;return be.jsxDEV("div",{className:"errors-detail",children:[be.jsxDEV("pre",{className:"code-block errors-detail-message",children:l.latest.errorMessage??s("errors.unknown-error")},void 0,!1,void 0,this),be.jsxDEV("div",{className:"errors-detail-meta",children:[be.jsxDEV("span",{className:"muted",children:s("errors.group-meta",{count:B(l.count),first:sn(l.firstSeen),last:sn(l.lastSeen)})},void 0,!1,void 0,this),c!==void 0&&be.jsxDEV("button",{type:"button",className:"btn","data-size":"sm",onClick:()=>i(c),children:[s("errors.open-latest")," ",be.jsxDEV(gd,{size:13},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),be.jsxDEV("div",{className:"errors-detail-models",children:l.models.map((f)=>be.jsxDEV("span",{className:"badge","data-mono":"true",children:[f.model," ",be.jsxDEV("span",{className:"dim",children:f.provider},void 0,!1,void 0,this)," ",be.jsxDEV("span",{className:"num",children:Ae(f.count)},void 0,!1,void 0,this)]},xa(f.model,f.provider),!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var $2=[{key:"time",header:s("errors.when"),width:120,sort:(l)=>l.timestamp,render:(l)=>be.jsxDEV("span",{className:"muted",title:sn(l.timestamp),children:fa(l.timestamp)},void 0,!1,void 0,this)},{key:"model",header:s("common.model"),sort:(l)=>l.model,render:(l)=>be.jsxDEV(Ga,{primary:be.jsxDEV("span",{className:"mono",children:l.model},void 0,!1,void 0,this),secondary:l.provider},void 0,!1,void 0,this)},{key:"error",header:s("common.error"),sort:(l)=>l.errorMessage??"",render:(l)=>be.jsxDEV("span",{className:"errors-message",title:l.errorMessage??void 0,children:l.errorMessage??s("errors.unknown-error")},void 0,!1,void 0,this)},{key:"project",header:s("common.project"),sort:(l)=>l.folder,render:(l)=>be.jsxDEV("span",{className:"mono muted",title:l.folder,children:mr(l.folder)},void 0,!1,void 0,this)},{key:"tokens",header:s("common.tokens"),align:"right",sort:(l)=>l.usage.totalTokens,render:(l)=>be.jsxDEV("span",{className:"num",children:B(l.usage.totalTokens)},void 0,!1,void 0,this)},{key:"cost",header:s("common.cost"),title:s("errors.cost-hint"),align:"right",sort:(l)=>l.usage.cost.total,render:(l)=>be.jsxDEV("span",{className:"num",children:$l(l,4)},void 0,!1,void 0,this)}];var St=Z(gt(),1);var N=Z(ie(),1),Q2=1000,Qm=50,ub=0.5,Fd="*";function cT({active:l,range:i}){let[c,f]=St.useState(!1),p=Gt(["frustration",i],({signal:x})=>i1(i,x),{enabled:l,pollMs:c?Q2:void 0}),L=sa(i),g=p.data?.job.state;St.useEffect(()=>{if(g!==void 0)f(g==="running")},[g]);let{refetch:S}=p,v=St.useCallback(()=>{f(!0),S()},[S]);return N.jsxDEV("div",{className:"page",children:[N.jsxDEV(ua,{title:s("frustration.title"),description:s("frustration.description",{window:s(L.windowKey)})},void 0,!1,void 0,this),N.jsxDEV(He,{query:p,skeleton:N.jsxDEV(Mt,{height:96},void 0,!1,void 0,this),children:(x)=>N.jsxDEV("div",{"data-stale":p.stale,children:N.jsxDEV(K2,{overall:x.overall},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),N.jsxDEV(He,{query:p,skeleton:N.jsxDEV(Mt,{height:120},void 0,!1,void 0,this),children:(x)=>N.jsxDEV(Z2,{active:l,range:i,judgeAvailable:x.judgeAvailable,job:x.job,onRunStarted:v,onRunChanged:S},void 0,!1,void 0,this)},void 0,!1,void 0,this),N.jsxDEV(He,{query:p,skeleton:N.jsxDEV(Ue,{index:2,title:s("frustration.by-model"),children:[N.jsxDEV(Mt,{height:340},void 0,!1,void 0,this),N.jsxDEV(na,{rows:6},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:(x)=>N.jsxDEV(lD,{models:x.byModel,stale:p.stale},void 0,!1,void 0,this)},void 0,!1,void 0,this),N.jsxDEV(He,{query:p,skeleton:N.jsxDEV(Mt,{height:96},void 0,!1,void 0,this),children:(x)=>N.jsxDEV("div",{className:"frustration-model-summary","data-stale":p.stale,children:N.jsxDEV(cD,{overall:x.modelSide.overall,window:s(L.windowKey)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),N.jsxDEV(He,{query:p,skeleton:N.jsxDEV(Ue,{index:4,title:s("frustration.model-by-model"),children:[N.jsxDEV(Mt,{height:300},void 0,!1,void 0,this),N.jsxDEV(na,{rows:5},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:(x)=>N.jsxDEV(dD,{models:x.modelSide.byModel,series:x.modelSide.series,range:i,stale:p.stale},void 0,!1,void 0,this)},void 0,!1,void 0,this),N.jsxDEV(He,{query:p,skeleton:N.jsxDEV(Ue,{index:7,title:s("frustration.model-sessions"),children:N.jsxDEV(na,{rows:5},void 0,!1,void 0,this)},void 0,!1,void 0,this),children:(x)=>N.jsxDEV(pD,{sessions:x.modelSide.bySession,stale:p.stale},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function ma(l,i){return i>0?Ve(l/i):"–"}function sb(l){return l instanceof Error?l.message:String(l)}function dT(l){let i=Math.max(0,Math.floor(l/1000)),c=Math.floor(i/60),f=i%60;return c>0?`${c}m ${String(f).padStart(2,"0")}s`:`${f}s`}function K2({overall:l}){let i=l.messages-l.judged,c=l.unscored>0?s("frustration.coverage-unscored",{count:B(l.unscored)}):"";return N.jsxDEV(N.Fragment,{children:[N.jsxDEV(oa,{min:170,children:[N.jsxDEV(se,{label:s("frustration.user-messages"),title:s("frustration.user-messages-title"),value:B(l.messages)},void 0,!1,void 0,this),N.jsxDEV(se,{label:s("frustration.judge-coverage"),title:s("frustration.judge-coverage-title"),value:ma(l.judged,l.messages),hint:`${s("frustration.coverage-hint",{judged:B(l.judged),regex:B(i)})}${c}`},void 0,!1,void 0,this),N.jsxDEV(se,{label:s("frustration.annoyed"),title:s("frustration.annoyed-title"),value:ma(l.annoyed,l.messages),hint:s("frustration.messages-n",{count:B(l.annoyed)})},void 0,!1,void 0,this),N.jsxDEV(se,{label:s("frustration.at-assistant"),title:s("frustration.at-assistant-title"),value:ma(l.atAssistant,l.messages),hint:s("frustration.messages-n",{count:B(l.atAssistant)})},void 0,!1,void 0,this),N.jsxDEV(se,{label:s("frustration.angry"),title:s("frustration.angry-title"),value:ma(l.angry,l.messages),hint:s("frustration.messages-n",{count:B(l.angry)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this),l.unscored>0&&N.jsxDEV("p",{className:"micro dim",children:s("frustration.unscored-line",{count:B(l.unscored)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var iT="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 Z2({active:l,range:i,judgeAvailable:c,job:f,onRunStarted:p,onRunChanged:L}){let[g,S]=St.useState(!1),[v,x]=St.useState({status:"loading"}),[h,C]=St.useState(!1),[w,A]=St.useState(null),[k,D]=St.useState(!1),[M,U]=St.useState(null),_=St.useRef(null),X=f.state==="running",Q=St.useCallback(()=>{_.current?.abort(),_.current=null,S(!1)},[]);St.useEffect(()=>{if(!l)Q()},[l,Q]),St.useEffect(()=>()=>_.current?.abort(),[]);let ce=()=>{_.current?.abort();let F=new AbortController;_.current=F;let de=i;x({status:"loading"}),A(null),U(null),S(!0),c1(de,F.signal).then((xe)=>{if(!F.signal.aborted)x({status:"ready",estimate:xe,range:de})},(xe)=>{if(!F.signal.aborted)x({status:"error",message:sb(xe)})})},J=async()=>{if(v.status!=="ready")return;C(!0),A(null);try{await d1(v.range),Q(),p()}catch(F){A(sb(F))}finally{C(!1)}},te=async()=>{D(!0),U(null);try{await f1(),L()}catch(F){U(sb(F))}finally{D(!1)}},Y=v.status==="ready"?v.estimate:null,ae=v.status==="loading"?{label:"Proceed",onClick:J,disabled:!0}:Y?.available?{label:h?"Starting…":"Proceed",onClick:J,disabled:h||Y.messages===0}:void 0;return N.jsxDEV(Ue,{index:1,title:N.jsxDEV(N.Fragment,{children:[s("frustration.judge-panel")," ",N.jsxDEV(W2,{job:f,judgeAvailable:c},void 0,!1,void 0,this)]},void 0,!0,void 0,this),description:s("frustration.judge-description"),actions:N.jsxDEV("button",{type:"button",className:"btn","data-variant":"accent","data-size":"sm",onClick:ce,disabled:!c||X,title:!c?iT:X?s("frustration.judge-running"):s("frustration.quote-title"),children:[N.jsxDEV(ur,{size:13},void 0,!1,void 0,this)," ",s("frustration.classify")]},void 0,!0,void 0,this),children:[N.jsxDEV("div",{className:"stack frustration-judge",children:[X?N.jsxDEV(eD,{job:f,cancelling:k,onCancel:te},void 0,!1,void 0,this):N.jsxDEV(tD,{job:f},void 0,!1,void 0,this),!c&&N.jsxDEV("p",{className:"micro dim",children:iT},void 0,!1,void 0,this),M&&N.jsxDEV("p",{className:"micro tone-bad",role:"alert",children:M},void 0,!1,void 0,this)]},void 0,!0,void 0,this),N.jsxDEV(A1,{open:g,title:s("frustration.classify"),onClose:Q,primaryAction:ae,children:[N.jsxDEV(J2,{estimate:v},void 0,!1,void 0,this),w&&N.jsxDEV("p",{className:"micro tone-bad",role:"alert",children:w},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function W2({job:l,judgeAvailable:i}){switch(l.state){case"running":return N.jsxDEV(Ut,{tone:"ok",children:[N.jsxDEV(cr,{tone:"live",pulse:!0},void 0,!1,void 0,this)," ",s("frustration.running")]},void 0,!0,void 0,this);case"done":return N.jsxDEV(Ut,{tone:"ok",children:s("frustration.last-run-done")},void 0,!1,void 0,this);case"cancelled":return N.jsxDEV(Ut,{tone:"warn",children:s("frustration.last-run-cancelled")},void 0,!1,void 0,this);case"failed":return N.jsxDEV(Ut,{tone:"bad",children:s("frustration.last-run-failed")},void 0,!1,void 0,this);case"idle":return N.jsxDEV(Ut,{children:i?s("frustration.not-run-yet"):s("frustration.regex-only")},void 0,!1,void 0,this)}}function J2({estimate:l}){if(l.status==="loading")return N.jsxDEV("p",{className:"muted",children:s("frustration.estimating")},void 0,!1,void 0,this);if(l.status==="error")return N.jsxDEV("p",{className:"tone-bad",children:l.message},void 0,!1,void 0,this);let i=l.estimate;if(!i.available)return N.jsxDEV("p",{children:i.reason},void 0,!1,void 0,this);if(i.messages===0)return N.jsxDEV("p",{children:s("frustration.all-judged")},void 0,!1,void 0,this);return N.jsxDEV(N.Fragment,{children:[N.jsxDEV("div",{className:"frustration-quote",children:[N.jsxDEV("span",{className:"dim micro",children:s("frustration.estimated-cost")},void 0,!1,void 0,this),N.jsxDEV("span",{className:"num frustration-quote-value",children:["≈ ",da(i.cost)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),N.jsxDEV(Fo,{items:[{key:"messages",label:s("frustration.unjudged-messages"),value:B(i.messages)},{key:"chars",label:s("frustration.prose-chars"),value:B(i.chars)},{key:"tokens",label:s("frustration.input-tokens"),value:B(i.inputTokens)},{key:"judge",label:s("frustration.judge-model"),value:i.judge}]},void 0,!1,void 0,this),N.jsxDEV("p",{className:"micro dim",children:s("frustration.estimate-note")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function eD({job:l,cancelling:i,onCancel:c}){let f=l.done+l.failed,p=l.total>0?Math.min(1,f/l.total):0;return N.jsxDEV("div",{className:"stack frustration-progress",children:[N.jsxDEV("div",{className:"row frustration-progress-head",children:[N.jsxDEV("span",{className:"num",children:[B(l.done),"/",B(l.total)," judged"]},void 0,!0,void 0,this),N.jsxDEV("span",{className:"num dim",children:Ve(p)},void 0,!1,void 0,this),N.jsxDEV("span",{className:"frustration-spacer"},void 0,!1,void 0,this),N.jsxDEV("button",{type:"button",className:"btn","data-variant":"danger","data-size":"sm",onClick:c,disabled:i,children:i?s("frustration.cancelling"):s("frustration.cancel-run")},void 0,!1,void 0,this)]},void 0,!0,void 0,this),N.jsxDEV("div",{className:"meter frustration-progress-track",role:"progressbar","aria-valuemin":0,"aria-valuemax":l.total,"aria-valuenow":f,children:N.jsxDEV("div",{className:"meter-fill frustration-progress-fill",style:{width:`${p*100}%`}},void 0,!1,void 0,this)},void 0,!1,void 0,this),N.jsxDEV("div",{className:"row micro muted frustration-progress-meta",children:[N.jsxDEV("span",{className:l.failed>0?"tone-bad":void 0,children:s("frustration.failed-n",{count:B(l.failed)})},void 0,!1,void 0,this),N.jsxDEV("span",{children:[s("frustration.cost-so-far")," ",N.jsxDEV("span",{className:"num",children:da(l.cost)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),l.judge&&N.jsxDEV("span",{className:"mono",children:l.judge},void 0,!1,void 0,this),l.startedAt!==null&&N.jsxDEV("span",{children:s("frustration.elapsed",{time:dT(Date.now()-l.startedAt)})},void 0,!1,void 0,this),l.startedAt!==null&&l.done>0&&N.jsxDEV("span",{className:"num",children:[(l.done/Math.max(1,(Date.now()-l.startedAt)/1000)).toFixed(0),"/s"]},void 0,!0,void 0,this),l.concurrency>0&&N.jsxDEV("span",{className:"num",children:s("frustration.in-flight",{count:B(l.concurrency)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function tD({job:l}){let i=s("frustration.messages-progress",{done:B(l.done),total:B(l.total)}),c=l.failed>0?s("frustration.failed-suffix",{count:B(l.failed)}):"",f=l.judge?s("frustration.judge-with",{judge:l.judge}):"",p=l.startedAt!==null&&l.finishedAt!==null?s("frustration.in-time",{time:dT(l.finishedAt-l.startedAt)}):"";switch(l.state){case"idle":return N.jsxDEV("p",{className:"muted",children:s("frustration.no-run-yet")},void 0,!1,void 0,this);case"running":return null;case"done":return N.jsxDEV("p",{className:"muted",children:s("frustration.run-done-line",{progress:i,failed:c,judge:f,elapsed:p,cost:da(l.cost)})},void 0,!1,void 0,this);case"cancelled":return N.jsxDEV("p",{className:"muted",children:s("frustration.run-cancelled-line",{progress:i,failed:c,cost:da(l.cost)})},void 0,!1,void 0,this);case"failed":return N.jsxDEV("p",{className:"muted",children:s("frustration.run-failed-line",{progress:i,failed:c,error:l.error??s("frustration.unknown-error"),cost:da(l.cost)})},void 0,!1,void 0,this)}}function ou(l){return`${l.modelClass}/${l.family??"unclassified"}`}function Li(l){return l.messages>0&&l.judged/l.messages<ub}function aD(l){let i=2166136261;for(let c=0;c<l.length;c++)i^=l.charCodeAt(c),i=Math.imul(i,16777619);return i>>>0}function fT(l){let i=[...new Set(l.map(ou))].sort(),c=new Set,f=new Map;for(let p of i){let L=aD(p)%Ma.length;for(let g=0;g<Ma.length&&c.has(L);g++)L=(L+1)%Ma.length;c.add(L),f.set(p,Ma[L])}return f}function oD(l,i){if(i==="angry")return`color-mix(in srgb, ${l} 55%, black)`;if(i==="other")return`color-mix(in srgb, ${l} 32%, transparent)`;return l}var nD=[{key:"angry",label:"Angry at assistant"},{key:"assistant",label:"At assistant, not angry"},{key:"other",label:"Annoyed at other targets"}];function rD(l,i){if(i==="angry")return l.angry;if(i==="assistant")return l.atAssistant-l.angry;return l.annoyed-l.atAssistant}function Gd(l,i){return i>0?l/i*100:0}function lD({models:l,stale:i}){let[c,f]=St.useState(null),[p,L]=un(),[g,S]=St.useState(!1),[v,x]=St.useState(!1),h=St.useMemo(()=>fT(l),[l]),C=St.useMemo(()=>{let J=new Map;for(let te of l)J.set(te.modelClass,(J.get(te.modelClass)??0)+te.messages);return J},[l]),w=St.useMemo(()=>{let J=null,te=-1;for(let[Y,ae]of C)if(ae>te)J=Y,te=ae;return J??Fd},[C]),A=c!==null&&(c===Fd||C.has(c))?c:w,k=St.useMemo(()=>[{value:Fd,label:"All",title:"Every model class"},...[...C].map(([J,te])=>({value:J,label:J,title:`${B(te)} messages`}))],[C]),D=St.useMemo(()=>A===Fd?l:l.filter((J)=>J.modelClass===A),[l,A]),M=St.useMemo(()=>{let J=new Map;for(let te of D){let Y=ou(te),ae=J.get(Y);if(ae){ae.messages+=te.messages;continue}let F=te.family??"unclassified";J.set(Y,{key:Y,label:A===Fd?`${te.modelClass} · ${F}`:F,messages:te.messages})}return[...J.values()]},[D,A]),U=St.useMemo(()=>D.filter((J)=>!p.has(ou(J))),[D,p]),_=U.filter((J)=>J.messages<Qm).length,X=U.filter(Li).length,Q=St.useMemo(()=>U.filter((J)=>(g||J.messages>=Qm)&&!(v&&Li(J))),[U,g,v]);if(l.length===0)return N.jsxDEV(Ue,{index:2,title:s("frustration.by-model"),stale:i,children:N.jsxDEV(vt,{title:s("frustration.no-messages"),hint:s("frustration.try-longer-range")},void 0,!1,void 0,this)},void 0,!1,void 0,this);let ce=Q.some(Li);return N.jsxDEV(N.Fragment,{children:[N.jsxDEV(Ue,{index:2,title:s("frustration.by-model"),description:s("frustration.by-model-description"),stale:i,children:N.jsxDEV("div",{className:"stack frustration-chart-body",children:[N.jsxDEV("div",{className:"frustration-classes",children:N.jsxDEV(Fa,{size:"sm","aria-label":s("frustration.model-class"),options:k,value:A,onChange:f},void 0,!1,void 0,this)},void 0,!1,void 0,this),N.jsxDEV("div",{className:"row frustration-filters",children:[N.jsxDEV(Va,{items:M.map((J)=>({key:J.key,label:J.label,color:h.get(J.key)??Ma[0],value:B(J.messages)})),hidden:p,onToggle:L},void 0,!1,void 0,this),N.jsxDEV("span",{className:"frustration-spacer"},void 0,!1,void 0,this),N.jsxDEV("label",{className:"check",title:s("frustration.small-models-title",{count:Qm}),children:[N.jsxDEV("input",{type:"checkbox",checked:g,onChange:(J)=>S(J.target.checked)},void 0,!1,void 0,this),s("frustration.include-small",{count:Qm}),_>0?` (${_})`:""]},void 0,!0,void 0,this),N.jsxDEV("label",{className:"check",title:s("frustration.hide-regex-title",{share:ub*100}),children:[N.jsxDEV("input",{type:"checkbox",checked:v,onChange:(J)=>x(J.target.checked)},void 0,!1,void 0,this),"Hide mostly regex",X>0?` (${X})`:""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),N.jsxDEV(sD,{hasRegexRows:ce},void 0,!1,void 0,this),N.jsxDEV(uD,{rows:Q,familyColors:h},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),N.jsxDEV(iD,{rows:Q,familyColors:h,stale:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function sD({hasRegexRows:l}){return N.jsxDEV("div",{className:"legend frustration-key",children:[N.jsxDEV("span",{className:"legend-item",children:[N.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),N.jsxDEV("span",{className:"legend-item",children:[N.jsxDEV("span",{className:"swatch frustration-key-swatch","data-variant":"assistant"},void 0,!1,void 0,this),"At assistant"]},void 0,!0,void 0,this),N.jsxDEV("span",{className:"legend-item",children:[N.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),N.jsxDEV("span",{className:"legend-item",children:[N.jsxDEV("span",{className:"frustration-key-line"},void 0,!1,void 0,this),s("frustration.legend-trend")]},void 0,!0,void 0,this),N.jsxDEV("span",{className:"legend-item frustration-key-wide",title:s("frustration.hatch-title",{share:ub*100}),children:[N.jsxDEV("span",{className:"swatch frustration-key-swatch","data-variant":"hatch"},void 0,!1,void 0,this),l?s("frustration.legend-hatched-run"):s("frustration.legend-hatched")]},void 0,!0,void 0,this),N.jsxDEV("span",{className:"legend-item dim",children:s("frustration.legend-hue")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function uD({rows:l,familyColors:i}){let c=St.useMemo(()=>{let f=new Map;l.forEach((L,g)=>{let S=ou(L),v=Li(L),x=`${S}|${v?"regex":"judged"}`,h=f.get(x);if(h)h.slots.push(g);else f.set(x,{family:S,regex:v,slots:[g]})});let p=[];for(let L of nD)for(let[g,S]of f){let v=l.map(()=>null);for(let x of S.slots)v[x]=Gd(rD(l[x],L.key),l[x].messages);p.push({key:`${L.key}|${g}`,label:L.label,color:oD(i.get(S.family)??Ma[0],L.key),values:v,pattern:S.regex?"hatch":void 0})}return p.push({key:"trend",label:"At assistant (total)",color:"var(--ink-1)",values:l.map((L)=>Gd(L.atAssistant,L.messages)),kind:"line",tooltip:!1}),p},[l,i]);if(l.length===0)return N.jsxDEV("div",{className:"frustration-chart-empty",children:N.jsxDEV(vt,{title:s("frustration.no-model-match")},void 0,!1,void 0,this)},void 0,!1,void 0,this);return N.jsxDEV(In,{slots:l.length,tickLabel:(f)=>l[f].label,series:c,height:340,format:(f)=>`${f}%`,formatTooltip:(f)=>`${f.toFixed(1)}%`,showTotal:!1,emptyLabel:"No frustrated messages for these models",tooltipExtra:(f)=>{let p=l[f];return N.jsxDEV("div",{className:"frustration-tooltip-extra",children:[N.jsxDEV("div",{className:"chart-tooltip-row chart-tooltip-total",children:[N.jsxDEV("span",{className:"chart-tooltip-label",children:s("frustration.legend-annoyed-any")},void 0,!1,void 0,this),N.jsxDEV("span",{className:"chart-tooltip-value",children:ma(p.annoyed,p.messages)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),N.jsxDEV("div",{className:"micro dim",children:[B(p.messages)," messages · judged ",B(p.judged)," (",ma(p.judged,p.messages),")",Li(p)?s("frustration.row-mostly-regex"):""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}},void 0,!1,void 0,this)}function iD({rows:l,familyColors:i,stale:c}){let f=St.useMemo(()=>[{key:"model",header:s("common.model"),sort:(p)=>p.label,render:(p)=>N.jsxDEV("span",{className:"row",title:p.key,children:[N.jsxDEV("span",{className:"swatch",style:{background:i.get(ou(p))??Ma[0]}},void 0,!1,void 0,this),N.jsxDEV("span",{className:"cell-primary",children:p.label},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"ids",header:s("frustration.column-model-ids"),wrap:!0,render:(p)=>N.jsxDEV("span",{className:"mono micro dim",children:p.models.join(", ")},void 0,!1,void 0,this)},{key:"messages",header:s("frustration.column-messages"),align:"right",sort:(p)=>p.messages,render:(p)=>N.jsxDEV("span",{className:"num",children:B(p.messages)},void 0,!1,void 0,this)},{key:"judged",header:s("frustration.column-judged"),align:"right",sort:(p)=>p.messages>0?p.judged/p.messages:0,render:(p)=>Li(p)?N.jsxDEV("span",{className:"row frustration-judged",title:s("frustration.mostly-regex"),children:[N.jsxDEV(Ut,{tone:"warn",children:s("frustration.regex-badge")},void 0,!1,void 0,this),N.jsxDEV("span",{className:"num dim",children:ma(p.judged,p.messages)},void 0,!1,void 0,this)]},void 0,!0,void 0,this):N.jsxDEV("span",{className:"num",children:ma(p.judged,p.messages)},void 0,!1,void 0,this)},{key:"annoyed",header:s("frustration.annoyed"),align:"right",sort:(p)=>Gd(p.annoyed,p.messages),render:(p)=>N.jsxDEV("span",{className:"num",title:s("frustration.messages-n",{count:B(p.annoyed)}),children:ma(p.annoyed,p.messages)},void 0,!1,void 0,this)},{key:"atAssistant",header:s("frustration.at-assistant"),align:"right",sort:(p)=>Gd(p.atAssistant,p.messages),render:(p)=>N.jsxDEV("span",{className:"num",title:s("frustration.messages-n",{count:B(p.atAssistant)}),children:ma(p.atAssistant,p.messages)},void 0,!1,void 0,this)},{key:"angry",header:s("frustration.angry"),align:"right",sort:(p)=>Gd(p.angry,p.messages),render:(p)=>N.jsxDEV("span",{className:p.angry>0?"num tone-bad":"num",title:s("frustration.messages-n",{count:B(p.angry)}),children:ma(p.angry,p.messages)},void 0,!1,void 0,this)}],[i]);return N.jsxDEV(Ue,{index:3,title:s("frustration.model-versions"),description:s("frustration.table-description"),flush:!0,stale:c,children:N.jsxDEV(Ht,{rows:l,rowKey:(p)=>p.key,columns:f,dense:!0,empty:N.jsxDEV(vt,{title:s("frustration.no-model-match")},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function cD({overall:l,window:i}){let c=l.messages>0?(l.collapse/l.messages).toFixed(2):"–";return N.jsxDEV(N.Fragment,{children:[N.jsxDEV("div",{className:"card-titles",children:[N.jsxDEV("h2",{className:"page-title",children:s("frustration.model-side-title")},void 0,!1,void 0,this),N.jsxDEV("p",{className:"page-description",children:s("frustration.model-side-description",{window:i})},void 0,!1,void 0,this)]},void 0,!0,void 0,this),N.jsxDEV("div",{className:"frustration-model-notes",children:[N.jsxDEV(oa,{min:170,children:[N.jsxDEV(se,{label:s("frustration.model-turns"),title:s("frustration.model-turns-title"),value:B(l.messages)},void 0,!1,void 0,this),N.jsxDEV(se,{label:s("frustration.model-breakdown"),title:s("frustration.model-breakdown-title"),value:ma(l.breakdown,l.messages),hint:s("frustration.turns-n",{count:B(l.breakdown)})},void 0,!1,void 0,this),N.jsxDEV(se,{label:s("frustration.model-mean"),title:s("frustration.model-mean-title"),value:c,hint:s("frustration.model-hint-mean",{value:c})},void 0,!1,void 0,this),N.jsxDEV(se,{label:s("frustration.model-self-blame"),title:s("frustration.model-self-blame-title"),value:ma(l.blamed,l.messages)},void 0,!1,void 0,this),N.jsxDEV(se,{label:s("frustration.model-hedge"),title:s("frustration.model-hedge-title"),value:ma(l.hedged,l.messages)},void 0,!1,void 0,this),N.jsxDEV(se,{label:s("frustration.model-spiral"),title:s("frustration.model-spiral-title"),value:ma(l.spiraled,l.messages)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),l.unscored>0&&N.jsxDEV("p",{className:"micro dim",children:s("frustration.model-unscored-line",{count:B(l.unscored)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function An(l,i){return i>0?l/i*100:0}function dD({models:l,series:i,range:c,stale:f}){let p=sa(c),L=St.useMemo(()=>fT(l),[l]),g=St.useMemo(()=>mo(c,i.map((h)=>h.timestamp),p.bucketMs),[i,c,p.bucketMs]),S=St.useMemo(()=>new Map(i.map((h)=>[h.timestamp,h])),[i]),v=St.useMemo(()=>[{key:"breakdown",label:s("frustration.model-legend-breakdown"),color:"var(--chart-primary)",values:g.map((h)=>{let C=S.get(h);return C&&C.messages>0?An(C.breakdown,C.messages):null})}],[g,S]),x=St.useMemo(()=>[...l].sort((h,C)=>An(C.breakdown,C.messages)-An(h.breakdown,h.messages)||C.messages-h.messages).slice(0,12),[l]);if(l.length===0)return N.jsxDEV(Ue,{index:4,title:s("frustration.model-by-model"),stale:f,children:N.jsxDEV(vt,{title:s("frustration.model-no-turns"),hint:s("frustration.model-try-longer-range")},void 0,!1,void 0,this)},void 0,!1,void 0,this);return N.jsxDEV(N.Fragment,{children:[N.jsxDEV(Ue,{index:4,title:s("frustration.model-by-model"),description:s("frustration.model-by-model-description"),stale:f,children:N.jsxDEV(eu,{max:100,items:x.map((h)=>({key:h.key,label:h.label,value:An(h.breakdown,h.messages),display:ma(h.breakdown,h.messages),color:L.get(ou(h))??Ma[0]}))},void 0,!1,void 0,this)},void 0,!1,void 0,this),N.jsxDEV(Ue,{index:5,title:s("frustration.model-over-time"),description:s("frustration.model-over-time-description"),actions:N.jsxDEV(Va,{items:v.map((h)=>({key:h.key,label:h.label,color:h.color}))},void 0,!1,void 0,this),stale:f,children:N.jsxDEV(Rn,{buckets:g,bucketMs:p.bucketMs,series:v,height:260,yMax:100,format:(h)=>`${h}%`,formatTooltip:(h)=>`${h.toFixed(1)}%`,emptyLabel:s("frustration.model-no-turns")},void 0,!1,void 0,this)},void 0,!1,void 0,this),N.jsxDEV(fD,{rows:l,familyColors:L,stale:f},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function fD({rows:l,familyColors:i,stale:c}){let f=St.useMemo(()=>[{key:"model",header:s("common.model"),sort:(p)=>p.label,render:(p)=>N.jsxDEV("span",{className:"row",title:p.key,children:[N.jsxDEV("span",{className:"swatch",style:{background:i.get(ou(p))??Ma[0]}},void 0,!1,void 0,this),N.jsxDEV("span",{className:"cell-primary",children:p.label},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"ids",header:s("frustration.column-model-ids"),wrap:!0,render:(p)=>N.jsxDEV("span",{className:"mono micro dim",children:p.models.join(", ")},void 0,!1,void 0,this)},{key:"turns",header:s("frustration.column-turns"),align:"right",sort:(p)=>p.messages,render:(p)=>N.jsxDEV("span",{className:"num",children:B(p.messages)},void 0,!1,void 0,this)},{key:"selfBlame",header:s("frustration.model-self-blame"),align:"right",sort:(p)=>An(p.blamed,p.messages),render:(p)=>N.jsxDEV("span",{className:"num",title:s("frustration.turns-n",{count:B(p.blamed)}),children:ma(p.blamed,p.messages)},void 0,!1,void 0,this)},{key:"restatement",header:s("frustration.model-restatement"),title:s("frustration.model-restatement-title"),align:"right",sort:(p)=>An(p.restated,p.messages),render:(p)=>N.jsxDEV("span",{className:"num",title:s("frustration.turns-n",{count:B(p.restated)}),children:ma(p.restated,p.messages)},void 0,!1,void 0,this)},{key:"hedge",header:s("frustration.model-hedge"),align:"right",sort:(p)=>An(p.hedged,p.messages),render:(p)=>N.jsxDEV("span",{className:"num",title:s("frustration.turns-n",{count:B(p.hedged)}),children:ma(p.hedged,p.messages)},void 0,!1,void 0,this)},{key:"rambling",header:s("frustration.model-rambling"),title:s("frustration.model-rambling-title"),align:"right",sort:(p)=>An(p.verbose,p.messages),render:(p)=>N.jsxDEV("span",{className:"num",title:s("frustration.turns-n",{count:B(p.verbose)}),children:ma(p.verbose,p.messages)},void 0,!1,void 0,this)},{key:"spiral",header:s("frustration.model-spiral"),align:"right",sort:(p)=>An(p.spiraled,p.messages),render:(p)=>N.jsxDEV("span",{className:"num",title:s("frustration.turns-n",{count:B(p.spiraled)}),children:ma(p.spiraled,p.messages)},void 0,!1,void 0,this)},{key:"breakdown",header:s("frustration.model-breakdown"),align:"right",sort:(p)=>An(p.breakdown,p.messages),render:(p)=>N.jsxDEV("span",{className:"num",title:s("frustration.turns-n",{count:B(p.breakdown)}),children:ma(p.breakdown,p.messages)},void 0,!1,void 0,this)},{key:"mean",header:s("frustration.column-mean"),align:"right",sort:(p)=>p.messages>0?p.collapse/p.messages:0,render:(p)=>N.jsxDEV("span",{className:"num",children:p.messages>0?(p.collapse/p.messages).toFixed(2):"–"},void 0,!1,void 0,this)}],[i]);return N.jsxDEV(Ue,{index:6,title:s("frustration.model-table-title"),description:s("frustration.model-table-description"),flush:!0,stale:c,children:N.jsxDEV(Ht,{rows:l,rowKey:(p)=>p.key,columns:f,dense:!0,empty:N.jsxDEV(vt,{title:s("frustration.model-no-turns")},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function pD({sessions:l,stale:i}){let c=St.useMemo(()=>[{key:"session",header:s("frustration.column-session"),render:(f)=>N.jsxDEV("span",{className:"stack",title:f.sessionFile,children:[N.jsxDEV("span",{className:"cell-primary mono micro",children:f.sessionFile.split(/[\\/]/).pop()??f.sessionFile},void 0,!1,void 0,this),N.jsxDEV("span",{className:"micro dim truncate",children:f.folder},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"models",header:s("common.model"),wrap:!0,render:(f)=>N.jsxDEV("span",{className:"mono micro dim",children:f.models.join(", ")},void 0,!1,void 0,this)},{key:"turns",header:s("frustration.column-turns"),align:"right",sort:(f)=>f.messages,render:(f)=>N.jsxDEV("span",{className:"num",children:B(f.messages)},void 0,!1,void 0,this)},{key:"breakdown",header:s("frustration.model-breakdown"),align:"right",sort:(f)=>An(f.breakdown,f.messages),render:(f)=>N.jsxDEV("span",{className:"num",title:s("frustration.turns-n",{count:B(f.breakdown)}),children:ma(f.breakdown,f.messages)},void 0,!1,void 0,this)},{key:"mean",header:s("frustration.column-mean"),align:"right",sort:(f)=>f.messages>0?f.collapse/f.messages:0,render:(f)=>N.jsxDEV("span",{className:"num",children:f.messages>0?(f.collapse/f.messages).toFixed(2):"–"},void 0,!1,void 0,this)},{key:"toolErrors",header:s("frustration.column-tool-errors"),align:"right",sort:(f)=>f.toolErrors,render:(f)=>N.jsxDEV("span",{className:f.toolErrors>0?"num tone-bad":"num",children:B(f.toolErrors)},void 0,!1,void 0,this)}],[]);return N.jsxDEV(Ue,{index:7,title:s("frustration.model-sessions"),description:s("frustration.model-sessions-description"),flush:!0,stale:i,children:N.jsxDEV(Ht,{rows:l,rowKey:(f)=>f.sessionFile,columns:c,dense:!0,empty:N.jsxDEV(vt,{title:s("frustration.model-no-turns")},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var Vd=Z(gt(),1);var qt=Z(ie(),1),mD=86400000,hD={snapcompact:"Snapcompact"},gD=new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric",timeZone:"UTC"});function pT({active:l,range:i}){let[c,f]=Vd.useState(null),p=Gt(["gain",i,c],({signal:w})=>m1(i,c,w),{enabled:l}),L=sa(i),g=p.data,S=Vd.useMemo(()=>{let w=(g?.timeSeries??[]).map((U)=>({...U,timestamp:Date.parse(`${U.date}T00:00:00Z`)})),A=mo(i,w.map((U)=>U.timestamp),mD),k=La(w,A,(U)=>U.snapcompact),D=0,M=k.map((U)=>D+=U);return{buckets:A,daily:k,cumulative:M}},[g,i]),v=Vd.useMemo(()=>{if(!g)return[];let w=g.overall.savedTokens;return Object.keys(g.bySource).map((A)=>({...g.bySource[A],source:A,share:w>0?g.bySource[A].savedTokens/w:0}))},[g]),x=g?.projects??[],h=c!==null&&!x.includes(c)?[c,...x]:x,C=[{key:"daily",label:s("gain.saved-per-day"),color:"var(--chart-primary)",values:S.daily},{key:"cumulative",label:s("gain.cumulative"),color:"var(--chart-secondary)",values:S.cumulative,kind:"line",axis:"right"}];return qt.jsxDEV("div",{className:"page",children:[qt.jsxDEV(ua,{title:s("gain.title"),description:c?s("gain.description-scoped",{project:c,window:s(L.windowKey)}):s("gain.description",{window:s(L.windowKey)}),actions:h.length>0&&qt.jsxDEV("select",{className:"input","aria-label":s("common.project"),value:c??"",onChange:(w)=>f(w.target.value||null),style:{maxWidth:320},children:[qt.jsxDEV("option",{value:"",children:s("gain.all-projects")},void 0,!1,void 0,this),h.map((w)=>qt.jsxDEV("option",{value:w,children:w},w,!1,void 0,this))]},void 0,!0,void 0,this)},void 0,!1,void 0,this),qt.jsxDEV(He,{query:p,skeleton:qt.jsxDEV(Mt,{height:96},void 0,!1,void 0,this),isEmpty:(w)=>w.overall.hits===0&&w.timeSeries.length===0,empty:qt.jsxDEV(Ue,{children:qt.jsxDEV(vt,{title:c?s("gain.empty-title-scoped",{project:c,window:s(L.windowKey)}):s("gain.empty-title",{window:s(L.windowKey)}),hint:i==="all"?s("gain.empty-hint-all"):s("gain.empty-hint-longer-range")},void 0,!1,void 0,this)},void 0,!1,void 0,this),children:({overall:w})=>qt.jsxDEV(qt.Fragment,{children:[qt.jsxDEV("div",{"data-stale":p.stale,children:qt.jsxDEV(oa,{min:180,children:[qt.jsxDEV(se,{label:s("gain.saved-tokens"),value:Ae(w.savedTokens),hint:B(w.savedTokens),spark:S.daily},void 0,!1,void 0,this),qt.jsxDEV(se,{label:s("gain.saved-bytes"),value:Kv(w.savedBytes)},void 0,!1,void 0,this),qt.jsxDEV(se,{label:s("gain.reduction"),title:s("gain.reduction-title"),value:w.reductionPercent!==null?Ve(w.reductionPercent):"–",hint:w.reductionPercent===null?s("gain.reduction-unknown"):void 0},void 0,!1,void 0,this),qt.jsxDEV(se,{label:s("gain.hits"),value:B(w.hits)},void 0,!1,void 0,this),qt.jsxDEV(se,{label:s("gain.saved-per-hit"),value:w.hits>0?Ae(w.savedTokens/w.hits):"–",hint:s("common.tokens")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),qt.jsxDEV(Ue,{index:1,title:s("gain.savings-over-time"),description:s("gain.savings-over-time-description"),actions:qt.jsxDEV(Va,{items:C.map((A)=>({key:A.key,label:A.label,color:A.color}))},void 0,!1,void 0,this),stale:p.stale,children:qt.jsxDEV(In,{slots:S.buckets.length,tickLabel:(A)=>gD.format(S.buckets[A]),series:C,height:260,formatTooltip:B,formatRight:Ae},void 0,!1,void 0,this)},void 0,!1,void 0,this),qt.jsxDEV(Ue,{index:2,title:s("gain.by-source"),description:s("gain.by-source-description"),flush:!0,stale:p.stale,children:qt.jsxDEV(Ht,{rows:v,rowKey:(A)=>A.source,columns:yD},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)}var yD=[{key:"source",header:s("gain.source"),sort:(l)=>l.source,render:(l)=>qt.jsxDEV("span",{className:"cell-primary",children:hD[l.source]},void 0,!1,void 0,this)},{key:"tokens",header:s("gain.saved-tokens"),align:"right",sort:(l)=>l.savedTokens,render:(l)=>qt.jsxDEV("span",{title:B(l.savedTokens),children:qt.jsxDEV(pa,{value:l.share,max:1,display:Ae(l.savedTokens)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"share",header:s("common.share"),align:"right",sort:(l)=>l.share,render:(l)=>qt.jsxDEV("span",{className:"num muted",children:Ve(l.share)},void 0,!1,void 0,this)},{key:"bytes",header:s("gain.saved-bytes"),align:"right",sort:(l)=>l.savedBytes,render:(l)=>qt.jsxDEV("span",{className:"num",children:Kv(l.savedBytes)},void 0,!1,void 0,this)},{key:"hits",header:s("gain.hits"),align:"right",sort:(l)=>l.hits,render:(l)=>qt.jsxDEV("span",{className:"num",children:B(l.hits)},void 0,!1,void 0,this)},{key:"reduction",header:s("gain.reduction"),align:"right",sort:(l)=>l.reductionPercent??-1,render:(l)=>qt.jsxDEV("span",{className:"num",children:l.reductionPercent!==null?Ve(l.reductionPercent):"–"},void 0,!1,void 0,this)}];var Ci=Z(gt(),1);var Le=Z(ie(),1),vD=[{value:"share",label:s("common.share")},{value:"requests",label:s("common.requests")}],bD=6;function hT({active:l,range:i}){let c=Gt(["models",i],({signal:D})=>n1(i,D),{enabled:l}),f=sa(i),[p,L]=Ci.useState("share"),[g,S]=un(),[v,x]=Ci.useState(null),h=Ci.useMemo(()=>c.data?xD(c.data,i):null,[c.data,i]),C=wD(f.bucketMs),w=Ci.useMemo(()=>h?LD(h,v,C):[],[h,v,C]),A=(D)=>D.byModel.length===0,k=Le.jsxDEV(vt,{title:s("models.empty-title"),hint:s("models.empty-hint")},void 0,!1,void 0,this);return Le.jsxDEV("div",{className:"page",children:[Le.jsxDEV(ua,{title:s("common.models"),description:s("models.subtitle",{window:s(f.windowKey)})},void 0,!1,void 0,this),Le.jsxDEV(He,{query:c,skeleton:Le.jsxDEV(Ba,{height:112,style:{borderRadius:12}},void 0,!1,void 0,this),isEmpty:A,empty:k,children:()=>h&&Le.jsxDEV("div",{"data-stale":c.stale,children:Le.jsxDEV(oa,{min:200,children:[Le.jsxDEV(se,{label:s("models.used"),value:B(h.models.length),hint:h.providerCount===1?s("models.across-providers-one",{count:B(h.providerCount)}):s("models.across-providers",{count:B(h.providerCount)})},void 0,!1,void 0,this),Le.jsxDEV(se,{label:s("models.most-used"),title:h.top?`${h.top.model} (${h.top.provider})`:void 0,value:h.top?h.top.model:"–",hint:h.top?s("models.most-used-hint",{share:Ve(h.top.totalRequests/Math.max(1,h.totalRequests)),provider:h.top.provider}):void 0},void 0,!1,void 0,this),Le.jsxDEV(se,{label:s("common.requests"),value:B(h.totalRequests),hint:s("models.failed-n",{count:B(h.failedRequests)}),spark:h.requestTotals},void 0,!1,void 0,this),Le.jsxDEV(se,{label:s("models.api-cost"),title:s("models.api-cost-title"),value:Ft(h.totalCost,h.unpricedRequests),hint:h.unpricedRequests>0?s("models.unpriced-n",{count:B(h.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),Le.jsxDEV(Ue,{index:1,title:s("models.request-share"),description:p==="share"?s("models.share-desc",{bucket:C}):s("models.count-desc",{bucket:C}),actions:Le.jsxDEV(Fa,{size:"sm",options:vD,value:p,onChange:L,"aria-label":s("models.share-mode-aria")},void 0,!1,void 0,this),stale:c.stale,children:Le.jsxDEV(He,{query:c,skeleton:Le.jsxDEV(Mt,{height:260},void 0,!1,void 0,this),isEmpty:A,empty:k,children:()=>h&&Le.jsxDEV("div",{className:"stack",style:{gap:12},children:[Le.jsxDEV(Rn,{buckets:h.buckets,bucketMs:f.bucketMs,series:p==="share"?h.shareSeries:h.countSeries,hidden:g,height:260,yMax:p==="share"?1:void 0,format:p==="share"?(D)=>Ve(D,0):Ae,formatTooltip:p==="share"?(D)=>Ve(D):B,showTotal:p==="requests"},void 0,!1,void 0,this),Le.jsxDEV(Va,{items:h.countSeries.map((D)=>({key:D.key,label:D.label,color:D.color,value:Ve(mT(D.values)/Math.max(1,mT(h.requestTotals)))})),hidden:g,onToggle:S},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(Ue,{index:2,title:s("models.all-models"),description:s("models.table-desc"),stale:c.stale,flush:!0,children:Le.jsxDEV(He,{query:c,skeleton:Le.jsxDEV(na,{rows:8},void 0,!1,void 0,this),isEmpty:A,empty:k,children:()=>h&&Le.jsxDEV(Ht,{rows:h.models,rowKey:(D)=>xa(D.model,D.provider),columns:w,initialSort:{key:"requests",dir:"desc"},limit:25,onRowClick:(D)=>{let M=xa(D.model,D.provider);x((U)=>U===M?null:M)},selectedKey:v,expanded:(D)=>{let M=xa(D.model,D.provider);return M===v?Le.jsxDEV(CD,{model:D,color:h.swatches.get(M)??"var(--chart-primary)",points:h.performance.get(M)??[],bucketMs:f.bucketMs,bucketWord:C},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 xD(l,i){let c=l.byModel,f=$m(c),p=SD(c),L=mo(i,l.modelSeries.map((M)=>M.timestamp)),g=La(l.modelSeries,L,(M)=>M.requests),S={buckets:L,key:(M)=>xa(M.model,M.provider),label:(M)=>p.get(M)??M,value:(M)=>M.requests,colors:f},v=yr(l.modelSeries,{...S,limit:bD}).map((M)=>({...M,values:M.values.map((U)=>U||null)})),x=v.map((M)=>({...M,values:M.values.map((U,_)=>U===null?null:U/g[_])})),h=new Map(yr(l.modelSeries,S).map((M)=>[M.key,M.values])),C,w=0,A=0,k=0,D=0;for(let M of c){if(!C||M.totalRequests>C.totalRequests)C=M;w+=M.totalRequests,A+=M.failedRequests,k+=M.totalCost,D+=M.unpricedRequests}return{models:c,top:C,swatches:new Map(v.filter((M)=>M.key!=="__other__").map((M)=>[M.key,M.color])),labels:p,providerCount:new Set(c.map((M)=>M.provider)).size,totalRequests:w,failedRequests:A,totalCost:k,unpricedRequests:D,maxRequests:C?.totalRequests??0,buckets:L,requestTotals:g,countSeries:v,shareSeries:x,trends:h,performance:tT(l.modelPerformanceSeries)}}function SD(l){let i=new Map;for(let c of l)i.set(c.model,(i.get(c.model)??0)+1);return new Map(l.map((c)=>[xa(c.model,c.provider),(i.get(c.model)??0)>1?`${c.model} · ${c.provider}`:c.model]))}function LD(l,i,c){return[{key:"expand",header:"",width:28,render:(f)=>Le.jsxDEV("span",{className:"models-chevron","data-open":xa(f.model,f.provider)===i,children:Le.jsxDEV(Cn,{size:14},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"model",header:s("common.model"),sort:(f)=>f.model,render:(f)=>Le.jsxDEV(Ga,{lead:Le.jsxDEV(wn,{color:l.swatches.get(xa(f.model,f.provider))??oo},void 0,!1,void 0,this),primary:Le.jsxDEV("span",{className:"mono",children:f.model},void 0,!1,void 0,this),secondary:f.provider},void 0,!1,void 0,this)},{key:"requests",header:s("common.requests"),align:"right",sort:(f)=>f.totalRequests,render:(f)=>Le.jsxDEV(pa,{value:f.totalRequests,max:l.maxRequests,display:B(f.totalRequests),color:l.swatches.get(xa(f.model,f.provider))??oo},void 0,!1,void 0,this)},{key:"cost",header:s("common.cost"),title:s("models.cost-title"),align:"right",sort:(f)=>f.totalCost,render:(f)=>Le.jsxDEV("span",{className:"num",children:Ft(f.totalCost,f.unpricedRequests)},void 0,!1,void 0,this)},{key:"tokens",header:s("common.tokens"),title:s("models.tokens-title"),align:"right",sort:(f)=>Kl(f),render:(f)=>{let p=Kl(f);return Le.jsxDEV("span",{className:"num",title:B(p),children:Ae(p)},void 0,!1,void 0,this)}},{key:"cache",header:s("models.cache-rate"),title:s("models.cache-title"),align:"right",sort:(f)=>f.cacheRate,render:(f)=>Le.jsxDEV("span",{className:"num",children:Ve(f.cacheRate)},void 0,!1,void 0,this)},{key:"errors",header:s("models.errors"),align:"right",sort:(f)=>f.errorRate,render:(f)=>f.failedRequests===0?Le.jsxDEV("span",{className:"num dim",children:"0%"},void 0,!1,void 0,this):Le.jsxDEV("span",{title:s("models.failed-n",{count:B(f.failedRequests)}),children:Le.jsxDEV(Ut,{tone:dr(f.errorRate),mono:!0,children:ao(f.errorRate)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"tps",header:s("common.tokens-per-second"),title:s("models.tps-title"),align:"right",sort:(f)=>f.avgTokensPerSecond??-1,render:(f)=>Le.jsxDEV("span",{className:"num",children:pr(f.avgTokensPerSecond)},void 0,!1,void 0,this)},{key:"ttft",header:s("models.ttft"),title:s("models.ttft-title"),align:"right",sort:(f)=>f.avgTtft??-1,render:(f)=>Le.jsxDEV("span",{className:"num",children:Dt(f.avgTtft)},void 0,!1,void 0,this)},{key:"trend",header:s("models.trend"),title:s("models.trend-title",{bucket:c}),width:112,render:(f)=>{let p=xa(f.model,f.provider),L=l.trends.get(p);return L?Le.jsxDEV(vi,{values:L.map((g)=>g??0),color:l.swatches.get(p)??oo,width:96,height:22},void 0,!1,void 0,this):Le.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this)}}]}function CD({model:l,color:i,points:c,bucketMs:f,bucketWord:p}){let[L,g]=un(),S=[{key:"tps",label:s("common.tokens-per-second"),color:i,kind:c.length>1?"line":"bars",values:c.map((v)=>v.avgTokensPerSecond)},{key:"ttft",label:s("models.ttft"),color:oo,kind:c.length>1?"line":"bars",axis:"right",dashed:!0,values:c.map((v)=>v.avgTtftSeconds)}];return Le.jsxDEV("div",{className:"models-detail",children:[Le.jsxDEV("div",{className:"models-detail-facts",children:[Le.jsxDEV("div",{children:[Le.jsxDEV("div",{className:"section-label",children:s("models.efficiency")},void 0,!1,void 0,this),Le.jsxDEV(Fo,{items:[{key:"err",label:s("common.error-rate"),value:Le.jsxDEV("span",{className:`tone-${dr(l.errorRate)}`,children:[ao(l.errorRate)," ",Le.jsxDEV("span",{className:"dim",children:["(",s("models.failed-n",{count:B(l.failedRequests)}),")"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},{key:"cache",label:s("models.cache-rate"),value:Ve(l.cacheRate)},{key:"savings",label:s("models.cache-savings"),value:Le.jsxDEV("span",{className:l.cacheSavings<0?"tone-bad":void 0,children:Ve(l.cacheSavings)},void 0,!1,void 0,this)},{key:"premium",label:s("common.premium-requests"),value:B(Math.round(l.totalPremiumRequests*100)/100)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Le.jsxDEV("div",{children:[Le.jsxDEV("div",{className:"section-label",children:s("models.latency")},void 0,!1,void 0,this),Le.jsxDEV(Fo,{items:[{key:"dur",label:s("models.avg-duration"),value:Dt(l.avgDuration)},{key:"ttft",label:s("models.avg-ttft"),value:Dt(l.avgTtft)},{key:"tps",label:s("common.tokens-per-second"),value:pr(l.avgTokensPerSecond)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Le.jsxDEV("div",{children:[Le.jsxDEV("div",{className:"section-label",children:s("common.tokens")},void 0,!1,void 0,this),Le.jsxDEV(Fo,{items:[{key:"in",label:s("models.uncached-input"),value:Ae(l.totalInputTokens)},{key:"cr",label:s("common.cache-read"),value:Ae(l.totalCacheReadTokens)},{key:"cw",label:s("common.cache-write"),value:Ae(l.totalCacheWriteTokens)},{key:"out",label:s("common.output"),value:Ae(l.totalOutputTokens)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Le.jsxDEV("div",{className:"micro dim",children:s("models.first-last-seen",{first:fa(l.firstTimestamp),last:fa(l.lastTimestamp)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Le.jsxDEV("div",{className:"models-detail-chart",children:[Le.jsxDEV("div",{className:"row",style:{justifyContent:"space-between"},children:[Le.jsxDEV("div",{className:"section-label",style:{marginBottom:0},children:s("models.performance-per-bucket",{bucket:p})},void 0,!1,void 0,this),Le.jsxDEV(Va,{items:S.map((v)=>({key:v.key,label:v.label,color:v.color})),hidden:L,onToggle:g},void 0,!1,void 0,this)]},void 0,!0,void 0,this),c.length===0?Le.jsxDEV(vt,{title:s("models.no-samples-title"),hint:s("models.no-samples-hint")},void 0,!1,void 0,this):Le.jsxDEV(Rn,{buckets:c.map((v)=>v.timestamp),bucketMs:f,series:S,hidden:L,stacked:!1,height:240,format:Ae,formatTooltip:(v)=>s("models.tok-per-second",{value:pr(v)}),formatRight:(v)=>`${Number(v.toFixed(2))}s`,tooltipExtra:(v)=>Le.jsxDEV("div",{className:"chart-tooltip-row chart-tooltip-total",children:[Le.jsxDEV("span",{className:"chart-tooltip-label",children:s("common.requests")},void 0,!1,void 0,this),Le.jsxDEV("span",{className:"chart-tooltip-value",children:B(c[v].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 wD(l){if(l<3600000)return s("models.bucket-5m");if(l<86400000)return s("models.bucket-hour");return s("models.bucket-day")}function mT(l){let i=0;for(let c of l)i+=c??0;return i}var Km=Z(gt(),1);var Ie=Z(ie(),1),kD=[{value:"requests",label:s("common.requests")},{value:"tokens",label:s("common.tokens")},{value:"cost",label:s("common.cost")}],gT={main:s("overview.main-agent"),subagent:s("overview.subagents"),advisor:s("overview.advisor")},yT={main:"var(--chart-primary)",subagent:"var(--chart-secondary)",advisor:"#9d7bff"},vT=[{key:"input",label:s("overview.uncached-input"),color:"#5b8cff"},{key:"cacheRead",label:s("common.cache-read"),color:"var(--chart-primary)"},{key:"cacheWrite",label:s("common.cache-write"),color:"#f5b54a"},{key:"output",label:s("common.output"),color:"var(--chart-secondary)"}];function bT({active:l,range:i,onRequestClick:c}){let f=Gt(["overview",i],({signal:h})=>o1(i,h),{enabled:l}),p=Gt(["recent-requests"],({signal:h})=>qm(12,h),{enabled:l}),[L,g]=Km.useState("requests"),S=sa(i),v=Km.useMemo(()=>{let h=f.data?.timeSeries??[],C=mo(i,h.map((w)=>w.timestamp));return{buckets:C,requests:La(h,C,(w)=>w.requests-w.errors),errors:La(h,C,(w)=>w.errors),tokens:La(h,C,(w)=>w.tokens),cost:La(h,C,(w)=>w.cost),all:La(h,C,(w)=>w.requests)}},[f.data,i]),x=L==="requests"?[{key:"ok",label:s("overview.succeeded"),color:"var(--chart-primary)",values:v.requests},{key:"err",label:s("common.failed"),color:"var(--bad)",values:v.errors}]:L==="tokens"?[{key:"tokens",label:s("common.tokens"),color:"var(--chart-primary)",values:v.tokens}]:[{key:"cost",label:s("overview.api-equivalent"),color:"var(--chart-secondary)",values:v.cost}];return Ie.jsxDEV("div",{className:"page",children:[Ie.jsxDEV(ua,{title:s("overview.title"),description:s("overview.description",{window:s(S.windowKey)})},void 0,!1,void 0,this),Ie.jsxDEV(He,{query:f,skeleton:Ie.jsxDEV(Mt,{height:112},void 0,!1,void 0,this),children:({overall:h})=>Ie.jsxDEV("div",{"data-stale":f.stale,className:"stack",style:{gap:16},children:[Ie.jsxDEV(oa,{min:190,children:[Ie.jsxDEV(se,{label:s("overview.api-equivalent-cost"),title:s("overview.api-cost-title"),value:Ft(h.totalCost,h.unpricedRequests),hint:h.unpricedRequests>0?s("overview.unpriced-n",{count:B(h.unpricedRequests)}):void 0,spark:v.cost,sparkColor:"var(--chart-secondary)"},void 0,!1,void 0,this),Ie.jsxDEV(se,{label:s("common.requests"),value:B(h.totalRequests),hint:s("overview.failed-n",{count:B(h.failedRequests)}),spark:v.all},void 0,!1,void 0,this),Ie.jsxDEV(se,{label:s("overview.conversation-tokens"),title:s("overview.tokens-title"),value:Ae(Kl(h)),hint:s("overview.output-n",{count:Ae(h.totalOutputTokens)}),spark:v.tokens},void 0,!1,void 0,this),Ie.jsxDEV(se,{label:s("overview.cache-rate"),title:s("overview.cache-rate-title"),value:Ve(h.cacheRate),hint:s("overview.cache-saved",{value:Ve(h.cacheSavings)})},void 0,!1,void 0,this),Ie.jsxDEV(se,{label:s("common.error-rate"),value:ao(h.errorRate),hint:s("overview.succeeded-n",{count:B(h.successfulRequests)}),spark:v.errors,sparkColor:"var(--bad)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ie.jsxDEV(oa,{min:140,children:[Ie.jsxDEV(se,{size:"sm",label:s("overview.uncached-input"),value:Ae(h.totalInputTokens)},void 0,!1,void 0,this),Ie.jsxDEV(se,{size:"sm",label:s("common.cache-read"),value:Ae(h.totalCacheReadTokens)},void 0,!1,void 0,this),Ie.jsxDEV(se,{size:"sm",label:s("common.cache-write"),value:Ae(h.totalCacheWriteTokens)},void 0,!1,void 0,this),Ie.jsxDEV(se,{size:"sm",label:s("common.output"),value:Ae(h.totalOutputTokens)},void 0,!1,void 0,this),Ie.jsxDEV(se,{size:"sm",label:s("common.premium-requests"),value:B(Math.round(h.totalPremiumRequests*100)/100)},void 0,!1,void 0,this),Ie.jsxDEV(se,{size:"sm",label:s("common.tokens-per-second"),value:pr(h.avgTokensPerSecond)},void 0,!1,void 0,this),Ie.jsxDEV(se,{size:"sm",label:s("overview.avg-latency"),value:Dt(h.avgDuration)},void 0,!1,void 0,this),Ie.jsxDEV(se,{size:"sm",label:s("overview.avg-ttft"),value:Dt(h.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),Ie.jsxDEV("div",{className:"grid grid-main-side",children:[Ie.jsxDEV(Ue,{index:1,title:s("overview.activity"),description:S.bucketMs<3600000?s("overview.per-5m"):S.bucketMs<86400000?s("overview.per-hour"):s("overview.per-day"),actions:Ie.jsxDEV(Fa,{size:"sm",options:kD,value:L,onChange:g},void 0,!1,void 0,this),stale:f.stale,children:Ie.jsxDEV(He,{query:f,skeleton:Ie.jsxDEV(Mt,{height:260},void 0,!1,void 0,this),children:()=>Ie.jsxDEV(Rn,{buckets:v.buckets,bucketMs:S.bucketMs,series:x,height:260,format:L==="cost"?(h)=>Ft(h,0):Ae},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ie.jsxDEV(Ue,{index:2,title:s("overview.token-mix"),description:s("overview.token-mix-description"),stale:f.stale,children:Ie.jsxDEV(He,{query:f,skeleton:Ie.jsxDEV(Mt,{height:260},void 0,!1,void 0,this),children:({overall:h,byAgentType:C})=>{let w={input:h.totalInputTokens,cacheRead:h.totalCacheReadTokens,cacheWrite:h.totalCacheWriteTokens,output:h.totalOutputTokens},A=Kl(h),k=J1(C);return Ie.jsxDEV("div",{className:"stack",style:{gap:18},children:[Ie.jsxDEV("div",{className:"stack",style:{gap:10},children:[Ie.jsxDEV(Ql,{segments:vT.map((D)=>({key:D.key,label:D.label,value:w[D.key],color:D.color}))},void 0,!1,void 0,this),Ie.jsxDEV(Va,{items:vT.map((D)=>({key:D.key,label:D.label,color:D.color,value:A>0?Ve(w[D.key]/A,0):"–"}))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ie.jsxDEV("div",{className:"stack",style:{gap:10},children:[Ie.jsxDEV("div",{className:"section-label",style:{marginBottom:0},children:s("overview.by-agent")},void 0,!1,void 0,this),Ie.jsxDEV(Ql,{segments:k.segments.map((D)=>({key:D.agentType,label:gT[D.agentType],value:D.tokens,color:yT[D.agentType]}))},void 0,!1,void 0,this),k.segments.map((D)=>Ie.jsxDEV("div",{className:"row",style:{justifyContent:"space-between"},children:[Ie.jsxDEV("span",{className:"row",children:[Ie.jsxDEV("span",{className:"swatch",style:{background:yT[D.agentType]}},void 0,!1,void 0,this),gT[D.agentType],Ie.jsxDEV("span",{className:"dim num",children:s("overview.requests-short",{count:B(D.requests)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ie.jsxDEV("span",{className:"row",children:[Ie.jsxDEV("span",{className:"dim num",children:Ae(D.tokens)},void 0,!1,void 0,this),Ie.jsxDEV("span",{className:"num",style:{minWidth:48,textAlign:"right"},children:Ve(D.share)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},D.agentType,!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)]},void 0,!0,void 0,this),Ie.jsxDEV(Ue,{index:3,title:Ie.jsxDEV(Ie.Fragment,{children:[Ie.jsxDEV(cr,{tone:"live",pulse:!0},void 0,!1,void 0,this)," ",s("overview.latest-requests")]},void 0,!0,void 0,this),description:s("overview.latest-requests-description"),actions:Ie.jsxDEV("a",{className:"btn","data-size":"sm","data-variant":"ghost",href:`#/requests?range=${i}`,children:[s("overview.all-requests")," ",Ie.jsxDEV(hd,{size:13},void 0,!1,void 0,this)]},void 0,!0,void 0,this),flush:!0,children:Ie.jsxDEV(He,{query:p,skeleton:Ie.jsxDEV(na,{rows:8},void 0,!1,void 0,this),children:(h)=>Ie.jsxDEV(Ht,{rows:h,rowKey:(C)=>C.id??`${C.sessionFile}:${C.entryId}`,onRowClick:(C)=>C.id!==void 0&&c(C.id),columns:TD,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)}var TD=[{key:"model",header:s("common.model"),render:(l)=>Ie.jsxDEV(Ga,{primary:l.model,secondary:l.provider},void 0,!1,void 0,this)},{key:"time",header:s("overview.when"),render:(l)=>Ie.jsxDEV("span",{className:"muted",children:fa(l.timestamp)},void 0,!1,void 0,this)},{key:"tokens",header:s("common.tokens"),align:"right",render:(l)=>Ie.jsxDEV("span",{className:"num",children:B(l.usage.totalTokens)},void 0,!1,void 0,this)},{key:"cost",header:s("common.cost"),align:"right",render:(l)=>Ie.jsxDEV("span",{className:"num",children:$l(l,4)},void 0,!1,void 0,this)},{key:"duration",header:s("common.duration"),align:"right",render:(l)=>Ie.jsxDEV("span",{className:"num",children:Dt(l.duration)},void 0,!1,void 0,this)},{key:"status",header:s("overview.status"),align:"right",render:(l)=>l.errorMessage?Ie.jsxDEV(Ut,{tone:"bad",children:s("common.failed")},void 0,!1,void 0,this):Ie.jsxDEV(Ut,{tone:"ok",children:s("overview.ok")},void 0,!1,void 0,this)}];var Mn=Z(gt(),1);var je=Z(ie(),1),ID=100,xT=8;function ST({active:l,range:i}){let c=Gt(["projects",i],({signal:D})=>p1(i,D),{enabled:l}),[f,p]=Mn.useState(""),[L,g]=Mn.useState(!0),S=Mn.useDeferredValue(f.trim().toLowerCase()),v=sa(i),x=Mn.useMemo(()=>aT(c.data??[]),[c.data]),h=Mn.useMemo(()=>L?x.rows.filter((D)=>!D.temporary):x.rows,[x,L]),C=Mn.useMemo(()=>S?h.filter((D)=>D.folder.toLowerCase().includes(S)):h,[h,S]),w=Mn.useMemo(()=>({cost:[...h].sort((D,M)=>M.totalCost-D.totalCost).slice(0,xT),requests:[...h].sort((D,M)=>M.totalRequests-D.totalRequests).slice(0,xT)}),[h]),A=je.jsxDEV(vt,{title:s(x.rows.length===0?"projects.empty-no-folders":"projects.empty-only-temporary")},void 0,!1,void 0,this),k=Mn.useMemo(()=>RD(x.maxRequests,x.maxCost),[x]);return je.jsxDEV("div",{className:"page",children:[je.jsxDEV(ua,{title:s("projects.title"),description:s("projects.description",{window:s(v.windowKey)})},void 0,!1,void 0,this),je.jsxDEV(He,{query:c,skeleton:je.jsxDEV(Mt,{height:96},void 0,!1,void 0,this),children:()=>je.jsxDEV("div",{"data-stale":c.stale,children:je.jsxDEV(oa,{min:180,children:[je.jsxDEV(se,{label:s("projects.folders"),value:B(x.rows.length),hint:x.temporaryCount>0?s("projects.temporary-n",{count:B(x.temporaryCount)}):void 0},void 0,!1,void 0,this),je.jsxDEV(se,{label:s("common.requests"),value:B(x.totalRequests),hint:s("projects.failed-n",{count:B(x.failedRequests)})},void 0,!1,void 0,this),je.jsxDEV(se,{label:s("projects.api-equivalent-cost"),title:s("projects.api-equivalent-cost-hint"),value:Ft(x.totalCost,x.unpricedRequests),hint:x.unpricedRequests>0?s("projects.unpriced-n",{count:B(x.unpricedRequests)}):void 0},void 0,!1,void 0,this),je.jsxDEV(se,{label:s("projects.conversation-tokens"),title:s("projects.conversation-tokens-hint"),value:Ae(x.conversationTokens)},void 0,!1,void 0,this),je.jsxDEV(se,{label:s("projects.cache-rate"),title:s("projects.cache-rate-hint-all"),value:Ve(x.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),je.jsxDEV("div",{className:"grid grid-2",children:[je.jsxDEV(Ue,{index:1,title:s("projects.top-by-cost"),description:s("projects.top-by-cost-description"),stale:c.stale,children:je.jsxDEV(He,{query:c,skeleton:je.jsxDEV(Mt,{height:236},void 0,!1,void 0,this),isEmpty:()=>w.cost.length===0,empty:A,children:()=>je.jsxDEV(eu,{items:w.cost.map((D)=>({key:D.folder,label:je.jsxDEV("span",{className:"mono",children:mr(D.folder)},void 0,!1,void 0,this),value:D.totalCost,display:`${Ft(D.totalCost,D.unpricedRequests)} · ${Ve(D.costShare)}`,color:"var(--chart-secondary)"})),onSelect:p},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),je.jsxDEV(Ue,{index:2,title:s("projects.top-by-requests"),description:s("projects.top-by-requests-description"),stale:c.stale,children:je.jsxDEV(He,{query:c,skeleton:je.jsxDEV(Mt,{height:236},void 0,!1,void 0,this),isEmpty:()=>w.requests.length===0,empty:A,children:()=>je.jsxDEV(eu,{items:w.requests.map((D)=>({key:D.folder,label:je.jsxDEV("span",{className:"mono",children:mr(D.folder)},void 0,!1,void 0,this),value:D.totalRequests,display:`${B(D.totalRequests)} · ${Ve(D.requestShare)}`})),onSelect:p},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),je.jsxDEV(Ue,{index:3,title:s("projects.folders"),description:c.data?C.length===x.rows.length?s("projects.folders-n",{count:B(x.rows.length)}):s("projects.folders-of-n",{count:B(C.length),total:B(x.rows.length)}):void 0,actions:je.jsxDEV(je.Fragment,{children:[x.temporaryCount>0&&je.jsxDEV("label",{className:"check",title:s("projects.hide-temporary-hint"),children:[je.jsxDEV("input",{type:"checkbox",checked:L,onChange:(D)=>g(D.target.checked)},void 0,!1,void 0,this),s("projects.hide-temporary",{count:B(x.temporaryCount)})]},void 0,!0,void 0,this),je.jsxDEV(fr,{value:f,onChange:p,placeholder:s("projects.filter-placeholder"),width:240},void 0,!1,void 0,this)]},void 0,!0,void 0,this),flush:!0,stale:c.stale,children:je.jsxDEV(He,{query:c,skeleton:je.jsxDEV(na,{rows:10},void 0,!1,void 0,this),children:()=>je.jsxDEV(Ht,{rows:C,rowKey:(D)=>D.folder,columns:k,initialSort:{key:"cost",dir:"desc"},limit:ID,dense:!0,empty:je.jsxDEV(vt,{title:s(x.rows.length===0?"projects.empty-no-folders":"projects.empty-no-match"),hint:x.rows.length===0?s("projects.hint-longer-range"):L&&x.temporaryCount>0?s("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 RD(l,i){return[{key:"folder",header:s("projects.folder"),sort:(c)=>c.folder,render:(c)=>je.jsxDEV("span",{className:"row projects-folder",title:c.folder||s("common.root"),children:[je.jsxDEV("span",{className:"mono truncate",children:mr(c.folder)},void 0,!1,void 0,this),c.temporary&&je.jsxDEV(Ut,{children:s("projects.temp")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"requests",header:s("common.requests"),align:"right",sort:(c)=>c.totalRequests,render:(c)=>je.jsxDEV("span",{title:s("projects.share-of-requests",{share:Ve(c.requestShare)}),children:je.jsxDEV(pa,{value:c.totalRequests,max:l,display:B(c.totalRequests)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"cost",header:s("common.cost"),title:s("projects.api-equivalent-cost-rates"),align:"right",sort:(c)=>c.totalCost,render:(c)=>je.jsxDEV("span",{title:s("projects.share-of-cost",{share:Ve(c.costShare)}),children:je.jsxDEV(pa,{value:c.totalCost,max:i,display:Ft(c.totalCost,c.unpricedRequests),color:"var(--chart-secondary)"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"tokens",header:s("common.tokens"),title:s("projects.conversation-tokens-hint"),align:"right",sort:(c)=>c.conversationTokens,render:(c)=>je.jsxDEV("span",{className:"num",title:B(c.conversationTokens),children:Ae(c.conversationTokens)},void 0,!1,void 0,this)},{key:"cacheRate",header:s("projects.cache-rate"),title:s("projects.cache-rate-hint"),align:"right",sort:(c)=>c.cacheRate,render:(c)=>je.jsxDEV("span",{className:"num",children:Ve(c.cacheRate)},void 0,!1,void 0,this)},{key:"cacheSavings",header:s("projects.cache-savings"),title:s("projects.cache-savings-hint"),align:"right",sort:(c)=>c.cacheSavings,render:(c)=>je.jsxDEV("span",{className:`num ${c.cacheSavings<0?"tone-bad":"muted"}`,children:Ve(c.cacheSavings)},void 0,!1,void 0,this)},{key:"errorRate",header:s("projects.errors"),align:"right",sort:(c)=>c.errorRate,render:(c)=>je.jsxDEV("span",{title:s("projects.failed-n",{count:B(c.failedRequests)}),children:je.jsxDEV(Ut,{tone:c.failedRequests>0?dr(c.errorRate):"neutral",mono:!0,children:ao(c.errorRate)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"duration",header:s("projects.avg-duration"),align:"right",sort:(c)=>c.avgDuration??-1,render:(c)=>je.jsxDEV("span",{className:"num",children:Dt(c.avgDuration)},void 0,!1,void 0,this)},{key:"last",header:s("projects.last-active"),align:"right",sort:(c)=>c.lastTimestamp,render:(c)=>je.jsxDEV("span",{className:"dim",children:fa(c.lastTimestamp)},void 0,!1,void 0,this)}]}var ho=Z(gt(),1);var ee=Z(ie(),1),AD=[{value:"tokens",label:s("common.tokens")},{value:"cost",label:s("common.cost"),title:s("providers.cost-title")},{value:"requests",label:s("common.requests")}],LT=6,CT=[{key:"input",label:s("ui.uncached-input"),color:"#5b8cff"},{key:"cacheRead",label:s("common.cache-read"),color:"var(--chart-primary)"},{key:"cacheWrite",label:s("common.cache-write"),color:"#f5b54a"},{key:"output",label:s("common.output"),color:"var(--chart-secondary)"}],wT=s("providers.snapshot-hint");function kT({active:l,range:i}){let c=Gt(["providers",i],({signal:_})=>g1(i,_),{enabled:l}),[f,p]=ho.useState("tokens"),[L,g]=un(),S=sa(i),v=Gt(["provider-windows",i],({signal:_})=>Gv(i,null,_),{enabled:l}),[x,h]=ho.useState(null),C=MD(v.data?.windowInsights??[],x),w=C?.provider??null,A=Gt(["provider-windows",i,w],({signal:_})=>Gv(i,w,_),{enabled:l&&w!==null}),k=ho.useMemo(()=>{let _=c.data?.providers??[],X=c.data?.series??[],Q=Ud(_.map((Y)=>({key:Y.provider,weight:Y.totalTokens}))),ce=mo(i,X.map((Y)=>Y.timestamp)),J={requests:0,failed:0,tokens:0,cost:0,unpriced:0};for(let Y of _)J.requests+=Y.totalRequests,J.failed+=Y.failedRequests,J.tokens+=Y.totalTokens,J.cost+=Y.totalCost,J.unpriced+=Y.unpricedRequests;let te=(Y)=>yr(X,{buckets:ce,key:(ae)=>ae.provider,value:Y,limit:LT,colors:Q}).map((ae)=>({...ae,values:ae.values.map((F)=>F||null)}));return{colors:Q,buckets:ce,totals:J,burn:{tokens:te((Y)=>Y.totalTokens),cost:te((Y)=>Y.cost),requests:te((Y)=>Y.requests)},spark:{tokens:La(X,ce,(Y)=>Y.totalTokens),cost:La(X,ce,(Y)=>Y.cost),requests:La(X,ce,(Y)=>Y.requests)},topProvider:_.reduce((Y,ae)=>Y===null||ae.totalTokens>Y.totalTokens?ae:Y,null)}},[c.data,i]),D=k.burn[f],M=f==="cost"?(_)=>da(_):Ae,U=k.totals;return ee.jsxDEV("div",{className:"page",children:[ee.jsxDEV(ua,{title:s("common.providers"),description:s("providers.description",{window:s(S.windowKey)})},void 0,!1,void 0,this),ee.jsxDEV(He,{query:c,skeleton:ee.jsxDEV(Mt,{height:112},void 0,!1,void 0,this),children:({providers:_})=>ee.jsxDEV("div",{"data-stale":c.stale,children:ee.jsxDEV(oa,{min:190,children:[ee.jsxDEV(se,{label:s("common.providers"),value:B(_.length),hint:k.topProvider?s("providers.most-tokens",{provider:k.topProvider.provider}):void 0},void 0,!1,void 0,this),ee.jsxDEV(se,{label:s("common.requests"),value:B(U.requests),hint:s("providers.failed-n",{count:B(U.failed)}),spark:k.spark.requests},void 0,!1,void 0,this),ee.jsxDEV(se,{label:s("common.tokens"),title:s("providers.tokens-title"),value:Ae(U.tokens),spark:k.spark.tokens},void 0,!1,void 0,this),ee.jsxDEV(se,{label:s("providers.api-equivalent-cost"),title:s("providers.api-cost-title"),value:Ft(U.cost,U.unpriced),hint:U.unpriced>0?s("providers.unpriced-n",{count:B(U.unpriced)}):void 0,spark:k.spark.cost,sparkColor:"var(--chart-secondary)"},void 0,!1,void 0,this),ee.jsxDEV(se,{label:s("common.error-rate"),value:ao(U.requests>0?U.failed/U.requests:0),hint:s("providers.succeeded-n",{count:B(U.requests-U.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),ee.jsxDEV(Ue,{index:1,title:s("providers.totals"),description:U.unpriced>0?s(U.unpriced===1?"providers.totals-description-unpriced-one":"providers.totals-description-unpriced-n",{count:B(U.unpriced)}):s("providers.totals-description"),flush:!0,stale:c.stale,children:ee.jsxDEV(He,{query:c,skeleton:ee.jsxDEV(na,{rows:6},void 0,!1,void 0,this),children:({providers:_})=>ee.jsxDEV(DD,{providers:_,colors:k.colors},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),ee.jsxDEV("div",{className:"grid grid-main-side",children:[ee.jsxDEV(Ue,{index:2,title:s("providers.burn"),description:f==="cost"&&U.unpriced>0?s("providers.burn-estimate-description",{bucket:S.bucketMs<86400000?s("providers.bucket-hour"):s("providers.bucket-day")}):s("providers.burn-description",{bucket:S.bucketMs<3600000?s("providers.bucket-5m"):S.bucketMs<86400000?s("providers.bucket-hour"):s("providers.bucket-day"),count:LT}),actions:ee.jsxDEV(Fa,{size:"sm",options:AD,value:f,onChange:p},void 0,!1,void 0,this),stale:c.stale,children:ee.jsxDEV(He,{query:c,skeleton:ee.jsxDEV(Mt,{height:260},void 0,!1,void 0,this),children:()=>ee.jsxDEV("div",{className:"stack",style:{gap:12},children:[ee.jsxDEV(Rn,{buckets:k.buckets,bucketMs:S.bucketMs,series:D,hidden:L,height:260,format:M,formatTooltip:f==="cost"?(_)=>da(_):B,emptyLabel:s("providers.no-provider-activity")},void 0,!1,void 0,this),ee.jsxDEV(Va,{items:D.map((_)=>({key:_.key,label:_.label,color:_.color,value:M(_.values.reduce((X,Q)=>X+(Q??0),0))})),hidden:L,onToggle:g},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),ee.jsxDEV(He,{query:c,skeleton:ee.jsxDEV(Mt,{height:320},void 0,!1,void 0,this),children:({hourly:_,providers:X})=>ee.jsxDEV(OD,{hourly:_,providers:X,stale:c.stale},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ee.jsxDEV(Ue,{index:4,title:s("providers.subscription-windows"),description:s("providers.subscription-windows-description"),flush:!0,stale:v.stale,children:ee.jsxDEV(He,{query:v,skeleton:ee.jsxDEV(na,{rows:6},void 0,!1,void 0,this),children:(_)=>ee.jsxDEV(qD,{insights:_.windowInsights,selected:C,onSelect:h},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),ee.jsxDEV(PD,{insights:v.data?.windowInsights??null,accounts:A,selected:C,onSelect:h},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function MD(l,i){if(i&&l.some((f)=>f.provider===i.provider&&f.windowKey===i.windowKey))return i;let c=i&&l.find((f)=>f.provider===i.provider)||l.reduce((f,p)=>f===void 0||p.fractionConsumed>f.fractionConsumed?p:f,void 0);return c?{provider:c.provider,windowKey:c.windowKey}:null}function DD({providers:l,colors:i}){let[c,f]=ho.useState(null),p=ho.useMemo(()=>{let L=0,g=0,S=0;for(let v of l)L=Math.max(L,v.totalRequests),g=Math.max(g,v.totalTokens),S+=v.totalTokens;return[{key:"provider",header:s("common.provider"),sort:(v)=>v.provider,render:(v)=>ee.jsxDEV("span",{className:"row",style:{gap:8},children:[ee.jsxDEV(wn,{color:i.get(v.provider)??oo},void 0,!1,void 0,this),ee.jsxDEV("span",{className:"mono cell-primary",children:v.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"requests",header:s("common.requests"),align:"right",sort:(v)=>v.totalRequests,render:(v)=>ee.jsxDEV(pa,{value:v.totalRequests,max:L,display:B(v.totalRequests)},void 0,!1,void 0,this)},{key:"errors",header:s("common.error-rate"),align:"right",sort:(v)=>v.totalRequests>0?v.failedRequests/v.totalRequests:0,render:(v)=>{let x=v.totalRequests>0?v.failedRequests/v.totalRequests:0;return ee.jsxDEV("span",{className:"row",style:{gap:8,justifyContent:"flex-end"},children:[ee.jsxDEV("span",{className:"num dim",children:B(v.failedRequests)},void 0,!1,void 0,this),ee.jsxDEV(Ut,{tone:v.failedRequests>0?dr(x):"neutral",mono:!0,children:ao(x)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}},{key:"models",header:s("common.models"),title:s("providers.models-title"),align:"right",sort:(v)=>v.models,render:(v)=>ee.jsxDEV("span",{className:"num",children:B(v.models)},void 0,!1,void 0,this)},{key:"tokens",header:s("common.tokens"),title:s("providers.tokens-title"),align:"right",sort:(v)=>v.totalTokens,render:(v)=>ee.jsxDEV(pa,{value:v.totalTokens,max:g,display:Ae(v.totalTokens),color:i.get(v.provider)},void 0,!1,void 0,this)},{key:"share",header:s("common.share"),title:s("providers.share-title"),align:"right",sort:(v)=>v.totalTokens,render:(v)=>ee.jsxDEV("span",{className:"num muted",children:Ve(S>0?v.totalTokens/S:0)},void 0,!1,void 0,this)},{key:"cost",header:s("common.cost"),title:s("providers.cost-title"),align:"right",sort:(v)=>v.totalCost,render:(v)=>ee.jsxDEV("span",{className:"num",title:v.unpricedRequests>0?s("providers.unpriced-n",{count:B(v.unpricedRequests)}):void 0,children:Ft(v.totalCost,v.unpricedRequests)},void 0,!1,void 0,this)},{key:"tps",header:s("common.tokens-per-second"),title:s("providers.tps-title"),align:"right",sort:(v)=>v.avgTokensPerSecond??-1,render:(v)=>ee.jsxDEV("span",{className:"num",children:pr(v.avgTokensPerSecond)},void 0,!1,void 0,this)},{key:"premium",header:s("common.premium"),title:s("providers.premium-title"),align:"right",sort:(v)=>v.totalPremiumRequests,render:(v)=>ee.jsxDEV("span",{className:v.totalPremiumRequests>0?"num":"num dim",children:B(Math.round(v.totalPremiumRequests*100)/100)},void 0,!1,void 0,this)}]},[l,i]);return ee.jsxDEV(Ht,{rows:l,rowKey:(L)=>L.provider,columns:p,initialSort:{key:"tokens",dir:"desc"},limit:12,selectedKey:c,onRowClick:(L)=>f((g)=>g===L.provider?null:L.provider),expanded:(L)=>L.provider===c?ee.jsxDEV(ED,{provider:L},void 0,!1,void 0,this):null,empty:ee.jsxDEV(vt,{title:s("providers.no-requests-in-range")},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function ED({provider:l}){let i={input:l.totalInputTokens,cacheRead:l.totalCacheReadTokens,cacheWrite:l.totalCacheWriteTokens,output:l.totalOutputTokens};return ee.jsxDEV("div",{className:"providers-mix",children:[ee.jsxDEV(Ql,{segments:CT.map((c)=>({key:c.key,label:c.label,value:i[c.key],color:c.color}))},void 0,!1,void 0,this),ee.jsxDEV(Va,{items:CT.map((c)=>({key:c.key,label:c.label,color:c.color,value:`${Ae(i[c.key])} · ${l.totalTokens>0?Ve(i[c.key]/l.totalTokens,0):"–"}`}))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var jd="";function OD({hourly:l,providers:i,stale:c}){let[f,p]=ho.useState(jd),L=f===jd||i.some((v)=>v.provider===f)?f:jd,g=ho.useMemo(()=>{let v=Array.from({length:24},()=>0),x=Array.from({length:24},()=>0),h=Array.from({length:24},()=>0);for(let k of l){if(L!==jd&&k.provider!==L)continue;v[k.hour]+=k.totalTokens,x[k.hour]+=k.outputTokens,h[k.hour]+=k.requests}let C=0;for(let k=1;k<24;k++)if(v[k]>v[C])C=k;let w=v[C]>0;return{series:[{key:"tokens",label:s("common.tokens"),color:"var(--chart-primary)",values:v.map((k,D)=>w&&D===C?null:k)},{key:"peak",label:s("providers.tokens-peak-hour"),color:"var(--chart-secondary)",values:v.map((k,D)=>w&&D===C?k:null)}],output:x,requests:h,peak:C,hasData:w}},[l,L]),S=(v)=>`${String(v).padStart(2,"0")}:00`;return ee.jsxDEV(Ue,{index:3,title:s("providers.peak-burn-hours"),description:g.hasData?s("providers.peak-hours-description",{hour:S(g.peak)}):s("providers.hours-description"),actions:ee.jsxDEV("select",{className:"input providers-select",value:L,onChange:(v)=>p(v.target.value),"aria-label":s("common.provider"),children:[ee.jsxDEV("option",{value:jd,children:s("providers.all-providers")},void 0,!1,void 0,this),i.map((v)=>ee.jsxDEV("option",{value:v.provider,children:v.provider},v.provider,!1,void 0,this))]},void 0,!0,void 0,this),stale:c,children:ee.jsxDEV(In,{slots:24,tickLabel:(v)=>String(v).padStart(2,"0"),tooltipTitle:(v)=>`${S(v)}–${S((v+1)%24)}`,series:g.series,height:260,showTotal:!1,formatTooltip:B,emptyLabel:s("providers.no-activity-in-range"),tooltipExtra:(v)=>ee.jsxDEV(ee.Fragment,{children:[ee.jsxDEV("div",{className:"chart-tooltip-row",children:[ee.jsxDEV("span",{className:"chart-tooltip-label",children:s("common.output")},void 0,!1,void 0,this),ee.jsxDEV("span",{className:"chart-tooltip-value",children:B(g.output[v])},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ee.jsxDEV("div",{className:"chart-tooltip-row",children:[ee.jsxDEV("span",{className:"chart-tooltip-label",children:s("common.requests")},void 0,!1,void 0,this),ee.jsxDEV("span",{className:"chart-tooltip-value",children:B(g.requests[v])},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 qD({insights:l,selected:i,onSelect:c}){return ee.jsxDEV(Ht,{rows:l,rowKey:(f)=>`${f.provider}::${f.windowKey}`,columns:ND,initialSort:{key:"consumed",dir:"desc"},limit:12,selectedKey:i?`${i.provider}::${i.windowKey}`:null,onRowClick:(f)=>c({provider:f.provider,windowKey:f.windowKey}),empty:ee.jsxDEV(vt,{title:s("providers.no-snapshots-in-range"),hint:wT},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var ND=[{key:"window",header:s("providers.window"),sort:(l)=>`${l.provider} ${l.windowKey}`,render:(l)=>ee.jsxDEV(Ga,{primary:l.windowKey,secondary:ee.jsxDEV("span",{className:"mono",children:l.provider},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"accounts",header:s("providers.accounts"),title:s("providers.accounts-title"),align:"right",sort:(l)=>l.accounts,render:(l)=>ee.jsxDEV("span",{className:"num",children:B(l.accounts)},void 0,!1,void 0,this)},{key:"cycles",header:s("providers.resets"),title:s("providers.resets-title"),align:"right",sort:(l)=>l.cycles,render:(l)=>ee.jsxDEV("span",{className:"num muted",children:B(l.cycles)},void 0,!1,void 0,this)},{key:"consumed",header:s("providers.windows-burned"),title:s("providers.windows-burned-title"),align:"right",sort:(l)=>l.fractionConsumed,render:(l)=>ee.jsxDEV("span",{className:"num",children:l.fractionConsumed.toFixed(2)},void 0,!1,void 0,this)},{key:"capacity",header:s("providers.tokens-per-window"),title:s("providers.tokens-per-window-title"),align:"right",sort:(l)=>l.estTokensPerWindow??-1,render:(l)=>l.estTokensPerWindow!==null?ee.jsxDEV("span",{className:"num",children:Ae(l.estTokensPerWindow)},void 0,!1,void 0,this):ee.jsxDEV("span",{className:"dim",title:s("providers.too-little-consumed"),children:"–"},void 0,!1,void 0,this)},{key:"peak",header:s("providers.peak-utilization"),title:s("providers.peak-utilization-title"),align:"right",sort:(l)=>l.peakConcurrentFraction,render:(l)=>{let i=l.accounts>0?l.peakConcurrentFraction/l.accounts:0;return ee.jsxDEV(pa,{value:l.peakConcurrentFraction,max:l.accounts,display:Ve(l.peakConcurrentFraction,0),color:i>=0.9?"var(--warn)":void 0},void 0,!1,void 0,this)}},{key:"ideal",header:s("providers.accounts-needed"),title:s("providers.accounts-needed-title"),align:"right",sort:(l)=>l.idealAccounts-l.accounts,render:(l)=>l.idealAccounts>l.accounts?ee.jsxDEV(Ut,{tone:"warn",mono:!0,children:s("providers.ideal-accounts",{ideal:B(l.idealAccounts),have:B(l.accounts)})},void 0,!1,void 0,this):ee.jsxDEV("span",{className:"num",children:B(l.idealAccounts)},void 0,!1,void 0,this)},{key:"exhausted",header:s("providers.exhaustions"),title:s("providers.exhaustions-title"),align:"right",sort:(l)=>l.exhaustedEvents,render:(l)=>l.exhaustedEvents>0?ee.jsxDEV(Ut,{tone:"warn",mono:!0,children:s("providers.exhausted-n",{count:B(l.exhaustedEvents)})},void 0,!1,void 0,this):ee.jsxDEV("span",{className:"num dim",children:"0"},void 0,!1,void 0,this)}],Zm=60000,Kr=60*Zm,Wm=24*Kr,BD=[5*Zm,15*Zm,30*Zm,Kr,2*Kr,3*Kr,6*Kr,12*Kr,Wm],zD=240,UD=6*Kr;function PD({insights:l,accounts:i,selected:c,onSelect:f}){let[p,L]=un(),g=ho.useMemo(()=>[...new Set((l??[]).map((k)=>k.provider))],[l]),S=ho.useMemo(()=>(l??[]).filter((k)=>k.provider===c?.provider).map((k)=>({key:k.windowKey,label:k.windowKey})),[l,c?.provider]),v=ho.useMemo(()=>(i.data?.usageSeries??[]).filter((k)=>k.provider===c?.provider),[i.data,c?.provider]),x=v.length===0&&(i.loading||i.stale),h=ho.useMemo(()=>{let k=new Map;for(let M of v){let U=k.get(M.accountLabel)??[];if(!U.includes(M.accountKey))U.push(M.accountKey);k.set(M.accountLabel,U)}let D=new Map;for(let[M,U]of k)U.sort(),U.forEach((_,X)=>D.set(_,U.length>1?`${M} #${X+1}`:M));return D},[v]),C=ho.useMemo(()=>_D(v.filter((k)=>k.windowKey===c?.windowKey),h),[v,h,c?.windowKey]),w=ho.useMemo(()=>{let k=new Map(C.series.map((D)=>[D.key,D.color]));return v.map((D)=>{let M=null,U=null;for(let Q of D.points){if(Q.usedFraction===null)continue;if(U=Math.max(U??0,Q.usedFraction),!M||Q.timestamp>=M.timestamp)M={fraction:Q.usedFraction,exhausted:Q.exhausted,timestamp:Q.timestamp}}let _=D.windowKey===c?.windowKey?k.get(D.accountKey)??null:null,X=h.get(D.accountKey)??D.accountLabel;return{series:D,name:X,color:_,latest:M,peak:U,samples:D.points.length}}).sort((D,M)=>Number(M.color!==null)-Number(D.color!==null)||D.series.windowKey.localeCompare(M.series.windowKey)||(M.latest?.fraction??-1)-(D.latest?.fraction??-1))},[v,h,C.series,c?.windowKey]),A=S.find((k)=>k.key===c?.windowKey)?.label;return ee.jsxDEV(Ue,{index:5,title:s("providers.utilization"),description:C.buckets.length>0?s("providers.utilization-description",{window:A??s("providers.window"),from:Qv(C.first),to:Qv(C.last)}):s("providers.utilization-description-plain"),actions:c&&ee.jsxDEV("div",{className:"row",style:{gap:6},children:[ee.jsxDEV("select",{className:"input providers-select",value:c.provider,onChange:(k)=>{let D=k.target.value,M=l?.find((U)=>U.provider===D);if(M)f({provider:D,windowKey:M.windowKey})},"aria-label":s("common.provider"),children:g.map((k)=>ee.jsxDEV("option",{value:k,children:k},k,!1,void 0,this))},void 0,!1,void 0,this),ee.jsxDEV("select",{className:"input providers-select",value:c.windowKey,onChange:(k)=>f({provider:c.provider,windowKey:k.target.value}),"aria-label":s("providers.window"),children:S.map((k)=>ee.jsxDEV("option",{value:k.key,children:k.label},k.key,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),stale:i.stale,children:l===null?ee.jsxDEV(Mt,{height:260},void 0,!1,void 0,this):c===null?ee.jsxDEV(vt,{title:s("providers.no-snapshots-in-range"),hint:wT},void 0,!1,void 0,this):ee.jsxDEV(He,{query:i,skeleton:ee.jsxDEV(Mt,{height:260},void 0,!1,void 0,this),children:()=>x?ee.jsxDEV(Mt,{height:260},void 0,!1,void 0,this):ee.jsxDEV("div",{className:"stack",style:{gap:16},children:[ee.jsxDEV("div",{className:"stack",style:{gap:12},children:[ee.jsxDEV(In,{slots:C.buckets.length,tickLabel:(k)=>Om(C.buckets[k],C.last-C.first>Wm?Wm:C.bucketMs),tooltipTitle:(k)=>Em(C.buckets[k],Kr),series:C.series,hidden:p,kind:"line",stacked:!1,height:260,yMax:Math.max(1,C.max),format:(k)=>Ve(k,0),formatTooltip:(k)=>Ve(k,1),references:[{value:1,label:"100%"}],emptyLabel:s("providers.no-utilization-readings"),tooltipExtra:(k)=>{let D=C.exhausted[k];return D.length>0?ee.jsxDEV("div",{className:"chart-tooltip-row",children:[ee.jsxDEV("span",{className:"chart-tooltip-label tone-bad",children:s("providers.exhausted")},void 0,!1,void 0,this),ee.jsxDEV("span",{className:"chart-tooltip-value",children:D.join(", ")},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null}},void 0,!1,void 0,this),C.series.length>1&&ee.jsxDEV(Va,{items:C.series.map((k)=>({key:k.key,label:k.label,color:k.color})),hidden:p,onToggle:L},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ee.jsxDEV("div",{className:"providers-accounts",children:ee.jsxDEV(Ht,{rows:w,rowKey:(k)=>`${k.series.windowKey}::${k.series.accountKey}`,columns:FD,limit:16,onRowClick:(k)=>f({provider:k.series.provider,windowKey:k.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 _D(l,i){let{POSITIVE_INFINITY:c,NEGATIVE_INFINITY:f}=Number;for(let A of l)for(let k of A.points){if(k.timestamp<c)c=k.timestamp;if(k.timestamp>f)f=k.timestamp}if(!(f>=c))return{buckets:[],bucketMs:Kr,first:0,last:0,max:0,series:[],exhausted:[]};let p=f-c,L=BD.find((A)=>p/A<zD)??Wm,g=mo("all",[c],L,f),S=(A)=>Math.floor((A-g[0])/L),v=g.map(()=>[]),x=0,h=(A)=>i.get(A.accountKey)??A.accountLabel,w=[...l].sort((A,k)=>h(A).localeCompare(h(k))).map((A,k)=>{let D=g.map(()=>null),M=g.map(()=>0);for(let X of A.points){let Q=S(X.timestamp);if(Q<0||Q>=g.length)continue;if(X.exhausted&&!v[Q].includes(h(A)))v[Q].push(h(A));if(X.usedFraction===null||X.timestamp<M[Q])continue;D[Q]=X.usedFraction,M[Q]=X.timestamp,x=Math.max(x,X.usedFraction)}let U=null,_=0;for(let X=0;X<g.length;X++)if(D[X]!==null)U=D[X],_=M[X];else if(U!==null&&g[X]-_<=UD)D[X]=U;return{key:A.accountKey,label:h(A),color:Ma[k%Ma.length],values:D}});return{buckets:g,bucketMs:L,first:c,last:f,max:x,series:w,exhausted:v}}function HD(l){if(!l)return ee.jsxDEV("span",{className:"dim",children:s("providers.no-reading")},void 0,!1,void 0,this);if(l.exhausted)return ee.jsxDEV(Ut,{tone:"bad",children:s("providers.exhausted")},void 0,!1,void 0,this);if(l.fraction>=0.8)return ee.jsxDEV(Ut,{tone:"warn",children:s("providers.high")},void 0,!1,void 0,this);return ee.jsxDEV(Ut,{tone:"ok",children:s("ui.status-ok")},void 0,!1,void 0,this)}var FD=[{key:"account",header:s("providers.account"),sort:(l)=>l.name,render:(l)=>ee.jsxDEV("span",{className:"row",style:{gap:8},children:[ee.jsxDEV("span",{className:"providers-swatch-slot",children:l.color&&ee.jsxDEV(wn,{color:l.color},void 0,!1,void 0,this)},void 0,!1,void 0,this),ee.jsxDEV("span",{className:"truncate providers-account",title:l.series.accountKey,children:l.name},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"window",header:s("providers.window"),sort:(l)=>l.series.windowKey,render:(l)=>ee.jsxDEV("span",{className:l.color?void 0:"muted",children:l.series.windowKey},void 0,!1,void 0,this)},{key:"latest",header:s("providers.latest-used"),align:"right",sort:(l)=>l.latest?.fraction??-1,render:(l)=>l.latest?ee.jsxDEV(pa,{value:l.latest.fraction,max:1,display:Ve(l.latest.fraction,0),color:l.latest.exhausted?"var(--bad)":l.latest.fraction>=0.8?"var(--warn)":"var(--ok)"},void 0,!1,void 0,this):ee.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this)},{key:"status",header:s("providers.status"),sort:(l)=>l.latest?.exhausted?2:(l.latest?.fraction??0)>=0.8?1:0,render:(l)=>HD(l.latest)},{key:"peak",header:s("providers.peak-in-range"),align:"right",sort:(l)=>l.peak??-1,render:(l)=>ee.jsxDEV("span",{className:"num",children:l.peak===null?"–":Ve(l.peak,0)},void 0,!1,void 0,this)},{key:"samples",header:s("providers.snapshots"),align:"right",sort:(l)=>l.samples,render:(l)=>ee.jsxDEV("span",{className:"num muted",children:B(l.samples)},void 0,!1,void 0,this)},{key:"recorded",header:s("providers.recorded"),align:"right",sort:(l)=>l.latest?.timestamp??0,render:(l)=>ee.jsxDEV("span",{className:"muted",children:l.latest?fa(l.latest.timestamp):"–"},void 0,!1,void 0,this)}];var nu=Z(gt(),1);var ot=Z(ie(),1),Jm={ok:{label:s("ui.status-ok"),tone:"ok"},aborted:{label:s("common.aborted"),tone:"warn"},failed:{label:s("common.failed"),tone:"bad"}};function TT({id:l,onClose:i}){let c=Gt(["request",l],({signal:L})=>s1(l??0,L),{enabled:l!==null}),f=c.stale?null:c.data,p=f?Jm[$r(f)]:null;return ot.jsxDEV(Um,{open:l!==null,onClose:i,width:620,title:f?ot.jsxDEV("span",{className:"mono",children:f.model},void 0,!1,void 0,this):s("common.request"),subtitle:f?ot.jsxDEV(ot.Fragment,{children:[f.provider," ·"," ",ot.jsxDEV("span",{title:sn(f.timestamp),children:fa(f.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this):l!==null?ot.jsxDEV("span",{className:"mono",children:["#",l]},void 0,!0,void 0,this):void 0,actions:f&&p?ot.jsxDEV("div",{className:"row",style:{gap:6},children:[ot.jsxDEV("a",{className:"btn","data-size":"sm","data-variant":"ghost",href:Xm({...zd(window.location.hash),section:"traces",session:f.sessionFile}),onClick:i,title:s("ui.open-trace"),children:[ot.jsxDEV(Ld,{size:13},void 0,!1,void 0,this)," Trace"]},void 0,!0,void 0,this),ot.jsxDEV(Ut,{tone:p.tone,children:p.label},void 0,!1,void 0,this)]},void 0,!0,void 0,this):void 0,children:f?ot.jsxDEV(GD,{details:f,aborted:$r(f)==="aborted"},void 0,!1,void 0,this):c.error?ot.jsxDEV(xi,{error:c.error,onRetry:c.refetch},void 0,!1,void 0,this):ot.jsxDEV("div",{className:"stack",style:{gap:12},children:[ot.jsxDEV(Ba,{height:56},void 0,!1,void 0,this),ot.jsxDEV(Ba,{height:120},void 0,!1,void 0,this),ot.jsxDEV(Ba,{height:120},void 0,!1,void 0,this),ot.jsxDEV(Ba,{height:220},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function GD({details:l,aborted:i}){let{usage:c}=l,f=l.duration!==null&&l.duration>0&&c.output>0?c.output*1000/l.duration:null,{messages:p,output:L,...g}=l;return ot.jsxDEV(ot.Fragment,{children:[l.errorMessage&&ot.jsxDEV("section",{className:"request-drawer-error","data-tone":i?"warn":"bad",role:"note",children:[ot.jsxDEV("div",{className:"request-drawer-error-label",children:i?s("common.aborted"):s("common.error")},void 0,!1,void 0,this),ot.jsxDEV("pre",{className:"request-drawer-error-text",children:l.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ot.jsxDEV("section",{children:[ot.jsxDEV("div",{className:"section-label",children:s("ui.section-timing")},void 0,!1,void 0,this),ot.jsxDEV(Fo,{items:[{key:"at",label:s("common.started"),value:sn(l.timestamp)},{key:"duration",label:s("common.duration"),value:Dt(l.duration)},{key:"ttft",label:s("ui.time-to-first-token"),value:Dt(l.ttft)},{key:"tps",label:s("common.output-tokens-per-second"),value:pr(f)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ot.jsxDEV("section",{children:[ot.jsxDEV("div",{className:"section-label",children:s("common.tokens")},void 0,!1,void 0,this),ot.jsxDEV(Fo,{items:[{key:"input",label:s("ui.uncached-input"),value:B(c.input)},{key:"cacheRead",label:s("common.cache-read"),value:B(c.cacheRead)},{key:"cacheWrite",label:s("common.cache-write"),value:B(c.cacheWrite)},{key:"output",label:s("common.output"),value:B(c.output)},{key:"total",label:s("common.total"),value:B(c.totalTokens)},{key:"premium",label:s("common.premium-requests"),value:B(Math.round((c.premiumRequests??0)*100)/100)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ot.jsxDEV("section",{children:[ot.jsxDEV("div",{className:"section-label",children:s("ui.section-cost")},void 0,!1,void 0,this),ot.jsxDEV(Fo,{items:[{key:"total",label:"Total",value:$l(l,4)},{key:"input",label:s("common.input"),value:da(c.cost.input,4)},{key:"cacheRead",label:"Cache read",value:da(c.cost.cacheRead,4)},{key:"cacheWrite",label:"Cache write",value:da(c.cost.cacheWrite,4)},{key:"output",label:"Output",value:da(c.cost.output,4)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ot.jsxDEV("section",{children:[ot.jsxDEV("div",{className:"section-label",children:s("ui.section-identity")},void 0,!1,void 0,this),ot.jsxDEV(Fo,{items:[{key:"id",label:s("common.request-id"),value:l.id??"–"},{key:"entry",label:s("common.entry-id"),value:l.entryId},{key:"stop",label:s("ui.stop-reason"),value:l.stopReason},{key:"api",label:"API",value:l.api},{key:"project",label:s("common.project"),value:ot.jsxDEV("span",{title:l.folder,children:mr(l.folder)},void 0,!1,void 0,this)}]},void 0,!1,void 0,this),ot.jsxDEV("div",{className:"request-drawer-file",children:[ot.jsxDEV("span",{className:"kv-key",children:s("ui.session-file")},void 0,!1,void 0,this),ot.jsxDEV("span",{className:"kv-value",children:l.sessionFile},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),L!=null&&ot.jsxDEV(hi,{data:L,title:s("common.output-message")},void 0,!1,void 0,this),ot.jsxDEV(hi,{data:p,title:s("common.session-entry"),initialCollapsed:!0},void 0,!1,void 0,this),ot.jsxDEV(hi,{data:g,title:s("ui.stats-row"),initialCollapsed:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var We=Z(ie(),1),ib=[500,2000,1e4];function IT({active:l,range:i,onRequestClick:c}){let[f,p]=nu.useState(0),L=ib[f],g=Gt(["requests-log",L],({signal:Q})=>qm(L,Q),{enabled:l}),[S,v]=nu.useState(""),[x,h]=nu.useState("all"),C=sa(i),w=nu.useMemo(()=>{let Q=g.data??[],ce=C.spanMs===null?null:Date.now()-C.spanMs,J=ce===null?Q:Q.filter((ae)=>ae.timestamp>=ce),te=!g.stale&&(Q.length<L||ce!==null&&J.length<Q.length),Y={all:J.length,ok:0,aborted:0,failed:0};for(let ae of J)Y[$r(ae)]++;return{loaded:Q.length,inRange:J,complete:te,counts:Y,summary:nT(J)}},[g.data,g.stale,L,C.spanMs]),A=nu.useMemo(()=>{let Q=S.trim().toLowerCase();return w.inRange.filter((ce)=>(x==="all"||$r(ce)===x)&&(Q===""||ce.model.toLowerCase().includes(Q)||ce.provider.toLowerCase().includes(Q)||ce.folder.toLowerCase().includes(Q)))},[w.inRange,S,x]),{summary:k,counts:D,complete:M}=w,U=f+1<ib.length?ib[f+1]:null,_=U!==null?We.jsxDEV("button",{type:"button",className:"btn","data-size":"sm",disabled:g.refreshing,onClick:()=>p(f+1),children:g.refreshing&&g.stale?s("requests.loading"):s("requests.load-latest",{count:B(U)})},void 0,!1,void 0,this):void 0,X=["all","ok","aborted","failed"].map((Q)=>({value:Q,label:We.jsxDEV(We.Fragment,{children:[Q==="all"?s("requests.status-all"):Jm[Q].label," ",We.jsxDEV("span",{className:"dim num",children:Ae(D[Q])},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}));return We.jsxDEV("div",{className:"page",children:[We.jsxDEV(ua,{title:s("common.requests"),description:s("requests.description",{window:s(C.windowKey)})},void 0,!1,void 0,this),We.jsxDEV(He,{query:g,skeleton:We.jsxDEV(Ba,{height:96,style:{borderRadius:12}},void 0,!1,void 0,this),children:()=>We.jsxDEV("div",{"data-stale":g.stale,children:We.jsxDEV(oa,{min:160,children:[We.jsxDEV(se,{label:s("common.requests"),value:B(k.requests),hint:k.oldest===null?s("requests.none-in-window",{window:s(C.windowKey)}):s("requests.since",{time:fa(k.oldest)})},void 0,!1,void 0,this),We.jsxDEV(se,{label:s("common.failed"),value:B(k.failed),hint:s("requests.failed-hint",{rate:k.requests>0?ao(k.failed/k.requests):"–",count:B(k.aborted)})},void 0,!1,void 0,this),We.jsxDEV(se,{label:s("common.tokens"),title:s("requests.tokens-hint"),value:Ae(k.tokens)},void 0,!1,void 0,this),We.jsxDEV(se,{label:s("requests.api-equivalent-cost"),title:s("requests.cost-hint"),value:Ft(k.cost,k.unpriced),hint:k.unpriced>0?s("requests.unpriced-n",{count:B(k.unpriced)}):void 0},void 0,!1,void 0,this),We.jsxDEV(se,{label:s("requests.median-duration"),value:Dt(k.medianDuration),hint:s("requests.p95",{value:Dt(k.p95Duration)})},void 0,!1,void 0,this),We.jsxDEV(se,{label:s("requests.median-ttft"),title:s("requests.ttft-hint"),value:Dt(k.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),We.jsxDEV(Ue,{index:1,title:s("requests.log-title"),description:g.data===null?s("requests.log-loading"):M?s("requests.log-count-in-window",{shown:B(A.length),total:B(k.requests),window:s(C.windowKey)}):s("requests.log-count-latest",{shown:B(A.length),total:B(k.requests)}),actions:We.jsxDEV(We.Fragment,{children:[We.jsxDEV(fr,{value:S,onChange:v,placeholder:s("requests.search-placeholder")},void 0,!1,void 0,this),We.jsxDEV(Fa,{size:"sm","aria-label":s("requests.status"),options:X,value:x,onChange:h},void 0,!1,void 0,this)]},void 0,!0,void 0,this),flush:!0,stale:g.stale,footer:g.data!==null&&!M?We.jsxDEV(We.Fragment,{children:[We.jsxDEV("span",{children:s("requests.footer",{count:B(w.loaded),time:k.oldest===null?"–":sn(k.oldest),window:s(C.windowKey)})},void 0,!1,void 0,this),_]},void 0,!0,void 0,this):void 0,children:We.jsxDEV(He,{query:g,skeleton:We.jsxDEV(na,{rows:12},void 0,!1,void 0,this),children:()=>We.jsxDEV(Ht,{rows:A,rowKey:(Q)=>Q.id??`${Q.sessionFile}:${Q.entryId}`,onRowClick:(Q)=>Q.id!==void 0&&c(Q.id),columns:VD,initialSort:{key:"time",dir:"desc"},limit:100,dense:!0,empty:We.jsxDEV(vt,{title:k.requests===0?s("requests.empty-in-window",{window:s(C.windowKey)}):s("requests.empty-no-match"),hint:k.requests===0?void 0:s("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)}var VD=[{key:"model",header:s("common.model"),sort:(l)=>l.model,render:(l)=>We.jsxDEV(Ga,{primary:We.jsxDEV("span",{className:"mono",children:l.model},void 0,!1,void 0,this),secondary:l.provider},void 0,!1,void 0,this)},{key:"time",header:s("requests.when"),sort:(l)=>l.timestamp,render:(l)=>We.jsxDEV("span",{className:"muted",title:sn(l.timestamp),children:fa(l.timestamp)},void 0,!1,void 0,this)},{key:"project",header:s("common.project"),sort:(l)=>l.folder,render:(l)=>We.jsxDEV("span",{className:"mono muted truncate",title:l.folder,style:{display:"block",maxWidth:180},children:mr(l.folder)},void 0,!1,void 0,this)},{key:"input",header:s("common.input"),title:s("requests.uncached-input"),align:"right",sort:(l)=>l.usage.input,render:(l)=>We.jsxDEV("span",{className:"num",children:Ae(l.usage.input)},void 0,!1,void 0,this)},{key:"cache",header:s("common.cache-read"),title:s("requests.cache-read-title"),align:"right",sort:(l)=>l.usage.cacheRead,render:(l)=>We.jsxDEV("span",{className:"num",title:s("requests.cache-write",{count:B(l.usage.cacheWrite)}),children:Ae(l.usage.cacheRead)},void 0,!1,void 0,this)},{key:"output",header:s("common.output"),align:"right",sort:(l)=>l.usage.output,render:(l)=>We.jsxDEV("span",{className:"num",children:Ae(l.usage.output)},void 0,!1,void 0,this)},{key:"cost",header:s("common.cost"),title:s("requests.cost-estimate"),align:"right",sort:(l)=>l.usage.cost.total,render:(l)=>We.jsxDEV("span",{className:"num",children:$l(l,4)},void 0,!1,void 0,this)},{key:"duration",header:s("common.duration"),align:"right",sort:(l)=>l.duration??-1,render:(l)=>We.jsxDEV("span",{className:"num",children:Dt(l.duration)},void 0,!1,void 0,this)},{key:"ttft",header:s("requests.ttft"),title:s("requests.ttft-hint"),align:"right",sort:(l)=>l.ttft??-1,render:(l)=>We.jsxDEV("span",{className:"num muted",children:Dt(l.ttft)},void 0,!1,void 0,this)},{key:"status",header:s("requests.status"),sort:(l)=>$r(l),render:(l)=>{let i=Jm[$r(l)];return We.jsxDEV("span",{title:l.errorMessage??void 0,children:We.jsxDEV(Ga,{lead:We.jsxDEV(cr,{tone:i.tone},void 0,!1,void 0,this),primary:i.label,secondary:We.jsxDEV("span",{className:"mono",children:l.stopReason},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}}];var lu=Z(gt(),1);var ge=Z(ie(),1),jD=[{value:"calls",label:s("tools.calls")},{value:"errors",label:s("tools.errors")}],RT=6,ru=s("tools.attribution-note");function XD(l){if(l<3600000)return s("tools.bucket-5m");if(l<86400000)return s("tools.bucket-hour");return s("tools.bucket-day")}var cb=ge.jsxDEV(vt,{title:s("tools.no-tool-calls")},void 0,!1,void 0,this);function AT({active:l,range:i}){let c=Gt(["tools",i],({signal:k})=>h1(i,k),{enabled:l}),[f,p]=lu.useState("calls"),[L,g]=un(),[S,v]=lu.useState(null),x=sa(i),h=lu.useMemo(()=>YD(c.data,i),[c.data,i]),C=S!==null&&h.toolNames.includes(S)?S:null,w=f==="calls"?h.callSeries:h.errorSeries,A=(k)=>k.byTool.length===0;return ge.jsxDEV("div",{className:"page",children:[ge.jsxDEV(ua,{title:s("tools.title"),description:s("tools.description",{window:s(x.windowKey)})},void 0,!1,void 0,this),ge.jsxDEV(He,{query:c,skeleton:ge.jsxDEV(Mt,{height:112},void 0,!1,void 0,this),children:()=>{let k=h.totals;return ge.jsxDEV("div",{"data-stale":c.stale,className:"stack",style:{gap:16},children:[ge.jsxDEV(oa,{min:190,children:[ge.jsxDEV(se,{label:s("tools.tool-calls"),value:B(k.calls),hint:s("tools.failed-n",{count:B(k.errors)}),spark:h.totalCalls},void 0,!1,void 0,this),ge.jsxDEV(se,{label:s("tools.distinct-tools"),value:B(k.tools),hint:h.rows[0]?s("tools.most-used",{tool:h.rows[0].tool}):void 0},void 0,!1,void 0,this),ge.jsxDEV(se,{label:s("common.error-rate"),title:s("tools.error-rate-title"),value:ao(k.calls>0?k.errors/k.calls:0),hint:s("tools.succeeded-n",{count:B(k.calls-k.errors)}),spark:h.totalErrors,sparkColor:"var(--bad)"},void 0,!1,void 0,this),ge.jsxDEV(se,{label:s("tools.attributed-tokens"),title:ru,value:Ae(Math.round(k.tokens)),hint:s("tools.tokens-output",{tokens:Ae(Math.round(k.output))})},void 0,!1,void 0,this),ge.jsxDEV(se,{label:s("tools.attributed-cost"),title:s("tools.attribution-estimate",{note:ru}),value:Ft(k.cost,k.unpriced),hint:k.unpriced>0?s("tools.unpriced-requests-n",{count:B(Math.round(k.unpriced))}):s("tools.api-equivalent")},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ge.jsxDEV(oa,{min:150,children:[ge.jsxDEV(se,{size:"sm",label:s("tools.result-text"),title:s("tools.result-chars-title"),value:s("tools.chars",{count:Ae(k.resultChars)})},void 0,!1,void 0,this),ge.jsxDEV(se,{size:"sm",label:s("tools.call-arguments"),title:s("tools.args-chars-title"),value:s("tools.chars",{count:Ae(k.argsChars)})},void 0,!1,void 0,this),ge.jsxDEV(se,{size:"sm",label:s("tools.avg-result-per-call"),value:s("tools.chars",{count:Ae(k.calls>0?Math.round(k.resultChars/k.calls):0)})},void 0,!1,void 0,this),ge.jsxDEV(se,{size:"sm",label:s("tools.avg-args-per-call"),value:s("tools.chars",{count:Ae(k.calls>0?Math.round(k.argsChars/k.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),ge.jsxDEV(Ue,{index:1,title:f==="calls"?s("tools.calls-over-time"):s("tools.errors-over-time"),description:s("tools.chart-description",{bucket:XD(x.bucketMs),count:RT}),actions:ge.jsxDEV(Fa,{size:"sm",options:jD,value:f,onChange:p},void 0,!1,void 0,this),stale:c.stale,children:ge.jsxDEV(He,{query:c,skeleton:ge.jsxDEV(Mt,{height:260},void 0,!1,void 0,this),isEmpty:A,empty:cb,children:()=>ge.jsxDEV("div",{className:"stack",style:{gap:12},children:[ge.jsxDEV(Rn,{buckets:h.buckets,bucketMs:x.bucketMs,series:w,hidden:L,height:260,formatTooltip:B,emptyLabel:f==="errors"?s("tools.no-tool-errors"):void 0},void 0,!1,void 0,this),ge.jsxDEV(Va,{items:w.map((k)=>({key:k.key,label:k.label,color:k.color,value:Ae(k.values.reduce((D,M)=>D+(M??0),0))})),hidden:L,onToggle:g},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),ge.jsxDEV(Ue,{index:2,title:s("tools.by-tool"),description:s("tools.by-tool-description",{note:ru}),flush:!0,stale:c.stale,children:ge.jsxDEV(He,{query:c,skeleton:ge.jsxDEV(na,{rows:8},void 0,!1,void 0,this),isEmpty:A,empty:cb,children:()=>ge.jsxDEV(Ht,{rows:h.rows,rowKey:(k)=>k.tool,columns:h.toolColumns,initialSort:{key:"calls",dir:"desc"},limit:20,selectedKey:C,onRowClick:(k)=>v((D)=>D===k.tool?null:k.tool),dense:!0},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),ge.jsxDEV(Ue,{index:3,title:s("tools.by-tool-and-model"),description:s("tools.by-tool-and-model-description"),flush:!0,stale:c.stale,actions:ge.jsxDEV("div",{className:"row",style:{gap:6},children:[ge.jsxDEV("select",{className:"input tools-filter",value:C??"",onChange:(k)=>v(k.target.value||null),"aria-label":s("tools.filter-by-tool"),children:[ge.jsxDEV("option",{value:"",children:s("tools.all-tools")},void 0,!1,void 0,this),h.toolNames.map((k)=>ge.jsxDEV("option",{value:k,children:k},k,!1,void 0,this))]},void 0,!0,void 0,this),C!==null&&ge.jsxDEV("button",{type:"button",className:"btn","data-size":"sm","data-variant":"ghost","data-icon":"true",title:s("tools.clear-tool-filter"),"aria-label":s("tools.clear-tool-filter"),onClick:()=>v(null),children:ge.jsxDEV(rn,{size:13},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:ge.jsxDEV(He,{query:c,skeleton:ge.jsxDEV(na,{rows:8},void 0,!1,void 0,this),isEmpty:A,empty:cb,children:(k)=>ge.jsxDEV(QD,{rows:k.byToolModel,tool:C,colors:h.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 YD(l,i){let c=l?.byTool??[],f=l?.series??[],p=oT(c).sort((A,k)=>k.calls-A.calls),L=Ud(c.map((A)=>({key:A.tool,weight:A.calls}))),g=mo(i,f.map((A)=>A.timestamp)),S={calls:0,errors:0,tools:c.length,tokens:0,output:0,cost:0,unpriced:0,resultChars:0,argsChars:0};for(let A of c)S.calls+=A.calls,S.errors+=A.errors,S.tokens+=A.totalTokensShare,S.output+=A.outputTokensShare,S.cost+=A.costShare,S.unpriced+=A.unpricedRequestsShare,S.resultChars+=A.resultChars,S.argsChars+=A.argsChars;let[v,x]=[(A)=>A.calls,(A)=>A.errors].map((A)=>yr(f,{buckets:g,key:(k)=>k.tool,value:A,limit:RT,colors:L}).map((k)=>({...k,values:k.values.map((D)=>D||null)}))),h=new Map(yr(f,{buckets:g,key:(A)=>A.tool,value:(A)=>A.calls}).map((A)=>[A.key,A.values])),C=p[0]?.calls??0,w=$D(C,L,h);return{rows:p,colors:L,buckets:g,totals:S,callSeries:v,errorSeries:x,totalCalls:La(f,g,(A)=>A.calls),totalErrors:La(f,g,(A)=>A.errors),toolNames:p.map((A)=>A.tool).sort((A,k)=>A.localeCompare(k)),toolColumns:w}}function $D(l,i,c){return[{key:"tool",header:s("tools.tool"),sort:(f)=>f.tool,render:(f)=>ge.jsxDEV("span",{className:"row",style:{gap:8},children:[ge.jsxDEV(wn,{color:i.get(f.tool)??oo},void 0,!1,void 0,this),ge.jsxDEV("span",{className:"mono truncate tools-name",title:f.tool,children:f.tool},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"trend",header:s("tools.trend"),title:s("tools.trend-title"),render:(f)=>{let p=c.get(f.tool);return p&&p.length>1?ge.jsxDEV(vi,{values:p,width:80,height:20,color:i.get(f.tool)??oo},void 0,!1,void 0,this):ge.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this)}},{key:"calls",header:s("tools.calls"),align:"right",sort:(f)=>f.calls,render:(f)=>ge.jsxDEV(pa,{value:f.calls,max:l,display:ge.jsxDEV("span",{title:s("tools.share-of-calls",{percent:Ve(f.callFraction)}),children:[B(f.calls),ge.jsxDEV("span",{className:"dim tools-share",children:Ve(f.callFraction,0)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},{key:"errorRate",header:s("tools.errors"),title:s("tools.errors-title"),align:"right",sort:(f)=>f.errorRate,render:(f)=>ge.jsxDEV("span",{className:"row",style:{gap:8,justifyContent:"flex-end"},children:[ge.jsxDEV("span",{className:"num dim",children:B(f.errors)},void 0,!1,void 0,this),ge.jsxDEV(Ut,{tone:f.errors>0?dr(f.errorRate):"neutral",mono:!0,children:ao(f.errorRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"args",header:s("tools.args"),title:s("tools.args-chars-title"),align:"right",sort:(f)=>f.argsChars,render:(f)=>ge.jsxDEV("span",{className:"num",children:Ae(f.argsChars)},void 0,!1,void 0,this)},{key:"result",header:s("tools.result"),title:s("tools.result-chars-title"),align:"right",sort:(f)=>f.resultChars,render:(f)=>ge.jsxDEV("span",{className:"num",children:Ae(f.resultChars)},void 0,!1,void 0,this)},{key:"avgResult",header:s("tools.result-per-call"),title:s("tools.result-per-call-title"),align:"right",sort:(f)=>f.avgResultChars,render:(f)=>ge.jsxDEV("span",{className:"num muted",children:Ae(Math.round(f.avgResultChars))},void 0,!1,void 0,this)},{key:"tokens",header:s("tools.attr-tokens"),title:ru,align:"right",sort:(f)=>f.totalTokensShare,render:(f)=>ge.jsxDEV("span",{className:"num",title:s("tools.share-of-tokens",{percent:Ve(f.tokenFraction)}),children:[Ae(Math.round(f.totalTokensShare)),ge.jsxDEV("span",{className:"dim tools-share",children:Ve(f.tokenFraction,0)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"cost",header:s("tools.attr-cost"),title:s("tools.attribution-estimate",{note:ru}),align:"right",sort:(f)=>f.costShare,render:(f)=>ge.jsxDEV("span",{className:"num",title:s("tools.share-of-cost",{percent:Ve(f.costFraction)}),children:[Ft(f.costShare,f.unpricedRequestsShare),ge.jsxDEV("span",{className:"dim tools-share",children:Ve(f.costFraction,0)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"lastUsed",header:s("tools.last-used"),align:"right",sort:(f)=>f.lastUsed,render:(f)=>ge.jsxDEV("span",{className:"muted",children:fa(f.lastUsed)},void 0,!1,void 0,this)}]}function QD({rows:l,tool:i,colors:c}){let f=lu.useMemo(()=>(i===null?l:l.filter((L)=>L.tool===i)).map((L)=>({...L,errorRate:L.calls>0?L.errors/L.calls:0})),[l,i]),p=lu.useMemo(()=>{let L=f.reduce((g,S)=>Math.max(g,S.calls),0);return[{key:"tool",header:s("tools.tool"),sort:(g)=>g.tool,render:(g)=>ge.jsxDEV("span",{className:"row",style:{gap:8},children:[ge.jsxDEV(wn,{color:c.get(g.tool)??oo},void 0,!1,void 0,this),ge.jsxDEV("span",{className:"mono truncate tools-name",title:g.tool,children:g.tool},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"model",header:s("common.model"),sort:(g)=>g.model,render:(g)=>ge.jsxDEV(Ga,{primary:ge.jsxDEV("span",{className:"mono",children:g.model||s("common.unknown")},void 0,!1,void 0,this),secondary:g.provider},void 0,!1,void 0,this)},{key:"calls",header:s("tools.calls"),align:"right",sort:(g)=>g.calls,render:(g)=>ge.jsxDEV(pa,{value:g.calls,max:L,display:B(g.calls)},void 0,!1,void 0,this)},{key:"errorRate",header:s("tools.errors"),align:"right",sort:(g)=>g.errorRate,render:(g)=>ge.jsxDEV("span",{className:"row",style:{gap:8,justifyContent:"flex-end"},children:[ge.jsxDEV("span",{className:"num dim",children:B(g.errors)},void 0,!1,void 0,this),ge.jsxDEV(Ut,{tone:g.errors>0?dr(g.errorRate):"neutral",mono:!0,children:ao(g.errorRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"result",header:s("tools.result"),title:s("tools.result-chars-title"),align:"right",sort:(g)=>g.resultChars,render:(g)=>ge.jsxDEV("span",{className:"num",children:Ae(g.resultChars)},void 0,!1,void 0,this)},{key:"tokens",header:s("tools.attr-tokens"),title:ru,align:"right",sort:(g)=>g.totalTokensShare,render:(g)=>ge.jsxDEV("span",{className:"num",children:Ae(Math.round(g.totalTokensShare))},void 0,!1,void 0,this)},{key:"cost",header:s("tools.attr-cost"),title:s("tools.attribution-estimate",{note:ru}),align:"right",sort:(g)=>g.costShare,render:(g)=>ge.jsxDEV("span",{className:"num",children:Ft(g.costShare,g.unpricedRequestsShare)},void 0,!1,void 0,this)},{key:"lastUsed",header:s("tools.last-used"),align:"right",sort:(g)=>g.lastUsed,render:(g)=>ge.jsxDEV("span",{className:"muted",children:fa(g.lastUsed)},void 0,!1,void 0,this)}]},[f,c]);return ge.jsxDEV(Ht,{rows:f,rowKey:(L)=>`${L.tool}::${L.model}::${L.provider}`,columns:p,initialSort:{key:"calls",dir:"desc"},limit:25,dense:!0,empty:ge.jsxDEV(vt,{title:i?s("tools.no-calls-to-tool",{tool:i}):s("tools.no-tool-calls")},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var Ai=Z(gt(),1);var Ot=Z(gt(),1);var vr=Z(ie(),1);function MT({toolStats:l,index:i}){if(l.length===0)return null;let c=Math.max(...l.map((p)=>p.totalMs)),f=[{key:"tool",header:s("trace.tool"),render:(p)=>vr.jsxDEV("span",{className:"mono",children:p.tool},void 0,!1,void 0,this),sort:(p)=>p.tool},{key:"calls",header:s("trace.calls"),align:"right",render:(p)=>vr.jsxDEV("span",{className:"num",children:B(p.calls)},void 0,!1,void 0,this),sort:(p)=>p.calls},{key:"errors",header:s("trace.errors"),align:"right",render:(p)=>p.errors>0?vr.jsxDEV(Ut,{tone:"bad",children:s("trace.failed-n",{count:B(p.errors)})},void 0,!1,void 0,this):vr.jsxDEV("span",{className:"num dim",children:"0"},void 0,!1,void 0,this),sort:(p)=>p.errors},{key:"total",header:s("common.total"),align:"right",width:200,render:(p)=>vr.jsxDEV(pa,{value:p.totalMs,max:c,display:Dt(p.totalMs),color:"var(--warn)"},void 0,!1,void 0,this),sort:(p)=>p.totalMs},{key:"avg",header:s("trace.avg"),align:"right",render:(p)=>vr.jsxDEV("span",{className:"num",children:Dt(p.calls>0?p.totalMs/p.calls:0)},void 0,!1,void 0,this),sort:(p)=>p.calls>0?p.totalMs/p.calls:0},{key:"max",header:s("trace.max"),align:"right",render:(p)=>vr.jsxDEV("span",{className:"num",children:Dt(p.maxMs)},void 0,!1,void 0,this),sort:(p)=>p.maxMs}];return vr.jsxDEV(Ue,{title:s("trace.tool-aggregates"),description:s("trace.tool-aggregates-desc",{count:l.length}),flush:!0,index:i,children:vr.jsxDEV(Ht,{columns:f,rows:l,rowKey:(p)=>p.tool,dense:!0,limit:12},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var Go=Z(gt(),1);var wi=Z(gt(),1);var su={turn:"--ink-2",model:"--chart-primary",tool:"--warn",subagent:"--chart-secondary",background:"--ink-4"};function KD(){let l=getComputedStyle(document.documentElement),i=(c,f)=>l.getPropertyValue(c).trim()||f;return{category:{turn:i(su.turn,"#a0a0a8"),model:i(su.model,"#5ad8e6"),tool:i(su.tool,"#f5a524"),subagent:i(su.subagent,"#ed4abf"),background:i(su.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 ki(){let l=z1(),[i,c]=wi.useState(0);return wi.useEffect(()=>{let f=new MutationObserver(()=>c((p)=>p+1));return f.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]}),()=>f.disconnect()},[]),wi.useMemo(KD,[l,i])}var OT=Z(ie(),1),Zl=44,Xd=["turn","model","tool","subagent"],DT=6,Ti=10;function ZD(l,i,c,f){let p=devicePixelRatio,L=Math.floor(c*p),g=Math.floor(Zl*p),S,v;if(typeof OffscreenCanvas>"u"){let k=document.createElement("canvas");k.width=L,k.height=g,S=k,v=k.getContext("2d")}else{let k=new OffscreenCanvas(L,g);S=k,v=k.getContext("2d")}if(!v)return S;v.setTransform(p,0,0,p,0,0);let[x,h]=i.domain,C=Math.max(h-x,0.000000001),w=Xd.map(()=>new Float32Array(c));for(let k of l)for(let D of k.spans){let M=Xd.indexOf(D.kind);if(M===-1)continue;let U=w[M],_=Math.max(0,Math.floor((i.toU(D.start)-x)/C*c)),X=Math.min(c-1,Math.ceil((i.toU(D.end)-x)/C*c));for(let Q=_;Q<=X;Q++)U[Q]=Math.min(1,U[Q]+0.34)}let A=Zl/Xd.length;for(let k=0;k<Xd.length;k++){let D=w[k];v.fillStyle=f.category[Xd[k]];for(let M=0;M<c;M++){if(D[M]<=0)continue;v.globalAlpha=0.25+D[M]*0.75,v.fillRect(M,k*A+1,1,A-2)}v.globalAlpha=1}return S}function ET({tracks:l,scale:i,viewport:c,onViewportChange:f}){let p=ki(),L=Go.useRef(null),[g,S]=Go.useState(800),v=Go.useRef(null);Go.useEffect(()=>{let _=L.current;if(!_)return;let X=new ResizeObserver((Q)=>{S(Math.max(100,Math.floor(Q[0].contentRect.width)))});return X.observe(_),()=>X.disconnect()},[]);let[x,h]=i.domain,C=Math.max(h-x,0.000000001),w=Go.useCallback((_)=>(_-x)/C*g,[x,C,g]),A=Go.useCallback((_)=>x+_/Math.max(g,1)*C,[x,C,g]),k=Go.useMemo(()=>ZD(l,i,g,p),[l,i,g,p]);Go.useEffect(()=>{let _=L.current;if(!_)return;let X=_.getContext("2d");if(!X)return;let Q=devicePixelRatio;X.setTransform(1,0,0,1,0,0),X.clearRect(0,0,_.width,_.height),X.drawImage(k,0,0),X.setTransform(Q,0,0,Q,0,0);let ce=w(c.u0),J=w(c.u1);X.fillStyle=p.brush,X.fillRect(ce,0,J-ce,Zl),X.strokeStyle=p.selection,X.strokeRect(ce+0.5,0.5,J-ce-1,Zl-1),X.fillStyle=p.selection,X.fillRect(ce,0,2,Zl),X.fillRect(J-2,0,2,Zl)},[k,c,p,w]);let D=(_)=>{let X=_.currentTarget.getBoundingClientRect(),Q=_.clientX-X.left,ce=w(c.u0),J=w(c.u1),te;if(Math.abs(Q-ce)<=DT)te="left";else if(Math.abs(Q-J)<=DT)te="right";else if(Q>ce&&Q<J)te="move";else{te="create";let Y=A(Q);f(Yd({u0:Y,u1:Y+Ti},x,h))}v.current={mode:te,startX:Q,startViewport:c},_.currentTarget.setPointerCapture(_.pointerId)},M=(_)=>{let X=v.current;if(!X)return;let Q=_.currentTarget.getBoundingClientRect(),ce=_.clientX-Q.left,J=A(ce)-A(X.startX),{u0:te,u1:Y}=X.startViewport;if(X.mode==="move")f(Yd({u0:te+J,u1:Y+J},x,h));else if(X.mode==="left")f(Yd({u0:Math.min(te+J,Y-Ti),u1:Y},x,h));else if(X.mode==="right")f(Yd({u0:te,u1:Math.max(Y+J,te+Ti)},x,h));else{let ae=A(X.startX),F=A(ce);f(Yd({u0:Math.min(ae,F),u1:Math.max(ae,F,Math.min(ae,F)+Ti)},x,h))}},U=()=>{v.current=null};return OT.jsxDEV("canvas",{ref:L,width:Math.floor(g*devicePixelRatio),height:Math.floor(Zl*devicePixelRatio),className:"traces-minimap",style:{height:Zl},role:"slider","aria-label":s("trace.minimap-aria"),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round((c.u0-x)/C*100),tabIndex:-1,onPointerDown:D,onPointerMove:M,onPointerUp:U},void 0,!1,void 0,this)}function Yd(l,i,c){let f=Math.max(Ti,l.u1-l.u0);f=Math.min(f,c-i||Ti);let p=l.u0;if(p<i)p=i;if(p+f>c)p=c-f;return{u0:p,u1:p+f}}var br=Z(gt(),1);var nt=Z(ie(),1);function WD(l){let i=[];if(typeof l==="string"){if(l.trim())i.push({kind:"text",text:l});return i}if(!Array.isArray(l))return i;for(let c of l){if(!c||typeof c!=="object"||!("type"in c))continue;if((c.type==="text"||c.type==="thinking")&&"text"in c&&typeof c.text==="string")i.push({kind:String(c.type),text:c.text})}return i}function qT({span:l,track:i,onClose:c,onOpenChildTrack:f}){let[p,L]=br.useState(null),[g,S]=br.useState(!1),[v,x]=br.useState(null),[h,C]=br.useState(!1),w=br.useRef(0);if(br.useEffect(()=>{if(L(null),x(null),C(!1),S(!1),!l||!i||!l.entryId)return;S(!0);let _=new AbortController;return b1(i.file,l.entryId,_.signal).then((X)=>{if(!_.signal.aborted)L(X.entry)}).catch((X)=>{if(_.signal.aborted)return;x(X instanceof Error?X:Error(String(X)))}).finally(()=>{if(!_.signal.aborted)S(!1)}),()=>_.abort()},[l,i]),br.useEffect(()=>()=>window.clearTimeout(w.current),[]),!l)return null;let A=async()=>{try{await navigator.clipboard.writeText(JSON.stringify(p??l,null,2)),C(!0),window.clearTimeout(w.current),w.current=window.setTimeout(()=>C(!1),1500)}catch{}},D=(p&&typeof p==="object"?p:{}).message,M=D?.usage,U=[{key:"duration",label:s("common.duration"),value:nt.jsxDEV("span",{className:"num",children:[Dt(l.end-l.start),l.unterminated&&nt.jsxDEV("span",{className:"muted",children:[" · ",s("trace.unterminated")]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},{key:"start",label:s("trace.start"),value:nt.jsxDEV("span",{className:"num",children:new Date(l.start).toLocaleTimeString()},void 0,!1,void 0,this)},{key:"track",label:s("trace.track"),value:nt.jsxDEV("span",{className:"mono",children:i?.label??"-"},void 0,!1,void 0,this)}];if(l.kind==="model"){if(U.push({key:"tokens",label:s("common.tokens"),value:nt.jsxDEV("span",{className:"num",children:B(l.tokens??0)},void 0,!1,void 0,this)},{key:"cost",label:s("common.cost"),value:nt.jsxDEV("span",{className:"num",children:["$",(l.cost??0).toFixed(4)]},void 0,!0,void 0,this)},{key:"ttft",label:s("trace.ttft"),value:nt.jsxDEV("span",{className:"num",children:Dt(l.ttft??null)},void 0,!1,void 0,this)},{key:"model",label:s("common.model"),value:nt.jsxDEV("span",{className:"mono",children:D?.model??l.model??"-"},void 0,!1,void 0,this)}),M)U.push({key:"split",label:s("trace.io-cached"),value:nt.jsxDEV("span",{className:"num",children:[B(M.input??0)," / ",B(M.output??0)," /"," ",B(M.cacheRead??0)]},void 0,!0,void 0,this)});if(D?.provider)U.push({key:"provider",label:s("common.provider"),value:nt.jsxDEV("span",{className:"mono",children:D.provider},void 0,!1,void 0,this)});if(D?.stopReason)U.push({key:"stop",label:s("trace.stop-reason"),value:nt.jsxDEV("span",{className:"mono",children:D.stopReason},void 0,!1,void 0,this)})}return nt.jsxDEV(Um,{open:!0,onClose:c,title:l.label,subtitle:nt.jsxDEV("span",{className:"row",style:{gap:6},children:nt.jsxDEV(Ut,{tone:l.isError?"bad":"neutral",children:l.isError?`${l.kind} · ${s("common.error")}`:l.kind},void 0,!1,void 0,this)},void 0,!1,void 0,this),actions:nt.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-icon":"true",onClick:A,"aria-label":s("trace.copy-json"),title:s("trace.copy-json"),children:h?nt.jsxDEV(Vs,{size:15},void 0,!1,void 0,this):nt.jsxDEV(Xs,{size:15},void 0,!1,void 0,this)},void 0,!1,void 0,this),children:nt.jsxDEV("div",{className:"stack traces-drawer",children:[nt.jsxDEV(Fo,{items:U},void 0,!1,void 0,this),D?.errorMessage&&nt.jsxDEV("div",{className:"stack",style:{gap:6},children:[nt.jsxDEV("div",{className:"section-label tone-bad",children:s("trace.error-message")},void 0,!1,void 0,this),nt.jsxDEV("pre",{className:"code-block traces-pre",children:D.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this),l.kind==="subagent"&&nt.jsxDEV("div",{className:"stack",style:{gap:8},children:[l.detail&&nt.jsxDEV(nt.Fragment,{children:[nt.jsxDEV("div",{className:"section-label",children:s("trace.task")},void 0,!1,void 0,this),nt.jsxDEV("pre",{className:"code-block traces-pre",children:l.detail},void 0,!1,void 0,this)]},void 0,!0,void 0,this),l.childTrackId&&f&&nt.jsxDEV("div",{children:nt.jsxDEV("button",{type:"button",className:"btn","data-size":"sm",onClick:()=>f(l.childTrackId??""),children:[s("trace.open-child-track")," ",nt.jsxDEV("span",{className:"mono",children:l.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),l.kind==="tool"&&l.detail&&nt.jsxDEV("div",{className:"stack",style:{gap:6},children:[nt.jsxDEV("div",{className:"section-label",children:s("trace.args")},void 0,!1,void 0,this),nt.jsxDEV("pre",{className:"code-block traces-pre",children:l.detail},void 0,!1,void 0,this)]},void 0,!0,void 0,this),g&&nt.jsxDEV("div",{className:"stack",children:[nt.jsxDEV(Ba,{height:80},void 0,!1,void 0,this),nt.jsxDEV(Ba,{height:160},void 0,!1,void 0,this)]},void 0,!0,void 0,this),v&&nt.jsxDEV(xi,{error:s("trace.load-failed",{message:v.message})},void 0,!1,void 0,this),!g&&p!==null&&WD(D?.content).map((_,X)=>nt.jsxDEV("div",{className:"stack",style:{gap:6},children:[nt.jsxDEV("div",{className:"section-label",children:_.kind==="thinking"?s("trace.thinking"):s("trace.text")},void 0,!1,void 0,this),nt.jsxDEV("pre",{className:"code-block traces-pre","data-scroll":"true",children:_.text},void 0,!1,void 0,this)]},`${_.kind}-${X}`,!0,void 0,this)),!g&&p!==null&&nt.jsxDEV(hi,{data:p,title:s("trace.raw-entry"),initialCollapsed:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var Dn=Z(ie(),1);function NT({summary:l}){let i=(c)=>l.wallMs>0?s("trace.of-wall",{percent:Ve(c/l.wallMs)}):void 0;return Dn.jsxDEV(oa,{min:112,children:[Dn.jsxDEV(se,{size:"sm",label:s("trace.wall-time"),value:Zs(l.wallMs)},void 0,!1,void 0,this),Dn.jsxDEV(se,{size:"sm",label:s("trace.model-time"),value:Zs(l.modelMs),hint:i(l.modelMs)},void 0,!1,void 0,this),Dn.jsxDEV(se,{size:"sm",label:s("trace.tool-time"),value:Zs(l.toolMs),hint:i(l.toolMs)},void 0,!1,void 0,this),Dn.jsxDEV(se,{size:"sm",label:s("trace.idle"),value:Zs(l.idleMs),hint:i(l.idleMs)},void 0,!1,void 0,this),Dn.jsxDEV(se,{size:"sm",label:s("trace.turns"),value:B(l.turns)},void 0,!1,void 0,this),Dn.jsxDEV(se,{size:"sm",label:s("common.requests"),value:B(l.requests),hint:s("trace.tool-calls-n",{count:B(l.toolCalls)})},void 0,!1,void 0,this),Dn.jsxDEV(se,{size:"sm",label:s("trace.agents"),value:B(l.subagents)},void 0,!1,void 0,this),Dn.jsxDEV(se,{size:"sm",label:s("common.tokens"),value:Ae(l.totalTokens)},void 0,!1,void 0,this),Dn.jsxDEV(se,{size:"sm",label:s("common.cost"),value:Ft(l.costTotal,l.unpricedRequests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Nt=Z(gt(),1),FT=Z(id(),1);function eh(l,i){let c=l.length,f=[i[0],i[c-1]],p=(L,g)=>{let S=0,v=c-1;while(S<v){let x=S+v+1>>1;if(L[x]<=g)S=x;else v=x-1}return Math.min(S,c-2)};return{toU(L){if(L<=l[0])return i[0];if(L>=l[c-1])return i[c-1];let g=p(l,L),S=l[g+1]-l[g];if(S<=0)return i[g];return i[g]+(L-l[g])/S*(i[g+1]-i[g])},toT(L){if(L<=i[0])return l[0];if(L>=i[c-1])return l[c-1];let g=p(i,L),S=i[g+1]-i[g];if(S<=0)return l[g];return l[g]+(L-i[g])/S*(l[g+1]-l[g])},domain:f,gaps:[]}}function JD(l){let i=[];for(let c of l)for(let f of c.spans)i.push([f.start,f.end]);return i.sort((c,f)=>c[0]-f[0]),i}function eE(l){let{POSITIVE_INFINITY:i,NEGATIVE_INFINITY:c}=Number;for(let f of l)for(let p of f.spans){if(p.start<i)i=p.start;if(p.end>c)c=p.end}if(!Number.isFinite(i))return[0,1];return[i,Math.max(c,i+1)]}function BT(l,i,c){let f=[...new Set(l.filter((S)=>S>=i&&S<=c))].sort((S,v)=>S-v);if(f[0]!==i)f.unshift(i);if(f[f.length-1]!==c)f.push(c);if(f.length<2)return eh([i,c],[i,c]);let L=(c-i)/(f.length-1),g=f.map((S,v)=>i+v*L);return eh(f,g)}function tE(l,i,c){let f=JD(l),p=[];for(let[h,C]of f){let w=h-2000,A=C+2000,k=p[p.length-1];if(k&&w<=k[1]){if(A>k[1])k[1]=A}else p.push([w,A])}if(p.length===0)p.push([i,c]);p[0][0]=Math.max(p[0][0],i),p[p.length-1][1]=Math.min(Math.max(p[p.length-1][1],p[p.length-1][0]),c);let L=[],g=[],S=[],v=p[0][0];for(let h=0;h<p.length;h++){let[C,w]=p[h];if(h===0)L.push(C),g.push(v);else{let A=p[h-1][1],k=C-A;if(k>30000)v+=8000,S.push({t0:A,t1:C,uMid:v-4000});else v+=k;L.push(C),g.push(v)}v+=Math.max(0,w-C),L.push(w),g.push(v)}return{...eh(L,g),gaps:S}}function zT(l,i,c){let[f,p]=eE(l);if(i==="turns"){let g=(l.find((S)=>S.id==="main")?.spans??[]).filter((S)=>S.kind==="turn").map((S)=>S.start);return BT(g,f,p)}if(i==="calls"){let L=[];for(let g of l)for(let S of g.spans)if(S.kind==="model"||S.kind==="tool"||S.kind==="background")L.push(S.start,S.end);return BT(L,f,p)}if(c)return tE(l,f,p);return eh([f,p],[f,p])}var aE=90;function oE(l){let i=10**Math.floor(Math.log10(Math.max(l,1)));for(let c of[1,2,5,10])if(i*c>=l)return i*c;return i*10}function nE(l){let i=new Date(l),c=String(i.getHours()).padStart(2,"0"),f=String(i.getMinutes()).padStart(2,"0"),p=String(i.getSeconds()).padStart(2,"0");return`${c}:${f}:${p}`}function Ii(l){let i=l<0?"-":"+",c=Math.abs(l),f=Math.floor(c/3600000),p=Math.floor(c%3600000/60000),L=Math.floor(c%60000/1000),g=Math.floor(c%1000),S=c%1000!==0,v=`${String(p).padStart(2,"0")}:${String(L).padStart(2,"0")}${S?".":""}${S?String(g).padStart(3,"0"):""}`;return f>0?`${i}${f}:${v}`:`${i}${v}`}function UT(l,i,c,f){let p=c-i;if(p<=0||f<=0)return[];let L=[],g=l.domain[0],S=oE(p*aE/f),v=g+Math.ceil((i-g)/S)*S,x=0;for(let h=v;h<=c&&x<200;h+=S,x++){let C=l.toT(h),w=Math.round((h-g)/S)%5===0;L.push({u:h,label:w?nE(C):Ii(h-g),major:w})}return L}var At=Z(ie(),1),Zr=28,mb=22,wo=18,PT=3,rE=14,_T=200,db=10,GT=2,lE=4,sE=56,th=3,pb=0.3,uE=[{kind:"turn",label:s("common.input")},{kind:"model",label:s("common.model")},{kind:"tool",label:s("trace.tools")},{kind:"subagent",label:s("trace.agents")},{kind:"background",label:s("trace.bg")}];function iE(l,i){let c=new Map(l.map((v)=>[v.id,v])),f=new Set;for(let v of l)if(v.parentId)f.add(v.parentId);let p=(v)=>{let x=v.parentId;while(x){if(i.has(x))return!0;x=c.get(x)?.parentId??null}return!1},L=[],g=[],S=Zr+6;for(let v of l){if(p(v))continue;let x=v.id==="main"?0:v.id.split("/").length,h={turn:[],model:[],tool:[],subagent:[],background:[]};for(let w of v.spans)h[w.kind].push(w);let C={track:v,depth:x,hasChildren:f.has(v.id),headerY:S,lanes:[],turnSpans:h.turn,y0:S,y1:S};S+=mb;for(let{kind:w,label:A}of uE){let k=h[w],D=w==="turn"||w==="model"||w==="tool";if(k.length===0&&!(v.id==="main"&&D))continue;let M={track:v,kind:w,label:A,y:S,spans:k};C.lanes.push(M),g.push(M),S+=wo+PT}C.y1=S-PT,L.push(C),S+=rE}return{blocks:L,lanes:g,totalHeight:Math.max(S,Zr+48)}}function cE(l,i){return l.lanes.map((c)=>{let f=c.spans.length,p=new Float64Array(f),L=new Float64Array(f),g=new Float64Array(f),S=Number.NEGATIVE_INFINITY;for(let v=0;v<f;v++){let x=c.spans[v];p[v]=i.toU(x.start),L[v]=i.toU(x.end),S=Math.max(S,L[v]),g[v]=S}return{startU:p,endU:L,maxEndU:g}})}function dE(l,i){let c=0,f=l.length;while(c<f){let p=c+f>>>1;if(l[p]<i)c=p+1;else f=p}return c}function fE(l,i){if(l===null||i===null)return l===i;if(l.kind==="span")return i.kind==="span"&&l.span===i.span;return i.kind==="marker"&&l.marker===i.marker}function VT({tracks:l,scale:i,viewport:c,onViewportChange:f,selected:p,onSelect:L,matchIds:g,collapsed:S,onToggleCollapse:v,traceStart:x}){let h=ki(),C=Nt.useRef(null),w=Nt.useRef(null),A=Nt.useRef(null),[k,D]=Nt.useState(800),[M,U]=Nt.useState(null),_=Nt.useRef(null);_.current=M;let X=Nt.useRef({clientX:0,clientY:0}),Q=Nt.useRef([]),ce=Nt.useRef(null),J=Nt.useRef(null),te=Nt.useRef(c);te.current=c;let Y=Nt.useMemo(()=>iE(l,S),[l,S]),ae=Nt.useMemo(()=>cE(Y,i),[Y,i]);Nt.useEffect(()=>{let oe=C.current;if(!oe)return;let ve=new ResizeObserver((V)=>{let Fe=Math.max(100,Math.floor(V[0].contentRect.width-_T));D(Fe)});return ve.observe(oe),()=>ve.disconnect()},[]);let F=Nt.useCallback((oe,ve)=>{let[V,Fe]=i.domain,Qe=Math.max(db,ve-oe);Qe=Math.min(Qe,Fe-V||db);let Pe=oe;if(Pe<V)Pe=V;if(Pe+Qe>Fe)Pe=Fe-Qe;return{u0:Pe,u1:Pe+Qe}},[i]),de=Nt.useCallback((oe)=>{te.current=oe,f(oe)},[f]),xe=Nt.useCallback((oe,ve)=>{let V=k,{u0:Fe,u1:Qe}=te.current,Pe=Qe-Fe,dt=ve===null?0.5:Math.min(1,Math.max(0,ve/V)),et=Fe+Pe*dt,ft=Pe*oe;de(F(et-ft*dt,et+ft*(1-dt)))},[k,de,F]),Ce=Nt.useCallback((oe)=>{let{u0:ve,u1:V}=te.current;de(F(ve+oe,V+oe))},[de,F]),Be=Nt.useCallback((oe)=>{let ve=i.toU(oe.start),V=i.toU(oe.end),Fe=Math.max((V-ve)*0.1,db/2);de(F(ve-Fe,V+Fe))},[i,de,F]);Nt.useEffect(()=>{let oe=w.current;if(!oe)return;let ve=(V)=>{V.preventDefault();let Fe=oe.getBoundingClientRect(),Qe=V.clientX-Fe.left;J.current=Qe,U(null);let Pe=oe.clientWidth||1,dt=()=>te.current.u1-te.current.u0;if(V.shiftKey){let et=Math.abs(V.deltaY)>=Math.abs(V.deltaX)?V.deltaY:V.deltaX;Ce(et/Pe*dt());return}if(V.deltaX!==0)Ce(V.deltaX/Pe*dt());if(V.deltaY!==0)xe(1.0015**V.deltaY,Qe)};return oe.addEventListener("wheel",ve,{passive:!1}),()=>oe.removeEventListener("wheel",ve)},[xe,Ce]);let ne=Nt.useCallback((oe,ve)=>{let V=w.current;if(!V)return null;let Fe=V.getBoundingClientRect(),Qe=oe-Fe.left,Pe=ve-Fe.top,dt=Q.current;for(let et=dt.length-1;et>=0;et--){let ft=dt[et];if(Qe>=ft.x&&Qe<=ft.x+ft.w&&Pe>=ft.y&&Pe<=ft.y+ft.h)return ft}return null},[]),me=Nt.useCallback(()=>{let oe=A.current;if(!oe)return;let{clientX:ve,clientY:V}=X.current,Fe=Math.min(ve+14,window.innerWidth-320),Qe=V+16>window.innerHeight-140?V-120:V+16;oe.style.transform=`translate(${Fe}px, ${Qe}px)`},[]),ke=(oe)=>{oe.currentTarget.setPointerCapture(oe.pointerId),ce.current={pointerId:oe.pointerId,lastX:oe.clientX,moved:!1},oe.currentTarget.focus()},$e=(oe)=>{let ve=oe.currentTarget.getBoundingClientRect();J.current=oe.clientX-ve.left;let V=ce.current;if(V&&V.pointerId===oe.pointerId){let Qe=oe.clientX-V.lastX;if(Math.abs(Qe)>0){if(Math.abs(Qe)>2)V.moved=!0;V.lastX=oe.clientX;let Pe=te.current.u1-te.current.u0;Ce(-Qe/(k||1)*Pe)}U(null);return}X.current={clientX:oe.clientX,clientY:oe.clientY};let Fe=ne(oe.clientX,oe.clientY);if(fE(Fe,_.current))me();else U(Fe)},Lt=(oe)=>{let ve=ce.current;if(ce.current=null,ve?.moved)return;let V=ne(oe.clientX,oe.clientY);if(V?.kind==="span")L(V.span.id);else L(null)},W=(oe)=>{let ve=ne(oe.clientX,oe.clientY);if(ve?.kind==="span")Be(ve.span)},ze=Nt.useCallback((oe)=>{let ve=p?.span.id;if(!ve)return;for(let V of Y.lanes){let Fe=V.spans.findIndex((dt)=>dt.id===ve);if(Fe===-1)continue;let Qe=V.spans[Fe+oe];if(!Qe)return;L(Qe.id);let Pe=i.toU(Qe.start);if(Pe<c.u0||Pe>c.u1){let dt=c.u1-c.u0;f(F(Pe-dt/2,Pe+dt/2))}return}},[p,Y,L,i,c,f,F]),kt=(oe)=>{let ve=c.u1-c.u0;switch(oe.key){case"w":case"W":xe(0.7692307692307692,J.current);break;case"s":case"S":xe(1.3,J.current);break;case"a":case"A":Ce(-ve*0.2);break;case"d":case"D":Ce(ve*0.2);break;case"0":f({u0:i.domain[0],u1:i.domain[1]});break;case"f":case"F":if(p)Be(p.span);break;case"Escape":L(null);break;case",":ze(-1);break;case".":ze(1);break;default:return}oe.preventDefault()};Nt.useEffect(()=>{w.current?.focus({preventScroll:!0})},[]),Nt.useEffect(()=>{let oe=w.current;if(!oe)return;let ve=requestAnimationFrame(()=>{Q.current=pE(oe,Y,ae,i,c,h,k,g)});return()=>cancelAnimationFrame(ve)},[Y,ae,i,c,h,k,g]);let it=M?.kind==="span"?HT(M,Y,i,c,k):null,ct=p?HT(p,Y,i,c,k):null;Nt.useLayoutEffect(()=>{if(M)me()},[M,me]);let Me=M?mE(M,x,A):null,ye=Math.floor(k*devicePixelRatio),j=Math.floor(Y.totalHeight*devicePixelRatio),Re={width:k,height:Y.totalHeight};return At.jsxDEV("div",{ref:C,className:"traces-timeline",children:[At.jsxDEV("div",{style:{width:_T,flexShrink:0,position:"relative",height:Y.totalHeight},children:Y.blocks.map((oe)=>At.jsxDEV("div",{children:[At.jsxDEV("div",{style:{position:"absolute",top:oe.headerY,left:4+oe.depth*14,right:8,height:mb,display:"flex",alignItems:"center",gap:5,minWidth:0},children:[oe.hasChildren?At.jsxDEV("button",{type:"button",onClick:()=>v(oe.track.id),"aria-label":S.has(oe.track.id)?s("trace.expand-track",{track:oe.track.label}):s("trace.collapse-track",{track:oe.track.label}),className:"traces-chevron",children:S.has(oe.track.id)?At.jsxDEV(Cn,{size:12},void 0,!1,void 0,this):At.jsxDEV(js,{size:12},void 0,!1,void 0,this)},void 0,!1,void 0,this):At.jsxDEV("span",{style:{width:12,flexShrink:0}},void 0,!1,void 0,this),At.jsxDEV("span",{className:"traces-gutter-track truncate",style:{minWidth:0},children:oe.track.label},void 0,!1,void 0,this),oe.track.model&&At.jsxDEV("span",{className:"traces-gutter-model mono truncate",style:{flexShrink:1,minWidth:0},children:oe.track.model},void 0,!1,void 0,this)]},void 0,!0,void 0,this),oe.lanes.map((ve)=>At.jsxDEV("div",{className:"traces-gutter-lane",style:{top:ve.y,left:20+oe.depth*14,lineHeight:`${wo}px`},children:ve.label},`${ve.track.id}:${ve.kind}`,!1,void 0,this))]},oe.track.id,!0,void 0,this))},void 0,!1,void 0,this),At.jsxDEV("div",{className:"traces-canvas-stack",style:Re,children:[At.jsxDEV("canvas",{ref:w,className:"traces-canvas",width:ye,height:j,style:Re,tabIndex:0,role:"application","aria-label":s("trace.canvas-aria"),onPointerDown:ke,onPointerMove:$e,onPointerUp:Lt,onPointerLeave:()=>{J.current=null,U(null)},onDoubleClick:W,onKeyDown:kt},void 0,!1,void 0,this),it&&M?.kind==="span"&&At.jsxDEV("div",{className:"traces-canvas-hover","aria-hidden":"true",style:{left:it.x,top:it.y,width:it.w,height:wo,borderRadius:th,opacity:g===null||g.has(M.span.id)?1:pb}},void 0,!1,void 0,this),ct&&p&&At.jsxDEV("div",{className:"traces-canvas-selection","aria-hidden":"true",style:{left:ct.x-1,top:ct.y-1,width:ct.w+2,height:wo+2,borderRadius:th,borderColor:h.selection,opacity:g===null||g.has(p.span.id)?1:pb}},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Me&&FT.createPortal(Me,document.body)]},void 0,!0,void 0,this)}function fb(l,i,c,f,p){if(l.beginPath(),f>=th*2+1)l.roundRect(i,c,f,p,th);else l.rect(i,c,f,p)}function pE(l,i,c,f,p,L,g,S){let v=[],x=l.getContext("2d");if(!x)return v;let h=i.totalHeight,C=devicePixelRatio;x.setTransform(C,0,0,C,0,0),x.clearRect(0,0,g,h);let{u0:w,u1:A}=p,k=Math.max(A-w,0.000000001),D=(M)=>(M-w)/k*g;for(let M of i.blocks){let U=M.turnSpans;for(let _=0;_<U.length;_++){let X=D(f.toU(U[_].start)),Q=_+1<U.length?D(f.toU(U[_+1].start)):g;if(Q<0||X>g)continue;if(_%2===1)x.fillStyle=L.turnBand,x.fillRect(Math.max(0,X),M.y0,Math.min(g,Q)-Math.max(0,X),M.y1-M.y0);if(X>=0&&X<=g)x.strokeStyle=L.grid,x.beginPath(),x.moveTo(Math.round(X)+0.5,M.y0),x.lineTo(Math.round(X)+0.5,M.y1),x.stroke()}}x.font=`9px ${L.fontMono}`;for(let M of f.gaps){let U=D(M.uMid);if(U<-24||U>g+24)continue;x.save(),x.strokeStyle=L.grid,x.setLineDash([2,4]),x.beginPath(),x.moveTo(U,Zr),x.lineTo(U,h),x.stroke(),x.restore(),x.fillStyle=L.tick,x.textAlign="center",x.fillText(`⋯ ${Dt(M.t1-M.t0)}`,U,Zr-4),x.textAlign="left"}for(let M of UT(f,w,A,g)){let U=Math.round(D(M.u))+0.5;if(x.strokeStyle=L.grid,x.beginPath(),M.major)x.moveTo(U,4),x.lineTo(U,h);else x.moveTo(U,Zr-8),x.lineTo(U,Zr);if(x.stroke(),x.fillStyle=L.tick,M.major)x.fillText(M.label,U+4,11);else x.globalAlpha=0.75,x.fillText(M.label,U+3,Zr-10),x.globalAlpha=1}x.strokeStyle=L.grid,x.beginPath(),x.moveTo(0,Zr+0.5),x.lineTo(g,Zr+0.5),x.stroke(),x.font=`10px ${L.fontSans}`;for(let M=0;M<i.lanes.length;M++){let U=i.lanes[M],{startU:_,endU:X,maxEndU:Q}=c[M],ce=U.kind==="turn";for(let J=dE(Q,w);J<U.spans.length;J++){let te=_[J];if(te>A)break;let Y=X[J];if(Y<w)continue;let ae=U.spans[J],F=D(te),de=Math.max(GT,D(Y)-F),xe=U.y,Ce=S===null||S.has(ae.id)?1:pb,Be=L.category[ae.kind];if(x.globalAlpha=Ce,ce)x.fillStyle=Be,x.globalAlpha=Ce*0.23,fb(x,F,xe,de,wo),x.fill(),x.globalAlpha=Ce,x.fillStyle=Be,x.fillRect(F,xe,2,wo);else x.fillStyle=Be,fb(x,F,xe,de,wo),x.fill();if(ae.isError)x.fillStyle=L.errorSoft,fb(x,F,xe,de,wo),x.fill(),x.fillStyle=L.error,x.fillRect(F,xe,2,wo);if(ae.kind==="model"&&typeof ae.ttft==="number"&&ae.ttft>0&&de>20){let me=D(f.toU(ae.start+ae.ttft));if(me>F+1&&me<F+de-1)x.fillStyle="rgba(0,0,0,0.5)",x.fillRect(me,xe+3,1,wo-6)}if(ae.unterminated)x.save(),x.strokeStyle=L.tick,x.setLineDash([2,2]),x.beginPath(),x.moveTo(F+de-0.5,xe),x.lineTo(F+de-0.5,xe+wo),x.stroke(),x.restore();if(de>sE)x.save(),x.beginPath(),x.rect(F+3,xe,de-6,wo),x.clip(),x.fillStyle=ce?L.tick:L.spanText,x.fillText(ae.label,F+5,xe+wo-5),x.restore();x.globalAlpha=1;let ne=Math.max(de,lE);v.push({kind:"span",x:F-(ne-de)/2,y:xe,w:ne,h:wo,span:ae,track:U.track})}}for(let M of i.blocks)for(let U of M.track.markers){let _=D(f.toU(U.time));if(_<-6||_>g+6)continue;let X=M.headerY+mb/2;x.fillStyle=L.marker,x.beginPath(),x.moveTo(_,X-4),x.lineTo(_+4,X),x.lineTo(_,X+4),x.lineTo(_-4,X),x.closePath(),x.fill(),v.push({kind:"marker",x:_-5,y:X-5,w:10,h:10,marker:U,track:M.track})}return v}function HT({span:l,track:i},c,f,p,L){let{u0:g,u1:S}=p,v=f.toU(l.start),x=f.toU(l.end);if(v>S||x<g)return null;let h=c.lanes.find((k)=>k.track===i&&k.kind===l.kind);if(!h)return null;let C=Math.max(S-g,0.000000001),w=(v-g)/C*L,A=(x-g)/C*L;return{x:w,y:h.y,w:Math.max(GT,A-w)}}function mE(l,i,c){let f={left:0,top:0};if(l.kind==="marker"){let{marker:L}=l;return At.jsxDEV("div",{ref:c,className:"traces-tooltip",style:f,children:[At.jsxDEV("div",{className:"traces-tooltip-title",children:L.label},void 0,!1,void 0,this),At.jsxDEV("div",{className:"muted num",children:[new Date(L.time).toLocaleTimeString()," (",Ii(L.time-i),")"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}let{span:p}=l;return At.jsxDEV("div",{ref:c,className:"traces-tooltip",style:f,children:[At.jsxDEV("div",{className:"traces-tooltip-title truncate",children:p.label},void 0,!1,void 0,this),At.jsxDEV("div",{className:"muted num",children:[Dt(p.end-p.start)," · ",new Date(p.start).toLocaleTimeString()," (",Ii(p.start-i),")",p.unterminated?` · ${s("trace.unterminated")}`:""]},void 0,!0,void 0,this),p.kind==="model"&&At.jsxDEV("div",{className:"muted num",children:[p.tokens!==void 0&&At.jsxDEV(At.Fragment,{children:[B(p.tokens)," ",s("trace.tok")]},void 0,!0,void 0,this),p.cost!==void 0&&At.jsxDEV(At.Fragment,{children:[" · $",p.cost.toFixed(4)]},void 0,!0,void 0,this),p.ttft!==void 0&&At.jsxDEV(At.Fragment,{children:[" ","· ",s("trace.ttft")," ",Dt(p.ttft)]},void 0,!0,void 0,this),p.isError&&At.jsxDEV(At.Fragment,{children:[" · ",s("common.error")]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),p.kind==="subagent"&&p.model&&At.jsxDEV("div",{className:"muted num",children:p.model},void 0,!1,void 0,this),p.detail&&At.jsxDEV("div",{className:"traces-tooltip-detail",children:p.detail},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var En=Z(gt(),1);var ja=Z(ie(),1),Ri=28,jT=20,hE=340;function gE(l){let i=[];for(let c of l){let f=c.id==="main"?0:c.id.split("/").length;for(let p of c.spans)i.push({key:p.id,time:p.start,span:p,track:c,depth:f});for(let p=0;p<c.markers.length;p++){let L=c.markers[p];i.push({key:`${c.id}:marker:${p}`,time:L.time,marker:L,track:c,depth:f})}}return i.sort((c,f)=>c.time-f.time),i}var XT=En.memo(function({tracks:i,selection:c,onSelect:f,search:p,matchIds:L,traceStart:g}){let S=ki(),v=En.useRef(null),[x,h]=En.useState(0),C=En.useMemo(()=>gE(i),[i]),w=En.useMemo(()=>{if(!L)return C;let M=p.trim().toLowerCase();return C.filter((U)=>U.span?L.has(U.span.id):(U.marker?.label??"").toLowerCase().includes(M))},[C,p,L]);En.useEffect(()=>{if(!c)return;let M=v.current;if(!M)return;let U=w.findIndex((X)=>X.span?.id===c);if(U===-1)return;let _=U*Ri;if(_<M.scrollTop||_+Ri>M.scrollTop+M.clientHeight)M.scrollTop=Math.max(0,_-M.clientHeight/2)},[c,w]);let A=Math.max(0,Math.floor(x/Ri)-jT),k=Math.min(w.length,Math.ceil((x+hE)/Ri)+jT),D=w.slice(A,k);return ja.jsxDEV("div",{ref:v,onScroll:(M)=>h(M.currentTarget.scrollTop),className:"traces-list",children:[ja.jsxDEV("div",{style:{height:w.length*Ri,position:"relative"},children:ja.jsxDEV("div",{style:{position:"absolute",top:A*Ri,left:0,right:0},children:D.map((M)=>{let U=M.span,_=U!==void 0&&U.id===c,X=M.span?S.category[M.span.kind]:S.marker,Q=M.span?.label??M.marker?.label??"",ce=M.span?.detail,J=M.span?Dt(M.span.end-M.span.start):"",te=M.span?.kind??M.marker?.kind??"",Y=ja.jsxDEV(ja.Fragment,{children:[ja.jsxDEV("span",{className:"traces-kind",style:{"--traces-kind-color":X},children:te},void 0,!1,void 0,this),M.depth>0&&ja.jsxDEV("span",{className:"traces-row-track mono truncate",title:M.track.label,children:M.track.id},void 0,!1,void 0,this),ja.jsxDEV("span",{className:"traces-row-label truncate",children:Q},void 0,!1,void 0,this),ce&&ja.jsxDEV("span",{className:"traces-row-detail truncate",children:ce},void 0,!1,void 0,this),ja.jsxDEV("span",{className:"traces-row-meta num",children:[M.span?.isError&&ja.jsxDEV("span",{className:"tone-bad",children:s("common.error")},void 0,!1,void 0,this),ja.jsxDEV("span",{children:J},void 0,!1,void 0,this),ja.jsxDEV("span",{children:Ii(M.time-g)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),ae={paddingLeft:12+M.depth*12};return U?ja.jsxDEV("button",{type:"button",onClick:()=>f(U.id),className:"traces-row","data-selected":_?"true":"false",style:ae,children:Y},M.key,!1,void 0,this):ja.jsxDEV("div",{className:"traces-row","data-static":"true",style:ae,children:Y},M.key,!1,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),w.length===0&&ja.jsxDEV(vt,{title:s("trace.no-matching-events")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});var Je=Z(ie(),1),yE=[{value:"time",label:s("common.duration"),title:s("trace.mode-time-title")},{value:"turns",label:s("trace.turns"),title:s("trace.mode-turns-title")},{value:"calls",label:s("trace.calls"),title:s("trace.mode-calls-title")}],vE=[{kind:"turn",label:s("common.input")},{kind:"model",label:s("common.model")},{kind:"tool",label:s("trace.tool")},{kind:"subagent",label:s("trace.agent")},{kind:"background",label:s("trace.background")}];function YT({file:l,active:i,onBack:c}){let f=Gt(["trace",l],({signal:Me},ye)=>v1(l,Me,ye),{pollMs:15000,enabled:i}),p=f.stale?null:f.data,[L,g]=Ot.useState("time"),[S,v]=Ot.useState(!0),[x,h]=Ot.useState(null),[C,w]=Ot.useState(!1),[A,k]=Ot.useState(""),[D,M]=Ot.useState(0),[U,_]=Ot.useState(new Set),[X,Q]=Ot.useState(null),ce=Ot.useMemo(()=>p?.tracks??[],[p]),J=Ot.useMemo(()=>zT(ce,L,S),[ce,L,S]),te=Ot.useRef(J),Y=Ot.useRef(null);Ot.useEffect(()=>{if(!p)return;if(Y.current===p.file)return;Y.current=p.file,h(null),k(""),Q(null);let Me=new Set;for(let ye of p.tracks)if((ye.id==="main"?0:ye.id.split("/").length)>=1)Me.add(ye.id);_(Me)},[p]),Ot.useEffect(()=>{let Me=te.current;te.current=J,Q((ye)=>{if(!ye)return ye;let j=Me.toT(ye.u0),Re=Me.toT(ye.u1),oe=J.toU(j),ve=J.toU(Re);return ve-oe>0?{u0:oe,u1:ve}:null})},[J]);let ae=Ot.useMemo(()=>X??{u0:J.domain[0],u1:J.domain[1]},[X,J]),F=Ot.useMemo(()=>{let Me=[];for(let ye of ce)for(let j of ye.spans)Me.push({span:j,track:ye});return Me.sort((ye,j)=>ye.span.start-j.span.start),Me},[ce]),de=Ot.useMemo(()=>{let Me=A.trim().toLowerCase();if(!Me)return[];return F.filter(({span:ye})=>`${ye.label} ${ye.detail??""}`.toLowerCase().includes(Me))},[F,A]),xe=Ot.useMemo(()=>A.trim()?new Set(de.map(({span:Me})=>Me.id)):null,[de,A]),Ce=Ot.useCallback((Me)=>{let ye=J.toU(Me.start),j=J.toU(Me.end);Q((Re)=>{let oe=Re??{u0:J.domain[0],u1:J.domain[1]};if(ye>=oe.u0&&j<=oe.u1)return Re;let ve=oe.u1-oe.u0,V=(ye+j)/2,[Fe,Qe]=J.domain,Pe=V-ve/2;if(Pe<Fe)Pe=Fe;if(Pe+ve>Qe)Pe=Math.max(Fe,Qe-ve);return{u0:Pe,u1:Pe+ve}})},[J]),Be=Ot.useCallback((Me)=>{h(Me);let ye=F.find(({span:j})=>j.id===Me);if(ye)Ce(ye.span)},[F,Ce]),ne=Ot.useCallback((Me)=>{h(Me),w(Me!==null)},[]),me=Ot.useCallback((Me)=>{if(de.length===0)return;let ye=((D+Me)%de.length+de.length)%de.length;M(ye),Be(de[ye].span.id)},[de,D,Be]),ke=Ot.useCallback((Me)=>{_((ye)=>{let j=new Set(ye);if(j.has(Me))j.delete(Me);else j.add(Me);return j})},[]),$e=Ot.useMemo(()=>{if(!x)return null;return F.find(({span:Me})=>Me.id===x)??null},[x,F]),Lt=Ot.useCallback((Me)=>{let ye=ce.find((Re)=>Re.id===Me),j=ye?.spans[0];if(_((Re)=>{let oe=new Set(Re),ve=ye;while(ve?.parentId)oe.delete(ve.parentId),ve=ce.find((V)=>V.id===ve?.parentId);return oe}),j)Be(j.id)},[ce,Be]),W=Ot.useCallback((Me)=>{if(!Me){_(new Set);return}let ye=new Set;for(let j of ce)if(j.id!=="main")ye.add(j.id);_(ye)},[ce]),ze=Ot.useCallback((Me)=>{Be(Me),w(!0)},[Be]),kt=Ot.useCallback(()=>w(!1),[]),it=p?.startedAt??0,ct={...f,data:p};return Je.jsxDEV("div",{className:"stack traces-view",children:[Je.jsxDEV("div",{children:Je.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm",onClick:c,children:[Je.jsxDEV(md,{size:14,"aria-hidden":"true"},void 0,!1,void 0,this),s("trace.sessions")]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Je.jsxDEV(ua,{title:Je.jsxDEV("span",{className:"traces-title truncate",children:p?.title??l.split("/").pop()},void 0,!1,void 0,this),description:p?.cwd?Je.jsxDEV("span",{className:"mono",children:p.cwd},void 0,!1,void 0,this):void 0,actions:Je.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-icon":"true",onClick:f.refetch,"aria-label":s("trace.refresh"),title:s("trace.refresh"),children:Je.jsxDEV(Xl,{size:14,className:f.refreshing?"traces-spin":void 0},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),Je.jsxDEV(He,{query:ct,skeleton:Je.jsxDEV(Mt,{height:420},void 0,!1,void 0,this),children:(Me)=>Je.jsxDEV(Je.Fragment,{children:[Je.jsxDEV(NT,{summary:Me.summary},void 0,!1,void 0,this),Je.jsxDEV(Ue,{index:1,title:s("trace.timeline"),description:s("trace.timeline-hint"),actions:Je.jsxDEV(Je.Fragment,{children:[Je.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm",onClick:()=>W(!1),children:s("trace.expand-all")},void 0,!1,void 0,this),Je.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm",onClick:()=>W(!0),children:s("trace.collapse-all")},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:Je.jsxDEV("div",{className:"stack",children:[Je.jsxDEV("div",{className:"traces-toolbar",children:[Je.jsxDEV(Fa,{options:yE,value:L,onChange:g,size:"sm","aria-label":s("trace.axis-mode")},void 0,!1,void 0,this),L==="time"&&Je.jsxDEV("label",{className:"traces-check",children:[Je.jsxDEV("input",{type:"checkbox",checked:S,onChange:(ye)=>v(ye.target.checked)},void 0,!1,void 0,this),s("trace.compress-idle")]},void 0,!0,void 0,this),Je.jsxDEV("div",{className:"traces-search",children:[Je.jsxDEV(fr,{value:A,onChange:(ye)=>{k(ye),M(0)},placeholder:s("trace.search-placeholder"),width:200},void 0,!1,void 0,this),A.trim()&&Je.jsxDEV(Je.Fragment,{children:[Je.jsxDEV("span",{className:"num muted traces-match-count",children:de.length===0?"0":`${D%Math.max(de.length,1)+1}/${de.length}`},void 0,!1,void 0,this),Je.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm","data-icon":"true",onClick:()=>me(-1),"aria-label":s("trace.previous-match"),disabled:de.length===0,children:Je.jsxDEV(vd,{size:14},void 0,!1,void 0,this)},void 0,!1,void 0,this),Je.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm","data-icon":"true",onClick:()=>me(1),"aria-label":s("trace.next-match"),disabled:de.length===0,children:Je.jsxDEV(Cn,{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),Je.jsxDEV("div",{className:"traces-legend",children:vE.map((ye)=>Je.jsxDEV("span",{className:"traces-legend-item",children:[Je.jsxDEV("span",{className:"swatch",style:{background:`var(${su[ye.kind]})`}},void 0,!1,void 0,this),ye.label]},ye.kind,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Je.jsxDEV(ET,{tracks:ce,scale:J,viewport:ae,onViewportChange:Q},void 0,!1,void 0,this),Je.jsxDEV(VT,{tracks:ce,scale:J,viewport:ae,onViewportChange:Q,selected:$e,onSelect:ne,matchIds:xe,collapsed:U,onToggleCollapse:ke,traceStart:it},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Je.jsxDEV(Ue,{index:2,title:s("trace.transcript"),description:s("trace.transcript-description"),flush:!0,children:Je.jsxDEV(XT,{tracks:ce,selection:x,onSelect:ze,search:A,matchIds:xe,traceStart:it},void 0,!1,void 0,this)},void 0,!1,void 0,this),Je.jsxDEV(MT,{toolStats:Me.summary.toolStats,index:3},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Je.jsxDEV(qT,{span:C?$e?.span??null:null,track:$e?.track??null,onClose:kt,onOpenChildTrack:Lt},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var ea=Z(ie(),1),$T=200;function bE({models:l}){if(l.length===0)return ea.jsxDEV("span",{className:"dim",children:"-"},void 0,!1,void 0,this);return ea.jsxDEV("span",{className:"traces-models",title:l.join(`
|
|
236
|
+
`),children:[ea.jsxDEV("span",{className:"mono truncate",children:l[0]},void 0,!1,void 0,this),l.length>1&&ea.jsxDEV("span",{className:"badge",children:["+",l.length-1]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function QT({active:l,session:i,onOpenSession:c}){let[f,p]=Ai.useState(""),L=Gt(["sessions",$T],({signal:h})=>y1($T,void 0,h),{pollMs:30000,enabled:l&&i===null}),g=Ai.useMemo(()=>{let h=L.data??[],C=f.trim().toLowerCase();if(!C)return h;return h.filter((w)=>(w.title??"").toLowerCase().includes(C)||w.folder.toLowerCase().includes(C)||w.models.some((A)=>A.toLowerCase().includes(C)))},[L.data,f]),S=Ai.useMemo(()=>Math.max(0,...g.map((h)=>h.costTotal)),[g]),v=Ai.useMemo(()=>[{key:"title",header:s("trace.session"),width:"32%",render:(h)=>ea.jsxDEV(Ga,{primary:h.title??h.file.split("/").pop(),secondary:ea.jsxDEV("span",{className:"mono",children:h.folder.split("/").slice(-2).join("/")},void 0,!1,void 0,this)},void 0,!1,void 0,this),sort:(h)=>(h.title??h.file).toLowerCase()},{key:"models",header:s("common.models"),render:(h)=>ea.jsxDEV(bE,{models:h.models},void 0,!1,void 0,this)},{key:"started",header:s("common.started"),align:"right",render:(h)=>ea.jsxDEV("span",{className:"muted",title:new Date(h.startedAt).toLocaleString(),children:fa(h.startedAt)},void 0,!1,void 0,this),sort:(h)=>h.startedAt},{key:"duration",header:s("common.duration"),align:"right",render:(h)=>ea.jsxDEV("span",{className:"num",children:Zs(h.endedAt-h.startedAt)},void 0,!1,void 0,this),sort:(h)=>h.endedAt-h.startedAt},{key:"requests",header:s("common.requests"),align:"right",render:(h)=>ea.jsxDEV("span",{className:"num",children:B(h.requests)},void 0,!1,void 0,this),sort:(h)=>h.requests},{key:"toolCalls",header:s("trace.tools"),align:"right",render:(h)=>ea.jsxDEV("span",{className:"num",children:B(h.toolCalls)},void 0,!1,void 0,this),sort:(h)=>h.toolCalls},{key:"subagents",header:s("trace.agents"),align:"right",render:(h)=>h.subagents>0?ea.jsxDEV("span",{className:"num",children:B(h.subagents)},void 0,!1,void 0,this):ea.jsxDEV("span",{className:"num dim",children:"0"},void 0,!1,void 0,this),sort:(h)=>h.subagents},{key:"tokens",header:s("common.tokens"),align:"right",render:(h)=>ea.jsxDEV("span",{className:"num",children:Ae(h.totalTokens)},void 0,!1,void 0,this),sort:(h)=>h.totalTokens},{key:"cost",header:s("common.cost"),align:"right",width:150,render:(h)=>ea.jsxDEV(pa,{value:h.costTotal,max:S,display:Ft(h.costTotal,h.unpricedRequests)},void 0,!1,void 0,this),sort:(h)=>h.costTotal}],[S]);if(i!==null)return ea.jsxDEV(YT,{file:i,active:l,onBack:()=>c(null)},void 0,!1,void 0,this);let x=L.data?.length??0;return ea.jsxDEV("div",{className:"stack traces-page",children:[ea.jsxDEV(ua,{title:s("trace.title"),description:s("trace.description")},void 0,!1,void 0,this),ea.jsxDEV(Ue,{title:s("trace.sessions"),description:L.data?f.trim()?s("trace.most-recent-filtered",{shown:B(g.length),total:B(x)}):s("trace.most-recent",{count:B(x)}):void 0,actions:ea.jsxDEV(fr,{value:f,onChange:p,placeholder:s("trace.filter-placeholder"),width:260},void 0,!1,void 0,this),flush:!0,index:0,stale:L.stale,children:ea.jsxDEV(He,{query:L,skeleton:ea.jsxDEV(na,{rows:10},void 0,!1,void 0,this),isEmpty:(h)=>h.length===0,empty:ea.jsxDEV(vt,{title:s("trace.empty-title"),hint:s("trace.empty-hint")},void 0,!1,void 0,this),children:()=>ea.jsxDEV(Ht,{columns:v,rows:g,rowKey:(h)=>h.file,onRowClick:(h)=>c(h.file),initialSort:{key:"started",dir:"desc"},limit:50,empty:ea.jsxDEV(vt,{title:s("trace.no-matching-title"),hint:s("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 Da=Z(ie(),1);function hb(){return Da.jsxDEV(k1,{children:Da.jsxDEV(xE,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function xE(){let{section:l,setSection:i,range:c,setRange:f,session:p,setSession:L}=F1(),[g,S]=Mi.useState(null),v=Mi.useCallback(()=>S(null),[]),x=Mi.useRef(new Set);x.current.add(l);let h=(C)=>{let w=C===l;switch(C){case"overview":return Da.jsxDEV(bT,{active:w,range:c,onRequestClick:S},void 0,!1,void 0,this);case"requests":return Da.jsxDEV(IT,{active:w,range:c,onRequestClick:S},void 0,!1,void 0,this);case"errors":return Da.jsxDEV(uT,{active:w,range:c,onRequestClick:S},void 0,!1,void 0,this);case"traces":return Da.jsxDEV(QT,{active:w,session:p,onOpenSession:L},void 0,!1,void 0,this);case"models":return Da.jsxDEV(hT,{active:w,range:c},void 0,!1,void 0,this);case"providers":return Da.jsxDEV(kT,{active:w,range:c},void 0,!1,void 0,this);case"costs":return Da.jsxDEV(lT,{active:w,range:c},void 0,!1,void 0,this);case"tools":return Da.jsxDEV(AT,{active:w,range:c},void 0,!1,void 0,this);case"frustration":return Da.jsxDEV(cT,{active:w,range:c},void 0,!1,void 0,this);case"projects":return Da.jsxDEV(ST,{active:w,range:c},void 0,!1,void 0,this);case"gain":return Da.jsxDEV(pT,{active:w,range:c},void 0,!1,void 0,this)}};return Da.jsxDEV(Da.Fragment,{children:[Da.jsxDEV(H1,{section:l,onSectionChange:i,range:c,onRangeChange:f,children:[...x.current].map((C)=>Da.jsxDEV("div",{hidden:C!==l,children:h(C)},C,!1,void 0,this))},void 0,!1,void 0,this),Da.jsxDEV(TT,{id:g,onClose:v},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var WT=Z(ie(),1),ZT=document.getElementById("root");if(!ZT)throw Error("missing #root");KT.createRoot(ZT).render(WT.jsxDEV(hb,{},void 0,!1,void 0,this));
|