@oh-my-pi/omp-stats 17.2.8 → 17.2.10
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 +12 -0
- package/dist/client/index.js +103 -103
- package/dist/types/client/components/range-meta.d.ts +1 -1
- package/dist/types/port-conflict.d.ts +11 -1
- package/dist/types/server.d.ts +1 -0
- package/package.json +4 -6
- package/src/client/components/chart-shared.tsx +1 -1
- package/src/client/components/models-table-shared.tsx +1 -1
- package/src/client/components/range-meta.ts +2 -2
- package/src/client/data/formatters.ts +1 -1
- package/src/client/routes/BehaviorRoute.tsx +1 -1
- package/src/client/routes/OverviewRoute.tsx +1 -1
- package/src/index.ts +2 -2
- package/src/port-conflict.ts +37 -24
- package/src/server.ts +25 -15
package/dist/client/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var uO=Object.create;var{getPrototypeOf:xO,defineProperty:jR,getOwnPropertyNames:mO}=Object;var dO=Object.prototype.hasOwnProperty;function pO(Q){return this[Q]}var cO,lO,n=(Q,J,X)=>{var q=Q!=null&&typeof Q==="object";if(q){var N=J?cO??=new WeakMap:lO??=new WeakMap,K=N.get(Q);if(K)return K}X=Q!=null?uO(xO(Q)):{};let H=J||!Q||!Q.__esModule?jR(X,"default",{value:Q,enumerable:!0}):X;for(let F of mO(Q))if(!dO.call(H,F))jR(H,F,{get:pO.bind(Q,F),enumerable:!0});if(q)N.set(Q,H);return H};var E2=(Q,J)=>()=>(J||Q((J={exports:{}}).exports,J),J.exports);var i_=E2(($j)=>{(function(){function Q(){if(s=!1,i){var l=$j.unstable_now();H0=l;var q0=!0;try{$:{h=!1,p&&(p=!1,J0(Y0),Y0=-1),D=!0;var F0=O;try{Z:{K(l);for(V=X(P);V!==null&&!(V.expirationTime>l&&F());){var a0=V.callback;if(typeof a0==="function"){V.callback=null,O=V.priorityLevel;var d0=a0(V.expirationTime<=l);if(l=$j.unstable_now(),typeof d0==="function"){V.callback=d0,K(l),q0=!0;break Z}V===X(P)&&q(P),K(l)}else q(P);V=X(P)}if(V!==null)q0=!0;else{var v=X(I);v!==null&&M(H,v.startTime-l),q0=!1}}break $}finally{V=null,O=F0,D=!1}q0=void 0}}finally{q0?P0():i=!1}}}function J(l,q0){var F0=l.length;l.push(q0);$:for(;0<F0;){var a0=F0-1>>>1,d0=l[a0];if(0<N(d0,q0))l[a0]=q0,l[F0]=d0,F0=a0;else break $}}function X(l){return l.length===0?null:l[0]}function q(l){if(l.length===0)return null;var q0=l[0],F0=l.pop();if(F0!==q0){l[0]=F0;$:for(var a0=0,d0=l.length,v=d0>>>1;a0<v;){var o=2*(a0+1)-1,M0=l[o],W0=o+1,p0=l[W0];if(0>N(M0,F0))W0<d0&&0>N(p0,M0)?(l[a0]=p0,l[W0]=F0,a0=W0):(l[a0]=M0,l[o]=F0,a0=o);else if(W0<d0&&0>N(p0,F0))l[a0]=p0,l[W0]=F0,a0=W0;else break $}}return q0}function N(l,q0){var F0=l.sortIndex-q0.sortIndex;return F0!==0?F0:l.id-q0.id}function K(l){for(var q0=X(I);q0!==null;){if(q0.callback===null)q(I);else if(q0.startTime<=l)q(I),q0.sortIndex=q0.expirationTime,J(P,q0);else break;q0=X(I)}}function H(l){if(p=!1,K(l),!h)if(X(P)!==null)h=!0,i||(i=!0,P0());else{var q0=X(I);q0!==null&&M(H,q0.startTime-l)}}function F(){return s?!0:$j.unstable_now()-H0<d?!1:!0}function M(l,q0){Y0=a(function(){l($j.unstable_now())},q0)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),$j.unstable_now=void 0,typeof performance==="object"&&typeof performance.now==="function"){var w=performance;$j.unstable_now=function(){return w.now()}}else{var R=Date,_=R.now();$j.unstable_now=function(){return R.now()-_}}var P=[],I=[],A=1,V=null,O=3,D=!1,h=!1,p=!1,s=!1,a=typeof setTimeout==="function"?setTimeout:null,J0=typeof clearTimeout==="function"?clearTimeout:null,t=typeof setImmediate<"u"?setImmediate:null,i=!1,Y0=-1,d=5,H0=-1;if(typeof t==="function")var P0=function(){t(Q)};else if(typeof MessageChannel<"u"){var I0=new MessageChannel,b0=I0.port2;I0.port1.onmessage=Q,P0=function(){b0.postMessage(null)}}else P0=function(){a(Q,0)};$j.unstable_IdlePriority=5,$j.unstable_ImmediatePriority=1,$j.unstable_LowPriority=4,$j.unstable_NormalPriority=3,$j.unstable_Profiling=null,$j.unstable_UserBlockingPriority=2,$j.unstable_cancelCallback=function(l){l.callback=null},$j.unstable_forceFrameRate=function(l){0>l||125<l?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):d=0<l?Math.floor(1000/l):5},$j.unstable_getCurrentPriorityLevel=function(){return O},$j.unstable_next=function(l){switch(O){case 1:case 2:case 3:var q0=3;break;default:q0=O}var F0=O;O=q0;try{return l()}finally{O=F0}},$j.unstable_requestPaint=function(){s=!0},$j.unstable_runWithPriority=function(l,q0){switch(l){case 1:case 2:case 3:case 4:case 5:break;default:l=3}var F0=O;O=l;try{return q0()}finally{O=F0}},$j.unstable_scheduleCallback=function(l,q0,F0){var a0=$j.unstable_now();switch(typeof F0==="object"&&F0!==null?(F0=F0.delay,F0=typeof F0==="number"&&0<F0?a0+F0:a0):F0=a0,l){case 1:var d0=-1;break;case 2:d0=250;break;case 5:d0=1073741823;break;case 4:d0=1e4;break;default:d0=5000}return d0=F0+d0,l={id:A++,callback:q0,priorityLevel:l,startTime:F0,expirationTime:d0,sortIndex:-1},F0>a0?(l.sortIndex=F0,J(I,l),X(P)===null&&l===X(I)&&(p?(J0(Y0),Y0=-1):p=!0,M(H,F0-a0))):(l.sortIndex=d0,J(P,l),h||D||(h=!0,i||(i=!0,P0()))),l},$j.unstable_shouldYield=F,$j.unstable_wrapCallback=function(l){var q0=O;return function(){var F0=O;O=q0;try{return l.apply(this,arguments)}finally{O=F0}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var T1=E2((Zj,XX)=>{(function(){function Q(C,y){Object.defineProperty(q.prototype,C,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",y[0],y[1])}})}function J(C){if(C===null||typeof C!=="object")return null;return C=KJ&&C[KJ]||C["@@iterator"],typeof C==="function"?C:null}function X(C,y){C=(C=C.constructor)&&(C.displayName||C.name)||"ReactClass";var r=C+"."+y;X0[r]||(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.",y,C),X0[r]=!0)}function q(C,y,r){this.props=C,this.context=y,this.refs=h8,this.updater=r||X7}function N(){}function K(C,y,r){this.props=C,this.context=y,this.refs=h8,this.updater=r||X7}function H(){}function F(C){return""+C}function M(C){try{F(C);var y=!1}catch(N0){y=!0}if(y){y=console;var r=y.error,Z0=typeof Symbol==="function"&&Symbol.toStringTag&&C[Symbol.toStringTag]||C.constructor.name||"Object";return r.call(y,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",Z0),F(C)}}function w(C){if(C==null)return null;if(typeof C==="function")return C.$$typeof===b$?null:C.displayName||C.name||null;if(typeof C==="string")return C;switch(C){case d0:return"Fragment";case o:return"Profiler";case v:return"StrictMode";case p1:return"Suspense";case k0:return"SuspenseList";case $4:return"Activity"}if(typeof C==="object")switch(typeof C.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),C.$$typeof){case a0:return"Portal";case W0:return C.displayName||"Context";case M0:return(C._context.displayName||"Context")+".Consumer";case p0:var y=C.render;return C=C.displayName,C||(C=y.displayName||y.name||"",C=C!==""?"ForwardRef("+C+")":"ForwardRef"),C;case i1:return y=C.displayName||null,y!==null?y:w(C.type)||"Memo";case E5:y=C._payload,C=C._init;try{return w(C(y))}catch(r){}}return null}function R(C){if(C===d0)return"<>";if(typeof C==="object"&&C!==null&&C.$$typeof===E5)return"<...>";try{var y=w(C);return y?"<"+y+">":"<...>"}catch(r){return"<...>"}}function _(){var C=y0.A;return C===null?null:C.getOwner()}function P(){return Error("react-stack-top-frame")}function I(C){if(q7.call(C,"key")){var y=Object.getOwnPropertyDescriptor(C,"key").get;if(y&&y.isReactWarning)return!1}return C.key!==void 0}function A(C,y){function r(){BJ||(BJ=!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)",y))}r.isReactWarning=!0,Object.defineProperty(C,"key",{get:r,configurable:!0})}function V(){var C=w(this.type);return n2[C]||(n2[C]=!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.")),C=this.props.ref,C!==void 0?C:null}function O(C,y,r,Z0,N0,D0){var v0=r.ref;return C={$$typeof:F0,type:C,key:y,props:r,_owner:Z0},(v0!==void 0?v0:null)!==null?Object.defineProperty(C,"ref",{enumerable:!1,get:V}):Object.defineProperty(C,"ref",{enumerable:!1,value:null}),C._store={},Object.defineProperty(C._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(C,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(C,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:N0}),Object.defineProperty(C,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:D0}),Object.freeze&&(Object.freeze(C.props),Object.freeze(C)),C}function D(C,y){return y=O(C.type,y,C.props,C._owner,C._debugStack,C._debugTask),C._store&&(y._store.validated=C._store.validated),y}function h(C){p(C)?C._store&&(C._store.validated=1):typeof C==="object"&&C!==null&&C.$$typeof===E5&&(C._payload.status==="fulfilled"?p(C._payload.value)&&C._payload.value._store&&(C._payload.value._store.validated=1):C._store&&(C._store.validated=1))}function p(C){return typeof C==="object"&&C!==null&&C.$$typeof===F0}function s(C){var y={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(r){return y[r]})}function a(C,y){return typeof C==="object"&&C!==null&&C.key!=null?(M(C.key),s(""+C.key)):y.toString(36)}function J0(C){switch(C.status){case"fulfilled":return C.value;case"rejected":throw C.reason;default:switch(typeof C.status==="string"?C.then(H,H):(C.status="pending",C.then(function(y){C.status==="pending"&&(C.status="fulfilled",C.value=y)},function(y){C.status==="pending"&&(C.status="rejected",C.reason=y)})),C.status){case"fulfilled":return C.value;case"rejected":throw C.reason}}throw C}function t(C,y,r,Z0,N0){var D0=typeof C;if(D0==="undefined"||D0==="boolean")C=null;var v0=!1;if(C===null)v0=!0;else switch(D0){case"bigint":case"string":case"number":v0=!0;break;case"object":switch(C.$$typeof){case F0:case a0:v0=!0;break;case E5:return v0=C._init,t(v0(C._payload),y,r,Z0,N0)}}if(v0){v0=C,N0=N0(v0);var Q1=Z0===""?"."+a(v0,0):Z0;return w1(N0)?(r="",Q1!=null&&(r=Q1.replace(N7,"$&/")+"/"),t(N0,y,r,"",function(S5){return S5})):N0!=null&&(p(N0)&&(N0.key!=null&&(v0&&v0.key===N0.key||M(N0.key)),r=D(N0,r+(N0.key==null||v0&&v0.key===N0.key?"":(""+N0.key).replace(N7,"$&/")+"/")+Q1),Z0!==""&&v0!=null&&p(v0)&&v0.key==null&&v0._store&&!v0._store.validated&&(r._store.validated=2),N0=r),y.push(N0)),1}if(v0=0,Q1=Z0===""?".":Z0+":",w1(C))for(var _0=0;_0<C.length;_0++)Z0=C[_0],D0=Q1+a(Z0,_0),v0+=t(Z0,y,r,D0,N0);else if(_0=J(C),typeof _0==="function")for(_0===C.entries&&(Y7||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Y7=!0),C=_0.call(C),_0=0;!(Z0=C.next()).done;)Z0=Z0.value,D0=Q1+a(Z0,_0++),v0+=t(Z0,y,r,D0,N0);else if(D0==="object"){if(typeof C.then==="function")return t(J0(C),y,r,Z0,N0);throw y=String(C),Error("Objects are not valid as a React child (found: "+(y==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":y)+"). If you meant to render a collection of children, use an array instead.")}return v0}function i(C,y,r){if(C==null)return C;var Z0=[],N0=0;return t(C,Z0,"","",function(D0){return y.call(r,D0,N0++)}),Z0}function Y0(C){if(C._status===-1){var y=C._ioInfo;y!=null&&(y.start=y.end=performance.now()),y=C._result;var r=y();if(r.then(function(N0){if(C._status===0||C._status===-1){C._status=1,C._result=N0;var D0=C._ioInfo;D0!=null&&(D0.end=performance.now()),r.status===void 0&&(r.status="fulfilled",r.value=N0)}},function(N0){if(C._status===0||C._status===-1){C._status=2,C._result=N0;var D0=C._ioInfo;D0!=null&&(D0.end=performance.now()),r.status===void 0&&(r.status="rejected",r.reason=N0)}}),y=C._ioInfo,y!=null){y.value=r;var Z0=r.displayName;typeof Z0==="string"&&(y.name=Z0)}C._status===-1&&(C._status=0,C._result=r)}if(C._status===1)return y=C._result,y===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
1
|
+
var mO=Object.create;var{getPrototypeOf:dO,defineProperty:Nw,getOwnPropertyNames:pO}=Object;var cO=Object.prototype.hasOwnProperty;function lO(J){return this[J]}var rO,sO,s=(J,G,q)=>{var X=J!=null&&typeof J==="object";if(X){var N=G?rO??=new WeakMap:sO??=new WeakMap,K=N.get(J);if(K)return K}q=J!=null?mO(dO(J)):{};let H=G||!J||!J.__esModule?Nw(q,"default",{value:J,enumerable:!0}):q;for(let F of pO(J))if(!cO.call(H,F))Nw(H,F,{get:lO.bind(J,F),enumerable:!0});if(X)N.set(J,H);return H};var T2=(J,G)=>()=>(G||J((G={exports:{}}).exports,G),G.exports);var S_=T2((JS)=>{(function(){function J(){if(n=!1,i){var l=JS.unstable_now();H0=l;var Y0=!0;try{$:{h=!1,p&&(p=!1,Q0(X0),X0=-1),j=!0;var F0=I;try{Z:{K(l);for(V=q(P);V!==null&&!(V.expirationTime>l&&F());){var a0=V.callback;if(typeof a0==="function"){V.callback=null,I=V.priorityLevel;var d0=a0(V.expirationTime<=l);if(l=JS.unstable_now(),typeof d0==="function"){V.callback=d0,K(l),Y0=!0;break Z}V===q(P)&&X(P),K(l)}else X(P);V=q(P)}if(V!==null)Y0=!0;else{var k=q(O);k!==null&&W(H,k.startTime-l),Y0=!1}}break $}finally{V=null,I=F0,j=!1}Y0=void 0}}finally{Y0?P0():i=!1}}}function G(l,Y0){var F0=l.length;l.push(Y0);$:for(;0<F0;){var a0=F0-1>>>1,d0=l[a0];if(0<N(d0,Y0))l[a0]=Y0,l[F0]=d0,F0=a0;else break $}}function q(l){return l.length===0?null:l[0]}function X(l){if(l.length===0)return null;var Y0=l[0],F0=l.pop();if(F0!==Y0){l[0]=F0;$:for(var a0=0,d0=l.length,k=d0>>>1;a0<k;){var o=2*(a0+1)-1,W0=l[o],z0=o+1,p0=l[z0];if(0>N(W0,F0))z0<d0&&0>N(p0,W0)?(l[a0]=p0,l[z0]=F0,a0=z0):(l[a0]=W0,l[o]=F0,a0=o);else if(z0<d0&&0>N(p0,F0))l[a0]=p0,l[z0]=F0,a0=z0;else break $}}return Y0}function N(l,Y0){var F0=l.sortIndex-Y0.sortIndex;return F0!==0?F0:l.id-Y0.id}function K(l){for(var Y0=q(O);Y0!==null;){if(Y0.callback===null)X(O);else if(Y0.startTime<=l)X(O),Y0.sortIndex=Y0.expirationTime,G(P,Y0);else break;Y0=q(O)}}function H(l){if(p=!1,K(l),!h)if(q(P)!==null)h=!0,i||(i=!0,P0());else{var Y0=q(O);Y0!==null&&W(H,Y0.startTime-l)}}function F(){return n?!0:JS.unstable_now()-H0<d?!1:!0}function W(l,Y0){X0=a(function(){l(JS.unstable_now())},Y0)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),JS.unstable_now=void 0,typeof performance==="object"&&typeof performance.now==="function"){var M=performance;JS.unstable_now=function(){return M.now()}}else{var R=Date,_=R.now();JS.unstable_now=function(){return R.now()-_}}var P=[],O=[],E=1,V=null,I=3,j=!1,h=!1,p=!1,n=!1,a=typeof setTimeout==="function"?setTimeout:null,Q0=typeof clearTimeout==="function"?clearTimeout:null,t=typeof setImmediate<"u"?setImmediate:null,i=!1,X0=-1,d=5,H0=-1;if(typeof t==="function")var P0=function(){t(J)};else if(typeof MessageChannel<"u"){var O0=new MessageChannel,v0=O0.port2;O0.port1.onmessage=J,P0=function(){v0.postMessage(null)}}else P0=function(){a(J,0)};JS.unstable_IdlePriority=5,JS.unstable_ImmediatePriority=1,JS.unstable_LowPriority=4,JS.unstable_NormalPriority=3,JS.unstable_Profiling=null,JS.unstable_UserBlockingPriority=2,JS.unstable_cancelCallback=function(l){l.callback=null},JS.unstable_forceFrameRate=function(l){0>l||125<l?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):d=0<l?Math.floor(1000/l):5},JS.unstable_getCurrentPriorityLevel=function(){return I},JS.unstable_next=function(l){switch(I){case 1:case 2:case 3:var Y0=3;break;default:Y0=I}var F0=I;I=Y0;try{return l()}finally{I=F0}},JS.unstable_requestPaint=function(){n=!0},JS.unstable_runWithPriority=function(l,Y0){switch(l){case 1:case 2:case 3:case 4:case 5:break;default:l=3}var F0=I;I=l;try{return Y0()}finally{I=F0}},JS.unstable_scheduleCallback=function(l,Y0,F0){var a0=JS.unstable_now();switch(typeof F0==="object"&&F0!==null?(F0=F0.delay,F0=typeof F0==="number"&&0<F0?a0+F0:a0):F0=a0,l){case 1:var d0=-1;break;case 2:d0=250;break;case 5:d0=1073741823;break;case 4:d0=1e4;break;default:d0=5000}return d0=F0+d0,l={id:E++,callback:Y0,priorityLevel:l,startTime:F0,expirationTime:d0,sortIndex:-1},F0>a0?(l.sortIndex=F0,G(O,l),q(P)===null&&l===q(O)&&(p?(Q0(X0),X0=-1):p=!0,W(H,F0-a0))):(l.sortIndex=d0,G(P,l),h||j||(h=!0,i||(i=!0,P0()))),l},JS.unstable_shouldYield=F,JS.unstable_wrapCallback=function(l){var Y0=I;return function(){var F0=I;I=Y0;try{return l.apply(this,arguments)}finally{I=F0}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var L1=T2((QS,l3)=>{(function(){function J(C,y){Object.defineProperty(X.prototype,C,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",y[0],y[1])}})}function G(C){if(C===null||typeof C!=="object")return null;return C=aJ&&C[aJ]||C["@@iterator"],typeof C==="function"?C:null}function q(C,y){C=(C=C.constructor)&&(C.displayName||C.name)||"ReactClass";var r=C+"."+y;q0[r]||(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.",y,C),q0[r]=!0)}function X(C,y,r){this.props=C,this.context=y,this.refs=k8,this.updater=r||t7}function N(){}function K(C,y,r){this.props=C,this.context=y,this.refs=k8,this.updater=r||t7}function H(){}function F(C){return""+C}function W(C){try{F(C);var y=!1}catch(N0){y=!0}if(y){y=console;var r=y.error,Z0=typeof Symbol==="function"&&Symbol.toStringTag&&C[Symbol.toStringTag]||C.constructor.name||"Object";return r.call(y,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",Z0),F(C)}}function M(C){if(C==null)return null;if(typeof C==="function")return C.$$typeof===P$?null:C.displayName||C.name||null;if(typeof C==="string")return C;switch(C){case d0:return"Fragment";case o:return"Profiler";case k:return"StrictMode";case m1:return"Suspense";case b0:return"SuspenseList";case i6:return"Activity"}if(typeof C==="object")switch(typeof C.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),C.$$typeof){case a0:return"Portal";case z0:return C.displayName||"Context";case W0:return(C._context.displayName||"Context")+".Consumer";case p0:var y=C.render;return C=C.displayName,C||(C=y.displayName||y.name||"",C=C!==""?"ForwardRef("+C+")":"ForwardRef"),C;case o1:return y=C.displayName||null,y!==null?y:M(C.type)||"Memo";case V5:y=C._payload,C=C._init;try{return M(C(y))}catch(r){}}return null}function R(C){if(C===d0)return"<>";if(typeof C==="object"&&C!==null&&C.$$typeof===V5)return"<...>";try{var y=M(C);return y?"<"+y+">":"<...>"}catch(r){return"<...>"}}function _(){var C=y0.A;return C===null?null:C.getOwner()}function P(){return Error("react-stack-top-frame")}function O(C){if(e7.call(C,"key")){var y=Object.getOwnPropertyDescriptor(C,"key").get;if(y&&y.isReactWarning)return!1}return C.key!==void 0}function E(C,y){function r(){iJ||(iJ=!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)",y))}r.isReactWarning=!0,Object.defineProperty(C,"key",{get:r,configurable:!0})}function V(){var C=M(this.type);return d2[C]||(d2[C]=!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.")),C=this.props.ref,C!==void 0?C:null}function I(C,y,r,Z0,N0,j0){var k0=r.ref;return C={$$typeof:F0,type:C,key:y,props:r,_owner:Z0},(k0!==void 0?k0:null)!==null?Object.defineProperty(C,"ref",{enumerable:!1,get:V}):Object.defineProperty(C,"ref",{enumerable:!1,value:null}),C._store={},Object.defineProperty(C._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(C,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(C,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:N0}),Object.defineProperty(C,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:j0}),Object.freeze&&(Object.freeze(C.props),Object.freeze(C)),C}function j(C,y){return y=I(C.type,y,C.props,C._owner,C._debugStack,C._debugTask),C._store&&(y._store.validated=C._store.validated),y}function h(C){p(C)?C._store&&(C._store.validated=1):typeof C==="object"&&C!==null&&C.$$typeof===V5&&(C._payload.status==="fulfilled"?p(C._payload.value)&&C._payload.value._store&&(C._payload.value._store.validated=1):C._store&&(C._store.validated=1))}function p(C){return typeof C==="object"&&C!==null&&C.$$typeof===F0}function n(C){var y={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(r){return y[r]})}function a(C,y){return typeof C==="object"&&C!==null&&C.key!=null?(W(C.key),n(""+C.key)):y.toString(36)}function Q0(C){switch(C.status){case"fulfilled":return C.value;case"rejected":throw C.reason;default:switch(typeof C.status==="string"?C.then(H,H):(C.status="pending",C.then(function(y){C.status==="pending"&&(C.status="fulfilled",C.value=y)},function(y){C.status==="pending"&&(C.status="rejected",C.reason=y)})),C.status){case"fulfilled":return C.value;case"rejected":throw C.reason}}throw C}function t(C,y,r,Z0,N0){var j0=typeof C;if(j0==="undefined"||j0==="boolean")C=null;var k0=!1;if(C===null)k0=!0;else switch(j0){case"bigint":case"string":case"number":k0=!0;break;case"object":switch(C.$$typeof){case F0:case a0:k0=!0;break;case V5:return k0=C._init,t(k0(C._payload),y,r,Z0,N0)}}if(k0){k0=C,N0=N0(k0);var J1=Z0===""?"."+a(k0,0):Z0;return W1(N0)?(r="",J1!=null&&(r=J1.replace(Z9,"$&/")+"/"),t(N0,y,r,"",function(A5){return A5})):N0!=null&&(p(N0)&&(N0.key!=null&&(k0&&k0.key===N0.key||W(N0.key)),r=j(N0,r+(N0.key==null||k0&&k0.key===N0.key?"":(""+N0.key).replace(Z9,"$&/")+"/")+J1),Z0!==""&&k0!=null&&p(k0)&&k0.key==null&&k0._store&&!k0._store.validated&&(r._store.validated=2),N0=r),y.push(N0)),1}if(k0=0,J1=Z0===""?".":Z0+":",W1(C))for(var _0=0;_0<C.length;_0++)Z0=C[_0],j0=J1+a(Z0,_0),k0+=t(Z0,y,r,j0,N0);else if(_0=G(C),typeof _0==="function")for(_0===C.entries&&($9||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),$9=!0),C=_0.call(C),_0=0;!(Z0=C.next()).done;)Z0=Z0.value,j0=J1+a(Z0,_0++),k0+=t(Z0,y,r,j0,N0);else if(j0==="object"){if(typeof C.then==="function")return t(Q0(C),y,r,Z0,N0);throw y=String(C),Error("Objects are not valid as a React child (found: "+(y==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":y)+"). If you meant to render a collection of children, use an array instead.")}return k0}function i(C,y,r){if(C==null)return C;var Z0=[],N0=0;return t(C,Z0,"","",function(j0){return y.call(r,j0,N0++)}),Z0}function X0(C){if(C._status===-1){var y=C._ioInfo;y!=null&&(y.start=y.end=performance.now()),y=C._result;var r=y();if(r.then(function(N0){if(C._status===0||C._status===-1){C._status=1,C._result=N0;var j0=C._ioInfo;j0!=null&&(j0.end=performance.now()),r.status===void 0&&(r.status="fulfilled",r.value=N0)}},function(N0){if(C._status===0||C._status===-1){C._status=2,C._result=N0;var j0=C._ioInfo;j0!=null&&(j0.end=performance.now()),r.status===void 0&&(r.status="rejected",r.reason=N0)}}),y=C._ioInfo,y!=null){y.value=r;var Z0=r.displayName;typeof Z0==="string"&&(y.name=Z0)}C._status===-1&&(C._status=0,C._result=r)}if(C._status===1)return y=C._result,y===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
2
2
|
|
|
3
3
|
Your code should look like:
|
|
4
4
|
const MyComponent = lazy(() => import('./MyComponent'))
|
|
@@ -10,67 +10,67 @@ Your code should look like:
|
|
|
10
10
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
11
11
|
2. You might be breaking the Rules of Hooks
|
|
12
12
|
3. You might have more than one copy of React in the same app
|
|
13
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),C}function H0(){y0.asyncTransitions--}function P0(C){if(o2===null)try{var y=("require"+Math.random()).slice(0,7);o2=(XX&&XX[y]).call(XX,"timers").setImmediate}catch(r){o2=function(Z0){HJ===!1&&(HJ=!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 N0=new MessageChannel;N0.port1.onmessage=Z0,N0.port2.postMessage(void 0)}}return o2(C)}function I0(C){return 1<C.length&&typeof AggregateError==="function"?AggregateError(C):C[0]}function b0(C,y){y!==a2-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. "),a2=y}function l(C,y,r){var Z0=y0.actQueue;if(Z0!==null)if(Z0.length!==0)try{q0(Z0),P0(function(){return l(C,y,r)});return}catch(N0){y0.thrownErrors.push(N0)}else y0.actQueue=null;0<y0.thrownErrors.length?(Z0=I0(y0.thrownErrors),y0.thrownErrors.length=0,r(Z0)):y(C)}function q0(C){if(!t2){t2=!0;var y=0;try{for(;y<C.length;y++){var r=C[y];do{y0.didUsePromise=!1;var Z0=r(!1);if(Z0!==null){if(y0.didUsePromise){C[y]=r,C.splice(0,y);return}r=Z0}else break}while(1)}C.length=0}catch(N0){C.splice(0,y+1),y0.thrownErrors.push(N0)}finally{t2=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var F0=Symbol.for("react.transitional.element"),a0=Symbol.for("react.portal"),d0=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),M0=Symbol.for("react.consumer"),W0=Symbol.for("react.context"),p0=Symbol.for("react.forward_ref"),p1=Symbol.for("react.suspense"),k0=Symbol.for("react.suspense_list"),i1=Symbol.for("react.memo"),E5=Symbol.for("react.lazy"),$4=Symbol.for("react.activity"),KJ=Symbol.iterator,X0={},X7={isMounted:function(){return!1},enqueueForceUpdate:function(C){X(C,"forceUpdate")},enqueueReplaceState:function(C){X(C,"replaceState")},enqueueSetState:function(C){X(C,"setState")}},r2=Object.assign,h8={};Object.freeze(h8),q.prototype.isReactComponent={},q.prototype.setState=function(C,y){if(typeof C!=="object"&&typeof C!=="function"&&C!=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,C,y,"setState")},q.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};var B5={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(x8 in B5)B5.hasOwnProperty(x8)&&Q(x8,B5[x8]);N.prototype=q.prototype,B5=K.prototype=new N,B5.constructor=K,r2(B5,q.prototype),B5.isPureReactComponent=!0;var w1=Array.isArray,b$=Symbol.for("react.client.reference"),y0={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},q7=Object.prototype.hasOwnProperty,C1=console.createTask?console.createTask:function(){return null};B5={react_stack_bottom_frame:function(C){return C()}};var BJ,M4,n2={},s2=B5.react_stack_bottom_frame.bind(B5,P)(),bX=C1(R(P)),Y7=!1,N7=/\/+/g,u8=typeof reportError==="function"?reportError:function(C){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof C==="object"&&C!==null&&typeof C.message==="string"?String(C.message):String(C),error:C});if(!window.dispatchEvent(y))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",C);return}console.error(C)},HJ=!1,o2=null,a2=0,i2=!1,t2=!1,k$=typeof queueMicrotask==="function"?function(C){queueMicrotask(function(){return queueMicrotask(C)})}:P0;B5=Object.freeze({__proto__:null,c:function(C){return d().useMemoCache(C)}});var x8={map:i,forEach:function(C,y,r){i(C,function(){y.apply(this,arguments)},r)},count:function(C){var y=0;return i(C,function(){y++}),y},toArray:function(C){return i(C,function(y){return y})||[]},only:function(C){if(!p(C))throw Error("React.Children.only expected to receive a single React element child.");return C}};Zj.Activity=$4,Zj.Children=x8,Zj.Component=q,Zj.Fragment=d0,Zj.Profiler=o,Zj.PureComponent=K,Zj.StrictMode=v,Zj.Suspense=p1,Zj.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=y0,Zj.__COMPILER_RUNTIME=B5,Zj.act=function(C){var y=y0.actQueue,r=a2;a2++;var Z0=y0.actQueue=y!==null?y:[],N0=!1;try{var D0=C()}catch(_0){y0.thrownErrors.push(_0)}if(0<y0.thrownErrors.length)throw b0(y,r),C=I0(y0.thrownErrors),y0.thrownErrors.length=0,C;if(D0!==null&&typeof D0==="object"&&typeof D0.then==="function"){var v0=D0;return k$(function(){N0||i2||(i2=!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(_0,S5){N0=!0,v0.then(function(H6){if(b0(y,r),r===0){try{q0(Z0),P0(function(){return l(H6,_0,S5)})}catch(f$){y0.thrownErrors.push(f$)}if(0<y0.thrownErrors.length){var m8=I0(y0.thrownErrors);y0.thrownErrors.length=0,S5(m8)}}else _0(H6)},function(H6){b0(y,r),0<y0.thrownErrors.length?(H6=I0(y0.thrownErrors),y0.thrownErrors.length=0,S5(H6)):S5(H6)})}}}var Q1=D0;if(b0(y,r),r===0&&(q0(Z0),Z0.length!==0&&k$(function(){N0||i2||(i2=!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(() => ...)"))}),y0.actQueue=null),0<y0.thrownErrors.length)throw C=I0(y0.thrownErrors),y0.thrownErrors.length=0,C;return{then:function(_0,S5){N0=!0,r===0?(y0.actQueue=Z0,P0(function(){return l(Q1,_0,S5)})):_0(Q1)}}},Zj.cache=function(C){return function(){return C.apply(null,arguments)}},Zj.cacheSignal=function(){return null},Zj.captureOwnerStack=function(){var C=y0.getCurrentStack;return C===null?null:C()},Zj.cloneElement=function(C,y,r){if(C===null||C===void 0)throw Error("The argument must be a React element, but you passed "+C+".");var Z0=r2({},C.props),N0=C.key,D0=C._owner;if(y!=null){var v0;$:{if(q7.call(y,"ref")&&(v0=Object.getOwnPropertyDescriptor(y,"ref").get)&&v0.isReactWarning){v0=!1;break $}v0=y.ref!==void 0}v0&&(D0=_()),I(y)&&(M(y.key),N0=""+y.key);for(Q1 in y)!q7.call(y,Q1)||Q1==="key"||Q1==="__self"||Q1==="__source"||Q1==="ref"&&y.ref===void 0||(Z0[Q1]=y[Q1])}var Q1=arguments.length-2;if(Q1===1)Z0.children=r;else if(1<Q1){v0=Array(Q1);for(var _0=0;_0<Q1;_0++)v0[_0]=arguments[_0+2];Z0.children=v0}Z0=O(C.type,N0,Z0,D0,C._debugStack,C._debugTask);for(N0=2;N0<arguments.length;N0++)h(arguments[N0]);return Z0},Zj.createContext=function(C){return C={$$typeof:W0,_currentValue:C,_currentValue2:C,_threadCount:0,Provider:null,Consumer:null},C.Provider=C,C.Consumer={$$typeof:M0,_context:C},C._currentRenderer=null,C._currentRenderer2=null,C},Zj.createElement=function(C,y,r){for(var Z0=2;Z0<arguments.length;Z0++)h(arguments[Z0]);Z0={};var N0=null;if(y!=null)for(_0 in M4||!("__self"in y)||"key"in y||(M4=!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")),I(y)&&(M(y.key),N0=""+y.key),y)q7.call(y,_0)&&_0!=="key"&&_0!=="__self"&&_0!=="__source"&&(Z0[_0]=y[_0]);var D0=arguments.length-2;if(D0===1)Z0.children=r;else if(1<D0){for(var v0=Array(D0),Q1=0;Q1<D0;Q1++)v0[Q1]=arguments[Q1+2];Object.freeze&&Object.freeze(v0),Z0.children=v0}if(C&&C.defaultProps)for(_0 in D0=C.defaultProps,D0)Z0[_0]===void 0&&(Z0[_0]=D0[_0]);N0&&A(Z0,typeof C==="function"?C.displayName||C.name||"Unknown":C);var _0=1e4>y0.recentlyCreatedOwnerStacks++;return O(C,N0,Z0,_(),_0?Error("react-stack-top-frame"):s2,_0?C1(R(C)):bX)},Zj.createRef=function(){var C={current:null};return Object.seal(C),C},Zj.forwardRef=function(C){C!=null&&C.$$typeof===i1?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof C!=="function"?console.error("forwardRef requires a render function but was given %s.",C===null?"null":typeof C):C.length!==0&&C.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",C.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),C!=null&&C.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var y={$$typeof:p0,render:C},r;return Object.defineProperty(y,"displayName",{enumerable:!1,configurable:!0,get:function(){return r},set:function(Z0){r=Z0,C.name||C.displayName||(Object.defineProperty(C,"name",{value:Z0}),C.displayName=Z0)}}),y},Zj.isValidElement=p,Zj.lazy=function(C){C={_status:-1,_result:C};var y={$$typeof:E5,_payload:C,_init:Y0},r={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return C._ioInfo=r,y._debugInfo=[{awaited:r}],y},Zj.memo=function(C,y){C==null&&console.error("memo: The first argument must be a component. Instead received: %s",C===null?"null":typeof C),y={$$typeof:i1,type:C,compare:y===void 0?null:y};var r;return Object.defineProperty(y,"displayName",{enumerable:!1,configurable:!0,get:function(){return r},set:function(Z0){r=Z0,C.name||C.displayName||(Object.defineProperty(C,"name",{value:Z0}),C.displayName=Z0)}}),y},Zj.startTransition=function(C){var y=y0.T,r={};r._updatedFibers=new Set,y0.T=r;try{var Z0=C(),N0=y0.S;N0!==null&&N0(r,Z0),typeof Z0==="object"&&Z0!==null&&typeof Z0.then==="function"&&(y0.asyncTransitions++,Z0.then(H0,H0),Z0.then(H,u8))}catch(D0){u8(D0)}finally{y===null&&r._updatedFibers&&(C=r._updatedFibers.size,r._updatedFibers.clear(),10<C&&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.")),y!==null&&r.types!==null&&(y.types!==null&&y.types!==r.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."),y.types=r.types),y0.T=y}},Zj.unstable_useCacheRefresh=function(){return d().useCacheRefresh()},Zj.use=function(C){return d().use(C)},Zj.useActionState=function(C,y,r){return d().useActionState(C,y,r)},Zj.useCallback=function(C,y){return d().useCallback(C,y)},Zj.useContext=function(C){var y=d();return C.$$typeof===M0&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),y.useContext(C)},Zj.useDebugValue=function(C,y){return d().useDebugValue(C,y)},Zj.useDeferredValue=function(C,y){return d().useDeferredValue(C,y)},Zj.useEffect=function(C,y){return C==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),d().useEffect(C,y)},Zj.useEffectEvent=function(C){return d().useEffectEvent(C)},Zj.useId=function(){return d().useId()},Zj.useImperativeHandle=function(C,y,r){return d().useImperativeHandle(C,y,r)},Zj.useInsertionEffect=function(C,y){return C==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),d().useInsertionEffect(C,y)},Zj.useLayoutEffect=function(C,y){return C==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),d().useLayoutEffect(C,y)},Zj.useMemo=function(C,y){return d().useMemo(C,y)},Zj.useOptimistic=function(C,y){return d().useOptimistic(C,y)},Zj.useReducer=function(C,y,r){return d().useReducer(C,y,r)},Zj.useRef=function(C){return d().useRef(C)},Zj.useState=function(C){return d().useState(C)},Zj.useSyncExternalStore=function(C,y,r){return d().useSyncExternalStore(C,y,r)},Zj.useTransition=function(){return d().useTransition()},Zj.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var t_=E2((Qj)=>{var PK=n(T1());(function(){function Q(){}function J(R){return""+R}function X(R,_,P){var I=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{J(I);var A=!1}catch(V){A=!0}return A&&(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&&I[Symbol.toStringTag]||I.constructor.name||"Object"),J(I)),{$$typeof:M,key:I==null?null:""+I,children:R,containerInfo:_,implementation:P}}function q(R,_){if(R==="font")return"";if(typeof _==="string")return _==="use-credentials"?_:""}function N(R){return R===null?"`null`":R===void 0?"`undefined`":R===""?"an empty string":'something with type "'+typeof R+'"'}function K(R){return R===null?"`null`":R===void 0?"`undefined`":R===""?"an empty string":typeof R==="string"?JSON.stringify(R):typeof R==="number"?"`"+R+"`":'something with type "'+typeof R+'"'}function H(){var R=w.H;return R===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.`),C}function H0(){y0.asyncTransitions--}function P0(C){if(c2===null)try{var y=("require"+Math.random()).slice(0,7);c2=(l3&&l3[y]).call(l3,"timers").setImmediate}catch(r){c2=function(Z0){tJ===!1&&(tJ=!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 N0=new MessageChannel;N0.port1.onmessage=Z0,N0.port2.postMessage(void 0)}}return c2(C)}function O0(C){return 1<C.length&&typeof AggregateError==="function"?AggregateError(C):C[0]}function v0(C,y){y!==l2-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. "),l2=y}function l(C,y,r){var Z0=y0.actQueue;if(Z0!==null)if(Z0.length!==0)try{Y0(Z0),P0(function(){return l(C,y,r)});return}catch(N0){y0.thrownErrors.push(N0)}else y0.actQueue=null;0<y0.thrownErrors.length?(Z0=O0(y0.thrownErrors),y0.thrownErrors.length=0,r(Z0)):y(C)}function Y0(C){if(!s2){s2=!0;var y=0;try{for(;y<C.length;y++){var r=C[y];do{y0.didUsePromise=!1;var Z0=r(!1);if(Z0!==null){if(y0.didUsePromise){C[y]=r,C.splice(0,y);return}r=Z0}else break}while(1)}C.length=0}catch(N0){C.splice(0,y+1),y0.thrownErrors.push(N0)}finally{s2=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var F0=Symbol.for("react.transitional.element"),a0=Symbol.for("react.portal"),d0=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),W0=Symbol.for("react.consumer"),z0=Symbol.for("react.context"),p0=Symbol.for("react.forward_ref"),m1=Symbol.for("react.suspense"),b0=Symbol.for("react.suspense_list"),o1=Symbol.for("react.memo"),V5=Symbol.for("react.lazy"),i6=Symbol.for("react.activity"),aJ=Symbol.iterator,q0={},t7={isMounted:function(){return!1},enqueueForceUpdate:function(C){q(C,"forceUpdate")},enqueueReplaceState:function(C){q(C,"replaceState")},enqueueSetState:function(C){q(C,"setState")}},m2=Object.assign,k8={};Object.freeze(k8),X.prototype.isReactComponent={},X.prototype.setState=function(C,y){if(typeof C!=="object"&&typeof C!=="function"&&C!=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,C,y,"setState")},X.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};var U5={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(b8 in U5)U5.hasOwnProperty(b8)&&J(b8,U5[b8]);N.prototype=X.prototype,U5=K.prototype=new N,U5.constructor=K,m2(U5,X.prototype),U5.isPureReactComponent=!0;var W1=Array.isArray,P$=Symbol.for("react.client.reference"),y0={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},e7=Object.prototype.hasOwnProperty,P1=console.createTask?console.createTask:function(){return null};U5={react_stack_bottom_frame:function(C){return C()}};var iJ,B4,d2={},p2=U5.react_stack_bottom_frame.bind(U5,P)(),zq=P1(R(P)),$9=!1,Z9=/\/+/g,v8=typeof reportError==="function"?reportError:function(C){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof C==="object"&&C!==null&&typeof C.message==="string"?String(C.message):String(C),error:C});if(!window.dispatchEvent(y))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",C);return}console.error(C)},tJ=!1,c2=null,l2=0,r2=!1,s2=!1,T$=typeof queueMicrotask==="function"?function(C){queueMicrotask(function(){return queueMicrotask(C)})}:P0;U5=Object.freeze({__proto__:null,c:function(C){return d().useMemoCache(C)}});var b8={map:i,forEach:function(C,y,r){i(C,function(){y.apply(this,arguments)},r)},count:function(C){var y=0;return i(C,function(){y++}),y},toArray:function(C){return i(C,function(y){return y})||[]},only:function(C){if(!p(C))throw Error("React.Children.only expected to receive a single React element child.");return C}};QS.Activity=i6,QS.Children=b8,QS.Component=X,QS.Fragment=d0,QS.Profiler=o,QS.PureComponent=K,QS.StrictMode=k,QS.Suspense=m1,QS.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=y0,QS.__COMPILER_RUNTIME=U5,QS.act=function(C){var y=y0.actQueue,r=l2;l2++;var Z0=y0.actQueue=y!==null?y:[],N0=!1;try{var j0=C()}catch(_0){y0.thrownErrors.push(_0)}if(0<y0.thrownErrors.length)throw v0(y,r),C=O0(y0.thrownErrors),y0.thrownErrors.length=0,C;if(j0!==null&&typeof j0==="object"&&typeof j0.then==="function"){var k0=j0;return T$(function(){N0||r2||(r2=!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(_0,A5){N0=!0,k0.then(function(U6){if(v0(y,r),r===0){try{Y0(Z0),P0(function(){return l(U6,_0,A5)})}catch(C$){y0.thrownErrors.push(C$)}if(0<y0.thrownErrors.length){var f8=O0(y0.thrownErrors);y0.thrownErrors.length=0,A5(f8)}}else _0(U6)},function(U6){v0(y,r),0<y0.thrownErrors.length?(U6=O0(y0.thrownErrors),y0.thrownErrors.length=0,A5(U6)):A5(U6)})}}}var J1=j0;if(v0(y,r),r===0&&(Y0(Z0),Z0.length!==0&&T$(function(){N0||r2||(r2=!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(() => ...)"))}),y0.actQueue=null),0<y0.thrownErrors.length)throw C=O0(y0.thrownErrors),y0.thrownErrors.length=0,C;return{then:function(_0,A5){N0=!0,r===0?(y0.actQueue=Z0,P0(function(){return l(J1,_0,A5)})):_0(J1)}}},QS.cache=function(C){return function(){return C.apply(null,arguments)}},QS.cacheSignal=function(){return null},QS.captureOwnerStack=function(){var C=y0.getCurrentStack;return C===null?null:C()},QS.cloneElement=function(C,y,r){if(C===null||C===void 0)throw Error("The argument must be a React element, but you passed "+C+".");var Z0=m2({},C.props),N0=C.key,j0=C._owner;if(y!=null){var k0;$:{if(e7.call(y,"ref")&&(k0=Object.getOwnPropertyDescriptor(y,"ref").get)&&k0.isReactWarning){k0=!1;break $}k0=y.ref!==void 0}k0&&(j0=_()),O(y)&&(W(y.key),N0=""+y.key);for(J1 in y)!e7.call(y,J1)||J1==="key"||J1==="__self"||J1==="__source"||J1==="ref"&&y.ref===void 0||(Z0[J1]=y[J1])}var J1=arguments.length-2;if(J1===1)Z0.children=r;else if(1<J1){k0=Array(J1);for(var _0=0;_0<J1;_0++)k0[_0]=arguments[_0+2];Z0.children=k0}Z0=I(C.type,N0,Z0,j0,C._debugStack,C._debugTask);for(N0=2;N0<arguments.length;N0++)h(arguments[N0]);return Z0},QS.createContext=function(C){return C={$$typeof:z0,_currentValue:C,_currentValue2:C,_threadCount:0,Provider:null,Consumer:null},C.Provider=C,C.Consumer={$$typeof:W0,_context:C},C._currentRenderer=null,C._currentRenderer2=null,C},QS.createElement=function(C,y,r){for(var Z0=2;Z0<arguments.length;Z0++)h(arguments[Z0]);Z0={};var N0=null;if(y!=null)for(_0 in B4||!("__self"in y)||"key"in y||(B4=!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")),O(y)&&(W(y.key),N0=""+y.key),y)e7.call(y,_0)&&_0!=="key"&&_0!=="__self"&&_0!=="__source"&&(Z0[_0]=y[_0]);var j0=arguments.length-2;if(j0===1)Z0.children=r;else if(1<j0){for(var k0=Array(j0),J1=0;J1<j0;J1++)k0[J1]=arguments[J1+2];Object.freeze&&Object.freeze(k0),Z0.children=k0}if(C&&C.defaultProps)for(_0 in j0=C.defaultProps,j0)Z0[_0]===void 0&&(Z0[_0]=j0[_0]);N0&&E(Z0,typeof C==="function"?C.displayName||C.name||"Unknown":C);var _0=1e4>y0.recentlyCreatedOwnerStacks++;return I(C,N0,Z0,_(),_0?Error("react-stack-top-frame"):p2,_0?P1(R(C)):zq)},QS.createRef=function(){var C={current:null};return Object.seal(C),C},QS.forwardRef=function(C){C!=null&&C.$$typeof===o1?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof C!=="function"?console.error("forwardRef requires a render function but was given %s.",C===null?"null":typeof C):C.length!==0&&C.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",C.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),C!=null&&C.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var y={$$typeof:p0,render:C},r;return Object.defineProperty(y,"displayName",{enumerable:!1,configurable:!0,get:function(){return r},set:function(Z0){r=Z0,C.name||C.displayName||(Object.defineProperty(C,"name",{value:Z0}),C.displayName=Z0)}}),y},QS.isValidElement=p,QS.lazy=function(C){C={_status:-1,_result:C};var y={$$typeof:V5,_payload:C,_init:X0},r={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return C._ioInfo=r,y._debugInfo=[{awaited:r}],y},QS.memo=function(C,y){C==null&&console.error("memo: The first argument must be a component. Instead received: %s",C===null?"null":typeof C),y={$$typeof:o1,type:C,compare:y===void 0?null:y};var r;return Object.defineProperty(y,"displayName",{enumerable:!1,configurable:!0,get:function(){return r},set:function(Z0){r=Z0,C.name||C.displayName||(Object.defineProperty(C,"name",{value:Z0}),C.displayName=Z0)}}),y},QS.startTransition=function(C){var y=y0.T,r={};r._updatedFibers=new Set,y0.T=r;try{var Z0=C(),N0=y0.S;N0!==null&&N0(r,Z0),typeof Z0==="object"&&Z0!==null&&typeof Z0.then==="function"&&(y0.asyncTransitions++,Z0.then(H0,H0),Z0.then(H,v8))}catch(j0){v8(j0)}finally{y===null&&r._updatedFibers&&(C=r._updatedFibers.size,r._updatedFibers.clear(),10<C&&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.")),y!==null&&r.types!==null&&(y.types!==null&&y.types!==r.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."),y.types=r.types),y0.T=y}},QS.unstable_useCacheRefresh=function(){return d().useCacheRefresh()},QS.use=function(C){return d().use(C)},QS.useActionState=function(C,y,r){return d().useActionState(C,y,r)},QS.useCallback=function(C,y){return d().useCallback(C,y)},QS.useContext=function(C){var y=d();return C.$$typeof===W0&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),y.useContext(C)},QS.useDebugValue=function(C,y){return d().useDebugValue(C,y)},QS.useDeferredValue=function(C,y){return d().useDeferredValue(C,y)},QS.useEffect=function(C,y){return C==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),d().useEffect(C,y)},QS.useEffectEvent=function(C){return d().useEffectEvent(C)},QS.useId=function(){return d().useId()},QS.useImperativeHandle=function(C,y,r){return d().useImperativeHandle(C,y,r)},QS.useInsertionEffect=function(C,y){return C==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),d().useInsertionEffect(C,y)},QS.useLayoutEffect=function(C,y){return C==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),d().useLayoutEffect(C,y)},QS.useMemo=function(C,y){return d().useMemo(C,y)},QS.useOptimistic=function(C,y){return d().useOptimistic(C,y)},QS.useReducer=function(C,y,r){return d().useReducer(C,y,r)},QS.useRef=function(C){return d().useRef(C)},QS.useState=function(C){return d().useState(C)},QS.useSyncExternalStore=function(C,y,r){return d().useSyncExternalStore(C,y,r)},QS.useTransition=function(){return d().useTransition()},QS.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var D_=T2((GS)=>{var QK=s(L1());(function(){function J(){}function G(R){return""+R}function q(R,_,P){var O=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{G(O);var E=!1}catch(V){E=!0}return E&&(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&&O[Symbol.toStringTag]||O.constructor.name||"Object"),G(O)),{$$typeof:W,key:O==null?null:""+O,children:R,containerInfo:_,implementation:P}}function X(R,_){if(R==="font")return"";if(typeof _==="string")return _==="use-credentials"?_:""}function N(R){return R===null?"`null`":R===void 0?"`undefined`":R===""?"an empty string":'something with type "'+typeof R+'"'}function K(R){return R===null?"`null`":R===void 0?"`undefined`":R===""?"an empty string":typeof R==="string"?JSON.stringify(R):typeof R==="number"?"`"+R+"`":'something with type "'+typeof R+'"'}function H(){var R=M.H;return R===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.`),R}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var F={d:{f:Q,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:Q,C:Q,L:Q,m:Q,X:Q,S:Q,M:Q},p:0,findDOMNode:null},M=Symbol.for("react.portal"),w=PK.__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"),Qj.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=F,Qj.createPortal=function(R,_){var P=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!_||_.nodeType!==1&&_.nodeType!==9&&_.nodeType!==11)throw Error("Target container is not a DOM element.");return X(R,_,null,P)},Qj.flushSync=function(R){var _=w.T,P=F.p;try{if(w.T=null,F.p=2,R)return R()}finally{w.T=_,F.p=P,F.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.")}},Qj.preconnect=function(R,_){typeof R==="string"&&R?_!=null&&typeof _!=="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.",K(_)):_!=null&&typeof _.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.",N(_.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",N(R)),typeof R==="string"&&(_?(_=_.crossOrigin,_=typeof _==="string"?_==="use-credentials"?_:"":void 0):_=null,F.d.C(R,_))},Qj.prefetchDNS=function(R){if(typeof R!=="string"||!R)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",N(R));else if(1<arguments.length){var _=arguments[1];typeof _==="object"&&_.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`.",K(_)):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`.",K(_))}typeof R==="string"&&F.d.D(R)},Qj.preinit=function(R,_){if(typeof R==="string"&&R?_==null||typeof _!=="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.",K(_)):_.as!=="style"&&_.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".',K(_.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",N(R)),typeof R==="string"&&_&&typeof _.as==="string"){var P=_.as,I=q(P,_.crossOrigin),A=typeof _.integrity==="string"?_.integrity:void 0,V=typeof _.fetchPriority==="string"?_.fetchPriority:void 0;P==="style"?F.d.S(R,typeof _.precedence==="string"?_.precedence:void 0,{crossOrigin:I,integrity:A,fetchPriority:V}):P==="script"&&F.d.X(R,{crossOrigin:I,integrity:A,fetchPriority:V,nonce:typeof _.nonce==="string"?_.nonce:void 0})}},Qj.preinitModule=function(R,_){var P="";if(typeof R==="string"&&R||(P+=" The `href` argument encountered was "+N(R)+"."),_!==void 0&&typeof _!=="object"?P+=" The `options` argument encountered was "+N(_)+".":_&&("as"in _)&&_.as!=="script"&&(P+=" The `as` option encountered was "+K(_.as)+"."),P)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",P);else switch(P=_&&typeof _.as==="string"?_.as:"script",P){case"script":break;default:P=K(P),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)',P,R)}if(typeof R==="string")if(typeof _==="object"&&_!==null){if(_.as==null||_.as==="script")P=q(_.as,_.crossOrigin),F.d.M(R,{crossOrigin:P,integrity:typeof _.integrity==="string"?_.integrity:void 0,nonce:typeof _.nonce==="string"?_.nonce:void 0})}else _==null&&F.d.M(R)},Qj.preload=function(R,_){var P="";if(typeof R==="string"&&R||(P+=" The `href` argument encountered was "+N(R)+"."),_==null||typeof _!=="object"?P+=" The `options` argument encountered was "+N(_)+".":typeof _.as==="string"&&_.as||(P+=" The `as` option encountered was "+N(_.as)+"."),P&&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',P),typeof R==="string"&&typeof _==="object"&&_!==null&&typeof _.as==="string"){P=_.as;var I=q(P,_.crossOrigin);F.d.L(R,P,{crossOrigin:I,integrity:typeof _.integrity==="string"?_.integrity:void 0,nonce:typeof _.nonce==="string"?_.nonce:void 0,type:typeof _.type==="string"?_.type:void 0,fetchPriority:typeof _.fetchPriority==="string"?_.fetchPriority:void 0,referrerPolicy:typeof _.referrerPolicy==="string"?_.referrerPolicy:void 0,imageSrcSet:typeof _.imageSrcSet==="string"?_.imageSrcSet:void 0,imageSizes:typeof _.imageSizes==="string"?_.imageSizes:void 0,media:typeof _.media==="string"?_.media:void 0})}},Qj.preloadModule=function(R,_){var P="";typeof R==="string"&&R||(P+=" The `href` argument encountered was "+N(R)+"."),_!==void 0&&typeof _!=="object"?P+=" The `options` argument encountered was "+N(_)+".":_&&("as"in _)&&typeof _.as!=="string"&&(P+=" The `as` option encountered was "+N(_.as)+"."),P&&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',P),typeof R==="string"&&(_?(P=q(_.as,_.crossOrigin),F.d.m(R,{as:typeof _.as==="string"&&_.as!=="script"?_.as:void 0,crossOrigin:P,integrity:typeof _.integrity==="string"?_.integrity:void 0})):F.d.m(R))},Qj.requestFormReset=function(R){F.d.r(R)},Qj.unstable_batchedUpdates=function(R,_){return R(_)},Qj.useFormState=function(R,_,P){return H().useFormState(R,_,P)},Qj.useFormStatus=function(){return H().useHostTransitionStatus()},Qj.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var $L=E2((cb,e_)=>{var Jj=n(t_());e_.exports=Jj});var ZL=E2((Gj)=>{var G1=n(i_()),P$=n(T1()),TK=n($L());(function(){function Q($,Z){for($=$.memoizedState;$!==null&&0<Z;)$=$.next,Z--;return $}function J($,Z,G,Y){if(G>=Z.length)return Y;var U=Z[G],B=q5($)?$.slice():l0({},$);return B[U]=J($[U],Z,G+1,Y),B}function X($,Z,G){if(Z.length!==G.length)console.warn("copyWithRename() expects paths of the same length");else{for(var Y=0;Y<G.length-1;Y++)if(Z[Y]!==G[Y]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return q($,Z,G,0)}}function q($,Z,G,Y){var U=Z[Y],B=q5($)?$.slice():l0({},$);return Y+1===Z.length?(B[G[Y]]=B[U],q5(B)?B.splice(U,1):delete B[U]):B[U]=q($[U],Z,G,Y+1),B}function N($,Z,G){var Y=Z[G],U=q5($)?$.slice():l0({},$);if(G+1===Z.length)return q5(U)?U.splice(Y,1):delete U[Y],U;return U[Y]=N($[Y],Z,G+1),U}function K(){return!1}function H(){return null}function F(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}function M(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}function w(){}function R(){}function _($){var Z=[];return $.forEach(function(G){Z.push(G)}),Z.sort().join(", ")}function P($,Z,G,Y){return new ET($,Z,G,Y)}function I($,Z){$.context===Y2&&(bY($.current,2,Z,$,null,null),P7())}function A($,Z){if(y6!==null){var G=Z.staleFamilies;Z=Z.updatedFamilies,YZ(),yB($.current,Z,G),P7()}}function V($){y6=$}function O($){return!(!$||$.nodeType!==1&&$.nodeType!==9&&$.nodeType!==11)}function D($){var Z=$,G=$;if($.alternate)for(;Z.return;)Z=Z.return;else{$=Z;do Z=$,(Z.flags&4098)!==0&&(G=Z.return),$=Z.return;while($)}return Z.tag===3?G:null}function h($){if($.tag===13){var Z=$.memoizedState;if(Z===null&&($=$.alternate,$!==null&&(Z=$.memoizedState)),Z!==null)return Z.dehydrated}return null}function p($){if($.tag===31){var Z=$.memoizedState;if(Z===null&&($=$.alternate,$!==null&&(Z=$.memoizedState)),Z!==null)return Z.dehydrated}return null}function s($){if(D($)!==$)throw Error("Unable to find node on an unmounted component.")}function a($){var Z=$.alternate;if(!Z){if(Z=D($),Z===null)throw Error("Unable to find node on an unmounted component.");return Z!==$?null:$}for(var G=$,Y=Z;;){var U=G.return;if(U===null)break;var B=U.alternate;if(B===null){if(Y=U.return,Y!==null){G=Y;continue}break}if(U.child===B.child){for(B=U.child;B;){if(B===G)return s(U),$;if(B===Y)return s(U),Z;B=B.sibling}throw Error("Unable to find node on an unmounted component.")}if(G.return!==Y.return)G=U,Y=B;else{for(var W=!1,z=U.child;z;){if(z===G){W=!0,G=U,Y=B;break}if(z===Y){W=!0,Y=U,G=B;break}z=z.sibling}if(!W){for(z=B.child;z;){if(z===G){W=!0,G=B,Y=U;break}if(z===Y){W=!0,Y=B,G=U;break}z=z.sibling}if(!W)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(G.alternate!==Y)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(G.tag!==3)throw Error("Unable to find node on an unmounted component.");return G.stateNode.current===G?$:Z}function J0($){var Z=$.tag;if(Z===5||Z===26||Z===27||Z===6)return $;for($=$.child;$!==null;){if(Z=J0($),Z!==null)return Z;$=$.sibling}return null}function t($){if($===null||typeof $!=="object")return null;return $=pM&&$[pM]||$["@@iterator"],typeof $==="function"?$:null}function i($){if($==null)return null;if(typeof $==="function")return $.$$typeof===oC?null:$.displayName||$.name||null;if(typeof $==="string")return $;switch($){case E7:return"Fragment";case uY:return"Profiler";case PG:return"StrictMode";case mY:return"Suspense";case dY:return"SuspenseList";case pY:return"Activity"}if(typeof $==="object")switch(typeof $.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),$.$$typeof){case A7:return"Portal";case v4:return $.displayName||"Context";case xY:return($._context.displayName||"Context")+".Consumer";case RZ:var Z=$.render;return $=$.displayName,$||($=Z.displayName||Z.name||"",$=$!==""?"ForwardRef("+$+")":"ForwardRef"),$;case TG:return Z=$.displayName||null,Z!==null?Z:i($.type)||"Memo";case P6:Z=$._payload,$=$._init;try{return i($(Z))}catch(G){}}return null}function Y0($){return typeof $.tag==="number"?d($):typeof $.name==="string"?$.name:null}function d($){var Z=$.type;switch($.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(Z._context.displayName||"Context")+".Consumer";case 10:return Z.displayName||"Context";case 18:return"DehydratedFragment";case 11:return $=Z.render,$=$.displayName||$.name||"",Z.displayName||($!==""?"ForwardRef("+$+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return Z;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return i(Z);case 8:return Z===PG?"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 Z==="function")return Z.displayName||Z.name||null;if(typeof Z==="string")return Z;break;case 29:if(Z=$._debugInfo,Z!=null){for(var G=Z.length-1;0<=G;G--)if(typeof Z[G].name==="string")return Z[G].name}if($.return!==null)return d($.return)}return null}function H0($){return{current:$}}function P0($,Z){0>Y8?console.error("Unexpected pop."):(Z!==lY[Y8]&&console.error("Unexpected Fiber popped."),$.current=cY[Y8],cY[Y8]=null,lY[Y8]=null,Y8--)}function I0($,Z,G){Y8++,cY[Y8]=$.current,lY[Y8]=G,$.current=Z}function b0($){return $===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),$}function l($,Z){I0(Z2,Z,$),I0(zZ,$,$),I0($2,null,$);var G=Z.nodeType;switch(G){case 9:case 11:G=G===9?"#document":"#fragment",Z=(Z=Z.documentElement)?(Z=Z.namespaceURI)?FM(Z):P8:P8;break;default:if(G=Z.tagName,Z=Z.namespaceURI)Z=FM(Z),Z=MM(Z,G);else switch(G){case"svg":Z=N$;break;case"math":Z=L3;break;default:Z=P8}}G=G.toLowerCase(),G=YB(null,G),G={context:Z,ancestorInfo:G},P0($2,$),I0($2,G,$)}function q0($){P0($2,$),P0(zZ,$),P0(Z2,$)}function F0(){return b0($2.current)}function a0($){$.memoizedState!==null&&I0(CG,$,$);var Z=b0($2.current),G=$.type,Y=MM(Z.context,G);G=YB(Z.ancestorInfo,G),Y={context:Y,ancestorInfo:G},Z!==Y&&(I0(zZ,$,$),I0($2,Y,$))}function d0($){zZ.current===$&&(P0($2,$),P0(zZ,$)),CG.current===$&&(P0(CG,$),UQ._currentValue=y9)}function v(){}function o(){if(_Z===0){cM=console.log,lM=console.info,rM=console.warn,nM=console.error,sM=console.group,oM=console.groupCollapsed,aM=console.groupEnd;var $={configurable:!0,enumerable:!0,value:v,writable:!0};Object.defineProperties(console,{info:$,log:$,warn:$,error:$,group:$,groupCollapsed:$,groupEnd:$})}_Z++}function M0(){if(_Z--,_Z===0){var $={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:l0({},$,{value:cM}),info:l0({},$,{value:lM}),warn:l0({},$,{value:rM}),error:l0({},$,{value:nM}),group:l0({},$,{value:sM}),groupCollapsed:l0({},$,{value:oM}),groupEnd:l0({},$,{value:aM})})}0>_Z&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function W0($){var Z=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,$=$.stack,Error.prepareStackTrace=Z,$.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.`),R}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var F={d:{f:J,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:J,C:J,L:J,m:J,X:J,S:J,M:J},p:0,findDOMNode:null},W=Symbol.for("react.portal"),M=QK.__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"),GS.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=F,GS.createPortal=function(R,_){var P=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!_||_.nodeType!==1&&_.nodeType!==9&&_.nodeType!==11)throw Error("Target container is not a DOM element.");return q(R,_,null,P)},GS.flushSync=function(R){var _=M.T,P=F.p;try{if(M.T=null,F.p=2,R)return R()}finally{M.T=_,F.p=P,F.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.")}},GS.preconnect=function(R,_){typeof R==="string"&&R?_!=null&&typeof _!=="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.",K(_)):_!=null&&typeof _.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.",N(_.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",N(R)),typeof R==="string"&&(_?(_=_.crossOrigin,_=typeof _==="string"?_==="use-credentials"?_:"":void 0):_=null,F.d.C(R,_))},GS.prefetchDNS=function(R){if(typeof R!=="string"||!R)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",N(R));else if(1<arguments.length){var _=arguments[1];typeof _==="object"&&_.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`.",K(_)):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`.",K(_))}typeof R==="string"&&F.d.D(R)},GS.preinit=function(R,_){if(typeof R==="string"&&R?_==null||typeof _!=="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.",K(_)):_.as!=="style"&&_.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".',K(_.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",N(R)),typeof R==="string"&&_&&typeof _.as==="string"){var P=_.as,O=X(P,_.crossOrigin),E=typeof _.integrity==="string"?_.integrity:void 0,V=typeof _.fetchPriority==="string"?_.fetchPriority:void 0;P==="style"?F.d.S(R,typeof _.precedence==="string"?_.precedence:void 0,{crossOrigin:O,integrity:E,fetchPriority:V}):P==="script"&&F.d.X(R,{crossOrigin:O,integrity:E,fetchPriority:V,nonce:typeof _.nonce==="string"?_.nonce:void 0})}},GS.preinitModule=function(R,_){var P="";if(typeof R==="string"&&R||(P+=" The `href` argument encountered was "+N(R)+"."),_!==void 0&&typeof _!=="object"?P+=" The `options` argument encountered was "+N(_)+".":_&&("as"in _)&&_.as!=="script"&&(P+=" The `as` option encountered was "+K(_.as)+"."),P)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",P);else switch(P=_&&typeof _.as==="string"?_.as:"script",P){case"script":break;default:P=K(P),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)',P,R)}if(typeof R==="string")if(typeof _==="object"&&_!==null){if(_.as==null||_.as==="script")P=X(_.as,_.crossOrigin),F.d.M(R,{crossOrigin:P,integrity:typeof _.integrity==="string"?_.integrity:void 0,nonce:typeof _.nonce==="string"?_.nonce:void 0})}else _==null&&F.d.M(R)},GS.preload=function(R,_){var P="";if(typeof R==="string"&&R||(P+=" The `href` argument encountered was "+N(R)+"."),_==null||typeof _!=="object"?P+=" The `options` argument encountered was "+N(_)+".":typeof _.as==="string"&&_.as||(P+=" The `as` option encountered was "+N(_.as)+"."),P&&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',P),typeof R==="string"&&typeof _==="object"&&_!==null&&typeof _.as==="string"){P=_.as;var O=X(P,_.crossOrigin);F.d.L(R,P,{crossOrigin:O,integrity:typeof _.integrity==="string"?_.integrity:void 0,nonce:typeof _.nonce==="string"?_.nonce:void 0,type:typeof _.type==="string"?_.type:void 0,fetchPriority:typeof _.fetchPriority==="string"?_.fetchPriority:void 0,referrerPolicy:typeof _.referrerPolicy==="string"?_.referrerPolicy:void 0,imageSrcSet:typeof _.imageSrcSet==="string"?_.imageSrcSet:void 0,imageSizes:typeof _.imageSizes==="string"?_.imageSizes:void 0,media:typeof _.media==="string"?_.media:void 0})}},GS.preloadModule=function(R,_){var P="";typeof R==="string"&&R||(P+=" The `href` argument encountered was "+N(R)+"."),_!==void 0&&typeof _!=="object"?P+=" The `options` argument encountered was "+N(_)+".":_&&("as"in _)&&typeof _.as!=="string"&&(P+=" The `as` option encountered was "+N(_.as)+"."),P&&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',P),typeof R==="string"&&(_?(P=X(_.as,_.crossOrigin),F.d.m(R,{as:typeof _.as==="string"&&_.as!=="script"?_.as:void 0,crossOrigin:P,integrity:typeof _.integrity==="string"?_.integrity:void 0})):F.d.m(R))},GS.requestFormReset=function(R){F.d.r(R)},GS.unstable_batchedUpdates=function(R,_){return R(_)},GS.useFormState=function(R,_,P){return H().useFormState(R,_,P)},GS.useFormStatus=function(){return H().useHostTransitionStatus()},GS.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var k_=T2((Kk,j_)=>{var qS=s(D_());j_.exports=qS});var v_=T2((YS)=>{var G1=s(S_()),W$=s(L1()),GK=s(k_());(function(){function J($,Z){for($=$.memoizedState;$!==null&&0<Z;)$=$.next,Z--;return $}function G($,Z,Q,Y){if(Q>=Z.length)return Y;var U=Z[Q],B=G5($)?$.slice():l0({},$);return B[U]=G($[U],Z,Q+1,Y),B}function q($,Z,Q){if(Z.length!==Q.length)console.warn("copyWithRename() expects paths of the same length");else{for(var Y=0;Y<Q.length-1;Y++)if(Z[Y]!==Q[Y]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return X($,Z,Q,0)}}function X($,Z,Q,Y){var U=Z[Y],B=G5($)?$.slice():l0({},$);return Y+1===Z.length?(B[Q[Y]]=B[U],G5(B)?B.splice(U,1):delete B[U]):B[U]=X($[U],Z,Q,Y+1),B}function N($,Z,Q){var Y=Z[Q],U=G5($)?$.slice():l0({},$);if(Q+1===Z.length)return G5(U)?U.splice(Y,1):delete U[Y],U;return U[Y]=N($[Y],Z,Q+1),U}function K(){return!1}function H(){return null}function F(){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 W(){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 M(){}function R(){}function _($){var Z=[];return $.forEach(function(Q){Z.push(Q)}),Z.sort().join(", ")}function P($,Z,Q,Y){return new DP($,Z,Q,Y)}function O($,Z){$.context===Z2&&(zX($.current,2,Z,$,null,null),W9())}function E($,Z){if(v6!==null){var Q=Z.staleFamilies;Z=Z.updatedFamilies,o$(),WB($.current,Z,Q),W9()}}function V($){v6=$}function I($){return!(!$||$.nodeType!==1&&$.nodeType!==9&&$.nodeType!==11)}function j($){var Z=$,Q=$;if($.alternate)for(;Z.return;)Z=Z.return;else{$=Z;do Z=$,(Z.flags&4098)!==0&&(Q=Z.return),$=Z.return;while($)}return Z.tag===3?Q:null}function h($){if($.tag===13){var Z=$.memoizedState;if(Z===null&&($=$.alternate,$!==null&&(Z=$.memoizedState)),Z!==null)return Z.dehydrated}return null}function p($){if($.tag===31){var Z=$.memoizedState;if(Z===null&&($=$.alternate,$!==null&&(Z=$.memoizedState)),Z!==null)return Z.dehydrated}return null}function n($){if(j($)!==$)throw Error("Unable to find node on an unmounted component.")}function a($){var Z=$.alternate;if(!Z){if(Z=j($),Z===null)throw Error("Unable to find node on an unmounted component.");return Z!==$?null:$}for(var Q=$,Y=Z;;){var U=Q.return;if(U===null)break;var B=U.alternate;if(B===null){if(Y=U.return,Y!==null){Q=Y;continue}break}if(U.child===B.child){for(B=U.child;B;){if(B===Q)return n(U),$;if(B===Y)return n(U),Z;B=B.sibling}throw Error("Unable to find node on an unmounted component.")}if(Q.return!==Y.return)Q=U,Y=B;else{for(var z=!1,w=U.child;w;){if(w===Q){z=!0,Q=U,Y=B;break}if(w===Y){z=!0,Y=U,Q=B;break}w=w.sibling}if(!z){for(w=B.child;w;){if(w===Q){z=!0,Q=B,Y=U;break}if(w===Y){z=!0,Y=B,Q=U;break}w=w.sibling}if(!z)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(Q.alternate!==Y)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(Q.tag!==3)throw Error("Unable to find node on an unmounted component.");return Q.stateNode.current===Q?$:Z}function Q0($){var Z=$.tag;if(Z===5||Z===26||Z===27||Z===6)return $;for($=$.child;$!==null;){if(Z=Q0($),Z!==null)return Z;$=$.sibling}return null}function t($){if($===null||typeof $!=="object")return null;return $=PW&&$[PW]||$["@@iterator"],typeof $==="function"?$:null}function i($){if($==null)return null;if(typeof $==="function")return $.$$typeof===iT?null:$.displayName||$.name||null;if(typeof $==="string")return $;switch($){case P9:return"Fragment";case PX:return"Profiler";case XG:return"StrictMode";case CX:return"Suspense";case OX:return"SuspenseList";case IX:return"Activity"}if(typeof $==="object")switch(typeof $.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),$.$$typeof){case L9:return"Portal";case S4:return $.displayName||"Context";case TX:return($._context.displayName||"Context")+".Consumer";case qZ:var Z=$.render;return $=$.displayName,$||($=Z.displayName||Z.name||"",$=$!==""?"ForwardRef("+$+")":"ForwardRef"),$;case NG:return Z=$.displayName||null,Z!==null?Z:i($.type)||"Memo";case R6:Z=$._payload,$=$._init;try{return i($(Z))}catch(Q){}}return null}function X0($){return typeof $.tag==="number"?d($):typeof $.name==="string"?$.name:null}function d($){var Z=$.type;switch($.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(Z._context.displayName||"Context")+".Consumer";case 10:return Z.displayName||"Context";case 18:return"DehydratedFragment";case 11:return $=Z.render,$=$.displayName||$.name||"",Z.displayName||($!==""?"ForwardRef("+$+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return Z;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return i(Z);case 8:return Z===XG?"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 Z==="function")return Z.displayName||Z.name||null;if(typeof Z==="string")return Z;break;case 29:if(Z=$._debugInfo,Z!=null){for(var Q=Z.length-1;0<=Q;Q--)if(typeof Z[Q].name==="string")return Z[Q].name}if($.return!==null)return d($.return)}return null}function H0($){return{current:$}}function P0($,Z){0>Q8?console.error("Unexpected pop."):(Z!==AX[Q8]&&console.error("Unexpected Fiber popped."),$.current=VX[Q8],VX[Q8]=null,AX[Q8]=null,Q8--)}function O0($,Z,Q){Q8++,VX[Q8]=$.current,AX[Q8]=Q,$.current=Z}function v0($){return $===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),$}function l($,Z){O0(o8,Z,$),O0(YZ,$,$),O0(n8,null,$);var Q=Z.nodeType;switch(Q){case 9:case 11:Q=Q===9?"#document":"#fragment",Z=(Z=Z.documentElement)?(Z=Z.namespaceURI)?lF(Z):w8:w8;break;default:if(Q=Z.tagName,Z=Z.namespaceURI)Z=lF(Z),Z=rF(Z,Q);else switch(Q){case"svg":Z=Z$;break;case"math":Z=Y3;break;default:Z=w8}}Q=Q.toLowerCase(),Q=uK(null,Q),Q={context:Z,ancestorInfo:Q},P0(n8,$),O0(n8,Q,$)}function Y0($){P0(n8,$),P0(YZ,$),P0(o8,$)}function F0(){return v0(n8.current)}function a0($){$.memoizedState!==null&&O0(UG,$,$);var Z=v0(n8.current),Q=$.type,Y=rF(Z.context,Q);Q=uK(Z.ancestorInfo,Q),Y={context:Y,ancestorInfo:Q},Z!==Y&&(O0(YZ,$,$),O0(n8,Y,$))}function d0($){YZ.current===$&&(P0(n8,$),P0(YZ,$)),UG.current===$&&(P0(UG,$),iZ._currentValue=j7)}function k(){}function o(){if(XZ===0){TW=console.log,CW=console.info,OW=console.warn,IW=console.error,VW=console.group,AW=console.groupCollapsed,EW=console.groupEnd;var $={configurable:!0,enumerable:!0,value:k,writable:!0};Object.defineProperties(console,{info:$,log:$,warn:$,error:$,group:$,groupCollapsed:$,groupEnd:$})}XZ++}function W0(){if(XZ--,XZ===0){var $={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:l0({},$,{value:TW}),info:l0({},$,{value:CW}),warn:l0({},$,{value:OW}),error:l0({},$,{value:IW}),group:l0({},$,{value:VW}),groupCollapsed:l0({},$,{value:AW}),groupEnd:l0({},$,{value:EW})})}0>XZ&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function z0($){var Z=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,$=$.stack,Error.prepareStackTrace=Z,$.startsWith(`Error: react-stack-top-frame
|
|
18
18
|
`)&&($=$.slice(29)),Z=$.indexOf(`
|
|
19
19
|
`),Z!==-1&&($=$.slice(Z+1)),Z=$.indexOf("react_stack_bottom_frame"),Z!==-1&&(Z=$.lastIndexOf(`
|
|
20
|
-
`,Z)),Z!==-1)$=$.slice(0,Z);else return"";return $}function p0($){if(
|
|
21
|
-
at`)?" (<anonymous>)":-1<
|
|
22
|
-
`+
|
|
23
|
-
`),
|
|
24
|
-
`);for(
|
|
25
|
-
`+T[B].replace(" at new "," at ");return $.displayName&&f.includes("<anonymous>")&&(f=f.replace("<anonymous>",$.displayName)),typeof $==="function"&&
|
|
26
|
-
`),S=f===-1?
|
|
27
|
-
`+S;break $}}g=p0(
|
|
20
|
+
`,Z)),Z!==-1)$=$.slice(0,Z);else return"";return $}function p0($){if(EX===void 0)try{throw Error()}catch(Q){var Z=Q.stack.trim().match(/\n( *(at )?)/);EX=Z&&Z[1]||"",SW=-1<Q.stack.indexOf(`
|
|
21
|
+
at`)?" (<anonymous>)":-1<Q.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
22
|
+
`+EX+$+SW}function m1($,Z){if(!$||SX)return"";var Q=DX.get($);if(Q!==void 0)return Q;SX=!0,Q=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var Y=null;Y=x.H,x.H=null,o();try{var U={DetermineComponentFrameRoot:function(){try{if(Z){var S=function(){throw Error()};if(Object.defineProperty(S.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(S,[])}catch($0){var g=$0}Reflect.construct($,[],S)}else{try{S.call()}catch($0){g=$0}$.call(S.prototype)}}else{try{throw Error()}catch($0){g=$0}(S=$())&&typeof S.catch==="function"&&S.catch(function(){})}}catch($0){if($0&&g&&typeof $0.stack==="string")return[$0.stack,g.stack]}return[null,null]}};U.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var B=Object.getOwnPropertyDescriptor(U.DetermineComponentFrameRoot,"name");B&&B.configurable&&Object.defineProperty(U.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var z=U.DetermineComponentFrameRoot(),w=z[0],L=z[1];if(w&&L){var T=w.split(`
|
|
23
|
+
`),b=L.split(`
|
|
24
|
+
`);for(z=B=0;B<T.length&&!T[B].includes("DetermineComponentFrameRoot");)B++;for(;z<b.length&&!b[z].includes("DetermineComponentFrameRoot");)z++;if(B===T.length||z===b.length)for(B=T.length-1,z=b.length-1;1<=B&&0<=z&&T[B]!==b[z];)z--;for(;1<=B&&0<=z;B--,z--)if(T[B]!==b[z]){if(B!==1||z!==1)do if(B--,z--,0>z||T[B]!==b[z]){var f=`
|
|
25
|
+
`+T[B].replace(" at new "," at ");return $.displayName&&f.includes("<anonymous>")&&(f=f.replace("<anonymous>",$.displayName)),typeof $==="function"&&DX.set($,f),f}while(1<=B&&0<=z);break}}}finally{SX=!1,x.H=Y,W0(),Error.prepareStackTrace=Q}return T=(T=$?$.displayName||$.name:"")?p0(T):"",typeof $==="function"&&DX.set($,T),T}function b0($,Z){switch($.tag){case 26:case 27:case 5:return p0($.type);case 16:return p0("Lazy");case 13:return $.child!==Z&&Z!==null?p0("Suspense Fallback"):p0("Suspense");case 19:return p0("SuspenseList");case 0:case 15:return m1($.type,!1);case 11:return m1($.type.render,!1);case 1:return m1($.type,!0);case 31:return p0("Activity");default:return""}}function o1($){try{var Z="",Q=null;do{Z+=b0($,Q);var Y=$._debugInfo;if(Y)for(var U=Y.length-1;0<=U;U--){var B=Y[U];if(typeof B.name==="string"){var z=Z;$:{var{name:w,env:L,debugLocation:T}=B;if(T!=null){var b=z0(T),f=b.lastIndexOf(`
|
|
26
|
+
`),S=f===-1?b:b.slice(f+1);if(S.indexOf(w)!==-1){var g=`
|
|
27
|
+
`+S;break $}}g=p0(w+(L?" ["+L+"]":""))}Z=z+g}}Q=$,$=$.return}while($);return Z}catch($0){return`
|
|
28
28
|
Error generating stack: `+$0.message+`
|
|
29
|
-
`+$0.stack}}function
|
|
29
|
+
`+$0.stack}}function V5($){return($=$?$.displayName||$.name:"")?p0($):""}function i6(){if(_6===null)return null;var $=_6._debugOwner;return $!=null?X0($):null}function aJ(){if(_6===null)return"";var $=_6;try{var Z="";switch($.tag===6&&($=$.return),$.tag){case 26:case 27:case 5:Z+=p0($.type);break;case 13:Z+=p0("Suspense");break;case 19:Z+=p0("SuspenseList");break;case 31:Z+=p0("Activity");break;case 30:case 0:case 15:case 1:$._debugOwner||Z!==""||(Z+=V5($.type));break;case 11:$._debugOwner||Z!==""||(Z+=V5($.type.render))}for(;$;)if(typeof $.tag==="number"){var Q=$;$=Q._debugOwner;var Y=Q._debugStack;if($&&Y){var U=z0(Y);U!==""&&(Z+=`
|
|
30
30
|
`+U)}}else if($.debugStack!=null){var B=$.debugStack;($=$.owner)&&B&&(Z+=`
|
|
31
|
-
`+
|
|
32
|
-
Error generating stack: `+
|
|
33
|
-
`+z.stack}return W}function X0($,Z,G,Y,U,B,W){var z=T6;X7($);try{return $!==null&&$._debugTask?$._debugTask.run(Z.bind(null,G,Y,U,B,W)):Z(G,Y,U,B,W)}finally{X7(z)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function X7($){x.getCurrentStack=$===null?null:KJ,b4=!1,T6=$}function r2($){return typeof Symbol==="function"&&Symbol.toStringTag&&$[Symbol.toStringTag]||$.constructor.name||"Object"}function h8($){try{return B5($),!1}catch(Z){return!0}}function B5($){return""+$}function w1($,Z){if(h8($))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",Z,r2($)),B5($)}function b$($,Z){if(h8($))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.",Z,r2($)),B5($)}function y0($){if(h8($))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.",r2($)),B5($)}function q7($){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var Z=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(Z.isDisabled)return!0;if(!Z.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{j7=Z.inject($),D5=Z}catch(G){console.error("React instrumentation encountered an error: %o.",G)}return Z.checkDCE?!0:!1}function C1($){if(typeof QI==="function"&&JI($),D5&&typeof D5.setStrictMode==="function")try{D5.setStrictMode(j7,$)}catch(Z){k4||(k4=!0,console.error("React instrumentation encountered an error: %o",Z))}}function BJ($){return $>>>=0,$===0?32:31-(GI($)/XI|0)|0}function M4($){var Z=$&42;if(Z!==0)return Z;switch($&-$){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 $&261888;case 262144:case 524288:case 1048576:case 2097152:return $&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return $&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."),$}}function n2($,Z,G){var Y=$.pendingLanes;if(Y===0)return 0;var U=0,B=$.suspendedLanes,W=$.pingedLanes;$=$.warmLanes;var z=Y&134217727;return z!==0?(Y=z&~B,Y!==0?U=M4(Y):(W&=z,W!==0?U=M4(W):G||(G=z&~$,G!==0&&(U=M4(G))))):(z=Y&~B,z!==0?U=M4(z):W!==0?U=M4(W):G||(G=Y&~$,G!==0&&(U=M4(G)))),U===0?0:Z!==0&&Z!==U&&(Z&B)===0&&(B=U&-U,G=Z&-Z,B>=G||B===32&&(G&4194048)!==0)?Z:U}function s2($,Z){return($.pendingLanes&~($.suspendedLanes&~$.pingedLanes)&Z)===0}function bX($,Z){switch($){case 1:case 2:case 4:case 8:case 64:return Z+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 Z+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 Y7(){var $=VG;return VG<<=1,(VG&62914560)===0&&(VG=4194304),$}function N7($){for(var Z=[],G=0;31>G;G++)Z.push($);return Z}function u8($,Z){$.pendingLanes|=Z,Z!==268435456&&($.suspendedLanes=0,$.pingedLanes=0,$.warmLanes=0)}function HJ($,Z,G,Y,U,B){var W=$.pendingLanes;$.pendingLanes=G,$.suspendedLanes=0,$.pingedLanes=0,$.warmLanes=0,$.expiredLanes&=G,$.entangledLanes&=G,$.errorRecoveryDisabledLanes&=G,$.shellSuspendCounter=0;var{entanglements:z,expirationTimes:L,hiddenUpdates:T}=$;for(G=W&~G;0<G;){var k=31-u5(G),f=1<<k;z[k]=0,L[k]=-1;var S=T[k];if(S!==null)for(T[k]=null,k=0;k<S.length;k++){var g=S[k];g!==null&&(g.lane&=-536870913)}G&=~f}Y!==0&&o2($,Y,0),B!==0&&U===0&&$.tag!==0&&($.suspendedLanes|=B&~(W&~Z))}function o2($,Z,G){$.pendingLanes|=Z,$.suspendedLanes&=~Z;var Y=31-u5(Z);$.entangledLanes|=Z,$.entanglements[Y]=$.entanglements[Y]|1073741824|G&261930}function a2($,Z){var G=$.entangledLanes|=Z;for($=$.entanglements;G;){var Y=31-u5(G),U=1<<Y;U&Z|$[Y]&Z&&($[Y]|=Z),G&=~U}}function i2($,Z){var G=Z&-Z;return G=(G&42)!==0?1:t2(G),(G&($.suspendedLanes|Z))!==0?0:G}function t2($){switch($){case 2:$=1;break;case 8:$=4;break;case 32:$=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:$=128;break;case 268435456:$=134217728;break;default:$=0}return $}function k$($,Z,G){if(f4)for($=$.pendingUpdatersLaneMap;0<G;){var Y=31-u5(G),U=1<<Y;$[Y].add(Z),G&=~U}}function x8($,Z){if(f4)for(var{pendingUpdatersLaneMap:G,memoizedUpdaters:Y}=$;0<Z;){var U=31-u5(Z);$=1<<U,U=G[U],0<U.size&&(U.forEach(function(B){var W=B.alternate;W!==null&&Y.has(W)||Y.add(B)}),U.clear()),Z&=~$}}function C($){return $&=-$,C6!==0&&C6<$?X4!==0&&X4<$?($&134217727)!==0?y4:AG:X4:C6}function y(){var $=K1.p;if($!==0)return $;return $=window.event,$===void 0?y4:yM($.type)}function r($,Z){var G=K1.p;try{return K1.p=$,Z()}finally{K1.p=G}}function Z0($){delete $[P5],delete $[x5],delete $[eY],delete $[qI],delete $[YI]}function N0($){var Z=$[P5];if(Z)return Z;for(var G=$.parentNode;G;){if(Z=G[J2]||G[P5]){if(G=Z.alternate,Z.child!==null||G!==null&&G.child!==null)for($=TM($);$!==null;){if(G=$[P5])return G;$=TM($)}return Z}$=G,G=$.parentNode}return null}function D0($){if($=$[P5]||$[J2]){var Z=$.tag;if(Z===5||Z===6||Z===13||Z===31||Z===26||Z===27||Z===3)return $}return null}function v0($){var Z=$.tag;if(Z===5||Z===26||Z===27||Z===6)return $.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function Q1($){var Z=$[tM];return Z||(Z=$[tM]={hoistableStyles:new Map,hoistableScripts:new Map}),Z}function _0($){$[LZ]=!0}function S5($,Z){H6($,Z),H6($+"Capture",Z)}function H6($,Z){M9[$]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",$),M9[$]=Z;var G=$.toLowerCase();$N[G]=$,$==="onDoubleClick"&&($N.ondblclick=$);for($=0;$<Z.length;$++)eM.add(Z[$])}function m8($,Z){NI[Z.type]||Z.onChange||Z.onInput||Z.readOnly||Z.disabled||Z.value==null||($==="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`.")),Z.onChange||Z.readOnly||Z.disabled||Z.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 f$($){if(G4.call(ZW,$))return!0;if(G4.call($W,$))return!1;if(UI.test($))return ZW[$]=!0;return $W[$]=!0,console.error("Invalid attribute name: `%s`",$),!1}function rK($,Z,G){if(f$(Z)){if(!$.hasAttribute(Z)){switch(typeof G){case"symbol":case"object":return G;case"function":return G;case"boolean":if(G===!1)return G}return G===void 0?void 0:null}if($=$.getAttribute(Z),$===""&&G===!0)return!0;return w1(G,Z),$===""+G?G:$}}function FJ($,Z,G){if(f$(Z))if(G===null)$.removeAttribute(Z);else{switch(typeof G){case"undefined":case"function":case"symbol":$.removeAttribute(Z);return;case"boolean":var Y=Z.toLowerCase().slice(0,5);if(Y!=="data-"&&Y!=="aria-"){$.removeAttribute(Z);return}}w1(G,Z),$.setAttribute(Z,""+G)}}function MJ($,Z,G){if(G===null)$.removeAttribute(Z);else{switch(typeof G){case"undefined":case"function":case"symbol":case"boolean":$.removeAttribute(Z);return}w1(G,Z),$.setAttribute(Z,""+G)}}function t4($,Z,G,Y){if(Y===null)$.removeAttribute(G);else{switch(typeof Y){case"undefined":case"function":case"symbol":case"boolean":$.removeAttribute(G);return}w1(Y,G),$.setAttributeNS(Z,G,""+Y)}}function D6($){switch(typeof $){case"bigint":case"boolean":case"number":case"string":case"undefined":return $;case"object":return y0($),$;default:return""}}function nK($){var Z=$.type;return($=$.nodeName)&&$.toLowerCase()==="input"&&(Z==="checkbox"||Z==="radio")}function XT($,Z,G){var Y=Object.getOwnPropertyDescriptor($.constructor.prototype,Z);if(!$.hasOwnProperty(Z)&&typeof Y<"u"&&typeof Y.get==="function"&&typeof Y.set==="function"){var{get:U,set:B}=Y;return Object.defineProperty($,Z,{configurable:!0,get:function(){return U.call(this)},set:function(W){y0(W),G=""+W,B.call(this,W)}}),Object.defineProperty($,Z,{enumerable:Y.enumerable}),{getValue:function(){return G},setValue:function(W){y0(W),G=""+W},stopTracking:function(){$._valueTracker=null,delete $[Z]}}}}function kX($){if(!$._valueTracker){var Z=nK($)?"checked":"value";$._valueTracker=XT($,Z,""+$[Z])}}function sK($){if(!$)return!1;var Z=$._valueTracker;if(!Z)return!0;var G=Z.getValue(),Y="";return $&&(Y=nK($)?$.checked?"true":"false":$.value),$=Y,$!==G?(Z.setValue($),!0):!1}function WJ($){if($=$||(typeof document<"u"?document:void 0),typeof $>"u")return null;try{return $.activeElement||$.body}catch(Z){return $.body}}function v6($){return $.replace(KI,function(Z){return"\\"+Z.charCodeAt(0).toString(16)+" "})}function oK($,Z){Z.checked===void 0||Z.defaultChecked===void 0||JW||(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",$4()||"A component",Z.type),JW=!0),Z.value===void 0||Z.defaultValue===void 0||QW||(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",$4()||"A component",Z.type),QW=!0)}function fX($,Z,G,Y,U,B,W,z){if($.name="",W!=null&&typeof W!=="function"&&typeof W!=="symbol"&&typeof W!=="boolean"?(w1(W,"type"),$.type=W):$.removeAttribute("type"),Z!=null)if(W==="number"){if(Z===0&&$.value===""||$.value!=Z)$.value=""+D6(Z)}else $.value!==""+D6(Z)&&($.value=""+D6(Z));else W!=="submit"&&W!=="reset"||$.removeAttribute("value");Z!=null?yX($,W,D6(Z)):G!=null?yX($,W,D6(G)):Y!=null&&$.removeAttribute("value"),U==null&&B!=null&&($.defaultChecked=!!B),U!=null&&($.checked=U&&typeof U!=="function"&&typeof U!=="symbol"),z!=null&&typeof z!=="function"&&typeof z!=="symbol"&&typeof z!=="boolean"?(w1(z,"name"),$.name=""+D6(z)):$.removeAttribute("name")}function aK($,Z,G,Y,U,B,W,z){if(B!=null&&typeof B!=="function"&&typeof B!=="symbol"&&typeof B!=="boolean"&&(w1(B,"type"),$.type=B),Z!=null||G!=null){if(!(B!=="submit"&&B!=="reset"||Z!==void 0&&Z!==null)){kX($);return}G=G!=null?""+D6(G):"",Z=Z!=null?""+D6(Z):G,z||Z===$.value||($.value=Z),$.defaultValue=Z}Y=Y!=null?Y:U,Y=typeof Y!=="function"&&typeof Y!=="symbol"&&!!Y,$.checked=z?$.checked:!!Y,$.defaultChecked=!!Y,W!=null&&typeof W!=="function"&&typeof W!=="symbol"&&typeof W!=="boolean"&&(w1(W,"name"),$.name=W),kX($)}function yX($,Z,G){Z==="number"&&WJ($.ownerDocument)===$||$.defaultValue===""+G||($.defaultValue=""+G)}function iK($,Z){Z.value==null&&(typeof Z.children==="object"&&Z.children!==null?P$.Children.forEach(Z.children,function(G){G==null||typeof G==="string"||typeof G==="number"||typeof G==="bigint"||XW||(XW=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):Z.dangerouslySetInnerHTML==null||qW||(qW=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),Z.selected==null||GW||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),GW=!0)}function tK(){var $=$4();return $?`
|
|
34
|
-
|
|
35
|
-
Check the render method of \``+$+"`.":""}function
|
|
36
|
-
`;if(typeof Z==="string"){for(var U=0;U<Z.length&&U<$.length&&Z.charCodeAt(U)===$.charCodeAt(U);U++);return U>Y-8&&10<U&&($="..."+$.slice(U-8),Z="..."+Z.slice(U-8)),
|
|
37
|
-
`+
|
|
38
|
-
`}return
|
|
39
|
-
`}function
|
|
40
|
-
`:0<Y?
|
|
41
|
-
`:
|
|
42
|
-
`+
|
|
43
|
-
`+
|
|
44
|
-
`+
|
|
45
|
-
`}function
|
|
46
|
-
`,Y+=
|
|
47
|
-
`):Y+=
|
|
48
|
-
`}for(var L in U)U.hasOwnProperty(L)&&($=
|
|
49
|
-
`);return Y}function
|
|
50
|
-
`+
|
|
51
|
-
`:(U+=
|
|
52
|
-
`,U+=
|
|
53
|
-
`)}else U+=
|
|
54
|
-
`}B.forEach(function(f){if(f!=="children"){var S=120-2*(Y+1)-f.length-1;U+=
|
|
55
|
-
`}}),U=U===""?
|
|
56
|
-
`:
|
|
57
|
-
`+U+
|
|
58
|
-
`}if($=
|
|
59
|
-
`}function
|
|
60
|
-
`+
|
|
61
|
-
`,Z++)}if(Y="",U=$.fiber.pendingProps,$.fiber.tag===6)Y=
|
|
62
|
-
`,Z++}else $.serverProps===null?(Y=
|
|
63
|
-
`),U=$.serverTail,$.serverProps===null&&Z--;for($=0;$<U.length;$++)B=U[$],T=typeof B==="string"?T+(
|
|
64
|
-
`):T+
|
|
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.`,Y,
|
|
70
|
-
This will cause a hydration error.%s`,Z,
|
|
71
|
-
This will cause a hydration error.%s`,Z,G),!1}function h$($,Z){if(Z){var G=$.firstChild;if(G&&G===$.lastChild&&G.nodeType===3){G.nodeValue=Z;return}}$.textContent=Z}function UT($){return $.replace(wI,function(Z,G){return G.toUpperCase()})}function KB($,Z,G){var Y=Z.indexOf("--")===0;Y||(-1<Z.indexOf("-")?D7.hasOwnProperty(Z)&&D7[Z]||(D7[Z]=!0,console.error("Unsupported style property %s. Did you mean %s?",Z,UT(Z.replace(WI,"ms-")))):MI.test(Z)?D7.hasOwnProperty(Z)&&D7[Z]||(D7[Z]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",Z,Z.charAt(0).toUpperCase()+Z.slice(1))):!WW.test(G)||QN.hasOwnProperty(G)&&QN[G]||(QN[G]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,Z,G.replace(WW,""))),typeof G==="number"&&(isNaN(G)?wW||(wW=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",Z)):isFinite(G)||RW||(RW=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",Z)))),G==null||typeof G==="boolean"||G===""?Y?$.setProperty(Z,""):Z==="float"?$.cssFloat="":$[Z]="":Y?$.setProperty(Z,G):typeof G!=="number"||G===0||zW.has(Z)?Z==="float"?$.cssFloat=G:(b$(G,Z),$[Z]=(""+G).trim()):$[Z]=G+"px"}function BB($,Z,G){if(Z!=null&&typeof Z!=="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(Z&&Object.freeze(Z),$=$.style,G!=null){if(Z){var Y={};if(G){for(var U in G)if(G.hasOwnProperty(U)&&!Z.hasOwnProperty(U))for(var B=ZN[U]||[U],W=0;W<B.length;W++)Y[B[W]]=U}for(var z in Z)if(Z.hasOwnProperty(z)&&(!G||G[z]!==Z[z]))for(U=ZN[z]||[z],B=0;B<U.length;B++)Y[U[B]]=z;z={};for(var L in Z)for(U=ZN[L]||[L],B=0;B<U.length;B++)z[U[B]]=L;L={};for(var T in Y)if(U=Y[T],(B=z[T])&&U!==B&&(W=U+","+B,!L[W])){L[W]=!0,W=console;var k=Z[U];W.error.call(W,"%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.",k==null||typeof k==="boolean"||k===""?"Removing":"Updating",U,B)}}for(var f in G)!G.hasOwnProperty(f)||Z!=null&&Z.hasOwnProperty(f)||(f.indexOf("--")===0?$.setProperty(f,""):f==="float"?$.cssFloat="":$[f]="");for(var S in Z)T=Z[S],Z.hasOwnProperty(S)&&G[S]!==T&&KB($,S,T)}else for(Y in Z)Z.hasOwnProperty(Y)&&KB($,Y,Z[Y])}function u$($){if($.indexOf("-")===-1)return!1;switch($){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 HB($){return RI.get($)||$}function KT($,Z){if(G4.call(b7,Z)&&b7[Z])return!0;if(_I.test(Z)){if($="aria-"+Z.slice(4).toLowerCase(),$=_W.hasOwnProperty($)?$:null,$==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",Z),b7[Z]=!0;if(Z!==$)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",Z,$),b7[Z]=!0}if(zI.test(Z)){if($=Z.toLowerCase(),$=_W.hasOwnProperty($)?$:null,$==null)return b7[Z]=!0,!1;Z!==$&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",Z,$),b7[Z]=!0)}return!0}function BT($,Z){var G=[],Y;for(Y in Z)KT($,Y)||G.push(Y);Z=G.map(function(U){return"`"+U+"`"}).join(", "),G.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",Z,$):1<G.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",Z,$)}function HT($,Z,G,Y){if(G4.call(m5,Z)&&m5[Z])return!0;var U=Z.toLowerCase();if(U==="onfocusin"||U==="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."),m5[Z]=!0;if(typeof G==="function"&&($==="form"&&Z==="action"||$==="input"&&Z==="formAction"||$==="button"&&Z==="formAction"))return!0;if(Y!=null){if($=Y.possibleRegistrationNames,Y.registrationNameDependencies.hasOwnProperty(Z))return!0;if(Y=$.hasOwnProperty(U)?$[U]:null,Y!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",Z,Y),m5[Z]=!0;if(PW.test(Z))return console.error("Unknown event handler property `%s`. It will be ignored.",Z),m5[Z]=!0}else if(PW.test(Z))return LI.test(Z)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",Z),m5[Z]=!0;if(PI.test(Z)||TI.test(Z))return!0;if(U==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),m5[Z]=!0;if(U==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),m5[Z]=!0;if(U==="is"&&G!==null&&G!==void 0&&typeof G!=="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof G),m5[Z]=!0;if(typeof G==="number"&&isNaN(G))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",Z),m5[Z]=!0;if(jG.hasOwnProperty(U)){if(U=jG[U],U!==Z)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",Z,U),m5[Z]=!0}else if(Z!==U)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.",Z,U),m5[Z]=!0;switch(Z){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 G){case"boolean":switch(Z){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(U=Z.toLowerCase().slice(0,5),U==="data-"||U==="aria-")return!0;return G?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()}.',G,Z,Z,G,Z):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.',G,Z,Z,G,Z,Z,Z),m5[Z]=!0}case"function":case"symbol":return m5[Z]=!0,!1;case"string":if(G==="false"||G==="true"){switch(Z){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}?",G,Z,G==="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".',Z,G),m5[Z]=!0}}return!0}function FT($,Z,G){var Y=[],U;for(U in Z)HT($,U,Z[U],G)||Y.push(U);Z=Y.map(function(B){return"`"+B+"`"}).join(", "),Y.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 ",Z,$):1<Y.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 ",Z,$)}function x$($){return CI.test(""+$)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":$}function e4(){}function dX($){return $=$.target||$.srcElement||window,$.correspondingUseElement&&($=$.correspondingUseElement),$.nodeType===3?$.parentNode:$}function FB($){var Z=D0($);if(Z&&($=Z.stateNode)){var G=$[x5]||null;$:switch($=Z.stateNode,Z.type){case"input":if(fX($,G.value,G.defaultValue,G.defaultValue,G.checked,G.defaultChecked,G.type,G.name),Z=G.name,G.type==="radio"&&Z!=null){for(G=$;G.parentNode;)G=G.parentNode;w1(Z,"name"),G=G.querySelectorAll('input[name="'+v6(""+Z)+'"][type="radio"]');for(Z=0;Z<G.length;Z++){var Y=G[Z];if(Y!==$&&Y.form===$.form){var U=Y[x5]||null;if(!U)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");fX(Y,U.value,U.defaultValue,U.defaultValue,U.checked,U.defaultChecked,U.type,U.name)}}for(Z=0;Z<G.length;Z++)Y=G[Z],Y.form===$.form&&sK(Y)}break $;case"textarea":ZB($,G.value,G.defaultValue);break $;case"select":Z=G.value,Z!=null&&U7($,!!G.multiple,Z,!1)}}}function MB($,Z,G){if(JN)return $(Z,G);JN=!0;try{var Y=$(Z);return Y}finally{if(JN=!1,k7!==null||f7!==null){if(P7(),k7&&(Z=k7,$=f7,f7=k7=null,FB(Z),$))for(Z=0;Z<$.length;Z++)FB($[Z])}}}function m$($,Z){var G=$.stateNode;if(G===null)return null;var Y=G[x5]||null;if(Y===null)return null;G=Y[Z];$:switch(Z){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(Y=!Y.disabled)||($=$.type,Y=!($==="button"||$==="input"||$==="select"||$==="textarea")),$=!Y;break $;default:$=!1}if($)return null;if(G&&typeof G!=="function")throw Error("Expected `"+Z+"` listener to be a function, instead got a value of `"+typeof G+"` type.");return G}function WB(){if(DG)return DG;var $,Z=XN,G=Z.length,Y,U="value"in G2?G2.value:G2.textContent,B=U.length;for($=0;$<G&&Z[$]===U[$];$++);var W=G-$;for(Y=1;Y<=W&&Z[G-Y]===U[B-Y];Y++);return DG=U.slice($,1<Y?1-Y:void 0)}function zJ($){var Z=$.keyCode;return"charCode"in $?($=$.charCode,$===0&&Z===13&&($=13)):$=Z,$===10&&($=13),32<=$||$===13?$:0}function _J(){return!0}function wB(){return!1}function n5($){function Z(G,Y,U,B,W){this._reactName=G,this._targetInst=U,this.type=Y,this.nativeEvent=B,this.target=W,this.currentTarget=null;for(var z in $)$.hasOwnProperty(z)&&(G=$[z],this[z]=G?G(B):B[z]);return this.isDefaultPrevented=(B.defaultPrevented!=null?B.defaultPrevented:B.returnValue===!1)?_J:wB,this.isPropagationStopped=wB,this}return l0(Z.prototype,{preventDefault:function(){this.defaultPrevented=!0;var G=this.nativeEvent;G&&(G.preventDefault?G.preventDefault():typeof G.returnValue!=="unknown"&&(G.returnValue=!1),this.isDefaultPrevented=_J)},stopPropagation:function(){var G=this.nativeEvent;G&&(G.stopPropagation?G.stopPropagation():typeof G.cancelBubble!=="unknown"&&(G.cancelBubble=!0),this.isPropagationStopped=_J)},persist:function(){},isPersistent:_J}),Z}function MT($){var Z=this.nativeEvent;return Z.getModifierState?Z.getModifierState($):($=yI[$])?!!Z[$]:!1}function pX(){return MT}function RB($,Z){switch($){case"keyup":return sI.indexOf(Z.keyCode)!==-1;case"keydown":return Z.keyCode!==OW;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zB($){return $=$.detail,typeof $==="object"&&"data"in $?$.data:null}function WT($,Z){switch($){case"compositionend":return zB(Z);case"keypress":if(Z.which!==AW)return null;return SW=!0,EW;case"textInput":return $=Z.data,$===EW&&SW?null:$;default:return null}}function wT($,Z){if(y7)return $==="compositionend"||!UN&&RB($,Z)?($=WB(),DG=XN=G2=null,y7=!1,$):null;switch($){case"paste":return null;case"keypress":if(!(Z.ctrlKey||Z.altKey||Z.metaKey)||Z.ctrlKey&&Z.altKey){if(Z.char&&1<Z.char.length)return Z.char;if(Z.which)return String.fromCharCode(Z.which)}return null;case"compositionend":return VW&&Z.locale!=="ko"?null:Z.data;default:return null}}function _B($){var Z=$&&$.nodeName&&$.nodeName.toLowerCase();return Z==="input"?!!aI[$.type]:Z==="textarea"?!0:!1}function RT($){if(!g4)return!1;$="on"+$;var Z=$ in document;return Z||(Z=document.createElement("div"),Z.setAttribute($,"return;"),Z=typeof Z[$]==="function"),Z}function LB($,Z,G,Y){k7?f7?f7.push(Y):f7=[Y]:k7=Y,Z=BG(Z,"onChange"),0<Z.length&&(G=new vG("onChange","change",null,G,Y),$.push({event:G,listeners:Z}))}function zT($){QM($,0)}function LJ($){var Z=v0($);if(sK(Z))return $}function PB($,Z){if($==="change")return Z}function TB(){VZ&&(VZ.detachEvent("onpropertychange",CB),AZ=VZ=null)}function CB($){if($.propertyName==="value"&&LJ(AZ)){var Z=[];LB(Z,AZ,$,dX($)),MB(zT,Z)}}function _T($,Z,G){$==="focusin"?(TB(),VZ=Z,AZ=G,VZ.attachEvent("onpropertychange",CB)):$==="focusout"&&TB()}function LT($){if($==="selectionchange"||$==="keyup"||$==="keydown")return LJ(AZ)}function PT($,Z){if($==="click")return LJ(Z)}function TT($,Z){if($==="input"||$==="change")return LJ(Z)}function CT($,Z){return $===Z&&($!==0||1/$===1/Z)||$!==$&&Z!==Z}function d$($,Z){if(d5($,Z))return!0;if(typeof $!=="object"||$===null||typeof Z!=="object"||Z===null)return!1;var G=Object.keys($),Y=Object.keys(Z);if(G.length!==Y.length)return!1;for(Y=0;Y<G.length;Y++){var U=G[Y];if(!G4.call(Z,U)||!d5($[U],Z[U]))return!1}return!0}function IB($){for(;$&&$.firstChild;)$=$.firstChild;return $}function OB($,Z){var G=IB($);$=0;for(var Y;G;){if(G.nodeType===3){if(Y=$+G.textContent.length,$<=Z&&Y>=Z)return{node:G,offset:Z-$};$=Y}$:{for(;G;){if(G.nextSibling){G=G.nextSibling;break $}G=G.parentNode}G=void 0}G=IB(G)}}function VB($,Z){return $&&Z?$===Z?!0:$&&$.nodeType===3?!1:Z&&Z.nodeType===3?VB($,Z.parentNode):("contains"in $)?$.contains(Z):$.compareDocumentPosition?!!($.compareDocumentPosition(Z)&16):!1:!1}function AB($){$=$!=null&&$.ownerDocument!=null&&$.ownerDocument.defaultView!=null?$.ownerDocument.defaultView:window;for(var Z=WJ($.document);Z instanceof $.HTMLIFrameElement;){try{var G=typeof Z.contentWindow.location.href==="string"}catch(Y){G=!1}if(G)$=Z.contentWindow;else break;Z=WJ($.document)}return Z}function cX($){var Z=$&&$.nodeName&&$.nodeName.toLowerCase();return Z&&(Z==="input"&&($.type==="text"||$.type==="search"||$.type==="tel"||$.type==="url"||$.type==="password")||Z==="textarea"||$.contentEditable==="true")}function EB($,Z,G){var Y=G.window===G?G.document:G.nodeType===9?G:G.ownerDocument;BN||g7==null||g7!==WJ(Y)||(Y=g7,("selectionStart"in Y)&&cX(Y)?Y={start:Y.selectionStart,end:Y.selectionEnd}:(Y=(Y.ownerDocument&&Y.ownerDocument.defaultView||window).getSelection(),Y={anchorNode:Y.anchorNode,anchorOffset:Y.anchorOffset,focusNode:Y.focusNode,focusOffset:Y.focusOffset}),EZ&&d$(EZ,Y)||(EZ=Y,Y=BG(KN,"onSelect"),0<Y.length&&(Z=new vG("onSelect","select",null,Z,G),$.push({event:Z,listeners:Y}),Z.target=g7)))}function $9($,Z){var G={};return G[$.toLowerCase()]=Z.toLowerCase(),G["Webkit"+$]="webkit"+Z,G["Moz"+$]="moz"+Z,G}function Z9($){if(HN[$])return HN[$];if(!h7[$])return $;var Z=h7[$],G;for(G in Z)if(Z.hasOwnProperty(G)&&G in DW)return HN[$]=Z[G];return $}function Z4($,Z){yW.set($,Z),S5(Z,[$])}function IT($){for(var Z=kG,G=0;G<$.length;G++){var Y=$[G];if(typeof Y==="object"&&Y!==null)if(q5(Y)&&Y.length===2&&typeof Y[0]==="string"){if(Z!==kG&&Z!==RN)return WN;Z=RN}else return WN;else{if(typeof Y==="function"||typeof Y==="string"&&50<Y.length||Z!==kG&&Z!==wN)return WN;Z=wN}}return Z}function lX($,Z,G,Y){for(var U in $)G4.call($,U)&&U[0]!=="_"&&W4(U,$[U],Z,G,Y)}function W4($,Z,G,Y,U){switch(typeof Z){case"object":if(Z===null){Z="null";break}else{if(Z.$$typeof===D4){var B=i(Z.type)||"…",W=Z.key;Z=Z.props;var z=Object.keys(Z),L=z.length;if(W==null&&L===0){Z="<"+B+" />";break}if(3>Y||L===1&&z[0]==="children"&&W==null){Z="<"+B+" … />";break}G.push([U+" ".repeat(Y)+$,"<"+B]),W!==null&&W4("key",W,G,Y+1,U),$=!1;for(var T in Z)T==="children"?Z.children!=null&&(!q5(Z.children)||0<Z.children.length)&&($=!0):G4.call(Z,T)&&T[0]!=="_"&&W4(T,Z[T],G,Y+1,U);G.push(["",$?">…</"+B+">":"/>"]);return}if(B=Object.prototype.toString.call(Z),B=B.slice(8,B.length-1),B==="Array"){if(T=IT(Z),T===wN||T===kG){Z=JSON.stringify(Z);break}else if(T===RN){G.push([U+" ".repeat(Y)+$,""]);for($=0;$<Z.length;$++)B=Z[$],W4(B[0],B[1],G,Y+1,U);return}}if(B==="Promise"){if(Z.status==="fulfilled"){if(B=G.length,W4($,Z.value,G,Y,U),G.length>B){G=G[B],G[1]="Promise<"+(G[1]||"Object")+">";return}}else if(Z.status==="rejected"&&(B=G.length,W4($,Z.reason,G,Y,U),G.length>B)){G=G[B],G[1]="Rejected Promise<"+G[1]+">";return}G.push([" ".repeat(Y)+$,"Promise"]);return}B==="Object"&&(T=Object.getPrototypeOf(Z))&&typeof T.constructor==="function"&&(B=T.constructor.name),G.push([U+" ".repeat(Y)+$,B==="Object"?3>Y?"":"…":B]),3>Y&&lX(Z,G,Y+1,U);return}case"function":Z=Z.name===""?"() => {}":Z.name+"() {}";break;case"string":Z=Z===JO?"…":JSON.stringify(Z);break;case"undefined":Z="undefined";break;case"boolean":Z=Z?"true":"false";break;default:Z=String(Z)}G.push([U+" ".repeat(Y)+$,Z])}function SB($,Z,G,Y){var U=!0;for(W in $)W in Z||(G.push([fG+" ".repeat(Y)+W,"…"]),U=!1);for(var B in Z)if(B in $){var W=$[B],z=Z[B];if(W!==z){if(Y===0&&B==="children")U=" ".repeat(Y)+B,G.push([fG+U,"…"],[yG+U,"…"]);else{if(!(3<=Y)){if(typeof W==="object"&&typeof z==="object"&&W!==null&&z!==null&&W.$$typeof===z.$$typeof)if(z.$$typeof===D4){if(W.type===z.type&&W.key===z.key){W=i(z.type)||"…",U=" ".repeat(Y)+B,W="<"+W+" … />",G.push([fG+U,W],[yG+U,W]),U=!1;continue}}else{var L=Object.prototype.toString.call(W),T=Object.prototype.toString.call(z);if(L===T&&(T==="[object Object]"||T==="[object Array]")){L=[uW+" ".repeat(Y)+B,T==="[object Array]"?"Array":""],G.push(L),T=G.length,SB(W,z,G,Y+1)?T===G.length&&(L[1]="Referentially unequal but deeply equal objects. Consider memoization."):U=!1;continue}}else if(typeof W==="function"&&typeof z==="function"&&W.name===z.name&&W.length===z.length&&(L=Function.prototype.toString.call(W),T=Function.prototype.toString.call(z),L===T)){W=z.name===""?"() => {}":z.name+"() {}",G.push([uW+" ".repeat(Y)+B,W+" Referentially unequal function closure. Consider memoization."]);continue}}W4(B,W,G,Y,fG),W4(B,z,G,Y,yG)}U=!1}}else G.push([yG+" ".repeat(Y)+B,"…"]),U=!1;return U}function M6($){o0=$&63?"Blocking":$&64?"Gesture":$&4194176?"Transition":$&62914560?"Suspense":$&2080374784?"Idle":"Other"}function w4($,Z,G,Y){A1&&(q2.start=Z,q2.end=G,N8.color="warning",N8.tooltipText=Y,N8.properties=null,($=$._debugTask)?$.run(performance.measure.bind(performance,Y,q2)):performance.measure(Y,q2))}function PJ($,Z,G){w4($,Z,G,"Reconnect")}function TJ($,Z,G,Y,U){var B=d($);if(B!==null&&A1){var{alternate:W,actualDuration:z}=$;if(W===null||W.child!==$.child)for(var L=$.child;L!==null;L=L.sibling)z-=L.actualDuration;Y=0.5>z?Y?"tertiary-light":"primary-light":10>z?Y?"tertiary":"primary":100>z?Y?"tertiary-dark":"primary-dark":"error";var T=$.memoizedProps;z=$._debugTask,T!==null&&W!==null&&W.memoizedProps!==T?(L=[GO],T=SB(W.memoizedProps,T,L,0),1<L.length&&(T&&!X2&&(W.lanes&U)===0&&100<$.actualDuration?(X2=!0,L[0]=XO,N8.color="warning",N8.tooltipText=xW):(N8.color=Y,N8.tooltipText=B),N8.properties=L,q2.start=Z,q2.end=G,z!=null?z.run(performance.measure.bind(performance,""+B,q2)):performance.measure(""+B,q2))):z!=null?z.run(console.timeStamp.bind(console,B,Z,G,k6,void 0,Y)):console.timeStamp(B,Z,G,k6,void 0,Y)}}function rX($,Z,G,Y){if(A1){var U=d($);if(U!==null){for(var B=null,W=[],z=0;z<Y.length;z++){var L=Y[z];B==null&&L.source!==null&&(B=L.source._debugTask),L=L.value,W.push(["Error",typeof L==="object"&&L!==null&&typeof L.message==="string"?String(L.message):String(L)])}$.key!==null&&W4("key",$.key,W,0,""),$.memoizedProps!==null&&lX($.memoizedProps,W,0,""),B==null&&(B=$._debugTask),$={start:Z,end:G,detail:{devtools:{color:"error",track:k6,tooltipText:$.tag===13?"Hydration failed":"Error boundary caught an error",properties:W}}},B?B.run(performance.measure.bind(performance,""+U,$)):performance.measure(""+U,$)}}}function R4($,Z,G,Y,U){if(U!==null){if(A1){var B=d($);if(B!==null){Y=[];for(var W=0;W<U.length;W++){var z=U[W].value;Y.push(["Error",typeof z==="object"&&z!==null&&typeof z.message==="string"?String(z.message):String(z)])}$.key!==null&&W4("key",$.key,Y,0,""),$.memoizedProps!==null&&lX($.memoizedProps,Y,0,""),Z={start:Z,end:G,detail:{devtools:{color:"error",track:k6,tooltipText:"A lifecycle or effect errored",properties:Y}}},($=$._debugTask)?$.run(performance.measure.bind(performance,""+B,Z)):performance.measure(""+B,Z)}}}else B=d($),B!==null&&A1&&(U=1>Y?"secondary-light":100>Y?"secondary":500>Y?"secondary-dark":"error",($=$._debugTask)?$.run(console.timeStamp.bind(console,B,Z,G,k6,void 0,U)):console.timeStamp(B,Z,G,k6,void 0,U))}function OT($,Z,G,Y){if(A1&&!(Z<=$)){var U=(G&738197653)===G?"tertiary-dark":"primary-dark";G=(G&536870912)===G?"Prepared":(G&201326741)===G?"Hydrated":"Render",Y?Y.run(console.timeStamp.bind(console,G,$,Z,o0,r0,U)):console.timeStamp(G,$,Z,o0,r0,U)}}function jB($,Z,G,Y){!A1||Z<=$||(G=(G&738197653)===G?"tertiary-dark":"primary-dark",Y?Y.run(console.timeStamp.bind(console,"Prewarm",$,Z,o0,r0,G)):console.timeStamp("Prewarm",$,Z,o0,r0,G))}function DB($,Z,G,Y){!A1||Z<=$||(G=(G&738197653)===G?"tertiary-dark":"primary-dark",Y?Y.run(console.timeStamp.bind(console,"Suspended",$,Z,o0,r0,G)):console.timeStamp("Suspended",$,Z,o0,r0,G))}function VT($,Z,G,Y,U,B){if(A1&&!(Z<=$)){G=[];for(var W=0;W<Y.length;W++){var z=Y[W].value;G.push(["Recoverable Error",typeof z==="object"&&z!==null&&typeof z.message==="string"?String(z.message):String(z)])}$={start:$,end:Z,detail:{devtools:{color:"primary-dark",track:o0,trackGroup:r0,tooltipText:U?"Hydration Failed":"Recovered after Error",properties:G}}},B?B.run(performance.measure.bind(performance,"Recovered",$)):performance.measure("Recovered",$)}}function nX($,Z,G,Y){!A1||Z<=$||(Y?Y.run(console.timeStamp.bind(console,"Errored",$,Z,o0,r0,"error")):console.timeStamp("Errored",$,Z,o0,r0,"error"))}function AT($,Z,G,Y){!A1||Z<=$||(Y?Y.run(console.timeStamp.bind(console,G,$,Z,o0,r0,"secondary-light")):console.timeStamp(G,$,Z,o0,r0,"secondary-light"))}function vB($,Z,G,Y,U){if(A1&&!(Z<=$)){for(var B=[],W=0;W<G.length;W++){var z=G[W].value;B.push(["Error",typeof z==="object"&&z!==null&&typeof z.message==="string"?String(z.message):String(z)])}$={start:$,end:Z,detail:{devtools:{color:"error",track:o0,trackGroup:r0,tooltipText:Y?"Remaining Effects Errored":"Commit Errored",properties:B}}},U?U.run(performance.measure.bind(performance,"Errored",$)):performance.measure("Errored",$)}}function p$($,Z,G){!A1||Z<=$||(G?G.run(console.timeStamp.bind(console,"Animating",$,Z,o0,r0,"secondary-dark")):console.timeStamp("Animating",$,Z,o0,r0,"secondary-dark"))}function CJ(){for(var $=u7,Z=zN=u7=0;Z<$;){var G=f6[Z];f6[Z++]=null;var Y=f6[Z];f6[Z++]=null;var U=f6[Z];f6[Z++]=null;var B=f6[Z];if(f6[Z++]=null,Y!==null&&U!==null){var W=Y.pending;W===null?U.next=U:(U.next=W.next,W.next=U),Y.pending=U}B!==0&&bB(G,U,B)}}function IJ($,Z,G,Y){f6[u7++]=$,f6[u7++]=Z,f6[u7++]=G,f6[u7++]=Y,zN|=Y,$.lanes|=Y,$=$.alternate,$!==null&&($.lanes|=Y)}function sX($,Z,G,Y){return IJ($,Z,G,Y),OJ($)}function j5($,Z){return IJ($,null,null,Z),OJ($)}function bB($,Z,G){$.lanes|=G;var Y=$.alternate;Y!==null&&(Y.lanes|=G);for(var U=!1,B=$.return;B!==null;)B.childLanes|=G,Y=B.alternate,Y!==null&&(Y.childLanes|=G),B.tag===22&&($=B.stateNode,$===null||$._visibility&SZ||(U=!0)),$=B,B=B.return;return $.tag===3?(B=$.stateNode,U&&Z!==null&&(U=31-u5(G),$=B.hiddenUpdates,Y=$[U],Y===null?$[U]=[Z]:Y.push(Z),Z.lane=G|536870912),B):null}function OJ($){if(QQ>LO)throw j9=QQ=0,JQ=iN=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.");j9>PO&&(j9=0,JQ=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.")),$.alternate===null&&($.flags&4098)!==0&&oF($);for(var Z=$,G=Z.return;G!==null;)Z.alternate===null&&(Z.flags&4098)!==0&&oF($),Z=G,G=Z.return;return Z.tag===3?Z.stateNode:null}function Q9($){if(y6===null)return $;var Z=y6($);return Z===void 0?$:Z.current}function oX($){if(y6===null)return $;var Z=y6($);return Z===void 0?$!==null&&$!==void 0&&typeof $.render==="function"&&(Z=Q9($.render),$.render!==Z)?(Z={$$typeof:RZ,render:Z},$.displayName!==void 0&&(Z.displayName=$.displayName),Z):$:Z.current}function kB($,Z){if(y6===null)return!1;var G=$.elementType;Z=Z.type;var Y=!1,U=typeof Z==="object"&&Z!==null?Z.$$typeof:null;switch($.tag){case 1:typeof Z==="function"&&(Y=!0);break;case 0:typeof Z==="function"?Y=!0:U===P6&&(Y=!0);break;case 11:U===RZ?Y=!0:U===P6&&(Y=!0);break;case 14:case 15:U===TG?Y=!0:U===P6&&(Y=!0);break;default:return!1}return Y&&($=y6(G),$!==void 0&&$===y6(Z))?!0:!1}function fB($){y6!==null&&typeof WeakSet==="function"&&(x7===null&&(x7=new WeakSet),x7.add($))}function yB($,Z,G){do{var Y=$,U=Y.alternate,B=Y.child,W=Y.sibling,z=Y.tag;Y=Y.type;var L=null;switch(z){case 0:case 15:case 1:L=Y;break;case 11:L=Y.render}if(y6===null)throw Error("Expected resolveFamily to be set during hot reload.");var T=!1;if(Y=!1,L!==null&&(L=y6(L),L!==void 0&&(G.has(L)?Y=!0:Z.has(L)&&(z===1?Y=!0:T=!0))),x7!==null&&(x7.has($)||U!==null&&x7.has(U))&&(Y=!0),Y&&($._debugNeedsRemount=!0),Y||T)U=j5($,2),U!==null&&h1(U,$,2);if(B===null||Y||yB(B,Z,G),W===null)break;$=W}while(1)}function ET($,Z,G,Y){this.tag=$,this.key=G,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=Z,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=Y,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,mW||typeof Object.preventExtensions!=="function"||Object.preventExtensions(this)}function aX($){return $=$.prototype,!(!$||!$.isReactComponent)}function $8($,Z){var G=$.alternate;switch(G===null?(G=P($.tag,Z,$.key,$.mode),G.elementType=$.elementType,G.type=$.type,G.stateNode=$.stateNode,G._debugOwner=$._debugOwner,G._debugStack=$._debugStack,G._debugTask=$._debugTask,G._debugHookTypes=$._debugHookTypes,G.alternate=$,$.alternate=G):(G.pendingProps=Z,G.type=$.type,G.flags=0,G.subtreeFlags=0,G.deletions=null,G.actualDuration=-0,G.actualStartTime=-1.1),G.flags=$.flags&65011712,G.childLanes=$.childLanes,G.lanes=$.lanes,G.child=$.child,G.memoizedProps=$.memoizedProps,G.memoizedState=$.memoizedState,G.updateQueue=$.updateQueue,Z=$.dependencies,G.dependencies=Z===null?null:{lanes:Z.lanes,firstContext:Z.firstContext,_debugThenableState:Z._debugThenableState},G.sibling=$.sibling,G.index=$.index,G.ref=$.ref,G.refCleanup=$.refCleanup,G.selfBaseDuration=$.selfBaseDuration,G.treeBaseDuration=$.treeBaseDuration,G._debugInfo=$._debugInfo,G._debugNeedsRemount=$._debugNeedsRemount,G.tag){case 0:case 15:G.type=Q9($.type);break;case 1:G.type=Q9($.type);break;case 11:G.type=oX($.type)}return G}function gB($,Z){$.flags&=65011714;var G=$.alternate;return G===null?($.childLanes=0,$.lanes=Z,$.child=null,$.subtreeFlags=0,$.memoizedProps=null,$.memoizedState=null,$.updateQueue=null,$.dependencies=null,$.stateNode=null,$.selfBaseDuration=0,$.treeBaseDuration=0):($.childLanes=G.childLanes,$.lanes=G.lanes,$.child=G.child,$.subtreeFlags=0,$.deletions=null,$.memoizedProps=G.memoizedProps,$.memoizedState=G.memoizedState,$.updateQueue=G.updateQueue,$.type=G.type,Z=G.dependencies,$.dependencies=Z===null?null:{lanes:Z.lanes,firstContext:Z.firstContext,_debugThenableState:Z._debugThenableState},$.selfBaseDuration=G.selfBaseDuration,$.treeBaseDuration=G.treeBaseDuration),$}function iX($,Z,G,Y,U,B){var W=0,z=$;if(typeof $==="function")aX($)&&(W=1),z=Q9(z);else if(typeof $==="string")W=F0(),W=gC($,G,W)?26:$==="html"||$==="head"||$==="body"?27:5;else $:switch($){case pY:return Z=P(31,G,Z,U),Z.elementType=pY,Z.lanes=B,Z;case E7:return J9(G.children,U,B,Z);case PG:W=8,U|=v5,U|=q4;break;case uY:return $=G,Y=U,typeof $.id!=="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof $.id),Z=P(12,$,Z,Y|g0),Z.elementType=uY,Z.lanes=B,Z.stateNode={effectDuration:0,passiveEffectDuration:0},Z;case mY:return Z=P(13,G,Z,U),Z.elementType=mY,Z.lanes=B,Z;case dY:return Z=P(19,G,Z,U),Z.elementType=dY,Z.lanes=B,Z;default:if(typeof $==="object"&&$!==null)switch($.$$typeof){case v4:W=10;break $;case xY:W=9;break $;case RZ:W=11,z=oX(z);break $;case TG:W=14;break $;case P6:W=16,z=null;break $}if(z="",$===void 0||typeof $==="object"&&$!==null&&Object.keys($).length===0)z+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";$===null?G="null":q5($)?G="array":$!==void 0&&$.$$typeof===D4?(G="<"+(i($.type)||"Unknown")+" />",z=" Did you accidentally export a JSX literal instead of a component?"):G=typeof $,(W=Y?Y0(Y):null)&&(z+=`
|
|
72
|
-
|
|
73
|
-
Check the render method of \``+
|
|
31
|
+
`+z0(B))}else break;var z=Z}catch(w){z=`
|
|
32
|
+
Error generating stack: `+w.message+`
|
|
33
|
+
`+w.stack}return z}function q0($,Z,Q,Y,U,B,z){var w=_6;t7($);try{return $!==null&&$._debugTask?$._debugTask.run(Z.bind(null,Q,Y,U,B,z)):Z(Q,Y,U,B,z)}finally{t7(w)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function t7($){x.getCurrentStack=$===null?null:aJ,D4=!1,_6=$}function m2($){return typeof Symbol==="function"&&Symbol.toStringTag&&$[Symbol.toStringTag]||$.constructor.name||"Object"}function k8($){try{return U5($),!1}catch(Z){return!0}}function U5($){return""+$}function W1($,Z){if(k8($))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",Z,m2($)),U5($)}function P$($,Z){if(k8($))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.",Z,m2($)),U5($)}function y0($){if(k8($))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.",m2($)),U5($)}function e7($){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var Z=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(Z.isDisabled)return!0;if(!Z.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{C9=Z.inject($),S5=Z}catch(Q){console.error("React instrumentation encountered an error: %o.",Q)}return Z.checkDCE?!0:!1}function P1($){if(typeof GC==="function"&&qC($),S5&&typeof S5.setStrictMode==="function")try{S5.setStrictMode(C9,$)}catch(Z){j4||(j4=!0,console.error("React instrumentation encountered an error: %o",Z))}}function iJ($){return $>>>=0,$===0?32:31-(YC($)/XC|0)|0}function B4($){var Z=$&42;if(Z!==0)return Z;switch($&-$){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 $&261888;case 262144:case 524288:case 1048576:case 2097152:return $&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return $&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."),$}}function d2($,Z,Q){var Y=$.pendingLanes;if(Y===0)return 0;var U=0,B=$.suspendedLanes,z=$.pingedLanes;$=$.warmLanes;var w=Y&134217727;return w!==0?(Y=w&~B,Y!==0?U=B4(Y):(z&=w,z!==0?U=B4(z):Q||(Q=w&~$,Q!==0&&(U=B4(Q))))):(w=Y&~B,w!==0?U=B4(w):z!==0?U=B4(z):Q||(Q=Y&~$,Q!==0&&(U=B4(Q)))),U===0?0:Z!==0&&Z!==U&&(Z&B)===0&&(B=U&-U,Q=Z&-Z,B>=Q||B===32&&(Q&4194048)!==0)?Z:U}function p2($,Z){return($.pendingLanes&~($.suspendedLanes&~$.pingedLanes)&Z)===0}function zq($,Z){switch($){case 1:case 2:case 4:case 8:case 64:return Z+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 Z+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 $9(){var $=HG;return HG<<=1,(HG&62914560)===0&&(HG=4194304),$}function Z9($){for(var Z=[],Q=0;31>Q;Q++)Z.push($);return Z}function v8($,Z){$.pendingLanes|=Z,Z!==268435456&&($.suspendedLanes=0,$.pingedLanes=0,$.warmLanes=0)}function tJ($,Z,Q,Y,U,B){var z=$.pendingLanes;$.pendingLanes=Q,$.suspendedLanes=0,$.pingedLanes=0,$.warmLanes=0,$.expiredLanes&=Q,$.entangledLanes&=Q,$.errorRecoveryDisabledLanes&=Q,$.shellSuspendCounter=0;var{entanglements:w,expirationTimes:L,hiddenUpdates:T}=$;for(Q=z&~Q;0<Q;){var b=31-y5(Q),f=1<<b;w[b]=0,L[b]=-1;var S=T[b];if(S!==null)for(T[b]=null,b=0;b<S.length;b++){var g=S[b];g!==null&&(g.lane&=-536870913)}Q&=~f}Y!==0&&c2($,Y,0),B!==0&&U===0&&$.tag!==0&&($.suspendedLanes|=B&~(z&~Z))}function c2($,Z,Q){$.pendingLanes|=Z,$.suspendedLanes&=~Z;var Y=31-y5(Z);$.entangledLanes|=Z,$.entanglements[Y]=$.entanglements[Y]|1073741824|Q&261930}function l2($,Z){var Q=$.entangledLanes|=Z;for($=$.entanglements;Q;){var Y=31-y5(Q),U=1<<Y;U&Z|$[Y]&Z&&($[Y]|=Z),Q&=~U}}function r2($,Z){var Q=Z&-Z;return Q=(Q&42)!==0?1:s2(Q),(Q&($.suspendedLanes|Z))!==0?0:Q}function s2($){switch($){case 2:$=1;break;case 8:$=4;break;case 32:$=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:$=128;break;case 268435456:$=134217728;break;default:$=0}return $}function T$($,Z,Q){if(k4)for($=$.pendingUpdatersLaneMap;0<Q;){var Y=31-y5(Q),U=1<<Y;$[Y].add(Z),Q&=~U}}function b8($,Z){if(k4)for(var{pendingUpdatersLaneMap:Q,memoizedUpdaters:Y}=$;0<Z;){var U=31-y5(Z);$=1<<U,U=Q[U],0<U.size&&(U.forEach(function(B){var z=B.alternate;z!==null&&Y.has(z)||Y.add(B)}),U.clear()),Z&=~$}}function C($){return $&=-$,L6!==0&&L6<$?J4!==0&&J4<$?($&134217727)!==0?v4:FG:J4:L6}function y(){var $=U1.p;if($!==0)return $;return $=window.event,$===void 0?v4:WW($.type)}function r($,Z){var Q=U1.p;try{return U1.p=$,Z()}finally{U1.p=Q}}function Z0($){delete $[_5],delete $[g5],delete $[fX],delete $[NC],delete $[UC]}function N0($){var Z=$[_5];if(Z)return Z;for(var Q=$.parentNode;Q;){if(Z=Q[i8]||Q[_5]){if(Q=Z.alternate,Z.child!==null||Q!==null&&Q.child!==null)for($=$W($);$!==null;){if(Q=$[_5])return Q;$=$W($)}return Z}$=Q,Q=$.parentNode}return null}function j0($){if($=$[_5]||$[i8]){var Z=$.tag;if(Z===5||Z===6||Z===13||Z===31||Z===26||Z===27||Z===3)return $}return null}function k0($){var Z=$.tag;if(Z===5||Z===26||Z===27||Z===6)return $.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function J1($){var Z=$[DW];return Z||(Z=$[DW]={hoistableStyles:new Map,hoistableScripts:new Map}),Z}function _0($){$[NZ]=!0}function A5($,Z){U6($,Z),U6($+"Capture",Z)}function U6($,Z){U7[$]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",$),U7[$]=Z;var Q=$.toLowerCase();yX[Q]=$,$==="onDoubleClick"&&(yX.ondblclick=$);for($=0;$<Z.length;$++)jW.add(Z[$])}function f8($,Z){KC[Z.type]||Z.onChange||Z.onInput||Z.readOnly||Z.disabled||Z.value==null||($==="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`.")),Z.onChange||Z.readOnly||Z.disabled||Z.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 C$($){if(Z4.call(vW,$))return!0;if(Z4.call(kW,$))return!1;if(BC.test($))return vW[$]=!0;return kW[$]=!0,console.error("Invalid attribute name: `%s`",$),!1}function OK($,Z,Q){if(C$(Z)){if(!$.hasAttribute(Z)){switch(typeof Q){case"symbol":case"object":return Q;case"function":return Q;case"boolean":if(Q===!1)return Q}return Q===void 0?void 0:null}if($=$.getAttribute(Z),$===""&&Q===!0)return!0;return W1(Q,Z),$===""+Q?Q:$}}function eJ($,Z,Q){if(C$(Z))if(Q===null)$.removeAttribute(Z);else{switch(typeof Q){case"undefined":case"function":case"symbol":$.removeAttribute(Z);return;case"boolean":var Y=Z.toLowerCase().slice(0,5);if(Y!=="data-"&&Y!=="aria-"){$.removeAttribute(Z);return}}W1(Q,Z),$.setAttribute(Z,""+Q)}}function $Q($,Z,Q){if(Q===null)$.removeAttribute(Z);else{switch(typeof Q){case"undefined":case"function":case"symbol":case"boolean":$.removeAttribute(Z);return}W1(Q,Z),$.setAttribute(Z,""+Q)}}function n4($,Z,Q,Y){if(Y===null)$.removeAttribute(Q);else{switch(typeof Y){case"undefined":case"function":case"symbol":case"boolean":$.removeAttribute(Q);return}W1(Y,Q),$.setAttributeNS(Z,Q,""+Y)}}function E6($){switch(typeof $){case"bigint":case"boolean":case"number":case"string":case"undefined":return $;case"object":return y0($),$;default:return""}}function IK($){var Z=$.type;return($=$.nodeName)&&$.toLowerCase()==="input"&&(Z==="checkbox"||Z==="radio")}function XP($,Z,Q){var Y=Object.getOwnPropertyDescriptor($.constructor.prototype,Z);if(!$.hasOwnProperty(Z)&&typeof Y<"u"&&typeof Y.get==="function"&&typeof Y.set==="function"){var{get:U,set:B}=Y;return Object.defineProperty($,Z,{configurable:!0,get:function(){return U.call(this)},set:function(z){y0(z),Q=""+z,B.call(this,z)}}),Object.defineProperty($,Z,{enumerable:Y.enumerable}),{getValue:function(){return Q},setValue:function(z){y0(z),Q=""+z},stopTracking:function(){$._valueTracker=null,delete $[Z]}}}}function Mq($){if(!$._valueTracker){var Z=IK($)?"checked":"value";$._valueTracker=XP($,Z,""+$[Z])}}function VK($){if(!$)return!1;var Z=$._valueTracker;if(!Z)return!0;var Q=Z.getValue(),Y="";return $&&(Y=IK($)?$.checked?"true":"false":$.value),$=Y,$!==Q?(Z.setValue($),!0):!1}function ZQ($){if($=$||(typeof document<"u"?document:void 0),typeof $>"u")return null;try{return $.activeElement||$.body}catch(Z){return $.body}}function S6($){return $.replace(HC,function(Z){return"\\"+Z.charCodeAt(0).toString(16)+" "})}function AK($,Z){Z.checked===void 0||Z.defaultChecked===void 0||fW||(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",i6()||"A component",Z.type),fW=!0),Z.value===void 0||Z.defaultValue===void 0||bW||(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",i6()||"A component",Z.type),bW=!0)}function wq($,Z,Q,Y,U,B,z,w){if($.name="",z!=null&&typeof z!=="function"&&typeof z!=="symbol"&&typeof z!=="boolean"?(W1(z,"type"),$.type=z):$.removeAttribute("type"),Z!=null)if(z==="number"){if(Z===0&&$.value===""||$.value!=Z)$.value=""+E6(Z)}else $.value!==""+E6(Z)&&($.value=""+E6(Z));else z!=="submit"&&z!=="reset"||$.removeAttribute("value");Z!=null?Rq($,z,E6(Z)):Q!=null?Rq($,z,E6(Q)):Y!=null&&$.removeAttribute("value"),U==null&&B!=null&&($.defaultChecked=!!B),U!=null&&($.checked=U&&typeof U!=="function"&&typeof U!=="symbol"),w!=null&&typeof w!=="function"&&typeof w!=="symbol"&&typeof w!=="boolean"?(W1(w,"name"),$.name=""+E6(w)):$.removeAttribute("name")}function EK($,Z,Q,Y,U,B,z,w){if(B!=null&&typeof B!=="function"&&typeof B!=="symbol"&&typeof B!=="boolean"&&(W1(B,"type"),$.type=B),Z!=null||Q!=null){if(!(B!=="submit"&&B!=="reset"||Z!==void 0&&Z!==null)){Mq($);return}Q=Q!=null?""+E6(Q):"",Z=Z!=null?""+E6(Z):Q,w||Z===$.value||($.value=Z),$.defaultValue=Z}Y=Y!=null?Y:U,Y=typeof Y!=="function"&&typeof Y!=="symbol"&&!!Y,$.checked=w?$.checked:!!Y,$.defaultChecked=!!Y,z!=null&&typeof z!=="function"&&typeof z!=="symbol"&&typeof z!=="boolean"&&(W1(z,"name"),$.name=z),Mq($)}function Rq($,Z,Q){Z==="number"&&ZQ($.ownerDocument)===$||$.defaultValue===""+Q||($.defaultValue=""+Q)}function SK($,Z){Z.value==null&&(typeof Z.children==="object"&&Z.children!==null?W$.Children.forEach(Z.children,function(Q){Q==null||typeof Q==="string"||typeof Q==="number"||typeof Q==="bigint"||gW||(gW=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):Z.dangerouslySetInnerHTML==null||hW||(hW=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),Z.selected==null||yW||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),yW=!0)}function DK(){var $=i6();return $?`
|
|
34
|
+
|
|
35
|
+
Check the render method of \``+$+"`.":""}function J9($,Z,Q,Y){if($=$.options,Z){Z={};for(var U=0;U<Q.length;U++)Z["$"+Q[U]]=!0;for(Q=0;Q<$.length;Q++)U=Z.hasOwnProperty("$"+$[Q].value),$[Q].selected!==U&&($[Q].selected=U),U&&Y&&($[Q].defaultSelected=!0)}else{Q=""+E6(Q),Z=null;for(U=0;U<$.length;U++){if($[U].value===Q){$[U].selected=!0,Y&&($[U].defaultSelected=!0);return}Z!==null||$[U].disabled||(Z=$[U])}Z!==null&&(Z.selected=!0)}}function jK($,Z){for($=0;$<xW.length;$++){var Q=xW[$];if(Z[Q]!=null){var Y=G5(Z[Q]);Z.multiple&&!Y?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",Q,DK()):!Z.multiple&&Y&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",Q,DK())}}Z.value===void 0||Z.defaultValue===void 0||uW||(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"),uW=!0)}function kK($,Z){Z.value===void 0||Z.defaultValue===void 0||mW||(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",i6()||"A component"),mW=!0),Z.children!=null&&Z.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function vK($,Z,Q){if(Z!=null&&(Z=""+E6(Z),Z!==$.value&&($.value=Z),Q==null)){$.defaultValue!==Z&&($.defaultValue=Z);return}$.defaultValue=Q!=null?""+E6(Q):""}function bK($,Z,Q,Y){if(Z==null){if(Y!=null){if(Q!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(G5(Y)){if(1<Y.length)throw Error("<textarea> can only have at most one child.");Y=Y[0]}Q=Y}Q==null&&(Q=""),Z=Q}Q=E6(Z),$.defaultValue=Q,Y=$.textContent,Y===Q&&Y!==""&&Y!==null&&($.value=Y),Mq($)}function fK($,Z){return $.serverProps===void 0&&$.serverTail.length===0&&$.children.length===1&&3<$.distanceFromLeaf&&$.distanceFromLeaf>15-Z?fK($.children[0],Z):$}function K6($){return" "+" ".repeat($)}function Q9($){return"+ "+" ".repeat($)}function n2($){return"- "+" ".repeat($)}function yK($){switch($.tag){case 26:case 27:case 5:return $.type;case 16:return"Lazy";case 31:return"Activity";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return $=$.type,$.displayName||$.name||null;case 11:return $=$.type.render,$.displayName||$.name||null;case 1:return $=$.type,$.displayName||$.name||null;default:return null}}function O$($,Z){return dW.test($)?($=JSON.stringify($),$.length>Z-2?8>Z?'{"..."}':"{"+$.slice(0,Z-7)+'..."}':"{"+$+"}"):$.length>Z?5>Z?'{"..."}':$.slice(0,Z-3)+"...":$}function JQ($,Z,Q){var Y=120-2*Q;if(Z===null)return Q9(Q)+O$($,Y)+`
|
|
36
|
+
`;if(typeof Z==="string"){for(var U=0;U<Z.length&&U<$.length&&Z.charCodeAt(U)===$.charCodeAt(U);U++);return U>Y-8&&10<U&&($="..."+$.slice(U-8),Z="..."+Z.slice(U-8)),Q9(Q)+O$($,Y)+`
|
|
37
|
+
`+n2(Q)+O$(Z,Y)+`
|
|
38
|
+
`}return K6(Q)+O$($,Y)+`
|
|
39
|
+
`}function _q($){return Object.prototype.toString.call($).replace(/^\[object (.*)\]$/,function(Z,Q){return Q})}function I$($,Z){switch(typeof $){case"string":return $=JSON.stringify($),$.length>Z?5>Z?'"..."':$.slice(0,Z-4)+'..."':$;case"object":if($===null)return"null";if(G5($))return"[...]";if($.$$typeof===E4)return(Z=i($.type))?"<"+Z+">":"<...>";var Q=_q($);if(Q==="Object"){Q="",Z-=2;for(var Y in $)if($.hasOwnProperty(Y)){var U=JSON.stringify(Y);if(U!=='"'+Y+'"'&&(Y=U),Z-=Y.length-2,U=I$($[Y],15>Z?Z:15),Z-=U.length,0>Z){Q+=Q===""?"...":", ...";break}Q+=(Q===""?"":",")+Y+":"+U}return"{"+Q+"}"}return Q;case"function":return(Z=$.displayName||$.name)?"function "+Z:"function";default:return String($)}}function G9($,Z){return typeof $!=="string"||dW.test($)?"{"+I$($,Z-2)+"}":$.length>Z-2?5>Z?'"..."':'"'+$.slice(0,Z-5)+'..."':'"'+$+'"'}function Lq($,Z,Q){var Y=120-Q.length-$.length,U=[],B;for(B in Z)if(Z.hasOwnProperty(B)&&B!=="children"){var z=G9(Z[B],120-Q.length-B.length-1);Y-=B.length+z.length+2,U.push(B+"="+z)}return U.length===0?Q+"<"+$+`>
|
|
40
|
+
`:0<Y?Q+"<"+$+" "+U.join(" ")+`>
|
|
41
|
+
`:Q+"<"+$+`
|
|
42
|
+
`+Q+" "+U.join(`
|
|
43
|
+
`+Q+" ")+`
|
|
44
|
+
`+Q+`>
|
|
45
|
+
`}function NP($,Z,Q){var Y="",U=l0({},Z),B;for(B in $)if($.hasOwnProperty(B)){delete U[B];var z=120-2*Q-B.length-2,w=I$($[B],z);Z.hasOwnProperty(B)?(z=I$(Z[B],z),Y+=Q9(Q)+B+": "+w+`
|
|
46
|
+
`,Y+=n2(Q)+B+": "+z+`
|
|
47
|
+
`):Y+=Q9(Q)+B+": "+w+`
|
|
48
|
+
`}for(var L in U)U.hasOwnProperty(L)&&($=I$(U[L],120-2*Q-L.length-2),Y+=n2(Q)+L+": "+$+`
|
|
49
|
+
`);return Y}function UP($,Z,Q,Y){var U="",B=new Map;for(T in Q)Q.hasOwnProperty(T)&&B.set(T.toLowerCase(),T);if(B.size===1&&B.has("children"))U+=Lq($,Z,K6(Y));else{for(var z in Z)if(Z.hasOwnProperty(z)&&z!=="children"){var w=120-2*(Y+1)-z.length-1,L=B.get(z.toLowerCase());if(L!==void 0){B.delete(z.toLowerCase());var T=Z[z];L=Q[L];var b=G9(T,w);w=G9(L,w),typeof T==="object"&&T!==null&&typeof L==="object"&&L!==null&&_q(T)==="Object"&&_q(L)==="Object"&&(2<Object.keys(T).length||2<Object.keys(L).length||-1<b.indexOf("...")||-1<w.indexOf("..."))?U+=K6(Y+1)+z+`={{
|
|
50
|
+
`+NP(T,L,Y+2)+K6(Y+1)+`}}
|
|
51
|
+
`:(U+=Q9(Y+1)+z+"="+b+`
|
|
52
|
+
`,U+=n2(Y+1)+z+"="+w+`
|
|
53
|
+
`)}else U+=K6(Y+1)+z+"="+G9(Z[z],w)+`
|
|
54
|
+
`}B.forEach(function(f){if(f!=="children"){var S=120-2*(Y+1)-f.length-1;U+=n2(Y+1)+f+"="+G9(Q[f],S)+`
|
|
55
|
+
`}}),U=U===""?K6(Y)+"<"+$+`>
|
|
56
|
+
`:K6(Y)+"<"+$+`
|
|
57
|
+
`+U+K6(Y)+`>
|
|
58
|
+
`}if($=Q.children,Z=Z.children,typeof $==="string"||typeof $==="number"||typeof $==="bigint"){if(B="",typeof Z==="string"||typeof Z==="number"||typeof Z==="bigint")B=""+Z;U+=JQ(B,""+$,Y+1)}else if(typeof Z==="string"||typeof Z==="number"||typeof Z==="bigint")U=$==null?U+JQ(""+Z,null,Y+1):U+JQ(""+Z,void 0,Y+1);return U}function gK($,Z){var Q=yK($);if(Q===null){Q="";for($=$.child;$;)Q+=gK($,Z),$=$.sibling;return Q}return K6(Z)+"<"+Q+`>
|
|
59
|
+
`}function Pq($,Z){var Q=fK($,Z);if(Q!==$&&($.children.length!==1||$.children[0]!==Q))return K6(Z)+`...
|
|
60
|
+
`+Pq(Q,Z+1);Q="";var Y=$.fiber._debugInfo;if(Y)for(var U=0;U<Y.length;U++){var B=Y[U].name;typeof B==="string"&&(Q+=K6(Z)+"<"+B+`>
|
|
61
|
+
`,Z++)}if(Y="",U=$.fiber.pendingProps,$.fiber.tag===6)Y=JQ(U,$.serverProps,Z),Z++;else if(B=yK($.fiber),B!==null)if($.serverProps===void 0){Y=Z;var z=120-2*Y-B.length-2,w="";for(T in U)if(U.hasOwnProperty(T)&&T!=="children"){var L=G9(U[T],15);if(z-=T.length+L.length+2,0>z){w+=" ...";break}w+=" "+T+"="+L}Y=K6(Y)+"<"+B+w+`>
|
|
62
|
+
`,Z++}else $.serverProps===null?(Y=Lq(B,U,Q9(Z)),Z++):typeof $.serverProps==="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(Y=UP(B,U,$.serverProps,Z),Z++);var T="";U=$.fiber.child;for(B=0;U&&B<$.children.length;)z=$.children[B],z.fiber===U?(T+=Pq(z,Z),B++):T+=gK(U,Z),U=U.sibling;U&&0<$.children.length&&(T+=K6(Z)+`...
|
|
63
|
+
`),U=$.serverTail,$.serverProps===null&&Z--;for($=0;$<U.length;$++)B=U[$],T=typeof B==="string"?T+(n2(Z)+O$(B,120-2*Z)+`
|
|
64
|
+
`):T+Lq(B.type,B.props,n2(Z));return Q+Y+T}function Tq($){try{return`
|
|
65
|
+
|
|
66
|
+
`+Pq($,0)}catch(Z){return""}}function hK($,Z,Q){for(var Y=Z,U=null,B=0;Y;)Y===$&&(B=0),U={fiber:Y,children:U!==null?[U]:[],serverProps:Y===Z?Q:Y===$?null:void 0,serverTail:[],distanceFromLeaf:B},B++,Y=Y.return;return U!==null?Tq(U).replaceAll(/^[+-]/gm,">"):""}function uK($,Z){var Q=l0({},$||cW),Y={tag:Z};if(pW.indexOf(Z)!==-1&&(Q.aTagInScope=null,Q.buttonTagInScope=null,Q.nobrTagInScope=null),WC.indexOf(Z)!==-1&&(Q.pTagInButtonScope=null),FC.indexOf(Z)!==-1&&Z!=="address"&&Z!=="div"&&Z!=="p"&&(Q.listItemTagAutoclosing=null,Q.dlItemTagAutoclosing=null),Q.current=Y,Z==="form"&&(Q.formTag=Y),Z==="a"&&(Q.aTagInScope=Y),Z==="button"&&(Q.buttonTagInScope=Y),Z==="nobr"&&(Q.nobrTagInScope=Y),Z==="p"&&(Q.pTagInButtonScope=Y),Z==="li"&&(Q.listItemTagAutoclosing=Y),Z==="dd"||Z==="dt")Q.dlItemTagAutoclosing=Y;return Z==="#document"||Z==="html"?Q.containerTagInScope=null:Q.containerTagInScope||(Q.containerTagInScope=Y),$!==null||Z!=="#document"&&Z!=="html"&&Z!=="body"?Q.implicitRootScope===!0&&(Q.implicitRootScope=!1):Q.implicitRootScope=!0,Q}function xK($,Z,Q){switch(Z){case"select":return $==="hr"||$==="option"||$==="optgroup"||$==="script"||$==="template"||$==="#text";case"optgroup":return $==="option"||$==="#text";case"option":return $==="#text";case"tr":return $==="th"||$==="td"||$==="style"||$==="script"||$==="template";case"tbody":case"thead":case"tfoot":return $==="tr"||$==="style"||$==="script"||$==="template";case"colgroup":return $==="col"||$==="template";case"table":return $==="caption"||$==="colgroup"||$==="tbody"||$==="tfoot"||$==="thead"||$==="style"||$==="script"||$==="template";case"head":return $==="base"||$==="basefont"||$==="bgsound"||$==="link"||$==="meta"||$==="title"||$==="noscript"||$==="noframes"||$==="style"||$==="script"||$==="template";case"html":if(Q)break;return $==="head"||$==="body"||$==="frameset";case"frameset":return $==="frame";case"#document":if(!Q)return $==="html"}switch($){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return Z!=="h1"&&Z!=="h2"&&Z!=="h3"&&Z!=="h4"&&Z!=="h5"&&Z!=="h6";case"rp":case"rt":return zC.indexOf(Z)===-1;case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return Z==null;case"head":return Q||Z===null;case"html":return Q&&Z==="#document"||Z===null;case"body":return Q&&(Z==="#document"||Z==="html")||Z===null}return!0}function KP($,Z){switch($){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 Z.pTagInButtonScope;case"form":return Z.formTag||Z.pTagInButtonScope;case"li":return Z.listItemTagAutoclosing;case"dd":case"dt":return Z.dlItemTagAutoclosing;case"button":return Z.buttonTagInScope;case"a":return Z.aTagInScope;case"nobr":return Z.nobrTagInScope}return null}function mK($,Z){for(;$;){switch($.tag){case 5:case 26:case 27:if($.type===Z)return $}$=$.return}return null}function Cq($,Z){Z=Z||cW;var Q=Z.current;if(Z=(Q=xK($,Q&&Q.tag,Z.implicitRootScope)?null:Q)?null:KP($,Z),Z=Q||Z,!Z)return!0;var Y=Z.tag;if(Z=String(!!Q)+"|"+$+"|"+Y,WG[Z])return!1;WG[Z]=!0;var U=(Z=_6)?mK(Z.return,Y):null,B=Z!==null&&U!==null?hK(U,Z,null):"",z="<"+$+">";return Q?(Q="",Y==="table"&&$==="tr"&&(Q+=" 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`,z,Y,Q,B)):console.error(`In HTML, %s cannot be a descendant of <%s>.
|
|
68
|
+
This will cause a hydration error.%s`,z,Y,B),Z&&($=Z.return,U===null||$===null||U===$&&$._debugOwner===Z._debugOwner||q0(U,function(){console.error(`<%s> cannot contain a nested %s.
|
|
69
|
+
See this log for the ancestor stack trace.`,Y,z)})),!1}function QQ($,Z,Q){if(Q||xK("#text",Z,!1))return!0;if(Q="#text|"+Z,WG[Q])return!1;WG[Q]=!0;var Y=(Q=_6)?mK(Q,Z):null;return Q=Q!==null&&Y!==null?hK(Y,Q,Q.tag!==6?{children:null}:null):"",/\S/.test($)?console.error(`In HTML, text nodes cannot be a child of <%s>.
|
|
70
|
+
This will cause a hydration error.%s`,Z,Q):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`,Z,Q),!1}function V$($,Z){if(Z){var Q=$.firstChild;if(Q&&Q===$.lastChild&&Q.nodeType===3){Q.nodeValue=Z;return}}$.textContent=Z}function BP($){return $.replace(RC,function(Z,Q){return Q.toUpperCase()})}function dK($,Z,Q){var Y=Z.indexOf("--")===0;Y||(-1<Z.indexOf("-")?O9.hasOwnProperty(Z)&&O9[Z]||(O9[Z]=!0,console.error("Unsupported style property %s. Did you mean %s?",Z,BP(Z.replace(wC,"ms-")))):MC.test(Z)?O9.hasOwnProperty(Z)&&O9[Z]||(O9[Z]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",Z,Z.charAt(0).toUpperCase()+Z.slice(1))):!sW.test(Q)||hX.hasOwnProperty(Q)&&hX[Q]||(hX[Q]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,Z,Q.replace(sW,""))),typeof Q==="number"&&(isNaN(Q)?nW||(nW=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",Z)):isFinite(Q)||oW||(oW=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",Z)))),Q==null||typeof Q==="boolean"||Q===""?Y?$.setProperty(Z,""):Z==="float"?$.cssFloat="":$[Z]="":Y?$.setProperty(Z,Q):typeof Q!=="number"||Q===0||aW.has(Z)?Z==="float"?$.cssFloat=Q:(P$(Q,Z),$[Z]=(""+Q).trim()):$[Z]=Q+"px"}function pK($,Z,Q){if(Z!=null&&typeof Z!=="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(Z&&Object.freeze(Z),$=$.style,Q!=null){if(Z){var Y={};if(Q){for(var U in Q)if(Q.hasOwnProperty(U)&&!Z.hasOwnProperty(U))for(var B=gX[U]||[U],z=0;z<B.length;z++)Y[B[z]]=U}for(var w in Z)if(Z.hasOwnProperty(w)&&(!Q||Q[w]!==Z[w]))for(U=gX[w]||[w],B=0;B<U.length;B++)Y[U[B]]=w;w={};for(var L in Z)for(U=gX[L]||[L],B=0;B<U.length;B++)w[U[B]]=L;L={};for(var T in Y)if(U=Y[T],(B=w[T])&&U!==B&&(z=U+","+B,!L[z])){L[z]=!0,z=console;var b=Z[U];z.error.call(z,"%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.",b==null||typeof b==="boolean"||b===""?"Removing":"Updating",U,B)}}for(var f in Q)!Q.hasOwnProperty(f)||Z!=null&&Z.hasOwnProperty(f)||(f.indexOf("--")===0?$.setProperty(f,""):f==="float"?$.cssFloat="":$[f]="");for(var S in Z)T=Z[S],Z.hasOwnProperty(S)&&Q[S]!==T&&dK($,S,T)}else for(Y in Z)Z.hasOwnProperty(Y)&&dK($,Y,Z[Y])}function A$($){if($.indexOf("-")===-1)return!1;switch($){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 cK($){return _C.get($)||$}function HP($,Z){if(Z4.call(V9,Z)&&V9[Z])return!0;if(PC.test(Z)){if($="aria-"+Z.slice(4).toLowerCase(),$=iW.hasOwnProperty($)?$:null,$==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",Z),V9[Z]=!0;if(Z!==$)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",Z,$),V9[Z]=!0}if(LC.test(Z)){if($=Z.toLowerCase(),$=iW.hasOwnProperty($)?$:null,$==null)return V9[Z]=!0,!1;Z!==$&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",Z,$),V9[Z]=!0)}return!0}function FP($,Z){var Q=[],Y;for(Y in Z)HP($,Y)||Q.push(Y);Z=Q.map(function(U){return"`"+U+"`"}).join(", "),Q.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",Z,$):1<Q.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",Z,$)}function WP($,Z,Q,Y){if(Z4.call(h5,Z)&&h5[Z])return!0;var U=Z.toLowerCase();if(U==="onfocusin"||U==="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."),h5[Z]=!0;if(typeof Q==="function"&&($==="form"&&Z==="action"||$==="input"&&Z==="formAction"||$==="button"&&Z==="formAction"))return!0;if(Y!=null){if($=Y.possibleRegistrationNames,Y.registrationNameDependencies.hasOwnProperty(Z))return!0;if(Y=$.hasOwnProperty(U)?$[U]:null,Y!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",Z,Y),h5[Z]=!0;if(eW.test(Z))return console.error("Unknown event handler property `%s`. It will be ignored.",Z),h5[Z]=!0}else if(eW.test(Z))return TC.test(Z)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",Z),h5[Z]=!0;if(CC.test(Z)||OC.test(Z))return!0;if(U==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),h5[Z]=!0;if(U==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),h5[Z]=!0;if(U==="is"&&Q!==null&&Q!==void 0&&typeof Q!=="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof Q),h5[Z]=!0;if(typeof Q==="number"&&isNaN(Q))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",Z),h5[Z]=!0;if(MG.hasOwnProperty(U)){if(U=MG[U],U!==Z)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",Z,U),h5[Z]=!0}else if(Z!==U)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.",Z,U),h5[Z]=!0;switch(Z){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 Q){case"boolean":switch(Z){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(U=Z.toLowerCase().slice(0,5),U==="data-"||U==="aria-")return!0;return Q?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()}.',Q,Z,Z,Q,Z):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.',Q,Z,Z,Q,Z,Z,Z),h5[Z]=!0}case"function":case"symbol":return h5[Z]=!0,!1;case"string":if(Q==="false"||Q==="true"){switch(Z){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}?",Q,Z,Q==="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".',Z,Q),h5[Z]=!0}}return!0}function zP($,Z,Q){var Y=[],U;for(U in Z)WP($,U,Z[U],Q)||Y.push(U);Z=Y.map(function(B){return"`"+B+"`"}).join(", "),Y.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 ",Z,$):1<Y.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 ",Z,$)}function E$($){return IC.test(""+$)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":$}function o4(){}function Oq($){return $=$.target||$.srcElement||window,$.correspondingUseElement&&($=$.correspondingUseElement),$.nodeType===3?$.parentNode:$}function lK($){var Z=j0($);if(Z&&($=Z.stateNode)){var Q=$[g5]||null;$:switch($=Z.stateNode,Z.type){case"input":if(wq($,Q.value,Q.defaultValue,Q.defaultValue,Q.checked,Q.defaultChecked,Q.type,Q.name),Z=Q.name,Q.type==="radio"&&Z!=null){for(Q=$;Q.parentNode;)Q=Q.parentNode;W1(Z,"name"),Q=Q.querySelectorAll('input[name="'+S6(""+Z)+'"][type="radio"]');for(Z=0;Z<Q.length;Z++){var Y=Q[Z];if(Y!==$&&Y.form===$.form){var U=Y[g5]||null;if(!U)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");wq(Y,U.value,U.defaultValue,U.defaultValue,U.checked,U.defaultChecked,U.type,U.name)}}for(Z=0;Z<Q.length;Z++)Y=Q[Z],Y.form===$.form&&VK(Y)}break $;case"textarea":vK($,Q.value,Q.defaultValue);break $;case"select":Z=Q.value,Z!=null&&J9($,!!Q.multiple,Z,!1)}}}function rK($,Z,Q){if(uX)return $(Z,Q);uX=!0;try{var Y=$(Z);return Y}finally{if(uX=!1,A9!==null||E9!==null){if(W9(),A9&&(Z=A9,$=E9,E9=A9=null,lK(Z),$))for(Z=0;Z<$.length;Z++)lK($[Z])}}}function S$($,Z){var Q=$.stateNode;if(Q===null)return null;var Y=Q[g5]||null;if(Y===null)return null;Q=Y[Z];$:switch(Z){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(Y=!Y.disabled)||($=$.type,Y=!($==="button"||$==="input"||$==="select"||$==="textarea")),$=!Y;break $;default:$=!1}if($)return null;if(Q&&typeof Q!=="function")throw Error("Expected `"+Z+"` listener to be a function, instead got a value of `"+typeof Q+"` type.");return Q}function sK(){if(wG)return wG;var $,Z=mX,Q=Z.length,Y,U="value"in t8?t8.value:t8.textContent,B=U.length;for($=0;$<Q&&Z[$]===U[$];$++);var z=Q-$;for(Y=1;Y<=z&&Z[Q-Y]===U[B-Y];Y++);return wG=U.slice($,1<Y?1-Y:void 0)}function GQ($){var Z=$.keyCode;return"charCode"in $?($=$.charCode,$===0&&Z===13&&($=13)):$=Z,$===10&&($=13),32<=$||$===13?$:0}function qQ(){return!0}function nK(){return!1}function c5($){function Z(Q,Y,U,B,z){this._reactName=Q,this._targetInst=U,this.type=Y,this.nativeEvent=B,this.target=z,this.currentTarget=null;for(var w in $)$.hasOwnProperty(w)&&(Q=$[w],this[w]=Q?Q(B):B[w]);return this.isDefaultPrevented=(B.defaultPrevented!=null?B.defaultPrevented:B.returnValue===!1)?qQ:nK,this.isPropagationStopped=nK,this}return l0(Z.prototype,{preventDefault:function(){this.defaultPrevented=!0;var Q=this.nativeEvent;Q&&(Q.preventDefault?Q.preventDefault():typeof Q.returnValue!=="unknown"&&(Q.returnValue=!1),this.isDefaultPrevented=qQ)},stopPropagation:function(){var Q=this.nativeEvent;Q&&(Q.stopPropagation?Q.stopPropagation():typeof Q.cancelBubble!=="unknown"&&(Q.cancelBubble=!0),this.isPropagationStopped=qQ)},persist:function(){},isPersistent:qQ}),Z}function MP($){var Z=this.nativeEvent;return Z.getModifierState?Z.getModifierState($):($=hC[$])?!!Z[$]:!1}function Iq(){return MP}function oK($,Z){switch($){case"keyup":return aC.indexOf(Z.keyCode)!==-1;case"keydown":return Z.keyCode!==Qz;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function aK($){return $=$.detail,typeof $==="object"&&"data"in $?$.data:null}function wP($,Z){switch($){case"compositionend":return aK(Z);case"keypress":if(Z.which!==qz)return null;return Xz=!0,Yz;case"textInput":return $=Z.data,$===Yz&&Xz?null:$;default:return null}}function RP($,Z){if(S9)return $==="compositionend"||!lX&&oK($,Z)?($=sK(),wG=mX=t8=null,S9=!1,$):null;switch($){case"paste":return null;case"keypress":if(!(Z.ctrlKey||Z.altKey||Z.metaKey)||Z.ctrlKey&&Z.altKey){if(Z.char&&1<Z.char.length)return Z.char;if(Z.which)return String.fromCharCode(Z.which)}return null;case"compositionend":return Gz&&Z.locale!=="ko"?null:Z.data;default:return null}}function iK($){var Z=$&&$.nodeName&&$.nodeName.toLowerCase();return Z==="input"?!!tC[$.type]:Z==="textarea"?!0:!1}function _P($){if(!b4)return!1;$="on"+$;var Z=$ in document;return Z||(Z=document.createElement("div"),Z.setAttribute($,"return;"),Z=typeof Z[$]==="function"),Z}function tK($,Z,Q,Y){A9?E9?E9.push(Y):E9=[Y]:A9=Y,Z=iQ(Z,"onChange"),0<Z.length&&(Q=new RG("onChange","change",null,Q,Y),$.push({event:Q,listeners:Z}))}function LP($){bF($,0)}function YQ($){var Z=k0($);if(VK(Z))return $}function eK($,Z){if($==="change")return Z}function $B(){WZ&&(WZ.detachEvent("onpropertychange",ZB),zZ=WZ=null)}function ZB($){if($.propertyName==="value"&&YQ(zZ)){var Z=[];tK(Z,zZ,$,Oq($)),rK(LP,Z)}}function PP($,Z,Q){$==="focusin"?($B(),WZ=Z,zZ=Q,WZ.attachEvent("onpropertychange",ZB)):$==="focusout"&&$B()}function TP($){if($==="selectionchange"||$==="keyup"||$==="keydown")return YQ(zZ)}function CP($,Z){if($==="click")return YQ(Z)}function OP($,Z){if($==="input"||$==="change")return YQ(Z)}function IP($,Z){return $===Z&&($!==0||1/$===1/Z)||$!==$&&Z!==Z}function D$($,Z){if(u5($,Z))return!0;if(typeof $!=="object"||$===null||typeof Z!=="object"||Z===null)return!1;var Q=Object.keys($),Y=Object.keys(Z);if(Q.length!==Y.length)return!1;for(Y=0;Y<Q.length;Y++){var U=Q[Y];if(!Z4.call(Z,U)||!u5($[U],Z[U]))return!1}return!0}function JB($){for(;$&&$.firstChild;)$=$.firstChild;return $}function QB($,Z){var Q=JB($);$=0;for(var Y;Q;){if(Q.nodeType===3){if(Y=$+Q.textContent.length,$<=Z&&Y>=Z)return{node:Q,offset:Z-$};$=Y}$:{for(;Q;){if(Q.nextSibling){Q=Q.nextSibling;break $}Q=Q.parentNode}Q=void 0}Q=JB(Q)}}function GB($,Z){return $&&Z?$===Z?!0:$&&$.nodeType===3?!1:Z&&Z.nodeType===3?GB($,Z.parentNode):("contains"in $)?$.contains(Z):$.compareDocumentPosition?!!($.compareDocumentPosition(Z)&16):!1:!1}function qB($){$=$!=null&&$.ownerDocument!=null&&$.ownerDocument.defaultView!=null?$.ownerDocument.defaultView:window;for(var Z=ZQ($.document);Z instanceof $.HTMLIFrameElement;){try{var Q=typeof Z.contentWindow.location.href==="string"}catch(Y){Q=!1}if(Q)$=Z.contentWindow;else break;Z=ZQ($.document)}return Z}function Vq($){var Z=$&&$.nodeName&&$.nodeName.toLowerCase();return Z&&(Z==="input"&&($.type==="text"||$.type==="search"||$.type==="tel"||$.type==="url"||$.type==="password")||Z==="textarea"||$.contentEditable==="true")}function YB($,Z,Q){var Y=Q.window===Q?Q.document:Q.nodeType===9?Q:Q.ownerDocument;sX||D9==null||D9!==ZQ(Y)||(Y=D9,("selectionStart"in Y)&&Vq(Y)?Y={start:Y.selectionStart,end:Y.selectionEnd}:(Y=(Y.ownerDocument&&Y.ownerDocument.defaultView||window).getSelection(),Y={anchorNode:Y.anchorNode,anchorOffset:Y.anchorOffset,focusNode:Y.focusNode,focusOffset:Y.focusOffset}),MZ&&D$(MZ,Y)||(MZ=Y,Y=iQ(rX,"onSelect"),0<Y.length&&(Z=new RG("onSelect","select",null,Z,Q),$.push({event:Z,listeners:Y}),Z.target=D9)))}function o2($,Z){var Q={};return Q[$.toLowerCase()]=Z.toLowerCase(),Q["Webkit"+$]="webkit"+Z,Q["Moz"+$]="moz"+Z,Q}function a2($){if(nX[$])return nX[$];if(!j9[$])return $;var Z=j9[$],Q;for(Q in Z)if(Z.hasOwnProperty(Q)&&Q in Uz)return nX[$]=Z[Q];return $}function t6($,Z){Wz.set($,Z),A5(Z,[$])}function VP($){for(var Z=LG,Q=0;Q<$.length;Q++){var Y=$[Q];if(typeof Y==="object"&&Y!==null)if(G5(Y)&&Y.length===2&&typeof Y[0]==="string"){if(Z!==LG&&Z!==eX)return iX;Z=eX}else return iX;else{if(typeof Y==="function"||typeof Y==="string"&&50<Y.length||Z!==LG&&Z!==tX)return iX;Z=tX}}return Z}function Aq($,Z,Q,Y){for(var U in $)Z4.call($,U)&&U[0]!=="_"&&H4(U,$[U],Z,Q,Y)}function H4($,Z,Q,Y,U){switch(typeof Z){case"object":if(Z===null){Z="null";break}else{if(Z.$$typeof===E4){var B=i(Z.type)||"…",z=Z.key;Z=Z.props;var w=Object.keys(Z),L=w.length;if(z==null&&L===0){Z="<"+B+" />";break}if(3>Y||L===1&&w[0]==="children"&&z==null){Z="<"+B+" … />";break}Q.push([U+" ".repeat(Y)+$,"<"+B]),z!==null&&H4("key",z,Q,Y+1,U),$=!1;for(var T in Z)T==="children"?Z.children!=null&&(!G5(Z.children)||0<Z.children.length)&&($=!0):Z4.call(Z,T)&&T[0]!=="_"&&H4(T,Z[T],Q,Y+1,U);Q.push(["",$?">…</"+B+">":"/>"]);return}if(B=Object.prototype.toString.call(Z),B=B.slice(8,B.length-1),B==="Array"){if(T=VP(Z),T===tX||T===LG){Z=JSON.stringify(Z);break}else if(T===eX){Q.push([U+" ".repeat(Y)+$,""]);for($=0;$<Z.length;$++)B=Z[$],H4(B[0],B[1],Q,Y+1,U);return}}if(B==="Promise"){if(Z.status==="fulfilled"){if(B=Q.length,H4($,Z.value,Q,Y,U),Q.length>B){Q=Q[B],Q[1]="Promise<"+(Q[1]||"Object")+">";return}}else if(Z.status==="rejected"&&(B=Q.length,H4($,Z.reason,Q,Y,U),Q.length>B)){Q=Q[B],Q[1]="Rejected Promise<"+Q[1]+">";return}Q.push([" ".repeat(Y)+$,"Promise"]);return}B==="Object"&&(T=Object.getPrototypeOf(Z))&&typeof T.constructor==="function"&&(B=T.constructor.name),Q.push([U+" ".repeat(Y)+$,B==="Object"?3>Y?"":"…":B]),3>Y&&Aq(Z,Q,Y+1,U);return}case"function":Z=Z.name===""?"() => {}":Z.name+"() {}";break;case"string":Z=Z===qO?"…":JSON.stringify(Z);break;case"undefined":Z="undefined";break;case"boolean":Z=Z?"true":"false";break;default:Z=String(Z)}Q.push([U+" ".repeat(Y)+$,Z])}function XB($,Z,Q,Y){var U=!0;for(z in $)z in Z||(Q.push([PG+" ".repeat(Y)+z,"…"]),U=!1);for(var B in Z)if(B in $){var z=$[B],w=Z[B];if(z!==w){if(Y===0&&B==="children")U=" ".repeat(Y)+B,Q.push([PG+U,"…"],[TG+U,"…"]);else{if(!(3<=Y)){if(typeof z==="object"&&typeof w==="object"&&z!==null&&w!==null&&z.$$typeof===w.$$typeof)if(w.$$typeof===E4){if(z.type===w.type&&z.key===w.key){z=i(w.type)||"…",U=" ".repeat(Y)+B,z="<"+z+" … />",Q.push([PG+U,z],[TG+U,z]),U=!1;continue}}else{var L=Object.prototype.toString.call(z),T=Object.prototype.toString.call(w);if(L===T&&(T==="[object Object]"||T==="[object Array]")){L=[wz+" ".repeat(Y)+B,T==="[object Array]"?"Array":""],Q.push(L),T=Q.length,XB(z,w,Q,Y+1)?T===Q.length&&(L[1]="Referentially unequal but deeply equal objects. Consider memoization."):U=!1;continue}}else if(typeof z==="function"&&typeof w==="function"&&z.name===w.name&&z.length===w.length&&(L=Function.prototype.toString.call(z),T=Function.prototype.toString.call(w),L===T)){z=w.name===""?"() => {}":w.name+"() {}",Q.push([wz+" ".repeat(Y)+B,z+" Referentially unequal function closure. Consider memoization."]);continue}}H4(B,z,Q,Y,PG),H4(B,w,Q,Y,TG)}U=!1}}else Q.push([TG+" ".repeat(Y)+B,"…"]),U=!1;return U}function B6($){o0=$&63?"Blocking":$&64?"Gesture":$&4194176?"Transition":$&62914560?"Suspense":$&2080374784?"Idle":"Other"}function F4($,Z,Q,Y){I1&&($2.start=Z,$2.end=Q,G8.color="warning",G8.tooltipText=Y,G8.properties=null,($=$._debugTask)?$.run(performance.measure.bind(performance,Y,$2)):performance.measure(Y,$2))}function XQ($,Z,Q){F4($,Z,Q,"Reconnect")}function NQ($,Z,Q,Y,U){var B=d($);if(B!==null&&I1){var{alternate:z,actualDuration:w}=$;if(z===null||z.child!==$.child)for(var L=$.child;L!==null;L=L.sibling)w-=L.actualDuration;Y=0.5>w?Y?"tertiary-light":"primary-light":10>w?Y?"tertiary":"primary":100>w?Y?"tertiary-dark":"primary-dark":"error";var T=$.memoizedProps;w=$._debugTask,T!==null&&z!==null&&z.memoizedProps!==T?(L=[YO],T=XB(z.memoizedProps,T,L,0),1<L.length&&(T&&!e8&&(z.lanes&U)===0&&100<$.actualDuration?(e8=!0,L[0]=XO,G8.color="warning",G8.tooltipText=Rz):(G8.color=Y,G8.tooltipText=B),G8.properties=L,$2.start=Z,$2.end=Q,w!=null?w.run(performance.measure.bind(performance,""+B,$2)):performance.measure(""+B,$2))):w!=null?w.run(console.timeStamp.bind(console,B,Z,Q,j6,void 0,Y)):console.timeStamp(B,Z,Q,j6,void 0,Y)}}function Eq($,Z,Q,Y){if(I1){var U=d($);if(U!==null){for(var B=null,z=[],w=0;w<Y.length;w++){var L=Y[w];B==null&&L.source!==null&&(B=L.source._debugTask),L=L.value,z.push(["Error",typeof L==="object"&&L!==null&&typeof L.message==="string"?String(L.message):String(L)])}$.key!==null&&H4("key",$.key,z,0,""),$.memoizedProps!==null&&Aq($.memoizedProps,z,0,""),B==null&&(B=$._debugTask),$={start:Z,end:Q,detail:{devtools:{color:"error",track:j6,tooltipText:$.tag===13?"Hydration failed":"Error boundary caught an error",properties:z}}},B?B.run(performance.measure.bind(performance,""+U,$)):performance.measure(""+U,$)}}}function W4($,Z,Q,Y,U){if(U!==null){if(I1){var B=d($);if(B!==null){Y=[];for(var z=0;z<U.length;z++){var w=U[z].value;Y.push(["Error",typeof w==="object"&&w!==null&&typeof w.message==="string"?String(w.message):String(w)])}$.key!==null&&H4("key",$.key,Y,0,""),$.memoizedProps!==null&&Aq($.memoizedProps,Y,0,""),Z={start:Z,end:Q,detail:{devtools:{color:"error",track:j6,tooltipText:"A lifecycle or effect errored",properties:Y}}},($=$._debugTask)?$.run(performance.measure.bind(performance,""+B,Z)):performance.measure(""+B,Z)}}}else B=d($),B!==null&&I1&&(U=1>Y?"secondary-light":100>Y?"secondary":500>Y?"secondary-dark":"error",($=$._debugTask)?$.run(console.timeStamp.bind(console,B,Z,Q,j6,void 0,U)):console.timeStamp(B,Z,Q,j6,void 0,U))}function AP($,Z,Q,Y){if(I1&&!(Z<=$)){var U=(Q&738197653)===Q?"tertiary-dark":"primary-dark";Q=(Q&536870912)===Q?"Prepared":(Q&201326741)===Q?"Hydrated":"Render",Y?Y.run(console.timeStamp.bind(console,Q,$,Z,o0,r0,U)):console.timeStamp(Q,$,Z,o0,r0,U)}}function NB($,Z,Q,Y){!I1||Z<=$||(Q=(Q&738197653)===Q?"tertiary-dark":"primary-dark",Y?Y.run(console.timeStamp.bind(console,"Prewarm",$,Z,o0,r0,Q)):console.timeStamp("Prewarm",$,Z,o0,r0,Q))}function UB($,Z,Q,Y){!I1||Z<=$||(Q=(Q&738197653)===Q?"tertiary-dark":"primary-dark",Y?Y.run(console.timeStamp.bind(console,"Suspended",$,Z,o0,r0,Q)):console.timeStamp("Suspended",$,Z,o0,r0,Q))}function EP($,Z,Q,Y,U,B){if(I1&&!(Z<=$)){Q=[];for(var z=0;z<Y.length;z++){var w=Y[z].value;Q.push(["Recoverable Error",typeof w==="object"&&w!==null&&typeof w.message==="string"?String(w.message):String(w)])}$={start:$,end:Z,detail:{devtools:{color:"primary-dark",track:o0,trackGroup:r0,tooltipText:U?"Hydration Failed":"Recovered after Error",properties:Q}}},B?B.run(performance.measure.bind(performance,"Recovered",$)):performance.measure("Recovered",$)}}function Sq($,Z,Q,Y){!I1||Z<=$||(Y?Y.run(console.timeStamp.bind(console,"Errored",$,Z,o0,r0,"error")):console.timeStamp("Errored",$,Z,o0,r0,"error"))}function SP($,Z,Q,Y){!I1||Z<=$||(Y?Y.run(console.timeStamp.bind(console,Q,$,Z,o0,r0,"secondary-light")):console.timeStamp(Q,$,Z,o0,r0,"secondary-light"))}function KB($,Z,Q,Y,U){if(I1&&!(Z<=$)){for(var B=[],z=0;z<Q.length;z++){var w=Q[z].value;B.push(["Error",typeof w==="object"&&w!==null&&typeof w.message==="string"?String(w.message):String(w)])}$={start:$,end:Z,detail:{devtools:{color:"error",track:o0,trackGroup:r0,tooltipText:Y?"Remaining Effects Errored":"Commit Errored",properties:B}}},U?U.run(performance.measure.bind(performance,"Errored",$)):performance.measure("Errored",$)}}function j$($,Z,Q){!I1||Z<=$||(Q?Q.run(console.timeStamp.bind(console,"Animating",$,Z,o0,r0,"secondary-dark")):console.timeStamp("Animating",$,Z,o0,r0,"secondary-dark"))}function UQ(){for(var $=k9,Z=$N=k9=0;Z<$;){var Q=k6[Z];k6[Z++]=null;var Y=k6[Z];k6[Z++]=null;var U=k6[Z];k6[Z++]=null;var B=k6[Z];if(k6[Z++]=null,Y!==null&&U!==null){var z=Y.pending;z===null?U.next=U:(U.next=z.next,z.next=U),Y.pending=U}B!==0&&BB(Q,U,B)}}function KQ($,Z,Q,Y){k6[k9++]=$,k6[k9++]=Z,k6[k9++]=Q,k6[k9++]=Y,$N|=Y,$.lanes|=Y,$=$.alternate,$!==null&&($.lanes|=Y)}function Dq($,Z,Q,Y){return KQ($,Z,Q,Y),BQ($)}function E5($,Z){return KQ($,null,null,Z),BQ($)}function BB($,Z,Q){$.lanes|=Q;var Y=$.alternate;Y!==null&&(Y.lanes|=Q);for(var U=!1,B=$.return;B!==null;)B.childLanes|=Q,Y=B.alternate,Y!==null&&(Y.childLanes|=Q),B.tag===22&&($=B.stateNode,$===null||$._visibility&wZ||(U=!0)),$=B,B=B.return;return $.tag===3?(B=$.stateNode,U&&Z!==null&&(U=31-y5(Q),$=B.hiddenUpdates,Y=$[U],Y===null?$[U]=[Z]:Y.push(Z),Z.lane=Q|536870912),B):null}function BQ($){if(cZ>TO)throw I7=cZ=0,lZ=vN=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.");I7>CO&&(I7=0,lZ=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.")),$.alternate===null&&($.flags&4098)!==0&&AF($);for(var Z=$,Q=Z.return;Q!==null;)Z.alternate===null&&(Z.flags&4098)!==0&&AF($),Z=Q,Q=Z.return;return Z.tag===3?Z.stateNode:null}function i2($){if(v6===null)return $;var Z=v6($);return Z===void 0?$:Z.current}function jq($){if(v6===null)return $;var Z=v6($);return Z===void 0?$!==null&&$!==void 0&&typeof $.render==="function"&&(Z=i2($.render),$.render!==Z)?(Z={$$typeof:qZ,render:Z},$.displayName!==void 0&&(Z.displayName=$.displayName),Z):$:Z.current}function HB($,Z){if(v6===null)return!1;var Q=$.elementType;Z=Z.type;var Y=!1,U=typeof Z==="object"&&Z!==null?Z.$$typeof:null;switch($.tag){case 1:typeof Z==="function"&&(Y=!0);break;case 0:typeof Z==="function"?Y=!0:U===R6&&(Y=!0);break;case 11:U===qZ?Y=!0:U===R6&&(Y=!0);break;case 14:case 15:U===NG?Y=!0:U===R6&&(Y=!0);break;default:return!1}return Y&&($=v6(Q),$!==void 0&&$===v6(Z))?!0:!1}function FB($){v6!==null&&typeof WeakSet==="function"&&(v9===null&&(v9=new WeakSet),v9.add($))}function WB($,Z,Q){do{var Y=$,U=Y.alternate,B=Y.child,z=Y.sibling,w=Y.tag;Y=Y.type;var L=null;switch(w){case 0:case 15:case 1:L=Y;break;case 11:L=Y.render}if(v6===null)throw Error("Expected resolveFamily to be set during hot reload.");var T=!1;if(Y=!1,L!==null&&(L=v6(L),L!==void 0&&(Q.has(L)?Y=!0:Z.has(L)&&(w===1?Y=!0:T=!0))),v9!==null&&(v9.has($)||U!==null&&v9.has(U))&&(Y=!0),Y&&($._debugNeedsRemount=!0),Y||T)U=E5($,2),U!==null&&y1(U,$,2);if(B===null||Y||WB(B,Z,Q),z===null)break;$=z}while(1)}function DP($,Z,Q,Y){this.tag=$,this.key=Q,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=Z,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=Y,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,_z||typeof Object.preventExtensions!=="function"||Object.preventExtensions(this)}function kq($){return $=$.prototype,!(!$||!$.isReactComponent)}function a4($,Z){var Q=$.alternate;switch(Q===null?(Q=P($.tag,Z,$.key,$.mode),Q.elementType=$.elementType,Q.type=$.type,Q.stateNode=$.stateNode,Q._debugOwner=$._debugOwner,Q._debugStack=$._debugStack,Q._debugTask=$._debugTask,Q._debugHookTypes=$._debugHookTypes,Q.alternate=$,$.alternate=Q):(Q.pendingProps=Z,Q.type=$.type,Q.flags=0,Q.subtreeFlags=0,Q.deletions=null,Q.actualDuration=-0,Q.actualStartTime=-1.1),Q.flags=$.flags&65011712,Q.childLanes=$.childLanes,Q.lanes=$.lanes,Q.child=$.child,Q.memoizedProps=$.memoizedProps,Q.memoizedState=$.memoizedState,Q.updateQueue=$.updateQueue,Z=$.dependencies,Q.dependencies=Z===null?null:{lanes:Z.lanes,firstContext:Z.firstContext,_debugThenableState:Z._debugThenableState},Q.sibling=$.sibling,Q.index=$.index,Q.ref=$.ref,Q.refCleanup=$.refCleanup,Q.selfBaseDuration=$.selfBaseDuration,Q.treeBaseDuration=$.treeBaseDuration,Q._debugInfo=$._debugInfo,Q._debugNeedsRemount=$._debugNeedsRemount,Q.tag){case 0:case 15:Q.type=i2($.type);break;case 1:Q.type=i2($.type);break;case 11:Q.type=jq($.type)}return Q}function zB($,Z){$.flags&=65011714;var Q=$.alternate;return Q===null?($.childLanes=0,$.lanes=Z,$.child=null,$.subtreeFlags=0,$.memoizedProps=null,$.memoizedState=null,$.updateQueue=null,$.dependencies=null,$.stateNode=null,$.selfBaseDuration=0,$.treeBaseDuration=0):($.childLanes=Q.childLanes,$.lanes=Q.lanes,$.child=Q.child,$.subtreeFlags=0,$.deletions=null,$.memoizedProps=Q.memoizedProps,$.memoizedState=Q.memoizedState,$.updateQueue=Q.updateQueue,$.type=Q.type,Z=Q.dependencies,$.dependencies=Z===null?null:{lanes:Z.lanes,firstContext:Z.firstContext,_debugThenableState:Z._debugThenableState},$.selfBaseDuration=Q.selfBaseDuration,$.treeBaseDuration=Q.treeBaseDuration),$}function vq($,Z,Q,Y,U,B){var z=0,w=$;if(typeof $==="function")kq($)&&(z=1),w=i2(w);else if(typeof $==="string")z=F0(),z=uT($,Q,z)?26:$==="html"||$==="head"||$==="body"?27:5;else $:switch($){case IX:return Z=P(31,Q,Z,U),Z.elementType=IX,Z.lanes=B,Z;case P9:return t2(Q.children,U,B,Z);case XG:z=8,U|=D5,U|=Q4;break;case PX:return $=Q,Y=U,typeof $.id!=="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof $.id),Z=P(12,$,Z,Y|g0),Z.elementType=PX,Z.lanes=B,Z.stateNode={effectDuration:0,passiveEffectDuration:0},Z;case CX:return Z=P(13,Q,Z,U),Z.elementType=CX,Z.lanes=B,Z;case OX:return Z=P(19,Q,Z,U),Z.elementType=OX,Z.lanes=B,Z;default:if(typeof $==="object"&&$!==null)switch($.$$typeof){case S4:z=10;break $;case TX:z=9;break $;case qZ:z=11,w=jq(w);break $;case NG:z=14;break $;case R6:z=16,w=null;break $}if(w="",$===void 0||typeof $==="object"&&$!==null&&Object.keys($).length===0)w+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";$===null?Q="null":G5($)?Q="array":$!==void 0&&$.$$typeof===E4?(Q="<"+(i($.type)||"Unknown")+" />",w=" Did you accidentally export a JSX literal instead of a component?"):Q=typeof $,(z=Y?X0(Y):null)&&(w+=`
|
|
72
|
+
|
|
73
|
+
Check the render method of \``+z+"`."),z=29,Q=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(Q+"."+w)),w=null}return Z=P(z,Q,Z,U),Z.elementType=$,Z.type=w,Z.lanes=B,Z._debugOwner=Y,Z}function HQ($,Z,Q){return Z=vq($.type,$.key,$.props,$._owner,Z,Q),Z._debugOwner=$._owner,Z._debugStack=$._debugStack,Z._debugTask=$._debugTask,Z}function t2($,Z,Q,Y){return $=P(7,$,Y,Z),$.lanes=Q,$}function bq($,Z,Q){return $=P(6,$,null,Z),$.lanes=Q,$}function MB($){var Z=P(18,null,null,V0);return Z.stateNode=$,Z}function fq($,Z,Q){return Z=P(4,$.children!==null?$.children:[],$.key,Z),Z.lanes=Q,Z.stateNode={containerInfo:$.containerInfo,pendingChildren:null,implementation:$.implementation},Z}function H6($,Z){if(typeof $==="object"&&$!==null){var Q=ZN.get($);if(Q!==void 0)return Q;return Z={value:$,source:Z,stack:o1(Z)},ZN.set($,Z),Z}return{value:$,source:Z,stack:o1(Z)}}function i4($,Z){y8(),b9[f9++]=RZ,b9[f9++]=CG,CG=$,RZ=Z}function wB($,Z,Q){y8(),b6[f6++]=Y8,b6[f6++]=X8,b6[f6++]=B7,B7=$;var Y=Y8;$=X8;var U=32-y5(Y)-1;Y&=~(1<<U),Q+=1;var B=32-y5(Z)+U;if(30<B){var z=U-U%5;B=(Y&(1<<z)-1).toString(32),Y>>=z,U-=z,Y8=1<<32-y5(Z)+U|Q<<U|Y,X8=B+$}else Y8=1<<B|Q<<U|Y,X8=$}function yq($){y8(),$.return!==null&&(i4($,1),wB($,1,0))}function gq($){for(;$===CG;)CG=b9[--f9],b9[f9]=null,RZ=b9[--f9],b9[f9]=null;for(;$===B7;)B7=b6[--f6],b6[f6]=null,X8=b6[--f6],b6[f6]=null,Y8=b6[--f6],b6[f6]=null}function RB(){return y8(),B7!==null?{id:Y8,overflow:X8}:null}function _B($,Z){y8(),b6[f6++]=Y8,b6[f6++]=X8,b6[f6++]=B7,Y8=Z.id,X8=Z.overflow,B7=$}function y8(){i0||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function e2($,Z){if($.return===null){if(P6===null)P6={fiber:$,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:Z};else{if(P6.fiber!==$)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");P6.distanceFromLeaf>Z&&(P6.distanceFromLeaf=Z)}return P6}var Q=e2($.return,Z+1).children;if(0<Q.length&&Q[Q.length-1].fiber===$)return Q=Q[Q.length-1],Q.distanceFromLeaf>Z&&(Q.distanceFromLeaf=Z),Q;return Z={fiber:$,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:Z},Q.push(Z),Z}function LB(){i0&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function FQ($,Z){f4||($=e2($,0),$.serverProps=null,Z!==null&&(Z=tF(Z),$.serverTail.push(Z)))}function g8($){var Z=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,Q="",Y=P6;throw Y!==null&&(P6=null,Q=Tq(Y)),k$(H6(Error("Hydration failed because the server rendered "+(Z?"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 \``+W+"`."),W=29,G=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`+
|
|
83
|
+
https://react.dev/link/hydration-mismatch`+Q),$)),JN}function PB($){var{stateNode:Z,type:Q,memoizedProps:Y}=$;switch(Z[_5]=$,Z[g5]=Y,QX(Q,Y),Q){case"dialog":t0("cancel",Z),t0("close",Z);break;case"iframe":case"object":case"embed":t0("load",Z);break;case"video":case"audio":for(Q=0;Q<rZ.length;Q++)t0(rZ[Q],Z);break;case"source":t0("error",Z);break;case"img":case"image":case"link":t0("error",Z),t0("load",Z);break;case"details":t0("toggle",Z);break;case"input":f8("input",Y),t0("invalid",Z),AK(Z,Y),EK(Z,Y.value,Y.defaultValue,Y.checked,Y.defaultChecked,Y.type,Y.name,!0);break;case"option":SK(Z,Y);break;case"select":f8("select",Y),t0("invalid",Z),jK(Z,Y);break;case"textarea":f8("textarea",Y),t0("invalid",Z),kK(Z,Y),bK(Z,Y.value,Y.defaultValue,Y.children)}Q=Y.children,typeof Q!=="string"&&typeof Q!=="number"&&typeof Q!=="bigint"||Z.textContent===""+Q||Y.suppressHydrationWarning===!0||hF(Z.textContent,Q)?(Y.popover!=null&&(t0("beforetoggle",Z),t0("toggle",Z)),Y.onScroll!=null&&t0("scroll",Z),Y.onScrollEnd!=null&&t0("scrollend",Z),Y.onClick!=null&&(Z.onclick=o4),Z=!0):Z=!1,Z||g8($,!0)}function TB($){for(L5=$.return;L5;)switch(L5.tag){case 5:case 31:case 13:y6=!1;return;case 27:case 3:y6=!0;return;default:L5=L5.return}}function q9($){if($!==L5)return!1;if(!i0)return TB($),i0=!0,!1;var Z=$.tag,Q;if(Q=Z!==3&&Z!==27){if(Q=Z===5)Q=$.type,Q=!(Q!=="form"&&Q!=="button")||NX($.type,$.memoizedProps);Q=!Q}if(Q&&V1){for(Q=V1;Q;){var Y=e2($,0),U=tF(Q);Y.serverTail.push(U),Q=U.type==="Suspense"?HX(Q):w6(Q.nextSibling)}g8($)}if(TB($),Z===13){if($=$.memoizedState,$=$!==null?$.dehydrated:null,!$)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");V1=HX($)}else if(Z===31){if($=$.memoizedState,$=$!==null?$.dehydrated:null,!$)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");V1=HX($)}else Z===27?(Z=V1,s8($.type)?($=lN,lN=null,V1=$):V1=Z):V1=L5?w6($.stateNode.nextSibling):null;return!0}function $7(){V1=L5=null,f4=i0=!1}function hq(){var $=J2;return $!==null&&(p5===null?p5=$:p5.push.apply(p5,$),J2=null),$}function k$($){J2===null?J2=[$]:J2.push($)}function uq(){var $=P6;if($!==null){P6=null;for(var Z=Tq($);0<$.children.length;)$=$.children[0];q0($.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`+G),$)),LN}function pB($){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",Z)})}}function
|
|
93
|
+
%s%s`,"https://react.dev/link/hydration-mismatch",Z)})}}function WQ(){y9=OG=null,g9=!1}function h8($,Z,Q){O0(QN,Z._currentValue,$),Z._currentValue=Q,O0(GN,Z._currentRenderer,$),Z._currentRenderer!==void 0&&Z._currentRenderer!==null&&Z._currentRenderer!==Pz&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),Z._currentRenderer=Pz}function t4($,Z){$._currentValue=QN.current;var Q=GN.current;P0(GN,Z),$._currentRenderer=Q,P0(QN,Z)}function xq($,Z,Q){for(;$!==null;){var Y=$.alternate;if(($.childLanes&Z)!==Z?($.childLanes|=Z,Y!==null&&(Y.childLanes|=Z)):Y!==null&&(Y.childLanes&Z)!==Z&&(Y.childLanes|=Z),$===Q)break;$=$.return}$!==Q&&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 mq($,Z,Q,Y){var U=$.child;U!==null&&(U.return=$);for(;U!==null;){var B=U.dependencies;if(B!==null){var z=U.child;B=B.firstContext;$:for(;B!==null;){var w=B;B=U;for(var L=0;L<Z.length;L++)if(w.context===Z[L]){B.lanes|=Q,w=B.alternate,w!==null&&(w.lanes|=Q),xq(B.return,Q,$),Y||(z=null);break $}B=w.next}}else if(U.tag===18){if(z=U.return,z===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");z.lanes|=Q,B=z.alternate,B!==null&&(B.lanes|=Q),xq(z,Q,$),z=null}else z=U.child;if(z!==null)z.return=U;else for(z=U;z!==null;){if(z===$){z=null;break}if(U=z.sibling,U!==null){U.return=z.return,z=U;break}z=z.return}U=z}}function Y9($,Z,Q,Y){$=null;for(var U=Z,B=!1;U!==null;){if(!B){if((U.flags&524288)!==0)B=!0;else if((U.flags&262144)!==0)break}if(U.tag===10){var z=U.alternate;if(z===null)throw Error("Should have a current fiber. This is a bug in React.");if(z=z.memoizedProps,z!==null){var w=U.type;u5(U.pendingProps.value,z.value)||($!==null?$.push(w):$=[w])}}else if(U===UG.current){if(z=U.alternate,z===null)throw Error("Should have a current fiber. This is a bug in React.");z.memoizedState.memoizedState!==U.memoizedState.memoizedState&&($!==null?$.push(iZ):$=[iZ])}U=U.return}$!==null&&mq(Z,$,Q,Y),Z.flags|=262144}function zQ($){for($=$.firstContext;$!==null;){if(!u5($.context._currentValue,$.memoizedValue))return!0;$=$.next}return!1}function Z7($){OG=$,y9=null,$=$.dependencies,$!==null&&($.firstContext=null)}function D1($){return g9&&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()."),CB(OG,$)}function MQ($,Z){return OG===null&&Z7($),CB($,Z)}function CB($,Z){var Q=Z._currentValue;if(Z={context:Z,memoizedValue:Q,next:null},y9===null){if($===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().");y9=Z,$.dependencies={lanes:0,firstContext:Z,_debugThenableState:null},$.flags|=524288}else y9=y9.next=Z;return Q}function dq(){return{controller:new KO,data:new Map,refCount:0}}function J7($){$.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),$.refCount++}function v$($){$.refCount--,0>$.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),$.refCount===0&&BO(HO,function(){$.controller.abort()})}function z4($,Z,Q){if(($&127)!==0)0>y4&&(y4=i1(),LZ=IG(Z),qN=Z,Q!=null&&(YN=d(Q)),(Z1&(Y5|O6))!==W5&&(g1=!0,q2=_Z),$=$Z(),Z=e$(),$!==h9||Z!==PZ?h9=-1.1:Z!==null&&(q2=_Z),F7=$,PZ=Z);else if(($&4194048)!==0&&0>g6&&(g6=i1(),TZ=IG(Z),Tz=Z,Q!=null&&(Cz=d(Q)),0>K8)){if($=$Z(),Z=e$(),$!==X2||Z!==W7)X2=-1.1;Y2=$,W7=Z}}function jP($){if(0>y4){y4=i1(),LZ=$._debugTask!=null?$._debugTask:null,(Z1&(Y5|O6))!==W5&&(q2=_Z);var Z=$Z(),Q=e$();Z!==h9||Q!==PZ?h9=-1.1:Q!==null&&(q2=_Z),F7=Z,PZ=Q}if(0>g6&&(g6=i1(),TZ=$._debugTask!=null?$._debugTask:null,0>K8)){if($=$Z(),Z=e$(),$!==X2||Z!==W7)X2=-1.1;Y2=$,W7=Z}}function e4(){var $=H7;return H7=0,$}function wQ($){var Z=H7;return H7=$,Z}function b$($){var Z=H7;return H7+=$,Z}function RQ(){T0=L0=-1.1}function F6(){var $=L0;return L0=-1.1,$}function W6($){0<=$&&(L0=$)}function M4(){var $=k1;return k1=-0,$}function w4($){0<=$&&(k1=$)}function R4(){var $=j1;return j1=null,$}function _4(){var $=g1;return g1=!1,$}function pq($){x5=i1(),0>$.actualStartTime&&($.actualStartTime=x5)}function cq($){if(0<=x5){var Z=i1()-x5;$.actualDuration+=Z,$.selfBaseDuration=Z,x5=-1}}function OB($){if(0<=x5){var Z=i1()-x5;$.actualDuration+=Z,x5=-1}}function L4(){if(0<=x5){var $=i1(),Z=$-x5;x5=-1,H7+=Z,k1+=Z,T0=$}}function IB($){j1===null&&(j1=[]),j1.push($),U8===null&&(U8=[]),U8.push($)}function P4(){x5=i1(),0>L0&&(L0=x5)}function f$($){for(var Z=$.child;Z;)$.actualDuration+=Z.actualDuration,Z=Z.sibling}function kP($,Z){if(OZ===null){var Q=OZ=[];NN=0,z7=eY(),u9={status:"pending",value:void 0,then:function(Y){Q.push(Y)}}}return NN++,Z.then(VB,VB),Z}function VB(){if(--NN===0&&(-1<g6||(K8=-1.1),OZ!==null)){u9!==null&&(u9.status="fulfilled");var $=OZ;OZ=null,z7=0,u9=null;for(var Z=0;Z<$.length;Z++)(0,$[Z])()}}function vP($,Z){var Q=[],Y={status:"pending",value:null,reason:null,then:function(U){Q.push(U)}};return $.then(function(){Y.status="fulfilled",Y.value=Z;for(var U=0;U<Q.length;U++)(0,Q[U])(Z)},function(U){Y.status="rejected",Y.reason=U;for(U=0;U<Q.length;U++)(0,Q[U])(void 0)}),Y}function lq(){var $=M7.current;return $!==null?$:_1.pooledCache}function _Q($,Z){Z===null?O0(M7,M7.current,$):O0(M7,Z.pool,$)}function AB(){var $=lq();return $===null?null:{parent:a1._currentValue,pool:$}}function EB(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function SB($){return $=$.status,$==="fulfilled"||$==="rejected"}function DB($,Z,Q){x.actQueue!==null&&(x.didUsePromise=!0);var Y=$.thenables;if(Q=Y[Q],Q===void 0?Y.push(Z):Q!==Z&&($.didWarnAboutUncachedPromise||($.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.")),Z.then(o4,o4),Z=Q),Z._debugInfo===void 0){$=performance.now(),Y=Z.displayName;var U={name:typeof Y==="string"?Y:"Promise",start:$,end:$,value:Z};Z._debugInfo=[{awaited:U}],Z.status!=="fulfilled"&&Z.status!=="rejected"&&($=function(){U.end=performance.now()},Z.then($,$))}switch(Z.status){case"fulfilled":return Z.value;case"rejected":throw $=Z.reason,kB($),$;default:if(typeof Z.status==="string")Z.then(o4,o4);else{if($=_1,$!==null&&100<$.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.");$=Z,$.status="pending",$.then(function(B){if(Z.status==="pending"){var z=Z;z.status="fulfilled",z.value=B}},function(B){if(Z.status==="pending"){var z=Z;z.status="rejected",z.reason=B}})}switch(Z.status){case"fulfilled":return Z.value;case"rejected":throw $=Z.reason,kB($),$}throw R7=Z,jZ=!0,x9}}function u8($){try{return MO($)}catch(Z){if(Z!==null&&typeof Z==="object"&&typeof Z.then==="function")throw R7=Z,jZ=!0,x9;throw Z}}function jB(){if(R7===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var $=R7;return R7=null,jZ=!1,$}function kB($){if($===x9||$===vG)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 M5($){var Z=h0;return $!=null&&(h0=Z===null?$:Z.concat($)),Z}function rq(){var $=h0;if($!=null){for(var Z=$.length-1;0<=Z;Z--)if($[Z].name!=null){var Q=$[Z].debugTask;if(Q!=null)return Q}}return null}function LQ($,Z,Q){for(var Y=Object.keys($.props),U=0;U<Y.length;U++){var B=Y[U];if(B!=="children"&&B!=="key"){Z===null&&(Z=HQ($,Q.mode,0),Z._debugInfo=h0,Z.return=Q),q0(Z,function(z){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",z)},B);break}}}function PQ($){var Z=kZ;return kZ+=1,m9===null&&(m9=EB()),DB(m9,$,Z)}function y$($,Z){Z=Z.props.ref,$.ref=Z!==void 0?Z:null}function vB($,Z){if(Z.$$typeof===oT)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 $=Object.prototype.toString.call(Z),Error("Objects are not valid as a React child (found: "+($==="[object Object]"?"object with keys {"+Object.keys(Z).join(", ")+"}":$)+"). 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 $=Object.prototype.toString.call(Z),Error("Objects are not valid as a React child (found: "+($==="[object Object]"?"object with keys {"+Object.keys(Z).join(", ")+"}":$)+"). If you meant to render a collection of children, use an array instead.")}function TQ($,Z){var Q=rq();Q!==null?Q.run(vB.bind(null,$,Z)):vB($,Z)}function bB($,Z){var Q=d($)||"Component";pz[Q]||(pz[Q]=!0,Z=Z.displayName||Z.name||"Component",$.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)`,Z,Z,Z):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>`,Z,Z,
|
|
98
|
+
<%s>{%s}</%s>`,Z,Z,Q,Z,Q))}function CQ($,Z){var Q=rq();Q!==null?Q.run(bB.bind(null,$,Z)):bB($,Z)}function fB($,Z){var Q=d($)||"Component";cz[Q]||(cz[Q]=!0,Z=String(Z),$.tag===3?console.error(`Symbols are not valid as a React child.
|
|
99
99
|
root.render(%s)`,Z):console.error(`Symbols are not valid as a React child.
|
|
100
|
-
<%s>%s</%s>`,G,Z,G))}function hJ($,Z){var G=Kq();G!==null?G.run(JH.bind(null,$,Z)):JH($,Z)}function GH($){function Z(E,j){if($){var b=E.deletions;b===null?(E.deletions=[j],E.flags|=16):b.push(j)}}function G(E,j){if(!$)return null;for(;j!==null;)Z(E,j),j=j.sibling;return null}function Y(E){for(var j=new Map;E!==null;)E.key!==null?j.set(E.key,E):j.set(E.index,E),E=E.sibling;return j}function U(E,j){return E=$8(E,j),E.index=0,E.sibling=null,E}function B(E,j,b){if(E.index=b,!$)return E.flags|=1048576,j;if(b=E.alternate,b!==null)return b=b.index,b<j?(E.flags|=67108866,j):b;return E.flags|=67108866,j}function W(E){return $&&E.alternate===null&&(E.flags|=67108866),E}function z(E,j,b,m){if(j===null||j.tag!==6)return j=tX(b,E.mode,m),j.return=E,j._debugOwner=E,j._debugTask=E._debugTask,j._debugInfo=h0,j;return j=U(j,b),j.return=E,j._debugInfo=h0,j}function L(E,j,b,m){var Q0=b.type;if(Q0===E7)return j=k(E,j,b.props.children,m,b.key),kJ(b,j,E),j;if(j!==null&&(j.elementType===Q0||kB(j,b)||typeof Q0==="object"&&Q0!==null&&Q0.$$typeof===P6&&l8(Q0)===j.type))return j=U(j,b.props),s$(j,b),j.return=E,j._debugOwner=b._owner,j._debugInfo=h0,j;return j=VJ(b,E.mode,m),s$(j,b),j.return=E,j._debugInfo=h0,j}function T(E,j,b,m){if(j===null||j.tag!==4||j.stateNode.containerInfo!==b.containerInfo||j.stateNode.implementation!==b.implementation)return j=eX(b,E.mode,m),j.return=E,j._debugInfo=h0,j;return j=U(j,b.children||[]),j.return=E,j._debugInfo=h0,j}function k(E,j,b,m,Q0){if(j===null||j.tag!==7)return j=J9(b,E.mode,m,Q0),j.return=E,j._debugOwner=E,j._debugTask=E._debugTask,j._debugInfo=h0,j;return j=U(j,b),j.return=E,j._debugInfo=h0,j}function f(E,j,b){if(typeof j==="string"&&j!==""||typeof j==="number"||typeof j==="bigint")return j=tX(""+j,E.mode,b),j.return=E,j._debugOwner=E,j._debugTask=E._debugTask,j._debugInfo=h0,j;if(typeof j==="object"&&j!==null){switch(j.$$typeof){case D4:return b=VJ(j,E.mode,b),s$(b,j),b.return=E,E=z5(j._debugInfo),b._debugInfo=h0,h0=E,b;case A7:return j=eX(j,E.mode,b),j.return=E,j._debugInfo=h0,j;case P6:var m=z5(j._debugInfo);return j=l8(j),E=f(E,j,b),h0=m,E}if(q5(j)||t(j))return b=J9(j,E.mode,b,null),b.return=E,b._debugOwner=E,b._debugTask=E._debugTask,E=z5(j._debugInfo),b._debugInfo=h0,h0=E,b;if(typeof j.then==="function")return m=z5(j._debugInfo),E=f(E,fJ(j),b),h0=m,E;if(j.$$typeof===v4)return f(E,jJ(E,j),b);yJ(E,j)}return typeof j==="function"&&gJ(E,j),typeof j==="symbol"&&hJ(E,j),null}function S(E,j,b,m){var Q0=j!==null?j.key:null;if(typeof b==="string"&&b!==""||typeof b==="number"||typeof b==="bigint")return Q0!==null?null:z(E,j,""+b,m);if(typeof b==="object"&&b!==null){switch(b.$$typeof){case D4:return b.key===Q0?(Q0=z5(b._debugInfo),E=L(E,j,b,m),h0=Q0,E):null;case A7:return b.key===Q0?T(E,j,b,m):null;case P6:return Q0=z5(b._debugInfo),b=l8(b),E=S(E,j,b,m),h0=Q0,E}if(q5(b)||t(b)){if(Q0!==null)return null;return Q0=z5(b._debugInfo),E=k(E,j,b,m,null),h0=Q0,E}if(typeof b.then==="function")return Q0=z5(b._debugInfo),E=S(E,j,fJ(b),m),h0=Q0,E;if(b.$$typeof===v4)return S(E,j,jJ(E,b),m);yJ(E,b)}return typeof b==="function"&&gJ(E,b),typeof b==="symbol"&&hJ(E,b),null}function g(E,j,b,m,Q0){if(typeof m==="string"&&m!==""||typeof m==="number"||typeof m==="bigint")return E=E.get(b)||null,z(j,E,""+m,Q0);if(typeof m==="object"&&m!==null){switch(m.$$typeof){case D4:return b=E.get(m.key===null?b:m.key)||null,E=z5(m._debugInfo),j=L(j,b,m,Q0),h0=E,j;case A7:return E=E.get(m.key===null?b:m.key)||null,T(j,E,m,Q0);case P6:var E0=z5(m._debugInfo);return m=l8(m),j=g(E,j,b,m,Q0),h0=E0,j}if(q5(m)||t(m))return b=E.get(b)||null,E=z5(m._debugInfo),j=k(j,b,m,Q0,null),h0=E,j;if(typeof m.then==="function")return E0=z5(m._debugInfo),j=g(E,j,b,fJ(m),Q0),h0=E0,j;if(m.$$typeof===v4)return g(E,j,b,jJ(j,m),Q0);yJ(j,m)}return typeof m==="function"&&gJ(j,m),typeof m==="symbol"&&hJ(j,m),null}function $0(E,j,b,m){if(typeof b!=="object"||b===null)return m;switch(b.$$typeof){case D4:case A7:R(E,j,b);var Q0=b.key;if(typeof Q0!=="string")break;if(m===null){m=new Set,m.add(Q0);break}if(!m.has(Q0)){m.add(Q0);break}X0(j,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.",Q0)});break;case P6:b=l8(b),$0(E,j,b,m)}return m}function G0(E,j,b,m){for(var Q0=null,E0=null,z0=null,B0=j,f0=j=0,S1=null;B0!==null&&f0<b.length;f0++){B0.index>f0?(S1=B0,B0=null):S1=B0.sibling;var n1=S(E,B0,b[f0],m);if(n1===null){B0===null&&(B0=S1);break}Q0=$0(E,n1,b[f0],Q0),$&&B0&&n1.alternate===null&&Z(E,B0),j=B(n1,j,f0),z0===null?E0=n1:z0.sibling=n1,z0=n1,B0=S1}if(f0===b.length)return G(E,B0),i0&&Z8(E,f0),E0;if(B0===null){for(;f0<b.length;f0++)B0=f(E,b[f0],m),B0!==null&&(Q0=$0(E,B0,b[f0],Q0),j=B(B0,j,f0),z0===null?E0=B0:z0.sibling=B0,z0=B0);return i0&&Z8(E,f0),E0}for(B0=Y(B0);f0<b.length;f0++)S1=g(B0,E,f0,b[f0],m),S1!==null&&(Q0=$0(E,S1,b[f0],Q0),$&&S1.alternate!==null&&B0.delete(S1.key===null?f0:S1.key),j=B(S1,j,f0),z0===null?E0=S1:z0.sibling=S1,z0=S1);return $&&B0.forEach(function(C8){return Z(E,C8)}),i0&&Z8(E,f0),E0}function O1(E,j,b,m){if(b==null)throw Error("An iterable object provided no iterator.");for(var Q0=null,E0=null,z0=j,B0=j=0,f0=null,S1=null,n1=b.next();z0!==null&&!n1.done;B0++,n1=b.next()){z0.index>B0?(f0=z0,z0=null):f0=z0.sibling;var C8=S(E,z0,n1.value,m);if(C8===null){z0===null&&(z0=f0);break}S1=$0(E,C8,n1.value,S1),$&&z0&&C8.alternate===null&&Z(E,z0),j=B(C8,j,B0),E0===null?Q0=C8:E0.sibling=C8,E0=C8,z0=f0}if(n1.done)return G(E,z0),i0&&Z8(E,B0),Q0;if(z0===null){for(;!n1.done;B0++,n1=b.next())z0=f(E,n1.value,m),z0!==null&&(S1=$0(E,z0,n1.value,S1),j=B(z0,j,B0),E0===null?Q0=z0:E0.sibling=z0,E0=z0);return i0&&Z8(E,B0),Q0}for(z0=Y(z0);!n1.done;B0++,n1=b.next())f0=g(z0,E,B0,n1.value,m),f0!==null&&(S1=$0(E,f0,n1.value,S1),$&&f0.alternate!==null&&z0.delete(f0.key===null?B0:f0.key),j=B(f0,j,B0),E0===null?Q0=f0:E0.sibling=f0,E0=f0);return $&&z0.forEach(function(hO){return Z(E,hO)}),i0&&Z8(E,B0),Q0}function e0(E,j,b,m){if(typeof b==="object"&&b!==null&&b.type===E7&&b.key===null&&(kJ(b,null,E),b=b.props.children),typeof b==="object"&&b!==null){switch(b.$$typeof){case D4:var Q0=z5(b._debugInfo);$:{for(var E0=b.key;j!==null;){if(j.key===E0){if(E0=b.type,E0===E7){if(j.tag===7){G(E,j.sibling),m=U(j,b.props.children),m.return=E,m._debugOwner=b._owner,m._debugInfo=h0,kJ(b,m,E),E=m;break $}}else if(j.elementType===E0||kB(j,b)||typeof E0==="object"&&E0!==null&&E0.$$typeof===P6&&l8(E0)===j.type){G(E,j.sibling),m=U(j,b.props),s$(m,b),m.return=E,m._debugOwner=b._owner,m._debugInfo=h0,E=m;break $}G(E,j);break}else Z(E,j);j=j.sibling}b.type===E7?(m=J9(b.props.children,E.mode,m,b.key),m.return=E,m._debugOwner=E,m._debugTask=E._debugTask,m._debugInfo=h0,kJ(b,m,E),E=m):(m=VJ(b,E.mode,m),s$(m,b),m.return=E,m._debugInfo=h0,E=m)}return E=W(E),h0=Q0,E;case A7:$:{Q0=b;for(b=Q0.key;j!==null;){if(j.key===b)if(j.tag===4&&j.stateNode.containerInfo===Q0.containerInfo&&j.stateNode.implementation===Q0.implementation){G(E,j.sibling),m=U(j,Q0.children||[]),m.return=E,E=m;break $}else{G(E,j);break}else Z(E,j);j=j.sibling}m=eX(Q0,E.mode,m),m.return=E,E=m}return W(E);case P6:return Q0=z5(b._debugInfo),b=l8(b),E=e0(E,j,b,m),h0=Q0,E}if(q5(b))return Q0=z5(b._debugInfo),E=G0(E,j,b,m),h0=Q0,E;if(t(b)){if(Q0=z5(b._debugInfo),E0=t(b),typeof E0!=="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var z0=E0.call(b);if(z0===b){if(E.tag!==0||Object.prototype.toString.call(E.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(z0)!=="[object Generator]")Uw||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."),Uw=!0}else b.entries!==E0||jN||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),jN=!0);return E=O1(E,j,z0,m),h0=Q0,E}if(typeof b.then==="function")return Q0=z5(b._debugInfo),E=e0(E,j,fJ(b),m),h0=Q0,E;if(b.$$typeof===v4)return e0(E,j,jJ(E,b),m);yJ(E,b)}if(typeof b==="string"&&b!==""||typeof b==="number"||typeof b==="bigint")return Q0=""+b,j!==null&&j.tag===6?(G(E,j.sibling),m=U(j,Q0),m.return=E,E=m):(G(E,j),m=tX(Q0,E.mode,m),m.return=E,m._debugOwner=E,m._debugTask=E._debugTask,m._debugInfo=h0,E=m),W(E);return typeof b==="function"&&gJ(E,b),typeof b==="symbol"&&hJ(E,b),G(E,j)}return function(E,j,b,m){var Q0=h0;h0=null;try{cZ=0;var E0=e0(E,j,b,m);return s7=null,E0}catch(S1){if(S1===n7||S1===nG)throw S1;var z0=P(29,S1,null,E.mode);z0.lanes=m,z0.return=E;var B0=z0._debugInfo=h0;if(z0._debugOwner=E._debugOwner,z0._debugTask=E._debugTask,B0!=null){for(var f0=B0.length-1;0<=f0;f0--)if(typeof B0[f0].stack==="string"){z0._debugOwner=B0[f0],z0._debugTask=B0[f0].debugTask;break}}return z0}finally{h0=Q0}}}function XH($,Z){var G=q5($);return $=!G&&typeof t($)==="function",G||$?(G=G?"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>",G,Z,G),!1):!0}function Bq($){$.updateQueue={baseState:$.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Hq($,Z){$=$.updateQueue,Z.updateQueue===$&&(Z.updateQueue={baseState:$.baseState,firstBaseUpdate:$.firstBaseUpdate,lastBaseUpdate:$.lastBaseUpdate,shared:$.shared,callbacks:null})}function r8($){return{lane:$,tag:Mw,payload:null,callback:null,next:null}}function n8($,Z,G){var Y=$.updateQueue;if(Y===null)return null;if(Y=Y.shared,vN===Y&&!Rw){var U=d($);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>`,Q,Z,Q))}function OQ($,Z){var Q=rq();Q!==null?Q.run(fB.bind(null,$,Z)):fB($,Z)}function yB($){function Z(A,D){if($){var v=A.deletions;v===null?(A.deletions=[D],A.flags|=16):v.push(D)}}function Q(A,D){if(!$)return null;for(;D!==null;)Z(A,D),D=D.sibling;return null}function Y(A){for(var D=new Map;A!==null;)A.key!==null?D.set(A.key,A):D.set(A.index,A),A=A.sibling;return D}function U(A,D){return A=a4(A,D),A.index=0,A.sibling=null,A}function B(A,D,v){if(A.index=v,!$)return A.flags|=1048576,D;if(v=A.alternate,v!==null)return v=v.index,v<D?(A.flags|=67108866,D):v;return A.flags|=67108866,D}function z(A){return $&&A.alternate===null&&(A.flags|=67108866),A}function w(A,D,v,m){if(D===null||D.tag!==6)return D=bq(v,A.mode,m),D.return=A,D._debugOwner=A,D._debugTask=A._debugTask,D._debugInfo=h0,D;return D=U(D,v),D.return=A,D._debugInfo=h0,D}function L(A,D,v,m){var J0=v.type;if(J0===P9)return D=b(A,D,v.props.children,m,v.key),LQ(v,D,A),D;if(D!==null&&(D.elementType===J0||HB(D,v)||typeof J0==="object"&&J0!==null&&J0.$$typeof===R6&&u8(J0)===D.type))return D=U(D,v.props),y$(D,v),D.return=A,D._debugOwner=v._owner,D._debugInfo=h0,D;return D=HQ(v,A.mode,m),y$(D,v),D.return=A,D._debugInfo=h0,D}function T(A,D,v,m){if(D===null||D.tag!==4||D.stateNode.containerInfo!==v.containerInfo||D.stateNode.implementation!==v.implementation)return D=fq(v,A.mode,m),D.return=A,D._debugInfo=h0,D;return D=U(D,v.children||[]),D.return=A,D._debugInfo=h0,D}function b(A,D,v,m,J0){if(D===null||D.tag!==7)return D=t2(v,A.mode,m,J0),D.return=A,D._debugOwner=A,D._debugTask=A._debugTask,D._debugInfo=h0,D;return D=U(D,v),D.return=A,D._debugInfo=h0,D}function f(A,D,v){if(typeof D==="string"&&D!==""||typeof D==="number"||typeof D==="bigint")return D=bq(""+D,A.mode,v),D.return=A,D._debugOwner=A,D._debugTask=A._debugTask,D._debugInfo=h0,D;if(typeof D==="object"&&D!==null){switch(D.$$typeof){case E4:return v=HQ(D,A.mode,v),y$(v,D),v.return=A,A=M5(D._debugInfo),v._debugInfo=h0,h0=A,v;case L9:return D=fq(D,A.mode,v),D.return=A,D._debugInfo=h0,D;case R6:var m=M5(D._debugInfo);return D=u8(D),A=f(A,D,v),h0=m,A}if(G5(D)||t(D))return v=t2(D,A.mode,v,null),v.return=A,v._debugOwner=A,v._debugTask=A._debugTask,A=M5(D._debugInfo),v._debugInfo=h0,h0=A,v;if(typeof D.then==="function")return m=M5(D._debugInfo),A=f(A,PQ(D),v),h0=m,A;if(D.$$typeof===S4)return f(A,MQ(A,D),v);TQ(A,D)}return typeof D==="function"&&CQ(A,D),typeof D==="symbol"&&OQ(A,D),null}function S(A,D,v,m){var J0=D!==null?D.key:null;if(typeof v==="string"&&v!==""||typeof v==="number"||typeof v==="bigint")return J0!==null?null:w(A,D,""+v,m);if(typeof v==="object"&&v!==null){switch(v.$$typeof){case E4:return v.key===J0?(J0=M5(v._debugInfo),A=L(A,D,v,m),h0=J0,A):null;case L9:return v.key===J0?T(A,D,v,m):null;case R6:return J0=M5(v._debugInfo),v=u8(v),A=S(A,D,v,m),h0=J0,A}if(G5(v)||t(v)){if(J0!==null)return null;return J0=M5(v._debugInfo),A=b(A,D,v,m,null),h0=J0,A}if(typeof v.then==="function")return J0=M5(v._debugInfo),A=S(A,D,PQ(v),m),h0=J0,A;if(v.$$typeof===S4)return S(A,D,MQ(A,v),m);TQ(A,v)}return typeof v==="function"&&CQ(A,v),typeof v==="symbol"&&OQ(A,v),null}function g(A,D,v,m,J0){if(typeof m==="string"&&m!==""||typeof m==="number"||typeof m==="bigint")return A=A.get(v)||null,w(D,A,""+m,J0);if(typeof m==="object"&&m!==null){switch(m.$$typeof){case E4:return v=A.get(m.key===null?v:m.key)||null,A=M5(m._debugInfo),D=L(D,v,m,J0),h0=A,D;case L9:return A=A.get(m.key===null?v:m.key)||null,T(D,A,m,J0);case R6:var E0=M5(m._debugInfo);return m=u8(m),D=g(A,D,v,m,J0),h0=E0,D}if(G5(m)||t(m))return v=A.get(v)||null,A=M5(m._debugInfo),D=b(D,v,m,J0,null),h0=A,D;if(typeof m.then==="function")return E0=M5(m._debugInfo),D=g(A,D,v,PQ(m),J0),h0=E0,D;if(m.$$typeof===S4)return g(A,D,v,MQ(D,m),J0);TQ(D,m)}return typeof m==="function"&&CQ(D,m),typeof m==="symbol"&&OQ(D,m),null}function $0(A,D,v,m){if(typeof v!=="object"||v===null)return m;switch(v.$$typeof){case E4:case L9:R(A,D,v);var J0=v.key;if(typeof J0!=="string")break;if(m===null){m=new Set,m.add(J0);break}if(!m.has(J0)){m.add(J0);break}q0(D,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.",J0)});break;case R6:v=u8(v),$0(A,D,v,m)}return m}function G0(A,D,v,m){for(var J0=null,E0=null,R0=null,B0=D,f0=D=0,A1=null;B0!==null&&f0<v.length;f0++){B0.index>f0?(A1=B0,B0=null):A1=B0.sibling;var l1=S(A,B0,v[f0],m);if(l1===null){B0===null&&(B0=A1);break}J0=$0(A,l1,v[f0],J0),$&&B0&&l1.alternate===null&&Z(A,B0),D=B(l1,D,f0),R0===null?E0=l1:R0.sibling=l1,R0=l1,B0=A1}if(f0===v.length)return Q(A,B0),i0&&i4(A,f0),E0;if(B0===null){for(;f0<v.length;f0++)B0=f(A,v[f0],m),B0!==null&&(J0=$0(A,B0,v[f0],J0),D=B(B0,D,f0),R0===null?E0=B0:R0.sibling=B0,R0=B0);return i0&&i4(A,f0),E0}for(B0=Y(B0);f0<v.length;f0++)A1=g(B0,A,f0,v[f0],m),A1!==null&&(J0=$0(A,A1,v[f0],J0),$&&A1.alternate!==null&&B0.delete(A1.key===null?f0:A1.key),D=B(A1,D,f0),R0===null?E0=A1:R0.sibling=A1,R0=A1);return $&&B0.forEach(function(_8){return Z(A,_8)}),i0&&i4(A,f0),E0}function C1(A,D,v,m){if(v==null)throw Error("An iterable object provided no iterator.");for(var J0=null,E0=null,R0=D,B0=D=0,f0=null,A1=null,l1=v.next();R0!==null&&!l1.done;B0++,l1=v.next()){R0.index>B0?(f0=R0,R0=null):f0=R0.sibling;var _8=S(A,R0,l1.value,m);if(_8===null){R0===null&&(R0=f0);break}A1=$0(A,_8,l1.value,A1),$&&R0&&_8.alternate===null&&Z(A,R0),D=B(_8,D,B0),E0===null?J0=_8:E0.sibling=_8,E0=_8,R0=f0}if(l1.done)return Q(A,R0),i0&&i4(A,B0),J0;if(R0===null){for(;!l1.done;B0++,l1=v.next())R0=f(A,l1.value,m),R0!==null&&(A1=$0(A,R0,l1.value,A1),D=B(R0,D,B0),E0===null?J0=R0:E0.sibling=R0,E0=R0);return i0&&i4(A,B0),J0}for(R0=Y(R0);!l1.done;B0++,l1=v.next())f0=g(R0,A,B0,l1.value,m),f0!==null&&(A1=$0(A,f0,l1.value,A1),$&&f0.alternate!==null&&R0.delete(f0.key===null?B0:f0.key),D=B(f0,D,B0),E0===null?J0=f0:E0.sibling=f0,E0=f0);return $&&R0.forEach(function(xO){return Z(A,xO)}),i0&&i4(A,B0),J0}function e0(A,D,v,m){if(typeof v==="object"&&v!==null&&v.type===P9&&v.key===null&&(LQ(v,null,A),v=v.props.children),typeof v==="object"&&v!==null){switch(v.$$typeof){case E4:var J0=M5(v._debugInfo);$:{for(var E0=v.key;D!==null;){if(D.key===E0){if(E0=v.type,E0===P9){if(D.tag===7){Q(A,D.sibling),m=U(D,v.props.children),m.return=A,m._debugOwner=v._owner,m._debugInfo=h0,LQ(v,m,A),A=m;break $}}else if(D.elementType===E0||HB(D,v)||typeof E0==="object"&&E0!==null&&E0.$$typeof===R6&&u8(E0)===D.type){Q(A,D.sibling),m=U(D,v.props),y$(m,v),m.return=A,m._debugOwner=v._owner,m._debugInfo=h0,A=m;break $}Q(A,D);break}else Z(A,D);D=D.sibling}v.type===P9?(m=t2(v.props.children,A.mode,m,v.key),m.return=A,m._debugOwner=A,m._debugTask=A._debugTask,m._debugInfo=h0,LQ(v,m,A),A=m):(m=HQ(v,A.mode,m),y$(m,v),m.return=A,m._debugInfo=h0,A=m)}return A=z(A),h0=J0,A;case L9:$:{J0=v;for(v=J0.key;D!==null;){if(D.key===v)if(D.tag===4&&D.stateNode.containerInfo===J0.containerInfo&&D.stateNode.implementation===J0.implementation){Q(A,D.sibling),m=U(D,J0.children||[]),m.return=A,A=m;break $}else{Q(A,D);break}else Z(A,D);D=D.sibling}m=fq(J0,A.mode,m),m.return=A,A=m}return z(A);case R6:return J0=M5(v._debugInfo),v=u8(v),A=e0(A,D,v,m),h0=J0,A}if(G5(v))return J0=M5(v._debugInfo),A=G0(A,D,v,m),h0=J0,A;if(t(v)){if(J0=M5(v._debugInfo),E0=t(v),typeof E0!=="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var R0=E0.call(v);if(R0===v){if(A.tag!==0||Object.prototype.toString.call(A.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(R0)!=="[object Generator]")mz||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."),mz=!0}else v.entries!==E0||HN||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),HN=!0);return A=C1(A,D,R0,m),h0=J0,A}if(typeof v.then==="function")return J0=M5(v._debugInfo),A=e0(A,D,PQ(v),m),h0=J0,A;if(v.$$typeof===S4)return e0(A,D,MQ(A,v),m);TQ(A,v)}if(typeof v==="string"&&v!==""||typeof v==="number"||typeof v==="bigint")return J0=""+v,D!==null&&D.tag===6?(Q(A,D.sibling),m=U(D,J0),m.return=A,A=m):(Q(A,D),m=bq(J0,A.mode,m),m.return=A,m._debugOwner=A,m._debugTask=A._debugTask,m._debugInfo=h0,A=m),z(A);return typeof v==="function"&&CQ(A,v),typeof v==="symbol"&&OQ(A,v),Q(A,D)}return function(A,D,v,m){var J0=h0;h0=null;try{kZ=0;var E0=e0(A,D,v,m);return m9=null,E0}catch(A1){if(A1===x9||A1===vG)throw A1;var R0=P(29,A1,null,A.mode);R0.lanes=m,R0.return=A;var B0=R0._debugInfo=h0;if(R0._debugOwner=A._debugOwner,R0._debugTask=A._debugTask,B0!=null){for(var f0=B0.length-1;0<=f0;f0--)if(typeof B0[f0].stack==="string"){R0._debugOwner=B0[f0],R0._debugTask=B0[f0].debugTask;break}}return R0}finally{h0=J0}}}function gB($,Z){var Q=G5($);return $=!Q&&typeof t($)==="function",Q||$?(Q=Q?"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>",Q,Z,Q),!1):!0}function sq($){$.updateQueue={baseState:$.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function nq($,Z){$=$.updateQueue,Z.updateQueue===$&&(Z.updateQueue={baseState:$.baseState,firstBaseUpdate:$.firstBaseUpdate,lastBaseUpdate:$.lastBaseUpdate,shared:$.shared,callbacks:null})}function x8($){return{lane:$,tag:rz,payload:null,callback:null,next:null}}function m8($,Z,Q){var Y=$.updateQueue;if(Y===null)return null;if(Y=Y.shared,WN===Y&&!oz){var U=d($);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`,U),
|
|
103
|
-
`,
|
|
102
|
+
Please update the following component: %s`,U),oz=!0}if((Z1&Y5)!==W5)return U=Y.pending,U===null?Z.next=Z:(Z.next=U.next,U.next=Z),Y.pending=Z,Z=BQ($),BB($,null,Q),Z;return KQ($,Y,Z,Q),BQ($)}function g$($,Z,Q){if(Z=Z.updateQueue,Z!==null&&(Z=Z.shared,(Q&4194048)!==0)){var Y=Z.lanes;Y&=$.pendingLanes,Q|=Y,Z.lanes=Q,l2($,Q)}}function IQ($,Z){var{updateQueue:Q,alternate:Y}=$;if(Y!==null&&(Y=Y.updateQueue,Q===Y)){var U=null,B=null;if(Q=Q.firstBaseUpdate,Q!==null){do{var z={lane:Q.lane,tag:Q.tag,payload:Q.payload,callback:null,next:null};B===null?U=B=z:B=B.next=z,Q=Q.next}while(Q!==null);B===null?U=B=Z:B=B.next=Z}else U=B=Z;Q={baseState:Y.baseState,firstBaseUpdate:U,lastBaseUpdate:B,shared:Y.shared,callbacks:Y.callbacks},$.updateQueue=Q;return}$=Q.lastBaseUpdate,$===null?Q.firstBaseUpdate=Z:$.next=Z,Q.lastBaseUpdate=Z}function h$(){if(zN){var $=u9;if($!==null)throw $}}function u$($,Z,Q,Y){zN=!1;var U=$.updateQueue;N2=!1,WN=U.shared;var{firstBaseUpdate:B,lastBaseUpdate:z}=U,w=U.shared.pending;if(w!==null){U.shared.pending=null;var L=w,T=L.next;L.next=null,z===null?B=T:z.next=T,z=L;var b=$.alternate;b!==null&&(b=b.updateQueue,w=b.lastBaseUpdate,w!==z&&(w===null?b.firstBaseUpdate=T:w.next=T,b.lastBaseUpdate=L))}if(B!==null){var f=U.baseState;z=0,b=T=L=null,w=B;do{var S=w.lane&-536870913,g=S!==w.lane;if(g?(u0&S)===S:(Y&S)===S){S!==0&&S===z7&&(zN=!0),b!==null&&(b=b.next={lane:0,tag:w.tag,payload:w.payload,callback:null,next:null});$:{S=$;var $0=w,G0=Z,C1=Q;switch($0.tag){case sz:if($0=$0.payload,typeof $0==="function"){g9=!0;var e0=$0.call(C1,f,G0);if(S.mode&D5){P1(!0);try{$0.call(C1,f,G0)}finally{P1(!1)}}g9=!1,f=e0;break $}f=$0;break $;case FN:S.flags=S.flags&-65537|128;case rz:if(e0=$0.payload,typeof e0==="function"){if(g9=!0,$0=e0.call(C1,f,G0),S.mode&D5){P1(!0);try{e0.call(C1,f,G0)}finally{P1(!1)}}g9=!1}else $0=e0;if($0===null||$0===void 0)break $;f=l0({},f,$0);break $;case nz:N2=!0}}S=w.callback,S!==null&&($.flags|=64,g&&($.flags|=8192),g=U.callbacks,g===null?U.callbacks=[S]:g.push(S))}else g={lane:S,tag:w.tag,payload:w.payload,callback:w.callback,next:null},b===null?(T=b=g,L=f):b=b.next=g,z|=S;if(w=w.next,w===null)if(w=U.shared.pending,w===null)break;else g=w,w=g.next,g.next=null,U.lastBaseUpdate=g,U.shared.pending=null}while(1);b===null&&(L=f),U.baseState=L,U.firstBaseUpdate=T,U.lastBaseUpdate=b,B===null&&(U.shared.lanes=0),B2|=z,$.lanes=z,$.memoizedState=f}WN=null}function hB($,Z){if(typeof $!=="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+$);$.call(Z)}function bP($,Z){var Q=$.shared.hiddenCallbacks;if(Q!==null)for($.shared.hiddenCallbacks=null,$=0;$<Q.length;$++)hB(Q[$],Z)}function uB($,Z){var Q=$.callbacks;if(Q!==null)for($.callbacks=null,$=0;$<Q.length;$++)hB(Q[$],Z)}function xB($,Z){var Q=u4;O0(fG,Q,$),O0(d9,Z,$),u4=Q|Z.baseLanes}function oq($){O0(fG,u4,$),O0(d9,d9.current,$)}function aq($){u4=fG.current,P0(d9,$),P0(fG,$)}function d8($){var Z=$.alternate;O0(c1,c1.current&p9,$),O0(T6,$,$),h6===null&&(Z===null||d9.current!==null?h6=$:Z.memoizedState!==null&&(h6=$))}function iq($){O0(c1,c1.current,$),O0(T6,$,$),h6===null&&(h6=$)}function mB($){$.tag===22?(O0(c1,c1.current,$),O0(T6,$,$),h6===null&&(h6=$)):p8($)}function p8($){O0(c1,c1.current,$),O0(T6,T6.current,$)}function z6($){P0(T6,$),h6===$&&(h6=null),P0(c1,$)}function VQ($){for(var Z=$;Z!==null;){if(Z.tag===13){var Q=Z.memoizedState;if(Q!==null&&(Q=Q.dehydrated,Q===null||KX(Q)||BX(Q)))return Z}else if(Z.tag===19&&(Z.memoizedProps.revealOrder==="forwards"||Z.memoizedProps.revealOrder==="backwards"||Z.memoizedProps.revealOrder==="unstable_legacy-backwards"||Z.memoizedProps.revealOrder==="together")){if((Z.flags&128)!==0)return Z}else if(Z.child!==null){Z.child.return=Z,Z=Z.child;continue}if(Z===$)break;for(;Z.sibling===null;){if(Z.return===null||Z.return===$)return null;Z=Z.return}Z.sibling.return=Z.return,Z=Z.sibling}return null}function c0(){var $=u;x6===null?x6=[$]:x6.push($)}function c(){var $=u;if(x6!==null&&(W8++,x6[W8]!==$)){var Z=d(A0);if(!az.has(Z)&&(az.add(Z),x6!==null)){for(var Q="",Y=0;Y<=W8;Y++){var U=x6[Y],B=Y===W8?$:U;for(U=Y+1+". "+U;30>U.length;)U+=" ";U+=B+`
|
|
103
|
+
`,Q+=U}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
|
-
`,Z,
|
|
108
|
+
`,Z,Q)}}}function X9($){$===void 0||$===null||G5($)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",u,typeof $)}function AQ(){var $=d(A0);tz.has($)||(tz.add($),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",$))}function d1(){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 tq($,Z){if(fZ)return!1;if(Z===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.",u),!1;$.length!==Z.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`,u,"["+Z.join(", ")+"]","["+$.join(", ")+"]");for(var G=0;G<Z.length&&G<$.length;G++)if(!d5($[G],Z[G]))return!1;return!0}function Rq($,Z,G,Y,U,B){if(w8=B,A0=Z,p6=$!==null?$._debugHookTypes:null,z8=-1,nZ=$!==null&&$.type!==Z.type,Object.prototype.toString.call(G)==="[object AsyncFunction]"||Object.prototype.toString.call(G)==="[object AsyncGeneratorFunction]")B=d(A0),kN.has(B)||(kN.add(B),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.",B===null?"An unknown Component":"<"+B+">"));Z.memoizedState=null,Z.updateQueue=null,Z.lanes=0,x.H=$!==null&&$.memoizedState!==null?yN:p6!==null?Pw:fN,O9=B=(Z.mode&v5)!==V0;var W=AN(G,Y,U);if(O9=!1,t7&&(W=zq(Z,G,Y,U)),B){C1(!0);try{W=zq(Z,G,Y,U)}finally{C1(!1)}}return KH($,Z),W}function KH($,Z){Z._debugHookTypes=p6,Z.dependencies===null?R8!==null&&(Z.dependencies={lanes:0,firstContext:null,_debugThenableState:R8}):Z.dependencies._debugThenableState=R8,x.H=sZ;var G=L1!==null&&L1.next!==null;if(w8=0,p6=u=$5=L1=A0=null,z8=-1,$!==null&&($.flags&65011712)!==(Z.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),iG=!1,rZ=0,R8=null,G)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");$===null||Z5||($=$.dependencies,$!==null&&SJ($)&&(Z5=!0)),pZ?(pZ=!1,$=!0):$=!1,$&&(Z=d(Z)||"Unknown",_w.has(Z)||kN.has(Z)||(_w.add(Z),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 zq($,Z,G,Y){A0=$;var U=0;do{if(t7&&(R8=null),rZ=0,t7=!1,U>=wO)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(U+=1,nZ=!1,$5=L1=null,$.updateQueue!=null){var B=$.updateQueue;B.lastEffect=null,B.events=null,B.stores=null,B.memoCache!=null&&(B.memoCache.index=0)}z8=-1,x.H=Tw,B=AN(Z,G,Y)}while(t7);return B}function bT(){var $=x.H,Z=$.useState()[0];return Z=typeof Z.then==="function"?t$(Z):Z,$=$.useState()[0],(L1!==null?L1.memoizedState:null)!==$&&(A0.flags|=1024),Z}function _q(){var $=tG!==0;return tG=0,$}function Lq($,Z,G){Z.updateQueue=$.updateQueue,Z.flags=(Z.mode&q4)!==V0?Z.flags&-402655237:Z.flags&-2053,$.lanes&=~G}function Pq($){if(iG){for($=$.memoizedState;$!==null;){var Z=$.queue;Z!==null&&(Z.pending=null),$=$.next}iG=!1}w8=0,p6=$5=L1=A0=null,z8=-1,u=null,t7=!1,rZ=tG=0,R8=null}function h5(){var $={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return $5===null?A0.memoizedState=$5=$:$5=$5.next=$,$5}function F1(){if(L1===null){var $=A0.alternate;$=$!==null?$.memoizedState:null}else $=L1.next;var Z=$5===null?A0.memoizedState:$5.next;if(Z!==null)$5=Z,L1=$;else{if($===null){if(A0.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.")}L1=$,$={memoizedState:L1.memoizedState,baseState:L1.baseState,baseQueue:L1.baseQueue,queue:L1.queue,next:null},$5===null?A0.memoizedState=$5=$:$5=$5.next=$}return $5}function dJ(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function t$($){var Z=rZ;return rZ+=1,R8===null&&(R8=aB()),$=tB(R8,$,Z),Z=A0,($5===null?Z.memoizedState:$5.next)===null&&(Z=Z.alternate,x.H=Z!==null&&Z.memoizedState!==null?yN:fN),$}function a8($){if($!==null&&typeof $==="object"){if(typeof $.then==="function")return t$($);if($.$$typeof===v4)return v1($)}throw Error("An unsupported type was passed to use(): "+String($))}function N9($){var Z=null,G=A0.updateQueue;if(G!==null&&(Z=G.memoCache),Z==null){var Y=A0.alternate;Y!==null&&(Y=Y.updateQueue,Y!==null&&(Y=Y.memoCache,Y!=null&&(Z={data:Y.data.map(function(U){return U.slice()}),index:0})))}if(Z==null&&(Z={data:[],index:0}),G===null&&(G=dJ(),A0.updateQueue=G),G.memoCache=Z,G=Z.data[Z.index],G===void 0||nZ)for(G=Z.data[Z.index]=Array($),Y=0;Y<$;Y++)G[Y]=sC;else G.length!==$&&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.",G.length,$);return Z.index++,G}function Q4($,Z){return typeof Z==="function"?Z($):Z}function Tq($,Z,G){var Y=h5();if(G!==void 0){var U=G(Z);if(O9){C1(!0);try{G(Z)}finally{C1(!1)}}}else U=Z;return Y.memoizedState=Y.baseState=U,$={pending:null,lanes:0,dispatch:null,lastRenderedReducer:$,lastRenderedState:U},Y.queue=$,$=$.dispatch=hT.bind(null,A0,$),[Y.memoizedState,$]}function W7($){var Z=F1();return Cq(Z,L1,$)}function Cq($,Z,G){var Y=$.queue;if(Y===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");Y.lastRenderedReducer=G;var U=$.baseQueue,B=Y.pending;if(B!==null){if(U!==null){var W=U.next;U.next=B.next,B.next=W}Z.baseQueue!==U&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),Z.baseQueue=U=B,Y.pending=null}if(B=$.baseState,U===null)$.memoizedState=B;else{Z=U.next;var z=W=null,L=null,T=Z,k=!1;do{var f=T.lane&-536870913;if(f!==T.lane?(u0&f)===f:(w8&f)===f){var S=T.revertLane;if(S===0)L!==null&&(L=L.next={lane:0,revertLane:0,gesture:null,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null}),f===L9&&(k=!0);else if((w8&S)===S){T=T.next,S===L9&&(k=!0);continue}else f={lane:0,revertLane:T.revertLane,gesture:null,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null},L===null?(z=L=f,W=B):L=L.next=f,A0.lanes|=S,R2|=S;f=T.action,O9&&G(B,f),B=T.hasEagerState?T.eagerState:G(B,f)}else S={lane:f,revertLane:T.revertLane,gesture:T.gesture,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null},L===null?(z=L=S,W=B):L=L.next=S,A0.lanes|=f,R2|=f;T=T.next}while(T!==null&&T!==Z);if(L===null?W=B:L.next=z,!d5(B,$.memoizedState)&&(Z5=!0,k&&(G=r7,G!==null)))throw G;$.memoizedState=B,$.baseState=W,$.baseQueue=L,Y.lastRenderedState=B}return U===null&&(Y.lanes=0),[$.memoizedState,Y.dispatch]}function e$($){var Z=F1(),G=Z.queue;if(G===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");G.lastRenderedReducer=$;var{dispatch:Y,pending:U}=G,B=Z.memoizedState;if(U!==null){G.pending=null;var W=U=U.next;do B=$(B,W.action),W=W.next;while(W!==U);d5(B,Z.memoizedState)||(Z5=!0),Z.memoizedState=B,Z.baseQueue===null&&(Z.baseState=B),G.lastRenderedState=B}return[B,Y]}function Iq($,Z,G){var Y=A0,U=h5();if(i0){if(G===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var B=G();i7||B===G()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),i7=!0)}else{if(B=Z(),i7||(G=Z(),d5(B,G)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),i7=!0)),P1===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(u0&127)!==0||BH(Y,Z,B)}return U.memoizedState=B,G={value:B,getSnapshot:Z},U.queue=G,rJ(FH.bind(null,Y,G,$),[$]),Y.flags|=2048,R7(d6|l5,{destroy:void 0},HH.bind(null,Y,G,B,Z),null),B}function pJ($,Z,G){var Y=A0,U=F1(),B=i0;if(B){if(G===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");G=G()}else if(G=Z(),!i7){var W=Z();d5(G,W)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),i7=!0)}if(W=!d5((L1||U).memoizedState,G))U.memoizedState=G,Z5=!0;U=U.queue;var z=FH.bind(null,Y,U,$);if(s5(2048,l5,z,[$]),U.getSnapshot!==Z||W||$5!==null&&$5.memoizedState.tag&d6){if(Y.flags|=2048,R7(d6|l5,{destroy:void 0},HH.bind(null,Y,U,G,Z),null),P1===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");B||(w8&127)!==0||BH(Y,Z,G)}return G}function BH($,Z,G){$.flags|=16384,$={getSnapshot:Z,value:G},Z=A0.updateQueue,Z===null?(Z=dJ(),A0.updateQueue=Z,Z.stores=[$]):(G=Z.stores,G===null?Z.stores=[$]:G.push($))}function HH($,Z,G,Y){Z.value=G,Z.getSnapshot=Y,MH(Z)&&WH($)}function FH($,Z,G){return G(function(){MH(Z)&&(z4(2,"updateSyncExternalStore()",$),WH($))})}function MH($){var Z=$.getSnapshot;$=$.value;try{var G=Z();return!d5($,G)}catch(Y){return!0}}function WH($){var Z=j5($,2);Z!==null&&h1(Z,$,2)}function Oq($){var Z=h5();if(typeof $==="function"){var G=$;if($=G(),O9){C1(!0);try{G()}finally{C1(!1)}}}return Z.memoizedState=Z.baseState=$,Z.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Q4,lastRenderedState:$},Z}function Vq($){$=Oq($);var Z=$.queue,G=kH.bind(null,A0,Z);return Z.dispatch=G,[$.memoizedState,G]}function Aq($){var Z=h5();Z.memoizedState=Z.baseState=$;var G={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return Z.queue=G,Z=mq.bind(null,A0,!0,G),G.dispatch=Z,[$,Z]}function wH($,Z){var G=F1();return RH(G,L1,$,Z)}function RH($,Z,G,Y){return $.baseState=G,Cq($,L1,typeof Y==="function"?Y:Q4)}function zH($,Z){var G=F1();if(L1!==null)return RH(G,L1,$,Z);return G.baseState=$,[$,G.queue.dispatch]}function kT($,Z,G,Y,U){if(tJ($))throw Error("Cannot update form state while rendering.");if($=Z.action,$!==null){var B={payload:U,action:$,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(W){B.listeners.push(W)}};x.T!==null?G(!0):B.isTransition=!1,Y(B),G=Z.pending,G===null?(B.next=Z.pending=B,_H(Z,B)):(B.next=G.next,Z.pending=G.next=B)}}function _H($,Z){var{action:G,payload:Y}=Z,U=$.state;if(Z.isTransition){var B=x.T,W={};W._updatedFibers=new Set,x.T=W;try{var z=G(U,Y),L=x.S;L!==null&&L(W,z),LH($,Z,z)}catch(T){Eq($,Z,T)}finally{B!==null&&W.types!==null&&(B.types!==null&&B.types!==W.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=W.types),x.T=B,B===null&&W._updatedFibers&&($=W._updatedFibers.size,W._updatedFibers.clear(),10<$&&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{W=G(U,Y),LH($,Z,W)}catch(T){Eq($,Z,T)}}function LH($,Z,G){G!==null&&typeof G==="object"&&typeof G.then==="function"?(x.asyncTransitions++,G.then(iJ,iJ),G.then(function(Y){PH($,Z,Y)},function(Y){return Eq($,Z,Y)}),Z.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.")):PH($,Z,G)}function PH($,Z,G){Z.status="fulfilled",Z.value=G,TH(Z),$.state=G,Z=$.pending,Z!==null&&(G=Z.next,G===Z?$.pending=null:(G=G.next,Z.next=G,_H($,G)))}function Eq($,Z,G){var Y=$.pending;if($.pending=null,Y!==null){Y=Y.next;do Z.status="rejected",Z.reason=G,TH(Z),Z=Z.next;while(Z!==Y)}$.action=null}function TH($){$=$.listeners;for(var Z=0;Z<$.length;Z++)(0,$[Z])()}function CH($,Z){return Z}function w7($,Z){if(i0){var G=P1.formState;if(G!==null){$:{var Y=A0;if(i0){if(E1){Z:{var U=E1;for(var B=u6;U.nodeType!==8;){if(!B){U=null;break Z}if(U=L6(U.nextSibling),U===null){U=null;break Z}}B=U.data,U=B===XU||B===YR?U:null}if(U){E1=L6(U.nextSibling),Y=U.data===XU;break $}}p8(Y)}Y=!1}Y&&(Z=G[0])}}return G=h5(),G.memoizedState=G.baseState=Z,Y={pending:null,lanes:0,dispatch:null,lastRenderedReducer:CH,lastRenderedState:Z},G.queue=Y,G=kH.bind(null,A0,Y),Y.dispatch=G,Y=Oq(!1),B=mq.bind(null,A0,!1,Y.queue),Y=h5(),U={state:Z,dispatch:null,action:$,pending:null},Y.queue=U,G=kT.bind(null,A0,U,B,G),U.dispatch=G,Y.memoizedState=$,[Z,G,!1]}function cJ($){var Z=F1();return IH(Z,L1,$)}function IH($,Z,G){if(Z=Cq($,Z,CH)[0],$=W7(Q4)[0],typeof Z==="object"&&Z!==null&&typeof Z.then==="function")try{var Y=t$(Z)}catch(W){if(W===n7)throw nG;throw W}else Y=Z;Z=F1();var U=Z.queue,B=U.dispatch;return G!==Z.memoizedState&&(A0.flags|=2048,R7(d6|l5,{destroy:void 0},fT.bind(null,U,G),null)),[Y,B,$]}function fT($,Z){$.action=Z}function lJ($){var Z=F1(),G=L1;if(G!==null)return IH(Z,G,$);F1(),Z=Z.memoizedState,G=F1();var Y=G.queue.dispatch;return G.memoizedState=$,[Z,Y,!1]}function R7($,Z,G,Y){return $={tag:$,create:G,deps:Y,inst:Z,next:null},Z=A0.updateQueue,Z===null&&(Z=dJ(),A0.updateQueue=Z),G=Z.lastEffect,G===null?Z.lastEffect=$.next=$:(Y=G.next,G.next=$,$.next=Y,Z.lastEffect=$),$}function Sq($){var Z=h5();return $={current:$},Z.memoizedState=$}function U9($,Z,G,Y){var U=h5();A0.flags|=$,U.memoizedState=R7(d6|Z,{destroy:void 0},G,Y===void 0?null:Y)}function s5($,Z,G,Y){var U=F1();Y=Y===void 0?null:Y;var B=U.memoizedState.inst;L1!==null&&Y!==null&&wq(Y,L1.memoizedState.deps)?U.memoizedState=R7(Z,B,G,Y):(A0.flags|=$,U.memoizedState=R7(d6|Z,B,G,Y))}function rJ($,Z){(A0.mode&q4)!==V0?U9(276826112,l5,$,Z):U9(8390656,l5,$,Z)}function yT($){A0.flags|=4;var Z=A0.updateQueue;if(Z===null)Z=dJ(),A0.updateQueue=Z,Z.events=[$];else{var G=Z.events;G===null?Z.events=[$]:G.push($)}}function jq($){var Z=h5(),G={impl:$};return Z.memoizedState=G,function(){if((Z1&N5)!==w5)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return G.impl.apply(void 0,arguments)}}function nJ($){var Z=F1().memoizedState;return yT({ref:Z,nextImpl:$}),function(){if((Z1&N5)!==w5)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return Z.impl.apply(void 0,arguments)}}function Dq($,Z){var G=4194308;return(A0.mode&q4)!==V0&&(G|=134217728),U9(G,V6,$,Z)}function OH($,Z){if(typeof Z==="function"){$=$();var G=Z($);return function(){typeof G==="function"?G():Z(null)}}if(Z!==null&&Z!==void 0)return Z.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(Z).join(", ")+"}"),$=$(),Z.current=$,function(){Z.current=null}}function vq($,Z,G){typeof Z!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",Z!==null?typeof Z:"null"),G=G!==null&&G!==void 0?G.concat([$]):null;var Y=4194308;(A0.mode&q4)!==V0&&(Y|=134217728),U9(Y,V6,OH.bind(null,Z,$),G)}function sJ($,Z,G){typeof Z!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",Z!==null?typeof Z:"null"),G=G!==null&&G!==void 0?G.concat([$]):null,s5(4,V6,OH.bind(null,Z,$),G)}function bq($,Z){return h5().memoizedState=[$,Z===void 0?null:Z],$}function oJ($,Z){var G=F1();Z=Z===void 0?null:Z;var Y=G.memoizedState;if(Z!==null&&wq(Z,Y[1]))return Y[0];return G.memoizedState=[$,Z],$}function kq($,Z){var G=h5();Z=Z===void 0?null:Z;var Y=$();if(O9){C1(!0);try{$()}finally{C1(!1)}}return G.memoizedState=[Y,Z],Y}function aJ($,Z){var G=F1();Z=Z===void 0?null:Z;var Y=G.memoizedState;if(Z!==null&&wq(Z,Y[1]))return Y[0];if(Y=$(),O9){C1(!0);try{$()}finally{C1(!1)}}return G.memoizedState=[Y,Z],Y}function fq($,Z){var G=h5();return yq(G,$,Z)}function VH($,Z){var G=F1();return EH(G,L1.memoizedState,$,Z)}function AH($,Z){var G=F1();return L1===null?yq(G,$,Z):EH(G,L1.memoizedState,$,Z)}function yq($,Z,G){if(G===void 0||(w8&1073741824)!==0&&(u0&261930)===0)return $.memoizedState=Z;return $.memoizedState=G,$=SF(),A0.lanes|=$,R2|=$,G}function EH($,Z,G,Y){if(d5(G,Z))return G;if(o7.current!==null)return $=yq($,G,Y),d5($,Z)||(Z5=!0),$;if((w8&42)===0||(w8&1073741824)!==0&&(u0&261930)===0)return Z5=!0,$.memoizedState=G;return $=SF(),A0.lanes|=$,R2|=$,Z}function iJ(){x.asyncTransitions--}function SH($,Z,G,Y,U){var B=K1.p;K1.p=B!==0&&B<X4?B:X4;var W=x.T,z={};z._updatedFibers=new Set,x.T=z,mq($,!1,Z,G);try{var L=U(),T=x.S;if(T!==null&&T(z,L),L!==null&&typeof L==="object"&&typeof L.then==="function"){x.asyncTransitions++,L.then(iJ,iJ);var k=DT(L,Y);$Z($,Z,k,_6($))}else $Z($,Z,Y,_6($))}catch(f){$Z($,Z,{then:function(){},status:"rejected",reason:f},_6($))}finally{K1.p=B,W!==null&&z.types!==null&&(W.types!==null&&W.types!==z.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."),W.types=z.types),x.T=W,W===null&&z._updatedFibers&&($=z._updatedFibers.size,z._updatedFibers.clear(),10<$&&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 gq($,Z,G,Y){if($.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var U=jH($).queue;ST($),SH($,U,Z,y9,G===null?w:function(){return DH($),G(Y)})}function jH($){var Z=$.memoizedState;if(Z!==null)return Z;Z={memoizedState:y9,baseState:y9,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Q4,lastRenderedState:y9},next:null};var G={};return Z.next={memoizedState:G,baseState:G,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Q4,lastRenderedState:G},next:null},$.memoizedState=Z,$=$.alternate,$!==null&&($.memoizedState=Z),Z}function DH($){x.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var Z=jH($);Z.next===null&&(Z=$.alternate.memoizedState),$Z($,Z.next.queue,{},_6($))}function hq(){var $=Oq(!1);return $=SH.bind(null,A0,$.queue,!0,!1),h5().memoizedState=$,[!1,$]}function vH(){var $=W7(Q4)[0],Z=F1().memoizedState;return[typeof $==="boolean"?$:t$($),Z]}function bH(){var $=e$(Q4)[0],Z=F1().memoizedState;return[typeof $==="boolean"?$:t$($),Z]}function K9(){return v1(UQ)}function uq(){var $=h5(),Z=P1.identifierPrefix;if(i0){var G=B8,Y=K8;G=(Y&~(1<<32-u5(Y)-1)).toString(32)+G,Z="_"+Z+"R_"+G,G=tG++,0<G&&(Z+="H"+G.toString(32)),Z+="_"}else G=WO++,Z="_"+Z+"r_"+G.toString(32)+"_";return $.memoizedState=Z}function xq(){return h5().memoizedState=gT.bind(null,A0)}function gT($,Z){for(var G=$.return;G!==null;){switch(G.tag){case 24:case 3:var Y=_6(G),U=r8(Y),B=n8(G,U,Y);B!==null&&(z4(Y,"refresh()",$),h1(B,G,Y),o$(B,G,Y)),$=qq(),Z!==null&&Z!==void 0&&B!==null&&console.error("The seed argument is not enabled outside experimental channels."),U.payload={cache:$};return}G=G.return}}function hT($,Z,G){var Y=arguments;typeof Y[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()."),Y=_6($);var U={lane:Y,revertLane:0,gesture:null,action:G,hasEagerState:!1,eagerState:null,next:null};tJ($)?fH(Z,U):(U=sX($,Z,U,Y),U!==null&&(z4(Y,"dispatch()",$),h1(U,$,Y),yH(U,Z,Y)))}function kH($,Z,G){var Y=arguments;typeof Y[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()."),Y=_6($),$Z($,Z,G,Y)&&z4(Y,"setState()",$)}function $Z($,Z,G,Y){var U={lane:Y,revertLane:0,gesture:null,action:G,hasEagerState:!1,eagerState:null,next:null};if(tJ($))fH(Z,U);else{var B=$.alternate;if($.lanes===0&&(B===null||B.lanes===0)&&(B=Z.lastRenderedReducer,B!==null)){var W=x.H;x.H=N4;try{var z=Z.lastRenderedState,L=B(z,G);if(U.hasEagerState=!0,U.eagerState=L,d5(L,z))return IJ($,Z,U,0),P1===null&&CJ(),!1}catch(T){}finally{x.H=W}}if(G=sX($,Z,U,Y),G!==null)return h1(G,$,Y),yH(G,Z,Y),!0}return!1}function mq($,Z,G,Y){if(x.T===null&&L9===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."),Y={lane:2,revertLane:RY(),gesture:null,action:Y,hasEagerState:!1,eagerState:null,next:null},tJ($)){if(Z)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else Z=sX($,G,Y,2),Z!==null&&(z4(2,"setOptimistic()",$),h1(Z,$,2))}function tJ($){var Z=$.alternate;return $===A0||Z!==null&&Z===A0}function fH($,Z){t7=iG=!0;var G=$.pending;G===null?Z.next=Z:(Z.next=G.next,G.next=Z),$.pending=Z}function yH($,Z,G){if((G&4194048)!==0){var Y=Z.lanes;Y&=$.pendingLanes,G|=Y,Z.lanes=G,a2($,G)}}function dq($){if($!==null&&typeof $!=="function"){var Z=String($);bw.has(Z)||(bw.add(Z),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",$))}}function pq($,Z,G,Y){var U=$.memoizedState,B=G(Y,U);if($.mode&v5){C1(!0);try{B=G(Y,U)}finally{C1(!1)}}B===void 0&&(Z=i(Z)||"Component",Sw.has(Z)||(Sw.add(Z),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",Z))),U=B===null||B===void 0?U:l0({},U,B),$.memoizedState=U,$.lanes===0&&($.updateQueue.baseState=U)}function gH($,Z,G,Y,U,B,W){var z=$.stateNode;if(typeof z.shouldComponentUpdate==="function"){if(G=z.shouldComponentUpdate(Y,B,W),$.mode&v5){C1(!0);try{G=z.shouldComponentUpdate(Y,B,W)}finally{C1(!1)}}return G===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",i(Z)||"Component"),G}return Z.prototype&&Z.prototype.isPureReactComponent?!d$(G,Y)||!d$(U,B):!0}function hH($,Z,G,Y){var U=Z.state;typeof Z.componentWillReceiveProps==="function"&&Z.componentWillReceiveProps(G,Y),typeof Z.UNSAFE_componentWillReceiveProps==="function"&&Z.UNSAFE_componentWillReceiveProps(G,Y),Z.state!==U&&($=d($)||"Component",Iw.has($)||(Iw.add($),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",$)),gN.enqueueReplaceState(Z,Z.state,null))}function B9($,Z){var G=Z;if("ref"in Z){G={};for(var Y in Z)Y!=="ref"&&(G[Y]=Z[Y])}if($=$.defaultProps){G===Z&&(G=l0({},G));for(var U in $)G[U]===void 0&&(G[U]=$[U])}return G}function uH($){MN($),console.warn(`%s
|
|
115
|
+
Incoming: %s`,u,"["+Z.join(", ")+"]","["+$.join(", ")+"]");for(var Q=0;Q<Z.length&&Q<$.length;Q++)if(!u5($[Q],Z[Q]))return!1;return!0}function eq($,Z,Q,Y,U,B){if(H8=B,A0=Z,x6=$!==null?$._debugHookTypes:null,W8=-1,fZ=$!==null&&$.type!==Z.type,Object.prototype.toString.call(Q)==="[object AsyncFunction]"||Object.prototype.toString.call(Q)==="[object AsyncGeneratorFunction]")B=d(A0),MN.has(B)||(MN.add(B),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.",B===null?"An unknown Component":"<"+B+">"));Z.memoizedState=null,Z.updateQueue=null,Z.lanes=0,x.H=$!==null&&$.memoizedState!==null?RN:x6!==null?ez:wN,L7=B=(Z.mode&D5)!==V0;var z=UN(Q,Y,U);if(L7=!1,l9&&(z=$Y(Z,Q,Y,U)),B){P1(!0);try{z=$Y(Z,Q,Y,U)}finally{P1(!1)}}return dB($,Z),z}function dB($,Z){Z._debugHookTypes=x6,Z.dependencies===null?F8!==null&&(Z.dependencies={lanes:0,firstContext:null,_debugThenableState:F8}):Z.dependencies._debugThenableState=F8,x.H=yZ;var Q=R1!==null&&R1.next!==null;if(H8=0,x6=u=t1=R1=A0=null,W8=-1,$!==null&&($.flags&65011712)!==(Z.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),gG=!1,bZ=0,F8=null,Q)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");$===null||e1||($=$.dependencies,$!==null&&zQ($)&&(e1=!0)),jZ?(jZ=!1,$=!0):$=!1,$&&(Z=d(Z)||"Unknown",iz.has(Z)||MN.has(Z)||(iz.add(Z),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 $Y($,Z,Q,Y){A0=$;var U=0;do{if(l9&&(F8=null),bZ=0,l9=!1,U>=RO)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(U+=1,fZ=!1,t1=R1=null,$.updateQueue!=null){var B=$.updateQueue;B.lastEffect=null,B.events=null,B.stores=null,B.memoCache!=null&&(B.memoCache.index=0)}W8=-1,x.H=$M,B=UN(Z,Q,Y)}while(l9);return B}function fP(){var $=x.H,Z=$.useState()[0];return Z=typeof Z.then==="function"?x$(Z):Z,$=$.useState()[0],(R1!==null?R1.memoizedState:null)!==$&&(A0.flags|=1024),Z}function ZY(){var $=hG!==0;return hG=0,$}function JY($,Z,Q){Z.updateQueue=$.updateQueue,Z.flags=(Z.mode&Q4)!==V0?Z.flags&-402655237:Z.flags&-2053,$.lanes&=~Q}function QY($){if(gG){for($=$.memoizedState;$!==null;){var Z=$.queue;Z!==null&&(Z.pending=null),$=$.next}gG=!1}H8=0,x6=t1=R1=A0=null,W8=-1,u=null,l9=!1,bZ=hG=0,F8=null}function f5(){var $={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return t1===null?A0.memoizedState=t1=$:t1=t1.next=$,t1}function B1(){if(R1===null){var $=A0.alternate;$=$!==null?$.memoizedState:null}else $=R1.next;var Z=t1===null?A0.memoizedState:t1.next;if(Z!==null)t1=Z,R1=$;else{if($===null){if(A0.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.")}R1=$,$={memoizedState:R1.memoizedState,baseState:R1.baseState,baseQueue:R1.baseQueue,queue:R1.queue,next:null},t1===null?A0.memoizedState=t1=$:t1=t1.next=$}return t1}function EQ(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function x$($){var Z=bZ;return bZ+=1,F8===null&&(F8=EB()),$=DB(F8,$,Z),Z=A0,(t1===null?Z.memoizedState:t1.next)===null&&(Z=Z.alternate,x.H=Z!==null&&Z.memoizedState!==null?RN:wN),$}function c8($){if($!==null&&typeof $==="object"){if(typeof $.then==="function")return x$($);if($.$$typeof===S4)return D1($)}throw Error("An unsupported type was passed to use(): "+String($))}function Q7($){var Z=null,Q=A0.updateQueue;if(Q!==null&&(Z=Q.memoCache),Z==null){var Y=A0.alternate;Y!==null&&(Y=Y.updateQueue,Y!==null&&(Y=Y.memoCache,Y!=null&&(Z={data:Y.data.map(function(U){return U.slice()}),index:0})))}if(Z==null&&(Z={data:[],index:0}),Q===null&&(Q=EQ(),A0.updateQueue=Q),Q.memoCache=Z,Q=Z.data[Z.index],Q===void 0||fZ)for(Q=Z.data[Z.index]=Array($),Y=0;Y<$;Y++)Q[Y]=aT;else Q.length!==$&&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.",Q.length,$);return Z.index++,Q}function e6($,Z){return typeof Z==="function"?Z($):Z}function GY($,Z,Q){var Y=f5();if(Q!==void 0){var U=Q(Z);if(L7){P1(!0);try{Q(Z)}finally{P1(!1)}}}else U=Z;return Y.memoizedState=Y.baseState=U,$={pending:null,lanes:0,dispatch:null,lastRenderedReducer:$,lastRenderedState:U},Y.queue=$,$=$.dispatch=xP.bind(null,A0,$),[Y.memoizedState,$]}function N9($){var Z=B1();return qY(Z,R1,$)}function qY($,Z,Q){var Y=$.queue;if(Y===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");Y.lastRenderedReducer=Q;var U=$.baseQueue,B=Y.pending;if(B!==null){if(U!==null){var z=U.next;U.next=B.next,B.next=z}Z.baseQueue!==U&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),Z.baseQueue=U=B,Y.pending=null}if(B=$.baseState,U===null)$.memoizedState=B;else{Z=U.next;var w=z=null,L=null,T=Z,b=!1;do{var f=T.lane&-536870913;if(f!==T.lane?(u0&f)===f:(H8&f)===f){var S=T.revertLane;if(S===0)L!==null&&(L=L.next={lane:0,revertLane:0,gesture:null,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null}),f===z7&&(b=!0);else if((H8&S)===S){T=T.next,S===z7&&(b=!0);continue}else f={lane:0,revertLane:T.revertLane,gesture:null,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null},L===null?(w=L=f,z=B):L=L.next=f,A0.lanes|=S,B2|=S;f=T.action,L7&&Q(B,f),B=T.hasEagerState?T.eagerState:Q(B,f)}else S={lane:f,revertLane:T.revertLane,gesture:T.gesture,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null},L===null?(w=L=S,z=B):L=L.next=S,A0.lanes|=f,B2|=f;T=T.next}while(T!==null&&T!==Z);if(L===null?z=B:L.next=w,!u5(B,$.memoizedState)&&(e1=!0,b&&(Q=u9,Q!==null)))throw Q;$.memoizedState=B,$.baseState=z,$.baseQueue=L,Y.lastRenderedState=B}return U===null&&(Y.lanes=0),[$.memoizedState,Y.dispatch]}function m$($){var Z=B1(),Q=Z.queue;if(Q===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");Q.lastRenderedReducer=$;var{dispatch:Y,pending:U}=Q,B=Z.memoizedState;if(U!==null){Q.pending=null;var z=U=U.next;do B=$(B,z.action),z=z.next;while(z!==U);u5(B,Z.memoizedState)||(e1=!0),Z.memoizedState=B,Z.baseQueue===null&&(Z.baseState=B),Q.lastRenderedState=B}return[B,Y]}function YY($,Z,Q){var Y=A0,U=f5();if(i0){if(Q===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var B=Q();c9||B===Q()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),c9=!0)}else{if(B=Z(),c9||(Q=Z(),u5(B,Q)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),c9=!0)),_1===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(u0&127)!==0||pB(Y,Z,B)}return U.memoizedState=B,Q={value:B,getSnapshot:Z},U.queue=Q,kQ(lB.bind(null,Y,Q,$),[$]),Y.flags|=2048,K9(u6|d5,{destroy:void 0},cB.bind(null,Y,Q,B,Z),null),B}function SQ($,Z,Q){var Y=A0,U=B1(),B=i0;if(B){if(Q===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");Q=Q()}else if(Q=Z(),!c9){var z=Z();u5(Q,z)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),c9=!0)}if(z=!u5((R1||U).memoizedState,Q))U.memoizedState=Q,e1=!0;U=U.queue;var w=lB.bind(null,Y,U,$);if(l5(2048,d5,w,[$]),U.getSnapshot!==Z||z||t1!==null&&t1.memoizedState.tag&u6){if(Y.flags|=2048,K9(u6|d5,{destroy:void 0},cB.bind(null,Y,U,Q,Z),null),_1===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");B||(H8&127)!==0||pB(Y,Z,Q)}return Q}function pB($,Z,Q){$.flags|=16384,$={getSnapshot:Z,value:Q},Z=A0.updateQueue,Z===null?(Z=EQ(),A0.updateQueue=Z,Z.stores=[$]):(Q=Z.stores,Q===null?Z.stores=[$]:Q.push($))}function cB($,Z,Q,Y){Z.value=Q,Z.getSnapshot=Y,rB(Z)&&sB($)}function lB($,Z,Q){return Q(function(){rB(Z)&&(z4(2,"updateSyncExternalStore()",$),sB($))})}function rB($){var Z=$.getSnapshot;$=$.value;try{var Q=Z();return!u5($,Q)}catch(Y){return!0}}function sB($){var Z=E5($,2);Z!==null&&y1(Z,$,2)}function XY($){var Z=f5();if(typeof $==="function"){var Q=$;if($=Q(),L7){P1(!0);try{Q()}finally{P1(!1)}}}return Z.memoizedState=Z.baseState=$,Z.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e6,lastRenderedState:$},Z}function NY($){$=XY($);var Z=$.queue,Q=HH.bind(null,A0,Z);return Z.dispatch=Q,[$.memoizedState,Q]}function UY($){var Z=f5();Z.memoizedState=Z.baseState=$;var Q={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return Z.queue=Q,Z=CY.bind(null,A0,!0,Q),Q.dispatch=Z,[$,Z]}function nB($,Z){var Q=B1();return oB(Q,R1,$,Z)}function oB($,Z,Q,Y){return $.baseState=Q,qY($,R1,typeof Y==="function"?Y:e6)}function aB($,Z){var Q=B1();if(R1!==null)return oB(Q,R1,$,Z);return Q.baseState=$,[$,Q.queue.dispatch]}function yP($,Z,Q,Y,U){if(hQ($))throw Error("Cannot update form state while rendering.");if($=Z.action,$!==null){var B={payload:U,action:$,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(z){B.listeners.push(z)}};x.T!==null?Q(!0):B.isTransition=!1,Y(B),Q=Z.pending,Q===null?(B.next=Z.pending=B,iB(Z,B)):(B.next=Q.next,Z.pending=Q.next=B)}}function iB($,Z){var{action:Q,payload:Y}=Z,U=$.state;if(Z.isTransition){var B=x.T,z={};z._updatedFibers=new Set,x.T=z;try{var w=Q(U,Y),L=x.S;L!==null&&L(z,w),tB($,Z,w)}catch(T){KY($,Z,T)}finally{B!==null&&z.types!==null&&(B.types!==null&&B.types!==z.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=z.types),x.T=B,B===null&&z._updatedFibers&&($=z._updatedFibers.size,z._updatedFibers.clear(),10<$&&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{z=Q(U,Y),tB($,Z,z)}catch(T){KY($,Z,T)}}function tB($,Z,Q){Q!==null&&typeof Q==="object"&&typeof Q.then==="function"?(x.asyncTransitions++,Q.then(gQ,gQ),Q.then(function(Y){eB($,Z,Y)},function(Y){return KY($,Z,Y)}),Z.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.")):eB($,Z,Q)}function eB($,Z,Q){Z.status="fulfilled",Z.value=Q,$H(Z),$.state=Q,Z=$.pending,Z!==null&&(Q=Z.next,Q===Z?$.pending=null:(Q=Q.next,Z.next=Q,iB($,Q)))}function KY($,Z,Q){var Y=$.pending;if($.pending=null,Y!==null){Y=Y.next;do Z.status="rejected",Z.reason=Q,$H(Z),Z=Z.next;while(Z!==Y)}$.action=null}function $H($){$=$.listeners;for(var Z=0;Z<$.length;Z++)(0,$[Z])()}function ZH($,Z){return Z}function U9($,Z){if(i0){var Q=_1.formState;if(Q!==null){$:{var Y=A0;if(i0){if(V1){Z:{var U=V1;for(var B=y6;U.nodeType!==8;){if(!B){U=null;break Z}if(U=w6(U.nextSibling),U===null){U=null;break Z}}B=U.data,U=B===mN||B===uM?U:null}if(U){V1=w6(U.nextSibling),Y=U.data===mN;break $}}g8(Y)}Y=!1}Y&&(Z=Q[0])}}return Q=f5(),Q.memoizedState=Q.baseState=Z,Y={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ZH,lastRenderedState:Z},Q.queue=Y,Q=HH.bind(null,A0,Y),Y.dispatch=Q,Y=XY(!1),B=CY.bind(null,A0,!1,Y.queue),Y=f5(),U={state:Z,dispatch:null,action:$,pending:null},Y.queue=U,Q=yP.bind(null,A0,U,B,Q),U.dispatch=Q,Y.memoizedState=$,[Z,Q,!1]}function DQ($){var Z=B1();return JH(Z,R1,$)}function JH($,Z,Q){if(Z=qY($,Z,ZH)[0],$=N9(e6)[0],typeof Z==="object"&&Z!==null&&typeof Z.then==="function")try{var Y=x$(Z)}catch(z){if(z===x9)throw vG;throw z}else Y=Z;Z=B1();var U=Z.queue,B=U.dispatch;return Q!==Z.memoizedState&&(A0.flags|=2048,K9(u6|d5,{destroy:void 0},gP.bind(null,U,Q),null)),[Y,B,$]}function gP($,Z){$.action=Z}function jQ($){var Z=B1(),Q=R1;if(Q!==null)return JH(Z,Q,$);B1(),Z=Z.memoizedState,Q=B1();var Y=Q.queue.dispatch;return Q.memoizedState=$,[Z,Y,!1]}function K9($,Z,Q,Y){return $={tag:$,create:Q,deps:Y,inst:Z,next:null},Z=A0.updateQueue,Z===null&&(Z=EQ(),A0.updateQueue=Z),Q=Z.lastEffect,Q===null?Z.lastEffect=$.next=$:(Y=Q.next,Q.next=$,$.next=Y,Z.lastEffect=$),$}function BY($){var Z=f5();return $={current:$},Z.memoizedState=$}function G7($,Z,Q,Y){var U=f5();A0.flags|=$,U.memoizedState=K9(u6|Z,{destroy:void 0},Q,Y===void 0?null:Y)}function l5($,Z,Q,Y){var U=B1();Y=Y===void 0?null:Y;var B=U.memoizedState.inst;R1!==null&&Y!==null&&tq(Y,R1.memoizedState.deps)?U.memoizedState=K9(Z,B,Q,Y):(A0.flags|=$,U.memoizedState=K9(u6|Z,B,Q,Y))}function kQ($,Z){(A0.mode&Q4)!==V0?G7(276826112,d5,$,Z):G7(8390656,d5,$,Z)}function hP($){A0.flags|=4;var Z=A0.updateQueue;if(Z===null)Z=EQ(),A0.updateQueue=Z,Z.events=[$];else{var Q=Z.events;Q===null?Z.events=[$]:Q.push($)}}function HY($){var Z=f5(),Q={impl:$};return Z.memoizedState=Q,function(){if((Z1&Y5)!==W5)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return Q.impl.apply(void 0,arguments)}}function vQ($){var Z=B1().memoizedState;return hP({ref:Z,nextImpl:$}),function(){if((Z1&Y5)!==W5)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return Z.impl.apply(void 0,arguments)}}function FY($,Z){var Q=4194308;return(A0.mode&Q4)!==V0&&(Q|=134217728),G7(Q,C6,$,Z)}function QH($,Z){if(typeof Z==="function"){$=$();var Q=Z($);return function(){typeof Q==="function"?Q():Z(null)}}if(Z!==null&&Z!==void 0)return Z.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(Z).join(", ")+"}"),$=$(),Z.current=$,function(){Z.current=null}}function WY($,Z,Q){typeof Z!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",Z!==null?typeof Z:"null"),Q=Q!==null&&Q!==void 0?Q.concat([$]):null;var Y=4194308;(A0.mode&Q4)!==V0&&(Y|=134217728),G7(Y,C6,QH.bind(null,Z,$),Q)}function bQ($,Z,Q){typeof Z!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",Z!==null?typeof Z:"null"),Q=Q!==null&&Q!==void 0?Q.concat([$]):null,l5(4,C6,QH.bind(null,Z,$),Q)}function zY($,Z){return f5().memoizedState=[$,Z===void 0?null:Z],$}function fQ($,Z){var Q=B1();Z=Z===void 0?null:Z;var Y=Q.memoizedState;if(Z!==null&&tq(Z,Y[1]))return Y[0];return Q.memoizedState=[$,Z],$}function MY($,Z){var Q=f5();Z=Z===void 0?null:Z;var Y=$();if(L7){P1(!0);try{$()}finally{P1(!1)}}return Q.memoizedState=[Y,Z],Y}function yQ($,Z){var Q=B1();Z=Z===void 0?null:Z;var Y=Q.memoizedState;if(Z!==null&&tq(Z,Y[1]))return Y[0];if(Y=$(),L7){P1(!0);try{$()}finally{P1(!1)}}return Q.memoizedState=[Y,Z],Y}function wY($,Z){var Q=f5();return RY(Q,$,Z)}function GH($,Z){var Q=B1();return YH(Q,R1.memoizedState,$,Z)}function qH($,Z){var Q=B1();return R1===null?RY(Q,$,Z):YH(Q,R1.memoizedState,$,Z)}function RY($,Z,Q){if(Q===void 0||(H8&1073741824)!==0&&(u0&261930)===0)return $.memoizedState=Z;return $.memoizedState=Q,$=XF(),A0.lanes|=$,B2|=$,Q}function YH($,Z,Q,Y){if(u5(Q,Z))return Q;if(d9.current!==null)return $=RY($,Q,Y),u5($,Z)||(e1=!0),$;if((H8&42)===0||(H8&1073741824)!==0&&(u0&261930)===0)return e1=!0,$.memoizedState=Q;return $=XF(),A0.lanes|=$,B2|=$,Z}function gQ(){x.asyncTransitions--}function XH($,Z,Q,Y,U){var B=U1.p;U1.p=B!==0&&B<J4?B:J4;var z=x.T,w={};w._updatedFibers=new Set,x.T=w,CY($,!1,Z,Q);try{var L=U(),T=x.S;if(T!==null&&T(w,L),L!==null&&typeof L==="object"&&typeof L.then==="function"){x.asyncTransitions++,L.then(gQ,gQ);var b=vP(L,Y);d$($,Z,b,M6($))}else d$($,Z,Y,M6($))}catch(f){d$($,Z,{then:function(){},status:"rejected",reason:f},M6($))}finally{U1.p=B,z!==null&&w.types!==null&&(z.types!==null&&z.types!==w.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=w.types),x.T=z,z===null&&w._updatedFibers&&($=w._updatedFibers.size,w._updatedFibers.clear(),10<$&&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 _Y($,Z,Q,Y){if($.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var U=NH($).queue;jP($),XH($,U,Z,j7,Q===null?M:function(){return UH($),Q(Y)})}function NH($){var Z=$.memoizedState;if(Z!==null)return Z;Z={memoizedState:j7,baseState:j7,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:e6,lastRenderedState:j7},next:null};var Q={};return Z.next={memoizedState:Q,baseState:Q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:e6,lastRenderedState:Q},next:null},$.memoizedState=Z,$=$.alternate,$!==null&&($.memoizedState=Z),Z}function UH($){x.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var Z=NH($);Z.next===null&&(Z=$.alternate.memoizedState),d$($,Z.next.queue,{},M6($))}function LY(){var $=XY(!1);return $=XH.bind(null,A0,$.queue,!0,!1),f5().memoizedState=$,[!1,$]}function KH(){var $=N9(e6)[0],Z=B1().memoizedState;return[typeof $==="boolean"?$:x$($),Z]}function BH(){var $=m$(e6)[0],Z=B1().memoizedState;return[typeof $==="boolean"?$:x$($),Z]}function q7(){return D1(iZ)}function PY(){var $=f5(),Z=_1.identifierPrefix;if(i0){var Q=X8,Y=Y8;Q=(Y&~(1<<32-y5(Y)-1)).toString(32)+Q,Z="_"+Z+"R_"+Q,Q=hG++,0<Q&&(Z+="H"+Q.toString(32)),Z+="_"}else Q=wO++,Z="_"+Z+"r_"+Q.toString(32)+"_";return $.memoizedState=Z}function TY(){return f5().memoizedState=uP.bind(null,A0)}function uP($,Z){for(var Q=$.return;Q!==null;){switch(Q.tag){case 24:case 3:var Y=M6(Q),U=x8(Y),B=m8(Q,U,Y);B!==null&&(z4(Y,"refresh()",$),y1(B,Q,Y),g$(B,Q,Y)),$=dq(),Z!==null&&Z!==void 0&&B!==null&&console.error("The seed argument is not enabled outside experimental channels."),U.payload={cache:$};return}Q=Q.return}}function xP($,Z,Q){var Y=arguments;typeof Y[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()."),Y=M6($);var U={lane:Y,revertLane:0,gesture:null,action:Q,hasEagerState:!1,eagerState:null,next:null};hQ($)?FH(Z,U):(U=Dq($,Z,U,Y),U!==null&&(z4(Y,"dispatch()",$),y1(U,$,Y),WH(U,Z,Y)))}function HH($,Z,Q){var Y=arguments;typeof Y[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()."),Y=M6($),d$($,Z,Q,Y)&&z4(Y,"setState()",$)}function d$($,Z,Q,Y){var U={lane:Y,revertLane:0,gesture:null,action:Q,hasEagerState:!1,eagerState:null,next:null};if(hQ($))FH(Z,U);else{var B=$.alternate;if($.lanes===0&&(B===null||B.lanes===0)&&(B=Z.lastRenderedReducer,B!==null)){var z=x.H;x.H=q4;try{var w=Z.lastRenderedState,L=B(w,Q);if(U.hasEagerState=!0,U.eagerState=L,u5(L,w))return KQ($,Z,U,0),_1===null&&UQ(),!1}catch(T){}finally{x.H=z}}if(Q=Dq($,Z,U,Y),Q!==null)return y1(Q,$,Y),WH(Q,Z,Y),!0}return!1}function CY($,Z,Q,Y){if(x.T===null&&z7===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."),Y={lane:2,revertLane:eY(),gesture:null,action:Y,hasEagerState:!1,eagerState:null,next:null},hQ($)){if(Z)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else Z=Dq($,Q,Y,2),Z!==null&&(z4(2,"setOptimistic()",$),y1(Z,$,2))}function hQ($){var Z=$.alternate;return $===A0||Z!==null&&Z===A0}function FH($,Z){l9=gG=!0;var Q=$.pending;Q===null?Z.next=Z:(Z.next=Q.next,Q.next=Z),$.pending=Z}function WH($,Z,Q){if((Q&4194048)!==0){var Y=Z.lanes;Y&=$.pendingLanes,Q|=Y,Z.lanes=Q,l2($,Q)}}function OY($){if($!==null&&typeof $!=="function"){var Z=String($);BM.has(Z)||(BM.add(Z),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",$))}}function IY($,Z,Q,Y){var U=$.memoizedState,B=Q(Y,U);if($.mode&D5){P1(!0);try{B=Q(Y,U)}finally{P1(!1)}}B===void 0&&(Z=i(Z)||"Component",XM.has(Z)||(XM.add(Z),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",Z))),U=B===null||B===void 0?U:l0({},U,B),$.memoizedState=U,$.lanes===0&&($.updateQueue.baseState=U)}function zH($,Z,Q,Y,U,B,z){var w=$.stateNode;if(typeof w.shouldComponentUpdate==="function"){if(Q=w.shouldComponentUpdate(Y,B,z),$.mode&D5){P1(!0);try{Q=w.shouldComponentUpdate(Y,B,z)}finally{P1(!1)}}return Q===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",i(Z)||"Component"),Q}return Z.prototype&&Z.prototype.isPureReactComponent?!D$(Q,Y)||!D$(U,B):!0}function MH($,Z,Q,Y){var U=Z.state;typeof Z.componentWillReceiveProps==="function"&&Z.componentWillReceiveProps(Q,Y),typeof Z.UNSAFE_componentWillReceiveProps==="function"&&Z.UNSAFE_componentWillReceiveProps(Q,Y),Z.state!==U&&($=d($)||"Component",JM.has($)||(JM.add($),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",$)),_N.enqueueReplaceState(Z,Z.state,null))}function Y7($,Z){var Q=Z;if("ref"in Z){Q={};for(var Y in Z)Y!=="ref"&&(Q[Y]=Z[Y])}if($=$.defaultProps){Q===Z&&(Q=l0({},Q));for(var U in $)Q[U]===void 0&&(Q[U]=$[U])}return Q}function wH($){aX($),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
|
+
`,r9?"An error occurred in the <"+r9+"> 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 RH($){var Z=r9?"The above error occurred in the <"+r9+"> component.":"The above error occurred in one of your React components.",Q="React will try to recreate this component tree from scratch using the error boundary you provided, "+((LN||"Anonymous")+".");if(typeof $==="object"&&$!==null&&typeof $.environmentName==="string"){var Y=$.environmentName;$=[`%o
|
|
120
120
|
|
|
121
121
|
%s
|
|
122
122
|
|
|
123
123
|
%s
|
|
124
|
-
`,$,Z,
|
|
124
|
+
`,$,Z,Q].slice(0),typeof $[0]==="string"?$.splice(0,1,sM+" "+$[0],nM,U3+Y+U3,oM):$.splice(0,0,sM,nM,U3+Y+U3,oM),$.unshift(console),Y=hO.apply(console.error,$),Y()}else console.error(`%o
|
|
125
125
|
|
|
126
126
|
%s
|
|
127
127
|
|
|
128
128
|
%s
|
|
129
|
-
`,$,Z,
|
|
129
|
+
`,$,Z,Q)}function _H($){aX($)}function uQ($,Z){try{r9=Z.source?d(Z.source):null,LN=null;var Q=Z.value;if(x.actQueue!==null)x.thrownErrors.push(Q);else{var Y=$.onUncaughtError;Y(Q,{componentStack:Z.stack})}}catch(U){setTimeout(function(){throw U})}}function LH($,Z,Q){try{r9=Q.source?d(Q.source):null,LN=d(Z);var Y=$.onCaughtError;Y(Q.value,{componentStack:Q.stack,errorBoundary:Z.tag===1?Z.stateNode:null})}catch(U){setTimeout(function(){throw U})}}function VY($,Z,Q){return Q=x8(Q),Q.tag=FN,Q.payload={element:null},Q.callback=function(){q0(Z.source,uQ,$,Z)},Q}function AY($){return $=x8($),$.tag=FN,$}function EY($,Z,Q,Y){var U=Q.type.getDerivedStateFromError;if(typeof U==="function"){var B=Y.value;$.payload=function(){return U(B)},$.callback=function(){FB(Q),q0(Y.source,LH,Z,Q,Y)}}var z=Q.stateNode;z!==null&&typeof z.componentDidCatch==="function"&&($.callback=function(){FB(Q),q0(Y.source,LH,Z,Q,Y),typeof U!=="function"&&(F2===null?F2=new Set([this]):F2.add(this)),FO(this,Y),typeof U==="function"||(Q.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.",d(Q)||"Unknown")})}function mP($,Z,Q,Y,U){if(Q.flags|=32768,k4&&a$($,U),Y!==null&&typeof Y==="object"&&typeof Y.then==="function"){if(Z=Q.alternate,Z!==null&&Y9(Z,Q,U,!0),i0&&(f4=!0),Q=T6.current,Q!==null){switch(Q.tag){case 31:case 13:return h6===null?nQ():Q.alternate===null&&v1===M8&&(v1=mG),Q.flags&=-257,Q.flags|=65536,Q.lanes=U,Y===bG?Q.flags|=16384:(Z=Q.updateQueue,Z===null?Q.updateQueue=new Set([Y]):Z.add(Y),oY($,Y,U)),!1;case 22:return Q.flags|=65536,Y===bG?Q.flags|=16384:(Z=Q.updateQueue,Z===null?(Z={transitions:null,markerInstances:null,retryQueue:new Set([Y])},Q.updateQueue=Z):(Q=Z.retryQueue,Q===null?Z.retryQueue=new Set([Y]):Q.add(Y)),oY($,Y,U)),!1}throw Error("Unexpected Suspense handler tag ("+Q.tag+"). This is a bug in React.")}return oY($,Y,U),nQ(),!1}if(i0)return f4=!0,Z=T6.current,Z!==null?((Z.flags&65536)===0&&(Z.flags|=256),Z.flags|=65536,Z.lanes=U,Y!==JN&&k$(H6(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:Y}),Q))):(Y!==JN&&k$(H6(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:Y}),Q)),$=$.current.alternate,$.flags|=65536,U&=-U,$.lanes|=U,Y=H6(Y,Q),U=VY($.stateNode,Y,U),IQ($,U),v1!==U2&&(v1=P7)),!1;var B=H6(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:Y}),Q);if(dZ===null?dZ=[B]:dZ.push(B),v1!==U2&&(v1=P7),Z===null)return!0;Y=H6(Y,Q),Q=Z;do{switch(Q.tag){case 3:return Q.flags|=65536,$=U&-U,Q.lanes|=$,$=VY(Q.stateNode,Y,$),IQ(Q,$),!1;case 1:if(Z=Q.type,B=Q.stateNode,(Q.flags&128)===0&&(typeof Z.getDerivedStateFromError==="function"||B!==null&&typeof B.componentDidCatch==="function"&&(F2===null||!F2.has(B))))return Q.flags|=65536,U&=-U,Q.lanes|=U,U=AY(U),EY(U,$,Q,Y),IQ(Q,U),!1}Q=Q.return}while(Q!==null);return!1}function w5($,Z,Q,Y){Z.child=$===null?lz(Z,null,Q,Y):_7(Z,$.child,Q,Y)}function PH($,Z,Q,Y,U){Q=Q.render;var B=Z.ref;if("ref"in Y){var z={};for(var w in Y)w!=="ref"&&(z[w]=Y[w])}else z=Y;if(Z7(Z),Y=eq($,Z,Q,z,B,U),w=ZY(),$!==null&&!e1)return JY($,Z,U),$8($,Z,U);return i0&&w&&yq(Z),Z.flags|=1,w5($,Z,Y,U),Z.child}function TH($,Z,Q,Y,U){if($===null){var B=Q.type;if(typeof B==="function"&&!kq(B)&&B.defaultProps===void 0&&Q.compare===null)return Q=i2(B),Z.tag=15,Z.type=Q,DY(Z,B),CH($,Z,Q,Y,U);return $=vq(Q.type,null,Y,Z,Z.mode,U),$.ref=Z.ref,$.return=Z,Z.child=$}if(B=$.child,!yY($,U)){var z=B.memoizedProps;if(Q=Q.compare,Q=Q!==null?Q:D$,Q(z,Y)&&$.ref===Z.ref)return $8($,Z,U)}return Z.flags|=1,$=a4(B,Y),$.ref=Z.ref,$.return=Z,Z.child=$}function CH($,Z,Q,Y,U){if($!==null){var B=$.memoizedProps;if(D$(B,Y)&&$.ref===Z.ref&&Z.type===$.type)if(e1=!1,Z.pendingProps=Y=B,yY($,U))($.flags&131072)!==0&&(e1=!0);else return Z.lanes=$.lanes,$8($,Z,U)}return SY($,Z,Q,Y,U)}function OH($,Z,Q,Y){var U=Y.children,B=$!==null?$.memoizedState:null;if($===null&&Z.stateNode===null&&(Z.stateNode={_visibility:wZ,_pendingMarkers:null,_retryCache:null,_transitions:null}),Y.mode==="hidden"){if((Z.flags&128)!==0){if(B=B!==null?B.baseLanes|Q:Q,$!==null){Y=Z.child=$.child;for(U=0;Y!==null;)U=U|Y.lanes|Y.childLanes,Y=Y.sibling;Y=U&~B}else Y=0,Z.child=null;return IH($,Z,B,Q,Y)}if((Q&536870912)!==0)Z.memoizedState={baseLanes:0,cachePool:null},$!==null&&_Q(Z,B!==null?B.cachePool:null),B!==null?xB(Z,B):oq(Z),mB(Z);else return Y=Z.lanes=536870912,IH($,Z,B!==null?B.baseLanes|Q:Q,Q,Y)}else B!==null?(_Q(Z,B.cachePool),xB(Z,B),p8(Z),Z.memoizedState=null):($!==null&&_Q(Z,null),oq(Z),p8(Z));return w5($,Z,U,Q),Z.child}function p$($,Z){return $!==null&&$.tag===22||Z.stateNode!==null||(Z.stateNode={_visibility:wZ,_pendingMarkers:null,_retryCache:null,_transitions:null}),Z.sibling}function IH($,Z,Q,Y,U){var B=lq();return B=B===null?null:{parent:a1._currentValue,pool:B},Z.memoizedState={baseLanes:Q,cachePool:B},$!==null&&_Q(Z,null),oq(Z),mB(Z),$!==null&&Y9($,Z,Y,!0),Z.childLanes=U,null}function xQ($,Z){var Q=Z.hidden;return Q!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
|
|
130
130
|
- <Activity %s>
|
|
131
|
-
+ <Activity %s>`,
|
|
131
|
+
+ <Activity %s>`,Q===!0?"hidden":Q===!1?"hidden={false}":"hidden={...}",Q?'mode="hidden"':'mode="visible"'),Z=dQ({mode:Z.mode,children:Z.children},$.mode),Z.ref=$.ref,$.child=Z,Z.return=$,Z}function VH($,Z,Q){return _7(Z,$.child,null,Q),$=xQ(Z,Z.pendingProps),$.flags|=2,z6(Z),Z.memoizedState=null,$}function dP($,Z,Q){var Y=Z.pendingProps,U=(Z.flags&128)!==0;if(Z.flags&=-129,$===null){if(i0){if(Y.mode==="hidden")return $=xQ(Z,Y),Z.lanes=536870912,p$(null,$);if(iq(Z),($=V1)?(Q=iF($,y6),Q=Q!==null&&Q.data===A7?Q:null,Q!==null&&(Y={dehydrated:Q,treeContext:RB(),retryLane:536870912,hydrationErrors:null},Z.memoizedState=Y,Y=MB(Q),Y.return=Z,Z.child=Y,L5=Z,V1=null)):Q=null,Q===null)throw FQ(Z,$),g8(Z);return Z.lanes=536870912,null}return xQ(Z,Y)}var B=$.memoizedState;if(B!==null){var z=B.dehydrated;if(iq(Z),U)if(Z.flags&256)Z.flags&=-257,Z=VH($,Z,Q);else if(Z.memoizedState!==null)Z.child=$.child,Z.flags|=128,Z=null;else throw Error("Client rendering an Activity suspended it again. This is a bug in React.");else if(LB(),(Q&536870912)!==0&&sQ(Z),e1||Y9($,Z,Q,!1),U=(Q&$.childLanes)!==0,e1||U){if(Y=_1,Y!==null&&(z=r2(Y,Q),z!==0&&z!==B.retryLane))throw B.retryLane=z,E5($,z),y1(Y,$,z),PN;nQ(),Z=VH($,Z,Q)}else $=B.treeContext,V1=w6(z.nextSibling),L5=Z,i0=!0,J2=null,f4=!1,P6=null,y6=!1,$!==null&&_B(Z,$),Z=xQ(Z,Y),Z.flags|=4096;return Z}return B=$.child,Y={mode:Y.mode,children:Y.children},(Q&536870912)!==0&&(Q&$.lanes)!==0&&sQ(Z),$=a4(B,Y),$.ref=Z.ref,Z.child=$,$.return=Z,$}function mQ($,Z){var Q=Z.ref;if(Q===null)$!==null&&$.ref!==null&&(Z.flags|=4194816);else{if(typeof Q!=="function"&&typeof Q!=="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");if($===null||$.ref!==Q)Z.flags|=4194816}}function SY($,Z,Q,Y,U){if(Q.prototype&&typeof Q.prototype.render==="function"){var B=i(Q)||"Unknown";HM[B]||(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.",B,B),HM[B]=!0)}if(Z.mode&D5&&G4.recordLegacyContextWarning(Z,null),$===null&&(DY(Z,Z.type),Q.contextTypes&&(B=i(Q)||"Unknown",WM[B]||(WM[B]=!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)",B)))),Z7(Z),Q=eq($,Z,Q,Y,void 0,U),Y=ZY(),$!==null&&!e1)return JY($,Z,U),$8($,Z,U);return i0&&Y&&yq(Z),Z.flags|=1,w5($,Z,Q,U),Z.child}function AH($,Z,Q,Y,U,B){if(Z7(Z),W8=-1,fZ=$!==null&&$.type!==Z.type,Z.updateQueue=null,Q=$Y(Z,Y,Q,U),dB($,Z),Y=ZY(),$!==null&&!e1)return JY($,Z,B),$8($,Z,B);return i0&&Y&&yq(Z),Z.flags|=1,w5($,Z,Q,B),Z.child}function EH($,Z,Q,Y,U){switch(H(Z)){case!1:var B=Z.stateNode,z=new Z.type(Z.memoizedProps,B.context).state;B.updater.enqueueSetState(B,z,null);break;case!0:Z.flags|=128,Z.flags|=65536,B=Error("Simulated error coming from DevTools");var w=U&-U;if(Z.lanes|=w,z=_1,z===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");w=AY(w),EY(w,z,Z,H6(B,Z)),IQ(Z,w)}if(Z7(Z),Z.stateNode===null){if(z=Z2,B=Q.contextType,"contextType"in Q&&B!==null&&(B===void 0||B.$$typeof!==S4)&&!KM.has(Q)&&(KM.add(Q),w=B===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 B!=="object"?" However, it is set to a "+typeof B+".":B.$$typeof===TX?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(B).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",i(Q)||"Component",w)),typeof B==="object"&&B!==null&&(z=D1(B)),B=new Q(Y,z),Z.mode&D5){P1(!0);try{B=new Q(Y,z)}finally{P1(!1)}}if(z=Z.memoizedState=B.state!==null&&B.state!==void 0?B.state:null,B.updater=_N,Z.stateNode=B,B._reactInternals=Z,B._reactInternalInstance=ZM,typeof Q.getDerivedStateFromProps==="function"&&z===null&&(z=i(Q)||"Component",QM.has(z)||(QM.add(z),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.",z,B.state===null?"null":"undefined",z))),typeof Q.getDerivedStateFromProps==="function"||typeof B.getSnapshotBeforeUpdate==="function"){var L=w=z=null;if(typeof B.componentWillMount==="function"&&B.componentWillMount.__suppressDeprecationWarning!==!0?z="componentWillMount":typeof B.UNSAFE_componentWillMount==="function"&&(z="UNSAFE_componentWillMount"),typeof B.componentWillReceiveProps==="function"&&B.componentWillReceiveProps.__suppressDeprecationWarning!==!0?w="componentWillReceiveProps":typeof B.UNSAFE_componentWillReceiveProps==="function"&&(w="UNSAFE_componentWillReceiveProps"),typeof B.componentWillUpdate==="function"&&B.componentWillUpdate.__suppressDeprecationWarning!==!0?L="componentWillUpdate":typeof B.UNSAFE_componentWillUpdate==="function"&&(L="UNSAFE_componentWillUpdate"),z!==null||w!==null||L!==null){B=i(Q)||"Component";var T=typeof Q.getDerivedStateFromProps==="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";qM.has(B)||(qM.add(B),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`,B,T,
|
|
137
|
-
`+
|
|
138
|
-
`+
|
|
139
|
-
`+L:""))}}B=Z.stateNode,
|
|
140
|
-
%s.childContextTypes = ...`,Z.displayName||Z.name||"Component"),typeof Z.getDerivedStateFromProps==="function"&&($=i(Z)||"Unknown",gw[$]||(console.error("%s: Function components do not support getDerivedStateFromProps.",$),gw[$]=!0)),typeof Z.contextType==="object"&&Z.contextType!==null&&(Z=i(Z)||"Unknown",fw[Z]||(console.error("%s: Function components do not support contextType.",Z),fw[Z]=!0))}function oq($){return{baseLanes:$,cachePool:oB()}}function aq($,Z,G){return $=$!==null?$.childLanes&~G:0,Z&&($|=e5),$}function tH($,Z,G){var Y,U=Z.pendingProps;K(Z)&&(Z.flags|=128);var B=!1,W=(Z.flags&128)!==0;if((Y=W)||(Y=$!==null&&$.memoizedState===null?!1:(r1.current&lZ)!==0),Y&&(B=!0,Z.flags&=-129),Y=(Z.flags&32)!==0,Z.flags&=-33,$===null){if(i0){if(B?s8(Z):o8(Z),($=E1)?(G=_M($,u6),G=G!==null&&G.data!==v9?G:null,G!==null&&(Y={dehydrated:G,treeContext:xB(),retryLane:536870912,hydrationErrors:null},Z.memoizedState=Y,Y=hB(G),Y.return=Z,Z.child=Y,T5=Z,E1=null)):G=null,G===null)throw AJ(Z,$),p8(Z);return SY(G)?Z.lanes=32:Z.lanes=536870912,null}var z=U.children;if(U=U.fallback,B){o8(Z);var L=Z.mode;return z=QG({mode:"hidden",children:z},L),U=J9(U,L,G,null),z.return=Z,U.return=Z,z.sibling=U,Z.child=z,U=Z.child,U.memoizedState=oq(G),U.childLanes=aq($,Y,G),Z.memoizedState=xN,ZZ(null,U)}return s8(Z),iq(Z,z)}var T=$.memoizedState;if(T!==null){var k=T.dehydrated;if(k!==null){if(W)Z.flags&256?(s8(Z),Z.flags&=-257,Z=tq($,Z,G)):Z.memoizedState!==null?(o8(Z),Z.child=$.child,Z.flags|=128,Z=null):(o8(Z),z=U.fallback,L=Z.mode,U=QG({mode:"visible",children:U.children},L),z=J9(z,L,G,null),z.flags|=2,U.return=Z,z.return=Z,U.sibling=z,Z.child=U,I9(Z,$.child,null,G),U=Z.child,U.memoizedState=oq(G),U.childLanes=aq($,Y,G),Z.memoizedState=xN,Z=ZZ(null,U));else if(s8(Z),dB(),(G&536870912)!==0&&YG(Z),SY(k)){if(Y=k.nextSibling&&k.nextSibling.dataset,Y){z=Y.dgst;var f=Y.msg;L=Y.stck;var S=Y.cstck}B=f,Y=z,U=L,k=S,z=B,L=k,z=z?Error(z):Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),z.stack=U||"",z.digest=Y,Y=L===void 0?null:L,U={value:z,source:null,stack:Y},typeof Y==="string"&&_N.set(z,U),c$(U),Z=tq($,Z,G)}else if(Z5||F7($,Z,G,!1),Y=(G&$.childLanes)!==0,Z5||Y){if(Y=P1,Y!==null&&(U=i2(Y,G),U!==0&&U!==T.retryLane))throw T.retryLane=U,j5($,U),h1(Y,$,U),uN;EY(k)||NG(),Z=tq($,Z,G)}else EY(k)?(Z.flags|=192,Z.child=$.child,Z=null):($=T.treeContext,E1=L6(k.nextSibling),T5=Z,i0=!0,N2=null,h4=!1,I6=null,u6=!1,$!==null&&mB(Z,$),Z=iq(Z,U.children),Z.flags|=4096);return Z}}if(B)return o8(Z),z=U.fallback,L=Z.mode,S=$.child,k=S.sibling,U=$8(S,{mode:"hidden",children:U.children}),U.subtreeFlags=S.subtreeFlags&65011712,k!==null?z=$8(k,z):(z=J9(z,L,G,null),z.flags|=2),z.return=Z,U.return=Z,U.sibling=z,Z.child=U,ZZ(null,U),U=Z.child,z=$.child.memoizedState,z===null?z=oq(G):(L=z.cachePool,L!==null?(S=t1._currentValue,L=L.parent!==S?{parent:S,pool:S}:L):L=oB(),z={baseLanes:z.baseLanes|G,cachePool:L}),U.memoizedState=z,U.childLanes=aq($,Y,G),Z.memoizedState=xN,ZZ($.child,U);return T!==null&&(G&62914560)===G&&(G&$.lanes)!==0&&YG(Z),s8(Z),G=$.child,$=G.sibling,G=$8(G,{mode:"visible",children:U.children}),G.return=Z,G.sibling=null,$!==null&&(Y=Z.deletions,Y===null?(Z.deletions=[$],Z.flags|=16):Y.push($)),Z.child=G,Z.memoizedState=null,G}function iq($,Z){return Z=QG({mode:"visible",children:Z},$.mode),Z.return=$,$.child=Z}function QG($,Z){return $=P(22,$,null,Z),$.lanes=0,$}function tq($,Z,G){return I9(Z,$.child,null,G),$=iq(Z,Z.pendingProps.children),$.flags|=2,Z.memoizedState=null,$}function eH($,Z,G){$.lanes|=Z;var Y=$.alternate;Y!==null&&(Y.lanes|=Z),Gq($.return,Z,G)}function eq($,Z,G,Y,U,B){var W=$.memoizedState;W===null?$.memoizedState={isBackwards:Z,rendering:null,renderingStartTime:0,last:Y,tail:G,tailMode:U,treeForkCount:B}:(W.isBackwards=Z,W.rendering=null,W.renderingStartTime=0,W.last=Y,W.tail=G,W.tailMode=U,W.treeForkCount=B)}function $F($,Z,G){var Y=Z.pendingProps,U=Y.revealOrder,B=Y.tail,W=Y.children,z=r1.current;if((Y=(z&lZ)!==0)?(z=z&a7|lZ,Z.flags|=128):z&=a7,I0(r1,z,Z),z=U==null?"null":U,U!=="forwards"&&U!=="unstable_legacy-backwards"&&U!=="together"&&U!=="independent"&&!hw[z])if(hw[z]=!0,U==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(U==="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 U==="string")switch(U.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.',U,U.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.',U,U.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',U)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',U);if(z=B==null?"null":B,!$3[z])if(B==null){if(U==="forwards"||U==="backwards"||U==="unstable_legacy-backwards")$3[z]=!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 B!=="visible"&&B!=="collapsed"&&B!=="hidden"?($3[z]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',B)):U!=="forwards"&&U!=="backwards"&&U!=="unstable_legacy-backwards"&&($3[z]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',B));$:if((U==="forwards"||U==="backwards"||U==="unstable_legacy-backwards")&&W!==void 0&&W!==null&&W!==!1)if(q5(W)){for(z=0;z<W.length;z++)if(!XH(W[z],z))break $}else if(z=t(W),typeof z==="function"){if(z=z.call(W))for(var L=z.next(),T=0;!L.done;L=z.next()){if(!XH(L.value,T))break $;T++}}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?',U);if(_5($,Z,W,G),i0?(d8(),W=jZ):W=0,!Y&&$!==null&&($.flags&128)!==0)$:for($=Z.child;$!==null;){if($.tag===13)$.memoizedState!==null&&eH($,G,Z);else if($.tag===19)eH($,G,Z);else if($.child!==null){$.child.return=$,$=$.child;continue}if($===Z)break $;for(;$.sibling===null;){if($.return===null||$.return===Z)break $;$=$.return}$.sibling.return=$.return,$=$.sibling}switch(U){case"forwards":G=Z.child;for(U=null;G!==null;)$=G.alternate,$!==null&&xJ($)===null&&(U=G),G=G.sibling;G=U,G===null?(U=Z.child,Z.child=null):(U=G.sibling,G.sibling=null),eq(Z,!1,U,G,B,W);break;case"backwards":case"unstable_legacy-backwards":G=null,U=Z.child;for(Z.child=null;U!==null;){if($=U.alternate,$!==null&&xJ($)===null){Z.child=U;break}$=U.sibling,U.sibling=G,G=U,U=$}eq(Z,!0,G,null,B,W);break;case"together":eq(Z,!1,null,null,void 0,W);break;default:Z.memoizedState=null}return Z.child}function G8($,Z,G){if($!==null&&(Z.dependencies=$.dependencies),p5=-1,R2|=Z.lanes,(G&Z.childLanes)===0)if($!==null){if(F7($,Z,G,!1),(G&Z.childLanes)===0)return null}else return null;if($!==null&&Z.child!==$.child)throw Error("Resuming work not yet implemented.");if(Z.child!==null){$=Z.child,G=$8($,$.pendingProps),Z.child=G;for(G.return=Z;$.sibling!==null;)$=$.sibling,G=G.sibling=$8($,$.pendingProps),G.return=Z;G.sibling=null}return Z.child}function $Y($,Z){if(($.lanes&Z)!==0)return!0;return $=$.dependencies,$!==null&&SJ($)?!0:!1}function mT($,Z,G){switch(Z.tag){case 3:l(Z,Z.stateNode.containerInfo),c8(Z,t1,$.memoizedState.cache),X9();break;case 27:case 5:a0(Z);break;case 4:l(Z,Z.stateNode.containerInfo);break;case 10:c8(Z,Z.type,Z.memoizedProps.value);break;case 12:(G&Z.childLanes)!==0&&(Z.flags|=4),Z.flags|=2048;var Y=Z.stateNode;Y.effectDuration=-0,Y.passiveEffectDuration=-0;break;case 31:if(Z.memoizedState!==null)return Z.flags|=128,Wq(Z),null;break;case 13:if(Y=Z.memoizedState,Y!==null){if(Y.dehydrated!==null)return s8(Z),Z.flags|=128,null;if((G&Z.child.childLanes)!==0)return tH($,Z,G);return s8(Z),$=G8($,Z,G),$!==null?$.sibling:null}s8(Z);break;case 19:var U=($.flags&128)!==0;if(Y=(G&Z.childLanes)!==0,Y||(F7($,Z,G,!1),Y=(G&Z.childLanes)!==0),U){if(Y)return $F($,Z,G);Z.flags|=128}if(U=Z.memoizedState,U!==null&&(U.rendering=null,U.tail=null,U.lastEffect=null),I0(r1,r1.current,Z),Y)break;else return null;case 22:return Z.lanes=0,rH($,Z,G,Z.pendingProps);case 24:c8(Z,t1,$.memoizedState.cache)}return G8($,Z,G)}function ZY($,Z,G){if(Z._debugNeedsRemount&&$!==null){G=iX(Z.type,Z.key,Z.pendingProps,Z._debugOwner||null,Z.mode,Z.lanes),G._debugStack=Z._debugStack,G._debugTask=Z._debugTask;var Y=Z.return;if(Y===null)throw Error("Cannot swap the root fiber.");if($.alternate=null,Z.alternate=null,G.index=Z.index,G.sibling=Z.sibling,G.return=Z.return,G.ref=Z.ref,G._debugInfo=Z._debugInfo,Z===Y.child)Y.child=G;else{var U=Y.child;if(U===null)throw Error("Expected parent to have a child.");for(;U.sibling!==Z;)if(U=U.sibling,U===null)throw Error("Expected to find the previous sibling.");U.sibling=G}return Z=Y.deletions,Z===null?(Y.deletions=[$],Y.flags|=16):Z.push($),G.flags|=2,G}if($!==null)if($.memoizedProps!==Z.pendingProps||Z.type!==$.type)Z5=!0;else{if(!$Y($,G)&&(Z.flags&128)===0)return Z5=!1,mT($,Z,G);Z5=($.flags&131072)!==0?!0:!1}else{if(Z5=!1,Y=i0)d8(),Y=(Z.flags&1048576)!==0;Y&&(Y=Z.index,d8(),uB(Z,jZ,Y))}switch(Z.lanes=0,Z.tag){case 16:$:if(Y=Z.pendingProps,$=l8(Z.elementType),Z.type=$,typeof $==="function")aX($)?(Y=B9($,Y),Z.tag=1,Z.type=$=Q9($),Z=aH(null,Z,$,Y,G)):(Z.tag=0,sq(Z,$),Z.type=$=Q9($),Z=nq(null,Z,$,Y,G));else{if($!==void 0&&$!==null){if(U=$.$$typeof,U===RZ){Z.tag=11,Z.type=$=oX($),Z=pH(null,Z,$,Y,G);break $}else if(U===TG){Z.tag=14,Z=cH(null,Z,$,Y,G);break $}}throw Z="",$!==null&&typeof $==="object"&&$.$$typeof===P6&&(Z=" Did you wrap a component in React.lazy() more than once?"),G=i($)||$,Error("Element type is invalid. Received a promise that resolves to: "+G+". Lazy element type must resolve to a class or function."+Z)}return Z;case 0:return nq($,Z,Z.type,Z.pendingProps,G);case 1:return Y=Z.type,U=B9(Y,Z.pendingProps),aH($,Z,Y,U,G);case 3:$:{if(l(Z,Z.stateNode.containerInfo),$===null)throw Error("Should have a current fiber. This is a bug in React.");Y=Z.pendingProps;var B=Z.memoizedState;U=B.element,Hq($,Z),i$(Z,Y,null,G);var W=Z.memoizedState;if(Y=W.cache,c8(Z,t1,Y),Y!==B.cache&&Xq(Z,[t1],G,!0),a$(),Y=W.element,B.isDehydrated)if(B={element:Y,isDehydrated:!1,cache:W.cache},Z.updateQueue.baseState=B,Z.memoizedState=B,Z.flags&256){Z=iH($,Z,Y,G);break $}else if(Y!==U){U=W6(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),Z),c$(U),Z=iH($,Z,Y,G);break $}else{switch($=Z.stateNode.containerInfo,$.nodeType){case 9:$=$.body;break;default:$=$.nodeName==="HTML"?$.ownerDocument.body:$}E1=L6($.firstChild),T5=Z,i0=!0,N2=null,h4=!1,I6=null,u6=!0,G=Fw(Z,null,Y,G);for(Z.child=G;G;)G.flags=G.flags&-3|4096,G=G.sibling}else{if(X9(),Y===U){Z=G8($,Z,G);break $}_5($,Z,Y,G)}Z=Z.child}return Z;case 26:return ZG($,Z),$===null?(G=OM(Z.type,null,Z.pendingProps,null))?Z.memoizedState=G:i0||(G=Z.type,$=Z.pendingProps,Y=b0(Z2.current),Y=HG(Y).createElement(G),Y[P5]=Z,Y[x5]=$,L5(Y,G,$),_0(Y),Z.stateNode=Y):Z.memoizedState=OM(Z.type,$.memoizedProps,Z.pendingProps,$.memoizedState),null;case 27:return a0(Z),$===null&&i0&&(Y=b0(Z2.current),U=F0(),Y=Z.stateNode=CM(Z.type,Z.pendingProps,Y,U,!1),h4||(U=BM(Y,Z.type,Z.pendingProps,U),U!==null&&(G9(Z,0).serverProps=U)),T5=Z,u6=!0,U=E1,e8(Z.type)?(UU=U,E1=L6(Y.firstChild)):E1=U),_5($,Z,Z.pendingProps.children,G),ZG($,Z),$===null&&(Z.flags|=4194304),Z.child;case 5:return $===null&&i0&&(B=F0(),Y=mX(Z.type,B.ancestorInfo),U=E1,(W=!U)||(W=SC(U,Z.type,Z.pendingProps,u6),W!==null?(Z.stateNode=W,h4||(B=BM(W,Z.type,Z.pendingProps,B),B!==null&&(G9(Z,0).serverProps=B)),T5=Z,E1=L6(W.firstChild),u6=!1,B=!0):B=!1,W=!B),W&&(Y&&AJ(Z,U),p8(Z))),a0(Z),U=Z.type,B=Z.pendingProps,W=$!==null?$.memoizedProps:null,Y=B.children,VY(U,B)?Y=null:W!==null&&VY(U,W)&&(Z.flags|=32),Z.memoizedState!==null&&(U=Rq($,Z,bT,null,null,G),UQ._currentValue=U),ZG($,Z),_5($,Z,Y,G),Z.child;case 6:return $===null&&i0&&(G=Z.pendingProps,$=F0(),Y=$.ancestorInfo.current,G=Y!=null?RJ(G,Y.tag,$.ancestorInfo.implicitRootScope):!0,$=E1,(Y=!$)||(Y=jC($,Z.pendingProps,u6),Y!==null?(Z.stateNode=Y,T5=Z,E1=null,Y=!0):Y=!1,Y=!Y),Y&&(G&&AJ(Z,$),p8(Z))),null;case 13:return tH($,Z,G);case 4:return l(Z,Z.stateNode.containerInfo),Y=Z.pendingProps,$===null?Z.child=I9(Z,null,Y,G):_5($,Z,Y,G),Z.child;case 11:return pH($,Z,Z.type,Z.pendingProps,G);case 7:return _5($,Z,Z.pendingProps,G),Z.child;case 8:return _5($,Z,Z.pendingProps.children,G),Z.child;case 12:return Z.flags|=4,Z.flags|=2048,Y=Z.stateNode,Y.effectDuration=-0,Y.passiveEffectDuration=-0,_5($,Z,Z.pendingProps.children,G),Z.child;case 10:return Y=Z.type,U=Z.pendingProps,B=U.value,"value"in U||uw||(uw=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),c8(Z,Y,B),_5($,Z,U.children,G),Z.child;case 9:return U=Z.type._context,Y=Z.pendingProps.children,typeof Y!=="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."),q9(Z),U=v1(U),Y=AN(Y,U,void 0),Z.flags|=1,_5($,Z,Y,G),Z.child;case 14:return cH($,Z,Z.type,Z.pendingProps,G);case 15:return lH($,Z,Z.type,Z.pendingProps,G);case 19:return $F($,Z,G);case 31:return xT($,Z,G);case 22:return rH($,Z,G,Z.pendingProps);case 24:return q9(Z),Y=v1(t1),$===null?(U=Uq(),U===null&&(U=P1,B=qq(),U.pooledCache=B,Y9(B),B!==null&&(U.pooledCacheLanes|=G),U=B),Z.memoizedState={parent:Y,cache:U},Bq(Z),c8(Z,t1,U)):(($.lanes&G)!==0&&(Hq($,Z),i$(Z,null,null,G),a$()),U=$.memoizedState,B=Z.memoizedState,U.parent!==Y?(U={parent:Y,cache:Y},Z.memoizedState=U,Z.lanes===0&&(Z.memoizedState=Z.updateQueue.baseState=U),c8(Z,t1,Y)):(Y=B.cache,c8(Z,t1,Y),Y!==U.cache&&Xq(Z,[t1],G,!0))),_5($,Z,Z.pendingProps.children,G),Z.child;case 29:throw Z.pendingProps}throw Error("Unknown unit of work tag ("+Z.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function X8($){$.flags|=4}function QY($,Z,G,Y,U){if(Z=($.mode&YO)!==V0)Z=!1;if(Z){if($.flags|=16777216,(U&335544128)===U)if($.stateNode.complete)$.flags|=8192;else if(bF())$.flags|=8192;else throw C9=sG,SN}else $.flags&=-16777217}function ZF($,Z){if(Z.type!=="stylesheet"||(Z.state.loading&c6)!==f9)$.flags&=-16777217;else if($.flags|=16777216,!jM(Z))if(bF())$.flags|=8192;else throw C9=sG,SN}function JG($,Z){Z!==null&&($.flags|=4),$.flags&16384&&(Z=$.tag!==22?Y7():536870912,$.lanes|=Z,S9|=Z)}function QZ($,Z){if(!i0)switch($.tailMode){case"hidden":Z=$.tail;for(var G=null;Z!==null;)Z.alternate!==null&&(G=Z),Z=Z.sibling;G===null?$.tail=null:G.sibling=null;break;case"collapsed":G=$.tail;for(var Y=null;G!==null;)G.alternate!==null&&(Y=G),G=G.sibling;Y===null?Z||$.tail===null?$.tail=null:$.tail.sibling=null:Y.sibling=null}}function I1($){var Z=$.alternate!==null&&$.alternate.child===$.child,G=0,Y=0;if(Z)if(($.mode&g0)!==V0){for(var{selfBaseDuration:U,child:B}=$;B!==null;)G|=B.lanes|B.childLanes,Y|=B.subtreeFlags&65011712,Y|=B.flags&65011712,U+=B.treeBaseDuration,B=B.sibling;$.treeBaseDuration=U}else for(U=$.child;U!==null;)G|=U.lanes|U.childLanes,Y|=U.subtreeFlags&65011712,Y|=U.flags&65011712,U.return=$,U=U.sibling;else if(($.mode&g0)!==V0){U=$.actualDuration,B=$.selfBaseDuration;for(var W=$.child;W!==null;)G|=W.lanes|W.childLanes,Y|=W.subtreeFlags,Y|=W.flags,U+=W.actualDuration,B+=W.treeBaseDuration,W=W.sibling;$.actualDuration=U,$.treeBaseDuration=B}else for(U=$.child;U!==null;)G|=U.lanes|U.childLanes,Y|=U.subtreeFlags,Y|=U.flags,U.return=$,U=U.sibling;return $.subtreeFlags|=Y,$.childLanes=G,Z}function dT($,Z,G){var Y=Z.pendingProps;switch(Zq(Z),Z.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return I1(Z),null;case 1:return I1(Z),null;case 3:if(G=Z.stateNode,Y=null,$!==null&&(Y=$.memoizedState.cache),Z.memoizedState.cache!==Y&&(Z.flags|=2048),Q8(t1,Z),q0(Z),G.pendingContext&&(G.context=G.pendingContext,G.pendingContext=null),$===null||$.child===null)H7(Z)?(Jq(),X8(Z)):$===null||$.memoizedState.isDehydrated&&(Z.flags&256)===0||(Z.flags|=1024,Qq());return I1(Z),null;case 26:var{type:U,memoizedState:B}=Z;return $===null?(X8(Z),B!==null?(I1(Z),ZF(Z,B)):(I1(Z),QY(Z,U,null,Y,G))):B?B!==$.memoizedState?(X8(Z),I1(Z),ZF(Z,B)):(I1(Z),Z.flags&=-16777217):($=$.memoizedProps,$!==Y&&X8(Z),I1(Z),QY(Z,U,$,Y,G)),null;case 27:if(d0(Z),G=b0(Z2.current),U=Z.type,$!==null&&Z.stateNode!=null)$.memoizedProps!==Y&&X8(Z);else{if(!Y){if(Z.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 I1(Z),null}$=F0(),H7(Z)?pB(Z,$):($=CM(U,Y,G,$,!0),Z.stateNode=$,X8(Z))}return I1(Z),null;case 5:if(d0(Z),U=Z.type,$!==null&&Z.stateNode!=null)$.memoizedProps!==Y&&X8(Z);else{if(!Y){if(Z.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 I1(Z),null}var W=F0();if(H7(Z))pB(Z,W);else{switch(B=b0(Z2.current),mX(U,W.ancestorInfo),W=W.context,B=HG(B),W){case N$:B=B.createElementNS(v7,U);break;case L3:B=B.createElementNS(SG,U);break;default:switch(U){case"svg":B=B.createElementNS(v7,U);break;case"math":B=B.createElementNS(SG,U);break;case"script":B=B.createElement("div"),B.innerHTML="<script></script>",B=B.removeChild(B.firstChild);break;case"select":B=typeof Y.is==="string"?B.createElement("select",{is:Y.is}):B.createElement("select"),Y.multiple?B.multiple=!0:Y.size&&(B.size=Y.size);break;default:B=typeof Y.is==="string"?B.createElement(U,{is:Y.is}):B.createElement(U),U.indexOf("-")===-1&&(U!==U.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",U),Object.prototype.toString.call(B)!=="[object HTMLUnknownElement]"||G4.call(UR,U)||(UR[U]=!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.",U)))}}B[P5]=Z,B[x5]=Y;$:for(W=Z.child;W!==null;){if(W.tag===5||W.tag===6)B.appendChild(W.stateNode);else if(W.tag!==4&&W.tag!==27&&W.child!==null){W.child.return=W,W=W.child;continue}if(W===Z)break $;for(;W.sibling===null;){if(W.return===null||W.return===Z)break $;W=W.return}W.sibling.return=W.return,W=W.sibling}Z.stateNode=B;$:switch(L5(B,U,Y),U){case"button":case"input":case"select":case"textarea":Y=!!Y.autoFocus;break $;case"img":Y=!0;break $;default:Y=!1}Y&&X8(Z)}}return I1(Z),QY(Z,Z.type,$===null?null:$.memoizedProps,Z.pendingProps,G),null;case 6:if($&&Z.stateNode!=null)$.memoizedProps!==Y&&X8(Z);else{if(typeof Y!=="string"&&Z.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($=b0(Z2.current),G=F0(),H7(Z)){if($=Z.stateNode,G=Z.memoizedProps,U=!h4,Y=null,B=T5,B!==null)switch(B.tag){case 3:U&&(U=PM($,G,Y),U!==null&&(G9(Z,0).serverProps=U));break;case 27:case 5:Y=B.memoizedProps,U&&(U=PM($,G,Y),U!==null&&(G9(Z,0).serverProps=U))}$[P5]=Z,$=$.nodeValue===G||Y!==null&&Y.suppressHydrationWarning===!0||qM($.nodeValue,G)?!0:!1,$||p8(Z,!0)}else U=G.ancestorInfo.current,U!=null&&RJ(Y,U.tag,G.ancestorInfo.implicitRootScope),$=HG($).createTextNode(Y),$[P5]=Z,Z.stateNode=$}return I1(Z),null;case 31:if(G=Z.memoizedState,$===null||$.memoizedState!==null){if(Y=H7(Z),G!==null){if($===null){if(!Y)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if($=Z.memoizedState,$=$!==null?$.dehydrated:null,!$)throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.");$[P5]=Z,I1(Z),(Z.mode&g0)!==V0&&G!==null&&($=Z.child,$!==null&&(Z.treeBaseDuration-=$.treeBaseDuration))}else Jq(),X9(),(Z.flags&128)===0&&(G=Z.memoizedState=null),Z.flags|=4,I1(Z),(Z.mode&g0)!==V0&&G!==null&&($=Z.child,$!==null&&(Z.treeBaseDuration-=$.treeBaseDuration));$=!1}else G=Qq(),$!==null&&$.memoizedState!==null&&($.memoizedState.hydrationErrors=G),$=!0;if(!$){if(Z.flags&256)return z6(Z),Z;return z6(Z),null}if((Z.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return I1(Z),null;case 13:if(Y=Z.memoizedState,$===null||$.memoizedState!==null&&$.memoizedState.dehydrated!==null){if(U=Y,B=H7(Z),U!==null&&U.dehydrated!==null){if($===null){if(!B)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(B=Z.memoizedState,B=B!==null?B.dehydrated:null,!B)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");B[P5]=Z,I1(Z),(Z.mode&g0)!==V0&&U!==null&&(U=Z.child,U!==null&&(Z.treeBaseDuration-=U.treeBaseDuration))}else Jq(),X9(),(Z.flags&128)===0&&(U=Z.memoizedState=null),Z.flags|=4,I1(Z),(Z.mode&g0)!==V0&&U!==null&&(U=Z.child,U!==null&&(Z.treeBaseDuration-=U.treeBaseDuration));U=!1}else U=Qq(),$!==null&&$.memoizedState!==null&&($.memoizedState.hydrationErrors=U),U=!0;if(!U){if(Z.flags&256)return z6(Z),Z;return z6(Z),null}}if(z6(Z),(Z.flags&128)!==0)return Z.lanes=G,(Z.mode&g0)!==V0&&n$(Z),Z;return G=Y!==null,$=$!==null&&$.memoizedState!==null,G&&(Y=Z.child,U=null,Y.alternate!==null&&Y.alternate.memoizedState!==null&&Y.alternate.memoizedState.cachePool!==null&&(U=Y.alternate.memoizedState.cachePool.pool),B=null,Y.memoizedState!==null&&Y.memoizedState.cachePool!==null&&(B=Y.memoizedState.cachePool.pool),B!==U&&(Y.flags|=2048)),G!==$&&G&&(Z.child.flags|=8192),JG(Z,Z.updateQueue),I1(Z),(Z.mode&g0)!==V0&&G&&($=Z.child,$!==null&&(Z.treeBaseDuration-=$.treeBaseDuration)),null;case 4:return q0(Z),$===null&&_Y(Z.stateNode.containerInfo),I1(Z),null;case 10:return Q8(Z.type,Z),I1(Z),null;case 19:if(P0(r1,Z),Y=Z.memoizedState,Y===null)return I1(Z),null;if(U=(Z.flags&128)!==0,B=Y.rendering,B===null)if(U)QZ(Y,!1);else{if(f1!==L8||$!==null&&($.flags&128)!==0)for($=Z.child;$!==null;){if(B=xJ($),B!==null){Z.flags|=128,QZ(Y,!1),$=B.updateQueue,Z.updateQueue=$,JG(Z,$),Z.subtreeFlags=0,$=G;for(G=Z.child;G!==null;)gB(G,$),G=G.sibling;return I0(r1,r1.current&a7|lZ,Z),i0&&Z8(Z,Y.treeForkCount),Z.child}$=$.sibling}Y.tail!==null&&F5()>Y3&&(Z.flags|=128,U=!0,QZ(Y,!1),Z.lanes=4194304)}else{if(!U)if($=xJ(B),$!==null){if(Z.flags|=128,U=!0,$=$.updateQueue,Z.updateQueue=$,JG(Z,$),QZ(Y,!0),Y.tail===null&&Y.tailMode==="hidden"&&!B.alternate&&!i0)return I1(Z),null}else 2*F5()-Y.renderingStartTime>Y3&&G!==536870912&&(Z.flags|=128,U=!0,QZ(Y,!1),Z.lanes=4194304);Y.isBackwards?(B.sibling=Z.child,Z.child=B):($=Y.last,$!==null?$.sibling=B:Z.child=B,Y.last=B)}if(Y.tail!==null)return $=Y.tail,Y.rendering=$,Y.tail=$.sibling,Y.renderingStartTime=F5(),$.sibling=null,G=r1.current,G=U?G&a7|lZ:G&a7,I0(r1,G,Z),i0&&Z8(Z,Y.treeForkCount),$;return I1(Z),null;case 22:case 23:return z6(Z),Mq(Z),Y=Z.memoizedState!==null,$!==null?$.memoizedState!==null!==Y&&(Z.flags|=8192):Y&&(Z.flags|=8192),Y?(G&536870912)!==0&&(Z.flags&128)===0&&(I1(Z),Z.subtreeFlags&6&&(Z.flags|=8192)):I1(Z),G=Z.updateQueue,G!==null&&JG(Z,G.retryQueue),G=null,$!==null&&$.memoizedState!==null&&$.memoizedState.cachePool!==null&&(G=$.memoizedState.cachePool.pool),Y=null,Z.memoizedState!==null&&Z.memoizedState.cachePool!==null&&(Y=Z.memoizedState.cachePool.pool),Y!==G&&(Z.flags|=2048),$!==null&&P0(P9,Z),null;case 24:return G=null,$!==null&&(G=$.memoizedState.cache),Z.memoizedState.cache!==G&&(Z.flags|=2048),Q8(t1,Z),I1(Z),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+Z.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function pT($,Z){switch(Zq(Z),Z.tag){case 1:return $=Z.flags,$&65536?(Z.flags=$&-65537|128,(Z.mode&g0)!==V0&&n$(Z),Z):null;case 3:return Q8(t1,Z),q0(Z),$=Z.flags,($&65536)!==0&&($&128)===0?(Z.flags=$&-65537|128,Z):null;case 26:case 27:case 5:return d0(Z),null;case 31:if(Z.memoizedState!==null){if(z6(Z),Z.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");X9()}return $=Z.flags,$&65536?(Z.flags=$&-65537|128,(Z.mode&g0)!==V0&&n$(Z),Z):null;case 13:if(z6(Z),$=Z.memoizedState,$!==null&&$.dehydrated!==null){if(Z.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");X9()}return $=Z.flags,$&65536?(Z.flags=$&-65537|128,(Z.mode&g0)!==V0&&n$(Z),Z):null;case 19:return P0(r1,Z),null;case 4:return q0(Z),null;case 10:return Q8(Z.type,Z),null;case 22:case 23:return z6(Z),Mq(Z),$!==null&&P0(P9,Z),$=Z.flags,$&65536?(Z.flags=$&-65537|128,(Z.mode&g0)!==V0&&n$(Z),Z):null;case 24:return Q8(t1,Z),null;case 25:return null;default:return null}}function QF($,Z){switch(Zq(Z),Z.tag){case 3:Q8(t1,Z),q0(Z);break;case 26:case 27:case 5:d0(Z);break;case 4:q0(Z);break;case 31:Z.memoizedState!==null&&z6(Z);break;case 13:z6(Z);break;case 19:P0(r1,Z);break;case 10:Q8(Z.type,Z);break;case 22:case 23:z6(Z),Mq(Z),$!==null&&P0(P9,Z);break;case 24:Q8(t1,Z)}}function O4($){return($.mode&g0)!==V0}function JF($,Z){O4($)?(I4(),JZ(Z,$),C4()):JZ(Z,$)}function JY($,Z,G){O4($)?(I4(),z7(G,$,Z),C4()):z7(G,$,Z)}function JZ($,Z){try{var G=Z.updateQueue,Y=G!==null?G.lastEffect:null;if(Y!==null){var U=Y.next;G=U;do{if((G.tag&$)===$&&(Y=void 0,($&c5)!==aG&&(X$=!0),Y=X0(Z,HO,G),($&c5)!==aG&&(X$=!1),Y!==void 0&&typeof Y!=="function")){var B=void 0;B=(G.tag&V6)!==0?"useLayoutEffect":(G.tag&c5)!==0?"useInsertionEffect":"useEffect";var W=void 0;W=Y===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof Y.then==="function"?`
|
|
136
|
+
https://react.dev/link/unsafe-component-lifecycles`,B,T,z!==null?`
|
|
137
|
+
`+z:"",w!==null?`
|
|
138
|
+
`+w:"",L!==null?`
|
|
139
|
+
`+L:""))}}B=Z.stateNode,z=i(Q)||"Component",B.render||(Q.prototype&&typeof Q.prototype.render==="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",z):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",z)),!B.getInitialState||B.getInitialState.isReactClassApproved||B.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?",z),B.getDefaultProps&&!B.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.",z),B.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",z),Q.childContextTypes&&!UM.has(Q)&&(UM.add(Q),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",z)),Q.contextTypes&&!NM.has(Q)&&(NM.add(Q),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)",z)),typeof B.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.",z),Q.prototype&&Q.prototype.isPureReactComponent&&typeof B.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.",i(Q)||"A pure component"),typeof B.componentDidUnmount==="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",z),typeof B.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().",z),typeof B.componentWillRecieveProps==="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",z),typeof B.UNSAFE_componentWillRecieveProps==="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",z),w=B.props!==Y,B.props!==void 0&&w&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",z),B.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.",z,z),typeof B.getSnapshotBeforeUpdate!=="function"||typeof B.componentDidUpdate==="function"||GM.has(Q)||(GM.add(Q),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",i(Q))),typeof B.getDerivedStateFromProps==="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",z),typeof B.getDerivedStateFromError==="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",z),typeof Q.getSnapshotBeforeUpdate==="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",z),(w=B.state)&&(typeof w!=="object"||G5(w))&&console.error("%s.state: must be set to an object or null",z),typeof B.getChildContext==="function"&&typeof Q.childContextTypes!=="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",z),B=Z.stateNode,B.props=Y,B.state=Z.memoizedState,B.refs={},sq(Z),z=Q.contextType,B.context=typeof z==="object"&&z!==null?D1(z):Z2,B.state===Y&&(z=i(Q)||"Component",YM.has(z)||(YM.add(z),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.",z))),Z.mode&D5&&G4.recordLegacyContextWarning(Z,B),G4.recordUnsafeLifecycleWarnings(Z,B),B.state=Z.memoizedState,z=Q.getDerivedStateFromProps,typeof z==="function"&&(IY(Z,Q,z,Y),B.state=Z.memoizedState),typeof Q.getDerivedStateFromProps==="function"||typeof B.getSnapshotBeforeUpdate==="function"||typeof B.UNSAFE_componentWillMount!=="function"&&typeof B.componentWillMount!=="function"||(z=B.state,typeof B.componentWillMount==="function"&&B.componentWillMount(),typeof B.UNSAFE_componentWillMount==="function"&&B.UNSAFE_componentWillMount(),z!==B.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",d(Z)||"Component"),_N.enqueueReplaceState(B,B.state,null)),u$(Z,Y,B,U),h$(),B.state=Z.memoizedState),typeof B.componentDidMount==="function"&&(Z.flags|=4194308),(Z.mode&Q4)!==V0&&(Z.flags|=134217728),B=!0}else if($===null){B=Z.stateNode;var b=Z.memoizedProps;w=Y7(Q,b),B.props=w;var f=B.context;L=Q.contextType,z=Z2,typeof L==="object"&&L!==null&&(z=D1(L)),T=Q.getDerivedStateFromProps,L=typeof T==="function"||typeof B.getSnapshotBeforeUpdate==="function",b=Z.pendingProps!==b,L||typeof B.UNSAFE_componentWillReceiveProps!=="function"&&typeof B.componentWillReceiveProps!=="function"||(b||f!==z)&&MH(Z,B,Y,z),N2=!1;var S=Z.memoizedState;B.state=S,u$(Z,Y,B,U),h$(),f=Z.memoizedState,b||S!==f||N2?(typeof T==="function"&&(IY(Z,Q,T,Y),f=Z.memoizedState),(w=N2||zH(Z,Q,w,Y,S,f,z))?(L||typeof B.UNSAFE_componentWillMount!=="function"&&typeof B.componentWillMount!=="function"||(typeof B.componentWillMount==="function"&&B.componentWillMount(),typeof B.UNSAFE_componentWillMount==="function"&&B.UNSAFE_componentWillMount()),typeof B.componentDidMount==="function"&&(Z.flags|=4194308),(Z.mode&Q4)!==V0&&(Z.flags|=134217728)):(typeof B.componentDidMount==="function"&&(Z.flags|=4194308),(Z.mode&Q4)!==V0&&(Z.flags|=134217728),Z.memoizedProps=Y,Z.memoizedState=f),B.props=Y,B.state=f,B.context=z,B=w):(typeof B.componentDidMount==="function"&&(Z.flags|=4194308),(Z.mode&Q4)!==V0&&(Z.flags|=134217728),B=!1)}else{B=Z.stateNode,nq($,Z),z=Z.memoizedProps,L=Y7(Q,z),B.props=L,T=Z.pendingProps,S=B.context,f=Q.contextType,w=Z2,typeof f==="object"&&f!==null&&(w=D1(f)),b=Q.getDerivedStateFromProps,(f=typeof b==="function"||typeof B.getSnapshotBeforeUpdate==="function")||typeof B.UNSAFE_componentWillReceiveProps!=="function"&&typeof B.componentWillReceiveProps!=="function"||(z!==T||S!==w)&&MH(Z,B,Y,w),N2=!1,S=Z.memoizedState,B.state=S,u$(Z,Y,B,U),h$();var g=Z.memoizedState;z!==T||S!==g||N2||$!==null&&$.dependencies!==null&&zQ($.dependencies)?(typeof b==="function"&&(IY(Z,Q,b,Y),g=Z.memoizedState),(L=N2||zH(Z,Q,L,Y,S,g,w)||$!==null&&$.dependencies!==null&&zQ($.dependencies))?(f||typeof B.UNSAFE_componentWillUpdate!=="function"&&typeof B.componentWillUpdate!=="function"||(typeof B.componentWillUpdate==="function"&&B.componentWillUpdate(Y,g,w),typeof B.UNSAFE_componentWillUpdate==="function"&&B.UNSAFE_componentWillUpdate(Y,g,w)),typeof B.componentDidUpdate==="function"&&(Z.flags|=4),typeof B.getSnapshotBeforeUpdate==="function"&&(Z.flags|=1024)):(typeof B.componentDidUpdate!=="function"||z===$.memoizedProps&&S===$.memoizedState||(Z.flags|=4),typeof B.getSnapshotBeforeUpdate!=="function"||z===$.memoizedProps&&S===$.memoizedState||(Z.flags|=1024),Z.memoizedProps=Y,Z.memoizedState=g),B.props=Y,B.state=g,B.context=w,B=L):(typeof B.componentDidUpdate!=="function"||z===$.memoizedProps&&S===$.memoizedState||(Z.flags|=4),typeof B.getSnapshotBeforeUpdate!=="function"||z===$.memoizedProps&&S===$.memoizedState||(Z.flags|=1024),B=!1)}if(w=B,mQ($,Z),z=(Z.flags&128)!==0,w||z){if(w=Z.stateNode,t7(Z),z&&typeof Q.getDerivedStateFromError!=="function")Q=null,x5=-1;else if(Q=jz(w),Z.mode&D5){P1(!0);try{jz(w)}finally{P1(!1)}}Z.flags|=1,$!==null&&z?(Z.child=_7(Z,$.child,null,U),Z.child=_7(Z,null,Q,U)):w5($,Z,Q,U),Z.memoizedState=w.state,$=Z.child}else $=$8($,Z,U);return U=Z.stateNode,B&&U.props!==Y&&(s9||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",d(Z)||"a component"),s9=!0),$}function SH($,Z,Q,Y){return $7(),Z.flags|=256,w5($,Z,Q,Y),Z.child}function DY($,Z){Z&&Z.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
|
|
140
|
+
%s.childContextTypes = ...`,Z.displayName||Z.name||"Component"),typeof Z.getDerivedStateFromProps==="function"&&($=i(Z)||"Unknown",zM[$]||(console.error("%s: Function components do not support getDerivedStateFromProps.",$),zM[$]=!0)),typeof Z.contextType==="object"&&Z.contextType!==null&&(Z=i(Z)||"Unknown",FM[Z]||(console.error("%s: Function components do not support contextType.",Z),FM[Z]=!0))}function jY($){return{baseLanes:$,cachePool:AB()}}function kY($,Z,Q){return $=$!==null?$.childLanes&~Q:0,Z&&($|=a5),$}function DH($,Z,Q){var Y,U=Z.pendingProps;K(Z)&&(Z.flags|=128);var B=!1,z=(Z.flags&128)!==0;if((Y=z)||(Y=$!==null&&$.memoizedState===null?!1:(c1.current&vZ)!==0),Y&&(B=!0,Z.flags&=-129),Y=(Z.flags&32)!==0,Z.flags&=-33,$===null){if(i0){if(B?d8(Z):p8(Z),($=V1)?(Q=iF($,y6),Q=Q!==null&&Q.data!==A7?Q:null,Q!==null&&(Y={dehydrated:Q,treeContext:RB(),retryLane:536870912,hydrationErrors:null},Z.memoizedState=Y,Y=MB(Q),Y.return=Z,Z.child=Y,L5=Z,V1=null)):Q=null,Q===null)throw FQ(Z,$),g8(Z);return BX(Q)?Z.lanes=32:Z.lanes=536870912,null}var w=U.children;if(U=U.fallback,B){p8(Z);var L=Z.mode;return w=dQ({mode:"hidden",children:w},L),U=t2(U,L,Q,null),w.return=Z,U.return=Z,w.sibling=U,Z.child=w,U=Z.child,U.memoizedState=jY(Q),U.childLanes=kY($,Y,Q),Z.memoizedState=TN,p$(null,U)}return d8(Z),vY(Z,w)}var T=$.memoizedState;if(T!==null){var b=T.dehydrated;if(b!==null){if(z)Z.flags&256?(d8(Z),Z.flags&=-257,Z=bY($,Z,Q)):Z.memoizedState!==null?(p8(Z),Z.child=$.child,Z.flags|=128,Z=null):(p8(Z),w=U.fallback,L=Z.mode,U=dQ({mode:"visible",children:U.children},L),w=t2(w,L,Q,null),w.flags|=2,U.return=Z,w.return=Z,U.sibling=w,Z.child=U,_7(Z,$.child,null,Q),U=Z.child,U.memoizedState=jY(Q),U.childLanes=kY($,Y,Q),Z.memoizedState=TN,Z=p$(null,U));else if(d8(Z),LB(),(Q&536870912)!==0&&sQ(Z),BX(b)){if(Y=b.nextSibling&&b.nextSibling.dataset,Y){w=Y.dgst;var f=Y.msg;L=Y.stck;var S=Y.cstck}B=f,Y=w,U=L,b=S,w=B,L=b,w=w?Error(w):Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),w.stack=U||"",w.digest=Y,Y=L===void 0?null:L,U={value:w,source:null,stack:Y},typeof Y==="string"&&ZN.set(w,U),k$(U),Z=bY($,Z,Q)}else if(e1||Y9($,Z,Q,!1),Y=(Q&$.childLanes)!==0,e1||Y){if(Y=_1,Y!==null&&(U=r2(Y,Q),U!==0&&U!==T.retryLane))throw T.retryLane=U,E5($,U),y1(Y,$,U),PN;KX(b)||nQ(),Z=bY($,Z,Q)}else KX(b)?(Z.flags|=192,Z.child=$.child,Z=null):($=T.treeContext,V1=w6(b.nextSibling),L5=Z,i0=!0,J2=null,f4=!1,P6=null,y6=!1,$!==null&&_B(Z,$),Z=vY(Z,U.children),Z.flags|=4096);return Z}}if(B)return p8(Z),w=U.fallback,L=Z.mode,S=$.child,b=S.sibling,U=a4(S,{mode:"hidden",children:U.children}),U.subtreeFlags=S.subtreeFlags&65011712,b!==null?w=a4(b,w):(w=t2(w,L,Q,null),w.flags|=2),w.return=Z,U.return=Z,U.sibling=w,Z.child=U,p$(null,U),U=Z.child,w=$.child.memoizedState,w===null?w=jY(Q):(L=w.cachePool,L!==null?(S=a1._currentValue,L=L.parent!==S?{parent:S,pool:S}:L):L=AB(),w={baseLanes:w.baseLanes|Q,cachePool:L}),U.memoizedState=w,U.childLanes=kY($,Y,Q),Z.memoizedState=TN,p$($.child,U);return T!==null&&(Q&62914560)===Q&&(Q&$.lanes)!==0&&sQ(Z),d8(Z),Q=$.child,$=Q.sibling,Q=a4(Q,{mode:"visible",children:U.children}),Q.return=Z,Q.sibling=null,$!==null&&(Y=Z.deletions,Y===null?(Z.deletions=[$],Z.flags|=16):Y.push($)),Z.child=Q,Z.memoizedState=null,Q}function vY($,Z){return Z=dQ({mode:"visible",children:Z},$.mode),Z.return=$,$.child=Z}function dQ($,Z){return $=P(22,$,null,Z),$.lanes=0,$}function bY($,Z,Q){return _7(Z,$.child,null,Q),$=vY(Z,Z.pendingProps.children),$.flags|=2,Z.memoizedState=null,$}function jH($,Z,Q){$.lanes|=Z;var Y=$.alternate;Y!==null&&(Y.lanes|=Z),xq($.return,Z,Q)}function fY($,Z,Q,Y,U,B){var z=$.memoizedState;z===null?$.memoizedState={isBackwards:Z,rendering:null,renderingStartTime:0,last:Y,tail:Q,tailMode:U,treeForkCount:B}:(z.isBackwards=Z,z.rendering=null,z.renderingStartTime=0,z.last=Y,z.tail=Q,z.tailMode=U,z.treeForkCount=B)}function kH($,Z,Q){var Y=Z.pendingProps,U=Y.revealOrder,B=Y.tail,z=Y.children,w=c1.current;if((Y=(w&vZ)!==0)?(w=w&p9|vZ,Z.flags|=128):w&=p9,O0(c1,w,Z),w=U==null?"null":U,U!=="forwards"&&U!=="unstable_legacy-backwards"&&U!=="together"&&U!=="independent"&&!MM[w])if(MM[w]=!0,U==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(U==="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 U==="string")switch(U.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.',U,U.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.',U,U.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',U)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',U);if(w=B==null?"null":B,!xG[w])if(B==null){if(U==="forwards"||U==="backwards"||U==="unstable_legacy-backwards")xG[w]=!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 B!=="visible"&&B!=="collapsed"&&B!=="hidden"?(xG[w]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',B)):U!=="forwards"&&U!=="backwards"&&U!=="unstable_legacy-backwards"&&(xG[w]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',B));$:if((U==="forwards"||U==="backwards"||U==="unstable_legacy-backwards")&&z!==void 0&&z!==null&&z!==!1)if(G5(z)){for(w=0;w<z.length;w++)if(!gB(z[w],w))break $}else if(w=t(z),typeof w==="function"){if(w=w.call(z))for(var L=w.next(),T=0;!L.done;L=w.next()){if(!gB(L.value,T))break $;T++}}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?',U);if(w5($,Z,z,Q),i0?(y8(),z=RZ):z=0,!Y&&$!==null&&($.flags&128)!==0)$:for($=Z.child;$!==null;){if($.tag===13)$.memoizedState!==null&&jH($,Q,Z);else if($.tag===19)jH($,Q,Z);else if($.child!==null){$.child.return=$,$=$.child;continue}if($===Z)break $;for(;$.sibling===null;){if($.return===null||$.return===Z)break $;$=$.return}$.sibling.return=$.return,$=$.sibling}switch(U){case"forwards":Q=Z.child;for(U=null;Q!==null;)$=Q.alternate,$!==null&&VQ($)===null&&(U=Q),Q=Q.sibling;Q=U,Q===null?(U=Z.child,Z.child=null):(U=Q.sibling,Q.sibling=null),fY(Z,!1,U,Q,B,z);break;case"backwards":case"unstable_legacy-backwards":Q=null,U=Z.child;for(Z.child=null;U!==null;){if($=U.alternate,$!==null&&VQ($)===null){Z.child=U;break}$=U.sibling,U.sibling=Q,Q=U,U=$}fY(Z,!0,Q,null,B,z);break;case"together":fY(Z,!1,null,null,void 0,z);break;default:Z.memoizedState=null}return Z.child}function $8($,Z,Q){if($!==null&&(Z.dependencies=$.dependencies),x5=-1,B2|=Z.lanes,(Q&Z.childLanes)===0)if($!==null){if(Y9($,Z,Q,!1),(Q&Z.childLanes)===0)return null}else return null;if($!==null&&Z.child!==$.child)throw Error("Resuming work not yet implemented.");if(Z.child!==null){$=Z.child,Q=a4($,$.pendingProps),Z.child=Q;for(Q.return=Z;$.sibling!==null;)$=$.sibling,Q=Q.sibling=a4($,$.pendingProps),Q.return=Z;Q.sibling=null}return Z.child}function yY($,Z){if(($.lanes&Z)!==0)return!0;return $=$.dependencies,$!==null&&zQ($)?!0:!1}function pP($,Z,Q){switch(Z.tag){case 3:l(Z,Z.stateNode.containerInfo),h8(Z,a1,$.memoizedState.cache),$7();break;case 27:case 5:a0(Z);break;case 4:l(Z,Z.stateNode.containerInfo);break;case 10:h8(Z,Z.type,Z.memoizedProps.value);break;case 12:(Q&Z.childLanes)!==0&&(Z.flags|=4),Z.flags|=2048;var Y=Z.stateNode;Y.effectDuration=-0,Y.passiveEffectDuration=-0;break;case 31:if(Z.memoizedState!==null)return Z.flags|=128,iq(Z),null;break;case 13:if(Y=Z.memoizedState,Y!==null){if(Y.dehydrated!==null)return d8(Z),Z.flags|=128,null;if((Q&Z.child.childLanes)!==0)return DH($,Z,Q);return d8(Z),$=$8($,Z,Q),$!==null?$.sibling:null}d8(Z);break;case 19:var U=($.flags&128)!==0;if(Y=(Q&Z.childLanes)!==0,Y||(Y9($,Z,Q,!1),Y=(Q&Z.childLanes)!==0),U){if(Y)return kH($,Z,Q);Z.flags|=128}if(U=Z.memoizedState,U!==null&&(U.rendering=null,U.tail=null,U.lastEffect=null),O0(c1,c1.current,Z),Y)break;else return null;case 22:return Z.lanes=0,OH($,Z,Q,Z.pendingProps);case 24:h8(Z,a1,$.memoizedState.cache)}return $8($,Z,Q)}function gY($,Z,Q){if(Z._debugNeedsRemount&&$!==null){Q=vq(Z.type,Z.key,Z.pendingProps,Z._debugOwner||null,Z.mode,Z.lanes),Q._debugStack=Z._debugStack,Q._debugTask=Z._debugTask;var Y=Z.return;if(Y===null)throw Error("Cannot swap the root fiber.");if($.alternate=null,Z.alternate=null,Q.index=Z.index,Q.sibling=Z.sibling,Q.return=Z.return,Q.ref=Z.ref,Q._debugInfo=Z._debugInfo,Z===Y.child)Y.child=Q;else{var U=Y.child;if(U===null)throw Error("Expected parent to have a child.");for(;U.sibling!==Z;)if(U=U.sibling,U===null)throw Error("Expected to find the previous sibling.");U.sibling=Q}return Z=Y.deletions,Z===null?(Y.deletions=[$],Y.flags|=16):Z.push($),Q.flags|=2,Q}if($!==null)if($.memoizedProps!==Z.pendingProps||Z.type!==$.type)e1=!0;else{if(!yY($,Q)&&(Z.flags&128)===0)return e1=!1,pP($,Z,Q);e1=($.flags&131072)!==0?!0:!1}else{if(e1=!1,Y=i0)y8(),Y=(Z.flags&1048576)!==0;Y&&(Y=Z.index,y8(),wB(Z,RZ,Y))}switch(Z.lanes=0,Z.tag){case 16:$:if(Y=Z.pendingProps,$=u8(Z.elementType),Z.type=$,typeof $==="function")kq($)?(Y=Y7($,Y),Z.tag=1,Z.type=$=i2($),Z=EH(null,Z,$,Y,Q)):(Z.tag=0,DY(Z,$),Z.type=$=i2($),Z=SY(null,Z,$,Y,Q));else{if($!==void 0&&$!==null){if(U=$.$$typeof,U===qZ){Z.tag=11,Z.type=$=jq($),Z=PH(null,Z,$,Y,Q);break $}else if(U===NG){Z.tag=14,Z=TH(null,Z,$,Y,Q);break $}}throw Z="",$!==null&&typeof $==="object"&&$.$$typeof===R6&&(Z=" Did you wrap a component in React.lazy() more than once?"),Q=i($)||$,Error("Element type is invalid. Received a promise that resolves to: "+Q+". Lazy element type must resolve to a class or function."+Z)}return Z;case 0:return SY($,Z,Z.type,Z.pendingProps,Q);case 1:return Y=Z.type,U=Y7(Y,Z.pendingProps),EH($,Z,Y,U,Q);case 3:$:{if(l(Z,Z.stateNode.containerInfo),$===null)throw Error("Should have a current fiber. This is a bug in React.");Y=Z.pendingProps;var B=Z.memoizedState;U=B.element,nq($,Z),u$(Z,Y,null,Q);var z=Z.memoizedState;if(Y=z.cache,h8(Z,a1,Y),Y!==B.cache&&mq(Z,[a1],Q,!0),h$(),Y=z.element,B.isDehydrated)if(B={element:Y,isDehydrated:!1,cache:z.cache},Z.updateQueue.baseState=B,Z.memoizedState=B,Z.flags&256){Z=SH($,Z,Y,Q);break $}else if(Y!==U){U=H6(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),Z),k$(U),Z=SH($,Z,Y,Q);break $}else{switch($=Z.stateNode.containerInfo,$.nodeType){case 9:$=$.body;break;default:$=$.nodeName==="HTML"?$.ownerDocument.body:$}V1=w6($.firstChild),L5=Z,i0=!0,J2=null,f4=!1,P6=null,y6=!0,Q=lz(Z,null,Y,Q);for(Z.child=Q;Q;)Q.flags=Q.flags&-3|4096,Q=Q.sibling}else{if($7(),Y===U){Z=$8($,Z,Q);break $}w5($,Z,Y,Q)}Z=Z.child}return Z;case 26:return mQ($,Z),$===null?(Q=QW(Z.type,null,Z.pendingProps,null))?Z.memoizedState=Q:i0||(Q=Z.type,$=Z.pendingProps,Y=v0(o8.current),Y=tQ(Y).createElement(Q),Y[_5]=Z,Y[g5]=$,R5(Y,Q,$),_0(Y),Z.stateNode=Y):Z.memoizedState=QW(Z.type,$.memoizedProps,Z.pendingProps,$.memoizedState),null;case 27:return a0(Z),$===null&&i0&&(Y=v0(o8.current),U=F0(),Y=Z.stateNode=ZW(Z.type,Z.pendingProps,Y,U,!1),f4||(U=pF(Y,Z.type,Z.pendingProps,U),U!==null&&(e2(Z,0).serverProps=U)),L5=Z,y6=!0,U=V1,s8(Z.type)?(lN=U,V1=w6(Y.firstChild)):V1=U),w5($,Z,Z.pendingProps.children,Q),mQ($,Z),$===null&&(Z.flags|=4194304),Z.child;case 5:return $===null&&i0&&(B=F0(),Y=Cq(Z.type,B.ancestorInfo),U=V1,(z=!U)||(z=jT(U,Z.type,Z.pendingProps,y6),z!==null?(Z.stateNode=z,f4||(B=pF(z,Z.type,Z.pendingProps,B),B!==null&&(e2(Z,0).serverProps=B)),L5=Z,V1=w6(z.firstChild),y6=!1,B=!0):B=!1,z=!B),z&&(Y&&FQ(Z,U),g8(Z))),a0(Z),U=Z.type,B=Z.pendingProps,z=$!==null?$.memoizedProps:null,Y=B.children,NX(U,B)?Y=null:z!==null&&NX(U,z)&&(Z.flags|=32),Z.memoizedState!==null&&(U=eq($,Z,fP,null,null,Q),iZ._currentValue=U),mQ($,Z),w5($,Z,Y,Q),Z.child;case 6:return $===null&&i0&&(Q=Z.pendingProps,$=F0(),Y=$.ancestorInfo.current,Q=Y!=null?QQ(Q,Y.tag,$.ancestorInfo.implicitRootScope):!0,$=V1,(Y=!$)||(Y=kT($,Z.pendingProps,y6),Y!==null?(Z.stateNode=Y,L5=Z,V1=null,Y=!0):Y=!1,Y=!Y),Y&&(Q&&FQ(Z,$),g8(Z))),null;case 13:return DH($,Z,Q);case 4:return l(Z,Z.stateNode.containerInfo),Y=Z.pendingProps,$===null?Z.child=_7(Z,null,Y,Q):w5($,Z,Y,Q),Z.child;case 11:return PH($,Z,Z.type,Z.pendingProps,Q);case 7:return w5($,Z,Z.pendingProps,Q),Z.child;case 8:return w5($,Z,Z.pendingProps.children,Q),Z.child;case 12:return Z.flags|=4,Z.flags|=2048,Y=Z.stateNode,Y.effectDuration=-0,Y.passiveEffectDuration=-0,w5($,Z,Z.pendingProps.children,Q),Z.child;case 10:return Y=Z.type,U=Z.pendingProps,B=U.value,"value"in U||wM||(wM=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),h8(Z,Y,B),w5($,Z,U.children,Q),Z.child;case 9:return U=Z.type._context,Y=Z.pendingProps.children,typeof Y!=="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."),Z7(Z),U=D1(U),Y=UN(Y,U,void 0),Z.flags|=1,w5($,Z,Y,Q),Z.child;case 14:return TH($,Z,Z.type,Z.pendingProps,Q);case 15:return CH($,Z,Z.type,Z.pendingProps,Q);case 19:return kH($,Z,Q);case 31:return dP($,Z,Q);case 22:return OH($,Z,Q,Z.pendingProps);case 24:return Z7(Z),Y=D1(a1),$===null?(U=lq(),U===null&&(U=_1,B=dq(),U.pooledCache=B,J7(B),B!==null&&(U.pooledCacheLanes|=Q),U=B),Z.memoizedState={parent:Y,cache:U},sq(Z),h8(Z,a1,U)):(($.lanes&Q)!==0&&(nq($,Z),u$(Z,null,null,Q),h$()),U=$.memoizedState,B=Z.memoizedState,U.parent!==Y?(U={parent:Y,cache:Y},Z.memoizedState=U,Z.lanes===0&&(Z.memoizedState=Z.updateQueue.baseState=U),h8(Z,a1,Y)):(Y=B.cache,h8(Z,a1,Y),Y!==U.cache&&mq(Z,[a1],Q,!0))),w5($,Z,Z.pendingProps.children,Q),Z.child;case 29:throw Z.pendingProps}throw Error("Unknown unit of work tag ("+Z.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Z8($){$.flags|=4}function hY($,Z,Q,Y,U){if(Z=($.mode&UO)!==V0)Z=!1;if(Z){if($.flags|=16777216,(U&335544128)===U)if($.stateNode.complete)$.flags|=8192;else if(BF())$.flags|=8192;else throw R7=bG,BN}else $.flags&=-16777217}function vH($,Z){if(Z.type!=="stylesheet"||(Z.state.loading&m6)!==D7)$.flags&=-16777217;else if($.flags|=16777216,!NW(Z))if(BF())$.flags|=8192;else throw R7=bG,BN}function pQ($,Z){Z!==null&&($.flags|=4),$.flags&16384&&(Z=$.tag!==22?$9():536870912,$.lanes|=Z,O7|=Z)}function c$($,Z){if(!i0)switch($.tailMode){case"hidden":Z=$.tail;for(var Q=null;Z!==null;)Z.alternate!==null&&(Q=Z),Z=Z.sibling;Q===null?$.tail=null:Q.sibling=null;break;case"collapsed":Q=$.tail;for(var Y=null;Q!==null;)Q.alternate!==null&&(Y=Q),Q=Q.sibling;Y===null?Z||$.tail===null?$.tail=null:$.tail.sibling=null:Y.sibling=null}}function T1($){var Z=$.alternate!==null&&$.alternate.child===$.child,Q=0,Y=0;if(Z)if(($.mode&g0)!==V0){for(var{selfBaseDuration:U,child:B}=$;B!==null;)Q|=B.lanes|B.childLanes,Y|=B.subtreeFlags&65011712,Y|=B.flags&65011712,U+=B.treeBaseDuration,B=B.sibling;$.treeBaseDuration=U}else for(U=$.child;U!==null;)Q|=U.lanes|U.childLanes,Y|=U.subtreeFlags&65011712,Y|=U.flags&65011712,U.return=$,U=U.sibling;else if(($.mode&g0)!==V0){U=$.actualDuration,B=$.selfBaseDuration;for(var z=$.child;z!==null;)Q|=z.lanes|z.childLanes,Y|=z.subtreeFlags,Y|=z.flags,U+=z.actualDuration,B+=z.treeBaseDuration,z=z.sibling;$.actualDuration=U,$.treeBaseDuration=B}else for(U=$.child;U!==null;)Q|=U.lanes|U.childLanes,Y|=U.subtreeFlags,Y|=U.flags,U.return=$,U=U.sibling;return $.subtreeFlags|=Y,$.childLanes=Q,Z}function cP($,Z,Q){var Y=Z.pendingProps;switch(gq(Z),Z.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return T1(Z),null;case 1:return T1(Z),null;case 3:if(Q=Z.stateNode,Y=null,$!==null&&(Y=$.memoizedState.cache),Z.memoizedState.cache!==Y&&(Z.flags|=2048),t4(a1,Z),Y0(Z),Q.pendingContext&&(Q.context=Q.pendingContext,Q.pendingContext=null),$===null||$.child===null)q9(Z)?(uq(),Z8(Z)):$===null||$.memoizedState.isDehydrated&&(Z.flags&256)===0||(Z.flags|=1024,hq());return T1(Z),null;case 26:var{type:U,memoizedState:B}=Z;return $===null?(Z8(Z),B!==null?(T1(Z),vH(Z,B)):(T1(Z),hY(Z,U,null,Y,Q))):B?B!==$.memoizedState?(Z8(Z),T1(Z),vH(Z,B)):(T1(Z),Z.flags&=-16777217):($=$.memoizedProps,$!==Y&&Z8(Z),T1(Z),hY(Z,U,$,Y,Q)),null;case 27:if(d0(Z),Q=v0(o8.current),U=Z.type,$!==null&&Z.stateNode!=null)$.memoizedProps!==Y&&Z8(Z);else{if(!Y){if(Z.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 T1(Z),null}$=F0(),q9(Z)?PB(Z,$):($=ZW(U,Y,Q,$,!0),Z.stateNode=$,Z8(Z))}return T1(Z),null;case 5:if(d0(Z),U=Z.type,$!==null&&Z.stateNode!=null)$.memoizedProps!==Y&&Z8(Z);else{if(!Y){if(Z.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 T1(Z),null}var z=F0();if(q9(Z))PB(Z,z);else{switch(B=v0(o8.current),Cq(U,z.ancestorInfo),z=z.context,B=tQ(B),z){case Z$:B=B.createElementNS(I9,U);break;case Y3:B=B.createElementNS(zG,U);break;default:switch(U){case"svg":B=B.createElementNS(I9,U);break;case"math":B=B.createElementNS(zG,U);break;case"script":B=B.createElement("div"),B.innerHTML="<script></script>",B=B.removeChild(B.firstChild);break;case"select":B=typeof Y.is==="string"?B.createElement("select",{is:Y.is}):B.createElement("select"),Y.multiple?B.multiple=!0:Y.size&&(B.size=Y.size);break;default:B=typeof Y.is==="string"?B.createElement(U,{is:Y.is}):B.createElement(U),U.indexOf("-")===-1&&(U!==U.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",U),Object.prototype.toString.call(B)!=="[object HTMLUnknownElement]"||Z4.call(mM,U)||(mM[U]=!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.",U)))}}B[_5]=Z,B[g5]=Y;$:for(z=Z.child;z!==null;){if(z.tag===5||z.tag===6)B.appendChild(z.stateNode);else if(z.tag!==4&&z.tag!==27&&z.child!==null){z.child.return=z,z=z.child;continue}if(z===Z)break $;for(;z.sibling===null;){if(z.return===null||z.return===Z)break $;z=z.return}z.sibling.return=z.return,z=z.sibling}Z.stateNode=B;$:switch(R5(B,U,Y),U){case"button":case"input":case"select":case"textarea":Y=!!Y.autoFocus;break $;case"img":Y=!0;break $;default:Y=!1}Y&&Z8(Z)}}return T1(Z),hY(Z,Z.type,$===null?null:$.memoizedProps,Z.pendingProps,Q),null;case 6:if($&&Z.stateNode!=null)$.memoizedProps!==Y&&Z8(Z);else{if(typeof Y!=="string"&&Z.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($=v0(o8.current),Q=F0(),q9(Z)){if($=Z.stateNode,Q=Z.memoizedProps,U=!f4,Y=null,B=L5,B!==null)switch(B.tag){case 3:U&&(U=eF($,Q,Y),U!==null&&(e2(Z,0).serverProps=U));break;case 27:case 5:Y=B.memoizedProps,U&&(U=eF($,Q,Y),U!==null&&(e2(Z,0).serverProps=U))}$[_5]=Z,$=$.nodeValue===Q||Y!==null&&Y.suppressHydrationWarning===!0||hF($.nodeValue,Q)?!0:!1,$||g8(Z,!0)}else U=Q.ancestorInfo.current,U!=null&&QQ(Y,U.tag,Q.ancestorInfo.implicitRootScope),$=tQ($).createTextNode(Y),$[_5]=Z,Z.stateNode=$}return T1(Z),null;case 31:if(Q=Z.memoizedState,$===null||$.memoizedState!==null){if(Y=q9(Z),Q!==null){if($===null){if(!Y)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if($=Z.memoizedState,$=$!==null?$.dehydrated:null,!$)throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.");$[_5]=Z,T1(Z),(Z.mode&g0)!==V0&&Q!==null&&($=Z.child,$!==null&&(Z.treeBaseDuration-=$.treeBaseDuration))}else uq(),$7(),(Z.flags&128)===0&&(Q=Z.memoizedState=null),Z.flags|=4,T1(Z),(Z.mode&g0)!==V0&&Q!==null&&($=Z.child,$!==null&&(Z.treeBaseDuration-=$.treeBaseDuration));$=!1}else Q=hq(),$!==null&&$.memoizedState!==null&&($.memoizedState.hydrationErrors=Q),$=!0;if(!$){if(Z.flags&256)return z6(Z),Z;return z6(Z),null}if((Z.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return T1(Z),null;case 13:if(Y=Z.memoizedState,$===null||$.memoizedState!==null&&$.memoizedState.dehydrated!==null){if(U=Y,B=q9(Z),U!==null&&U.dehydrated!==null){if($===null){if(!B)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(B=Z.memoizedState,B=B!==null?B.dehydrated:null,!B)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");B[_5]=Z,T1(Z),(Z.mode&g0)!==V0&&U!==null&&(U=Z.child,U!==null&&(Z.treeBaseDuration-=U.treeBaseDuration))}else uq(),$7(),(Z.flags&128)===0&&(U=Z.memoizedState=null),Z.flags|=4,T1(Z),(Z.mode&g0)!==V0&&U!==null&&(U=Z.child,U!==null&&(Z.treeBaseDuration-=U.treeBaseDuration));U=!1}else U=hq(),$!==null&&$.memoizedState!==null&&($.memoizedState.hydrationErrors=U),U=!0;if(!U){if(Z.flags&256)return z6(Z),Z;return z6(Z),null}}if(z6(Z),(Z.flags&128)!==0)return Z.lanes=Q,(Z.mode&g0)!==V0&&f$(Z),Z;return Q=Y!==null,$=$!==null&&$.memoizedState!==null,Q&&(Y=Z.child,U=null,Y.alternate!==null&&Y.alternate.memoizedState!==null&&Y.alternate.memoizedState.cachePool!==null&&(U=Y.alternate.memoizedState.cachePool.pool),B=null,Y.memoizedState!==null&&Y.memoizedState.cachePool!==null&&(B=Y.memoizedState.cachePool.pool),B!==U&&(Y.flags|=2048)),Q!==$&&Q&&(Z.child.flags|=8192),pQ(Z,Z.updateQueue),T1(Z),(Z.mode&g0)!==V0&&Q&&($=Z.child,$!==null&&(Z.treeBaseDuration-=$.treeBaseDuration)),null;case 4:return Y0(Z),$===null&&ZX(Z.stateNode.containerInfo),T1(Z),null;case 10:return t4(Z.type,Z),T1(Z),null;case 19:if(P0(c1,Z),Y=Z.memoizedState,Y===null)return T1(Z),null;if(U=(Z.flags&128)!==0,B=Y.rendering,B===null)if(U)c$(Y,!1);else{if(v1!==M8||$!==null&&($.flags&128)!==0)for($=Z.child;$!==null;){if(B=VQ($),B!==null){Z.flags|=128,c$(Y,!1),$=B.updateQueue,Z.updateQueue=$,pQ(Z,$),Z.subtreeFlags=0,$=Q;for(Q=Z.child;Q!==null;)zB(Q,$),Q=Q.sibling;return O0(c1,c1.current&p9|vZ,Z),i0&&i4(Z,Y.treeForkCount),Z.child}$=$.sibling}Y.tail!==null&&B5()>sG&&(Z.flags|=128,U=!0,c$(Y,!1),Z.lanes=4194304)}else{if(!U)if($=VQ(B),$!==null){if(Z.flags|=128,U=!0,$=$.updateQueue,Z.updateQueue=$,pQ(Z,$),c$(Y,!0),Y.tail===null&&Y.tailMode==="hidden"&&!B.alternate&&!i0)return T1(Z),null}else 2*B5()-Y.renderingStartTime>sG&&Q!==536870912&&(Z.flags|=128,U=!0,c$(Y,!1),Z.lanes=4194304);Y.isBackwards?(B.sibling=Z.child,Z.child=B):($=Y.last,$!==null?$.sibling=B:Z.child=B,Y.last=B)}if(Y.tail!==null)return $=Y.tail,Y.rendering=$,Y.tail=$.sibling,Y.renderingStartTime=B5(),$.sibling=null,Q=c1.current,Q=U?Q&p9|vZ:Q&p9,O0(c1,Q,Z),i0&&i4(Z,Y.treeForkCount),$;return T1(Z),null;case 22:case 23:return z6(Z),aq(Z),Y=Z.memoizedState!==null,$!==null?$.memoizedState!==null!==Y&&(Z.flags|=8192):Y&&(Z.flags|=8192),Y?(Q&536870912)!==0&&(Z.flags&128)===0&&(T1(Z),Z.subtreeFlags&6&&(Z.flags|=8192)):T1(Z),Q=Z.updateQueue,Q!==null&&pQ(Z,Q.retryQueue),Q=null,$!==null&&$.memoizedState!==null&&$.memoizedState.cachePool!==null&&(Q=$.memoizedState.cachePool.pool),Y=null,Z.memoizedState!==null&&Z.memoizedState.cachePool!==null&&(Y=Z.memoizedState.cachePool.pool),Y!==Q&&(Z.flags|=2048),$!==null&&P0(M7,Z),null;case 24:return Q=null,$!==null&&(Q=$.memoizedState.cache),Z.memoizedState.cache!==Q&&(Z.flags|=2048),t4(a1,Z),T1(Z),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+Z.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function lP($,Z){switch(gq(Z),Z.tag){case 1:return $=Z.flags,$&65536?(Z.flags=$&-65537|128,(Z.mode&g0)!==V0&&f$(Z),Z):null;case 3:return t4(a1,Z),Y0(Z),$=Z.flags,($&65536)!==0&&($&128)===0?(Z.flags=$&-65537|128,Z):null;case 26:case 27:case 5:return d0(Z),null;case 31:if(Z.memoizedState!==null){if(z6(Z),Z.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");$7()}return $=Z.flags,$&65536?(Z.flags=$&-65537|128,(Z.mode&g0)!==V0&&f$(Z),Z):null;case 13:if(z6(Z),$=Z.memoizedState,$!==null&&$.dehydrated!==null){if(Z.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");$7()}return $=Z.flags,$&65536?(Z.flags=$&-65537|128,(Z.mode&g0)!==V0&&f$(Z),Z):null;case 19:return P0(c1,Z),null;case 4:return Y0(Z),null;case 10:return t4(Z.type,Z),null;case 22:case 23:return z6(Z),aq(Z),$!==null&&P0(M7,Z),$=Z.flags,$&65536?(Z.flags=$&-65537|128,(Z.mode&g0)!==V0&&f$(Z),Z):null;case 24:return t4(a1,Z),null;case 25:return null;default:return null}}function bH($,Z){switch(gq(Z),Z.tag){case 3:t4(a1,Z),Y0(Z);break;case 26:case 27:case 5:d0(Z);break;case 4:Y0(Z);break;case 31:Z.memoizedState!==null&&z6(Z);break;case 13:z6(Z);break;case 19:P0(c1,Z);break;case 10:t4(Z.type,Z);break;case 22:case 23:z6(Z),aq(Z),$!==null&&P0(M7,Z);break;case 24:t4(a1,Z)}}function T4($){return($.mode&g0)!==V0}function fH($,Z){T4($)?(P4(),l$(Z,$),L4()):l$(Z,$)}function uY($,Z,Q){T4($)?(P4(),B9(Q,$,Z),L4()):B9(Q,$,Z)}function l$($,Z){try{var Q=Z.updateQueue,Y=Q!==null?Q.lastEffect:null;if(Y!==null){var U=Y.next;Q=U;do{if((Q.tag&$)===$&&(Y=void 0,($&m5)!==yG&&(t9=!0),Y=q0(Z,WO,Q),($&m5)!==yG&&(t9=!1),Y!==void 0&&typeof Y!=="function")){var B=void 0;B=(Q.tag&C6)!==0?"useLayoutEffect":(Q.tag&m5)!==0?"useInsertionEffect":"useEffect";var z=void 0;z=Y===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof Y.then==="function"?`
|
|
141
141
|
|
|
142
142
|
It looks like you wrote `+B+`(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 `+B+`(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: "+Y,X0(Z,function(z,L){console.error("%s must not return anything besides a function, which is used for clean-up.%s",z,L)},B,W)}G=G.next}while(G!==U)}}catch(z){U1(Z,Z.return,z)}}function z7($,Z,G){try{var Y=Z.updateQueue,U=Y!==null?Y.lastEffect:null;if(U!==null){var B=U.next;Y=B;do{if((Y.tag&$)===$){var W=Y.inst,z=W.destroy;z!==void 0&&(W.destroy=void 0,($&c5)!==aG&&(X$=!0),U=Z,X0(U,FO,U,G,z),($&c5)!==aG&&(X$=!1))}Y=Y.next}while(Y!==B)}}catch(L){U1(Z,Z.return,L)}}function GF($,Z){O4($)?(I4(),JZ(Z,$),C4()):JZ(Z,$)}function GY($,Z,G){O4($)?(I4(),z7(G,$,Z),C4()):z7(G,$,Z)}function XF($){var Z=$.updateQueue;if(Z!==null){var G=$.stateNode;$.type.defaultProps||"ref"in $.memoizedProps||$$||(G.props!==$.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.",d($)||"instance"),G.state!==$.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.",d($)||"instance"));try{X0($,YH,Z,G)}catch(Y){U1($,$.return,Y)}}}function cT($,Z,G){return $.getSnapshotBeforeUpdate(Z,G)}function lT($,Z){var{memoizedProps:G,memoizedState:Y}=Z;Z=$.stateNode,$.type.defaultProps||"ref"in $.memoizedProps||$$||(Z.props!==$.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.",d($)||"instance"),Z.state!==$.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.",d($)||"instance"));try{var U=B9($.type,G),B=X0($,cT,Z,U,Y);G=xw,B!==void 0||G.has($.type)||(G.add($.type),X0($,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",d($))})),Z.__reactInternalSnapshotBeforeUpdate=B}catch(W){U1($,$.return,W)}}function qF($,Z,G){G.props=B9($.type,$.memoizedProps),G.state=$.memoizedState,O4($)?(I4(),X0($,Xw,$,Z,G),C4()):X0($,Xw,$,Z,G)}function rT($){var Z=$.ref;if(Z!==null){switch($.tag){case 26:case 27:case 5:var G=$.stateNode;break;case 30:G=$.stateNode;break;default:G=$.stateNode}if(typeof Z==="function")if(O4($))try{I4(),$.refCleanup=Z(G)}finally{C4()}else $.refCleanup=Z(G);else typeof Z==="string"?console.error("String refs are no longer supported."):Z.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",d($)),Z.current=G}}function GZ($,Z){try{X0($,rT,$)}catch(G){U1($,Z,G)}}function V4($,Z){var{ref:G,refCleanup:Y}=$;if(G!==null)if(typeof Y==="function")try{if(O4($))try{I4(),X0($,Y)}finally{C4($)}else X0($,Y)}catch(U){U1($,Z,U)}finally{$.refCleanup=null,$=$.alternate,$!=null&&($.refCleanup=null)}else if(typeof G==="function")try{if(O4($))try{I4(),X0($,G,null)}finally{C4($)}else X0($,G,null)}catch(U){U1($,Z,U)}else G.current=null}function YF($,Z,G,Y){var U=$.memoizedProps,B=U.id,W=U.onCommit;U=U.onRender,Z=Z===null?"mount":"update",cG&&(Z="nested-update"),typeof U==="function"&&U(B,Z,$.actualDuration,$.treeBaseDuration,$.actualStartTime,G),typeof W==="function"&&W(B,Z,Y,G)}function nT($,Z,G,Y){var U=$.memoizedProps;$=U.id,U=U.onPostCommit,Z=Z===null?"mount":"update",cG&&(Z="nested-update"),typeof U==="function"&&U($,Z,Y,G)}function NF($){var{type:Z,memoizedProps:G,stateNode:Y}=$;try{X0($,RC,Y,Z,G,$)}catch(U){U1($,$.return,U)}}function XY($,Z,G){try{X0($,_C,$.stateNode,$.type,G,Z,$)}catch(Y){U1($,$.return,Y)}}function UF($){return $.tag===5||$.tag===3||$.tag===26||$.tag===27&&e8($.type)||$.tag===4}function qY($){$:for(;;){for(;$.sibling===null;){if($.return===null||UF($.return))return null;$=$.return}$.sibling.return=$.return;for($=$.sibling;$.tag!==5&&$.tag!==6&&$.tag!==18;){if($.tag===27&&e8($.type))continue $;if($.flags&2)continue $;if($.child===null||$.tag===4)continue $;else $.child.return=$,$=$.child}if(!($.flags&2))return $.stateNode}}function YY($,Z,G){var Y=$.tag;if(Y===5||Y===6)$=$.stateNode,Z?(wM(G),(G.nodeType===9?G.body:G.nodeName==="HTML"?G.ownerDocument.body:G).insertBefore($,Z)):(wM(G),Z=G.nodeType===9?G.body:G.nodeName==="HTML"?G.ownerDocument.body:G,Z.appendChild($),G=G._reactRootContainer,G!==null&&G!==void 0||Z.onclick!==null||(Z.onclick=e4));else if(Y!==4&&(Y===27&&e8($.type)&&(G=$.stateNode,Z=null),$=$.child,$!==null))for(YY($,Z,G),$=$.sibling;$!==null;)YY($,Z,G),$=$.sibling}function GG($,Z,G){var Y=$.tag;if(Y===5||Y===6)$=$.stateNode,Z?G.insertBefore($,Z):G.appendChild($);else if(Y!==4&&(Y===27&&e8($.type)&&(G=$.stateNode),$=$.child,$!==null))for(GG($,Z,G),$=$.sibling;$!==null;)GG($,Z,G),$=$.sibling}function sT($){for(var Z,G=$.return;G!==null;){if(UF(G)){Z=G;break}G=G.return}if(Z==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(Z.tag){case 27:Z=Z.stateNode,G=qY($),GG($,G,Z);break;case 5:G=Z.stateNode,Z.flags&32&&(WM(G),Z.flags&=-33),Z=qY($),GG($,Z,G);break;case 3:case 4:Z=Z.stateNode.containerInfo,G=qY($),YY($,G,Z);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function KF($){var{stateNode:Z,memoizedProps:G}=$;try{X0($,fC,$.type,G,Z,$)}catch(Y){U1($,$.return,Y)}}function BF($,Z){return Z.tag===31?(Z=Z.memoizedState,$.memoizedState!==null&&Z===null):Z.tag===13?($=$.memoizedState,Z=Z.memoizedState,$!==null&&$.dehydrated!==null&&(Z===null||Z.dehydrated===null)):Z.tag===3?$.memoizedState.isDehydrated&&(Z.flags&256)===0:!1}function oT($,Z){if($=$.containerInfo,qU=I3,$=AB($),cX($)){if("selectionStart"in $)var G={start:$.selectionStart,end:$.selectionEnd};else $:{G=(G=$.ownerDocument)&&G.defaultView||window;var Y=G.getSelection&&G.getSelection();if(Y&&Y.rangeCount!==0){G=Y.anchorNode;var{anchorOffset:U,focusNode:B}=Y;Y=Y.focusOffset;try{G.nodeType,B.nodeType}catch($0){G=null;break $}var W=0,z=-1,L=-1,T=0,k=0,f=$,S=null;Z:for(;;){for(var g;;){if(f!==G||U!==0&&f.nodeType!==3||(z=W+U),f!==B||Y!==0&&f.nodeType!==3||(L=W+Y),f.nodeType===3&&(W+=f.nodeValue.length),(g=f.firstChild)===null)break;S=f,f=g}for(;;){if(f===$)break Z;if(S===G&&++T===U&&(z=W),S===B&&++k===Y&&(L=W),(g=f.nextSibling)!==null)break;f=S,S=f.parentNode}f=g}G=z===-1||L===-1?null:{start:z,end:L}}else G=null}G=G||{start:0,end:0}}else G=null;YU={focusedElem:$,selectionRange:G},I3=!1;for(W5=Z;W5!==null;)if(Z=W5,$=Z.child,(Z.subtreeFlags&1028)!==0&&$!==null)$.return=Z,W5=$;else for(;W5!==null;){switch($=Z=W5,G=$.alternate,U=$.flags,$.tag){case 0:if((U&4)!==0&&($=$.updateQueue,$=$!==null?$.events:null,$!==null))for(G=0;G<$.length;G++)U=$[G],U.ref.impl=U.nextImpl;break;case 11:case 15:break;case 1:(U&1024)!==0&&G!==null&&lT($,G);break;case 3:if((U&1024)!==0){if($=$.stateNode.containerInfo,G=$.nodeType,G===9)AY($);else if(G===1)switch($.nodeName){case"HEAD":case"HTML":case"BODY":AY($);break;default:$.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((U&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($=Z.sibling,$!==null){$.return=Z.return,W5=$;break}W5=Z.return}}function HF($,Z,G){var Y=w6(),U=_4(),B=P4(),W=T4(),z=G.flags;switch(G.tag){case 0:case 11:case 15:A4($,G),z&4&&JF(G,V6|d6);break;case 1:if(A4($,G),z&4)if($=G.stateNode,Z===null)G.type.defaultProps||"ref"in G.memoizedProps||$$||($.props!==G.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.",d(G)||"instance"),$.state!==G.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.",d(G)||"instance")),O4(G)?(I4(),X0(G,EN,G,$),C4()):X0(G,EN,G,$);else{var L=B9(G.type,Z.memoizedProps);Z=Z.memoizedState,G.type.defaultProps||"ref"in G.memoizedProps||$$||($.props!==G.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.",d(G)||"instance"),$.state!==G.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.",d(G)||"instance")),O4(G)?(I4(),X0(G,Qw,G,$,L,Z,$.__reactInternalSnapshotBeforeUpdate),C4()):X0(G,Qw,G,$,L,Z,$.__reactInternalSnapshotBeforeUpdate)}z&64&&XF(G),z&512&&GZ(G,G.return);break;case 3:if(Z=J8(),A4($,G),z&64&&(z=G.updateQueue,z!==null)){if(L=null,G.child!==null)switch(G.child.tag){case 27:case 5:L=G.child.stateNode;break;case 1:L=G.child.stateNode}try{X0(G,YH,z,L)}catch(k){U1(G,G.return,k)}}$.effectDuration+=DJ(Z);break;case 27:Z===null&&z&4&&KF(G);case 26:case 5:if(A4($,G),Z===null){if(z&4)NF(G);else if(z&64){$=G.type,Z=G.memoizedProps,L=G.stateNode;try{X0(G,zC,L,$,Z,G)}catch(k){U1(G,G.return,k)}}}z&512&&GZ(G,G.return);break;case 12:if(z&4){z=J8(),A4($,G),$=G.stateNode,$.effectDuration+=r$(z);try{X0(G,YF,G,Z,U2,$.effectDuration)}catch(k){U1(G,G.return,k)}}else A4($,G);break;case 31:A4($,G),z&4&&WF($,G);break;case 13:A4($,G),z&4&&wF($,G),z&64&&($=G.memoizedState,$!==null&&($=$.dehydrated,$!==null&&(z=GC.bind(null,G),DC($,z))));break;case 22:if(z=G.memoizedState!==null||_8,!z){Z=Z!==null&&Z.memoizedState!==null||Q5,L=_8;var T=Q5;_8=z,(Q5=Z)&&!T?(E4($,G,(G.subtreeFlags&8772)!==0),(G.mode&g0)!==V0&&0<=L0&&0<=T0&&0.05<T0-L0&&PJ(G,L0,T0)):A4($,G),_8=L,Q5=T}break;case 30:break;default:A4($,G)}(G.mode&g0)!==V0&&0<=L0&&0<=T0&&((u1||0.05<k1)&&R4(G,L0,T0,k1,b1),G.alternate===null&&G.return!==null&&G.return.alternate!==null&&0.05<T0-L0&&(BF(G.return.alternate,G.return)||w4(G,L0,T0,"Mount"))),R6(Y),L4(U),b1=B,u1=W}function FF($){var Z=$.alternate;Z!==null&&($.alternate=null,FF(Z)),$.child=null,$.deletions=null,$.sibling=null,$.tag===5&&(Z=$.stateNode,Z!==null&&Z0(Z)),$.stateNode=null,$._debugOwner=null,$.return=null,$.dependencies=null,$.memoizedProps=null,$.memoizedState=null,$.pendingProps=null,$.stateNode=null,$.updateQueue=null}function q8($,Z,G){for(G=G.child;G!==null;)MF($,Z,G),G=G.sibling}function MF($,Z,G){if(D5&&typeof D5.onCommitFiberUnmount==="function")try{D5.onCommitFiberUnmount(j7,G)}catch(T){k4||(k4=!0,console.error("React instrumentation encountered an error: %o",T))}var Y=w6(),U=_4(),B=P4(),W=T4();switch(G.tag){case 26:Q5||V4(G,Z),q8($,Z,G),G.memoizedState?G.memoizedState.count--:G.stateNode&&($=G.stateNode,$.parentNode.removeChild($));break;case 27:Q5||V4(G,Z);var z=J5,L=i5;e8(G.type)&&(J5=G.stateNode,i5=!1),q8($,Z,G),X0(G,FZ,G.stateNode),J5=z,i5=L;break;case 5:Q5||V4(G,Z);case 6:if(z=J5,L=i5,J5=null,q8($,Z,G),J5=z,i5=L,J5!==null)if(i5)try{X0(G,TC,J5,G.stateNode)}catch(T){U1(G,Z,T)}else try{X0(G,PC,J5,G.stateNode)}catch(T){U1(G,Z,T)}break;case 18:J5!==null&&(i5?($=J5,RM($.nodeType===9?$.body:$.nodeName==="HTML"?$.ownerDocument.body:$,G.stateNode),V7($)):RM(J5,G.stateNode));break;case 4:z=J5,L=i5,J5=G.stateNode.containerInfo,i5=!0,q8($,Z,G),J5=z,i5=L;break;case 0:case 11:case 14:case 15:z7(c5,G,Z),Q5||JY(G,Z,V6),q8($,Z,G);break;case 1:Q5||(V4(G,Z),z=G.stateNode,typeof z.componentWillUnmount==="function"&&qF(G,Z,z)),q8($,Z,G);break;case 21:q8($,Z,G);break;case 22:Q5=(z=Q5)||G.memoizedState!==null,q8($,Z,G),Q5=z;break;default:q8($,Z,G)}(G.mode&g0)!==V0&&0<=L0&&0<=T0&&(u1||0.05<k1)&&R4(G,L0,T0,k1,b1),R6(Y),L4(U),b1=B,u1=W}function WF($,Z){if(Z.memoizedState===null&&($=Z.alternate,$!==null&&($=$.memoizedState,$!==null))){$=$.dehydrated;try{X0(Z,bC,$)}catch(G){U1(Z,Z.return,G)}}}function wF($,Z){if(Z.memoizedState===null&&($=Z.alternate,$!==null&&($=$.memoizedState,$!==null&&($=$.dehydrated,$!==null))))try{X0(Z,kC,$)}catch(G){U1(Z,Z.return,G)}}function aT($){switch($.tag){case 31:case 13:case 19:var Z=$.stateNode;return Z===null&&(Z=$.stateNode=new mw),Z;case 22:return $=$.stateNode,Z=$._retryCache,Z===null&&(Z=$._retryCache=new mw),Z;default:throw Error("Unexpected Suspense handler tag ("+$.tag+"). This is a bug in React.")}}function XG($,Z){var G=aT($);Z.forEach(function(Y){if(!G.has(Y)){if(G.add(Y),f4)if(Z$!==null&&Q$!==null)NZ(Q$,Z$);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var U=XC.bind(null,$,Y);Y.then(U,U)}})}function o5($,Z){var G=Z.deletions;if(G!==null)for(var Y=0;Y<G.length;Y++){var U=$,B=Z,W=G[Y],z=w6(),L=B;$:for(;L!==null;){switch(L.tag){case 27:if(e8(L.type)){J5=L.stateNode,i5=!1;break $}break;case 5:J5=L.stateNode,i5=!1;break $;case 3:case 4:J5=L.stateNode.containerInfo,i5=!0;break $}L=L.return}if(J5===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");MF(U,B,W),J5=null,i5=!1,(W.mode&g0)!==V0&&0<=L0&&0<=T0&&0.05<T0-L0&&w4(W,L0,T0,"Unmount"),R6(z),U=W,B=U.alternate,B!==null&&(B.return=null),U.return=null}if(Z.subtreeFlags&13886)for(Z=Z.child;Z!==null;)RF(Z,$),Z=Z.sibling}function RF($,Z){var G=w6(),Y=_4(),U=P4(),B=T4(),W=$.alternate,z=$.flags;switch($.tag){case 0:case 11:case 14:case 15:o5(Z,$),a5($),z&4&&(z7(c5|d6,$,$.return),JZ(c5|d6,$),JY($,$.return,V6|d6));break;case 1:if(o5(Z,$),a5($),z&512&&(Q5||W===null||V4(W,W.return)),z&64&&_8&&(z=$.updateQueue,z!==null&&(W=z.callbacks,W!==null))){var L=z.shared.hiddenCallbacks;z.shared.hiddenCallbacks=L===null?W:L.concat(W)}break;case 26:if(L=U4,o5(Z,$),a5($),z&512&&(Q5||W===null||V4(W,W.return)),z&4){var T=W!==null?W.memoizedState:null;if(z=$.memoizedState,W===null)if(z===null)if($.stateNode===null){$:{z=$.type,W=$.memoizedProps,L=L.ownerDocument||L;Z:switch(z){case"title":if(T=L.getElementsByTagName("title")[0],!T||T[LZ]||T[P5]||T.namespaceURI===v7||T.hasAttribute("itemprop"))T=L.createElement(z),L.head.insertBefore(T,L.querySelector("head > title"));L5(T,z,W),T[P5]=$,_0(T),z=T;break $;case"link":var k=EM("link","href",L).get(z+(W.href||""));if(k){for(var f=0;f<k.length;f++)if(T=k[f],T.getAttribute("href")===(W.href==null||W.href===""?null:W.href)&&T.getAttribute("rel")===(W.rel==null?null:W.rel)&&T.getAttribute("title")===(W.title==null?null:W.title)&&T.getAttribute("crossorigin")===(W.crossOrigin==null?null:W.crossOrigin)){k.splice(f,1);break Z}}T=L.createElement(z),L5(T,z,W),L.head.appendChild(T);break;case"meta":if(k=EM("meta","content",L).get(z+(W.content||""))){for(f=0;f<k.length;f++)if(T=k[f],w1(W.content,"content"),T.getAttribute("content")===(W.content==null?null:""+W.content)&&T.getAttribute("name")===(W.name==null?null:W.name)&&T.getAttribute("property")===(W.property==null?null:W.property)&&T.getAttribute("http-equiv")===(W.httpEquiv==null?null:W.httpEquiv)&&T.getAttribute("charset")===(W.charSet==null?null:W.charSet)){k.splice(f,1);break Z}}T=L.createElement(z),L5(T,z,W),L.head.appendChild(T);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+z+'". This is a bug in React.')}T[P5]=$,_0(T),z=T}$.stateNode=z}else SM(L,$.type,$.stateNode);else $.stateNode=AM(L,z,$.memoizedProps);else T!==z?(T===null?W.stateNode!==null&&(W=W.stateNode,W.parentNode.removeChild(W)):T.count--,z===null?SM(L,$.type,$.stateNode):AM(L,z,$.memoizedProps)):z===null&&$.stateNode!==null&&XY($,$.memoizedProps,W.memoizedProps)}break;case 27:o5(Z,$),a5($),z&512&&(Q5||W===null||V4(W,W.return)),W!==null&&z&4&&XY($,$.memoizedProps,W.memoizedProps);break;case 5:if(o5(Z,$),a5($),z&512&&(Q5||W===null||V4(W,W.return)),$.flags&32){L=$.stateNode;try{X0($,WM,L)}catch(G0){U1($,$.return,G0)}}z&4&&$.stateNode!=null&&(L=$.memoizedProps,XY($,L,W!==null?W.memoizedProps:L)),z&1024&&(mN=!0,$.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(o5(Z,$),a5($),z&4){if($.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.");z=$.memoizedProps,W=W!==null?W.memoizedProps:z,L=$.stateNode;try{X0($,LC,L,W,z)}catch(G0){U1($,$.return,G0)}}break;case 3:if(L=J8(),P3=null,T=U4,U4=FG(Z.containerInfo),o5(Z,$),U4=T,a5($),z&4&&W!==null&&W.memoizedState.isDehydrated)try{X0($,vC,Z.containerInfo)}catch(G0){U1($,$.return,G0)}mN&&(mN=!1,zF($)),Z.effectDuration+=DJ(L);break;case 4:z=U4,U4=FG($.stateNode.containerInfo),o5(Z,$),a5($),U4=z;break;case 12:z=J8(),o5(Z,$),a5($),$.stateNode.effectDuration+=r$(z);break;case 31:o5(Z,$),a5($),z&4&&(z=$.updateQueue,z!==null&&($.updateQueue=null,XG($,z)));break;case 13:o5(Z,$),a5($),$.child.flags&8192&&$.memoizedState!==null!==(W!==null&&W.memoizedState!==null)&&(q3=F5()),z&4&&(z=$.updateQueue,z!==null&&($.updateQueue=null,XG($,z)));break;case 22:L=$.memoizedState!==null;var S=W!==null&&W.memoizedState!==null,g=_8,$0=Q5;if(_8=g||L,Q5=$0||S,o5(Z,$),Q5=$0,_8=g,S&&!L&&!g&&!$0&&($.mode&g0)!==V0&&0<=L0&&0<=T0&&0.05<T0-L0&&PJ($,L0,T0),a5($),z&8192)$:for(Z=$.stateNode,Z._visibility=L?Z._visibility&~SZ:Z._visibility|SZ,!L||W===null||S||_8||Q5||(H9($),($.mode&g0)!==V0&&0<=L0&&0<=T0&&0.05<T0-L0&&w4($,L0,T0,"Disconnect")),W=null,Z=$;;){if(Z.tag===5||Z.tag===26){if(W===null){S=W=Z;try{T=S.stateNode,L?X0(S,IC,T):X0(S,AC,S.stateNode,S.memoizedProps)}catch(G0){U1(S,S.return,G0)}}}else if(Z.tag===6){if(W===null){S=Z;try{k=S.stateNode,L?X0(S,OC,k):X0(S,EC,k,S.memoizedProps)}catch(G0){U1(S,S.return,G0)}}}else if(Z.tag===18){if(W===null){S=Z;try{f=S.stateNode,L?X0(S,CC,f):X0(S,VC,S.stateNode)}catch(G0){U1(S,S.return,G0)}}}else if((Z.tag!==22&&Z.tag!==23||Z.memoizedState===null||Z===$)&&Z.child!==null){Z.child.return=Z,Z=Z.child;continue}if(Z===$)break $;for(;Z.sibling===null;){if(Z.return===null||Z.return===$)break $;W===Z&&(W=null),Z=Z.return}W===Z&&(W=null),Z.sibling.return=Z.return,Z=Z.sibling}z&4&&(z=$.updateQueue,z!==null&&(W=z.retryQueue,W!==null&&(z.retryQueue=null,XG($,W))));break;case 19:o5(Z,$),a5($),z&4&&(z=$.updateQueue,z!==null&&($.updateQueue=null,XG($,z)));break;case 30:break;case 21:break;default:o5(Z,$),a5($)}($.mode&g0)!==V0&&0<=L0&&0<=T0&&((u1||0.05<k1)&&R4($,L0,T0,k1,b1),$.alternate===null&&$.return!==null&&$.return.alternate!==null&&0.05<T0-L0&&(BF($.return.alternate,$.return)||w4($,L0,T0,"Mount"))),R6(G),L4(Y),b1=U,u1=B}function a5($){var Z=$.flags;if(Z&2){try{X0($,sT,$)}catch(G){U1($,$.return,G)}$.flags&=-3}Z&4096&&($.flags&=-4097)}function zF($){if($.subtreeFlags&1024)for($=$.child;$!==null;){var Z=$;zF(Z),Z.tag===5&&Z.flags&1024&&Z.stateNode.reset(),$=$.sibling}}function A4($,Z){if(Z.subtreeFlags&8772)for(Z=Z.child;Z!==null;)HF($,Z.alternate,Z),Z=Z.sibling}function _F($){var Z=w6(),G=_4(),Y=P4(),U=T4();switch($.tag){case 0:case 11:case 14:case 15:JY($,$.return,V6),H9($);break;case 1:V4($,$.return);var B=$.stateNode;typeof B.componentWillUnmount==="function"&&qF($,$.return,B),H9($);break;case 27:X0($,FZ,$.stateNode);case 26:case 5:V4($,$.return),H9($);break;case 22:$.memoizedState===null&&H9($);break;case 30:H9($);break;default:H9($)}($.mode&g0)!==V0&&0<=L0&&0<=T0&&(u1||0.05<k1)&&R4($,L0,T0,k1,b1),R6(Z),L4(G),b1=Y,u1=U}function H9($){for($=$.child;$!==null;)_F($),$=$.sibling}function LF($,Z,G,Y){var U=w6(),B=_4(),W=P4(),z=T4(),L=G.flags;switch(G.tag){case 0:case 11:case 15:E4($,G,Y),JF(G,V6);break;case 1:if(E4($,G,Y),Z=G.stateNode,typeof Z.componentDidMount==="function"&&X0(G,EN,G,Z),Z=G.updateQueue,Z!==null){$=G.stateNode;try{X0(G,vT,Z,$)}catch(T){U1(G,G.return,T)}}Y&&L&64&&XF(G),GZ(G,G.return);break;case 27:KF(G);case 26:case 5:E4($,G,Y),Y&&Z===null&&L&4&&NF(G),GZ(G,G.return);break;case 12:if(Y&&L&4){L=J8(),E4($,G,Y),Y=G.stateNode,Y.effectDuration+=r$(L);try{X0(G,YF,G,Z,U2,Y.effectDuration)}catch(T){U1(G,G.return,T)}}else E4($,G,Y);break;case 31:E4($,G,Y),Y&&L&4&&WF($,G);break;case 13:E4($,G,Y),Y&&L&4&&wF($,G);break;case 22:G.memoizedState===null&&E4($,G,Y),GZ(G,G.return);break;case 30:break;default:E4($,G,Y)}(G.mode&g0)!==V0&&0<=L0&&0<=T0&&(u1||0.05<k1)&&R4(G,L0,T0,k1,b1),R6(U),L4(B),b1=W,u1=z}function E4($,Z,G){G=G&&(Z.subtreeFlags&8772)!==0;for(Z=Z.child;Z!==null;)LF($,Z.alternate,Z,G),Z=Z.sibling}function NY($,Z){var G=null;$!==null&&$.memoizedState!==null&&$.memoizedState.cachePool!==null&&(G=$.memoizedState.cachePool.pool),$=null,Z.memoizedState!==null&&Z.memoizedState.cachePool!==null&&($=Z.memoizedState.cachePool.pool),$!==G&&($!=null&&Y9($),G!=null&&l$(G))}function UY($,Z){$=null,Z.alternate!==null&&($=Z.alternate.memoizedState.cache),Z=Z.memoizedState.cache,Z!==$&&(Y9(Z),$!=null&&l$($))}function J4($,Z,G,Y,U){if(Z.subtreeFlags&10256||Z.actualDuration!==0&&(Z.alternate===null||Z.alternate.child!==Z.child))for(Z=Z.child;Z!==null;){var B=Z.sibling;PF($,Z,G,Y,B!==null?B.actualStartTime:U),Z=B}}function PF($,Z,G,Y,U){var B=w6(),W=_4(),z=P4(),L=T4(),T=X2,k=Z.flags;switch(Z.tag){case 0:case 11:case 15:(Z.mode&g0)!==V0&&0<Z.actualStartTime&&(Z.flags&1)!==0&&TJ(Z,Z.actualStartTime,U,Y5,G),J4($,Z,G,Y,U),k&2048&&GF(Z,l5|d6);break;case 1:(Z.mode&g0)!==V0&&0<Z.actualStartTime&&((Z.flags&128)!==0?rX(Z,Z.actualStartTime,U,[]):(Z.flags&1)!==0&&TJ(Z,Z.actualStartTime,U,Y5,G)),J4($,Z,G,Y,U);break;case 3:var f=J8(),S=Y5;Y5=Z.alternate!==null&&Z.alternate.memoizedState.isDehydrated&&(Z.flags&256)===0,J4($,Z,G,Y,U),Y5=S,k&2048&&(G=null,Z.alternate!==null&&(G=Z.alternate.memoizedState.cache),Y=Z.memoizedState.cache,Y!==G&&(Y9(Y),G!=null&&l$(G))),$.passiveEffectDuration+=DJ(f);break;case 12:if(k&2048){k=J8(),J4($,Z,G,Y,U),$=Z.stateNode,$.passiveEffectDuration+=r$(k);try{X0(Z,nT,Z,Z.alternate,U2,$.passiveEffectDuration)}catch(g){U1(Z,Z.return,g)}}else J4($,Z,G,Y,U);break;case 31:k=Y5,f=Z.alternate!==null?Z.alternate.memoizedState:null,S=Z.memoizedState,f!==null&&S===null?(S=Z.deletions,S!==null&&0<S.length&&S[0].tag===18?(Y5=!1,f=f.hydrationErrors,f!==null&&rX(Z,Z.actualStartTime,U,f)):Y5=!0):Y5=!1,J4($,Z,G,Y,U),Y5=k;break;case 13:k=Y5,f=Z.alternate!==null?Z.alternate.memoizedState:null,S=Z.memoizedState,f===null||f.dehydrated===null||S!==null&&S.dehydrated!==null?Y5=!1:(S=Z.deletions,S!==null&&0<S.length&&S[0].tag===18?(Y5=!1,f=f.hydrationErrors,f!==null&&rX(Z,Z.actualStartTime,U,f)):Y5=!0),J4($,Z,G,Y,U),Y5=k;break;case 23:break;case 22:S=Z.stateNode,f=Z.alternate,Z.memoizedState!==null?S._visibility&U8?J4($,Z,G,Y,U):XZ($,Z,G,Y,U):S._visibility&U8?J4($,Z,G,Y,U):(S._visibility|=U8,_7($,Z,G,Y,(Z.subtreeFlags&10256)!==0||Z.actualDuration!==0&&(Z.alternate===null||Z.alternate.child!==Z.child),U),(Z.mode&g0)===V0||Y5||($=Z.actualStartTime,0<=$&&0.05<U-$&&PJ(Z,$,U),0<=L0&&0<=T0&&0.05<T0-L0&&PJ(Z,L0,T0))),k&2048&&NY(f,Z);break;case 24:J4($,Z,G,Y,U),k&2048&&UY(Z.alternate,Z);break;default:J4($,Z,G,Y,U)}if((Z.mode&g0)!==V0){if($=!Y5&&Z.alternate===null&&Z.return!==null&&Z.return.alternate!==null)G=Z.actualStartTime,0<=G&&0.05<U-G&&w4(Z,G,U,"Mount");0<=L0&&0<=T0&&((u1||0.05<k1)&&R4(Z,L0,T0,k1,b1),$&&0.05<T0-L0&&w4(Z,L0,T0,"Mount"))}R6(B),L4(W),b1=z,u1=L,X2=T}function _7($,Z,G,Y,U,B){U=U&&((Z.subtreeFlags&10256)!==0||Z.actualDuration!==0&&(Z.alternate===null||Z.alternate.child!==Z.child));for(Z=Z.child;Z!==null;){var W=Z.sibling;TF($,Z,G,Y,U,W!==null?W.actualStartTime:B),Z=W}}function TF($,Z,G,Y,U,B){var W=w6(),z=_4(),L=P4(),T=T4(),k=X2;U&&(Z.mode&g0)!==V0&&0<Z.actualStartTime&&(Z.flags&1)!==0&&TJ(Z,Z.actualStartTime,B,Y5,G);var f=Z.flags;switch(Z.tag){case 0:case 11:case 15:_7($,Z,G,Y,U,B),GF(Z,l5);break;case 23:break;case 22:var S=Z.stateNode;Z.memoizedState!==null?S._visibility&U8?_7($,Z,G,Y,U,B):XZ($,Z,G,Y,B):(S._visibility|=U8,_7($,Z,G,Y,U,B)),U&&f&2048&&NY(Z.alternate,Z);break;case 24:_7($,Z,G,Y,U,B),U&&f&2048&&UY(Z.alternate,Z);break;default:_7($,Z,G,Y,U,B)}(Z.mode&g0)!==V0&&0<=L0&&0<=T0&&(u1||0.05<k1)&&R4(Z,L0,T0,k1,b1),R6(W),L4(z),b1=L,u1=T,X2=k}function XZ($,Z,G,Y,U){if(Z.subtreeFlags&10256||Z.actualDuration!==0&&(Z.alternate===null||Z.alternate.child!==Z.child))for(var B=Z.child;B!==null;){Z=B.sibling;var W=$,z=G,L=Y,T=Z!==null?Z.actualStartTime:U,k=X2;(B.mode&g0)!==V0&&0<B.actualStartTime&&(B.flags&1)!==0&&TJ(B,B.actualStartTime,T,Y5,z);var f=B.flags;switch(B.tag){case 22:XZ(W,B,z,L,T),f&2048&&NY(B.alternate,B);break;case 24:XZ(W,B,z,L,T),f&2048&&UY(B.alternate,B);break;default:XZ(W,B,z,L,T)}X2=k,B=Z}}function L7($,Z,G){if($.subtreeFlags&oZ)for($=$.child;$!==null;)CF($,Z,G),$=$.sibling}function CF($,Z,G){switch($.tag){case 26:L7($,Z,G),$.flags&oZ&&$.memoizedState!==null&&hC(G,U4,$.memoizedState,$.memoizedProps);break;case 5:L7($,Z,G);break;case 3:case 4:var Y=U4;U4=FG($.stateNode.containerInfo),L7($,Z,G),U4=Y;break;case 22:$.memoizedState===null&&(Y=$.alternate,Y!==null&&Y.memoizedState!==null?(Y=oZ,oZ=16777216,L7($,Z,G),oZ=Y):L7($,Z,G));break;default:L7($,Z,G)}}function IF($){var Z=$.alternate;if(Z!==null&&($=Z.child,$!==null)){Z.child=null;do Z=$.sibling,$.sibling=null,$=Z;while($!==null)}}function qZ($){var Z=$.deletions;if(($.flags&16)!==0){if(Z!==null)for(var G=0;G<Z.length;G++){var Y=Z[G],U=w6();W5=Y,AF(Y,$),(Y.mode&g0)!==V0&&0<=L0&&0<=T0&&0.05<T0-L0&&w4(Y,L0,T0,"Unmount"),R6(U)}IF($)}if($.subtreeFlags&10256)for($=$.child;$!==null;)OF($),$=$.sibling}function OF($){var Z=w6(),G=_4(),Y=P4(),U=T4();switch($.tag){case 0:case 11:case 15:qZ($),$.flags&2048&&GY($,$.return,l5|d6);break;case 3:var B=J8();qZ($),$.stateNode.passiveEffectDuration+=DJ(B);break;case 12:B=J8(),qZ($),$.stateNode.passiveEffectDuration+=r$(B);break;case 22:B=$.stateNode,$.memoizedState!==null&&B._visibility&U8&&($.return===null||$.return.tag!==13)?(B._visibility&=~U8,qG($),($.mode&g0)!==V0&&0<=L0&&0<=T0&&0.05<T0-L0&&w4($,L0,T0,"Disconnect")):qZ($);break;default:qZ($)}($.mode&g0)!==V0&&0<=L0&&0<=T0&&(u1||0.05<k1)&&R4($,L0,T0,k1,b1),R6(Z),L4(G),u1=U,b1=Y}function qG($){var Z=$.deletions;if(($.flags&16)!==0){if(Z!==null)for(var G=0;G<Z.length;G++){var Y=Z[G],U=w6();W5=Y,AF(Y,$),(Y.mode&g0)!==V0&&0<=L0&&0<=T0&&0.05<T0-L0&&w4(Y,L0,T0,"Unmount"),R6(U)}IF($)}for($=$.child;$!==null;)VF($),$=$.sibling}function VF($){var Z=w6(),G=_4(),Y=P4(),U=T4();switch($.tag){case 0:case 11:case 15:GY($,$.return,l5),qG($);break;case 22:var B=$.stateNode;B._visibility&U8&&(B._visibility&=~U8,qG($));break;default:qG($)}($.mode&g0)!==V0&&0<=L0&&0<=T0&&(u1||0.05<k1)&&R4($,L0,T0,k1,b1),R6(Z),L4(G),u1=U,b1=Y}function AF($,Z){for(;W5!==null;){var G=W5,Y=G,U=Z,B=w6(),W=_4(),z=P4(),L=T4();switch(Y.tag){case 0:case 11:case 15:GY(Y,U,l5);break;case 23:case 22:Y.memoizedState!==null&&Y.memoizedState.cachePool!==null&&(U=Y.memoizedState.cachePool.pool,U!=null&&Y9(U));break;case 24:l$(Y.memoizedState.cache)}if((Y.mode&g0)!==V0&&0<=L0&&0<=T0&&(u1||0.05<k1)&&R4(Y,L0,T0,k1,b1),R6(B),L4(W),u1=L,b1=z,Y=G.child,Y!==null)Y.return=G,W5=Y;else $:for(G=$;W5!==null;){if(Y=W5,B=Y.sibling,W=Y.return,FF(Y),Y===G){W5=null;break $}if(B!==null){B.return=W,W5=B;break $}W5=W}}}function iT(){zO.forEach(function($){return $()})}function EF(){var $=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return $||x.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),$}function _6($){if((Z1&N5)!==w5&&u0!==0)return u0&-u0;var Z=x.T;return Z!==null?(Z._updatedFibers||(Z._updatedFibers=new Set),Z._updatedFibers.add($),RY()):y()}function SF(){if(e5===0)if((u0&536870912)===0||i0){var $=OG;OG<<=1,(OG&3932160)===0&&(OG=262144),e5=$}else e5=536870912;return $=O6.current,$!==null&&($.flags|=32),e5}function h1($,Z,G){if(X$&&console.error("useInsertionEffect must not schedule updates."),tN&&(K3=!0),$===P1&&(M1===A9||M1===E9)||$.cancelPendingCommit!==null)T7($,0),i8($,u0,e5,!1);if(u8($,G),(Z1&N5)!==w5&&$===P1){if(b4)switch(Z.tag){case 0:case 11:case 15:$=x0&&d(x0)||"Unknown",QR.has($)||(QR.add($),Z=d(Z)||"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",Z,$,$));break;case 1:ZR||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),ZR=!0)}}else f4&&k$($,Z,G),YC(Z),$===P1&&((Z1&N5)===w5&&(z2|=G),f1===W2&&i8($,u0,e5,!1)),S4($)}function jF($,Z,G){if((Z1&(N5|A6))!==w5)throw Error("Should not already be working.");if(u0!==0&&x0!==null){var Y=x0,U=F5();switch(sW){case tZ:case A9:var B=fZ;A1&&((Y=Y._debugTask)?Y.run(console.timeStamp.bind(console,"Suspended",B,U,k6,void 0,"primary-light")):console.timeStamp("Suspended",B,U,k6,void 0,"primary-light"));break;case E9:B=fZ,A1&&((Y=Y._debugTask)?Y.run(console.timeStamp.bind(console,"Action",B,U,k6,void 0,"primary-light")):console.timeStamp("Action",B,U,k6,void 0,"primary-light"));break;default:A1&&(Y=U-fZ,3>Y||console.timeStamp("Blocked",fZ,U,k6,void 0,5>Y?"primary-light":10>Y?"primary":100>Y?"primary-dark":"error"))}}B=(G=!G&&(Z&127)===0&&(Z&$.expiredLanes)===0||s2($,Z))?eT($,Z):BY($,Z,!0);var W=G;do{if(B===L8){J$&&!G&&i8($,Z,0,!1),Z=M1,fZ=e1(),sW=Z;break}else{if(Y=F5(),U=$.current.alternate,W&&!tT(U)){M6(Z),U=M5,B=Y,!A1||B<=U||(l1?l1.run(console.timeStamp.bind(console,"Teared Render",U,B,o0,r0,"error")):console.timeStamp("Teared Render",U,B,o0,r0,"error")),F9(Z,Y),B=BY($,Z,!1),W=!1;continue}if(B===V9){if(W=Z,$.errorRecoveryDisabledLanes&W)var z=0;else z=$.pendingLanes&-536870913,z=z!==0?z:z&536870912?536870912:0;if(z!==0){M6(Z),nX(M5,Y,Z,l1),F9(Z,Y),Z=z;$:{Y=$,B=W,W=$Q;var L=Y.current.memoizedState.isDehydrated;if(L&&(T7(Y,z).flags|=256),z=BY(Y,z,!1),z!==V9){if(cN&&!L){Y.errorRecoveryDisabledLanes|=B,z2|=B,B=W2;break $}Y=r5,r5=W,Y!==null&&(r5===null?r5=Y:r5.push.apply(r5,Y))}B=z}if(W=!1,B!==V9)continue;else Y=F5()}}if(B===iZ){M6(Z),nX(M5,Y,Z,l1),F9(Z,Y),T7($,0),i8($,Z,0,!0);break}$:{switch(G=$,B){case L8:case iZ:throw Error("Root did not complete. This is a bug in React.");case W2:if((Z&4194048)!==Z)break;case Q3:M6(Z),jB(M5,Y,Z,l1),F9(Z,Y),U=Z,(U&127)!==0?mG=Y:(U&4194048)!==0&&(dG=Y),i8(G,Z,e5,!w2);break $;case V9:r5=null;break;case Z3:case dw:break;default:throw Error("Unknown root exit status.")}if(x.actQueue!==null)HY(G,U,Z,r5,ZQ,X3,e5,z2,S9,B,null,null,M5,Y);else{if((Z&62914560)===Z&&(W=q3+lw-F5(),10<W)){if(i8(G,Z,e5,!w2),n2(G,0,!0)!==0)break $;K4=Z,G.timeoutHandle=KR(DF.bind(null,G,U,r5,ZQ,X3,Z,e5,z2,S9,w2,B,"Throttled",M5,Y),W);break $}DF(G,U,r5,ZQ,X3,Z,e5,z2,S9,w2,B,null,M5,Y)}}}break}while(1);S4($)}function DF($,Z,G,Y,U,B,W,z,L,T,k,f,S,g){$.timeoutHandle=k9;var $0=Z.subtreeFlags,G0=null;if($0&8192||($0&16785408)===16785408){if(G0={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:e4},CF(Z,B,G0),$0=(B&62914560)===B?q3-F5():(B&4194048)===B?cw-F5():0,$0=uC(G0,$0),$0!==null){K4=B,$.cancelPendingCommit=$0(HY.bind(null,$,Z,B,G,Y,U,W,z,L,k,G0,G0.waitingForViewTransition?"Waiting for the previous Animation":0<G0.count?0<G0.imgCount?"Suspended on CSS and Images":"Suspended on CSS":G0.imgCount===1?"Suspended on an Image":0<G0.imgCount?"Suspended on Images":null,S,g)),i8($,B,W,!T);return}}HY($,Z,B,G,Y,U,W,z,L,k,G0,f,S,g)}function tT($){for(var Z=$;;){var G=Z.tag;if((G===0||G===11||G===15)&&Z.flags&16384&&(G=Z.updateQueue,G!==null&&(G=G.stores,G!==null)))for(var Y=0;Y<G.length;Y++){var U=G[Y],B=U.getSnapshot;U=U.value;try{if(!d5(B(),U))return!1}catch(W){return!1}}if(G=Z.child,Z.subtreeFlags&16384&&G!==null)G.return=Z,Z=G;else{if(Z===$)break;for(;Z.sibling===null;){if(Z.return===null||Z.return===$)return!0;Z=Z.return}Z.sibling.return=Z.return,Z=Z.sibling}}return!0}function i8($,Z,G,Y){Z&=~lN,Z&=~z2,$.suspendedLanes|=Z,$.pingedLanes&=~Z,Y&&($.warmLanes|=Z),Y=$.expirationTimes;for(var U=Z;0<U;){var B=31-u5(U),W=1<<B;Y[B]=-1,U&=~W}G!==0&&o2($,G,Z)}function P7(){return(Z1&(N5|A6))===w5?(UZ(0,!1),!1):!0}function KY(){if(x0!==null){if(M1===t5)var $=x0.return;else $=x0,EJ(),Pq($),s7=null,cZ=0,$=x0;for(;$!==null;)QF($.alternate,$),$=$.return;x0=null}}function F9($,Z){($&127)!==0&&(K2=Z),($&4194048)!==0&&(x4=Z),($&62914560)!==0&&(rW=Z),($&2080374784)!==0&&(nW=Z)}function T7($,Z){A1&&(console.timeStamp("Blocking Track",0.003,0.003,"Blocking",r0,"primary-light"),console.timeStamp("Transition Track",0.003,0.003,"Transition",r0,"primary-light"),console.timeStamp("Suspense Track",0.003,0.003,"Suspense",r0,"primary-light"),console.timeStamp("Idle Track",0.003,0.003,"Idle",r0,"primary-light"));var G=M5;if(M5=e1(),u0!==0&&0<G){if(M6(u0),f1===Z3||f1===W2)jB(G,M5,Z,l1);else{var Y=M5,U=l1;if(A1&&!(Y<=G)){var B=(Z&738197653)===Z?"tertiary-dark":"primary-dark",W=(Z&536870912)===Z?"Prewarm":(Z&201326741)===Z?"Interrupted Hydration":"Interrupted Render";U?U.run(console.timeStamp.bind(console,W,G,Y,o0,r0,B)):console.timeStamp(W,G,Y,o0,r0,B)}}F9(u0,M5)}if(G=l1,l1=null,(Z&127)!==0){l1=vZ,U=0<=u4&&u4<K2?K2:u4,Y=0<=z9&&z9<K2?K2:z9,B=0<=Y?Y:0<=U?U:M5,0<=mG?(M6(2),DB(mG,B,Z,G)):(pG&127)!==0&&(M6(2),p$(K2,B,W8)),G=U;var z=Y,L=bZ,T=0<l7,k=B2===DZ,f=B2===xG;if(U=M5,Y=vZ,B=CN,W=IN,A1){if(o0="Blocking",0<G?G>U&&(G=U):G=U,0<z?z>G&&(z=G):z=G,L!==null&&G>z){var S=T?"secondary-light":"warning";Y?Y.run(console.timeStamp.bind(console,T?"Consecutive":"Event: "+L,z,G,o0,r0,S)):console.timeStamp(T?"Consecutive":"Event: "+L,z,G,o0,r0,S)}U>G&&(z=k?"error":(Z&738197653)===Z?"tertiary-light":"primary-light",k=f?"Promise Resolved":k?"Cascading Update":5<U-G?"Update Blocked":"Update",f=[],W!=null&&f.push(["Component name",W]),B!=null&&f.push(["Method name",B]),G={start:G,end:U,detail:{devtools:{properties:f,track:o0,trackGroup:r0,color:z}}},Y?Y.run(performance.measure.bind(performance,k,G)):performance.measure(k,G))}u4=-1.1,B2=0,IN=CN=null,mG=-1.1,l7=z9,z9=-1.1,K2=e1()}if((Z&4194048)!==0&&(l1=kZ,U=0<=M8&&M8<x4?x4:M8,G=0<=x6&&x6<x4?x4:x6,Y=0<=H2&&H2<x4?x4:H2,B=0<=Y?Y:0<=G?G:M5,0<=dG?(M6(256),DB(dG,B,Z,l1)):(pG&4194048)!==0&&(M6(256),p$(x4,B,W8)),f=Y,z=_9,L=0<F2,T=ON===xG,B=M5,Y=kZ,W=cW,k=lW,A1&&(o0="Transition",0<G?G>B&&(G=B):G=B,0<U?U>G&&(U=G):U=G,0<f?f>U&&(f=U):f=U,U>f&&z!==null&&(S=L?"secondary-light":"warning",Y?Y.run(console.timeStamp.bind(console,L?"Consecutive":"Event: "+z,f,U,o0,r0,S)):console.timeStamp(L?"Consecutive":"Event: "+z,f,U,o0,r0,S)),G>U&&(Y?Y.run(console.timeStamp.bind(console,"Action",U,G,o0,r0,"primary-dark")):console.timeStamp("Action",U,G,o0,r0,"primary-dark")),B>G&&(U=T?"Promise Resolved":5<B-G?"Update Blocked":"Update",f=[],k!=null&&f.push(["Component name",k]),W!=null&&f.push(["Method name",W]),G={start:G,end:B,detail:{devtools:{properties:f,track:o0,trackGroup:r0,color:"primary-light"}}},Y?Y.run(performance.measure.bind(performance,U,G)):performance.measure(U,G))),x6=M8=-1.1,ON=0,dG=-1.1,F2=H2,H2=-1.1,x4=e1()),(Z&62914560)!==0&&(pG&62914560)!==0&&(M6(4194304),p$(rW,M5,W8)),(Z&2080374784)!==0&&(pG&2080374784)!==0&&(M6(268435456),p$(nW,M5,W8)),G=$.timeoutHandle,G!==k9&&($.timeoutHandle=k9,DO(G)),G=$.cancelPendingCommit,G!==null&&($.cancelPendingCommit=null,G()),K4=0,KY(),P1=$,x0=G=$8($.current,null),u0=Z,M1=t5,E6=null,w2=!1,J$=s2($,Z),cN=!1,f1=L8,S9=e5=lN=z2=R2=0,r5=$Q=null,X3=!1,(Z&8)!==0&&(Z|=Z&32),Y=$.entangledLanes,Y!==0)for($=$.entanglements,Y&=Z;0<Y;)U=31-u5(Y),B=1<<U,Z|=$[U],Y&=~B;return d4=Z,CJ(),$=hW(),1000<$-gW&&(x.recentlyCreatedOwnerStacks=0,gW=$),Y4.discardPendingWarnings(),G}function vF($,Z){A0=null,x.H=sZ,x.getCurrentStack=null,b4=!1,T6=null,Z===n7||Z===nG?(Z=eB(),M1=tZ):Z===SN?(Z=eB(),M1=pw):M1=Z===uN?pN:Z!==null&&typeof Z==="object"&&typeof Z.then==="function"?eZ:J3,E6=Z;var G=x0;G===null?(f1=iZ,eJ($,W6(Z,$.current))):G.mode&g0&&Nq(G)}function bF(){var $=O6.current;return $===null?!0:(u0&4194048)===u0?m6===null?!0:!1:(u0&62914560)===u0||(u0&536870912)!==0?$===m6:!1}function kF(){var $=x.H;return x.H=sZ,$===null?sZ:$}function fF(){var $=x.A;return x.A=RO,$}function YG($){l1===null&&(l1=$._debugTask==null?null:$._debugTask)}function NG(){f1=W2,w2||(u0&4194048)!==u0&&O6.current!==null||(J$=!0),(R2&134217727)===0&&(z2&134217727)===0||P1===null||i8(P1,u0,e5,!1)}function BY($,Z,G){var Y=Z1;Z1|=N5;var U=kF(),B=fF();if(P1!==$||u0!==Z){if(f4){var W=$.memoizedUpdaters;0<W.size&&(NZ($,u0),W.clear()),x8($,Z)}ZQ=null,T7($,Z)}Z=!1,W=f1;$:do try{if(M1!==t5&&x0!==null){var z=x0,L=E6;switch(M1){case pN:KY(),W=Q3;break $;case tZ:case A9:case E9:case eZ:O6.current===null&&(Z=!0);var T=M1;if(M1=t5,E6=null,C7($,z,L,T),G&&J$){W=L8;break $}break;default:T=M1,M1=t5,E6=null,C7($,z,L,T)}}yF(),W=f1;break}catch(k){vF($,k)}while(1);return Z&&$.shellSuspendCounter++,EJ(),Z1=Y,x.H=U,x.A=B,x0===null&&(P1=null,u0=0,CJ()),W}function yF(){for(;x0!==null;)gF(x0)}function eT($,Z){var G=Z1;Z1|=N5;var Y=kF(),U=fF();if(P1!==$||u0!==Z){if(f4){var B=$.memoizedUpdaters;0<B.size&&(NZ($,u0),B.clear()),x8($,Z)}ZQ=null,Y3=F5()+rw,T7($,Z)}else J$=s2($,Z);$:do try{if(M1!==t5&&x0!==null)Z:switch(Z=x0,B=E6,M1){case J3:M1=t5,E6=null,C7($,Z,B,J3);break;case A9:case E9:if(iB(B)){M1=t5,E6=null,hF(Z);break}Z=function(){M1!==A9&&M1!==E9||P1!==$||(M1=G3),S4($)},B.then(Z,Z);break $;case tZ:M1=G3;break $;case pw:M1=dN;break $;case G3:iB(B)?(M1=t5,E6=null,hF(Z)):(M1=t5,E6=null,C7($,Z,B,G3));break;case dN:var W=null;switch(x0.tag){case 26:W=x0.memoizedState;case 5:case 27:var z=x0;if(W?jM(W):z.stateNode.complete){M1=t5,E6=null;var L=z.sibling;if(L!==null)x0=L;else{var T=z.return;T!==null?(x0=T,UG(T)):x0=null}break Z}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}M1=t5,E6=null,C7($,Z,B,dN);break;case eZ:M1=t5,E6=null,C7($,Z,B,eZ);break;case pN:KY(),f1=Q3;break $;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}x.actQueue!==null?yF():$C();break}catch(k){vF($,k)}while(1);if(EJ(),x.H=Y,x.A=U,Z1=G,x0!==null)return L8;return P1=null,u0=0,CJ(),f1}function $C(){for(;x0!==null&&!tC();)gF(x0)}function gF($){var Z=$.alternate;($.mode&g0)!==V0?(Yq($),Z=X0($,ZY,Z,$,d4),Nq($)):Z=X0($,ZY,Z,$,d4),$.memoizedProps=$.pendingProps,Z===null?UG($):x0=Z}function hF($){var Z=X0($,ZC,$);$.memoizedProps=$.pendingProps,Z===null?UG($):x0=Z}function ZC($){var Z=$.alternate,G=($.mode&g0)!==V0;switch(G&&Yq($),$.tag){case 15:case 0:Z=oH(Z,$,$.pendingProps,$.type,void 0,u0);break;case 11:Z=oH(Z,$,$.pendingProps,$.type.render,$.ref,u0);break;case 5:Pq($);default:QF(Z,$),$=x0=gB($,d4),Z=ZY(Z,$,d4)}return G&&Nq($),Z}function C7($,Z,G,Y){EJ(),Pq(Z),s7=null,cZ=0;var U=Z.return;try{if(uT($,U,Z,G,u0)){f1=iZ,eJ($,W6(G,$.current)),x0=null;return}}catch(B){if(U!==null)throw x0=U,B;f1=iZ,eJ($,W6(G,$.current)),x0=null;return}if(Z.flags&32768){if(i0||Y===J3)$=!0;else if(J$||(u0&536870912)!==0)$=!1;else if(w2=$=!0,Y===A9||Y===E9||Y===tZ||Y===eZ)Y=O6.current,Y!==null&&Y.tag===13&&(Y.flags|=16384);uF(Z,$)}else UG(Z)}function UG($){var Z=$;do{if((Z.flags&32768)!==0){uF(Z,w2);return}var G=Z.alternate;if($=Z.return,Yq(Z),G=X0(Z,dT,G,Z,d4),(Z.mode&g0)!==V0&&rB(Z),G!==null){x0=G;return}if(Z=Z.sibling,Z!==null){x0=Z;return}x0=Z=$}while(Z!==null);f1===L8&&(f1=dw)}function uF($,Z){do{var G=pT($.alternate,$);if(G!==null){G.flags&=32767,x0=G;return}if(($.mode&g0)!==V0){rB($),G=$.actualDuration;for(var Y=$.child;Y!==null;)G+=Y.actualDuration,Y=Y.sibling;$.actualDuration=G}if(G=$.return,G!==null&&(G.flags|=32768,G.subtreeFlags=0,G.deletions=null),!Z&&($=$.sibling,$!==null)){x0=$;return}x0=$=G}while($!==null);f1=Q3,x0=null}function HY($,Z,G,Y,U,B,W,z,L,T,k,f,S,g){$.cancelPendingCommit=null;do YZ();while(G5!==L2);if(Y4.flushLegacyContextWarning(),Y4.flushPendingUnsafeLifecycleWarnings(),(Z1&(N5|A6))!==w5)throw Error("Should not already be working.");if(M6(G),T===V9?nX(S,g,G,l1):Y!==null?VT(S,g,G,Y,Z!==null&&Z.alternate!==null&&Z.alternate.memoizedState.isDehydrated&&(Z.flags&256)!==0,l1):OT(S,g,G,l1),Z!==null){if(G===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),Z===$.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(B=Z.lanes|Z.childLanes,B|=zN,HJ($,G,B,W,z,L),$===P1&&(x0=P1=null,u0=0),G$=Z,P2=$,K4=G,sN=B,aN=U,tw=Y,oN=g,ew=f,B4=N3,$R=null,Z.actualDuration!==0||(Z.subtreeFlags&10256)!==0||(Z.flags&10256)!==0?($.callbackNode=null,$.callbackPriority=0,qC(S7,function(){return YQ=window.event,B4===N3&&(B4=nN),cF(),null})):($.callbackNode=null,$.callbackPriority=0),F8=null,U2=e1(),f!==null&&AT(g,U2,f,l1),Y=(Z.flags&13878)!==0,(Z.subtreeFlags&13878)!==0||Y){Y=x.T,x.T=null,U=K1.p,K1.p=C6,W=Z1,Z1|=A6;try{oT($,Z,G)}finally{Z1=W,K1.p=U,x.T=Y}}G5=sw,xF(),mF(),dF()}}function xF(){if(G5===sw){G5=L2;var $=P2,Z=G$,G=K4,Y=(Z.flags&13878)!==0;if((Z.subtreeFlags&13878)!==0||Y){Y=x.T,x.T=null;var U=K1.p;K1.p=C6;var B=Z1;Z1|=A6;try{Z$=G,Q$=$,vJ(),RF(Z,$),Q$=Z$=null,G=YU;var W=AB($.containerInfo),z=G.focusedElem,L=G.selectionRange;if(W!==z&&z&&z.ownerDocument&&VB(z.ownerDocument.documentElement,z)){if(L!==null&&cX(z)){var{start:T,end:k}=L;if(k===void 0&&(k=T),"selectionStart"in z)z.selectionStart=T,z.selectionEnd=Math.min(k,z.value.length);else{var f=z.ownerDocument||document,S=f&&f.defaultView||window;if(S.getSelection){var g=S.getSelection(),$0=z.textContent.length,G0=Math.min(L.start,$0),O1=L.end===void 0?G0:Math.min(L.end,$0);!g.extend&&G0>O1&&(W=O1,O1=G0,G0=W);var e0=OB(z,G0),E=OB(z,O1);if(e0&&E&&(g.rangeCount!==1||g.anchorNode!==e0.node||g.anchorOffset!==e0.offset||g.focusNode!==E.node||g.focusOffset!==E.offset)){var j=f.createRange();j.setStart(e0.node,e0.offset),g.removeAllRanges(),G0>O1?(g.addRange(j),g.extend(E.node,E.offset)):(j.setEnd(E.node,E.offset),g.addRange(j))}}}}f=[];for(g=z;g=g.parentNode;)g.nodeType===1&&f.push({element:g,left:g.scrollLeft,top:g.scrollTop});typeof z.focus==="function"&&z.focus();for(z=0;z<f.length;z++){var b=f[z];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}I3=!!qU,YU=qU=null}finally{Z1=B,K1.p=U,x.T=Y}}$.current=Z,G5=ow}}function mF(){if(G5===ow){G5=L2;var $=$R;if($!==null){U2=e1();var Z=H8,G=U2;!A1||G<=Z||(W8?W8.run(console.timeStamp.bind(console,$,Z,G,o0,r0,"secondary-light")):console.timeStamp($,Z,G,o0,r0,"secondary-light"))}$=P2,Z=G$,G=K4;var Y=(Z.flags&8772)!==0;if((Z.subtreeFlags&8772)!==0||Y){Y=x.T,x.T=null;var U=K1.p;K1.p=C6;var B=Z1;Z1|=A6;try{Z$=G,Q$=$,vJ(),HF($,Z.alternate,Z),Q$=Z$=null}finally{Z1=B,K1.p=U,x.T=Y}}$=oN,Z=ew,H8=e1(),$=Z===null?$:U2,Z=H8,G=B4===rN,Y=l1,F8!==null?vB($,Z,F8,!1,Y):!A1||Z<=$||(Y?Y.run(console.timeStamp.bind(console,G?"Commit Interrupted View Transition":"Commit",$,Z,o0,r0,G?"error":"secondary-dark")):console.timeStamp(G?"Commit Interrupted View Transition":"Commit",$,Z,o0,r0,G?"error":"secondary-dark")),G5=aw}}function dF(){if(G5===iw||G5===aw){if(G5===iw){var $=H8;H8=e1();var Z=H8,G=B4===rN;!A1||Z<=$||(W8?W8.run(console.timeStamp.bind(console,G?"Interrupted View Transition":"Starting Animation",$,Z,o0,r0,G?"error":"secondary-light")):console.timeStamp(G?"Interrupted View Transition":"Starting Animation",$,Z,o0,r0,G?" error":"secondary-light")),B4!==rN&&(B4=nw)}G5=L2,eC(),$=P2;var Y=G$;Z=K4,G=tw;var U=Y.actualDuration!==0||(Y.subtreeFlags&10256)!==0||(Y.flags&10256)!==0;U?G5=U3:(G5=L2,G$=P2=null,pF($,$.pendingLanes),j9=0,JQ=null);var B=$.pendingLanes;if(B===0&&(_2=null),U||sF($),B=C(Z),Y=Y.stateNode,D5&&typeof D5.onCommitFiberRoot==="function")try{var W=(Y.current.flags&128)===128;switch(B){case C6:var z=aY;break;case X4:z=iY;break;case y4:z=S7;break;case AG:z=tY;break;default:z=S7}D5.onCommitFiberRoot(j7,Y,z,W)}catch(f){k4||(k4=!0,console.error("React instrumentation encountered an error: %o",f))}if(f4&&$.memoizedUpdaters.clear(),iT(),G!==null){W=x.T,z=K1.p,K1.p=C6,x.T=null;try{var L=$.onRecoverableError;for(Y=0;Y<G.length;Y++){var T=G[Y],k=QC(T.stack);X0(T.source,L,T.value,k)}}finally{x.T=W,K1.p=z}}(K4&3)!==0&&YZ(),S4($),B=$.pendingLanes,(Z&261930)!==0&&(B&42)!==0?(lG=!0,$===iN?QQ++:(QQ=0,iN=$)):QQ=0,U||F9(Z,H8),UZ(0,!1)}}function QC($){return $={componentStack:$},Object.defineProperty($,"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.')}}),$}function pF($,Z){($.pooledCacheLanes&=Z)===0&&(Z=$.pooledCache,Z!=null&&($.pooledCache=null,l$(Z)))}function YZ(){return xF(),mF(),dF(),cF()}function cF(){if(G5!==U3)return!1;var $=P2,Z=sN;sN=0;var G=C(K4),Y=y4===0||y4>G?y4:G;G=x.T;var U=K1.p;try{K1.p=Y,x.T=null;var B=aN;aN=null,Y=P2;var W=K4;if(G5=L2,G$=P2=null,K4=0,(Z1&(N5|A6))!==w5)throw Error("Cannot flush passive effects while already rendering.");M6(W),tN=!0,K3=!1;var z=0;if(F8=null,z=F5(),B4===nw)p$(H8,z,W8);else{var L=H8,T=z,k=B4===nN;!A1||T<=L||(l1?l1.run(console.timeStamp.bind(console,k?"Waiting for Paint":"Waiting",L,T,o0,r0,"secondary-light")):console.timeStamp(k?"Waiting for Paint":"Waiting",L,T,o0,r0,"secondary-light"))}L=Z1,Z1|=A6;var f=Y.current;vJ(),OF(f);var S=Y.current;f=oN,vJ(),PF(Y,S,W,B,f),sF(Y),Z1=L;var g=F5();if(S=z,f=l1,F8!==null?vB(S,g,F8,!0,f):!A1||g<=S||(f?f.run(console.timeStamp.bind(console,"Remaining Effects",S,g,o0,r0,"secondary-dark")):console.timeStamp("Remaining Effects",S,g,o0,r0,"secondary-dark")),F9(W,g),UZ(0,!1),K3?Y===JQ?j9++:(j9=0,JQ=Y):j9=0,K3=tN=!1,D5&&typeof D5.onPostCommitFiberRoot==="function")try{D5.onPostCommitFiberRoot(j7,Y)}catch(G0){k4||(k4=!0,console.error("React instrumentation encountered an error: %o",G0))}var $0=Y.current.stateNode;return $0.effectDuration=0,$0.passiveEffectDuration=0,!0}finally{K1.p=U,x.T=G,pF($,Z)}}function lF($,Z,G){Z=W6(G,Z),nB(Z),Z=cq($.stateNode,Z,2),$=n8($,Z,2),$!==null&&(u8($,2),S4($))}function U1($,Z,G){if(X$=!1,$.tag===3)lF($,$,G);else{for(;Z!==null;){if(Z.tag===3){lF(Z,$,G);return}if(Z.tag===1){var Y=Z.stateNode;if(typeof Z.type.getDerivedStateFromError==="function"||typeof Y.componentDidCatch==="function"&&(_2===null||!_2.has(Y))){$=W6(G,$),nB($),G=lq(2),Y=n8(Z,G,2),Y!==null&&(rq(G,Y,Z,$),u8(Y,2),S4(Y));return}}Z=Z.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: "+Y,q0(Z,function(w,L){console.error("%s must not return anything besides a function, which is used for clean-up.%s",w,L)},B,z)}Q=Q.next}while(Q!==U)}}catch(w){N1(Z,Z.return,w)}}function B9($,Z,Q){try{var Y=Z.updateQueue,U=Y!==null?Y.lastEffect:null;if(U!==null){var B=U.next;Y=B;do{if((Y.tag&$)===$){var z=Y.inst,w=z.destroy;w!==void 0&&(z.destroy=void 0,($&m5)!==yG&&(t9=!0),U=Z,q0(U,zO,U,Q,w),($&m5)!==yG&&(t9=!1))}Y=Y.next}while(Y!==B)}}catch(L){N1(Z,Z.return,L)}}function yH($,Z){T4($)?(P4(),l$(Z,$),L4()):l$(Z,$)}function xY($,Z,Q){T4($)?(P4(),B9(Q,$,Z),L4()):B9(Q,$,Z)}function gH($){var Z=$.updateQueue;if(Z!==null){var Q=$.stateNode;$.type.defaultProps||"ref"in $.memoizedProps||s9||(Q.props!==$.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.",d($)||"instance"),Q.state!==$.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.",d($)||"instance"));try{q0($,uB,Z,Q)}catch(Y){N1($,$.return,Y)}}}function rP($,Z,Q){return $.getSnapshotBeforeUpdate(Z,Q)}function sP($,Z){var{memoizedProps:Q,memoizedState:Y}=Z;Z=$.stateNode,$.type.defaultProps||"ref"in $.memoizedProps||s9||(Z.props!==$.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.",d($)||"instance"),Z.state!==$.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.",d($)||"instance"));try{var U=Y7($.type,Q),B=q0($,rP,Z,U,Y);Q=RM,B!==void 0||Q.has($.type)||(Q.add($.type),q0($,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",d($))})),Z.__reactInternalSnapshotBeforeUpdate=B}catch(z){N1($,$.return,z)}}function hH($,Z,Q){Q.props=Y7($.type,$.memoizedProps),Q.state=$.memoizedState,T4($)?(P4(),q0($,gz,$,Z,Q),L4()):q0($,gz,$,Z,Q)}function nP($){var Z=$.ref;if(Z!==null){switch($.tag){case 26:case 27:case 5:var Q=$.stateNode;break;case 30:Q=$.stateNode;break;default:Q=$.stateNode}if(typeof Z==="function")if(T4($))try{P4(),$.refCleanup=Z(Q)}finally{L4()}else $.refCleanup=Z(Q);else typeof Z==="string"?console.error("String refs are no longer supported."):Z.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",d($)),Z.current=Q}}function r$($,Z){try{q0($,nP,$)}catch(Q){N1($,Z,Q)}}function C4($,Z){var{ref:Q,refCleanup:Y}=$;if(Q!==null)if(typeof Y==="function")try{if(T4($))try{P4(),q0($,Y)}finally{L4($)}else q0($,Y)}catch(U){N1($,Z,U)}finally{$.refCleanup=null,$=$.alternate,$!=null&&($.refCleanup=null)}else if(typeof Q==="function")try{if(T4($))try{P4(),q0($,Q,null)}finally{L4($)}else q0($,Q,null)}catch(U){N1($,Z,U)}else Q.current=null}function uH($,Z,Q,Y){var U=$.memoizedProps,B=U.id,z=U.onCommit;U=U.onRender,Z=Z===null?"mount":"update",DG&&(Z="nested-update"),typeof U==="function"&&U(B,Z,$.actualDuration,$.treeBaseDuration,$.actualStartTime,Q),typeof z==="function"&&z(B,Z,Y,Q)}function oP($,Z,Q,Y){var U=$.memoizedProps;$=U.id,U=U.onPostCommit,Z=Z===null?"mount":"update",DG&&(Z="nested-update"),typeof U==="function"&&U($,Z,Y,Q)}function xH($){var{type:Z,memoizedProps:Q,stateNode:Y}=$;try{q0($,_T,Y,Z,Q,$)}catch(U){N1($,$.return,U)}}function mY($,Z,Q){try{q0($,PT,$.stateNode,$.type,Q,Z,$)}catch(Y){N1($,$.return,Y)}}function mH($){return $.tag===5||$.tag===3||$.tag===26||$.tag===27&&s8($.type)||$.tag===4}function dY($){$:for(;;){for(;$.sibling===null;){if($.return===null||mH($.return))return null;$=$.return}$.sibling.return=$.return;for($=$.sibling;$.tag!==5&&$.tag!==6&&$.tag!==18;){if($.tag===27&&s8($.type))continue $;if($.flags&2)continue $;if($.child===null||$.tag===4)continue $;else $.child.return=$,$=$.child}if(!($.flags&2))return $.stateNode}}function pY($,Z,Q){var Y=$.tag;if(Y===5||Y===6)$=$.stateNode,Z?(nF(Q),(Q.nodeType===9?Q.body:Q.nodeName==="HTML"?Q.ownerDocument.body:Q).insertBefore($,Z)):(nF(Q),Z=Q.nodeType===9?Q.body:Q.nodeName==="HTML"?Q.ownerDocument.body:Q,Z.appendChild($),Q=Q._reactRootContainer,Q!==null&&Q!==void 0||Z.onclick!==null||(Z.onclick=o4));else if(Y!==4&&(Y===27&&s8($.type)&&(Q=$.stateNode,Z=null),$=$.child,$!==null))for(pY($,Z,Q),$=$.sibling;$!==null;)pY($,Z,Q),$=$.sibling}function cQ($,Z,Q){var Y=$.tag;if(Y===5||Y===6)$=$.stateNode,Z?Q.insertBefore($,Z):Q.appendChild($);else if(Y!==4&&(Y===27&&s8($.type)&&(Q=$.stateNode),$=$.child,$!==null))for(cQ($,Z,Q),$=$.sibling;$!==null;)cQ($,Z,Q),$=$.sibling}function aP($){for(var Z,Q=$.return;Q!==null;){if(mH(Q)){Z=Q;break}Q=Q.return}if(Z==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(Z.tag){case 27:Z=Z.stateNode,Q=dY($),cQ($,Q,Z);break;case 5:Q=Z.stateNode,Z.flags&32&&(sF(Q),Z.flags&=-33),Z=dY($),cQ($,Z,Q);break;case 3:case 4:Z=Z.stateNode.containerInfo,Q=dY($),pY($,Q,Z);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function dH($){var{stateNode:Z,memoizedProps:Q}=$;try{q0($,gT,$.type,Q,Z,$)}catch(Y){N1($,$.return,Y)}}function pH($,Z){return Z.tag===31?(Z=Z.memoizedState,$.memoizedState!==null&&Z===null):Z.tag===13?($=$.memoizedState,Z=Z.memoizedState,$!==null&&$.dehydrated!==null&&(Z===null||Z.dehydrated===null)):Z.tag===3?$.memoizedState.isDehydrated&&(Z.flags&256)===0:!1}function iP($,Z){if($=$.containerInfo,dN=K3,$=qB($),Vq($)){if("selectionStart"in $)var Q={start:$.selectionStart,end:$.selectionEnd};else $:{Q=(Q=$.ownerDocument)&&Q.defaultView||window;var Y=Q.getSelection&&Q.getSelection();if(Y&&Y.rangeCount!==0){Q=Y.anchorNode;var{anchorOffset:U,focusNode:B}=Y;Y=Y.focusOffset;try{Q.nodeType,B.nodeType}catch($0){Q=null;break $}var z=0,w=-1,L=-1,T=0,b=0,f=$,S=null;Z:for(;;){for(var g;;){if(f!==Q||U!==0&&f.nodeType!==3||(w=z+U),f!==B||Y!==0&&f.nodeType!==3||(L=z+Y),f.nodeType===3&&(z+=f.nodeValue.length),(g=f.firstChild)===null)break;S=f,f=g}for(;;){if(f===$)break Z;if(S===Q&&++T===U&&(w=z),S===B&&++b===Y&&(L=z),(g=f.nextSibling)!==null)break;f=S,S=f.parentNode}f=g}Q=w===-1||L===-1?null:{start:w,end:L}}else Q=null}Q=Q||{start:0,end:0}}else Q=null;pN={focusedElem:$,selectionRange:Q},K3=!1;for(F5=Z;F5!==null;)if(Z=F5,$=Z.child,(Z.subtreeFlags&1028)!==0&&$!==null)$.return=Z,F5=$;else for(;F5!==null;){switch($=Z=F5,Q=$.alternate,U=$.flags,$.tag){case 0:if((U&4)!==0&&($=$.updateQueue,$=$!==null?$.events:null,$!==null))for(Q=0;Q<$.length;Q++)U=$[Q],U.ref.impl=U.nextImpl;break;case 11:case 15:break;case 1:(U&1024)!==0&&Q!==null&&sP($,Q);break;case 3:if((U&1024)!==0){if($=$.stateNode.containerInfo,Q=$.nodeType,Q===9)UX($);else if(Q===1)switch($.nodeName){case"HEAD":case"HTML":case"BODY":UX($);break;default:$.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((U&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($=Z.sibling,$!==null){$.return=Z.return,F5=$;break}F5=Z.return}}function cH($,Z,Q){var Y=F6(),U=M4(),B=R4(),z=_4(),w=Q.flags;switch(Q.tag){case 0:case 11:case 15:O4($,Q),w&4&&fH(Q,C6|u6);break;case 1:if(O4($,Q),w&4)if($=Q.stateNode,Z===null)Q.type.defaultProps||"ref"in Q.memoizedProps||s9||($.props!==Q.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.",d(Q)||"instance"),$.state!==Q.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.",d(Q)||"instance")),T4(Q)?(P4(),q0(Q,KN,Q,$),L4()):q0(Q,KN,Q,$);else{var L=Y7(Q.type,Z.memoizedProps);Z=Z.memoizedState,Q.type.defaultProps||"ref"in Q.memoizedProps||s9||($.props!==Q.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.",d(Q)||"instance"),$.state!==Q.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.",d(Q)||"instance")),T4(Q)?(P4(),q0(Q,bz,Q,$,L,Z,$.__reactInternalSnapshotBeforeUpdate),L4()):q0(Q,bz,Q,$,L,Z,$.__reactInternalSnapshotBeforeUpdate)}w&64&&gH(Q),w&512&&r$(Q,Q.return);break;case 3:if(Z=e4(),O4($,Q),w&64&&(w=Q.updateQueue,w!==null)){if(L=null,Q.child!==null)switch(Q.child.tag){case 27:case 5:L=Q.child.stateNode;break;case 1:L=Q.child.stateNode}try{q0(Q,uB,w,L)}catch(b){N1(Q,Q.return,b)}}$.effectDuration+=wQ(Z);break;case 27:Z===null&&w&4&&dH(Q);case 26:case 5:if(O4($,Q),Z===null){if(w&4)xH(Q);else if(w&64){$=Q.type,Z=Q.memoizedProps,L=Q.stateNode;try{q0(Q,LT,L,$,Z,Q)}catch(b){N1(Q,Q.return,b)}}}w&512&&r$(Q,Q.return);break;case 12:if(w&4){w=e4(),O4($,Q),$=Q.stateNode,$.effectDuration+=b$(w);try{q0(Q,uH,Q,Z,Q2,$.effectDuration)}catch(b){N1(Q,Q.return,b)}}else O4($,Q);break;case 31:O4($,Q),w&4&&sH($,Q);break;case 13:O4($,Q),w&4&&nH($,Q),w&64&&($=Q.memoizedState,$!==null&&($=$.dehydrated,$!==null&&(w=YT.bind(null,Q),vT($,w))));break;case 22:if(w=Q.memoizedState!==null||z8,!w){Z=Z!==null&&Z.memoizedState!==null||$5,L=z8;var T=$5;z8=w,($5=Z)&&!T?(I4($,Q,(Q.subtreeFlags&8772)!==0),(Q.mode&g0)!==V0&&0<=L0&&0<=T0&&0.05<T0-L0&&XQ(Q,L0,T0)):O4($,Q),z8=L,$5=T}break;case 30:break;default:O4($,Q)}(Q.mode&g0)!==V0&&0<=L0&&0<=T0&&((g1||0.05<k1)&&W4(Q,L0,T0,k1,j1),Q.alternate===null&&Q.return!==null&&Q.return.alternate!==null&&0.05<T0-L0&&(pH(Q.return.alternate,Q.return)||F4(Q,L0,T0,"Mount"))),W6(Y),w4(U),j1=B,g1=z}function lH($){var Z=$.alternate;Z!==null&&($.alternate=null,lH(Z)),$.child=null,$.deletions=null,$.sibling=null,$.tag===5&&(Z=$.stateNode,Z!==null&&Z0(Z)),$.stateNode=null,$._debugOwner=null,$.return=null,$.dependencies=null,$.memoizedProps=null,$.memoizedState=null,$.pendingProps=null,$.stateNode=null,$.updateQueue=null}function J8($,Z,Q){for(Q=Q.child;Q!==null;)rH($,Z,Q),Q=Q.sibling}function rH($,Z,Q){if(S5&&typeof S5.onCommitFiberUnmount==="function")try{S5.onCommitFiberUnmount(C9,Q)}catch(T){j4||(j4=!0,console.error("React instrumentation encountered an error: %o",T))}var Y=F6(),U=M4(),B=R4(),z=_4();switch(Q.tag){case 26:$5||C4(Q,Z),J8($,Z,Q),Q.memoizedState?Q.memoizedState.count--:Q.stateNode&&($=Q.stateNode,$.parentNode.removeChild($));break;case 27:$5||C4(Q,Z);var w=Z5,L=n5;s8(Q.type)&&(Z5=Q.stateNode,n5=!1),J8($,Z,Q),q0(Q,ZZ,Q.stateNode),Z5=w,n5=L;break;case 5:$5||C4(Q,Z);case 6:if(w=Z5,L=n5,Z5=null,J8($,Z,Q),Z5=w,n5=L,Z5!==null)if(n5)try{q0(Q,OT,Z5,Q.stateNode)}catch(T){N1(Q,Z,T)}else try{q0(Q,CT,Z5,Q.stateNode)}catch(T){N1(Q,Z,T)}break;case 18:Z5!==null&&(n5?($=Z5,oF($.nodeType===9?$.body:$.nodeName==="HTML"?$.ownerDocument.body:$,Q.stateNode),_9($)):oF(Z5,Q.stateNode));break;case 4:w=Z5,L=n5,Z5=Q.stateNode.containerInfo,n5=!0,J8($,Z,Q),Z5=w,n5=L;break;case 0:case 11:case 14:case 15:B9(m5,Q,Z),$5||uY(Q,Z,C6),J8($,Z,Q);break;case 1:$5||(C4(Q,Z),w=Q.stateNode,typeof w.componentWillUnmount==="function"&&hH(Q,Z,w)),J8($,Z,Q);break;case 21:J8($,Z,Q);break;case 22:$5=(w=$5)||Q.memoizedState!==null,J8($,Z,Q),$5=w;break;default:J8($,Z,Q)}(Q.mode&g0)!==V0&&0<=L0&&0<=T0&&(g1||0.05<k1)&&W4(Q,L0,T0,k1,j1),W6(Y),w4(U),j1=B,g1=z}function sH($,Z){if(Z.memoizedState===null&&($=Z.alternate,$!==null&&($=$.memoizedState,$!==null))){$=$.dehydrated;try{q0(Z,fT,$)}catch(Q){N1(Z,Z.return,Q)}}}function nH($,Z){if(Z.memoizedState===null&&($=Z.alternate,$!==null&&($=$.memoizedState,$!==null&&($=$.dehydrated,$!==null))))try{q0(Z,yT,$)}catch(Q){N1(Z,Z.return,Q)}}function tP($){switch($.tag){case 31:case 13:case 19:var Z=$.stateNode;return Z===null&&(Z=$.stateNode=new _M),Z;case 22:return $=$.stateNode,Z=$._retryCache,Z===null&&(Z=$._retryCache=new _M),Z;default:throw Error("Unexpected Suspense handler tag ("+$.tag+"). This is a bug in React.")}}function lQ($,Z){var Q=tP($);Z.forEach(function(Y){if(!Q.has(Y)){if(Q.add(Y),k4)if(n9!==null&&o9!==null)a$(o9,n9);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var U=XT.bind(null,$,Y);Y.then(U,U)}})}function r5($,Z){var Q=Z.deletions;if(Q!==null)for(var Y=0;Y<Q.length;Y++){var U=$,B=Z,z=Q[Y],w=F6(),L=B;$:for(;L!==null;){switch(L.tag){case 27:if(s8(L.type)){Z5=L.stateNode,n5=!1;break $}break;case 5:Z5=L.stateNode,n5=!1;break $;case 3:case 4:Z5=L.stateNode.containerInfo,n5=!0;break $}L=L.return}if(Z5===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");rH(U,B,z),Z5=null,n5=!1,(z.mode&g0)!==V0&&0<=L0&&0<=T0&&0.05<T0-L0&&F4(z,L0,T0,"Unmount"),W6(w),U=z,B=U.alternate,B!==null&&(B.return=null),U.return=null}if(Z.subtreeFlags&13886)for(Z=Z.child;Z!==null;)oH(Z,$),Z=Z.sibling}function oH($,Z){var Q=F6(),Y=M4(),U=R4(),B=_4(),z=$.alternate,w=$.flags;switch($.tag){case 0:case 11:case 14:case 15:r5(Z,$),s5($),w&4&&(B9(m5|u6,$,$.return),l$(m5|u6,$),uY($,$.return,C6|u6));break;case 1:if(r5(Z,$),s5($),w&512&&($5||z===null||C4(z,z.return)),w&64&&z8&&(w=$.updateQueue,w!==null&&(z=w.callbacks,z!==null))){var L=w.shared.hiddenCallbacks;w.shared.hiddenCallbacks=L===null?z:L.concat(z)}break;case 26:if(L=Y4,r5(Z,$),s5($),w&512&&($5||z===null||C4(z,z.return)),w&4){var T=z!==null?z.memoizedState:null;if(w=$.memoizedState,z===null)if(w===null)if($.stateNode===null){$:{w=$.type,z=$.memoizedProps,L=L.ownerDocument||L;Z:switch(w){case"title":if(T=L.getElementsByTagName("title")[0],!T||T[NZ]||T[_5]||T.namespaceURI===I9||T.hasAttribute("itemprop"))T=L.createElement(w),L.head.insertBefore(T,L.querySelector("head > title"));R5(T,w,z),T[_5]=$,_0(T),w=T;break $;case"link":var b=YW("link","href",L).get(w+(z.href||""));if(b){for(var f=0;f<b.length;f++)if(T=b[f],T.getAttribute("href")===(z.href==null||z.href===""?null:z.href)&&T.getAttribute("rel")===(z.rel==null?null:z.rel)&&T.getAttribute("title")===(z.title==null?null:z.title)&&T.getAttribute("crossorigin")===(z.crossOrigin==null?null:z.crossOrigin)){b.splice(f,1);break Z}}T=L.createElement(w),R5(T,w,z),L.head.appendChild(T);break;case"meta":if(b=YW("meta","content",L).get(w+(z.content||""))){for(f=0;f<b.length;f++)if(T=b[f],W1(z.content,"content"),T.getAttribute("content")===(z.content==null?null:""+z.content)&&T.getAttribute("name")===(z.name==null?null:z.name)&&T.getAttribute("property")===(z.property==null?null:z.property)&&T.getAttribute("http-equiv")===(z.httpEquiv==null?null:z.httpEquiv)&&T.getAttribute("charset")===(z.charSet==null?null:z.charSet)){b.splice(f,1);break Z}}T=L.createElement(w),R5(T,w,z),L.head.appendChild(T);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+w+'". This is a bug in React.')}T[_5]=$,_0(T),w=T}$.stateNode=w}else XW(L,$.type,$.stateNode);else $.stateNode=qW(L,w,$.memoizedProps);else T!==w?(T===null?z.stateNode!==null&&(z=z.stateNode,z.parentNode.removeChild(z)):T.count--,w===null?XW(L,$.type,$.stateNode):qW(L,w,$.memoizedProps)):w===null&&$.stateNode!==null&&mY($,$.memoizedProps,z.memoizedProps)}break;case 27:r5(Z,$),s5($),w&512&&($5||z===null||C4(z,z.return)),z!==null&&w&4&&mY($,$.memoizedProps,z.memoizedProps);break;case 5:if(r5(Z,$),s5($),w&512&&($5||z===null||C4(z,z.return)),$.flags&32){L=$.stateNode;try{q0($,sF,L)}catch(G0){N1($,$.return,G0)}}w&4&&$.stateNode!=null&&(L=$.memoizedProps,mY($,L,z!==null?z.memoizedProps:L)),w&1024&&(CN=!0,$.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(r5(Z,$),s5($),w&4){if($.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.");w=$.memoizedProps,z=z!==null?z.memoizedProps:w,L=$.stateNode;try{q0($,TT,L,z,w)}catch(G0){N1($,$.return,G0)}}break;case 3:if(L=e4(),X3=null,T=Y4,Y4=eQ(Z.containerInfo),r5(Z,$),Y4=T,s5($),w&4&&z!==null&&z.memoizedState.isDehydrated)try{q0($,bT,Z.containerInfo)}catch(G0){N1($,$.return,G0)}CN&&(CN=!1,aH($)),Z.effectDuration+=wQ(L);break;case 4:w=Y4,Y4=eQ($.stateNode.containerInfo),r5(Z,$),s5($),Y4=w;break;case 12:w=e4(),r5(Z,$),s5($),$.stateNode.effectDuration+=b$(w);break;case 31:r5(Z,$),s5($),w&4&&(w=$.updateQueue,w!==null&&($.updateQueue=null,lQ($,w)));break;case 13:r5(Z,$),s5($),$.child.flags&8192&&$.memoizedState!==null!==(z!==null&&z.memoizedState!==null)&&(rG=B5()),w&4&&(w=$.updateQueue,w!==null&&($.updateQueue=null,lQ($,w)));break;case 22:L=$.memoizedState!==null;var S=z!==null&&z.memoizedState!==null,g=z8,$0=$5;if(z8=g||L,$5=$0||S,r5(Z,$),$5=$0,z8=g,S&&!L&&!g&&!$0&&($.mode&g0)!==V0&&0<=L0&&0<=T0&&0.05<T0-L0&&XQ($,L0,T0),s5($),w&8192)$:for(Z=$.stateNode,Z._visibility=L?Z._visibility&~wZ:Z._visibility|wZ,!L||z===null||S||z8||$5||(X7($),($.mode&g0)!==V0&&0<=L0&&0<=T0&&0.05<T0-L0&&F4($,L0,T0,"Disconnect")),z=null,Z=$;;){if(Z.tag===5||Z.tag===26){if(z===null){S=z=Z;try{T=S.stateNode,L?q0(S,VT,T):q0(S,ST,S.stateNode,S.memoizedProps)}catch(G0){N1(S,S.return,G0)}}}else if(Z.tag===6){if(z===null){S=Z;try{b=S.stateNode,L?q0(S,AT,b):q0(S,DT,b,S.memoizedProps)}catch(G0){N1(S,S.return,G0)}}}else if(Z.tag===18){if(z===null){S=Z;try{f=S.stateNode,L?q0(S,IT,f):q0(S,ET,S.stateNode)}catch(G0){N1(S,S.return,G0)}}}else if((Z.tag!==22&&Z.tag!==23||Z.memoizedState===null||Z===$)&&Z.child!==null){Z.child.return=Z,Z=Z.child;continue}if(Z===$)break $;for(;Z.sibling===null;){if(Z.return===null||Z.return===$)break $;z===Z&&(z=null),Z=Z.return}z===Z&&(z=null),Z.sibling.return=Z.return,Z=Z.sibling}w&4&&(w=$.updateQueue,w!==null&&(z=w.retryQueue,z!==null&&(w.retryQueue=null,lQ($,z))));break;case 19:r5(Z,$),s5($),w&4&&(w=$.updateQueue,w!==null&&($.updateQueue=null,lQ($,w)));break;case 30:break;case 21:break;default:r5(Z,$),s5($)}($.mode&g0)!==V0&&0<=L0&&0<=T0&&((g1||0.05<k1)&&W4($,L0,T0,k1,j1),$.alternate===null&&$.return!==null&&$.return.alternate!==null&&0.05<T0-L0&&(pH($.return.alternate,$.return)||F4($,L0,T0,"Mount"))),W6(Q),w4(Y),j1=U,g1=B}function s5($){var Z=$.flags;if(Z&2){try{q0($,aP,$)}catch(Q){N1($,$.return,Q)}$.flags&=-3}Z&4096&&($.flags&=-4097)}function aH($){if($.subtreeFlags&1024)for($=$.child;$!==null;){var Z=$;aH(Z),Z.tag===5&&Z.flags&1024&&Z.stateNode.reset(),$=$.sibling}}function O4($,Z){if(Z.subtreeFlags&8772)for(Z=Z.child;Z!==null;)cH($,Z.alternate,Z),Z=Z.sibling}function iH($){var Z=F6(),Q=M4(),Y=R4(),U=_4();switch($.tag){case 0:case 11:case 14:case 15:uY($,$.return,C6),X7($);break;case 1:C4($,$.return);var B=$.stateNode;typeof B.componentWillUnmount==="function"&&hH($,$.return,B),X7($);break;case 27:q0($,ZZ,$.stateNode);case 26:case 5:C4($,$.return),X7($);break;case 22:$.memoizedState===null&&X7($);break;case 30:X7($);break;default:X7($)}($.mode&g0)!==V0&&0<=L0&&0<=T0&&(g1||0.05<k1)&&W4($,L0,T0,k1,j1),W6(Z),w4(Q),j1=Y,g1=U}function X7($){for($=$.child;$!==null;)iH($),$=$.sibling}function tH($,Z,Q,Y){var U=F6(),B=M4(),z=R4(),w=_4(),L=Q.flags;switch(Q.tag){case 0:case 11:case 15:I4($,Q,Y),fH(Q,C6);break;case 1:if(I4($,Q,Y),Z=Q.stateNode,typeof Z.componentDidMount==="function"&&q0(Q,KN,Q,Z),Z=Q.updateQueue,Z!==null){$=Q.stateNode;try{q0(Q,bP,Z,$)}catch(T){N1(Q,Q.return,T)}}Y&&L&64&&gH(Q),r$(Q,Q.return);break;case 27:dH(Q);case 26:case 5:I4($,Q,Y),Y&&Z===null&&L&4&&xH(Q),r$(Q,Q.return);break;case 12:if(Y&&L&4){L=e4(),I4($,Q,Y),Y=Q.stateNode,Y.effectDuration+=b$(L);try{q0(Q,uH,Q,Z,Q2,Y.effectDuration)}catch(T){N1(Q,Q.return,T)}}else I4($,Q,Y);break;case 31:I4($,Q,Y),Y&&L&4&&sH($,Q);break;case 13:I4($,Q,Y),Y&&L&4&&nH($,Q);break;case 22:Q.memoizedState===null&&I4($,Q,Y),r$(Q,Q.return);break;case 30:break;default:I4($,Q,Y)}(Q.mode&g0)!==V0&&0<=L0&&0<=T0&&(g1||0.05<k1)&&W4(Q,L0,T0,k1,j1),W6(U),w4(B),j1=z,g1=w}function I4($,Z,Q){Q=Q&&(Z.subtreeFlags&8772)!==0;for(Z=Z.child;Z!==null;)tH($,Z.alternate,Z,Q),Z=Z.sibling}function cY($,Z){var Q=null;$!==null&&$.memoizedState!==null&&$.memoizedState.cachePool!==null&&(Q=$.memoizedState.cachePool.pool),$=null,Z.memoizedState!==null&&Z.memoizedState.cachePool!==null&&($=Z.memoizedState.cachePool.pool),$!==Q&&($!=null&&J7($),Q!=null&&v$(Q))}function lY($,Z){$=null,Z.alternate!==null&&($=Z.alternate.memoizedState.cache),Z=Z.memoizedState.cache,Z!==$&&(J7(Z),$!=null&&v$($))}function $4($,Z,Q,Y,U){if(Z.subtreeFlags&10256||Z.actualDuration!==0&&(Z.alternate===null||Z.alternate.child!==Z.child))for(Z=Z.child;Z!==null;){var B=Z.sibling;eH($,Z,Q,Y,B!==null?B.actualStartTime:U),Z=B}}function eH($,Z,Q,Y,U){var B=F6(),z=M4(),w=R4(),L=_4(),T=e8,b=Z.flags;switch(Z.tag){case 0:case 11:case 15:(Z.mode&g0)!==V0&&0<Z.actualStartTime&&(Z.flags&1)!==0&&NQ(Z,Z.actualStartTime,U,q5,Q),$4($,Z,Q,Y,U),b&2048&&yH(Z,d5|u6);break;case 1:(Z.mode&g0)!==V0&&0<Z.actualStartTime&&((Z.flags&128)!==0?Eq(Z,Z.actualStartTime,U,[]):(Z.flags&1)!==0&&NQ(Z,Z.actualStartTime,U,q5,Q)),$4($,Z,Q,Y,U);break;case 3:var f=e4(),S=q5;q5=Z.alternate!==null&&Z.alternate.memoizedState.isDehydrated&&(Z.flags&256)===0,$4($,Z,Q,Y,U),q5=S,b&2048&&(Q=null,Z.alternate!==null&&(Q=Z.alternate.memoizedState.cache),Y=Z.memoizedState.cache,Y!==Q&&(J7(Y),Q!=null&&v$(Q))),$.passiveEffectDuration+=wQ(f);break;case 12:if(b&2048){b=e4(),$4($,Z,Q,Y,U),$=Z.stateNode,$.passiveEffectDuration+=b$(b);try{q0(Z,oP,Z,Z.alternate,Q2,$.passiveEffectDuration)}catch(g){N1(Z,Z.return,g)}}else $4($,Z,Q,Y,U);break;case 31:b=q5,f=Z.alternate!==null?Z.alternate.memoizedState:null,S=Z.memoizedState,f!==null&&S===null?(S=Z.deletions,S!==null&&0<S.length&&S[0].tag===18?(q5=!1,f=f.hydrationErrors,f!==null&&Eq(Z,Z.actualStartTime,U,f)):q5=!0):q5=!1,$4($,Z,Q,Y,U),q5=b;break;case 13:b=q5,f=Z.alternate!==null?Z.alternate.memoizedState:null,S=Z.memoizedState,f===null||f.dehydrated===null||S!==null&&S.dehydrated!==null?q5=!1:(S=Z.deletions,S!==null&&0<S.length&&S[0].tag===18?(q5=!1,f=f.hydrationErrors,f!==null&&Eq(Z,Z.actualStartTime,U,f)):q5=!0),$4($,Z,Q,Y,U),q5=b;break;case 23:break;case 22:S=Z.stateNode,f=Z.alternate,Z.memoizedState!==null?S._visibility&q8?$4($,Z,Q,Y,U):s$($,Z,Q,Y,U):S._visibility&q8?$4($,Z,Q,Y,U):(S._visibility|=q8,H9($,Z,Q,Y,(Z.subtreeFlags&10256)!==0||Z.actualDuration!==0&&(Z.alternate===null||Z.alternate.child!==Z.child),U),(Z.mode&g0)===V0||q5||($=Z.actualStartTime,0<=$&&0.05<U-$&&XQ(Z,$,U),0<=L0&&0<=T0&&0.05<T0-L0&&XQ(Z,L0,T0))),b&2048&&cY(f,Z);break;case 24:$4($,Z,Q,Y,U),b&2048&&lY(Z.alternate,Z);break;default:$4($,Z,Q,Y,U)}if((Z.mode&g0)!==V0){if($=!q5&&Z.alternate===null&&Z.return!==null&&Z.return.alternate!==null)Q=Z.actualStartTime,0<=Q&&0.05<U-Q&&F4(Z,Q,U,"Mount");0<=L0&&0<=T0&&((g1||0.05<k1)&&W4(Z,L0,T0,k1,j1),$&&0.05<T0-L0&&F4(Z,L0,T0,"Mount"))}W6(B),w4(z),j1=w,g1=L,e8=T}function H9($,Z,Q,Y,U,B){U=U&&((Z.subtreeFlags&10256)!==0||Z.actualDuration!==0&&(Z.alternate===null||Z.alternate.child!==Z.child));for(Z=Z.child;Z!==null;){var z=Z.sibling;$F($,Z,Q,Y,U,z!==null?z.actualStartTime:B),Z=z}}function $F($,Z,Q,Y,U,B){var z=F6(),w=M4(),L=R4(),T=_4(),b=e8;U&&(Z.mode&g0)!==V0&&0<Z.actualStartTime&&(Z.flags&1)!==0&&NQ(Z,Z.actualStartTime,B,q5,Q);var f=Z.flags;switch(Z.tag){case 0:case 11:case 15:H9($,Z,Q,Y,U,B),yH(Z,d5);break;case 23:break;case 22:var S=Z.stateNode;Z.memoizedState!==null?S._visibility&q8?H9($,Z,Q,Y,U,B):s$($,Z,Q,Y,B):(S._visibility|=q8,H9($,Z,Q,Y,U,B)),U&&f&2048&&cY(Z.alternate,Z);break;case 24:H9($,Z,Q,Y,U,B),U&&f&2048&&lY(Z.alternate,Z);break;default:H9($,Z,Q,Y,U,B)}(Z.mode&g0)!==V0&&0<=L0&&0<=T0&&(g1||0.05<k1)&&W4(Z,L0,T0,k1,j1),W6(z),w4(w),j1=L,g1=T,e8=b}function s$($,Z,Q,Y,U){if(Z.subtreeFlags&10256||Z.actualDuration!==0&&(Z.alternate===null||Z.alternate.child!==Z.child))for(var B=Z.child;B!==null;){Z=B.sibling;var z=$,w=Q,L=Y,T=Z!==null?Z.actualStartTime:U,b=e8;(B.mode&g0)!==V0&&0<B.actualStartTime&&(B.flags&1)!==0&&NQ(B,B.actualStartTime,T,q5,w);var f=B.flags;switch(B.tag){case 22:s$(z,B,w,L,T),f&2048&&cY(B.alternate,B);break;case 24:s$(z,B,w,L,T),f&2048&&lY(B.alternate,B);break;default:s$(z,B,w,L,T)}e8=b,B=Z}}function F9($,Z,Q){if($.subtreeFlags&gZ)for($=$.child;$!==null;)ZF($,Z,Q),$=$.sibling}function ZF($,Z,Q){switch($.tag){case 26:F9($,Z,Q),$.flags&gZ&&$.memoizedState!==null&&xT(Q,Y4,$.memoizedState,$.memoizedProps);break;case 5:F9($,Z,Q);break;case 3:case 4:var Y=Y4;Y4=eQ($.stateNode.containerInfo),F9($,Z,Q),Y4=Y;break;case 22:$.memoizedState===null&&(Y=$.alternate,Y!==null&&Y.memoizedState!==null?(Y=gZ,gZ=16777216,F9($,Z,Q),gZ=Y):F9($,Z,Q));break;default:F9($,Z,Q)}}function JF($){var Z=$.alternate;if(Z!==null&&($=Z.child,$!==null)){Z.child=null;do Z=$.sibling,$.sibling=null,$=Z;while($!==null)}}function n$($){var Z=$.deletions;if(($.flags&16)!==0){if(Z!==null)for(var Q=0;Q<Z.length;Q++){var Y=Z[Q],U=F6();F5=Y,qF(Y,$),(Y.mode&g0)!==V0&&0<=L0&&0<=T0&&0.05<T0-L0&&F4(Y,L0,T0,"Unmount"),W6(U)}JF($)}if($.subtreeFlags&10256)for($=$.child;$!==null;)QF($),$=$.sibling}function QF($){var Z=F6(),Q=M4(),Y=R4(),U=_4();switch($.tag){case 0:case 11:case 15:n$($),$.flags&2048&&xY($,$.return,d5|u6);break;case 3:var B=e4();n$($),$.stateNode.passiveEffectDuration+=wQ(B);break;case 12:B=e4(),n$($),$.stateNode.passiveEffectDuration+=b$(B);break;case 22:B=$.stateNode,$.memoizedState!==null&&B._visibility&q8&&($.return===null||$.return.tag!==13)?(B._visibility&=~q8,rQ($),($.mode&g0)!==V0&&0<=L0&&0<=T0&&0.05<T0-L0&&F4($,L0,T0,"Disconnect")):n$($);break;default:n$($)}($.mode&g0)!==V0&&0<=L0&&0<=T0&&(g1||0.05<k1)&&W4($,L0,T0,k1,j1),W6(Z),w4(Q),g1=U,j1=Y}function rQ($){var Z=$.deletions;if(($.flags&16)!==0){if(Z!==null)for(var Q=0;Q<Z.length;Q++){var Y=Z[Q],U=F6();F5=Y,qF(Y,$),(Y.mode&g0)!==V0&&0<=L0&&0<=T0&&0.05<T0-L0&&F4(Y,L0,T0,"Unmount"),W6(U)}JF($)}for($=$.child;$!==null;)GF($),$=$.sibling}function GF($){var Z=F6(),Q=M4(),Y=R4(),U=_4();switch($.tag){case 0:case 11:case 15:xY($,$.return,d5),rQ($);break;case 22:var B=$.stateNode;B._visibility&q8&&(B._visibility&=~q8,rQ($));break;default:rQ($)}($.mode&g0)!==V0&&0<=L0&&0<=T0&&(g1||0.05<k1)&&W4($,L0,T0,k1,j1),W6(Z),w4(Q),g1=U,j1=Y}function qF($,Z){for(;F5!==null;){var Q=F5,Y=Q,U=Z,B=F6(),z=M4(),w=R4(),L=_4();switch(Y.tag){case 0:case 11:case 15:xY(Y,U,d5);break;case 23:case 22:Y.memoizedState!==null&&Y.memoizedState.cachePool!==null&&(U=Y.memoizedState.cachePool.pool,U!=null&&J7(U));break;case 24:v$(Y.memoizedState.cache)}if((Y.mode&g0)!==V0&&0<=L0&&0<=T0&&(g1||0.05<k1)&&W4(Y,L0,T0,k1,j1),W6(B),w4(z),g1=L,j1=w,Y=Q.child,Y!==null)Y.return=Q,F5=Y;else $:for(Q=$;F5!==null;){if(Y=F5,B=Y.sibling,z=Y.return,lH(Y),Y===Q){F5=null;break $}if(B!==null){B.return=z,F5=B;break $}F5=z}}}function eP(){LO.forEach(function($){return $()})}function YF(){var $=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return $||x.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),$}function M6($){if((Z1&Y5)!==W5&&u0!==0)return u0&-u0;var Z=x.T;return Z!==null?(Z._updatedFibers||(Z._updatedFibers=new Set),Z._updatedFibers.add($),eY()):y()}function XF(){if(a5===0)if((u0&536870912)===0||i0){var $=BG;BG<<=1,(BG&3932160)===0&&(BG=262144),a5=$}else a5=536870912;return $=T6.current,$!==null&&($.flags|=32),a5}function y1($,Z,Q){if(t9&&console.error("useInsertionEffect must not schedule updates."),bN&&(aG=!0),$===_1&&(H1===T7||H1===C7)||$.cancelPendingCommit!==null)z9($,0),l8($,u0,a5,!1);if(v8($,Q),(Z1&Y5)!==W5&&$===_1){if(D4)switch(Z.tag){case 0:case 11:case 15:$=x0&&d(x0)||"Unknown",bM.has($)||(bM.add($),Z=d(Z)||"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",Z,$,$));break;case 1:vM||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),vM=!0)}}else k4&&T$($,Z,Q),UT(Z),$===_1&&((Z1&Y5)===W5&&(H2|=Q),v1===U2&&l8($,u0,a5,!1)),V4($)}function NF($,Z,Q){if((Z1&(Y5|O6))!==W5)throw Error("Should not already be working.");if(u0!==0&&x0!==null){var Y=x0,U=B5();switch(Vz){case xZ:case T7:var B=CZ;I1&&((Y=Y._debugTask)?Y.run(console.timeStamp.bind(console,"Suspended",B,U,j6,void 0,"primary-light")):console.timeStamp("Suspended",B,U,j6,void 0,"primary-light"));break;case C7:B=CZ,I1&&((Y=Y._debugTask)?Y.run(console.timeStamp.bind(console,"Action",B,U,j6,void 0,"primary-light")):console.timeStamp("Action",B,U,j6,void 0,"primary-light"));break;default:I1&&(Y=U-CZ,3>Y||console.timeStamp("Blocked",CZ,U,j6,void 0,5>Y?"primary-light":10>Y?"primary":100>Y?"primary-dark":"error"))}}B=(Q=!Q&&(Z&127)===0&&(Z&$.expiredLanes)===0||p2($,Z))?ZT($,Z):sY($,Z,!0);var z=Q;do{if(B===M8){a9&&!Q&&l8($,Z,0,!1),Z=H1,CZ=i1(),Vz=Z;break}else{if(Y=B5(),U=$.current.alternate,z&&!$T(U)){B6(Z),U=H5,B=Y,!I1||B<=U||(p1?p1.run(console.timeStamp.bind(console,"Teared Render",U,B,o0,r0,"error")):console.timeStamp("Teared Render",U,B,o0,r0,"error")),N7(Z,Y),B=sY($,Z,!1),z=!1;continue}if(B===P7){if(z=Z,$.errorRecoveryDisabledLanes&z)var w=0;else w=$.pendingLanes&-536870913,w=w!==0?w:w&536870912?536870912:0;if(w!==0){B6(Z),Sq(H5,Y,Z,p1),N7(Z,Y),Z=w;$:{Y=$,B=z,z=dZ;var L=Y.current.memoizedState.isDehydrated;if(L&&(z9(Y,w).flags|=256),w=sY(Y,w,!1),w!==P7){if(VN&&!L){Y.errorRecoveryDisabledLanes|=B,H2|=B,B=U2;break $}Y=p5,p5=z,Y!==null&&(p5===null?p5=Y:p5.push.apply(p5,Y))}B=w}if(z=!1,B!==P7)continue;else Y=B5()}}if(B===uZ){B6(Z),Sq(H5,Y,Z,p1),N7(Z,Y),z9($,0),l8($,Z,0,!0);break}$:{switch(Q=$,B){case M8:case uZ:throw Error("Root did not complete. This is a bug in React.");case U2:if((Z&4194048)!==Z)break;case dG:B6(Z),NB(H5,Y,Z,p1),N7(Z,Y),U=Z,(U&127)!==0?AG=Y:(U&4194048)!==0&&(EG=Y),l8(Q,Z,a5,!K2);break $;case P7:p5=null;break;case mG:case LM:break;default:throw Error("Unknown root exit status.")}if(x.actQueue!==null)nY(Q,U,Z,p5,pZ,lG,a5,H2,O7,B,null,null,H5,Y);else{if((Z&62914560)===Z&&(z=rG+CM-B5(),10<z)){if(l8(Q,Z,a5,!K2),d2(Q,0,!0)!==0)break $;X4=Z,Q.timeoutHandle=dM(UF.bind(null,Q,U,p5,pZ,lG,Z,a5,H2,O7,K2,B,"Throttled",H5,Y),z);break $}UF(Q,U,p5,pZ,lG,Z,a5,H2,O7,K2,B,null,H5,Y)}}}break}while(1);V4($)}function UF($,Z,Q,Y,U,B,z,w,L,T,b,f,S,g){$.timeoutHandle=S7;var $0=Z.subtreeFlags,G0=null;if($0&8192||($0&16785408)===16785408){if(G0={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:o4},ZF(Z,B,G0),$0=(B&62914560)===B?rG-B5():(B&4194048)===B?TM-B5():0,$0=mT(G0,$0),$0!==null){X4=B,$.cancelPendingCommit=$0(nY.bind(null,$,Z,B,Q,Y,U,z,w,L,b,G0,G0.waitingForViewTransition?"Waiting for the previous Animation":0<G0.count?0<G0.imgCount?"Suspended on CSS and Images":"Suspended on CSS":G0.imgCount===1?"Suspended on an Image":0<G0.imgCount?"Suspended on Images":null,S,g)),l8($,B,z,!T);return}}nY($,Z,B,Q,Y,U,z,w,L,b,G0,f,S,g)}function $T($){for(var Z=$;;){var Q=Z.tag;if((Q===0||Q===11||Q===15)&&Z.flags&16384&&(Q=Z.updateQueue,Q!==null&&(Q=Q.stores,Q!==null)))for(var Y=0;Y<Q.length;Y++){var U=Q[Y],B=U.getSnapshot;U=U.value;try{if(!u5(B(),U))return!1}catch(z){return!1}}if(Q=Z.child,Z.subtreeFlags&16384&&Q!==null)Q.return=Z,Z=Q;else{if(Z===$)break;for(;Z.sibling===null;){if(Z.return===null||Z.return===$)return!0;Z=Z.return}Z.sibling.return=Z.return,Z=Z.sibling}}return!0}function l8($,Z,Q,Y){Z&=~AN,Z&=~H2,$.suspendedLanes|=Z,$.pingedLanes&=~Z,Y&&($.warmLanes|=Z),Y=$.expirationTimes;for(var U=Z;0<U;){var B=31-y5(U),z=1<<B;Y[B]=-1,U&=~z}Q!==0&&c2($,Q,Z)}function W9(){return(Z1&(Y5|O6))===W5?(i$(0,!1),!1):!0}function rY(){if(x0!==null){if(H1===o5)var $=x0.return;else $=x0,WQ(),QY($),m9=null,kZ=0,$=x0;for(;$!==null;)bH($.alternate,$),$=$.return;x0=null}}function N7($,Z){($&127)!==0&&(G2=Z),($&4194048)!==0&&(g4=Z),($&62914560)!==0&&(Oz=Z),($&2080374784)!==0&&(Iz=Z)}function z9($,Z){I1&&(console.timeStamp("Blocking Track",0.003,0.003,"Blocking",r0,"primary-light"),console.timeStamp("Transition Track",0.003,0.003,"Transition",r0,"primary-light"),console.timeStamp("Suspense Track",0.003,0.003,"Suspense",r0,"primary-light"),console.timeStamp("Idle Track",0.003,0.003,"Idle",r0,"primary-light"));var Q=H5;if(H5=i1(),u0!==0&&0<Q){if(B6(u0),v1===mG||v1===U2)NB(Q,H5,Z,p1);else{var Y=H5,U=p1;if(I1&&!(Y<=Q)){var B=(Z&738197653)===Z?"tertiary-dark":"primary-dark",z=(Z&536870912)===Z?"Prewarm":(Z&201326741)===Z?"Interrupted Hydration":"Interrupted Render";U?U.run(console.timeStamp.bind(console,z,Q,Y,o0,r0,B)):console.timeStamp(z,Q,Y,o0,r0,B)}}N7(u0,H5)}if(Q=p1,p1=null,(Z&127)!==0){p1=LZ,U=0<=y4&&y4<G2?G2:y4,Y=0<=F7&&F7<G2?G2:F7,B=0<=Y?Y:0<=U?U:H5,0<=AG?(B6(2),UB(AG,B,Z,Q)):(SG&127)!==0&&(B6(2),j$(G2,B,B8)),Q=U;var w=Y,L=PZ,T=0<h9,b=q2===_Z,f=q2===VG;if(U=H5,Y=LZ,B=qN,z=YN,I1){if(o0="Blocking",0<Q?Q>U&&(Q=U):Q=U,0<w?w>Q&&(w=Q):w=Q,L!==null&&Q>w){var S=T?"secondary-light":"warning";Y?Y.run(console.timeStamp.bind(console,T?"Consecutive":"Event: "+L,w,Q,o0,r0,S)):console.timeStamp(T?"Consecutive":"Event: "+L,w,Q,o0,r0,S)}U>Q&&(w=b?"error":(Z&738197653)===Z?"tertiary-light":"primary-light",b=f?"Promise Resolved":b?"Cascading Update":5<U-Q?"Update Blocked":"Update",f=[],z!=null&&f.push(["Component name",z]),B!=null&&f.push(["Method name",B]),Q={start:Q,end:U,detail:{devtools:{properties:f,track:o0,trackGroup:r0,color:w}}},Y?Y.run(performance.measure.bind(performance,b,Q)):performance.measure(b,Q))}y4=-1.1,q2=0,YN=qN=null,AG=-1.1,h9=F7,F7=-1.1,G2=i1()}if((Z&4194048)!==0&&(p1=TZ,U=0<=K8&&K8<g4?g4:K8,Q=0<=g6&&g6<g4?g4:g6,Y=0<=Y2&&Y2<g4?g4:Y2,B=0<=Y?Y:0<=Q?Q:H5,0<=EG?(B6(256),UB(EG,B,Z,p1)):(SG&4194048)!==0&&(B6(256),j$(g4,B,B8)),f=Y,w=W7,L=0<X2,T=XN===VG,B=H5,Y=TZ,z=Tz,b=Cz,I1&&(o0="Transition",0<Q?Q>B&&(Q=B):Q=B,0<U?U>Q&&(U=Q):U=Q,0<f?f>U&&(f=U):f=U,U>f&&w!==null&&(S=L?"secondary-light":"warning",Y?Y.run(console.timeStamp.bind(console,L?"Consecutive":"Event: "+w,f,U,o0,r0,S)):console.timeStamp(L?"Consecutive":"Event: "+w,f,U,o0,r0,S)),Q>U&&(Y?Y.run(console.timeStamp.bind(console,"Action",U,Q,o0,r0,"primary-dark")):console.timeStamp("Action",U,Q,o0,r0,"primary-dark")),B>Q&&(U=T?"Promise Resolved":5<B-Q?"Update Blocked":"Update",f=[],b!=null&&f.push(["Component name",b]),z!=null&&f.push(["Method name",z]),Q={start:Q,end:B,detail:{devtools:{properties:f,track:o0,trackGroup:r0,color:"primary-light"}}},Y?Y.run(performance.measure.bind(performance,U,Q)):performance.measure(U,Q))),g6=K8=-1.1,XN=0,EG=-1.1,X2=Y2,Y2=-1.1,g4=i1()),(Z&62914560)!==0&&(SG&62914560)!==0&&(B6(4194304),j$(Oz,H5,B8)),(Z&2080374784)!==0&&(SG&2080374784)!==0&&(B6(268435456),j$(Iz,H5,B8)),Q=$.timeoutHandle,Q!==S7&&($.timeoutHandle=S7,vO(Q)),Q=$.cancelPendingCommit,Q!==null&&($.cancelPendingCommit=null,Q()),X4=0,rY(),_1=$,x0=Q=a4($.current,null),u0=Z,H1=o5,I6=null,K2=!1,a9=p2($,Z),VN=!1,v1=M8,O7=a5=AN=H2=B2=0,p5=dZ=null,lG=!1,(Z&8)!==0&&(Z|=Z&32),Y=$.entangledLanes,Y!==0)for($=$.entanglements,Y&=Z;0<Y;)U=31-y5(Y),B=1<<U,Z|=$[U],Y&=~B;return u4=Z,UQ(),$=Mz(),1000<$-zz&&(x.recentlyCreatedOwnerStacks=0,zz=$),G4.discardPendingWarnings(),Q}function KF($,Z){A0=null,x.H=yZ,x.getCurrentStack=null,D4=!1,_6=null,Z===x9||Z===vG?(Z=jB(),H1=xZ):Z===BN?(Z=jB(),H1=PM):H1=Z===PN?IN:Z!==null&&typeof Z==="object"&&typeof Z.then==="function"?mZ:pG,I6=Z;var Q=x0;Q===null?(v1=uZ,uQ($,H6(Z,$.current))):Q.mode&g0&&cq(Q)}function BF(){var $=T6.current;return $===null?!0:(u0&4194048)===u0?h6===null?!0:!1:(u0&62914560)===u0||(u0&536870912)!==0?$===h6:!1}function HF(){var $=x.H;return x.H=yZ,$===null?yZ:$}function FF(){var $=x.A;return x.A=_O,$}function sQ($){p1===null&&(p1=$._debugTask==null?null:$._debugTask)}function nQ(){v1=U2,K2||(u0&4194048)!==u0&&T6.current!==null||(a9=!0),(B2&134217727)===0&&(H2&134217727)===0||_1===null||l8(_1,u0,a5,!1)}function sY($,Z,Q){var Y=Z1;Z1|=Y5;var U=HF(),B=FF();if(_1!==$||u0!==Z){if(k4){var z=$.memoizedUpdaters;0<z.size&&(a$($,u0),z.clear()),b8($,Z)}pZ=null,z9($,Z)}Z=!1,z=v1;$:do try{if(H1!==o5&&x0!==null){var w=x0,L=I6;switch(H1){case IN:rY(),z=dG;break $;case xZ:case T7:case C7:case mZ:T6.current===null&&(Z=!0);var T=H1;if(H1=o5,I6=null,M9($,w,L,T),Q&&a9){z=M8;break $}break;default:T=H1,H1=o5,I6=null,M9($,w,L,T)}}WF(),z=v1;break}catch(b){KF($,b)}while(1);return Z&&$.shellSuspendCounter++,WQ(),Z1=Y,x.H=U,x.A=B,x0===null&&(_1=null,u0=0,UQ()),z}function WF(){for(;x0!==null;)zF(x0)}function ZT($,Z){var Q=Z1;Z1|=Y5;var Y=HF(),U=FF();if(_1!==$||u0!==Z){if(k4){var B=$.memoizedUpdaters;0<B.size&&(a$($,u0),B.clear()),b8($,Z)}pZ=null,sG=B5()+OM,z9($,Z)}else a9=p2($,Z);$:do try{if(H1!==o5&&x0!==null)Z:switch(Z=x0,B=I6,H1){case pG:H1=o5,I6=null,M9($,Z,B,pG);break;case T7:case C7:if(SB(B)){H1=o5,I6=null,MF(Z);break}Z=function(){H1!==T7&&H1!==C7||_1!==$||(H1=cG),V4($)},B.then(Z,Z);break $;case xZ:H1=cG;break $;case PM:H1=ON;break $;case cG:SB(B)?(H1=o5,I6=null,MF(Z)):(H1=o5,I6=null,M9($,Z,B,cG));break;case ON:var z=null;switch(x0.tag){case 26:z=x0.memoizedState;case 5:case 27:var w=x0;if(z?NW(z):w.stateNode.complete){H1=o5,I6=null;var L=w.sibling;if(L!==null)x0=L;else{var T=w.return;T!==null?(x0=T,oQ(T)):x0=null}break Z}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}H1=o5,I6=null,M9($,Z,B,ON);break;case mZ:H1=o5,I6=null,M9($,Z,B,mZ);break;case IN:rY(),v1=dG;break $;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}x.actQueue!==null?WF():JT();break}catch(b){KF($,b)}while(1);if(WQ(),x.H=Y,x.A=U,Z1=Q,x0!==null)return M8;return _1=null,u0=0,UQ(),v1}function JT(){for(;x0!==null&&!$C();)zF(x0)}function zF($){var Z=$.alternate;($.mode&g0)!==V0?(pq($),Z=q0($,gY,Z,$,u4),cq($)):Z=q0($,gY,Z,$,u4),$.memoizedProps=$.pendingProps,Z===null?oQ($):x0=Z}function MF($){var Z=q0($,QT,$);$.memoizedProps=$.pendingProps,Z===null?oQ($):x0=Z}function QT($){var Z=$.alternate,Q=($.mode&g0)!==V0;switch(Q&&pq($),$.tag){case 15:case 0:Z=AH(Z,$,$.pendingProps,$.type,void 0,u0);break;case 11:Z=AH(Z,$,$.pendingProps,$.type.render,$.ref,u0);break;case 5:QY($);default:bH(Z,$),$=x0=zB($,u4),Z=gY(Z,$,u4)}return Q&&cq($),Z}function M9($,Z,Q,Y){WQ(),QY(Z),m9=null,kZ=0;var U=Z.return;try{if(mP($,U,Z,Q,u0)){v1=uZ,uQ($,H6(Q,$.current)),x0=null;return}}catch(B){if(U!==null)throw x0=U,B;v1=uZ,uQ($,H6(Q,$.current)),x0=null;return}if(Z.flags&32768){if(i0||Y===pG)$=!0;else if(a9||(u0&536870912)!==0)$=!1;else if(K2=$=!0,Y===T7||Y===C7||Y===xZ||Y===mZ)Y=T6.current,Y!==null&&Y.tag===13&&(Y.flags|=16384);wF(Z,$)}else oQ(Z)}function oQ($){var Z=$;do{if((Z.flags&32768)!==0){wF(Z,K2);return}var Q=Z.alternate;if($=Z.return,pq(Z),Q=q0(Z,cP,Q,Z,u4),(Z.mode&g0)!==V0&&OB(Z),Q!==null){x0=Q;return}if(Z=Z.sibling,Z!==null){x0=Z;return}x0=Z=$}while(Z!==null);v1===M8&&(v1=LM)}function wF($,Z){do{var Q=lP($.alternate,$);if(Q!==null){Q.flags&=32767,x0=Q;return}if(($.mode&g0)!==V0){OB($),Q=$.actualDuration;for(var Y=$.child;Y!==null;)Q+=Y.actualDuration,Y=Y.sibling;$.actualDuration=Q}if(Q=$.return,Q!==null&&(Q.flags|=32768,Q.subtreeFlags=0,Q.deletions=null),!Z&&($=$.sibling,$!==null)){x0=$;return}x0=$=Q}while($!==null);v1=dG,x0=null}function nY($,Z,Q,Y,U,B,z,w,L,T,b,f,S,g){$.cancelPendingCommit=null;do o$();while(J5!==W2);if(G4.flushLegacyContextWarning(),G4.flushPendingUnsafeLifecycleWarnings(),(Z1&(Y5|O6))!==W5)throw Error("Should not already be working.");if(B6(Q),T===P7?Sq(S,g,Q,p1):Y!==null?EP(S,g,Q,Y,Z!==null&&Z.alternate!==null&&Z.alternate.memoizedState.isDehydrated&&(Z.flags&256)!==0,p1):AP(S,g,Q,p1),Z!==null){if(Q===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),Z===$.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(B=Z.lanes|Z.childLanes,B|=$N,tJ($,Q,B,z,w,L),$===_1&&(x0=_1=null,u0=0),i9=Z,z2=$,X4=Q,DN=B,kN=U,DM=Y,jN=g,jM=f,N4=nG,kM=null,Z.actualDuration!==0||(Z.subtreeFlags&10256)!==0||(Z.flags&10256)!==0?($.callbackNode=null,$.callbackPriority=0,NT(T9,function(){return oZ=window.event,N4===nG&&(N4=SN),TF(),null})):($.callbackNode=null,$.callbackPriority=0),U8=null,Q2=i1(),f!==null&&SP(g,Q2,f,p1),Y=(Z.flags&13878)!==0,(Z.subtreeFlags&13878)!==0||Y){Y=x.T,x.T=null,U=U1.p,U1.p=L6,z=Z1,Z1|=O6;try{iP($,Z,Q)}finally{Z1=z,U1.p=U,x.T=Y}}J5=VM,RF(),_F(),LF()}}function RF(){if(J5===VM){J5=W2;var $=z2,Z=i9,Q=X4,Y=(Z.flags&13878)!==0;if((Z.subtreeFlags&13878)!==0||Y){Y=x.T,x.T=null;var U=U1.p;U1.p=L6;var B=Z1;Z1|=O6;try{n9=Q,o9=$,RQ(),oH(Z,$),o9=n9=null,Q=pN;var z=qB($.containerInfo),w=Q.focusedElem,L=Q.selectionRange;if(z!==w&&w&&w.ownerDocument&&GB(w.ownerDocument.documentElement,w)){if(L!==null&&Vq(w)){var{start:T,end:b}=L;if(b===void 0&&(b=T),"selectionStart"in w)w.selectionStart=T,w.selectionEnd=Math.min(b,w.value.length);else{var f=w.ownerDocument||document,S=f&&f.defaultView||window;if(S.getSelection){var g=S.getSelection(),$0=w.textContent.length,G0=Math.min(L.start,$0),C1=L.end===void 0?G0:Math.min(L.end,$0);!g.extend&&G0>C1&&(z=C1,C1=G0,G0=z);var e0=QB(w,G0),A=QB(w,C1);if(e0&&A&&(g.rangeCount!==1||g.anchorNode!==e0.node||g.anchorOffset!==e0.offset||g.focusNode!==A.node||g.focusOffset!==A.offset)){var D=f.createRange();D.setStart(e0.node,e0.offset),g.removeAllRanges(),G0>C1?(g.addRange(D),g.extend(A.node,A.offset)):(D.setEnd(A.node,A.offset),g.addRange(D))}}}}f=[];for(g=w;g=g.parentNode;)g.nodeType===1&&f.push({element:g,left:g.scrollLeft,top:g.scrollTop});typeof w.focus==="function"&&w.focus();for(w=0;w<f.length;w++){var v=f[w];v.element.scrollLeft=v.left,v.element.scrollTop=v.top}}K3=!!dN,pN=dN=null}finally{Z1=B,U1.p=U,x.T=Y}}$.current=Z,J5=AM}}function _F(){if(J5===AM){J5=W2;var $=kM;if($!==null){Q2=i1();var Z=N8,Q=Q2;!I1||Q<=Z||(B8?B8.run(console.timeStamp.bind(console,$,Z,Q,o0,r0,"secondary-light")):console.timeStamp($,Z,Q,o0,r0,"secondary-light"))}$=z2,Z=i9,Q=X4;var Y=(Z.flags&8772)!==0;if((Z.subtreeFlags&8772)!==0||Y){Y=x.T,x.T=null;var U=U1.p;U1.p=L6;var B=Z1;Z1|=O6;try{n9=Q,o9=$,RQ(),cH($,Z.alternate,Z),o9=n9=null}finally{Z1=B,U1.p=U,x.T=Y}}$=jN,Z=jM,N8=i1(),$=Z===null?$:Q2,Z=N8,Q=N4===EN,Y=p1,U8!==null?KB($,Z,U8,!1,Y):!I1||Z<=$||(Y?Y.run(console.timeStamp.bind(console,Q?"Commit Interrupted View Transition":"Commit",$,Z,o0,r0,Q?"error":"secondary-dark")):console.timeStamp(Q?"Commit Interrupted View Transition":"Commit",$,Z,o0,r0,Q?"error":"secondary-dark")),J5=EM}}function LF(){if(J5===SM||J5===EM){if(J5===SM){var $=N8;N8=i1();var Z=N8,Q=N4===EN;!I1||Z<=$||(B8?B8.run(console.timeStamp.bind(console,Q?"Interrupted View Transition":"Starting Animation",$,Z,o0,r0,Q?"error":"secondary-light")):console.timeStamp(Q?"Interrupted View Transition":"Starting Animation",$,Z,o0,r0,Q?" error":"secondary-light")),N4!==EN&&(N4=IM)}J5=W2,ZC(),$=z2;var Y=i9;Z=X4,Q=DM;var U=Y.actualDuration!==0||(Y.subtreeFlags&10256)!==0||(Y.flags&10256)!==0;U?J5=oG:(J5=W2,i9=z2=null,PF($,$.pendingLanes),I7=0,lZ=null);var B=$.pendingLanes;if(B===0&&(F2=null),U||VF($),B=C(Z),Y=Y.stateNode,S5&&typeof S5.onCommitFiberRoot==="function")try{var z=(Y.current.flags&128)===128;switch(B){case L6:var w=kX;break;case J4:w=vX;break;case v4:w=T9;break;case FG:w=bX;break;default:w=T9}S5.onCommitFiberRoot(C9,Y,w,z)}catch(f){j4||(j4=!0,console.error("React instrumentation encountered an error: %o",f))}if(k4&&$.memoizedUpdaters.clear(),eP(),Q!==null){z=x.T,w=U1.p,U1.p=L6,x.T=null;try{var L=$.onRecoverableError;for(Y=0;Y<Q.length;Y++){var T=Q[Y],b=GT(T.stack);q0(T.source,L,T.value,b)}}finally{x.T=z,U1.p=w}}(X4&3)!==0&&o$(),V4($),B=$.pendingLanes,(Z&261930)!==0&&(B&42)!==0?(jG=!0,$===vN?cZ++:(cZ=0,vN=$)):cZ=0,U||N7(Z,N8),i$(0,!1)}}function GT($){return $={componentStack:$},Object.defineProperty($,"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.')}}),$}function PF($,Z){($.pooledCacheLanes&=Z)===0&&(Z=$.pooledCache,Z!=null&&($.pooledCache=null,v$(Z)))}function o$(){return RF(),_F(),LF(),TF()}function TF(){if(J5!==oG)return!1;var $=z2,Z=DN;DN=0;var Q=C(X4),Y=v4===0||v4>Q?v4:Q;Q=x.T;var U=U1.p;try{U1.p=Y,x.T=null;var B=kN;kN=null,Y=z2;var z=X4;if(J5=W2,i9=z2=null,X4=0,(Z1&(Y5|O6))!==W5)throw Error("Cannot flush passive effects while already rendering.");B6(z),bN=!0,aG=!1;var w=0;if(U8=null,w=B5(),N4===IM)j$(N8,w,B8);else{var L=N8,T=w,b=N4===SN;!I1||T<=L||(p1?p1.run(console.timeStamp.bind(console,b?"Waiting for Paint":"Waiting",L,T,o0,r0,"secondary-light")):console.timeStamp(b?"Waiting for Paint":"Waiting",L,T,o0,r0,"secondary-light"))}L=Z1,Z1|=O6;var f=Y.current;RQ(),QF(f);var S=Y.current;f=jN,RQ(),eH(Y,S,z,B,f),VF(Y),Z1=L;var g=B5();if(S=w,f=p1,U8!==null?KB(S,g,U8,!0,f):!I1||g<=S||(f?f.run(console.timeStamp.bind(console,"Remaining Effects",S,g,o0,r0,"secondary-dark")):console.timeStamp("Remaining Effects",S,g,o0,r0,"secondary-dark")),N7(z,g),i$(0,!1),aG?Y===lZ?I7++:(I7=0,lZ=Y):I7=0,aG=bN=!1,S5&&typeof S5.onPostCommitFiberRoot==="function")try{S5.onPostCommitFiberRoot(C9,Y)}catch(G0){j4||(j4=!0,console.error("React instrumentation encountered an error: %o",G0))}var $0=Y.current.stateNode;return $0.effectDuration=0,$0.passiveEffectDuration=0,!0}finally{U1.p=U,x.T=Q,PF($,Z)}}function CF($,Z,Q){Z=H6(Q,Z),IB(Z),Z=VY($.stateNode,Z,2),$=m8($,Z,2),$!==null&&(v8($,2),V4($))}function N1($,Z,Q){if(t9=!1,$.tag===3)CF($,$,Q);else{for(;Z!==null;){if(Z.tag===3){CF(Z,$,Q);return}if(Z.tag===1){var Y=Z.stateNode;if(typeof Z.type.getDerivedStateFromError==="function"||typeof Y.componentDidCatch==="function"&&(F2===null||!F2.has(Y))){$=H6(Q,$),IB($),Q=AY(2),Y=m8(Z,Q,2),Y!==null&&(EY(Q,Y,Z,$),v8(Y,2),V4(Y));return}}Z=Z.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`,
|
|
157
|
+
%s`,Q)}}function oY($,Z,Q){var Y=$.pingCache;if(Y===null){Y=$.pingCache=new PO;var U=new Set;Y.set(Z,U)}else U=Y.get(Z),U===void 0&&(U=new Set,Y.set(Z,U));U.has(Q)||(VN=!0,U.add(Q),Y=qT.bind(null,$,Z,Q),k4&&a$($,Q),Z.then(Y,Y))}function qT($,Z,Q){var Y=$.pingCache;Y!==null&&Y.delete(Z),$.pingedLanes|=$.suspendedLanes&Q,$.warmLanes&=~Q,(Q&127)!==0?0>y4&&(G2=y4=i1(),LZ=IG("Promise Resolved"),q2=VG):(Q&4194048)!==0&&0>g6&&(g4=g6=i1(),TZ=IG("Promise Resolved"),XN=VG),YF()&&x.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`),_1===$&&(u0&Q)===Q&&(v1===U2||v1===mG&&(u0&62914560)===u0&&B5()-rG<CM?(Z1&Y5)===W5&&z9($,0):AN|=Q,O7===u0&&(O7=0)),V4($)}function OF($,Z){Z===0&&(Z=$9()),$=E5($,Z),$!==null&&(v8($,Z),V4($))}function YT($){var Z=$.memoizedState,Q=0;Z!==null&&(Q=Z.retryLane),OF($,Q)}function XT($,Z){var Q=0;switch($.tag){case 31:case 13:var{stateNode:Y,memoizedState:U}=$;U!==null&&(Q=U.retryLane);break;case 19:Y=$.stateNode;break;case 22:Y=$.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}Y!==null&&Y.delete(Z),OF($,Q)}function aY($,Z,Q){if((Z.subtreeFlags&67117056)!==0)for(Z=Z.child;Z!==null;){var Y=$,U=Z,B=U.type===XG;B=Q||B,U.tag!==22?U.flags&67108864?B&&q0(U,IF,Y,U):aY(Y,U,B):U.memoizedState===null&&(B&&U.flags&8192?q0(U,IF,Y,U):U.subtreeFlags&67108864&&q0(U,aY,Y,U,B)),Z=Z.sibling}}function IF($,Z){P1(!0);try{iH(Z),GF(Z),tH($,Z.alternate,Z,!1),$F($,Z,0,null,!1,0)}finally{P1(!1)}}function VF($){var Z=!0;$.current.mode&(D5|Q4)||(Z=!1),aY($,$.current,Z)}function AF($){if((Z1&Y5)===W5){var Z=$.tag;if(Z===3||Z===1||Z===0||Z===11||Z===14||Z===15){if(Z=d($)||"ReactComponent",iG!==null){if(iG.has(Z))return;iG.add(Z)}else iG=new Set([Z]);q0($,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 a$($,Z){k4&&$.memoizedUpdaters.forEach(function(Q){T$($,Q,Z)})}function NT($,Z){var Q=x.actQueue;return Q!==null?(Q.push(Z),OO):jX($,Z)}function UT($){YF()&&x.actQueue===null&&q0($,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,86 +172,86 @@ 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`,d($))})}function S4($){$!==q$&&$.next===null&&(q$===null?H3=q$=$:q$=q$.next=$),F3=!0,x.actQueue!==null?$U||($U=!0,eF()):eN||(eN=!0,eF())}function UZ($,Z){if(!ZU&&F3){ZU=!0;do{var G=!1;for(var Y=H3;Y!==null;){if(!Z)if($!==0){var U=Y.pendingLanes;if(U===0)var B=0;else{var{suspendedLanes:W,pingedLanes:z}=Y;B=(1<<31-u5(42|$)+1)-1,B&=U&~(W&~z),B=B&201326741?B&201326741|1:B?B|2:0}B!==0&&(G=!0,tF(Y,B))}else B=u0,B=n2(Y,Y===P1?B:0,Y.cancelPendingCommit!==null||Y.timeoutHandle!==k9),(B&3)===0||s2(Y,B)||(G=!0,tF(Y,B));Y=Y.next}}while(G);ZU=!1}}function NC(){YQ=window.event,WY()}function WY(){F3=$U=eN=!1;var $=0;T2!==0&&WC()&&($=T2);for(var Z=F5(),G=null,Y=H3;Y!==null;){var U=Y.next,B=aF(Y,Z);if(B===0)Y.next=null,G===null?H3=U:G.next=U,U===null&&(q$=G);else if(G=Y,$!==0||(B&3)!==0)F3=!0;Y=U}G5!==L2&&G5!==U3||UZ($,!1),T2!==0&&(T2=0)}function aF($,Z){for(var{suspendedLanes:G,pingedLanes:Y,expirationTimes:U}=$,B=$.pendingLanes&-62914561;0<B;){var W=31-u5(B),z=1<<W,L=U[W];if(L===-1){if((z&G)===0||(z&Y)!==0)U[W]=bX(z,Z)}else L<=Z&&($.expiredLanes|=z);B&=~z}if(Z=P1,G=u0,G=n2($,$===Z?G:0,$.cancelPendingCommit!==null||$.timeoutHandle!==k9),Y=$.callbackNode,G===0||$===Z&&(M1===A9||M1===E9)||$.cancelPendingCommit!==null)return Y!==null&&wY(Y),$.callbackNode=null,$.callbackPriority=0;if((G&3)===0||s2($,G)){if(Z=G&-G,Z!==$.callbackPriority||x.actQueue!==null&&Y!==QU)wY(Y);else return Z;switch(C(G)){case C6:case X4:G=iY;break;case y4:G=S7;break;case AG:G=tY;break;default:G=S7}return Y=iF.bind(null,$),x.actQueue!==null?(x.actQueue.push(Y),G=QU):G=oY(G,Y),$.callbackPriority=Z,$.callbackNode=G,Z}return Y!==null&&wY(Y),$.callbackPriority=2,$.callbackNode=null,2}function iF($,Z){if(lG=cG=!1,YQ=window.event,G5!==L2&&G5!==U3)return $.callbackNode=null,$.callbackPriority=0,null;var G=$.callbackNode;if(B4===N3&&(B4=nN),YZ()&&$.callbackNode!==G)return null;var Y=u0;if(Y=n2($,$===P1?Y:0,$.cancelPendingCommit!==null||$.timeoutHandle!==k9),Y===0)return null;return jF($,Y,Z),aF($,F5()),$.callbackNode!=null&&$.callbackNode===G?iF.bind(null,$):null}function tF($,Z){if(YZ())return null;cG=lG,lG=!1,jF($,Z,!0)}function wY($){$!==QU&&$!==null&&iC($)}function eF(){x.actQueue!==null&&x.actQueue.push(function(){return WY(),null}),vO(function(){(Z1&(N5|A6))!==w5?oY(aY,NC):WY()})}function RY(){if(T2===0){var $=L9;$===0&&($=IG,IG<<=1,(IG&261888)===0&&(IG=256)),T2=$}return T2}function $M($){if($==null||typeof $==="symbol"||typeof $==="boolean")return null;if(typeof $==="function")return $;return w1($,"action"),x$(""+$)}function ZM($,Z){var G=Z.ownerDocument.createElement("input");return G.name=Z.name,G.value=Z.value,$.id&&G.setAttribute("form",$.id),Z.parentNode.insertBefore(G,Z),$=new FormData($),G.parentNode.removeChild(G),$}function UC($,Z,G,Y,U){if(Z==="submit"&&G&&G.stateNode===U){var B=$M((U[x5]||null).action),W=Y.submitter;W&&(Z=(Z=W[x5]||null)?$M(Z.formAction):W.getAttribute("formAction"),Z!==null&&(B=Z,W=null));var z=new vG("action","action",null,Y,U);$.push({event:z,listeners:[{instance:null,listener:function(){if(Y.defaultPrevented){if(T2!==0){var L=W?ZM(U,W):new FormData(U),T={pending:!0,data:L,method:U.method,action:B};Object.freeze(T),gq(G,T,null,L)}}else typeof B==="function"&&(z.preventDefault(),L=W?ZM(U,W):new FormData(U),T={pending:!0,data:L,method:U.method,action:B},Object.freeze(T),gq(G,T,B,L))},currentTarget:U}]})}}function KG($,Z,G){$.currentTarget=G;try{Z($)}catch(Y){MN(Y)}$.currentTarget=null}function QM($,Z){Z=(Z&4)!==0;for(var G=0;G<$.length;G++){var Y=$[G];$:{var U=void 0,B=Y.event;if(Y=Y.listeners,Z)for(var W=Y.length-1;0<=W;W--){var z=Y[W],L=z.instance,T=z.currentTarget;if(z=z.listener,L!==U&&B.isPropagationStopped())break $;L!==null?X0(L,KG,B,z,T):KG(B,z,T),U=L}else for(W=0;W<Y.length;W++){if(z=Y[W],L=z.instance,T=z.currentTarget,z=z.listener,L!==U&&B.isPropagationStopped())break $;L!==null?X0(L,KG,B,z,T):KG(B,z,T),U=L}}}}function t0($,Z){JU.has($)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',$);var G=Z[eY];G===void 0&&(G=Z[eY]=new Set);var Y=$+"__bubble";G.has(Y)||(JM(Z,$,2,!1),G.add(Y))}function zY($,Z,G){JU.has($)&&!Z&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',$);var Y=0;Z&&(Y|=4),JM(G,$,Y,Z)}function _Y($){if(!$[M3]){$[M3]=!0,eM.forEach(function(G){G!=="selectionchange"&&(JU.has(G)||zY(G,!1,$),zY(G,!0,$))});var Z=$.nodeType===9?$:$.ownerDocument;Z===null||Z[M3]||(Z[M3]=!0,zY("selectionchange",!1,Z))}}function JM($,Z,G,Y){switch(yM(Z)){case C6:var U=pC;break;case X4:U=cC;break;default:U=fY}G=U.bind(null,Z,G,$),U=void 0,!GN||Z!=="touchstart"&&Z!=="touchmove"&&Z!=="wheel"||(U=!0),Y?U!==void 0?$.addEventListener(Z,G,{capture:!0,passive:U}):$.addEventListener(Z,G,!0):U!==void 0?$.addEventListener(Z,G,{passive:U}):$.addEventListener(Z,G,!1)}function LY($,Z,G,Y,U){var B=Y;if((Z&1)===0&&(Z&2)===0&&Y!==null)$:for(;;){if(Y===null)return;var W=Y.tag;if(W===3||W===4){var z=Y.stateNode.containerInfo;if(z===U)break;if(W===4)for(W=Y.return;W!==null;){var L=W.tag;if((L===3||L===4)&&W.stateNode.containerInfo===U)return;W=W.return}for(;z!==null;){if(W=N0(z),W===null)return;if(L=W.tag,L===5||L===6||L===26||L===27){Y=B=W;continue $}z=z.parentNode}}Y=Y.return}MB(function(){var T=B,k=dX(G),f=[];$:{var S=yW.get($);if(S!==void 0){var g=vG,$0=$;switch($){case"keypress":if(zJ(G)===0)break $;case"keydown":case"keyup":g=hI;break;case"focusin":$0="focus",g=NN;break;case"focusout":$0="blur",g=NN;break;case"beforeblur":case"afterblur":g=NN;break;case"click":if(G.button===2)break $;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":g=TW;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=VI;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=mI;break;case vW:case bW:case kW:g=SI;break;case fW:g=pI;break;case"scroll":case"scrollend":g=II;break;case"wheel":g=lI;break;case"copy":case"cut":case"paste":g=DI;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=IW;break;case"toggle":case"beforetoggle":g=nI}var G0=(Z&4)!==0,O1=!G0&&($==="scroll"||$==="scrollend"),e0=G0?S!==null?S+"Capture":null:S;G0=[];for(var E=T,j;E!==null;){var b=E;if(j=b.stateNode,b=b.tag,b!==5&&b!==26&&b!==27||j===null||e0===null||(b=m$(E,e0),b!=null&&G0.push(KZ(E,b,j))),O1)break;E=E.return}0<G0.length&&(S=new g(S,$0,null,G,k),f.push({event:S,listeners:G0}))}}if((Z&7)===0){$:{if(S=$==="mouseover"||$==="pointerover",g=$==="mouseout"||$==="pointerout",S&&G!==PZ&&($0=G.relatedTarget||G.fromElement)&&(N0($0)||$0[J2]))break $;if(g||S){if(S=k.window===k?k:(S=k.ownerDocument)?S.defaultView||S.parentWindow:window,g){if($0=G.relatedTarget||G.toElement,g=T,$0=$0?N0($0):null,$0!==null&&(O1=D($0),G0=$0.tag,$0!==O1||G0!==5&&G0!==27&&G0!==6))$0=null}else g=null,$0=T;if(g!==$0){if(G0=TW,b="onMouseLeave",e0="onMouseEnter",E="mouse",$==="pointerout"||$==="pointerover")G0=IW,b="onPointerLeave",e0="onPointerEnter",E="pointer";if(O1=g==null?S:v0(g),j=$0==null?S:v0($0),S=new G0(b,E+"leave",g,G,k),S.target=O1,S.relatedTarget=j,b=null,N0(k)===T&&(G0=new G0(e0,E+"enter",$0,G,k),G0.target=j,G0.relatedTarget=O1,b=G0),O1=b,g&&$0)Z:{G0=KC,e0=g,E=$0,j=0;for(b=e0;b;b=G0(b))j++;b=0;for(var m=E;m;m=G0(m))b++;for(;0<j-b;)e0=G0(e0),j--;for(;0<b-j;)E=G0(E),b--;for(;j--;){if(e0===E||E!==null&&e0===E.alternate){G0=e0;break Z}e0=G0(e0),E=G0(E)}G0=null}else G0=null;g!==null&&GM(f,S,g,G0,!1),$0!==null&&O1!==null&&GM(f,O1,$0,G0,!0)}}}$:{if(S=T?v0(T):window,g=S.nodeName&&S.nodeName.toLowerCase(),g==="select"||g==="input"&&S.type==="file")var Q0=PB;else if(_B(S))if(jW)Q0=TT;else{Q0=LT;var E0=_T}else g=S.nodeName,!g||g.toLowerCase()!=="input"||S.type!=="checkbox"&&S.type!=="radio"?T&&u$(T.elementType)&&(Q0=PB):Q0=PT;if(Q0&&(Q0=Q0($,T))){LB(f,Q0,G,k);break $}E0&&E0($,S,T),$==="focusout"&&T&&S.type==="number"&&T.memoizedProps.value!=null&&yX(S,"number",S.value)}switch(E0=T?v0(T):window,$){case"focusin":if(_B(E0)||E0.contentEditable==="true")g7=E0,KN=T,EZ=null;break;case"focusout":EZ=KN=g7=null;break;case"mousedown":BN=!0;break;case"contextmenu":case"mouseup":case"dragend":BN=!1,EB(f,G,k);break;case"selectionchange":if(iI)break;case"keydown":case"keyup":EB(f,G,k)}var z0;if(UN)$:{switch($){case"compositionstart":var B0="onCompositionStart";break $;case"compositionend":B0="onCompositionEnd";break $;case"compositionupdate":B0="onCompositionUpdate";break $}B0=void 0}else y7?RB($,G)&&(B0="onCompositionEnd"):$==="keydown"&&G.keyCode===OW&&(B0="onCompositionStart");if(B0&&(VW&&G.locale!=="ko"&&(y7||B0!=="onCompositionStart"?B0==="onCompositionEnd"&&y7&&(z0=WB()):(G2=k,XN=("value"in G2)?G2.value:G2.textContent,y7=!0)),E0=BG(T,B0),0<E0.length&&(B0=new CW(B0,$,null,G,k),f.push({event:B0,listeners:E0}),z0?B0.data=z0:(z0=zB(G),z0!==null&&(B0.data=z0)))),z0=oI?WT($,G):wT($,G))B0=BG(T,"onBeforeInput"),0<B0.length&&(E0=new bI("onBeforeInput","beforeinput",null,G,k),f.push({event:E0,listeners:B0}),E0.data=z0);UC(f,$,T,G,k)}QM(f,Z)})}function KZ($,Z,G){return{instance:$,listener:Z,currentTarget:G}}function BG($,Z){for(var G=Z+"Capture",Y=[];$!==null;){var U=$,B=U.stateNode;if(U=U.tag,U!==5&&U!==26&&U!==27||B===null||(U=m$($,G),U!=null&&Y.unshift(KZ($,U,B)),U=m$($,Z),U!=null&&Y.push(KZ($,U,B))),$.tag===3)return Y;$=$.return}return[]}function KC($){if($===null)return null;do $=$.return;while($&&$.tag!==5&&$.tag!==27);return $?$:null}function GM($,Z,G,Y,U){for(var B=Z._reactName,W=[];G!==null&&G!==Y;){var z=G,L=z.alternate,T=z.stateNode;if(z=z.tag,L!==null&&L===Y)break;z!==5&&z!==26&&z!==27||T===null||(L=T,U?(T=m$(G,B),T!=null&&W.unshift(KZ(G,T,L))):U||(T=m$(G,B),T!=null&&W.push(KZ(G,T,L)))),G=G.return}W.length!==0&&$.push({event:Z,listeners:W})}function PY($,Z){BT($,Z),$!=="input"&&$!=="textarea"&&$!=="select"||Z==null||Z.value!==null||LW||(LW=!0,$==="select"&&Z.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.",$):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",$));var G={registrationNameDependencies:M9,possibleRegistrationNames:$N};u$($)||typeof Z.is==="string"||FT($,Z,G),Z.contentEditable&&!Z.suppressContentEditableWarning&&Z.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 H5($,Z,G,Y){Z!==G&&(G=t8(G),t8(Z)!==G&&(Y[$]=Z))}function BC($,Z,G){Z.forEach(function(Y){G[YM(Y)]=Y==="style"?CY($):$.getAttribute(Y)})}function j4($,Z){Z===!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.",$,$,$):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",$,typeof Z)}function XM($,Z){return $=$.namespaceURI===SG||$.namespaceURI===v7?$.ownerDocument.createElementNS($.namespaceURI,$.tagName):$.ownerDocument.createElement($.tagName),$.innerHTML=Z,$.innerHTML}function t8($){return h8($)&&(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.",r2($)),B5($)),(typeof $==="string"?$:""+$).replace(CO,`
|
|
176
|
-
`).replace(IO,"")}function qM($,Z){return Z=t8(Z),t8($)===Z?!0:!1}function _1($,Z,G,Y,U,B){switch(G){case"children":if(typeof Y==="string")RJ(Y,Z,!1),Z==="body"||Z==="textarea"&&Y===""||h$($,Y);else if(typeof Y==="number"||typeof Y==="bigint")RJ(""+Y,Z,!1),Z!=="body"&&h$($,""+Y);break;case"className":MJ($,"class",Y);break;case"tabIndex":MJ($,"tabindex",Y);break;case"dir":case"role":case"viewBox":case"width":case"height":MJ($,G,Y);break;case"style":BB($,Y,B);break;case"data":if(Z!=="object"){MJ($,"data",Y);break}case"src":case"href":if(Y===""&&(Z!=="a"||G!=="href")){G==="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.',G,G):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.',G,G),$.removeAttribute(G);break}if(Y==null||typeof Y==="function"||typeof Y==="symbol"||typeof Y==="boolean"){$.removeAttribute(G);break}w1(Y,G),Y=x$(""+Y),$.setAttribute(G,Y);break;case"action":case"formAction":if(Y!=null&&(Z==="form"?G==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof Y==="function"&&(U.encType==null&&U.method==null||R3||(R3=!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.")),U.target==null||w3||(w3=!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."))):Z==="input"||Z==="button"?G==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):Z!=="input"||U.type==="submit"||U.type==="image"||W3?Z!=="button"||U.type==null||U.type==="submit"||W3?typeof Y==="function"&&(U.name==null||XR||(XR=!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.')),U.formEncType==null&&U.formMethod==null||R3||(R3=!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.")),U.formTarget==null||w3||(w3=!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."))):(W3=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(W3=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):G==="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 Y==="function"){$.setAttribute(G,"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 B==="function"&&(G==="formAction"?(Z!=="input"&&_1($,Z,"name",U.name,U,null),_1($,Z,"formEncType",U.formEncType,U,null),_1($,Z,"formMethod",U.formMethod,U,null),_1($,Z,"formTarget",U.formTarget,U,null)):(_1($,Z,"encType",U.encType,U,null),_1($,Z,"method",U.method,U,null),_1($,Z,"target",U.target,U,null)));if(Y==null||typeof Y==="symbol"||typeof Y==="boolean"){$.removeAttribute(G);break}w1(Y,G),Y=x$(""+Y),$.setAttribute(G,Y);break;case"onClick":Y!=null&&(typeof Y!=="function"&&j4(G,Y),$.onclick=e4);break;case"onScroll":Y!=null&&(typeof Y!=="function"&&j4(G,Y),t0("scroll",$));break;case"onScrollEnd":Y!=null&&(typeof Y!=="function"&&j4(G,Y),t0("scrollend",$));break;case"dangerouslySetInnerHTML":if(Y!=null){if(typeof Y!=="object"||!("__html"in Y))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(G=Y.__html,G!=null){if(U.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");$.innerHTML=G}}break;case"multiple":$.multiple=Y&&typeof Y!=="function"&&typeof Y!=="symbol";break;case"muted":$.muted=Y&&typeof Y!=="function"&&typeof Y!=="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(Y==null||typeof Y==="function"||typeof Y==="boolean"||typeof Y==="symbol"){$.removeAttribute("xlink:href");break}w1(Y,G),G=x$(""+Y),$.setAttributeNS(D9,"xlink:href",G);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":Y!=null&&typeof Y!=="function"&&typeof Y!=="symbol"?(w1(Y,G),$.setAttribute(G,""+Y)):$.removeAttribute(G);break;case"inert":Y!==""||z3[G]||(z3[G]=!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.",G));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":Y&&typeof Y!=="function"&&typeof Y!=="symbol"?$.setAttribute(G,""):$.removeAttribute(G);break;case"capture":case"download":Y===!0?$.setAttribute(G,""):Y!==!1&&Y!=null&&typeof Y!=="function"&&typeof Y!=="symbol"?(w1(Y,G),$.setAttribute(G,Y)):$.removeAttribute(G);break;case"cols":case"rows":case"size":case"span":Y!=null&&typeof Y!=="function"&&typeof Y!=="symbol"&&!isNaN(Y)&&1<=Y?(w1(Y,G),$.setAttribute(G,Y)):$.removeAttribute(G);break;case"rowSpan":case"start":Y==null||typeof Y==="function"||typeof Y==="symbol"||isNaN(Y)?$.removeAttribute(G):(w1(Y,G),$.setAttribute(G,Y));break;case"popover":t0("beforetoggle",$),t0("toggle",$),FJ($,"popover",Y);break;case"xlinkActuate":t4($,D9,"xlink:actuate",Y);break;case"xlinkArcrole":t4($,D9,"xlink:arcrole",Y);break;case"xlinkRole":t4($,D9,"xlink:role",Y);break;case"xlinkShow":t4($,D9,"xlink:show",Y);break;case"xlinkTitle":t4($,D9,"xlink:title",Y);break;case"xlinkType":t4($,D9,"xlink:type",Y);break;case"xmlBase":t4($,GU,"xml:base",Y);break;case"xmlLang":t4($,GU,"xml:lang",Y);break;case"xmlSpace":t4($,GU,"xml:space",Y);break;case"is":B!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),FJ($,"is",Y);break;case"innerText":case"textContent":break;case"popoverTarget":qR||Y==null||typeof Y!=="object"||(qR=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",Y));default:!(2<G.length)||G[0]!=="o"&&G[0]!=="O"||G[1]!=="n"&&G[1]!=="N"?(G=HB(G),FJ($,G,Y)):M9.hasOwnProperty(G)&&Y!=null&&typeof Y!=="function"&&j4(G,Y)}}function TY($,Z,G,Y,U,B){switch(G){case"style":BB($,Y,B);break;case"dangerouslySetInnerHTML":if(Y!=null){if(typeof Y!=="object"||!("__html"in Y))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(G=Y.__html,G!=null){if(U.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");$.innerHTML=G}}break;case"children":typeof Y==="string"?h$($,Y):(typeof Y==="number"||typeof Y==="bigint")&&h$($,""+Y);break;case"onScroll":Y!=null&&(typeof Y!=="function"&&j4(G,Y),t0("scroll",$));break;case"onScrollEnd":Y!=null&&(typeof Y!=="function"&&j4(G,Y),t0("scrollend",$));break;case"onClick":Y!=null&&(typeof Y!=="function"&&j4(G,Y),$.onclick=e4);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(M9.hasOwnProperty(G))Y!=null&&typeof Y!=="function"&&j4(G,Y);else $:{if(G[0]==="o"&&G[1]==="n"&&(U=G.endsWith("Capture"),Z=G.slice(2,U?G.length-7:void 0),B=$[x5]||null,B=B!=null?B[G]:null,typeof B==="function"&&$.removeEventListener(Z,B,U),typeof Y==="function")){typeof B!=="function"&&B!==null&&(G in $?$[G]=null:$.hasAttribute(G)&&$.removeAttribute(G)),$.addEventListener(Z,Y,U);break $}G in $?$[G]=Y:Y===!0?$.setAttribute(G,""):FJ($,G,Y)}}}function L5($,Z,G){switch(PY(Z,G),Z){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":t0("error",$),t0("load",$);var Y=!1,U=!1,B;for(B in G)if(G.hasOwnProperty(B)){var W=G[B];if(W!=null)switch(B){case"src":Y=!0;break;case"srcSet":U=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(Z+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:_1($,Z,B,W,G,null)}}U&&_1($,Z,"srcSet",G.srcSet,G,null),Y&&_1($,Z,"src",G.src,G,null);return;case"input":m8("input",G),t0("invalid",$);var z=B=W=U=null,L=null,T=null;for(Y in G)if(G.hasOwnProperty(Y)){var k=G[Y];if(k!=null)switch(Y){case"name":U=k;break;case"type":W=k;break;case"checked":L=k;break;case"defaultChecked":T=k;break;case"value":B=k;break;case"defaultValue":z=k;break;case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(Z+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:_1($,Z,Y,k,G,null)}}oK($,G),aK($,B,z,L,T,W,U,!1);return;case"select":m8("select",G),t0("invalid",$),Y=W=B=null;for(U in G)if(G.hasOwnProperty(U)&&(z=G[U],z!=null))switch(U){case"value":B=z;break;case"defaultValue":W=z;break;case"multiple":Y=z;default:_1($,Z,U,z,G,null)}eK($,G),Z=B,G=W,$.multiple=!!Y,Z!=null?U7($,!!Y,Z,!1):G!=null&&U7($,!!Y,G,!0);return;case"textarea":m8("textarea",G),t0("invalid",$),B=U=Y=null;for(W in G)if(G.hasOwnProperty(W)&&(z=G[W],z!=null))switch(W){case"value":Y=z;break;case"defaultValue":U=z;break;case"children":B=z;break;case"dangerouslySetInnerHTML":if(z!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:_1($,Z,W,z,G,null)}$B($,G),QB($,Y,U,B);return;case"option":iK($,G);for(L in G)if(G.hasOwnProperty(L)&&(Y=G[L],Y!=null))switch(L){case"selected":$.selected=Y&&typeof Y!=="function"&&typeof Y!=="symbol";break;default:_1($,Z,L,Y,G,null)}return;case"dialog":t0("beforetoggle",$),t0("toggle",$),t0("cancel",$),t0("close",$);break;case"iframe":case"object":t0("load",$);break;case"video":case"audio":for(Y=0;Y<GQ.length;Y++)t0(GQ[Y],$);break;case"image":t0("error",$),t0("load",$);break;case"details":t0("toggle",$);break;case"embed":case"source":case"link":t0("error",$),t0("load",$);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(T in G)if(G.hasOwnProperty(T)&&(Y=G[T],Y!=null))switch(T){case"children":case"dangerouslySetInnerHTML":throw Error(Z+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:_1($,Z,T,Y,G,null)}return;default:if(u$(Z)){for(k in G)G.hasOwnProperty(k)&&(Y=G[k],Y!==void 0&&TY($,Z,k,Y,G,void 0));return}}for(z in G)G.hasOwnProperty(z)&&(Y=G[z],Y!=null&&_1($,Z,z,Y,G,null))}function HC($,Z,G,Y){switch(PY(Z,Y),Z){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var U=null,B=null,W=null,z=null,L=null,T=null,k=null;for(g in G){var f=G[g];if(G.hasOwnProperty(g)&&f!=null)switch(g){case"checked":break;case"value":break;case"defaultValue":L=f;default:Y.hasOwnProperty(g)||_1($,Z,g,null,Y,f)}}for(var S in Y){var g=Y[S];if(f=G[S],Y.hasOwnProperty(S)&&(g!=null||f!=null))switch(S){case"type":B=g;break;case"name":U=g;break;case"checked":T=g;break;case"defaultChecked":k=g;break;case"value":W=g;break;case"defaultValue":z=g;break;case"children":case"dangerouslySetInnerHTML":if(g!=null)throw Error(Z+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:g!==f&&_1($,Z,S,g,Y,f)}}Z=G.type==="checkbox"||G.type==="radio"?G.checked!=null:G.value!=null,Y=Y.type==="checkbox"||Y.type==="radio"?Y.checked!=null:Y.value!=null,Z||!Y||GR||(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"),GR=!0),!Z||Y||JR||(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"),JR=!0),fX($,W,z,L,T,k,B,U);return;case"select":g=W=z=S=null;for(B in G)if(L=G[B],G.hasOwnProperty(B)&&L!=null)switch(B){case"value":break;case"multiple":g=L;default:Y.hasOwnProperty(B)||_1($,Z,B,null,Y,L)}for(U in Y)if(B=Y[U],L=G[U],Y.hasOwnProperty(U)&&(B!=null||L!=null))switch(U){case"value":S=B;break;case"defaultValue":z=B;break;case"multiple":W=B;default:B!==L&&_1($,Z,U,B,Y,L)}Y=z,Z=W,G=g,S!=null?U7($,!!Z,S,!1):!!G!==!!Z&&(Y!=null?U7($,!!Z,Y,!0):U7($,!!Z,Z?[]:"",!1));return;case"textarea":g=S=null;for(z in G)if(U=G[z],G.hasOwnProperty(z)&&U!=null&&!Y.hasOwnProperty(z))switch(z){case"value":break;case"children":break;default:_1($,Z,z,null,Y,U)}for(W in Y)if(U=Y[W],B=G[W],Y.hasOwnProperty(W)&&(U!=null||B!=null))switch(W){case"value":S=U;break;case"defaultValue":g=U;break;case"children":break;case"dangerouslySetInnerHTML":if(U!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:U!==B&&_1($,Z,W,U,Y,B)}ZB($,S,g);return;case"option":for(var $0 in G)if(S=G[$0],G.hasOwnProperty($0)&&S!=null&&!Y.hasOwnProperty($0))switch($0){case"selected":$.selected=!1;break;default:_1($,Z,$0,null,Y,S)}for(L in Y)if(S=Y[L],g=G[L],Y.hasOwnProperty(L)&&S!==g&&(S!=null||g!=null))switch(L){case"selected":$.selected=S&&typeof S!=="function"&&typeof S!=="symbol";break;default:_1($,Z,L,S,Y,g)}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 G0 in G)S=G[G0],G.hasOwnProperty(G0)&&S!=null&&!Y.hasOwnProperty(G0)&&_1($,Z,G0,null,Y,S);for(T in Y)if(S=Y[T],g=G[T],Y.hasOwnProperty(T)&&S!==g&&(S!=null||g!=null))switch(T){case"children":case"dangerouslySetInnerHTML":if(S!=null)throw Error(Z+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:_1($,Z,T,S,Y,g)}return;default:if(u$(Z)){for(var O1 in G)S=G[O1],G.hasOwnProperty(O1)&&S!==void 0&&!Y.hasOwnProperty(O1)&&TY($,Z,O1,void 0,Y,S);for(k in Y)S=Y[k],g=G[k],!Y.hasOwnProperty(k)||S===g||S===void 0&&g===void 0||TY($,Z,k,S,Y,g);return}}for(var e0 in G)S=G[e0],G.hasOwnProperty(e0)&&S!=null&&!Y.hasOwnProperty(e0)&&_1($,Z,e0,null,Y,S);for(f in Y)S=Y[f],g=G[f],!Y.hasOwnProperty(f)||S===g||S==null&&g==null||_1($,Z,f,S,Y,g)}function YM($){switch($){case"class":return"className";case"for":return"htmlFor";default:return $}}function CY($){var Z={};$=$.style;for(var G=0;G<$.length;G++){var Y=$[G];Z[Y]=$.getPropertyValue(Y)}return Z}function NM($,Z,G){if(Z!=null&&typeof Z!=="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 Y,U=Y="",B;for(B in Z)if(Z.hasOwnProperty(B)){var W=Z[B];W!=null&&typeof W!=="boolean"&&W!==""&&(B.indexOf("--")===0?(b$(W,B),Y+=U+B+":"+(""+W).trim()):typeof W!=="number"||W===0||zW.has(B)?(b$(W,B),Y+=U+B.replace(FW,"-$1").toLowerCase().replace(MW,"-ms-")+":"+(""+W).trim()):Y+=U+B.replace(FW,"-$1").toLowerCase().replace(MW,"-ms-")+":"+W+"px",U=";")}Y=Y||null,Z=$.getAttribute("style"),Z!==Y&&(Y=t8(Y),t8(Z)!==Y&&(G.style=CY($)))}}function b6($,Z,G,Y,U,B){if(U.delete(G),$=$.getAttribute(G),$===null)switch(typeof Y){case"undefined":case"function":case"symbol":case"boolean":return}else if(Y!=null)switch(typeof Y){case"function":case"symbol":case"boolean":break;default:if(w1(Y,Z),$===""+Y)return}H5(Z,$,Y,B)}function UM($,Z,G,Y,U,B){if(U.delete(G),$=$.getAttribute(G),$===null){switch(typeof Y){case"function":case"symbol":return}if(!Y)return}else switch(typeof Y){case"function":case"symbol":break;default:if(Y)return}H5(Z,$,Y,B)}function IY($,Z,G,Y,U,B){if(U.delete(G),$=$.getAttribute(G),$===null)switch(typeof Y){case"undefined":case"function":case"symbol":return}else if(Y!=null)switch(typeof Y){case"function":case"symbol":break;default:if(w1(Y,G),$===""+Y)return}H5(Z,$,Y,B)}function KM($,Z,G,Y,U,B){if(U.delete(G),$=$.getAttribute(G),$===null)switch(typeof Y){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(Y))return}else if(Y!=null)switch(typeof Y){case"function":case"symbol":case"boolean":break;default:if(!isNaN(Y)&&(w1(Y,Z),$===""+Y))return}H5(Z,$,Y,B)}function OY($,Z,G,Y,U,B){if(U.delete(G),$=$.getAttribute(G),$===null)switch(typeof Y){case"undefined":case"function":case"symbol":case"boolean":return}else if(Y!=null)switch(typeof Y){case"function":case"symbol":case"boolean":break;default:if(w1(Y,Z),G=x$(""+Y),$===G)return}H5(Z,$,Y,B)}function BM($,Z,G,Y){for(var U={},B=new Set,W=$.attributes,z=0;z<W.length;z++)switch(W[z].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:B.add(W[z].name)}if(u$(Z)){for(var L in G)if(G.hasOwnProperty(L)){var T=G[L];if(T!=null){if(M9.hasOwnProperty(L))typeof T!=="function"&&j4(L,T);else if(G.suppressHydrationWarning!==!0)switch(L){case"children":typeof T!=="string"&&typeof T!=="number"||H5("children",$.textContent,T,U);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":W=$.innerHTML,T=T?T.__html:void 0,T!=null&&(T=XM($,T),H5(L,W,T,U));continue;case"style":B.delete(L),NM($,T,U);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":B.delete(L.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",L);continue;case"className":B.delete("class"),W=rK($,"class",T),H5("className",W,T,U);continue;default:Y.context===P8&&Z!=="svg"&&Z!=="math"?B.delete(L.toLowerCase()):B.delete(L),W=rK($,L,T),H5(L,W,T,U)}}}}else for(T in G)if(G.hasOwnProperty(T)&&(L=G[T],L!=null)){if(M9.hasOwnProperty(T))typeof L!=="function"&&j4(T,L);else if(G.suppressHydrationWarning!==!0)switch(T){case"children":typeof L!=="string"&&typeof L!=="number"||H5("children",$.textContent,L,U);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":W=$.innerHTML,L=L?L.__html:void 0,L!=null&&(L=XM($,L),W!==L&&(U[T]={__html:W}));continue;case"className":b6($,T,"class",L,B,U);continue;case"tabIndex":b6($,T,"tabindex",L,B,U);continue;case"style":B.delete(T),NM($,L,U);continue;case"multiple":B.delete(T),H5(T,$.multiple,L,U);continue;case"muted":B.delete(T),H5(T,$.muted,L,U);continue;case"autoFocus":B.delete("autofocus"),H5(T,$.autofocus,L,U);continue;case"data":if(Z!=="object"){B.delete(T),W=$.getAttribute("data"),H5(T,W,L,U);continue}case"src":case"href":if(!(L!==""||Z==="a"&&T==="href"||Z==="object"&&T==="data")){T==="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.',T,T):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.',T,T);continue}OY($,T,T,L,B,U);continue;case"action":case"formAction":if(W=$.getAttribute(T),typeof L==="function"){B.delete(T.toLowerCase()),T==="formAction"?(B.delete("name"),B.delete("formenctype"),B.delete("formmethod"),B.delete("formtarget")):(B.delete("enctype"),B.delete("method"),B.delete("target"));continue}else if(W===OO){B.delete(T.toLowerCase()),H5(T,"function",L,U);continue}OY($,T,T.toLowerCase(),L,B,U);continue;case"xlinkHref":OY($,T,"xlink:href",L,B,U);continue;case"contentEditable":IY($,T,"contenteditable",L,B,U);continue;case"spellCheck":IY($,T,"spellcheck",L,B,U);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":IY($,T,T,L,B,U);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":UM($,T,T.toLowerCase(),L,B,U);continue;case"capture":case"download":$:{z=$;var k=W=T,f=U;if(B.delete(k),z=z.getAttribute(k),z===null)switch(typeof L){case"undefined":case"function":case"symbol":break $;default:if(L===!1)break $}else if(L!=null)switch(typeof L){case"function":case"symbol":break;case"boolean":if(L===!0&&z==="")break $;break;default:if(w1(L,W),z===""+L)break $}H5(W,z,L,f)}continue;case"cols":case"rows":case"size":case"span":$:{if(z=$,k=W=T,f=U,B.delete(k),z=z.getAttribute(k),z===null)switch(typeof L){case"undefined":case"function":case"symbol":case"boolean":break $;default:if(isNaN(L)||1>L)break $}else if(L!=null)switch(typeof L){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(L)||1>L)&&(w1(L,W),z===""+L))break $}H5(W,z,L,f)}continue;case"rowSpan":KM($,T,"rowspan",L,B,U);continue;case"start":KM($,T,T,L,B,U);continue;case"xHeight":b6($,T,"x-height",L,B,U);continue;case"xlinkActuate":b6($,T,"xlink:actuate",L,B,U);continue;case"xlinkArcrole":b6($,T,"xlink:arcrole",L,B,U);continue;case"xlinkRole":b6($,T,"xlink:role",L,B,U);continue;case"xlinkShow":b6($,T,"xlink:show",L,B,U);continue;case"xlinkTitle":b6($,T,"xlink:title",L,B,U);continue;case"xlinkType":b6($,T,"xlink:type",L,B,U);continue;case"xmlBase":b6($,T,"xml:base",L,B,U);continue;case"xmlLang":b6($,T,"xml:lang",L,B,U);continue;case"xmlSpace":b6($,T,"xml:space",L,B,U);continue;case"inert":L!==""||z3[T]||(z3[T]=!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.",T)),UM($,T,T,L,B,U);continue;default:if(!(2<T.length)||T[0]!=="o"&&T[0]!=="O"||T[1]!=="n"&&T[1]!=="N"){z=HB(T),W=!1,Y.context===P8&&Z!=="svg"&&Z!=="math"?B.delete(z.toLowerCase()):(k=T.toLowerCase(),k=jG.hasOwnProperty(k)?jG[k]||null:null,k!==null&&k!==T&&(W=!0,B.delete(k)),B.delete(z));$:if(k=$,f=z,z=L,f$(f))if(k.hasAttribute(f))k=k.getAttribute(f),w1(z,f),z=k===""+z?z:k;else{switch(typeof z){case"function":case"symbol":break $;case"boolean":if(k=f.toLowerCase().slice(0,5),k!=="data-"&&k!=="aria-")break $}z=z===void 0?void 0:null}else z=void 0;W||H5(T,z,L,U)}}}return 0<B.size&&G.suppressHydrationWarning!==!0&&BC($,B,U),Object.keys(U).length===0?null:U}function FC($,Z){switch($.length){case 0:return"";case 1:return $[0];case 2:return $[0]+" "+Z+" "+$[1];default:return $.slice(0,-1).join(", ")+", "+Z+" "+$[$.length-1]}}function HM($){switch($){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function MC(){if(typeof performance.getEntriesByType==="function"){for(var $=0,Z=0,G=performance.getEntriesByType("resource"),Y=0;Y<G.length;Y++){var U=G[Y],B=U.transferSize,W=U.initiatorType,z=U.duration;if(B&&z&&HM(W)){W=0,z=U.responseEnd;for(Y+=1;Y<G.length;Y++){var L=G[Y],T=L.startTime;if(T>z)break;var{transferSize:k,initiatorType:f}=L;k&&HM(f)&&(L=L.responseEnd,W+=k*(L<z?1:(z-T)/(L-T)))}if(--Y,Z+=8*(B+W)/(U.duration/1000),$++,10<$)break}}if(0<$)return Z/$/1e6}return navigator.connection&&($=navigator.connection.downlink,typeof $==="number")?$:5}function HG($){return $.nodeType===9?$:$.ownerDocument}function FM($){switch($){case v7:return N$;case SG:return L3;default:return P8}}function MM($,Z){if($===P8)switch(Z){case"svg":return N$;case"math":return L3;default:return P8}return $===N$&&Z==="foreignObject"?P8:$}function VY($,Z){return $==="textarea"||$==="noscript"||typeof Z.children==="string"||typeof Z.children==="number"||typeof Z.children==="bigint"||typeof Z.dangerouslySetInnerHTML==="object"&&Z.dangerouslySetInnerHTML!==null&&Z.dangerouslySetInnerHTML.__html!=null}function WC(){var $=window.event;if($&&$.type==="popstate"){if($===NU)return!1;return NU=$,!0}return NU=null,!1}function BZ(){var $=window.event;return $&&$!==YQ?$.type:null}function HZ(){var $=window.event;return $&&$!==YQ?$.timeStamp:-1.1}function wC($){setTimeout(function(){throw $})}function RC($,Z,G){switch(Z){case"button":case"input":case"select":case"textarea":G.autoFocus&&$.focus();break;case"img":G.src?$.src=G.src:G.srcSet&&($.srcset=G.srcSet)}}function zC(){}function _C($,Z,G,Y){HC($,Z,G,Y),$[x5]=Y}function WM($){h$($,"")}function LC($,Z,G){$.nodeValue=G}function wM($){if(!$.__reactWarnedAboutChildrenConflict){var Z=$[x5]||null;if(Z!==null){var G=D0($);G!==null&&(typeof Z.children==="string"||typeof Z.children==="number"?($.__reactWarnedAboutChildrenConflict=!0,X0(G,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.')})):Z.dangerouslySetInnerHTML!=null&&($.__reactWarnedAboutChildrenConflict=!0,X0(G,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 e8($){return $==="head"}function PC($,Z){$.removeChild(Z)}function TC($,Z){($.nodeType===9?$.body:$.nodeName==="HTML"?$.ownerDocument.body:$).removeChild(Z)}function RM($,Z){var G=Z,Y=0;do{var U=G.nextSibling;if($.removeChild(G),U&&U.nodeType===8)if(G=U.data,G===qQ||G===_3){if(Y===0){$.removeChild(U),V7(Z);return}Y--}else if(G===XQ||G===C2||G===b9||G===Y$||G===v9)Y++;else if(G===AO)FZ($.ownerDocument.documentElement);else if(G===SO){G=$.ownerDocument.head,FZ(G);for(var B=G.firstChild;B;){var{nextSibling:W,nodeName:z}=B;B[LZ]||z==="SCRIPT"||z==="STYLE"||z==="LINK"&&B.rel.toLowerCase()==="stylesheet"||G.removeChild(B),B=W}}else G===EO&&FZ($.ownerDocument.body);G=U}while(G);V7(Z)}function zM($,Z){var G=$;$=0;do{var Y=G.nextSibling;if(G.nodeType===1?Z?(G._stashedDisplay=G.style.display,G.style.display="none"):(G.style.display=G._stashedDisplay||"",G.getAttribute("style")===""&&G.removeAttribute("style")):G.nodeType===3&&(Z?(G._stashedText=G.nodeValue,G.nodeValue=""):G.nodeValue=G._stashedText||""),Y&&Y.nodeType===8)if(G=Y.data,G===qQ)if($===0)break;else $--;else G!==XQ&&G!==C2&&G!==b9&&G!==Y$||$++;G=Y}while(G)}function CC($){zM($,!0)}function IC($){$=$.style,typeof $.setProperty==="function"?$.setProperty("display","none","important"):$.display="none"}function OC($){$.nodeValue=""}function VC($){zM($,!1)}function AC($,Z){Z=Z[jO],Z=Z!==void 0&&Z!==null&&Z.hasOwnProperty("display")?Z.display:null,$.style.display=Z==null||typeof Z==="boolean"?"":(""+Z).trim()}function EC($,Z){$.nodeValue=Z}function AY($){var Z=$.firstChild;Z&&Z.nodeType===10&&(Z=Z.nextSibling);for(;Z;){var G=Z;switch(Z=Z.nextSibling,G.nodeName){case"HTML":case"HEAD":case"BODY":AY(G),Z0(G);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(G.rel.toLowerCase()==="stylesheet")continue}$.removeChild(G)}}function SC($,Z,G,Y){for(;$.nodeType===1;){var U=G;if($.nodeName.toLowerCase()!==Z.toLowerCase()){if(!Y&&($.nodeName!=="INPUT"||$.type!=="hidden"))break}else if(!Y)if(Z==="input"&&$.type==="hidden"){w1(U.name,"name");var B=U.name==null?null:""+U.name;if(U.type==="hidden"&&$.getAttribute("name")===B)return $}else return $;else if(!$[LZ])switch(Z){case"meta":if(!$.hasAttribute("itemprop"))break;return $;case"link":if(B=$.getAttribute("rel"),B==="stylesheet"&&$.hasAttribute("data-precedence"))break;else if(B!==U.rel||$.getAttribute("href")!==(U.href==null||U.href===""?null:U.href)||$.getAttribute("crossorigin")!==(U.crossOrigin==null?null:U.crossOrigin)||$.getAttribute("title")!==(U.title==null?null:U.title))break;return $;case"style":if($.hasAttribute("data-precedence"))break;return $;case"script":if(B=$.getAttribute("src"),(B!==(U.src==null?null:U.src)||$.getAttribute("type")!==(U.type==null?null:U.type)||$.getAttribute("crossorigin")!==(U.crossOrigin==null?null:U.crossOrigin))&&B&&$.hasAttribute("async")&&!$.hasAttribute("itemprop"))break;return $;default:return $}if($=L6($.nextSibling),$===null)break}return null}function jC($,Z,G){if(Z==="")return null;for(;$.nodeType!==3;){if(($.nodeType!==1||$.nodeName!=="INPUT"||$.type!=="hidden")&&!G)return null;if($=L6($.nextSibling),$===null)return null}return $}function _M($,Z){for(;$.nodeType!==8;){if(($.nodeType!==1||$.nodeName!=="INPUT"||$.type!=="hidden")&&!Z)return null;if($=L6($.nextSibling),$===null)return null}return $}function EY($){return $.data===C2||$.data===b9}function SY($){return $.data===Y$||$.data===C2&&$.ownerDocument.readyState!==NR}function DC($,Z){var G=$.ownerDocument;if($.data===b9)$._reactRetry=Z;else if($.data!==C2||G.readyState!==NR)Z();else{var Y=function(){Z(),G.removeEventListener("DOMContentLoaded",Y)};G.addEventListener("DOMContentLoaded",Y),$._reactRetry=Y}}function L6($){for(;$!=null;$=$.nextSibling){var Z=$.nodeType;if(Z===1||Z===3)break;if(Z===8){if(Z=$.data,Z===XQ||Z===Y$||Z===C2||Z===b9||Z===v9||Z===XU||Z===YR)break;if(Z===qQ||Z===_3)return null}}return $}function LM($){if($.nodeType===1){for(var Z=$.nodeName.toLowerCase(),G={},Y=$.attributes,U=0;U<Y.length;U++){var B=Y[U];G[YM(B.name)]=B.name.toLowerCase()==="style"?CY($):B.value}return{type:Z,props:G}}return $.nodeType===8?$.data===v9?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:$.nodeValue}function PM($,Z,G){return G===null||G[VO]!==!0?($.nodeValue===Z?$=null:(Z=t8(Z),$=t8($.nodeValue)===Z?null:$.nodeValue),$):null}function jY($){$=$.nextSibling;for(var Z=0;$;){if($.nodeType===8){var G=$.data;if(G===qQ||G===_3){if(Z===0)return L6($.nextSibling);Z--}else G!==XQ&&G!==Y$&&G!==C2&&G!==b9&&G!==v9||Z++}$=$.nextSibling}return null}function TM($){$=$.previousSibling;for(var Z=0;$;){if($.nodeType===8){var G=$.data;if(G===XQ||G===Y$||G===C2||G===b9||G===v9){if(Z===0)return $;Z--}else G!==qQ&&G!==_3||Z++}$=$.previousSibling}return null}function vC($){V7($)}function bC($){V7($)}function kC($){V7($)}function CM($,Z,G,Y,U){switch(U&&mX($,Y.ancestorInfo),Z=HG(G),$){case"html":if($=Z.documentElement,!$)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 $;case"head":if($=Z.head,!$)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 $;case"body":if($=Z.body,!$)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 $;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function fC($,Z,G,Y){if(!G[J2]&&D0(G)){var U=G.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.",U,U,U)}switch($){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(U=G.attributes;U.length;)G.removeAttributeNode(U[0]);L5(G,$,Z),G[P5]=Y,G[x5]=Z}function FZ($){for(var Z=$.attributes;Z.length;)$.removeAttributeNode(Z[0]);Z0($)}function FG($){return typeof $.getRootNode==="function"?$.getRootNode():$.nodeType===9?$:$.ownerDocument}function IM($,Z,G){var Y=U$;if(Y&&typeof Z==="string"&&Z){var U=v6(Z);U='link[rel="'+$+'"][href="'+U+'"]',typeof G==="string"&&(U+='[crossorigin="'+G+'"]'),MR.has(U)||(MR.add(U),$={rel:$,crossOrigin:G,href:Z},Y.querySelector(U)===null&&(Z=Y.createElement("link"),L5(Z,"link",$),_0(Z),Y.head.appendChild(Z)))}}function OM($,Z,G,Y){var U=(U=Z2.current)?FG(U):null;if(!U)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch($){case"meta":case"title":return null;case"style":return typeof G.precedence==="string"&&typeof G.href==="string"?(G=I7(G.href),Z=Q1(U).hoistableStyles,Y=Z.get(G),Y||(Y={type:"style",instance:null,count:0,state:null},Z.set(G,Y)),Y):{type:"void",instance:null,count:0,state:null};case"link":if(G.rel==="stylesheet"&&typeof G.href==="string"&&typeof G.precedence==="string"){$=I7(G.href);var B=Q1(U).hoistableStyles,W=B.get($);if(!W&&(U=U.ownerDocument||U,W={type:"stylesheet",instance:null,count:0,state:{loading:f9,preload:null}},B.set($,W),(B=U.querySelector(MZ($)))&&!B._p&&(W.instance=B,W.state.loading=NQ|c6),!l6.has($))){var z={rel:"preload",as:"style",href:G.href,crossOrigin:G.crossOrigin,integrity:G.integrity,media:G.media,hrefLang:G.hrefLang,referrerPolicy:G.referrerPolicy};l6.set($,z),B||yC(U,$,z,W.state)}if(Z&&Y===null)throw G=`
|
|
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`,d($))})}function V4($){$!==e9&&$.next===null&&(e9===null?tG=e9=$:e9=e9.next=$),eG=!0,x.actQueue!==null?yN||(yN=!0,jF()):fN||(fN=!0,jF())}function i$($,Z){if(!gN&&eG){gN=!0;do{var Q=!1;for(var Y=tG;Y!==null;){if(!Z)if($!==0){var U=Y.pendingLanes;if(U===0)var B=0;else{var{suspendedLanes:z,pingedLanes:w}=Y;B=(1<<31-y5(42|$)+1)-1,B&=U&~(z&~w),B=B&201326741?B&201326741|1:B?B|2:0}B!==0&&(Q=!0,DF(Y,B))}else B=u0,B=d2(Y,Y===_1?B:0,Y.cancelPendingCommit!==null||Y.timeoutHandle!==S7),(B&3)===0||p2(Y,B)||(Q=!0,DF(Y,B));Y=Y.next}}while(Q);gN=!1}}function KT(){oZ=window.event,iY()}function iY(){eG=yN=fN=!1;var $=0;M2!==0&&wT()&&($=M2);for(var Z=B5(),Q=null,Y=tG;Y!==null;){var U=Y.next,B=EF(Y,Z);if(B===0)Y.next=null,Q===null?tG=U:Q.next=U,U===null&&(e9=Q);else if(Q=Y,$!==0||(B&3)!==0)eG=!0;Y=U}J5!==W2&&J5!==oG||i$($,!1),M2!==0&&(M2=0)}function EF($,Z){for(var{suspendedLanes:Q,pingedLanes:Y,expirationTimes:U}=$,B=$.pendingLanes&-62914561;0<B;){var z=31-y5(B),w=1<<z,L=U[z];if(L===-1){if((w&Q)===0||(w&Y)!==0)U[z]=zq(w,Z)}else L<=Z&&($.expiredLanes|=w);B&=~w}if(Z=_1,Q=u0,Q=d2($,$===Z?Q:0,$.cancelPendingCommit!==null||$.timeoutHandle!==S7),Y=$.callbackNode,Q===0||$===Z&&(H1===T7||H1===C7)||$.cancelPendingCommit!==null)return Y!==null&&tY(Y),$.callbackNode=null,$.callbackPriority=0;if((Q&3)===0||p2($,Q)){if(Z=Q&-Q,Z!==$.callbackPriority||x.actQueue!==null&&Y!==hN)tY(Y);else return Z;switch(C(Q)){case L6:case J4:Q=vX;break;case v4:Q=T9;break;case FG:Q=bX;break;default:Q=T9}return Y=SF.bind(null,$),x.actQueue!==null?(x.actQueue.push(Y),Q=hN):Q=jX(Q,Y),$.callbackPriority=Z,$.callbackNode=Q,Z}return Y!==null&&tY(Y),$.callbackPriority=2,$.callbackNode=null,2}function SF($,Z){if(jG=DG=!1,oZ=window.event,J5!==W2&&J5!==oG)return $.callbackNode=null,$.callbackPriority=0,null;var Q=$.callbackNode;if(N4===nG&&(N4=SN),o$()&&$.callbackNode!==Q)return null;var Y=u0;if(Y=d2($,$===_1?Y:0,$.cancelPendingCommit!==null||$.timeoutHandle!==S7),Y===0)return null;return NF($,Y,Z),EF($,B5()),$.callbackNode!=null&&$.callbackNode===Q?SF.bind(null,$):null}function DF($,Z){if(o$())return null;DG=jG,jG=!1,NF($,Z,!0)}function tY($){$!==hN&&$!==null&&eT($)}function jF(){x.actQueue!==null&&x.actQueue.push(function(){return iY(),null}),bO(function(){(Z1&(Y5|O6))!==W5?jX(kX,KT):iY()})}function eY(){if(M2===0){var $=z7;$===0&&($=KG,KG<<=1,(KG&261888)===0&&(KG=256)),M2=$}return M2}function kF($){if($==null||typeof $==="symbol"||typeof $==="boolean")return null;if(typeof $==="function")return $;return W1($,"action"),E$(""+$)}function vF($,Z){var Q=Z.ownerDocument.createElement("input");return Q.name=Z.name,Q.value=Z.value,$.id&&Q.setAttribute("form",$.id),Z.parentNode.insertBefore(Q,Z),$=new FormData($),Q.parentNode.removeChild(Q),$}function BT($,Z,Q,Y,U){if(Z==="submit"&&Q&&Q.stateNode===U){var B=kF((U[g5]||null).action),z=Y.submitter;z&&(Z=(Z=z[g5]||null)?kF(Z.formAction):z.getAttribute("formAction"),Z!==null&&(B=Z,z=null));var w=new RG("action","action",null,Y,U);$.push({event:w,listeners:[{instance:null,listener:function(){if(Y.defaultPrevented){if(M2!==0){var L=z?vF(U,z):new FormData(U),T={pending:!0,data:L,method:U.method,action:B};Object.freeze(T),_Y(Q,T,null,L)}}else typeof B==="function"&&(w.preventDefault(),L=z?vF(U,z):new FormData(U),T={pending:!0,data:L,method:U.method,action:B},Object.freeze(T),_Y(Q,T,B,L))},currentTarget:U}]})}}function aQ($,Z,Q){$.currentTarget=Q;try{Z($)}catch(Y){aX(Y)}$.currentTarget=null}function bF($,Z){Z=(Z&4)!==0;for(var Q=0;Q<$.length;Q++){var Y=$[Q];$:{var U=void 0,B=Y.event;if(Y=Y.listeners,Z)for(var z=Y.length-1;0<=z;z--){var w=Y[z],L=w.instance,T=w.currentTarget;if(w=w.listener,L!==U&&B.isPropagationStopped())break $;L!==null?q0(L,aQ,B,w,T):aQ(B,w,T),U=L}else for(z=0;z<Y.length;z++){if(w=Y[z],L=w.instance,T=w.currentTarget,w=w.listener,L!==U&&B.isPropagationStopped())break $;L!==null?q0(L,aQ,B,w,T):aQ(B,w,T),U=L}}}}function t0($,Z){uN.has($)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',$);var Q=Z[fX];Q===void 0&&(Q=Z[fX]=new Set);var Y=$+"__bubble";Q.has(Y)||(fF(Z,$,2,!1),Q.add(Y))}function $X($,Z,Q){uN.has($)&&!Z&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',$);var Y=0;Z&&(Y|=4),fF(Q,$,Y,Z)}function ZX($){if(!$[$3]){$[$3]=!0,jW.forEach(function(Q){Q!=="selectionchange"&&(uN.has(Q)||$X(Q,!1,$),$X(Q,!0,$))});var Z=$.nodeType===9?$:$.ownerDocument;Z===null||Z[$3]||(Z[$3]=!0,$X("selectionchange",!1,Z))}}function fF($,Z,Q,Y){switch(WW(Z)){case L6:var U=lT;break;case J4:U=rT;break;default:U=wX}Q=U.bind(null,Z,Q,$),U=void 0,!xX||Z!=="touchstart"&&Z!=="touchmove"&&Z!=="wheel"||(U=!0),Y?U!==void 0?$.addEventListener(Z,Q,{capture:!0,passive:U}):$.addEventListener(Z,Q,!0):U!==void 0?$.addEventListener(Z,Q,{passive:U}):$.addEventListener(Z,Q,!1)}function JX($,Z,Q,Y,U){var B=Y;if((Z&1)===0&&(Z&2)===0&&Y!==null)$:for(;;){if(Y===null)return;var z=Y.tag;if(z===3||z===4){var w=Y.stateNode.containerInfo;if(w===U)break;if(z===4)for(z=Y.return;z!==null;){var L=z.tag;if((L===3||L===4)&&z.stateNode.containerInfo===U)return;z=z.return}for(;w!==null;){if(z=N0(w),z===null)return;if(L=z.tag,L===5||L===6||L===26||L===27){Y=B=z;continue $}w=w.parentNode}}Y=Y.return}rK(function(){var T=B,b=Oq(Q),f=[];$:{var S=Wz.get($);if(S!==void 0){var g=RG,$0=$;switch($){case"keypress":if(GQ(Q)===0)break $;case"keydown":case"keyup":g=xC;break;case"focusin":$0="focus",g=cX;break;case"focusout":$0="blur",g=cX;break;case"beforeblur":case"afterblur":g=cX;break;case"click":if(Q.button===2)break $;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":g=$z;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=EC;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=pC;break;case Kz:case Bz:case Hz:g=jC;break;case Fz:g=lC;break;case"scroll":case"scrollend":g=VC;break;case"wheel":g=sC;break;case"copy":case"cut":case"paste":g=vC;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=Jz;break;case"toggle":case"beforetoggle":g=oC}var G0=(Z&4)!==0,C1=!G0&&($==="scroll"||$==="scrollend"),e0=G0?S!==null?S+"Capture":null:S;G0=[];for(var A=T,D;A!==null;){var v=A;if(D=v.stateNode,v=v.tag,v!==5&&v!==26&&v!==27||D===null||e0===null||(v=S$(A,e0),v!=null&&G0.push(t$(A,v,D))),C1)break;A=A.return}0<G0.length&&(S=new g(S,$0,null,Q,b),f.push({event:S,listeners:G0}))}}if((Z&7)===0){$:{if(S=$==="mouseover"||$==="pointerover",g=$==="mouseout"||$==="pointerout",S&&Q!==UZ&&($0=Q.relatedTarget||Q.fromElement)&&(N0($0)||$0[i8]))break $;if(g||S){if(S=b.window===b?b:(S=b.ownerDocument)?S.defaultView||S.parentWindow:window,g){if($0=Q.relatedTarget||Q.toElement,g=T,$0=$0?N0($0):null,$0!==null&&(C1=j($0),G0=$0.tag,$0!==C1||G0!==5&&G0!==27&&G0!==6))$0=null}else g=null,$0=T;if(g!==$0){if(G0=$z,v="onMouseLeave",e0="onMouseEnter",A="mouse",$==="pointerout"||$==="pointerover")G0=Jz,v="onPointerLeave",e0="onPointerEnter",A="pointer";if(C1=g==null?S:k0(g),D=$0==null?S:k0($0),S=new G0(v,A+"leave",g,Q,b),S.target=C1,S.relatedTarget=D,v=null,N0(b)===T&&(G0=new G0(e0,A+"enter",$0,Q,b),G0.target=D,G0.relatedTarget=C1,v=G0),C1=v,g&&$0)Z:{G0=HT,e0=g,A=$0,D=0;for(v=e0;v;v=G0(v))D++;v=0;for(var m=A;m;m=G0(m))v++;for(;0<D-v;)e0=G0(e0),D--;for(;0<v-D;)A=G0(A),v--;for(;D--;){if(e0===A||A!==null&&e0===A.alternate){G0=e0;break Z}e0=G0(e0),A=G0(A)}G0=null}else G0=null;g!==null&&yF(f,S,g,G0,!1),$0!==null&&C1!==null&&yF(f,C1,$0,G0,!0)}}}$:{if(S=T?k0(T):window,g=S.nodeName&&S.nodeName.toLowerCase(),g==="select"||g==="input"&&S.type==="file")var J0=eK;else if(iK(S))if(Nz)J0=OP;else{J0=TP;var E0=PP}else g=S.nodeName,!g||g.toLowerCase()!=="input"||S.type!=="checkbox"&&S.type!=="radio"?T&&A$(T.elementType)&&(J0=eK):J0=CP;if(J0&&(J0=J0($,T))){tK(f,J0,Q,b);break $}E0&&E0($,S,T),$==="focusout"&&T&&S.type==="number"&&T.memoizedProps.value!=null&&Rq(S,"number",S.value)}switch(E0=T?k0(T):window,$){case"focusin":if(iK(E0)||E0.contentEditable==="true")D9=E0,rX=T,MZ=null;break;case"focusout":MZ=rX=D9=null;break;case"mousedown":sX=!0;break;case"contextmenu":case"mouseup":case"dragend":sX=!1,YB(f,Q,b);break;case"selectionchange":if(eC)break;case"keydown":case"keyup":YB(f,Q,b)}var R0;if(lX)$:{switch($){case"compositionstart":var B0="onCompositionStart";break $;case"compositionend":B0="onCompositionEnd";break $;case"compositionupdate":B0="onCompositionUpdate";break $}B0=void 0}else S9?oK($,Q)&&(B0="onCompositionEnd"):$==="keydown"&&Q.keyCode===Qz&&(B0="onCompositionStart");if(B0&&(Gz&&Q.locale!=="ko"&&(S9||B0!=="onCompositionStart"?B0==="onCompositionEnd"&&S9&&(R0=sK()):(t8=b,mX=("value"in t8)?t8.value:t8.textContent,S9=!0)),E0=iQ(T,B0),0<E0.length&&(B0=new Zz(B0,$,null,Q,b),f.push({event:B0,listeners:E0}),R0?B0.data=R0:(R0=aK(Q),R0!==null&&(B0.data=R0)))),R0=iC?wP($,Q):RP($,Q))B0=iQ(T,"onBeforeInput"),0<B0.length&&(E0=new fC("onBeforeInput","beforeinput",null,Q,b),f.push({event:E0,listeners:B0}),E0.data=R0);BT(f,$,T,Q,b)}bF(f,Z)})}function t$($,Z,Q){return{instance:$,listener:Z,currentTarget:Q}}function iQ($,Z){for(var Q=Z+"Capture",Y=[];$!==null;){var U=$,B=U.stateNode;if(U=U.tag,U!==5&&U!==26&&U!==27||B===null||(U=S$($,Q),U!=null&&Y.unshift(t$($,U,B)),U=S$($,Z),U!=null&&Y.push(t$($,U,B))),$.tag===3)return Y;$=$.return}return[]}function HT($){if($===null)return null;do $=$.return;while($&&$.tag!==5&&$.tag!==27);return $?$:null}function yF($,Z,Q,Y,U){for(var B=Z._reactName,z=[];Q!==null&&Q!==Y;){var w=Q,L=w.alternate,T=w.stateNode;if(w=w.tag,L!==null&&L===Y)break;w!==5&&w!==26&&w!==27||T===null||(L=T,U?(T=S$(Q,B),T!=null&&z.unshift(t$(Q,T,L))):U||(T=S$(Q,B),T!=null&&z.push(t$(Q,T,L)))),Q=Q.return}z.length!==0&&$.push({event:Z,listeners:z})}function QX($,Z){FP($,Z),$!=="input"&&$!=="textarea"&&$!=="select"||Z==null||Z.value!==null||tW||(tW=!0,$==="select"&&Z.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.",$):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",$));var Q={registrationNameDependencies:U7,possibleRegistrationNames:yX};A$($)||typeof Z.is==="string"||zP($,Z,Q),Z.contentEditable&&!Z.suppressContentEditableWarning&&Z.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 K5($,Z,Q,Y){Z!==Q&&(Q=r8(Q),r8(Z)!==Q&&(Y[$]=Z))}function FT($,Z,Q){Z.forEach(function(Y){Q[uF(Y)]=Y==="style"?qX($):$.getAttribute(Y)})}function A4($,Z){Z===!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.",$,$,$):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",$,typeof Z)}function gF($,Z){return $=$.namespaceURI===zG||$.namespaceURI===I9?$.ownerDocument.createElementNS($.namespaceURI,$.tagName):$.ownerDocument.createElement($.tagName),$.innerHTML=Z,$.innerHTML}function r8($){return k8($)&&(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.",m2($)),U5($)),(typeof $==="string"?$:""+$).replace(IO,`
|
|
176
|
+
`).replace(VO,"")}function hF($,Z){return Z=r8(Z),r8($)===Z?!0:!1}function w1($,Z,Q,Y,U,B){switch(Q){case"children":if(typeof Y==="string")QQ(Y,Z,!1),Z==="body"||Z==="textarea"&&Y===""||V$($,Y);else if(typeof Y==="number"||typeof Y==="bigint")QQ(""+Y,Z,!1),Z!=="body"&&V$($,""+Y);break;case"className":$Q($,"class",Y);break;case"tabIndex":$Q($,"tabindex",Y);break;case"dir":case"role":case"viewBox":case"width":case"height":$Q($,Q,Y);break;case"style":pK($,Y,B);break;case"data":if(Z!=="object"){$Q($,"data",Y);break}case"src":case"href":if(Y===""&&(Z!=="a"||Q!=="href")){Q==="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.',Q,Q):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.',Q,Q),$.removeAttribute(Q);break}if(Y==null||typeof Y==="function"||typeof Y==="symbol"||typeof Y==="boolean"){$.removeAttribute(Q);break}W1(Y,Q),Y=E$(""+Y),$.setAttribute(Q,Y);break;case"action":case"formAction":if(Y!=null&&(Z==="form"?Q==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof Y==="function"&&(U.encType==null&&U.method==null||Q3||(Q3=!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.")),U.target==null||J3||(J3=!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."))):Z==="input"||Z==="button"?Q==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):Z!=="input"||U.type==="submit"||U.type==="image"||Z3?Z!=="button"||U.type==null||U.type==="submit"||Z3?typeof Y==="function"&&(U.name==null||gM||(gM=!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.')),U.formEncType==null&&U.formMethod==null||Q3||(Q3=!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.")),U.formTarget==null||J3||(J3=!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."))):(Z3=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(Z3=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):Q==="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 Y==="function"){$.setAttribute(Q,"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 B==="function"&&(Q==="formAction"?(Z!=="input"&&w1($,Z,"name",U.name,U,null),w1($,Z,"formEncType",U.formEncType,U,null),w1($,Z,"formMethod",U.formMethod,U,null),w1($,Z,"formTarget",U.formTarget,U,null)):(w1($,Z,"encType",U.encType,U,null),w1($,Z,"method",U.method,U,null),w1($,Z,"target",U.target,U,null)));if(Y==null||typeof Y==="symbol"||typeof Y==="boolean"){$.removeAttribute(Q);break}W1(Y,Q),Y=E$(""+Y),$.setAttribute(Q,Y);break;case"onClick":Y!=null&&(typeof Y!=="function"&&A4(Q,Y),$.onclick=o4);break;case"onScroll":Y!=null&&(typeof Y!=="function"&&A4(Q,Y),t0("scroll",$));break;case"onScrollEnd":Y!=null&&(typeof Y!=="function"&&A4(Q,Y),t0("scrollend",$));break;case"dangerouslySetInnerHTML":if(Y!=null){if(typeof Y!=="object"||!("__html"in Y))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(Q=Y.__html,Q!=null){if(U.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");$.innerHTML=Q}}break;case"multiple":$.multiple=Y&&typeof Y!=="function"&&typeof Y!=="symbol";break;case"muted":$.muted=Y&&typeof Y!=="function"&&typeof Y!=="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(Y==null||typeof Y==="function"||typeof Y==="boolean"||typeof Y==="symbol"){$.removeAttribute("xlink:href");break}W1(Y,Q),Q=E$(""+Y),$.setAttributeNS(V7,"xlink:href",Q);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":Y!=null&&typeof Y!=="function"&&typeof Y!=="symbol"?(W1(Y,Q),$.setAttribute(Q,""+Y)):$.removeAttribute(Q);break;case"inert":Y!==""||G3[Q]||(G3[Q]=!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.",Q));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":Y&&typeof Y!=="function"&&typeof Y!=="symbol"?$.setAttribute(Q,""):$.removeAttribute(Q);break;case"capture":case"download":Y===!0?$.setAttribute(Q,""):Y!==!1&&Y!=null&&typeof Y!=="function"&&typeof Y!=="symbol"?(W1(Y,Q),$.setAttribute(Q,Y)):$.removeAttribute(Q);break;case"cols":case"rows":case"size":case"span":Y!=null&&typeof Y!=="function"&&typeof Y!=="symbol"&&!isNaN(Y)&&1<=Y?(W1(Y,Q),$.setAttribute(Q,Y)):$.removeAttribute(Q);break;case"rowSpan":case"start":Y==null||typeof Y==="function"||typeof Y==="symbol"||isNaN(Y)?$.removeAttribute(Q):(W1(Y,Q),$.setAttribute(Q,Y));break;case"popover":t0("beforetoggle",$),t0("toggle",$),eJ($,"popover",Y);break;case"xlinkActuate":n4($,V7,"xlink:actuate",Y);break;case"xlinkArcrole":n4($,V7,"xlink:arcrole",Y);break;case"xlinkRole":n4($,V7,"xlink:role",Y);break;case"xlinkShow":n4($,V7,"xlink:show",Y);break;case"xlinkTitle":n4($,V7,"xlink:title",Y);break;case"xlinkType":n4($,V7,"xlink:type",Y);break;case"xmlBase":n4($,xN,"xml:base",Y);break;case"xmlLang":n4($,xN,"xml:lang",Y);break;case"xmlSpace":n4($,xN,"xml:space",Y);break;case"is":B!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),eJ($,"is",Y);break;case"innerText":case"textContent":break;case"popoverTarget":hM||Y==null||typeof Y!=="object"||(hM=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",Y));default:!(2<Q.length)||Q[0]!=="o"&&Q[0]!=="O"||Q[1]!=="n"&&Q[1]!=="N"?(Q=cK(Q),eJ($,Q,Y)):U7.hasOwnProperty(Q)&&Y!=null&&typeof Y!=="function"&&A4(Q,Y)}}function GX($,Z,Q,Y,U,B){switch(Q){case"style":pK($,Y,B);break;case"dangerouslySetInnerHTML":if(Y!=null){if(typeof Y!=="object"||!("__html"in Y))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(Q=Y.__html,Q!=null){if(U.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");$.innerHTML=Q}}break;case"children":typeof Y==="string"?V$($,Y):(typeof Y==="number"||typeof Y==="bigint")&&V$($,""+Y);break;case"onScroll":Y!=null&&(typeof Y!=="function"&&A4(Q,Y),t0("scroll",$));break;case"onScrollEnd":Y!=null&&(typeof Y!=="function"&&A4(Q,Y),t0("scrollend",$));break;case"onClick":Y!=null&&(typeof Y!=="function"&&A4(Q,Y),$.onclick=o4);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(U7.hasOwnProperty(Q))Y!=null&&typeof Y!=="function"&&A4(Q,Y);else $:{if(Q[0]==="o"&&Q[1]==="n"&&(U=Q.endsWith("Capture"),Z=Q.slice(2,U?Q.length-7:void 0),B=$[g5]||null,B=B!=null?B[Q]:null,typeof B==="function"&&$.removeEventListener(Z,B,U),typeof Y==="function")){typeof B!=="function"&&B!==null&&(Q in $?$[Q]=null:$.hasAttribute(Q)&&$.removeAttribute(Q)),$.addEventListener(Z,Y,U);break $}Q in $?$[Q]=Y:Y===!0?$.setAttribute(Q,""):eJ($,Q,Y)}}}function R5($,Z,Q){switch(QX(Z,Q),Z){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":t0("error",$),t0("load",$);var Y=!1,U=!1,B;for(B in Q)if(Q.hasOwnProperty(B)){var z=Q[B];if(z!=null)switch(B){case"src":Y=!0;break;case"srcSet":U=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(Z+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:w1($,Z,B,z,Q,null)}}U&&w1($,Z,"srcSet",Q.srcSet,Q,null),Y&&w1($,Z,"src",Q.src,Q,null);return;case"input":f8("input",Q),t0("invalid",$);var w=B=z=U=null,L=null,T=null;for(Y in Q)if(Q.hasOwnProperty(Y)){var b=Q[Y];if(b!=null)switch(Y){case"name":U=b;break;case"type":z=b;break;case"checked":L=b;break;case"defaultChecked":T=b;break;case"value":B=b;break;case"defaultValue":w=b;break;case"children":case"dangerouslySetInnerHTML":if(b!=null)throw Error(Z+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:w1($,Z,Y,b,Q,null)}}AK($,Q),EK($,B,w,L,T,z,U,!1);return;case"select":f8("select",Q),t0("invalid",$),Y=z=B=null;for(U in Q)if(Q.hasOwnProperty(U)&&(w=Q[U],w!=null))switch(U){case"value":B=w;break;case"defaultValue":z=w;break;case"multiple":Y=w;default:w1($,Z,U,w,Q,null)}jK($,Q),Z=B,Q=z,$.multiple=!!Y,Z!=null?J9($,!!Y,Z,!1):Q!=null&&J9($,!!Y,Q,!0);return;case"textarea":f8("textarea",Q),t0("invalid",$),B=U=Y=null;for(z in Q)if(Q.hasOwnProperty(z)&&(w=Q[z],w!=null))switch(z){case"value":Y=w;break;case"defaultValue":U=w;break;case"children":B=w;break;case"dangerouslySetInnerHTML":if(w!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:w1($,Z,z,w,Q,null)}kK($,Q),bK($,Y,U,B);return;case"option":SK($,Q);for(L in Q)if(Q.hasOwnProperty(L)&&(Y=Q[L],Y!=null))switch(L){case"selected":$.selected=Y&&typeof Y!=="function"&&typeof Y!=="symbol";break;default:w1($,Z,L,Y,Q,null)}return;case"dialog":t0("beforetoggle",$),t0("toggle",$),t0("cancel",$),t0("close",$);break;case"iframe":case"object":t0("load",$);break;case"video":case"audio":for(Y=0;Y<rZ.length;Y++)t0(rZ[Y],$);break;case"image":t0("error",$),t0("load",$);break;case"details":t0("toggle",$);break;case"embed":case"source":case"link":t0("error",$),t0("load",$);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(T in Q)if(Q.hasOwnProperty(T)&&(Y=Q[T],Y!=null))switch(T){case"children":case"dangerouslySetInnerHTML":throw Error(Z+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:w1($,Z,T,Y,Q,null)}return;default:if(A$(Z)){for(b in Q)Q.hasOwnProperty(b)&&(Y=Q[b],Y!==void 0&&GX($,Z,b,Y,Q,void 0));return}}for(w in Q)Q.hasOwnProperty(w)&&(Y=Q[w],Y!=null&&w1($,Z,w,Y,Q,null))}function WT($,Z,Q,Y){switch(QX(Z,Y),Z){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var U=null,B=null,z=null,w=null,L=null,T=null,b=null;for(g in Q){var f=Q[g];if(Q.hasOwnProperty(g)&&f!=null)switch(g){case"checked":break;case"value":break;case"defaultValue":L=f;default:Y.hasOwnProperty(g)||w1($,Z,g,null,Y,f)}}for(var S in Y){var g=Y[S];if(f=Q[S],Y.hasOwnProperty(S)&&(g!=null||f!=null))switch(S){case"type":B=g;break;case"name":U=g;break;case"checked":T=g;break;case"defaultChecked":b=g;break;case"value":z=g;break;case"defaultValue":w=g;break;case"children":case"dangerouslySetInnerHTML":if(g!=null)throw Error(Z+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:g!==f&&w1($,Z,S,g,Y,f)}}Z=Q.type==="checkbox"||Q.type==="radio"?Q.checked!=null:Q.value!=null,Y=Y.type==="checkbox"||Y.type==="radio"?Y.checked!=null:Y.value!=null,Z||!Y||yM||(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"),yM=!0),!Z||Y||fM||(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"),fM=!0),wq($,z,w,L,T,b,B,U);return;case"select":g=z=w=S=null;for(B in Q)if(L=Q[B],Q.hasOwnProperty(B)&&L!=null)switch(B){case"value":break;case"multiple":g=L;default:Y.hasOwnProperty(B)||w1($,Z,B,null,Y,L)}for(U in Y)if(B=Y[U],L=Q[U],Y.hasOwnProperty(U)&&(B!=null||L!=null))switch(U){case"value":S=B;break;case"defaultValue":w=B;break;case"multiple":z=B;default:B!==L&&w1($,Z,U,B,Y,L)}Y=w,Z=z,Q=g,S!=null?J9($,!!Z,S,!1):!!Q!==!!Z&&(Y!=null?J9($,!!Z,Y,!0):J9($,!!Z,Z?[]:"",!1));return;case"textarea":g=S=null;for(w in Q)if(U=Q[w],Q.hasOwnProperty(w)&&U!=null&&!Y.hasOwnProperty(w))switch(w){case"value":break;case"children":break;default:w1($,Z,w,null,Y,U)}for(z in Y)if(U=Y[z],B=Q[z],Y.hasOwnProperty(z)&&(U!=null||B!=null))switch(z){case"value":S=U;break;case"defaultValue":g=U;break;case"children":break;case"dangerouslySetInnerHTML":if(U!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:U!==B&&w1($,Z,z,U,Y,B)}vK($,S,g);return;case"option":for(var $0 in Q)if(S=Q[$0],Q.hasOwnProperty($0)&&S!=null&&!Y.hasOwnProperty($0))switch($0){case"selected":$.selected=!1;break;default:w1($,Z,$0,null,Y,S)}for(L in Y)if(S=Y[L],g=Q[L],Y.hasOwnProperty(L)&&S!==g&&(S!=null||g!=null))switch(L){case"selected":$.selected=S&&typeof S!=="function"&&typeof S!=="symbol";break;default:w1($,Z,L,S,Y,g)}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 G0 in Q)S=Q[G0],Q.hasOwnProperty(G0)&&S!=null&&!Y.hasOwnProperty(G0)&&w1($,Z,G0,null,Y,S);for(T in Y)if(S=Y[T],g=Q[T],Y.hasOwnProperty(T)&&S!==g&&(S!=null||g!=null))switch(T){case"children":case"dangerouslySetInnerHTML":if(S!=null)throw Error(Z+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:w1($,Z,T,S,Y,g)}return;default:if(A$(Z)){for(var C1 in Q)S=Q[C1],Q.hasOwnProperty(C1)&&S!==void 0&&!Y.hasOwnProperty(C1)&&GX($,Z,C1,void 0,Y,S);for(b in Y)S=Y[b],g=Q[b],!Y.hasOwnProperty(b)||S===g||S===void 0&&g===void 0||GX($,Z,b,S,Y,g);return}}for(var e0 in Q)S=Q[e0],Q.hasOwnProperty(e0)&&S!=null&&!Y.hasOwnProperty(e0)&&w1($,Z,e0,null,Y,S);for(f in Y)S=Y[f],g=Q[f],!Y.hasOwnProperty(f)||S===g||S==null&&g==null||w1($,Z,f,S,Y,g)}function uF($){switch($){case"class":return"className";case"for":return"htmlFor";default:return $}}function qX($){var Z={};$=$.style;for(var Q=0;Q<$.length;Q++){var Y=$[Q];Z[Y]=$.getPropertyValue(Y)}return Z}function xF($,Z,Q){if(Z!=null&&typeof Z!=="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 Y,U=Y="",B;for(B in Z)if(Z.hasOwnProperty(B)){var z=Z[B];z!=null&&typeof z!=="boolean"&&z!==""&&(B.indexOf("--")===0?(P$(z,B),Y+=U+B+":"+(""+z).trim()):typeof z!=="number"||z===0||aW.has(B)?(P$(z,B),Y+=U+B.replace(lW,"-$1").toLowerCase().replace(rW,"-ms-")+":"+(""+z).trim()):Y+=U+B.replace(lW,"-$1").toLowerCase().replace(rW,"-ms-")+":"+z+"px",U=";")}Y=Y||null,Z=$.getAttribute("style"),Z!==Y&&(Y=r8(Y),r8(Z)!==Y&&(Q.style=qX($)))}}function D6($,Z,Q,Y,U,B){if(U.delete(Q),$=$.getAttribute(Q),$===null)switch(typeof Y){case"undefined":case"function":case"symbol":case"boolean":return}else if(Y!=null)switch(typeof Y){case"function":case"symbol":case"boolean":break;default:if(W1(Y,Z),$===""+Y)return}K5(Z,$,Y,B)}function mF($,Z,Q,Y,U,B){if(U.delete(Q),$=$.getAttribute(Q),$===null){switch(typeof Y){case"function":case"symbol":return}if(!Y)return}else switch(typeof Y){case"function":case"symbol":break;default:if(Y)return}K5(Z,$,Y,B)}function YX($,Z,Q,Y,U,B){if(U.delete(Q),$=$.getAttribute(Q),$===null)switch(typeof Y){case"undefined":case"function":case"symbol":return}else if(Y!=null)switch(typeof Y){case"function":case"symbol":break;default:if(W1(Y,Q),$===""+Y)return}K5(Z,$,Y,B)}function dF($,Z,Q,Y,U,B){if(U.delete(Q),$=$.getAttribute(Q),$===null)switch(typeof Y){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(Y))return}else if(Y!=null)switch(typeof Y){case"function":case"symbol":case"boolean":break;default:if(!isNaN(Y)&&(W1(Y,Z),$===""+Y))return}K5(Z,$,Y,B)}function XX($,Z,Q,Y,U,B){if(U.delete(Q),$=$.getAttribute(Q),$===null)switch(typeof Y){case"undefined":case"function":case"symbol":case"boolean":return}else if(Y!=null)switch(typeof Y){case"function":case"symbol":case"boolean":break;default:if(W1(Y,Z),Q=E$(""+Y),$===Q)return}K5(Z,$,Y,B)}function pF($,Z,Q,Y){for(var U={},B=new Set,z=$.attributes,w=0;w<z.length;w++)switch(z[w].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:B.add(z[w].name)}if(A$(Z)){for(var L in Q)if(Q.hasOwnProperty(L)){var T=Q[L];if(T!=null){if(U7.hasOwnProperty(L))typeof T!=="function"&&A4(L,T);else if(Q.suppressHydrationWarning!==!0)switch(L){case"children":typeof T!=="string"&&typeof T!=="number"||K5("children",$.textContent,T,U);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":z=$.innerHTML,T=T?T.__html:void 0,T!=null&&(T=gF($,T),K5(L,z,T,U));continue;case"style":B.delete(L),xF($,T,U);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":B.delete(L.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",L);continue;case"className":B.delete("class"),z=OK($,"class",T),K5("className",z,T,U);continue;default:Y.context===w8&&Z!=="svg"&&Z!=="math"?B.delete(L.toLowerCase()):B.delete(L),z=OK($,L,T),K5(L,z,T,U)}}}}else for(T in Q)if(Q.hasOwnProperty(T)&&(L=Q[T],L!=null)){if(U7.hasOwnProperty(T))typeof L!=="function"&&A4(T,L);else if(Q.suppressHydrationWarning!==!0)switch(T){case"children":typeof L!=="string"&&typeof L!=="number"||K5("children",$.textContent,L,U);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":z=$.innerHTML,L=L?L.__html:void 0,L!=null&&(L=gF($,L),z!==L&&(U[T]={__html:z}));continue;case"className":D6($,T,"class",L,B,U);continue;case"tabIndex":D6($,T,"tabindex",L,B,U);continue;case"style":B.delete(T),xF($,L,U);continue;case"multiple":B.delete(T),K5(T,$.multiple,L,U);continue;case"muted":B.delete(T),K5(T,$.muted,L,U);continue;case"autoFocus":B.delete("autofocus"),K5(T,$.autofocus,L,U);continue;case"data":if(Z!=="object"){B.delete(T),z=$.getAttribute("data"),K5(T,z,L,U);continue}case"src":case"href":if(!(L!==""||Z==="a"&&T==="href"||Z==="object"&&T==="data")){T==="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.',T,T):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.',T,T);continue}XX($,T,T,L,B,U);continue;case"action":case"formAction":if(z=$.getAttribute(T),typeof L==="function"){B.delete(T.toLowerCase()),T==="formAction"?(B.delete("name"),B.delete("formenctype"),B.delete("formmethod"),B.delete("formtarget")):(B.delete("enctype"),B.delete("method"),B.delete("target"));continue}else if(z===AO){B.delete(T.toLowerCase()),K5(T,"function",L,U);continue}XX($,T,T.toLowerCase(),L,B,U);continue;case"xlinkHref":XX($,T,"xlink:href",L,B,U);continue;case"contentEditable":YX($,T,"contenteditable",L,B,U);continue;case"spellCheck":YX($,T,"spellcheck",L,B,U);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":YX($,T,T,L,B,U);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":mF($,T,T.toLowerCase(),L,B,U);continue;case"capture":case"download":$:{w=$;var b=z=T,f=U;if(B.delete(b),w=w.getAttribute(b),w===null)switch(typeof L){case"undefined":case"function":case"symbol":break $;default:if(L===!1)break $}else if(L!=null)switch(typeof L){case"function":case"symbol":break;case"boolean":if(L===!0&&w==="")break $;break;default:if(W1(L,z),w===""+L)break $}K5(z,w,L,f)}continue;case"cols":case"rows":case"size":case"span":$:{if(w=$,b=z=T,f=U,B.delete(b),w=w.getAttribute(b),w===null)switch(typeof L){case"undefined":case"function":case"symbol":case"boolean":break $;default:if(isNaN(L)||1>L)break $}else if(L!=null)switch(typeof L){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(L)||1>L)&&(W1(L,z),w===""+L))break $}K5(z,w,L,f)}continue;case"rowSpan":dF($,T,"rowspan",L,B,U);continue;case"start":dF($,T,T,L,B,U);continue;case"xHeight":D6($,T,"x-height",L,B,U);continue;case"xlinkActuate":D6($,T,"xlink:actuate",L,B,U);continue;case"xlinkArcrole":D6($,T,"xlink:arcrole",L,B,U);continue;case"xlinkRole":D6($,T,"xlink:role",L,B,U);continue;case"xlinkShow":D6($,T,"xlink:show",L,B,U);continue;case"xlinkTitle":D6($,T,"xlink:title",L,B,U);continue;case"xlinkType":D6($,T,"xlink:type",L,B,U);continue;case"xmlBase":D6($,T,"xml:base",L,B,U);continue;case"xmlLang":D6($,T,"xml:lang",L,B,U);continue;case"xmlSpace":D6($,T,"xml:space",L,B,U);continue;case"inert":L!==""||G3[T]||(G3[T]=!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.",T)),mF($,T,T,L,B,U);continue;default:if(!(2<T.length)||T[0]!=="o"&&T[0]!=="O"||T[1]!=="n"&&T[1]!=="N"){w=cK(T),z=!1,Y.context===w8&&Z!=="svg"&&Z!=="math"?B.delete(w.toLowerCase()):(b=T.toLowerCase(),b=MG.hasOwnProperty(b)?MG[b]||null:null,b!==null&&b!==T&&(z=!0,B.delete(b)),B.delete(w));$:if(b=$,f=w,w=L,C$(f))if(b.hasAttribute(f))b=b.getAttribute(f),W1(w,f),w=b===""+w?w:b;else{switch(typeof w){case"function":case"symbol":break $;case"boolean":if(b=f.toLowerCase().slice(0,5),b!=="data-"&&b!=="aria-")break $}w=w===void 0?void 0:null}else w=void 0;z||K5(T,w,L,U)}}}return 0<B.size&&Q.suppressHydrationWarning!==!0&&FT($,B,U),Object.keys(U).length===0?null:U}function zT($,Z){switch($.length){case 0:return"";case 1:return $[0];case 2:return $[0]+" "+Z+" "+$[1];default:return $.slice(0,-1).join(", ")+", "+Z+" "+$[$.length-1]}}function cF($){switch($){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function MT(){if(typeof performance.getEntriesByType==="function"){for(var $=0,Z=0,Q=performance.getEntriesByType("resource"),Y=0;Y<Q.length;Y++){var U=Q[Y],B=U.transferSize,z=U.initiatorType,w=U.duration;if(B&&w&&cF(z)){z=0,w=U.responseEnd;for(Y+=1;Y<Q.length;Y++){var L=Q[Y],T=L.startTime;if(T>w)break;var{transferSize:b,initiatorType:f}=L;b&&cF(f)&&(L=L.responseEnd,z+=b*(L<w?1:(w-T)/(L-T)))}if(--Y,Z+=8*(B+z)/(U.duration/1000),$++,10<$)break}}if(0<$)return Z/$/1e6}return navigator.connection&&($=navigator.connection.downlink,typeof $==="number")?$:5}function tQ($){return $.nodeType===9?$:$.ownerDocument}function lF($){switch($){case I9:return Z$;case zG:return Y3;default:return w8}}function rF($,Z){if($===w8)switch(Z){case"svg":return Z$;case"math":return Y3;default:return w8}return $===Z$&&Z==="foreignObject"?w8:$}function NX($,Z){return $==="textarea"||$==="noscript"||typeof Z.children==="string"||typeof Z.children==="number"||typeof Z.children==="bigint"||typeof Z.dangerouslySetInnerHTML==="object"&&Z.dangerouslySetInnerHTML!==null&&Z.dangerouslySetInnerHTML.__html!=null}function wT(){var $=window.event;if($&&$.type==="popstate"){if($===cN)return!1;return cN=$,!0}return cN=null,!1}function e$(){var $=window.event;return $&&$!==oZ?$.type:null}function $Z(){var $=window.event;return $&&$!==oZ?$.timeStamp:-1.1}function RT($){setTimeout(function(){throw $})}function _T($,Z,Q){switch(Z){case"button":case"input":case"select":case"textarea":Q.autoFocus&&$.focus();break;case"img":Q.src?$.src=Q.src:Q.srcSet&&($.srcset=Q.srcSet)}}function LT(){}function PT($,Z,Q,Y){WT($,Z,Q,Y),$[g5]=Y}function sF($){V$($,"")}function TT($,Z,Q){$.nodeValue=Q}function nF($){if(!$.__reactWarnedAboutChildrenConflict){var Z=$[g5]||null;if(Z!==null){var Q=j0($);Q!==null&&(typeof Z.children==="string"||typeof Z.children==="number"?($.__reactWarnedAboutChildrenConflict=!0,q0(Q,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.')})):Z.dangerouslySetInnerHTML!=null&&($.__reactWarnedAboutChildrenConflict=!0,q0(Q,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 s8($){return $==="head"}function CT($,Z){$.removeChild(Z)}function OT($,Z){($.nodeType===9?$.body:$.nodeName==="HTML"?$.ownerDocument.body:$).removeChild(Z)}function oF($,Z){var Q=Z,Y=0;do{var U=Q.nextSibling;if($.removeChild(Q),U&&U.nodeType===8)if(Q=U.data,Q===nZ||Q===q3){if(Y===0){$.removeChild(U),_9(Z);return}Y--}else if(Q===sZ||Q===w2||Q===E7||Q===$$||Q===A7)Y++;else if(Q===SO)ZZ($.ownerDocument.documentElement);else if(Q===jO){Q=$.ownerDocument.head,ZZ(Q);for(var B=Q.firstChild;B;){var{nextSibling:z,nodeName:w}=B;B[NZ]||w==="SCRIPT"||w==="STYLE"||w==="LINK"&&B.rel.toLowerCase()==="stylesheet"||Q.removeChild(B),B=z}}else Q===DO&&ZZ($.ownerDocument.body);Q=U}while(Q);_9(Z)}function aF($,Z){var Q=$;$=0;do{var Y=Q.nextSibling;if(Q.nodeType===1?Z?(Q._stashedDisplay=Q.style.display,Q.style.display="none"):(Q.style.display=Q._stashedDisplay||"",Q.getAttribute("style")===""&&Q.removeAttribute("style")):Q.nodeType===3&&(Z?(Q._stashedText=Q.nodeValue,Q.nodeValue=""):Q.nodeValue=Q._stashedText||""),Y&&Y.nodeType===8)if(Q=Y.data,Q===nZ)if($===0)break;else $--;else Q!==sZ&&Q!==w2&&Q!==E7&&Q!==$$||$++;Q=Y}while(Q)}function IT($){aF($,!0)}function VT($){$=$.style,typeof $.setProperty==="function"?$.setProperty("display","none","important"):$.display="none"}function AT($){$.nodeValue=""}function ET($){aF($,!1)}function ST($,Z){Z=Z[kO],Z=Z!==void 0&&Z!==null&&Z.hasOwnProperty("display")?Z.display:null,$.style.display=Z==null||typeof Z==="boolean"?"":(""+Z).trim()}function DT($,Z){$.nodeValue=Z}function UX($){var Z=$.firstChild;Z&&Z.nodeType===10&&(Z=Z.nextSibling);for(;Z;){var Q=Z;switch(Z=Z.nextSibling,Q.nodeName){case"HTML":case"HEAD":case"BODY":UX(Q),Z0(Q);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(Q.rel.toLowerCase()==="stylesheet")continue}$.removeChild(Q)}}function jT($,Z,Q,Y){for(;$.nodeType===1;){var U=Q;if($.nodeName.toLowerCase()!==Z.toLowerCase()){if(!Y&&($.nodeName!=="INPUT"||$.type!=="hidden"))break}else if(!Y)if(Z==="input"&&$.type==="hidden"){W1(U.name,"name");var B=U.name==null?null:""+U.name;if(U.type==="hidden"&&$.getAttribute("name")===B)return $}else return $;else if(!$[NZ])switch(Z){case"meta":if(!$.hasAttribute("itemprop"))break;return $;case"link":if(B=$.getAttribute("rel"),B==="stylesheet"&&$.hasAttribute("data-precedence"))break;else if(B!==U.rel||$.getAttribute("href")!==(U.href==null||U.href===""?null:U.href)||$.getAttribute("crossorigin")!==(U.crossOrigin==null?null:U.crossOrigin)||$.getAttribute("title")!==(U.title==null?null:U.title))break;return $;case"style":if($.hasAttribute("data-precedence"))break;return $;case"script":if(B=$.getAttribute("src"),(B!==(U.src==null?null:U.src)||$.getAttribute("type")!==(U.type==null?null:U.type)||$.getAttribute("crossorigin")!==(U.crossOrigin==null?null:U.crossOrigin))&&B&&$.hasAttribute("async")&&!$.hasAttribute("itemprop"))break;return $;default:return $}if($=w6($.nextSibling),$===null)break}return null}function kT($,Z,Q){if(Z==="")return null;for(;$.nodeType!==3;){if(($.nodeType!==1||$.nodeName!=="INPUT"||$.type!=="hidden")&&!Q)return null;if($=w6($.nextSibling),$===null)return null}return $}function iF($,Z){for(;$.nodeType!==8;){if(($.nodeType!==1||$.nodeName!=="INPUT"||$.type!=="hidden")&&!Z)return null;if($=w6($.nextSibling),$===null)return null}return $}function KX($){return $.data===w2||$.data===E7}function BX($){return $.data===$$||$.data===w2&&$.ownerDocument.readyState!==xM}function vT($,Z){var Q=$.ownerDocument;if($.data===E7)$._reactRetry=Z;else if($.data!==w2||Q.readyState!==xM)Z();else{var Y=function(){Z(),Q.removeEventListener("DOMContentLoaded",Y)};Q.addEventListener("DOMContentLoaded",Y),$._reactRetry=Y}}function w6($){for(;$!=null;$=$.nextSibling){var Z=$.nodeType;if(Z===1||Z===3)break;if(Z===8){if(Z=$.data,Z===sZ||Z===$$||Z===w2||Z===E7||Z===A7||Z===mN||Z===uM)break;if(Z===nZ||Z===q3)return null}}return $}function tF($){if($.nodeType===1){for(var Z=$.nodeName.toLowerCase(),Q={},Y=$.attributes,U=0;U<Y.length;U++){var B=Y[U];Q[uF(B.name)]=B.name.toLowerCase()==="style"?qX($):B.value}return{type:Z,props:Q}}return $.nodeType===8?$.data===A7?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:$.nodeValue}function eF($,Z,Q){return Q===null||Q[EO]!==!0?($.nodeValue===Z?$=null:(Z=r8(Z),$=r8($.nodeValue)===Z?null:$.nodeValue),$):null}function HX($){$=$.nextSibling;for(var Z=0;$;){if($.nodeType===8){var Q=$.data;if(Q===nZ||Q===q3){if(Z===0)return w6($.nextSibling);Z--}else Q!==sZ&&Q!==$$&&Q!==w2&&Q!==E7&&Q!==A7||Z++}$=$.nextSibling}return null}function $W($){$=$.previousSibling;for(var Z=0;$;){if($.nodeType===8){var Q=$.data;if(Q===sZ||Q===$$||Q===w2||Q===E7||Q===A7){if(Z===0)return $;Z--}else Q!==nZ&&Q!==q3||Z++}$=$.previousSibling}return null}function bT($){_9($)}function fT($){_9($)}function yT($){_9($)}function ZW($,Z,Q,Y,U){switch(U&&Cq($,Y.ancestorInfo),Z=tQ(Q),$){case"html":if($=Z.documentElement,!$)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 $;case"head":if($=Z.head,!$)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 $;case"body":if($=Z.body,!$)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 $;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function gT($,Z,Q,Y){if(!Q[i8]&&j0(Q)){var U=Q.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.",U,U,U)}switch($){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(U=Q.attributes;U.length;)Q.removeAttributeNode(U[0]);R5(Q,$,Z),Q[_5]=Y,Q[g5]=Z}function ZZ($){for(var Z=$.attributes;Z.length;)$.removeAttributeNode(Z[0]);Z0($)}function eQ($){return typeof $.getRootNode==="function"?$.getRootNode():$.nodeType===9?$:$.ownerDocument}function JW($,Z,Q){var Y=J$;if(Y&&typeof Z==="string"&&Z){var U=S6(Z);U='link[rel="'+$+'"][href="'+U+'"]',typeof Q==="string"&&(U+='[crossorigin="'+Q+'"]'),rM.has(U)||(rM.add(U),$={rel:$,crossOrigin:Q,href:Z},Y.querySelector(U)===null&&(Z=Y.createElement("link"),R5(Z,"link",$),_0(Z),Y.head.appendChild(Z)))}}function QW($,Z,Q,Y){var U=(U=o8.current)?eQ(U):null;if(!U)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch($){case"meta":case"title":return null;case"style":return typeof Q.precedence==="string"&&typeof Q.href==="string"?(Q=w9(Q.href),Z=J1(U).hoistableStyles,Y=Z.get(Q),Y||(Y={type:"style",instance:null,count:0,state:null},Z.set(Q,Y)),Y):{type:"void",instance:null,count:0,state:null};case"link":if(Q.rel==="stylesheet"&&typeof Q.href==="string"&&typeof Q.precedence==="string"){$=w9(Q.href);var B=J1(U).hoistableStyles,z=B.get($);if(!z&&(U=U.ownerDocument||U,z={type:"stylesheet",instance:null,count:0,state:{loading:D7,preload:null}},B.set($,z),(B=U.querySelector(JZ($)))&&!B._p&&(z.instance=B,z.state.loading=aZ|m6),!d6.has($))){var w={rel:"preload",as:"style",href:Q.href,crossOrigin:Q.crossOrigin,integrity:Q.integrity,media:Q.media,hrefLang:Q.hrefLang,referrerPolicy:Q.referrerPolicy};d6.set($,w),B||hT(U,$,w,z.state)}if(Z&&Y===null)throw Q=`
|
|
177
177
|
|
|
178
|
-
-
|
|
179
|
-
+
|
|
178
|
+
- `+$G(Z)+`
|
|
179
|
+
+ `+$G(Q),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."+Q);return z}if(Z&&Y!==null)throw Q=`
|
|
180
180
|
|
|
181
|
-
-
|
|
182
|
-
+ `+MG(G),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."+G);return null;case"script":return Z=G.async,G=G.src,typeof G==="string"&&Z&&typeof Z!=="function"&&typeof Z!=="symbol"?(G=O7(G),Z=Q1(U).hoistableScripts,Y=Z.get(G),Y||(Y={type:"script",instance:null,count:0,state:null},Z.set(G,Y)),Y):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+$+'". this is a bug in React.')}}function MG($){var Z=0,G="<link";return typeof $.rel==="string"?(Z++,G+=' rel="'+$.rel+'"'):G4.call($,"rel")&&(Z++,G+=' rel="'+($.rel===null?"null":"invalid type "+typeof $.rel)+'"'),typeof $.href==="string"?(Z++,G+=' href="'+$.href+'"'):G4.call($,"href")&&(Z++,G+=' href="'+($.href===null?"null":"invalid type "+typeof $.href)+'"'),typeof $.precedence==="string"?(Z++,G+=' precedence="'+$.precedence+'"'):G4.call($,"precedence")&&(Z++,G+=" precedence={"+($.precedence===null?"null":"invalid type "+typeof $.precedence)+"}"),Object.getOwnPropertyNames($).length>Z&&(G+=" ..."),G+" />"}function I7($){return'href="'+v6($)+'"'}function MZ($){return'link[rel="stylesheet"]['+$+"]"}function VM($){return l0({},$,{"data-precedence":$.precedence,precedence:null})}function yC($,Z,G,Y){$.querySelector('link[rel="preload"][as="style"]['+Z+"]")?Y.loading=NQ:(Z=$.createElement("link"),Y.preload=Z,Z.addEventListener("load",function(){return Y.loading|=NQ}),Z.addEventListener("error",function(){return Y.loading|=HR}),L5(Z,"link",G),_0(Z),$.head.appendChild(Z))}function O7($){return'[src="'+v6($)+'"]'}function WZ($){return"script[async]"+$}function AM($,Z,G){if(Z.count++,Z.instance===null)switch(Z.type){case"style":var Y=$.querySelector('style[data-href~="'+v6(G.href)+'"]');if(Y)return Z.instance=Y,_0(Y),Y;var U=l0({},G,{"data-href":G.href,"data-precedence":G.precedence,href:null,precedence:null});return Y=($.ownerDocument||$).createElement("style"),_0(Y),L5(Y,"style",U),WG(Y,G.precedence,$),Z.instance=Y;case"stylesheet":U=I7(G.href);var B=$.querySelector(MZ(U));if(B)return Z.state.loading|=c6,Z.instance=B,_0(B),B;Y=VM(G),(U=l6.get(U))&&DY(Y,U),B=($.ownerDocument||$).createElement("link"),_0(B);var W=B;return W._p=new Promise(function(z,L){W.onload=z,W.onerror=L}),L5(B,"link",Y),Z.state.loading|=c6,WG(B,G.precedence,$),Z.instance=B;case"script":if(B=O7(G.src),U=$.querySelector(WZ(B)))return Z.instance=U,_0(U),U;if(Y=G,U=l6.get(B))Y=l0({},G),vY(Y,U);return $=$.ownerDocument||$,U=$.createElement("script"),_0(U),L5(U,"link",Y),$.head.appendChild(U),Z.instance=U;case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+Z.type+'". this is a bug in React.')}else Z.type==="stylesheet"&&(Z.state.loading&c6)===f9&&(Y=Z.instance,Z.state.loading|=c6,WG(Y,G.precedence,$));return Z.instance}function WG($,Z,G){for(var Y=G.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),U=Y.length?Y[Y.length-1]:null,B=U,W=0;W<Y.length;W++){var z=Y[W];if(z.dataset.precedence===Z)B=z;else if(B!==U)break}B?B.parentNode.insertBefore($,B.nextSibling):(Z=G.nodeType===9?G.head:G,Z.insertBefore($,Z.firstChild))}function DY($,Z){$.crossOrigin==null&&($.crossOrigin=Z.crossOrigin),$.referrerPolicy==null&&($.referrerPolicy=Z.referrerPolicy),$.title==null&&($.title=Z.title)}function vY($,Z){$.crossOrigin==null&&($.crossOrigin=Z.crossOrigin),$.referrerPolicy==null&&($.referrerPolicy=Z.referrerPolicy),$.integrity==null&&($.integrity=Z.integrity)}function EM($,Z,G){if(P3===null){var Y=new Map,U=P3=new Map;U.set(G,Y)}else U=P3,Y=U.get(G),Y||(Y=new Map,U.set(G,Y));if(Y.has($))return Y;Y.set($,null),G=G.getElementsByTagName($);for(U=0;U<G.length;U++){var B=G[U];if(!(B[LZ]||B[P5]||$==="link"&&B.getAttribute("rel")==="stylesheet")&&B.namespaceURI!==v7){var W=B.getAttribute(Z)||"";W=$+W;var z=Y.get(W);z?z.push(B):Y.set(W,[B])}}return Y}function SM($,Z,G){$=$.ownerDocument||$,$.head.insertBefore(G,Z==="title"?$.querySelector("head > title"):null)}function gC($,Z,G){var Y=!G.ancestorInfo.containerTagInScope;if(G.context===N$||Z.itemProp!=null)return!Y||Z.itemProp==null||$!=="meta"&&$!=="title"&&$!=="style"&&$!=="link"&&$!=="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.",$,$),!1;switch($){case"meta":case"title":return!0;case"style":if(typeof Z.precedence!=="string"||typeof Z.href!=="string"||Z.href===""){Y&&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 Z.rel!=="string"||typeof Z.href!=="string"||Z.href===""||Z.onLoad||Z.onError){if(Z.rel==="stylesheet"&&typeof Z.precedence==="string"){$=Z.href;var{onError:U,disabled:B}=Z;G=[],Z.onLoad&&G.push("`onLoad`"),U&&G.push("`onError`"),B!=null&&G.push("`disabled`"),U=FC(G,"and"),U+=G.length===1?" prop":" props",B=G.length===1?"an "+U:"the "+U,G.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.',$,B,U)}Y&&(typeof Z.rel!=="string"||typeof Z.href!=="string"||Z.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"):(Z.onError||Z.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(Z.rel){case"stylesheet":return $=Z.precedence,Z=Z.disabled,typeof $!=="string"&&Y&&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 $==="string"&&Z==null;default:return!0}case"script":if($=Z.async&&typeof Z.async!=="function"&&typeof Z.async!=="symbol",!$||Z.onLoad||Z.onError||!Z.src||typeof Z.src!=="string"){Y&&($?Z.onLoad||Z.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":Y&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",$)}return!1}function jM($){return $.type==="stylesheet"&&($.state.loading&FR)===f9?!1:!0}function hC($,Z,G,Y){if(G.type==="stylesheet"&&(typeof Y.media!=="string"||matchMedia(Y.media).matches!==!1)&&(G.state.loading&c6)===f9){if(G.instance===null){var U=I7(Y.href),B=Z.querySelector(MZ(U));if(B){Z=B._p,Z!==null&&typeof Z==="object"&&typeof Z.then==="function"&&($.count++,$=wG.bind($),Z.then($,$)),G.state.loading|=c6,G.instance=B,_0(B);return}B=Z.ownerDocument||Z,Y=VM(Y),(U=l6.get(U))&&DY(Y,U),B=B.createElement("link"),_0(B);var W=B;W._p=new Promise(function(z,L){W.onload=z,W.onerror=L}),L5(B,"link",Y),G.instance=B}$.stylesheets===null&&($.stylesheets=new Map),$.stylesheets.set(G,Z),(Z=G.state.preload)&&(G.state.loading&FR)===f9&&($.count++,G=wG.bind($),Z.addEventListener("load",G),Z.addEventListener("error",G))}}function uC($,Z){return $.stylesheets&&$.count===0&&RG($,$.stylesheets),0<$.count||0<$.imgCount?function(G){var Y=setTimeout(function(){if($.stylesheets&&RG($,$.stylesheets),$.unsuspend){var B=$.unsuspend;$.unsuspend=null,B()}},bO+Z);0<$.imgBytes&&KU===0&&(KU=125*MC()*fO);var U=setTimeout(function(){if($.waitingForImages=!1,$.count===0&&($.stylesheets&&RG($,$.stylesheets),$.unsuspend)){var B=$.unsuspend;$.unsuspend=null,B()}},($.imgBytes>KU?50:kO)+Z);return $.unsuspend=G,function(){$.unsuspend=null,clearTimeout(Y),clearTimeout(U)}}:null}function wG(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)RG(this,this.stylesheets);else if(this.unsuspend){var $=this.unsuspend;this.unsuspend=null,$()}}}function RG($,Z){$.stylesheets=null,$.unsuspend!==null&&($.count++,T3=new Map,Z.forEach(xC,$),T3=null,wG.call($))}function xC($,Z){if(!(Z.state.loading&c6)){var G=T3.get($);if(G)var Y=G.get(BU);else{G=new Map,T3.set($,G);for(var U=$.querySelectorAll("link[data-precedence],style[data-precedence]"),B=0;B<U.length;B++){var W=U[B];if(W.nodeName==="LINK"||W.getAttribute("media")!=="not all")G.set(W.dataset.precedence,W),Y=W}Y&&G.set(BU,Y)}U=Z.instance,W=U.getAttribute("data-precedence"),B=G.get(W)||Y,B===Y&&G.set(BU,U),G.set(W,U),this.count++,Y=wG.bind(this),U.addEventListener("load",Y),U.addEventListener("error",Y),B?B.parentNode.insertBefore(U,B.nextSibling):($=$.nodeType===9?$.head:$,$.insertBefore(U,$.firstChild)),Z.state.loading|=c6}}function mC($,Z,G,Y,U,B,W,z,L){this.tag=1,this.containerInfo=$,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=k9,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=N7(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=N7(0),this.hiddenUpdates=N7(null),this.identifierPrefix=Y,this.onUncaughtError=U,this.onCaughtError=B,this.onRecoverableError=W,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=L,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,$=this.pendingUpdatersLaneMap=[];for(Z=0;31>Z;Z++)$.push(new Set);this._debugRootType=G?"hydrateRoot()":"createRoot()"}function DM($,Z,G,Y,U,B,W,z,L,T,k,f){return $=new mC($,Z,G,W,L,T,k,f,z),Z=qO,B===!0&&(Z|=v5|q4),Z|=g0,B=P(3,null,null,Z),$.current=B,B.stateNode=$,Z=qq(),Y9(Z),$.pooledCache=Z,Y9(Z),B.memoizedState={element:Y,isDehydrated:G,cache:Z},Bq(B),$}function vM($){if(!$)return Y2;return $=Y2,$}function bY($,Z,G,Y,U,B){if(D5&&typeof D5.onScheduleFiberRoot==="function")try{D5.onScheduleFiberRoot(j7,Y,G)}catch(W){k4||(k4=!0,console.error("React instrumentation encountered an error: %o",W))}U=vM(U),Y.context===null?Y.context=U:Y.pendingContext=U,b4&&T6!==null&&!zR&&(zR=!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
|
+
- `+$G(Z)+`
|
|
182
|
+
+ `+$G(Q),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."+Q);return null;case"script":return Z=Q.async,Q=Q.src,typeof Q==="string"&&Z&&typeof Z!=="function"&&typeof Z!=="symbol"?(Q=R9(Q),Z=J1(U).hoistableScripts,Y=Z.get(Q),Y||(Y={type:"script",instance:null,count:0,state:null},Z.set(Q,Y)),Y):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+$+'". this is a bug in React.')}}function $G($){var Z=0,Q="<link";return typeof $.rel==="string"?(Z++,Q+=' rel="'+$.rel+'"'):Z4.call($,"rel")&&(Z++,Q+=' rel="'+($.rel===null?"null":"invalid type "+typeof $.rel)+'"'),typeof $.href==="string"?(Z++,Q+=' href="'+$.href+'"'):Z4.call($,"href")&&(Z++,Q+=' href="'+($.href===null?"null":"invalid type "+typeof $.href)+'"'),typeof $.precedence==="string"?(Z++,Q+=' precedence="'+$.precedence+'"'):Z4.call($,"precedence")&&(Z++,Q+=" precedence={"+($.precedence===null?"null":"invalid type "+typeof $.precedence)+"}"),Object.getOwnPropertyNames($).length>Z&&(Q+=" ..."),Q+" />"}function w9($){return'href="'+S6($)+'"'}function JZ($){return'link[rel="stylesheet"]['+$+"]"}function GW($){return l0({},$,{"data-precedence":$.precedence,precedence:null})}function hT($,Z,Q,Y){$.querySelector('link[rel="preload"][as="style"]['+Z+"]")?Y.loading=aZ:(Z=$.createElement("link"),Y.preload=Z,Z.addEventListener("load",function(){return Y.loading|=aZ}),Z.addEventListener("error",function(){return Y.loading|=cM}),R5(Z,"link",Q),_0(Z),$.head.appendChild(Z))}function R9($){return'[src="'+S6($)+'"]'}function QZ($){return"script[async]"+$}function qW($,Z,Q){if(Z.count++,Z.instance===null)switch(Z.type){case"style":var Y=$.querySelector('style[data-href~="'+S6(Q.href)+'"]');if(Y)return Z.instance=Y,_0(Y),Y;var U=l0({},Q,{"data-href":Q.href,"data-precedence":Q.precedence,href:null,precedence:null});return Y=($.ownerDocument||$).createElement("style"),_0(Y),R5(Y,"style",U),ZG(Y,Q.precedence,$),Z.instance=Y;case"stylesheet":U=w9(Q.href);var B=$.querySelector(JZ(U));if(B)return Z.state.loading|=m6,Z.instance=B,_0(B),B;Y=GW(Q),(U=d6.get(U))&&FX(Y,U),B=($.ownerDocument||$).createElement("link"),_0(B);var z=B;return z._p=new Promise(function(w,L){z.onload=w,z.onerror=L}),R5(B,"link",Y),Z.state.loading|=m6,ZG(B,Q.precedence,$),Z.instance=B;case"script":if(B=R9(Q.src),U=$.querySelector(QZ(B)))return Z.instance=U,_0(U),U;if(Y=Q,U=d6.get(B))Y=l0({},Q),WX(Y,U);return $=$.ownerDocument||$,U=$.createElement("script"),_0(U),R5(U,"link",Y),$.head.appendChild(U),Z.instance=U;case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+Z.type+'". this is a bug in React.')}else Z.type==="stylesheet"&&(Z.state.loading&m6)===D7&&(Y=Z.instance,Z.state.loading|=m6,ZG(Y,Q.precedence,$));return Z.instance}function ZG($,Z,Q){for(var Y=Q.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),U=Y.length?Y[Y.length-1]:null,B=U,z=0;z<Y.length;z++){var w=Y[z];if(w.dataset.precedence===Z)B=w;else if(B!==U)break}B?B.parentNode.insertBefore($,B.nextSibling):(Z=Q.nodeType===9?Q.head:Q,Z.insertBefore($,Z.firstChild))}function FX($,Z){$.crossOrigin==null&&($.crossOrigin=Z.crossOrigin),$.referrerPolicy==null&&($.referrerPolicy=Z.referrerPolicy),$.title==null&&($.title=Z.title)}function WX($,Z){$.crossOrigin==null&&($.crossOrigin=Z.crossOrigin),$.referrerPolicy==null&&($.referrerPolicy=Z.referrerPolicy),$.integrity==null&&($.integrity=Z.integrity)}function YW($,Z,Q){if(X3===null){var Y=new Map,U=X3=new Map;U.set(Q,Y)}else U=X3,Y=U.get(Q),Y||(Y=new Map,U.set(Q,Y));if(Y.has($))return Y;Y.set($,null),Q=Q.getElementsByTagName($);for(U=0;U<Q.length;U++){var B=Q[U];if(!(B[NZ]||B[_5]||$==="link"&&B.getAttribute("rel")==="stylesheet")&&B.namespaceURI!==I9){var z=B.getAttribute(Z)||"";z=$+z;var w=Y.get(z);w?w.push(B):Y.set(z,[B])}}return Y}function XW($,Z,Q){$=$.ownerDocument||$,$.head.insertBefore(Q,Z==="title"?$.querySelector("head > title"):null)}function uT($,Z,Q){var Y=!Q.ancestorInfo.containerTagInScope;if(Q.context===Z$||Z.itemProp!=null)return!Y||Z.itemProp==null||$!=="meta"&&$!=="title"&&$!=="style"&&$!=="link"&&$!=="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.",$,$),!1;switch($){case"meta":case"title":return!0;case"style":if(typeof Z.precedence!=="string"||typeof Z.href!=="string"||Z.href===""){Y&&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 Z.rel!=="string"||typeof Z.href!=="string"||Z.href===""||Z.onLoad||Z.onError){if(Z.rel==="stylesheet"&&typeof Z.precedence==="string"){$=Z.href;var{onError:U,disabled:B}=Z;Q=[],Z.onLoad&&Q.push("`onLoad`"),U&&Q.push("`onError`"),B!=null&&Q.push("`disabled`"),U=zT(Q,"and"),U+=Q.length===1?" prop":" props",B=Q.length===1?"an "+U:"the "+U,Q.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.',$,B,U)}Y&&(typeof Z.rel!=="string"||typeof Z.href!=="string"||Z.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"):(Z.onError||Z.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(Z.rel){case"stylesheet":return $=Z.precedence,Z=Z.disabled,typeof $!=="string"&&Y&&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 $==="string"&&Z==null;default:return!0}case"script":if($=Z.async&&typeof Z.async!=="function"&&typeof Z.async!=="symbol",!$||Z.onLoad||Z.onError||!Z.src||typeof Z.src!=="string"){Y&&($?Z.onLoad||Z.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":Y&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",$)}return!1}function NW($){return $.type==="stylesheet"&&($.state.loading&lM)===D7?!1:!0}function xT($,Z,Q,Y){if(Q.type==="stylesheet"&&(typeof Y.media!=="string"||matchMedia(Y.media).matches!==!1)&&(Q.state.loading&m6)===D7){if(Q.instance===null){var U=w9(Y.href),B=Z.querySelector(JZ(U));if(B){Z=B._p,Z!==null&&typeof Z==="object"&&typeof Z.then==="function"&&($.count++,$=JG.bind($),Z.then($,$)),Q.state.loading|=m6,Q.instance=B,_0(B);return}B=Z.ownerDocument||Z,Y=GW(Y),(U=d6.get(U))&&FX(Y,U),B=B.createElement("link"),_0(B);var z=B;z._p=new Promise(function(w,L){z.onload=w,z.onerror=L}),R5(B,"link",Y),Q.instance=B}$.stylesheets===null&&($.stylesheets=new Map),$.stylesheets.set(Q,Z),(Z=Q.state.preload)&&(Q.state.loading&lM)===D7&&($.count++,Q=JG.bind($),Z.addEventListener("load",Q),Z.addEventListener("error",Q))}}function mT($,Z){return $.stylesheets&&$.count===0&&QG($,$.stylesheets),0<$.count||0<$.imgCount?function(Q){var Y=setTimeout(function(){if($.stylesheets&&QG($,$.stylesheets),$.unsuspend){var B=$.unsuspend;$.unsuspend=null,B()}},fO+Z);0<$.imgBytes&&rN===0&&(rN=125*MT()*gO);var U=setTimeout(function(){if($.waitingForImages=!1,$.count===0&&($.stylesheets&&QG($,$.stylesheets),$.unsuspend)){var B=$.unsuspend;$.unsuspend=null,B()}},($.imgBytes>rN?50:yO)+Z);return $.unsuspend=Q,function(){$.unsuspend=null,clearTimeout(Y),clearTimeout(U)}}:null}function JG(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)QG(this,this.stylesheets);else if(this.unsuspend){var $=this.unsuspend;this.unsuspend=null,$()}}}function QG($,Z){$.stylesheets=null,$.unsuspend!==null&&($.count++,N3=new Map,Z.forEach(dT,$),N3=null,JG.call($))}function dT($,Z){if(!(Z.state.loading&m6)){var Q=N3.get($);if(Q)var Y=Q.get(sN);else{Q=new Map,N3.set($,Q);for(var U=$.querySelectorAll("link[data-precedence],style[data-precedence]"),B=0;B<U.length;B++){var z=U[B];if(z.nodeName==="LINK"||z.getAttribute("media")!=="not all")Q.set(z.dataset.precedence,z),Y=z}Y&&Q.set(sN,Y)}U=Z.instance,z=U.getAttribute("data-precedence"),B=Q.get(z)||Y,B===Y&&Q.set(sN,U),Q.set(z,U),this.count++,Y=JG.bind(this),U.addEventListener("load",Y),U.addEventListener("error",Y),B?B.parentNode.insertBefore(U,B.nextSibling):($=$.nodeType===9?$.head:$,$.insertBefore(U,$.firstChild)),Z.state.loading|=m6}}function pT($,Z,Q,Y,U,B,z,w,L){this.tag=1,this.containerInfo=$,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=S7,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Z9(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Z9(0),this.hiddenUpdates=Z9(null),this.identifierPrefix=Y,this.onUncaughtError=U,this.onCaughtError=B,this.onRecoverableError=z,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=L,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,$=this.pendingUpdatersLaneMap=[];for(Z=0;31>Z;Z++)$.push(new Set);this._debugRootType=Q?"hydrateRoot()":"createRoot()"}function UW($,Z,Q,Y,U,B,z,w,L,T,b,f){return $=new pT($,Z,Q,z,L,T,b,f,w),Z=NO,B===!0&&(Z|=D5|Q4),Z|=g0,B=P(3,null,null,Z),$.current=B,B.stateNode=$,Z=dq(),J7(Z),$.pooledCache=Z,J7(Z),B.memoizedState={element:Y,isDehydrated:Q,cache:Z},sq(B),$}function KW($){if(!$)return Z2;return $=Z2,$}function zX($,Z,Q,Y,U,B){if(S5&&typeof S5.onScheduleFiberRoot==="function")try{S5.onScheduleFiberRoot(C9,Y,Q)}catch(z){j4||(j4=!0,console.error("React instrumentation encountered an error: %o",z))}U=KW(U),Y.context===null?Y.context=U:Y.pendingContext=U,D4&&_6!==null&&!aM&&(aM=!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.`,d(T6)||"Unknown")),Y=r8(Z),Y.payload={element:G},B=B===void 0?null:B,B!==null&&(typeof B!=="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",B),Y.callback=B),G=n8($,Y,Z),G!==null&&(z4(Z,"root.render()",null),h1(G,$,Z),o$(G,$,Z))}function bM($,Z){if($=$.memoizedState,$!==null&&$.dehydrated!==null){var G=$.retryLane;$.retryLane=G!==0&&G<Z?G:Z}}function kY($,Z){bM($,Z),($=$.alternate)&&bM($,Z)}function kM($){if($.tag===13||$.tag===31){var Z=j5($,67108864);Z!==null&&h1(Z,$,67108864),kY($,67108864)}}function fM($){if($.tag===13||$.tag===31){var Z=_6($);Z=t2(Z);var G=j5($,Z);G!==null&&h1(G,$,Z),kY($,Z)}}function dC(){return T6}function pC($,Z,G,Y){var U=x.T;x.T=null;var B=K1.p;try{K1.p=C6,fY($,Z,G,Y)}finally{K1.p=B,x.T=U}}function cC($,Z,G,Y){var U=x.T;x.T=null;var B=K1.p;try{K1.p=X4,fY($,Z,G,Y)}finally{K1.p=B,x.T=U}}function fY($,Z,G,Y){if(I3){var U=yY(Y);if(U===null)LY($,Z,Y,O3,G),gM($,Y);else if(lC(U,$,Z,G,Y))Y.stopPropagation();else if(gM($,Y),Z&4&&-1<gO.indexOf($)){for(;U!==null;){var B=D0(U);if(B!==null)switch(B.tag){case 3:if(B=B.stateNode,B.current.memoizedState.isDehydrated){var W=M4(B.pendingLanes);if(W!==0){var z=B;z.pendingLanes|=2;for(z.entangledLanes|=2;W;){var L=1<<31-u5(W);z.entanglements[1]|=L,W&=~L}S4(B),(Z1&(N5|A6))===w5&&(Y3=F5()+rw,UZ(0,!1))}}break;case 31:case 13:z=j5(B,2),z!==null&&h1(z,B,2),P7(),kY(B,2)}if(B=yY(Y),B===null&&LY($,Z,Y,O3,G),B===U)break;U=B}U!==null&&Y.stopPropagation()}else LY($,Z,Y,null,G)}}function yY($){return $=dX($),gY($)}function gY($){if(O3=null,$=N0($),$!==null){var Z=D($);if(Z===null)$=null;else{var G=Z.tag;if(G===13){if($=h(Z),$!==null)return $;$=null}else if(G===31){if($=p(Z),$!==null)return $;$=null}else if(G===3){if(Z.stateNode.current.memoizedState.isDehydrated)return Z.tag===3?Z.stateNode.containerInfo:null;$=null}else Z!==$&&($=null)}}return O3=$,null}function yM($){switch($){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 C6;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 X4;case"message":switch($I()){case aY:return C6;case iY:return X4;case S7:case ZI:return y4;case tY:return AG;default:return y4}default:return y4}}function gM($,Z){switch($){case"focusin":case"focusout":I2=null;break;case"dragenter":case"dragleave":O2=null;break;case"mouseover":case"mouseout":V2=null;break;case"pointerover":case"pointerout":KQ.delete(Z.pointerId);break;case"gotpointercapture":case"lostpointercapture":BQ.delete(Z.pointerId)}}function wZ($,Z,G,Y,U,B){if($===null||$.nativeEvent!==B)return $={blockedOn:Z,domEventName:G,eventSystemFlags:Y,nativeEvent:B,targetContainers:[U]},Z!==null&&(Z=D0(Z),Z!==null&&kM(Z)),$;return $.eventSystemFlags|=Y,Z=$.targetContainers,U!==null&&Z.indexOf(U)===-1&&Z.push(U),$}function lC($,Z,G,Y,U){switch(Z){case"focusin":return I2=wZ(I2,$,Z,G,Y,U),!0;case"dragenter":return O2=wZ(O2,$,Z,G,Y,U),!0;case"mouseover":return V2=wZ(V2,$,Z,G,Y,U),!0;case"pointerover":var B=U.pointerId;return KQ.set(B,wZ(KQ.get(B)||null,$,Z,G,Y,U)),!0;case"gotpointercapture":return B=U.pointerId,BQ.set(B,wZ(BQ.get(B)||null,$,Z,G,Y,U)),!0}return!1}function hM($){var Z=N0($.target);if(Z!==null){var G=D(Z);if(G!==null){if(Z=G.tag,Z===13){if(Z=h(G),Z!==null){$.blockedOn=Z,r($.priority,function(){fM(G)});return}}else if(Z===31){if(Z=p(G),Z!==null){$.blockedOn=Z,r($.priority,function(){fM(G)});return}}else if(Z===3&&G.stateNode.current.memoizedState.isDehydrated){$.blockedOn=G.tag===3?G.stateNode.containerInfo:null;return}}}$.blockedOn=null}function zG($){if($.blockedOn!==null)return!1;for(var Z=$.targetContainers;0<Z.length;){var G=yY($.nativeEvent);if(G===null){G=$.nativeEvent;var Y=new G.constructor(G.type,G),U=Y;PZ!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),PZ=U,G.target.dispatchEvent(Y),PZ===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."),PZ=null}else return Z=D0(G),Z!==null&&kM(Z),$.blockedOn=G,!1;Z.shift()}return!0}function uM($,Z,G){zG($)&&G.delete(Z)}function rC(){HU=!1,I2!==null&&zG(I2)&&(I2=null),O2!==null&&zG(O2)&&(O2=null),V2!==null&&zG(V2)&&(V2=null),KQ.forEach(uM),BQ.forEach(uM)}function _G($,Z){$.blockedOn===Z&&($.blockedOn=null,HU||(HU=!0,G1.unstable_scheduleCallback(G1.unstable_NormalPriority,rC)))}function xM($){V3!==$&&(V3=$,G1.unstable_scheduleCallback(G1.unstable_NormalPriority,function(){V3===$&&(V3=null);for(var Z=0;Z<$.length;Z+=3){var G=$[Z],Y=$[Z+1],U=$[Z+2];if(typeof Y!=="function")if(gY(Y||G)===null)continue;else break;var B=D0(G);B!==null&&($.splice(Z,3),Z-=3,G={pending:!0,data:U,method:G.method,action:Y},Object.freeze(G),gq(B,G,Y,U))}}))}function V7($){function Z(L){return _G(L,$)}I2!==null&&_G(I2,$),O2!==null&&_G(O2,$),V2!==null&&_G(V2,$),KQ.forEach(Z),BQ.forEach(Z);for(var G=0;G<A2.length;G++){var Y=A2[G];Y.blockedOn===$&&(Y.blockedOn=null)}for(;0<A2.length&&(G=A2[0],G.blockedOn===null);)hM(G),G.blockedOn===null&&A2.shift();if(G=($.ownerDocument||$).$$reactFormReplay,G!=null)for(Y=0;Y<G.length;Y+=3){var U=G[Y],B=G[Y+1],W=U[x5]||null;if(typeof B==="function")W||xM(G);else if(W){var z=null;if(B&&B.hasAttribute("formAction")){if(U=B,W=B[x5]||null)z=W.formAction;else if(gY(U)!==null)continue}else z=W.action;typeof z==="function"?G[Y+1]=z:(G.splice(Y,3),Y-=3),xM(G)}}}function mM(){function $(B){B.canIntercept&&B.info==="react-transition"&&B.intercept({handler:function(){return new Promise(function(W){return U=W})},focusReset:"manual",scroll:"manual"})}function Z(){U!==null&&(U(),U=null),Y||setTimeout(G,20)}function G(){if(!Y&&!navigation.transition){var B=navigation.currentEntry;B&&B.url!=null&&navigation.navigate(B.url,{state:B.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation==="object"){var Y=!1,U=null;return navigation.addEventListener("navigate",$),navigation.addEventListener("navigatesuccess",Z),navigation.addEventListener("navigateerror",Z),setTimeout(G,100),function(){Y=!0,navigation.removeEventListener("navigate",$),navigation.removeEventListener("navigatesuccess",Z),navigation.removeEventListener("navigateerror",Z),U!==null&&(U(),U=null)}}}function hY($){this._internalRoot=$}function LG($){this._internalRoot=$}function dM($){$[J2]&&($._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 l0=Object.assign,nC=Symbol.for("react.element"),D4=Symbol.for("react.transitional.element"),A7=Symbol.for("react.portal"),E7=Symbol.for("react.fragment"),PG=Symbol.for("react.strict_mode"),uY=Symbol.for("react.profiler"),xY=Symbol.for("react.consumer"),v4=Symbol.for("react.context"),RZ=Symbol.for("react.forward_ref"),mY=Symbol.for("react.suspense"),dY=Symbol.for("react.suspense_list"),TG=Symbol.for("react.memo"),P6=Symbol.for("react.lazy"),pY=Symbol.for("react.activity"),sC=Symbol.for("react.memo_cache_sentinel"),pM=Symbol.iterator,oC=Symbol.for("react.client.reference"),q5=Array.isArray,x=P$.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K1=TK.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,aC=Object.freeze({pending:!1,data:null,method:null,action:null}),cY=[],lY=[],Y8=-1,$2=H0(null),zZ=H0(null),Z2=H0(null),CG=H0(null),_Z=0,cM,lM,rM,nM,sM,oM,aM;v.__reactDisabledLog=!0;var rY,iM,nY=!1,sY=new(typeof WeakMap==="function"?WeakMap:Map),T6=null,b4=!1,G4=Object.prototype.hasOwnProperty,oY=G1.unstable_scheduleCallback,iC=G1.unstable_cancelCallback,tC=G1.unstable_shouldYield,eC=G1.unstable_requestPaint,F5=G1.unstable_now,$I=G1.unstable_getCurrentPriorityLevel,aY=G1.unstable_ImmediatePriority,iY=G1.unstable_UserBlockingPriority,S7=G1.unstable_NormalPriority,ZI=G1.unstable_LowPriority,tY=G1.unstable_IdlePriority,QI=G1.log,JI=G1.unstable_setDisableYieldValue,j7=null,D5=null,k4=!1,f4=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",u5=Math.clz32?Math.clz32:BJ,GI=Math.log,XI=Math.LN2,IG=256,OG=262144,VG=4194304,C6=2,X4=8,y4=32,AG=268435456,Q2=Math.random().toString(36).slice(2),P5="__reactFiber$"+Q2,x5="__reactProps$"+Q2,J2="__reactContainer$"+Q2,eY="__reactEvents$"+Q2,qI="__reactListeners$"+Q2,YI="__reactHandles$"+Q2,tM="__reactResources$"+Q2,LZ="__reactMarker$"+Q2,eM=new Set,M9={},$N={},NI={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},UI=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]*$"),$W={},ZW={},KI=/[\n"\\]/g,QW=!1,JW=!1,GW=!1,XW=!1,qW=!1,YW=!1,NW=["value","defaultValue"],UW=!1,KW=/["'&<>\n\t]|^\s|\s$/,BI="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(" "),BW="applet caption html table td th marquee object template foreignObject desc title".split(" "),HI=BW.concat(["button"]),FI="dd dt li option optgroup p rp rt".split(" "),HW={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},EG={},ZN={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split(" "),fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split(" "),maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},FW=/([A-Z])/g,MW=/^ms-/,MI=/^(?:webkit|moz|o)[A-Z]/,WI=/^-ms-/,wI=/-(.)/g,WW=/;\s*$/,D7={},QN={},wW=!1,RW=!1,zW=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(" ")),SG="http://www.w3.org/1998/Math/MathML",v7="http://www.w3.org/2000/svg",RI=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"]]),jG={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"},_W={"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},b7={},zI=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]*$"),_I=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]*$"),LW=!1,m5={},PW=/^on./,LI=/^on[^A-Z]/,PI=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]*$"),TI=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]*$"),CI=/^[\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,PZ=null,k7=null,f7=null,JN=!1,g4=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),GN=!1;if(g4)try{var TZ={};Object.defineProperty(TZ,"passive",{get:function(){GN=!0}}),window.addEventListener("test",TZ,TZ),window.removeEventListener("test",TZ,TZ)}catch($){GN=!1}var G2=null,XN=null,DG=null,W9={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function($){return $.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},vG=n5(W9),CZ=l0({},W9,{view:0,detail:0}),II=n5(CZ),qN,YN,IZ,bG=l0({},CZ,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:pX,button:0,buttons:0,relatedTarget:function($){return $.relatedTarget===void 0?$.fromElement===$.srcElement?$.toElement:$.fromElement:$.relatedTarget},movementX:function($){if("movementX"in $)return $.movementX;return $!==IZ&&(IZ&&$.type==="mousemove"?(qN=$.screenX-IZ.screenX,YN=$.screenY-IZ.screenY):YN=qN=0,IZ=$),qN},movementY:function($){return"movementY"in $?$.movementY:YN}}),TW=n5(bG),OI=l0({},bG,{dataTransfer:0}),VI=n5(OI),AI=l0({},CZ,{relatedTarget:0}),NN=n5(AI),EI=l0({},W9,{animationName:0,elapsedTime:0,pseudoElement:0}),SI=n5(EI),jI=l0({},W9,{clipboardData:function($){return"clipboardData"in $?$.clipboardData:window.clipboardData}}),DI=n5(jI),vI=l0({},W9,{data:0}),CW=n5(vI),bI=CW,kI={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},fI={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"},yI={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},gI=l0({},CZ,{key:function($){if($.key){var Z=kI[$.key]||$.key;if(Z!=="Unidentified")return Z}return $.type==="keypress"?($=zJ($),$===13?"Enter":String.fromCharCode($)):$.type==="keydown"||$.type==="keyup"?fI[$.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:pX,charCode:function($){return $.type==="keypress"?zJ($):0},keyCode:function($){return $.type==="keydown"||$.type==="keyup"?$.keyCode:0},which:function($){return $.type==="keypress"?zJ($):$.type==="keydown"||$.type==="keyup"?$.keyCode:0}}),hI=n5(gI),uI=l0({},bG,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),IW=n5(uI),xI=l0({},CZ,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:pX}),mI=n5(xI),dI=l0({},W9,{propertyName:0,elapsedTime:0,pseudoElement:0}),pI=n5(dI),cI=l0({},bG,{deltaX:function($){return"deltaX"in $?$.deltaX:("wheelDeltaX"in $)?-$.wheelDeltaX:0},deltaY:function($){return"deltaY"in $?$.deltaY:("wheelDeltaY"in $)?-$.wheelDeltaY:("wheelDelta"in $)?-$.wheelDelta:0},deltaZ:0,deltaMode:0}),lI=n5(cI),rI=l0({},W9,{newState:0,oldState:0}),nI=n5(rI),sI=[9,13,27,32],OW=229,UN=g4&&"CompositionEvent"in window,OZ=null;g4&&"documentMode"in document&&(OZ=document.documentMode);var oI=g4&&"TextEvent"in window&&!OZ,VW=g4&&(!UN||OZ&&8<OZ&&11>=OZ),AW=32,EW=String.fromCharCode(AW),SW=!1,y7=!1,aI={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},VZ=null,AZ=null,jW=!1;g4&&(jW=RT("input")&&(!document.documentMode||9<document.documentMode));var d5=typeof Object.is==="function"?Object.is:CT,iI=g4&&"documentMode"in document&&11>=document.documentMode,g7=null,KN=null,EZ=null,BN=!1,h7={animationend:$9("Animation","AnimationEnd"),animationiteration:$9("Animation","AnimationIteration"),animationstart:$9("Animation","AnimationStart"),transitionrun:$9("Transition","TransitionRun"),transitionstart:$9("Transition","TransitionStart"),transitioncancel:$9("Transition","TransitionCancel"),transitionend:$9("Transition","TransitionEnd")},HN={},DW={};g4&&(DW=document.createElement("div").style,("AnimationEvent"in window)||(delete h7.animationend.animation,delete h7.animationiteration.animation,delete h7.animationstart.animation),("TransitionEvent"in window)||delete h7.transitionend.transition);var vW=Z9("animationend"),bW=Z9("animationiteration"),kW=Z9("animationstart"),tI=Z9("transitionrun"),eI=Z9("transitionstart"),$O=Z9("transitioncancel"),fW=Z9("transitionend"),yW=new Map,FN="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(" ");FN.push("scrollEnd");var gW=0;if(typeof performance==="object"&&typeof performance.now==="function")var ZO=performance,hW=function(){return ZO.now()};else{var QO=Date;hW=function(){return QO.now()}}var MN=typeof reportError==="function"?reportError:function($){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var Z=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof $==="object"&&$!==null&&typeof $.message==="string"?String($.message):String($),error:$});if(!window.dispatchEvent(Z))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",$);return}console.error($)},JO="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.",kG=0,WN=1,wN=2,RN=3,fG="– ",yG="+ ",uW=" ",A1=typeof console<"u"&&typeof console.timeStamp==="function"&&typeof performance<"u"&&typeof performance.measure==="function",k6="Components ⚛",r0="Scheduler ⚛",o0="Blocking",X2=!1,N8={color:"primary",properties:null,tooltipText:"",track:k6},q2={start:-0,end:-0,detail:{devtools:N8}},GO=["Changed Props",""],xW="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",XO=["Changed Props",xW],SZ=1,U8=2,f6=[],u7=0,zN=0,Y2={};Object.freeze(Y2);var y6=null,x7=null,V0=0,qO=1,g0=2,v5=8,q4=16,YO=32,mW=!1;try{var dW=Object.preventExtensions({})}catch($){mW=!0}var _N=new WeakMap,m7=[],d7=0,gG=null,jZ=0,g6=[],h6=0,w9=null,K8=1,B8="",T5=null,E1=null,i0=!1,h4=!1,I6=null,N2=null,u6=!1,LN=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."),PN=H0(null),TN=H0(null),pW={},hG=null,p7=null,c7=!1,NO=typeof AbortController<"u"?AbortController:function(){var $=[],Z=this.signal={aborted:!1,addEventListener:function(G,Y){$.push(Y)}};this.abort=function(){Z.aborted=!0,$.forEach(function(G){return G()})}},UO=G1.unstable_scheduleCallback,KO=G1.unstable_NormalPriority,t1={$$typeof:v4,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},e1=G1.unstable_now,uG=console.createTask?console.createTask:function(){return null},DZ=1,xG=2,M5=-0,U2=-0,H8=-0,F8=null,p5=-1.1,R9=-0,k1=-0,L0=-1.1,T0=-1.1,b1=null,u1=!1,K2=-0,u4=-1.1,vZ=null,B2=0,CN=null,IN=null,z9=-1.1,bZ=null,l7=-1.1,mG=-1.1,x4=-0,M8=-1.1,x6=-1.1,ON=0,kZ=null,cW=null,lW=null,H2=-1.1,_9=null,F2=-1.1,dG=-1.1,rW=-0,nW=-0,pG=0,W8=null,sW=0,fZ=-1.1,cG=!1,lG=!1,yZ=null,VN=0,L9=0,r7=null,oW=x.S;x.S=function($,Z){if(cw=F5(),typeof Z==="object"&&Z!==null&&typeof Z.then==="function"){if(0>M8&&0>x6){M8=e1();var G=HZ(),Y=BZ();if(G!==F2||Y!==_9)F2=-1.1;H2=G,_9=Y}jT($,Z)}oW!==null&&oW($,Z)};var P9=H0(null),Y4={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},gZ=[],hZ=[],uZ=[],xZ=[],mZ=[],dZ=[],T9=new Set;Y4.recordUnsafeLifecycleWarnings=function($,Z){T9.has($.type)||(typeof Z.componentWillMount==="function"&&Z.componentWillMount.__suppressDeprecationWarning!==!0&&gZ.push($),$.mode&v5&&typeof Z.UNSAFE_componentWillMount==="function"&&hZ.push($),typeof Z.componentWillReceiveProps==="function"&&Z.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&uZ.push($),$.mode&v5&&typeof Z.UNSAFE_componentWillReceiveProps==="function"&&xZ.push($),typeof Z.componentWillUpdate==="function"&&Z.componentWillUpdate.__suppressDeprecationWarning!==!0&&mZ.push($),$.mode&v5&&typeof Z.UNSAFE_componentWillUpdate==="function"&&dZ.push($))},Y4.flushPendingUnsafeLifecycleWarnings=function(){var $=new Set;0<gZ.length&&(gZ.forEach(function(z){$.add(d(z)||"Component"),T9.add(z.type)}),gZ=[]);var Z=new Set;0<hZ.length&&(hZ.forEach(function(z){Z.add(d(z)||"Component"),T9.add(z.type)}),hZ=[]);var G=new Set;0<uZ.length&&(uZ.forEach(function(z){G.add(d(z)||"Component"),T9.add(z.type)}),uZ=[]);var Y=new Set;0<xZ.length&&(xZ.forEach(function(z){Y.add(d(z)||"Component"),T9.add(z.type)}),xZ=[]);var U=new Set;0<mZ.length&&(mZ.forEach(function(z){U.add(d(z)||"Component"),T9.add(z.type)}),mZ=[]);var B=new Set;if(0<dZ.length&&(dZ.forEach(function(z){B.add(d(z)||"Component"),T9.add(z.type)}),dZ=[]),0<Z.size){var W=_(Z);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.`,d(_6)||"Unknown")),Y=x8(Z),Y.payload={element:Q},B=B===void 0?null:B,B!==null&&(typeof B!=="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",B),Y.callback=B),Q=m8($,Y,Z),Q!==null&&(z4(Z,"root.render()",null),y1(Q,$,Z),g$(Q,$,Z))}function BW($,Z){if($=$.memoizedState,$!==null&&$.dehydrated!==null){var Q=$.retryLane;$.retryLane=Q!==0&&Q<Z?Q:Z}}function MX($,Z){BW($,Z),($=$.alternate)&&BW($,Z)}function HW($){if($.tag===13||$.tag===31){var Z=E5($,67108864);Z!==null&&y1(Z,$,67108864),MX($,67108864)}}function FW($){if($.tag===13||$.tag===31){var Z=M6($);Z=s2(Z);var Q=E5($,Z);Q!==null&&y1(Q,$,Z),MX($,Z)}}function cT(){return _6}function lT($,Z,Q,Y){var U=x.T;x.T=null;var B=U1.p;try{U1.p=L6,wX($,Z,Q,Y)}finally{U1.p=B,x.T=U}}function rT($,Z,Q,Y){var U=x.T;x.T=null;var B=U1.p;try{U1.p=J4,wX($,Z,Q,Y)}finally{U1.p=B,x.T=U}}function wX($,Z,Q,Y){if(K3){var U=RX(Y);if(U===null)JX($,Z,Y,B3,Q),zW($,Y);else if(sT(U,$,Z,Q,Y))Y.stopPropagation();else if(zW($,Y),Z&4&&-1<uO.indexOf($)){for(;U!==null;){var B=j0(U);if(B!==null)switch(B.tag){case 3:if(B=B.stateNode,B.current.memoizedState.isDehydrated){var z=B4(B.pendingLanes);if(z!==0){var w=B;w.pendingLanes|=2;for(w.entangledLanes|=2;z;){var L=1<<31-y5(z);w.entanglements[1]|=L,z&=~L}V4(B),(Z1&(Y5|O6))===W5&&(sG=B5()+OM,i$(0,!1))}}break;case 31:case 13:w=E5(B,2),w!==null&&y1(w,B,2),W9(),MX(B,2)}if(B=RX(Y),B===null&&JX($,Z,Y,B3,Q),B===U)break;U=B}U!==null&&Y.stopPropagation()}else JX($,Z,Y,null,Q)}}function RX($){return $=Oq($),_X($)}function _X($){if(B3=null,$=N0($),$!==null){var Z=j($);if(Z===null)$=null;else{var Q=Z.tag;if(Q===13){if($=h(Z),$!==null)return $;$=null}else if(Q===31){if($=p(Z),$!==null)return $;$=null}else if(Q===3){if(Z.stateNode.current.memoizedState.isDehydrated)return Z.tag===3?Z.stateNode.containerInfo:null;$=null}else Z!==$&&($=null)}}return B3=$,null}function WW($){switch($){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 L6;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 J4;case"message":switch(JC()){case kX:return L6;case vX:return J4;case T9:case QC:return v4;case bX:return FG;default:return v4}default:return v4}}function zW($,Z){switch($){case"focusin":case"focusout":R2=null;break;case"dragenter":case"dragleave":_2=null;break;case"mouseover":case"mouseout":L2=null;break;case"pointerover":case"pointerout":tZ.delete(Z.pointerId);break;case"gotpointercapture":case"lostpointercapture":eZ.delete(Z.pointerId)}}function GZ($,Z,Q,Y,U,B){if($===null||$.nativeEvent!==B)return $={blockedOn:Z,domEventName:Q,eventSystemFlags:Y,nativeEvent:B,targetContainers:[U]},Z!==null&&(Z=j0(Z),Z!==null&&HW(Z)),$;return $.eventSystemFlags|=Y,Z=$.targetContainers,U!==null&&Z.indexOf(U)===-1&&Z.push(U),$}function sT($,Z,Q,Y,U){switch(Z){case"focusin":return R2=GZ(R2,$,Z,Q,Y,U),!0;case"dragenter":return _2=GZ(_2,$,Z,Q,Y,U),!0;case"mouseover":return L2=GZ(L2,$,Z,Q,Y,U),!0;case"pointerover":var B=U.pointerId;return tZ.set(B,GZ(tZ.get(B)||null,$,Z,Q,Y,U)),!0;case"gotpointercapture":return B=U.pointerId,eZ.set(B,GZ(eZ.get(B)||null,$,Z,Q,Y,U)),!0}return!1}function MW($){var Z=N0($.target);if(Z!==null){var Q=j(Z);if(Q!==null){if(Z=Q.tag,Z===13){if(Z=h(Q),Z!==null){$.blockedOn=Z,r($.priority,function(){FW(Q)});return}}else if(Z===31){if(Z=p(Q),Z!==null){$.blockedOn=Z,r($.priority,function(){FW(Q)});return}}else if(Z===3&&Q.stateNode.current.memoizedState.isDehydrated){$.blockedOn=Q.tag===3?Q.stateNode.containerInfo:null;return}}}$.blockedOn=null}function GG($){if($.blockedOn!==null)return!1;for(var Z=$.targetContainers;0<Z.length;){var Q=RX($.nativeEvent);if(Q===null){Q=$.nativeEvent;var Y=new Q.constructor(Q.type,Q),U=Y;UZ!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),UZ=U,Q.target.dispatchEvent(Y),UZ===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."),UZ=null}else return Z=j0(Q),Z!==null&&HW(Z),$.blockedOn=Q,!1;Z.shift()}return!0}function wW($,Z,Q){GG($)&&Q.delete(Z)}function nT(){nN=!1,R2!==null&&GG(R2)&&(R2=null),_2!==null&&GG(_2)&&(_2=null),L2!==null&&GG(L2)&&(L2=null),tZ.forEach(wW),eZ.forEach(wW)}function qG($,Z){$.blockedOn===Z&&($.blockedOn=null,nN||(nN=!0,G1.unstable_scheduleCallback(G1.unstable_NormalPriority,nT)))}function RW($){H3!==$&&(H3=$,G1.unstable_scheduleCallback(G1.unstable_NormalPriority,function(){H3===$&&(H3=null);for(var Z=0;Z<$.length;Z+=3){var Q=$[Z],Y=$[Z+1],U=$[Z+2];if(typeof Y!=="function")if(_X(Y||Q)===null)continue;else break;var B=j0(Q);B!==null&&($.splice(Z,3),Z-=3,Q={pending:!0,data:U,method:Q.method,action:Y},Object.freeze(Q),_Y(B,Q,Y,U))}}))}function _9($){function Z(L){return qG(L,$)}R2!==null&&qG(R2,$),_2!==null&&qG(_2,$),L2!==null&&qG(L2,$),tZ.forEach(Z),eZ.forEach(Z);for(var Q=0;Q<P2.length;Q++){var Y=P2[Q];Y.blockedOn===$&&(Y.blockedOn=null)}for(;0<P2.length&&(Q=P2[0],Q.blockedOn===null);)MW(Q),Q.blockedOn===null&&P2.shift();if(Q=($.ownerDocument||$).$$reactFormReplay,Q!=null)for(Y=0;Y<Q.length;Y+=3){var U=Q[Y],B=Q[Y+1],z=U[g5]||null;if(typeof B==="function")z||RW(Q);else if(z){var w=null;if(B&&B.hasAttribute("formAction")){if(U=B,z=B[g5]||null)w=z.formAction;else if(_X(U)!==null)continue}else w=z.action;typeof w==="function"?Q[Y+1]=w:(Q.splice(Y,3),Y-=3),RW(Q)}}}function _W(){function $(B){B.canIntercept&&B.info==="react-transition"&&B.intercept({handler:function(){return new Promise(function(z){return U=z})},focusReset:"manual",scroll:"manual"})}function Z(){U!==null&&(U(),U=null),Y||setTimeout(Q,20)}function Q(){if(!Y&&!navigation.transition){var B=navigation.currentEntry;B&&B.url!=null&&navigation.navigate(B.url,{state:B.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation==="object"){var Y=!1,U=null;return navigation.addEventListener("navigate",$),navigation.addEventListener("navigatesuccess",Z),navigation.addEventListener("navigateerror",Z),setTimeout(Q,100),function(){Y=!0,navigation.removeEventListener("navigate",$),navigation.removeEventListener("navigatesuccess",Z),navigation.removeEventListener("navigateerror",Z),U!==null&&(U(),U=null)}}}function LX($){this._internalRoot=$}function YG($){this._internalRoot=$}function LW($){$[i8]&&($._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 l0=Object.assign,oT=Symbol.for("react.element"),E4=Symbol.for("react.transitional.element"),L9=Symbol.for("react.portal"),P9=Symbol.for("react.fragment"),XG=Symbol.for("react.strict_mode"),PX=Symbol.for("react.profiler"),TX=Symbol.for("react.consumer"),S4=Symbol.for("react.context"),qZ=Symbol.for("react.forward_ref"),CX=Symbol.for("react.suspense"),OX=Symbol.for("react.suspense_list"),NG=Symbol.for("react.memo"),R6=Symbol.for("react.lazy"),IX=Symbol.for("react.activity"),aT=Symbol.for("react.memo_cache_sentinel"),PW=Symbol.iterator,iT=Symbol.for("react.client.reference"),G5=Array.isArray,x=W$.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,U1=GK.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,tT=Object.freeze({pending:!1,data:null,method:null,action:null}),VX=[],AX=[],Q8=-1,n8=H0(null),YZ=H0(null),o8=H0(null),UG=H0(null),XZ=0,TW,CW,OW,IW,VW,AW,EW;k.__reactDisabledLog=!0;var EX,SW,SX=!1,DX=new(typeof WeakMap==="function"?WeakMap:Map),_6=null,D4=!1,Z4=Object.prototype.hasOwnProperty,jX=G1.unstable_scheduleCallback,eT=G1.unstable_cancelCallback,$C=G1.unstable_shouldYield,ZC=G1.unstable_requestPaint,B5=G1.unstable_now,JC=G1.unstable_getCurrentPriorityLevel,kX=G1.unstable_ImmediatePriority,vX=G1.unstable_UserBlockingPriority,T9=G1.unstable_NormalPriority,QC=G1.unstable_LowPriority,bX=G1.unstable_IdlePriority,GC=G1.log,qC=G1.unstable_setDisableYieldValue,C9=null,S5=null,j4=!1,k4=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",y5=Math.clz32?Math.clz32:iJ,YC=Math.log,XC=Math.LN2,KG=256,BG=262144,HG=4194304,L6=2,J4=8,v4=32,FG=268435456,a8=Math.random().toString(36).slice(2),_5="__reactFiber$"+a8,g5="__reactProps$"+a8,i8="__reactContainer$"+a8,fX="__reactEvents$"+a8,NC="__reactListeners$"+a8,UC="__reactHandles$"+a8,DW="__reactResources$"+a8,NZ="__reactMarker$"+a8,jW=new Set,U7={},yX={},KC={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},BC=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]*$"),kW={},vW={},HC=/[\n"\\]/g,bW=!1,fW=!1,yW=!1,gW=!1,hW=!1,uW=!1,xW=["value","defaultValue"],mW=!1,dW=/["'&<>\n\t]|^\s|\s$/,FC="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(" "),pW="applet caption html table td th marquee object template foreignObject desc title".split(" "),WC=pW.concat(["button"]),zC="dd dt li option optgroup p rp rt".split(" "),cW={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},WG={},gX={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"]},lW=/([A-Z])/g,rW=/^ms-/,MC=/^(?:webkit|moz|o)[A-Z]/,wC=/^-ms-/,RC=/-(.)/g,sW=/;\s*$/,O9={},hX={},nW=!1,oW=!1,aW=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(" ")),zG="http://www.w3.org/1998/Math/MathML",I9="http://www.w3.org/2000/svg",_C=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"]]),MG={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"},iW={"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},V9={},LC=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]*$"),PC=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]*$"),tW=!1,h5={},eW=/^on./,TC=/^on[^A-Z]/,CC=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]*$"),OC=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]*$"),IC=/^[\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,UZ=null,A9=null,E9=null,uX=!1,b4=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),xX=!1;if(b4)try{var KZ={};Object.defineProperty(KZ,"passive",{get:function(){xX=!0}}),window.addEventListener("test",KZ,KZ),window.removeEventListener("test",KZ,KZ)}catch($){xX=!1}var t8=null,mX=null,wG=null,K7={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function($){return $.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},RG=c5(K7),BZ=l0({},K7,{view:0,detail:0}),VC=c5(BZ),dX,pX,HZ,_G=l0({},BZ,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Iq,button:0,buttons:0,relatedTarget:function($){return $.relatedTarget===void 0?$.fromElement===$.srcElement?$.toElement:$.fromElement:$.relatedTarget},movementX:function($){if("movementX"in $)return $.movementX;return $!==HZ&&(HZ&&$.type==="mousemove"?(dX=$.screenX-HZ.screenX,pX=$.screenY-HZ.screenY):pX=dX=0,HZ=$),dX},movementY:function($){return"movementY"in $?$.movementY:pX}}),$z=c5(_G),AC=l0({},_G,{dataTransfer:0}),EC=c5(AC),SC=l0({},BZ,{relatedTarget:0}),cX=c5(SC),DC=l0({},K7,{animationName:0,elapsedTime:0,pseudoElement:0}),jC=c5(DC),kC=l0({},K7,{clipboardData:function($){return"clipboardData"in $?$.clipboardData:window.clipboardData}}),vC=c5(kC),bC=l0({},K7,{data:0}),Zz=c5(bC),fC=Zz,yC={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},gC={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"},hC={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},uC=l0({},BZ,{key:function($){if($.key){var Z=yC[$.key]||$.key;if(Z!=="Unidentified")return Z}return $.type==="keypress"?($=GQ($),$===13?"Enter":String.fromCharCode($)):$.type==="keydown"||$.type==="keyup"?gC[$.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Iq,charCode:function($){return $.type==="keypress"?GQ($):0},keyCode:function($){return $.type==="keydown"||$.type==="keyup"?$.keyCode:0},which:function($){return $.type==="keypress"?GQ($):$.type==="keydown"||$.type==="keyup"?$.keyCode:0}}),xC=c5(uC),mC=l0({},_G,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Jz=c5(mC),dC=l0({},BZ,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Iq}),pC=c5(dC),cC=l0({},K7,{propertyName:0,elapsedTime:0,pseudoElement:0}),lC=c5(cC),rC=l0({},_G,{deltaX:function($){return"deltaX"in $?$.deltaX:("wheelDeltaX"in $)?-$.wheelDeltaX:0},deltaY:function($){return"deltaY"in $?$.deltaY:("wheelDeltaY"in $)?-$.wheelDeltaY:("wheelDelta"in $)?-$.wheelDelta:0},deltaZ:0,deltaMode:0}),sC=c5(rC),nC=l0({},K7,{newState:0,oldState:0}),oC=c5(nC),aC=[9,13,27,32],Qz=229,lX=b4&&"CompositionEvent"in window,FZ=null;b4&&"documentMode"in document&&(FZ=document.documentMode);var iC=b4&&"TextEvent"in window&&!FZ,Gz=b4&&(!lX||FZ&&8<FZ&&11>=FZ),qz=32,Yz=String.fromCharCode(qz),Xz=!1,S9=!1,tC={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},WZ=null,zZ=null,Nz=!1;b4&&(Nz=_P("input")&&(!document.documentMode||9<document.documentMode));var u5=typeof Object.is==="function"?Object.is:IP,eC=b4&&"documentMode"in document&&11>=document.documentMode,D9=null,rX=null,MZ=null,sX=!1,j9={animationend:o2("Animation","AnimationEnd"),animationiteration:o2("Animation","AnimationIteration"),animationstart:o2("Animation","AnimationStart"),transitionrun:o2("Transition","TransitionRun"),transitionstart:o2("Transition","TransitionStart"),transitioncancel:o2("Transition","TransitionCancel"),transitionend:o2("Transition","TransitionEnd")},nX={},Uz={};b4&&(Uz=document.createElement("div").style,("AnimationEvent"in window)||(delete j9.animationend.animation,delete j9.animationiteration.animation,delete j9.animationstart.animation),("TransitionEvent"in window)||delete j9.transitionend.transition);var Kz=a2("animationend"),Bz=a2("animationiteration"),Hz=a2("animationstart"),$O=a2("transitionrun"),ZO=a2("transitionstart"),JO=a2("transitioncancel"),Fz=a2("transitionend"),Wz=new Map,oX="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(" ");oX.push("scrollEnd");var zz=0;if(typeof performance==="object"&&typeof performance.now==="function")var QO=performance,Mz=function(){return QO.now()};else{var GO=Date;Mz=function(){return GO.now()}}var aX=typeof reportError==="function"?reportError:function($){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var Z=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof $==="object"&&$!==null&&typeof $.message==="string"?String($.message):String($),error:$});if(!window.dispatchEvent(Z))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",$);return}console.error($)},qO="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.",LG=0,iX=1,tX=2,eX=3,PG="– ",TG="+ ",wz=" ",I1=typeof console<"u"&&typeof console.timeStamp==="function"&&typeof performance<"u"&&typeof performance.measure==="function",j6="Components ⚛",r0="Scheduler ⚛",o0="Blocking",e8=!1,G8={color:"primary",properties:null,tooltipText:"",track:j6},$2={start:-0,end:-0,detail:{devtools:G8}},YO=["Changed Props",""],Rz="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",XO=["Changed Props",Rz],wZ=1,q8=2,k6=[],k9=0,$N=0,Z2={};Object.freeze(Z2);var v6=null,v9=null,V0=0,NO=1,g0=2,D5=8,Q4=16,UO=32,_z=!1;try{var Lz=Object.preventExtensions({})}catch($){_z=!0}var ZN=new WeakMap,b9=[],f9=0,CG=null,RZ=0,b6=[],f6=0,B7=null,Y8=1,X8="",L5=null,V1=null,i0=!1,f4=!1,P6=null,J2=null,y6=!1,JN=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."),QN=H0(null),GN=H0(null),Pz={},OG=null,y9=null,g9=!1,KO=typeof AbortController<"u"?AbortController:function(){var $=[],Z=this.signal={aborted:!1,addEventListener:function(Q,Y){$.push(Y)}};this.abort=function(){Z.aborted=!0,$.forEach(function(Q){return Q()})}},BO=G1.unstable_scheduleCallback,HO=G1.unstable_NormalPriority,a1={$$typeof:S4,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},i1=G1.unstable_now,IG=console.createTask?console.createTask:function(){return null},_Z=1,VG=2,H5=-0,Q2=-0,N8=-0,U8=null,x5=-1.1,H7=-0,k1=-0,L0=-1.1,T0=-1.1,j1=null,g1=!1,G2=-0,y4=-1.1,LZ=null,q2=0,qN=null,YN=null,F7=-1.1,PZ=null,h9=-1.1,AG=-1.1,g4=-0,K8=-1.1,g6=-1.1,XN=0,TZ=null,Tz=null,Cz=null,Y2=-1.1,W7=null,X2=-1.1,EG=-1.1,Oz=-0,Iz=-0,SG=0,B8=null,Vz=0,CZ=-1.1,DG=!1,jG=!1,OZ=null,NN=0,z7=0,u9=null,Az=x.S;x.S=function($,Z){if(TM=B5(),typeof Z==="object"&&Z!==null&&typeof Z.then==="function"){if(0>K8&&0>g6){K8=i1();var Q=$Z(),Y=e$();if(Q!==X2||Y!==W7)X2=-1.1;Y2=Q,W7=Y}kP($,Z)}Az!==null&&Az($,Z)};var M7=H0(null),G4={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},IZ=[],VZ=[],AZ=[],EZ=[],SZ=[],DZ=[],w7=new Set;G4.recordUnsafeLifecycleWarnings=function($,Z){w7.has($.type)||(typeof Z.componentWillMount==="function"&&Z.componentWillMount.__suppressDeprecationWarning!==!0&&IZ.push($),$.mode&D5&&typeof Z.UNSAFE_componentWillMount==="function"&&VZ.push($),typeof Z.componentWillReceiveProps==="function"&&Z.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&AZ.push($),$.mode&D5&&typeof Z.UNSAFE_componentWillReceiveProps==="function"&&EZ.push($),typeof Z.componentWillUpdate==="function"&&Z.componentWillUpdate.__suppressDeprecationWarning!==!0&&SZ.push($),$.mode&D5&&typeof Z.UNSAFE_componentWillUpdate==="function"&&DZ.push($))},G4.flushPendingUnsafeLifecycleWarnings=function(){var $=new Set;0<IZ.length&&(IZ.forEach(function(w){$.add(d(w)||"Component"),w7.add(w.type)}),IZ=[]);var Z=new Set;0<VZ.length&&(VZ.forEach(function(w){Z.add(d(w)||"Component"),w7.add(w.type)}),VZ=[]);var Q=new Set;0<AZ.length&&(AZ.forEach(function(w){Q.add(d(w)||"Component"),w7.add(w.type)}),AZ=[]);var Y=new Set;0<EZ.length&&(EZ.forEach(function(w){Y.add(d(w)||"Component"),w7.add(w.type)}),EZ=[]);var U=new Set;0<SZ.length&&(SZ.forEach(function(w){U.add(d(w)||"Component"),w7.add(w.type)}),SZ=[]);var B=new Set;if(0<DZ.length&&(DZ.forEach(function(w){B.add(d(w)||"Component"),w7.add(w.type)}),DZ=[]),0<Z.size){var z=_(Z);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`,z)}0<Y.size&&(z=_(Y),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`,z)),0<B.size&&(z=_(B),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`,z)),0<$.size&&(z=_($),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`,z)),0<Q.size&&(z=_(Q),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`,z)),0<U.size&&(z=_(U),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`,z))};var kG=new Map,Ez=new Set;G4.recordLegacyContextWarning=function($,Z){var Q=null;for(var Y=$;Y!==null;)Y.mode&D5&&(Q=Y),Y=Y.return;Q===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."):!Ez.has($.type)&&(Y=kG.get(Q),$.type.contextTypes!=null||$.type.childContextTypes!=null||Z!==null&&typeof Z.getChildContext==="function")&&(Y===void 0&&(Y=[],kG.set(Q,Y)),Y.push($))},G4.flushLegacyContextWarning=function(){kG.forEach(function($){if($.length!==0){var Z=$[0],Q=new Set;$.forEach(function(U){Q.add(d(U)||"Component"),Ez.add(U.type)});var Y=_(Q);q0(Z,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`,Y)})}})},
|
|
219
|
+
Learn more about this warning here: https://react.dev/link/legacy-context`,Y)})}})},G4.discardPendingWarnings=function(){IZ=[],VZ=[],AZ=[],EZ=[],SZ=[],DZ=[],kG=new Map};var Sz={react_stack_bottom_frame:function($,Z,Q){var Y=D4;D4=!0;try{return $(Z,Q)}finally{D4=Y}}},UN=Sz.react_stack_bottom_frame.bind(Sz),Dz={react_stack_bottom_frame:function($){var Z=D4;D4=!0;try{return $.render()}finally{D4=Z}}},jz=Dz.react_stack_bottom_frame.bind(Dz),kz={react_stack_bottom_frame:function($,Z){try{Z.componentDidMount()}catch(Q){N1($,$.return,Q)}}},KN=kz.react_stack_bottom_frame.bind(kz),vz={react_stack_bottom_frame:function($,Z,Q,Y,U){try{Z.componentDidUpdate(Q,Y,U)}catch(B){N1($,$.return,B)}}},bz=vz.react_stack_bottom_frame.bind(vz),fz={react_stack_bottom_frame:function($,Z){var Q=Z.stack;$.componentDidCatch(Z.value,{componentStack:Q!==null?Q:""})}},FO=fz.react_stack_bottom_frame.bind(fz),yz={react_stack_bottom_frame:function($,Z,Q){try{Q.componentWillUnmount()}catch(Y){N1($,Z,Y)}}},gz=yz.react_stack_bottom_frame.bind(yz),hz={react_stack_bottom_frame:function($){var Z=$.create;return $=$.inst,Z=Z(),$.destroy=Z}},WO=hz.react_stack_bottom_frame.bind(hz),uz={react_stack_bottom_frame:function($,Z,Q){try{Q()}catch(Y){N1($,Z,Y)}}},zO=uz.react_stack_bottom_frame.bind(uz),xz={react_stack_bottom_frame:function($){var Z=$._init;return Z($._payload)}},MO=xz.react_stack_bottom_frame.bind(xz),x9=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`."),BN=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."),vG=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."),bG={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.')}},R7=null,jZ=!1,m9=null,kZ=0,h0=null,HN,mz=HN=!1,dz={},pz={},cz={};R=function($,Z,Q){if(Q!==null&&typeof Q==="object"&&Q._store&&(!Q._store.validated&&Q.key==null||Q._store.validated===2)){if(typeof Q._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.");Q._store.validated=1;var Y=d($),U=Y||"null";if(!dz[U]){dz[U]=!0,Q=Q._owner,$=$._debugOwner;var B="";$&&typeof $.tag==="number"&&(U=d($))&&(B=`
|
|
220
220
|
|
|
221
221
|
Check the render method of \``+U+"`."),B||Y&&(B=`
|
|
222
222
|
|
|
223
|
-
Check the top-level render call using <`+Y+">.");var W="";G!=null&&$!==G&&(Y=null,typeof G.tag==="number"?Y=d(G):typeof G.name==="string"&&(Y=G.name),Y&&(W=" It was passed a child from "+Y+".")),X0(Z,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.',B,W)})}}};var I9=GH(!0),Fw=GH(!1),Mw=0,Ww=1,ww=2,DN=3,M2=!1,Rw=!1,vN=null,bN=!1,o7=H0(null),oG=H0(0),O6=H0(null),m6=null,a7=1,lZ=2,r1=H0(0),aG=0,d6=1,c5=2,V6=4,l5=8,i7,zw=new Set,_w=new Set,kN=new Set,Lw=new Set,w8=0,A0=null,L1=null,$5=null,iG=!1,t7=!1,O9=!1,tG=0,rZ=0,R8=null,WO=0,wO=25,u=null,p6=null,z8=-1,nZ=!1,sZ={readContext:v1,use:a8,useCallback:c1,useContext:c1,useEffect:c1,useImperativeHandle:c1,useLayoutEffect:c1,useInsertionEffect:c1,useMemo:c1,useReducer:c1,useRef:c1,useState:c1,useDebugValue:c1,useDeferredValue:c1,useTransition:c1,useSyncExternalStore:c1,useId:c1,useHostTransitionStatus:c1,useFormState:c1,useActionState:c1,useOptimistic:c1,useMemoCache:c1,useCacheRefresh:c1};sZ.useEffectEvent=c1;var fN=null,Pw=null,yN=null,Tw=null,m4=null,N4=null,eG=null;fN={readContext:function($){return v1($)},use:a8,useCallback:function($,Z){return u="useCallback",c0(),M7(Z),bq($,Z)},useContext:function($){return u="useContext",c0(),v1($)},useEffect:function($,Z){return u="useEffect",c0(),M7(Z),rJ($,Z)},useImperativeHandle:function($,Z,G){return u="useImperativeHandle",c0(),M7(G),vq($,Z,G)},useInsertionEffect:function($,Z){u="useInsertionEffect",c0(),M7(Z),U9(4,c5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",c0(),M7(Z),Dq($,Z)},useMemo:function($,Z){u="useMemo",c0(),M7(Z);var G=x.H;x.H=m4;try{return kq($,Z)}finally{x.H=G}},useReducer:function($,Z,G){u="useReducer",c0();var Y=x.H;x.H=m4;try{return Tq($,Z,G)}finally{x.H=Y}},useRef:function($){return u="useRef",c0(),Sq($)},useState:function($){u="useState",c0();var Z=x.H;x.H=m4;try{return Vq($)}finally{x.H=Z}},useDebugValue:function(){u="useDebugValue",c0()},useDeferredValue:function($,Z){return u="useDeferredValue",c0(),fq($,Z)},useTransition:function(){return u="useTransition",c0(),hq()},useSyncExternalStore:function($,Z,G){return u="useSyncExternalStore",c0(),Iq($,Z,G)},useId:function(){return u="useId",c0(),uq()},useFormState:function($,Z){return u="useFormState",c0(),mJ(),w7($,Z)},useActionState:function($,Z){return u="useActionState",c0(),w7($,Z)},useOptimistic:function($){return u="useOptimistic",c0(),Aq($)},useHostTransitionStatus:K9,useMemoCache:N9,useCacheRefresh:function(){return u="useCacheRefresh",c0(),xq()},useEffectEvent:function($){return u="useEffectEvent",c0(),jq($)}},Pw={readContext:function($){return v1($)},use:a8,useCallback:function($,Z){return u="useCallback",c(),bq($,Z)},useContext:function($){return u="useContext",c(),v1($)},useEffect:function($,Z){return u="useEffect",c(),rJ($,Z)},useImperativeHandle:function($,Z,G){return u="useImperativeHandle",c(),vq($,Z,G)},useInsertionEffect:function($,Z){u="useInsertionEffect",c(),U9(4,c5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",c(),Dq($,Z)},useMemo:function($,Z){u="useMemo",c();var G=x.H;x.H=m4;try{return kq($,Z)}finally{x.H=G}},useReducer:function($,Z,G){u="useReducer",c();var Y=x.H;x.H=m4;try{return Tq($,Z,G)}finally{x.H=Y}},useRef:function($){return u="useRef",c(),Sq($)},useState:function($){u="useState",c();var Z=x.H;x.H=m4;try{return Vq($)}finally{x.H=Z}},useDebugValue:function(){u="useDebugValue",c()},useDeferredValue:function($,Z){return u="useDeferredValue",c(),fq($,Z)},useTransition:function(){return u="useTransition",c(),hq()},useSyncExternalStore:function($,Z,G){return u="useSyncExternalStore",c(),Iq($,Z,G)},useId:function(){return u="useId",c(),uq()},useActionState:function($,Z){return u="useActionState",c(),w7($,Z)},useFormState:function($,Z){return u="useFormState",c(),mJ(),w7($,Z)},useOptimistic:function($){return u="useOptimistic",c(),Aq($)},useHostTransitionStatus:K9,useMemoCache:N9,useCacheRefresh:function(){return u="useCacheRefresh",c(),xq()},useEffectEvent:function($){return u="useEffectEvent",c(),jq($)}},yN={readContext:function($){return v1($)},use:a8,useCallback:function($,Z){return u="useCallback",c(),oJ($,Z)},useContext:function($){return u="useContext",c(),v1($)},useEffect:function($,Z){u="useEffect",c(),s5(2048,l5,$,Z)},useImperativeHandle:function($,Z,G){return u="useImperativeHandle",c(),sJ($,Z,G)},useInsertionEffect:function($,Z){return u="useInsertionEffect",c(),s5(4,c5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",c(),s5(4,V6,$,Z)},useMemo:function($,Z){u="useMemo",c();var G=x.H;x.H=N4;try{return aJ($,Z)}finally{x.H=G}},useReducer:function($,Z,G){u="useReducer",c();var Y=x.H;x.H=N4;try{return W7($,Z,G)}finally{x.H=Y}},useRef:function(){return u="useRef",c(),F1().memoizedState},useState:function(){u="useState",c();var $=x.H;x.H=N4;try{return W7(Q4)}finally{x.H=$}},useDebugValue:function(){u="useDebugValue",c()},useDeferredValue:function($,Z){return u="useDeferredValue",c(),VH($,Z)},useTransition:function(){return u="useTransition",c(),vH()},useSyncExternalStore:function($,Z,G){return u="useSyncExternalStore",c(),pJ($,Z,G)},useId:function(){return u="useId",c(),F1().memoizedState},useFormState:function($){return u="useFormState",c(),mJ(),cJ($)},useActionState:function($){return u="useActionState",c(),cJ($)},useOptimistic:function($,Z){return u="useOptimistic",c(),wH($,Z)},useHostTransitionStatus:K9,useMemoCache:N9,useCacheRefresh:function(){return u="useCacheRefresh",c(),F1().memoizedState},useEffectEvent:function($){return u="useEffectEvent",c(),nJ($)}},Tw={readContext:function($){return v1($)},use:a8,useCallback:function($,Z){return u="useCallback",c(),oJ($,Z)},useContext:function($){return u="useContext",c(),v1($)},useEffect:function($,Z){u="useEffect",c(),s5(2048,l5,$,Z)},useImperativeHandle:function($,Z,G){return u="useImperativeHandle",c(),sJ($,Z,G)},useInsertionEffect:function($,Z){return u="useInsertionEffect",c(),s5(4,c5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",c(),s5(4,V6,$,Z)},useMemo:function($,Z){u="useMemo",c();var G=x.H;x.H=eG;try{return aJ($,Z)}finally{x.H=G}},useReducer:function($,Z,G){u="useReducer",c();var Y=x.H;x.H=eG;try{return e$($,Z,G)}finally{x.H=Y}},useRef:function(){return u="useRef",c(),F1().memoizedState},useState:function(){u="useState",c();var $=x.H;x.H=eG;try{return e$(Q4)}finally{x.H=$}},useDebugValue:function(){u="useDebugValue",c()},useDeferredValue:function($,Z){return u="useDeferredValue",c(),AH($,Z)},useTransition:function(){return u="useTransition",c(),bH()},useSyncExternalStore:function($,Z,G){return u="useSyncExternalStore",c(),pJ($,Z,G)},useId:function(){return u="useId",c(),F1().memoizedState},useFormState:function($){return u="useFormState",c(),mJ(),lJ($)},useActionState:function($){return u="useActionState",c(),lJ($)},useOptimistic:function($,Z){return u="useOptimistic",c(),zH($,Z)},useHostTransitionStatus:K9,useMemoCache:N9,useCacheRefresh:function(){return u="useCacheRefresh",c(),F1().memoizedState},useEffectEvent:function($){return u="useEffectEvent",c(),nJ($)}},m4={readContext:function($){return M(),v1($)},use:function($){return F(),a8($)},useCallback:function($,Z){return u="useCallback",F(),c0(),bq($,Z)},useContext:function($){return u="useContext",F(),c0(),v1($)},useEffect:function($,Z){return u="useEffect",F(),c0(),rJ($,Z)},useImperativeHandle:function($,Z,G){return u="useImperativeHandle",F(),c0(),vq($,Z,G)},useInsertionEffect:function($,Z){u="useInsertionEffect",F(),c0(),U9(4,c5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",F(),c0(),Dq($,Z)},useMemo:function($,Z){u="useMemo",F(),c0();var G=x.H;x.H=m4;try{return kq($,Z)}finally{x.H=G}},useReducer:function($,Z,G){u="useReducer",F(),c0();var Y=x.H;x.H=m4;try{return Tq($,Z,G)}finally{x.H=Y}},useRef:function($){return u="useRef",F(),c0(),Sq($)},useState:function($){u="useState",F(),c0();var Z=x.H;x.H=m4;try{return Vq($)}finally{x.H=Z}},useDebugValue:function(){u="useDebugValue",F(),c0()},useDeferredValue:function($,Z){return u="useDeferredValue",F(),c0(),fq($,Z)},useTransition:function(){return u="useTransition",F(),c0(),hq()},useSyncExternalStore:function($,Z,G){return u="useSyncExternalStore",F(),c0(),Iq($,Z,G)},useId:function(){return u="useId",F(),c0(),uq()},useFormState:function($,Z){return u="useFormState",F(),c0(),w7($,Z)},useActionState:function($,Z){return u="useActionState",F(),c0(),w7($,Z)},useOptimistic:function($){return u="useOptimistic",F(),c0(),Aq($)},useMemoCache:function($){return F(),N9($)},useHostTransitionStatus:K9,useCacheRefresh:function(){return u="useCacheRefresh",c0(),xq()},useEffectEvent:function($){return u="useEffectEvent",F(),c0(),jq($)}},N4={readContext:function($){return M(),v1($)},use:function($){return F(),a8($)},useCallback:function($,Z){return u="useCallback",F(),c(),oJ($,Z)},useContext:function($){return u="useContext",F(),c(),v1($)},useEffect:function($,Z){u="useEffect",F(),c(),s5(2048,l5,$,Z)},useImperativeHandle:function($,Z,G){return u="useImperativeHandle",F(),c(),sJ($,Z,G)},useInsertionEffect:function($,Z){return u="useInsertionEffect",F(),c(),s5(4,c5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",F(),c(),s5(4,V6,$,Z)},useMemo:function($,Z){u="useMemo",F(),c();var G=x.H;x.H=N4;try{return aJ($,Z)}finally{x.H=G}},useReducer:function($,Z,G){u="useReducer",F(),c();var Y=x.H;x.H=N4;try{return W7($,Z,G)}finally{x.H=Y}},useRef:function(){return u="useRef",F(),c(),F1().memoizedState},useState:function(){u="useState",F(),c();var $=x.H;x.H=N4;try{return W7(Q4)}finally{x.H=$}},useDebugValue:function(){u="useDebugValue",F(),c()},useDeferredValue:function($,Z){return u="useDeferredValue",F(),c(),VH($,Z)},useTransition:function(){return u="useTransition",F(),c(),vH()},useSyncExternalStore:function($,Z,G){return u="useSyncExternalStore",F(),c(),pJ($,Z,G)},useId:function(){return u="useId",F(),c(),F1().memoizedState},useFormState:function($){return u="useFormState",F(),c(),cJ($)},useActionState:function($){return u="useActionState",F(),c(),cJ($)},useOptimistic:function($,Z){return u="useOptimistic",F(),c(),wH($,Z)},useMemoCache:function($){return F(),N9($)},useHostTransitionStatus:K9,useCacheRefresh:function(){return u="useCacheRefresh",c(),F1().memoizedState},useEffectEvent:function($){return u="useEffectEvent",F(),c(),nJ($)}},eG={readContext:function($){return M(),v1($)},use:function($){return F(),a8($)},useCallback:function($,Z){return u="useCallback",F(),c(),oJ($,Z)},useContext:function($){return u="useContext",F(),c(),v1($)},useEffect:function($,Z){u="useEffect",F(),c(),s5(2048,l5,$,Z)},useImperativeHandle:function($,Z,G){return u="useImperativeHandle",F(),c(),sJ($,Z,G)},useInsertionEffect:function($,Z){return u="useInsertionEffect",F(),c(),s5(4,c5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",F(),c(),s5(4,V6,$,Z)},useMemo:function($,Z){u="useMemo",F(),c();var G=x.H;x.H=N4;try{return aJ($,Z)}finally{x.H=G}},useReducer:function($,Z,G){u="useReducer",F(),c();var Y=x.H;x.H=N4;try{return e$($,Z,G)}finally{x.H=Y}},useRef:function(){return u="useRef",F(),c(),F1().memoizedState},useState:function(){u="useState",F(),c();var $=x.H;x.H=N4;try{return e$(Q4)}finally{x.H=$}},useDebugValue:function(){u="useDebugValue",F(),c()},useDeferredValue:function($,Z){return u="useDeferredValue",F(),c(),AH($,Z)},useTransition:function(){return u="useTransition",F(),c(),bH()},useSyncExternalStore:function($,Z,G){return u="useSyncExternalStore",F(),c(),pJ($,Z,G)},useId:function(){return u="useId",F(),c(),F1().memoizedState},useFormState:function($){return u="useFormState",F(),c(),lJ($)},useActionState:function($){return u="useActionState",F(),c(),lJ($)},useOptimistic:function($,Z){return u="useOptimistic",F(),c(),zH($,Z)},useMemoCache:function($){return F(),N9($)},useHostTransitionStatus:K9,useCacheRefresh:function(){return u="useCacheRefresh",c(),F1().memoizedState},useEffectEvent:function($){return u="useEffectEvent",F(),c(),nJ($)}};var Cw={},Iw=new Set,Ow=new Set,Vw=new Set,Aw=new Set,Ew=new Set,Sw=new Set,jw=new Set,Dw=new Set,vw=new Set,bw=new Set;Object.freeze(Cw);var gN={enqueueSetState:function($,Z,G){$=$._reactInternals;var Y=_6($),U=r8(Y);U.payload=Z,G!==void 0&&G!==null&&(dq(G),U.callback=G),Z=n8($,U,Y),Z!==null&&(z4(Y,"this.setState()",$),h1(Z,$,Y),o$(Z,$,Y))},enqueueReplaceState:function($,Z,G){$=$._reactInternals;var Y=_6($),U=r8(Y);U.tag=Ww,U.payload=Z,G!==void 0&&G!==null&&(dq(G),U.callback=G),Z=n8($,U,Y),Z!==null&&(z4(Y,"this.replaceState()",$),h1(Z,$,Y),o$(Z,$,Y))},enqueueForceUpdate:function($,Z){$=$._reactInternals;var G=_6($),Y=r8(G);Y.tag=ww,Z!==void 0&&Z!==null&&(dq(Z),Y.callback=Z),Z=n8($,Y,G),Z!==null&&(z4(G,"this.forceUpdate()",$),h1(Z,$,G),o$(Z,$,G))}},e7=null,hN=null,uN=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."),Z5=!1,kw={},fw={},yw={},gw={},$$=!1,hw={},$3={},xN={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},uw=!1,xw=null;xw=new Set;var _8=!1,Q5=!1,mN=!1,mw=typeof WeakSet==="function"?WeakSet:Set,W5=null,Z$=null,Q$=null,J5=null,i5=!1,U4=null,Y5=!1,oZ=8192,RO={getCacheForType:function($){var Z=v1(t1),G=Z.data.get($);return G===void 0&&(G=$(),Z.data.set($,G)),G},cacheSignal:function(){return v1(t1).controller.signal},getOwner:function(){return T6}};if(typeof Symbol==="function"&&Symbol.for){var aZ=Symbol.for;aZ("selector.component"),aZ("selector.has_pseudo_class"),aZ("selector.role"),aZ("selector.test_id"),aZ("selector.text")}var zO=[],_O=typeof WeakMap==="function"?WeakMap:Map,w5=0,N5=2,A6=4,L8=0,iZ=1,V9=2,Z3=3,W2=4,Q3=6,dw=5,Z1=w5,P1=null,x0=null,u0=0,t5=0,J3=1,A9=2,tZ=3,pw=4,dN=5,eZ=6,G3=7,pN=8,E9=9,M1=t5,E6=null,w2=!1,J$=!1,cN=!1,d4=0,f1=L8,R2=0,z2=0,lN=0,e5=0,S9=0,$Q=null,r5=null,X3=!1,q3=0,cw=0,lw=300,Y3=1/0,rw=500,ZQ=null,l1=null,_2=null,N3=0,rN=1,nN=2,nw=3,L2=0,sw=1,ow=2,aw=3,iw=4,U3=5,G5=0,P2=null,G$=null,K4=0,sN=0,oN=-0,aN=null,tw=null,ew=null,B4=N3,$R=null,LO=50,QQ=0,iN=null,tN=!1,K3=!1,PO=50,j9=0,JQ=null,X$=!1,B3=null,ZR=!1,QR=new Set,TO={},H3=null,q$=null,eN=!1,$U=!1,F3=!1,ZU=!1,T2=0,QU={};(function(){for(var $=0;$<FN.length;$++){var Z=FN[$],G=Z.toLowerCase();Z=Z[0].toUpperCase()+Z.slice(1),Z4(G,"on"+Z)}Z4(vW,"onAnimationEnd"),Z4(bW,"onAnimationIteration"),Z4(kW,"onAnimationStart"),Z4("dblclick","onDoubleClick"),Z4("focusin","onFocus"),Z4("focusout","onBlur"),Z4(tI,"onTransitionRun"),Z4(eI,"onTransitionStart"),Z4($O,"onTransitionCancel"),Z4(fW,"onTransitionEnd")})(),H6("onMouseEnter",["mouseout","mouseover"]),H6("onMouseLeave",["mouseout","mouseover"]),H6("onPointerEnter",["pointerout","pointerover"]),H6("onPointerLeave",["pointerout","pointerover"]),S5("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),S5("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),S5("onBeforeInput",["compositionend","keypress","textInput","paste"]),S5("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),S5("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),S5("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var GQ="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(" "),JU=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(GQ)),M3="_reactListening"+Math.random().toString(36).slice(2),JR=!1,GR=!1,W3=!1,XR=!1,w3=!1,R3=!1,qR=!1,z3={},CO=/\r\n?/g,IO=/\u0000|\uFFFD/g,D9="http://www.w3.org/1999/xlink",GU="http://www.w3.org/XML/1998/namespace",OO="javascript:throw new Error('React form unexpectedly submitted.')",VO="suppressHydrationWarning",v9="&",_3="/&",XQ="$",qQ="/$",C2="$?",b9="$~",Y$="$!",AO="html",EO="body",SO="head",XU="F!",YR="F",NR="loading",jO="style",P8=0,N$=1,L3=2,qU=null,YU=null,UR={dialog:!0,webview:!0},NU=null,YQ=void 0,KR=typeof setTimeout==="function"?setTimeout:void 0,DO=typeof clearTimeout==="function"?clearTimeout:void 0,k9=-1,BR=typeof Promise==="function"?Promise:void 0,vO=typeof queueMicrotask==="function"?queueMicrotask:typeof BR<"u"?function($){return BR.resolve(null).then($).catch(wC)}:KR,UU=null,f9=0,NQ=1,HR=2,FR=3,c6=4,l6=new Map,MR=new Set,T8=K1.d;K1.d={f:function(){var $=T8.f(),Z=P7();return $||Z},r:function($){var Z=D0($);Z!==null&&Z.tag===5&&Z.type==="form"?DH(Z):T8.r($)},D:function($){T8.D($),IM("dns-prefetch",$,null)},C:function($,Z){T8.C($,Z),IM("preconnect",$,Z)},L:function($,Z,G){T8.L($,Z,G);var Y=U$;if(Y&&$&&Z){var U='link[rel="preload"][as="'+v6(Z)+'"]';Z==="image"?G&&G.imageSrcSet?(U+='[imagesrcset="'+v6(G.imageSrcSet)+'"]',typeof G.imageSizes==="string"&&(U+='[imagesizes="'+v6(G.imageSizes)+'"]')):U+='[href="'+v6($)+'"]':U+='[href="'+v6($)+'"]';var B=U;switch(Z){case"style":B=I7($);break;case"script":B=O7($)}l6.has(B)||($=l0({rel:"preload",href:Z==="image"&&G&&G.imageSrcSet?void 0:$,as:Z},G),l6.set(B,$),Y.querySelector(U)!==null||Z==="style"&&Y.querySelector(MZ(B))||Z==="script"&&Y.querySelector(WZ(B))||(Z=Y.createElement("link"),L5(Z,"link",$),_0(Z),Y.head.appendChild(Z)))}},m:function($,Z){T8.m($,Z);var G=U$;if(G&&$){var Y=Z&&typeof Z.as==="string"?Z.as:"script",U='link[rel="modulepreload"][as="'+v6(Y)+'"][href="'+v6($)+'"]',B=U;switch(Y){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":B=O7($)}if(!l6.has(B)&&($=l0({rel:"modulepreload",href:$},Z),l6.set(B,$),G.querySelector(U)===null)){switch(Y){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(G.querySelector(WZ(B)))return}Y=G.createElement("link"),L5(Y,"link",$),_0(Y),G.head.appendChild(Y)}}},X:function($,Z){T8.X($,Z);var G=U$;if(G&&$){var Y=Q1(G).hoistableScripts,U=O7($),B=Y.get(U);B||(B=G.querySelector(WZ(U)),B||($=l0({src:$,async:!0},Z),(Z=l6.get(U))&&vY($,Z),B=G.createElement("script"),_0(B),L5(B,"link",$),G.head.appendChild(B)),B={type:"script",instance:B,count:1,state:null},Y.set(U,B))}},S:function($,Z,G){T8.S($,Z,G);var Y=U$;if(Y&&$){var U=Q1(Y).hoistableStyles,B=I7($);Z=Z||"default";var W=U.get(B);if(!W){var z={loading:f9,preload:null};if(W=Y.querySelector(MZ(B)))z.loading=NQ|c6;else{$=l0({rel:"stylesheet",href:$,"data-precedence":Z},G),(G=l6.get(B))&&DY($,G);var L=W=Y.createElement("link");_0(L),L5(L,"link",$),L._p=new Promise(function(T,k){L.onload=T,L.onerror=k}),L.addEventListener("load",function(){z.loading|=NQ}),L.addEventListener("error",function(){z.loading|=HR}),z.loading|=c6,WG(W,Z,Y)}W={type:"stylesheet",instance:W,count:1,state:z},U.set(B,W)}}},M:function($,Z){T8.M($,Z);var G=U$;if(G&&$){var Y=Q1(G).hoistableScripts,U=O7($),B=Y.get(U);B||(B=G.querySelector(WZ(U)),B||($=l0({src:$,async:!0,type:"module"},Z),(Z=l6.get(U))&&vY($,Z),B=G.createElement("script"),_0(B),L5(B,"link",$),G.head.appendChild(B)),B={type:"script",instance:B,count:1,state:null},Y.set(U,B))}}};var U$=typeof document>"u"?null:document,P3=null,bO=60000,kO=800,fO=500,KU=0,BU=null,T3=null,y9=aC,UQ={$$typeof:v4,Provider:null,Consumer:null,_currentValue:y9,_currentValue2:y9,_threadCount:0},WR="%c%s%c",wR="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",RR="",C3=" ",yO=Function.prototype.bind,zR=!1,_R=null,LR=null,PR=null,TR=null,CR=null,IR=null,OR=null,VR=null,AR=null,ER=null;_R=function($,Z,G,Y){Z=Q($,Z),Z!==null&&(G=J(Z.memoizedState,G,0,Y),Z.memoizedState=G,Z.baseState=G,$.memoizedProps=l0({},$.memoizedProps),G=j5($,2),G!==null&&h1(G,$,2))},LR=function($,Z,G){Z=Q($,Z),Z!==null&&(G=N(Z.memoizedState,G,0),Z.memoizedState=G,Z.baseState=G,$.memoizedProps=l0({},$.memoizedProps),G=j5($,2),G!==null&&h1(G,$,2))},PR=function($,Z,G,Y){Z=Q($,Z),Z!==null&&(G=X(Z.memoizedState,G,Y),Z.memoizedState=G,Z.baseState=G,$.memoizedProps=l0({},$.memoizedProps),G=j5($,2),G!==null&&h1(G,$,2))},TR=function($,Z,G){$.pendingProps=J($.memoizedProps,Z,0,G),$.alternate&&($.alternate.pendingProps=$.pendingProps),Z=j5($,2),Z!==null&&h1(Z,$,2)},CR=function($,Z){$.pendingProps=N($.memoizedProps,Z,0),$.alternate&&($.alternate.pendingProps=$.pendingProps),Z=j5($,2),Z!==null&&h1(Z,$,2)},IR=function($,Z,G){$.pendingProps=X($.memoizedProps,Z,G),$.alternate&&($.alternate.pendingProps=$.pendingProps),Z=j5($,2),Z!==null&&h1(Z,$,2)},OR=function($){var Z=j5($,2);Z!==null&&h1(Z,$,2)},VR=function($){var Z=Y7(),G=j5($,Z);G!==null&&h1(G,$,Z)},AR=function($){H=$},ER=function($){K=$};var I3=!0,O3=null,HU=!1,I2=null,O2=null,V2=null,KQ=new Map,BQ=new Map,A2=[],gO="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(" "),V3=null;if(LG.prototype.render=hY.prototype.render=function($){var Z=this._internalRoot;if(Z===null)throw Error("Cannot update an unmounted root.");var G=arguments;typeof G[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()."):O(G[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 G[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),G=$;var Y=Z.current,U=_6(Y);bY(Y,U,G,Z,null,null)},LG.prototype.unmount=hY.prototype.unmount=function(){var $=arguments;if(typeof $[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()."),$=this._internalRoot,$!==null){this._internalRoot=null;var Z=$.containerInfo;(Z1&(N5|A6))!==w5&&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."),bY($.current,2,null,$,null,null),P7(),Z[J2]=null}},LG.prototype.unstable_scheduleHydration=function($){if($){var Z=y();$={blockedOn:null,target:$,priority:Z};for(var G=0;G<A2.length&&Z!==0&&Z<A2[G].priority;G++);A2.splice(G,0,$),G===0&&hM($)}},function(){var $=P$.version;if($!=="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 <`+Y+">.");var z="";Q!=null&&$!==Q&&(Y=null,typeof Q.tag==="number"?Y=d(Q):typeof Q.name==="string"&&(Y=Q.name),Y&&(z=" It was passed a child from "+Y+".")),q0(Z,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.',B,z)})}}};var _7=yB(!0),lz=yB(!1),rz=0,sz=1,nz=2,FN=3,N2=!1,oz=!1,WN=null,zN=!1,d9=H0(null),fG=H0(0),T6=H0(null),h6=null,p9=1,vZ=2,c1=H0(0),yG=0,u6=1,m5=2,C6=4,d5=8,c9,az=new Set,iz=new Set,MN=new Set,tz=new Set,H8=0,A0=null,R1=null,t1=null,gG=!1,l9=!1,L7=!1,hG=0,bZ=0,F8=null,wO=0,RO=25,u=null,x6=null,W8=-1,fZ=!1,yZ={readContext:D1,use:c8,useCallback:d1,useContext:d1,useEffect:d1,useImperativeHandle:d1,useLayoutEffect:d1,useInsertionEffect:d1,useMemo:d1,useReducer:d1,useRef:d1,useState:d1,useDebugValue:d1,useDeferredValue:d1,useTransition:d1,useSyncExternalStore:d1,useId:d1,useHostTransitionStatus:d1,useFormState:d1,useActionState:d1,useOptimistic:d1,useMemoCache:d1,useCacheRefresh:d1};yZ.useEffectEvent=d1;var wN=null,ez=null,RN=null,$M=null,h4=null,q4=null,uG=null;wN={readContext:function($){return D1($)},use:c8,useCallback:function($,Z){return u="useCallback",c0(),X9(Z),zY($,Z)},useContext:function($){return u="useContext",c0(),D1($)},useEffect:function($,Z){return u="useEffect",c0(),X9(Z),kQ($,Z)},useImperativeHandle:function($,Z,Q){return u="useImperativeHandle",c0(),X9(Q),WY($,Z,Q)},useInsertionEffect:function($,Z){u="useInsertionEffect",c0(),X9(Z),G7(4,m5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",c0(),X9(Z),FY($,Z)},useMemo:function($,Z){u="useMemo",c0(),X9(Z);var Q=x.H;x.H=h4;try{return MY($,Z)}finally{x.H=Q}},useReducer:function($,Z,Q){u="useReducer",c0();var Y=x.H;x.H=h4;try{return GY($,Z,Q)}finally{x.H=Y}},useRef:function($){return u="useRef",c0(),BY($)},useState:function($){u="useState",c0();var Z=x.H;x.H=h4;try{return NY($)}finally{x.H=Z}},useDebugValue:function(){u="useDebugValue",c0()},useDeferredValue:function($,Z){return u="useDeferredValue",c0(),wY($,Z)},useTransition:function(){return u="useTransition",c0(),LY()},useSyncExternalStore:function($,Z,Q){return u="useSyncExternalStore",c0(),YY($,Z,Q)},useId:function(){return u="useId",c0(),PY()},useFormState:function($,Z){return u="useFormState",c0(),AQ(),U9($,Z)},useActionState:function($,Z){return u="useActionState",c0(),U9($,Z)},useOptimistic:function($){return u="useOptimistic",c0(),UY($)},useHostTransitionStatus:q7,useMemoCache:Q7,useCacheRefresh:function(){return u="useCacheRefresh",c0(),TY()},useEffectEvent:function($){return u="useEffectEvent",c0(),HY($)}},ez={readContext:function($){return D1($)},use:c8,useCallback:function($,Z){return u="useCallback",c(),zY($,Z)},useContext:function($){return u="useContext",c(),D1($)},useEffect:function($,Z){return u="useEffect",c(),kQ($,Z)},useImperativeHandle:function($,Z,Q){return u="useImperativeHandle",c(),WY($,Z,Q)},useInsertionEffect:function($,Z){u="useInsertionEffect",c(),G7(4,m5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",c(),FY($,Z)},useMemo:function($,Z){u="useMemo",c();var Q=x.H;x.H=h4;try{return MY($,Z)}finally{x.H=Q}},useReducer:function($,Z,Q){u="useReducer",c();var Y=x.H;x.H=h4;try{return GY($,Z,Q)}finally{x.H=Y}},useRef:function($){return u="useRef",c(),BY($)},useState:function($){u="useState",c();var Z=x.H;x.H=h4;try{return NY($)}finally{x.H=Z}},useDebugValue:function(){u="useDebugValue",c()},useDeferredValue:function($,Z){return u="useDeferredValue",c(),wY($,Z)},useTransition:function(){return u="useTransition",c(),LY()},useSyncExternalStore:function($,Z,Q){return u="useSyncExternalStore",c(),YY($,Z,Q)},useId:function(){return u="useId",c(),PY()},useActionState:function($,Z){return u="useActionState",c(),U9($,Z)},useFormState:function($,Z){return u="useFormState",c(),AQ(),U9($,Z)},useOptimistic:function($){return u="useOptimistic",c(),UY($)},useHostTransitionStatus:q7,useMemoCache:Q7,useCacheRefresh:function(){return u="useCacheRefresh",c(),TY()},useEffectEvent:function($){return u="useEffectEvent",c(),HY($)}},RN={readContext:function($){return D1($)},use:c8,useCallback:function($,Z){return u="useCallback",c(),fQ($,Z)},useContext:function($){return u="useContext",c(),D1($)},useEffect:function($,Z){u="useEffect",c(),l5(2048,d5,$,Z)},useImperativeHandle:function($,Z,Q){return u="useImperativeHandle",c(),bQ($,Z,Q)},useInsertionEffect:function($,Z){return u="useInsertionEffect",c(),l5(4,m5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",c(),l5(4,C6,$,Z)},useMemo:function($,Z){u="useMemo",c();var Q=x.H;x.H=q4;try{return yQ($,Z)}finally{x.H=Q}},useReducer:function($,Z,Q){u="useReducer",c();var Y=x.H;x.H=q4;try{return N9($,Z,Q)}finally{x.H=Y}},useRef:function(){return u="useRef",c(),B1().memoizedState},useState:function(){u="useState",c();var $=x.H;x.H=q4;try{return N9(e6)}finally{x.H=$}},useDebugValue:function(){u="useDebugValue",c()},useDeferredValue:function($,Z){return u="useDeferredValue",c(),GH($,Z)},useTransition:function(){return u="useTransition",c(),KH()},useSyncExternalStore:function($,Z,Q){return u="useSyncExternalStore",c(),SQ($,Z,Q)},useId:function(){return u="useId",c(),B1().memoizedState},useFormState:function($){return u="useFormState",c(),AQ(),DQ($)},useActionState:function($){return u="useActionState",c(),DQ($)},useOptimistic:function($,Z){return u="useOptimistic",c(),nB($,Z)},useHostTransitionStatus:q7,useMemoCache:Q7,useCacheRefresh:function(){return u="useCacheRefresh",c(),B1().memoizedState},useEffectEvent:function($){return u="useEffectEvent",c(),vQ($)}},$M={readContext:function($){return D1($)},use:c8,useCallback:function($,Z){return u="useCallback",c(),fQ($,Z)},useContext:function($){return u="useContext",c(),D1($)},useEffect:function($,Z){u="useEffect",c(),l5(2048,d5,$,Z)},useImperativeHandle:function($,Z,Q){return u="useImperativeHandle",c(),bQ($,Z,Q)},useInsertionEffect:function($,Z){return u="useInsertionEffect",c(),l5(4,m5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",c(),l5(4,C6,$,Z)},useMemo:function($,Z){u="useMemo",c();var Q=x.H;x.H=uG;try{return yQ($,Z)}finally{x.H=Q}},useReducer:function($,Z,Q){u="useReducer",c();var Y=x.H;x.H=uG;try{return m$($,Z,Q)}finally{x.H=Y}},useRef:function(){return u="useRef",c(),B1().memoizedState},useState:function(){u="useState",c();var $=x.H;x.H=uG;try{return m$(e6)}finally{x.H=$}},useDebugValue:function(){u="useDebugValue",c()},useDeferredValue:function($,Z){return u="useDeferredValue",c(),qH($,Z)},useTransition:function(){return u="useTransition",c(),BH()},useSyncExternalStore:function($,Z,Q){return u="useSyncExternalStore",c(),SQ($,Z,Q)},useId:function(){return u="useId",c(),B1().memoizedState},useFormState:function($){return u="useFormState",c(),AQ(),jQ($)},useActionState:function($){return u="useActionState",c(),jQ($)},useOptimistic:function($,Z){return u="useOptimistic",c(),aB($,Z)},useHostTransitionStatus:q7,useMemoCache:Q7,useCacheRefresh:function(){return u="useCacheRefresh",c(),B1().memoizedState},useEffectEvent:function($){return u="useEffectEvent",c(),vQ($)}},h4={readContext:function($){return W(),D1($)},use:function($){return F(),c8($)},useCallback:function($,Z){return u="useCallback",F(),c0(),zY($,Z)},useContext:function($){return u="useContext",F(),c0(),D1($)},useEffect:function($,Z){return u="useEffect",F(),c0(),kQ($,Z)},useImperativeHandle:function($,Z,Q){return u="useImperativeHandle",F(),c0(),WY($,Z,Q)},useInsertionEffect:function($,Z){u="useInsertionEffect",F(),c0(),G7(4,m5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",F(),c0(),FY($,Z)},useMemo:function($,Z){u="useMemo",F(),c0();var Q=x.H;x.H=h4;try{return MY($,Z)}finally{x.H=Q}},useReducer:function($,Z,Q){u="useReducer",F(),c0();var Y=x.H;x.H=h4;try{return GY($,Z,Q)}finally{x.H=Y}},useRef:function($){return u="useRef",F(),c0(),BY($)},useState:function($){u="useState",F(),c0();var Z=x.H;x.H=h4;try{return NY($)}finally{x.H=Z}},useDebugValue:function(){u="useDebugValue",F(),c0()},useDeferredValue:function($,Z){return u="useDeferredValue",F(),c0(),wY($,Z)},useTransition:function(){return u="useTransition",F(),c0(),LY()},useSyncExternalStore:function($,Z,Q){return u="useSyncExternalStore",F(),c0(),YY($,Z,Q)},useId:function(){return u="useId",F(),c0(),PY()},useFormState:function($,Z){return u="useFormState",F(),c0(),U9($,Z)},useActionState:function($,Z){return u="useActionState",F(),c0(),U9($,Z)},useOptimistic:function($){return u="useOptimistic",F(),c0(),UY($)},useMemoCache:function($){return F(),Q7($)},useHostTransitionStatus:q7,useCacheRefresh:function(){return u="useCacheRefresh",c0(),TY()},useEffectEvent:function($){return u="useEffectEvent",F(),c0(),HY($)}},q4={readContext:function($){return W(),D1($)},use:function($){return F(),c8($)},useCallback:function($,Z){return u="useCallback",F(),c(),fQ($,Z)},useContext:function($){return u="useContext",F(),c(),D1($)},useEffect:function($,Z){u="useEffect",F(),c(),l5(2048,d5,$,Z)},useImperativeHandle:function($,Z,Q){return u="useImperativeHandle",F(),c(),bQ($,Z,Q)},useInsertionEffect:function($,Z){return u="useInsertionEffect",F(),c(),l5(4,m5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",F(),c(),l5(4,C6,$,Z)},useMemo:function($,Z){u="useMemo",F(),c();var Q=x.H;x.H=q4;try{return yQ($,Z)}finally{x.H=Q}},useReducer:function($,Z,Q){u="useReducer",F(),c();var Y=x.H;x.H=q4;try{return N9($,Z,Q)}finally{x.H=Y}},useRef:function(){return u="useRef",F(),c(),B1().memoizedState},useState:function(){u="useState",F(),c();var $=x.H;x.H=q4;try{return N9(e6)}finally{x.H=$}},useDebugValue:function(){u="useDebugValue",F(),c()},useDeferredValue:function($,Z){return u="useDeferredValue",F(),c(),GH($,Z)},useTransition:function(){return u="useTransition",F(),c(),KH()},useSyncExternalStore:function($,Z,Q){return u="useSyncExternalStore",F(),c(),SQ($,Z,Q)},useId:function(){return u="useId",F(),c(),B1().memoizedState},useFormState:function($){return u="useFormState",F(),c(),DQ($)},useActionState:function($){return u="useActionState",F(),c(),DQ($)},useOptimistic:function($,Z){return u="useOptimistic",F(),c(),nB($,Z)},useMemoCache:function($){return F(),Q7($)},useHostTransitionStatus:q7,useCacheRefresh:function(){return u="useCacheRefresh",c(),B1().memoizedState},useEffectEvent:function($){return u="useEffectEvent",F(),c(),vQ($)}},uG={readContext:function($){return W(),D1($)},use:function($){return F(),c8($)},useCallback:function($,Z){return u="useCallback",F(),c(),fQ($,Z)},useContext:function($){return u="useContext",F(),c(),D1($)},useEffect:function($,Z){u="useEffect",F(),c(),l5(2048,d5,$,Z)},useImperativeHandle:function($,Z,Q){return u="useImperativeHandle",F(),c(),bQ($,Z,Q)},useInsertionEffect:function($,Z){return u="useInsertionEffect",F(),c(),l5(4,m5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",F(),c(),l5(4,C6,$,Z)},useMemo:function($,Z){u="useMemo",F(),c();var Q=x.H;x.H=q4;try{return yQ($,Z)}finally{x.H=Q}},useReducer:function($,Z,Q){u="useReducer",F(),c();var Y=x.H;x.H=q4;try{return m$($,Z,Q)}finally{x.H=Y}},useRef:function(){return u="useRef",F(),c(),B1().memoizedState},useState:function(){u="useState",F(),c();var $=x.H;x.H=q4;try{return m$(e6)}finally{x.H=$}},useDebugValue:function(){u="useDebugValue",F(),c()},useDeferredValue:function($,Z){return u="useDeferredValue",F(),c(),qH($,Z)},useTransition:function(){return u="useTransition",F(),c(),BH()},useSyncExternalStore:function($,Z,Q){return u="useSyncExternalStore",F(),c(),SQ($,Z,Q)},useId:function(){return u="useId",F(),c(),B1().memoizedState},useFormState:function($){return u="useFormState",F(),c(),jQ($)},useActionState:function($){return u="useActionState",F(),c(),jQ($)},useOptimistic:function($,Z){return u="useOptimistic",F(),c(),aB($,Z)},useMemoCache:function($){return F(),Q7($)},useHostTransitionStatus:q7,useCacheRefresh:function(){return u="useCacheRefresh",c(),B1().memoizedState},useEffectEvent:function($){return u="useEffectEvent",F(),c(),vQ($)}};var ZM={},JM=new Set,QM=new Set,GM=new Set,qM=new Set,YM=new Set,XM=new Set,NM=new Set,UM=new Set,KM=new Set,BM=new Set;Object.freeze(ZM);var _N={enqueueSetState:function($,Z,Q){$=$._reactInternals;var Y=M6($),U=x8(Y);U.payload=Z,Q!==void 0&&Q!==null&&(OY(Q),U.callback=Q),Z=m8($,U,Y),Z!==null&&(z4(Y,"this.setState()",$),y1(Z,$,Y),g$(Z,$,Y))},enqueueReplaceState:function($,Z,Q){$=$._reactInternals;var Y=M6($),U=x8(Y);U.tag=sz,U.payload=Z,Q!==void 0&&Q!==null&&(OY(Q),U.callback=Q),Z=m8($,U,Y),Z!==null&&(z4(Y,"this.replaceState()",$),y1(Z,$,Y),g$(Z,$,Y))},enqueueForceUpdate:function($,Z){$=$._reactInternals;var Q=M6($),Y=x8(Q);Y.tag=nz,Z!==void 0&&Z!==null&&(OY(Z),Y.callback=Z),Z=m8($,Y,Q),Z!==null&&(z4(Q,"this.forceUpdate()",$),y1(Z,$,Q),g$(Z,$,Q))}},r9=null,LN=null,PN=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."),e1=!1,HM={},FM={},WM={},zM={},s9=!1,MM={},xG={},TN={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},wM=!1,RM=null;RM=new Set;var z8=!1,$5=!1,CN=!1,_M=typeof WeakSet==="function"?WeakSet:Set,F5=null,n9=null,o9=null,Z5=null,n5=!1,Y4=null,q5=!1,gZ=8192,_O={getCacheForType:function($){var Z=D1(a1),Q=Z.data.get($);return Q===void 0&&(Q=$(),Z.data.set($,Q)),Q},cacheSignal:function(){return D1(a1).controller.signal},getOwner:function(){return _6}};if(typeof Symbol==="function"&&Symbol.for){var hZ=Symbol.for;hZ("selector.component"),hZ("selector.has_pseudo_class"),hZ("selector.role"),hZ("selector.test_id"),hZ("selector.text")}var LO=[],PO=typeof WeakMap==="function"?WeakMap:Map,W5=0,Y5=2,O6=4,M8=0,uZ=1,P7=2,mG=3,U2=4,dG=6,LM=5,Z1=W5,_1=null,x0=null,u0=0,o5=0,pG=1,T7=2,xZ=3,PM=4,ON=5,mZ=6,cG=7,IN=8,C7=9,H1=o5,I6=null,K2=!1,a9=!1,VN=!1,u4=0,v1=M8,B2=0,H2=0,AN=0,a5=0,O7=0,dZ=null,p5=null,lG=!1,rG=0,TM=0,CM=300,sG=1/0,OM=500,pZ=null,p1=null,F2=null,nG=0,EN=1,SN=2,IM=3,W2=0,VM=1,AM=2,EM=3,SM=4,oG=5,J5=0,z2=null,i9=null,X4=0,DN=0,jN=-0,kN=null,DM=null,jM=null,N4=nG,kM=null,TO=50,cZ=0,vN=null,bN=!1,aG=!1,CO=50,I7=0,lZ=null,t9=!1,iG=null,vM=!1,bM=new Set,OO={},tG=null,e9=null,fN=!1,yN=!1,eG=!1,gN=!1,M2=0,hN={};(function(){for(var $=0;$<oX.length;$++){var Z=oX[$],Q=Z.toLowerCase();Z=Z[0].toUpperCase()+Z.slice(1),t6(Q,"on"+Z)}t6(Kz,"onAnimationEnd"),t6(Bz,"onAnimationIteration"),t6(Hz,"onAnimationStart"),t6("dblclick","onDoubleClick"),t6("focusin","onFocus"),t6("focusout","onBlur"),t6($O,"onTransitionRun"),t6(ZO,"onTransitionStart"),t6(JO,"onTransitionCancel"),t6(Fz,"onTransitionEnd")})(),U6("onMouseEnter",["mouseout","mouseover"]),U6("onMouseLeave",["mouseout","mouseover"]),U6("onPointerEnter",["pointerout","pointerover"]),U6("onPointerLeave",["pointerout","pointerover"]),A5("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),A5("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),A5("onBeforeInput",["compositionend","keypress","textInput","paste"]),A5("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),A5("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),A5("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var rZ="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(" "),uN=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(rZ)),$3="_reactListening"+Math.random().toString(36).slice(2),fM=!1,yM=!1,Z3=!1,gM=!1,J3=!1,Q3=!1,hM=!1,G3={},IO=/\r\n?/g,VO=/\u0000|\uFFFD/g,V7="http://www.w3.org/1999/xlink",xN="http://www.w3.org/XML/1998/namespace",AO="javascript:throw new Error('React form unexpectedly submitted.')",EO="suppressHydrationWarning",A7="&",q3="/&",sZ="$",nZ="/$",w2="$?",E7="$~",$$="$!",SO="html",DO="body",jO="head",mN="F!",uM="F",xM="loading",kO="style",w8=0,Z$=1,Y3=2,dN=null,pN=null,mM={dialog:!0,webview:!0},cN=null,oZ=void 0,dM=typeof setTimeout==="function"?setTimeout:void 0,vO=typeof clearTimeout==="function"?clearTimeout:void 0,S7=-1,pM=typeof Promise==="function"?Promise:void 0,bO=typeof queueMicrotask==="function"?queueMicrotask:typeof pM<"u"?function($){return pM.resolve(null).then($).catch(RT)}:dM,lN=null,D7=0,aZ=1,cM=2,lM=3,m6=4,d6=new Map,rM=new Set,R8=U1.d;U1.d={f:function(){var $=R8.f(),Z=W9();return $||Z},r:function($){var Z=j0($);Z!==null&&Z.tag===5&&Z.type==="form"?UH(Z):R8.r($)},D:function($){R8.D($),JW("dns-prefetch",$,null)},C:function($,Z){R8.C($,Z),JW("preconnect",$,Z)},L:function($,Z,Q){R8.L($,Z,Q);var Y=J$;if(Y&&$&&Z){var U='link[rel="preload"][as="'+S6(Z)+'"]';Z==="image"?Q&&Q.imageSrcSet?(U+='[imagesrcset="'+S6(Q.imageSrcSet)+'"]',typeof Q.imageSizes==="string"&&(U+='[imagesizes="'+S6(Q.imageSizes)+'"]')):U+='[href="'+S6($)+'"]':U+='[href="'+S6($)+'"]';var B=U;switch(Z){case"style":B=w9($);break;case"script":B=R9($)}d6.has(B)||($=l0({rel:"preload",href:Z==="image"&&Q&&Q.imageSrcSet?void 0:$,as:Z},Q),d6.set(B,$),Y.querySelector(U)!==null||Z==="style"&&Y.querySelector(JZ(B))||Z==="script"&&Y.querySelector(QZ(B))||(Z=Y.createElement("link"),R5(Z,"link",$),_0(Z),Y.head.appendChild(Z)))}},m:function($,Z){R8.m($,Z);var Q=J$;if(Q&&$){var Y=Z&&typeof Z.as==="string"?Z.as:"script",U='link[rel="modulepreload"][as="'+S6(Y)+'"][href="'+S6($)+'"]',B=U;switch(Y){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":B=R9($)}if(!d6.has(B)&&($=l0({rel:"modulepreload",href:$},Z),d6.set(B,$),Q.querySelector(U)===null)){switch(Y){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(Q.querySelector(QZ(B)))return}Y=Q.createElement("link"),R5(Y,"link",$),_0(Y),Q.head.appendChild(Y)}}},X:function($,Z){R8.X($,Z);var Q=J$;if(Q&&$){var Y=J1(Q).hoistableScripts,U=R9($),B=Y.get(U);B||(B=Q.querySelector(QZ(U)),B||($=l0({src:$,async:!0},Z),(Z=d6.get(U))&&WX($,Z),B=Q.createElement("script"),_0(B),R5(B,"link",$),Q.head.appendChild(B)),B={type:"script",instance:B,count:1,state:null},Y.set(U,B))}},S:function($,Z,Q){R8.S($,Z,Q);var Y=J$;if(Y&&$){var U=J1(Y).hoistableStyles,B=w9($);Z=Z||"default";var z=U.get(B);if(!z){var w={loading:D7,preload:null};if(z=Y.querySelector(JZ(B)))w.loading=aZ|m6;else{$=l0({rel:"stylesheet",href:$,"data-precedence":Z},Q),(Q=d6.get(B))&&FX($,Q);var L=z=Y.createElement("link");_0(L),R5(L,"link",$),L._p=new Promise(function(T,b){L.onload=T,L.onerror=b}),L.addEventListener("load",function(){w.loading|=aZ}),L.addEventListener("error",function(){w.loading|=cM}),w.loading|=m6,ZG(z,Z,Y)}z={type:"stylesheet",instance:z,count:1,state:w},U.set(B,z)}}},M:function($,Z){R8.M($,Z);var Q=J$;if(Q&&$){var Y=J1(Q).hoistableScripts,U=R9($),B=Y.get(U);B||(B=Q.querySelector(QZ(U)),B||($=l0({src:$,async:!0,type:"module"},Z),(Z=d6.get(U))&&WX($,Z),B=Q.createElement("script"),_0(B),R5(B,"link",$),Q.head.appendChild(B)),B={type:"script",instance:B,count:1,state:null},Y.set(U,B))}}};var J$=typeof document>"u"?null:document,X3=null,fO=60000,yO=800,gO=500,rN=0,sN=null,N3=null,j7=tT,iZ={$$typeof:S4,Provider:null,Consumer:null,_currentValue:j7,_currentValue2:j7,_threadCount:0},sM="%c%s%c",nM="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",oM="",U3=" ",hO=Function.prototype.bind,aM=!1,iM=null,tM=null,eM=null,$w=null,Zw=null,Jw=null,Qw=null,Gw=null,qw=null,Yw=null;iM=function($,Z,Q,Y){Z=J($,Z),Z!==null&&(Q=G(Z.memoizedState,Q,0,Y),Z.memoizedState=Q,Z.baseState=Q,$.memoizedProps=l0({},$.memoizedProps),Q=E5($,2),Q!==null&&y1(Q,$,2))},tM=function($,Z,Q){Z=J($,Z),Z!==null&&(Q=N(Z.memoizedState,Q,0),Z.memoizedState=Q,Z.baseState=Q,$.memoizedProps=l0({},$.memoizedProps),Q=E5($,2),Q!==null&&y1(Q,$,2))},eM=function($,Z,Q,Y){Z=J($,Z),Z!==null&&(Q=q(Z.memoizedState,Q,Y),Z.memoizedState=Q,Z.baseState=Q,$.memoizedProps=l0({},$.memoizedProps),Q=E5($,2),Q!==null&&y1(Q,$,2))},$w=function($,Z,Q){$.pendingProps=G($.memoizedProps,Z,0,Q),$.alternate&&($.alternate.pendingProps=$.pendingProps),Z=E5($,2),Z!==null&&y1(Z,$,2)},Zw=function($,Z){$.pendingProps=N($.memoizedProps,Z,0),$.alternate&&($.alternate.pendingProps=$.pendingProps),Z=E5($,2),Z!==null&&y1(Z,$,2)},Jw=function($,Z,Q){$.pendingProps=q($.memoizedProps,Z,Q),$.alternate&&($.alternate.pendingProps=$.pendingProps),Z=E5($,2),Z!==null&&y1(Z,$,2)},Qw=function($){var Z=E5($,2);Z!==null&&y1(Z,$,2)},Gw=function($){var Z=$9(),Q=E5($,Z);Q!==null&&y1(Q,$,Z)},qw=function($){H=$},Yw=function($){K=$};var K3=!0,B3=null,nN=!1,R2=null,_2=null,L2=null,tZ=new Map,eZ=new Map,P2=[],uO="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(" "),H3=null;if(YG.prototype.render=LX.prototype.render=function($){var Z=this._internalRoot;if(Z===null)throw Error("Cannot update an unmounted root.");var Q=arguments;typeof Q[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()."):I(Q[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 Q[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),Q=$;var Y=Z.current,U=M6(Y);zX(Y,U,Q,Z,null,null)},YG.prototype.unmount=LX.prototype.unmount=function(){var $=arguments;if(typeof $[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()."),$=this._internalRoot,$!==null){this._internalRoot=null;var Z=$.containerInfo;(Z1&(Y5|O6))!==W5&&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."),zX($.current,2,null,$,null,null),W9(),Z[i8]=null}},YG.prototype.unstable_scheduleHydration=function($){if($){var Z=y();$={blockedOn:null,target:$,priority:Z};for(var Q=0;Q<P2.length&&Z!==0&&Z<P2[Q].priority;Q++);P2.splice(Q,0,$),Q===0&&MW($)}},function(){var $=W$.version;if($!=="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: `+($+`
|
|
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"),U1.findDOMNode=function($){var Z=$._reactInternals;if(Z===void 0){if(typeof $.render==="function")throw Error("Unable to find node on an unmounted component.");throw $=Object.keys($).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+$)}return $=a(Z),$=$!==null?Q0($):null,$=$===null?null:$.stateNode,$},!function(){var $={bundleType:1,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:x,reconcilerVersion:"19.2.7"};return $.overrideHookState=iM,$.overrideHookStateDeletePath=tM,$.overrideHookStateRenamePath=eM,$.overrideProps=$w,$.overridePropsDeletePath=Zw,$.overridePropsRenamePath=Jw,$.scheduleUpdate=Qw,$.scheduleRetry=Gw,$.setErrorHandler=qw,$.setSuspenseHandler=Yw,$.scheduleRefresh=E,$.scheduleRoot=O,$.setRefreshHandler=V,$.getCurrentFiber=cT,e7($)}()&&b4&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var Xw=window.location.protocol;/^(https?|file):$/.test(Xw)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(Xw==="file:"?`
|
|
227
|
+
You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}YS.createRoot=function($,Z){if(!I($))throw Error("Target container is not a DOM element.");LW($);var Q=!1,Y="",U=wH,B=RH,z=_H;return Z!==null&&Z!==void 0&&(Z.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof Z==="object"&&Z!==null&&Z.$$typeof===E4&&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 />);`),Z.unstable_strictMode===!0&&(
|
|
230
|
+
root.render(<App />);`),Z.unstable_strictMode===!0&&(Q=!0),Z.identifierPrefix!==void 0&&(Y=Z.identifierPrefix),Z.onUncaughtError!==void 0&&(U=Z.onUncaughtError),Z.onCaughtError!==void 0&&(B=Z.onCaughtError),Z.onRecoverableError!==void 0&&(z=Z.onRecoverableError)),Z=UW($,1,!1,null,null,Q,Y,null,U,B,z,_W),$[i8]=Z.current,ZX($),new LX(Z)},YS.hydrateRoot=function($,Z,Q){if(!I($))throw Error("Target container is not a DOM element.");LW($),Z===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var Y=!1,U="",B=wH,z=RH,w=_H,L=null;return Q!==null&&Q!==void 0&&(Q.unstable_strictMode===!0&&(Y=!0),Q.identifierPrefix!==void 0&&(U=Q.identifierPrefix),Q.onUncaughtError!==void 0&&(B=Q.onUncaughtError),Q.onCaughtError!==void 0&&(z=Q.onCaughtError),Q.onRecoverableError!==void 0&&(w=Q.onRecoverableError),Q.formState!==void 0&&(L=Q.formState)),Z=UW($,1,!0,Z,Q!=null?Q:null,Y,U,L,B,z,w,_W),Z.context=KW(null),Q=Z.current,Y=M6(Q),Y=s2(Y),U=x8(Y),U.callback=null,m8(Q,U,Y),z4(Y,"hydrateRoot()",null),Q=Y,Z.current.lanes=Q,v8(Z,Q),V4(Z),$[i8]=Z.current,ZX($),new YG(Z)},YS.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var f_=T2((Rk,b_)=>{var XS=s(v_());b_.exports=XS});var U0=T2((fS)=>{var c7=s(L1());(function(){function J(k){if(k==null)return null;if(typeof k==="function")return k.$$typeof===d?null:k.displayName||k.name||null;if(typeof k==="string")return k;switch(k){case V:return"Fragment";case j:return"Profiler";case I:return"StrictMode";case a:return"Suspense";case Q0:return"SuspenseList";case X0:return"Activity"}if(typeof k==="object")switch(typeof k.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),k.$$typeof){case E:return"Portal";case p:return k.displayName||"Context";case h:return(k._context.displayName||"Context")+".Consumer";case n:var o=k.render;return k=k.displayName,k||(k=o.displayName||o.name||"",k=k!==""?"ForwardRef("+k+")":"ForwardRef"),k;case t:return o=k.displayName||null,o!==null?o:J(k.type)||"Memo";case i:o=k._payload,k=k._init;try{return J(k(o))}catch(W0){}}return null}function G(k){return""+k}function q(k){try{G(k);var o=!1}catch(p0){o=!0}if(o){o=console;var W0=o.error,z0=typeof Symbol==="function"&&Symbol.toStringTag&&k[Symbol.toStringTag]||k.constructor.name||"Object";return W0.call(o,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",z0),G(k)}}function X(k){if(k===V)return"<>";if(typeof k==="object"&&k!==null&&k.$$typeof===i)return"<...>";try{var o=J(k);return o?"<"+o+">":"<...>"}catch(W0){return"<...>"}}function N(){var k=H0.A;return k===null?null:k.getOwner()}function K(){return Error("react-stack-top-frame")}function H(k){if(P0.call(k,"key")){var o=Object.getOwnPropertyDescriptor(k,"key").get;if(o&&o.isReactWarning)return!1}return k.key!==void 0}function F(k,o){function W0(){l||(l=!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)",o))}W0.isReactWarning=!0,Object.defineProperty(k,"key",{get:W0,configurable:!0})}function W(){var k=J(this.type);return Y0[k]||(Y0[k]=!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.")),k=this.props.ref,k!==void 0?k:null}function M(k,o,W0,z0,p0,m1){var b0=W0.ref;return k={$$typeof:O,type:k,key:o,props:W0,_owner:z0},(b0!==void 0?b0:null)!==null?Object.defineProperty(k,"ref",{enumerable:!1,get:W}):Object.defineProperty(k,"ref",{enumerable:!1,value:null}),k._store={},Object.defineProperty(k._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(k,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(k,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:p0}),Object.defineProperty(k,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:m1}),Object.freeze&&(Object.freeze(k.props),Object.freeze(k)),k}function R(k,o,W0,z0,p0,m1){var b0=o.children;if(b0!==void 0)if(z0)if(O0(b0)){for(z0=0;z0<b0.length;z0++)_(b0[z0]);Object.freeze&&Object.freeze(b0)}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 _(b0);if(P0.call(o,"key")){b0=J(k);var o1=Object.keys(o).filter(function(i6){return i6!=="key"});z0=0<o1.length?"{key: someKey, "+o1.join(": ..., ")+": ...}":"{key: someKey}",d0[b0+z0]||(o1=0<o1.length?"{"+o1.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} />`,
|
|
235
|
+
<%s key={someKey} {...props} />`,z0,b0,o1,b0),d0[b0+z0]=!0)}if(b0=null,W0!==void 0&&(q(W0),b0=""+W0),H(o)&&(q(o.key),b0=""+o.key),"key"in o){W0={};for(var V5 in o)V5!=="key"&&(W0[V5]=o[V5])}else W0=o;return b0&&F(W0,typeof k==="function"?k.displayName||k.name||"Unknown":k),M(k,b0,W0,N(),p0,m1)}function _(k){P(k)?k._store&&(k._store.validated=1):typeof k==="object"&&k!==null&&k.$$typeof===i&&(k._payload.status==="fulfilled"?P(k._payload.value)&&k._payload.value._store&&(k._payload.value._store.validated=1):k._store&&(k._store.validated=1))}function P(k){return typeof k==="object"&&k!==null&&k.$$typeof===O}var O=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),V=Symbol.for("react.fragment"),I=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),p=Symbol.for("react.context"),n=Symbol.for("react.forward_ref"),a=Symbol.for("react.suspense"),Q0=Symbol.for("react.suspense_list"),t=Symbol.for("react.memo"),i=Symbol.for("react.lazy"),X0=Symbol.for("react.activity"),d=Symbol.for("react.client.reference"),H0=c7.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P0=Object.prototype.hasOwnProperty,O0=Array.isArray,v0=console.createTask?console.createTask:function(){return null};c7={react_stack_bottom_frame:function(k){return k()}};var l,Y0={},F0=c7.react_stack_bottom_frame.bind(c7,K)(),a0=v0(X(K)),d0={};fS.Fragment=V,fS.jsxDEV=function(k,o,W0,z0){var p0=1e4>H0.recentlyCreatedOwnerStacks++;return R(k,o,W0,z0,p0?Error("react-stack-top-frame"):F0,p0?v0(X(k)):a0)}})()});var RL=T2((lS)=>{var r7=s(L1());(function(){function J(k){if(k==null)return null;if(typeof k==="function")return k.$$typeof===d?null:k.displayName||k.name||null;if(typeof k==="string")return k;switch(k){case V:return"Fragment";case j:return"Profiler";case I:return"StrictMode";case a:return"Suspense";case Q0:return"SuspenseList";case X0:return"Activity"}if(typeof k==="object")switch(typeof k.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),k.$$typeof){case E:return"Portal";case p:return k.displayName||"Context";case h:return(k._context.displayName||"Context")+".Consumer";case n:var o=k.render;return k=k.displayName,k||(k=o.displayName||o.name||"",k=k!==""?"ForwardRef("+k+")":"ForwardRef"),k;case t:return o=k.displayName||null,o!==null?o:J(k.type)||"Memo";case i:o=k._payload,k=k._init;try{return J(k(o))}catch(W0){}}return null}function G(k){return""+k}function q(k){try{G(k);var o=!1}catch(p0){o=!0}if(o){o=console;var W0=o.error,z0=typeof Symbol==="function"&&Symbol.toStringTag&&k[Symbol.toStringTag]||k.constructor.name||"Object";return W0.call(o,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",z0),G(k)}}function X(k){if(k===V)return"<>";if(typeof k==="object"&&k!==null&&k.$$typeof===i)return"<...>";try{var o=J(k);return o?"<"+o+">":"<...>"}catch(W0){return"<...>"}}function N(){var k=H0.A;return k===null?null:k.getOwner()}function K(){return Error("react-stack-top-frame")}function H(k){if(P0.call(k,"key")){var o=Object.getOwnPropertyDescriptor(k,"key").get;if(o&&o.isReactWarning)return!1}return k.key!==void 0}function F(k,o){function W0(){l||(l=!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)",o))}W0.isReactWarning=!0,Object.defineProperty(k,"key",{get:W0,configurable:!0})}function W(){var k=J(this.type);return Y0[k]||(Y0[k]=!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.")),k=this.props.ref,k!==void 0?k:null}function M(k,o,W0,z0,p0,m1){var b0=W0.ref;return k={$$typeof:O,type:k,key:o,props:W0,_owner:z0},(b0!==void 0?b0:null)!==null?Object.defineProperty(k,"ref",{enumerable:!1,get:W}):Object.defineProperty(k,"ref",{enumerable:!1,value:null}),k._store={},Object.defineProperty(k._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(k,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(k,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:p0}),Object.defineProperty(k,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:m1}),Object.freeze&&(Object.freeze(k.props),Object.freeze(k)),k}function R(k,o,W0,z0,p0,m1){var b0=o.children;if(b0!==void 0)if(z0)if(O0(b0)){for(z0=0;z0<b0.length;z0++)_(b0[z0]);Object.freeze&&Object.freeze(b0)}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 _(b0);if(P0.call(o,"key")){b0=J(k);var o1=Object.keys(o).filter(function(i6){return i6!=="key"});z0=0<o1.length?"{key: someKey, "+o1.join(": ..., ")+": ...}":"{key: someKey}",d0[b0+z0]||(o1=0<o1.length?"{"+o1.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
236
236
|
let props = %s;
|
|
237
237
|
<%s {...props} />
|
|
238
238
|
React keys must be passed directly to JSX without using spread:
|
|
239
239
|
let props = %s;
|
|
240
|
-
<%s key={someKey} {...props} />`,
|
|
240
|
+
<%s key={someKey} {...props} />`,z0,b0,o1,b0),d0[b0+z0]=!0)}if(b0=null,W0!==void 0&&(q(W0),b0=""+W0),H(o)&&(q(o.key),b0=""+o.key),"key"in o){W0={};for(var V5 in o)V5!=="key"&&(W0[V5]=o[V5])}else W0=o;return b0&&F(W0,typeof k==="function"?k.displayName||k.name||"Unknown":k),M(k,b0,W0,N(),p0,m1)}function _(k){P(k)?k._store&&(k._store.validated=1):typeof k==="object"&&k!==null&&k.$$typeof===i&&(k._payload.status==="fulfilled"?P(k._payload.value)&&k._payload.value._store&&(k._payload.value._store.validated=1):k._store&&(k._store.validated=1))}function P(k){return typeof k==="object"&&k!==null&&k.$$typeof===O}var O=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),V=Symbol.for("react.fragment"),I=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),p=Symbol.for("react.context"),n=Symbol.for("react.forward_ref"),a=Symbol.for("react.suspense"),Q0=Symbol.for("react.suspense_list"),t=Symbol.for("react.memo"),i=Symbol.for("react.lazy"),X0=Symbol.for("react.activity"),d=Symbol.for("react.client.reference"),H0=r7.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P0=Object.prototype.hasOwnProperty,O0=Array.isArray,v0=console.createTask?console.createTask:function(){return null};r7={react_stack_bottom_frame:function(k){return k()}};var l,Y0={},F0=r7.react_stack_bottom_frame.bind(r7,K)(),a0=v0(X(K)),d0={};lS.Fragment=V,lS.jsx=function(k,o,W0){var z0=1e4>H0.recentlyCreatedOwnerStacks++;return R(k,o,W0,!1,z0?Error("react-stack-top-frame"):F0,z0?v0(X(k)):a0)},lS.jsxs=function(k,o,W0){var z0=1e4>H0.recentlyCreatedOwnerStacks++;return R(k,o,W0,!0,z0?Error("react-stack-top-frame"):F0,z0?v0(X(k)):a0)}})()});/*!
|
|
241
241
|
* @kurkle/color v0.3.4
|
|
242
242
|
* https://github.com/kurkle/color#readme
|
|
243
243
|
* (c) 2024 Jukka Kurkela
|
|
244
244
|
* Released under the MIT License
|
|
245
|
-
*/function
|
|
245
|
+
*/function ZJ(J){return J+0.5|0}var C2=(J,G,q)=>Math.max(Math.min(J,q),G);function $J(J){return C2(ZJ(J*2.55),0,255)}function O2(J){return C2(ZJ(J*255),0,255)}function L8(J){return C2(ZJ(J/2.55)/100,0,1)}function Uw(J){return C2(ZJ(J*100),0,100)}var p6={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},aN=[..."0123456789ABCDEF"],nO=(J)=>aN[J&15],oO=(J)=>aN[(J&240)>>4]+aN[J&15],F3=(J)=>(J&240)>>4===(J&15),aO=(J)=>F3(J.r)&&F3(J.g)&&F3(J.b)&&F3(J.a);function iO(J){var G=J.length,q;if(J[0]==="#"){if(G===4||G===5)q={r:255&p6[J[1]]*17,g:255&p6[J[2]]*17,b:255&p6[J[3]]*17,a:G===5?p6[J[4]]*17:255};else if(G===7||G===9)q={r:p6[J[1]]<<4|p6[J[2]],g:p6[J[3]]<<4|p6[J[4]],b:p6[J[5]]<<4|p6[J[6]],a:G===9?p6[J[7]]<<4|p6[J[8]]:255}}return q}var tO=(J,G)=>J<255?G(J):"";function eO(J){var G=aO(J)?nO:oO;return J?"#"+G(J.r)+G(J.g)+G(J.b)+tO(J.a,G):void 0}var $I=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Fw(J,G,q){let X=G*Math.min(q,1-q),N=(K,H=(K+J/30)%12)=>q-X*Math.max(Math.min(H-3,9-H,1),-1);return[N(0),N(8),N(4)]}function ZI(J,G,q){let X=(N,K=(N+J/60)%6)=>q-q*G*Math.max(Math.min(K,4-K,1),0);return[X(5),X(3),X(1)]}function JI(J,G,q){let X=Fw(J,1,0.5),N;if(G+q>1)N=1/(G+q),G*=N,q*=N;for(N=0;N<3;N++)X[N]*=1-G-q,X[N]+=G;return X}function QI(J,G,q,X,N){if(J===N)return(G-q)/X+(G<q?6:0);if(G===N)return(q-J)/X+2;return(J-G)/X+4}function iN(J){let q=J.r/255,X=J.g/255,N=J.b/255,K=Math.max(q,X,N),H=Math.min(q,X,N),F=(K+H)/2,W,M,R;if(K!==H)R=K-H,M=F>0.5?R/(2-K-H):R/(K+H),W=QI(q,X,N,R,K),W=W*60+0.5;return[W|0,M||0,F]}function tN(J,G,q,X){return(Array.isArray(G)?J(G[0],G[1],G[2]):J(G,q,X)).map(O2)}function eN(J,G,q){return tN(Fw,J,G,q)}function GI(J,G,q){return tN(JI,J,G,q)}function qI(J,G,q){return tN(ZI,J,G,q)}function Ww(J){return(J%360+360)%360}function YI(J){let G=$I.exec(J),q=255,X;if(!G)return;if(G[5]!==X)q=G[6]?$J(+G[5]):O2(+G[5]);let N=Ww(+G[2]),K=+G[3]/100,H=+G[4]/100;if(G[1]==="hwb")X=GI(N,K,H);else if(G[1]==="hsv")X=qI(N,K,H);else X=eN(N,K,H);return{r:X[0],g:X[1],b:X[2],a:q}}function XI(J,G){var q=iN(J);q[0]=Ww(q[0]+G),q=eN(q),J.r=q[0],J.g=q[1],J.b=q[2]}function NI(J){if(!J)return;let G=iN(J),q=G[0],X=Uw(G[1]),N=Uw(G[2]);return J.a<255?`hsla(${q}, ${X}%, ${N}%, ${L8(J.a)})`:`hsl(${q}, ${X}%, ${N}%)`}var Kw={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},Bw={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function UI(){let J={},G=Object.keys(Bw),q=Object.keys(Kw),X,N,K,H,F;for(X=0;X<G.length;X++){H=F=G[X];for(N=0;N<q.length;N++)K=q[N],F=F.replace(K,Kw[K]);K=parseInt(Bw[H],16),J[F]=[K>>16&255,K>>8&255,K&255]}return J}var W3;function KI(J){if(!W3)W3=UI(),W3.transparent=[0,0,0,0];let G=W3[J.toLowerCase()];return G&&{r:G[0],g:G[1],b:G[2],a:G.length===4?G[3]:255}}var BI=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function HI(J){let G=BI.exec(J),q=255,X,N,K;if(!G)return;if(G[7]!==X){let H=+G[7];q=G[8]?$J(H):C2(H*255,0,255)}return X=+G[1],N=+G[3],K=+G[5],X=255&(G[2]?$J(X):C2(X,0,255)),N=255&(G[4]?$J(N):C2(N,0,255)),K=255&(G[6]?$J(K):C2(K,0,255)),{r:X,g:N,b:K,a:q}}function FI(J){return J&&(J.a<255?`rgba(${J.r}, ${J.g}, ${J.b}, ${L8(J.a)})`:`rgb(${J.r}, ${J.g}, ${J.b})`)}var oN=(J)=>J<=0.0031308?J*12.92:Math.pow(J,0.4166666666666667)*1.055-0.055,Q$=(J)=>J<=0.04045?J/12.92:Math.pow((J+0.055)/1.055,2.4);function WI(J,G,q){let X=Q$(L8(J.r)),N=Q$(L8(J.g)),K=Q$(L8(J.b));return{r:O2(oN(X+q*(Q$(L8(G.r))-X))),g:O2(oN(N+q*(Q$(L8(G.g))-N))),b:O2(oN(K+q*(Q$(L8(G.b))-K))),a:J.a+q*(G.a-J.a)}}function z3(J,G,q){if(J){let X=iN(J);X[G]=Math.max(0,Math.min(X[G]+X[G]*q,G===0?360:1)),X=eN(X),J.r=X[0],J.g=X[1],J.b=X[2]}}function zw(J,G){return J?Object.assign(G||{},J):J}function Hw(J){var G={r:0,g:0,b:0,a:255};if(Array.isArray(J)){if(J.length>=3){if(G={r:J[0],g:J[1],b:J[2],a:255},J.length>3)G.a=O2(J[3])}}else G=zw(J,{r:0,g:0,b:0,a:1}),G.a=O2(G.a);return G}function zI(J){if(J.charAt(0)==="r")return HI(J);return YI(J)}class G${constructor(J){if(J instanceof G$)return J;let G=typeof J,q;if(G==="object")q=Hw(J);else if(G==="string")q=iO(J)||KI(J)||zI(J);this._rgb=q,this._valid=!!q}get valid(){return this._valid}get rgb(){var J=zw(this._rgb);if(J)J.a=L8(J.a);return J}set rgb(J){this._rgb=Hw(J)}rgbString(){return this._valid?FI(this._rgb):void 0}hexString(){return this._valid?eO(this._rgb):void 0}hslString(){return this._valid?NI(this._rgb):void 0}mix(J,G){if(J){let q=this.rgb,X=J.rgb,N,K=G===N?0.5:G,H=2*K-1,F=q.a-X.a,W=((H*F===-1?H:(H+F)/(1+H*F))+1)/2;N=1-W,q.r=255&W*q.r+N*X.r+0.5,q.g=255&W*q.g+N*X.g+0.5,q.b=255&W*q.b+N*X.b+0.5,q.a=K*q.a+(1-K)*X.a,this.rgb=q}return this}interpolate(J,G){if(J)this._rgb=WI(this._rgb,J._rgb,G);return this}clone(){return new G$(this.rgb)}alpha(J){return this._rgb.a=O2(J),this}clearer(J){let G=this._rgb;return G.a*=1-J,this}greyscale(){let J=this._rgb,G=ZJ(J.r*0.3+J.g*0.59+J.b*0.11);return J.r=J.g=J.b=G,this}opaquer(J){let G=this._rgb;return G.a*=1+J,this}negate(){let J=this._rgb;return J.r=255-J.r,J.g=255-J.g,J.b=255-J.b,this}lighten(J){return z3(this._rgb,2,J),this}darken(J){return z3(this._rgb,2,-J),this}saturate(J){return z3(this._rgb,1,J),this}desaturate(J){return z3(this._rgb,1,-J),this}rotate(J){return XI(this._rgb,J),this}}/*!
|
|
246
246
|
* Chart.js v4.5.1
|
|
247
247
|
* https://www.chartjs.org
|
|
248
248
|
* (c) 2025 Chart.js Contributors
|
|
249
249
|
* Released under the MIT License
|
|
250
|
-
*/function c4(){}var sR=(()=>{let Q=0;return()=>Q++})();function J1(Q){return Q===null||Q===void 0}function j1(Q){if(Array.isArray&&Array.isArray(Q))return!0;let J=Object.prototype.toString.call(Q);if(J.slice(0,7)==="[object"&&J.slice(-6)==="Array]")return!0;return!1}function $1(Q){return Q!==null&&Object.prototype.toString.call(Q)==="[object Object]"}function x1(Q){return(typeof Q==="number"||Q instanceof Number)&&isFinite(+Q)}function G6(Q,J){return x1(Q)?Q:J}function n0(Q,J){return typeof Q>"u"?J:Q}var oR=(Q,J)=>typeof Q==="string"&&Q.endsWith("%")?parseFloat(Q)/100*J:+Q;function V1(Q,J,X){if(Q&&typeof Q.call==="function")return Q.apply(X,J)}function W1(Q,J,X,q){let N,K,H;if(j1(Q))if(K=Q.length,q)for(N=K-1;N>=0;N--)J.call(X,Q[N],N);else for(N=0;N<K;N++)J.call(X,Q[N],N);else if($1(Q)){H=Object.keys(Q),K=H.length;for(N=0;N<K;N++)J.call(X,Q[H[N]],H[N])}}function wQ(Q,J){let X,q,N,K;if(!Q||!J||Q.length!==J.length)return!1;for(X=0,q=Q.length;X<q;++X)if(N=Q[X],K=J[X],N.datasetIndex!==K.datasetIndex||N.index!==K.index)return!1;return!0}function b3(Q){if(j1(Q))return Q.map(b3);if($1(Q)){let J=Object.create(null),X=Object.keys(Q),q=X.length,N=0;for(;N<q;++N)J[X[N]]=b3(Q[X[N]]);return J}return Q}function aR(Q){return["__proto__","prototype","constructor"].indexOf(Q)===-1}function MV(Q,J,X,q){if(!aR(Q))return;let N=J[Q],K=X[Q];if($1(N)&&$1(K))F$(N,K,q);else J[Q]=b3(K)}function F$(Q,J,X){let q=j1(J)?J:[J],N=q.length;if(!$1(Q))return Q;X=X||{};let K=X.merger||MV,H;for(let F=0;F<N;++F){if(H=q[F],!$1(H))continue;let M=Object.keys(H);for(let w=0,R=M.length;w<R;++w)K(M[w],Q,H,X)}return Q}function W$(Q,J){return F$(Q,J,{merger:WV})}function WV(Q,J,X){if(!aR(Q))return;let q=J[Q],N=X[Q];if($1(q)&&$1(N))W$(q,N);else if(!Object.prototype.hasOwnProperty.call(J,Q))J[Q]=b3(N)}var hR={"":(Q)=>Q,x:(Q)=>Q.x,y:(Q)=>Q.y};function wV(Q){let J=Q.split("."),X=[],q="";for(let N of J)if(q+=N,q.endsWith("\\"))q=q.slice(0,-1)+".";else X.push(q),q="";return X}function RV(Q){let J=wV(Q);return(X)=>{for(let q of J){if(q==="")break;X=X&&X[q]}return X}}function x9(Q,J){return(hR[J]||(hR[J]=RV(J)))(Q)}function g3(Q){return Q.charAt(0).toUpperCase()+Q.slice(1)}var w$=(Q)=>typeof Q<"u",O8=(Q)=>typeof Q==="function",LU=(Q,J)=>{if(Q.size!==J.size)return!1;for(let X of Q)if(!J.has(X))return!1;return!0};function iR(Q){return Q.type==="mouseup"||Q.type==="click"||Q.type==="contextmenu"}var s1=Math.PI,Q6=2*s1,zV=Q6+s1,k3=Number.POSITIVE_INFINITY,_V=s1/180,Z6=s1/2,g9=s1/4,uR=s1*2/3,V8=Math.log10,H4=Math.sign;function R$(Q,J,X){return Math.abs(Q-J)<X}function PU(Q){let J=Math.round(Q);Q=R$(Q,J,Q/1000)?J:Q;let X=Math.pow(10,Math.floor(V8(Q))),q=Q/X;return(q<=1?1:q<=2?2:q<=5?5:10)*X}function tR(Q){let J=[],X=Math.sqrt(Q),q;for(q=1;q<X;q++)if(Q%q===0)J.push(q),J.push(Q/q);if(X===(X|0))J.push(X);return J.sort((N,K)=>N-K).pop(),J}function LV(Q){return typeof Q==="symbol"||typeof Q==="object"&&Q!==null&&!((Symbol.toPrimitive in Q)||("toString"in Q)||("valueOf"in Q))}function z$(Q){return!LV(Q)&&!isNaN(parseFloat(Q))&&isFinite(Q)}function eR(Q,J){let X=Math.round(Q);return X-J<=Q&&X+J>=Q}function TU(Q,J,X){let q,N,K;for(q=0,N=Q.length;q<N;q++)if(K=Q[q][X],!isNaN(K))J.min=Math.min(J.min,K),J.max=Math.max(J.max,K)}function A8(Q){return Q*(s1/180)}function h3(Q){return Q*(180/s1)}function CU(Q){if(!x1(Q))return;let J=1,X=0;while(Math.round(Q*J)/J!==Q)J*=10,X++;return X}function $z(Q,J){let X=J.x-Q.x,q=J.y-Q.y,N=Math.sqrt(X*X+q*q),K=Math.atan2(q,X);if(K<-0.5*s1)K+=Q6;return{angle:K,distance:N}}function f3(Q,J){return Math.sqrt(Math.pow(J.x-Q.x,2)+Math.pow(J.y-Q.y,2))}function PV(Q,J){return(Q-J+zV)%Q6-s1}function $6(Q){return(Q%Q6+Q6)%Q6}function IU(Q,J,X,q){let N=$6(Q),K=$6(J),H=$6(X),F=$6(K-N),M=$6(H-N),w=$6(N-K),R=$6(N-H);return N===K||N===H||q&&K===H||F>M&&w<R}function J6(Q,J,X){return Math.max(J,Math.min(X,Q))}function Zz(Q){return J6(Q,-32768,32767)}function E8(Q,J,X,q=0.000001){return Q>=Math.min(J,X)-q&&Q<=Math.max(J,X)+q}function u3(Q,J,X){X=X||((H)=>Q[H]<J);let q=Q.length-1,N=0,K;while(q-N>1)if(K=N+q>>1,X(K))N=K;else q=K;return{lo:N,hi:q}}var v2=(Q,J,X,q)=>u3(Q,X,q?(N)=>{let K=Q[N][J];return K<X||K===X&&Q[N+1][J]===X}:(N)=>Q[N][J]<X),Qz=(Q,J,X)=>u3(Q,X,(q)=>Q[q][J]>=X);function Jz(Q,J,X){let q=0,N=Q.length;while(q<N&&Q[q]<J)q++;while(N>q&&Q[N-1]>X)N--;return q>0||N<Q.length?Q.slice(q,N):Q}var Gz=["push","pop","shift","splice","unshift"];function Xz(Q,J){if(Q._chartjs){Q._chartjs.listeners.push(J);return}Object.defineProperty(Q,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[J]}}),Gz.forEach((X)=>{let q="_onData"+g3(X),N=Q[X];Object.defineProperty(Q,X,{configurable:!0,enumerable:!1,value(...K){let H=N.apply(this,K);return Q._chartjs.listeners.forEach((F)=>{if(typeof F[q]==="function")F[q](...K)}),H}})})}function OU(Q,J){let X=Q._chartjs;if(!X)return;let q=X.listeners,N=q.indexOf(J);if(N!==-1)q.splice(N,1);if(q.length>0)return;Gz.forEach((K)=>{delete Q[K]}),delete Q._chartjs}function VU(Q){let J=new Set(Q);if(J.size===Q.length)return Q;return Array.from(J)}var AU=function(){if(typeof window>"u")return function(Q){return Q()};return window.requestAnimationFrame}();function EU(Q,J){let X=[],q=!1;return function(...N){if(X=N,!q)q=!0,AU.call(window,()=>{q=!1,Q.apply(J,X)})}}function qz(Q,J){let X;return function(...q){if(J)clearTimeout(X),X=setTimeout(Q,J,q);else Q.apply(this,q);return J}}var x3=(Q)=>Q==="start"?"left":Q==="end"?"right":"center",C5=(Q,J,X)=>Q==="start"?J:Q==="end"?X:(J+X)/2,Yz=(Q,J,X,q)=>{return Q===(q?"left":"right")?X:Q==="center"?(J+X)/2:J};function Nz(Q,J,X){let q=J.length,N=0,K=q;if(Q._sorted){let{iScale:H,vScale:F,_parsed:M}=Q,w=Q.dataset?Q.dataset.options?Q.dataset.options.spanGaps:null:null,R=H.axis,{min:_,max:P,minDefined:I,maxDefined:A}=H.getUserBounds();if(I){if(N=Math.min(v2(M,R,_).lo,X?q:v2(J,R,H.getPixelForValue(_)).lo),w){let V=M.slice(0,N+1).reverse().findIndex((O)=>!J1(O[F.axis]));N-=Math.max(0,V)}N=J6(N,0,q-1)}if(A){let V=Math.max(v2(M,H.axis,P,!0).hi+1,X?0:v2(J,R,H.getPixelForValue(P),!0).hi+1);if(w){let O=M.slice(V-1).findIndex((D)=>!J1(D[F.axis]));V+=Math.max(0,O)}K=J6(V,N,q)-N}else K=q-N}return{start:N,count:K}}function Uz(Q){let{xScale:J,yScale:X,_scaleRanges:q}=Q,N={xmin:J.min,xmax:J.max,ymin:X.min,ymax:X.max};if(!q)return Q._scaleRanges=N,!0;let K=q.xmin!==J.min||q.xmax!==J.max||q.ymin!==X.min||q.ymax!==X.max;return Object.assign(q,N),K}var j3=(Q)=>Q===0||Q===1,xR=(Q,J,X)=>-(Math.pow(2,10*(Q-=1))*Math.sin((Q-J)*Q6/X)),mR=(Q,J,X)=>Math.pow(2,-10*Q)*Math.sin((Q-J)*Q6/X)+1,H$={linear:(Q)=>Q,easeInQuad:(Q)=>Q*Q,easeOutQuad:(Q)=>-Q*(Q-2),easeInOutQuad:(Q)=>(Q/=0.5)<1?0.5*Q*Q:-0.5*(--Q*(Q-2)-1),easeInCubic:(Q)=>Q*Q*Q,easeOutCubic:(Q)=>(Q-=1)*Q*Q+1,easeInOutCubic:(Q)=>(Q/=0.5)<1?0.5*Q*Q*Q:0.5*((Q-=2)*Q*Q+2),easeInQuart:(Q)=>Q*Q*Q*Q,easeOutQuart:(Q)=>-((Q-=1)*Q*Q*Q-1),easeInOutQuart:(Q)=>(Q/=0.5)<1?0.5*Q*Q*Q*Q:-0.5*((Q-=2)*Q*Q*Q-2),easeInQuint:(Q)=>Q*Q*Q*Q*Q,easeOutQuint:(Q)=>(Q-=1)*Q*Q*Q*Q+1,easeInOutQuint:(Q)=>(Q/=0.5)<1?0.5*Q*Q*Q*Q*Q:0.5*((Q-=2)*Q*Q*Q*Q+2),easeInSine:(Q)=>-Math.cos(Q*Z6)+1,easeOutSine:(Q)=>Math.sin(Q*Z6),easeInOutSine:(Q)=>-0.5*(Math.cos(s1*Q)-1),easeInExpo:(Q)=>Q===0?0:Math.pow(2,10*(Q-1)),easeOutExpo:(Q)=>Q===1?1:-Math.pow(2,-10*Q)+1,easeInOutExpo:(Q)=>j3(Q)?Q:Q<0.5?0.5*Math.pow(2,10*(Q*2-1)):0.5*(-Math.pow(2,-10*(Q*2-1))+2),easeInCirc:(Q)=>Q>=1?Q:-(Math.sqrt(1-Q*Q)-1),easeOutCirc:(Q)=>Math.sqrt(1-(Q-=1)*Q),easeInOutCirc:(Q)=>(Q/=0.5)<1?-0.5*(Math.sqrt(1-Q*Q)-1):0.5*(Math.sqrt(1-(Q-=2)*Q)+1),easeInElastic:(Q)=>j3(Q)?Q:xR(Q,0.075,0.3),easeOutElastic:(Q)=>j3(Q)?Q:mR(Q,0.075,0.3),easeInOutElastic(Q){return j3(Q)?Q:Q<0.5?0.5*xR(Q*2,0.1125,0.45):0.5+0.5*mR(Q*2-1,0.1125,0.45)},easeInBack(Q){return Q*Q*(2.70158*Q-1.70158)},easeOutBack(Q){return(Q-=1)*Q*(2.70158*Q+1.70158)+1},easeInOutBack(Q){let J=1.70158;if((Q/=0.5)<1)return 0.5*(Q*Q*(((J*=1.525)+1)*Q-J));return 0.5*((Q-=2)*Q*(((J*=1.525)+1)*Q+J)+2)},easeInBounce:(Q)=>1-H$.easeOutBounce(1-Q),easeOutBounce(Q){if(Q<0.36363636363636365)return 7.5625*Q*Q;if(Q<0.7272727272727273)return 7.5625*(Q-=0.5454545454545454)*Q+0.75;if(Q<0.9090909090909091)return 7.5625*(Q-=0.8181818181818182)*Q+0.9375;return 7.5625*(Q-=0.9545454545454546)*Q+0.984375},easeInOutBounce:(Q)=>Q<0.5?H$.easeInBounce(Q*2)*0.5:H$.easeOutBounce(Q*2-1)*0.5+0.5};function SU(Q){if(Q&&typeof Q==="object"){let J=Q.toString();return J==="[object CanvasPattern]"||J==="[object CanvasGradient]"}return!1}function jU(Q){return SU(Q)?Q:new B$(Q)}function zU(Q){return SU(Q)?Q:new B$(Q).saturate(0.5).darken(0.1).hexString()}var TV=["x","y","borderWidth","radius","tension"],CV=["color","borderColor","backgroundColor"];function IV(Q){Q.set("animation",{delay:void 0,duration:1000,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),Q.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:(J)=>J!=="onProgress"&&J!=="onComplete"&&J!=="fn"}),Q.set("animations",{colors:{type:"color",properties:CV},numbers:{type:"number",properties:TV}}),Q.describe("animations",{_fallback:"animation"}),Q.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:(J)=>J|0}}}})}function OV(Q){Q.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}var dR=new Map;function VV(Q,J){J=J||{};let X=Q+JSON.stringify(J),q=dR.get(X);if(!q)q=new Intl.NumberFormat(Q,J),dR.set(X,q);return q}function m3(Q,J,X){return VV(J,X).format(Q)}var Kz={values(Q){return j1(Q)?Q:""+Q},numeric(Q,J,X){if(Q===0)return"0";let q=this.chart.options.locale,N,K=Q;if(X.length>1){let w=Math.max(Math.abs(X[0].value),Math.abs(X[X.length-1].value));if(w<0.0001||w>1000000000000000)N="scientific";K=AV(Q,X)}let H=V8(Math.abs(K)),F=isNaN(H)?1:Math.max(Math.min(-1*Math.floor(H),20),0),M={notation:N,minimumFractionDigits:F,maximumFractionDigits:F};return Object.assign(M,this.options.ticks.format),m3(Q,q,M)},logarithmic(Q,J,X){if(Q===0)return"0";let q=X[J].significand||Q/Math.pow(10,Math.floor(V8(Q)));if([1,2,3,5,10,15].includes(q)||J>0.8*X.length)return Kz.numeric.call(this,Q,J,X);return""}};function AV(Q,J){let X=J.length>3?J[2].value-J[1].value:J[1].value-J[0].value;if(Math.abs(X)>=1&&Q!==Math.floor(Q))X=Q-Math.floor(Q);return X}var RQ={formatters:Kz};function EV(Q){Q.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(J,X)=>X.lineWidth,tickColor:(J,X)=>X.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:RQ.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),Q.route("scale.ticks","color","","color"),Q.route("scale.grid","color","","borderColor"),Q.route("scale.border","color","","borderColor"),Q.route("scale.title","color","","color"),Q.describe("scale",{_fallback:!1,_scriptable:(J)=>!J.startsWith("before")&&!J.startsWith("after")&&J!=="callback"&&J!=="parser",_indexable:(J)=>J!=="borderDash"&&J!=="tickBorderDash"&&J!=="dash"}),Q.describe("scales",{_fallback:"scale"}),Q.describe("scale.ticks",{_scriptable:(J)=>J!=="backdropPadding"&&J!=="callback",_indexable:(J)=>J!=="backdropPadding"})}var k2=Object.create(null),d3=Object.create(null);function MQ(Q,J){if(!J)return Q;let X=J.split(".");for(let q=0,N=X.length;q<N;++q){let K=X[q];Q=Q[K]||(Q[K]=Object.create(null))}return Q}function _U(Q,J,X){if(typeof J==="string")return F$(MQ(Q,J),X);return F$(MQ(Q,""),J)}class Bz{constructor(Q,J){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=(X)=>X.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(X,q)=>zU(q.backgroundColor),this.hoverBorderColor=(X,q)=>zU(q.borderColor),this.hoverColor=(X,q)=>zU(q.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(Q),this.apply(J)}set(Q,J){return _U(this,Q,J)}get(Q){return MQ(this,Q)}describe(Q,J){return _U(d3,Q,J)}override(Q,J){return _U(k2,Q,J)}route(Q,J,X,q){let N=MQ(this,Q),K=MQ(this,X),H="_"+J;Object.defineProperties(N,{[H]:{value:N[J],writable:!0},[J]:{enumerable:!0,get(){let F=this[H],M=K[q];if($1(F))return Object.assign({},M,F);return n0(F,M)},set(F){this[H]=F}}})}apply(Q){Q.forEach((J)=>J(this))}}var m1=new Bz({_scriptable:(Q)=>!Q.startsWith("on"),_indexable:(Q)=>Q!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[IV,OV,EV]);function SV(Q){if(!Q||J1(Q.size)||J1(Q.family))return null;return(Q.style?Q.style+" ":"")+(Q.weight?Q.weight+" ":"")+Q.size+"px "+Q.family}function WQ(Q,J,X,q,N){let K=J[N];if(!K)K=J[N]=Q.measureText(N).width,X.push(N);if(K>q)q=K;return q}function Hz(Q,J,X,q){q=q||{};let N=q.data=q.data||{},K=q.garbageCollect=q.garbageCollect||[];if(q.font!==J)N=q.data={},K=q.garbageCollect=[],q.font=J;Q.save(),Q.font=J;let H=0,F=X.length,M,w,R,_,P;for(M=0;M<F;M++)if(_=X[M],_!==void 0&&_!==null&&!j1(_))H=WQ(Q,N,K,H,_);else if(j1(_)){for(w=0,R=_.length;w<R;w++)if(P=_[w],P!==void 0&&P!==null&&!j1(P))H=WQ(Q,N,K,H,P)}Q.restore();let I=K.length/2;if(I>X.length){for(M=0;M<I;M++)delete N[K[M]];K.splice(0,I)}return H}function f2(Q,J,X){let q=Q.currentDevicePixelRatio,N=X!==0?Math.max(X/2,0.5):0;return Math.round((J-N)*q)/q+N}function DU(Q,J){if(!J&&!Q)return;J=J||Q.getContext("2d"),J.save(),J.resetTransform(),J.clearRect(0,0,Q.width,Q.height),J.restore()}function p3(Q,J,X,q){vU(Q,J,X,q,null)}function vU(Q,J,X,q,N){let K,H,F,M,w,R,_,P,I=J.pointStyle,A=J.rotation,V=J.radius,O=(A||0)*_V;if(I&&typeof I==="object"){if(K=I.toString(),K==="[object HTMLImageElement]"||K==="[object HTMLCanvasElement]"){Q.save(),Q.translate(X,q),Q.rotate(O),Q.drawImage(I,-I.width/2,-I.height/2,I.width,I.height),Q.restore();return}}if(isNaN(V)||V<=0)return;switch(Q.beginPath(),I){default:if(N)Q.ellipse(X,q,N/2,V,0,0,Q6);else Q.arc(X,q,V,0,Q6);Q.closePath();break;case"triangle":R=N?N/2:V,Q.moveTo(X+Math.sin(O)*R,q-Math.cos(O)*V),O+=uR,Q.lineTo(X+Math.sin(O)*R,q-Math.cos(O)*V),O+=uR,Q.lineTo(X+Math.sin(O)*R,q-Math.cos(O)*V),Q.closePath();break;case"rectRounded":w=V*0.516,M=V-w,H=Math.cos(O+g9)*M,_=Math.cos(O+g9)*(N?N/2-w:M),F=Math.sin(O+g9)*M,P=Math.sin(O+g9)*(N?N/2-w:M),Q.arc(X-_,q-F,w,O-s1,O-Z6),Q.arc(X+P,q-H,w,O-Z6,O),Q.arc(X+_,q+F,w,O,O+Z6),Q.arc(X-P,q+H,w,O+Z6,O+s1),Q.closePath();break;case"rect":if(!A){M=Math.SQRT1_2*V,R=N?N/2:M,Q.rect(X-R,q-M,2*R,2*M);break}O+=g9;case"rectRot":_=Math.cos(O)*(N?N/2:V),H=Math.cos(O)*V,F=Math.sin(O)*V,P=Math.sin(O)*(N?N/2:V),Q.moveTo(X-_,q-F),Q.lineTo(X+P,q-H),Q.lineTo(X+_,q+F),Q.lineTo(X-P,q+H),Q.closePath();break;case"crossRot":O+=g9;case"cross":_=Math.cos(O)*(N?N/2:V),H=Math.cos(O)*V,F=Math.sin(O)*V,P=Math.sin(O)*(N?N/2:V),Q.moveTo(X-_,q-F),Q.lineTo(X+_,q+F),Q.moveTo(X+P,q-H),Q.lineTo(X-P,q+H);break;case"star":_=Math.cos(O)*(N?N/2:V),H=Math.cos(O)*V,F=Math.sin(O)*V,P=Math.sin(O)*(N?N/2:V),Q.moveTo(X-_,q-F),Q.lineTo(X+_,q+F),Q.moveTo(X+P,q-H),Q.lineTo(X-P,q+H),O+=g9,_=Math.cos(O)*(N?N/2:V),H=Math.cos(O)*V,F=Math.sin(O)*V,P=Math.sin(O)*(N?N/2:V),Q.moveTo(X-_,q-F),Q.lineTo(X+_,q+F),Q.moveTo(X+P,q-H),Q.lineTo(X-P,q+H);break;case"line":H=N?N/2:Math.cos(O)*V,F=Math.sin(O)*V,Q.moveTo(X-H,q-F),Q.lineTo(X+H,q+F);break;case"dash":Q.moveTo(X,q),Q.lineTo(X+Math.cos(O)*(N?N/2:V),q+Math.sin(O)*V);break;case!1:Q.closePath();break}if(Q.fill(),J.borderWidth>0)Q.stroke()}function p4(Q,J,X){return X=X||0.5,!J||Q&&Q.x>J.left-X&&Q.x<J.right+X&&Q.y>J.top-X&&Q.y<J.bottom+X}function zQ(Q,J){Q.save(),Q.beginPath(),Q.rect(J.left,J.top,J.right-J.left,J.bottom-J.top),Q.clip()}function _Q(Q){Q.restore()}function Fz(Q,J,X,q,N){if(!J)return Q.lineTo(X.x,X.y);if(N==="middle"){let K=(J.x+X.x)/2;Q.lineTo(K,J.y),Q.lineTo(K,X.y)}else if(N==="after"!==!!q)Q.lineTo(J.x,X.y);else Q.lineTo(X.x,J.y);Q.lineTo(X.x,X.y)}function Mz(Q,J,X,q){if(!J)return Q.lineTo(X.x,X.y);Q.bezierCurveTo(q?J.cp1x:J.cp2x,q?J.cp1y:J.cp2y,q?X.cp2x:X.cp1x,q?X.cp2y:X.cp1y,X.x,X.y)}function jV(Q,J){if(J.translation)Q.translate(J.translation[0],J.translation[1]);if(!J1(J.rotation))Q.rotate(J.rotation);if(J.color)Q.fillStyle=J.color;if(J.textAlign)Q.textAlign=J.textAlign;if(J.textBaseline)Q.textBaseline=J.textBaseline}function DV(Q,J,X,q,N){if(N.strikethrough||N.underline){let K=Q.measureText(q),H=J-K.actualBoundingBoxLeft,F=J+K.actualBoundingBoxRight,M=X-K.actualBoundingBoxAscent,w=X+K.actualBoundingBoxDescent,R=N.strikethrough?(M+w)/2:w;Q.strokeStyle=Q.fillStyle,Q.beginPath(),Q.lineWidth=N.decorationWidth||2,Q.moveTo(H,R),Q.lineTo(F,R),Q.stroke()}}function vV(Q,J){let X=Q.fillStyle;Q.fillStyle=J.color,Q.fillRect(J.left,J.top,J.width,J.height),Q.fillStyle=X}function y2(Q,J,X,q,N,K={}){let H=j1(J)?J:[J],F=K.strokeWidth>0&&K.strokeColor!=="",M,w;Q.save(),Q.font=N.string,jV(Q,K);for(M=0;M<H.length;++M){if(w=H[M],K.backdrop)vV(Q,K.backdrop);if(F){if(K.strokeColor)Q.strokeStyle=K.strokeColor;if(!J1(K.strokeWidth))Q.lineWidth=K.strokeWidth;Q.strokeText(w,X,q,K.maxWidth)}Q.fillText(w,X,q,K.maxWidth),DV(Q,X,q,w,K),q+=Number(N.lineHeight)}Q.restore()}function _$(Q,J){let{x:X,y:q,w:N,h:K,radius:H}=J;Q.arc(X+H.topLeft,q+H.topLeft,H.topLeft,1.5*s1,s1,!0),Q.lineTo(X,q+K-H.bottomLeft),Q.arc(X+H.bottomLeft,q+K-H.bottomLeft,H.bottomLeft,s1,Z6,!0),Q.lineTo(X+N-H.bottomRight,q+K),Q.arc(X+N-H.bottomRight,q+K-H.bottomRight,H.bottomRight,Z6,0,!0),Q.lineTo(X+N,q+H.topRight),Q.arc(X+N-H.topRight,q+H.topRight,H.topRight,0,-Z6,!0),Q.lineTo(X+H.topLeft,q)}var bV=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,kV=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function fV(Q,J){let X=(""+Q).match(bV);if(!X||X[1]==="normal")return J*1.2;switch(Q=+X[2],X[3]){case"px":return Q;case"%":Q/=100;break}return J*Q}var yV=(Q)=>+Q||0;function bU(Q,J){let X={},q=$1(J),N=q?Object.keys(J):J,K=$1(Q)?q?(H)=>n0(Q[H],Q[J[H]]):(H)=>Q[H]:()=>Q;for(let H of N)X[H]=yV(K(H));return X}function kU(Q){return bU(Q,{top:"y",right:"x",bottom:"y",left:"x"})}function g2(Q){return bU(Q,["topLeft","topRight","bottomLeft","bottomRight"])}function I5(Q){let J=kU(Q);return J.width=J.left+J.right,J.height=J.top+J.bottom,J}function X5(Q,J){Q=Q||{},J=J||m1.font;let X=n0(Q.size,J.size);if(typeof X==="string")X=parseInt(X,10);let q=n0(Q.style,J.style);if(q&&!(""+q).match(kV))console.warn('Invalid font style specified: "'+q+'"'),q=void 0;let N={family:n0(Q.family,J.family),lineHeight:fV(n0(Q.lineHeight,J.lineHeight),X),size:X,style:q,weight:n0(Q.weight,J.weight),string:""};return N.string=SV(N),N}function LQ(Q,J,X,q){let N=!0,K,H,F;for(K=0,H=Q.length;K<H;++K){if(F=Q[K],F===void 0)continue;if(J!==void 0&&typeof F==="function")F=F(J),N=!1;if(X!==void 0&&j1(F))F=F[X%F.length],N=!1;if(F!==void 0){if(q&&!N)q.cacheable=!1;return F}}}function Wz(Q,J,X){let{min:q,max:N}=Q,K=oR(J,(N-q)/2),H=(F,M)=>X&&F===0?0:F+M;return{min:H(q,-Math.abs(K)),max:H(N,K)}}function S8(Q,J){return Object.assign(Object.create(Q),J)}function c3(Q,J=[""],X,q,N=()=>Q[0]){let K=X||Q;if(typeof q>"u")q=zz("_fallback",Q);let H={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:Q,_rootScopes:K,_fallback:q,_getTarget:N,override:(F)=>c3([F,...Q],J,K,q)};return new Proxy(H,{deleteProperty(F,M){return delete F[M],delete F._keys,delete Q[0][M],!0},get(F,M){return wz(F,M,()=>cV(M,J,Q,F))},getOwnPropertyDescriptor(F,M){return Reflect.getOwnPropertyDescriptor(F._scopes[0],M)},getPrototypeOf(){return Reflect.getPrototypeOf(Q[0])},has(F,M){return cR(F).includes(M)},ownKeys(F){return cR(F)},set(F,M,w){let R=F._storage||(F._storage=N());return F[M]=R[M]=w,delete F._keys,!0}})}function u9(Q,J,X,q){let N={_cacheable:!1,_proxy:Q,_context:J,_subProxy:X,_stack:new Set,_descriptors:fU(Q,q),setContext:(K)=>u9(Q,K,X,q),override:(K)=>u9(Q.override(K),J,X,q)};return new Proxy(N,{deleteProperty(K,H){return delete K[H],delete Q[H],!0},get(K,H,F){return wz(K,H,()=>hV(K,H,F))},getOwnPropertyDescriptor(K,H){return K._descriptors.allKeys?Reflect.has(Q,H)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(Q,H)},getPrototypeOf(){return Reflect.getPrototypeOf(Q)},has(K,H){return Reflect.has(Q,H)},ownKeys(){return Reflect.ownKeys(Q)},set(K,H,F){return Q[H]=F,delete K[H],!0}})}function fU(Q,J={scriptable:!0,indexable:!0}){let{_scriptable:X=J.scriptable,_indexable:q=J.indexable,_allKeys:N=J.allKeys}=Q;return{allKeys:N,scriptable:X,indexable:q,isScriptable:O8(X)?X:()=>X,isIndexable:O8(q)?q:()=>q}}var gV=(Q,J)=>Q?Q+g3(J):J,yU=(Q,J)=>$1(J)&&Q!=="adapters"&&(Object.getPrototypeOf(J)===null||J.constructor===Object);function wz(Q,J,X){if(Object.prototype.hasOwnProperty.call(Q,J)||J==="constructor")return Q[J];let q=X();return Q[J]=q,q}function hV(Q,J,X){let{_proxy:q,_context:N,_subProxy:K,_descriptors:H}=Q,F=q[J];if(O8(F)&&H.isScriptable(J))F=uV(J,F,Q,X);if(j1(F)&&F.length)F=xV(J,F,Q,H.isIndexable);if(yU(J,F))F=u9(F,N,K&&K[J],H);return F}function uV(Q,J,X,q){let{_proxy:N,_context:K,_subProxy:H,_stack:F}=X;if(F.has(Q))throw Error("Recursion detected: "+Array.from(F).join("->")+"->"+Q);F.add(Q);let M=J(K,H||q);if(F.delete(Q),yU(Q,M))M=gU(N._scopes,N,Q,M);return M}function xV(Q,J,X,q){let{_proxy:N,_context:K,_subProxy:H,_descriptors:F}=X;if(typeof K.index<"u"&&q(Q))return J[K.index%J.length];else if($1(J[0])){let M=J,w=N._scopes.filter((R)=>R!==M);J=[];for(let R of M){let _=gU(w,N,Q,R);J.push(u9(_,K,H&&H[Q],F))}}return J}function Rz(Q,J,X){return O8(Q)?Q(J,X):Q}var mV=(Q,J)=>Q===!0?J:typeof Q==="string"?x9(J,Q):void 0;function dV(Q,J,X,q,N){for(let K of J){let H=mV(X,K);if(H){Q.add(H);let F=Rz(H._fallback,X,N);if(typeof F<"u"&&F!==X&&F!==q)return F}else if(H===!1&&typeof q<"u"&&X!==q)return null}return!1}function gU(Q,J,X,q){let N=J._rootScopes,K=Rz(J._fallback,X,q),H=[...Q,...N],F=new Set;F.add(q);let M=pR(F,H,X,K||X,q);if(M===null)return!1;if(typeof K<"u"&&K!==X){if(M=pR(F,H,K,M,q),M===null)return!1}return c3(Array.from(F),[""],N,K,()=>pV(J,X,q))}function pR(Q,J,X,q,N){while(X)X=dV(Q,J,X,q,N);return X}function pV(Q,J,X){let q=Q._getTarget();if(!(J in q))q[J]={};let N=q[J];if(j1(N)&&$1(X))return X;return N||{}}function cV(Q,J,X,q){let N;for(let K of J)if(N=zz(gV(K,Q),X),typeof N<"u")return yU(Q,N)?gU(X,q,Q,N):N}function zz(Q,J){for(let X of J){if(!X)continue;let q=X[Q];if(typeof q<"u")return q}}function cR(Q){let J=Q._keys;if(!J)J=Q._keys=lV(Q._scopes);return J}function lV(Q){let J=new Set;for(let X of Q)for(let q of Object.keys(X).filter((N)=>!N.startsWith("_")))J.add(q);return Array.from(J)}var rV=Number.EPSILON||0.00000000000001,M$=(Q,J)=>J<Q.length&&!Q[J].skip&&Q[J],_z=(Q)=>Q==="x"?"y":"x";function nV(Q,J,X,q){let N=Q.skip?J:Q,K=J,H=X.skip?J:X,F=f3(K,N),M=f3(H,K),w=F/(F+M),R=M/(F+M);w=isNaN(w)?0:w,R=isNaN(R)?0:R;let _=q*w,P=q*R;return{previous:{x:K.x-_*(H.x-N.x),y:K.y-_*(H.y-N.y)},next:{x:K.x+P*(H.x-N.x),y:K.y+P*(H.y-N.y)}}}function sV(Q,J,X){let q=Q.length,N,K,H,F,M,w=M$(Q,0);for(let R=0;R<q-1;++R){if(M=w,w=M$(Q,R+1),!M||!w)continue;if(R$(J[R],0,rV)){X[R]=X[R+1]=0;continue}if(N=X[R]/J[R],K=X[R+1]/J[R],F=Math.pow(N,2)+Math.pow(K,2),F<=9)continue;H=3/Math.sqrt(F),X[R]=N*H*J[R],X[R+1]=K*H*J[R]}}function oV(Q,J,X="x"){let q=_z(X),N=Q.length,K,H,F,M=M$(Q,0);for(let w=0;w<N;++w){if(H=F,F=M,M=M$(Q,w+1),!F)continue;let R=F[X],_=F[q];if(H)K=(R-H[X])/3,F[`cp1${X}`]=R-K,F[`cp1${q}`]=_-K*J[w];if(M)K=(M[X]-R)/3,F[`cp2${X}`]=R+K,F[`cp2${q}`]=_+K*J[w]}}function aV(Q,J="x"){let X=_z(J),q=Q.length,N=Array(q).fill(0),K=Array(q),H,F,M,w=M$(Q,0);for(H=0;H<q;++H){if(F=M,M=w,w=M$(Q,H+1),!M)continue;if(w){let R=w[J]-M[J];N[H]=R!==0?(w[X]-M[X])/R:0}K[H]=!F?N[H]:!w?N[H-1]:H4(N[H-1])!==H4(N[H])?0:(N[H-1]+N[H])/2}sV(Q,N,K),oV(Q,K,J)}function D3(Q,J,X){return Math.max(Math.min(Q,X),J)}function iV(Q,J){let X,q,N,K,H,F=p4(Q[0],J);for(X=0,q=Q.length;X<q;++X){if(H=K,K=F,F=X<q-1&&p4(Q[X+1],J),!K)continue;if(N=Q[X],H)N.cp1x=D3(N.cp1x,J.left,J.right),N.cp1y=D3(N.cp1y,J.top,J.bottom);if(F)N.cp2x=D3(N.cp2x,J.left,J.right),N.cp2y=D3(N.cp2y,J.top,J.bottom)}}function Lz(Q,J,X,q,N){let K,H,F,M;if(J.spanGaps)Q=Q.filter((w)=>!w.skip);if(J.cubicInterpolationMode==="monotone")aV(Q,N);else{let w=q?Q[Q.length-1]:Q[0];for(K=0,H=Q.length;K<H;++K)F=Q[K],M=nV(w,F,Q[Math.min(K+1,H-(q?0:1))%H],J.tension),F.cp1x=M.previous.x,F.cp1y=M.previous.y,F.cp2x=M.next.x,F.cp2y=M.next.y,w=F}if(J.capBezierPoints)iV(Q,X)}function l3(){return typeof window<"u"&&typeof document<"u"}function r3(Q){let J=Q.parentNode;if(J&&J.toString()==="[object ShadowRoot]")J=J.host;return J}function y3(Q,J,X){let q;if(typeof Q==="string"){if(q=parseInt(Q,10),Q.indexOf("%")!==-1)q=q/100*J.parentNode[X]}else q=Q;return q}var n3=(Q)=>Q.ownerDocument.defaultView.getComputedStyle(Q,null);function tV(Q,J){return n3(Q).getPropertyValue(J)}var eV=["top","right","bottom","left"];function h9(Q,J,X){let q={};X=X?"-"+X:"";for(let N=0;N<4;N++){let K=eV[N];q[K]=parseFloat(Q[J+"-"+K+X])||0}return q.width=q.left+q.right,q.height=q.top+q.bottom,q}var $A=(Q,J,X)=>(Q>0||J>0)&&(!X||!X.shadowRoot);function ZA(Q,J){let X=Q.touches,q=X&&X.length?X[0]:Q,{offsetX:N,offsetY:K}=q,H=!1,F,M;if($A(N,K,Q.target))F=N,M=K;else{let w=J.getBoundingClientRect();F=q.clientX-w.left,M=q.clientY-w.top,H=!0}return{x:F,y:M,box:H}}function h2(Q,J){if("native"in Q)return Q;let{canvas:X,currentDevicePixelRatio:q}=J,N=n3(X),K=N.boxSizing==="border-box",H=h9(N,"padding"),F=h9(N,"border","width"),{x:M,y:w,box:R}=ZA(Q,X),_=H.left+(R&&F.left),P=H.top+(R&&F.top),{width:I,height:A}=J;if(K)I-=H.width+F.width,A-=H.height+F.height;return{x:Math.round((M-_)/I*X.width/q),y:Math.round((w-P)/A*X.height/q)}}function QA(Q,J,X){let q,N;if(J===void 0||X===void 0){let K=Q&&r3(Q);if(!K)J=Q.clientWidth,X=Q.clientHeight;else{let H=K.getBoundingClientRect(),F=n3(K),M=h9(F,"border","width"),w=h9(F,"padding");J=H.width-w.width-M.width,X=H.height-w.height-M.height,q=y3(F.maxWidth,K,"clientWidth"),N=y3(F.maxHeight,K,"clientHeight")}}return{width:J,height:X,maxWidth:q||k3,maxHeight:N||k3}}var b2=(Q)=>Math.round(Q*10)/10;function Pz(Q,J,X,q){let N=n3(Q),K=h9(N,"margin"),H=y3(N.maxWidth,Q,"clientWidth")||k3,F=y3(N.maxHeight,Q,"clientHeight")||k3,M=QA(Q,J,X),{width:w,height:R}=M;if(N.boxSizing==="content-box"){let P=h9(N,"border","width"),I=h9(N,"padding");w-=I.width+P.width,R-=I.height+P.height}if(w=Math.max(0,w-K.width),R=Math.max(0,q?w/q:R-K.height),w=b2(Math.min(w,H,M.maxWidth)),R=b2(Math.min(R,F,M.maxHeight)),w&&!R)R=b2(w/2);if((J!==void 0||X!==void 0)&&q&&M.height&&R>M.height)R=M.height,w=b2(Math.floor(R*q));return{width:w,height:R}}function hU(Q,J,X){let q=J||1,N=b2(Q.height*q),K=b2(Q.width*q);Q.height=b2(Q.height),Q.width=b2(Q.width);let H=Q.canvas;if(H.style&&(X||!H.style.height&&!H.style.width))H.style.height=`${Q.height}px`,H.style.width=`${Q.width}px`;if(Q.currentDevicePixelRatio!==q||H.height!==N||H.width!==K)return Q.currentDevicePixelRatio=q,H.height=N,H.width=K,Q.ctx.setTransform(q,0,0,q,0,0),!0;return!1}var Tz=function(){let Q=!1;try{let J={get passive(){return Q=!0,!1}};if(l3())window.addEventListener("test",null,J),window.removeEventListener("test",null,J)}catch(J){}return Q}();function uU(Q,J){let X=tV(Q,J),q=X&&X.match(/^(\d+)(\.\d+)?px$/);return q?+q[1]:void 0}function D2(Q,J,X,q){return{x:Q.x+X*(J.x-Q.x),y:Q.y+X*(J.y-Q.y)}}function Cz(Q,J,X,q){return{x:Q.x+X*(J.x-Q.x),y:q==="middle"?X<0.5?Q.y:J.y:q==="after"?X<1?Q.y:J.y:X>0?J.y:Q.y}}function Iz(Q,J,X,q){let N={x:Q.cp2x,y:Q.cp2y},K={x:J.cp1x,y:J.cp1y},H=D2(Q,N,X),F=D2(N,K,X),M=D2(K,J,X),w=D2(H,F,X),R=D2(F,M,X);return D2(w,R,X)}var JA=function(Q,J){return{x(X){return Q+Q+J-X},setWidth(X){J=X},textAlign(X){if(X==="center")return X;return X==="right"?"left":"right"},xPlus(X,q){return X-q},leftForLtr(X,q){return X-q}}},GA=function(){return{x(Q){return Q},setWidth(Q){},textAlign(Q){return Q},xPlus(Q,J){return Q+J},leftForLtr(Q,J){return Q}}};function m9(Q,J,X){return Q?JA(J,X):GA()}function xU(Q,J){let X,q;if(J==="ltr"||J==="rtl")X=Q.canvas.style,q=[X.getPropertyValue("direction"),X.getPropertyPriority("direction")],X.setProperty("direction",J,"important"),Q.prevTextDirection=q}function mU(Q,J){if(J!==void 0)delete Q.prevTextDirection,Q.canvas.style.setProperty("direction",J[0],J[1])}function Oz(Q){if(Q==="angle")return{between:IU,compare:PV,normalize:$6};return{between:E8,compare:(J,X)=>J-X,normalize:(J)=>J}}function lR({start:Q,end:J,count:X,loop:q,style:N}){return{start:Q%X,end:J%X,loop:q&&(J-Q+1)%X===0,style:N}}function XA(Q,J,X){let{property:q,start:N,end:K}=X,{between:H,normalize:F}=Oz(q),M=J.length,{start:w,end:R,loop:_}=Q,P,I;if(_){w+=M,R+=M;for(P=0,I=M;P<I;++P){if(!H(F(J[w%M][q]),N,K))break;w--,R--}w%=M,R%=M}if(R<w)R+=M;return{start:w,end:R,loop:_,style:Q.style}}function dU(Q,J,X){if(!X)return[Q];let{property:q,start:N,end:K}=X,H=J.length,{compare:F,between:M,normalize:w}=Oz(q),{start:R,end:_,loop:P,style:I}=XA(Q,J,X),A=[],V=!1,O=null,D,h,p,s=()=>M(N,p,D)&&F(N,p)!==0,a=()=>F(K,D)===0||M(K,p,D),J0=()=>V||s(),t=()=>!V||a();for(let i=R,Y0=R;i<=_;++i){if(h=J[i%H],h.skip)continue;if(D=w(h[q]),D===p)continue;if(V=M(D,N,K),O===null&&J0())O=F(D,N)===0?i:Y0;if(O!==null&&t())A.push(lR({start:O,end:i,loop:P,count:H,style:I})),O=null;Y0=i,p=D}if(O!==null)A.push(lR({start:O,end:_,loop:P,count:H,style:I}));return A}function pU(Q,J){let X=[],q=Q.segments;for(let N=0;N<q.length;N++){let K=dU(q[N],Q.points,J);if(K.length)X.push(...K)}return X}function qA(Q,J,X,q){let N=0,K=J-1;if(X&&!q)while(N<J&&!Q[N].skip)N++;while(N<J&&Q[N].skip)N++;if(N%=J,X)K+=N;while(K>N&&Q[K%J].skip)K--;return K%=J,{start:N,end:K}}function YA(Q,J,X,q){let N=Q.length,K=[],H=J,F=Q[J],M;for(M=J+1;M<=X;++M){let w=Q[M%N];if(w.skip||w.stop){if(!F.skip)q=!1,K.push({start:J%N,end:(M-1)%N,loop:q}),J=H=w.stop?M:null}else if(H=M,F.skip)J=M;F=w}if(H!==null)K.push({start:J%N,end:H%N,loop:q});return K}function Vz(Q,J){let X=Q.points,q=Q.options.spanGaps,N=X.length;if(!N)return[];let K=!!Q._loop,{start:H,end:F}=qA(X,N,K,q);if(q===!0)return rR(Q,[{start:H,end:F,loop:K}],X,J);let M=F<H?F+N:F,w=!!Q._fullLoop&&H===0&&F===N-1;return rR(Q,YA(X,H,M,w),X,J)}function rR(Q,J,X,q){if(!q||!q.setContext||!X)return J;return NA(Q,J,X,q)}function NA(Q,J,X,q){let N=Q._chart.getContext(),K=nR(Q.options),{_datasetIndex:H,options:{spanGaps:F}}=Q,M=X.length,w=[],R=K,_=J[0].start,P=_;function I(A,V,O,D){let h=F?-1:1;if(A===V)return;A+=M;while(X[A%M].skip)A-=h;while(X[V%M].skip)V+=h;if(A%M!==V%M)w.push({start:A%M,end:V%M,loop:O,style:D}),R=D,_=V%M}for(let A of J){_=F?_:A.start;let V=X[_%M],O;for(P=_+1;P<=A.end;P++){let D=X[P%M];if(O=nR(q.setContext(S8(N,{type:"segment",p0:V,p1:D,p0DataIndex:(P-1)%M,p1DataIndex:P%M,datasetIndex:H}))),UA(O,R))I(_,P-1,A.loop,R);V=D,R=O}if(_<P-1)I(_,P-1,A.loop,R)}return w}function nR(Q){return{backgroundColor:Q.backgroundColor,borderCapStyle:Q.borderCapStyle,borderDash:Q.borderDash,borderDashOffset:Q.borderDashOffset,borderJoinStyle:Q.borderJoinStyle,borderWidth:Q.borderWidth,borderColor:Q.borderColor}}function UA(Q,J){if(!J)return!1;let X=[],q=function(N,K){if(!SU(K))return K;if(!X.includes(K))X.push(K);return X.indexOf(K)};return JSON.stringify(Q,q)!==JSON.stringify(J,q)}function v3(Q,J,X){return Q.options.clip?Q[X]:J[X]}function KA(Q,J){let{xScale:X,yScale:q}=Q;if(X&&q)return{left:v3(X,J,"left"),right:v3(X,J,"right"),top:v3(q,J,"top"),bottom:v3(q,J,"bottom")};return J}function cU(Q,J){let X=J._clip;if(X.disabled)return!1;let q=KA(J,Q.chartArea);return{left:X.left===!1?0:q.left-(X.left===!0?0:X.left),right:X.right===!1?Q.width:q.right+(X.right===!0?0:X.right),top:X.top===!1?0:q.top-(X.top===!0?0:X.top),bottom:X.bottom===!1?Q.height:q.bottom+(X.bottom===!0?0:X.bottom)}}/*!
|
|
250
|
+
*/function m4(){}var Vw=(()=>{let J=0;return()=>J++})();function Q1(J){return J===null||J===void 0}function E1(J){if(Array.isArray&&Array.isArray(J))return!0;let G=Object.prototype.toString.call(J);if(G.slice(0,7)==="[object"&&G.slice(-6)==="Array]")return!0;return!1}function $1(J){return J!==null&&Object.prototype.toString.call(J)==="[object Object]"}function h1(J){return(typeof J==="number"||J instanceof Number)&&isFinite(+J)}function Z6(J,G){return h1(J)?J:G}function s0(J,G){return typeof J>"u"?G:J}var Aw=(J,G)=>typeof J==="string"&&J.endsWith("%")?parseFloat(J)/100*G:+J;function O1(J,G,q){if(J&&typeof J.call==="function")return J.apply(q,G)}function F1(J,G,q,X){let N,K,H;if(E1(J))if(K=J.length,X)for(N=K-1;N>=0;N--)G.call(q,J[N],N);else for(N=0;N<K;N++)G.call(q,J[N],N);else if($1(J)){H=Object.keys(J),K=H.length;for(N=0;N<K;N++)G.call(q,J[H[N]],H[N])}}function GJ(J,G){let q,X,N,K;if(!J||!G||J.length!==G.length)return!1;for(q=0,X=J.length;q<X;++q)if(N=J[q],K=G[q],N.datasetIndex!==K.datasetIndex||N.index!==K.index)return!1;return!0}function _3(J){if(E1(J))return J.map(_3);if($1(J)){let G=Object.create(null),q=Object.keys(J),X=q.length,N=0;for(;N<X;++N)G[q[N]]=_3(J[q[N]]);return G}return J}function Ew(J){return["__proto__","prototype","constructor"].indexOf(J)===-1}function MI(J,G,q,X){if(!Ew(J))return;let N=G[J],K=q[J];if($1(N)&&$1(K))Y$(N,K,X);else G[J]=_3(K)}function Y$(J,G,q){let X=E1(G)?G:[G],N=X.length;if(!$1(J))return J;q=q||{};let K=q.merger||MI,H;for(let F=0;F<N;++F){if(H=X[F],!$1(H))continue;let W=Object.keys(H);for(let M=0,R=W.length;M<R;++M)K(W[M],J,H,q)}return J}function N$(J,G){return Y$(J,G,{merger:wI})}function wI(J,G,q){if(!Ew(J))return;let X=G[J],N=q[J];if($1(X)&&$1(N))N$(X,N);else if(!Object.prototype.hasOwnProperty.call(G,J))G[J]=_3(N)}var Mw={"":(J)=>J,x:(J)=>J.x,y:(J)=>J.y};function RI(J){let G=J.split("."),q=[],X="";for(let N of G)if(X+=N,X.endsWith("\\"))X=X.slice(0,-1)+".";else q.push(X),X="";return q}function _I(J){let G=RI(J);return(q)=>{for(let X of G){if(X==="")break;q=q&&q[X]}return q}}function f7(J,G){return(Mw[G]||(Mw[G]=_I(G)))(J)}function C3(J){return J.charAt(0).toUpperCase()+J.slice(1)}var U$=(J)=>typeof J<"u",P8=(J)=>typeof J==="function",JU=(J,G)=>{if(J.size!==G.size)return!1;for(let q of J)if(!G.has(q))return!1;return!0};function Sw(J){return J.type==="mouseup"||J.type==="click"||J.type==="contextmenu"}var r1=Math.PI,e5=2*r1,LI=e5+r1,L3=Number.POSITIVE_INFINITY,PI=r1/180,t5=r1/2,k7=r1/4,ww=r1*2/3,T8=Math.log10,U4=Math.sign;function K$(J,G,q){return Math.abs(J-G)<q}function QU(J){let G=Math.round(J);J=K$(J,G,J/1000)?G:J;let q=Math.pow(10,Math.floor(T8(J))),X=J/q;return(X<=1?1:X<=2?2:X<=5?5:10)*q}function Dw(J){let G=[],q=Math.sqrt(J),X;for(X=1;X<q;X++)if(J%X===0)G.push(X),G.push(J/X);if(q===(q|0))G.push(q);return G.sort((N,K)=>N-K).pop(),G}function TI(J){return typeof J==="symbol"||typeof J==="object"&&J!==null&&!((Symbol.toPrimitive in J)||("toString"in J)||("valueOf"in J))}function B$(J){return!TI(J)&&!isNaN(parseFloat(J))&&isFinite(J)}function jw(J,G){let q=Math.round(J);return q-G<=J&&q+G>=J}function GU(J,G,q){let X,N,K;for(X=0,N=J.length;X<N;X++)if(K=J[X][q],!isNaN(K))G.min=Math.min(G.min,K),G.max=Math.max(G.max,K)}function C8(J){return J*(r1/180)}function O3(J){return J*(180/r1)}function qU(J){if(!h1(J))return;let G=1,q=0;while(Math.round(J*G)/G!==J)G*=10,q++;return q}function kw(J,G){let q=G.x-J.x,X=G.y-J.y,N=Math.sqrt(q*q+X*X),K=Math.atan2(X,q);if(K<-0.5*r1)K+=e5;return{angle:K,distance:N}}function P3(J,G){return Math.sqrt(Math.pow(G.x-J.x,2)+Math.pow(G.y-J.y,2))}function CI(J,G){return(J-G+LI)%e5-r1}function i5(J){return(J%e5+e5)%e5}function YU(J,G,q,X){let N=i5(J),K=i5(G),H=i5(q),F=i5(K-N),W=i5(H-N),M=i5(N-K),R=i5(N-H);return N===K||N===H||X&&K===H||F>W&&M<R}function $6(J,G,q){return Math.max(G,Math.min(q,J))}function vw(J){return $6(J,-32768,32767)}function O8(J,G,q,X=0.000001){return J>=Math.min(G,q)-X&&J<=Math.max(G,q)+X}function I3(J,G,q){q=q||((H)=>J[H]<G);let X=J.length-1,N=0,K;while(X-N>1)if(K=N+X>>1,q(K))N=K;else X=K;return{lo:N,hi:X}}var V2=(J,G,q,X)=>I3(J,q,X?(N)=>{let K=J[N][G];return K<q||K===q&&J[N+1][G]===q}:(N)=>J[N][G]<q),bw=(J,G,q)=>I3(J,q,(X)=>J[X][G]>=q);function fw(J,G,q){let X=0,N=J.length;while(X<N&&J[X]<G)X++;while(N>X&&J[N-1]>q)N--;return X>0||N<J.length?J.slice(X,N):J}var yw=["push","pop","shift","splice","unshift"];function gw(J,G){if(J._chartjs){J._chartjs.listeners.push(G);return}Object.defineProperty(J,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[G]}}),yw.forEach((q)=>{let X="_onData"+C3(q),N=J[q];Object.defineProperty(J,q,{configurable:!0,enumerable:!1,value(...K){let H=N.apply(this,K);return J._chartjs.listeners.forEach((F)=>{if(typeof F[X]==="function")F[X](...K)}),H}})})}function XU(J,G){let q=J._chartjs;if(!q)return;let X=q.listeners,N=X.indexOf(G);if(N!==-1)X.splice(N,1);if(X.length>0)return;yw.forEach((K)=>{delete J[K]}),delete J._chartjs}function NU(J){let G=new Set(J);if(G.size===J.length)return J;return Array.from(G)}var UU=function(){if(typeof window>"u")return function(J){return J()};return window.requestAnimationFrame}();function KU(J,G){let q=[],X=!1;return function(...N){if(q=N,!X)X=!0,UU.call(window,()=>{X=!1,J.apply(G,q)})}}function hw(J,G){let q;return function(...X){if(G)clearTimeout(q),q=setTimeout(J,G,X);else J.apply(this,X);return G}}var V3=(J)=>J==="start"?"left":J==="end"?"right":"center",P5=(J,G,q)=>J==="start"?G:J==="end"?q:(G+q)/2,uw=(J,G,q,X)=>{return J===(X?"left":"right")?q:J==="center"?(G+q)/2:G};function xw(J,G,q){let X=G.length,N=0,K=X;if(J._sorted){let{iScale:H,vScale:F,_parsed:W}=J,M=J.dataset?J.dataset.options?J.dataset.options.spanGaps:null:null,R=H.axis,{min:_,max:P,minDefined:O,maxDefined:E}=H.getUserBounds();if(O){if(N=Math.min(V2(W,R,_).lo,q?X:V2(G,R,H.getPixelForValue(_)).lo),M){let V=W.slice(0,N+1).reverse().findIndex((I)=>!Q1(I[F.axis]));N-=Math.max(0,V)}N=$6(N,0,X-1)}if(E){let V=Math.max(V2(W,H.axis,P,!0).hi+1,q?0:V2(G,R,H.getPixelForValue(P),!0).hi+1);if(M){let I=W.slice(V-1).findIndex((j)=>!Q1(j[F.axis]));V+=Math.max(0,I)}K=$6(V,N,X)-N}else K=X-N}return{start:N,count:K}}function mw(J){let{xScale:G,yScale:q,_scaleRanges:X}=J,N={xmin:G.min,xmax:G.max,ymin:q.min,ymax:q.max};if(!X)return J._scaleRanges=N,!0;let K=X.xmin!==G.min||X.xmax!==G.max||X.ymin!==q.min||X.ymax!==q.max;return Object.assign(X,N),K}var M3=(J)=>J===0||J===1,Rw=(J,G,q)=>-(Math.pow(2,10*(J-=1))*Math.sin((J-G)*e5/q)),_w=(J,G,q)=>Math.pow(2,-10*J)*Math.sin((J-G)*e5/q)+1,q$={linear:(J)=>J,easeInQuad:(J)=>J*J,easeOutQuad:(J)=>-J*(J-2),easeInOutQuad:(J)=>(J/=0.5)<1?0.5*J*J:-0.5*(--J*(J-2)-1),easeInCubic:(J)=>J*J*J,easeOutCubic:(J)=>(J-=1)*J*J+1,easeInOutCubic:(J)=>(J/=0.5)<1?0.5*J*J*J:0.5*((J-=2)*J*J+2),easeInQuart:(J)=>J*J*J*J,easeOutQuart:(J)=>-((J-=1)*J*J*J-1),easeInOutQuart:(J)=>(J/=0.5)<1?0.5*J*J*J*J:-0.5*((J-=2)*J*J*J-2),easeInQuint:(J)=>J*J*J*J*J,easeOutQuint:(J)=>(J-=1)*J*J*J*J+1,easeInOutQuint:(J)=>(J/=0.5)<1?0.5*J*J*J*J*J:0.5*((J-=2)*J*J*J*J+2),easeInSine:(J)=>-Math.cos(J*t5)+1,easeOutSine:(J)=>Math.sin(J*t5),easeInOutSine:(J)=>-0.5*(Math.cos(r1*J)-1),easeInExpo:(J)=>J===0?0:Math.pow(2,10*(J-1)),easeOutExpo:(J)=>J===1?1:-Math.pow(2,-10*J)+1,easeInOutExpo:(J)=>M3(J)?J:J<0.5?0.5*Math.pow(2,10*(J*2-1)):0.5*(-Math.pow(2,-10*(J*2-1))+2),easeInCirc:(J)=>J>=1?J:-(Math.sqrt(1-J*J)-1),easeOutCirc:(J)=>Math.sqrt(1-(J-=1)*J),easeInOutCirc:(J)=>(J/=0.5)<1?-0.5*(Math.sqrt(1-J*J)-1):0.5*(Math.sqrt(1-(J-=2)*J)+1),easeInElastic:(J)=>M3(J)?J:Rw(J,0.075,0.3),easeOutElastic:(J)=>M3(J)?J:_w(J,0.075,0.3),easeInOutElastic(J){return M3(J)?J:J<0.5?0.5*Rw(J*2,0.1125,0.45):0.5+0.5*_w(J*2-1,0.1125,0.45)},easeInBack(J){return J*J*(2.70158*J-1.70158)},easeOutBack(J){return(J-=1)*J*(2.70158*J+1.70158)+1},easeInOutBack(J){let G=1.70158;if((J/=0.5)<1)return 0.5*(J*J*(((G*=1.525)+1)*J-G));return 0.5*((J-=2)*J*(((G*=1.525)+1)*J+G)+2)},easeInBounce:(J)=>1-q$.easeOutBounce(1-J),easeOutBounce(J){if(J<0.36363636363636365)return 7.5625*J*J;if(J<0.7272727272727273)return 7.5625*(J-=0.5454545454545454)*J+0.75;if(J<0.9090909090909091)return 7.5625*(J-=0.8181818181818182)*J+0.9375;return 7.5625*(J-=0.9545454545454546)*J+0.984375},easeInOutBounce:(J)=>J<0.5?q$.easeInBounce(J*2)*0.5:q$.easeOutBounce(J*2-1)*0.5+0.5};function BU(J){if(J&&typeof J==="object"){let G=J.toString();return G==="[object CanvasPattern]"||G==="[object CanvasGradient]"}return!1}function HU(J){return BU(J)?J:new G$(J)}function $U(J){return BU(J)?J:new G$(J).saturate(0.5).darken(0.1).hexString()}var OI=["x","y","borderWidth","radius","tension"],II=["color","borderColor","backgroundColor"];function VI(J){J.set("animation",{delay:void 0,duration:1000,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),J.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:(G)=>G!=="onProgress"&&G!=="onComplete"&&G!=="fn"}),J.set("animations",{colors:{type:"color",properties:II},numbers:{type:"number",properties:OI}}),J.describe("animations",{_fallback:"animation"}),J.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:(G)=>G|0}}}})}function AI(J){J.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}var Lw=new Map;function EI(J,G){G=G||{};let q=J+JSON.stringify(G),X=Lw.get(q);if(!X)X=new Intl.NumberFormat(J,G),Lw.set(q,X);return X}function A3(J,G,q){return EI(G,q).format(J)}var dw={values(J){return E1(J)?J:""+J},numeric(J,G,q){if(J===0)return"0";let X=this.chart.options.locale,N,K=J;if(q.length>1){let M=Math.max(Math.abs(q[0].value),Math.abs(q[q.length-1].value));if(M<0.0001||M>1000000000000000)N="scientific";K=SI(J,q)}let H=T8(Math.abs(K)),F=isNaN(H)?1:Math.max(Math.min(-1*Math.floor(H),20),0),W={notation:N,minimumFractionDigits:F,maximumFractionDigits:F};return Object.assign(W,this.options.ticks.format),A3(J,X,W)},logarithmic(J,G,q){if(J===0)return"0";let X=q[G].significand||J/Math.pow(10,Math.floor(T8(J)));if([1,2,3,5,10,15].includes(X)||G>0.8*q.length)return dw.numeric.call(this,J,G,q);return""}};function SI(J,G){let q=G.length>3?G[2].value-G[1].value:G[1].value-G[0].value;if(Math.abs(q)>=1&&J!==Math.floor(J))q=J-Math.floor(J);return q}var qJ={formatters:dw};function DI(J){J.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(G,q)=>q.lineWidth,tickColor:(G,q)=>q.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:qJ.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),J.route("scale.ticks","color","","color"),J.route("scale.grid","color","","borderColor"),J.route("scale.border","color","","borderColor"),J.route("scale.title","color","","color"),J.describe("scale",{_fallback:!1,_scriptable:(G)=>!G.startsWith("before")&&!G.startsWith("after")&&G!=="callback"&&G!=="parser",_indexable:(G)=>G!=="borderDash"&&G!=="tickBorderDash"&&G!=="dash"}),J.describe("scales",{_fallback:"scale"}),J.describe("scale.ticks",{_scriptable:(G)=>G!=="backdropPadding"&&G!=="callback",_indexable:(G)=>G!=="backdropPadding"})}var E2=Object.create(null),E3=Object.create(null);function JJ(J,G){if(!G)return J;let q=G.split(".");for(let X=0,N=q.length;X<N;++X){let K=q[X];J=J[K]||(J[K]=Object.create(null))}return J}function ZU(J,G,q){if(typeof G==="string")return Y$(JJ(J,G),q);return Y$(JJ(J,""),G)}class pw{constructor(J,G){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=(q)=>q.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(q,X)=>$U(X.backgroundColor),this.hoverBorderColor=(q,X)=>$U(X.borderColor),this.hoverColor=(q,X)=>$U(X.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(J),this.apply(G)}set(J,G){return ZU(this,J,G)}get(J){return JJ(this,J)}describe(J,G){return ZU(E3,J,G)}override(J,G){return ZU(E2,J,G)}route(J,G,q,X){let N=JJ(this,J),K=JJ(this,q),H="_"+G;Object.defineProperties(N,{[H]:{value:N[G],writable:!0},[G]:{enumerable:!0,get(){let F=this[H],W=K[X];if($1(F))return Object.assign({},W,F);return s0(F,W)},set(F){this[H]=F}}})}apply(J){J.forEach((G)=>G(this))}}var u1=new pw({_scriptable:(J)=>!J.startsWith("on"),_indexable:(J)=>J!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[VI,AI,DI]);function jI(J){if(!J||Q1(J.size)||Q1(J.family))return null;return(J.style?J.style+" ":"")+(J.weight?J.weight+" ":"")+J.size+"px "+J.family}function QJ(J,G,q,X,N){let K=G[N];if(!K)K=G[N]=J.measureText(N).width,q.push(N);if(K>X)X=K;return X}function cw(J,G,q,X){X=X||{};let N=X.data=X.data||{},K=X.garbageCollect=X.garbageCollect||[];if(X.font!==G)N=X.data={},K=X.garbageCollect=[],X.font=G;J.save(),J.font=G;let H=0,F=q.length,W,M,R,_,P;for(W=0;W<F;W++)if(_=q[W],_!==void 0&&_!==null&&!E1(_))H=QJ(J,N,K,H,_);else if(E1(_)){for(M=0,R=_.length;M<R;M++)if(P=_[M],P!==void 0&&P!==null&&!E1(P))H=QJ(J,N,K,H,P)}J.restore();let O=K.length/2;if(O>q.length){for(W=0;W<O;W++)delete N[K[W]];K.splice(0,O)}return H}function S2(J,G,q){let X=J.currentDevicePixelRatio,N=q!==0?Math.max(q/2,0.5):0;return Math.round((G-N)*X)/X+N}function FU(J,G){if(!G&&!J)return;G=G||J.getContext("2d"),G.save(),G.resetTransform(),G.clearRect(0,0,J.width,J.height),G.restore()}function S3(J,G,q,X){WU(J,G,q,X,null)}function WU(J,G,q,X,N){let K,H,F,W,M,R,_,P,O=G.pointStyle,E=G.rotation,V=G.radius,I=(E||0)*PI;if(O&&typeof O==="object"){if(K=O.toString(),K==="[object HTMLImageElement]"||K==="[object HTMLCanvasElement]"){J.save(),J.translate(q,X),J.rotate(I),J.drawImage(O,-O.width/2,-O.height/2,O.width,O.height),J.restore();return}}if(isNaN(V)||V<=0)return;switch(J.beginPath(),O){default:if(N)J.ellipse(q,X,N/2,V,0,0,e5);else J.arc(q,X,V,0,e5);J.closePath();break;case"triangle":R=N?N/2:V,J.moveTo(q+Math.sin(I)*R,X-Math.cos(I)*V),I+=ww,J.lineTo(q+Math.sin(I)*R,X-Math.cos(I)*V),I+=ww,J.lineTo(q+Math.sin(I)*R,X-Math.cos(I)*V),J.closePath();break;case"rectRounded":M=V*0.516,W=V-M,H=Math.cos(I+k7)*W,_=Math.cos(I+k7)*(N?N/2-M:W),F=Math.sin(I+k7)*W,P=Math.sin(I+k7)*(N?N/2-M:W),J.arc(q-_,X-F,M,I-r1,I-t5),J.arc(q+P,X-H,M,I-t5,I),J.arc(q+_,X+F,M,I,I+t5),J.arc(q-P,X+H,M,I+t5,I+r1),J.closePath();break;case"rect":if(!E){W=Math.SQRT1_2*V,R=N?N/2:W,J.rect(q-R,X-W,2*R,2*W);break}I+=k7;case"rectRot":_=Math.cos(I)*(N?N/2:V),H=Math.cos(I)*V,F=Math.sin(I)*V,P=Math.sin(I)*(N?N/2:V),J.moveTo(q-_,X-F),J.lineTo(q+P,X-H),J.lineTo(q+_,X+F),J.lineTo(q-P,X+H),J.closePath();break;case"crossRot":I+=k7;case"cross":_=Math.cos(I)*(N?N/2:V),H=Math.cos(I)*V,F=Math.sin(I)*V,P=Math.sin(I)*(N?N/2:V),J.moveTo(q-_,X-F),J.lineTo(q+_,X+F),J.moveTo(q+P,X-H),J.lineTo(q-P,X+H);break;case"star":_=Math.cos(I)*(N?N/2:V),H=Math.cos(I)*V,F=Math.sin(I)*V,P=Math.sin(I)*(N?N/2:V),J.moveTo(q-_,X-F),J.lineTo(q+_,X+F),J.moveTo(q+P,X-H),J.lineTo(q-P,X+H),I+=k7,_=Math.cos(I)*(N?N/2:V),H=Math.cos(I)*V,F=Math.sin(I)*V,P=Math.sin(I)*(N?N/2:V),J.moveTo(q-_,X-F),J.lineTo(q+_,X+F),J.moveTo(q+P,X-H),J.lineTo(q-P,X+H);break;case"line":H=N?N/2:Math.cos(I)*V,F=Math.sin(I)*V,J.moveTo(q-H,X-F),J.lineTo(q+H,X+F);break;case"dash":J.moveTo(q,X),J.lineTo(q+Math.cos(I)*(N?N/2:V),X+Math.sin(I)*V);break;case!1:J.closePath();break}if(J.fill(),G.borderWidth>0)J.stroke()}function x4(J,G,q){return q=q||0.5,!G||J&&J.x>G.left-q&&J.x<G.right+q&&J.y>G.top-q&&J.y<G.bottom+q}function YJ(J,G){J.save(),J.beginPath(),J.rect(G.left,G.top,G.right-G.left,G.bottom-G.top),J.clip()}function XJ(J){J.restore()}function lw(J,G,q,X,N){if(!G)return J.lineTo(q.x,q.y);if(N==="middle"){let K=(G.x+q.x)/2;J.lineTo(K,G.y),J.lineTo(K,q.y)}else if(N==="after"!==!!X)J.lineTo(G.x,q.y);else J.lineTo(q.x,G.y);J.lineTo(q.x,q.y)}function rw(J,G,q,X){if(!G)return J.lineTo(q.x,q.y);J.bezierCurveTo(X?G.cp1x:G.cp2x,X?G.cp1y:G.cp2y,X?q.cp2x:q.cp1x,X?q.cp2y:q.cp1y,q.x,q.y)}function kI(J,G){if(G.translation)J.translate(G.translation[0],G.translation[1]);if(!Q1(G.rotation))J.rotate(G.rotation);if(G.color)J.fillStyle=G.color;if(G.textAlign)J.textAlign=G.textAlign;if(G.textBaseline)J.textBaseline=G.textBaseline}function vI(J,G,q,X,N){if(N.strikethrough||N.underline){let K=J.measureText(X),H=G-K.actualBoundingBoxLeft,F=G+K.actualBoundingBoxRight,W=q-K.actualBoundingBoxAscent,M=q+K.actualBoundingBoxDescent,R=N.strikethrough?(W+M)/2:M;J.strokeStyle=J.fillStyle,J.beginPath(),J.lineWidth=N.decorationWidth||2,J.moveTo(H,R),J.lineTo(F,R),J.stroke()}}function bI(J,G){let q=J.fillStyle;J.fillStyle=G.color,J.fillRect(G.left,G.top,G.width,G.height),J.fillStyle=q}function D2(J,G,q,X,N,K={}){let H=E1(G)?G:[G],F=K.strokeWidth>0&&K.strokeColor!=="",W,M;J.save(),J.font=N.string,kI(J,K);for(W=0;W<H.length;++W){if(M=H[W],K.backdrop)bI(J,K.backdrop);if(F){if(K.strokeColor)J.strokeStyle=K.strokeColor;if(!Q1(K.strokeWidth))J.lineWidth=K.strokeWidth;J.strokeText(M,q,X,K.maxWidth)}J.fillText(M,q,X,K.maxWidth),vI(J,q,X,M,K),X+=Number(N.lineHeight)}J.restore()}function H$(J,G){let{x:q,y:X,w:N,h:K,radius:H}=G;J.arc(q+H.topLeft,X+H.topLeft,H.topLeft,1.5*r1,r1,!0),J.lineTo(q,X+K-H.bottomLeft),J.arc(q+H.bottomLeft,X+K-H.bottomLeft,H.bottomLeft,r1,t5,!0),J.lineTo(q+N-H.bottomRight,X+K),J.arc(q+N-H.bottomRight,X+K-H.bottomRight,H.bottomRight,t5,0,!0),J.lineTo(q+N,X+H.topRight),J.arc(q+N-H.topRight,X+H.topRight,H.topRight,0,-t5,!0),J.lineTo(q+H.topLeft,X)}var fI=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,yI=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function gI(J,G){let q=(""+J).match(fI);if(!q||q[1]==="normal")return G*1.2;switch(J=+q[2],q[3]){case"px":return J;case"%":J/=100;break}return G*J}var hI=(J)=>+J||0;function zU(J,G){let q={},X=$1(G),N=X?Object.keys(G):G,K=$1(J)?X?(H)=>s0(J[H],J[G[H]]):(H)=>J[H]:()=>J;for(let H of N)q[H]=hI(K(H));return q}function MU(J){return zU(J,{top:"y",right:"x",bottom:"y",left:"x"})}function j2(J){return zU(J,["topLeft","topRight","bottomLeft","bottomRight"])}function T5(J){let G=MU(J);return G.width=G.left+G.right,G.height=G.top+G.bottom,G}function Q5(J,G){J=J||{},G=G||u1.font;let q=s0(J.size,G.size);if(typeof q==="string")q=parseInt(q,10);let X=s0(J.style,G.style);if(X&&!(""+X).match(yI))console.warn('Invalid font style specified: "'+X+'"'),X=void 0;let N={family:s0(J.family,G.family),lineHeight:gI(s0(J.lineHeight,G.lineHeight),q),size:q,style:X,weight:s0(J.weight,G.weight),string:""};return N.string=jI(N),N}function NJ(J,G,q,X){let N=!0,K,H,F;for(K=0,H=J.length;K<H;++K){if(F=J[K],F===void 0)continue;if(G!==void 0&&typeof F==="function")F=F(G),N=!1;if(q!==void 0&&E1(F))F=F[q%F.length],N=!1;if(F!==void 0){if(X&&!N)X.cacheable=!1;return F}}}function sw(J,G,q){let{min:X,max:N}=J,K=Aw(G,(N-X)/2),H=(F,W)=>q&&F===0?0:F+W;return{min:H(X,-Math.abs(K)),max:H(N,K)}}function I8(J,G){return Object.assign(Object.create(J),G)}function D3(J,G=[""],q,X,N=()=>J[0]){let K=q||J;if(typeof X>"u")X=aw("_fallback",J);let H={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:J,_rootScopes:K,_fallback:X,_getTarget:N,override:(F)=>D3([F,...J],G,K,X)};return new Proxy(H,{deleteProperty(F,W){return delete F[W],delete F._keys,delete J[0][W],!0},get(F,W){return nw(F,W,()=>rI(W,G,J,F))},getOwnPropertyDescriptor(F,W){return Reflect.getOwnPropertyDescriptor(F._scopes[0],W)},getPrototypeOf(){return Reflect.getPrototypeOf(J[0])},has(F,W){return Tw(F).includes(W)},ownKeys(F){return Tw(F)},set(F,W,M){let R=F._storage||(F._storage=N());return F[W]=R[W]=M,delete F._keys,!0}})}function b7(J,G,q,X){let N={_cacheable:!1,_proxy:J,_context:G,_subProxy:q,_stack:new Set,_descriptors:wU(J,X),setContext:(K)=>b7(J,K,q,X),override:(K)=>b7(J.override(K),G,q,X)};return new Proxy(N,{deleteProperty(K,H){return delete K[H],delete J[H],!0},get(K,H,F){return nw(K,H,()=>xI(K,H,F))},getOwnPropertyDescriptor(K,H){return K._descriptors.allKeys?Reflect.has(J,H)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(J,H)},getPrototypeOf(){return Reflect.getPrototypeOf(J)},has(K,H){return Reflect.has(J,H)},ownKeys(){return Reflect.ownKeys(J)},set(K,H,F){return J[H]=F,delete K[H],!0}})}function wU(J,G={scriptable:!0,indexable:!0}){let{_scriptable:q=G.scriptable,_indexable:X=G.indexable,_allKeys:N=G.allKeys}=J;return{allKeys:N,scriptable:q,indexable:X,isScriptable:P8(q)?q:()=>q,isIndexable:P8(X)?X:()=>X}}var uI=(J,G)=>J?J+C3(G):G,RU=(J,G)=>$1(G)&&J!=="adapters"&&(Object.getPrototypeOf(G)===null||G.constructor===Object);function nw(J,G,q){if(Object.prototype.hasOwnProperty.call(J,G)||G==="constructor")return J[G];let X=q();return J[G]=X,X}function xI(J,G,q){let{_proxy:X,_context:N,_subProxy:K,_descriptors:H}=J,F=X[G];if(P8(F)&&H.isScriptable(G))F=mI(G,F,J,q);if(E1(F)&&F.length)F=dI(G,F,J,H.isIndexable);if(RU(G,F))F=b7(F,N,K&&K[G],H);return F}function mI(J,G,q,X){let{_proxy:N,_context:K,_subProxy:H,_stack:F}=q;if(F.has(J))throw Error("Recursion detected: "+Array.from(F).join("->")+"->"+J);F.add(J);let W=G(K,H||X);if(F.delete(J),RU(J,W))W=_U(N._scopes,N,J,W);return W}function dI(J,G,q,X){let{_proxy:N,_context:K,_subProxy:H,_descriptors:F}=q;if(typeof K.index<"u"&&X(J))return G[K.index%G.length];else if($1(G[0])){let W=G,M=N._scopes.filter((R)=>R!==W);G=[];for(let R of W){let _=_U(M,N,J,R);G.push(b7(_,K,H&&H[J],F))}}return G}function ow(J,G,q){return P8(J)?J(G,q):J}var pI=(J,G)=>J===!0?G:typeof J==="string"?f7(G,J):void 0;function cI(J,G,q,X,N){for(let K of G){let H=pI(q,K);if(H){J.add(H);let F=ow(H._fallback,q,N);if(typeof F<"u"&&F!==q&&F!==X)return F}else if(H===!1&&typeof X<"u"&&q!==X)return null}return!1}function _U(J,G,q,X){let N=G._rootScopes,K=ow(G._fallback,q,X),H=[...J,...N],F=new Set;F.add(X);let W=Pw(F,H,q,K||q,X);if(W===null)return!1;if(typeof K<"u"&&K!==q){if(W=Pw(F,H,K,W,X),W===null)return!1}return D3(Array.from(F),[""],N,K,()=>lI(G,q,X))}function Pw(J,G,q,X,N){while(q)q=cI(J,G,q,X,N);return q}function lI(J,G,q){let X=J._getTarget();if(!(G in X))X[G]={};let N=X[G];if(E1(N)&&$1(q))return q;return N||{}}function rI(J,G,q,X){let N;for(let K of G)if(N=aw(uI(K,J),q),typeof N<"u")return RU(J,N)?_U(q,X,J,N):N}function aw(J,G){for(let q of G){if(!q)continue;let X=q[J];if(typeof X<"u")return X}}function Tw(J){let G=J._keys;if(!G)G=J._keys=sI(J._scopes);return G}function sI(J){let G=new Set;for(let q of J)for(let X of Object.keys(q).filter((N)=>!N.startsWith("_")))G.add(X);return Array.from(G)}var nI=Number.EPSILON||0.00000000000001,X$=(J,G)=>G<J.length&&!J[G].skip&&J[G],iw=(J)=>J==="x"?"y":"x";function oI(J,G,q,X){let N=J.skip?G:J,K=G,H=q.skip?G:q,F=P3(K,N),W=P3(H,K),M=F/(F+W),R=W/(F+W);M=isNaN(M)?0:M,R=isNaN(R)?0:R;let _=X*M,P=X*R;return{previous:{x:K.x-_*(H.x-N.x),y:K.y-_*(H.y-N.y)},next:{x:K.x+P*(H.x-N.x),y:K.y+P*(H.y-N.y)}}}function aI(J,G,q){let X=J.length,N,K,H,F,W,M=X$(J,0);for(let R=0;R<X-1;++R){if(W=M,M=X$(J,R+1),!W||!M)continue;if(K$(G[R],0,nI)){q[R]=q[R+1]=0;continue}if(N=q[R]/G[R],K=q[R+1]/G[R],F=Math.pow(N,2)+Math.pow(K,2),F<=9)continue;H=3/Math.sqrt(F),q[R]=N*H*G[R],q[R+1]=K*H*G[R]}}function iI(J,G,q="x"){let X=iw(q),N=J.length,K,H,F,W=X$(J,0);for(let M=0;M<N;++M){if(H=F,F=W,W=X$(J,M+1),!F)continue;let R=F[q],_=F[X];if(H)K=(R-H[q])/3,F[`cp1${q}`]=R-K,F[`cp1${X}`]=_-K*G[M];if(W)K=(W[q]-R)/3,F[`cp2${q}`]=R+K,F[`cp2${X}`]=_+K*G[M]}}function tI(J,G="x"){let q=iw(G),X=J.length,N=Array(X).fill(0),K=Array(X),H,F,W,M=X$(J,0);for(H=0;H<X;++H){if(F=W,W=M,M=X$(J,H+1),!W)continue;if(M){let R=M[G]-W[G];N[H]=R!==0?(M[q]-W[q])/R:0}K[H]=!F?N[H]:!M?N[H-1]:U4(N[H-1])!==U4(N[H])?0:(N[H-1]+N[H])/2}aI(J,N,K),iI(J,K,G)}function w3(J,G,q){return Math.max(Math.min(J,q),G)}function eI(J,G){let q,X,N,K,H,F=x4(J[0],G);for(q=0,X=J.length;q<X;++q){if(H=K,K=F,F=q<X-1&&x4(J[q+1],G),!K)continue;if(N=J[q],H)N.cp1x=w3(N.cp1x,G.left,G.right),N.cp1y=w3(N.cp1y,G.top,G.bottom);if(F)N.cp2x=w3(N.cp2x,G.left,G.right),N.cp2y=w3(N.cp2y,G.top,G.bottom)}}function tw(J,G,q,X,N){let K,H,F,W;if(G.spanGaps)J=J.filter((M)=>!M.skip);if(G.cubicInterpolationMode==="monotone")tI(J,N);else{let M=X?J[J.length-1]:J[0];for(K=0,H=J.length;K<H;++K)F=J[K],W=oI(M,F,J[Math.min(K+1,H-(X?0:1))%H],G.tension),F.cp1x=W.previous.x,F.cp1y=W.previous.y,F.cp2x=W.next.x,F.cp2y=W.next.y,M=F}if(G.capBezierPoints)eI(J,q)}function j3(){return typeof window<"u"&&typeof document<"u"}function k3(J){let G=J.parentNode;if(G&&G.toString()==="[object ShadowRoot]")G=G.host;return G}function T3(J,G,q){let X;if(typeof J==="string"){if(X=parseInt(J,10),J.indexOf("%")!==-1)X=X/100*G.parentNode[q]}else X=J;return X}var v3=(J)=>J.ownerDocument.defaultView.getComputedStyle(J,null);function $V(J,G){return v3(J).getPropertyValue(G)}var ZV=["top","right","bottom","left"];function v7(J,G,q){let X={};q=q?"-"+q:"";for(let N=0;N<4;N++){let K=ZV[N];X[K]=parseFloat(J[G+"-"+K+q])||0}return X.width=X.left+X.right,X.height=X.top+X.bottom,X}var JV=(J,G,q)=>(J>0||G>0)&&(!q||!q.shadowRoot);function QV(J,G){let q=J.touches,X=q&&q.length?q[0]:J,{offsetX:N,offsetY:K}=X,H=!1,F,W;if(JV(N,K,J.target))F=N,W=K;else{let M=G.getBoundingClientRect();F=X.clientX-M.left,W=X.clientY-M.top,H=!0}return{x:F,y:W,box:H}}function k2(J,G){if("native"in J)return J;let{canvas:q,currentDevicePixelRatio:X}=G,N=v3(q),K=N.boxSizing==="border-box",H=v7(N,"padding"),F=v7(N,"border","width"),{x:W,y:M,box:R}=QV(J,q),_=H.left+(R&&F.left),P=H.top+(R&&F.top),{width:O,height:E}=G;if(K)O-=H.width+F.width,E-=H.height+F.height;return{x:Math.round((W-_)/O*q.width/X),y:Math.round((M-P)/E*q.height/X)}}function GV(J,G,q){let X,N;if(G===void 0||q===void 0){let K=J&&k3(J);if(!K)G=J.clientWidth,q=J.clientHeight;else{let H=K.getBoundingClientRect(),F=v3(K),W=v7(F,"border","width"),M=v7(F,"padding");G=H.width-M.width-W.width,q=H.height-M.height-W.height,X=T3(F.maxWidth,K,"clientWidth"),N=T3(F.maxHeight,K,"clientHeight")}}return{width:G,height:q,maxWidth:X||L3,maxHeight:N||L3}}var A2=(J)=>Math.round(J*10)/10;function ew(J,G,q,X){let N=v3(J),K=v7(N,"margin"),H=T3(N.maxWidth,J,"clientWidth")||L3,F=T3(N.maxHeight,J,"clientHeight")||L3,W=GV(J,G,q),{width:M,height:R}=W;if(N.boxSizing==="content-box"){let P=v7(N,"border","width"),O=v7(N,"padding");M-=O.width+P.width,R-=O.height+P.height}if(M=Math.max(0,M-K.width),R=Math.max(0,X?M/X:R-K.height),M=A2(Math.min(M,H,W.maxWidth)),R=A2(Math.min(R,F,W.maxHeight)),M&&!R)R=A2(M/2);if((G!==void 0||q!==void 0)&&X&&W.height&&R>W.height)R=W.height,M=A2(Math.floor(R*X));return{width:M,height:R}}function LU(J,G,q){let X=G||1,N=A2(J.height*X),K=A2(J.width*X);J.height=A2(J.height),J.width=A2(J.width);let H=J.canvas;if(H.style&&(q||!H.style.height&&!H.style.width))H.style.height=`${J.height}px`,H.style.width=`${J.width}px`;if(J.currentDevicePixelRatio!==X||H.height!==N||H.width!==K)return J.currentDevicePixelRatio=X,H.height=N,H.width=K,J.ctx.setTransform(X,0,0,X,0,0),!0;return!1}var $R=function(){let J=!1;try{let G={get passive(){return J=!0,!1}};if(j3())window.addEventListener("test",null,G),window.removeEventListener("test",null,G)}catch(G){}return J}();function PU(J,G){let q=$V(J,G),X=q&&q.match(/^(\d+)(\.\d+)?px$/);return X?+X[1]:void 0}function I2(J,G,q,X){return{x:J.x+q*(G.x-J.x),y:J.y+q*(G.y-J.y)}}function ZR(J,G,q,X){return{x:J.x+q*(G.x-J.x),y:X==="middle"?q<0.5?J.y:G.y:X==="after"?q<1?J.y:G.y:q>0?G.y:J.y}}function JR(J,G,q,X){let N={x:J.cp2x,y:J.cp2y},K={x:G.cp1x,y:G.cp1y},H=I2(J,N,q),F=I2(N,K,q),W=I2(K,G,q),M=I2(H,F,q),R=I2(F,W,q);return I2(M,R,q)}var qV=function(J,G){return{x(q){return J+J+G-q},setWidth(q){G=q},textAlign(q){if(q==="center")return q;return q==="right"?"left":"right"},xPlus(q,X){return q-X},leftForLtr(q,X){return q-X}}},YV=function(){return{x(J){return J},setWidth(J){},textAlign(J){return J},xPlus(J,G){return J+G},leftForLtr(J,G){return J}}};function y7(J,G,q){return J?qV(G,q):YV()}function TU(J,G){let q,X;if(G==="ltr"||G==="rtl")q=J.canvas.style,X=[q.getPropertyValue("direction"),q.getPropertyPriority("direction")],q.setProperty("direction",G,"important"),J.prevTextDirection=X}function CU(J,G){if(G!==void 0)delete J.prevTextDirection,J.canvas.style.setProperty("direction",G[0],G[1])}function QR(J){if(J==="angle")return{between:YU,compare:CI,normalize:i5};return{between:O8,compare:(G,q)=>G-q,normalize:(G)=>G}}function Cw({start:J,end:G,count:q,loop:X,style:N}){return{start:J%q,end:G%q,loop:X&&(G-J+1)%q===0,style:N}}function XV(J,G,q){let{property:X,start:N,end:K}=q,{between:H,normalize:F}=QR(X),W=G.length,{start:M,end:R,loop:_}=J,P,O;if(_){M+=W,R+=W;for(P=0,O=W;P<O;++P){if(!H(F(G[M%W][X]),N,K))break;M--,R--}M%=W,R%=W}if(R<M)R+=W;return{start:M,end:R,loop:_,style:J.style}}function OU(J,G,q){if(!q)return[J];let{property:X,start:N,end:K}=q,H=G.length,{compare:F,between:W,normalize:M}=QR(X),{start:R,end:_,loop:P,style:O}=XV(J,G,q),E=[],V=!1,I=null,j,h,p,n=()=>W(N,p,j)&&F(N,p)!==0,a=()=>F(K,j)===0||W(K,p,j),Q0=()=>V||n(),t=()=>!V||a();for(let i=R,X0=R;i<=_;++i){if(h=G[i%H],h.skip)continue;if(j=M(h[X]),j===p)continue;if(V=W(j,N,K),I===null&&Q0())I=F(j,N)===0?i:X0;if(I!==null&&t())E.push(Cw({start:I,end:i,loop:P,count:H,style:O})),I=null;X0=i,p=j}if(I!==null)E.push(Cw({start:I,end:_,loop:P,count:H,style:O}));return E}function IU(J,G){let q=[],X=J.segments;for(let N=0;N<X.length;N++){let K=OU(X[N],J.points,G);if(K.length)q.push(...K)}return q}function NV(J,G,q,X){let N=0,K=G-1;if(q&&!X)while(N<G&&!J[N].skip)N++;while(N<G&&J[N].skip)N++;if(N%=G,q)K+=N;while(K>N&&J[K%G].skip)K--;return K%=G,{start:N,end:K}}function UV(J,G,q,X){let N=J.length,K=[],H=G,F=J[G],W;for(W=G+1;W<=q;++W){let M=J[W%N];if(M.skip||M.stop){if(!F.skip)X=!1,K.push({start:G%N,end:(W-1)%N,loop:X}),G=H=M.stop?W:null}else if(H=W,F.skip)G=W;F=M}if(H!==null)K.push({start:G%N,end:H%N,loop:X});return K}function GR(J,G){let q=J.points,X=J.options.spanGaps,N=q.length;if(!N)return[];let K=!!J._loop,{start:H,end:F}=NV(q,N,K,X);if(X===!0)return Ow(J,[{start:H,end:F,loop:K}],q,G);let W=F<H?F+N:F,M=!!J._fullLoop&&H===0&&F===N-1;return Ow(J,UV(q,H,W,M),q,G)}function Ow(J,G,q,X){if(!X||!X.setContext||!q)return G;return KV(J,G,q,X)}function KV(J,G,q,X){let N=J._chart.getContext(),K=Iw(J.options),{_datasetIndex:H,options:{spanGaps:F}}=J,W=q.length,M=[],R=K,_=G[0].start,P=_;function O(E,V,I,j){let h=F?-1:1;if(E===V)return;E+=W;while(q[E%W].skip)E-=h;while(q[V%W].skip)V+=h;if(E%W!==V%W)M.push({start:E%W,end:V%W,loop:I,style:j}),R=j,_=V%W}for(let E of G){_=F?_:E.start;let V=q[_%W],I;for(P=_+1;P<=E.end;P++){let j=q[P%W];if(I=Iw(X.setContext(I8(N,{type:"segment",p0:V,p1:j,p0DataIndex:(P-1)%W,p1DataIndex:P%W,datasetIndex:H}))),BV(I,R))O(_,P-1,E.loop,R);V=j,R=I}if(_<P-1)O(_,P-1,E.loop,R)}return M}function Iw(J){return{backgroundColor:J.backgroundColor,borderCapStyle:J.borderCapStyle,borderDash:J.borderDash,borderDashOffset:J.borderDashOffset,borderJoinStyle:J.borderJoinStyle,borderWidth:J.borderWidth,borderColor:J.borderColor}}function BV(J,G){if(!G)return!1;let q=[],X=function(N,K){if(!BU(K))return K;if(!q.includes(K))q.push(K);return q.indexOf(K)};return JSON.stringify(J,X)!==JSON.stringify(G,X)}function R3(J,G,q){return J.options.clip?J[q]:G[q]}function HV(J,G){let{xScale:q,yScale:X}=J;if(q&&X)return{left:R3(q,G,"left"),right:R3(q,G,"right"),top:R3(X,G,"top"),bottom:R3(X,G,"bottom")};return G}function VU(J,G){let q=G._clip;if(q.disabled)return!1;let X=HV(G,J.chartArea);return{left:q.left===!1?0:X.left-(q.left===!0?0:q.left),right:q.right===!1?J.width:X.right+(q.right===!0?0:q.right),top:q.top===!1?0:X.top-(q.top===!0?0:q.top),bottom:q.bottom===!1?J.height:X.bottom+(q.bottom===!0?0:q.bottom)}}/*!
|
|
251
251
|
* Chart.js v4.5.1
|
|
252
252
|
* https://www.chartjs.org
|
|
253
253
|
* (c) 2025 Chart.js Contributors
|
|
254
254
|
* Released under the MIT License
|
|
255
|
-
*/class C_{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(Q,J,X,q){let N=J.listeners[q],K=J.duration;N.forEach((H)=>H({chart:Q,initial:J.initial,numSteps:K,currentStep:Math.min(X-J.start,K)}))}_refresh(){if(this._request)return;this._running=!0,this._request=AU.call(window,()=>{if(this._update(),this._request=null,this._running)this._refresh()})}_update(Q=Date.now()){let J=0;if(this._charts.forEach((X,q)=>{if(!X.running||!X.items.length)return;let N=X.items,K=N.length-1,H=!1,F;for(;K>=0;--K)if(F=N[K],F._active){if(F._total>X.duration)X.duration=F._total;F.tick(Q),H=!0}else N[K]=N[N.length-1],N.pop();if(H)q.draw(),this._notify(q,X,Q,"progress");if(!N.length)X.running=!1,this._notify(q,X,Q,"complete"),X.initial=!1;J+=N.length}),this._lastDate=Q,J===0)this._running=!1}_getAnims(Q){let J=this._charts,X=J.get(Q);if(!X)X={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},J.set(Q,X);return X}listen(Q,J,X){this._getAnims(Q).listeners[J].push(X)}add(Q,J){if(!J||!J.length)return;this._getAnims(Q).items.push(...J)}has(Q){return this._getAnims(Q).items.length>0}start(Q){let J=this._charts.get(Q);if(!J)return;J.running=!0,J.start=Date.now(),J.duration=J.items.reduce((X,q)=>Math.max(X,q._duration),0),this._refresh()}running(Q){if(!this._running)return!1;let J=this._charts.get(Q);if(!J||!J.running||!J.items.length)return!1;return!0}stop(Q){let J=this._charts.get(Q);if(!J||!J.items.length)return;let X=J.items,q=X.length-1;for(;q>=0;--q)X[q].cancel();J.items=[],this._notify(Q,J,Date.now(),"complete")}remove(Q){return this._charts.delete(Q)}}var j8=new C_,Az="transparent",BA={boolean(Q,J,X){return X>0.5?J:Q},color(Q,J,X){let q=jU(Q||Az),N=q.valid&&jU(J||Az);return N&&N.valid?N.mix(q,X).hexString():J},number(Q,J,X){return Q+(J-Q)*X}};class I_{constructor(Q,J,X,q){let N=J[X];q=LQ([Q.to,q,N,Q.from]);let K=LQ([Q.from,N,q]);this._active=!0,this._fn=Q.fn||BA[Q.type||typeof K],this._easing=H$[Q.easing]||H$.linear,this._start=Math.floor(Date.now()+(Q.delay||0)),this._duration=this._total=Math.floor(Q.duration),this._loop=!!Q.loop,this._target=J,this._prop=X,this._from=K,this._to=q,this._promises=void 0}active(){return this._active}update(Q,J,X){if(this._active){this._notify(!1);let q=this._target[this._prop],N=X-this._start,K=this._duration-N;this._start=X,this._duration=Math.floor(Math.max(K,Q.duration)),this._total+=N,this._loop=!!Q.loop,this._to=LQ([Q.to,J,q,Q.from]),this._from=LQ([Q.from,q,J])}}cancel(){if(this._active)this.tick(Date.now()),this._active=!1,this._notify(!1)}tick(Q){let J=Q-this._start,X=this._duration,q=this._prop,N=this._from,K=this._loop,H=this._to,F;if(this._active=N!==H&&(K||J<X),!this._active){this._target[q]=H,this._notify(!0);return}if(J<0){this._target[q]=N;return}F=J/X%2,F=K&&F>1?2-F:F,F=this._easing(Math.min(1,Math.max(0,F))),this._target[q]=this._fn(N,H,F)}wait(){let Q=this._promises||(this._promises=[]);return new Promise((J,X)=>{Q.push({res:J,rej:X})})}_notify(Q){let J=Q?"res":"rej",X=this._promises||[];for(let q=0;q<X.length;q++)X[q][J]()}}class KK{constructor(Q,J){this._chart=Q,this._properties=new Map,this.configure(J)}configure(Q){if(!$1(Q))return;let J=Object.keys(m1.animation),X=this._properties;Object.getOwnPropertyNames(Q).forEach((q)=>{let N=Q[q];if(!$1(N))return;let K={};for(let H of J)K[H]=N[H];(j1(N.properties)&&N.properties||[q]).forEach((H)=>{if(H===q||!X.has(H))X.set(H,K)})})}_animateOptions(Q,J){let X=J.options,q=FA(Q,X);if(!q)return[];let N=this._createAnimations(q,X);if(X.$shared)HA(Q.options.$animations,X).then(()=>{Q.options=X},()=>{});return N}_createAnimations(Q,J){let X=this._properties,q=[],N=Q.$animations||(Q.$animations={}),K=Object.keys(J),H=Date.now(),F;for(F=K.length-1;F>=0;--F){let M=K[F];if(M.charAt(0)==="$")continue;if(M==="options"){q.push(...this._animateOptions(Q,J));continue}let w=J[M],R=N[M],_=X.get(M);if(R)if(_&&R.active()){R.update(_,w,H);continue}else R.cancel();if(!_||!_.duration){Q[M]=w;continue}N[M]=R=new I_(_,Q,M,w),q.push(R)}return q}update(Q,J){if(this._properties.size===0){Object.assign(Q,J);return}let X=this._createAnimations(Q,J);if(X.length)return j8.add(this._chart,X),!0}}function HA(Q,J){let X=[],q=Object.keys(J);for(let N=0;N<q.length;N++){let K=Q[q[N]];if(K&&K.active())X.push(K.wait())}return Promise.all(X)}function FA(Q,J){if(!J)return;let X=Q.options;if(!X){Q.options=J;return}if(X.$shared)Q.options=X=Object.assign({},X,{$shared:!1,$animations:{}});return X}function Ez(Q,J){let X=Q&&Q.options||{},q=X.reverse,N=X.min===void 0?J:0,K=X.max===void 0?J:0;return{start:q?K:N,end:q?N:K}}function MA(Q,J,X){if(X===!1)return!1;let q=Ez(Q,X),N=Ez(J,X);return{top:N.end,right:q.end,bottom:N.start,left:q.start}}function WA(Q){let J,X,q,N;if($1(Q))J=Q.top,X=Q.right,q=Q.bottom,N=Q.left;else J=X=q=N=Q;return{top:J,right:X,bottom:q,left:N,disabled:Q===!1}}function O_(Q,J){let X=[],q=Q._getSortedDatasetMetas(J),N,K;for(N=0,K=q.length;N<K;++N)X.push(q[N].index);return X}function Sz(Q,J,X,q={}){let N=Q.keys,K=q.mode==="single",H,F,M,w;if(J===null)return;let R=!1;for(H=0,F=N.length;H<F;++H){if(M=+N[H],M===X){if(R=!0,q.all)continue;break}if(w=Q.values[M],x1(w)&&(K||J===0||H4(J)===H4(w)))J+=w}if(!R&&!q.all)return 0;return J}function wA(Q,J){let{iScale:X,vScale:q}=J,N=X.axis==="x"?"x":"y",K=q.axis==="x"?"x":"y",H=Object.keys(Q),F=Array(H.length),M,w,R;for(M=0,w=H.length;M<w;++M)R=H[M],F[M]={[N]:R,[K]:Q[R]};return F}function lU(Q,J){let X=Q&&Q.options.stacked;return X||X===void 0&&J.stack!==void 0}function RA(Q,J,X){return`${Q.id}.${J.id}.${X.stack||X.type}`}function zA(Q){let{min:J,max:X,minDefined:q,maxDefined:N}=Q.getUserBounds();return{min:q?J:Number.NEGATIVE_INFINITY,max:N?X:Number.POSITIVE_INFINITY}}function _A(Q,J,X){let q=Q[J]||(Q[J]={});return q[X]||(q[X]={})}function jz(Q,J,X,q){for(let N of J.getMatchingVisibleMetas(q).reverse()){let K=Q[N.index];if(X&&K>0||!X&&K<0)return N.index}return null}function Dz(Q,J){let{chart:X,_cachedMeta:q}=Q,N=X._stacks||(X._stacks={}),{iScale:K,vScale:H,index:F}=q,M=K.axis,w=H.axis,R=RA(K,H,q),_=J.length,P;for(let I=0;I<_;++I){let A=J[I],{[M]:V,[w]:O}=A,D=A._stacks||(A._stacks={});P=D[w]=_A(N,R,V),P[F]=O,P._top=jz(P,H,!0,q.type),P._bottom=jz(P,H,!1,q.type);let h=P._visualValues||(P._visualValues={});h[F]=O}}function rU(Q,J){let X=Q.scales;return Object.keys(X).filter((q)=>X[q].axis===J).shift()}function LA(Q,J){return S8(Q,{active:!1,dataset:void 0,datasetIndex:J,index:J,mode:"default",type:"dataset"})}function PA(Q,J,X){return S8(Q,{active:!1,dataIndex:J,parsed:void 0,raw:void 0,element:X,index:J,mode:"default",type:"data"})}function PQ(Q,J){let X=Q.controller.index,q=Q.vScale&&Q.vScale.axis;if(!q)return;J=J||Q._parsed;for(let N of J){let K=N._stacks;if(!K||K[q]===void 0||K[q][X]===void 0)return;if(delete K[q][X],K[q]._visualValues!==void 0&&K[q]._visualValues[X]!==void 0)delete K[q]._visualValues[X]}}var nU=(Q)=>Q==="reset"||Q==="none",vz=(Q,J)=>J?Q:Object.assign({},Q),TA=(Q,J,X)=>Q&&!J.hidden&&J._stacked&&{keys:O_(X,!0),values:null};class QX{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(Q,J){this.chart=Q,this._ctx=Q.ctx,this.index=J,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){let Q=this._cachedMeta;if(this.configure(),this.linkScales(),Q._stacked=lU(Q.vScale,Q),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler"))console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(Q){if(this.index!==Q)PQ(this._cachedMeta);this.index=Q}linkScales(){let Q=this.chart,J=this._cachedMeta,X=this.getDataset(),q=(R,_,P,I)=>R==="x"?_:R==="r"?I:P,N=J.xAxisID=n0(X.xAxisID,rU(Q,"x")),K=J.yAxisID=n0(X.yAxisID,rU(Q,"y")),H=J.rAxisID=n0(X.rAxisID,rU(Q,"r")),F=J.indexAxis,M=J.iAxisID=q(F,N,K,H),w=J.vAxisID=q(F,K,N,H);J.xScale=this.getScaleForId(N),J.yScale=this.getScaleForId(K),J.rScale=this.getScaleForId(H),J.iScale=this.getScaleForId(M),J.vScale=this.getScaleForId(w)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(Q){return this.chart.scales[Q]}_getOtherScale(Q){let J=this._cachedMeta;return Q===J.iScale?J.vScale:J.iScale}reset(){this._update("reset")}_destroy(){let Q=this._cachedMeta;if(this._data)OU(this._data,this);if(Q._stacked)PQ(Q)}_dataCheck(){let Q=this.getDataset(),J=Q.data||(Q.data=[]),X=this._data;if($1(J)){let q=this._cachedMeta;this._data=wA(J,q)}else if(X!==J){if(X){OU(X,this);let q=this._cachedMeta;PQ(q),q._parsed=[]}if(J&&Object.isExtensible(J))Xz(J,this);this._syncList=[],this._data=J}}addElements(){let Q=this._cachedMeta;if(this._dataCheck(),this.datasetElementType)Q.dataset=new this.datasetElementType}buildOrUpdateElements(Q){let J=this._cachedMeta,X=this.getDataset(),q=!1;this._dataCheck();let N=J._stacked;if(J._stacked=lU(J.vScale,J),J.stack!==X.stack)q=!0,PQ(J),J.stack=X.stack;if(this._resyncElements(Q),q||N!==J._stacked)Dz(this,J._parsed),J._stacked=lU(J.vScale,J)}configure(){let Q=this.chart.config,J=Q.datasetScopeKeys(this._type),X=Q.getOptionScopes(this.getDataset(),J,!0);this.options=Q.createResolver(X,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(Q,J){let{_cachedMeta:X,_data:q}=this,{iScale:N,_stacked:K}=X,H=N.axis,F=Q===0&&J===q.length?!0:X._sorted,M=Q>0&&X._parsed[Q-1],w,R,_;if(this._parsing===!1)X._parsed=q,X._sorted=!0,_=q;else{if(j1(q[Q]))_=this.parseArrayData(X,q,Q,J);else if($1(q[Q]))_=this.parseObjectData(X,q,Q,J);else _=this.parsePrimitiveData(X,q,Q,J);let P=()=>R[H]===null||M&&R[H]<M[H];for(w=0;w<J;++w)if(X._parsed[w+Q]=R=_[w],F){if(P())F=!1;M=R}X._sorted=F}if(K)Dz(this,_)}parsePrimitiveData(Q,J,X,q){let{iScale:N,vScale:K}=Q,H=N.axis,F=K.axis,M=N.getLabels(),w=N===K,R=Array(q),_,P,I;for(_=0,P=q;_<P;++_)I=_+X,R[_]={[H]:w||N.parse(M[I],I),[F]:K.parse(J[I],I)};return R}parseArrayData(Q,J,X,q){let{xScale:N,yScale:K}=Q,H=Array(q),F,M,w,R;for(F=0,M=q;F<M;++F)w=F+X,R=J[w],H[F]={x:N.parse(R[0],w),y:K.parse(R[1],w)};return H}parseObjectData(Q,J,X,q){let{xScale:N,yScale:K}=Q,{xAxisKey:H="x",yAxisKey:F="y"}=this._parsing,M=Array(q),w,R,_,P;for(w=0,R=q;w<R;++w)_=w+X,P=J[_],M[w]={x:N.parse(x9(P,H),_),y:K.parse(x9(P,F),_)};return M}getParsed(Q){return this._cachedMeta._parsed[Q]}getDataElement(Q){return this._cachedMeta.data[Q]}applyStack(Q,J,X){let q=this.chart,N=this._cachedMeta,K=J[Q.axis],H={keys:O_(q,!0),values:J._stacks[Q.axis]._visualValues};return Sz(H,K,N.index,{mode:X})}updateRangeFromParsed(Q,J,X,q){let N=X[J.axis],K=N===null?NaN:N,H=q&&X._stacks[J.axis];if(q&&H)q.values=H,K=Sz(q,N,this._cachedMeta.index);Q.min=Math.min(Q.min,K),Q.max=Math.max(Q.max,K)}getMinMax(Q,J){let X=this._cachedMeta,q=X._parsed,N=X._sorted&&Q===X.iScale,K=q.length,H=this._getOtherScale(Q),F=TA(J,X,this.chart),M={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:w,max:R}=zA(H),_,P;function I(){P=q[_];let A=P[H.axis];return!x1(P[Q.axis])||w>A||R<A}for(_=0;_<K;++_){if(I())continue;if(this.updateRangeFromParsed(M,Q,P,F),N)break}if(N)for(_=K-1;_>=0;--_){if(I())continue;this.updateRangeFromParsed(M,Q,P,F);break}return M}getAllParsedValues(Q){let J=this._cachedMeta._parsed,X=[],q,N,K;for(q=0,N=J.length;q<N;++q)if(K=J[q][Q.axis],x1(K))X.push(K);return X}getMaxOverflow(){return!1}getLabelAndValue(Q){let J=this._cachedMeta,X=J.iScale,q=J.vScale,N=this.getParsed(Q);return{label:X?""+X.getLabelForValue(N[X.axis]):"",value:q?""+q.getLabelForValue(N[q.axis]):""}}_update(Q){let J=this._cachedMeta;this.update(Q||"default"),J._clip=WA(n0(this.options.clip,MA(J.xScale,J.yScale,this.getMaxOverflow())))}update(Q){}draw(){let Q=this._ctx,J=this.chart,X=this._cachedMeta,q=X.data||[],N=J.chartArea,K=[],H=this._drawStart||0,F=this._drawCount||q.length-H,M=this.options.drawActiveElementsOnTop,w;if(X.dataset)X.dataset.draw(Q,N,H,F);for(w=H;w<H+F;++w){let R=q[w];if(R.hidden)continue;if(R.active&&M)K.push(R);else R.draw(Q,N)}for(w=0;w<K.length;++w)K[w].draw(Q,N)}getStyle(Q,J){let X=J?"active":"default";return Q===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(X):this.resolveDataElementOptions(Q||0,X)}getContext(Q,J,X){let q=this.getDataset(),N;if(Q>=0&&Q<this._cachedMeta.data.length){let K=this._cachedMeta.data[Q];N=K.$context||(K.$context=PA(this.getContext(),Q,K)),N.parsed=this.getParsed(Q),N.raw=q.data[Q],N.index=N.dataIndex=Q}else N=this.$context||(this.$context=LA(this.chart.getContext(),this.index)),N.dataset=q,N.index=N.datasetIndex=this.index;return N.active=!!J,N.mode=X,N}resolveDatasetElementOptions(Q){return this._resolveElementOptions(this.datasetElementType.id,Q)}resolveDataElementOptions(Q,J){return this._resolveElementOptions(this.dataElementType.id,J,Q)}_resolveElementOptions(Q,J="default",X){let q=J==="active",N=this._cachedDataOpts,K=Q+"-"+J,H=N[K],F=this.enableOptionSharing&&w$(X);if(H)return vz(H,F);let M=this.chart.config,w=M.datasetElementScopeKeys(this._type,Q),R=q?[`${Q}Hover`,"hover",Q,""]:[Q,""],_=M.getOptionScopes(this.getDataset(),w),P=Object.keys(m1.elements[Q]),I=()=>this.getContext(X,q,J),A=M.resolveNamedOptions(_,P,I,R);if(A.$shared)A.$shared=F,N[K]=Object.freeze(vz(A,F));return A}_resolveAnimations(Q,J,X){let q=this.chart,N=this._cachedDataOpts,K=`animation-${J}`,H=N[K];if(H)return H;let F;if(q.options.animation!==!1){let w=this.chart.config,R=w.datasetAnimationScopeKeys(this._type,J),_=w.getOptionScopes(this.getDataset(),R);F=w.createResolver(_,this.getContext(Q,X,J))}let M=new KK(q,F&&F.animations);if(F&&F._cacheable)N[K]=Object.freeze(M);return M}getSharedOptions(Q){if(!Q.$shared)return;return this._sharedOptions||(this._sharedOptions=Object.assign({},Q))}includeOptions(Q,J){return!J||nU(Q)||this.chart._animationsDisabled}_getSharedOptions(Q,J){let X=this.resolveDataElementOptions(Q,J),q=this._sharedOptions,N=this.getSharedOptions(X),K=this.includeOptions(J,N)||N!==q;return this.updateSharedOptions(N,J,X),{sharedOptions:N,includeOptions:K}}updateElement(Q,J,X,q){if(nU(q))Object.assign(Q,X);else this._resolveAnimations(J,q).update(Q,X)}updateSharedOptions(Q,J,X){if(Q&&!nU(J))this._resolveAnimations(void 0,J).update(Q,X)}_setStyle(Q,J,X,q){Q.active=q;let N=this.getStyle(J,q);this._resolveAnimations(J,X,q).update(Q,{options:!q&&this.getSharedOptions(N)||N})}removeHoverStyle(Q,J,X){this._setStyle(Q,X,"active",!1)}setHoverStyle(Q,J,X){this._setStyle(Q,X,"active",!0)}_removeDatasetHoverStyle(){let Q=this._cachedMeta.dataset;if(Q)this._setStyle(Q,void 0,"active",!1)}_setDatasetHoverStyle(){let Q=this._cachedMeta.dataset;if(Q)this._setStyle(Q,void 0,"active",!0)}_resyncElements(Q){let J=this._data,X=this._cachedMeta.data;for(let[H,F,M]of this._syncList)this[H](F,M);this._syncList=[];let q=X.length,N=J.length,K=Math.min(N,q);if(K)this.parse(0,K);if(N>q)this._insertElements(q,N-q,Q);else if(N<q)this._removeElements(N,q-N)}_insertElements(Q,J,X=!0){let q=this._cachedMeta,N=q.data,K=Q+J,H,F=(M)=>{M.length+=J;for(H=M.length-1;H>=K;H--)M[H]=M[H-J]};F(N);for(H=Q;H<K;++H)N[H]=new this.dataElementType;if(this._parsing)F(q._parsed);if(this.parse(Q,J),X)this.updateElements(N,Q,J,"reset")}updateElements(Q,J,X,q){}_removeElements(Q,J){let X=this._cachedMeta;if(this._parsing){let q=X._parsed.splice(Q,J);if(X._stacked)PQ(X,q)}X.data.splice(Q,J)}_sync(Q){if(this._parsing)this._syncList.push(Q);else{let[J,X,q]=Q;this[J](X,q)}this.chart._dataChanges.push([this.index,...Q])}_onDataPush(){let Q=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-Q,Q])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(Q,J){if(J)this._sync(["_removeElements",Q,J]);let X=arguments.length-2;if(X)this._sync(["_insertElements",Q,X])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function CA(Q,J){if(!Q._cache.$bar){let X=Q.getMatchingVisibleMetas(J),q=[];for(let N=0,K=X.length;N<K;N++)q=q.concat(X[N].controller.getAllParsedValues(Q));Q._cache.$bar=VU(q.sort((N,K)=>N-K))}return Q._cache.$bar}function IA(Q){let J=Q.iScale,X=CA(J,Q.type),q=J._length,N,K,H,F,M=()=>{if(H===32767||H===-32768)return;if(w$(F))q=Math.min(q,Math.abs(H-F)||q);F=H};for(N=0,K=X.length;N<K;++N)H=J.getPixelForValue(X[N]),M();F=void 0;for(N=0,K=J.ticks.length;N<K;++N)H=J.getPixelForTick(N),M();return q}function OA(Q,J,X,q){let N=X.barThickness,K,H;if(J1(N))K=J.min*X.categoryPercentage,H=X.barPercentage;else K=N*q,H=1;return{chunk:K/q,ratio:H,start:J.pixels[Q]-K/2}}function VA(Q,J,X,q){let N=J.pixels,K=N[Q],H=Q>0?N[Q-1]:null,F=Q<N.length-1?N[Q+1]:null,M=X.categoryPercentage;if(H===null)H=K-(F===null?J.end-J.start:F-K);if(F===null)F=K+K-H;let w=K-(K-Math.min(H,F))/2*M;return{chunk:Math.abs(F-H)/2*M/q,ratio:X.barPercentage,start:w}}function AA(Q,J,X,q){let N=X.parse(Q[0],q),K=X.parse(Q[1],q),H=Math.min(N,K),F=Math.max(N,K),M=H,w=F;if(Math.abs(H)>Math.abs(F))M=F,w=H;J[X.axis]=w,J._custom={barStart:M,barEnd:w,start:N,end:K,min:H,max:F}}function V_(Q,J,X,q){if(j1(Q))AA(Q,J,X,q);else J[X.axis]=X.parse(Q,q);return J}function bz(Q,J,X,q){let{iScale:N,vScale:K}=Q,H=N.getLabels(),F=N===K,M=[],w,R,_,P;for(w=X,R=X+q;w<R;++w)P=J[w],_={},_[N.axis]=F||N.parse(H[w],w),M.push(V_(P,_,K,w));return M}function sU(Q){return Q&&Q.barStart!==void 0&&Q.barEnd!==void 0}function EA(Q,J,X){if(Q!==0)return H4(Q);return(J.isHorizontal()?1:-1)*(J.min>=X?1:-1)}function SA(Q){let J,X,q,N,K;if(Q.horizontal)J=Q.base>Q.x,X="left",q="right";else J=Q.base<Q.y,X="bottom",q="top";if(J)N="end",K="start";else N="start",K="end";return{start:X,end:q,reverse:J,top:N,bottom:K}}function jA(Q,J,X,q){let N=J.borderSkipped,K={};if(!N){Q.borderSkipped=K;return}if(N===!0){Q.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}let{start:H,end:F,reverse:M,top:w,bottom:R}=SA(Q);if(N==="middle"&&X)if(Q.enableBorderRadius=!0,(X._top||0)===q)N=w;else if((X._bottom||0)===q)N=R;else K[kz(R,H,F,M)]=!0,N=w;K[kz(N,H,F,M)]=!0,Q.borderSkipped=K}function kz(Q,J,X,q){if(q)Q=DA(Q,J,X),Q=fz(Q,X,J);else Q=fz(Q,J,X);return Q}function DA(Q,J,X){return Q===J?X:Q===X?J:Q}function fz(Q,J,X){return Q==="start"?J:Q==="end"?X:Q}function vA(Q,{inflateAmount:J},X){Q.inflateAmount=J==="auto"?X===1?0.33:0:J}class BK extends QX{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:0.8,barPercentage:0.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(Q,J,X,q){return bz(Q,J,X,q)}parseArrayData(Q,J,X,q){return bz(Q,J,X,q)}parseObjectData(Q,J,X,q){let{iScale:N,vScale:K}=Q,{xAxisKey:H="x",yAxisKey:F="y"}=this._parsing,M=N.axis==="x"?H:F,w=K.axis==="x"?H:F,R=[],_,P,I,A;for(_=X,P=X+q;_<P;++_)A=J[_],I={},I[N.axis]=N.parse(x9(A,M),_),R.push(V_(x9(A,w),I,K,_));return R}updateRangeFromParsed(Q,J,X,q){super.updateRangeFromParsed(Q,J,X,q);let N=X._custom;if(N&&J===this._cachedMeta.vScale)Q.min=Math.min(Q.min,N.min),Q.max=Math.max(Q.max,N.max)}getMaxOverflow(){return 0}getLabelAndValue(Q){let J=this._cachedMeta,{iScale:X,vScale:q}=J,N=this.getParsed(Q),K=N._custom,H=sU(K)?"["+K.start+", "+K.end+"]":""+q.getLabelForValue(N[q.axis]);return{label:""+X.getLabelForValue(N[X.axis]),value:H}}initialize(){this.enableOptionSharing=!0,super.initialize();let Q=this._cachedMeta;Q.stack=this.getDataset().stack}update(Q){let J=this._cachedMeta;this.updateElements(J.data,0,J.data.length,Q)}updateElements(Q,J,X,q){let N=q==="reset",{index:K,_cachedMeta:{vScale:H}}=this,F=H.getBasePixel(),M=H.isHorizontal(),w=this._getRuler(),{sharedOptions:R,includeOptions:_}=this._getSharedOptions(J,q);for(let P=J;P<J+X;P++){let I=this.getParsed(P),A=N||J1(I[H.axis])?{base:F,head:F}:this._calculateBarValuePixels(P),V=this._calculateBarIndexPixels(P,w),O=(I._stacks||{})[H.axis],D={horizontal:M,base:A.base,enableBorderRadius:!O||sU(I._custom)||K===O._top||K===O._bottom,x:M?A.head:V.center,y:M?V.center:A.head,height:M?V.size:Math.abs(A.size),width:M?Math.abs(A.size):V.size};if(_)D.options=R||this.resolveDataElementOptions(P,Q[P].active?"active":q);let h=D.options||Q[P].options;jA(D,h,O,K),vA(D,h,w.ratio),this.updateElement(Q[P],P,D,q)}}_getStacks(Q,J){let{iScale:X}=this._cachedMeta,q=X.getMatchingVisibleMetas(this._type).filter((w)=>w.controller.options.grouped),N=X.options.stacked,K=[],H=this._cachedMeta.controller.getParsed(J),F=H&&H[X.axis],M=(w)=>{let R=w._parsed.find((P)=>P[X.axis]===F),_=R&&R[w.vScale.axis];if(J1(_)||isNaN(_))return!0};for(let w of q){if(J!==void 0&&M(w))continue;if(N===!1||K.indexOf(w.stack)===-1||N===void 0&&w.stack===void 0)K.push(w.stack);if(w.index===Q)break}if(!K.length)K.push(void 0);return K}_getStackCount(Q){return this._getStacks(void 0,Q).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){let Q=this.chart.scales,J=this.chart.options.indexAxis;return Object.keys(Q).filter((X)=>Q[X].axis===J).shift()}_getAxis(){let Q={},J=this.getFirstScaleIdForIndexAxis();for(let X of this.chart.data.datasets)Q[n0(this.chart.options.indexAxis==="x"?X.xAxisID:X.yAxisID,J)]=!0;return Object.keys(Q)}_getStackIndex(Q,J,X){let q=this._getStacks(Q,X),N=J!==void 0?q.indexOf(J):-1;return N===-1?q.length-1:N}_getRuler(){let Q=this.options,J=this._cachedMeta,X=J.iScale,q=[],N,K;for(N=0,K=J.data.length;N<K;++N)q.push(X.getPixelForValue(this.getParsed(N)[X.axis],N));let H=Q.barThickness;return{min:H||IA(J),pixels:q,start:X._startPixel,end:X._endPixel,stackCount:this._getStackCount(),scale:X,grouped:Q.grouped,ratio:H?1:Q.categoryPercentage*Q.barPercentage}}_calculateBarValuePixels(Q){let{_cachedMeta:{vScale:J,_stacked:X,index:q},options:{base:N,minBarLength:K}}=this,H=N||0,F=this.getParsed(Q),M=F._custom,w=sU(M),R=F[J.axis],_=0,P=X?this.applyStack(J,F,X):R,I,A;if(P!==R)_=P-R,P=R;if(w){if(R=M.barStart,P=M.barEnd-M.barStart,R!==0&&H4(R)!==H4(M.barEnd))_=0;_+=R}let V=!J1(N)&&!w?N:_,O=J.getPixelForValue(V);if(this.chart.getDataVisibility(Q))I=J.getPixelForValue(_+P);else I=O;if(A=I-O,Math.abs(A)<K){if(A=EA(A,J,H)*K,R===H)O-=A/2;let D=J.getPixelForDecimal(0),h=J.getPixelForDecimal(1),p=Math.min(D,h),s=Math.max(D,h);if(O=Math.max(Math.min(O,s),p),I=O+A,X&&!w)F._stacks[J.axis]._visualValues[q]=J.getValueForPixel(I)-J.getValueForPixel(O)}if(O===J.getPixelForValue(H)){let D=H4(A)*J.getLineWidthForValue(H)/2;O+=D,A-=D}return{size:A,base:O,head:I,center:I+A/2}}_calculateBarIndexPixels(Q,J){let X=J.scale,q=this.options,N=q.skipNull,K=n0(q.maxBarThickness,1/0),H,F,M=this._getAxisCount();if(J.grouped){let w=N?this._getStackCount(Q):J.stackCount,R=q.barThickness==="flex"?VA(Q,J,q,w*M):OA(Q,J,q,w*M),_=this.chart.options.indexAxis==="x"?this.getDataset().xAxisID:this.getDataset().yAxisID,P=this._getAxis().indexOf(n0(_,this.getFirstScaleIdForIndexAxis())),I=this._getStackIndex(this.index,this._cachedMeta.stack,N?Q:void 0)+P;H=R.start+R.chunk*I+R.chunk/2,F=Math.min(K,R.chunk*R.ratio)}else H=X.getPixelForValue(this.getParsed(Q)[X.axis],Q),F=Math.min(K,J.min*J.ratio);return{base:H-F/2,head:H+F/2,center:H,size:F}}draw(){let Q=this._cachedMeta,J=Q.vScale,X=Q.data,q=X.length,N=0;for(;N<q;++N)if(this.getParsed(N)[J.axis]!==null&&!X[N].hidden)X[N].draw(this._ctx)}}class HK extends QX{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(Q){let J=this._cachedMeta,{dataset:X,data:q=[],_dataset:N}=J,K=this.chart._animationsDisabled,{start:H,count:F}=Nz(J,q,K);if(this._drawStart=H,this._drawCount=F,Uz(J))H=0,F=q.length;X._chart=this.chart,X._datasetIndex=this.index,X._decimated=!!N._decimated,X.points=q;let M=this.resolveDatasetElementOptions(Q);if(!this.options.showLine)M.borderWidth=0;M.segment=this.options.segment,this.updateElement(X,void 0,{animated:!K,options:M},Q),this.updateElements(q,H,F,Q)}updateElements(Q,J,X,q){let N=q==="reset",{iScale:K,vScale:H,_stacked:F,_dataset:M}=this._cachedMeta,{sharedOptions:w,includeOptions:R}=this._getSharedOptions(J,q),_=K.axis,P=H.axis,{spanGaps:I,segment:A}=this.options,V=z$(I)?I:Number.POSITIVE_INFINITY,O=this.chart._animationsDisabled||N||q==="none",D=J+X,h=Q.length,p=J>0&&this.getParsed(J-1);for(let s=0;s<h;++s){let a=Q[s],J0=O?a:{};if(s<J||s>=D){J0.skip=!0;continue}let t=this.getParsed(s),i=J1(t[P]),Y0=J0[_]=K.getPixelForValue(t[_],s),d=J0[P]=N||i?H.getBasePixel():H.getPixelForValue(F?this.applyStack(H,t,F):t[P],s);if(J0.skip=isNaN(Y0)||isNaN(d)||i,J0.stop=s>0&&Math.abs(t[_]-p[_])>V,A)J0.parsed=t,J0.raw=M.data[s];if(R)J0.options=w||this.resolveDataElementOptions(s,a.active?"active":q);if(!O)this.updateElement(a,s,J0,q);p=t}}getMaxOverflow(){let Q=this._cachedMeta,J=Q.dataset,X=J.options&&J.options.borderWidth||0,q=Q.data||[];if(!q.length)return X;let N=q[0].size(this.resolveDataElementOptions(0)),K=q[q.length-1].size(this.resolveDataElementOptions(q.length-1));return Math.max(X,N,K)/2}draw(){let Q=this._cachedMeta;Q.dataset.updateControlPoints(this.chart.chartArea,Q.iScale.axis),super.draw()}}function d9(){throw Error("This method is not implemented: Check that a complete date adapter is provided.")}class FK{static override(Q){Object.assign(FK.prototype,Q)}options;constructor(Q){this.options=Q||{}}init(){}formats(){return d9()}parse(){return d9()}format(){return d9()}add(){return d9()}diff(){return d9()}startOf(){return d9()}endOf(){return d9()}}var bA={_date:FK};function kA(Q,J,X,q){let{controller:N,data:K,_sorted:H}=Q,F=N._cachedMeta.iScale,M=Q.dataset?Q.dataset.options?Q.dataset.options.spanGaps:null:null;if(F&&J===F.axis&&J!=="r"&&H&&K.length){let w=F._reversePixels?Qz:v2;if(!q){let R=w(K,J,X);if(M){let{vScale:_}=N._cachedMeta,{_parsed:P}=Q,I=P.slice(0,R.lo+1).reverse().findIndex((V)=>!J1(V[_.axis]));R.lo-=Math.max(0,I);let A=P.slice(R.hi).findIndex((V)=>!J1(V[_.axis]));R.hi+=Math.max(0,A)}return R}else if(N._sharedOptions){let R=K[0],_=typeof R.getRange==="function"&&R.getRange(J);if(_){let P=w(K,J,X-_),I=w(K,J,X+_);return{lo:P.lo,hi:I.hi}}}}return{lo:0,hi:K.length-1}}function vQ(Q,J,X,q,N){let K=Q.getSortedVisibleDatasetMetas(),H=X[J];for(let F=0,M=K.length;F<M;++F){let{index:w,data:R}=K[F],{lo:_,hi:P}=kA(K[F],J,H,N);for(let I=_;I<=P;++I){let A=R[I];if(!A.skip)q(A,w,I)}}}function fA(Q){let J=Q.indexOf("x")!==-1,X=Q.indexOf("y")!==-1;return function(q,N){let K=J?Math.abs(q.x-N.x):0,H=X?Math.abs(q.y-N.y):0;return Math.sqrt(Math.pow(K,2)+Math.pow(H,2))}}function oU(Q,J,X,q,N){let K=[];if(!N&&!Q.isPointInArea(J))return K;return vQ(Q,X,J,function(F,M,w){if(!N&&!p4(F,Q.chartArea,0))return;if(F.inRange(J.x,J.y,q))K.push({element:F,datasetIndex:M,index:w})},!0),K}function yA(Q,J,X,q){let N=[];function K(H,F,M){let{startAngle:w,endAngle:R}=H.getProps(["startAngle","endAngle"],q),{angle:_}=$z(H,{x:J.x,y:J.y});if(IU(_,w,R))N.push({element:H,datasetIndex:F,index:M})}return vQ(Q,X,J,K),N}function gA(Q,J,X,q,N,K){let H=[],F=fA(X),M=Number.POSITIVE_INFINITY;function w(R,_,P){let I=R.inRange(J.x,J.y,N);if(q&&!I)return;let A=R.getCenterPoint(N);if(!(!!K||Q.isPointInArea(A))&&!I)return;let O=F(J,A);if(O<M)H=[{element:R,datasetIndex:_,index:P}],M=O;else if(O===M)H.push({element:R,datasetIndex:_,index:P})}return vQ(Q,X,J,w),H}function aU(Q,J,X,q,N,K){if(!K&&!Q.isPointInArea(J))return[];return X==="r"&&!q?yA(Q,J,X,N):gA(Q,J,X,q,N,K)}function yz(Q,J,X,q,N){let K=[],H=X==="x"?"inXRange":"inYRange",F=!1;if(vQ(Q,X,J,(M,w,R)=>{if(M[H]&&M[H](J[X],N))K.push({element:M,datasetIndex:w,index:R}),F=F||M.inRange(J.x,J.y,N)}),q&&!F)return[];return K}var hA={evaluateInteractionItems:vQ,modes:{index(Q,J,X,q){let N=h2(J,Q),K=X.axis||"x",H=X.includeInvisible||!1,F=X.intersect?oU(Q,N,K,q,H):aU(Q,N,K,!1,q,H),M=[];if(!F.length)return[];return Q.getSortedVisibleDatasetMetas().forEach((w)=>{let R=F[0].index,_=w.data[R];if(_&&!_.skip)M.push({element:_,datasetIndex:w.index,index:R})}),M},dataset(Q,J,X,q){let N=h2(J,Q),K=X.axis||"xy",H=X.includeInvisible||!1,F=X.intersect?oU(Q,N,K,q,H):aU(Q,N,K,!1,q,H);if(F.length>0){let M=F[0].datasetIndex,w=Q.getDatasetMeta(M).data;F=[];for(let R=0;R<w.length;++R)F.push({element:w[R],datasetIndex:M,index:R})}return F},point(Q,J,X,q){let N=h2(J,Q),K=X.axis||"xy",H=X.includeInvisible||!1;return oU(Q,N,K,q,H)},nearest(Q,J,X,q){let N=h2(J,Q),K=X.axis||"xy",H=X.includeInvisible||!1;return aU(Q,N,K,X.intersect,q,H)},x(Q,J,X,q){let N=h2(J,Q);return yz(Q,N,"x",X.intersect,q)},y(Q,J,X,q){let N=h2(J,Q);return yz(Q,N,"y",X.intersect,q)}}},A_=["left","top","right","bottom"];function TQ(Q,J){return Q.filter((X)=>X.pos===J)}function gz(Q,J){return Q.filter((X)=>A_.indexOf(X.pos)===-1&&X.box.axis===J)}function CQ(Q,J){return Q.sort((X,q)=>{let N=J?q:X,K=J?X:q;return N.weight===K.weight?N.index-K.index:N.weight-K.weight})}function uA(Q){let J=[],X,q,N,K,H,F;for(X=0,q=(Q||[]).length;X<q;++X)N=Q[X],{position:K,options:{stack:H,stackWeight:F=1}}=N,J.push({index:X,box:N,pos:K,horizontal:N.isHorizontal(),weight:N.weight,stack:H&&K+H,stackWeight:F});return J}function xA(Q){let J={};for(let X of Q){let{stack:q,pos:N,stackWeight:K}=X;if(!q||!A_.includes(N))continue;let H=J[q]||(J[q]={count:0,placed:0,weight:0,size:0});H.count++,H.weight+=K}return J}function mA(Q,J){let X=xA(Q),{vBoxMaxWidth:q,hBoxMaxHeight:N}=J,K,H,F;for(K=0,H=Q.length;K<H;++K){F=Q[K];let{fullSize:M}=F.box,w=X[F.stack],R=w&&F.stackWeight/w.weight;if(F.horizontal)F.width=R?R*q:M&&J.availableWidth,F.height=N;else F.width=q,F.height=R?R*N:M&&J.availableHeight}return X}function dA(Q){let J=uA(Q),X=CQ(J.filter((w)=>w.box.fullSize),!0),q=CQ(TQ(J,"left"),!0),N=CQ(TQ(J,"right")),K=CQ(TQ(J,"top"),!0),H=CQ(TQ(J,"bottom")),F=gz(J,"x"),M=gz(J,"y");return{fullSize:X,leftAndTop:q.concat(K),rightAndBottom:N.concat(M).concat(H).concat(F),chartArea:TQ(J,"chartArea"),vertical:q.concat(N).concat(M),horizontal:K.concat(H).concat(F)}}function hz(Q,J,X,q){return Math.max(Q[X],J[X])+Math.max(Q[q],J[q])}function E_(Q,J){Q.top=Math.max(Q.top,J.top),Q.left=Math.max(Q.left,J.left),Q.bottom=Math.max(Q.bottom,J.bottom),Q.right=Math.max(Q.right,J.right)}function pA(Q,J,X,q){let{pos:N,box:K}=X,H=Q.maxPadding;if(!$1(N)){if(X.size)Q[N]-=X.size;let _=q[X.stack]||{size:0,count:1};_.size=Math.max(_.size,X.horizontal?K.height:K.width),X.size=_.size/_.count,Q[N]+=X.size}if(K.getPadding)E_(H,K.getPadding());let F=Math.max(0,J.outerWidth-hz(H,Q,"left","right")),M=Math.max(0,J.outerHeight-hz(H,Q,"top","bottom")),w=F!==Q.w,R=M!==Q.h;return Q.w=F,Q.h=M,X.horizontal?{same:w,other:R}:{same:R,other:w}}function cA(Q){let J=Q.maxPadding;function X(q){let N=Math.max(J[q]-Q[q],0);return Q[q]+=N,N}Q.y+=X("top"),Q.x+=X("left"),X("right"),X("bottom")}function lA(Q,J){let X=J.maxPadding;function q(N){let K={left:0,top:0,right:0,bottom:0};return N.forEach((H)=>{K[H]=Math.max(J[H],X[H])}),K}return Q?q(["left","right"]):q(["top","bottom"])}function VQ(Q,J,X,q){let N=[],K,H,F,M,w,R;for(K=0,H=Q.length,w=0;K<H;++K){F=Q[K],M=F.box,M.update(F.width||J.w,F.height||J.h,lA(F.horizontal,J));let{same:_,other:P}=pA(J,X,F,q);if(w|=_&&N.length,R=R||P,!M.fullSize)N.push(F)}return w&&VQ(N,J,X,q)||R}function s3(Q,J,X,q,N){Q.top=X,Q.left=J,Q.right=J+q,Q.bottom=X+N,Q.width=q,Q.height=N}function uz(Q,J,X,q){let N=X.padding,{x:K,y:H}=J;for(let F of Q){let M=F.box,w=q[F.stack]||{count:1,placed:0,weight:1},R=F.stackWeight/w.weight||1;if(F.horizontal){let _=J.w*R,P=w.size||M.height;if(w$(w.start))H=w.start;if(M.fullSize)s3(M,N.left,H,X.outerWidth-N.right-N.left,P);else s3(M,J.left+w.placed,H,_,P);w.start=H,w.placed+=_,H=M.bottom}else{let _=J.h*R,P=w.size||M.width;if(w$(w.start))K=w.start;if(M.fullSize)s3(M,K,N.top,P,X.outerHeight-N.bottom-N.top);else s3(M,K,J.top+w.placed,P,_);w.start=K,w.placed+=_,K=M.right}}J.x=K,J.y=H}var n6={addBox(Q,J){if(!Q.boxes)Q.boxes=[];J.fullSize=J.fullSize||!1,J.position=J.position||"top",J.weight=J.weight||0,J._layers=J._layers||function(){return[{z:0,draw(X){J.draw(X)}}]},Q.boxes.push(J)},removeBox(Q,J){let X=Q.boxes?Q.boxes.indexOf(J):-1;if(X!==-1)Q.boxes.splice(X,1)},configure(Q,J,X){J.fullSize=X.fullSize,J.position=X.position,J.weight=X.weight},update(Q,J,X,q){if(!Q)return;let N=I5(Q.options.layout.padding),K=Math.max(J-N.width,0),H=Math.max(X-N.height,0),F=dA(Q.boxes),M=F.vertical,w=F.horizontal;W1(Q.boxes,(V)=>{if(typeof V.beforeLayout==="function")V.beforeLayout()});let R=M.reduce((V,O)=>O.box.options&&O.box.options.display===!1?V:V+1,0)||1,_=Object.freeze({outerWidth:J,outerHeight:X,padding:N,availableWidth:K,availableHeight:H,vBoxMaxWidth:K/2/R,hBoxMaxHeight:H/2}),P=Object.assign({},N);E_(P,I5(q));let I=Object.assign({maxPadding:P,w:K,h:H,x:N.left,y:N.top},N),A=mA(M.concat(w),_);if(VQ(F.fullSize,I,_,A),VQ(M,I,_,A),VQ(w,I,_,A))VQ(M,I,_,A);cA(I),uz(F.leftAndTop,I,_,A),I.x+=I.w,I.y+=I.h,uz(F.rightAndBottom,I,_,A),Q.chartArea={left:I.left,top:I.top,right:I.left+I.w,bottom:I.top+I.h,height:I.h,width:I.w},W1(F.chartArea,(V)=>{let O=V.box;Object.assign(O,Q.chartArea),O.update(I.w,I.h,{left:0,top:0,right:0,bottom:0})})}};class MK{acquireContext(Q,J){}releaseContext(Q){return!1}addEventListener(Q,J,X){}removeEventListener(Q,J,X){}getDevicePixelRatio(){return 1}getMaximumSize(Q,J,X,q){return J=Math.max(0,J||Q.width),X=X||Q.height,{width:J,height:Math.max(0,q?Math.floor(J/q):X)}}isAttached(Q){return!0}updateConfig(Q){}}class S_ extends MK{acquireContext(Q){return Q&&Q.getContext&&Q.getContext("2d")||null}updateConfig(Q){Q.options.animation=!1}}var e3="$chartjs",rA={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},xz=(Q)=>Q===null||Q==="";function nA(Q,J){let X=Q.style,q=Q.getAttribute("height"),N=Q.getAttribute("width");if(Q[e3]={initial:{height:q,width:N,style:{display:X.display,height:X.height,width:X.width}}},X.display=X.display||"block",X.boxSizing=X.boxSizing||"border-box",xz(N)){let K=uU(Q,"width");if(K!==void 0)Q.width=K}if(xz(q))if(Q.style.height==="")Q.height=Q.width/(J||2);else{let K=uU(Q,"height");if(K!==void 0)Q.height=K}return Q}var j_=Tz?{passive:!0}:!1;function sA(Q,J,X){if(Q)Q.addEventListener(J,X,j_)}function oA(Q,J,X){if(Q&&Q.canvas)Q.canvas.removeEventListener(J,X,j_)}function aA(Q,J){let X=rA[Q.type]||Q.type,{x:q,y:N}=h2(Q,J);return{type:X,chart:J,native:Q,x:q!==void 0?q:null,y:N!==void 0?N:null}}function ZX(Q,J){for(let X of Q)if(X===J||X.contains(J))return!0}function iA(Q,J,X){let q=Q.canvas,N=new MutationObserver((K)=>{let H=!1;for(let F of K)H=H||ZX(F.addedNodes,q),H=H&&!ZX(F.removedNodes,q);if(H)X()});return N.observe(document,{childList:!0,subtree:!0}),N}function tA(Q,J,X){let q=Q.canvas,N=new MutationObserver((K)=>{let H=!1;for(let F of K)H=H||ZX(F.removedNodes,q),H=H&&!ZX(F.addedNodes,q);if(H)X()});return N.observe(document,{childList:!0,subtree:!0}),N}var SQ=new Map,mz=0;function D_(){let Q=window.devicePixelRatio;if(Q===mz)return;mz=Q,SQ.forEach((J,X)=>{if(X.currentDevicePixelRatio!==Q)J()})}function eA(Q,J){if(!SQ.size)window.addEventListener("resize",D_);SQ.set(Q,J)}function $E(Q){if(SQ.delete(Q),!SQ.size)window.removeEventListener("resize",D_)}function ZE(Q,J,X){let q=Q.canvas,N=q&&r3(q);if(!N)return;let K=EU((F,M)=>{let w=N.clientWidth;if(X(F,M),w<N.clientWidth)X()},window),H=new ResizeObserver((F)=>{let M=F[0],w=M.contentRect.width,R=M.contentRect.height;if(w===0&&R===0)return;K(w,R)});return H.observe(N),eA(Q,K),H}function iU(Q,J,X){if(X)X.disconnect();if(J==="resize")$E(Q)}function QE(Q,J,X){let q=Q.canvas,N=EU((K)=>{if(Q.ctx!==null)X(aA(K,Q))},Q);return sA(q,J,N),N}class v_ extends MK{acquireContext(Q,J){let X=Q&&Q.getContext&&Q.getContext("2d");if(X&&X.canvas===Q)return nA(Q,J),X;return null}releaseContext(Q){let J=Q.canvas;if(!J[e3])return!1;let X=J[e3].initial;["height","width"].forEach((N)=>{let K=X[N];if(J1(K))J.removeAttribute(N);else J.setAttribute(N,K)});let q=X.style||{};return Object.keys(q).forEach((N)=>{J.style[N]=q[N]}),J.width=J.width,delete J[e3],!0}addEventListener(Q,J,X){this.removeEventListener(Q,J);let q=Q.$proxies||(Q.$proxies={}),K={attach:iA,detach:tA,resize:ZE}[J]||QE;q[J]=K(Q,J,X)}removeEventListener(Q,J){let X=Q.$proxies||(Q.$proxies={}),q=X[J];if(!q)return;({attach:iU,detach:iU,resize:iU}[J]||oA)(Q,J,q),X[J]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(Q,J,X,q){return Pz(Q,J,X,q)}isAttached(Q){let J=Q&&r3(Q);return!!(J&&J.isConnected)}}function JE(Q){if(!l3()||typeof OffscreenCanvas<"u"&&Q instanceof OffscreenCanvas)return S_;return v_}class v8{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(Q){let{x:J,y:X}=this.getProps(["x","y"],Q);return{x:J,y:X}}hasValue(){return z$(this.x)&&z$(this.y)}getProps(Q,J){let X=this.$animations;if(!J||!X)return this;let q={};return Q.forEach((N)=>{q[N]=X[N]&&X[N].active()?X[N]._to:this[N]}),q}}function GE(Q,J){let X=Q.options.ticks,q=XE(Q),N=Math.min(X.maxTicksLimit||q,q),K=X.major.enabled?YE(J):[],H=K.length,F=K[0],M=K[H-1],w=[];if(H>N)return NE(J,w,K,H/N),w;let R=qE(K,J,N);if(H>0){let _,P,I=H>1?Math.round((M-F)/(H-1)):null;o3(J,w,R,J1(I)?0:F-I,F);for(_=0,P=H-1;_<P;_++)o3(J,w,R,K[_],K[_+1]);return o3(J,w,R,M,J1(I)?J.length:M+I),w}return o3(J,w,R),w}function XE(Q){let J=Q.options.offset,X=Q._tickSize(),q=Q._length/X+(J?0:1),N=Q._maxLength/X;return Math.floor(Math.min(q,N))}function qE(Q,J,X){let q=UE(Q),N=J.length/X;if(!q)return Math.max(N,1);let K=tR(q);for(let H=0,F=K.length-1;H<F;H++){let M=K[H];if(M>N)return M}return Math.max(N,1)}function YE(Q){let J=[],X,q;for(X=0,q=Q.length;X<q;X++)if(Q[X].major)J.push(X);return J}function NE(Q,J,X,q){let N=0,K=X[0],H;q=Math.ceil(q);for(H=0;H<Q.length;H++)if(H===K)J.push(Q[H]),N++,K=X[N*q]}function o3(Q,J,X,q,N){let K=n0(q,0),H=Math.min(n0(N,Q.length),Q.length),F=0,M,w,R;if(X=Math.ceil(X),N)M=N-q,X=M/Math.floor(M/X);R=K;while(R<0)F++,R=Math.round(K+F*X);for(w=Math.max(K,0);w<H;w++)if(w===R)J.push(Q[w]),F++,R=Math.round(K+F*X)}function UE(Q){let J=Q.length,X,q;if(J<2)return!1;for(q=Q[0],X=1;X<J;++X)if(Q[X]-Q[X-1]!==q)return!1;return q}var KE=(Q)=>Q==="left"?"right":Q==="right"?"left":Q,dz=(Q,J,X)=>J==="top"||J==="left"?Q[J]+X:Q[J]-X,pz=(Q,J)=>Math.min(J||Q,Q);function cz(Q,J){let X=[],q=Q.length/J,N=Q.length,K=0;for(;K<N;K+=q)X.push(Q[Math.floor(K)]);return X}function BE(Q,J,X){let q=Q.ticks.length,N=Math.min(J,q-1),K=Q._startPixel,H=Q._endPixel,F=0.000001,M=Q.getPixelForTick(N),w;if(X){if(q===1)w=Math.max(M-K,H-M);else if(J===0)w=(Q.getPixelForTick(1)-M)/2;else w=(M-Q.getPixelForTick(N-1))/2;if(M+=N<J?w:-w,M<K-0.000001||M>H+0.000001)return}return M}function HE(Q,J){W1(Q,(X)=>{let q=X.gc,N=q.length/2,K;if(N>J){for(K=0;K<N;++K)delete X.data[q[K]];q.splice(0,N)}})}function IQ(Q){return Q.drawTicks?Q.tickLength:0}function lz(Q,J){if(!Q.display)return 0;let X=X5(Q.font,J),q=I5(Q.padding);return(j1(Q.text)?Q.text.length:1)*X.lineHeight+q.height}function FE(Q,J){return S8(Q,{scale:J,type:"scale"})}function ME(Q,J,X){return S8(Q,{tick:X,index:J,type:"tick"})}function WE(Q,J,X){let q=x3(Q);if(X&&J!=="right"||!X&&J==="right")q=KE(q);return q}function wE(Q,J,X,q){let{top:N,left:K,bottom:H,right:F,chart:M}=Q,{chartArea:w,scales:R}=M,_=0,P,I,A,V=H-N,O=F-K;if(Q.isHorizontal()){if(I=C5(q,K,F),$1(X)){let D=Object.keys(X)[0],h=X[D];A=R[D].getPixelForValue(h)+V-J}else if(X==="center")A=(w.bottom+w.top)/2+V-J;else A=dz(Q,X,J);P=F-K}else{if($1(X)){let D=Object.keys(X)[0],h=X[D];I=R[D].getPixelForValue(h)-O+J}else if(X==="center")I=(w.left+w.right)/2-O+J;else I=dz(Q,X,J);A=C5(q,H,N),_=X==="left"?-Z6:Z6}return{titleX:I,titleY:A,maxWidth:P,rotation:_}}class c9 extends v8{constructor(Q){super();this.id=Q.id,this.type=Q.type,this.options=void 0,this.ctx=Q.ctx,this.chart=Q.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(Q){this.options=Q.setContext(this.getContext()),this.axis=Q.axis,this._userMin=this.parse(Q.min),this._userMax=this.parse(Q.max),this._suggestedMin=this.parse(Q.suggestedMin),this._suggestedMax=this.parse(Q.suggestedMax)}parse(Q,J){return Q}getUserBounds(){let{_userMin:Q,_userMax:J,_suggestedMin:X,_suggestedMax:q}=this;return Q=G6(Q,Number.POSITIVE_INFINITY),J=G6(J,Number.NEGATIVE_INFINITY),X=G6(X,Number.POSITIVE_INFINITY),q=G6(q,Number.NEGATIVE_INFINITY),{min:G6(Q,X),max:G6(J,q),minDefined:x1(Q),maxDefined:x1(J)}}getMinMax(Q){let{min:J,max:X,minDefined:q,maxDefined:N}=this.getUserBounds(),K;if(q&&N)return{min:J,max:X};let H=this.getMatchingVisibleMetas();for(let F=0,M=H.length;F<M;++F){if(K=H[F].controller.getMinMax(this,Q),!q)J=Math.min(J,K.min);if(!N)X=Math.max(X,K.max)}return J=N&&J>X?X:J,X=q&&J>X?J:X,{min:G6(J,G6(X,J)),max:G6(X,G6(J,X))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){let Q=this.chart.data;return this.options.labels||(this.isHorizontal()?Q.xLabels:Q.yLabels)||Q.labels||[]}getLabelItems(Q=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(Q))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){V1(this.options.beforeUpdate,[this])}update(Q,J,X){let{beginAtZero:q,grace:N,ticks:K}=this.options,H=K.sampleSize;if(this.beforeUpdate(),this.maxWidth=Q,this.maxHeight=J,this._margins=X=Object.assign({left:0,right:0,top:0,bottom:0},X),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+X.left+X.right:this.height+X.top+X.bottom,!this._dataLimitsCached)this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=Wz(this,N,q),this._dataLimitsCached=!0;this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();let F=H<this.ticks.length;if(this._convertTicksToLabels(F?cz(this.ticks,H):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),K.display&&(K.autoSkip||K.source==="auto"))this.ticks=GE(this,this.ticks),this._labelSizes=null,this.afterAutoSkip();if(F)this._convertTicksToLabels(this.ticks);this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let Q=this.options.reverse,J,X;if(this.isHorizontal())J=this.left,X=this.right;else J=this.top,X=this.bottom,Q=!Q;this._startPixel=J,this._endPixel=X,this._reversePixels=Q,this._length=X-J,this._alignToPixels=this.options.alignToPixels}afterUpdate(){V1(this.options.afterUpdate,[this])}beforeSetDimensions(){V1(this.options.beforeSetDimensions,[this])}setDimensions(){if(this.isHorizontal())this.width=this.maxWidth,this.left=0,this.right=this.width;else this.height=this.maxHeight,this.top=0,this.bottom=this.height;this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){V1(this.options.afterSetDimensions,[this])}_callHooks(Q){this.chart.notifyPlugins(Q,this.getContext()),V1(this.options[Q],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){V1(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(Q){let J=this.options.ticks,X,q,N;for(X=0,q=Q.length;X<q;X++)N=Q[X],N.label=V1(J.callback,[N.value,X,Q],this)}afterTickToLabelConversion(){V1(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){V1(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){let Q=this.options,J=Q.ticks,X=pz(this.ticks.length,Q.ticks.maxTicksLimit),q=J.minRotation||0,N=J.maxRotation,K=q,H,F,M;if(!this._isVisible()||!J.display||q>=N||X<=1||!this.isHorizontal()){this.labelRotation=q;return}let w=this._getLabelSizes(),R=w.widest.width,_=w.highest.height,P=J6(this.chart.width-R,0,this.maxWidth);if(H=Q.offset?this.maxWidth/X:P/(X-1),R+6>H)H=P/(X-(Q.offset?0.5:1)),F=this.maxHeight-IQ(Q.grid)-J.padding-lz(Q.title,this.chart.options.font),M=Math.sqrt(R*R+_*_),K=h3(Math.min(Math.asin(J6((w.highest.height+6)/H,-1,1)),Math.asin(J6(F/M,-1,1))-Math.asin(J6(_/M,-1,1)))),K=Math.max(q,Math.min(N,K));this.labelRotation=K}afterCalculateLabelRotation(){V1(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){V1(this.options.beforeFit,[this])}fit(){let Q={width:0,height:0},{chart:J,options:{ticks:X,title:q,grid:N}}=this,K=this._isVisible(),H=this.isHorizontal();if(K){let F=lz(q,J.options.font);if(H)Q.width=this.maxWidth,Q.height=IQ(N)+F;else Q.height=this.maxHeight,Q.width=IQ(N)+F;if(X.display&&this.ticks.length){let{first:M,last:w,widest:R,highest:_}=this._getLabelSizes(),P=X.padding*2,I=A8(this.labelRotation),A=Math.cos(I),V=Math.sin(I);if(H){let O=X.mirror?0:V*R.width+A*_.height;Q.height=Math.min(this.maxHeight,Q.height+O+P)}else{let O=X.mirror?0:A*R.width+V*_.height;Q.width=Math.min(this.maxWidth,Q.width+O+P)}this._calculatePadding(M,w,V,A)}}if(this._handleMargins(),H)this.width=this._length=J.width-this._margins.left-this._margins.right,this.height=Q.height;else this.width=Q.width,this.height=this._length=J.height-this._margins.top-this._margins.bottom}_calculatePadding(Q,J,X,q){let{ticks:{align:N,padding:K},position:H}=this.options,F=this.labelRotation!==0,M=H!=="top"&&this.axis==="x";if(this.isHorizontal()){let w=this.getPixelForTick(0)-this.left,R=this.right-this.getPixelForTick(this.ticks.length-1),_=0,P=0;if(F)if(M)_=q*Q.width,P=X*J.height;else _=X*Q.height,P=q*J.width;else if(N==="start")P=J.width;else if(N==="end")_=Q.width;else if(N!=="inner")_=Q.width/2,P=J.width/2;this.paddingLeft=Math.max((_-w+K)*this.width/(this.width-w),0),this.paddingRight=Math.max((P-R+K)*this.width/(this.width-R),0)}else{let w=J.height/2,R=Q.height/2;if(N==="start")w=0,R=Q.height;else if(N==="end")w=J.height,R=0;this.paddingTop=w+K,this.paddingBottom=R+K}}_handleMargins(){if(this._margins)this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom)}afterFit(){V1(this.options.afterFit,[this])}isHorizontal(){let{axis:Q,position:J}=this.options;return J==="top"||J==="bottom"||Q==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(Q){this.beforeTickToLabelConversion(),this.generateTickLabels(Q);let J,X;for(J=0,X=Q.length;J<X;J++)if(J1(Q[J].label))Q.splice(J,1),X--,J--;this.afterTickToLabelConversion()}_getLabelSizes(){let Q=this._labelSizes;if(!Q){let J=this.options.ticks.sampleSize,X=this.ticks;if(J<X.length)X=cz(X,J);this._labelSizes=Q=this._computeLabelSizes(X,X.length,this.options.ticks.maxTicksLimit)}return Q}_computeLabelSizes(Q,J,X){let{ctx:q,_longestTextCache:N}=this,K=[],H=[],F=Math.floor(J/pz(J,X)),M=0,w=0,R,_,P,I,A,V,O,D,h,p,s;for(R=0;R<J;R+=F){if(I=Q[R].label,A=this._resolveTickFontOptions(R),q.font=V=A.string,O=N[V]=N[V]||{data:{},gc:[]},D=A.lineHeight,h=p=0,!J1(I)&&!j1(I))h=WQ(q,O.data,O.gc,h,I),p=D;else if(j1(I)){for(_=0,P=I.length;_<P;++_)if(s=I[_],!J1(s)&&!j1(s))h=WQ(q,O.data,O.gc,h,s),p+=D}K.push(h),H.push(p),M=Math.max(h,M),w=Math.max(p,w)}HE(N,J);let a=K.indexOf(M),J0=H.indexOf(w),t=(i)=>({width:K[i]||0,height:H[i]||0});return{first:t(0),last:t(J-1),widest:t(a),highest:t(J0),widths:K,heights:H}}getLabelForValue(Q){return Q}getPixelForValue(Q,J){return NaN}getValueForPixel(Q){}getPixelForTick(Q){let J=this.ticks;if(Q<0||Q>J.length-1)return null;return this.getPixelForValue(J[Q].value)}getPixelForDecimal(Q){if(this._reversePixels)Q=1-Q;let J=this._startPixel+Q*this._length;return Zz(this._alignToPixels?f2(this.chart,J,0):J)}getDecimalForPixel(Q){let J=(Q-this._startPixel)/this._length;return this._reversePixels?1-J:J}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){let{min:Q,max:J}=this;return Q<0&&J<0?J:Q>0&&J>0?Q:0}getContext(Q){let J=this.ticks||[];if(Q>=0&&Q<J.length){let X=J[Q];return X.$context||(X.$context=ME(this.getContext(),Q,X))}return this.$context||(this.$context=FE(this.chart.getContext(),this))}_tickSize(){let Q=this.options.ticks,J=A8(this.labelRotation),X=Math.abs(Math.cos(J)),q=Math.abs(Math.sin(J)),N=this._getLabelSizes(),K=Q.autoSkipPadding||0,H=N?N.widest.width+K:0,F=N?N.highest.height+K:0;return this.isHorizontal()?F*X>H*q?H/X:F/q:F*q<H*X?F/X:H/q}_isVisible(){let Q=this.options.display;if(Q!=="auto")return!!Q;return this.getMatchingVisibleMetas().length>0}_computeGridLineItems(Q){let J=this.axis,X=this.chart,q=this.options,{grid:N,position:K,border:H}=q,F=N.offset,M=this.isHorizontal(),R=this.ticks.length+(F?1:0),_=IQ(N),P=[],I=H.setContext(this.getContext()),A=I.display?I.width:0,V=A/2,O=function(l){return f2(X,l,A)},D,h,p,s,a,J0,t,i,Y0,d,H0,P0;if(K==="top")D=O(this.bottom),J0=this.bottom-_,i=D-V,d=O(Q.top)+V,P0=Q.bottom;else if(K==="bottom")D=O(this.top),d=Q.top,P0=O(Q.bottom)-V,J0=D+V,i=this.top+_;else if(K==="left")D=O(this.right),a=this.right-_,t=D-V,Y0=O(Q.left)+V,H0=Q.right;else if(K==="right")D=O(this.left),Y0=Q.left,H0=O(Q.right)-V,a=D+V,t=this.left+_;else if(J==="x"){if(K==="center")D=O((Q.top+Q.bottom)/2+0.5);else if($1(K)){let l=Object.keys(K)[0],q0=K[l];D=O(this.chart.scales[l].getPixelForValue(q0))}d=Q.top,P0=Q.bottom,J0=D+V,i=J0+_}else if(J==="y"){if(K==="center")D=O((Q.left+Q.right)/2);else if($1(K)){let l=Object.keys(K)[0],q0=K[l];D=O(this.chart.scales[l].getPixelForValue(q0))}a=D-V,t=a-_,Y0=Q.left,H0=Q.right}let I0=n0(q.ticks.maxTicksLimit,R),b0=Math.max(1,Math.ceil(R/I0));for(h=0;h<R;h+=b0){let l=this.getContext(h),q0=N.setContext(l),F0=H.setContext(l),a0=q0.lineWidth,d0=q0.color,v=F0.dash||[],o=F0.dashOffset,M0=q0.tickWidth,W0=q0.tickColor,p0=q0.tickBorderDash||[],p1=q0.tickBorderDashOffset;if(p=BE(this,h,F),p===void 0)continue;if(s=f2(X,p,a0),M)a=t=Y0=H0=s;else J0=i=d=P0=s;P.push({tx1:a,ty1:J0,tx2:t,ty2:i,x1:Y0,y1:d,x2:H0,y2:P0,width:a0,color:d0,borderDash:v,borderDashOffset:o,tickWidth:M0,tickColor:W0,tickBorderDash:p0,tickBorderDashOffset:p1})}return this._ticksLength=R,this._borderValue=D,P}_computeLabelItems(Q){let J=this.axis,X=this.options,{position:q,ticks:N}=X,K=this.isHorizontal(),H=this.ticks,{align:F,crossAlign:M,padding:w,mirror:R}=N,_=IQ(X.grid),P=_+w,I=R?-w:P,A=-A8(this.labelRotation),V=[],O,D,h,p,s,a,J0,t,i,Y0,d,H0,P0="middle";if(q==="top")a=this.bottom-I,J0=this._getXAxisLabelAlignment();else if(q==="bottom")a=this.top+I,J0=this._getXAxisLabelAlignment();else if(q==="left"){let b0=this._getYAxisLabelAlignment(_);J0=b0.textAlign,s=b0.x}else if(q==="right"){let b0=this._getYAxisLabelAlignment(_);J0=b0.textAlign,s=b0.x}else if(J==="x"){if(q==="center")a=(Q.top+Q.bottom)/2+P;else if($1(q)){let b0=Object.keys(q)[0],l=q[b0];a=this.chart.scales[b0].getPixelForValue(l)+P}J0=this._getXAxisLabelAlignment()}else if(J==="y"){if(q==="center")s=(Q.left+Q.right)/2-P;else if($1(q)){let b0=Object.keys(q)[0],l=q[b0];s=this.chart.scales[b0].getPixelForValue(l)}J0=this._getYAxisLabelAlignment(_).textAlign}if(J==="y"){if(F==="start")P0="top";else if(F==="end")P0="bottom"}let I0=this._getLabelSizes();for(O=0,D=H.length;O<D;++O){h=H[O],p=h.label;let b0=N.setContext(this.getContext(O));t=this.getPixelForTick(O)+N.labelOffset,i=this._resolveTickFontOptions(O),Y0=i.lineHeight,d=j1(p)?p.length:1;let l=d/2,q0=b0.color,F0=b0.textStrokeColor,a0=b0.textStrokeWidth,d0=J0;if(K){if(s=t,J0==="inner")if(O===D-1)d0=!this.options.reverse?"right":"left";else if(O===0)d0=!this.options.reverse?"left":"right";else d0="center";if(q==="top")if(M==="near"||A!==0)H0=-d*Y0+Y0/2;else if(M==="center")H0=-I0.highest.height/2-l*Y0+Y0;else H0=-I0.highest.height+Y0/2;else if(M==="near"||A!==0)H0=Y0/2;else if(M==="center")H0=I0.highest.height/2-l*Y0;else H0=I0.highest.height-d*Y0;if(R)H0*=-1;if(A!==0&&!b0.showLabelBackdrop)s+=Y0/2*Math.sin(A)}else a=t,H0=(1-d)*Y0/2;let v;if(b0.showLabelBackdrop){let o=I5(b0.backdropPadding),M0=I0.heights[O],W0=I0.widths[O],p0=H0-o.top,p1=0-o.left;switch(P0){case"middle":p0-=M0/2;break;case"bottom":p0-=M0;break}switch(J0){case"center":p1-=W0/2;break;case"right":p1-=W0;break;case"inner":if(O===D-1)p1-=W0;else if(O>0)p1-=W0/2;break}v={left:p1,top:p0,width:W0+o.width,height:M0+o.height,color:b0.backdropColor}}V.push({label:p,font:i,textOffset:H0,options:{rotation:A,color:q0,strokeColor:F0,strokeWidth:a0,textAlign:d0,textBaseline:P0,translation:[s,a],backdrop:v}})}return V}_getXAxisLabelAlignment(){let{position:Q,ticks:J}=this.options;if(-A8(this.labelRotation))return Q==="top"?"left":"right";let q="center";if(J.align==="start")q="left";else if(J.align==="end")q="right";else if(J.align==="inner")q="inner";return q}_getYAxisLabelAlignment(Q){let{position:J,ticks:{crossAlign:X,mirror:q,padding:N}}=this.options,K=this._getLabelSizes(),H=Q+N,F=K.widest.width,M,w;if(J==="left")if(q)if(w=this.right+N,X==="near")M="left";else if(X==="center")M="center",w+=F/2;else M="right",w+=F;else if(w=this.right-H,X==="near")M="right";else if(X==="center")M="center",w-=F/2;else M="left",w=this.left;else if(J==="right")if(q)if(w=this.left+N,X==="near")M="right";else if(X==="center")M="center",w-=F/2;else M="left",w-=F;else if(w=this.left+H,X==="near")M="left";else if(X==="center")M="center",w+=F/2;else M="right",w=this.right;else M="right";return{textAlign:M,x:w}}_computeLabelArea(){if(this.options.ticks.mirror)return;let Q=this.chart,J=this.options.position;if(J==="left"||J==="right")return{top:0,left:this.left,bottom:Q.height,right:this.right};if(J==="top"||J==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:Q.width}}drawBackground(){let{ctx:Q,options:{backgroundColor:J},left:X,top:q,width:N,height:K}=this;if(J)Q.save(),Q.fillStyle=J,Q.fillRect(X,q,N,K),Q.restore()}getLineWidthForValue(Q){let J=this.options.grid;if(!this._isVisible()||!J.display)return 0;let q=this.ticks.findIndex((N)=>N.value===Q);if(q>=0)return J.setContext(this.getContext(q)).lineWidth;return 0}drawGrid(Q){let J=this.options.grid,X=this.ctx,q=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(Q)),N,K,H=(F,M,w)=>{if(!w.width||!w.color)return;X.save(),X.lineWidth=w.width,X.strokeStyle=w.color,X.setLineDash(w.borderDash||[]),X.lineDashOffset=w.borderDashOffset,X.beginPath(),X.moveTo(F.x,F.y),X.lineTo(M.x,M.y),X.stroke(),X.restore()};if(J.display)for(N=0,K=q.length;N<K;++N){let F=q[N];if(J.drawOnChartArea)H({x:F.x1,y:F.y1},{x:F.x2,y:F.y2},F);if(J.drawTicks)H({x:F.tx1,y:F.ty1},{x:F.tx2,y:F.ty2},{color:F.tickColor,width:F.tickWidth,borderDash:F.tickBorderDash,borderDashOffset:F.tickBorderDashOffset})}}drawBorder(){let{chart:Q,ctx:J,options:{border:X,grid:q}}=this,N=X.setContext(this.getContext()),K=X.display?N.width:0;if(!K)return;let H=q.setContext(this.getContext(0)).lineWidth,F=this._borderValue,M,w,R,_;if(this.isHorizontal())M=f2(Q,this.left,K)-K/2,w=f2(Q,this.right,H)+H/2,R=_=F;else R=f2(Q,this.top,K)-K/2,_=f2(Q,this.bottom,H)+H/2,M=w=F;J.save(),J.lineWidth=N.width,J.strokeStyle=N.color,J.beginPath(),J.moveTo(M,R),J.lineTo(w,_),J.stroke(),J.restore()}drawLabels(Q){if(!this.options.ticks.display)return;let X=this.ctx,q=this._computeLabelArea();if(q)zQ(X,q);let N=this.getLabelItems(Q);for(let K of N){let{options:H,font:F,label:M,textOffset:w}=K;y2(X,M,0,w,F,H)}if(q)_Q(X)}drawTitle(){let{ctx:Q,options:{position:J,title:X,reverse:q}}=this;if(!X.display)return;let N=X5(X.font),K=I5(X.padding),H=X.align,F=N.lineHeight/2;if(J==="bottom"||J==="center"||$1(J)){if(F+=K.bottom,j1(X.text))F+=N.lineHeight*(X.text.length-1)}else F+=K.top;let{titleX:M,titleY:w,maxWidth:R,rotation:_}=wE(this,F,J,H);y2(Q,X.text,0,0,N,{color:X.color,maxWidth:R,rotation:_,textAlign:WE(H,J,q),textBaseline:"middle",translation:[M,w]})}draw(Q){if(!this._isVisible())return;this.drawBackground(),this.drawGrid(Q),this.drawBorder(),this.drawTitle(),this.drawLabels(Q)}_layers(){let Q=this.options,J=Q.ticks&&Q.ticks.z||0,X=n0(Q.grid&&Q.grid.z,-1),q=n0(Q.border&&Q.border.z,0);if(!this._isVisible()||this.draw!==c9.prototype.draw)return[{z:J,draw:(N)=>{this.draw(N)}}];return[{z:X,draw:(N)=>{this.drawBackground(),this.drawGrid(N),this.drawTitle()}},{z:q,draw:()=>{this.drawBorder()}},{z:J,draw:(N)=>{this.drawLabels(N)}}]}getMatchingVisibleMetas(Q){let J=this.chart.getSortedVisibleDatasetMetas(),X=this.axis+"AxisID",q=[],N,K;for(N=0,K=J.length;N<K;++N){let H=J[N];if(H[X]===this.id&&(!Q||H.type===Q))q.push(H)}return q}_resolveTickFontOptions(Q){let J=this.options.ticks.setContext(this.getContext(Q));return X5(J.font)}_maxDigits(){let Q=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/Q}}class AQ{constructor(Q,J,X){this.type=Q,this.scope=J,this.override=X,this.items=Object.create(null)}isForType(Q){return Object.prototype.isPrototypeOf.call(this.type.prototype,Q.prototype)}register(Q){let J=Object.getPrototypeOf(Q),X;if(_E(J))X=this.register(J);let q=this.items,N=Q.id,K=this.scope+"."+N;if(!N)throw Error("class does not have id: "+Q);if(N in q)return K;if(q[N]=Q,RE(Q,K,X),this.override)m1.override(Q.id,Q.overrides);return K}get(Q){return this.items[Q]}unregister(Q){let J=this.items,X=Q.id,q=this.scope;if(X in J)delete J[X];if(q&&X in m1[q]){if(delete m1[q][X],this.override)delete k2[X]}}}function RE(Q,J,X){let q=F$(Object.create(null),[X?m1.get(X):{},m1.get(J),Q.defaults]);if(m1.set(J,q),Q.defaultRoutes)zE(J,Q.defaultRoutes);if(Q.descriptors)m1.describe(J,Q.descriptors)}function zE(Q,J){Object.keys(J).forEach((X)=>{let q=X.split("."),N=q.pop(),K=[Q].concat(q).join("."),H=J[X].split("."),F=H.pop(),M=H.join(".");m1.route(K,N,M,F)})}function _E(Q){return"id"in Q&&"defaults"in Q}class b_{constructor(){this.controllers=new AQ(QX,"datasets",!0),this.elements=new AQ(v8,"elements"),this.plugins=new AQ(Object,"plugins"),this.scales=new AQ(c9,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...Q){this._each("register",Q)}remove(...Q){this._each("unregister",Q)}addControllers(...Q){this._each("register",Q,this.controllers)}addElements(...Q){this._each("register",Q,this.elements)}addPlugins(...Q){this._each("register",Q,this.plugins)}addScales(...Q){this._each("register",Q,this.scales)}getController(Q){return this._get(Q,this.controllers,"controller")}getElement(Q){return this._get(Q,this.elements,"element")}getPlugin(Q){return this._get(Q,this.plugins,"plugin")}getScale(Q){return this._get(Q,this.scales,"scale")}removeControllers(...Q){this._each("unregister",Q,this.controllers)}removeElements(...Q){this._each("unregister",Q,this.elements)}removePlugins(...Q){this._each("unregister",Q,this.plugins)}removeScales(...Q){this._each("unregister",Q,this.scales)}_each(Q,J,X){[...J].forEach((q)=>{let N=X||this._getRegistryForType(q);if(X||N.isForType(q)||N===this.plugins&&q.id)this._exec(Q,N,q);else W1(q,(K)=>{let H=X||this._getRegistryForType(K);this._exec(Q,H,K)})})}_exec(Q,J,X){let q=g3(Q);V1(X["before"+q],[],X),J[Q](X),V1(X["after"+q],[],X)}_getRegistryForType(Q){for(let J=0;J<this._typedRegistries.length;J++){let X=this._typedRegistries[J];if(X.isForType(Q))return X}return this.plugins}_get(Q,J,X){let q=J.get(Q);if(q===void 0)throw Error('"'+Q+'" is not a registered '+X+".");return q}}var r4=new b_;class k_{constructor(){this._init=void 0}notify(Q,J,X,q){if(J==="beforeInit")this._init=this._createDescriptors(Q,!0),this._notify(this._init,Q,"install");if(this._init===void 0)return;let N=q?this._descriptors(Q).filter(q):this._descriptors(Q),K=this._notify(N,Q,J,X);if(J==="afterDestroy")this._notify(N,Q,"stop"),this._notify(this._init,Q,"uninstall"),this._init=void 0;return K}_notify(Q,J,X,q){q=q||{};for(let N of Q){let K=N.plugin,H=K[X],F=[J,q,N.options];if(V1(H,F,K)===!1&&q.cancelable)return!1}return!0}invalidate(){if(!J1(this._cache))this._oldCache=this._cache,this._cache=void 0}_descriptors(Q){if(this._cache)return this._cache;let J=this._cache=this._createDescriptors(Q);return this._notifyStateChanges(Q),J}_createDescriptors(Q,J){let X=Q&&Q.config,q=n0(X.options&&X.options.plugins,{}),N=LE(X);return q===!1&&!J?[]:TE(Q,N,q,J)}_notifyStateChanges(Q){let J=this._oldCache||[],X=this._cache,q=(N,K)=>N.filter((H)=>!K.some((F)=>H.plugin.id===F.plugin.id));this._notify(q(J,X),Q,"stop"),this._notify(q(X,J),Q,"start")}}function LE(Q){let J={},X=[],q=Object.keys(r4.plugins.items);for(let K=0;K<q.length;K++)X.push(r4.getPlugin(q[K]));let N=Q.plugins||[];for(let K=0;K<N.length;K++){let H=N[K];if(X.indexOf(H)===-1)X.push(H),J[H.id]=!0}return{plugins:X,localIds:J}}function PE(Q,J){if(!J&&Q===!1)return null;if(Q===!0)return{};return Q}function TE(Q,{plugins:J,localIds:X},q,N){let K=[],H=Q.getContext();for(let F of J){let M=F.id,w=PE(q[M],N);if(w===null)continue;K.push({plugin:F,options:CE(Q.config,{plugin:F,local:X[M]},w,H)})}return K}function CE(Q,{plugin:J,local:X},q,N){let K=Q.pluginScopeKeys(J),H=Q.getOptionScopes(q,K);if(X&&J.defaults)H.push(J.defaults);return Q.createResolver(H,N,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function QK(Q,J){let X=m1.datasets[Q]||{};return((J.datasets||{})[Q]||{}).indexAxis||J.indexAxis||X.indexAxis||"x"}function IE(Q,J){let X=Q;if(Q==="_index_")X=J;else if(Q==="_value_")X=J==="x"?"y":"x";return X}function OE(Q,J){return Q===J?"_index_":"_value_"}function rz(Q){if(Q==="x"||Q==="y"||Q==="r")return Q}function VE(Q){if(Q==="top"||Q==="bottom")return"x";if(Q==="left"||Q==="right")return"y"}function JK(Q,...J){if(rz(Q))return Q;for(let X of J){let q=X.axis||VE(X.position)||Q.length>1&&rz(Q[0].toLowerCase());if(q)return q}throw Error(`Cannot determine type of '${Q}' axis. Please provide 'axis' or 'position' option.`)}function nz(Q,J,X){if(X[J+"AxisID"]===Q)return{axis:J}}function AE(Q,J){if(J.data&&J.data.datasets){let X=J.data.datasets.filter((q)=>q.xAxisID===Q||q.yAxisID===Q);if(X.length)return nz(Q,"x",X[0])||nz(Q,"y",X[0])}return{}}function EE(Q,J){let X=k2[Q.type]||{scales:{}},q=J.scales||{},N=QK(Q.type,J),K=Object.create(null);return Object.keys(q).forEach((H)=>{let F=q[H];if(!$1(F))return console.error(`Invalid scale configuration for scale: ${H}`);if(F._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${H}`);let M=JK(H,F,AE(H,Q),m1.scales[F.type]),w=OE(M,N),R=X.scales||{};K[H]=W$(Object.create(null),[{axis:M},F,R[M],R[w]])}),Q.data.datasets.forEach((H)=>{let F=H.type||Q.type,M=H.indexAxis||QK(F,J),R=(k2[F]||{}).scales||{};Object.keys(R).forEach((_)=>{let P=IE(_,M),I=H[P+"AxisID"]||P;K[I]=K[I]||Object.create(null),W$(K[I],[{axis:P},q[I],R[_]])})}),Object.keys(K).forEach((H)=>{let F=K[H];W$(F,[m1.scales[F.type],m1.scale])}),K}function f_(Q){let J=Q.options||(Q.options={});J.plugins=n0(J.plugins,{}),J.scales=EE(Q,J)}function y_(Q){return Q=Q||{},Q.datasets=Q.datasets||[],Q.labels=Q.labels||[],Q}function SE(Q){return Q=Q||{},Q.data=y_(Q.data),f_(Q),Q}var sz=new Map,g_=new Set;function a3(Q,J){let X=sz.get(Q);if(!X)X=J(),sz.set(Q,X),g_.add(X);return X}var OQ=(Q,J,X)=>{let q=x9(J,X);if(q!==void 0)Q.add(q)};class h_{constructor(Q){this._config=SE(Q),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(Q){this._config.type=Q}get data(){return this._config.data}set data(Q){this._config.data=y_(Q)}get options(){return this._config.options}set options(Q){this._config.options=Q}get plugins(){return this._config.plugins}update(){let Q=this._config;this.clearCache(),f_(Q)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(Q){return a3(Q,()=>[[`datasets.${Q}`,""]])}datasetAnimationScopeKeys(Q,J){return a3(`${Q}.transition.${J}`,()=>[[`datasets.${Q}.transitions.${J}`,`transitions.${J}`],[`datasets.${Q}`,""]])}datasetElementScopeKeys(Q,J){return a3(`${Q}-${J}`,()=>[[`datasets.${Q}.elements.${J}`,`datasets.${Q}`,`elements.${J}`,""]])}pluginScopeKeys(Q){let J=Q.id,X=this.type;return a3(`${X}-plugin-${J}`,()=>[[`plugins.${J}`,...Q.additionalOptionScopes||[]]])}_cachedScopes(Q,J){let X=this._scopeCache,q=X.get(Q);if(!q||J)q=new Map,X.set(Q,q);return q}getOptionScopes(Q,J,X){let{options:q,type:N}=this,K=this._cachedScopes(Q,X),H=K.get(J);if(H)return H;let F=new Set;J.forEach((w)=>{if(Q)F.add(Q),w.forEach((R)=>OQ(F,Q,R));w.forEach((R)=>OQ(F,q,R)),w.forEach((R)=>OQ(F,k2[N]||{},R)),w.forEach((R)=>OQ(F,m1,R)),w.forEach((R)=>OQ(F,d3,R))});let M=Array.from(F);if(M.length===0)M.push(Object.create(null));if(g_.has(J))K.set(J,M);return M}chartOptionScopes(){let{options:Q,type:J}=this;return[Q,k2[J]||{},m1.datasets[J]||{},{type:J},m1,d3]}resolveNamedOptions(Q,J,X,q=[""]){let N={$shared:!0},{resolver:K,subPrefixes:H}=oz(this._resolverCache,Q,q),F=K;if(DE(K,J)){N.$shared=!1,X=O8(X)?X():X;let M=this.createResolver(Q,X,H);F=u9(K,X,M)}for(let M of J)N[M]=F[M];return N}createResolver(Q,J,X=[""],q){let{resolver:N}=oz(this._resolverCache,Q,X);return $1(J)?u9(N,J,void 0,q):N}}function oz(Q,J,X){let q=Q.get(J);if(!q)q=new Map,Q.set(J,q);let N=X.join(),K=q.get(N);if(!K)K={resolver:c3(J,X),subPrefixes:X.filter((F)=>!F.toLowerCase().includes("hover"))},q.set(N,K);return K}var jE=(Q)=>$1(Q)&&Object.getOwnPropertyNames(Q).some((J)=>O8(Q[J]));function DE(Q,J){let{isScriptable:X,isIndexable:q}=fU(Q);for(let N of J){let K=X(N),H=q(N),F=(H||K)&&Q[N];if(K&&(O8(F)||jE(F))||H&&j1(F))return!0}return!1}var vE="4.5.1",bE=["top","bottom","left","right","chartArea"];function az(Q,J){return Q==="top"||Q==="bottom"||bE.indexOf(Q)===-1&&J==="x"}function iz(Q,J){return function(X,q){return X[Q]===q[Q]?X[J]-q[J]:X[Q]-q[Q]}}function tz(Q){let J=Q.chart,X=J.options.animation;J.notifyPlugins("afterRender"),V1(X&&X.onComplete,[Q],J)}function kE(Q){let J=Q.chart,X=J.options.animation;V1(X&&X.onProgress,[Q],J)}function u_(Q){if(l3()&&typeof Q==="string")Q=document.getElementById(Q);else if(Q&&Q.length)Q=Q[0];if(Q&&Q.canvas)Q=Q.canvas;return Q}var $X={},ez=(Q)=>{let J=u_(Q);return Object.values($X).filter((X)=>X.canvas===J).pop()};function fE(Q,J,X){let q=Object.keys(Q);for(let N of q){let K=+N;if(K>=J){let H=Q[N];if(delete Q[N],X>0||K>J)Q[K+X]=H}}}function yE(Q,J,X,q){if(!X||Q.type==="mouseout")return null;if(q)return J;return Q}class l9{static defaults=m1;static instances=$X;static overrides=k2;static registry=r4;static version=vE;static getChart=ez;static register(...Q){r4.add(...Q),$_()}static unregister(...Q){r4.remove(...Q),$_()}constructor(Q,J){let X=this.config=new h_(J),q=u_(Q),N=ez(q);if(N)throw Error("Canvas is already in use. Chart with ID '"+N.id+"' must be destroyed before the canvas with ID '"+N.canvas.id+"' can be reused.");let K=X.createResolver(X.chartOptionScopes(),this.getContext());this.platform=new(X.platform||JE(q)),this.platform.updateConfig(X);let H=this.platform.acquireContext(q,K.aspectRatio),F=H&&H.canvas,M=F&&F.height,w=F&&F.width;if(this.id=sR(),this.ctx=H,this.canvas=F,this.width=w,this.height=M,this._options=K,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new k_,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=qz((R)=>this.update(R),K.resizeDelay||0),this._dataChanges=[],$X[this.id]=this,!H||!F){console.error("Failed to create chart: can't acquire context from the given item");return}if(j8.listen(this,"complete",tz),j8.listen(this,"progress",kE),this._initialize(),this.attached)this.update()}get aspectRatio(){let{options:{aspectRatio:Q,maintainAspectRatio:J},width:X,height:q,_aspectRatio:N}=this;if(!J1(Q))return Q;if(J&&N)return N;return q?X/q:null}get data(){return this.config.data}set data(Q){this.config.data=Q}get options(){return this._options}set options(Q){this.config.options=Q}get registry(){return r4}_initialize(){if(this.notifyPlugins("beforeInit"),this.options.responsive)this.resize();else hU(this,this.options.devicePixelRatio);return this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return DU(this.canvas,this.ctx),this}stop(){return j8.stop(this),this}resize(Q,J){if(!j8.running(this))this._resize(Q,J);else this._resizeBeforeDraw={width:Q,height:J}}_resize(Q,J){let X=this.options,q=this.canvas,N=X.maintainAspectRatio&&this.aspectRatio,K=this.platform.getMaximumSize(q,Q,J,N),H=X.devicePixelRatio||this.platform.getDevicePixelRatio(),F=this.width?"resize":"attach";if(this.width=K.width,this.height=K.height,this._aspectRatio=this.aspectRatio,!hU(this,H,!0))return;if(this.notifyPlugins("resize",{size:K}),V1(X.onResize,[this,K],this),this.attached){if(this._doResize(F))this.render()}}ensureScalesHaveIDs(){let J=this.options.scales||{};W1(J,(X,q)=>{X.id=q})}buildOrUpdateScales(){let Q=this.options,J=Q.scales,X=this.scales,q=Object.keys(X).reduce((K,H)=>{return K[H]=!1,K},{}),N=[];if(J)N=N.concat(Object.keys(J).map((K)=>{let H=J[K],F=JK(K,H),M=F==="r",w=F==="x";return{options:H,dposition:M?"chartArea":w?"bottom":"left",dtype:M?"radialLinear":w?"category":"linear"}}));W1(N,(K)=>{let H=K.options,F=H.id,M=JK(F,H),w=n0(H.type,K.dtype);if(H.position===void 0||az(H.position,M)!==az(K.dposition))H.position=K.dposition;q[F]=!0;let R=null;if(F in X&&X[F].type===w)R=X[F];else R=new(r4.getScale(w))({id:F,type:w,ctx:this.ctx,chart:this}),X[R.id]=R;R.init(H,Q)}),W1(q,(K,H)=>{if(!K)delete X[H]}),W1(X,(K)=>{n6.configure(this,K,K.options),n6.addBox(this,K)})}_updateMetasets(){let Q=this._metasets,J=this.data.datasets.length,X=Q.length;if(Q.sort((q,N)=>q.index-N.index),X>J){for(let q=J;q<X;++q)this._destroyDatasetMeta(q);Q.splice(J,X-J)}this._sortedMetasets=Q.slice(0).sort(iz("order","index"))}_removeUnreferencedMetasets(){let{_metasets:Q,data:{datasets:J}}=this;if(Q.length>J.length)delete this._stacks;Q.forEach((X,q)=>{if(J.filter((N)=>N===X._dataset).length===0)this._destroyDatasetMeta(q)})}buildOrUpdateControllers(){let Q=[],J=this.data.datasets,X,q;this._removeUnreferencedMetasets();for(X=0,q=J.length;X<q;X++){let N=J[X],K=this.getDatasetMeta(X),H=N.type||this.config.type;if(K.type&&K.type!==H)this._destroyDatasetMeta(X),K=this.getDatasetMeta(X);if(K.type=H,K.indexAxis=N.indexAxis||QK(H,this.options),K.order=N.order||0,K.index=X,K.label=""+N.label,K.visible=this.isDatasetVisible(X),K.controller)K.controller.updateIndex(X),K.controller.linkScales();else{let F=r4.getController(H),{datasetElementType:M,dataElementType:w}=m1.datasets[H];Object.assign(F,{dataElementType:r4.getElement(w),datasetElementType:M&&r4.getElement(M)}),K.controller=new F(this,X),Q.push(K.controller)}}return this._updateMetasets(),Q}_resetElements(){W1(this.data.datasets,(Q,J)=>{this.getDatasetMeta(J).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(Q){let J=this.config;J.update();let X=this._options=J.createResolver(J.chartOptionScopes(),this.getContext()),q=this._animationsDisabled=!X.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:Q,cancelable:!0})===!1)return;let N=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let K=0;for(let M=0,w=this.data.datasets.length;M<w;M++){let{controller:R}=this.getDatasetMeta(M),_=!q&&N.indexOf(R)===-1;R.buildOrUpdateElements(_),K=Math.max(+R.getMaxOverflow(),K)}if(K=this._minPadding=X.layout.autoPadding?K:0,this._updateLayout(K),!q)W1(N,(M)=>{M.reset()});this._updateDatasets(Q),this.notifyPlugins("afterUpdate",{mode:Q}),this._layers.sort(iz("z","_idx"));let{_active:H,_lastEvent:F}=this;if(F)this._eventHandler(F,!0);else if(H.length)this._updateHoverStyles(H,H,!0);this.render()}_updateScales(){W1(this.scales,(Q)=>{n6.removeBox(this,Q)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){let Q=this.options,J=new Set(Object.keys(this._listeners)),X=new Set(Q.events);if(!LU(J,X)||!!this._responsiveListeners!==Q.responsive)this.unbindEvents(),this.bindEvents()}_updateHiddenIndices(){let{_hiddenIndices:Q}=this,J=this._getUniformDataChanges()||[];for(let{method:X,start:q,count:N}of J){let K=X==="_removeElements"?-N:N;fE(Q,q,K)}}_getUniformDataChanges(){let Q=this._dataChanges;if(!Q||!Q.length)return;this._dataChanges=[];let J=this.data.datasets.length,X=(N)=>new Set(Q.filter((K)=>K[0]===N).map((K,H)=>H+","+K.splice(1).join(","))),q=X(0);for(let N=1;N<J;N++)if(!LU(q,X(N)))return;return Array.from(q).map((N)=>N.split(",")).map((N)=>({method:N[1],start:+N[2],count:+N[3]}))}_updateLayout(Q){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;n6.update(this,this.width,this.height,Q);let J=this.chartArea,X=J.width<=0||J.height<=0;this._layers=[],W1(this.boxes,(q)=>{if(X&&q.position==="chartArea")return;if(q.configure)q.configure();this._layers.push(...q._layers())},this),this._layers.forEach((q,N)=>{q._idx=N}),this.notifyPlugins("afterLayout")}_updateDatasets(Q){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:Q,cancelable:!0})===!1)return;for(let J=0,X=this.data.datasets.length;J<X;++J)this.getDatasetMeta(J).controller.configure();for(let J=0,X=this.data.datasets.length;J<X;++J)this._updateDataset(J,O8(Q)?Q({datasetIndex:J}):Q);this.notifyPlugins("afterDatasetsUpdate",{mode:Q})}_updateDataset(Q,J){let X=this.getDatasetMeta(Q),q={meta:X,index:Q,mode:J,cancelable:!0};if(this.notifyPlugins("beforeDatasetUpdate",q)===!1)return;X.controller._update(J),q.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",q)}render(){if(this.notifyPlugins("beforeRender",{cancelable:!0})===!1)return;if(j8.has(this)){if(this.attached&&!j8.running(this))j8.start(this)}else this.draw(),tz({chart:this})}draw(){let Q;if(this._resizeBeforeDraw){let{width:X,height:q}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(X,q)}if(this.clear(),this.width<=0||this.height<=0)return;if(this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;let J=this._layers;for(Q=0;Q<J.length&&J[Q].z<=0;++Q)J[Q].draw(this.chartArea);this._drawDatasets();for(;Q<J.length;++Q)J[Q].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(Q){let J=this._sortedMetasets,X=[],q,N;for(q=0,N=J.length;q<N;++q){let K=J[q];if(!Q||K.visible)X.push(K)}return X}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;let Q=this.getSortedVisibleDatasetMetas();for(let J=Q.length-1;J>=0;--J)this._drawDataset(Q[J]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(Q){let J=this.ctx,X={meta:Q,index:Q.index,cancelable:!0},q=cU(this,Q);if(this.notifyPlugins("beforeDatasetDraw",X)===!1)return;if(q)zQ(J,q);if(Q.controller.draw(),q)_Q(J);X.cancelable=!1,this.notifyPlugins("afterDatasetDraw",X)}isPointInArea(Q){return p4(Q,this.chartArea,this._minPadding)}getElementsAtEventForMode(Q,J,X,q){let N=hA.modes[J];if(typeof N==="function")return N(this,Q,X,q);return[]}getDatasetMeta(Q){let J=this.data.datasets[Q],X=this._metasets,q=X.filter((N)=>N&&N._dataset===J).pop();if(!q)q={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:J&&J.order||0,index:Q,_dataset:J,_parsed:[],_sorted:!1},X.push(q);return q}getContext(){return this.$context||(this.$context=S8(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(Q){let J=this.data.datasets[Q];if(!J)return!1;let X=this.getDatasetMeta(Q);return typeof X.hidden==="boolean"?!X.hidden:!J.hidden}setDatasetVisibility(Q,J){let X=this.getDatasetMeta(Q);X.hidden=!J}toggleDataVisibility(Q){this._hiddenIndices[Q]=!this._hiddenIndices[Q]}getDataVisibility(Q){return!this._hiddenIndices[Q]}_updateVisibility(Q,J,X){let q=X?"show":"hide",N=this.getDatasetMeta(Q),K=N.controller._resolveAnimations(void 0,q);if(w$(J))N.data[J].hidden=!X,this.update();else this.setDatasetVisibility(Q,X),K.update(N,{visible:X}),this.update((H)=>H.datasetIndex===Q?q:void 0)}hide(Q,J){this._updateVisibility(Q,J,!1)}show(Q,J){this._updateVisibility(Q,J,!0)}_destroyDatasetMeta(Q){let J=this._metasets[Q];if(J&&J.controller)J.controller._destroy();delete this._metasets[Q]}_stop(){let Q,J;this.stop(),j8.remove(this);for(Q=0,J=this.data.datasets.length;Q<J;++Q)this._destroyDatasetMeta(Q)}destroy(){this.notifyPlugins("beforeDestroy");let{canvas:Q,ctx:J}=this;if(this._stop(),this.config.clearCache(),Q)this.unbindEvents(),DU(Q,J),this.platform.releaseContext(J),this.canvas=null,this.ctx=null;delete $X[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...Q){return this.canvas.toDataURL(...Q)}bindEvents(){if(this.bindUserEvents(),this.options.responsive)this.bindResponsiveEvents();else this.attached=!0}bindUserEvents(){let Q=this._listeners,J=this.platform,X=(N,K)=>{J.addEventListener(this,N,K),Q[N]=K},q=(N,K,H)=>{N.offsetX=K,N.offsetY=H,this._eventHandler(N)};W1(this.options.events,(N)=>X(N,q))}bindResponsiveEvents(){if(!this._responsiveListeners)this._responsiveListeners={};let Q=this._responsiveListeners,J=this.platform,X=(F,M)=>{J.addEventListener(this,F,M),Q[F]=M},q=(F,M)=>{if(Q[F])J.removeEventListener(this,F,M),delete Q[F]},N=(F,M)=>{if(this.canvas)this.resize(F,M)},K,H=()=>{q("attach",H),this.attached=!0,this.resize(),X("resize",N),X("detach",K)};if(K=()=>{this.attached=!1,q("resize",N),this._stop(),this._resize(0,0),X("attach",H)},J.isAttached(this.canvas))H();else K()}unbindEvents(){W1(this._listeners,(Q,J)=>{this.platform.removeEventListener(this,J,Q)}),this._listeners={},W1(this._responsiveListeners,(Q,J)=>{this.platform.removeEventListener(this,J,Q)}),this._responsiveListeners=void 0}updateHoverStyle(Q,J,X){let q=X?"set":"remove",N,K,H,F;if(J==="dataset")N=this.getDatasetMeta(Q[0].datasetIndex),N.controller["_"+q+"DatasetHoverStyle"]();for(H=0,F=Q.length;H<F;++H){K=Q[H];let M=K&&this.getDatasetMeta(K.datasetIndex).controller;if(M)M[q+"HoverStyle"](K.element,K.datasetIndex,K.index)}}getActiveElements(){return this._active||[]}setActiveElements(Q){let J=this._active||[],X=Q.map(({datasetIndex:N,index:K})=>{let H=this.getDatasetMeta(N);if(!H)throw Error("No dataset found at index "+N);return{datasetIndex:N,element:H.data[K],index:K}});if(!wQ(X,J))this._active=X,this._lastEvent=null,this._updateHoverStyles(X,J)}notifyPlugins(Q,J,X){return this._plugins.notify(this,Q,J,X)}isPluginEnabled(Q){return this._plugins._cache.filter((J)=>J.plugin.id===Q).length===1}_updateHoverStyles(Q,J,X){let q=this.options.hover,N=(F,M)=>F.filter((w)=>!M.some((R)=>w.datasetIndex===R.datasetIndex&&w.index===R.index)),K=N(J,Q),H=X?Q:N(Q,J);if(K.length)this.updateHoverStyle(K,q.mode,!1);if(H.length&&q.mode)this.updateHoverStyle(H,q.mode,!0)}_eventHandler(Q,J){let X={event:Q,replay:J,cancelable:!0,inChartArea:this.isPointInArea(Q)},q=(K)=>(K.options.events||this.options.events).includes(Q.native.type);if(this.notifyPlugins("beforeEvent",X,q)===!1)return;let N=this._handleEvent(Q,J,X.inChartArea);if(X.cancelable=!1,this.notifyPlugins("afterEvent",X,q),N||X.changed)this.render();return this}_handleEvent(Q,J,X){let{_active:q=[],options:N}=this,K=J,H=this._getActiveElements(Q,q,X,K),F=iR(Q),M=yE(Q,this._lastEvent,X,F);if(X){if(this._lastEvent=null,V1(N.onHover,[Q,H,this],this),F)V1(N.onClick,[Q,H,this],this)}let w=!wQ(H,q);if(w||J)this._active=H,this._updateHoverStyles(H,q,J);return this._lastEvent=M,w}_getActiveElements(Q,J,X,q){if(Q.type==="mouseout")return[];if(!X)return J;let N=this.options.hover;return this.getElementsAtEventForMode(Q,N.mode,N,q)}}function $_(){return W1(l9.instances,(Q)=>Q._plugins.invalidate())}function x_(Q,J,X=J){Q.lineCap=n0(X.borderCapStyle,J.borderCapStyle),Q.setLineDash(n0(X.borderDash,J.borderDash)),Q.lineDashOffset=n0(X.borderDashOffset,J.borderDashOffset),Q.lineJoin=n0(X.borderJoinStyle,J.borderJoinStyle),Q.lineWidth=n0(X.borderWidth,J.borderWidth),Q.strokeStyle=n0(X.borderColor,J.borderColor)}function gE(Q,J,X){Q.lineTo(X.x,X.y)}function hE(Q){if(Q.stepped)return Fz;if(Q.tension||Q.cubicInterpolationMode==="monotone")return Mz;return gE}function m_(Q,J,X={}){let q=Q.length,{start:N=0,end:K=q-1}=X,{start:H,end:F}=J,M=Math.max(N,H),w=Math.min(K,F),R=N<H&&K<H||N>F&&K>F;return{count:q,start:M,loop:J.loop,ilen:w<M&&!R?q+w-M:w-M}}function uE(Q,J,X,q){let{points:N,options:K}=J,{count:H,start:F,loop:M,ilen:w}=m_(N,X,q),R=hE(K),{move:_=!0,reverse:P}=q||{},I,A,V;for(I=0;I<=w;++I){if(A=N[(F+(P?w-I:I))%H],A.skip)continue;else if(_)Q.moveTo(A.x,A.y),_=!1;else R(Q,V,A,P,K.stepped);V=A}if(M)A=N[(F+(P?w:0))%H],R(Q,V,A,P,K.stepped);return!!M}function xE(Q,J,X,q){let N=J.points,{count:K,start:H,ilen:F}=m_(N,X,q),{move:M=!0,reverse:w}=q||{},R=0,_=0,P,I,A,V,O,D,h=(s)=>(H+(w?F-s:s))%K,p=()=>{if(V!==O)Q.lineTo(R,O),Q.lineTo(R,V),Q.lineTo(R,D)};if(M)I=N[h(0)],Q.moveTo(I.x,I.y);for(P=0;P<=F;++P){if(I=N[h(P)],I.skip)continue;let{x:s,y:a}=I,J0=s|0;if(J0===A){if(a<V)V=a;else if(a>O)O=a;R=(_*R+s)/++_}else p(),Q.lineTo(s,a),A=J0,_=0,V=O=a;D=a}p()}function GK(Q){let J=Q.options,X=J.borderDash&&J.borderDash.length;return!Q._decimated&&!Q._loop&&!J.tension&&J.cubicInterpolationMode!=="monotone"&&!J.stepped&&!X?xE:uE}function mE(Q){if(Q.stepped)return Cz;if(Q.tension||Q.cubicInterpolationMode==="monotone")return Iz;return D2}function dE(Q,J,X,q){let N=J._path;if(!N){if(N=J._path=new Path2D,J.path(N,X,q))N.closePath()}x_(Q,J.options),Q.stroke(N)}function pE(Q,J,X,q){let{segments:N,options:K}=J,H=GK(J);for(let F of N){if(x_(Q,K,F.style),Q.beginPath(),H(Q,J,F,{start:X,end:X+q-1}))Q.closePath();Q.stroke()}}var cE=typeof Path2D==="function";function lE(Q,J,X,q){if(cE&&!J.options.segment)dE(Q,J,X,q);else pE(Q,J,X,q)}class L$ extends v8{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:(Q)=>Q!=="borderDash"&&Q!=="fill"};constructor(Q){super();if(this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,Q)Object.assign(this,Q)}updateControlPoints(Q,J){let X=this.options;if((X.tension||X.cubicInterpolationMode==="monotone")&&!X.stepped&&!this._pointsUpdated){let q=X.spanGaps?this._loop:this._fullLoop;Lz(this._points,X,Q,q,J),this._pointsUpdated=!0}}set points(Q){this._points=Q,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=Vz(this,this.options.segment))}first(){let Q=this.segments,J=this.points;return Q.length&&J[Q[0].start]}last(){let Q=this.segments,J=this.points,X=Q.length;return X&&J[Q[X-1].end]}interpolate(Q,J){let X=this.options,q=Q[J],N=this.points,K=pU(this,{property:J,start:q,end:q});if(!K.length)return;let H=[],F=mE(X),M,w;for(M=0,w=K.length;M<w;++M){let{start:R,end:_}=K[M],P=N[R],I=N[_];if(P===I){H.push(P);continue}let A=Math.abs((q-P[J])/(I[J]-P[J])),V=F(P,I,A,X.stepped);V[J]=Q[J],H.push(V)}return H.length===1?H[0]:H}pathSegment(Q,J,X){return GK(this)(Q,this,J,X)}path(Q,J,X){let q=this.segments,N=GK(this),K=this._loop;J=J||0,X=X||this.points.length-J;for(let H of q)K&=N(Q,this,H,{start:J,end:J+X-1});return!!K}draw(Q,J,X,q){let N=this.options||{};if((this.points||[]).length&&N.borderWidth)Q.save(),lE(Q,this,X,q),Q.restore();if(this.animated)this._pointsUpdated=!1,this._path=void 0}}function Z_(Q,J,X,q){let N=Q.options,{[X]:K}=Q.getProps([X],q);return Math.abs(J-K)<N.radius+N.hitRadius}class WK extends v8{static id="point";parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(Q){super();if(this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,Q)Object.assign(this,Q)}inRange(Q,J,X){let q=this.options,{x:N,y:K}=this.getProps(["x","y"],X);return Math.pow(Q-N,2)+Math.pow(J-K,2)<Math.pow(q.hitRadius+q.radius,2)}inXRange(Q,J){return Z_(this,Q,"x",J)}inYRange(Q,J){return Z_(this,Q,"y",J)}getCenterPoint(Q){let{x:J,y:X}=this.getProps(["x","y"],Q);return{x:J,y:X}}size(Q){Q=Q||this.options||{};let J=Q.radius||0;J=Math.max(J,J&&Q.hoverRadius||0);let X=J&&Q.borderWidth||0;return(J+X)*2}draw(Q,J){let X=this.options;if(this.skip||X.radius<0.1||!p4(this,J,this.size(X)/2))return;Q.strokeStyle=X.borderColor,Q.lineWidth=X.borderWidth,Q.fillStyle=X.backgroundColor,p3(Q,X,this.x,this.y)}getRange(){let Q=this.options||{};return Q.radius+Q.hitRadius}}function d_(Q,J){let{x:X,y:q,base:N,width:K,height:H}=Q.getProps(["x","y","base","width","height"],J),F,M,w,R,_;if(Q.horizontal)_=H/2,F=Math.min(X,N),M=Math.max(X,N),w=q-_,R=q+_;else _=K/2,F=X-_,M=X+_,w=Math.min(q,N),R=Math.max(q,N);return{left:F,top:w,right:M,bottom:R}}function u2(Q,J,X,q){return Q?0:J6(J,X,q)}function rE(Q,J,X){let q=Q.options.borderWidth,N=Q.borderSkipped,K=kU(q);return{t:u2(N.top,K.top,0,X),r:u2(N.right,K.right,0,J),b:u2(N.bottom,K.bottom,0,X),l:u2(N.left,K.left,0,J)}}function nE(Q,J,X){let{enableBorderRadius:q}=Q.getProps(["enableBorderRadius"]),N=Q.options.borderRadius,K=g2(N),H=Math.min(J,X),F=Q.borderSkipped,M=q||$1(N);return{topLeft:u2(!M||F.top||F.left,K.topLeft,0,H),topRight:u2(!M||F.top||F.right,K.topRight,0,H),bottomLeft:u2(!M||F.bottom||F.left,K.bottomLeft,0,H),bottomRight:u2(!M||F.bottom||F.right,K.bottomRight,0,H)}}function sE(Q){let J=d_(Q),X=J.right-J.left,q=J.bottom-J.top,N=rE(Q,X/2,q/2),K=nE(Q,X/2,q/2);return{outer:{x:J.left,y:J.top,w:X,h:q,radius:K},inner:{x:J.left+N.l,y:J.top+N.t,w:X-N.l-N.r,h:q-N.t-N.b,radius:{topLeft:Math.max(0,K.topLeft-Math.max(N.t,N.l)),topRight:Math.max(0,K.topRight-Math.max(N.t,N.r)),bottomLeft:Math.max(0,K.bottomLeft-Math.max(N.b,N.l)),bottomRight:Math.max(0,K.bottomRight-Math.max(N.b,N.r))}}}}function tU(Q,J,X,q){let N=J===null,K=X===null,F=Q&&!(N&&K)&&d_(Q,q);return F&&(N||E8(J,F.left,F.right))&&(K||E8(X,F.top,F.bottom))}function oE(Q){return Q.topLeft||Q.topRight||Q.bottomLeft||Q.bottomRight}function aE(Q,J){Q.rect(J.x,J.y,J.w,J.h)}function eU(Q,J,X={}){let q=Q.x!==X.x?-J:0,N=Q.y!==X.y?-J:0,K=(Q.x+Q.w!==X.x+X.w?J:0)-q,H=(Q.y+Q.h!==X.y+X.h?J:0)-N;return{x:Q.x+q,y:Q.y+N,w:Q.w+K,h:Q.h+H,radius:Q.radius}}class wK extends v8{static id="bar";static defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(Q){super();if(this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,Q)Object.assign(this,Q)}draw(Q){let{inflateAmount:J,options:{borderColor:X,backgroundColor:q}}=this,{inner:N,outer:K}=sE(this),H=oE(K.radius)?_$:aE;if(Q.save(),K.w!==N.w||K.h!==N.h)Q.beginPath(),H(Q,eU(K,J,N)),Q.clip(),H(Q,eU(N,-J,K)),Q.fillStyle=X,Q.fill("evenodd");Q.beginPath(),H(Q,eU(N,J)),Q.fillStyle=q,Q.fill(),Q.restore()}inRange(Q,J,X){return tU(this,Q,J,X)}inXRange(Q,J){return tU(this,Q,null,J)}inYRange(Q,J){return tU(this,null,Q,J)}getCenterPoint(Q){let{x:J,y:X,base:q,horizontal:N}=this.getProps(["x","y","base","horizontal"],Q);return{x:N?(J+q)/2:J,y:N?X:(X+q)/2}}getRange(Q){return Q==="x"?this.width/2:this.height/2}}function iE(Q,J,X){let{segments:q,points:N}=Q,K=J.points,H=[];for(let F of q){let{start:M,end:w}=F;w=JX(M,w,N);let R=XK(X,N[M],N[w],F.loop);if(!J.segments){H.push({source:F,target:R,start:N[M],end:N[w]});continue}let _=pU(J,R);for(let P of _){let I=XK(X,K[P.start],K[P.end],P.loop),A=dU(F,N,I);for(let V of A)H.push({source:V,target:P,start:{[X]:Q_(R,I,"start",Math.max)},end:{[X]:Q_(R,I,"end",Math.min)}})}}return H}function XK(Q,J,X,q){if(q)return;let N=J[Q],K=X[Q];if(Q==="angle")N=$6(N),K=$6(K);return{property:Q,start:N,end:K}}function tE(Q,J){let{x:X=null,y:q=null}=Q||{},N=J.points,K=[];return J.segments.forEach(({start:H,end:F})=>{F=JX(H,F,N);let M=N[H],w=N[F];if(q!==null)K.push({x:M.x,y:q}),K.push({x:w.x,y:q});else if(X!==null)K.push({x:X,y:M.y}),K.push({x:X,y:w.y})}),K}function JX(Q,J,X){for(;J>Q;J--){let q=X[J];if(!isNaN(q.x)&&!isNaN(q.y))break}return J}function Q_(Q,J,X,q){if(Q&&J)return q(Q[X],J[X]);return Q?Q[X]:J?J[X]:0}function p_(Q,J){let X=[],q=!1;if(j1(Q))q=!0,X=Q;else X=tE(Q,J);return X.length?new L$({points:X,options:{tension:0},_loop:q,_fullLoop:q}):null}function J_(Q){return Q&&Q.fill!==!1}function eE(Q,J,X){let N=Q[J].fill,K=[J],H;if(!X)return N;while(N!==!1&&K.indexOf(N)===-1){if(!x1(N))return N;if(H=Q[N],!H)return!1;if(H.visible)return N;K.push(N),N=H.fill}return!1}function $S(Q,J,X){let q=GS(Q);if($1(q))return isNaN(q.value)?!1:q;let N=parseFloat(q);if(x1(N)&&Math.floor(N)===N)return ZS(q[0],J,N,X);return["origin","start","end","stack","shape"].indexOf(q)>=0&&q}function ZS(Q,J,X,q){if(Q==="-"||Q==="+")X=J+X;if(X===J||X<0||X>=q)return!1;return X}function QS(Q,J){let X=null;if(Q==="start")X=J.bottom;else if(Q==="end")X=J.top;else if($1(Q))X=J.getPixelForValue(Q.value);else if(J.getBasePixel)X=J.getBasePixel();return X}function JS(Q,J,X){let q;if(Q==="start")q=X;else if(Q==="end")q=J.options.reverse?J.min:J.max;else if($1(Q))q=Q.value;else q=J.getBaseValue();return q}function GS(Q){let J=Q.options,X=J.fill,q=n0(X&&X.target,X);if(q===void 0)q=!!J.backgroundColor;if(q===!1||q===null)return!1;if(q===!0)return"origin";return q}function XS(Q){let{scale:J,index:X,line:q}=Q,N=[],K=q.segments,H=q.points,F=qS(J,X);F.push(p_({x:null,y:J.bottom},q));for(let M=0;M<K.length;M++){let w=K[M];for(let R=w.start;R<=w.end;R++)YS(N,H[R],F)}return new L$({points:N,options:{}})}function qS(Q,J){let X=[],q=Q.getMatchingVisibleMetas("line");for(let N=0;N<q.length;N++){let K=q[N];if(K.index===J)break;if(!K.hidden)X.unshift(K.dataset)}return X}function YS(Q,J,X){let q=[];for(let N=0;N<X.length;N++){let K=X[N],{first:H,last:F,point:M}=NS(K,J,"x");if(!M||H&&F)continue;if(H)q.unshift(M);else if(Q.push(M),!F)break}Q.push(...q)}function NS(Q,J,X){let q=Q.interpolate(J,X);if(!q)return{};let N=q[X],K=Q.segments,H=Q.points,F=!1,M=!1;for(let w=0;w<K.length;w++){let R=K[w],_=H[R.start][X],P=H[R.end][X];if(E8(N,_,P)){F=N===_,M=N===P;break}}return{first:F,last:M,point:q}}class RK{constructor(Q){this.x=Q.x,this.y=Q.y,this.radius=Q.radius}pathSegment(Q,J,X){let{x:q,y:N,radius:K}=this;return J=J||{start:0,end:Q6},Q.arc(q,N,K,J.end,J.start,!0),!X.bounds}interpolate(Q){let{x:J,y:X,radius:q}=this,N=Q.angle;return{x:J+Math.cos(N)*q,y:X+Math.sin(N)*q,angle:N}}}function US(Q){let{chart:J,fill:X,line:q}=Q;if(x1(X))return KS(J,X);if(X==="stack")return XS(Q);if(X==="shape")return!0;let N=BS(Q);if(N instanceof RK)return N;return p_(N,q)}function KS(Q,J){let X=Q.getDatasetMeta(J);return X&&Q.isDatasetVisible(J)?X.dataset:null}function BS(Q){if((Q.scale||{}).getPointPositionForValue)return FS(Q);return HS(Q)}function HS(Q){let{scale:J={},fill:X}=Q,q=QS(X,J);if(x1(q)){let N=J.isHorizontal();return{x:N?q:null,y:N?null:q}}return null}function FS(Q){let{scale:J,fill:X}=Q,q=J.options,N=J.getLabels().length,K=q.reverse?J.max:J.min,H=JS(X,J,K),F=[];if(q.grid.circular){let M=J.getPointPositionForValue(0,K);return new RK({x:M.x,y:M.y,radius:J.getDistanceFromCenterForValue(H)})}for(let M=0;M<N;++M)F.push(J.getPointPositionForValue(M,H));return F}function $K(Q,J,X){let q=US(J),{chart:N,index:K,line:H,scale:F,axis:M}=J,w=H.options,R=w.fill,_=w.backgroundColor,{above:P=_,below:I=_}=R||{},A=N.getDatasetMeta(K),V=cU(N,A);if(q&&H.points.length)zQ(Q,X),MS(Q,{line:H,target:q,above:P,below:I,area:X,scale:F,axis:M,clip:V}),_Q(Q)}function MS(Q,J){let{line:X,target:q,above:N,below:K,area:H,scale:F,clip:M}=J,w=X._loop?"angle":J.axis;Q.save();let R=K;if(K!==N){if(w==="x")G_(Q,q,H.top),ZK(Q,{line:X,target:q,color:N,scale:F,property:w,clip:M}),Q.restore(),Q.save(),G_(Q,q,H.bottom);else if(w==="y")X_(Q,q,H.left),ZK(Q,{line:X,target:q,color:K,scale:F,property:w,clip:M}),Q.restore(),Q.save(),X_(Q,q,H.right),R=N}ZK(Q,{line:X,target:q,color:R,scale:F,property:w,clip:M}),Q.restore()}function G_(Q,J,X){let{segments:q,points:N}=J,K=!0,H=!1;Q.beginPath();for(let F of q){let{start:M,end:w}=F,R=N[M],_=N[JX(M,w,N)];if(K)Q.moveTo(R.x,R.y),K=!1;else Q.lineTo(R.x,X),Q.lineTo(R.x,R.y);if(H=!!J.pathSegment(Q,F,{move:H}),H)Q.closePath();else Q.lineTo(_.x,X)}Q.lineTo(J.first().x,X),Q.closePath(),Q.clip()}function X_(Q,J,X){let{segments:q,points:N}=J,K=!0,H=!1;Q.beginPath();for(let F of q){let{start:M,end:w}=F,R=N[M],_=N[JX(M,w,N)];if(K)Q.moveTo(R.x,R.y),K=!1;else Q.lineTo(X,R.y),Q.lineTo(R.x,R.y);if(H=!!J.pathSegment(Q,F,{move:H}),H)Q.closePath();else Q.lineTo(X,_.y)}Q.lineTo(X,J.first().y),Q.closePath(),Q.clip()}function ZK(Q,J){let{line:X,target:q,property:N,color:K,scale:H,clip:F}=J,M=iE(X,q,N);for(let{source:w,target:R,start:_,end:P}of M){let{style:{backgroundColor:I=K}={}}=w,A=q!==!0;Q.save(),Q.fillStyle=I,WS(Q,H,F,A&&XK(N,_,P)),Q.beginPath();let V=!!X.pathSegment(Q,w),O;if(A){if(V)Q.closePath();else q_(Q,q,P,N);let D=!!q.pathSegment(Q,R,{move:V,reverse:!0});if(O=V&&D,!O)q_(Q,q,_,N)}Q.closePath(),Q.fill(O?"evenodd":"nonzero"),Q.restore()}}function WS(Q,J,X,q){let N=J.chart.chartArea,{property:K,start:H,end:F}=q||{};if(K==="x"||K==="y"){let M,w,R,_;if(K==="x")M=H,w=N.top,R=F,_=N.bottom;else M=N.left,w=H,R=N.right,_=F;if(Q.beginPath(),X)M=Math.max(M,X.left),R=Math.min(R,X.right),w=Math.max(w,X.top),_=Math.min(_,X.bottom);Q.rect(M,w,R-M,_-w),Q.clip()}}function q_(Q,J,X,q){let N=J.interpolate(X,q);if(N)Q.lineTo(N.x,N.y)}var c_={id:"filler",afterDatasetsUpdate(Q,J,X){let q=(Q.data.datasets||[]).length,N=[],K,H,F,M;for(H=0;H<q;++H){if(K=Q.getDatasetMeta(H),F=K.dataset,M=null,F&&F.options&&F instanceof L$)M={visible:Q.isDatasetVisible(H),index:H,fill:$S(F,H,q),chart:Q,axis:K.controller.options.indexAxis,scale:K.vScale,line:F};K.$filler=M,N.push(M)}for(H=0;H<q;++H){if(M=N[H],!M||M.fill===!1)continue;M.fill=eE(N,H,X.propagate)}},beforeDraw(Q,J,X){let q=X.drawTime==="beforeDraw",N=Q.getSortedVisibleDatasetMetas(),K=Q.chartArea;for(let H=N.length-1;H>=0;--H){let F=N[H].$filler;if(!F)continue;if(F.line.updateControlPoints(K,F.axis),q&&F.fill)$K(Q.ctx,F,K)}},beforeDatasetsDraw(Q,J,X){if(X.drawTime!=="beforeDatasetsDraw")return;let q=Q.getSortedVisibleDatasetMetas();for(let N=q.length-1;N>=0;--N){let K=q[N].$filler;if(J_(K))$K(Q.ctx,K,Q.chartArea)}},beforeDatasetDraw(Q,J,X){let q=J.meta.$filler;if(!J_(q)||X.drawTime!=="beforeDatasetDraw")return;$K(Q.ctx,q,Q.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}},Y_=(Q,J)=>{let{boxHeight:X=J,boxWidth:q=J}=Q;if(Q.usePointStyle)X=Math.min(X,J),q=Q.pointStyleWidth||Math.min(q,J);return{boxWidth:q,boxHeight:X,itemHeight:Math.max(J,X)}},wS=(Q,J)=>Q!==null&&J!==null&&Q.datasetIndex===J.datasetIndex&&Q.index===J.index;class qK extends v8{constructor(Q){super();this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=Q.chart,this.options=Q.options,this.ctx=Q.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(Q,J,X){this.maxWidth=Q,this.maxHeight=J,this._margins=X,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){if(this.isHorizontal())this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width;else this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height}buildLabels(){let Q=this.options.labels||{},J=V1(Q.generateLabels,[this.chart],this)||[];if(Q.filter)J=J.filter((X)=>Q.filter(X,this.chart.data));if(Q.sort)J=J.sort((X,q)=>Q.sort(X,q,this.chart.data));if(this.options.reverse)J.reverse();this.legendItems=J}fit(){let{options:Q,ctx:J}=this;if(!Q.display){this.width=this.height=0;return}let X=Q.labels,q=X5(X.font),N=q.size,K=this._computeTitleHeight(),{boxWidth:H,itemHeight:F}=Y_(X,N),M,w;if(J.font=q.string,this.isHorizontal())M=this.maxWidth,w=this._fitRows(K,N,H,F)+10;else w=this.maxHeight,M=this._fitCols(K,q,H,F)+10;this.width=Math.min(M,Q.maxWidth||this.maxWidth),this.height=Math.min(w,Q.maxHeight||this.maxHeight)}_fitRows(Q,J,X,q){let{ctx:N,maxWidth:K,options:{labels:{padding:H}}}=this,F=this.legendHitBoxes=[],M=this.lineWidths=[0],w=q+H,R=Q;N.textAlign="left",N.textBaseline="middle";let _=-1,P=-w;return this.legendItems.forEach((I,A)=>{let V=X+J/2+N.measureText(I.text).width;if(A===0||M[M.length-1]+V+2*H>K)R+=w,M[M.length-(A>0?0:1)]=0,P+=w,_++;F[A]={left:0,top:P,row:_,width:V,height:q},M[M.length-1]+=V+H}),R}_fitCols(Q,J,X,q){let{ctx:N,maxHeight:K,options:{labels:{padding:H}}}=this,F=this.legendHitBoxes=[],M=this.columnSizes=[],w=K-Q,R=H,_=0,P=0,I=0,A=0;return this.legendItems.forEach((V,O)=>{let{itemWidth:D,itemHeight:h}=RS(X,J,N,V,q);if(O>0&&P+h+2*H>w)R+=_+H,M.push({width:_,height:P}),I+=_+H,A++,_=P=0;F[O]={left:I,top:P,col:A,width:D,height:h},_=Math.max(_,D),P+=h+H}),R+=_,M.push({width:_,height:P}),R}adjustHitBoxes(){if(!this.options.display)return;let Q=this._computeTitleHeight(),{legendHitBoxes:J,options:{align:X,labels:{padding:q},rtl:N}}=this,K=m9(N,this.left,this.width);if(this.isHorizontal()){let H=0,F=C5(X,this.left+q,this.right-this.lineWidths[H]);for(let M of J){if(H!==M.row)H=M.row,F=C5(X,this.left+q,this.right-this.lineWidths[H]);M.top+=this.top+Q+q,M.left=K.leftForLtr(K.x(F),M.width),F+=M.width+q}}else{let H=0,F=C5(X,this.top+Q+q,this.bottom-this.columnSizes[H].height);for(let M of J){if(M.col!==H)H=M.col,F=C5(X,this.top+Q+q,this.bottom-this.columnSizes[H].height);M.top=F,M.left+=this.left+q,M.left=K.leftForLtr(K.x(M.left),M.width),F+=M.height+q}}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){let Q=this.ctx;zQ(Q,this),this._draw(),_Q(Q)}}_draw(){let{options:Q,columnSizes:J,lineWidths:X,ctx:q}=this,{align:N,labels:K}=Q,H=m1.color,F=m9(Q.rtl,this.left,this.width),M=X5(K.font),{padding:w}=K,R=M.size,_=R/2,P;this.drawTitle(),q.textAlign=F.textAlign("left"),q.textBaseline="middle",q.lineWidth=0.5,q.font=M.string;let{boxWidth:I,boxHeight:A,itemHeight:V}=Y_(K,R),O=function(a,J0,t){if(isNaN(I)||I<=0||isNaN(A)||A<0)return;q.save();let i=n0(t.lineWidth,1);if(q.fillStyle=n0(t.fillStyle,H),q.lineCap=n0(t.lineCap,"butt"),q.lineDashOffset=n0(t.lineDashOffset,0),q.lineJoin=n0(t.lineJoin,"miter"),q.lineWidth=i,q.strokeStyle=n0(t.strokeStyle,H),q.setLineDash(n0(t.lineDash,[])),K.usePointStyle){let Y0={radius:A*Math.SQRT2/2,pointStyle:t.pointStyle,rotation:t.rotation,borderWidth:i},d=F.xPlus(a,I/2),H0=J0+_;vU(q,Y0,d,H0,K.pointStyleWidth&&I)}else{let Y0=J0+Math.max((R-A)/2,0),d=F.leftForLtr(a,I),H0=g2(t.borderRadius);if(q.beginPath(),Object.values(H0).some((P0)=>P0!==0))_$(q,{x:d,y:Y0,w:I,h:A,radius:H0});else q.rect(d,Y0,I,A);if(q.fill(),i!==0)q.stroke()}q.restore()},D=function(a,J0,t){y2(q,t.text,a,J0+V/2,M,{strikethrough:t.hidden,textAlign:F.textAlign(t.textAlign)})},h=this.isHorizontal(),p=this._computeTitleHeight();if(h)P={x:C5(N,this.left+w,this.right-X[0]),y:this.top+w+p,line:0};else P={x:this.left+w,y:C5(N,this.top+p+w,this.bottom-J[0].height),line:0};xU(this.ctx,Q.textDirection);let s=V+w;this.legendItems.forEach((a,J0)=>{q.strokeStyle=a.fontColor,q.fillStyle=a.fontColor;let t=q.measureText(a.text).width,i=F.textAlign(a.textAlign||(a.textAlign=K.textAlign)),Y0=I+_+t,d=P.x,H0=P.y;if(F.setWidth(this.width),h){if(J0>0&&d+Y0+w>this.right)H0=P.y+=s,P.line++,d=P.x=C5(N,this.left+w,this.right-X[P.line])}else if(J0>0&&H0+s>this.bottom)d=P.x=d+J[P.line].width+w,P.line++,H0=P.y=C5(N,this.top+p+w,this.bottom-J[P.line].height);let P0=F.x(d);if(O(P0,H0,a),d=Yz(i,d+I+_,h?d+Y0:this.right,Q.rtl),D(F.x(d),H0,a),h)P.x+=Y0+w;else if(typeof a.text!=="string"){let I0=M.lineHeight;P.y+=l_(a,I0)+w}else P.y+=s}),mU(this.ctx,Q.textDirection)}drawTitle(){let Q=this.options,J=Q.title,X=X5(J.font),q=I5(J.padding);if(!J.display)return;let N=m9(Q.rtl,this.left,this.width),K=this.ctx,H=J.position,F=X.size/2,M=q.top+F,w,R=this.left,_=this.width;if(this.isHorizontal())_=Math.max(...this.lineWidths),w=this.top+M,R=C5(Q.align,R,this.right-_);else{let I=this.columnSizes.reduce((A,V)=>Math.max(A,V.height),0);w=M+C5(Q.align,this.top,this.bottom-I-Q.labels.padding-this._computeTitleHeight())}let P=C5(H,R,R+_);K.textAlign=N.textAlign(x3(H)),K.textBaseline="middle",K.strokeStyle=J.color,K.fillStyle=J.color,K.font=X.string,y2(K,J.text,P,w,X)}_computeTitleHeight(){let Q=this.options.title,J=X5(Q.font),X=I5(Q.padding);return Q.display?J.lineHeight+X.height:0}_getLegendItemAt(Q,J){let X,q,N;if(E8(Q,this.left,this.right)&&E8(J,this.top,this.bottom)){N=this.legendHitBoxes;for(X=0;X<N.length;++X)if(q=N[X],E8(Q,q.left,q.left+q.width)&&E8(J,q.top,q.top+q.height))return this.legendItems[X]}return null}handleEvent(Q){let J=this.options;if(!LS(Q.type,J))return;let X=this._getLegendItemAt(Q.x,Q.y);if(Q.type==="mousemove"||Q.type==="mouseout"){let q=this._hoveredItem,N=wS(q,X);if(q&&!N)V1(J.onLeave,[Q,q,this],this);if(this._hoveredItem=X,X&&!N)V1(J.onHover,[Q,X,this],this)}else if(X)V1(J.onClick,[Q,X,this],this)}}function RS(Q,J,X,q,N){let K=zS(q,Q,J,X),H=_S(N,q,J.lineHeight);return{itemWidth:K,itemHeight:H}}function zS(Q,J,X,q){let N=Q.text;if(N&&typeof N!=="string")N=N.reduce((K,H)=>K.length>H.length?K:H);return J+X.size/2+q.measureText(N).width}function _S(Q,J,X){let q=Q;if(typeof J.text!=="string")q=l_(J,X);return q}function l_(Q,J){let X=Q.text?Q.text.length:0;return J*X}function LS(Q,J){if((Q==="mousemove"||Q==="mouseout")&&(J.onHover||J.onLeave))return!0;if(J.onClick&&(Q==="click"||Q==="mouseup"))return!0;return!1}var r_={id:"legend",_element:qK,start(Q,J,X){let q=Q.legend=new qK({ctx:Q.ctx,options:X,chart:Q});n6.configure(Q,q,X),n6.addBox(Q,q)},stop(Q){n6.removeBox(Q,Q.legend),delete Q.legend},beforeUpdate(Q,J,X){let q=Q.legend;n6.configure(Q,q,X),q.options=X},afterUpdate(Q){let J=Q.legend;J.buildLabels(),J.adjustHitBoxes()},afterEvent(Q,J){if(!J.replay)Q.legend.handleEvent(J.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1000,onClick(Q,J,X){let q=J.datasetIndex,N=X.chart;if(N.isDatasetVisible(q))N.hide(q),J.hidden=!0;else N.show(q),J.hidden=!1},onHover:null,onLeave:null,labels:{color:(Q)=>Q.chart.options.color,boxWidth:40,padding:10,generateLabels(Q){let J=Q.data.datasets,{labels:{usePointStyle:X,pointStyle:q,textAlign:N,color:K,useBorderRadius:H,borderRadius:F}}=Q.legend.options;return Q._getSortedDatasetMetas().map((M)=>{let w=M.controller.getStyle(X?0:void 0),R=I5(w.borderWidth);return{text:J[M.index].label,fillStyle:w.backgroundColor,fontColor:K,hidden:!M.visible,lineCap:w.borderCapStyle,lineDash:w.borderDash,lineDashOffset:w.borderDashOffset,lineJoin:w.borderJoinStyle,lineWidth:(R.width+R.height)/4,strokeStyle:w.borderColor,pointStyle:q||w.pointStyle,rotation:w.rotation,textAlign:N||w.textAlign,borderRadius:H&&(F||w.borderRadius),datasetIndex:M.index}},this)}},title:{color:(Q)=>Q.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:(Q)=>!Q.startsWith("on"),labels:{_scriptable:(Q)=>!["generateLabels","filter","sort"].includes(Q)}}};class zK extends v8{constructor(Q){super();this.chart=Q.chart,this.options=Q.options,this.ctx=Q.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(Q,J){let X=this.options;if(this.left=0,this.top=0,!X.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=Q,this.height=this.bottom=J;let q=j1(X.text)?X.text.length:1;this._padding=I5(X.padding);let N=q*X5(X.font).lineHeight+this._padding.height;if(this.isHorizontal())this.height=N;else this.width=N}isHorizontal(){let Q=this.options.position;return Q==="top"||Q==="bottom"}_drawArgs(Q){let{top:J,left:X,bottom:q,right:N,options:K}=this,H=K.align,F=0,M,w,R;if(this.isHorizontal())w=C5(H,X,N),R=J+Q,M=N-X;else{if(K.position==="left")w=X+Q,R=C5(H,q,J),F=s1*-0.5;else w=N-Q,R=C5(H,J,q),F=s1*0.5;M=q-J}return{titleX:w,titleY:R,maxWidth:M,rotation:F}}draw(){let Q=this.ctx,J=this.options;if(!J.display)return;let X=X5(J.font),N=X.lineHeight/2+this._padding.top,{titleX:K,titleY:H,maxWidth:F,rotation:M}=this._drawArgs(N);y2(Q,J.text,0,0,X,{color:J.color,maxWidth:F,rotation:M,textAlign:x3(J.align),textBaseline:"middle",translation:[K,H]})}}function PS(Q,J){let X=new zK({ctx:Q.ctx,options:J,chart:Q});n6.configure(Q,X,J),n6.addBox(Q,X),Q.titleBlock=X}var n_={id:"title",_element:zK,start(Q,J,X){PS(Q,X)},stop(Q){let J=Q.titleBlock;n6.removeBox(Q,J),delete Q.titleBlock},beforeUpdate(Q,J,X){let q=Q.titleBlock;n6.configure(Q,q,X),q.options=X},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2000},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};var EQ={average(Q){if(!Q.length)return!1;let J,X,q=new Set,N=0,K=0;for(J=0,X=Q.length;J<X;++J){let F=Q[J].element;if(F&&F.hasValue()){let M=F.tooltipPosition();q.add(M.x),N+=M.y,++K}}if(K===0||q.size===0)return!1;return{x:[...q].reduce((F,M)=>F+M)/q.size,y:N/K}},nearest(Q,J){if(!Q.length)return!1;let{x:X,y:q}=J,N=Number.POSITIVE_INFINITY,K,H,F;for(K=0,H=Q.length;K<H;++K){let M=Q[K].element;if(M&&M.hasValue()){let w=M.getCenterPoint(),R=f3(J,w);if(R<N)N=R,F=M}}if(F){let M=F.tooltipPosition();X=M.x,q=M.y}return{x:X,y:q}}};function l4(Q,J){if(J)if(j1(J))Array.prototype.push.apply(Q,J);else Q.push(J);return Q}function D8(Q){if((typeof Q==="string"||Q instanceof String)&&Q.indexOf(`
|
|
256
|
-
`)>-1)return
|
|
257
|
-
`);return Q}function TS(Q,J){let{element:X,datasetIndex:q,index:N}=J,K=Q.getDatasetMeta(q).controller,{label:H,value:F}=K.getLabelAndValue(N);return{chart:Q,label:H,parsed:K.getParsed(N),raw:Q.data.datasets[q].data[N],formattedValue:F,dataset:K.getDataset(),dataIndex:N,datasetIndex:q,element:X}}function N_(Q,J){let X=Q.chart.ctx,{body:q,footer:N,title:K}=Q,{boxWidth:H,boxHeight:F}=J,M=X5(J.bodyFont),w=X5(J.titleFont),R=X5(J.footerFont),_=K.length,P=N.length,I=q.length,A=I5(J.padding),V=A.height,O=0,D=q.reduce((s,a)=>s+a.before.length+a.lines.length+a.after.length,0);if(D+=Q.beforeBody.length+Q.afterBody.length,_)V+=_*w.lineHeight+(_-1)*J.titleSpacing+J.titleMarginBottom;if(D){let s=J.displayColors?Math.max(F,M.lineHeight):M.lineHeight;V+=I*s+(D-I)*M.lineHeight+(D-1)*J.bodySpacing}if(P)V+=J.footerMarginTop+P*R.lineHeight+(P-1)*J.footerSpacing;let h=0,p=function(s){O=Math.max(O,X.measureText(s).width+h)};return X.save(),X.font=w.string,W1(Q.title,p),X.font=M.string,W1(Q.beforeBody.concat(Q.afterBody),p),h=J.displayColors?H+2+J.boxPadding:0,W1(q,(s)=>{W1(s.before,p),W1(s.lines,p),W1(s.after,p)}),h=0,X.font=R.string,W1(Q.footer,p),X.restore(),O+=A.width,{width:O,height:V}}function CS(Q,J){let{y:X,height:q}=J;if(X<q/2)return"top";else if(X>Q.height-q/2)return"bottom";return"center"}function IS(Q,J,X,q){let{x:N,width:K}=q,H=X.caretSize+X.caretPadding;if(Q==="left"&&N+K+H>J.width)return!0;if(Q==="right"&&N-K-H<0)return!0}function OS(Q,J,X,q){let{x:N,width:K}=X,{width:H,chartArea:{left:F,right:M}}=Q,w="center";if(q==="center")w=N<=(F+M)/2?"left":"right";else if(N<=K/2)w="left";else if(N>=H-K/2)w="right";if(IS(w,Q,J,X))w="center";return w}function U_(Q,J,X){let q=X.yAlign||J.yAlign||CS(Q,X);return{xAlign:X.xAlign||J.xAlign||OS(Q,J,X,q),yAlign:q}}function VS(Q,J){let{x:X,width:q}=Q;if(J==="right")X-=q;else if(J==="center")X-=q/2;return X}function AS(Q,J,X){let{y:q,height:N}=Q;if(J==="top")q+=X;else if(J==="bottom")q-=N+X;else q-=N/2;return q}function K_(Q,J,X,q){let{caretSize:N,caretPadding:K,cornerRadius:H}=Q,{xAlign:F,yAlign:M}=X,w=N+K,{topLeft:R,topRight:_,bottomLeft:P,bottomRight:I}=g2(H),A=VS(J,F),V=AS(J,M,w);if(M==="center"){if(F==="left")A+=w;else if(F==="right")A-=w}else if(F==="left")A-=Math.max(R,P)+N;else if(F==="right")A+=Math.max(_,I)+N;return{x:J6(A,0,q.width-J.width),y:J6(V,0,q.height-J.height)}}function i3(Q,J,X){let q=I5(X.padding);return J==="center"?Q.x+Q.width/2:J==="right"?Q.x+Q.width-q.right:Q.x+q.left}function B_(Q){return l4([],D8(Q))}function ES(Q,J,X){return S8(Q,{tooltip:J,tooltipItems:X,type:"tooltip"})}function H_(Q,J){let X=J&&J.dataset&&J.dataset.tooltip&&J.dataset.tooltip.callbacks;return X?Q.override(X):Q}var s_={beforeTitle:c4,title(Q){if(Q.length>0){let J=Q[0],X=J.chart.data.labels,q=X?X.length:0;if(this&&this.options&&this.options.mode==="dataset")return J.dataset.label||"";else if(J.label)return J.label;else if(q>0&&J.dataIndex<q)return X[J.dataIndex]}return""},afterTitle:c4,beforeBody:c4,beforeLabel:c4,label(Q){if(this&&this.options&&this.options.mode==="dataset")return Q.label+": "+Q.formattedValue||Q.formattedValue;let J=Q.dataset.label||"";if(J)J+=": ";let X=Q.formattedValue;if(!J1(X))J+=X;return J},labelColor(Q){let X=Q.chart.getDatasetMeta(Q.datasetIndex).controller.getStyle(Q.dataIndex);return{borderColor:X.borderColor,backgroundColor:X.backgroundColor,borderWidth:X.borderWidth,borderDash:X.borderDash,borderDashOffset:X.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(Q){let X=Q.chart.getDatasetMeta(Q.datasetIndex).controller.getStyle(Q.dataIndex);return{pointStyle:X.pointStyle,rotation:X.rotation}},afterLabel:c4,afterBody:c4,beforeFooter:c4,footer:c4,afterFooter:c4};function X6(Q,J,X,q){let N=Q[J].call(X,q);if(typeof N>"u")return s_[J].call(X,q);return N}class YK extends v8{static positioners=EQ;constructor(Q){super();this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=Q.chart,this.options=Q.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(Q){this.options=Q,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){let Q=this._cachedAnimations;if(Q)return Q;let J=this.chart,X=this.options.setContext(this.getContext()),q=X.enabled&&J.options.animation&&X.animations,N=new KK(this.chart,q);if(q._cacheable)this._cachedAnimations=Object.freeze(N);return N}getContext(){return this.$context||(this.$context=ES(this.chart.getContext(),this,this._tooltipItems))}getTitle(Q,J){let{callbacks:X}=J,q=X6(X,"beforeTitle",this,Q),N=X6(X,"title",this,Q),K=X6(X,"afterTitle",this,Q),H=[];return H=l4(H,D8(q)),H=l4(H,D8(N)),H=l4(H,D8(K)),H}getBeforeBody(Q,J){return B_(X6(J.callbacks,"beforeBody",this,Q))}getBody(Q,J){let{callbacks:X}=J,q=[];return W1(Q,(N)=>{let K={before:[],lines:[],after:[]},H=H_(X,N);l4(K.before,D8(X6(H,"beforeLabel",this,N))),l4(K.lines,X6(H,"label",this,N)),l4(K.after,D8(X6(H,"afterLabel",this,N))),q.push(K)}),q}getAfterBody(Q,J){return B_(X6(J.callbacks,"afterBody",this,Q))}getFooter(Q,J){let{callbacks:X}=J,q=X6(X,"beforeFooter",this,Q),N=X6(X,"footer",this,Q),K=X6(X,"afterFooter",this,Q),H=[];return H=l4(H,D8(q)),H=l4(H,D8(N)),H=l4(H,D8(K)),H}_createItems(Q){let J=this._active,X=this.chart.data,q=[],N=[],K=[],H=[],F,M;for(F=0,M=J.length;F<M;++F)H.push(TS(this.chart,J[F]));if(Q.filter)H=H.filter((w,R,_)=>Q.filter(w,R,_,X));if(Q.itemSort)H=H.sort((w,R)=>Q.itemSort(w,R,X));return W1(H,(w)=>{let R=H_(Q.callbacks,w);q.push(X6(R,"labelColor",this,w)),N.push(X6(R,"labelPointStyle",this,w)),K.push(X6(R,"labelTextColor",this,w))}),this.labelColors=q,this.labelPointStyles=N,this.labelTextColors=K,this.dataPoints=H,H}update(Q,J){let X=this.options.setContext(this.getContext()),q=this._active,N,K=[];if(!q.length){if(this.opacity!==0)N={opacity:0}}else{let H=EQ[X.position].call(this,q,this._eventPosition);K=this._createItems(X),this.title=this.getTitle(K,X),this.beforeBody=this.getBeforeBody(K,X),this.body=this.getBody(K,X),this.afterBody=this.getAfterBody(K,X),this.footer=this.getFooter(K,X);let F=this._size=N_(this,X),M=Object.assign({},H,F),w=U_(this.chart,X,M),R=K_(X,M,w,this.chart);this.xAlign=w.xAlign,this.yAlign=w.yAlign,N={opacity:1,x:R.x,y:R.y,width:F.width,height:F.height,caretX:H.x,caretY:H.y}}if(this._tooltipItems=K,this.$context=void 0,N)this._resolveAnimations().update(this,N);if(Q&&X.external)X.external.call(this,{chart:this.chart,tooltip:this,replay:J})}drawCaret(Q,J,X,q){let N=this.getCaretPosition(Q,X,q);J.lineTo(N.x1,N.y1),J.lineTo(N.x2,N.y2),J.lineTo(N.x3,N.y3)}getCaretPosition(Q,J,X){let{xAlign:q,yAlign:N}=this,{caretSize:K,cornerRadius:H}=X,{topLeft:F,topRight:M,bottomLeft:w,bottomRight:R}=g2(H),{x:_,y:P}=Q,{width:I,height:A}=J,V,O,D,h,p,s;if(N==="center"){if(p=P+A/2,q==="left")V=_,O=V-K,h=p+K,s=p-K;else V=_+I,O=V+K,h=p-K,s=p+K;D=V}else{if(q==="left")O=_+Math.max(F,w)+K;else if(q==="right")O=_+I-Math.max(M,R)-K;else O=this.caretX;if(N==="top")h=P,p=h-K,V=O-K,D=O+K;else h=P+A,p=h+K,V=O+K,D=O-K;s=h}return{x1:V,x2:O,x3:D,y1:h,y2:p,y3:s}}drawTitle(Q,J,X){let q=this.title,N=q.length,K,H,F;if(N){let M=m9(X.rtl,this.x,this.width);Q.x=i3(this,X.titleAlign,X),J.textAlign=M.textAlign(X.titleAlign),J.textBaseline="middle",K=X5(X.titleFont),H=X.titleSpacing,J.fillStyle=X.titleColor,J.font=K.string;for(F=0;F<N;++F)if(J.fillText(q[F],M.x(Q.x),Q.y+K.lineHeight/2),Q.y+=K.lineHeight+H,F+1===N)Q.y+=X.titleMarginBottom-H}}_drawColorBox(Q,J,X,q,N){let K=this.labelColors[X],H=this.labelPointStyles[X],{boxHeight:F,boxWidth:M}=N,w=X5(N.bodyFont),R=i3(this,"left",N),_=q.x(R),P=F<w.lineHeight?(w.lineHeight-F)/2:0,I=J.y+P;if(N.usePointStyle){let A={radius:Math.min(M,F)/2,pointStyle:H.pointStyle,rotation:H.rotation,borderWidth:1},V=q.leftForLtr(_,M)+M/2,O=I+F/2;Q.strokeStyle=N.multiKeyBackground,Q.fillStyle=N.multiKeyBackground,p3(Q,A,V,O),Q.strokeStyle=K.borderColor,Q.fillStyle=K.backgroundColor,p3(Q,A,V,O)}else{Q.lineWidth=$1(K.borderWidth)?Math.max(...Object.values(K.borderWidth)):K.borderWidth||1,Q.strokeStyle=K.borderColor,Q.setLineDash(K.borderDash||[]),Q.lineDashOffset=K.borderDashOffset||0;let A=q.leftForLtr(_,M),V=q.leftForLtr(q.xPlus(_,1),M-2),O=g2(K.borderRadius);if(Object.values(O).some((D)=>D!==0))Q.beginPath(),Q.fillStyle=N.multiKeyBackground,_$(Q,{x:A,y:I,w:M,h:F,radius:O}),Q.fill(),Q.stroke(),Q.fillStyle=K.backgroundColor,Q.beginPath(),_$(Q,{x:V,y:I+1,w:M-2,h:F-2,radius:O}),Q.fill();else Q.fillStyle=N.multiKeyBackground,Q.fillRect(A,I,M,F),Q.strokeRect(A,I,M,F),Q.fillStyle=K.backgroundColor,Q.fillRect(V,I+1,M-2,F-2)}Q.fillStyle=this.labelTextColors[X]}drawBody(Q,J,X){let{body:q}=this,{bodySpacing:N,bodyAlign:K,displayColors:H,boxHeight:F,boxWidth:M,boxPadding:w}=X,R=X5(X.bodyFont),_=R.lineHeight,P=0,I=m9(X.rtl,this.x,this.width),A=function(t){J.fillText(t,I.x(Q.x+P),Q.y+_/2),Q.y+=_+N},V=I.textAlign(K),O,D,h,p,s,a,J0;J.textAlign=K,J.textBaseline="middle",J.font=R.string,Q.x=i3(this,V,X),J.fillStyle=X.bodyColor,W1(this.beforeBody,A),P=H&&V!=="right"?K==="center"?M/2+w:M+2+w:0;for(p=0,a=q.length;p<a;++p){if(O=q[p],D=this.labelTextColors[p],J.fillStyle=D,W1(O.before,A),h=O.lines,H&&h.length)this._drawColorBox(J,Q,p,I,X),_=Math.max(R.lineHeight,F);for(s=0,J0=h.length;s<J0;++s)A(h[s]),_=R.lineHeight;W1(O.after,A)}P=0,_=R.lineHeight,W1(this.afterBody,A),Q.y-=N}drawFooter(Q,J,X){let q=this.footer,N=q.length,K,H;if(N){let F=m9(X.rtl,this.x,this.width);Q.x=i3(this,X.footerAlign,X),Q.y+=X.footerMarginTop,J.textAlign=F.textAlign(X.footerAlign),J.textBaseline="middle",K=X5(X.footerFont),J.fillStyle=X.footerColor,J.font=K.string;for(H=0;H<N;++H)J.fillText(q[H],F.x(Q.x),Q.y+K.lineHeight/2),Q.y+=K.lineHeight+X.footerSpacing}}drawBackground(Q,J,X,q){let{xAlign:N,yAlign:K}=this,{x:H,y:F}=Q,{width:M,height:w}=X,{topLeft:R,topRight:_,bottomLeft:P,bottomRight:I}=g2(q.cornerRadius);if(J.fillStyle=q.backgroundColor,J.strokeStyle=q.borderColor,J.lineWidth=q.borderWidth,J.beginPath(),J.moveTo(H+R,F),K==="top")this.drawCaret(Q,J,X,q);if(J.lineTo(H+M-_,F),J.quadraticCurveTo(H+M,F,H+M,F+_),K==="center"&&N==="right")this.drawCaret(Q,J,X,q);if(J.lineTo(H+M,F+w-I),J.quadraticCurveTo(H+M,F+w,H+M-I,F+w),K==="bottom")this.drawCaret(Q,J,X,q);if(J.lineTo(H+P,F+w),J.quadraticCurveTo(H,F+w,H,F+w-P),K==="center"&&N==="left")this.drawCaret(Q,J,X,q);if(J.lineTo(H,F+R),J.quadraticCurveTo(H,F,H+R,F),J.closePath(),J.fill(),q.borderWidth>0)J.stroke()}_updateAnimationTarget(Q){let J=this.chart,X=this.$animations,q=X&&X.x,N=X&&X.y;if(q||N){let K=EQ[Q.position].call(this,this._active,this._eventPosition);if(!K)return;let H=this._size=N_(this,Q),F=Object.assign({},K,this._size),M=U_(J,Q,F),w=K_(Q,F,M,J);if(q._to!==w.x||N._to!==w.y)this.xAlign=M.xAlign,this.yAlign=M.yAlign,this.width=H.width,this.height=H.height,this.caretX=K.x,this.caretY=K.y,this._resolveAnimations().update(this,w)}}_willRender(){return!!this.opacity}draw(Q){let J=this.options.setContext(this.getContext()),X=this.opacity;if(!X)return;this._updateAnimationTarget(J);let q={width:this.width,height:this.height},N={x:this.x,y:this.y};X=Math.abs(X)<0.001?0:X;let K=I5(J.padding),H=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;if(J.enabled&&H)Q.save(),Q.globalAlpha=X,this.drawBackground(N,Q,q,J),xU(Q,J.textDirection),N.y+=K.top,this.drawTitle(N,Q,J),this.drawBody(N,Q,J),this.drawFooter(N,Q,J),mU(Q,J.textDirection),Q.restore()}getActiveElements(){return this._active||[]}setActiveElements(Q,J){let X=this._active,q=Q.map(({datasetIndex:H,index:F})=>{let M=this.chart.getDatasetMeta(H);if(!M)throw Error("Cannot find a dataset at index "+H);return{datasetIndex:H,element:M.data[F],index:F}}),N=!wQ(X,q),K=this._positionChanged(q,J);if(N||K)this._active=q,this._eventPosition=J,this._ignoreReplayEvents=!0,this.update(!0)}handleEvent(Q,J,X=!0){if(J&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;let q=this.options,N=this._active||[],K=this._getActiveElements(Q,N,J,X),H=this._positionChanged(K,Q),F=J||!wQ(K,N)||H;if(F){if(this._active=K,q.enabled||q.external)this._eventPosition={x:Q.x,y:Q.y},this.update(!0,J)}return F}_getActiveElements(Q,J,X,q){let N=this.options;if(Q.type==="mouseout")return[];if(!q)return J.filter((H)=>this.chart.data.datasets[H.datasetIndex]&&this.chart.getDatasetMeta(H.datasetIndex).controller.getParsed(H.index)!==void 0);let K=this.chart.getElementsAtEventForMode(Q,N.mode,N,X);if(N.reverse)K.reverse();return K}_positionChanged(Q,J){let{caretX:X,caretY:q,options:N}=this,K=EQ[N.position].call(this,Q,J);return K!==!1&&(X!==K.x||q!==K.y)}}var o_={id:"tooltip",_element:YK,positioners:EQ,afterInit(Q,J,X){if(X)Q.tooltip=new YK({chart:Q,options:X})},beforeUpdate(Q,J,X){if(Q.tooltip)Q.tooltip.initialize(X)},reset(Q,J,X){if(Q.tooltip)Q.tooltip.initialize(X)},afterDraw(Q){let J=Q.tooltip;if(J&&J._willRender()){let X={tooltip:J};if(Q.notifyPlugins("beforeTooltipDraw",{...X,cancelable:!0})===!1)return;J.draw(Q.ctx),Q.notifyPlugins("afterTooltipDraw",X)}},afterEvent(Q,J){if(Q.tooltip){let X=J.replay;if(Q.tooltip.handleEvent(J.event,X,J.inChartArea))J.changed=!0}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(Q,J)=>J.bodyFont.size,boxWidth:(Q,J)=>J.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:s_},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:(Q)=>Q!=="filter"&&Q!=="itemSort"&&Q!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};var SS=(Q,J,X,q)=>{if(typeof J==="string")X=Q.push(J)-1,q.unshift({index:X,label:J});else if(isNaN(J))X=null;return X};function jS(Q,J,X,q){let N=Q.indexOf(J);if(N===-1)return SS(Q,J,X,q);let K=Q.lastIndexOf(J);return N!==K?X:N}var DS=(Q,J)=>Q===null?null:J6(Math.round(Q),0,J);function F_(Q){let J=this.getLabels();if(Q>=0&&Q<J.length)return J[Q];return Q}class _K extends c9{static id="category";static defaults={ticks:{callback:F_}};constructor(Q){super(Q);this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(Q){let J=this._addedLabels;if(J.length){let X=this.getLabels();for(let{index:q,label:N}of J)if(X[q]===N)X.splice(q,1);this._addedLabels=[]}super.init(Q)}parse(Q,J){if(J1(Q))return null;let X=this.getLabels();return J=isFinite(J)&&X[J]===Q?J:jS(X,Q,n0(J,Q),this._addedLabels),DS(J,X.length-1)}determineDataLimits(){let{minDefined:Q,maxDefined:J}=this.getUserBounds(),{min:X,max:q}=this.getMinMax(!0);if(this.options.bounds==="ticks"){if(!Q)X=0;if(!J)q=this.getLabels().length-1}this.min=X,this.max=q}buildTicks(){let Q=this.min,J=this.max,X=this.options.offset,q=[],N=this.getLabels();N=Q===0&&J===N.length-1?N:N.slice(Q,J+1),this._valueRange=Math.max(N.length-(X?0:1),1),this._startValue=this.min-(X?0.5:0);for(let K=Q;K<=J;K++)q.push({value:K});return q}getLabelForValue(Q){return F_.call(this,Q)}configure(){if(super.configure(),!this.isHorizontal())this._reversePixels=!this._reversePixels}getPixelForValue(Q){if(typeof Q!=="number")Q=this.parse(Q);return Q===null?NaN:this.getPixelForDecimal((Q-this._startValue)/this._valueRange)}getPixelForTick(Q){let J=this.ticks;if(Q<0||Q>J.length-1)return null;return this.getPixelForValue(J[Q].value)}getValueForPixel(Q){return Math.round(this._startValue+this.getDecimalForPixel(Q)*this._valueRange)}getBasePixel(){return this.bottom}}function vS(Q,J){let X=[],q=0.00000000000001,{bounds:N,step:K,min:H,max:F,precision:M,count:w,maxTicks:R,maxDigits:_,includeBounds:P}=Q,I=K||1,A=R-1,{min:V,max:O}=J,D=!J1(H),h=!J1(F),p=!J1(w),s=(O-V)/(_+1),a=PU((O-V)/A/I)*I,J0,t,i,Y0;if(a<0.00000000000001&&!D&&!h)return[{value:V},{value:O}];if(Y0=Math.ceil(O/a)-Math.floor(V/a),Y0>A)a=PU(Y0*a/A/I)*I;if(!J1(M))J0=Math.pow(10,M),a=Math.ceil(a*J0)/J0;if(N==="ticks")t=Math.floor(V/a)*a,i=Math.ceil(O/a)*a;else t=V,i=O;if(D&&h&&K&&eR((F-H)/K,a/1000))Y0=Math.round(Math.min((F-H)/a,R)),a=(F-H)/Y0,t=H,i=F;else if(p)t=D?H:t,i=h?F:i,Y0=w-1,a=(i-t)/Y0;else if(Y0=(i-t)/a,R$(Y0,Math.round(Y0),a/1000))Y0=Math.round(Y0);else Y0=Math.ceil(Y0);let d=Math.max(CU(a),CU(t));J0=Math.pow(10,J1(M)?d:M),t=Math.round(t*J0)/J0,i=Math.round(i*J0)/J0;let H0=0;if(D){if(P&&t!==H){if(X.push({value:H}),t<H)H0++;if(R$(Math.round((t+H0*a)*J0)/J0,H,M_(H,s,Q)))H0++}else if(t<H)H0++}for(;H0<Y0;++H0){let P0=Math.round((t+H0*a)*J0)/J0;if(h&&P0>F)break;X.push({value:P0})}if(h&&P&&i!==F)if(X.length&&R$(X[X.length-1].value,F,M_(F,s,Q)))X[X.length-1].value=F;else X.push({value:F});else if(!h||i===F)X.push({value:i});return X}function M_(Q,J,{horizontal:X,minRotation:q}){let N=A8(q),K=(X?Math.sin(N):Math.cos(N))||0.001,H=0.75*J*(""+Q).length;return Math.min(J/K,H)}class jQ extends c9{constructor(Q){super(Q);this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(Q,J){if(J1(Q))return null;if((typeof Q==="number"||Q instanceof Number)&&!isFinite(+Q))return null;return+Q}handleTickRangeOptions(){let{beginAtZero:Q}=this.options,{minDefined:J,maxDefined:X}=this.getUserBounds(),{min:q,max:N}=this,K=(F)=>q=J?q:F,H=(F)=>N=X?N:F;if(Q){let F=H4(q),M=H4(N);if(F<0&&M<0)H(0);else if(F>0&&M>0)K(0)}if(q===N){let F=N===0?1:Math.abs(N*0.05);if(H(N+F),!Q)K(q-F)}this.min=q,this.max=N}getTickLimit(){let Q=this.options.ticks,{maxTicksLimit:J,stepSize:X}=Q,q;if(X){if(q=Math.ceil(this.max/X)-Math.floor(this.min/X)+1,q>1000)console.warn(`scales.${this.id}.ticks.stepSize: ${X} would result generating up to ${q} ticks. Limiting to 1000.`),q=1000}else q=this.computeTickLimit(),J=J||11;if(J)q=Math.min(J,q);return q}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){let Q=this.options,J=Q.ticks,X=this.getTickLimit();X=Math.max(2,X);let q={maxTicks:X,bounds:Q.bounds,min:Q.min,max:Q.max,precision:J.precision,step:J.stepSize,count:J.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:J.minRotation||0,includeBounds:J.includeBounds!==!1},N=this._range||this,K=vS(q,N);if(Q.bounds==="ticks")TU(K,this,"value");if(Q.reverse)K.reverse(),this.start=this.max,this.end=this.min;else this.start=this.min,this.end=this.max;return K}configure(){let Q=this.ticks,J=this.min,X=this.max;if(super.configure(),this.options.offset&&Q.length){let q=(X-J)/Math.max(Q.length-1,1)/2;J-=q,X+=q}this._startValue=J,this._endValue=X,this._valueRange=X-J}getLabelForValue(Q){return m3(Q,this.chart.options.locale,this.options.ticks.format)}}class LK extends jQ{static id="linear";static defaults={ticks:{callback:RQ.formatters.numeric}};determineDataLimits(){let{min:Q,max:J}=this.getMinMax(!0);this.min=x1(Q)?Q:0,this.max=x1(J)?J:1,this.handleTickRangeOptions()}computeTickLimit(){let Q=this.isHorizontal(),J=Q?this.width:this.height,X=A8(this.options.ticks.minRotation),q=(Q?Math.sin(X):Math.cos(X))||0.001,N=this._resolveTickFontOptions(0);return Math.ceil(J/Math.min(40,N.lineHeight/q))}getPixelForValue(Q){return Q===null?NaN:this.getPixelForDecimal((Q-this._startValue)/this._valueRange)}getValueForPixel(Q){return this._startValue+this.getDecimalForPixel(Q)*this._valueRange}}var DQ=(Q)=>Math.floor(V8(Q)),p9=(Q,J)=>Math.pow(10,DQ(Q)+J);function W_(Q){return Q/Math.pow(10,DQ(Q))===1}function w_(Q,J,X){let q=Math.pow(10,X),N=Math.floor(Q/q);return Math.ceil(J/q)-N}function bS(Q,J){let X=J-Q,q=DQ(X);while(w_(Q,J,q)>10)q++;while(w_(Q,J,q)<10)q--;return Math.min(q,DQ(Q))}function kS(Q,{min:J,max:X}){J=G6(Q.min,J);let q=[],N=DQ(J),K=bS(J,X),H=K<0?Math.pow(10,Math.abs(K)):1,F=Math.pow(10,K),M=N>K?Math.pow(10,N):0,w=Math.round((J-M)*H)/H,R=Math.floor((J-M)/F/10)*F*10,_=Math.floor((w-R)/Math.pow(10,K)),P=G6(Q.min,Math.round((M+R+_*Math.pow(10,K))*H)/H);while(P<X){if(q.push({value:P,major:W_(P),significand:_}),_>=10)_=_<15?15:20;else _++;if(_>=20)K++,_=2,H=K>=0?1:H;P=Math.round((M+R+_*Math.pow(10,K))*H)/H}let I=G6(Q.max,P);return q.push({value:I,major:W_(I),significand:_}),q}class fS extends c9{static id="logarithmic";static defaults={ticks:{callback:RQ.formatters.logarithmic,major:{enabled:!0}}};constructor(Q){super(Q);this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(Q,J){let X=jQ.prototype.parse.apply(this,[Q,J]);if(X===0){this._zero=!0;return}return x1(X)&&X>0?X:null}determineDataLimits(){let{min:Q,max:J}=this.getMinMax(!0);if(this.min=x1(Q)?Math.max(0,Q):null,this.max=x1(J)?Math.max(0,J):null,this.options.beginAtZero)this._zero=!0;if(this._zero&&this.min!==this._suggestedMin&&!x1(this._userMin))this.min=Q===p9(this.min,0)?p9(this.min,-1):p9(this.min,0);this.handleTickRangeOptions()}handleTickRangeOptions(){let{minDefined:Q,maxDefined:J}=this.getUserBounds(),X=this.min,q=this.max,N=(H)=>X=Q?X:H,K=(H)=>q=J?q:H;if(X===q)if(X<=0)N(1),K(10);else N(p9(X,-1)),K(p9(q,1));if(X<=0)N(p9(q,-1));if(q<=0)K(p9(X,1));this.min=X,this.max=q}buildTicks(){let Q=this.options,J={min:this._userMin,max:this._userMax},X=kS(J,this);if(Q.bounds==="ticks")TU(X,this,"value");if(Q.reverse)X.reverse(),this.start=this.max,this.end=this.min;else this.start=this.min,this.end=this.max;return X}getLabelForValue(Q){return Q===void 0?"0":m3(Q,this.chart.options.locale,this.options.ticks.format)}configure(){let Q=this.min;super.configure(),this._startValue=V8(Q),this._valueRange=V8(this.max)-V8(Q)}getPixelForValue(Q){if(Q===void 0||Q===0)Q=this.min;if(Q===null||isNaN(Q))return NaN;return this.getPixelForDecimal(Q===this.min?0:(V8(Q)-this._startValue)/this._valueRange)}getValueForPixel(Q){let J=this.getDecimalForPixel(Q);return Math.pow(10,this._startValue+J*this._valueRange)}}function NK(Q){let J=Q.ticks;if(J.display&&Q.display){let X=I5(J.backdropPadding);return n0(J.font&&J.font.size,m1.font.size)+X.height}return 0}function yS(Q,J,X){return X=j1(X)?X:[X],{w:Hz(Q,J.string,X),h:X.length*J.lineHeight}}function R_(Q,J,X,q,N){if(Q===q||Q===N)return{start:J-X/2,end:J+X/2};else if(Q<q||Q>N)return{start:J-X,end:J};return{start:J,end:J+X}}function gS(Q){let J={l:Q.left+Q._padding.left,r:Q.right-Q._padding.right,t:Q.top+Q._padding.top,b:Q.bottom-Q._padding.bottom},X=Object.assign({},J),q=[],N=[],K=Q._pointLabels.length,H=Q.options.pointLabels,F=H.centerPointLabels?s1/K:0;for(let M=0;M<K;M++){let w=H.setContext(Q.getPointLabelContext(M));N[M]=w.padding;let R=Q.getPointPosition(M,Q.drawingArea+N[M],F),_=X5(w.font),P=yS(Q.ctx,_,Q._pointLabels[M]);q[M]=P;let I=$6(Q.getIndexAngle(M)+F),A=Math.round(h3(I)),V=R_(A,R.x,P.w,0,180),O=R_(A,R.y,P.h,90,270);hS(X,J,I,V,O)}Q.setCenterPoint(J.l-X.l,X.r-J.r,J.t-X.t,X.b-J.b),Q._pointLabelItems=mS(Q,q,N)}function hS(Q,J,X,q,N){let K=Math.abs(Math.sin(X)),H=Math.abs(Math.cos(X)),F=0,M=0;if(q.start<J.l)F=(J.l-q.start)/K,Q.l=Math.min(Q.l,J.l-F);else if(q.end>J.r)F=(q.end-J.r)/K,Q.r=Math.max(Q.r,J.r+F);if(N.start<J.t)M=(J.t-N.start)/H,Q.t=Math.min(Q.t,J.t-M);else if(N.end>J.b)M=(N.end-J.b)/H,Q.b=Math.max(Q.b,J.b+M)}function uS(Q,J,X){let q=Q.drawingArea,{extra:N,additionalAngle:K,padding:H,size:F}=X,M=Q.getPointPosition(J,q+N+H,K),w=Math.round(h3($6(M.angle+Z6))),R=cS(M.y,F.h,w),_=dS(w),P=pS(M.x,F.w,_);return{visible:!0,x:M.x,y:R,textAlign:_,left:P,top:R,right:P+F.w,bottom:R+F.h}}function xS(Q,J){if(!J)return!0;let{left:X,top:q,right:N,bottom:K}=Q;return!(p4({x:X,y:q},J)||p4({x:X,y:K},J)||p4({x:N,y:q},J)||p4({x:N,y:K},J))}function mS(Q,J,X){let q=[],N=Q._pointLabels.length,K=Q.options,{centerPointLabels:H,display:F}=K.pointLabels,M={extra:NK(K)/2,additionalAngle:H?s1/N:0},w;for(let R=0;R<N;R++){M.padding=X[R],M.size=J[R];let _=uS(Q,R,M);if(q.push(_),F==="auto"){if(_.visible=xS(_,w),_.visible)w=_}}return q}function dS(Q){if(Q===0||Q===180)return"center";else if(Q<180)return"left";return"right"}function pS(Q,J,X){if(X==="right")Q-=J;else if(X==="center")Q-=J/2;return Q}function cS(Q,J,X){if(X===90||X===270)Q-=J/2;else if(X>270||X<90)Q-=J;return Q}function lS(Q,J,X){let{left:q,top:N,right:K,bottom:H}=X,{backdropColor:F}=J;if(!J1(F)){let M=g2(J.borderRadius),w=I5(J.backdropPadding);Q.fillStyle=F;let R=q-w.left,_=N-w.top,P=K-q+w.width,I=H-N+w.height;if(Object.values(M).some((A)=>A!==0))Q.beginPath(),_$(Q,{x:R,y:_,w:P,h:I,radius:M}),Q.fill();else Q.fillRect(R,_,P,I)}}function rS(Q,J){let{ctx:X,options:{pointLabels:q}}=Q;for(let N=J-1;N>=0;N--){let K=Q._pointLabelItems[N];if(!K.visible)continue;let H=q.setContext(Q.getPointLabelContext(N));lS(X,H,K);let F=X5(H.font),{x:M,y:w,textAlign:R}=K;y2(X,Q._pointLabels[N],M,w+F.lineHeight/2,F,{color:H.color,textAlign:R,textBaseline:"middle"})}}function a_(Q,J,X,q){let{ctx:N}=Q;if(X)N.arc(Q.xCenter,Q.yCenter,J,0,Q6);else{let K=Q.getPointPosition(0,J);N.moveTo(K.x,K.y);for(let H=1;H<q;H++)K=Q.getPointPosition(H,J),N.lineTo(K.x,K.y)}}function nS(Q,J,X,q,N){let K=Q.ctx,H=J.circular,{color:F,lineWidth:M}=J;if(!H&&!q||!F||!M||X<0)return;K.save(),K.strokeStyle=F,K.lineWidth=M,K.setLineDash(N.dash||[]),K.lineDashOffset=N.dashOffset,K.beginPath(),a_(Q,X,H,q),K.closePath(),K.stroke(),K.restore()}function sS(Q,J,X){return S8(Q,{label:X,index:J,type:"pointLabel"})}class oS extends jQ{static id="radialLinear";static defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:RQ.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(Q){return Q},padding:5,centerPointLabels:!1}};static defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"};static descriptors={angleLines:{_fallback:"grid"}};constructor(Q){super(Q);this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){let Q=this._padding=I5(NK(this.options)/2),J=this.width=this.maxWidth-Q.width,X=this.height=this.maxHeight-Q.height;this.xCenter=Math.floor(this.left+J/2+Q.left),this.yCenter=Math.floor(this.top+X/2+Q.top),this.drawingArea=Math.floor(Math.min(J,X)/2)}determineDataLimits(){let{min:Q,max:J}=this.getMinMax(!1);this.min=x1(Q)&&!isNaN(Q)?Q:0,this.max=x1(J)&&!isNaN(J)?J:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/NK(this.options))}generateTickLabels(Q){jQ.prototype.generateTickLabels.call(this,Q),this._pointLabels=this.getLabels().map((J,X)=>{let q=V1(this.options.pointLabels.callback,[J,X],this);return q||q===0?q:""}).filter((J,X)=>this.chart.getDataVisibility(X))}fit(){let Q=this.options;if(Q.display&&Q.pointLabels.display)gS(this);else this.setCenterPoint(0,0,0,0)}setCenterPoint(Q,J,X,q){this.xCenter+=Math.floor((Q-J)/2),this.yCenter+=Math.floor((X-q)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(Q,J,X,q))}getIndexAngle(Q){let J=Q6/(this._pointLabels.length||1),X=this.options.startAngle||0;return $6(Q*J+A8(X))}getDistanceFromCenterForValue(Q){if(J1(Q))return NaN;let J=this.drawingArea/(this.max-this.min);if(this.options.reverse)return(this.max-Q)*J;return(Q-this.min)*J}getValueForDistanceFromCenter(Q){if(J1(Q))return NaN;let J=Q/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-J:this.min+J}getPointLabelContext(Q){let J=this._pointLabels||[];if(Q>=0&&Q<J.length){let X=J[Q];return sS(this.getContext(),Q,X)}}getPointPosition(Q,J,X=0){let q=this.getIndexAngle(Q)-Z6+X;return{x:Math.cos(q)*J+this.xCenter,y:Math.sin(q)*J+this.yCenter,angle:q}}getPointPositionForValue(Q,J){return this.getPointPosition(Q,this.getDistanceFromCenterForValue(J))}getBasePosition(Q){return this.getPointPositionForValue(Q||0,this.getBaseValue())}getPointLabelPosition(Q){let{left:J,top:X,right:q,bottom:N}=this._pointLabelItems[Q];return{left:J,top:X,right:q,bottom:N}}drawBackground(){let{backgroundColor:Q,grid:{circular:J}}=this.options;if(Q){let X=this.ctx;X.save(),X.beginPath(),a_(this,this.getDistanceFromCenterForValue(this._endValue),J,this._pointLabels.length),X.closePath(),X.fillStyle=Q,X.fill(),X.restore()}}drawGrid(){let Q=this.ctx,J=this.options,{angleLines:X,grid:q,border:N}=J,K=this._pointLabels.length,H,F,M;if(J.pointLabels.display)rS(this,K);if(q.display)this.ticks.forEach((w,R)=>{if(R!==0||R===0&&this.min<0){F=this.getDistanceFromCenterForValue(w.value);let _=this.getContext(R),P=q.setContext(_),I=N.setContext(_);nS(this,P,F,K,I)}});if(X.display){Q.save();for(H=K-1;H>=0;H--){let w=X.setContext(this.getPointLabelContext(H)),{color:R,lineWidth:_}=w;if(!_||!R)continue;Q.lineWidth=_,Q.strokeStyle=R,Q.setLineDash(w.borderDash),Q.lineDashOffset=w.borderDashOffset,F=this.getDistanceFromCenterForValue(J.reverse?this.min:this.max),M=this.getPointPosition(H,F),Q.beginPath(),Q.moveTo(this.xCenter,this.yCenter),Q.lineTo(M.x,M.y),Q.stroke()}Q.restore()}}drawBorder(){}drawLabels(){let Q=this.ctx,J=this.options,X=J.ticks;if(!X.display)return;let q=this.getIndexAngle(0),N,K;Q.save(),Q.translate(this.xCenter,this.yCenter),Q.rotate(q),Q.textAlign="center",Q.textBaseline="middle",this.ticks.forEach((H,F)=>{if(F===0&&this.min>=0&&!J.reverse)return;let M=X.setContext(this.getContext(F)),w=X5(M.font);if(N=this.getDistanceFromCenterForValue(this.ticks[F].value),M.showLabelBackdrop){Q.font=w.string,K=Q.measureText(H.label).width,Q.fillStyle=M.backdropColor;let R=I5(M.backdropPadding);Q.fillRect(-K/2-R.left,-N-w.size/2-R.top,K+R.width,w.size+R.height)}y2(Q,H.label,0,-N,w,{color:M.color,strokeColor:M.textStrokeColor,strokeWidth:M.textStrokeWidth})}),Q.restore()}drawTitle(){}}var GX={millisecond:{common:!0,size:1,steps:1000},second:{common:!0,size:1000,steps:60},minute:{common:!0,size:60000,steps:60},hour:{common:!0,size:3600000,steps:24},day:{common:!0,size:86400000,steps:30},week:{common:!1,size:604800000,steps:4},month:{common:!0,size:2628000000,steps:12},quarter:{common:!1,size:7884000000,steps:4},year:{common:!0,size:31540000000}},q6=Object.keys(GX);function z_(Q,J){return Q-J}function __(Q,J){if(J1(J))return null;let X=Q._adapter,{parser:q,round:N,isoWeekday:K}=Q._parseOpts,H=J;if(typeof q==="function")H=q(H);if(!x1(H))H=typeof q==="string"?X.parse(H,q):X.parse(H);if(H===null)return null;if(N)H=N==="week"&&(z$(K)||K===!0)?X.startOf(H,"isoWeek",K):X.startOf(H,N);return+H}function L_(Q,J,X,q){let N=q6.length;for(let K=q6.indexOf(Q);K<N-1;++K){let H=GX[q6[K]],F=H.steps?H.steps:Number.MAX_SAFE_INTEGER;if(H.common&&Math.ceil((X-J)/(F*H.size))<=q)return q6[K]}return q6[N-1]}function aS(Q,J,X,q,N){for(let K=q6.length-1;K>=q6.indexOf(X);K--){let H=q6[K];if(GX[H].common&&Q._adapter.diff(N,q,H)>=J-1)return H}return q6[X?q6.indexOf(X):0]}function iS(Q){for(let J=q6.indexOf(Q)+1,X=q6.length;J<X;++J)if(GX[q6[J]].common)return q6[J]}function P_(Q,J,X){if(!X)Q[J]=!0;else if(X.length){let{lo:q,hi:N}=u3(X,J),K=X[q]>=J?X[q]:X[N];Q[K]=!0}}function tS(Q,J,X,q){let N=Q._adapter,K=+N.startOf(J[0].value,q),H=J[J.length-1].value,F,M;for(F=K;F<=H;F=+N.add(F,1,q))if(M=X[F],M>=0)J[M].major=!0;return J}function T_(Q,J,X){let q=[],N={},K=J.length,H,F;for(H=0;H<K;++H)F=J[H],N[F]=H,q.push({value:F,major:!1});return K===0||!X?q:tS(Q,q,N,X)}class UK extends c9{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};constructor(Q){super(Q);this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(Q,J={}){let X=Q.time||(Q.time={}),q=this._adapter=new bA._date(Q.adapters.date);q.init(J),W$(X.displayFormats,q.formats()),this._parseOpts={parser:X.parser,round:X.round,isoWeekday:X.isoWeekday},super.init(Q),this._normalized=J.normalized}parse(Q,J){if(Q===void 0)return null;return __(this,Q)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){let Q=this.options,J=this._adapter,X=Q.time.unit||"day",{min:q,max:N,minDefined:K,maxDefined:H}=this.getUserBounds();function F(M){if(!K&&!isNaN(M.min))q=Math.min(q,M.min);if(!H&&!isNaN(M.max))N=Math.max(N,M.max)}if(!K||!H){if(F(this._getLabelBounds()),Q.bounds!=="ticks"||Q.ticks.source!=="labels")F(this.getMinMax(!1))}q=x1(q)&&!isNaN(q)?q:+J.startOf(Date.now(),X),N=x1(N)&&!isNaN(N)?N:+J.endOf(Date.now(),X)+1,this.min=Math.min(q,N-1),this.max=Math.max(q+1,N)}_getLabelBounds(){let Q=this.getLabelTimestamps(),J=Number.POSITIVE_INFINITY,X=Number.NEGATIVE_INFINITY;if(Q.length)J=Q[0],X=Q[Q.length-1];return{min:J,max:X}}buildTicks(){let Q=this.options,J=Q.time,X=Q.ticks,q=X.source==="labels"?this.getLabelTimestamps():this._generate();if(Q.bounds==="ticks"&&q.length)this.min=this._userMin||q[0],this.max=this._userMax||q[q.length-1];let N=this.min,K=this.max,H=Jz(q,N,K);if(this._unit=J.unit||(X.autoSkip?L_(J.minUnit,this.min,this.max,this._getLabelCapacity(N)):aS(this,H.length,J.minUnit,this.min,this.max)),this._majorUnit=!X.major.enabled||this._unit==="year"?void 0:iS(this._unit),this.initOffsets(q),Q.reverse)H.reverse();return T_(this,H,this._majorUnit)}afterAutoSkip(){if(this.options.offsetAfterAutoskip)this.initOffsets(this.ticks.map((Q)=>+Q.value))}initOffsets(Q=[]){let J=0,X=0,q,N;if(this.options.offset&&Q.length){if(q=this.getDecimalForValue(Q[0]),Q.length===1)J=1-q;else J=(this.getDecimalForValue(Q[1])-q)/2;if(N=this.getDecimalForValue(Q[Q.length-1]),Q.length===1)X=N;else X=(N-this.getDecimalForValue(Q[Q.length-2]))/2}let K=Q.length<3?0.5:0.25;J=J6(J,0,K),X=J6(X,0,K),this._offsets={start:J,end:X,factor:1/(J+1+X)}}_generate(){let Q=this._adapter,J=this.min,X=this.max,q=this.options,N=q.time,K=N.unit||L_(N.minUnit,J,X,this._getLabelCapacity(J)),H=n0(q.ticks.stepSize,1),F=K==="week"?N.isoWeekday:!1,M=z$(F)||F===!0,w={},R=J,_,P;if(M)R=+Q.startOf(R,"isoWeek",F);if(R=+Q.startOf(R,M?"day":K),Q.diff(X,J,K)>1e5*H)throw Error(J+" and "+X+" are too far apart with stepSize of "+H+" "+K);let I=q.ticks.source==="data"&&this.getDataTimestamps();for(_=R,P=0;_<X;_=+Q.add(_,H,K),P++)P_(w,_,I);if(_===X||q.bounds==="ticks"||P===1)P_(w,_,I);return Object.keys(w).sort(z_).map((A)=>+A)}getLabelForValue(Q){let J=this._adapter,X=this.options.time;if(X.tooltipFormat)return J.format(Q,X.tooltipFormat);return J.format(Q,X.displayFormats.datetime)}format(Q,J){let q=this.options.time.displayFormats,N=this._unit,K=J||q[N];return this._adapter.format(Q,K)}_tickFormatFunction(Q,J,X,q){let N=this.options,K=N.ticks.callback;if(K)return V1(K,[Q,J,X],this);let H=N.time.displayFormats,F=this._unit,M=this._majorUnit,w=F&&H[F],R=M&&H[M],_=X[J],P=M&&R&&_&&_.major;return this._adapter.format(Q,q||(P?R:w))}generateTickLabels(Q){let J,X,q;for(J=0,X=Q.length;J<X;++J)q=Q[J],q.label=this._tickFormatFunction(q.value,J,Q)}getDecimalForValue(Q){return Q===null?NaN:(Q-this.min)/(this.max-this.min)}getPixelForValue(Q){let J=this._offsets,X=this.getDecimalForValue(Q);return this.getPixelForDecimal((J.start+X)*J.factor)}getValueForPixel(Q){let J=this._offsets,X=this.getDecimalForPixel(Q)/J.factor-J.end;return this.min+X*(this.max-this.min)}_getLabelSize(Q){let J=this.options.ticks,X=this.ctx.measureText(Q).width,q=A8(this.isHorizontal()?J.maxRotation:J.minRotation),N=Math.cos(q),K=Math.sin(q),H=this._resolveTickFontOptions(0).size;return{w:X*N+H*K,h:X*K+H*N}}_getLabelCapacity(Q){let J=this.options.time,X=J.displayFormats,q=X[J.unit]||X.millisecond,N=this._tickFormatFunction(Q,0,T_(this,[Q],this._majorUnit),q),K=this._getLabelSize(N),H=Math.floor(this.isHorizontal()?this.width/K.w:this.height/K.h)-1;return H>0?H:1}getDataTimestamps(){let Q=this._cache.data||[],J,X;if(Q.length)return Q;let q=this.getMatchingVisibleMetas();if(this._normalized&&q.length)return this._cache.data=q[0].controller.getAllParsedValues(this);for(J=0,X=q.length;J<X;++J)Q=Q.concat(q[J].controller.getAllParsedValues(this));return this._cache.data=this.normalize(Q)}getLabelTimestamps(){let Q=this._cache.labels||[],J,X;if(Q.length)return Q;let q=this.getLabels();for(J=0,X=q.length;J<X;++J)Q.push(__(this,q[J]));return this._cache.labels=this._normalized?Q:this.normalize(Q)}normalize(Q){return VU(Q.sort(z_))}}function t3(Q,J,X){let q=0,N=Q.length-1,K,H,F,M;if(X){if(J>=Q[q].pos&&J<=Q[N].pos)({lo:q,hi:N}=v2(Q,"pos",J));({pos:K,time:F}=Q[q]),{pos:H,time:M}=Q[N]}else{if(J>=Q[q].time&&J<=Q[N].time)({lo:q,hi:N}=v2(Q,"time",J));({time:K,pos:F}=Q[q]),{time:H,pos:M}=Q[N]}let w=H-K;return w?F+(M-F)*(J-K)/w:F}class eS extends UK{static id="timeseries";static defaults=UK.defaults;constructor(Q){super(Q);this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){let Q=this._getTimestampsForTable(),J=this._table=this.buildLookupTable(Q);this._minPos=t3(J,this.min),this._tableRange=t3(J,this.max)-this._minPos,super.initOffsets(Q)}buildLookupTable(Q){let{min:J,max:X}=this,q=[],N=[],K,H,F,M,w;for(K=0,H=Q.length;K<H;++K)if(M=Q[K],M>=J&&M<=X)q.push(M);if(q.length<2)return[{time:J,pos:0},{time:X,pos:1}];for(K=0,H=q.length;K<H;++K)if(w=q[K+1],F=q[K-1],M=q[K],Math.round((w+F)/2)!==M)N.push({time:M,pos:K/(H-1)});return N}_generate(){let Q=this.min,J=this.max,X=super.getDataTimestamps();if(!X.includes(Q)||!X.length)X.splice(0,0,Q);if(!X.includes(J)||X.length===1)X.push(J);return X.sort((q,N)=>q-N)}_getTimestampsForTable(){let Q=this._cache.all||[];if(Q.length)return Q;let J=this.getDataTimestamps(),X=this.getLabelTimestamps();if(J.length&&X.length)Q=this.normalize(J.concat(X));else Q=J.length?J:X;return Q=this._cache.all=Q,Q}getDecimalForValue(Q){return(t3(this._table,Q)-this._minPos)/this._tableRange}getValueForPixel(Q){let J=this._offsets,X=this.getDecimalForPixel(Q)/J.factor-J.end;return t3(this._table,X*this._tableRange+this._minPos,!0)}}l9.register(_K,LK,wK,L$,WK,n_,o_,r_,c_);var JT=n(JL(),1);var g8=n(T1(),1);var NX=n(T1(),1);var qX=(...Q)=>Q.filter((J,X,q)=>{return Boolean(J)&&J.trim()!==""&&q.indexOf(J)===X}).join(" ").trim();var GL=(Q)=>Q.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();var XL=(Q)=>Q.replace(/^([A-Z])|[\s-_]+(\w)/g,(J,X,q)=>q?q.toUpperCase():X.toLowerCase());var CK=(Q)=>{let J=XL(Q);return J.charAt(0).toUpperCase()+J.slice(1)};var bQ=n(T1(),1);var YX={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var qL=(Q)=>{for(let J in Q)if(J.startsWith("aria-")||J==="role"||J==="title")return!0;return!1};var T$=n(T1(),1),qj=T$.createContext({});var YL=()=>T$.useContext(qj);var NL=bQ.forwardRef(({color:Q,size:J,strokeWidth:X,absoluteStrokeWidth:q,className:N="",children:K,iconNode:H,...F},M)=>{let{size:w=24,strokeWidth:R=2,absoluteStrokeWidth:_=!1,color:P="currentColor",className:I=""}=YL()??{},A=q??_?Number(X??R)*24/Number(J??w):X??R;return bQ.createElement("svg",{ref:M,...YX,width:J??w??YX.width,height:J??w??YX.height,stroke:Q??P,strokeWidth:A,className:qX("lucide",I,N),...!K&&!qL(F)&&{"aria-hidden":"true"},...F},[...H.map(([V,O])=>bQ.createElement(V,O)),...Array.isArray(K)?K:[K]])});var C0=(Q,J)=>{let X=NX.forwardRef(({className:q,...N},K)=>NX.createElement(NL,{ref:K,iconNode:J,className:qX(`lucide-${GL(CK(Q))}`,`lucide-${Q}`,q),...N}));return X.displayName=CK(Q),X};var Yj=[["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"}]],x2=C0("circle-alert",Yj);var Nj=[["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"}]],kQ=C0("activity",Nj);var Uj=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],fQ=C0("check",Uj);var Kj=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],yQ=C0("chevron-down",Kj);var Bj=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],gQ=C0("chevron-up",Bj);var Hj=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],hQ=C0("clock",Hj);var Fj=[["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"}]],n9=C0("coins",Fj);var Mj=[["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"}]],uQ=C0("copy",Mj);var Wj=[["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"}]],xQ=C0("cpu",Wj);var wj=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],mQ=C0("folder",wj);var Rj=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],dQ=C0("gauge",Rj);var zj=[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]],pQ=C0("hash",zj);var _j=[["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"}]],cQ=C0("inbox",_j);var Lj=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],lQ=C0("layout-dashboard",Lj);var Pj=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],rQ=C0("menu",Pj);var Tj=[["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"}]],nQ=C0("monitor",Tj);var Cj=[["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"}]],sQ=C0("moon",Cj);var Ij=[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z",key:"1xoxul"}],["path",{d:"M9 8V2",key:"14iosj"}]],oQ=C0("plug",Ij);var Oj=[["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"}]],aQ=C0("refresh-cw",Oj);var Vj=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 14s1.5 2 4 2 4-2 4-2",key:"1y1vjs"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]],iQ=C0("smile",Vj);var Aj=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],tQ=C0("star",Aj);var Ej=[["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"}]],eQ=C0("sun",Ej);var Sj=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],$J=C0("trending-up",Sj);var jj=[["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"}]],ZJ=C0("wrench",jj);var Dj=[["path",{d:"M15.914 4a1.5 1.5 0 00-2.474-1.561l-9 9A1.5 1.5 0 005.5 14h4.002a.5.5 0 01.471.666L8.086 20a1.5 1.5 0 002.475 1.56l9-9A1.5 1.5 0 0018.5 10h-3.997a.5.5 0 01-.472-.667z",key:"1v7up4"}]],QJ=C0("zap",Dj);var vj=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],s9=C0("x",vj);var DL=n(T1(),1);var JJ=[{id:"overview",label:"Overview",icon:lQ},{id:"requests",label:"Requests",icon:kQ},{id:"errors",label:"Errors",icon:x2},{id:"models",label:"Models",icon:xQ},{id:"providers",label:"Providers",icon:oQ},{id:"tools",label:"Tools",icon:ZJ},{id:"costs",label:"Costs",icon:n9},{id:"behavior",label:"Behavior",shortLabel:"Behavior",icon:iQ},{id:"projects",label:"Projects",icon:mQ},{id:"gain",label:"Gain",icon:$J}];var s6=n(U0(),1);function IK({activeSection:Q,onSectionChange:J,className:X=""}){return s6.jsxDEV("aside",{className:`stats-nav-rail ${X}`,children:[s6.jsxDEV("div",{className:"stats-nav-rail-header",children:s6.jsxDEV("div",{className:"stats-logo-container",children:[s6.jsxDEV("span",{className:"stats-logo-text",children:"OH MY PI"},void 0,!1,void 0,this),s6.jsxDEV("span",{className:"stats-logo-subtext",children:"Observability"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),s6.jsxDEV("nav",{className:"stats-nav-rail-menu",children:JJ.map((q)=>{let N=q.id===Q,K=q.icon;return s6.jsxDEV("button",{type:"button",onClick:()=>J(q.id),className:"stats-nav-rail-item","data-active":N?"true":"false","aria-current":N?"page":void 0,children:[s6.jsxDEV(K,{size:16,className:"stats-nav-rail-item-icon"},void 0,!1,void 0,this),s6.jsxDEV("span",{className:"stats-nav-rail-item-label",children:q.label},void 0,!1,void 0,this)]},q.id,!0,void 0,this)})},void 0,!1,void 0,this),s6.jsxDEV("div",{className:"stats-nav-rail-footer",children:s6.jsxDEV("span",{className:"stats-version-tag",children:"OMP Stats v1.0.0"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var OK=n(U0(),1),kj=[{value:"1h",label:"1h"},{value:"24h",label:"24h"},{value:"7d",label:"7d"},{value:"30d",label:"30d"},{value:"90d",label:"90d"},{value:"all",label:"All"}];function UL({value:Q,onChange:J,className:X=""}){return OK.jsxDEV("div",{className:`stats-range-control ${X}`,role:"radiogroup","aria-label":"Select time range",children:kj.map((q)=>{let N=q.value===Q;return OK.jsxDEV("button",{type:"button",role:"radio","aria-checked":N,"data-active":N?"true":"false",className:"stats-range-control-btn",onClick:()=>J(q.value),children:q.label},q.value,!1,void 0,this)})},void 0,!1,void 0,this)}var VK=n(T1(),1);class KL extends Error{status;endpoint;constructor(Q,J,X){super(X);this.name="ApiError",this.status=Q,this.endpoint=J}}async function o6(Q,J){let X=await fetch(Q,J);if(!X.ok)throw new KL(X.status,Q,`HTTP error ${X.status} on ${Q}`);return X.json()}async function BL(Q="24h",J){return o6(`/api/stats/overview?range=${encodeURIComponent(Q)}`,{signal:J})}async function HL(Q="24h",J){return o6(`/api/stats/model-dashboard?range=${encodeURIComponent(Q)}`,{signal:J})}async function FL(Q="24h",J){return o6(`/api/stats/costs?range=${encodeURIComponent(Q)}`,{signal:J})}async function UX(Q=50,J){return o6(`/api/stats/recent?limit=${Q}`,{signal:J})}async function ML(Q="24h",J=50,X){return o6(`/api/stats/errors?range=${encodeURIComponent(Q)}&limit=${J}`,{signal:X})}async function WL(Q,J){return o6(`/api/request/${Q}`,{signal:J})}async function wL(Q){return o6("/api/sync",{signal:Q})}async function RL(Q="24h",J){return o6(`/api/stats/behavior?range=${encodeURIComponent(Q)}`,{signal:J})}async function zL(Q="24h",J){return o6(`/api/stats/folders?range=${encodeURIComponent(Q)}`,{signal:J})}async function _L(Q="24h",J,X){let q=new URLSearchParams({range:Q});if(J)q.set("project",J);return o6(`/api/stats/gain?${q}`,{signal:X})}async function LL(Q="24h",J){return o6(`/api/stats/tools?range=${encodeURIComponent(Q)}`,{signal:J})}async function PL(Q="24h",J){return o6(`/api/stats/providers?range=${encodeURIComponent(Q)}`,{signal:J})}var GJ=n(U0(),1);function TL({onSyncStart:Q,onSyncComplete:J,className:X=""}){let[q,N]=VK.useState(!1),[K,H]=VK.useState(null),F=async()=>{if(q)return;if(N(!0),H(null),Q)Q();try{let M=await wL(),w={processed:typeof M?.processed==="number"?M.processed:0,files:typeof M?.files==="number"?M.files:0,totalMessages:typeof M?.totalMessages==="number"?M.totalMessages:0};if(H({type:"success",message:`Synced: ${w.processed} new request${w.processed===1?"":"s"} found.`}),J)J({success:!0,data:w})}catch(M){let w=M instanceof Error?M.message:String(M);if(H({type:"error",message:`Sync failed: ${w}`}),J)J({success:!1,error:w})}finally{N(!1)}};return GJ.jsxDEV("div",{className:`stats-sync-container ${X}`,children:[K&&GJ.jsxDEV("span",{className:"stats-sync-status-msg","data-type":K.type,children:K.message},void 0,!1,void 0,this),GJ.jsxDEV("button",{type:"button",onClick:F,disabled:q,className:"stats-button stats-button-primary stats-sync-btn","aria-busy":q,children:[GJ.jsxDEV(aQ,{size:14,className:`stats-sync-icon ${q?"stats-spin":""}`},void 0,!1,void 0,this),q?"Syncing...":"Sync DB"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var KX=n(T1(),1),CL="omp-stats-theme",IL="(prefers-color-scheme: dark)";function fj(){if(typeof localStorage>"u")return"system";let Q=localStorage.getItem(CL);return Q==="light"||Q==="dark"||Q==="system"?Q:"system"}function OL(){if(typeof window>"u")return"dark";return window.matchMedia(IL).matches?"dark":"light"}var a9=fj(),XJ=a9==="system"?OL():a9,AK=new Set;function VL(){for(let Q of AK)Q()}function EK(){if(XJ=a9==="system"?OL():a9,typeof document<"u")document.documentElement.dataset.theme=XJ,document.documentElement.style.colorScheme=XJ}if(typeof window<"u")EK(),window.matchMedia(IL).addEventListener("change",()=>{if(a9==="system")EK(),VL()});function yj(Q){if(a9=Q,typeof localStorage<"u")localStorage.setItem(CL,Q);EK(),VL()}function SK(Q){return AK.add(Q),()=>AK.delete(Q)}function R5(){return KX.useSyncExternalStore(SK,()=>XJ,()=>"dark")}function AL(){let Q=KX.useSyncExternalStore(SK,()=>a9,()=>"system"),J=KX.useSyncExternalStore(SK,()=>XJ,()=>"dark");return{preference:Q,resolved:J,setPreference:yj}}var jK=n(U0(),1),gj={system:"light",light:"dark",dark:"system"},hj={system:nQ,light:eQ,dark:sQ},EL={system:"System theme",light:"Light theme",dark:"Dark theme"};function SL(){let{preference:Q,setPreference:J}=AL(),X=hj[Q];return jK.jsxDEV("button",{type:"button",className:"stats-theme-toggle",onClick:()=>J(gj[Q]),"aria-label":`${EL[Q]} (click to switch)`,title:`${EL[Q]} — click to switch`,children:jK.jsxDEV(X,{size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var a6=n(U0(),1);function jL({activeSection:Q,range:J,onRangeChange:X,updatedAt:q,onSyncStart:N,onSyncComplete:K,onMenuToggle:H,className:F=""}){let w=JJ.find((_)=>_.id===Q)?.label||"Observability",R=(_)=>{if(!_)return"Not updated";return`Updated ${new Date(_).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"})}`};return a6.jsxDEV("header",{className:`stats-top-bar ${F}`,children:[a6.jsxDEV("div",{className:"stats-top-bar-left",children:[H&&a6.jsxDEV("button",{type:"button",onClick:H,className:"stats-mobile-menu-btn","aria-label":"Open navigation menu",children:a6.jsxDEV(rQ,{size:20},void 0,!1,void 0,this)},void 0,!1,void 0,this),a6.jsxDEV("h1",{className:"stats-page-title",children:w},void 0,!1,void 0,this)]},void 0,!0,void 0,this),a6.jsxDEV("div",{className:"stats-top-bar-right",children:[a6.jsxDEV("div",{className:"stats-top-bar-meta",children:a6.jsxDEV("span",{className:"stats-last-updated",title:q?new Date(q).toLocaleString():void 0,children:R(q)},void 0,!1,void 0,this)},void 0,!1,void 0,this),a6.jsxDEV(UL,{value:J,onChange:X},void 0,!1,void 0,this),a6.jsxDEV(SL,{},void 0,!1,void 0,this),a6.jsxDEV(TL,{onSyncStart:N,onSyncComplete:K},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var b5=n(U0(),1);function vL({activeSection:Q,onSectionChange:J,range:X,onRangeChange:q,updatedAt:N,onSyncStart:K,onSyncComplete:H,children:F}){let[M,w]=DL.useState(!1),R=(_)=>{J(_),w(!1)};return b5.jsxDEV("div",{className:"stats-app-container",children:[b5.jsxDEV(IK,{activeSection:Q,onSectionChange:R,className:"stats-desktop-nav"},void 0,!1,void 0,this),M&&b5.jsxDEV("div",{className:"stats-mobile-drawer-overlay",onClick:()=>w(!1),role:"presentation",children:b5.jsxDEV("div",{className:"stats-mobile-drawer",onClick:(_)=>_.stopPropagation(),role:"dialog","aria-modal":"true","aria-label":"Navigation menu",children:[b5.jsxDEV("div",{className:"stats-mobile-drawer-header",children:[b5.jsxDEV("div",{className:"stats-logo-container",children:[b5.jsxDEV("span",{className:"stats-logo-text",children:"OH MY PI"},void 0,!1,void 0,this),b5.jsxDEV("span",{className:"stats-logo-subtext",children:"Observability"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),b5.jsxDEV("button",{type:"button",onClick:()=>w(!1),className:"stats-drawer-close-btn","aria-label":"Close navigation menu",children:b5.jsxDEV(s9,{size:18},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),b5.jsxDEV(IK,{activeSection:Q,onSectionChange:R,className:"stats-mobile-nav"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),b5.jsxDEV("div",{className:"stats-main-pane",children:[b5.jsxDEV(jL,{activeSection:Q,range:X,onRangeChange:q,updatedAt:N,onSyncStart:K,onSyncComplete:H,onMenuToggle:()=>w(!0)},void 0,!1,void 0,this),b5.jsxDEV("main",{className:"stats-content-area",children:b5.jsxDEV("div",{className:"stats-content-inner",children:F},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var b8=n(T1(),1),uj=["overview","requests","errors","models","providers","tools","costs","behavior","projects","gain"],bL=["1h","24h","7d","30d","90d","all"];function DK(Q){let J=Q.replace(/^#\/?/,""),[X,q]=J.split("?"),N=uj.includes(X)?X:"overview",K="24h";if(q){let F=new URLSearchParams(q).get("range");if(bL.includes(F))K=F}return{section:N,range:K}}function kL(){let[Q,J]=b8.useState(()=>DK(window.location.hash));b8.useEffect(()=>{let K=()=>{J(DK(window.location.hash))};return window.addEventListener("hashchange",K),()=>{window.removeEventListener("hashchange",K)}},[]);let X=b8.useCallback((K,H)=>{window.location.hash=`/${K}?range=${H}`},[]),q=b8.useCallback((K)=>{X(K,Q.range)},[Q.range,X]),N=b8.useCallback((K)=>{let H=bL.includes(K)?K:"24h";X(Q.section,H)},[Q.section,X]);return b8.useEffect(()=>{let K=window.location.hash,H=DK(K),F=`#/${H.section}?range=${H.range}`;if(K!==F)window.location.hash=`/${H.section}?range=${H.range}`},[]),{section:Q.section,setSection:q,range:Q.range,setRange:N}}var xj=Math.pow(10,8)*24*60*60*1000,Ra1=-xj,BX=604800000,fL=86400000;var qJ=43200,vK=1440;var bK=Symbol.for("constructDateFrom");function k5(Q,J){if(typeof Q==="function")return Q(J);if(Q&&typeof Q==="object"&&bK in Q)return Q[bK](J);if(Q instanceof Date)return new Q.constructor(J);return new Date(J)}function X1(Q,J){return k5(J||Q,Q)}var mj={};function n4(){return mj}function k8(Q,J){let X=n4(),q=J?.weekStartsOn??J?.locale?.options?.weekStartsOn??X.weekStartsOn??X.locale?.options?.weekStartsOn??0,N=X1(Q,J?.in),K=N.getDay(),H=(K<q?7:0)+K-q;return N.setDate(N.getDate()-H),N.setHours(0,0,0,0),N}function i9(Q,J){return k8(Q,{...J,weekStartsOn:1})}function HX(Q,J){let X=X1(Q,J?.in),q=X.getFullYear(),N=k5(X,0);N.setFullYear(q+1,0,4),N.setHours(0,0,0,0);let K=i9(N),H=k5(X,0);H.setFullYear(q,0,4),H.setHours(0,0,0,0);let F=i9(H);if(X.getTime()>=K.getTime())return q+1;else if(X.getTime()>=F.getTime())return q;else return q-1}function C$(Q){let J=X1(Q),X=new Date(Date.UTC(J.getFullYear(),J.getMonth(),J.getDate(),J.getHours(),J.getMinutes(),J.getSeconds(),J.getMilliseconds()));return X.setUTCFullYear(J.getFullYear()),+Q-+X}function m2(Q,...J){let X=k5.bind(null,Q||J.find((q)=>typeof q==="object"));return J.map(X)}function kK(Q,J){let X=X1(Q,J?.in);return X.setHours(0,0,0,0),X}function yL(Q,J,X){let[q,N]=m2(X?.in,Q,J),K=kK(q),H=kK(N),F=+K-C$(K),M=+H-C$(H);return Math.round((F-M)/fL)}function gL(Q,J){let X=HX(Q,J),q=k5(J?.in||Q,0);return q.setFullYear(X,0,4),q.setHours(0,0,0,0),i9(q)}function I$(Q,J){let X=+X1(Q)-+X1(J);if(X<0)return-1;else if(X>0)return 1;return X}function hL(Q){return k5(Q,Date.now())}function uL(Q){return Q instanceof Date||typeof Q==="object"&&Object.prototype.toString.call(Q)==="[object Date]"}function xL(Q){return!(!uL(Q)&&typeof Q!=="number"||isNaN(+X1(Q)))}function mL(Q,J,X){let[q,N]=m2(X?.in,Q,J),K=q.getFullYear()-N.getFullYear(),H=q.getMonth()-N.getMonth();return K*12+H}function dL(Q){return(J)=>{let q=(Q?Math[Q]:Math.trunc)(J);return q===0?0:q}}function pL(Q,J){return+X1(Q)-+X1(J)}function cL(Q,J){let X=X1(Q,J?.in);return X.setHours(23,59,59,999),X}function lL(Q,J){let X=X1(Q,J?.in),q=X.getMonth();return X.setFullYear(X.getFullYear(),q+1,0),X.setHours(23,59,59,999),X}function rL(Q,J){let X=X1(Q,J?.in);return+cL(X,J)===+lL(X,J)}function nL(Q,J,X){let[q,N,K]=m2(X?.in,Q,Q,J),H=I$(N,K),F=Math.abs(mL(N,K));if(F<1)return 0;if(N.getMonth()===1&&N.getDate()>27)N.setDate(30);N.setMonth(N.getMonth()-H*F);let M=I$(N,K)===-H;if(rL(q)&&F===1&&I$(q,K)===1)M=!1;let w=H*(F-+M);return w===0?0:w}function sL(Q,J,X){let q=pL(Q,J)/1000;return dL(X?.roundingMethod)(q)}function oL(Q,J){let X=X1(Q,J?.in);return X.setFullYear(X.getFullYear(),0,1),X.setHours(0,0,0,0),X}var dj={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},aL=(Q,J,X)=>{let q,N=dj[Q];if(typeof N==="string")q=N;else if(J===1)q=N.one;else q=N.other.replace("{{count}}",J.toString());if(X?.addSuffix)if(X.comparison&&X.comparison>0)return"in "+q;else return q+" ago";return q};function FX(Q){return(J={})=>{let X=J.width?String(J.width):Q.defaultWidth;return Q.formats[X]||Q.formats[Q.defaultWidth]}}var pj={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},cj={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},lj={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},iL={date:FX({formats:pj,defaultWidth:"full"}),time:FX({formats:cj,defaultWidth:"full"}),dateTime:FX({formats:lj,defaultWidth:"full"})};var rj={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},tL=(Q,J,X,q)=>rj[Q];function O$(Q){return(J,X)=>{let q=X?.context?String(X.context):"standalone",N;if(q==="formatting"&&Q.formattingValues){let H=Q.defaultFormattingWidth||Q.defaultWidth,F=X?.width?String(X.width):H;N=Q.formattingValues[F]||Q.formattingValues[H]}else{let H=Q.defaultWidth,F=X?.width?String(X.width):Q.defaultWidth;N=Q.values[F]||Q.values[H]}let K=Q.argumentCallback?Q.argumentCallback(J):J;return N[K]}}var nj={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},sj={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},oj={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},aj={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},ij={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},tj={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},ej=(Q,J)=>{let X=Number(Q),q=X%100;if(q>20||q<10)switch(q%10){case 1:return X+"st";case 2:return X+"nd";case 3:return X+"rd"}return X+"th"},eL={ordinalNumber:ej,era:O$({values:nj,defaultWidth:"wide"}),quarter:O$({values:sj,defaultWidth:"wide",argumentCallback:(Q)=>Q-1}),month:O$({values:oj,defaultWidth:"wide"}),day:O$({values:aj,defaultWidth:"wide"}),dayPeriod:O$({values:ij,defaultWidth:"wide",formattingValues:tj,defaultFormattingWidth:"wide"})};function V$(Q){return(J,X={})=>{let q=X.width,N=q&&Q.matchPatterns[q]||Q.matchPatterns[Q.defaultMatchWidth],K=J.match(N);if(!K)return null;let H=K[0],F=q&&Q.parsePatterns[q]||Q.parsePatterns[Q.defaultParseWidth],M=Array.isArray(F)?ZD(F,(_)=>_.test(H)):$D(F,(_)=>_.test(H)),w;w=Q.valueCallback?Q.valueCallback(M):M,w=X.valueCallback?X.valueCallback(w):w;let R=J.slice(H.length);return{value:w,rest:R}}}function $D(Q,J){for(let X in Q)if(Object.prototype.hasOwnProperty.call(Q,X)&&J(Q[X]))return X;return}function ZD(Q,J){for(let X=0;X<Q.length;X++)if(J(Q[X]))return X;return}function $P(Q){return(J,X={})=>{let q=J.match(Q.matchPattern);if(!q)return null;let N=q[0],K=J.match(Q.parsePattern);if(!K)return null;let H=Q.valueCallback?Q.valueCallback(K[0]):K[0];H=X.valueCallback?X.valueCallback(H):H;let F=J.slice(N.length);return{value:H,rest:F}}}var QD=/^(\d+)(th|st|nd|rd)?/i,JD=/\d+/i,GD={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},XD={any:[/^b/i,/^(a|c)/i]},qD={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},YD={any:[/1/i,/2/i,/3/i,/4/i]},ND={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},UD={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},KD={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},BD={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},HD={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},FD={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},ZP={ordinalNumber:$P({matchPattern:QD,parsePattern:JD,valueCallback:(Q)=>parseInt(Q,10)}),era:V$({matchPatterns:GD,defaultMatchWidth:"wide",parsePatterns:XD,defaultParseWidth:"any"}),quarter:V$({matchPatterns:qD,defaultMatchWidth:"wide",parsePatterns:YD,defaultParseWidth:"any",valueCallback:(Q)=>Q+1}),month:V$({matchPatterns:ND,defaultMatchWidth:"wide",parsePatterns:UD,defaultParseWidth:"any"}),day:V$({matchPatterns:KD,defaultMatchWidth:"wide",parsePatterns:BD,defaultParseWidth:"any"}),dayPeriod:V$({matchPatterns:HD,defaultMatchWidth:"any",parsePatterns:FD,defaultParseWidth:"any"})};var YJ={code:"en-US",formatDistance:aL,formatLong:iL,formatRelative:tL,localize:eL,match:ZP,options:{weekStartsOn:0,firstWeekContainsDate:1}};function QP(Q,J){let X=X1(Q,J?.in);return yL(X,oL(X))+1}function JP(Q,J){let X=X1(Q,J?.in),q=+i9(X)-+gL(X);return Math.round(q/BX)+1}function MX(Q,J){let X=X1(Q,J?.in),q=X.getFullYear(),N=n4(),K=J?.firstWeekContainsDate??J?.locale?.options?.firstWeekContainsDate??N.firstWeekContainsDate??N.locale?.options?.firstWeekContainsDate??1,H=k5(J?.in||Q,0);H.setFullYear(q+1,0,K),H.setHours(0,0,0,0);let F=k8(H,J),M=k5(J?.in||Q,0);M.setFullYear(q,0,K),M.setHours(0,0,0,0);let w=k8(M,J);if(+X>=+F)return q+1;else if(+X>=+w)return q;else return q-1}function GP(Q,J){let X=n4(),q=J?.firstWeekContainsDate??J?.locale?.options?.firstWeekContainsDate??X.firstWeekContainsDate??X.locale?.options?.firstWeekContainsDate??1,N=MX(Q,J),K=k5(J?.in||Q,0);return K.setFullYear(N,0,q),K.setHours(0,0,0,0),k8(K,J)}function XP(Q,J){let X=X1(Q,J?.in),q=+k8(X,J)-+GP(X,J);return Math.round(q/BX)+1}function B1(Q,J){let X=Q<0?"-":"",q=Math.abs(Q).toString().padStart(J,"0");return X+q}var f8={y(Q,J){let X=Q.getFullYear(),q=X>0?X:1-X;return B1(J==="yy"?q%100:q,J.length)},M(Q,J){let X=Q.getMonth();return J==="M"?String(X+1):B1(X+1,2)},d(Q,J){return B1(Q.getDate(),J.length)},a(Q,J){let X=Q.getHours()/12>=1?"pm":"am";switch(J){case"a":case"aa":return X.toUpperCase();case"aaa":return X;case"aaaaa":return X[0];case"aaaa":default:return X==="am"?"a.m.":"p.m."}},h(Q,J){return B1(Q.getHours()%12||12,J.length)},H(Q,J){return B1(Q.getHours(),J.length)},m(Q,J){return B1(Q.getMinutes(),J.length)},s(Q,J){return B1(Q.getSeconds(),J.length)},S(Q,J){let X=J.length,q=Q.getMilliseconds(),N=Math.trunc(q*Math.pow(10,X-3));return B1(N,J.length)}};var A$={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},fK={G:function(Q,J,X){let q=Q.getFullYear()>0?1:0;switch(J){case"G":case"GG":case"GGG":return X.era(q,{width:"abbreviated"});case"GGGGG":return X.era(q,{width:"narrow"});case"GGGG":default:return X.era(q,{width:"wide"})}},y:function(Q,J,X){if(J==="yo"){let q=Q.getFullYear(),N=q>0?q:1-q;return X.ordinalNumber(N,{unit:"year"})}return f8.y(Q,J)},Y:function(Q,J,X,q){let N=MX(Q,q),K=N>0?N:1-N;if(J==="YY"){let H=K%100;return B1(H,2)}if(J==="Yo")return X.ordinalNumber(K,{unit:"year"});return B1(K,J.length)},R:function(Q,J){let X=HX(Q);return B1(X,J.length)},u:function(Q,J){let X=Q.getFullYear();return B1(X,J.length)},Q:function(Q,J,X){let q=Math.ceil((Q.getMonth()+1)/3);switch(J){case"Q":return String(q);case"QQ":return B1(q,2);case"Qo":return X.ordinalNumber(q,{unit:"quarter"});case"QQQ":return X.quarter(q,{width:"abbreviated",context:"formatting"});case"QQQQQ":return X.quarter(q,{width:"narrow",context:"formatting"});case"QQQQ":default:return X.quarter(q,{width:"wide",context:"formatting"})}},q:function(Q,J,X){let q=Math.ceil((Q.getMonth()+1)/3);switch(J){case"q":return String(q);case"qq":return B1(q,2);case"qo":return X.ordinalNumber(q,{unit:"quarter"});case"qqq":return X.quarter(q,{width:"abbreviated",context:"standalone"});case"qqqqq":return X.quarter(q,{width:"narrow",context:"standalone"});case"qqqq":default:return X.quarter(q,{width:"wide",context:"standalone"})}},M:function(Q,J,X){let q=Q.getMonth();switch(J){case"M":case"MM":return f8.M(Q,J);case"Mo":return X.ordinalNumber(q+1,{unit:"month"});case"MMM":return X.month(q,{width:"abbreviated",context:"formatting"});case"MMMMM":return X.month(q,{width:"narrow",context:"formatting"});case"MMMM":default:return X.month(q,{width:"wide",context:"formatting"})}},L:function(Q,J,X){let q=Q.getMonth();switch(J){case"L":return String(q+1);case"LL":return B1(q+1,2);case"Lo":return X.ordinalNumber(q+1,{unit:"month"});case"LLL":return X.month(q,{width:"abbreviated",context:"standalone"});case"LLLLL":return X.month(q,{width:"narrow",context:"standalone"});case"LLLL":default:return X.month(q,{width:"wide",context:"standalone"})}},w:function(Q,J,X,q){let N=XP(Q,q);if(J==="wo")return X.ordinalNumber(N,{unit:"week"});return B1(N,J.length)},I:function(Q,J,X){let q=JP(Q);if(J==="Io")return X.ordinalNumber(q,{unit:"week"});return B1(q,J.length)},d:function(Q,J,X){if(J==="do")return X.ordinalNumber(Q.getDate(),{unit:"date"});return f8.d(Q,J)},D:function(Q,J,X){let q=QP(Q);if(J==="Do")return X.ordinalNumber(q,{unit:"dayOfYear"});return B1(q,J.length)},E:function(Q,J,X){let q=Q.getDay();switch(J){case"E":case"EE":case"EEE":return X.day(q,{width:"abbreviated",context:"formatting"});case"EEEEE":return X.day(q,{width:"narrow",context:"formatting"});case"EEEEEE":return X.day(q,{width:"short",context:"formatting"});case"EEEE":default:return X.day(q,{width:"wide",context:"formatting"})}},e:function(Q,J,X,q){let N=Q.getDay(),K=(N-q.weekStartsOn+8)%7||7;switch(J){case"e":return String(K);case"ee":return B1(K,2);case"eo":return X.ordinalNumber(K,{unit:"day"});case"eee":return X.day(N,{width:"abbreviated",context:"formatting"});case"eeeee":return X.day(N,{width:"narrow",context:"formatting"});case"eeeeee":return X.day(N,{width:"short",context:"formatting"});case"eeee":default:return X.day(N,{width:"wide",context:"formatting"})}},c:function(Q,J,X,q){let N=Q.getDay(),K=(N-q.weekStartsOn+8)%7||7;switch(J){case"c":return String(K);case"cc":return B1(K,J.length);case"co":return X.ordinalNumber(K,{unit:"day"});case"ccc":return X.day(N,{width:"abbreviated",context:"standalone"});case"ccccc":return X.day(N,{width:"narrow",context:"standalone"});case"cccccc":return X.day(N,{width:"short",context:"standalone"});case"cccc":default:return X.day(N,{width:"wide",context:"standalone"})}},i:function(Q,J,X){let q=Q.getDay(),N=q===0?7:q;switch(J){case"i":return String(N);case"ii":return B1(N,J.length);case"io":return X.ordinalNumber(N,{unit:"day"});case"iii":return X.day(q,{width:"abbreviated",context:"formatting"});case"iiiii":return X.day(q,{width:"narrow",context:"formatting"});case"iiiiii":return X.day(q,{width:"short",context:"formatting"});case"iiii":default:return X.day(q,{width:"wide",context:"formatting"})}},a:function(Q,J,X){let N=Q.getHours()/12>=1?"pm":"am";switch(J){case"a":case"aa":return X.dayPeriod(N,{width:"abbreviated",context:"formatting"});case"aaa":return X.dayPeriod(N,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return X.dayPeriod(N,{width:"narrow",context:"formatting"});case"aaaa":default:return X.dayPeriod(N,{width:"wide",context:"formatting"})}},b:function(Q,J,X){let q=Q.getHours(),N;if(q===12)N=A$.noon;else if(q===0)N=A$.midnight;else N=q/12>=1?"pm":"am";switch(J){case"b":case"bb":return X.dayPeriod(N,{width:"abbreviated",context:"formatting"});case"bbb":return X.dayPeriod(N,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return X.dayPeriod(N,{width:"narrow",context:"formatting"});case"bbbb":default:return X.dayPeriod(N,{width:"wide",context:"formatting"})}},B:function(Q,J,X){let q=Q.getHours(),N;if(q>=17)N=A$.evening;else if(q>=12)N=A$.afternoon;else if(q>=4)N=A$.morning;else N=A$.night;switch(J){case"B":case"BB":case"BBB":return X.dayPeriod(N,{width:"abbreviated",context:"formatting"});case"BBBBB":return X.dayPeriod(N,{width:"narrow",context:"formatting"});case"BBBB":default:return X.dayPeriod(N,{width:"wide",context:"formatting"})}},h:function(Q,J,X){if(J==="ho"){let q=Q.getHours()%12;if(q===0)q=12;return X.ordinalNumber(q,{unit:"hour"})}return f8.h(Q,J)},H:function(Q,J,X){if(J==="Ho")return X.ordinalNumber(Q.getHours(),{unit:"hour"});return f8.H(Q,J)},K:function(Q,J,X){let q=Q.getHours()%12;if(J==="Ko")return X.ordinalNumber(q,{unit:"hour"});return B1(q,J.length)},k:function(Q,J,X){let q=Q.getHours();if(q===0)q=24;if(J==="ko")return X.ordinalNumber(q,{unit:"hour"});return B1(q,J.length)},m:function(Q,J,X){if(J==="mo")return X.ordinalNumber(Q.getMinutes(),{unit:"minute"});return f8.m(Q,J)},s:function(Q,J,X){if(J==="so")return X.ordinalNumber(Q.getSeconds(),{unit:"second"});return f8.s(Q,J)},S:function(Q,J){return f8.S(Q,J)},X:function(Q,J,X){let q=Q.getTimezoneOffset();if(q===0)return"Z";switch(J){case"X":return YP(q);case"XXXX":case"XX":return t9(q);case"XXXXX":case"XXX":default:return t9(q,":")}},x:function(Q,J,X){let q=Q.getTimezoneOffset();switch(J){case"x":return YP(q);case"xxxx":case"xx":return t9(q);case"xxxxx":case"xxx":default:return t9(q,":")}},O:function(Q,J,X){let q=Q.getTimezoneOffset();switch(J){case"O":case"OO":case"OOO":return"GMT"+qP(q,":");case"OOOO":default:return"GMT"+t9(q,":")}},z:function(Q,J,X){let q=Q.getTimezoneOffset();switch(J){case"z":case"zz":case"zzz":return"GMT"+qP(q,":");case"zzzz":default:return"GMT"+t9(q,":")}},t:function(Q,J,X){let q=Math.trunc(+Q/1000);return B1(q,J.length)},T:function(Q,J,X){return B1(+Q,J.length)}};function qP(Q,J=""){let X=Q>0?"-":"+",q=Math.abs(Q),N=Math.trunc(q/60),K=q%60;if(K===0)return X+String(N);return X+String(N)+J+B1(K,2)}function YP(Q,J){if(Q%60===0)return(Q>0?"-":"+")+B1(Math.abs(Q)/60,2);return t9(Q,J)}function t9(Q,J=""){let X=Q>0?"-":"+",q=Math.abs(Q),N=B1(Math.trunc(q/60),2),K=B1(q%60,2);return X+N+J+K}var NP=(Q,J)=>{switch(Q){case"P":return J.date({width:"short"});case"PP":return J.date({width:"medium"});case"PPP":return J.date({width:"long"});case"PPPP":default:return J.date({width:"full"})}},UP=(Q,J)=>{switch(Q){case"p":return J.time({width:"short"});case"pp":return J.time({width:"medium"});case"ppp":return J.time({width:"long"});case"pppp":default:return J.time({width:"full"})}},MD=(Q,J)=>{let X=Q.match(/(P+)(p+)?/)||[],q=X[1],N=X[2];if(!N)return NP(Q,J);let K;switch(q){case"P":K=J.dateTime({width:"short"});break;case"PP":K=J.dateTime({width:"medium"});break;case"PPP":K=J.dateTime({width:"long"});break;case"PPPP":default:K=J.dateTime({width:"full"});break}return K.replace("{{date}}",NP(q,J)).replace("{{time}}",UP(N,J))},KP={p:UP,P:MD};var WD=/^D+$/,wD=/^Y+$/,RD=["D","DD","YY","YYYY"];function BP(Q){return WD.test(Q)}function HP(Q){return wD.test(Q)}function FP(Q,J,X){let q=zD(Q,J,X);if(console.warn(q),RD.includes(Q))throw RangeError(q)}function zD(Q,J,X){let q=Q[0]==="Y"?"years":"days of the month";return`Use \`${Q.toLowerCase()}\` instead of \`${Q}\` (in \`${J}\`) for formatting ${q} to the input \`${X}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var _D=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,LD=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,PD=/^'([^]*?)'?$/,TD=/''/g,CD=/[a-zA-Z]/;function F4(Q,J,X){let q=n4(),N=X?.locale??q.locale??YJ,K=X?.firstWeekContainsDate??X?.locale?.options?.firstWeekContainsDate??q.firstWeekContainsDate??q.locale?.options?.firstWeekContainsDate??1,H=X?.weekStartsOn??X?.locale?.options?.weekStartsOn??q.weekStartsOn??q.locale?.options?.weekStartsOn??0,F=X1(Q,X?.in);if(!xL(F))throw RangeError("Invalid time value");let M=J.match(LD).map((R)=>{let _=R[0];if(_==="p"||_==="P"){let P=KP[_];return P(R,N.formatLong)}return R}).join("").match(_D).map((R)=>{if(R==="''")return{isToken:!1,value:"'"};let _=R[0];if(_==="'")return{isToken:!1,value:ID(R)};if(fK[_])return{isToken:!0,value:R};if(_.match(CD))throw RangeError("Format string contains an unescaped latin alphabet character `"+_+"`");return{isToken:!1,value:R}});if(N.localize.preprocessor)M=N.localize.preprocessor(F,M);let w={firstWeekContainsDate:K,weekStartsOn:H,locale:N};return M.map((R)=>{if(!R.isToken)return R.value;let _=R.value;if(!X?.useAdditionalWeekYearTokens&&HP(_)||!X?.useAdditionalDayOfYearTokens&&BP(_))FP(_,J,String(Q));let P=fK[_[0]];return P(F,_,N.localize,w)}).join("")}function ID(Q){let J=Q.match(PD);if(!J)return Q;return J[1].replace(TD,"'")}function MP(Q,J,X){let q=n4(),N=X?.locale??q.locale??YJ,K=2520,H=I$(Q,J);if(isNaN(H))throw RangeError("Invalid time value");let F=Object.assign({},X,{addSuffix:X?.addSuffix,comparison:H}),[M,w]=m2(X?.in,...H>0?[J,Q]:[Q,J]),R=sL(w,M),_=(C$(w)-C$(M))/1000,P=Math.round((R-_)/60),I;if(P<2)if(X?.includeSeconds)if(R<5)return N.formatDistance("lessThanXSeconds",5,F);else if(R<10)return N.formatDistance("lessThanXSeconds",10,F);else if(R<20)return N.formatDistance("lessThanXSeconds",20,F);else if(R<40)return N.formatDistance("halfAMinute",0,F);else if(R<60)return N.formatDistance("lessThanXMinutes",1,F);else return N.formatDistance("xMinutes",1,F);else if(P===0)return N.formatDistance("lessThanXMinutes",1,F);else return N.formatDistance("xMinutes",P,F);else if(P<45)return N.formatDistance("xMinutes",P,F);else if(P<90)return N.formatDistance("aboutXHours",1,F);else if(P<vK){let A=Math.round(P/60);return N.formatDistance("aboutXHours",A,F)}else if(P<2520)return N.formatDistance("xDays",1,F);else if(P<qJ){let A=Math.round(P/vK);return N.formatDistance("xDays",A,F)}else if(P<qJ*2)return I=Math.round(P/qJ),N.formatDistance("aboutXMonths",I,F);if(I=nL(w,M),I<12){let A=Math.round(P/qJ);return N.formatDistance("xMonths",A,F)}else{let A=I%12,V=Math.trunc(I/12);if(A<3)return N.formatDistance("aboutXYears",V,F);else if(A<9)return N.formatDistance("overXYears",V,F);else return N.formatDistance("almostXYears",V+1,F)}}function WP(Q,J){return MP(Q,hL(Q),J)}var U5=n(T1(),1);var yK=n(wP(),1),S6=n(T1(),1);var zP="label";function RP(Q,J){if(typeof Q==="function")Q(J);else if(Q)Q.current=J}function VD(Q,J){let X=Q.options;if(X&&J)Object.assign(X,J)}function _P(Q,J){Q.labels=J}function LP(Q,J,X=zP){let q=[];Q.datasets=J.map((N)=>{let K=Q.datasets.find((H)=>H[X]===N[X]);if(!K||!N.data||q.includes(K))return{...N};return q.push(K),Object.assign(K,N),K})}function AD(Q,J=zP){let X={labels:[],datasets:[]};return _P(X,Q.labels),LP(X,Q.datasets,J),X}function ED(Q,J){let{height:X=150,width:q=300,redraw:N=!1,datasetIdKey:K,type:H,data:F,options:M,plugins:w=[],fallbackContent:R,updateMode:_,...P}=Q,I=S6.useRef(null),A=S6.useRef(null),V=()=>{if(!I.current)return;A.current=new l9(I.current,{type:H,data:AD(F,K),options:M&&{...M},plugins:w}),RP(J,A.current)},O=()=>{if(RP(J,null),A.current)A.current.destroy(),A.current=null};return S6.useEffect(()=>{if(!N&&A.current&&M)VD(A.current,M)},[N,M]),S6.useEffect(()=>{if(!N&&A.current)_P(A.current.config.data,F.labels)},[N,F.labels]),S6.useEffect(()=>{if(!N&&A.current&&F.datasets)LP(A.current.config.data,F.datasets,K)},[N,F.datasets]),S6.useEffect(()=>{if(!A.current)return;if(N)O(),setTimeout(V);else A.current.update(_)},[N,M,F.labels,F.datasets,_]),S6.useEffect(()=>{if(!A.current)return;O(),setTimeout(V)},[H]),S6.useEffect(()=>{return V(),()=>O()},[]),yK.jsx("canvas",{ref:I,role:"img",height:X,width:q,...P,children:R})}var SD=S6.forwardRef(ED);function PP(Q,J){return l9.register(J),S6.forwardRef((X,q)=>yK.jsx(SD,{...X,ref:q,type:Q}))}var f5=PP("line",HK),d2=PP("bar",BK);var H1=["#ed4abf","#9b4dff","#5ad8e6","#62d394","#c77dff","#ff8fd1","#f5c14b","#ff6b7d"],o1={dark:{legendLabel:"#a89fb3",tooltipBackground:"#241a2e",tooltipTitle:"#eae5ef",tooltipBody:"#a89fb3",tooltipBorder:"rgba(255, 255, 255, 0.12)",grid:"rgba(255, 255, 255, 0.06)",tick:"#867a93"},light:{legendLabel:"#5a5462",tooltipBackground:"#ffffff",tooltipTitle:"#241a2e",tooltipBody:"#5a5462",tooltipBorder:"rgba(20, 12, 28, 0.15)",grid:"rgba(20, 12, 28, 0.08)",tick:"#6a6275"}};function s4(Q){let{chartTheme:J,showLegend:X,defaultLabel:q,formatValue:N,footer:K}=Q;return{legend:{display:X,position:"top",align:"start",labels:{color:J.legendLabel,usePointStyle:!0,padding:16,font:{size:12},boxWidth:8}},tooltip:{backgroundColor:J.tooltipBackground,titleColor:J.tooltipTitle,bodyColor:J.tooltipBody,borderColor:J.tooltipBorder,borderWidth:1,padding:12,cornerRadius:8,callbacks:{label:(H)=>{let F=H.dataset.label??q,M=H.parsed.y??0;return`${F}: ${N(M)}`},...K?{footer:K}:{}}}}}function o4(Q){let{chartTheme:J,formatY:X}=Q,q={grid:{color:J.grid,drawBorder:!1},ticks:{color:J.tick,font:{size:11}}},N={...q,ticks:{...q.ticks,callback:(K)=>X(Number(K))},min:0};return{sharedScaleBase:q,yScale:N}}function E$(Q){return{borderColor:Q,backgroundColor:`${Q}20`,fill:!0,tension:0,pointRadius:3,pointHoverRadius:4,borderWidth:2}}function $7(Q){return{backgroundColor:Q,borderColor:Q,borderWidth:0,borderRadius:4,maxBarThickness:56}}function p2(Q,J){return Q.datasets.map((X,q)=>({label:X.label,data:X.data,...J(q)}))}function WX(Q,J,X){if(Q.length===0)return{labels:[],datasets:[]};let{initBucket:q,accumulate:N,bucketToValue:K}=X,H=new Map;for(let M of Q){let w=H.get(M.timestamp)??q();N(w,M),H.set(M.timestamp,w)}let F=[...H.entries()].sort((M,w)=>M[0]-w[0]);return{labels:F.map(([M])=>F4(new Date(M),"MMM d")),datasets:[{label:J,data:F.map(([,M])=>K(M))}]}}function S$(Q,J){if(Q.length===0)return{labels:[],datasets:[]};let{topN:X=5,rankWeight:q,initBucket:N,accumulate:K,bucketToValue:H}=J,F=new Map;for(let D of Q){let h=`${D.model}::${D.provider}`,p=F.get(h);if(p)p.weight+=q(D);else F.set(h,{model:D.model,provider:D.provider,weight:q(D)})}let w=[...F.entries()].sort((D,h)=>h[1].weight-D[1].weight).slice(0,X),R=new Set(w.map(([D])=>D)),_=new Map;for(let[,{model:D}]of w)_.set(D,(_.get(D)??0)+1);let P=new Map;for(let[D,{model:h,provider:p}]of w)P.set(D,(_.get(h)??0)>1?`${h} (${p})`:h);let I=[...new Set(Q.map((D)=>D.timestamp))].sort((D,h)=>D-h),A=w.map(([D])=>P.get(D)??D);if(Q.some((D)=>!R.has(`${D.model}::${D.provider}`)))A.push("Other");let O=new Map;for(let D of I)O.set(D,{});for(let D of Q){let h=`${D.model}::${D.provider}`,p=R.has(h)?P.get(h)??D.model:"Other",s=O.get(D.timestamp);if(!s)continue;let a=s[p]??N();K(a,D),s[p]=a}return{labels:I.map((D)=>F4(new Date(D),"MMM d")),datasets:A.map((D)=>({label:D,data:I.map((h)=>{let p=O.get(h)?.[D];return p?H(p):0})}))}}var y1=n(U0(),1);function y8(Q){return{borderColor:Q,backgroundColor:"transparent",tension:0.4,pointRadius:0,borderWidth:2}}function wX({timestamps:Q,values:J,color:X}){let q={labels:Q.map((K)=>F4(new Date(K),"MMM d")),datasets:[{data:J,...y8(X)}]};return y1.jsxDEV(f5,{data:q,options:{responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{enabled:!1}},scales:{x:{display:!1},y:{display:!1,min:0}}}},void 0,!1,void 0,this)}function RX(Q){return{legend:{display:!0,position:"top",labels:{color:Q.legendLabel,usePointStyle:!0,padding:16,font:{size:12}}},tooltip:{backgroundColor:Q.tooltipBackground,titleColor:Q.tooltipTitle,bodyColor:Q.tooltipBody,borderColor:Q.tooltipBorder,borderWidth:1,cornerRadius:8}}}function TP(Q){return{x:{grid:{color:Q.grid},ticks:{color:Q.tick,font:{size:11}}},y:{grid:{color:Q.grid},ticks:{color:Q.tick,font:{size:11}},min:0}}}function CP(Q){return{x:{grid:{color:Q.grid},ticks:{color:Q.tick,font:{size:11}}},y:{type:"linear",display:!0,position:"left",grid:{color:Q.grid},ticks:{color:Q.tick,font:{size:11}}},y1:{type:"linear",display:!0,position:"right",grid:{drawOnChartArea:!1},ticks:{color:Q.tick,font:{size:11}}}}}function zX({title:Q,subtitle:J,children:X}){return y1.jsxDEV("div",{className:"stats-panel overflow-hidden",children:[y1.jsxDEV("div",{className:"px-5 py-4 border-b border-[var(--border-subtle)]",children:[y1.jsxDEV("h3",{className:"text-sm font-semibold text-[var(--text-primary)]",children:Q},void 0,!1,void 0,this),J?y1.jsxDEV("p",{className:"text-xs text-[var(--text-muted)] mt-1",children:J},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),y1.jsxDEV("div",{className:"overflow-x-auto",children:X},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function jD(Q){if(Q==="right")return"text-right";if(Q==="center")return"text-center";return""}function _X({columns:Q,gridTemplate:J}){return y1.jsxDEV("div",{className:"grid gap-3 px-5 py-3 text-[var(--text-muted)] text-xs uppercase tracking-wider font-semibold",style:{gridTemplateColumns:J},children:[Q.map((X)=>y1.jsxDEV("div",{className:jD(X.align),children:X.label},X.label,!1,void 0,this)),y1.jsxDEV("div",{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function LX({children:Q}){return y1.jsxDEV("div",{className:"max-h-[calc(100vh-300px)] overflow-y-auto",children:Q},void 0,!1,void 0,this)}function PX({model:Q,provider:J}){return y1.jsxDEV("div",{children:[y1.jsxDEV("div",{className:"font-medium text-[var(--text-primary)]",children:Q},void 0,!1,void 0,this),y1.jsxDEV("div",{className:"text-xs text-[var(--text-muted)]",children:J},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function TX({gridTemplate:Q,cells:J,trendCell:X,isExpanded:q,onToggle:N,expandedContent:K}){return y1.jsxDEV("div",{className:"border-t border-[var(--border-subtle)]",children:[y1.jsxDEV("button",{type:"button",onClick:N,className:"w-full bg-transparent border-none text-left px-5 py-3 cursor-pointer hover:bg-[var(--bg-hover)] transition-colors",children:y1.jsxDEV("div",{className:"grid gap-3 items-center",style:{gridTemplateColumns:Q},children:[J,y1.jsxDEV("div",{className:"h-10",children:X},void 0,!1,void 0,this),y1.jsxDEV("div",{className:"flex justify-center text-[var(--text-muted)]",children:q?y1.jsxDEV(gQ,{size:16},void 0,!1,void 0,this):y1.jsxDEV(yQ,{size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),q?y1.jsxDEV("div",{className:"px-5 py-4 bg-[var(--bg-elevated)] border-t border-[var(--border-subtle)]",children:K},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}function CX(){return y1.jsxDEV("div",{className:"text-[var(--text-muted)] text-center text-sm",children:"-"},void 0,!1,void 0,this)}function IX({message:Q="No data available"}){return y1.jsxDEV("div",{className:"h-full flex items-center justify-center text-[var(--text-muted)] text-sm",children:Q},void 0,!1,void 0,this)}function S0(Q){return Q.toLocaleString()}function N1(Q){return Q.toLocaleString(void 0,{notation:"compact"})}function R1(Q,J){if(Q===0)return"$0";let X=J!==void 0?J:Q>0&&Q<0.01?4:2;return`$${Q.toLocaleString(void 0,{minimumFractionDigits:X,maximumFractionDigits:X})}`}function d1(Q,J=1){return`${(Q*100).toFixed(J)}%`}function y5(Q,J){if(Q===null)return"-";let X=Q/1000,q=J!==void 0?J:X<1?2:1;return`${X.toFixed(q)}s`}function OX(Q){if(Q===null)return"-";return Q.toFixed(1)}function Y6(Q){return WP(new Date(Q),{addSuffix:!0})}function gK(Q){if(Q>=1e9)return`${(Q/1e9).toFixed(1)} GB`;if(Q>=1e6)return`${(Q/1e6).toFixed(1)} MB`;if(Q>=1000)return`${(Q/1000).toFixed(1)} KB`;return`${Q} B`}var O5=n(T1(),1),c2=new Map,DD=64;function a1(Q,J,X){let q=JSON.stringify(Q),[N,K]=O5.useState(()=>c2.get(q)?.data??null),[H,F]=O5.useState(null),[M,w]=O5.useState(()=>!c2.has(q)),[R,_]=O5.useState(!1),[P,I]=O5.useState(()=>c2.get(q)?.updatedAt??null),A=O5.useRef(J);A.current=J;let V=O5.useRef(q);V.current=q;let O=X?.enabled??!0,D=X?.pollMs,h=O5.useRef(null),p=O5.useRef(!1);p.current=N!==null;let s=O5.useCallback(async(J0)=>{if(h.current)h.current.abort();let t=new AbortController;if(h.current=t,J0)_(!0);else w(!0),K(null);F(null);try{let i=await A.current(t.signal);if(t.signal.aborted)return;if(c2.set(V.current,{data:i,updatedAt:Date.now()}),c2.size>DD){let Y0=c2.keys().next().value;if(Y0!==void 0)c2.delete(Y0)}K(i),I(Date.now()),F(null)}catch(i){if(t.signal.aborted)return;F(i instanceof Error?i:Error(String(i)))}finally{if(!t.signal.aborted){if(w(!1),_(!1),h.current===t)h.current=null}}},[]);O5.useEffect(()=>{if(!O){w(!1),_(!1);return}let J0=c2.get(q);if(J0)K(J0.data),I(J0.updatedAt),w(!1),s(!0);else s(p.current);return()=>{if(h.current)h.current.abort(),h.current=null}},[q,O,s]),O5.useEffect(()=>{if(!O||!D)return;let J0=setInterval(()=>{if(document.hidden)return;s(!0)},D);return()=>{clearInterval(J0)}},[O,D,s]);let a=O5.useCallback(async()=>{await s(!0)},[s]);return{data:N,error:H,loading:M,refreshing:R,refetch:a,updatedAt:P}}var IP=3600000,VX=24*IP,vD=300000,OP={"1h":{windowLabel:"the last hour",trendLabel:"1h Trend",bucketMs:vD,bucketCount:12,tickFormat:"HH:mm"},"24h":{windowLabel:"the last 24 hours",trendLabel:"24h Trend",bucketMs:IP,bucketCount:24,tickFormat:"HH:mm"},"7d":{windowLabel:"the last 7 days",trendLabel:"7d Trend",bucketMs:VX,bucketCount:7,tickFormat:"MMM d"},"30d":{windowLabel:"the last 30 days",trendLabel:"30d Trend",bucketMs:VX,bucketCount:30,tickFormat:"MMM d"},"90d":{windowLabel:"the last 90 days",trendLabel:"90d Trend",bucketMs:VX,bucketCount:90,tickFormat:"MMM d"},all:{windowLabel:"all time",trendLabel:"Trend",bucketMs:VX,bucketCount:0,tickFormat:"MMM d"}};function Z7(Q){return OP[Q]}function NJ(Q,J){return F4(new Date(Q),OP[J].tickFormat)}var bD=["main","subagent","advisor"];function AX(Q){return Q.totalInputTokens+Q.totalOutputTokens+Q.totalCacheReadTokens+Q.totalCacheWriteTokens}function VP(Q){let J=new Map;for(let H of Q)J.set(H.agentType,H);let X=bD.map((H)=>J.get(H)).filter((H)=>H!==void 0),q=X.reduce((H,F)=>H+AX(F),0),N=X.reduce((H,F)=>H+F.totalCost,0),K=X.map((H)=>{let F=AX(H);return{agentType:H.agentType,tokens:F,requests:H.totalRequests,cost:H.totalCost,share:q>0?F/q:0}});return{totalTokens:q,totalCost:N,segments:K}}function AP(Q){let J=Q.reduce((F,M)=>F+M.cost,0),X=new Set(Q.map((F)=>F.timestamp)).size,q=X>0?J/X:0,N=new Map;for(let F of Q)N.set(F.model,(N.get(F.model)??0)+F.cost);let K="",H=0;for(let[F,M]of N)if(M>H)K=F,H=M;return{totalCost:J,avgDailyCost:q,topModelName:K,topModelCost:H}}function EP(Q,J){if(Q.length===0)return new Map;let X=Z7(J),q=X.bucketMs,N=X.bucketCount,K=N>0?(()=>{let M=Q.reduce((_,P)=>Math.max(_,P.timestamp),0),R=(M>0?M:Math.floor(Date.now()/q)*q)-(N-1)*q;return Array.from({length:N},(_,P)=>R+P*q)})():Array.from(new Set(Q.map((M)=>M.timestamp))).sort((M,w)=>M-w),H=new Map(K.map((M,w)=>[M,w])),F=new Map;for(let M of Q){let w=`${M.model}::${M.provider}`,R=F.get(w);if(!R)R={label:`${M.model} (${M.provider})`,data:K.map((P)=>({timestamp:P,avgTtftSeconds:null,avgTokensPerSecond:null,requests:0}))},F.set(w,R);let _=H.get(M.timestamp);if(_===void 0)continue;R.data[_]={timestamp:M.timestamp,avgTtftSeconds:M.avgTtft!==null?M.avgTtft/1000:null,avgTokensPerSecond:M.avgTokensPerSecond,requests:M.requests}}return F}function SP(Q,J){let X=Q.totalNegation+Q.totalRepetition+Q.totalBlame,q=new Map;for(let K of J){let H=`${K.model}::${K.provider}`,F=q.get(H),M=K.yelling+K.profanity+K.anguish+K.negation+K.repetition+K.blame;if(F)F.score+=M;else q.set(H,{model:K.model,provider:K.provider,score:M})}let N=null;for(let K of q.values())if(!N||K.score>N.score)N=K;return{totalMessages:Q.totalMessages,totalYelling:Q.totalYelling,totalProfanity:Q.totalProfanity,totalAnguish:Q.totalAnguish,totalFrustration:X,highestFrictionModel:N}}function jP(Q){let J=[...Q].sort((N,K)=>{if(K.totalCost!==N.totalCost)return K.totalCost-N.totalCost;return K.totalRequests-N.totalRequests}),X=J.reduce((N,K)=>Math.max(N,K.totalCost),0),q=J.reduce((N,K)=>Math.max(N,K.totalRequests),0);return J.map((N)=>({...N,costPercentage:X>0?N.totalCost/X*100:0,requestsPercentage:q>0?N.totalRequests/q*100:0}))}function DP(Q){let J=Q.reduce((X,q)=>Math.max(X,q.calls),0);return Q.map((X)=>({...X,errorRate:X.calls>0?X.errors/X.calls:0,callsPercentage:J>0?X.calls/J*100:0}))}var EX=n(U0(),1);function j$({message:Q="No data available",icon:J=cQ,className:X=""}){return EX.jsxDEV("div",{className:`stats-empty-state ${X}`,children:[EX.jsxDEV(J,{size:24,className:"stats-empty-state-icon","aria-hidden":"true"},void 0,!1,void 0,this),EX.jsxDEV("p",{className:"stats-empty-state-message",children:Q},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var D$=n(U0(),1);function vP({error:Q,onRetry:J,className:X=""}){return D$.jsxDEV("div",{className:`stats-error-state ${X}`,children:D$.jsxDEV("div",{className:"stats-error-state-content",children:[D$.jsxDEV("h4",{className:"stats-error-state-title",children:"Failed to load data"},void 0,!1,void 0,this),Q&&D$.jsxDEV("p",{className:"stats-error-state-message",children:Q.message},void 0,!1,void 0,this),J&&D$.jsxDEV("button",{type:"button",onClick:J,className:"stats-button stats-button-secondary stats-error-state-btn",children:"Retry"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var bP=n(U0(),1);function N6({variant:Q="text",width:J,height:X,className:q=""}){let N={width:J!==void 0?typeof J==="number"?`${J}px`:J:void 0,height:X!==void 0?typeof X==="number"?`${X}px`:X:void 0};return bP.jsxDEV("div",{className:`stats-skeleton ${q}`,"data-variant":Q,style:N},void 0,!1,void 0,this)}var j6=n(U0(),1);function g1({loading:Q,error:J,data:X,empty:q=!1,emptyText:N="No data available",fallback:K,onRetry:H,children:F}){if(J&&X===null)return j6.jsxDEV(vP,{error:J,onRetry:H},void 0,!1,void 0,this);if(Q&&X===null){if(K)return j6.jsxDEV(j6.Fragment,{children:K},void 0,!1,void 0,this);return j6.jsxDEV("div",{className:"stats-boundary-skeleton",children:[j6.jsxDEV(N6,{variant:"text",width:"60%",height:24,className:"mb-4"},void 0,!1,void 0,this),j6.jsxDEV(N6,{variant:"rect",width:"100%",height:160,className:"mb-4"},void 0,!1,void 0,this),j6.jsxDEV(N6,{variant:"text",width:"80%",height:20,className:"mb-2"},void 0,!1,void 0,this),j6.jsxDEV(N6,{variant:"text",width:"40%",height:20},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}if(!Q&&(q||X===null))return j6.jsxDEV(j$,{message:N},void 0,!1,void 0,this);return j6.jsxDEV(j6.Fragment,{children:F},void 0,!1,void 0,this)}var U6=n(U0(),1);function K6({columns:Q,data:J,keyExtractor:X,onRowClick:q,renderMobileCard:N,emptyText:K="No data available"}){let H=(F,M)=>{if(q&&(F.key==="Enter"||F.key===" "))F.preventDefault(),q(M)};if(J.length===0)return U6.jsxDEV("div",{className:"stats-table-empty",children:K},void 0,!1,void 0,this);return U6.jsxDEV("div",{className:"stats-table-wrapper",children:[N&&U6.jsxDEV("div",{className:"stats-table-mobile-only",children:U6.jsxDEV("div",{className:"stats-table-mobile-list",children:J.map((F)=>{let M=String(X(F));return U6.jsxDEV("div",{className:"stats-table-mobile-card-wrapper",children:N(F,q?()=>q(F):void 0)},M,!1,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),U6.jsxDEV("div",{className:N?"stats-table-desktop-only":"stats-table-container",children:U6.jsxDEV("table",{className:"stats-table",children:[U6.jsxDEV("thead",{children:U6.jsxDEV("tr",{children:Q.map((F)=>{let M=["stats-table-th",F.numeric?"stats-text-right":"stats-text-left",F.className||""].filter(Boolean).join(" ");return U6.jsxDEV("th",{className:M,children:F.header},F.key,!1,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),U6.jsxDEV("tbody",{children:J.map((F)=>{let M=String(X(F)),w=typeof q==="function",R=["stats-table-tr",w?"stats-table-tr-clickable":""].filter(Boolean).join(" ");return U6.jsxDEV("tr",{className:R,onClick:w?()=>q(F):void 0,onKeyDown:w?(_)=>H(_,F):void 0,tabIndex:w?0:void 0,role:w?"button":void 0,children:Q.map((_)=>{let P=["stats-table-td",_.numeric?"stats-text-right":"stats-text-left",_.className||""].filter(Boolean).join(" ");return U6.jsxDEV("td",{className:P,children:_.render?_.render(F):F[_.key]},_.key,!1,void 0,this)})},M,!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 Q7=n(T1(),1),i6=n(U0(),1);function hK({data:Q,title:J,initialCollapsed:X=!1}){let[q,N]=Q7.useState(X),[K,H]=Q7.useState(!1),F=Q7.useRef(0),M=JSON.stringify(Q,null,2);return Q7.useEffect(()=>()=>window.clearTimeout(F.current),[]),i6.jsxDEV("div",{className:"stats-json-block",children:[i6.jsxDEV("div",{className:"stats-json-block-header",onClick:()=>N(!q),onKeyDown:(_)=>{if(_.key==="Enter"||_.key===" ")_.preventDefault(),N(!q)},tabIndex:0,role:"button","aria-expanded":!q,children:[i6.jsxDEV("span",{className:"stats-json-block-title",children:J||"JSON"},void 0,!1,void 0,this),i6.jsxDEV("div",{className:"stats-json-actions",children:[i6.jsxDEV("button",{type:"button",className:"stats-json-copy-btn",onClick:async(_)=>{_.stopPropagation();try{await navigator.clipboard.writeText(M),H(!0),window.clearTimeout(F.current),F.current=window.setTimeout(()=>H(!1),1500)}catch{}},"aria-label":K?"Copied to clipboard":"Copy JSON to clipboard",children:[K?i6.jsxDEV(fQ,{size:13},void 0,!1,void 0,this):i6.jsxDEV(uQ,{size:13},void 0,!1,void 0,this),K?"Copied":"Copy"]},void 0,!0,void 0,this),i6.jsxDEV("span",{className:"stats-json-block-toggle-indicator","data-collapsed":q,children:q?"▶ Show":"▼ Hide"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),!q&&i6.jsxDEV("div",{className:"stats-json-block-content-wrapper",children:i6.jsxDEV("pre",{className:"stats-json-block-content",children:i6.jsxDEV("code",{children:M},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 s0=n(U0(),1);function kP({stats:Q}){let J=AX(Q);return s0.jsxDEV("div",{className:"stats-metric-cluster",children:[s0.jsxDEV("div",{className:"stats-metric-primary-grid",children:[s0.jsxDEV("div",{className:"stats-metric-card primary",children:[s0.jsxDEV("div",{className:"stats-metric-label",children:"Total Cost"},void 0,!1,void 0,this),s0.jsxDEV("div",{className:"stats-metric-value",children:R1(Q.totalCost,Q.totalCost>0&&Q.totalCost<0.01?4:2)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),s0.jsxDEV("div",{className:"stats-metric-card primary",children:[s0.jsxDEV("div",{className:"stats-metric-label",children:"Requests"},void 0,!1,void 0,this),s0.jsxDEV("div",{className:"stats-metric-value",children:S0(Q.totalRequests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),s0.jsxDEV("div",{className:"stats-metric-card primary",children:[s0.jsxDEV("div",{className:"stats-metric-label",children:"Cache Rate"},void 0,!1,void 0,this),s0.jsxDEV("div",{className:"stats-metric-value",children:d1(Q.cacheRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),s0.jsxDEV("div",{className:"stats-metric-card primary",children:[s0.jsxDEV("div",{className:"stats-metric-label",children:"Error Rate"},void 0,!1,void 0,this),s0.jsxDEV("div",{className:"stats-metric-value",children:d1(Q.errorRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),s0.jsxDEV("div",{className:"stats-metric-secondary-grid",children:[s0.jsxDEV("div",{className:"stats-metric-card secondary",title:"Conversation input not served from cache",children:[s0.jsxDEV("div",{className:"stats-metric-label",children:"Uncached Input"},void 0,!1,void 0,this),s0.jsxDEV("div",{className:"stats-metric-value",children:N1(Q.totalInputTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),s0.jsxDEV("div",{className:"stats-metric-card secondary",title:"Conversation input read from the prompt cache",children:[s0.jsxDEV("div",{className:"stats-metric-label",children:"Cache Read"},void 0,!1,void 0,this),s0.jsxDEV("div",{className:"stats-metric-value",children:N1(Q.totalCacheReadTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),s0.jsxDEV("div",{className:"stats-metric-card secondary",children:[s0.jsxDEV("div",{className:"stats-metric-label",children:"Output Tokens"},void 0,!1,void 0,this),s0.jsxDEV("div",{className:"stats-metric-value",children:N1(Q.totalOutputTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),s0.jsxDEV("div",{className:"stats-metric-card secondary",title:"Uncached input + cache reads + cache writes + output",children:[s0.jsxDEV("div",{className:"stats-metric-label",children:"Conversation Total"},void 0,!1,void 0,this),s0.jsxDEV("div",{className:"stats-metric-value",children:N1(J)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),s0.jsxDEV("div",{className:"stats-metric-card secondary",children:[s0.jsxDEV("div",{className:"stats-metric-label",children:"Premium Requests"},void 0,!1,void 0,this),s0.jsxDEV("div",{className:"stats-metric-value",children:S0(Q.totalPremiumRequests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),s0.jsxDEV("div",{className:"stats-metric-card secondary",children:[s0.jsxDEV("div",{className:"stats-metric-label",children:"Tokens/s"},void 0,!1,void 0,this),s0.jsxDEV("div",{className:"stats-metric-value",children:OX(Q.avgTokensPerSecond)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),s0.jsxDEV("div",{className:"stats-metric-card secondary",children:[s0.jsxDEV("div",{className:"stats-metric-label",children:"Avg Latency"},void 0,!1,void 0,this),s0.jsxDEV("div",{className:"stats-metric-value",children:y5(Q.avgDuration)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),s0.jsxDEV("div",{className:"stats-metric-card secondary",children:[s0.jsxDEV("div",{className:"stats-metric-label",children:"Avg TTFT"},void 0,!1,void 0,this),s0.jsxDEV("div",{className:"stats-metric-value",children:y5(Q.avgTtft)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var l2=n(U0(),1);function q1({title:Q,subtitle:J,actions:X,children:q,className:N="",...K}){return l2.jsxDEV("div",{className:`stats-panel ${N}`,...K,children:[(Q||J||X)&&l2.jsxDEV("div",{className:"stats-panel-header",children:[l2.jsxDEV("div",{className:"stats-panel-header-titles",children:[Q&&l2.jsxDEV("h3",{className:"stats-panel-title",children:Q},void 0,!1,void 0,this),J&&l2.jsxDEV("p",{className:"stats-panel-subtitle",children:J},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X&&l2.jsxDEV("div",{className:"stats-panel-actions",children:X},void 0,!1,void 0,this)]},void 0,!0,void 0,this),l2.jsxDEV("div",{className:"stats-panel-body",children:q},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var a4=n(T1(),1);var fP=n(U0(),1);function V5({variant:Q,children:J,className:X=""}){return fP.jsxDEV("span",{className:`stats-status-pill ${X}`,"data-variant":Q,children:J},void 0,!1,void 0,this)}var w0=n(U0(),1);function yP({id:Q,onClose:J}){let[X,q]=a4.useState(null),[N,K]=a4.useState(!1),[H,F]=a4.useState(null),M=a4.useRef(null),w=a4.useRef(null);if(a4.useEffect(()=>{if(Q===null){q(null);return}M.current=document.activeElement,K(!0),F(null),q(null);let _=new AbortController;return WL(Q,_.signal).then((P)=>{if(_.signal.aborted)return;q(P),setTimeout(()=>w.current?.focus(),50)}).catch((P)=>{if(_.signal.aborted)return;F(P instanceof Error?P:Error(String(P)))}).finally(()=>{if(!_.signal.aborted)K(!1)}),()=>_.abort()},[Q]),a4.useEffect(()=>{if(Q===null)return;let _=(P)=>{if(P.key==="Escape")J()};return window.addEventListener("keydown",_),()=>{if(window.removeEventListener("keydown",_),M.current)M.current.focus()}},[Q,J]),Q===null)return null;return w0.jsxDEV("div",{className:"stats-drawer-overlay",onClick:(_)=>{if(_.target===_.currentTarget)J()},role:"presentation",children:w0.jsxDEV("div",{className:"stats-drawer",role:"dialog","aria-modal":"true","aria-label":"Request details",children:[w0.jsxDEV("div",{className:"stats-drawer-header",children:[w0.jsxDEV("div",{className:"stats-drawer-header-left",children:[w0.jsxDEV("h2",{className:"stats-drawer-title",children:"Request Details"},void 0,!1,void 0,this),X&&w0.jsxDEV("span",{className:"stats-drawer-id",children:["ID: ",Q]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),w0.jsxDEV("button",{ref:w,type:"button",onClick:J,className:"stats-drawer-close-btn","aria-label":"Close request details",children:w0.jsxDEV(s9,{size:18},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),w0.jsxDEV("div",{className:"stats-drawer-body",children:[N&&w0.jsxDEV("div",{className:"stats-drawer-loading",children:[w0.jsxDEV(N6,{variant:"text",width:"60%",height:24,className:"mb-4"},void 0,!1,void 0,this),w0.jsxDEV(N6,{variant:"rect",width:"100%",height:80,className:"mb-4"},void 0,!1,void 0,this),w0.jsxDEV(N6,{variant:"rect",width:"100%",height:120,className:"mb-4"},void 0,!1,void 0,this),w0.jsxDEV(N6,{variant:"rect",width:"100%",height:200},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H&&w0.jsxDEV("div",{className:"stats-drawer-error",children:[w0.jsxDEV("p",{className:"stats-drawer-error-title",children:"Failed to load request details"},void 0,!1,void 0,this),w0.jsxDEV("p",{className:"stats-drawer-error-message",children:H.message},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X&&w0.jsxDEV("div",{className:"stats-drawer-content",children:[w0.jsxDEV("div",{className:"stats-drawer-status-card",children:[w0.jsxDEV("div",{className:"stats-drawer-status-row",children:[w0.jsxDEV("div",{children:[w0.jsxDEV("div",{className:"stats-drawer-model",children:X.model},void 0,!1,void 0,this),w0.jsxDEV("div",{className:"stats-drawer-provider",children:X.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),w0.jsxDEV(V5,{variant:X.errorMessage?"danger":"success",children:X.errorMessage?"Error":"Success"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X.errorMessage&&w0.jsxDEV("div",{className:"stats-drawer-error-block",children:[w0.jsxDEV("div",{className:"stats-drawer-error-label",children:"Error Message"},void 0,!1,void 0,this),w0.jsxDEV("div",{className:"stats-drawer-error-text",children:X.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),w0.jsxDEV("div",{className:"stats-drawer-metrics-grid",children:[w0.jsxDEV("div",{className:"stats-drawer-metric-card",children:[w0.jsxDEV("div",{className:"stats-drawer-metric-label",children:[w0.jsxDEV(n9,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"Cost"]},void 0,!0,void 0,this),w0.jsxDEV("div",{className:"stats-drawer-metric-value",children:R1(X.usage.cost.total,4)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),w0.jsxDEV("div",{className:"stats-drawer-metric-card",children:[w0.jsxDEV("div",{className:"stats-drawer-metric-label",children:[w0.jsxDEV(tQ,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"Premium"]},void 0,!0,void 0,this),w0.jsxDEV("div",{className:"stats-drawer-metric-value",children:S0(X.usage.premiumRequests??0)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),w0.jsxDEV("div",{className:"stats-drawer-metric-card",children:[w0.jsxDEV("div",{className:"stats-drawer-metric-label",children:[w0.jsxDEV(pQ,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"Total Tokens"]},void 0,!0,void 0,this),w0.jsxDEV("div",{className:"stats-drawer-metric-value",children:S0(X.usage.totalTokens)},void 0,!1,void 0,this),w0.jsxDEV("div",{className:"stats-drawer-metric-sub",children:[S0(X.usage.input)," in · ",S0(X.usage.output)," out"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),w0.jsxDEV("div",{className:"stats-drawer-metric-card",children:[w0.jsxDEV("div",{className:"stats-drawer-metric-label",children:[w0.jsxDEV(hQ,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"Duration"]},void 0,!0,void 0,this),w0.jsxDEV("div",{className:"stats-drawer-metric-value",children:y5(X.duration)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),w0.jsxDEV("div",{className:"stats-drawer-metric-card",children:[w0.jsxDEV("div",{className:"stats-drawer-metric-label",children:[w0.jsxDEV(QJ,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"TTFT"]},void 0,!0,void 0,this),w0.jsxDEV("div",{className:"stats-drawer-metric-value",children:y5(X.ttft)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X.duration&&X.usage.output>0&&w0.jsxDEV("div",{className:"stats-drawer-metric-card",children:[w0.jsxDEV("div",{className:"stats-drawer-metric-label",children:[w0.jsxDEV(dQ,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"Throughput"]},void 0,!0,void 0,this),w0.jsxDEV("div",{className:"stats-drawer-metric-value",children:(X.usage.output*1000/X.duration).toFixed(1)},void 0,!1,void 0,this),w0.jsxDEV("div",{className:"stats-drawer-metric-sub",children:"tokens/second"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),w0.jsxDEV("div",{className:"stats-drawer-json-blocks",children:[w0.jsxDEV(hK,{data:X.output,title:"Output Payload",initialCollapsed:!1},void 0,!1,void 0,this),w0.jsxDEV(hK,{data:X,title:"Raw Request Metadata",initialCollapsed:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var uK=n(U0(),1);function J7({options:Q,value:J,onChange:X,className:q=""}){return uK.jsxDEV("div",{className:`stats-segmented-control ${q}`,role:"radiogroup",children:Q.map((N)=>{let K=N.value===J;return uK.jsxDEV("button",{type:"button",role:"radio","aria-checked":K,"data-active":K?"true":"false",className:"stats-segmented-control-btn",title:N.title,onClick:()=>X(N.value),children:N.label},String(N.value),!1,void 0,this)})},void 0,!1,void 0,this)}var R0=n(U0(),1);function dP({active:Q,range:J,refreshTrigger:X}){let{data:q,error:N,loading:K}=a1(["behavior",J,X],(H)=>RL(J,H),{pollMs:30000,enabled:Q});return R0.jsxDEV("div",{className:"stats-route-container space-y-6",children:R0.jsxDEV(g1,{loading:K,error:N,data:q,children:q&&R0.jsxDEV(R0.Fragment,{children:[R0.jsxDEV(kD,{overall:q.overall,behaviorSeries:q.behaviorSeries},void 0,!1,void 0,this),R0.jsxDEV(fD,{behaviorSeries:q.behaviorSeries},void 0,!1,void 0,this),R0.jsxDEV(yD,{models:q.byModel,behaviorSeries:q.behaviorSeries},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 SX(Q,J){if(J<=0)return;return`${(Q/J).toFixed(2)} / msg`}function kD({overall:Q,behaviorSeries:J}){let X=U5.useMemo(()=>SP(Q,J),[Q,J]),q=Q.totalMessages,N=[{label:"User Messages",value:S0(Q.totalMessages),sub:q>0?"in range":void 0},{label:"Yelling (CAPS)",value:S0(Q.totalYelling),sub:SX(Q.totalYelling,q)},{label:"Profanity Hits",value:S0(Q.totalProfanity),sub:SX(Q.totalProfanity,q)},{label:"Anguish Signals",value:S0(Q.totalAnguish),sub:SX(Q.totalAnguish,q)},{label:"Friction Signals",value:S0(X.totalFrustration),sub:SX(X.totalFrustration,q)},{label:"Highest Friction Model",value:X.highestFrictionModel?.model??"—",sub:X.highestFrictionModel?`${S0(X.highestFrictionModel.score)} hits`:void 0}];return R0.jsxDEV("div",{className:"grid grid-cols-2 md:grid-cols-6 gap-4",children:N.map((K)=>R0.jsxDEV(q1,{className:"stats-behavior-summary-card py-3 px-4",children:[R0.jsxDEV("p",{className:"text-xs stats-text-muted mb-1 font-medium truncate",children:K.label},void 0,!1,void 0,this),R0.jsxDEV("p",{className:"text-lg font-bold stats-text-primary truncate",title:K.value,children:K.value},void 0,!1,void 0,this),K.sub&&R0.jsxDEV("p",{className:"text-xs stats-text-muted mt-0.5",children:K.sub},void 0,!1,void 0,this)]},K.label,!0,void 0,this))},void 0,!1,void 0,this)}var xK=[{value:"yelling",label:"CAPS",title:"Yelling (CAPS)"},{value:"profanity",label:"Profanity",title:"Profanity"},{value:"anguish",label:"Anguish",title:"Anguish (!!!, nooo, ugh, dude, ':(')"},{value:"negation",label:"Negation",title:"Negation (no/nope/wrong, makes no sense)"},{value:"repetition",label:"Repetition",title:"Repetition (i meant, still doesnt)"},{value:"blame",label:"Blame",title:"Blame (you didnt, why did you, stop X-ing)"},{value:"frustration",label:"Frustration",title:"Frustration (neg + rep + blame)"},{value:"total",label:"All",title:"All signals combined"}];function gP(Q){if(!Number.isFinite(Q))return"-";if(Q===0)return"0%";if(Math.abs(Q)<1)return`${Q.toFixed(1)}%`;return`${Q.toFixed(0)}%`}function hP(Q,J){if(J==="frustration")return Q.negation+Q.repetition+Q.blame;if(J==="total")return Q.yelling+Q.profanity+Q.anguish+Q.negation+Q.repetition+Q.blame;return Q[J]}function uP(Q,J){if(J<=0)return 0;return Q/J*100}function fD({behaviorSeries:Q}){let[J,X]=U5.useState(!1),[q,N]=U5.useState("total"),K=R5(),H=o1[K],F=U5.useMemo(()=>{if(J)return S$(Q,{rankWeight:(h)=>h.messages,initBucket:()=>({hits:0,messages:0}),accumulate:(h,p)=>{h.hits+=hP(p,q),h.messages+=p.messages},bucketToValue:(h)=>uP(h.hits,h.messages)});let D=xK.find((h)=>h.value===q)?.title??"Hits";return WX(Q,D,{initBucket:()=>({hits:0,messages:0}),accumulate:(h,p)=>{h.hits+=hP(p,q),h.messages+=p.messages},bucketToValue:(h)=>uP(h.hits,h.messages)})},[Q,J,q]),M=U5.useMemo(()=>{return s4({chartTheme:H,showLegend:J,defaultLabel:"Hits",formatValue:gP})},[H,J]),{sharedScaleBase:w,yScale:R}=U5.useMemo(()=>{return o4({chartTheme:H,formatY:gP})},[H]),_=U5.useMemo(()=>{return xK.find((D)=>D.value===q)?.title??""},[q]),P=U5.useMemo(()=>{if(!J)return null;return{labels:F.labels,datasets:p2(F,(D)=>E$(H1[D%H1.length]))}},[F,J]),I=U5.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:M,scales:{x:w,y:R}}},[M,w,R]),A=U5.useMemo(()=>{if(J)return null;return{labels:F.labels,datasets:p2(F,(D)=>$7(H1[D%H1.length]))}},[F,J]),V=U5.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:M,scales:{x:{...w,stacked:!0},y:{...R,stacked:!0}},layout:{padding:{top:8}}}},[M,w,R]),O=[{value:!1,label:"All Models"},{value:!0,label:"By Model"}];return R0.jsxDEV(q1,{title:"User Friction Signals",subtitle:`${_} as % of user messages per day`,actions:R0.jsxDEV("div",{className:"flex items-center gap-3 flex-wrap",children:[R0.jsxDEV(J7,{options:xK.map((D)=>({value:D.value,label:D.label,title:D.title})),value:q,onChange:N},void 0,!1,void 0,this),R0.jsxDEV(J7,{options:O,value:J,onChange:X},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:R0.jsxDEV("div",{className:"h-[300px]",children:F.labels.length===0?R0.jsxDEV("div",{className:"h-full flex items-center justify-center text-stats-muted text-sm",children:"No friction signal data available"},void 0,!1,void 0,this):J&&P?R0.jsxDEV(f5,{data:P,options:I},void 0,!1,void 0,this):A?R0.jsxDEV(d2,{data:A,options:V},void 0,!1,void 0,this):null},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var xP="2fr 0.9fr 0.8fr 0.8fr 0.8fr 0.9fr 0.8fr 140px 40px";function mP(Q){if(Q.totalMessages===0)return 0;return(Q.totalYelling+Q.totalProfanity+Q.totalAnguish+Q.totalNegation+Q.totalRepetition+Q.totalBlame)/Q.totalMessages}function v$(Q,J){if(J===0)return"-";let X=Q/J*100;if(X===0)return"0%";if(X<1)return`${X.toFixed(1)}%`;return`${X.toFixed(0)}%`}function yD({models:Q,behaviorSeries:J}){let[X,q]=U5.useState(null),N=R5(),K=o1[N],H=U5.useMemo(()=>hD(J),[J]),F=U5.useMemo(()=>{return[...Q].sort((M,w)=>{if(w.totalMessages!==M.totalMessages)return w.totalMessages-M.totalMessages;return mP(w)-mP(M)})},[Q]);return R0.jsxDEV(zX,{title:"Behavior Signals by Model",subtitle:"Rates are per user message",children:[R0.jsxDEV(_X,{gridTemplate:xP,columns:[{label:"Model"},{label:"Messages",align:"right"},{label:"CAPS %",align:"right"},{label:"Profanity %",align:"right"},{label:"Anguish %",align:"right"},{label:"Frustration %",align:"right"},{label:"Hits %",align:"right"},{label:"Trend",align:"center"}]},void 0,!1,void 0,this),R0.jsxDEV(LX,{children:[F.map((M,w)=>{let R=`${M.model}::${M.provider}`,_=H.get(R)?.data??[],P=H1[w%H1.length],I=X===R,A=M.totalNegation+M.totalRepetition+M.totalBlame,V=M.totalYelling+M.totalProfanity+M.totalAnguish+A;return R0.jsxDEV(TX,{gridTemplate:xP,isExpanded:I,onToggle:()=>q(I?null:R),cells:[R0.jsxDEV(PX,{model:M.model,provider:M.provider},"name",!1,void 0,this),R0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:S0(M.totalMessages)},"messages",!1,void 0,this),R0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:v$(M.totalYelling,M.totalMessages)},"caps",!1,void 0,this),R0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:v$(M.totalProfanity,M.totalMessages)},"profanity",!1,void 0,this),R0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:v$(M.totalAnguish,M.totalMessages)},"anguish",!1,void 0,this),R0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:v$(A,M.totalMessages)},"frustration",!1,void 0,this),R0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:v$(V,M.totalMessages)},"hits",!1,void 0,this)],trendCell:_.length===0?R0.jsxDEV(CX,{},void 0,!1,void 0,this):R0.jsxDEV(wX,{timestamps:_.map((O)=>O.timestamp),values:_.map((O)=>O.total),color:P},void 0,!1,void 0,this),expandedContent:R0.jsxDEV("div",{className:"grid gap-4",style:{gridTemplateColumns:"220px 1fr"},children:[R0.jsxDEV("div",{className:"space-y-4 text-sm",children:[R0.jsxDEV(G7,{label:"Yelling (CAPS)",total:M.totalYelling,messages:M.totalMessages,valueClass:"text-[#ed4abf]"},void 0,!1,void 0,this),R0.jsxDEV(G7,{label:"Profanity",total:M.totalProfanity,messages:M.totalMessages,valueClass:"text-[#ff6b7d]"},void 0,!1,void 0,this),R0.jsxDEV(G7,{label:"Anguish (!!!, nooo, dude, ..)",total:M.totalAnguish,messages:M.totalMessages,valueClass:"text-[#9b4dff]"},void 0,!1,void 0,this),R0.jsxDEV(G7,{label:"Negation (no/nope/wrong)",total:M.totalNegation,messages:M.totalMessages,valueClass:"text-[#5ad8e6]"},void 0,!1,void 0,this),R0.jsxDEV(G7,{label:"Repetition (i meant, still doesnt)",total:M.totalRepetition,messages:M.totalMessages,valueClass:"text-[#5ad8e6]"},void 0,!1,void 0,this),R0.jsxDEV(G7,{label:"Blame (you didnt, stop X-ing)",total:M.totalBlame,messages:M.totalMessages,valueClass:"text-[#5ad8e6]"},void 0,!1,void 0,this),R0.jsxDEV(G7,{label:"Avg chars / msg",total:M.totalChars,messages:M.totalMessages,valueClass:"stats-text-secondary",mode:"average"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),R0.jsxDEV("div",{className:"h-[200px]",children:_.length===0?R0.jsxDEV(IX,{},void 0,!1,void 0,this):R0.jsxDEV(gD,{data:_,chartTheme:K},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},R,!1,void 0,this)}),F.length===0?R0.jsxDEV("div",{className:"border-t border-[var(--border-subtle)] px-5 py-8 text-center text-[var(--text-muted)] text-sm",children:"No user behavior recorded for this range yet."},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function G7({label:Q,total:J,messages:X,valueClass:q,mode:N="rate"}){let K=N==="rate"?"% of msgs":"Per msg",H=U5.useMemo(()=>{if(X===0)return"-";return N==="rate"?v$(J,X):(J/X).toFixed(0)},[J,X,N]);return R0.jsxDEV("div",{children:[R0.jsxDEV("div",{className:"text-[var(--text-primary)] font-medium mb-1",children:Q},void 0,!1,void 0,this),R0.jsxDEV("div",{className:"space-y-0.5 text-[var(--text-secondary)]",children:[R0.jsxDEV("div",{className:"flex items-center justify-between",children:[R0.jsxDEV("span",{className:"stats-text-muted text-xs",children:"Total"},void 0,!1,void 0,this),R0.jsxDEV("span",{className:`font-mono text-xs ${q}`,children:S0(J)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),R0.jsxDEV("div",{className:"flex items-center justify-between",children:[R0.jsxDEV("span",{className:"stats-text-muted text-xs",children:K},void 0,!1,void 0,this),R0.jsxDEV("span",{className:"font-mono text-xs stats-text-primary",children:H},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var jX={yelling:"#ed4abf",profanity:"#ff6b7d",anguish:"#9b4dff",frustration:"#5ad8e6"};function gD({data:Q,chartTheme:J}){let X=U5.useMemo(()=>{return{labels:Q.map((N)=>F4(new Date(N.timestamp),"MMM d")),datasets:[{label:"CAPS",data:Q.map((N)=>N.yelling),...y8(jX.yelling)},{label:"Profanity",data:Q.map((N)=>N.profanity),...y8(jX.profanity)},{label:"Anguish",data:Q.map((N)=>N.anguish),...y8(jX.anguish)},{label:"Frustration",data:Q.map((N)=>N.frustration),...y8(jX.frustration)}]}},[Q]),q=U5.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,plugins:RX(J),scales:TP(J)}},[J]);return R0.jsxDEV(f5,{data:X,options:q},void 0,!1,void 0,this)}function hD(Q){if(Q.length===0)return new Map;let J=[...new Set(Q.map((N)=>N.timestamp))].sort((N,K)=>N-K),X=new Map;for(let N of Q){let K=`${N.model}::${N.provider}`,H=X.get(K);if(!H)H=new Map,X.set(K,H);let F=H.get(N.timestamp)??{timestamp:N.timestamp,yelling:0,profanity:0,anguish:0,frustration:0,total:0};F.yelling+=N.yelling,F.profanity+=N.profanity,F.anguish+=N.anguish,F.frustration+=N.negation+N.repetition+N.blame,F.total=F.yelling+F.profanity+F.anguish+F.frustration,H.set(N.timestamp,F)}let q=new Map;for(let[N,K]of X){let H=J.map((F)=>K.get(F)??{timestamp:F,yelling:0,profanity:0,anguish:0,frustration:0,total:0});q.set(N,{data:H})}return q}var t6=n(T1(),1);var K5=n(U0(),1);function pP({active:Q,range:J,refreshTrigger:X}){let{data:q,error:N,loading:K}=a1(["costs",J,X],(H)=>FL(J,H),{pollMs:30000,enabled:Q});return K5.jsxDEV("div",{className:"stats-route-container space-y-6",children:K5.jsxDEV(g1,{loading:K,error:N,data:q,children:q&&K5.jsxDEV(K5.Fragment,{children:[K5.jsxDEV(uD,{costSeries:q.costSeries},void 0,!1,void 0,this),K5.jsxDEV(dD,{costSeries:q.costSeries},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 uD({costSeries:Q}){let J=t6.useMemo(()=>AP(Q),[Q]),X=[{label:"Total Cost",value:R1(J.totalCost)},{label:"Average / Day",value:R1(J.avgDailyCost)},{label:"Top Model",value:J.topModelName||"—",sub:J.topModelName?R1(J.topModelCost):void 0}];return K5.jsxDEV("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:X.map((q)=>K5.jsxDEV(q1,{className:"stats-cost-overview-card py-4 px-5",children:[K5.jsxDEV("p",{className:"text-xs stats-text-muted mb-1 font-medium uppercase tracking-wider",children:q.label},void 0,!1,void 0,this),K5.jsxDEV("p",{className:"text-2xl font-bold stats-text-primary truncate",title:q.value,children:q.value},void 0,!1,void 0,this),q.sub&&K5.jsxDEV("p",{className:"text-xs stats-text-muted mt-1 font-medium",children:["Total spent: ",q.sub]},void 0,!0,void 0,this)]},q.label,!0,void 0,this))},void 0,!1,void 0,this)}var xD={dark:"rgba(248, 250, 252, 0.7)",light:"rgba(15, 23, 42, 0.6)"};function mD(Q){return{id:"costBarLabels",afterDatasetsDraw(J){let{ctx:X}=J;if(!J.data.datasets[0])return;let N=J.getDatasetMeta(0);X.save(),X.font="11px system-ui, sans-serif",X.fillStyle=Q,X.textAlign="center",X.textBaseline="bottom";for(let K of N.data){let H=K.$context.parsed.y;if(!H)continue;let F=`$${Math.round(H)}`,{x:M,y:w}=K.getProps(["x","y"],!0);X.fillText(F,M,w-3)}X.restore()}}}function dD({costSeries:Q}){let[J,X]=t6.useState(!1),q=R5(),N=o1[q],K=t6.useMemo(()=>{if(J)return S$(Q,{rankWeight:(V)=>V.cost,initBucket:()=>({total:0}),accumulate:(V,O)=>{V.total+=O.cost},bucketToValue:(V)=>V.total});return WX(Q,"Cost",{initBucket:()=>({total:0}),accumulate:(V,O)=>{V.total+=O.cost},bucketToValue:(V)=>V.total})},[Q,J]),H=t6.useMemo(()=>{return s4({chartTheme:N,showLegend:J,defaultLabel:"Cost",formatValue:(V)=>`$${V.toFixed(2)}`,footer:(V)=>{if(!J||V.length<2)return;return`Total: $${V.reduce((D,h)=>D+(h.parsed.y??0),0).toFixed(2)}`}})},[N,J]),{sharedScaleBase:F,yScale:M}=t6.useMemo(()=>{return o4({chartTheme:N,formatY:(V)=>`$${Math.round(V)}`})},[N]),w=t6.useMemo(()=>{return mD(xD[q])},[q]),R=t6.useMemo(()=>{if(!J)return null;return{labels:K.labels,datasets:p2(K,(V)=>E$(H1[V%H1.length]))}},[K,J]),_=t6.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:H,scales:{x:F,y:M}}},[H,F,M]),P=t6.useMemo(()=>{if(J)return null;return{labels:K.labels,datasets:p2(K,(V)=>$7(H1[V%H1.length]))}},[K,J]),I=t6.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{...H,costBarLabels:{}},scales:{x:{...F,stacked:!0},y:{...M,stacked:!0}},layout:{padding:{top:24}}}},[H,F,M]);return K5.jsxDEV(q1,{title:"Daily Cost",subtitle:"API spending over time",actions:K5.jsxDEV(J7,{options:[{value:!1,label:"All Models"},{value:!0,label:"By Model"}],value:J,onChange:X},void 0,!1,void 0,this),children:K5.jsxDEV("div",{className:"h-[300px]",children:K.labels.length===0?K5.jsxDEV("div",{className:"h-full flex items-center justify-center text-stats-muted text-sm",children:"No cost data available"},void 0,!1,void 0,this):J&&R?K5.jsxDEV(f5,{data:R,options:_},void 0,!1,void 0,this):P?K5.jsxDEV(d2,{data:P,options:I,plugins:[w]},void 0,!1,void 0,this):null},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var cP=n(T1(),1);var D1=n(U0(),1);function lP({active:Q,range:J,refreshTrigger:X,onRequestClick:q}){let{data:N,error:K,loading:H}=a1(["recent-errors-dense",J,X],(w)=>ML(J,50,w),{pollMs:30000,enabled:Q}),F=cP.useMemo(()=>[{key:"model",header:"Model",render:(w)=>D1.jsxDEV("div",{children:[D1.jsxDEV("div",{className:"stats-font-medium stats-text-primary",children:w.model},void 0,!1,void 0,this),D1.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:w.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"timestamp",header:"Time",render:(w)=>Y6(w.timestamp)},{key:"errorMessage",header:"Error Message",render:(w)=>D1.jsxDEV("div",{className:"stats-text-xs stats-text-danger stats-truncate stats-max-w-md stats-font-mono",title:w.errorMessage||"",children:w.errorMessage||"Unknown error"},void 0,!1,void 0,this)},{key:"tokens",header:"Tokens",numeric:!0,render:(w)=>S0(w.usage.totalTokens)},{key:"cost",header:"Cost",numeric:!0,render:(w)=>R1(w.usage.cost.total,4)}],[]);return D1.jsxDEV("div",{className:"stats-route-container",children:D1.jsxDEV(q1,{title:"Recent Errors",subtitle:"Up to 50 most recent failed requests in the stats database",children:D1.jsxDEV(g1,{loading:H,error:K,data:N,emptyText:"No recent failures in the local stats database",children:D1.jsxDEV(K6,{columns:F,data:N||[],keyExtractor:(w)=>w.id||`${w.sessionFile}-${w.entryId}`,onRowClick:(w)=>w.id&&q(w.id),renderMobileCard:(w,R)=>D1.jsxDEV("div",{className:"stats-mobile-card stats-border-danger",onClick:R,children:[D1.jsxDEV("div",{className:"stats-mobile-card-header",children:[D1.jsxDEV("div",{children:[D1.jsxDEV("div",{className:"stats-font-semibold stats-text-primary",children:w.model},void 0,!1,void 0,this),D1.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:w.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),D1.jsxDEV(V5,{variant:"danger",children:"Failed"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),D1.jsxDEV("div",{className:"stats-mobile-card-grid",children:[D1.jsxDEV("div",{children:[D1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Time"},void 0,!1,void 0,this),D1.jsxDEV("div",{className:"stats-mobile-card-value",children:Y6(w.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),D1.jsxDEV("div",{children:[D1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Cost"},void 0,!1,void 0,this),D1.jsxDEV("div",{className:"stats-mobile-card-value",children:R1(w.usage.cost.total,4)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),D1.jsxDEV("div",{children:[D1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Tokens"},void 0,!1,void 0,this),D1.jsxDEV("div",{className:"stats-mobile-card-value",children:S0(w.usage.totalTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),w.errorMessage&&D1.jsxDEV("div",{className:"stats-mobile-card-error mt-2 stats-font-mono",children:w.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this),emptyText:"No recent failures in the local stats database"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var DX=n(T1(),1);var O0=n(U0(),1);function rP({active:Q,range:J,refreshTrigger:X}){let[q,N]=DX.useState(null),{data:K,error:H,loading:F}=a1(["gain",J,X,q],(M)=>_L(J,q,M),{pollMs:30000,enabled:Q});return O0.jsxDEV("div",{className:"stats-route-container space-y-6",children:O0.jsxDEV(g1,{loading:F,error:H,data:K,children:K&&O0.jsxDEV(O0.Fragment,{children:[O0.jsxDEV(pD,{projects:K.projects,selected:q,onChange:N},void 0,!1,void 0,this),O0.jsxDEV(cD,{overall:K.overall},void 0,!1,void 0,this),O0.jsxDEV(rD,{bySource:K.bySource},void 0,!1,void 0,this),O0.jsxDEV(sD,{timeSeries:K.timeSeries},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 pD({projects:Q,selected:J,onChange:X}){if(Q.length===0)return null;return O0.jsxDEV("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[O0.jsxDEV("span",{className:"stats-text-secondary",style:{fontSize:"0.875rem",whiteSpace:"nowrap"},children:"Project"},void 0,!1,void 0,this),O0.jsxDEV("select",{className:"stats-select",value:J??"",onChange:(q)=>X(q.target.value||null),style:{maxWidth:"480px",flex:1},children:[O0.jsxDEV("option",{value:"",children:"All projects"},void 0,!1,void 0,this),Q.map((q)=>O0.jsxDEV("option",{value:q,children:q},q,!1,void 0,this))]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function cD({overall:Q}){return O0.jsxDEV(q1,{title:"Overall Gain",subtitle:"Aggregate snapcompact savings",children:O0.jsxDEV("div",{className:"stats-metric-primary-grid",children:[O0.jsxDEV("div",{className:"stats-metric-card primary",children:[O0.jsxDEV("div",{className:"stats-metric-label",children:"Saved Tokens"},void 0,!1,void 0,this),O0.jsxDEV("div",{className:"stats-metric-value",children:N1(Q.savedTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),O0.jsxDEV("div",{className:"stats-metric-card primary",children:[O0.jsxDEV("div",{className:"stats-metric-label",children:"Saved Bytes"},void 0,!1,void 0,this),O0.jsxDEV("div",{className:"stats-metric-value",children:gK(Q.savedBytes)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),O0.jsxDEV("div",{className:"stats-metric-card primary",children:[O0.jsxDEV("div",{className:"stats-metric-label",children:"Reduction"},void 0,!1,void 0,this),O0.jsxDEV("div",{className:"stats-metric-value",children:Q.reductionPercent!==null?d1(Q.reductionPercent):"—"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),O0.jsxDEV("div",{className:"stats-metric-card primary",children:[O0.jsxDEV("div",{className:"stats-metric-label",children:"Total Hits"},void 0,!1,void 0,this),O0.jsxDEV("div",{className:"stats-metric-value",children:S0(Q.hits)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function lD({title:Q,totals:J}){return O0.jsxDEV("div",{className:"stats-metric-card secondary",style:{flex:1},children:[O0.jsxDEV("div",{className:"stats-metric-label",style:{fontWeight:600,marginBottom:8},children:Q},void 0,!1,void 0,this),O0.jsxDEV("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:8},children:[O0.jsxDEV("div",{children:[O0.jsxDEV("div",{className:"stats-metric-label",children:"Saved Tokens"},void 0,!1,void 0,this),O0.jsxDEV("div",{className:"stats-metric-value",style:{fontSize:"1rem"},children:N1(J.savedTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),O0.jsxDEV("div",{children:[O0.jsxDEV("div",{className:"stats-metric-label",children:"Saved Bytes"},void 0,!1,void 0,this),O0.jsxDEV("div",{className:"stats-metric-value",style:{fontSize:"1rem"},children:gK(J.savedBytes)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),O0.jsxDEV("div",{children:[O0.jsxDEV("div",{className:"stats-metric-label",children:"Hits"},void 0,!1,void 0,this),O0.jsxDEV("div",{className:"stats-metric-value",style:{fontSize:"1rem"},children:S0(J.hits)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),O0.jsxDEV("div",{children:[O0.jsxDEV("div",{className:"stats-metric-label",children:"Reduction"},void 0,!1,void 0,this),O0.jsxDEV("div",{className:"stats-metric-value",style:{fontSize:"1rem"},children:J.reductionPercent!==null?d1(J.reductionPercent):"—"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function rD({bySource:Q}){return O0.jsxDEV(q1,{title:"By Source",subtitle:"Savings breakdown per subsystem",children:O0.jsxDEV("div",{style:{display:"flex",gap:16,flexWrap:"wrap"},children:O0.jsxDEV(lD,{title:"Snapcompact",totals:Q.snapcompact},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var nD={snapcompact:"rgb(34, 197, 94)"};function sD({timeSeries:Q}){let J=R5(),X=o1[J],{data:q,options:N}=DX.useMemo(()=>{let K=new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric",timeZone:"UTC"}),F={labels:Q.map((_)=>K.format(new Date(`${_.date}T00:00:00.000Z`))),datasets:[{label:"Snapcompact",data:Q.map((_)=>_.snapcompact),...E$(nD.snapcompact)}]},{sharedScaleBase:M,yScale:w}=o4({chartTheme:X,formatY:(_)=>N1(_)}),R={responsive:!0,maintainAspectRatio:!1,plugins:s4({chartTheme:X,showLegend:!0,defaultLabel:"Tokens Saved",formatValue:N1}),scales:{x:{...M,stacked:!0},y:{...w,stacked:!0}}};return{data:F,options:R}},[Q,X]);return O0.jsxDEV(q1,{title:"Savings Over Time",subtitle:"Daily token savings",children:O0.jsxDEV("div",{style:{height:240},children:Q.length===0?O0.jsxDEV("div",{className:"stats-table-empty",children:"No time series data yet"},void 0,!1,void 0,this):O0.jsxDEV(f5,{data:q,options:N},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var i4=n(T1(),1);var j0=n(U0(),1);function sP({active:Q,range:J,refreshTrigger:X}){let{data:q,error:N,loading:K}=a1(["models",J,X],(H)=>HL(J,H),{pollMs:30000,enabled:Q});return j0.jsxDEV("div",{className:"stats-route-container space-y-6",children:j0.jsxDEV(g1,{loading:K,error:N,data:q,children:q&&j0.jsxDEV(j0.Fragment,{children:[j0.jsxDEV(oD,{modelSeries:q.modelSeries,timeRange:J},void 0,!1,void 0,this),j0.jsxDEV(iD,{models:q.byModel,performanceSeries:q.modelPerformanceSeries,timeRange:J},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 oD({modelSeries:Q,timeRange:J}){let X=R5(),q=o1[X],N=Z7(J),K=i4.useMemo(()=>aD(Q),[Q]),H=i4.useMemo(()=>{return{labels:K.data.map((M)=>NJ(M.timestamp,J)),datasets:K.series.map((M,w)=>({label:M,data:K.data.map((R)=>R[M]??0),borderColor:H1[w%H1.length],backgroundColor:`${H1[w%H1.length]}20`,fill:!0,tension:0.4,pointRadius:0,pointHoverRadius:4,borderWidth:2}))}},[K,J]),F=i4.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{legend:{position:"top",align:"start",labels:{color:q.legendLabel,usePointStyle:!0,padding:16,font:{size:12},boxWidth:8}},tooltip:{backgroundColor:q.tooltipBackground,titleColor:q.tooltipTitle,bodyColor:q.tooltipBody,borderColor:q.tooltipBorder,borderWidth:1,padding:12,cornerRadius:8,callbacks:{label:(M)=>{let w=M.dataset.label??"",R=M.parsed.y;return`${w}: ${(R??0).toFixed(1)}%`}}}},scales:{x:{grid:{color:q.grid,drawBorder:!1},ticks:{color:q.tick,font:{size:11}}},y:{grid:{color:q.grid,drawBorder:!1},ticks:{color:q.tick,font:{size:11},callback:(M)=>`${M}%`},min:0,max:100}}}},[q]);return j0.jsxDEV(q1,{title:"Model Preference",subtitle:`Share of requests over ${N.windowLabel}`,children:j0.jsxDEV("div",{className:"h-[280px]",children:K.data.length===0?j0.jsxDEV("div",{className:"h-full flex items-center justify-center text-stats-muted text-sm",children:"No data available"},void 0,!1,void 0,this):j0.jsxDEV(f5,{data:H,options:F},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function aD(Q,J=5){if(Q.length===0)return{data:[],series:[]};let X=new Map;for(let _ of Q){let P=`${_.model}::${_.provider}`,I=X.get(P);if(I)I.total+=_.requests;else X.set(P,{model:_.model,provider:_.provider,total:_.requests})}let N=[...X.entries()].map(([_,P])=>({key:_,...P})).sort((_,P)=>P.total-_.total).slice(0,J),K=new Set(N.map((_)=>_.key)),H=new Map;for(let _ of N)H.set(_.model,(H.get(_.model)??0)+1);let F=new Map;for(let _ of N){let P=(H.get(_.model)??0)>1;F.set(_.key,P?`${_.model} (${_.provider})`:_.model)}let M=new Map;for(let _ of Q){let P=`${_.model}::${_.provider}`,I=M.get(_.timestamp)??{timestamp:_.timestamp,total:0};I.total+=_.requests;let A=K.has(P)?F.get(P)??_.model:"Other";I[A]=(I[A]??0)+_.requests,M.set(_.timestamp,I)}let w=N.map((_)=>F.get(_.key)??_.model);if([...M.values()].some((_)=>(_.Other??0)>0))w.push("Other");return{data:[...M.values()].sort((_,P)=>(_.timestamp??0)-(P.timestamp??0)).map((_)=>{let P=_.total??0;for(let I of w)_[I]=P>0?(_[I]??0)/P*100:0;return _}),series:w}}var nP="2fr 0.9fr 0.9fr 1fr 0.8fr 0.8fr 140px 40px";function iD({models:Q,performanceSeries:J,timeRange:X}){let[q,N]=i4.useState(null),K=Z7(X),H=i4.useMemo(()=>EP(J,X),[J,X]),F=R5(),M=o1[F],w=i4.useMemo(()=>{return[...Q].sort((R,_)=>_.totalInputTokens+_.totalOutputTokens-(R.totalInputTokens+R.totalOutputTokens))},[Q]);return j0.jsxDEV(zX,{title:"Model Statistics",children:[j0.jsxDEV(_X,{gridTemplate:nP,columns:[{label:"Model"},{label:"Requests",align:"right"},{label:"Cost",align:"right"},{label:"Tokens",align:"right"},{label:"Tokens/s",align:"right"},{label:"TTFT",align:"right"},{label:K.trendLabel,align:"center"}]},void 0,!1,void 0,this),j0.jsxDEV(LX,{children:w.map((R,_)=>{let P=`${R.model}::${R.provider}`,A=H.get(P)?.data??[],V=H1[_%H1.length],O=q===P,D=R.errorRate*100;return j0.jsxDEV(TX,{gridTemplate:nP,isExpanded:O,onToggle:()=>N(O?null:P),cells:[j0.jsxDEV(PX,{model:R.model,provider:R.provider},"name",!1,void 0,this),j0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:R.totalRequests.toLocaleString()},"requests",!1,void 0,this),j0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:["$",R.totalCost.toFixed(2)]},"cost",!0,void 0,this),j0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:(R.totalInputTokens+R.totalOutputTokens).toLocaleString()},"tokens",!1,void 0,this),j0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:R.avgTokensPerSecond?.toFixed(1)??"-"},"tps",!1,void 0,this),j0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:R.avgTtft?`${(R.avgTtft/1000).toFixed(2)}s`:"-"},"ttft",!1,void 0,this)],trendCell:A.length===0?j0.jsxDEV(CX,{},void 0,!1,void 0,this):j0.jsxDEV(wX,{timestamps:A.map((h)=>h.timestamp),values:A.map((h)=>h.avgTokensPerSecond??0),color:V},void 0,!1,void 0,this),expandedContent:j0.jsxDEV("div",{className:"grid gap-4",style:{gridTemplateColumns:"200px 1fr"},children:[j0.jsxDEV("div",{className:"space-y-4 text-sm",children:[j0.jsxDEV("div",{children:[j0.jsxDEV("div",{className:"text-[var(--text-primary)] font-medium mb-2",children:"Quality"},void 0,!1,void 0,this),j0.jsxDEV("div",{className:"space-y-1 text-[var(--text-secondary)]",children:[j0.jsxDEV("div",{className:"flex items-center justify-between",children:[j0.jsxDEV("span",{children:"Error rate"},void 0,!1,void 0,this),j0.jsxDEV("span",{className:D>5?"text-[var(--accent-red)]":"text-[var(--accent-green)]",children:[D.toFixed(1),"%"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),j0.jsxDEV("div",{className:"flex items-center justify-between",children:[j0.jsxDEV("span",{children:"Cache rate"},void 0,!1,void 0,this),j0.jsxDEV("span",{className:"text-[var(--accent-cyan)]",children:[(R.cacheRate*100).toFixed(1),"%"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),j0.jsxDEV("div",{children:[j0.jsxDEV("div",{className:"text-[var(--text-primary)] font-medium mb-2",children:"Latency"},void 0,!1,void 0,this),j0.jsxDEV("div",{className:"space-y-1 text-[var(--text-secondary)]",children:[j0.jsxDEV("div",{className:"flex items-center justify-between",children:[j0.jsxDEV("span",{children:"Avg duration"},void 0,!1,void 0,this),j0.jsxDEV("span",{className:"font-mono",children:R.avgDuration?`${(R.avgDuration/1000).toFixed(2)}s`:"-"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),j0.jsxDEV("div",{className:"flex items-center justify-between",children:[j0.jsxDEV("span",{children:"Avg TTFT"},void 0,!1,void 0,this),j0.jsxDEV("span",{className:"font-mono",children:R.avgTtft?`${(R.avgTtft/1000).toFixed(2)}s`:"-"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),j0.jsxDEV("div",{className:"h-[200px]",children:A.length===0?j0.jsxDEV(IX,{},void 0,!1,void 0,this):j0.jsxDEV(tD,{data:A,color:V,chartTheme:M,timeRange:X},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},P,!1,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function tD({data:Q,color:J,chartTheme:X,timeRange:q}){let N=i4.useMemo(()=>{return{labels:Q.map((H)=>NJ(H.timestamp,q)),datasets:[{label:"TTFT",data:Q.map((H)=>H.avgTtftSeconds??null),...y8("#5ad8e6"),yAxisID:"y"},{label:"Tokens/s",data:Q.map((H)=>H.avgTokensPerSecond??null),...y8(J),yAxisID:"y1"}]}},[Q,J,q]),K=i4.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,plugins:RX(X),scales:CP(X)}},[X]);return j0.jsxDEV(f5,{data:N,options:K},void 0,!1,void 0,this)}var UJ=n(T1(),1);var oP=n(T1(),1);var B6=n(U0(),1),vX={main:{label:"Main agent",color:"#ed4abf"},subagent:{label:"Subagents",color:"#9b4dff"},advisor:{label:"Advisor",color:"#5ad8e6"}};function aP({stats:Q}){let J=oP.useMemo(()=>VP(Q),[Q]);if(J.totalTokens===0)return B6.jsxDEV("div",{className:"py-8 text-center stats-text-muted text-sm",children:"No token usage in this range"},void 0,!1,void 0,this);return B6.jsxDEV("div",{className:"space-y-4",children:[B6.jsxDEV("div",{className:"flex h-3 w-full overflow-hidden rounded-full",style:{background:"var(--surface-2)"},children:J.segments.map((X)=>X.share>0&&B6.jsxDEV("div",{className:"h-full",style:{width:`${X.share*100}%`,background:vX[X.agentType].color},title:`${vX[X.agentType].label}: ${d1(X.share)}`},X.agentType,!1,void 0,this))},void 0,!1,void 0,this),B6.jsxDEV("div",{className:"space-y-2",children:J.segments.map((X)=>B6.jsxDEV("div",{className:"flex items-center justify-between gap-3 text-sm",children:[B6.jsxDEV("div",{className:"flex items-center gap-2 min-w-0",children:[B6.jsxDEV("span",{className:"w-2.5 h-2.5 rounded-full flex-shrink-0",style:{background:vX[X.agentType].color}},void 0,!1,void 0,this),B6.jsxDEV("span",{className:"stats-text-primary truncate",children:vX[X.agentType].label},void 0,!1,void 0,this),B6.jsxDEV("span",{className:"stats-text-muted stats-text-xs whitespace-nowrap",children:[S0(X.requests)," req"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),B6.jsxDEV("div",{className:"flex items-center gap-3 whitespace-nowrap",children:[B6.jsxDEV("span",{className:"stats-text-secondary",children:[N1(X.tokens)," tok"]},void 0,!0,void 0,this),B6.jsxDEV("span",{className:"stats-font-semibold stats-text-primary tabular-nums",children:d1(X.share)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},X.agentType,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var K0=n(U0(),1);function iP({active:Q,range:J,refreshTrigger:X,onRequestClick:q}){let{data:N,error:K,loading:H}=a1(["overview",J,X],(D)=>BL(J,D),{pollMs:30000,enabled:Q}),{data:F,error:M,loading:w}=a1(["recent-requests",X],(D)=>UX(50,D),{pollMs:30000,enabled:Q}),R=R5(),_=o1[R],P=UJ.useMemo(()=>{if(!N?.timeSeries)return{labels:[],datasets:[]};let D=N.timeSeries.map((p)=>F4(new Date(p.timestamp),J==="1h"||J==="24h"?"HH:mm":"MMM d")),h=N.timeSeries.length<=2?3:0;return{labels:D,datasets:[{label:"Requests",data:N.timeSeries.map((p)=>p.requests),borderColor:"#5ad8e6",backgroundColor:"rgba(90, 216, 230, 0.12)",tension:0.2,borderWidth:2,pointRadius:h,pointHoverRadius:4,fill:!0},{label:"Errors",data:N.timeSeries.map((p)=>p.errors),borderColor:"#ff6b7d",backgroundColor:"rgba(255, 107, 125, 0.12)",tension:0.2,borderWidth:2,pointRadius:h,pointHoverRadius:4,fill:!0}]}},[N?.timeSeries,J]),I=UJ.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{legend:{display:!0,position:"top",align:"end",labels:{color:_.legendLabel,boxWidth:8,usePointStyle:!0,font:{size:11}}},tooltip:{backgroundColor:_.tooltipBackground,titleColor:_.tooltipTitle,bodyColor:_.tooltipBody,borderColor:_.tooltipBorder,borderWidth:1,cornerRadius:8,padding:10}},scales:{x:{grid:{color:_.grid,drawBorder:!1},ticks:{color:_.tick,font:{size:10}}},y:{grid:{color:_.grid,drawBorder:!1},ticks:{color:_.tick,font:{size:10}},min:0}}}},[_]),A=UJ.useMemo(()=>[{key:"model",header:"Model",render:(D)=>K0.jsxDEV("div",{children:[K0.jsxDEV("div",{className:"stats-font-medium stats-text-primary",children:D.model},void 0,!1,void 0,this),K0.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:D.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"timestamp",header:"Time",render:(D)=>Y6(D.timestamp)},{key:"tokens",header:"Tokens",numeric:!0,render:(D)=>S0(D.usage.totalTokens)},{key:"cost",header:"Cost",numeric:!0,render:(D)=>R1(D.usage.cost.total,4)},{key:"duration",header:"Duration",numeric:!0,render:(D)=>y5(D.duration)},{key:"status",header:"Status",className:"stats-text-center",render:(D)=>K0.jsxDEV(V5,{variant:D.errorMessage?"danger":"success",children:D.errorMessage?"Failed":"Success"},void 0,!1,void 0,this)}],[]),V=(D,h)=>K0.jsxDEV("div",{className:"stats-mobile-card",onClick:h,children:[K0.jsxDEV("div",{className:"stats-mobile-card-header",children:[K0.jsxDEV("div",{children:[K0.jsxDEV("div",{className:"stats-font-semibold stats-text-primary",children:D.model},void 0,!1,void 0,this),K0.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:D.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K0.jsxDEV(V5,{variant:D.errorMessage?"danger":"success",children:D.errorMessage?"Failed":"Success"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K0.jsxDEV("div",{className:"stats-mobile-card-grid",children:[K0.jsxDEV("div",{children:[K0.jsxDEV("div",{className:"stats-mobile-card-label",children:"Time"},void 0,!1,void 0,this),K0.jsxDEV("div",{className:"stats-mobile-card-value",children:Y6(D.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K0.jsxDEV("div",{children:[K0.jsxDEV("div",{className:"stats-mobile-card-label",children:"Cost"},void 0,!1,void 0,this),K0.jsxDEV("div",{className:"stats-mobile-card-value",children:R1(D.usage.cost.total,4)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K0.jsxDEV("div",{children:[K0.jsxDEV("div",{className:"stats-mobile-card-label",children:"Tokens"},void 0,!1,void 0,this),K0.jsxDEV("div",{className:"stats-mobile-card-value",children:S0(D.usage.totalTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K0.jsxDEV("div",{children:[K0.jsxDEV("div",{className:"stats-mobile-card-label",children:"Duration"},void 0,!1,void 0,this),K0.jsxDEV("div",{className:"stats-mobile-card-value",children:y5(D.duration)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),D.errorMessage&&K0.jsxDEV("div",{className:"stats-mobile-card-error truncate mt-2",children:D.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this),O=UJ.useMemo(()=>{if(!F)return[];return F.slice(0,10)},[F]);return K0.jsxDEV("div",{className:"stats-route-container space-y-6",children:[K0.jsxDEV(g1,{loading:H,error:K,data:N,children:N&&K0.jsxDEV(kP,{stats:N.overall},void 0,!1,void 0,this)},void 0,!1,void 0,this),K0.jsxDEV(q1,{title:"Conversation Tokens by Agent",subtitle:"Uncached input + cache reads + cache writes + output, grouped by agent type",children:K0.jsxDEV(g1,{loading:H,error:K,data:N,children:N&&K0.jsxDEV(aP,{stats:N.byAgentType},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),K0.jsxDEV("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[K0.jsxDEV("div",{className:"lg:col-span-2",children:K0.jsxDEV(q1,{title:"System Throughput",subtitle:"Request volume and errors over time",children:K0.jsxDEV(g1,{loading:H,error:K,data:N,children:K0.jsxDEV("div",{className:"h-[280px]",children:N?.timeSeries&&N.timeSeries.length>0?K0.jsxDEV(f5,{data:P,options:I},void 0,!1,void 0,this):K0.jsxDEV("div",{className:"h-full flex items-center justify-center text-stats-muted text-sm",children:"No time-series data available"},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,!1,void 0,this),K0.jsxDEV("div",{children:K0.jsxDEV(q1,{title:"Operational Feed",subtitle:"Real-time request log",children:K0.jsxDEV(g1,{loading:w,error:M,data:F,fallback:K0.jsxDEV("div",{className:"space-y-4",children:Array.from({length:5}).map((D,h)=>K0.jsxDEV("div",{className:"flex items-center gap-3",children:[K0.jsxDEV(N6,{variant:"circle",width:10,height:10},void 0,!1,void 0,this),K0.jsxDEV("div",{className:"flex-1",children:[K0.jsxDEV(N6,{variant:"text",width:"60%",height:16},void 0,!1,void 0,this),K0.jsxDEV(N6,{variant:"text",width:"40%",height:12},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},h,!0,void 0,this))},void 0,!1,void 0,this),children:K0.jsxDEV("div",{className:"stats-feed-ledger overflow-y-auto max-h-[280px] pr-2",children:[O.map((D)=>{let h=!!D.errorMessage;return K0.jsxDEV("div",{className:"stats-feed-item flex items-start gap-3 p-2 rounded hover:bg-stats-surface-2 cursor-pointer transition-colors",onClick:()=>D.id&&q(D.id),children:[K0.jsxDEV("div",{className:`w-2 h-2 mt-1.5 rounded-full flex-shrink-0 ${h?"bg-stats-danger":"bg-stats-success"}`},void 0,!1,void 0,this),K0.jsxDEV("div",{className:"flex-1 min-w-0",children:[K0.jsxDEV("div",{className:"flex justify-between items-baseline gap-2",children:[K0.jsxDEV("div",{className:"stats-font-medium stats-text-primary text-sm truncate",children:D.model},void 0,!1,void 0,this),K0.jsxDEV("div",{className:"stats-text-xs stats-text-muted whitespace-nowrap",children:Y6(D.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K0.jsxDEV("div",{className:"flex justify-between items-center text-xs stats-text-muted mt-0.5",children:[K0.jsxDEV("div",{children:D.provider},void 0,!1,void 0,this),K0.jsxDEV("div",{children:[D.duration?y5(D.duration):""," ",D.usage?.cost?.total?`· ${R1(D.usage.cost.total,4)}`:""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),h&&K0.jsxDEV("div",{className:"text-xs text-stats-danger truncate mt-1",children:D.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},D.id||`${D.sessionFile}-${D.entryId}`,!0,void 0,this)}),O.length===0&&K0.jsxDEV("div",{className:"py-8 text-center stats-text-muted text-sm",children:"No recent requests found"},void 0,!1,void 0,this)]},void 0,!0,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),K0.jsxDEV(q1,{title:"Recent Requests Preview",subtitle:"Latest transactions processed by the proxy",actions:K0.jsxDEV("a",{href:`#/requests?range=${J}`,className:"stats-button stats-button-secondary text-xs",children:"View All Requests"},void 0,!1,void 0,this),children:K0.jsxDEV(g1,{loading:w,error:M,data:F,children:K0.jsxDEV(K6,{columns:A,data:O,keyExtractor:(D)=>D.id||`${D.sessionFile}-${D.entryId}`,onRowClick:(D)=>D.id&&q(D.id),renderMobileCard:V,emptyText:"No recent requests found"},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 mK=n(T1(),1);var Y1=n(U0(),1);function tP({active:Q,range:J,refreshTrigger:X}){let{data:q,error:N,loading:K}=a1(["projects",J,X],(w)=>zL(J,w),{pollMs:30000,enabled:Q}),H=mK.useMemo(()=>{if(!q)return[];return jP(q)},[q]),F=mK.useMemo(()=>[{key:"folder",header:"Project/Folder",render:(w)=>Y1.jsxDEV("div",{className:"stats-font-medium stats-text-primary truncate max-w-[440px]",title:w.folder||"(root)",children:w.folder||"(root)"},void 0,!1,void 0,this)},{key:"totalRequests",header:"Requests",numeric:!0,render:(w)=>Y1.jsxDEV("div",{className:"stats-text-right",children:[Y1.jsxDEV("div",{className:"font-mono",children:S0(w.totalRequests)},void 0,!1,void 0,this),Y1.jsxDEV("div",{className:"stats-progress-bar-track mt-1 ml-auto w-24 h-1",children:Y1.jsxDEV("div",{className:"stats-progress-bar-fill","data-variant":"link",style:{width:`${w.requestsPercentage}%`}},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"totalCost",header:"Cost",numeric:!0,render:(w)=>Y1.jsxDEV("div",{className:"stats-text-right",children:[Y1.jsxDEV("div",{className:"font-mono",children:R1(w.totalCost)},void 0,!1,void 0,this),Y1.jsxDEV("div",{className:"stats-progress-bar-track mt-1 ml-auto w-24 h-1",children:Y1.jsxDEV("div",{className:"stats-progress-bar-fill","data-variant":"success",style:{width:`${w.costPercentage}%`}},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"totalTokens",header:"Tokens",numeric:!0,render:(w)=>Y1.jsxDEV("div",{className:"font-mono",children:S0(w.totalInputTokens+w.totalOutputTokens)},void 0,!1,void 0,this)},{key:"cacheRate",header:"Cache Rate",numeric:!0,render:(w)=>Y1.jsxDEV("span",{className:"stats-text-success font-medium",children:d1(w.cacheRate)},void 0,!1,void 0,this)},{key:"errorRate",header:"Error Rate",numeric:!0,render:(w)=>Y1.jsxDEV(V5,{variant:w.errorRate>0.1?"danger":w.errorRate>0?"warning":"success",children:d1(w.errorRate)},void 0,!1,void 0,this)},{key:"avgDuration",header:"Avg Duration",numeric:!0,render:(w)=>y5(w.avgDuration)}],[]);return Y1.jsxDEV("div",{className:"stats-route-container",children:Y1.jsxDEV(q1,{title:"Projects & Folders",subtitle:"Aggregate proxy metrics grouped by folder path",children:Y1.jsxDEV(g1,{loading:K,error:N,data:q,emptyText:"No project folders recorded for this range.",children:Y1.jsxDEV(K6,{columns:F,data:H,keyExtractor:(w)=>w.folder,renderMobileCard:(w)=>Y1.jsxDEV("div",{className:"stats-mobile-card",children:[Y1.jsxDEV("div",{className:"stats-mobile-card-header mb-2",children:[Y1.jsxDEV("div",{className:"stats-font-semibold stats-text-primary",children:w.folder||"(root)"},void 0,!1,void 0,this),Y1.jsxDEV(V5,{variant:w.errorRate>0.1?"danger":w.errorRate>0?"warning":"success",children:[d1(w.errorRate)," Err"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Y1.jsxDEV("div",{className:"stats-mobile-card-grid",children:[Y1.jsxDEV("div",{children:[Y1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Requests"},void 0,!1,void 0,this),Y1.jsxDEV("div",{className:"stats-mobile-card-value font-mono",children:S0(w.totalRequests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Y1.jsxDEV("div",{children:[Y1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Cost"},void 0,!1,void 0,this),Y1.jsxDEV("div",{className:"stats-mobile-card-value font-mono",children:R1(w.totalCost)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Y1.jsxDEV("div",{children:[Y1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Cache"},void 0,!1,void 0,this),Y1.jsxDEV("div",{className:"stats-mobile-card-value",children:d1(w.cacheRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Y1.jsxDEV("div",{children:[Y1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Duration"},void 0,!1,void 0,this),Y1.jsxDEV("div",{className:"stats-mobile-card-value",children:y5(w.avgDuration)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),emptyText:"No project folders recorded for this range."},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var g5=n(T1(),1);var m0=n(U0(),1);function eP({active:Q,range:J,refreshTrigger:X}){let{data:q,error:N,loading:K}=a1(["providers",J,X],(H)=>PL(J,H),{pollMs:30000,enabled:Q});return m0.jsxDEV("div",{className:"stats-route-container space-y-6",children:m0.jsxDEV(g1,{loading:K,error:N,data:q,children:q&&m0.jsxDEV(m0.Fragment,{children:[m0.jsxDEV(eD,{providers:q.providers},void 0,!1,void 0,this),m0.jsxDEV($v,{stats:q},void 0,!1,void 0,this),m0.jsxDEV(Zv,{hourly:q.hourly,providers:q.providers},void 0,!1,void 0,this),m0.jsxDEV(Qv,{insights:q.windowInsights},void 0,!1,void 0,this),m0.jsxDEV(Jv,{usageSeries:q.usageSeries},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 eD({providers:Q}){let J=g5.useMemo(()=>Q.reduce((q,N)=>q+N.totalTokens,0),[Q]);return m0.jsxDEV(q1,{title:"Provider Totals",subtitle:"Token, request, and cost totals per provider over the active range",children:m0.jsxDEV(K6,{columns:[{key:"provider",header:"Provider",render:(q)=>m0.jsxDEV("span",{className:"font-medium",children:q.provider},void 0,!1,void 0,this)},{key:"requests",header:"Requests",numeric:!0,render:(q)=>S0(q.totalRequests)},{key:"errors",header:"Error Rate",numeric:!0,render:(q)=>d1(q.totalRequests>0?q.failedRequests/q.totalRequests:0)},{key:"models",header:"Models",numeric:!0,render:(q)=>S0(q.models)},{key:"tokens",header:"Tokens",numeric:!0,render:(q)=>m0.jsxDEV("span",{title:`Input ${N1(q.totalInputTokens)} · Output ${N1(q.totalOutputTokens)} · Cache read ${N1(q.totalCacheReadTokens)} · Cache write ${N1(q.totalCacheWriteTokens)}`,children:N1(q.totalTokens)},void 0,!1,void 0,this)},{key:"share",header:"Share",numeric:!0,render:(q)=>d1(J>0?q.totalTokens/J:0)},{key:"cost",header:"Cost",numeric:!0,render:(q)=>R1(q.totalCost)},{key:"tps",header:"Tok/s",numeric:!0,render:(q)=>OX(q.avgTokensPerSecond)}],data:Q,keyExtractor:(q)=>q.provider,emptyText:"No requests recorded in this range"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function $v({stats:Q}){let[J,X]=g5.useState("tokens"),q=R5(),N=o1[q],K=g5.useMemo(()=>{let w=Q.series.map((R)=>({...R,model:R.provider}));return S$(w,{topN:6,rankWeight:(R)=>J==="tokens"?R.totalTokens:R.cost,initBucket:()=>({total:0}),accumulate:(R,_)=>{R.total+=J==="tokens"?_.totalTokens:_.cost},bucketToValue:(R)=>R.total})},[Q.series,J]),H=J==="tokens"?N1:(w)=>R1(w),F=g5.useMemo(()=>{let{sharedScaleBase:w,yScale:R}=o4({chartTheme:N,formatY:H});return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:s4({chartTheme:N,showLegend:!0,defaultLabel:J==="tokens"?"Tokens":"Cost",formatValue:H,footer:(_)=>{if(_.length<2)return;let P=_.reduce((I,A)=>I+(A.parsed.y??0),0);return`Total: ${H(P)}`}}),scales:{x:{...w,stacked:!0},y:{...R,stacked:!0}}}},[N,J,H]),M=g5.useMemo(()=>({labels:K.labels,datasets:p2(K,(w)=>$7(H1[w%H1.length]))}),[K]);return m0.jsxDEV(q1,{title:"Burn by Provider",subtitle:"Stacked token/cost burn per provider over time",actions:m0.jsxDEV(J7,{options:[{value:"tokens",label:"Tokens"},{value:"cost",label:"Cost"}],value:J,onChange:X},void 0,!1,void 0,this),children:m0.jsxDEV("div",{className:"h-[300px]",children:K.labels.length===0?m0.jsxDEV(j$,{message:"No provider activity in this range"},void 0,!1,void 0,this):m0.jsxDEV(d2,{data:M,options:F},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var dK="__all__";function Zv({hourly:Q,providers:J}){let[X,q]=g5.useState(dK),N=R5(),K=o1[N],{tokensByHour:H,peakHour:F}=g5.useMemo(()=>{let _=Array(24).fill(0);for(let I of Q){if(X!==dK&&I.provider!==X)continue;_[I.hour]+=I.totalTokens}let P=0;for(let I=1;I<24;I++)if(_[I]>_[P])P=I;return{tokensByHour:_,peakHour:P}},[Q,X]),M=H.some((_)=>_>0),w=g5.useMemo(()=>({labels:Array.from({length:24},(_,P)=>`${String(P).padStart(2,"0")}:00`),datasets:[{label:"Tokens",data:H,...$7(H1[2]),backgroundColor:H.map((_,P)=>P===F?H1[0]:H1[2])}]}),[H,F]),R=g5.useMemo(()=>{let{sharedScaleBase:_,yScale:P}=o4({chartTheme:K,formatY:N1});return{responsive:!0,maintainAspectRatio:!1,plugins:s4({chartTheme:K,showLegend:!1,defaultLabel:"Tokens",formatValue:N1}),scales:{x:_,y:P}}},[K]);return m0.jsxDEV(q1,{title:"Peak Burn Hours",subtitle:M?`Token burn by local hour of day — peak at ${String(F).padStart(2,"0")}:00`:"Token burn by local hour of day",actions:m0.jsxDEV("select",{className:"stats-select",value:X,onChange:(_)=>q(_.target.value),"aria-label":"Provider",children:[m0.jsxDEV("option",{value:dK,children:"All providers"},void 0,!1,void 0,this),J.map((_)=>m0.jsxDEV("option",{value:_.provider,children:_.provider},_.provider,!1,void 0,this))]},void 0,!0,void 0,this),children:m0.jsxDEV("div",{className:"h-[260px]",children:M?m0.jsxDEV(d2,{data:w,options:R},void 0,!1,void 0,this):m0.jsxDEV(j$,{message:"No activity in this range"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function Qv({insights:Q}){return m0.jsxDEV(q1,{title:"Subscription Windows",subtitle:"What each usage window buys you, and how many accounts peak demand needs",children:m0.jsxDEV(K6,{columns:[{key:"provider",header:"Provider",render:(X)=>m0.jsxDEV("span",{className:"font-medium",children:X.provider},void 0,!1,void 0,this)},{key:"window",header:"Window",render:(X)=>X.windowLabel},{key:"accounts",header:"Accounts",numeric:!0,render:(X)=>S0(X.accounts)},{key:"consumed",header:"Windows Burned",numeric:!0,render:(X)=>m0.jsxDEV("span",{title:"Subscription-window equivalents consumed in range (sum of used-fraction increases across accounts)",children:X.fractionConsumed.toFixed(2)},void 0,!1,void 0,this)},{key:"capacity",header:"Est. Tokens / Window",numeric:!0,render:(X)=>m0.jsxDEV("span",{title:"Provider tokens burned in range ÷ windows burned — what one full window is worth",children:X.estTokensPerWindow!==null?N1(X.estTokensPerWindow):"—"},void 0,!1,void 0,this)},{key:"peak",header:"Peak Utilization",numeric:!0,render:(X)=>m0.jsxDEV("span",{title:"Peak of summed used fraction across accounts at any sampled instant",children:d1(X.peakConcurrentFraction)},void 0,!1,void 0,this)},{key:"ideal",header:"Ideal Accounts",numeric:!0,render:(X)=>m0.jsxDEV("span",{title:"Accounts needed to keep peak demand under 90% of fleet capacity",className:X.idealAccounts>X.accounts?"stats-text-warning font-semibold":void 0,children:[S0(X.idealAccounts),X.idealAccounts>X.accounts?` (have ${X.accounts})`:""]},void 0,!0,void 0,this)},{key:"exhausted",header:"Exhaustions",numeric:!0,render:(X)=>m0.jsxDEV("span",{className:X.exhaustedEvents>0?"stats-text-warning":void 0,children:S0(X.exhaustedEvents)},void 0,!1,void 0,this)}],data:Q,keyExtractor:(X)=>`${X.provider}::${X.windowKey}`,emptyText:"No usage snapshots recorded yet — they accumulate whenever usage is fetched (TUI footer, /usage, omp usage)"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var pK={ok:"#62d394",warning:"#f5c14b",exhausted:"#ff6b7d"};function Jv({usageSeries:Q}){let J=g5.useMemo(()=>[...new Set(Q.map((R)=>R.provider))],[Q]),[X,q]=g5.useState(null),N=X!==null&&J.includes(X)?X:J[0]??null,K=R5(),H=o1[K],F=g5.useMemo(()=>{return Q.filter((R)=>R.provider===N).map((R)=>{let _=[...R.points].reverse().find((P)=>P.usedFraction!==null);return _?{label:`${R.windowLabel} · ${R.accountLabel}`,fraction:_.usedFraction??0,exhausted:_.exhausted,recordedAt:_.timestamp}:null}).filter((R)=>R!==null).sort((R,_)=>_.fraction-R.fraction)},[Q,N]),M=g5.useMemo(()=>({labels:F.map((R)=>R.label),datasets:[{label:"Used",data:F.map((R)=>R.fraction*100),backgroundColor:F.map((R)=>R.exhausted?pK.exhausted:R.fraction>=0.8?pK.warning:pK.ok),borderWidth:0,borderRadius:4,barThickness:18}]}),[F]),w=g5.useMemo(()=>{let{sharedScaleBase:R,yScale:_}=o4({chartTheme:H,formatY:(A)=>`${Math.round(A)}%`}),P=Math.max(100,...F.map((A)=>A.fraction*100)),I=s4({chartTheme:H,showLegend:!1,defaultLabel:"Used",formatValue:(A)=>`${A.toFixed(1)}%`});return{indexAxis:"y",responsive:!0,maintainAspectRatio:!1,plugins:{...I,tooltip:{...I.tooltip,callbacks:{label:(A)=>{let V=F[A.dataIndex],O=`${(A.parsed.x??0).toFixed(1)}% used`;return V?`${O} · recorded ${Y6(V.recordedAt)}`:O}}}},scales:{x:{..._,max:P},y:{...R,grid:{display:!1}}}}},[H,F]);return m0.jsxDEV(q1,{title:"Window Utilization",subtitle:"Latest recorded limit utilization per account and window — red bars are exhausted, amber above 80%",actions:J.length>1?m0.jsxDEV("select",{className:"stats-select",value:N??"",onChange:(R)=>q(R.target.value),"aria-label":"Provider",children:J.map((R)=>m0.jsxDEV("option",{value:R,children:R},R,!1,void 0,this))},void 0,!1,void 0,this):void 0,children:m0.jsxDEV("div",{style:{height:Math.max(160,F.length*34+60)},children:F.length===0?m0.jsxDEV(j$,{message:"No usage snapshots recorded yet — they accumulate whenever usage is fetched"},void 0,!1,void 0,this):m0.jsxDEV(d2,{data:M,options:w},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var $T=n(T1(),1);var z1=n(U0(),1);function ZT({active:Q,refreshTrigger:J,onRequestClick:X}){let{data:q,error:N,loading:K}=a1(["recent-requests-dense",J],(M)=>UX(50,M),{pollMs:30000,enabled:Q}),H=$T.useMemo(()=>[{key:"model",header:"Model",render:(M)=>z1.jsxDEV("div",{children:[z1.jsxDEV("div",{className:"stats-font-medium stats-text-primary",children:M.model},void 0,!1,void 0,this),z1.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:M.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"timestamp",header:"Time",render:(M)=>Y6(M.timestamp)},{key:"tokens",header:"Tokens",numeric:!0,render:(M)=>S0(M.usage.totalTokens)},{key:"cost",header:"Cost",numeric:!0,render:(M)=>R1(M.usage.cost.total,4)},{key:"duration",header:"Duration",numeric:!0,render:(M)=>y5(M.duration)},{key:"status",header:"Status",className:"stats-text-center",render:(M)=>z1.jsxDEV(V5,{variant:M.errorMessage?"danger":"success",children:M.errorMessage?"Failed":"Success"},void 0,!1,void 0,this)}],[]);return z1.jsxDEV("div",{className:"stats-route-container",children:z1.jsxDEV(q1,{title:"All Recent Requests",subtitle:"Up to 50 most recent requests processed by OMP",children:z1.jsxDEV(g1,{loading:K,error:N,data:q,children:z1.jsxDEV(K6,{columns:H,data:q||[],keyExtractor:(M)=>M.id||`${M.sessionFile}-${M.entryId}`,onRowClick:(M)=>M.id&&X(M.id),renderMobileCard:(M,w)=>z1.jsxDEV("div",{className:"stats-mobile-card",onClick:w,children:[z1.jsxDEV("div",{className:"stats-mobile-card-header",children:[z1.jsxDEV("div",{children:[z1.jsxDEV("div",{className:"stats-font-semibold stats-text-primary",children:M.model},void 0,!1,void 0,this),z1.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:M.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),z1.jsxDEV(V5,{variant:M.errorMessage?"danger":"success",children:M.errorMessage?"Failed":"Success"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),z1.jsxDEV("div",{className:"stats-mobile-card-grid",children:[z1.jsxDEV("div",{children:[z1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Time"},void 0,!1,void 0,this),z1.jsxDEV("div",{className:"stats-mobile-card-value",children:Y6(M.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),z1.jsxDEV("div",{children:[z1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Cost"},void 0,!1,void 0,this),z1.jsxDEV("div",{className:"stats-mobile-card-value",children:R1(M.usage.cost.total,4)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),z1.jsxDEV("div",{children:[z1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Tokens"},void 0,!1,void 0,this),z1.jsxDEV("div",{className:"stats-mobile-card-value",children:S0(M.usage.totalTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),z1.jsxDEV("div",{children:[z1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Duration"},void 0,!1,void 0,this),z1.jsxDEV("div",{className:"stats-mobile-card-value",children:y5(M.duration)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),M.errorMessage&&z1.jsxDEV("div",{className:"stats-mobile-card-error truncate mt-2",children:M.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this),emptyText:"No recent requests found"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var e6=n(T1(),1);var e=n(U0(),1);function QT({active:Q,range:J,refreshTrigger:X}){let{data:q,error:N,loading:K}=a1(["tools",J,X],(H)=>LL(J,H),{pollMs:30000,enabled:Q});return e.jsxDEV("div",{className:"stats-route-container space-y-6",children:e.jsxDEV(g1,{loading:K,error:N,data:q,emptyText:"No tool calls recorded for this range.",children:q&&e.jsxDEV(e.Fragment,{children:[e.jsxDEV(Gv,{byTool:q.byTool},void 0,!1,void 0,this),e.jsxDEV(Yv,{series:q.series,timeRange:J},void 0,!1,void 0,this),e.jsxDEV(Nv,{byTool:q.byTool},void 0,!1,void 0,this),e.jsxDEV(Uv,{byToolModel:q.byToolModel},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 Gv({byTool:Q}){let J=e6.useMemo(()=>{let X=0,q=0,N=0,K=0,H=0,F=0,M=0;for(let w of Q)X+=w.calls,q+=w.errors,N+=w.totalTokensShare,K+=w.outputTokensShare,H+=w.costShare,F+=w.resultChars,M+=w.argsChars;return{calls:X,errors:q,tokens:N,output:K,cost:H,resultChars:F,argsChars:M,tools:Q.length}},[Q]);return e.jsxDEV(q1,{title:"Tool Usage",subtitle:"Tokens/cost are the invoking turns' real provider usage, split across each turn's tool calls",children:e.jsxDEV("div",{className:"stats-metric-cluster",children:[e.jsxDEV("div",{className:"stats-metric-primary-grid",children:[e.jsxDEV("div",{className:"stats-metric-card primary",children:[e.jsxDEV("div",{className:"stats-metric-label",children:"Tool Calls"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-metric-value",children:S0(J.calls)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{className:"stats-metric-card primary",children:[e.jsxDEV("div",{className:"stats-metric-label",children:"Tools Used"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-metric-value",children:S0(J.tools)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{className:"stats-metric-card primary",children:[e.jsxDEV("div",{className:"stats-metric-label",children:"Error Rate"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-metric-value",children:d1(J.calls>0?J.errors/J.calls:0)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{className:"stats-metric-card primary",children:[e.jsxDEV("div",{className:"stats-metric-label",children:"Attributed Cost"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-metric-value",children:R1(J.cost)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{className:"stats-metric-secondary-grid",children:[e.jsxDEV("div",{className:"stats-metric-card secondary",children:[e.jsxDEV("div",{className:"stats-metric-label",children:"Attributed Tokens"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-metric-value",children:N1(Math.round(J.tokens))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{className:"stats-metric-card secondary",children:[e.jsxDEV("div",{className:"stats-metric-label",children:"Attributed Output"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-metric-value",children:N1(Math.round(J.output))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{className:"stats-metric-card secondary",children:[e.jsxDEV("div",{className:"stats-metric-label",children:"Result Text"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-metric-value",children:[N1(J.resultChars)," chars"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{className:"stats-metric-card secondary",children:[e.jsxDEV("div",{className:"stats-metric-label",children:"Call Arguments"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-metric-value",children:[N1(J.argsChars)," chars"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var Xv=6;function qv(Q){let J=new Map;for(let w of Q)J.set(w.tool,(J.get(w.tool)??0)+w.calls);let X=[...J.entries()].sort((w,R)=>R[1]-w[1]),q=X.slice(0,Xv).map(([w])=>w),N=new Set(q),H=X.length>q.length?[...q,"Other"]:q,F=[...new Set(Q.map((w)=>w.timestamp))].sort((w,R)=>w-R),M=new Map;for(let w of F)M.set(w,{});for(let w of Q){let R=N.has(w.tool)?w.tool:"Other",_=M.get(w.timestamp);if(_)_[R]=(_[R]??0)+w.calls}return{buckets:F,tools:H,data:M}}function Yv({series:Q,timeRange:J}){let X=R5(),q=o1[X],N=Z7(J),K=e6.useMemo(()=>qv(Q),[Q]),H=e6.useMemo(()=>({labels:K.buckets.map((M)=>NJ(M,J)),datasets:K.tools.map((M,w)=>({label:M,data:K.buckets.map((R)=>K.data.get(R)?.[M]??0),borderColor:H1[w%H1.length],backgroundColor:`${H1[w%H1.length]}30`,fill:!0,tension:0.4,pointRadius:0,pointHoverRadius:4,borderWidth:2}))}),[K,J]),F=e6.useMemo(()=>({responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{legend:{position:"top",align:"start",labels:{color:q.legendLabel,usePointStyle:!0,padding:16,font:{size:12},boxWidth:8}},tooltip:{backgroundColor:q.tooltipBackground,titleColor:q.tooltipTitle,bodyColor:q.tooltipBody,borderColor:q.tooltipBorder,borderWidth:1,padding:12,cornerRadius:8,callbacks:{label:(M)=>`${M.dataset.label??""}: ${S0(M.parsed.y??0)} calls`}}},scales:{x:{stacked:!0,grid:{color:q.grid,drawBorder:!1},ticks:{color:q.tick,font:{size:11}}},y:{stacked:!0,grid:{color:q.grid,drawBorder:!1},ticks:{color:q.tick,font:{size:11},precision:0},min:0}}}),[q]);return e.jsxDEV(q1,{title:"Calls Over Time",subtitle:`Tool calls over ${N.windowLabel}, stacked by tool`,children:e.jsxDEV("div",{className:"h-[280px]",children:K.buckets.length===0?e.jsxDEV("div",{className:"h-full flex items-center justify-center text-stats-muted text-sm",children:"No data available"},void 0,!1,void 0,this):e.jsxDEV(f5,{data:H,options:F},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function cK(Q){return Q>0.1?"danger":Q>0?"warning":"success"}function Nv({byTool:Q}){let J=e6.useMemo(()=>DP(Q),[Q]),X=e6.useMemo(()=>[{key:"tool",header:"Tool",render:(N)=>e.jsxDEV("div",{className:"stats-font-medium stats-text-primary font-mono truncate max-w-[280px]",title:N.tool,children:N.tool},void 0,!1,void 0,this)},{key:"calls",header:"Calls",numeric:!0,render:(N)=>e.jsxDEV("div",{className:"stats-text-right",children:[e.jsxDEV("div",{className:"font-mono",children:S0(N.calls)},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-progress-bar-track mt-1 ml-auto w-24 h-1",children:e.jsxDEV("div",{className:"stats-progress-bar-fill","data-variant":"link",style:{width:`${N.callsPercentage}%`}},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"errorRate",header:"Error Rate",numeric:!0,render:(N)=>e.jsxDEV(V5,{variant:cK(N.errorRate),children:d1(N.errorRate)},void 0,!1,void 0,this)},{key:"tokens",header:"Attr. Tokens",numeric:!0,render:(N)=>e.jsxDEV("span",{className:"font-mono",title:"Invoking turns' total tokens, split across each turn's calls",children:N1(Math.round(N.totalTokensShare))},void 0,!1,void 0,this)},{key:"cost",header:"Attr. Cost",numeric:!0,render:(N)=>e.jsxDEV("span",{className:"font-mono",children:R1(N.costShare)},void 0,!1,void 0,this)},{key:"resultChars",header:"Result Text",numeric:!0,render:(N)=>e.jsxDEV("span",{className:"font-mono",title:"Characters of tool-result text fed back into context",children:N1(N.resultChars)},void 0,!1,void 0,this)},{key:"lastUsed",header:"Last Used",numeric:!0,render:(N)=>e.jsxDEV("span",{className:"stats-text-secondary",children:Y6(N.lastUsed)},void 0,!1,void 0,this)}],[]);return e.jsxDEV(q1,{title:"By Tool",subtitle:"Usage per tool, most called first",children:e.jsxDEV(K6,{columns:X,data:J,keyExtractor:(N)=>N.tool,renderMobileCard:(N)=>e.jsxDEV("div",{className:"stats-mobile-card",children:[e.jsxDEV("div",{className:"stats-mobile-card-header mb-2",children:[e.jsxDEV("div",{className:"stats-font-semibold stats-text-primary font-mono",children:N.tool},void 0,!1,void 0,this),e.jsxDEV(V5,{variant:cK(N.errorRate),children:[d1(N.errorRate)," Err"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{className:"stats-mobile-card-grid",children:[e.jsxDEV("div",{children:[e.jsxDEV("div",{className:"stats-mobile-card-label",children:"Calls"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-mobile-card-value font-mono",children:S0(N.calls)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{children:[e.jsxDEV("div",{className:"stats-mobile-card-label",children:"Attr. Tokens"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-mobile-card-value font-mono",children:N1(Math.round(N.totalTokensShare))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{children:[e.jsxDEV("div",{className:"stats-mobile-card-label",children:"Attr. Cost"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-mobile-card-value font-mono",children:R1(N.costShare)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{children:[e.jsxDEV("div",{className:"stats-mobile-card-label",children:"Result Text"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-mobile-card-value font-mono",children:N1(N.resultChars)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),emptyText:"No tool calls recorded for this range."},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function Uv({byToolModel:Q}){let[J,X]=e6.useState(null),q=e6.useMemo(()=>[...new Set(Q.map((H)=>H.tool))].sort(),[Q]),N=e6.useMemo(()=>{return(J?Q.filter((F)=>F.tool===J):Q).map((F)=>({...F,errorRate:F.calls>0?F.errors/F.calls:0}))},[Q,J]),K=e6.useMemo(()=>[{key:"tool",header:"Tool",render:(H)=>e.jsxDEV("span",{className:"stats-font-medium stats-text-primary font-mono",children:H.tool},void 0,!1,void 0,this)},{key:"model",header:"Model",render:(H)=>e.jsxDEV("div",{children:[e.jsxDEV("div",{className:"stats-text-primary",children:H.model||"(unknown)"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-text-secondary text-xs",children:H.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"calls",header:"Calls",numeric:!0,render:(H)=>e.jsxDEV("span",{className:"font-mono",children:S0(H.calls)},void 0,!1,void 0,this)},{key:"errorRate",header:"Error Rate",numeric:!0,render:(H)=>e.jsxDEV(V5,{variant:cK(H.errorRate),children:d1(H.errorRate)},void 0,!1,void 0,this)},{key:"tokens",header:"Attr. Tokens",numeric:!0,render:(H)=>e.jsxDEV("span",{className:"font-mono",children:N1(Math.round(H.totalTokensShare))},void 0,!1,void 0,this)},{key:"cost",header:"Attr. Cost",numeric:!0,render:(H)=>e.jsxDEV("span",{className:"font-mono",children:R1(H.costShare)},void 0,!1,void 0,this)}],[]);return e.jsxDEV(q1,{title:"By Model",subtitle:"Which models call which tools",children:[e.jsxDEV("div",{className:"mb-4",style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[e.jsxDEV("span",{className:"stats-text-secondary",style:{fontSize:"0.875rem",whiteSpace:"nowrap"},children:"Tool"},void 0,!1,void 0,this),e.jsxDEV("select",{className:"stats-select",value:J??"",onChange:(H)=>X(H.target.value||null),style:{maxWidth:"320px",flex:1},children:[e.jsxDEV("option",{value:"",children:"All tools"},void 0,!1,void 0,this),q.map((H)=>e.jsxDEV("option",{value:H,children:H},H,!1,void 0,this))]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV(K6,{columns:K,data:N,keyExtractor:(H)=>`${H.tool}::${H.model}::${H.provider}`,emptyText:"No tool calls recorded for this range."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var A5=n(U0(),1);function lK(){let{section:Q,setSection:J,range:X,setRange:q}=kL(),[N,K]=g8.useState(0),[H,F]=g8.useState(null),[M,w]=g8.useState(()=>Date.now()),R=g8.useCallback((V)=>{if(V.success)K((O)=>O+1),w(Date.now())},[]),_=g8.useCallback(()=>F(null),[]),P=Q,I=g8.useRef(new Set);I.current.add(P);let A=(V)=>{let O=V===P;switch(V){case"overview":return A5.jsxDEV(iP,{active:O,range:X,refreshTrigger:N,onRequestClick:F},void 0,!1,void 0,this);case"requests":return A5.jsxDEV(ZT,{active:O,range:X,refreshTrigger:N,onRequestClick:F},void 0,!1,void 0,this);case"errors":return A5.jsxDEV(lP,{active:O,range:X,refreshTrigger:N,onRequestClick:F},void 0,!1,void 0,this);case"models":return A5.jsxDEV(sP,{active:O,range:X,refreshTrigger:N},void 0,!1,void 0,this);case"providers":return A5.jsxDEV(eP,{active:O,range:X,refreshTrigger:N},void 0,!1,void 0,this);case"tools":return A5.jsxDEV(QT,{active:O,range:X,refreshTrigger:N},void 0,!1,void 0,this);case"costs":return A5.jsxDEV(pP,{active:O,range:X,refreshTrigger:N},void 0,!1,void 0,this);case"behavior":return A5.jsxDEV(dP,{active:O,range:X,refreshTrigger:N},void 0,!1,void 0,this);case"projects":return A5.jsxDEV(tP,{active:O,range:X,refreshTrigger:N},void 0,!1,void 0,this);case"gain":return A5.jsxDEV(rP,{active:O,range:X,refreshTrigger:N},void 0,!1,void 0,this)}};return A5.jsxDEV(A5.Fragment,{children:[A5.jsxDEV(vL,{activeSection:P,onSectionChange:J,range:X,onRangeChange:q,updatedAt:M,onSyncComplete:R,children:[...I.current].map((V)=>A5.jsxDEV("div",{hidden:V!==P,children:A(V)},V,!1,void 0,this))},void 0,!1,void 0,this),A5.jsxDEV(yP,{id:H,onClose:_},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var GT=n(U0(),1),Kv=JT.createRoot(document.getElementById("root"));Kv.render(GT.jsxDEV(lK,{},void 0,!1,void 0,this));
|
|
255
|
+
*/class Z_{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(J,G,q,X){let N=G.listeners[X],K=G.duration;N.forEach((H)=>H({chart:J,initial:G.initial,numSteps:K,currentStep:Math.min(q-G.start,K)}))}_refresh(){if(this._request)return;this._running=!0,this._request=UU.call(window,()=>{if(this._update(),this._request=null,this._running)this._refresh()})}_update(J=Date.now()){let G=0;if(this._charts.forEach((q,X)=>{if(!q.running||!q.items.length)return;let N=q.items,K=N.length-1,H=!1,F;for(;K>=0;--K)if(F=N[K],F._active){if(F._total>q.duration)q.duration=F._total;F.tick(J),H=!0}else N[K]=N[N.length-1],N.pop();if(H)X.draw(),this._notify(X,q,J,"progress");if(!N.length)q.running=!1,this._notify(X,q,J,"complete"),q.initial=!1;G+=N.length}),this._lastDate=J,G===0)this._running=!1}_getAnims(J){let G=this._charts,q=G.get(J);if(!q)q={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},G.set(J,q);return q}listen(J,G,q){this._getAnims(J).listeners[G].push(q)}add(J,G){if(!G||!G.length)return;this._getAnims(J).items.push(...G)}has(J){return this._getAnims(J).items.length>0}start(J){let G=this._charts.get(J);if(!G)return;G.running=!0,G.start=Date.now(),G.duration=G.items.reduce((q,X)=>Math.max(q,X._duration),0),this._refresh()}running(J){if(!this._running)return!1;let G=this._charts.get(J);if(!G||!G.running||!G.items.length)return!1;return!0}stop(J){let G=this._charts.get(J);if(!G||!G.items.length)return;let q=G.items,X=q.length-1;for(;X>=0;--X)q[X].cancel();G.items=[],this._notify(J,G,Date.now(),"complete")}remove(J){return this._charts.delete(J)}}var V8=new Z_,qR="transparent",FV={boolean(J,G,q){return q>0.5?G:J},color(J,G,q){let X=HU(J||qR),N=X.valid&&HU(G||qR);return N&&N.valid?N.mix(X,q).hexString():G},number(J,G,q){return J+(G-J)*q}};class J_{constructor(J,G,q,X){let N=G[q];X=NJ([J.to,X,N,J.from]);let K=NJ([J.from,N,X]);this._active=!0,this._fn=J.fn||FV[J.type||typeof K],this._easing=q$[J.easing]||q$.linear,this._start=Math.floor(Date.now()+(J.delay||0)),this._duration=this._total=Math.floor(J.duration),this._loop=!!J.loop,this._target=G,this._prop=q,this._from=K,this._to=X,this._promises=void 0}active(){return this._active}update(J,G,q){if(this._active){this._notify(!1);let X=this._target[this._prop],N=q-this._start,K=this._duration-N;this._start=q,this._duration=Math.floor(Math.max(K,J.duration)),this._total+=N,this._loop=!!J.loop,this._to=NJ([J.to,G,X,J.from]),this._from=NJ([J.from,X,G])}}cancel(){if(this._active)this.tick(Date.now()),this._active=!1,this._notify(!1)}tick(J){let G=J-this._start,q=this._duration,X=this._prop,N=this._from,K=this._loop,H=this._to,F;if(this._active=N!==H&&(K||G<q),!this._active){this._target[X]=H,this._notify(!0);return}if(G<0){this._target[X]=N;return}F=G/q%2,F=K&&F>1?2-F:F,F=this._easing(Math.min(1,Math.max(0,F))),this._target[X]=this._fn(N,H,F)}wait(){let J=this._promises||(this._promises=[]);return new Promise((G,q)=>{J.push({res:G,rej:q})})}_notify(J){let G=J?"res":"rej",q=this._promises||[];for(let X=0;X<q.length;X++)q[X][G]()}}class rU{constructor(J,G){this._chart=J,this._properties=new Map,this.configure(G)}configure(J){if(!$1(J))return;let G=Object.keys(u1.animation),q=this._properties;Object.getOwnPropertyNames(J).forEach((X)=>{let N=J[X];if(!$1(N))return;let K={};for(let H of G)K[H]=N[H];(E1(N.properties)&&N.properties||[X]).forEach((H)=>{if(H===X||!q.has(H))q.set(H,K)})})}_animateOptions(J,G){let q=G.options,X=zV(J,q);if(!X)return[];let N=this._createAnimations(X,q);if(q.$shared)WV(J.options.$animations,q).then(()=>{J.options=q},()=>{});return N}_createAnimations(J,G){let q=this._properties,X=[],N=J.$animations||(J.$animations={}),K=Object.keys(G),H=Date.now(),F;for(F=K.length-1;F>=0;--F){let W=K[F];if(W.charAt(0)==="$")continue;if(W==="options"){X.push(...this._animateOptions(J,G));continue}let M=G[W],R=N[W],_=q.get(W);if(R)if(_&&R.active()){R.update(_,M,H);continue}else R.cancel();if(!_||!_.duration){J[W]=M;continue}N[W]=R=new J_(_,J,W,M),X.push(R)}return X}update(J,G){if(this._properties.size===0){Object.assign(J,G);return}let q=this._createAnimations(J,G);if(q.length)return V8.add(this._chart,q),!0}}function WV(J,G){let q=[],X=Object.keys(G);for(let N=0;N<X.length;N++){let K=J[X[N]];if(K&&K.active())q.push(K.wait())}return Promise.all(q)}function zV(J,G){if(!G)return;let q=J.options;if(!q){J.options=G;return}if(q.$shared)J.options=q=Object.assign({},q,{$shared:!1,$animations:{}});return q}function YR(J,G){let q=J&&J.options||{},X=q.reverse,N=q.min===void 0?G:0,K=q.max===void 0?G:0;return{start:X?K:N,end:X?N:K}}function MV(J,G,q){if(q===!1)return!1;let X=YR(J,q),N=YR(G,q);return{top:N.end,right:X.end,bottom:N.start,left:X.start}}function wV(J){let G,q,X,N;if($1(J))G=J.top,q=J.right,X=J.bottom,N=J.left;else G=q=X=N=J;return{top:G,right:q,bottom:X,left:N,disabled:J===!1}}function Q_(J,G){let q=[],X=J._getSortedDatasetMetas(G),N,K;for(N=0,K=X.length;N<K;++N)q.push(X[N].index);return q}function XR(J,G,q,X={}){let N=J.keys,K=X.mode==="single",H,F,W,M;if(G===null)return;let R=!1;for(H=0,F=N.length;H<F;++H){if(W=+N[H],W===q){if(R=!0,X.all)continue;break}if(M=J.values[W],h1(M)&&(K||G===0||U4(G)===U4(M)))G+=M}if(!R&&!X.all)return 0;return G}function RV(J,G){let{iScale:q,vScale:X}=G,N=q.axis==="x"?"x":"y",K=X.axis==="x"?"x":"y",H=Object.keys(J),F=Array(H.length),W,M,R;for(W=0,M=H.length;W<M;++W)R=H[W],F[W]={[N]:R,[K]:J[R]};return F}function AU(J,G){let q=J&&J.options.stacked;return q||q===void 0&&G.stack!==void 0}function _V(J,G,q){return`${J.id}.${G.id}.${q.stack||q.type}`}function LV(J){let{min:G,max:q,minDefined:X,maxDefined:N}=J.getUserBounds();return{min:X?G:Number.NEGATIVE_INFINITY,max:N?q:Number.POSITIVE_INFINITY}}function PV(J,G,q){let X=J[G]||(J[G]={});return X[q]||(X[q]={})}function NR(J,G,q,X){for(let N of G.getMatchingVisibleMetas(X).reverse()){let K=J[N.index];if(q&&K>0||!q&&K<0)return N.index}return null}function UR(J,G){let{chart:q,_cachedMeta:X}=J,N=q._stacks||(q._stacks={}),{iScale:K,vScale:H,index:F}=X,W=K.axis,M=H.axis,R=_V(K,H,X),_=G.length,P;for(let O=0;O<_;++O){let E=G[O],{[W]:V,[M]:I}=E,j=E._stacks||(E._stacks={});P=j[M]=PV(N,R,V),P[F]=I,P._top=NR(P,H,!0,X.type),P._bottom=NR(P,H,!1,X.type);let h=P._visualValues||(P._visualValues={});h[F]=I}}function EU(J,G){let q=J.scales;return Object.keys(q).filter((X)=>q[X].axis===G).shift()}function TV(J,G){return I8(J,{active:!1,dataset:void 0,datasetIndex:G,index:G,mode:"default",type:"dataset"})}function CV(J,G,q){return I8(J,{active:!1,dataIndex:G,parsed:void 0,raw:void 0,element:q,index:G,mode:"default",type:"data"})}function UJ(J,G){let q=J.controller.index,X=J.vScale&&J.vScale.axis;if(!X)return;G=G||J._parsed;for(let N of G){let K=N._stacks;if(!K||K[X]===void 0||K[X][q]===void 0)return;if(delete K[X][q],K[X]._visualValues!==void 0&&K[X]._visualValues[q]!==void 0)delete K[X]._visualValues[q]}}var SU=(J)=>J==="reset"||J==="none",KR=(J,G)=>G?J:Object.assign({},J),OV=(J,G,q)=>J&&!G.hidden&&G._stacked&&{keys:Q_(q,!0),values:null};class d3{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(J,G){this.chart=J,this._ctx=J.ctx,this.index=G,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){let J=this._cachedMeta;if(this.configure(),this.linkScales(),J._stacked=AU(J.vScale,J),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler"))console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(J){if(this.index!==J)UJ(this._cachedMeta);this.index=J}linkScales(){let J=this.chart,G=this._cachedMeta,q=this.getDataset(),X=(R,_,P,O)=>R==="x"?_:R==="r"?O:P,N=G.xAxisID=s0(q.xAxisID,EU(J,"x")),K=G.yAxisID=s0(q.yAxisID,EU(J,"y")),H=G.rAxisID=s0(q.rAxisID,EU(J,"r")),F=G.indexAxis,W=G.iAxisID=X(F,N,K,H),M=G.vAxisID=X(F,K,N,H);G.xScale=this.getScaleForId(N),G.yScale=this.getScaleForId(K),G.rScale=this.getScaleForId(H),G.iScale=this.getScaleForId(W),G.vScale=this.getScaleForId(M)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(J){return this.chart.scales[J]}_getOtherScale(J){let G=this._cachedMeta;return J===G.iScale?G.vScale:G.iScale}reset(){this._update("reset")}_destroy(){let J=this._cachedMeta;if(this._data)XU(this._data,this);if(J._stacked)UJ(J)}_dataCheck(){let J=this.getDataset(),G=J.data||(J.data=[]),q=this._data;if($1(G)){let X=this._cachedMeta;this._data=RV(G,X)}else if(q!==G){if(q){XU(q,this);let X=this._cachedMeta;UJ(X),X._parsed=[]}if(G&&Object.isExtensible(G))gw(G,this);this._syncList=[],this._data=G}}addElements(){let J=this._cachedMeta;if(this._dataCheck(),this.datasetElementType)J.dataset=new this.datasetElementType}buildOrUpdateElements(J){let G=this._cachedMeta,q=this.getDataset(),X=!1;this._dataCheck();let N=G._stacked;if(G._stacked=AU(G.vScale,G),G.stack!==q.stack)X=!0,UJ(G),G.stack=q.stack;if(this._resyncElements(J),X||N!==G._stacked)UR(this,G._parsed),G._stacked=AU(G.vScale,G)}configure(){let J=this.chart.config,G=J.datasetScopeKeys(this._type),q=J.getOptionScopes(this.getDataset(),G,!0);this.options=J.createResolver(q,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(J,G){let{_cachedMeta:q,_data:X}=this,{iScale:N,_stacked:K}=q,H=N.axis,F=J===0&&G===X.length?!0:q._sorted,W=J>0&&q._parsed[J-1],M,R,_;if(this._parsing===!1)q._parsed=X,q._sorted=!0,_=X;else{if(E1(X[J]))_=this.parseArrayData(q,X,J,G);else if($1(X[J]))_=this.parseObjectData(q,X,J,G);else _=this.parsePrimitiveData(q,X,J,G);let P=()=>R[H]===null||W&&R[H]<W[H];for(M=0;M<G;++M)if(q._parsed[M+J]=R=_[M],F){if(P())F=!1;W=R}q._sorted=F}if(K)UR(this,_)}parsePrimitiveData(J,G,q,X){let{iScale:N,vScale:K}=J,H=N.axis,F=K.axis,W=N.getLabels(),M=N===K,R=Array(X),_,P,O;for(_=0,P=X;_<P;++_)O=_+q,R[_]={[H]:M||N.parse(W[O],O),[F]:K.parse(G[O],O)};return R}parseArrayData(J,G,q,X){let{xScale:N,yScale:K}=J,H=Array(X),F,W,M,R;for(F=0,W=X;F<W;++F)M=F+q,R=G[M],H[F]={x:N.parse(R[0],M),y:K.parse(R[1],M)};return H}parseObjectData(J,G,q,X){let{xScale:N,yScale:K}=J,{xAxisKey:H="x",yAxisKey:F="y"}=this._parsing,W=Array(X),M,R,_,P;for(M=0,R=X;M<R;++M)_=M+q,P=G[_],W[M]={x:N.parse(f7(P,H),_),y:K.parse(f7(P,F),_)};return W}getParsed(J){return this._cachedMeta._parsed[J]}getDataElement(J){return this._cachedMeta.data[J]}applyStack(J,G,q){let X=this.chart,N=this._cachedMeta,K=G[J.axis],H={keys:Q_(X,!0),values:G._stacks[J.axis]._visualValues};return XR(H,K,N.index,{mode:q})}updateRangeFromParsed(J,G,q,X){let N=q[G.axis],K=N===null?NaN:N,H=X&&q._stacks[G.axis];if(X&&H)X.values=H,K=XR(X,N,this._cachedMeta.index);J.min=Math.min(J.min,K),J.max=Math.max(J.max,K)}getMinMax(J,G){let q=this._cachedMeta,X=q._parsed,N=q._sorted&&J===q.iScale,K=X.length,H=this._getOtherScale(J),F=OV(G,q,this.chart),W={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:M,max:R}=LV(H),_,P;function O(){P=X[_];let E=P[H.axis];return!h1(P[J.axis])||M>E||R<E}for(_=0;_<K;++_){if(O())continue;if(this.updateRangeFromParsed(W,J,P,F),N)break}if(N)for(_=K-1;_>=0;--_){if(O())continue;this.updateRangeFromParsed(W,J,P,F);break}return W}getAllParsedValues(J){let G=this._cachedMeta._parsed,q=[],X,N,K;for(X=0,N=G.length;X<N;++X)if(K=G[X][J.axis],h1(K))q.push(K);return q}getMaxOverflow(){return!1}getLabelAndValue(J){let G=this._cachedMeta,q=G.iScale,X=G.vScale,N=this.getParsed(J);return{label:q?""+q.getLabelForValue(N[q.axis]):"",value:X?""+X.getLabelForValue(N[X.axis]):""}}_update(J){let G=this._cachedMeta;this.update(J||"default"),G._clip=wV(s0(this.options.clip,MV(G.xScale,G.yScale,this.getMaxOverflow())))}update(J){}draw(){let J=this._ctx,G=this.chart,q=this._cachedMeta,X=q.data||[],N=G.chartArea,K=[],H=this._drawStart||0,F=this._drawCount||X.length-H,W=this.options.drawActiveElementsOnTop,M;if(q.dataset)q.dataset.draw(J,N,H,F);for(M=H;M<H+F;++M){let R=X[M];if(R.hidden)continue;if(R.active&&W)K.push(R);else R.draw(J,N)}for(M=0;M<K.length;++M)K[M].draw(J,N)}getStyle(J,G){let q=G?"active":"default";return J===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(q):this.resolveDataElementOptions(J||0,q)}getContext(J,G,q){let X=this.getDataset(),N;if(J>=0&&J<this._cachedMeta.data.length){let K=this._cachedMeta.data[J];N=K.$context||(K.$context=CV(this.getContext(),J,K)),N.parsed=this.getParsed(J),N.raw=X.data[J],N.index=N.dataIndex=J}else N=this.$context||(this.$context=TV(this.chart.getContext(),this.index)),N.dataset=X,N.index=N.datasetIndex=this.index;return N.active=!!G,N.mode=q,N}resolveDatasetElementOptions(J){return this._resolveElementOptions(this.datasetElementType.id,J)}resolveDataElementOptions(J,G){return this._resolveElementOptions(this.dataElementType.id,G,J)}_resolveElementOptions(J,G="default",q){let X=G==="active",N=this._cachedDataOpts,K=J+"-"+G,H=N[K],F=this.enableOptionSharing&&U$(q);if(H)return KR(H,F);let W=this.chart.config,M=W.datasetElementScopeKeys(this._type,J),R=X?[`${J}Hover`,"hover",J,""]:[J,""],_=W.getOptionScopes(this.getDataset(),M),P=Object.keys(u1.elements[J]),O=()=>this.getContext(q,X,G),E=W.resolveNamedOptions(_,P,O,R);if(E.$shared)E.$shared=F,N[K]=Object.freeze(KR(E,F));return E}_resolveAnimations(J,G,q){let X=this.chart,N=this._cachedDataOpts,K=`animation-${G}`,H=N[K];if(H)return H;let F;if(X.options.animation!==!1){let M=this.chart.config,R=M.datasetAnimationScopeKeys(this._type,G),_=M.getOptionScopes(this.getDataset(),R);F=M.createResolver(_,this.getContext(J,q,G))}let W=new rU(X,F&&F.animations);if(F&&F._cacheable)N[K]=Object.freeze(W);return W}getSharedOptions(J){if(!J.$shared)return;return this._sharedOptions||(this._sharedOptions=Object.assign({},J))}includeOptions(J,G){return!G||SU(J)||this.chart._animationsDisabled}_getSharedOptions(J,G){let q=this.resolveDataElementOptions(J,G),X=this._sharedOptions,N=this.getSharedOptions(q),K=this.includeOptions(G,N)||N!==X;return this.updateSharedOptions(N,G,q),{sharedOptions:N,includeOptions:K}}updateElement(J,G,q,X){if(SU(X))Object.assign(J,q);else this._resolveAnimations(G,X).update(J,q)}updateSharedOptions(J,G,q){if(J&&!SU(G))this._resolveAnimations(void 0,G).update(J,q)}_setStyle(J,G,q,X){J.active=X;let N=this.getStyle(G,X);this._resolveAnimations(G,q,X).update(J,{options:!X&&this.getSharedOptions(N)||N})}removeHoverStyle(J,G,q){this._setStyle(J,q,"active",!1)}setHoverStyle(J,G,q){this._setStyle(J,q,"active",!0)}_removeDatasetHoverStyle(){let J=this._cachedMeta.dataset;if(J)this._setStyle(J,void 0,"active",!1)}_setDatasetHoverStyle(){let J=this._cachedMeta.dataset;if(J)this._setStyle(J,void 0,"active",!0)}_resyncElements(J){let G=this._data,q=this._cachedMeta.data;for(let[H,F,W]of this._syncList)this[H](F,W);this._syncList=[];let X=q.length,N=G.length,K=Math.min(N,X);if(K)this.parse(0,K);if(N>X)this._insertElements(X,N-X,J);else if(N<X)this._removeElements(N,X-N)}_insertElements(J,G,q=!0){let X=this._cachedMeta,N=X.data,K=J+G,H,F=(W)=>{W.length+=G;for(H=W.length-1;H>=K;H--)W[H]=W[H-G]};F(N);for(H=J;H<K;++H)N[H]=new this.dataElementType;if(this._parsing)F(X._parsed);if(this.parse(J,G),q)this.updateElements(N,J,G,"reset")}updateElements(J,G,q,X){}_removeElements(J,G){let q=this._cachedMeta;if(this._parsing){let X=q._parsed.splice(J,G);if(q._stacked)UJ(q,X)}q.data.splice(J,G)}_sync(J){if(this._parsing)this._syncList.push(J);else{let[G,q,X]=J;this[G](q,X)}this.chart._dataChanges.push([this.index,...J])}_onDataPush(){let J=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-J,J])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(J,G){if(G)this._sync(["_removeElements",J,G]);let q=arguments.length-2;if(q)this._sync(["_insertElements",J,q])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function IV(J,G){if(!J._cache.$bar){let q=J.getMatchingVisibleMetas(G),X=[];for(let N=0,K=q.length;N<K;N++)X=X.concat(q[N].controller.getAllParsedValues(J));J._cache.$bar=NU(X.sort((N,K)=>N-K))}return J._cache.$bar}function VV(J){let G=J.iScale,q=IV(G,J.type),X=G._length,N,K,H,F,W=()=>{if(H===32767||H===-32768)return;if(U$(F))X=Math.min(X,Math.abs(H-F)||X);F=H};for(N=0,K=q.length;N<K;++N)H=G.getPixelForValue(q[N]),W();F=void 0;for(N=0,K=G.ticks.length;N<K;++N)H=G.getPixelForTick(N),W();return X}function AV(J,G,q,X){let N=q.barThickness,K,H;if(Q1(N))K=G.min*q.categoryPercentage,H=q.barPercentage;else K=N*X,H=1;return{chunk:K/X,ratio:H,start:G.pixels[J]-K/2}}function EV(J,G,q,X){let N=G.pixels,K=N[J],H=J>0?N[J-1]:null,F=J<N.length-1?N[J+1]:null,W=q.categoryPercentage;if(H===null)H=K-(F===null?G.end-G.start:F-K);if(F===null)F=K+K-H;let M=K-(K-Math.min(H,F))/2*W;return{chunk:Math.abs(F-H)/2*W/X,ratio:q.barPercentage,start:M}}function SV(J,G,q,X){let N=q.parse(J[0],X),K=q.parse(J[1],X),H=Math.min(N,K),F=Math.max(N,K),W=H,M=F;if(Math.abs(H)>Math.abs(F))W=F,M=H;G[q.axis]=M,G._custom={barStart:W,barEnd:M,start:N,end:K,min:H,max:F}}function G_(J,G,q,X){if(E1(J))SV(J,G,q,X);else G[q.axis]=q.parse(J,X);return G}function BR(J,G,q,X){let{iScale:N,vScale:K}=J,H=N.getLabels(),F=N===K,W=[],M,R,_,P;for(M=q,R=q+X;M<R;++M)P=G[M],_={},_[N.axis]=F||N.parse(H[M],M),W.push(G_(P,_,K,M));return W}function DU(J){return J&&J.barStart!==void 0&&J.barEnd!==void 0}function DV(J,G,q){if(J!==0)return U4(J);return(G.isHorizontal()?1:-1)*(G.min>=q?1:-1)}function jV(J){let G,q,X,N,K;if(J.horizontal)G=J.base>J.x,q="left",X="right";else G=J.base<J.y,q="bottom",X="top";if(G)N="end",K="start";else N="start",K="end";return{start:q,end:X,reverse:G,top:N,bottom:K}}function kV(J,G,q,X){let N=G.borderSkipped,K={};if(!N){J.borderSkipped=K;return}if(N===!0){J.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}let{start:H,end:F,reverse:W,top:M,bottom:R}=jV(J);if(N==="middle"&&q)if(J.enableBorderRadius=!0,(q._top||0)===X)N=M;else if((q._bottom||0)===X)N=R;else K[HR(R,H,F,W)]=!0,N=M;K[HR(N,H,F,W)]=!0,J.borderSkipped=K}function HR(J,G,q,X){if(X)J=vV(J,G,q),J=FR(J,q,G);else J=FR(J,G,q);return J}function vV(J,G,q){return J===G?q:J===q?G:J}function FR(J,G,q){return J==="start"?G:J==="end"?q:J}function bV(J,{inflateAmount:G},q){J.inflateAmount=G==="auto"?q===1?0.33:0:G}class sU extends d3{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:0.8,barPercentage:0.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(J,G,q,X){return BR(J,G,q,X)}parseArrayData(J,G,q,X){return BR(J,G,q,X)}parseObjectData(J,G,q,X){let{iScale:N,vScale:K}=J,{xAxisKey:H="x",yAxisKey:F="y"}=this._parsing,W=N.axis==="x"?H:F,M=K.axis==="x"?H:F,R=[],_,P,O,E;for(_=q,P=q+X;_<P;++_)E=G[_],O={},O[N.axis]=N.parse(f7(E,W),_),R.push(G_(f7(E,M),O,K,_));return R}updateRangeFromParsed(J,G,q,X){super.updateRangeFromParsed(J,G,q,X);let N=q._custom;if(N&&G===this._cachedMeta.vScale)J.min=Math.min(J.min,N.min),J.max=Math.max(J.max,N.max)}getMaxOverflow(){return 0}getLabelAndValue(J){let G=this._cachedMeta,{iScale:q,vScale:X}=G,N=this.getParsed(J),K=N._custom,H=DU(K)?"["+K.start+", "+K.end+"]":""+X.getLabelForValue(N[X.axis]);return{label:""+q.getLabelForValue(N[q.axis]),value:H}}initialize(){this.enableOptionSharing=!0,super.initialize();let J=this._cachedMeta;J.stack=this.getDataset().stack}update(J){let G=this._cachedMeta;this.updateElements(G.data,0,G.data.length,J)}updateElements(J,G,q,X){let N=X==="reset",{index:K,_cachedMeta:{vScale:H}}=this,F=H.getBasePixel(),W=H.isHorizontal(),M=this._getRuler(),{sharedOptions:R,includeOptions:_}=this._getSharedOptions(G,X);for(let P=G;P<G+q;P++){let O=this.getParsed(P),E=N||Q1(O[H.axis])?{base:F,head:F}:this._calculateBarValuePixels(P),V=this._calculateBarIndexPixels(P,M),I=(O._stacks||{})[H.axis],j={horizontal:W,base:E.base,enableBorderRadius:!I||DU(O._custom)||K===I._top||K===I._bottom,x:W?E.head:V.center,y:W?V.center:E.head,height:W?V.size:Math.abs(E.size),width:W?Math.abs(E.size):V.size};if(_)j.options=R||this.resolveDataElementOptions(P,J[P].active?"active":X);let h=j.options||J[P].options;kV(j,h,I,K),bV(j,h,M.ratio),this.updateElement(J[P],P,j,X)}}_getStacks(J,G){let{iScale:q}=this._cachedMeta,X=q.getMatchingVisibleMetas(this._type).filter((M)=>M.controller.options.grouped),N=q.options.stacked,K=[],H=this._cachedMeta.controller.getParsed(G),F=H&&H[q.axis],W=(M)=>{let R=M._parsed.find((P)=>P[q.axis]===F),_=R&&R[M.vScale.axis];if(Q1(_)||isNaN(_))return!0};for(let M of X){if(G!==void 0&&W(M))continue;if(N===!1||K.indexOf(M.stack)===-1||N===void 0&&M.stack===void 0)K.push(M.stack);if(M.index===J)break}if(!K.length)K.push(void 0);return K}_getStackCount(J){return this._getStacks(void 0,J).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){let J=this.chart.scales,G=this.chart.options.indexAxis;return Object.keys(J).filter((q)=>J[q].axis===G).shift()}_getAxis(){let J={},G=this.getFirstScaleIdForIndexAxis();for(let q of this.chart.data.datasets)J[s0(this.chart.options.indexAxis==="x"?q.xAxisID:q.yAxisID,G)]=!0;return Object.keys(J)}_getStackIndex(J,G,q){let X=this._getStacks(J,q),N=G!==void 0?X.indexOf(G):-1;return N===-1?X.length-1:N}_getRuler(){let J=this.options,G=this._cachedMeta,q=G.iScale,X=[],N,K;for(N=0,K=G.data.length;N<K;++N)X.push(q.getPixelForValue(this.getParsed(N)[q.axis],N));let H=J.barThickness;return{min:H||VV(G),pixels:X,start:q._startPixel,end:q._endPixel,stackCount:this._getStackCount(),scale:q,grouped:J.grouped,ratio:H?1:J.categoryPercentage*J.barPercentage}}_calculateBarValuePixels(J){let{_cachedMeta:{vScale:G,_stacked:q,index:X},options:{base:N,minBarLength:K}}=this,H=N||0,F=this.getParsed(J),W=F._custom,M=DU(W),R=F[G.axis],_=0,P=q?this.applyStack(G,F,q):R,O,E;if(P!==R)_=P-R,P=R;if(M){if(R=W.barStart,P=W.barEnd-W.barStart,R!==0&&U4(R)!==U4(W.barEnd))_=0;_+=R}let V=!Q1(N)&&!M?N:_,I=G.getPixelForValue(V);if(this.chart.getDataVisibility(J))O=G.getPixelForValue(_+P);else O=I;if(E=O-I,Math.abs(E)<K){if(E=DV(E,G,H)*K,R===H)I-=E/2;let j=G.getPixelForDecimal(0),h=G.getPixelForDecimal(1),p=Math.min(j,h),n=Math.max(j,h);if(I=Math.max(Math.min(I,n),p),O=I+E,q&&!M)F._stacks[G.axis]._visualValues[X]=G.getValueForPixel(O)-G.getValueForPixel(I)}if(I===G.getPixelForValue(H)){let j=U4(E)*G.getLineWidthForValue(H)/2;I+=j,E-=j}return{size:E,base:I,head:O,center:O+E/2}}_calculateBarIndexPixels(J,G){let q=G.scale,X=this.options,N=X.skipNull,K=s0(X.maxBarThickness,1/0),H,F,W=this._getAxisCount();if(G.grouped){let M=N?this._getStackCount(J):G.stackCount,R=X.barThickness==="flex"?EV(J,G,X,M*W):AV(J,G,X,M*W),_=this.chart.options.indexAxis==="x"?this.getDataset().xAxisID:this.getDataset().yAxisID,P=this._getAxis().indexOf(s0(_,this.getFirstScaleIdForIndexAxis())),O=this._getStackIndex(this.index,this._cachedMeta.stack,N?J:void 0)+P;H=R.start+R.chunk*O+R.chunk/2,F=Math.min(K,R.chunk*R.ratio)}else H=q.getPixelForValue(this.getParsed(J)[q.axis],J),F=Math.min(K,G.min*G.ratio);return{base:H-F/2,head:H+F/2,center:H,size:F}}draw(){let J=this._cachedMeta,G=J.vScale,q=J.data,X=q.length,N=0;for(;N<X;++N)if(this.getParsed(N)[G.axis]!==null&&!q[N].hidden)q[N].draw(this._ctx)}}class nU extends d3{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(J){let G=this._cachedMeta,{dataset:q,data:X=[],_dataset:N}=G,K=this.chart._animationsDisabled,{start:H,count:F}=xw(G,X,K);if(this._drawStart=H,this._drawCount=F,mw(G))H=0,F=X.length;q._chart=this.chart,q._datasetIndex=this.index,q._decimated=!!N._decimated,q.points=X;let W=this.resolveDatasetElementOptions(J);if(!this.options.showLine)W.borderWidth=0;W.segment=this.options.segment,this.updateElement(q,void 0,{animated:!K,options:W},J),this.updateElements(X,H,F,J)}updateElements(J,G,q,X){let N=X==="reset",{iScale:K,vScale:H,_stacked:F,_dataset:W}=this._cachedMeta,{sharedOptions:M,includeOptions:R}=this._getSharedOptions(G,X),_=K.axis,P=H.axis,{spanGaps:O,segment:E}=this.options,V=B$(O)?O:Number.POSITIVE_INFINITY,I=this.chart._animationsDisabled||N||X==="none",j=G+q,h=J.length,p=G>0&&this.getParsed(G-1);for(let n=0;n<h;++n){let a=J[n],Q0=I?a:{};if(n<G||n>=j){Q0.skip=!0;continue}let t=this.getParsed(n),i=Q1(t[P]),X0=Q0[_]=K.getPixelForValue(t[_],n),d=Q0[P]=N||i?H.getBasePixel():H.getPixelForValue(F?this.applyStack(H,t,F):t[P],n);if(Q0.skip=isNaN(X0)||isNaN(d)||i,Q0.stop=n>0&&Math.abs(t[_]-p[_])>V,E)Q0.parsed=t,Q0.raw=W.data[n];if(R)Q0.options=M||this.resolveDataElementOptions(n,a.active?"active":X);if(!I)this.updateElement(a,n,Q0,X);p=t}}getMaxOverflow(){let J=this._cachedMeta,G=J.dataset,q=G.options&&G.options.borderWidth||0,X=J.data||[];if(!X.length)return q;let N=X[0].size(this.resolveDataElementOptions(0)),K=X[X.length-1].size(this.resolveDataElementOptions(X.length-1));return Math.max(q,N,K)/2}draw(){let J=this._cachedMeta;J.dataset.updateControlPoints(this.chart.chartArea,J.iScale.axis),super.draw()}}function g7(){throw Error("This method is not implemented: Check that a complete date adapter is provided.")}class oU{static override(J){Object.assign(oU.prototype,J)}options;constructor(J){this.options=J||{}}init(){}formats(){return g7()}parse(){return g7()}format(){return g7()}add(){return g7()}diff(){return g7()}startOf(){return g7()}endOf(){return g7()}}var fV={_date:oU};function yV(J,G,q,X){let{controller:N,data:K,_sorted:H}=J,F=N._cachedMeta.iScale,W=J.dataset?J.dataset.options?J.dataset.options.spanGaps:null:null;if(F&&G===F.axis&&G!=="r"&&H&&K.length){let M=F._reversePixels?bw:V2;if(!X){let R=M(K,G,q);if(W){let{vScale:_}=N._cachedMeta,{_parsed:P}=J,O=P.slice(0,R.lo+1).reverse().findIndex((V)=>!Q1(V[_.axis]));R.lo-=Math.max(0,O);let E=P.slice(R.hi).findIndex((V)=>!Q1(V[_.axis]));R.hi+=Math.max(0,E)}return R}else if(N._sharedOptions){let R=K[0],_=typeof R.getRange==="function"&&R.getRange(G);if(_){let P=M(K,G,q-_),O=M(K,G,q+_);return{lo:P.lo,hi:O.hi}}}}return{lo:0,hi:K.length-1}}function LJ(J,G,q,X,N){let K=J.getSortedVisibleDatasetMetas(),H=q[G];for(let F=0,W=K.length;F<W;++F){let{index:M,data:R}=K[F],{lo:_,hi:P}=yV(K[F],G,H,N);for(let O=_;O<=P;++O){let E=R[O];if(!E.skip)X(E,M,O)}}}function gV(J){let G=J.indexOf("x")!==-1,q=J.indexOf("y")!==-1;return function(X,N){let K=G?Math.abs(X.x-N.x):0,H=q?Math.abs(X.y-N.y):0;return Math.sqrt(Math.pow(K,2)+Math.pow(H,2))}}function jU(J,G,q,X,N){let K=[];if(!N&&!J.isPointInArea(G))return K;return LJ(J,q,G,function(F,W,M){if(!N&&!x4(F,J.chartArea,0))return;if(F.inRange(G.x,G.y,X))K.push({element:F,datasetIndex:W,index:M})},!0),K}function hV(J,G,q,X){let N=[];function K(H,F,W){let{startAngle:M,endAngle:R}=H.getProps(["startAngle","endAngle"],X),{angle:_}=kw(H,{x:G.x,y:G.y});if(YU(_,M,R))N.push({element:H,datasetIndex:F,index:W})}return LJ(J,q,G,K),N}function uV(J,G,q,X,N,K){let H=[],F=gV(q),W=Number.POSITIVE_INFINITY;function M(R,_,P){let O=R.inRange(G.x,G.y,N);if(X&&!O)return;let E=R.getCenterPoint(N);if(!(!!K||J.isPointInArea(E))&&!O)return;let I=F(G,E);if(I<W)H=[{element:R,datasetIndex:_,index:P}],W=I;else if(I===W)H.push({element:R,datasetIndex:_,index:P})}return LJ(J,q,G,M),H}function kU(J,G,q,X,N,K){if(!K&&!J.isPointInArea(G))return[];return q==="r"&&!X?hV(J,G,q,N):uV(J,G,q,X,N,K)}function WR(J,G,q,X,N){let K=[],H=q==="x"?"inXRange":"inYRange",F=!1;if(LJ(J,q,G,(W,M,R)=>{if(W[H]&&W[H](G[q],N))K.push({element:W,datasetIndex:M,index:R}),F=F||W.inRange(G.x,G.y,N)}),X&&!F)return[];return K}var xV={evaluateInteractionItems:LJ,modes:{index(J,G,q,X){let N=k2(G,J),K=q.axis||"x",H=q.includeInvisible||!1,F=q.intersect?jU(J,N,K,X,H):kU(J,N,K,!1,X,H),W=[];if(!F.length)return[];return J.getSortedVisibleDatasetMetas().forEach((M)=>{let R=F[0].index,_=M.data[R];if(_&&!_.skip)W.push({element:_,datasetIndex:M.index,index:R})}),W},dataset(J,G,q,X){let N=k2(G,J),K=q.axis||"xy",H=q.includeInvisible||!1,F=q.intersect?jU(J,N,K,X,H):kU(J,N,K,!1,X,H);if(F.length>0){let W=F[0].datasetIndex,M=J.getDatasetMeta(W).data;F=[];for(let R=0;R<M.length;++R)F.push({element:M[R],datasetIndex:W,index:R})}return F},point(J,G,q,X){let N=k2(G,J),K=q.axis||"xy",H=q.includeInvisible||!1;return jU(J,N,K,X,H)},nearest(J,G,q,X){let N=k2(G,J),K=q.axis||"xy",H=q.includeInvisible||!1;return kU(J,N,K,q.intersect,X,H)},x(J,G,q,X){let N=k2(G,J);return WR(J,N,"x",q.intersect,X)},y(J,G,q,X){let N=k2(G,J);return WR(J,N,"y",q.intersect,X)}}},q_=["left","top","right","bottom"];function KJ(J,G){return J.filter((q)=>q.pos===G)}function zR(J,G){return J.filter((q)=>q_.indexOf(q.pos)===-1&&q.box.axis===G)}function BJ(J,G){return J.sort((q,X)=>{let N=G?X:q,K=G?q:X;return N.weight===K.weight?N.index-K.index:N.weight-K.weight})}function mV(J){let G=[],q,X,N,K,H,F;for(q=0,X=(J||[]).length;q<X;++q)N=J[q],{position:K,options:{stack:H,stackWeight:F=1}}=N,G.push({index:q,box:N,pos:K,horizontal:N.isHorizontal(),weight:N.weight,stack:H&&K+H,stackWeight:F});return G}function dV(J){let G={};for(let q of J){let{stack:X,pos:N,stackWeight:K}=q;if(!X||!q_.includes(N))continue;let H=G[X]||(G[X]={count:0,placed:0,weight:0,size:0});H.count++,H.weight+=K}return G}function pV(J,G){let q=dV(J),{vBoxMaxWidth:X,hBoxMaxHeight:N}=G,K,H,F;for(K=0,H=J.length;K<H;++K){F=J[K];let{fullSize:W}=F.box,M=q[F.stack],R=M&&F.stackWeight/M.weight;if(F.horizontal)F.width=R?R*X:W&&G.availableWidth,F.height=N;else F.width=X,F.height=R?R*N:W&&G.availableHeight}return q}function cV(J){let G=mV(J),q=BJ(G.filter((M)=>M.box.fullSize),!0),X=BJ(KJ(G,"left"),!0),N=BJ(KJ(G,"right")),K=BJ(KJ(G,"top"),!0),H=BJ(KJ(G,"bottom")),F=zR(G,"x"),W=zR(G,"y");return{fullSize:q,leftAndTop:X.concat(K),rightAndBottom:N.concat(W).concat(H).concat(F),chartArea:KJ(G,"chartArea"),vertical:X.concat(N).concat(W),horizontal:K.concat(H).concat(F)}}function MR(J,G,q,X){return Math.max(J[q],G[q])+Math.max(J[X],G[X])}function Y_(J,G){J.top=Math.max(J.top,G.top),J.left=Math.max(J.left,G.left),J.bottom=Math.max(J.bottom,G.bottom),J.right=Math.max(J.right,G.right)}function lV(J,G,q,X){let{pos:N,box:K}=q,H=J.maxPadding;if(!$1(N)){if(q.size)J[N]-=q.size;let _=X[q.stack]||{size:0,count:1};_.size=Math.max(_.size,q.horizontal?K.height:K.width),q.size=_.size/_.count,J[N]+=q.size}if(K.getPadding)Y_(H,K.getPadding());let F=Math.max(0,G.outerWidth-MR(H,J,"left","right")),W=Math.max(0,G.outerHeight-MR(H,J,"top","bottom")),M=F!==J.w,R=W!==J.h;return J.w=F,J.h=W,q.horizontal?{same:M,other:R}:{same:R,other:M}}function rV(J){let G=J.maxPadding;function q(X){let N=Math.max(G[X]-J[X],0);return J[X]+=N,N}J.y+=q("top"),J.x+=q("left"),q("right"),q("bottom")}function sV(J,G){let q=G.maxPadding;function X(N){let K={left:0,top:0,right:0,bottom:0};return N.forEach((H)=>{K[H]=Math.max(G[H],q[H])}),K}return J?X(["left","right"]):X(["top","bottom"])}function WJ(J,G,q,X){let N=[],K,H,F,W,M,R;for(K=0,H=J.length,M=0;K<H;++K){F=J[K],W=F.box,W.update(F.width||G.w,F.height||G.h,sV(F.horizontal,G));let{same:_,other:P}=lV(G,q,F,X);if(M|=_&&N.length,R=R||P,!W.fullSize)N.push(F)}return M&&WJ(N,G,q,X)||R}function b3(J,G,q,X,N){J.top=q,J.left=G,J.right=G+X,J.bottom=q+N,J.width=X,J.height=N}function wR(J,G,q,X){let N=q.padding,{x:K,y:H}=G;for(let F of J){let W=F.box,M=X[F.stack]||{count:1,placed:0,weight:1},R=F.stackWeight/M.weight||1;if(F.horizontal){let _=G.w*R,P=M.size||W.height;if(U$(M.start))H=M.start;if(W.fullSize)b3(W,N.left,H,q.outerWidth-N.right-N.left,P);else b3(W,G.left+M.placed,H,_,P);M.start=H,M.placed+=_,H=W.bottom}else{let _=G.h*R,P=M.size||W.width;if(U$(M.start))K=M.start;if(W.fullSize)b3(W,K,N.top,P,q.outerHeight-N.bottom-N.top);else b3(W,K,G.top+M.placed,P,_);M.start=K,M.placed+=_,K=W.right}}G.x=K,G.y=H}var c6={addBox(J,G){if(!J.boxes)J.boxes=[];G.fullSize=G.fullSize||!1,G.position=G.position||"top",G.weight=G.weight||0,G._layers=G._layers||function(){return[{z:0,draw(q){G.draw(q)}}]},J.boxes.push(G)},removeBox(J,G){let q=J.boxes?J.boxes.indexOf(G):-1;if(q!==-1)J.boxes.splice(q,1)},configure(J,G,q){G.fullSize=q.fullSize,G.position=q.position,G.weight=q.weight},update(J,G,q,X){if(!J)return;let N=T5(J.options.layout.padding),K=Math.max(G-N.width,0),H=Math.max(q-N.height,0),F=cV(J.boxes),W=F.vertical,M=F.horizontal;F1(J.boxes,(V)=>{if(typeof V.beforeLayout==="function")V.beforeLayout()});let R=W.reduce((V,I)=>I.box.options&&I.box.options.display===!1?V:V+1,0)||1,_=Object.freeze({outerWidth:G,outerHeight:q,padding:N,availableWidth:K,availableHeight:H,vBoxMaxWidth:K/2/R,hBoxMaxHeight:H/2}),P=Object.assign({},N);Y_(P,T5(X));let O=Object.assign({maxPadding:P,w:K,h:H,x:N.left,y:N.top},N),E=pV(W.concat(M),_);if(WJ(F.fullSize,O,_,E),WJ(W,O,_,E),WJ(M,O,_,E))WJ(W,O,_,E);rV(O),wR(F.leftAndTop,O,_,E),O.x+=O.w,O.y+=O.h,wR(F.rightAndBottom,O,_,E),J.chartArea={left:O.left,top:O.top,right:O.left+O.w,bottom:O.top+O.h,height:O.h,width:O.w},F1(F.chartArea,(V)=>{let I=V.box;Object.assign(I,J.chartArea),I.update(O.w,O.h,{left:0,top:0,right:0,bottom:0})})}};class aU{acquireContext(J,G){}releaseContext(J){return!1}addEventListener(J,G,q){}removeEventListener(J,G,q){}getDevicePixelRatio(){return 1}getMaximumSize(J,G,q,X){return G=Math.max(0,G||J.width),q=q||J.height,{width:G,height:Math.max(0,X?Math.floor(G/X):q)}}isAttached(J){return!0}updateConfig(J){}}class X_ extends aU{acquireContext(J){return J&&J.getContext&&J.getContext("2d")||null}updateConfig(J){J.options.animation=!1}}var u3="$chartjs",nV={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},RR=(J)=>J===null||J==="";function oV(J,G){let q=J.style,X=J.getAttribute("height"),N=J.getAttribute("width");if(J[u3]={initial:{height:X,width:N,style:{display:q.display,height:q.height,width:q.width}}},q.display=q.display||"block",q.boxSizing=q.boxSizing||"border-box",RR(N)){let K=PU(J,"width");if(K!==void 0)J.width=K}if(RR(X))if(J.style.height==="")J.height=J.width/(G||2);else{let K=PU(J,"height");if(K!==void 0)J.height=K}return J}var N_=$R?{passive:!0}:!1;function aV(J,G,q){if(J)J.addEventListener(G,q,N_)}function iV(J,G,q){if(J&&J.canvas)J.canvas.removeEventListener(G,q,N_)}function tV(J,G){let q=nV[J.type]||J.type,{x:X,y:N}=k2(J,G);return{type:q,chart:G,native:J,x:X!==void 0?X:null,y:N!==void 0?N:null}}function m3(J,G){for(let q of J)if(q===G||q.contains(G))return!0}function eV(J,G,q){let X=J.canvas,N=new MutationObserver((K)=>{let H=!1;for(let F of K)H=H||m3(F.addedNodes,X),H=H&&!m3(F.removedNodes,X);if(H)q()});return N.observe(document,{childList:!0,subtree:!0}),N}function $A(J,G,q){let X=J.canvas,N=new MutationObserver((K)=>{let H=!1;for(let F of K)H=H||m3(F.removedNodes,X),H=H&&!m3(F.addedNodes,X);if(H)q()});return N.observe(document,{childList:!0,subtree:!0}),N}var wJ=new Map,_R=0;function U_(){let J=window.devicePixelRatio;if(J===_R)return;_R=J,wJ.forEach((G,q)=>{if(q.currentDevicePixelRatio!==J)G()})}function ZA(J,G){if(!wJ.size)window.addEventListener("resize",U_);wJ.set(J,G)}function JA(J){if(wJ.delete(J),!wJ.size)window.removeEventListener("resize",U_)}function QA(J,G,q){let X=J.canvas,N=X&&k3(X);if(!N)return;let K=KU((F,W)=>{let M=N.clientWidth;if(q(F,W),M<N.clientWidth)q()},window),H=new ResizeObserver((F)=>{let W=F[0],M=W.contentRect.width,R=W.contentRect.height;if(M===0&&R===0)return;K(M,R)});return H.observe(N),ZA(J,K),H}function vU(J,G,q){if(q)q.disconnect();if(G==="resize")JA(J)}function GA(J,G,q){let X=J.canvas,N=KU((K)=>{if(J.ctx!==null)q(tV(K,J))},J);return aV(X,G,N),N}class K_ extends aU{acquireContext(J,G){let q=J&&J.getContext&&J.getContext("2d");if(q&&q.canvas===J)return oV(J,G),q;return null}releaseContext(J){let G=J.canvas;if(!G[u3])return!1;let q=G[u3].initial;["height","width"].forEach((N)=>{let K=q[N];if(Q1(K))G.removeAttribute(N);else G.setAttribute(N,K)});let X=q.style||{};return Object.keys(X).forEach((N)=>{G.style[N]=X[N]}),G.width=G.width,delete G[u3],!0}addEventListener(J,G,q){this.removeEventListener(J,G);let X=J.$proxies||(J.$proxies={}),K={attach:eV,detach:$A,resize:QA}[G]||GA;X[G]=K(J,G,q)}removeEventListener(J,G){let q=J.$proxies||(J.$proxies={}),X=q[G];if(!X)return;({attach:vU,detach:vU,resize:vU}[G]||iV)(J,G,X),q[G]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(J,G,q,X){return ew(J,G,q,X)}isAttached(J){let G=J&&k3(J);return!!(G&&G.isConnected)}}function qA(J){if(!j3()||typeof OffscreenCanvas<"u"&&J instanceof OffscreenCanvas)return X_;return K_}class E8{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(J){let{x:G,y:q}=this.getProps(["x","y"],J);return{x:G,y:q}}hasValue(){return B$(this.x)&&B$(this.y)}getProps(J,G){let q=this.$animations;if(!G||!q)return this;let X={};return J.forEach((N)=>{X[N]=q[N]&&q[N].active()?q[N]._to:this[N]}),X}}function YA(J,G){let q=J.options.ticks,X=XA(J),N=Math.min(q.maxTicksLimit||X,X),K=q.major.enabled?UA(G):[],H=K.length,F=K[0],W=K[H-1],M=[];if(H>N)return KA(G,M,K,H/N),M;let R=NA(K,G,N);if(H>0){let _,P,O=H>1?Math.round((W-F)/(H-1)):null;f3(G,M,R,Q1(O)?0:F-O,F);for(_=0,P=H-1;_<P;_++)f3(G,M,R,K[_],K[_+1]);return f3(G,M,R,W,Q1(O)?G.length:W+O),M}return f3(G,M,R),M}function XA(J){let G=J.options.offset,q=J._tickSize(),X=J._length/q+(G?0:1),N=J._maxLength/q;return Math.floor(Math.min(X,N))}function NA(J,G,q){let X=BA(J),N=G.length/q;if(!X)return Math.max(N,1);let K=Dw(X);for(let H=0,F=K.length-1;H<F;H++){let W=K[H];if(W>N)return W}return Math.max(N,1)}function UA(J){let G=[],q,X;for(q=0,X=J.length;q<X;q++)if(J[q].major)G.push(q);return G}function KA(J,G,q,X){let N=0,K=q[0],H;X=Math.ceil(X);for(H=0;H<J.length;H++)if(H===K)G.push(J[H]),N++,K=q[N*X]}function f3(J,G,q,X,N){let K=s0(X,0),H=Math.min(s0(N,J.length),J.length),F=0,W,M,R;if(q=Math.ceil(q),N)W=N-X,q=W/Math.floor(W/q);R=K;while(R<0)F++,R=Math.round(K+F*q);for(M=Math.max(K,0);M<H;M++)if(M===R)G.push(J[M]),F++,R=Math.round(K+F*q)}function BA(J){let G=J.length,q,X;if(G<2)return!1;for(X=J[0],q=1;q<G;++q)if(J[q]-J[q-1]!==X)return!1;return X}var HA=(J)=>J==="left"?"right":J==="right"?"left":J,LR=(J,G,q)=>G==="top"||G==="left"?J[G]+q:J[G]-q,PR=(J,G)=>Math.min(G||J,J);function TR(J,G){let q=[],X=J.length/G,N=J.length,K=0;for(;K<N;K+=X)q.push(J[Math.floor(K)]);return q}function FA(J,G,q){let X=J.ticks.length,N=Math.min(G,X-1),K=J._startPixel,H=J._endPixel,F=0.000001,W=J.getPixelForTick(N),M;if(q){if(X===1)M=Math.max(W-K,H-W);else if(G===0)M=(J.getPixelForTick(1)-W)/2;else M=(W-J.getPixelForTick(N-1))/2;if(W+=N<G?M:-M,W<K-0.000001||W>H+0.000001)return}return W}function WA(J,G){F1(J,(q)=>{let X=q.gc,N=X.length/2,K;if(N>G){for(K=0;K<N;++K)delete q.data[X[K]];X.splice(0,N)}})}function HJ(J){return J.drawTicks?J.tickLength:0}function CR(J,G){if(!J.display)return 0;let q=Q5(J.font,G),X=T5(J.padding);return(E1(J.text)?J.text.length:1)*q.lineHeight+X.height}function zA(J,G){return I8(J,{scale:G,type:"scale"})}function MA(J,G,q){return I8(J,{tick:q,index:G,type:"tick"})}function wA(J,G,q){let X=V3(J);if(q&&G!=="right"||!q&&G==="right")X=HA(X);return X}function RA(J,G,q,X){let{top:N,left:K,bottom:H,right:F,chart:W}=J,{chartArea:M,scales:R}=W,_=0,P,O,E,V=H-N,I=F-K;if(J.isHorizontal()){if(O=P5(X,K,F),$1(q)){let j=Object.keys(q)[0],h=q[j];E=R[j].getPixelForValue(h)+V-G}else if(q==="center")E=(M.bottom+M.top)/2+V-G;else E=LR(J,q,G);P=F-K}else{if($1(q)){let j=Object.keys(q)[0],h=q[j];O=R[j].getPixelForValue(h)-I+G}else if(q==="center")O=(M.left+M.right)/2-I+G;else O=LR(J,q,G);E=P5(X,H,N),_=q==="left"?-t5:t5}return{titleX:O,titleY:E,maxWidth:P,rotation:_}}class u7 extends E8{constructor(J){super();this.id=J.id,this.type=J.type,this.options=void 0,this.ctx=J.ctx,this.chart=J.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(J){this.options=J.setContext(this.getContext()),this.axis=J.axis,this._userMin=this.parse(J.min),this._userMax=this.parse(J.max),this._suggestedMin=this.parse(J.suggestedMin),this._suggestedMax=this.parse(J.suggestedMax)}parse(J,G){return J}getUserBounds(){let{_userMin:J,_userMax:G,_suggestedMin:q,_suggestedMax:X}=this;return J=Z6(J,Number.POSITIVE_INFINITY),G=Z6(G,Number.NEGATIVE_INFINITY),q=Z6(q,Number.POSITIVE_INFINITY),X=Z6(X,Number.NEGATIVE_INFINITY),{min:Z6(J,q),max:Z6(G,X),minDefined:h1(J),maxDefined:h1(G)}}getMinMax(J){let{min:G,max:q,minDefined:X,maxDefined:N}=this.getUserBounds(),K;if(X&&N)return{min:G,max:q};let H=this.getMatchingVisibleMetas();for(let F=0,W=H.length;F<W;++F){if(K=H[F].controller.getMinMax(this,J),!X)G=Math.min(G,K.min);if(!N)q=Math.max(q,K.max)}return G=N&&G>q?q:G,q=X&&G>q?G:q,{min:Z6(G,Z6(q,G)),max:Z6(q,Z6(G,q))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){let J=this.chart.data;return this.options.labels||(this.isHorizontal()?J.xLabels:J.yLabels)||J.labels||[]}getLabelItems(J=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(J))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){O1(this.options.beforeUpdate,[this])}update(J,G,q){let{beginAtZero:X,grace:N,ticks:K}=this.options,H=K.sampleSize;if(this.beforeUpdate(),this.maxWidth=J,this.maxHeight=G,this._margins=q=Object.assign({left:0,right:0,top:0,bottom:0},q),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+q.left+q.right:this.height+q.top+q.bottom,!this._dataLimitsCached)this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=sw(this,N,X),this._dataLimitsCached=!0;this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();let F=H<this.ticks.length;if(this._convertTicksToLabels(F?TR(this.ticks,H):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),K.display&&(K.autoSkip||K.source==="auto"))this.ticks=YA(this,this.ticks),this._labelSizes=null,this.afterAutoSkip();if(F)this._convertTicksToLabels(this.ticks);this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let J=this.options.reverse,G,q;if(this.isHorizontal())G=this.left,q=this.right;else G=this.top,q=this.bottom,J=!J;this._startPixel=G,this._endPixel=q,this._reversePixels=J,this._length=q-G,this._alignToPixels=this.options.alignToPixels}afterUpdate(){O1(this.options.afterUpdate,[this])}beforeSetDimensions(){O1(this.options.beforeSetDimensions,[this])}setDimensions(){if(this.isHorizontal())this.width=this.maxWidth,this.left=0,this.right=this.width;else this.height=this.maxHeight,this.top=0,this.bottom=this.height;this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){O1(this.options.afterSetDimensions,[this])}_callHooks(J){this.chart.notifyPlugins(J,this.getContext()),O1(this.options[J],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){O1(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(J){let G=this.options.ticks,q,X,N;for(q=0,X=J.length;q<X;q++)N=J[q],N.label=O1(G.callback,[N.value,q,J],this)}afterTickToLabelConversion(){O1(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){O1(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){let J=this.options,G=J.ticks,q=PR(this.ticks.length,J.ticks.maxTicksLimit),X=G.minRotation||0,N=G.maxRotation,K=X,H,F,W;if(!this._isVisible()||!G.display||X>=N||q<=1||!this.isHorizontal()){this.labelRotation=X;return}let M=this._getLabelSizes(),R=M.widest.width,_=M.highest.height,P=$6(this.chart.width-R,0,this.maxWidth);if(H=J.offset?this.maxWidth/q:P/(q-1),R+6>H)H=P/(q-(J.offset?0.5:1)),F=this.maxHeight-HJ(J.grid)-G.padding-CR(J.title,this.chart.options.font),W=Math.sqrt(R*R+_*_),K=O3(Math.min(Math.asin($6((M.highest.height+6)/H,-1,1)),Math.asin($6(F/W,-1,1))-Math.asin($6(_/W,-1,1)))),K=Math.max(X,Math.min(N,K));this.labelRotation=K}afterCalculateLabelRotation(){O1(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){O1(this.options.beforeFit,[this])}fit(){let J={width:0,height:0},{chart:G,options:{ticks:q,title:X,grid:N}}=this,K=this._isVisible(),H=this.isHorizontal();if(K){let F=CR(X,G.options.font);if(H)J.width=this.maxWidth,J.height=HJ(N)+F;else J.height=this.maxHeight,J.width=HJ(N)+F;if(q.display&&this.ticks.length){let{first:W,last:M,widest:R,highest:_}=this._getLabelSizes(),P=q.padding*2,O=C8(this.labelRotation),E=Math.cos(O),V=Math.sin(O);if(H){let I=q.mirror?0:V*R.width+E*_.height;J.height=Math.min(this.maxHeight,J.height+I+P)}else{let I=q.mirror?0:E*R.width+V*_.height;J.width=Math.min(this.maxWidth,J.width+I+P)}this._calculatePadding(W,M,V,E)}}if(this._handleMargins(),H)this.width=this._length=G.width-this._margins.left-this._margins.right,this.height=J.height;else this.width=J.width,this.height=this._length=G.height-this._margins.top-this._margins.bottom}_calculatePadding(J,G,q,X){let{ticks:{align:N,padding:K},position:H}=this.options,F=this.labelRotation!==0,W=H!=="top"&&this.axis==="x";if(this.isHorizontal()){let M=this.getPixelForTick(0)-this.left,R=this.right-this.getPixelForTick(this.ticks.length-1),_=0,P=0;if(F)if(W)_=X*J.width,P=q*G.height;else _=q*J.height,P=X*G.width;else if(N==="start")P=G.width;else if(N==="end")_=J.width;else if(N!=="inner")_=J.width/2,P=G.width/2;this.paddingLeft=Math.max((_-M+K)*this.width/(this.width-M),0),this.paddingRight=Math.max((P-R+K)*this.width/(this.width-R),0)}else{let M=G.height/2,R=J.height/2;if(N==="start")M=0,R=J.height;else if(N==="end")M=G.height,R=0;this.paddingTop=M+K,this.paddingBottom=R+K}}_handleMargins(){if(this._margins)this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom)}afterFit(){O1(this.options.afterFit,[this])}isHorizontal(){let{axis:J,position:G}=this.options;return G==="top"||G==="bottom"||J==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(J){this.beforeTickToLabelConversion(),this.generateTickLabels(J);let G,q;for(G=0,q=J.length;G<q;G++)if(Q1(J[G].label))J.splice(G,1),q--,G--;this.afterTickToLabelConversion()}_getLabelSizes(){let J=this._labelSizes;if(!J){let G=this.options.ticks.sampleSize,q=this.ticks;if(G<q.length)q=TR(q,G);this._labelSizes=J=this._computeLabelSizes(q,q.length,this.options.ticks.maxTicksLimit)}return J}_computeLabelSizes(J,G,q){let{ctx:X,_longestTextCache:N}=this,K=[],H=[],F=Math.floor(G/PR(G,q)),W=0,M=0,R,_,P,O,E,V,I,j,h,p,n;for(R=0;R<G;R+=F){if(O=J[R].label,E=this._resolveTickFontOptions(R),X.font=V=E.string,I=N[V]=N[V]||{data:{},gc:[]},j=E.lineHeight,h=p=0,!Q1(O)&&!E1(O))h=QJ(X,I.data,I.gc,h,O),p=j;else if(E1(O)){for(_=0,P=O.length;_<P;++_)if(n=O[_],!Q1(n)&&!E1(n))h=QJ(X,I.data,I.gc,h,n),p+=j}K.push(h),H.push(p),W=Math.max(h,W),M=Math.max(p,M)}WA(N,G);let a=K.indexOf(W),Q0=H.indexOf(M),t=(i)=>({width:K[i]||0,height:H[i]||0});return{first:t(0),last:t(G-1),widest:t(a),highest:t(Q0),widths:K,heights:H}}getLabelForValue(J){return J}getPixelForValue(J,G){return NaN}getValueForPixel(J){}getPixelForTick(J){let G=this.ticks;if(J<0||J>G.length-1)return null;return this.getPixelForValue(G[J].value)}getPixelForDecimal(J){if(this._reversePixels)J=1-J;let G=this._startPixel+J*this._length;return vw(this._alignToPixels?S2(this.chart,G,0):G)}getDecimalForPixel(J){let G=(J-this._startPixel)/this._length;return this._reversePixels?1-G:G}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){let{min:J,max:G}=this;return J<0&&G<0?G:J>0&&G>0?J:0}getContext(J){let G=this.ticks||[];if(J>=0&&J<G.length){let q=G[J];return q.$context||(q.$context=MA(this.getContext(),J,q))}return this.$context||(this.$context=zA(this.chart.getContext(),this))}_tickSize(){let J=this.options.ticks,G=C8(this.labelRotation),q=Math.abs(Math.cos(G)),X=Math.abs(Math.sin(G)),N=this._getLabelSizes(),K=J.autoSkipPadding||0,H=N?N.widest.width+K:0,F=N?N.highest.height+K:0;return this.isHorizontal()?F*q>H*X?H/q:F/X:F*X<H*q?F/q:H/X}_isVisible(){let J=this.options.display;if(J!=="auto")return!!J;return this.getMatchingVisibleMetas().length>0}_computeGridLineItems(J){let G=this.axis,q=this.chart,X=this.options,{grid:N,position:K,border:H}=X,F=N.offset,W=this.isHorizontal(),R=this.ticks.length+(F?1:0),_=HJ(N),P=[],O=H.setContext(this.getContext()),E=O.display?O.width:0,V=E/2,I=function(l){return S2(q,l,E)},j,h,p,n,a,Q0,t,i,X0,d,H0,P0;if(K==="top")j=I(this.bottom),Q0=this.bottom-_,i=j-V,d=I(J.top)+V,P0=J.bottom;else if(K==="bottom")j=I(this.top),d=J.top,P0=I(J.bottom)-V,Q0=j+V,i=this.top+_;else if(K==="left")j=I(this.right),a=this.right-_,t=j-V,X0=I(J.left)+V,H0=J.right;else if(K==="right")j=I(this.left),X0=J.left,H0=I(J.right)-V,a=j+V,t=this.left+_;else if(G==="x"){if(K==="center")j=I((J.top+J.bottom)/2+0.5);else if($1(K)){let l=Object.keys(K)[0],Y0=K[l];j=I(this.chart.scales[l].getPixelForValue(Y0))}d=J.top,P0=J.bottom,Q0=j+V,i=Q0+_}else if(G==="y"){if(K==="center")j=I((J.left+J.right)/2);else if($1(K)){let l=Object.keys(K)[0],Y0=K[l];j=I(this.chart.scales[l].getPixelForValue(Y0))}a=j-V,t=a-_,X0=J.left,H0=J.right}let O0=s0(X.ticks.maxTicksLimit,R),v0=Math.max(1,Math.ceil(R/O0));for(h=0;h<R;h+=v0){let l=this.getContext(h),Y0=N.setContext(l),F0=H.setContext(l),a0=Y0.lineWidth,d0=Y0.color,k=F0.dash||[],o=F0.dashOffset,W0=Y0.tickWidth,z0=Y0.tickColor,p0=Y0.tickBorderDash||[],m1=Y0.tickBorderDashOffset;if(p=FA(this,h,F),p===void 0)continue;if(n=S2(q,p,a0),W)a=t=X0=H0=n;else Q0=i=d=P0=n;P.push({tx1:a,ty1:Q0,tx2:t,ty2:i,x1:X0,y1:d,x2:H0,y2:P0,width:a0,color:d0,borderDash:k,borderDashOffset:o,tickWidth:W0,tickColor:z0,tickBorderDash:p0,tickBorderDashOffset:m1})}return this._ticksLength=R,this._borderValue=j,P}_computeLabelItems(J){let G=this.axis,q=this.options,{position:X,ticks:N}=q,K=this.isHorizontal(),H=this.ticks,{align:F,crossAlign:W,padding:M,mirror:R}=N,_=HJ(q.grid),P=_+M,O=R?-M:P,E=-C8(this.labelRotation),V=[],I,j,h,p,n,a,Q0,t,i,X0,d,H0,P0="middle";if(X==="top")a=this.bottom-O,Q0=this._getXAxisLabelAlignment();else if(X==="bottom")a=this.top+O,Q0=this._getXAxisLabelAlignment();else if(X==="left"){let v0=this._getYAxisLabelAlignment(_);Q0=v0.textAlign,n=v0.x}else if(X==="right"){let v0=this._getYAxisLabelAlignment(_);Q0=v0.textAlign,n=v0.x}else if(G==="x"){if(X==="center")a=(J.top+J.bottom)/2+P;else if($1(X)){let v0=Object.keys(X)[0],l=X[v0];a=this.chart.scales[v0].getPixelForValue(l)+P}Q0=this._getXAxisLabelAlignment()}else if(G==="y"){if(X==="center")n=(J.left+J.right)/2-P;else if($1(X)){let v0=Object.keys(X)[0],l=X[v0];n=this.chart.scales[v0].getPixelForValue(l)}Q0=this._getYAxisLabelAlignment(_).textAlign}if(G==="y"){if(F==="start")P0="top";else if(F==="end")P0="bottom"}let O0=this._getLabelSizes();for(I=0,j=H.length;I<j;++I){h=H[I],p=h.label;let v0=N.setContext(this.getContext(I));t=this.getPixelForTick(I)+N.labelOffset,i=this._resolveTickFontOptions(I),X0=i.lineHeight,d=E1(p)?p.length:1;let l=d/2,Y0=v0.color,F0=v0.textStrokeColor,a0=v0.textStrokeWidth,d0=Q0;if(K){if(n=t,Q0==="inner")if(I===j-1)d0=!this.options.reverse?"right":"left";else if(I===0)d0=!this.options.reverse?"left":"right";else d0="center";if(X==="top")if(W==="near"||E!==0)H0=-d*X0+X0/2;else if(W==="center")H0=-O0.highest.height/2-l*X0+X0;else H0=-O0.highest.height+X0/2;else if(W==="near"||E!==0)H0=X0/2;else if(W==="center")H0=O0.highest.height/2-l*X0;else H0=O0.highest.height-d*X0;if(R)H0*=-1;if(E!==0&&!v0.showLabelBackdrop)n+=X0/2*Math.sin(E)}else a=t,H0=(1-d)*X0/2;let k;if(v0.showLabelBackdrop){let o=T5(v0.backdropPadding),W0=O0.heights[I],z0=O0.widths[I],p0=H0-o.top,m1=0-o.left;switch(P0){case"middle":p0-=W0/2;break;case"bottom":p0-=W0;break}switch(Q0){case"center":m1-=z0/2;break;case"right":m1-=z0;break;case"inner":if(I===j-1)m1-=z0;else if(I>0)m1-=z0/2;break}k={left:m1,top:p0,width:z0+o.width,height:W0+o.height,color:v0.backdropColor}}V.push({label:p,font:i,textOffset:H0,options:{rotation:E,color:Y0,strokeColor:F0,strokeWidth:a0,textAlign:d0,textBaseline:P0,translation:[n,a],backdrop:k}})}return V}_getXAxisLabelAlignment(){let{position:J,ticks:G}=this.options;if(-C8(this.labelRotation))return J==="top"?"left":"right";let X="center";if(G.align==="start")X="left";else if(G.align==="end")X="right";else if(G.align==="inner")X="inner";return X}_getYAxisLabelAlignment(J){let{position:G,ticks:{crossAlign:q,mirror:X,padding:N}}=this.options,K=this._getLabelSizes(),H=J+N,F=K.widest.width,W,M;if(G==="left")if(X)if(M=this.right+N,q==="near")W="left";else if(q==="center")W="center",M+=F/2;else W="right",M+=F;else if(M=this.right-H,q==="near")W="right";else if(q==="center")W="center",M-=F/2;else W="left",M=this.left;else if(G==="right")if(X)if(M=this.left+N,q==="near")W="right";else if(q==="center")W="center",M-=F/2;else W="left",M-=F;else if(M=this.left+H,q==="near")W="left";else if(q==="center")W="center",M+=F/2;else W="right",M=this.right;else W="right";return{textAlign:W,x:M}}_computeLabelArea(){if(this.options.ticks.mirror)return;let J=this.chart,G=this.options.position;if(G==="left"||G==="right")return{top:0,left:this.left,bottom:J.height,right:this.right};if(G==="top"||G==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:J.width}}drawBackground(){let{ctx:J,options:{backgroundColor:G},left:q,top:X,width:N,height:K}=this;if(G)J.save(),J.fillStyle=G,J.fillRect(q,X,N,K),J.restore()}getLineWidthForValue(J){let G=this.options.grid;if(!this._isVisible()||!G.display)return 0;let X=this.ticks.findIndex((N)=>N.value===J);if(X>=0)return G.setContext(this.getContext(X)).lineWidth;return 0}drawGrid(J){let G=this.options.grid,q=this.ctx,X=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(J)),N,K,H=(F,W,M)=>{if(!M.width||!M.color)return;q.save(),q.lineWidth=M.width,q.strokeStyle=M.color,q.setLineDash(M.borderDash||[]),q.lineDashOffset=M.borderDashOffset,q.beginPath(),q.moveTo(F.x,F.y),q.lineTo(W.x,W.y),q.stroke(),q.restore()};if(G.display)for(N=0,K=X.length;N<K;++N){let F=X[N];if(G.drawOnChartArea)H({x:F.x1,y:F.y1},{x:F.x2,y:F.y2},F);if(G.drawTicks)H({x:F.tx1,y:F.ty1},{x:F.tx2,y:F.ty2},{color:F.tickColor,width:F.tickWidth,borderDash:F.tickBorderDash,borderDashOffset:F.tickBorderDashOffset})}}drawBorder(){let{chart:J,ctx:G,options:{border:q,grid:X}}=this,N=q.setContext(this.getContext()),K=q.display?N.width:0;if(!K)return;let H=X.setContext(this.getContext(0)).lineWidth,F=this._borderValue,W,M,R,_;if(this.isHorizontal())W=S2(J,this.left,K)-K/2,M=S2(J,this.right,H)+H/2,R=_=F;else R=S2(J,this.top,K)-K/2,_=S2(J,this.bottom,H)+H/2,W=M=F;G.save(),G.lineWidth=N.width,G.strokeStyle=N.color,G.beginPath(),G.moveTo(W,R),G.lineTo(M,_),G.stroke(),G.restore()}drawLabels(J){if(!this.options.ticks.display)return;let q=this.ctx,X=this._computeLabelArea();if(X)YJ(q,X);let N=this.getLabelItems(J);for(let K of N){let{options:H,font:F,label:W,textOffset:M}=K;D2(q,W,0,M,F,H)}if(X)XJ(q)}drawTitle(){let{ctx:J,options:{position:G,title:q,reverse:X}}=this;if(!q.display)return;let N=Q5(q.font),K=T5(q.padding),H=q.align,F=N.lineHeight/2;if(G==="bottom"||G==="center"||$1(G)){if(F+=K.bottom,E1(q.text))F+=N.lineHeight*(q.text.length-1)}else F+=K.top;let{titleX:W,titleY:M,maxWidth:R,rotation:_}=RA(this,F,G,H);D2(J,q.text,0,0,N,{color:q.color,maxWidth:R,rotation:_,textAlign:wA(H,G,X),textBaseline:"middle",translation:[W,M]})}draw(J){if(!this._isVisible())return;this.drawBackground(),this.drawGrid(J),this.drawBorder(),this.drawTitle(),this.drawLabels(J)}_layers(){let J=this.options,G=J.ticks&&J.ticks.z||0,q=s0(J.grid&&J.grid.z,-1),X=s0(J.border&&J.border.z,0);if(!this._isVisible()||this.draw!==u7.prototype.draw)return[{z:G,draw:(N)=>{this.draw(N)}}];return[{z:q,draw:(N)=>{this.drawBackground(),this.drawGrid(N),this.drawTitle()}},{z:X,draw:()=>{this.drawBorder()}},{z:G,draw:(N)=>{this.drawLabels(N)}}]}getMatchingVisibleMetas(J){let G=this.chart.getSortedVisibleDatasetMetas(),q=this.axis+"AxisID",X=[],N,K;for(N=0,K=G.length;N<K;++N){let H=G[N];if(H[q]===this.id&&(!J||H.type===J))X.push(H)}return X}_resolveTickFontOptions(J){let G=this.options.ticks.setContext(this.getContext(J));return Q5(G.font)}_maxDigits(){let J=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/J}}class zJ{constructor(J,G,q){this.type=J,this.scope=G,this.override=q,this.items=Object.create(null)}isForType(J){return Object.prototype.isPrototypeOf.call(this.type.prototype,J.prototype)}register(J){let G=Object.getPrototypeOf(J),q;if(PA(G))q=this.register(G);let X=this.items,N=J.id,K=this.scope+"."+N;if(!N)throw Error("class does not have id: "+J);if(N in X)return K;if(X[N]=J,_A(J,K,q),this.override)u1.override(J.id,J.overrides);return K}get(J){return this.items[J]}unregister(J){let G=this.items,q=J.id,X=this.scope;if(q in G)delete G[q];if(X&&q in u1[X]){if(delete u1[X][q],this.override)delete E2[q]}}}function _A(J,G,q){let X=Y$(Object.create(null),[q?u1.get(q):{},u1.get(G),J.defaults]);if(u1.set(G,X),J.defaultRoutes)LA(G,J.defaultRoutes);if(J.descriptors)u1.describe(G,J.descriptors)}function LA(J,G){Object.keys(G).forEach((q)=>{let X=q.split("."),N=X.pop(),K=[J].concat(X).join("."),H=G[q].split("."),F=H.pop(),W=H.join(".");u1.route(K,N,W,F)})}function PA(J){return"id"in J&&"defaults"in J}class B_{constructor(){this.controllers=new zJ(d3,"datasets",!0),this.elements=new zJ(E8,"elements"),this.plugins=new zJ(Object,"plugins"),this.scales=new zJ(u7,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...J){this._each("register",J)}remove(...J){this._each("unregister",J)}addControllers(...J){this._each("register",J,this.controllers)}addElements(...J){this._each("register",J,this.elements)}addPlugins(...J){this._each("register",J,this.plugins)}addScales(...J){this._each("register",J,this.scales)}getController(J){return this._get(J,this.controllers,"controller")}getElement(J){return this._get(J,this.elements,"element")}getPlugin(J){return this._get(J,this.plugins,"plugin")}getScale(J){return this._get(J,this.scales,"scale")}removeControllers(...J){this._each("unregister",J,this.controllers)}removeElements(...J){this._each("unregister",J,this.elements)}removePlugins(...J){this._each("unregister",J,this.plugins)}removeScales(...J){this._each("unregister",J,this.scales)}_each(J,G,q){[...G].forEach((X)=>{let N=q||this._getRegistryForType(X);if(q||N.isForType(X)||N===this.plugins&&X.id)this._exec(J,N,X);else F1(X,(K)=>{let H=q||this._getRegistryForType(K);this._exec(J,H,K)})})}_exec(J,G,q){let X=C3(J);O1(q["before"+X],[],q),G[J](q),O1(q["after"+X],[],q)}_getRegistryForType(J){for(let G=0;G<this._typedRegistries.length;G++){let q=this._typedRegistries[G];if(q.isForType(J))return q}return this.plugins}_get(J,G,q){let X=G.get(J);if(X===void 0)throw Error('"'+J+'" is not a registered '+q+".");return X}}var p4=new B_;class H_{constructor(){this._init=void 0}notify(J,G,q,X){if(G==="beforeInit")this._init=this._createDescriptors(J,!0),this._notify(this._init,J,"install");if(this._init===void 0)return;let N=X?this._descriptors(J).filter(X):this._descriptors(J),K=this._notify(N,J,G,q);if(G==="afterDestroy")this._notify(N,J,"stop"),this._notify(this._init,J,"uninstall"),this._init=void 0;return K}_notify(J,G,q,X){X=X||{};for(let N of J){let K=N.plugin,H=K[q],F=[G,X,N.options];if(O1(H,F,K)===!1&&X.cancelable)return!1}return!0}invalidate(){if(!Q1(this._cache))this._oldCache=this._cache,this._cache=void 0}_descriptors(J){if(this._cache)return this._cache;let G=this._cache=this._createDescriptors(J);return this._notifyStateChanges(J),G}_createDescriptors(J,G){let q=J&&J.config,X=s0(q.options&&q.options.plugins,{}),N=TA(q);return X===!1&&!G?[]:OA(J,N,X,G)}_notifyStateChanges(J){let G=this._oldCache||[],q=this._cache,X=(N,K)=>N.filter((H)=>!K.some((F)=>H.plugin.id===F.plugin.id));this._notify(X(G,q),J,"stop"),this._notify(X(q,G),J,"start")}}function TA(J){let G={},q=[],X=Object.keys(p4.plugins.items);for(let K=0;K<X.length;K++)q.push(p4.getPlugin(X[K]));let N=J.plugins||[];for(let K=0;K<N.length;K++){let H=N[K];if(q.indexOf(H)===-1)q.push(H),G[H.id]=!0}return{plugins:q,localIds:G}}function CA(J,G){if(!G&&J===!1)return null;if(J===!0)return{};return J}function OA(J,{plugins:G,localIds:q},X,N){let K=[],H=J.getContext();for(let F of G){let W=F.id,M=CA(X[W],N);if(M===null)continue;K.push({plugin:F,options:IA(J.config,{plugin:F,local:q[W]},M,H)})}return K}function IA(J,{plugin:G,local:q},X,N){let K=J.pluginScopeKeys(G),H=J.getOptionScopes(X,K);if(q&&G.defaults)H.push(G.defaults);return J.createResolver(H,N,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function hU(J,G){let q=u1.datasets[J]||{};return((G.datasets||{})[J]||{}).indexAxis||G.indexAxis||q.indexAxis||"x"}function VA(J,G){let q=J;if(J==="_index_")q=G;else if(J==="_value_")q=G==="x"?"y":"x";return q}function AA(J,G){return J===G?"_index_":"_value_"}function OR(J){if(J==="x"||J==="y"||J==="r")return J}function EA(J){if(J==="top"||J==="bottom")return"x";if(J==="left"||J==="right")return"y"}function uU(J,...G){if(OR(J))return J;for(let q of G){let X=q.axis||EA(q.position)||J.length>1&&OR(J[0].toLowerCase());if(X)return X}throw Error(`Cannot determine type of '${J}' axis. Please provide 'axis' or 'position' option.`)}function IR(J,G,q){if(q[G+"AxisID"]===J)return{axis:G}}function SA(J,G){if(G.data&&G.data.datasets){let q=G.data.datasets.filter((X)=>X.xAxisID===J||X.yAxisID===J);if(q.length)return IR(J,"x",q[0])||IR(J,"y",q[0])}return{}}function DA(J,G){let q=E2[J.type]||{scales:{}},X=G.scales||{},N=hU(J.type,G),K=Object.create(null);return Object.keys(X).forEach((H)=>{let F=X[H];if(!$1(F))return console.error(`Invalid scale configuration for scale: ${H}`);if(F._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${H}`);let W=uU(H,F,SA(H,J),u1.scales[F.type]),M=AA(W,N),R=q.scales||{};K[H]=N$(Object.create(null),[{axis:W},F,R[W],R[M]])}),J.data.datasets.forEach((H)=>{let F=H.type||J.type,W=H.indexAxis||hU(F,G),R=(E2[F]||{}).scales||{};Object.keys(R).forEach((_)=>{let P=VA(_,W),O=H[P+"AxisID"]||P;K[O]=K[O]||Object.create(null),N$(K[O],[{axis:P},X[O],R[_]])})}),Object.keys(K).forEach((H)=>{let F=K[H];N$(F,[u1.scales[F.type],u1.scale])}),K}function F_(J){let G=J.options||(J.options={});G.plugins=s0(G.plugins,{}),G.scales=DA(J,G)}function W_(J){return J=J||{},J.datasets=J.datasets||[],J.labels=J.labels||[],J}function jA(J){return J=J||{},J.data=W_(J.data),F_(J),J}var VR=new Map,z_=new Set;function y3(J,G){let q=VR.get(J);if(!q)q=G(),VR.set(J,q),z_.add(q);return q}var FJ=(J,G,q)=>{let X=f7(G,q);if(X!==void 0)J.add(X)};class M_{constructor(J){this._config=jA(J),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(J){this._config.type=J}get data(){return this._config.data}set data(J){this._config.data=W_(J)}get options(){return this._config.options}set options(J){this._config.options=J}get plugins(){return this._config.plugins}update(){let J=this._config;this.clearCache(),F_(J)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(J){return y3(J,()=>[[`datasets.${J}`,""]])}datasetAnimationScopeKeys(J,G){return y3(`${J}.transition.${G}`,()=>[[`datasets.${J}.transitions.${G}`,`transitions.${G}`],[`datasets.${J}`,""]])}datasetElementScopeKeys(J,G){return y3(`${J}-${G}`,()=>[[`datasets.${J}.elements.${G}`,`datasets.${J}`,`elements.${G}`,""]])}pluginScopeKeys(J){let G=J.id,q=this.type;return y3(`${q}-plugin-${G}`,()=>[[`plugins.${G}`,...J.additionalOptionScopes||[]]])}_cachedScopes(J,G){let q=this._scopeCache,X=q.get(J);if(!X||G)X=new Map,q.set(J,X);return X}getOptionScopes(J,G,q){let{options:X,type:N}=this,K=this._cachedScopes(J,q),H=K.get(G);if(H)return H;let F=new Set;G.forEach((M)=>{if(J)F.add(J),M.forEach((R)=>FJ(F,J,R));M.forEach((R)=>FJ(F,X,R)),M.forEach((R)=>FJ(F,E2[N]||{},R)),M.forEach((R)=>FJ(F,u1,R)),M.forEach((R)=>FJ(F,E3,R))});let W=Array.from(F);if(W.length===0)W.push(Object.create(null));if(z_.has(G))K.set(G,W);return W}chartOptionScopes(){let{options:J,type:G}=this;return[J,E2[G]||{},u1.datasets[G]||{},{type:G},u1,E3]}resolveNamedOptions(J,G,q,X=[""]){let N={$shared:!0},{resolver:K,subPrefixes:H}=AR(this._resolverCache,J,X),F=K;if(vA(K,G)){N.$shared=!1,q=P8(q)?q():q;let W=this.createResolver(J,q,H);F=b7(K,q,W)}for(let W of G)N[W]=F[W];return N}createResolver(J,G,q=[""],X){let{resolver:N}=AR(this._resolverCache,J,q);return $1(G)?b7(N,G,void 0,X):N}}function AR(J,G,q){let X=J.get(G);if(!X)X=new Map,J.set(G,X);let N=q.join(),K=X.get(N);if(!K)K={resolver:D3(G,q),subPrefixes:q.filter((F)=>!F.toLowerCase().includes("hover"))},X.set(N,K);return K}var kA=(J)=>$1(J)&&Object.getOwnPropertyNames(J).some((G)=>P8(J[G]));function vA(J,G){let{isScriptable:q,isIndexable:X}=wU(J);for(let N of G){let K=q(N),H=X(N),F=(H||K)&&J[N];if(K&&(P8(F)||kA(F))||H&&E1(F))return!0}return!1}var bA="4.5.1",fA=["top","bottom","left","right","chartArea"];function ER(J,G){return J==="top"||J==="bottom"||fA.indexOf(J)===-1&&G==="x"}function SR(J,G){return function(q,X){return q[J]===X[J]?q[G]-X[G]:q[J]-X[J]}}function DR(J){let G=J.chart,q=G.options.animation;G.notifyPlugins("afterRender"),O1(q&&q.onComplete,[J],G)}function yA(J){let G=J.chart,q=G.options.animation;O1(q&&q.onProgress,[J],G)}function w_(J){if(j3()&&typeof J==="string")J=document.getElementById(J);else if(J&&J.length)J=J[0];if(J&&J.canvas)J=J.canvas;return J}var x3={},jR=(J)=>{let G=w_(J);return Object.values(x3).filter((q)=>q.canvas===G).pop()};function gA(J,G,q){let X=Object.keys(J);for(let N of X){let K=+N;if(K>=G){let H=J[N];if(delete J[N],q>0||K>G)J[K+q]=H}}}function hA(J,G,q,X){if(!q||J.type==="mouseout")return null;if(X)return G;return J}class x7{static defaults=u1;static instances=x3;static overrides=E2;static registry=p4;static version=bA;static getChart=jR;static register(...J){p4.add(...J),kR()}static unregister(...J){p4.remove(...J),kR()}constructor(J,G){let q=this.config=new M_(G),X=w_(J),N=jR(X);if(N)throw Error("Canvas is already in use. Chart with ID '"+N.id+"' must be destroyed before the canvas with ID '"+N.canvas.id+"' can be reused.");let K=q.createResolver(q.chartOptionScopes(),this.getContext());this.platform=new(q.platform||qA(X)),this.platform.updateConfig(q);let H=this.platform.acquireContext(X,K.aspectRatio),F=H&&H.canvas,W=F&&F.height,M=F&&F.width;if(this.id=Vw(),this.ctx=H,this.canvas=F,this.width=M,this.height=W,this._options=K,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new H_,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=hw((R)=>this.update(R),K.resizeDelay||0),this._dataChanges=[],x3[this.id]=this,!H||!F){console.error("Failed to create chart: can't acquire context from the given item");return}if(V8.listen(this,"complete",DR),V8.listen(this,"progress",yA),this._initialize(),this.attached)this.update()}get aspectRatio(){let{options:{aspectRatio:J,maintainAspectRatio:G},width:q,height:X,_aspectRatio:N}=this;if(!Q1(J))return J;if(G&&N)return N;return X?q/X:null}get data(){return this.config.data}set data(J){this.config.data=J}get options(){return this._options}set options(J){this.config.options=J}get registry(){return p4}_initialize(){if(this.notifyPlugins("beforeInit"),this.options.responsive)this.resize();else LU(this,this.options.devicePixelRatio);return this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return FU(this.canvas,this.ctx),this}stop(){return V8.stop(this),this}resize(J,G){if(!V8.running(this))this._resize(J,G);else this._resizeBeforeDraw={width:J,height:G}}_resize(J,G){let q=this.options,X=this.canvas,N=q.maintainAspectRatio&&this.aspectRatio,K=this.platform.getMaximumSize(X,J,G,N),H=q.devicePixelRatio||this.platform.getDevicePixelRatio(),F=this.width?"resize":"attach";if(this.width=K.width,this.height=K.height,this._aspectRatio=this.aspectRatio,!LU(this,H,!0))return;if(this.notifyPlugins("resize",{size:K}),O1(q.onResize,[this,K],this),this.attached){if(this._doResize(F))this.render()}}ensureScalesHaveIDs(){let G=this.options.scales||{};F1(G,(q,X)=>{q.id=X})}buildOrUpdateScales(){let J=this.options,G=J.scales,q=this.scales,X=Object.keys(q).reduce((K,H)=>{return K[H]=!1,K},{}),N=[];if(G)N=N.concat(Object.keys(G).map((K)=>{let H=G[K],F=uU(K,H),W=F==="r",M=F==="x";return{options:H,dposition:W?"chartArea":M?"bottom":"left",dtype:W?"radialLinear":M?"category":"linear"}}));F1(N,(K)=>{let H=K.options,F=H.id,W=uU(F,H),M=s0(H.type,K.dtype);if(H.position===void 0||ER(H.position,W)!==ER(K.dposition))H.position=K.dposition;X[F]=!0;let R=null;if(F in q&&q[F].type===M)R=q[F];else R=new(p4.getScale(M))({id:F,type:M,ctx:this.ctx,chart:this}),q[R.id]=R;R.init(H,J)}),F1(X,(K,H)=>{if(!K)delete q[H]}),F1(q,(K)=>{c6.configure(this,K,K.options),c6.addBox(this,K)})}_updateMetasets(){let J=this._metasets,G=this.data.datasets.length,q=J.length;if(J.sort((X,N)=>X.index-N.index),q>G){for(let X=G;X<q;++X)this._destroyDatasetMeta(X);J.splice(G,q-G)}this._sortedMetasets=J.slice(0).sort(SR("order","index"))}_removeUnreferencedMetasets(){let{_metasets:J,data:{datasets:G}}=this;if(J.length>G.length)delete this._stacks;J.forEach((q,X)=>{if(G.filter((N)=>N===q._dataset).length===0)this._destroyDatasetMeta(X)})}buildOrUpdateControllers(){let J=[],G=this.data.datasets,q,X;this._removeUnreferencedMetasets();for(q=0,X=G.length;q<X;q++){let N=G[q],K=this.getDatasetMeta(q),H=N.type||this.config.type;if(K.type&&K.type!==H)this._destroyDatasetMeta(q),K=this.getDatasetMeta(q);if(K.type=H,K.indexAxis=N.indexAxis||hU(H,this.options),K.order=N.order||0,K.index=q,K.label=""+N.label,K.visible=this.isDatasetVisible(q),K.controller)K.controller.updateIndex(q),K.controller.linkScales();else{let F=p4.getController(H),{datasetElementType:W,dataElementType:M}=u1.datasets[H];Object.assign(F,{dataElementType:p4.getElement(M),datasetElementType:W&&p4.getElement(W)}),K.controller=new F(this,q),J.push(K.controller)}}return this._updateMetasets(),J}_resetElements(){F1(this.data.datasets,(J,G)=>{this.getDatasetMeta(G).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(J){let G=this.config;G.update();let q=this._options=G.createResolver(G.chartOptionScopes(),this.getContext()),X=this._animationsDisabled=!q.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:J,cancelable:!0})===!1)return;let N=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let K=0;for(let W=0,M=this.data.datasets.length;W<M;W++){let{controller:R}=this.getDatasetMeta(W),_=!X&&N.indexOf(R)===-1;R.buildOrUpdateElements(_),K=Math.max(+R.getMaxOverflow(),K)}if(K=this._minPadding=q.layout.autoPadding?K:0,this._updateLayout(K),!X)F1(N,(W)=>{W.reset()});this._updateDatasets(J),this.notifyPlugins("afterUpdate",{mode:J}),this._layers.sort(SR("z","_idx"));let{_active:H,_lastEvent:F}=this;if(F)this._eventHandler(F,!0);else if(H.length)this._updateHoverStyles(H,H,!0);this.render()}_updateScales(){F1(this.scales,(J)=>{c6.removeBox(this,J)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){let J=this.options,G=new Set(Object.keys(this._listeners)),q=new Set(J.events);if(!JU(G,q)||!!this._responsiveListeners!==J.responsive)this.unbindEvents(),this.bindEvents()}_updateHiddenIndices(){let{_hiddenIndices:J}=this,G=this._getUniformDataChanges()||[];for(let{method:q,start:X,count:N}of G){let K=q==="_removeElements"?-N:N;gA(J,X,K)}}_getUniformDataChanges(){let J=this._dataChanges;if(!J||!J.length)return;this._dataChanges=[];let G=this.data.datasets.length,q=(N)=>new Set(J.filter((K)=>K[0]===N).map((K,H)=>H+","+K.splice(1).join(","))),X=q(0);for(let N=1;N<G;N++)if(!JU(X,q(N)))return;return Array.from(X).map((N)=>N.split(",")).map((N)=>({method:N[1],start:+N[2],count:+N[3]}))}_updateLayout(J){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;c6.update(this,this.width,this.height,J);let G=this.chartArea,q=G.width<=0||G.height<=0;this._layers=[],F1(this.boxes,(X)=>{if(q&&X.position==="chartArea")return;if(X.configure)X.configure();this._layers.push(...X._layers())},this),this._layers.forEach((X,N)=>{X._idx=N}),this.notifyPlugins("afterLayout")}_updateDatasets(J){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:J,cancelable:!0})===!1)return;for(let G=0,q=this.data.datasets.length;G<q;++G)this.getDatasetMeta(G).controller.configure();for(let G=0,q=this.data.datasets.length;G<q;++G)this._updateDataset(G,P8(J)?J({datasetIndex:G}):J);this.notifyPlugins("afterDatasetsUpdate",{mode:J})}_updateDataset(J,G){let q=this.getDatasetMeta(J),X={meta:q,index:J,mode:G,cancelable:!0};if(this.notifyPlugins("beforeDatasetUpdate",X)===!1)return;q.controller._update(G),X.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",X)}render(){if(this.notifyPlugins("beforeRender",{cancelable:!0})===!1)return;if(V8.has(this)){if(this.attached&&!V8.running(this))V8.start(this)}else this.draw(),DR({chart:this})}draw(){let J;if(this._resizeBeforeDraw){let{width:q,height:X}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(q,X)}if(this.clear(),this.width<=0||this.height<=0)return;if(this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;let G=this._layers;for(J=0;J<G.length&&G[J].z<=0;++J)G[J].draw(this.chartArea);this._drawDatasets();for(;J<G.length;++J)G[J].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(J){let G=this._sortedMetasets,q=[],X,N;for(X=0,N=G.length;X<N;++X){let K=G[X];if(!J||K.visible)q.push(K)}return q}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;let J=this.getSortedVisibleDatasetMetas();for(let G=J.length-1;G>=0;--G)this._drawDataset(J[G]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(J){let G=this.ctx,q={meta:J,index:J.index,cancelable:!0},X=VU(this,J);if(this.notifyPlugins("beforeDatasetDraw",q)===!1)return;if(X)YJ(G,X);if(J.controller.draw(),X)XJ(G);q.cancelable=!1,this.notifyPlugins("afterDatasetDraw",q)}isPointInArea(J){return x4(J,this.chartArea,this._minPadding)}getElementsAtEventForMode(J,G,q,X){let N=xV.modes[G];if(typeof N==="function")return N(this,J,q,X);return[]}getDatasetMeta(J){let G=this.data.datasets[J],q=this._metasets,X=q.filter((N)=>N&&N._dataset===G).pop();if(!X)X={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:G&&G.order||0,index:J,_dataset:G,_parsed:[],_sorted:!1},q.push(X);return X}getContext(){return this.$context||(this.$context=I8(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(J){let G=this.data.datasets[J];if(!G)return!1;let q=this.getDatasetMeta(J);return typeof q.hidden==="boolean"?!q.hidden:!G.hidden}setDatasetVisibility(J,G){let q=this.getDatasetMeta(J);q.hidden=!G}toggleDataVisibility(J){this._hiddenIndices[J]=!this._hiddenIndices[J]}getDataVisibility(J){return!this._hiddenIndices[J]}_updateVisibility(J,G,q){let X=q?"show":"hide",N=this.getDatasetMeta(J),K=N.controller._resolveAnimations(void 0,X);if(U$(G))N.data[G].hidden=!q,this.update();else this.setDatasetVisibility(J,q),K.update(N,{visible:q}),this.update((H)=>H.datasetIndex===J?X:void 0)}hide(J,G){this._updateVisibility(J,G,!1)}show(J,G){this._updateVisibility(J,G,!0)}_destroyDatasetMeta(J){let G=this._metasets[J];if(G&&G.controller)G.controller._destroy();delete this._metasets[J]}_stop(){let J,G;this.stop(),V8.remove(this);for(J=0,G=this.data.datasets.length;J<G;++J)this._destroyDatasetMeta(J)}destroy(){this.notifyPlugins("beforeDestroy");let{canvas:J,ctx:G}=this;if(this._stop(),this.config.clearCache(),J)this.unbindEvents(),FU(J,G),this.platform.releaseContext(G),this.canvas=null,this.ctx=null;delete x3[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...J){return this.canvas.toDataURL(...J)}bindEvents(){if(this.bindUserEvents(),this.options.responsive)this.bindResponsiveEvents();else this.attached=!0}bindUserEvents(){let J=this._listeners,G=this.platform,q=(N,K)=>{G.addEventListener(this,N,K),J[N]=K},X=(N,K,H)=>{N.offsetX=K,N.offsetY=H,this._eventHandler(N)};F1(this.options.events,(N)=>q(N,X))}bindResponsiveEvents(){if(!this._responsiveListeners)this._responsiveListeners={};let J=this._responsiveListeners,G=this.platform,q=(F,W)=>{G.addEventListener(this,F,W),J[F]=W},X=(F,W)=>{if(J[F])G.removeEventListener(this,F,W),delete J[F]},N=(F,W)=>{if(this.canvas)this.resize(F,W)},K,H=()=>{X("attach",H),this.attached=!0,this.resize(),q("resize",N),q("detach",K)};if(K=()=>{this.attached=!1,X("resize",N),this._stop(),this._resize(0,0),q("attach",H)},G.isAttached(this.canvas))H();else K()}unbindEvents(){F1(this._listeners,(J,G)=>{this.platform.removeEventListener(this,G,J)}),this._listeners={},F1(this._responsiveListeners,(J,G)=>{this.platform.removeEventListener(this,G,J)}),this._responsiveListeners=void 0}updateHoverStyle(J,G,q){let X=q?"set":"remove",N,K,H,F;if(G==="dataset")N=this.getDatasetMeta(J[0].datasetIndex),N.controller["_"+X+"DatasetHoverStyle"]();for(H=0,F=J.length;H<F;++H){K=J[H];let W=K&&this.getDatasetMeta(K.datasetIndex).controller;if(W)W[X+"HoverStyle"](K.element,K.datasetIndex,K.index)}}getActiveElements(){return this._active||[]}setActiveElements(J){let G=this._active||[],q=J.map(({datasetIndex:N,index:K})=>{let H=this.getDatasetMeta(N);if(!H)throw Error("No dataset found at index "+N);return{datasetIndex:N,element:H.data[K],index:K}});if(!GJ(q,G))this._active=q,this._lastEvent=null,this._updateHoverStyles(q,G)}notifyPlugins(J,G,q){return this._plugins.notify(this,J,G,q)}isPluginEnabled(J){return this._plugins._cache.filter((G)=>G.plugin.id===J).length===1}_updateHoverStyles(J,G,q){let X=this.options.hover,N=(F,W)=>F.filter((M)=>!W.some((R)=>M.datasetIndex===R.datasetIndex&&M.index===R.index)),K=N(G,J),H=q?J:N(J,G);if(K.length)this.updateHoverStyle(K,X.mode,!1);if(H.length&&X.mode)this.updateHoverStyle(H,X.mode,!0)}_eventHandler(J,G){let q={event:J,replay:G,cancelable:!0,inChartArea:this.isPointInArea(J)},X=(K)=>(K.options.events||this.options.events).includes(J.native.type);if(this.notifyPlugins("beforeEvent",q,X)===!1)return;let N=this._handleEvent(J,G,q.inChartArea);if(q.cancelable=!1,this.notifyPlugins("afterEvent",q,X),N||q.changed)this.render();return this}_handleEvent(J,G,q){let{_active:X=[],options:N}=this,K=G,H=this._getActiveElements(J,X,q,K),F=Sw(J),W=hA(J,this._lastEvent,q,F);if(q){if(this._lastEvent=null,O1(N.onHover,[J,H,this],this),F)O1(N.onClick,[J,H,this],this)}let M=!GJ(H,X);if(M||G)this._active=H,this._updateHoverStyles(H,X,G);return this._lastEvent=W,M}_getActiveElements(J,G,q,X){if(J.type==="mouseout")return[];if(!q)return G;let N=this.options.hover;return this.getElementsAtEventForMode(J,N.mode,N,X)}}function kR(){return F1(x7.instances,(J)=>J._plugins.invalidate())}function R_(J,G,q=G){J.lineCap=s0(q.borderCapStyle,G.borderCapStyle),J.setLineDash(s0(q.borderDash,G.borderDash)),J.lineDashOffset=s0(q.borderDashOffset,G.borderDashOffset),J.lineJoin=s0(q.borderJoinStyle,G.borderJoinStyle),J.lineWidth=s0(q.borderWidth,G.borderWidth),J.strokeStyle=s0(q.borderColor,G.borderColor)}function uA(J,G,q){J.lineTo(q.x,q.y)}function xA(J){if(J.stepped)return lw;if(J.tension||J.cubicInterpolationMode==="monotone")return rw;return uA}function __(J,G,q={}){let X=J.length,{start:N=0,end:K=X-1}=q,{start:H,end:F}=G,W=Math.max(N,H),M=Math.min(K,F),R=N<H&&K<H||N>F&&K>F;return{count:X,start:W,loop:G.loop,ilen:M<W&&!R?X+M-W:M-W}}function mA(J,G,q,X){let{points:N,options:K}=G,{count:H,start:F,loop:W,ilen:M}=__(N,q,X),R=xA(K),{move:_=!0,reverse:P}=X||{},O,E,V;for(O=0;O<=M;++O){if(E=N[(F+(P?M-O:O))%H],E.skip)continue;else if(_)J.moveTo(E.x,E.y),_=!1;else R(J,V,E,P,K.stepped);V=E}if(W)E=N[(F+(P?M:0))%H],R(J,V,E,P,K.stepped);return!!W}function dA(J,G,q,X){let N=G.points,{count:K,start:H,ilen:F}=__(N,q,X),{move:W=!0,reverse:M}=X||{},R=0,_=0,P,O,E,V,I,j,h=(n)=>(H+(M?F-n:n))%K,p=()=>{if(V!==I)J.lineTo(R,I),J.lineTo(R,V),J.lineTo(R,j)};if(W)O=N[h(0)],J.moveTo(O.x,O.y);for(P=0;P<=F;++P){if(O=N[h(P)],O.skip)continue;let{x:n,y:a}=O,Q0=n|0;if(Q0===E){if(a<V)V=a;else if(a>I)I=a;R=(_*R+n)/++_}else p(),J.lineTo(n,a),E=Q0,_=0,V=I=a;j=a}p()}function xU(J){let G=J.options,q=G.borderDash&&G.borderDash.length;return!J._decimated&&!J._loop&&!G.tension&&G.cubicInterpolationMode!=="monotone"&&!G.stepped&&!q?dA:mA}function pA(J){if(J.stepped)return ZR;if(J.tension||J.cubicInterpolationMode==="monotone")return JR;return I2}function cA(J,G,q,X){let N=G._path;if(!N){if(N=G._path=new Path2D,G.path(N,q,X))N.closePath()}R_(J,G.options),J.stroke(N)}function lA(J,G,q,X){let{segments:N,options:K}=G,H=xU(G);for(let F of N){if(R_(J,K,F.style),J.beginPath(),H(J,G,F,{start:q,end:q+X-1}))J.closePath();J.stroke()}}var rA=typeof Path2D==="function";function sA(J,G,q,X){if(rA&&!G.options.segment)cA(J,G,q,X);else lA(J,G,q,X)}class F$ extends E8{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:(J)=>J!=="borderDash"&&J!=="fill"};constructor(J){super();if(this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,J)Object.assign(this,J)}updateControlPoints(J,G){let q=this.options;if((q.tension||q.cubicInterpolationMode==="monotone")&&!q.stepped&&!this._pointsUpdated){let X=q.spanGaps?this._loop:this._fullLoop;tw(this._points,q,J,X,G),this._pointsUpdated=!0}}set points(J){this._points=J,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=GR(this,this.options.segment))}first(){let J=this.segments,G=this.points;return J.length&&G[J[0].start]}last(){let J=this.segments,G=this.points,q=J.length;return q&&G[J[q-1].end]}interpolate(J,G){let q=this.options,X=J[G],N=this.points,K=IU(this,{property:G,start:X,end:X});if(!K.length)return;let H=[],F=pA(q),W,M;for(W=0,M=K.length;W<M;++W){let{start:R,end:_}=K[W],P=N[R],O=N[_];if(P===O){H.push(P);continue}let E=Math.abs((X-P[G])/(O[G]-P[G])),V=F(P,O,E,q.stepped);V[G]=J[G],H.push(V)}return H.length===1?H[0]:H}pathSegment(J,G,q){return xU(this)(J,this,G,q)}path(J,G,q){let X=this.segments,N=xU(this),K=this._loop;G=G||0,q=q||this.points.length-G;for(let H of X)K&=N(J,this,H,{start:G,end:G+q-1});return!!K}draw(J,G,q,X){let N=this.options||{};if((this.points||[]).length&&N.borderWidth)J.save(),sA(J,this,q,X),J.restore();if(this.animated)this._pointsUpdated=!1,this._path=void 0}}function vR(J,G,q,X){let N=J.options,{[q]:K}=J.getProps([q],X);return Math.abs(G-K)<N.radius+N.hitRadius}class iU extends E8{static id="point";parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(J){super();if(this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,J)Object.assign(this,J)}inRange(J,G,q){let X=this.options,{x:N,y:K}=this.getProps(["x","y"],q);return Math.pow(J-N,2)+Math.pow(G-K,2)<Math.pow(X.hitRadius+X.radius,2)}inXRange(J,G){return vR(this,J,"x",G)}inYRange(J,G){return vR(this,J,"y",G)}getCenterPoint(J){let{x:G,y:q}=this.getProps(["x","y"],J);return{x:G,y:q}}size(J){J=J||this.options||{};let G=J.radius||0;G=Math.max(G,G&&J.hoverRadius||0);let q=G&&J.borderWidth||0;return(G+q)*2}draw(J,G){let q=this.options;if(this.skip||q.radius<0.1||!x4(this,G,this.size(q)/2))return;J.strokeStyle=q.borderColor,J.lineWidth=q.borderWidth,J.fillStyle=q.backgroundColor,S3(J,q,this.x,this.y)}getRange(){let J=this.options||{};return J.radius+J.hitRadius}}function L_(J,G){let{x:q,y:X,base:N,width:K,height:H}=J.getProps(["x","y","base","width","height"],G),F,W,M,R,_;if(J.horizontal)_=H/2,F=Math.min(q,N),W=Math.max(q,N),M=X-_,R=X+_;else _=K/2,F=q-_,W=q+_,M=Math.min(X,N),R=Math.max(X,N);return{left:F,top:M,right:W,bottom:R}}function v2(J,G,q,X){return J?0:$6(G,q,X)}function nA(J,G,q){let X=J.options.borderWidth,N=J.borderSkipped,K=MU(X);return{t:v2(N.top,K.top,0,q),r:v2(N.right,K.right,0,G),b:v2(N.bottom,K.bottom,0,q),l:v2(N.left,K.left,0,G)}}function oA(J,G,q){let{enableBorderRadius:X}=J.getProps(["enableBorderRadius"]),N=J.options.borderRadius,K=j2(N),H=Math.min(G,q),F=J.borderSkipped,W=X||$1(N);return{topLeft:v2(!W||F.top||F.left,K.topLeft,0,H),topRight:v2(!W||F.top||F.right,K.topRight,0,H),bottomLeft:v2(!W||F.bottom||F.left,K.bottomLeft,0,H),bottomRight:v2(!W||F.bottom||F.right,K.bottomRight,0,H)}}function aA(J){let G=L_(J),q=G.right-G.left,X=G.bottom-G.top,N=nA(J,q/2,X/2),K=oA(J,q/2,X/2);return{outer:{x:G.left,y:G.top,w:q,h:X,radius:K},inner:{x:G.left+N.l,y:G.top+N.t,w:q-N.l-N.r,h:X-N.t-N.b,radius:{topLeft:Math.max(0,K.topLeft-Math.max(N.t,N.l)),topRight:Math.max(0,K.topRight-Math.max(N.t,N.r)),bottomLeft:Math.max(0,K.bottomLeft-Math.max(N.b,N.l)),bottomRight:Math.max(0,K.bottomRight-Math.max(N.b,N.r))}}}}function bU(J,G,q,X){let N=G===null,K=q===null,F=J&&!(N&&K)&&L_(J,X);return F&&(N||O8(G,F.left,F.right))&&(K||O8(q,F.top,F.bottom))}function iA(J){return J.topLeft||J.topRight||J.bottomLeft||J.bottomRight}function tA(J,G){J.rect(G.x,G.y,G.w,G.h)}function fU(J,G,q={}){let X=J.x!==q.x?-G:0,N=J.y!==q.y?-G:0,K=(J.x+J.w!==q.x+q.w?G:0)-X,H=(J.y+J.h!==q.y+q.h?G:0)-N;return{x:J.x+X,y:J.y+N,w:J.w+K,h:J.h+H,radius:J.radius}}class tU extends E8{static id="bar";static defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(J){super();if(this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,J)Object.assign(this,J)}draw(J){let{inflateAmount:G,options:{borderColor:q,backgroundColor:X}}=this,{inner:N,outer:K}=aA(this),H=iA(K.radius)?H$:tA;if(J.save(),K.w!==N.w||K.h!==N.h)J.beginPath(),H(J,fU(K,G,N)),J.clip(),H(J,fU(N,-G,K)),J.fillStyle=q,J.fill("evenodd");J.beginPath(),H(J,fU(N,G)),J.fillStyle=X,J.fill(),J.restore()}inRange(J,G,q){return bU(this,J,G,q)}inXRange(J,G){return bU(this,J,null,G)}inYRange(J,G){return bU(this,null,J,G)}getCenterPoint(J){let{x:G,y:q,base:X,horizontal:N}=this.getProps(["x","y","base","horizontal"],J);return{x:N?(G+X)/2:G,y:N?q:(q+X)/2}}getRange(J){return J==="x"?this.width/2:this.height/2}}function eA(J,G,q){let{segments:X,points:N}=J,K=G.points,H=[];for(let F of X){let{start:W,end:M}=F;M=p3(W,M,N);let R=mU(q,N[W],N[M],F.loop);if(!G.segments){H.push({source:F,target:R,start:N[W],end:N[M]});continue}let _=IU(G,R);for(let P of _){let O=mU(q,K[P.start],K[P.end],P.loop),E=OU(F,N,O);for(let V of E)H.push({source:V,target:P,start:{[q]:bR(R,O,"start",Math.max)},end:{[q]:bR(R,O,"end",Math.min)}})}}return H}function mU(J,G,q,X){if(X)return;let N=G[J],K=q[J];if(J==="angle")N=i5(N),K=i5(K);return{property:J,start:N,end:K}}function $E(J,G){let{x:q=null,y:X=null}=J||{},N=G.points,K=[];return G.segments.forEach(({start:H,end:F})=>{F=p3(H,F,N);let W=N[H],M=N[F];if(X!==null)K.push({x:W.x,y:X}),K.push({x:M.x,y:X});else if(q!==null)K.push({x:q,y:W.y}),K.push({x:q,y:M.y})}),K}function p3(J,G,q){for(;G>J;G--){let X=q[G];if(!isNaN(X.x)&&!isNaN(X.y))break}return G}function bR(J,G,q,X){if(J&&G)return X(J[q],G[q]);return J?J[q]:G?G[q]:0}function P_(J,G){let q=[],X=!1;if(E1(J))X=!0,q=J;else q=$E(J,G);return q.length?new F$({points:q,options:{tension:0},_loop:X,_fullLoop:X}):null}function fR(J){return J&&J.fill!==!1}function ZE(J,G,q){let N=J[G].fill,K=[G],H;if(!q)return N;while(N!==!1&&K.indexOf(N)===-1){if(!h1(N))return N;if(H=J[N],!H)return!1;if(H.visible)return N;K.push(N),N=H.fill}return!1}function JE(J,G,q){let X=YE(J);if($1(X))return isNaN(X.value)?!1:X;let N=parseFloat(X);if(h1(N)&&Math.floor(N)===N)return QE(X[0],G,N,q);return["origin","start","end","stack","shape"].indexOf(X)>=0&&X}function QE(J,G,q,X){if(J==="-"||J==="+")q=G+q;if(q===G||q<0||q>=X)return!1;return q}function GE(J,G){let q=null;if(J==="start")q=G.bottom;else if(J==="end")q=G.top;else if($1(J))q=G.getPixelForValue(J.value);else if(G.getBasePixel)q=G.getBasePixel();return q}function qE(J,G,q){let X;if(J==="start")X=q;else if(J==="end")X=G.options.reverse?G.min:G.max;else if($1(J))X=J.value;else X=G.getBaseValue();return X}function YE(J){let G=J.options,q=G.fill,X=s0(q&&q.target,q);if(X===void 0)X=!!G.backgroundColor;if(X===!1||X===null)return!1;if(X===!0)return"origin";return X}function XE(J){let{scale:G,index:q,line:X}=J,N=[],K=X.segments,H=X.points,F=NE(G,q);F.push(P_({x:null,y:G.bottom},X));for(let W=0;W<K.length;W++){let M=K[W];for(let R=M.start;R<=M.end;R++)UE(N,H[R],F)}return new F$({points:N,options:{}})}function NE(J,G){let q=[],X=J.getMatchingVisibleMetas("line");for(let N=0;N<X.length;N++){let K=X[N];if(K.index===G)break;if(!K.hidden)q.unshift(K.dataset)}return q}function UE(J,G,q){let X=[];for(let N=0;N<q.length;N++){let K=q[N],{first:H,last:F,point:W}=KE(K,G,"x");if(!W||H&&F)continue;if(H)X.unshift(W);else if(J.push(W),!F)break}J.push(...X)}function KE(J,G,q){let X=J.interpolate(G,q);if(!X)return{};let N=X[q],K=J.segments,H=J.points,F=!1,W=!1;for(let M=0;M<K.length;M++){let R=K[M],_=H[R.start][q],P=H[R.end][q];if(O8(N,_,P)){F=N===_,W=N===P;break}}return{first:F,last:W,point:X}}class eU{constructor(J){this.x=J.x,this.y=J.y,this.radius=J.radius}pathSegment(J,G,q){let{x:X,y:N,radius:K}=this;return G=G||{start:0,end:e5},J.arc(X,N,K,G.end,G.start,!0),!q.bounds}interpolate(J){let{x:G,y:q,radius:X}=this,N=J.angle;return{x:G+Math.cos(N)*X,y:q+Math.sin(N)*X,angle:N}}}function BE(J){let{chart:G,fill:q,line:X}=J;if(h1(q))return HE(G,q);if(q==="stack")return XE(J);if(q==="shape")return!0;let N=FE(J);if(N instanceof eU)return N;return P_(N,X)}function HE(J,G){let q=J.getDatasetMeta(G);return q&&J.isDatasetVisible(G)?q.dataset:null}function FE(J){if((J.scale||{}).getPointPositionForValue)return zE(J);return WE(J)}function WE(J){let{scale:G={},fill:q}=J,X=GE(q,G);if(h1(X)){let N=G.isHorizontal();return{x:N?X:null,y:N?null:X}}return null}function zE(J){let{scale:G,fill:q}=J,X=G.options,N=G.getLabels().length,K=X.reverse?G.max:G.min,H=qE(q,G,K),F=[];if(X.grid.circular){let W=G.getPointPositionForValue(0,K);return new eU({x:W.x,y:W.y,radius:G.getDistanceFromCenterForValue(H)})}for(let W=0;W<N;++W)F.push(G.getPointPositionForValue(W,H));return F}function yU(J,G,q){let X=BE(G),{chart:N,index:K,line:H,scale:F,axis:W}=G,M=H.options,R=M.fill,_=M.backgroundColor,{above:P=_,below:O=_}=R||{},E=N.getDatasetMeta(K),V=VU(N,E);if(X&&H.points.length)YJ(J,q),ME(J,{line:H,target:X,above:P,below:O,area:q,scale:F,axis:W,clip:V}),XJ(J)}function ME(J,G){let{line:q,target:X,above:N,below:K,area:H,scale:F,clip:W}=G,M=q._loop?"angle":G.axis;J.save();let R=K;if(K!==N){if(M==="x")yR(J,X,H.top),gU(J,{line:q,target:X,color:N,scale:F,property:M,clip:W}),J.restore(),J.save(),yR(J,X,H.bottom);else if(M==="y")gR(J,X,H.left),gU(J,{line:q,target:X,color:K,scale:F,property:M,clip:W}),J.restore(),J.save(),gR(J,X,H.right),R=N}gU(J,{line:q,target:X,color:R,scale:F,property:M,clip:W}),J.restore()}function yR(J,G,q){let{segments:X,points:N}=G,K=!0,H=!1;J.beginPath();for(let F of X){let{start:W,end:M}=F,R=N[W],_=N[p3(W,M,N)];if(K)J.moveTo(R.x,R.y),K=!1;else J.lineTo(R.x,q),J.lineTo(R.x,R.y);if(H=!!G.pathSegment(J,F,{move:H}),H)J.closePath();else J.lineTo(_.x,q)}J.lineTo(G.first().x,q),J.closePath(),J.clip()}function gR(J,G,q){let{segments:X,points:N}=G,K=!0,H=!1;J.beginPath();for(let F of X){let{start:W,end:M}=F,R=N[W],_=N[p3(W,M,N)];if(K)J.moveTo(R.x,R.y),K=!1;else J.lineTo(q,R.y),J.lineTo(R.x,R.y);if(H=!!G.pathSegment(J,F,{move:H}),H)J.closePath();else J.lineTo(q,_.y)}J.lineTo(q,G.first().y),J.closePath(),J.clip()}function gU(J,G){let{line:q,target:X,property:N,color:K,scale:H,clip:F}=G,W=eA(q,X,N);for(let{source:M,target:R,start:_,end:P}of W){let{style:{backgroundColor:O=K}={}}=M,E=X!==!0;J.save(),J.fillStyle=O,wE(J,H,F,E&&mU(N,_,P)),J.beginPath();let V=!!q.pathSegment(J,M),I;if(E){if(V)J.closePath();else hR(J,X,P,N);let j=!!X.pathSegment(J,R,{move:V,reverse:!0});if(I=V&&j,!I)hR(J,X,_,N)}J.closePath(),J.fill(I?"evenodd":"nonzero"),J.restore()}}function wE(J,G,q,X){let N=G.chart.chartArea,{property:K,start:H,end:F}=X||{};if(K==="x"||K==="y"){let W,M,R,_;if(K==="x")W=H,M=N.top,R=F,_=N.bottom;else W=N.left,M=H,R=N.right,_=F;if(J.beginPath(),q)W=Math.max(W,q.left),R=Math.min(R,q.right),M=Math.max(M,q.top),_=Math.min(_,q.bottom);J.rect(W,M,R-W,_-M),J.clip()}}function hR(J,G,q,X){let N=G.interpolate(q,X);if(N)J.lineTo(N.x,N.y)}var T_={id:"filler",afterDatasetsUpdate(J,G,q){let X=(J.data.datasets||[]).length,N=[],K,H,F,W;for(H=0;H<X;++H){if(K=J.getDatasetMeta(H),F=K.dataset,W=null,F&&F.options&&F instanceof F$)W={visible:J.isDatasetVisible(H),index:H,fill:JE(F,H,X),chart:J,axis:K.controller.options.indexAxis,scale:K.vScale,line:F};K.$filler=W,N.push(W)}for(H=0;H<X;++H){if(W=N[H],!W||W.fill===!1)continue;W.fill=ZE(N,H,q.propagate)}},beforeDraw(J,G,q){let X=q.drawTime==="beforeDraw",N=J.getSortedVisibleDatasetMetas(),K=J.chartArea;for(let H=N.length-1;H>=0;--H){let F=N[H].$filler;if(!F)continue;if(F.line.updateControlPoints(K,F.axis),X&&F.fill)yU(J.ctx,F,K)}},beforeDatasetsDraw(J,G,q){if(q.drawTime!=="beforeDatasetsDraw")return;let X=J.getSortedVisibleDatasetMetas();for(let N=X.length-1;N>=0;--N){let K=X[N].$filler;if(fR(K))yU(J.ctx,K,J.chartArea)}},beforeDatasetDraw(J,G,q){let X=G.meta.$filler;if(!fR(X)||q.drawTime!=="beforeDatasetDraw")return;yU(J.ctx,X,J.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}},uR=(J,G)=>{let{boxHeight:q=G,boxWidth:X=G}=J;if(J.usePointStyle)q=Math.min(q,G),X=J.pointStyleWidth||Math.min(X,G);return{boxWidth:X,boxHeight:q,itemHeight:Math.max(G,q)}},RE=(J,G)=>J!==null&&G!==null&&J.datasetIndex===G.datasetIndex&&J.index===G.index;class dU extends E8{constructor(J){super();this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=J.chart,this.options=J.options,this.ctx=J.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(J,G,q){this.maxWidth=J,this.maxHeight=G,this._margins=q,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){if(this.isHorizontal())this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width;else this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height}buildLabels(){let J=this.options.labels||{},G=O1(J.generateLabels,[this.chart],this)||[];if(J.filter)G=G.filter((q)=>J.filter(q,this.chart.data));if(J.sort)G=G.sort((q,X)=>J.sort(q,X,this.chart.data));if(this.options.reverse)G.reverse();this.legendItems=G}fit(){let{options:J,ctx:G}=this;if(!J.display){this.width=this.height=0;return}let q=J.labels,X=Q5(q.font),N=X.size,K=this._computeTitleHeight(),{boxWidth:H,itemHeight:F}=uR(q,N),W,M;if(G.font=X.string,this.isHorizontal())W=this.maxWidth,M=this._fitRows(K,N,H,F)+10;else M=this.maxHeight,W=this._fitCols(K,X,H,F)+10;this.width=Math.min(W,J.maxWidth||this.maxWidth),this.height=Math.min(M,J.maxHeight||this.maxHeight)}_fitRows(J,G,q,X){let{ctx:N,maxWidth:K,options:{labels:{padding:H}}}=this,F=this.legendHitBoxes=[],W=this.lineWidths=[0],M=X+H,R=J;N.textAlign="left",N.textBaseline="middle";let _=-1,P=-M;return this.legendItems.forEach((O,E)=>{let V=q+G/2+N.measureText(O.text).width;if(E===0||W[W.length-1]+V+2*H>K)R+=M,W[W.length-(E>0?0:1)]=0,P+=M,_++;F[E]={left:0,top:P,row:_,width:V,height:X},W[W.length-1]+=V+H}),R}_fitCols(J,G,q,X){let{ctx:N,maxHeight:K,options:{labels:{padding:H}}}=this,F=this.legendHitBoxes=[],W=this.columnSizes=[],M=K-J,R=H,_=0,P=0,O=0,E=0;return this.legendItems.forEach((V,I)=>{let{itemWidth:j,itemHeight:h}=_E(q,G,N,V,X);if(I>0&&P+h+2*H>M)R+=_+H,W.push({width:_,height:P}),O+=_+H,E++,_=P=0;F[I]={left:O,top:P,col:E,width:j,height:h},_=Math.max(_,j),P+=h+H}),R+=_,W.push({width:_,height:P}),R}adjustHitBoxes(){if(!this.options.display)return;let J=this._computeTitleHeight(),{legendHitBoxes:G,options:{align:q,labels:{padding:X},rtl:N}}=this,K=y7(N,this.left,this.width);if(this.isHorizontal()){let H=0,F=P5(q,this.left+X,this.right-this.lineWidths[H]);for(let W of G){if(H!==W.row)H=W.row,F=P5(q,this.left+X,this.right-this.lineWidths[H]);W.top+=this.top+J+X,W.left=K.leftForLtr(K.x(F),W.width),F+=W.width+X}}else{let H=0,F=P5(q,this.top+J+X,this.bottom-this.columnSizes[H].height);for(let W of G){if(W.col!==H)H=W.col,F=P5(q,this.top+J+X,this.bottom-this.columnSizes[H].height);W.top=F,W.left+=this.left+X,W.left=K.leftForLtr(K.x(W.left),W.width),F+=W.height+X}}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){let J=this.ctx;YJ(J,this),this._draw(),XJ(J)}}_draw(){let{options:J,columnSizes:G,lineWidths:q,ctx:X}=this,{align:N,labels:K}=J,H=u1.color,F=y7(J.rtl,this.left,this.width),W=Q5(K.font),{padding:M}=K,R=W.size,_=R/2,P;this.drawTitle(),X.textAlign=F.textAlign("left"),X.textBaseline="middle",X.lineWidth=0.5,X.font=W.string;let{boxWidth:O,boxHeight:E,itemHeight:V}=uR(K,R),I=function(a,Q0,t){if(isNaN(O)||O<=0||isNaN(E)||E<0)return;X.save();let i=s0(t.lineWidth,1);if(X.fillStyle=s0(t.fillStyle,H),X.lineCap=s0(t.lineCap,"butt"),X.lineDashOffset=s0(t.lineDashOffset,0),X.lineJoin=s0(t.lineJoin,"miter"),X.lineWidth=i,X.strokeStyle=s0(t.strokeStyle,H),X.setLineDash(s0(t.lineDash,[])),K.usePointStyle){let X0={radius:E*Math.SQRT2/2,pointStyle:t.pointStyle,rotation:t.rotation,borderWidth:i},d=F.xPlus(a,O/2),H0=Q0+_;WU(X,X0,d,H0,K.pointStyleWidth&&O)}else{let X0=Q0+Math.max((R-E)/2,0),d=F.leftForLtr(a,O),H0=j2(t.borderRadius);if(X.beginPath(),Object.values(H0).some((P0)=>P0!==0))H$(X,{x:d,y:X0,w:O,h:E,radius:H0});else X.rect(d,X0,O,E);if(X.fill(),i!==0)X.stroke()}X.restore()},j=function(a,Q0,t){D2(X,t.text,a,Q0+V/2,W,{strikethrough:t.hidden,textAlign:F.textAlign(t.textAlign)})},h=this.isHorizontal(),p=this._computeTitleHeight();if(h)P={x:P5(N,this.left+M,this.right-q[0]),y:this.top+M+p,line:0};else P={x:this.left+M,y:P5(N,this.top+p+M,this.bottom-G[0].height),line:0};TU(this.ctx,J.textDirection);let n=V+M;this.legendItems.forEach((a,Q0)=>{X.strokeStyle=a.fontColor,X.fillStyle=a.fontColor;let t=X.measureText(a.text).width,i=F.textAlign(a.textAlign||(a.textAlign=K.textAlign)),X0=O+_+t,d=P.x,H0=P.y;if(F.setWidth(this.width),h){if(Q0>0&&d+X0+M>this.right)H0=P.y+=n,P.line++,d=P.x=P5(N,this.left+M,this.right-q[P.line])}else if(Q0>0&&H0+n>this.bottom)d=P.x=d+G[P.line].width+M,P.line++,H0=P.y=P5(N,this.top+p+M,this.bottom-G[P.line].height);let P0=F.x(d);if(I(P0,H0,a),d=uw(i,d+O+_,h?d+X0:this.right,J.rtl),j(F.x(d),H0,a),h)P.x+=X0+M;else if(typeof a.text!=="string"){let O0=W.lineHeight;P.y+=C_(a,O0)+M}else P.y+=n}),CU(this.ctx,J.textDirection)}drawTitle(){let J=this.options,G=J.title,q=Q5(G.font),X=T5(G.padding);if(!G.display)return;let N=y7(J.rtl,this.left,this.width),K=this.ctx,H=G.position,F=q.size/2,W=X.top+F,M,R=this.left,_=this.width;if(this.isHorizontal())_=Math.max(...this.lineWidths),M=this.top+W,R=P5(J.align,R,this.right-_);else{let O=this.columnSizes.reduce((E,V)=>Math.max(E,V.height),0);M=W+P5(J.align,this.top,this.bottom-O-J.labels.padding-this._computeTitleHeight())}let P=P5(H,R,R+_);K.textAlign=N.textAlign(V3(H)),K.textBaseline="middle",K.strokeStyle=G.color,K.fillStyle=G.color,K.font=q.string,D2(K,G.text,P,M,q)}_computeTitleHeight(){let J=this.options.title,G=Q5(J.font),q=T5(J.padding);return J.display?G.lineHeight+q.height:0}_getLegendItemAt(J,G){let q,X,N;if(O8(J,this.left,this.right)&&O8(G,this.top,this.bottom)){N=this.legendHitBoxes;for(q=0;q<N.length;++q)if(X=N[q],O8(J,X.left,X.left+X.width)&&O8(G,X.top,X.top+X.height))return this.legendItems[q]}return null}handleEvent(J){let G=this.options;if(!TE(J.type,G))return;let q=this._getLegendItemAt(J.x,J.y);if(J.type==="mousemove"||J.type==="mouseout"){let X=this._hoveredItem,N=RE(X,q);if(X&&!N)O1(G.onLeave,[J,X,this],this);if(this._hoveredItem=q,q&&!N)O1(G.onHover,[J,q,this],this)}else if(q)O1(G.onClick,[J,q,this],this)}}function _E(J,G,q,X,N){let K=LE(X,J,G,q),H=PE(N,X,G.lineHeight);return{itemWidth:K,itemHeight:H}}function LE(J,G,q,X){let N=J.text;if(N&&typeof N!=="string")N=N.reduce((K,H)=>K.length>H.length?K:H);return G+q.size/2+X.measureText(N).width}function PE(J,G,q){let X=J;if(typeof G.text!=="string")X=C_(G,q);return X}function C_(J,G){let q=J.text?J.text.length:0;return G*q}function TE(J,G){if((J==="mousemove"||J==="mouseout")&&(G.onHover||G.onLeave))return!0;if(G.onClick&&(J==="click"||J==="mouseup"))return!0;return!1}var O_={id:"legend",_element:dU,start(J,G,q){let X=J.legend=new dU({ctx:J.ctx,options:q,chart:J});c6.configure(J,X,q),c6.addBox(J,X)},stop(J){c6.removeBox(J,J.legend),delete J.legend},beforeUpdate(J,G,q){let X=J.legend;c6.configure(J,X,q),X.options=q},afterUpdate(J){let G=J.legend;G.buildLabels(),G.adjustHitBoxes()},afterEvent(J,G){if(!G.replay)J.legend.handleEvent(G.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1000,onClick(J,G,q){let X=G.datasetIndex,N=q.chart;if(N.isDatasetVisible(X))N.hide(X),G.hidden=!0;else N.show(X),G.hidden=!1},onHover:null,onLeave:null,labels:{color:(J)=>J.chart.options.color,boxWidth:40,padding:10,generateLabels(J){let G=J.data.datasets,{labels:{usePointStyle:q,pointStyle:X,textAlign:N,color:K,useBorderRadius:H,borderRadius:F}}=J.legend.options;return J._getSortedDatasetMetas().map((W)=>{let M=W.controller.getStyle(q?0:void 0),R=T5(M.borderWidth);return{text:G[W.index].label,fillStyle:M.backgroundColor,fontColor:K,hidden:!W.visible,lineCap:M.borderCapStyle,lineDash:M.borderDash,lineDashOffset:M.borderDashOffset,lineJoin:M.borderJoinStyle,lineWidth:(R.width+R.height)/4,strokeStyle:M.borderColor,pointStyle:X||M.pointStyle,rotation:M.rotation,textAlign:N||M.textAlign,borderRadius:H&&(F||M.borderRadius),datasetIndex:W.index}},this)}},title:{color:(J)=>J.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:(J)=>!J.startsWith("on"),labels:{_scriptable:(J)=>!["generateLabels","filter","sort"].includes(J)}}};class $K extends E8{constructor(J){super();this.chart=J.chart,this.options=J.options,this.ctx=J.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(J,G){let q=this.options;if(this.left=0,this.top=0,!q.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=J,this.height=this.bottom=G;let X=E1(q.text)?q.text.length:1;this._padding=T5(q.padding);let N=X*Q5(q.font).lineHeight+this._padding.height;if(this.isHorizontal())this.height=N;else this.width=N}isHorizontal(){let J=this.options.position;return J==="top"||J==="bottom"}_drawArgs(J){let{top:G,left:q,bottom:X,right:N,options:K}=this,H=K.align,F=0,W,M,R;if(this.isHorizontal())M=P5(H,q,N),R=G+J,W=N-q;else{if(K.position==="left")M=q+J,R=P5(H,X,G),F=r1*-0.5;else M=N-J,R=P5(H,G,X),F=r1*0.5;W=X-G}return{titleX:M,titleY:R,maxWidth:W,rotation:F}}draw(){let J=this.ctx,G=this.options;if(!G.display)return;let q=Q5(G.font),N=q.lineHeight/2+this._padding.top,{titleX:K,titleY:H,maxWidth:F,rotation:W}=this._drawArgs(N);D2(J,G.text,0,0,q,{color:G.color,maxWidth:F,rotation:W,textAlign:V3(G.align),textBaseline:"middle",translation:[K,H]})}}function CE(J,G){let q=new $K({ctx:J.ctx,options:G,chart:J});c6.configure(J,q,G),c6.addBox(J,q),J.titleBlock=q}var I_={id:"title",_element:$K,start(J,G,q){CE(J,q)},stop(J){let G=J.titleBlock;c6.removeBox(J,G),delete J.titleBlock},beforeUpdate(J,G,q){let X=J.titleBlock;c6.configure(J,X,q),X.options=q},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2000},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};var MJ={average(J){if(!J.length)return!1;let G,q,X=new Set,N=0,K=0;for(G=0,q=J.length;G<q;++G){let F=J[G].element;if(F&&F.hasValue()){let W=F.tooltipPosition();X.add(W.x),N+=W.y,++K}}if(K===0||X.size===0)return!1;return{x:[...X].reduce((F,W)=>F+W)/X.size,y:N/K}},nearest(J,G){if(!J.length)return!1;let{x:q,y:X}=G,N=Number.POSITIVE_INFINITY,K,H,F;for(K=0,H=J.length;K<H;++K){let W=J[K].element;if(W&&W.hasValue()){let M=W.getCenterPoint(),R=P3(G,M);if(R<N)N=R,F=W}}if(F){let W=F.tooltipPosition();q=W.x,X=W.y}return{x:q,y:X}}};function d4(J,G){if(G)if(E1(G))Array.prototype.push.apply(J,G);else J.push(G);return J}function A8(J){if((typeof J==="string"||J instanceof String)&&J.indexOf(`
|
|
256
|
+
`)>-1)return J.split(`
|
|
257
|
+
`);return J}function OE(J,G){let{element:q,datasetIndex:X,index:N}=G,K=J.getDatasetMeta(X).controller,{label:H,value:F}=K.getLabelAndValue(N);return{chart:J,label:H,parsed:K.getParsed(N),raw:J.data.datasets[X].data[N],formattedValue:F,dataset:K.getDataset(),dataIndex:N,datasetIndex:X,element:q}}function xR(J,G){let q=J.chart.ctx,{body:X,footer:N,title:K}=J,{boxWidth:H,boxHeight:F}=G,W=Q5(G.bodyFont),M=Q5(G.titleFont),R=Q5(G.footerFont),_=K.length,P=N.length,O=X.length,E=T5(G.padding),V=E.height,I=0,j=X.reduce((n,a)=>n+a.before.length+a.lines.length+a.after.length,0);if(j+=J.beforeBody.length+J.afterBody.length,_)V+=_*M.lineHeight+(_-1)*G.titleSpacing+G.titleMarginBottom;if(j){let n=G.displayColors?Math.max(F,W.lineHeight):W.lineHeight;V+=O*n+(j-O)*W.lineHeight+(j-1)*G.bodySpacing}if(P)V+=G.footerMarginTop+P*R.lineHeight+(P-1)*G.footerSpacing;let h=0,p=function(n){I=Math.max(I,q.measureText(n).width+h)};return q.save(),q.font=M.string,F1(J.title,p),q.font=W.string,F1(J.beforeBody.concat(J.afterBody),p),h=G.displayColors?H+2+G.boxPadding:0,F1(X,(n)=>{F1(n.before,p),F1(n.lines,p),F1(n.after,p)}),h=0,q.font=R.string,F1(J.footer,p),q.restore(),I+=E.width,{width:I,height:V}}function IE(J,G){let{y:q,height:X}=G;if(q<X/2)return"top";else if(q>J.height-X/2)return"bottom";return"center"}function VE(J,G,q,X){let{x:N,width:K}=X,H=q.caretSize+q.caretPadding;if(J==="left"&&N+K+H>G.width)return!0;if(J==="right"&&N-K-H<0)return!0}function AE(J,G,q,X){let{x:N,width:K}=q,{width:H,chartArea:{left:F,right:W}}=J,M="center";if(X==="center")M=N<=(F+W)/2?"left":"right";else if(N<=K/2)M="left";else if(N>=H-K/2)M="right";if(VE(M,J,G,q))M="center";return M}function mR(J,G,q){let X=q.yAlign||G.yAlign||IE(J,q);return{xAlign:q.xAlign||G.xAlign||AE(J,G,q,X),yAlign:X}}function EE(J,G){let{x:q,width:X}=J;if(G==="right")q-=X;else if(G==="center")q-=X/2;return q}function SE(J,G,q){let{y:X,height:N}=J;if(G==="top")X+=q;else if(G==="bottom")X-=N+q;else X-=N/2;return X}function dR(J,G,q,X){let{caretSize:N,caretPadding:K,cornerRadius:H}=J,{xAlign:F,yAlign:W}=q,M=N+K,{topLeft:R,topRight:_,bottomLeft:P,bottomRight:O}=j2(H),E=EE(G,F),V=SE(G,W,M);if(W==="center"){if(F==="left")E+=M;else if(F==="right")E-=M}else if(F==="left")E-=Math.max(R,P)+N;else if(F==="right")E+=Math.max(_,O)+N;return{x:$6(E,0,X.width-G.width),y:$6(V,0,X.height-G.height)}}function g3(J,G,q){let X=T5(q.padding);return G==="center"?J.x+J.width/2:G==="right"?J.x+J.width-X.right:J.x+X.left}function pR(J){return d4([],A8(J))}function DE(J,G,q){return I8(J,{tooltip:G,tooltipItems:q,type:"tooltip"})}function cR(J,G){let q=G&&G.dataset&&G.dataset.tooltip&&G.dataset.tooltip.callbacks;return q?J.override(q):J}var V_={beforeTitle:m4,title(J){if(J.length>0){let G=J[0],q=G.chart.data.labels,X=q?q.length:0;if(this&&this.options&&this.options.mode==="dataset")return G.dataset.label||"";else if(G.label)return G.label;else if(X>0&&G.dataIndex<X)return q[G.dataIndex]}return""},afterTitle:m4,beforeBody:m4,beforeLabel:m4,label(J){if(this&&this.options&&this.options.mode==="dataset")return J.label+": "+J.formattedValue||J.formattedValue;let G=J.dataset.label||"";if(G)G+=": ";let q=J.formattedValue;if(!Q1(q))G+=q;return G},labelColor(J){let q=J.chart.getDatasetMeta(J.datasetIndex).controller.getStyle(J.dataIndex);return{borderColor:q.borderColor,backgroundColor:q.backgroundColor,borderWidth:q.borderWidth,borderDash:q.borderDash,borderDashOffset:q.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(J){let q=J.chart.getDatasetMeta(J.datasetIndex).controller.getStyle(J.dataIndex);return{pointStyle:q.pointStyle,rotation:q.rotation}},afterLabel:m4,afterBody:m4,beforeFooter:m4,footer:m4,afterFooter:m4};function J6(J,G,q,X){let N=J[G].call(q,X);if(typeof N>"u")return V_[G].call(q,X);return N}class pU extends E8{static positioners=MJ;constructor(J){super();this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=J.chart,this.options=J.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(J){this.options=J,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){let J=this._cachedAnimations;if(J)return J;let G=this.chart,q=this.options.setContext(this.getContext()),X=q.enabled&&G.options.animation&&q.animations,N=new rU(this.chart,X);if(X._cacheable)this._cachedAnimations=Object.freeze(N);return N}getContext(){return this.$context||(this.$context=DE(this.chart.getContext(),this,this._tooltipItems))}getTitle(J,G){let{callbacks:q}=G,X=J6(q,"beforeTitle",this,J),N=J6(q,"title",this,J),K=J6(q,"afterTitle",this,J),H=[];return H=d4(H,A8(X)),H=d4(H,A8(N)),H=d4(H,A8(K)),H}getBeforeBody(J,G){return pR(J6(G.callbacks,"beforeBody",this,J))}getBody(J,G){let{callbacks:q}=G,X=[];return F1(J,(N)=>{let K={before:[],lines:[],after:[]},H=cR(q,N);d4(K.before,A8(J6(H,"beforeLabel",this,N))),d4(K.lines,J6(H,"label",this,N)),d4(K.after,A8(J6(H,"afterLabel",this,N))),X.push(K)}),X}getAfterBody(J,G){return pR(J6(G.callbacks,"afterBody",this,J))}getFooter(J,G){let{callbacks:q}=G,X=J6(q,"beforeFooter",this,J),N=J6(q,"footer",this,J),K=J6(q,"afterFooter",this,J),H=[];return H=d4(H,A8(X)),H=d4(H,A8(N)),H=d4(H,A8(K)),H}_createItems(J){let G=this._active,q=this.chart.data,X=[],N=[],K=[],H=[],F,W;for(F=0,W=G.length;F<W;++F)H.push(OE(this.chart,G[F]));if(J.filter)H=H.filter((M,R,_)=>J.filter(M,R,_,q));if(J.itemSort)H=H.sort((M,R)=>J.itemSort(M,R,q));return F1(H,(M)=>{let R=cR(J.callbacks,M);X.push(J6(R,"labelColor",this,M)),N.push(J6(R,"labelPointStyle",this,M)),K.push(J6(R,"labelTextColor",this,M))}),this.labelColors=X,this.labelPointStyles=N,this.labelTextColors=K,this.dataPoints=H,H}update(J,G){let q=this.options.setContext(this.getContext()),X=this._active,N,K=[];if(!X.length){if(this.opacity!==0)N={opacity:0}}else{let H=MJ[q.position].call(this,X,this._eventPosition);K=this._createItems(q),this.title=this.getTitle(K,q),this.beforeBody=this.getBeforeBody(K,q),this.body=this.getBody(K,q),this.afterBody=this.getAfterBody(K,q),this.footer=this.getFooter(K,q);let F=this._size=xR(this,q),W=Object.assign({},H,F),M=mR(this.chart,q,W),R=dR(q,W,M,this.chart);this.xAlign=M.xAlign,this.yAlign=M.yAlign,N={opacity:1,x:R.x,y:R.y,width:F.width,height:F.height,caretX:H.x,caretY:H.y}}if(this._tooltipItems=K,this.$context=void 0,N)this._resolveAnimations().update(this,N);if(J&&q.external)q.external.call(this,{chart:this.chart,tooltip:this,replay:G})}drawCaret(J,G,q,X){let N=this.getCaretPosition(J,q,X);G.lineTo(N.x1,N.y1),G.lineTo(N.x2,N.y2),G.lineTo(N.x3,N.y3)}getCaretPosition(J,G,q){let{xAlign:X,yAlign:N}=this,{caretSize:K,cornerRadius:H}=q,{topLeft:F,topRight:W,bottomLeft:M,bottomRight:R}=j2(H),{x:_,y:P}=J,{width:O,height:E}=G,V,I,j,h,p,n;if(N==="center"){if(p=P+E/2,X==="left")V=_,I=V-K,h=p+K,n=p-K;else V=_+O,I=V+K,h=p-K,n=p+K;j=V}else{if(X==="left")I=_+Math.max(F,M)+K;else if(X==="right")I=_+O-Math.max(W,R)-K;else I=this.caretX;if(N==="top")h=P,p=h-K,V=I-K,j=I+K;else h=P+E,p=h+K,V=I+K,j=I-K;n=h}return{x1:V,x2:I,x3:j,y1:h,y2:p,y3:n}}drawTitle(J,G,q){let X=this.title,N=X.length,K,H,F;if(N){let W=y7(q.rtl,this.x,this.width);J.x=g3(this,q.titleAlign,q),G.textAlign=W.textAlign(q.titleAlign),G.textBaseline="middle",K=Q5(q.titleFont),H=q.titleSpacing,G.fillStyle=q.titleColor,G.font=K.string;for(F=0;F<N;++F)if(G.fillText(X[F],W.x(J.x),J.y+K.lineHeight/2),J.y+=K.lineHeight+H,F+1===N)J.y+=q.titleMarginBottom-H}}_drawColorBox(J,G,q,X,N){let K=this.labelColors[q],H=this.labelPointStyles[q],{boxHeight:F,boxWidth:W}=N,M=Q5(N.bodyFont),R=g3(this,"left",N),_=X.x(R),P=F<M.lineHeight?(M.lineHeight-F)/2:0,O=G.y+P;if(N.usePointStyle){let E={radius:Math.min(W,F)/2,pointStyle:H.pointStyle,rotation:H.rotation,borderWidth:1},V=X.leftForLtr(_,W)+W/2,I=O+F/2;J.strokeStyle=N.multiKeyBackground,J.fillStyle=N.multiKeyBackground,S3(J,E,V,I),J.strokeStyle=K.borderColor,J.fillStyle=K.backgroundColor,S3(J,E,V,I)}else{J.lineWidth=$1(K.borderWidth)?Math.max(...Object.values(K.borderWidth)):K.borderWidth||1,J.strokeStyle=K.borderColor,J.setLineDash(K.borderDash||[]),J.lineDashOffset=K.borderDashOffset||0;let E=X.leftForLtr(_,W),V=X.leftForLtr(X.xPlus(_,1),W-2),I=j2(K.borderRadius);if(Object.values(I).some((j)=>j!==0))J.beginPath(),J.fillStyle=N.multiKeyBackground,H$(J,{x:E,y:O,w:W,h:F,radius:I}),J.fill(),J.stroke(),J.fillStyle=K.backgroundColor,J.beginPath(),H$(J,{x:V,y:O+1,w:W-2,h:F-2,radius:I}),J.fill();else J.fillStyle=N.multiKeyBackground,J.fillRect(E,O,W,F),J.strokeRect(E,O,W,F),J.fillStyle=K.backgroundColor,J.fillRect(V,O+1,W-2,F-2)}J.fillStyle=this.labelTextColors[q]}drawBody(J,G,q){let{body:X}=this,{bodySpacing:N,bodyAlign:K,displayColors:H,boxHeight:F,boxWidth:W,boxPadding:M}=q,R=Q5(q.bodyFont),_=R.lineHeight,P=0,O=y7(q.rtl,this.x,this.width),E=function(t){G.fillText(t,O.x(J.x+P),J.y+_/2),J.y+=_+N},V=O.textAlign(K),I,j,h,p,n,a,Q0;G.textAlign=K,G.textBaseline="middle",G.font=R.string,J.x=g3(this,V,q),G.fillStyle=q.bodyColor,F1(this.beforeBody,E),P=H&&V!=="right"?K==="center"?W/2+M:W+2+M:0;for(p=0,a=X.length;p<a;++p){if(I=X[p],j=this.labelTextColors[p],G.fillStyle=j,F1(I.before,E),h=I.lines,H&&h.length)this._drawColorBox(G,J,p,O,q),_=Math.max(R.lineHeight,F);for(n=0,Q0=h.length;n<Q0;++n)E(h[n]),_=R.lineHeight;F1(I.after,E)}P=0,_=R.lineHeight,F1(this.afterBody,E),J.y-=N}drawFooter(J,G,q){let X=this.footer,N=X.length,K,H;if(N){let F=y7(q.rtl,this.x,this.width);J.x=g3(this,q.footerAlign,q),J.y+=q.footerMarginTop,G.textAlign=F.textAlign(q.footerAlign),G.textBaseline="middle",K=Q5(q.footerFont),G.fillStyle=q.footerColor,G.font=K.string;for(H=0;H<N;++H)G.fillText(X[H],F.x(J.x),J.y+K.lineHeight/2),J.y+=K.lineHeight+q.footerSpacing}}drawBackground(J,G,q,X){let{xAlign:N,yAlign:K}=this,{x:H,y:F}=J,{width:W,height:M}=q,{topLeft:R,topRight:_,bottomLeft:P,bottomRight:O}=j2(X.cornerRadius);if(G.fillStyle=X.backgroundColor,G.strokeStyle=X.borderColor,G.lineWidth=X.borderWidth,G.beginPath(),G.moveTo(H+R,F),K==="top")this.drawCaret(J,G,q,X);if(G.lineTo(H+W-_,F),G.quadraticCurveTo(H+W,F,H+W,F+_),K==="center"&&N==="right")this.drawCaret(J,G,q,X);if(G.lineTo(H+W,F+M-O),G.quadraticCurveTo(H+W,F+M,H+W-O,F+M),K==="bottom")this.drawCaret(J,G,q,X);if(G.lineTo(H+P,F+M),G.quadraticCurveTo(H,F+M,H,F+M-P),K==="center"&&N==="left")this.drawCaret(J,G,q,X);if(G.lineTo(H,F+R),G.quadraticCurveTo(H,F,H+R,F),G.closePath(),G.fill(),X.borderWidth>0)G.stroke()}_updateAnimationTarget(J){let G=this.chart,q=this.$animations,X=q&&q.x,N=q&&q.y;if(X||N){let K=MJ[J.position].call(this,this._active,this._eventPosition);if(!K)return;let H=this._size=xR(this,J),F=Object.assign({},K,this._size),W=mR(G,J,F),M=dR(J,F,W,G);if(X._to!==M.x||N._to!==M.y)this.xAlign=W.xAlign,this.yAlign=W.yAlign,this.width=H.width,this.height=H.height,this.caretX=K.x,this.caretY=K.y,this._resolveAnimations().update(this,M)}}_willRender(){return!!this.opacity}draw(J){let G=this.options.setContext(this.getContext()),q=this.opacity;if(!q)return;this._updateAnimationTarget(G);let X={width:this.width,height:this.height},N={x:this.x,y:this.y};q=Math.abs(q)<0.001?0:q;let K=T5(G.padding),H=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;if(G.enabled&&H)J.save(),J.globalAlpha=q,this.drawBackground(N,J,X,G),TU(J,G.textDirection),N.y+=K.top,this.drawTitle(N,J,G),this.drawBody(N,J,G),this.drawFooter(N,J,G),CU(J,G.textDirection),J.restore()}getActiveElements(){return this._active||[]}setActiveElements(J,G){let q=this._active,X=J.map(({datasetIndex:H,index:F})=>{let W=this.chart.getDatasetMeta(H);if(!W)throw Error("Cannot find a dataset at index "+H);return{datasetIndex:H,element:W.data[F],index:F}}),N=!GJ(q,X),K=this._positionChanged(X,G);if(N||K)this._active=X,this._eventPosition=G,this._ignoreReplayEvents=!0,this.update(!0)}handleEvent(J,G,q=!0){if(G&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;let X=this.options,N=this._active||[],K=this._getActiveElements(J,N,G,q),H=this._positionChanged(K,J),F=G||!GJ(K,N)||H;if(F){if(this._active=K,X.enabled||X.external)this._eventPosition={x:J.x,y:J.y},this.update(!0,G)}return F}_getActiveElements(J,G,q,X){let N=this.options;if(J.type==="mouseout")return[];if(!X)return G.filter((H)=>this.chart.data.datasets[H.datasetIndex]&&this.chart.getDatasetMeta(H.datasetIndex).controller.getParsed(H.index)!==void 0);let K=this.chart.getElementsAtEventForMode(J,N.mode,N,q);if(N.reverse)K.reverse();return K}_positionChanged(J,G){let{caretX:q,caretY:X,options:N}=this,K=MJ[N.position].call(this,J,G);return K!==!1&&(q!==K.x||X!==K.y)}}var A_={id:"tooltip",_element:pU,positioners:MJ,afterInit(J,G,q){if(q)J.tooltip=new pU({chart:J,options:q})},beforeUpdate(J,G,q){if(J.tooltip)J.tooltip.initialize(q)},reset(J,G,q){if(J.tooltip)J.tooltip.initialize(q)},afterDraw(J){let G=J.tooltip;if(G&&G._willRender()){let q={tooltip:G};if(J.notifyPlugins("beforeTooltipDraw",{...q,cancelable:!0})===!1)return;G.draw(J.ctx),J.notifyPlugins("afterTooltipDraw",q)}},afterEvent(J,G){if(J.tooltip){let q=G.replay;if(J.tooltip.handleEvent(G.event,q,G.inChartArea))G.changed=!0}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(J,G)=>G.bodyFont.size,boxWidth:(J,G)=>G.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:V_},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:(J)=>J!=="filter"&&J!=="itemSort"&&J!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};var jE=(J,G,q,X)=>{if(typeof G==="string")q=J.push(G)-1,X.unshift({index:q,label:G});else if(isNaN(G))q=null;return q};function kE(J,G,q,X){let N=J.indexOf(G);if(N===-1)return jE(J,G,q,X);let K=J.lastIndexOf(G);return N!==K?q:N}var vE=(J,G)=>J===null?null:$6(Math.round(J),0,G);function lR(J){let G=this.getLabels();if(J>=0&&J<G.length)return G[J];return J}class ZK extends u7{static id="category";static defaults={ticks:{callback:lR}};constructor(J){super(J);this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(J){let G=this._addedLabels;if(G.length){let q=this.getLabels();for(let{index:X,label:N}of G)if(q[X]===N)q.splice(X,1);this._addedLabels=[]}super.init(J)}parse(J,G){if(Q1(J))return null;let q=this.getLabels();return G=isFinite(G)&&q[G]===J?G:kE(q,J,s0(G,J),this._addedLabels),vE(G,q.length-1)}determineDataLimits(){let{minDefined:J,maxDefined:G}=this.getUserBounds(),{min:q,max:X}=this.getMinMax(!0);if(this.options.bounds==="ticks"){if(!J)q=0;if(!G)X=this.getLabels().length-1}this.min=q,this.max=X}buildTicks(){let J=this.min,G=this.max,q=this.options.offset,X=[],N=this.getLabels();N=J===0&&G===N.length-1?N:N.slice(J,G+1),this._valueRange=Math.max(N.length-(q?0:1),1),this._startValue=this.min-(q?0.5:0);for(let K=J;K<=G;K++)X.push({value:K});return X}getLabelForValue(J){return lR.call(this,J)}configure(){if(super.configure(),!this.isHorizontal())this._reversePixels=!this._reversePixels}getPixelForValue(J){if(typeof J!=="number")J=this.parse(J);return J===null?NaN:this.getPixelForDecimal((J-this._startValue)/this._valueRange)}getPixelForTick(J){let G=this.ticks;if(J<0||J>G.length-1)return null;return this.getPixelForValue(G[J].value)}getValueForPixel(J){return Math.round(this._startValue+this.getDecimalForPixel(J)*this._valueRange)}getBasePixel(){return this.bottom}}function bE(J,G){let q=[],X=0.00000000000001,{bounds:N,step:K,min:H,max:F,precision:W,count:M,maxTicks:R,maxDigits:_,includeBounds:P}=J,O=K||1,E=R-1,{min:V,max:I}=G,j=!Q1(H),h=!Q1(F),p=!Q1(M),n=(I-V)/(_+1),a=QU((I-V)/E/O)*O,Q0,t,i,X0;if(a<0.00000000000001&&!j&&!h)return[{value:V},{value:I}];if(X0=Math.ceil(I/a)-Math.floor(V/a),X0>E)a=QU(X0*a/E/O)*O;if(!Q1(W))Q0=Math.pow(10,W),a=Math.ceil(a*Q0)/Q0;if(N==="ticks")t=Math.floor(V/a)*a,i=Math.ceil(I/a)*a;else t=V,i=I;if(j&&h&&K&&jw((F-H)/K,a/1000))X0=Math.round(Math.min((F-H)/a,R)),a=(F-H)/X0,t=H,i=F;else if(p)t=j?H:t,i=h?F:i,X0=M-1,a=(i-t)/X0;else if(X0=(i-t)/a,K$(X0,Math.round(X0),a/1000))X0=Math.round(X0);else X0=Math.ceil(X0);let d=Math.max(qU(a),qU(t));Q0=Math.pow(10,Q1(W)?d:W),t=Math.round(t*Q0)/Q0,i=Math.round(i*Q0)/Q0;let H0=0;if(j){if(P&&t!==H){if(q.push({value:H}),t<H)H0++;if(K$(Math.round((t+H0*a)*Q0)/Q0,H,rR(H,n,J)))H0++}else if(t<H)H0++}for(;H0<X0;++H0){let P0=Math.round((t+H0*a)*Q0)/Q0;if(h&&P0>F)break;q.push({value:P0})}if(h&&P&&i!==F)if(q.length&&K$(q[q.length-1].value,F,rR(F,n,J)))q[q.length-1].value=F;else q.push({value:F});else if(!h||i===F)q.push({value:i});return q}function rR(J,G,{horizontal:q,minRotation:X}){let N=C8(X),K=(q?Math.sin(N):Math.cos(N))||0.001,H=0.75*G*(""+J).length;return Math.min(G/K,H)}class RJ extends u7{constructor(J){super(J);this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(J,G){if(Q1(J))return null;if((typeof J==="number"||J instanceof Number)&&!isFinite(+J))return null;return+J}handleTickRangeOptions(){let{beginAtZero:J}=this.options,{minDefined:G,maxDefined:q}=this.getUserBounds(),{min:X,max:N}=this,K=(F)=>X=G?X:F,H=(F)=>N=q?N:F;if(J){let F=U4(X),W=U4(N);if(F<0&&W<0)H(0);else if(F>0&&W>0)K(0)}if(X===N){let F=N===0?1:Math.abs(N*0.05);if(H(N+F),!J)K(X-F)}this.min=X,this.max=N}getTickLimit(){let J=this.options.ticks,{maxTicksLimit:G,stepSize:q}=J,X;if(q){if(X=Math.ceil(this.max/q)-Math.floor(this.min/q)+1,X>1000)console.warn(`scales.${this.id}.ticks.stepSize: ${q} would result generating up to ${X} ticks. Limiting to 1000.`),X=1000}else X=this.computeTickLimit(),G=G||11;if(G)X=Math.min(G,X);return X}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){let J=this.options,G=J.ticks,q=this.getTickLimit();q=Math.max(2,q);let X={maxTicks:q,bounds:J.bounds,min:J.min,max:J.max,precision:G.precision,step:G.stepSize,count:G.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:G.minRotation||0,includeBounds:G.includeBounds!==!1},N=this._range||this,K=bE(X,N);if(J.bounds==="ticks")GU(K,this,"value");if(J.reverse)K.reverse(),this.start=this.max,this.end=this.min;else this.start=this.min,this.end=this.max;return K}configure(){let J=this.ticks,G=this.min,q=this.max;if(super.configure(),this.options.offset&&J.length){let X=(q-G)/Math.max(J.length-1,1)/2;G-=X,q+=X}this._startValue=G,this._endValue=q,this._valueRange=q-G}getLabelForValue(J){return A3(J,this.chart.options.locale,this.options.ticks.format)}}class JK extends RJ{static id="linear";static defaults={ticks:{callback:qJ.formatters.numeric}};determineDataLimits(){let{min:J,max:G}=this.getMinMax(!0);this.min=h1(J)?J:0,this.max=h1(G)?G:1,this.handleTickRangeOptions()}computeTickLimit(){let J=this.isHorizontal(),G=J?this.width:this.height,q=C8(this.options.ticks.minRotation),X=(J?Math.sin(q):Math.cos(q))||0.001,N=this._resolveTickFontOptions(0);return Math.ceil(G/Math.min(40,N.lineHeight/X))}getPixelForValue(J){return J===null?NaN:this.getPixelForDecimal((J-this._startValue)/this._valueRange)}getValueForPixel(J){return this._startValue+this.getDecimalForPixel(J)*this._valueRange}}var _J=(J)=>Math.floor(T8(J)),h7=(J,G)=>Math.pow(10,_J(J)+G);function sR(J){return J/Math.pow(10,_J(J))===1}function nR(J,G,q){let X=Math.pow(10,q),N=Math.floor(J/X);return Math.ceil(G/X)-N}function fE(J,G){let q=G-J,X=_J(q);while(nR(J,G,X)>10)X++;while(nR(J,G,X)<10)X--;return Math.min(X,_J(J))}function yE(J,{min:G,max:q}){G=Z6(J.min,G);let X=[],N=_J(G),K=fE(G,q),H=K<0?Math.pow(10,Math.abs(K)):1,F=Math.pow(10,K),W=N>K?Math.pow(10,N):0,M=Math.round((G-W)*H)/H,R=Math.floor((G-W)/F/10)*F*10,_=Math.floor((M-R)/Math.pow(10,K)),P=Z6(J.min,Math.round((W+R+_*Math.pow(10,K))*H)/H);while(P<q){if(X.push({value:P,major:sR(P),significand:_}),_>=10)_=_<15?15:20;else _++;if(_>=20)K++,_=2,H=K>=0?1:H;P=Math.round((W+R+_*Math.pow(10,K))*H)/H}let O=Z6(J.max,P);return X.push({value:O,major:sR(O),significand:_}),X}class gE extends u7{static id="logarithmic";static defaults={ticks:{callback:qJ.formatters.logarithmic,major:{enabled:!0}}};constructor(J){super(J);this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(J,G){let q=RJ.prototype.parse.apply(this,[J,G]);if(q===0){this._zero=!0;return}return h1(q)&&q>0?q:null}determineDataLimits(){let{min:J,max:G}=this.getMinMax(!0);if(this.min=h1(J)?Math.max(0,J):null,this.max=h1(G)?Math.max(0,G):null,this.options.beginAtZero)this._zero=!0;if(this._zero&&this.min!==this._suggestedMin&&!h1(this._userMin))this.min=J===h7(this.min,0)?h7(this.min,-1):h7(this.min,0);this.handleTickRangeOptions()}handleTickRangeOptions(){let{minDefined:J,maxDefined:G}=this.getUserBounds(),q=this.min,X=this.max,N=(H)=>q=J?q:H,K=(H)=>X=G?X:H;if(q===X)if(q<=0)N(1),K(10);else N(h7(q,-1)),K(h7(X,1));if(q<=0)N(h7(X,-1));if(X<=0)K(h7(q,1));this.min=q,this.max=X}buildTicks(){let J=this.options,G={min:this._userMin,max:this._userMax},q=yE(G,this);if(J.bounds==="ticks")GU(q,this,"value");if(J.reverse)q.reverse(),this.start=this.max,this.end=this.min;else this.start=this.min,this.end=this.max;return q}getLabelForValue(J){return J===void 0?"0":A3(J,this.chart.options.locale,this.options.ticks.format)}configure(){let J=this.min;super.configure(),this._startValue=T8(J),this._valueRange=T8(this.max)-T8(J)}getPixelForValue(J){if(J===void 0||J===0)J=this.min;if(J===null||isNaN(J))return NaN;return this.getPixelForDecimal(J===this.min?0:(T8(J)-this._startValue)/this._valueRange)}getValueForPixel(J){let G=this.getDecimalForPixel(J);return Math.pow(10,this._startValue+G*this._valueRange)}}function cU(J){let G=J.ticks;if(G.display&&J.display){let q=T5(G.backdropPadding);return s0(G.font&&G.font.size,u1.font.size)+q.height}return 0}function hE(J,G,q){return q=E1(q)?q:[q],{w:cw(J,G.string,q),h:q.length*G.lineHeight}}function oR(J,G,q,X,N){if(J===X||J===N)return{start:G-q/2,end:G+q/2};else if(J<X||J>N)return{start:G-q,end:G};return{start:G,end:G+q}}function uE(J){let G={l:J.left+J._padding.left,r:J.right-J._padding.right,t:J.top+J._padding.top,b:J.bottom-J._padding.bottom},q=Object.assign({},G),X=[],N=[],K=J._pointLabels.length,H=J.options.pointLabels,F=H.centerPointLabels?r1/K:0;for(let W=0;W<K;W++){let M=H.setContext(J.getPointLabelContext(W));N[W]=M.padding;let R=J.getPointPosition(W,J.drawingArea+N[W],F),_=Q5(M.font),P=hE(J.ctx,_,J._pointLabels[W]);X[W]=P;let O=i5(J.getIndexAngle(W)+F),E=Math.round(O3(O)),V=oR(E,R.x,P.w,0,180),I=oR(E,R.y,P.h,90,270);xE(q,G,O,V,I)}J.setCenterPoint(G.l-q.l,q.r-G.r,G.t-q.t,q.b-G.b),J._pointLabelItems=pE(J,X,N)}function xE(J,G,q,X,N){let K=Math.abs(Math.sin(q)),H=Math.abs(Math.cos(q)),F=0,W=0;if(X.start<G.l)F=(G.l-X.start)/K,J.l=Math.min(J.l,G.l-F);else if(X.end>G.r)F=(X.end-G.r)/K,J.r=Math.max(J.r,G.r+F);if(N.start<G.t)W=(G.t-N.start)/H,J.t=Math.min(J.t,G.t-W);else if(N.end>G.b)W=(N.end-G.b)/H,J.b=Math.max(J.b,G.b+W)}function mE(J,G,q){let X=J.drawingArea,{extra:N,additionalAngle:K,padding:H,size:F}=q,W=J.getPointPosition(G,X+N+H,K),M=Math.round(O3(i5(W.angle+t5))),R=rE(W.y,F.h,M),_=cE(M),P=lE(W.x,F.w,_);return{visible:!0,x:W.x,y:R,textAlign:_,left:P,top:R,right:P+F.w,bottom:R+F.h}}function dE(J,G){if(!G)return!0;let{left:q,top:X,right:N,bottom:K}=J;return!(x4({x:q,y:X},G)||x4({x:q,y:K},G)||x4({x:N,y:X},G)||x4({x:N,y:K},G))}function pE(J,G,q){let X=[],N=J._pointLabels.length,K=J.options,{centerPointLabels:H,display:F}=K.pointLabels,W={extra:cU(K)/2,additionalAngle:H?r1/N:0},M;for(let R=0;R<N;R++){W.padding=q[R],W.size=G[R];let _=mE(J,R,W);if(X.push(_),F==="auto"){if(_.visible=dE(_,M),_.visible)M=_}}return X}function cE(J){if(J===0||J===180)return"center";else if(J<180)return"left";return"right"}function lE(J,G,q){if(q==="right")J-=G;else if(q==="center")J-=G/2;return J}function rE(J,G,q){if(q===90||q===270)J-=G/2;else if(q>270||q<90)J-=G;return J}function sE(J,G,q){let{left:X,top:N,right:K,bottom:H}=q,{backdropColor:F}=G;if(!Q1(F)){let W=j2(G.borderRadius),M=T5(G.backdropPadding);J.fillStyle=F;let R=X-M.left,_=N-M.top,P=K-X+M.width,O=H-N+M.height;if(Object.values(W).some((E)=>E!==0))J.beginPath(),H$(J,{x:R,y:_,w:P,h:O,radius:W}),J.fill();else J.fillRect(R,_,P,O)}}function nE(J,G){let{ctx:q,options:{pointLabels:X}}=J;for(let N=G-1;N>=0;N--){let K=J._pointLabelItems[N];if(!K.visible)continue;let H=X.setContext(J.getPointLabelContext(N));sE(q,H,K);let F=Q5(H.font),{x:W,y:M,textAlign:R}=K;D2(q,J._pointLabels[N],W,M+F.lineHeight/2,F,{color:H.color,textAlign:R,textBaseline:"middle"})}}function E_(J,G,q,X){let{ctx:N}=J;if(q)N.arc(J.xCenter,J.yCenter,G,0,e5);else{let K=J.getPointPosition(0,G);N.moveTo(K.x,K.y);for(let H=1;H<X;H++)K=J.getPointPosition(H,G),N.lineTo(K.x,K.y)}}function oE(J,G,q,X,N){let K=J.ctx,H=G.circular,{color:F,lineWidth:W}=G;if(!H&&!X||!F||!W||q<0)return;K.save(),K.strokeStyle=F,K.lineWidth=W,K.setLineDash(N.dash||[]),K.lineDashOffset=N.dashOffset,K.beginPath(),E_(J,q,H,X),K.closePath(),K.stroke(),K.restore()}function aE(J,G,q){return I8(J,{label:q,index:G,type:"pointLabel"})}class iE extends RJ{static id="radialLinear";static defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:qJ.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(J){return J},padding:5,centerPointLabels:!1}};static defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"};static descriptors={angleLines:{_fallback:"grid"}};constructor(J){super(J);this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){let J=this._padding=T5(cU(this.options)/2),G=this.width=this.maxWidth-J.width,q=this.height=this.maxHeight-J.height;this.xCenter=Math.floor(this.left+G/2+J.left),this.yCenter=Math.floor(this.top+q/2+J.top),this.drawingArea=Math.floor(Math.min(G,q)/2)}determineDataLimits(){let{min:J,max:G}=this.getMinMax(!1);this.min=h1(J)&&!isNaN(J)?J:0,this.max=h1(G)&&!isNaN(G)?G:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/cU(this.options))}generateTickLabels(J){RJ.prototype.generateTickLabels.call(this,J),this._pointLabels=this.getLabels().map((G,q)=>{let X=O1(this.options.pointLabels.callback,[G,q],this);return X||X===0?X:""}).filter((G,q)=>this.chart.getDataVisibility(q))}fit(){let J=this.options;if(J.display&&J.pointLabels.display)uE(this);else this.setCenterPoint(0,0,0,0)}setCenterPoint(J,G,q,X){this.xCenter+=Math.floor((J-G)/2),this.yCenter+=Math.floor((q-X)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(J,G,q,X))}getIndexAngle(J){let G=e5/(this._pointLabels.length||1),q=this.options.startAngle||0;return i5(J*G+C8(q))}getDistanceFromCenterForValue(J){if(Q1(J))return NaN;let G=this.drawingArea/(this.max-this.min);if(this.options.reverse)return(this.max-J)*G;return(J-this.min)*G}getValueForDistanceFromCenter(J){if(Q1(J))return NaN;let G=J/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-G:this.min+G}getPointLabelContext(J){let G=this._pointLabels||[];if(J>=0&&J<G.length){let q=G[J];return aE(this.getContext(),J,q)}}getPointPosition(J,G,q=0){let X=this.getIndexAngle(J)-t5+q;return{x:Math.cos(X)*G+this.xCenter,y:Math.sin(X)*G+this.yCenter,angle:X}}getPointPositionForValue(J,G){return this.getPointPosition(J,this.getDistanceFromCenterForValue(G))}getBasePosition(J){return this.getPointPositionForValue(J||0,this.getBaseValue())}getPointLabelPosition(J){let{left:G,top:q,right:X,bottom:N}=this._pointLabelItems[J];return{left:G,top:q,right:X,bottom:N}}drawBackground(){let{backgroundColor:J,grid:{circular:G}}=this.options;if(J){let q=this.ctx;q.save(),q.beginPath(),E_(this,this.getDistanceFromCenterForValue(this._endValue),G,this._pointLabels.length),q.closePath(),q.fillStyle=J,q.fill(),q.restore()}}drawGrid(){let J=this.ctx,G=this.options,{angleLines:q,grid:X,border:N}=G,K=this._pointLabels.length,H,F,W;if(G.pointLabels.display)nE(this,K);if(X.display)this.ticks.forEach((M,R)=>{if(R!==0||R===0&&this.min<0){F=this.getDistanceFromCenterForValue(M.value);let _=this.getContext(R),P=X.setContext(_),O=N.setContext(_);oE(this,P,F,K,O)}});if(q.display){J.save();for(H=K-1;H>=0;H--){let M=q.setContext(this.getPointLabelContext(H)),{color:R,lineWidth:_}=M;if(!_||!R)continue;J.lineWidth=_,J.strokeStyle=R,J.setLineDash(M.borderDash),J.lineDashOffset=M.borderDashOffset,F=this.getDistanceFromCenterForValue(G.reverse?this.min:this.max),W=this.getPointPosition(H,F),J.beginPath(),J.moveTo(this.xCenter,this.yCenter),J.lineTo(W.x,W.y),J.stroke()}J.restore()}}drawBorder(){}drawLabels(){let J=this.ctx,G=this.options,q=G.ticks;if(!q.display)return;let X=this.getIndexAngle(0),N,K;J.save(),J.translate(this.xCenter,this.yCenter),J.rotate(X),J.textAlign="center",J.textBaseline="middle",this.ticks.forEach((H,F)=>{if(F===0&&this.min>=0&&!G.reverse)return;let W=q.setContext(this.getContext(F)),M=Q5(W.font);if(N=this.getDistanceFromCenterForValue(this.ticks[F].value),W.showLabelBackdrop){J.font=M.string,K=J.measureText(H.label).width,J.fillStyle=W.backdropColor;let R=T5(W.backdropPadding);J.fillRect(-K/2-R.left,-N-M.size/2-R.top,K+R.width,M.size+R.height)}D2(J,H.label,0,-N,M,{color:W.color,strokeColor:W.textStrokeColor,strokeWidth:W.textStrokeWidth})}),J.restore()}drawTitle(){}}var c3={millisecond:{common:!0,size:1,steps:1000},second:{common:!0,size:1000,steps:60},minute:{common:!0,size:60000,steps:60},hour:{common:!0,size:3600000,steps:24},day:{common:!0,size:86400000,steps:30},week:{common:!1,size:604800000,steps:4},month:{common:!0,size:2628000000,steps:12},quarter:{common:!1,size:7884000000,steps:4},year:{common:!0,size:31540000000}},Q6=Object.keys(c3);function aR(J,G){return J-G}function iR(J,G){if(Q1(G))return null;let q=J._adapter,{parser:X,round:N,isoWeekday:K}=J._parseOpts,H=G;if(typeof X==="function")H=X(H);if(!h1(H))H=typeof X==="string"?q.parse(H,X):q.parse(H);if(H===null)return null;if(N)H=N==="week"&&(B$(K)||K===!0)?q.startOf(H,"isoWeek",K):q.startOf(H,N);return+H}function tR(J,G,q,X){let N=Q6.length;for(let K=Q6.indexOf(J);K<N-1;++K){let H=c3[Q6[K]],F=H.steps?H.steps:Number.MAX_SAFE_INTEGER;if(H.common&&Math.ceil((q-G)/(F*H.size))<=X)return Q6[K]}return Q6[N-1]}function tE(J,G,q,X,N){for(let K=Q6.length-1;K>=Q6.indexOf(q);K--){let H=Q6[K];if(c3[H].common&&J._adapter.diff(N,X,H)>=G-1)return H}return Q6[q?Q6.indexOf(q):0]}function eE(J){for(let G=Q6.indexOf(J)+1,q=Q6.length;G<q;++G)if(c3[Q6[G]].common)return Q6[G]}function eR(J,G,q){if(!q)J[G]=!0;else if(q.length){let{lo:X,hi:N}=I3(q,G),K=q[X]>=G?q[X]:q[N];J[K]=!0}}function $S(J,G,q,X){let N=J._adapter,K=+N.startOf(G[0].value,X),H=G[G.length-1].value,F,W;for(F=K;F<=H;F=+N.add(F,1,X))if(W=q[F],W>=0)G[W].major=!0;return G}function $_(J,G,q){let X=[],N={},K=G.length,H,F;for(H=0;H<K;++H)F=G[H],N[F]=H,X.push({value:F,major:!1});return K===0||!q?X:$S(J,X,N,q)}class lU extends u7{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};constructor(J){super(J);this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(J,G={}){let q=J.time||(J.time={}),X=this._adapter=new fV._date(J.adapters.date);X.init(G),N$(q.displayFormats,X.formats()),this._parseOpts={parser:q.parser,round:q.round,isoWeekday:q.isoWeekday},super.init(J),this._normalized=G.normalized}parse(J,G){if(J===void 0)return null;return iR(this,J)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){let J=this.options,G=this._adapter,q=J.time.unit||"day",{min:X,max:N,minDefined:K,maxDefined:H}=this.getUserBounds();function F(W){if(!K&&!isNaN(W.min))X=Math.min(X,W.min);if(!H&&!isNaN(W.max))N=Math.max(N,W.max)}if(!K||!H){if(F(this._getLabelBounds()),J.bounds!=="ticks"||J.ticks.source!=="labels")F(this.getMinMax(!1))}X=h1(X)&&!isNaN(X)?X:+G.startOf(Date.now(),q),N=h1(N)&&!isNaN(N)?N:+G.endOf(Date.now(),q)+1,this.min=Math.min(X,N-1),this.max=Math.max(X+1,N)}_getLabelBounds(){let J=this.getLabelTimestamps(),G=Number.POSITIVE_INFINITY,q=Number.NEGATIVE_INFINITY;if(J.length)G=J[0],q=J[J.length-1];return{min:G,max:q}}buildTicks(){let J=this.options,G=J.time,q=J.ticks,X=q.source==="labels"?this.getLabelTimestamps():this._generate();if(J.bounds==="ticks"&&X.length)this.min=this._userMin||X[0],this.max=this._userMax||X[X.length-1];let N=this.min,K=this.max,H=fw(X,N,K);if(this._unit=G.unit||(q.autoSkip?tR(G.minUnit,this.min,this.max,this._getLabelCapacity(N)):tE(this,H.length,G.minUnit,this.min,this.max)),this._majorUnit=!q.major.enabled||this._unit==="year"?void 0:eE(this._unit),this.initOffsets(X),J.reverse)H.reverse();return $_(this,H,this._majorUnit)}afterAutoSkip(){if(this.options.offsetAfterAutoskip)this.initOffsets(this.ticks.map((J)=>+J.value))}initOffsets(J=[]){let G=0,q=0,X,N;if(this.options.offset&&J.length){if(X=this.getDecimalForValue(J[0]),J.length===1)G=1-X;else G=(this.getDecimalForValue(J[1])-X)/2;if(N=this.getDecimalForValue(J[J.length-1]),J.length===1)q=N;else q=(N-this.getDecimalForValue(J[J.length-2]))/2}let K=J.length<3?0.5:0.25;G=$6(G,0,K),q=$6(q,0,K),this._offsets={start:G,end:q,factor:1/(G+1+q)}}_generate(){let J=this._adapter,G=this.min,q=this.max,X=this.options,N=X.time,K=N.unit||tR(N.minUnit,G,q,this._getLabelCapacity(G)),H=s0(X.ticks.stepSize,1),F=K==="week"?N.isoWeekday:!1,W=B$(F)||F===!0,M={},R=G,_,P;if(W)R=+J.startOf(R,"isoWeek",F);if(R=+J.startOf(R,W?"day":K),J.diff(q,G,K)>1e5*H)throw Error(G+" and "+q+" are too far apart with stepSize of "+H+" "+K);let O=X.ticks.source==="data"&&this.getDataTimestamps();for(_=R,P=0;_<q;_=+J.add(_,H,K),P++)eR(M,_,O);if(_===q||X.bounds==="ticks"||P===1)eR(M,_,O);return Object.keys(M).sort(aR).map((E)=>+E)}getLabelForValue(J){let G=this._adapter,q=this.options.time;if(q.tooltipFormat)return G.format(J,q.tooltipFormat);return G.format(J,q.displayFormats.datetime)}format(J,G){let X=this.options.time.displayFormats,N=this._unit,K=G||X[N];return this._adapter.format(J,K)}_tickFormatFunction(J,G,q,X){let N=this.options,K=N.ticks.callback;if(K)return O1(K,[J,G,q],this);let H=N.time.displayFormats,F=this._unit,W=this._majorUnit,M=F&&H[F],R=W&&H[W],_=q[G],P=W&&R&&_&&_.major;return this._adapter.format(J,X||(P?R:M))}generateTickLabels(J){let G,q,X;for(G=0,q=J.length;G<q;++G)X=J[G],X.label=this._tickFormatFunction(X.value,G,J)}getDecimalForValue(J){return J===null?NaN:(J-this.min)/(this.max-this.min)}getPixelForValue(J){let G=this._offsets,q=this.getDecimalForValue(J);return this.getPixelForDecimal((G.start+q)*G.factor)}getValueForPixel(J){let G=this._offsets,q=this.getDecimalForPixel(J)/G.factor-G.end;return this.min+q*(this.max-this.min)}_getLabelSize(J){let G=this.options.ticks,q=this.ctx.measureText(J).width,X=C8(this.isHorizontal()?G.maxRotation:G.minRotation),N=Math.cos(X),K=Math.sin(X),H=this._resolveTickFontOptions(0).size;return{w:q*N+H*K,h:q*K+H*N}}_getLabelCapacity(J){let G=this.options.time,q=G.displayFormats,X=q[G.unit]||q.millisecond,N=this._tickFormatFunction(J,0,$_(this,[J],this._majorUnit),X),K=this._getLabelSize(N),H=Math.floor(this.isHorizontal()?this.width/K.w:this.height/K.h)-1;return H>0?H:1}getDataTimestamps(){let J=this._cache.data||[],G,q;if(J.length)return J;let X=this.getMatchingVisibleMetas();if(this._normalized&&X.length)return this._cache.data=X[0].controller.getAllParsedValues(this);for(G=0,q=X.length;G<q;++G)J=J.concat(X[G].controller.getAllParsedValues(this));return this._cache.data=this.normalize(J)}getLabelTimestamps(){let J=this._cache.labels||[],G,q;if(J.length)return J;let X=this.getLabels();for(G=0,q=X.length;G<q;++G)J.push(iR(this,X[G]));return this._cache.labels=this._normalized?J:this.normalize(J)}normalize(J){return NU(J.sort(aR))}}function h3(J,G,q){let X=0,N=J.length-1,K,H,F,W;if(q){if(G>=J[X].pos&&G<=J[N].pos)({lo:X,hi:N}=V2(J,"pos",G));({pos:K,time:F}=J[X]),{pos:H,time:W}=J[N]}else{if(G>=J[X].time&&G<=J[N].time)({lo:X,hi:N}=V2(J,"time",G));({time:K,pos:F}=J[X]),{time:H,pos:W}=J[N]}let M=H-K;return M?F+(W-F)*(G-K)/M:F}class ZS extends lU{static id="timeseries";static defaults=lU.defaults;constructor(J){super(J);this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){let J=this._getTimestampsForTable(),G=this._table=this.buildLookupTable(J);this._minPos=h3(G,this.min),this._tableRange=h3(G,this.max)-this._minPos,super.initOffsets(J)}buildLookupTable(J){let{min:G,max:q}=this,X=[],N=[],K,H,F,W,M;for(K=0,H=J.length;K<H;++K)if(W=J[K],W>=G&&W<=q)X.push(W);if(X.length<2)return[{time:G,pos:0},{time:q,pos:1}];for(K=0,H=X.length;K<H;++K)if(M=X[K+1],F=X[K-1],W=X[K],Math.round((M+F)/2)!==W)N.push({time:W,pos:K/(H-1)});return N}_generate(){let J=this.min,G=this.max,q=super.getDataTimestamps();if(!q.includes(J)||!q.length)q.splice(0,0,J);if(!q.includes(G)||q.length===1)q.push(G);return q.sort((X,N)=>X-N)}_getTimestampsForTable(){let J=this._cache.all||[];if(J.length)return J;let G=this.getDataTimestamps(),q=this.getLabelTimestamps();if(G.length&&q.length)J=this.normalize(G.concat(q));else J=G.length?G:q;return J=this._cache.all=J,J}getDecimalForValue(J){return(h3(this._table,J)-this._minPos)/this._tableRange}getValueForPixel(J){let G=this._offsets,q=this.getDecimalForPixel(J)/G.factor-G.end;return h3(this._table,q*this._tableRange+this._minPos,!0)}}x7.register(ZK,JK,tU,F$,iU,I_,A_,O_,T_);var qP=s(f_(),1);var j8=s(L1(),1);var n3=s(L1(),1);var r3=(...J)=>J.filter((G,q,X)=>{return Boolean(G)&&G.trim()!==""&&X.indexOf(G)===q}).join(" ").trim();var y_=(J)=>J.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();var g_=(J)=>J.replace(/^([A-Z])|[\s-_]+(\w)/g,(G,q,X)=>X?X.toUpperCase():q.toLowerCase());var qK=(J)=>{let G=g_(J);return G.charAt(0).toUpperCase()+G.slice(1)};var PJ=s(L1(),1);var s3={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var h_=(J)=>{for(let G in J)if(G.startsWith("aria-")||G==="role"||G==="title")return!0;return!1};var z$=s(L1(),1),NS=z$.createContext({});var u_=()=>z$.useContext(NS);var x_=PJ.forwardRef(({color:J,size:G,strokeWidth:q,absoluteStrokeWidth:X,className:N="",children:K,iconNode:H,...F},W)=>{let{size:M=24,strokeWidth:R=2,absoluteStrokeWidth:_=!1,color:P="currentColor",className:O=""}=u_()??{},E=X??_?Number(q??R)*24/Number(G??M):q??R;return PJ.createElement("svg",{ref:W,...s3,width:G??M??s3.width,height:G??M??s3.height,stroke:J??P,strokeWidth:E,className:r3("lucide",O,N),...!K&&!h_(F)&&{"aria-hidden":"true"},...F},[...H.map(([V,I])=>PJ.createElement(V,I)),...Array.isArray(K)?K:[K]])});var C0=(J,G)=>{let q=n3.forwardRef(({className:X,...N},K)=>n3.createElement(x_,{ref:K,iconNode:G,className:r3(`lucide-${y_(qK(J))}`,`lucide-${J}`,X),...N}));return q.displayName=qK(J),q};var US=[["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"}]],b2=C0("circle-alert",US);var KS=[["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"}]],TJ=C0("activity",KS);var BS=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],CJ=C0("check",BS);var HS=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],OJ=C0("chevron-down",HS);var FS=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],IJ=C0("chevron-up",FS);var WS=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],VJ=C0("clock",WS);var zS=[["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"}]],d7=C0("coins",zS);var MS=[["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"}]],AJ=C0("copy",MS);var wS=[["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"}]],EJ=C0("cpu",wS);var RS=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],SJ=C0("folder",RS);var _S=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],DJ=C0("gauge",_S);var LS=[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]],jJ=C0("hash",LS);var PS=[["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"}]],kJ=C0("inbox",PS);var TS=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],vJ=C0("layout-dashboard",TS);var CS=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],bJ=C0("menu",CS);var OS=[["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"}]],fJ=C0("monitor",OS);var IS=[["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"}]],yJ=C0("moon",IS);var VS=[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z",key:"1xoxul"}],["path",{d:"M9 8V2",key:"14iosj"}]],gJ=C0("plug",VS);var AS=[["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"}]],hJ=C0("refresh-cw",AS);var ES=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 14s1.5 2 4 2 4-2 4-2",key:"1y1vjs"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]],uJ=C0("smile",ES);var SS=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],xJ=C0("star",SS);var DS=[["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"}]],mJ=C0("sun",DS);var jS=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],dJ=C0("trending-up",jS);var kS=[["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"}]],pJ=C0("wrench",kS);var vS=[["path",{d:"M15.914 4a1.5 1.5 0 00-2.474-1.561l-9 9A1.5 1.5 0 005.5 14h4.002a.5.5 0 01.471.666L8.086 20a1.5 1.5 0 002.475 1.56l9-9A1.5 1.5 0 0018.5 10h-3.997a.5.5 0 01-.472-.667z",key:"1v7up4"}]],cJ=C0("zap",vS);var bS=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],p7=C0("x",bS);var UL=s(L1(),1);var lJ=[{id:"overview",label:"Overview",icon:vJ},{id:"requests",label:"Requests",icon:TJ},{id:"errors",label:"Errors",icon:b2},{id:"models",label:"Models",icon:EJ},{id:"providers",label:"Providers",icon:gJ},{id:"tools",label:"Tools",icon:pJ},{id:"costs",label:"Costs",icon:d7},{id:"behavior",label:"Behavior",shortLabel:"Behavior",icon:uJ},{id:"projects",label:"Projects",icon:SJ},{id:"gain",label:"Gain",icon:dJ}];var l6=s(U0(),1);function YK({activeSection:J,onSectionChange:G,className:q=""}){return l6.jsxDEV("aside",{className:`stats-nav-rail ${q}`,children:[l6.jsxDEV("div",{className:"stats-nav-rail-header",children:l6.jsxDEV("div",{className:"stats-logo-container",children:[l6.jsxDEV("span",{className:"stats-logo-text",children:"OH MY PI"},void 0,!1,void 0,this),l6.jsxDEV("span",{className:"stats-logo-subtext",children:"Observability"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),l6.jsxDEV("nav",{className:"stats-nav-rail-menu",children:lJ.map((X)=>{let N=X.id===J,K=X.icon;return l6.jsxDEV("button",{type:"button",onClick:()=>G(X.id),className:"stats-nav-rail-item","data-active":N?"true":"false","aria-current":N?"page":void 0,children:[l6.jsxDEV(K,{size:16,className:"stats-nav-rail-item-icon"},void 0,!1,void 0,this),l6.jsxDEV("span",{className:"stats-nav-rail-item-label",children:X.label},void 0,!1,void 0,this)]},X.id,!0,void 0,this)})},void 0,!1,void 0,this),l6.jsxDEV("div",{className:"stats-nav-rail-footer",children:l6.jsxDEV("span",{className:"stats-version-tag",children:"OMP Stats v1.0.0"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var XK=s(U0(),1),yS=[{value:"1h",label:"1h"},{value:"24h",label:"24h"},{value:"7d",label:"7d"},{value:"30d",label:"30d"},{value:"90d",label:"90d"},{value:"all",label:"All"}];function m_({value:J,onChange:G,className:q=""}){return XK.jsxDEV("div",{className:`stats-range-control ${q}`,role:"radiogroup","aria-label":"Select time range",children:yS.map((X)=>{let N=X.value===J;return XK.jsxDEV("button",{type:"button",role:"radio","aria-checked":N,"data-active":N?"true":"false",className:"stats-range-control-btn",onClick:()=>G(X.value),children:X.label},X.value,!1,void 0,this)})},void 0,!1,void 0,this)}var NK=s(L1(),1);class d_ extends Error{status;endpoint;constructor(J,G,q){super(q);this.name="ApiError",this.status=J,this.endpoint=G}}async function r6(J,G){let q=await fetch(J,G);if(!q.ok)throw new d_(q.status,J,`HTTP error ${q.status} on ${J}`);return q.json()}async function p_(J="24h",G){return r6(`/api/stats/overview?range=${encodeURIComponent(J)}`,{signal:G})}async function c_(J="24h",G){return r6(`/api/stats/model-dashboard?range=${encodeURIComponent(J)}`,{signal:G})}async function l_(J="24h",G){return r6(`/api/stats/costs?range=${encodeURIComponent(J)}`,{signal:G})}async function o3(J=50,G){return r6(`/api/stats/recent?limit=${J}`,{signal:G})}async function r_(J="24h",G=50,q){return r6(`/api/stats/errors?range=${encodeURIComponent(J)}&limit=${G}`,{signal:q})}async function s_(J,G){return r6(`/api/request/${J}`,{signal:G})}async function n_(J){return r6("/api/sync",{signal:J})}async function o_(J="24h",G){return r6(`/api/stats/behavior?range=${encodeURIComponent(J)}`,{signal:G})}async function a_(J="24h",G){return r6(`/api/stats/folders?range=${encodeURIComponent(J)}`,{signal:G})}async function i_(J="24h",G,q){let X=new URLSearchParams({range:J});if(G)X.set("project",G);return r6(`/api/stats/gain?${X}`,{signal:q})}async function t_(J="24h",G){return r6(`/api/stats/tools?range=${encodeURIComponent(J)}`,{signal:G})}async function e_(J="24h",G){return r6(`/api/stats/providers?range=${encodeURIComponent(J)}`,{signal:G})}var rJ=s(U0(),1);function $L({onSyncStart:J,onSyncComplete:G,className:q=""}){let[X,N]=NK.useState(!1),[K,H]=NK.useState(null),F=async()=>{if(X)return;if(N(!0),H(null),J)J();try{let W=await n_(),M={processed:typeof W?.processed==="number"?W.processed:0,files:typeof W?.files==="number"?W.files:0,totalMessages:typeof W?.totalMessages==="number"?W.totalMessages:0};if(H({type:"success",message:`Synced: ${M.processed} new request${M.processed===1?"":"s"} found.`}),G)G({success:!0,data:M})}catch(W){let M=W instanceof Error?W.message:String(W);if(H({type:"error",message:`Sync failed: ${M}`}),G)G({success:!1,error:M})}finally{N(!1)}};return rJ.jsxDEV("div",{className:`stats-sync-container ${q}`,children:[K&&rJ.jsxDEV("span",{className:"stats-sync-status-msg","data-type":K.type,children:K.message},void 0,!1,void 0,this),rJ.jsxDEV("button",{type:"button",onClick:F,disabled:X,className:"stats-button stats-button-primary stats-sync-btn","aria-busy":X,children:[rJ.jsxDEV(hJ,{size:14,className:`stats-sync-icon ${X?"stats-spin":""}`},void 0,!1,void 0,this),X?"Syncing...":"Sync DB"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var a3=s(L1(),1),ZL="omp-stats-theme",JL="(prefers-color-scheme: dark)";function gS(){if(typeof localStorage>"u")return"system";let J=localStorage.getItem(ZL);return J==="light"||J==="dark"||J==="system"?J:"system"}function QL(){if(typeof window>"u")return"dark";return window.matchMedia(JL).matches?"dark":"light"}var l7=gS(),sJ=l7==="system"?QL():l7,UK=new Set;function GL(){for(let J of UK)J()}function KK(){if(sJ=l7==="system"?QL():l7,typeof document<"u")document.documentElement.dataset.theme=sJ,document.documentElement.style.colorScheme=sJ}if(typeof window<"u")KK(),window.matchMedia(JL).addEventListener("change",()=>{if(l7==="system")KK(),GL()});function hS(J){if(l7=J,typeof localStorage<"u")localStorage.setItem(ZL,J);KK(),GL()}function BK(J){return UK.add(J),()=>UK.delete(J)}function z5(){return a3.useSyncExternalStore(BK,()=>sJ,()=>"dark")}function qL(){let J=a3.useSyncExternalStore(BK,()=>l7,()=>"system"),G=a3.useSyncExternalStore(BK,()=>sJ,()=>"dark");return{preference:J,resolved:G,setPreference:hS}}var HK=s(U0(),1),uS={system:"light",light:"dark",dark:"system"},xS={system:fJ,light:mJ,dark:yJ},YL={system:"System theme",light:"Light theme",dark:"Dark theme"};function XL(){let{preference:J,setPreference:G}=qL(),q=xS[J];return HK.jsxDEV("button",{type:"button",className:"stats-theme-toggle",onClick:()=>G(uS[J]),"aria-label":`${YL[J]} (click to switch)`,title:`${YL[J]} — click to switch`,children:HK.jsxDEV(q,{size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var s6=s(U0(),1);function NL({activeSection:J,range:G,onRangeChange:q,updatedAt:X,onSyncStart:N,onSyncComplete:K,onMenuToggle:H,className:F=""}){let M=lJ.find((_)=>_.id===J)?.label||"Observability",R=(_)=>{if(!_)return"Not updated";return`Updated ${new Date(_).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"})}`};return s6.jsxDEV("header",{className:`stats-top-bar ${F}`,children:[s6.jsxDEV("div",{className:"stats-top-bar-left",children:[H&&s6.jsxDEV("button",{type:"button",onClick:H,className:"stats-mobile-menu-btn","aria-label":"Open navigation menu",children:s6.jsxDEV(bJ,{size:20},void 0,!1,void 0,this)},void 0,!1,void 0,this),s6.jsxDEV("h1",{className:"stats-page-title",children:M},void 0,!1,void 0,this)]},void 0,!0,void 0,this),s6.jsxDEV("div",{className:"stats-top-bar-right",children:[s6.jsxDEV("div",{className:"stats-top-bar-meta",children:s6.jsxDEV("span",{className:"stats-last-updated",title:X?new Date(X).toLocaleString():void 0,children:R(X)},void 0,!1,void 0,this)},void 0,!1,void 0,this),s6.jsxDEV(m_,{value:G,onChange:q},void 0,!1,void 0,this),s6.jsxDEV(XL,{},void 0,!1,void 0,this),s6.jsxDEV($L,{onSyncStart:N,onSyncComplete:K},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var j5=s(U0(),1);function KL({activeSection:J,onSectionChange:G,range:q,onRangeChange:X,updatedAt:N,onSyncStart:K,onSyncComplete:H,children:F}){let[W,M]=UL.useState(!1),R=(_)=>{G(_),M(!1)};return j5.jsxDEV("div",{className:"stats-app-container",children:[j5.jsxDEV(YK,{activeSection:J,onSectionChange:R,className:"stats-desktop-nav"},void 0,!1,void 0,this),W&&j5.jsxDEV("div",{className:"stats-mobile-drawer-overlay",onClick:()=>M(!1),role:"presentation",children:j5.jsxDEV("div",{className:"stats-mobile-drawer",onClick:(_)=>_.stopPropagation(),role:"dialog","aria-modal":"true","aria-label":"Navigation menu",children:[j5.jsxDEV("div",{className:"stats-mobile-drawer-header",children:[j5.jsxDEV("div",{className:"stats-logo-container",children:[j5.jsxDEV("span",{className:"stats-logo-text",children:"OH MY PI"},void 0,!1,void 0,this),j5.jsxDEV("span",{className:"stats-logo-subtext",children:"Observability"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),j5.jsxDEV("button",{type:"button",onClick:()=>M(!1),className:"stats-drawer-close-btn","aria-label":"Close navigation menu",children:j5.jsxDEV(p7,{size:18},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),j5.jsxDEV(YK,{activeSection:J,onSectionChange:R,className:"stats-mobile-nav"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),j5.jsxDEV("div",{className:"stats-main-pane",children:[j5.jsxDEV(NL,{activeSection:J,range:q,onRangeChange:X,updatedAt:N,onSyncStart:K,onSyncComplete:H,onMenuToggle:()=>M(!0)},void 0,!1,void 0,this),j5.jsxDEV("main",{className:"stats-content-area",children:j5.jsxDEV("div",{className:"stats-content-inner",children:F},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var S8=s(L1(),1),mS=["overview","requests","errors","models","providers","tools","costs","behavior","projects","gain"],BL=["1h","24h","7d","30d","90d","all"];function FK(J){let G=J.replace(/^#\/?/,""),[q,X]=G.split("?"),N=mS.includes(q)?q:"overview",K="24h";if(X){let F=new URLSearchParams(X).get("range");if(BL.includes(F))K=F}return{section:N,range:K}}function HL(){let[J,G]=S8.useState(()=>FK(window.location.hash));S8.useEffect(()=>{let K=()=>{G(FK(window.location.hash))};return window.addEventListener("hashchange",K),()=>{window.removeEventListener("hashchange",K)}},[]);let q=S8.useCallback((K,H)=>{window.location.hash=`/${K}?range=${H}`},[]),X=S8.useCallback((K)=>{q(K,J.range)},[J.range,q]),N=S8.useCallback((K)=>{let H=BL.includes(K)?K:"24h";q(J.section,H)},[J.section,q]);return S8.useEffect(()=>{let K=window.location.hash,H=FK(K),F=`#/${H.section}?range=${H.range}`;if(K!==F)window.location.hash=`/${H.section}?range=${H.range}`},[]),{section:J.section,setSection:X,range:J.range,setRange:N}}var FL=["January","February","March","April","May","June","July","August","September","October","November","December"],WL=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dS=["MMMM","yyyy","EEEE","MMM","EEE","yy","MM","dd","HH","hh","mm","ss","M","d","H","h","m","s","a"];function f2(J,G=2){return String(J).padStart(G,"0")}function pS(J,G){let q=J.getMonth(),X=J.getDay(),N=J.getHours(),K=N%12||12;switch(G){case"yyyy":return f2(J.getFullYear(),4);case"yy":return f2(J.getFullYear()%100);case"MMMM":return FL[q];case"MMM":return FL[q].slice(0,3);case"MM":return f2(q+1);case"M":return String(q+1);case"dd":return f2(J.getDate());case"d":return String(J.getDate());case"EEEE":return WL[X];case"EEE":return WL[X].slice(0,3);case"HH":return f2(N);case"H":return String(N);case"hh":return f2(K);case"h":return String(K);case"mm":return f2(J.getMinutes());case"m":return String(J.getMinutes());case"ss":return f2(J.getSeconds());case"s":return String(J.getSeconds());case"a":return N<12?"AM":"PM"}}function ML(J){let G=J instanceof Date?new Date(J.getTime()):new Date(J);if(Number.isNaN(G.getTime()))throw RangeError("Invalid time value");return G}function K4(J,G){let q=ML(J),X="";for(let N=0;N<G.length;){if(G[N]==="'"){if(G[N+1]==="'"){X+="'",N+=2;continue}N++;while(N<G.length){if(G[N]!=="'"){X+=G[N++];continue}if(G[N+1]==="'"){X+="'",N+=2;continue}N++;break}continue}let K=G.slice(N),H=dS.find((W)=>K.startsWith(W));if(H){X+=pS(q,H),N+=H.length;continue}let F=G[N++];if(/[A-Za-z]/.test(F))throw RangeError(`Format string contains an unescaped latin alphabet character \`${F}\``);X+=F}return X}function y2(J,G){return`${J} ${J===1?G:`${G}s`}`}function cS(J,G){let q=(G.getFullYear()-J.getFullYear())*12+G.getMonth()-J.getMonth();if(q===0)return 0;let X=new Date(J);X.setDate(1),X.setFullYear(J.getFullYear(),J.getMonth()+q,1);let N=new Date(X.getFullYear(),X.getMonth()+1,0).getDate();if(X.setDate(Math.min(J.getDate(),N)),X.getTime()>G.getTime())q--;return q}function zL(J,G){let q=(G.getTime()-J.getTime())/1000,X=(G.getTimezoneOffset()-J.getTimezoneOffset())*60,N=Math.round((q-X)/60);if(N<2)return N===0?"less than a minute":"1 minute";if(N<45)return y2(N,"minute");if(N<90)return"about 1 hour";if(N<1440)return`about ${y2(Math.round(N/60),"hour")}`;if(N<2520)return"1 day";if(N<43200)return y2(Math.round(N/1440),"day");if(N<86400)return`about ${y2(Math.round(N/43200),"month")}`;let K=cS(J,G);if(K<12)return y2(Math.round(N/43200),"month");let H=Math.trunc(K/12),F=K%12;if(F<3)return`about ${y2(H,"year")}`;if(F<9)return`over ${y2(H,"year")}`;return`almost ${y2(H+1,"year")}`}function wL(J,G={}){let q=ML(J),X=new Date(Date.now()),N=q.getTime()>X.getTime(),K=N?zL(X,q):zL(q,X);if(!G.addSuffix)return K;return N?`in ${K}`:`${K} ago`}var X5=s(L1(),1);var WK=s(RL(),1),V6=s(L1(),1);var LL="label";function _L(J,G){if(typeof J==="function")J(G);else if(J)J.current=G}function rS(J,G){let q=J.options;if(q&&G)Object.assign(q,G)}function PL(J,G){J.labels=G}function TL(J,G,q=LL){let X=[];J.datasets=G.map((N)=>{let K=J.datasets.find((H)=>H[q]===N[q]);if(!K||!N.data||X.includes(K))return{...N};return X.push(K),Object.assign(K,N),K})}function sS(J,G=LL){let q={labels:[],datasets:[]};return PL(q,J.labels),TL(q,J.datasets,G),q}function nS(J,G){let{height:q=150,width:X=300,redraw:N=!1,datasetIdKey:K,type:H,data:F,options:W,plugins:M=[],fallbackContent:R,updateMode:_,...P}=J,O=V6.useRef(null),E=V6.useRef(null),V=()=>{if(!O.current)return;E.current=new x7(O.current,{type:H,data:sS(F,K),options:W&&{...W},plugins:M}),_L(G,E.current)},I=()=>{if(_L(G,null),E.current)E.current.destroy(),E.current=null};return V6.useEffect(()=>{if(!N&&E.current&&W)rS(E.current,W)},[N,W]),V6.useEffect(()=>{if(!N&&E.current)PL(E.current.config.data,F.labels)},[N,F.labels]),V6.useEffect(()=>{if(!N&&E.current&&F.datasets)TL(E.current.config.data,F.datasets,K)},[N,F.datasets]),V6.useEffect(()=>{if(!E.current)return;if(N)I(),setTimeout(V);else E.current.update(_)},[N,W,F.labels,F.datasets,_]),V6.useEffect(()=>{if(!E.current)return;I(),setTimeout(V)},[H]),V6.useEffect(()=>{return V(),()=>I()},[]),WK.jsx("canvas",{ref:O,role:"img",height:q,width:X,...P,children:R})}var oS=V6.forwardRef(nS);function CL(J,G){return x7.register(G),V6.forwardRef((q,X)=>WK.jsx(oS,{...q,ref:X,type:J}))}var k5=CL("line",nU),g2=CL("bar",sU);var K1=["#ed4abf","#9b4dff","#5ad8e6","#62d394","#c77dff","#ff8fd1","#f5c14b","#ff6b7d"],s1={dark:{legendLabel:"#a89fb3",tooltipBackground:"#241a2e",tooltipTitle:"#eae5ef",tooltipBody:"#a89fb3",tooltipBorder:"rgba(255, 255, 255, 0.12)",grid:"rgba(255, 255, 255, 0.06)",tick:"#867a93"},light:{legendLabel:"#5a5462",tooltipBackground:"#ffffff",tooltipTitle:"#241a2e",tooltipBody:"#5a5462",tooltipBorder:"rgba(20, 12, 28, 0.15)",grid:"rgba(20, 12, 28, 0.08)",tick:"#6a6275"}};function c4(J){let{chartTheme:G,showLegend:q,defaultLabel:X,formatValue:N,footer:K}=J;return{legend:{display:q,position:"top",align:"start",labels:{color:G.legendLabel,usePointStyle:!0,padding:16,font:{size:12},boxWidth:8}},tooltip:{backgroundColor:G.tooltipBackground,titleColor:G.tooltipTitle,bodyColor:G.tooltipBody,borderColor:G.tooltipBorder,borderWidth:1,padding:12,cornerRadius:8,callbacks:{label:(H)=>{let F=H.dataset.label??X,W=H.parsed.y??0;return`${F}: ${N(W)}`},...K?{footer:K}:{}}}}}function l4(J){let{chartTheme:G,formatY:q}=J,X={grid:{color:G.grid,drawBorder:!1},ticks:{color:G.tick,font:{size:11}}},N={...X,ticks:{...X.ticks,callback:(K)=>q(Number(K))},min:0};return{sharedScaleBase:X,yScale:N}}function M$(J){return{borderColor:J,backgroundColor:`${J}20`,fill:!0,tension:0,pointRadius:3,pointHoverRadius:4,borderWidth:2}}function s7(J){return{backgroundColor:J,borderColor:J,borderWidth:0,borderRadius:4,maxBarThickness:56}}function h2(J,G){return J.datasets.map((q,X)=>({label:q.label,data:q.data,...G(X)}))}function i3(J,G,q){if(J.length===0)return{labels:[],datasets:[]};let{initBucket:X,accumulate:N,bucketToValue:K}=q,H=new Map;for(let W of J){let M=H.get(W.timestamp)??X();N(M,W),H.set(W.timestamp,M)}let F=[...H.entries()].sort((W,M)=>W[0]-M[0]);return{labels:F.map(([W])=>K4(new Date(W),"MMM d")),datasets:[{label:G,data:F.map(([,W])=>K(W))}]}}function w$(J,G){if(J.length===0)return{labels:[],datasets:[]};let{topN:q=5,rankWeight:X,initBucket:N,accumulate:K,bucketToValue:H}=G,F=new Map;for(let j of J){let h=`${j.model}::${j.provider}`,p=F.get(h);if(p)p.weight+=X(j);else F.set(h,{model:j.model,provider:j.provider,weight:X(j)})}let M=[...F.entries()].sort((j,h)=>h[1].weight-j[1].weight).slice(0,q),R=new Set(M.map(([j])=>j)),_=new Map;for(let[,{model:j}]of M)_.set(j,(_.get(j)??0)+1);let P=new Map;for(let[j,{model:h,provider:p}]of M)P.set(j,(_.get(h)??0)>1?`${h} (${p})`:h);let O=[...new Set(J.map((j)=>j.timestamp))].sort((j,h)=>j-h),E=M.map(([j])=>P.get(j)??j);if(J.some((j)=>!R.has(`${j.model}::${j.provider}`)))E.push("Other");let I=new Map;for(let j of O)I.set(j,{});for(let j of J){let h=`${j.model}::${j.provider}`,p=R.has(h)?P.get(h)??j.model:"Other",n=I.get(j.timestamp);if(!n)continue;let a=n[p]??N();K(a,j),n[p]=a}return{labels:O.map((j)=>K4(new Date(j),"MMM d")),datasets:E.map((j)=>({label:j,data:O.map((h)=>{let p=I.get(h)?.[j];return p?H(p):0})}))}}var b1=s(U0(),1);function D8(J){return{borderColor:J,backgroundColor:"transparent",tension:0.4,pointRadius:0,borderWidth:2}}function t3({timestamps:J,values:G,color:q}){let X={labels:J.map((K)=>K4(new Date(K),"MMM d")),datasets:[{data:G,...D8(q)}]};return b1.jsxDEV(k5,{data:X,options:{responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{enabled:!1}},scales:{x:{display:!1},y:{display:!1,min:0}}}},void 0,!1,void 0,this)}function e3(J){return{legend:{display:!0,position:"top",labels:{color:J.legendLabel,usePointStyle:!0,padding:16,font:{size:12}}},tooltip:{backgroundColor:J.tooltipBackground,titleColor:J.tooltipTitle,bodyColor:J.tooltipBody,borderColor:J.tooltipBorder,borderWidth:1,cornerRadius:8}}}function OL(J){return{x:{grid:{color:J.grid},ticks:{color:J.tick,font:{size:11}}},y:{grid:{color:J.grid},ticks:{color:J.tick,font:{size:11}},min:0}}}function IL(J){return{x:{grid:{color:J.grid},ticks:{color:J.tick,font:{size:11}}},y:{type:"linear",display:!0,position:"left",grid:{color:J.grid},ticks:{color:J.tick,font:{size:11}}},y1:{type:"linear",display:!0,position:"right",grid:{drawOnChartArea:!1},ticks:{color:J.tick,font:{size:11}}}}}function $q({title:J,subtitle:G,children:q}){return b1.jsxDEV("div",{className:"stats-panel overflow-hidden",children:[b1.jsxDEV("div",{className:"px-5 py-4 border-b border-[var(--border-subtle)]",children:[b1.jsxDEV("h3",{className:"text-sm font-semibold text-[var(--text-primary)]",children:J},void 0,!1,void 0,this),G?b1.jsxDEV("p",{className:"text-xs text-[var(--text-muted)] mt-1",children:G},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),b1.jsxDEV("div",{className:"overflow-x-auto",children:q},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function aS(J){if(J==="right")return"text-right";if(J==="center")return"text-center";return""}function Zq({columns:J,gridTemplate:G}){return b1.jsxDEV("div",{className:"grid gap-3 px-5 py-3 text-[var(--text-muted)] text-xs uppercase tracking-wider font-semibold",style:{gridTemplateColumns:G},children:[J.map((q)=>b1.jsxDEV("div",{className:aS(q.align),children:q.label},q.label,!1,void 0,this)),b1.jsxDEV("div",{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Jq({children:J}){return b1.jsxDEV("div",{className:"max-h-[calc(100vh-300px)] overflow-y-auto",children:J},void 0,!1,void 0,this)}function Qq({model:J,provider:G}){return b1.jsxDEV("div",{children:[b1.jsxDEV("div",{className:"font-medium text-[var(--text-primary)]",children:J},void 0,!1,void 0,this),b1.jsxDEV("div",{className:"text-xs text-[var(--text-muted)]",children:G},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Gq({gridTemplate:J,cells:G,trendCell:q,isExpanded:X,onToggle:N,expandedContent:K}){return b1.jsxDEV("div",{className:"border-t border-[var(--border-subtle)]",children:[b1.jsxDEV("button",{type:"button",onClick:N,className:"w-full bg-transparent border-none text-left px-5 py-3 cursor-pointer hover:bg-[var(--bg-hover)] transition-colors",children:b1.jsxDEV("div",{className:"grid gap-3 items-center",style:{gridTemplateColumns:J},children:[G,b1.jsxDEV("div",{className:"h-10",children:q},void 0,!1,void 0,this),b1.jsxDEV("div",{className:"flex justify-center text-[var(--text-muted)]",children:X?b1.jsxDEV(IJ,{size:16},void 0,!1,void 0,this):b1.jsxDEV(OJ,{size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),X?b1.jsxDEV("div",{className:"px-5 py-4 bg-[var(--bg-elevated)] border-t border-[var(--border-subtle)]",children:K},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}function qq(){return b1.jsxDEV("div",{className:"text-[var(--text-muted)] text-center text-sm",children:"-"},void 0,!1,void 0,this)}function Yq({message:J="No data available"}){return b1.jsxDEV("div",{className:"h-full flex items-center justify-center text-[var(--text-muted)] text-sm",children:J},void 0,!1,void 0,this)}function S0(J){return J.toLocaleString()}function X1(J){return J.toLocaleString(void 0,{notation:"compact"})}function z1(J,G){if(J===0)return"$0";let q=G!==void 0?G:J>0&&J<0.01?4:2;return`$${J.toLocaleString(void 0,{minimumFractionDigits:q,maximumFractionDigits:q})}`}function x1(J,G=1){return`${(J*100).toFixed(G)}%`}function v5(J,G){if(J===null)return"-";let q=J/1000,X=G!==void 0?G:q<1?2:1;return`${q.toFixed(X)}s`}function Xq(J){if(J===null)return"-";return J.toFixed(1)}function G6(J){return wL(new Date(J),{addSuffix:!0})}function zK(J){if(J>=1e9)return`${(J/1e9).toFixed(1)} GB`;if(J>=1e6)return`${(J/1e6).toFixed(1)} MB`;if(J>=1000)return`${(J/1000).toFixed(1)} KB`;return`${J} B`}var C5=s(L1(),1),u2=new Map,iS=64;function n1(J,G,q){let X=JSON.stringify(J),[N,K]=C5.useState(()=>u2.get(X)?.data??null),[H,F]=C5.useState(null),[W,M]=C5.useState(()=>!u2.has(X)),[R,_]=C5.useState(!1),[P,O]=C5.useState(()=>u2.get(X)?.updatedAt??null),E=C5.useRef(G);E.current=G;let V=C5.useRef(X);V.current=X;let I=q?.enabled??!0,j=q?.pollMs,h=C5.useRef(null),p=C5.useRef(!1);p.current=N!==null;let n=C5.useCallback(async(Q0)=>{if(h.current)h.current.abort();let t=new AbortController;if(h.current=t,Q0)_(!0);else M(!0),K(null);F(null);try{let i=await E.current(t.signal);if(t.signal.aborted)return;if(u2.set(V.current,{data:i,updatedAt:Date.now()}),u2.size>iS){let X0=u2.keys().next().value;if(X0!==void 0)u2.delete(X0)}K(i),O(Date.now()),F(null)}catch(i){if(t.signal.aborted)return;F(i instanceof Error?i:Error(String(i)))}finally{if(!t.signal.aborted){if(M(!1),_(!1),h.current===t)h.current=null}}},[]);C5.useEffect(()=>{if(!I){M(!1),_(!1);return}let Q0=u2.get(X);if(Q0)K(Q0.data),O(Q0.updatedAt),M(!1),n(!0);else n(p.current);return()=>{if(h.current)h.current.abort(),h.current=null}},[X,I,n]),C5.useEffect(()=>{if(!I||!j)return;let Q0=setInterval(()=>{if(document.hidden)return;n(!0)},j);return()=>{clearInterval(Q0)}},[I,j,n]);let a=C5.useCallback(async()=>{await n(!0)},[n]);return{data:N,error:H,loading:W,refreshing:R,refetch:a,updatedAt:P}}var VL=3600000,Nq=24*VL,tS=300000,AL={"1h":{windowLabel:"the last hour",trendLabel:"1h Trend",bucketMs:tS,bucketCount:12,tickFormat:"HH:mm"},"24h":{windowLabel:"the last 24 hours",trendLabel:"24h Trend",bucketMs:VL,bucketCount:24,tickFormat:"HH:mm"},"7d":{windowLabel:"the last 7 days",trendLabel:"7d Trend",bucketMs:Nq,bucketCount:7,tickFormat:"MMM d"},"30d":{windowLabel:"the last 30 days",trendLabel:"30d Trend",bucketMs:Nq,bucketCount:30,tickFormat:"MMM d"},"90d":{windowLabel:"the last 90 days",trendLabel:"90d Trend",bucketMs:Nq,bucketCount:90,tickFormat:"MMM d"},all:{windowLabel:"all time",trendLabel:"Trend",bucketMs:Nq,bucketCount:0,tickFormat:"MMM d"}};function n7(J){return AL[J]}function nJ(J,G){return K4(new Date(J),AL[G].tickFormat)}var eS=["main","subagent","advisor"];function Uq(J){return J.totalInputTokens+J.totalOutputTokens+J.totalCacheReadTokens+J.totalCacheWriteTokens}function EL(J){let G=new Map;for(let H of J)G.set(H.agentType,H);let q=eS.map((H)=>G.get(H)).filter((H)=>H!==void 0),X=q.reduce((H,F)=>H+Uq(F),0),N=q.reduce((H,F)=>H+F.totalCost,0),K=q.map((H)=>{let F=Uq(H);return{agentType:H.agentType,tokens:F,requests:H.totalRequests,cost:H.totalCost,share:X>0?F/X:0}});return{totalTokens:X,totalCost:N,segments:K}}function SL(J){let G=J.reduce((F,W)=>F+W.cost,0),q=new Set(J.map((F)=>F.timestamp)).size,X=q>0?G/q:0,N=new Map;for(let F of J)N.set(F.model,(N.get(F.model)??0)+F.cost);let K="",H=0;for(let[F,W]of N)if(W>H)K=F,H=W;return{totalCost:G,avgDailyCost:X,topModelName:K,topModelCost:H}}function DL(J,G){if(J.length===0)return new Map;let q=n7(G),X=q.bucketMs,N=q.bucketCount,K=N>0?(()=>{let W=J.reduce((_,P)=>Math.max(_,P.timestamp),0),R=(W>0?W:Math.floor(Date.now()/X)*X)-(N-1)*X;return Array.from({length:N},(_,P)=>R+P*X)})():Array.from(new Set(J.map((W)=>W.timestamp))).sort((W,M)=>W-M),H=new Map(K.map((W,M)=>[W,M])),F=new Map;for(let W of J){let M=`${W.model}::${W.provider}`,R=F.get(M);if(!R)R={label:`${W.model} (${W.provider})`,data:K.map((P)=>({timestamp:P,avgTtftSeconds:null,avgTokensPerSecond:null,requests:0}))},F.set(M,R);let _=H.get(W.timestamp);if(_===void 0)continue;R.data[_]={timestamp:W.timestamp,avgTtftSeconds:W.avgTtft!==null?W.avgTtft/1000:null,avgTokensPerSecond:W.avgTokensPerSecond,requests:W.requests}}return F}function jL(J,G){let q=J.totalNegation+J.totalRepetition+J.totalBlame,X=new Map;for(let K of G){let H=`${K.model}::${K.provider}`,F=X.get(H),W=K.yelling+K.profanity+K.anguish+K.negation+K.repetition+K.blame;if(F)F.score+=W;else X.set(H,{model:K.model,provider:K.provider,score:W})}let N=null;for(let K of X.values())if(!N||K.score>N.score)N=K;return{totalMessages:J.totalMessages,totalYelling:J.totalYelling,totalProfanity:J.totalProfanity,totalAnguish:J.totalAnguish,totalFrustration:q,highestFrictionModel:N}}function kL(J){let G=[...J].sort((N,K)=>{if(K.totalCost!==N.totalCost)return K.totalCost-N.totalCost;return K.totalRequests-N.totalRequests}),q=G.reduce((N,K)=>Math.max(N,K.totalCost),0),X=G.reduce((N,K)=>Math.max(N,K.totalRequests),0);return G.map((N)=>({...N,costPercentage:q>0?N.totalCost/q*100:0,requestsPercentage:X>0?N.totalRequests/X*100:0}))}function vL(J){let G=J.reduce((q,X)=>Math.max(q,X.calls),0);return J.map((q)=>({...q,errorRate:q.calls>0?q.errors/q.calls:0,callsPercentage:G>0?q.calls/G*100:0}))}var Kq=s(U0(),1);function R$({message:J="No data available",icon:G=kJ,className:q=""}){return Kq.jsxDEV("div",{className:`stats-empty-state ${q}`,children:[Kq.jsxDEV(G,{size:24,className:"stats-empty-state-icon","aria-hidden":"true"},void 0,!1,void 0,this),Kq.jsxDEV("p",{className:"stats-empty-state-message",children:J},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var _$=s(U0(),1);function bL({error:J,onRetry:G,className:q=""}){return _$.jsxDEV("div",{className:`stats-error-state ${q}`,children:_$.jsxDEV("div",{className:"stats-error-state-content",children:[_$.jsxDEV("h4",{className:"stats-error-state-title",children:"Failed to load data"},void 0,!1,void 0,this),J&&_$.jsxDEV("p",{className:"stats-error-state-message",children:J.message},void 0,!1,void 0,this),G&&_$.jsxDEV("button",{type:"button",onClick:G,className:"stats-button stats-button-secondary stats-error-state-btn",children:"Retry"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var fL=s(U0(),1);function q6({variant:J="text",width:G,height:q,className:X=""}){let N={width:G!==void 0?typeof G==="number"?`${G}px`:G:void 0,height:q!==void 0?typeof q==="number"?`${q}px`:q:void 0};return fL.jsxDEV("div",{className:`stats-skeleton ${X}`,"data-variant":J,style:N},void 0,!1,void 0,this)}var A6=s(U0(),1);function f1({loading:J,error:G,data:q,empty:X=!1,emptyText:N="No data available",fallback:K,onRetry:H,children:F}){if(G&&q===null)return A6.jsxDEV(bL,{error:G,onRetry:H},void 0,!1,void 0,this);if(J&&q===null){if(K)return A6.jsxDEV(A6.Fragment,{children:K},void 0,!1,void 0,this);return A6.jsxDEV("div",{className:"stats-boundary-skeleton",children:[A6.jsxDEV(q6,{variant:"text",width:"60%",height:24,className:"mb-4"},void 0,!1,void 0,this),A6.jsxDEV(q6,{variant:"rect",width:"100%",height:160,className:"mb-4"},void 0,!1,void 0,this),A6.jsxDEV(q6,{variant:"text",width:"80%",height:20,className:"mb-2"},void 0,!1,void 0,this),A6.jsxDEV(q6,{variant:"text",width:"40%",height:20},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}if(!J&&(X||q===null))return A6.jsxDEV(R$,{message:N},void 0,!1,void 0,this);return A6.jsxDEV(A6.Fragment,{children:F},void 0,!1,void 0,this)}var Y6=s(U0(),1);function X6({columns:J,data:G,keyExtractor:q,onRowClick:X,renderMobileCard:N,emptyText:K="No data available"}){let H=(F,W)=>{if(X&&(F.key==="Enter"||F.key===" "))F.preventDefault(),X(W)};if(G.length===0)return Y6.jsxDEV("div",{className:"stats-table-empty",children:K},void 0,!1,void 0,this);return Y6.jsxDEV("div",{className:"stats-table-wrapper",children:[N&&Y6.jsxDEV("div",{className:"stats-table-mobile-only",children:Y6.jsxDEV("div",{className:"stats-table-mobile-list",children:G.map((F)=>{let W=String(q(F));return Y6.jsxDEV("div",{className:"stats-table-mobile-card-wrapper",children:N(F,X?()=>X(F):void 0)},W,!1,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),Y6.jsxDEV("div",{className:N?"stats-table-desktop-only":"stats-table-container",children:Y6.jsxDEV("table",{className:"stats-table",children:[Y6.jsxDEV("thead",{children:Y6.jsxDEV("tr",{children:J.map((F)=>{let W=["stats-table-th",F.numeric?"stats-text-right":"stats-text-left",F.className||""].filter(Boolean).join(" ");return Y6.jsxDEV("th",{className:W,children:F.header},F.key,!1,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),Y6.jsxDEV("tbody",{children:G.map((F)=>{let W=String(q(F)),M=typeof X==="function",R=["stats-table-tr",M?"stats-table-tr-clickable":""].filter(Boolean).join(" ");return Y6.jsxDEV("tr",{className:R,onClick:M?()=>X(F):void 0,onKeyDown:M?(_)=>H(_,F):void 0,tabIndex:M?0:void 0,role:M?"button":void 0,children:J.map((_)=>{let P=["stats-table-td",_.numeric?"stats-text-right":"stats-text-left",_.className||""].filter(Boolean).join(" ");return Y6.jsxDEV("td",{className:P,children:_.render?_.render(F):F[_.key]},_.key,!1,void 0,this)})},W,!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 o7=s(L1(),1),n6=s(U0(),1);function MK({data:J,title:G,initialCollapsed:q=!1}){let[X,N]=o7.useState(q),[K,H]=o7.useState(!1),F=o7.useRef(0),W=JSON.stringify(J,null,2);return o7.useEffect(()=>()=>window.clearTimeout(F.current),[]),n6.jsxDEV("div",{className:"stats-json-block",children:[n6.jsxDEV("div",{className:"stats-json-block-header",onClick:()=>N(!X),onKeyDown:(_)=>{if(_.key==="Enter"||_.key===" ")_.preventDefault(),N(!X)},tabIndex:0,role:"button","aria-expanded":!X,children:[n6.jsxDEV("span",{className:"stats-json-block-title",children:G||"JSON"},void 0,!1,void 0,this),n6.jsxDEV("div",{className:"stats-json-actions",children:[n6.jsxDEV("button",{type:"button",className:"stats-json-copy-btn",onClick:async(_)=>{_.stopPropagation();try{await navigator.clipboard.writeText(W),H(!0),window.clearTimeout(F.current),F.current=window.setTimeout(()=>H(!1),1500)}catch{}},"aria-label":K?"Copied to clipboard":"Copy JSON to clipboard",children:[K?n6.jsxDEV(CJ,{size:13},void 0,!1,void 0,this):n6.jsxDEV(AJ,{size:13},void 0,!1,void 0,this),K?"Copied":"Copy"]},void 0,!0,void 0,this),n6.jsxDEV("span",{className:"stats-json-block-toggle-indicator","data-collapsed":X,children:X?"▶ Show":"▼ Hide"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),!X&&n6.jsxDEV("div",{className:"stats-json-block-content-wrapper",children:n6.jsxDEV("pre",{className:"stats-json-block-content",children:n6.jsxDEV("code",{children:W},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 n0=s(U0(),1);function yL({stats:J}){let G=Uq(J);return n0.jsxDEV("div",{className:"stats-metric-cluster",children:[n0.jsxDEV("div",{className:"stats-metric-primary-grid",children:[n0.jsxDEV("div",{className:"stats-metric-card primary",children:[n0.jsxDEV("div",{className:"stats-metric-label",children:"Total Cost"},void 0,!1,void 0,this),n0.jsxDEV("div",{className:"stats-metric-value",children:z1(J.totalCost,J.totalCost>0&&J.totalCost<0.01?4:2)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),n0.jsxDEV("div",{className:"stats-metric-card primary",children:[n0.jsxDEV("div",{className:"stats-metric-label",children:"Requests"},void 0,!1,void 0,this),n0.jsxDEV("div",{className:"stats-metric-value",children:S0(J.totalRequests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),n0.jsxDEV("div",{className:"stats-metric-card primary",children:[n0.jsxDEV("div",{className:"stats-metric-label",children:"Cache Rate"},void 0,!1,void 0,this),n0.jsxDEV("div",{className:"stats-metric-value",children:x1(J.cacheRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),n0.jsxDEV("div",{className:"stats-metric-card primary",children:[n0.jsxDEV("div",{className:"stats-metric-label",children:"Error Rate"},void 0,!1,void 0,this),n0.jsxDEV("div",{className:"stats-metric-value",children:x1(J.errorRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),n0.jsxDEV("div",{className:"stats-metric-secondary-grid",children:[n0.jsxDEV("div",{className:"stats-metric-card secondary",title:"Conversation input not served from cache",children:[n0.jsxDEV("div",{className:"stats-metric-label",children:"Uncached Input"},void 0,!1,void 0,this),n0.jsxDEV("div",{className:"stats-metric-value",children:X1(J.totalInputTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),n0.jsxDEV("div",{className:"stats-metric-card secondary",title:"Conversation input read from the prompt cache",children:[n0.jsxDEV("div",{className:"stats-metric-label",children:"Cache Read"},void 0,!1,void 0,this),n0.jsxDEV("div",{className:"stats-metric-value",children:X1(J.totalCacheReadTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),n0.jsxDEV("div",{className:"stats-metric-card secondary",children:[n0.jsxDEV("div",{className:"stats-metric-label",children:"Output Tokens"},void 0,!1,void 0,this),n0.jsxDEV("div",{className:"stats-metric-value",children:X1(J.totalOutputTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),n0.jsxDEV("div",{className:"stats-metric-card secondary",title:"Uncached input + cache reads + cache writes + output",children:[n0.jsxDEV("div",{className:"stats-metric-label",children:"Conversation Total"},void 0,!1,void 0,this),n0.jsxDEV("div",{className:"stats-metric-value",children:X1(G)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),n0.jsxDEV("div",{className:"stats-metric-card secondary",children:[n0.jsxDEV("div",{className:"stats-metric-label",children:"Premium Requests"},void 0,!1,void 0,this),n0.jsxDEV("div",{className:"stats-metric-value",children:S0(J.totalPremiumRequests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),n0.jsxDEV("div",{className:"stats-metric-card secondary",children:[n0.jsxDEV("div",{className:"stats-metric-label",children:"Tokens/s"},void 0,!1,void 0,this),n0.jsxDEV("div",{className:"stats-metric-value",children:Xq(J.avgTokensPerSecond)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),n0.jsxDEV("div",{className:"stats-metric-card secondary",children:[n0.jsxDEV("div",{className:"stats-metric-label",children:"Avg Latency"},void 0,!1,void 0,this),n0.jsxDEV("div",{className:"stats-metric-value",children:v5(J.avgDuration)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),n0.jsxDEV("div",{className:"stats-metric-card secondary",children:[n0.jsxDEV("div",{className:"stats-metric-label",children:"Avg TTFT"},void 0,!1,void 0,this),n0.jsxDEV("div",{className:"stats-metric-value",children:v5(J.avgTtft)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var x2=s(U0(),1);function q1({title:J,subtitle:G,actions:q,children:X,className:N="",...K}){return x2.jsxDEV("div",{className:`stats-panel ${N}`,...K,children:[(J||G||q)&&x2.jsxDEV("div",{className:"stats-panel-header",children:[x2.jsxDEV("div",{className:"stats-panel-header-titles",children:[J&&x2.jsxDEV("h3",{className:"stats-panel-title",children:J},void 0,!1,void 0,this),G&&x2.jsxDEV("p",{className:"stats-panel-subtitle",children:G},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q&&x2.jsxDEV("div",{className:"stats-panel-actions",children:q},void 0,!1,void 0,this)]},void 0,!0,void 0,this),x2.jsxDEV("div",{className:"stats-panel-body",children:X},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var r4=s(L1(),1);var gL=s(U0(),1);function O5({variant:J,children:G,className:q=""}){return gL.jsxDEV("span",{className:`stats-status-pill ${q}`,"data-variant":J,children:G},void 0,!1,void 0,this)}var M0=s(U0(),1);function hL({id:J,onClose:G}){let[q,X]=r4.useState(null),[N,K]=r4.useState(!1),[H,F]=r4.useState(null),W=r4.useRef(null),M=r4.useRef(null);if(r4.useEffect(()=>{if(J===null){X(null);return}W.current=document.activeElement,K(!0),F(null),X(null);let _=new AbortController;return s_(J,_.signal).then((P)=>{if(_.signal.aborted)return;X(P),setTimeout(()=>M.current?.focus(),50)}).catch((P)=>{if(_.signal.aborted)return;F(P instanceof Error?P:Error(String(P)))}).finally(()=>{if(!_.signal.aborted)K(!1)}),()=>_.abort()},[J]),r4.useEffect(()=>{if(J===null)return;let _=(P)=>{if(P.key==="Escape")G()};return window.addEventListener("keydown",_),()=>{if(window.removeEventListener("keydown",_),W.current)W.current.focus()}},[J,G]),J===null)return null;return M0.jsxDEV("div",{className:"stats-drawer-overlay",onClick:(_)=>{if(_.target===_.currentTarget)G()},role:"presentation",children:M0.jsxDEV("div",{className:"stats-drawer",role:"dialog","aria-modal":"true","aria-label":"Request details",children:[M0.jsxDEV("div",{className:"stats-drawer-header",children:[M0.jsxDEV("div",{className:"stats-drawer-header-left",children:[M0.jsxDEV("h2",{className:"stats-drawer-title",children:"Request Details"},void 0,!1,void 0,this),q&&M0.jsxDEV("span",{className:"stats-drawer-id",children:["ID: ",J]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),M0.jsxDEV("button",{ref:M,type:"button",onClick:G,className:"stats-drawer-close-btn","aria-label":"Close request details",children:M0.jsxDEV(p7,{size:18},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),M0.jsxDEV("div",{className:"stats-drawer-body",children:[N&&M0.jsxDEV("div",{className:"stats-drawer-loading",children:[M0.jsxDEV(q6,{variant:"text",width:"60%",height:24,className:"mb-4"},void 0,!1,void 0,this),M0.jsxDEV(q6,{variant:"rect",width:"100%",height:80,className:"mb-4"},void 0,!1,void 0,this),M0.jsxDEV(q6,{variant:"rect",width:"100%",height:120,className:"mb-4"},void 0,!1,void 0,this),M0.jsxDEV(q6,{variant:"rect",width:"100%",height:200},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H&&M0.jsxDEV("div",{className:"stats-drawer-error",children:[M0.jsxDEV("p",{className:"stats-drawer-error-title",children:"Failed to load request details"},void 0,!1,void 0,this),M0.jsxDEV("p",{className:"stats-drawer-error-message",children:H.message},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q&&M0.jsxDEV("div",{className:"stats-drawer-content",children:[M0.jsxDEV("div",{className:"stats-drawer-status-card",children:[M0.jsxDEV("div",{className:"stats-drawer-status-row",children:[M0.jsxDEV("div",{children:[M0.jsxDEV("div",{className:"stats-drawer-model",children:q.model},void 0,!1,void 0,this),M0.jsxDEV("div",{className:"stats-drawer-provider",children:q.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),M0.jsxDEV(O5,{variant:q.errorMessage?"danger":"success",children:q.errorMessage?"Error":"Success"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q.errorMessage&&M0.jsxDEV("div",{className:"stats-drawer-error-block",children:[M0.jsxDEV("div",{className:"stats-drawer-error-label",children:"Error Message"},void 0,!1,void 0,this),M0.jsxDEV("div",{className:"stats-drawer-error-text",children:q.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),M0.jsxDEV("div",{className:"stats-drawer-metrics-grid",children:[M0.jsxDEV("div",{className:"stats-drawer-metric-card",children:[M0.jsxDEV("div",{className:"stats-drawer-metric-label",children:[M0.jsxDEV(d7,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"Cost"]},void 0,!0,void 0,this),M0.jsxDEV("div",{className:"stats-drawer-metric-value",children:z1(q.usage.cost.total,4)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),M0.jsxDEV("div",{className:"stats-drawer-metric-card",children:[M0.jsxDEV("div",{className:"stats-drawer-metric-label",children:[M0.jsxDEV(xJ,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"Premium"]},void 0,!0,void 0,this),M0.jsxDEV("div",{className:"stats-drawer-metric-value",children:S0(q.usage.premiumRequests??0)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),M0.jsxDEV("div",{className:"stats-drawer-metric-card",children:[M0.jsxDEV("div",{className:"stats-drawer-metric-label",children:[M0.jsxDEV(jJ,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"Total Tokens"]},void 0,!0,void 0,this),M0.jsxDEV("div",{className:"stats-drawer-metric-value",children:S0(q.usage.totalTokens)},void 0,!1,void 0,this),M0.jsxDEV("div",{className:"stats-drawer-metric-sub",children:[S0(q.usage.input)," in · ",S0(q.usage.output)," out"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),M0.jsxDEV("div",{className:"stats-drawer-metric-card",children:[M0.jsxDEV("div",{className:"stats-drawer-metric-label",children:[M0.jsxDEV(VJ,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"Duration"]},void 0,!0,void 0,this),M0.jsxDEV("div",{className:"stats-drawer-metric-value",children:v5(q.duration)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),M0.jsxDEV("div",{className:"stats-drawer-metric-card",children:[M0.jsxDEV("div",{className:"stats-drawer-metric-label",children:[M0.jsxDEV(cJ,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"TTFT"]},void 0,!0,void 0,this),M0.jsxDEV("div",{className:"stats-drawer-metric-value",children:v5(q.ttft)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q.duration&&q.usage.output>0&&M0.jsxDEV("div",{className:"stats-drawer-metric-card",children:[M0.jsxDEV("div",{className:"stats-drawer-metric-label",children:[M0.jsxDEV(DJ,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"Throughput"]},void 0,!0,void 0,this),M0.jsxDEV("div",{className:"stats-drawer-metric-value",children:(q.usage.output*1000/q.duration).toFixed(1)},void 0,!1,void 0,this),M0.jsxDEV("div",{className:"stats-drawer-metric-sub",children:"tokens/second"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),M0.jsxDEV("div",{className:"stats-drawer-json-blocks",children:[M0.jsxDEV(MK,{data:q.output,title:"Output Payload",initialCollapsed:!1},void 0,!1,void 0,this),M0.jsxDEV(MK,{data:q,title:"Raw Request Metadata",initialCollapsed:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var wK=s(U0(),1);function a7({options:J,value:G,onChange:q,className:X=""}){return wK.jsxDEV("div",{className:`stats-segmented-control ${X}`,role:"radiogroup",children:J.map((N)=>{let K=N.value===G;return wK.jsxDEV("button",{type:"button",role:"radio","aria-checked":K,"data-active":K?"true":"false",className:"stats-segmented-control-btn",title:N.title,onClick:()=>q(N.value),children:N.label},String(N.value),!1,void 0,this)})},void 0,!1,void 0,this)}var w0=s(U0(),1);function cL({active:J,range:G,refreshTrigger:q}){let{data:X,error:N,loading:K}=n1(["behavior",G,q],(H)=>o_(G,H),{pollMs:30000,enabled:J});return w0.jsxDEV("div",{className:"stats-route-container space-y-6",children:w0.jsxDEV(f1,{loading:K,error:N,data:X,children:X&&w0.jsxDEV(w0.Fragment,{children:[w0.jsxDEV($D,{overall:X.overall,behaviorSeries:X.behaviorSeries},void 0,!1,void 0,this),w0.jsxDEV(ZD,{behaviorSeries:X.behaviorSeries},void 0,!1,void 0,this),w0.jsxDEV(JD,{models:X.byModel,behaviorSeries:X.behaviorSeries},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 Bq(J,G){if(G<=0)return;return`${(J/G).toFixed(2)} / msg`}function $D({overall:J,behaviorSeries:G}){let q=X5.useMemo(()=>jL(J,G),[J,G]),X=J.totalMessages,N=[{label:"User Messages",value:S0(J.totalMessages),sub:X>0?"in range":void 0},{label:"Yelling (CAPS)",value:S0(J.totalYelling),sub:Bq(J.totalYelling,X)},{label:"Profanity Hits",value:S0(J.totalProfanity),sub:Bq(J.totalProfanity,X)},{label:"Anguish Signals",value:S0(J.totalAnguish),sub:Bq(J.totalAnguish,X)},{label:"Friction Signals",value:S0(q.totalFrustration),sub:Bq(q.totalFrustration,X)},{label:"Highest Friction Model",value:q.highestFrictionModel?.model??"—",sub:q.highestFrictionModel?`${S0(q.highestFrictionModel.score)} hits`:void 0}];return w0.jsxDEV("div",{className:"grid grid-cols-2 md:grid-cols-6 gap-4",children:N.map((K)=>w0.jsxDEV(q1,{className:"stats-behavior-summary-card py-3 px-4",children:[w0.jsxDEV("p",{className:"text-xs stats-text-muted mb-1 font-medium truncate",children:K.label},void 0,!1,void 0,this),w0.jsxDEV("p",{className:"text-lg font-bold stats-text-primary truncate",title:K.value,children:K.value},void 0,!1,void 0,this),K.sub&&w0.jsxDEV("p",{className:"text-xs stats-text-muted mt-0.5",children:K.sub},void 0,!1,void 0,this)]},K.label,!0,void 0,this))},void 0,!1,void 0,this)}var RK=[{value:"yelling",label:"CAPS",title:"Yelling (CAPS)"},{value:"profanity",label:"Profanity",title:"Profanity"},{value:"anguish",label:"Anguish",title:"Anguish (!!!, nooo, ugh, dude, ':(')"},{value:"negation",label:"Negation",title:"Negation (no/nope/wrong, makes no sense)"},{value:"repetition",label:"Repetition",title:"Repetition (i meant, still doesnt)"},{value:"blame",label:"Blame",title:"Blame (you didnt, why did you, stop X-ing)"},{value:"frustration",label:"Frustration",title:"Frustration (neg + rep + blame)"},{value:"total",label:"All",title:"All signals combined"}];function uL(J){if(!Number.isFinite(J))return"-";if(J===0)return"0%";if(Math.abs(J)<1)return`${J.toFixed(1)}%`;return`${J.toFixed(0)}%`}function xL(J,G){if(G==="frustration")return J.negation+J.repetition+J.blame;if(G==="total")return J.yelling+J.profanity+J.anguish+J.negation+J.repetition+J.blame;return J[G]}function mL(J,G){if(G<=0)return 0;return J/G*100}function ZD({behaviorSeries:J}){let[G,q]=X5.useState(!1),[X,N]=X5.useState("total"),K=z5(),H=s1[K],F=X5.useMemo(()=>{if(G)return w$(J,{rankWeight:(h)=>h.messages,initBucket:()=>({hits:0,messages:0}),accumulate:(h,p)=>{h.hits+=xL(p,X),h.messages+=p.messages},bucketToValue:(h)=>mL(h.hits,h.messages)});let j=RK.find((h)=>h.value===X)?.title??"Hits";return i3(J,j,{initBucket:()=>({hits:0,messages:0}),accumulate:(h,p)=>{h.hits+=xL(p,X),h.messages+=p.messages},bucketToValue:(h)=>mL(h.hits,h.messages)})},[J,G,X]),W=X5.useMemo(()=>{return c4({chartTheme:H,showLegend:G,defaultLabel:"Hits",formatValue:uL})},[H,G]),{sharedScaleBase:M,yScale:R}=X5.useMemo(()=>{return l4({chartTheme:H,formatY:uL})},[H]),_=X5.useMemo(()=>{return RK.find((j)=>j.value===X)?.title??""},[X]),P=X5.useMemo(()=>{if(!G)return null;return{labels:F.labels,datasets:h2(F,(j)=>M$(K1[j%K1.length]))}},[F,G]),O=X5.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:W,scales:{x:M,y:R}}},[W,M,R]),E=X5.useMemo(()=>{if(G)return null;return{labels:F.labels,datasets:h2(F,(j)=>s7(K1[j%K1.length]))}},[F,G]),V=X5.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:W,scales:{x:{...M,stacked:!0},y:{...R,stacked:!0}},layout:{padding:{top:8}}}},[W,M,R]),I=[{value:!1,label:"All Models"},{value:!0,label:"By Model"}];return w0.jsxDEV(q1,{title:"User Friction Signals",subtitle:`${_} as % of user messages per day`,actions:w0.jsxDEV("div",{className:"flex items-center gap-3 flex-wrap",children:[w0.jsxDEV(a7,{options:RK.map((j)=>({value:j.value,label:j.label,title:j.title})),value:X,onChange:N},void 0,!1,void 0,this),w0.jsxDEV(a7,{options:I,value:G,onChange:q},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:w0.jsxDEV("div",{className:"h-[300px]",children:F.labels.length===0?w0.jsxDEV("div",{className:"h-full flex items-center justify-center text-stats-muted text-sm",children:"No friction signal data available"},void 0,!1,void 0,this):G&&P?w0.jsxDEV(k5,{data:P,options:O},void 0,!1,void 0,this):E?w0.jsxDEV(g2,{data:E,options:V},void 0,!1,void 0,this):null},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var dL="2fr 0.9fr 0.8fr 0.8fr 0.8fr 0.9fr 0.8fr 140px 40px";function pL(J){if(J.totalMessages===0)return 0;return(J.totalYelling+J.totalProfanity+J.totalAnguish+J.totalNegation+J.totalRepetition+J.totalBlame)/J.totalMessages}function L$(J,G){if(G===0)return"-";let q=J/G*100;if(q===0)return"0%";if(q<1)return`${q.toFixed(1)}%`;return`${q.toFixed(0)}%`}function JD({models:J,behaviorSeries:G}){let[q,X]=X5.useState(null),N=z5(),K=s1[N],H=X5.useMemo(()=>GD(G),[G]),F=X5.useMemo(()=>{return[...J].sort((W,M)=>{if(M.totalMessages!==W.totalMessages)return M.totalMessages-W.totalMessages;return pL(M)-pL(W)})},[J]);return w0.jsxDEV($q,{title:"Behavior Signals by Model",subtitle:"Rates are per user message",children:[w0.jsxDEV(Zq,{gridTemplate:dL,columns:[{label:"Model"},{label:"Messages",align:"right"},{label:"CAPS %",align:"right"},{label:"Profanity %",align:"right"},{label:"Anguish %",align:"right"},{label:"Frustration %",align:"right"},{label:"Hits %",align:"right"},{label:"Trend",align:"center"}]},void 0,!1,void 0,this),w0.jsxDEV(Jq,{children:[F.map((W,M)=>{let R=`${W.model}::${W.provider}`,_=H.get(R)?.data??[],P=K1[M%K1.length],O=q===R,E=W.totalNegation+W.totalRepetition+W.totalBlame,V=W.totalYelling+W.totalProfanity+W.totalAnguish+E;return w0.jsxDEV(Gq,{gridTemplate:dL,isExpanded:O,onToggle:()=>X(O?null:R),cells:[w0.jsxDEV(Qq,{model:W.model,provider:W.provider},"name",!1,void 0,this),w0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:S0(W.totalMessages)},"messages",!1,void 0,this),w0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:L$(W.totalYelling,W.totalMessages)},"caps",!1,void 0,this),w0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:L$(W.totalProfanity,W.totalMessages)},"profanity",!1,void 0,this),w0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:L$(W.totalAnguish,W.totalMessages)},"anguish",!1,void 0,this),w0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:L$(E,W.totalMessages)},"frustration",!1,void 0,this),w0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:L$(V,W.totalMessages)},"hits",!1,void 0,this)],trendCell:_.length===0?w0.jsxDEV(qq,{},void 0,!1,void 0,this):w0.jsxDEV(t3,{timestamps:_.map((I)=>I.timestamp),values:_.map((I)=>I.total),color:P},void 0,!1,void 0,this),expandedContent:w0.jsxDEV("div",{className:"grid gap-4",style:{gridTemplateColumns:"220px 1fr"},children:[w0.jsxDEV("div",{className:"space-y-4 text-sm",children:[w0.jsxDEV(i7,{label:"Yelling (CAPS)",total:W.totalYelling,messages:W.totalMessages,valueClass:"text-[#ed4abf]"},void 0,!1,void 0,this),w0.jsxDEV(i7,{label:"Profanity",total:W.totalProfanity,messages:W.totalMessages,valueClass:"text-[#ff6b7d]"},void 0,!1,void 0,this),w0.jsxDEV(i7,{label:"Anguish (!!!, nooo, dude, ..)",total:W.totalAnguish,messages:W.totalMessages,valueClass:"text-[#9b4dff]"},void 0,!1,void 0,this),w0.jsxDEV(i7,{label:"Negation (no/nope/wrong)",total:W.totalNegation,messages:W.totalMessages,valueClass:"text-[#5ad8e6]"},void 0,!1,void 0,this),w0.jsxDEV(i7,{label:"Repetition (i meant, still doesnt)",total:W.totalRepetition,messages:W.totalMessages,valueClass:"text-[#5ad8e6]"},void 0,!1,void 0,this),w0.jsxDEV(i7,{label:"Blame (you didnt, stop X-ing)",total:W.totalBlame,messages:W.totalMessages,valueClass:"text-[#5ad8e6]"},void 0,!1,void 0,this),w0.jsxDEV(i7,{label:"Avg chars / msg",total:W.totalChars,messages:W.totalMessages,valueClass:"stats-text-secondary",mode:"average"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),w0.jsxDEV("div",{className:"h-[200px]",children:_.length===0?w0.jsxDEV(Yq,{},void 0,!1,void 0,this):w0.jsxDEV(QD,{data:_,chartTheme:K},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},R,!1,void 0,this)}),F.length===0?w0.jsxDEV("div",{className:"border-t border-[var(--border-subtle)] px-5 py-8 text-center text-[var(--text-muted)] text-sm",children:"No user behavior recorded for this range yet."},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function i7({label:J,total:G,messages:q,valueClass:X,mode:N="rate"}){let K=N==="rate"?"% of msgs":"Per msg",H=X5.useMemo(()=>{if(q===0)return"-";return N==="rate"?L$(G,q):(G/q).toFixed(0)},[G,q,N]);return w0.jsxDEV("div",{children:[w0.jsxDEV("div",{className:"text-[var(--text-primary)] font-medium mb-1",children:J},void 0,!1,void 0,this),w0.jsxDEV("div",{className:"space-y-0.5 text-[var(--text-secondary)]",children:[w0.jsxDEV("div",{className:"flex items-center justify-between",children:[w0.jsxDEV("span",{className:"stats-text-muted text-xs",children:"Total"},void 0,!1,void 0,this),w0.jsxDEV("span",{className:`font-mono text-xs ${X}`,children:S0(G)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),w0.jsxDEV("div",{className:"flex items-center justify-between",children:[w0.jsxDEV("span",{className:"stats-text-muted text-xs",children:K},void 0,!1,void 0,this),w0.jsxDEV("span",{className:"font-mono text-xs stats-text-primary",children:H},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var Hq={yelling:"#ed4abf",profanity:"#ff6b7d",anguish:"#9b4dff",frustration:"#5ad8e6"};function QD({data:J,chartTheme:G}){let q=X5.useMemo(()=>{return{labels:J.map((N)=>K4(new Date(N.timestamp),"MMM d")),datasets:[{label:"CAPS",data:J.map((N)=>N.yelling),...D8(Hq.yelling)},{label:"Profanity",data:J.map((N)=>N.profanity),...D8(Hq.profanity)},{label:"Anguish",data:J.map((N)=>N.anguish),...D8(Hq.anguish)},{label:"Frustration",data:J.map((N)=>N.frustration),...D8(Hq.frustration)}]}},[J]),X=X5.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,plugins:e3(G),scales:OL(G)}},[G]);return w0.jsxDEV(k5,{data:q,options:X},void 0,!1,void 0,this)}function GD(J){if(J.length===0)return new Map;let G=[...new Set(J.map((N)=>N.timestamp))].sort((N,K)=>N-K),q=new Map;for(let N of J){let K=`${N.model}::${N.provider}`,H=q.get(K);if(!H)H=new Map,q.set(K,H);let F=H.get(N.timestamp)??{timestamp:N.timestamp,yelling:0,profanity:0,anguish:0,frustration:0,total:0};F.yelling+=N.yelling,F.profanity+=N.profanity,F.anguish+=N.anguish,F.frustration+=N.negation+N.repetition+N.blame,F.total=F.yelling+F.profanity+F.anguish+F.frustration,H.set(N.timestamp,F)}let X=new Map;for(let[N,K]of q){let H=G.map((F)=>K.get(F)??{timestamp:F,yelling:0,profanity:0,anguish:0,frustration:0,total:0});X.set(N,{data:H})}return X}var o6=s(L1(),1);var N5=s(U0(),1);function lL({active:J,range:G,refreshTrigger:q}){let{data:X,error:N,loading:K}=n1(["costs",G,q],(H)=>l_(G,H),{pollMs:30000,enabled:J});return N5.jsxDEV("div",{className:"stats-route-container space-y-6",children:N5.jsxDEV(f1,{loading:K,error:N,data:X,children:X&&N5.jsxDEV(N5.Fragment,{children:[N5.jsxDEV(qD,{costSeries:X.costSeries},void 0,!1,void 0,this),N5.jsxDEV(ND,{costSeries:X.costSeries},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 qD({costSeries:J}){let G=o6.useMemo(()=>SL(J),[J]),q=[{label:"Total Cost",value:z1(G.totalCost)},{label:"Average / Day",value:z1(G.avgDailyCost)},{label:"Top Model",value:G.topModelName||"—",sub:G.topModelName?z1(G.topModelCost):void 0}];return N5.jsxDEV("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:q.map((X)=>N5.jsxDEV(q1,{className:"stats-cost-overview-card py-4 px-5",children:[N5.jsxDEV("p",{className:"text-xs stats-text-muted mb-1 font-medium uppercase tracking-wider",children:X.label},void 0,!1,void 0,this),N5.jsxDEV("p",{className:"text-2xl font-bold stats-text-primary truncate",title:X.value,children:X.value},void 0,!1,void 0,this),X.sub&&N5.jsxDEV("p",{className:"text-xs stats-text-muted mt-1 font-medium",children:["Total spent: ",X.sub]},void 0,!0,void 0,this)]},X.label,!0,void 0,this))},void 0,!1,void 0,this)}var YD={dark:"rgba(248, 250, 252, 0.7)",light:"rgba(15, 23, 42, 0.6)"};function XD(J){return{id:"costBarLabels",afterDatasetsDraw(G){let{ctx:q}=G;if(!G.data.datasets[0])return;let N=G.getDatasetMeta(0);q.save(),q.font="11px system-ui, sans-serif",q.fillStyle=J,q.textAlign="center",q.textBaseline="bottom";for(let K of N.data){let H=K.$context.parsed.y;if(!H)continue;let F=`$${Math.round(H)}`,{x:W,y:M}=K.getProps(["x","y"],!0);q.fillText(F,W,M-3)}q.restore()}}}function ND({costSeries:J}){let[G,q]=o6.useState(!1),X=z5(),N=s1[X],K=o6.useMemo(()=>{if(G)return w$(J,{rankWeight:(V)=>V.cost,initBucket:()=>({total:0}),accumulate:(V,I)=>{V.total+=I.cost},bucketToValue:(V)=>V.total});return i3(J,"Cost",{initBucket:()=>({total:0}),accumulate:(V,I)=>{V.total+=I.cost},bucketToValue:(V)=>V.total})},[J,G]),H=o6.useMemo(()=>{return c4({chartTheme:N,showLegend:G,defaultLabel:"Cost",formatValue:(V)=>`$${V.toFixed(2)}`,footer:(V)=>{if(!G||V.length<2)return;return`Total: $${V.reduce((j,h)=>j+(h.parsed.y??0),0).toFixed(2)}`}})},[N,G]),{sharedScaleBase:F,yScale:W}=o6.useMemo(()=>{return l4({chartTheme:N,formatY:(V)=>`$${Math.round(V)}`})},[N]),M=o6.useMemo(()=>{return XD(YD[X])},[X]),R=o6.useMemo(()=>{if(!G)return null;return{labels:K.labels,datasets:h2(K,(V)=>M$(K1[V%K1.length]))}},[K,G]),_=o6.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:H,scales:{x:F,y:W}}},[H,F,W]),P=o6.useMemo(()=>{if(G)return null;return{labels:K.labels,datasets:h2(K,(V)=>s7(K1[V%K1.length]))}},[K,G]),O=o6.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{...H,costBarLabels:{}},scales:{x:{...F,stacked:!0},y:{...W,stacked:!0}},layout:{padding:{top:24}}}},[H,F,W]);return N5.jsxDEV(q1,{title:"Daily Cost",subtitle:"API spending over time",actions:N5.jsxDEV(a7,{options:[{value:!1,label:"All Models"},{value:!0,label:"By Model"}],value:G,onChange:q},void 0,!1,void 0,this),children:N5.jsxDEV("div",{className:"h-[300px]",children:K.labels.length===0?N5.jsxDEV("div",{className:"h-full flex items-center justify-center text-stats-muted text-sm",children:"No cost data available"},void 0,!1,void 0,this):G&&R?N5.jsxDEV(k5,{data:R,options:_},void 0,!1,void 0,this):P?N5.jsxDEV(g2,{data:P,options:O,plugins:[M]},void 0,!1,void 0,this):null},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var rL=s(L1(),1);var S1=s(U0(),1);function sL({active:J,range:G,refreshTrigger:q,onRequestClick:X}){let{data:N,error:K,loading:H}=n1(["recent-errors-dense",G,q],(M)=>r_(G,50,M),{pollMs:30000,enabled:J}),F=rL.useMemo(()=>[{key:"model",header:"Model",render:(M)=>S1.jsxDEV("div",{children:[S1.jsxDEV("div",{className:"stats-font-medium stats-text-primary",children:M.model},void 0,!1,void 0,this),S1.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:M.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"timestamp",header:"Time",render:(M)=>G6(M.timestamp)},{key:"errorMessage",header:"Error Message",render:(M)=>S1.jsxDEV("div",{className:"stats-text-xs stats-text-danger stats-truncate stats-max-w-md stats-font-mono",title:M.errorMessage||"",children:M.errorMessage||"Unknown error"},void 0,!1,void 0,this)},{key:"tokens",header:"Tokens",numeric:!0,render:(M)=>S0(M.usage.totalTokens)},{key:"cost",header:"Cost",numeric:!0,render:(M)=>z1(M.usage.cost.total,4)}],[]);return S1.jsxDEV("div",{className:"stats-route-container",children:S1.jsxDEV(q1,{title:"Recent Errors",subtitle:"Up to 50 most recent failed requests in the stats database",children:S1.jsxDEV(f1,{loading:H,error:K,data:N,emptyText:"No recent failures in the local stats database",children:S1.jsxDEV(X6,{columns:F,data:N||[],keyExtractor:(M)=>M.id||`${M.sessionFile}-${M.entryId}`,onRowClick:(M)=>M.id&&X(M.id),renderMobileCard:(M,R)=>S1.jsxDEV("div",{className:"stats-mobile-card stats-border-danger",onClick:R,children:[S1.jsxDEV("div",{className:"stats-mobile-card-header",children:[S1.jsxDEV("div",{children:[S1.jsxDEV("div",{className:"stats-font-semibold stats-text-primary",children:M.model},void 0,!1,void 0,this),S1.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:M.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),S1.jsxDEV(O5,{variant:"danger",children:"Failed"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),S1.jsxDEV("div",{className:"stats-mobile-card-grid",children:[S1.jsxDEV("div",{children:[S1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Time"},void 0,!1,void 0,this),S1.jsxDEV("div",{className:"stats-mobile-card-value",children:G6(M.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),S1.jsxDEV("div",{children:[S1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Cost"},void 0,!1,void 0,this),S1.jsxDEV("div",{className:"stats-mobile-card-value",children:z1(M.usage.cost.total,4)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),S1.jsxDEV("div",{children:[S1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Tokens"},void 0,!1,void 0,this),S1.jsxDEV("div",{className:"stats-mobile-card-value",children:S0(M.usage.totalTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),M.errorMessage&&S1.jsxDEV("div",{className:"stats-mobile-card-error mt-2 stats-font-mono",children:M.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this),emptyText:"No recent failures in the local stats database"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var Fq=s(L1(),1);var I0=s(U0(),1);function nL({active:J,range:G,refreshTrigger:q}){let[X,N]=Fq.useState(null),{data:K,error:H,loading:F}=n1(["gain",G,q,X],(W)=>i_(G,X,W),{pollMs:30000,enabled:J});return I0.jsxDEV("div",{className:"stats-route-container space-y-6",children:I0.jsxDEV(f1,{loading:F,error:H,data:K,children:K&&I0.jsxDEV(I0.Fragment,{children:[I0.jsxDEV(UD,{projects:K.projects,selected:X,onChange:N},void 0,!1,void 0,this),I0.jsxDEV(KD,{overall:K.overall},void 0,!1,void 0,this),I0.jsxDEV(HD,{bySource:K.bySource},void 0,!1,void 0,this),I0.jsxDEV(WD,{timeSeries:K.timeSeries},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 UD({projects:J,selected:G,onChange:q}){if(J.length===0)return null;return I0.jsxDEV("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[I0.jsxDEV("span",{className:"stats-text-secondary",style:{fontSize:"0.875rem",whiteSpace:"nowrap"},children:"Project"},void 0,!1,void 0,this),I0.jsxDEV("select",{className:"stats-select",value:G??"",onChange:(X)=>q(X.target.value||null),style:{maxWidth:"480px",flex:1},children:[I0.jsxDEV("option",{value:"",children:"All projects"},void 0,!1,void 0,this),J.map((X)=>I0.jsxDEV("option",{value:X,children:X},X,!1,void 0,this))]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function KD({overall:J}){return I0.jsxDEV(q1,{title:"Overall Gain",subtitle:"Aggregate snapcompact savings",children:I0.jsxDEV("div",{className:"stats-metric-primary-grid",children:[I0.jsxDEV("div",{className:"stats-metric-card primary",children:[I0.jsxDEV("div",{className:"stats-metric-label",children:"Saved Tokens"},void 0,!1,void 0,this),I0.jsxDEV("div",{className:"stats-metric-value",children:X1(J.savedTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),I0.jsxDEV("div",{className:"stats-metric-card primary",children:[I0.jsxDEV("div",{className:"stats-metric-label",children:"Saved Bytes"},void 0,!1,void 0,this),I0.jsxDEV("div",{className:"stats-metric-value",children:zK(J.savedBytes)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),I0.jsxDEV("div",{className:"stats-metric-card primary",children:[I0.jsxDEV("div",{className:"stats-metric-label",children:"Reduction"},void 0,!1,void 0,this),I0.jsxDEV("div",{className:"stats-metric-value",children:J.reductionPercent!==null?x1(J.reductionPercent):"—"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),I0.jsxDEV("div",{className:"stats-metric-card primary",children:[I0.jsxDEV("div",{className:"stats-metric-label",children:"Total Hits"},void 0,!1,void 0,this),I0.jsxDEV("div",{className:"stats-metric-value",children:S0(J.hits)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function BD({title:J,totals:G}){return I0.jsxDEV("div",{className:"stats-metric-card secondary",style:{flex:1},children:[I0.jsxDEV("div",{className:"stats-metric-label",style:{fontWeight:600,marginBottom:8},children:J},void 0,!1,void 0,this),I0.jsxDEV("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:8},children:[I0.jsxDEV("div",{children:[I0.jsxDEV("div",{className:"stats-metric-label",children:"Saved Tokens"},void 0,!1,void 0,this),I0.jsxDEV("div",{className:"stats-metric-value",style:{fontSize:"1rem"},children:X1(G.savedTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),I0.jsxDEV("div",{children:[I0.jsxDEV("div",{className:"stats-metric-label",children:"Saved Bytes"},void 0,!1,void 0,this),I0.jsxDEV("div",{className:"stats-metric-value",style:{fontSize:"1rem"},children:zK(G.savedBytes)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),I0.jsxDEV("div",{children:[I0.jsxDEV("div",{className:"stats-metric-label",children:"Hits"},void 0,!1,void 0,this),I0.jsxDEV("div",{className:"stats-metric-value",style:{fontSize:"1rem"},children:S0(G.hits)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),I0.jsxDEV("div",{children:[I0.jsxDEV("div",{className:"stats-metric-label",children:"Reduction"},void 0,!1,void 0,this),I0.jsxDEV("div",{className:"stats-metric-value",style:{fontSize:"1rem"},children:G.reductionPercent!==null?x1(G.reductionPercent):"—"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function HD({bySource:J}){return I0.jsxDEV(q1,{title:"By Source",subtitle:"Savings breakdown per subsystem",children:I0.jsxDEV("div",{style:{display:"flex",gap:16,flexWrap:"wrap"},children:I0.jsxDEV(BD,{title:"Snapcompact",totals:J.snapcompact},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var FD={snapcompact:"rgb(34, 197, 94)"};function WD({timeSeries:J}){let G=z5(),q=s1[G],{data:X,options:N}=Fq.useMemo(()=>{let K=new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric",timeZone:"UTC"}),F={labels:J.map((_)=>K.format(new Date(`${_.date}T00:00:00.000Z`))),datasets:[{label:"Snapcompact",data:J.map((_)=>_.snapcompact),...M$(FD.snapcompact)}]},{sharedScaleBase:W,yScale:M}=l4({chartTheme:q,formatY:(_)=>X1(_)}),R={responsive:!0,maintainAspectRatio:!1,plugins:c4({chartTheme:q,showLegend:!0,defaultLabel:"Tokens Saved",formatValue:X1}),scales:{x:{...W,stacked:!0},y:{...M,stacked:!0}}};return{data:F,options:R}},[J,q]);return I0.jsxDEV(q1,{title:"Savings Over Time",subtitle:"Daily token savings",children:I0.jsxDEV("div",{style:{height:240},children:J.length===0?I0.jsxDEV("div",{className:"stats-table-empty",children:"No time series data yet"},void 0,!1,void 0,this):I0.jsxDEV(k5,{data:X,options:N},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var s4=s(L1(),1);var D0=s(U0(),1);function aL({active:J,range:G,refreshTrigger:q}){let{data:X,error:N,loading:K}=n1(["models",G,q],(H)=>c_(G,H),{pollMs:30000,enabled:J});return D0.jsxDEV("div",{className:"stats-route-container space-y-6",children:D0.jsxDEV(f1,{loading:K,error:N,data:X,children:X&&D0.jsxDEV(D0.Fragment,{children:[D0.jsxDEV(zD,{modelSeries:X.modelSeries,timeRange:G},void 0,!1,void 0,this),D0.jsxDEV(wD,{models:X.byModel,performanceSeries:X.modelPerformanceSeries,timeRange: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)}function zD({modelSeries:J,timeRange:G}){let q=z5(),X=s1[q],N=n7(G),K=s4.useMemo(()=>MD(J),[J]),H=s4.useMemo(()=>{return{labels:K.data.map((W)=>nJ(W.timestamp,G)),datasets:K.series.map((W,M)=>({label:W,data:K.data.map((R)=>R[W]??0),borderColor:K1[M%K1.length],backgroundColor:`${K1[M%K1.length]}20`,fill:!0,tension:0.4,pointRadius:0,pointHoverRadius:4,borderWidth:2}))}},[K,G]),F=s4.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{legend:{position:"top",align:"start",labels:{color:X.legendLabel,usePointStyle:!0,padding:16,font:{size:12},boxWidth:8}},tooltip:{backgroundColor:X.tooltipBackground,titleColor:X.tooltipTitle,bodyColor:X.tooltipBody,borderColor:X.tooltipBorder,borderWidth:1,padding:12,cornerRadius:8,callbacks:{label:(W)=>{let M=W.dataset.label??"",R=W.parsed.y;return`${M}: ${(R??0).toFixed(1)}%`}}}},scales:{x:{grid:{color:X.grid,drawBorder:!1},ticks:{color:X.tick,font:{size:11}}},y:{grid:{color:X.grid,drawBorder:!1},ticks:{color:X.tick,font:{size:11},callback:(W)=>`${W}%`},min:0,max:100}}}},[X]);return D0.jsxDEV(q1,{title:"Model Preference",subtitle:`Share of requests over ${N.windowLabel}`,children:D0.jsxDEV("div",{className:"h-[280px]",children:K.data.length===0?D0.jsxDEV("div",{className:"h-full flex items-center justify-center text-stats-muted text-sm",children:"No data available"},void 0,!1,void 0,this):D0.jsxDEV(k5,{data:H,options:F},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function MD(J,G=5){if(J.length===0)return{data:[],series:[]};let q=new Map;for(let _ of J){let P=`${_.model}::${_.provider}`,O=q.get(P);if(O)O.total+=_.requests;else q.set(P,{model:_.model,provider:_.provider,total:_.requests})}let N=[...q.entries()].map(([_,P])=>({key:_,...P})).sort((_,P)=>P.total-_.total).slice(0,G),K=new Set(N.map((_)=>_.key)),H=new Map;for(let _ of N)H.set(_.model,(H.get(_.model)??0)+1);let F=new Map;for(let _ of N){let P=(H.get(_.model)??0)>1;F.set(_.key,P?`${_.model} (${_.provider})`:_.model)}let W=new Map;for(let _ of J){let P=`${_.model}::${_.provider}`,O=W.get(_.timestamp)??{timestamp:_.timestamp,total:0};O.total+=_.requests;let E=K.has(P)?F.get(P)??_.model:"Other";O[E]=(O[E]??0)+_.requests,W.set(_.timestamp,O)}let M=N.map((_)=>F.get(_.key)??_.model);if([...W.values()].some((_)=>(_.Other??0)>0))M.push("Other");return{data:[...W.values()].sort((_,P)=>(_.timestamp??0)-(P.timestamp??0)).map((_)=>{let P=_.total??0;for(let O of M)_[O]=P>0?(_[O]??0)/P*100:0;return _}),series:M}}var oL="2fr 0.9fr 0.9fr 1fr 0.8fr 0.8fr 140px 40px";function wD({models:J,performanceSeries:G,timeRange:q}){let[X,N]=s4.useState(null),K=n7(q),H=s4.useMemo(()=>DL(G,q),[G,q]),F=z5(),W=s1[F],M=s4.useMemo(()=>{return[...J].sort((R,_)=>_.totalInputTokens+_.totalOutputTokens-(R.totalInputTokens+R.totalOutputTokens))},[J]);return D0.jsxDEV($q,{title:"Model Statistics",children:[D0.jsxDEV(Zq,{gridTemplate:oL,columns:[{label:"Model"},{label:"Requests",align:"right"},{label:"Cost",align:"right"},{label:"Tokens",align:"right"},{label:"Tokens/s",align:"right"},{label:"TTFT",align:"right"},{label:K.trendLabel,align:"center"}]},void 0,!1,void 0,this),D0.jsxDEV(Jq,{children:M.map((R,_)=>{let P=`${R.model}::${R.provider}`,E=H.get(P)?.data??[],V=K1[_%K1.length],I=X===P,j=R.errorRate*100;return D0.jsxDEV(Gq,{gridTemplate:oL,isExpanded:I,onToggle:()=>N(I?null:P),cells:[D0.jsxDEV(Qq,{model:R.model,provider:R.provider},"name",!1,void 0,this),D0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:R.totalRequests.toLocaleString()},"requests",!1,void 0,this),D0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:["$",R.totalCost.toFixed(2)]},"cost",!0,void 0,this),D0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:(R.totalInputTokens+R.totalOutputTokens).toLocaleString()},"tokens",!1,void 0,this),D0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:R.avgTokensPerSecond?.toFixed(1)??"-"},"tps",!1,void 0,this),D0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:R.avgTtft?`${(R.avgTtft/1000).toFixed(2)}s`:"-"},"ttft",!1,void 0,this)],trendCell:E.length===0?D0.jsxDEV(qq,{},void 0,!1,void 0,this):D0.jsxDEV(t3,{timestamps:E.map((h)=>h.timestamp),values:E.map((h)=>h.avgTokensPerSecond??0),color:V},void 0,!1,void 0,this),expandedContent:D0.jsxDEV("div",{className:"grid gap-4",style:{gridTemplateColumns:"200px 1fr"},children:[D0.jsxDEV("div",{className:"space-y-4 text-sm",children:[D0.jsxDEV("div",{children:[D0.jsxDEV("div",{className:"text-[var(--text-primary)] font-medium mb-2",children:"Quality"},void 0,!1,void 0,this),D0.jsxDEV("div",{className:"space-y-1 text-[var(--text-secondary)]",children:[D0.jsxDEV("div",{className:"flex items-center justify-between",children:[D0.jsxDEV("span",{children:"Error rate"},void 0,!1,void 0,this),D0.jsxDEV("span",{className:j>5?"text-[var(--accent-red)]":"text-[var(--accent-green)]",children:[j.toFixed(1),"%"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),D0.jsxDEV("div",{className:"flex items-center justify-between",children:[D0.jsxDEV("span",{children:"Cache rate"},void 0,!1,void 0,this),D0.jsxDEV("span",{className:"text-[var(--accent-cyan)]",children:[(R.cacheRate*100).toFixed(1),"%"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),D0.jsxDEV("div",{children:[D0.jsxDEV("div",{className:"text-[var(--text-primary)] font-medium mb-2",children:"Latency"},void 0,!1,void 0,this),D0.jsxDEV("div",{className:"space-y-1 text-[var(--text-secondary)]",children:[D0.jsxDEV("div",{className:"flex items-center justify-between",children:[D0.jsxDEV("span",{children:"Avg duration"},void 0,!1,void 0,this),D0.jsxDEV("span",{className:"font-mono",children:R.avgDuration?`${(R.avgDuration/1000).toFixed(2)}s`:"-"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),D0.jsxDEV("div",{className:"flex items-center justify-between",children:[D0.jsxDEV("span",{children:"Avg TTFT"},void 0,!1,void 0,this),D0.jsxDEV("span",{className:"font-mono",children:R.avgTtft?`${(R.avgTtft/1000).toFixed(2)}s`:"-"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),D0.jsxDEV("div",{className:"h-[200px]",children:E.length===0?D0.jsxDEV(Yq,{},void 0,!1,void 0,this):D0.jsxDEV(RD,{data:E,color:V,chartTheme:W,timeRange:q},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},P,!1,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function RD({data:J,color:G,chartTheme:q,timeRange:X}){let N=s4.useMemo(()=>{return{labels:J.map((H)=>nJ(H.timestamp,X)),datasets:[{label:"TTFT",data:J.map((H)=>H.avgTtftSeconds??null),...D8("#5ad8e6"),yAxisID:"y"},{label:"Tokens/s",data:J.map((H)=>H.avgTokensPerSecond??null),...D8(G),yAxisID:"y1"}]}},[J,G,X]),K=s4.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,plugins:e3(q),scales:IL(q)}},[q]);return D0.jsxDEV(k5,{data:N,options:K},void 0,!1,void 0,this)}var oJ=s(L1(),1);var iL=s(L1(),1);var N6=s(U0(),1),Wq={main:{label:"Main agent",color:"#ed4abf"},subagent:{label:"Subagents",color:"#9b4dff"},advisor:{label:"Advisor",color:"#5ad8e6"}};function tL({stats:J}){let G=iL.useMemo(()=>EL(J),[J]);if(G.totalTokens===0)return N6.jsxDEV("div",{className:"py-8 text-center stats-text-muted text-sm",children:"No token usage in this range"},void 0,!1,void 0,this);return N6.jsxDEV("div",{className:"space-y-4",children:[N6.jsxDEV("div",{className:"flex h-3 w-full overflow-hidden rounded-full",style:{background:"var(--surface-2)"},children:G.segments.map((q)=>q.share>0&&N6.jsxDEV("div",{className:"h-full",style:{width:`${q.share*100}%`,background:Wq[q.agentType].color},title:`${Wq[q.agentType].label}: ${x1(q.share)}`},q.agentType,!1,void 0,this))},void 0,!1,void 0,this),N6.jsxDEV("div",{className:"space-y-2",children:G.segments.map((q)=>N6.jsxDEV("div",{className:"flex items-center justify-between gap-3 text-sm",children:[N6.jsxDEV("div",{className:"flex items-center gap-2 min-w-0",children:[N6.jsxDEV("span",{className:"w-2.5 h-2.5 rounded-full flex-shrink-0",style:{background:Wq[q.agentType].color}},void 0,!1,void 0,this),N6.jsxDEV("span",{className:"stats-text-primary truncate",children:Wq[q.agentType].label},void 0,!1,void 0,this),N6.jsxDEV("span",{className:"stats-text-muted stats-text-xs whitespace-nowrap",children:[S0(q.requests)," req"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),N6.jsxDEV("div",{className:"flex items-center gap-3 whitespace-nowrap",children:[N6.jsxDEV("span",{className:"stats-text-secondary",children:[X1(q.tokens)," tok"]},void 0,!0,void 0,this),N6.jsxDEV("span",{className:"stats-font-semibold stats-text-primary tabular-nums",children:x1(q.share)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},q.agentType,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var K0=s(U0(),1);function eL({active:J,range:G,refreshTrigger:q,onRequestClick:X}){let{data:N,error:K,loading:H}=n1(["overview",G,q],(j)=>p_(G,j),{pollMs:30000,enabled:J}),{data:F,error:W,loading:M}=n1(["recent-requests",q],(j)=>o3(50,j),{pollMs:30000,enabled:J}),R=z5(),_=s1[R],P=oJ.useMemo(()=>{if(!N?.timeSeries)return{labels:[],datasets:[]};let j=N.timeSeries.map((p)=>K4(new Date(p.timestamp),G==="1h"||G==="24h"?"HH:mm":"MMM d")),h=N.timeSeries.length<=2?3:0;return{labels:j,datasets:[{label:"Requests",data:N.timeSeries.map((p)=>p.requests),borderColor:"#5ad8e6",backgroundColor:"rgba(90, 216, 230, 0.12)",tension:0.2,borderWidth:2,pointRadius:h,pointHoverRadius:4,fill:!0},{label:"Errors",data:N.timeSeries.map((p)=>p.errors),borderColor:"#ff6b7d",backgroundColor:"rgba(255, 107, 125, 0.12)",tension:0.2,borderWidth:2,pointRadius:h,pointHoverRadius:4,fill:!0}]}},[N?.timeSeries,G]),O=oJ.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{legend:{display:!0,position:"top",align:"end",labels:{color:_.legendLabel,boxWidth:8,usePointStyle:!0,font:{size:11}}},tooltip:{backgroundColor:_.tooltipBackground,titleColor:_.tooltipTitle,bodyColor:_.tooltipBody,borderColor:_.tooltipBorder,borderWidth:1,cornerRadius:8,padding:10}},scales:{x:{grid:{color:_.grid,drawBorder:!1},ticks:{color:_.tick,font:{size:10}}},y:{grid:{color:_.grid,drawBorder:!1},ticks:{color:_.tick,font:{size:10}},min:0}}}},[_]),E=oJ.useMemo(()=>[{key:"model",header:"Model",render:(j)=>K0.jsxDEV("div",{children:[K0.jsxDEV("div",{className:"stats-font-medium stats-text-primary",children:j.model},void 0,!1,void 0,this),K0.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:j.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"timestamp",header:"Time",render:(j)=>G6(j.timestamp)},{key:"tokens",header:"Tokens",numeric:!0,render:(j)=>S0(j.usage.totalTokens)},{key:"cost",header:"Cost",numeric:!0,render:(j)=>z1(j.usage.cost.total,4)},{key:"duration",header:"Duration",numeric:!0,render:(j)=>v5(j.duration)},{key:"status",header:"Status",className:"stats-text-center",render:(j)=>K0.jsxDEV(O5,{variant:j.errorMessage?"danger":"success",children:j.errorMessage?"Failed":"Success"},void 0,!1,void 0,this)}],[]),V=(j,h)=>K0.jsxDEV("div",{className:"stats-mobile-card",onClick:h,children:[K0.jsxDEV("div",{className:"stats-mobile-card-header",children:[K0.jsxDEV("div",{children:[K0.jsxDEV("div",{className:"stats-font-semibold stats-text-primary",children:j.model},void 0,!1,void 0,this),K0.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:j.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K0.jsxDEV(O5,{variant:j.errorMessage?"danger":"success",children:j.errorMessage?"Failed":"Success"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K0.jsxDEV("div",{className:"stats-mobile-card-grid",children:[K0.jsxDEV("div",{children:[K0.jsxDEV("div",{className:"stats-mobile-card-label",children:"Time"},void 0,!1,void 0,this),K0.jsxDEV("div",{className:"stats-mobile-card-value",children:G6(j.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K0.jsxDEV("div",{children:[K0.jsxDEV("div",{className:"stats-mobile-card-label",children:"Cost"},void 0,!1,void 0,this),K0.jsxDEV("div",{className:"stats-mobile-card-value",children:z1(j.usage.cost.total,4)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K0.jsxDEV("div",{children:[K0.jsxDEV("div",{className:"stats-mobile-card-label",children:"Tokens"},void 0,!1,void 0,this),K0.jsxDEV("div",{className:"stats-mobile-card-value",children:S0(j.usage.totalTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K0.jsxDEV("div",{children:[K0.jsxDEV("div",{className:"stats-mobile-card-label",children:"Duration"},void 0,!1,void 0,this),K0.jsxDEV("div",{className:"stats-mobile-card-value",children:v5(j.duration)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),j.errorMessage&&K0.jsxDEV("div",{className:"stats-mobile-card-error truncate mt-2",children:j.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this),I=oJ.useMemo(()=>{if(!F)return[];return F.slice(0,10)},[F]);return K0.jsxDEV("div",{className:"stats-route-container space-y-6",children:[K0.jsxDEV(f1,{loading:H,error:K,data:N,children:N&&K0.jsxDEV(yL,{stats:N.overall},void 0,!1,void 0,this)},void 0,!1,void 0,this),K0.jsxDEV(q1,{title:"Conversation Tokens by Agent",subtitle:"Uncached input + cache reads + cache writes + output, grouped by agent type",children:K0.jsxDEV(f1,{loading:H,error:K,data:N,children:N&&K0.jsxDEV(tL,{stats:N.byAgentType},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),K0.jsxDEV("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[K0.jsxDEV("div",{className:"lg:col-span-2",children:K0.jsxDEV(q1,{title:"System Throughput",subtitle:"Request volume and errors over time",children:K0.jsxDEV(f1,{loading:H,error:K,data:N,children:K0.jsxDEV("div",{className:"h-[280px]",children:N?.timeSeries&&N.timeSeries.length>0?K0.jsxDEV(k5,{data:P,options:O},void 0,!1,void 0,this):K0.jsxDEV("div",{className:"h-full flex items-center justify-center text-stats-muted text-sm",children:"No time-series data available"},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,!1,void 0,this),K0.jsxDEV("div",{children:K0.jsxDEV(q1,{title:"Operational Feed",subtitle:"Real-time request log",children:K0.jsxDEV(f1,{loading:M,error:W,data:F,fallback:K0.jsxDEV("div",{className:"space-y-4",children:Array.from({length:5}).map((j,h)=>K0.jsxDEV("div",{className:"flex items-center gap-3",children:[K0.jsxDEV(q6,{variant:"circle",width:10,height:10},void 0,!1,void 0,this),K0.jsxDEV("div",{className:"flex-1",children:[K0.jsxDEV(q6,{variant:"text",width:"60%",height:16},void 0,!1,void 0,this),K0.jsxDEV(q6,{variant:"text",width:"40%",height:12},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},h,!0,void 0,this))},void 0,!1,void 0,this),children:K0.jsxDEV("div",{className:"stats-feed-ledger overflow-y-auto max-h-[280px] pr-2",children:[I.map((j)=>{let h=!!j.errorMessage;return K0.jsxDEV("div",{className:"stats-feed-item flex items-start gap-3 p-2 rounded hover:bg-stats-surface-2 cursor-pointer transition-colors",onClick:()=>j.id&&X(j.id),children:[K0.jsxDEV("div",{className:`w-2 h-2 mt-1.5 rounded-full flex-shrink-0 ${h?"bg-stats-danger":"bg-stats-success"}`},void 0,!1,void 0,this),K0.jsxDEV("div",{className:"flex-1 min-w-0",children:[K0.jsxDEV("div",{className:"flex justify-between items-baseline gap-2",children:[K0.jsxDEV("div",{className:"stats-font-medium stats-text-primary text-sm truncate",children:j.model},void 0,!1,void 0,this),K0.jsxDEV("div",{className:"stats-text-xs stats-text-muted whitespace-nowrap",children:G6(j.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K0.jsxDEV("div",{className:"flex justify-between items-center text-xs stats-text-muted mt-0.5",children:[K0.jsxDEV("div",{children:j.provider},void 0,!1,void 0,this),K0.jsxDEV("div",{children:[j.duration?v5(j.duration):""," ",j.usage?.cost?.total?`· ${z1(j.usage.cost.total,4)}`:""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),h&&K0.jsxDEV("div",{className:"text-xs text-stats-danger truncate mt-1",children:j.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},j.id||`${j.sessionFile}-${j.entryId}`,!0,void 0,this)}),I.length===0&&K0.jsxDEV("div",{className:"py-8 text-center stats-text-muted text-sm",children:"No recent requests found"},void 0,!1,void 0,this)]},void 0,!0,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),K0.jsxDEV(q1,{title:"Recent Requests Preview",subtitle:"Latest transactions processed by the proxy",actions:K0.jsxDEV("a",{href:`#/requests?range=${G}`,className:"stats-button stats-button-secondary text-xs",children:"View All Requests"},void 0,!1,void 0,this),children:K0.jsxDEV(f1,{loading:M,error:W,data:F,children:K0.jsxDEV(X6,{columns:E,data:I,keyExtractor:(j)=>j.id||`${j.sessionFile}-${j.entryId}`,onRowClick:(j)=>j.id&&X(j.id),renderMobileCard:V,emptyText:"No recent requests found"},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 _K=s(L1(),1);var Y1=s(U0(),1);function $P({active:J,range:G,refreshTrigger:q}){let{data:X,error:N,loading:K}=n1(["projects",G,q],(M)=>a_(G,M),{pollMs:30000,enabled:J}),H=_K.useMemo(()=>{if(!X)return[];return kL(X)},[X]),F=_K.useMemo(()=>[{key:"folder",header:"Project/Folder",render:(M)=>Y1.jsxDEV("div",{className:"stats-font-medium stats-text-primary truncate max-w-[440px]",title:M.folder||"(root)",children:M.folder||"(root)"},void 0,!1,void 0,this)},{key:"totalRequests",header:"Requests",numeric:!0,render:(M)=>Y1.jsxDEV("div",{className:"stats-text-right",children:[Y1.jsxDEV("div",{className:"font-mono",children:S0(M.totalRequests)},void 0,!1,void 0,this),Y1.jsxDEV("div",{className:"stats-progress-bar-track mt-1 ml-auto w-24 h-1",children:Y1.jsxDEV("div",{className:"stats-progress-bar-fill","data-variant":"link",style:{width:`${M.requestsPercentage}%`}},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"totalCost",header:"Cost",numeric:!0,render:(M)=>Y1.jsxDEV("div",{className:"stats-text-right",children:[Y1.jsxDEV("div",{className:"font-mono",children:z1(M.totalCost)},void 0,!1,void 0,this),Y1.jsxDEV("div",{className:"stats-progress-bar-track mt-1 ml-auto w-24 h-1",children:Y1.jsxDEV("div",{className:"stats-progress-bar-fill","data-variant":"success",style:{width:`${M.costPercentage}%`}},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"totalTokens",header:"Tokens",numeric:!0,render:(M)=>Y1.jsxDEV("div",{className:"font-mono",children:S0(M.totalInputTokens+M.totalOutputTokens)},void 0,!1,void 0,this)},{key:"cacheRate",header:"Cache Rate",numeric:!0,render:(M)=>Y1.jsxDEV("span",{className:"stats-text-success font-medium",children:x1(M.cacheRate)},void 0,!1,void 0,this)},{key:"errorRate",header:"Error Rate",numeric:!0,render:(M)=>Y1.jsxDEV(O5,{variant:M.errorRate>0.1?"danger":M.errorRate>0?"warning":"success",children:x1(M.errorRate)},void 0,!1,void 0,this)},{key:"avgDuration",header:"Avg Duration",numeric:!0,render:(M)=>v5(M.avgDuration)}],[]);return Y1.jsxDEV("div",{className:"stats-route-container",children:Y1.jsxDEV(q1,{title:"Projects & Folders",subtitle:"Aggregate proxy metrics grouped by folder path",children:Y1.jsxDEV(f1,{loading:K,error:N,data:X,emptyText:"No project folders recorded for this range.",children:Y1.jsxDEV(X6,{columns:F,data:H,keyExtractor:(M)=>M.folder,renderMobileCard:(M)=>Y1.jsxDEV("div",{className:"stats-mobile-card",children:[Y1.jsxDEV("div",{className:"stats-mobile-card-header mb-2",children:[Y1.jsxDEV("div",{className:"stats-font-semibold stats-text-primary",children:M.folder||"(root)"},void 0,!1,void 0,this),Y1.jsxDEV(O5,{variant:M.errorRate>0.1?"danger":M.errorRate>0?"warning":"success",children:[x1(M.errorRate)," Err"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Y1.jsxDEV("div",{className:"stats-mobile-card-grid",children:[Y1.jsxDEV("div",{children:[Y1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Requests"},void 0,!1,void 0,this),Y1.jsxDEV("div",{className:"stats-mobile-card-value font-mono",children:S0(M.totalRequests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Y1.jsxDEV("div",{children:[Y1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Cost"},void 0,!1,void 0,this),Y1.jsxDEV("div",{className:"stats-mobile-card-value font-mono",children:z1(M.totalCost)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Y1.jsxDEV("div",{children:[Y1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Cache"},void 0,!1,void 0,this),Y1.jsxDEV("div",{className:"stats-mobile-card-value",children:x1(M.cacheRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Y1.jsxDEV("div",{children:[Y1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Duration"},void 0,!1,void 0,this),Y1.jsxDEV("div",{className:"stats-mobile-card-value",children:v5(M.avgDuration)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),emptyText:"No project folders recorded for this range."},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var b5=s(L1(),1);var m0=s(U0(),1);function ZP({active:J,range:G,refreshTrigger:q}){let{data:X,error:N,loading:K}=n1(["providers",G,q],(H)=>e_(G,H),{pollMs:30000,enabled:J});return m0.jsxDEV("div",{className:"stats-route-container space-y-6",children:m0.jsxDEV(f1,{loading:K,error:N,data:X,children:X&&m0.jsxDEV(m0.Fragment,{children:[m0.jsxDEV(_D,{providers:X.providers},void 0,!1,void 0,this),m0.jsxDEV(LD,{stats:X},void 0,!1,void 0,this),m0.jsxDEV(PD,{hourly:X.hourly,providers:X.providers},void 0,!1,void 0,this),m0.jsxDEV(TD,{insights:X.windowInsights},void 0,!1,void 0,this),m0.jsxDEV(CD,{usageSeries:X.usageSeries},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({providers:J}){let G=b5.useMemo(()=>J.reduce((X,N)=>X+N.totalTokens,0),[J]);return m0.jsxDEV(q1,{title:"Provider Totals",subtitle:"Token, request, and cost totals per provider over the active range",children:m0.jsxDEV(X6,{columns:[{key:"provider",header:"Provider",render:(X)=>m0.jsxDEV("span",{className:"font-medium",children:X.provider},void 0,!1,void 0,this)},{key:"requests",header:"Requests",numeric:!0,render:(X)=>S0(X.totalRequests)},{key:"errors",header:"Error Rate",numeric:!0,render:(X)=>x1(X.totalRequests>0?X.failedRequests/X.totalRequests:0)},{key:"models",header:"Models",numeric:!0,render:(X)=>S0(X.models)},{key:"tokens",header:"Tokens",numeric:!0,render:(X)=>m0.jsxDEV("span",{title:`Input ${X1(X.totalInputTokens)} · Output ${X1(X.totalOutputTokens)} · Cache read ${X1(X.totalCacheReadTokens)} · Cache write ${X1(X.totalCacheWriteTokens)}`,children:X1(X.totalTokens)},void 0,!1,void 0,this)},{key:"share",header:"Share",numeric:!0,render:(X)=>x1(G>0?X.totalTokens/G:0)},{key:"cost",header:"Cost",numeric:!0,render:(X)=>z1(X.totalCost)},{key:"tps",header:"Tok/s",numeric:!0,render:(X)=>Xq(X.avgTokensPerSecond)}],data:J,keyExtractor:(X)=>X.provider,emptyText:"No requests recorded in this range"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function LD({stats:J}){let[G,q]=b5.useState("tokens"),X=z5(),N=s1[X],K=b5.useMemo(()=>{let M=J.series.map((R)=>({...R,model:R.provider}));return w$(M,{topN:6,rankWeight:(R)=>G==="tokens"?R.totalTokens:R.cost,initBucket:()=>({total:0}),accumulate:(R,_)=>{R.total+=G==="tokens"?_.totalTokens:_.cost},bucketToValue:(R)=>R.total})},[J.series,G]),H=G==="tokens"?X1:(M)=>z1(M),F=b5.useMemo(()=>{let{sharedScaleBase:M,yScale:R}=l4({chartTheme:N,formatY:H});return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:c4({chartTheme:N,showLegend:!0,defaultLabel:G==="tokens"?"Tokens":"Cost",formatValue:H,footer:(_)=>{if(_.length<2)return;let P=_.reduce((O,E)=>O+(E.parsed.y??0),0);return`Total: ${H(P)}`}}),scales:{x:{...M,stacked:!0},y:{...R,stacked:!0}}}},[N,G,H]),W=b5.useMemo(()=>({labels:K.labels,datasets:h2(K,(M)=>s7(K1[M%K1.length]))}),[K]);return m0.jsxDEV(q1,{title:"Burn by Provider",subtitle:"Stacked token/cost burn per provider over time",actions:m0.jsxDEV(a7,{options:[{value:"tokens",label:"Tokens"},{value:"cost",label:"Cost"}],value:G,onChange:q},void 0,!1,void 0,this),children:m0.jsxDEV("div",{className:"h-[300px]",children:K.labels.length===0?m0.jsxDEV(R$,{message:"No provider activity in this range"},void 0,!1,void 0,this):m0.jsxDEV(g2,{data:W,options:F},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var LK="__all__";function PD({hourly:J,providers:G}){let[q,X]=b5.useState(LK),N=z5(),K=s1[N],{tokensByHour:H,peakHour:F}=b5.useMemo(()=>{let _=Array(24).fill(0);for(let O of J){if(q!==LK&&O.provider!==q)continue;_[O.hour]+=O.totalTokens}let P=0;for(let O=1;O<24;O++)if(_[O]>_[P])P=O;return{tokensByHour:_,peakHour:P}},[J,q]),W=H.some((_)=>_>0),M=b5.useMemo(()=>({labels:Array.from({length:24},(_,P)=>`${String(P).padStart(2,"0")}:00`),datasets:[{label:"Tokens",data:H,...s7(K1[2]),backgroundColor:H.map((_,P)=>P===F?K1[0]:K1[2])}]}),[H,F]),R=b5.useMemo(()=>{let{sharedScaleBase:_,yScale:P}=l4({chartTheme:K,formatY:X1});return{responsive:!0,maintainAspectRatio:!1,plugins:c4({chartTheme:K,showLegend:!1,defaultLabel:"Tokens",formatValue:X1}),scales:{x:_,y:P}}},[K]);return m0.jsxDEV(q1,{title:"Peak Burn Hours",subtitle:W?`Token burn by local hour of day — peak at ${String(F).padStart(2,"0")}:00`:"Token burn by local hour of day",actions:m0.jsxDEV("select",{className:"stats-select",value:q,onChange:(_)=>X(_.target.value),"aria-label":"Provider",children:[m0.jsxDEV("option",{value:LK,children:"All providers"},void 0,!1,void 0,this),G.map((_)=>m0.jsxDEV("option",{value:_.provider,children:_.provider},_.provider,!1,void 0,this))]},void 0,!0,void 0,this),children:m0.jsxDEV("div",{className:"h-[260px]",children:W?m0.jsxDEV(g2,{data:M,options:R},void 0,!1,void 0,this):m0.jsxDEV(R$,{message:"No activity in this range"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function TD({insights:J}){return m0.jsxDEV(q1,{title:"Subscription Windows",subtitle:"What each usage window buys you, and how many accounts peak demand needs",children:m0.jsxDEV(X6,{columns:[{key:"provider",header:"Provider",render:(q)=>m0.jsxDEV("span",{className:"font-medium",children:q.provider},void 0,!1,void 0,this)},{key:"window",header:"Window",render:(q)=>q.windowLabel},{key:"accounts",header:"Accounts",numeric:!0,render:(q)=>S0(q.accounts)},{key:"consumed",header:"Windows Burned",numeric:!0,render:(q)=>m0.jsxDEV("span",{title:"Subscription-window equivalents consumed in range (sum of used-fraction increases across accounts)",children:q.fractionConsumed.toFixed(2)},void 0,!1,void 0,this)},{key:"capacity",header:"Est. Tokens / Window",numeric:!0,render:(q)=>m0.jsxDEV("span",{title:"Provider tokens burned in range ÷ windows burned — what one full window is worth",children:q.estTokensPerWindow!==null?X1(q.estTokensPerWindow):"—"},void 0,!1,void 0,this)},{key:"peak",header:"Peak Utilization",numeric:!0,render:(q)=>m0.jsxDEV("span",{title:"Peak of summed used fraction across accounts at any sampled instant",children:x1(q.peakConcurrentFraction)},void 0,!1,void 0,this)},{key:"ideal",header:"Ideal Accounts",numeric:!0,render:(q)=>m0.jsxDEV("span",{title:"Accounts needed to keep peak demand under 90% of fleet capacity",className:q.idealAccounts>q.accounts?"stats-text-warning font-semibold":void 0,children:[S0(q.idealAccounts),q.idealAccounts>q.accounts?` (have ${q.accounts})`:""]},void 0,!0,void 0,this)},{key:"exhausted",header:"Exhaustions",numeric:!0,render:(q)=>m0.jsxDEV("span",{className:q.exhaustedEvents>0?"stats-text-warning":void 0,children:S0(q.exhaustedEvents)},void 0,!1,void 0,this)}],data:J,keyExtractor:(q)=>`${q.provider}::${q.windowKey}`,emptyText:"No usage snapshots recorded yet — they accumulate whenever usage is fetched (TUI footer, /usage, omp usage)"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var PK={ok:"#62d394",warning:"#f5c14b",exhausted:"#ff6b7d"};function CD({usageSeries:J}){let G=b5.useMemo(()=>[...new Set(J.map((R)=>R.provider))],[J]),[q,X]=b5.useState(null),N=q!==null&&G.includes(q)?q:G[0]??null,K=z5(),H=s1[K],F=b5.useMemo(()=>{return J.filter((R)=>R.provider===N).map((R)=>{let _=[...R.points].reverse().find((P)=>P.usedFraction!==null);return _?{label:`${R.windowLabel} · ${R.accountLabel}`,fraction:_.usedFraction??0,exhausted:_.exhausted,recordedAt:_.timestamp}:null}).filter((R)=>R!==null).sort((R,_)=>_.fraction-R.fraction)},[J,N]),W=b5.useMemo(()=>({labels:F.map((R)=>R.label),datasets:[{label:"Used",data:F.map((R)=>R.fraction*100),backgroundColor:F.map((R)=>R.exhausted?PK.exhausted:R.fraction>=0.8?PK.warning:PK.ok),borderWidth:0,borderRadius:4,barThickness:18}]}),[F]),M=b5.useMemo(()=>{let{sharedScaleBase:R,yScale:_}=l4({chartTheme:H,formatY:(E)=>`${Math.round(E)}%`}),P=Math.max(100,...F.map((E)=>E.fraction*100)),O=c4({chartTheme:H,showLegend:!1,defaultLabel:"Used",formatValue:(E)=>`${E.toFixed(1)}%`});return{indexAxis:"y",responsive:!0,maintainAspectRatio:!1,plugins:{...O,tooltip:{...O.tooltip,callbacks:{label:(E)=>{let V=F[E.dataIndex],I=`${(E.parsed.x??0).toFixed(1)}% used`;return V?`${I} · recorded ${G6(V.recordedAt)}`:I}}}},scales:{x:{..._,max:P},y:{...R,grid:{display:!1}}}}},[H,F]);return m0.jsxDEV(q1,{title:"Window Utilization",subtitle:"Latest recorded limit utilization per account and window — red bars are exhausted, amber above 80%",actions:G.length>1?m0.jsxDEV("select",{className:"stats-select",value:N??"",onChange:(R)=>X(R.target.value),"aria-label":"Provider",children:G.map((R)=>m0.jsxDEV("option",{value:R,children:R},R,!1,void 0,this))},void 0,!1,void 0,this):void 0,children:m0.jsxDEV("div",{style:{height:Math.max(160,F.length*34+60)},children:F.length===0?m0.jsxDEV(R$,{message:"No usage snapshots recorded yet — they accumulate whenever usage is fetched"},void 0,!1,void 0,this):m0.jsxDEV(g2,{data:W,options:M},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var JP=s(L1(),1);var M1=s(U0(),1);function QP({active:J,refreshTrigger:G,onRequestClick:q}){let{data:X,error:N,loading:K}=n1(["recent-requests-dense",G],(W)=>o3(50,W),{pollMs:30000,enabled:J}),H=JP.useMemo(()=>[{key:"model",header:"Model",render:(W)=>M1.jsxDEV("div",{children:[M1.jsxDEV("div",{className:"stats-font-medium stats-text-primary",children:W.model},void 0,!1,void 0,this),M1.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:W.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"timestamp",header:"Time",render:(W)=>G6(W.timestamp)},{key:"tokens",header:"Tokens",numeric:!0,render:(W)=>S0(W.usage.totalTokens)},{key:"cost",header:"Cost",numeric:!0,render:(W)=>z1(W.usage.cost.total,4)},{key:"duration",header:"Duration",numeric:!0,render:(W)=>v5(W.duration)},{key:"status",header:"Status",className:"stats-text-center",render:(W)=>M1.jsxDEV(O5,{variant:W.errorMessage?"danger":"success",children:W.errorMessage?"Failed":"Success"},void 0,!1,void 0,this)}],[]);return M1.jsxDEV("div",{className:"stats-route-container",children:M1.jsxDEV(q1,{title:"All Recent Requests",subtitle:"Up to 50 most recent requests processed by OMP",children:M1.jsxDEV(f1,{loading:K,error:N,data:X,children:M1.jsxDEV(X6,{columns:H,data:X||[],keyExtractor:(W)=>W.id||`${W.sessionFile}-${W.entryId}`,onRowClick:(W)=>W.id&&q(W.id),renderMobileCard:(W,M)=>M1.jsxDEV("div",{className:"stats-mobile-card",onClick:M,children:[M1.jsxDEV("div",{className:"stats-mobile-card-header",children:[M1.jsxDEV("div",{children:[M1.jsxDEV("div",{className:"stats-font-semibold stats-text-primary",children:W.model},void 0,!1,void 0,this),M1.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:W.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),M1.jsxDEV(O5,{variant:W.errorMessage?"danger":"success",children:W.errorMessage?"Failed":"Success"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),M1.jsxDEV("div",{className:"stats-mobile-card-grid",children:[M1.jsxDEV("div",{children:[M1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Time"},void 0,!1,void 0,this),M1.jsxDEV("div",{className:"stats-mobile-card-value",children:G6(W.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),M1.jsxDEV("div",{children:[M1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Cost"},void 0,!1,void 0,this),M1.jsxDEV("div",{className:"stats-mobile-card-value",children:z1(W.usage.cost.total,4)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),M1.jsxDEV("div",{children:[M1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Tokens"},void 0,!1,void 0,this),M1.jsxDEV("div",{className:"stats-mobile-card-value",children:S0(W.usage.totalTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),M1.jsxDEV("div",{children:[M1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Duration"},void 0,!1,void 0,this),M1.jsxDEV("div",{className:"stats-mobile-card-value",children:v5(W.duration)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),W.errorMessage&&M1.jsxDEV("div",{className:"stats-mobile-card-error truncate mt-2",children:W.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this),emptyText:"No recent requests found"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var a6=s(L1(),1);var e=s(U0(),1);function GP({active:J,range:G,refreshTrigger:q}){let{data:X,error:N,loading:K}=n1(["tools",G,q],(H)=>t_(G,H),{pollMs:30000,enabled:J});return e.jsxDEV("div",{className:"stats-route-container space-y-6",children:e.jsxDEV(f1,{loading:K,error:N,data:X,emptyText:"No tool calls recorded for this range.",children:X&&e.jsxDEV(e.Fragment,{children:[e.jsxDEV(OD,{byTool:X.byTool},void 0,!1,void 0,this),e.jsxDEV(AD,{series:X.series,timeRange:G},void 0,!1,void 0,this),e.jsxDEV(ED,{byTool:X.byTool},void 0,!1,void 0,this),e.jsxDEV(SD,{byToolModel:X.byToolModel},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 OD({byTool:J}){let G=a6.useMemo(()=>{let q=0,X=0,N=0,K=0,H=0,F=0,W=0;for(let M of J)q+=M.calls,X+=M.errors,N+=M.totalTokensShare,K+=M.outputTokensShare,H+=M.costShare,F+=M.resultChars,W+=M.argsChars;return{calls:q,errors:X,tokens:N,output:K,cost:H,resultChars:F,argsChars:W,tools:J.length}},[J]);return e.jsxDEV(q1,{title:"Tool Usage",subtitle:"Tokens/cost are the invoking turns' real provider usage, split across each turn's tool calls",children:e.jsxDEV("div",{className:"stats-metric-cluster",children:[e.jsxDEV("div",{className:"stats-metric-primary-grid",children:[e.jsxDEV("div",{className:"stats-metric-card primary",children:[e.jsxDEV("div",{className:"stats-metric-label",children:"Tool Calls"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-metric-value",children:S0(G.calls)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{className:"stats-metric-card primary",children:[e.jsxDEV("div",{className:"stats-metric-label",children:"Tools Used"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-metric-value",children:S0(G.tools)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{className:"stats-metric-card primary",children:[e.jsxDEV("div",{className:"stats-metric-label",children:"Error Rate"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-metric-value",children:x1(G.calls>0?G.errors/G.calls:0)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{className:"stats-metric-card primary",children:[e.jsxDEV("div",{className:"stats-metric-label",children:"Attributed Cost"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-metric-value",children:z1(G.cost)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{className:"stats-metric-secondary-grid",children:[e.jsxDEV("div",{className:"stats-metric-card secondary",children:[e.jsxDEV("div",{className:"stats-metric-label",children:"Attributed Tokens"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-metric-value",children:X1(Math.round(G.tokens))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{className:"stats-metric-card secondary",children:[e.jsxDEV("div",{className:"stats-metric-label",children:"Attributed Output"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-metric-value",children:X1(Math.round(G.output))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{className:"stats-metric-card secondary",children:[e.jsxDEV("div",{className:"stats-metric-label",children:"Result Text"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-metric-value",children:[X1(G.resultChars)," chars"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{className:"stats-metric-card secondary",children:[e.jsxDEV("div",{className:"stats-metric-label",children:"Call Arguments"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-metric-value",children:[X1(G.argsChars)," chars"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var ID=6;function VD(J){let G=new Map;for(let M of J)G.set(M.tool,(G.get(M.tool)??0)+M.calls);let q=[...G.entries()].sort((M,R)=>R[1]-M[1]),X=q.slice(0,ID).map(([M])=>M),N=new Set(X),H=q.length>X.length?[...X,"Other"]:X,F=[...new Set(J.map((M)=>M.timestamp))].sort((M,R)=>M-R),W=new Map;for(let M of F)W.set(M,{});for(let M of J){let R=N.has(M.tool)?M.tool:"Other",_=W.get(M.timestamp);if(_)_[R]=(_[R]??0)+M.calls}return{buckets:F,tools:H,data:W}}function AD({series:J,timeRange:G}){let q=z5(),X=s1[q],N=n7(G),K=a6.useMemo(()=>VD(J),[J]),H=a6.useMemo(()=>({labels:K.buckets.map((W)=>nJ(W,G)),datasets:K.tools.map((W,M)=>({label:W,data:K.buckets.map((R)=>K.data.get(R)?.[W]??0),borderColor:K1[M%K1.length],backgroundColor:`${K1[M%K1.length]}30`,fill:!0,tension:0.4,pointRadius:0,pointHoverRadius:4,borderWidth:2}))}),[K,G]),F=a6.useMemo(()=>({responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{legend:{position:"top",align:"start",labels:{color:X.legendLabel,usePointStyle:!0,padding:16,font:{size:12},boxWidth:8}},tooltip:{backgroundColor:X.tooltipBackground,titleColor:X.tooltipTitle,bodyColor:X.tooltipBody,borderColor:X.tooltipBorder,borderWidth:1,padding:12,cornerRadius:8,callbacks:{label:(W)=>`${W.dataset.label??""}: ${S0(W.parsed.y??0)} calls`}}},scales:{x:{stacked:!0,grid:{color:X.grid,drawBorder:!1},ticks:{color:X.tick,font:{size:11}}},y:{stacked:!0,grid:{color:X.grid,drawBorder:!1},ticks:{color:X.tick,font:{size:11},precision:0},min:0}}}),[X]);return e.jsxDEV(q1,{title:"Calls Over Time",subtitle:`Tool calls over ${N.windowLabel}, stacked by tool`,children:e.jsxDEV("div",{className:"h-[280px]",children:K.buckets.length===0?e.jsxDEV("div",{className:"h-full flex items-center justify-center text-stats-muted text-sm",children:"No data available"},void 0,!1,void 0,this):e.jsxDEV(k5,{data:H,options:F},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function TK(J){return J>0.1?"danger":J>0?"warning":"success"}function ED({byTool:J}){let G=a6.useMemo(()=>vL(J),[J]),q=a6.useMemo(()=>[{key:"tool",header:"Tool",render:(N)=>e.jsxDEV("div",{className:"stats-font-medium stats-text-primary font-mono truncate max-w-[280px]",title:N.tool,children:N.tool},void 0,!1,void 0,this)},{key:"calls",header:"Calls",numeric:!0,render:(N)=>e.jsxDEV("div",{className:"stats-text-right",children:[e.jsxDEV("div",{className:"font-mono",children:S0(N.calls)},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-progress-bar-track mt-1 ml-auto w-24 h-1",children:e.jsxDEV("div",{className:"stats-progress-bar-fill","data-variant":"link",style:{width:`${N.callsPercentage}%`}},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"errorRate",header:"Error Rate",numeric:!0,render:(N)=>e.jsxDEV(O5,{variant:TK(N.errorRate),children:x1(N.errorRate)},void 0,!1,void 0,this)},{key:"tokens",header:"Attr. Tokens",numeric:!0,render:(N)=>e.jsxDEV("span",{className:"font-mono",title:"Invoking turns' total tokens, split across each turn's calls",children:X1(Math.round(N.totalTokensShare))},void 0,!1,void 0,this)},{key:"cost",header:"Attr. Cost",numeric:!0,render:(N)=>e.jsxDEV("span",{className:"font-mono",children:z1(N.costShare)},void 0,!1,void 0,this)},{key:"resultChars",header:"Result Text",numeric:!0,render:(N)=>e.jsxDEV("span",{className:"font-mono",title:"Characters of tool-result text fed back into context",children:X1(N.resultChars)},void 0,!1,void 0,this)},{key:"lastUsed",header:"Last Used",numeric:!0,render:(N)=>e.jsxDEV("span",{className:"stats-text-secondary",children:G6(N.lastUsed)},void 0,!1,void 0,this)}],[]);return e.jsxDEV(q1,{title:"By Tool",subtitle:"Usage per tool, most called first",children:e.jsxDEV(X6,{columns:q,data:G,keyExtractor:(N)=>N.tool,renderMobileCard:(N)=>e.jsxDEV("div",{className:"stats-mobile-card",children:[e.jsxDEV("div",{className:"stats-mobile-card-header mb-2",children:[e.jsxDEV("div",{className:"stats-font-semibold stats-text-primary font-mono",children:N.tool},void 0,!1,void 0,this),e.jsxDEV(O5,{variant:TK(N.errorRate),children:[x1(N.errorRate)," Err"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{className:"stats-mobile-card-grid",children:[e.jsxDEV("div",{children:[e.jsxDEV("div",{className:"stats-mobile-card-label",children:"Calls"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-mobile-card-value font-mono",children:S0(N.calls)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{children:[e.jsxDEV("div",{className:"stats-mobile-card-label",children:"Attr. Tokens"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-mobile-card-value font-mono",children:X1(Math.round(N.totalTokensShare))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{children:[e.jsxDEV("div",{className:"stats-mobile-card-label",children:"Attr. Cost"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-mobile-card-value font-mono",children:z1(N.costShare)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{children:[e.jsxDEV("div",{className:"stats-mobile-card-label",children:"Result Text"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-mobile-card-value font-mono",children:X1(N.resultChars)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),emptyText:"No tool calls recorded for this range."},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function SD({byToolModel:J}){let[G,q]=a6.useState(null),X=a6.useMemo(()=>[...new Set(J.map((H)=>H.tool))].sort(),[J]),N=a6.useMemo(()=>{return(G?J.filter((F)=>F.tool===G):J).map((F)=>({...F,errorRate:F.calls>0?F.errors/F.calls:0}))},[J,G]),K=a6.useMemo(()=>[{key:"tool",header:"Tool",render:(H)=>e.jsxDEV("span",{className:"stats-font-medium stats-text-primary font-mono",children:H.tool},void 0,!1,void 0,this)},{key:"model",header:"Model",render:(H)=>e.jsxDEV("div",{children:[e.jsxDEV("div",{className:"stats-text-primary",children:H.model||"(unknown)"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-text-secondary text-xs",children:H.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"calls",header:"Calls",numeric:!0,render:(H)=>e.jsxDEV("span",{className:"font-mono",children:S0(H.calls)},void 0,!1,void 0,this)},{key:"errorRate",header:"Error Rate",numeric:!0,render:(H)=>e.jsxDEV(O5,{variant:TK(H.errorRate),children:x1(H.errorRate)},void 0,!1,void 0,this)},{key:"tokens",header:"Attr. Tokens",numeric:!0,render:(H)=>e.jsxDEV("span",{className:"font-mono",children:X1(Math.round(H.totalTokensShare))},void 0,!1,void 0,this)},{key:"cost",header:"Attr. Cost",numeric:!0,render:(H)=>e.jsxDEV("span",{className:"font-mono",children:z1(H.costShare)},void 0,!1,void 0,this)}],[]);return e.jsxDEV(q1,{title:"By Model",subtitle:"Which models call which tools",children:[e.jsxDEV("div",{className:"mb-4",style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[e.jsxDEV("span",{className:"stats-text-secondary",style:{fontSize:"0.875rem",whiteSpace:"nowrap"},children:"Tool"},void 0,!1,void 0,this),e.jsxDEV("select",{className:"stats-select",value:G??"",onChange:(H)=>q(H.target.value||null),style:{maxWidth:"320px",flex:1},children:[e.jsxDEV("option",{value:"",children:"All tools"},void 0,!1,void 0,this),X.map((H)=>e.jsxDEV("option",{value:H,children:H},H,!1,void 0,this))]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV(X6,{columns:K,data:N,keyExtractor:(H)=>`${H.tool}::${H.model}::${H.provider}`,emptyText:"No tool calls recorded for this range."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var I5=s(U0(),1);function CK(){let{section:J,setSection:G,range:q,setRange:X}=HL(),[N,K]=j8.useState(0),[H,F]=j8.useState(null),[W,M]=j8.useState(()=>Date.now()),R=j8.useCallback((V)=>{if(V.success)K((I)=>I+1),M(Date.now())},[]),_=j8.useCallback(()=>F(null),[]),P=J,O=j8.useRef(new Set);O.current.add(P);let E=(V)=>{let I=V===P;switch(V){case"overview":return I5.jsxDEV(eL,{active:I,range:q,refreshTrigger:N,onRequestClick:F},void 0,!1,void 0,this);case"requests":return I5.jsxDEV(QP,{active:I,range:q,refreshTrigger:N,onRequestClick:F},void 0,!1,void 0,this);case"errors":return I5.jsxDEV(sL,{active:I,range:q,refreshTrigger:N,onRequestClick:F},void 0,!1,void 0,this);case"models":return I5.jsxDEV(aL,{active:I,range:q,refreshTrigger:N},void 0,!1,void 0,this);case"providers":return I5.jsxDEV(ZP,{active:I,range:q,refreshTrigger:N},void 0,!1,void 0,this);case"tools":return I5.jsxDEV(GP,{active:I,range:q,refreshTrigger:N},void 0,!1,void 0,this);case"costs":return I5.jsxDEV(lL,{active:I,range:q,refreshTrigger:N},void 0,!1,void 0,this);case"behavior":return I5.jsxDEV(cL,{active:I,range:q,refreshTrigger:N},void 0,!1,void 0,this);case"projects":return I5.jsxDEV($P,{active:I,range:q,refreshTrigger:N},void 0,!1,void 0,this);case"gain":return I5.jsxDEV(nL,{active:I,range:q,refreshTrigger:N},void 0,!1,void 0,this)}};return I5.jsxDEV(I5.Fragment,{children:[I5.jsxDEV(KL,{activeSection:P,onSectionChange:G,range:q,onRangeChange:X,updatedAt:W,onSyncComplete:R,children:[...O.current].map((V)=>I5.jsxDEV("div",{hidden:V!==P,children:E(V)},V,!1,void 0,this))},void 0,!1,void 0,this),I5.jsxDEV(hL,{id:H,onClose:_},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var YP=s(U0(),1),DD=qP.createRoot(document.getElementById("root"));DD.render(YP.jsxDEV(CK,{},void 0,!1,void 0,this));
|