@oh-my-pi/omp-stats 16.1.22 → 16.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- var zI=Object.create;var{getPrototypeOf:TI,defineProperty:FR,getOwnPropertyNames:LI}=Object;var PI=Object.prototype.hasOwnProperty;function _I(Q){return this[Q]}var CI,VI,t=(Q,G,X)=>{var q=Q!=null&&typeof Q==="object";if(q){var N=G?CI??=new WeakMap:VI??=new WeakMap,K=N.get(Q);if(K)return K}X=Q!=null?zI(TI(Q)):{};let H=G||!Q||!Q.__esModule?FR(X,"default",{value:Q,enumerable:!0}):X;for(let M of LI(Q))if(!PI.call(H,M))FR(H,M,{get:_I.bind(Q,M),enumerable:!0});if(q)N.set(Q,H);return H};var T2=(Q,G)=>()=>(G||Q((G={exports:{}}).exports,G),G.exports);var fT=T2((bj)=>{(function(){function Q(){if(s=!1,a){var l=bj.unstable_now();K0=l;var X0=!0;try{$:{h=!1,p&&(p=!1,Q0(q0),q0=-1),D=!0;var B0=I;try{Z:{K(l);for(O=X(P);O!==null&&!(O.expirationTime>l&&M());){var l0=O.callback;if(typeof l0==="function"){O.callback=null,I=O.priorityLevel;var h0=l0(O.expirationTime<=l);if(l=bj.unstable_now(),typeof h0==="function"){O.callback=h0,K(l),X0=!0;break Z}O===X(P)&&q(P),K(l)}else q(P);O=X(P)}if(O!==null)X0=!0;else{var v=X(V);v!==null&&F(H,v.startTime-l),X0=!1}}break $}finally{O=null,I=B0,D=!1}X0=void 0}}finally{X0?L0():a=!1}}}function G(l,X0){var B0=l.length;l.push(X0);$:for(;0<B0;){var l0=B0-1>>>1,h0=l[l0];if(0<N(h0,X0))l[l0]=X0,l[B0]=h0,B0=l0;else break $}}function X(l){return l.length===0?null:l[0]}function q(l){if(l.length===0)return null;var X0=l[0],B0=l.pop();if(B0!==X0){l[0]=B0;$:for(var l0=0,h0=l.length,v=h0>>>1;l0<v;){var n=2*(l0+1)-1,H0=l[n],M0=n+1,u0=l[M0];if(0>N(H0,B0))M0<h0&&0>N(u0,H0)?(l[l0]=u0,l[M0]=B0,l0=M0):(l[l0]=H0,l[n]=B0,l0=n);else if(M0<h0&&0>N(u0,B0))l[l0]=u0,l[M0]=B0,l0=M0;else break $}}return X0}function N(l,X0){var B0=l.sortIndex-X0.sortIndex;return B0!==0?B0:l.id-X0.id}function K(l){for(var X0=X(V);X0!==null;){if(X0.callback===null)q(V);else if(X0.startTime<=l)q(V),X0.sortIndex=X0.expirationTime,G(P,X0);else break;X0=X(V)}}function H(l){if(p=!1,K(l),!h)if(X(P)!==null)h=!0,a||(a=!0,L0());else{var X0=X(V);X0!==null&&F(H,X0.startTime-l)}}function M(){return s?!0:bj.unstable_now()-K0<d?!1:!0}function F(l,X0){q0=o(function(){l(bj.unstable_now())},X0)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),bj.unstable_now=void 0,typeof performance==="object"&&typeof performance.now==="function"){var w=performance;bj.unstable_now=function(){return w.now()}}else{var z=Date,T=z.now();bj.unstable_now=function(){return z.now()-T}}var P=[],V=[],A=1,O=null,I=3,D=!1,h=!1,p=!1,s=!1,o=typeof setTimeout==="function"?setTimeout:null,Q0=typeof clearTimeout==="function"?clearTimeout:null,i=typeof setImmediate<"u"?setImmediate:null,a=!1,q0=-1,d=5,K0=-1;if(typeof i==="function")var L0=function(){i(Q)};else if(typeof MessageChannel<"u"){var _0=new MessageChannel,S0=_0.port2;_0.port1.onmessage=Q,L0=function(){S0.postMessage(null)}}else L0=function(){o(Q,0)};bj.unstable_IdlePriority=5,bj.unstable_ImmediatePriority=1,bj.unstable_LowPriority=4,bj.unstable_NormalPriority=3,bj.unstable_Profiling=null,bj.unstable_UserBlockingPriority=2,bj.unstable_cancelCallback=function(l){l.callback=null},bj.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},bj.unstable_getCurrentPriorityLevel=function(){return I},bj.unstable_next=function(l){switch(I){case 1:case 2:case 3:var X0=3;break;default:X0=I}var B0=I;I=X0;try{return l()}finally{I=B0}},bj.unstable_requestPaint=function(){s=!0},bj.unstable_runWithPriority=function(l,X0){switch(l){case 1:case 2:case 3:case 4:case 5:break;default:l=3}var B0=I;I=l;try{return X0()}finally{I=B0}},bj.unstable_scheduleCallback=function(l,X0,B0){var l0=bj.unstable_now();switch(typeof B0==="object"&&B0!==null?(B0=B0.delay,B0=typeof B0==="number"&&0<B0?l0+B0:l0):B0=l0,l){case 1:var h0=-1;break;case 2:h0=250;break;case 5:h0=1073741823;break;case 4:h0=1e4;break;default:h0=5000}return h0=B0+h0,l={id:A++,callback:X0,priorityLevel:l,startTime:B0,expirationTime:h0,sortIndex:-1},B0>l0?(l.sortIndex=B0,G(V,l),X(P)===null&&l===X(V)&&(p?(Q0(q0),q0=-1):p=!0,F(H,B0-l0))):(l.sortIndex=h0,G(P,l),h||D||(h=!0,a||(a=!0,L0()))),l},bj.unstable_shouldYield=M,bj.unstable_wrapCallback=function(l){var X0=I;return function(){var B0=I;I=X0;try{return l.apply(this,arguments)}finally{I=B0}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var O1=T2((kj,p3)=>{(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 G(C){if(C===null||typeof C!=="object")return null;return C=nQ&&C[nQ]||C["@@iterator"],typeof C==="function"?C:null}function X(C,y){C=(C=C.constructor)&&(C.displayName||C.name)||"ReactClass";var r=C+"."+y;G0[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),G0[r]=!0)}function q(C,y,r){this.props=C,this.context=y,this.refs=j8,this.updater=r||r9}function N(){}function K(C,y,r){this.props=C,this.context=y,this.refs=j8,this.updater=r||r9}function H(){}function M(C){return""+C}function F(C){try{M(C);var y=!1}catch(Y0){y=!0}if(y){y=console;var r=y.error,$0=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.",$0),M(C)}}function w(C){if(C==null)return null;if(typeof C==="function")return C.$$typeof===z$?null:C.displayName||C.name||null;if(typeof C==="string")return C;switch(C){case h0:return"Fragment";case n:return"Profiler";case v:return"StrictMode";case k1:return"Suspense";case D0:return"SuspenseList";case p6: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 l0:return"Portal";case M0:return C.displayName||"Context";case H0:return(C._context.displayName||"Context")+".Consumer";case u0:var y=C.render;return C=C.displayName,C||(C=y.displayName||y.name||"",C=C!==""?"ForwardRef("+C+")":"ForwardRef"),C;case m1:return y=C.displayName||null,y!==null?y:w(C.type)||"Memo";case z5:y=C._payload,C=C._init;try{return w(C(y))}catch(r){}}return null}function z(C){if(C===h0)return"<>";if(typeof C==="object"&&C!==null&&C.$$typeof===z5)return"<...>";try{var y=w(C);return y?"<"+y+">":"<...>"}catch(r){return"<...>"}}function T(){var C=b0.A;return C===null?null:C.getOwner()}function P(){return Error("react-stack-top-frame")}function V(C){if(s9.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(){oQ||(oQ=!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 O(){var C=w(this.type);return g2[C]||(g2[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,$0,Y0,E0){var A0=r.ref;return C={$$typeof:B0,type:C,key:y,props:r,_owner:$0},(A0!==void 0?A0:null)!==null?Object.defineProperty(C,"ref",{enumerable:!1,get:O}):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:Y0}),Object.defineProperty(C,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:E0}),Object.freeze&&(Object.freeze(C.props),Object.freeze(C)),C}function D(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===z5&&(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===B0}function s(C){var y={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(r){return y[r]})}function o(C,y){return typeof C==="object"&&C!==null&&C.key!=null?(F(C.key),s(""+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 i(C,y,r,$0,Y0){var E0=typeof C;if(E0==="undefined"||E0==="boolean")C=null;var A0=!1;if(C===null)A0=!0;else switch(E0){case"bigint":case"string":case"number":A0=!0;break;case"object":switch(C.$$typeof){case B0:case l0:A0=!0;break;case z5:return A0=C._init,i(A0(C._payload),y,r,$0,Y0)}}if(A0){A0=C,Y0=Y0(A0);var i0=$0===""?"."+o(A0,0):$0;return K1(Y0)?(r="",i0!=null&&(r=i0.replace(o9,"$&/")+"/"),i(Y0,y,r,"",function(T5){return T5})):Y0!=null&&(p(Y0)&&(Y0.key!=null&&(A0&&A0.key===Y0.key||F(Y0.key)),r=D(Y0,r+(Y0.key==null||A0&&A0.key===Y0.key?"":(""+Y0.key).replace(o9,"$&/")+"/")+i0),$0!==""&&A0!=null&&p(A0)&&A0.key==null&&A0._store&&!A0._store.validated&&(r._store.validated=2),Y0=r),y.push(Y0)),1}if(A0=0,i0=$0===""?".":$0+":",K1(C))for(var z0=0;z0<C.length;z0++)$0=C[z0],E0=i0+o($0,z0),A0+=i($0,y,r,E0,Y0);else if(z0=G(C),typeof z0==="function")for(z0===C.entries&&(n9||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),n9=!0),C=z0.call(C),z0=0;!($0=C.next()).done;)$0=$0.value,E0=i0+o($0,z0++),A0+=i($0,y,r,E0,Y0);else if(E0==="object"){if(typeof C.then==="function")return i(Q0(C),y,r,$0,Y0);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 A0}function a(C,y,r){if(C==null)return C;var $0=[],Y0=0;return i(C,$0,"","",function(E0){return y.call(r,E0,Y0++)}),$0}function q0(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(Y0){if(C._status===0||C._status===-1){C._status=1,C._result=Y0;var E0=C._ioInfo;E0!=null&&(E0.end=performance.now()),r.status===void 0&&(r.status="fulfilled",r.value=Y0)}},function(Y0){if(C._status===0||C._status===-1){C._status=2,C._result=Y0;var E0=C._ioInfo;E0!=null&&(E0.end=performance.now()),r.status===void 0&&(r.status="rejected",r.reason=Y0)}}),y=C._ioInfo,y!=null){y.value=r;var $0=r.displayName;typeof $0==="string"&&(y.name=$0)}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 IV=Object.create;var{getPrototypeOf:VV,defineProperty:zR,getOwnPropertyNames:OV}=Object;var EV=Object.prototype.hasOwnProperty;function AV(Q){return this[Q]}var SV,jV,i=(Q,J,X)=>{var q=Q!=null&&typeof Q==="object";if(q){var N=J?SV??=new WeakMap:jV??=new WeakMap,K=N.get(Q);if(K)return K}X=Q!=null?IV(VV(Q)):{};let H=J||!Q||!Q.__esModule?zR(X,"default",{value:Q,enumerable:!0}):X;for(let M of OV(Q))if(!EV.call(H,M))zR(H,M,{get:AV.bind(Q,M),enumerable:!0});if(q)N.set(Q,H);return H};var P2=(Q,J)=>()=>(J||Q((J={exports:{}}).exports,J),J.exports);var uT=P2((uS)=>{(function(){function Q(){if(s=!1,a){var l=uS.unstable_now();K0=l;var X0=!0;try{$:{h=!1,p&&(p=!1,Q0(q0),q0=-1),D=!0;var B0=V;try{Z:{K(l);for(O=X(P);O!==null&&!(O.expirationTime>l&&M());){var r0=O.callback;if(typeof r0==="function"){O.callback=null,V=O.priorityLevel;var u0=r0(O.expirationTime<=l);if(l=uS.unstable_now(),typeof u0==="function"){O.callback=u0,K(l),X0=!0;break Z}O===X(P)&&q(P),K(l)}else q(P);O=X(P)}if(O!==null)X0=!0;else{var v=X(I);v!==null&&F(H,v.startTime-l),X0=!1}}break $}finally{O=null,V=B0,D=!1}X0=void 0}}finally{X0?L0():a=!1}}}function J(l,X0){var B0=l.length;l.push(X0);$:for(;0<B0;){var r0=B0-1>>>1,u0=l[r0];if(0<N(u0,X0))l[r0]=X0,l[B0]=u0,B0=r0;else break $}}function X(l){return l.length===0?null:l[0]}function q(l){if(l.length===0)return null;var X0=l[0],B0=l.pop();if(B0!==X0){l[0]=B0;$:for(var r0=0,u0=l.length,v=u0>>>1;r0<v;){var n=2*(r0+1)-1,H0=l[n],F0=n+1,x0=l[F0];if(0>N(H0,B0))F0<u0&&0>N(x0,H0)?(l[r0]=x0,l[F0]=B0,r0=F0):(l[r0]=H0,l[n]=B0,r0=n);else if(F0<u0&&0>N(x0,B0))l[r0]=x0,l[F0]=B0,r0=F0;else break $}}return X0}function N(l,X0){var B0=l.sortIndex-X0.sortIndex;return B0!==0?B0:l.id-X0.id}function K(l){for(var X0=X(I);X0!==null;){if(X0.callback===null)q(I);else if(X0.startTime<=l)q(I),X0.sortIndex=X0.expirationTime,J(P,X0);else break;X0=X(I)}}function H(l){if(p=!1,K(l),!h)if(X(P)!==null)h=!0,a||(a=!0,L0());else{var X0=X(I);X0!==null&&F(H,X0.startTime-l)}}function M(){return s?!0:uS.unstable_now()-K0<d?!1:!0}function F(l,X0){q0=o(function(){l(uS.unstable_now())},X0)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),uS.unstable_now=void 0,typeof performance==="object"&&typeof performance.now==="function"){var w=performance;uS.unstable_now=function(){return w.now()}}else{var z=Date,T=z.now();uS.unstable_now=function(){return z.now()-T}}var P=[],I=[],A=1,O=null,V=3,D=!1,h=!1,p=!1,s=!1,o=typeof setTimeout==="function"?setTimeout:null,Q0=typeof clearTimeout==="function"?clearTimeout:null,t=typeof setImmediate<"u"?setImmediate:null,a=!1,q0=-1,d=5,K0=-1;if(typeof t==="function")var L0=function(){t(Q)};else if(typeof MessageChannel<"u"){var _0=new MessageChannel,D0=_0.port2;_0.port1.onmessage=Q,L0=function(){D0.postMessage(null)}}else L0=function(){o(Q,0)};uS.unstable_IdlePriority=5,uS.unstable_ImmediatePriority=1,uS.unstable_LowPriority=4,uS.unstable_NormalPriority=3,uS.unstable_Profiling=null,uS.unstable_UserBlockingPriority=2,uS.unstable_cancelCallback=function(l){l.callback=null},uS.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},uS.unstable_getCurrentPriorityLevel=function(){return V},uS.unstable_next=function(l){switch(V){case 1:case 2:case 3:var X0=3;break;default:X0=V}var B0=V;V=X0;try{return l()}finally{V=B0}},uS.unstable_requestPaint=function(){s=!0},uS.unstable_runWithPriority=function(l,X0){switch(l){case 1:case 2:case 3:case 4:case 5:break;default:l=3}var B0=V;V=l;try{return X0()}finally{V=B0}},uS.unstable_scheduleCallback=function(l,X0,B0){var r0=uS.unstable_now();switch(typeof B0==="object"&&B0!==null?(B0=B0.delay,B0=typeof B0==="number"&&0<B0?r0+B0:r0):B0=r0,l){case 1:var u0=-1;break;case 2:u0=250;break;case 5:u0=1073741823;break;case 4:u0=1e4;break;default:u0=5000}return u0=B0+u0,l={id:A++,callback:X0,priorityLevel:l,startTime:B0,expirationTime:u0,sortIndex:-1},B0>r0?(l.sortIndex=B0,J(I,l),X(P)===null&&l===X(I)&&(p?(Q0(q0),q0=-1):p=!0,F(H,B0-r0))):(l.sortIndex=u0,J(P,l),h||D||(h=!0,a||(a=!0,L0()))),l},uS.unstable_shouldYield=M,uS.unstable_wrapCallback=function(l){var X0=V;return function(){var B0=V;V=X0;try{return l.apply(this,arguments)}finally{V=B0}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var I1=P2((xS,n3)=>{(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=eQ&&C[eQ]||C["@@iterator"],typeof C==="function"?C:null}function X(C,y){C=(C=C.constructor)&&(C.displayName||C.name)||"ReactClass";var r=C+"."+y;G0[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),G0[r]=!0)}function q(C,y,r){this.props=C,this.context=y,this.refs=D8,this.updater=r||n9}function N(){}function K(C,y,r){this.props=C,this.context=y,this.refs=D8,this.updater=r||n9}function H(){}function M(C){return""+C}function F(C){try{M(C);var y=!1}catch(Y0){y=!0}if(y){y=console;var r=y.error,$0=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.",$0),M(C)}}function w(C){if(C==null)return null;if(typeof C==="function")return C.$$typeof===C$?null:C.displayName||C.name||null;if(typeof C==="string")return C;switch(C){case u0:return"Fragment";case n:return"Profiler";case v:return"StrictMode";case y1:return"Suspense";case v0:return"SuspenseList";case r6: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 r0:return"Portal";case F0:return C.displayName||"Context";case H0:return(C._context.displayName||"Context")+".Consumer";case x0:var y=C.render;return C=C.displayName,C||(C=y.displayName||y.name||"",C=C!==""?"ForwardRef("+C+")":"ForwardRef"),C;case p1:return y=C.displayName||null,y!==null?y:w(C.type)||"Memo";case L5:y=C._payload,C=C._init;try{return w(C(y))}catch(r){}}return null}function z(C){if(C===u0)return"<>";if(typeof C==="object"&&C!==null&&C.$$typeof===L5)return"<...>";try{var y=w(C);return y?"<"+y+">":"<...>"}catch(r){return"<...>"}}function T(){var C=k0.A;return C===null?null:C.getOwner()}function P(){return Error("react-stack-top-frame")}function I(C){if(o9.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(){$J||($J=!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 O(){var C=w(this.type);return u2[C]||(u2[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 V(C,y,r,$0,Y0,S0){var j0=r.ref;return C={$$typeof:B0,type:C,key:y,props:r,_owner:$0},(j0!==void 0?j0:null)!==null?Object.defineProperty(C,"ref",{enumerable:!1,get:O}):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:Y0}),Object.defineProperty(C,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:S0}),Object.freeze&&(Object.freeze(C.props),Object.freeze(C)),C}function D(C,y){return y=V(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===L5&&(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===B0}function s(C){var y={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(r){return y[r]})}function o(C,y){return typeof C==="object"&&C!==null&&C.key!=null?(F(C.key),s(""+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,$0,Y0){var S0=typeof C;if(S0==="undefined"||S0==="boolean")C=null;var j0=!1;if(C===null)j0=!0;else switch(S0){case"bigint":case"string":case"number":j0=!0;break;case"object":switch(C.$$typeof){case B0:case r0:j0=!0;break;case L5:return j0=C._init,t(j0(C._payload),y,r,$0,Y0)}}if(j0){j0=C,Y0=Y0(j0);var e0=$0===""?"."+o(j0,0):$0;return B1(Y0)?(r="",e0!=null&&(r=e0.replace(i9,"$&/")+"/"),t(Y0,y,r,"",function(P5){return P5})):Y0!=null&&(p(Y0)&&(Y0.key!=null&&(j0&&j0.key===Y0.key||F(Y0.key)),r=D(Y0,r+(Y0.key==null||j0&&j0.key===Y0.key?"":(""+Y0.key).replace(i9,"$&/")+"/")+e0),$0!==""&&j0!=null&&p(j0)&&j0.key==null&&j0._store&&!j0._store.validated&&(r._store.validated=2),Y0=r),y.push(Y0)),1}if(j0=0,e0=$0===""?".":$0+":",B1(C))for(var z0=0;z0<C.length;z0++)$0=C[z0],S0=e0+o($0,z0),j0+=t($0,y,r,S0,Y0);else if(z0=J(C),typeof z0==="function")for(z0===C.entries&&(a9||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),a9=!0),C=z0.call(C),z0=0;!($0=C.next()).done;)$0=$0.value,S0=e0+o($0,z0++),j0+=t($0,y,r,S0,Y0);else if(S0==="object"){if(typeof C.then==="function")return t(Q0(C),y,r,$0,Y0);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 j0}function a(C,y,r){if(C==null)return C;var $0=[],Y0=0;return t(C,$0,"","",function(S0){return y.call(r,S0,Y0++)}),$0}function q0(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(Y0){if(C._status===0||C._status===-1){C._status=1,C._result=Y0;var S0=C._ioInfo;S0!=null&&(S0.end=performance.now()),r.status===void 0&&(r.status="fulfilled",r.value=Y0)}},function(Y0){if(C._status===0||C._status===-1){C._status=2,C._result=Y0;var S0=C._ioInfo;S0!=null&&(S0.end=performance.now()),r.status===void 0&&(r.status="rejected",r.reason=Y0)}}),y=C._ioInfo,y!=null){y.value=r;var $0=r.displayName;typeof $0==="string"&&(y.name=$0)}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'))
@@ -6,71 +6,71 @@ Your code should look like:
6
6
  Did you accidentally put curly braces around the import?`,y),"default"in y||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
7
7
 
8
8
  Your code should look like:
9
- const MyComponent = lazy(() => import('./MyComponent'))`,y),y.default;throw C._result}function d(){var C=b0.H;return C===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:
9
+ const MyComponent = lazy(() => import('./MyComponent'))`,y),y.default;throw C._result}function d(){var C=k0.H;return C===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
10
10
  1. You might have mismatching versions of React and the renderer (such as React DOM)
11
11
  2. You might be breaking the Rules of Hooks
12
12
  3. You might have more than one copy of React in the same app
13
- See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),C}function K0(){b0.asyncTransitions--}function L0(C){if(u2===null)try{var y=("require"+Math.random()).slice(0,7);u2=(p3&&p3[y]).call(p3,"timers").setImmediate}catch(r){u2=function($0){aQ===!1&&(aQ=!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 Y0=new MessageChannel;Y0.port1.onmessage=$0,Y0.port2.postMessage(void 0)}}return u2(C)}function _0(C){return 1<C.length&&typeof AggregateError==="function"?AggregateError(C):C[0]}function S0(C,y){y!==x2-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. "),x2=y}function l(C,y,r){var $0=b0.actQueue;if($0!==null)if($0.length!==0)try{X0($0),L0(function(){return l(C,y,r)});return}catch(Y0){b0.thrownErrors.push(Y0)}else b0.actQueue=null;0<b0.thrownErrors.length?($0=_0(b0.thrownErrors),b0.thrownErrors.length=0,r($0)):y(C)}function X0(C){if(!d2){d2=!0;var y=0;try{for(;y<C.length;y++){var r=C[y];do{b0.didUsePromise=!1;var $0=r(!1);if($0!==null){if(b0.didUsePromise){C[y]=r,C.splice(0,y);return}r=$0}else break}while(1)}C.length=0}catch(Y0){C.splice(0,y+1),b0.thrownErrors.push(Y0)}finally{d2=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var B0=Symbol.for("react.transitional.element"),l0=Symbol.for("react.portal"),h0=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),H0=Symbol.for("react.consumer"),M0=Symbol.for("react.context"),u0=Symbol.for("react.forward_ref"),k1=Symbol.for("react.suspense"),D0=Symbol.for("react.suspense_list"),m1=Symbol.for("react.memo"),z5=Symbol.for("react.lazy"),p6=Symbol.for("react.activity"),nQ=Symbol.iterator,G0={},r9={isMounted:function(){return!1},enqueueForceUpdate:function(C){X(C,"forceUpdate")},enqueueReplaceState:function(C){X(C,"replaceState")},enqueueSetState:function(C){X(C,"setState")}},y2=Object.assign,j8={};Object.freeze(j8),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 J5={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(D8 in J5)J5.hasOwnProperty(D8)&&Q(D8,J5[D8]);N.prototype=q.prototype,J5=K.prototype=new N,J5.constructor=K,y2(J5,q.prototype),J5.isPureReactComponent=!0;var K1=Array.isArray,z$=Symbol.for("react.client.reference"),b0={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},s9=Object.prototype.hasOwnProperty,W1=console.createTask?console.createTask:function(){return null};J5={react_stack_bottom_frame:function(C){return C()}};var oQ,G4,g2={},h2=J5.react_stack_bottom_frame.bind(J5,P)(),LX=W1(z(P)),n9=!1,o9=/\/+/g,S8=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)},aQ=!1,u2=null,x2=0,m2=!1,d2=!1,T$=typeof queueMicrotask==="function"?function(C){queueMicrotask(function(){return queueMicrotask(C)})}:L0;J5=Object.freeze({__proto__:null,c:function(C){return d().useMemoCache(C)}});var D8={map:a,forEach:function(C,y,r){a(C,function(){y.apply(this,arguments)},r)},count:function(C){var y=0;return a(C,function(){y++}),y},toArray:function(C){return a(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}};kj.Activity=p6,kj.Children=D8,kj.Component=q,kj.Fragment=h0,kj.Profiler=n,kj.PureComponent=K,kj.StrictMode=v,kj.Suspense=k1,kj.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=b0,kj.__COMPILER_RUNTIME=J5,kj.act=function(C){var y=b0.actQueue,r=x2;x2++;var $0=b0.actQueue=y!==null?y:[],Y0=!1;try{var E0=C()}catch(z0){b0.thrownErrors.push(z0)}if(0<b0.thrownErrors.length)throw S0(y,r),C=_0(b0.thrownErrors),b0.thrownErrors.length=0,C;if(E0!==null&&typeof E0==="object"&&typeof E0.then==="function"){var A0=E0;return T$(function(){Y0||m2||(m2=!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(z0,T5){Y0=!0,A0.then(function($6){if(S0(y,r),r===0){try{X0($0),L0(function(){return l($6,z0,T5)})}catch(L$){b0.thrownErrors.push(L$)}if(0<b0.thrownErrors.length){var v8=_0(b0.thrownErrors);b0.thrownErrors.length=0,T5(v8)}}else z0($6)},function($6){S0(y,r),0<b0.thrownErrors.length?($6=_0(b0.thrownErrors),b0.thrownErrors.length=0,T5($6)):T5($6)})}}}var i0=E0;if(S0(y,r),r===0&&(X0($0),$0.length!==0&&T$(function(){Y0||m2||(m2=!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(() => ...)"))}),b0.actQueue=null),0<b0.thrownErrors.length)throw C=_0(b0.thrownErrors),b0.thrownErrors.length=0,C;return{then:function(z0,T5){Y0=!0,r===0?(b0.actQueue=$0,L0(function(){return l(i0,z0,T5)})):z0(i0)}}},kj.cache=function(C){return function(){return C.apply(null,arguments)}},kj.cacheSignal=function(){return null},kj.captureOwnerStack=function(){var C=b0.getCurrentStack;return C===null?null:C()},kj.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 $0=y2({},C.props),Y0=C.key,E0=C._owner;if(y!=null){var A0;$:{if(s9.call(y,"ref")&&(A0=Object.getOwnPropertyDescriptor(y,"ref").get)&&A0.isReactWarning){A0=!1;break $}A0=y.ref!==void 0}A0&&(E0=T()),V(y)&&(F(y.key),Y0=""+y.key);for(i0 in y)!s9.call(y,i0)||i0==="key"||i0==="__self"||i0==="__source"||i0==="ref"&&y.ref===void 0||($0[i0]=y[i0])}var i0=arguments.length-2;if(i0===1)$0.children=r;else if(1<i0){A0=Array(i0);for(var z0=0;z0<i0;z0++)A0[z0]=arguments[z0+2];$0.children=A0}$0=I(C.type,Y0,$0,E0,C._debugStack,C._debugTask);for(Y0=2;Y0<arguments.length;Y0++)h(arguments[Y0]);return $0},kj.createContext=function(C){return C={$$typeof:M0,_currentValue:C,_currentValue2:C,_threadCount:0,Provider:null,Consumer:null},C.Provider=C,C.Consumer={$$typeof:H0,_context:C},C._currentRenderer=null,C._currentRenderer2=null,C},kj.createElement=function(C,y,r){for(var $0=2;$0<arguments.length;$0++)h(arguments[$0]);$0={};var Y0=null;if(y!=null)for(z0 in G4||!("__self"in y)||"key"in y||(G4=!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")),V(y)&&(F(y.key),Y0=""+y.key),y)s9.call(y,z0)&&z0!=="key"&&z0!=="__self"&&z0!=="__source"&&($0[z0]=y[z0]);var E0=arguments.length-2;if(E0===1)$0.children=r;else if(1<E0){for(var A0=Array(E0),i0=0;i0<E0;i0++)A0[i0]=arguments[i0+2];Object.freeze&&Object.freeze(A0),$0.children=A0}if(C&&C.defaultProps)for(z0 in E0=C.defaultProps,E0)$0[z0]===void 0&&($0[z0]=E0[z0]);Y0&&A($0,typeof C==="function"?C.displayName||C.name||"Unknown":C);var z0=1e4>b0.recentlyCreatedOwnerStacks++;return I(C,Y0,$0,T(),z0?Error("react-stack-top-frame"):h2,z0?W1(z(C)):LX)},kj.createRef=function(){var C={current:null};return Object.seal(C),C},kj.forwardRef=function(C){C!=null&&C.$$typeof===m1?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:u0,render:C},r;return Object.defineProperty(y,"displayName",{enumerable:!1,configurable:!0,get:function(){return r},set:function($0){r=$0,C.name||C.displayName||(Object.defineProperty(C,"name",{value:$0}),C.displayName=$0)}}),y},kj.isValidElement=p,kj.lazy=function(C){C={_status:-1,_result:C};var y={$$typeof:z5,_payload:C,_init:q0},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},kj.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:m1,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($0){r=$0,C.name||C.displayName||(Object.defineProperty(C,"name",{value:$0}),C.displayName=$0)}}),y},kj.startTransition=function(C){var y=b0.T,r={};r._updatedFibers=new Set,b0.T=r;try{var $0=C(),Y0=b0.S;Y0!==null&&Y0(r,$0),typeof $0==="object"&&$0!==null&&typeof $0.then==="function"&&(b0.asyncTransitions++,$0.then(K0,K0),$0.then(H,S8))}catch(E0){S8(E0)}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),b0.T=y}},kj.unstable_useCacheRefresh=function(){return d().useCacheRefresh()},kj.use=function(C){return d().use(C)},kj.useActionState=function(C,y,r){return d().useActionState(C,y,r)},kj.useCallback=function(C,y){return d().useCallback(C,y)},kj.useContext=function(C){var y=d();return C.$$typeof===H0&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),y.useContext(C)},kj.useDebugValue=function(C,y){return d().useDebugValue(C,y)},kj.useDeferredValue=function(C,y){return d().useDeferredValue(C,y)},kj.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)},kj.useEffectEvent=function(C){return d().useEffectEvent(C)},kj.useId=function(){return d().useId()},kj.useImperativeHandle=function(C,y,r){return d().useImperativeHandle(C,y,r)},kj.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)},kj.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)},kj.useMemo=function(C,y){return d().useMemo(C,y)},kj.useOptimistic=function(C,y){return d().useOptimistic(C,y)},kj.useReducer=function(C,y,r){return d().useReducer(C,y,r)},kj.useRef=function(C){return d().useRef(C)},kj.useState=function(C){return d().useState(C)},kj.useSyncExternalStore=function(C,y,r){return d().useSyncExternalStore(C,y,r)},kj.useTransition=function(){return d().useTransition()},kj.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var yT=T2((fj)=>{var NK=t(O1());(function(){function Q(){}function G(z){return""+z}function X(z,T,P){var V=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{G(V);var A=!1}catch(O){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&&V[Symbol.toStringTag]||V.constructor.name||"Object"),G(V)),{$$typeof:F,key:V==null?null:""+V,children:z,containerInfo:T,implementation:P}}function q(z,T){if(z==="font")return"";if(typeof T==="string")return T==="use-credentials"?T:""}function N(z){return z===null?"`null`":z===void 0?"`undefined`":z===""?"an empty string":'something with type "'+typeof z+'"'}function K(z){return z===null?"`null`":z===void 0?"`undefined`":z===""?"an empty string":typeof z==="string"?JSON.stringify(z):typeof z==="number"?"`"+z+"`":'something with type "'+typeof z+'"'}function H(){var z=w.H;return z===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 K0(){k0.asyncTransitions--}function L0(C){if(m2===null)try{var y=("require"+Math.random()).slice(0,7);m2=(n3&&n3[y]).call(n3,"timers").setImmediate}catch(r){m2=function($0){ZJ===!1&&(ZJ=!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 Y0=new MessageChannel;Y0.port1.onmessage=$0,Y0.port2.postMessage(void 0)}}return m2(C)}function _0(C){return 1<C.length&&typeof AggregateError==="function"?AggregateError(C):C[0]}function D0(C,y){y!==d2-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. "),d2=y}function l(C,y,r){var $0=k0.actQueue;if($0!==null)if($0.length!==0)try{X0($0),L0(function(){return l(C,y,r)});return}catch(Y0){k0.thrownErrors.push(Y0)}else k0.actQueue=null;0<k0.thrownErrors.length?($0=_0(k0.thrownErrors),k0.thrownErrors.length=0,r($0)):y(C)}function X0(C){if(!c2){c2=!0;var y=0;try{for(;y<C.length;y++){var r=C[y];do{k0.didUsePromise=!1;var $0=r(!1);if($0!==null){if(k0.didUsePromise){C[y]=r,C.splice(0,y);return}r=$0}else break}while(1)}C.length=0}catch(Y0){C.splice(0,y+1),k0.thrownErrors.push(Y0)}finally{c2=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var B0=Symbol.for("react.transitional.element"),r0=Symbol.for("react.portal"),u0=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),H0=Symbol.for("react.consumer"),F0=Symbol.for("react.context"),x0=Symbol.for("react.forward_ref"),y1=Symbol.for("react.suspense"),v0=Symbol.for("react.suspense_list"),p1=Symbol.for("react.memo"),L5=Symbol.for("react.lazy"),r6=Symbol.for("react.activity"),eQ=Symbol.iterator,G0={},n9={isMounted:function(){return!1},enqueueForceUpdate:function(C){X(C,"forceUpdate")},enqueueReplaceState:function(C){X(C,"replaceState")},enqueueSetState:function(C){X(C,"setState")}},h2=Object.assign,D8={};Object.freeze(D8),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 X5={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 X5)X5.hasOwnProperty(b8)&&Q(b8,X5[b8]);N.prototype=q.prototype,X5=K.prototype=new N,X5.constructor=K,h2(X5,q.prototype),X5.isPureReactComponent=!0;var B1=Array.isArray,C$=Symbol.for("react.client.reference"),k0={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},o9=Object.prototype.hasOwnProperty,w1=console.createTask?console.createTask:function(){return null};X5={react_stack_bottom_frame:function(C){return C()}};var $J,q4,u2={},x2=X5.react_stack_bottom_frame.bind(X5,P)(),CX=w1(z(P)),a9=!1,i9=/\/+/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)},ZJ=!1,m2=null,d2=0,p2=!1,c2=!1,I$=typeof queueMicrotask==="function"?function(C){queueMicrotask(function(){return queueMicrotask(C)})}:L0;X5=Object.freeze({__proto__:null,c:function(C){return d().useMemoCache(C)}});var b8={map:a,forEach:function(C,y,r){a(C,function(){y.apply(this,arguments)},r)},count:function(C){var y=0;return a(C,function(){y++}),y},toArray:function(C){return a(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}};xS.Activity=r6,xS.Children=b8,xS.Component=q,xS.Fragment=u0,xS.Profiler=n,xS.PureComponent=K,xS.StrictMode=v,xS.Suspense=y1,xS.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=k0,xS.__COMPILER_RUNTIME=X5,xS.act=function(C){var y=k0.actQueue,r=d2;d2++;var $0=k0.actQueue=y!==null?y:[],Y0=!1;try{var S0=C()}catch(z0){k0.thrownErrors.push(z0)}if(0<k0.thrownErrors.length)throw D0(y,r),C=_0(k0.thrownErrors),k0.thrownErrors.length=0,C;if(S0!==null&&typeof S0==="object"&&typeof S0.then==="function"){var j0=S0;return I$(function(){Y0||p2||(p2=!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(z0,P5){Y0=!0,j0.then(function(G6){if(D0(y,r),r===0){try{X0($0),L0(function(){return l(G6,z0,P5)})}catch(V$){k0.thrownErrors.push(V$)}if(0<k0.thrownErrors.length){var k8=_0(k0.thrownErrors);k0.thrownErrors.length=0,P5(k8)}}else z0(G6)},function(G6){D0(y,r),0<k0.thrownErrors.length?(G6=_0(k0.thrownErrors),k0.thrownErrors.length=0,P5(G6)):P5(G6)})}}}var e0=S0;if(D0(y,r),r===0&&(X0($0),$0.length!==0&&I$(function(){Y0||p2||(p2=!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(() => ...)"))}),k0.actQueue=null),0<k0.thrownErrors.length)throw C=_0(k0.thrownErrors),k0.thrownErrors.length=0,C;return{then:function(z0,P5){Y0=!0,r===0?(k0.actQueue=$0,L0(function(){return l(e0,z0,P5)})):z0(e0)}}},xS.cache=function(C){return function(){return C.apply(null,arguments)}},xS.cacheSignal=function(){return null},xS.captureOwnerStack=function(){var C=k0.getCurrentStack;return C===null?null:C()},xS.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 $0=h2({},C.props),Y0=C.key,S0=C._owner;if(y!=null){var j0;$:{if(o9.call(y,"ref")&&(j0=Object.getOwnPropertyDescriptor(y,"ref").get)&&j0.isReactWarning){j0=!1;break $}j0=y.ref!==void 0}j0&&(S0=T()),I(y)&&(F(y.key),Y0=""+y.key);for(e0 in y)!o9.call(y,e0)||e0==="key"||e0==="__self"||e0==="__source"||e0==="ref"&&y.ref===void 0||($0[e0]=y[e0])}var e0=arguments.length-2;if(e0===1)$0.children=r;else if(1<e0){j0=Array(e0);for(var z0=0;z0<e0;z0++)j0[z0]=arguments[z0+2];$0.children=j0}$0=V(C.type,Y0,$0,S0,C._debugStack,C._debugTask);for(Y0=2;Y0<arguments.length;Y0++)h(arguments[Y0]);return $0},xS.createContext=function(C){return C={$$typeof:F0,_currentValue:C,_currentValue2:C,_threadCount:0,Provider:null,Consumer:null},C.Provider=C,C.Consumer={$$typeof:H0,_context:C},C._currentRenderer=null,C._currentRenderer2=null,C},xS.createElement=function(C,y,r){for(var $0=2;$0<arguments.length;$0++)h(arguments[$0]);$0={};var Y0=null;if(y!=null)for(z0 in q4||!("__self"in y)||"key"in y||(q4=!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)&&(F(y.key),Y0=""+y.key),y)o9.call(y,z0)&&z0!=="key"&&z0!=="__self"&&z0!=="__source"&&($0[z0]=y[z0]);var S0=arguments.length-2;if(S0===1)$0.children=r;else if(1<S0){for(var j0=Array(S0),e0=0;e0<S0;e0++)j0[e0]=arguments[e0+2];Object.freeze&&Object.freeze(j0),$0.children=j0}if(C&&C.defaultProps)for(z0 in S0=C.defaultProps,S0)$0[z0]===void 0&&($0[z0]=S0[z0]);Y0&&A($0,typeof C==="function"?C.displayName||C.name||"Unknown":C);var z0=1e4>k0.recentlyCreatedOwnerStacks++;return V(C,Y0,$0,T(),z0?Error("react-stack-top-frame"):x2,z0?w1(z(C)):CX)},xS.createRef=function(){var C={current:null};return Object.seal(C),C},xS.forwardRef=function(C){C!=null&&C.$$typeof===p1?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:x0,render:C},r;return Object.defineProperty(y,"displayName",{enumerable:!1,configurable:!0,get:function(){return r},set:function($0){r=$0,C.name||C.displayName||(Object.defineProperty(C,"name",{value:$0}),C.displayName=$0)}}),y},xS.isValidElement=p,xS.lazy=function(C){C={_status:-1,_result:C};var y={$$typeof:L5,_payload:C,_init:q0},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},xS.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:p1,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($0){r=$0,C.name||C.displayName||(Object.defineProperty(C,"name",{value:$0}),C.displayName=$0)}}),y},xS.startTransition=function(C){var y=k0.T,r={};r._updatedFibers=new Set,k0.T=r;try{var $0=C(),Y0=k0.S;Y0!==null&&Y0(r,$0),typeof $0==="object"&&$0!==null&&typeof $0.then==="function"&&(k0.asyncTransitions++,$0.then(K0,K0),$0.then(H,v8))}catch(S0){v8(S0)}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),k0.T=y}},xS.unstable_useCacheRefresh=function(){return d().useCacheRefresh()},xS.use=function(C){return d().use(C)},xS.useActionState=function(C,y,r){return d().useActionState(C,y,r)},xS.useCallback=function(C,y){return d().useCallback(C,y)},xS.useContext=function(C){var y=d();return C.$$typeof===H0&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),y.useContext(C)},xS.useDebugValue=function(C,y){return d().useDebugValue(C,y)},xS.useDeferredValue=function(C,y){return d().useDeferredValue(C,y)},xS.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)},xS.useEffectEvent=function(C){return d().useEffectEvent(C)},xS.useId=function(){return d().useId()},xS.useImperativeHandle=function(C,y,r){return d().useImperativeHandle(C,y,r)},xS.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)},xS.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)},xS.useMemo=function(C,y){return d().useMemo(C,y)},xS.useOptimistic=function(C,y){return d().useOptimistic(C,y)},xS.useReducer=function(C,y,r){return d().useReducer(C,y,r)},xS.useRef=function(C){return d().useRef(C)},xS.useState=function(C){return d().useState(C)},xS.useSyncExternalStore=function(C,y,r){return d().useSyncExternalStore(C,y,r)},xS.useTransition=function(){return d().useTransition()},xS.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var xT=P2((mS)=>{var BK=i(I1());(function(){function Q(){}function J(z){return""+z}function X(z,T,P){var I=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{J(I);var A=!1}catch(O){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:F,key:I==null?null:""+I,children:z,containerInfo:T,implementation:P}}function q(z,T){if(z==="font")return"";if(typeof T==="string")return T==="use-credentials"?T:""}function N(z){return z===null?"`null`":z===void 0?"`undefined`":z===""?"an empty string":'something with type "'+typeof z+'"'}function K(z){return z===null?"`null`":z===void 0?"`undefined`":z===""?"an empty string":typeof z==="string"?JSON.stringify(z):typeof z==="number"?"`"+z+"`":'something with type "'+typeof z+'"'}function H(){var z=w.H;return z===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.`),z}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var M={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},F=Symbol.for("react.portal"),w=NK.__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"),fj.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=M,fj.createPortal=function(z,T){var P=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!T||T.nodeType!==1&&T.nodeType!==9&&T.nodeType!==11)throw Error("Target container is not a DOM element.");return X(z,T,null,P)},fj.flushSync=function(z){var T=w.T,P=M.p;try{if(w.T=null,M.p=2,z)return z()}finally{w.T=T,M.p=P,M.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.")}},fj.preconnect=function(z,T){typeof z==="string"&&z?T!=null&&typeof T!=="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(T)):T!=null&&typeof T.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(T.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",N(z)),typeof z==="string"&&(T?(T=T.crossOrigin,T=typeof T==="string"?T==="use-credentials"?T:"":void 0):T=null,M.d.C(z,T))},fj.prefetchDNS=function(z){if(typeof z!=="string"||!z)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",N(z));else if(1<arguments.length){var T=arguments[1];typeof T==="object"&&T.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(T)):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(T))}typeof z==="string"&&M.d.D(z)},fj.preinit=function(z,T){if(typeof z==="string"&&z?T==null||typeof T!=="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(T)):T.as!=="style"&&T.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(T.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",N(z)),typeof z==="string"&&T&&typeof T.as==="string"){var P=T.as,V=q(P,T.crossOrigin),A=typeof T.integrity==="string"?T.integrity:void 0,O=typeof T.fetchPriority==="string"?T.fetchPriority:void 0;P==="style"?M.d.S(z,typeof T.precedence==="string"?T.precedence:void 0,{crossOrigin:V,integrity:A,fetchPriority:O}):P==="script"&&M.d.X(z,{crossOrigin:V,integrity:A,fetchPriority:O,nonce:typeof T.nonce==="string"?T.nonce:void 0})}},fj.preinitModule=function(z,T){var P="";if(typeof z==="string"&&z||(P+=" The `href` argument encountered was "+N(z)+"."),T!==void 0&&typeof T!=="object"?P+=" The `options` argument encountered was "+N(T)+".":T&&("as"in T)&&T.as!=="script"&&(P+=" The `as` option encountered was "+K(T.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=T&&typeof T.as==="string"?T.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,z)}if(typeof z==="string")if(typeof T==="object"&&T!==null){if(T.as==null||T.as==="script")P=q(T.as,T.crossOrigin),M.d.M(z,{crossOrigin:P,integrity:typeof T.integrity==="string"?T.integrity:void 0,nonce:typeof T.nonce==="string"?T.nonce:void 0})}else T==null&&M.d.M(z)},fj.preload=function(z,T){var P="";if(typeof z==="string"&&z||(P+=" The `href` argument encountered was "+N(z)+"."),T==null||typeof T!=="object"?P+=" The `options` argument encountered was "+N(T)+".":typeof T.as==="string"&&T.as||(P+=" The `as` option encountered was "+N(T.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 z==="string"&&typeof T==="object"&&T!==null&&typeof T.as==="string"){P=T.as;var V=q(P,T.crossOrigin);M.d.L(z,P,{crossOrigin:V,integrity:typeof T.integrity==="string"?T.integrity:void 0,nonce:typeof T.nonce==="string"?T.nonce:void 0,type:typeof T.type==="string"?T.type:void 0,fetchPriority:typeof T.fetchPriority==="string"?T.fetchPriority:void 0,referrerPolicy:typeof T.referrerPolicy==="string"?T.referrerPolicy:void 0,imageSrcSet:typeof T.imageSrcSet==="string"?T.imageSrcSet:void 0,imageSizes:typeof T.imageSizes==="string"?T.imageSizes:void 0,media:typeof T.media==="string"?T.media:void 0})}},fj.preloadModule=function(z,T){var P="";typeof z==="string"&&z||(P+=" The `href` argument encountered was "+N(z)+"."),T!==void 0&&typeof T!=="object"?P+=" The `options` argument encountered was "+N(T)+".":T&&("as"in T)&&typeof T.as!=="string"&&(P+=" The `as` option encountered was "+N(T.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 z==="string"&&(T?(P=q(T.as,T.crossOrigin),M.d.m(z,{as:typeof T.as==="string"&&T.as!=="script"?T.as:void 0,crossOrigin:P,integrity:typeof T.integrity==="string"?T.integrity:void 0})):M.d.m(z))},fj.requestFormReset=function(z){M.d.r(z)},fj.unstable_batchedUpdates=function(z,T){return z(T)},fj.useFormState=function(z,T,P){return H().useFormState(z,T,P)},fj.useFormStatus=function(){return H().useHostTransitionStatus()},fj.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var hT=T2((Jb,gT)=>{var yj=t(yT());gT.exports=yj});var uT=T2((gj)=>{var e0=t(fT()),N$=t(O1()),UK=t(hT());(function(){function Q($,Z){for($=$.memoizedState;$!==null&&0<Z;)$=$.next,Z--;return $}function G($,Z,J,Y){if(J>=Z.length)return Y;var U=Z[J],B=i1($)?$.slice():m0({},$);return B[U]=G($[U],Z,J+1,Y),B}function X($,Z,J){if(Z.length!==J.length)console.warn("copyWithRename() expects paths of the same length");else{for(var Y=0;Y<J.length-1;Y++)if(Z[Y]!==J[Y]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return q($,Z,J,0)}}function q($,Z,J,Y){var U=Z[Y],B=i1($)?$.slice():m0({},$);return Y+1===Z.length?(B[J[Y]]=B[U],i1(B)?B.splice(U,1):delete B[U]):B[U]=q($[U],Z,J,Y+1),B}function N($,Z,J){var Y=Z[J],U=i1($)?$.slice():m0({},$);if(J+1===Z.length)return i1(U)?U.splice(Y,1):delete U[Y],U;return U[Y]=N($[Y],Z,J+1),U}function K(){return!1}function H(){return null}function M(){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 F(){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 z(){}function T($){var Z=[];return $.forEach(function(J){Z.push(J)}),Z.sort().join(", ")}function P($,Z,J,Y){return new Y_($,Z,J,Y)}function V($,Z){$.context===t8&&(LY($.current,2,Z,$,null,null),N7())}function A($,Z){if(O6!==null){var J=Z.staleFamilies;Z=Z.updatedFamilies,r$(),LB($.current,Z,J),N7()}}function O($){O6=$}function I($){return!(!$||$.nodeType!==1&&$.nodeType!==9&&$.nodeType!==11)}function D($){var Z=$,J=$;if($.alternate)for(;Z.return;)Z=Z.return;else{$=Z;do Z=$,(Z.flags&4098)!==0&&(J=Z.return),$=Z.return;while($)}return Z.tag===3?J: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 o($){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 J=$,Y=Z;;){var U=J.return;if(U===null)break;var B=U.alternate;if(B===null){if(Y=U.return,Y!==null){J=Y;continue}break}if(U.child===B.child){for(B=U.child;B;){if(B===J)return s(U),$;if(B===Y)return s(U),Z;B=B.sibling}throw Error("Unable to find node on an unmounted component.")}if(J.return!==Y.return)J=U,Y=B;else{for(var W=!1,R=U.child;R;){if(R===J){W=!0,J=U,Y=B;break}if(R===Y){W=!0,Y=U,J=B;break}R=R.sibling}if(!W){for(R=B.child;R;){if(R===J){W=!0,J=B,Y=U;break}if(R===Y){W=!0,Y=B,J=U;break}R=R.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(J.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(J.tag!==3)throw Error("Unable to find node on an unmounted component.");return J.stateNode.current===J?$: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 i($){if($===null||typeof $!=="object")return null;return $=EF&&$[EF]||$["@@iterator"],typeof $==="function"?$:null}function a($){if($==null)return null;if(typeof $==="function")return $.$$typeof===AC?null:$.displayName||$.name||null;if(typeof $==="string")return $;switch($){case W7:return"Fragment";case OY:return"Profiler";case XG:return"StrictMode";case AY:return"Suspense";case jY:return"SuspenseList";case SY: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 F7:return"Portal";case _4:return $.displayName||"Context";case EY:return($._context.displayName||"Context")+".Consumer";case QZ:var Z=$.render;return $=$.displayName,$||($=Z.displayName||Z.name||"",$=$!==""?"ForwardRef("+$+")":"ForwardRef"),$;case qG:return Z=$.displayName||null,Z!==null?Z:a($.type)||"Memo";case U6:Z=$._payload,$=$._init;try{return a($(Z))}catch(J){}}return null}function q0($){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 a(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 J=Z.length-1;0<=J;J--)if(typeof Z[J].name==="string")return Z[J].name}if($.return!==null)return d($.return)}return null}function K0($){return{current:$}}function L0($,Z){0>i4?console.error("Unexpected pop."):(Z!==vY[i4]&&console.error("Unexpected Fiber popped."),$.current=DY[i4],DY[i4]=null,vY[i4]=null,i4--)}function _0($,Z,J){i4++,DY[i4]=$.current,vY[i4]=J,$.current=Z}function S0($){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){_0(r8,Z,$),_0(JZ,$,$),_0(l8,null,$);var J=Z.nodeType;switch(J){case 9:case 11:J=J===9?"#document":"#fragment",Z=(Z=Z.documentElement)?(Z=Z.namespaceURI)?iM(Z):B8:B8;break;default:if(J=Z.tagName,Z=Z.namespaceURI)Z=iM(Z),Z=tM(Z,J);else switch(J){case"svg":Z=o7;break;case"math":Z=G3;break;default:Z=B8}}J=J.toLowerCase(),J=lK(null,J),J={context:Z,ancestorInfo:J},L0(l8,$),_0(l8,J,$)}function X0($){L0(l8,$),L0(JZ,$),L0(r8,$)}function B0(){return S0(l8.current)}function l0($){$.memoizedState!==null&&_0(YG,$,$);var Z=S0(l8.current),J=$.type,Y=tM(Z.context,J);J=lK(Z.ancestorInfo,J),Y={context:Y,ancestorInfo:J},Z!==Y&&(_0(JZ,$,$),_0(l8,Y,$))}function h0($){JZ.current===$&&(L0(l8,$),L0(JZ,$)),YG.current===$&&(L0(YG,$),nZ._currentValue=O9)}function v(){}function n(){if(GZ===0){AF=console.log,jF=console.info,SF=console.warn,DF=console.error,vF=console.group,bF=console.groupCollapsed,kF=console.groupEnd;var $={configurable:!0,enumerable:!0,value:v,writable:!0};Object.defineProperties(console,{info:$,log:$,warn:$,error:$,group:$,groupCollapsed:$,groupEnd:$})}GZ++}function H0(){if(GZ--,GZ===0){var $={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:m0({},$,{value:AF}),info:m0({},$,{value:jF}),warn:m0({},$,{value:SF}),error:m0({},$,{value:DF}),group:m0({},$,{value:vF}),groupCollapsed:m0({},$,{value:bF}),groupEnd:m0({},$,{value:kF})})}0>GZ&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function M0($){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.`),z}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var M={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},F=Symbol.for("react.portal"),w=BK.__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"),mS.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=M,mS.createPortal=function(z,T){var P=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!T||T.nodeType!==1&&T.nodeType!==9&&T.nodeType!==11)throw Error("Target container is not a DOM element.");return X(z,T,null,P)},mS.flushSync=function(z){var T=w.T,P=M.p;try{if(w.T=null,M.p=2,z)return z()}finally{w.T=T,M.p=P,M.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.")}},mS.preconnect=function(z,T){typeof z==="string"&&z?T!=null&&typeof T!=="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(T)):T!=null&&typeof T.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(T.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",N(z)),typeof z==="string"&&(T?(T=T.crossOrigin,T=typeof T==="string"?T==="use-credentials"?T:"":void 0):T=null,M.d.C(z,T))},mS.prefetchDNS=function(z){if(typeof z!=="string"||!z)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",N(z));else if(1<arguments.length){var T=arguments[1];typeof T==="object"&&T.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(T)):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(T))}typeof z==="string"&&M.d.D(z)},mS.preinit=function(z,T){if(typeof z==="string"&&z?T==null||typeof T!=="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(T)):T.as!=="style"&&T.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(T.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",N(z)),typeof z==="string"&&T&&typeof T.as==="string"){var P=T.as,I=q(P,T.crossOrigin),A=typeof T.integrity==="string"?T.integrity:void 0,O=typeof T.fetchPriority==="string"?T.fetchPriority:void 0;P==="style"?M.d.S(z,typeof T.precedence==="string"?T.precedence:void 0,{crossOrigin:I,integrity:A,fetchPriority:O}):P==="script"&&M.d.X(z,{crossOrigin:I,integrity:A,fetchPriority:O,nonce:typeof T.nonce==="string"?T.nonce:void 0})}},mS.preinitModule=function(z,T){var P="";if(typeof z==="string"&&z||(P+=" The `href` argument encountered was "+N(z)+"."),T!==void 0&&typeof T!=="object"?P+=" The `options` argument encountered was "+N(T)+".":T&&("as"in T)&&T.as!=="script"&&(P+=" The `as` option encountered was "+K(T.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=T&&typeof T.as==="string"?T.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,z)}if(typeof z==="string")if(typeof T==="object"&&T!==null){if(T.as==null||T.as==="script")P=q(T.as,T.crossOrigin),M.d.M(z,{crossOrigin:P,integrity:typeof T.integrity==="string"?T.integrity:void 0,nonce:typeof T.nonce==="string"?T.nonce:void 0})}else T==null&&M.d.M(z)},mS.preload=function(z,T){var P="";if(typeof z==="string"&&z||(P+=" The `href` argument encountered was "+N(z)+"."),T==null||typeof T!=="object"?P+=" The `options` argument encountered was "+N(T)+".":typeof T.as==="string"&&T.as||(P+=" The `as` option encountered was "+N(T.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 z==="string"&&typeof T==="object"&&T!==null&&typeof T.as==="string"){P=T.as;var I=q(P,T.crossOrigin);M.d.L(z,P,{crossOrigin:I,integrity:typeof T.integrity==="string"?T.integrity:void 0,nonce:typeof T.nonce==="string"?T.nonce:void 0,type:typeof T.type==="string"?T.type:void 0,fetchPriority:typeof T.fetchPriority==="string"?T.fetchPriority:void 0,referrerPolicy:typeof T.referrerPolicy==="string"?T.referrerPolicy:void 0,imageSrcSet:typeof T.imageSrcSet==="string"?T.imageSrcSet:void 0,imageSizes:typeof T.imageSizes==="string"?T.imageSizes:void 0,media:typeof T.media==="string"?T.media:void 0})}},mS.preloadModule=function(z,T){var P="";typeof z==="string"&&z||(P+=" The `href` argument encountered was "+N(z)+"."),T!==void 0&&typeof T!=="object"?P+=" The `options` argument encountered was "+N(T)+".":T&&("as"in T)&&typeof T.as!=="string"&&(P+=" The `as` option encountered was "+N(T.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 z==="string"&&(T?(P=q(T.as,T.crossOrigin),M.d.m(z,{as:typeof T.as==="string"&&T.as!=="script"?T.as:void 0,crossOrigin:P,integrity:typeof T.integrity==="string"?T.integrity:void 0})):M.d.m(z))},mS.requestFormReset=function(z){M.d.r(z)},mS.unstable_batchedUpdates=function(z,T){return z(T)},mS.useFormState=function(z,T,P){return H().useFormState(z,T,P)},mS.useFormStatus=function(){return H().useHostTransitionStatus()},mS.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var dT=P2((wb,mT)=>{var dS=i(xT());mT.exports=dS});var pT=P2((pS)=>{var Z1=i(uT()),K$=i(I1()),HK=i(dT());(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=$5($)?$.slice():d0({},$);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=$5($)?$.slice():d0({},$);return Y+1===Z.length?(B[G[Y]]=B[U],$5(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=$5($)?$.slice():d0({},$);if(G+1===Z.length)return $5(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 M(){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 F(){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 z(){}function T($){var Z=[];return $.forEach(function(G){Z.push(G)}),Z.sort().join(", ")}function P($,Z,G,Y){return new M_($,Z,G,Y)}function I($,Z){$.context===$2&&(CY($.current,2,Z,$,null,null),K7())}function A($,Z){if(S6!==null){var G=Z.staleFamilies;Z=Z.updatedFamilies,i$(),IB($.current,Z,G),K7()}}function O($){S6=$}function V($){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 o($){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,R=U.child;R;){if(R===G){W=!0,G=U,Y=B;break}if(R===Y){W=!0,Y=U,G=B;break}R=R.sibling}if(!W){for(R=B.child;R;){if(R===G){W=!0,G=B,Y=U;break}if(R===Y){W=!0,Y=B,G=U;break}R=R.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 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 $=DF&&$[DF]||$["@@iterator"],typeof $==="function"?$:null}function a($){if($==null)return null;if(typeof $==="function")return $.$$typeof===kC?null:$.displayName||$.name||null;if(typeof $==="string")return $;switch($){case R7:return"Fragment";case SY:return"Profiler";case KG:return"StrictMode";case DY:return"Suspense";case vY:return"SuspenseList";case bY: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 w7:return"Portal";case I4:return $.displayName||"Context";case jY:return($._context.displayName||"Context")+".Consumer";case YZ:var Z=$.render;return $=$.displayName,$||($=Z.displayName||Z.name||"",$=$!==""?"ForwardRef("+$+")":"ForwardRef"),$;case BG:return Z=$.displayName||null,Z!==null?Z:a($.type)||"Memo";case M6:Z=$._payload,$=$._init;try{return a($(Z))}catch(G){}}return null}function q0($){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 a(Z);case 8:return Z===KG?"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 K0($){return{current:$}}function L0($,Z){0>$8?console.error("Unexpected pop."):(Z!==fY[$8]&&console.error("Unexpected Fiber popped."),$.current=kY[$8],kY[$8]=null,fY[$8]=null,$8--)}function _0($,Z,G){$8++,kY[$8]=$.current,fY[$8]=G,$.current=Z}function D0($){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){_0(n8,Z,$),_0(NZ,$,$),_0(s8,null,$);var G=Z.nodeType;switch(G){case 9:case 11:G=G===9?"#document":"#fragment",Z=(Z=Z.documentElement)?(Z=Z.namespaceURI)?ZF(Z):F8:F8;break;default:if(G=Z.tagName,Z=Z.namespaceURI)Z=ZF(Z),Z=QF(Z,G);else switch(G){case"svg":Z=i7;break;case"math":Z=U3;break;default:Z=F8}}G=G.toLowerCase(),G=oK(null,G),G={context:Z,ancestorInfo:G},L0(s8,$),_0(s8,G,$)}function X0($){L0(s8,$),L0(NZ,$),L0(n8,$)}function B0(){return D0(s8.current)}function r0($){$.memoizedState!==null&&_0(HG,$,$);var Z=D0(s8.current),G=$.type,Y=QF(Z.context,G);G=oK(Z.ancestorInfo,G),Y={context:Y,ancestorInfo:G},Z!==Y&&(_0(NZ,$,$),_0(s8,Y,$))}function u0($){NZ.current===$&&(L0(s8,$),L0(NZ,$)),HG.current===$&&(L0(HG,$),eZ._currentValue=A9)}function v(){}function n(){if(UZ===0){vF=console.log,bF=console.info,kF=console.warn,fF=console.error,yF=console.group,gF=console.groupCollapsed,hF=console.groupEnd;var $={configurable:!0,enumerable:!0,value:v,writable:!0};Object.defineProperties(console,{info:$,log:$,warn:$,error:$,group:$,groupCollapsed:$,groupEnd:$})}UZ++}function H0(){if(UZ--,UZ===0){var $={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:d0({},$,{value:vF}),info:d0({},$,{value:bF}),warn:d0({},$,{value:kF}),error:d0({},$,{value:fF}),group:d0({},$,{value:yF}),groupCollapsed:d0({},$,{value:gF}),groupEnd:d0({},$,{value:hF})})}0>UZ&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function F0($){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 u0($){if(bY===void 0)try{throw Error()}catch(J){var Z=J.stack.trim().match(/\n( *(at )?)/);bY=Z&&Z[1]||"",fF=-1<J.stack.indexOf(`
21
- at`)?" (<anonymous>)":-1<J.stack.indexOf("@")?"@unknown:0:0":""}return`
22
- `+bY+$+fF}function k1($,Z){if(!$||kY)return"";var J=fY.get($);if(J!==void 0)return J;kY=!0,J=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var Y=null;Y=x.H,x.H=null,n();try{var U={DetermineComponentFrameRoot:function(){try{if(Z){var j=function(){throw Error()};if(Object.defineProperty(j.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(j,[])}catch(e){var g=e}Reflect.construct($,[],j)}else{try{j.call()}catch(e){g=e}$.call(j.prototype)}}else{try{throw Error()}catch(e){g=e}(j=$())&&typeof j.catch==="function"&&j.catch(function(){})}}catch(e){if(e&&g&&typeof e.stack==="string")return[e.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 W=U.DetermineComponentFrameRoot(),R=W[0],L=W[1];if(R&&L){var _=R.split(`
20
+ `,Z)),Z!==-1)$=$.slice(0,Z);else return"";return $}function x0($){if(yY===void 0)try{throw Error()}catch(G){var Z=G.stack.trim().match(/\n( *(at )?)/);yY=Z&&Z[1]||"",uF=-1<G.stack.indexOf(`
21
+ at`)?" (<anonymous>)":-1<G.stack.indexOf("@")?"@unknown:0:0":""}return`
22
+ `+yY+$+uF}function y1($,Z){if(!$||gY)return"";var G=hY.get($);if(G!==void 0)return G;gY=!0,G=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var Y=null;Y=x.H,x.H=null,n();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(e){var g=e}Reflect.construct($,[],S)}else{try{S.call()}catch(e){g=e}$.call(S.prototype)}}else{try{throw Error()}catch(e){g=e}(S=$())&&typeof S.catch==="function"&&S.catch(function(){})}}catch(e){if(e&&g&&typeof e.stack==="string")return[e.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 W=U.DetermineComponentFrameRoot(),R=W[0],L=W[1];if(R&&L){var _=R.split(`
23
23
  `),k=L.split(`
24
24
  `);for(W=B=0;B<_.length&&!_[B].includes("DetermineComponentFrameRoot");)B++;for(;W<k.length&&!k[W].includes("DetermineComponentFrameRoot");)W++;if(B===_.length||W===k.length)for(B=_.length-1,W=k.length-1;1<=B&&0<=W&&_[B]!==k[W];)W--;for(;1<=B&&0<=W;B--,W--)if(_[B]!==k[W]){if(B!==1||W!==1)do if(B--,W--,0>W||_[B]!==k[W]){var f=`
25
- `+_[B].replace(" at new "," at ");return $.displayName&&f.includes("<anonymous>")&&(f=f.replace("<anonymous>",$.displayName)),typeof $==="function"&&fY.set($,f),f}while(1<=B&&0<=W);break}}}finally{kY=!1,x.H=Y,H0(),Error.prepareStackTrace=J}return _=(_=$?$.displayName||$.name:"")?u0(_):"",typeof $==="function"&&fY.set($,_),_}function D0($,Z){switch($.tag){case 26:case 27:case 5:return u0($.type);case 16:return u0("Lazy");case 13:return $.child!==Z&&Z!==null?u0("Suspense Fallback"):u0("Suspense");case 19:return u0("SuspenseList");case 0:case 15:return k1($.type,!1);case 11:return k1($.type.render,!1);case 1:return k1($.type,!0);case 31:return u0("Activity");default:return""}}function m1($){try{var Z="",J=null;do{Z+=D0($,J);var Y=$._debugInfo;if(Y)for(var U=Y.length-1;0<=U;U--){var B=Y[U];if(typeof B.name==="string"){var W=Z;$:{var{name:R,env:L,debugLocation:_}=B;if(_!=null){var k=M0(_),f=k.lastIndexOf(`
26
- `),j=f===-1?k:k.slice(f+1);if(j.indexOf(R)!==-1){var g=`
27
- `+j;break $}}g=u0(R+(L?" ["+L+"]":""))}Z=W+g}}J=$,$=$.return}while($);return Z}catch(e){return`
25
+ `+_[B].replace(" at new "," at ");return $.displayName&&f.includes("<anonymous>")&&(f=f.replace("<anonymous>",$.displayName)),typeof $==="function"&&hY.set($,f),f}while(1<=B&&0<=W);break}}}finally{gY=!1,x.H=Y,H0(),Error.prepareStackTrace=G}return _=(_=$?$.displayName||$.name:"")?x0(_):"",typeof $==="function"&&hY.set($,_),_}function v0($,Z){switch($.tag){case 26:case 27:case 5:return x0($.type);case 16:return x0("Lazy");case 13:return $.child!==Z&&Z!==null?x0("Suspense Fallback"):x0("Suspense");case 19:return x0("SuspenseList");case 0:case 15:return y1($.type,!1);case 11:return y1($.type.render,!1);case 1:return y1($.type,!0);case 31:return x0("Activity");default:return""}}function p1($){try{var Z="",G=null;do{Z+=v0($,G);var Y=$._debugInfo;if(Y)for(var U=Y.length-1;0<=U;U--){var B=Y[U];if(typeof B.name==="string"){var W=Z;$:{var{name:R,env:L,debugLocation:_}=B;if(_!=null){var k=F0(_),f=k.lastIndexOf(`
26
+ `),S=f===-1?k:k.slice(f+1);if(S.indexOf(R)!==-1){var g=`
27
+ `+S;break $}}g=x0(R+(L?" ["+L+"]":""))}Z=W+g}}G=$,$=$.return}while($);return Z}catch(e){return`
28
28
  Error generating stack: `+e.message+`
29
- `+e.stack}}function z5($){return($=$?$.displayName||$.name:"")?u0($):""}function p6(){if(K6===null)return null;var $=K6._debugOwner;return $!=null?q0($):null}function nQ(){if(K6===null)return"";var $=K6;try{var Z="";switch($.tag===6&&($=$.return),$.tag){case 26:case 27:case 5:Z+=u0($.type);break;case 13:Z+=u0("Suspense");break;case 19:Z+=u0("SuspenseList");break;case 31:Z+=u0("Activity");break;case 30:case 0:case 15:case 1:$._debugOwner||Z!==""||(Z+=z5($.type));break;case 11:$._debugOwner||Z!==""||(Z+=z5($.type.render))}for(;$;)if(typeof $.tag==="number"){var J=$;$=J._debugOwner;var Y=J._debugStack;if($&&Y){var U=M0(Y);U!==""&&(Z+=`
29
+ `+e.stack}}function L5($){return($=$?$.displayName||$.name:"")?x0($):""}function r6(){if(F6===null)return null;var $=F6._debugOwner;return $!=null?q0($):null}function eQ(){if(F6===null)return"";var $=F6;try{var Z="";switch($.tag===6&&($=$.return),$.tag){case 26:case 27:case 5:Z+=x0($.type);break;case 13:Z+=x0("Suspense");break;case 19:Z+=x0("SuspenseList");break;case 31:Z+=x0("Activity");break;case 30:case 0:case 15:case 1:$._debugOwner||Z!==""||(Z+=L5($.type));break;case 11:$._debugOwner||Z!==""||(Z+=L5($.type.render))}for(;$;)if(typeof $.tag==="number"){var G=$;$=G._debugOwner;var Y=G._debugStack;if($&&Y){var U=F0(Y);U!==""&&(Z+=`
30
30
  `+U)}}else if($.debugStack!=null){var B=$.debugStack;($=$.owner)&&B&&(Z+=`
31
- `+M0(B))}else break;var W=Z}catch(R){W=`
31
+ `+F0(B))}else break;var W=Z}catch(R){W=`
32
32
  Error generating stack: `+R.message+`
33
- `+R.stack}return W}function G0($,Z,J,Y,U,B,W){var R=K6;r9($);try{return $!==null&&$._debugTask?$._debugTask.run(Z.bind(null,J,Y,U,B,W)):Z(J,Y,U,B,W)}finally{r9(R)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function r9($){x.getCurrentStack=$===null?null:nQ,C4=!1,K6=$}function y2($){return typeof Symbol==="function"&&Symbol.toStringTag&&$[Symbol.toStringTag]||$.constructor.name||"Object"}function j8($){try{return J5($),!1}catch(Z){return!0}}function J5($){return""+$}function K1($,Z){if(j8($))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,y2($)),J5($)}function z$($,Z){if(j8($))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,y2($)),J5($)}function b0($){if(j8($))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.",y2($)),J5($)}function s9($){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{R7=Z.inject($),P5=Z}catch(J){console.error("React instrumentation encountered an error: %o.",J)}return Z.checkDCE?!0:!1}function W1($){if(typeof fC==="function"&&yC($),P5&&typeof P5.setStrictMode==="function")try{P5.setStrictMode(R7,$)}catch(Z){V4||(V4=!0,console.error("React instrumentation encountered an error: %o",Z))}}function oQ($){return $>>>=0,$===0?32:31-(gC($)/hC|0)|0}function G4($){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 g2($,Z,J){var Y=$.pendingLanes;if(Y===0)return 0;var U=0,B=$.suspendedLanes,W=$.pingedLanes;$=$.warmLanes;var R=Y&134217727;return R!==0?(Y=R&~B,Y!==0?U=G4(Y):(W&=R,W!==0?U=G4(W):J||(J=R&~$,J!==0&&(U=G4(J))))):(R=Y&~B,R!==0?U=G4(R):W!==0?U=G4(W):J||(J=Y&~$,J!==0&&(U=G4(J)))),U===0?0:Z!==0&&Z!==U&&(Z&B)===0&&(B=U&-U,J=Z&-Z,B>=J||B===32&&(J&4194048)!==0)?Z:U}function h2($,Z){return($.pendingLanes&~($.suspendedLanes&~$.pingedLanes)&Z)===0}function LX($,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 n9(){var $=KG;return KG<<=1,(KG&62914560)===0&&(KG=4194304),$}function o9($){for(var Z=[],J=0;31>J;J++)Z.push($);return Z}function S8($,Z){$.pendingLanes|=Z,Z!==268435456&&($.suspendedLanes=0,$.pingedLanes=0,$.warmLanes=0)}function aQ($,Z,J,Y,U,B){var W=$.pendingLanes;$.pendingLanes=J,$.suspendedLanes=0,$.pingedLanes=0,$.warmLanes=0,$.expiredLanes&=J,$.entangledLanes&=J,$.errorRecoveryDisabledLanes&=J,$.shellSuspendCounter=0;var{entanglements:R,expirationTimes:L,hiddenUpdates:_}=$;for(J=W&~J;0<J;){var k=31-E5(J),f=1<<k;R[k]=0,L[k]=-1;var j=_[k];if(j!==null)for(_[k]=null,k=0;k<j.length;k++){var g=j[k];g!==null&&(g.lane&=-536870913)}J&=~f}Y!==0&&u2($,Y,0),B!==0&&U===0&&$.tag!==0&&($.suspendedLanes|=B&~(W&~Z))}function u2($,Z,J){$.pendingLanes|=Z,$.suspendedLanes&=~Z;var Y=31-E5(Z);$.entangledLanes|=Z,$.entanglements[Y]=$.entanglements[Y]|1073741824|J&261930}function x2($,Z){var J=$.entangledLanes|=Z;for($=$.entanglements;J;){var Y=31-E5(J),U=1<<Y;U&Z|$[Y]&Z&&($[Y]|=Z),J&=~U}}function m2($,Z){var J=Z&-Z;return J=(J&42)!==0?1:d2(J),(J&($.suspendedLanes|Z))!==0?0:J}function d2($){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,J){if(I4)for($=$.pendingUpdatersLaneMap;0<J;){var Y=31-E5(J),U=1<<Y;$[Y].add(Z),J&=~U}}function D8($,Z){if(I4)for(var{pendingUpdatersLaneMap:J,memoizedUpdaters:Y}=$;0<Z;){var U=31-E5(Z);$=1<<U,U=J[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 $&=-$,B6!==0&&B6<$?n6!==0&&n6<$?($&134217727)!==0?O4:BG:n6:B6}function y(){var $=X1.p;if($!==0)return $;return $=window.event,$===void 0?O4:LF($.type)}function r($,Z){var J=X1.p;try{return X1.p=$,Z()}finally{X1.p=J}}function $0($){delete $[M5],delete $[A5],delete $[xY],delete $[uC],delete $[xC]}function Y0($){var Z=$[M5];if(Z)return Z;for(var J=$.parentNode;J;){if(Z=J[n8]||J[M5]){if(J=Z.alternate,Z.child!==null||J!==null&&J.child!==null)for($=qF($);$!==null;){if(J=$[M5])return J;$=qF($)}return Z}$=J,J=$.parentNode}return null}function E0($){if($=$[M5]||$[n8]){var Z=$.tag;if(Z===5||Z===6||Z===13||Z===31||Z===26||Z===27||Z===3)return $}return null}function A0($){var Z=$.tag;if(Z===5||Z===26||Z===27||Z===6)return $.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function i0($){var Z=$[yF];return Z||(Z=$[yF]={hoistableStyles:new Map,hoistableScripts:new Map}),Z}function z0($){$[XZ]=!0}function T5($,Z){$6($,Z),$6($+"Capture",Z)}function $6($,Z){G9[$]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",$),G9[$]=Z;var J=$.toLowerCase();mY[J]=$,$==="onDoubleClick"&&(mY.ondblclick=$);for($=0;$<Z.length;$++)gF.add(Z[$])}function v8($,Z){mC[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 L$($){if(s6.call(uF,$))return!0;if(s6.call(hF,$))return!1;if(dC.test($))return uF[$]=!0;return hF[$]=!0,console.error("Invalid attribute name: `%s`",$),!1}function SK($,Z,J){if(L$(Z)){if(!$.hasAttribute(Z)){switch(typeof J){case"symbol":case"object":return J;case"function":return J;case"boolean":if(J===!1)return J}return J===void 0?void 0:null}if($=$.getAttribute(Z),$===""&&J===!0)return!0;return K1(J,Z),$===""+J?J:$}}function iQ($,Z,J){if(L$(Z))if(J===null)$.removeAttribute(Z);else{switch(typeof J){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}}K1(J,Z),$.setAttribute(Z,""+J)}}function tQ($,Z,J){if(J===null)$.removeAttribute(Z);else{switch(typeof J){case"undefined":case"function":case"symbol":case"boolean":$.removeAttribute(Z);return}K1(J,Z),$.setAttribute(Z,""+J)}}function d4($,Z,J,Y){if(Y===null)$.removeAttribute(J);else{switch(typeof Y){case"undefined":case"function":case"symbol":case"boolean":$.removeAttribute(J);return}K1(Y,J),$.setAttributeNS(Z,J,""+Y)}}function P6($){switch(typeof $){case"bigint":case"boolean":case"number":case"string":case"undefined":return $;case"object":return b0($),$;default:return""}}function DK($){var Z=$.type;return($=$.nodeName)&&$.toLowerCase()==="input"&&(Z==="checkbox"||Z==="radio")}function hP($,Z,J){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){b0(W),J=""+W,B.call(this,W)}}),Object.defineProperty($,Z,{enumerable:Y.enumerable}),{getValue:function(){return J},setValue:function(W){b0(W),J=""+W},stopTracking:function(){$._valueTracker=null,delete $[Z]}}}}function PX($){if(!$._valueTracker){var Z=DK($)?"checked":"value";$._valueTracker=hP($,Z,""+$[Z])}}function vK($){if(!$)return!1;var Z=$._valueTracker;if(!Z)return!0;var J=Z.getValue(),Y="";return $&&(Y=DK($)?$.checked?"true":"false":$.value),$=Y,$!==J?(Z.setValue($),!0):!1}function eQ($){if($=$||(typeof document<"u"?document:void 0),typeof $>"u")return null;try{return $.activeElement||$.body}catch(Z){return $.body}}function _6($){return $.replace(pC,function(Z){return"\\"+Z.charCodeAt(0).toString(16)+" "})}function bK($,Z){Z.checked===void 0||Z.defaultChecked===void 0||mF||(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",p6()||"A component",Z.type),mF=!0),Z.value===void 0||Z.defaultValue===void 0||xF||(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",p6()||"A component",Z.type),xF=!0)}function _X($,Z,J,Y,U,B,W,R){if($.name="",W!=null&&typeof W!=="function"&&typeof W!=="symbol"&&typeof W!=="boolean"?(K1(W,"type"),$.type=W):$.removeAttribute("type"),Z!=null)if(W==="number"){if(Z===0&&$.value===""||$.value!=Z)$.value=""+P6(Z)}else $.value!==""+P6(Z)&&($.value=""+P6(Z));else W!=="submit"&&W!=="reset"||$.removeAttribute("value");Z!=null?CX($,W,P6(Z)):J!=null?CX($,W,P6(J)):Y!=null&&$.removeAttribute("value"),U==null&&B!=null&&($.defaultChecked=!!B),U!=null&&($.checked=U&&typeof U!=="function"&&typeof U!=="symbol"),R!=null&&typeof R!=="function"&&typeof R!=="symbol"&&typeof R!=="boolean"?(K1(R,"name"),$.name=""+P6(R)):$.removeAttribute("name")}function kK($,Z,J,Y,U,B,W,R){if(B!=null&&typeof B!=="function"&&typeof B!=="symbol"&&typeof B!=="boolean"&&(K1(B,"type"),$.type=B),Z!=null||J!=null){if(!(B!=="submit"&&B!=="reset"||Z!==void 0&&Z!==null)){PX($);return}J=J!=null?""+P6(J):"",Z=Z!=null?""+P6(Z):J,R||Z===$.value||($.value=Z),$.defaultValue=Z}Y=Y!=null?Y:U,Y=typeof Y!=="function"&&typeof Y!=="symbol"&&!!Y,$.checked=R?$.checked:!!Y,$.defaultChecked=!!Y,W!=null&&typeof W!=="function"&&typeof W!=="symbol"&&typeof W!=="boolean"&&(K1(W,"name"),$.name=W),PX($)}function CX($,Z,J){Z==="number"&&eQ($.ownerDocument)===$||$.defaultValue===""+J||($.defaultValue=""+J)}function fK($,Z){Z.value==null&&(typeof Z.children==="object"&&Z.children!==null?N$.Children.forEach(Z.children,function(J){J==null||typeof J==="string"||typeof J==="number"||typeof J==="bigint"||pF||(pF=!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||cF||(cF=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),Z.selected==null||dF||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),dF=!0)}function yK(){var $=p6();return $?`
34
-
35
- Check the render method of \``+$+"`.":""}function a9($,Z,J,Y){if($=$.options,Z){Z={};for(var U=0;U<J.length;U++)Z["$"+J[U]]=!0;for(J=0;J<$.length;J++)U=Z.hasOwnProperty("$"+$[J].value),$[J].selected!==U&&($[J].selected=U),U&&Y&&($[J].defaultSelected=!0)}else{J=""+P6(J),Z=null;for(U=0;U<$.length;U++){if($[U].value===J){$[U].selected=!0,Y&&($[U].defaultSelected=!0);return}Z!==null||$[U].disabled||(Z=$[U])}Z!==null&&(Z.selected=!0)}}function gK($,Z){for($=0;$<rF.length;$++){var J=rF[$];if(Z[J]!=null){var Y=i1(Z[J]);Z.multiple&&!Y?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",J,yK()):!Z.multiple&&Y&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",J,yK())}}Z.value===void 0||Z.defaultValue===void 0||lF||(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"),lF=!0)}function hK($,Z){Z.value===void 0||Z.defaultValue===void 0||sF||(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",p6()||"A component"),sF=!0),Z.children!=null&&Z.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function uK($,Z,J){if(Z!=null&&(Z=""+P6(Z),Z!==$.value&&($.value=Z),J==null)){$.defaultValue!==Z&&($.defaultValue=Z);return}$.defaultValue=J!=null?""+P6(J):""}function xK($,Z,J,Y){if(Z==null){if(Y!=null){if(J!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(i1(Y)){if(1<Y.length)throw Error("<textarea> can only have at most one child.");Y=Y[0]}J=Y}J==null&&(J=""),Z=J}J=P6(Z),$.defaultValue=J,Y=$.textContent,Y===J&&Y!==""&&Y!==null&&($.value=Y),PX($)}function mK($,Z){return $.serverProps===void 0&&$.serverTail.length===0&&$.children.length===1&&3<$.distanceFromLeaf&&$.distanceFromLeaf>15-Z?mK($.children[0],Z):$}function Z6($){return" "+" ".repeat($)}function i9($){return"+ "+" ".repeat($)}function p2($){return"- "+" ".repeat($)}function dK($){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 P$($,Z){return nF.test($)?($=JSON.stringify($),$.length>Z-2?8>Z?'{"..."}':"{"+$.slice(0,Z-7)+'..."}':"{"+$+"}"):$.length>Z?5>Z?'{"..."}':$.slice(0,Z-3)+"...":$}function $J($,Z,J){var Y=120-2*J;if(Z===null)return i9(J)+P$($,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)),i9(J)+P$($,Y)+`
37
- `+p2(J)+P$(Z,Y)+`
38
- `}return Z6(J)+P$($,Y)+`
39
- `}function VX($){return Object.prototype.toString.call($).replace(/^\[object (.*)\]$/,function(Z,J){return J})}function _$($,Z){switch(typeof $){case"string":return $=JSON.stringify($),$.length>Z?5>Z?'"..."':$.slice(0,Z-4)+'..."':$;case"object":if($===null)return"null";if(i1($))return"[...]";if($.$$typeof===P4)return(Z=a($.type))?"<"+Z+">":"<...>";var J=VX($);if(J==="Object"){J="",Z-=2;for(var Y in $)if($.hasOwnProperty(Y)){var U=JSON.stringify(Y);if(U!=='"'+Y+'"'&&(Y=U),Z-=Y.length-2,U=_$($[Y],15>Z?Z:15),Z-=U.length,0>Z){J+=J===""?"...":", ...";break}J+=(J===""?"":",")+Y+":"+U}return"{"+J+"}"}return J;case"function":return(Z=$.displayName||$.name)?"function "+Z:"function";default:return String($)}}function t9($,Z){return typeof $!=="string"||nF.test($)?"{"+_$($,Z-2)+"}":$.length>Z-2?5>Z?'"..."':'"'+$.slice(0,Z-5)+'..."':'"'+$+'"'}function IX($,Z,J){var Y=120-J.length-$.length,U=[],B;for(B in Z)if(Z.hasOwnProperty(B)&&B!=="children"){var W=t9(Z[B],120-J.length-B.length-1);Y-=B.length+W.length+2,U.push(B+"="+W)}return U.length===0?J+"<"+$+`>
40
- `:0<Y?J+"<"+$+" "+U.join(" ")+`>
41
- `:J+"<"+$+`
42
- `+J+" "+U.join(`
43
- `+J+" ")+`
44
- `+J+`>
45
- `}function uP($,Z,J){var Y="",U=m0({},Z),B;for(B in $)if($.hasOwnProperty(B)){delete U[B];var W=120-2*J-B.length-2,R=_$($[B],W);Z.hasOwnProperty(B)?(W=_$(Z[B],W),Y+=i9(J)+B+": "+R+`
46
- `,Y+=p2(J)+B+": "+W+`
47
- `):Y+=i9(J)+B+": "+R+`
48
- `}for(var L in U)U.hasOwnProperty(L)&&($=_$(U[L],120-2*J-L.length-2),Y+=p2(J)+L+": "+$+`
49
- `);return Y}function xP($,Z,J,Y){var U="",B=new Map;for(_ in J)J.hasOwnProperty(_)&&B.set(_.toLowerCase(),_);if(B.size===1&&B.has("children"))U+=IX($,Z,Z6(Y));else{for(var W in Z)if(Z.hasOwnProperty(W)&&W!=="children"){var R=120-2*(Y+1)-W.length-1,L=B.get(W.toLowerCase());if(L!==void 0){B.delete(W.toLowerCase());var _=Z[W];L=J[L];var k=t9(_,R);R=t9(L,R),typeof _==="object"&&_!==null&&typeof L==="object"&&L!==null&&VX(_)==="Object"&&VX(L)==="Object"&&(2<Object.keys(_).length||2<Object.keys(L).length||-1<k.indexOf("...")||-1<R.indexOf("..."))?U+=Z6(Y+1)+W+`={{
50
- `+uP(_,L,Y+2)+Z6(Y+1)+`}}
51
- `:(U+=i9(Y+1)+W+"="+k+`
52
- `,U+=p2(Y+1)+W+"="+R+`
53
- `)}else U+=Z6(Y+1)+W+"="+t9(Z[W],R)+`
54
- `}B.forEach(function(f){if(f!=="children"){var j=120-2*(Y+1)-f.length-1;U+=p2(Y+1)+f+"="+t9(J[f],j)+`
55
- `}}),U=U===""?Z6(Y)+"<"+$+`>
56
- `:Z6(Y)+"<"+$+`
57
- `+U+Z6(Y)+`>
58
- `}if($=J.children,Z=Z.children,typeof $==="string"||typeof $==="number"||typeof $==="bigint"){if(B="",typeof Z==="string"||typeof Z==="number"||typeof Z==="bigint")B=""+Z;U+=$J(B,""+$,Y+1)}else if(typeof Z==="string"||typeof Z==="number"||typeof Z==="bigint")U=$==null?U+$J(""+Z,null,Y+1):U+$J(""+Z,void 0,Y+1);return U}function pK($,Z){var J=dK($);if(J===null){J="";for($=$.child;$;)J+=pK($,Z),$=$.sibling;return J}return Z6(Z)+"<"+J+`>
59
- `}function OX($,Z){var J=mK($,Z);if(J!==$&&($.children.length!==1||$.children[0]!==J))return Z6(Z)+`...
60
- `+OX(J,Z+1);J="";var Y=$.fiber._debugInfo;if(Y)for(var U=0;U<Y.length;U++){var B=Y[U].name;typeof B==="string"&&(J+=Z6(Z)+"<"+B+`>
61
- `,Z++)}if(Y="",U=$.fiber.pendingProps,$.fiber.tag===6)Y=$J(U,$.serverProps,Z),Z++;else if(B=dK($.fiber),B!==null)if($.serverProps===void 0){Y=Z;var W=120-2*Y-B.length-2,R="";for(_ in U)if(U.hasOwnProperty(_)&&_!=="children"){var L=t9(U[_],15);if(W-=_.length+L.length+2,0>W){R+=" ...";break}R+=" "+_+"="+L}Y=Z6(Y)+"<"+B+R+`>
62
- `,Z++}else $.serverProps===null?(Y=IX(B,U,i9(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=xP(B,U,$.serverProps,Z),Z++);var _="";U=$.fiber.child;for(B=0;U&&B<$.children.length;)W=$.children[B],W.fiber===U?(_+=OX(W,Z),B++):_+=pK(U,Z),U=U.sibling;U&&0<$.children.length&&(_+=Z6(Z)+`...
63
- `),U=$.serverTail,$.serverProps===null&&Z--;for($=0;$<U.length;$++)B=U[$],_=typeof B==="string"?_+(p2(Z)+P$(B,120-2*Z)+`
64
- `):_+IX(B.type,B.props,p2(Z));return J+Y+_}function EX($){try{return`
65
-
66
- `+OX($,0)}catch(Z){return""}}function cK($,Z,J){for(var Y=Z,U=null,B=0;Y;)Y===$&&(B=0),U={fiber:Y,children:U!==null?[U]:[],serverProps:Y===Z?J:Y===$?null:void 0,serverTail:[],distanceFromLeaf:B},B++,Y=Y.return;return U!==null?EX(U).replaceAll(/^[+-]/gm,">"):""}function lK($,Z){var J=m0({},$||aF),Y={tag:Z};if(oF.indexOf(Z)!==-1&&(J.aTagInScope=null,J.buttonTagInScope=null,J.nobrTagInScope=null),lC.indexOf(Z)!==-1&&(J.pTagInButtonScope=null),cC.indexOf(Z)!==-1&&Z!=="address"&&Z!=="div"&&Z!=="p"&&(J.listItemTagAutoclosing=null,J.dlItemTagAutoclosing=null),J.current=Y,Z==="form"&&(J.formTag=Y),Z==="a"&&(J.aTagInScope=Y),Z==="button"&&(J.buttonTagInScope=Y),Z==="nobr"&&(J.nobrTagInScope=Y),Z==="p"&&(J.pTagInButtonScope=Y),Z==="li"&&(J.listItemTagAutoclosing=Y),Z==="dd"||Z==="dt")J.dlItemTagAutoclosing=Y;return Z==="#document"||Z==="html"?J.containerTagInScope=null:J.containerTagInScope||(J.containerTagInScope=Y),$!==null||Z!=="#document"&&Z!=="html"&&Z!=="body"?J.implicitRootScope===!0&&(J.implicitRootScope=!1):J.implicitRootScope=!0,J}function rK($,Z,J){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(J)break;return $==="head"||$==="body"||$==="frameset";case"frameset":return $==="frame";case"#document":if(!J)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 rC.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 J||Z===null;case"html":return J&&Z==="#document"||Z===null;case"body":return J&&(Z==="#document"||Z==="html")||Z===null}return!0}function mP($,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 sK($,Z){for(;$;){switch($.tag){case 5:case 26:case 27:if($.type===Z)return $}$=$.return}return null}function AX($,Z){Z=Z||aF;var J=Z.current;if(Z=(J=rK($,J&&J.tag,Z.implicitRootScope)?null:J)?null:mP($,Z),Z=J||Z,!Z)return!0;var Y=Z.tag;if(Z=String(!!J)+"|"+$+"|"+Y,HG[Z])return!1;HG[Z]=!0;var U=(Z=K6)?sK(Z.return,Y):null,B=Z!==null&&U!==null?cK(U,Z,null):"",W="<"+$+">";return J?(J="",Y==="table"&&$==="tr"&&(J+=" 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`,W,Y,J,B)):console.error(`In HTML, %s cannot be a descendant of <%s>.
33
+ `+R.stack}return W}function G0($,Z,G,Y,U,B,W){var R=F6;n9($);try{return $!==null&&$._debugTask?$._debugTask.run(Z.bind(null,G,Y,U,B,W)):Z(G,Y,U,B,W)}finally{n9(R)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function n9($){x.getCurrentStack=$===null?null:eQ,V4=!1,F6=$}function h2($){return typeof Symbol==="function"&&Symbol.toStringTag&&$[Symbol.toStringTag]||$.constructor.name||"Object"}function D8($){try{return X5($),!1}catch(Z){return!0}}function X5($){return""+$}function B1($,Z){if(D8($))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,h2($)),X5($)}function C$($,Z){if(D8($))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,h2($)),X5($)}function k0($){if(D8($))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.",h2($)),X5($)}function o9($){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{T7=Z.inject($),C5=Z}catch(G){console.error("React instrumentation encountered an error: %o.",G)}return Z.checkDCE?!0:!1}function w1($){if(typeof mC==="function"&&dC($),C5&&typeof C5.setStrictMode==="function")try{C5.setStrictMode(T7,$)}catch(Z){O4||(O4=!0,console.error("React instrumentation encountered an error: %o",Z))}}function $J($){return $>>>=0,$===0?32:31-(pC($)/cC|0)|0}function q4($){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 u2($,Z,G){var Y=$.pendingLanes;if(Y===0)return 0;var U=0,B=$.suspendedLanes,W=$.pingedLanes;$=$.warmLanes;var R=Y&134217727;return R!==0?(Y=R&~B,Y!==0?U=q4(Y):(W&=R,W!==0?U=q4(W):G||(G=R&~$,G!==0&&(U=q4(G))))):(R=Y&~B,R!==0?U=q4(R):W!==0?U=q4(W):G||(G=Y&~$,G!==0&&(U=q4(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 x2($,Z){return($.pendingLanes&~($.suspendedLanes&~$.pingedLanes)&Z)===0}function CX($,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 a9(){var $=WG;return WG<<=1,(WG&62914560)===0&&(WG=4194304),$}function i9($){for(var Z=[],G=0;31>G;G++)Z.push($);return Z}function v8($,Z){$.pendingLanes|=Z,Z!==268435456&&($.suspendedLanes=0,$.pingedLanes=0,$.warmLanes=0)}function ZJ($,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:R,expirationTimes:L,hiddenUpdates:_}=$;for(G=W&~G;0<G;){var k=31-S5(G),f=1<<k;R[k]=0,L[k]=-1;var S=_[k];if(S!==null)for(_[k]=null,k=0;k<S.length;k++){var g=S[k];g!==null&&(g.lane&=-536870913)}G&=~f}Y!==0&&m2($,Y,0),B!==0&&U===0&&$.tag!==0&&($.suspendedLanes|=B&~(W&~Z))}function m2($,Z,G){$.pendingLanes|=Z,$.suspendedLanes&=~Z;var Y=31-S5(Z);$.entangledLanes|=Z,$.entanglements[Y]=$.entanglements[Y]|1073741824|G&261930}function d2($,Z){var G=$.entangledLanes|=Z;for($=$.entanglements;G;){var Y=31-S5(G),U=1<<Y;U&Z|$[Y]&Z&&($[Y]|=Z),G&=~U}}function p2($,Z){var G=Z&-Z;return G=(G&42)!==0?1:c2(G),(G&($.suspendedLanes|Z))!==0?0:G}function c2($){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 I$($,Z,G){if(E4)for($=$.pendingUpdatersLaneMap;0<G;){var Y=31-S5(G),U=1<<Y;$[Y].add(Z),G&=~U}}function b8($,Z){if(E4)for(var{pendingUpdatersLaneMap:G,memoizedUpdaters:Y}=$;0<Z;){var U=31-S5(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 $&=-$,W6!==0&&W6<$?i6!==0&&i6<$?($&134217727)!==0?A4:wG:i6:W6}function y(){var $=q1.p;if($!==0)return $;return $=window.event,$===void 0?A4:IF($.type)}function r($,Z){var G=q1.p;try{return q1.p=$,Z()}finally{q1.p=G}}function $0($){delete $[F5],delete $[j5],delete $[pY],delete $[lC],delete $[rC]}function Y0($){var Z=$[F5];if(Z)return Z;for(var G=$.parentNode;G;){if(Z=G[a8]||G[F5]){if(G=Z.alternate,Z.child!==null||G!==null&&G.child!==null)for($=KF($);$!==null;){if(G=$[F5])return G;$=KF($)}return Z}$=G,G=$.parentNode}return null}function S0($){if($=$[F5]||$[a8]){var Z=$.tag;if(Z===5||Z===6||Z===13||Z===31||Z===26||Z===27||Z===3)return $}return null}function j0($){var Z=$.tag;if(Z===5||Z===26||Z===27||Z===6)return $.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function e0($){var Z=$[xF];return Z||(Z=$[xF]={hoistableStyles:new Map,hoistableScripts:new Map}),Z}function z0($){$[KZ]=!0}function P5($,Z){G6($,Z),G6($+"Capture",Z)}function G6($,Z){q9[$]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",$),q9[$]=Z;var G=$.toLowerCase();cY[G]=$,$==="onDoubleClick"&&(cY.ondblclick=$);for($=0;$<Z.length;$++)mF.add(Z[$])}function k8($,Z){sC[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 V$($){if(a6.call(pF,$))return!0;if(a6.call(dF,$))return!1;if(nC.test($))return pF[$]=!0;return dF[$]=!0,console.error("Invalid attribute name: `%s`",$),!1}function kK($,Z,G){if(V$(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 B1(G,Z),$===""+G?G:$}}function QJ($,Z,G){if(V$(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}}B1(G,Z),$.setAttribute(Z,""+G)}}function JJ($,Z,G){if(G===null)$.removeAttribute(Z);else{switch(typeof G){case"undefined":case"function":case"symbol":case"boolean":$.removeAttribute(Z);return}B1(G,Z),$.setAttribute(Z,""+G)}}function l4($,Z,G,Y){if(Y===null)$.removeAttribute(G);else{switch(typeof Y){case"undefined":case"function":case"symbol":case"boolean":$.removeAttribute(G);return}B1(Y,G),$.setAttributeNS(Z,G,""+Y)}}function I6($){switch(typeof $){case"bigint":case"boolean":case"number":case"string":case"undefined":return $;case"object":return k0($),$;default:return""}}function fK($){var Z=$.type;return($=$.nodeName)&&$.toLowerCase()==="input"&&(Z==="checkbox"||Z==="radio")}function cP($,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){k0(W),G=""+W,B.call(this,W)}}),Object.defineProperty($,Z,{enumerable:Y.enumerable}),{getValue:function(){return G},setValue:function(W){k0(W),G=""+W},stopTracking:function(){$._valueTracker=null,delete $[Z]}}}}function IX($){if(!$._valueTracker){var Z=fK($)?"checked":"value";$._valueTracker=cP($,Z,""+$[Z])}}function yK($){if(!$)return!1;var Z=$._valueTracker;if(!Z)return!0;var G=Z.getValue(),Y="";return $&&(Y=fK($)?$.checked?"true":"false":$.value),$=Y,$!==G?(Z.setValue($),!0):!1}function GJ($){if($=$||(typeof document<"u"?document:void 0),typeof $>"u")return null;try{return $.activeElement||$.body}catch(Z){return $.body}}function V6($){return $.replace(oC,function(Z){return"\\"+Z.charCodeAt(0).toString(16)+" "})}function gK($,Z){Z.checked===void 0||Z.defaultChecked===void 0||lF||(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",r6()||"A component",Z.type),lF=!0),Z.value===void 0||Z.defaultValue===void 0||cF||(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",r6()||"A component",Z.type),cF=!0)}function VX($,Z,G,Y,U,B,W,R){if($.name="",W!=null&&typeof W!=="function"&&typeof W!=="symbol"&&typeof W!=="boolean"?(B1(W,"type"),$.type=W):$.removeAttribute("type"),Z!=null)if(W==="number"){if(Z===0&&$.value===""||$.value!=Z)$.value=""+I6(Z)}else $.value!==""+I6(Z)&&($.value=""+I6(Z));else W!=="submit"&&W!=="reset"||$.removeAttribute("value");Z!=null?OX($,W,I6(Z)):G!=null?OX($,W,I6(G)):Y!=null&&$.removeAttribute("value"),U==null&&B!=null&&($.defaultChecked=!!B),U!=null&&($.checked=U&&typeof U!=="function"&&typeof U!=="symbol"),R!=null&&typeof R!=="function"&&typeof R!=="symbol"&&typeof R!=="boolean"?(B1(R,"name"),$.name=""+I6(R)):$.removeAttribute("name")}function hK($,Z,G,Y,U,B,W,R){if(B!=null&&typeof B!=="function"&&typeof B!=="symbol"&&typeof B!=="boolean"&&(B1(B,"type"),$.type=B),Z!=null||G!=null){if(!(B!=="submit"&&B!=="reset"||Z!==void 0&&Z!==null)){IX($);return}G=G!=null?""+I6(G):"",Z=Z!=null?""+I6(Z):G,R||Z===$.value||($.value=Z),$.defaultValue=Z}Y=Y!=null?Y:U,Y=typeof Y!=="function"&&typeof Y!=="symbol"&&!!Y,$.checked=R?$.checked:!!Y,$.defaultChecked=!!Y,W!=null&&typeof W!=="function"&&typeof W!=="symbol"&&typeof W!=="boolean"&&(B1(W,"name"),$.name=W),IX($)}function OX($,Z,G){Z==="number"&&GJ($.ownerDocument)===$||$.defaultValue===""+G||($.defaultValue=""+G)}function uK($,Z){Z.value==null&&(typeof Z.children==="object"&&Z.children!==null?K$.Children.forEach(Z.children,function(G){G==null||typeof G==="string"||typeof G==="number"||typeof G==="bigint"||sF||(sF=!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||nF||(nF=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),Z.selected==null||rF||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),rF=!0)}function xK(){var $=r6();return $?`
34
+
35
+ Check the render method of \``+$+"`.":""}function t9($,Z,G,Y){if($=$.options,Z){Z={};for(var U=0;U<G.length;U++)Z["$"+G[U]]=!0;for(G=0;G<$.length;G++)U=Z.hasOwnProperty("$"+$[G].value),$[G].selected!==U&&($[G].selected=U),U&&Y&&($[G].defaultSelected=!0)}else{G=""+I6(G),Z=null;for(U=0;U<$.length;U++){if($[U].value===G){$[U].selected=!0,Y&&($[U].defaultSelected=!0);return}Z!==null||$[U].disabled||(Z=$[U])}Z!==null&&(Z.selected=!0)}}function mK($,Z){for($=0;$<aF.length;$++){var G=aF[$];if(Z[G]!=null){var Y=$5(Z[G]);Z.multiple&&!Y?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",G,xK()):!Z.multiple&&Y&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",G,xK())}}Z.value===void 0||Z.defaultValue===void 0||oF||(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"),oF=!0)}function dK($,Z){Z.value===void 0||Z.defaultValue===void 0||iF||(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",r6()||"A component"),iF=!0),Z.children!=null&&Z.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function pK($,Z,G){if(Z!=null&&(Z=""+I6(Z),Z!==$.value&&($.value=Z),G==null)){$.defaultValue!==Z&&($.defaultValue=Z);return}$.defaultValue=G!=null?""+I6(G):""}function cK($,Z,G,Y){if(Z==null){if(Y!=null){if(G!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if($5(Y)){if(1<Y.length)throw Error("<textarea> can only have at most one child.");Y=Y[0]}G=Y}G==null&&(G=""),Z=G}G=I6(Z),$.defaultValue=G,Y=$.textContent,Y===G&&Y!==""&&Y!==null&&($.value=Y),IX($)}function lK($,Z){return $.serverProps===void 0&&$.serverTail.length===0&&$.children.length===1&&3<$.distanceFromLeaf&&$.distanceFromLeaf>15-Z?lK($.children[0],Z):$}function X6($){return" "+" ".repeat($)}function e9($){return"+ "+" ".repeat($)}function l2($){return"- "+" ".repeat($)}function rK($){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 tF.test($)?($=JSON.stringify($),$.length>Z-2?8>Z?'{"..."}':"{"+$.slice(0,Z-7)+'..."}':"{"+$+"}"):$.length>Z?5>Z?'{"..."}':$.slice(0,Z-3)+"...":$}function XJ($,Z,G){var Y=120-2*G;if(Z===null)return e9(G)+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)),e9(G)+O$($,Y)+`
37
+ `+l2(G)+O$(Z,Y)+`
38
+ `}return X6(G)+O$($,Y)+`
39
+ `}function EX($){return Object.prototype.toString.call($).replace(/^\[object (.*)\]$/,function(Z,G){return G})}function E$($,Z){switch(typeof $){case"string":return $=JSON.stringify($),$.length>Z?5>Z?'"..."':$.slice(0,Z-4)+'..."':$;case"object":if($===null)return"null";if($5($))return"[...]";if($.$$typeof===C4)return(Z=a($.type))?"<"+Z+">":"<...>";var G=EX($);if(G==="Object"){G="",Z-=2;for(var Y in $)if($.hasOwnProperty(Y)){var U=JSON.stringify(Y);if(U!=='"'+Y+'"'&&(Y=U),Z-=Y.length-2,U=E$($[Y],15>Z?Z:15),Z-=U.length,0>Z){G+=G===""?"...":", ...";break}G+=(G===""?"":",")+Y+":"+U}return"{"+G+"}"}return G;case"function":return(Z=$.displayName||$.name)?"function "+Z:"function";default:return String($)}}function $7($,Z){return typeof $!=="string"||tF.test($)?"{"+E$($,Z-2)+"}":$.length>Z-2?5>Z?'"..."':'"'+$.slice(0,Z-5)+'..."':'"'+$+'"'}function AX($,Z,G){var Y=120-G.length-$.length,U=[],B;for(B in Z)if(Z.hasOwnProperty(B)&&B!=="children"){var W=$7(Z[B],120-G.length-B.length-1);Y-=B.length+W.length+2,U.push(B+"="+W)}return U.length===0?G+"<"+$+`>
40
+ `:0<Y?G+"<"+$+" "+U.join(" ")+`>
41
+ `:G+"<"+$+`
42
+ `+G+" "+U.join(`
43
+ `+G+" ")+`
44
+ `+G+`>
45
+ `}function lP($,Z,G){var Y="",U=d0({},Z),B;for(B in $)if($.hasOwnProperty(B)){delete U[B];var W=120-2*G-B.length-2,R=E$($[B],W);Z.hasOwnProperty(B)?(W=E$(Z[B],W),Y+=e9(G)+B+": "+R+`
46
+ `,Y+=l2(G)+B+": "+W+`
47
+ `):Y+=e9(G)+B+": "+R+`
48
+ `}for(var L in U)U.hasOwnProperty(L)&&($=E$(U[L],120-2*G-L.length-2),Y+=l2(G)+L+": "+$+`
49
+ `);return Y}function rP($,Z,G,Y){var U="",B=new Map;for(_ in G)G.hasOwnProperty(_)&&B.set(_.toLowerCase(),_);if(B.size===1&&B.has("children"))U+=AX($,Z,X6(Y));else{for(var W in Z)if(Z.hasOwnProperty(W)&&W!=="children"){var R=120-2*(Y+1)-W.length-1,L=B.get(W.toLowerCase());if(L!==void 0){B.delete(W.toLowerCase());var _=Z[W];L=G[L];var k=$7(_,R);R=$7(L,R),typeof _==="object"&&_!==null&&typeof L==="object"&&L!==null&&EX(_)==="Object"&&EX(L)==="Object"&&(2<Object.keys(_).length||2<Object.keys(L).length||-1<k.indexOf("...")||-1<R.indexOf("..."))?U+=X6(Y+1)+W+`={{
50
+ `+lP(_,L,Y+2)+X6(Y+1)+`}}
51
+ `:(U+=e9(Y+1)+W+"="+k+`
52
+ `,U+=l2(Y+1)+W+"="+R+`
53
+ `)}else U+=X6(Y+1)+W+"="+$7(Z[W],R)+`
54
+ `}B.forEach(function(f){if(f!=="children"){var S=120-2*(Y+1)-f.length-1;U+=l2(Y+1)+f+"="+$7(G[f],S)+`
55
+ `}}),U=U===""?X6(Y)+"<"+$+`>
56
+ `:X6(Y)+"<"+$+`
57
+ `+U+X6(Y)+`>
58
+ `}if($=G.children,Z=Z.children,typeof $==="string"||typeof $==="number"||typeof $==="bigint"){if(B="",typeof Z==="string"||typeof Z==="number"||typeof Z==="bigint")B=""+Z;U+=XJ(B,""+$,Y+1)}else if(typeof Z==="string"||typeof Z==="number"||typeof Z==="bigint")U=$==null?U+XJ(""+Z,null,Y+1):U+XJ(""+Z,void 0,Y+1);return U}function sK($,Z){var G=rK($);if(G===null){G="";for($=$.child;$;)G+=sK($,Z),$=$.sibling;return G}return X6(Z)+"<"+G+`>
59
+ `}function SX($,Z){var G=lK($,Z);if(G!==$&&($.children.length!==1||$.children[0]!==G))return X6(Z)+`...
60
+ `+SX(G,Z+1);G="";var Y=$.fiber._debugInfo;if(Y)for(var U=0;U<Y.length;U++){var B=Y[U].name;typeof B==="string"&&(G+=X6(Z)+"<"+B+`>
61
+ `,Z++)}if(Y="",U=$.fiber.pendingProps,$.fiber.tag===6)Y=XJ(U,$.serverProps,Z),Z++;else if(B=rK($.fiber),B!==null)if($.serverProps===void 0){Y=Z;var W=120-2*Y-B.length-2,R="";for(_ in U)if(U.hasOwnProperty(_)&&_!=="children"){var L=$7(U[_],15);if(W-=_.length+L.length+2,0>W){R+=" ...";break}R+=" "+_+"="+L}Y=X6(Y)+"<"+B+R+`>
62
+ `,Z++}else $.serverProps===null?(Y=AX(B,U,e9(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=rP(B,U,$.serverProps,Z),Z++);var _="";U=$.fiber.child;for(B=0;U&&B<$.children.length;)W=$.children[B],W.fiber===U?(_+=SX(W,Z),B++):_+=sK(U,Z),U=U.sibling;U&&0<$.children.length&&(_+=X6(Z)+`...
63
+ `),U=$.serverTail,$.serverProps===null&&Z--;for($=0;$<U.length;$++)B=U[$],_=typeof B==="string"?_+(l2(Z)+O$(B,120-2*Z)+`
64
+ `):_+AX(B.type,B.props,l2(Z));return G+Y+_}function jX($){try{return`
65
+
66
+ `+SX($,0)}catch(Z){return""}}function nK($,Z,G){for(var Y=Z,U=null,B=0;Y;)Y===$&&(B=0),U={fiber:Y,children:U!==null?[U]:[],serverProps:Y===Z?G:Y===$?null:void 0,serverTail:[],distanceFromLeaf:B},B++,Y=Y.return;return U!==null?jX(U).replaceAll(/^[+-]/gm,">"):""}function oK($,Z){var G=d0({},$||$W),Y={tag:Z};if(eF.indexOf(Z)!==-1&&(G.aTagInScope=null,G.buttonTagInScope=null,G.nobrTagInScope=null),iC.indexOf(Z)!==-1&&(G.pTagInButtonScope=null),aC.indexOf(Z)!==-1&&Z!=="address"&&Z!=="div"&&Z!=="p"&&(G.listItemTagAutoclosing=null,G.dlItemTagAutoclosing=null),G.current=Y,Z==="form"&&(G.formTag=Y),Z==="a"&&(G.aTagInScope=Y),Z==="button"&&(G.buttonTagInScope=Y),Z==="nobr"&&(G.nobrTagInScope=Y),Z==="p"&&(G.pTagInButtonScope=Y),Z==="li"&&(G.listItemTagAutoclosing=Y),Z==="dd"||Z==="dt")G.dlItemTagAutoclosing=Y;return Z==="#document"||Z==="html"?G.containerTagInScope=null:G.containerTagInScope||(G.containerTagInScope=Y),$!==null||Z!=="#document"&&Z!=="html"&&Z!=="body"?G.implicitRootScope===!0&&(G.implicitRootScope=!1):G.implicitRootScope=!0,G}function aK($,Z,G){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(G)break;return $==="head"||$==="body"||$==="frameset";case"frameset":return $==="frame";case"#document":if(!G)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 tC.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 G||Z===null;case"html":return G&&Z==="#document"||Z===null;case"body":return G&&(Z==="#document"||Z==="html")||Z===null}return!0}function sP($,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 iK($,Z){for(;$;){switch($.tag){case 5:case 26:case 27:if($.type===Z)return $}$=$.return}return null}function DX($,Z){Z=Z||$W;var G=Z.current;if(Z=(G=aK($,G&&G.tag,Z.implicitRootScope)?null:G)?null:sP($,Z),Z=G||Z,!Z)return!0;var Y=Z.tag;if(Z=String(!!G)+"|"+$+"|"+Y,RG[Z])return!1;RG[Z]=!0;var U=(Z=F6)?iK(Z.return,Y):null,B=Z!==null&&U!==null?nK(U,Z,null):"",W="<"+$+">";return G?(G="",Y==="table"&&$==="tr"&&(G+=" 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`,W,Y,G,B)):console.error(`In HTML, %s cannot be a descendant of <%s>.
68
68
  This will cause a hydration error.%s`,W,Y,B),Z&&($=Z.return,U===null||$===null||U===$&&$._debugOwner===Z._debugOwner||G0(U,function(){console.error(`<%s> cannot contain a nested %s.
69
- See this log for the ancestor stack trace.`,Y,W)})),!1}function ZJ($,Z,J){if(J||rK("#text",Z,!1))return!0;if(J="#text|"+Z,HG[J])return!1;HG[J]=!0;var Y=(J=K6)?sK(J,Z):null;return J=J!==null&&Y!==null?cK(Y,J,J.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,J):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,J),!1}function C$($,Z){if(Z){var J=$.firstChild;if(J&&J===$.lastChild&&J.nodeType===3){J.nodeValue=Z;return}}$.textContent=Z}function dP($){return $.replace(oC,function(Z,J){return J.toUpperCase()})}function nK($,Z,J){var Y=Z.indexOf("--")===0;Y||(-1<Z.indexOf("-")?z7.hasOwnProperty(Z)&&z7[Z]||(z7[Z]=!0,console.error("Unsupported style property %s. Did you mean %s?",Z,dP(Z.replace(nC,"ms-")))):sC.test(Z)?z7.hasOwnProperty(Z)&&z7[Z]||(z7[Z]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",Z,Z.charAt(0).toUpperCase()+Z.slice(1))):!eF.test(J)||pY.hasOwnProperty(J)&&pY[J]||(pY[J]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,Z,J.replace(eF,""))),typeof J==="number"&&(isNaN(J)?$W||($W=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",Z)):isFinite(J)||ZW||(ZW=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",Z)))),J==null||typeof J==="boolean"||J===""?Y?$.setProperty(Z,""):Z==="float"?$.cssFloat="":$[Z]="":Y?$.setProperty(Z,J):typeof J!=="number"||J===0||QW.has(Z)?Z==="float"?$.cssFloat=J:(z$(J,Z),$[Z]=(""+J).trim()):$[Z]=J+"px"}function oK($,Z,J){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,J!=null){if(Z){var Y={};if(J){for(var U in J)if(J.hasOwnProperty(U)&&!Z.hasOwnProperty(U))for(var B=dY[U]||[U],W=0;W<B.length;W++)Y[B[W]]=U}for(var R in Z)if(Z.hasOwnProperty(R)&&(!J||J[R]!==Z[R]))for(U=dY[R]||[R],B=0;B<U.length;B++)Y[U[B]]=R;R={};for(var L in Z)for(U=dY[L]||[L],B=0;B<U.length;B++)R[U[B]]=L;L={};for(var _ in Y)if(U=Y[_],(B=R[_])&&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 J)!J.hasOwnProperty(f)||Z!=null&&Z.hasOwnProperty(f)||(f.indexOf("--")===0?$.setProperty(f,""):f==="float"?$.cssFloat="":$[f]="");for(var j in Z)_=Z[j],Z.hasOwnProperty(j)&&J[j]!==_&&nK($,j,_)}else for(Y in Z)Z.hasOwnProperty(Y)&&nK($,Y,Z[Y])}function V$($){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 aK($){return aC.get($)||$}function pP($,Z){if(s6.call(L7,Z)&&L7[Z])return!0;if(tC.test(Z)){if($="aria-"+Z.slice(4).toLowerCase(),$=JW.hasOwnProperty($)?$:null,$==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",Z),L7[Z]=!0;if(Z!==$)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",Z,$),L7[Z]=!0}if(iC.test(Z)){if($=Z.toLowerCase(),$=JW.hasOwnProperty($)?$:null,$==null)return L7[Z]=!0,!1;Z!==$&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",Z,$),L7[Z]=!0)}return!0}function cP($,Z){var J=[],Y;for(Y in Z)pP($,Y)||J.push(Y);Z=J.map(function(U){return"`"+U+"`"}).join(", "),J.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",Z,$):1<J.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",Z,$)}function lP($,Z,J,Y){if(s6.call(j5,Z)&&j5[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."),j5[Z]=!0;if(typeof J==="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),j5[Z]=!0;if(XW.test(Z))return console.error("Unknown event handler property `%s`. It will be ignored.",Z),j5[Z]=!0}else if(XW.test(Z))return eC.test(Z)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",Z),j5[Z]=!0;if($V.test(Z)||ZV.test(Z))return!0;if(U==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),j5[Z]=!0;if(U==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),j5[Z]=!0;if(U==="is"&&J!==null&&J!==void 0&&typeof J!=="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof J),j5[Z]=!0;if(typeof J==="number"&&isNaN(J))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",Z),j5[Z]=!0;if(FG.hasOwnProperty(U)){if(U=FG[U],U!==Z)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",Z,U),j5[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),j5[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 J){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 J?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()}.',J,Z,Z,J,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.',J,Z,Z,J,Z,Z,Z),j5[Z]=!0}case"function":case"symbol":return j5[Z]=!0,!1;case"string":if(J==="false"||J==="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}?",J,Z,J==="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,J),j5[Z]=!0}}return!0}function rP($,Z,J){var Y=[],U;for(U in Z)lP($,U,Z[U],J)||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 I$($){return QV.test(""+$)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":$}function p4(){}function jX($){return $=$.target||$.srcElement||window,$.correspondingUseElement&&($=$.correspondingUseElement),$.nodeType===3?$.parentNode:$}function iK($){var Z=E0($);if(Z&&($=Z.stateNode)){var J=$[A5]||null;$:switch($=Z.stateNode,Z.type){case"input":if(_X($,J.value,J.defaultValue,J.defaultValue,J.checked,J.defaultChecked,J.type,J.name),Z=J.name,J.type==="radio"&&Z!=null){for(J=$;J.parentNode;)J=J.parentNode;K1(Z,"name"),J=J.querySelectorAll('input[name="'+_6(""+Z)+'"][type="radio"]');for(Z=0;Z<J.length;Z++){var Y=J[Z];if(Y!==$&&Y.form===$.form){var U=Y[A5]||null;if(!U)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");_X(Y,U.value,U.defaultValue,U.defaultValue,U.checked,U.defaultChecked,U.type,U.name)}}for(Z=0;Z<J.length;Z++)Y=J[Z],Y.form===$.form&&vK(Y)}break $;case"textarea":uK($,J.value,J.defaultValue);break $;case"select":Z=J.value,Z!=null&&a9($,!!J.multiple,Z,!1)}}}function tK($,Z,J){if(cY)return $(Z,J);cY=!0;try{var Y=$(Z);return Y}finally{if(cY=!1,P7!==null||_7!==null){if(N7(),P7&&(Z=P7,$=_7,_7=P7=null,iK(Z),$))for(Z=0;Z<$.length;Z++)iK($[Z])}}}function O$($,Z){var J=$.stateNode;if(J===null)return null;var Y=J[A5]||null;if(Y===null)return null;J=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(J&&typeof J!=="function")throw Error("Expected `"+Z+"` listener to be a function, instead got a value of `"+typeof J+"` type.");return J}function eK(){if(WG)return WG;var $,Z=rY,J=Z.length,Y,U="value"in o8?o8.value:o8.textContent,B=U.length;for($=0;$<J&&Z[$]===U[$];$++);var W=J-$;for(Y=1;Y<=W&&Z[J-Y]===U[B-Y];Y++);return WG=U.slice($,1<Y?1-Y:void 0)}function QJ($){var Z=$.keyCode;return"charCode"in $?($=$.charCode,$===0&&Z===13&&($=13)):$=Z,$===10&&($=13),32<=$||$===13?$:0}function JJ(){return!0}function $B(){return!1}function y5($){function Z(J,Y,U,B,W){this._reactName=J,this._targetInst=U,this.type=Y,this.nativeEvent=B,this.target=W,this.currentTarget=null;for(var R in $)$.hasOwnProperty(R)&&(J=$[R],this[R]=J?J(B):B[R]);return this.isDefaultPrevented=(B.defaultPrevented!=null?B.defaultPrevented:B.returnValue===!1)?JJ:$B,this.isPropagationStopped=$B,this}return m0(Z.prototype,{preventDefault:function(){this.defaultPrevented=!0;var J=this.nativeEvent;J&&(J.preventDefault?J.preventDefault():typeof J.returnValue!=="unknown"&&(J.returnValue=!1),this.isDefaultPrevented=JJ)},stopPropagation:function(){var J=this.nativeEvent;J&&(J.stopPropagation?J.stopPropagation():typeof J.cancelBubble!=="unknown"&&(J.cancelBubble=!0),this.isPropagationStopped=JJ)},persist:function(){},isPersistent:JJ}),Z}function sP($){var Z=this.nativeEvent;return Z.getModifierState?Z.getModifierState($):($=WV[$])?!!Z[$]:!1}function SX(){return sP}function ZB($,Z){switch($){case"keyup":return EV.indexOf(Z.keyCode)!==-1;case"keydown":return Z.keyCode!==UW;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function QB($){return $=$.detail,typeof $==="object"&&"data"in $?$.data:null}function nP($,Z){switch($){case"compositionend":return QB(Z);case"keypress":if(Z.which!==BW)return null;return MW=!0,HW;case"textInput":return $=Z.data,$===HW&&MW?null:$;default:return null}}function oP($,Z){if(C7)return $==="compositionend"||!aY&&ZB($,Z)?($=eK(),WG=rY=o8=null,C7=!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 KW&&Z.locale!=="ko"?null:Z.data;default:return null}}function JB($){var Z=$&&$.nodeName&&$.nodeName.toLowerCase();return Z==="input"?!!jV[$.type]:Z==="textarea"?!0:!1}function aP($){if(!E4)return!1;$="on"+$;var Z=$ in document;return Z||(Z=document.createElement("div"),Z.setAttribute($,"return;"),Z=typeof Z[$]==="function"),Z}function GB($,Z,J,Y){P7?_7?_7.push(Y):_7=[Y]:P7=Y,Z=oJ(Z,"onChange"),0<Z.length&&(J=new wG("onChange","change",null,J,Y),$.push({event:J,listeners:Z}))}function iP($){xM($,0)}function GJ($){var Z=A0($);if(vK(Z))return $}function XB($,Z){if($==="change")return Z}function qB(){BZ&&(BZ.detachEvent("onpropertychange",YB),HZ=BZ=null)}function YB($){if($.propertyName==="value"&&GJ(HZ)){var Z=[];GB(Z,HZ,$,jX($)),tK(iP,Z)}}function tP($,Z,J){$==="focusin"?(qB(),BZ=Z,HZ=J,BZ.attachEvent("onpropertychange",YB)):$==="focusout"&&qB()}function eP($){if($==="selectionchange"||$==="keyup"||$==="keydown")return GJ(HZ)}function $_($,Z){if($==="click")return GJ(Z)}function Z_($,Z){if($==="input"||$==="change")return GJ(Z)}function Q_($,Z){return $===Z&&($!==0||1/$===1/Z)||$!==$&&Z!==Z}function E$($,Z){if(S5($,Z))return!0;if(typeof $!=="object"||$===null||typeof Z!=="object"||Z===null)return!1;var J=Object.keys($),Y=Object.keys(Z);if(J.length!==Y.length)return!1;for(Y=0;Y<J.length;Y++){var U=J[Y];if(!s6.call(Z,U)||!S5($[U],Z[U]))return!1}return!0}function NB($){for(;$&&$.firstChild;)$=$.firstChild;return $}function UB($,Z){var J=NB($);$=0;for(var Y;J;){if(J.nodeType===3){if(Y=$+J.textContent.length,$<=Z&&Y>=Z)return{node:J,offset:Z-$};$=Y}$:{for(;J;){if(J.nextSibling){J=J.nextSibling;break $}J=J.parentNode}J=void 0}J=NB(J)}}function KB($,Z){return $&&Z?$===Z?!0:$&&$.nodeType===3?!1:Z&&Z.nodeType===3?KB($,Z.parentNode):("contains"in $)?$.contains(Z):$.compareDocumentPosition?!!($.compareDocumentPosition(Z)&16):!1:!1}function BB($){$=$!=null&&$.ownerDocument!=null&&$.ownerDocument.defaultView!=null?$.ownerDocument.defaultView:window;for(var Z=eQ($.document);Z instanceof $.HTMLIFrameElement;){try{var J=typeof Z.contentWindow.location.href==="string"}catch(Y){J=!1}if(J)$=Z.contentWindow;else break;Z=eQ($.document)}return Z}function DX($){var Z=$&&$.nodeName&&$.nodeName.toLowerCase();return Z&&(Z==="input"&&($.type==="text"||$.type==="search"||$.type==="tel"||$.type==="url"||$.type==="password")||Z==="textarea"||$.contentEditable==="true")}function HB($,Z,J){var Y=J.window===J?J.document:J.nodeType===9?J:J.ownerDocument;tY||V7==null||V7!==eQ(Y)||(Y=V7,("selectionStart"in Y)&&DX(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&&E$(MZ,Y)||(MZ=Y,Y=oJ(iY,"onSelect"),0<Y.length&&(Z=new wG("onSelect","select",null,Z,J),$.push({event:Z,listeners:Y}),Z.target=V7)))}function c2($,Z){var J={};return J[$.toLowerCase()]=Z.toLowerCase(),J["Webkit"+$]="webkit"+Z,J["Moz"+$]="moz"+Z,J}function l2($){if(eY[$])return eY[$];if(!I7[$])return $;var Z=I7[$],J;for(J in Z)if(Z.hasOwnProperty(J)&&J in WW)return eY[$]=Z[J];return $}function c6($,Z){LW.set($,Z),T5(Z,[$])}function J_($){for(var Z=zG,J=0;J<$.length;J++){var Y=$[J];if(typeof Y==="object"&&Y!==null)if(i1(Y)&&Y.length===2&&typeof Y[0]==="string"){if(Z!==zG&&Z!==GN)return QN;Z=GN}else return QN;else{if(typeof Y==="function"||typeof Y==="string"&&50<Y.length||Z!==zG&&Z!==JN)return QN;Z=JN}}return Z}function vX($,Z,J,Y){for(var U in $)s6.call($,U)&&U[0]!=="_"&&X4(U,$[U],Z,J,Y)}function X4($,Z,J,Y,U){switch(typeof Z){case"object":if(Z===null){Z="null";break}else{if(Z.$$typeof===P4){var B=a(Z.type)||"…",W=Z.key;Z=Z.props;var R=Object.keys(Z),L=R.length;if(W==null&&L===0){Z="<"+B+" />";break}if(3>Y||L===1&&R[0]==="children"&&W==null){Z="<"+B+" … />";break}J.push([U+"  ".repeat(Y)+$,"<"+B]),W!==null&&X4("key",W,J,Y+1,U),$=!1;for(var _ in Z)_==="children"?Z.children!=null&&(!i1(Z.children)||0<Z.children.length)&&($=!0):s6.call(Z,_)&&_[0]!=="_"&&X4(_,Z[_],J,Y+1,U);J.push(["",$?">…</"+B+">":"/>"]);return}if(B=Object.prototype.toString.call(Z),B=B.slice(8,B.length-1),B==="Array"){if(_=J_(Z),_===JN||_===zG){Z=JSON.stringify(Z);break}else if(_===GN){J.push([U+"  ".repeat(Y)+$,""]);for($=0;$<Z.length;$++)B=Z[$],X4(B[0],B[1],J,Y+1,U);return}}if(B==="Promise"){if(Z.status==="fulfilled"){if(B=J.length,X4($,Z.value,J,Y,U),J.length>B){J=J[B],J[1]="Promise<"+(J[1]||"Object")+">";return}}else if(Z.status==="rejected"&&(B=J.length,X4($,Z.reason,J,Y,U),J.length>B)){J=J[B],J[1]="Rejected Promise<"+J[1]+">";return}J.push(["  ".repeat(Y)+$,"Promise"]);return}B==="Object"&&(_=Object.getPrototypeOf(Z))&&typeof _.constructor==="function"&&(B=_.constructor.name),J.push([U+"  ".repeat(Y)+$,B==="Object"?3>Y?"":"…":B]),3>Y&&vX(Z,J,Y+1,U);return}case"function":Z=Z.name===""?"() => {}":Z.name+"() {}";break;case"string":Z=Z===yV?"…":JSON.stringify(Z);break;case"undefined":Z="undefined";break;case"boolean":Z=Z?"true":"false";break;default:Z=String(Z)}J.push([U+"  ".repeat(Y)+$,Z])}function MB($,Z,J,Y){var U=!0;for(W in $)W in Z||(J.push([TG+"  ".repeat(Y)+W,"…"]),U=!1);for(var B in Z)if(B in $){var W=$[B],R=Z[B];if(W!==R){if(Y===0&&B==="children")U="  ".repeat(Y)+B,J.push([TG+U,"…"],[LG+U,"…"]);else{if(!(3<=Y)){if(typeof W==="object"&&typeof R==="object"&&W!==null&&R!==null&&W.$$typeof===R.$$typeof)if(R.$$typeof===P4){if(W.type===R.type&&W.key===R.key){W=a(R.type)||"…",U="  ".repeat(Y)+B,W="<"+W+" … />",J.push([TG+U,W],[LG+U,W]),U=!1;continue}}else{var L=Object.prototype.toString.call(W),_=Object.prototype.toString.call(R);if(L===_&&(_==="[object Object]"||_==="[object Array]")){L=[CW+"  ".repeat(Y)+B,_==="[object Array]"?"Array":""],J.push(L),_=J.length,MB(W,R,J,Y+1)?_===J.length&&(L[1]="Referentially unequal but deeply equal objects. Consider memoization."):U=!1;continue}}else if(typeof W==="function"&&typeof R==="function"&&W.name===R.name&&W.length===R.length&&(L=Function.prototype.toString.call(W),_=Function.prototype.toString.call(R),L===_)){W=R.name===""?"() => {}":R.name+"() {}",J.push([CW+"  ".repeat(Y)+B,W+" Referentially unequal function closure. Consider memoization."]);continue}}X4(B,W,J,Y,TG),X4(B,R,J,Y,LG)}U=!1}}else J.push([LG+"  ".repeat(Y)+B,"…"]),U=!1;return U}function Q6($){c0=$&63?"Blocking":$&64?"Gesture":$&4194176?"Transition":$&62914560?"Suspense":$&2080374784?"Idle":"Other"}function q4($,Z,J,Y){T1&&(i8.start=Z,i8.end=J,t4.color="warning",t4.tooltipText=Y,t4.properties=null,($=$._debugTask)?$.run(performance.measure.bind(performance,Y,i8)):performance.measure(Y,i8))}function XJ($,Z,J){q4($,Z,J,"Reconnect")}function qJ($,Z,J,Y,U){var B=d($);if(B!==null&&T1){var{alternate:W,actualDuration:R}=$;if(W===null||W.child!==$.child)for(var L=$.child;L!==null;L=L.sibling)R-=L.actualDuration;Y=0.5>R?Y?"tertiary-light":"primary-light":10>R?Y?"tertiary":"primary":100>R?Y?"tertiary-dark":"primary-dark":"error";var _=$.memoizedProps;R=$._debugTask,_!==null&&W!==null&&W.memoizedProps!==_?(L=[gV],_=MB(W.memoizedProps,_,L,0),1<L.length&&(_&&!a8&&(W.lanes&U)===0&&100<$.actualDuration?(a8=!0,L[0]=hV,t4.color="warning",t4.tooltipText=VW):(t4.color=Y,t4.tooltipText=B),t4.properties=L,i8.start=Z,i8.end=J,R!=null?R.run(performance.measure.bind(performance,"​"+B,i8)):performance.measure("​"+B,i8))):R!=null?R.run(console.timeStamp.bind(console,B,Z,J,V6,void 0,Y)):console.timeStamp(B,Z,J,V6,void 0,Y)}}function bX($,Z,J,Y){if(T1){var U=d($);if(U!==null){for(var B=null,W=[],R=0;R<Y.length;R++){var L=Y[R];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&&X4("key",$.key,W,0,""),$.memoizedProps!==null&&vX($.memoizedProps,W,0,""),B==null&&(B=$._debugTask),$={start:Z,end:J,detail:{devtools:{color:"error",track:V6,tooltipText:$.tag===13?"Hydration failed":"Error boundary caught an error",properties:W}}},B?B.run(performance.measure.bind(performance,"​"+U,$)):performance.measure("​"+U,$)}}}function Y4($,Z,J,Y,U){if(U!==null){if(T1){var B=d($);if(B!==null){Y=[];for(var W=0;W<U.length;W++){var R=U[W].value;Y.push(["Error",typeof R==="object"&&R!==null&&typeof R.message==="string"?String(R.message):String(R)])}$.key!==null&&X4("key",$.key,Y,0,""),$.memoizedProps!==null&&vX($.memoizedProps,Y,0,""),Z={start:Z,end:J,detail:{devtools:{color:"error",track:V6,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&&T1&&(U=1>Y?"secondary-light":100>Y?"secondary":500>Y?"secondary-dark":"error",($=$._debugTask)?$.run(console.timeStamp.bind(console,B,Z,J,V6,void 0,U)):console.timeStamp(B,Z,J,V6,void 0,U))}function G_($,Z,J,Y){if(T1&&!(Z<=$)){var U=(J&738197653)===J?"tertiary-dark":"primary-dark";J=(J&536870912)===J?"Prepared":(J&201326741)===J?"Hydrated":"Render",Y?Y.run(console.timeStamp.bind(console,J,$,Z,c0,d0,U)):console.timeStamp(J,$,Z,c0,d0,U)}}function FB($,Z,J,Y){!T1||Z<=$||(J=(J&738197653)===J?"tertiary-dark":"primary-dark",Y?Y.run(console.timeStamp.bind(console,"Prewarm",$,Z,c0,d0,J)):console.timeStamp("Prewarm",$,Z,c0,d0,J))}function WB($,Z,J,Y){!T1||Z<=$||(J=(J&738197653)===J?"tertiary-dark":"primary-dark",Y?Y.run(console.timeStamp.bind(console,"Suspended",$,Z,c0,d0,J)):console.timeStamp("Suspended",$,Z,c0,d0,J))}function X_($,Z,J,Y,U,B){if(T1&&!(Z<=$)){J=[];for(var W=0;W<Y.length;W++){var R=Y[W].value;J.push(["Recoverable Error",typeof R==="object"&&R!==null&&typeof R.message==="string"?String(R.message):String(R)])}$={start:$,end:Z,detail:{devtools:{color:"primary-dark",track:c0,trackGroup:d0,tooltipText:U?"Hydration Failed":"Recovered after Error",properties:J}}},B?B.run(performance.measure.bind(performance,"Recovered",$)):performance.measure("Recovered",$)}}function kX($,Z,J,Y){!T1||Z<=$||(Y?Y.run(console.timeStamp.bind(console,"Errored",$,Z,c0,d0,"error")):console.timeStamp("Errored",$,Z,c0,d0,"error"))}function q_($,Z,J,Y){!T1||Z<=$||(Y?Y.run(console.timeStamp.bind(console,J,$,Z,c0,d0,"secondary-light")):console.timeStamp(J,$,Z,c0,d0,"secondary-light"))}function wB($,Z,J,Y,U){if(T1&&!(Z<=$)){for(var B=[],W=0;W<J.length;W++){var R=J[W].value;B.push(["Error",typeof R==="object"&&R!==null&&typeof R.message==="string"?String(R.message):String(R)])}$={start:$,end:Z,detail:{devtools:{color:"error",track:c0,trackGroup:d0,tooltipText:Y?"Remaining Effects Errored":"Commit Errored",properties:B}}},U?U.run(performance.measure.bind(performance,"Errored",$)):performance.measure("Errored",$)}}function A$($,Z,J){!T1||Z<=$||(J?J.run(console.timeStamp.bind(console,"Animating",$,Z,c0,d0,"secondary-dark")):console.timeStamp("Animating",$,Z,c0,d0,"secondary-dark"))}function YJ(){for(var $=O7,Z=XN=O7=0;Z<$;){var J=I6[Z];I6[Z++]=null;var Y=I6[Z];I6[Z++]=null;var U=I6[Z];I6[Z++]=null;var B=I6[Z];if(I6[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&&RB(J,U,B)}}function NJ($,Z,J,Y){I6[O7++]=$,I6[O7++]=Z,I6[O7++]=J,I6[O7++]=Y,XN|=Y,$.lanes|=Y,$=$.alternate,$!==null&&($.lanes|=Y)}function fX($,Z,J,Y){return NJ($,Z,J,Y),UJ($)}function L5($,Z){return NJ($,null,null,Z),UJ($)}function RB($,Z,J){$.lanes|=J;var Y=$.alternate;Y!==null&&(Y.lanes|=J);for(var U=!1,B=$.return;B!==null;)B.childLanes|=J,Y=B.alternate,Y!==null&&(Y.childLanes|=J),B.tag===22&&($=B.stateNode,$===null||$._visibility&FZ||(U=!0)),$=B,B=B.return;return $.tag===3?(B=$.stateNode,U&&Z!==null&&(U=31-E5(J),$=B.hiddenUpdates,Y=$[U],Y===null?$[U]=[Z]:Y.push(Z),Z.lane=J|536870912),B):null}function UJ($){if(mZ>eV)throw L9=mZ=0,dZ=hN=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.");L9>$I&&(L9=0,dZ=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&&bM($);for(var Z=$,J=Z.return;J!==null;)Z.alternate===null&&(Z.flags&4098)!==0&&bM($),Z=J,J=Z.return;return Z.tag===3?Z.stateNode:null}function r2($){if(O6===null)return $;var Z=O6($);return Z===void 0?$:Z.current}function yX($){if(O6===null)return $;var Z=O6($);return Z===void 0?$!==null&&$!==void 0&&typeof $.render==="function"&&(Z=r2($.render),$.render!==Z)?(Z={$$typeof:QZ,render:Z},$.displayName!==void 0&&(Z.displayName=$.displayName),Z):$:Z.current}function zB($,Z){if(O6===null)return!1;var J=$.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===U6&&(Y=!0);break;case 11:U===QZ?Y=!0:U===U6&&(Y=!0);break;case 14:case 15:U===qG?Y=!0:U===U6&&(Y=!0);break;default:return!1}return Y&&($=O6(J),$!==void 0&&$===O6(Z))?!0:!1}function TB($){O6!==null&&typeof WeakSet==="function"&&(E7===null&&(E7=new WeakSet),E7.add($))}function LB($,Z,J){do{var Y=$,U=Y.alternate,B=Y.child,W=Y.sibling,R=Y.tag;Y=Y.type;var L=null;switch(R){case 0:case 15:case 1:L=Y;break;case 11:L=Y.render}if(O6===null)throw Error("Expected resolveFamily to be set during hot reload.");var _=!1;if(Y=!1,L!==null&&(L=O6(L),L!==void 0&&(J.has(L)?Y=!0:Z.has(L)&&(R===1?Y=!0:_=!0))),E7!==null&&(E7.has($)||U!==null&&E7.has(U))&&(Y=!0),Y&&($._debugNeedsRemount=!0),Y||_)U=L5($,2),U!==null&&S1(U,$,2);if(B===null||Y||LB(B,Z,J),W===null)break;$=W}while(1)}function Y_($,Z,J,Y){this.tag=$,this.key=J,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,IW||typeof Object.preventExtensions!=="function"||Object.preventExtensions(this)}function gX($){return $=$.prototype,!(!$||!$.isReactComponent)}function c4($,Z){var J=$.alternate;switch(J===null?(J=P($.tag,Z,$.key,$.mode),J.elementType=$.elementType,J.type=$.type,J.stateNode=$.stateNode,J._debugOwner=$._debugOwner,J._debugStack=$._debugStack,J._debugTask=$._debugTask,J._debugHookTypes=$._debugHookTypes,J.alternate=$,$.alternate=J):(J.pendingProps=Z,J.type=$.type,J.flags=0,J.subtreeFlags=0,J.deletions=null,J.actualDuration=-0,J.actualStartTime=-1.1),J.flags=$.flags&65011712,J.childLanes=$.childLanes,J.lanes=$.lanes,J.child=$.child,J.memoizedProps=$.memoizedProps,J.memoizedState=$.memoizedState,J.updateQueue=$.updateQueue,Z=$.dependencies,J.dependencies=Z===null?null:{lanes:Z.lanes,firstContext:Z.firstContext,_debugThenableState:Z._debugThenableState},J.sibling=$.sibling,J.index=$.index,J.ref=$.ref,J.refCleanup=$.refCleanup,J.selfBaseDuration=$.selfBaseDuration,J.treeBaseDuration=$.treeBaseDuration,J._debugInfo=$._debugInfo,J._debugNeedsRemount=$._debugNeedsRemount,J.tag){case 0:case 15:J.type=r2($.type);break;case 1:J.type=r2($.type);break;case 11:J.type=yX($.type)}return J}function PB($,Z){$.flags&=65011714;var J=$.alternate;return J===null?($.childLanes=0,$.lanes=Z,$.child=null,$.subtreeFlags=0,$.memoizedProps=null,$.memoizedState=null,$.updateQueue=null,$.dependencies=null,$.stateNode=null,$.selfBaseDuration=0,$.treeBaseDuration=0):($.childLanes=J.childLanes,$.lanes=J.lanes,$.child=J.child,$.subtreeFlags=0,$.deletions=null,$.memoizedProps=J.memoizedProps,$.memoizedState=J.memoizedState,$.updateQueue=J.updateQueue,$.type=J.type,Z=J.dependencies,$.dependencies=Z===null?null:{lanes:Z.lanes,firstContext:Z.firstContext,_debugThenableState:Z._debugThenableState},$.selfBaseDuration=J.selfBaseDuration,$.treeBaseDuration=J.treeBaseDuration),$}function hX($,Z,J,Y,U,B){var W=0,R=$;if(typeof $==="function")gX($)&&(W=1),R=r2(R);else if(typeof $==="string")W=B0(),W=wC($,J,W)?26:$==="html"||$==="head"||$==="body"?27:5;else $:switch($){case SY:return Z=P(31,J,Z,U),Z.elementType=SY,Z.lanes=B,Z;case W7:return s2(J.children,U,B,Z);case XG:W=8,U|=_5,U|=o6;break;case OY:return $=J,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|k0),Z.elementType=OY,Z.lanes=B,Z.stateNode={effectDuration:0,passiveEffectDuration:0},Z;case AY:return Z=P(13,J,Z,U),Z.elementType=AY,Z.lanes=B,Z;case jY:return Z=P(19,J,Z,U),Z.elementType=jY,Z.lanes=B,Z;default:if(typeof $==="object"&&$!==null)switch($.$$typeof){case _4:W=10;break $;case EY:W=9;break $;case QZ:W=11,R=yX(R);break $;case qG:W=14;break $;case U6:W=16,R=null;break $}if(R="",$===void 0||typeof $==="object"&&$!==null&&Object.keys($).length===0)R+=" 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?J="null":i1($)?J="array":$!==void 0&&$.$$typeof===P4?(J="<"+(a($.type)||"Unknown")+" />",R=" Did you accidentally export a JSX literal instead of a component?"):J=typeof $,(W=Y?q0(Y):null)&&(R+=`
69
+ See this log for the ancestor stack trace.`,Y,W)})),!1}function qJ($,Z,G){if(G||aK("#text",Z,!1))return!0;if(G="#text|"+Z,RG[G])return!1;RG[G]=!0;var Y=(G=F6)?iK(G,Z):null;return G=G!==null&&Y!==null?nK(Y,G,G.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,G):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,G),!1}function A$($,Z){if(Z){var G=$.firstChild;if(G&&G===$.lastChild&&G.nodeType===3){G.nodeValue=Z;return}}$.textContent=Z}function nP($){return $.replace(ZI,function(Z,G){return G.toUpperCase()})}function tK($,Z,G){var Y=Z.indexOf("--")===0;Y||(-1<Z.indexOf("-")?L7.hasOwnProperty(Z)&&L7[Z]||(L7[Z]=!0,console.error("Unsupported style property %s. Did you mean %s?",Z,nP(Z.replace($I,"ms-")))):eC.test(Z)?L7.hasOwnProperty(Z)&&L7[Z]||(L7[Z]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",Z,Z.charAt(0).toUpperCase()+Z.slice(1))):!JW.test(G)||rY.hasOwnProperty(G)&&rY[G]||(rY[G]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,Z,G.replace(JW,""))),typeof G==="number"&&(isNaN(G)?GW||(GW=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",Z)):isFinite(G)||XW||(XW=!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||qW.has(Z)?Z==="float"?$.cssFloat=G:(C$(G,Z),$[Z]=(""+G).trim()):$[Z]=G+"px"}function eK($,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=lY[U]||[U],W=0;W<B.length;W++)Y[B[W]]=U}for(var R in Z)if(Z.hasOwnProperty(R)&&(!G||G[R]!==Z[R]))for(U=lY[R]||[R],B=0;B<U.length;B++)Y[U[B]]=R;R={};for(var L in Z)for(U=lY[L]||[L],B=0;B<U.length;B++)R[U[B]]=L;L={};for(var _ in Y)if(U=Y[_],(B=R[_])&&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)_=Z[S],Z.hasOwnProperty(S)&&G[S]!==_&&tK($,S,_)}else for(Y in Z)Z.hasOwnProperty(Y)&&tK($,Y,Z[Y])}function S$($){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 $B($){return QI.get($)||$}function oP($,Z){if(a6.call(_7,Z)&&_7[Z])return!0;if(GI.test(Z)){if($="aria-"+Z.slice(4).toLowerCase(),$=YW.hasOwnProperty($)?$:null,$==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",Z),_7[Z]=!0;if(Z!==$)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",Z,$),_7[Z]=!0}if(JI.test(Z)){if($=Z.toLowerCase(),$=YW.hasOwnProperty($)?$:null,$==null)return _7[Z]=!0,!1;Z!==$&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",Z,$),_7[Z]=!0)}return!0}function aP($,Z){var G=[],Y;for(Y in Z)oP($,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 iP($,Z,G,Y){if(a6.call(D5,Z)&&D5[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."),D5[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),D5[Z]=!0;if(UW.test(Z))return console.error("Unknown event handler property `%s`. It will be ignored.",Z),D5[Z]=!0}else if(UW.test(Z))return XI.test(Z)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",Z),D5[Z]=!0;if(qI.test(Z)||YI.test(Z))return!0;if(U==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),D5[Z]=!0;if(U==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),D5[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),D5[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),D5[Z]=!0;if(TG.hasOwnProperty(U)){if(U=TG[U],U!==Z)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",Z,U),D5[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),D5[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),D5[Z]=!0}case"function":case"symbol":return D5[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),D5[Z]=!0}}return!0}function tP($,Z,G){var Y=[],U;for(U in Z)iP($,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 j$($){return NI.test(""+$)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":$}function r4(){}function vX($){return $=$.target||$.srcElement||window,$.correspondingUseElement&&($=$.correspondingUseElement),$.nodeType===3?$.parentNode:$}function ZB($){var Z=S0($);if(Z&&($=Z.stateNode)){var G=$[j5]||null;$:switch($=Z.stateNode,Z.type){case"input":if(VX($,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;B1(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[j5]||null;if(!U)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");VX(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&&yK(Y)}break $;case"textarea":pK($,G.value,G.defaultValue);break $;case"select":Z=G.value,Z!=null&&t9($,!!G.multiple,Z,!1)}}}function QB($,Z,G){if(sY)return $(Z,G);sY=!0;try{var Y=$(Z);return Y}finally{if(sY=!1,C7!==null||I7!==null){if(K7(),C7&&(Z=C7,$=I7,I7=C7=null,ZB(Z),$))for(Z=0;Z<$.length;Z++)ZB($[Z])}}}function D$($,Z){var G=$.stateNode;if(G===null)return null;var Y=G[j5]||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 JB(){if(LG)return LG;var $,Z=oY,G=Z.length,Y,U="value"in i8?i8.value:i8.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 LG=U.slice($,1<Y?1-Y:void 0)}function YJ($){var Z=$.keyCode;return"charCode"in $?($=$.charCode,$===0&&Z===13&&($=13)):$=Z,$===10&&($=13),32<=$||$===13?$:0}function NJ(){return!0}function GB(){return!1}function u5($){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 R in $)$.hasOwnProperty(R)&&(G=$[R],this[R]=G?G(B):B[R]);return this.isDefaultPrevented=(B.defaultPrevented!=null?B.defaultPrevented:B.returnValue===!1)?NJ:GB,this.isPropagationStopped=GB,this}return d0(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=NJ)},stopPropagation:function(){var G=this.nativeEvent;G&&(G.stopPropagation?G.stopPropagation():typeof G.cancelBubble!=="unknown"&&(G.cancelBubble=!0),this.isPropagationStopped=NJ)},persist:function(){},isPersistent:NJ}),Z}function eP($){var Z=this.nativeEvent;return Z.getModifierState?Z.getModifierState($):($=PI[$])?!!Z[$]:!1}function bX(){return eP}function XB($,Z){switch($){case"keyup":return bI.indexOf(Z.keyCode)!==-1;case"keydown":return Z.keyCode!==MW;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function qB($){return $=$.detail,typeof $==="object"&&"data"in $?$.data:null}function $_($,Z){switch($){case"compositionend":return qB(Z);case"keypress":if(Z.which!==WW)return null;return RW=!0,wW;case"textInput":return $=Z.data,$===wW&&RW?null:$;default:return null}}function Z_($,Z){if(V7)return $==="compositionend"||!eY&&XB($,Z)?($=JB(),LG=oY=i8=null,V7=!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 FW&&Z.locale!=="ko"?null:Z.data;default:return null}}function YB($){var Z=$&&$.nodeName&&$.nodeName.toLowerCase();return Z==="input"?!!fI[$.type]:Z==="textarea"?!0:!1}function Q_($){if(!S4)return!1;$="on"+$;var Z=$ in document;return Z||(Z=document.createElement("div"),Z.setAttribute($,"return;"),Z=typeof Z[$]==="function"),Z}function NB($,Z,G,Y){C7?I7?I7.push(Y):I7=[Y]:C7=Y,Z=$G(Z,"onChange"),0<Z.length&&(G=new PG("onChange","change",null,G,Y),$.push({event:G,listeners:Z}))}function J_($){cM($,0)}function UJ($){var Z=j0($);if(yK(Z))return $}function UB($,Z){if($==="change")return Z}function KB(){wZ&&(wZ.detachEvent("onpropertychange",BB),RZ=wZ=null)}function BB($){if($.propertyName==="value"&&UJ(RZ)){var Z=[];NB(Z,RZ,$,vX($)),QB(J_,Z)}}function G_($,Z,G){$==="focusin"?(KB(),wZ=Z,RZ=G,wZ.attachEvent("onpropertychange",BB)):$==="focusout"&&KB()}function X_($){if($==="selectionchange"||$==="keyup"||$==="keydown")return UJ(RZ)}function q_($,Z){if($==="click")return UJ(Z)}function Y_($,Z){if($==="input"||$==="change")return UJ(Z)}function N_($,Z){return $===Z&&($!==0||1/$===1/Z)||$!==$&&Z!==Z}function v$($,Z){if(v5($,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(!a6.call(Z,U)||!v5($[U],Z[U]))return!1}return!0}function HB($){for(;$&&$.firstChild;)$=$.firstChild;return $}function MB($,Z){var G=HB($);$=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=HB(G)}}function FB($,Z){return $&&Z?$===Z?!0:$&&$.nodeType===3?!1:Z&&Z.nodeType===3?FB($,Z.parentNode):("contains"in $)?$.contains(Z):$.compareDocumentPosition?!!($.compareDocumentPosition(Z)&16):!1:!1}function WB($){$=$!=null&&$.ownerDocument!=null&&$.ownerDocument.defaultView!=null?$.ownerDocument.defaultView:window;for(var Z=GJ($.document);Z instanceof $.HTMLIFrameElement;){try{var G=typeof Z.contentWindow.location.href==="string"}catch(Y){G=!1}if(G)$=Z.contentWindow;else break;Z=GJ($.document)}return Z}function kX($){var Z=$&&$.nodeName&&$.nodeName.toLowerCase();return Z&&(Z==="input"&&($.type==="text"||$.type==="search"||$.type==="tel"||$.type==="url"||$.type==="password")||Z==="textarea"||$.contentEditable==="true")}function wB($,Z,G){var Y=G.window===G?G.document:G.nodeType===9?G:G.ownerDocument;ZN||O7==null||O7!==GJ(Y)||(Y=O7,("selectionStart"in Y)&&kX(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}),zZ&&v$(zZ,Y)||(zZ=Y,Y=$G($N,"onSelect"),0<Y.length&&(Z=new PG("onSelect","select",null,Z,G),$.push({event:Z,listeners:Y}),Z.target=O7)))}function r2($,Z){var G={};return G[$.toLowerCase()]=Z.toLowerCase(),G["Webkit"+$]="webkit"+Z,G["Moz"+$]="moz"+Z,G}function s2($){if(QN[$])return QN[$];if(!E7[$])return $;var Z=E7[$],G;for(G in Z)if(Z.hasOwnProperty(G)&&G in TW)return QN[$]=Z[G];return $}function s6($,Z){IW.set($,Z),P5(Z,[$])}function U_($){for(var Z=CG,G=0;G<$.length;G++){var Y=$[G];if(typeof Y==="object"&&Y!==null)if($5(Y)&&Y.length===2&&typeof Y[0]==="string"){if(Z!==CG&&Z!==YN)return XN;Z=YN}else return XN;else{if(typeof Y==="function"||typeof Y==="string"&&50<Y.length||Z!==CG&&Z!==qN)return XN;Z=qN}}return Z}function fX($,Z,G,Y){for(var U in $)a6.call($,U)&&U[0]!=="_"&&Y4(U,$[U],Z,G,Y)}function Y4($,Z,G,Y,U){switch(typeof Z){case"object":if(Z===null){Z="null";break}else{if(Z.$$typeof===C4){var B=a(Z.type)||"…",W=Z.key;Z=Z.props;var R=Object.keys(Z),L=R.length;if(W==null&&L===0){Z="<"+B+" />";break}if(3>Y||L===1&&R[0]==="children"&&W==null){Z="<"+B+" … />";break}G.push([U+"  ".repeat(Y)+$,"<"+B]),W!==null&&Y4("key",W,G,Y+1,U),$=!1;for(var _ in Z)_==="children"?Z.children!=null&&(!$5(Z.children)||0<Z.children.length)&&($=!0):a6.call(Z,_)&&_[0]!=="_"&&Y4(_,Z[_],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(_=U_(Z),_===qN||_===CG){Z=JSON.stringify(Z);break}else if(_===YN){G.push([U+"  ".repeat(Y)+$,""]);for($=0;$<Z.length;$++)B=Z[$],Y4(B[0],B[1],G,Y+1,U);return}}if(B==="Promise"){if(Z.status==="fulfilled"){if(B=G.length,Y4($,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,Y4($,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"&&(_=Object.getPrototypeOf(Z))&&typeof _.constructor==="function"&&(B=_.constructor.name),G.push([U+"  ".repeat(Y)+$,B==="Object"?3>Y?"":"…":B]),3>Y&&fX(Z,G,Y+1,U);return}case"function":Z=Z.name===""?"() => {}":Z.name+"() {}";break;case"string":Z=Z===dI?"…":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 RB($,Z,G,Y){var U=!0;for(W in $)W in Z||(G.push([IG+"  ".repeat(Y)+W,"…"]),U=!1);for(var B in Z)if(B in $){var W=$[B],R=Z[B];if(W!==R){if(Y===0&&B==="children")U="  ".repeat(Y)+B,G.push([IG+U,"…"],[VG+U,"…"]);else{if(!(3<=Y)){if(typeof W==="object"&&typeof R==="object"&&W!==null&&R!==null&&W.$$typeof===R.$$typeof)if(R.$$typeof===C4){if(W.type===R.type&&W.key===R.key){W=a(R.type)||"…",U="  ".repeat(Y)+B,W="<"+W+" … />",G.push([IG+U,W],[VG+U,W]),U=!1;continue}}else{var L=Object.prototype.toString.call(W),_=Object.prototype.toString.call(R);if(L===_&&(_==="[object Object]"||_==="[object Array]")){L=[EW+"  ".repeat(Y)+B,_==="[object Array]"?"Array":""],G.push(L),_=G.length,RB(W,R,G,Y+1)?_===G.length&&(L[1]="Referentially unequal but deeply equal objects. Consider memoization."):U=!1;continue}}else if(typeof W==="function"&&typeof R==="function"&&W.name===R.name&&W.length===R.length&&(L=Function.prototype.toString.call(W),_=Function.prototype.toString.call(R),L===_)){W=R.name===""?"() => {}":R.name+"() {}",G.push([EW+"  ".repeat(Y)+B,W+" Referentially unequal function closure. Consider memoization."]);continue}}Y4(B,W,G,Y,IG),Y4(B,R,G,Y,VG)}U=!1}}else G.push([VG+"  ".repeat(Y)+B,"…"]),U=!1;return U}function q6($){l0=$&63?"Blocking":$&64?"Gesture":$&4194176?"Transition":$&62914560?"Suspense":$&2080374784?"Idle":"Other"}function N4($,Z,G,Y){L1&&(e8.start=Z,e8.end=G,Z8.color="warning",Z8.tooltipText=Y,Z8.properties=null,($=$._debugTask)?$.run(performance.measure.bind(performance,Y,e8)):performance.measure(Y,e8))}function KJ($,Z,G){N4($,Z,G,"Reconnect")}function BJ($,Z,G,Y,U){var B=d($);if(B!==null&&L1){var{alternate:W,actualDuration:R}=$;if(W===null||W.child!==$.child)for(var L=$.child;L!==null;L=L.sibling)R-=L.actualDuration;Y=0.5>R?Y?"tertiary-light":"primary-light":10>R?Y?"tertiary":"primary":100>R?Y?"tertiary-dark":"primary-dark":"error";var _=$.memoizedProps;R=$._debugTask,_!==null&&W!==null&&W.memoizedProps!==_?(L=[pI],_=RB(W.memoizedProps,_,L,0),1<L.length&&(_&&!t8&&(W.lanes&U)===0&&100<$.actualDuration?(t8=!0,L[0]=cI,Z8.color="warning",Z8.tooltipText=AW):(Z8.color=Y,Z8.tooltipText=B),Z8.properties=L,e8.start=Z,e8.end=G,R!=null?R.run(performance.measure.bind(performance,"​"+B,e8)):performance.measure("​"+B,e8))):R!=null?R.run(console.timeStamp.bind(console,B,Z,G,E6,void 0,Y)):console.timeStamp(B,Z,G,E6,void 0,Y)}}function yX($,Z,G,Y){if(L1){var U=d($);if(U!==null){for(var B=null,W=[],R=0;R<Y.length;R++){var L=Y[R];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&&Y4("key",$.key,W,0,""),$.memoizedProps!==null&&fX($.memoizedProps,W,0,""),B==null&&(B=$._debugTask),$={start:Z,end:G,detail:{devtools:{color:"error",track:E6,tooltipText:$.tag===13?"Hydration failed":"Error boundary caught an error",properties:W}}},B?B.run(performance.measure.bind(performance,"​"+U,$)):performance.measure("​"+U,$)}}}function U4($,Z,G,Y,U){if(U!==null){if(L1){var B=d($);if(B!==null){Y=[];for(var W=0;W<U.length;W++){var R=U[W].value;Y.push(["Error",typeof R==="object"&&R!==null&&typeof R.message==="string"?String(R.message):String(R)])}$.key!==null&&Y4("key",$.key,Y,0,""),$.memoizedProps!==null&&fX($.memoizedProps,Y,0,""),Z={start:Z,end:G,detail:{devtools:{color:"error",track:E6,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&&L1&&(U=1>Y?"secondary-light":100>Y?"secondary":500>Y?"secondary-dark":"error",($=$._debugTask)?$.run(console.timeStamp.bind(console,B,Z,G,E6,void 0,U)):console.timeStamp(B,Z,G,E6,void 0,U))}function K_($,Z,G,Y){if(L1&&!(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,l0,p0,U)):console.timeStamp(G,$,Z,l0,p0,U)}}function zB($,Z,G,Y){!L1||Z<=$||(G=(G&738197653)===G?"tertiary-dark":"primary-dark",Y?Y.run(console.timeStamp.bind(console,"Prewarm",$,Z,l0,p0,G)):console.timeStamp("Prewarm",$,Z,l0,p0,G))}function TB($,Z,G,Y){!L1||Z<=$||(G=(G&738197653)===G?"tertiary-dark":"primary-dark",Y?Y.run(console.timeStamp.bind(console,"Suspended",$,Z,l0,p0,G)):console.timeStamp("Suspended",$,Z,l0,p0,G))}function B_($,Z,G,Y,U,B){if(L1&&!(Z<=$)){G=[];for(var W=0;W<Y.length;W++){var R=Y[W].value;G.push(["Recoverable Error",typeof R==="object"&&R!==null&&typeof R.message==="string"?String(R.message):String(R)])}$={start:$,end:Z,detail:{devtools:{color:"primary-dark",track:l0,trackGroup:p0,tooltipText:U?"Hydration Failed":"Recovered after Error",properties:G}}},B?B.run(performance.measure.bind(performance,"Recovered",$)):performance.measure("Recovered",$)}}function gX($,Z,G,Y){!L1||Z<=$||(Y?Y.run(console.timeStamp.bind(console,"Errored",$,Z,l0,p0,"error")):console.timeStamp("Errored",$,Z,l0,p0,"error"))}function H_($,Z,G,Y){!L1||Z<=$||(Y?Y.run(console.timeStamp.bind(console,G,$,Z,l0,p0,"secondary-light")):console.timeStamp(G,$,Z,l0,p0,"secondary-light"))}function LB($,Z,G,Y,U){if(L1&&!(Z<=$)){for(var B=[],W=0;W<G.length;W++){var R=G[W].value;B.push(["Error",typeof R==="object"&&R!==null&&typeof R.message==="string"?String(R.message):String(R)])}$={start:$,end:Z,detail:{devtools:{color:"error",track:l0,trackGroup:p0,tooltipText:Y?"Remaining Effects Errored":"Commit Errored",properties:B}}},U?U.run(performance.measure.bind(performance,"Errored",$)):performance.measure("Errored",$)}}function b$($,Z,G){!L1||Z<=$||(G?G.run(console.timeStamp.bind(console,"Animating",$,Z,l0,p0,"secondary-dark")):console.timeStamp("Animating",$,Z,l0,p0,"secondary-dark"))}function HJ(){for(var $=A7,Z=NN=A7=0;Z<$;){var G=A6[Z];A6[Z++]=null;var Y=A6[Z];A6[Z++]=null;var U=A6[Z];A6[Z++]=null;var B=A6[Z];if(A6[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&&PB(G,U,B)}}function MJ($,Z,G,Y){A6[A7++]=$,A6[A7++]=Z,A6[A7++]=G,A6[A7++]=Y,NN|=Y,$.lanes|=Y,$=$.alternate,$!==null&&($.lanes|=Y)}function hX($,Z,G,Y){return MJ($,Z,G,Y),FJ($)}function _5($,Z){return MJ($,null,null,Z),FJ($)}function PB($,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&TZ||(U=!0)),$=B,B=B.return;return $.tag===3?(B=$.stateNode,U&&Z!==null&&(U=31-S5(G),$=B.hiddenUpdates,Y=$[U],Y===null?$[U]=[Z]:Y.push(Z),Z.lane=G|536870912),B):null}function FJ($){if(rZ>XV)throw _9=rZ=0,sZ=mN=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.");_9>qV&&(_9=0,sZ=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&&gM($);for(var Z=$,G=Z.return;G!==null;)Z.alternate===null&&(Z.flags&4098)!==0&&gM($),Z=G,G=Z.return;return Z.tag===3?Z.stateNode:null}function n2($){if(S6===null)return $;var Z=S6($);return Z===void 0?$:Z.current}function uX($){if(S6===null)return $;var Z=S6($);return Z===void 0?$!==null&&$!==void 0&&typeof $.render==="function"&&(Z=n2($.render),$.render!==Z)?(Z={$$typeof:YZ,render:Z},$.displayName!==void 0&&(Z.displayName=$.displayName),Z):$:Z.current}function _B($,Z){if(S6===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===M6&&(Y=!0);break;case 11:U===YZ?Y=!0:U===M6&&(Y=!0);break;case 14:case 15:U===BG?Y=!0:U===M6&&(Y=!0);break;default:return!1}return Y&&($=S6(G),$!==void 0&&$===S6(Z))?!0:!1}function CB($){S6!==null&&typeof WeakSet==="function"&&(S7===null&&(S7=new WeakSet),S7.add($))}function IB($,Z,G){do{var Y=$,U=Y.alternate,B=Y.child,W=Y.sibling,R=Y.tag;Y=Y.type;var L=null;switch(R){case 0:case 15:case 1:L=Y;break;case 11:L=Y.render}if(S6===null)throw Error("Expected resolveFamily to be set during hot reload.");var _=!1;if(Y=!1,L!==null&&(L=S6(L),L!==void 0&&(G.has(L)?Y=!0:Z.has(L)&&(R===1?Y=!0:_=!0))),S7!==null&&(S7.has($)||U!==null&&S7.has(U))&&(Y=!0),Y&&($._debugNeedsRemount=!0),Y||_)U=_5($,2),U!==null&&D1(U,$,2);if(B===null||Y||IB(B,Z,G),W===null)break;$=W}while(1)}function M_($,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,SW||typeof Object.preventExtensions!=="function"||Object.preventExtensions(this)}function xX($){return $=$.prototype,!(!$||!$.isReactComponent)}function s4($,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=n2($.type);break;case 1:G.type=n2($.type);break;case 11:G.type=uX($.type)}return G}function VB($,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 mX($,Z,G,Y,U,B){var W=0,R=$;if(typeof $==="function")xX($)&&(W=1),R=n2(R);else if(typeof $==="string")W=B0(),W=_C($,G,W)?26:$==="html"||$==="head"||$==="body"?27:5;else $:switch($){case bY:return Z=P(31,G,Z,U),Z.elementType=bY,Z.lanes=B,Z;case R7:return o2(G.children,U,B,Z);case KG:W=8,U|=I5,U|=t6;break;case SY: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|f0),Z.elementType=SY,Z.lanes=B,Z.stateNode={effectDuration:0,passiveEffectDuration:0},Z;case DY:return Z=P(13,G,Z,U),Z.elementType=DY,Z.lanes=B,Z;case vY:return Z=P(19,G,Z,U),Z.elementType=vY,Z.lanes=B,Z;default:if(typeof $==="object"&&$!==null)switch($.$$typeof){case I4:W=10;break $;case jY:W=9;break $;case YZ:W=11,R=uX(R);break $;case BG:W=14;break $;case M6:W=16,R=null;break $}if(R="",$===void 0||typeof $==="object"&&$!==null&&Object.keys($).length===0)R+=" 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":$5($)?G="array":$!==void 0&&$.$$typeof===C4?(G="<"+(a($.type)||"Unknown")+" />",R=" Did you accidentally export a JSX literal instead of a component?"):G=typeof $,(W=Y?q0(Y):null)&&(R+=`
72
72
 
73
- Check the render method of \``+W+"`."),W=29,J=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(J+"."+R)),R=null}return Z=P(W,J,Z,U),Z.elementType=$,Z.type=R,Z.lanes=B,Z._debugOwner=Y,Z}function KJ($,Z,J){return Z=hX($.type,$.key,$.props,$._owner,Z,J),Z._debugOwner=$._owner,Z._debugStack=$._debugStack,Z._debugTask=$._debugTask,Z}function s2($,Z,J,Y){return $=P(7,$,Y,Z),$.lanes=J,$}function uX($,Z,J){return $=P(6,$,null,Z),$.lanes=J,$}function _B($){var Z=P(18,null,null,C0);return Z.stateNode=$,Z}function xX($,Z,J){return Z=P(4,$.children!==null?$.children:[],$.key,Z),Z.lanes=J,Z.stateNode={containerInfo:$.containerInfo,pendingChildren:null,implementation:$.implementation},Z}function J6($,Z){if(typeof $==="object"&&$!==null){var J=qN.get($);if(J!==void 0)return J;return Z={value:$,source:Z,stack:m1(Z)},qN.set($,Z),Z}return{value:$,source:Z,stack:m1(Z)}}function l4($,Z){b8(),A7[j7++]=WZ,A7[j7++]=PG,PG=$,WZ=Z}function CB($,Z,J){b8(),E6[A6++]=$8,E6[A6++]=Z8,E6[A6++]=q9,q9=$;var Y=$8;$=Z8;var U=32-E5(Y)-1;Y&=~(1<<U),J+=1;var B=32-E5(Z)+U;if(30<B){var W=U-U%5;B=(Y&(1<<W)-1).toString(32),Y>>=W,U-=W,$8=1<<32-E5(Z)+U|J<<U|Y,Z8=B+$}else $8=1<<B|J<<U|Y,Z8=$}function mX($){b8(),$.return!==null&&(l4($,1),CB($,1,0))}function dX($){for(;$===PG;)PG=A7[--j7],A7[j7]=null,WZ=A7[--j7],A7[j7]=null;for(;$===q9;)q9=E6[--A6],E6[A6]=null,Z8=E6[--A6],E6[A6]=null,$8=E6[--A6],E6[A6]=null}function VB(){return b8(),q9!==null?{id:$8,overflow:Z8}:null}function IB($,Z){b8(),E6[A6++]=$8,E6[A6++]=Z8,E6[A6++]=q9,$8=Z.id,Z8=Z.overflow,q9=$}function b8(){r0||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function n2($,Z){if($.return===null){if(H6===null)H6={fiber:$,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:Z};else{if(H6.fiber!==$)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");H6.distanceFromLeaf>Z&&(H6.distanceFromLeaf=Z)}return H6}var J=n2($.return,Z+1).children;if(0<J.length&&J[J.length-1].fiber===$)return J=J[J.length-1],J.distanceFromLeaf>Z&&(J.distanceFromLeaf=Z),J;return Z={fiber:$,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:Z},J.push(Z),Z}function OB(){r0&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function BJ($,Z){A4||($=n2($,0),$.serverProps=null,Z!==null&&(Z=GF(Z),$.serverTail.push(Z)))}function k8($){var Z=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,J="",Y=H6;throw Y!==null&&(H6=null,J=EX(Y)),j$(J6(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:
73
+ Check the render method of \``+W+"`."),W=29,G=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(G+"."+R)),R=null}return Z=P(W,G,Z,U),Z.elementType=$,Z.type=R,Z.lanes=B,Z._debugOwner=Y,Z}function WJ($,Z,G){return Z=mX($.type,$.key,$.props,$._owner,Z,G),Z._debugOwner=$._owner,Z._debugStack=$._debugStack,Z._debugTask=$._debugTask,Z}function o2($,Z,G,Y){return $=P(7,$,Y,Z),$.lanes=G,$}function dX($,Z,G){return $=P(6,$,null,Z),$.lanes=G,$}function OB($){var Z=P(18,null,null,I0);return Z.stateNode=$,Z}function pX($,Z,G){return Z=P(4,$.children!==null?$.children:[],$.key,Z),Z.lanes=G,Z.stateNode={containerInfo:$.containerInfo,pendingChildren:null,implementation:$.implementation},Z}function Y6($,Z){if(typeof $==="object"&&$!==null){var G=UN.get($);if(G!==void 0)return G;return Z={value:$,source:Z,stack:p1(Z)},UN.set($,Z),Z}return{value:$,source:Z,stack:p1(Z)}}function n4($,Z){f8(),j7[D7++]=LZ,j7[D7++]=OG,OG=$,LZ=Z}function EB($,Z,G){f8(),j6[D6++]=J8,j6[D6++]=G8,j6[D6++]=N9,N9=$;var Y=J8;$=G8;var U=32-S5(Y)-1;Y&=~(1<<U),G+=1;var B=32-S5(Z)+U;if(30<B){var W=U-U%5;B=(Y&(1<<W)-1).toString(32),Y>>=W,U-=W,J8=1<<32-S5(Z)+U|G<<U|Y,G8=B+$}else J8=1<<B|G<<U|Y,G8=$}function cX($){f8(),$.return!==null&&(n4($,1),EB($,1,0))}function lX($){for(;$===OG;)OG=j7[--D7],j7[D7]=null,LZ=j7[--D7],j7[D7]=null;for(;$===N9;)N9=j6[--D6],j6[D6]=null,G8=j6[--D6],j6[D6]=null,J8=j6[--D6],j6[D6]=null}function AB(){return f8(),N9!==null?{id:J8,overflow:G8}:null}function SB($,Z){f8(),j6[D6++]=J8,j6[D6++]=G8,j6[D6++]=N9,J8=Z.id,G8=Z.overflow,N9=$}function f8(){s0||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function a2($,Z){if($.return===null){if(w6===null)w6={fiber:$,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:Z};else{if(w6.fiber!==$)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");w6.distanceFromLeaf>Z&&(w6.distanceFromLeaf=Z)}return w6}var G=a2($.return,Z+1).children;if(0<G.length&&G[G.length-1].fiber===$)return G=G[G.length-1],G.distanceFromLeaf>Z&&(G.distanceFromLeaf=Z),G;return Z={fiber:$,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:Z},G.push(Z),Z}function jB(){s0&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function wJ($,Z){j4||($=a2($,0),$.serverProps=null,Z!==null&&(Z=NF(Z),$.serverTail.push(Z)))}function y8($){var Z=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,G="",Y=w6;throw Y!==null&&(w6=null,G=jX(Y)),k$(Y6(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,J=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`+J),$)),YN}function EB($){var{stateNode:Z,type:J,memoizedProps:Y}=$;switch(Z[M5]=$,Z[A5]=Y,NY(J,Y),J){case"dialog":s0("cancel",Z),s0("close",Z);break;case"iframe":case"object":case"embed":s0("load",Z);break;case"video":case"audio":for(J=0;J<pZ.length;J++)s0(pZ[J],Z);break;case"source":s0("error",Z);break;case"img":case"image":case"link":s0("error",Z),s0("load",Z);break;case"details":s0("toggle",Z);break;case"input":v8("input",Y),s0("invalid",Z),bK(Z,Y),kK(Z,Y.value,Y.defaultValue,Y.checked,Y.defaultChecked,Y.type,Y.name,!0);break;case"option":fK(Z,Y);break;case"select":v8("select",Y),s0("invalid",Z),gK(Z,Y);break;case"textarea":v8("textarea",Y),s0("invalid",Z),hK(Z,Y),xK(Z,Y.value,Y.defaultValue,Y.children)}J=Y.children,typeof J!=="string"&&typeof J!=="number"&&typeof J!=="bigint"||Z.textContent===""+J||Y.suppressHydrationWarning===!0||cM(Z.textContent,J)?(Y.popover!=null&&(s0("beforetoggle",Z),s0("toggle",Z)),Y.onScroll!=null&&s0("scroll",Z),Y.onScrollEnd!=null&&s0("scrollend",Z),Y.onClick!=null&&(Z.onclick=p4),Z=!0):Z=!1,Z||k8($,!0)}function AB($){for(F5=$.return;F5;)switch(F5.tag){case 5:case 31:case 13:j6=!1;return;case 27:case 3:j6=!0;return;default:F5=F5.return}}function e9($){if($!==F5)return!1;if(!r0)return AB($),r0=!0,!1;var Z=$.tag,J;if(J=Z!==3&&Z!==27){if(J=Z===5)J=$.type,J=!(J!=="form"&&J!=="button")||MY($.type,$.memoizedProps);J=!J}if(J&&L1){for(J=L1;J;){var Y=n2($,0),U=GF(J);Y.serverTail.push(U),J=U.type==="Suspense"?RY(J):N6(J.nextSibling)}k8($)}if(AB($),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.");L1=RY($)}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.");L1=RY($)}else Z===27?(Z=L1,c8($.type)?($=aN,aN=null,L1=$):L1=Z):L1=F5?N6($.stateNode.nextSibling):null;return!0}function o2(){L1=F5=null,A4=r0=!1}function pX(){var $=e8;return $!==null&&(k5===null?k5=$:k5.push.apply(k5,$),e8=null),$}function j$($){e8===null?e8=[$]:e8.push($)}function cX(){var $=H6;if($!==null){H6=null;for(var Z=EX($);0<$.children.length;)$=$.children[0];G0($.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:
83
+ https://react.dev/link/hydration-mismatch`+G),$)),KN}function DB($){var{stateNode:Z,type:G,memoizedProps:Y}=$;switch(Z[F5]=$,Z[j5]=Y,BY(G,Y),G){case"dialog":n0("cancel",Z),n0("close",Z);break;case"iframe":case"object":case"embed":n0("load",Z);break;case"video":case"audio":for(G=0;G<nZ.length;G++)n0(nZ[G],Z);break;case"source":n0("error",Z);break;case"img":case"image":case"link":n0("error",Z),n0("load",Z);break;case"details":n0("toggle",Z);break;case"input":k8("input",Y),n0("invalid",Z),gK(Z,Y),hK(Z,Y.value,Y.defaultValue,Y.checked,Y.defaultChecked,Y.type,Y.name,!0);break;case"option":uK(Z,Y);break;case"select":k8("select",Y),n0("invalid",Z),mK(Z,Y);break;case"textarea":k8("textarea",Y),n0("invalid",Z),dK(Z,Y),cK(Z,Y.value,Y.defaultValue,Y.children)}G=Y.children,typeof G!=="string"&&typeof G!=="number"&&typeof G!=="bigint"||Z.textContent===""+G||Y.suppressHydrationWarning===!0||nM(Z.textContent,G)?(Y.popover!=null&&(n0("beforetoggle",Z),n0("toggle",Z)),Y.onScroll!=null&&n0("scroll",Z),Y.onScrollEnd!=null&&n0("scrollend",Z),Y.onClick!=null&&(Z.onclick=r4),Z=!0):Z=!1,Z||y8($,!0)}function vB($){for(W5=$.return;W5;)switch(W5.tag){case 5:case 31:case 13:v6=!1;return;case 27:case 3:v6=!0;return;default:W5=W5.return}}function Z7($){if($!==W5)return!1;if(!s0)return vB($),s0=!0,!1;var Z=$.tag,G;if(G=Z!==3&&Z!==27){if(G=Z===5)G=$.type,G=!(G!=="form"&&G!=="button")||wY($.type,$.memoizedProps);G=!G}if(G&&P1){for(G=P1;G;){var Y=a2($,0),U=NF(G);Y.serverTail.push(U),G=U.type==="Suspense"?LY(G):H6(G.nextSibling)}y8($)}if(vB($),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.");P1=LY($)}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.");P1=LY($)}else Z===27?(Z=P1,r8($.type)?($=eN,eN=null,P1=$):P1=Z):P1=W5?H6($.stateNode.nextSibling):null;return!0}function i2(){P1=W5=null,j4=s0=!1}function rX(){var $=Z2;return $!==null&&(y5===null?y5=$:y5.push.apply(y5,$),Z2=null),$}function k$($){Z2===null?Z2=[$]:Z2.push($)}function sX(){var $=w6;if($!==null){w6=null;for(var Z=jX($);0<$.children.length;)$=$.children[0];G0($.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,45 +90,45 @@ https://react.dev/link/hydration-mismatch`+J),$)),YN}function EB($){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 HJ(){S7=_G=null,D7=!1}function f8($,Z,J){_0(NN,Z._currentValue,$),Z._currentValue=J,_0(UN,Z._currentRenderer,$),Z._currentRenderer!==void 0&&Z._currentRenderer!==null&&Z._currentRenderer!==EW&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),Z._currentRenderer=EW}function r4($,Z){$._currentValue=NN.current;var J=UN.current;L0(UN,Z),$._currentRenderer=J,L0(NN,Z)}function lX($,Z,J){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),$===J)break;$=$.return}$!==J&&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 rX($,Z,J,Y){var U=$.child;U!==null&&(U.return=$);for(;U!==null;){var B=U.dependencies;if(B!==null){var W=U.child;B=B.firstContext;$:for(;B!==null;){var R=B;B=U;for(var L=0;L<Z.length;L++)if(R.context===Z[L]){B.lanes|=J,R=B.alternate,R!==null&&(R.lanes|=J),lX(B.return,J,$),Y||(W=null);break $}B=R.next}}else if(U.tag===18){if(W=U.return,W===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");W.lanes|=J,B=W.alternate,B!==null&&(B.lanes|=J),lX(W,J,$),W=null}else W=U.child;if(W!==null)W.return=U;else for(W=U;W!==null;){if(W===$){W=null;break}if(U=W.sibling,U!==null){U.return=W.return,W=U;break}W=W.return}U=W}}function $7($,Z,J,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 W=U.alternate;if(W===null)throw Error("Should have a current fiber. This is a bug in React.");if(W=W.memoizedProps,W!==null){var R=U.type;S5(U.pendingProps.value,W.value)||($!==null?$.push(R):$=[R])}}else if(U===YG.current){if(W=U.alternate,W===null)throw Error("Should have a current fiber. This is a bug in React.");W.memoizedState.memoizedState!==U.memoizedState.memoizedState&&($!==null?$.push(nZ):$=[nZ])}U=U.return}$!==null&&rX(Z,$,J,Y),Z.flags|=262144}function MJ($){for($=$.firstContext;$!==null;){if(!S5($.context._currentValue,$.memoizedValue))return!0;$=$.next}return!1}function a2($){_G=$,S7=null,$=$.dependencies,$!==null&&($.firstContext=null)}function V1($){return D7&&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()."),jB(_G,$)}function FJ($,Z){return _G===null&&a2($),jB($,Z)}function jB($,Z){var J=Z._currentValue;if(Z={context:Z,memoizedValue:J,next:null},S7===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().");S7=Z,$.dependencies={lanes:0,firstContext:Z,_debugThenableState:null},$.flags|=524288}else S7=S7.next=Z;return J}function sX(){return{controller:new mV,data:new Map,refCount:0}}function i2($){$.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),$.refCount++}function S$($){$.refCount--,0>$.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),$.refCount===0&&dV(pV,function(){$.controller.abort()})}function N4($,Z,J){if(($&127)!==0)0>j4&&(j4=p1(),RZ=CG(Z),KN=Z,J!=null&&(BN=d(J)),(a0&(e1|W6))!==N5&&(D1=!0,Q2=wZ),$=i$(),Z=a$(),$!==v7||Z!==zZ?v7=-1.1:Z!==null&&(Q2=wZ),N9=$,zZ=Z);else if(($&4194048)!==0&&0>S6&&(S6=p1(),TZ=CG(Z),AW=Z,J!=null&&(jW=d(J)),0>G8)){if($=i$(),Z=a$(),$!==G2||Z!==U9)G2=-1.1;J2=$,U9=Z}}function N_($){if(0>j4){j4=p1(),RZ=$._debugTask!=null?$._debugTask:null,(a0&(e1|W6))!==N5&&(Q2=wZ);var Z=i$(),J=a$();Z!==v7||J!==zZ?v7=-1.1:J!==null&&(Q2=wZ),N9=Z,zZ=J}if(0>S6&&(S6=p1(),TZ=$._debugTask!=null?$._debugTask:null,0>G8)){if($=i$(),Z=a$(),$!==G2||Z!==U9)G2=-1.1;J2=$,U9=Z}}function s4(){var $=Y9;return Y9=0,$}function WJ($){var Z=Y9;return Y9=$,Z}function D$($){var Z=Y9;return Y9+=$,Z}function wJ(){P0=T0=-1.1}function G6(){var $=T0;return T0=-1.1,$}function X6($){0<=$&&(T0=$)}function U4(){var $=E1;return E1=-0,$}function K4($){0<=$&&(E1=$)}function B4(){var $=I1;return I1=null,$}function H4(){var $=D1;return D1=!1,$}function nX($){D5=p1(),0>$.actualStartTime&&($.actualStartTime=D5)}function oX($){if(0<=D5){var Z=p1()-D5;$.actualDuration+=Z,$.selfBaseDuration=Z,D5=-1}}function SB($){if(0<=D5){var Z=p1()-D5;$.actualDuration+=Z,D5=-1}}function M4(){if(0<=D5){var $=p1(),Z=$-D5;D5=-1,Y9+=Z,E1+=Z,P0=$}}function DB($){I1===null&&(I1=[]),I1.push($),J8===null&&(J8=[]),J8.push($)}function F4(){D5=p1(),0>T0&&(T0=D5)}function v$($){for(var Z=$.child;Z;)$.actualDuration+=Z.actualDuration,Z=Z.sibling}function U_($,Z){if(PZ===null){var J=PZ=[];MN=0,K9=GY(),b7={status:"pending",value:void 0,then:function(Y){J.push(Y)}}}return MN++,Z.then(vB,vB),Z}function vB(){if(--MN===0&&(-1<S6||(G8=-1.1),PZ!==null)){b7!==null&&(b7.status="fulfilled");var $=PZ;PZ=null,K9=0,b7=null;for(var Z=0;Z<$.length;Z++)(0,$[Z])()}}function K_($,Z){var J=[],Y={status:"pending",value:null,reason:null,then:function(U){J.push(U)}};return $.then(function(){Y.status="fulfilled",Y.value=Z;for(var U=0;U<J.length;U++)(0,J[U])(Z)},function(U){Y.status="rejected",Y.reason=U;for(U=0;U<J.length;U++)(0,J[U])(void 0)}),Y}function aX(){var $=B9.current;return $!==null?$:F1.pooledCache}function RJ($,Z){Z===null?_0(B9,B9.current,$):_0(B9,Z.pool,$)}function bB(){var $=aX();return $===null?null:{parent:d1._currentValue,pool:$}}function kB(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function fB($){return $=$.status,$==="fulfilled"||$==="rejected"}function yB($,Z,J){x.actQueue!==null&&(x.didUsePromise=!0);var Y=$.thenables;if(J=Y[J],J===void 0?Y.push(Z):J!==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(p4,p4),Z=J),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,hB($),$;default:if(typeof Z.status==="string")Z.then(p4,p4);else{if($=F1,$!==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 W=Z;W.status="fulfilled",W.value=B}},function(B){if(Z.status==="pending"){var W=Z;W.status="rejected",W.reason=B}})}switch(Z.status){case"fulfilled":return Z.value;case"rejected":throw $=Z.reason,hB($),$}throw M9=Z,AZ=!0,k7}}function y8($){try{return sV($)}catch(Z){if(Z!==null&&typeof Z==="object"&&typeof Z.then==="function")throw M9=Z,AZ=!0,k7;throw Z}}function gB(){if(M9===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var $=M9;return M9=null,AZ=!1,$}function hB($){if($===k7||$===DG)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 K5($){var Z=f0;return $!=null&&(f0=Z===null?$:Z.concat($)),Z}function iX(){var $=f0;if($!=null){for(var Z=$.length-1;0<=Z;Z--)if($[Z].name!=null){var J=$[Z].debugTask;if(J!=null)return J}}return null}function zJ($,Z,J){for(var Y=Object.keys($.props),U=0;U<Y.length;U++){var B=Y[U];if(B!=="children"&&B!=="key"){Z===null&&(Z=KJ($,J.mode,0),Z._debugInfo=f0,Z.return=J),G0(Z,function(W){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",W)},B);break}}}function TJ($){var Z=jZ;return jZ+=1,f7===null&&(f7=kB()),yB(f7,$,Z)}function b$($,Z){Z=Z.props.ref,$.ref=Z!==void 0?Z:null}function uB($,Z){if(Z.$$typeof===OC)throw Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
93
+ %s%s`,"https://react.dev/link/hydration-mismatch",Z)})}}function RJ(){v7=EG=null,b7=!1}function g8($,Z,G){_0(BN,Z._currentValue,$),Z._currentValue=G,_0(HN,Z._currentRenderer,$),Z._currentRenderer!==void 0&&Z._currentRenderer!==null&&Z._currentRenderer!==DW&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),Z._currentRenderer=DW}function o4($,Z){$._currentValue=BN.current;var G=HN.current;L0(HN,Z),$._currentRenderer=G,L0(BN,Z)}function nX($,Z,G){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),$===G)break;$=$.return}$!==G&&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 oX($,Z,G,Y){var U=$.child;U!==null&&(U.return=$);for(;U!==null;){var B=U.dependencies;if(B!==null){var W=U.child;B=B.firstContext;$:for(;B!==null;){var R=B;B=U;for(var L=0;L<Z.length;L++)if(R.context===Z[L]){B.lanes|=G,R=B.alternate,R!==null&&(R.lanes|=G),nX(B.return,G,$),Y||(W=null);break $}B=R.next}}else if(U.tag===18){if(W=U.return,W===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");W.lanes|=G,B=W.alternate,B!==null&&(B.lanes|=G),nX(W,G,$),W=null}else W=U.child;if(W!==null)W.return=U;else for(W=U;W!==null;){if(W===$){W=null;break}if(U=W.sibling,U!==null){U.return=W.return,W=U;break}W=W.return}U=W}}function Q7($,Z,G,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 W=U.alternate;if(W===null)throw Error("Should have a current fiber. This is a bug in React.");if(W=W.memoizedProps,W!==null){var R=U.type;v5(U.pendingProps.value,W.value)||($!==null?$.push(R):$=[R])}}else if(U===HG.current){if(W=U.alternate,W===null)throw Error("Should have a current fiber. This is a bug in React.");W.memoizedState.memoizedState!==U.memoizedState.memoizedState&&($!==null?$.push(eZ):$=[eZ])}U=U.return}$!==null&&oX(Z,$,G,Y),Z.flags|=262144}function zJ($){for($=$.firstContext;$!==null;){if(!v5($.context._currentValue,$.memoizedValue))return!0;$=$.next}return!1}function t2($){EG=$,v7=null,$=$.dependencies,$!==null&&($.firstContext=null)}function O1($){return b7&&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()."),bB(EG,$)}function TJ($,Z){return EG===null&&t2($),bB($,Z)}function bB($,Z){var G=Z._currentValue;if(Z={context:Z,memoizedValue:G,next:null},v7===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().");v7=Z,$.dependencies={lanes:0,firstContext:Z,_debugThenableState:null},$.flags|=524288}else v7=v7.next=Z;return G}function aX(){return{controller:new sI,data:new Map,refCount:0}}function e2($){$.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),$.refCount++}function f$($){$.refCount--,0>$.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),$.refCount===0&&nI(oI,function(){$.controller.abort()})}function K4($,Z,G){if(($&127)!==0)0>D4&&(D4=l1(),_Z=AG(Z),MN=Z,G!=null&&(FN=d(G)),(i0&(Q5|T6))!==K5&&(v1=!0,G2=PZ),$=QZ(),Z=ZZ(),$!==k7||Z!==CZ?k7=-1.1:Z!==null&&(G2=PZ),K9=$,CZ=Z);else if(($&4194048)!==0&&0>b6&&(b6=l1(),IZ=AG(Z),vW=Z,G!=null&&(bW=d(G)),0>Y8)){if($=QZ(),Z=ZZ(),$!==q2||Z!==B9)q2=-1.1;X2=$,B9=Z}}function F_($){if(0>D4){D4=l1(),_Z=$._debugTask!=null?$._debugTask:null,(i0&(Q5|T6))!==K5&&(G2=PZ);var Z=QZ(),G=ZZ();Z!==k7||G!==CZ?k7=-1.1:G!==null&&(G2=PZ),K9=Z,CZ=G}if(0>b6&&(b6=l1(),IZ=$._debugTask!=null?$._debugTask:null,0>Y8)){if($=QZ(),Z=ZZ(),$!==q2||Z!==B9)q2=-1.1;X2=$,B9=Z}}function a4(){var $=U9;return U9=0,$}function LJ($){var Z=U9;return U9=$,Z}function y$($){var Z=U9;return U9+=$,Z}function PJ(){P0=T0=-1.1}function N6(){var $=T0;return T0=-1.1,$}function U6($){0<=$&&(T0=$)}function B4(){var $=A1;return A1=-0,$}function H4($){0<=$&&(A1=$)}function M4(){var $=E1;return E1=null,$}function F4(){var $=v1;return v1=!1,$}function iX($){b5=l1(),0>$.actualStartTime&&($.actualStartTime=b5)}function tX($){if(0<=b5){var Z=l1()-b5;$.actualDuration+=Z,$.selfBaseDuration=Z,b5=-1}}function kB($){if(0<=b5){var Z=l1()-b5;$.actualDuration+=Z,b5=-1}}function W4(){if(0<=b5){var $=l1(),Z=$-b5;b5=-1,U9+=Z,A1+=Z,P0=$}}function fB($){E1===null&&(E1=[]),E1.push($),q8===null&&(q8=[]),q8.push($)}function w4(){b5=l1(),0>T0&&(T0=b5)}function g$($){for(var Z=$.child;Z;)$.actualDuration+=Z.actualDuration,Z=Z.sibling}function W_($,Z){if(OZ===null){var G=OZ=[];wN=0,H9=YY(),f7={status:"pending",value:void 0,then:function(Y){G.push(Y)}}}return wN++,Z.then(yB,yB),Z}function yB(){if(--wN===0&&(-1<b6||(Y8=-1.1),OZ!==null)){f7!==null&&(f7.status="fulfilled");var $=OZ;OZ=null,H9=0,f7=null;for(var Z=0;Z<$.length;Z++)(0,$[Z])()}}function w_($,Z){var G=[],Y={status:"pending",value:null,reason:null,then:function(U){G.push(U)}};return $.then(function(){Y.status="fulfilled",Y.value=Z;for(var U=0;U<G.length;U++)(0,G[U])(Z)},function(U){Y.status="rejected",Y.reason=U;for(U=0;U<G.length;U++)(0,G[U])(void 0)}),Y}function eX(){var $=M9.current;return $!==null?$:W1.pooledCache}function _J($,Z){Z===null?_0(M9,M9.current,$):_0(M9,Z.pool,$)}function gB(){var $=eX();return $===null?null:{parent:c1._currentValue,pool:$}}function hB(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function uB($){return $=$.status,$==="fulfilled"||$==="rejected"}function xB($,Z,G){x.actQueue!==null&&(x.didUsePromise=!0);var Y=$.thenables;if(G=Y[G],G===void 0?Y.push(Z):G!==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(r4,r4),Z=G),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,dB($),$;default:if(typeof Z.status==="string")Z.then(r4,r4);else{if($=W1,$!==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 W=Z;W.status="fulfilled",W.value=B}},function(B){if(Z.status==="pending"){var W=Z;W.status="rejected",W.reason=B}})}switch(Z.status){case"fulfilled":return Z.value;case"rejected":throw $=Z.reason,dB($),$}throw W9=Z,bZ=!0,y7}}function h8($){try{return eI($)}catch(Z){if(Z!==null&&typeof Z==="object"&&typeof Z.then==="function")throw W9=Z,bZ=!0,y7;throw Z}}function mB(){if(W9===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var $=W9;return W9=null,bZ=!1,$}function dB($){if($===y7||$===yG)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 B5($){var Z=y0;return $!=null&&(y0=Z===null?$:Z.concat($)),Z}function $q(){var $=y0;if($!=null){for(var Z=$.length-1;0<=Z;Z--)if($[Z].name!=null){var G=$[Z].debugTask;if(G!=null)return G}}return null}function CJ($,Z,G){for(var Y=Object.keys($.props),U=0;U<Y.length;U++){var B=Y[U];if(B!=="children"&&B!=="key"){Z===null&&(Z=WJ($,G.mode,0),Z._debugInfo=y0,Z.return=G),G0(Z,function(W){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",W)},B);break}}}function IJ($){var Z=kZ;return kZ+=1,g7===null&&(g7=hB()),xB(g7,$,Z)}function h$($,Z){Z=Z.props.ref,$.ref=Z!==void 0?Z:null}function pB($,Z){if(Z.$$typeof===vC)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 LJ($,Z){var J=iX();J!==null?J.run(uB.bind(null,$,Z)):uB($,Z)}function xB($,Z){var J=d($)||"Component";oW[J]||(oW[J]=!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.
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 VJ($,Z){var G=$q();G!==null?G.run(pB.bind(null,$,Z)):pB($,Z)}function cB($,Z){var G=d($)||"Component";eW[G]||(eW[G]=!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,J,Z,J))}function PJ($,Z){var J=iX();J!==null?J.run(xB.bind(null,$,Z)):xB($,Z)}function mB($,Z){var J=d($)||"Component";aW[J]||(aW[J]=!0,Z=String(Z),$.tag===3?console.error(`Symbols are not valid as a React child.
98
+ <%s>{%s}</%s>`,Z,Z,G,Z,G))}function OJ($,Z){var G=$q();G!==null?G.run(cB.bind(null,$,Z)):cB($,Z)}function lB($,Z){var G=d($)||"Component";$w[G]||($w[G]=!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>`,J,Z,J))}function _J($,Z){var J=iX();J!==null?J.run(mB.bind(null,$,Z)):mB($,Z)}function dB($){function Z(E,S){if($){var b=E.deletions;b===null?(E.deletions=[S],E.flags|=16):b.push(S)}}function J(E,S){if(!$)return null;for(;S!==null;)Z(E,S),S=S.sibling;return null}function Y(E){for(var S=new Map;E!==null;)E.key!==null?S.set(E.key,E):S.set(E.index,E),E=E.sibling;return S}function U(E,S){return E=c4(E,S),E.index=0,E.sibling=null,E}function B(E,S,b){if(E.index=b,!$)return E.flags|=1048576,S;if(b=E.alternate,b!==null)return b=b.index,b<S?(E.flags|=67108866,S):b;return E.flags|=67108866,S}function W(E){return $&&E.alternate===null&&(E.flags|=67108866),E}function R(E,S,b,m){if(S===null||S.tag!==6)return S=uX(b,E.mode,m),S.return=E,S._debugOwner=E,S._debugTask=E._debugTask,S._debugInfo=f0,S;return S=U(S,b),S.return=E,S._debugInfo=f0,S}function L(E,S,b,m){var Z0=b.type;if(Z0===W7)return S=k(E,S,b.props.children,m,b.key),zJ(b,S,E),S;if(S!==null&&(S.elementType===Z0||zB(S,b)||typeof Z0==="object"&&Z0!==null&&Z0.$$typeof===U6&&y8(Z0)===S.type))return S=U(S,b.props),b$(S,b),S.return=E,S._debugOwner=b._owner,S._debugInfo=f0,S;return S=KJ(b,E.mode,m),b$(S,b),S.return=E,S._debugInfo=f0,S}function _(E,S,b,m){if(S===null||S.tag!==4||S.stateNode.containerInfo!==b.containerInfo||S.stateNode.implementation!==b.implementation)return S=xX(b,E.mode,m),S.return=E,S._debugInfo=f0,S;return S=U(S,b.children||[]),S.return=E,S._debugInfo=f0,S}function k(E,S,b,m,Z0){if(S===null||S.tag!==7)return S=s2(b,E.mode,m,Z0),S.return=E,S._debugOwner=E,S._debugTask=E._debugTask,S._debugInfo=f0,S;return S=U(S,b),S.return=E,S._debugInfo=f0,S}function f(E,S,b){if(typeof S==="string"&&S!==""||typeof S==="number"||typeof S==="bigint")return S=uX(""+S,E.mode,b),S.return=E,S._debugOwner=E,S._debugTask=E._debugTask,S._debugInfo=f0,S;if(typeof S==="object"&&S!==null){switch(S.$$typeof){case P4:return b=KJ(S,E.mode,b),b$(b,S),b.return=E,E=K5(S._debugInfo),b._debugInfo=f0,f0=E,b;case F7:return S=xX(S,E.mode,b),S.return=E,S._debugInfo=f0,S;case U6:var m=K5(S._debugInfo);return S=y8(S),E=f(E,S,b),f0=m,E}if(i1(S)||i(S))return b=s2(S,E.mode,b,null),b.return=E,b._debugOwner=E,b._debugTask=E._debugTask,E=K5(S._debugInfo),b._debugInfo=f0,f0=E,b;if(typeof S.then==="function")return m=K5(S._debugInfo),E=f(E,TJ(S),b),f0=m,E;if(S.$$typeof===_4)return f(E,FJ(E,S),b);LJ(E,S)}return typeof S==="function"&&PJ(E,S),typeof S==="symbol"&&_J(E,S),null}function j(E,S,b,m){var Z0=S!==null?S.key:null;if(typeof b==="string"&&b!==""||typeof b==="number"||typeof b==="bigint")return Z0!==null?null:R(E,S,""+b,m);if(typeof b==="object"&&b!==null){switch(b.$$typeof){case P4:return b.key===Z0?(Z0=K5(b._debugInfo),E=L(E,S,b,m),f0=Z0,E):null;case F7:return b.key===Z0?_(E,S,b,m):null;case U6:return Z0=K5(b._debugInfo),b=y8(b),E=j(E,S,b,m),f0=Z0,E}if(i1(b)||i(b)){if(Z0!==null)return null;return Z0=K5(b._debugInfo),E=k(E,S,b,m,null),f0=Z0,E}if(typeof b.then==="function")return Z0=K5(b._debugInfo),E=j(E,S,TJ(b),m),f0=Z0,E;if(b.$$typeof===_4)return j(E,S,FJ(E,b),m);LJ(E,b)}return typeof b==="function"&&PJ(E,b),typeof b==="symbol"&&_J(E,b),null}function g(E,S,b,m,Z0){if(typeof m==="string"&&m!==""||typeof m==="number"||typeof m==="bigint")return E=E.get(b)||null,R(S,E,""+m,Z0);if(typeof m==="object"&&m!==null){switch(m.$$typeof){case P4:return b=E.get(m.key===null?b:m.key)||null,E=K5(m._debugInfo),S=L(S,b,m,Z0),f0=E,S;case F7:return E=E.get(m.key===null?b:m.key)||null,_(S,E,m,Z0);case U6:var I0=K5(m._debugInfo);return m=y8(m),S=g(E,S,b,m,Z0),f0=I0,S}if(i1(m)||i(m))return b=E.get(b)||null,E=K5(m._debugInfo),S=k(S,b,m,Z0,null),f0=E,S;if(typeof m.then==="function")return I0=K5(m._debugInfo),S=g(E,S,b,TJ(m),Z0),f0=I0,S;if(m.$$typeof===_4)return g(E,S,b,FJ(S,m),Z0);LJ(S,m)}return typeof m==="function"&&PJ(S,m),typeof m==="symbol"&&_J(S,m),null}function e(E,S,b,m){if(typeof b!=="object"||b===null)return m;switch(b.$$typeof){case P4:case F7:z(E,S,b);var Z0=b.key;if(typeof Z0!=="string")break;if(m===null){m=new Set,m.add(Z0);break}if(!m.has(Z0)){m.add(Z0);break}G0(S,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.",Z0)});break;case U6:b=y8(b),e(E,S,b,m)}return m}function J0(E,S,b,m){for(var Z0=null,I0=null,w0=null,U0=S,v0=S=0,P1=null;U0!==null&&v0<b.length;v0++){U0.index>v0?(P1=U0,U0=null):P1=U0.sibling;var h1=j(E,U0,b[v0],m);if(h1===null){U0===null&&(U0=P1);break}Z0=e(E,h1,b[v0],Z0),$&&U0&&h1.alternate===null&&Z(E,U0),S=B(h1,S,v0),w0===null?I0=h1:w0.sibling=h1,w0=h1,U0=P1}if(v0===b.length)return J(E,U0),r0&&l4(E,v0),I0;if(U0===null){for(;v0<b.length;v0++)U0=f(E,b[v0],m),U0!==null&&(Z0=e(E,U0,b[v0],Z0),S=B(U0,S,v0),w0===null?I0=U0:w0.sibling=U0,w0=U0);return r0&&l4(E,v0),I0}for(U0=Y(U0);v0<b.length;v0++)P1=g(U0,E,v0,b[v0],m),P1!==null&&(Z0=e(E,P1,b[v0],Z0),$&&P1.alternate!==null&&U0.delete(P1.key===null?v0:P1.key),S=B(P1,S,v0),w0===null?I0=P1:w0.sibling=P1,w0=P1);return $&&U0.forEach(function(M8){return Z(E,M8)}),r0&&l4(E,v0),I0}function R1(E,S,b,m){if(b==null)throw Error("An iterable object provided no iterator.");for(var Z0=null,I0=null,w0=S,U0=S=0,v0=null,P1=null,h1=b.next();w0!==null&&!h1.done;U0++,h1=b.next()){w0.index>U0?(v0=w0,w0=null):v0=w0.sibling;var M8=j(E,w0,h1.value,m);if(M8===null){w0===null&&(w0=v0);break}P1=e(E,M8,h1.value,P1),$&&w0&&M8.alternate===null&&Z(E,w0),S=B(M8,S,U0),I0===null?Z0=M8:I0.sibling=M8,I0=M8,w0=v0}if(h1.done)return J(E,w0),r0&&l4(E,U0),Z0;if(w0===null){for(;!h1.done;U0++,h1=b.next())w0=f(E,h1.value,m),w0!==null&&(P1=e(E,w0,h1.value,P1),S=B(w0,S,U0),I0===null?Z0=w0:I0.sibling=w0,I0=w0);return r0&&l4(E,U0),Z0}for(w0=Y(w0);!h1.done;U0++,h1=b.next())v0=g(w0,E,U0,h1.value,m),v0!==null&&(P1=e(E,v0,h1.value,P1),$&&v0.alternate!==null&&w0.delete(v0.key===null?U0:v0.key),S=B(v0,S,U0),I0===null?Z0=v0:I0.sibling=v0,I0=v0);return $&&w0.forEach(function(RI){return Z(E,RI)}),r0&&l4(E,U0),Z0}function n0(E,S,b,m){if(typeof b==="object"&&b!==null&&b.type===W7&&b.key===null&&(zJ(b,null,E),b=b.props.children),typeof b==="object"&&b!==null){switch(b.$$typeof){case P4:var Z0=K5(b._debugInfo);$:{for(var I0=b.key;S!==null;){if(S.key===I0){if(I0=b.type,I0===W7){if(S.tag===7){J(E,S.sibling),m=U(S,b.props.children),m.return=E,m._debugOwner=b._owner,m._debugInfo=f0,zJ(b,m,E),E=m;break $}}else if(S.elementType===I0||zB(S,b)||typeof I0==="object"&&I0!==null&&I0.$$typeof===U6&&y8(I0)===S.type){J(E,S.sibling),m=U(S,b.props),b$(m,b),m.return=E,m._debugOwner=b._owner,m._debugInfo=f0,E=m;break $}J(E,S);break}else Z(E,S);S=S.sibling}b.type===W7?(m=s2(b.props.children,E.mode,m,b.key),m.return=E,m._debugOwner=E,m._debugTask=E._debugTask,m._debugInfo=f0,zJ(b,m,E),E=m):(m=KJ(b,E.mode,m),b$(m,b),m.return=E,m._debugInfo=f0,E=m)}return E=W(E),f0=Z0,E;case F7:$:{Z0=b;for(b=Z0.key;S!==null;){if(S.key===b)if(S.tag===4&&S.stateNode.containerInfo===Z0.containerInfo&&S.stateNode.implementation===Z0.implementation){J(E,S.sibling),m=U(S,Z0.children||[]),m.return=E,E=m;break $}else{J(E,S);break}else Z(E,S);S=S.sibling}m=xX(Z0,E.mode,m),m.return=E,E=m}return W(E);case U6:return Z0=K5(b._debugInfo),b=y8(b),E=n0(E,S,b,m),f0=Z0,E}if(i1(b))return Z0=K5(b._debugInfo),E=J0(E,S,b,m),f0=Z0,E;if(i(b)){if(Z0=K5(b._debugInfo),I0=i(b),typeof I0!=="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var w0=I0.call(b);if(w0===b){if(E.tag!==0||Object.prototype.toString.call(E.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(w0)!=="[object Generator]")sW||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."),sW=!0}else b.entries!==I0||RN||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),RN=!0);return E=R1(E,S,w0,m),f0=Z0,E}if(typeof b.then==="function")return Z0=K5(b._debugInfo),E=n0(E,S,TJ(b),m),f0=Z0,E;if(b.$$typeof===_4)return n0(E,S,FJ(E,b),m);LJ(E,b)}if(typeof b==="string"&&b!==""||typeof b==="number"||typeof b==="bigint")return Z0=""+b,S!==null&&S.tag===6?(J(E,S.sibling),m=U(S,Z0),m.return=E,E=m):(J(E,S),m=uX(Z0,E.mode,m),m.return=E,m._debugOwner=E,m._debugTask=E._debugTask,m._debugInfo=f0,E=m),W(E);return typeof b==="function"&&PJ(E,b),typeof b==="symbol"&&_J(E,b),J(E,S)}return function(E,S,b,m){var Z0=f0;f0=null;try{jZ=0;var I0=n0(E,S,b,m);return f7=null,I0}catch(P1){if(P1===k7||P1===DG)throw P1;var w0=P(29,P1,null,E.mode);w0.lanes=m,w0.return=E;var U0=w0._debugInfo=f0;if(w0._debugOwner=E._debugOwner,w0._debugTask=E._debugTask,U0!=null){for(var v0=U0.length-1;0<=v0;v0--)if(typeof U0[v0].stack==="string"){w0._debugOwner=U0[v0],w0._debugTask=U0[v0].debugTask;break}}return w0}finally{f0=Z0}}}function pB($,Z){var J=i1($);return $=!J&&typeof i($)==="function",J||$?(J=J?"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>",J,Z,J),!1):!0}function tX($){$.updateQueue={baseState:$.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function eX($,Z){$=$.updateQueue,Z.updateQueue===$&&(Z.updateQueue={baseState:$.baseState,firstBaseUpdate:$.firstBaseUpdate,lastBaseUpdate:$.lastBaseUpdate,shared:$.shared,callbacks:null})}function g8($){return{lane:$,tag:tW,payload:null,callback:null,next:null}}function h8($,Z,J){var Y=$.updateQueue;if(Y===null)return null;if(Y=Y.shared,TN===Y&&!Zw){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>`,G,Z,G))}function EJ($,Z){var G=$q();G!==null?G.run(lB.bind(null,$,Z)):lB($,Z)}function rB($){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=s4(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 R(E,j,b,m){if(j===null||j.tag!==6)return j=dX(b,E.mode,m),j.return=E,j._debugOwner=E,j._debugTask=E._debugTask,j._debugInfo=y0,j;return j=U(j,b),j.return=E,j._debugInfo=y0,j}function L(E,j,b,m){var Z0=b.type;if(Z0===R7)return j=k(E,j,b.props.children,m,b.key),CJ(b,j,E),j;if(j!==null&&(j.elementType===Z0||_B(j,b)||typeof Z0==="object"&&Z0!==null&&Z0.$$typeof===M6&&h8(Z0)===j.type))return j=U(j,b.props),h$(j,b),j.return=E,j._debugOwner=b._owner,j._debugInfo=y0,j;return j=WJ(b,E.mode,m),h$(j,b),j.return=E,j._debugInfo=y0,j}function _(E,j,b,m){if(j===null||j.tag!==4||j.stateNode.containerInfo!==b.containerInfo||j.stateNode.implementation!==b.implementation)return j=pX(b,E.mode,m),j.return=E,j._debugInfo=y0,j;return j=U(j,b.children||[]),j.return=E,j._debugInfo=y0,j}function k(E,j,b,m,Z0){if(j===null||j.tag!==7)return j=o2(b,E.mode,m,Z0),j.return=E,j._debugOwner=E,j._debugTask=E._debugTask,j._debugInfo=y0,j;return j=U(j,b),j.return=E,j._debugInfo=y0,j}function f(E,j,b){if(typeof j==="string"&&j!==""||typeof j==="number"||typeof j==="bigint")return j=dX(""+j,E.mode,b),j.return=E,j._debugOwner=E,j._debugTask=E._debugTask,j._debugInfo=y0,j;if(typeof j==="object"&&j!==null){switch(j.$$typeof){case C4:return b=WJ(j,E.mode,b),h$(b,j),b.return=E,E=B5(j._debugInfo),b._debugInfo=y0,y0=E,b;case w7:return j=pX(j,E.mode,b),j.return=E,j._debugInfo=y0,j;case M6:var m=B5(j._debugInfo);return j=h8(j),E=f(E,j,b),y0=m,E}if($5(j)||t(j))return b=o2(j,E.mode,b,null),b.return=E,b._debugOwner=E,b._debugTask=E._debugTask,E=B5(j._debugInfo),b._debugInfo=y0,y0=E,b;if(typeof j.then==="function")return m=B5(j._debugInfo),E=f(E,IJ(j),b),y0=m,E;if(j.$$typeof===I4)return f(E,TJ(E,j),b);VJ(E,j)}return typeof j==="function"&&OJ(E,j),typeof j==="symbol"&&EJ(E,j),null}function S(E,j,b,m){var Z0=j!==null?j.key:null;if(typeof b==="string"&&b!==""||typeof b==="number"||typeof b==="bigint")return Z0!==null?null:R(E,j,""+b,m);if(typeof b==="object"&&b!==null){switch(b.$$typeof){case C4:return b.key===Z0?(Z0=B5(b._debugInfo),E=L(E,j,b,m),y0=Z0,E):null;case w7:return b.key===Z0?_(E,j,b,m):null;case M6:return Z0=B5(b._debugInfo),b=h8(b),E=S(E,j,b,m),y0=Z0,E}if($5(b)||t(b)){if(Z0!==null)return null;return Z0=B5(b._debugInfo),E=k(E,j,b,m,null),y0=Z0,E}if(typeof b.then==="function")return Z0=B5(b._debugInfo),E=S(E,j,IJ(b),m),y0=Z0,E;if(b.$$typeof===I4)return S(E,j,TJ(E,b),m);VJ(E,b)}return typeof b==="function"&&OJ(E,b),typeof b==="symbol"&&EJ(E,b),null}function g(E,j,b,m,Z0){if(typeof m==="string"&&m!==""||typeof m==="number"||typeof m==="bigint")return E=E.get(b)||null,R(j,E,""+m,Z0);if(typeof m==="object"&&m!==null){switch(m.$$typeof){case C4:return b=E.get(m.key===null?b:m.key)||null,E=B5(m._debugInfo),j=L(j,b,m,Z0),y0=E,j;case w7:return E=E.get(m.key===null?b:m.key)||null,_(j,E,m,Z0);case M6:var O0=B5(m._debugInfo);return m=h8(m),j=g(E,j,b,m,Z0),y0=O0,j}if($5(m)||t(m))return b=E.get(b)||null,E=B5(m._debugInfo),j=k(j,b,m,Z0,null),y0=E,j;if(typeof m.then==="function")return O0=B5(m._debugInfo),j=g(E,j,b,IJ(m),Z0),y0=O0,j;if(m.$$typeof===I4)return g(E,j,b,TJ(j,m),Z0);VJ(j,m)}return typeof m==="function"&&OJ(j,m),typeof m==="symbol"&&EJ(j,m),null}function e(E,j,b,m){if(typeof b!=="object"||b===null)return m;switch(b.$$typeof){case C4:case w7:z(E,j,b);var Z0=b.key;if(typeof Z0!=="string")break;if(m===null){m=new Set,m.add(Z0);break}if(!m.has(Z0)){m.add(Z0);break}G0(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.",Z0)});break;case M6:b=h8(b),e(E,j,b,m)}return m}function J0(E,j,b,m){for(var Z0=null,O0=null,R0=null,U0=j,b0=j=0,_1=null;U0!==null&&b0<b.length;b0++){U0.index>b0?(_1=U0,U0=null):_1=U0.sibling;var x1=S(E,U0,b[b0],m);if(x1===null){U0===null&&(U0=_1);break}Z0=e(E,x1,b[b0],Z0),$&&U0&&x1.alternate===null&&Z(E,U0),j=B(x1,j,b0),R0===null?O0=x1:R0.sibling=x1,R0=x1,U0=_1}if(b0===b.length)return G(E,U0),s0&&n4(E,b0),O0;if(U0===null){for(;b0<b.length;b0++)U0=f(E,b[b0],m),U0!==null&&(Z0=e(E,U0,b[b0],Z0),j=B(U0,j,b0),R0===null?O0=U0:R0.sibling=U0,R0=U0);return s0&&n4(E,b0),O0}for(U0=Y(U0);b0<b.length;b0++)_1=g(U0,E,b0,b[b0],m),_1!==null&&(Z0=e(E,_1,b[b0],Z0),$&&_1.alternate!==null&&U0.delete(_1.key===null?b0:_1.key),j=B(_1,j,b0),R0===null?O0=_1:R0.sibling=_1,R0=_1);return $&&U0.forEach(function(w8){return Z(E,w8)}),s0&&n4(E,b0),O0}function z1(E,j,b,m){if(b==null)throw Error("An iterable object provided no iterator.");for(var Z0=null,O0=null,R0=j,U0=j=0,b0=null,_1=null,x1=b.next();R0!==null&&!x1.done;U0++,x1=b.next()){R0.index>U0?(b0=R0,R0=null):b0=R0.sibling;var w8=S(E,R0,x1.value,m);if(w8===null){R0===null&&(R0=b0);break}_1=e(E,w8,x1.value,_1),$&&R0&&w8.alternate===null&&Z(E,R0),j=B(w8,j,U0),O0===null?Z0=w8:O0.sibling=w8,O0=w8,R0=b0}if(x1.done)return G(E,R0),s0&&n4(E,U0),Z0;if(R0===null){for(;!x1.done;U0++,x1=b.next())R0=f(E,x1.value,m),R0!==null&&(_1=e(E,R0,x1.value,_1),j=B(R0,j,U0),O0===null?Z0=R0:O0.sibling=R0,O0=R0);return s0&&n4(E,U0),Z0}for(R0=Y(R0);!x1.done;U0++,x1=b.next())b0=g(R0,E,U0,x1.value,m),b0!==null&&(_1=e(E,b0,x1.value,_1),$&&b0.alternate!==null&&R0.delete(b0.key===null?U0:b0.key),j=B(b0,j,U0),O0===null?Z0=b0:O0.sibling=b0,O0=b0);return $&&R0.forEach(function(CV){return Z(E,CV)}),s0&&n4(E,U0),Z0}function o0(E,j,b,m){if(typeof b==="object"&&b!==null&&b.type===R7&&b.key===null&&(CJ(b,null,E),b=b.props.children),typeof b==="object"&&b!==null){switch(b.$$typeof){case C4:var Z0=B5(b._debugInfo);$:{for(var O0=b.key;j!==null;){if(j.key===O0){if(O0=b.type,O0===R7){if(j.tag===7){G(E,j.sibling),m=U(j,b.props.children),m.return=E,m._debugOwner=b._owner,m._debugInfo=y0,CJ(b,m,E),E=m;break $}}else if(j.elementType===O0||_B(j,b)||typeof O0==="object"&&O0!==null&&O0.$$typeof===M6&&h8(O0)===j.type){G(E,j.sibling),m=U(j,b.props),h$(m,b),m.return=E,m._debugOwner=b._owner,m._debugInfo=y0,E=m;break $}G(E,j);break}else Z(E,j);j=j.sibling}b.type===R7?(m=o2(b.props.children,E.mode,m,b.key),m.return=E,m._debugOwner=E,m._debugTask=E._debugTask,m._debugInfo=y0,CJ(b,m,E),E=m):(m=WJ(b,E.mode,m),h$(m,b),m.return=E,m._debugInfo=y0,E=m)}return E=W(E),y0=Z0,E;case w7:$:{Z0=b;for(b=Z0.key;j!==null;){if(j.key===b)if(j.tag===4&&j.stateNode.containerInfo===Z0.containerInfo&&j.stateNode.implementation===Z0.implementation){G(E,j.sibling),m=U(j,Z0.children||[]),m.return=E,E=m;break $}else{G(E,j);break}else Z(E,j);j=j.sibling}m=pX(Z0,E.mode,m),m.return=E,E=m}return W(E);case M6:return Z0=B5(b._debugInfo),b=h8(b),E=o0(E,j,b,m),y0=Z0,E}if($5(b))return Z0=B5(b._debugInfo),E=J0(E,j,b,m),y0=Z0,E;if(t(b)){if(Z0=B5(b._debugInfo),O0=t(b),typeof O0!=="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=O0.call(b);if(R0===b){if(E.tag!==0||Object.prototype.toString.call(E.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(R0)!=="[object Generator]")iW||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."),iW=!0}else b.entries!==O0||LN||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),LN=!0);return E=z1(E,j,R0,m),y0=Z0,E}if(typeof b.then==="function")return Z0=B5(b._debugInfo),E=o0(E,j,IJ(b),m),y0=Z0,E;if(b.$$typeof===I4)return o0(E,j,TJ(E,b),m);VJ(E,b)}if(typeof b==="string"&&b!==""||typeof b==="number"||typeof b==="bigint")return Z0=""+b,j!==null&&j.tag===6?(G(E,j.sibling),m=U(j,Z0),m.return=E,E=m):(G(E,j),m=dX(Z0,E.mode,m),m.return=E,m._debugOwner=E,m._debugTask=E._debugTask,m._debugInfo=y0,E=m),W(E);return typeof b==="function"&&OJ(E,b),typeof b==="symbol"&&EJ(E,b),G(E,j)}return function(E,j,b,m){var Z0=y0;y0=null;try{kZ=0;var O0=o0(E,j,b,m);return g7=null,O0}catch(_1){if(_1===y7||_1===yG)throw _1;var R0=P(29,_1,null,E.mode);R0.lanes=m,R0.return=E;var U0=R0._debugInfo=y0;if(R0._debugOwner=E._debugOwner,R0._debugTask=E._debugTask,U0!=null){for(var b0=U0.length-1;0<=b0;b0--)if(typeof U0[b0].stack==="string"){R0._debugOwner=U0[b0],R0._debugTask=U0[b0].debugTask;break}}return R0}finally{y0=Z0}}}function sB($,Z){var G=$5($);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 Zq($){$.updateQueue={baseState:$.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Qq($,Z){$=$.updateQueue,Z.updateQueue===$&&(Z.updateQueue={baseState:$.baseState,firstBaseUpdate:$.firstBaseUpdate,lastBaseUpdate:$.lastBaseUpdate,shared:$.shared,callbacks:null})}function u8($){return{lane:$,tag:Qw,payload:null,callback:null,next:null}}function x8($,Z,G){var Y=$.updateQueue;if(Y===null)return null;if(Y=Y.shared,_N===Y&&!Xw){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),Zw=!0}if((a0&e1)!==N5)return U=Y.pending,U===null?Z.next=Z:(Z.next=U.next,U.next=Z),Y.pending=Z,Z=UJ($),RB($,null,J),Z;return NJ($,Y,Z,J),UJ($)}function k$($,Z,J){if(Z=Z.updateQueue,Z!==null&&(Z=Z.shared,(J&4194048)!==0)){var Y=Z.lanes;Y&=$.pendingLanes,J|=Y,Z.lanes=J,x2($,J)}}function CJ($,Z){var{updateQueue:J,alternate:Y}=$;if(Y!==null&&(Y=Y.updateQueue,J===Y)){var U=null,B=null;if(J=J.firstBaseUpdate,J!==null){do{var W={lane:J.lane,tag:J.tag,payload:J.payload,callback:null,next:null};B===null?U=B=W:B=B.next=W,J=J.next}while(J!==null);B===null?U=B=Z:B=B.next=Z}else U=B=Z;J={baseState:Y.baseState,firstBaseUpdate:U,lastBaseUpdate:B,shared:Y.shared,callbacks:Y.callbacks},$.updateQueue=J;return}$=J.lastBaseUpdate,$===null?J.firstBaseUpdate=Z:$.next=Z,J.lastBaseUpdate=Z}function f$(){if(LN){var $=b7;if($!==null)throw $}}function y$($,Z,J,Y){LN=!1;var U=$.updateQueue;X2=!1,TN=U.shared;var{firstBaseUpdate:B,lastBaseUpdate:W}=U,R=U.shared.pending;if(R!==null){U.shared.pending=null;var L=R,_=L.next;L.next=null,W===null?B=_:W.next=_,W=L;var k=$.alternate;k!==null&&(k=k.updateQueue,R=k.lastBaseUpdate,R!==W&&(R===null?k.firstBaseUpdate=_:R.next=_,k.lastBaseUpdate=L))}if(B!==null){var f=U.baseState;W=0,k=_=L=null,R=B;do{var j=R.lane&-536870913,g=j!==R.lane;if(g?(y0&j)===j:(Y&j)===j){j!==0&&j===K9&&(LN=!0),k!==null&&(k=k.next={lane:0,tag:R.tag,payload:R.payload,callback:null,next:null});$:{j=$;var e=R,J0=Z,R1=J;switch(e.tag){case eW:if(e=e.payload,typeof e==="function"){D7=!0;var n0=e.call(R1,f,J0);if(j.mode&_5){W1(!0);try{e.call(R1,f,J0)}finally{W1(!1)}}D7=!1,f=n0;break $}f=e;break $;case zN:j.flags=j.flags&-65537|128;case tW:if(n0=e.payload,typeof n0==="function"){if(D7=!0,e=n0.call(R1,f,J0),j.mode&_5){W1(!0);try{n0.call(R1,f,J0)}finally{W1(!1)}}D7=!1}else e=n0;if(e===null||e===void 0)break $;f=m0({},f,e);break $;case $w:X2=!0}}j=R.callback,j!==null&&($.flags|=64,g&&($.flags|=8192),g=U.callbacks,g===null?U.callbacks=[j]:g.push(j))}else g={lane:j,tag:R.tag,payload:R.payload,callback:R.callback,next:null},k===null?(_=k=g,L=f):k=k.next=g,W|=j;if(R=R.next,R===null)if(R=U.shared.pending,R===null)break;else g=R,R=g.next,g.next=null,U.lastBaseUpdate=g,U.shared.pending=null}while(1);k===null&&(L=f),U.baseState=L,U.firstBaseUpdate=_,U.lastBaseUpdate=k,B===null&&(U.shared.lanes=0),N2|=W,$.lanes=W,$.memoizedState=f}TN=null}function cB($,Z){if(typeof $!=="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+$);$.call(Z)}function B_($,Z){var J=$.shared.hiddenCallbacks;if(J!==null)for($.shared.hiddenCallbacks=null,$=0;$<J.length;$++)cB(J[$],Z)}function lB($,Z){var J=$.callbacks;if(J!==null)for($.callbacks=null,$=0;$<J.length;$++)cB(J[$],Z)}function rB($,Z){var J=v4;_0(bG,J,$),_0(y7,Z,$),v4=J|Z.baseLanes}function $q($){_0(bG,v4,$),_0(y7,y7.current,$)}function Zq($){v4=bG.current,L0(y7,$),L0(bG,$)}function u8($){var Z=$.alternate;_0(g1,g1.current&g7,$),_0(M6,$,$),D6===null&&(Z===null||y7.current!==null?D6=$:Z.memoizedState!==null&&(D6=$))}function Qq($){_0(g1,g1.current,$),_0(M6,$,$),D6===null&&(D6=$)}function sB($){$.tag===22?(_0(g1,g1.current,$),_0(M6,$,$),D6===null&&(D6=$)):x8($)}function x8($){_0(g1,g1.current,$),_0(M6,M6.current,$)}function q6($){L0(M6,$),D6===$&&(D6=null),L0(g1,$)}function VJ($){for(var Z=$;Z!==null;){if(Z.tag===13){var J=Z.memoizedState;if(J!==null&&(J=J.dehydrated,J===null||WY(J)||wY(J)))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 x0(){var $=u;b6===null?b6=[$]:b6.push($)}function c(){var $=u;if(b6!==null&&(N8++,b6[N8]!==$)){var Z=d(V0);if(!Qw.has(Z)&&(Qw.add(Z),b6!==null)){for(var J="",Y=0;Y<=N8;Y++){var U=b6[Y],B=Y===N8?$:U;for(U=Y+1+". "+U;30>U.length;)U+=" ";U+=B+`
103
- `,J+=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
102
+ Please update the following component: %s`,U),Xw=!0}if((i0&Q5)!==K5)return U=Y.pending,U===null?Z.next=Z:(Z.next=U.next,U.next=Z),Y.pending=Z,Z=FJ($),PB($,null,G),Z;return MJ($,Y,Z,G),FJ($)}function u$($,Z,G){if(Z=Z.updateQueue,Z!==null&&(Z=Z.shared,(G&4194048)!==0)){var Y=Z.lanes;Y&=$.pendingLanes,G|=Y,Z.lanes=G,d2($,G)}}function AJ($,Z){var{updateQueue:G,alternate:Y}=$;if(Y!==null&&(Y=Y.updateQueue,G===Y)){var U=null,B=null;if(G=G.firstBaseUpdate,G!==null){do{var W={lane:G.lane,tag:G.tag,payload:G.payload,callback:null,next:null};B===null?U=B=W:B=B.next=W,G=G.next}while(G!==null);B===null?U=B=Z:B=B.next=Z}else U=B=Z;G={baseState:Y.baseState,firstBaseUpdate:U,lastBaseUpdate:B,shared:Y.shared,callbacks:Y.callbacks},$.updateQueue=G;return}$=G.lastBaseUpdate,$===null?G.firstBaseUpdate=Z:$.next=Z,G.lastBaseUpdate=Z}function x$(){if(CN){var $=f7;if($!==null)throw $}}function m$($,Z,G,Y){CN=!1;var U=$.updateQueue;Y2=!1,_N=U.shared;var{firstBaseUpdate:B,lastBaseUpdate:W}=U,R=U.shared.pending;if(R!==null){U.shared.pending=null;var L=R,_=L.next;L.next=null,W===null?B=_:W.next=_,W=L;var k=$.alternate;k!==null&&(k=k.updateQueue,R=k.lastBaseUpdate,R!==W&&(R===null?k.firstBaseUpdate=_:R.next=_,k.lastBaseUpdate=L))}if(B!==null){var f=U.baseState;W=0,k=_=L=null,R=B;do{var S=R.lane&-536870913,g=S!==R.lane;if(g?(g0&S)===S:(Y&S)===S){S!==0&&S===H9&&(CN=!0),k!==null&&(k=k.next={lane:0,tag:R.tag,payload:R.payload,callback:null,next:null});$:{S=$;var e=R,J0=Z,z1=G;switch(e.tag){case Jw:if(e=e.payload,typeof e==="function"){b7=!0;var o0=e.call(z1,f,J0);if(S.mode&I5){w1(!0);try{e.call(z1,f,J0)}finally{w1(!1)}}b7=!1,f=o0;break $}f=e;break $;case PN:S.flags=S.flags&-65537|128;case Qw:if(o0=e.payload,typeof o0==="function"){if(b7=!0,e=o0.call(z1,f,J0),S.mode&I5){w1(!0);try{o0.call(z1,f,J0)}finally{w1(!1)}}b7=!1}else e=o0;if(e===null||e===void 0)break $;f=d0({},f,e);break $;case Gw:Y2=!0}}S=R.callback,S!==null&&($.flags|=64,g&&($.flags|=8192),g=U.callbacks,g===null?U.callbacks=[S]:g.push(S))}else g={lane:S,tag:R.tag,payload:R.payload,callback:R.callback,next:null},k===null?(_=k=g,L=f):k=k.next=g,W|=S;if(R=R.next,R===null)if(R=U.shared.pending,R===null)break;else g=R,R=g.next,g.next=null,U.lastBaseUpdate=g,U.shared.pending=null}while(1);k===null&&(L=f),U.baseState=L,U.firstBaseUpdate=_,U.lastBaseUpdate=k,B===null&&(U.shared.lanes=0),K2|=W,$.lanes=W,$.memoizedState=f}_N=null}function nB($,Z){if(typeof $!=="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+$);$.call(Z)}function R_($,Z){var G=$.shared.hiddenCallbacks;if(G!==null)for($.shared.hiddenCallbacks=null,$=0;$<G.length;$++)nB(G[$],Z)}function oB($,Z){var G=$.callbacks;if(G!==null)for($.callbacks=null,$=0;$<G.length;$++)nB(G[$],Z)}function aB($,Z){var G=k4;_0(hG,G,$),_0(h7,Z,$),k4=G|Z.baseLanes}function Jq($){_0(hG,k4,$),_0(h7,h7.current,$)}function Gq($){k4=hG.current,L0(h7,$),L0(hG,$)}function m8($){var Z=$.alternate;_0(u1,u1.current&u7,$),_0(R6,$,$),k6===null&&(Z===null||h7.current!==null?k6=$:Z.memoizedState!==null&&(k6=$))}function Xq($){_0(u1,u1.current,$),_0(R6,$,$),k6===null&&(k6=$)}function iB($){$.tag===22?(_0(u1,u1.current,$),_0(R6,$,$),k6===null&&(k6=$)):d8($)}function d8($){_0(u1,u1.current,$),_0(R6,R6.current,$)}function K6($){L0(R6,$),k6===$&&(k6=null),L0(u1,$)}function SJ($){for(var Z=$;Z!==null;){if(Z.tag===13){var G=Z.memoizedState;if(G!==null&&(G=G.dehydrated,G===null||zY(G)||TY(G)))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 m0(){var $=u;y6===null?y6=[$]:y6.push($)}function c(){var $=u;if(y6!==null&&(B8++,y6[B8]!==$)){var Z=d(V0);if(!qw.has(Z)&&(qw.add(Z),y6!==null)){for(var G="",Y=0;Y<=B8;Y++){var U=y6[Y],B=Y===B8?$:U;for(U=Y+1+". "+U;30>U.length;)U+=" ";U+=B+`
103
+ `,G+=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,J)}}}function Z7($){$===void 0||$===null||i1($)||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 IJ(){var $=d(V0);Gw.has($)||(Gw.add($),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",$))}function f1(){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:
108
+ `,Z,G)}}}function J7($){$===void 0||$===null||$5($)||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 jJ(){var $=d(V0);Nw.has($)||(Nw.add($),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",$))}function g1(){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 Jq($,Z){if(vZ)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.
112
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function qq($,Z){if(gZ)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 J=0;J<Z.length&&J<$.length;J++)if(!S5($[J],Z[J]))return!1;return!0}function Gq($,Z,J,Y,U,B){if(q8=B,V0=Z,b6=$!==null?$._debugHookTypes:null,N8=-1,vZ=$!==null&&$.type!==Z.type,Object.prototype.toString.call(J)==="[object AsyncFunction]"||Object.prototype.toString.call(J)==="[object AsyncGeneratorFunction]")B=d(V0),PN.has(B)||(PN.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?CN:b6!==null?Xw:_N,W9=B=(Z.mode&_5)!==C0;var W=FN(J,Y,U);if(W9=!1,u7&&(W=Xq(Z,J,Y,U)),B){W1(!0);try{W=Xq(Z,J,Y,U)}finally{W1(!1)}}return nB($,Z),W}function nB($,Z){Z._debugHookTypes=b6,Z.dependencies===null?Y8!==null&&(Z.dependencies={lanes:0,firstContext:null,_debugThenableState:Y8}):Z.dependencies._debugThenableState=Y8,x.H=bZ;var J=M1!==null&&M1.next!==null;if(q8=0,b6=u=c1=M1=V0=null,N8=-1,$!==null&&($.flags&65011712)!==(Z.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),fG=!1,DZ=0,Y8=null,J)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");$===null||l1||($=$.dependencies,$!==null&&MJ($)&&(l1=!0)),AZ?(AZ=!1,$=!0):$=!1,$&&(Z=d(Z)||"Unknown",Jw.has(Z)||PN.has(Z)||(Jw.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 Xq($,Z,J,Y){V0=$;var U=0;do{if(u7&&(Y8=null),DZ=0,u7=!1,U>=oV)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(U+=1,vZ=!1,c1=M1=null,$.updateQueue!=null){var B=$.updateQueue;B.lastEffect=null,B.events=null,B.stores=null,B.memoCache!=null&&(B.memoCache.index=0)}N8=-1,x.H=qw,B=FN(Z,J,Y)}while(u7);return B}function H_(){var $=x.H,Z=$.useState()[0];return Z=typeof Z.then==="function"?g$(Z):Z,$=$.useState()[0],(M1!==null?M1.memoizedState:null)!==$&&(V0.flags|=1024),Z}function qq(){var $=yG!==0;return yG=0,$}function Yq($,Z,J){Z.updateQueue=$.updateQueue,Z.flags=(Z.mode&o6)!==C0?Z.flags&-402655237:Z.flags&-2053,$.lanes&=~J}function Nq($){if(fG){for($=$.memoizedState;$!==null;){var Z=$.queue;Z!==null&&(Z.pending=null),$=$.next}fG=!1}q8=0,b6=c1=M1=V0=null,N8=-1,u=null,u7=!1,DZ=yG=0,Y8=null}function O5(){var $={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return c1===null?V0.memoizedState=c1=$:c1=c1.next=$,c1}function Y1(){if(M1===null){var $=V0.alternate;$=$!==null?$.memoizedState:null}else $=M1.next;var Z=c1===null?V0.memoizedState:c1.next;if(Z!==null)c1=Z,M1=$;else{if($===null){if(V0.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.")}M1=$,$={memoizedState:M1.memoizedState,baseState:M1.baseState,baseQueue:M1.baseQueue,queue:M1.queue,next:null},c1===null?V0.memoizedState=c1=$:c1=c1.next=$}return c1}function OJ(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function g$($){var Z=DZ;return DZ+=1,Y8===null&&(Y8=kB()),$=yB(Y8,$,Z),Z=V0,(c1===null?Z.memoizedState:c1.next)===null&&(Z=Z.alternate,x.H=Z!==null&&Z.memoizedState!==null?CN:_N),$}function m8($){if($!==null&&typeof $==="object"){if(typeof $.then==="function")return g$($);if($.$$typeof===_4)return V1($)}throw Error("An unsupported type was passed to use(): "+String($))}function t2($){var Z=null,J=V0.updateQueue;if(J!==null&&(Z=J.memoCache),Z==null){var Y=V0.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}),J===null&&(J=OJ(),V0.updateQueue=J),J.memoCache=Z,J=Z.data[Z.index],J===void 0||vZ)for(J=Z.data[Z.index]=Array($),Y=0;Y<$;Y++)J[Y]=EC;else J.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.",J.length,$);return Z.index++,J}function l6($,Z){return typeof Z==="function"?Z($):Z}function Uq($,Z,J){var Y=O5();if(J!==void 0){var U=J(Z);if(W9){W1(!0);try{J(Z)}finally{W1(!1)}}}else U=Z;return Y.memoizedState=Y.baseState=U,$={pending:null,lanes:0,dispatch:null,lastRenderedReducer:$,lastRenderedState:U},Y.queue=$,$=$.dispatch=R_.bind(null,V0,$),[Y.memoizedState,$]}function Q7($){var Z=Y1();return Kq(Z,M1,$)}function Kq($,Z,J){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=J;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 R=W=null,L=null,_=Z,k=!1;do{var f=_.lane&-536870913;if(f!==_.lane?(y0&f)===f:(q8&f)===f){var j=_.revertLane;if(j===0)L!==null&&(L=L.next={lane:0,revertLane:0,gesture:null,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null}),f===K9&&(k=!0);else if((q8&j)===j){_=_.next,j===K9&&(k=!0);continue}else f={lane:0,revertLane:_.revertLane,gesture:null,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null},L===null?(R=L=f,W=B):L=L.next=f,V0.lanes|=j,N2|=j;f=_.action,W9&&J(B,f),B=_.hasEagerState?_.eagerState:J(B,f)}else j={lane:f,revertLane:_.revertLane,gesture:_.gesture,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null},L===null?(R=L=j,W=B):L=L.next=j,V0.lanes|=f,N2|=f;_=_.next}while(_!==null&&_!==Z);if(L===null?W=B:L.next=R,!S5(B,$.memoizedState)&&(l1=!0,k&&(J=b7,J!==null)))throw J;$.memoizedState=B,$.baseState=W,$.baseQueue=L,Y.lastRenderedState=B}return U===null&&(Y.lanes=0),[$.memoizedState,Y.dispatch]}function h$($){var Z=Y1(),J=Z.queue;if(J===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");J.lastRenderedReducer=$;var{dispatch:Y,pending:U}=J,B=Z.memoizedState;if(U!==null){J.pending=null;var W=U=U.next;do B=$(B,W.action),W=W.next;while(W!==U);S5(B,Z.memoizedState)||(l1=!0),Z.memoizedState=B,Z.baseQueue===null&&(Z.baseState=B),J.lastRenderedState=B}return[B,Y]}function Bq($,Z,J){var Y=V0,U=O5();if(r0){if(J===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var B=J();h7||B===J()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),h7=!0)}else{if(B=Z(),h7||(J=Z(),S5(B,J)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),h7=!0)),F1===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(y0&127)!==0||oB(Y,Z,B)}return U.memoizedState=B,J={value:B,getSnapshot:Z},U.queue=J,SJ(iB.bind(null,Y,J,$),[$]),Y.flags|=2048,G7(v6|b5,{destroy:void 0},aB.bind(null,Y,J,B,Z),null),B}function EJ($,Z,J){var Y=V0,U=Y1(),B=r0;if(B){if(J===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");J=J()}else if(J=Z(),!h7){var W=Z();S5(J,W)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),h7=!0)}if(W=!S5((M1||U).memoizedState,J))U.memoizedState=J,l1=!0;U=U.queue;var R=iB.bind(null,Y,U,$);if(g5(2048,b5,R,[$]),U.getSnapshot!==Z||W||c1!==null&&c1.memoizedState.tag&v6){if(Y.flags|=2048,G7(v6|b5,{destroy:void 0},aB.bind(null,Y,U,J,Z),null),F1===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");B||(q8&127)!==0||oB(Y,Z,J)}return J}function oB($,Z,J){$.flags|=16384,$={getSnapshot:Z,value:J},Z=V0.updateQueue,Z===null?(Z=OJ(),V0.updateQueue=Z,Z.stores=[$]):(J=Z.stores,J===null?Z.stores=[$]:J.push($))}function aB($,Z,J,Y){Z.value=J,Z.getSnapshot=Y,tB(Z)&&eB($)}function iB($,Z,J){return J(function(){tB(Z)&&(N4(2,"updateSyncExternalStore()",$),eB($))})}function tB($){var Z=$.getSnapshot;$=$.value;try{var J=Z();return!S5($,J)}catch(Y){return!0}}function eB($){var Z=L5($,2);Z!==null&&S1(Z,$,2)}function Hq($){var Z=O5();if(typeof $==="function"){var J=$;if($=J(),W9){W1(!0);try{J()}finally{W1(!1)}}}return Z.memoizedState=Z.baseState=$,Z.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:l6,lastRenderedState:$},Z}function Mq($){$=Hq($);var Z=$.queue,J=zH.bind(null,V0,Z);return Z.dispatch=J,[$.memoizedState,J]}function Fq($){var Z=O5();Z.memoizedState=Z.baseState=$;var J={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return Z.queue=J,Z=Aq.bind(null,V0,!0,J),J.dispatch=Z,[$,Z]}function $H($,Z){var J=Y1();return ZH(J,M1,$,Z)}function ZH($,Z,J,Y){return $.baseState=J,Kq($,M1,typeof Y==="function"?Y:l6)}function QH($,Z){var J=Y1();if(M1!==null)return ZH(J,M1,$,Z);return J.baseState=$,[$,J.queue.dispatch]}function M_($,Z,J,Y,U){if(yJ($))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?J(!0):B.isTransition=!1,Y(B),J=Z.pending,J===null?(B.next=Z.pending=B,JH(Z,B)):(B.next=J.next,Z.pending=J.next=B)}}function JH($,Z){var{action:J,payload:Y}=Z,U=$.state;if(Z.isTransition){var B=x.T,W={};W._updatedFibers=new Set,x.T=W;try{var R=J(U,Y),L=x.S;L!==null&&L(W,R),GH($,Z,R)}catch(_){Wq($,Z,_)}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=J(U,Y),GH($,Z,W)}catch(_){Wq($,Z,_)}}function GH($,Z,J){J!==null&&typeof J==="object"&&typeof J.then==="function"?(x.asyncTransitions++,J.then(fJ,fJ),J.then(function(Y){XH($,Z,Y)},function(Y){return Wq($,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.")):XH($,Z,J)}function XH($,Z,J){Z.status="fulfilled",Z.value=J,qH(Z),$.state=J,Z=$.pending,Z!==null&&(J=Z.next,J===Z?$.pending=null:(J=J.next,Z.next=J,JH($,J)))}function Wq($,Z,J){var Y=$.pending;if($.pending=null,Y!==null){Y=Y.next;do Z.status="rejected",Z.reason=J,qH(Z),Z=Z.next;while(Z!==Y)}$.action=null}function qH($){$=$.listeners;for(var Z=0;Z<$.length;Z++)(0,$[Z])()}function YH($,Z){return Z}function J7($,Z){if(r0){var J=F1.formState;if(J!==null){$:{var Y=V0;if(r0){if(L1){Z:{var U=L1;for(var B=j6;U.nodeType!==8;){if(!B){U=null;break Z}if(U=N6(U.nextSibling),U===null){U=null;break Z}}B=U.data,U=B===rN||B===lw?U:null}if(U){L1=N6(U.nextSibling),Y=U.data===rN;break $}}k8(Y)}Y=!1}Y&&(Z=J[0])}}return J=O5(),J.memoizedState=J.baseState=Z,Y={pending:null,lanes:0,dispatch:null,lastRenderedReducer:YH,lastRenderedState:Z},J.queue=Y,J=zH.bind(null,V0,Y),Y.dispatch=J,Y=Hq(!1),B=Aq.bind(null,V0,!1,Y.queue),Y=O5(),U={state:Z,dispatch:null,action:$,pending:null},Y.queue=U,J=M_.bind(null,V0,U,B,J),U.dispatch=J,Y.memoizedState=$,[Z,J,!1]}function AJ($){var Z=Y1();return NH(Z,M1,$)}function NH($,Z,J){if(Z=Kq($,Z,YH)[0],$=Q7(l6)[0],typeof Z==="object"&&Z!==null&&typeof Z.then==="function")try{var Y=g$(Z)}catch(W){if(W===k7)throw DG;throw W}else Y=Z;Z=Y1();var U=Z.queue,B=U.dispatch;return J!==Z.memoizedState&&(V0.flags|=2048,G7(v6|b5,{destroy:void 0},F_.bind(null,U,J),null)),[Y,B,$]}function F_($,Z){$.action=Z}function jJ($){var Z=Y1(),J=M1;if(J!==null)return NH(Z,J,$);Y1(),Z=Z.memoizedState,J=Y1();var Y=J.queue.dispatch;return J.memoizedState=$,[Z,Y,!1]}function G7($,Z,J,Y){return $={tag:$,create:J,deps:Y,inst:Z,next:null},Z=V0.updateQueue,Z===null&&(Z=OJ(),V0.updateQueue=Z),J=Z.lastEffect,J===null?Z.lastEffect=$.next=$:(Y=J.next,J.next=$,$.next=Y,Z.lastEffect=$),$}function wq($){var Z=O5();return $={current:$},Z.memoizedState=$}function e2($,Z,J,Y){var U=O5();V0.flags|=$,U.memoizedState=G7(v6|Z,{destroy:void 0},J,Y===void 0?null:Y)}function g5($,Z,J,Y){var U=Y1();Y=Y===void 0?null:Y;var B=U.memoizedState.inst;M1!==null&&Y!==null&&Jq(Y,M1.memoizedState.deps)?U.memoizedState=G7(Z,B,J,Y):(V0.flags|=$,U.memoizedState=G7(v6|Z,B,J,Y))}function SJ($,Z){(V0.mode&o6)!==C0?e2(276826112,b5,$,Z):e2(8390656,b5,$,Z)}function W_($){V0.flags|=4;var Z=V0.updateQueue;if(Z===null)Z=OJ(),V0.updateQueue=Z,Z.events=[$];else{var J=Z.events;J===null?Z.events=[$]:J.push($)}}function Rq($){var Z=O5(),J={impl:$};return Z.memoizedState=J,function(){if((a0&e1)!==N5)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return J.impl.apply(void 0,arguments)}}function DJ($){var Z=Y1().memoizedState;return W_({ref:Z,nextImpl:$}),function(){if((a0&e1)!==N5)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return Z.impl.apply(void 0,arguments)}}function zq($,Z){var J=4194308;return(V0.mode&o6)!==C0&&(J|=134217728),e2(J,F6,$,Z)}function UH($,Z){if(typeof Z==="function"){$=$();var J=Z($);return function(){typeof J==="function"?J():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 Tq($,Z,J){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"),J=J!==null&&J!==void 0?J.concat([$]):null;var Y=4194308;(V0.mode&o6)!==C0&&(Y|=134217728),e2(Y,F6,UH.bind(null,Z,$),J)}function vJ($,Z,J){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"),J=J!==null&&J!==void 0?J.concat([$]):null,g5(4,F6,UH.bind(null,Z,$),J)}function Lq($,Z){return O5().memoizedState=[$,Z===void 0?null:Z],$}function bJ($,Z){var J=Y1();Z=Z===void 0?null:Z;var Y=J.memoizedState;if(Z!==null&&Jq(Z,Y[1]))return Y[0];return J.memoizedState=[$,Z],$}function Pq($,Z){var J=O5();Z=Z===void 0?null:Z;var Y=$();if(W9){W1(!0);try{$()}finally{W1(!1)}}return J.memoizedState=[Y,Z],Y}function kJ($,Z){var J=Y1();Z=Z===void 0?null:Z;var Y=J.memoizedState;if(Z!==null&&Jq(Z,Y[1]))return Y[0];if(Y=$(),W9){W1(!0);try{$()}finally{W1(!1)}}return J.memoizedState=[Y,Z],Y}function _q($,Z){var J=O5();return Cq(J,$,Z)}function KH($,Z){var J=Y1();return HH(J,M1.memoizedState,$,Z)}function BH($,Z){var J=Y1();return M1===null?Cq(J,$,Z):HH(J,M1.memoizedState,$,Z)}function Cq($,Z,J){if(J===void 0||(q8&1073741824)!==0&&(y0&261930)===0)return $.memoizedState=Z;return $.memoizedState=J,$=MM(),V0.lanes|=$,N2|=$,J}function HH($,Z,J,Y){if(S5(J,Z))return J;if(y7.current!==null)return $=Cq($,J,Y),S5($,Z)||(l1=!0),$;if((q8&42)===0||(q8&1073741824)!==0&&(y0&261930)===0)return l1=!0,$.memoizedState=J;return $=MM(),V0.lanes|=$,N2|=$,Z}function fJ(){x.asyncTransitions--}function MH($,Z,J,Y,U){var B=X1.p;X1.p=B!==0&&B<n6?B:n6;var W=x.T,R={};R._updatedFibers=new Set,x.T=R,Aq($,!1,Z,J);try{var L=U(),_=x.S;if(_!==null&&_(R,L),L!==null&&typeof L==="object"&&typeof L.then==="function"){x.asyncTransitions++,L.then(fJ,fJ);var k=K_(L,Y);u$($,Z,k,Y6($))}else u$($,Z,Y,Y6($))}catch(f){u$($,Z,{then:function(){},status:"rejected",reason:f},Y6($))}finally{X1.p=B,W!==null&&R.types!==null&&(W.types!==null&&W.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."),W.types=R.types),x.T=W,W===null&&R._updatedFibers&&($=R._updatedFibers.size,R._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 Vq($,Z,J,Y){if($.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var U=FH($).queue;N_($),MH($,U,Z,O9,J===null?w:function(){return WH($),J(Y)})}function FH($){var Z=$.memoizedState;if(Z!==null)return Z;Z={memoizedState:O9,baseState:O9,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:l6,lastRenderedState:O9},next:null};var J={};return Z.next={memoizedState:J,baseState:J,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:l6,lastRenderedState:J},next:null},$.memoizedState=Z,$=$.alternate,$!==null&&($.memoizedState=Z),Z}function WH($){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=FH($);Z.next===null&&(Z=$.alternate.memoizedState),u$($,Z.next.queue,{},Y6($))}function Iq(){var $=Hq(!1);return $=MH.bind(null,V0,$.queue,!0,!1),O5().memoizedState=$,[!1,$]}function wH(){var $=Q7(l6)[0],Z=Y1().memoizedState;return[typeof $==="boolean"?$:g$($),Z]}function RH(){var $=h$(l6)[0],Z=Y1().memoizedState;return[typeof $==="boolean"?$:g$($),Z]}function $9(){return V1(nZ)}function Oq(){var $=O5(),Z=F1.identifierPrefix;if(r0){var J=Z8,Y=$8;J=(Y&~(1<<32-E5(Y)-1)).toString(32)+J,Z="_"+Z+"R_"+J,J=yG++,0<J&&(Z+="H"+J.toString(32)),Z+="_"}else J=nV++,Z="_"+Z+"r_"+J.toString(32)+"_";return $.memoizedState=Z}function Eq(){return O5().memoizedState=w_.bind(null,V0)}function w_($,Z){for(var J=$.return;J!==null;){switch(J.tag){case 24:case 3:var Y=Y6(J),U=g8(Y),B=h8(J,U,Y);B!==null&&(N4(Y,"refresh()",$),S1(B,J,Y),k$(B,J,Y)),$=sX(),Z!==null&&Z!==void 0&&B!==null&&console.error("The seed argument is not enabled outside experimental channels."),U.payload={cache:$};return}J=J.return}}function R_($,Z,J){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=Y6($);var U={lane:Y,revertLane:0,gesture:null,action:J,hasEagerState:!1,eagerState:null,next:null};yJ($)?TH(Z,U):(U=fX($,Z,U,Y),U!==null&&(N4(Y,"dispatch()",$),S1(U,$,Y),LH(U,Z,Y)))}function zH($,Z,J){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=Y6($),u$($,Z,J,Y)&&N4(Y,"setState()",$)}function u$($,Z,J,Y){var U={lane:Y,revertLane:0,gesture:null,action:J,hasEagerState:!1,eagerState:null,next:null};if(yJ($))TH(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=i6;try{var R=Z.lastRenderedState,L=B(R,J);if(U.hasEagerState=!0,U.eagerState=L,S5(L,R))return NJ($,Z,U,0),F1===null&&YJ(),!1}catch(_){}finally{x.H=W}}if(J=fX($,Z,U,Y),J!==null)return S1(J,$,Y),LH(J,Z,Y),!0}return!1}function Aq($,Z,J,Y){if(x.T===null&&K9===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:GY(),gesture:null,action:Y,hasEagerState:!1,eagerState:null,next:null},yJ($)){if(Z)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else Z=fX($,J,Y,2),Z!==null&&(N4(2,"setOptimistic()",$),S1(Z,$,2))}function yJ($){var Z=$.alternate;return $===V0||Z!==null&&Z===V0}function TH($,Z){u7=fG=!0;var J=$.pending;J===null?Z.next=Z:(Z.next=J.next,J.next=Z),$.pending=Z}function LH($,Z,J){if((J&4194048)!==0){var Y=Z.lanes;Y&=$.pendingLanes,J|=Y,Z.lanes=J,x2($,J)}}function jq($){if($!==null&&typeof $!=="function"){var Z=String($);Rw.has(Z)||(Rw.add(Z),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",$))}}function Sq($,Z,J,Y){var U=$.memoizedState,B=J(Y,U);if($.mode&_5){W1(!0);try{B=J(Y,U)}finally{W1(!1)}}B===void 0&&(Z=a(Z)||"Component",Mw.has(Z)||(Mw.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:m0({},U,B),$.memoizedState=U,$.lanes===0&&($.updateQueue.baseState=U)}function PH($,Z,J,Y,U,B,W){var R=$.stateNode;if(typeof R.shouldComponentUpdate==="function"){if(J=R.shouldComponentUpdate(Y,B,W),$.mode&_5){W1(!0);try{J=R.shouldComponentUpdate(Y,B,W)}finally{W1(!1)}}return J===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",a(Z)||"Component"),J}return Z.prototype&&Z.prototype.isPureReactComponent?!E$(J,Y)||!E$(U,B):!0}function _H($,Z,J,Y){var U=Z.state;typeof Z.componentWillReceiveProps==="function"&&Z.componentWillReceiveProps(J,Y),typeof Z.UNSAFE_componentWillReceiveProps==="function"&&Z.UNSAFE_componentWillReceiveProps(J,Y),Z.state!==U&&($=d($)||"Component",Nw.has($)||(Nw.add($),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",$)),VN.enqueueReplaceState(Z,Z.state,null))}function Z9($,Z){var J=Z;if("ref"in Z){J={};for(var Y in Z)Y!=="ref"&&(J[Y]=Z[Y])}if($=$.defaultProps){J===Z&&(J=m0({},J));for(var U in $)J[U]===void 0&&(J[U]=$[U])}return J}function CH($){ZN($),console.warn(`%s
115
+ Incoming: %s`,u,"["+Z.join(", ")+"]","["+$.join(", ")+"]");for(var G=0;G<Z.length&&G<$.length;G++)if(!v5($[G],Z[G]))return!1;return!0}function Yq($,Z,G,Y,U,B){if(U8=B,V0=Z,y6=$!==null?$._debugHookTypes:null,B8=-1,gZ=$!==null&&$.type!==Z.type,Object.prototype.toString.call(G)==="[object AsyncFunction]"||Object.prototype.toString.call(G)==="[object AsyncGeneratorFunction]")B=d(V0),IN.has(B)||(IN.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?ON:y6!==null?Uw:VN,R9=B=(Z.mode&I5)!==I0;var W=RN(G,Y,U);if(R9=!1,m7&&(W=Nq(Z,G,Y,U)),B){w1(!0);try{W=Nq(Z,G,Y,U)}finally{w1(!1)}}return tB($,Z),W}function tB($,Z){Z._debugHookTypes=y6,Z.dependencies===null?K8!==null&&(Z.dependencies={lanes:0,firstContext:null,_debugThenableState:K8}):Z.dependencies._debugThenableState=K8,x.H=hZ;var G=F1!==null&&F1.next!==null;if(U8=0,y6=u=r1=F1=V0=null,B8=-1,$!==null&&($.flags&65011712)!==(Z.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),xG=!1,yZ=0,K8=null,G)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");$===null||s1||($=$.dependencies,$!==null&&zJ($)&&(s1=!0)),bZ?(bZ=!1,$=!0):$=!1,$&&(Z=d(Z)||"Unknown",Yw.has(Z)||IN.has(Z)||(Yw.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 Nq($,Z,G,Y){V0=$;var U=0;do{if(m7&&(K8=null),yZ=0,m7=!1,U>=ZV)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(U+=1,gZ=!1,r1=F1=null,$.updateQueue!=null){var B=$.updateQueue;B.lastEffect=null,B.events=null,B.stores=null,B.memoCache!=null&&(B.memoCache.index=0)}B8=-1,x.H=Kw,B=RN(Z,G,Y)}while(m7);return B}function z_(){var $=x.H,Z=$.useState()[0];return Z=typeof Z.then==="function"?d$(Z):Z,$=$.useState()[0],(F1!==null?F1.memoizedState:null)!==$&&(V0.flags|=1024),Z}function Uq(){var $=mG!==0;return mG=0,$}function Kq($,Z,G){Z.updateQueue=$.updateQueue,Z.flags=(Z.mode&t6)!==I0?Z.flags&-402655237:Z.flags&-2053,$.lanes&=~G}function Bq($){if(xG){for($=$.memoizedState;$!==null;){var Z=$.queue;Z!==null&&(Z.pending=null),$=$.next}xG=!1}U8=0,y6=r1=F1=V0=null,B8=-1,u=null,m7=!1,yZ=mG=0,K8=null}function A5(){var $={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return r1===null?V0.memoizedState=r1=$:r1=r1.next=$,r1}function N1(){if(F1===null){var $=V0.alternate;$=$!==null?$.memoizedState:null}else $=F1.next;var Z=r1===null?V0.memoizedState:r1.next;if(Z!==null)r1=Z,F1=$;else{if($===null){if(V0.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.")}F1=$,$={memoizedState:F1.memoizedState,baseState:F1.baseState,baseQueue:F1.baseQueue,queue:F1.queue,next:null},r1===null?V0.memoizedState=r1=$:r1=r1.next=$}return r1}function DJ(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function d$($){var Z=yZ;return yZ+=1,K8===null&&(K8=hB()),$=xB(K8,$,Z),Z=V0,(r1===null?Z.memoizedState:r1.next)===null&&(Z=Z.alternate,x.H=Z!==null&&Z.memoizedState!==null?ON:VN),$}function p8($){if($!==null&&typeof $==="object"){if(typeof $.then==="function")return d$($);if($.$$typeof===I4)return O1($)}throw Error("An unsupported type was passed to use(): "+String($))}function $9($){var Z=null,G=V0.updateQueue;if(G!==null&&(Z=G.memoCache),Z==null){var Y=V0.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(),V0.updateQueue=G),G.memoCache=Z,G=Z.data[Z.index],G===void 0||gZ)for(G=Z.data[Z.index]=Array($),Y=0;Y<$;Y++)G[Y]=bC;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 n6($,Z){return typeof Z==="function"?Z($):Z}function Hq($,Z,G){var Y=A5();if(G!==void 0){var U=G(Z);if(R9){w1(!0);try{G(Z)}finally{w1(!1)}}}else U=Z;return Y.memoizedState=Y.baseState=U,$={pending:null,lanes:0,dispatch:null,lastRenderedReducer:$,lastRenderedState:U},Y.queue=$,$=$.dispatch=C_.bind(null,V0,$),[Y.memoizedState,$]}function G7($){var Z=N1();return Mq(Z,F1,$)}function Mq($,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 R=W=null,L=null,_=Z,k=!1;do{var f=_.lane&-536870913;if(f!==_.lane?(g0&f)===f:(U8&f)===f){var S=_.revertLane;if(S===0)L!==null&&(L=L.next={lane:0,revertLane:0,gesture:null,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null}),f===H9&&(k=!0);else if((U8&S)===S){_=_.next,S===H9&&(k=!0);continue}else f={lane:0,revertLane:_.revertLane,gesture:null,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null},L===null?(R=L=f,W=B):L=L.next=f,V0.lanes|=S,K2|=S;f=_.action,R9&&G(B,f),B=_.hasEagerState?_.eagerState:G(B,f)}else S={lane:f,revertLane:_.revertLane,gesture:_.gesture,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null},L===null?(R=L=S,W=B):L=L.next=S,V0.lanes|=f,K2|=f;_=_.next}while(_!==null&&_!==Z);if(L===null?W=B:L.next=R,!v5(B,$.memoizedState)&&(s1=!0,k&&(G=f7,G!==null)))throw G;$.memoizedState=B,$.baseState=W,$.baseQueue=L,Y.lastRenderedState=B}return U===null&&(Y.lanes=0),[$.memoizedState,Y.dispatch]}function p$($){var Z=N1(),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);v5(B,Z.memoizedState)||(s1=!0),Z.memoizedState=B,Z.baseQueue===null&&(Z.baseState=B),G.lastRenderedState=B}return[B,Y]}function Fq($,Z,G){var Y=V0,U=A5();if(s0){if(G===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var B=G();x7||B===G()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),x7=!0)}else{if(B=Z(),x7||(G=Z(),v5(B,G)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),x7=!0)),W1===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(g0&127)!==0||eB(Y,Z,B)}return U.memoizedState=B,G={value:B,getSnapshot:Z},U.queue=G,fJ(ZH.bind(null,Y,G,$),[$]),Y.flags|=2048,q7(f6|f5,{destroy:void 0},$H.bind(null,Y,G,B,Z),null),B}function vJ($,Z,G){var Y=V0,U=N1(),B=s0;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(),!x7){var W=Z();v5(G,W)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),x7=!0)}if(W=!v5((F1||U).memoizedState,G))U.memoizedState=G,s1=!0;U=U.queue;var R=ZH.bind(null,Y,U,$);if(x5(2048,f5,R,[$]),U.getSnapshot!==Z||W||r1!==null&&r1.memoizedState.tag&f6){if(Y.flags|=2048,q7(f6|f5,{destroy:void 0},$H.bind(null,Y,U,G,Z),null),W1===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");B||(U8&127)!==0||eB(Y,Z,G)}return G}function eB($,Z,G){$.flags|=16384,$={getSnapshot:Z,value:G},Z=V0.updateQueue,Z===null?(Z=DJ(),V0.updateQueue=Z,Z.stores=[$]):(G=Z.stores,G===null?Z.stores=[$]:G.push($))}function $H($,Z,G,Y){Z.value=G,Z.getSnapshot=Y,QH(Z)&&JH($)}function ZH($,Z,G){return G(function(){QH(Z)&&(K4(2,"updateSyncExternalStore()",$),JH($))})}function QH($){var Z=$.getSnapshot;$=$.value;try{var G=Z();return!v5($,G)}catch(Y){return!0}}function JH($){var Z=_5($,2);Z!==null&&D1(Z,$,2)}function Wq($){var Z=A5();if(typeof $==="function"){var G=$;if($=G(),R9){w1(!0);try{G()}finally{w1(!1)}}}return Z.memoizedState=Z.baseState=$,Z.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n6,lastRenderedState:$},Z}function wq($){$=Wq($);var Z=$.queue,G=_H.bind(null,V0,Z);return Z.dispatch=G,[$.memoizedState,G]}function Rq($){var Z=A5();Z.memoizedState=Z.baseState=$;var G={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return Z.queue=G,Z=Dq.bind(null,V0,!0,G),G.dispatch=Z,[$,Z]}function GH($,Z){var G=N1();return XH(G,F1,$,Z)}function XH($,Z,G,Y){return $.baseState=G,Mq($,F1,typeof Y==="function"?Y:n6)}function qH($,Z){var G=N1();if(F1!==null)return XH(G,F1,$,Z);return G.baseState=$,[$,G.queue.dispatch]}function T_($,Z,G,Y,U){if(mJ($))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,YH(Z,B)):(B.next=G.next,Z.pending=G.next=B)}}function YH($,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 R=G(U,Y),L=x.S;L!==null&&L(W,R),NH($,Z,R)}catch(_){zq($,Z,_)}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),NH($,Z,W)}catch(_){zq($,Z,_)}}function NH($,Z,G){G!==null&&typeof G==="object"&&typeof G.then==="function"?(x.asyncTransitions++,G.then(xJ,xJ),G.then(function(Y){UH($,Z,Y)},function(Y){return zq($,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.")):UH($,Z,G)}function UH($,Z,G){Z.status="fulfilled",Z.value=G,KH(Z),$.state=G,Z=$.pending,Z!==null&&(G=Z.next,G===Z?$.pending=null:(G=G.next,Z.next=G,YH($,G)))}function zq($,Z,G){var Y=$.pending;if($.pending=null,Y!==null){Y=Y.next;do Z.status="rejected",Z.reason=G,KH(Z),Z=Z.next;while(Z!==Y)}$.action=null}function KH($){$=$.listeners;for(var Z=0;Z<$.length;Z++)(0,$[Z])()}function BH($,Z){return Z}function X7($,Z){if(s0){var G=W1.formState;if(G!==null){$:{var Y=V0;if(s0){if(P1){Z:{var U=P1;for(var B=v6;U.nodeType!==8;){if(!B){U=null;break Z}if(U=H6(U.nextSibling),U===null){U=null;break Z}}B=U.data,U=B===oN||B===ow?U:null}if(U){P1=H6(U.nextSibling),Y=U.data===oN;break $}}y8(Y)}Y=!1}Y&&(Z=G[0])}}return G=A5(),G.memoizedState=G.baseState=Z,Y={pending:null,lanes:0,dispatch:null,lastRenderedReducer:BH,lastRenderedState:Z},G.queue=Y,G=_H.bind(null,V0,Y),Y.dispatch=G,Y=Wq(!1),B=Dq.bind(null,V0,!1,Y.queue),Y=A5(),U={state:Z,dispatch:null,action:$,pending:null},Y.queue=U,G=T_.bind(null,V0,U,B,G),U.dispatch=G,Y.memoizedState=$,[Z,G,!1]}function bJ($){var Z=N1();return HH(Z,F1,$)}function HH($,Z,G){if(Z=Mq($,Z,BH)[0],$=G7(n6)[0],typeof Z==="object"&&Z!==null&&typeof Z.then==="function")try{var Y=d$(Z)}catch(W){if(W===y7)throw yG;throw W}else Y=Z;Z=N1();var U=Z.queue,B=U.dispatch;return G!==Z.memoizedState&&(V0.flags|=2048,q7(f6|f5,{destroy:void 0},L_.bind(null,U,G),null)),[Y,B,$]}function L_($,Z){$.action=Z}function kJ($){var Z=N1(),G=F1;if(G!==null)return HH(Z,G,$);N1(),Z=Z.memoizedState,G=N1();var Y=G.queue.dispatch;return G.memoizedState=$,[Z,Y,!1]}function q7($,Z,G,Y){return $={tag:$,create:G,deps:Y,inst:Z,next:null},Z=V0.updateQueue,Z===null&&(Z=DJ(),V0.updateQueue=Z),G=Z.lastEffect,G===null?Z.lastEffect=$.next=$:(Y=G.next,G.next=$,$.next=Y,Z.lastEffect=$),$}function Tq($){var Z=A5();return $={current:$},Z.memoizedState=$}function Z9($,Z,G,Y){var U=A5();V0.flags|=$,U.memoizedState=q7(f6|Z,{destroy:void 0},G,Y===void 0?null:Y)}function x5($,Z,G,Y){var U=N1();Y=Y===void 0?null:Y;var B=U.memoizedState.inst;F1!==null&&Y!==null&&qq(Y,F1.memoizedState.deps)?U.memoizedState=q7(Z,B,G,Y):(V0.flags|=$,U.memoizedState=q7(f6|Z,B,G,Y))}function fJ($,Z){(V0.mode&t6)!==I0?Z9(276826112,f5,$,Z):Z9(8390656,f5,$,Z)}function P_($){V0.flags|=4;var Z=V0.updateQueue;if(Z===null)Z=DJ(),V0.updateQueue=Z,Z.events=[$];else{var G=Z.events;G===null?Z.events=[$]:G.push($)}}function Lq($){var Z=A5(),G={impl:$};return Z.memoizedState=G,function(){if((i0&Q5)!==K5)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return G.impl.apply(void 0,arguments)}}function yJ($){var Z=N1().memoizedState;return P_({ref:Z,nextImpl:$}),function(){if((i0&Q5)!==K5)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return Z.impl.apply(void 0,arguments)}}function Pq($,Z){var G=4194308;return(V0.mode&t6)!==I0&&(G|=134217728),Z9(G,z6,$,Z)}function MH($,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 _q($,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;(V0.mode&t6)!==I0&&(Y|=134217728),Z9(Y,z6,MH.bind(null,Z,$),G)}function gJ($,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,x5(4,z6,MH.bind(null,Z,$),G)}function Cq($,Z){return A5().memoizedState=[$,Z===void 0?null:Z],$}function hJ($,Z){var G=N1();Z=Z===void 0?null:Z;var Y=G.memoizedState;if(Z!==null&&qq(Z,Y[1]))return Y[0];return G.memoizedState=[$,Z],$}function Iq($,Z){var G=A5();Z=Z===void 0?null:Z;var Y=$();if(R9){w1(!0);try{$()}finally{w1(!1)}}return G.memoizedState=[Y,Z],Y}function uJ($,Z){var G=N1();Z=Z===void 0?null:Z;var Y=G.memoizedState;if(Z!==null&&qq(Z,Y[1]))return Y[0];if(Y=$(),R9){w1(!0);try{$()}finally{w1(!1)}}return G.memoizedState=[Y,Z],Y}function Vq($,Z){var G=A5();return Oq(G,$,Z)}function FH($,Z){var G=N1();return wH(G,F1.memoizedState,$,Z)}function WH($,Z){var G=N1();return F1===null?Oq(G,$,Z):wH(G,F1.memoizedState,$,Z)}function Oq($,Z,G){if(G===void 0||(U8&1073741824)!==0&&(g0&261930)===0)return $.memoizedState=Z;return $.memoizedState=G,$=RM(),V0.lanes|=$,K2|=$,G}function wH($,Z,G,Y){if(v5(G,Z))return G;if(h7.current!==null)return $=Oq($,G,Y),v5($,Z)||(s1=!0),$;if((U8&42)===0||(U8&1073741824)!==0&&(g0&261930)===0)return s1=!0,$.memoizedState=G;return $=RM(),V0.lanes|=$,K2|=$,Z}function xJ(){x.asyncTransitions--}function RH($,Z,G,Y,U){var B=q1.p;q1.p=B!==0&&B<i6?B:i6;var W=x.T,R={};R._updatedFibers=new Set,x.T=R,Dq($,!1,Z,G);try{var L=U(),_=x.S;if(_!==null&&_(R,L),L!==null&&typeof L==="object"&&typeof L.then==="function"){x.asyncTransitions++,L.then(xJ,xJ);var k=w_(L,Y);c$($,Z,k,B6($))}else c$($,Z,Y,B6($))}catch(f){c$($,Z,{then:function(){},status:"rejected",reason:f},B6($))}finally{q1.p=B,W!==null&&R.types!==null&&(W.types!==null&&W.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."),W.types=R.types),x.T=W,W===null&&R._updatedFibers&&($=R._updatedFibers.size,R._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 Eq($,Z,G,Y){if($.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var U=zH($).queue;F_($),RH($,U,Z,A9,G===null?w:function(){return TH($),G(Y)})}function zH($){var Z=$.memoizedState;if(Z!==null)return Z;Z={memoizedState:A9,baseState:A9,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:n6,lastRenderedState:A9},next:null};var G={};return Z.next={memoizedState:G,baseState:G,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:n6,lastRenderedState:G},next:null},$.memoizedState=Z,$=$.alternate,$!==null&&($.memoizedState=Z),Z}function TH($){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=zH($);Z.next===null&&(Z=$.alternate.memoizedState),c$($,Z.next.queue,{},B6($))}function Aq(){var $=Wq(!1);return $=RH.bind(null,V0,$.queue,!0,!1),A5().memoizedState=$,[!1,$]}function LH(){var $=G7(n6)[0],Z=N1().memoizedState;return[typeof $==="boolean"?$:d$($),Z]}function PH(){var $=p$(n6)[0],Z=N1().memoizedState;return[typeof $==="boolean"?$:d$($),Z]}function Q9(){return O1(eZ)}function Sq(){var $=A5(),Z=W1.identifierPrefix;if(s0){var G=G8,Y=J8;G=(Y&~(1<<32-S5(Y)-1)).toString(32)+G,Z="_"+Z+"R_"+G,G=mG++,0<G&&(Z+="H"+G.toString(32)),Z+="_"}else G=$V++,Z="_"+Z+"r_"+G.toString(32)+"_";return $.memoizedState=Z}function jq(){return A5().memoizedState=__.bind(null,V0)}function __($,Z){for(var G=$.return;G!==null;){switch(G.tag){case 24:case 3:var Y=B6(G),U=u8(Y),B=x8(G,U,Y);B!==null&&(K4(Y,"refresh()",$),D1(B,G,Y),u$(B,G,Y)),$=aX(),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 C_($,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=B6($);var U={lane:Y,revertLane:0,gesture:null,action:G,hasEagerState:!1,eagerState:null,next:null};mJ($)?CH(Z,U):(U=hX($,Z,U,Y),U!==null&&(K4(Y,"dispatch()",$),D1(U,$,Y),IH(U,Z,Y)))}function _H($,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=B6($),c$($,Z,G,Y)&&K4(Y,"setState()",$)}function c$($,Z,G,Y){var U={lane:Y,revertLane:0,gesture:null,action:G,hasEagerState:!1,eagerState:null,next:null};if(mJ($))CH(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=$4;try{var R=Z.lastRenderedState,L=B(R,G);if(U.hasEagerState=!0,U.eagerState=L,v5(L,R))return MJ($,Z,U,0),W1===null&&HJ(),!1}catch(_){}finally{x.H=W}}if(G=hX($,Z,U,Y),G!==null)return D1(G,$,Y),IH(G,Z,Y),!0}return!1}function Dq($,Z,G,Y){if(x.T===null&&H9===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:YY(),gesture:null,action:Y,hasEagerState:!1,eagerState:null,next:null},mJ($)){if(Z)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else Z=hX($,G,Y,2),Z!==null&&(K4(2,"setOptimistic()",$),D1(Z,$,2))}function mJ($){var Z=$.alternate;return $===V0||Z!==null&&Z===V0}function CH($,Z){m7=xG=!0;var G=$.pending;G===null?Z.next=Z:(Z.next=G.next,G.next=Z),$.pending=Z}function IH($,Z,G){if((G&4194048)!==0){var Y=Z.lanes;Y&=$.pendingLanes,G|=Y,Z.lanes=G,d2($,G)}}function vq($){if($!==null&&typeof $!=="function"){var Z=String($);Pw.has(Z)||(Pw.add(Z),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",$))}}function bq($,Z,G,Y){var U=$.memoizedState,B=G(Y,U);if($.mode&I5){w1(!0);try{B=G(Y,U)}finally{w1(!1)}}B===void 0&&(Z=a(Z)||"Component",Rw.has(Z)||(Rw.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:d0({},U,B),$.memoizedState=U,$.lanes===0&&($.updateQueue.baseState=U)}function VH($,Z,G,Y,U,B,W){var R=$.stateNode;if(typeof R.shouldComponentUpdate==="function"){if(G=R.shouldComponentUpdate(Y,B,W),$.mode&I5){w1(!0);try{G=R.shouldComponentUpdate(Y,B,W)}finally{w1(!1)}}return G===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",a(Z)||"Component"),G}return Z.prototype&&Z.prototype.isPureReactComponent?!v$(G,Y)||!v$(U,B):!0}function OH($,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",Hw.has($)||(Hw.add($),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",$)),EN.enqueueReplaceState(Z,Z.state,null))}function J9($,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=d0({},G));for(var U in $)G[U]===void 0&&(G[U]=$[U])}return G}function EH($){GN($),console.warn(`%s
116
116
 
117
117
  %s
118
- `,x7?"An error occurred in the <"+x7+"> 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 VH($){var Z=x7?"The above error occurred in the <"+x7+"> component.":"The above error occurred in one of your React components.",J="React will try to recreate this component tree from scratch using the error boundary you provided, "+((IN||"Anonymous")+".");if(typeof $==="object"&&$!==null&&typeof $.environmentName==="string"){var Y=$.environmentName;$=[`%o
118
+ `,d7?"An error occurred in the <"+d7+"> 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 AH($){var Z=d7?"The above error occurred in the <"+d7+"> component.":"The above error occurred in one of your React components.",G="React will try to recreate this component tree from scratch using the error boundary you provided, "+((AN||"Anonymous")+".");if(typeof $==="object"&&$!==null&&typeof $.environmentName==="string"){var Y=$.environmentName;$=[`%o
120
120
 
121
121
  %s
122
122
 
123
123
  %s
124
- `,$,Z,J].slice(0),typeof $[0]==="string"?$.splice(0,1,ew+" "+$[0],$R,Y3+Y+Y3,ZR):$.splice(0,0,ew,$R,Y3+Y+Y3,ZR),$.unshift(console),Y=WI.apply(console.error,$),Y()}else console.error(`%o
124
+ `,$,Z,G].slice(0),typeof $[0]==="string"?$.splice(0,1,JR+" "+$[0],GR,H3+Y+H3,XR):$.splice(0,0,JR,GR,H3+Y+H3,XR),$.unshift(console),Y=PV.apply(console.error,$),Y()}else console.error(`%o
125
125
 
126
126
  %s
127
127
 
128
128
  %s
129
- `,$,Z,J)}function IH($){ZN($)}function gJ($,Z){try{x7=Z.source?d(Z.source):null,IN=null;var J=Z.value;if(x.actQueue!==null)x.thrownErrors.push(J);else{var Y=$.onUncaughtError;Y(J,{componentStack:Z.stack})}}catch(U){setTimeout(function(){throw U})}}function OH($,Z,J){try{x7=J.source?d(J.source):null,IN=d(Z);var Y=$.onCaughtError;Y(J.value,{componentStack:J.stack,errorBoundary:Z.tag===1?Z.stateNode:null})}catch(U){setTimeout(function(){throw U})}}function Dq($,Z,J){return J=g8(J),J.tag=zN,J.payload={element:null},J.callback=function(){G0(Z.source,gJ,$,Z)},J}function vq($){return $=g8($),$.tag=zN,$}function bq($,Z,J,Y){var U=J.type.getDerivedStateFromError;if(typeof U==="function"){var B=Y.value;$.payload=function(){return U(B)},$.callback=function(){TB(J),G0(Y.source,OH,Z,J,Y)}}var W=J.stateNode;W!==null&&typeof W.componentDidCatch==="function"&&($.callback=function(){TB(J),G0(Y.source,OH,Z,J,Y),typeof U!=="function"&&(K2===null?K2=new Set([this]):K2.add(this)),cV(this,Y),typeof U==="function"||(J.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(J)||"Unknown")})}function z_($,Z,J,Y,U){if(J.flags|=32768,I4&&s$($,U),Y!==null&&typeof Y==="object"&&typeof Y.then==="function"){if(Z=J.alternate,Z!==null&&$7(Z,J,U,!0),r0&&(A4=!0),J=M6.current,J!==null){switch(J.tag){case 31:case 13:return D6===null?rJ():J.alternate===null&&A1===K8&&(A1=uG),J.flags&=-257,J.flags|=65536,J.lanes=U,Y===vG?J.flags|=16384:(Z=J.updateQueue,Z===null?J.updateQueue=new Set([Y]):Z.add(Y),$Y($,Y,U)),!1;case 22:return J.flags|=65536,Y===vG?J.flags|=16384:(Z=J.updateQueue,Z===null?(Z={transitions:null,markerInstances:null,retryQueue:new Set([Y])},J.updateQueue=Z):(J=Z.retryQueue,J===null?Z.retryQueue=new Set([Y]):J.add(Y)),$Y($,Y,U)),!1}throw Error("Unexpected Suspense handler tag ("+J.tag+"). This is a bug in React.")}return $Y($,Y,U),rJ(),!1}if(r0)return A4=!0,Z=M6.current,Z!==null?((Z.flags&65536)===0&&(Z.flags|=256),Z.flags|=65536,Z.lanes=U,Y!==YN&&j$(J6(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:Y}),J))):(Y!==YN&&j$(J6(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:Y}),J)),$=$.current.alternate,$.flags|=65536,U&=-U,$.lanes|=U,Y=J6(Y,J),U=Dq($.stateNode,Y,U),CJ($,U),A1!==q2&&(A1=w9)),!1;var B=J6(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:Y}),J);if(uZ===null?uZ=[B]:uZ.push(B),A1!==q2&&(A1=w9),Z===null)return!0;Y=J6(Y,J),J=Z;do{switch(J.tag){case 3:return J.flags|=65536,$=U&-U,J.lanes|=$,$=Dq(J.stateNode,Y,$),CJ(J,$),!1;case 1:if(Z=J.type,B=J.stateNode,(J.flags&128)===0&&(typeof Z.getDerivedStateFromError==="function"||B!==null&&typeof B.componentDidCatch==="function"&&(K2===null||!K2.has(B))))return J.flags|=65536,U&=-U,J.lanes|=U,U=vq(U),bq(U,$,J,Y),CJ(J,U),!1}J=J.return}while(J!==null);return!1}function B5($,Z,J,Y){Z.child=$===null?iW(Z,null,J,Y):F9(Z,$.child,J,Y)}function EH($,Z,J,Y,U){J=J.render;var B=Z.ref;if("ref"in Y){var W={};for(var R in Y)R!=="ref"&&(W[R]=Y[R])}else W=Y;if(a2(Z),Y=Gq($,Z,J,W,B,U),R=qq(),$!==null&&!l1)return Yq($,Z,U),n4($,Z,U);return r0&&R&&mX(Z),Z.flags|=1,B5($,Z,Y,U),Z.child}function AH($,Z,J,Y,U){if($===null){var B=J.type;if(typeof B==="function"&&!gX(B)&&B.defaultProps===void 0&&J.compare===null)return J=r2(B),Z.tag=15,Z.type=J,fq(Z,B),jH($,Z,J,Y,U);return $=hX(J.type,null,Y,Z,Z.mode,U),$.ref=Z.ref,$.return=Z,Z.child=$}if(B=$.child,!mq($,U)){var W=B.memoizedProps;if(J=J.compare,J=J!==null?J:E$,J(W,Y)&&$.ref===Z.ref)return n4($,Z,U)}return Z.flags|=1,$=c4(B,Y),$.ref=Z.ref,$.return=Z,Z.child=$}function jH($,Z,J,Y,U){if($!==null){var B=$.memoizedProps;if(E$(B,Y)&&$.ref===Z.ref&&Z.type===$.type)if(l1=!1,Z.pendingProps=Y=B,mq($,U))($.flags&131072)!==0&&(l1=!0);else return Z.lanes=$.lanes,n4($,Z,U)}return kq($,Z,J,Y,U)}function SH($,Z,J,Y){var U=Y.children,B=$!==null?$.memoizedState:null;if($===null&&Z.stateNode===null&&(Z.stateNode={_visibility:FZ,_pendingMarkers:null,_retryCache:null,_transitions:null}),Y.mode==="hidden"){if((Z.flags&128)!==0){if(B=B!==null?B.baseLanes|J:J,$!==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 DH($,Z,B,J,Y)}if((J&536870912)!==0)Z.memoizedState={baseLanes:0,cachePool:null},$!==null&&RJ(Z,B!==null?B.cachePool:null),B!==null?rB(Z,B):$q(Z),sB(Z);else return Y=Z.lanes=536870912,DH($,Z,B!==null?B.baseLanes|J:J,J,Y)}else B!==null?(RJ(Z,B.cachePool),rB(Z,B),x8(Z),Z.memoizedState=null):($!==null&&RJ(Z,null),$q(Z),x8(Z));return B5($,Z,U,J),Z.child}function x$($,Z){return $!==null&&$.tag===22||Z.stateNode!==null||(Z.stateNode={_visibility:FZ,_pendingMarkers:null,_retryCache:null,_transitions:null}),Z.sibling}function DH($,Z,J,Y,U){var B=aX();return B=B===null?null:{parent:d1._currentValue,pool:B},Z.memoizedState={baseLanes:J,cachePool:B},$!==null&&RJ(Z,null),$q(Z),sB(Z),$!==null&&$7($,Z,Y,!0),Z.childLanes=U,null}function hJ($,Z){var J=Z.hidden;return J!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
129
+ `,$,Z,G)}function SH($){GN($)}function dJ($,Z){try{d7=Z.source?d(Z.source):null,AN=null;var G=Z.value;if(x.actQueue!==null)x.thrownErrors.push(G);else{var Y=$.onUncaughtError;Y(G,{componentStack:Z.stack})}}catch(U){setTimeout(function(){throw U})}}function jH($,Z,G){try{d7=G.source?d(G.source):null,AN=d(Z);var Y=$.onCaughtError;Y(G.value,{componentStack:G.stack,errorBoundary:Z.tag===1?Z.stateNode:null})}catch(U){setTimeout(function(){throw U})}}function kq($,Z,G){return G=u8(G),G.tag=PN,G.payload={element:null},G.callback=function(){G0(Z.source,dJ,$,Z)},G}function fq($){return $=u8($),$.tag=PN,$}function yq($,Z,G,Y){var U=G.type.getDerivedStateFromError;if(typeof U==="function"){var B=Y.value;$.payload=function(){return U(B)},$.callback=function(){CB(G),G0(Y.source,jH,Z,G,Y)}}var W=G.stateNode;W!==null&&typeof W.componentDidCatch==="function"&&($.callback=function(){CB(G),G0(Y.source,jH,Z,G,Y),typeof U!=="function"&&(H2===null?H2=new Set([this]):H2.add(this)),aI(this,Y),typeof U==="function"||(G.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(G)||"Unknown")})}function I_($,Z,G,Y,U){if(G.flags|=32768,E4&&t$($,U),Y!==null&&typeof Y==="object"&&typeof Y.then==="function"){if(Z=G.alternate,Z!==null&&Q7(Z,G,U,!0),s0&&(j4=!0),G=R6.current,G!==null){switch(G.tag){case 31:case 13:return k6===null?iJ():G.alternate===null&&S1===M8&&(S1=cG),G.flags&=-257,G.flags|=65536,G.lanes=U,Y===gG?G.flags|=16384:(Z=G.updateQueue,Z===null?G.updateQueue=new Set([Y]):Z.add(Y),JY($,Y,U)),!1;case 22:return G.flags|=65536,Y===gG?G.flags|=16384:(Z=G.updateQueue,Z===null?(Z={transitions:null,markerInstances:null,retryQueue:new Set([Y])},G.updateQueue=Z):(G=Z.retryQueue,G===null?Z.retryQueue=new Set([Y]):G.add(Y)),JY($,Y,U)),!1}throw Error("Unexpected Suspense handler tag ("+G.tag+"). This is a bug in React.")}return JY($,Y,U),iJ(),!1}if(s0)return j4=!0,Z=R6.current,Z!==null?((Z.flags&65536)===0&&(Z.flags|=256),Z.flags|=65536,Z.lanes=U,Y!==KN&&k$(Y6(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:Y}),G))):(Y!==KN&&k$(Y6(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:Y}),G)),$=$.current.alternate,$.flags|=65536,U&=-U,$.lanes|=U,Y=Y6(Y,G),U=kq($.stateNode,Y,U),AJ($,U),S1!==N2&&(S1=z9)),!1;var B=Y6(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:Y}),G);if(cZ===null?cZ=[B]:cZ.push(B),S1!==N2&&(S1=z9),Z===null)return!0;Y=Y6(Y,G),G=Z;do{switch(G.tag){case 3:return G.flags|=65536,$=U&-U,G.lanes|=$,$=kq(G.stateNode,Y,$),AJ(G,$),!1;case 1:if(Z=G.type,B=G.stateNode,(G.flags&128)===0&&(typeof Z.getDerivedStateFromError==="function"||B!==null&&typeof B.componentDidCatch==="function"&&(H2===null||!H2.has(B))))return G.flags|=65536,U&=-U,G.lanes|=U,U=fq(U),yq(U,$,G,Y),AJ(G,U),!1}G=G.return}while(G!==null);return!1}function H5($,Z,G,Y){Z.child=$===null?Zw(Z,null,G,Y):w9(Z,$.child,G,Y)}function DH($,Z,G,Y,U){G=G.render;var B=Z.ref;if("ref"in Y){var W={};for(var R in Y)R!=="ref"&&(W[R]=Y[R])}else W=Y;if(t2(Z),Y=Yq($,Z,G,W,B,U),R=Uq(),$!==null&&!s1)return Kq($,Z,U),i4($,Z,U);return s0&&R&&cX(Z),Z.flags|=1,H5($,Z,Y,U),Z.child}function vH($,Z,G,Y,U){if($===null){var B=G.type;if(typeof B==="function"&&!xX(B)&&B.defaultProps===void 0&&G.compare===null)return G=n2(B),Z.tag=15,Z.type=G,hq(Z,B),bH($,Z,G,Y,U);return $=mX(G.type,null,Y,Z,Z.mode,U),$.ref=Z.ref,$.return=Z,Z.child=$}if(B=$.child,!cq($,U)){var W=B.memoizedProps;if(G=G.compare,G=G!==null?G:v$,G(W,Y)&&$.ref===Z.ref)return i4($,Z,U)}return Z.flags|=1,$=s4(B,Y),$.ref=Z.ref,$.return=Z,Z.child=$}function bH($,Z,G,Y,U){if($!==null){var B=$.memoizedProps;if(v$(B,Y)&&$.ref===Z.ref&&Z.type===$.type)if(s1=!1,Z.pendingProps=Y=B,cq($,U))($.flags&131072)!==0&&(s1=!0);else return Z.lanes=$.lanes,i4($,Z,U)}return gq($,Z,G,Y,U)}function kH($,Z,G,Y){var U=Y.children,B=$!==null?$.memoizedState:null;if($===null&&Z.stateNode===null&&(Z.stateNode={_visibility:TZ,_pendingMarkers:null,_retryCache:null,_transitions:null}),Y.mode==="hidden"){if((Z.flags&128)!==0){if(B=B!==null?B.baseLanes|G:G,$!==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 fH($,Z,B,G,Y)}if((G&536870912)!==0)Z.memoizedState={baseLanes:0,cachePool:null},$!==null&&_J(Z,B!==null?B.cachePool:null),B!==null?aB(Z,B):Jq(Z),iB(Z);else return Y=Z.lanes=536870912,fH($,Z,B!==null?B.baseLanes|G:G,G,Y)}else B!==null?(_J(Z,B.cachePool),aB(Z,B),d8(Z),Z.memoizedState=null):($!==null&&_J(Z,null),Jq(Z),d8(Z));return H5($,Z,U,G),Z.child}function l$($,Z){return $!==null&&$.tag===22||Z.stateNode!==null||(Z.stateNode={_visibility:TZ,_pendingMarkers:null,_retryCache:null,_transitions:null}),Z.sibling}function fH($,Z,G,Y,U){var B=eX();return B=B===null?null:{parent:c1._currentValue,pool:B},Z.memoizedState={baseLanes:G,cachePool:B},$!==null&&_J(Z,null),Jq(Z),iB(Z),$!==null&&Q7($,Z,Y,!0),Z.childLanes=U,null}function pJ($,Z){var G=Z.hidden;return G!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
130
130
  - <Activity %s>
131
- + <Activity %s>`,J===!0?"hidden":J===!1?"hidden={false}":"hidden={...}",J?'mode="hidden"':'mode="visible"'),Z=xJ({mode:Z.mode,children:Z.children},$.mode),Z.ref=$.ref,$.child=Z,Z.return=$,Z}function vH($,Z,J){return F9(Z,$.child,null,J),$=hJ(Z,Z.pendingProps),$.flags|=2,q6(Z),Z.memoizedState=null,$}function T_($,Z,J){var Y=Z.pendingProps,U=(Z.flags&128)!==0;if(Z.flags&=-129,$===null){if(r0){if(Y.mode==="hidden")return $=hJ(Z,Y),Z.lanes=536870912,x$(null,$);if(Qq(Z),($=L1)?(J=JF($,j6),J=J!==null&&J.data===_9?J:null,J!==null&&(Y={dehydrated:J,treeContext:VB(),retryLane:536870912,hydrationErrors:null},Z.memoizedState=Y,Y=_B(J),Y.return=Z,Z.child=Y,F5=Z,L1=null)):J=null,J===null)throw BJ(Z,$),k8(Z);return Z.lanes=536870912,null}return hJ(Z,Y)}var B=$.memoizedState;if(B!==null){var W=B.dehydrated;if(Qq(Z),U)if(Z.flags&256)Z.flags&=-257,Z=vH($,Z,J);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(OB(),(J&536870912)!==0&&lJ(Z),l1||$7($,Z,J,!1),U=(J&$.childLanes)!==0,l1||U){if(Y=F1,Y!==null&&(W=m2(Y,J),W!==0&&W!==B.retryLane))throw B.retryLane=W,L5($,W),S1(Y,$,W),ON;rJ(),Z=vH($,Z,J)}else $=B.treeContext,L1=N6(W.nextSibling),F5=Z,r0=!0,e8=null,A4=!1,H6=null,j6=!1,$!==null&&IB(Z,$),Z=hJ(Z,Y),Z.flags|=4096;return Z}return B=$.child,Y={mode:Y.mode,children:Y.children},(J&536870912)!==0&&(J&$.lanes)!==0&&lJ(Z),$=c4(B,Y),$.ref=Z.ref,Z.child=$,$.return=Z,$}function uJ($,Z){var J=Z.ref;if(J===null)$!==null&&$.ref!==null&&(Z.flags|=4194816);else{if(typeof J!=="function"&&typeof J!=="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");if($===null||$.ref!==J)Z.flags|=4194816}}function kq($,Z,J,Y,U){if(J.prototype&&typeof J.prototype.render==="function"){var B=a(J)||"Unknown";zw[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),zw[B]=!0)}if(Z.mode&_5&&a6.recordLegacyContextWarning(Z,null),$===null&&(fq(Z,Z.type),J.contextTypes&&(B=a(J)||"Unknown",Lw[B]||(Lw[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)))),a2(Z),J=Gq($,Z,J,Y,void 0,U),Y=qq(),$!==null&&!l1)return Yq($,Z,U),n4($,Z,U);return r0&&Y&&mX(Z),Z.flags|=1,B5($,Z,J,U),Z.child}function bH($,Z,J,Y,U,B){if(a2(Z),N8=-1,vZ=$!==null&&$.type!==Z.type,Z.updateQueue=null,J=Xq(Z,Y,J,U),nB($,Z),Y=qq(),$!==null&&!l1)return Yq($,Z,B),n4($,Z,B);return r0&&Y&&mX(Z),Z.flags|=1,B5($,Z,J,B),Z.child}function kH($,Z,J,Y,U){switch(H(Z)){case!1:var B=Z.stateNode,W=new Z.type(Z.memoizedProps,B.context).state;B.updater.enqueueSetState(B,W,null);break;case!0:Z.flags|=128,Z.flags|=65536,B=Error("Simulated error coming from DevTools");var R=U&-U;if(Z.lanes|=R,W=F1,W===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");R=vq(R),bq(R,W,Z,J6(B,Z)),CJ(Z,R)}if(a2(Z),Z.stateNode===null){if(W=t8,B=J.contextType,"contextType"in J&&B!==null&&(B===void 0||B.$$typeof!==_4)&&!ww.has(J)&&(ww.add(J),R=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===EY?" 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",a(J)||"Component",R)),typeof B==="object"&&B!==null&&(W=V1(B)),B=new J(Y,W),Z.mode&_5){W1(!0);try{B=new J(Y,W)}finally{W1(!1)}}if(W=Z.memoizedState=B.state!==null&&B.state!==void 0?B.state:null,B.updater=VN,Z.stateNode=B,B._reactInternals=Z,B._reactInternalInstance=Yw,typeof J.getDerivedStateFromProps==="function"&&W===null&&(W=a(J)||"Component",Uw.has(W)||(Uw.add(W),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.",W,B.state===null?"null":"undefined",W))),typeof J.getDerivedStateFromProps==="function"||typeof B.getSnapshotBeforeUpdate==="function"){var L=R=W=null;if(typeof B.componentWillMount==="function"&&B.componentWillMount.__suppressDeprecationWarning!==!0?W="componentWillMount":typeof B.UNSAFE_componentWillMount==="function"&&(W="UNSAFE_componentWillMount"),typeof B.componentWillReceiveProps==="function"&&B.componentWillReceiveProps.__suppressDeprecationWarning!==!0?R="componentWillReceiveProps":typeof B.UNSAFE_componentWillReceiveProps==="function"&&(R="UNSAFE_componentWillReceiveProps"),typeof B.componentWillUpdate==="function"&&B.componentWillUpdate.__suppressDeprecationWarning!==!0?L="componentWillUpdate":typeof B.UNSAFE_componentWillUpdate==="function"&&(L="UNSAFE_componentWillUpdate"),W!==null||R!==null||L!==null){B=a(J)||"Component";var _=typeof J.getDerivedStateFromProps==="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";Bw.has(B)||(Bw.add(B),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
131
+ + <Activity %s>`,G===!0?"hidden":G===!1?"hidden={false}":"hidden={...}",G?'mode="hidden"':'mode="visible"'),Z=lJ({mode:Z.mode,children:Z.children},$.mode),Z.ref=$.ref,$.child=Z,Z.return=$,Z}function yH($,Z,G){return w9(Z,$.child,null,G),$=pJ(Z,Z.pendingProps),$.flags|=2,K6(Z),Z.memoizedState=null,$}function V_($,Z,G){var Y=Z.pendingProps,U=(Z.flags&128)!==0;if(Z.flags&=-129,$===null){if(s0){if(Y.mode==="hidden")return $=pJ(Z,Y),Z.lanes=536870912,l$(null,$);if(Xq(Z),($=P1)?(G=YF($,v6),G=G!==null&&G.data===I9?G:null,G!==null&&(Y={dehydrated:G,treeContext:AB(),retryLane:536870912,hydrationErrors:null},Z.memoizedState=Y,Y=OB(G),Y.return=Z,Z.child=Y,W5=Z,P1=null)):G=null,G===null)throw wJ(Z,$),y8(Z);return Z.lanes=536870912,null}return pJ(Z,Y)}var B=$.memoizedState;if(B!==null){var W=B.dehydrated;if(Xq(Z),U)if(Z.flags&256)Z.flags&=-257,Z=yH($,Z,G);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(jB(),(G&536870912)!==0&&aJ(Z),s1||Q7($,Z,G,!1),U=(G&$.childLanes)!==0,s1||U){if(Y=W1,Y!==null&&(W=p2(Y,G),W!==0&&W!==B.retryLane))throw B.retryLane=W,_5($,W),D1(Y,$,W),SN;iJ(),Z=yH($,Z,G)}else $=B.treeContext,P1=H6(W.nextSibling),W5=Z,s0=!0,Z2=null,j4=!1,w6=null,v6=!1,$!==null&&SB(Z,$),Z=pJ(Z,Y),Z.flags|=4096;return Z}return B=$.child,Y={mode:Y.mode,children:Y.children},(G&536870912)!==0&&(G&$.lanes)!==0&&aJ(Z),$=s4(B,Y),$.ref=Z.ref,Z.child=$,$.return=Z,$}function cJ($,Z){var G=Z.ref;if(G===null)$!==null&&$.ref!==null&&(Z.flags|=4194816);else{if(typeof G!=="function"&&typeof G!=="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");if($===null||$.ref!==G)Z.flags|=4194816}}function gq($,Z,G,Y,U){if(G.prototype&&typeof G.prototype.render==="function"){var B=a(G)||"Unknown";_w[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),_w[B]=!0)}if(Z.mode&I5&&e6.recordLegacyContextWarning(Z,null),$===null&&(hq(Z,Z.type),G.contextTypes&&(B=a(G)||"Unknown",Iw[B]||(Iw[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)))),t2(Z),G=Yq($,Z,G,Y,void 0,U),Y=Uq(),$!==null&&!s1)return Kq($,Z,U),i4($,Z,U);return s0&&Y&&cX(Z),Z.flags|=1,H5($,Z,G,U),Z.child}function gH($,Z,G,Y,U,B){if(t2(Z),B8=-1,gZ=$!==null&&$.type!==Z.type,Z.updateQueue=null,G=Nq(Z,Y,G,U),tB($,Z),Y=Uq(),$!==null&&!s1)return Kq($,Z,B),i4($,Z,B);return s0&&Y&&cX(Z),Z.flags|=1,H5($,Z,G,B),Z.child}function hH($,Z,G,Y,U){switch(H(Z)){case!1:var B=Z.stateNode,W=new Z.type(Z.memoizedProps,B.context).state;B.updater.enqueueSetState(B,W,null);break;case!0:Z.flags|=128,Z.flags|=65536,B=Error("Simulated error coming from DevTools");var R=U&-U;if(Z.lanes|=R,W=W1,W===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");R=fq(R),yq(R,W,Z,Y6(B,Z)),AJ(Z,R)}if(t2(Z),Z.stateNode===null){if(W=$2,B=G.contextType,"contextType"in G&&B!==null&&(B===void 0||B.$$typeof!==I4)&&!Lw.has(G)&&(Lw.add(G),R=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===jY?" 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",a(G)||"Component",R)),typeof B==="object"&&B!==null&&(W=O1(B)),B=new G(Y,W),Z.mode&I5){w1(!0);try{B=new G(Y,W)}finally{w1(!1)}}if(W=Z.memoizedState=B.state!==null&&B.state!==void 0?B.state:null,B.updater=EN,Z.stateNode=B,B._reactInternals=Z,B._reactInternalInstance=Bw,typeof G.getDerivedStateFromProps==="function"&&W===null&&(W=a(G)||"Component",Mw.has(W)||(Mw.add(W),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.",W,B.state===null?"null":"undefined",W))),typeof G.getDerivedStateFromProps==="function"||typeof B.getSnapshotBeforeUpdate==="function"){var L=R=W=null;if(typeof B.componentWillMount==="function"&&B.componentWillMount.__suppressDeprecationWarning!==!0?W="componentWillMount":typeof B.UNSAFE_componentWillMount==="function"&&(W="UNSAFE_componentWillMount"),typeof B.componentWillReceiveProps==="function"&&B.componentWillReceiveProps.__suppressDeprecationWarning!==!0?R="componentWillReceiveProps":typeof B.UNSAFE_componentWillReceiveProps==="function"&&(R="UNSAFE_componentWillReceiveProps"),typeof B.componentWillUpdate==="function"&&B.componentWillUpdate.__suppressDeprecationWarning!==!0?L="componentWillUpdate":typeof B.UNSAFE_componentWillUpdate==="function"&&(L="UNSAFE_componentWillUpdate"),W!==null||R!==null||L!==null){B=a(G)||"Component";var _=typeof G.getDerivedStateFromProps==="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";Ww.has(B)||(Ww.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
 
@@ -136,8 +136,8 @@ The above lifecycles should be removed. Learn more about this warning here:
136
136
  https://react.dev/link/unsafe-component-lifecycles`,B,_,W!==null?`
137
137
  `+W:"",R!==null?`
138
138
  `+R:"",L!==null?`
139
- `+L:""))}}B=Z.stateNode,W=a(J)||"Component",B.render||(J.prototype&&typeof J.prototype.render==="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",W):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",W)),!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?",W),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.",W),B.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",W),J.childContextTypes&&!Ww.has(J)&&(Ww.add(J),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",W)),J.contextTypes&&!Fw.has(J)&&(Fw.add(J),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)",W)),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.",W),J.prototype&&J.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.",a(J)||"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()?",W),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().",W),typeof B.componentWillRecieveProps==="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",W),typeof B.UNSAFE_componentWillRecieveProps==="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",W),R=B.props!==Y,B.props!==void 0&&R&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",W),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.",W,W),typeof B.getSnapshotBeforeUpdate!=="function"||typeof B.componentDidUpdate==="function"||Kw.has(J)||(Kw.add(J),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",a(J))),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.",W),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.",W),typeof J.getSnapshotBeforeUpdate==="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",W),(R=B.state)&&(typeof R!=="object"||i1(R))&&console.error("%s.state: must be set to an object or null",W),typeof B.getChildContext==="function"&&typeof J.childContextTypes!=="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",W),B=Z.stateNode,B.props=Y,B.state=Z.memoizedState,B.refs={},tX(Z),W=J.contextType,B.context=typeof W==="object"&&W!==null?V1(W):t8,B.state===Y&&(W=a(J)||"Component",Hw.has(W)||(Hw.add(W),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.",W))),Z.mode&_5&&a6.recordLegacyContextWarning(Z,B),a6.recordUnsafeLifecycleWarnings(Z,B),B.state=Z.memoizedState,W=J.getDerivedStateFromProps,typeof W==="function"&&(Sq(Z,J,W,Y),B.state=Z.memoizedState),typeof J.getDerivedStateFromProps==="function"||typeof B.getSnapshotBeforeUpdate==="function"||typeof B.UNSAFE_componentWillMount!=="function"&&typeof B.componentWillMount!=="function"||(W=B.state,typeof B.componentWillMount==="function"&&B.componentWillMount(),typeof B.UNSAFE_componentWillMount==="function"&&B.UNSAFE_componentWillMount(),W!==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"),VN.enqueueReplaceState(B,B.state,null)),y$(Z,Y,B,U),f$(),B.state=Z.memoizedState),typeof B.componentDidMount==="function"&&(Z.flags|=4194308),(Z.mode&o6)!==C0&&(Z.flags|=134217728),B=!0}else if($===null){B=Z.stateNode;var k=Z.memoizedProps;R=Z9(J,k),B.props=R;var f=B.context;L=J.contextType,W=t8,typeof L==="object"&&L!==null&&(W=V1(L)),_=J.getDerivedStateFromProps,L=typeof _==="function"||typeof B.getSnapshotBeforeUpdate==="function",k=Z.pendingProps!==k,L||typeof B.UNSAFE_componentWillReceiveProps!=="function"&&typeof B.componentWillReceiveProps!=="function"||(k||f!==W)&&_H(Z,B,Y,W),X2=!1;var j=Z.memoizedState;B.state=j,y$(Z,Y,B,U),f$(),f=Z.memoizedState,k||j!==f||X2?(typeof _==="function"&&(Sq(Z,J,_,Y),f=Z.memoizedState),(R=X2||PH(Z,J,R,Y,j,f,W))?(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&o6)!==C0&&(Z.flags|=134217728)):(typeof B.componentDidMount==="function"&&(Z.flags|=4194308),(Z.mode&o6)!==C0&&(Z.flags|=134217728),Z.memoizedProps=Y,Z.memoizedState=f),B.props=Y,B.state=f,B.context=W,B=R):(typeof B.componentDidMount==="function"&&(Z.flags|=4194308),(Z.mode&o6)!==C0&&(Z.flags|=134217728),B=!1)}else{B=Z.stateNode,eX($,Z),W=Z.memoizedProps,L=Z9(J,W),B.props=L,_=Z.pendingProps,j=B.context,f=J.contextType,R=t8,typeof f==="object"&&f!==null&&(R=V1(f)),k=J.getDerivedStateFromProps,(f=typeof k==="function"||typeof B.getSnapshotBeforeUpdate==="function")||typeof B.UNSAFE_componentWillReceiveProps!=="function"&&typeof B.componentWillReceiveProps!=="function"||(W!==_||j!==R)&&_H(Z,B,Y,R),X2=!1,j=Z.memoizedState,B.state=j,y$(Z,Y,B,U),f$();var g=Z.memoizedState;W!==_||j!==g||X2||$!==null&&$.dependencies!==null&&MJ($.dependencies)?(typeof k==="function"&&(Sq(Z,J,k,Y),g=Z.memoizedState),(L=X2||PH(Z,J,L,Y,j,g,R)||$!==null&&$.dependencies!==null&&MJ($.dependencies))?(f||typeof B.UNSAFE_componentWillUpdate!=="function"&&typeof B.componentWillUpdate!=="function"||(typeof B.componentWillUpdate==="function"&&B.componentWillUpdate(Y,g,R),typeof B.UNSAFE_componentWillUpdate==="function"&&B.UNSAFE_componentWillUpdate(Y,g,R)),typeof B.componentDidUpdate==="function"&&(Z.flags|=4),typeof B.getSnapshotBeforeUpdate==="function"&&(Z.flags|=1024)):(typeof B.componentDidUpdate!=="function"||W===$.memoizedProps&&j===$.memoizedState||(Z.flags|=4),typeof B.getSnapshotBeforeUpdate!=="function"||W===$.memoizedProps&&j===$.memoizedState||(Z.flags|=1024),Z.memoizedProps=Y,Z.memoizedState=g),B.props=Y,B.state=g,B.context=R,B=L):(typeof B.componentDidUpdate!=="function"||W===$.memoizedProps&&j===$.memoizedState||(Z.flags|=4),typeof B.getSnapshotBeforeUpdate!=="function"||W===$.memoizedProps&&j===$.memoizedState||(Z.flags|=1024),B=!1)}if(R=B,uJ($,Z),W=(Z.flags&128)!==0,R||W){if(R=Z.stateNode,r9(Z),W&&typeof J.getDerivedStateFromError!=="function")J=null,D5=-1;else if(J=gW(R),Z.mode&_5){W1(!0);try{gW(R)}finally{W1(!1)}}Z.flags|=1,$!==null&&W?(Z.child=F9(Z,$.child,null,U),Z.child=F9(Z,null,J,U)):B5($,Z,J,U),Z.memoizedState=R.state,$=Z.child}else $=n4($,Z,U);return U=Z.stateNode,B&&U.props!==Y&&(m7||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"),m7=!0),$}function fH($,Z,J,Y){return o2(),Z.flags|=256,B5($,Z,J,Y),Z.child}function fq($,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"&&($=a(Z)||"Unknown",Pw[$]||(console.error("%s: Function components do not support getDerivedStateFromProps.",$),Pw[$]=!0)),typeof Z.contextType==="object"&&Z.contextType!==null&&(Z=a(Z)||"Unknown",Tw[Z]||(console.error("%s: Function components do not support contextType.",Z),Tw[Z]=!0))}function yq($){return{baseLanes:$,cachePool:bB()}}function gq($,Z,J){return $=$!==null?$.childLanes&~J:0,Z&&($|=d5),$}function yH($,Z,J){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:(g1.current&SZ)!==0),Y&&(B=!0,Z.flags&=-129),Y=(Z.flags&32)!==0,Z.flags&=-33,$===null){if(r0){if(B?u8(Z):x8(Z),($=L1)?(J=JF($,j6),J=J!==null&&J.data!==_9?J:null,J!==null&&(Y={dehydrated:J,treeContext:VB(),retryLane:536870912,hydrationErrors:null},Z.memoizedState=Y,Y=_B(J),Y.return=Z,Z.child=Y,F5=Z,L1=null)):J=null,J===null)throw BJ(Z,$),k8(Z);return wY(J)?Z.lanes=32:Z.lanes=536870912,null}var R=U.children;if(U=U.fallback,B){x8(Z);var L=Z.mode;return R=xJ({mode:"hidden",children:R},L),U=s2(U,L,J,null),R.return=Z,U.return=Z,R.sibling=U,Z.child=R,U=Z.child,U.memoizedState=yq(J),U.childLanes=gq($,Y,J),Z.memoizedState=EN,x$(null,U)}return u8(Z),hq(Z,R)}var _=$.memoizedState;if(_!==null){var k=_.dehydrated;if(k!==null){if(W)Z.flags&256?(u8(Z),Z.flags&=-257,Z=uq($,Z,J)):Z.memoizedState!==null?(x8(Z),Z.child=$.child,Z.flags|=128,Z=null):(x8(Z),R=U.fallback,L=Z.mode,U=xJ({mode:"visible",children:U.children},L),R=s2(R,L,J,null),R.flags|=2,U.return=Z,R.return=Z,U.sibling=R,Z.child=U,F9(Z,$.child,null,J),U=Z.child,U.memoizedState=yq(J),U.childLanes=gq($,Y,J),Z.memoizedState=EN,Z=x$(null,U));else if(u8(Z),OB(),(J&536870912)!==0&&lJ(Z),wY(k)){if(Y=k.nextSibling&&k.nextSibling.dataset,Y){R=Y.dgst;var f=Y.msg;L=Y.stck;var j=Y.cstck}B=f,Y=R,U=L,k=j,R=B,L=k,R=R?Error(R):Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),R.stack=U||"",R.digest=Y,Y=L===void 0?null:L,U={value:R,source:null,stack:Y},typeof Y==="string"&&qN.set(R,U),j$(U),Z=uq($,Z,J)}else if(l1||$7($,Z,J,!1),Y=(J&$.childLanes)!==0,l1||Y){if(Y=F1,Y!==null&&(U=m2(Y,J),U!==0&&U!==_.retryLane))throw _.retryLane=U,L5($,U),S1(Y,$,U),ON;WY(k)||rJ(),Z=uq($,Z,J)}else WY(k)?(Z.flags|=192,Z.child=$.child,Z=null):($=_.treeContext,L1=N6(k.nextSibling),F5=Z,r0=!0,e8=null,A4=!1,H6=null,j6=!1,$!==null&&IB(Z,$),Z=hq(Z,U.children),Z.flags|=4096);return Z}}if(B)return x8(Z),R=U.fallback,L=Z.mode,j=$.child,k=j.sibling,U=c4(j,{mode:"hidden",children:U.children}),U.subtreeFlags=j.subtreeFlags&65011712,k!==null?R=c4(k,R):(R=s2(R,L,J,null),R.flags|=2),R.return=Z,U.return=Z,U.sibling=R,Z.child=U,x$(null,U),U=Z.child,R=$.child.memoizedState,R===null?R=yq(J):(L=R.cachePool,L!==null?(j=d1._currentValue,L=L.parent!==j?{parent:j,pool:j}:L):L=bB(),R={baseLanes:R.baseLanes|J,cachePool:L}),U.memoizedState=R,U.childLanes=gq($,Y,J),Z.memoizedState=EN,x$($.child,U);return _!==null&&(J&62914560)===J&&(J&$.lanes)!==0&&lJ(Z),u8(Z),J=$.child,$=J.sibling,J=c4(J,{mode:"visible",children:U.children}),J.return=Z,J.sibling=null,$!==null&&(Y=Z.deletions,Y===null?(Z.deletions=[$],Z.flags|=16):Y.push($)),Z.child=J,Z.memoizedState=null,J}function hq($,Z){return Z=xJ({mode:"visible",children:Z},$.mode),Z.return=$,$.child=Z}function xJ($,Z){return $=P(22,$,null,Z),$.lanes=0,$}function uq($,Z,J){return F9(Z,$.child,null,J),$=hq(Z,Z.pendingProps.children),$.flags|=2,Z.memoizedState=null,$}function gH($,Z,J){$.lanes|=Z;var Y=$.alternate;Y!==null&&(Y.lanes|=Z),lX($.return,Z,J)}function xq($,Z,J,Y,U,B){var W=$.memoizedState;W===null?$.memoizedState={isBackwards:Z,rendering:null,renderingStartTime:0,last:Y,tail:J,tailMode:U,treeForkCount:B}:(W.isBackwards=Z,W.rendering=null,W.renderingStartTime=0,W.last=Y,W.tail=J,W.tailMode=U,W.treeForkCount=B)}function hH($,Z,J){var Y=Z.pendingProps,U=Y.revealOrder,B=Y.tail,W=Y.children,R=g1.current;if((Y=(R&SZ)!==0)?(R=R&g7|SZ,Z.flags|=128):R&=g7,_0(g1,R,Z),R=U==null?"null":U,U!=="forwards"&&U!=="unstable_legacy-backwards"&&U!=="together"&&U!=="independent"&&!_w[R])if(_w[R]=!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(R=B==null?"null":B,!hG[R])if(B==null){if(U==="forwards"||U==="backwards"||U==="unstable_legacy-backwards")hG[R]=!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"?(hG[R]=!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"&&(hG[R]=!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(i1(W)){for(R=0;R<W.length;R++)if(!pB(W[R],R))break $}else if(R=i(W),typeof R==="function"){if(R=R.call(W))for(var L=R.next(),_=0;!L.done;L=R.next()){if(!pB(L.value,_))break $;_++}}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(B5($,Z,W,J),r0?(b8(),W=WZ):W=0,!Y&&$!==null&&($.flags&128)!==0)$:for($=Z.child;$!==null;){if($.tag===13)$.memoizedState!==null&&gH($,J,Z);else if($.tag===19)gH($,J,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":J=Z.child;for(U=null;J!==null;)$=J.alternate,$!==null&&VJ($)===null&&(U=J),J=J.sibling;J=U,J===null?(U=Z.child,Z.child=null):(U=J.sibling,J.sibling=null),xq(Z,!1,U,J,B,W);break;case"backwards":case"unstable_legacy-backwards":J=null,U=Z.child;for(Z.child=null;U!==null;){if($=U.alternate,$!==null&&VJ($)===null){Z.child=U;break}$=U.sibling,U.sibling=J,J=U,U=$}xq(Z,!0,J,null,B,W);break;case"together":xq(Z,!1,null,null,void 0,W);break;default:Z.memoizedState=null}return Z.child}function n4($,Z,J){if($!==null&&(Z.dependencies=$.dependencies),D5=-1,N2|=Z.lanes,(J&Z.childLanes)===0)if($!==null){if($7($,Z,J,!1),(J&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,J=c4($,$.pendingProps),Z.child=J;for(J.return=Z;$.sibling!==null;)$=$.sibling,J=J.sibling=c4($,$.pendingProps),J.return=Z;J.sibling=null}return Z.child}function mq($,Z){if(($.lanes&Z)!==0)return!0;return $=$.dependencies,$!==null&&MJ($)?!0:!1}function L_($,Z,J){switch(Z.tag){case 3:l(Z,Z.stateNode.containerInfo),f8(Z,d1,$.memoizedState.cache),o2();break;case 27:case 5:l0(Z);break;case 4:l(Z,Z.stateNode.containerInfo);break;case 10:f8(Z,Z.type,Z.memoizedProps.value);break;case 12:(J&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,Qq(Z),null;break;case 13:if(Y=Z.memoizedState,Y!==null){if(Y.dehydrated!==null)return u8(Z),Z.flags|=128,null;if((J&Z.child.childLanes)!==0)return yH($,Z,J);return u8(Z),$=n4($,Z,J),$!==null?$.sibling:null}u8(Z);break;case 19:var U=($.flags&128)!==0;if(Y=(J&Z.childLanes)!==0,Y||($7($,Z,J,!1),Y=(J&Z.childLanes)!==0),U){if(Y)return hH($,Z,J);Z.flags|=128}if(U=Z.memoizedState,U!==null&&(U.rendering=null,U.tail=null,U.lastEffect=null),_0(g1,g1.current,Z),Y)break;else return null;case 22:return Z.lanes=0,SH($,Z,J,Z.pendingProps);case 24:f8(Z,d1,$.memoizedState.cache)}return n4($,Z,J)}function dq($,Z,J){if(Z._debugNeedsRemount&&$!==null){J=hX(Z.type,Z.key,Z.pendingProps,Z._debugOwner||null,Z.mode,Z.lanes),J._debugStack=Z._debugStack,J._debugTask=Z._debugTask;var Y=Z.return;if(Y===null)throw Error("Cannot swap the root fiber.");if($.alternate=null,Z.alternate=null,J.index=Z.index,J.sibling=Z.sibling,J.return=Z.return,J.ref=Z.ref,J._debugInfo=Z._debugInfo,Z===Y.child)Y.child=J;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=J}return Z=Y.deletions,Z===null?(Y.deletions=[$],Y.flags|=16):Z.push($),J.flags|=2,J}if($!==null)if($.memoizedProps!==Z.pendingProps||Z.type!==$.type)l1=!0;else{if(!mq($,J)&&(Z.flags&128)===0)return l1=!1,L_($,Z,J);l1=($.flags&131072)!==0?!0:!1}else{if(l1=!1,Y=r0)b8(),Y=(Z.flags&1048576)!==0;Y&&(Y=Z.index,b8(),CB(Z,WZ,Y))}switch(Z.lanes=0,Z.tag){case 16:$:if(Y=Z.pendingProps,$=y8(Z.elementType),Z.type=$,typeof $==="function")gX($)?(Y=Z9($,Y),Z.tag=1,Z.type=$=r2($),Z=kH(null,Z,$,Y,J)):(Z.tag=0,fq(Z,$),Z.type=$=r2($),Z=kq(null,Z,$,Y,J));else{if($!==void 0&&$!==null){if(U=$.$$typeof,U===QZ){Z.tag=11,Z.type=$=yX($),Z=EH(null,Z,$,Y,J);break $}else if(U===qG){Z.tag=14,Z=AH(null,Z,$,Y,J);break $}}throw Z="",$!==null&&typeof $==="object"&&$.$$typeof===U6&&(Z=" Did you wrap a component in React.lazy() more than once?"),J=a($)||$,Error("Element type is invalid. Received a promise that resolves to: "+J+". Lazy element type must resolve to a class or function."+Z)}return Z;case 0:return kq($,Z,Z.type,Z.pendingProps,J);case 1:return Y=Z.type,U=Z9(Y,Z.pendingProps),kH($,Z,Y,U,J);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,eX($,Z),y$(Z,Y,null,J);var W=Z.memoizedState;if(Y=W.cache,f8(Z,d1,Y),Y!==B.cache&&rX(Z,[d1],J,!0),f$(),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=fH($,Z,Y,J);break $}else if(Y!==U){U=J6(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),Z),j$(U),Z=fH($,Z,Y,J);break $}else{switch($=Z.stateNode.containerInfo,$.nodeType){case 9:$=$.body;break;default:$=$.nodeName==="HTML"?$.ownerDocument.body:$}L1=N6($.firstChild),F5=Z,r0=!0,e8=null,A4=!1,H6=null,j6=!0,J=iW(Z,null,Y,J);for(Z.child=J;J;)J.flags=J.flags&-3|4096,J=J.sibling}else{if(o2(),Y===U){Z=n4($,Z,J);break $}B5($,Z,Y,J)}Z=Z.child}return Z;case 26:return uJ($,Z),$===null?(J=UF(Z.type,null,Z.pendingProps,null))?Z.memoizedState=J:r0||(J=Z.type,$=Z.pendingProps,Y=S0(r8.current),Y=aJ(Y).createElement(J),Y[M5]=Z,Y[A5]=$,H5(Y,J,$),z0(Y),Z.stateNode=Y):Z.memoizedState=UF(Z.type,$.memoizedProps,Z.pendingProps,$.memoizedState),null;case 27:return l0(Z),$===null&&r0&&(Y=S0(r8.current),U=B0(),Y=Z.stateNode=YF(Z.type,Z.pendingProps,Y,U,!1),A4||(U=oM(Y,Z.type,Z.pendingProps,U),U!==null&&(n2(Z,0).serverProps=U)),F5=Z,j6=!0,U=L1,c8(Z.type)?(aN=U,L1=N6(Y.firstChild)):L1=U),B5($,Z,Z.pendingProps.children,J),uJ($,Z),$===null&&(Z.flags|=4194304),Z.child;case 5:return $===null&&r0&&(B=B0(),Y=AX(Z.type,B.ancestorInfo),U=L1,(W=!U)||(W=NC(U,Z.type,Z.pendingProps,j6),W!==null?(Z.stateNode=W,A4||(B=oM(W,Z.type,Z.pendingProps,B),B!==null&&(n2(Z,0).serverProps=B)),F5=Z,L1=N6(W.firstChild),j6=!1,B=!0):B=!1,W=!B),W&&(Y&&BJ(Z,U),k8(Z))),l0(Z),U=Z.type,B=Z.pendingProps,W=$!==null?$.memoizedProps:null,Y=B.children,MY(U,B)?Y=null:W!==null&&MY(U,W)&&(Z.flags|=32),Z.memoizedState!==null&&(U=Gq($,Z,H_,null,null,J),nZ._currentValue=U),uJ($,Z),B5($,Z,Y,J),Z.child;case 6:return $===null&&r0&&(J=Z.pendingProps,$=B0(),Y=$.ancestorInfo.current,J=Y!=null?ZJ(J,Y.tag,$.ancestorInfo.implicitRootScope):!0,$=L1,(Y=!$)||(Y=UC($,Z.pendingProps,j6),Y!==null?(Z.stateNode=Y,F5=Z,L1=null,Y=!0):Y=!1,Y=!Y),Y&&(J&&BJ(Z,$),k8(Z))),null;case 13:return yH($,Z,J);case 4:return l(Z,Z.stateNode.containerInfo),Y=Z.pendingProps,$===null?Z.child=F9(Z,null,Y,J):B5($,Z,Y,J),Z.child;case 11:return EH($,Z,Z.type,Z.pendingProps,J);case 7:return B5($,Z,Z.pendingProps,J),Z.child;case 8:return B5($,Z,Z.pendingProps.children,J),Z.child;case 12:return Z.flags|=4,Z.flags|=2048,Y=Z.stateNode,Y.effectDuration=-0,Y.passiveEffectDuration=-0,B5($,Z,Z.pendingProps.children,J),Z.child;case 10:return Y=Z.type,U=Z.pendingProps,B=U.value,"value"in U||Cw||(Cw=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),f8(Z,Y,B),B5($,Z,U.children,J),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."),a2(Z),U=V1(U),Y=FN(Y,U,void 0),Z.flags|=1,B5($,Z,Y,J),Z.child;case 14:return AH($,Z,Z.type,Z.pendingProps,J);case 15:return jH($,Z,Z.type,Z.pendingProps,J);case 19:return hH($,Z,J);case 31:return T_($,Z,J);case 22:return SH($,Z,J,Z.pendingProps);case 24:return a2(Z),Y=V1(d1),$===null?(U=aX(),U===null&&(U=F1,B=sX(),U.pooledCache=B,i2(B),B!==null&&(U.pooledCacheLanes|=J),U=B),Z.memoizedState={parent:Y,cache:U},tX(Z),f8(Z,d1,U)):(($.lanes&J)!==0&&(eX($,Z),y$(Z,null,null,J),f$()),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),f8(Z,d1,Y)):(Y=B.cache,f8(Z,d1,Y),Y!==U.cache&&rX(Z,[d1],J,!0))),B5($,Z,Z.pendingProps.children,J),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 o4($){$.flags|=4}function pq($,Z,J,Y,U){if(Z=($.mode&xV)!==C0)Z=!1;if(Z){if($.flags|=16777216,(U&335544128)===U)if($.stateNode.complete)$.flags|=8192;else if(RM())$.flags|=8192;else throw M9=vG,wN}else $.flags&=-16777217}function uH($,Z){if(Z.type!=="stylesheet"||(Z.state.loading&k6)!==I9)$.flags&=-16777217;else if($.flags|=16777216,!FF(Z))if(RM())$.flags|=8192;else throw M9=vG,wN}function mJ($,Z){Z!==null&&($.flags|=4),$.flags&16384&&(Z=$.tag!==22?n9():536870912,$.lanes|=Z,T9|=Z)}function m$($,Z){if(!r0)switch($.tailMode){case"hidden":Z=$.tail;for(var J=null;Z!==null;)Z.alternate!==null&&(J=Z),Z=Z.sibling;J===null?$.tail=null:J.sibling=null;break;case"collapsed":J=$.tail;for(var Y=null;J!==null;)J.alternate!==null&&(Y=J),J=J.sibling;Y===null?Z||$.tail===null?$.tail=null:$.tail.sibling=null:Y.sibling=null}}function w1($){var Z=$.alternate!==null&&$.alternate.child===$.child,J=0,Y=0;if(Z)if(($.mode&k0)!==C0){for(var{selfBaseDuration:U,child:B}=$;B!==null;)J|=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;)J|=U.lanes|U.childLanes,Y|=U.subtreeFlags&65011712,Y|=U.flags&65011712,U.return=$,U=U.sibling;else if(($.mode&k0)!==C0){U=$.actualDuration,B=$.selfBaseDuration;for(var W=$.child;W!==null;)J|=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;)J|=U.lanes|U.childLanes,Y|=U.subtreeFlags,Y|=U.flags,U.return=$,U=U.sibling;return $.subtreeFlags|=Y,$.childLanes=J,Z}function P_($,Z,J){var Y=Z.pendingProps;switch(dX(Z),Z.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return w1(Z),null;case 1:return w1(Z),null;case 3:if(J=Z.stateNode,Y=null,$!==null&&(Y=$.memoizedState.cache),Z.memoizedState.cache!==Y&&(Z.flags|=2048),r4(d1,Z),X0(Z),J.pendingContext&&(J.context=J.pendingContext,J.pendingContext=null),$===null||$.child===null)e9(Z)?(cX(),o4(Z)):$===null||$.memoizedState.isDehydrated&&(Z.flags&256)===0||(Z.flags|=1024,pX());return w1(Z),null;case 26:var{type:U,memoizedState:B}=Z;return $===null?(o4(Z),B!==null?(w1(Z),uH(Z,B)):(w1(Z),pq(Z,U,null,Y,J))):B?B!==$.memoizedState?(o4(Z),w1(Z),uH(Z,B)):(w1(Z),Z.flags&=-16777217):($=$.memoizedProps,$!==Y&&o4(Z),w1(Z),pq(Z,U,$,Y,J)),null;case 27:if(h0(Z),J=S0(r8.current),U=Z.type,$!==null&&Z.stateNode!=null)$.memoizedProps!==Y&&o4(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 w1(Z),null}$=B0(),e9(Z)?EB(Z,$):($=YF(U,Y,J,$,!0),Z.stateNode=$,o4(Z))}return w1(Z),null;case 5:if(h0(Z),U=Z.type,$!==null&&Z.stateNode!=null)$.memoizedProps!==Y&&o4(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 w1(Z),null}var W=B0();if(e9(Z))EB(Z,W);else{switch(B=S0(r8.current),AX(U,W.ancestorInfo),W=W.context,B=aJ(B),W){case o7:B=B.createElementNS(T7,U);break;case G3:B=B.createElementNS(MG,U);break;default:switch(U){case"svg":B=B.createElementNS(T7,U);break;case"math":B=B.createElementNS(MG,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]"||s6.call(sw,U)||(sw[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[M5]=Z,B[A5]=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(H5(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&&o4(Z)}}return w1(Z),pq(Z,Z.type,$===null?null:$.memoizedProps,Z.pendingProps,J),null;case 6:if($&&Z.stateNode!=null)$.memoizedProps!==Y&&o4(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($=S0(r8.current),J=B0(),e9(Z)){if($=Z.stateNode,J=Z.memoizedProps,U=!A4,Y=null,B=F5,B!==null)switch(B.tag){case 3:U&&(U=XF($,J,Y),U!==null&&(n2(Z,0).serverProps=U));break;case 27:case 5:Y=B.memoizedProps,U&&(U=XF($,J,Y),U!==null&&(n2(Z,0).serverProps=U))}$[M5]=Z,$=$.nodeValue===J||Y!==null&&Y.suppressHydrationWarning===!0||cM($.nodeValue,J)?!0:!1,$||k8(Z,!0)}else U=J.ancestorInfo.current,U!=null&&ZJ(Y,U.tag,J.ancestorInfo.implicitRootScope),$=aJ($).createTextNode(Y),$[M5]=Z,Z.stateNode=$}return w1(Z),null;case 31:if(J=Z.memoizedState,$===null||$.memoizedState!==null){if(Y=e9(Z),J!==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.");$[M5]=Z,w1(Z),(Z.mode&k0)!==C0&&J!==null&&($=Z.child,$!==null&&(Z.treeBaseDuration-=$.treeBaseDuration))}else cX(),o2(),(Z.flags&128)===0&&(J=Z.memoizedState=null),Z.flags|=4,w1(Z),(Z.mode&k0)!==C0&&J!==null&&($=Z.child,$!==null&&(Z.treeBaseDuration-=$.treeBaseDuration));$=!1}else J=pX(),$!==null&&$.memoizedState!==null&&($.memoizedState.hydrationErrors=J),$=!0;if(!$){if(Z.flags&256)return q6(Z),Z;return q6(Z),null}if((Z.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return w1(Z),null;case 13:if(Y=Z.memoizedState,$===null||$.memoizedState!==null&&$.memoizedState.dehydrated!==null){if(U=Y,B=e9(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[M5]=Z,w1(Z),(Z.mode&k0)!==C0&&U!==null&&(U=Z.child,U!==null&&(Z.treeBaseDuration-=U.treeBaseDuration))}else cX(),o2(),(Z.flags&128)===0&&(U=Z.memoizedState=null),Z.flags|=4,w1(Z),(Z.mode&k0)!==C0&&U!==null&&(U=Z.child,U!==null&&(Z.treeBaseDuration-=U.treeBaseDuration));U=!1}else U=pX(),$!==null&&$.memoizedState!==null&&($.memoizedState.hydrationErrors=U),U=!0;if(!U){if(Z.flags&256)return q6(Z),Z;return q6(Z),null}}if(q6(Z),(Z.flags&128)!==0)return Z.lanes=J,(Z.mode&k0)!==C0&&v$(Z),Z;return J=Y!==null,$=$!==null&&$.memoizedState!==null,J&&(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)),J!==$&&J&&(Z.child.flags|=8192),mJ(Z,Z.updateQueue),w1(Z),(Z.mode&k0)!==C0&&J&&($=Z.child,$!==null&&(Z.treeBaseDuration-=$.treeBaseDuration)),null;case 4:return X0(Z),$===null&&qY(Z.stateNode.containerInfo),w1(Z),null;case 10:return r4(Z.type,Z),w1(Z),null;case 19:if(L0(g1,Z),Y=Z.memoizedState,Y===null)return w1(Z),null;if(U=(Z.flags&128)!==0,B=Y.rendering,B===null)if(U)m$(Y,!1);else{if(A1!==K8||$!==null&&($.flags&128)!==0)for($=Z.child;$!==null;){if(B=VJ($),B!==null){Z.flags|=128,m$(Y,!1),$=B.updateQueue,Z.updateQueue=$,mJ(Z,$),Z.subtreeFlags=0,$=J;for(J=Z.child;J!==null;)PB(J,$),J=J.sibling;return _0(g1,g1.current&g7|SZ,Z),r0&&l4(Z,Y.treeForkCount),Z.child}$=$.sibling}Y.tail!==null&&X5()>lG&&(Z.flags|=128,U=!0,m$(Y,!1),Z.lanes=4194304)}else{if(!U)if($=VJ(B),$!==null){if(Z.flags|=128,U=!0,$=$.updateQueue,Z.updateQueue=$,mJ(Z,$),m$(Y,!0),Y.tail===null&&Y.tailMode==="hidden"&&!B.alternate&&!r0)return w1(Z),null}else 2*X5()-Y.renderingStartTime>lG&&J!==536870912&&(Z.flags|=128,U=!0,m$(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=X5(),$.sibling=null,J=g1.current,J=U?J&g7|SZ:J&g7,_0(g1,J,Z),r0&&l4(Z,Y.treeForkCount),$;return w1(Z),null;case 22:case 23:return q6(Z),Zq(Z),Y=Z.memoizedState!==null,$!==null?$.memoizedState!==null!==Y&&(Z.flags|=8192):Y&&(Z.flags|=8192),Y?(J&536870912)!==0&&(Z.flags&128)===0&&(w1(Z),Z.subtreeFlags&6&&(Z.flags|=8192)):w1(Z),J=Z.updateQueue,J!==null&&mJ(Z,J.retryQueue),J=null,$!==null&&$.memoizedState!==null&&$.memoizedState.cachePool!==null&&(J=$.memoizedState.cachePool.pool),Y=null,Z.memoizedState!==null&&Z.memoizedState.cachePool!==null&&(Y=Z.memoizedState.cachePool.pool),Y!==J&&(Z.flags|=2048),$!==null&&L0(B9,Z),null;case 24:return J=null,$!==null&&(J=$.memoizedState.cache),Z.memoizedState.cache!==J&&(Z.flags|=2048),r4(d1,Z),w1(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 __($,Z){switch(dX(Z),Z.tag){case 1:return $=Z.flags,$&65536?(Z.flags=$&-65537|128,(Z.mode&k0)!==C0&&v$(Z),Z):null;case 3:return r4(d1,Z),X0(Z),$=Z.flags,($&65536)!==0&&($&128)===0?(Z.flags=$&-65537|128,Z):null;case 26:case 27:case 5:return h0(Z),null;case 31:if(Z.memoizedState!==null){if(q6(Z),Z.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");o2()}return $=Z.flags,$&65536?(Z.flags=$&-65537|128,(Z.mode&k0)!==C0&&v$(Z),Z):null;case 13:if(q6(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.");o2()}return $=Z.flags,$&65536?(Z.flags=$&-65537|128,(Z.mode&k0)!==C0&&v$(Z),Z):null;case 19:return L0(g1,Z),null;case 4:return X0(Z),null;case 10:return r4(Z.type,Z),null;case 22:case 23:return q6(Z),Zq(Z),$!==null&&L0(B9,Z),$=Z.flags,$&65536?(Z.flags=$&-65537|128,(Z.mode&k0)!==C0&&v$(Z),Z):null;case 24:return r4(d1,Z),null;case 25:return null;default:return null}}function xH($,Z){switch(dX(Z),Z.tag){case 3:r4(d1,Z),X0(Z);break;case 26:case 27:case 5:h0(Z);break;case 4:X0(Z);break;case 31:Z.memoizedState!==null&&q6(Z);break;case 13:q6(Z);break;case 19:L0(g1,Z);break;case 10:r4(Z.type,Z);break;case 22:case 23:q6(Z),Zq(Z),$!==null&&L0(B9,Z);break;case 24:r4(d1,Z)}}function W4($){return($.mode&k0)!==C0}function mH($,Z){W4($)?(F4(),d$(Z,$),M4()):d$(Z,$)}function cq($,Z,J){W4($)?(F4(),X7(J,$,Z),M4()):X7(J,$,Z)}function d$($,Z){try{var J=Z.updateQueue,Y=J!==null?J.lastEffect:null;if(Y!==null){var U=Y.next;J=U;do{if((J.tag&$)===$&&(Y=void 0,($&v5)!==kG&&(r7=!0),Y=G0(Z,lV,J),($&v5)!==kG&&(r7=!1),Y!==void 0&&typeof Y!=="function")){var B=void 0;B=(J.tag&F6)!==0?"useLayoutEffect":(J.tag&v5)!==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"?`
139
+ `+L:""))}}B=Z.stateNode,W=a(G)||"Component",B.render||(G.prototype&&typeof G.prototype.render==="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",W):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",W)),!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?",W),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.",W),B.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",W),G.childContextTypes&&!Tw.has(G)&&(Tw.add(G),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",W)),G.contextTypes&&!zw.has(G)&&(zw.add(G),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)",W)),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.",W),G.prototype&&G.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.",a(G)||"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()?",W),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().",W),typeof B.componentWillRecieveProps==="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",W),typeof B.UNSAFE_componentWillRecieveProps==="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",W),R=B.props!==Y,B.props!==void 0&&R&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",W),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.",W,W),typeof B.getSnapshotBeforeUpdate!=="function"||typeof B.componentDidUpdate==="function"||Fw.has(G)||(Fw.add(G),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",a(G))),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.",W),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.",W),typeof G.getSnapshotBeforeUpdate==="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",W),(R=B.state)&&(typeof R!=="object"||$5(R))&&console.error("%s.state: must be set to an object or null",W),typeof B.getChildContext==="function"&&typeof G.childContextTypes!=="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",W),B=Z.stateNode,B.props=Y,B.state=Z.memoizedState,B.refs={},Zq(Z),W=G.contextType,B.context=typeof W==="object"&&W!==null?O1(W):$2,B.state===Y&&(W=a(G)||"Component",ww.has(W)||(ww.add(W),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.",W))),Z.mode&I5&&e6.recordLegacyContextWarning(Z,B),e6.recordUnsafeLifecycleWarnings(Z,B),B.state=Z.memoizedState,W=G.getDerivedStateFromProps,typeof W==="function"&&(bq(Z,G,W,Y),B.state=Z.memoizedState),typeof G.getDerivedStateFromProps==="function"||typeof B.getSnapshotBeforeUpdate==="function"||typeof B.UNSAFE_componentWillMount!=="function"&&typeof B.componentWillMount!=="function"||(W=B.state,typeof B.componentWillMount==="function"&&B.componentWillMount(),typeof B.UNSAFE_componentWillMount==="function"&&B.UNSAFE_componentWillMount(),W!==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"),EN.enqueueReplaceState(B,B.state,null)),m$(Z,Y,B,U),x$(),B.state=Z.memoizedState),typeof B.componentDidMount==="function"&&(Z.flags|=4194308),(Z.mode&t6)!==I0&&(Z.flags|=134217728),B=!0}else if($===null){B=Z.stateNode;var k=Z.memoizedProps;R=J9(G,k),B.props=R;var f=B.context;L=G.contextType,W=$2,typeof L==="object"&&L!==null&&(W=O1(L)),_=G.getDerivedStateFromProps,L=typeof _==="function"||typeof B.getSnapshotBeforeUpdate==="function",k=Z.pendingProps!==k,L||typeof B.UNSAFE_componentWillReceiveProps!=="function"&&typeof B.componentWillReceiveProps!=="function"||(k||f!==W)&&OH(Z,B,Y,W),Y2=!1;var S=Z.memoizedState;B.state=S,m$(Z,Y,B,U),x$(),f=Z.memoizedState,k||S!==f||Y2?(typeof _==="function"&&(bq(Z,G,_,Y),f=Z.memoizedState),(R=Y2||VH(Z,G,R,Y,S,f,W))?(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&t6)!==I0&&(Z.flags|=134217728)):(typeof B.componentDidMount==="function"&&(Z.flags|=4194308),(Z.mode&t6)!==I0&&(Z.flags|=134217728),Z.memoizedProps=Y,Z.memoizedState=f),B.props=Y,B.state=f,B.context=W,B=R):(typeof B.componentDidMount==="function"&&(Z.flags|=4194308),(Z.mode&t6)!==I0&&(Z.flags|=134217728),B=!1)}else{B=Z.stateNode,Qq($,Z),W=Z.memoizedProps,L=J9(G,W),B.props=L,_=Z.pendingProps,S=B.context,f=G.contextType,R=$2,typeof f==="object"&&f!==null&&(R=O1(f)),k=G.getDerivedStateFromProps,(f=typeof k==="function"||typeof B.getSnapshotBeforeUpdate==="function")||typeof B.UNSAFE_componentWillReceiveProps!=="function"&&typeof B.componentWillReceiveProps!=="function"||(W!==_||S!==R)&&OH(Z,B,Y,R),Y2=!1,S=Z.memoizedState,B.state=S,m$(Z,Y,B,U),x$();var g=Z.memoizedState;W!==_||S!==g||Y2||$!==null&&$.dependencies!==null&&zJ($.dependencies)?(typeof k==="function"&&(bq(Z,G,k,Y),g=Z.memoizedState),(L=Y2||VH(Z,G,L,Y,S,g,R)||$!==null&&$.dependencies!==null&&zJ($.dependencies))?(f||typeof B.UNSAFE_componentWillUpdate!=="function"&&typeof B.componentWillUpdate!=="function"||(typeof B.componentWillUpdate==="function"&&B.componentWillUpdate(Y,g,R),typeof B.UNSAFE_componentWillUpdate==="function"&&B.UNSAFE_componentWillUpdate(Y,g,R)),typeof B.componentDidUpdate==="function"&&(Z.flags|=4),typeof B.getSnapshotBeforeUpdate==="function"&&(Z.flags|=1024)):(typeof B.componentDidUpdate!=="function"||W===$.memoizedProps&&S===$.memoizedState||(Z.flags|=4),typeof B.getSnapshotBeforeUpdate!=="function"||W===$.memoizedProps&&S===$.memoizedState||(Z.flags|=1024),Z.memoizedProps=Y,Z.memoizedState=g),B.props=Y,B.state=g,B.context=R,B=L):(typeof B.componentDidUpdate!=="function"||W===$.memoizedProps&&S===$.memoizedState||(Z.flags|=4),typeof B.getSnapshotBeforeUpdate!=="function"||W===$.memoizedProps&&S===$.memoizedState||(Z.flags|=1024),B=!1)}if(R=B,cJ($,Z),W=(Z.flags&128)!==0,R||W){if(R=Z.stateNode,n9(Z),W&&typeof G.getDerivedStateFromError!=="function")G=null,b5=-1;else if(G=mW(R),Z.mode&I5){w1(!0);try{mW(R)}finally{w1(!1)}}Z.flags|=1,$!==null&&W?(Z.child=w9(Z,$.child,null,U),Z.child=w9(Z,null,G,U)):H5($,Z,G,U),Z.memoizedState=R.state,$=Z.child}else $=i4($,Z,U);return U=Z.stateNode,B&&U.props!==Y&&(p7||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"),p7=!0),$}function uH($,Z,G,Y){return i2(),Z.flags|=256,H5($,Z,G,Y),Z.child}function hq($,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"&&($=a(Z)||"Unknown",Vw[$]||(console.error("%s: Function components do not support getDerivedStateFromProps.",$),Vw[$]=!0)),typeof Z.contextType==="object"&&Z.contextType!==null&&(Z=a(Z)||"Unknown",Cw[Z]||(console.error("%s: Function components do not support contextType.",Z),Cw[Z]=!0))}function uq($){return{baseLanes:$,cachePool:gB()}}function xq($,Z,G){return $=$!==null?$.childLanes&~G:0,Z&&($|=l5),$}function xH($,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:(u1.current&fZ)!==0),Y&&(B=!0,Z.flags&=-129),Y=(Z.flags&32)!==0,Z.flags&=-33,$===null){if(s0){if(B?m8(Z):d8(Z),($=P1)?(G=YF($,v6),G=G!==null&&G.data!==I9?G:null,G!==null&&(Y={dehydrated:G,treeContext:AB(),retryLane:536870912,hydrationErrors:null},Z.memoizedState=Y,Y=OB(G),Y.return=Z,Z.child=Y,W5=Z,P1=null)):G=null,G===null)throw wJ(Z,$),y8(Z);return TY(G)?Z.lanes=32:Z.lanes=536870912,null}var R=U.children;if(U=U.fallback,B){d8(Z);var L=Z.mode;return R=lJ({mode:"hidden",children:R},L),U=o2(U,L,G,null),R.return=Z,U.return=Z,R.sibling=U,Z.child=R,U=Z.child,U.memoizedState=uq(G),U.childLanes=xq($,Y,G),Z.memoizedState=jN,l$(null,U)}return m8(Z),mq(Z,R)}var _=$.memoizedState;if(_!==null){var k=_.dehydrated;if(k!==null){if(W)Z.flags&256?(m8(Z),Z.flags&=-257,Z=dq($,Z,G)):Z.memoizedState!==null?(d8(Z),Z.child=$.child,Z.flags|=128,Z=null):(d8(Z),R=U.fallback,L=Z.mode,U=lJ({mode:"visible",children:U.children},L),R=o2(R,L,G,null),R.flags|=2,U.return=Z,R.return=Z,U.sibling=R,Z.child=U,w9(Z,$.child,null,G),U=Z.child,U.memoizedState=uq(G),U.childLanes=xq($,Y,G),Z.memoizedState=jN,Z=l$(null,U));else if(m8(Z),jB(),(G&536870912)!==0&&aJ(Z),TY(k)){if(Y=k.nextSibling&&k.nextSibling.dataset,Y){R=Y.dgst;var f=Y.msg;L=Y.stck;var S=Y.cstck}B=f,Y=R,U=L,k=S,R=B,L=k,R=R?Error(R):Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),R.stack=U||"",R.digest=Y,Y=L===void 0?null:L,U={value:R,source:null,stack:Y},typeof Y==="string"&&UN.set(R,U),k$(U),Z=dq($,Z,G)}else if(s1||Q7($,Z,G,!1),Y=(G&$.childLanes)!==0,s1||Y){if(Y=W1,Y!==null&&(U=p2(Y,G),U!==0&&U!==_.retryLane))throw _.retryLane=U,_5($,U),D1(Y,$,U),SN;zY(k)||iJ(),Z=dq($,Z,G)}else zY(k)?(Z.flags|=192,Z.child=$.child,Z=null):($=_.treeContext,P1=H6(k.nextSibling),W5=Z,s0=!0,Z2=null,j4=!1,w6=null,v6=!1,$!==null&&SB(Z,$),Z=mq(Z,U.children),Z.flags|=4096);return Z}}if(B)return d8(Z),R=U.fallback,L=Z.mode,S=$.child,k=S.sibling,U=s4(S,{mode:"hidden",children:U.children}),U.subtreeFlags=S.subtreeFlags&65011712,k!==null?R=s4(k,R):(R=o2(R,L,G,null),R.flags|=2),R.return=Z,U.return=Z,U.sibling=R,Z.child=U,l$(null,U),U=Z.child,R=$.child.memoizedState,R===null?R=uq(G):(L=R.cachePool,L!==null?(S=c1._currentValue,L=L.parent!==S?{parent:S,pool:S}:L):L=gB(),R={baseLanes:R.baseLanes|G,cachePool:L}),U.memoizedState=R,U.childLanes=xq($,Y,G),Z.memoizedState=jN,l$($.child,U);return _!==null&&(G&62914560)===G&&(G&$.lanes)!==0&&aJ(Z),m8(Z),G=$.child,$=G.sibling,G=s4(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 mq($,Z){return Z=lJ({mode:"visible",children:Z},$.mode),Z.return=$,$.child=Z}function lJ($,Z){return $=P(22,$,null,Z),$.lanes=0,$}function dq($,Z,G){return w9(Z,$.child,null,G),$=mq(Z,Z.pendingProps.children),$.flags|=2,Z.memoizedState=null,$}function mH($,Z,G){$.lanes|=Z;var Y=$.alternate;Y!==null&&(Y.lanes|=Z),nX($.return,Z,G)}function pq($,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 dH($,Z,G){var Y=Z.pendingProps,U=Y.revealOrder,B=Y.tail,W=Y.children,R=u1.current;if((Y=(R&fZ)!==0)?(R=R&u7|fZ,Z.flags|=128):R&=u7,_0(u1,R,Z),R=U==null?"null":U,U!=="forwards"&&U!=="unstable_legacy-backwards"&&U!=="together"&&U!=="independent"&&!Ow[R])if(Ow[R]=!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(R=B==null?"null":B,!pG[R])if(B==null){if(U==="forwards"||U==="backwards"||U==="unstable_legacy-backwards")pG[R]=!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"?(pG[R]=!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"&&(pG[R]=!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($5(W)){for(R=0;R<W.length;R++)if(!sB(W[R],R))break $}else if(R=t(W),typeof R==="function"){if(R=R.call(W))for(var L=R.next(),_=0;!L.done;L=R.next()){if(!sB(L.value,_))break $;_++}}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(H5($,Z,W,G),s0?(f8(),W=LZ):W=0,!Y&&$!==null&&($.flags&128)!==0)$:for($=Z.child;$!==null;){if($.tag===13)$.memoizedState!==null&&mH($,G,Z);else if($.tag===19)mH($,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&&SJ($)===null&&(U=G),G=G.sibling;G=U,G===null?(U=Z.child,Z.child=null):(U=G.sibling,G.sibling=null),pq(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&&SJ($)===null){Z.child=U;break}$=U.sibling,U.sibling=G,G=U,U=$}pq(Z,!0,G,null,B,W);break;case"together":pq(Z,!1,null,null,void 0,W);break;default:Z.memoizedState=null}return Z.child}function i4($,Z,G){if($!==null&&(Z.dependencies=$.dependencies),b5=-1,K2|=Z.lanes,(G&Z.childLanes)===0)if($!==null){if(Q7($,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=s4($,$.pendingProps),Z.child=G;for(G.return=Z;$.sibling!==null;)$=$.sibling,G=G.sibling=s4($,$.pendingProps),G.return=Z;G.sibling=null}return Z.child}function cq($,Z){if(($.lanes&Z)!==0)return!0;return $=$.dependencies,$!==null&&zJ($)?!0:!1}function O_($,Z,G){switch(Z.tag){case 3:l(Z,Z.stateNode.containerInfo),g8(Z,c1,$.memoizedState.cache),i2();break;case 27:case 5:r0(Z);break;case 4:l(Z,Z.stateNode.containerInfo);break;case 10:g8(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,Xq(Z),null;break;case 13:if(Y=Z.memoizedState,Y!==null){if(Y.dehydrated!==null)return m8(Z),Z.flags|=128,null;if((G&Z.child.childLanes)!==0)return xH($,Z,G);return m8(Z),$=i4($,Z,G),$!==null?$.sibling:null}m8(Z);break;case 19:var U=($.flags&128)!==0;if(Y=(G&Z.childLanes)!==0,Y||(Q7($,Z,G,!1),Y=(G&Z.childLanes)!==0),U){if(Y)return dH($,Z,G);Z.flags|=128}if(U=Z.memoizedState,U!==null&&(U.rendering=null,U.tail=null,U.lastEffect=null),_0(u1,u1.current,Z),Y)break;else return null;case 22:return Z.lanes=0,kH($,Z,G,Z.pendingProps);case 24:g8(Z,c1,$.memoizedState.cache)}return i4($,Z,G)}function lq($,Z,G){if(Z._debugNeedsRemount&&$!==null){G=mX(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)s1=!0;else{if(!cq($,G)&&(Z.flags&128)===0)return s1=!1,O_($,Z,G);s1=($.flags&131072)!==0?!0:!1}else{if(s1=!1,Y=s0)f8(),Y=(Z.flags&1048576)!==0;Y&&(Y=Z.index,f8(),EB(Z,LZ,Y))}switch(Z.lanes=0,Z.tag){case 16:$:if(Y=Z.pendingProps,$=h8(Z.elementType),Z.type=$,typeof $==="function")xX($)?(Y=J9($,Y),Z.tag=1,Z.type=$=n2($),Z=hH(null,Z,$,Y,G)):(Z.tag=0,hq(Z,$),Z.type=$=n2($),Z=gq(null,Z,$,Y,G));else{if($!==void 0&&$!==null){if(U=$.$$typeof,U===YZ){Z.tag=11,Z.type=$=uX($),Z=DH(null,Z,$,Y,G);break $}else if(U===BG){Z.tag=14,Z=vH(null,Z,$,Y,G);break $}}throw Z="",$!==null&&typeof $==="object"&&$.$$typeof===M6&&(Z=" Did you wrap a component in React.lazy() more than once?"),G=a($)||$,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 gq($,Z,Z.type,Z.pendingProps,G);case 1:return Y=Z.type,U=J9(Y,Z.pendingProps),hH($,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,Qq($,Z),m$(Z,Y,null,G);var W=Z.memoizedState;if(Y=W.cache,g8(Z,c1,Y),Y!==B.cache&&oX(Z,[c1],G,!0),x$(),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=uH($,Z,Y,G);break $}else if(Y!==U){U=Y6(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),Z),k$(U),Z=uH($,Z,Y,G);break $}else{switch($=Z.stateNode.containerInfo,$.nodeType){case 9:$=$.body;break;default:$=$.nodeName==="HTML"?$.ownerDocument.body:$}P1=H6($.firstChild),W5=Z,s0=!0,Z2=null,j4=!1,w6=null,v6=!0,G=Zw(Z,null,Y,G);for(Z.child=G;G;)G.flags=G.flags&-3|4096,G=G.sibling}else{if(i2(),Y===U){Z=i4($,Z,G);break $}H5($,Z,Y,G)}Z=Z.child}return Z;case 26:return cJ($,Z),$===null?(G=MF(Z.type,null,Z.pendingProps,null))?Z.memoizedState=G:s0||(G=Z.type,$=Z.pendingProps,Y=D0(n8.current),Y=ZG(Y).createElement(G),Y[F5]=Z,Y[j5]=$,M5(Y,G,$),z0(Y),Z.stateNode=Y):Z.memoizedState=MF(Z.type,$.memoizedProps,Z.pendingProps,$.memoizedState),null;case 27:return r0(Z),$===null&&s0&&(Y=D0(n8.current),U=B0(),Y=Z.stateNode=BF(Z.type,Z.pendingProps,Y,U,!1),j4||(U=eM(Y,Z.type,Z.pendingProps,U),U!==null&&(a2(Z,0).serverProps=U)),W5=Z,v6=!0,U=P1,r8(Z.type)?(eN=U,P1=H6(Y.firstChild)):P1=U),H5($,Z,Z.pendingProps.children,G),cJ($,Z),$===null&&(Z.flags|=4194304),Z.child;case 5:return $===null&&s0&&(B=B0(),Y=DX(Z.type,B.ancestorInfo),U=P1,(W=!U)||(W=FC(U,Z.type,Z.pendingProps,v6),W!==null?(Z.stateNode=W,j4||(B=eM(W,Z.type,Z.pendingProps,B),B!==null&&(a2(Z,0).serverProps=B)),W5=Z,P1=H6(W.firstChild),v6=!1,B=!0):B=!1,W=!B),W&&(Y&&wJ(Z,U),y8(Z))),r0(Z),U=Z.type,B=Z.pendingProps,W=$!==null?$.memoizedProps:null,Y=B.children,wY(U,B)?Y=null:W!==null&&wY(U,W)&&(Z.flags|=32),Z.memoizedState!==null&&(U=Yq($,Z,z_,null,null,G),eZ._currentValue=U),cJ($,Z),H5($,Z,Y,G),Z.child;case 6:return $===null&&s0&&(G=Z.pendingProps,$=B0(),Y=$.ancestorInfo.current,G=Y!=null?qJ(G,Y.tag,$.ancestorInfo.implicitRootScope):!0,$=P1,(Y=!$)||(Y=WC($,Z.pendingProps,v6),Y!==null?(Z.stateNode=Y,W5=Z,P1=null,Y=!0):Y=!1,Y=!Y),Y&&(G&&wJ(Z,$),y8(Z))),null;case 13:return xH($,Z,G);case 4:return l(Z,Z.stateNode.containerInfo),Y=Z.pendingProps,$===null?Z.child=w9(Z,null,Y,G):H5($,Z,Y,G),Z.child;case 11:return DH($,Z,Z.type,Z.pendingProps,G);case 7:return H5($,Z,Z.pendingProps,G),Z.child;case 8:return H5($,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,H5($,Z,Z.pendingProps.children,G),Z.child;case 10:return Y=Z.type,U=Z.pendingProps,B=U.value,"value"in U||Ew||(Ew=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),g8(Z,Y,B),H5($,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."),t2(Z),U=O1(U),Y=RN(Y,U,void 0),Z.flags|=1,H5($,Z,Y,G),Z.child;case 14:return vH($,Z,Z.type,Z.pendingProps,G);case 15:return bH($,Z,Z.type,Z.pendingProps,G);case 19:return dH($,Z,G);case 31:return V_($,Z,G);case 22:return kH($,Z,G,Z.pendingProps);case 24:return t2(Z),Y=O1(c1),$===null?(U=eX(),U===null&&(U=W1,B=aX(),U.pooledCache=B,e2(B),B!==null&&(U.pooledCacheLanes|=G),U=B),Z.memoizedState={parent:Y,cache:U},Zq(Z),g8(Z,c1,U)):(($.lanes&G)!==0&&(Qq($,Z),m$(Z,null,null,G),x$()),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),g8(Z,c1,Y)):(Y=B.cache,g8(Z,c1,Y),Y!==U.cache&&oX(Z,[c1],G,!0))),H5($,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 t4($){$.flags|=4}function rq($,Z,G,Y,U){if(Z=($.mode&rI)!==I0)Z=!1;if(Z){if($.flags|=16777216,(U&335544128)===U)if($.stateNode.complete)$.flags|=8192;else if(PM())$.flags|=8192;else throw W9=gG,TN}else $.flags&=-16777217}function pH($,Z){if(Z.type!=="stylesheet"||(Z.state.loading&g6)!==E9)$.flags&=-16777217;else if($.flags|=16777216,!zF(Z))if(PM())$.flags|=8192;else throw W9=gG,TN}function rJ($,Z){Z!==null&&($.flags|=4),$.flags&16384&&(Z=$.tag!==22?a9():536870912,$.lanes|=Z,P9|=Z)}function r$($,Z){if(!s0)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 R1($){var Z=$.alternate!==null&&$.alternate.child===$.child,G=0,Y=0;if(Z)if(($.mode&f0)!==I0){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&f0)!==I0){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 E_($,Z,G){var Y=Z.pendingProps;switch(lX(Z),Z.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return R1(Z),null;case 1:return R1(Z),null;case 3:if(G=Z.stateNode,Y=null,$!==null&&(Y=$.memoizedState.cache),Z.memoizedState.cache!==Y&&(Z.flags|=2048),o4(c1,Z),X0(Z),G.pendingContext&&(G.context=G.pendingContext,G.pendingContext=null),$===null||$.child===null)Z7(Z)?(sX(),t4(Z)):$===null||$.memoizedState.isDehydrated&&(Z.flags&256)===0||(Z.flags|=1024,rX());return R1(Z),null;case 26:var{type:U,memoizedState:B}=Z;return $===null?(t4(Z),B!==null?(R1(Z),pH(Z,B)):(R1(Z),rq(Z,U,null,Y,G))):B?B!==$.memoizedState?(t4(Z),R1(Z),pH(Z,B)):(R1(Z),Z.flags&=-16777217):($=$.memoizedProps,$!==Y&&t4(Z),R1(Z),rq(Z,U,$,Y,G)),null;case 27:if(u0(Z),G=D0(n8.current),U=Z.type,$!==null&&Z.stateNode!=null)$.memoizedProps!==Y&&t4(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 R1(Z),null}$=B0(),Z7(Z)?DB(Z,$):($=BF(U,Y,G,$,!0),Z.stateNode=$,t4(Z))}return R1(Z),null;case 5:if(u0(Z),U=Z.type,$!==null&&Z.stateNode!=null)$.memoizedProps!==Y&&t4(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 R1(Z),null}var W=B0();if(Z7(Z))DB(Z,W);else{switch(B=D0(n8.current),DX(U,W.ancestorInfo),W=W.context,B=ZG(B),W){case i7:B=B.createElementNS(P7,U);break;case U3:B=B.createElementNS(zG,U);break;default:switch(U){case"svg":B=B.createElementNS(P7,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]"||a6.call(iw,U)||(iw[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[F5]=Z,B[j5]=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(M5(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&&t4(Z)}}return R1(Z),rq(Z,Z.type,$===null?null:$.memoizedProps,Z.pendingProps,G),null;case 6:if($&&Z.stateNode!=null)$.memoizedProps!==Y&&t4(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($=D0(n8.current),G=B0(),Z7(Z)){if($=Z.stateNode,G=Z.memoizedProps,U=!j4,Y=null,B=W5,B!==null)switch(B.tag){case 3:U&&(U=UF($,G,Y),U!==null&&(a2(Z,0).serverProps=U));break;case 27:case 5:Y=B.memoizedProps,U&&(U=UF($,G,Y),U!==null&&(a2(Z,0).serverProps=U))}$[F5]=Z,$=$.nodeValue===G||Y!==null&&Y.suppressHydrationWarning===!0||nM($.nodeValue,G)?!0:!1,$||y8(Z,!0)}else U=G.ancestorInfo.current,U!=null&&qJ(Y,U.tag,G.ancestorInfo.implicitRootScope),$=ZG($).createTextNode(Y),$[F5]=Z,Z.stateNode=$}return R1(Z),null;case 31:if(G=Z.memoizedState,$===null||$.memoizedState!==null){if(Y=Z7(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.");$[F5]=Z,R1(Z),(Z.mode&f0)!==I0&&G!==null&&($=Z.child,$!==null&&(Z.treeBaseDuration-=$.treeBaseDuration))}else sX(),i2(),(Z.flags&128)===0&&(G=Z.memoizedState=null),Z.flags|=4,R1(Z),(Z.mode&f0)!==I0&&G!==null&&($=Z.child,$!==null&&(Z.treeBaseDuration-=$.treeBaseDuration));$=!1}else G=rX(),$!==null&&$.memoizedState!==null&&($.memoizedState.hydrationErrors=G),$=!0;if(!$){if(Z.flags&256)return K6(Z),Z;return K6(Z),null}if((Z.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return R1(Z),null;case 13:if(Y=Z.memoizedState,$===null||$.memoizedState!==null&&$.memoizedState.dehydrated!==null){if(U=Y,B=Z7(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[F5]=Z,R1(Z),(Z.mode&f0)!==I0&&U!==null&&(U=Z.child,U!==null&&(Z.treeBaseDuration-=U.treeBaseDuration))}else sX(),i2(),(Z.flags&128)===0&&(U=Z.memoizedState=null),Z.flags|=4,R1(Z),(Z.mode&f0)!==I0&&U!==null&&(U=Z.child,U!==null&&(Z.treeBaseDuration-=U.treeBaseDuration));U=!1}else U=rX(),$!==null&&$.memoizedState!==null&&($.memoizedState.hydrationErrors=U),U=!0;if(!U){if(Z.flags&256)return K6(Z),Z;return K6(Z),null}}if(K6(Z),(Z.flags&128)!==0)return Z.lanes=G,(Z.mode&f0)!==I0&&g$(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),rJ(Z,Z.updateQueue),R1(Z),(Z.mode&f0)!==I0&&G&&($=Z.child,$!==null&&(Z.treeBaseDuration-=$.treeBaseDuration)),null;case 4:return X0(Z),$===null&&UY(Z.stateNode.containerInfo),R1(Z),null;case 10:return o4(Z.type,Z),R1(Z),null;case 19:if(L0(u1,Z),Y=Z.memoizedState,Y===null)return R1(Z),null;if(U=(Z.flags&128)!==0,B=Y.rendering,B===null)if(U)r$(Y,!1);else{if(S1!==M8||$!==null&&($.flags&128)!==0)for($=Z.child;$!==null;){if(B=SJ($),B!==null){Z.flags|=128,r$(Y,!1),$=B.updateQueue,Z.updateQueue=$,rJ(Z,$),Z.subtreeFlags=0,$=G;for(G=Z.child;G!==null;)VB(G,$),G=G.sibling;return _0(u1,u1.current&u7|fZ,Z),s0&&n4(Z,Y.treeForkCount),Z.child}$=$.sibling}Y.tail!==null&&Y5()>aG&&(Z.flags|=128,U=!0,r$(Y,!1),Z.lanes=4194304)}else{if(!U)if($=SJ(B),$!==null){if(Z.flags|=128,U=!0,$=$.updateQueue,Z.updateQueue=$,rJ(Z,$),r$(Y,!0),Y.tail===null&&Y.tailMode==="hidden"&&!B.alternate&&!s0)return R1(Z),null}else 2*Y5()-Y.renderingStartTime>aG&&G!==536870912&&(Z.flags|=128,U=!0,r$(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=Y5(),$.sibling=null,G=u1.current,G=U?G&u7|fZ:G&u7,_0(u1,G,Z),s0&&n4(Z,Y.treeForkCount),$;return R1(Z),null;case 22:case 23:return K6(Z),Gq(Z),Y=Z.memoizedState!==null,$!==null?$.memoizedState!==null!==Y&&(Z.flags|=8192):Y&&(Z.flags|=8192),Y?(G&536870912)!==0&&(Z.flags&128)===0&&(R1(Z),Z.subtreeFlags&6&&(Z.flags|=8192)):R1(Z),G=Z.updateQueue,G!==null&&rJ(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&&L0(M9,Z),null;case 24:return G=null,$!==null&&(G=$.memoizedState.cache),Z.memoizedState.cache!==G&&(Z.flags|=2048),o4(c1,Z),R1(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 A_($,Z){switch(lX(Z),Z.tag){case 1:return $=Z.flags,$&65536?(Z.flags=$&-65537|128,(Z.mode&f0)!==I0&&g$(Z),Z):null;case 3:return o4(c1,Z),X0(Z),$=Z.flags,($&65536)!==0&&($&128)===0?(Z.flags=$&-65537|128,Z):null;case 26:case 27:case 5:return u0(Z),null;case 31:if(Z.memoizedState!==null){if(K6(Z),Z.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");i2()}return $=Z.flags,$&65536?(Z.flags=$&-65537|128,(Z.mode&f0)!==I0&&g$(Z),Z):null;case 13:if(K6(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.");i2()}return $=Z.flags,$&65536?(Z.flags=$&-65537|128,(Z.mode&f0)!==I0&&g$(Z),Z):null;case 19:return L0(u1,Z),null;case 4:return X0(Z),null;case 10:return o4(Z.type,Z),null;case 22:case 23:return K6(Z),Gq(Z),$!==null&&L0(M9,Z),$=Z.flags,$&65536?(Z.flags=$&-65537|128,(Z.mode&f0)!==I0&&g$(Z),Z):null;case 24:return o4(c1,Z),null;case 25:return null;default:return null}}function cH($,Z){switch(lX(Z),Z.tag){case 3:o4(c1,Z),X0(Z);break;case 26:case 27:case 5:u0(Z);break;case 4:X0(Z);break;case 31:Z.memoizedState!==null&&K6(Z);break;case 13:K6(Z);break;case 19:L0(u1,Z);break;case 10:o4(Z.type,Z);break;case 22:case 23:K6(Z),Gq(Z),$!==null&&L0(M9,Z);break;case 24:o4(c1,Z)}}function R4($){return($.mode&f0)!==I0}function lH($,Z){R4($)?(w4(),s$(Z,$),W4()):s$(Z,$)}function sq($,Z,G){R4($)?(w4(),Y7(G,$,Z),W4()):Y7(G,$,Z)}function s$($,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,($&k5)!==uG&&(n7=!0),Y=G0(Z,iI,G),($&k5)!==uG&&(n7=!1),Y!==void 0&&typeof Y!=="function")){var B=void 0;B=(G.tag&z6)!==0?"useLayoutEffect":(G.tag&k5)!==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"?`
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,G0(Z,function(R,L){console.error("%s must not return anything besides a function, which is used for clean-up.%s",R,L)},B,W)}J=J.next}while(J!==U)}}catch(R){G1(Z,Z.return,R)}}function X7($,Z,J){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,R=W.destroy;R!==void 0&&(W.destroy=void 0,($&v5)!==kG&&(r7=!0),U=Z,G0(U,rV,U,J,R),($&v5)!==kG&&(r7=!1))}Y=Y.next}while(Y!==B)}}catch(L){G1(Z,Z.return,L)}}function dH($,Z){W4($)?(F4(),d$(Z,$),M4()):d$(Z,$)}function lq($,Z,J){W4($)?(F4(),X7(J,$,Z),M4()):X7(J,$,Z)}function pH($){var Z=$.updateQueue;if(Z!==null){var J=$.stateNode;$.type.defaultProps||"ref"in $.memoizedProps||m7||(J.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"),J.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{G0($,lB,Z,J)}catch(Y){G1($,$.return,Y)}}}function C_($,Z,J){return $.getSnapshotBeforeUpdate(Z,J)}function V_($,Z){var{memoizedProps:J,memoizedState:Y}=Z;Z=$.stateNode,$.type.defaultProps||"ref"in $.memoizedProps||m7||(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=Z9($.type,J),B=G0($,C_,Z,U,Y);J=Vw,B!==void 0||J.has($.type)||(J.add($.type),G0($,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",d($))})),Z.__reactInternalSnapshotBeforeUpdate=B}catch(W){G1($,$.return,W)}}function cH($,Z,J){J.props=Z9($.type,$.memoizedProps),J.state=$.memoizedState,W4($)?(F4(),G0($,pW,$,Z,J),M4()):G0($,pW,$,Z,J)}function I_($){var Z=$.ref;if(Z!==null){switch($.tag){case 26:case 27:case 5:var J=$.stateNode;break;case 30:J=$.stateNode;break;default:J=$.stateNode}if(typeof Z==="function")if(W4($))try{F4(),$.refCleanup=Z(J)}finally{M4()}else $.refCleanup=Z(J);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=J}}function p$($,Z){try{G0($,I_,$)}catch(J){G1($,Z,J)}}function w4($,Z){var{ref:J,refCleanup:Y}=$;if(J!==null)if(typeof Y==="function")try{if(W4($))try{F4(),G0($,Y)}finally{M4($)}else G0($,Y)}catch(U){G1($,Z,U)}finally{$.refCleanup=null,$=$.alternate,$!=null&&($.refCleanup=null)}else if(typeof J==="function")try{if(W4($))try{F4(),G0($,J,null)}finally{M4($)}else G0($,J,null)}catch(U){G1($,Z,U)}else J.current=null}function lH($,Z,J,Y){var U=$.memoizedProps,B=U.id,W=U.onCommit;U=U.onRender,Z=Z===null?"mount":"update",AG&&(Z="nested-update"),typeof U==="function"&&U(B,Z,$.actualDuration,$.treeBaseDuration,$.actualStartTime,J),typeof W==="function"&&W(B,Z,Y,J)}function O_($,Z,J,Y){var U=$.memoizedProps;$=U.id,U=U.onPostCommit,Z=Z===null?"mount":"update",AG&&(Z="nested-update"),typeof U==="function"&&U($,Z,Y,J)}function rH($){var{type:Z,memoizedProps:J,stateNode:Y}=$;try{G0($,a_,Y,Z,J,$)}catch(U){G1($,$.return,U)}}function rq($,Z,J){try{G0($,t_,$.stateNode,$.type,J,Z,$)}catch(Y){G1($,$.return,Y)}}function sH($){return $.tag===5||$.tag===3||$.tag===26||$.tag===27&&c8($.type)||$.tag===4}function sq($){$:for(;;){for(;$.sibling===null;){if($.return===null||sH($.return))return null;$=$.return}$.sibling.return=$.return;for($=$.sibling;$.tag!==5&&$.tag!==6&&$.tag!==18;){if($.tag===27&&c8($.type))continue $;if($.flags&2)continue $;if($.child===null||$.tag===4)continue $;else $.child.return=$,$=$.child}if(!($.flags&2))return $.stateNode}}function nq($,Z,J){var Y=$.tag;if(Y===5||Y===6)$=$.stateNode,Z?($F(J),(J.nodeType===9?J.body:J.nodeName==="HTML"?J.ownerDocument.body:J).insertBefore($,Z)):($F(J),Z=J.nodeType===9?J.body:J.nodeName==="HTML"?J.ownerDocument.body:J,Z.appendChild($),J=J._reactRootContainer,J!==null&&J!==void 0||Z.onclick!==null||(Z.onclick=p4));else if(Y!==4&&(Y===27&&c8($.type)&&(J=$.stateNode,Z=null),$=$.child,$!==null))for(nq($,Z,J),$=$.sibling;$!==null;)nq($,Z,J),$=$.sibling}function dJ($,Z,J){var Y=$.tag;if(Y===5||Y===6)$=$.stateNode,Z?J.insertBefore($,Z):J.appendChild($);else if(Y!==4&&(Y===27&&c8($.type)&&(J=$.stateNode),$=$.child,$!==null))for(dJ($,Z,J),$=$.sibling;$!==null;)dJ($,Z,J),$=$.sibling}function E_($){for(var Z,J=$.return;J!==null;){if(sH(J)){Z=J;break}J=J.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,J=sq($),dJ($,J,Z);break;case 5:J=Z.stateNode,Z.flags&32&&(eM(J),Z.flags&=-33),Z=sq($),dJ($,Z,J);break;case 3:case 4:Z=Z.stateNode.containerInfo,J=sq($),nq($,J,Z);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function nH($){var{stateNode:Z,memoizedProps:J}=$;try{G0($,FC,$.type,J,Z,$)}catch(Y){G1($,$.return,Y)}}function oH($,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 A_($,Z){if($=$.containerInfo,sN=N3,$=BB($),DX($)){if("selectionStart"in $)var J={start:$.selectionStart,end:$.selectionEnd};else $:{J=(J=$.ownerDocument)&&J.defaultView||window;var Y=J.getSelection&&J.getSelection();if(Y&&Y.rangeCount!==0){J=Y.anchorNode;var{anchorOffset:U,focusNode:B}=Y;Y=Y.focusOffset;try{J.nodeType,B.nodeType}catch(e){J=null;break $}var W=0,R=-1,L=-1,_=0,k=0,f=$,j=null;Z:for(;;){for(var g;;){if(f!==J||U!==0&&f.nodeType!==3||(R=W+U),f!==B||Y!==0&&f.nodeType!==3||(L=W+Y),f.nodeType===3&&(W+=f.nodeValue.length),(g=f.firstChild)===null)break;j=f,f=g}for(;;){if(f===$)break Z;if(j===J&&++_===U&&(R=W),j===B&&++k===Y&&(L=W),(g=f.nextSibling)!==null)break;f=j,j=f.parentNode}f=g}J=R===-1||L===-1?null:{start:R,end:L}}else J=null}J=J||{start:0,end:0}}else J=null;nN={focusedElem:$,selectionRange:J},N3=!1;for(Y5=Z;Y5!==null;)if(Z=Y5,$=Z.child,(Z.subtreeFlags&1028)!==0&&$!==null)$.return=Z,Y5=$;else for(;Y5!==null;){switch($=Z=Y5,J=$.alternate,U=$.flags,$.tag){case 0:if((U&4)!==0&&($=$.updateQueue,$=$!==null?$.events:null,$!==null))for(J=0;J<$.length;J++)U=$[J],U.ref.impl=U.nextImpl;break;case 11:case 15:break;case 1:(U&1024)!==0&&J!==null&&V_($,J);break;case 3:if((U&1024)!==0){if($=$.stateNode.containerInfo,J=$.nodeType,J===9)FY($);else if(J===1)switch($.nodeName){case"HEAD":case"HTML":case"BODY":FY($);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,Y5=$;break}Y5=Z.return}}function aH($,Z,J){var Y=G6(),U=U4(),B=B4(),W=H4(),R=J.flags;switch(J.tag){case 0:case 11:case 15:R4($,J),R&4&&mH(J,F6|v6);break;case 1:if(R4($,J),R&4)if($=J.stateNode,Z===null)J.type.defaultProps||"ref"in J.memoizedProps||m7||($.props!==J.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(J)||"instance"),$.state!==J.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(J)||"instance")),W4(J)?(F4(),G0(J,WN,J,$),M4()):G0(J,WN,J,$);else{var L=Z9(J.type,Z.memoizedProps);Z=Z.memoizedState,J.type.defaultProps||"ref"in J.memoizedProps||m7||($.props!==J.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(J)||"instance"),$.state!==J.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(J)||"instance")),W4(J)?(F4(),G0(J,xW,J,$,L,Z,$.__reactInternalSnapshotBeforeUpdate),M4()):G0(J,xW,J,$,L,Z,$.__reactInternalSnapshotBeforeUpdate)}R&64&&pH(J),R&512&&p$(J,J.return);break;case 3:if(Z=s4(),R4($,J),R&64&&(R=J.updateQueue,R!==null)){if(L=null,J.child!==null)switch(J.child.tag){case 27:case 5:L=J.child.stateNode;break;case 1:L=J.child.stateNode}try{G0(J,lB,R,L)}catch(k){G1(J,J.return,k)}}$.effectDuration+=WJ(Z);break;case 27:Z===null&&R&4&&nH(J);case 26:case 5:if(R4($,J),Z===null){if(R&4)rH(J);else if(R&64){$=J.type,Z=J.memoizedProps,L=J.stateNode;try{G0(J,i_,L,$,Z,J)}catch(k){G1(J,J.return,k)}}}R&512&&p$(J,J.return);break;case 12:if(R&4){R=s4(),R4($,J),$=J.stateNode,$.effectDuration+=D$(R);try{G0(J,lH,J,Z,$2,$.effectDuration)}catch(k){G1(J,J.return,k)}}else R4($,J);break;case 31:R4($,J),R&4&&eH($,J);break;case 13:R4($,J),R&4&&$M($,J),R&64&&($=J.memoizedState,$!==null&&($=$.dehydrated,$!==null&&(R=g_.bind(null,J),KC($,R))));break;case 22:if(R=J.memoizedState!==null||U8,!R){Z=Z!==null&&Z.memoizedState!==null||r1,L=U8;var _=r1;U8=R,(r1=Z)&&!_?(z4($,J,(J.subtreeFlags&8772)!==0),(J.mode&k0)!==C0&&0<=T0&&0<=P0&&0.05<P0-T0&&XJ(J,T0,P0)):R4($,J),U8=L,r1=_}break;case 30:break;default:R4($,J)}(J.mode&k0)!==C0&&0<=T0&&0<=P0&&((D1||0.05<E1)&&Y4(J,T0,P0,E1,I1),J.alternate===null&&J.return!==null&&J.return.alternate!==null&&0.05<P0-T0&&(oH(J.return.alternate,J.return)||q4(J,T0,P0,"Mount"))),X6(Y),K4(U),I1=B,D1=W}function iH($){var Z=$.alternate;Z!==null&&($.alternate=null,iH(Z)),$.child=null,$.deletions=null,$.sibling=null,$.tag===5&&(Z=$.stateNode,Z!==null&&$0(Z)),$.stateNode=null,$._debugOwner=null,$.return=null,$.dependencies=null,$.memoizedProps=null,$.memoizedState=null,$.pendingProps=null,$.stateNode=null,$.updateQueue=null}function a4($,Z,J){for(J=J.child;J!==null;)tH($,Z,J),J=J.sibling}function tH($,Z,J){if(P5&&typeof P5.onCommitFiberUnmount==="function")try{P5.onCommitFiberUnmount(R7,J)}catch(_){V4||(V4=!0,console.error("React instrumentation encountered an error: %o",_))}var Y=G6(),U=U4(),B=B4(),W=H4();switch(J.tag){case 26:r1||w4(J,Z),a4($,Z,J),J.memoizedState?J.memoizedState.count--:J.stateNode&&($=J.stateNode,$.parentNode.removeChild($));break;case 27:r1||w4(J,Z);var R=s1,L=x5;c8(J.type)&&(s1=J.stateNode,x5=!1),a4($,Z,J),G0(J,t$,J.stateNode),s1=R,x5=L;break;case 5:r1||w4(J,Z);case 6:if(R=s1,L=x5,s1=null,a4($,Z,J),s1=R,x5=L,s1!==null)if(x5)try{G0(J,ZC,s1,J.stateNode)}catch(_){G1(J,Z,_)}else try{G0(J,$C,s1,J.stateNode)}catch(_){G1(J,Z,_)}break;case 18:s1!==null&&(x5?($=s1,ZF($.nodeType===9?$.body:$.nodeName==="HTML"?$.ownerDocument.body:$,J.stateNode),M7($)):ZF(s1,J.stateNode));break;case 4:R=s1,L=x5,s1=J.stateNode.containerInfo,x5=!0,a4($,Z,J),s1=R,x5=L;break;case 0:case 11:case 14:case 15:X7(v5,J,Z),r1||cq(J,Z,F6),a4($,Z,J);break;case 1:r1||(w4(J,Z),R=J.stateNode,typeof R.componentWillUnmount==="function"&&cH(J,Z,R)),a4($,Z,J);break;case 21:a4($,Z,J);break;case 22:r1=(R=r1)||J.memoizedState!==null,a4($,Z,J),r1=R;break;default:a4($,Z,J)}(J.mode&k0)!==C0&&0<=T0&&0<=P0&&(D1||0.05<E1)&&Y4(J,T0,P0,E1,I1),X6(Y),K4(U),I1=B,D1=W}function eH($,Z){if(Z.memoizedState===null&&($=Z.alternate,$!==null&&($=$.memoizedState,$!==null))){$=$.dehydrated;try{G0(Z,HC,$)}catch(J){G1(Z,Z.return,J)}}}function $M($,Z){if(Z.memoizedState===null&&($=Z.alternate,$!==null&&($=$.memoizedState,$!==null&&($=$.dehydrated,$!==null))))try{G0(Z,MC,$)}catch(J){G1(Z,Z.return,J)}}function j_($){switch($.tag){case 31:case 13:case 19:var Z=$.stateNode;return Z===null&&(Z=$.stateNode=new Iw),Z;case 22:return $=$.stateNode,Z=$._retryCache,Z===null&&(Z=$._retryCache=new Iw),Z;default:throw Error("Unexpected Suspense handler tag ("+$.tag+"). This is a bug in React.")}}function pJ($,Z){var J=j_($);Z.forEach(function(Y){if(!J.has(Y)){if(J.add(Y),I4)if(d7!==null&&p7!==null)s$(p7,d7);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var U=h_.bind(null,$,Y);Y.then(U,U)}})}function h5($,Z){var J=Z.deletions;if(J!==null)for(var Y=0;Y<J.length;Y++){var U=$,B=Z,W=J[Y],R=G6(),L=B;$:for(;L!==null;){switch(L.tag){case 27:if(c8(L.type)){s1=L.stateNode,x5=!1;break $}break;case 5:s1=L.stateNode,x5=!1;break $;case 3:case 4:s1=L.stateNode.containerInfo,x5=!0;break $}L=L.return}if(s1===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");tH(U,B,W),s1=null,x5=!1,(W.mode&k0)!==C0&&0<=T0&&0<=P0&&0.05<P0-T0&&q4(W,T0,P0,"Unmount"),X6(R),U=W,B=U.alternate,B!==null&&(B.return=null),U.return=null}if(Z.subtreeFlags&13886)for(Z=Z.child;Z!==null;)ZM(Z,$),Z=Z.sibling}function ZM($,Z){var J=G6(),Y=U4(),U=B4(),B=H4(),W=$.alternate,R=$.flags;switch($.tag){case 0:case 11:case 14:case 15:h5(Z,$),u5($),R&4&&(X7(v5|v6,$,$.return),d$(v5|v6,$),cq($,$.return,F6|v6));break;case 1:if(h5(Z,$),u5($),R&512&&(r1||W===null||w4(W,W.return)),R&64&&U8&&(R=$.updateQueue,R!==null&&(W=R.callbacks,W!==null))){var L=R.shared.hiddenCallbacks;R.shared.hiddenCallbacks=L===null?W:L.concat(W)}break;case 26:if(L=t6,h5(Z,$),u5($),R&512&&(r1||W===null||w4(W,W.return)),R&4){var _=W!==null?W.memoizedState:null;if(R=$.memoizedState,W===null)if(R===null)if($.stateNode===null){$:{R=$.type,W=$.memoizedProps,L=L.ownerDocument||L;Z:switch(R){case"title":if(_=L.getElementsByTagName("title")[0],!_||_[XZ]||_[M5]||_.namespaceURI===T7||_.hasAttribute("itemprop"))_=L.createElement(R),L.head.insertBefore(_,L.querySelector("head > title"));H5(_,R,W),_[M5]=$,z0(_),R=_;break $;case"link":var k=HF("link","href",L).get(R+(W.href||""));if(k){for(var f=0;f<k.length;f++)if(_=k[f],_.getAttribute("href")===(W.href==null||W.href===""?null:W.href)&&_.getAttribute("rel")===(W.rel==null?null:W.rel)&&_.getAttribute("title")===(W.title==null?null:W.title)&&_.getAttribute("crossorigin")===(W.crossOrigin==null?null:W.crossOrigin)){k.splice(f,1);break Z}}_=L.createElement(R),H5(_,R,W),L.head.appendChild(_);break;case"meta":if(k=HF("meta","content",L).get(R+(W.content||""))){for(f=0;f<k.length;f++)if(_=k[f],K1(W.content,"content"),_.getAttribute("content")===(W.content==null?null:""+W.content)&&_.getAttribute("name")===(W.name==null?null:W.name)&&_.getAttribute("property")===(W.property==null?null:W.property)&&_.getAttribute("http-equiv")===(W.httpEquiv==null?null:W.httpEquiv)&&_.getAttribute("charset")===(W.charSet==null?null:W.charSet)){k.splice(f,1);break Z}}_=L.createElement(R),H5(_,R,W),L.head.appendChild(_);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+R+'". This is a bug in React.')}_[M5]=$,z0(_),R=_}$.stateNode=R}else MF(L,$.type,$.stateNode);else $.stateNode=BF(L,R,$.memoizedProps);else _!==R?(_===null?W.stateNode!==null&&(W=W.stateNode,W.parentNode.removeChild(W)):_.count--,R===null?MF(L,$.type,$.stateNode):BF(L,R,$.memoizedProps)):R===null&&$.stateNode!==null&&rq($,$.memoizedProps,W.memoizedProps)}break;case 27:h5(Z,$),u5($),R&512&&(r1||W===null||w4(W,W.return)),W!==null&&R&4&&rq($,$.memoizedProps,W.memoizedProps);break;case 5:if(h5(Z,$),u5($),R&512&&(r1||W===null||w4(W,W.return)),$.flags&32){L=$.stateNode;try{G0($,eM,L)}catch(J0){G1($,$.return,J0)}}R&4&&$.stateNode!=null&&(L=$.memoizedProps,rq($,L,W!==null?W.memoizedProps:L)),R&1024&&(AN=!0,$.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(h5(Z,$),u5($),R&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.");R=$.memoizedProps,W=W!==null?W.memoizedProps:R,L=$.stateNode;try{G0($,e_,L,W,R)}catch(J0){G1($,$.return,J0)}}break;case 3:if(L=s4(),X3=null,_=t6,t6=iJ(Z.containerInfo),h5(Z,$),t6=_,u5($),R&4&&W!==null&&W.memoizedState.isDehydrated)try{G0($,BC,Z.containerInfo)}catch(J0){G1($,$.return,J0)}AN&&(AN=!1,QM($)),Z.effectDuration+=WJ(L);break;case 4:R=t6,t6=iJ($.stateNode.containerInfo),h5(Z,$),u5($),t6=R;break;case 12:R=s4(),h5(Z,$),u5($),$.stateNode.effectDuration+=D$(R);break;case 31:h5(Z,$),u5($),R&4&&(R=$.updateQueue,R!==null&&($.updateQueue=null,pJ($,R)));break;case 13:h5(Z,$),u5($),$.child.flags&8192&&$.memoizedState!==null!==(W!==null&&W.memoizedState!==null)&&(cG=X5()),R&4&&(R=$.updateQueue,R!==null&&($.updateQueue=null,pJ($,R)));break;case 22:L=$.memoizedState!==null;var j=W!==null&&W.memoizedState!==null,g=U8,e=r1;if(U8=g||L,r1=e||j,h5(Z,$),r1=e,U8=g,j&&!L&&!g&&!e&&($.mode&k0)!==C0&&0<=T0&&0<=P0&&0.05<P0-T0&&XJ($,T0,P0),u5($),R&8192)$:for(Z=$.stateNode,Z._visibility=L?Z._visibility&~FZ:Z._visibility|FZ,!L||W===null||j||U8||r1||(Q9($),($.mode&k0)!==C0&&0<=T0&&0<=P0&&0.05<P0-T0&&q4($,T0,P0,"Disconnect")),W=null,Z=$;;){if(Z.tag===5||Z.tag===26){if(W===null){j=W=Z;try{_=j.stateNode,L?G0(j,JC,_):G0(j,qC,j.stateNode,j.memoizedProps)}catch(J0){G1(j,j.return,J0)}}}else if(Z.tag===6){if(W===null){j=Z;try{k=j.stateNode,L?G0(j,GC,k):G0(j,YC,k,j.memoizedProps)}catch(J0){G1(j,j.return,J0)}}}else if(Z.tag===18){if(W===null){j=Z;try{f=j.stateNode,L?G0(j,QC,f):G0(j,XC,j.stateNode)}catch(J0){G1(j,j.return,J0)}}}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}R&4&&(R=$.updateQueue,R!==null&&(W=R.retryQueue,W!==null&&(R.retryQueue=null,pJ($,W))));break;case 19:h5(Z,$),u5($),R&4&&(R=$.updateQueue,R!==null&&($.updateQueue=null,pJ($,R)));break;case 30:break;case 21:break;default:h5(Z,$),u5($)}($.mode&k0)!==C0&&0<=T0&&0<=P0&&((D1||0.05<E1)&&Y4($,T0,P0,E1,I1),$.alternate===null&&$.return!==null&&$.return.alternate!==null&&0.05<P0-T0&&(oH($.return.alternate,$.return)||q4($,T0,P0,"Mount"))),X6(J),K4(Y),I1=U,D1=B}function u5($){var Z=$.flags;if(Z&2){try{G0($,E_,$)}catch(J){G1($,$.return,J)}$.flags&=-3}Z&4096&&($.flags&=-4097)}function QM($){if($.subtreeFlags&1024)for($=$.child;$!==null;){var Z=$;QM(Z),Z.tag===5&&Z.flags&1024&&Z.stateNode.reset(),$=$.sibling}}function R4($,Z){if(Z.subtreeFlags&8772)for(Z=Z.child;Z!==null;)aH($,Z.alternate,Z),Z=Z.sibling}function JM($){var Z=G6(),J=U4(),Y=B4(),U=H4();switch($.tag){case 0:case 11:case 14:case 15:cq($,$.return,F6),Q9($);break;case 1:w4($,$.return);var B=$.stateNode;typeof B.componentWillUnmount==="function"&&cH($,$.return,B),Q9($);break;case 27:G0($,t$,$.stateNode);case 26:case 5:w4($,$.return),Q9($);break;case 22:$.memoizedState===null&&Q9($);break;case 30:Q9($);break;default:Q9($)}($.mode&k0)!==C0&&0<=T0&&0<=P0&&(D1||0.05<E1)&&Y4($,T0,P0,E1,I1),X6(Z),K4(J),I1=Y,D1=U}function Q9($){for($=$.child;$!==null;)JM($),$=$.sibling}function GM($,Z,J,Y){var U=G6(),B=U4(),W=B4(),R=H4(),L=J.flags;switch(J.tag){case 0:case 11:case 15:z4($,J,Y),mH(J,F6);break;case 1:if(z4($,J,Y),Z=J.stateNode,typeof Z.componentDidMount==="function"&&G0(J,WN,J,Z),Z=J.updateQueue,Z!==null){$=J.stateNode;try{G0(J,B_,Z,$)}catch(_){G1(J,J.return,_)}}Y&&L&64&&pH(J),p$(J,J.return);break;case 27:nH(J);case 26:case 5:z4($,J,Y),Y&&Z===null&&L&4&&rH(J),p$(J,J.return);break;case 12:if(Y&&L&4){L=s4(),z4($,J,Y),Y=J.stateNode,Y.effectDuration+=D$(L);try{G0(J,lH,J,Z,$2,Y.effectDuration)}catch(_){G1(J,J.return,_)}}else z4($,J,Y);break;case 31:z4($,J,Y),Y&&L&4&&eH($,J);break;case 13:z4($,J,Y),Y&&L&4&&$M($,J);break;case 22:J.memoizedState===null&&z4($,J,Y),p$(J,J.return);break;case 30:break;default:z4($,J,Y)}(J.mode&k0)!==C0&&0<=T0&&0<=P0&&(D1||0.05<E1)&&Y4(J,T0,P0,E1,I1),X6(U),K4(B),I1=W,D1=R}function z4($,Z,J){J=J&&(Z.subtreeFlags&8772)!==0;for(Z=Z.child;Z!==null;)GM($,Z.alternate,Z,J),Z=Z.sibling}function oq($,Z){var J=null;$!==null&&$.memoizedState!==null&&$.memoizedState.cachePool!==null&&(J=$.memoizedState.cachePool.pool),$=null,Z.memoizedState!==null&&Z.memoizedState.cachePool!==null&&($=Z.memoizedState.cachePool.pool),$!==J&&($!=null&&i2($),J!=null&&S$(J))}function aq($,Z){$=null,Z.alternate!==null&&($=Z.alternate.memoizedState.cache),Z=Z.memoizedState.cache,Z!==$&&(i2(Z),$!=null&&S$($))}function r6($,Z,J,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;XM($,Z,J,Y,B!==null?B.actualStartTime:U),Z=B}}function XM($,Z,J,Y,U){var B=G6(),W=U4(),R=B4(),L=H4(),_=a8,k=Z.flags;switch(Z.tag){case 0:case 11:case 15:(Z.mode&k0)!==C0&&0<Z.actualStartTime&&(Z.flags&1)!==0&&qJ(Z,Z.actualStartTime,U,t1,J),r6($,Z,J,Y,U),k&2048&&dH(Z,b5|v6);break;case 1:(Z.mode&k0)!==C0&&0<Z.actualStartTime&&((Z.flags&128)!==0?bX(Z,Z.actualStartTime,U,[]):(Z.flags&1)!==0&&qJ(Z,Z.actualStartTime,U,t1,J)),r6($,Z,J,Y,U);break;case 3:var f=s4(),j=t1;t1=Z.alternate!==null&&Z.alternate.memoizedState.isDehydrated&&(Z.flags&256)===0,r6($,Z,J,Y,U),t1=j,k&2048&&(J=null,Z.alternate!==null&&(J=Z.alternate.memoizedState.cache),Y=Z.memoizedState.cache,Y!==J&&(i2(Y),J!=null&&S$(J))),$.passiveEffectDuration+=WJ(f);break;case 12:if(k&2048){k=s4(),r6($,Z,J,Y,U),$=Z.stateNode,$.passiveEffectDuration+=D$(k);try{G0(Z,O_,Z,Z.alternate,$2,$.passiveEffectDuration)}catch(g){G1(Z,Z.return,g)}}else r6($,Z,J,Y,U);break;case 31:k=t1,f=Z.alternate!==null?Z.alternate.memoizedState:null,j=Z.memoizedState,f!==null&&j===null?(j=Z.deletions,j!==null&&0<j.length&&j[0].tag===18?(t1=!1,f=f.hydrationErrors,f!==null&&bX(Z,Z.actualStartTime,U,f)):t1=!0):t1=!1,r6($,Z,J,Y,U),t1=k;break;case 13:k=t1,f=Z.alternate!==null?Z.alternate.memoizedState:null,j=Z.memoizedState,f===null||f.dehydrated===null||j!==null&&j.dehydrated!==null?t1=!1:(j=Z.deletions,j!==null&&0<j.length&&j[0].tag===18?(t1=!1,f=f.hydrationErrors,f!==null&&bX(Z,Z.actualStartTime,U,f)):t1=!0),r6($,Z,J,Y,U),t1=k;break;case 23:break;case 22:j=Z.stateNode,f=Z.alternate,Z.memoizedState!==null?j._visibility&e4?r6($,Z,J,Y,U):c$($,Z,J,Y,U):j._visibility&e4?r6($,Z,J,Y,U):(j._visibility|=e4,q7($,Z,J,Y,(Z.subtreeFlags&10256)!==0||Z.actualDuration!==0&&(Z.alternate===null||Z.alternate.child!==Z.child),U),(Z.mode&k0)===C0||t1||($=Z.actualStartTime,0<=$&&0.05<U-$&&XJ(Z,$,U),0<=T0&&0<=P0&&0.05<P0-T0&&XJ(Z,T0,P0))),k&2048&&oq(f,Z);break;case 24:r6($,Z,J,Y,U),k&2048&&aq(Z.alternate,Z);break;default:r6($,Z,J,Y,U)}if((Z.mode&k0)!==C0){if($=!t1&&Z.alternate===null&&Z.return!==null&&Z.return.alternate!==null)J=Z.actualStartTime,0<=J&&0.05<U-J&&q4(Z,J,U,"Mount");0<=T0&&0<=P0&&((D1||0.05<E1)&&Y4(Z,T0,P0,E1,I1),$&&0.05<P0-T0&&q4(Z,T0,P0,"Mount"))}X6(B),K4(W),I1=R,D1=L,a8=_}function q7($,Z,J,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;qM($,Z,J,Y,U,W!==null?W.actualStartTime:B),Z=W}}function qM($,Z,J,Y,U,B){var W=G6(),R=U4(),L=B4(),_=H4(),k=a8;U&&(Z.mode&k0)!==C0&&0<Z.actualStartTime&&(Z.flags&1)!==0&&qJ(Z,Z.actualStartTime,B,t1,J);var f=Z.flags;switch(Z.tag){case 0:case 11:case 15:q7($,Z,J,Y,U,B),dH(Z,b5);break;case 23:break;case 22:var j=Z.stateNode;Z.memoizedState!==null?j._visibility&e4?q7($,Z,J,Y,U,B):c$($,Z,J,Y,B):(j._visibility|=e4,q7($,Z,J,Y,U,B)),U&&f&2048&&oq(Z.alternate,Z);break;case 24:q7($,Z,J,Y,U,B),U&&f&2048&&aq(Z.alternate,Z);break;default:q7($,Z,J,Y,U,B)}(Z.mode&k0)!==C0&&0<=T0&&0<=P0&&(D1||0.05<E1)&&Y4(Z,T0,P0,E1,I1),X6(W),K4(R),I1=L,D1=_,a8=k}function c$($,Z,J,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=$,R=J,L=Y,_=Z!==null?Z.actualStartTime:U,k=a8;(B.mode&k0)!==C0&&0<B.actualStartTime&&(B.flags&1)!==0&&qJ(B,B.actualStartTime,_,t1,R);var f=B.flags;switch(B.tag){case 22:c$(W,B,R,L,_),f&2048&&oq(B.alternate,B);break;case 24:c$(W,B,R,L,_),f&2048&&aq(B.alternate,B);break;default:c$(W,B,R,L,_)}a8=k,B=Z}}function Y7($,Z,J){if($.subtreeFlags&kZ)for($=$.child;$!==null;)YM($,Z,J),$=$.sibling}function YM($,Z,J){switch($.tag){case 26:Y7($,Z,J),$.flags&kZ&&$.memoizedState!==null&&RC(J,t6,$.memoizedState,$.memoizedProps);break;case 5:Y7($,Z,J);break;case 3:case 4:var Y=t6;t6=iJ($.stateNode.containerInfo),Y7($,Z,J),t6=Y;break;case 22:$.memoizedState===null&&(Y=$.alternate,Y!==null&&Y.memoizedState!==null?(Y=kZ,kZ=16777216,Y7($,Z,J),kZ=Y):Y7($,Z,J));break;default:Y7($,Z,J)}}function NM($){var Z=$.alternate;if(Z!==null&&($=Z.child,$!==null)){Z.child=null;do Z=$.sibling,$.sibling=null,$=Z;while($!==null)}}function l$($){var Z=$.deletions;if(($.flags&16)!==0){if(Z!==null)for(var J=0;J<Z.length;J++){var Y=Z[J],U=G6();Y5=Y,BM(Y,$),(Y.mode&k0)!==C0&&0<=T0&&0<=P0&&0.05<P0-T0&&q4(Y,T0,P0,"Unmount"),X6(U)}NM($)}if($.subtreeFlags&10256)for($=$.child;$!==null;)UM($),$=$.sibling}function UM($){var Z=G6(),J=U4(),Y=B4(),U=H4();switch($.tag){case 0:case 11:case 15:l$($),$.flags&2048&&lq($,$.return,b5|v6);break;case 3:var B=s4();l$($),$.stateNode.passiveEffectDuration+=WJ(B);break;case 12:B=s4(),l$($),$.stateNode.passiveEffectDuration+=D$(B);break;case 22:B=$.stateNode,$.memoizedState!==null&&B._visibility&e4&&($.return===null||$.return.tag!==13)?(B._visibility&=~e4,cJ($),($.mode&k0)!==C0&&0<=T0&&0<=P0&&0.05<P0-T0&&q4($,T0,P0,"Disconnect")):l$($);break;default:l$($)}($.mode&k0)!==C0&&0<=T0&&0<=P0&&(D1||0.05<E1)&&Y4($,T0,P0,E1,I1),X6(Z),K4(J),D1=U,I1=Y}function cJ($){var Z=$.deletions;if(($.flags&16)!==0){if(Z!==null)for(var J=0;J<Z.length;J++){var Y=Z[J],U=G6();Y5=Y,BM(Y,$),(Y.mode&k0)!==C0&&0<=T0&&0<=P0&&0.05<P0-T0&&q4(Y,T0,P0,"Unmount"),X6(U)}NM($)}for($=$.child;$!==null;)KM($),$=$.sibling}function KM($){var Z=G6(),J=U4(),Y=B4(),U=H4();switch($.tag){case 0:case 11:case 15:lq($,$.return,b5),cJ($);break;case 22:var B=$.stateNode;B._visibility&e4&&(B._visibility&=~e4,cJ($));break;default:cJ($)}($.mode&k0)!==C0&&0<=T0&&0<=P0&&(D1||0.05<E1)&&Y4($,T0,P0,E1,I1),X6(Z),K4(J),D1=U,I1=Y}function BM($,Z){for(;Y5!==null;){var J=Y5,Y=J,U=Z,B=G6(),W=U4(),R=B4(),L=H4();switch(Y.tag){case 0:case 11:case 15:lq(Y,U,b5);break;case 23:case 22:Y.memoizedState!==null&&Y.memoizedState.cachePool!==null&&(U=Y.memoizedState.cachePool.pool,U!=null&&i2(U));break;case 24:S$(Y.memoizedState.cache)}if((Y.mode&k0)!==C0&&0<=T0&&0<=P0&&(D1||0.05<E1)&&Y4(Y,T0,P0,E1,I1),X6(B),K4(W),D1=L,I1=R,Y=J.child,Y!==null)Y.return=J,Y5=Y;else $:for(J=$;Y5!==null;){if(Y=Y5,B=Y.sibling,W=Y.return,iH(Y),Y===J){Y5=null;break $}if(B!==null){B.return=W,Y5=B;break $}Y5=W}}}function S_(){iV.forEach(function($){return $()})}function HM(){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 Y6($){if((a0&e1)!==N5&&y0!==0)return y0&-y0;var Z=x.T;return Z!==null?(Z._updatedFibers||(Z._updatedFibers=new Set),Z._updatedFibers.add($),GY()):y()}function MM(){if(d5===0)if((y0&536870912)===0||r0){var $=UG;UG<<=1,(UG&3932160)===0&&(UG=262144),d5=$}else d5=536870912;return $=M6.current,$!==null&&($.flags|=32),d5}function S1($,Z,J){if(r7&&console.error("useInsertionEffect must not schedule updates."),uN&&(nG=!0),$===F1&&(N1===R9||N1===z9)||$.cancelPendingCommit!==null)U7($,0),d8($,y0,d5,!1);if(S8($,J),(a0&e1)!==N5&&$===F1){if(C4)switch(Z.tag){case 0:case 11:case 15:$=g0&&d(g0)||"Unknown",xw.has($)||(xw.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:uw||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),uw=!0)}}else I4&&T$($,Z,J),x_(Z),$===F1&&((a0&e1)===N5&&(U2|=J),A1===q2&&d8($,y0,d5,!1)),T4($)}function FM($,Z,J){if((a0&(e1|W6))!==N5)throw Error("Should not already be working.");if(y0!==0&&g0!==null){var Y=g0,U=X5();switch(vW){case gZ:case R9:var B=LZ;T1&&((Y=Y._debugTask)?Y.run(console.timeStamp.bind(console,"Suspended",B,U,V6,void 0,"primary-light")):console.timeStamp("Suspended",B,U,V6,void 0,"primary-light"));break;case z9:B=LZ,T1&&((Y=Y._debugTask)?Y.run(console.timeStamp.bind(console,"Action",B,U,V6,void 0,"primary-light")):console.timeStamp("Action",B,U,V6,void 0,"primary-light"));break;default:T1&&(Y=U-LZ,3>Y||console.timeStamp("Blocked",LZ,U,V6,void 0,5>Y?"primary-light":10>Y?"primary":100>Y?"primary-dark":"error"))}}B=(J=!J&&(Z&127)===0&&(Z&$.expiredLanes)===0||h2($,Z))?v_($,Z):tq($,Z,!0);var W=J;do{if(B===K8){c7&&!J&&d8($,Z,0,!1),Z=N1,LZ=p1(),vW=Z;break}else{if(Y=X5(),U=$.current.alternate,W&&!D_(U)){Q6(Z),U=q5,B=Y,!T1||B<=U||(y1?y1.run(console.timeStamp.bind(console,"Teared Render",U,B,c0,d0,"error")):console.timeStamp("Teared Render",U,B,c0,d0,"error")),J9(Z,Y),B=tq($,Z,!1),W=!1;continue}if(B===w9){if(W=Z,$.errorRecoveryDisabledLanes&W)var R=0;else R=$.pendingLanes&-536870913,R=R!==0?R:R&536870912?536870912:0;if(R!==0){Q6(Z),kX(q5,Y,Z,y1),J9(Z,Y),Z=R;$:{Y=$,B=W,W=uZ;var L=Y.current.memoizedState.isDehydrated;if(L&&(U7(Y,R).flags|=256),R=tq(Y,R,!1),R!==w9){if(DN&&!L){Y.errorRecoveryDisabledLanes|=B,U2|=B,B=q2;break $}Y=k5,k5=W,Y!==null&&(k5===null?k5=Y:k5.push.apply(k5,Y))}B=R}if(W=!1,B!==w9)continue;else Y=X5()}}if(B===yZ){Q6(Z),kX(q5,Y,Z,y1),J9(Z,Y),U7($,0),d8($,Z,0,!0);break}$:{switch(J=$,B){case K8:case yZ:throw Error("Root did not complete. This is a bug in React.");case q2:if((Z&4194048)!==Z)break;case xG:Q6(Z),FB(q5,Y,Z,y1),J9(Z,Y),U=Z,(U&127)!==0?IG=Y:(U&4194048)!==0&&(OG=Y),d8(J,Z,d5,!Y2);break $;case w9:k5=null;break;case uG:case Ow:break;default:throw Error("Unknown root exit status.")}if(x.actQueue!==null)eq(J,U,Z,k5,xZ,pG,d5,U2,T9,B,null,null,q5,Y);else{if((Z&62914560)===Z&&(W=cG+jw-X5(),10<W)){if(d8(J,Z,d5,!Y2),g2(J,0,!0)!==0)break $;e6=Z,J.timeoutHandle=nw(WM.bind(null,J,U,k5,xZ,pG,Z,d5,U2,T9,Y2,B,"Throttled",q5,Y),W);break $}WM(J,U,k5,xZ,pG,Z,d5,U2,T9,Y2,B,null,q5,Y)}}}break}while(1);T4($)}function WM($,Z,J,Y,U,B,W,R,L,_,k,f,j,g){$.timeoutHandle=V9;var e=Z.subtreeFlags,J0=null;if(e&8192||(e&16785408)===16785408){if(J0={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:p4},YM(Z,B,J0),e=(B&62914560)===B?cG-X5():(B&4194048)===B?Aw-X5():0,e=zC(J0,e),e!==null){e6=B,$.cancelPendingCommit=e(eq.bind(null,$,Z,B,J,Y,U,W,R,L,k,J0,J0.waitingForViewTransition?"Waiting for the previous Animation":0<J0.count?0<J0.imgCount?"Suspended on CSS and Images":"Suspended on CSS":J0.imgCount===1?"Suspended on an Image":0<J0.imgCount?"Suspended on Images":null,j,g)),d8($,B,W,!_);return}}eq($,Z,B,J,Y,U,W,R,L,k,J0,f,j,g)}function D_($){for(var Z=$;;){var J=Z.tag;if((J===0||J===11||J===15)&&Z.flags&16384&&(J=Z.updateQueue,J!==null&&(J=J.stores,J!==null)))for(var Y=0;Y<J.length;Y++){var U=J[Y],B=U.getSnapshot;U=U.value;try{if(!S5(B(),U))return!1}catch(W){return!1}}if(J=Z.child,Z.subtreeFlags&16384&&J!==null)J.return=Z,Z=J;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 d8($,Z,J,Y){Z&=~vN,Z&=~U2,$.suspendedLanes|=Z,$.pingedLanes&=~Z,Y&&($.warmLanes|=Z),Y=$.expirationTimes;for(var U=Z;0<U;){var B=31-E5(U),W=1<<B;Y[B]=-1,U&=~W}J!==0&&u2($,J,Z)}function N7(){return(a0&(e1|W6))===N5?(n$(0,!1),!1):!0}function iq(){if(g0!==null){if(N1===m5)var $=g0.return;else $=g0,HJ(),Nq($),f7=null,jZ=0,$=g0;for(;$!==null;)xH($.alternate,$),$=$.return;g0=null}}function J9($,Z){($&127)!==0&&(Z2=Z),($&4194048)!==0&&(S4=Z),($&62914560)!==0&&(SW=Z),($&2080374784)!==0&&(DW=Z)}function U7($,Z){T1&&(console.timeStamp("Blocking Track",0.003,0.003,"Blocking",d0,"primary-light"),console.timeStamp("Transition Track",0.003,0.003,"Transition",d0,"primary-light"),console.timeStamp("Suspense Track",0.003,0.003,"Suspense",d0,"primary-light"),console.timeStamp("Idle Track",0.003,0.003,"Idle",d0,"primary-light"));var J=q5;if(q5=p1(),y0!==0&&0<J){if(Q6(y0),A1===uG||A1===q2)FB(J,q5,Z,y1);else{var Y=q5,U=y1;if(T1&&!(Y<=J)){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,J,Y,c0,d0,B)):console.timeStamp(W,J,Y,c0,d0,B)}}J9(y0,q5)}if(J=y1,y1=null,(Z&127)!==0){y1=RZ,U=0<=j4&&j4<Z2?Z2:j4,Y=0<=N9&&N9<Z2?Z2:N9,B=0<=Y?Y:0<=U?U:q5,0<=IG?(Q6(2),WB(IG,B,Z,J)):(EG&127)!==0&&(Q6(2),A$(Z2,B,X8)),J=U;var R=Y,L=zZ,_=0<v7,k=Q2===wZ,f=Q2===VG;if(U=q5,Y=RZ,B=KN,W=BN,T1){if(c0="Blocking",0<J?J>U&&(J=U):J=U,0<R?R>J&&(R=J):R=J,L!==null&&J>R){var j=_?"secondary-light":"warning";Y?Y.run(console.timeStamp.bind(console,_?"Consecutive":"Event: "+L,R,J,c0,d0,j)):console.timeStamp(_?"Consecutive":"Event: "+L,R,J,c0,d0,j)}U>J&&(R=k?"error":(Z&738197653)===Z?"tertiary-light":"primary-light",k=f?"Promise Resolved":k?"Cascading Update":5<U-J?"Update Blocked":"Update",f=[],W!=null&&f.push(["Component name",W]),B!=null&&f.push(["Method name",B]),J={start:J,end:U,detail:{devtools:{properties:f,track:c0,trackGroup:d0,color:R}}},Y?Y.run(performance.measure.bind(performance,k,J)):performance.measure(k,J))}j4=-1.1,Q2=0,BN=KN=null,IG=-1.1,v7=N9,N9=-1.1,Z2=p1()}if((Z&4194048)!==0&&(y1=TZ,U=0<=G8&&G8<S4?S4:G8,J=0<=S6&&S6<S4?S4:S6,Y=0<=J2&&J2<S4?S4:J2,B=0<=Y?Y:0<=J?J:q5,0<=OG?(Q6(256),WB(OG,B,Z,y1)):(EG&4194048)!==0&&(Q6(256),A$(S4,B,X8)),f=Y,R=U9,L=0<G2,_=HN===VG,B=q5,Y=TZ,W=AW,k=jW,T1&&(c0="Transition",0<J?J>B&&(J=B):J=B,0<U?U>J&&(U=J):U=J,0<f?f>U&&(f=U):f=U,U>f&&R!==null&&(j=L?"secondary-light":"warning",Y?Y.run(console.timeStamp.bind(console,L?"Consecutive":"Event: "+R,f,U,c0,d0,j)):console.timeStamp(L?"Consecutive":"Event: "+R,f,U,c0,d0,j)),J>U&&(Y?Y.run(console.timeStamp.bind(console,"Action",U,J,c0,d0,"primary-dark")):console.timeStamp("Action",U,J,c0,d0,"primary-dark")),B>J&&(U=_?"Promise Resolved":5<B-J?"Update Blocked":"Update",f=[],k!=null&&f.push(["Component name",k]),W!=null&&f.push(["Method name",W]),J={start:J,end:B,detail:{devtools:{properties:f,track:c0,trackGroup:d0,color:"primary-light"}}},Y?Y.run(performance.measure.bind(performance,U,J)):performance.measure(U,J))),S6=G8=-1.1,HN=0,OG=-1.1,G2=J2,J2=-1.1,S4=p1()),(Z&62914560)!==0&&(EG&62914560)!==0&&(Q6(4194304),A$(SW,q5,X8)),(Z&2080374784)!==0&&(EG&2080374784)!==0&&(Q6(268435456),A$(DW,q5,X8)),J=$.timeoutHandle,J!==V9&&($.timeoutHandle=V9,KI(J)),J=$.cancelPendingCommit,J!==null&&($.cancelPendingCommit=null,J()),e6=0,iq(),F1=$,g0=J=c4($.current,null),y0=Z,N1=m5,w6=null,Y2=!1,c7=h2($,Z),DN=!1,A1=K8,T9=d5=vN=U2=N2=0,k5=uZ=null,pG=!1,(Z&8)!==0&&(Z|=Z&32),Y=$.entangledLanes,Y!==0)for($=$.entanglements,Y&=Z;0<Y;)U=31-E5(Y),B=1<<U,Z|=$[U],Y&=~B;return v4=Z,YJ(),$=_W(),1000<$-PW&&(x.recentlyCreatedOwnerStacks=0,PW=$),a6.discardPendingWarnings(),J}function wM($,Z){V0=null,x.H=bZ,x.getCurrentStack=null,C4=!1,K6=null,Z===k7||Z===DG?(Z=gB(),N1=gZ):Z===wN?(Z=gB(),N1=Ew):N1=Z===ON?SN:Z!==null&&typeof Z==="object"&&typeof Z.then==="function"?hZ:mG,w6=Z;var J=g0;J===null?(A1=yZ,gJ($,J6(Z,$.current))):J.mode&k0&&oX(J)}function RM(){var $=M6.current;return $===null?!0:(y0&4194048)===y0?D6===null?!0:!1:(y0&62914560)===y0||(y0&536870912)!==0?$===D6:!1}function zM(){var $=x.H;return x.H=bZ,$===null?bZ:$}function TM(){var $=x.A;return x.A=aV,$}function lJ($){y1===null&&(y1=$._debugTask==null?null:$._debugTask)}function rJ(){A1=q2,Y2||(y0&4194048)!==y0&&M6.current!==null||(c7=!0),(N2&134217727)===0&&(U2&134217727)===0||F1===null||d8(F1,y0,d5,!1)}function tq($,Z,J){var Y=a0;a0|=e1;var U=zM(),B=TM();if(F1!==$||y0!==Z){if(I4){var W=$.memoizedUpdaters;0<W.size&&(s$($,y0),W.clear()),D8($,Z)}xZ=null,U7($,Z)}Z=!1,W=A1;$:do try{if(N1!==m5&&g0!==null){var R=g0,L=w6;switch(N1){case SN:iq(),W=xG;break $;case gZ:case R9:case z9:case hZ:M6.current===null&&(Z=!0);var _=N1;if(N1=m5,w6=null,K7($,R,L,_),J&&c7){W=K8;break $}break;default:_=N1,N1=m5,w6=null,K7($,R,L,_)}}LM(),W=A1;break}catch(k){wM($,k)}while(1);return Z&&$.shellSuspendCounter++,HJ(),a0=Y,x.H=U,x.A=B,g0===null&&(F1=null,y0=0,YJ()),W}function LM(){for(;g0!==null;)PM(g0)}function v_($,Z){var J=a0;a0|=e1;var Y=zM(),U=TM();if(F1!==$||y0!==Z){if(I4){var B=$.memoizedUpdaters;0<B.size&&(s$($,y0),B.clear()),D8($,Z)}xZ=null,lG=X5()+Sw,U7($,Z)}else c7=h2($,Z);$:do try{if(N1!==m5&&g0!==null)Z:switch(Z=g0,B=w6,N1){case mG:N1=m5,w6=null,K7($,Z,B,mG);break;case R9:case z9:if(fB(B)){N1=m5,w6=null,_M(Z);break}Z=function(){N1!==R9&&N1!==z9||F1!==$||(N1=dG),T4($)},B.then(Z,Z);break $;case gZ:N1=dG;break $;case Ew:N1=jN;break $;case dG:fB(B)?(N1=m5,w6=null,_M(Z)):(N1=m5,w6=null,K7($,Z,B,dG));break;case jN:var W=null;switch(g0.tag){case 26:W=g0.memoizedState;case 5:case 27:var R=g0;if(W?FF(W):R.stateNode.complete){N1=m5,w6=null;var L=R.sibling;if(L!==null)g0=L;else{var _=R.return;_!==null?(g0=_,sJ(_)):g0=null}break Z}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}N1=m5,w6=null,K7($,Z,B,jN);break;case hZ:N1=m5,w6=null,K7($,Z,B,hZ);break;case SN:iq(),A1=xG;break $;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}x.actQueue!==null?LM():b_();break}catch(k){wM($,k)}while(1);if(HJ(),x.H=Y,x.A=U,a0=J,g0!==null)return K8;return F1=null,y0=0,YJ(),A1}function b_(){for(;g0!==null&&!DC();)PM(g0)}function PM($){var Z=$.alternate;($.mode&k0)!==C0?(nX($),Z=G0($,dq,Z,$,v4),oX($)):Z=G0($,dq,Z,$,v4),$.memoizedProps=$.pendingProps,Z===null?sJ($):g0=Z}function _M($){var Z=G0($,k_,$);$.memoizedProps=$.pendingProps,Z===null?sJ($):g0=Z}function k_($){var Z=$.alternate,J=($.mode&k0)!==C0;switch(J&&nX($),$.tag){case 15:case 0:Z=bH(Z,$,$.pendingProps,$.type,void 0,y0);break;case 11:Z=bH(Z,$,$.pendingProps,$.type.render,$.ref,y0);break;case 5:Nq($);default:xH(Z,$),$=g0=PB($,v4),Z=dq(Z,$,v4)}return J&&oX($),Z}function K7($,Z,J,Y){HJ(),Nq(Z),f7=null,jZ=0;var U=Z.return;try{if(z_($,U,Z,J,y0)){A1=yZ,gJ($,J6(J,$.current)),g0=null;return}}catch(B){if(U!==null)throw g0=U,B;A1=yZ,gJ($,J6(J,$.current)),g0=null;return}if(Z.flags&32768){if(r0||Y===mG)$=!0;else if(c7||(y0&536870912)!==0)$=!1;else if(Y2=$=!0,Y===R9||Y===z9||Y===gZ||Y===hZ)Y=M6.current,Y!==null&&Y.tag===13&&(Y.flags|=16384);CM(Z,$)}else sJ(Z)}function sJ($){var Z=$;do{if((Z.flags&32768)!==0){CM(Z,Y2);return}var J=Z.alternate;if($=Z.return,nX(Z),J=G0(Z,P_,J,Z,v4),(Z.mode&k0)!==C0&&SB(Z),J!==null){g0=J;return}if(Z=Z.sibling,Z!==null){g0=Z;return}g0=Z=$}while(Z!==null);A1===K8&&(A1=Ow)}function CM($,Z){do{var J=__($.alternate,$);if(J!==null){J.flags&=32767,g0=J;return}if(($.mode&k0)!==C0){SB($),J=$.actualDuration;for(var Y=$.child;Y!==null;)J+=Y.actualDuration,Y=Y.sibling;$.actualDuration=J}if(J=$.return,J!==null&&(J.flags|=32768,J.subtreeFlags=0,J.deletions=null),!Z&&($=$.sibling,$!==null)){g0=$;return}g0=$=J}while($!==null);A1=xG,g0=null}function eq($,Z,J,Y,U,B,W,R,L,_,k,f,j,g){$.cancelPendingCommit=null;do r$();while(n1!==B2);if(a6.flushLegacyContextWarning(),a6.flushPendingUnsafeLifecycleWarnings(),(a0&(e1|W6))!==N5)throw Error("Should not already be working.");if(Q6(J),_===w9?kX(j,g,J,y1):Y!==null?X_(j,g,J,Y,Z!==null&&Z.alternate!==null&&Z.alternate.memoizedState.isDehydrated&&(Z.flags&256)!==0,y1):G_(j,g,J,y1),Z!==null){if(J===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|=XN,aQ($,J,B,W,R,L),$===F1&&(g0=F1=null,y0=0),l7=Z,H2=$,e6=J,fN=B,gN=U,yw=Y,yN=g,gw=f,$4=rG,hw=null,Z.actualDuration!==0||(Z.subtreeFlags&10256)!==0||(Z.flags&10256)!==0?($.callbackNode=null,$.callbackPriority=0,u_(w7,function(){return rZ=window.event,$4===rG&&($4=kN),AM(),null})):($.callbackNode=null,$.callbackPriority=0),J8=null,$2=p1(),f!==null&&q_(g,$2,f,y1),Y=(Z.flags&13878)!==0,(Z.subtreeFlags&13878)!==0||Y){Y=x.T,x.T=null,U=X1.p,X1.p=B6,W=a0,a0|=W6;try{A_($,Z,J)}finally{a0=W,X1.p=U,x.T=Y}}n1=vw,VM(),IM(),OM()}}function VM(){if(n1===vw){n1=B2;var $=H2,Z=l7,J=e6,Y=(Z.flags&13878)!==0;if((Z.subtreeFlags&13878)!==0||Y){Y=x.T,x.T=null;var U=X1.p;X1.p=B6;var B=a0;a0|=W6;try{d7=J,p7=$,wJ(),ZM(Z,$),p7=d7=null,J=nN;var W=BB($.containerInfo),R=J.focusedElem,L=J.selectionRange;if(W!==R&&R&&R.ownerDocument&&KB(R.ownerDocument.documentElement,R)){if(L!==null&&DX(R)){var{start:_,end:k}=L;if(k===void 0&&(k=_),"selectionStart"in R)R.selectionStart=_,R.selectionEnd=Math.min(k,R.value.length);else{var f=R.ownerDocument||document,j=f&&f.defaultView||window;if(j.getSelection){var g=j.getSelection(),e=R.textContent.length,J0=Math.min(L.start,e),R1=L.end===void 0?J0:Math.min(L.end,e);!g.extend&&J0>R1&&(W=R1,R1=J0,J0=W);var n0=UB(R,J0),E=UB(R,R1);if(n0&&E&&(g.rangeCount!==1||g.anchorNode!==n0.node||g.anchorOffset!==n0.offset||g.focusNode!==E.node||g.focusOffset!==E.offset)){var S=f.createRange();S.setStart(n0.node,n0.offset),g.removeAllRanges(),J0>R1?(g.addRange(S),g.extend(E.node,E.offset)):(S.setEnd(E.node,E.offset),g.addRange(S))}}}}f=[];for(g=R;g=g.parentNode;)g.nodeType===1&&f.push({element:g,left:g.scrollLeft,top:g.scrollTop});typeof R.focus==="function"&&R.focus();for(R=0;R<f.length;R++){var b=f[R];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}N3=!!sN,nN=sN=null}finally{a0=B,X1.p=U,x.T=Y}}$.current=Z,n1=bw}}function IM(){if(n1===bw){n1=B2;var $=hw;if($!==null){$2=p1();var Z=Q8,J=$2;!T1||J<=Z||(X8?X8.run(console.timeStamp.bind(console,$,Z,J,c0,d0,"secondary-light")):console.timeStamp($,Z,J,c0,d0,"secondary-light"))}$=H2,Z=l7,J=e6;var Y=(Z.flags&8772)!==0;if((Z.subtreeFlags&8772)!==0||Y){Y=x.T,x.T=null;var U=X1.p;X1.p=B6;var B=a0;a0|=W6;try{d7=J,p7=$,wJ(),aH($,Z.alternate,Z),p7=d7=null}finally{a0=B,X1.p=U,x.T=Y}}$=yN,Z=gw,Q8=p1(),$=Z===null?$:$2,Z=Q8,J=$4===bN,Y=y1,J8!==null?wB($,Z,J8,!1,Y):!T1||Z<=$||(Y?Y.run(console.timeStamp.bind(console,J?"Commit Interrupted View Transition":"Commit",$,Z,c0,d0,J?"error":"secondary-dark")):console.timeStamp(J?"Commit Interrupted View Transition":"Commit",$,Z,c0,d0,J?"error":"secondary-dark")),n1=kw}}function OM(){if(n1===fw||n1===kw){if(n1===fw){var $=Q8;Q8=p1();var Z=Q8,J=$4===bN;!T1||Z<=$||(X8?X8.run(console.timeStamp.bind(console,J?"Interrupted View Transition":"Starting Animation",$,Z,c0,d0,J?"error":"secondary-light")):console.timeStamp(J?"Interrupted View Transition":"Starting Animation",$,Z,c0,d0,J?" error":"secondary-light")),$4!==bN&&($4=Dw)}n1=B2,vC(),$=H2;var Y=l7;Z=e6,J=yw;var U=Y.actualDuration!==0||(Y.subtreeFlags&10256)!==0||(Y.flags&10256)!==0;U?n1=sG:(n1=B2,l7=H2=null,EM($,$.pendingLanes),L9=0,dZ=null);var B=$.pendingLanes;if(B===0&&(K2=null),U||vM($),B=C(Z),Y=Y.stateNode,P5&&typeof P5.onCommitFiberRoot==="function")try{var W=(Y.current.flags&128)===128;switch(B){case B6:var R=gY;break;case n6:R=hY;break;case O4:R=w7;break;case BG:R=uY;break;default:R=w7}P5.onCommitFiberRoot(R7,Y,R,W)}catch(f){V4||(V4=!0,console.error("React instrumentation encountered an error: %o",f))}if(I4&&$.memoizedUpdaters.clear(),S_(),J!==null){W=x.T,R=X1.p,X1.p=B6,x.T=null;try{var L=$.onRecoverableError;for(Y=0;Y<J.length;Y++){var _=J[Y],k=f_(_.stack);G0(_.source,L,_.value,k)}}finally{x.T=W,X1.p=R}}(e6&3)!==0&&r$(),T4($),B=$.pendingLanes,(Z&261930)!==0&&(B&42)!==0?(jG=!0,$===hN?mZ++:(mZ=0,hN=$)):mZ=0,U||J9(Z,Q8),n$(0,!1)}}function f_($){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 EM($,Z){($.pooledCacheLanes&=Z)===0&&(Z=$.pooledCache,Z!=null&&($.pooledCache=null,S$(Z)))}function r$(){return VM(),IM(),OM(),AM()}function AM(){if(n1!==sG)return!1;var $=H2,Z=fN;fN=0;var J=C(e6),Y=O4===0||O4>J?O4:J;J=x.T;var U=X1.p;try{X1.p=Y,x.T=null;var B=gN;gN=null,Y=H2;var W=e6;if(n1=B2,l7=H2=null,e6=0,(a0&(e1|W6))!==N5)throw Error("Cannot flush passive effects while already rendering.");Q6(W),uN=!0,nG=!1;var R=0;if(J8=null,R=X5(),$4===Dw)A$(Q8,R,X8);else{var L=Q8,_=R,k=$4===kN;!T1||_<=L||(y1?y1.run(console.timeStamp.bind(console,k?"Waiting for Paint":"Waiting",L,_,c0,d0,"secondary-light")):console.timeStamp(k?"Waiting for Paint":"Waiting",L,_,c0,d0,"secondary-light"))}L=a0,a0|=W6;var f=Y.current;wJ(),UM(f);var j=Y.current;f=yN,wJ(),XM(Y,j,W,B,f),vM(Y),a0=L;var g=X5();if(j=R,f=y1,J8!==null?wB(j,g,J8,!0,f):!T1||g<=j||(f?f.run(console.timeStamp.bind(console,"Remaining Effects",j,g,c0,d0,"secondary-dark")):console.timeStamp("Remaining Effects",j,g,c0,d0,"secondary-dark")),J9(W,g),n$(0,!1),nG?Y===dZ?L9++:(L9=0,dZ=Y):L9=0,nG=uN=!1,P5&&typeof P5.onPostCommitFiberRoot==="function")try{P5.onPostCommitFiberRoot(R7,Y)}catch(J0){V4||(V4=!0,console.error("React instrumentation encountered an error: %o",J0))}var e=Y.current.stateNode;return e.effectDuration=0,e.passiveEffectDuration=0,!0}finally{X1.p=U,x.T=J,EM($,Z)}}function jM($,Z,J){Z=J6(J,Z),DB(Z),Z=Dq($.stateNode,Z,2),$=h8($,Z,2),$!==null&&(S8($,2),T4($))}function G1($,Z,J){if(r7=!1,$.tag===3)jM($,$,J);else{for(;Z!==null;){if(Z.tag===3){jM(Z,$,J);return}if(Z.tag===1){var Y=Z.stateNode;if(typeof Z.type.getDerivedStateFromError==="function"||typeof Y.componentDidCatch==="function"&&(K2===null||!K2.has(Y))){$=J6(J,$),DB($),J=vq(2),Y=h8(Z,J,2),Y!==null&&(bq(J,Y,Z,$),S8(Y,2),T4(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,G0(Z,function(R,L){console.error("%s must not return anything besides a function, which is used for clean-up.%s",R,L)},B,W)}G=G.next}while(G!==U)}}catch(R){X1(Z,Z.return,R)}}function Y7($,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,R=W.destroy;R!==void 0&&(W.destroy=void 0,($&k5)!==uG&&(n7=!0),U=Z,G0(U,tI,U,G,R),($&k5)!==uG&&(n7=!1))}Y=Y.next}while(Y!==B)}}catch(L){X1(Z,Z.return,L)}}function rH($,Z){R4($)?(w4(),s$(Z,$),W4()):s$(Z,$)}function nq($,Z,G){R4($)?(w4(),Y7(G,$,Z),W4()):Y7(G,$,Z)}function sH($){var Z=$.updateQueue;if(Z!==null){var G=$.stateNode;$.type.defaultProps||"ref"in $.memoizedProps||p7||(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{G0($,oB,Z,G)}catch(Y){X1($,$.return,Y)}}}function S_($,Z,G){return $.getSnapshotBeforeUpdate(Z,G)}function j_($,Z){var{memoizedProps:G,memoizedState:Y}=Z;Z=$.stateNode,$.type.defaultProps||"ref"in $.memoizedProps||p7||(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=J9($.type,G),B=G0($,S_,Z,U,Y);G=Aw,B!==void 0||G.has($.type)||(G.add($.type),G0($,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",d($))})),Z.__reactInternalSnapshotBeforeUpdate=B}catch(W){X1($,$.return,W)}}function nH($,Z,G){G.props=J9($.type,$.memoizedProps),G.state=$.memoizedState,R4($)?(w4(),G0($,sW,$,Z,G),W4()):G0($,sW,$,Z,G)}function D_($){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(R4($))try{w4(),$.refCleanup=Z(G)}finally{W4()}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 n$($,Z){try{G0($,D_,$)}catch(G){X1($,Z,G)}}function z4($,Z){var{ref:G,refCleanup:Y}=$;if(G!==null)if(typeof Y==="function")try{if(R4($))try{w4(),G0($,Y)}finally{W4($)}else G0($,Y)}catch(U){X1($,Z,U)}finally{$.refCleanup=null,$=$.alternate,$!=null&&($.refCleanup=null)}else if(typeof G==="function")try{if(R4($))try{w4(),G0($,G,null)}finally{W4($)}else G0($,G,null)}catch(U){X1($,Z,U)}else G.current=null}function oH($,Z,G,Y){var U=$.memoizedProps,B=U.id,W=U.onCommit;U=U.onRender,Z=Z===null?"mount":"update",bG&&(Z="nested-update"),typeof U==="function"&&U(B,Z,$.actualDuration,$.treeBaseDuration,$.actualStartTime,G),typeof W==="function"&&W(B,Z,Y,G)}function v_($,Z,G,Y){var U=$.memoizedProps;$=U.id,U=U.onPostCommit,Z=Z===null?"mount":"update",bG&&(Z="nested-update"),typeof U==="function"&&U($,Z,Y,G)}function aH($){var{type:Z,memoizedProps:G,stateNode:Y}=$;try{G0($,QC,Y,Z,G,$)}catch(U){X1($,$.return,U)}}function oq($,Z,G){try{G0($,GC,$.stateNode,$.type,G,Z,$)}catch(Y){X1($,$.return,Y)}}function iH($){return $.tag===5||$.tag===3||$.tag===26||$.tag===27&&r8($.type)||$.tag===4}function aq($){$:for(;;){for(;$.sibling===null;){if($.return===null||iH($.return))return null;$=$.return}$.sibling.return=$.return;for($=$.sibling;$.tag!==5&&$.tag!==6&&$.tag!==18;){if($.tag===27&&r8($.type))continue $;if($.flags&2)continue $;if($.child===null||$.tag===4)continue $;else $.child.return=$,$=$.child}if(!($.flags&2))return $.stateNode}}function iq($,Z,G){var Y=$.tag;if(Y===5||Y===6)$=$.stateNode,Z?(GF(G),(G.nodeType===9?G.body:G.nodeName==="HTML"?G.ownerDocument.body:G).insertBefore($,Z)):(GF(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=r4));else if(Y!==4&&(Y===27&&r8($.type)&&(G=$.stateNode,Z=null),$=$.child,$!==null))for(iq($,Z,G),$=$.sibling;$!==null;)iq($,Z,G),$=$.sibling}function sJ($,Z,G){var Y=$.tag;if(Y===5||Y===6)$=$.stateNode,Z?G.insertBefore($,Z):G.appendChild($);else if(Y!==4&&(Y===27&&r8($.type)&&(G=$.stateNode),$=$.child,$!==null))for(sJ($,Z,G),$=$.sibling;$!==null;)sJ($,Z,G),$=$.sibling}function b_($){for(var Z,G=$.return;G!==null;){if(iH(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=aq($),sJ($,G,Z);break;case 5:G=Z.stateNode,Z.flags&32&&(JF(G),Z.flags&=-33),Z=aq($),sJ($,Z,G);break;case 3:case 4:Z=Z.stateNode.containerInfo,G=aq($),iq($,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 tH($){var{stateNode:Z,memoizedProps:G}=$;try{G0($,LC,$.type,G,Z,$)}catch(Y){X1($,$.return,Y)}}function eH($,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 k_($,Z){if($=$.containerInfo,aN=M3,$=WB($),kX($)){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(e){G=null;break $}var W=0,R=-1,L=-1,_=0,k=0,f=$,S=null;Z:for(;;){for(var g;;){if(f!==G||U!==0&&f.nodeType!==3||(R=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&&++_===U&&(R=W),S===B&&++k===Y&&(L=W),(g=f.nextSibling)!==null)break;f=S,S=f.parentNode}f=g}G=R===-1||L===-1?null:{start:R,end:L}}else G=null}G=G||{start:0,end:0}}else G=null;iN={focusedElem:$,selectionRange:G},M3=!1;for(U5=Z;U5!==null;)if(Z=U5,$=Z.child,(Z.subtreeFlags&1028)!==0&&$!==null)$.return=Z,U5=$;else for(;U5!==null;){switch($=Z=U5,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&&j_($,G);break;case 3:if((U&1024)!==0){if($=$.stateNode.containerInfo,G=$.nodeType,G===9)RY($);else if(G===1)switch($.nodeName){case"HEAD":case"HTML":case"BODY":RY($);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,U5=$;break}U5=Z.return}}function $M($,Z,G){var Y=N6(),U=B4(),B=M4(),W=F4(),R=G.flags;switch(G.tag){case 0:case 11:case 15:T4($,G),R&4&&lH(G,z6|f6);break;case 1:if(T4($,G),R&4)if($=G.stateNode,Z===null)G.type.defaultProps||"ref"in G.memoizedProps||p7||($.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")),R4(G)?(w4(),G0(G,zN,G,$),W4()):G0(G,zN,G,$);else{var L=J9(G.type,Z.memoizedProps);Z=Z.memoizedState,G.type.defaultProps||"ref"in G.memoizedProps||p7||($.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")),R4(G)?(w4(),G0(G,cW,G,$,L,Z,$.__reactInternalSnapshotBeforeUpdate),W4()):G0(G,cW,G,$,L,Z,$.__reactInternalSnapshotBeforeUpdate)}R&64&&sH(G),R&512&&n$(G,G.return);break;case 3:if(Z=a4(),T4($,G),R&64&&(R=G.updateQueue,R!==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{G0(G,oB,R,L)}catch(k){X1(G,G.return,k)}}$.effectDuration+=LJ(Z);break;case 27:Z===null&&R&4&&tH(G);case 26:case 5:if(T4($,G),Z===null){if(R&4)aH(G);else if(R&64){$=G.type,Z=G.memoizedProps,L=G.stateNode;try{G0(G,JC,L,$,Z,G)}catch(k){X1(G,G.return,k)}}}R&512&&n$(G,G.return);break;case 12:if(R&4){R=a4(),T4($,G),$=G.stateNode,$.effectDuration+=y$(R);try{G0(G,oH,G,Z,Q2,$.effectDuration)}catch(k){X1(G,G.return,k)}}else T4($,G);break;case 31:T4($,G),R&4&&JM($,G);break;case 13:T4($,G),R&4&&GM($,G),R&64&&($=G.memoizedState,$!==null&&($=$.dehydrated,$!==null&&(R=p_.bind(null,G),wC($,R))));break;case 22:if(R=G.memoizedState!==null||H8,!R){Z=Z!==null&&Z.memoizedState!==null||n1,L=H8;var _=n1;H8=R,(n1=Z)&&!_?(L4($,G,(G.subtreeFlags&8772)!==0),(G.mode&f0)!==I0&&0<=T0&&0<=P0&&0.05<P0-T0&&KJ(G,T0,P0)):T4($,G),H8=L,n1=_}break;case 30:break;default:T4($,G)}(G.mode&f0)!==I0&&0<=T0&&0<=P0&&((v1||0.05<A1)&&U4(G,T0,P0,A1,E1),G.alternate===null&&G.return!==null&&G.return.alternate!==null&&0.05<P0-T0&&(eH(G.return.alternate,G.return)||N4(G,T0,P0,"Mount"))),U6(Y),H4(U),E1=B,v1=W}function ZM($){var Z=$.alternate;Z!==null&&($.alternate=null,ZM(Z)),$.child=null,$.deletions=null,$.sibling=null,$.tag===5&&(Z=$.stateNode,Z!==null&&$0(Z)),$.stateNode=null,$._debugOwner=null,$.return=null,$.dependencies=null,$.memoizedProps=null,$.memoizedState=null,$.pendingProps=null,$.stateNode=null,$.updateQueue=null}function e4($,Z,G){for(G=G.child;G!==null;)QM($,Z,G),G=G.sibling}function QM($,Z,G){if(C5&&typeof C5.onCommitFiberUnmount==="function")try{C5.onCommitFiberUnmount(T7,G)}catch(_){O4||(O4=!0,console.error("React instrumentation encountered an error: %o",_))}var Y=N6(),U=B4(),B=M4(),W=F4();switch(G.tag){case 26:n1||z4(G,Z),e4($,Z,G),G.memoizedState?G.memoizedState.count--:G.stateNode&&($=G.stateNode,$.parentNode.removeChild($));break;case 27:n1||z4(G,Z);var R=o1,L=p5;r8(G.type)&&(o1=G.stateNode,p5=!1),e4($,Z,G),G0(G,JZ,G.stateNode),o1=R,p5=L;break;case 5:n1||z4(G,Z);case 6:if(R=o1,L=p5,o1=null,e4($,Z,G),o1=R,p5=L,o1!==null)if(p5)try{G0(G,YC,o1,G.stateNode)}catch(_){X1(G,Z,_)}else try{G0(G,qC,o1,G.stateNode)}catch(_){X1(G,Z,_)}break;case 18:o1!==null&&(p5?($=o1,XF($.nodeType===9?$.body:$.nodeName==="HTML"?$.ownerDocument.body:$,G.stateNode),W7($)):XF(o1,G.stateNode));break;case 4:R=o1,L=p5,o1=G.stateNode.containerInfo,p5=!0,e4($,Z,G),o1=R,p5=L;break;case 0:case 11:case 14:case 15:Y7(k5,G,Z),n1||sq(G,Z,z6),e4($,Z,G);break;case 1:n1||(z4(G,Z),R=G.stateNode,typeof R.componentWillUnmount==="function"&&nH(G,Z,R)),e4($,Z,G);break;case 21:e4($,Z,G);break;case 22:n1=(R=n1)||G.memoizedState!==null,e4($,Z,G),n1=R;break;default:e4($,Z,G)}(G.mode&f0)!==I0&&0<=T0&&0<=P0&&(v1||0.05<A1)&&U4(G,T0,P0,A1,E1),U6(Y),H4(U),E1=B,v1=W}function JM($,Z){if(Z.memoizedState===null&&($=Z.alternate,$!==null&&($=$.memoizedState,$!==null))){$=$.dehydrated;try{G0(Z,zC,$)}catch(G){X1(Z,Z.return,G)}}}function GM($,Z){if(Z.memoizedState===null&&($=Z.alternate,$!==null&&($=$.memoizedState,$!==null&&($=$.dehydrated,$!==null))))try{G0(Z,TC,$)}catch(G){X1(Z,Z.return,G)}}function f_($){switch($.tag){case 31:case 13:case 19:var Z=$.stateNode;return Z===null&&(Z=$.stateNode=new Sw),Z;case 22:return $=$.stateNode,Z=$._retryCache,Z===null&&(Z=$._retryCache=new Sw),Z;default:throw Error("Unexpected Suspense handler tag ("+$.tag+"). This is a bug in React.")}}function nJ($,Z){var G=f_($);Z.forEach(function(Y){if(!G.has(Y)){if(G.add(Y),E4)if(c7!==null&&l7!==null)t$(l7,c7);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var U=c_.bind(null,$,Y);Y.then(U,U)}})}function m5($,Z){var G=Z.deletions;if(G!==null)for(var Y=0;Y<G.length;Y++){var U=$,B=Z,W=G[Y],R=N6(),L=B;$:for(;L!==null;){switch(L.tag){case 27:if(r8(L.type)){o1=L.stateNode,p5=!1;break $}break;case 5:o1=L.stateNode,p5=!1;break $;case 3:case 4:o1=L.stateNode.containerInfo,p5=!0;break $}L=L.return}if(o1===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");QM(U,B,W),o1=null,p5=!1,(W.mode&f0)!==I0&&0<=T0&&0<=P0&&0.05<P0-T0&&N4(W,T0,P0,"Unmount"),U6(R),U=W,B=U.alternate,B!==null&&(B.return=null),U.return=null}if(Z.subtreeFlags&13886)for(Z=Z.child;Z!==null;)XM(Z,$),Z=Z.sibling}function XM($,Z){var G=N6(),Y=B4(),U=M4(),B=F4(),W=$.alternate,R=$.flags;switch($.tag){case 0:case 11:case 14:case 15:m5(Z,$),d5($),R&4&&(Y7(k5|f6,$,$.return),s$(k5|f6,$),sq($,$.return,z6|f6));break;case 1:if(m5(Z,$),d5($),R&512&&(n1||W===null||z4(W,W.return)),R&64&&H8&&(R=$.updateQueue,R!==null&&(W=R.callbacks,W!==null))){var L=R.shared.hiddenCallbacks;R.shared.hiddenCallbacks=L===null?W:L.concat(W)}break;case 26:if(L=Z4,m5(Z,$),d5($),R&512&&(n1||W===null||z4(W,W.return)),R&4){var _=W!==null?W.memoizedState:null;if(R=$.memoizedState,W===null)if(R===null)if($.stateNode===null){$:{R=$.type,W=$.memoizedProps,L=L.ownerDocument||L;Z:switch(R){case"title":if(_=L.getElementsByTagName("title")[0],!_||_[KZ]||_[F5]||_.namespaceURI===P7||_.hasAttribute("itemprop"))_=L.createElement(R),L.head.insertBefore(_,L.querySelector("head > title"));M5(_,R,W),_[F5]=$,z0(_),R=_;break $;case"link":var k=wF("link","href",L).get(R+(W.href||""));if(k){for(var f=0;f<k.length;f++)if(_=k[f],_.getAttribute("href")===(W.href==null||W.href===""?null:W.href)&&_.getAttribute("rel")===(W.rel==null?null:W.rel)&&_.getAttribute("title")===(W.title==null?null:W.title)&&_.getAttribute("crossorigin")===(W.crossOrigin==null?null:W.crossOrigin)){k.splice(f,1);break Z}}_=L.createElement(R),M5(_,R,W),L.head.appendChild(_);break;case"meta":if(k=wF("meta","content",L).get(R+(W.content||""))){for(f=0;f<k.length;f++)if(_=k[f],B1(W.content,"content"),_.getAttribute("content")===(W.content==null?null:""+W.content)&&_.getAttribute("name")===(W.name==null?null:W.name)&&_.getAttribute("property")===(W.property==null?null:W.property)&&_.getAttribute("http-equiv")===(W.httpEquiv==null?null:W.httpEquiv)&&_.getAttribute("charset")===(W.charSet==null?null:W.charSet)){k.splice(f,1);break Z}}_=L.createElement(R),M5(_,R,W),L.head.appendChild(_);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+R+'". This is a bug in React.')}_[F5]=$,z0(_),R=_}$.stateNode=R}else RF(L,$.type,$.stateNode);else $.stateNode=WF(L,R,$.memoizedProps);else _!==R?(_===null?W.stateNode!==null&&(W=W.stateNode,W.parentNode.removeChild(W)):_.count--,R===null?RF(L,$.type,$.stateNode):WF(L,R,$.memoizedProps)):R===null&&$.stateNode!==null&&oq($,$.memoizedProps,W.memoizedProps)}break;case 27:m5(Z,$),d5($),R&512&&(n1||W===null||z4(W,W.return)),W!==null&&R&4&&oq($,$.memoizedProps,W.memoizedProps);break;case 5:if(m5(Z,$),d5($),R&512&&(n1||W===null||z4(W,W.return)),$.flags&32){L=$.stateNode;try{G0($,JF,L)}catch(J0){X1($,$.return,J0)}}R&4&&$.stateNode!=null&&(L=$.memoizedProps,oq($,L,W!==null?W.memoizedProps:L)),R&1024&&(DN=!0,$.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(m5(Z,$),d5($),R&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.");R=$.memoizedProps,W=W!==null?W.memoizedProps:R,L=$.stateNode;try{G0($,XC,L,W,R)}catch(J0){X1($,$.return,J0)}}break;case 3:if(L=a4(),K3=null,_=Z4,Z4=QG(Z.containerInfo),m5(Z,$),Z4=_,d5($),R&4&&W!==null&&W.memoizedState.isDehydrated)try{G0($,RC,Z.containerInfo)}catch(J0){X1($,$.return,J0)}DN&&(DN=!1,qM($)),Z.effectDuration+=LJ(L);break;case 4:R=Z4,Z4=QG($.stateNode.containerInfo),m5(Z,$),d5($),Z4=R;break;case 12:R=a4(),m5(Z,$),d5($),$.stateNode.effectDuration+=y$(R);break;case 31:m5(Z,$),d5($),R&4&&(R=$.updateQueue,R!==null&&($.updateQueue=null,nJ($,R)));break;case 13:m5(Z,$),d5($),$.child.flags&8192&&$.memoizedState!==null!==(W!==null&&W.memoizedState!==null)&&(oG=Y5()),R&4&&(R=$.updateQueue,R!==null&&($.updateQueue=null,nJ($,R)));break;case 22:L=$.memoizedState!==null;var S=W!==null&&W.memoizedState!==null,g=H8,e=n1;if(H8=g||L,n1=e||S,m5(Z,$),n1=e,H8=g,S&&!L&&!g&&!e&&($.mode&f0)!==I0&&0<=T0&&0<=P0&&0.05<P0-T0&&KJ($,T0,P0),d5($),R&8192)$:for(Z=$.stateNode,Z._visibility=L?Z._visibility&~TZ:Z._visibility|TZ,!L||W===null||S||H8||n1||(G9($),($.mode&f0)!==I0&&0<=T0&&0<=P0&&0.05<P0-T0&&N4($,T0,P0,"Disconnect")),W=null,Z=$;;){if(Z.tag===5||Z.tag===26){if(W===null){S=W=Z;try{_=S.stateNode,L?G0(S,UC,_):G0(S,HC,S.stateNode,S.memoizedProps)}catch(J0){X1(S,S.return,J0)}}}else if(Z.tag===6){if(W===null){S=Z;try{k=S.stateNode,L?G0(S,KC,k):G0(S,MC,k,S.memoizedProps)}catch(J0){X1(S,S.return,J0)}}}else if(Z.tag===18){if(W===null){S=Z;try{f=S.stateNode,L?G0(S,NC,f):G0(S,BC,S.stateNode)}catch(J0){X1(S,S.return,J0)}}}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}R&4&&(R=$.updateQueue,R!==null&&(W=R.retryQueue,W!==null&&(R.retryQueue=null,nJ($,W))));break;case 19:m5(Z,$),d5($),R&4&&(R=$.updateQueue,R!==null&&($.updateQueue=null,nJ($,R)));break;case 30:break;case 21:break;default:m5(Z,$),d5($)}($.mode&f0)!==I0&&0<=T0&&0<=P0&&((v1||0.05<A1)&&U4($,T0,P0,A1,E1),$.alternate===null&&$.return!==null&&$.return.alternate!==null&&0.05<P0-T0&&(eH($.return.alternate,$.return)||N4($,T0,P0,"Mount"))),U6(G),H4(Y),E1=U,v1=B}function d5($){var Z=$.flags;if(Z&2){try{G0($,b_,$)}catch(G){X1($,$.return,G)}$.flags&=-3}Z&4096&&($.flags&=-4097)}function qM($){if($.subtreeFlags&1024)for($=$.child;$!==null;){var Z=$;qM(Z),Z.tag===5&&Z.flags&1024&&Z.stateNode.reset(),$=$.sibling}}function T4($,Z){if(Z.subtreeFlags&8772)for(Z=Z.child;Z!==null;)$M($,Z.alternate,Z),Z=Z.sibling}function YM($){var Z=N6(),G=B4(),Y=M4(),U=F4();switch($.tag){case 0:case 11:case 14:case 15:sq($,$.return,z6),G9($);break;case 1:z4($,$.return);var B=$.stateNode;typeof B.componentWillUnmount==="function"&&nH($,$.return,B),G9($);break;case 27:G0($,JZ,$.stateNode);case 26:case 5:z4($,$.return),G9($);break;case 22:$.memoizedState===null&&G9($);break;case 30:G9($);break;default:G9($)}($.mode&f0)!==I0&&0<=T0&&0<=P0&&(v1||0.05<A1)&&U4($,T0,P0,A1,E1),U6(Z),H4(G),E1=Y,v1=U}function G9($){for($=$.child;$!==null;)YM($),$=$.sibling}function NM($,Z,G,Y){var U=N6(),B=B4(),W=M4(),R=F4(),L=G.flags;switch(G.tag){case 0:case 11:case 15:L4($,G,Y),lH(G,z6);break;case 1:if(L4($,G,Y),Z=G.stateNode,typeof Z.componentDidMount==="function"&&G0(G,zN,G,Z),Z=G.updateQueue,Z!==null){$=G.stateNode;try{G0(G,R_,Z,$)}catch(_){X1(G,G.return,_)}}Y&&L&64&&sH(G),n$(G,G.return);break;case 27:tH(G);case 26:case 5:L4($,G,Y),Y&&Z===null&&L&4&&aH(G),n$(G,G.return);break;case 12:if(Y&&L&4){L=a4(),L4($,G,Y),Y=G.stateNode,Y.effectDuration+=y$(L);try{G0(G,oH,G,Z,Q2,Y.effectDuration)}catch(_){X1(G,G.return,_)}}else L4($,G,Y);break;case 31:L4($,G,Y),Y&&L&4&&JM($,G);break;case 13:L4($,G,Y),Y&&L&4&&GM($,G);break;case 22:G.memoizedState===null&&L4($,G,Y),n$(G,G.return);break;case 30:break;default:L4($,G,Y)}(G.mode&f0)!==I0&&0<=T0&&0<=P0&&(v1||0.05<A1)&&U4(G,T0,P0,A1,E1),U6(U),H4(B),E1=W,v1=R}function L4($,Z,G){G=G&&(Z.subtreeFlags&8772)!==0;for(Z=Z.child;Z!==null;)NM($,Z.alternate,Z,G),Z=Z.sibling}function tq($,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&&e2($),G!=null&&f$(G))}function eq($,Z){$=null,Z.alternate!==null&&($=Z.alternate.memoizedState.cache),Z=Z.memoizedState.cache,Z!==$&&(e2(Z),$!=null&&f$($))}function o6($,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;UM($,Z,G,Y,B!==null?B.actualStartTime:U),Z=B}}function UM($,Z,G,Y,U){var B=N6(),W=B4(),R=M4(),L=F4(),_=t8,k=Z.flags;switch(Z.tag){case 0:case 11:case 15:(Z.mode&f0)!==I0&&0<Z.actualStartTime&&(Z.flags&1)!==0&&BJ(Z,Z.actualStartTime,U,Z5,G),o6($,Z,G,Y,U),k&2048&&rH(Z,f5|f6);break;case 1:(Z.mode&f0)!==I0&&0<Z.actualStartTime&&((Z.flags&128)!==0?yX(Z,Z.actualStartTime,U,[]):(Z.flags&1)!==0&&BJ(Z,Z.actualStartTime,U,Z5,G)),o6($,Z,G,Y,U);break;case 3:var f=a4(),S=Z5;Z5=Z.alternate!==null&&Z.alternate.memoizedState.isDehydrated&&(Z.flags&256)===0,o6($,Z,G,Y,U),Z5=S,k&2048&&(G=null,Z.alternate!==null&&(G=Z.alternate.memoizedState.cache),Y=Z.memoizedState.cache,Y!==G&&(e2(Y),G!=null&&f$(G))),$.passiveEffectDuration+=LJ(f);break;case 12:if(k&2048){k=a4(),o6($,Z,G,Y,U),$=Z.stateNode,$.passiveEffectDuration+=y$(k);try{G0(Z,v_,Z,Z.alternate,Q2,$.passiveEffectDuration)}catch(g){X1(Z,Z.return,g)}}else o6($,Z,G,Y,U);break;case 31:k=Z5,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?(Z5=!1,f=f.hydrationErrors,f!==null&&yX(Z,Z.actualStartTime,U,f)):Z5=!0):Z5=!1,o6($,Z,G,Y,U),Z5=k;break;case 13:k=Z5,f=Z.alternate!==null?Z.alternate.memoizedState:null,S=Z.memoizedState,f===null||f.dehydrated===null||S!==null&&S.dehydrated!==null?Z5=!1:(S=Z.deletions,S!==null&&0<S.length&&S[0].tag===18?(Z5=!1,f=f.hydrationErrors,f!==null&&yX(Z,Z.actualStartTime,U,f)):Z5=!0),o6($,Z,G,Y,U),Z5=k;break;case 23:break;case 22:S=Z.stateNode,f=Z.alternate,Z.memoizedState!==null?S._visibility&Q8?o6($,Z,G,Y,U):o$($,Z,G,Y,U):S._visibility&Q8?o6($,Z,G,Y,U):(S._visibility|=Q8,N7($,Z,G,Y,(Z.subtreeFlags&10256)!==0||Z.actualDuration!==0&&(Z.alternate===null||Z.alternate.child!==Z.child),U),(Z.mode&f0)===I0||Z5||($=Z.actualStartTime,0<=$&&0.05<U-$&&KJ(Z,$,U),0<=T0&&0<=P0&&0.05<P0-T0&&KJ(Z,T0,P0))),k&2048&&tq(f,Z);break;case 24:o6($,Z,G,Y,U),k&2048&&eq(Z.alternate,Z);break;default:o6($,Z,G,Y,U)}if((Z.mode&f0)!==I0){if($=!Z5&&Z.alternate===null&&Z.return!==null&&Z.return.alternate!==null)G=Z.actualStartTime,0<=G&&0.05<U-G&&N4(Z,G,U,"Mount");0<=T0&&0<=P0&&((v1||0.05<A1)&&U4(Z,T0,P0,A1,E1),$&&0.05<P0-T0&&N4(Z,T0,P0,"Mount"))}U6(B),H4(W),E1=R,v1=L,t8=_}function N7($,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;KM($,Z,G,Y,U,W!==null?W.actualStartTime:B),Z=W}}function KM($,Z,G,Y,U,B){var W=N6(),R=B4(),L=M4(),_=F4(),k=t8;U&&(Z.mode&f0)!==I0&&0<Z.actualStartTime&&(Z.flags&1)!==0&&BJ(Z,Z.actualStartTime,B,Z5,G);var f=Z.flags;switch(Z.tag){case 0:case 11:case 15:N7($,Z,G,Y,U,B),rH(Z,f5);break;case 23:break;case 22:var S=Z.stateNode;Z.memoizedState!==null?S._visibility&Q8?N7($,Z,G,Y,U,B):o$($,Z,G,Y,B):(S._visibility|=Q8,N7($,Z,G,Y,U,B)),U&&f&2048&&tq(Z.alternate,Z);break;case 24:N7($,Z,G,Y,U,B),U&&f&2048&&eq(Z.alternate,Z);break;default:N7($,Z,G,Y,U,B)}(Z.mode&f0)!==I0&&0<=T0&&0<=P0&&(v1||0.05<A1)&&U4(Z,T0,P0,A1,E1),U6(W),H4(R),E1=L,v1=_,t8=k}function o$($,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=$,R=G,L=Y,_=Z!==null?Z.actualStartTime:U,k=t8;(B.mode&f0)!==I0&&0<B.actualStartTime&&(B.flags&1)!==0&&BJ(B,B.actualStartTime,_,Z5,R);var f=B.flags;switch(B.tag){case 22:o$(W,B,R,L,_),f&2048&&tq(B.alternate,B);break;case 24:o$(W,B,R,L,_),f&2048&&eq(B.alternate,B);break;default:o$(W,B,R,L,_)}t8=k,B=Z}}function U7($,Z,G){if($.subtreeFlags&uZ)for($=$.child;$!==null;)BM($,Z,G),$=$.sibling}function BM($,Z,G){switch($.tag){case 26:U7($,Z,G),$.flags&uZ&&$.memoizedState!==null&&CC(G,Z4,$.memoizedState,$.memoizedProps);break;case 5:U7($,Z,G);break;case 3:case 4:var Y=Z4;Z4=QG($.stateNode.containerInfo),U7($,Z,G),Z4=Y;break;case 22:$.memoizedState===null&&(Y=$.alternate,Y!==null&&Y.memoizedState!==null?(Y=uZ,uZ=16777216,U7($,Z,G),uZ=Y):U7($,Z,G));break;default:U7($,Z,G)}}function HM($){var Z=$.alternate;if(Z!==null&&($=Z.child,$!==null)){Z.child=null;do Z=$.sibling,$.sibling=null,$=Z;while($!==null)}}function a$($){var Z=$.deletions;if(($.flags&16)!==0){if(Z!==null)for(var G=0;G<Z.length;G++){var Y=Z[G],U=N6();U5=Y,WM(Y,$),(Y.mode&f0)!==I0&&0<=T0&&0<=P0&&0.05<P0-T0&&N4(Y,T0,P0,"Unmount"),U6(U)}HM($)}if($.subtreeFlags&10256)for($=$.child;$!==null;)MM($),$=$.sibling}function MM($){var Z=N6(),G=B4(),Y=M4(),U=F4();switch($.tag){case 0:case 11:case 15:a$($),$.flags&2048&&nq($,$.return,f5|f6);break;case 3:var B=a4();a$($),$.stateNode.passiveEffectDuration+=LJ(B);break;case 12:B=a4(),a$($),$.stateNode.passiveEffectDuration+=y$(B);break;case 22:B=$.stateNode,$.memoizedState!==null&&B._visibility&Q8&&($.return===null||$.return.tag!==13)?(B._visibility&=~Q8,oJ($),($.mode&f0)!==I0&&0<=T0&&0<=P0&&0.05<P0-T0&&N4($,T0,P0,"Disconnect")):a$($);break;default:a$($)}($.mode&f0)!==I0&&0<=T0&&0<=P0&&(v1||0.05<A1)&&U4($,T0,P0,A1,E1),U6(Z),H4(G),v1=U,E1=Y}function oJ($){var Z=$.deletions;if(($.flags&16)!==0){if(Z!==null)for(var G=0;G<Z.length;G++){var Y=Z[G],U=N6();U5=Y,WM(Y,$),(Y.mode&f0)!==I0&&0<=T0&&0<=P0&&0.05<P0-T0&&N4(Y,T0,P0,"Unmount"),U6(U)}HM($)}for($=$.child;$!==null;)FM($),$=$.sibling}function FM($){var Z=N6(),G=B4(),Y=M4(),U=F4();switch($.tag){case 0:case 11:case 15:nq($,$.return,f5),oJ($);break;case 22:var B=$.stateNode;B._visibility&Q8&&(B._visibility&=~Q8,oJ($));break;default:oJ($)}($.mode&f0)!==I0&&0<=T0&&0<=P0&&(v1||0.05<A1)&&U4($,T0,P0,A1,E1),U6(Z),H4(G),v1=U,E1=Y}function WM($,Z){for(;U5!==null;){var G=U5,Y=G,U=Z,B=N6(),W=B4(),R=M4(),L=F4();switch(Y.tag){case 0:case 11:case 15:nq(Y,U,f5);break;case 23:case 22:Y.memoizedState!==null&&Y.memoizedState.cachePool!==null&&(U=Y.memoizedState.cachePool.pool,U!=null&&e2(U));break;case 24:f$(Y.memoizedState.cache)}if((Y.mode&f0)!==I0&&0<=T0&&0<=P0&&(v1||0.05<A1)&&U4(Y,T0,P0,A1,E1),U6(B),H4(W),v1=L,E1=R,Y=G.child,Y!==null)Y.return=G,U5=Y;else $:for(G=$;U5!==null;){if(Y=U5,B=Y.sibling,W=Y.return,ZM(Y),Y===G){U5=null;break $}if(B!==null){B.return=W,U5=B;break $}U5=W}}}function y_(){JV.forEach(function($){return $()})}function wM(){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 B6($){if((i0&Q5)!==K5&&g0!==0)return g0&-g0;var Z=x.T;return Z!==null?(Z._updatedFibers||(Z._updatedFibers=new Set),Z._updatedFibers.add($),YY()):y()}function RM(){if(l5===0)if((g0&536870912)===0||s0){var $=FG;FG<<=1,(FG&3932160)===0&&(FG=262144),l5=$}else l5=536870912;return $=R6.current,$!==null&&($.flags|=32),l5}function D1($,Z,G){if(n7&&console.error("useInsertionEffect must not schedule updates."),dN&&(eG=!0),$===W1&&(U1===T9||U1===L9)||$.cancelPendingCommit!==null)B7($,0),c8($,g0,l5,!1);if(v8($,G),(i0&Q5)!==K5&&$===W1){if(V4)switch(Z.tag){case 0:case 11:case 15:$=h0&&d(h0)||"Unknown",cw.has($)||(cw.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:pw||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),pw=!0)}}else E4&&I$($,Z,G),r_(Z),$===W1&&((i0&Q5)===K5&&(B2|=G),S1===N2&&c8($,g0,l5,!1)),P4($)}function zM($,Z,G){if((i0&(Q5|T6))!==K5)throw Error("Should not already be working.");if(g0!==0&&h0!==null){var Y=h0,U=Y5();switch(yW){case dZ:case T9:var B=VZ;L1&&((Y=Y._debugTask)?Y.run(console.timeStamp.bind(console,"Suspended",B,U,E6,void 0,"primary-light")):console.timeStamp("Suspended",B,U,E6,void 0,"primary-light"));break;case L9:B=VZ,L1&&((Y=Y._debugTask)?Y.run(console.timeStamp.bind(console,"Action",B,U,E6,void 0,"primary-light")):console.timeStamp("Action",B,U,E6,void 0,"primary-light"));break;default:L1&&(Y=U-VZ,3>Y||console.timeStamp("Blocked",VZ,U,E6,void 0,5>Y?"primary-light":10>Y?"primary":100>Y?"primary-dark":"error"))}}B=(G=!G&&(Z&127)===0&&(Z&$.expiredLanes)===0||x2($,Z))?h_($,Z):ZY($,Z,!0);var W=G;do{if(B===M8){r7&&!G&&c8($,Z,0,!1),Z=U1,VZ=l1(),yW=Z;break}else{if(Y=Y5(),U=$.current.alternate,W&&!g_(U)){q6(Z),U=N5,B=Y,!L1||B<=U||(h1?h1.run(console.timeStamp.bind(console,"Teared Render",U,B,l0,p0,"error")):console.timeStamp("Teared Render",U,B,l0,p0,"error")),X9(Z,Y),B=ZY($,Z,!1),W=!1;continue}if(B===z9){if(W=Z,$.errorRecoveryDisabledLanes&W)var R=0;else R=$.pendingLanes&-536870913,R=R!==0?R:R&536870912?536870912:0;if(R!==0){q6(Z),gX(N5,Y,Z,h1),X9(Z,Y),Z=R;$:{Y=$,B=W,W=cZ;var L=Y.current.memoizedState.isDehydrated;if(L&&(B7(Y,R).flags|=256),R=ZY(Y,R,!1),R!==z9){if(kN&&!L){Y.errorRecoveryDisabledLanes|=B,B2|=B,B=N2;break $}Y=y5,y5=W,Y!==null&&(y5===null?y5=Y:y5.push.apply(y5,Y))}B=R}if(W=!1,B!==z9)continue;else Y=Y5()}}if(B===mZ){q6(Z),gX(N5,Y,Z,h1),X9(Z,Y),B7($,0),c8($,Z,0,!0);break}$:{switch(G=$,B){case M8:case mZ:throw Error("Root did not complete. This is a bug in React.");case N2:if((Z&4194048)!==Z)break;case lG:q6(Z),zB(N5,Y,Z,h1),X9(Z,Y),U=Z,(U&127)!==0?jG=Y:(U&4194048)!==0&&(DG=Y),c8(G,Z,l5,!U2);break $;case z9:y5=null;break;case cG:case jw:break;default:throw Error("Unknown root exit status.")}if(x.actQueue!==null)QY(G,U,Z,y5,lZ,nG,l5,B2,P9,B,null,null,N5,Y);else{if((Z&62914560)===Z&&(W=oG+bw-Y5(),10<W)){if(c8(G,Z,l5,!U2),u2(G,0,!0)!==0)break $;Q4=Z,G.timeoutHandle=tw(TM.bind(null,G,U,y5,lZ,nG,Z,l5,B2,P9,U2,B,"Throttled",N5,Y),W);break $}TM(G,U,y5,lZ,nG,Z,l5,B2,P9,U2,B,null,N5,Y)}}}break}while(1);P4($)}function TM($,Z,G,Y,U,B,W,R,L,_,k,f,S,g){$.timeoutHandle=O9;var e=Z.subtreeFlags,J0=null;if(e&8192||(e&16785408)===16785408){if(J0={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:r4},BM(Z,B,J0),e=(B&62914560)===B?oG-Y5():(B&4194048)===B?vw-Y5():0,e=IC(J0,e),e!==null){Q4=B,$.cancelPendingCommit=e(QY.bind(null,$,Z,B,G,Y,U,W,R,L,k,J0,J0.waitingForViewTransition?"Waiting for the previous Animation":0<J0.count?0<J0.imgCount?"Suspended on CSS and Images":"Suspended on CSS":J0.imgCount===1?"Suspended on an Image":0<J0.imgCount?"Suspended on Images":null,S,g)),c8($,B,W,!_);return}}QY($,Z,B,G,Y,U,W,R,L,k,J0,f,S,g)}function g_($){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(!v5(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 c8($,Z,G,Y){Z&=~fN,Z&=~B2,$.suspendedLanes|=Z,$.pingedLanes&=~Z,Y&&($.warmLanes|=Z),Y=$.expirationTimes;for(var U=Z;0<U;){var B=31-S5(U),W=1<<B;Y[B]=-1,U&=~W}G!==0&&m2($,G,Z)}function K7(){return(i0&(Q5|T6))===K5?(e$(0,!1),!1):!0}function $Y(){if(h0!==null){if(U1===c5)var $=h0.return;else $=h0,RJ(),Bq($),g7=null,kZ=0,$=h0;for(;$!==null;)cH($.alternate,$),$=$.return;h0=null}}function X9($,Z){($&127)!==0&&(J2=Z),($&4194048)!==0&&(v4=Z),($&62914560)!==0&&(kW=Z),($&2080374784)!==0&&(fW=Z)}function B7($,Z){L1&&(console.timeStamp("Blocking Track",0.003,0.003,"Blocking",p0,"primary-light"),console.timeStamp("Transition Track",0.003,0.003,"Transition",p0,"primary-light"),console.timeStamp("Suspense Track",0.003,0.003,"Suspense",p0,"primary-light"),console.timeStamp("Idle Track",0.003,0.003,"Idle",p0,"primary-light"));var G=N5;if(N5=l1(),g0!==0&&0<G){if(q6(g0),S1===cG||S1===N2)zB(G,N5,Z,h1);else{var Y=N5,U=h1;if(L1&&!(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,l0,p0,B)):console.timeStamp(W,G,Y,l0,p0,B)}}X9(g0,N5)}if(G=h1,h1=null,(Z&127)!==0){h1=_Z,U=0<=D4&&D4<J2?J2:D4,Y=0<=K9&&K9<J2?J2:K9,B=0<=Y?Y:0<=U?U:N5,0<=jG?(q6(2),TB(jG,B,Z,G)):(vG&127)!==0&&(q6(2),b$(J2,B,N8)),G=U;var R=Y,L=CZ,_=0<k7,k=G2===PZ,f=G2===SG;if(U=N5,Y=_Z,B=MN,W=FN,L1){if(l0="Blocking",0<G?G>U&&(G=U):G=U,0<R?R>G&&(R=G):R=G,L!==null&&G>R){var S=_?"secondary-light":"warning";Y?Y.run(console.timeStamp.bind(console,_?"Consecutive":"Event: "+L,R,G,l0,p0,S)):console.timeStamp(_?"Consecutive":"Event: "+L,R,G,l0,p0,S)}U>G&&(R=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:l0,trackGroup:p0,color:R}}},Y?Y.run(performance.measure.bind(performance,k,G)):performance.measure(k,G))}D4=-1.1,G2=0,FN=MN=null,jG=-1.1,k7=K9,K9=-1.1,J2=l1()}if((Z&4194048)!==0&&(h1=IZ,U=0<=Y8&&Y8<v4?v4:Y8,G=0<=b6&&b6<v4?v4:b6,Y=0<=X2&&X2<v4?v4:X2,B=0<=Y?Y:0<=G?G:N5,0<=DG?(q6(256),TB(DG,B,Z,h1)):(vG&4194048)!==0&&(q6(256),b$(v4,B,N8)),f=Y,R=B9,L=0<q2,_=WN===SG,B=N5,Y=IZ,W=vW,k=bW,L1&&(l0="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&&R!==null&&(S=L?"secondary-light":"warning",Y?Y.run(console.timeStamp.bind(console,L?"Consecutive":"Event: "+R,f,U,l0,p0,S)):console.timeStamp(L?"Consecutive":"Event: "+R,f,U,l0,p0,S)),G>U&&(Y?Y.run(console.timeStamp.bind(console,"Action",U,G,l0,p0,"primary-dark")):console.timeStamp("Action",U,G,l0,p0,"primary-dark")),B>G&&(U=_?"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:l0,trackGroup:p0,color:"primary-light"}}},Y?Y.run(performance.measure.bind(performance,U,G)):performance.measure(U,G))),b6=Y8=-1.1,WN=0,DG=-1.1,q2=X2,X2=-1.1,v4=l1()),(Z&62914560)!==0&&(vG&62914560)!==0&&(q6(4194304),b$(kW,N5,N8)),(Z&2080374784)!==0&&(vG&2080374784)!==0&&(q6(268435456),b$(fW,N5,N8)),G=$.timeoutHandle,G!==O9&&($.timeoutHandle=O9,wV(G)),G=$.cancelPendingCommit,G!==null&&($.cancelPendingCommit=null,G()),Q4=0,$Y(),W1=$,h0=G=s4($.current,null),g0=Z,U1=c5,L6=null,U2=!1,r7=x2($,Z),kN=!1,S1=M8,P9=l5=fN=B2=K2=0,y5=cZ=null,nG=!1,(Z&8)!==0&&(Z|=Z&32),Y=$.entangledLanes,Y!==0)for($=$.entanglements,Y&=Z;0<Y;)U=31-S5(Y),B=1<<U,Z|=$[U],Y&=~B;return k4=Z,HJ(),$=OW(),1000<$-VW&&(x.recentlyCreatedOwnerStacks=0,VW=$),e6.discardPendingWarnings(),G}function LM($,Z){V0=null,x.H=hZ,x.getCurrentStack=null,V4=!1,F6=null,Z===y7||Z===yG?(Z=mB(),U1=dZ):Z===TN?(Z=mB(),U1=Dw):U1=Z===SN?bN:Z!==null&&typeof Z==="object"&&typeof Z.then==="function"?pZ:rG,L6=Z;var G=h0;G===null?(S1=mZ,dJ($,Y6(Z,$.current))):G.mode&f0&&tX(G)}function PM(){var $=R6.current;return $===null?!0:(g0&4194048)===g0?k6===null?!0:!1:(g0&62914560)===g0||(g0&536870912)!==0?$===k6:!1}function _M(){var $=x.H;return x.H=hZ,$===null?hZ:$}function CM(){var $=x.A;return x.A=QV,$}function aJ($){h1===null&&(h1=$._debugTask==null?null:$._debugTask)}function iJ(){S1=N2,U2||(g0&4194048)!==g0&&R6.current!==null||(r7=!0),(K2&134217727)===0&&(B2&134217727)===0||W1===null||c8(W1,g0,l5,!1)}function ZY($,Z,G){var Y=i0;i0|=Q5;var U=_M(),B=CM();if(W1!==$||g0!==Z){if(E4){var W=$.memoizedUpdaters;0<W.size&&(t$($,g0),W.clear()),b8($,Z)}lZ=null,B7($,Z)}Z=!1,W=S1;$:do try{if(U1!==c5&&h0!==null){var R=h0,L=L6;switch(U1){case bN:$Y(),W=lG;break $;case dZ:case T9:case L9:case pZ:R6.current===null&&(Z=!0);var _=U1;if(U1=c5,L6=null,H7($,R,L,_),G&&r7){W=M8;break $}break;default:_=U1,U1=c5,L6=null,H7($,R,L,_)}}IM(),W=S1;break}catch(k){LM($,k)}while(1);return Z&&$.shellSuspendCounter++,RJ(),i0=Y,x.H=U,x.A=B,h0===null&&(W1=null,g0=0,HJ()),W}function IM(){for(;h0!==null;)VM(h0)}function h_($,Z){var G=i0;i0|=Q5;var Y=_M(),U=CM();if(W1!==$||g0!==Z){if(E4){var B=$.memoizedUpdaters;0<B.size&&(t$($,g0),B.clear()),b8($,Z)}lZ=null,aG=Y5()+kw,B7($,Z)}else r7=x2($,Z);$:do try{if(U1!==c5&&h0!==null)Z:switch(Z=h0,B=L6,U1){case rG:U1=c5,L6=null,H7($,Z,B,rG);break;case T9:case L9:if(uB(B)){U1=c5,L6=null,OM(Z);break}Z=function(){U1!==T9&&U1!==L9||W1!==$||(U1=sG),P4($)},B.then(Z,Z);break $;case dZ:U1=sG;break $;case Dw:U1=vN;break $;case sG:uB(B)?(U1=c5,L6=null,OM(Z)):(U1=c5,L6=null,H7($,Z,B,sG));break;case vN:var W=null;switch(h0.tag){case 26:W=h0.memoizedState;case 5:case 27:var R=h0;if(W?zF(W):R.stateNode.complete){U1=c5,L6=null;var L=R.sibling;if(L!==null)h0=L;else{var _=R.return;_!==null?(h0=_,tJ(_)):h0=null}break Z}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}U1=c5,L6=null,H7($,Z,B,vN);break;case pZ:U1=c5,L6=null,H7($,Z,B,pZ);break;case bN:$Y(),S1=lG;break $;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}x.actQueue!==null?IM():u_();break}catch(k){LM($,k)}while(1);if(RJ(),x.H=Y,x.A=U,i0=G,h0!==null)return M8;return W1=null,g0=0,HJ(),S1}function u_(){for(;h0!==null&&!gC();)VM(h0)}function VM($){var Z=$.alternate;($.mode&f0)!==I0?(iX($),Z=G0($,lq,Z,$,k4),tX($)):Z=G0($,lq,Z,$,k4),$.memoizedProps=$.pendingProps,Z===null?tJ($):h0=Z}function OM($){var Z=G0($,x_,$);$.memoizedProps=$.pendingProps,Z===null?tJ($):h0=Z}function x_($){var Z=$.alternate,G=($.mode&f0)!==I0;switch(G&&iX($),$.tag){case 15:case 0:Z=gH(Z,$,$.pendingProps,$.type,void 0,g0);break;case 11:Z=gH(Z,$,$.pendingProps,$.type.render,$.ref,g0);break;case 5:Bq($);default:cH(Z,$),$=h0=VB($,k4),Z=lq(Z,$,k4)}return G&&tX($),Z}function H7($,Z,G,Y){RJ(),Bq(Z),g7=null,kZ=0;var U=Z.return;try{if(I_($,U,Z,G,g0)){S1=mZ,dJ($,Y6(G,$.current)),h0=null;return}}catch(B){if(U!==null)throw h0=U,B;S1=mZ,dJ($,Y6(G,$.current)),h0=null;return}if(Z.flags&32768){if(s0||Y===rG)$=!0;else if(r7||(g0&536870912)!==0)$=!1;else if(U2=$=!0,Y===T9||Y===L9||Y===dZ||Y===pZ)Y=R6.current,Y!==null&&Y.tag===13&&(Y.flags|=16384);EM(Z,$)}else tJ(Z)}function tJ($){var Z=$;do{if((Z.flags&32768)!==0){EM(Z,U2);return}var G=Z.alternate;if($=Z.return,iX(Z),G=G0(Z,E_,G,Z,k4),(Z.mode&f0)!==I0&&kB(Z),G!==null){h0=G;return}if(Z=Z.sibling,Z!==null){h0=Z;return}h0=Z=$}while(Z!==null);S1===M8&&(S1=jw)}function EM($,Z){do{var G=A_($.alternate,$);if(G!==null){G.flags&=32767,h0=G;return}if(($.mode&f0)!==I0){kB($),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)){h0=$;return}h0=$=G}while($!==null);S1=lG,h0=null}function QY($,Z,G,Y,U,B,W,R,L,_,k,f,S,g){$.cancelPendingCommit=null;do i$();while(a1!==M2);if(e6.flushLegacyContextWarning(),e6.flushPendingUnsafeLifecycleWarnings(),(i0&(Q5|T6))!==K5)throw Error("Should not already be working.");if(q6(G),_===z9?gX(S,g,G,h1):Y!==null?B_(S,g,G,Y,Z!==null&&Z.alternate!==null&&Z.alternate.memoizedState.isDehydrated&&(Z.flags&256)!==0,h1):K_(S,g,G,h1),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|=NN,ZJ($,G,B,W,R,L),$===W1&&(h0=W1=null,g0=0),s7=Z,F2=$,Q4=G,hN=B,xN=U,xw=Y,uN=g,mw=f,J4=iG,dw=null,Z.actualDuration!==0||(Z.subtreeFlags&10256)!==0||(Z.flags&10256)!==0?($.callbackNode=null,$.callbackPriority=0,l_(z7,function(){return iZ=window.event,J4===iG&&(J4=gN),vM(),null})):($.callbackNode=null,$.callbackPriority=0),q8=null,Q2=l1(),f!==null&&H_(g,Q2,f,h1),Y=(Z.flags&13878)!==0,(Z.subtreeFlags&13878)!==0||Y){Y=x.T,x.T=null,U=q1.p,q1.p=W6,W=i0,i0|=T6;try{k_($,Z,G)}finally{i0=W,q1.p=U,x.T=Y}}a1=yw,AM(),SM(),jM()}}function AM(){if(a1===yw){a1=M2;var $=F2,Z=s7,G=Q4,Y=(Z.flags&13878)!==0;if((Z.subtreeFlags&13878)!==0||Y){Y=x.T,x.T=null;var U=q1.p;q1.p=W6;var B=i0;i0|=T6;try{c7=G,l7=$,PJ(),XM(Z,$),l7=c7=null,G=iN;var W=WB($.containerInfo),R=G.focusedElem,L=G.selectionRange;if(W!==R&&R&&R.ownerDocument&&FB(R.ownerDocument.documentElement,R)){if(L!==null&&kX(R)){var{start:_,end:k}=L;if(k===void 0&&(k=_),"selectionStart"in R)R.selectionStart=_,R.selectionEnd=Math.min(k,R.value.length);else{var f=R.ownerDocument||document,S=f&&f.defaultView||window;if(S.getSelection){var g=S.getSelection(),e=R.textContent.length,J0=Math.min(L.start,e),z1=L.end===void 0?J0:Math.min(L.end,e);!g.extend&&J0>z1&&(W=z1,z1=J0,J0=W);var o0=MB(R,J0),E=MB(R,z1);if(o0&&E&&(g.rangeCount!==1||g.anchorNode!==o0.node||g.anchorOffset!==o0.offset||g.focusNode!==E.node||g.focusOffset!==E.offset)){var j=f.createRange();j.setStart(o0.node,o0.offset),g.removeAllRanges(),J0>z1?(g.addRange(j),g.extend(E.node,E.offset)):(j.setEnd(E.node,E.offset),g.addRange(j))}}}}f=[];for(g=R;g=g.parentNode;)g.nodeType===1&&f.push({element:g,left:g.scrollLeft,top:g.scrollTop});typeof R.focus==="function"&&R.focus();for(R=0;R<f.length;R++){var b=f[R];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}M3=!!aN,iN=aN=null}finally{i0=B,q1.p=U,x.T=Y}}$.current=Z,a1=gw}}function SM(){if(a1===gw){a1=M2;var $=dw;if($!==null){Q2=l1();var Z=X8,G=Q2;!L1||G<=Z||(N8?N8.run(console.timeStamp.bind(console,$,Z,G,l0,p0,"secondary-light")):console.timeStamp($,Z,G,l0,p0,"secondary-light"))}$=F2,Z=s7,G=Q4;var Y=(Z.flags&8772)!==0;if((Z.subtreeFlags&8772)!==0||Y){Y=x.T,x.T=null;var U=q1.p;q1.p=W6;var B=i0;i0|=T6;try{c7=G,l7=$,PJ(),$M($,Z.alternate,Z),l7=c7=null}finally{i0=B,q1.p=U,x.T=Y}}$=uN,Z=mw,X8=l1(),$=Z===null?$:Q2,Z=X8,G=J4===yN,Y=h1,q8!==null?LB($,Z,q8,!1,Y):!L1||Z<=$||(Y?Y.run(console.timeStamp.bind(console,G?"Commit Interrupted View Transition":"Commit",$,Z,l0,p0,G?"error":"secondary-dark")):console.timeStamp(G?"Commit Interrupted View Transition":"Commit",$,Z,l0,p0,G?"error":"secondary-dark")),a1=hw}}function jM(){if(a1===uw||a1===hw){if(a1===uw){var $=X8;X8=l1();var Z=X8,G=J4===yN;!L1||Z<=$||(N8?N8.run(console.timeStamp.bind(console,G?"Interrupted View Transition":"Starting Animation",$,Z,l0,p0,G?"error":"secondary-light")):console.timeStamp(G?"Interrupted View Transition":"Starting Animation",$,Z,l0,p0,G?" error":"secondary-light")),J4!==yN&&(J4=fw)}a1=M2,hC(),$=F2;var Y=s7;Z=Q4,G=xw;var U=Y.actualDuration!==0||(Y.subtreeFlags&10256)!==0||(Y.flags&10256)!==0;U?a1=tG:(a1=M2,s7=F2=null,DM($,$.pendingLanes),_9=0,sZ=null);var B=$.pendingLanes;if(B===0&&(H2=null),U||yM($),B=C(Z),Y=Y.stateNode,C5&&typeof C5.onCommitFiberRoot==="function")try{var W=(Y.current.flags&128)===128;switch(B){case W6:var R=xY;break;case i6:R=mY;break;case A4:R=z7;break;case wG:R=dY;break;default:R=z7}C5.onCommitFiberRoot(T7,Y,R,W)}catch(f){O4||(O4=!0,console.error("React instrumentation encountered an error: %o",f))}if(E4&&$.memoizedUpdaters.clear(),y_(),G!==null){W=x.T,R=q1.p,q1.p=W6,x.T=null;try{var L=$.onRecoverableError;for(Y=0;Y<G.length;Y++){var _=G[Y],k=m_(_.stack);G0(_.source,L,_.value,k)}}finally{x.T=W,q1.p=R}}(Q4&3)!==0&&i$(),P4($),B=$.pendingLanes,(Z&261930)!==0&&(B&42)!==0?(kG=!0,$===mN?rZ++:(rZ=0,mN=$)):rZ=0,U||X9(Z,X8),e$(0,!1)}}function m_($){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 DM($,Z){($.pooledCacheLanes&=Z)===0&&(Z=$.pooledCache,Z!=null&&($.pooledCache=null,f$(Z)))}function i$(){return AM(),SM(),jM(),vM()}function vM(){if(a1!==tG)return!1;var $=F2,Z=hN;hN=0;var G=C(Q4),Y=A4===0||A4>G?A4:G;G=x.T;var U=q1.p;try{q1.p=Y,x.T=null;var B=xN;xN=null,Y=F2;var W=Q4;if(a1=M2,s7=F2=null,Q4=0,(i0&(Q5|T6))!==K5)throw Error("Cannot flush passive effects while already rendering.");q6(W),dN=!0,eG=!1;var R=0;if(q8=null,R=Y5(),J4===fw)b$(X8,R,N8);else{var L=X8,_=R,k=J4===gN;!L1||_<=L||(h1?h1.run(console.timeStamp.bind(console,k?"Waiting for Paint":"Waiting",L,_,l0,p0,"secondary-light")):console.timeStamp(k?"Waiting for Paint":"Waiting",L,_,l0,p0,"secondary-light"))}L=i0,i0|=T6;var f=Y.current;PJ(),MM(f);var S=Y.current;f=uN,PJ(),UM(Y,S,W,B,f),yM(Y),i0=L;var g=Y5();if(S=R,f=h1,q8!==null?LB(S,g,q8,!0,f):!L1||g<=S||(f?f.run(console.timeStamp.bind(console,"Remaining Effects",S,g,l0,p0,"secondary-dark")):console.timeStamp("Remaining Effects",S,g,l0,p0,"secondary-dark")),X9(W,g),e$(0,!1),eG?Y===sZ?_9++:(_9=0,sZ=Y):_9=0,eG=dN=!1,C5&&typeof C5.onPostCommitFiberRoot==="function")try{C5.onPostCommitFiberRoot(T7,Y)}catch(J0){O4||(O4=!0,console.error("React instrumentation encountered an error: %o",J0))}var e=Y.current.stateNode;return e.effectDuration=0,e.passiveEffectDuration=0,!0}finally{q1.p=U,x.T=G,DM($,Z)}}function bM($,Z,G){Z=Y6(G,Z),fB(Z),Z=kq($.stateNode,Z,2),$=x8($,Z,2),$!==null&&(v8($,2),P4($))}function X1($,Z,G){if(n7=!1,$.tag===3)bM($,$,G);else{for(;Z!==null;){if(Z.tag===3){bM(Z,$,G);return}if(Z.tag===1){var Y=Z.stateNode;if(typeof Z.type.getDerivedStateFromError==="function"||typeof Y.componentDidCatch==="function"&&(H2===null||!H2.has(Y))){$=Y6(G,$),fB($),G=fq(2),Y=x8(Z,G,2),Y!==null&&(yq(G,Y,Z,$),v8(Y,2),P4(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`,J)}}function $Y($,Z,J){var Y=$.pingCache;if(Y===null){Y=$.pingCache=new tV;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(J)||(DN=!0,U.add(J),Y=y_.bind(null,$,Z,J),I4&&s$($,J),Z.then(Y,Y))}function y_($,Z,J){var Y=$.pingCache;Y!==null&&Y.delete(Z),$.pingedLanes|=$.suspendedLanes&J,$.warmLanes&=~J,(J&127)!==0?0>j4&&(Z2=j4=p1(),RZ=CG("Promise Resolved"),Q2=VG):(J&4194048)!==0&&0>S6&&(S4=S6=p1(),TZ=CG("Promise Resolved"),HN=VG),HM()&&x.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
157
+ %s`,G)}}function JY($,Z,G){var Y=$.pingCache;if(Y===null){Y=$.pingCache=new GV;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(G)||(kN=!0,U.add(G),Y=d_.bind(null,$,Z,G),E4&&t$($,G),Z.then(Y,Y))}function d_($,Z,G){var Y=$.pingCache;Y!==null&&Y.delete(Z),$.pingedLanes|=$.suspendedLanes&G,$.warmLanes&=~G,(G&127)!==0?0>D4&&(J2=D4=l1(),_Z=AG("Promise Resolved"),G2=SG):(G&4194048)!==0&&0>b6&&(v4=b6=l1(),IZ=AG("Promise Resolved"),WN=SG),wM()&&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`),F1===$&&(y0&J)===J&&(A1===q2||A1===uG&&(y0&62914560)===y0&&X5()-cG<jw?(a0&e1)===N5&&U7($,0):vN|=J,T9===y0&&(T9=0)),T4($)}function SM($,Z){Z===0&&(Z=n9()),$=L5($,Z),$!==null&&(S8($,Z),T4($))}function g_($){var Z=$.memoizedState,J=0;Z!==null&&(J=Z.retryLane),SM($,J)}function h_($,Z){var J=0;switch($.tag){case 31:case 13:var{stateNode:Y,memoizedState:U}=$;U!==null&&(J=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),SM($,J)}function ZY($,Z,J){if((Z.subtreeFlags&67117056)!==0)for(Z=Z.child;Z!==null;){var Y=$,U=Z,B=U.type===XG;B=J||B,U.tag!==22?U.flags&67108864?B&&G0(U,DM,Y,U):ZY(Y,U,B):U.memoizedState===null&&(B&&U.flags&8192?G0(U,DM,Y,U):U.subtreeFlags&67108864&&G0(U,ZY,Y,U,B)),Z=Z.sibling}}function DM($,Z){W1(!0);try{JM(Z),KM(Z),GM($,Z.alternate,Z,!1),qM($,Z,0,null,!1,0)}finally{W1(!1)}}function vM($){var Z=!0;$.current.mode&(_5|o6)||(Z=!1),ZY($,$.current,Z)}function bM($){if((a0&e1)===N5){var Z=$.tag;if(Z===3||Z===1||Z===0||Z===11||Z===14||Z===15){if(Z=d($)||"ReactComponent",oG!==null){if(oG.has(Z))return;oG.add(Z)}else oG=new Set([Z]);G0($,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 s$($,Z){I4&&$.memoizedUpdaters.forEach(function(J){T$($,J,Z)})}function u_($,Z){var J=x.actQueue;return J!==null?(J.push(Z),ZI):yY($,Z)}function x_($){HM()&&x.actQueue===null&&G0($,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
166
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),W1===$&&(g0&G)===G&&(S1===N2||S1===cG&&(g0&62914560)===g0&&Y5()-oG<bw?(i0&Q5)===K5&&B7($,0):fN|=G,P9===g0&&(P9=0)),P4($)}function kM($,Z){Z===0&&(Z=a9()),$=_5($,Z),$!==null&&(v8($,Z),P4($))}function p_($){var Z=$.memoizedState,G=0;Z!==null&&(G=Z.retryLane),kM($,G)}function c_($,Z){var G=0;switch($.tag){case 31:case 13:var{stateNode:Y,memoizedState:U}=$;U!==null&&(G=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),kM($,G)}function GY($,Z,G){if((Z.subtreeFlags&67117056)!==0)for(Z=Z.child;Z!==null;){var Y=$,U=Z,B=U.type===KG;B=G||B,U.tag!==22?U.flags&67108864?B&&G0(U,fM,Y,U):GY(Y,U,B):U.memoizedState===null&&(B&&U.flags&8192?G0(U,fM,Y,U):U.subtreeFlags&67108864&&G0(U,GY,Y,U,B)),Z=Z.sibling}}function fM($,Z){w1(!0);try{YM(Z),FM(Z),NM($,Z.alternate,Z,!1),KM($,Z,0,null,!1,0)}finally{w1(!1)}}function yM($){var Z=!0;$.current.mode&(I5|t6)||(Z=!1),GY($,$.current,Z)}function gM($){if((i0&Q5)===K5){var Z=$.tag;if(Z===3||Z===1||Z===0||Z===11||Z===14||Z===15){if(Z=d($)||"ReactComponent",$3!==null){if($3.has(Z))return;$3.add(Z)}else $3=new Set([Z]);G0($,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 t$($,Z){E4&&$.memoizedUpdaters.forEach(function(G){I$($,G,Z)})}function l_($,Z){var G=x.actQueue;return G!==null?(G.push(Z),YV):uY($,Z)}function r_($){wM()&&x.actQueue===null&&G0($,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
167
167
 
168
168
  When testing, code that causes React state updates should be wrapped into act(...):
169
169
 
@@ -172,16 +172,16 @@ act(() => {
172
172
  });
173
173
  /* assert on the output */
174
174
 
175
- This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,d($))})}function T4($){$!==s7&&$.next===null&&(s7===null?aG=s7=$:s7=s7.next=$),iG=!0,x.actQueue!==null?mN||(mN=!0,gM()):xN||(xN=!0,gM())}function n$($,Z){if(!dN&&iG){dN=!0;do{var J=!1;for(var Y=aG;Y!==null;){if(!Z)if($!==0){var U=Y.pendingLanes;if(U===0)var B=0;else{var{suspendedLanes:W,pingedLanes:R}=Y;B=(1<<31-E5(42|$)+1)-1,B&=U&~(W&~R),B=B&201326741?B&201326741|1:B?B|2:0}B!==0&&(J=!0,yM(Y,B))}else B=y0,B=g2(Y,Y===F1?B:0,Y.cancelPendingCommit!==null||Y.timeoutHandle!==V9),(B&3)===0||h2(Y,B)||(J=!0,yM(Y,B));Y=Y.next}}while(J);dN=!1}}function m_(){rZ=window.event,QY()}function QY(){iG=mN=xN=!1;var $=0;M2!==0&&n_()&&($=M2);for(var Z=X5(),J=null,Y=aG;Y!==null;){var U=Y.next,B=kM(Y,Z);if(B===0)Y.next=null,J===null?aG=U:J.next=U,U===null&&(s7=J);else if(J=Y,$!==0||(B&3)!==0)iG=!0;Y=U}n1!==B2&&n1!==sG||n$($,!1),M2!==0&&(M2=0)}function kM($,Z){for(var{suspendedLanes:J,pingedLanes:Y,expirationTimes:U}=$,B=$.pendingLanes&-62914561;0<B;){var W=31-E5(B),R=1<<W,L=U[W];if(L===-1){if((R&J)===0||(R&Y)!==0)U[W]=LX(R,Z)}else L<=Z&&($.expiredLanes|=R);B&=~R}if(Z=F1,J=y0,J=g2($,$===Z?J:0,$.cancelPendingCommit!==null||$.timeoutHandle!==V9),Y=$.callbackNode,J===0||$===Z&&(N1===R9||N1===z9)||$.cancelPendingCommit!==null)return Y!==null&&JY(Y),$.callbackNode=null,$.callbackPriority=0;if((J&3)===0||h2($,J)){if(Z=J&-J,Z!==$.callbackPriority||x.actQueue!==null&&Y!==pN)JY(Y);else return Z;switch(C(J)){case B6:case n6:J=hY;break;case O4:J=w7;break;case BG:J=uY;break;default:J=w7}return Y=fM.bind(null,$),x.actQueue!==null?(x.actQueue.push(Y),J=pN):J=yY(J,Y),$.callbackPriority=Z,$.callbackNode=J,Z}return Y!==null&&JY(Y),$.callbackPriority=2,$.callbackNode=null,2}function fM($,Z){if(jG=AG=!1,rZ=window.event,n1!==B2&&n1!==sG)return $.callbackNode=null,$.callbackPriority=0,null;var J=$.callbackNode;if($4===rG&&($4=kN),r$()&&$.callbackNode!==J)return null;var Y=y0;if(Y=g2($,$===F1?Y:0,$.cancelPendingCommit!==null||$.timeoutHandle!==V9),Y===0)return null;return FM($,Y,Z),kM($,X5()),$.callbackNode!=null&&$.callbackNode===J?fM.bind(null,$):null}function yM($,Z){if(r$())return null;AG=jG,jG=!1,FM($,Z,!0)}function JY($){$!==pN&&$!==null&&SC($)}function gM(){x.actQueue!==null&&x.actQueue.push(function(){return QY(),null}),BI(function(){(a0&(e1|W6))!==N5?yY(gY,m_):QY()})}function GY(){if(M2===0){var $=K9;$===0&&($=NG,NG<<=1,(NG&261888)===0&&(NG=256)),M2=$}return M2}function hM($){if($==null||typeof $==="symbol"||typeof $==="boolean")return null;if(typeof $==="function")return $;return K1($,"action"),I$(""+$)}function uM($,Z){var J=Z.ownerDocument.createElement("input");return J.name=Z.name,J.value=Z.value,$.id&&J.setAttribute("form",$.id),Z.parentNode.insertBefore(J,Z),$=new FormData($),J.parentNode.removeChild(J),$}function d_($,Z,J,Y,U){if(Z==="submit"&&J&&J.stateNode===U){var B=hM((U[A5]||null).action),W=Y.submitter;W&&(Z=(Z=W[A5]||null)?hM(Z.formAction):W.getAttribute("formAction"),Z!==null&&(B=Z,W=null));var R=new wG("action","action",null,Y,U);$.push({event:R,listeners:[{instance:null,listener:function(){if(Y.defaultPrevented){if(M2!==0){var L=W?uM(U,W):new FormData(U),_={pending:!0,data:L,method:U.method,action:B};Object.freeze(_),Vq(J,_,null,L)}}else typeof B==="function"&&(R.preventDefault(),L=W?uM(U,W):new FormData(U),_={pending:!0,data:L,method:U.method,action:B},Object.freeze(_),Vq(J,_,B,L))},currentTarget:U}]})}}function nJ($,Z,J){$.currentTarget=J;try{Z($)}catch(Y){ZN(Y)}$.currentTarget=null}function xM($,Z){Z=(Z&4)!==0;for(var J=0;J<$.length;J++){var Y=$[J];$:{var U=void 0,B=Y.event;if(Y=Y.listeners,Z)for(var W=Y.length-1;0<=W;W--){var R=Y[W],L=R.instance,_=R.currentTarget;if(R=R.listener,L!==U&&B.isPropagationStopped())break $;L!==null?G0(L,nJ,B,R,_):nJ(B,R,_),U=L}else for(W=0;W<Y.length;W++){if(R=Y[W],L=R.instance,_=R.currentTarget,R=R.listener,L!==U&&B.isPropagationStopped())break $;L!==null?G0(L,nJ,B,R,_):nJ(B,R,_),U=L}}}}function s0($,Z){cN.has($)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',$);var J=Z[xY];J===void 0&&(J=Z[xY]=new Set);var Y=$+"__bubble";J.has(Y)||(mM(Z,$,2,!1),J.add(Y))}function XY($,Z,J){cN.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),mM(J,$,Y,Z)}function qY($){if(!$[tG]){$[tG]=!0,gF.forEach(function(J){J!=="selectionchange"&&(cN.has(J)||XY(J,!1,$),XY(J,!0,$))});var Z=$.nodeType===9?$:$.ownerDocument;Z===null||Z[tG]||(Z[tG]=!0,XY("selectionchange",!1,Z))}}function mM($,Z,J,Y){switch(LF(Z)){case B6:var U=_C;break;case n6:U=CC;break;default:U=_Y}J=U.bind(null,Z,J,$),U=void 0,!lY||Z!=="touchstart"&&Z!=="touchmove"&&Z!=="wheel"||(U=!0),Y?U!==void 0?$.addEventListener(Z,J,{capture:!0,passive:U}):$.addEventListener(Z,J,!0):U!==void 0?$.addEventListener(Z,J,{passive:U}):$.addEventListener(Z,J,!1)}function YY($,Z,J,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 R=Y.stateNode.containerInfo;if(R===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(;R!==null;){if(W=Y0(R),W===null)return;if(L=W.tag,L===5||L===6||L===26||L===27){Y=B=W;continue $}R=R.parentNode}}Y=Y.return}tK(function(){var _=B,k=jX(J),f=[];$:{var j=LW.get($);if(j!==void 0){var g=wG,e=$;switch($){case"keypress":if(QJ(J)===0)break $;case"keydown":case"keyup":g=RV;break;case"focusin":e="focus",g=oY;break;case"focusout":e="blur",g=oY;break;case"beforeblur":case"afterblur":g=oY;break;case"click":if(J.button===2)break $;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":g=qW;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=XV;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=LV;break;case wW:case RW:case zW:g=NV;break;case TW:g=_V;break;case"scroll":case"scrollend":g=JV;break;case"wheel":g=VV;break;case"copy":case"cut":case"paste":g=KV;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=NW;break;case"toggle":case"beforetoggle":g=OV}var J0=(Z&4)!==0,R1=!J0&&($==="scroll"||$==="scrollend"),n0=J0?j!==null?j+"Capture":null:j;J0=[];for(var E=_,S;E!==null;){var b=E;if(S=b.stateNode,b=b.tag,b!==5&&b!==26&&b!==27||S===null||n0===null||(b=O$(E,n0),b!=null&&J0.push(o$(E,b,S))),R1)break;E=E.return}0<J0.length&&(j=new g(j,e,null,J,k),f.push({event:j,listeners:J0}))}}if((Z&7)===0){$:{if(j=$==="mouseover"||$==="pointerover",g=$==="mouseout"||$==="pointerout",j&&J!==qZ&&(e=J.relatedTarget||J.fromElement)&&(Y0(e)||e[n8]))break $;if(g||j){if(j=k.window===k?k:(j=k.ownerDocument)?j.defaultView||j.parentWindow:window,g){if(e=J.relatedTarget||J.toElement,g=_,e=e?Y0(e):null,e!==null&&(R1=D(e),J0=e.tag,e!==R1||J0!==5&&J0!==27&&J0!==6))e=null}else g=null,e=_;if(g!==e){if(J0=qW,b="onMouseLeave",n0="onMouseEnter",E="mouse",$==="pointerout"||$==="pointerover")J0=NW,b="onPointerLeave",n0="onPointerEnter",E="pointer";if(R1=g==null?j:A0(g),S=e==null?j:A0(e),j=new J0(b,E+"leave",g,J,k),j.target=R1,j.relatedTarget=S,b=null,Y0(k)===_&&(J0=new J0(n0,E+"enter",e,J,k),J0.target=S,J0.relatedTarget=R1,b=J0),R1=b,g&&e)Z:{J0=p_,n0=g,E=e,S=0;for(b=n0;b;b=J0(b))S++;b=0;for(var m=E;m;m=J0(m))b++;for(;0<S-b;)n0=J0(n0),S--;for(;0<b-S;)E=J0(E),b--;for(;S--;){if(n0===E||E!==null&&n0===E.alternate){J0=n0;break Z}n0=J0(n0),E=J0(E)}J0=null}else J0=null;g!==null&&dM(f,j,g,J0,!1),e!==null&&R1!==null&&dM(f,R1,e,J0,!0)}}}$:{if(j=_?A0(_):window,g=j.nodeName&&j.nodeName.toLowerCase(),g==="select"||g==="input"&&j.type==="file")var Z0=XB;else if(JB(j))if(FW)Z0=Z_;else{Z0=eP;var I0=tP}else g=j.nodeName,!g||g.toLowerCase()!=="input"||j.type!=="checkbox"&&j.type!=="radio"?_&&V$(_.elementType)&&(Z0=XB):Z0=$_;if(Z0&&(Z0=Z0($,_))){GB(f,Z0,J,k);break $}I0&&I0($,j,_),$==="focusout"&&_&&j.type==="number"&&_.memoizedProps.value!=null&&CX(j,"number",j.value)}switch(I0=_?A0(_):window,$){case"focusin":if(JB(I0)||I0.contentEditable==="true")V7=I0,iY=_,MZ=null;break;case"focusout":MZ=iY=V7=null;break;case"mousedown":tY=!0;break;case"contextmenu":case"mouseup":case"dragend":tY=!1,HB(f,J,k);break;case"selectionchange":if(SV)break;case"keydown":case"keyup":HB(f,J,k)}var w0;if(aY)$:{switch($){case"compositionstart":var U0="onCompositionStart";break $;case"compositionend":U0="onCompositionEnd";break $;case"compositionupdate":U0="onCompositionUpdate";break $}U0=void 0}else C7?ZB($,J)&&(U0="onCompositionEnd"):$==="keydown"&&J.keyCode===UW&&(U0="onCompositionStart");if(U0&&(KW&&J.locale!=="ko"&&(C7||U0!=="onCompositionStart"?U0==="onCompositionEnd"&&C7&&(w0=eK()):(o8=k,rY=("value"in o8)?o8.value:o8.textContent,C7=!0)),I0=oJ(_,U0),0<I0.length&&(U0=new YW(U0,$,null,J,k),f.push({event:U0,listeners:I0}),w0?U0.data=w0:(w0=QB(J),w0!==null&&(U0.data=w0)))),w0=AV?nP($,J):oP($,J))U0=oJ(_,"onBeforeInput"),0<U0.length&&(I0=new HV("onBeforeInput","beforeinput",null,J,k),f.push({event:I0,listeners:U0}),I0.data=w0);d_(f,$,_,J,k)}xM(f,Z)})}function o$($,Z,J){return{instance:$,listener:Z,currentTarget:J}}function oJ($,Z){for(var J=Z+"Capture",Y=[];$!==null;){var U=$,B=U.stateNode;if(U=U.tag,U!==5&&U!==26&&U!==27||B===null||(U=O$($,J),U!=null&&Y.unshift(o$($,U,B)),U=O$($,Z),U!=null&&Y.push(o$($,U,B))),$.tag===3)return Y;$=$.return}return[]}function p_($){if($===null)return null;do $=$.return;while($&&$.tag!==5&&$.tag!==27);return $?$:null}function dM($,Z,J,Y,U){for(var B=Z._reactName,W=[];J!==null&&J!==Y;){var R=J,L=R.alternate,_=R.stateNode;if(R=R.tag,L!==null&&L===Y)break;R!==5&&R!==26&&R!==27||_===null||(L=_,U?(_=O$(J,B),_!=null&&W.unshift(o$(J,_,L))):U||(_=O$(J,B),_!=null&&W.push(o$(J,_,L)))),J=J.return}W.length!==0&&$.push({event:Z,listeners:W})}function NY($,Z){cP($,Z),$!=="input"&&$!=="textarea"&&$!=="select"||Z==null||Z.value!==null||GW||(GW=!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 J={registrationNameDependencies:G9,possibleRegistrationNames:mY};V$($)||typeof Z.is==="string"||rP($,Z,J),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 G5($,Z,J,Y){Z!==J&&(J=p8(J),p8(Z)!==J&&(Y[$]=Z))}function c_($,Z,J){Z.forEach(function(Y){J[lM(Y)]=Y==="style"?KY($):$.getAttribute(Y)})}function L4($,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 pM($,Z){return $=$.namespaceURI===MG||$.namespaceURI===T7?$.ownerDocument.createElementNS($.namespaceURI,$.tagName):$.ownerDocument.createElement($.tagName),$.innerHTML=Z,$.innerHTML}function p8($){return j8($)&&(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.",y2($)),J5($)),(typeof $==="string"?$:""+$).replace(QI,`
176
- `).replace(JI,"")}function cM($,Z){return Z=p8(Z),p8($)===Z?!0:!1}function H1($,Z,J,Y,U,B){switch(J){case"children":if(typeof Y==="string")ZJ(Y,Z,!1),Z==="body"||Z==="textarea"&&Y===""||C$($,Y);else if(typeof Y==="number"||typeof Y==="bigint")ZJ(""+Y,Z,!1),Z!=="body"&&C$($,""+Y);break;case"className":tQ($,"class",Y);break;case"tabIndex":tQ($,"tabindex",Y);break;case"dir":case"role":case"viewBox":case"width":case"height":tQ($,J,Y);break;case"style":oK($,Y,B);break;case"data":if(Z!=="object"){tQ($,"data",Y);break}case"src":case"href":if(Y===""&&(Z!=="a"||J!=="href")){J==="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.',J,J):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.',J,J),$.removeAttribute(J);break}if(Y==null||typeof Y==="function"||typeof Y==="symbol"||typeof Y==="boolean"){$.removeAttribute(J);break}K1(Y,J),Y=I$(""+Y),$.setAttribute(J,Y);break;case"action":case"formAction":if(Y!=null&&(Z==="form"?J==="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||Z3||(Z3=!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||$3||($3=!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"?J==="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"||eG?Z!=="button"||U.type==null||U.type==="submit"||eG?typeof Y==="function"&&(U.name==null||pw||(pw=!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||Z3||(Z3=!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||$3||($3=!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."))):(eG=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(eG=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):J==="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(J,"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"&&(J==="formAction"?(Z!=="input"&&H1($,Z,"name",U.name,U,null),H1($,Z,"formEncType",U.formEncType,U,null),H1($,Z,"formMethod",U.formMethod,U,null),H1($,Z,"formTarget",U.formTarget,U,null)):(H1($,Z,"encType",U.encType,U,null),H1($,Z,"method",U.method,U,null),H1($,Z,"target",U.target,U,null)));if(Y==null||typeof Y==="symbol"||typeof Y==="boolean"){$.removeAttribute(J);break}K1(Y,J),Y=I$(""+Y),$.setAttribute(J,Y);break;case"onClick":Y!=null&&(typeof Y!=="function"&&L4(J,Y),$.onclick=p4);break;case"onScroll":Y!=null&&(typeof Y!=="function"&&L4(J,Y),s0("scroll",$));break;case"onScrollEnd":Y!=null&&(typeof Y!=="function"&&L4(J,Y),s0("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(J=Y.__html,J!=null){if(U.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");$.innerHTML=J}}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}K1(Y,J),J=I$(""+Y),$.setAttributeNS(P9,"xlink:href",J);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"?(K1(Y,J),$.setAttribute(J,""+Y)):$.removeAttribute(J);break;case"inert":Y!==""||Q3[J]||(Q3[J]=!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.",J));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(J,""):$.removeAttribute(J);break;case"capture":case"download":Y===!0?$.setAttribute(J,""):Y!==!1&&Y!=null&&typeof Y!=="function"&&typeof Y!=="symbol"?(K1(Y,J),$.setAttribute(J,Y)):$.removeAttribute(J);break;case"cols":case"rows":case"size":case"span":Y!=null&&typeof Y!=="function"&&typeof Y!=="symbol"&&!isNaN(Y)&&1<=Y?(K1(Y,J),$.setAttribute(J,Y)):$.removeAttribute(J);break;case"rowSpan":case"start":Y==null||typeof Y==="function"||typeof Y==="symbol"||isNaN(Y)?$.removeAttribute(J):(K1(Y,J),$.setAttribute(J,Y));break;case"popover":s0("beforetoggle",$),s0("toggle",$),iQ($,"popover",Y);break;case"xlinkActuate":d4($,P9,"xlink:actuate",Y);break;case"xlinkArcrole":d4($,P9,"xlink:arcrole",Y);break;case"xlinkRole":d4($,P9,"xlink:role",Y);break;case"xlinkShow":d4($,P9,"xlink:show",Y);break;case"xlinkTitle":d4($,P9,"xlink:title",Y);break;case"xlinkType":d4($,P9,"xlink:type",Y);break;case"xmlBase":d4($,lN,"xml:base",Y);break;case"xmlLang":d4($,lN,"xml:lang",Y);break;case"xmlSpace":d4($,lN,"xml:space",Y);break;case"is":B!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),iQ($,"is",Y);break;case"innerText":case"textContent":break;case"popoverTarget":cw||Y==null||typeof Y!=="object"||(cw=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",Y));default:!(2<J.length)||J[0]!=="o"&&J[0]!=="O"||J[1]!=="n"&&J[1]!=="N"?(J=aK(J),iQ($,J,Y)):G9.hasOwnProperty(J)&&Y!=null&&typeof Y!=="function"&&L4(J,Y)}}function UY($,Z,J,Y,U,B){switch(J){case"style":oK($,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(J=Y.__html,J!=null){if(U.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");$.innerHTML=J}}break;case"children":typeof Y==="string"?C$($,Y):(typeof Y==="number"||typeof Y==="bigint")&&C$($,""+Y);break;case"onScroll":Y!=null&&(typeof Y!=="function"&&L4(J,Y),s0("scroll",$));break;case"onScrollEnd":Y!=null&&(typeof Y!=="function"&&L4(J,Y),s0("scrollend",$));break;case"onClick":Y!=null&&(typeof Y!=="function"&&L4(J,Y),$.onclick=p4);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(G9.hasOwnProperty(J))Y!=null&&typeof Y!=="function"&&L4(J,Y);else $:{if(J[0]==="o"&&J[1]==="n"&&(U=J.endsWith("Capture"),Z=J.slice(2,U?J.length-7:void 0),B=$[A5]||null,B=B!=null?B[J]:null,typeof B==="function"&&$.removeEventListener(Z,B,U),typeof Y==="function")){typeof B!=="function"&&B!==null&&(J in $?$[J]=null:$.hasAttribute(J)&&$.removeAttribute(J)),$.addEventListener(Z,Y,U);break $}J in $?$[J]=Y:Y===!0?$.setAttribute(J,""):iQ($,J,Y)}}}function H5($,Z,J){switch(NY(Z,J),Z){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":s0("error",$),s0("load",$);var Y=!1,U=!1,B;for(B in J)if(J.hasOwnProperty(B)){var W=J[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:H1($,Z,B,W,J,null)}}U&&H1($,Z,"srcSet",J.srcSet,J,null),Y&&H1($,Z,"src",J.src,J,null);return;case"input":v8("input",J),s0("invalid",$);var R=B=W=U=null,L=null,_=null;for(Y in J)if(J.hasOwnProperty(Y)){var k=J[Y];if(k!=null)switch(Y){case"name":U=k;break;case"type":W=k;break;case"checked":L=k;break;case"defaultChecked":_=k;break;case"value":B=k;break;case"defaultValue":R=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:H1($,Z,Y,k,J,null)}}bK($,J),kK($,B,R,L,_,W,U,!1);return;case"select":v8("select",J),s0("invalid",$),Y=W=B=null;for(U in J)if(J.hasOwnProperty(U)&&(R=J[U],R!=null))switch(U){case"value":B=R;break;case"defaultValue":W=R;break;case"multiple":Y=R;default:H1($,Z,U,R,J,null)}gK($,J),Z=B,J=W,$.multiple=!!Y,Z!=null?a9($,!!Y,Z,!1):J!=null&&a9($,!!Y,J,!0);return;case"textarea":v8("textarea",J),s0("invalid",$),B=U=Y=null;for(W in J)if(J.hasOwnProperty(W)&&(R=J[W],R!=null))switch(W){case"value":Y=R;break;case"defaultValue":U=R;break;case"children":B=R;break;case"dangerouslySetInnerHTML":if(R!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:H1($,Z,W,R,J,null)}hK($,J),xK($,Y,U,B);return;case"option":fK($,J);for(L in J)if(J.hasOwnProperty(L)&&(Y=J[L],Y!=null))switch(L){case"selected":$.selected=Y&&typeof Y!=="function"&&typeof Y!=="symbol";break;default:H1($,Z,L,Y,J,null)}return;case"dialog":s0("beforetoggle",$),s0("toggle",$),s0("cancel",$),s0("close",$);break;case"iframe":case"object":s0("load",$);break;case"video":case"audio":for(Y=0;Y<pZ.length;Y++)s0(pZ[Y],$);break;case"image":s0("error",$),s0("load",$);break;case"details":s0("toggle",$);break;case"embed":case"source":case"link":s0("error",$),s0("load",$);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(_ in J)if(J.hasOwnProperty(_)&&(Y=J[_],Y!=null))switch(_){case"children":case"dangerouslySetInnerHTML":throw Error(Z+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:H1($,Z,_,Y,J,null)}return;default:if(V$(Z)){for(k in J)J.hasOwnProperty(k)&&(Y=J[k],Y!==void 0&&UY($,Z,k,Y,J,void 0));return}}for(R in J)J.hasOwnProperty(R)&&(Y=J[R],Y!=null&&H1($,Z,R,Y,J,null))}function l_($,Z,J,Y){switch(NY(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,R=null,L=null,_=null,k=null;for(g in J){var f=J[g];if(J.hasOwnProperty(g)&&f!=null)switch(g){case"checked":break;case"value":break;case"defaultValue":L=f;default:Y.hasOwnProperty(g)||H1($,Z,g,null,Y,f)}}for(var j in Y){var g=Y[j];if(f=J[j],Y.hasOwnProperty(j)&&(g!=null||f!=null))switch(j){case"type":B=g;break;case"name":U=g;break;case"checked":_=g;break;case"defaultChecked":k=g;break;case"value":W=g;break;case"defaultValue":R=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&&H1($,Z,j,g,Y,f)}}Z=J.type==="checkbox"||J.type==="radio"?J.checked!=null:J.value!=null,Y=Y.type==="checkbox"||Y.type==="radio"?Y.checked!=null:Y.value!=null,Z||!Y||dw||(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"),dw=!0),!Z||Y||mw||(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"),mw=!0),_X($,W,R,L,_,k,B,U);return;case"select":g=W=R=j=null;for(B in J)if(L=J[B],J.hasOwnProperty(B)&&L!=null)switch(B){case"value":break;case"multiple":g=L;default:Y.hasOwnProperty(B)||H1($,Z,B,null,Y,L)}for(U in Y)if(B=Y[U],L=J[U],Y.hasOwnProperty(U)&&(B!=null||L!=null))switch(U){case"value":j=B;break;case"defaultValue":R=B;break;case"multiple":W=B;default:B!==L&&H1($,Z,U,B,Y,L)}Y=R,Z=W,J=g,j!=null?a9($,!!Z,j,!1):!!J!==!!Z&&(Y!=null?a9($,!!Z,Y,!0):a9($,!!Z,Z?[]:"",!1));return;case"textarea":g=j=null;for(R in J)if(U=J[R],J.hasOwnProperty(R)&&U!=null&&!Y.hasOwnProperty(R))switch(R){case"value":break;case"children":break;default:H1($,Z,R,null,Y,U)}for(W in Y)if(U=Y[W],B=J[W],Y.hasOwnProperty(W)&&(U!=null||B!=null))switch(W){case"value":j=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&&H1($,Z,W,U,Y,B)}uK($,j,g);return;case"option":for(var e in J)if(j=J[e],J.hasOwnProperty(e)&&j!=null&&!Y.hasOwnProperty(e))switch(e){case"selected":$.selected=!1;break;default:H1($,Z,e,null,Y,j)}for(L in Y)if(j=Y[L],g=J[L],Y.hasOwnProperty(L)&&j!==g&&(j!=null||g!=null))switch(L){case"selected":$.selected=j&&typeof j!=="function"&&typeof j!=="symbol";break;default:H1($,Z,L,j,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 J0 in J)j=J[J0],J.hasOwnProperty(J0)&&j!=null&&!Y.hasOwnProperty(J0)&&H1($,Z,J0,null,Y,j);for(_ in Y)if(j=Y[_],g=J[_],Y.hasOwnProperty(_)&&j!==g&&(j!=null||g!=null))switch(_){case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(Z+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:H1($,Z,_,j,Y,g)}return;default:if(V$(Z)){for(var R1 in J)j=J[R1],J.hasOwnProperty(R1)&&j!==void 0&&!Y.hasOwnProperty(R1)&&UY($,Z,R1,void 0,Y,j);for(k in Y)j=Y[k],g=J[k],!Y.hasOwnProperty(k)||j===g||j===void 0&&g===void 0||UY($,Z,k,j,Y,g);return}}for(var n0 in J)j=J[n0],J.hasOwnProperty(n0)&&j!=null&&!Y.hasOwnProperty(n0)&&H1($,Z,n0,null,Y,j);for(f in Y)j=Y[f],g=J[f],!Y.hasOwnProperty(f)||j===g||j==null&&g==null||H1($,Z,f,j,Y,g)}function lM($){switch($){case"class":return"className";case"for":return"htmlFor";default:return $}}function KY($){var Z={};$=$.style;for(var J=0;J<$.length;J++){var Y=$[J];Z[Y]=$.getPropertyValue(Y)}return Z}function rM($,Z,J){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?(z$(W,B),Y+=U+B+":"+(""+W).trim()):typeof W!=="number"||W===0||QW.has(B)?(z$(W,B),Y+=U+B.replace(iF,"-$1").toLowerCase().replace(tF,"-ms-")+":"+(""+W).trim()):Y+=U+B.replace(iF,"-$1").toLowerCase().replace(tF,"-ms-")+":"+W+"px",U=";")}Y=Y||null,Z=$.getAttribute("style"),Z!==Y&&(Y=p8(Y),p8(Z)!==Y&&(J.style=KY($)))}}function C6($,Z,J,Y,U,B){if(U.delete(J),$=$.getAttribute(J),$===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(K1(Y,Z),$===""+Y)return}G5(Z,$,Y,B)}function sM($,Z,J,Y,U,B){if(U.delete(J),$=$.getAttribute(J),$===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}G5(Z,$,Y,B)}function BY($,Z,J,Y,U,B){if(U.delete(J),$=$.getAttribute(J),$===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(K1(Y,J),$===""+Y)return}G5(Z,$,Y,B)}function nM($,Z,J,Y,U,B){if(U.delete(J),$=$.getAttribute(J),$===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)&&(K1(Y,Z),$===""+Y))return}G5(Z,$,Y,B)}function HY($,Z,J,Y,U,B){if(U.delete(J),$=$.getAttribute(J),$===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(K1(Y,Z),J=I$(""+Y),$===J)return}G5(Z,$,Y,B)}function oM($,Z,J,Y){for(var U={},B=new Set,W=$.attributes,R=0;R<W.length;R++)switch(W[R].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:B.add(W[R].name)}if(V$(Z)){for(var L in J)if(J.hasOwnProperty(L)){var _=J[L];if(_!=null){if(G9.hasOwnProperty(L))typeof _!=="function"&&L4(L,_);else if(J.suppressHydrationWarning!==!0)switch(L){case"children":typeof _!=="string"&&typeof _!=="number"||G5("children",$.textContent,_,U);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":W=$.innerHTML,_=_?_.__html:void 0,_!=null&&(_=pM($,_),G5(L,W,_,U));continue;case"style":B.delete(L),rM($,_,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=SK($,"class",_),G5("className",W,_,U);continue;default:Y.context===B8&&Z!=="svg"&&Z!=="math"?B.delete(L.toLowerCase()):B.delete(L),W=SK($,L,_),G5(L,W,_,U)}}}}else for(_ in J)if(J.hasOwnProperty(_)&&(L=J[_],L!=null)){if(G9.hasOwnProperty(_))typeof L!=="function"&&L4(_,L);else if(J.suppressHydrationWarning!==!0)switch(_){case"children":typeof L!=="string"&&typeof L!=="number"||G5("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=pM($,L),W!==L&&(U[_]={__html:W}));continue;case"className":C6($,_,"class",L,B,U);continue;case"tabIndex":C6($,_,"tabindex",L,B,U);continue;case"style":B.delete(_),rM($,L,U);continue;case"multiple":B.delete(_),G5(_,$.multiple,L,U);continue;case"muted":B.delete(_),G5(_,$.muted,L,U);continue;case"autoFocus":B.delete("autofocus"),G5(_,$.autofocus,L,U);continue;case"data":if(Z!=="object"){B.delete(_),W=$.getAttribute("data"),G5(_,W,L,U);continue}case"src":case"href":if(!(L!==""||Z==="a"&&_==="href"||Z==="object"&&_==="data")){_==="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.',_,_):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.',_,_);continue}HY($,_,_,L,B,U);continue;case"action":case"formAction":if(W=$.getAttribute(_),typeof L==="function"){B.delete(_.toLowerCase()),_==="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===GI){B.delete(_.toLowerCase()),G5(_,"function",L,U);continue}HY($,_,_.toLowerCase(),L,B,U);continue;case"xlinkHref":HY($,_,"xlink:href",L,B,U);continue;case"contentEditable":BY($,_,"contenteditable",L,B,U);continue;case"spellCheck":BY($,_,"spellcheck",L,B,U);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":BY($,_,_,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":sM($,_,_.toLowerCase(),L,B,U);continue;case"capture":case"download":$:{R=$;var k=W=_,f=U;if(B.delete(k),R=R.getAttribute(k),R===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&&R==="")break $;break;default:if(K1(L,W),R===""+L)break $}G5(W,R,L,f)}continue;case"cols":case"rows":case"size":case"span":$:{if(R=$,k=W=_,f=U,B.delete(k),R=R.getAttribute(k),R===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)&&(K1(L,W),R===""+L))break $}G5(W,R,L,f)}continue;case"rowSpan":nM($,_,"rowspan",L,B,U);continue;case"start":nM($,_,_,L,B,U);continue;case"xHeight":C6($,_,"x-height",L,B,U);continue;case"xlinkActuate":C6($,_,"xlink:actuate",L,B,U);continue;case"xlinkArcrole":C6($,_,"xlink:arcrole",L,B,U);continue;case"xlinkRole":C6($,_,"xlink:role",L,B,U);continue;case"xlinkShow":C6($,_,"xlink:show",L,B,U);continue;case"xlinkTitle":C6($,_,"xlink:title",L,B,U);continue;case"xlinkType":C6($,_,"xlink:type",L,B,U);continue;case"xmlBase":C6($,_,"xml:base",L,B,U);continue;case"xmlLang":C6($,_,"xml:lang",L,B,U);continue;case"xmlSpace":C6($,_,"xml:space",L,B,U);continue;case"inert":L!==""||Q3[_]||(Q3[_]=!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.",_)),sM($,_,_,L,B,U);continue;default:if(!(2<_.length)||_[0]!=="o"&&_[0]!=="O"||_[1]!=="n"&&_[1]!=="N"){R=aK(_),W=!1,Y.context===B8&&Z!=="svg"&&Z!=="math"?B.delete(R.toLowerCase()):(k=_.toLowerCase(),k=FG.hasOwnProperty(k)?FG[k]||null:null,k!==null&&k!==_&&(W=!0,B.delete(k)),B.delete(R));$:if(k=$,f=R,R=L,L$(f))if(k.hasAttribute(f))k=k.getAttribute(f),K1(R,f),R=k===""+R?R:k;else{switch(typeof R){case"function":case"symbol":break $;case"boolean":if(k=f.toLowerCase().slice(0,5),k!=="data-"&&k!=="aria-")break $}R=R===void 0?void 0:null}else R=void 0;W||G5(_,R,L,U)}}}return 0<B.size&&J.suppressHydrationWarning!==!0&&c_($,B,U),Object.keys(U).length===0?null:U}function r_($,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 aM($){switch($){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function s_(){if(typeof performance.getEntriesByType==="function"){for(var $=0,Z=0,J=performance.getEntriesByType("resource"),Y=0;Y<J.length;Y++){var U=J[Y],B=U.transferSize,W=U.initiatorType,R=U.duration;if(B&&R&&aM(W)){W=0,R=U.responseEnd;for(Y+=1;Y<J.length;Y++){var L=J[Y],_=L.startTime;if(_>R)break;var{transferSize:k,initiatorType:f}=L;k&&aM(f)&&(L=L.responseEnd,W+=k*(L<R?1:(R-_)/(L-_)))}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 aJ($){return $.nodeType===9?$:$.ownerDocument}function iM($){switch($){case T7:return o7;case MG:return G3;default:return B8}}function tM($,Z){if($===B8)switch(Z){case"svg":return o7;case"math":return G3;default:return B8}return $===o7&&Z==="foreignObject"?B8:$}function MY($,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 n_(){var $=window.event;if($&&$.type==="popstate"){if($===oN)return!1;return oN=$,!0}return oN=null,!1}function a$(){var $=window.event;return $&&$!==rZ?$.type:null}function i$(){var $=window.event;return $&&$!==rZ?$.timeStamp:-1.1}function o_($){setTimeout(function(){throw $})}function a_($,Z,J){switch(Z){case"button":case"input":case"select":case"textarea":J.autoFocus&&$.focus();break;case"img":J.src?$.src=J.src:J.srcSet&&($.srcset=J.srcSet)}}function i_(){}function t_($,Z,J,Y){l_($,Z,J,Y),$[A5]=Y}function eM($){C$($,"")}function e_($,Z,J){$.nodeValue=J}function $F($){if(!$.__reactWarnedAboutChildrenConflict){var Z=$[A5]||null;if(Z!==null){var J=E0($);J!==null&&(typeof Z.children==="string"||typeof Z.children==="number"?($.__reactWarnedAboutChildrenConflict=!0,G0(J,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,G0(J,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 c8($){return $==="head"}function $C($,Z){$.removeChild(Z)}function ZC($,Z){($.nodeType===9?$.body:$.nodeName==="HTML"?$.ownerDocument.body:$).removeChild(Z)}function ZF($,Z){var J=Z,Y=0;do{var U=J.nextSibling;if($.removeChild(J),U&&U.nodeType===8)if(J=U.data,J===lZ||J===J3){if(Y===0){$.removeChild(U),M7(Z);return}Y--}else if(J===cZ||J===F2||J===C9||J===n7||J===_9)Y++;else if(J===qI)t$($.ownerDocument.documentElement);else if(J===NI){J=$.ownerDocument.head,t$(J);for(var B=J.firstChild;B;){var{nextSibling:W,nodeName:R}=B;B[XZ]||R==="SCRIPT"||R==="STYLE"||R==="LINK"&&B.rel.toLowerCase()==="stylesheet"||J.removeChild(B),B=W}}else J===YI&&t$($.ownerDocument.body);J=U}while(J);M7(Z)}function QF($,Z){var J=$;$=0;do{var Y=J.nextSibling;if(J.nodeType===1?Z?(J._stashedDisplay=J.style.display,J.style.display="none"):(J.style.display=J._stashedDisplay||"",J.getAttribute("style")===""&&J.removeAttribute("style")):J.nodeType===3&&(Z?(J._stashedText=J.nodeValue,J.nodeValue=""):J.nodeValue=J._stashedText||""),Y&&Y.nodeType===8)if(J=Y.data,J===lZ)if($===0)break;else $--;else J!==cZ&&J!==F2&&J!==C9&&J!==n7||$++;J=Y}while(J)}function QC($){QF($,!0)}function JC($){$=$.style,typeof $.setProperty==="function"?$.setProperty("display","none","important"):$.display="none"}function GC($){$.nodeValue=""}function XC($){QF($,!1)}function qC($,Z){Z=Z[UI],Z=Z!==void 0&&Z!==null&&Z.hasOwnProperty("display")?Z.display:null,$.style.display=Z==null||typeof Z==="boolean"?"":(""+Z).trim()}function YC($,Z){$.nodeValue=Z}function FY($){var Z=$.firstChild;Z&&Z.nodeType===10&&(Z=Z.nextSibling);for(;Z;){var J=Z;switch(Z=Z.nextSibling,J.nodeName){case"HTML":case"HEAD":case"BODY":FY(J),$0(J);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(J.rel.toLowerCase()==="stylesheet")continue}$.removeChild(J)}}function NC($,Z,J,Y){for(;$.nodeType===1;){var U=J;if($.nodeName.toLowerCase()!==Z.toLowerCase()){if(!Y&&($.nodeName!=="INPUT"||$.type!=="hidden"))break}else if(!Y)if(Z==="input"&&$.type==="hidden"){K1(U.name,"name");var B=U.name==null?null:""+U.name;if(U.type==="hidden"&&$.getAttribute("name")===B)return $}else return $;else if(!$[XZ])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($=N6($.nextSibling),$===null)break}return null}function UC($,Z,J){if(Z==="")return null;for(;$.nodeType!==3;){if(($.nodeType!==1||$.nodeName!=="INPUT"||$.type!=="hidden")&&!J)return null;if($=N6($.nextSibling),$===null)return null}return $}function JF($,Z){for(;$.nodeType!==8;){if(($.nodeType!==1||$.nodeName!=="INPUT"||$.type!=="hidden")&&!Z)return null;if($=N6($.nextSibling),$===null)return null}return $}function WY($){return $.data===F2||$.data===C9}function wY($){return $.data===n7||$.data===F2&&$.ownerDocument.readyState!==rw}function KC($,Z){var J=$.ownerDocument;if($.data===C9)$._reactRetry=Z;else if($.data!==F2||J.readyState!==rw)Z();else{var Y=function(){Z(),J.removeEventListener("DOMContentLoaded",Y)};J.addEventListener("DOMContentLoaded",Y),$._reactRetry=Y}}function N6($){for(;$!=null;$=$.nextSibling){var Z=$.nodeType;if(Z===1||Z===3)break;if(Z===8){if(Z=$.data,Z===cZ||Z===n7||Z===F2||Z===C9||Z===_9||Z===rN||Z===lw)break;if(Z===lZ||Z===J3)return null}}return $}function GF($){if($.nodeType===1){for(var Z=$.nodeName.toLowerCase(),J={},Y=$.attributes,U=0;U<Y.length;U++){var B=Y[U];J[lM(B.name)]=B.name.toLowerCase()==="style"?KY($):B.value}return{type:Z,props:J}}return $.nodeType===8?$.data===_9?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:$.nodeValue}function XF($,Z,J){return J===null||J[XI]!==!0?($.nodeValue===Z?$=null:(Z=p8(Z),$=p8($.nodeValue)===Z?null:$.nodeValue),$):null}function RY($){$=$.nextSibling;for(var Z=0;$;){if($.nodeType===8){var J=$.data;if(J===lZ||J===J3){if(Z===0)return N6($.nextSibling);Z--}else J!==cZ&&J!==n7&&J!==F2&&J!==C9&&J!==_9||Z++}$=$.nextSibling}return null}function qF($){$=$.previousSibling;for(var Z=0;$;){if($.nodeType===8){var J=$.data;if(J===cZ||J===n7||J===F2||J===C9||J===_9){if(Z===0)return $;Z--}else J!==lZ&&J!==J3||Z++}$=$.previousSibling}return null}function BC($){M7($)}function HC($){M7($)}function MC($){M7($)}function YF($,Z,J,Y,U){switch(U&&AX($,Y.ancestorInfo),Z=aJ(J),$){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,J,Y){if(!J[n8]&&E0(J)){var U=J.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=J.attributes;U.length;)J.removeAttributeNode(U[0]);H5(J,$,Z),J[M5]=Y,J[A5]=Z}function t$($){for(var Z=$.attributes;Z.length;)$.removeAttributeNode(Z[0]);$0($)}function iJ($){return typeof $.getRootNode==="function"?$.getRootNode():$.nodeType===9?$:$.ownerDocument}function NF($,Z,J){var Y=a7;if(Y&&typeof Z==="string"&&Z){var U=_6(Z);U='link[rel="'+$+'"][href="'+U+'"]',typeof J==="string"&&(U+='[crossorigin="'+J+'"]'),tw.has(U)||(tw.add(U),$={rel:$,crossOrigin:J,href:Z},Y.querySelector(U)===null&&(Z=Y.createElement("link"),H5(Z,"link",$),z0(Z),Y.head.appendChild(Z)))}}function UF($,Z,J,Y){var U=(U=r8.current)?iJ(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 J.precedence==="string"&&typeof J.href==="string"?(J=B7(J.href),Z=i0(U).hoistableStyles,Y=Z.get(J),Y||(Y={type:"style",instance:null,count:0,state:null},Z.set(J,Y)),Y):{type:"void",instance:null,count:0,state:null};case"link":if(J.rel==="stylesheet"&&typeof J.href==="string"&&typeof J.precedence==="string"){$=B7(J.href);var B=i0(U).hoistableStyles,W=B.get($);if(!W&&(U=U.ownerDocument||U,W={type:"stylesheet",instance:null,count:0,state:{loading:I9,preload:null}},B.set($,W),(B=U.querySelector(e$($)))&&!B._p&&(W.instance=B,W.state.loading=sZ|k6),!f6.has($))){var R={rel:"preload",as:"style",href:J.href,crossOrigin:J.crossOrigin,integrity:J.integrity,media:J.media,hrefLang:J.hrefLang,referrerPolicy:J.referrerPolicy};f6.set($,R),B||WC(U,$,R,W.state)}if(Z&&Y===null)throw J=`
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 P4($){$!==o7&&$.next===null&&(o7===null?Z3=o7=$:o7=o7.next=$),Q3=!0,x.actQueue!==null?cN||(cN=!0,mM()):pN||(pN=!0,mM())}function e$($,Z){if(!lN&&Q3){lN=!0;do{var G=!1;for(var Y=Z3;Y!==null;){if(!Z)if($!==0){var U=Y.pendingLanes;if(U===0)var B=0;else{var{suspendedLanes:W,pingedLanes:R}=Y;B=(1<<31-S5(42|$)+1)-1,B&=U&~(W&~R),B=B&201326741?B&201326741|1:B?B|2:0}B!==0&&(G=!0,xM(Y,B))}else B=g0,B=u2(Y,Y===W1?B:0,Y.cancelPendingCommit!==null||Y.timeoutHandle!==O9),(B&3)===0||x2(Y,B)||(G=!0,xM(Y,B));Y=Y.next}}while(G);lN=!1}}function s_(){iZ=window.event,XY()}function XY(){Q3=cN=pN=!1;var $=0;W2!==0&&$C()&&($=W2);for(var Z=Y5(),G=null,Y=Z3;Y!==null;){var U=Y.next,B=hM(Y,Z);if(B===0)Y.next=null,G===null?Z3=U:G.next=U,U===null&&(o7=G);else if(G=Y,$!==0||(B&3)!==0)Q3=!0;Y=U}a1!==M2&&a1!==tG||e$($,!1),W2!==0&&(W2=0)}function hM($,Z){for(var{suspendedLanes:G,pingedLanes:Y,expirationTimes:U}=$,B=$.pendingLanes&-62914561;0<B;){var W=31-S5(B),R=1<<W,L=U[W];if(L===-1){if((R&G)===0||(R&Y)!==0)U[W]=CX(R,Z)}else L<=Z&&($.expiredLanes|=R);B&=~R}if(Z=W1,G=g0,G=u2($,$===Z?G:0,$.cancelPendingCommit!==null||$.timeoutHandle!==O9),Y=$.callbackNode,G===0||$===Z&&(U1===T9||U1===L9)||$.cancelPendingCommit!==null)return Y!==null&&qY(Y),$.callbackNode=null,$.callbackPriority=0;if((G&3)===0||x2($,G)){if(Z=G&-G,Z!==$.callbackPriority||x.actQueue!==null&&Y!==rN)qY(Y);else return Z;switch(C(G)){case W6:case i6:G=mY;break;case A4:G=z7;break;case wG:G=dY;break;default:G=z7}return Y=uM.bind(null,$),x.actQueue!==null?(x.actQueue.push(Y),G=rN):G=uY(G,Y),$.callbackPriority=Z,$.callbackNode=G,Z}return Y!==null&&qY(Y),$.callbackPriority=2,$.callbackNode=null,2}function uM($,Z){if(kG=bG=!1,iZ=window.event,a1!==M2&&a1!==tG)return $.callbackNode=null,$.callbackPriority=0,null;var G=$.callbackNode;if(J4===iG&&(J4=gN),i$()&&$.callbackNode!==G)return null;var Y=g0;if(Y=u2($,$===W1?Y:0,$.cancelPendingCommit!==null||$.timeoutHandle!==O9),Y===0)return null;return zM($,Y,Z),hM($,Y5()),$.callbackNode!=null&&$.callbackNode===G?uM.bind(null,$):null}function xM($,Z){if(i$())return null;bG=kG,kG=!1,zM($,Z,!0)}function qY($){$!==rN&&$!==null&&yC($)}function mM(){x.actQueue!==null&&x.actQueue.push(function(){return XY(),null}),RV(function(){(i0&(Q5|T6))!==K5?uY(xY,s_):XY()})}function YY(){if(W2===0){var $=H9;$===0&&($=MG,MG<<=1,(MG&261888)===0&&(MG=256)),W2=$}return W2}function dM($){if($==null||typeof $==="symbol"||typeof $==="boolean")return null;if(typeof $==="function")return $;return B1($,"action"),j$(""+$)}function pM($,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 n_($,Z,G,Y,U){if(Z==="submit"&&G&&G.stateNode===U){var B=dM((U[j5]||null).action),W=Y.submitter;W&&(Z=(Z=W[j5]||null)?dM(Z.formAction):W.getAttribute("formAction"),Z!==null&&(B=Z,W=null));var R=new PG("action","action",null,Y,U);$.push({event:R,listeners:[{instance:null,listener:function(){if(Y.defaultPrevented){if(W2!==0){var L=W?pM(U,W):new FormData(U),_={pending:!0,data:L,method:U.method,action:B};Object.freeze(_),Eq(G,_,null,L)}}else typeof B==="function"&&(R.preventDefault(),L=W?pM(U,W):new FormData(U),_={pending:!0,data:L,method:U.method,action:B},Object.freeze(_),Eq(G,_,B,L))},currentTarget:U}]})}}function eJ($,Z,G){$.currentTarget=G;try{Z($)}catch(Y){GN(Y)}$.currentTarget=null}function cM($,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 R=Y[W],L=R.instance,_=R.currentTarget;if(R=R.listener,L!==U&&B.isPropagationStopped())break $;L!==null?G0(L,eJ,B,R,_):eJ(B,R,_),U=L}else for(W=0;W<Y.length;W++){if(R=Y[W],L=R.instance,_=R.currentTarget,R=R.listener,L!==U&&B.isPropagationStopped())break $;L!==null?G0(L,eJ,B,R,_):eJ(B,R,_),U=L}}}}function n0($,Z){sN.has($)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',$);var G=Z[pY];G===void 0&&(G=Z[pY]=new Set);var Y=$+"__bubble";G.has(Y)||(lM(Z,$,2,!1),G.add(Y))}function NY($,Z,G){sN.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),lM(G,$,Y,Z)}function UY($){if(!$[J3]){$[J3]=!0,mF.forEach(function(G){G!=="selectionchange"&&(sN.has(G)||NY(G,!1,$),NY(G,!0,$))});var Z=$.nodeType===9?$:$.ownerDocument;Z===null||Z[J3]||(Z[J3]=!0,NY("selectionchange",!1,Z))}}function lM($,Z,G,Y){switch(IF(Z)){case W6:var U=AC;break;case i6:U=SC;break;default:U=VY}G=U.bind(null,Z,G,$),U=void 0,!nY||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 KY($,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 R=Y.stateNode.containerInfo;if(R===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(;R!==null;){if(W=Y0(R),W===null)return;if(L=W.tag,L===5||L===6||L===26||L===27){Y=B=W;continue $}R=R.parentNode}}Y=Y.return}QB(function(){var _=B,k=vX(G),f=[];$:{var S=IW.get($);if(S!==void 0){var g=PG,e=$;switch($){case"keypress":if(YJ(G)===0)break $;case"keydown":case"keyup":g=CI;break;case"focusin":e="focus",g=tY;break;case"focusout":e="blur",g=tY;break;case"beforeblur":case"afterblur":g=tY;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=KW;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=BI;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=OI;break;case LW:case PW:case _W:g=FI;break;case CW:g=AI;break;case"scroll":case"scrollend":g=UI;break;case"wheel":g=jI;break;case"copy":case"cut":case"paste":g=wI;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=HW;break;case"toggle":case"beforetoggle":g=vI}var J0=(Z&4)!==0,z1=!J0&&($==="scroll"||$==="scrollend"),o0=J0?S!==null?S+"Capture":null:S;J0=[];for(var E=_,j;E!==null;){var b=E;if(j=b.stateNode,b=b.tag,b!==5&&b!==26&&b!==27||j===null||o0===null||(b=D$(E,o0),b!=null&&J0.push($Z(E,b,j))),z1)break;E=E.return}0<J0.length&&(S=new g(S,e,null,G,k),f.push({event:S,listeners:J0}))}}if((Z&7)===0){$:{if(S=$==="mouseover"||$==="pointerover",g=$==="mouseout"||$==="pointerout",S&&G!==BZ&&(e=G.relatedTarget||G.fromElement)&&(Y0(e)||e[a8]))break $;if(g||S){if(S=k.window===k?k:(S=k.ownerDocument)?S.defaultView||S.parentWindow:window,g){if(e=G.relatedTarget||G.toElement,g=_,e=e?Y0(e):null,e!==null&&(z1=D(e),J0=e.tag,e!==z1||J0!==5&&J0!==27&&J0!==6))e=null}else g=null,e=_;if(g!==e){if(J0=KW,b="onMouseLeave",o0="onMouseEnter",E="mouse",$==="pointerout"||$==="pointerover")J0=HW,b="onPointerLeave",o0="onPointerEnter",E="pointer";if(z1=g==null?S:j0(g),j=e==null?S:j0(e),S=new J0(b,E+"leave",g,G,k),S.target=z1,S.relatedTarget=j,b=null,Y0(k)===_&&(J0=new J0(o0,E+"enter",e,G,k),J0.target=j,J0.relatedTarget=z1,b=J0),z1=b,g&&e)Z:{J0=o_,o0=g,E=e,j=0;for(b=o0;b;b=J0(b))j++;b=0;for(var m=E;m;m=J0(m))b++;for(;0<j-b;)o0=J0(o0),j--;for(;0<b-j;)E=J0(E),b--;for(;j--;){if(o0===E||E!==null&&o0===E.alternate){J0=o0;break Z}o0=J0(o0),E=J0(E)}J0=null}else J0=null;g!==null&&rM(f,S,g,J0,!1),e!==null&&z1!==null&&rM(f,z1,e,J0,!0)}}}$:{if(S=_?j0(_):window,g=S.nodeName&&S.nodeName.toLowerCase(),g==="select"||g==="input"&&S.type==="file")var Z0=UB;else if(YB(S))if(zW)Z0=Y_;else{Z0=X_;var O0=G_}else g=S.nodeName,!g||g.toLowerCase()!=="input"||S.type!=="checkbox"&&S.type!=="radio"?_&&S$(_.elementType)&&(Z0=UB):Z0=q_;if(Z0&&(Z0=Z0($,_))){NB(f,Z0,G,k);break $}O0&&O0($,S,_),$==="focusout"&&_&&S.type==="number"&&_.memoizedProps.value!=null&&OX(S,"number",S.value)}switch(O0=_?j0(_):window,$){case"focusin":if(YB(O0)||O0.contentEditable==="true")O7=O0,$N=_,zZ=null;break;case"focusout":zZ=$N=O7=null;break;case"mousedown":ZN=!0;break;case"contextmenu":case"mouseup":case"dragend":ZN=!1,wB(f,G,k);break;case"selectionchange":if(yI)break;case"keydown":case"keyup":wB(f,G,k)}var R0;if(eY)$:{switch($){case"compositionstart":var U0="onCompositionStart";break $;case"compositionend":U0="onCompositionEnd";break $;case"compositionupdate":U0="onCompositionUpdate";break $}U0=void 0}else V7?XB($,G)&&(U0="onCompositionEnd"):$==="keydown"&&G.keyCode===MW&&(U0="onCompositionStart");if(U0&&(FW&&G.locale!=="ko"&&(V7||U0!=="onCompositionStart"?U0==="onCompositionEnd"&&V7&&(R0=JB()):(i8=k,oY=("value"in i8)?i8.value:i8.textContent,V7=!0)),O0=$G(_,U0),0<O0.length&&(U0=new BW(U0,$,null,G,k),f.push({event:U0,listeners:O0}),R0?U0.data=R0:(R0=qB(G),R0!==null&&(U0.data=R0)))),R0=kI?$_($,G):Z_($,G))U0=$G(_,"onBeforeInput"),0<U0.length&&(O0=new zI("onBeforeInput","beforeinput",null,G,k),f.push({event:O0,listeners:U0}),O0.data=R0);n_(f,$,_,G,k)}cM(f,Z)})}function $Z($,Z,G){return{instance:$,listener:Z,currentTarget:G}}function $G($,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=D$($,G),U!=null&&Y.unshift($Z($,U,B)),U=D$($,Z),U!=null&&Y.push($Z($,U,B))),$.tag===3)return Y;$=$.return}return[]}function o_($){if($===null)return null;do $=$.return;while($&&$.tag!==5&&$.tag!==27);return $?$:null}function rM($,Z,G,Y,U){for(var B=Z._reactName,W=[];G!==null&&G!==Y;){var R=G,L=R.alternate,_=R.stateNode;if(R=R.tag,L!==null&&L===Y)break;R!==5&&R!==26&&R!==27||_===null||(L=_,U?(_=D$(G,B),_!=null&&W.unshift($Z(G,_,L))):U||(_=D$(G,B),_!=null&&W.push($Z(G,_,L)))),G=G.return}W.length!==0&&$.push({event:Z,listeners:W})}function BY($,Z){aP($,Z),$!=="input"&&$!=="textarea"&&$!=="select"||Z==null||Z.value!==null||NW||(NW=!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:q9,possibleRegistrationNames:cY};S$($)||typeof Z.is==="string"||tP($,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 q5($,Z,G,Y){Z!==G&&(G=l8(G),l8(Z)!==G&&(Y[$]=Z))}function a_($,Z,G){Z.forEach(function(Y){G[oM(Y)]=Y==="style"?MY($):$.getAttribute(Y)})}function _4($,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 sM($,Z){return $=$.namespaceURI===zG||$.namespaceURI===P7?$.ownerDocument.createElementNS($.namespaceURI,$.tagName):$.ownerDocument.createElement($.tagName),$.innerHTML=Z,$.innerHTML}function l8($){return D8($)&&(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.",h2($)),X5($)),(typeof $==="string"?$:""+$).replace(NV,`
176
+ `).replace(UV,"")}function nM($,Z){return Z=l8(Z),l8($)===Z?!0:!1}function M1($,Z,G,Y,U,B){switch(G){case"children":if(typeof Y==="string")qJ(Y,Z,!1),Z==="body"||Z==="textarea"&&Y===""||A$($,Y);else if(typeof Y==="number"||typeof Y==="bigint")qJ(""+Y,Z,!1),Z!=="body"&&A$($,""+Y);break;case"className":JJ($,"class",Y);break;case"tabIndex":JJ($,"tabindex",Y);break;case"dir":case"role":case"viewBox":case"width":case"height":JJ($,G,Y);break;case"style":eK($,Y,B);break;case"data":if(Z!=="object"){JJ($,"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}B1(Y,G),Y=j$(""+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||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||X3||(X3=!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"||G3?Z!=="button"||U.type==null||U.type==="submit"||G3?typeof Y==="function"&&(U.name==null||sw||(sw=!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||X3||(X3=!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."))):(G3=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(G3=!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"&&M1($,Z,"name",U.name,U,null),M1($,Z,"formEncType",U.formEncType,U,null),M1($,Z,"formMethod",U.formMethod,U,null),M1($,Z,"formTarget",U.formTarget,U,null)):(M1($,Z,"encType",U.encType,U,null),M1($,Z,"method",U.method,U,null),M1($,Z,"target",U.target,U,null)));if(Y==null||typeof Y==="symbol"||typeof Y==="boolean"){$.removeAttribute(G);break}B1(Y,G),Y=j$(""+Y),$.setAttribute(G,Y);break;case"onClick":Y!=null&&(typeof Y!=="function"&&_4(G,Y),$.onclick=r4);break;case"onScroll":Y!=null&&(typeof Y!=="function"&&_4(G,Y),n0("scroll",$));break;case"onScrollEnd":Y!=null&&(typeof Y!=="function"&&_4(G,Y),n0("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}B1(Y,G),G=j$(""+Y),$.setAttributeNS(C9,"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"?(B1(Y,G),$.setAttribute(G,""+Y)):$.removeAttribute(G);break;case"inert":Y!==""||Y3[G]||(Y3[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"?(B1(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?(B1(Y,G),$.setAttribute(G,Y)):$.removeAttribute(G);break;case"rowSpan":case"start":Y==null||typeof Y==="function"||typeof Y==="symbol"||isNaN(Y)?$.removeAttribute(G):(B1(Y,G),$.setAttribute(G,Y));break;case"popover":n0("beforetoggle",$),n0("toggle",$),QJ($,"popover",Y);break;case"xlinkActuate":l4($,C9,"xlink:actuate",Y);break;case"xlinkArcrole":l4($,C9,"xlink:arcrole",Y);break;case"xlinkRole":l4($,C9,"xlink:role",Y);break;case"xlinkShow":l4($,C9,"xlink:show",Y);break;case"xlinkTitle":l4($,C9,"xlink:title",Y);break;case"xlinkType":l4($,C9,"xlink:type",Y);break;case"xmlBase":l4($,nN,"xml:base",Y);break;case"xmlLang":l4($,nN,"xml:lang",Y);break;case"xmlSpace":l4($,nN,"xml:space",Y);break;case"is":B!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),QJ($,"is",Y);break;case"innerText":case"textContent":break;case"popoverTarget":nw||Y==null||typeof Y!=="object"||(nw=!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=$B(G),QJ($,G,Y)):q9.hasOwnProperty(G)&&Y!=null&&typeof Y!=="function"&&_4(G,Y)}}function HY($,Z,G,Y,U,B){switch(G){case"style":eK($,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"?A$($,Y):(typeof Y==="number"||typeof Y==="bigint")&&A$($,""+Y);break;case"onScroll":Y!=null&&(typeof Y!=="function"&&_4(G,Y),n0("scroll",$));break;case"onScrollEnd":Y!=null&&(typeof Y!=="function"&&_4(G,Y),n0("scrollend",$));break;case"onClick":Y!=null&&(typeof Y!=="function"&&_4(G,Y),$.onclick=r4);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(q9.hasOwnProperty(G))Y!=null&&typeof Y!=="function"&&_4(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=$[j5]||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,""):QJ($,G,Y)}}}function M5($,Z,G){switch(BY(Z,G),Z){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":n0("error",$),n0("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:M1($,Z,B,W,G,null)}}U&&M1($,Z,"srcSet",G.srcSet,G,null),Y&&M1($,Z,"src",G.src,G,null);return;case"input":k8("input",G),n0("invalid",$);var R=B=W=U=null,L=null,_=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":_=k;break;case"value":B=k;break;case"defaultValue":R=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:M1($,Z,Y,k,G,null)}}gK($,G),hK($,B,R,L,_,W,U,!1);return;case"select":k8("select",G),n0("invalid",$),Y=W=B=null;for(U in G)if(G.hasOwnProperty(U)&&(R=G[U],R!=null))switch(U){case"value":B=R;break;case"defaultValue":W=R;break;case"multiple":Y=R;default:M1($,Z,U,R,G,null)}mK($,G),Z=B,G=W,$.multiple=!!Y,Z!=null?t9($,!!Y,Z,!1):G!=null&&t9($,!!Y,G,!0);return;case"textarea":k8("textarea",G),n0("invalid",$),B=U=Y=null;for(W in G)if(G.hasOwnProperty(W)&&(R=G[W],R!=null))switch(W){case"value":Y=R;break;case"defaultValue":U=R;break;case"children":B=R;break;case"dangerouslySetInnerHTML":if(R!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:M1($,Z,W,R,G,null)}dK($,G),cK($,Y,U,B);return;case"option":uK($,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:M1($,Z,L,Y,G,null)}return;case"dialog":n0("beforetoggle",$),n0("toggle",$),n0("cancel",$),n0("close",$);break;case"iframe":case"object":n0("load",$);break;case"video":case"audio":for(Y=0;Y<nZ.length;Y++)n0(nZ[Y],$);break;case"image":n0("error",$),n0("load",$);break;case"details":n0("toggle",$);break;case"embed":case"source":case"link":n0("error",$),n0("load",$);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(_ in G)if(G.hasOwnProperty(_)&&(Y=G[_],Y!=null))switch(_){case"children":case"dangerouslySetInnerHTML":throw Error(Z+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:M1($,Z,_,Y,G,null)}return;default:if(S$(Z)){for(k in G)G.hasOwnProperty(k)&&(Y=G[k],Y!==void 0&&HY($,Z,k,Y,G,void 0));return}}for(R in G)G.hasOwnProperty(R)&&(Y=G[R],Y!=null&&M1($,Z,R,Y,G,null))}function i_($,Z,G,Y){switch(BY(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,R=null,L=null,_=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)||M1($,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":_=g;break;case"defaultChecked":k=g;break;case"value":W=g;break;case"defaultValue":R=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&&M1($,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||rw||(console.error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),rw=!0),!Z||Y||lw||(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"),lw=!0),VX($,W,R,L,_,k,B,U);return;case"select":g=W=R=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)||M1($,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":R=B;break;case"multiple":W=B;default:B!==L&&M1($,Z,U,B,Y,L)}Y=R,Z=W,G=g,S!=null?t9($,!!Z,S,!1):!!G!==!!Z&&(Y!=null?t9($,!!Z,Y,!0):t9($,!!Z,Z?[]:"",!1));return;case"textarea":g=S=null;for(R in G)if(U=G[R],G.hasOwnProperty(R)&&U!=null&&!Y.hasOwnProperty(R))switch(R){case"value":break;case"children":break;default:M1($,Z,R,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&&M1($,Z,W,U,Y,B)}pK($,S,g);return;case"option":for(var e in G)if(S=G[e],G.hasOwnProperty(e)&&S!=null&&!Y.hasOwnProperty(e))switch(e){case"selected":$.selected=!1;break;default:M1($,Z,e,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:M1($,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 J0 in G)S=G[J0],G.hasOwnProperty(J0)&&S!=null&&!Y.hasOwnProperty(J0)&&M1($,Z,J0,null,Y,S);for(_ in Y)if(S=Y[_],g=G[_],Y.hasOwnProperty(_)&&S!==g&&(S!=null||g!=null))switch(_){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:M1($,Z,_,S,Y,g)}return;default:if(S$(Z)){for(var z1 in G)S=G[z1],G.hasOwnProperty(z1)&&S!==void 0&&!Y.hasOwnProperty(z1)&&HY($,Z,z1,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||HY($,Z,k,S,Y,g);return}}for(var o0 in G)S=G[o0],G.hasOwnProperty(o0)&&S!=null&&!Y.hasOwnProperty(o0)&&M1($,Z,o0,null,Y,S);for(f in Y)S=Y[f],g=G[f],!Y.hasOwnProperty(f)||S===g||S==null&&g==null||M1($,Z,f,S,Y,g)}function oM($){switch($){case"class":return"className";case"for":return"htmlFor";default:return $}}function MY($){var Z={};$=$.style;for(var G=0;G<$.length;G++){var Y=$[G];Z[Y]=$.getPropertyValue(Y)}return Z}function aM($,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?(C$(W,B),Y+=U+B+":"+(""+W).trim()):typeof W!=="number"||W===0||qW.has(B)?(C$(W,B),Y+=U+B.replace(ZW,"-$1").toLowerCase().replace(QW,"-ms-")+":"+(""+W).trim()):Y+=U+B.replace(ZW,"-$1").toLowerCase().replace(QW,"-ms-")+":"+W+"px",U=";")}Y=Y||null,Z=$.getAttribute("style"),Z!==Y&&(Y=l8(Y),l8(Z)!==Y&&(G.style=MY($)))}}function O6($,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(B1(Y,Z),$===""+Y)return}q5(Z,$,Y,B)}function iM($,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}q5(Z,$,Y,B)}function FY($,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(B1(Y,G),$===""+Y)return}q5(Z,$,Y,B)}function tM($,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)&&(B1(Y,Z),$===""+Y))return}q5(Z,$,Y,B)}function WY($,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(B1(Y,Z),G=j$(""+Y),$===G)return}q5(Z,$,Y,B)}function eM($,Z,G,Y){for(var U={},B=new Set,W=$.attributes,R=0;R<W.length;R++)switch(W[R].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:B.add(W[R].name)}if(S$(Z)){for(var L in G)if(G.hasOwnProperty(L)){var _=G[L];if(_!=null){if(q9.hasOwnProperty(L))typeof _!=="function"&&_4(L,_);else if(G.suppressHydrationWarning!==!0)switch(L){case"children":typeof _!=="string"&&typeof _!=="number"||q5("children",$.textContent,_,U);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":W=$.innerHTML,_=_?_.__html:void 0,_!=null&&(_=sM($,_),q5(L,W,_,U));continue;case"style":B.delete(L),aM($,_,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=kK($,"class",_),q5("className",W,_,U);continue;default:Y.context===F8&&Z!=="svg"&&Z!=="math"?B.delete(L.toLowerCase()):B.delete(L),W=kK($,L,_),q5(L,W,_,U)}}}}else for(_ in G)if(G.hasOwnProperty(_)&&(L=G[_],L!=null)){if(q9.hasOwnProperty(_))typeof L!=="function"&&_4(_,L);else if(G.suppressHydrationWarning!==!0)switch(_){case"children":typeof L!=="string"&&typeof L!=="number"||q5("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=sM($,L),W!==L&&(U[_]={__html:W}));continue;case"className":O6($,_,"class",L,B,U);continue;case"tabIndex":O6($,_,"tabindex",L,B,U);continue;case"style":B.delete(_),aM($,L,U);continue;case"multiple":B.delete(_),q5(_,$.multiple,L,U);continue;case"muted":B.delete(_),q5(_,$.muted,L,U);continue;case"autoFocus":B.delete("autofocus"),q5(_,$.autofocus,L,U);continue;case"data":if(Z!=="object"){B.delete(_),W=$.getAttribute("data"),q5(_,W,L,U);continue}case"src":case"href":if(!(L!==""||Z==="a"&&_==="href"||Z==="object"&&_==="data")){_==="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.',_,_):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.',_,_);continue}WY($,_,_,L,B,U);continue;case"action":case"formAction":if(W=$.getAttribute(_),typeof L==="function"){B.delete(_.toLowerCase()),_==="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===KV){B.delete(_.toLowerCase()),q5(_,"function",L,U);continue}WY($,_,_.toLowerCase(),L,B,U);continue;case"xlinkHref":WY($,_,"xlink:href",L,B,U);continue;case"contentEditable":FY($,_,"contenteditable",L,B,U);continue;case"spellCheck":FY($,_,"spellcheck",L,B,U);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":FY($,_,_,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":iM($,_,_.toLowerCase(),L,B,U);continue;case"capture":case"download":$:{R=$;var k=W=_,f=U;if(B.delete(k),R=R.getAttribute(k),R===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&&R==="")break $;break;default:if(B1(L,W),R===""+L)break $}q5(W,R,L,f)}continue;case"cols":case"rows":case"size":case"span":$:{if(R=$,k=W=_,f=U,B.delete(k),R=R.getAttribute(k),R===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)&&(B1(L,W),R===""+L))break $}q5(W,R,L,f)}continue;case"rowSpan":tM($,_,"rowspan",L,B,U);continue;case"start":tM($,_,_,L,B,U);continue;case"xHeight":O6($,_,"x-height",L,B,U);continue;case"xlinkActuate":O6($,_,"xlink:actuate",L,B,U);continue;case"xlinkArcrole":O6($,_,"xlink:arcrole",L,B,U);continue;case"xlinkRole":O6($,_,"xlink:role",L,B,U);continue;case"xlinkShow":O6($,_,"xlink:show",L,B,U);continue;case"xlinkTitle":O6($,_,"xlink:title",L,B,U);continue;case"xlinkType":O6($,_,"xlink:type",L,B,U);continue;case"xmlBase":O6($,_,"xml:base",L,B,U);continue;case"xmlLang":O6($,_,"xml:lang",L,B,U);continue;case"xmlSpace":O6($,_,"xml:space",L,B,U);continue;case"inert":L!==""||Y3[_]||(Y3[_]=!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.",_)),iM($,_,_,L,B,U);continue;default:if(!(2<_.length)||_[0]!=="o"&&_[0]!=="O"||_[1]!=="n"&&_[1]!=="N"){R=$B(_),W=!1,Y.context===F8&&Z!=="svg"&&Z!=="math"?B.delete(R.toLowerCase()):(k=_.toLowerCase(),k=TG.hasOwnProperty(k)?TG[k]||null:null,k!==null&&k!==_&&(W=!0,B.delete(k)),B.delete(R));$:if(k=$,f=R,R=L,V$(f))if(k.hasAttribute(f))k=k.getAttribute(f),B1(R,f),R=k===""+R?R:k;else{switch(typeof R){case"function":case"symbol":break $;case"boolean":if(k=f.toLowerCase().slice(0,5),k!=="data-"&&k!=="aria-")break $}R=R===void 0?void 0:null}else R=void 0;W||q5(_,R,L,U)}}}return 0<B.size&&G.suppressHydrationWarning!==!0&&a_($,B,U),Object.keys(U).length===0?null:U}function t_($,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 $F($){switch($){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function e_(){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,R=U.duration;if(B&&R&&$F(W)){W=0,R=U.responseEnd;for(Y+=1;Y<G.length;Y++){var L=G[Y],_=L.startTime;if(_>R)break;var{transferSize:k,initiatorType:f}=L;k&&$F(f)&&(L=L.responseEnd,W+=k*(L<R?1:(R-_)/(L-_)))}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 ZG($){return $.nodeType===9?$:$.ownerDocument}function ZF($){switch($){case P7:return i7;case zG:return U3;default:return F8}}function QF($,Z){if($===F8)switch(Z){case"svg":return i7;case"math":return U3;default:return F8}return $===i7&&Z==="foreignObject"?F8:$}function wY($,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 $C(){var $=window.event;if($&&$.type==="popstate"){if($===tN)return!1;return tN=$,!0}return tN=null,!1}function ZZ(){var $=window.event;return $&&$!==iZ?$.type:null}function QZ(){var $=window.event;return $&&$!==iZ?$.timeStamp:-1.1}function ZC($){setTimeout(function(){throw $})}function QC($,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 JC(){}function GC($,Z,G,Y){i_($,Z,G,Y),$[j5]=Y}function JF($){A$($,"")}function XC($,Z,G){$.nodeValue=G}function GF($){if(!$.__reactWarnedAboutChildrenConflict){var Z=$[j5]||null;if(Z!==null){var G=S0($);G!==null&&(typeof Z.children==="string"||typeof Z.children==="number"?($.__reactWarnedAboutChildrenConflict=!0,G0(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,G0(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 r8($){return $==="head"}function qC($,Z){$.removeChild(Z)}function YC($,Z){($.nodeType===9?$.body:$.nodeName==="HTML"?$.ownerDocument.body:$).removeChild(Z)}function XF($,Z){var G=Z,Y=0;do{var U=G.nextSibling;if($.removeChild(G),U&&U.nodeType===8)if(G=U.data,G===aZ||G===N3){if(Y===0){$.removeChild(U),W7(Z);return}Y--}else if(G===oZ||G===w2||G===V9||G===a7||G===I9)Y++;else if(G===HV)JZ($.ownerDocument.documentElement);else if(G===FV){G=$.ownerDocument.head,JZ(G);for(var B=G.firstChild;B;){var{nextSibling:W,nodeName:R}=B;B[KZ]||R==="SCRIPT"||R==="STYLE"||R==="LINK"&&B.rel.toLowerCase()==="stylesheet"||G.removeChild(B),B=W}}else G===MV&&JZ($.ownerDocument.body);G=U}while(G);W7(Z)}function qF($,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===aZ)if($===0)break;else $--;else G!==oZ&&G!==w2&&G!==V9&&G!==a7||$++;G=Y}while(G)}function NC($){qF($,!0)}function UC($){$=$.style,typeof $.setProperty==="function"?$.setProperty("display","none","important"):$.display="none"}function KC($){$.nodeValue=""}function BC($){qF($,!1)}function HC($,Z){Z=Z[WV],Z=Z!==void 0&&Z!==null&&Z.hasOwnProperty("display")?Z.display:null,$.style.display=Z==null||typeof Z==="boolean"?"":(""+Z).trim()}function MC($,Z){$.nodeValue=Z}function RY($){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":RY(G),$0(G);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(G.rel.toLowerCase()==="stylesheet")continue}$.removeChild(G)}}function FC($,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"){B1(U.name,"name");var B=U.name==null?null:""+U.name;if(U.type==="hidden"&&$.getAttribute("name")===B)return $}else return $;else if(!$[KZ])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($=H6($.nextSibling),$===null)break}return null}function WC($,Z,G){if(Z==="")return null;for(;$.nodeType!==3;){if(($.nodeType!==1||$.nodeName!=="INPUT"||$.type!=="hidden")&&!G)return null;if($=H6($.nextSibling),$===null)return null}return $}function YF($,Z){for(;$.nodeType!==8;){if(($.nodeType!==1||$.nodeName!=="INPUT"||$.type!=="hidden")&&!Z)return null;if($=H6($.nextSibling),$===null)return null}return $}function zY($){return $.data===w2||$.data===V9}function TY($){return $.data===a7||$.data===w2&&$.ownerDocument.readyState!==aw}function wC($,Z){var G=$.ownerDocument;if($.data===V9)$._reactRetry=Z;else if($.data!==w2||G.readyState!==aw)Z();else{var Y=function(){Z(),G.removeEventListener("DOMContentLoaded",Y)};G.addEventListener("DOMContentLoaded",Y),$._reactRetry=Y}}function H6($){for(;$!=null;$=$.nextSibling){var Z=$.nodeType;if(Z===1||Z===3)break;if(Z===8){if(Z=$.data,Z===oZ||Z===a7||Z===w2||Z===V9||Z===I9||Z===oN||Z===ow)break;if(Z===aZ||Z===N3)return null}}return $}function NF($){if($.nodeType===1){for(var Z=$.nodeName.toLowerCase(),G={},Y=$.attributes,U=0;U<Y.length;U++){var B=Y[U];G[oM(B.name)]=B.name.toLowerCase()==="style"?MY($):B.value}return{type:Z,props:G}}return $.nodeType===8?$.data===I9?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:$.nodeValue}function UF($,Z,G){return G===null||G[BV]!==!0?($.nodeValue===Z?$=null:(Z=l8(Z),$=l8($.nodeValue)===Z?null:$.nodeValue),$):null}function LY($){$=$.nextSibling;for(var Z=0;$;){if($.nodeType===8){var G=$.data;if(G===aZ||G===N3){if(Z===0)return H6($.nextSibling);Z--}else G!==oZ&&G!==a7&&G!==w2&&G!==V9&&G!==I9||Z++}$=$.nextSibling}return null}function KF($){$=$.previousSibling;for(var Z=0;$;){if($.nodeType===8){var G=$.data;if(G===oZ||G===a7||G===w2||G===V9||G===I9){if(Z===0)return $;Z--}else G!==aZ&&G!==N3||Z++}$=$.previousSibling}return null}function RC($){W7($)}function zC($){W7($)}function TC($){W7($)}function BF($,Z,G,Y,U){switch(U&&DX($,Y.ancestorInfo),Z=ZG(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 LC($,Z,G,Y){if(!G[a8]&&S0(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]);M5(G,$,Z),G[F5]=Y,G[j5]=Z}function JZ($){for(var Z=$.attributes;Z.length;)$.removeAttributeNode(Z[0]);$0($)}function QG($){return typeof $.getRootNode==="function"?$.getRootNode():$.nodeType===9?$:$.ownerDocument}function HF($,Z,G){var Y=t7;if(Y&&typeof Z==="string"&&Z){var U=V6(Z);U='link[rel="'+$+'"][href="'+U+'"]',typeof G==="string"&&(U+='[crossorigin="'+G+'"]'),QR.has(U)||(QR.add(U),$={rel:$,crossOrigin:G,href:Z},Y.querySelector(U)===null&&(Z=Y.createElement("link"),M5(Z,"link",$),z0(Z),Y.head.appendChild(Z)))}}function MF($,Z,G,Y){var U=(U=n8.current)?QG(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=M7(G.href),Z=e0(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"){$=M7(G.href);var B=e0(U).hoistableStyles,W=B.get($);if(!W&&(U=U.ownerDocument||U,W={type:"stylesheet",instance:null,count:0,state:{loading:E9,preload:null}},B.set($,W),(B=U.querySelector(GZ($)))&&!B._p&&(W.instance=B,W.state.loading=tZ|g6),!h6.has($))){var R={rel:"preload",as:"style",href:G.href,crossOrigin:G.crossOrigin,integrity:G.integrity,media:G.media,hrefLang:G.hrefLang,referrerPolicy:G.referrerPolicy};h6.set($,R),B||PC(U,$,R,W.state)}if(Z&&Y===null)throw G=`
177
177
 
178
- - `+tJ(Z)+`
179
- + `+tJ(J),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."+J);return W}if(Z&&Y!==null)throw J=`
178
+ - `+JG(Z)+`
179
+ + `+JG(G),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."+G);return W}if(Z&&Y!==null)throw G=`
180
180
 
181
- - `+tJ(Z)+`
182
- + `+tJ(J),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."+J);return null;case"script":return Z=J.async,J=J.src,typeof J==="string"&&Z&&typeof Z!=="function"&&typeof Z!=="symbol"?(J=H7(J),Z=i0(U).hoistableScripts,Y=Z.get(J),Y||(Y={type:"script",instance:null,count:0,state:null},Z.set(J,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 tJ($){var Z=0,J="<link";return typeof $.rel==="string"?(Z++,J+=' rel="'+$.rel+'"'):s6.call($,"rel")&&(Z++,J+=' rel="'+($.rel===null?"null":"invalid type "+typeof $.rel)+'"'),typeof $.href==="string"?(Z++,J+=' href="'+$.href+'"'):s6.call($,"href")&&(Z++,J+=' href="'+($.href===null?"null":"invalid type "+typeof $.href)+'"'),typeof $.precedence==="string"?(Z++,J+=' precedence="'+$.precedence+'"'):s6.call($,"precedence")&&(Z++,J+=" precedence={"+($.precedence===null?"null":"invalid type "+typeof $.precedence)+"}"),Object.getOwnPropertyNames($).length>Z&&(J+=" ..."),J+" />"}function B7($){return'href="'+_6($)+'"'}function e$($){return'link[rel="stylesheet"]['+$+"]"}function KF($){return m0({},$,{"data-precedence":$.precedence,precedence:null})}function WC($,Z,J,Y){$.querySelector('link[rel="preload"][as="style"]['+Z+"]")?Y.loading=sZ:(Z=$.createElement("link"),Y.preload=Z,Z.addEventListener("load",function(){return Y.loading|=sZ}),Z.addEventListener("error",function(){return Y.loading|=aw}),H5(Z,"link",J),z0(Z),$.head.appendChild(Z))}function H7($){return'[src="'+_6($)+'"]'}function $Z($){return"script[async]"+$}function BF($,Z,J){if(Z.count++,Z.instance===null)switch(Z.type){case"style":var Y=$.querySelector('style[data-href~="'+_6(J.href)+'"]');if(Y)return Z.instance=Y,z0(Y),Y;var U=m0({},J,{"data-href":J.href,"data-precedence":J.precedence,href:null,precedence:null});return Y=($.ownerDocument||$).createElement("style"),z0(Y),H5(Y,"style",U),eJ(Y,J.precedence,$),Z.instance=Y;case"stylesheet":U=B7(J.href);var B=$.querySelector(e$(U));if(B)return Z.state.loading|=k6,Z.instance=B,z0(B),B;Y=KF(J),(U=f6.get(U))&&zY(Y,U),B=($.ownerDocument||$).createElement("link"),z0(B);var W=B;return W._p=new Promise(function(R,L){W.onload=R,W.onerror=L}),H5(B,"link",Y),Z.state.loading|=k6,eJ(B,J.precedence,$),Z.instance=B;case"script":if(B=H7(J.src),U=$.querySelector($Z(B)))return Z.instance=U,z0(U),U;if(Y=J,U=f6.get(B))Y=m0({},J),TY(Y,U);return $=$.ownerDocument||$,U=$.createElement("script"),z0(U),H5(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&k6)===I9&&(Y=Z.instance,Z.state.loading|=k6,eJ(Y,J.precedence,$));return Z.instance}function eJ($,Z,J){for(var Y=J.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 R=Y[W];if(R.dataset.precedence===Z)B=R;else if(B!==U)break}B?B.parentNode.insertBefore($,B.nextSibling):(Z=J.nodeType===9?J.head:J,Z.insertBefore($,Z.firstChild))}function zY($,Z){$.crossOrigin==null&&($.crossOrigin=Z.crossOrigin),$.referrerPolicy==null&&($.referrerPolicy=Z.referrerPolicy),$.title==null&&($.title=Z.title)}function TY($,Z){$.crossOrigin==null&&($.crossOrigin=Z.crossOrigin),$.referrerPolicy==null&&($.referrerPolicy=Z.referrerPolicy),$.integrity==null&&($.integrity=Z.integrity)}function HF($,Z,J){if(X3===null){var Y=new Map,U=X3=new Map;U.set(J,Y)}else U=X3,Y=U.get(J),Y||(Y=new Map,U.set(J,Y));if(Y.has($))return Y;Y.set($,null),J=J.getElementsByTagName($);for(U=0;U<J.length;U++){var B=J[U];if(!(B[XZ]||B[M5]||$==="link"&&B.getAttribute("rel")==="stylesheet")&&B.namespaceURI!==T7){var W=B.getAttribute(Z)||"";W=$+W;var R=Y.get(W);R?R.push(B):Y.set(W,[B])}}return Y}function MF($,Z,J){$=$.ownerDocument||$,$.head.insertBefore(J,Z==="title"?$.querySelector("head > title"):null)}function wC($,Z,J){var Y=!J.ancestorInfo.containerTagInScope;if(J.context===o7||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;J=[],Z.onLoad&&J.push("`onLoad`"),U&&J.push("`onError`"),B!=null&&J.push("`disabled`"),U=r_(J,"and"),U+=J.length===1?" prop":" props",B=J.length===1?"an "+U:"the "+U,J.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 FF($){return $.type==="stylesheet"&&($.state.loading&iw)===I9?!1:!0}function RC($,Z,J,Y){if(J.type==="stylesheet"&&(typeof Y.media!=="string"||matchMedia(Y.media).matches!==!1)&&(J.state.loading&k6)===I9){if(J.instance===null){var U=B7(Y.href),B=Z.querySelector(e$(U));if(B){Z=B._p,Z!==null&&typeof Z==="object"&&typeof Z.then==="function"&&($.count++,$=$G.bind($),Z.then($,$)),J.state.loading|=k6,J.instance=B,z0(B);return}B=Z.ownerDocument||Z,Y=KF(Y),(U=f6.get(U))&&zY(Y,U),B=B.createElement("link"),z0(B);var W=B;W._p=new Promise(function(R,L){W.onload=R,W.onerror=L}),H5(B,"link",Y),J.instance=B}$.stylesheets===null&&($.stylesheets=new Map),$.stylesheets.set(J,Z),(Z=J.state.preload)&&(J.state.loading&iw)===I9&&($.count++,J=$G.bind($),Z.addEventListener("load",J),Z.addEventListener("error",J))}}function zC($,Z){return $.stylesheets&&$.count===0&&ZG($,$.stylesheets),0<$.count||0<$.imgCount?function(J){var Y=setTimeout(function(){if($.stylesheets&&ZG($,$.stylesheets),$.unsuspend){var B=$.unsuspend;$.unsuspend=null,B()}},HI+Z);0<$.imgBytes&&iN===0&&(iN=125*s_()*FI);var U=setTimeout(function(){if($.waitingForImages=!1,$.count===0&&($.stylesheets&&ZG($,$.stylesheets),$.unsuspend)){var B=$.unsuspend;$.unsuspend=null,B()}},($.imgBytes>iN?50:MI)+Z);return $.unsuspend=J,function(){$.unsuspend=null,clearTimeout(Y),clearTimeout(U)}}:null}function $G(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ZG(this,this.stylesheets);else if(this.unsuspend){var $=this.unsuspend;this.unsuspend=null,$()}}}function ZG($,Z){$.stylesheets=null,$.unsuspend!==null&&($.count++,q3=new Map,Z.forEach(TC,$),q3=null,$G.call($))}function TC($,Z){if(!(Z.state.loading&k6)){var J=q3.get($);if(J)var Y=J.get(tN);else{J=new Map,q3.set($,J);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")J.set(W.dataset.precedence,W),Y=W}Y&&J.set(tN,Y)}U=Z.instance,W=U.getAttribute("data-precedence"),B=J.get(W)||Y,B===Y&&J.set(tN,U),J.set(W,U),this.count++,Y=$G.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|=k6}}function LC($,Z,J,Y,U,B,W,R,L){this.tag=1,this.containerInfo=$,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=V9,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=o9(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=o9(0),this.hiddenUpdates=o9(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=J?"hydrateRoot()":"createRoot()"}function WF($,Z,J,Y,U,B,W,R,L,_,k,f){return $=new LC($,Z,J,W,L,_,k,f,R),Z=uV,B===!0&&(Z|=_5|o6),Z|=k0,B=P(3,null,null,Z),$.current=B,B.stateNode=$,Z=sX(),i2(Z),$.pooledCache=Z,i2(Z),B.memoizedState={element:Y,isDehydrated:J,cache:Z},tX(B),$}function wF($){if(!$)return t8;return $=t8,$}function LY($,Z,J,Y,U,B){if(P5&&typeof P5.onScheduleFiberRoot==="function")try{P5.onScheduleFiberRoot(R7,Y,J)}catch(W){V4||(V4=!0,console.error("React instrumentation encountered an error: %o",W))}U=wF(U),Y.context===null?Y.context=U:Y.pendingContext=U,C4&&K6!==null&&!QR&&(QR=!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
+ - `+JG(Z)+`
182
+ + `+JG(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=F7(G),Z=e0(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 JG($){var Z=0,G="<link";return typeof $.rel==="string"?(Z++,G+=' rel="'+$.rel+'"'):a6.call($,"rel")&&(Z++,G+=' rel="'+($.rel===null?"null":"invalid type "+typeof $.rel)+'"'),typeof $.href==="string"?(Z++,G+=' href="'+$.href+'"'):a6.call($,"href")&&(Z++,G+=' href="'+($.href===null?"null":"invalid type "+typeof $.href)+'"'),typeof $.precedence==="string"?(Z++,G+=' precedence="'+$.precedence+'"'):a6.call($,"precedence")&&(Z++,G+=" precedence={"+($.precedence===null?"null":"invalid type "+typeof $.precedence)+"}"),Object.getOwnPropertyNames($).length>Z&&(G+=" ..."),G+" />"}function M7($){return'href="'+V6($)+'"'}function GZ($){return'link[rel="stylesheet"]['+$+"]"}function FF($){return d0({},$,{"data-precedence":$.precedence,precedence:null})}function PC($,Z,G,Y){$.querySelector('link[rel="preload"][as="style"]['+Z+"]")?Y.loading=tZ:(Z=$.createElement("link"),Y.preload=Z,Z.addEventListener("load",function(){return Y.loading|=tZ}),Z.addEventListener("error",function(){return Y.loading|=$R}),M5(Z,"link",G),z0(Z),$.head.appendChild(Z))}function F7($){return'[src="'+V6($)+'"]'}function XZ($){return"script[async]"+$}function WF($,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,z0(Y),Y;var U=d0({},G,{"data-href":G.href,"data-precedence":G.precedence,href:null,precedence:null});return Y=($.ownerDocument||$).createElement("style"),z0(Y),M5(Y,"style",U),GG(Y,G.precedence,$),Z.instance=Y;case"stylesheet":U=M7(G.href);var B=$.querySelector(GZ(U));if(B)return Z.state.loading|=g6,Z.instance=B,z0(B),B;Y=FF(G),(U=h6.get(U))&&PY(Y,U),B=($.ownerDocument||$).createElement("link"),z0(B);var W=B;return W._p=new Promise(function(R,L){W.onload=R,W.onerror=L}),M5(B,"link",Y),Z.state.loading|=g6,GG(B,G.precedence,$),Z.instance=B;case"script":if(B=F7(G.src),U=$.querySelector(XZ(B)))return Z.instance=U,z0(U),U;if(Y=G,U=h6.get(B))Y=d0({},G),_Y(Y,U);return $=$.ownerDocument||$,U=$.createElement("script"),z0(U),M5(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&g6)===E9&&(Y=Z.instance,Z.state.loading|=g6,GG(Y,G.precedence,$));return Z.instance}function GG($,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 R=Y[W];if(R.dataset.precedence===Z)B=R;else if(B!==U)break}B?B.parentNode.insertBefore($,B.nextSibling):(Z=G.nodeType===9?G.head:G,Z.insertBefore($,Z.firstChild))}function PY($,Z){$.crossOrigin==null&&($.crossOrigin=Z.crossOrigin),$.referrerPolicy==null&&($.referrerPolicy=Z.referrerPolicy),$.title==null&&($.title=Z.title)}function _Y($,Z){$.crossOrigin==null&&($.crossOrigin=Z.crossOrigin),$.referrerPolicy==null&&($.referrerPolicy=Z.referrerPolicy),$.integrity==null&&($.integrity=Z.integrity)}function wF($,Z,G){if(K3===null){var Y=new Map,U=K3=new Map;U.set(G,Y)}else U=K3,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[KZ]||B[F5]||$==="link"&&B.getAttribute("rel")==="stylesheet")&&B.namespaceURI!==P7){var W=B.getAttribute(Z)||"";W=$+W;var R=Y.get(W);R?R.push(B):Y.set(W,[B])}}return Y}function RF($,Z,G){$=$.ownerDocument||$,$.head.insertBefore(G,Z==="title"?$.querySelector("head > title"):null)}function _C($,Z,G){var Y=!G.ancestorInfo.containerTagInScope;if(G.context===i7||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=t_(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 zF($){return $.type==="stylesheet"&&($.state.loading&ZR)===E9?!1:!0}function CC($,Z,G,Y){if(G.type==="stylesheet"&&(typeof Y.media!=="string"||matchMedia(Y.media).matches!==!1)&&(G.state.loading&g6)===E9){if(G.instance===null){var U=M7(Y.href),B=Z.querySelector(GZ(U));if(B){Z=B._p,Z!==null&&typeof Z==="object"&&typeof Z.then==="function"&&($.count++,$=XG.bind($),Z.then($,$)),G.state.loading|=g6,G.instance=B,z0(B);return}B=Z.ownerDocument||Z,Y=FF(Y),(U=h6.get(U))&&PY(Y,U),B=B.createElement("link"),z0(B);var W=B;W._p=new Promise(function(R,L){W.onload=R,W.onerror=L}),M5(B,"link",Y),G.instance=B}$.stylesheets===null&&($.stylesheets=new Map),$.stylesheets.set(G,Z),(Z=G.state.preload)&&(G.state.loading&ZR)===E9&&($.count++,G=XG.bind($),Z.addEventListener("load",G),Z.addEventListener("error",G))}}function IC($,Z){return $.stylesheets&&$.count===0&&qG($,$.stylesheets),0<$.count||0<$.imgCount?function(G){var Y=setTimeout(function(){if($.stylesheets&&qG($,$.stylesheets),$.unsuspend){var B=$.unsuspend;$.unsuspend=null,B()}},zV+Z);0<$.imgBytes&&$U===0&&($U=125*e_()*LV);var U=setTimeout(function(){if($.waitingForImages=!1,$.count===0&&($.stylesheets&&qG($,$.stylesheets),$.unsuspend)){var B=$.unsuspend;$.unsuspend=null,B()}},($.imgBytes>$U?50:TV)+Z);return $.unsuspend=G,function(){$.unsuspend=null,clearTimeout(Y),clearTimeout(U)}}:null}function XG(){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++,B3=new Map,Z.forEach(VC,$),B3=null,XG.call($))}function VC($,Z){if(!(Z.state.loading&g6)){var G=B3.get($);if(G)var Y=G.get(ZU);else{G=new Map,B3.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(ZU,Y)}U=Z.instance,W=U.getAttribute("data-precedence"),B=G.get(W)||Y,B===Y&&G.set(ZU,U),G.set(W,U),this.count++,Y=XG.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|=g6}}function OC($,Z,G,Y,U,B,W,R,L){this.tag=1,this.containerInfo=$,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=O9,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=i9(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=i9(0),this.hiddenUpdates=i9(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 TF($,Z,G,Y,U,B,W,R,L,_,k,f){return $=new OC($,Z,G,W,L,_,k,f,R),Z=lI,B===!0&&(Z|=I5|t6),Z|=f0,B=P(3,null,null,Z),$.current=B,B.stateNode=$,Z=aX(),e2(Z),$.pooledCache=Z,e2(Z),B.memoizedState={element:Y,isDehydrated:G,cache:Z},Zq(B),$}function LF($){if(!$)return $2;return $=$2,$}function CY($,Z,G,Y,U,B){if(C5&&typeof C5.onScheduleFiberRoot==="function")try{C5.onScheduleFiberRoot(T7,Y,G)}catch(W){O4||(O4=!0,console.error("React instrumentation encountered an error: %o",W))}U=LF(U),Y.context===null?Y.context=U:Y.pendingContext=U,V4&&F6!==null&&!qR&&(qR=!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(K6)||"Unknown")),Y=g8(Z),Y.payload={element:J},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),J=h8($,Y,Z),J!==null&&(N4(Z,"root.render()",null),S1(J,$,Z),k$(J,$,Z))}function RF($,Z){if($=$.memoizedState,$!==null&&$.dehydrated!==null){var J=$.retryLane;$.retryLane=J!==0&&J<Z?J:Z}}function PY($,Z){RF($,Z),($=$.alternate)&&RF($,Z)}function zF($){if($.tag===13||$.tag===31){var Z=L5($,67108864);Z!==null&&S1(Z,$,67108864),PY($,67108864)}}function TF($){if($.tag===13||$.tag===31){var Z=Y6($);Z=d2(Z);var J=L5($,Z);J!==null&&S1(J,$,Z),PY($,Z)}}function PC(){return K6}function _C($,Z,J,Y){var U=x.T;x.T=null;var B=X1.p;try{X1.p=B6,_Y($,Z,J,Y)}finally{X1.p=B,x.T=U}}function CC($,Z,J,Y){var U=x.T;x.T=null;var B=X1.p;try{X1.p=n6,_Y($,Z,J,Y)}finally{X1.p=B,x.T=U}}function _Y($,Z,J,Y){if(N3){var U=CY(Y);if(U===null)YY($,Z,Y,U3,J),PF($,Y);else if(VC(U,$,Z,J,Y))Y.stopPropagation();else if(PF($,Y),Z&4&&-1<wI.indexOf($)){for(;U!==null;){var B=E0(U);if(B!==null)switch(B.tag){case 3:if(B=B.stateNode,B.current.memoizedState.isDehydrated){var W=G4(B.pendingLanes);if(W!==0){var R=B;R.pendingLanes|=2;for(R.entangledLanes|=2;W;){var L=1<<31-E5(W);R.entanglements[1]|=L,W&=~L}T4(B),(a0&(e1|W6))===N5&&(lG=X5()+Sw,n$(0,!1))}}break;case 31:case 13:R=L5(B,2),R!==null&&S1(R,B,2),N7(),PY(B,2)}if(B=CY(Y),B===null&&YY($,Z,Y,U3,J),B===U)break;U=B}U!==null&&Y.stopPropagation()}else YY($,Z,Y,null,J)}}function CY($){return $=jX($),VY($)}function VY($){if(U3=null,$=Y0($),$!==null){var Z=D($);if(Z===null)$=null;else{var J=Z.tag;if(J===13){if($=h(Z),$!==null)return $;$=null}else if(J===31){if($=p(Z),$!==null)return $;$=null}else if(J===3){if(Z.stateNode.current.memoizedState.isDehydrated)return Z.tag===3?Z.stateNode.containerInfo:null;$=null}else Z!==$&&($=null)}}return U3=$,null}function LF($){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 B6;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 n6;case"message":switch(bC()){case gY:return B6;case hY:return n6;case w7:case kC:return O4;case uY:return BG;default:return O4}default:return O4}}function PF($,Z){switch($){case"focusin":case"focusout":W2=null;break;case"dragenter":case"dragleave":w2=null;break;case"mouseover":case"mouseout":R2=null;break;case"pointerover":case"pointerout":oZ.delete(Z.pointerId);break;case"gotpointercapture":case"lostpointercapture":aZ.delete(Z.pointerId)}}function ZZ($,Z,J,Y,U,B){if($===null||$.nativeEvent!==B)return $={blockedOn:Z,domEventName:J,eventSystemFlags:Y,nativeEvent:B,targetContainers:[U]},Z!==null&&(Z=E0(Z),Z!==null&&zF(Z)),$;return $.eventSystemFlags|=Y,Z=$.targetContainers,U!==null&&Z.indexOf(U)===-1&&Z.push(U),$}function VC($,Z,J,Y,U){switch(Z){case"focusin":return W2=ZZ(W2,$,Z,J,Y,U),!0;case"dragenter":return w2=ZZ(w2,$,Z,J,Y,U),!0;case"mouseover":return R2=ZZ(R2,$,Z,J,Y,U),!0;case"pointerover":var B=U.pointerId;return oZ.set(B,ZZ(oZ.get(B)||null,$,Z,J,Y,U)),!0;case"gotpointercapture":return B=U.pointerId,aZ.set(B,ZZ(aZ.get(B)||null,$,Z,J,Y,U)),!0}return!1}function _F($){var Z=Y0($.target);if(Z!==null){var J=D(Z);if(J!==null){if(Z=J.tag,Z===13){if(Z=h(J),Z!==null){$.blockedOn=Z,r($.priority,function(){TF(J)});return}}else if(Z===31){if(Z=p(J),Z!==null){$.blockedOn=Z,r($.priority,function(){TF(J)});return}}else if(Z===3&&J.stateNode.current.memoizedState.isDehydrated){$.blockedOn=J.tag===3?J.stateNode.containerInfo:null;return}}}$.blockedOn=null}function QG($){if($.blockedOn!==null)return!1;for(var Z=$.targetContainers;0<Z.length;){var J=CY($.nativeEvent);if(J===null){J=$.nativeEvent;var Y=new J.constructor(J.type,J),U=Y;qZ!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),qZ=U,J.target.dispatchEvent(Y),qZ===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."),qZ=null}else return Z=E0(J),Z!==null&&zF(Z),$.blockedOn=J,!1;Z.shift()}return!0}function CF($,Z,J){QG($)&&J.delete(Z)}function IC(){eN=!1,W2!==null&&QG(W2)&&(W2=null),w2!==null&&QG(w2)&&(w2=null),R2!==null&&QG(R2)&&(R2=null),oZ.forEach(CF),aZ.forEach(CF)}function JG($,Z){$.blockedOn===Z&&($.blockedOn=null,eN||(eN=!0,e0.unstable_scheduleCallback(e0.unstable_NormalPriority,IC)))}function VF($){K3!==$&&(K3=$,e0.unstable_scheduleCallback(e0.unstable_NormalPriority,function(){K3===$&&(K3=null);for(var Z=0;Z<$.length;Z+=3){var J=$[Z],Y=$[Z+1],U=$[Z+2];if(typeof Y!=="function")if(VY(Y||J)===null)continue;else break;var B=E0(J);B!==null&&($.splice(Z,3),Z-=3,J={pending:!0,data:U,method:J.method,action:Y},Object.freeze(J),Vq(B,J,Y,U))}}))}function M7($){function Z(L){return JG(L,$)}W2!==null&&JG(W2,$),w2!==null&&JG(w2,$),R2!==null&&JG(R2,$),oZ.forEach(Z),aZ.forEach(Z);for(var J=0;J<z2.length;J++){var Y=z2[J];Y.blockedOn===$&&(Y.blockedOn=null)}for(;0<z2.length&&(J=z2[0],J.blockedOn===null);)_F(J),J.blockedOn===null&&z2.shift();if(J=($.ownerDocument||$).$$reactFormReplay,J!=null)for(Y=0;Y<J.length;Y+=3){var U=J[Y],B=J[Y+1],W=U[A5]||null;if(typeof B==="function")W||VF(J);else if(W){var R=null;if(B&&B.hasAttribute("formAction")){if(U=B,W=B[A5]||null)R=W.formAction;else if(VY(U)!==null)continue}else R=W.action;typeof R==="function"?J[Y+1]=R:(J.splice(Y,3),Y-=3),VF(J)}}}function IF(){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(J,20)}function J(){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(J,100),function(){Y=!0,navigation.removeEventListener("navigate",$),navigation.removeEventListener("navigatesuccess",Z),navigation.removeEventListener("navigateerror",Z),U!==null&&(U(),U=null)}}}function IY($){this._internalRoot=$}function GG($){this._internalRoot=$}function OF($){$[n8]&&($._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 m0=Object.assign,OC=Symbol.for("react.element"),P4=Symbol.for("react.transitional.element"),F7=Symbol.for("react.portal"),W7=Symbol.for("react.fragment"),XG=Symbol.for("react.strict_mode"),OY=Symbol.for("react.profiler"),EY=Symbol.for("react.consumer"),_4=Symbol.for("react.context"),QZ=Symbol.for("react.forward_ref"),AY=Symbol.for("react.suspense"),jY=Symbol.for("react.suspense_list"),qG=Symbol.for("react.memo"),U6=Symbol.for("react.lazy"),SY=Symbol.for("react.activity"),EC=Symbol.for("react.memo_cache_sentinel"),EF=Symbol.iterator,AC=Symbol.for("react.client.reference"),i1=Array.isArray,x=N$.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X1=UK.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,jC=Object.freeze({pending:!1,data:null,method:null,action:null}),DY=[],vY=[],i4=-1,l8=K0(null),JZ=K0(null),r8=K0(null),YG=K0(null),GZ=0,AF,jF,SF,DF,vF,bF,kF;v.__reactDisabledLog=!0;var bY,fF,kY=!1,fY=new(typeof WeakMap==="function"?WeakMap:Map),K6=null,C4=!1,s6=Object.prototype.hasOwnProperty,yY=e0.unstable_scheduleCallback,SC=e0.unstable_cancelCallback,DC=e0.unstable_shouldYield,vC=e0.unstable_requestPaint,X5=e0.unstable_now,bC=e0.unstable_getCurrentPriorityLevel,gY=e0.unstable_ImmediatePriority,hY=e0.unstable_UserBlockingPriority,w7=e0.unstable_NormalPriority,kC=e0.unstable_LowPriority,uY=e0.unstable_IdlePriority,fC=e0.log,yC=e0.unstable_setDisableYieldValue,R7=null,P5=null,V4=!1,I4=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",E5=Math.clz32?Math.clz32:oQ,gC=Math.log,hC=Math.LN2,NG=256,UG=262144,KG=4194304,B6=2,n6=8,O4=32,BG=268435456,s8=Math.random().toString(36).slice(2),M5="__reactFiber$"+s8,A5="__reactProps$"+s8,n8="__reactContainer$"+s8,xY="__reactEvents$"+s8,uC="__reactListeners$"+s8,xC="__reactHandles$"+s8,yF="__reactResources$"+s8,XZ="__reactMarker$"+s8,gF=new Set,G9={},mY={},mC={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},dC=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]*$"),hF={},uF={},pC=/[\n"\\]/g,xF=!1,mF=!1,dF=!1,pF=!1,cF=!1,lF=!1,rF=["value","defaultValue"],sF=!1,nF=/["'&<>\n\t]|^\s|\s$/,cC="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(" "),oF="applet caption html table td th marquee object template foreignObject desc title".split(" "),lC=oF.concat(["button"]),rC="dd dt li option optgroup p rp rt".split(" "),aF={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},HG={},dY={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"]},iF=/([A-Z])/g,tF=/^ms-/,sC=/^(?:webkit|moz|o)[A-Z]/,nC=/^-ms-/,oC=/-(.)/g,eF=/;\s*$/,z7={},pY={},$W=!1,ZW=!1,QW=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(" ")),MG="http://www.w3.org/1998/Math/MathML",T7="http://www.w3.org/2000/svg",aC=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"]]),FG={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"},JW={"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},L7={},iC=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]*$"),tC=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]*$"),GW=!1,j5={},XW=/^on./,eC=/^on[^A-Z]/,$V=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]*$"),ZV=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]*$"),QV=/^[\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,qZ=null,P7=null,_7=null,cY=!1,E4=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),lY=!1;if(E4)try{var YZ={};Object.defineProperty(YZ,"passive",{get:function(){lY=!0}}),window.addEventListener("test",YZ,YZ),window.removeEventListener("test",YZ,YZ)}catch($){lY=!1}var o8=null,rY=null,WG=null,X9={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function($){return $.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},wG=y5(X9),NZ=m0({},X9,{view:0,detail:0}),JV=y5(NZ),sY,nY,UZ,RG=m0({},NZ,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:SX,button:0,buttons:0,relatedTarget:function($){return $.relatedTarget===void 0?$.fromElement===$.srcElement?$.toElement:$.fromElement:$.relatedTarget},movementX:function($){if("movementX"in $)return $.movementX;return $!==UZ&&(UZ&&$.type==="mousemove"?(sY=$.screenX-UZ.screenX,nY=$.screenY-UZ.screenY):nY=sY=0,UZ=$),sY},movementY:function($){return"movementY"in $?$.movementY:nY}}),qW=y5(RG),GV=m0({},RG,{dataTransfer:0}),XV=y5(GV),qV=m0({},NZ,{relatedTarget:0}),oY=y5(qV),YV=m0({},X9,{animationName:0,elapsedTime:0,pseudoElement:0}),NV=y5(YV),UV=m0({},X9,{clipboardData:function($){return"clipboardData"in $?$.clipboardData:window.clipboardData}}),KV=y5(UV),BV=m0({},X9,{data:0}),YW=y5(BV),HV=YW,MV={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},FV={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"},WV={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},wV=m0({},NZ,{key:function($){if($.key){var Z=MV[$.key]||$.key;if(Z!=="Unidentified")return Z}return $.type==="keypress"?($=QJ($),$===13?"Enter":String.fromCharCode($)):$.type==="keydown"||$.type==="keyup"?FV[$.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:SX,charCode:function($){return $.type==="keypress"?QJ($):0},keyCode:function($){return $.type==="keydown"||$.type==="keyup"?$.keyCode:0},which:function($){return $.type==="keypress"?QJ($):$.type==="keydown"||$.type==="keyup"?$.keyCode:0}}),RV=y5(wV),zV=m0({},RG,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),NW=y5(zV),TV=m0({},NZ,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:SX}),LV=y5(TV),PV=m0({},X9,{propertyName:0,elapsedTime:0,pseudoElement:0}),_V=y5(PV),CV=m0({},RG,{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}),VV=y5(CV),IV=m0({},X9,{newState:0,oldState:0}),OV=y5(IV),EV=[9,13,27,32],UW=229,aY=E4&&"CompositionEvent"in window,KZ=null;E4&&"documentMode"in document&&(KZ=document.documentMode);var AV=E4&&"TextEvent"in window&&!KZ,KW=E4&&(!aY||KZ&&8<KZ&&11>=KZ),BW=32,HW=String.fromCharCode(BW),MW=!1,C7=!1,jV={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},BZ=null,HZ=null,FW=!1;E4&&(FW=aP("input")&&(!document.documentMode||9<document.documentMode));var S5=typeof Object.is==="function"?Object.is:Q_,SV=E4&&"documentMode"in document&&11>=document.documentMode,V7=null,iY=null,MZ=null,tY=!1,I7={animationend:c2("Animation","AnimationEnd"),animationiteration:c2("Animation","AnimationIteration"),animationstart:c2("Animation","AnimationStart"),transitionrun:c2("Transition","TransitionRun"),transitionstart:c2("Transition","TransitionStart"),transitioncancel:c2("Transition","TransitionCancel"),transitionend:c2("Transition","TransitionEnd")},eY={},WW={};E4&&(WW=document.createElement("div").style,("AnimationEvent"in window)||(delete I7.animationend.animation,delete I7.animationiteration.animation,delete I7.animationstart.animation),("TransitionEvent"in window)||delete I7.transitionend.transition);var wW=l2("animationend"),RW=l2("animationiteration"),zW=l2("animationstart"),DV=l2("transitionrun"),vV=l2("transitionstart"),bV=l2("transitioncancel"),TW=l2("transitionend"),LW=new Map,$N="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(" ");$N.push("scrollEnd");var PW=0;if(typeof performance==="object"&&typeof performance.now==="function")var kV=performance,_W=function(){return kV.now()};else{var fV=Date;_W=function(){return fV.now()}}var ZN=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($)},yV="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.",zG=0,QN=1,JN=2,GN=3,TG="– ",LG="+ ",CW="  ",T1=typeof console<"u"&&typeof console.timeStamp==="function"&&typeof performance<"u"&&typeof performance.measure==="function",V6="Components ⚛",d0="Scheduler ⚛",c0="Blocking",a8=!1,t4={color:"primary",properties:null,tooltipText:"",track:V6},i8={start:-0,end:-0,detail:{devtools:t4}},gV=["Changed Props",""],VW="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",hV=["Changed Props",VW],FZ=1,e4=2,I6=[],O7=0,XN=0,t8={};Object.freeze(t8);var O6=null,E7=null,C0=0,uV=1,k0=2,_5=8,o6=16,xV=32,IW=!1;try{var OW=Object.preventExtensions({})}catch($){IW=!0}var qN=new WeakMap,A7=[],j7=0,PG=null,WZ=0,E6=[],A6=0,q9=null,$8=1,Z8="",F5=null,L1=null,r0=!1,A4=!1,H6=null,e8=null,j6=!1,YN=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."),NN=K0(null),UN=K0(null),EW={},_G=null,S7=null,D7=!1,mV=typeof AbortController<"u"?AbortController:function(){var $=[],Z=this.signal={aborted:!1,addEventListener:function(J,Y){$.push(Y)}};this.abort=function(){Z.aborted=!0,$.forEach(function(J){return J()})}},dV=e0.unstable_scheduleCallback,pV=e0.unstable_NormalPriority,d1={$$typeof:_4,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},p1=e0.unstable_now,CG=console.createTask?console.createTask:function(){return null},wZ=1,VG=2,q5=-0,$2=-0,Q8=-0,J8=null,D5=-1.1,Y9=-0,E1=-0,T0=-1.1,P0=-1.1,I1=null,D1=!1,Z2=-0,j4=-1.1,RZ=null,Q2=0,KN=null,BN=null,N9=-1.1,zZ=null,v7=-1.1,IG=-1.1,S4=-0,G8=-1.1,S6=-1.1,HN=0,TZ=null,AW=null,jW=null,J2=-1.1,U9=null,G2=-1.1,OG=-1.1,SW=-0,DW=-0,EG=0,X8=null,vW=0,LZ=-1.1,AG=!1,jG=!1,PZ=null,MN=0,K9=0,b7=null,bW=x.S;x.S=function($,Z){if(Aw=X5(),typeof Z==="object"&&Z!==null&&typeof Z.then==="function"){if(0>G8&&0>S6){G8=p1();var J=i$(),Y=a$();if(J!==G2||Y!==U9)G2=-1.1;J2=J,U9=Y}U_($,Z)}bW!==null&&bW($,Z)};var B9=K0(null),a6={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},_Z=[],CZ=[],VZ=[],IZ=[],OZ=[],EZ=[],H9=new Set;a6.recordUnsafeLifecycleWarnings=function($,Z){H9.has($.type)||(typeof Z.componentWillMount==="function"&&Z.componentWillMount.__suppressDeprecationWarning!==!0&&_Z.push($),$.mode&_5&&typeof Z.UNSAFE_componentWillMount==="function"&&CZ.push($),typeof Z.componentWillReceiveProps==="function"&&Z.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&VZ.push($),$.mode&_5&&typeof Z.UNSAFE_componentWillReceiveProps==="function"&&IZ.push($),typeof Z.componentWillUpdate==="function"&&Z.componentWillUpdate.__suppressDeprecationWarning!==!0&&OZ.push($),$.mode&_5&&typeof Z.UNSAFE_componentWillUpdate==="function"&&EZ.push($))},a6.flushPendingUnsafeLifecycleWarnings=function(){var $=new Set;0<_Z.length&&(_Z.forEach(function(R){$.add(d(R)||"Component"),H9.add(R.type)}),_Z=[]);var Z=new Set;0<CZ.length&&(CZ.forEach(function(R){Z.add(d(R)||"Component"),H9.add(R.type)}),CZ=[]);var J=new Set;0<VZ.length&&(VZ.forEach(function(R){J.add(d(R)||"Component"),H9.add(R.type)}),VZ=[]);var Y=new Set;0<IZ.length&&(IZ.forEach(function(R){Y.add(d(R)||"Component"),H9.add(R.type)}),IZ=[]);var U=new Set;0<OZ.length&&(OZ.forEach(function(R){U.add(d(R)||"Component"),H9.add(R.type)}),OZ=[]);var B=new Set;if(0<EZ.length&&(EZ.forEach(function(R){B.add(d(R)||"Component"),H9.add(R.type)}),EZ=[]),0<Z.size){var W=T(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(F6)||"Unknown")),Y=u8(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=x8($,Y,Z),G!==null&&(K4(Z,"root.render()",null),D1(G,$,Z),u$(G,$,Z))}function PF($,Z){if($=$.memoizedState,$!==null&&$.dehydrated!==null){var G=$.retryLane;$.retryLane=G!==0&&G<Z?G:Z}}function IY($,Z){PF($,Z),($=$.alternate)&&PF($,Z)}function _F($){if($.tag===13||$.tag===31){var Z=_5($,67108864);Z!==null&&D1(Z,$,67108864),IY($,67108864)}}function CF($){if($.tag===13||$.tag===31){var Z=B6($);Z=c2(Z);var G=_5($,Z);G!==null&&D1(G,$,Z),IY($,Z)}}function EC(){return F6}function AC($,Z,G,Y){var U=x.T;x.T=null;var B=q1.p;try{q1.p=W6,VY($,Z,G,Y)}finally{q1.p=B,x.T=U}}function SC($,Z,G,Y){var U=x.T;x.T=null;var B=q1.p;try{q1.p=i6,VY($,Z,G,Y)}finally{q1.p=B,x.T=U}}function VY($,Z,G,Y){if(M3){var U=OY(Y);if(U===null)KY($,Z,Y,F3,G),VF($,Y);else if(jC(U,$,Z,G,Y))Y.stopPropagation();else if(VF($,Y),Z&4&&-1<_V.indexOf($)){for(;U!==null;){var B=S0(U);if(B!==null)switch(B.tag){case 3:if(B=B.stateNode,B.current.memoizedState.isDehydrated){var W=q4(B.pendingLanes);if(W!==0){var R=B;R.pendingLanes|=2;for(R.entangledLanes|=2;W;){var L=1<<31-S5(W);R.entanglements[1]|=L,W&=~L}P4(B),(i0&(Q5|T6))===K5&&(aG=Y5()+kw,e$(0,!1))}}break;case 31:case 13:R=_5(B,2),R!==null&&D1(R,B,2),K7(),IY(B,2)}if(B=OY(Y),B===null&&KY($,Z,Y,F3,G),B===U)break;U=B}U!==null&&Y.stopPropagation()}else KY($,Z,Y,null,G)}}function OY($){return $=vX($),EY($)}function EY($){if(F3=null,$=Y0($),$!==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 F3=$,null}function IF($){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 W6;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 i6;case"message":switch(uC()){case xY:return W6;case mY:return i6;case z7:case xC:return A4;case dY:return wG;default:return A4}default:return A4}}function VF($,Z){switch($){case"focusin":case"focusout":R2=null;break;case"dragenter":case"dragleave":z2=null;break;case"mouseover":case"mouseout":T2=null;break;case"pointerover":case"pointerout":$Q.delete(Z.pointerId);break;case"gotpointercapture":case"lostpointercapture":ZQ.delete(Z.pointerId)}}function qZ($,Z,G,Y,U,B){if($===null||$.nativeEvent!==B)return $={blockedOn:Z,domEventName:G,eventSystemFlags:Y,nativeEvent:B,targetContainers:[U]},Z!==null&&(Z=S0(Z),Z!==null&&_F(Z)),$;return $.eventSystemFlags|=Y,Z=$.targetContainers,U!==null&&Z.indexOf(U)===-1&&Z.push(U),$}function jC($,Z,G,Y,U){switch(Z){case"focusin":return R2=qZ(R2,$,Z,G,Y,U),!0;case"dragenter":return z2=qZ(z2,$,Z,G,Y,U),!0;case"mouseover":return T2=qZ(T2,$,Z,G,Y,U),!0;case"pointerover":var B=U.pointerId;return $Q.set(B,qZ($Q.get(B)||null,$,Z,G,Y,U)),!0;case"gotpointercapture":return B=U.pointerId,ZQ.set(B,qZ(ZQ.get(B)||null,$,Z,G,Y,U)),!0}return!1}function OF($){var Z=Y0($.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(){CF(G)});return}}else if(Z===31){if(Z=p(G),Z!==null){$.blockedOn=Z,r($.priority,function(){CF(G)});return}}else if(Z===3&&G.stateNode.current.memoizedState.isDehydrated){$.blockedOn=G.tag===3?G.stateNode.containerInfo:null;return}}}$.blockedOn=null}function YG($){if($.blockedOn!==null)return!1;for(var Z=$.targetContainers;0<Z.length;){var G=OY($.nativeEvent);if(G===null){G=$.nativeEvent;var Y=new G.constructor(G.type,G),U=Y;BZ!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),BZ=U,G.target.dispatchEvent(Y),BZ===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."),BZ=null}else return Z=S0(G),Z!==null&&_F(Z),$.blockedOn=G,!1;Z.shift()}return!0}function EF($,Z,G){YG($)&&G.delete(Z)}function DC(){QU=!1,R2!==null&&YG(R2)&&(R2=null),z2!==null&&YG(z2)&&(z2=null),T2!==null&&YG(T2)&&(T2=null),$Q.forEach(EF),ZQ.forEach(EF)}function NG($,Z){$.blockedOn===Z&&($.blockedOn=null,QU||(QU=!0,Z1.unstable_scheduleCallback(Z1.unstable_NormalPriority,DC)))}function AF($){W3!==$&&(W3=$,Z1.unstable_scheduleCallback(Z1.unstable_NormalPriority,function(){W3===$&&(W3=null);for(var Z=0;Z<$.length;Z+=3){var G=$[Z],Y=$[Z+1],U=$[Z+2];if(typeof Y!=="function")if(EY(Y||G)===null)continue;else break;var B=S0(G);B!==null&&($.splice(Z,3),Z-=3,G={pending:!0,data:U,method:G.method,action:Y},Object.freeze(G),Eq(B,G,Y,U))}}))}function W7($){function Z(L){return NG(L,$)}R2!==null&&NG(R2,$),z2!==null&&NG(z2,$),T2!==null&&NG(T2,$),$Q.forEach(Z),ZQ.forEach(Z);for(var G=0;G<L2.length;G++){var Y=L2[G];Y.blockedOn===$&&(Y.blockedOn=null)}for(;0<L2.length&&(G=L2[0],G.blockedOn===null);)OF(G),G.blockedOn===null&&L2.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[j5]||null;if(typeof B==="function")W||AF(G);else if(W){var R=null;if(B&&B.hasAttribute("formAction")){if(U=B,W=B[j5]||null)R=W.formAction;else if(EY(U)!==null)continue}else R=W.action;typeof R==="function"?G[Y+1]=R:(G.splice(Y,3),Y-=3),AF(G)}}}function SF(){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 AY($){this._internalRoot=$}function UG($){this._internalRoot=$}function jF($){$[a8]&&($._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 d0=Object.assign,vC=Symbol.for("react.element"),C4=Symbol.for("react.transitional.element"),w7=Symbol.for("react.portal"),R7=Symbol.for("react.fragment"),KG=Symbol.for("react.strict_mode"),SY=Symbol.for("react.profiler"),jY=Symbol.for("react.consumer"),I4=Symbol.for("react.context"),YZ=Symbol.for("react.forward_ref"),DY=Symbol.for("react.suspense"),vY=Symbol.for("react.suspense_list"),BG=Symbol.for("react.memo"),M6=Symbol.for("react.lazy"),bY=Symbol.for("react.activity"),bC=Symbol.for("react.memo_cache_sentinel"),DF=Symbol.iterator,kC=Symbol.for("react.client.reference"),$5=Array.isArray,x=K$.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q1=HK.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,fC=Object.freeze({pending:!1,data:null,method:null,action:null}),kY=[],fY=[],$8=-1,s8=K0(null),NZ=K0(null),n8=K0(null),HG=K0(null),UZ=0,vF,bF,kF,fF,yF,gF,hF;v.__reactDisabledLog=!0;var yY,uF,gY=!1,hY=new(typeof WeakMap==="function"?WeakMap:Map),F6=null,V4=!1,a6=Object.prototype.hasOwnProperty,uY=Z1.unstable_scheduleCallback,yC=Z1.unstable_cancelCallback,gC=Z1.unstable_shouldYield,hC=Z1.unstable_requestPaint,Y5=Z1.unstable_now,uC=Z1.unstable_getCurrentPriorityLevel,xY=Z1.unstable_ImmediatePriority,mY=Z1.unstable_UserBlockingPriority,z7=Z1.unstable_NormalPriority,xC=Z1.unstable_LowPriority,dY=Z1.unstable_IdlePriority,mC=Z1.log,dC=Z1.unstable_setDisableYieldValue,T7=null,C5=null,O4=!1,E4=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",S5=Math.clz32?Math.clz32:$J,pC=Math.log,cC=Math.LN2,MG=256,FG=262144,WG=4194304,W6=2,i6=8,A4=32,wG=268435456,o8=Math.random().toString(36).slice(2),F5="__reactFiber$"+o8,j5="__reactProps$"+o8,a8="__reactContainer$"+o8,pY="__reactEvents$"+o8,lC="__reactListeners$"+o8,rC="__reactHandles$"+o8,xF="__reactResources$"+o8,KZ="__reactMarker$"+o8,mF=new Set,q9={},cY={},sC={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},nC=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]*$"),dF={},pF={},oC=/[\n"\\]/g,cF=!1,lF=!1,rF=!1,sF=!1,nF=!1,oF=!1,aF=["value","defaultValue"],iF=!1,tF=/["'&<>\n\t]|^\s|\s$/,aC="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(" "),eF="applet caption html table td th marquee object template foreignObject desc title".split(" "),iC=eF.concat(["button"]),tC="dd dt li option optgroup p rp rt".split(" "),$W={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},RG={},lY={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"]},ZW=/([A-Z])/g,QW=/^ms-/,eC=/^(?:webkit|moz|o)[A-Z]/,$I=/^-ms-/,ZI=/-(.)/g,JW=/;\s*$/,L7={},rY={},GW=!1,XW=!1,qW=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",P7="http://www.w3.org/2000/svg",QI=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"]]),TG={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"},YW={"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},_7={},JI=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]*$"),GI=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]*$"),NW=!1,D5={},UW=/^on./,XI=/^on[^A-Z]/,qI=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]*$"),YI=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]*$"),NI=/^[\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,BZ=null,C7=null,I7=null,sY=!1,S4=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),nY=!1;if(S4)try{var HZ={};Object.defineProperty(HZ,"passive",{get:function(){nY=!0}}),window.addEventListener("test",HZ,HZ),window.removeEventListener("test",HZ,HZ)}catch($){nY=!1}var i8=null,oY=null,LG=null,Y9={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function($){return $.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},PG=u5(Y9),MZ=d0({},Y9,{view:0,detail:0}),UI=u5(MZ),aY,iY,FZ,_G=d0({},MZ,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:bX,button:0,buttons:0,relatedTarget:function($){return $.relatedTarget===void 0?$.fromElement===$.srcElement?$.toElement:$.fromElement:$.relatedTarget},movementX:function($){if("movementX"in $)return $.movementX;return $!==FZ&&(FZ&&$.type==="mousemove"?(aY=$.screenX-FZ.screenX,iY=$.screenY-FZ.screenY):iY=aY=0,FZ=$),aY},movementY:function($){return"movementY"in $?$.movementY:iY}}),KW=u5(_G),KI=d0({},_G,{dataTransfer:0}),BI=u5(KI),HI=d0({},MZ,{relatedTarget:0}),tY=u5(HI),MI=d0({},Y9,{animationName:0,elapsedTime:0,pseudoElement:0}),FI=u5(MI),WI=d0({},Y9,{clipboardData:function($){return"clipboardData"in $?$.clipboardData:window.clipboardData}}),wI=u5(WI),RI=d0({},Y9,{data:0}),BW=u5(RI),zI=BW,TI={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},LI={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"},PI={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},_I=d0({},MZ,{key:function($){if($.key){var Z=TI[$.key]||$.key;if(Z!=="Unidentified")return Z}return $.type==="keypress"?($=YJ($),$===13?"Enter":String.fromCharCode($)):$.type==="keydown"||$.type==="keyup"?LI[$.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:bX,charCode:function($){return $.type==="keypress"?YJ($):0},keyCode:function($){return $.type==="keydown"||$.type==="keyup"?$.keyCode:0},which:function($){return $.type==="keypress"?YJ($):$.type==="keydown"||$.type==="keyup"?$.keyCode:0}}),CI=u5(_I),II=d0({},_G,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),HW=u5(II),VI=d0({},MZ,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:bX}),OI=u5(VI),EI=d0({},Y9,{propertyName:0,elapsedTime:0,pseudoElement:0}),AI=u5(EI),SI=d0({},_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}),jI=u5(SI),DI=d0({},Y9,{newState:0,oldState:0}),vI=u5(DI),bI=[9,13,27,32],MW=229,eY=S4&&"CompositionEvent"in window,WZ=null;S4&&"documentMode"in document&&(WZ=document.documentMode);var kI=S4&&"TextEvent"in window&&!WZ,FW=S4&&(!eY||WZ&&8<WZ&&11>=WZ),WW=32,wW=String.fromCharCode(WW),RW=!1,V7=!1,fI={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,RZ=null,zW=!1;S4&&(zW=Q_("input")&&(!document.documentMode||9<document.documentMode));var v5=typeof Object.is==="function"?Object.is:N_,yI=S4&&"documentMode"in document&&11>=document.documentMode,O7=null,$N=null,zZ=null,ZN=!1,E7={animationend:r2("Animation","AnimationEnd"),animationiteration:r2("Animation","AnimationIteration"),animationstart:r2("Animation","AnimationStart"),transitionrun:r2("Transition","TransitionRun"),transitionstart:r2("Transition","TransitionStart"),transitioncancel:r2("Transition","TransitionCancel"),transitionend:r2("Transition","TransitionEnd")},QN={},TW={};S4&&(TW=document.createElement("div").style,("AnimationEvent"in window)||(delete E7.animationend.animation,delete E7.animationiteration.animation,delete E7.animationstart.animation),("TransitionEvent"in window)||delete E7.transitionend.transition);var LW=s2("animationend"),PW=s2("animationiteration"),_W=s2("animationstart"),gI=s2("transitionrun"),hI=s2("transitionstart"),uI=s2("transitioncancel"),CW=s2("transitionend"),IW=new Map,JN="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(" ");JN.push("scrollEnd");var VW=0;if(typeof performance==="object"&&typeof performance.now==="function")var xI=performance,OW=function(){return xI.now()};else{var mI=Date;OW=function(){return mI.now()}}var GN=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($)},dI="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.",CG=0,XN=1,qN=2,YN=3,IG="– ",VG="+ ",EW="  ",L1=typeof console<"u"&&typeof console.timeStamp==="function"&&typeof performance<"u"&&typeof performance.measure==="function",E6="Components ⚛",p0="Scheduler ⚛",l0="Blocking",t8=!1,Z8={color:"primary",properties:null,tooltipText:"",track:E6},e8={start:-0,end:-0,detail:{devtools:Z8}},pI=["Changed Props",""],AW="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",cI=["Changed Props",AW],TZ=1,Q8=2,A6=[],A7=0,NN=0,$2={};Object.freeze($2);var S6=null,S7=null,I0=0,lI=1,f0=2,I5=8,t6=16,rI=32,SW=!1;try{var jW=Object.preventExtensions({})}catch($){SW=!0}var UN=new WeakMap,j7=[],D7=0,OG=null,LZ=0,j6=[],D6=0,N9=null,J8=1,G8="",W5=null,P1=null,s0=!1,j4=!1,w6=null,Z2=null,v6=!1,KN=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."),BN=K0(null),HN=K0(null),DW={},EG=null,v7=null,b7=!1,sI=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()})}},nI=Z1.unstable_scheduleCallback,oI=Z1.unstable_NormalPriority,c1={$$typeof:I4,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},l1=Z1.unstable_now,AG=console.createTask?console.createTask:function(){return null},PZ=1,SG=2,N5=-0,Q2=-0,X8=-0,q8=null,b5=-1.1,U9=-0,A1=-0,T0=-1.1,P0=-1.1,E1=null,v1=!1,J2=-0,D4=-1.1,_Z=null,G2=0,MN=null,FN=null,K9=-1.1,CZ=null,k7=-1.1,jG=-1.1,v4=-0,Y8=-1.1,b6=-1.1,WN=0,IZ=null,vW=null,bW=null,X2=-1.1,B9=null,q2=-1.1,DG=-1.1,kW=-0,fW=-0,vG=0,N8=null,yW=0,VZ=-1.1,bG=!1,kG=!1,OZ=null,wN=0,H9=0,f7=null,gW=x.S;x.S=function($,Z){if(vw=Y5(),typeof Z==="object"&&Z!==null&&typeof Z.then==="function"){if(0>Y8&&0>b6){Y8=l1();var G=QZ(),Y=ZZ();if(G!==q2||Y!==B9)q2=-1.1;X2=G,B9=Y}W_($,Z)}gW!==null&&gW($,Z)};var M9=K0(null),e6={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},EZ=[],AZ=[],SZ=[],jZ=[],DZ=[],vZ=[],F9=new Set;e6.recordUnsafeLifecycleWarnings=function($,Z){F9.has($.type)||(typeof Z.componentWillMount==="function"&&Z.componentWillMount.__suppressDeprecationWarning!==!0&&EZ.push($),$.mode&I5&&typeof Z.UNSAFE_componentWillMount==="function"&&AZ.push($),typeof Z.componentWillReceiveProps==="function"&&Z.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&SZ.push($),$.mode&I5&&typeof Z.UNSAFE_componentWillReceiveProps==="function"&&jZ.push($),typeof Z.componentWillUpdate==="function"&&Z.componentWillUpdate.__suppressDeprecationWarning!==!0&&DZ.push($),$.mode&I5&&typeof Z.UNSAFE_componentWillUpdate==="function"&&vZ.push($))},e6.flushPendingUnsafeLifecycleWarnings=function(){var $=new Set;0<EZ.length&&(EZ.forEach(function(R){$.add(d(R)||"Component"),F9.add(R.type)}),EZ=[]);var Z=new Set;0<AZ.length&&(AZ.forEach(function(R){Z.add(d(R)||"Component"),F9.add(R.type)}),AZ=[]);var G=new Set;0<SZ.length&&(SZ.forEach(function(R){G.add(d(R)||"Component"),F9.add(R.type)}),SZ=[]);var Y=new Set;0<jZ.length&&(jZ.forEach(function(R){Y.add(d(R)||"Component"),F9.add(R.type)}),jZ=[]);var U=new Set;0<DZ.length&&(DZ.forEach(function(R){U.add(d(R)||"Component"),F9.add(R.type)}),DZ=[]);var B=new Set;if(0<vZ.length&&(vZ.forEach(function(R){B.add(d(R)||"Component"),F9.add(R.type)}),vZ=[]),0<Z.size){var W=T(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
 
@@ -199,7 +199,7 @@ Please update the following components: %s`,W)),0<$.size&&(W=T($),console.warn(`
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`,W)),0<J.size&&(W=T(J),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
202
+ Please update the following components: %s`,W)),0<G.size&&(W=T(G),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
@@ -210,48 +210,48 @@ Please update the following components: %s`,W)),0<U.size&&(W=T(U),console.warn(`
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`,W))};var SG=new Map,kW=new Set;a6.recordLegacyContextWarning=function($,Z){var J=null;for(var Y=$;Y!==null;)Y.mode&_5&&(J=Y),Y=Y.return;J===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."):!kW.has($.type)&&(Y=SG.get(J),$.type.contextTypes!=null||$.type.childContextTypes!=null||Z!==null&&typeof Z.getChildContext==="function")&&(Y===void 0&&(Y=[],SG.set(J,Y)),Y.push($))},a6.flushLegacyContextWarning=function(){SG.forEach(function($){if($.length!==0){var Z=$[0],J=new Set;$.forEach(function(U){J.add(d(U)||"Component"),kW.add(U.type)});var Y=T(J);G0(Z,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
213
+ Please update the following components: %s`,W))};var fG=new Map,hW=new Set;e6.recordLegacyContextWarning=function($,Z){var G=null;for(var Y=$;Y!==null;)Y.mode&I5&&(G=Y),Y=Y.return;G===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."):!hW.has($.type)&&(Y=fG.get(G),$.type.contextTypes!=null||$.type.childContextTypes!=null||Z!==null&&typeof Z.getChildContext==="function")&&(Y===void 0&&(Y=[],fG.set(G,Y)),Y.push($))},e6.flushLegacyContextWarning=function(){fG.forEach(function($){if($.length!==0){var Z=$[0],G=new Set;$.forEach(function(U){G.add(d(U)||"Component"),hW.add(U.type)});var Y=T(G);G0(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)})}})},a6.discardPendingWarnings=function(){_Z=[],CZ=[],VZ=[],IZ=[],OZ=[],EZ=[],SG=new Map};var fW={react_stack_bottom_frame:function($,Z,J){var Y=C4;C4=!0;try{return $(Z,J)}finally{C4=Y}}},FN=fW.react_stack_bottom_frame.bind(fW),yW={react_stack_bottom_frame:function($){var Z=C4;C4=!0;try{return $.render()}finally{C4=Z}}},gW=yW.react_stack_bottom_frame.bind(yW),hW={react_stack_bottom_frame:function($,Z){try{Z.componentDidMount()}catch(J){G1($,$.return,J)}}},WN=hW.react_stack_bottom_frame.bind(hW),uW={react_stack_bottom_frame:function($,Z,J,Y,U){try{Z.componentDidUpdate(J,Y,U)}catch(B){G1($,$.return,B)}}},xW=uW.react_stack_bottom_frame.bind(uW),mW={react_stack_bottom_frame:function($,Z){var J=Z.stack;$.componentDidCatch(Z.value,{componentStack:J!==null?J:""})}},cV=mW.react_stack_bottom_frame.bind(mW),dW={react_stack_bottom_frame:function($,Z,J){try{J.componentWillUnmount()}catch(Y){G1($,Z,Y)}}},pW=dW.react_stack_bottom_frame.bind(dW),cW={react_stack_bottom_frame:function($){var Z=$.create;return $=$.inst,Z=Z(),$.destroy=Z}},lV=cW.react_stack_bottom_frame.bind(cW),lW={react_stack_bottom_frame:function($,Z,J){try{J()}catch(Y){G1($,Z,Y)}}},rV=lW.react_stack_bottom_frame.bind(lW),rW={react_stack_bottom_frame:function($){var Z=$._init;return Z($._payload)}},sV=rW.react_stack_bottom_frame.bind(rW),k7=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`."),wN=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."),DG=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."),vG={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.')}},M9=null,AZ=!1,f7=null,jZ=0,f0=null,RN,sW=RN=!1,nW={},oW={},aW={};z=function($,Z,J){if(J!==null&&typeof J==="object"&&J._store&&(!J._store.validated&&J.key==null||J._store.validated===2)){if(typeof J._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.");J._store.validated=1;var Y=d($),U=Y||"null";if(!nW[U]){nW[U]=!0,J=J._owner,$=$._debugOwner;var B="";$&&typeof $.tag==="number"&&(U=d($))&&(B=`
219
+ Learn more about this warning here: https://react.dev/link/legacy-context`,Y)})}})},e6.discardPendingWarnings=function(){EZ=[],AZ=[],SZ=[],jZ=[],DZ=[],vZ=[],fG=new Map};var uW={react_stack_bottom_frame:function($,Z,G){var Y=V4;V4=!0;try{return $(Z,G)}finally{V4=Y}}},RN=uW.react_stack_bottom_frame.bind(uW),xW={react_stack_bottom_frame:function($){var Z=V4;V4=!0;try{return $.render()}finally{V4=Z}}},mW=xW.react_stack_bottom_frame.bind(xW),dW={react_stack_bottom_frame:function($,Z){try{Z.componentDidMount()}catch(G){X1($,$.return,G)}}},zN=dW.react_stack_bottom_frame.bind(dW),pW={react_stack_bottom_frame:function($,Z,G,Y,U){try{Z.componentDidUpdate(G,Y,U)}catch(B){X1($,$.return,B)}}},cW=pW.react_stack_bottom_frame.bind(pW),lW={react_stack_bottom_frame:function($,Z){var G=Z.stack;$.componentDidCatch(Z.value,{componentStack:G!==null?G:""})}},aI=lW.react_stack_bottom_frame.bind(lW),rW={react_stack_bottom_frame:function($,Z,G){try{G.componentWillUnmount()}catch(Y){X1($,Z,Y)}}},sW=rW.react_stack_bottom_frame.bind(rW),nW={react_stack_bottom_frame:function($){var Z=$.create;return $=$.inst,Z=Z(),$.destroy=Z}},iI=nW.react_stack_bottom_frame.bind(nW),oW={react_stack_bottom_frame:function($,Z,G){try{G()}catch(Y){X1($,Z,Y)}}},tI=oW.react_stack_bottom_frame.bind(oW),aW={react_stack_bottom_frame:function($){var Z=$._init;return Z($._payload)}},eI=aW.react_stack_bottom_frame.bind(aW),y7=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`."),TN=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."),yG=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."),gG={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.')}},W9=null,bZ=!1,g7=null,kZ=0,y0=null,LN,iW=LN=!1,tW={},eW={},$w={};z=function($,Z,G){if(G!==null&&typeof G==="object"&&G._store&&(!G._store.validated&&G.key==null||G._store.validated===2)){if(typeof G._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.");G._store.validated=1;var Y=d($),U=Y||"null";if(!tW[U]){tW[U]=!0,G=G._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="";J!=null&&$!==J&&(Y=null,typeof J.tag==="number"?Y=d(J):typeof J.name==="string"&&(Y=J.name),Y&&(W=" It was passed a child from "+Y+".")),G0(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 F9=dB(!0),iW=dB(!1),tW=0,eW=1,$w=2,zN=3,X2=!1,Zw=!1,TN=null,LN=!1,y7=K0(null),bG=K0(0),M6=K0(null),D6=null,g7=1,SZ=2,g1=K0(0),kG=0,v6=1,v5=2,F6=4,b5=8,h7,Qw=new Set,Jw=new Set,PN=new Set,Gw=new Set,q8=0,V0=null,M1=null,c1=null,fG=!1,u7=!1,W9=!1,yG=0,DZ=0,Y8=null,nV=0,oV=25,u=null,b6=null,N8=-1,vZ=!1,bZ={readContext:V1,use:m8,useCallback:f1,useContext:f1,useEffect:f1,useImperativeHandle:f1,useLayoutEffect:f1,useInsertionEffect:f1,useMemo:f1,useReducer:f1,useRef:f1,useState:f1,useDebugValue:f1,useDeferredValue:f1,useTransition:f1,useSyncExternalStore:f1,useId:f1,useHostTransitionStatus:f1,useFormState:f1,useActionState:f1,useOptimistic:f1,useMemoCache:f1,useCacheRefresh:f1};bZ.useEffectEvent=f1;var _N=null,Xw=null,CN=null,qw=null,D4=null,i6=null,gG=null;_N={readContext:function($){return V1($)},use:m8,useCallback:function($,Z){return u="useCallback",x0(),Z7(Z),Lq($,Z)},useContext:function($){return u="useContext",x0(),V1($)},useEffect:function($,Z){return u="useEffect",x0(),Z7(Z),SJ($,Z)},useImperativeHandle:function($,Z,J){return u="useImperativeHandle",x0(),Z7(J),Tq($,Z,J)},useInsertionEffect:function($,Z){u="useInsertionEffect",x0(),Z7(Z),e2(4,v5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",x0(),Z7(Z),zq($,Z)},useMemo:function($,Z){u="useMemo",x0(),Z7(Z);var J=x.H;x.H=D4;try{return Pq($,Z)}finally{x.H=J}},useReducer:function($,Z,J){u="useReducer",x0();var Y=x.H;x.H=D4;try{return Uq($,Z,J)}finally{x.H=Y}},useRef:function($){return u="useRef",x0(),wq($)},useState:function($){u="useState",x0();var Z=x.H;x.H=D4;try{return Mq($)}finally{x.H=Z}},useDebugValue:function(){u="useDebugValue",x0()},useDeferredValue:function($,Z){return u="useDeferredValue",x0(),_q($,Z)},useTransition:function(){return u="useTransition",x0(),Iq()},useSyncExternalStore:function($,Z,J){return u="useSyncExternalStore",x0(),Bq($,Z,J)},useId:function(){return u="useId",x0(),Oq()},useFormState:function($,Z){return u="useFormState",x0(),IJ(),J7($,Z)},useActionState:function($,Z){return u="useActionState",x0(),J7($,Z)},useOptimistic:function($){return u="useOptimistic",x0(),Fq($)},useHostTransitionStatus:$9,useMemoCache:t2,useCacheRefresh:function(){return u="useCacheRefresh",x0(),Eq()},useEffectEvent:function($){return u="useEffectEvent",x0(),Rq($)}},Xw={readContext:function($){return V1($)},use:m8,useCallback:function($,Z){return u="useCallback",c(),Lq($,Z)},useContext:function($){return u="useContext",c(),V1($)},useEffect:function($,Z){return u="useEffect",c(),SJ($,Z)},useImperativeHandle:function($,Z,J){return u="useImperativeHandle",c(),Tq($,Z,J)},useInsertionEffect:function($,Z){u="useInsertionEffect",c(),e2(4,v5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",c(),zq($,Z)},useMemo:function($,Z){u="useMemo",c();var J=x.H;x.H=D4;try{return Pq($,Z)}finally{x.H=J}},useReducer:function($,Z,J){u="useReducer",c();var Y=x.H;x.H=D4;try{return Uq($,Z,J)}finally{x.H=Y}},useRef:function($){return u="useRef",c(),wq($)},useState:function($){u="useState",c();var Z=x.H;x.H=D4;try{return Mq($)}finally{x.H=Z}},useDebugValue:function(){u="useDebugValue",c()},useDeferredValue:function($,Z){return u="useDeferredValue",c(),_q($,Z)},useTransition:function(){return u="useTransition",c(),Iq()},useSyncExternalStore:function($,Z,J){return u="useSyncExternalStore",c(),Bq($,Z,J)},useId:function(){return u="useId",c(),Oq()},useActionState:function($,Z){return u="useActionState",c(),J7($,Z)},useFormState:function($,Z){return u="useFormState",c(),IJ(),J7($,Z)},useOptimistic:function($){return u="useOptimistic",c(),Fq($)},useHostTransitionStatus:$9,useMemoCache:t2,useCacheRefresh:function(){return u="useCacheRefresh",c(),Eq()},useEffectEvent:function($){return u="useEffectEvent",c(),Rq($)}},CN={readContext:function($){return V1($)},use:m8,useCallback:function($,Z){return u="useCallback",c(),bJ($,Z)},useContext:function($){return u="useContext",c(),V1($)},useEffect:function($,Z){u="useEffect",c(),g5(2048,b5,$,Z)},useImperativeHandle:function($,Z,J){return u="useImperativeHandle",c(),vJ($,Z,J)},useInsertionEffect:function($,Z){return u="useInsertionEffect",c(),g5(4,v5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",c(),g5(4,F6,$,Z)},useMemo:function($,Z){u="useMemo",c();var J=x.H;x.H=i6;try{return kJ($,Z)}finally{x.H=J}},useReducer:function($,Z,J){u="useReducer",c();var Y=x.H;x.H=i6;try{return Q7($,Z,J)}finally{x.H=Y}},useRef:function(){return u="useRef",c(),Y1().memoizedState},useState:function(){u="useState",c();var $=x.H;x.H=i6;try{return Q7(l6)}finally{x.H=$}},useDebugValue:function(){u="useDebugValue",c()},useDeferredValue:function($,Z){return u="useDeferredValue",c(),KH($,Z)},useTransition:function(){return u="useTransition",c(),wH()},useSyncExternalStore:function($,Z,J){return u="useSyncExternalStore",c(),EJ($,Z,J)},useId:function(){return u="useId",c(),Y1().memoizedState},useFormState:function($){return u="useFormState",c(),IJ(),AJ($)},useActionState:function($){return u="useActionState",c(),AJ($)},useOptimistic:function($,Z){return u="useOptimistic",c(),$H($,Z)},useHostTransitionStatus:$9,useMemoCache:t2,useCacheRefresh:function(){return u="useCacheRefresh",c(),Y1().memoizedState},useEffectEvent:function($){return u="useEffectEvent",c(),DJ($)}},qw={readContext:function($){return V1($)},use:m8,useCallback:function($,Z){return u="useCallback",c(),bJ($,Z)},useContext:function($){return u="useContext",c(),V1($)},useEffect:function($,Z){u="useEffect",c(),g5(2048,b5,$,Z)},useImperativeHandle:function($,Z,J){return u="useImperativeHandle",c(),vJ($,Z,J)},useInsertionEffect:function($,Z){return u="useInsertionEffect",c(),g5(4,v5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",c(),g5(4,F6,$,Z)},useMemo:function($,Z){u="useMemo",c();var J=x.H;x.H=gG;try{return kJ($,Z)}finally{x.H=J}},useReducer:function($,Z,J){u="useReducer",c();var Y=x.H;x.H=gG;try{return h$($,Z,J)}finally{x.H=Y}},useRef:function(){return u="useRef",c(),Y1().memoizedState},useState:function(){u="useState",c();var $=x.H;x.H=gG;try{return h$(l6)}finally{x.H=$}},useDebugValue:function(){u="useDebugValue",c()},useDeferredValue:function($,Z){return u="useDeferredValue",c(),BH($,Z)},useTransition:function(){return u="useTransition",c(),RH()},useSyncExternalStore:function($,Z,J){return u="useSyncExternalStore",c(),EJ($,Z,J)},useId:function(){return u="useId",c(),Y1().memoizedState},useFormState:function($){return u="useFormState",c(),IJ(),jJ($)},useActionState:function($){return u="useActionState",c(),jJ($)},useOptimistic:function($,Z){return u="useOptimistic",c(),QH($,Z)},useHostTransitionStatus:$9,useMemoCache:t2,useCacheRefresh:function(){return u="useCacheRefresh",c(),Y1().memoizedState},useEffectEvent:function($){return u="useEffectEvent",c(),DJ($)}},D4={readContext:function($){return F(),V1($)},use:function($){return M(),m8($)},useCallback:function($,Z){return u="useCallback",M(),x0(),Lq($,Z)},useContext:function($){return u="useContext",M(),x0(),V1($)},useEffect:function($,Z){return u="useEffect",M(),x0(),SJ($,Z)},useImperativeHandle:function($,Z,J){return u="useImperativeHandle",M(),x0(),Tq($,Z,J)},useInsertionEffect:function($,Z){u="useInsertionEffect",M(),x0(),e2(4,v5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",M(),x0(),zq($,Z)},useMemo:function($,Z){u="useMemo",M(),x0();var J=x.H;x.H=D4;try{return Pq($,Z)}finally{x.H=J}},useReducer:function($,Z,J){u="useReducer",M(),x0();var Y=x.H;x.H=D4;try{return Uq($,Z,J)}finally{x.H=Y}},useRef:function($){return u="useRef",M(),x0(),wq($)},useState:function($){u="useState",M(),x0();var Z=x.H;x.H=D4;try{return Mq($)}finally{x.H=Z}},useDebugValue:function(){u="useDebugValue",M(),x0()},useDeferredValue:function($,Z){return u="useDeferredValue",M(),x0(),_q($,Z)},useTransition:function(){return u="useTransition",M(),x0(),Iq()},useSyncExternalStore:function($,Z,J){return u="useSyncExternalStore",M(),x0(),Bq($,Z,J)},useId:function(){return u="useId",M(),x0(),Oq()},useFormState:function($,Z){return u="useFormState",M(),x0(),J7($,Z)},useActionState:function($,Z){return u="useActionState",M(),x0(),J7($,Z)},useOptimistic:function($){return u="useOptimistic",M(),x0(),Fq($)},useMemoCache:function($){return M(),t2($)},useHostTransitionStatus:$9,useCacheRefresh:function(){return u="useCacheRefresh",x0(),Eq()},useEffectEvent:function($){return u="useEffectEvent",M(),x0(),Rq($)}},i6={readContext:function($){return F(),V1($)},use:function($){return M(),m8($)},useCallback:function($,Z){return u="useCallback",M(),c(),bJ($,Z)},useContext:function($){return u="useContext",M(),c(),V1($)},useEffect:function($,Z){u="useEffect",M(),c(),g5(2048,b5,$,Z)},useImperativeHandle:function($,Z,J){return u="useImperativeHandle",M(),c(),vJ($,Z,J)},useInsertionEffect:function($,Z){return u="useInsertionEffect",M(),c(),g5(4,v5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",M(),c(),g5(4,F6,$,Z)},useMemo:function($,Z){u="useMemo",M(),c();var J=x.H;x.H=i6;try{return kJ($,Z)}finally{x.H=J}},useReducer:function($,Z,J){u="useReducer",M(),c();var Y=x.H;x.H=i6;try{return Q7($,Z,J)}finally{x.H=Y}},useRef:function(){return u="useRef",M(),c(),Y1().memoizedState},useState:function(){u="useState",M(),c();var $=x.H;x.H=i6;try{return Q7(l6)}finally{x.H=$}},useDebugValue:function(){u="useDebugValue",M(),c()},useDeferredValue:function($,Z){return u="useDeferredValue",M(),c(),KH($,Z)},useTransition:function(){return u="useTransition",M(),c(),wH()},useSyncExternalStore:function($,Z,J){return u="useSyncExternalStore",M(),c(),EJ($,Z,J)},useId:function(){return u="useId",M(),c(),Y1().memoizedState},useFormState:function($){return u="useFormState",M(),c(),AJ($)},useActionState:function($){return u="useActionState",M(),c(),AJ($)},useOptimistic:function($,Z){return u="useOptimistic",M(),c(),$H($,Z)},useMemoCache:function($){return M(),t2($)},useHostTransitionStatus:$9,useCacheRefresh:function(){return u="useCacheRefresh",c(),Y1().memoizedState},useEffectEvent:function($){return u="useEffectEvent",M(),c(),DJ($)}},gG={readContext:function($){return F(),V1($)},use:function($){return M(),m8($)},useCallback:function($,Z){return u="useCallback",M(),c(),bJ($,Z)},useContext:function($){return u="useContext",M(),c(),V1($)},useEffect:function($,Z){u="useEffect",M(),c(),g5(2048,b5,$,Z)},useImperativeHandle:function($,Z,J){return u="useImperativeHandle",M(),c(),vJ($,Z,J)},useInsertionEffect:function($,Z){return u="useInsertionEffect",M(),c(),g5(4,v5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",M(),c(),g5(4,F6,$,Z)},useMemo:function($,Z){u="useMemo",M(),c();var J=x.H;x.H=i6;try{return kJ($,Z)}finally{x.H=J}},useReducer:function($,Z,J){u="useReducer",M(),c();var Y=x.H;x.H=i6;try{return h$($,Z,J)}finally{x.H=Y}},useRef:function(){return u="useRef",M(),c(),Y1().memoizedState},useState:function(){u="useState",M(),c();var $=x.H;x.H=i6;try{return h$(l6)}finally{x.H=$}},useDebugValue:function(){u="useDebugValue",M(),c()},useDeferredValue:function($,Z){return u="useDeferredValue",M(),c(),BH($,Z)},useTransition:function(){return u="useTransition",M(),c(),RH()},useSyncExternalStore:function($,Z,J){return u="useSyncExternalStore",M(),c(),EJ($,Z,J)},useId:function(){return u="useId",M(),c(),Y1().memoizedState},useFormState:function($){return u="useFormState",M(),c(),jJ($)},useActionState:function($){return u="useActionState",M(),c(),jJ($)},useOptimistic:function($,Z){return u="useOptimistic",M(),c(),QH($,Z)},useMemoCache:function($){return M(),t2($)},useHostTransitionStatus:$9,useCacheRefresh:function(){return u="useCacheRefresh",c(),Y1().memoizedState},useEffectEvent:function($){return u="useEffectEvent",M(),c(),DJ($)}};var Yw={},Nw=new Set,Uw=new Set,Kw=new Set,Bw=new Set,Hw=new Set,Mw=new Set,Fw=new Set,Ww=new Set,ww=new Set,Rw=new Set;Object.freeze(Yw);var VN={enqueueSetState:function($,Z,J){$=$._reactInternals;var Y=Y6($),U=g8(Y);U.payload=Z,J!==void 0&&J!==null&&(jq(J),U.callback=J),Z=h8($,U,Y),Z!==null&&(N4(Y,"this.setState()",$),S1(Z,$,Y),k$(Z,$,Y))},enqueueReplaceState:function($,Z,J){$=$._reactInternals;var Y=Y6($),U=g8(Y);U.tag=eW,U.payload=Z,J!==void 0&&J!==null&&(jq(J),U.callback=J),Z=h8($,U,Y),Z!==null&&(N4(Y,"this.replaceState()",$),S1(Z,$,Y),k$(Z,$,Y))},enqueueForceUpdate:function($,Z){$=$._reactInternals;var J=Y6($),Y=g8(J);Y.tag=$w,Z!==void 0&&Z!==null&&(jq(Z),Y.callback=Z),Z=h8($,Y,J),Z!==null&&(N4(J,"this.forceUpdate()",$),S1(Z,$,J),k$(Z,$,J))}},x7=null,IN=null,ON=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."),l1=!1,zw={},Tw={},Lw={},Pw={},m7=!1,_w={},hG={},EN={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},Cw=!1,Vw=null;Vw=new Set;var U8=!1,r1=!1,AN=!1,Iw=typeof WeakSet==="function"?WeakSet:Set,Y5=null,d7=null,p7=null,s1=null,x5=!1,t6=null,t1=!1,kZ=8192,aV={getCacheForType:function($){var Z=V1(d1),J=Z.data.get($);return J===void 0&&(J=$(),Z.data.set($,J)),J},cacheSignal:function(){return V1(d1).controller.signal},getOwner:function(){return K6}};if(typeof Symbol==="function"&&Symbol.for){var fZ=Symbol.for;fZ("selector.component"),fZ("selector.has_pseudo_class"),fZ("selector.role"),fZ("selector.test_id"),fZ("selector.text")}var iV=[],tV=typeof WeakMap==="function"?WeakMap:Map,N5=0,e1=2,W6=4,K8=0,yZ=1,w9=2,uG=3,q2=4,xG=6,Ow=5,a0=N5,F1=null,g0=null,y0=0,m5=0,mG=1,R9=2,gZ=3,Ew=4,jN=5,hZ=6,dG=7,SN=8,z9=9,N1=m5,w6=null,Y2=!1,c7=!1,DN=!1,v4=0,A1=K8,N2=0,U2=0,vN=0,d5=0,T9=0,uZ=null,k5=null,pG=!1,cG=0,Aw=0,jw=300,lG=1/0,Sw=500,xZ=null,y1=null,K2=null,rG=0,bN=1,kN=2,Dw=3,B2=0,vw=1,bw=2,kw=3,fw=4,sG=5,n1=0,H2=null,l7=null,e6=0,fN=0,yN=-0,gN=null,yw=null,gw=null,$4=rG,hw=null,eV=50,mZ=0,hN=null,uN=!1,nG=!1,$I=50,L9=0,dZ=null,r7=!1,oG=null,uw=!1,xw=new Set,ZI={},aG=null,s7=null,xN=!1,mN=!1,iG=!1,dN=!1,M2=0,pN={};(function(){for(var $=0;$<$N.length;$++){var Z=$N[$],J=Z.toLowerCase();Z=Z[0].toUpperCase()+Z.slice(1),c6(J,"on"+Z)}c6(wW,"onAnimationEnd"),c6(RW,"onAnimationIteration"),c6(zW,"onAnimationStart"),c6("dblclick","onDoubleClick"),c6("focusin","onFocus"),c6("focusout","onBlur"),c6(DV,"onTransitionRun"),c6(vV,"onTransitionStart"),c6(bV,"onTransitionCancel"),c6(TW,"onTransitionEnd")})(),$6("onMouseEnter",["mouseout","mouseover"]),$6("onMouseLeave",["mouseout","mouseover"]),$6("onPointerEnter",["pointerout","pointerover"]),$6("onPointerLeave",["pointerout","pointerover"]),T5("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),T5("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),T5("onBeforeInput",["compositionend","keypress","textInput","paste"]),T5("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),T5("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),T5("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var pZ="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(" "),cN=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(pZ)),tG="_reactListening"+Math.random().toString(36).slice(2),mw=!1,dw=!1,eG=!1,pw=!1,$3=!1,Z3=!1,cw=!1,Q3={},QI=/\r\n?/g,JI=/\u0000|\uFFFD/g,P9="http://www.w3.org/1999/xlink",lN="http://www.w3.org/XML/1998/namespace",GI="javascript:throw new Error('React form unexpectedly submitted.')",XI="suppressHydrationWarning",_9="&",J3="/&",cZ="$",lZ="/$",F2="$?",C9="$~",n7="$!",qI="html",YI="body",NI="head",rN="F!",lw="F",rw="loading",UI="style",B8=0,o7=1,G3=2,sN=null,nN=null,sw={dialog:!0,webview:!0},oN=null,rZ=void 0,nw=typeof setTimeout==="function"?setTimeout:void 0,KI=typeof clearTimeout==="function"?clearTimeout:void 0,V9=-1,ow=typeof Promise==="function"?Promise:void 0,BI=typeof queueMicrotask==="function"?queueMicrotask:typeof ow<"u"?function($){return ow.resolve(null).then($).catch(o_)}:nw,aN=null,I9=0,sZ=1,aw=2,iw=3,k6=4,f6=new Map,tw=new Set,H8=X1.d;X1.d={f:function(){var $=H8.f(),Z=N7();return $||Z},r:function($){var Z=E0($);Z!==null&&Z.tag===5&&Z.type==="form"?WH(Z):H8.r($)},D:function($){H8.D($),NF("dns-prefetch",$,null)},C:function($,Z){H8.C($,Z),NF("preconnect",$,Z)},L:function($,Z,J){H8.L($,Z,J);var Y=a7;if(Y&&$&&Z){var U='link[rel="preload"][as="'+_6(Z)+'"]';Z==="image"?J&&J.imageSrcSet?(U+='[imagesrcset="'+_6(J.imageSrcSet)+'"]',typeof J.imageSizes==="string"&&(U+='[imagesizes="'+_6(J.imageSizes)+'"]')):U+='[href="'+_6($)+'"]':U+='[href="'+_6($)+'"]';var B=U;switch(Z){case"style":B=B7($);break;case"script":B=H7($)}f6.has(B)||($=m0({rel:"preload",href:Z==="image"&&J&&J.imageSrcSet?void 0:$,as:Z},J),f6.set(B,$),Y.querySelector(U)!==null||Z==="style"&&Y.querySelector(e$(B))||Z==="script"&&Y.querySelector($Z(B))||(Z=Y.createElement("link"),H5(Z,"link",$),z0(Z),Y.head.appendChild(Z)))}},m:function($,Z){H8.m($,Z);var J=a7;if(J&&$){var Y=Z&&typeof Z.as==="string"?Z.as:"script",U='link[rel="modulepreload"][as="'+_6(Y)+'"][href="'+_6($)+'"]',B=U;switch(Y){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":B=H7($)}if(!f6.has(B)&&($=m0({rel:"modulepreload",href:$},Z),f6.set(B,$),J.querySelector(U)===null)){switch(Y){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(J.querySelector($Z(B)))return}Y=J.createElement("link"),H5(Y,"link",$),z0(Y),J.head.appendChild(Y)}}},X:function($,Z){H8.X($,Z);var J=a7;if(J&&$){var Y=i0(J).hoistableScripts,U=H7($),B=Y.get(U);B||(B=J.querySelector($Z(U)),B||($=m0({src:$,async:!0},Z),(Z=f6.get(U))&&TY($,Z),B=J.createElement("script"),z0(B),H5(B,"link",$),J.head.appendChild(B)),B={type:"script",instance:B,count:1,state:null},Y.set(U,B))}},S:function($,Z,J){H8.S($,Z,J);var Y=a7;if(Y&&$){var U=i0(Y).hoistableStyles,B=B7($);Z=Z||"default";var W=U.get(B);if(!W){var R={loading:I9,preload:null};if(W=Y.querySelector(e$(B)))R.loading=sZ|k6;else{$=m0({rel:"stylesheet",href:$,"data-precedence":Z},J),(J=f6.get(B))&&zY($,J);var L=W=Y.createElement("link");z0(L),H5(L,"link",$),L._p=new Promise(function(_,k){L.onload=_,L.onerror=k}),L.addEventListener("load",function(){R.loading|=sZ}),L.addEventListener("error",function(){R.loading|=aw}),R.loading|=k6,eJ(W,Z,Y)}W={type:"stylesheet",instance:W,count:1,state:R},U.set(B,W)}}},M:function($,Z){H8.M($,Z);var J=a7;if(J&&$){var Y=i0(J).hoistableScripts,U=H7($),B=Y.get(U);B||(B=J.querySelector($Z(U)),B||($=m0({src:$,async:!0,type:"module"},Z),(Z=f6.get(U))&&TY($,Z),B=J.createElement("script"),z0(B),H5(B,"link",$),J.head.appendChild(B)),B={type:"script",instance:B,count:1,state:null},Y.set(U,B))}}};var a7=typeof document>"u"?null:document,X3=null,HI=60000,MI=800,FI=500,iN=0,tN=null,q3=null,O9=jC,nZ={$$typeof:_4,Provider:null,Consumer:null,_currentValue:O9,_currentValue2:O9,_threadCount:0},ew="%c%s%c",$R="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",ZR="",Y3=" ",WI=Function.prototype.bind,QR=!1,JR=null,GR=null,XR=null,qR=null,YR=null,NR=null,UR=null,KR=null,BR=null,HR=null;JR=function($,Z,J,Y){Z=Q($,Z),Z!==null&&(J=G(Z.memoizedState,J,0,Y),Z.memoizedState=J,Z.baseState=J,$.memoizedProps=m0({},$.memoizedProps),J=L5($,2),J!==null&&S1(J,$,2))},GR=function($,Z,J){Z=Q($,Z),Z!==null&&(J=N(Z.memoizedState,J,0),Z.memoizedState=J,Z.baseState=J,$.memoizedProps=m0({},$.memoizedProps),J=L5($,2),J!==null&&S1(J,$,2))},XR=function($,Z,J,Y){Z=Q($,Z),Z!==null&&(J=X(Z.memoizedState,J,Y),Z.memoizedState=J,Z.baseState=J,$.memoizedProps=m0({},$.memoizedProps),J=L5($,2),J!==null&&S1(J,$,2))},qR=function($,Z,J){$.pendingProps=G($.memoizedProps,Z,0,J),$.alternate&&($.alternate.pendingProps=$.pendingProps),Z=L5($,2),Z!==null&&S1(Z,$,2)},YR=function($,Z){$.pendingProps=N($.memoizedProps,Z,0),$.alternate&&($.alternate.pendingProps=$.pendingProps),Z=L5($,2),Z!==null&&S1(Z,$,2)},NR=function($,Z,J){$.pendingProps=X($.memoizedProps,Z,J),$.alternate&&($.alternate.pendingProps=$.pendingProps),Z=L5($,2),Z!==null&&S1(Z,$,2)},UR=function($){var Z=L5($,2);Z!==null&&S1(Z,$,2)},KR=function($){var Z=n9(),J=L5($,Z);J!==null&&S1(J,$,Z)},BR=function($){H=$},HR=function($){K=$};var N3=!0,U3=null,eN=!1,W2=null,w2=null,R2=null,oZ=new Map,aZ=new Map,z2=[],wI="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(" "),K3=null;if(GG.prototype.render=IY.prototype.render=function($){var Z=this._internalRoot;if(Z===null)throw Error("Cannot update an unmounted root.");var J=arguments;typeof J[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(J[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 J[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),J=$;var Y=Z.current,U=Y6(Y);LY(Y,U,J,Z,null,null)},GG.prototype.unmount=IY.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;(a0&(e1|W6))!==N5&&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."),LY($.current,2,null,$,null,null),N7(),Z[n8]=null}},GG.prototype.unstable_scheduleHydration=function($){if($){var Z=y();$={blockedOn:null,target:$,priority:Z};for(var J=0;J<z2.length&&Z!==0&&Z<z2[J].priority;J++);z2.splice(J,0,$),J===0&&_F($)}},function(){var $=N$.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 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+".")),G0(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 w9=rB(!0),Zw=rB(!1),Qw=0,Jw=1,Gw=2,PN=3,Y2=!1,Xw=!1,_N=null,CN=!1,h7=K0(null),hG=K0(0),R6=K0(null),k6=null,u7=1,fZ=2,u1=K0(0),uG=0,f6=1,k5=2,z6=4,f5=8,x7,qw=new Set,Yw=new Set,IN=new Set,Nw=new Set,U8=0,V0=null,F1=null,r1=null,xG=!1,m7=!1,R9=!1,mG=0,yZ=0,K8=null,$V=0,ZV=25,u=null,y6=null,B8=-1,gZ=!1,hZ={readContext:O1,use:p8,useCallback:g1,useContext:g1,useEffect:g1,useImperativeHandle:g1,useLayoutEffect:g1,useInsertionEffect:g1,useMemo:g1,useReducer:g1,useRef:g1,useState:g1,useDebugValue:g1,useDeferredValue:g1,useTransition:g1,useSyncExternalStore:g1,useId:g1,useHostTransitionStatus:g1,useFormState:g1,useActionState:g1,useOptimistic:g1,useMemoCache:g1,useCacheRefresh:g1};hZ.useEffectEvent=g1;var VN=null,Uw=null,ON=null,Kw=null,b4=null,$4=null,dG=null;VN={readContext:function($){return O1($)},use:p8,useCallback:function($,Z){return u="useCallback",m0(),J7(Z),Cq($,Z)},useContext:function($){return u="useContext",m0(),O1($)},useEffect:function($,Z){return u="useEffect",m0(),J7(Z),fJ($,Z)},useImperativeHandle:function($,Z,G){return u="useImperativeHandle",m0(),J7(G),_q($,Z,G)},useInsertionEffect:function($,Z){u="useInsertionEffect",m0(),J7(Z),Z9(4,k5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",m0(),J7(Z),Pq($,Z)},useMemo:function($,Z){u="useMemo",m0(),J7(Z);var G=x.H;x.H=b4;try{return Iq($,Z)}finally{x.H=G}},useReducer:function($,Z,G){u="useReducer",m0();var Y=x.H;x.H=b4;try{return Hq($,Z,G)}finally{x.H=Y}},useRef:function($){return u="useRef",m0(),Tq($)},useState:function($){u="useState",m0();var Z=x.H;x.H=b4;try{return wq($)}finally{x.H=Z}},useDebugValue:function(){u="useDebugValue",m0()},useDeferredValue:function($,Z){return u="useDeferredValue",m0(),Vq($,Z)},useTransition:function(){return u="useTransition",m0(),Aq()},useSyncExternalStore:function($,Z,G){return u="useSyncExternalStore",m0(),Fq($,Z,G)},useId:function(){return u="useId",m0(),Sq()},useFormState:function($,Z){return u="useFormState",m0(),jJ(),X7($,Z)},useActionState:function($,Z){return u="useActionState",m0(),X7($,Z)},useOptimistic:function($){return u="useOptimistic",m0(),Rq($)},useHostTransitionStatus:Q9,useMemoCache:$9,useCacheRefresh:function(){return u="useCacheRefresh",m0(),jq()},useEffectEvent:function($){return u="useEffectEvent",m0(),Lq($)}},Uw={readContext:function($){return O1($)},use:p8,useCallback:function($,Z){return u="useCallback",c(),Cq($,Z)},useContext:function($){return u="useContext",c(),O1($)},useEffect:function($,Z){return u="useEffect",c(),fJ($,Z)},useImperativeHandle:function($,Z,G){return u="useImperativeHandle",c(),_q($,Z,G)},useInsertionEffect:function($,Z){u="useInsertionEffect",c(),Z9(4,k5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",c(),Pq($,Z)},useMemo:function($,Z){u="useMemo",c();var G=x.H;x.H=b4;try{return Iq($,Z)}finally{x.H=G}},useReducer:function($,Z,G){u="useReducer",c();var Y=x.H;x.H=b4;try{return Hq($,Z,G)}finally{x.H=Y}},useRef:function($){return u="useRef",c(),Tq($)},useState:function($){u="useState",c();var Z=x.H;x.H=b4;try{return wq($)}finally{x.H=Z}},useDebugValue:function(){u="useDebugValue",c()},useDeferredValue:function($,Z){return u="useDeferredValue",c(),Vq($,Z)},useTransition:function(){return u="useTransition",c(),Aq()},useSyncExternalStore:function($,Z,G){return u="useSyncExternalStore",c(),Fq($,Z,G)},useId:function(){return u="useId",c(),Sq()},useActionState:function($,Z){return u="useActionState",c(),X7($,Z)},useFormState:function($,Z){return u="useFormState",c(),jJ(),X7($,Z)},useOptimistic:function($){return u="useOptimistic",c(),Rq($)},useHostTransitionStatus:Q9,useMemoCache:$9,useCacheRefresh:function(){return u="useCacheRefresh",c(),jq()},useEffectEvent:function($){return u="useEffectEvent",c(),Lq($)}},ON={readContext:function($){return O1($)},use:p8,useCallback:function($,Z){return u="useCallback",c(),hJ($,Z)},useContext:function($){return u="useContext",c(),O1($)},useEffect:function($,Z){u="useEffect",c(),x5(2048,f5,$,Z)},useImperativeHandle:function($,Z,G){return u="useImperativeHandle",c(),gJ($,Z,G)},useInsertionEffect:function($,Z){return u="useInsertionEffect",c(),x5(4,k5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",c(),x5(4,z6,$,Z)},useMemo:function($,Z){u="useMemo",c();var G=x.H;x.H=$4;try{return uJ($,Z)}finally{x.H=G}},useReducer:function($,Z,G){u="useReducer",c();var Y=x.H;x.H=$4;try{return G7($,Z,G)}finally{x.H=Y}},useRef:function(){return u="useRef",c(),N1().memoizedState},useState:function(){u="useState",c();var $=x.H;x.H=$4;try{return G7(n6)}finally{x.H=$}},useDebugValue:function(){u="useDebugValue",c()},useDeferredValue:function($,Z){return u="useDeferredValue",c(),FH($,Z)},useTransition:function(){return u="useTransition",c(),LH()},useSyncExternalStore:function($,Z,G){return u="useSyncExternalStore",c(),vJ($,Z,G)},useId:function(){return u="useId",c(),N1().memoizedState},useFormState:function($){return u="useFormState",c(),jJ(),bJ($)},useActionState:function($){return u="useActionState",c(),bJ($)},useOptimistic:function($,Z){return u="useOptimistic",c(),GH($,Z)},useHostTransitionStatus:Q9,useMemoCache:$9,useCacheRefresh:function(){return u="useCacheRefresh",c(),N1().memoizedState},useEffectEvent:function($){return u="useEffectEvent",c(),yJ($)}},Kw={readContext:function($){return O1($)},use:p8,useCallback:function($,Z){return u="useCallback",c(),hJ($,Z)},useContext:function($){return u="useContext",c(),O1($)},useEffect:function($,Z){u="useEffect",c(),x5(2048,f5,$,Z)},useImperativeHandle:function($,Z,G){return u="useImperativeHandle",c(),gJ($,Z,G)},useInsertionEffect:function($,Z){return u="useInsertionEffect",c(),x5(4,k5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",c(),x5(4,z6,$,Z)},useMemo:function($,Z){u="useMemo",c();var G=x.H;x.H=dG;try{return uJ($,Z)}finally{x.H=G}},useReducer:function($,Z,G){u="useReducer",c();var Y=x.H;x.H=dG;try{return p$($,Z,G)}finally{x.H=Y}},useRef:function(){return u="useRef",c(),N1().memoizedState},useState:function(){u="useState",c();var $=x.H;x.H=dG;try{return p$(n6)}finally{x.H=$}},useDebugValue:function(){u="useDebugValue",c()},useDeferredValue:function($,Z){return u="useDeferredValue",c(),WH($,Z)},useTransition:function(){return u="useTransition",c(),PH()},useSyncExternalStore:function($,Z,G){return u="useSyncExternalStore",c(),vJ($,Z,G)},useId:function(){return u="useId",c(),N1().memoizedState},useFormState:function($){return u="useFormState",c(),jJ(),kJ($)},useActionState:function($){return u="useActionState",c(),kJ($)},useOptimistic:function($,Z){return u="useOptimistic",c(),qH($,Z)},useHostTransitionStatus:Q9,useMemoCache:$9,useCacheRefresh:function(){return u="useCacheRefresh",c(),N1().memoizedState},useEffectEvent:function($){return u="useEffectEvent",c(),yJ($)}},b4={readContext:function($){return F(),O1($)},use:function($){return M(),p8($)},useCallback:function($,Z){return u="useCallback",M(),m0(),Cq($,Z)},useContext:function($){return u="useContext",M(),m0(),O1($)},useEffect:function($,Z){return u="useEffect",M(),m0(),fJ($,Z)},useImperativeHandle:function($,Z,G){return u="useImperativeHandle",M(),m0(),_q($,Z,G)},useInsertionEffect:function($,Z){u="useInsertionEffect",M(),m0(),Z9(4,k5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",M(),m0(),Pq($,Z)},useMemo:function($,Z){u="useMemo",M(),m0();var G=x.H;x.H=b4;try{return Iq($,Z)}finally{x.H=G}},useReducer:function($,Z,G){u="useReducer",M(),m0();var Y=x.H;x.H=b4;try{return Hq($,Z,G)}finally{x.H=Y}},useRef:function($){return u="useRef",M(),m0(),Tq($)},useState:function($){u="useState",M(),m0();var Z=x.H;x.H=b4;try{return wq($)}finally{x.H=Z}},useDebugValue:function(){u="useDebugValue",M(),m0()},useDeferredValue:function($,Z){return u="useDeferredValue",M(),m0(),Vq($,Z)},useTransition:function(){return u="useTransition",M(),m0(),Aq()},useSyncExternalStore:function($,Z,G){return u="useSyncExternalStore",M(),m0(),Fq($,Z,G)},useId:function(){return u="useId",M(),m0(),Sq()},useFormState:function($,Z){return u="useFormState",M(),m0(),X7($,Z)},useActionState:function($,Z){return u="useActionState",M(),m0(),X7($,Z)},useOptimistic:function($){return u="useOptimistic",M(),m0(),Rq($)},useMemoCache:function($){return M(),$9($)},useHostTransitionStatus:Q9,useCacheRefresh:function(){return u="useCacheRefresh",m0(),jq()},useEffectEvent:function($){return u="useEffectEvent",M(),m0(),Lq($)}},$4={readContext:function($){return F(),O1($)},use:function($){return M(),p8($)},useCallback:function($,Z){return u="useCallback",M(),c(),hJ($,Z)},useContext:function($){return u="useContext",M(),c(),O1($)},useEffect:function($,Z){u="useEffect",M(),c(),x5(2048,f5,$,Z)},useImperativeHandle:function($,Z,G){return u="useImperativeHandle",M(),c(),gJ($,Z,G)},useInsertionEffect:function($,Z){return u="useInsertionEffect",M(),c(),x5(4,k5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",M(),c(),x5(4,z6,$,Z)},useMemo:function($,Z){u="useMemo",M(),c();var G=x.H;x.H=$4;try{return uJ($,Z)}finally{x.H=G}},useReducer:function($,Z,G){u="useReducer",M(),c();var Y=x.H;x.H=$4;try{return G7($,Z,G)}finally{x.H=Y}},useRef:function(){return u="useRef",M(),c(),N1().memoizedState},useState:function(){u="useState",M(),c();var $=x.H;x.H=$4;try{return G7(n6)}finally{x.H=$}},useDebugValue:function(){u="useDebugValue",M(),c()},useDeferredValue:function($,Z){return u="useDeferredValue",M(),c(),FH($,Z)},useTransition:function(){return u="useTransition",M(),c(),LH()},useSyncExternalStore:function($,Z,G){return u="useSyncExternalStore",M(),c(),vJ($,Z,G)},useId:function(){return u="useId",M(),c(),N1().memoizedState},useFormState:function($){return u="useFormState",M(),c(),bJ($)},useActionState:function($){return u="useActionState",M(),c(),bJ($)},useOptimistic:function($,Z){return u="useOptimistic",M(),c(),GH($,Z)},useMemoCache:function($){return M(),$9($)},useHostTransitionStatus:Q9,useCacheRefresh:function(){return u="useCacheRefresh",c(),N1().memoizedState},useEffectEvent:function($){return u="useEffectEvent",M(),c(),yJ($)}},dG={readContext:function($){return F(),O1($)},use:function($){return M(),p8($)},useCallback:function($,Z){return u="useCallback",M(),c(),hJ($,Z)},useContext:function($){return u="useContext",M(),c(),O1($)},useEffect:function($,Z){u="useEffect",M(),c(),x5(2048,f5,$,Z)},useImperativeHandle:function($,Z,G){return u="useImperativeHandle",M(),c(),gJ($,Z,G)},useInsertionEffect:function($,Z){return u="useInsertionEffect",M(),c(),x5(4,k5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",M(),c(),x5(4,z6,$,Z)},useMemo:function($,Z){u="useMemo",M(),c();var G=x.H;x.H=$4;try{return uJ($,Z)}finally{x.H=G}},useReducer:function($,Z,G){u="useReducer",M(),c();var Y=x.H;x.H=$4;try{return p$($,Z,G)}finally{x.H=Y}},useRef:function(){return u="useRef",M(),c(),N1().memoizedState},useState:function(){u="useState",M(),c();var $=x.H;x.H=$4;try{return p$(n6)}finally{x.H=$}},useDebugValue:function(){u="useDebugValue",M(),c()},useDeferredValue:function($,Z){return u="useDeferredValue",M(),c(),WH($,Z)},useTransition:function(){return u="useTransition",M(),c(),PH()},useSyncExternalStore:function($,Z,G){return u="useSyncExternalStore",M(),c(),vJ($,Z,G)},useId:function(){return u="useId",M(),c(),N1().memoizedState},useFormState:function($){return u="useFormState",M(),c(),kJ($)},useActionState:function($){return u="useActionState",M(),c(),kJ($)},useOptimistic:function($,Z){return u="useOptimistic",M(),c(),qH($,Z)},useMemoCache:function($){return M(),$9($)},useHostTransitionStatus:Q9,useCacheRefresh:function(){return u="useCacheRefresh",c(),N1().memoizedState},useEffectEvent:function($){return u="useEffectEvent",M(),c(),yJ($)}};var Bw={},Hw=new Set,Mw=new Set,Fw=new Set,Ww=new Set,ww=new Set,Rw=new Set,zw=new Set,Tw=new Set,Lw=new Set,Pw=new Set;Object.freeze(Bw);var EN={enqueueSetState:function($,Z,G){$=$._reactInternals;var Y=B6($),U=u8(Y);U.payload=Z,G!==void 0&&G!==null&&(vq(G),U.callback=G),Z=x8($,U,Y),Z!==null&&(K4(Y,"this.setState()",$),D1(Z,$,Y),u$(Z,$,Y))},enqueueReplaceState:function($,Z,G){$=$._reactInternals;var Y=B6($),U=u8(Y);U.tag=Jw,U.payload=Z,G!==void 0&&G!==null&&(vq(G),U.callback=G),Z=x8($,U,Y),Z!==null&&(K4(Y,"this.replaceState()",$),D1(Z,$,Y),u$(Z,$,Y))},enqueueForceUpdate:function($,Z){$=$._reactInternals;var G=B6($),Y=u8(G);Y.tag=Gw,Z!==void 0&&Z!==null&&(vq(Z),Y.callback=Z),Z=x8($,Y,G),Z!==null&&(K4(G,"this.forceUpdate()",$),D1(Z,$,G),u$(Z,$,G))}},d7=null,AN=null,SN=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."),s1=!1,_w={},Cw={},Iw={},Vw={},p7=!1,Ow={},pG={},jN={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},Ew=!1,Aw=null;Aw=new Set;var H8=!1,n1=!1,DN=!1,Sw=typeof WeakSet==="function"?WeakSet:Set,U5=null,c7=null,l7=null,o1=null,p5=!1,Z4=null,Z5=!1,uZ=8192,QV={getCacheForType:function($){var Z=O1(c1),G=Z.data.get($);return G===void 0&&(G=$(),Z.data.set($,G)),G},cacheSignal:function(){return O1(c1).controller.signal},getOwner:function(){return F6}};if(typeof Symbol==="function"&&Symbol.for){var xZ=Symbol.for;xZ("selector.component"),xZ("selector.has_pseudo_class"),xZ("selector.role"),xZ("selector.test_id"),xZ("selector.text")}var JV=[],GV=typeof WeakMap==="function"?WeakMap:Map,K5=0,Q5=2,T6=4,M8=0,mZ=1,z9=2,cG=3,N2=4,lG=6,jw=5,i0=K5,W1=null,h0=null,g0=0,c5=0,rG=1,T9=2,dZ=3,Dw=4,vN=5,pZ=6,sG=7,bN=8,L9=9,U1=c5,L6=null,U2=!1,r7=!1,kN=!1,k4=0,S1=M8,K2=0,B2=0,fN=0,l5=0,P9=0,cZ=null,y5=null,nG=!1,oG=0,vw=0,bw=300,aG=1/0,kw=500,lZ=null,h1=null,H2=null,iG=0,yN=1,gN=2,fw=3,M2=0,yw=1,gw=2,hw=3,uw=4,tG=5,a1=0,F2=null,s7=null,Q4=0,hN=0,uN=-0,xN=null,xw=null,mw=null,J4=iG,dw=null,XV=50,rZ=0,mN=null,dN=!1,eG=!1,qV=50,_9=0,sZ=null,n7=!1,$3=null,pw=!1,cw=new Set,YV={},Z3=null,o7=null,pN=!1,cN=!1,Q3=!1,lN=!1,W2=0,rN={};(function(){for(var $=0;$<JN.length;$++){var Z=JN[$],G=Z.toLowerCase();Z=Z[0].toUpperCase()+Z.slice(1),s6(G,"on"+Z)}s6(LW,"onAnimationEnd"),s6(PW,"onAnimationIteration"),s6(_W,"onAnimationStart"),s6("dblclick","onDoubleClick"),s6("focusin","onFocus"),s6("focusout","onBlur"),s6(gI,"onTransitionRun"),s6(hI,"onTransitionStart"),s6(uI,"onTransitionCancel"),s6(CW,"onTransitionEnd")})(),G6("onMouseEnter",["mouseout","mouseover"]),G6("onMouseLeave",["mouseout","mouseover"]),G6("onPointerEnter",["pointerout","pointerover"]),G6("onPointerLeave",["pointerout","pointerover"]),P5("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),P5("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),P5("onBeforeInput",["compositionend","keypress","textInput","paste"]),P5("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),P5("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),P5("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var nZ="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(" "),sN=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(nZ)),J3="_reactListening"+Math.random().toString(36).slice(2),lw=!1,rw=!1,G3=!1,sw=!1,X3=!1,q3=!1,nw=!1,Y3={},NV=/\r\n?/g,UV=/\u0000|\uFFFD/g,C9="http://www.w3.org/1999/xlink",nN="http://www.w3.org/XML/1998/namespace",KV="javascript:throw new Error('React form unexpectedly submitted.')",BV="suppressHydrationWarning",I9="&",N3="/&",oZ="$",aZ="/$",w2="$?",V9="$~",a7="$!",HV="html",MV="body",FV="head",oN="F!",ow="F",aw="loading",WV="style",F8=0,i7=1,U3=2,aN=null,iN=null,iw={dialog:!0,webview:!0},tN=null,iZ=void 0,tw=typeof setTimeout==="function"?setTimeout:void 0,wV=typeof clearTimeout==="function"?clearTimeout:void 0,O9=-1,ew=typeof Promise==="function"?Promise:void 0,RV=typeof queueMicrotask==="function"?queueMicrotask:typeof ew<"u"?function($){return ew.resolve(null).then($).catch(ZC)}:tw,eN=null,E9=0,tZ=1,$R=2,ZR=3,g6=4,h6=new Map,QR=new Set,W8=q1.d;q1.d={f:function(){var $=W8.f(),Z=K7();return $||Z},r:function($){var Z=S0($);Z!==null&&Z.tag===5&&Z.type==="form"?TH(Z):W8.r($)},D:function($){W8.D($),HF("dns-prefetch",$,null)},C:function($,Z){W8.C($,Z),HF("preconnect",$,Z)},L:function($,Z,G){W8.L($,Z,G);var Y=t7;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=M7($);break;case"script":B=F7($)}h6.has(B)||($=d0({rel:"preload",href:Z==="image"&&G&&G.imageSrcSet?void 0:$,as:Z},G),h6.set(B,$),Y.querySelector(U)!==null||Z==="style"&&Y.querySelector(GZ(B))||Z==="script"&&Y.querySelector(XZ(B))||(Z=Y.createElement("link"),M5(Z,"link",$),z0(Z),Y.head.appendChild(Z)))}},m:function($,Z){W8.m($,Z);var G=t7;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=F7($)}if(!h6.has(B)&&($=d0({rel:"modulepreload",href:$},Z),h6.set(B,$),G.querySelector(U)===null)){switch(Y){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(G.querySelector(XZ(B)))return}Y=G.createElement("link"),M5(Y,"link",$),z0(Y),G.head.appendChild(Y)}}},X:function($,Z){W8.X($,Z);var G=t7;if(G&&$){var Y=e0(G).hoistableScripts,U=F7($),B=Y.get(U);B||(B=G.querySelector(XZ(U)),B||($=d0({src:$,async:!0},Z),(Z=h6.get(U))&&_Y($,Z),B=G.createElement("script"),z0(B),M5(B,"link",$),G.head.appendChild(B)),B={type:"script",instance:B,count:1,state:null},Y.set(U,B))}},S:function($,Z,G){W8.S($,Z,G);var Y=t7;if(Y&&$){var U=e0(Y).hoistableStyles,B=M7($);Z=Z||"default";var W=U.get(B);if(!W){var R={loading:E9,preload:null};if(W=Y.querySelector(GZ(B)))R.loading=tZ|g6;else{$=d0({rel:"stylesheet",href:$,"data-precedence":Z},G),(G=h6.get(B))&&PY($,G);var L=W=Y.createElement("link");z0(L),M5(L,"link",$),L._p=new Promise(function(_,k){L.onload=_,L.onerror=k}),L.addEventListener("load",function(){R.loading|=tZ}),L.addEventListener("error",function(){R.loading|=$R}),R.loading|=g6,GG(W,Z,Y)}W={type:"stylesheet",instance:W,count:1,state:R},U.set(B,W)}}},M:function($,Z){W8.M($,Z);var G=t7;if(G&&$){var Y=e0(G).hoistableScripts,U=F7($),B=Y.get(U);B||(B=G.querySelector(XZ(U)),B||($=d0({src:$,async:!0,type:"module"},Z),(Z=h6.get(U))&&_Y($,Z),B=G.createElement("script"),z0(B),M5(B,"link",$),G.head.appendChild(B)),B={type:"script",instance:B,count:1,state:null},Y.set(U,B))}}};var t7=typeof document>"u"?null:document,K3=null,zV=60000,TV=800,LV=500,$U=0,ZU=null,B3=null,A9=fC,eZ={$$typeof:I4,Provider:null,Consumer:null,_currentValue:A9,_currentValue2:A9,_threadCount:0},JR="%c%s%c",GR="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",XR="",H3=" ",PV=Function.prototype.bind,qR=!1,YR=null,NR=null,UR=null,KR=null,BR=null,HR=null,MR=null,FR=null,WR=null,wR=null;YR=function($,Z,G,Y){Z=Q($,Z),Z!==null&&(G=J(Z.memoizedState,G,0,Y),Z.memoizedState=G,Z.baseState=G,$.memoizedProps=d0({},$.memoizedProps),G=_5($,2),G!==null&&D1(G,$,2))},NR=function($,Z,G){Z=Q($,Z),Z!==null&&(G=N(Z.memoizedState,G,0),Z.memoizedState=G,Z.baseState=G,$.memoizedProps=d0({},$.memoizedProps),G=_5($,2),G!==null&&D1(G,$,2))},UR=function($,Z,G,Y){Z=Q($,Z),Z!==null&&(G=X(Z.memoizedState,G,Y),Z.memoizedState=G,Z.baseState=G,$.memoizedProps=d0({},$.memoizedProps),G=_5($,2),G!==null&&D1(G,$,2))},KR=function($,Z,G){$.pendingProps=J($.memoizedProps,Z,0,G),$.alternate&&($.alternate.pendingProps=$.pendingProps),Z=_5($,2),Z!==null&&D1(Z,$,2)},BR=function($,Z){$.pendingProps=N($.memoizedProps,Z,0),$.alternate&&($.alternate.pendingProps=$.pendingProps),Z=_5($,2),Z!==null&&D1(Z,$,2)},HR=function($,Z,G){$.pendingProps=X($.memoizedProps,Z,G),$.alternate&&($.alternate.pendingProps=$.pendingProps),Z=_5($,2),Z!==null&&D1(Z,$,2)},MR=function($){var Z=_5($,2);Z!==null&&D1(Z,$,2)},FR=function($){var Z=a9(),G=_5($,Z);G!==null&&D1(G,$,Z)},WR=function($){H=$},wR=function($){K=$};var M3=!0,F3=null,QU=!1,R2=null,z2=null,T2=null,$Q=new Map,ZQ=new Map,L2=[],_V="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(" "),W3=null;if(UG.prototype.render=AY.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()."):V(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=B6(Y);CY(Y,U,G,Z,null,null)},UG.prototype.unmount=AY.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;(i0&(Q5|T6))!==K5&&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."),CY($.current,2,null,$,null,null),K7(),Z[a8]=null}},UG.prototype.unstable_scheduleHydration=function($){if($){var Z=y();$={blockedOn:null,target:$,priority:Z};for(var G=0;G<L2.length&&Z!==0&&Z<L2[G].priority;G++);L2.splice(G,0,$),G===0&&OF($)}},function(){var $=K$.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"),X1.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 $=o(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=JR,$.overrideHookStateDeletePath=GR,$.overrideHookStateRenamePath=XR,$.overrideProps=qR,$.overridePropsDeletePath=YR,$.overridePropsRenamePath=NR,$.scheduleUpdate=UR,$.scheduleRetry=KR,$.setErrorHandler=BR,$.setSuspenseHandler=HR,$.scheduleRefresh=A,$.scheduleRoot=V,$.setRefreshHandler=O,$.getCurrentFiber=PC,s9($)}()&&E4&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var MR=window.location.protocol;/^(https?|file):$/.test(MR)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(MR==="file:"?`
227
- You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}gj.createRoot=function($,Z){if(!I($))throw Error("Target container is not a DOM element.");OF($);var J=!1,Y="",U=CH,B=VH,W=IH;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===P4&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
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"),q1.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 $=o(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=YR,$.overrideHookStateDeletePath=NR,$.overrideHookStateRenamePath=UR,$.overrideProps=KR,$.overridePropsDeletePath=BR,$.overridePropsRenamePath=HR,$.scheduleUpdate=MR,$.scheduleRetry=FR,$.setErrorHandler=WR,$.setSuspenseHandler=wR,$.scheduleRefresh=A,$.scheduleRoot=I,$.setRefreshHandler=O,$.getCurrentFiber=EC,o9($)}()&&S4&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var RR=window.location.protocol;/^(https?|file):$/.test(RR)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(RR==="file:"?`
227
+ You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}pS.createRoot=function($,Z){if(!V($))throw Error("Target container is not a DOM element.");jF($);var G=!1,Y="",U=EH,B=AH,W=SH;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===C4&&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&&(J=!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&&(W=Z.onRecoverableError)),Z=WF($,1,!1,null,null,J,Y,null,U,B,W,IF),$[n8]=Z.current,qY($),new IY(Z)},gj.hydrateRoot=function($,Z,J){if(!I($))throw Error("Target container is not a DOM element.");OF($),Z===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var Y=!1,U="",B=CH,W=VH,R=IH,L=null;return J!==null&&J!==void 0&&(J.unstable_strictMode===!0&&(Y=!0),J.identifierPrefix!==void 0&&(U=J.identifierPrefix),J.onUncaughtError!==void 0&&(B=J.onUncaughtError),J.onCaughtError!==void 0&&(W=J.onCaughtError),J.onRecoverableError!==void 0&&(R=J.onRecoverableError),J.formState!==void 0&&(L=J.formState)),Z=WF($,1,!0,Z,J!=null?J:null,Y,U,L,B,W,R,IF),Z.context=wF(null),J=Z.current,Y=Y6(J),Y=d2(Y),U=g8(Y),U.callback=null,h8(J,U,Y),N4(Y,"hydrateRoot()",null),J=Y,Z.current.lanes=J,S8(Z,J),T4(Z),$[n8]=Z.current,qY($),new GG(Z)},gj.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var mT=T2((Bb,xT)=>{var hj=t(uT());xT.exports=hj});var R0=T2((US)=>{var u9=t(O1());(function(){function Q(v){if(v==null)return null;if(typeof v==="function")return v.$$typeof===d?null:v.displayName||v.name||null;if(typeof v==="string")return v;switch(v){case O:return"Fragment";case D:return"Profiler";case I:return"StrictMode";case o:return"Suspense";case Q0:return"SuspenseList";case q0:return"Activity"}if(typeof v==="object")switch(typeof v.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),v.$$typeof){case A:return"Portal";case p:return v.displayName||"Context";case h:return(v._context.displayName||"Context")+".Consumer";case s:var n=v.render;return v=v.displayName,v||(v=n.displayName||n.name||"",v=v!==""?"ForwardRef("+v+")":"ForwardRef"),v;case i:return n=v.displayName||null,n!==null?n:Q(v.type)||"Memo";case a:n=v._payload,v=v._init;try{return Q(v(n))}catch(H0){}}return null}function G(v){return""+v}function X(v){try{G(v);var n=!1}catch(u0){n=!0}if(n){n=console;var H0=n.error,M0=typeof Symbol==="function"&&Symbol.toStringTag&&v[Symbol.toStringTag]||v.constructor.name||"Object";return H0.call(n,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",M0),G(v)}}function q(v){if(v===O)return"<>";if(typeof v==="object"&&v!==null&&v.$$typeof===a)return"<...>";try{var n=Q(v);return n?"<"+n+">":"<...>"}catch(H0){return"<...>"}}function N(){var v=K0.A;return v===null?null:v.getOwner()}function K(){return Error("react-stack-top-frame")}function H(v){if(L0.call(v,"key")){var n=Object.getOwnPropertyDescriptor(v,"key").get;if(n&&n.isReactWarning)return!1}return v.key!==void 0}function M(v,n){function H0(){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)",n))}H0.isReactWarning=!0,Object.defineProperty(v,"key",{get:H0,configurable:!0})}function F(){var v=Q(this.type);return X0[v]||(X0[v]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),v=this.props.ref,v!==void 0?v:null}function w(v,n,H0,M0,u0,k1){var D0=H0.ref;return v={$$typeof:V,type:v,key:n,props:H0,_owner:M0},(D0!==void 0?D0:null)!==null?Object.defineProperty(v,"ref",{enumerable:!1,get:F}):Object.defineProperty(v,"ref",{enumerable:!1,value:null}),v._store={},Object.defineProperty(v._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(v,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(v,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:u0}),Object.defineProperty(v,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:k1}),Object.freeze&&(Object.freeze(v.props),Object.freeze(v)),v}function z(v,n,H0,M0,u0,k1){var D0=n.children;if(D0!==void 0)if(M0)if(_0(D0)){for(M0=0;M0<D0.length;M0++)T(D0[M0]);Object.freeze&&Object.freeze(D0)}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 T(D0);if(L0.call(n,"key")){D0=Q(v);var m1=Object.keys(n).filter(function(p6){return p6!=="key"});M0=0<m1.length?"{key: someKey, "+m1.join(": ..., ")+": ...}":"{key: someKey}",h0[D0+M0]||(m1=0<m1.length?"{"+m1.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
230
+ root.render(<App />);`),Z.unstable_strictMode===!0&&(G=!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&&(W=Z.onRecoverableError)),Z=TF($,1,!1,null,null,G,Y,null,U,B,W,SF),$[a8]=Z.current,UY($),new AY(Z)},pS.hydrateRoot=function($,Z,G){if(!V($))throw Error("Target container is not a DOM element.");jF($),Z===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var Y=!1,U="",B=EH,W=AH,R=SH,L=null;return G!==null&&G!==void 0&&(G.unstable_strictMode===!0&&(Y=!0),G.identifierPrefix!==void 0&&(U=G.identifierPrefix),G.onUncaughtError!==void 0&&(B=G.onUncaughtError),G.onCaughtError!==void 0&&(W=G.onCaughtError),G.onRecoverableError!==void 0&&(R=G.onRecoverableError),G.formState!==void 0&&(L=G.formState)),Z=TF($,1,!0,Z,G!=null?G:null,Y,U,L,B,W,R,SF),Z.context=LF(null),G=Z.current,Y=B6(G),Y=c2(Y),U=u8(Y),U.callback=null,x8(G,U,Y),K4(Y,"hydrateRoot()",null),G=Y,Z.current.lanes=G,v8(Z,G),P4(Z),$[a8]=Z.current,UY($),new UG(Z)},pS.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var lT=P2((Ib,cT)=>{var cS=i(pT());cT.exports=cS});var M0=P2((wj)=>{var m9=i(I1());(function(){function Q(v){if(v==null)return null;if(typeof v==="function")return v.$$typeof===d?null:v.displayName||v.name||null;if(typeof v==="string")return v;switch(v){case O:return"Fragment";case D:return"Profiler";case V:return"StrictMode";case o:return"Suspense";case Q0:return"SuspenseList";case q0:return"Activity"}if(typeof v==="object")switch(typeof v.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),v.$$typeof){case A:return"Portal";case p:return v.displayName||"Context";case h:return(v._context.displayName||"Context")+".Consumer";case s:var n=v.render;return v=v.displayName,v||(v=n.displayName||n.name||"",v=v!==""?"ForwardRef("+v+")":"ForwardRef"),v;case t:return n=v.displayName||null,n!==null?n:Q(v.type)||"Memo";case a:n=v._payload,v=v._init;try{return Q(v(n))}catch(H0){}}return null}function J(v){return""+v}function X(v){try{J(v);var n=!1}catch(x0){n=!0}if(n){n=console;var H0=n.error,F0=typeof Symbol==="function"&&Symbol.toStringTag&&v[Symbol.toStringTag]||v.constructor.name||"Object";return H0.call(n,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",F0),J(v)}}function q(v){if(v===O)return"<>";if(typeof v==="object"&&v!==null&&v.$$typeof===a)return"<...>";try{var n=Q(v);return n?"<"+n+">":"<...>"}catch(H0){return"<...>"}}function N(){var v=K0.A;return v===null?null:v.getOwner()}function K(){return Error("react-stack-top-frame")}function H(v){if(L0.call(v,"key")){var n=Object.getOwnPropertyDescriptor(v,"key").get;if(n&&n.isReactWarning)return!1}return v.key!==void 0}function M(v,n){function H0(){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)",n))}H0.isReactWarning=!0,Object.defineProperty(v,"key",{get:H0,configurable:!0})}function F(){var v=Q(this.type);return X0[v]||(X0[v]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),v=this.props.ref,v!==void 0?v:null}function w(v,n,H0,F0,x0,y1){var v0=H0.ref;return v={$$typeof:I,type:v,key:n,props:H0,_owner:F0},(v0!==void 0?v0:null)!==null?Object.defineProperty(v,"ref",{enumerable:!1,get:F}):Object.defineProperty(v,"ref",{enumerable:!1,value:null}),v._store={},Object.defineProperty(v._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(v,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(v,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:x0}),Object.defineProperty(v,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:y1}),Object.freeze&&(Object.freeze(v.props),Object.freeze(v)),v}function z(v,n,H0,F0,x0,y1){var v0=n.children;if(v0!==void 0)if(F0)if(_0(v0)){for(F0=0;F0<v0.length;F0++)T(v0[F0]);Object.freeze&&Object.freeze(v0)}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 T(v0);if(L0.call(n,"key")){v0=Q(v);var p1=Object.keys(n).filter(function(r6){return r6!=="key"});F0=0<p1.length?"{key: someKey, "+p1.join(": ..., ")+": ...}":"{key: someKey}",u0[v0+F0]||(p1=0<p1.length?"{"+p1.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} />`,M0,D0,m1,D0),h0[D0+M0]=!0)}if(D0=null,H0!==void 0&&(X(H0),D0=""+H0),H(n)&&(X(n.key),D0=""+n.key),"key"in n){H0={};for(var z5 in n)z5!=="key"&&(H0[z5]=n[z5])}else H0=n;return D0&&M(H0,typeof v==="function"?v.displayName||v.name||"Unknown":v),w(v,D0,H0,N(),u0,k1)}function T(v){P(v)?v._store&&(v._store.validated=1):typeof v==="object"&&v!==null&&v.$$typeof===a&&(v._payload.status==="fulfilled"?P(v._payload.value)&&v._payload.value._store&&(v._payload.value._store.validated=1):v._store&&(v._store.validated=1))}function P(v){return typeof v==="object"&&v!==null&&v.$$typeof===V}var V=Symbol.for("react.transitional.element"),A=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),I=Symbol.for("react.strict_mode"),D=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),p=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),o=Symbol.for("react.suspense"),Q0=Symbol.for("react.suspense_list"),i=Symbol.for("react.memo"),a=Symbol.for("react.lazy"),q0=Symbol.for("react.activity"),d=Symbol.for("react.client.reference"),K0=u9.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L0=Object.prototype.hasOwnProperty,_0=Array.isArray,S0=console.createTask?console.createTask:function(){return null};u9={react_stack_bottom_frame:function(v){return v()}};var l,X0={},B0=u9.react_stack_bottom_frame.bind(u9,K)(),l0=S0(q(K)),h0={};US.Fragment=O,US.jsxDEV=function(v,n,H0,M0){var u0=1e4>K0.recentlyCreatedOwnerStacks++;return z(v,n,H0,M0,u0?Error("react-stack-top-frame"):B0,u0?S0(q(v)):l0)}})()});var iL=T2((ZD)=>{var p9=t(O1());(function(){function Q(v){if(v==null)return null;if(typeof v==="function")return v.$$typeof===d?null:v.displayName||v.name||null;if(typeof v==="string")return v;switch(v){case O:return"Fragment";case D:return"Profiler";case I:return"StrictMode";case o:return"Suspense";case Q0:return"SuspenseList";case q0:return"Activity"}if(typeof v==="object")switch(typeof v.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),v.$$typeof){case A:return"Portal";case p:return v.displayName||"Context";case h:return(v._context.displayName||"Context")+".Consumer";case s:var n=v.render;return v=v.displayName,v||(v=n.displayName||n.name||"",v=v!==""?"ForwardRef("+v+")":"ForwardRef"),v;case i:return n=v.displayName||null,n!==null?n:Q(v.type)||"Memo";case a:n=v._payload,v=v._init;try{return Q(v(n))}catch(H0){}}return null}function G(v){return""+v}function X(v){try{G(v);var n=!1}catch(u0){n=!0}if(n){n=console;var H0=n.error,M0=typeof Symbol==="function"&&Symbol.toStringTag&&v[Symbol.toStringTag]||v.constructor.name||"Object";return H0.call(n,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",M0),G(v)}}function q(v){if(v===O)return"<>";if(typeof v==="object"&&v!==null&&v.$$typeof===a)return"<...>";try{var n=Q(v);return n?"<"+n+">":"<...>"}catch(H0){return"<...>"}}function N(){var v=K0.A;return v===null?null:v.getOwner()}function K(){return Error("react-stack-top-frame")}function H(v){if(L0.call(v,"key")){var n=Object.getOwnPropertyDescriptor(v,"key").get;if(n&&n.isReactWarning)return!1}return v.key!==void 0}function M(v,n){function H0(){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)",n))}H0.isReactWarning=!0,Object.defineProperty(v,"key",{get:H0,configurable:!0})}function F(){var v=Q(this.type);return X0[v]||(X0[v]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),v=this.props.ref,v!==void 0?v:null}function w(v,n,H0,M0,u0,k1){var D0=H0.ref;return v={$$typeof:V,type:v,key:n,props:H0,_owner:M0},(D0!==void 0?D0:null)!==null?Object.defineProperty(v,"ref",{enumerable:!1,get:F}):Object.defineProperty(v,"ref",{enumerable:!1,value:null}),v._store={},Object.defineProperty(v._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(v,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(v,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:u0}),Object.defineProperty(v,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:k1}),Object.freeze&&(Object.freeze(v.props),Object.freeze(v)),v}function z(v,n,H0,M0,u0,k1){var D0=n.children;if(D0!==void 0)if(M0)if(_0(D0)){for(M0=0;M0<D0.length;M0++)T(D0[M0]);Object.freeze&&Object.freeze(D0)}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 T(D0);if(L0.call(n,"key")){D0=Q(v);var m1=Object.keys(n).filter(function(p6){return p6!=="key"});M0=0<m1.length?"{key: someKey, "+m1.join(": ..., ")+": ...}":"{key: someKey}",h0[D0+M0]||(m1=0<m1.length?"{"+m1.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
235
+ <%s key={someKey} {...props} />`,F0,v0,p1,v0),u0[v0+F0]=!0)}if(v0=null,H0!==void 0&&(X(H0),v0=""+H0),H(n)&&(X(n.key),v0=""+n.key),"key"in n){H0={};for(var L5 in n)L5!=="key"&&(H0[L5]=n[L5])}else H0=n;return v0&&M(H0,typeof v==="function"?v.displayName||v.name||"Unknown":v),w(v,v0,H0,N(),x0,y1)}function T(v){P(v)?v._store&&(v._store.validated=1):typeof v==="object"&&v!==null&&v.$$typeof===a&&(v._payload.status==="fulfilled"?P(v._payload.value)&&v._payload.value._store&&(v._payload.value._store.validated=1):v._store&&(v._store.validated=1))}function P(v){return typeof v==="object"&&v!==null&&v.$$typeof===I}var I=Symbol.for("react.transitional.element"),A=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),V=Symbol.for("react.strict_mode"),D=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),p=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),o=Symbol.for("react.suspense"),Q0=Symbol.for("react.suspense_list"),t=Symbol.for("react.memo"),a=Symbol.for("react.lazy"),q0=Symbol.for("react.activity"),d=Symbol.for("react.client.reference"),K0=m9.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L0=Object.prototype.hasOwnProperty,_0=Array.isArray,D0=console.createTask?console.createTask:function(){return null};m9={react_stack_bottom_frame:function(v){return v()}};var l,X0={},B0=m9.react_stack_bottom_frame.bind(m9,K)(),r0=D0(q(K)),u0={};wj.Fragment=O,wj.jsxDEV=function(v,n,H0,F0){var x0=1e4>K0.recentlyCreatedOwnerStacks++;return z(v,n,H0,F0,x0?Error("react-stack-top-frame"):B0,x0?D0(q(v)):r0)}})()});var QP=P2((ND)=>{var l9=i(I1());(function(){function Q(v){if(v==null)return null;if(typeof v==="function")return v.$$typeof===d?null:v.displayName||v.name||null;if(typeof v==="string")return v;switch(v){case O:return"Fragment";case D:return"Profiler";case V:return"StrictMode";case o:return"Suspense";case Q0:return"SuspenseList";case q0:return"Activity"}if(typeof v==="object")switch(typeof v.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),v.$$typeof){case A:return"Portal";case p:return v.displayName||"Context";case h:return(v._context.displayName||"Context")+".Consumer";case s:var n=v.render;return v=v.displayName,v||(v=n.displayName||n.name||"",v=v!==""?"ForwardRef("+v+")":"ForwardRef"),v;case t:return n=v.displayName||null,n!==null?n:Q(v.type)||"Memo";case a:n=v._payload,v=v._init;try{return Q(v(n))}catch(H0){}}return null}function J(v){return""+v}function X(v){try{J(v);var n=!1}catch(x0){n=!0}if(n){n=console;var H0=n.error,F0=typeof Symbol==="function"&&Symbol.toStringTag&&v[Symbol.toStringTag]||v.constructor.name||"Object";return H0.call(n,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",F0),J(v)}}function q(v){if(v===O)return"<>";if(typeof v==="object"&&v!==null&&v.$$typeof===a)return"<...>";try{var n=Q(v);return n?"<"+n+">":"<...>"}catch(H0){return"<...>"}}function N(){var v=K0.A;return v===null?null:v.getOwner()}function K(){return Error("react-stack-top-frame")}function H(v){if(L0.call(v,"key")){var n=Object.getOwnPropertyDescriptor(v,"key").get;if(n&&n.isReactWarning)return!1}return v.key!==void 0}function M(v,n){function H0(){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)",n))}H0.isReactWarning=!0,Object.defineProperty(v,"key",{get:H0,configurable:!0})}function F(){var v=Q(this.type);return X0[v]||(X0[v]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),v=this.props.ref,v!==void 0?v:null}function w(v,n,H0,F0,x0,y1){var v0=H0.ref;return v={$$typeof:I,type:v,key:n,props:H0,_owner:F0},(v0!==void 0?v0:null)!==null?Object.defineProperty(v,"ref",{enumerable:!1,get:F}):Object.defineProperty(v,"ref",{enumerable:!1,value:null}),v._store={},Object.defineProperty(v._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(v,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(v,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:x0}),Object.defineProperty(v,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:y1}),Object.freeze&&(Object.freeze(v.props),Object.freeze(v)),v}function z(v,n,H0,F0,x0,y1){var v0=n.children;if(v0!==void 0)if(F0)if(_0(v0)){for(F0=0;F0<v0.length;F0++)T(v0[F0]);Object.freeze&&Object.freeze(v0)}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 T(v0);if(L0.call(n,"key")){v0=Q(v);var p1=Object.keys(n).filter(function(r6){return r6!=="key"});F0=0<p1.length?"{key: someKey, "+p1.join(": ..., ")+": ...}":"{key: someKey}",u0[v0+F0]||(p1=0<p1.length?"{"+p1.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} />`,M0,D0,m1,D0),h0[D0+M0]=!0)}if(D0=null,H0!==void 0&&(X(H0),D0=""+H0),H(n)&&(X(n.key),D0=""+n.key),"key"in n){H0={};for(var z5 in n)z5!=="key"&&(H0[z5]=n[z5])}else H0=n;return D0&&M(H0,typeof v==="function"?v.displayName||v.name||"Unknown":v),w(v,D0,H0,N(),u0,k1)}function T(v){P(v)?v._store&&(v._store.validated=1):typeof v==="object"&&v!==null&&v.$$typeof===a&&(v._payload.status==="fulfilled"?P(v._payload.value)&&v._payload.value._store&&(v._payload.value._store.validated=1):v._store&&(v._store.validated=1))}function P(v){return typeof v==="object"&&v!==null&&v.$$typeof===V}var V=Symbol.for("react.transitional.element"),A=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),I=Symbol.for("react.strict_mode"),D=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),p=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),o=Symbol.for("react.suspense"),Q0=Symbol.for("react.suspense_list"),i=Symbol.for("react.memo"),a=Symbol.for("react.lazy"),q0=Symbol.for("react.activity"),d=Symbol.for("react.client.reference"),K0=p9.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L0=Object.prototype.hasOwnProperty,_0=Array.isArray,S0=console.createTask?console.createTask:function(){return null};p9={react_stack_bottom_frame:function(v){return v()}};var l,X0={},B0=p9.react_stack_bottom_frame.bind(p9,K)(),l0=S0(q(K)),h0={};ZD.Fragment=O,ZD.jsx=function(v,n,H0){var M0=1e4>K0.recentlyCreatedOwnerStacks++;return z(v,n,H0,!1,M0?Error("react-stack-top-frame"):B0,M0?S0(q(v)):l0)},ZD.jsxs=function(v,n,H0){var M0=1e4>K0.recentlyCreatedOwnerStacks++;return z(v,n,H0,!0,M0?Error("react-stack-top-frame"):B0,M0?S0(q(v)):l0)}})()});/*!
240
+ <%s key={someKey} {...props} />`,F0,v0,p1,v0),u0[v0+F0]=!0)}if(v0=null,H0!==void 0&&(X(H0),v0=""+H0),H(n)&&(X(n.key),v0=""+n.key),"key"in n){H0={};for(var L5 in n)L5!=="key"&&(H0[L5]=n[L5])}else H0=n;return v0&&M(H0,typeof v==="function"?v.displayName||v.name||"Unknown":v),w(v,v0,H0,N(),x0,y1)}function T(v){P(v)?v._store&&(v._store.validated=1):typeof v==="object"&&v!==null&&v.$$typeof===a&&(v._payload.status==="fulfilled"?P(v._payload.value)&&v._payload.value._store&&(v._payload.value._store.validated=1):v._store&&(v._store.validated=1))}function P(v){return typeof v==="object"&&v!==null&&v.$$typeof===I}var I=Symbol.for("react.transitional.element"),A=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),V=Symbol.for("react.strict_mode"),D=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),p=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),o=Symbol.for("react.suspense"),Q0=Symbol.for("react.suspense_list"),t=Symbol.for("react.memo"),a=Symbol.for("react.lazy"),q0=Symbol.for("react.activity"),d=Symbol.for("react.client.reference"),K0=l9.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L0=Object.prototype.hasOwnProperty,_0=Array.isArray,D0=console.createTask?console.createTask:function(){return null};l9={react_stack_bottom_frame:function(v){return v()}};var l,X0={},B0=l9.react_stack_bottom_frame.bind(l9,K)(),r0=D0(q(K)),u0={};ND.Fragment=O,ND.jsx=function(v,n,H0){var F0=1e4>K0.recentlyCreatedOwnerStacks++;return z(v,n,H0,!1,F0?Error("react-stack-top-frame"):B0,F0?D0(q(v)):r0)},ND.jsxs=function(v,n,H0){var F0=1e4>K0.recentlyCreatedOwnerStacks++;return z(v,n,H0,!0,F0?Error("react-stack-top-frame"):B0,F0?D0(q(v)):r0)}})()});/*!
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 tZ(Q){return Q+0.5|0}var L2=(Q,G,X)=>Math.max(Math.min(Q,X),G);function iZ(Q){return L2(tZ(Q*2.55),0,255)}function P2(Q){return L2(tZ(Q*255),0,255)}function F8(Q){return L2(tZ(Q/2.55)/100,0,1)}function WR(Q){return L2(tZ(Q*100),0,100)}var y6={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},ZU=[..."0123456789ABCDEF"],II=(Q)=>ZU[Q&15],OI=(Q)=>ZU[(Q&240)>>4]+ZU[Q&15],B3=(Q)=>(Q&240)>>4===(Q&15),EI=(Q)=>B3(Q.r)&&B3(Q.g)&&B3(Q.b)&&B3(Q.a);function AI(Q){var G=Q.length,X;if(Q[0]==="#"){if(G===4||G===5)X={r:255&y6[Q[1]]*17,g:255&y6[Q[2]]*17,b:255&y6[Q[3]]*17,a:G===5?y6[Q[4]]*17:255};else if(G===7||G===9)X={r:y6[Q[1]]<<4|y6[Q[2]],g:y6[Q[3]]<<4|y6[Q[4]],b:y6[Q[5]]<<4|y6[Q[6]],a:G===9?y6[Q[7]]<<4|y6[Q[8]]:255}}return X}var jI=(Q,G)=>Q<255?G(Q):"";function SI(Q){var G=EI(Q)?II:OI;return Q?"#"+G(Q.r)+G(Q.g)+G(Q.b)+jI(Q.a,G):void 0}var DI=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function TR(Q,G,X){let q=G*Math.min(X,1-X),N=(K,H=(K+Q/30)%12)=>X-q*Math.max(Math.min(H-3,9-H,1),-1);return[N(0),N(8),N(4)]}function vI(Q,G,X){let q=(N,K=(N+Q/60)%6)=>X-X*G*Math.max(Math.min(K,4-K,1),0);return[q(5),q(3),q(1)]}function bI(Q,G,X){let q=TR(Q,1,0.5),N;if(G+X>1)N=1/(G+X),G*=N,X*=N;for(N=0;N<3;N++)q[N]*=1-G-X,q[N]+=G;return q}function kI(Q,G,X,q,N){if(Q===N)return(G-X)/q+(G<X?6:0);if(G===N)return(X-Q)/q+2;return(Q-G)/q+4}function QU(Q){let X=Q.r/255,q=Q.g/255,N=Q.b/255,K=Math.max(X,q,N),H=Math.min(X,q,N),M=(K+H)/2,F,w,z;if(K!==H)z=K-H,w=M>0.5?z/(2-K-H):z/(K+H),F=kI(X,q,N,z,K),F=F*60+0.5;return[F|0,w||0,M]}function JU(Q,G,X,q){return(Array.isArray(G)?Q(G[0],G[1],G[2]):Q(G,X,q)).map(P2)}function GU(Q,G,X){return JU(TR,Q,G,X)}function fI(Q,G,X){return JU(bI,Q,G,X)}function yI(Q,G,X){return JU(vI,Q,G,X)}function LR(Q){return(Q%360+360)%360}function gI(Q){let G=DI.exec(Q),X=255,q;if(!G)return;if(G[5]!==q)X=G[6]?iZ(+G[5]):P2(+G[5]);let N=LR(+G[2]),K=+G[3]/100,H=+G[4]/100;if(G[1]==="hwb")q=fI(N,K,H);else if(G[1]==="hsv")q=yI(N,K,H);else q=GU(N,K,H);return{r:q[0],g:q[1],b:q[2],a:X}}function hI(Q,G){var X=QU(Q);X[0]=LR(X[0]+G),X=GU(X),Q.r=X[0],Q.g=X[1],Q.b=X[2]}function uI(Q){if(!Q)return;let G=QU(Q),X=G[0],q=WR(G[1]),N=WR(G[2]);return Q.a<255?`hsla(${X}, ${q}%, ${N}%, ${F8(Q.a)})`:`hsl(${X}, ${q}%, ${N}%)`}var wR={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"},RR={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 xI(){let Q={},G=Object.keys(RR),X=Object.keys(wR),q,N,K,H,M;for(q=0;q<G.length;q++){H=M=G[q];for(N=0;N<X.length;N++)K=X[N],M=M.replace(K,wR[K]);K=parseInt(RR[H],16),Q[M]=[K>>16&255,K>>8&255,K&255]}return Q}var H3;function mI(Q){if(!H3)H3=xI(),H3.transparent=[0,0,0,0];let G=H3[Q.toLowerCase()];return G&&{r:G[0],g:G[1],b:G[2],a:G.length===4?G[3]:255}}var dI=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function pI(Q){let G=dI.exec(Q),X=255,q,N,K;if(!G)return;if(G[7]!==q){let H=+G[7];X=G[8]?iZ(H):L2(H*255,0,255)}return q=+G[1],N=+G[3],K=+G[5],q=255&(G[2]?iZ(q):L2(q,0,255)),N=255&(G[4]?iZ(N):L2(N,0,255)),K=255&(G[6]?iZ(K):L2(K,0,255)),{r:q,g:N,b:K,a:X}}function cI(Q){return Q&&(Q.a<255?`rgba(${Q.r}, ${Q.g}, ${Q.b}, ${F8(Q.a)})`:`rgb(${Q.r}, ${Q.g}, ${Q.b})`)}var $U=(Q)=>Q<=0.0031308?Q*12.92:Math.pow(Q,0.4166666666666667)*1.055-0.055,i7=(Q)=>Q<=0.04045?Q/12.92:Math.pow((Q+0.055)/1.055,2.4);function lI(Q,G,X){let q=i7(F8(Q.r)),N=i7(F8(Q.g)),K=i7(F8(Q.b));return{r:P2($U(q+X*(i7(F8(G.r))-q))),g:P2($U(N+X*(i7(F8(G.g))-N))),b:P2($U(K+X*(i7(F8(G.b))-K))),a:Q.a+X*(G.a-Q.a)}}function M3(Q,G,X){if(Q){let q=QU(Q);q[G]=Math.max(0,Math.min(q[G]+q[G]*X,G===0?360:1)),q=GU(q),Q.r=q[0],Q.g=q[1],Q.b=q[2]}}function PR(Q,G){return Q?Object.assign(G||{},Q):Q}function zR(Q){var G={r:0,g:0,b:0,a:255};if(Array.isArray(Q)){if(Q.length>=3){if(G={r:Q[0],g:Q[1],b:Q[2],a:255},Q.length>3)G.a=P2(Q[3])}}else G=PR(Q,{r:0,g:0,b:0,a:1}),G.a=P2(G.a);return G}function rI(Q){if(Q.charAt(0)==="r")return pI(Q);return gI(Q)}class t7{constructor(Q){if(Q instanceof t7)return Q;let G=typeof Q,X;if(G==="object")X=zR(Q);else if(G==="string")X=AI(Q)||mI(Q)||rI(Q);this._rgb=X,this._valid=!!X}get valid(){return this._valid}get rgb(){var Q=PR(this._rgb);if(Q)Q.a=F8(Q.a);return Q}set rgb(Q){this._rgb=zR(Q)}rgbString(){return this._valid?cI(this._rgb):void 0}hexString(){return this._valid?SI(this._rgb):void 0}hslString(){return this._valid?uI(this._rgb):void 0}mix(Q,G){if(Q){let X=this.rgb,q=Q.rgb,N,K=G===N?0.5:G,H=2*K-1,M=X.a-q.a,F=((H*M===-1?H:(H+M)/(1+H*M))+1)/2;N=1-F,X.r=255&F*X.r+N*q.r+0.5,X.g=255&F*X.g+N*q.g+0.5,X.b=255&F*X.b+N*q.b+0.5,X.a=K*X.a+(1-K)*q.a,this.rgb=X}return this}interpolate(Q,G){if(Q)this._rgb=lI(this._rgb,Q._rgb,G);return this}clone(){return new t7(this.rgb)}alpha(Q){return this._rgb.a=P2(Q),this}clearer(Q){let G=this._rgb;return G.a*=1-Q,this}greyscale(){let Q=this._rgb,G=tZ(Q.r*0.3+Q.g*0.59+Q.b*0.11);return Q.r=Q.g=Q.b=G,this}opaquer(Q){let G=this._rgb;return G.a*=1+Q,this}negate(){let Q=this._rgb;return Q.r=255-Q.r,Q.g=255-Q.g,Q.b=255-Q.b,this}lighten(Q){return M3(this._rgb,2,Q),this}darken(Q){return M3(this._rgb,2,-Q),this}saturate(Q){return M3(this._rgb,1,Q),this}desaturate(Q){return M3(this._rgb,1,-Q),this}rotate(Q){return hI(this._rgb,Q),this}}/*!
245
+ */function JQ(Q){return Q+0.5|0}var _2=(Q,J,X)=>Math.max(Math.min(Q,X),J);function QQ(Q){return _2(JQ(Q*2.55),0,255)}function C2(Q){return _2(JQ(Q*255),0,255)}function R8(Q){return _2(JQ(Q/2.55)/100,0,1)}function TR(Q){return _2(JQ(Q*100),0,100)}var u6={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},GU=[..."0123456789ABCDEF"],DV=(Q)=>GU[Q&15],vV=(Q)=>GU[(Q&240)>>4]+GU[Q&15],w3=(Q)=>(Q&240)>>4===(Q&15),bV=(Q)=>w3(Q.r)&&w3(Q.g)&&w3(Q.b)&&w3(Q.a);function kV(Q){var J=Q.length,X;if(Q[0]==="#"){if(J===4||J===5)X={r:255&u6[Q[1]]*17,g:255&u6[Q[2]]*17,b:255&u6[Q[3]]*17,a:J===5?u6[Q[4]]*17:255};else if(J===7||J===9)X={r:u6[Q[1]]<<4|u6[Q[2]],g:u6[Q[3]]<<4|u6[Q[4]],b:u6[Q[5]]<<4|u6[Q[6]],a:J===9?u6[Q[7]]<<4|u6[Q[8]]:255}}return X}var fV=(Q,J)=>Q<255?J(Q):"";function yV(Q){var J=bV(Q)?DV:vV;return Q?"#"+J(Q.r)+J(Q.g)+J(Q.b)+fV(Q.a,J):void 0}var gV=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function CR(Q,J,X){let q=J*Math.min(X,1-X),N=(K,H=(K+Q/30)%12)=>X-q*Math.max(Math.min(H-3,9-H,1),-1);return[N(0),N(8),N(4)]}function hV(Q,J,X){let q=(N,K=(N+Q/60)%6)=>X-X*J*Math.max(Math.min(K,4-K,1),0);return[q(5),q(3),q(1)]}function uV(Q,J,X){let q=CR(Q,1,0.5),N;if(J+X>1)N=1/(J+X),J*=N,X*=N;for(N=0;N<3;N++)q[N]*=1-J-X,q[N]+=J;return q}function xV(Q,J,X,q,N){if(Q===N)return(J-X)/q+(J<X?6:0);if(J===N)return(X-Q)/q+2;return(Q-J)/q+4}function XU(Q){let X=Q.r/255,q=Q.g/255,N=Q.b/255,K=Math.max(X,q,N),H=Math.min(X,q,N),M=(K+H)/2,F,w,z;if(K!==H)z=K-H,w=M>0.5?z/(2-K-H):z/(K+H),F=xV(X,q,N,z,K),F=F*60+0.5;return[F|0,w||0,M]}function qU(Q,J,X,q){return(Array.isArray(J)?Q(J[0],J[1],J[2]):Q(J,X,q)).map(C2)}function YU(Q,J,X){return qU(CR,Q,J,X)}function mV(Q,J,X){return qU(uV,Q,J,X)}function dV(Q,J,X){return qU(hV,Q,J,X)}function IR(Q){return(Q%360+360)%360}function pV(Q){let J=gV.exec(Q),X=255,q;if(!J)return;if(J[5]!==q)X=J[6]?QQ(+J[5]):C2(+J[5]);let N=IR(+J[2]),K=+J[3]/100,H=+J[4]/100;if(J[1]==="hwb")q=mV(N,K,H);else if(J[1]==="hsv")q=dV(N,K,H);else q=YU(N,K,H);return{r:q[0],g:q[1],b:q[2],a:X}}function cV(Q,J){var X=XU(Q);X[0]=IR(X[0]+J),X=YU(X),Q.r=X[0],Q.g=X[1],Q.b=X[2]}function lV(Q){if(!Q)return;let J=XU(Q),X=J[0],q=TR(J[1]),N=TR(J[2]);return Q.a<255?`hsla(${X}, ${q}%, ${N}%, ${R8(Q.a)})`:`hsl(${X}, ${q}%, ${N}%)`}var LR={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"},PR={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 rV(){let Q={},J=Object.keys(PR),X=Object.keys(LR),q,N,K,H,M;for(q=0;q<J.length;q++){H=M=J[q];for(N=0;N<X.length;N++)K=X[N],M=M.replace(K,LR[K]);K=parseInt(PR[H],16),Q[M]=[K>>16&255,K>>8&255,K&255]}return Q}var R3;function sV(Q){if(!R3)R3=rV(),R3.transparent=[0,0,0,0];let J=R3[Q.toLowerCase()];return J&&{r:J[0],g:J[1],b:J[2],a:J.length===4?J[3]:255}}var nV=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function oV(Q){let J=nV.exec(Q),X=255,q,N,K;if(!J)return;if(J[7]!==q){let H=+J[7];X=J[8]?QQ(H):_2(H*255,0,255)}return q=+J[1],N=+J[3],K=+J[5],q=255&(J[2]?QQ(q):_2(q,0,255)),N=255&(J[4]?QQ(N):_2(N,0,255)),K=255&(J[6]?QQ(K):_2(K,0,255)),{r:q,g:N,b:K,a:X}}function aV(Q){return Q&&(Q.a<255?`rgba(${Q.r}, ${Q.g}, ${Q.b}, ${R8(Q.a)})`:`rgb(${Q.r}, ${Q.g}, ${Q.b})`)}var JU=(Q)=>Q<=0.0031308?Q*12.92:Math.pow(Q,0.4166666666666667)*1.055-0.055,e7=(Q)=>Q<=0.04045?Q/12.92:Math.pow((Q+0.055)/1.055,2.4);function iV(Q,J,X){let q=e7(R8(Q.r)),N=e7(R8(Q.g)),K=e7(R8(Q.b));return{r:C2(JU(q+X*(e7(R8(J.r))-q))),g:C2(JU(N+X*(e7(R8(J.g))-N))),b:C2(JU(K+X*(e7(R8(J.b))-K))),a:Q.a+X*(J.a-Q.a)}}function z3(Q,J,X){if(Q){let q=XU(Q);q[J]=Math.max(0,Math.min(q[J]+q[J]*X,J===0?360:1)),q=YU(q),Q.r=q[0],Q.g=q[1],Q.b=q[2]}}function VR(Q,J){return Q?Object.assign(J||{},Q):Q}function _R(Q){var J={r:0,g:0,b:0,a:255};if(Array.isArray(Q)){if(Q.length>=3){if(J={r:Q[0],g:Q[1],b:Q[2],a:255},Q.length>3)J.a=C2(Q[3])}}else J=VR(Q,{r:0,g:0,b:0,a:1}),J.a=C2(J.a);return J}function tV(Q){if(Q.charAt(0)==="r")return oV(Q);return pV(Q)}class $${constructor(Q){if(Q instanceof $$)return Q;let J=typeof Q,X;if(J==="object")X=_R(Q);else if(J==="string")X=kV(Q)||sV(Q)||tV(Q);this._rgb=X,this._valid=!!X}get valid(){return this._valid}get rgb(){var Q=VR(this._rgb);if(Q)Q.a=R8(Q.a);return Q}set rgb(Q){this._rgb=_R(Q)}rgbString(){return this._valid?aV(this._rgb):void 0}hexString(){return this._valid?yV(this._rgb):void 0}hslString(){return this._valid?lV(this._rgb):void 0}mix(Q,J){if(Q){let X=this.rgb,q=Q.rgb,N,K=J===N?0.5:J,H=2*K-1,M=X.a-q.a,F=((H*M===-1?H:(H+M)/(1+H*M))+1)/2;N=1-F,X.r=255&F*X.r+N*q.r+0.5,X.g=255&F*X.g+N*q.g+0.5,X.b=255&F*X.b+N*q.b+0.5,X.a=K*X.a+(1-K)*q.a,this.rgb=X}return this}interpolate(Q,J){if(Q)this._rgb=iV(this._rgb,Q._rgb,J);return this}clone(){return new $$(this.rgb)}alpha(Q){return this._rgb.a=C2(Q),this}clearer(Q){let J=this._rgb;return J.a*=1-Q,this}greyscale(){let Q=this._rgb,J=JQ(Q.r*0.3+Q.g*0.59+Q.b*0.11);return Q.r=Q.g=Q.b=J,this}opaquer(Q){let J=this._rgb;return J.a*=1+Q,this}negate(){let Q=this._rgb;return Q.r=255-Q.r,Q.g=255-Q.g,Q.b=255-Q.b,this}lighten(Q){return z3(this._rgb,2,Q),this}darken(Q){return z3(this._rgb,2,-Q),this}saturate(Q){return z3(this._rgb,1,Q),this}desaturate(Q){return z3(this._rgb,1,-Q),this}rotate(Q){return cV(this._rgb,Q),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 k4(){}var vR=(()=>{let Q=0;return()=>Q++})();function t0(Q){return Q===null||Q===void 0}function _1(Q){if(Array.isArray&&Array.isArray(Q))return!0;let G=Object.prototype.toString.call(Q);if(G.slice(0,7)==="[object"&&G.slice(-6)==="Array]")return!0;return!1}function o0(Q){return Q!==null&&Object.prototype.toString.call(Q)==="[object Object]"}function v1(Q){return(typeof Q==="number"||Q instanceof Number)&&isFinite(+Q)}function s5(Q,G){return v1(Q)?Q:G}function p0(Q,G){return typeof Q>"u"?G:Q}var bR=(Q,G)=>typeof Q==="string"&&Q.endsWith("%")?parseFloat(Q)/100*G:+Q;function z1(Q,G,X){if(Q&&typeof Q.call==="function")return Q.apply(X,G)}function U1(Q,G,X,q){let N,K,H;if(_1(Q))if(K=Q.length,q)for(N=K-1;N>=0;N--)G.call(X,Q[N],N);else for(N=0;N<K;N++)G.call(X,Q[N],N);else if(o0(Q)){H=Object.keys(Q),K=H.length;for(N=0;N<K;N++)G.call(X,Q[H[N]],H[N])}}function ZQ(Q,G){let X,q,N,K;if(!Q||!G||Q.length!==G.length)return!1;for(X=0,q=Q.length;X<q;++X)if(N=Q[X],K=G[X],N.datasetIndex!==K.datasetIndex||N.index!==K.index)return!1;return!0}function R3(Q){if(_1(Q))return Q.map(R3);if(o0(Q)){let G=Object.create(null),X=Object.keys(Q),q=X.length,N=0;for(;N<q;++N)G[X[N]]=R3(Q[X[N]]);return G}return Q}function kR(Q){return["__proto__","prototype","constructor"].indexOf(Q)===-1}function sI(Q,G,X,q){if(!kR(Q))return;let N=G[Q],K=X[Q];if(o0(N)&&o0(K))$$(N,K,q);else G[Q]=R3(K)}function $$(Q,G,X){let q=_1(G)?G:[G],N=q.length;if(!o0(Q))return Q;X=X||{};let K=X.merger||sI,H;for(let M=0;M<N;++M){if(H=q[M],!o0(H))continue;let F=Object.keys(H);for(let w=0,z=F.length;w<z;++w)K(F[w],Q,H,X)}return Q}function Q$(Q,G){return $$(Q,G,{merger:nI})}function nI(Q,G,X){if(!kR(Q))return;let q=G[Q],N=X[Q];if(o0(q)&&o0(N))Q$(q,N);else if(!Object.prototype.hasOwnProperty.call(G,Q))G[Q]=R3(N)}var _R={"":(Q)=>Q,x:(Q)=>Q.x,y:(Q)=>Q.y};function oI(Q){let G=Q.split("."),X=[],q="";for(let N of G)if(q+=N,q.endsWith("\\"))q=q.slice(0,-1)+".";else X.push(q),q="";return X}function aI(Q){let G=oI(Q);return(X)=>{for(let q of G){if(q==="")break;X=X&&X[q]}return X}}function S9(Q,G){return(_R[G]||(_R[G]=aI(G)))(Q)}function P3(Q){return Q.charAt(0).toUpperCase()+Q.slice(1)}var J$=(Q)=>typeof Q<"u",W8=(Q)=>typeof Q==="function",YU=(Q,G)=>{if(Q.size!==G.size)return!1;for(let X of Q)if(!G.has(X))return!1;return!0};function fR(Q){return Q.type==="mouseup"||Q.type==="click"||Q.type==="contextmenu"}var u1=Math.PI,l5=2*u1,iI=l5+u1,z3=Number.POSITIVE_INFINITY,tI=u1/180,c5=u1/2,E9=u1/4,CR=u1*2/3,w8=Math.log10,Z4=Math.sign;function G$(Q,G,X){return Math.abs(Q-G)<X}function NU(Q){let G=Math.round(Q);Q=G$(Q,G,Q/1000)?G:Q;let X=Math.pow(10,Math.floor(w8(Q))),q=Q/X;return(q<=1?1:q<=2?2:q<=5?5:10)*X}function yR(Q){let G=[],X=Math.sqrt(Q),q;for(q=1;q<X;q++)if(Q%q===0)G.push(q),G.push(Q/q);if(X===(X|0))G.push(X);return G.sort((N,K)=>N-K).pop(),G}function eI(Q){return typeof Q==="symbol"||typeof Q==="object"&&Q!==null&&!((Symbol.toPrimitive in Q)||("toString"in Q)||("valueOf"in Q))}function X$(Q){return!eI(Q)&&!isNaN(parseFloat(Q))&&isFinite(Q)}function gR(Q,G){let X=Math.round(Q);return X-G<=Q&&X+G>=Q}function UU(Q,G,X){let q,N,K;for(q=0,N=Q.length;q<N;q++)if(K=Q[q][X],!isNaN(K))G.min=Math.min(G.min,K),G.max=Math.max(G.max,K)}function R8(Q){return Q*(u1/180)}function _3(Q){return Q*(180/u1)}function KU(Q){if(!v1(Q))return;let G=1,X=0;while(Math.round(Q*G)/G!==Q)G*=10,X++;return X}function hR(Q,G){let X=G.x-Q.x,q=G.y-Q.y,N=Math.sqrt(X*X+q*q),K=Math.atan2(q,X);if(K<-0.5*u1)K+=l5;return{angle:K,distance:N}}function T3(Q,G){return Math.sqrt(Math.pow(G.x-Q.x,2)+Math.pow(G.y-Q.y,2))}function $O(Q,G){return(Q-G+iI)%l5-u1}function p5(Q){return(Q%l5+l5)%l5}function BU(Q,G,X,q){let N=p5(Q),K=p5(G),H=p5(X),M=p5(K-N),F=p5(H-N),w=p5(N-K),z=p5(N-H);return N===K||N===H||q&&K===H||M>F&&w<z}function r5(Q,G,X){return Math.max(G,Math.min(X,Q))}function uR(Q){return r5(Q,-32768,32767)}function z8(Q,G,X,q=0.000001){return Q>=Math.min(G,X)-q&&Q<=Math.max(G,X)+q}function C3(Q,G,X){X=X||((H)=>Q[H]<G);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 C2=(Q,G,X,q)=>C3(Q,X,q?(N)=>{let K=Q[N][G];return K<X||K===X&&Q[N+1][G]===X}:(N)=>Q[N][G]<X),xR=(Q,G,X)=>C3(Q,X,(q)=>Q[q][G]>=X);function mR(Q,G,X){let q=0,N=Q.length;while(q<N&&Q[q]<G)q++;while(N>q&&Q[N-1]>X)N--;return q>0||N<Q.length?Q.slice(q,N):Q}var dR=["push","pop","shift","splice","unshift"];function pR(Q,G){if(Q._chartjs){Q._chartjs.listeners.push(G);return}Object.defineProperty(Q,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[G]}}),dR.forEach((X)=>{let q="_onData"+P3(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((M)=>{if(typeof M[q]==="function")M[q](...K)}),H}})})}function HU(Q,G){let X=Q._chartjs;if(!X)return;let q=X.listeners,N=q.indexOf(G);if(N!==-1)q.splice(N,1);if(q.length>0)return;dR.forEach((K)=>{delete Q[K]}),delete Q._chartjs}function MU(Q){let G=new Set(Q);if(G.size===Q.length)return Q;return Array.from(G)}var FU=function(){if(typeof window>"u")return function(Q){return Q()};return window.requestAnimationFrame}();function WU(Q,G){let X=[],q=!1;return function(...N){if(X=N,!q)q=!0,FU.call(window,()=>{q=!1,Q.apply(G,X)})}}function cR(Q,G){let X;return function(...q){if(G)clearTimeout(X),X=setTimeout(Q,G,q);else Q.apply(this,q);return G}}var V3=(Q)=>Q==="start"?"left":Q==="end"?"right":"center",W5=(Q,G,X)=>Q==="start"?G:Q==="end"?X:(G+X)/2,lR=(Q,G,X,q)=>{return Q===(q?"left":"right")?X:Q==="center"?(G+X)/2:G};function rR(Q,G,X){let q=G.length,N=0,K=q;if(Q._sorted){let{iScale:H,vScale:M,_parsed:F}=Q,w=Q.dataset?Q.dataset.options?Q.dataset.options.spanGaps:null:null,z=H.axis,{min:T,max:P,minDefined:V,maxDefined:A}=H.getUserBounds();if(V){if(N=Math.min(C2(F,z,T).lo,X?q:C2(G,z,H.getPixelForValue(T)).lo),w){let O=F.slice(0,N+1).reverse().findIndex((I)=>!t0(I[M.axis]));N-=Math.max(0,O)}N=r5(N,0,q-1)}if(A){let O=Math.max(C2(F,H.axis,P,!0).hi+1,X?0:C2(G,z,H.getPixelForValue(P),!0).hi+1);if(w){let I=F.slice(O-1).findIndex((D)=>!t0(D[M.axis]));O+=Math.max(0,I)}K=r5(O,N,q)-N}else K=q-N}return{start:N,count:K}}function sR(Q){let{xScale:G,yScale:X,_scaleRanges:q}=Q,N={xmin:G.min,xmax:G.max,ymin:X.min,ymax:X.max};if(!q)return Q._scaleRanges=N,!0;let K=q.xmin!==G.min||q.xmax!==G.max||q.ymin!==X.min||q.ymax!==X.max;return Object.assign(q,N),K}var F3=(Q)=>Q===0||Q===1,VR=(Q,G,X)=>-(Math.pow(2,10*(Q-=1))*Math.sin((Q-G)*l5/X)),IR=(Q,G,X)=>Math.pow(2,-10*Q)*Math.sin((Q-G)*l5/X)+1,e7={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*c5)+1,easeOutSine:(Q)=>Math.sin(Q*c5),easeInOutSine:(Q)=>-0.5*(Math.cos(u1*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)=>F3(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)=>F3(Q)?Q:VR(Q,0.075,0.3),easeOutElastic:(Q)=>F3(Q)?Q:IR(Q,0.075,0.3),easeInOutElastic(Q){return F3(Q)?Q:Q<0.5?0.5*VR(Q*2,0.1125,0.45):0.5+0.5*IR(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 G=1.70158;if((Q/=0.5)<1)return 0.5*(Q*Q*(((G*=1.525)+1)*Q-G));return 0.5*((Q-=2)*Q*(((G*=1.525)+1)*Q+G)+2)},easeInBounce:(Q)=>1-e7.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?e7.easeInBounce(Q*2)*0.5:e7.easeOutBounce(Q*2-1)*0.5+0.5};function wU(Q){if(Q&&typeof Q==="object"){let G=Q.toString();return G==="[object CanvasPattern]"||G==="[object CanvasGradient]"}return!1}function RU(Q){return wU(Q)?Q:new t7(Q)}function XU(Q){return wU(Q)?Q:new t7(Q).saturate(0.5).darken(0.1).hexString()}var ZO=["x","y","borderWidth","radius","tension"],QO=["color","borderColor","backgroundColor"];function JO(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:(G)=>G!=="onProgress"&&G!=="onComplete"&&G!=="fn"}),Q.set("animations",{colors:{type:"color",properties:QO},numbers:{type:"number",properties:ZO}}),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:(G)=>G|0}}}})}function GO(Q){Q.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}var OR=new Map;function XO(Q,G){G=G||{};let X=Q+JSON.stringify(G),q=OR.get(X);if(!q)q=new Intl.NumberFormat(Q,G),OR.set(X,q);return q}function I3(Q,G,X){return XO(G,X).format(Q)}var nR={values(Q){return _1(Q)?Q:""+Q},numeric(Q,G,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=qO(Q,X)}let H=w8(Math.abs(K)),M=isNaN(H)?1:Math.max(Math.min(-1*Math.floor(H),20),0),F={notation:N,minimumFractionDigits:M,maximumFractionDigits:M};return Object.assign(F,this.options.ticks.format),I3(Q,q,F)},logarithmic(Q,G,X){if(Q===0)return"0";let q=X[G].significand||Q/Math.pow(10,Math.floor(w8(Q)));if([1,2,3,5,10,15].includes(q)||G>0.8*X.length)return nR.numeric.call(this,Q,G,X);return""}};function qO(Q,G){let X=G.length>3?G[2].value-G[1].value:G[1].value-G[0].value;if(Math.abs(X)>=1&&Q!==Math.floor(Q))X=Q-Math.floor(Q);return X}var QQ={formatters:nR};function YO(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:(G,X)=>X.lineWidth,tickColor:(G,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:QQ.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:(G)=>!G.startsWith("before")&&!G.startsWith("after")&&G!=="callback"&&G!=="parser",_indexable:(G)=>G!=="borderDash"&&G!=="tickBorderDash"&&G!=="dash"}),Q.describe("scales",{_fallback:"scale"}),Q.describe("scale.ticks",{_scriptable:(G)=>G!=="backdropPadding"&&G!=="callback",_indexable:(G)=>G!=="backdropPadding"})}var I2=Object.create(null),O3=Object.create(null);function eZ(Q,G){if(!G)return Q;let X=G.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 qU(Q,G,X){if(typeof G==="string")return $$(eZ(Q,G),X);return $$(eZ(Q,""),G)}class oR{constructor(Q,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=(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)=>XU(q.backgroundColor),this.hoverBorderColor=(X,q)=>XU(q.borderColor),this.hoverColor=(X,q)=>XU(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(G)}set(Q,G){return qU(this,Q,G)}get(Q){return eZ(this,Q)}describe(Q,G){return qU(O3,Q,G)}override(Q,G){return qU(I2,Q,G)}route(Q,G,X,q){let N=eZ(this,Q),K=eZ(this,X),H="_"+G;Object.defineProperties(N,{[H]:{value:N[G],writable:!0},[G]:{enumerable:!0,get(){let M=this[H],F=K[q];if(o0(M))return Object.assign({},F,M);return p0(M,F)},set(M){this[H]=M}}})}apply(Q){Q.forEach((G)=>G(this))}}var b1=new oR({_scriptable:(Q)=>!Q.startsWith("on"),_indexable:(Q)=>Q!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[JO,GO,YO]);function NO(Q){if(!Q||t0(Q.size)||t0(Q.family))return null;return(Q.style?Q.style+" ":"")+(Q.weight?Q.weight+" ":"")+Q.size+"px "+Q.family}function $Q(Q,G,X,q,N){let K=G[N];if(!K)K=G[N]=Q.measureText(N).width,X.push(N);if(K>q)q=K;return q}function aR(Q,G,X,q){q=q||{};let N=q.data=q.data||{},K=q.garbageCollect=q.garbageCollect||[];if(q.font!==G)N=q.data={},K=q.garbageCollect=[],q.font=G;Q.save(),Q.font=G;let H=0,M=X.length,F,w,z,T,P;for(F=0;F<M;F++)if(T=X[F],T!==void 0&&T!==null&&!_1(T))H=$Q(Q,N,K,H,T);else if(_1(T)){for(w=0,z=T.length;w<z;w++)if(P=T[w],P!==void 0&&P!==null&&!_1(P))H=$Q(Q,N,K,H,P)}Q.restore();let V=K.length/2;if(V>X.length){for(F=0;F<V;F++)delete N[K[F]];K.splice(0,V)}return H}function O2(Q,G,X){let q=Q.currentDevicePixelRatio,N=X!==0?Math.max(X/2,0.5):0;return Math.round((G-N)*q)/q+N}function zU(Q,G){if(!G&&!Q)return;G=G||Q.getContext("2d"),G.save(),G.resetTransform(),G.clearRect(0,0,Q.width,Q.height),G.restore()}function E3(Q,G,X,q){TU(Q,G,X,q,null)}function TU(Q,G,X,q,N){let K,H,M,F,w,z,T,P,V=G.pointStyle,A=G.rotation,O=G.radius,I=(A||0)*tI;if(V&&typeof V==="object"){if(K=V.toString(),K==="[object HTMLImageElement]"||K==="[object HTMLCanvasElement]"){Q.save(),Q.translate(X,q),Q.rotate(I),Q.drawImage(V,-V.width/2,-V.height/2,V.width,V.height),Q.restore();return}}if(isNaN(O)||O<=0)return;switch(Q.beginPath(),V){default:if(N)Q.ellipse(X,q,N/2,O,0,0,l5);else Q.arc(X,q,O,0,l5);Q.closePath();break;case"triangle":z=N?N/2:O,Q.moveTo(X+Math.sin(I)*z,q-Math.cos(I)*O),I+=CR,Q.lineTo(X+Math.sin(I)*z,q-Math.cos(I)*O),I+=CR,Q.lineTo(X+Math.sin(I)*z,q-Math.cos(I)*O),Q.closePath();break;case"rectRounded":w=O*0.516,F=O-w,H=Math.cos(I+E9)*F,T=Math.cos(I+E9)*(N?N/2-w:F),M=Math.sin(I+E9)*F,P=Math.sin(I+E9)*(N?N/2-w:F),Q.arc(X-T,q-M,w,I-u1,I-c5),Q.arc(X+P,q-H,w,I-c5,I),Q.arc(X+T,q+M,w,I,I+c5),Q.arc(X-P,q+H,w,I+c5,I+u1),Q.closePath();break;case"rect":if(!A){F=Math.SQRT1_2*O,z=N?N/2:F,Q.rect(X-z,q-F,2*z,2*F);break}I+=E9;case"rectRot":T=Math.cos(I)*(N?N/2:O),H=Math.cos(I)*O,M=Math.sin(I)*O,P=Math.sin(I)*(N?N/2:O),Q.moveTo(X-T,q-M),Q.lineTo(X+P,q-H),Q.lineTo(X+T,q+M),Q.lineTo(X-P,q+H),Q.closePath();break;case"crossRot":I+=E9;case"cross":T=Math.cos(I)*(N?N/2:O),H=Math.cos(I)*O,M=Math.sin(I)*O,P=Math.sin(I)*(N?N/2:O),Q.moveTo(X-T,q-M),Q.lineTo(X+T,q+M),Q.moveTo(X+P,q-H),Q.lineTo(X-P,q+H);break;case"star":T=Math.cos(I)*(N?N/2:O),H=Math.cos(I)*O,M=Math.sin(I)*O,P=Math.sin(I)*(N?N/2:O),Q.moveTo(X-T,q-M),Q.lineTo(X+T,q+M),Q.moveTo(X+P,q-H),Q.lineTo(X-P,q+H),I+=E9,T=Math.cos(I)*(N?N/2:O),H=Math.cos(I)*O,M=Math.sin(I)*O,P=Math.sin(I)*(N?N/2:O),Q.moveTo(X-T,q-M),Q.lineTo(X+T,q+M),Q.moveTo(X+P,q-H),Q.lineTo(X-P,q+H);break;case"line":H=N?N/2:Math.cos(I)*O,M=Math.sin(I)*O,Q.moveTo(X-H,q-M),Q.lineTo(X+H,q+M);break;case"dash":Q.moveTo(X,q),Q.lineTo(X+Math.cos(I)*(N?N/2:O),q+Math.sin(I)*O);break;case!1:Q.closePath();break}if(Q.fill(),G.borderWidth>0)Q.stroke()}function b4(Q,G,X){return X=X||0.5,!G||Q&&Q.x>G.left-X&&Q.x<G.right+X&&Q.y>G.top-X&&Q.y<G.bottom+X}function JQ(Q,G){Q.save(),Q.beginPath(),Q.rect(G.left,G.top,G.right-G.left,G.bottom-G.top),Q.clip()}function GQ(Q){Q.restore()}function iR(Q,G,X,q,N){if(!G)return Q.lineTo(X.x,X.y);if(N==="middle"){let K=(G.x+X.x)/2;Q.lineTo(K,G.y),Q.lineTo(K,X.y)}else if(N==="after"!==!!q)Q.lineTo(G.x,X.y);else Q.lineTo(X.x,G.y);Q.lineTo(X.x,X.y)}function tR(Q,G,X,q){if(!G)return Q.lineTo(X.x,X.y);Q.bezierCurveTo(q?G.cp1x:G.cp2x,q?G.cp1y:G.cp2y,q?X.cp2x:X.cp1x,q?X.cp2y:X.cp1y,X.x,X.y)}function UO(Q,G){if(G.translation)Q.translate(G.translation[0],G.translation[1]);if(!t0(G.rotation))Q.rotate(G.rotation);if(G.color)Q.fillStyle=G.color;if(G.textAlign)Q.textAlign=G.textAlign;if(G.textBaseline)Q.textBaseline=G.textBaseline}function KO(Q,G,X,q,N){if(N.strikethrough||N.underline){let K=Q.measureText(q),H=G-K.actualBoundingBoxLeft,M=G+K.actualBoundingBoxRight,F=X-K.actualBoundingBoxAscent,w=X+K.actualBoundingBoxDescent,z=N.strikethrough?(F+w)/2:w;Q.strokeStyle=Q.fillStyle,Q.beginPath(),Q.lineWidth=N.decorationWidth||2,Q.moveTo(H,z),Q.lineTo(M,z),Q.stroke()}}function BO(Q,G){let X=Q.fillStyle;Q.fillStyle=G.color,Q.fillRect(G.left,G.top,G.width,G.height),Q.fillStyle=X}function E2(Q,G,X,q,N,K={}){let H=_1(G)?G:[G],M=K.strokeWidth>0&&K.strokeColor!=="",F,w;Q.save(),Q.font=N.string,UO(Q,K);for(F=0;F<H.length;++F){if(w=H[F],K.backdrop)BO(Q,K.backdrop);if(M){if(K.strokeColor)Q.strokeStyle=K.strokeColor;if(!t0(K.strokeWidth))Q.lineWidth=K.strokeWidth;Q.strokeText(w,X,q,K.maxWidth)}Q.fillText(w,X,q,K.maxWidth),KO(Q,X,q,w,K),q+=Number(N.lineHeight)}Q.restore()}function q$(Q,G){let{x:X,y:q,w:N,h:K,radius:H}=G;Q.arc(X+H.topLeft,q+H.topLeft,H.topLeft,1.5*u1,u1,!0),Q.lineTo(X,q+K-H.bottomLeft),Q.arc(X+H.bottomLeft,q+K-H.bottomLeft,H.bottomLeft,u1,c5,!0),Q.lineTo(X+N-H.bottomRight,q+K),Q.arc(X+N-H.bottomRight,q+K-H.bottomRight,H.bottomRight,c5,0,!0),Q.lineTo(X+N,q+H.topRight),Q.arc(X+N-H.topRight,q+H.topRight,H.topRight,0,-c5,!0),Q.lineTo(X+H.topLeft,q)}var HO=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,MO=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function FO(Q,G){let X=(""+Q).match(HO);if(!X||X[1]==="normal")return G*1.2;switch(Q=+X[2],X[3]){case"px":return Q;case"%":Q/=100;break}return G*Q}var WO=(Q)=>+Q||0;function LU(Q,G){let X={},q=o0(G),N=q?Object.keys(G):G,K=o0(Q)?q?(H)=>p0(Q[H],Q[G[H]]):(H)=>Q[H]:()=>Q;for(let H of N)X[H]=WO(K(H));return X}function PU(Q){return LU(Q,{top:"y",right:"x",bottom:"y",left:"x"})}function A2(Q){return LU(Q,["topLeft","topRight","bottomLeft","bottomRight"])}function w5(Q){let G=PU(Q);return G.width=G.left+G.right,G.height=G.top+G.bottom,G}function o1(Q,G){Q=Q||{},G=G||b1.font;let X=p0(Q.size,G.size);if(typeof X==="string")X=parseInt(X,10);let q=p0(Q.style,G.style);if(q&&!(""+q).match(MO))console.warn('Invalid font style specified: "'+q+'"'),q=void 0;let N={family:p0(Q.family,G.family),lineHeight:FO(p0(Q.lineHeight,G.lineHeight),X),size:X,style:q,weight:p0(Q.weight,G.weight),string:""};return N.string=NO(N),N}function XQ(Q,G,X,q){let N=!0,K,H,M;for(K=0,H=Q.length;K<H;++K){if(M=Q[K],M===void 0)continue;if(G!==void 0&&typeof M==="function")M=M(G),N=!1;if(X!==void 0&&_1(M))M=M[X%M.length],N=!1;if(M!==void 0){if(q&&!N)q.cacheable=!1;return M}}}function eR(Q,G,X){let{min:q,max:N}=Q,K=bR(G,(N-q)/2),H=(M,F)=>X&&M===0?0:M+F;return{min:H(q,-Math.abs(K)),max:H(N,K)}}function T8(Q,G){return Object.assign(Object.create(Q),G)}function A3(Q,G=[""],X,q,N=()=>Q[0]){let K=X||Q;if(typeof q>"u")q=Qz("_fallback",Q);let H={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:Q,_rootScopes:K,_fallback:q,_getTarget:N,override:(M)=>A3([M,...Q],G,K,q)};return new Proxy(H,{deleteProperty(M,F){return delete M[F],delete M._keys,delete Q[0][F],!0},get(M,F){return $z(M,F,()=>CO(F,G,Q,M))},getOwnPropertyDescriptor(M,F){return Reflect.getOwnPropertyDescriptor(M._scopes[0],F)},getPrototypeOf(){return Reflect.getPrototypeOf(Q[0])},has(M,F){return AR(M).includes(F)},ownKeys(M){return AR(M)},set(M,F,w){let z=M._storage||(M._storage=N());return M[F]=z[F]=w,delete M._keys,!0}})}function j9(Q,G,X,q){let N={_cacheable:!1,_proxy:Q,_context:G,_subProxy:X,_stack:new Set,_descriptors:_U(Q,q),setContext:(K)=>j9(Q,K,X,q),override:(K)=>j9(Q.override(K),G,X,q)};return new Proxy(N,{deleteProperty(K,H){return delete K[H],delete Q[H],!0},get(K,H,M){return $z(K,H,()=>RO(K,H,M))},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,M){return Q[H]=M,delete K[H],!0}})}function _U(Q,G={scriptable:!0,indexable:!0}){let{_scriptable:X=G.scriptable,_indexable:q=G.indexable,_allKeys:N=G.allKeys}=Q;return{allKeys:N,scriptable:X,indexable:q,isScriptable:W8(X)?X:()=>X,isIndexable:W8(q)?q:()=>q}}var wO=(Q,G)=>Q?Q+P3(G):G,CU=(Q,G)=>o0(G)&&Q!=="adapters"&&(Object.getPrototypeOf(G)===null||G.constructor===Object);function $z(Q,G,X){if(Object.prototype.hasOwnProperty.call(Q,G)||G==="constructor")return Q[G];let q=X();return Q[G]=q,q}function RO(Q,G,X){let{_proxy:q,_context:N,_subProxy:K,_descriptors:H}=Q,M=q[G];if(W8(M)&&H.isScriptable(G))M=zO(G,M,Q,X);if(_1(M)&&M.length)M=TO(G,M,Q,H.isIndexable);if(CU(G,M))M=j9(M,N,K&&K[G],H);return M}function zO(Q,G,X,q){let{_proxy:N,_context:K,_subProxy:H,_stack:M}=X;if(M.has(Q))throw Error("Recursion detected: "+Array.from(M).join("->")+"->"+Q);M.add(Q);let F=G(K,H||q);if(M.delete(Q),CU(Q,F))F=VU(N._scopes,N,Q,F);return F}function TO(Q,G,X,q){let{_proxy:N,_context:K,_subProxy:H,_descriptors:M}=X;if(typeof K.index<"u"&&q(Q))return G[K.index%G.length];else if(o0(G[0])){let F=G,w=N._scopes.filter((z)=>z!==F);G=[];for(let z of F){let T=VU(w,N,Q,z);G.push(j9(T,K,H&&H[Q],M))}}return G}function Zz(Q,G,X){return W8(Q)?Q(G,X):Q}var LO=(Q,G)=>Q===!0?G:typeof Q==="string"?S9(G,Q):void 0;function PO(Q,G,X,q,N){for(let K of G){let H=LO(X,K);if(H){Q.add(H);let M=Zz(H._fallback,X,N);if(typeof M<"u"&&M!==X&&M!==q)return M}else if(H===!1&&typeof q<"u"&&X!==q)return null}return!1}function VU(Q,G,X,q){let N=G._rootScopes,K=Zz(G._fallback,X,q),H=[...Q,...N],M=new Set;M.add(q);let F=ER(M,H,X,K||X,q);if(F===null)return!1;if(typeof K<"u"&&K!==X){if(F=ER(M,H,K,F,q),F===null)return!1}return A3(Array.from(M),[""],N,K,()=>_O(G,X,q))}function ER(Q,G,X,q,N){while(X)X=PO(Q,G,X,q,N);return X}function _O(Q,G,X){let q=Q._getTarget();if(!(G in q))q[G]={};let N=q[G];if(_1(N)&&o0(X))return X;return N||{}}function CO(Q,G,X,q){let N;for(let K of G)if(N=Qz(wO(K,Q),X),typeof N<"u")return CU(Q,N)?VU(X,q,Q,N):N}function Qz(Q,G){for(let X of G){if(!X)continue;let q=X[Q];if(typeof q<"u")return q}}function AR(Q){let G=Q._keys;if(!G)G=Q._keys=VO(Q._scopes);return G}function VO(Q){let G=new Set;for(let X of Q)for(let q of Object.keys(X).filter((N)=>!N.startsWith("_")))G.add(q);return Array.from(G)}var IO=Number.EPSILON||0.00000000000001,Z$=(Q,G)=>G<Q.length&&!Q[G].skip&&Q[G],Jz=(Q)=>Q==="x"?"y":"x";function OO(Q,G,X,q){let N=Q.skip?G:Q,K=G,H=X.skip?G:X,M=T3(K,N),F=T3(H,K),w=M/(M+F),z=F/(M+F);w=isNaN(w)?0:w,z=isNaN(z)?0:z;let T=q*w,P=q*z;return{previous:{x:K.x-T*(H.x-N.x),y:K.y-T*(H.y-N.y)},next:{x:K.x+P*(H.x-N.x),y:K.y+P*(H.y-N.y)}}}function EO(Q,G,X){let q=Q.length,N,K,H,M,F,w=Z$(Q,0);for(let z=0;z<q-1;++z){if(F=w,w=Z$(Q,z+1),!F||!w)continue;if(G$(G[z],0,IO)){X[z]=X[z+1]=0;continue}if(N=X[z]/G[z],K=X[z+1]/G[z],M=Math.pow(N,2)+Math.pow(K,2),M<=9)continue;H=3/Math.sqrt(M),X[z]=N*H*G[z],X[z+1]=K*H*G[z]}}function AO(Q,G,X="x"){let q=Jz(X),N=Q.length,K,H,M,F=Z$(Q,0);for(let w=0;w<N;++w){if(H=M,M=F,F=Z$(Q,w+1),!M)continue;let z=M[X],T=M[q];if(H)K=(z-H[X])/3,M[`cp1${X}`]=z-K,M[`cp1${q}`]=T-K*G[w];if(F)K=(F[X]-z)/3,M[`cp2${X}`]=z+K,M[`cp2${q}`]=T+K*G[w]}}function jO(Q,G="x"){let X=Jz(G),q=Q.length,N=Array(q).fill(0),K=Array(q),H,M,F,w=Z$(Q,0);for(H=0;H<q;++H){if(M=F,F=w,w=Z$(Q,H+1),!F)continue;if(w){let z=w[G]-F[G];N[H]=z!==0?(w[X]-F[X])/z:0}K[H]=!M?N[H]:!w?N[H-1]:Z4(N[H-1])!==Z4(N[H])?0:(N[H-1]+N[H])/2}EO(Q,N,K),AO(Q,K,G)}function W3(Q,G,X){return Math.max(Math.min(Q,X),G)}function SO(Q,G){let X,q,N,K,H,M=b4(Q[0],G);for(X=0,q=Q.length;X<q;++X){if(H=K,K=M,M=X<q-1&&b4(Q[X+1],G),!K)continue;if(N=Q[X],H)N.cp1x=W3(N.cp1x,G.left,G.right),N.cp1y=W3(N.cp1y,G.top,G.bottom);if(M)N.cp2x=W3(N.cp2x,G.left,G.right),N.cp2y=W3(N.cp2y,G.top,G.bottom)}}function Gz(Q,G,X,q,N){let K,H,M,F;if(G.spanGaps)Q=Q.filter((w)=>!w.skip);if(G.cubicInterpolationMode==="monotone")jO(Q,N);else{let w=q?Q[Q.length-1]:Q[0];for(K=0,H=Q.length;K<H;++K)M=Q[K],F=OO(w,M,Q[Math.min(K+1,H-(q?0:1))%H],G.tension),M.cp1x=F.previous.x,M.cp1y=F.previous.y,M.cp2x=F.next.x,M.cp2y=F.next.y,w=M}if(G.capBezierPoints)SO(Q,X)}function j3(){return typeof window<"u"&&typeof document<"u"}function S3(Q){let G=Q.parentNode;if(G&&G.toString()==="[object ShadowRoot]")G=G.host;return G}function L3(Q,G,X){let q;if(typeof Q==="string"){if(q=parseInt(Q,10),Q.indexOf("%")!==-1)q=q/100*G.parentNode[X]}else q=Q;return q}var D3=(Q)=>Q.ownerDocument.defaultView.getComputedStyle(Q,null);function DO(Q,G){return D3(Q).getPropertyValue(G)}var vO=["top","right","bottom","left"];function A9(Q,G,X){let q={};X=X?"-"+X:"";for(let N=0;N<4;N++){let K=vO[N];q[K]=parseFloat(Q[G+"-"+K+X])||0}return q.width=q.left+q.right,q.height=q.top+q.bottom,q}var bO=(Q,G,X)=>(Q>0||G>0)&&(!X||!X.shadowRoot);function kO(Q,G){let X=Q.touches,q=X&&X.length?X[0]:Q,{offsetX:N,offsetY:K}=q,H=!1,M,F;if(bO(N,K,Q.target))M=N,F=K;else{let w=G.getBoundingClientRect();M=q.clientX-w.left,F=q.clientY-w.top,H=!0}return{x:M,y:F,box:H}}function j2(Q,G){if("native"in Q)return Q;let{canvas:X,currentDevicePixelRatio:q}=G,N=D3(X),K=N.boxSizing==="border-box",H=A9(N,"padding"),M=A9(N,"border","width"),{x:F,y:w,box:z}=kO(Q,X),T=H.left+(z&&M.left),P=H.top+(z&&M.top),{width:V,height:A}=G;if(K)V-=H.width+M.width,A-=H.height+M.height;return{x:Math.round((F-T)/V*X.width/q),y:Math.round((w-P)/A*X.height/q)}}function fO(Q,G,X){let q,N;if(G===void 0||X===void 0){let K=Q&&S3(Q);if(!K)G=Q.clientWidth,X=Q.clientHeight;else{let H=K.getBoundingClientRect(),M=D3(K),F=A9(M,"border","width"),w=A9(M,"padding");G=H.width-w.width-F.width,X=H.height-w.height-F.height,q=L3(M.maxWidth,K,"clientWidth"),N=L3(M.maxHeight,K,"clientHeight")}}return{width:G,height:X,maxWidth:q||z3,maxHeight:N||z3}}var V2=(Q)=>Math.round(Q*10)/10;function Xz(Q,G,X,q){let N=D3(Q),K=A9(N,"margin"),H=L3(N.maxWidth,Q,"clientWidth")||z3,M=L3(N.maxHeight,Q,"clientHeight")||z3,F=fO(Q,G,X),{width:w,height:z}=F;if(N.boxSizing==="content-box"){let P=A9(N,"border","width"),V=A9(N,"padding");w-=V.width+P.width,z-=V.height+P.height}if(w=Math.max(0,w-K.width),z=Math.max(0,q?w/q:z-K.height),w=V2(Math.min(w,H,F.maxWidth)),z=V2(Math.min(z,M,F.maxHeight)),w&&!z)z=V2(w/2);if((G!==void 0||X!==void 0)&&q&&F.height&&z>F.height)z=F.height,w=V2(Math.floor(z*q));return{width:w,height:z}}function IU(Q,G,X){let q=G||1,N=V2(Q.height*q),K=V2(Q.width*q);Q.height=V2(Q.height),Q.width=V2(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 qz=function(){let Q=!1;try{let G={get passive(){return Q=!0,!1}};if(j3())window.addEventListener("test",null,G),window.removeEventListener("test",null,G)}catch(G){}return Q}();function OU(Q,G){let X=DO(Q,G),q=X&&X.match(/^(\d+)(\.\d+)?px$/);return q?+q[1]:void 0}function _2(Q,G,X,q){return{x:Q.x+X*(G.x-Q.x),y:Q.y+X*(G.y-Q.y)}}function Yz(Q,G,X,q){return{x:Q.x+X*(G.x-Q.x),y:q==="middle"?X<0.5?Q.y:G.y:q==="after"?X<1?Q.y:G.y:X>0?G.y:Q.y}}function Nz(Q,G,X,q){let N={x:Q.cp2x,y:Q.cp2y},K={x:G.cp1x,y:G.cp1y},H=_2(Q,N,X),M=_2(N,K,X),F=_2(K,G,X),w=_2(H,M,X),z=_2(M,F,X);return _2(w,z,X)}var yO=function(Q,G){return{x(X){return Q+Q+G-X},setWidth(X){G=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}}},gO=function(){return{x(Q){return Q},setWidth(Q){},textAlign(Q){return Q},xPlus(Q,G){return Q+G},leftForLtr(Q,G){return Q}}};function D9(Q,G,X){return Q?yO(G,X):gO()}function EU(Q,G){let X,q;if(G==="ltr"||G==="rtl")X=Q.canvas.style,q=[X.getPropertyValue("direction"),X.getPropertyPriority("direction")],X.setProperty("direction",G,"important"),Q.prevTextDirection=q}function AU(Q,G){if(G!==void 0)delete Q.prevTextDirection,Q.canvas.style.setProperty("direction",G[0],G[1])}function Uz(Q){if(Q==="angle")return{between:BU,compare:$O,normalize:p5};return{between:z8,compare:(G,X)=>G-X,normalize:(G)=>G}}function jR({start:Q,end:G,count:X,loop:q,style:N}){return{start:Q%X,end:G%X,loop:q&&(G-Q+1)%X===0,style:N}}function hO(Q,G,X){let{property:q,start:N,end:K}=X,{between:H,normalize:M}=Uz(q),F=G.length,{start:w,end:z,loop:T}=Q,P,V;if(T){w+=F,z+=F;for(P=0,V=F;P<V;++P){if(!H(M(G[w%F][q]),N,K))break;w--,z--}w%=F,z%=F}if(z<w)z+=F;return{start:w,end:z,loop:T,style:Q.style}}function jU(Q,G,X){if(!X)return[Q];let{property:q,start:N,end:K}=X,H=G.length,{compare:M,between:F,normalize:w}=Uz(q),{start:z,end:T,loop:P,style:V}=hO(Q,G,X),A=[],O=!1,I=null,D,h,p,s=()=>F(N,p,D)&&M(N,p)!==0,o=()=>M(K,D)===0||F(K,p,D),Q0=()=>O||s(),i=()=>!O||o();for(let a=z,q0=z;a<=T;++a){if(h=G[a%H],h.skip)continue;if(D=w(h[q]),D===p)continue;if(O=F(D,N,K),I===null&&Q0())I=M(D,N)===0?a:q0;if(I!==null&&i())A.push(jR({start:I,end:a,loop:P,count:H,style:V})),I=null;q0=a,p=D}if(I!==null)A.push(jR({start:I,end:T,loop:P,count:H,style:V}));return A}function SU(Q,G){let X=[],q=Q.segments;for(let N=0;N<q.length;N++){let K=jU(q[N],Q.points,G);if(K.length)X.push(...K)}return X}function uO(Q,G,X,q){let N=0,K=G-1;if(X&&!q)while(N<G&&!Q[N].skip)N++;while(N<G&&Q[N].skip)N++;if(N%=G,X)K+=N;while(K>N&&Q[K%G].skip)K--;return K%=G,{start:N,end:K}}function xO(Q,G,X,q){let N=Q.length,K=[],H=G,M=Q[G],F;for(F=G+1;F<=X;++F){let w=Q[F%N];if(w.skip||w.stop){if(!M.skip)q=!1,K.push({start:G%N,end:(F-1)%N,loop:q}),G=H=w.stop?F:null}else if(H=F,M.skip)G=F;M=w}if(H!==null)K.push({start:G%N,end:H%N,loop:q});return K}function Kz(Q,G){let X=Q.points,q=Q.options.spanGaps,N=X.length;if(!N)return[];let K=!!Q._loop,{start:H,end:M}=uO(X,N,K,q);if(q===!0)return SR(Q,[{start:H,end:M,loop:K}],X,G);let F=M<H?M+N:M,w=!!Q._fullLoop&&H===0&&M===N-1;return SR(Q,xO(X,H,F,w),X,G)}function SR(Q,G,X,q){if(!q||!q.setContext||!X)return G;return mO(Q,G,X,q)}function mO(Q,G,X,q){let N=Q._chart.getContext(),K=DR(Q.options),{_datasetIndex:H,options:{spanGaps:M}}=Q,F=X.length,w=[],z=K,T=G[0].start,P=T;function V(A,O,I,D){let h=M?-1:1;if(A===O)return;A+=F;while(X[A%F].skip)A-=h;while(X[O%F].skip)O+=h;if(A%F!==O%F)w.push({start:A%F,end:O%F,loop:I,style:D}),z=D,T=O%F}for(let A of G){T=M?T:A.start;let O=X[T%F],I;for(P=T+1;P<=A.end;P++){let D=X[P%F];if(I=DR(q.setContext(T8(N,{type:"segment",p0:O,p1:D,p0DataIndex:(P-1)%F,p1DataIndex:P%F,datasetIndex:H}))),dO(I,z))V(T,P-1,A.loop,z);O=D,z=I}if(T<P-1)V(T,P-1,A.loop,z)}return w}function DR(Q){return{backgroundColor:Q.backgroundColor,borderCapStyle:Q.borderCapStyle,borderDash:Q.borderDash,borderDashOffset:Q.borderDashOffset,borderJoinStyle:Q.borderJoinStyle,borderWidth:Q.borderWidth,borderColor:Q.borderColor}}function dO(Q,G){if(!G)return!1;let X=[],q=function(N,K){if(!wU(K))return K;if(!X.includes(K))X.push(K);return X.indexOf(K)};return JSON.stringify(Q,q)!==JSON.stringify(G,q)}function w3(Q,G,X){return Q.options.clip?Q[X]:G[X]}function pO(Q,G){let{xScale:X,yScale:q}=Q;if(X&&q)return{left:w3(X,G,"left"),right:w3(X,G,"right"),top:w3(q,G,"top"),bottom:w3(q,G,"bottom")};return G}function DU(Q,G){let X=G._clip;if(X.disabled)return!1;let q=pO(G,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 y4(){}var yR=(()=>{let Q=0;return()=>Q++})();function $1(Q){return Q===null||Q===void 0}function C1(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 a0(Q){return Q!==null&&Object.prototype.toString.call(Q)==="[object Object]"}function b1(Q){return(typeof Q==="number"||Q instanceof Number)&&isFinite(+Q)}function a5(Q,J){return b1(Q)?Q:J}function c0(Q,J){return typeof Q>"u"?J:Q}var gR=(Q,J)=>typeof Q==="string"&&Q.endsWith("%")?parseFloat(Q)/100*J:+Q;function T1(Q,J,X){if(Q&&typeof Q.call==="function")return Q.apply(X,J)}function K1(Q,J,X,q){let N,K,H;if(C1(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(a0(Q)){H=Object.keys(Q),K=H.length;for(N=0;N<K;N++)J.call(X,Q[H[N]],H[N])}}function qQ(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 _3(Q){if(C1(Q))return Q.map(_3);if(a0(Q)){let J=Object.create(null),X=Object.keys(Q),q=X.length,N=0;for(;N<q;++N)J[X[N]]=_3(Q[X[N]]);return J}return Q}function hR(Q){return["__proto__","prototype","constructor"].indexOf(Q)===-1}function eV(Q,J,X,q){if(!hR(Q))return;let N=J[Q],K=X[Q];if(a0(N)&&a0(K))Q$(N,K,q);else J[Q]=_3(K)}function Q$(Q,J,X){let q=C1(J)?J:[J],N=q.length;if(!a0(Q))return Q;X=X||{};let K=X.merger||eV,H;for(let M=0;M<N;++M){if(H=q[M],!a0(H))continue;let F=Object.keys(H);for(let w=0,z=F.length;w<z;++w)K(F[w],Q,H,X)}return Q}function G$(Q,J){return Q$(Q,J,{merger:$O})}function $O(Q,J,X){if(!hR(Q))return;let q=J[Q],N=X[Q];if(a0(q)&&a0(N))G$(q,N);else if(!Object.prototype.hasOwnProperty.call(J,Q))J[Q]=_3(N)}var OR={"":(Q)=>Q,x:(Q)=>Q.x,y:(Q)=>Q.y};function ZO(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 QO(Q){let J=ZO(Q);return(X)=>{for(let q of J){if(q==="")break;X=X&&X[q]}return X}}function v9(Q,J){return(OR[J]||(OR[J]=QO(J)))(Q)}function O3(Q){return Q.charAt(0).toUpperCase()+Q.slice(1)}var X$=(Q)=>typeof Q<"u",z8=(Q)=>typeof Q==="function",KU=(Q,J)=>{if(Q.size!==J.size)return!1;for(let X of Q)if(!J.has(X))return!1;return!0};function uR(Q){return Q.type==="mouseup"||Q.type==="click"||Q.type==="contextmenu"}var m1=Math.PI,n5=2*m1,JO=n5+m1,C3=Number.POSITIVE_INFINITY,GO=m1/180,s5=m1/2,S9=m1/4,ER=m1*2/3,T8=Math.log10,G4=Math.sign;function q$(Q,J,X){return Math.abs(Q-J)<X}function BU(Q){let J=Math.round(Q);Q=q$(Q,J,Q/1000)?J:Q;let X=Math.pow(10,Math.floor(T8(Q))),q=Q/X;return(q<=1?1:q<=2?2:q<=5?5:10)*X}function xR(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 XO(Q){return typeof Q==="symbol"||typeof Q==="object"&&Q!==null&&!((Symbol.toPrimitive in Q)||("toString"in Q)||("valueOf"in Q))}function Y$(Q){return!XO(Q)&&!isNaN(parseFloat(Q))&&isFinite(Q)}function mR(Q,J){let X=Math.round(Q);return X-J<=Q&&X+J>=Q}function HU(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 L8(Q){return Q*(m1/180)}function E3(Q){return Q*(180/m1)}function MU(Q){if(!b1(Q))return;let J=1,X=0;while(Math.round(Q*J)/J!==Q)J*=10,X++;return X}function dR(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*m1)K+=n5;return{angle:K,distance:N}}function I3(Q,J){return Math.sqrt(Math.pow(J.x-Q.x,2)+Math.pow(J.y-Q.y,2))}function qO(Q,J){return(Q-J+JO)%n5-m1}function r5(Q){return(Q%n5+n5)%n5}function FU(Q,J,X,q){let N=r5(Q),K=r5(J),H=r5(X),M=r5(K-N),F=r5(H-N),w=r5(N-K),z=r5(N-H);return N===K||N===H||q&&K===H||M>F&&w<z}function o5(Q,J,X){return Math.max(J,Math.min(X,Q))}function pR(Q){return o5(Q,-32768,32767)}function P8(Q,J,X,q=0.000001){return Q>=Math.min(J,X)-q&&Q<=Math.max(J,X)+q}function A3(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)=>A3(Q,X,q?(N)=>{let K=Q[N][J];return K<X||K===X&&Q[N+1][J]===X}:(N)=>Q[N][J]<X),cR=(Q,J,X)=>A3(Q,X,(q)=>Q[q][J]>=X);function lR(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 rR=["push","pop","shift","splice","unshift"];function sR(Q,J){if(Q._chartjs){Q._chartjs.listeners.push(J);return}Object.defineProperty(Q,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[J]}}),rR.forEach((X)=>{let q="_onData"+O3(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((M)=>{if(typeof M[q]==="function")M[q](...K)}),H}})})}function WU(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;rR.forEach((K)=>{delete Q[K]}),delete Q._chartjs}function wU(Q){let J=new Set(Q);if(J.size===Q.length)return Q;return Array.from(J)}var RU=function(){if(typeof window>"u")return function(Q){return Q()};return window.requestAnimationFrame}();function zU(Q,J){let X=[],q=!1;return function(...N){if(X=N,!q)q=!0,RU.call(window,()=>{q=!1,Q.apply(J,X)})}}function nR(Q,J){let X;return function(...q){if(J)clearTimeout(X),X=setTimeout(Q,J,q);else Q.apply(this,q);return J}}var S3=(Q)=>Q==="start"?"left":Q==="end"?"right":"center",w5=(Q,J,X)=>Q==="start"?J:Q==="end"?X:(J+X)/2,oR=(Q,J,X,q)=>{return Q===(q?"left":"right")?X:Q==="center"?(J+X)/2:J};function aR(Q,J,X){let q=J.length,N=0,K=q;if(Q._sorted){let{iScale:H,vScale:M,_parsed:F}=Q,w=Q.dataset?Q.dataset.options?Q.dataset.options.spanGaps:null:null,z=H.axis,{min:T,max:P,minDefined:I,maxDefined:A}=H.getUserBounds();if(I){if(N=Math.min(V2(F,z,T).lo,X?q:V2(J,z,H.getPixelForValue(T)).lo),w){let O=F.slice(0,N+1).reverse().findIndex((V)=>!$1(V[M.axis]));N-=Math.max(0,O)}N=o5(N,0,q-1)}if(A){let O=Math.max(V2(F,H.axis,P,!0).hi+1,X?0:V2(J,z,H.getPixelForValue(P),!0).hi+1);if(w){let V=F.slice(O-1).findIndex((D)=>!$1(D[M.axis]));O+=Math.max(0,V)}K=o5(O,N,q)-N}else K=q-N}return{start:N,count:K}}function iR(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 T3=(Q)=>Q===0||Q===1,AR=(Q,J,X)=>-(Math.pow(2,10*(Q-=1))*Math.sin((Q-J)*n5/X)),SR=(Q,J,X)=>Math.pow(2,-10*Q)*Math.sin((Q-J)*n5/X)+1,Z$={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*s5)+1,easeOutSine:(Q)=>Math.sin(Q*s5),easeInOutSine:(Q)=>-0.5*(Math.cos(m1*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)=>T3(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)=>T3(Q)?Q:AR(Q,0.075,0.3),easeOutElastic:(Q)=>T3(Q)?Q:SR(Q,0.075,0.3),easeInOutElastic(Q){return T3(Q)?Q:Q<0.5?0.5*AR(Q*2,0.1125,0.45):0.5+0.5*SR(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-Z$.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?Z$.easeInBounce(Q*2)*0.5:Z$.easeOutBounce(Q*2-1)*0.5+0.5};function TU(Q){if(Q&&typeof Q==="object"){let J=Q.toString();return J==="[object CanvasPattern]"||J==="[object CanvasGradient]"}return!1}function LU(Q){return TU(Q)?Q:new $$(Q)}function NU(Q){return TU(Q)?Q:new $$(Q).saturate(0.5).darken(0.1).hexString()}var YO=["x","y","borderWidth","radius","tension"],NO=["color","borderColor","backgroundColor"];function UO(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:NO},numbers:{type:"number",properties:YO}}),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 KO(Q){Q.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}var jR=new Map;function BO(Q,J){J=J||{};let X=Q+JSON.stringify(J),q=jR.get(X);if(!q)q=new Intl.NumberFormat(Q,J),jR.set(X,q);return q}function j3(Q,J,X){return BO(J,X).format(Q)}var tR={values(Q){return C1(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=HO(Q,X)}let H=T8(Math.abs(K)),M=isNaN(H)?1:Math.max(Math.min(-1*Math.floor(H),20),0),F={notation:N,minimumFractionDigits:M,maximumFractionDigits:M};return Object.assign(F,this.options.ticks.format),j3(Q,q,F)},logarithmic(Q,J,X){if(Q===0)return"0";let q=X[J].significand||Q/Math.pow(10,Math.floor(T8(Q)));if([1,2,3,5,10,15].includes(q)||J>0.8*X.length)return tR.numeric.call(this,Q,J,X);return""}};function HO(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 YQ={formatters:tR};function MO(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:YQ.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 E2=Object.create(null),D3=Object.create(null);function GQ(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 UU(Q,J,X){if(typeof J==="string")return Q$(GQ(Q,J),X);return Q$(GQ(Q,""),J)}class eR{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)=>NU(q.backgroundColor),this.hoverBorderColor=(X,q)=>NU(q.borderColor),this.hoverColor=(X,q)=>NU(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 UU(this,Q,J)}get(Q){return GQ(this,Q)}describe(Q,J){return UU(D3,Q,J)}override(Q,J){return UU(E2,Q,J)}route(Q,J,X,q){let N=GQ(this,Q),K=GQ(this,X),H="_"+J;Object.defineProperties(N,{[H]:{value:N[J],writable:!0},[J]:{enumerable:!0,get(){let M=this[H],F=K[q];if(a0(M))return Object.assign({},F,M);return c0(M,F)},set(M){this[H]=M}}})}apply(Q){Q.forEach((J)=>J(this))}}var k1=new eR({_scriptable:(Q)=>!Q.startsWith("on"),_indexable:(Q)=>Q!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[UO,KO,MO]);function FO(Q){if(!Q||$1(Q.size)||$1(Q.family))return null;return(Q.style?Q.style+" ":"")+(Q.weight?Q.weight+" ":"")+Q.size+"px "+Q.family}function XQ(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 $z(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,M=X.length,F,w,z,T,P;for(F=0;F<M;F++)if(T=X[F],T!==void 0&&T!==null&&!C1(T))H=XQ(Q,N,K,H,T);else if(C1(T)){for(w=0,z=T.length;w<z;w++)if(P=T[w],P!==void 0&&P!==null&&!C1(P))H=XQ(Q,N,K,H,P)}Q.restore();let I=K.length/2;if(I>X.length){for(F=0;F<I;F++)delete N[K[F]];K.splice(0,I)}return H}function A2(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 PU(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 v3(Q,J,X,q){_U(Q,J,X,q,null)}function _U(Q,J,X,q,N){let K,H,M,F,w,z,T,P,I=J.pointStyle,A=J.rotation,O=J.radius,V=(A||0)*GO;if(I&&typeof I==="object"){if(K=I.toString(),K==="[object HTMLImageElement]"||K==="[object HTMLCanvasElement]"){Q.save(),Q.translate(X,q),Q.rotate(V),Q.drawImage(I,-I.width/2,-I.height/2,I.width,I.height),Q.restore();return}}if(isNaN(O)||O<=0)return;switch(Q.beginPath(),I){default:if(N)Q.ellipse(X,q,N/2,O,0,0,n5);else Q.arc(X,q,O,0,n5);Q.closePath();break;case"triangle":z=N?N/2:O,Q.moveTo(X+Math.sin(V)*z,q-Math.cos(V)*O),V+=ER,Q.lineTo(X+Math.sin(V)*z,q-Math.cos(V)*O),V+=ER,Q.lineTo(X+Math.sin(V)*z,q-Math.cos(V)*O),Q.closePath();break;case"rectRounded":w=O*0.516,F=O-w,H=Math.cos(V+S9)*F,T=Math.cos(V+S9)*(N?N/2-w:F),M=Math.sin(V+S9)*F,P=Math.sin(V+S9)*(N?N/2-w:F),Q.arc(X-T,q-M,w,V-m1,V-s5),Q.arc(X+P,q-H,w,V-s5,V),Q.arc(X+T,q+M,w,V,V+s5),Q.arc(X-P,q+H,w,V+s5,V+m1),Q.closePath();break;case"rect":if(!A){F=Math.SQRT1_2*O,z=N?N/2:F,Q.rect(X-z,q-F,2*z,2*F);break}V+=S9;case"rectRot":T=Math.cos(V)*(N?N/2:O),H=Math.cos(V)*O,M=Math.sin(V)*O,P=Math.sin(V)*(N?N/2:O),Q.moveTo(X-T,q-M),Q.lineTo(X+P,q-H),Q.lineTo(X+T,q+M),Q.lineTo(X-P,q+H),Q.closePath();break;case"crossRot":V+=S9;case"cross":T=Math.cos(V)*(N?N/2:O),H=Math.cos(V)*O,M=Math.sin(V)*O,P=Math.sin(V)*(N?N/2:O),Q.moveTo(X-T,q-M),Q.lineTo(X+T,q+M),Q.moveTo(X+P,q-H),Q.lineTo(X-P,q+H);break;case"star":T=Math.cos(V)*(N?N/2:O),H=Math.cos(V)*O,M=Math.sin(V)*O,P=Math.sin(V)*(N?N/2:O),Q.moveTo(X-T,q-M),Q.lineTo(X+T,q+M),Q.moveTo(X+P,q-H),Q.lineTo(X-P,q+H),V+=S9,T=Math.cos(V)*(N?N/2:O),H=Math.cos(V)*O,M=Math.sin(V)*O,P=Math.sin(V)*(N?N/2:O),Q.moveTo(X-T,q-M),Q.lineTo(X+T,q+M),Q.moveTo(X+P,q-H),Q.lineTo(X-P,q+H);break;case"line":H=N?N/2:Math.cos(V)*O,M=Math.sin(V)*O,Q.moveTo(X-H,q-M),Q.lineTo(X+H,q+M);break;case"dash":Q.moveTo(X,q),Q.lineTo(X+Math.cos(V)*(N?N/2:O),q+Math.sin(V)*O);break;case!1:Q.closePath();break}if(Q.fill(),J.borderWidth>0)Q.stroke()}function f4(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 NQ(Q,J){Q.save(),Q.beginPath(),Q.rect(J.left,J.top,J.right-J.left,J.bottom-J.top),Q.clip()}function UQ(Q){Q.restore()}function Zz(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 Qz(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 WO(Q,J){if(J.translation)Q.translate(J.translation[0],J.translation[1]);if(!$1(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 wO(Q,J,X,q,N){if(N.strikethrough||N.underline){let K=Q.measureText(q),H=J-K.actualBoundingBoxLeft,M=J+K.actualBoundingBoxRight,F=X-K.actualBoundingBoxAscent,w=X+K.actualBoundingBoxDescent,z=N.strikethrough?(F+w)/2:w;Q.strokeStyle=Q.fillStyle,Q.beginPath(),Q.lineWidth=N.decorationWidth||2,Q.moveTo(H,z),Q.lineTo(M,z),Q.stroke()}}function RO(Q,J){let X=Q.fillStyle;Q.fillStyle=J.color,Q.fillRect(J.left,J.top,J.width,J.height),Q.fillStyle=X}function S2(Q,J,X,q,N,K={}){let H=C1(J)?J:[J],M=K.strokeWidth>0&&K.strokeColor!=="",F,w;Q.save(),Q.font=N.string,WO(Q,K);for(F=0;F<H.length;++F){if(w=H[F],K.backdrop)RO(Q,K.backdrop);if(M){if(K.strokeColor)Q.strokeStyle=K.strokeColor;if(!$1(K.strokeWidth))Q.lineWidth=K.strokeWidth;Q.strokeText(w,X,q,K.maxWidth)}Q.fillText(w,X,q,K.maxWidth),wO(Q,X,q,w,K),q+=Number(N.lineHeight)}Q.restore()}function N$(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*m1,m1,!0),Q.lineTo(X,q+K-H.bottomLeft),Q.arc(X+H.bottomLeft,q+K-H.bottomLeft,H.bottomLeft,m1,s5,!0),Q.lineTo(X+N-H.bottomRight,q+K),Q.arc(X+N-H.bottomRight,q+K-H.bottomRight,H.bottomRight,s5,0,!0),Q.lineTo(X+N,q+H.topRight),Q.arc(X+N-H.topRight,q+H.topRight,H.topRight,0,-s5,!0),Q.lineTo(X+H.topLeft,q)}var zO=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,TO=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function LO(Q,J){let X=(""+Q).match(zO);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 PO=(Q)=>+Q||0;function CU(Q,J){let X={},q=a0(J),N=q?Object.keys(J):J,K=a0(Q)?q?(H)=>c0(Q[H],Q[J[H]]):(H)=>Q[H]:()=>Q;for(let H of N)X[H]=PO(K(H));return X}function IU(Q){return CU(Q,{top:"y",right:"x",bottom:"y",left:"x"})}function j2(Q){return CU(Q,["topLeft","topRight","bottomLeft","bottomRight"])}function R5(Q){let J=IU(Q);return J.width=J.left+J.right,J.height=J.top+J.bottom,J}function i1(Q,J){Q=Q||{},J=J||k1.font;let X=c0(Q.size,J.size);if(typeof X==="string")X=parseInt(X,10);let q=c0(Q.style,J.style);if(q&&!(""+q).match(TO))console.warn('Invalid font style specified: "'+q+'"'),q=void 0;let N={family:c0(Q.family,J.family),lineHeight:LO(c0(Q.lineHeight,J.lineHeight),X),size:X,style:q,weight:c0(Q.weight,J.weight),string:""};return N.string=FO(N),N}function KQ(Q,J,X,q){let N=!0,K,H,M;for(K=0,H=Q.length;K<H;++K){if(M=Q[K],M===void 0)continue;if(J!==void 0&&typeof M==="function")M=M(J),N=!1;if(X!==void 0&&C1(M))M=M[X%M.length],N=!1;if(M!==void 0){if(q&&!N)q.cacheable=!1;return M}}}function Jz(Q,J,X){let{min:q,max:N}=Q,K=gR(J,(N-q)/2),H=(M,F)=>X&&M===0?0:M+F;return{min:H(q,-Math.abs(K)),max:H(N,K)}}function _8(Q,J){return Object.assign(Object.create(Q),J)}function b3(Q,J=[""],X,q,N=()=>Q[0]){let K=X||Q;if(typeof q>"u")q=qz("_fallback",Q);let H={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:Q,_rootScopes:K,_fallback:q,_getTarget:N,override:(M)=>b3([M,...Q],J,K,q)};return new Proxy(H,{deleteProperty(M,F){return delete M[F],delete M._keys,delete Q[0][F],!0},get(M,F){return Gz(M,F,()=>SO(F,J,Q,M))},getOwnPropertyDescriptor(M,F){return Reflect.getOwnPropertyDescriptor(M._scopes[0],F)},getPrototypeOf(){return Reflect.getPrototypeOf(Q[0])},has(M,F){return vR(M).includes(F)},ownKeys(M){return vR(M)},set(M,F,w){let z=M._storage||(M._storage=N());return M[F]=z[F]=w,delete M._keys,!0}})}function D9(Q,J,X,q){let N={_cacheable:!1,_proxy:Q,_context:J,_subProxy:X,_stack:new Set,_descriptors:VU(Q,q),setContext:(K)=>D9(Q,K,X,q),override:(K)=>D9(Q.override(K),J,X,q)};return new Proxy(N,{deleteProperty(K,H){return delete K[H],delete Q[H],!0},get(K,H,M){return Gz(K,H,()=>CO(K,H,M))},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,M){return Q[H]=M,delete K[H],!0}})}function VU(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:z8(X)?X:()=>X,isIndexable:z8(q)?q:()=>q}}var _O=(Q,J)=>Q?Q+O3(J):J,OU=(Q,J)=>a0(J)&&Q!=="adapters"&&(Object.getPrototypeOf(J)===null||J.constructor===Object);function Gz(Q,J,X){if(Object.prototype.hasOwnProperty.call(Q,J)||J==="constructor")return Q[J];let q=X();return Q[J]=q,q}function CO(Q,J,X){let{_proxy:q,_context:N,_subProxy:K,_descriptors:H}=Q,M=q[J];if(z8(M)&&H.isScriptable(J))M=IO(J,M,Q,X);if(C1(M)&&M.length)M=VO(J,M,Q,H.isIndexable);if(OU(J,M))M=D9(M,N,K&&K[J],H);return M}function IO(Q,J,X,q){let{_proxy:N,_context:K,_subProxy:H,_stack:M}=X;if(M.has(Q))throw Error("Recursion detected: "+Array.from(M).join("->")+"->"+Q);M.add(Q);let F=J(K,H||q);if(M.delete(Q),OU(Q,F))F=EU(N._scopes,N,Q,F);return F}function VO(Q,J,X,q){let{_proxy:N,_context:K,_subProxy:H,_descriptors:M}=X;if(typeof K.index<"u"&&q(Q))return J[K.index%J.length];else if(a0(J[0])){let F=J,w=N._scopes.filter((z)=>z!==F);J=[];for(let z of F){let T=EU(w,N,Q,z);J.push(D9(T,K,H&&H[Q],M))}}return J}function Xz(Q,J,X){return z8(Q)?Q(J,X):Q}var OO=(Q,J)=>Q===!0?J:typeof Q==="string"?v9(J,Q):void 0;function EO(Q,J,X,q,N){for(let K of J){let H=OO(X,K);if(H){Q.add(H);let M=Xz(H._fallback,X,N);if(typeof M<"u"&&M!==X&&M!==q)return M}else if(H===!1&&typeof q<"u"&&X!==q)return null}return!1}function EU(Q,J,X,q){let N=J._rootScopes,K=Xz(J._fallback,X,q),H=[...Q,...N],M=new Set;M.add(q);let F=DR(M,H,X,K||X,q);if(F===null)return!1;if(typeof K<"u"&&K!==X){if(F=DR(M,H,K,F,q),F===null)return!1}return b3(Array.from(M),[""],N,K,()=>AO(J,X,q))}function DR(Q,J,X,q,N){while(X)X=EO(Q,J,X,q,N);return X}function AO(Q,J,X){let q=Q._getTarget();if(!(J in q))q[J]={};let N=q[J];if(C1(N)&&a0(X))return X;return N||{}}function SO(Q,J,X,q){let N;for(let K of J)if(N=qz(_O(K,Q),X),typeof N<"u")return OU(Q,N)?EU(X,q,Q,N):N}function qz(Q,J){for(let X of J){if(!X)continue;let q=X[Q];if(typeof q<"u")return q}}function vR(Q){let J=Q._keys;if(!J)J=Q._keys=jO(Q._scopes);return J}function jO(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 DO=Number.EPSILON||0.00000000000001,J$=(Q,J)=>J<Q.length&&!Q[J].skip&&Q[J],Yz=(Q)=>Q==="x"?"y":"x";function vO(Q,J,X,q){let N=Q.skip?J:Q,K=J,H=X.skip?J:X,M=I3(K,N),F=I3(H,K),w=M/(M+F),z=F/(M+F);w=isNaN(w)?0:w,z=isNaN(z)?0:z;let T=q*w,P=q*z;return{previous:{x:K.x-T*(H.x-N.x),y:K.y-T*(H.y-N.y)},next:{x:K.x+P*(H.x-N.x),y:K.y+P*(H.y-N.y)}}}function bO(Q,J,X){let q=Q.length,N,K,H,M,F,w=J$(Q,0);for(let z=0;z<q-1;++z){if(F=w,w=J$(Q,z+1),!F||!w)continue;if(q$(J[z],0,DO)){X[z]=X[z+1]=0;continue}if(N=X[z]/J[z],K=X[z+1]/J[z],M=Math.pow(N,2)+Math.pow(K,2),M<=9)continue;H=3/Math.sqrt(M),X[z]=N*H*J[z],X[z+1]=K*H*J[z]}}function kO(Q,J,X="x"){let q=Yz(X),N=Q.length,K,H,M,F=J$(Q,0);for(let w=0;w<N;++w){if(H=M,M=F,F=J$(Q,w+1),!M)continue;let z=M[X],T=M[q];if(H)K=(z-H[X])/3,M[`cp1${X}`]=z-K,M[`cp1${q}`]=T-K*J[w];if(F)K=(F[X]-z)/3,M[`cp2${X}`]=z+K,M[`cp2${q}`]=T+K*J[w]}}function fO(Q,J="x"){let X=Yz(J),q=Q.length,N=Array(q).fill(0),K=Array(q),H,M,F,w=J$(Q,0);for(H=0;H<q;++H){if(M=F,F=w,w=J$(Q,H+1),!F)continue;if(w){let z=w[J]-F[J];N[H]=z!==0?(w[X]-F[X])/z:0}K[H]=!M?N[H]:!w?N[H-1]:G4(N[H-1])!==G4(N[H])?0:(N[H-1]+N[H])/2}bO(Q,N,K),kO(Q,K,J)}function L3(Q,J,X){return Math.max(Math.min(Q,X),J)}function yO(Q,J){let X,q,N,K,H,M=f4(Q[0],J);for(X=0,q=Q.length;X<q;++X){if(H=K,K=M,M=X<q-1&&f4(Q[X+1],J),!K)continue;if(N=Q[X],H)N.cp1x=L3(N.cp1x,J.left,J.right),N.cp1y=L3(N.cp1y,J.top,J.bottom);if(M)N.cp2x=L3(N.cp2x,J.left,J.right),N.cp2y=L3(N.cp2y,J.top,J.bottom)}}function Nz(Q,J,X,q,N){let K,H,M,F;if(J.spanGaps)Q=Q.filter((w)=>!w.skip);if(J.cubicInterpolationMode==="monotone")fO(Q,N);else{let w=q?Q[Q.length-1]:Q[0];for(K=0,H=Q.length;K<H;++K)M=Q[K],F=vO(w,M,Q[Math.min(K+1,H-(q?0:1))%H],J.tension),M.cp1x=F.previous.x,M.cp1y=F.previous.y,M.cp2x=F.next.x,M.cp2y=F.next.y,w=M}if(J.capBezierPoints)yO(Q,X)}function k3(){return typeof window<"u"&&typeof document<"u"}function f3(Q){let J=Q.parentNode;if(J&&J.toString()==="[object ShadowRoot]")J=J.host;return J}function V3(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 y3=(Q)=>Q.ownerDocument.defaultView.getComputedStyle(Q,null);function gO(Q,J){return y3(Q).getPropertyValue(J)}var hO=["top","right","bottom","left"];function j9(Q,J,X){let q={};X=X?"-"+X:"";for(let N=0;N<4;N++){let K=hO[N];q[K]=parseFloat(Q[J+"-"+K+X])||0}return q.width=q.left+q.right,q.height=q.top+q.bottom,q}var uO=(Q,J,X)=>(Q>0||J>0)&&(!X||!X.shadowRoot);function xO(Q,J){let X=Q.touches,q=X&&X.length?X[0]:Q,{offsetX:N,offsetY:K}=q,H=!1,M,F;if(uO(N,K,Q.target))M=N,F=K;else{let w=J.getBoundingClientRect();M=q.clientX-w.left,F=q.clientY-w.top,H=!0}return{x:M,y:F,box:H}}function D2(Q,J){if("native"in Q)return Q;let{canvas:X,currentDevicePixelRatio:q}=J,N=y3(X),K=N.boxSizing==="border-box",H=j9(N,"padding"),M=j9(N,"border","width"),{x:F,y:w,box:z}=xO(Q,X),T=H.left+(z&&M.left),P=H.top+(z&&M.top),{width:I,height:A}=J;if(K)I-=H.width+M.width,A-=H.height+M.height;return{x:Math.round((F-T)/I*X.width/q),y:Math.round((w-P)/A*X.height/q)}}function mO(Q,J,X){let q,N;if(J===void 0||X===void 0){let K=Q&&f3(Q);if(!K)J=Q.clientWidth,X=Q.clientHeight;else{let H=K.getBoundingClientRect(),M=y3(K),F=j9(M,"border","width"),w=j9(M,"padding");J=H.width-w.width-F.width,X=H.height-w.height-F.height,q=V3(M.maxWidth,K,"clientWidth"),N=V3(M.maxHeight,K,"clientHeight")}}return{width:J,height:X,maxWidth:q||C3,maxHeight:N||C3}}var O2=(Q)=>Math.round(Q*10)/10;function Uz(Q,J,X,q){let N=y3(Q),K=j9(N,"margin"),H=V3(N.maxWidth,Q,"clientWidth")||C3,M=V3(N.maxHeight,Q,"clientHeight")||C3,F=mO(Q,J,X),{width:w,height:z}=F;if(N.boxSizing==="content-box"){let P=j9(N,"border","width"),I=j9(N,"padding");w-=I.width+P.width,z-=I.height+P.height}if(w=Math.max(0,w-K.width),z=Math.max(0,q?w/q:z-K.height),w=O2(Math.min(w,H,F.maxWidth)),z=O2(Math.min(z,M,F.maxHeight)),w&&!z)z=O2(w/2);if((J!==void 0||X!==void 0)&&q&&F.height&&z>F.height)z=F.height,w=O2(Math.floor(z*q));return{width:w,height:z}}function AU(Q,J,X){let q=J||1,N=O2(Q.height*q),K=O2(Q.width*q);Q.height=O2(Q.height),Q.width=O2(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 Kz=function(){let Q=!1;try{let J={get passive(){return Q=!0,!1}};if(k3())window.addEventListener("test",null,J),window.removeEventListener("test",null,J)}catch(J){}return Q}();function SU(Q,J){let X=gO(Q,J),q=X&&X.match(/^(\d+)(\.\d+)?px$/);return q?+q[1]:void 0}function I2(Q,J,X,q){return{x:Q.x+X*(J.x-Q.x),y:Q.y+X*(J.y-Q.y)}}function Bz(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 Hz(Q,J,X,q){let N={x:Q.cp2x,y:Q.cp2y},K={x:J.cp1x,y:J.cp1y},H=I2(Q,N,X),M=I2(N,K,X),F=I2(K,J,X),w=I2(H,M,X),z=I2(M,F,X);return I2(w,z,X)}var dO=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}}},pO=function(){return{x(Q){return Q},setWidth(Q){},textAlign(Q){return Q},xPlus(Q,J){return Q+J},leftForLtr(Q,J){return Q}}};function b9(Q,J,X){return Q?dO(J,X):pO()}function jU(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 DU(Q,J){if(J!==void 0)delete Q.prevTextDirection,Q.canvas.style.setProperty("direction",J[0],J[1])}function Mz(Q){if(Q==="angle")return{between:FU,compare:qO,normalize:r5};return{between:P8,compare:(J,X)=>J-X,normalize:(J)=>J}}function bR({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 cO(Q,J,X){let{property:q,start:N,end:K}=X,{between:H,normalize:M}=Mz(q),F=J.length,{start:w,end:z,loop:T}=Q,P,I;if(T){w+=F,z+=F;for(P=0,I=F;P<I;++P){if(!H(M(J[w%F][q]),N,K))break;w--,z--}w%=F,z%=F}if(z<w)z+=F;return{start:w,end:z,loop:T,style:Q.style}}function vU(Q,J,X){if(!X)return[Q];let{property:q,start:N,end:K}=X,H=J.length,{compare:M,between:F,normalize:w}=Mz(q),{start:z,end:T,loop:P,style:I}=cO(Q,J,X),A=[],O=!1,V=null,D,h,p,s=()=>F(N,p,D)&&M(N,p)!==0,o=()=>M(K,D)===0||F(K,p,D),Q0=()=>O||s(),t=()=>!O||o();for(let a=z,q0=z;a<=T;++a){if(h=J[a%H],h.skip)continue;if(D=w(h[q]),D===p)continue;if(O=F(D,N,K),V===null&&Q0())V=M(D,N)===0?a:q0;if(V!==null&&t())A.push(bR({start:V,end:a,loop:P,count:H,style:I})),V=null;q0=a,p=D}if(V!==null)A.push(bR({start:V,end:T,loop:P,count:H,style:I}));return A}function bU(Q,J){let X=[],q=Q.segments;for(let N=0;N<q.length;N++){let K=vU(q[N],Q.points,J);if(K.length)X.push(...K)}return X}function lO(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 rO(Q,J,X,q){let N=Q.length,K=[],H=J,M=Q[J],F;for(F=J+1;F<=X;++F){let w=Q[F%N];if(w.skip||w.stop){if(!M.skip)q=!1,K.push({start:J%N,end:(F-1)%N,loop:q}),J=H=w.stop?F:null}else if(H=F,M.skip)J=F;M=w}if(H!==null)K.push({start:J%N,end:H%N,loop:q});return K}function Fz(Q,J){let X=Q.points,q=Q.options.spanGaps,N=X.length;if(!N)return[];let K=!!Q._loop,{start:H,end:M}=lO(X,N,K,q);if(q===!0)return kR(Q,[{start:H,end:M,loop:K}],X,J);let F=M<H?M+N:M,w=!!Q._fullLoop&&H===0&&M===N-1;return kR(Q,rO(X,H,F,w),X,J)}function kR(Q,J,X,q){if(!q||!q.setContext||!X)return J;return sO(Q,J,X,q)}function sO(Q,J,X,q){let N=Q._chart.getContext(),K=fR(Q.options),{_datasetIndex:H,options:{spanGaps:M}}=Q,F=X.length,w=[],z=K,T=J[0].start,P=T;function I(A,O,V,D){let h=M?-1:1;if(A===O)return;A+=F;while(X[A%F].skip)A-=h;while(X[O%F].skip)O+=h;if(A%F!==O%F)w.push({start:A%F,end:O%F,loop:V,style:D}),z=D,T=O%F}for(let A of J){T=M?T:A.start;let O=X[T%F],V;for(P=T+1;P<=A.end;P++){let D=X[P%F];if(V=fR(q.setContext(_8(N,{type:"segment",p0:O,p1:D,p0DataIndex:(P-1)%F,p1DataIndex:P%F,datasetIndex:H}))),nO(V,z))I(T,P-1,A.loop,z);O=D,z=V}if(T<P-1)I(T,P-1,A.loop,z)}return w}function fR(Q){return{backgroundColor:Q.backgroundColor,borderCapStyle:Q.borderCapStyle,borderDash:Q.borderDash,borderDashOffset:Q.borderDashOffset,borderJoinStyle:Q.borderJoinStyle,borderWidth:Q.borderWidth,borderColor:Q.borderColor}}function nO(Q,J){if(!J)return!1;let X=[],q=function(N,K){if(!TU(K))return K;if(!X.includes(K))X.push(K);return X.indexOf(K)};return JSON.stringify(Q,q)!==JSON.stringify(J,q)}function P3(Q,J,X){return Q.options.clip?Q[X]:J[X]}function oO(Q,J){let{xScale:X,yScale:q}=Q;if(X&&q)return{left:P3(X,J,"left"),right:P3(X,J,"right"),top:P3(q,J,"top"),bottom:P3(q,J,"bottom")};return J}function kU(Q,J){let X=J._clip;if(X.disabled)return!1;let q=oO(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)}}/*!
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 YT{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(Q,G,X,q){let N=G.listeners[q],K=G.duration;N.forEach((H)=>H({chart:Q,initial:G.initial,numSteps:K,currentStep:Math.min(X-G.start,K)}))}_refresh(){if(this._request)return;this._running=!0,this._request=FU.call(window,()=>{if(this._update(),this._request=null,this._running)this._refresh()})}_update(Q=Date.now()){let G=0;if(this._charts.forEach((X,q)=>{if(!X.running||!X.items.length)return;let N=X.items,K=N.length-1,H=!1,M;for(;K>=0;--K)if(M=N[K],M._active){if(M._total>X.duration)X.duration=M._total;M.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;G+=N.length}),this._lastDate=Q,G===0)this._running=!1}_getAnims(Q){let G=this._charts,X=G.get(Q);if(!X)X={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},G.set(Q,X);return X}listen(Q,G,X){this._getAnims(Q).listeners[G].push(X)}add(Q,G){if(!G||!G.length)return;this._getAnims(Q).items.push(...G)}has(Q){return this._getAnims(Q).items.length>0}start(Q){let G=this._charts.get(Q);if(!G)return;G.running=!0,G.start=Date.now(),G.duration=G.items.reduce((X,q)=>Math.max(X,q._duration),0),this._refresh()}running(Q){if(!this._running)return!1;let G=this._charts.get(Q);if(!G||!G.running||!G.items.length)return!1;return!0}stop(Q){let G=this._charts.get(Q);if(!G||!G.items.length)return;let X=G.items,q=X.length-1;for(;q>=0;--q)X[q].cancel();G.items=[],this._notify(Q,G,Date.now(),"complete")}remove(Q){return this._charts.delete(Q)}}var L8=new YT,Bz="transparent",cO={boolean(Q,G,X){return X>0.5?G:Q},color(Q,G,X){let q=RU(Q||Bz),N=q.valid&&RU(G||Bz);return N&&N.valid?N.mix(q,X).hexString():G},number(Q,G,X){return Q+(G-Q)*X}};class NT{constructor(Q,G,X,q){let N=G[X];q=XQ([Q.to,q,N,Q.from]);let K=XQ([Q.from,N,q]);this._active=!0,this._fn=Q.fn||cO[Q.type||typeof K],this._easing=e7[Q.easing]||e7.linear,this._start=Math.floor(Date.now()+(Q.delay||0)),this._duration=this._total=Math.floor(Q.duration),this._loop=!!Q.loop,this._target=G,this._prop=X,this._from=K,this._to=q,this._promises=void 0}active(){return this._active}update(Q,G,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=XQ([Q.to,G,q,Q.from]),this._from=XQ([Q.from,q,G])}}cancel(){if(this._active)this.tick(Date.now()),this._active=!1,this._notify(!1)}tick(Q){let G=Q-this._start,X=this._duration,q=this._prop,N=this._from,K=this._loop,H=this._to,M;if(this._active=N!==H&&(K||G<X),!this._active){this._target[q]=H,this._notify(!0);return}if(G<0){this._target[q]=N;return}M=G/X%2,M=K&&M>1?2-M:M,M=this._easing(Math.min(1,Math.max(0,M))),this._target[q]=this._fn(N,H,M)}wait(){let Q=this._promises||(this._promises=[]);return new Promise((G,X)=>{Q.push({res:G,rej:X})})}_notify(Q){let G=Q?"res":"rej",X=this._promises||[];for(let q=0;q<X.length;q++)X[q][G]()}}class iU{constructor(Q,G){this._chart=Q,this._properties=new Map,this.configure(G)}configure(Q){if(!o0(Q))return;let G=Object.keys(b1.animation),X=this._properties;Object.getOwnPropertyNames(Q).forEach((q)=>{let N=Q[q];if(!o0(N))return;let K={};for(let H of G)K[H]=N[H];(_1(N.properties)&&N.properties||[q]).forEach((H)=>{if(H===q||!X.has(H))X.set(H,K)})})}_animateOptions(Q,G){let X=G.options,q=rO(Q,X);if(!q)return[];let N=this._createAnimations(q,X);if(X.$shared)lO(Q.options.$animations,X).then(()=>{Q.options=X},()=>{});return N}_createAnimations(Q,G){let X=this._properties,q=[],N=Q.$animations||(Q.$animations={}),K=Object.keys(G),H=Date.now(),M;for(M=K.length-1;M>=0;--M){let F=K[M];if(F.charAt(0)==="$")continue;if(F==="options"){q.push(...this._animateOptions(Q,G));continue}let w=G[F],z=N[F],T=X.get(F);if(z)if(T&&z.active()){z.update(T,w,H);continue}else z.cancel();if(!T||!T.duration){Q[F]=w;continue}N[F]=z=new NT(T,Q,F,w),q.push(z)}return q}update(Q,G){if(this._properties.size===0){Object.assign(Q,G);return}let X=this._createAnimations(Q,G);if(X.length)return L8.add(this._chart,X),!0}}function lO(Q,G){let X=[],q=Object.keys(G);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 rO(Q,G){if(!G)return;let X=Q.options;if(!X){Q.options=G;return}if(X.$shared)Q.options=X=Object.assign({},X,{$shared:!1,$animations:{}});return X}function Hz(Q,G){let X=Q&&Q.options||{},q=X.reverse,N=X.min===void 0?G:0,K=X.max===void 0?G:0;return{start:q?K:N,end:q?N:K}}function sO(Q,G,X){if(X===!1)return!1;let q=Hz(Q,X),N=Hz(G,X);return{top:N.end,right:q.end,bottom:N.start,left:q.start}}function nO(Q){let G,X,q,N;if(o0(Q))G=Q.top,X=Q.right,q=Q.bottom,N=Q.left;else G=X=q=N=Q;return{top:G,right:X,bottom:q,left:N,disabled:Q===!1}}function UT(Q,G){let X=[],q=Q._getSortedDatasetMetas(G),N,K;for(N=0,K=q.length;N<K;++N)X.push(q[N].index);return X}function Mz(Q,G,X,q={}){let N=Q.keys,K=q.mode==="single",H,M,F,w;if(G===null)return;let z=!1;for(H=0,M=N.length;H<M;++H){if(F=+N[H],F===X){if(z=!0,q.all)continue;break}if(w=Q.values[F],v1(w)&&(K||G===0||Z4(G)===Z4(w)))G+=w}if(!z&&!q.all)return 0;return G}function oO(Q,G){let{iScale:X,vScale:q}=G,N=X.axis==="x"?"x":"y",K=q.axis==="x"?"x":"y",H=Object.keys(Q),M=Array(H.length),F,w,z;for(F=0,w=H.length;F<w;++F)z=H[F],M[F]={[N]:z,[K]:Q[z]};return M}function vU(Q,G){let X=Q&&Q.options.stacked;return X||X===void 0&&G.stack!==void 0}function aO(Q,G,X){return`${Q.id}.${G.id}.${X.stack||X.type}`}function iO(Q){let{min:G,max:X,minDefined:q,maxDefined:N}=Q.getUserBounds();return{min:q?G:Number.NEGATIVE_INFINITY,max:N?X:Number.POSITIVE_INFINITY}}function tO(Q,G,X){let q=Q[G]||(Q[G]={});return q[X]||(q[X]={})}function Fz(Q,G,X,q){for(let N of G.getMatchingVisibleMetas(q).reverse()){let K=Q[N.index];if(X&&K>0||!X&&K<0)return N.index}return null}function Wz(Q,G){let{chart:X,_cachedMeta:q}=Q,N=X._stacks||(X._stacks={}),{iScale:K,vScale:H,index:M}=q,F=K.axis,w=H.axis,z=aO(K,H,q),T=G.length,P;for(let V=0;V<T;++V){let A=G[V],{[F]:O,[w]:I}=A,D=A._stacks||(A._stacks={});P=D[w]=tO(N,z,O),P[M]=I,P._top=Fz(P,H,!0,q.type),P._bottom=Fz(P,H,!1,q.type);let h=P._visualValues||(P._visualValues={});h[M]=I}}function bU(Q,G){let X=Q.scales;return Object.keys(X).filter((q)=>X[q].axis===G).shift()}function eO(Q,G){return T8(Q,{active:!1,dataset:void 0,datasetIndex:G,index:G,mode:"default",type:"dataset"})}function $E(Q,G,X){return T8(Q,{active:!1,dataIndex:G,parsed:void 0,raw:void 0,element:X,index:G,mode:"default",type:"data"})}function qQ(Q,G){let X=Q.controller.index,q=Q.vScale&&Q.vScale.axis;if(!q)return;G=G||Q._parsed;for(let N of G){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 kU=(Q)=>Q==="reset"||Q==="none",wz=(Q,G)=>G?Q:Object.assign({},Q),ZE=(Q,G,X)=>Q&&!G.hidden&&G._stacked&&{keys:UT(X,!0),values:null};class x3{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(Q,G){this.chart=Q,this._ctx=Q.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 Q=this._cachedMeta;if(this.configure(),this.linkScales(),Q._stacked=vU(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)qQ(this._cachedMeta);this.index=Q}linkScales(){let Q=this.chart,G=this._cachedMeta,X=this.getDataset(),q=(z,T,P,V)=>z==="x"?T:z==="r"?V:P,N=G.xAxisID=p0(X.xAxisID,bU(Q,"x")),K=G.yAxisID=p0(X.yAxisID,bU(Q,"y")),H=G.rAxisID=p0(X.rAxisID,bU(Q,"r")),M=G.indexAxis,F=G.iAxisID=q(M,N,K,H),w=G.vAxisID=q(M,K,N,H);G.xScale=this.getScaleForId(N),G.yScale=this.getScaleForId(K),G.rScale=this.getScaleForId(H),G.iScale=this.getScaleForId(F),G.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 G=this._cachedMeta;return Q===G.iScale?G.vScale:G.iScale}reset(){this._update("reset")}_destroy(){let Q=this._cachedMeta;if(this._data)HU(this._data,this);if(Q._stacked)qQ(Q)}_dataCheck(){let Q=this.getDataset(),G=Q.data||(Q.data=[]),X=this._data;if(o0(G)){let q=this._cachedMeta;this._data=oO(G,q)}else if(X!==G){if(X){HU(X,this);let q=this._cachedMeta;qQ(q),q._parsed=[]}if(G&&Object.isExtensible(G))pR(G,this);this._syncList=[],this._data=G}}addElements(){let Q=this._cachedMeta;if(this._dataCheck(),this.datasetElementType)Q.dataset=new this.datasetElementType}buildOrUpdateElements(Q){let G=this._cachedMeta,X=this.getDataset(),q=!1;this._dataCheck();let N=G._stacked;if(G._stacked=vU(G.vScale,G),G.stack!==X.stack)q=!0,qQ(G),G.stack=X.stack;if(this._resyncElements(Q),q||N!==G._stacked)Wz(this,G._parsed),G._stacked=vU(G.vScale,G)}configure(){let Q=this.chart.config,G=Q.datasetScopeKeys(this._type),X=Q.getOptionScopes(this.getDataset(),G,!0);this.options=Q.createResolver(X,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(Q,G){let{_cachedMeta:X,_data:q}=this,{iScale:N,_stacked:K}=X,H=N.axis,M=Q===0&&G===q.length?!0:X._sorted,F=Q>0&&X._parsed[Q-1],w,z,T;if(this._parsing===!1)X._parsed=q,X._sorted=!0,T=q;else{if(_1(q[Q]))T=this.parseArrayData(X,q,Q,G);else if(o0(q[Q]))T=this.parseObjectData(X,q,Q,G);else T=this.parsePrimitiveData(X,q,Q,G);let P=()=>z[H]===null||F&&z[H]<F[H];for(w=0;w<G;++w)if(X._parsed[w+Q]=z=T[w],M){if(P())M=!1;F=z}X._sorted=M}if(K)Wz(this,T)}parsePrimitiveData(Q,G,X,q){let{iScale:N,vScale:K}=Q,H=N.axis,M=K.axis,F=N.getLabels(),w=N===K,z=Array(q),T,P,V;for(T=0,P=q;T<P;++T)V=T+X,z[T]={[H]:w||N.parse(F[V],V),[M]:K.parse(G[V],V)};return z}parseArrayData(Q,G,X,q){let{xScale:N,yScale:K}=Q,H=Array(q),M,F,w,z;for(M=0,F=q;M<F;++M)w=M+X,z=G[w],H[M]={x:N.parse(z[0],w),y:K.parse(z[1],w)};return H}parseObjectData(Q,G,X,q){let{xScale:N,yScale:K}=Q,{xAxisKey:H="x",yAxisKey:M="y"}=this._parsing,F=Array(q),w,z,T,P;for(w=0,z=q;w<z;++w)T=w+X,P=G[T],F[w]={x:N.parse(S9(P,H),T),y:K.parse(S9(P,M),T)};return F}getParsed(Q){return this._cachedMeta._parsed[Q]}getDataElement(Q){return this._cachedMeta.data[Q]}applyStack(Q,G,X){let q=this.chart,N=this._cachedMeta,K=G[Q.axis],H={keys:UT(q,!0),values:G._stacks[Q.axis]._visualValues};return Mz(H,K,N.index,{mode:X})}updateRangeFromParsed(Q,G,X,q){let N=X[G.axis],K=N===null?NaN:N,H=q&&X._stacks[G.axis];if(q&&H)q.values=H,K=Mz(q,N,this._cachedMeta.index);Q.min=Math.min(Q.min,K),Q.max=Math.max(Q.max,K)}getMinMax(Q,G){let X=this._cachedMeta,q=X._parsed,N=X._sorted&&Q===X.iScale,K=q.length,H=this._getOtherScale(Q),M=ZE(G,X,this.chart),F={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:w,max:z}=iO(H),T,P;function V(){P=q[T];let A=P[H.axis];return!v1(P[Q.axis])||w>A||z<A}for(T=0;T<K;++T){if(V())continue;if(this.updateRangeFromParsed(F,Q,P,M),N)break}if(N)for(T=K-1;T>=0;--T){if(V())continue;this.updateRangeFromParsed(F,Q,P,M);break}return F}getAllParsedValues(Q){let G=this._cachedMeta._parsed,X=[],q,N,K;for(q=0,N=G.length;q<N;++q)if(K=G[q][Q.axis],v1(K))X.push(K);return X}getMaxOverflow(){return!1}getLabelAndValue(Q){let G=this._cachedMeta,X=G.iScale,q=G.vScale,N=this.getParsed(Q);return{label:X?""+X.getLabelForValue(N[X.axis]):"",value:q?""+q.getLabelForValue(N[q.axis]):""}}_update(Q){let G=this._cachedMeta;this.update(Q||"default"),G._clip=nO(p0(this.options.clip,sO(G.xScale,G.yScale,this.getMaxOverflow())))}update(Q){}draw(){let Q=this._ctx,G=this.chart,X=this._cachedMeta,q=X.data||[],N=G.chartArea,K=[],H=this._drawStart||0,M=this._drawCount||q.length-H,F=this.options.drawActiveElementsOnTop,w;if(X.dataset)X.dataset.draw(Q,N,H,M);for(w=H;w<H+M;++w){let z=q[w];if(z.hidden)continue;if(z.active&&F)K.push(z);else z.draw(Q,N)}for(w=0;w<K.length;++w)K[w].draw(Q,N)}getStyle(Q,G){let X=G?"active":"default";return Q===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(X):this.resolveDataElementOptions(Q||0,X)}getContext(Q,G,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=$E(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=eO(this.chart.getContext(),this.index)),N.dataset=q,N.index=N.datasetIndex=this.index;return N.active=!!G,N.mode=X,N}resolveDatasetElementOptions(Q){return this._resolveElementOptions(this.datasetElementType.id,Q)}resolveDataElementOptions(Q,G){return this._resolveElementOptions(this.dataElementType.id,G,Q)}_resolveElementOptions(Q,G="default",X){let q=G==="active",N=this._cachedDataOpts,K=Q+"-"+G,H=N[K],M=this.enableOptionSharing&&J$(X);if(H)return wz(H,M);let F=this.chart.config,w=F.datasetElementScopeKeys(this._type,Q),z=q?[`${Q}Hover`,"hover",Q,""]:[Q,""],T=F.getOptionScopes(this.getDataset(),w),P=Object.keys(b1.elements[Q]),V=()=>this.getContext(X,q,G),A=F.resolveNamedOptions(T,P,V,z);if(A.$shared)A.$shared=M,N[K]=Object.freeze(wz(A,M));return A}_resolveAnimations(Q,G,X){let q=this.chart,N=this._cachedDataOpts,K=`animation-${G}`,H=N[K];if(H)return H;let M;if(q.options.animation!==!1){let w=this.chart.config,z=w.datasetAnimationScopeKeys(this._type,G),T=w.getOptionScopes(this.getDataset(),z);M=w.createResolver(T,this.getContext(Q,X,G))}let F=new iU(q,M&&M.animations);if(M&&M._cacheable)N[K]=Object.freeze(F);return F}getSharedOptions(Q){if(!Q.$shared)return;return this._sharedOptions||(this._sharedOptions=Object.assign({},Q))}includeOptions(Q,G){return!G||kU(Q)||this.chart._animationsDisabled}_getSharedOptions(Q,G){let X=this.resolveDataElementOptions(Q,G),q=this._sharedOptions,N=this.getSharedOptions(X),K=this.includeOptions(G,N)||N!==q;return this.updateSharedOptions(N,G,X),{sharedOptions:N,includeOptions:K}}updateElement(Q,G,X,q){if(kU(q))Object.assign(Q,X);else this._resolveAnimations(G,q).update(Q,X)}updateSharedOptions(Q,G,X){if(Q&&!kU(G))this._resolveAnimations(void 0,G).update(Q,X)}_setStyle(Q,G,X,q){Q.active=q;let N=this.getStyle(G,q);this._resolveAnimations(G,X,q).update(Q,{options:!q&&this.getSharedOptions(N)||N})}removeHoverStyle(Q,G,X){this._setStyle(Q,X,"active",!1)}setHoverStyle(Q,G,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 G=this._data,X=this._cachedMeta.data;for(let[H,M,F]of this._syncList)this[H](M,F);this._syncList=[];let q=X.length,N=G.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,G,X=!0){let q=this._cachedMeta,N=q.data,K=Q+G,H,M=(F)=>{F.length+=G;for(H=F.length-1;H>=K;H--)F[H]=F[H-G]};M(N);for(H=Q;H<K;++H)N[H]=new this.dataElementType;if(this._parsing)M(q._parsed);if(this.parse(Q,G),X)this.updateElements(N,Q,G,"reset")}updateElements(Q,G,X,q){}_removeElements(Q,G){let X=this._cachedMeta;if(this._parsing){let q=X._parsed.splice(Q,G);if(X._stacked)qQ(X,q)}X.data.splice(Q,G)}_sync(Q){if(this._parsing)this._syncList.push(Q);else{let[G,X,q]=Q;this[G](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,G){if(G)this._sync(["_removeElements",Q,G]);let X=arguments.length-2;if(X)this._sync(["_insertElements",Q,X])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function QE(Q,G){if(!Q._cache.$bar){let X=Q.getMatchingVisibleMetas(G),q=[];for(let N=0,K=X.length;N<K;N++)q=q.concat(X[N].controller.getAllParsedValues(Q));Q._cache.$bar=MU(q.sort((N,K)=>N-K))}return Q._cache.$bar}function JE(Q){let G=Q.iScale,X=QE(G,Q.type),q=G._length,N,K,H,M,F=()=>{if(H===32767||H===-32768)return;if(J$(M))q=Math.min(q,Math.abs(H-M)||q);M=H};for(N=0,K=X.length;N<K;++N)H=G.getPixelForValue(X[N]),F();M=void 0;for(N=0,K=G.ticks.length;N<K;++N)H=G.getPixelForTick(N),F();return q}function GE(Q,G,X,q){let N=X.barThickness,K,H;if(t0(N))K=G.min*X.categoryPercentage,H=X.barPercentage;else K=N*q,H=1;return{chunk:K/q,ratio:H,start:G.pixels[Q]-K/2}}function XE(Q,G,X,q){let N=G.pixels,K=N[Q],H=Q>0?N[Q-1]:null,M=Q<N.length-1?N[Q+1]:null,F=X.categoryPercentage;if(H===null)H=K-(M===null?G.end-G.start:M-K);if(M===null)M=K+K-H;let w=K-(K-Math.min(H,M))/2*F;return{chunk:Math.abs(M-H)/2*F/q,ratio:X.barPercentage,start:w}}function qE(Q,G,X,q){let N=X.parse(Q[0],q),K=X.parse(Q[1],q),H=Math.min(N,K),M=Math.max(N,K),F=H,w=M;if(Math.abs(H)>Math.abs(M))F=M,w=H;G[X.axis]=w,G._custom={barStart:F,barEnd:w,start:N,end:K,min:H,max:M}}function KT(Q,G,X,q){if(_1(Q))qE(Q,G,X,q);else G[X.axis]=X.parse(Q,q);return G}function Rz(Q,G,X,q){let{iScale:N,vScale:K}=Q,H=N.getLabels(),M=N===K,F=[],w,z,T,P;for(w=X,z=X+q;w<z;++w)P=G[w],T={},T[N.axis]=M||N.parse(H[w],w),F.push(KT(P,T,K,w));return F}function fU(Q){return Q&&Q.barStart!==void 0&&Q.barEnd!==void 0}function YE(Q,G,X){if(Q!==0)return Z4(Q);return(G.isHorizontal()?1:-1)*(G.min>=X?1:-1)}function NE(Q){let G,X,q,N,K;if(Q.horizontal)G=Q.base>Q.x,X="left",q="right";else G=Q.base<Q.y,X="bottom",q="top";if(G)N="end",K="start";else N="start",K="end";return{start:X,end:q,reverse:G,top:N,bottom:K}}function UE(Q,G,X,q){let N=G.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:M,reverse:F,top:w,bottom:z}=NE(Q);if(N==="middle"&&X)if(Q.enableBorderRadius=!0,(X._top||0)===q)N=w;else if((X._bottom||0)===q)N=z;else K[zz(z,H,M,F)]=!0,N=w;K[zz(N,H,M,F)]=!0,Q.borderSkipped=K}function zz(Q,G,X,q){if(q)Q=KE(Q,G,X),Q=Tz(Q,X,G);else Q=Tz(Q,G,X);return Q}function KE(Q,G,X){return Q===G?X:Q===X?G:Q}function Tz(Q,G,X){return Q==="start"?G:Q==="end"?X:Q}function BE(Q,{inflateAmount:G},X){Q.inflateAmount=G==="auto"?X===1?0.33:0:G}class tU extends x3{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,G,X,q){return Rz(Q,G,X,q)}parseArrayData(Q,G,X,q){return Rz(Q,G,X,q)}parseObjectData(Q,G,X,q){let{iScale:N,vScale:K}=Q,{xAxisKey:H="x",yAxisKey:M="y"}=this._parsing,F=N.axis==="x"?H:M,w=K.axis==="x"?H:M,z=[],T,P,V,A;for(T=X,P=X+q;T<P;++T)A=G[T],V={},V[N.axis]=N.parse(S9(A,F),T),z.push(KT(S9(A,w),V,K,T));return z}updateRangeFromParsed(Q,G,X,q){super.updateRangeFromParsed(Q,G,X,q);let N=X._custom;if(N&&G===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 G=this._cachedMeta,{iScale:X,vScale:q}=G,N=this.getParsed(Q),K=N._custom,H=fU(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 G=this._cachedMeta;this.updateElements(G.data,0,G.data.length,Q)}updateElements(Q,G,X,q){let N=q==="reset",{index:K,_cachedMeta:{vScale:H}}=this,M=H.getBasePixel(),F=H.isHorizontal(),w=this._getRuler(),{sharedOptions:z,includeOptions:T}=this._getSharedOptions(G,q);for(let P=G;P<G+X;P++){let V=this.getParsed(P),A=N||t0(V[H.axis])?{base:M,head:M}:this._calculateBarValuePixels(P),O=this._calculateBarIndexPixels(P,w),I=(V._stacks||{})[H.axis],D={horizontal:F,base:A.base,enableBorderRadius:!I||fU(V._custom)||K===I._top||K===I._bottom,x:F?A.head:O.center,y:F?O.center:A.head,height:F?O.size:Math.abs(A.size),width:F?Math.abs(A.size):O.size};if(T)D.options=z||this.resolveDataElementOptions(P,Q[P].active?"active":q);let h=D.options||Q[P].options;UE(D,h,I,K),BE(D,h,w.ratio),this.updateElement(Q[P],P,D,q)}}_getStacks(Q,G){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(G),M=H&&H[X.axis],F=(w)=>{let z=w._parsed.find((P)=>P[X.axis]===M),T=z&&z[w.vScale.axis];if(t0(T)||isNaN(T))return!0};for(let w of q){if(G!==void 0&&F(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,G=this.chart.options.indexAxis;return Object.keys(Q).filter((X)=>Q[X].axis===G).shift()}_getAxis(){let Q={},G=this.getFirstScaleIdForIndexAxis();for(let X of this.chart.data.datasets)Q[p0(this.chart.options.indexAxis==="x"?X.xAxisID:X.yAxisID,G)]=!0;return Object.keys(Q)}_getStackIndex(Q,G,X){let q=this._getStacks(Q,X),N=G!==void 0?q.indexOf(G):-1;return N===-1?q.length-1:N}_getRuler(){let Q=this.options,G=this._cachedMeta,X=G.iScale,q=[],N,K;for(N=0,K=G.data.length;N<K;++N)q.push(X.getPixelForValue(this.getParsed(N)[X.axis],N));let H=Q.barThickness;return{min:H||JE(G),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:G,_stacked:X,index:q},options:{base:N,minBarLength:K}}=this,H=N||0,M=this.getParsed(Q),F=M._custom,w=fU(F),z=M[G.axis],T=0,P=X?this.applyStack(G,M,X):z,V,A;if(P!==z)T=P-z,P=z;if(w){if(z=F.barStart,P=F.barEnd-F.barStart,z!==0&&Z4(z)!==Z4(F.barEnd))T=0;T+=z}let O=!t0(N)&&!w?N:T,I=G.getPixelForValue(O);if(this.chart.getDataVisibility(Q))V=G.getPixelForValue(T+P);else V=I;if(A=V-I,Math.abs(A)<K){if(A=YE(A,G,H)*K,z===H)I-=A/2;let D=G.getPixelForDecimal(0),h=G.getPixelForDecimal(1),p=Math.min(D,h),s=Math.max(D,h);if(I=Math.max(Math.min(I,s),p),V=I+A,X&&!w)M._stacks[G.axis]._visualValues[q]=G.getValueForPixel(V)-G.getValueForPixel(I)}if(I===G.getPixelForValue(H)){let D=Z4(A)*G.getLineWidthForValue(H)/2;I+=D,A-=D}return{size:A,base:I,head:V,center:V+A/2}}_calculateBarIndexPixels(Q,G){let X=G.scale,q=this.options,N=q.skipNull,K=p0(q.maxBarThickness,1/0),H,M,F=this._getAxisCount();if(G.grouped){let w=N?this._getStackCount(Q):G.stackCount,z=q.barThickness==="flex"?XE(Q,G,q,w*F):GE(Q,G,q,w*F),T=this.chart.options.indexAxis==="x"?this.getDataset().xAxisID:this.getDataset().yAxisID,P=this._getAxis().indexOf(p0(T,this.getFirstScaleIdForIndexAxis())),V=this._getStackIndex(this.index,this._cachedMeta.stack,N?Q:void 0)+P;H=z.start+z.chunk*V+z.chunk/2,M=Math.min(K,z.chunk*z.ratio)}else H=X.getPixelForValue(this.getParsed(Q)[X.axis],Q),M=Math.min(K,G.min*G.ratio);return{base:H-M/2,head:H+M/2,center:H,size:M}}draw(){let Q=this._cachedMeta,G=Q.vScale,X=Q.data,q=X.length,N=0;for(;N<q;++N)if(this.getParsed(N)[G.axis]!==null&&!X[N].hidden)X[N].draw(this._ctx)}}class eU extends x3{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 G=this._cachedMeta,{dataset:X,data:q=[],_dataset:N}=G,K=this.chart._animationsDisabled,{start:H,count:M}=rR(G,q,K);if(this._drawStart=H,this._drawCount=M,sR(G))H=0,M=q.length;X._chart=this.chart,X._datasetIndex=this.index,X._decimated=!!N._decimated,X.points=q;let F=this.resolveDatasetElementOptions(Q);if(!this.options.showLine)F.borderWidth=0;F.segment=this.options.segment,this.updateElement(X,void 0,{animated:!K,options:F},Q),this.updateElements(q,H,M,Q)}updateElements(Q,G,X,q){let N=q==="reset",{iScale:K,vScale:H,_stacked:M,_dataset:F}=this._cachedMeta,{sharedOptions:w,includeOptions:z}=this._getSharedOptions(G,q),T=K.axis,P=H.axis,{spanGaps:V,segment:A}=this.options,O=X$(V)?V:Number.POSITIVE_INFINITY,I=this.chart._animationsDisabled||N||q==="none",D=G+X,h=Q.length,p=G>0&&this.getParsed(G-1);for(let s=0;s<h;++s){let o=Q[s],Q0=I?o:{};if(s<G||s>=D){Q0.skip=!0;continue}let i=this.getParsed(s),a=t0(i[P]),q0=Q0[T]=K.getPixelForValue(i[T],s),d=Q0[P]=N||a?H.getBasePixel():H.getPixelForValue(M?this.applyStack(H,i,M):i[P],s);if(Q0.skip=isNaN(q0)||isNaN(d)||a,Q0.stop=s>0&&Math.abs(i[T]-p[T])>O,A)Q0.parsed=i,Q0.raw=F.data[s];if(z)Q0.options=w||this.resolveDataElementOptions(s,o.active?"active":q);if(!I)this.updateElement(o,s,Q0,q);p=i}}getMaxOverflow(){let Q=this._cachedMeta,G=Q.dataset,X=G.options&&G.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 v9(){throw Error("This method is not implemented: Check that a complete date adapter is provided.")}class $K{static override(Q){Object.assign($K.prototype,Q)}options;constructor(Q){this.options=Q||{}}init(){}formats(){return v9()}parse(){return v9()}format(){return v9()}add(){return v9()}diff(){return v9()}startOf(){return v9()}endOf(){return v9()}}var HE={_date:$K};function ME(Q,G,X,q){let{controller:N,data:K,_sorted:H}=Q,M=N._cachedMeta.iScale,F=Q.dataset?Q.dataset.options?Q.dataset.options.spanGaps:null:null;if(M&&G===M.axis&&G!=="r"&&H&&K.length){let w=M._reversePixels?xR:C2;if(!q){let z=w(K,G,X);if(F){let{vScale:T}=N._cachedMeta,{_parsed:P}=Q,V=P.slice(0,z.lo+1).reverse().findIndex((O)=>!t0(O[T.axis]));z.lo-=Math.max(0,V);let A=P.slice(z.hi).findIndex((O)=>!t0(O[T.axis]));z.hi+=Math.max(0,A)}return z}else if(N._sharedOptions){let z=K[0],T=typeof z.getRange==="function"&&z.getRange(G);if(T){let P=w(K,G,X-T),V=w(K,G,X+T);return{lo:P.lo,hi:V.hi}}}}return{lo:0,hi:K.length-1}}function RQ(Q,G,X,q,N){let K=Q.getSortedVisibleDatasetMetas(),H=X[G];for(let M=0,F=K.length;M<F;++M){let{index:w,data:z}=K[M],{lo:T,hi:P}=ME(K[M],G,H,N);for(let V=T;V<=P;++V){let A=z[V];if(!A.skip)q(A,w,V)}}}function FE(Q){let G=Q.indexOf("x")!==-1,X=Q.indexOf("y")!==-1;return function(q,N){let K=G?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 yU(Q,G,X,q,N){let K=[];if(!N&&!Q.isPointInArea(G))return K;return RQ(Q,X,G,function(M,F,w){if(!N&&!b4(M,Q.chartArea,0))return;if(M.inRange(G.x,G.y,q))K.push({element:M,datasetIndex:F,index:w})},!0),K}function WE(Q,G,X,q){let N=[];function K(H,M,F){let{startAngle:w,endAngle:z}=H.getProps(["startAngle","endAngle"],q),{angle:T}=hR(H,{x:G.x,y:G.y});if(BU(T,w,z))N.push({element:H,datasetIndex:M,index:F})}return RQ(Q,X,G,K),N}function wE(Q,G,X,q,N,K){let H=[],M=FE(X),F=Number.POSITIVE_INFINITY;function w(z,T,P){let V=z.inRange(G.x,G.y,N);if(q&&!V)return;let A=z.getCenterPoint(N);if(!(!!K||Q.isPointInArea(A))&&!V)return;let I=M(G,A);if(I<F)H=[{element:z,datasetIndex:T,index:P}],F=I;else if(I===F)H.push({element:z,datasetIndex:T,index:P})}return RQ(Q,X,G,w),H}function gU(Q,G,X,q,N,K){if(!K&&!Q.isPointInArea(G))return[];return X==="r"&&!q?WE(Q,G,X,N):wE(Q,G,X,q,N,K)}function Lz(Q,G,X,q,N){let K=[],H=X==="x"?"inXRange":"inYRange",M=!1;if(RQ(Q,X,G,(F,w,z)=>{if(F[H]&&F[H](G[X],N))K.push({element:F,datasetIndex:w,index:z}),M=M||F.inRange(G.x,G.y,N)}),q&&!M)return[];return K}var RE={evaluateInteractionItems:RQ,modes:{index(Q,G,X,q){let N=j2(G,Q),K=X.axis||"x",H=X.includeInvisible||!1,M=X.intersect?yU(Q,N,K,q,H):gU(Q,N,K,!1,q,H),F=[];if(!M.length)return[];return Q.getSortedVisibleDatasetMetas().forEach((w)=>{let z=M[0].index,T=w.data[z];if(T&&!T.skip)F.push({element:T,datasetIndex:w.index,index:z})}),F},dataset(Q,G,X,q){let N=j2(G,Q),K=X.axis||"xy",H=X.includeInvisible||!1,M=X.intersect?yU(Q,N,K,q,H):gU(Q,N,K,!1,q,H);if(M.length>0){let F=M[0].datasetIndex,w=Q.getDatasetMeta(F).data;M=[];for(let z=0;z<w.length;++z)M.push({element:w[z],datasetIndex:F,index:z})}return M},point(Q,G,X,q){let N=j2(G,Q),K=X.axis||"xy",H=X.includeInvisible||!1;return yU(Q,N,K,q,H)},nearest(Q,G,X,q){let N=j2(G,Q),K=X.axis||"xy",H=X.includeInvisible||!1;return gU(Q,N,K,X.intersect,q,H)},x(Q,G,X,q){let N=j2(G,Q);return Lz(Q,N,"x",X.intersect,q)},y(Q,G,X,q){let N=j2(G,Q);return Lz(Q,N,"y",X.intersect,q)}}},BT=["left","top","right","bottom"];function YQ(Q,G){return Q.filter((X)=>X.pos===G)}function Pz(Q,G){return Q.filter((X)=>BT.indexOf(X.pos)===-1&&X.box.axis===G)}function NQ(Q,G){return Q.sort((X,q)=>{let N=G?q:X,K=G?X:q;return N.weight===K.weight?N.index-K.index:N.weight-K.weight})}function zE(Q){let G=[],X,q,N,K,H,M;for(X=0,q=(Q||[]).length;X<q;++X)N=Q[X],{position:K,options:{stack:H,stackWeight:M=1}}=N,G.push({index:X,box:N,pos:K,horizontal:N.isHorizontal(),weight:N.weight,stack:H&&K+H,stackWeight:M});return G}function TE(Q){let G={};for(let X of Q){let{stack:q,pos:N,stackWeight:K}=X;if(!q||!BT.includes(N))continue;let H=G[q]||(G[q]={count:0,placed:0,weight:0,size:0});H.count++,H.weight+=K}return G}function LE(Q,G){let X=TE(Q),{vBoxMaxWidth:q,hBoxMaxHeight:N}=G,K,H,M;for(K=0,H=Q.length;K<H;++K){M=Q[K];let{fullSize:F}=M.box,w=X[M.stack],z=w&&M.stackWeight/w.weight;if(M.horizontal)M.width=z?z*q:F&&G.availableWidth,M.height=N;else M.width=q,M.height=z?z*N:F&&G.availableHeight}return X}function PE(Q){let G=zE(Q),X=NQ(G.filter((w)=>w.box.fullSize),!0),q=NQ(YQ(G,"left"),!0),N=NQ(YQ(G,"right")),K=NQ(YQ(G,"top"),!0),H=NQ(YQ(G,"bottom")),M=Pz(G,"x"),F=Pz(G,"y");return{fullSize:X,leftAndTop:q.concat(K),rightAndBottom:N.concat(F).concat(H).concat(M),chartArea:YQ(G,"chartArea"),vertical:q.concat(N).concat(F),horizontal:K.concat(H).concat(M)}}function _z(Q,G,X,q){return Math.max(Q[X],G[X])+Math.max(Q[q],G[q])}function HT(Q,G){Q.top=Math.max(Q.top,G.top),Q.left=Math.max(Q.left,G.left),Q.bottom=Math.max(Q.bottom,G.bottom),Q.right=Math.max(Q.right,G.right)}function _E(Q,G,X,q){let{pos:N,box:K}=X,H=Q.maxPadding;if(!o0(N)){if(X.size)Q[N]-=X.size;let T=q[X.stack]||{size:0,count:1};T.size=Math.max(T.size,X.horizontal?K.height:K.width),X.size=T.size/T.count,Q[N]+=X.size}if(K.getPadding)HT(H,K.getPadding());let M=Math.max(0,G.outerWidth-_z(H,Q,"left","right")),F=Math.max(0,G.outerHeight-_z(H,Q,"top","bottom")),w=M!==Q.w,z=F!==Q.h;return Q.w=M,Q.h=F,X.horizontal?{same:w,other:z}:{same:z,other:w}}function CE(Q){let G=Q.maxPadding;function X(q){let N=Math.max(G[q]-Q[q],0);return Q[q]+=N,N}Q.y+=X("top"),Q.x+=X("left"),X("right"),X("bottom")}function VE(Q,G){let X=G.maxPadding;function q(N){let K={left:0,top:0,right:0,bottom:0};return N.forEach((H)=>{K[H]=Math.max(G[H],X[H])}),K}return Q?q(["left","right"]):q(["top","bottom"])}function BQ(Q,G,X,q){let N=[],K,H,M,F,w,z;for(K=0,H=Q.length,w=0;K<H;++K){M=Q[K],F=M.box,F.update(M.width||G.w,M.height||G.h,VE(M.horizontal,G));let{same:T,other:P}=_E(G,X,M,q);if(w|=T&&N.length,z=z||P,!F.fullSize)N.push(M)}return w&&BQ(N,G,X,q)||z}function v3(Q,G,X,q,N){Q.top=X,Q.left=G,Q.right=G+q,Q.bottom=X+N,Q.width=q,Q.height=N}function Cz(Q,G,X,q){let N=X.padding,{x:K,y:H}=G;for(let M of Q){let F=M.box,w=q[M.stack]||{count:1,placed:0,weight:1},z=M.stackWeight/w.weight||1;if(M.horizontal){let T=G.w*z,P=w.size||F.height;if(J$(w.start))H=w.start;if(F.fullSize)v3(F,N.left,H,X.outerWidth-N.right-N.left,P);else v3(F,G.left+w.placed,H,T,P);w.start=H,w.placed+=T,H=F.bottom}else{let T=G.h*z,P=w.size||F.width;if(J$(w.start))K=w.start;if(F.fullSize)v3(F,K,N.top,P,X.outerHeight-N.bottom-N.top);else v3(F,K,G.top+w.placed,P,T);w.start=K,w.placed+=T,K=F.right}}G.x=K,G.y=H}var g6={addBox(Q,G){if(!Q.boxes)Q.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(X){G.draw(X)}}]},Q.boxes.push(G)},removeBox(Q,G){let X=Q.boxes?Q.boxes.indexOf(G):-1;if(X!==-1)Q.boxes.splice(X,1)},configure(Q,G,X){G.fullSize=X.fullSize,G.position=X.position,G.weight=X.weight},update(Q,G,X,q){if(!Q)return;let N=w5(Q.options.layout.padding),K=Math.max(G-N.width,0),H=Math.max(X-N.height,0),M=PE(Q.boxes),F=M.vertical,w=M.horizontal;U1(Q.boxes,(O)=>{if(typeof O.beforeLayout==="function")O.beforeLayout()});let z=F.reduce((O,I)=>I.box.options&&I.box.options.display===!1?O:O+1,0)||1,T=Object.freeze({outerWidth:G,outerHeight:X,padding:N,availableWidth:K,availableHeight:H,vBoxMaxWidth:K/2/z,hBoxMaxHeight:H/2}),P=Object.assign({},N);HT(P,w5(q));let V=Object.assign({maxPadding:P,w:K,h:H,x:N.left,y:N.top},N),A=LE(F.concat(w),T);if(BQ(M.fullSize,V,T,A),BQ(F,V,T,A),BQ(w,V,T,A))BQ(F,V,T,A);CE(V),Cz(M.leftAndTop,V,T,A),V.x+=V.w,V.y+=V.h,Cz(M.rightAndBottom,V,T,A),Q.chartArea={left:V.left,top:V.top,right:V.left+V.w,bottom:V.top+V.h,height:V.h,width:V.w},U1(M.chartArea,(O)=>{let I=O.box;Object.assign(I,Q.chartArea),I.update(V.w,V.h,{left:0,top:0,right:0,bottom:0})})}};class ZK{acquireContext(Q,G){}releaseContext(Q){return!1}addEventListener(Q,G,X){}removeEventListener(Q,G,X){}getDevicePixelRatio(){return 1}getMaximumSize(Q,G,X,q){return G=Math.max(0,G||Q.width),X=X||Q.height,{width:G,height:Math.max(0,q?Math.floor(G/q):X)}}isAttached(Q){return!0}updateConfig(Q){}}class MT extends ZK{acquireContext(Q){return Q&&Q.getContext&&Q.getContext("2d")||null}updateConfig(Q){Q.options.animation=!1}}var g3="$chartjs",IE={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Vz=(Q)=>Q===null||Q==="";function OE(Q,G){let X=Q.style,q=Q.getAttribute("height"),N=Q.getAttribute("width");if(Q[g3]={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",Vz(N)){let K=OU(Q,"width");if(K!==void 0)Q.width=K}if(Vz(q))if(Q.style.height==="")Q.height=Q.width/(G||2);else{let K=OU(Q,"height");if(K!==void 0)Q.height=K}return Q}var FT=qz?{passive:!0}:!1;function EE(Q,G,X){if(Q)Q.addEventListener(G,X,FT)}function AE(Q,G,X){if(Q&&Q.canvas)Q.canvas.removeEventListener(G,X,FT)}function jE(Q,G){let X=IE[Q.type]||Q.type,{x:q,y:N}=j2(Q,G);return{type:X,chart:G,native:Q,x:q!==void 0?q:null,y:N!==void 0?N:null}}function u3(Q,G){for(let X of Q)if(X===G||X.contains(G))return!0}function SE(Q,G,X){let q=Q.canvas,N=new MutationObserver((K)=>{let H=!1;for(let M of K)H=H||u3(M.addedNodes,q),H=H&&!u3(M.removedNodes,q);if(H)X()});return N.observe(document,{childList:!0,subtree:!0}),N}function DE(Q,G,X){let q=Q.canvas,N=new MutationObserver((K)=>{let H=!1;for(let M of K)H=H||u3(M.removedNodes,q),H=H&&!u3(M.addedNodes,q);if(H)X()});return N.observe(document,{childList:!0,subtree:!0}),N}var FQ=new Map,Iz=0;function WT(){let Q=window.devicePixelRatio;if(Q===Iz)return;Iz=Q,FQ.forEach((G,X)=>{if(X.currentDevicePixelRatio!==Q)G()})}function vE(Q,G){if(!FQ.size)window.addEventListener("resize",WT);FQ.set(Q,G)}function bE(Q){if(FQ.delete(Q),!FQ.size)window.removeEventListener("resize",WT)}function kE(Q,G,X){let q=Q.canvas,N=q&&S3(q);if(!N)return;let K=WU((M,F)=>{let w=N.clientWidth;if(X(M,F),w<N.clientWidth)X()},window),H=new ResizeObserver((M)=>{let F=M[0],w=F.contentRect.width,z=F.contentRect.height;if(w===0&&z===0)return;K(w,z)});return H.observe(N),vE(Q,K),H}function hU(Q,G,X){if(X)X.disconnect();if(G==="resize")bE(Q)}function fE(Q,G,X){let q=Q.canvas,N=WU((K)=>{if(Q.ctx!==null)X(jE(K,Q))},Q);return EE(q,G,N),N}class wT extends ZK{acquireContext(Q,G){let X=Q&&Q.getContext&&Q.getContext("2d");if(X&&X.canvas===Q)return OE(Q,G),X;return null}releaseContext(Q){let G=Q.canvas;if(!G[g3])return!1;let X=G[g3].initial;["height","width"].forEach((N)=>{let K=X[N];if(t0(K))G.removeAttribute(N);else G.setAttribute(N,K)});let q=X.style||{};return Object.keys(q).forEach((N)=>{G.style[N]=q[N]}),G.width=G.width,delete G[g3],!0}addEventListener(Q,G,X){this.removeEventListener(Q,G);let q=Q.$proxies||(Q.$proxies={}),K={attach:SE,detach:DE,resize:kE}[G]||fE;q[G]=K(Q,G,X)}removeEventListener(Q,G){let X=Q.$proxies||(Q.$proxies={}),q=X[G];if(!q)return;({attach:hU,detach:hU,resize:hU}[G]||AE)(Q,G,q),X[G]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(Q,G,X,q){return Xz(Q,G,X,q)}isAttached(Q){let G=Q&&S3(Q);return!!(G&&G.isConnected)}}function yE(Q){if(!j3()||typeof OffscreenCanvas<"u"&&Q instanceof OffscreenCanvas)return MT;return wT}class _8{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(Q){let{x:G,y:X}=this.getProps(["x","y"],Q);return{x:G,y:X}}hasValue(){return X$(this.x)&&X$(this.y)}getProps(Q,G){let X=this.$animations;if(!G||!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,G){let X=Q.options.ticks,q=hE(Q),N=Math.min(X.maxTicksLimit||q,q),K=X.major.enabled?xE(G):[],H=K.length,M=K[0],F=K[H-1],w=[];if(H>N)return mE(G,w,K,H/N),w;let z=uE(K,G,N);if(H>0){let T,P,V=H>1?Math.round((F-M)/(H-1)):null;b3(G,w,z,t0(V)?0:M-V,M);for(T=0,P=H-1;T<P;T++)b3(G,w,z,K[T],K[T+1]);return b3(G,w,z,F,t0(V)?G.length:F+V),w}return b3(G,w,z),w}function hE(Q){let G=Q.options.offset,X=Q._tickSize(),q=Q._length/X+(G?0:1),N=Q._maxLength/X;return Math.floor(Math.min(q,N))}function uE(Q,G,X){let q=dE(Q),N=G.length/X;if(!q)return Math.max(N,1);let K=yR(q);for(let H=0,M=K.length-1;H<M;H++){let F=K[H];if(F>N)return F}return Math.max(N,1)}function xE(Q){let G=[],X,q;for(X=0,q=Q.length;X<q;X++)if(Q[X].major)G.push(X);return G}function mE(Q,G,X,q){let N=0,K=X[0],H;q=Math.ceil(q);for(H=0;H<Q.length;H++)if(H===K)G.push(Q[H]),N++,K=X[N*q]}function b3(Q,G,X,q,N){let K=p0(q,0),H=Math.min(p0(N,Q.length),Q.length),M=0,F,w,z;if(X=Math.ceil(X),N)F=N-q,X=F/Math.floor(F/X);z=K;while(z<0)M++,z=Math.round(K+M*X);for(w=Math.max(K,0);w<H;w++)if(w===z)G.push(Q[w]),M++,z=Math.round(K+M*X)}function dE(Q){let G=Q.length,X,q;if(G<2)return!1;for(q=Q[0],X=1;X<G;++X)if(Q[X]-Q[X-1]!==q)return!1;return q}var pE=(Q)=>Q==="left"?"right":Q==="right"?"left":Q,Oz=(Q,G,X)=>G==="top"||G==="left"?Q[G]+X:Q[G]-X,Ez=(Q,G)=>Math.min(G||Q,Q);function Az(Q,G){let X=[],q=Q.length/G,N=Q.length,K=0;for(;K<N;K+=q)X.push(Q[Math.floor(K)]);return X}function cE(Q,G,X){let q=Q.ticks.length,N=Math.min(G,q-1),K=Q._startPixel,H=Q._endPixel,M=0.000001,F=Q.getPixelForTick(N),w;if(X){if(q===1)w=Math.max(F-K,H-F);else if(G===0)w=(Q.getPixelForTick(1)-F)/2;else w=(F-Q.getPixelForTick(N-1))/2;if(F+=N<G?w:-w,F<K-0.000001||F>H+0.000001)return}return F}function lE(Q,G){U1(Q,(X)=>{let q=X.gc,N=q.length/2,K;if(N>G){for(K=0;K<N;++K)delete X.data[q[K]];q.splice(0,N)}})}function UQ(Q){return Q.drawTicks?Q.tickLength:0}function jz(Q,G){if(!Q.display)return 0;let X=o1(Q.font,G),q=w5(Q.padding);return(_1(Q.text)?Q.text.length:1)*X.lineHeight+q.height}function rE(Q,G){return T8(Q,{scale:G,type:"scale"})}function sE(Q,G,X){return T8(Q,{tick:X,index:G,type:"tick"})}function nE(Q,G,X){let q=V3(Q);if(X&&G!=="right"||!X&&G==="right")q=pE(q);return q}function oE(Q,G,X,q){let{top:N,left:K,bottom:H,right:M,chart:F}=Q,{chartArea:w,scales:z}=F,T=0,P,V,A,O=H-N,I=M-K;if(Q.isHorizontal()){if(V=W5(q,K,M),o0(X)){let D=Object.keys(X)[0],h=X[D];A=z[D].getPixelForValue(h)+O-G}else if(X==="center")A=(w.bottom+w.top)/2+O-G;else A=Oz(Q,X,G);P=M-K}else{if(o0(X)){let D=Object.keys(X)[0],h=X[D];V=z[D].getPixelForValue(h)-I+G}else if(X==="center")V=(w.left+w.right)/2-I+G;else V=Oz(Q,X,G);A=W5(q,H,N),T=X==="left"?-c5:c5}return{titleX:V,titleY:A,maxWidth:P,rotation:T}}class k9 extends _8{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,G){return Q}getUserBounds(){let{_userMin:Q,_userMax:G,_suggestedMin:X,_suggestedMax:q}=this;return Q=s5(Q,Number.POSITIVE_INFINITY),G=s5(G,Number.NEGATIVE_INFINITY),X=s5(X,Number.POSITIVE_INFINITY),q=s5(q,Number.NEGATIVE_INFINITY),{min:s5(Q,X),max:s5(G,q),minDefined:v1(Q),maxDefined:v1(G)}}getMinMax(Q){let{min:G,max:X,minDefined:q,maxDefined:N}=this.getUserBounds(),K;if(q&&N)return{min:G,max:X};let H=this.getMatchingVisibleMetas();for(let M=0,F=H.length;M<F;++M){if(K=H[M].controller.getMinMax(this,Q),!q)G=Math.min(G,K.min);if(!N)X=Math.max(X,K.max)}return G=N&&G>X?X:G,X=q&&G>X?G:X,{min:s5(G,s5(X,G)),max:s5(X,s5(G,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(){z1(this.options.beforeUpdate,[this])}update(Q,G,X){let{beginAtZero:q,grace:N,ticks:K}=this.options,H=K.sampleSize;if(this.beforeUpdate(),this.maxWidth=Q,this.maxHeight=G,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=eR(this,N,q),this._dataLimitsCached=!0;this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();let M=H<this.ticks.length;if(this._convertTicksToLabels(M?Az(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(M)this._convertTicksToLabels(this.ticks);this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let Q=this.options.reverse,G,X;if(this.isHorizontal())G=this.left,X=this.right;else G=this.top,X=this.bottom,Q=!Q;this._startPixel=G,this._endPixel=X,this._reversePixels=Q,this._length=X-G,this._alignToPixels=this.options.alignToPixels}afterUpdate(){z1(this.options.afterUpdate,[this])}beforeSetDimensions(){z1(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(){z1(this.options.afterSetDimensions,[this])}_callHooks(Q){this.chart.notifyPlugins(Q,this.getContext()),z1(this.options[Q],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){z1(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(Q){let G=this.options.ticks,X,q,N;for(X=0,q=Q.length;X<q;X++)N=Q[X],N.label=z1(G.callback,[N.value,X,Q],this)}afterTickToLabelConversion(){z1(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){z1(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){let Q=this.options,G=Q.ticks,X=Ez(this.ticks.length,Q.ticks.maxTicksLimit),q=G.minRotation||0,N=G.maxRotation,K=q,H,M,F;if(!this._isVisible()||!G.display||q>=N||X<=1||!this.isHorizontal()){this.labelRotation=q;return}let w=this._getLabelSizes(),z=w.widest.width,T=w.highest.height,P=r5(this.chart.width-z,0,this.maxWidth);if(H=Q.offset?this.maxWidth/X:P/(X-1),z+6>H)H=P/(X-(Q.offset?0.5:1)),M=this.maxHeight-UQ(Q.grid)-G.padding-jz(Q.title,this.chart.options.font),F=Math.sqrt(z*z+T*T),K=_3(Math.min(Math.asin(r5((w.highest.height+6)/H,-1,1)),Math.asin(r5(M/F,-1,1))-Math.asin(r5(T/F,-1,1)))),K=Math.max(q,Math.min(N,K));this.labelRotation=K}afterCalculateLabelRotation(){z1(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){z1(this.options.beforeFit,[this])}fit(){let Q={width:0,height:0},{chart:G,options:{ticks:X,title:q,grid:N}}=this,K=this._isVisible(),H=this.isHorizontal();if(K){let M=jz(q,G.options.font);if(H)Q.width=this.maxWidth,Q.height=UQ(N)+M;else Q.height=this.maxHeight,Q.width=UQ(N)+M;if(X.display&&this.ticks.length){let{first:F,last:w,widest:z,highest:T}=this._getLabelSizes(),P=X.padding*2,V=R8(this.labelRotation),A=Math.cos(V),O=Math.sin(V);if(H){let I=X.mirror?0:O*z.width+A*T.height;Q.height=Math.min(this.maxHeight,Q.height+I+P)}else{let I=X.mirror?0:A*z.width+O*T.height;Q.width=Math.min(this.maxWidth,Q.width+I+P)}this._calculatePadding(F,w,O,A)}}if(this._handleMargins(),H)this.width=this._length=G.width-this._margins.left-this._margins.right,this.height=Q.height;else this.width=Q.width,this.height=this._length=G.height-this._margins.top-this._margins.bottom}_calculatePadding(Q,G,X,q){let{ticks:{align:N,padding:K},position:H}=this.options,M=this.labelRotation!==0,F=H!=="top"&&this.axis==="x";if(this.isHorizontal()){let w=this.getPixelForTick(0)-this.left,z=this.right-this.getPixelForTick(this.ticks.length-1),T=0,P=0;if(M)if(F)T=q*Q.width,P=X*G.height;else T=X*Q.height,P=q*G.width;else if(N==="start")P=G.width;else if(N==="end")T=Q.width;else if(N!=="inner")T=Q.width/2,P=G.width/2;this.paddingLeft=Math.max((T-w+K)*this.width/(this.width-w),0),this.paddingRight=Math.max((P-z+K)*this.width/(this.width-z),0)}else{let w=G.height/2,z=Q.height/2;if(N==="start")w=0,z=Q.height;else if(N==="end")w=G.height,z=0;this.paddingTop=w+K,this.paddingBottom=z+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(){z1(this.options.afterFit,[this])}isHorizontal(){let{axis:Q,position:G}=this.options;return G==="top"||G==="bottom"||Q==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(Q){this.beforeTickToLabelConversion(),this.generateTickLabels(Q);let G,X;for(G=0,X=Q.length;G<X;G++)if(t0(Q[G].label))Q.splice(G,1),X--,G--;this.afterTickToLabelConversion()}_getLabelSizes(){let Q=this._labelSizes;if(!Q){let G=this.options.ticks.sampleSize,X=this.ticks;if(G<X.length)X=Az(X,G);this._labelSizes=Q=this._computeLabelSizes(X,X.length,this.options.ticks.maxTicksLimit)}return Q}_computeLabelSizes(Q,G,X){let{ctx:q,_longestTextCache:N}=this,K=[],H=[],M=Math.floor(G/Ez(G,X)),F=0,w=0,z,T,P,V,A,O,I,D,h,p,s;for(z=0;z<G;z+=M){if(V=Q[z].label,A=this._resolveTickFontOptions(z),q.font=O=A.string,I=N[O]=N[O]||{data:{},gc:[]},D=A.lineHeight,h=p=0,!t0(V)&&!_1(V))h=$Q(q,I.data,I.gc,h,V),p=D;else if(_1(V)){for(T=0,P=V.length;T<P;++T)if(s=V[T],!t0(s)&&!_1(s))h=$Q(q,I.data,I.gc,h,s),p+=D}K.push(h),H.push(p),F=Math.max(h,F),w=Math.max(p,w)}lE(N,G);let o=K.indexOf(F),Q0=H.indexOf(w),i=(a)=>({width:K[a]||0,height:H[a]||0});return{first:i(0),last:i(G-1),widest:i(o),highest:i(Q0),widths:K,heights:H}}getLabelForValue(Q){return Q}getPixelForValue(Q,G){return NaN}getValueForPixel(Q){}getPixelForTick(Q){let G=this.ticks;if(Q<0||Q>G.length-1)return null;return this.getPixelForValue(G[Q].value)}getPixelForDecimal(Q){if(this._reversePixels)Q=1-Q;let G=this._startPixel+Q*this._length;return uR(this._alignToPixels?O2(this.chart,G,0):G)}getDecimalForPixel(Q){let G=(Q-this._startPixel)/this._length;return this._reversePixels?1-G:G}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){let{min:Q,max:G}=this;return Q<0&&G<0?G:Q>0&&G>0?Q:0}getContext(Q){let G=this.ticks||[];if(Q>=0&&Q<G.length){let X=G[Q];return X.$context||(X.$context=sE(this.getContext(),Q,X))}return this.$context||(this.$context=rE(this.chart.getContext(),this))}_tickSize(){let Q=this.options.ticks,G=R8(this.labelRotation),X=Math.abs(Math.cos(G)),q=Math.abs(Math.sin(G)),N=this._getLabelSizes(),K=Q.autoSkipPadding||0,H=N?N.widest.width+K:0,M=N?N.highest.height+K:0;return this.isHorizontal()?M*X>H*q?H/X:M/q:M*q<H*X?M/X:H/q}_isVisible(){let Q=this.options.display;if(Q!=="auto")return!!Q;return this.getMatchingVisibleMetas().length>0}_computeGridLineItems(Q){let G=this.axis,X=this.chart,q=this.options,{grid:N,position:K,border:H}=q,M=N.offset,F=this.isHorizontal(),z=this.ticks.length+(M?1:0),T=UQ(N),P=[],V=H.setContext(this.getContext()),A=V.display?V.width:0,O=A/2,I=function(l){return O2(X,l,A)},D,h,p,s,o,Q0,i,a,q0,d,K0,L0;if(K==="top")D=I(this.bottom),Q0=this.bottom-T,a=D-O,d=I(Q.top)+O,L0=Q.bottom;else if(K==="bottom")D=I(this.top),d=Q.top,L0=I(Q.bottom)-O,Q0=D+O,a=this.top+T;else if(K==="left")D=I(this.right),o=this.right-T,i=D-O,q0=I(Q.left)+O,K0=Q.right;else if(K==="right")D=I(this.left),q0=Q.left,K0=I(Q.right)-O,o=D+O,i=this.left+T;else if(G==="x"){if(K==="center")D=I((Q.top+Q.bottom)/2+0.5);else if(o0(K)){let l=Object.keys(K)[0],X0=K[l];D=I(this.chart.scales[l].getPixelForValue(X0))}d=Q.top,L0=Q.bottom,Q0=D+O,a=Q0+T}else if(G==="y"){if(K==="center")D=I((Q.left+Q.right)/2);else if(o0(K)){let l=Object.keys(K)[0],X0=K[l];D=I(this.chart.scales[l].getPixelForValue(X0))}o=D-O,i=o-T,q0=Q.left,K0=Q.right}let _0=p0(q.ticks.maxTicksLimit,z),S0=Math.max(1,Math.ceil(z/_0));for(h=0;h<z;h+=S0){let l=this.getContext(h),X0=N.setContext(l),B0=H.setContext(l),l0=X0.lineWidth,h0=X0.color,v=B0.dash||[],n=B0.dashOffset,H0=X0.tickWidth,M0=X0.tickColor,u0=X0.tickBorderDash||[],k1=X0.tickBorderDashOffset;if(p=cE(this,h,M),p===void 0)continue;if(s=O2(X,p,l0),F)o=i=q0=K0=s;else Q0=a=d=L0=s;P.push({tx1:o,ty1:Q0,tx2:i,ty2:a,x1:q0,y1:d,x2:K0,y2:L0,width:l0,color:h0,borderDash:v,borderDashOffset:n,tickWidth:H0,tickColor:M0,tickBorderDash:u0,tickBorderDashOffset:k1})}return this._ticksLength=z,this._borderValue=D,P}_computeLabelItems(Q){let G=this.axis,X=this.options,{position:q,ticks:N}=X,K=this.isHorizontal(),H=this.ticks,{align:M,crossAlign:F,padding:w,mirror:z}=N,T=UQ(X.grid),P=T+w,V=z?-w:P,A=-R8(this.labelRotation),O=[],I,D,h,p,s,o,Q0,i,a,q0,d,K0,L0="middle";if(q==="top")o=this.bottom-V,Q0=this._getXAxisLabelAlignment();else if(q==="bottom")o=this.top+V,Q0=this._getXAxisLabelAlignment();else if(q==="left"){let S0=this._getYAxisLabelAlignment(T);Q0=S0.textAlign,s=S0.x}else if(q==="right"){let S0=this._getYAxisLabelAlignment(T);Q0=S0.textAlign,s=S0.x}else if(G==="x"){if(q==="center")o=(Q.top+Q.bottom)/2+P;else if(o0(q)){let S0=Object.keys(q)[0],l=q[S0];o=this.chart.scales[S0].getPixelForValue(l)+P}Q0=this._getXAxisLabelAlignment()}else if(G==="y"){if(q==="center")s=(Q.left+Q.right)/2-P;else if(o0(q)){let S0=Object.keys(q)[0],l=q[S0];s=this.chart.scales[S0].getPixelForValue(l)}Q0=this._getYAxisLabelAlignment(T).textAlign}if(G==="y"){if(M==="start")L0="top";else if(M==="end")L0="bottom"}let _0=this._getLabelSizes();for(I=0,D=H.length;I<D;++I){h=H[I],p=h.label;let S0=N.setContext(this.getContext(I));i=this.getPixelForTick(I)+N.labelOffset,a=this._resolveTickFontOptions(I),q0=a.lineHeight,d=_1(p)?p.length:1;let l=d/2,X0=S0.color,B0=S0.textStrokeColor,l0=S0.textStrokeWidth,h0=Q0;if(K){if(s=i,Q0==="inner")if(I===D-1)h0=!this.options.reverse?"right":"left";else if(I===0)h0=!this.options.reverse?"left":"right";else h0="center";if(q==="top")if(F==="near"||A!==0)K0=-d*q0+q0/2;else if(F==="center")K0=-_0.highest.height/2-l*q0+q0;else K0=-_0.highest.height+q0/2;else if(F==="near"||A!==0)K0=q0/2;else if(F==="center")K0=_0.highest.height/2-l*q0;else K0=_0.highest.height-d*q0;if(z)K0*=-1;if(A!==0&&!S0.showLabelBackdrop)s+=q0/2*Math.sin(A)}else o=i,K0=(1-d)*q0/2;let v;if(S0.showLabelBackdrop){let n=w5(S0.backdropPadding),H0=_0.heights[I],M0=_0.widths[I],u0=K0-n.top,k1=0-n.left;switch(L0){case"middle":u0-=H0/2;break;case"bottom":u0-=H0;break}switch(Q0){case"center":k1-=M0/2;break;case"right":k1-=M0;break;case"inner":if(I===D-1)k1-=M0;else if(I>0)k1-=M0/2;break}v={left:k1,top:u0,width:M0+n.width,height:H0+n.height,color:S0.backdropColor}}O.push({label:p,font:a,textOffset:K0,options:{rotation:A,color:X0,strokeColor:B0,strokeWidth:l0,textAlign:h0,textBaseline:L0,translation:[s,o],backdrop:v}})}return O}_getXAxisLabelAlignment(){let{position:Q,ticks:G}=this.options;if(-R8(this.labelRotation))return Q==="top"?"left":"right";let q="center";if(G.align==="start")q="left";else if(G.align==="end")q="right";else if(G.align==="inner")q="inner";return q}_getYAxisLabelAlignment(Q){let{position:G,ticks:{crossAlign:X,mirror:q,padding:N}}=this.options,K=this._getLabelSizes(),H=Q+N,M=K.widest.width,F,w;if(G==="left")if(q)if(w=this.right+N,X==="near")F="left";else if(X==="center")F="center",w+=M/2;else F="right",w+=M;else if(w=this.right-H,X==="near")F="right";else if(X==="center")F="center",w-=M/2;else F="left",w=this.left;else if(G==="right")if(q)if(w=this.left+N,X==="near")F="right";else if(X==="center")F="center",w-=M/2;else F="left",w-=M;else if(w=this.left+H,X==="near")F="left";else if(X==="center")F="center",w+=M/2;else F="right",w=this.right;else F="right";return{textAlign:F,x:w}}_computeLabelArea(){if(this.options.ticks.mirror)return;let Q=this.chart,G=this.options.position;if(G==="left"||G==="right")return{top:0,left:this.left,bottom:Q.height,right:this.right};if(G==="top"||G==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:Q.width}}drawBackground(){let{ctx:Q,options:{backgroundColor:G},left:X,top:q,width:N,height:K}=this;if(G)Q.save(),Q.fillStyle=G,Q.fillRect(X,q,N,K),Q.restore()}getLineWidthForValue(Q){let G=this.options.grid;if(!this._isVisible()||!G.display)return 0;let q=this.ticks.findIndex((N)=>N.value===Q);if(q>=0)return G.setContext(this.getContext(q)).lineWidth;return 0}drawGrid(Q){let G=this.options.grid,X=this.ctx,q=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(Q)),N,K,H=(M,F,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(M.x,M.y),X.lineTo(F.x,F.y),X.stroke(),X.restore()};if(G.display)for(N=0,K=q.length;N<K;++N){let M=q[N];if(G.drawOnChartArea)H({x:M.x1,y:M.y1},{x:M.x2,y:M.y2},M);if(G.drawTicks)H({x:M.tx1,y:M.ty1},{x:M.tx2,y:M.ty2},{color:M.tickColor,width:M.tickWidth,borderDash:M.tickBorderDash,borderDashOffset:M.tickBorderDashOffset})}}drawBorder(){let{chart:Q,ctx:G,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,M=this._borderValue,F,w,z,T;if(this.isHorizontal())F=O2(Q,this.left,K)-K/2,w=O2(Q,this.right,H)+H/2,z=T=M;else z=O2(Q,this.top,K)-K/2,T=O2(Q,this.bottom,H)+H/2,F=w=M;G.save(),G.lineWidth=N.width,G.strokeStyle=N.color,G.beginPath(),G.moveTo(F,z),G.lineTo(w,T),G.stroke(),G.restore()}drawLabels(Q){if(!this.options.ticks.display)return;let X=this.ctx,q=this._computeLabelArea();if(q)JQ(X,q);let N=this.getLabelItems(Q);for(let K of N){let{options:H,font:M,label:F,textOffset:w}=K;E2(X,F,0,w,M,H)}if(q)GQ(X)}drawTitle(){let{ctx:Q,options:{position:G,title:X,reverse:q}}=this;if(!X.display)return;let N=o1(X.font),K=w5(X.padding),H=X.align,M=N.lineHeight/2;if(G==="bottom"||G==="center"||o0(G)){if(M+=K.bottom,_1(X.text))M+=N.lineHeight*(X.text.length-1)}else M+=K.top;let{titleX:F,titleY:w,maxWidth:z,rotation:T}=oE(this,M,G,H);E2(Q,X.text,0,0,N,{color:X.color,maxWidth:z,rotation:T,textAlign:nE(H,G,q),textBaseline:"middle",translation:[F,w]})}draw(Q){if(!this._isVisible())return;this.drawBackground(),this.drawGrid(Q),this.drawBorder(),this.drawTitle(),this.drawLabels(Q)}_layers(){let Q=this.options,G=Q.ticks&&Q.ticks.z||0,X=p0(Q.grid&&Q.grid.z,-1),q=p0(Q.border&&Q.border.z,0);if(!this._isVisible()||this.draw!==k9.prototype.draw)return[{z:G,draw:(N)=>{this.draw(N)}}];return[{z:X,draw:(N)=>{this.drawBackground(),this.drawGrid(N),this.drawTitle()}},{z:q,draw:()=>{this.drawBorder()}},{z:G,draw:(N)=>{this.drawLabels(N)}}]}getMatchingVisibleMetas(Q){let G=this.chart.getSortedVisibleDatasetMetas(),X=this.axis+"AxisID",q=[],N,K;for(N=0,K=G.length;N<K;++N){let H=G[N];if(H[X]===this.id&&(!Q||H.type===Q))q.push(H)}return q}_resolveTickFontOptions(Q){let G=this.options.ticks.setContext(this.getContext(Q));return o1(G.font)}_maxDigits(){let Q=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/Q}}class HQ{constructor(Q,G,X){this.type=Q,this.scope=G,this.override=X,this.items=Object.create(null)}isForType(Q){return Object.prototype.isPrototypeOf.call(this.type.prototype,Q.prototype)}register(Q){let G=Object.getPrototypeOf(Q),X;if(tE(G))X=this.register(G);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,aE(Q,K,X),this.override)b1.override(Q.id,Q.overrides);return K}get(Q){return this.items[Q]}unregister(Q){let G=this.items,X=Q.id,q=this.scope;if(X in G)delete G[X];if(q&&X in b1[q]){if(delete b1[q][X],this.override)delete I2[X]}}}function aE(Q,G,X){let q=$$(Object.create(null),[X?b1.get(X):{},b1.get(G),Q.defaults]);if(b1.set(G,q),Q.defaultRoutes)iE(G,Q.defaultRoutes);if(Q.descriptors)b1.describe(G,Q.descriptors)}function iE(Q,G){Object.keys(G).forEach((X)=>{let q=X.split("."),N=q.pop(),K=[Q].concat(q).join("."),H=G[X].split("."),M=H.pop(),F=H.join(".");b1.route(K,N,F,M)})}function tE(Q){return"id"in Q&&"defaults"in Q}class RT{constructor(){this.controllers=new HQ(x3,"datasets",!0),this.elements=new HQ(_8,"elements"),this.plugins=new HQ(Object,"plugins"),this.scales=new HQ(k9,"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,G,X){[...G].forEach((q)=>{let N=X||this._getRegistryForType(q);if(X||N.isForType(q)||N===this.plugins&&q.id)this._exec(Q,N,q);else U1(q,(K)=>{let H=X||this._getRegistryForType(K);this._exec(Q,H,K)})})}_exec(Q,G,X){let q=P3(Q);z1(X["before"+q],[],X),G[Q](X),z1(X["after"+q],[],X)}_getRegistryForType(Q){for(let G=0;G<this._typedRegistries.length;G++){let X=this._typedRegistries[G];if(X.isForType(Q))return X}return this.plugins}_get(Q,G,X){let q=G.get(Q);if(q===void 0)throw Error('"'+Q+'" is not a registered '+X+".");return q}}var y4=new RT;class zT{constructor(){this._init=void 0}notify(Q,G,X,q){if(G==="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,G,X);if(G==="afterDestroy")this._notify(N,Q,"stop"),this._notify(this._init,Q,"uninstall"),this._init=void 0;return K}_notify(Q,G,X,q){q=q||{};for(let N of Q){let K=N.plugin,H=K[X],M=[G,q,N.options];if(z1(H,M,K)===!1&&q.cancelable)return!1}return!0}invalidate(){if(!t0(this._cache))this._oldCache=this._cache,this._cache=void 0}_descriptors(Q){if(this._cache)return this._cache;let G=this._cache=this._createDescriptors(Q);return this._notifyStateChanges(Q),G}_createDescriptors(Q,G){let X=Q&&Q.config,q=p0(X.options&&X.options.plugins,{}),N=eE(X);return q===!1&&!G?[]:ZA(Q,N,q,G)}_notifyStateChanges(Q){let G=this._oldCache||[],X=this._cache,q=(N,K)=>N.filter((H)=>!K.some((M)=>H.plugin.id===M.plugin.id));this._notify(q(G,X),Q,"stop"),this._notify(q(X,G),Q,"start")}}function eE(Q){let G={},X=[],q=Object.keys(y4.plugins.items);for(let K=0;K<q.length;K++)X.push(y4.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),G[H.id]=!0}return{plugins:X,localIds:G}}function $A(Q,G){if(!G&&Q===!1)return null;if(Q===!0)return{};return Q}function ZA(Q,{plugins:G,localIds:X},q,N){let K=[],H=Q.getContext();for(let M of G){let F=M.id,w=$A(q[F],N);if(w===null)continue;K.push({plugin:M,options:QA(Q.config,{plugin:M,local:X[F]},w,H)})}return K}function QA(Q,{plugin:G,local:X},q,N){let K=Q.pluginScopeKeys(G),H=Q.getOptionScopes(q,K);if(X&&G.defaults)H.push(G.defaults);return Q.createResolver(H,N,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function pU(Q,G){let X=b1.datasets[Q]||{};return((G.datasets||{})[Q]||{}).indexAxis||G.indexAxis||X.indexAxis||"x"}function JA(Q,G){let X=Q;if(Q==="_index_")X=G;else if(Q==="_value_")X=G==="x"?"y":"x";return X}function GA(Q,G){return Q===G?"_index_":"_value_"}function Sz(Q){if(Q==="x"||Q==="y"||Q==="r")return Q}function XA(Q){if(Q==="top"||Q==="bottom")return"x";if(Q==="left"||Q==="right")return"y"}function cU(Q,...G){if(Sz(Q))return Q;for(let X of G){let q=X.axis||XA(X.position)||Q.length>1&&Sz(Q[0].toLowerCase());if(q)return q}throw Error(`Cannot determine type of '${Q}' axis. Please provide 'axis' or 'position' option.`)}function Dz(Q,G,X){if(X[G+"AxisID"]===Q)return{axis:G}}function qA(Q,G){if(G.data&&G.data.datasets){let X=G.data.datasets.filter((q)=>q.xAxisID===Q||q.yAxisID===Q);if(X.length)return Dz(Q,"x",X[0])||Dz(Q,"y",X[0])}return{}}function YA(Q,G){let X=I2[Q.type]||{scales:{}},q=G.scales||{},N=pU(Q.type,G),K=Object.create(null);return Object.keys(q).forEach((H)=>{let M=q[H];if(!o0(M))return console.error(`Invalid scale configuration for scale: ${H}`);if(M._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${H}`);let F=cU(H,M,qA(H,Q),b1.scales[M.type]),w=GA(F,N),z=X.scales||{};K[H]=Q$(Object.create(null),[{axis:F},M,z[F],z[w]])}),Q.data.datasets.forEach((H)=>{let M=H.type||Q.type,F=H.indexAxis||pU(M,G),z=(I2[M]||{}).scales||{};Object.keys(z).forEach((T)=>{let P=JA(T,F),V=H[P+"AxisID"]||P;K[V]=K[V]||Object.create(null),Q$(K[V],[{axis:P},q[V],z[T]])})}),Object.keys(K).forEach((H)=>{let M=K[H];Q$(M,[b1.scales[M.type],b1.scale])}),K}function TT(Q){let G=Q.options||(Q.options={});G.plugins=p0(G.plugins,{}),G.scales=YA(Q,G)}function LT(Q){return Q=Q||{},Q.datasets=Q.datasets||[],Q.labels=Q.labels||[],Q}function NA(Q){return Q=Q||{},Q.data=LT(Q.data),TT(Q),Q}var vz=new Map,PT=new Set;function k3(Q,G){let X=vz.get(Q);if(!X)X=G(),vz.set(Q,X),PT.add(X);return X}var KQ=(Q,G,X)=>{let q=S9(G,X);if(q!==void 0)Q.add(q)};class _T{constructor(Q){this._config=NA(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=LT(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(),TT(Q)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(Q){return k3(Q,()=>[[`datasets.${Q}`,""]])}datasetAnimationScopeKeys(Q,G){return k3(`${Q}.transition.${G}`,()=>[[`datasets.${Q}.transitions.${G}`,`transitions.${G}`],[`datasets.${Q}`,""]])}datasetElementScopeKeys(Q,G){return k3(`${Q}-${G}`,()=>[[`datasets.${Q}.elements.${G}`,`datasets.${Q}`,`elements.${G}`,""]])}pluginScopeKeys(Q){let G=Q.id,X=this.type;return k3(`${X}-plugin-${G}`,()=>[[`plugins.${G}`,...Q.additionalOptionScopes||[]]])}_cachedScopes(Q,G){let X=this._scopeCache,q=X.get(Q);if(!q||G)q=new Map,X.set(Q,q);return q}getOptionScopes(Q,G,X){let{options:q,type:N}=this,K=this._cachedScopes(Q,X),H=K.get(G);if(H)return H;let M=new Set;G.forEach((w)=>{if(Q)M.add(Q),w.forEach((z)=>KQ(M,Q,z));w.forEach((z)=>KQ(M,q,z)),w.forEach((z)=>KQ(M,I2[N]||{},z)),w.forEach((z)=>KQ(M,b1,z)),w.forEach((z)=>KQ(M,O3,z))});let F=Array.from(M);if(F.length===0)F.push(Object.create(null));if(PT.has(G))K.set(G,F);return F}chartOptionScopes(){let{options:Q,type:G}=this;return[Q,I2[G]||{},b1.datasets[G]||{},{type:G},b1,O3]}resolveNamedOptions(Q,G,X,q=[""]){let N={$shared:!0},{resolver:K,subPrefixes:H}=bz(this._resolverCache,Q,q),M=K;if(KA(K,G)){N.$shared=!1,X=W8(X)?X():X;let F=this.createResolver(Q,X,H);M=j9(K,X,F)}for(let F of G)N[F]=M[F];return N}createResolver(Q,G,X=[""],q){let{resolver:N}=bz(this._resolverCache,Q,X);return o0(G)?j9(N,G,void 0,q):N}}function bz(Q,G,X){let q=Q.get(G);if(!q)q=new Map,Q.set(G,q);let N=X.join(),K=q.get(N);if(!K)K={resolver:A3(G,X),subPrefixes:X.filter((M)=>!M.toLowerCase().includes("hover"))},q.set(N,K);return K}var UA=(Q)=>o0(Q)&&Object.getOwnPropertyNames(Q).some((G)=>W8(Q[G]));function KA(Q,G){let{isScriptable:X,isIndexable:q}=_U(Q);for(let N of G){let K=X(N),H=q(N),M=(H||K)&&Q[N];if(K&&(W8(M)||UA(M))||H&&_1(M))return!0}return!1}var BA="4.5.1",HA=["top","bottom","left","right","chartArea"];function kz(Q,G){return Q==="top"||Q==="bottom"||HA.indexOf(Q)===-1&&G==="x"}function fz(Q,G){return function(X,q){return X[Q]===q[Q]?X[G]-q[G]:X[Q]-q[Q]}}function yz(Q){let G=Q.chart,X=G.options.animation;G.notifyPlugins("afterRender"),z1(X&&X.onComplete,[Q],G)}function MA(Q){let G=Q.chart,X=G.options.animation;z1(X&&X.onProgress,[Q],G)}function CT(Q){if(j3()&&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 h3={},gz=(Q)=>{let G=CT(Q);return Object.values(h3).filter((X)=>X.canvas===G).pop()};function FA(Q,G,X){let q=Object.keys(Q);for(let N of q){let K=+N;if(K>=G){let H=Q[N];if(delete Q[N],X>0||K>G)Q[K+X]=H}}}function WA(Q,G,X,q){if(!X||Q.type==="mouseout")return null;if(q)return G;return Q}class f9{static defaults=b1;static instances=h3;static overrides=I2;static registry=y4;static version=BA;static getChart=gz;static register(...Q){y4.add(...Q),hz()}static unregister(...Q){y4.remove(...Q),hz()}constructor(Q,G){let X=this.config=new _T(G),q=CT(Q),N=gz(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||yE(q)),this.platform.updateConfig(X);let H=this.platform.acquireContext(q,K.aspectRatio),M=H&&H.canvas,F=M&&M.height,w=M&&M.width;if(this.id=vR(),this.ctx=H,this.canvas=M,this.width=w,this.height=F,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 zT,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=cR((z)=>this.update(z),K.resizeDelay||0),this._dataChanges=[],h3[this.id]=this,!H||!M){console.error("Failed to create chart: can't acquire context from the given item");return}if(L8.listen(this,"complete",yz),L8.listen(this,"progress",MA),this._initialize(),this.attached)this.update()}get aspectRatio(){let{options:{aspectRatio:Q,maintainAspectRatio:G},width:X,height:q,_aspectRatio:N}=this;if(!t0(Q))return Q;if(G&&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 y4}_initialize(){if(this.notifyPlugins("beforeInit"),this.options.responsive)this.resize();else IU(this,this.options.devicePixelRatio);return this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return zU(this.canvas,this.ctx),this}stop(){return L8.stop(this),this}resize(Q,G){if(!L8.running(this))this._resize(Q,G);else this._resizeBeforeDraw={width:Q,height:G}}_resize(Q,G){let X=this.options,q=this.canvas,N=X.maintainAspectRatio&&this.aspectRatio,K=this.platform.getMaximumSize(q,Q,G,N),H=X.devicePixelRatio||this.platform.getDevicePixelRatio(),M=this.width?"resize":"attach";if(this.width=K.width,this.height=K.height,this._aspectRatio=this.aspectRatio,!IU(this,H,!0))return;if(this.notifyPlugins("resize",{size:K}),z1(X.onResize,[this,K],this),this.attached){if(this._doResize(M))this.render()}}ensureScalesHaveIDs(){let G=this.options.scales||{};U1(G,(X,q)=>{X.id=q})}buildOrUpdateScales(){let Q=this.options,G=Q.scales,X=this.scales,q=Object.keys(X).reduce((K,H)=>{return K[H]=!1,K},{}),N=[];if(G)N=N.concat(Object.keys(G).map((K)=>{let H=G[K],M=cU(K,H),F=M==="r",w=M==="x";return{options:H,dposition:F?"chartArea":w?"bottom":"left",dtype:F?"radialLinear":w?"category":"linear"}}));U1(N,(K)=>{let H=K.options,M=H.id,F=cU(M,H),w=p0(H.type,K.dtype);if(H.position===void 0||kz(H.position,F)!==kz(K.dposition))H.position=K.dposition;q[M]=!0;let z=null;if(M in X&&X[M].type===w)z=X[M];else z=new(y4.getScale(w))({id:M,type:w,ctx:this.ctx,chart:this}),X[z.id]=z;z.init(H,Q)}),U1(q,(K,H)=>{if(!K)delete X[H]}),U1(X,(K)=>{g6.configure(this,K,K.options),g6.addBox(this,K)})}_updateMetasets(){let Q=this._metasets,G=this.data.datasets.length,X=Q.length;if(Q.sort((q,N)=>q.index-N.index),X>G){for(let q=G;q<X;++q)this._destroyDatasetMeta(q);Q.splice(G,X-G)}this._sortedMetasets=Q.slice(0).sort(fz("order","index"))}_removeUnreferencedMetasets(){let{_metasets:Q,data:{datasets:G}}=this;if(Q.length>G.length)delete this._stacks;Q.forEach((X,q)=>{if(G.filter((N)=>N===X._dataset).length===0)this._destroyDatasetMeta(q)})}buildOrUpdateControllers(){let Q=[],G=this.data.datasets,X,q;this._removeUnreferencedMetasets();for(X=0,q=G.length;X<q;X++){let N=G[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||pU(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 M=y4.getController(H),{datasetElementType:F,dataElementType:w}=b1.datasets[H];Object.assign(M,{dataElementType:y4.getElement(w),datasetElementType:F&&y4.getElement(F)}),K.controller=new M(this,X),Q.push(K.controller)}}return this._updateMetasets(),Q}_resetElements(){U1(this.data.datasets,(Q,G)=>{this.getDatasetMeta(G).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(Q){let G=this.config;G.update();let X=this._options=G.createResolver(G.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 F=0,w=this.data.datasets.length;F<w;F++){let{controller:z}=this.getDatasetMeta(F),T=!q&&N.indexOf(z)===-1;z.buildOrUpdateElements(T),K=Math.max(+z.getMaxOverflow(),K)}if(K=this._minPadding=X.layout.autoPadding?K:0,this._updateLayout(K),!q)U1(N,(F)=>{F.reset()});this._updateDatasets(Q),this.notifyPlugins("afterUpdate",{mode:Q}),this._layers.sort(fz("z","_idx"));let{_active:H,_lastEvent:M}=this;if(M)this._eventHandler(M,!0);else if(H.length)this._updateHoverStyles(H,H,!0);this.render()}_updateScales(){U1(this.scales,(Q)=>{g6.removeBox(this,Q)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){let Q=this.options,G=new Set(Object.keys(this._listeners)),X=new Set(Q.events);if(!YU(G,X)||!!this._responsiveListeners!==Q.responsive)this.unbindEvents(),this.bindEvents()}_updateHiddenIndices(){let{_hiddenIndices:Q}=this,G=this._getUniformDataChanges()||[];for(let{method:X,start:q,count:N}of G){let K=X==="_removeElements"?-N:N;FA(Q,q,K)}}_getUniformDataChanges(){let Q=this._dataChanges;if(!Q||!Q.length)return;this._dataChanges=[];let G=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<G;N++)if(!YU(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;g6.update(this,this.width,this.height,Q);let G=this.chartArea,X=G.width<=0||G.height<=0;this._layers=[],U1(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 G=0,X=this.data.datasets.length;G<X;++G)this.getDatasetMeta(G).controller.configure();for(let G=0,X=this.data.datasets.length;G<X;++G)this._updateDataset(G,W8(Q)?Q({datasetIndex:G}):Q);this.notifyPlugins("afterDatasetsUpdate",{mode:Q})}_updateDataset(Q,G){let X=this.getDatasetMeta(Q),q={meta:X,index:Q,mode:G,cancelable:!0};if(this.notifyPlugins("beforeDatasetUpdate",q)===!1)return;X.controller._update(G),q.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",q)}render(){if(this.notifyPlugins("beforeRender",{cancelable:!0})===!1)return;if(L8.has(this)){if(this.attached&&!L8.running(this))L8.start(this)}else this.draw(),yz({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 G=this._layers;for(Q=0;Q<G.length&&G[Q].z<=0;++Q)G[Q].draw(this.chartArea);this._drawDatasets();for(;Q<G.length;++Q)G[Q].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(Q){let G=this._sortedMetasets,X=[],q,N;for(q=0,N=G.length;q<N;++q){let K=G[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 G=Q.length-1;G>=0;--G)this._drawDataset(Q[G]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(Q){let G=this.ctx,X={meta:Q,index:Q.index,cancelable:!0},q=DU(this,Q);if(this.notifyPlugins("beforeDatasetDraw",X)===!1)return;if(q)JQ(G,q);if(Q.controller.draw(),q)GQ(G);X.cancelable=!1,this.notifyPlugins("afterDatasetDraw",X)}isPointInArea(Q){return b4(Q,this.chartArea,this._minPadding)}getElementsAtEventForMode(Q,G,X,q){let N=RE.modes[G];if(typeof N==="function")return N(this,Q,X,q);return[]}getDatasetMeta(Q){let G=this.data.datasets[Q],X=this._metasets,q=X.filter((N)=>N&&N._dataset===G).pop();if(!q)q={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:G&&G.order||0,index:Q,_dataset:G,_parsed:[],_sorted:!1},X.push(q);return q}getContext(){return this.$context||(this.$context=T8(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(Q){let G=this.data.datasets[Q];if(!G)return!1;let X=this.getDatasetMeta(Q);return typeof X.hidden==="boolean"?!X.hidden:!G.hidden}setDatasetVisibility(Q,G){let X=this.getDatasetMeta(Q);X.hidden=!G}toggleDataVisibility(Q){this._hiddenIndices[Q]=!this._hiddenIndices[Q]}getDataVisibility(Q){return!this._hiddenIndices[Q]}_updateVisibility(Q,G,X){let q=X?"show":"hide",N=this.getDatasetMeta(Q),K=N.controller._resolveAnimations(void 0,q);if(J$(G))N.data[G].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,G){this._updateVisibility(Q,G,!1)}show(Q,G){this._updateVisibility(Q,G,!0)}_destroyDatasetMeta(Q){let G=this._metasets[Q];if(G&&G.controller)G.controller._destroy();delete this._metasets[Q]}_stop(){let Q,G;this.stop(),L8.remove(this);for(Q=0,G=this.data.datasets.length;Q<G;++Q)this._destroyDatasetMeta(Q)}destroy(){this.notifyPlugins("beforeDestroy");let{canvas:Q,ctx:G}=this;if(this._stop(),this.config.clearCache(),Q)this.unbindEvents(),zU(Q,G),this.platform.releaseContext(G),this.canvas=null,this.ctx=null;delete h3[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,G=this.platform,X=(N,K)=>{G.addEventListener(this,N,K),Q[N]=K},q=(N,K,H)=>{N.offsetX=K,N.offsetY=H,this._eventHandler(N)};U1(this.options.events,(N)=>X(N,q))}bindResponsiveEvents(){if(!this._responsiveListeners)this._responsiveListeners={};let Q=this._responsiveListeners,G=this.platform,X=(M,F)=>{G.addEventListener(this,M,F),Q[M]=F},q=(M,F)=>{if(Q[M])G.removeEventListener(this,M,F),delete Q[M]},N=(M,F)=>{if(this.canvas)this.resize(M,F)},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)},G.isAttached(this.canvas))H();else K()}unbindEvents(){U1(this._listeners,(Q,G)=>{this.platform.removeEventListener(this,G,Q)}),this._listeners={},U1(this._responsiveListeners,(Q,G)=>{this.platform.removeEventListener(this,G,Q)}),this._responsiveListeners=void 0}updateHoverStyle(Q,G,X){let q=X?"set":"remove",N,K,H,M;if(G==="dataset")N=this.getDatasetMeta(Q[0].datasetIndex),N.controller["_"+q+"DatasetHoverStyle"]();for(H=0,M=Q.length;H<M;++H){K=Q[H];let F=K&&this.getDatasetMeta(K.datasetIndex).controller;if(F)F[q+"HoverStyle"](K.element,K.datasetIndex,K.index)}}getActiveElements(){return this._active||[]}setActiveElements(Q){let G=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(!ZQ(X,G))this._active=X,this._lastEvent=null,this._updateHoverStyles(X,G)}notifyPlugins(Q,G,X){return this._plugins.notify(this,Q,G,X)}isPluginEnabled(Q){return this._plugins._cache.filter((G)=>G.plugin.id===Q).length===1}_updateHoverStyles(Q,G,X){let q=this.options.hover,N=(M,F)=>M.filter((w)=>!F.some((z)=>w.datasetIndex===z.datasetIndex&&w.index===z.index)),K=N(G,Q),H=X?Q:N(Q,G);if(K.length)this.updateHoverStyle(K,q.mode,!1);if(H.length&&q.mode)this.updateHoverStyle(H,q.mode,!0)}_eventHandler(Q,G){let X={event:Q,replay:G,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,G,X.inChartArea);if(X.cancelable=!1,this.notifyPlugins("afterEvent",X,q),N||X.changed)this.render();return this}_handleEvent(Q,G,X){let{_active:q=[],options:N}=this,K=G,H=this._getActiveElements(Q,q,X,K),M=fR(Q),F=WA(Q,this._lastEvent,X,M);if(X){if(this._lastEvent=null,z1(N.onHover,[Q,H,this],this),M)z1(N.onClick,[Q,H,this],this)}let w=!ZQ(H,q);if(w||G)this._active=H,this._updateHoverStyles(H,q,G);return this._lastEvent=F,w}_getActiveElements(Q,G,X,q){if(Q.type==="mouseout")return[];if(!X)return G;let N=this.options.hover;return this.getElementsAtEventForMode(Q,N.mode,N,q)}}function hz(){return U1(f9.instances,(Q)=>Q._plugins.invalidate())}function VT(Q,G,X=G){Q.lineCap=p0(X.borderCapStyle,G.borderCapStyle),Q.setLineDash(p0(X.borderDash,G.borderDash)),Q.lineDashOffset=p0(X.borderDashOffset,G.borderDashOffset),Q.lineJoin=p0(X.borderJoinStyle,G.borderJoinStyle),Q.lineWidth=p0(X.borderWidth,G.borderWidth),Q.strokeStyle=p0(X.borderColor,G.borderColor)}function wA(Q,G,X){Q.lineTo(X.x,X.y)}function RA(Q){if(Q.stepped)return iR;if(Q.tension||Q.cubicInterpolationMode==="monotone")return tR;return wA}function IT(Q,G,X={}){let q=Q.length,{start:N=0,end:K=q-1}=X,{start:H,end:M}=G,F=Math.max(N,H),w=Math.min(K,M),z=N<H&&K<H||N>M&&K>M;return{count:q,start:F,loop:G.loop,ilen:w<F&&!z?q+w-F:w-F}}function zA(Q,G,X,q){let{points:N,options:K}=G,{count:H,start:M,loop:F,ilen:w}=IT(N,X,q),z=RA(K),{move:T=!0,reverse:P}=q||{},V,A,O;for(V=0;V<=w;++V){if(A=N[(M+(P?w-V:V))%H],A.skip)continue;else if(T)Q.moveTo(A.x,A.y),T=!1;else z(Q,O,A,P,K.stepped);O=A}if(F)A=N[(M+(P?w:0))%H],z(Q,O,A,P,K.stepped);return!!F}function TA(Q,G,X,q){let N=G.points,{count:K,start:H,ilen:M}=IT(N,X,q),{move:F=!0,reverse:w}=q||{},z=0,T=0,P,V,A,O,I,D,h=(s)=>(H+(w?M-s:s))%K,p=()=>{if(O!==I)Q.lineTo(z,I),Q.lineTo(z,O),Q.lineTo(z,D)};if(F)V=N[h(0)],Q.moveTo(V.x,V.y);for(P=0;P<=M;++P){if(V=N[h(P)],V.skip)continue;let{x:s,y:o}=V,Q0=s|0;if(Q0===A){if(o<O)O=o;else if(o>I)I=o;z=(T*z+s)/++T}else p(),Q.lineTo(s,o),A=Q0,T=0,O=I=o;D=o}p()}function lU(Q){let G=Q.options,X=G.borderDash&&G.borderDash.length;return!Q._decimated&&!Q._loop&&!G.tension&&G.cubicInterpolationMode!=="monotone"&&!G.stepped&&!X?TA:zA}function LA(Q){if(Q.stepped)return Yz;if(Q.tension||Q.cubicInterpolationMode==="monotone")return Nz;return _2}function PA(Q,G,X,q){let N=G._path;if(!N){if(N=G._path=new Path2D,G.path(N,X,q))N.closePath()}VT(Q,G.options),Q.stroke(N)}function _A(Q,G,X,q){let{segments:N,options:K}=G,H=lU(G);for(let M of N){if(VT(Q,K,M.style),Q.beginPath(),H(Q,G,M,{start:X,end:X+q-1}))Q.closePath();Q.stroke()}}var CA=typeof Path2D==="function";function VA(Q,G,X,q){if(CA&&!G.options.segment)PA(Q,G,X,q);else _A(Q,G,X,q)}class Y$ extends _8{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,G){let X=this.options;if((X.tension||X.cubicInterpolationMode==="monotone")&&!X.stepped&&!this._pointsUpdated){let q=X.spanGaps?this._loop:this._fullLoop;Gz(this._points,X,Q,q,G),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=Kz(this,this.options.segment))}first(){let Q=this.segments,G=this.points;return Q.length&&G[Q[0].start]}last(){let Q=this.segments,G=this.points,X=Q.length;return X&&G[Q[X-1].end]}interpolate(Q,G){let X=this.options,q=Q[G],N=this.points,K=SU(this,{property:G,start:q,end:q});if(!K.length)return;let H=[],M=LA(X),F,w;for(F=0,w=K.length;F<w;++F){let{start:z,end:T}=K[F],P=N[z],V=N[T];if(P===V){H.push(P);continue}let A=Math.abs((q-P[G])/(V[G]-P[G])),O=M(P,V,A,X.stepped);O[G]=Q[G],H.push(O)}return H.length===1?H[0]:H}pathSegment(Q,G,X){return lU(this)(Q,this,G,X)}path(Q,G,X){let q=this.segments,N=lU(this),K=this._loop;G=G||0,X=X||this.points.length-G;for(let H of q)K&=N(Q,this,H,{start:G,end:G+X-1});return!!K}draw(Q,G,X,q){let N=this.options||{};if((this.points||[]).length&&N.borderWidth)Q.save(),VA(Q,this,X,q),Q.restore();if(this.animated)this._pointsUpdated=!1,this._path=void 0}}function uz(Q,G,X,q){let N=Q.options,{[X]:K}=Q.getProps([X],q);return Math.abs(G-K)<N.radius+N.hitRadius}class QK extends _8{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,G,X){let q=this.options,{x:N,y:K}=this.getProps(["x","y"],X);return Math.pow(Q-N,2)+Math.pow(G-K,2)<Math.pow(q.hitRadius+q.radius,2)}inXRange(Q,G){return uz(this,Q,"x",G)}inYRange(Q,G){return uz(this,Q,"y",G)}getCenterPoint(Q){let{x:G,y:X}=this.getProps(["x","y"],Q);return{x:G,y:X}}size(Q){Q=Q||this.options||{};let G=Q.radius||0;G=Math.max(G,G&&Q.hoverRadius||0);let X=G&&Q.borderWidth||0;return(G+X)*2}draw(Q,G){let X=this.options;if(this.skip||X.radius<0.1||!b4(this,G,this.size(X)/2))return;Q.strokeStyle=X.borderColor,Q.lineWidth=X.borderWidth,Q.fillStyle=X.backgroundColor,E3(Q,X,this.x,this.y)}getRange(){let Q=this.options||{};return Q.radius+Q.hitRadius}}function OT(Q,G){let{x:X,y:q,base:N,width:K,height:H}=Q.getProps(["x","y","base","width","height"],G),M,F,w,z,T;if(Q.horizontal)T=H/2,M=Math.min(X,N),F=Math.max(X,N),w=q-T,z=q+T;else T=K/2,M=X-T,F=X+T,w=Math.min(q,N),z=Math.max(q,N);return{left:M,top:w,right:F,bottom:z}}function S2(Q,G,X,q){return Q?0:r5(G,X,q)}function IA(Q,G,X){let q=Q.options.borderWidth,N=Q.borderSkipped,K=PU(q);return{t:S2(N.top,K.top,0,X),r:S2(N.right,K.right,0,G),b:S2(N.bottom,K.bottom,0,X),l:S2(N.left,K.left,0,G)}}function OA(Q,G,X){let{enableBorderRadius:q}=Q.getProps(["enableBorderRadius"]),N=Q.options.borderRadius,K=A2(N),H=Math.min(G,X),M=Q.borderSkipped,F=q||o0(N);return{topLeft:S2(!F||M.top||M.left,K.topLeft,0,H),topRight:S2(!F||M.top||M.right,K.topRight,0,H),bottomLeft:S2(!F||M.bottom||M.left,K.bottomLeft,0,H),bottomRight:S2(!F||M.bottom||M.right,K.bottomRight,0,H)}}function EA(Q){let G=OT(Q),X=G.right-G.left,q=G.bottom-G.top,N=IA(Q,X/2,q/2),K=OA(Q,X/2,q/2);return{outer:{x:G.left,y:G.top,w:X,h:q,radius:K},inner:{x:G.left+N.l,y:G.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 uU(Q,G,X,q){let N=G===null,K=X===null,M=Q&&!(N&&K)&&OT(Q,q);return M&&(N||z8(G,M.left,M.right))&&(K||z8(X,M.top,M.bottom))}function AA(Q){return Q.topLeft||Q.topRight||Q.bottomLeft||Q.bottomRight}function jA(Q,G){Q.rect(G.x,G.y,G.w,G.h)}function xU(Q,G,X={}){let q=Q.x!==X.x?-G:0,N=Q.y!==X.y?-G:0,K=(Q.x+Q.w!==X.x+X.w?G:0)-q,H=(Q.y+Q.h!==X.y+X.h?G:0)-N;return{x:Q.x+q,y:Q.y+N,w:Q.w+K,h:Q.h+H,radius:Q.radius}}class JK extends _8{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:G,options:{borderColor:X,backgroundColor:q}}=this,{inner:N,outer:K}=EA(this),H=AA(K.radius)?q$:jA;if(Q.save(),K.w!==N.w||K.h!==N.h)Q.beginPath(),H(Q,xU(K,G,N)),Q.clip(),H(Q,xU(N,-G,K)),Q.fillStyle=X,Q.fill("evenodd");Q.beginPath(),H(Q,xU(N,G)),Q.fillStyle=q,Q.fill(),Q.restore()}inRange(Q,G,X){return uU(this,Q,G,X)}inXRange(Q,G){return uU(this,Q,null,G)}inYRange(Q,G){return uU(this,null,Q,G)}getCenterPoint(Q){let{x:G,y:X,base:q,horizontal:N}=this.getProps(["x","y","base","horizontal"],Q);return{x:N?(G+q)/2:G,y:N?X:(X+q)/2}}getRange(Q){return Q==="x"?this.width/2:this.height/2}}function SA(Q,G,X){let{segments:q,points:N}=Q,K=G.points,H=[];for(let M of q){let{start:F,end:w}=M;w=m3(F,w,N);let z=rU(X,N[F],N[w],M.loop);if(!G.segments){H.push({source:M,target:z,start:N[F],end:N[w]});continue}let T=SU(G,z);for(let P of T){let V=rU(X,K[P.start],K[P.end],P.loop),A=jU(M,N,V);for(let O of A)H.push({source:O,target:P,start:{[X]:xz(z,V,"start",Math.max)},end:{[X]:xz(z,V,"end",Math.min)}})}}return H}function rU(Q,G,X,q){if(q)return;let N=G[Q],K=X[Q];if(Q==="angle")N=p5(N),K=p5(K);return{property:Q,start:N,end:K}}function DA(Q,G){let{x:X=null,y:q=null}=Q||{},N=G.points,K=[];return G.segments.forEach(({start:H,end:M})=>{M=m3(H,M,N);let F=N[H],w=N[M];if(q!==null)K.push({x:F.x,y:q}),K.push({x:w.x,y:q});else if(X!==null)K.push({x:X,y:F.y}),K.push({x:X,y:w.y})}),K}function m3(Q,G,X){for(;G>Q;G--){let q=X[G];if(!isNaN(q.x)&&!isNaN(q.y))break}return G}function xz(Q,G,X,q){if(Q&&G)return q(Q[X],G[X]);return Q?Q[X]:G?G[X]:0}function ET(Q,G){let X=[],q=!1;if(_1(Q))q=!0,X=Q;else X=DA(Q,G);return X.length?new Y$({points:X,options:{tension:0},_loop:q,_fullLoop:q}):null}function mz(Q){return Q&&Q.fill!==!1}function vA(Q,G,X){let N=Q[G].fill,K=[G],H;if(!X)return N;while(N!==!1&&K.indexOf(N)===-1){if(!v1(N))return N;if(H=Q[N],!H)return!1;if(H.visible)return N;K.push(N),N=H.fill}return!1}function bA(Q,G,X){let q=gA(Q);if(o0(q))return isNaN(q.value)?!1:q;let N=parseFloat(q);if(v1(N)&&Math.floor(N)===N)return kA(q[0],G,N,X);return["origin","start","end","stack","shape"].indexOf(q)>=0&&q}function kA(Q,G,X,q){if(Q==="-"||Q==="+")X=G+X;if(X===G||X<0||X>=q)return!1;return X}function fA(Q,G){let X=null;if(Q==="start")X=G.bottom;else if(Q==="end")X=G.top;else if(o0(Q))X=G.getPixelForValue(Q.value);else if(G.getBasePixel)X=G.getBasePixel();return X}function yA(Q,G,X){let q;if(Q==="start")q=X;else if(Q==="end")q=G.options.reverse?G.min:G.max;else if(o0(Q))q=Q.value;else q=G.getBaseValue();return q}function gA(Q){let G=Q.options,X=G.fill,q=p0(X&&X.target,X);if(q===void 0)q=!!G.backgroundColor;if(q===!1||q===null)return!1;if(q===!0)return"origin";return q}function hA(Q){let{scale:G,index:X,line:q}=Q,N=[],K=q.segments,H=q.points,M=uA(G,X);M.push(ET({x:null,y:G.bottom},q));for(let F=0;F<K.length;F++){let w=K[F];for(let z=w.start;z<=w.end;z++)xA(N,H[z],M)}return new Y$({points:N,options:{}})}function uA(Q,G){let X=[],q=Q.getMatchingVisibleMetas("line");for(let N=0;N<q.length;N++){let K=q[N];if(K.index===G)break;if(!K.hidden)X.unshift(K.dataset)}return X}function xA(Q,G,X){let q=[];for(let N=0;N<X.length;N++){let K=X[N],{first:H,last:M,point:F}=mA(K,G,"x");if(!F||H&&M)continue;if(H)q.unshift(F);else if(Q.push(F),!M)break}Q.push(...q)}function mA(Q,G,X){let q=Q.interpolate(G,X);if(!q)return{};let N=q[X],K=Q.segments,H=Q.points,M=!1,F=!1;for(let w=0;w<K.length;w++){let z=K[w],T=H[z.start][X],P=H[z.end][X];if(z8(N,T,P)){M=N===T,F=N===P;break}}return{first:M,last:F,point:q}}class GK{constructor(Q){this.x=Q.x,this.y=Q.y,this.radius=Q.radius}pathSegment(Q,G,X){let{x:q,y:N,radius:K}=this;return G=G||{start:0,end:l5},Q.arc(q,N,K,G.end,G.start,!0),!X.bounds}interpolate(Q){let{x:G,y:X,radius:q}=this,N=Q.angle;return{x:G+Math.cos(N)*q,y:X+Math.sin(N)*q,angle:N}}}function dA(Q){let{chart:G,fill:X,line:q}=Q;if(v1(X))return pA(G,X);if(X==="stack")return hA(Q);if(X==="shape")return!0;let N=cA(Q);if(N instanceof GK)return N;return ET(N,q)}function pA(Q,G){let X=Q.getDatasetMeta(G);return X&&Q.isDatasetVisible(G)?X.dataset:null}function cA(Q){if((Q.scale||{}).getPointPositionForValue)return rA(Q);return lA(Q)}function lA(Q){let{scale:G={},fill:X}=Q,q=fA(X,G);if(v1(q)){let N=G.isHorizontal();return{x:N?q:null,y:N?null:q}}return null}function rA(Q){let{scale:G,fill:X}=Q,q=G.options,N=G.getLabels().length,K=q.reverse?G.max:G.min,H=yA(X,G,K),M=[];if(q.grid.circular){let F=G.getPointPositionForValue(0,K);return new GK({x:F.x,y:F.y,radius:G.getDistanceFromCenterForValue(H)})}for(let F=0;F<N;++F)M.push(G.getPointPositionForValue(F,H));return M}function mU(Q,G,X){let q=dA(G),{chart:N,index:K,line:H,scale:M,axis:F}=G,w=H.options,z=w.fill,T=w.backgroundColor,{above:P=T,below:V=T}=z||{},A=N.getDatasetMeta(K),O=DU(N,A);if(q&&H.points.length)JQ(Q,X),sA(Q,{line:H,target:q,above:P,below:V,area:X,scale:M,axis:F,clip:O}),GQ(Q)}function sA(Q,G){let{line:X,target:q,above:N,below:K,area:H,scale:M,clip:F}=G,w=X._loop?"angle":G.axis;Q.save();let z=K;if(K!==N){if(w==="x")dz(Q,q,H.top),dU(Q,{line:X,target:q,color:N,scale:M,property:w,clip:F}),Q.restore(),Q.save(),dz(Q,q,H.bottom);else if(w==="y")pz(Q,q,H.left),dU(Q,{line:X,target:q,color:K,scale:M,property:w,clip:F}),Q.restore(),Q.save(),pz(Q,q,H.right),z=N}dU(Q,{line:X,target:q,color:z,scale:M,property:w,clip:F}),Q.restore()}function dz(Q,G,X){let{segments:q,points:N}=G,K=!0,H=!1;Q.beginPath();for(let M of q){let{start:F,end:w}=M,z=N[F],T=N[m3(F,w,N)];if(K)Q.moveTo(z.x,z.y),K=!1;else Q.lineTo(z.x,X),Q.lineTo(z.x,z.y);if(H=!!G.pathSegment(Q,M,{move:H}),H)Q.closePath();else Q.lineTo(T.x,X)}Q.lineTo(G.first().x,X),Q.closePath(),Q.clip()}function pz(Q,G,X){let{segments:q,points:N}=G,K=!0,H=!1;Q.beginPath();for(let M of q){let{start:F,end:w}=M,z=N[F],T=N[m3(F,w,N)];if(K)Q.moveTo(z.x,z.y),K=!1;else Q.lineTo(X,z.y),Q.lineTo(z.x,z.y);if(H=!!G.pathSegment(Q,M,{move:H}),H)Q.closePath();else Q.lineTo(X,T.y)}Q.lineTo(X,G.first().y),Q.closePath(),Q.clip()}function dU(Q,G){let{line:X,target:q,property:N,color:K,scale:H,clip:M}=G,F=SA(X,q,N);for(let{source:w,target:z,start:T,end:P}of F){let{style:{backgroundColor:V=K}={}}=w,A=q!==!0;Q.save(),Q.fillStyle=V,nA(Q,H,M,A&&rU(N,T,P)),Q.beginPath();let O=!!X.pathSegment(Q,w),I;if(A){if(O)Q.closePath();else cz(Q,q,P,N);let D=!!q.pathSegment(Q,z,{move:O,reverse:!0});if(I=O&&D,!I)cz(Q,q,T,N)}Q.closePath(),Q.fill(I?"evenodd":"nonzero"),Q.restore()}}function nA(Q,G,X,q){let N=G.chart.chartArea,{property:K,start:H,end:M}=q||{};if(K==="x"||K==="y"){let F,w,z,T;if(K==="x")F=H,w=N.top,z=M,T=N.bottom;else F=N.left,w=H,z=N.right,T=M;if(Q.beginPath(),X)F=Math.max(F,X.left),z=Math.min(z,X.right),w=Math.max(w,X.top),T=Math.min(T,X.bottom);Q.rect(F,w,z-F,T-w),Q.clip()}}function cz(Q,G,X,q){let N=G.interpolate(X,q);if(N)Q.lineTo(N.x,N.y)}var AT={id:"filler",afterDatasetsUpdate(Q,G,X){let q=(Q.data.datasets||[]).length,N=[],K,H,M,F;for(H=0;H<q;++H){if(K=Q.getDatasetMeta(H),M=K.dataset,F=null,M&&M.options&&M instanceof Y$)F={visible:Q.isDatasetVisible(H),index:H,fill:bA(M,H,q),chart:Q,axis:K.controller.options.indexAxis,scale:K.vScale,line:M};K.$filler=F,N.push(F)}for(H=0;H<q;++H){if(F=N[H],!F||F.fill===!1)continue;F.fill=vA(N,H,X.propagate)}},beforeDraw(Q,G,X){let q=X.drawTime==="beforeDraw",N=Q.getSortedVisibleDatasetMetas(),K=Q.chartArea;for(let H=N.length-1;H>=0;--H){let M=N[H].$filler;if(!M)continue;if(M.line.updateControlPoints(K,M.axis),q&&M.fill)mU(Q.ctx,M,K)}},beforeDatasetsDraw(Q,G,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(mz(K))mU(Q.ctx,K,Q.chartArea)}},beforeDatasetDraw(Q,G,X){let q=G.meta.$filler;if(!mz(q)||X.drawTime!=="beforeDatasetDraw")return;mU(Q.ctx,q,Q.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}},lz=(Q,G)=>{let{boxHeight:X=G,boxWidth:q=G}=Q;if(Q.usePointStyle)X=Math.min(X,G),q=Q.pointStyleWidth||Math.min(q,G);return{boxWidth:q,boxHeight:X,itemHeight:Math.max(G,X)}},oA=(Q,G)=>Q!==null&&G!==null&&Q.datasetIndex===G.datasetIndex&&Q.index===G.index;class sU extends _8{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,G,X){this.maxWidth=Q,this.maxHeight=G,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||{},G=z1(Q.generateLabels,[this.chart],this)||[];if(Q.filter)G=G.filter((X)=>Q.filter(X,this.chart.data));if(Q.sort)G=G.sort((X,q)=>Q.sort(X,q,this.chart.data));if(this.options.reverse)G.reverse();this.legendItems=G}fit(){let{options:Q,ctx:G}=this;if(!Q.display){this.width=this.height=0;return}let X=Q.labels,q=o1(X.font),N=q.size,K=this._computeTitleHeight(),{boxWidth:H,itemHeight:M}=lz(X,N),F,w;if(G.font=q.string,this.isHorizontal())F=this.maxWidth,w=this._fitRows(K,N,H,M)+10;else w=this.maxHeight,F=this._fitCols(K,q,H,M)+10;this.width=Math.min(F,Q.maxWidth||this.maxWidth),this.height=Math.min(w,Q.maxHeight||this.maxHeight)}_fitRows(Q,G,X,q){let{ctx:N,maxWidth:K,options:{labels:{padding:H}}}=this,M=this.legendHitBoxes=[],F=this.lineWidths=[0],w=q+H,z=Q;N.textAlign="left",N.textBaseline="middle";let T=-1,P=-w;return this.legendItems.forEach((V,A)=>{let O=X+G/2+N.measureText(V.text).width;if(A===0||F[F.length-1]+O+2*H>K)z+=w,F[F.length-(A>0?0:1)]=0,P+=w,T++;M[A]={left:0,top:P,row:T,width:O,height:q},F[F.length-1]+=O+H}),z}_fitCols(Q,G,X,q){let{ctx:N,maxHeight:K,options:{labels:{padding:H}}}=this,M=this.legendHitBoxes=[],F=this.columnSizes=[],w=K-Q,z=H,T=0,P=0,V=0,A=0;return this.legendItems.forEach((O,I)=>{let{itemWidth:D,itemHeight:h}=aA(X,G,N,O,q);if(I>0&&P+h+2*H>w)z+=T+H,F.push({width:T,height:P}),V+=T+H,A++,T=P=0;M[I]={left:V,top:P,col:A,width:D,height:h},T=Math.max(T,D),P+=h+H}),z+=T,F.push({width:T,height:P}),z}adjustHitBoxes(){if(!this.options.display)return;let Q=this._computeTitleHeight(),{legendHitBoxes:G,options:{align:X,labels:{padding:q},rtl:N}}=this,K=D9(N,this.left,this.width);if(this.isHorizontal()){let H=0,M=W5(X,this.left+q,this.right-this.lineWidths[H]);for(let F of G){if(H!==F.row)H=F.row,M=W5(X,this.left+q,this.right-this.lineWidths[H]);F.top+=this.top+Q+q,F.left=K.leftForLtr(K.x(M),F.width),M+=F.width+q}}else{let H=0,M=W5(X,this.top+Q+q,this.bottom-this.columnSizes[H].height);for(let F of G){if(F.col!==H)H=F.col,M=W5(X,this.top+Q+q,this.bottom-this.columnSizes[H].height);F.top=M,F.left+=this.left+q,F.left=K.leftForLtr(K.x(F.left),F.width),M+=F.height+q}}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){let Q=this.ctx;JQ(Q,this),this._draw(),GQ(Q)}}_draw(){let{options:Q,columnSizes:G,lineWidths:X,ctx:q}=this,{align:N,labels:K}=Q,H=b1.color,M=D9(Q.rtl,this.left,this.width),F=o1(K.font),{padding:w}=K,z=F.size,T=z/2,P;this.drawTitle(),q.textAlign=M.textAlign("left"),q.textBaseline="middle",q.lineWidth=0.5,q.font=F.string;let{boxWidth:V,boxHeight:A,itemHeight:O}=lz(K,z),I=function(o,Q0,i){if(isNaN(V)||V<=0||isNaN(A)||A<0)return;q.save();let a=p0(i.lineWidth,1);if(q.fillStyle=p0(i.fillStyle,H),q.lineCap=p0(i.lineCap,"butt"),q.lineDashOffset=p0(i.lineDashOffset,0),q.lineJoin=p0(i.lineJoin,"miter"),q.lineWidth=a,q.strokeStyle=p0(i.strokeStyle,H),q.setLineDash(p0(i.lineDash,[])),K.usePointStyle){let q0={radius:A*Math.SQRT2/2,pointStyle:i.pointStyle,rotation:i.rotation,borderWidth:a},d=M.xPlus(o,V/2),K0=Q0+T;TU(q,q0,d,K0,K.pointStyleWidth&&V)}else{let q0=Q0+Math.max((z-A)/2,0),d=M.leftForLtr(o,V),K0=A2(i.borderRadius);if(q.beginPath(),Object.values(K0).some((L0)=>L0!==0))q$(q,{x:d,y:q0,w:V,h:A,radius:K0});else q.rect(d,q0,V,A);if(q.fill(),a!==0)q.stroke()}q.restore()},D=function(o,Q0,i){E2(q,i.text,o,Q0+O/2,F,{strikethrough:i.hidden,textAlign:M.textAlign(i.textAlign)})},h=this.isHorizontal(),p=this._computeTitleHeight();if(h)P={x:W5(N,this.left+w,this.right-X[0]),y:this.top+w+p,line:0};else P={x:this.left+w,y:W5(N,this.top+p+w,this.bottom-G[0].height),line:0};EU(this.ctx,Q.textDirection);let s=O+w;this.legendItems.forEach((o,Q0)=>{q.strokeStyle=o.fontColor,q.fillStyle=o.fontColor;let i=q.measureText(o.text).width,a=M.textAlign(o.textAlign||(o.textAlign=K.textAlign)),q0=V+T+i,d=P.x,K0=P.y;if(M.setWidth(this.width),h){if(Q0>0&&d+q0+w>this.right)K0=P.y+=s,P.line++,d=P.x=W5(N,this.left+w,this.right-X[P.line])}else if(Q0>0&&K0+s>this.bottom)d=P.x=d+G[P.line].width+w,P.line++,K0=P.y=W5(N,this.top+p+w,this.bottom-G[P.line].height);let L0=M.x(d);if(I(L0,K0,o),d=lR(a,d+V+T,h?d+q0:this.right,Q.rtl),D(M.x(d),K0,o),h)P.x+=q0+w;else if(typeof o.text!=="string"){let _0=F.lineHeight;P.y+=jT(o,_0)+w}else P.y+=s}),AU(this.ctx,Q.textDirection)}drawTitle(){let Q=this.options,G=Q.title,X=o1(G.font),q=w5(G.padding);if(!G.display)return;let N=D9(Q.rtl,this.left,this.width),K=this.ctx,H=G.position,M=X.size/2,F=q.top+M,w,z=this.left,T=this.width;if(this.isHorizontal())T=Math.max(...this.lineWidths),w=this.top+F,z=W5(Q.align,z,this.right-T);else{let V=this.columnSizes.reduce((A,O)=>Math.max(A,O.height),0);w=F+W5(Q.align,this.top,this.bottom-V-Q.labels.padding-this._computeTitleHeight())}let P=W5(H,z,z+T);K.textAlign=N.textAlign(V3(H)),K.textBaseline="middle",K.strokeStyle=G.color,K.fillStyle=G.color,K.font=X.string,E2(K,G.text,P,w,X)}_computeTitleHeight(){let Q=this.options.title,G=o1(Q.font),X=w5(Q.padding);return Q.display?G.lineHeight+X.height:0}_getLegendItemAt(Q,G){let X,q,N;if(z8(Q,this.left,this.right)&&z8(G,this.top,this.bottom)){N=this.legendHitBoxes;for(X=0;X<N.length;++X)if(q=N[X],z8(Q,q.left,q.left+q.width)&&z8(G,q.top,q.top+q.height))return this.legendItems[X]}return null}handleEvent(Q){let G=this.options;if(!eA(Q.type,G))return;let X=this._getLegendItemAt(Q.x,Q.y);if(Q.type==="mousemove"||Q.type==="mouseout"){let q=this._hoveredItem,N=oA(q,X);if(q&&!N)z1(G.onLeave,[Q,q,this],this);if(this._hoveredItem=X,X&&!N)z1(G.onHover,[Q,X,this],this)}else if(X)z1(G.onClick,[Q,X,this],this)}}function aA(Q,G,X,q,N){let K=iA(q,Q,G,X),H=tA(N,q,G.lineHeight);return{itemWidth:K,itemHeight:H}}function iA(Q,G,X,q){let N=Q.text;if(N&&typeof N!=="string")N=N.reduce((K,H)=>K.length>H.length?K:H);return G+X.size/2+q.measureText(N).width}function tA(Q,G,X){let q=Q;if(typeof G.text!=="string")q=jT(G,X);return q}function jT(Q,G){let X=Q.text?Q.text.length:0;return G*X}function eA(Q,G){if((Q==="mousemove"||Q==="mouseout")&&(G.onHover||G.onLeave))return!0;if(G.onClick&&(Q==="click"||Q==="mouseup"))return!0;return!1}var ST={id:"legend",_element:sU,start(Q,G,X){let q=Q.legend=new sU({ctx:Q.ctx,options:X,chart:Q});g6.configure(Q,q,X),g6.addBox(Q,q)},stop(Q){g6.removeBox(Q,Q.legend),delete Q.legend},beforeUpdate(Q,G,X){let q=Q.legend;g6.configure(Q,q,X),q.options=X},afterUpdate(Q){let G=Q.legend;G.buildLabels(),G.adjustHitBoxes()},afterEvent(Q,G){if(!G.replay)Q.legend.handleEvent(G.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1000,onClick(Q,G,X){let q=G.datasetIndex,N=X.chart;if(N.isDatasetVisible(q))N.hide(q),G.hidden=!0;else N.show(q),G.hidden=!1},onHover:null,onLeave:null,labels:{color:(Q)=>Q.chart.options.color,boxWidth:40,padding:10,generateLabels(Q){let G=Q.data.datasets,{labels:{usePointStyle:X,pointStyle:q,textAlign:N,color:K,useBorderRadius:H,borderRadius:M}}=Q.legend.options;return Q._getSortedDatasetMetas().map((F)=>{let w=F.controller.getStyle(X?0:void 0),z=w5(w.borderWidth);return{text:G[F.index].label,fillStyle:w.backgroundColor,fontColor:K,hidden:!F.visible,lineCap:w.borderCapStyle,lineDash:w.borderDash,lineDashOffset:w.borderDashOffset,lineJoin:w.borderJoinStyle,lineWidth:(z.width+z.height)/4,strokeStyle:w.borderColor,pointStyle:q||w.pointStyle,rotation:w.rotation,textAlign:N||w.textAlign,borderRadius:H&&(M||w.borderRadius),datasetIndex:F.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 XK extends _8{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,G){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=G;let q=_1(X.text)?X.text.length:1;this._padding=w5(X.padding);let N=q*o1(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:G,left:X,bottom:q,right:N,options:K}=this,H=K.align,M=0,F,w,z;if(this.isHorizontal())w=W5(H,X,N),z=G+Q,F=N-X;else{if(K.position==="left")w=X+Q,z=W5(H,q,G),M=u1*-0.5;else w=N-Q,z=W5(H,G,q),M=u1*0.5;F=q-G}return{titleX:w,titleY:z,maxWidth:F,rotation:M}}draw(){let Q=this.ctx,G=this.options;if(!G.display)return;let X=o1(G.font),N=X.lineHeight/2+this._padding.top,{titleX:K,titleY:H,maxWidth:M,rotation:F}=this._drawArgs(N);E2(Q,G.text,0,0,X,{color:G.color,maxWidth:M,rotation:F,textAlign:V3(G.align),textBaseline:"middle",translation:[K,H]})}}function $j(Q,G){let X=new XK({ctx:Q.ctx,options:G,chart:Q});g6.configure(Q,X,G),g6.addBox(Q,X),Q.titleBlock=X}var DT={id:"title",_element:XK,start(Q,G,X){$j(Q,X)},stop(Q){let G=Q.titleBlock;g6.removeBox(Q,G),delete Q.titleBlock},beforeUpdate(Q,G,X){let q=Q.titleBlock;g6.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 MQ={average(Q){if(!Q.length)return!1;let G,X,q=new Set,N=0,K=0;for(G=0,X=Q.length;G<X;++G){let M=Q[G].element;if(M&&M.hasValue()){let F=M.tooltipPosition();q.add(F.x),N+=F.y,++K}}if(K===0||q.size===0)return!1;return{x:[...q].reduce((M,F)=>M+F)/q.size,y:N/K}},nearest(Q,G){if(!Q.length)return!1;let{x:X,y:q}=G,N=Number.POSITIVE_INFINITY,K,H,M;for(K=0,H=Q.length;K<H;++K){let F=Q[K].element;if(F&&F.hasValue()){let w=F.getCenterPoint(),z=T3(G,w);if(z<N)N=z,M=F}}if(M){let F=M.tooltipPosition();X=F.x,q=F.y}return{x:X,y:q}}};function f4(Q,G){if(G)if(_1(G))Array.prototype.push.apply(Q,G);else Q.push(G);return Q}function P8(Q){if((typeof Q==="string"||Q instanceof String)&&Q.indexOf(`
255
+ */class BT{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=RU.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,M;for(;K>=0;--K)if(M=N[K],M._active){if(M._total>X.duration)X.duration=M._total;M.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 C8=new BT,Wz="transparent",aO={boolean(Q,J,X){return X>0.5?J:Q},color(Q,J,X){let q=LU(Q||Wz),N=q.valid&&LU(J||Wz);return N&&N.valid?N.mix(q,X).hexString():J},number(Q,J,X){return Q+(J-Q)*X}};class HT{constructor(Q,J,X,q){let N=J[X];q=KQ([Q.to,q,N,Q.from]);let K=KQ([Q.from,N,q]);this._active=!0,this._fn=Q.fn||aO[Q.type||typeof K],this._easing=Z$[Q.easing]||Z$.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=KQ([Q.to,J,q,Q.from]),this._from=KQ([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,M;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}M=J/X%2,M=K&&M>1?2-M:M,M=this._easing(Math.min(1,Math.max(0,M))),this._target[q]=this._fn(N,H,M)}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 $K{constructor(Q,J){this._chart=Q,this._properties=new Map,this.configure(J)}configure(Q){if(!a0(Q))return;let J=Object.keys(k1.animation),X=this._properties;Object.getOwnPropertyNames(Q).forEach((q)=>{let N=Q[q];if(!a0(N))return;let K={};for(let H of J)K[H]=N[H];(C1(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=tO(Q,X);if(!q)return[];let N=this._createAnimations(q,X);if(X.$shared)iO(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(),M;for(M=K.length-1;M>=0;--M){let F=K[M];if(F.charAt(0)==="$")continue;if(F==="options"){q.push(...this._animateOptions(Q,J));continue}let w=J[F],z=N[F],T=X.get(F);if(z)if(T&&z.active()){z.update(T,w,H);continue}else z.cancel();if(!T||!T.duration){Q[F]=w;continue}N[F]=z=new HT(T,Q,F,w),q.push(z)}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 C8.add(this._chart,X),!0}}function iO(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 tO(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 wz(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 eO(Q,J,X){if(X===!1)return!1;let q=wz(Q,X),N=wz(J,X);return{top:N.end,right:q.end,bottom:N.start,left:q.start}}function $E(Q){let J,X,q,N;if(a0(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 MT(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 Rz(Q,J,X,q={}){let N=Q.keys,K=q.mode==="single",H,M,F,w;if(J===null)return;let z=!1;for(H=0,M=N.length;H<M;++H){if(F=+N[H],F===X){if(z=!0,q.all)continue;break}if(w=Q.values[F],b1(w)&&(K||J===0||G4(J)===G4(w)))J+=w}if(!z&&!q.all)return 0;return J}function ZE(Q,J){let{iScale:X,vScale:q}=J,N=X.axis==="x"?"x":"y",K=q.axis==="x"?"x":"y",H=Object.keys(Q),M=Array(H.length),F,w,z;for(F=0,w=H.length;F<w;++F)z=H[F],M[F]={[N]:z,[K]:Q[z]};return M}function fU(Q,J){let X=Q&&Q.options.stacked;return X||X===void 0&&J.stack!==void 0}function QE(Q,J,X){return`${Q.id}.${J.id}.${X.stack||X.type}`}function JE(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 GE(Q,J,X){let q=Q[J]||(Q[J]={});return q[X]||(q[X]={})}function zz(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 Tz(Q,J){let{chart:X,_cachedMeta:q}=Q,N=X._stacks||(X._stacks={}),{iScale:K,vScale:H,index:M}=q,F=K.axis,w=H.axis,z=QE(K,H,q),T=J.length,P;for(let I=0;I<T;++I){let A=J[I],{[F]:O,[w]:V}=A,D=A._stacks||(A._stacks={});P=D[w]=GE(N,z,O),P[M]=V,P._top=zz(P,H,!0,q.type),P._bottom=zz(P,H,!1,q.type);let h=P._visualValues||(P._visualValues={});h[M]=V}}function yU(Q,J){let X=Q.scales;return Object.keys(X).filter((q)=>X[q].axis===J).shift()}function XE(Q,J){return _8(Q,{active:!1,dataset:void 0,datasetIndex:J,index:J,mode:"default",type:"dataset"})}function qE(Q,J,X){return _8(Q,{active:!1,dataIndex:J,parsed:void 0,raw:void 0,element:X,index:J,mode:"default",type:"data"})}function BQ(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 gU=(Q)=>Q==="reset"||Q==="none",Lz=(Q,J)=>J?Q:Object.assign({},Q),YE=(Q,J,X)=>Q&&!J.hidden&&J._stacked&&{keys:MT(X,!0),values:null};class l3{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=fU(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)BQ(this._cachedMeta);this.index=Q}linkScales(){let Q=this.chart,J=this._cachedMeta,X=this.getDataset(),q=(z,T,P,I)=>z==="x"?T:z==="r"?I:P,N=J.xAxisID=c0(X.xAxisID,yU(Q,"x")),K=J.yAxisID=c0(X.yAxisID,yU(Q,"y")),H=J.rAxisID=c0(X.rAxisID,yU(Q,"r")),M=J.indexAxis,F=J.iAxisID=q(M,N,K,H),w=J.vAxisID=q(M,K,N,H);J.xScale=this.getScaleForId(N),J.yScale=this.getScaleForId(K),J.rScale=this.getScaleForId(H),J.iScale=this.getScaleForId(F),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)WU(this._data,this);if(Q._stacked)BQ(Q)}_dataCheck(){let Q=this.getDataset(),J=Q.data||(Q.data=[]),X=this._data;if(a0(J)){let q=this._cachedMeta;this._data=ZE(J,q)}else if(X!==J){if(X){WU(X,this);let q=this._cachedMeta;BQ(q),q._parsed=[]}if(J&&Object.isExtensible(J))sR(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=fU(J.vScale,J),J.stack!==X.stack)q=!0,BQ(J),J.stack=X.stack;if(this._resyncElements(Q),q||N!==J._stacked)Tz(this,J._parsed),J._stacked=fU(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,M=Q===0&&J===q.length?!0:X._sorted,F=Q>0&&X._parsed[Q-1],w,z,T;if(this._parsing===!1)X._parsed=q,X._sorted=!0,T=q;else{if(C1(q[Q]))T=this.parseArrayData(X,q,Q,J);else if(a0(q[Q]))T=this.parseObjectData(X,q,Q,J);else T=this.parsePrimitiveData(X,q,Q,J);let P=()=>z[H]===null||F&&z[H]<F[H];for(w=0;w<J;++w)if(X._parsed[w+Q]=z=T[w],M){if(P())M=!1;F=z}X._sorted=M}if(K)Tz(this,T)}parsePrimitiveData(Q,J,X,q){let{iScale:N,vScale:K}=Q,H=N.axis,M=K.axis,F=N.getLabels(),w=N===K,z=Array(q),T,P,I;for(T=0,P=q;T<P;++T)I=T+X,z[T]={[H]:w||N.parse(F[I],I),[M]:K.parse(J[I],I)};return z}parseArrayData(Q,J,X,q){let{xScale:N,yScale:K}=Q,H=Array(q),M,F,w,z;for(M=0,F=q;M<F;++M)w=M+X,z=J[w],H[M]={x:N.parse(z[0],w),y:K.parse(z[1],w)};return H}parseObjectData(Q,J,X,q){let{xScale:N,yScale:K}=Q,{xAxisKey:H="x",yAxisKey:M="y"}=this._parsing,F=Array(q),w,z,T,P;for(w=0,z=q;w<z;++w)T=w+X,P=J[T],F[w]={x:N.parse(v9(P,H),T),y:K.parse(v9(P,M),T)};return F}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:MT(q,!0),values:J._stacks[Q.axis]._visualValues};return Rz(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=Rz(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),M=YE(J,X,this.chart),F={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:w,max:z}=JE(H),T,P;function I(){P=q[T];let A=P[H.axis];return!b1(P[Q.axis])||w>A||z<A}for(T=0;T<K;++T){if(I())continue;if(this.updateRangeFromParsed(F,Q,P,M),N)break}if(N)for(T=K-1;T>=0;--T){if(I())continue;this.updateRangeFromParsed(F,Q,P,M);break}return F}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],b1(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=$E(c0(this.options.clip,eO(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,M=this._drawCount||q.length-H,F=this.options.drawActiveElementsOnTop,w;if(X.dataset)X.dataset.draw(Q,N,H,M);for(w=H;w<H+M;++w){let z=q[w];if(z.hidden)continue;if(z.active&&F)K.push(z);else z.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=qE(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=XE(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],M=this.enableOptionSharing&&X$(X);if(H)return Lz(H,M);let F=this.chart.config,w=F.datasetElementScopeKeys(this._type,Q),z=q?[`${Q}Hover`,"hover",Q,""]:[Q,""],T=F.getOptionScopes(this.getDataset(),w),P=Object.keys(k1.elements[Q]),I=()=>this.getContext(X,q,J),A=F.resolveNamedOptions(T,P,I,z);if(A.$shared)A.$shared=M,N[K]=Object.freeze(Lz(A,M));return A}_resolveAnimations(Q,J,X){let q=this.chart,N=this._cachedDataOpts,K=`animation-${J}`,H=N[K];if(H)return H;let M;if(q.options.animation!==!1){let w=this.chart.config,z=w.datasetAnimationScopeKeys(this._type,J),T=w.getOptionScopes(this.getDataset(),z);M=w.createResolver(T,this.getContext(Q,X,J))}let F=new $K(q,M&&M.animations);if(M&&M._cacheable)N[K]=Object.freeze(F);return F}getSharedOptions(Q){if(!Q.$shared)return;return this._sharedOptions||(this._sharedOptions=Object.assign({},Q))}includeOptions(Q,J){return!J||gU(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(gU(q))Object.assign(Q,X);else this._resolveAnimations(J,q).update(Q,X)}updateSharedOptions(Q,J,X){if(Q&&!gU(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,M,F]of this._syncList)this[H](M,F);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,M=(F)=>{F.length+=J;for(H=F.length-1;H>=K;H--)F[H]=F[H-J]};M(N);for(H=Q;H<K;++H)N[H]=new this.dataElementType;if(this._parsing)M(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)BQ(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 NE(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=wU(q.sort((N,K)=>N-K))}return Q._cache.$bar}function UE(Q){let J=Q.iScale,X=NE(J,Q.type),q=J._length,N,K,H,M,F=()=>{if(H===32767||H===-32768)return;if(X$(M))q=Math.min(q,Math.abs(H-M)||q);M=H};for(N=0,K=X.length;N<K;++N)H=J.getPixelForValue(X[N]),F();M=void 0;for(N=0,K=J.ticks.length;N<K;++N)H=J.getPixelForTick(N),F();return q}function KE(Q,J,X,q){let N=X.barThickness,K,H;if($1(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 BE(Q,J,X,q){let N=J.pixels,K=N[Q],H=Q>0?N[Q-1]:null,M=Q<N.length-1?N[Q+1]:null,F=X.categoryPercentage;if(H===null)H=K-(M===null?J.end-J.start:M-K);if(M===null)M=K+K-H;let w=K-(K-Math.min(H,M))/2*F;return{chunk:Math.abs(M-H)/2*F/q,ratio:X.barPercentage,start:w}}function HE(Q,J,X,q){let N=X.parse(Q[0],q),K=X.parse(Q[1],q),H=Math.min(N,K),M=Math.max(N,K),F=H,w=M;if(Math.abs(H)>Math.abs(M))F=M,w=H;J[X.axis]=w,J._custom={barStart:F,barEnd:w,start:N,end:K,min:H,max:M}}function FT(Q,J,X,q){if(C1(Q))HE(Q,J,X,q);else J[X.axis]=X.parse(Q,q);return J}function Pz(Q,J,X,q){let{iScale:N,vScale:K}=Q,H=N.getLabels(),M=N===K,F=[],w,z,T,P;for(w=X,z=X+q;w<z;++w)P=J[w],T={},T[N.axis]=M||N.parse(H[w],w),F.push(FT(P,T,K,w));return F}function hU(Q){return Q&&Q.barStart!==void 0&&Q.barEnd!==void 0}function ME(Q,J,X){if(Q!==0)return G4(Q);return(J.isHorizontal()?1:-1)*(J.min>=X?1:-1)}function FE(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 WE(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:M,reverse:F,top:w,bottom:z}=FE(Q);if(N==="middle"&&X)if(Q.enableBorderRadius=!0,(X._top||0)===q)N=w;else if((X._bottom||0)===q)N=z;else K[_z(z,H,M,F)]=!0,N=w;K[_z(N,H,M,F)]=!0,Q.borderSkipped=K}function _z(Q,J,X,q){if(q)Q=wE(Q,J,X),Q=Cz(Q,X,J);else Q=Cz(Q,J,X);return Q}function wE(Q,J,X){return Q===J?X:Q===X?J:Q}function Cz(Q,J,X){return Q==="start"?J:Q==="end"?X:Q}function RE(Q,{inflateAmount:J},X){Q.inflateAmount=J==="auto"?X===1?0.33:0:J}class ZK extends l3{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 Pz(Q,J,X,q)}parseArrayData(Q,J,X,q){return Pz(Q,J,X,q)}parseObjectData(Q,J,X,q){let{iScale:N,vScale:K}=Q,{xAxisKey:H="x",yAxisKey:M="y"}=this._parsing,F=N.axis==="x"?H:M,w=K.axis==="x"?H:M,z=[],T,P,I,A;for(T=X,P=X+q;T<P;++T)A=J[T],I={},I[N.axis]=N.parse(v9(A,F),T),z.push(FT(v9(A,w),I,K,T));return z}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=hU(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,M=H.getBasePixel(),F=H.isHorizontal(),w=this._getRuler(),{sharedOptions:z,includeOptions:T}=this._getSharedOptions(J,q);for(let P=J;P<J+X;P++){let I=this.getParsed(P),A=N||$1(I[H.axis])?{base:M,head:M}:this._calculateBarValuePixels(P),O=this._calculateBarIndexPixels(P,w),V=(I._stacks||{})[H.axis],D={horizontal:F,base:A.base,enableBorderRadius:!V||hU(I._custom)||K===V._top||K===V._bottom,x:F?A.head:O.center,y:F?O.center:A.head,height:F?O.size:Math.abs(A.size),width:F?Math.abs(A.size):O.size};if(T)D.options=z||this.resolveDataElementOptions(P,Q[P].active?"active":q);let h=D.options||Q[P].options;WE(D,h,V,K),RE(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),M=H&&H[X.axis],F=(w)=>{let z=w._parsed.find((P)=>P[X.axis]===M),T=z&&z[w.vScale.axis];if($1(T)||isNaN(T))return!0};for(let w of q){if(J!==void 0&&F(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[c0(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||UE(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,M=this.getParsed(Q),F=M._custom,w=hU(F),z=M[J.axis],T=0,P=X?this.applyStack(J,M,X):z,I,A;if(P!==z)T=P-z,P=z;if(w){if(z=F.barStart,P=F.barEnd-F.barStart,z!==0&&G4(z)!==G4(F.barEnd))T=0;T+=z}let O=!$1(N)&&!w?N:T,V=J.getPixelForValue(O);if(this.chart.getDataVisibility(Q))I=J.getPixelForValue(T+P);else I=V;if(A=I-V,Math.abs(A)<K){if(A=ME(A,J,H)*K,z===H)V-=A/2;let D=J.getPixelForDecimal(0),h=J.getPixelForDecimal(1),p=Math.min(D,h),s=Math.max(D,h);if(V=Math.max(Math.min(V,s),p),I=V+A,X&&!w)M._stacks[J.axis]._visualValues[q]=J.getValueForPixel(I)-J.getValueForPixel(V)}if(V===J.getPixelForValue(H)){let D=G4(A)*J.getLineWidthForValue(H)/2;V+=D,A-=D}return{size:A,base:V,head:I,center:I+A/2}}_calculateBarIndexPixels(Q,J){let X=J.scale,q=this.options,N=q.skipNull,K=c0(q.maxBarThickness,1/0),H,M,F=this._getAxisCount();if(J.grouped){let w=N?this._getStackCount(Q):J.stackCount,z=q.barThickness==="flex"?BE(Q,J,q,w*F):KE(Q,J,q,w*F),T=this.chart.options.indexAxis==="x"?this.getDataset().xAxisID:this.getDataset().yAxisID,P=this._getAxis().indexOf(c0(T,this.getFirstScaleIdForIndexAxis())),I=this._getStackIndex(this.index,this._cachedMeta.stack,N?Q:void 0)+P;H=z.start+z.chunk*I+z.chunk/2,M=Math.min(K,z.chunk*z.ratio)}else H=X.getPixelForValue(this.getParsed(Q)[X.axis],Q),M=Math.min(K,J.min*J.ratio);return{base:H-M/2,head:H+M/2,center:H,size:M}}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 QK extends l3{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:M}=aR(J,q,K);if(this._drawStart=H,this._drawCount=M,iR(J))H=0,M=q.length;X._chart=this.chart,X._datasetIndex=this.index,X._decimated=!!N._decimated,X.points=q;let F=this.resolveDatasetElementOptions(Q);if(!this.options.showLine)F.borderWidth=0;F.segment=this.options.segment,this.updateElement(X,void 0,{animated:!K,options:F},Q),this.updateElements(q,H,M,Q)}updateElements(Q,J,X,q){let N=q==="reset",{iScale:K,vScale:H,_stacked:M,_dataset:F}=this._cachedMeta,{sharedOptions:w,includeOptions:z}=this._getSharedOptions(J,q),T=K.axis,P=H.axis,{spanGaps:I,segment:A}=this.options,O=Y$(I)?I:Number.POSITIVE_INFINITY,V=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 o=Q[s],Q0=V?o:{};if(s<J||s>=D){Q0.skip=!0;continue}let t=this.getParsed(s),a=$1(t[P]),q0=Q0[T]=K.getPixelForValue(t[T],s),d=Q0[P]=N||a?H.getBasePixel():H.getPixelForValue(M?this.applyStack(H,t,M):t[P],s);if(Q0.skip=isNaN(q0)||isNaN(d)||a,Q0.stop=s>0&&Math.abs(t[T]-p[T])>O,A)Q0.parsed=t,Q0.raw=F.data[s];if(z)Q0.options=w||this.resolveDataElementOptions(s,o.active?"active":q);if(!V)this.updateElement(o,s,Q0,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 k9(){throw Error("This method is not implemented: Check that a complete date adapter is provided.")}class JK{static override(Q){Object.assign(JK.prototype,Q)}options;constructor(Q){this.options=Q||{}}init(){}formats(){return k9()}parse(){return k9()}format(){return k9()}add(){return k9()}diff(){return k9()}startOf(){return k9()}endOf(){return k9()}}var zE={_date:JK};function TE(Q,J,X,q){let{controller:N,data:K,_sorted:H}=Q,M=N._cachedMeta.iScale,F=Q.dataset?Q.dataset.options?Q.dataset.options.spanGaps:null:null;if(M&&J===M.axis&&J!=="r"&&H&&K.length){let w=M._reversePixels?cR:V2;if(!q){let z=w(K,J,X);if(F){let{vScale:T}=N._cachedMeta,{_parsed:P}=Q,I=P.slice(0,z.lo+1).reverse().findIndex((O)=>!$1(O[T.axis]));z.lo-=Math.max(0,I);let A=P.slice(z.hi).findIndex((O)=>!$1(O[T.axis]));z.hi+=Math.max(0,A)}return z}else if(N._sharedOptions){let z=K[0],T=typeof z.getRange==="function"&&z.getRange(J);if(T){let P=w(K,J,X-T),I=w(K,J,X+T);return{lo:P.lo,hi:I.hi}}}}return{lo:0,hi:K.length-1}}function _Q(Q,J,X,q,N){let K=Q.getSortedVisibleDatasetMetas(),H=X[J];for(let M=0,F=K.length;M<F;++M){let{index:w,data:z}=K[M],{lo:T,hi:P}=TE(K[M],J,H,N);for(let I=T;I<=P;++I){let A=z[I];if(!A.skip)q(A,w,I)}}}function LE(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 uU(Q,J,X,q,N){let K=[];if(!N&&!Q.isPointInArea(J))return K;return _Q(Q,X,J,function(M,F,w){if(!N&&!f4(M,Q.chartArea,0))return;if(M.inRange(J.x,J.y,q))K.push({element:M,datasetIndex:F,index:w})},!0),K}function PE(Q,J,X,q){let N=[];function K(H,M,F){let{startAngle:w,endAngle:z}=H.getProps(["startAngle","endAngle"],q),{angle:T}=dR(H,{x:J.x,y:J.y});if(FU(T,w,z))N.push({element:H,datasetIndex:M,index:F})}return _Q(Q,X,J,K),N}function _E(Q,J,X,q,N,K){let H=[],M=LE(X),F=Number.POSITIVE_INFINITY;function w(z,T,P){let I=z.inRange(J.x,J.y,N);if(q&&!I)return;let A=z.getCenterPoint(N);if(!(!!K||Q.isPointInArea(A))&&!I)return;let V=M(J,A);if(V<F)H=[{element:z,datasetIndex:T,index:P}],F=V;else if(V===F)H.push({element:z,datasetIndex:T,index:P})}return _Q(Q,X,J,w),H}function xU(Q,J,X,q,N,K){if(!K&&!Q.isPointInArea(J))return[];return X==="r"&&!q?PE(Q,J,X,N):_E(Q,J,X,q,N,K)}function Iz(Q,J,X,q,N){let K=[],H=X==="x"?"inXRange":"inYRange",M=!1;if(_Q(Q,X,J,(F,w,z)=>{if(F[H]&&F[H](J[X],N))K.push({element:F,datasetIndex:w,index:z}),M=M||F.inRange(J.x,J.y,N)}),q&&!M)return[];return K}var CE={evaluateInteractionItems:_Q,modes:{index(Q,J,X,q){let N=D2(J,Q),K=X.axis||"x",H=X.includeInvisible||!1,M=X.intersect?uU(Q,N,K,q,H):xU(Q,N,K,!1,q,H),F=[];if(!M.length)return[];return Q.getSortedVisibleDatasetMetas().forEach((w)=>{let z=M[0].index,T=w.data[z];if(T&&!T.skip)F.push({element:T,datasetIndex:w.index,index:z})}),F},dataset(Q,J,X,q){let N=D2(J,Q),K=X.axis||"xy",H=X.includeInvisible||!1,M=X.intersect?uU(Q,N,K,q,H):xU(Q,N,K,!1,q,H);if(M.length>0){let F=M[0].datasetIndex,w=Q.getDatasetMeta(F).data;M=[];for(let z=0;z<w.length;++z)M.push({element:w[z],datasetIndex:F,index:z})}return M},point(Q,J,X,q){let N=D2(J,Q),K=X.axis||"xy",H=X.includeInvisible||!1;return uU(Q,N,K,q,H)},nearest(Q,J,X,q){let N=D2(J,Q),K=X.axis||"xy",H=X.includeInvisible||!1;return xU(Q,N,K,X.intersect,q,H)},x(Q,J,X,q){let N=D2(J,Q);return Iz(Q,N,"x",X.intersect,q)},y(Q,J,X,q){let N=D2(J,Q);return Iz(Q,N,"y",X.intersect,q)}}},WT=["left","top","right","bottom"];function HQ(Q,J){return Q.filter((X)=>X.pos===J)}function Vz(Q,J){return Q.filter((X)=>WT.indexOf(X.pos)===-1&&X.box.axis===J)}function MQ(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 IE(Q){let J=[],X,q,N,K,H,M;for(X=0,q=(Q||[]).length;X<q;++X)N=Q[X],{position:K,options:{stack:H,stackWeight:M=1}}=N,J.push({index:X,box:N,pos:K,horizontal:N.isHorizontal(),weight:N.weight,stack:H&&K+H,stackWeight:M});return J}function VE(Q){let J={};for(let X of Q){let{stack:q,pos:N,stackWeight:K}=X;if(!q||!WT.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 OE(Q,J){let X=VE(Q),{vBoxMaxWidth:q,hBoxMaxHeight:N}=J,K,H,M;for(K=0,H=Q.length;K<H;++K){M=Q[K];let{fullSize:F}=M.box,w=X[M.stack],z=w&&M.stackWeight/w.weight;if(M.horizontal)M.width=z?z*q:F&&J.availableWidth,M.height=N;else M.width=q,M.height=z?z*N:F&&J.availableHeight}return X}function EE(Q){let J=IE(Q),X=MQ(J.filter((w)=>w.box.fullSize),!0),q=MQ(HQ(J,"left"),!0),N=MQ(HQ(J,"right")),K=MQ(HQ(J,"top"),!0),H=MQ(HQ(J,"bottom")),M=Vz(J,"x"),F=Vz(J,"y");return{fullSize:X,leftAndTop:q.concat(K),rightAndBottom:N.concat(F).concat(H).concat(M),chartArea:HQ(J,"chartArea"),vertical:q.concat(N).concat(F),horizontal:K.concat(H).concat(M)}}function Oz(Q,J,X,q){return Math.max(Q[X],J[X])+Math.max(Q[q],J[q])}function wT(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 AE(Q,J,X,q){let{pos:N,box:K}=X,H=Q.maxPadding;if(!a0(N)){if(X.size)Q[N]-=X.size;let T=q[X.stack]||{size:0,count:1};T.size=Math.max(T.size,X.horizontal?K.height:K.width),X.size=T.size/T.count,Q[N]+=X.size}if(K.getPadding)wT(H,K.getPadding());let M=Math.max(0,J.outerWidth-Oz(H,Q,"left","right")),F=Math.max(0,J.outerHeight-Oz(H,Q,"top","bottom")),w=M!==Q.w,z=F!==Q.h;return Q.w=M,Q.h=F,X.horizontal?{same:w,other:z}:{same:z,other:w}}function SE(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 jE(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 wQ(Q,J,X,q){let N=[],K,H,M,F,w,z;for(K=0,H=Q.length,w=0;K<H;++K){M=Q[K],F=M.box,F.update(M.width||J.w,M.height||J.h,jE(M.horizontal,J));let{same:T,other:P}=AE(J,X,M,q);if(w|=T&&N.length,z=z||P,!F.fullSize)N.push(M)}return w&&wQ(N,J,X,q)||z}function g3(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 Ez(Q,J,X,q){let N=X.padding,{x:K,y:H}=J;for(let M of Q){let F=M.box,w=q[M.stack]||{count:1,placed:0,weight:1},z=M.stackWeight/w.weight||1;if(M.horizontal){let T=J.w*z,P=w.size||F.height;if(X$(w.start))H=w.start;if(F.fullSize)g3(F,N.left,H,X.outerWidth-N.right-N.left,P);else g3(F,J.left+w.placed,H,T,P);w.start=H,w.placed+=T,H=F.bottom}else{let T=J.h*z,P=w.size||F.width;if(X$(w.start))K=w.start;if(F.fullSize)g3(F,K,N.top,P,X.outerHeight-N.bottom-N.top);else g3(F,K,J.top+w.placed,P,T);w.start=K,w.placed+=T,K=F.right}}J.x=K,J.y=H}var x6={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=R5(Q.options.layout.padding),K=Math.max(J-N.width,0),H=Math.max(X-N.height,0),M=EE(Q.boxes),F=M.vertical,w=M.horizontal;K1(Q.boxes,(O)=>{if(typeof O.beforeLayout==="function")O.beforeLayout()});let z=F.reduce((O,V)=>V.box.options&&V.box.options.display===!1?O:O+1,0)||1,T=Object.freeze({outerWidth:J,outerHeight:X,padding:N,availableWidth:K,availableHeight:H,vBoxMaxWidth:K/2/z,hBoxMaxHeight:H/2}),P=Object.assign({},N);wT(P,R5(q));let I=Object.assign({maxPadding:P,w:K,h:H,x:N.left,y:N.top},N),A=OE(F.concat(w),T);if(wQ(M.fullSize,I,T,A),wQ(F,I,T,A),wQ(w,I,T,A))wQ(F,I,T,A);SE(I),Ez(M.leftAndTop,I,T,A),I.x+=I.w,I.y+=I.h,Ez(M.rightAndBottom,I,T,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},K1(M.chartArea,(O)=>{let V=O.box;Object.assign(V,Q.chartArea),V.update(I.w,I.h,{left:0,top:0,right:0,bottom:0})})}};class GK{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 RT extends GK{acquireContext(Q){return Q&&Q.getContext&&Q.getContext("2d")||null}updateConfig(Q){Q.options.animation=!1}}var d3="$chartjs",DE={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Az=(Q)=>Q===null||Q==="";function vE(Q,J){let X=Q.style,q=Q.getAttribute("height"),N=Q.getAttribute("width");if(Q[d3]={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",Az(N)){let K=SU(Q,"width");if(K!==void 0)Q.width=K}if(Az(q))if(Q.style.height==="")Q.height=Q.width/(J||2);else{let K=SU(Q,"height");if(K!==void 0)Q.height=K}return Q}var zT=Kz?{passive:!0}:!1;function bE(Q,J,X){if(Q)Q.addEventListener(J,X,zT)}function kE(Q,J,X){if(Q&&Q.canvas)Q.canvas.removeEventListener(J,X,zT)}function fE(Q,J){let X=DE[Q.type]||Q.type,{x:q,y:N}=D2(Q,J);return{type:X,chart:J,native:Q,x:q!==void 0?q:null,y:N!==void 0?N:null}}function c3(Q,J){for(let X of Q)if(X===J||X.contains(J))return!0}function yE(Q,J,X){let q=Q.canvas,N=new MutationObserver((K)=>{let H=!1;for(let M of K)H=H||c3(M.addedNodes,q),H=H&&!c3(M.removedNodes,q);if(H)X()});return N.observe(document,{childList:!0,subtree:!0}),N}function gE(Q,J,X){let q=Q.canvas,N=new MutationObserver((K)=>{let H=!1;for(let M of K)H=H||c3(M.removedNodes,q),H=H&&!c3(M.addedNodes,q);if(H)X()});return N.observe(document,{childList:!0,subtree:!0}),N}var TQ=new Map,Sz=0;function TT(){let Q=window.devicePixelRatio;if(Q===Sz)return;Sz=Q,TQ.forEach((J,X)=>{if(X.currentDevicePixelRatio!==Q)J()})}function hE(Q,J){if(!TQ.size)window.addEventListener("resize",TT);TQ.set(Q,J)}function uE(Q){if(TQ.delete(Q),!TQ.size)window.removeEventListener("resize",TT)}function xE(Q,J,X){let q=Q.canvas,N=q&&f3(q);if(!N)return;let K=zU((M,F)=>{let w=N.clientWidth;if(X(M,F),w<N.clientWidth)X()},window),H=new ResizeObserver((M)=>{let F=M[0],w=F.contentRect.width,z=F.contentRect.height;if(w===0&&z===0)return;K(w,z)});return H.observe(N),hE(Q,K),H}function mU(Q,J,X){if(X)X.disconnect();if(J==="resize")uE(Q)}function mE(Q,J,X){let q=Q.canvas,N=zU((K)=>{if(Q.ctx!==null)X(fE(K,Q))},Q);return bE(q,J,N),N}class LT extends GK{acquireContext(Q,J){let X=Q&&Q.getContext&&Q.getContext("2d");if(X&&X.canvas===Q)return vE(Q,J),X;return null}releaseContext(Q){let J=Q.canvas;if(!J[d3])return!1;let X=J[d3].initial;["height","width"].forEach((N)=>{let K=X[N];if($1(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[d3],!0}addEventListener(Q,J,X){this.removeEventListener(Q,J);let q=Q.$proxies||(Q.$proxies={}),K={attach:yE,detach:gE,resize:xE}[J]||mE;q[J]=K(Q,J,X)}removeEventListener(Q,J){let X=Q.$proxies||(Q.$proxies={}),q=X[J];if(!q)return;({attach:mU,detach:mU,resize:mU}[J]||kE)(Q,J,q),X[J]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(Q,J,X,q){return Uz(Q,J,X,q)}isAttached(Q){let J=Q&&f3(Q);return!!(J&&J.isConnected)}}function dE(Q){if(!k3()||typeof OffscreenCanvas<"u"&&Q instanceof OffscreenCanvas)return RT;return LT}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 Y$(this.x)&&Y$(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 pE(Q,J){let X=Q.options.ticks,q=cE(Q),N=Math.min(X.maxTicksLimit||q,q),K=X.major.enabled?rE(J):[],H=K.length,M=K[0],F=K[H-1],w=[];if(H>N)return sE(J,w,K,H/N),w;let z=lE(K,J,N);if(H>0){let T,P,I=H>1?Math.round((F-M)/(H-1)):null;h3(J,w,z,$1(I)?0:M-I,M);for(T=0,P=H-1;T<P;T++)h3(J,w,z,K[T],K[T+1]);return h3(J,w,z,F,$1(I)?J.length:F+I),w}return h3(J,w,z),w}function cE(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 lE(Q,J,X){let q=nE(Q),N=J.length/X;if(!q)return Math.max(N,1);let K=xR(q);for(let H=0,M=K.length-1;H<M;H++){let F=K[H];if(F>N)return F}return Math.max(N,1)}function rE(Q){let J=[],X,q;for(X=0,q=Q.length;X<q;X++)if(Q[X].major)J.push(X);return J}function sE(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 h3(Q,J,X,q,N){let K=c0(q,0),H=Math.min(c0(N,Q.length),Q.length),M=0,F,w,z;if(X=Math.ceil(X),N)F=N-q,X=F/Math.floor(F/X);z=K;while(z<0)M++,z=Math.round(K+M*X);for(w=Math.max(K,0);w<H;w++)if(w===z)J.push(Q[w]),M++,z=Math.round(K+M*X)}function nE(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 oE=(Q)=>Q==="left"?"right":Q==="right"?"left":Q,jz=(Q,J,X)=>J==="top"||J==="left"?Q[J]+X:Q[J]-X,Dz=(Q,J)=>Math.min(J||Q,Q);function vz(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 aE(Q,J,X){let q=Q.ticks.length,N=Math.min(J,q-1),K=Q._startPixel,H=Q._endPixel,M=0.000001,F=Q.getPixelForTick(N),w;if(X){if(q===1)w=Math.max(F-K,H-F);else if(J===0)w=(Q.getPixelForTick(1)-F)/2;else w=(F-Q.getPixelForTick(N-1))/2;if(F+=N<J?w:-w,F<K-0.000001||F>H+0.000001)return}return F}function iE(Q,J){K1(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 FQ(Q){return Q.drawTicks?Q.tickLength:0}function bz(Q,J){if(!Q.display)return 0;let X=i1(Q.font,J),q=R5(Q.padding);return(C1(Q.text)?Q.text.length:1)*X.lineHeight+q.height}function tE(Q,J){return _8(Q,{scale:J,type:"scale"})}function eE(Q,J,X){return _8(Q,{tick:X,index:J,type:"tick"})}function $A(Q,J,X){let q=S3(Q);if(X&&J!=="right"||!X&&J==="right")q=oE(q);return q}function ZA(Q,J,X,q){let{top:N,left:K,bottom:H,right:M,chart:F}=Q,{chartArea:w,scales:z}=F,T=0,P,I,A,O=H-N,V=M-K;if(Q.isHorizontal()){if(I=w5(q,K,M),a0(X)){let D=Object.keys(X)[0],h=X[D];A=z[D].getPixelForValue(h)+O-J}else if(X==="center")A=(w.bottom+w.top)/2+O-J;else A=jz(Q,X,J);P=M-K}else{if(a0(X)){let D=Object.keys(X)[0],h=X[D];I=z[D].getPixelForValue(h)-V+J}else if(X==="center")I=(w.left+w.right)/2-V+J;else I=jz(Q,X,J);A=w5(q,H,N),T=X==="left"?-s5:s5}return{titleX:I,titleY:A,maxWidth:P,rotation:T}}class y9 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=a5(Q,Number.POSITIVE_INFINITY),J=a5(J,Number.NEGATIVE_INFINITY),X=a5(X,Number.POSITIVE_INFINITY),q=a5(q,Number.NEGATIVE_INFINITY),{min:a5(Q,X),max:a5(J,q),minDefined:b1(Q),maxDefined:b1(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 M=0,F=H.length;M<F;++M){if(K=H[M].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:a5(J,a5(X,J)),max:a5(X,a5(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(){T1(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=Jz(this,N,q),this._dataLimitsCached=!0;this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();let M=H<this.ticks.length;if(this._convertTicksToLabels(M?vz(this.ticks,H):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),K.display&&(K.autoSkip||K.source==="auto"))this.ticks=pE(this,this.ticks),this._labelSizes=null,this.afterAutoSkip();if(M)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(){T1(this.options.afterUpdate,[this])}beforeSetDimensions(){T1(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(){T1(this.options.afterSetDimensions,[this])}_callHooks(Q){this.chart.notifyPlugins(Q,this.getContext()),T1(this.options[Q],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){T1(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=T1(J.callback,[N.value,X,Q],this)}afterTickToLabelConversion(){T1(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){T1(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){let Q=this.options,J=Q.ticks,X=Dz(this.ticks.length,Q.ticks.maxTicksLimit),q=J.minRotation||0,N=J.maxRotation,K=q,H,M,F;if(!this._isVisible()||!J.display||q>=N||X<=1||!this.isHorizontal()){this.labelRotation=q;return}let w=this._getLabelSizes(),z=w.widest.width,T=w.highest.height,P=o5(this.chart.width-z,0,this.maxWidth);if(H=Q.offset?this.maxWidth/X:P/(X-1),z+6>H)H=P/(X-(Q.offset?0.5:1)),M=this.maxHeight-FQ(Q.grid)-J.padding-bz(Q.title,this.chart.options.font),F=Math.sqrt(z*z+T*T),K=E3(Math.min(Math.asin(o5((w.highest.height+6)/H,-1,1)),Math.asin(o5(M/F,-1,1))-Math.asin(o5(T/F,-1,1)))),K=Math.max(q,Math.min(N,K));this.labelRotation=K}afterCalculateLabelRotation(){T1(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){T1(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 M=bz(q,J.options.font);if(H)Q.width=this.maxWidth,Q.height=FQ(N)+M;else Q.height=this.maxHeight,Q.width=FQ(N)+M;if(X.display&&this.ticks.length){let{first:F,last:w,widest:z,highest:T}=this._getLabelSizes(),P=X.padding*2,I=L8(this.labelRotation),A=Math.cos(I),O=Math.sin(I);if(H){let V=X.mirror?0:O*z.width+A*T.height;Q.height=Math.min(this.maxHeight,Q.height+V+P)}else{let V=X.mirror?0:A*z.width+O*T.height;Q.width=Math.min(this.maxWidth,Q.width+V+P)}this._calculatePadding(F,w,O,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,M=this.labelRotation!==0,F=H!=="top"&&this.axis==="x";if(this.isHorizontal()){let w=this.getPixelForTick(0)-this.left,z=this.right-this.getPixelForTick(this.ticks.length-1),T=0,P=0;if(M)if(F)T=q*Q.width,P=X*J.height;else T=X*Q.height,P=q*J.width;else if(N==="start")P=J.width;else if(N==="end")T=Q.width;else if(N!=="inner")T=Q.width/2,P=J.width/2;this.paddingLeft=Math.max((T-w+K)*this.width/(this.width-w),0),this.paddingRight=Math.max((P-z+K)*this.width/(this.width-z),0)}else{let w=J.height/2,z=Q.height/2;if(N==="start")w=0,z=Q.height;else if(N==="end")w=J.height,z=0;this.paddingTop=w+K,this.paddingBottom=z+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(){T1(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($1(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=vz(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=[],M=Math.floor(J/Dz(J,X)),F=0,w=0,z,T,P,I,A,O,V,D,h,p,s;for(z=0;z<J;z+=M){if(I=Q[z].label,A=this._resolveTickFontOptions(z),q.font=O=A.string,V=N[O]=N[O]||{data:{},gc:[]},D=A.lineHeight,h=p=0,!$1(I)&&!C1(I))h=XQ(q,V.data,V.gc,h,I),p=D;else if(C1(I)){for(T=0,P=I.length;T<P;++T)if(s=I[T],!$1(s)&&!C1(s))h=XQ(q,V.data,V.gc,h,s),p+=D}K.push(h),H.push(p),F=Math.max(h,F),w=Math.max(p,w)}iE(N,J);let o=K.indexOf(F),Q0=H.indexOf(w),t=(a)=>({width:K[a]||0,height:H[a]||0});return{first:t(0),last:t(J-1),widest:t(o),highest:t(Q0),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 pR(this._alignToPixels?A2(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=eE(this.getContext(),Q,X))}return this.$context||(this.$context=tE(this.chart.getContext(),this))}_tickSize(){let Q=this.options.ticks,J=L8(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,M=N?N.highest.height+K:0;return this.isHorizontal()?M*X>H*q?H/X:M/q:M*q<H*X?M/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,M=N.offset,F=this.isHorizontal(),z=this.ticks.length+(M?1:0),T=FQ(N),P=[],I=H.setContext(this.getContext()),A=I.display?I.width:0,O=A/2,V=function(l){return A2(X,l,A)},D,h,p,s,o,Q0,t,a,q0,d,K0,L0;if(K==="top")D=V(this.bottom),Q0=this.bottom-T,a=D-O,d=V(Q.top)+O,L0=Q.bottom;else if(K==="bottom")D=V(this.top),d=Q.top,L0=V(Q.bottom)-O,Q0=D+O,a=this.top+T;else if(K==="left")D=V(this.right),o=this.right-T,t=D-O,q0=V(Q.left)+O,K0=Q.right;else if(K==="right")D=V(this.left),q0=Q.left,K0=V(Q.right)-O,o=D+O,t=this.left+T;else if(J==="x"){if(K==="center")D=V((Q.top+Q.bottom)/2+0.5);else if(a0(K)){let l=Object.keys(K)[0],X0=K[l];D=V(this.chart.scales[l].getPixelForValue(X0))}d=Q.top,L0=Q.bottom,Q0=D+O,a=Q0+T}else if(J==="y"){if(K==="center")D=V((Q.left+Q.right)/2);else if(a0(K)){let l=Object.keys(K)[0],X0=K[l];D=V(this.chart.scales[l].getPixelForValue(X0))}o=D-O,t=o-T,q0=Q.left,K0=Q.right}let _0=c0(q.ticks.maxTicksLimit,z),D0=Math.max(1,Math.ceil(z/_0));for(h=0;h<z;h+=D0){let l=this.getContext(h),X0=N.setContext(l),B0=H.setContext(l),r0=X0.lineWidth,u0=X0.color,v=B0.dash||[],n=B0.dashOffset,H0=X0.tickWidth,F0=X0.tickColor,x0=X0.tickBorderDash||[],y1=X0.tickBorderDashOffset;if(p=aE(this,h,M),p===void 0)continue;if(s=A2(X,p,r0),F)o=t=q0=K0=s;else Q0=a=d=L0=s;P.push({tx1:o,ty1:Q0,tx2:t,ty2:a,x1:q0,y1:d,x2:K0,y2:L0,width:r0,color:u0,borderDash:v,borderDashOffset:n,tickWidth:H0,tickColor:F0,tickBorderDash:x0,tickBorderDashOffset:y1})}return this._ticksLength=z,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:M,crossAlign:F,padding:w,mirror:z}=N,T=FQ(X.grid),P=T+w,I=z?-w:P,A=-L8(this.labelRotation),O=[],V,D,h,p,s,o,Q0,t,a,q0,d,K0,L0="middle";if(q==="top")o=this.bottom-I,Q0=this._getXAxisLabelAlignment();else if(q==="bottom")o=this.top+I,Q0=this._getXAxisLabelAlignment();else if(q==="left"){let D0=this._getYAxisLabelAlignment(T);Q0=D0.textAlign,s=D0.x}else if(q==="right"){let D0=this._getYAxisLabelAlignment(T);Q0=D0.textAlign,s=D0.x}else if(J==="x"){if(q==="center")o=(Q.top+Q.bottom)/2+P;else if(a0(q)){let D0=Object.keys(q)[0],l=q[D0];o=this.chart.scales[D0].getPixelForValue(l)+P}Q0=this._getXAxisLabelAlignment()}else if(J==="y"){if(q==="center")s=(Q.left+Q.right)/2-P;else if(a0(q)){let D0=Object.keys(q)[0],l=q[D0];s=this.chart.scales[D0].getPixelForValue(l)}Q0=this._getYAxisLabelAlignment(T).textAlign}if(J==="y"){if(M==="start")L0="top";else if(M==="end")L0="bottom"}let _0=this._getLabelSizes();for(V=0,D=H.length;V<D;++V){h=H[V],p=h.label;let D0=N.setContext(this.getContext(V));t=this.getPixelForTick(V)+N.labelOffset,a=this._resolveTickFontOptions(V),q0=a.lineHeight,d=C1(p)?p.length:1;let l=d/2,X0=D0.color,B0=D0.textStrokeColor,r0=D0.textStrokeWidth,u0=Q0;if(K){if(s=t,Q0==="inner")if(V===D-1)u0=!this.options.reverse?"right":"left";else if(V===0)u0=!this.options.reverse?"left":"right";else u0="center";if(q==="top")if(F==="near"||A!==0)K0=-d*q0+q0/2;else if(F==="center")K0=-_0.highest.height/2-l*q0+q0;else K0=-_0.highest.height+q0/2;else if(F==="near"||A!==0)K0=q0/2;else if(F==="center")K0=_0.highest.height/2-l*q0;else K0=_0.highest.height-d*q0;if(z)K0*=-1;if(A!==0&&!D0.showLabelBackdrop)s+=q0/2*Math.sin(A)}else o=t,K0=(1-d)*q0/2;let v;if(D0.showLabelBackdrop){let n=R5(D0.backdropPadding),H0=_0.heights[V],F0=_0.widths[V],x0=K0-n.top,y1=0-n.left;switch(L0){case"middle":x0-=H0/2;break;case"bottom":x0-=H0;break}switch(Q0){case"center":y1-=F0/2;break;case"right":y1-=F0;break;case"inner":if(V===D-1)y1-=F0;else if(V>0)y1-=F0/2;break}v={left:y1,top:x0,width:F0+n.width,height:H0+n.height,color:D0.backdropColor}}O.push({label:p,font:a,textOffset:K0,options:{rotation:A,color:X0,strokeColor:B0,strokeWidth:r0,textAlign:u0,textBaseline:L0,translation:[s,o],backdrop:v}})}return O}_getXAxisLabelAlignment(){let{position:Q,ticks:J}=this.options;if(-L8(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,M=K.widest.width,F,w;if(J==="left")if(q)if(w=this.right+N,X==="near")F="left";else if(X==="center")F="center",w+=M/2;else F="right",w+=M;else if(w=this.right-H,X==="near")F="right";else if(X==="center")F="center",w-=M/2;else F="left",w=this.left;else if(J==="right")if(q)if(w=this.left+N,X==="near")F="right";else if(X==="center")F="center",w-=M/2;else F="left",w-=M;else if(w=this.left+H,X==="near")F="left";else if(X==="center")F="center",w+=M/2;else F="right",w=this.right;else F="right";return{textAlign:F,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=(M,F,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(M.x,M.y),X.lineTo(F.x,F.y),X.stroke(),X.restore()};if(J.display)for(N=0,K=q.length;N<K;++N){let M=q[N];if(J.drawOnChartArea)H({x:M.x1,y:M.y1},{x:M.x2,y:M.y2},M);if(J.drawTicks)H({x:M.tx1,y:M.ty1},{x:M.tx2,y:M.ty2},{color:M.tickColor,width:M.tickWidth,borderDash:M.tickBorderDash,borderDashOffset:M.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,M=this._borderValue,F,w,z,T;if(this.isHorizontal())F=A2(Q,this.left,K)-K/2,w=A2(Q,this.right,H)+H/2,z=T=M;else z=A2(Q,this.top,K)-K/2,T=A2(Q,this.bottom,H)+H/2,F=w=M;J.save(),J.lineWidth=N.width,J.strokeStyle=N.color,J.beginPath(),J.moveTo(F,z),J.lineTo(w,T),J.stroke(),J.restore()}drawLabels(Q){if(!this.options.ticks.display)return;let X=this.ctx,q=this._computeLabelArea();if(q)NQ(X,q);let N=this.getLabelItems(Q);for(let K of N){let{options:H,font:M,label:F,textOffset:w}=K;S2(X,F,0,w,M,H)}if(q)UQ(X)}drawTitle(){let{ctx:Q,options:{position:J,title:X,reverse:q}}=this;if(!X.display)return;let N=i1(X.font),K=R5(X.padding),H=X.align,M=N.lineHeight/2;if(J==="bottom"||J==="center"||a0(J)){if(M+=K.bottom,C1(X.text))M+=N.lineHeight*(X.text.length-1)}else M+=K.top;let{titleX:F,titleY:w,maxWidth:z,rotation:T}=ZA(this,M,J,H);S2(Q,X.text,0,0,N,{color:X.color,maxWidth:z,rotation:T,textAlign:$A(H,J,q),textBaseline:"middle",translation:[F,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=c0(Q.grid&&Q.grid.z,-1),q=c0(Q.border&&Q.border.z,0);if(!this._isVisible()||this.draw!==y9.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 i1(J.font)}_maxDigits(){let Q=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/Q}}class RQ{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(GA(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,QA(Q,K,X),this.override)k1.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 k1[q]){if(delete k1[q][X],this.override)delete E2[X]}}}function QA(Q,J,X){let q=Q$(Object.create(null),[X?k1.get(X):{},k1.get(J),Q.defaults]);if(k1.set(J,q),Q.defaultRoutes)JA(J,Q.defaultRoutes);if(Q.descriptors)k1.describe(J,Q.descriptors)}function JA(Q,J){Object.keys(J).forEach((X)=>{let q=X.split("."),N=q.pop(),K=[Q].concat(q).join("."),H=J[X].split("."),M=H.pop(),F=H.join(".");k1.route(K,N,F,M)})}function GA(Q){return"id"in Q&&"defaults"in Q}class PT{constructor(){this.controllers=new RQ(l3,"datasets",!0),this.elements=new RQ(V8,"elements"),this.plugins=new RQ(Object,"plugins"),this.scales=new RQ(y9,"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 K1(q,(K)=>{let H=X||this._getRegistryForType(K);this._exec(Q,H,K)})})}_exec(Q,J,X){let q=O3(Q);T1(X["before"+q],[],X),J[Q](X),T1(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 h4=new PT;class _T{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],M=[J,q,N.options];if(T1(H,M,K)===!1&&q.cancelable)return!1}return!0}invalidate(){if(!$1(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=c0(X.options&&X.options.plugins,{}),N=XA(X);return q===!1&&!J?[]:YA(Q,N,q,J)}_notifyStateChanges(Q){let J=this._oldCache||[],X=this._cache,q=(N,K)=>N.filter((H)=>!K.some((M)=>H.plugin.id===M.plugin.id));this._notify(q(J,X),Q,"stop"),this._notify(q(X,J),Q,"start")}}function XA(Q){let J={},X=[],q=Object.keys(h4.plugins.items);for(let K=0;K<q.length;K++)X.push(h4.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 qA(Q,J){if(!J&&Q===!1)return null;if(Q===!0)return{};return Q}function YA(Q,{plugins:J,localIds:X},q,N){let K=[],H=Q.getContext();for(let M of J){let F=M.id,w=qA(q[F],N);if(w===null)continue;K.push({plugin:M,options:NA(Q.config,{plugin:M,local:X[F]},w,H)})}return K}function NA(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 rU(Q,J){let X=k1.datasets[Q]||{};return((J.datasets||{})[Q]||{}).indexAxis||J.indexAxis||X.indexAxis||"x"}function UA(Q,J){let X=Q;if(Q==="_index_")X=J;else if(Q==="_value_")X=J==="x"?"y":"x";return X}function KA(Q,J){return Q===J?"_index_":"_value_"}function kz(Q){if(Q==="x"||Q==="y"||Q==="r")return Q}function BA(Q){if(Q==="top"||Q==="bottom")return"x";if(Q==="left"||Q==="right")return"y"}function sU(Q,...J){if(kz(Q))return Q;for(let X of J){let q=X.axis||BA(X.position)||Q.length>1&&kz(Q[0].toLowerCase());if(q)return q}throw Error(`Cannot determine type of '${Q}' axis. Please provide 'axis' or 'position' option.`)}function fz(Q,J,X){if(X[J+"AxisID"]===Q)return{axis:J}}function HA(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 fz(Q,"x",X[0])||fz(Q,"y",X[0])}return{}}function MA(Q,J){let X=E2[Q.type]||{scales:{}},q=J.scales||{},N=rU(Q.type,J),K=Object.create(null);return Object.keys(q).forEach((H)=>{let M=q[H];if(!a0(M))return console.error(`Invalid scale configuration for scale: ${H}`);if(M._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${H}`);let F=sU(H,M,HA(H,Q),k1.scales[M.type]),w=KA(F,N),z=X.scales||{};K[H]=G$(Object.create(null),[{axis:F},M,z[F],z[w]])}),Q.data.datasets.forEach((H)=>{let M=H.type||Q.type,F=H.indexAxis||rU(M,J),z=(E2[M]||{}).scales||{};Object.keys(z).forEach((T)=>{let P=UA(T,F),I=H[P+"AxisID"]||P;K[I]=K[I]||Object.create(null),G$(K[I],[{axis:P},q[I],z[T]])})}),Object.keys(K).forEach((H)=>{let M=K[H];G$(M,[k1.scales[M.type],k1.scale])}),K}function CT(Q){let J=Q.options||(Q.options={});J.plugins=c0(J.plugins,{}),J.scales=MA(Q,J)}function IT(Q){return Q=Q||{},Q.datasets=Q.datasets||[],Q.labels=Q.labels||[],Q}function FA(Q){return Q=Q||{},Q.data=IT(Q.data),CT(Q),Q}var yz=new Map,VT=new Set;function u3(Q,J){let X=yz.get(Q);if(!X)X=J(),yz.set(Q,X),VT.add(X);return X}var WQ=(Q,J,X)=>{let q=v9(J,X);if(q!==void 0)Q.add(q)};class OT{constructor(Q){this._config=FA(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=IT(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(),CT(Q)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(Q){return u3(Q,()=>[[`datasets.${Q}`,""]])}datasetAnimationScopeKeys(Q,J){return u3(`${Q}.transition.${J}`,()=>[[`datasets.${Q}.transitions.${J}`,`transitions.${J}`],[`datasets.${Q}`,""]])}datasetElementScopeKeys(Q,J){return u3(`${Q}-${J}`,()=>[[`datasets.${Q}.elements.${J}`,`datasets.${Q}`,`elements.${J}`,""]])}pluginScopeKeys(Q){let J=Q.id,X=this.type;return u3(`${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 M=new Set;J.forEach((w)=>{if(Q)M.add(Q),w.forEach((z)=>WQ(M,Q,z));w.forEach((z)=>WQ(M,q,z)),w.forEach((z)=>WQ(M,E2[N]||{},z)),w.forEach((z)=>WQ(M,k1,z)),w.forEach((z)=>WQ(M,D3,z))});let F=Array.from(M);if(F.length===0)F.push(Object.create(null));if(VT.has(J))K.set(J,F);return F}chartOptionScopes(){let{options:Q,type:J}=this;return[Q,E2[J]||{},k1.datasets[J]||{},{type:J},k1,D3]}resolveNamedOptions(Q,J,X,q=[""]){let N={$shared:!0},{resolver:K,subPrefixes:H}=gz(this._resolverCache,Q,q),M=K;if(wA(K,J)){N.$shared=!1,X=z8(X)?X():X;let F=this.createResolver(Q,X,H);M=D9(K,X,F)}for(let F of J)N[F]=M[F];return N}createResolver(Q,J,X=[""],q){let{resolver:N}=gz(this._resolverCache,Q,X);return a0(J)?D9(N,J,void 0,q):N}}function gz(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:b3(J,X),subPrefixes:X.filter((M)=>!M.toLowerCase().includes("hover"))},q.set(N,K);return K}var WA=(Q)=>a0(Q)&&Object.getOwnPropertyNames(Q).some((J)=>z8(Q[J]));function wA(Q,J){let{isScriptable:X,isIndexable:q}=VU(Q);for(let N of J){let K=X(N),H=q(N),M=(H||K)&&Q[N];if(K&&(z8(M)||WA(M))||H&&C1(M))return!0}return!1}var RA="4.5.1",zA=["top","bottom","left","right","chartArea"];function hz(Q,J){return Q==="top"||Q==="bottom"||zA.indexOf(Q)===-1&&J==="x"}function uz(Q,J){return function(X,q){return X[Q]===q[Q]?X[J]-q[J]:X[Q]-q[Q]}}function xz(Q){let J=Q.chart,X=J.options.animation;J.notifyPlugins("afterRender"),T1(X&&X.onComplete,[Q],J)}function TA(Q){let J=Q.chart,X=J.options.animation;T1(X&&X.onProgress,[Q],J)}function ET(Q){if(k3()&&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 p3={},mz=(Q)=>{let J=ET(Q);return Object.values(p3).filter((X)=>X.canvas===J).pop()};function LA(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 PA(Q,J,X,q){if(!X||Q.type==="mouseout")return null;if(q)return J;return Q}class g9{static defaults=k1;static instances=p3;static overrides=E2;static registry=h4;static version=RA;static getChart=mz;static register(...Q){h4.add(...Q),dz()}static unregister(...Q){h4.remove(...Q),dz()}constructor(Q,J){let X=this.config=new OT(J),q=ET(Q),N=mz(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||dE(q)),this.platform.updateConfig(X);let H=this.platform.acquireContext(q,K.aspectRatio),M=H&&H.canvas,F=M&&M.height,w=M&&M.width;if(this.id=yR(),this.ctx=H,this.canvas=M,this.width=w,this.height=F,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 _T,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=nR((z)=>this.update(z),K.resizeDelay||0),this._dataChanges=[],p3[this.id]=this,!H||!M){console.error("Failed to create chart: can't acquire context from the given item");return}if(C8.listen(this,"complete",xz),C8.listen(this,"progress",TA),this._initialize(),this.attached)this.update()}get aspectRatio(){let{options:{aspectRatio:Q,maintainAspectRatio:J},width:X,height:q,_aspectRatio:N}=this;if(!$1(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 h4}_initialize(){if(this.notifyPlugins("beforeInit"),this.options.responsive)this.resize();else AU(this,this.options.devicePixelRatio);return this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return PU(this.canvas,this.ctx),this}stop(){return C8.stop(this),this}resize(Q,J){if(!C8.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(),M=this.width?"resize":"attach";if(this.width=K.width,this.height=K.height,this._aspectRatio=this.aspectRatio,!AU(this,H,!0))return;if(this.notifyPlugins("resize",{size:K}),T1(X.onResize,[this,K],this),this.attached){if(this._doResize(M))this.render()}}ensureScalesHaveIDs(){let J=this.options.scales||{};K1(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],M=sU(K,H),F=M==="r",w=M==="x";return{options:H,dposition:F?"chartArea":w?"bottom":"left",dtype:F?"radialLinear":w?"category":"linear"}}));K1(N,(K)=>{let H=K.options,M=H.id,F=sU(M,H),w=c0(H.type,K.dtype);if(H.position===void 0||hz(H.position,F)!==hz(K.dposition))H.position=K.dposition;q[M]=!0;let z=null;if(M in X&&X[M].type===w)z=X[M];else z=new(h4.getScale(w))({id:M,type:w,ctx:this.ctx,chart:this}),X[z.id]=z;z.init(H,Q)}),K1(q,(K,H)=>{if(!K)delete X[H]}),K1(X,(K)=>{x6.configure(this,K,K.options),x6.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(uz("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||rU(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 M=h4.getController(H),{datasetElementType:F,dataElementType:w}=k1.datasets[H];Object.assign(M,{dataElementType:h4.getElement(w),datasetElementType:F&&h4.getElement(F)}),K.controller=new M(this,X),Q.push(K.controller)}}return this._updateMetasets(),Q}_resetElements(){K1(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 F=0,w=this.data.datasets.length;F<w;F++){let{controller:z}=this.getDatasetMeta(F),T=!q&&N.indexOf(z)===-1;z.buildOrUpdateElements(T),K=Math.max(+z.getMaxOverflow(),K)}if(K=this._minPadding=X.layout.autoPadding?K:0,this._updateLayout(K),!q)K1(N,(F)=>{F.reset()});this._updateDatasets(Q),this.notifyPlugins("afterUpdate",{mode:Q}),this._layers.sort(uz("z","_idx"));let{_active:H,_lastEvent:M}=this;if(M)this._eventHandler(M,!0);else if(H.length)this._updateHoverStyles(H,H,!0);this.render()}_updateScales(){K1(this.scales,(Q)=>{x6.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(!KU(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;LA(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(!KU(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;x6.update(this,this.width,this.height,Q);let J=this.chartArea,X=J.width<=0||J.height<=0;this._layers=[],K1(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,z8(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(C8.has(this)){if(this.attached&&!C8.running(this))C8.start(this)}else this.draw(),xz({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=kU(this,Q);if(this.notifyPlugins("beforeDatasetDraw",X)===!1)return;if(q)NQ(J,q);if(Q.controller.draw(),q)UQ(J);X.cancelable=!1,this.notifyPlugins("afterDatasetDraw",X)}isPointInArea(Q){return f4(Q,this.chartArea,this._minPadding)}getElementsAtEventForMode(Q,J,X,q){let N=CE.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=_8(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(X$(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(),C8.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(),PU(Q,J),this.platform.releaseContext(J),this.canvas=null,this.ctx=null;delete p3[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)};K1(this.options.events,(N)=>X(N,q))}bindResponsiveEvents(){if(!this._responsiveListeners)this._responsiveListeners={};let Q=this._responsiveListeners,J=this.platform,X=(M,F)=>{J.addEventListener(this,M,F),Q[M]=F},q=(M,F)=>{if(Q[M])J.removeEventListener(this,M,F),delete Q[M]},N=(M,F)=>{if(this.canvas)this.resize(M,F)},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(){K1(this._listeners,(Q,J)=>{this.platform.removeEventListener(this,J,Q)}),this._listeners={},K1(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,M;if(J==="dataset")N=this.getDatasetMeta(Q[0].datasetIndex),N.controller["_"+q+"DatasetHoverStyle"]();for(H=0,M=Q.length;H<M;++H){K=Q[H];let F=K&&this.getDatasetMeta(K.datasetIndex).controller;if(F)F[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(!qQ(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=(M,F)=>M.filter((w)=>!F.some((z)=>w.datasetIndex===z.datasetIndex&&w.index===z.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),M=uR(Q),F=PA(Q,this._lastEvent,X,M);if(X){if(this._lastEvent=null,T1(N.onHover,[Q,H,this],this),M)T1(N.onClick,[Q,H,this],this)}let w=!qQ(H,q);if(w||J)this._active=H,this._updateHoverStyles(H,q,J);return this._lastEvent=F,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 dz(){return K1(g9.instances,(Q)=>Q._plugins.invalidate())}function AT(Q,J,X=J){Q.lineCap=c0(X.borderCapStyle,J.borderCapStyle),Q.setLineDash(c0(X.borderDash,J.borderDash)),Q.lineDashOffset=c0(X.borderDashOffset,J.borderDashOffset),Q.lineJoin=c0(X.borderJoinStyle,J.borderJoinStyle),Q.lineWidth=c0(X.borderWidth,J.borderWidth),Q.strokeStyle=c0(X.borderColor,J.borderColor)}function _A(Q,J,X){Q.lineTo(X.x,X.y)}function CA(Q){if(Q.stepped)return Zz;if(Q.tension||Q.cubicInterpolationMode==="monotone")return Qz;return _A}function ST(Q,J,X={}){let q=Q.length,{start:N=0,end:K=q-1}=X,{start:H,end:M}=J,F=Math.max(N,H),w=Math.min(K,M),z=N<H&&K<H||N>M&&K>M;return{count:q,start:F,loop:J.loop,ilen:w<F&&!z?q+w-F:w-F}}function IA(Q,J,X,q){let{points:N,options:K}=J,{count:H,start:M,loop:F,ilen:w}=ST(N,X,q),z=CA(K),{move:T=!0,reverse:P}=q||{},I,A,O;for(I=0;I<=w;++I){if(A=N[(M+(P?w-I:I))%H],A.skip)continue;else if(T)Q.moveTo(A.x,A.y),T=!1;else z(Q,O,A,P,K.stepped);O=A}if(F)A=N[(M+(P?w:0))%H],z(Q,O,A,P,K.stepped);return!!F}function VA(Q,J,X,q){let N=J.points,{count:K,start:H,ilen:M}=ST(N,X,q),{move:F=!0,reverse:w}=q||{},z=0,T=0,P,I,A,O,V,D,h=(s)=>(H+(w?M-s:s))%K,p=()=>{if(O!==V)Q.lineTo(z,V),Q.lineTo(z,O),Q.lineTo(z,D)};if(F)I=N[h(0)],Q.moveTo(I.x,I.y);for(P=0;P<=M;++P){if(I=N[h(P)],I.skip)continue;let{x:s,y:o}=I,Q0=s|0;if(Q0===A){if(o<O)O=o;else if(o>V)V=o;z=(T*z+s)/++T}else p(),Q.lineTo(s,o),A=Q0,T=0,O=V=o;D=o}p()}function nU(Q){let J=Q.options,X=J.borderDash&&J.borderDash.length;return!Q._decimated&&!Q._loop&&!J.tension&&J.cubicInterpolationMode!=="monotone"&&!J.stepped&&!X?VA:IA}function OA(Q){if(Q.stepped)return Bz;if(Q.tension||Q.cubicInterpolationMode==="monotone")return Hz;return I2}function EA(Q,J,X,q){let N=J._path;if(!N){if(N=J._path=new Path2D,J.path(N,X,q))N.closePath()}AT(Q,J.options),Q.stroke(N)}function AA(Q,J,X,q){let{segments:N,options:K}=J,H=nU(J);for(let M of N){if(AT(Q,K,M.style),Q.beginPath(),H(Q,J,M,{start:X,end:X+q-1}))Q.closePath();Q.stroke()}}var SA=typeof Path2D==="function";function jA(Q,J,X,q){if(SA&&!J.options.segment)EA(Q,J,X,q);else AA(Q,J,X,q)}class U$ 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;Nz(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=Fz(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=bU(this,{property:J,start:q,end:q});if(!K.length)return;let H=[],M=OA(X),F,w;for(F=0,w=K.length;F<w;++F){let{start:z,end:T}=K[F],P=N[z],I=N[T];if(P===I){H.push(P);continue}let A=Math.abs((q-P[J])/(I[J]-P[J])),O=M(P,I,A,X.stepped);O[J]=Q[J],H.push(O)}return H.length===1?H[0]:H}pathSegment(Q,J,X){return nU(this)(Q,this,J,X)}path(Q,J,X){let q=this.segments,N=nU(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(),jA(Q,this,X,q),Q.restore();if(this.animated)this._pointsUpdated=!1,this._path=void 0}}function pz(Q,J,X,q){let N=Q.options,{[X]:K}=Q.getProps([X],q);return Math.abs(J-K)<N.radius+N.hitRadius}class XK 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 pz(this,Q,"x",J)}inYRange(Q,J){return pz(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||!f4(this,J,this.size(X)/2))return;Q.strokeStyle=X.borderColor,Q.lineWidth=X.borderWidth,Q.fillStyle=X.backgroundColor,v3(Q,X,this.x,this.y)}getRange(){let Q=this.options||{};return Q.radius+Q.hitRadius}}function jT(Q,J){let{x:X,y:q,base:N,width:K,height:H}=Q.getProps(["x","y","base","width","height"],J),M,F,w,z,T;if(Q.horizontal)T=H/2,M=Math.min(X,N),F=Math.max(X,N),w=q-T,z=q+T;else T=K/2,M=X-T,F=X+T,w=Math.min(q,N),z=Math.max(q,N);return{left:M,top:w,right:F,bottom:z}}function v2(Q,J,X,q){return Q?0:o5(J,X,q)}function DA(Q,J,X){let q=Q.options.borderWidth,N=Q.borderSkipped,K=IU(q);return{t:v2(N.top,K.top,0,X),r:v2(N.right,K.right,0,J),b:v2(N.bottom,K.bottom,0,X),l:v2(N.left,K.left,0,J)}}function vA(Q,J,X){let{enableBorderRadius:q}=Q.getProps(["enableBorderRadius"]),N=Q.options.borderRadius,K=j2(N),H=Math.min(J,X),M=Q.borderSkipped,F=q||a0(N);return{topLeft:v2(!F||M.top||M.left,K.topLeft,0,H),topRight:v2(!F||M.top||M.right,K.topRight,0,H),bottomLeft:v2(!F||M.bottom||M.left,K.bottomLeft,0,H),bottomRight:v2(!F||M.bottom||M.right,K.bottomRight,0,H)}}function bA(Q){let J=jT(Q),X=J.right-J.left,q=J.bottom-J.top,N=DA(Q,X/2,q/2),K=vA(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 dU(Q,J,X,q){let N=J===null,K=X===null,M=Q&&!(N&&K)&&jT(Q,q);return M&&(N||P8(J,M.left,M.right))&&(K||P8(X,M.top,M.bottom))}function kA(Q){return Q.topLeft||Q.topRight||Q.bottomLeft||Q.bottomRight}function fA(Q,J){Q.rect(J.x,J.y,J.w,J.h)}function pU(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 qK 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}=bA(this),H=kA(K.radius)?N$:fA;if(Q.save(),K.w!==N.w||K.h!==N.h)Q.beginPath(),H(Q,pU(K,J,N)),Q.clip(),H(Q,pU(N,-J,K)),Q.fillStyle=X,Q.fill("evenodd");Q.beginPath(),H(Q,pU(N,J)),Q.fillStyle=q,Q.fill(),Q.restore()}inRange(Q,J,X){return dU(this,Q,J,X)}inXRange(Q,J){return dU(this,Q,null,J)}inYRange(Q,J){return dU(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 yA(Q,J,X){let{segments:q,points:N}=Q,K=J.points,H=[];for(let M of q){let{start:F,end:w}=M;w=r3(F,w,N);let z=oU(X,N[F],N[w],M.loop);if(!J.segments){H.push({source:M,target:z,start:N[F],end:N[w]});continue}let T=bU(J,z);for(let P of T){let I=oU(X,K[P.start],K[P.end],P.loop),A=vU(M,N,I);for(let O of A)H.push({source:O,target:P,start:{[X]:cz(z,I,"start",Math.max)},end:{[X]:cz(z,I,"end",Math.min)}})}}return H}function oU(Q,J,X,q){if(q)return;let N=J[Q],K=X[Q];if(Q==="angle")N=r5(N),K=r5(K);return{property:Q,start:N,end:K}}function gA(Q,J){let{x:X=null,y:q=null}=Q||{},N=J.points,K=[];return J.segments.forEach(({start:H,end:M})=>{M=r3(H,M,N);let F=N[H],w=N[M];if(q!==null)K.push({x:F.x,y:q}),K.push({x:w.x,y:q});else if(X!==null)K.push({x:X,y:F.y}),K.push({x:X,y:w.y})}),K}function r3(Q,J,X){for(;J>Q;J--){let q=X[J];if(!isNaN(q.x)&&!isNaN(q.y))break}return J}function cz(Q,J,X,q){if(Q&&J)return q(Q[X],J[X]);return Q?Q[X]:J?J[X]:0}function DT(Q,J){let X=[],q=!1;if(C1(Q))q=!0,X=Q;else X=gA(Q,J);return X.length?new U$({points:X,options:{tension:0},_loop:q,_fullLoop:q}):null}function lz(Q){return Q&&Q.fill!==!1}function hA(Q,J,X){let N=Q[J].fill,K=[J],H;if(!X)return N;while(N!==!1&&K.indexOf(N)===-1){if(!b1(N))return N;if(H=Q[N],!H)return!1;if(H.visible)return N;K.push(N),N=H.fill}return!1}function uA(Q,J,X){let q=pA(Q);if(a0(q))return isNaN(q.value)?!1:q;let N=parseFloat(q);if(b1(N)&&Math.floor(N)===N)return xA(q[0],J,N,X);return["origin","start","end","stack","shape"].indexOf(q)>=0&&q}function xA(Q,J,X,q){if(Q==="-"||Q==="+")X=J+X;if(X===J||X<0||X>=q)return!1;return X}function mA(Q,J){let X=null;if(Q==="start")X=J.bottom;else if(Q==="end")X=J.top;else if(a0(Q))X=J.getPixelForValue(Q.value);else if(J.getBasePixel)X=J.getBasePixel();return X}function dA(Q,J,X){let q;if(Q==="start")q=X;else if(Q==="end")q=J.options.reverse?J.min:J.max;else if(a0(Q))q=Q.value;else q=J.getBaseValue();return q}function pA(Q){let J=Q.options,X=J.fill,q=c0(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 cA(Q){let{scale:J,index:X,line:q}=Q,N=[],K=q.segments,H=q.points,M=lA(J,X);M.push(DT({x:null,y:J.bottom},q));for(let F=0;F<K.length;F++){let w=K[F];for(let z=w.start;z<=w.end;z++)rA(N,H[z],M)}return new U$({points:N,options:{}})}function lA(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 rA(Q,J,X){let q=[];for(let N=0;N<X.length;N++){let K=X[N],{first:H,last:M,point:F}=sA(K,J,"x");if(!F||H&&M)continue;if(H)q.unshift(F);else if(Q.push(F),!M)break}Q.push(...q)}function sA(Q,J,X){let q=Q.interpolate(J,X);if(!q)return{};let N=q[X],K=Q.segments,H=Q.points,M=!1,F=!1;for(let w=0;w<K.length;w++){let z=K[w],T=H[z.start][X],P=H[z.end][X];if(P8(N,T,P)){M=N===T,F=N===P;break}}return{first:M,last:F,point:q}}class YK{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:n5},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 nA(Q){let{chart:J,fill:X,line:q}=Q;if(b1(X))return oA(J,X);if(X==="stack")return cA(Q);if(X==="shape")return!0;let N=aA(Q);if(N instanceof YK)return N;return DT(N,q)}function oA(Q,J){let X=Q.getDatasetMeta(J);return X&&Q.isDatasetVisible(J)?X.dataset:null}function aA(Q){if((Q.scale||{}).getPointPositionForValue)return tA(Q);return iA(Q)}function iA(Q){let{scale:J={},fill:X}=Q,q=mA(X,J);if(b1(q)){let N=J.isHorizontal();return{x:N?q:null,y:N?null:q}}return null}function tA(Q){let{scale:J,fill:X}=Q,q=J.options,N=J.getLabels().length,K=q.reverse?J.max:J.min,H=dA(X,J,K),M=[];if(q.grid.circular){let F=J.getPointPositionForValue(0,K);return new YK({x:F.x,y:F.y,radius:J.getDistanceFromCenterForValue(H)})}for(let F=0;F<N;++F)M.push(J.getPointPositionForValue(F,H));return M}function cU(Q,J,X){let q=nA(J),{chart:N,index:K,line:H,scale:M,axis:F}=J,w=H.options,z=w.fill,T=w.backgroundColor,{above:P=T,below:I=T}=z||{},A=N.getDatasetMeta(K),O=kU(N,A);if(q&&H.points.length)NQ(Q,X),eA(Q,{line:H,target:q,above:P,below:I,area:X,scale:M,axis:F,clip:O}),UQ(Q)}function eA(Q,J){let{line:X,target:q,above:N,below:K,area:H,scale:M,clip:F}=J,w=X._loop?"angle":J.axis;Q.save();let z=K;if(K!==N){if(w==="x")rz(Q,q,H.top),lU(Q,{line:X,target:q,color:N,scale:M,property:w,clip:F}),Q.restore(),Q.save(),rz(Q,q,H.bottom);else if(w==="y")sz(Q,q,H.left),lU(Q,{line:X,target:q,color:K,scale:M,property:w,clip:F}),Q.restore(),Q.save(),sz(Q,q,H.right),z=N}lU(Q,{line:X,target:q,color:z,scale:M,property:w,clip:F}),Q.restore()}function rz(Q,J,X){let{segments:q,points:N}=J,K=!0,H=!1;Q.beginPath();for(let M of q){let{start:F,end:w}=M,z=N[F],T=N[r3(F,w,N)];if(K)Q.moveTo(z.x,z.y),K=!1;else Q.lineTo(z.x,X),Q.lineTo(z.x,z.y);if(H=!!J.pathSegment(Q,M,{move:H}),H)Q.closePath();else Q.lineTo(T.x,X)}Q.lineTo(J.first().x,X),Q.closePath(),Q.clip()}function sz(Q,J,X){let{segments:q,points:N}=J,K=!0,H=!1;Q.beginPath();for(let M of q){let{start:F,end:w}=M,z=N[F],T=N[r3(F,w,N)];if(K)Q.moveTo(z.x,z.y),K=!1;else Q.lineTo(X,z.y),Q.lineTo(z.x,z.y);if(H=!!J.pathSegment(Q,M,{move:H}),H)Q.closePath();else Q.lineTo(X,T.y)}Q.lineTo(X,J.first().y),Q.closePath(),Q.clip()}function lU(Q,J){let{line:X,target:q,property:N,color:K,scale:H,clip:M}=J,F=yA(X,q,N);for(let{source:w,target:z,start:T,end:P}of F){let{style:{backgroundColor:I=K}={}}=w,A=q!==!0;Q.save(),Q.fillStyle=I,$S(Q,H,M,A&&oU(N,T,P)),Q.beginPath();let O=!!X.pathSegment(Q,w),V;if(A){if(O)Q.closePath();else nz(Q,q,P,N);let D=!!q.pathSegment(Q,z,{move:O,reverse:!0});if(V=O&&D,!V)nz(Q,q,T,N)}Q.closePath(),Q.fill(V?"evenodd":"nonzero"),Q.restore()}}function $S(Q,J,X,q){let N=J.chart.chartArea,{property:K,start:H,end:M}=q||{};if(K==="x"||K==="y"){let F,w,z,T;if(K==="x")F=H,w=N.top,z=M,T=N.bottom;else F=N.left,w=H,z=N.right,T=M;if(Q.beginPath(),X)F=Math.max(F,X.left),z=Math.min(z,X.right),w=Math.max(w,X.top),T=Math.min(T,X.bottom);Q.rect(F,w,z-F,T-w),Q.clip()}}function nz(Q,J,X,q){let N=J.interpolate(X,q);if(N)Q.lineTo(N.x,N.y)}var vT={id:"filler",afterDatasetsUpdate(Q,J,X){let q=(Q.data.datasets||[]).length,N=[],K,H,M,F;for(H=0;H<q;++H){if(K=Q.getDatasetMeta(H),M=K.dataset,F=null,M&&M.options&&M instanceof U$)F={visible:Q.isDatasetVisible(H),index:H,fill:uA(M,H,q),chart:Q,axis:K.controller.options.indexAxis,scale:K.vScale,line:M};K.$filler=F,N.push(F)}for(H=0;H<q;++H){if(F=N[H],!F||F.fill===!1)continue;F.fill=hA(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 M=N[H].$filler;if(!M)continue;if(M.line.updateControlPoints(K,M.axis),q&&M.fill)cU(Q.ctx,M,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(lz(K))cU(Q.ctx,K,Q.chartArea)}},beforeDatasetDraw(Q,J,X){let q=J.meta.$filler;if(!lz(q)||X.drawTime!=="beforeDatasetDraw")return;cU(Q.ctx,q,Q.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}},oz=(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)}},ZS=(Q,J)=>Q!==null&&J!==null&&Q.datasetIndex===J.datasetIndex&&Q.index===J.index;class aU 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=T1(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=i1(X.font),N=q.size,K=this._computeTitleHeight(),{boxWidth:H,itemHeight:M}=oz(X,N),F,w;if(J.font=q.string,this.isHorizontal())F=this.maxWidth,w=this._fitRows(K,N,H,M)+10;else w=this.maxHeight,F=this._fitCols(K,q,H,M)+10;this.width=Math.min(F,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,M=this.legendHitBoxes=[],F=this.lineWidths=[0],w=q+H,z=Q;N.textAlign="left",N.textBaseline="middle";let T=-1,P=-w;return this.legendItems.forEach((I,A)=>{let O=X+J/2+N.measureText(I.text).width;if(A===0||F[F.length-1]+O+2*H>K)z+=w,F[F.length-(A>0?0:1)]=0,P+=w,T++;M[A]={left:0,top:P,row:T,width:O,height:q},F[F.length-1]+=O+H}),z}_fitCols(Q,J,X,q){let{ctx:N,maxHeight:K,options:{labels:{padding:H}}}=this,M=this.legendHitBoxes=[],F=this.columnSizes=[],w=K-Q,z=H,T=0,P=0,I=0,A=0;return this.legendItems.forEach((O,V)=>{let{itemWidth:D,itemHeight:h}=QS(X,J,N,O,q);if(V>0&&P+h+2*H>w)z+=T+H,F.push({width:T,height:P}),I+=T+H,A++,T=P=0;M[V]={left:I,top:P,col:A,width:D,height:h},T=Math.max(T,D),P+=h+H}),z+=T,F.push({width:T,height:P}),z}adjustHitBoxes(){if(!this.options.display)return;let Q=this._computeTitleHeight(),{legendHitBoxes:J,options:{align:X,labels:{padding:q},rtl:N}}=this,K=b9(N,this.left,this.width);if(this.isHorizontal()){let H=0,M=w5(X,this.left+q,this.right-this.lineWidths[H]);for(let F of J){if(H!==F.row)H=F.row,M=w5(X,this.left+q,this.right-this.lineWidths[H]);F.top+=this.top+Q+q,F.left=K.leftForLtr(K.x(M),F.width),M+=F.width+q}}else{let H=0,M=w5(X,this.top+Q+q,this.bottom-this.columnSizes[H].height);for(let F of J){if(F.col!==H)H=F.col,M=w5(X,this.top+Q+q,this.bottom-this.columnSizes[H].height);F.top=M,F.left+=this.left+q,F.left=K.leftForLtr(K.x(F.left),F.width),M+=F.height+q}}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){let Q=this.ctx;NQ(Q,this),this._draw(),UQ(Q)}}_draw(){let{options:Q,columnSizes:J,lineWidths:X,ctx:q}=this,{align:N,labels:K}=Q,H=k1.color,M=b9(Q.rtl,this.left,this.width),F=i1(K.font),{padding:w}=K,z=F.size,T=z/2,P;this.drawTitle(),q.textAlign=M.textAlign("left"),q.textBaseline="middle",q.lineWidth=0.5,q.font=F.string;let{boxWidth:I,boxHeight:A,itemHeight:O}=oz(K,z),V=function(o,Q0,t){if(isNaN(I)||I<=0||isNaN(A)||A<0)return;q.save();let a=c0(t.lineWidth,1);if(q.fillStyle=c0(t.fillStyle,H),q.lineCap=c0(t.lineCap,"butt"),q.lineDashOffset=c0(t.lineDashOffset,0),q.lineJoin=c0(t.lineJoin,"miter"),q.lineWidth=a,q.strokeStyle=c0(t.strokeStyle,H),q.setLineDash(c0(t.lineDash,[])),K.usePointStyle){let q0={radius:A*Math.SQRT2/2,pointStyle:t.pointStyle,rotation:t.rotation,borderWidth:a},d=M.xPlus(o,I/2),K0=Q0+T;_U(q,q0,d,K0,K.pointStyleWidth&&I)}else{let q0=Q0+Math.max((z-A)/2,0),d=M.leftForLtr(o,I),K0=j2(t.borderRadius);if(q.beginPath(),Object.values(K0).some((L0)=>L0!==0))N$(q,{x:d,y:q0,w:I,h:A,radius:K0});else q.rect(d,q0,I,A);if(q.fill(),a!==0)q.stroke()}q.restore()},D=function(o,Q0,t){S2(q,t.text,o,Q0+O/2,F,{strikethrough:t.hidden,textAlign:M.textAlign(t.textAlign)})},h=this.isHorizontal(),p=this._computeTitleHeight();if(h)P={x:w5(N,this.left+w,this.right-X[0]),y:this.top+w+p,line:0};else P={x:this.left+w,y:w5(N,this.top+p+w,this.bottom-J[0].height),line:0};jU(this.ctx,Q.textDirection);let s=O+w;this.legendItems.forEach((o,Q0)=>{q.strokeStyle=o.fontColor,q.fillStyle=o.fontColor;let t=q.measureText(o.text).width,a=M.textAlign(o.textAlign||(o.textAlign=K.textAlign)),q0=I+T+t,d=P.x,K0=P.y;if(M.setWidth(this.width),h){if(Q0>0&&d+q0+w>this.right)K0=P.y+=s,P.line++,d=P.x=w5(N,this.left+w,this.right-X[P.line])}else if(Q0>0&&K0+s>this.bottom)d=P.x=d+J[P.line].width+w,P.line++,K0=P.y=w5(N,this.top+p+w,this.bottom-J[P.line].height);let L0=M.x(d);if(V(L0,K0,o),d=oR(a,d+I+T,h?d+q0:this.right,Q.rtl),D(M.x(d),K0,o),h)P.x+=q0+w;else if(typeof o.text!=="string"){let _0=F.lineHeight;P.y+=bT(o,_0)+w}else P.y+=s}),DU(this.ctx,Q.textDirection)}drawTitle(){let Q=this.options,J=Q.title,X=i1(J.font),q=R5(J.padding);if(!J.display)return;let N=b9(Q.rtl,this.left,this.width),K=this.ctx,H=J.position,M=X.size/2,F=q.top+M,w,z=this.left,T=this.width;if(this.isHorizontal())T=Math.max(...this.lineWidths),w=this.top+F,z=w5(Q.align,z,this.right-T);else{let I=this.columnSizes.reduce((A,O)=>Math.max(A,O.height),0);w=F+w5(Q.align,this.top,this.bottom-I-Q.labels.padding-this._computeTitleHeight())}let P=w5(H,z,z+T);K.textAlign=N.textAlign(S3(H)),K.textBaseline="middle",K.strokeStyle=J.color,K.fillStyle=J.color,K.font=X.string,S2(K,J.text,P,w,X)}_computeTitleHeight(){let Q=this.options.title,J=i1(Q.font),X=R5(Q.padding);return Q.display?J.lineHeight+X.height:0}_getLegendItemAt(Q,J){let X,q,N;if(P8(Q,this.left,this.right)&&P8(J,this.top,this.bottom)){N=this.legendHitBoxes;for(X=0;X<N.length;++X)if(q=N[X],P8(Q,q.left,q.left+q.width)&&P8(J,q.top,q.top+q.height))return this.legendItems[X]}return null}handleEvent(Q){let J=this.options;if(!XS(Q.type,J))return;let X=this._getLegendItemAt(Q.x,Q.y);if(Q.type==="mousemove"||Q.type==="mouseout"){let q=this._hoveredItem,N=ZS(q,X);if(q&&!N)T1(J.onLeave,[Q,q,this],this);if(this._hoveredItem=X,X&&!N)T1(J.onHover,[Q,X,this],this)}else if(X)T1(J.onClick,[Q,X,this],this)}}function QS(Q,J,X,q,N){let K=JS(q,Q,J,X),H=GS(N,q,J.lineHeight);return{itemWidth:K,itemHeight:H}}function JS(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 GS(Q,J,X){let q=Q;if(typeof J.text!=="string")q=bT(J,X);return q}function bT(Q,J){let X=Q.text?Q.text.length:0;return J*X}function XS(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 kT={id:"legend",_element:aU,start(Q,J,X){let q=Q.legend=new aU({ctx:Q.ctx,options:X,chart:Q});x6.configure(Q,q,X),x6.addBox(Q,q)},stop(Q){x6.removeBox(Q,Q.legend),delete Q.legend},beforeUpdate(Q,J,X){let q=Q.legend;x6.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:M}}=Q.legend.options;return Q._getSortedDatasetMetas().map((F)=>{let w=F.controller.getStyle(X?0:void 0),z=R5(w.borderWidth);return{text:J[F.index].label,fillStyle:w.backgroundColor,fontColor:K,hidden:!F.visible,lineCap:w.borderCapStyle,lineDash:w.borderDash,lineDashOffset:w.borderDashOffset,lineJoin:w.borderJoinStyle,lineWidth:(z.width+z.height)/4,strokeStyle:w.borderColor,pointStyle:q||w.pointStyle,rotation:w.rotation,textAlign:N||w.textAlign,borderRadius:H&&(M||w.borderRadius),datasetIndex:F.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 NK 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=C1(X.text)?X.text.length:1;this._padding=R5(X.padding);let N=q*i1(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,M=0,F,w,z;if(this.isHorizontal())w=w5(H,X,N),z=J+Q,F=N-X;else{if(K.position==="left")w=X+Q,z=w5(H,q,J),M=m1*-0.5;else w=N-Q,z=w5(H,J,q),M=m1*0.5;F=q-J}return{titleX:w,titleY:z,maxWidth:F,rotation:M}}draw(){let Q=this.ctx,J=this.options;if(!J.display)return;let X=i1(J.font),N=X.lineHeight/2+this._padding.top,{titleX:K,titleY:H,maxWidth:M,rotation:F}=this._drawArgs(N);S2(Q,J.text,0,0,X,{color:J.color,maxWidth:M,rotation:F,textAlign:S3(J.align),textBaseline:"middle",translation:[K,H]})}}function qS(Q,J){let X=new NK({ctx:Q.ctx,options:J,chart:Q});x6.configure(Q,X,J),x6.addBox(Q,X),Q.titleBlock=X}var fT={id:"title",_element:NK,start(Q,J,X){qS(Q,X)},stop(Q){let J=Q.titleBlock;x6.removeBox(Q,J),delete Q.titleBlock},beforeUpdate(Q,J,X){let q=Q.titleBlock;x6.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 zQ={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 M=Q[J].element;if(M&&M.hasValue()){let F=M.tooltipPosition();q.add(F.x),N+=F.y,++K}}if(K===0||q.size===0)return!1;return{x:[...q].reduce((M,F)=>M+F)/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,M;for(K=0,H=Q.length;K<H;++K){let F=Q[K].element;if(F&&F.hasValue()){let w=F.getCenterPoint(),z=I3(J,w);if(z<N)N=z,M=F}}if(M){let F=M.tooltipPosition();X=F.x,q=F.y}return{x:X,y:q}}};function g4(Q,J){if(J)if(C1(J))Array.prototype.push.apply(Q,J);else Q.push(J);return Q}function I8(Q){if((typeof Q==="string"||Q instanceof String)&&Q.indexOf(`
256
256
  `)>-1)return Q.split(`
257
- `);return Q}function Zj(Q,G){let{element:X,datasetIndex:q,index:N}=G,K=Q.getDatasetMeta(q).controller,{label:H,value:M}=K.getLabelAndValue(N);return{chart:Q,label:H,parsed:K.getParsed(N),raw:Q.data.datasets[q].data[N],formattedValue:M,dataset:K.getDataset(),dataIndex:N,datasetIndex:q,element:X}}function rz(Q,G){let X=Q.chart.ctx,{body:q,footer:N,title:K}=Q,{boxWidth:H,boxHeight:M}=G,F=o1(G.bodyFont),w=o1(G.titleFont),z=o1(G.footerFont),T=K.length,P=N.length,V=q.length,A=w5(G.padding),O=A.height,I=0,D=q.reduce((s,o)=>s+o.before.length+o.lines.length+o.after.length,0);if(D+=Q.beforeBody.length+Q.afterBody.length,T)O+=T*w.lineHeight+(T-1)*G.titleSpacing+G.titleMarginBottom;if(D){let s=G.displayColors?Math.max(M,F.lineHeight):F.lineHeight;O+=V*s+(D-V)*F.lineHeight+(D-1)*G.bodySpacing}if(P)O+=G.footerMarginTop+P*z.lineHeight+(P-1)*G.footerSpacing;let h=0,p=function(s){I=Math.max(I,X.measureText(s).width+h)};return X.save(),X.font=w.string,U1(Q.title,p),X.font=F.string,U1(Q.beforeBody.concat(Q.afterBody),p),h=G.displayColors?H+2+G.boxPadding:0,U1(q,(s)=>{U1(s.before,p),U1(s.lines,p),U1(s.after,p)}),h=0,X.font=z.string,U1(Q.footer,p),X.restore(),I+=A.width,{width:I,height:O}}function Qj(Q,G){let{y:X,height:q}=G;if(X<q/2)return"top";else if(X>Q.height-q/2)return"bottom";return"center"}function Jj(Q,G,X,q){let{x:N,width:K}=q,H=X.caretSize+X.caretPadding;if(Q==="left"&&N+K+H>G.width)return!0;if(Q==="right"&&N-K-H<0)return!0}function Gj(Q,G,X,q){let{x:N,width:K}=X,{width:H,chartArea:{left:M,right:F}}=Q,w="center";if(q==="center")w=N<=(M+F)/2?"left":"right";else if(N<=K/2)w="left";else if(N>=H-K/2)w="right";if(Jj(w,Q,G,X))w="center";return w}function sz(Q,G,X){let q=X.yAlign||G.yAlign||Qj(Q,X);return{xAlign:X.xAlign||G.xAlign||Gj(Q,G,X,q),yAlign:q}}function Xj(Q,G){let{x:X,width:q}=Q;if(G==="right")X-=q;else if(G==="center")X-=q/2;return X}function qj(Q,G,X){let{y:q,height:N}=Q;if(G==="top")q+=X;else if(G==="bottom")q-=N+X;else q-=N/2;return q}function nz(Q,G,X,q){let{caretSize:N,caretPadding:K,cornerRadius:H}=Q,{xAlign:M,yAlign:F}=X,w=N+K,{topLeft:z,topRight:T,bottomLeft:P,bottomRight:V}=A2(H),A=Xj(G,M),O=qj(G,F,w);if(F==="center"){if(M==="left")A+=w;else if(M==="right")A-=w}else if(M==="left")A-=Math.max(z,P)+N;else if(M==="right")A+=Math.max(T,V)+N;return{x:r5(A,0,q.width-G.width),y:r5(O,0,q.height-G.height)}}function f3(Q,G,X){let q=w5(X.padding);return G==="center"?Q.x+Q.width/2:G==="right"?Q.x+Q.width-q.right:Q.x+q.left}function oz(Q){return f4([],P8(Q))}function Yj(Q,G,X){return T8(Q,{tooltip:G,tooltipItems:X,type:"tooltip"})}function az(Q,G){let X=G&&G.dataset&&G.dataset.tooltip&&G.dataset.tooltip.callbacks;return X?Q.override(X):Q}var vT={beforeTitle:k4,title(Q){if(Q.length>0){let G=Q[0],X=G.chart.data.labels,q=X?X.length:0;if(this&&this.options&&this.options.mode==="dataset")return G.dataset.label||"";else if(G.label)return G.label;else if(q>0&&G.dataIndex<q)return X[G.dataIndex]}return""},afterTitle:k4,beforeBody:k4,beforeLabel:k4,label(Q){if(this&&this.options&&this.options.mode==="dataset")return Q.label+": "+Q.formattedValue||Q.formattedValue;let G=Q.dataset.label||"";if(G)G+=": ";let X=Q.formattedValue;if(!t0(X))G+=X;return G},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:k4,afterBody:k4,beforeFooter:k4,footer:k4,afterFooter:k4};function n5(Q,G,X,q){let N=Q[G].call(X,q);if(typeof N>"u")return vT[G].call(X,q);return N}class nU extends _8{static positioners=MQ;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 G=this.chart,X=this.options.setContext(this.getContext()),q=X.enabled&&G.options.animation&&X.animations,N=new iU(this.chart,q);if(q._cacheable)this._cachedAnimations=Object.freeze(N);return N}getContext(){return this.$context||(this.$context=Yj(this.chart.getContext(),this,this._tooltipItems))}getTitle(Q,G){let{callbacks:X}=G,q=n5(X,"beforeTitle",this,Q),N=n5(X,"title",this,Q),K=n5(X,"afterTitle",this,Q),H=[];return H=f4(H,P8(q)),H=f4(H,P8(N)),H=f4(H,P8(K)),H}getBeforeBody(Q,G){return oz(n5(G.callbacks,"beforeBody",this,Q))}getBody(Q,G){let{callbacks:X}=G,q=[];return U1(Q,(N)=>{let K={before:[],lines:[],after:[]},H=az(X,N);f4(K.before,P8(n5(H,"beforeLabel",this,N))),f4(K.lines,n5(H,"label",this,N)),f4(K.after,P8(n5(H,"afterLabel",this,N))),q.push(K)}),q}getAfterBody(Q,G){return oz(n5(G.callbacks,"afterBody",this,Q))}getFooter(Q,G){let{callbacks:X}=G,q=n5(X,"beforeFooter",this,Q),N=n5(X,"footer",this,Q),K=n5(X,"afterFooter",this,Q),H=[];return H=f4(H,P8(q)),H=f4(H,P8(N)),H=f4(H,P8(K)),H}_createItems(Q){let G=this._active,X=this.chart.data,q=[],N=[],K=[],H=[],M,F;for(M=0,F=G.length;M<F;++M)H.push(Zj(this.chart,G[M]));if(Q.filter)H=H.filter((w,z,T)=>Q.filter(w,z,T,X));if(Q.itemSort)H=H.sort((w,z)=>Q.itemSort(w,z,X));return U1(H,(w)=>{let z=az(Q.callbacks,w);q.push(n5(z,"labelColor",this,w)),N.push(n5(z,"labelPointStyle",this,w)),K.push(n5(z,"labelTextColor",this,w))}),this.labelColors=q,this.labelPointStyles=N,this.labelTextColors=K,this.dataPoints=H,H}update(Q,G){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=MQ[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 M=this._size=rz(this,X),F=Object.assign({},H,M),w=sz(this.chart,X,F),z=nz(X,F,w,this.chart);this.xAlign=w.xAlign,this.yAlign=w.yAlign,N={opacity:1,x:z.x,y:z.y,width:M.width,height:M.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:G})}drawCaret(Q,G,X,q){let N=this.getCaretPosition(Q,X,q);G.lineTo(N.x1,N.y1),G.lineTo(N.x2,N.y2),G.lineTo(N.x3,N.y3)}getCaretPosition(Q,G,X){let{xAlign:q,yAlign:N}=this,{caretSize:K,cornerRadius:H}=X,{topLeft:M,topRight:F,bottomLeft:w,bottomRight:z}=A2(H),{x:T,y:P}=Q,{width:V,height:A}=G,O,I,D,h,p,s;if(N==="center"){if(p=P+A/2,q==="left")O=T,I=O-K,h=p+K,s=p-K;else O=T+V,I=O+K,h=p-K,s=p+K;D=O}else{if(q==="left")I=T+Math.max(M,w)+K;else if(q==="right")I=T+V-Math.max(F,z)-K;else I=this.caretX;if(N==="top")h=P,p=h-K,O=I-K,D=I+K;else h=P+A,p=h+K,O=I+K,D=I-K;s=h}return{x1:O,x2:I,x3:D,y1:h,y2:p,y3:s}}drawTitle(Q,G,X){let q=this.title,N=q.length,K,H,M;if(N){let F=D9(X.rtl,this.x,this.width);Q.x=f3(this,X.titleAlign,X),G.textAlign=F.textAlign(X.titleAlign),G.textBaseline="middle",K=o1(X.titleFont),H=X.titleSpacing,G.fillStyle=X.titleColor,G.font=K.string;for(M=0;M<N;++M)if(G.fillText(q[M],F.x(Q.x),Q.y+K.lineHeight/2),Q.y+=K.lineHeight+H,M+1===N)Q.y+=X.titleMarginBottom-H}}_drawColorBox(Q,G,X,q,N){let K=this.labelColors[X],H=this.labelPointStyles[X],{boxHeight:M,boxWidth:F}=N,w=o1(N.bodyFont),z=f3(this,"left",N),T=q.x(z),P=M<w.lineHeight?(w.lineHeight-M)/2:0,V=G.y+P;if(N.usePointStyle){let A={radius:Math.min(F,M)/2,pointStyle:H.pointStyle,rotation:H.rotation,borderWidth:1},O=q.leftForLtr(T,F)+F/2,I=V+M/2;Q.strokeStyle=N.multiKeyBackground,Q.fillStyle=N.multiKeyBackground,E3(Q,A,O,I),Q.strokeStyle=K.borderColor,Q.fillStyle=K.backgroundColor,E3(Q,A,O,I)}else{Q.lineWidth=o0(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(T,F),O=q.leftForLtr(q.xPlus(T,1),F-2),I=A2(K.borderRadius);if(Object.values(I).some((D)=>D!==0))Q.beginPath(),Q.fillStyle=N.multiKeyBackground,q$(Q,{x:A,y:V,w:F,h:M,radius:I}),Q.fill(),Q.stroke(),Q.fillStyle=K.backgroundColor,Q.beginPath(),q$(Q,{x:O,y:V+1,w:F-2,h:M-2,radius:I}),Q.fill();else Q.fillStyle=N.multiKeyBackground,Q.fillRect(A,V,F,M),Q.strokeRect(A,V,F,M),Q.fillStyle=K.backgroundColor,Q.fillRect(O,V+1,F-2,M-2)}Q.fillStyle=this.labelTextColors[X]}drawBody(Q,G,X){let{body:q}=this,{bodySpacing:N,bodyAlign:K,displayColors:H,boxHeight:M,boxWidth:F,boxPadding:w}=X,z=o1(X.bodyFont),T=z.lineHeight,P=0,V=D9(X.rtl,this.x,this.width),A=function(i){G.fillText(i,V.x(Q.x+P),Q.y+T/2),Q.y+=T+N},O=V.textAlign(K),I,D,h,p,s,o,Q0;G.textAlign=K,G.textBaseline="middle",G.font=z.string,Q.x=f3(this,O,X),G.fillStyle=X.bodyColor,U1(this.beforeBody,A),P=H&&O!=="right"?K==="center"?F/2+w:F+2+w:0;for(p=0,o=q.length;p<o;++p){if(I=q[p],D=this.labelTextColors[p],G.fillStyle=D,U1(I.before,A),h=I.lines,H&&h.length)this._drawColorBox(G,Q,p,V,X),T=Math.max(z.lineHeight,M);for(s=0,Q0=h.length;s<Q0;++s)A(h[s]),T=z.lineHeight;U1(I.after,A)}P=0,T=z.lineHeight,U1(this.afterBody,A),Q.y-=N}drawFooter(Q,G,X){let q=this.footer,N=q.length,K,H;if(N){let M=D9(X.rtl,this.x,this.width);Q.x=f3(this,X.footerAlign,X),Q.y+=X.footerMarginTop,G.textAlign=M.textAlign(X.footerAlign),G.textBaseline="middle",K=o1(X.footerFont),G.fillStyle=X.footerColor,G.font=K.string;for(H=0;H<N;++H)G.fillText(q[H],M.x(Q.x),Q.y+K.lineHeight/2),Q.y+=K.lineHeight+X.footerSpacing}}drawBackground(Q,G,X,q){let{xAlign:N,yAlign:K}=this,{x:H,y:M}=Q,{width:F,height:w}=X,{topLeft:z,topRight:T,bottomLeft:P,bottomRight:V}=A2(q.cornerRadius);if(G.fillStyle=q.backgroundColor,G.strokeStyle=q.borderColor,G.lineWidth=q.borderWidth,G.beginPath(),G.moveTo(H+z,M),K==="top")this.drawCaret(Q,G,X,q);if(G.lineTo(H+F-T,M),G.quadraticCurveTo(H+F,M,H+F,M+T),K==="center"&&N==="right")this.drawCaret(Q,G,X,q);if(G.lineTo(H+F,M+w-V),G.quadraticCurveTo(H+F,M+w,H+F-V,M+w),K==="bottom")this.drawCaret(Q,G,X,q);if(G.lineTo(H+P,M+w),G.quadraticCurveTo(H,M+w,H,M+w-P),K==="center"&&N==="left")this.drawCaret(Q,G,X,q);if(G.lineTo(H,M+z),G.quadraticCurveTo(H,M,H+z,M),G.closePath(),G.fill(),q.borderWidth>0)G.stroke()}_updateAnimationTarget(Q){let G=this.chart,X=this.$animations,q=X&&X.x,N=X&&X.y;if(q||N){let K=MQ[Q.position].call(this,this._active,this._eventPosition);if(!K)return;let H=this._size=rz(this,Q),M=Object.assign({},K,this._size),F=sz(G,Q,M),w=nz(Q,M,F,G);if(q._to!==w.x||N._to!==w.y)this.xAlign=F.xAlign,this.yAlign=F.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 G=this.options.setContext(this.getContext()),X=this.opacity;if(!X)return;this._updateAnimationTarget(G);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=w5(G.padding),H=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;if(G.enabled&&H)Q.save(),Q.globalAlpha=X,this.drawBackground(N,Q,q,G),EU(Q,G.textDirection),N.y+=K.top,this.drawTitle(N,Q,G),this.drawBody(N,Q,G),this.drawFooter(N,Q,G),AU(Q,G.textDirection),Q.restore()}getActiveElements(){return this._active||[]}setActiveElements(Q,G){let X=this._active,q=Q.map(({datasetIndex:H,index:M})=>{let F=this.chart.getDatasetMeta(H);if(!F)throw Error("Cannot find a dataset at index "+H);return{datasetIndex:H,element:F.data[M],index:M}}),N=!ZQ(X,q),K=this._positionChanged(q,G);if(N||K)this._active=q,this._eventPosition=G,this._ignoreReplayEvents=!0,this.update(!0)}handleEvent(Q,G,X=!0){if(G&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;let q=this.options,N=this._active||[],K=this._getActiveElements(Q,N,G,X),H=this._positionChanged(K,Q),M=G||!ZQ(K,N)||H;if(M){if(this._active=K,q.enabled||q.external)this._eventPosition={x:Q.x,y:Q.y},this.update(!0,G)}return M}_getActiveElements(Q,G,X,q){let N=this.options;if(Q.type==="mouseout")return[];if(!q)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(Q,N.mode,N,X);if(N.reverse)K.reverse();return K}_positionChanged(Q,G){let{caretX:X,caretY:q,options:N}=this,K=MQ[N.position].call(this,Q,G);return K!==!1&&(X!==K.x||q!==K.y)}}var bT={id:"tooltip",_element:nU,positioners:MQ,afterInit(Q,G,X){if(X)Q.tooltip=new nU({chart:Q,options:X})},beforeUpdate(Q,G,X){if(Q.tooltip)Q.tooltip.initialize(X)},reset(Q,G,X){if(Q.tooltip)Q.tooltip.initialize(X)},afterDraw(Q){let G=Q.tooltip;if(G&&G._willRender()){let X={tooltip:G};if(Q.notifyPlugins("beforeTooltipDraw",{...X,cancelable:!0})===!1)return;G.draw(Q.ctx),Q.notifyPlugins("afterTooltipDraw",X)}},afterEvent(Q,G){if(Q.tooltip){let X=G.replay;if(Q.tooltip.handleEvent(G.event,X,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:(Q,G)=>G.bodyFont.size,boxWidth:(Q,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:vT},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 Nj=(Q,G,X,q)=>{if(typeof G==="string")X=Q.push(G)-1,q.unshift({index:X,label:G});else if(isNaN(G))X=null;return X};function Uj(Q,G,X,q){let N=Q.indexOf(G);if(N===-1)return Nj(Q,G,X,q);let K=Q.lastIndexOf(G);return N!==K?X:N}var Kj=(Q,G)=>Q===null?null:r5(Math.round(Q),0,G);function iz(Q){let G=this.getLabels();if(Q>=0&&Q<G.length)return G[Q];return Q}class qK extends k9{static id="category";static defaults={ticks:{callback:iz}};constructor(Q){super(Q);this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(Q){let G=this._addedLabels;if(G.length){let X=this.getLabels();for(let{index:q,label:N}of G)if(X[q]===N)X.splice(q,1);this._addedLabels=[]}super.init(Q)}parse(Q,G){if(t0(Q))return null;let X=this.getLabels();return G=isFinite(G)&&X[G]===Q?G:Uj(X,Q,p0(G,Q),this._addedLabels),Kj(G,X.length-1)}determineDataLimits(){let{minDefined:Q,maxDefined:G}=this.getUserBounds(),{min:X,max:q}=this.getMinMax(!0);if(this.options.bounds==="ticks"){if(!Q)X=0;if(!G)q=this.getLabels().length-1}this.min=X,this.max=q}buildTicks(){let Q=this.min,G=this.max,X=this.options.offset,q=[],N=this.getLabels();N=Q===0&&G===N.length-1?N:N.slice(Q,G+1),this._valueRange=Math.max(N.length-(X?0:1),1),this._startValue=this.min-(X?0.5:0);for(let K=Q;K<=G;K++)q.push({value:K});return q}getLabelForValue(Q){return iz.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 G=this.ticks;if(Q<0||Q>G.length-1)return null;return this.getPixelForValue(G[Q].value)}getValueForPixel(Q){return Math.round(this._startValue+this.getDecimalForPixel(Q)*this._valueRange)}getBasePixel(){return this.bottom}}function Bj(Q,G){let X=[],q=0.00000000000001,{bounds:N,step:K,min:H,max:M,precision:F,count:w,maxTicks:z,maxDigits:T,includeBounds:P}=Q,V=K||1,A=z-1,{min:O,max:I}=G,D=!t0(H),h=!t0(M),p=!t0(w),s=(I-O)/(T+1),o=NU((I-O)/A/V)*V,Q0,i,a,q0;if(o<0.00000000000001&&!D&&!h)return[{value:O},{value:I}];if(q0=Math.ceil(I/o)-Math.floor(O/o),q0>A)o=NU(q0*o/A/V)*V;if(!t0(F))Q0=Math.pow(10,F),o=Math.ceil(o*Q0)/Q0;if(N==="ticks")i=Math.floor(O/o)*o,a=Math.ceil(I/o)*o;else i=O,a=I;if(D&&h&&K&&gR((M-H)/K,o/1000))q0=Math.round(Math.min((M-H)/o,z)),o=(M-H)/q0,i=H,a=M;else if(p)i=D?H:i,a=h?M:a,q0=w-1,o=(a-i)/q0;else if(q0=(a-i)/o,G$(q0,Math.round(q0),o/1000))q0=Math.round(q0);else q0=Math.ceil(q0);let d=Math.max(KU(o),KU(i));Q0=Math.pow(10,t0(F)?d:F),i=Math.round(i*Q0)/Q0,a=Math.round(a*Q0)/Q0;let K0=0;if(D){if(P&&i!==H){if(X.push({value:H}),i<H)K0++;if(G$(Math.round((i+K0*o)*Q0)/Q0,H,tz(H,s,Q)))K0++}else if(i<H)K0++}for(;K0<q0;++K0){let L0=Math.round((i+K0*o)*Q0)/Q0;if(h&&L0>M)break;X.push({value:L0})}if(h&&P&&a!==M)if(X.length&&G$(X[X.length-1].value,M,tz(M,s,Q)))X[X.length-1].value=M;else X.push({value:M});else if(!h||a===M)X.push({value:a});return X}function tz(Q,G,{horizontal:X,minRotation:q}){let N=R8(q),K=(X?Math.sin(N):Math.cos(N))||0.001,H=0.75*G*(""+Q).length;return Math.min(G/K,H)}class WQ extends k9{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,G){if(t0(Q))return null;if((typeof Q==="number"||Q instanceof Number)&&!isFinite(+Q))return null;return+Q}handleTickRangeOptions(){let{beginAtZero:Q}=this.options,{minDefined:G,maxDefined:X}=this.getUserBounds(),{min:q,max:N}=this,K=(M)=>q=G?q:M,H=(M)=>N=X?N:M;if(Q){let M=Z4(q),F=Z4(N);if(M<0&&F<0)H(0);else if(M>0&&F>0)K(0)}if(q===N){let M=N===0?1:Math.abs(N*0.05);if(H(N+M),!Q)K(q-M)}this.min=q,this.max=N}getTickLimit(){let Q=this.options.ticks,{maxTicksLimit:G,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(),G=G||11;if(G)q=Math.min(G,q);return q}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){let Q=this.options,G=Q.ticks,X=this.getTickLimit();X=Math.max(2,X);let q={maxTicks:X,bounds:Q.bounds,min:Q.min,max:Q.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=Bj(q,N);if(Q.bounds==="ticks")UU(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,G=this.min,X=this.max;if(super.configure(),this.options.offset&&Q.length){let q=(X-G)/Math.max(Q.length-1,1)/2;G-=q,X+=q}this._startValue=G,this._endValue=X,this._valueRange=X-G}getLabelForValue(Q){return I3(Q,this.chart.options.locale,this.options.ticks.format)}}class YK extends WQ{static id="linear";static defaults={ticks:{callback:QQ.formatters.numeric}};determineDataLimits(){let{min:Q,max:G}=this.getMinMax(!0);this.min=v1(Q)?Q:0,this.max=v1(G)?G:1,this.handleTickRangeOptions()}computeTickLimit(){let Q=this.isHorizontal(),G=Q?this.width:this.height,X=R8(this.options.ticks.minRotation),q=(Q?Math.sin(X):Math.cos(X))||0.001,N=this._resolveTickFontOptions(0);return Math.ceil(G/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 wQ=(Q)=>Math.floor(w8(Q)),b9=(Q,G)=>Math.pow(10,wQ(Q)+G);function ez(Q){return Q/Math.pow(10,wQ(Q))===1}function $T(Q,G,X){let q=Math.pow(10,X),N=Math.floor(Q/q);return Math.ceil(G/q)-N}function Hj(Q,G){let X=G-Q,q=wQ(X);while($T(Q,G,q)>10)q++;while($T(Q,G,q)<10)q--;return Math.min(q,wQ(Q))}function Mj(Q,{min:G,max:X}){G=s5(Q.min,G);let q=[],N=wQ(G),K=Hj(G,X),H=K<0?Math.pow(10,Math.abs(K)):1,M=Math.pow(10,K),F=N>K?Math.pow(10,N):0,w=Math.round((G-F)*H)/H,z=Math.floor((G-F)/M/10)*M*10,T=Math.floor((w-z)/Math.pow(10,K)),P=s5(Q.min,Math.round((F+z+T*Math.pow(10,K))*H)/H);while(P<X){if(q.push({value:P,major:ez(P),significand:T}),T>=10)T=T<15?15:20;else T++;if(T>=20)K++,T=2,H=K>=0?1:H;P=Math.round((F+z+T*Math.pow(10,K))*H)/H}let V=s5(Q.max,P);return q.push({value:V,major:ez(V),significand:T}),q}class Fj extends k9{static id="logarithmic";static defaults={ticks:{callback:QQ.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,G){let X=WQ.prototype.parse.apply(this,[Q,G]);if(X===0){this._zero=!0;return}return v1(X)&&X>0?X:null}determineDataLimits(){let{min:Q,max:G}=this.getMinMax(!0);if(this.min=v1(Q)?Math.max(0,Q):null,this.max=v1(G)?Math.max(0,G):null,this.options.beginAtZero)this._zero=!0;if(this._zero&&this.min!==this._suggestedMin&&!v1(this._userMin))this.min=Q===b9(this.min,0)?b9(this.min,-1):b9(this.min,0);this.handleTickRangeOptions()}handleTickRangeOptions(){let{minDefined:Q,maxDefined:G}=this.getUserBounds(),X=this.min,q=this.max,N=(H)=>X=Q?X:H,K=(H)=>q=G?q:H;if(X===q)if(X<=0)N(1),K(10);else N(b9(X,-1)),K(b9(q,1));if(X<=0)N(b9(q,-1));if(q<=0)K(b9(X,1));this.min=X,this.max=q}buildTicks(){let Q=this.options,G={min:this._userMin,max:this._userMax},X=Mj(G,this);if(Q.bounds==="ticks")UU(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":I3(Q,this.chart.options.locale,this.options.ticks.format)}configure(){let Q=this.min;super.configure(),this._startValue=w8(Q),this._valueRange=w8(this.max)-w8(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:(w8(Q)-this._startValue)/this._valueRange)}getValueForPixel(Q){let G=this.getDecimalForPixel(Q);return Math.pow(10,this._startValue+G*this._valueRange)}}function oU(Q){let G=Q.ticks;if(G.display&&Q.display){let X=w5(G.backdropPadding);return p0(G.font&&G.font.size,b1.font.size)+X.height}return 0}function Wj(Q,G,X){return X=_1(X)?X:[X],{w:aR(Q,G.string,X),h:X.length*G.lineHeight}}function ZT(Q,G,X,q,N){if(Q===q||Q===N)return{start:G-X/2,end:G+X/2};else if(Q<q||Q>N)return{start:G-X,end:G};return{start:G,end:G+X}}function wj(Q){let G={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({},G),q=[],N=[],K=Q._pointLabels.length,H=Q.options.pointLabels,M=H.centerPointLabels?u1/K:0;for(let F=0;F<K;F++){let w=H.setContext(Q.getPointLabelContext(F));N[F]=w.padding;let z=Q.getPointPosition(F,Q.drawingArea+N[F],M),T=o1(w.font),P=Wj(Q.ctx,T,Q._pointLabels[F]);q[F]=P;let V=p5(Q.getIndexAngle(F)+M),A=Math.round(_3(V)),O=ZT(A,z.x,P.w,0,180),I=ZT(A,z.y,P.h,90,270);Rj(X,G,V,O,I)}Q.setCenterPoint(G.l-X.l,X.r-G.r,G.t-X.t,X.b-G.b),Q._pointLabelItems=Lj(Q,q,N)}function Rj(Q,G,X,q,N){let K=Math.abs(Math.sin(X)),H=Math.abs(Math.cos(X)),M=0,F=0;if(q.start<G.l)M=(G.l-q.start)/K,Q.l=Math.min(Q.l,G.l-M);else if(q.end>G.r)M=(q.end-G.r)/K,Q.r=Math.max(Q.r,G.r+M);if(N.start<G.t)F=(G.t-N.start)/H,Q.t=Math.min(Q.t,G.t-F);else if(N.end>G.b)F=(N.end-G.b)/H,Q.b=Math.max(Q.b,G.b+F)}function zj(Q,G,X){let q=Q.drawingArea,{extra:N,additionalAngle:K,padding:H,size:M}=X,F=Q.getPointPosition(G,q+N+H,K),w=Math.round(_3(p5(F.angle+c5))),z=Cj(F.y,M.h,w),T=Pj(w),P=_j(F.x,M.w,T);return{visible:!0,x:F.x,y:z,textAlign:T,left:P,top:z,right:P+M.w,bottom:z+M.h}}function Tj(Q,G){if(!G)return!0;let{left:X,top:q,right:N,bottom:K}=Q;return!(b4({x:X,y:q},G)||b4({x:X,y:K},G)||b4({x:N,y:q},G)||b4({x:N,y:K},G))}function Lj(Q,G,X){let q=[],N=Q._pointLabels.length,K=Q.options,{centerPointLabels:H,display:M}=K.pointLabels,F={extra:oU(K)/2,additionalAngle:H?u1/N:0},w;for(let z=0;z<N;z++){F.padding=X[z],F.size=G[z];let T=zj(Q,z,F);if(q.push(T),M==="auto"){if(T.visible=Tj(T,w),T.visible)w=T}}return q}function Pj(Q){if(Q===0||Q===180)return"center";else if(Q<180)return"left";return"right"}function _j(Q,G,X){if(X==="right")Q-=G;else if(X==="center")Q-=G/2;return Q}function Cj(Q,G,X){if(X===90||X===270)Q-=G/2;else if(X>270||X<90)Q-=G;return Q}function Vj(Q,G,X){let{left:q,top:N,right:K,bottom:H}=X,{backdropColor:M}=G;if(!t0(M)){let F=A2(G.borderRadius),w=w5(G.backdropPadding);Q.fillStyle=M;let z=q-w.left,T=N-w.top,P=K-q+w.width,V=H-N+w.height;if(Object.values(F).some((A)=>A!==0))Q.beginPath(),q$(Q,{x:z,y:T,w:P,h:V,radius:F}),Q.fill();else Q.fillRect(z,T,P,V)}}function Ij(Q,G){let{ctx:X,options:{pointLabels:q}}=Q;for(let N=G-1;N>=0;N--){let K=Q._pointLabelItems[N];if(!K.visible)continue;let H=q.setContext(Q.getPointLabelContext(N));Vj(X,H,K);let M=o1(H.font),{x:F,y:w,textAlign:z}=K;E2(X,Q._pointLabels[N],F,w+M.lineHeight/2,M,{color:H.color,textAlign:z,textBaseline:"middle"})}}function kT(Q,G,X,q){let{ctx:N}=Q;if(X)N.arc(Q.xCenter,Q.yCenter,G,0,l5);else{let K=Q.getPointPosition(0,G);N.moveTo(K.x,K.y);for(let H=1;H<q;H++)K=Q.getPointPosition(H,G),N.lineTo(K.x,K.y)}}function Oj(Q,G,X,q,N){let K=Q.ctx,H=G.circular,{color:M,lineWidth:F}=G;if(!H&&!q||!M||!F||X<0)return;K.save(),K.strokeStyle=M,K.lineWidth=F,K.setLineDash(N.dash||[]),K.lineDashOffset=N.dashOffset,K.beginPath(),kT(Q,X,H,q),K.closePath(),K.stroke(),K.restore()}function Ej(Q,G,X){return T8(Q,{label:X,index:G,type:"pointLabel"})}class Aj extends WQ{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:QQ.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=w5(oU(this.options)/2),G=this.width=this.maxWidth-Q.width,X=this.height=this.maxHeight-Q.height;this.xCenter=Math.floor(this.left+G/2+Q.left),this.yCenter=Math.floor(this.top+X/2+Q.top),this.drawingArea=Math.floor(Math.min(G,X)/2)}determineDataLimits(){let{min:Q,max:G}=this.getMinMax(!1);this.min=v1(Q)&&!isNaN(Q)?Q:0,this.max=v1(G)&&!isNaN(G)?G:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/oU(this.options))}generateTickLabels(Q){WQ.prototype.generateTickLabels.call(this,Q),this._pointLabels=this.getLabels().map((G,X)=>{let q=z1(this.options.pointLabels.callback,[G,X],this);return q||q===0?q:""}).filter((G,X)=>this.chart.getDataVisibility(X))}fit(){let Q=this.options;if(Q.display&&Q.pointLabels.display)wj(this);else this.setCenterPoint(0,0,0,0)}setCenterPoint(Q,G,X,q){this.xCenter+=Math.floor((Q-G)/2),this.yCenter+=Math.floor((X-q)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(Q,G,X,q))}getIndexAngle(Q){let G=l5/(this._pointLabels.length||1),X=this.options.startAngle||0;return p5(Q*G+R8(X))}getDistanceFromCenterForValue(Q){if(t0(Q))return NaN;let G=this.drawingArea/(this.max-this.min);if(this.options.reverse)return(this.max-Q)*G;return(Q-this.min)*G}getValueForDistanceFromCenter(Q){if(t0(Q))return NaN;let G=Q/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-G:this.min+G}getPointLabelContext(Q){let G=this._pointLabels||[];if(Q>=0&&Q<G.length){let X=G[Q];return Ej(this.getContext(),Q,X)}}getPointPosition(Q,G,X=0){let q=this.getIndexAngle(Q)-c5+X;return{x:Math.cos(q)*G+this.xCenter,y:Math.sin(q)*G+this.yCenter,angle:q}}getPointPositionForValue(Q,G){return this.getPointPosition(Q,this.getDistanceFromCenterForValue(G))}getBasePosition(Q){return this.getPointPositionForValue(Q||0,this.getBaseValue())}getPointLabelPosition(Q){let{left:G,top:X,right:q,bottom:N}=this._pointLabelItems[Q];return{left:G,top:X,right:q,bottom:N}}drawBackground(){let{backgroundColor:Q,grid:{circular:G}}=this.options;if(Q){let X=this.ctx;X.save(),X.beginPath(),kT(this,this.getDistanceFromCenterForValue(this._endValue),G,this._pointLabels.length),X.closePath(),X.fillStyle=Q,X.fill(),X.restore()}}drawGrid(){let Q=this.ctx,G=this.options,{angleLines:X,grid:q,border:N}=G,K=this._pointLabels.length,H,M,F;if(G.pointLabels.display)Ij(this,K);if(q.display)this.ticks.forEach((w,z)=>{if(z!==0||z===0&&this.min<0){M=this.getDistanceFromCenterForValue(w.value);let T=this.getContext(z),P=q.setContext(T),V=N.setContext(T);Oj(this,P,M,K,V)}});if(X.display){Q.save();for(H=K-1;H>=0;H--){let w=X.setContext(this.getPointLabelContext(H)),{color:z,lineWidth:T}=w;if(!T||!z)continue;Q.lineWidth=T,Q.strokeStyle=z,Q.setLineDash(w.borderDash),Q.lineDashOffset=w.borderDashOffset,M=this.getDistanceFromCenterForValue(G.reverse?this.min:this.max),F=this.getPointPosition(H,M),Q.beginPath(),Q.moveTo(this.xCenter,this.yCenter),Q.lineTo(F.x,F.y),Q.stroke()}Q.restore()}}drawBorder(){}drawLabels(){let Q=this.ctx,G=this.options,X=G.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,M)=>{if(M===0&&this.min>=0&&!G.reverse)return;let F=X.setContext(this.getContext(M)),w=o1(F.font);if(N=this.getDistanceFromCenterForValue(this.ticks[M].value),F.showLabelBackdrop){Q.font=w.string,K=Q.measureText(H.label).width,Q.fillStyle=F.backdropColor;let z=w5(F.backdropPadding);Q.fillRect(-K/2-z.left,-N-w.size/2-z.top,K+z.width,w.size+z.height)}E2(Q,H.label,0,-N,w,{color:F.color,strokeColor:F.textStrokeColor,strokeWidth:F.textStrokeWidth})}),Q.restore()}drawTitle(){}}var d3={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}},o5=Object.keys(d3);function QT(Q,G){return Q-G}function JT(Q,G){if(t0(G))return null;let X=Q._adapter,{parser:q,round:N,isoWeekday:K}=Q._parseOpts,H=G;if(typeof q==="function")H=q(H);if(!v1(H))H=typeof q==="string"?X.parse(H,q):X.parse(H);if(H===null)return null;if(N)H=N==="week"&&(X$(K)||K===!0)?X.startOf(H,"isoWeek",K):X.startOf(H,N);return+H}function GT(Q,G,X,q){let N=o5.length;for(let K=o5.indexOf(Q);K<N-1;++K){let H=d3[o5[K]],M=H.steps?H.steps:Number.MAX_SAFE_INTEGER;if(H.common&&Math.ceil((X-G)/(M*H.size))<=q)return o5[K]}return o5[N-1]}function jj(Q,G,X,q,N){for(let K=o5.length-1;K>=o5.indexOf(X);K--){let H=o5[K];if(d3[H].common&&Q._adapter.diff(N,q,H)>=G-1)return H}return o5[X?o5.indexOf(X):0]}function Sj(Q){for(let G=o5.indexOf(Q)+1,X=o5.length;G<X;++G)if(d3[o5[G]].common)return o5[G]}function XT(Q,G,X){if(!X)Q[G]=!0;else if(X.length){let{lo:q,hi:N}=C3(X,G),K=X[q]>=G?X[q]:X[N];Q[K]=!0}}function Dj(Q,G,X,q){let N=Q._adapter,K=+N.startOf(G[0].value,q),H=G[G.length-1].value,M,F;for(M=K;M<=H;M=+N.add(M,1,q))if(F=X[M],F>=0)G[F].major=!0;return G}function qT(Q,G,X){let q=[],N={},K=G.length,H,M;for(H=0;H<K;++H)M=G[H],N[M]=H,q.push({value:M,major:!1});return K===0||!X?q:Dj(Q,q,N,X)}class aU extends k9{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,G={}){let X=Q.time||(Q.time={}),q=this._adapter=new HE._date(Q.adapters.date);q.init(G),Q$(X.displayFormats,q.formats()),this._parseOpts={parser:X.parser,round:X.round,isoWeekday:X.isoWeekday},super.init(Q),this._normalized=G.normalized}parse(Q,G){if(Q===void 0)return null;return JT(this,Q)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){let Q=this.options,G=this._adapter,X=Q.time.unit||"day",{min:q,max:N,minDefined:K,maxDefined:H}=this.getUserBounds();function M(F){if(!K&&!isNaN(F.min))q=Math.min(q,F.min);if(!H&&!isNaN(F.max))N=Math.max(N,F.max)}if(!K||!H){if(M(this._getLabelBounds()),Q.bounds!=="ticks"||Q.ticks.source!=="labels")M(this.getMinMax(!1))}q=v1(q)&&!isNaN(q)?q:+G.startOf(Date.now(),X),N=v1(N)&&!isNaN(N)?N:+G.endOf(Date.now(),X)+1,this.min=Math.min(q,N-1),this.max=Math.max(q+1,N)}_getLabelBounds(){let Q=this.getLabelTimestamps(),G=Number.POSITIVE_INFINITY,X=Number.NEGATIVE_INFINITY;if(Q.length)G=Q[0],X=Q[Q.length-1];return{min:G,max:X}}buildTicks(){let Q=this.options,G=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=mR(q,N,K);if(this._unit=G.unit||(X.autoSkip?GT(G.minUnit,this.min,this.max,this._getLabelCapacity(N)):jj(this,H.length,G.minUnit,this.min,this.max)),this._majorUnit=!X.major.enabled||this._unit==="year"?void 0:Sj(this._unit),this.initOffsets(q),Q.reverse)H.reverse();return qT(this,H,this._majorUnit)}afterAutoSkip(){if(this.options.offsetAfterAutoskip)this.initOffsets(this.ticks.map((Q)=>+Q.value))}initOffsets(Q=[]){let G=0,X=0,q,N;if(this.options.offset&&Q.length){if(q=this.getDecimalForValue(Q[0]),Q.length===1)G=1-q;else G=(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;G=r5(G,0,K),X=r5(X,0,K),this._offsets={start:G,end:X,factor:1/(G+1+X)}}_generate(){let Q=this._adapter,G=this.min,X=this.max,q=this.options,N=q.time,K=N.unit||GT(N.minUnit,G,X,this._getLabelCapacity(G)),H=p0(q.ticks.stepSize,1),M=K==="week"?N.isoWeekday:!1,F=X$(M)||M===!0,w={},z=G,T,P;if(F)z=+Q.startOf(z,"isoWeek",M);if(z=+Q.startOf(z,F?"day":K),Q.diff(X,G,K)>1e5*H)throw Error(G+" and "+X+" are too far apart with stepSize of "+H+" "+K);let V=q.ticks.source==="data"&&this.getDataTimestamps();for(T=z,P=0;T<X;T=+Q.add(T,H,K),P++)XT(w,T,V);if(T===X||q.bounds==="ticks"||P===1)XT(w,T,V);return Object.keys(w).sort(QT).map((A)=>+A)}getLabelForValue(Q){let G=this._adapter,X=this.options.time;if(X.tooltipFormat)return G.format(Q,X.tooltipFormat);return G.format(Q,X.displayFormats.datetime)}format(Q,G){let q=this.options.time.displayFormats,N=this._unit,K=G||q[N];return this._adapter.format(Q,K)}_tickFormatFunction(Q,G,X,q){let N=this.options,K=N.ticks.callback;if(K)return z1(K,[Q,G,X],this);let H=N.time.displayFormats,M=this._unit,F=this._majorUnit,w=M&&H[M],z=F&&H[F],T=X[G],P=F&&z&&T&&T.major;return this._adapter.format(Q,q||(P?z:w))}generateTickLabels(Q){let G,X,q;for(G=0,X=Q.length;G<X;++G)q=Q[G],q.label=this._tickFormatFunction(q.value,G,Q)}getDecimalForValue(Q){return Q===null?NaN:(Q-this.min)/(this.max-this.min)}getPixelForValue(Q){let G=this._offsets,X=this.getDecimalForValue(Q);return this.getPixelForDecimal((G.start+X)*G.factor)}getValueForPixel(Q){let G=this._offsets,X=this.getDecimalForPixel(Q)/G.factor-G.end;return this.min+X*(this.max-this.min)}_getLabelSize(Q){let G=this.options.ticks,X=this.ctx.measureText(Q).width,q=R8(this.isHorizontal()?G.maxRotation:G.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 G=this.options.time,X=G.displayFormats,q=X[G.unit]||X.millisecond,N=this._tickFormatFunction(Q,0,qT(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||[],G,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(G=0,X=q.length;G<X;++G)Q=Q.concat(q[G].controller.getAllParsedValues(this));return this._cache.data=this.normalize(Q)}getLabelTimestamps(){let Q=this._cache.labels||[],G,X;if(Q.length)return Q;let q=this.getLabels();for(G=0,X=q.length;G<X;++G)Q.push(JT(this,q[G]));return this._cache.labels=this._normalized?Q:this.normalize(Q)}normalize(Q){return MU(Q.sort(QT))}}function y3(Q,G,X){let q=0,N=Q.length-1,K,H,M,F;if(X){if(G>=Q[q].pos&&G<=Q[N].pos)({lo:q,hi:N}=C2(Q,"pos",G));({pos:K,time:M}=Q[q]),{pos:H,time:F}=Q[N]}else{if(G>=Q[q].time&&G<=Q[N].time)({lo:q,hi:N}=C2(Q,"time",G));({time:K,pos:M}=Q[q]),{time:H,pos:F}=Q[N]}let w=H-K;return w?M+(F-M)*(G-K)/w:M}class vj extends aU{static id="timeseries";static defaults=aU.defaults;constructor(Q){super(Q);this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){let Q=this._getTimestampsForTable(),G=this._table=this.buildLookupTable(Q);this._minPos=y3(G,this.min),this._tableRange=y3(G,this.max)-this._minPos,super.initOffsets(Q)}buildLookupTable(Q){let{min:G,max:X}=this,q=[],N=[],K,H,M,F,w;for(K=0,H=Q.length;K<H;++K)if(F=Q[K],F>=G&&F<=X)q.push(F);if(q.length<2)return[{time:G,pos:0},{time:X,pos:1}];for(K=0,H=q.length;K<H;++K)if(w=q[K+1],M=q[K-1],F=q[K],Math.round((w+M)/2)!==F)N.push({time:F,pos:K/(H-1)});return N}_generate(){let Q=this.min,G=this.max,X=super.getDataTimestamps();if(!X.includes(Q)||!X.length)X.splice(0,0,Q);if(!X.includes(G)||X.length===1)X.push(G);return X.sort((q,N)=>q-N)}_getTimestampsForTable(){let Q=this._cache.all||[];if(Q.length)return Q;let G=this.getDataTimestamps(),X=this.getLabelTimestamps();if(G.length&&X.length)Q=this.normalize(G.concat(X));else Q=G.length?G:X;return Q=this._cache.all=Q,Q}getDecimalForValue(Q){return(y3(this._table,Q)-this._minPos)/this._tableRange}getValueForPixel(Q){let G=this._offsets,X=this.getDecimalForPixel(Q)/G.factor-G.end;return y3(this._table,X*this._tableRange+this._minPos,!0)}}f9.register(qK,YK,JK,Y$,QK,DT,bT,ST,AT);var yP=t(mT(),1);var A8=t(O1(),1);var r3=t(O1(),1);var c3=(...Q)=>Q.filter((G,X,q)=>{return Boolean(G)&&G.trim()!==""&&q.indexOf(G)===X}).join(" ").trim();var dT=(Q)=>Q.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();var pT=(Q)=>Q.replace(/^([A-Z])|[\s-_]+(\w)/g,(G,X,q)=>q?q.toUpperCase():X.toLowerCase());var KK=(Q)=>{let G=pT(Q);return G.charAt(0).toUpperCase()+G.slice(1)};var zQ=t(O1(),1);var l3={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 cT=(Q)=>{for(let G in Q)if(G.startsWith("aria-")||G==="role"||G==="title")return!0;return!1};var U$=t(O1(),1),uj=U$.createContext({});var lT=()=>U$.useContext(uj);var rT=zQ.forwardRef(({color:Q,size:G,strokeWidth:X,absoluteStrokeWidth:q,className:N="",children:K,iconNode:H,...M},F)=>{let{size:w=24,strokeWidth:z=2,absoluteStrokeWidth:T=!1,color:P="currentColor",className:V=""}=lT()??{},A=q??T?Number(X??z)*24/Number(G??w):X??z;return zQ.createElement("svg",{ref:F,...l3,width:G??w??l3.width,height:G??w??l3.height,stroke:Q??P,strokeWidth:A,className:c3("lucide",V,N),...!K&&!cT(M)&&{"aria-hidden":"true"},...M},[...H.map(([O,I])=>zQ.createElement(O,I)),...Array.isArray(K)?K:[K]])});var j0=(Q,G)=>{let X=r3.forwardRef(({className:q,...N},K)=>r3.createElement(rT,{ref:K,iconNode:G,className:c3(`lucide-${dT(KK(Q))}`,`lucide-${Q}`,q),...N}));return X.displayName=KK(Q),X};var xj=[["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"}]],D2=j0("circle-alert",xj);var mj=[["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"}]],TQ=j0("activity",mj);var dj=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],LQ=j0("check",dj);var pj=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],PQ=j0("chevron-down",pj);var cj=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],_Q=j0("chevron-up",cj);var lj=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],CQ=j0("clock",lj);var rj=[["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"}]],g9=j0("coins",rj);var sj=[["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"}]],VQ=j0("copy",sj);var nj=[["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"}]],IQ=j0("cpu",nj);var oj=[["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"}]],OQ=j0("folder",oj);var aj=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],EQ=j0("gauge",aj);var ij=[["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"}]],AQ=j0("hash",ij);var tj=[["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"}]],jQ=j0("inbox",tj);var ej=[["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"}]],SQ=j0("layout-dashboard",ej);var $S=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],DQ=j0("menu",$S);var ZS=[["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"}]],vQ=j0("monitor",ZS);var QS=[["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"}]],bQ=j0("moon",QS);var JS=[["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"}]],kQ=j0("refresh-cw",JS);var GS=[["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"}]],fQ=j0("smile",GS);var XS=[["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"}]],yQ=j0("star",XS);var qS=[["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"}]],gQ=j0("sun",qS);var YS=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],h9=j0("x",YS);var NS=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],hQ=j0("zap",NS);var HL=t(O1(),1);var uQ=[{id:"overview",label:"Overview",icon:SQ},{id:"requests",label:"Requests",icon:TQ},{id:"errors",label:"Errors",icon:D2},{id:"models",label:"Models",icon:IQ},{id:"costs",label:"Costs",icon:g9},{id:"behavior",label:"Behavior",shortLabel:"Behavior",icon:fQ},{id:"projects",label:"Projects",icon:OQ}];var h6=t(R0(),1);function BK({activeSection:Q,onSectionChange:G,className:X=""}){return h6.jsxDEV("aside",{className:`stats-nav-rail ${X}`,children:[h6.jsxDEV("div",{className:"stats-nav-rail-header",children:h6.jsxDEV("div",{className:"stats-logo-container",children:[h6.jsxDEV("span",{className:"stats-logo-text",children:"OH MY PI"},void 0,!1,void 0,this),h6.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),h6.jsxDEV("nav",{className:"stats-nav-rail-menu",children:uQ.map((q)=>{let N=q.id===Q,K=q.icon;return h6.jsxDEV("button",{type:"button",onClick:()=>G(q.id),className:"stats-nav-rail-item","data-active":N?"true":"false","aria-current":N?"page":void 0,children:[h6.jsxDEV(K,{size:16,className:"stats-nav-rail-item-icon"},void 0,!1,void 0,this),h6.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),h6.jsxDEV("div",{className:"stats-nav-rail-footer",children:h6.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 HK=t(R0(),1),KS=[{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 sT({value:Q,onChange:G,className:X=""}){return HK.jsxDEV("div",{className:`stats-range-control ${X}`,role:"radiogroup","aria-label":"Select time range",children:KS.map((q)=>{let N=q.value===Q;return HK.jsxDEV("button",{type:"button",role:"radio","aria-checked":N,"data-active":N?"true":"false",className:"stats-range-control-btn",onClick:()=>G(q.value),children:q.label},q.value,!1,void 0,this)})},void 0,!1,void 0,this)}var MK=t(O1(),1);class nT extends Error{status;endpoint;constructor(Q,G,X){super(X);this.name="ApiError",this.status=Q,this.endpoint=G}}async function C8(Q,G){let X=await fetch(Q,G);if(!X.ok)throw new nT(X.status,Q,`HTTP error ${X.status} on ${Q}`);return X.json()}async function oT(Q="24h",G){return C8(`/api/stats/overview?range=${encodeURIComponent(Q)}`,{signal:G})}async function aT(Q="24h",G){return C8(`/api/stats/model-dashboard?range=${encodeURIComponent(Q)}`,{signal:G})}async function iT(Q="24h",G){return C8(`/api/stats/costs?range=${encodeURIComponent(Q)}`,{signal:G})}async function s3(Q=50,G){return C8(`/api/stats/recent?limit=${Q}`,{signal:G})}async function tT(Q=50,G){return C8(`/api/stats/errors?limit=${Q}`,{signal:G})}async function eT(Q,G){return C8(`/api/request/${Q}`,{signal:G})}async function $L(Q){return C8("/api/sync",{signal:Q})}async function ZL(Q="24h",G){return C8(`/api/stats/behavior?range=${encodeURIComponent(Q)}`,{signal:G})}async function QL(Q="24h",G){return C8(`/api/stats/folders?range=${encodeURIComponent(Q)}`,{signal:G})}var xQ=t(R0(),1);function JL({onSyncStart:Q,onSyncComplete:G,className:X=""}){let[q,N]=MK.useState(!1),[K,H]=MK.useState(null),M=async()=>{if(q)return;if(N(!0),H(null),Q)Q();try{let F=await $L(),w={processed:typeof F?.processed==="number"?F.processed:0,files:typeof F?.files==="number"?F.files:0,totalMessages:typeof F?.totalMessages==="number"?F.totalMessages:0};if(H({type:"success",message:`Synced: ${w.processed} new request${w.processed===1?"":"s"} found.`}),G)G({success:!0,data:w})}catch(F){let w=F instanceof Error?F.message:String(F);if(H({type:"error",message:`Sync failed: ${w}`}),G)G({success:!1,error:w})}finally{N(!1)}};return xQ.jsxDEV("div",{className:`stats-sync-container ${X}`,children:[K&&xQ.jsxDEV("span",{className:"stats-sync-status-msg","data-type":K.type,children:K.message},void 0,!1,void 0,this),xQ.jsxDEV("button",{type:"button",onClick:M,disabled:q,className:"stats-button stats-button-primary stats-sync-btn","aria-busy":q,children:[xQ.jsxDEV(kQ,{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 n3=t(O1(),1),GL="omp-stats-theme",XL="(prefers-color-scheme: dark)";function BS(){if(typeof localStorage>"u")return"system";let Q=localStorage.getItem(GL);return Q==="light"||Q==="dark"||Q==="system"?Q:"system"}function qL(){if(typeof window>"u")return"dark";return window.matchMedia(XL).matches?"dark":"light"}var x9=BS(),mQ=x9==="system"?qL():x9,FK=new Set;function YL(){for(let Q of FK)Q()}function WK(){if(mQ=x9==="system"?qL():x9,typeof document<"u")document.documentElement.dataset.theme=mQ,document.documentElement.style.colorScheme=mQ}if(typeof window<"u")WK(),window.matchMedia(XL).addEventListener("change",()=>{if(x9==="system")WK(),YL()});function HS(Q){if(x9=Q,typeof localStorage<"u")localStorage.setItem(GL,Q);WK(),YL()}function wK(Q){return FK.add(Q),()=>FK.delete(Q)}function g4(){return n3.useSyncExternalStore(wK,()=>mQ,()=>"dark")}function NL(){let Q=n3.useSyncExternalStore(wK,()=>x9,()=>"system"),G=n3.useSyncExternalStore(wK,()=>mQ,()=>"dark");return{preference:Q,resolved:G,setPreference:HS}}var RK=t(R0(),1),MS={system:"light",light:"dark",dark:"system"},FS={system:vQ,light:gQ,dark:bQ},UL={system:"System theme",light:"Light theme",dark:"Dark theme"};function KL(){let{preference:Q,setPreference:G}=NL(),X=FS[Q];return RK.jsxDEV("button",{type:"button",className:"stats-theme-toggle",onClick:()=>G(MS[Q]),"aria-label":`${UL[Q]} (click to switch)`,title:`${UL[Q]} — click to switch`,children:RK.jsxDEV(X,{size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var u6=t(R0(),1);function BL({activeSection:Q,range:G,onRangeChange:X,updatedAt:q,onSyncStart:N,onSyncComplete:K,onMenuToggle:H,className:M=""}){let w=uQ.find((T)=>T.id===Q)?.label||"Observability",z=(T)=>{if(!T)return"Not updated";return`Updated ${new Date(T).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"})}`};return u6.jsxDEV("header",{className:`stats-top-bar ${M}`,children:[u6.jsxDEV("div",{className:"stats-top-bar-left",children:[H&&u6.jsxDEV("button",{type:"button",onClick:H,className:"stats-mobile-menu-btn","aria-label":"Open navigation menu",children:u6.jsxDEV(DQ,{size:20},void 0,!1,void 0,this)},void 0,!1,void 0,this),u6.jsxDEV("h1",{className:"stats-page-title",children:w},void 0,!1,void 0,this)]},void 0,!0,void 0,this),u6.jsxDEV("div",{className:"stats-top-bar-right",children:[u6.jsxDEV("div",{className:"stats-top-bar-meta",children:u6.jsxDEV("span",{className:"stats-last-updated",title:q?new Date(q).toLocaleString():void 0,children:z(q)},void 0,!1,void 0,this)},void 0,!1,void 0,this),u6.jsxDEV(sT,{value:G,onChange:X},void 0,!1,void 0,this),u6.jsxDEV(KL,{},void 0,!1,void 0,this),u6.jsxDEV(JL,{onSyncStart:N,onSyncComplete:K},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var C5=t(R0(),1);function ML({activeSection:Q,onSectionChange:G,range:X,onRangeChange:q,updatedAt:N,onSyncStart:K,onSyncComplete:H,children:M}){let[F,w]=HL.useState(!1),z=(T)=>{G(T),w(!1)};return C5.jsxDEV("div",{className:"stats-app-container",children:[C5.jsxDEV(BK,{activeSection:Q,onSectionChange:z,className:"stats-desktop-nav"},void 0,!1,void 0,this),F&&C5.jsxDEV("div",{className:"stats-mobile-drawer-overlay",onClick:()=>w(!1),role:"presentation",children:C5.jsxDEV("div",{className:"stats-mobile-drawer",onClick:(T)=>T.stopPropagation(),role:"dialog","aria-modal":"true","aria-label":"Navigation menu",children:[C5.jsxDEV("div",{className:"stats-mobile-drawer-header",children:[C5.jsxDEV("div",{className:"stats-logo-container",children:[C5.jsxDEV("span",{className:"stats-logo-text",children:"OH MY PI"},void 0,!1,void 0,this),C5.jsxDEV("span",{className:"stats-logo-subtext",children:"Observability"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),C5.jsxDEV("button",{type:"button",onClick:()=>w(!1),className:"stats-drawer-close-btn","aria-label":"Close navigation menu",children:C5.jsxDEV(h9,{size:18},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),C5.jsxDEV(BK,{activeSection:Q,onSectionChange:z,className:"stats-mobile-nav"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),C5.jsxDEV("div",{className:"stats-main-pane",children:[C5.jsxDEV(BL,{activeSection:Q,range:X,onRangeChange:q,updatedAt:N,onSyncStart:K,onSyncComplete:H,onMenuToggle:()=>w(!0)},void 0,!1,void 0,this),C5.jsxDEV("main",{className:"stats-content-area",children:C5.jsxDEV("div",{className:"stats-content-inner",children:M},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 V8=t(O1(),1),WS=["overview","requests","errors","models","costs","behavior","projects"],FL=["1h","24h","7d","30d","90d","all"];function zK(Q){let G=Q.replace(/^#\/?/,""),[X,q]=G.split("?"),N=WS.includes(X)?X:"overview",K="24h";if(q){let M=new URLSearchParams(q).get("range");if(FL.includes(M))K=M}return{section:N,range:K}}function WL(){let[Q,G]=V8.useState(()=>zK(window.location.hash));V8.useEffect(()=>{let K=()=>{G(zK(window.location.hash))};return window.addEventListener("hashchange",K),()=>{window.removeEventListener("hashchange",K)}},[]);let X=V8.useCallback((K,H)=>{window.location.hash=`/${K}?range=${H}`},[]),q=V8.useCallback((K)=>{X(K,Q.range)},[Q.range,X]),N=V8.useCallback((K)=>{let H=FL.includes(K)?K:"24h";X(Q.section,H)},[Q.section,X]);return V8.useEffect(()=>{let K=window.location.hash,H=zK(K),M=`#/${H.section}?range=${H.range}`;if(K!==M)window.location.hash=`/${H.section}?range=${H.range}`},[]),{section:Q.section,setSection:q,range:Q.range,setRange:N}}var wS=Math.pow(10,8)*24*60*60*1000,Xn1=-wS,o3=604800000,wL=86400000;var dQ=43200,TK=1440;var LK=Symbol.for("constructDateFrom");function V5(Q,G){if(typeof Q==="function")return Q(G);if(Q&&typeof Q==="object"&&LK in Q)return Q[LK](G);if(Q instanceof Date)return new Q.constructor(G);return new Date(G)}function $1(Q,G){return V5(G||Q,Q)}var RS={};function h4(){return RS}function I8(Q,G){let X=h4(),q=G?.weekStartsOn??G?.locale?.options?.weekStartsOn??X.weekStartsOn??X.locale?.options?.weekStartsOn??0,N=$1(Q,G?.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 m9(Q,G){return I8(Q,{...G,weekStartsOn:1})}function a3(Q,G){let X=$1(Q,G?.in),q=X.getFullYear(),N=V5(X,0);N.setFullYear(q+1,0,4),N.setHours(0,0,0,0);let K=m9(N),H=V5(X,0);H.setFullYear(q,0,4),H.setHours(0,0,0,0);let M=m9(H);if(X.getTime()>=K.getTime())return q+1;else if(X.getTime()>=M.getTime())return q;else return q-1}function K$(Q){let G=$1(Q),X=new Date(Date.UTC(G.getFullYear(),G.getMonth(),G.getDate(),G.getHours(),G.getMinutes(),G.getSeconds(),G.getMilliseconds()));return X.setUTCFullYear(G.getFullYear()),+Q-+X}function v2(Q,...G){let X=V5.bind(null,Q||G.find((q)=>typeof q==="object"));return G.map(X)}function PK(Q,G){let X=$1(Q,G?.in);return X.setHours(0,0,0,0),X}function RL(Q,G,X){let[q,N]=v2(X?.in,Q,G),K=PK(q),H=PK(N),M=+K-K$(K),F=+H-K$(H);return Math.round((M-F)/wL)}function zL(Q,G){let X=a3(Q,G),q=V5(G?.in||Q,0);return q.setFullYear(X,0,4),q.setHours(0,0,0,0),m9(q)}function B$(Q,G){let X=+$1(Q)-+$1(G);if(X<0)return-1;else if(X>0)return 1;return X}function TL(Q){return V5(Q,Date.now())}function LL(Q){return Q instanceof Date||typeof Q==="object"&&Object.prototype.toString.call(Q)==="[object Date]"}function PL(Q){return!(!LL(Q)&&typeof Q!=="number"||isNaN(+$1(Q)))}function _L(Q,G,X){let[q,N]=v2(X?.in,Q,G),K=q.getFullYear()-N.getFullYear(),H=q.getMonth()-N.getMonth();return K*12+H}function CL(Q){return(G)=>{let q=(Q?Math[Q]:Math.trunc)(G);return q===0?0:q}}function VL(Q,G){return+$1(Q)-+$1(G)}function IL(Q,G){let X=$1(Q,G?.in);return X.setHours(23,59,59,999),X}function OL(Q,G){let X=$1(Q,G?.in),q=X.getMonth();return X.setFullYear(X.getFullYear(),q+1,0),X.setHours(23,59,59,999),X}function EL(Q,G){let X=$1(Q,G?.in);return+IL(X,G)===+OL(X,G)}function AL(Q,G,X){let[q,N,K]=v2(X?.in,Q,Q,G),H=B$(N,K),M=Math.abs(_L(N,K));if(M<1)return 0;if(N.getMonth()===1&&N.getDate()>27)N.setDate(30);N.setMonth(N.getMonth()-H*M);let F=B$(N,K)===-H;if(EL(q)&&M===1&&B$(q,K)===1)F=!1;let w=H*(M-+F);return w===0?0:w}function jL(Q,G,X){let q=VL(Q,G)/1000;return CL(X?.roundingMethod)(q)}function SL(Q,G){let X=$1(Q,G?.in);return X.setFullYear(X.getFullYear(),0,1),X.setHours(0,0,0,0),X}var zS={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"}},DL=(Q,G,X)=>{let q,N=zS[Q];if(typeof N==="string")q=N;else if(G===1)q=N.one;else q=N.other.replace("{{count}}",G.toString());if(X?.addSuffix)if(X.comparison&&X.comparison>0)return"in "+q;else return q+" ago";return q};function i3(Q){return(G={})=>{let X=G.width?String(G.width):Q.defaultWidth;return Q.formats[X]||Q.formats[Q.defaultWidth]}}var TS={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},LS={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},PS={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},vL={date:i3({formats:TS,defaultWidth:"full"}),time:i3({formats:LS,defaultWidth:"full"}),dateTime:i3({formats:PS,defaultWidth:"full"})};var _S={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},bL=(Q,G,X,q)=>_S[Q];function H$(Q){return(G,X)=>{let q=X?.context?String(X.context):"standalone",N;if(q==="formatting"&&Q.formattingValues){let H=Q.defaultFormattingWidth||Q.defaultWidth,M=X?.width?String(X.width):H;N=Q.formattingValues[M]||Q.formattingValues[H]}else{let H=Q.defaultWidth,M=X?.width?String(X.width):Q.defaultWidth;N=Q.values[M]||Q.values[H]}let K=Q.argumentCallback?Q.argumentCallback(G):G;return N[K]}}var CS={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},VS={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},IS={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"]},OS={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"]},ES={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"}},AS={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"}},jS=(Q,G)=>{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"},kL={ordinalNumber:jS,era:H$({values:CS,defaultWidth:"wide"}),quarter:H$({values:VS,defaultWidth:"wide",argumentCallback:(Q)=>Q-1}),month:H$({values:IS,defaultWidth:"wide"}),day:H$({values:OS,defaultWidth:"wide"}),dayPeriod:H$({values:ES,defaultWidth:"wide",formattingValues:AS,defaultFormattingWidth:"wide"})};function M$(Q){return(G,X={})=>{let q=X.width,N=q&&Q.matchPatterns[q]||Q.matchPatterns[Q.defaultMatchWidth],K=G.match(N);if(!K)return null;let H=K[0],M=q&&Q.parsePatterns[q]||Q.parsePatterns[Q.defaultParseWidth],F=Array.isArray(M)?DS(M,(T)=>T.test(H)):SS(M,(T)=>T.test(H)),w;w=Q.valueCallback?Q.valueCallback(F):F,w=X.valueCallback?X.valueCallback(w):w;let z=G.slice(H.length);return{value:w,rest:z}}}function SS(Q,G){for(let X in Q)if(Object.prototype.hasOwnProperty.call(Q,X)&&G(Q[X]))return X;return}function DS(Q,G){for(let X=0;X<Q.length;X++)if(G(Q[X]))return X;return}function fL(Q){return(G,X={})=>{let q=G.match(Q.matchPattern);if(!q)return null;let N=q[0],K=G.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 M=G.slice(N.length);return{value:H,rest:M}}}var vS=/^(\d+)(th|st|nd|rd)?/i,bS=/\d+/i,kS={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},fS={any:[/^b/i,/^(a|c)/i]},yS={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},gS={any:[/1/i,/2/i,/3/i,/4/i]},hS={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},uS={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]},xS={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},mS={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]},dS={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},pS={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}},yL={ordinalNumber:fL({matchPattern:vS,parsePattern:bS,valueCallback:(Q)=>parseInt(Q,10)}),era:M$({matchPatterns:kS,defaultMatchWidth:"wide",parsePatterns:fS,defaultParseWidth:"any"}),quarter:M$({matchPatterns:yS,defaultMatchWidth:"wide",parsePatterns:gS,defaultParseWidth:"any",valueCallback:(Q)=>Q+1}),month:M$({matchPatterns:hS,defaultMatchWidth:"wide",parsePatterns:uS,defaultParseWidth:"any"}),day:M$({matchPatterns:xS,defaultMatchWidth:"wide",parsePatterns:mS,defaultParseWidth:"any"}),dayPeriod:M$({matchPatterns:dS,defaultMatchWidth:"any",parsePatterns:pS,defaultParseWidth:"any"})};var pQ={code:"en-US",formatDistance:DL,formatLong:vL,formatRelative:bL,localize:kL,match:yL,options:{weekStartsOn:0,firstWeekContainsDate:1}};function gL(Q,G){let X=$1(Q,G?.in);return RL(X,SL(X))+1}function hL(Q,G){let X=$1(Q,G?.in),q=+m9(X)-+zL(X);return Math.round(q/o3)+1}function t3(Q,G){let X=$1(Q,G?.in),q=X.getFullYear(),N=h4(),K=G?.firstWeekContainsDate??G?.locale?.options?.firstWeekContainsDate??N.firstWeekContainsDate??N.locale?.options?.firstWeekContainsDate??1,H=V5(G?.in||Q,0);H.setFullYear(q+1,0,K),H.setHours(0,0,0,0);let M=I8(H,G),F=V5(G?.in||Q,0);F.setFullYear(q,0,K),F.setHours(0,0,0,0);let w=I8(F,G);if(+X>=+M)return q+1;else if(+X>=+w)return q;else return q-1}function uL(Q,G){let X=h4(),q=G?.firstWeekContainsDate??G?.locale?.options?.firstWeekContainsDate??X.firstWeekContainsDate??X.locale?.options?.firstWeekContainsDate??1,N=t3(Q,G),K=V5(G?.in||Q,0);return K.setFullYear(N,0,q),K.setHours(0,0,0,0),I8(K,G)}function xL(Q,G){let X=$1(Q,G?.in),q=+I8(X,G)-+uL(X,G);return Math.round(q/o3)+1}function q1(Q,G){let X=Q<0?"-":"",q=Math.abs(Q).toString().padStart(G,"0");return X+q}var O8={y(Q,G){let X=Q.getFullYear(),q=X>0?X:1-X;return q1(G==="yy"?q%100:q,G.length)},M(Q,G){let X=Q.getMonth();return G==="M"?String(X+1):q1(X+1,2)},d(Q,G){return q1(Q.getDate(),G.length)},a(Q,G){let X=Q.getHours()/12>=1?"pm":"am";switch(G){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,G){return q1(Q.getHours()%12||12,G.length)},H(Q,G){return q1(Q.getHours(),G.length)},m(Q,G){return q1(Q.getMinutes(),G.length)},s(Q,G){return q1(Q.getSeconds(),G.length)},S(Q,G){let X=G.length,q=Q.getMilliseconds(),N=Math.trunc(q*Math.pow(10,X-3));return q1(N,G.length)}};var F$={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},_K={G:function(Q,G,X){let q=Q.getFullYear()>0?1:0;switch(G){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,G,X){if(G==="yo"){let q=Q.getFullYear(),N=q>0?q:1-q;return X.ordinalNumber(N,{unit:"year"})}return O8.y(Q,G)},Y:function(Q,G,X,q){let N=t3(Q,q),K=N>0?N:1-N;if(G==="YY"){let H=K%100;return q1(H,2)}if(G==="Yo")return X.ordinalNumber(K,{unit:"year"});return q1(K,G.length)},R:function(Q,G){let X=a3(Q);return q1(X,G.length)},u:function(Q,G){let X=Q.getFullYear();return q1(X,G.length)},Q:function(Q,G,X){let q=Math.ceil((Q.getMonth()+1)/3);switch(G){case"Q":return String(q);case"QQ":return q1(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,G,X){let q=Math.ceil((Q.getMonth()+1)/3);switch(G){case"q":return String(q);case"qq":return q1(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,G,X){let q=Q.getMonth();switch(G){case"M":case"MM":return O8.M(Q,G);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,G,X){let q=Q.getMonth();switch(G){case"L":return String(q+1);case"LL":return q1(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,G,X,q){let N=xL(Q,q);if(G==="wo")return X.ordinalNumber(N,{unit:"week"});return q1(N,G.length)},I:function(Q,G,X){let q=hL(Q);if(G==="Io")return X.ordinalNumber(q,{unit:"week"});return q1(q,G.length)},d:function(Q,G,X){if(G==="do")return X.ordinalNumber(Q.getDate(),{unit:"date"});return O8.d(Q,G)},D:function(Q,G,X){let q=gL(Q);if(G==="Do")return X.ordinalNumber(q,{unit:"dayOfYear"});return q1(q,G.length)},E:function(Q,G,X){let q=Q.getDay();switch(G){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,G,X,q){let N=Q.getDay(),K=(N-q.weekStartsOn+8)%7||7;switch(G){case"e":return String(K);case"ee":return q1(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,G,X,q){let N=Q.getDay(),K=(N-q.weekStartsOn+8)%7||7;switch(G){case"c":return String(K);case"cc":return q1(K,G.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,G,X){let q=Q.getDay(),N=q===0?7:q;switch(G){case"i":return String(N);case"ii":return q1(N,G.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,G,X){let N=Q.getHours()/12>=1?"pm":"am";switch(G){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,G,X){let q=Q.getHours(),N;if(q===12)N=F$.noon;else if(q===0)N=F$.midnight;else N=q/12>=1?"pm":"am";switch(G){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,G,X){let q=Q.getHours(),N;if(q>=17)N=F$.evening;else if(q>=12)N=F$.afternoon;else if(q>=4)N=F$.morning;else N=F$.night;switch(G){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,G,X){if(G==="ho"){let q=Q.getHours()%12;if(q===0)q=12;return X.ordinalNumber(q,{unit:"hour"})}return O8.h(Q,G)},H:function(Q,G,X){if(G==="Ho")return X.ordinalNumber(Q.getHours(),{unit:"hour"});return O8.H(Q,G)},K:function(Q,G,X){let q=Q.getHours()%12;if(G==="Ko")return X.ordinalNumber(q,{unit:"hour"});return q1(q,G.length)},k:function(Q,G,X){let q=Q.getHours();if(q===0)q=24;if(G==="ko")return X.ordinalNumber(q,{unit:"hour"});return q1(q,G.length)},m:function(Q,G,X){if(G==="mo")return X.ordinalNumber(Q.getMinutes(),{unit:"minute"});return O8.m(Q,G)},s:function(Q,G,X){if(G==="so")return X.ordinalNumber(Q.getSeconds(),{unit:"second"});return O8.s(Q,G)},S:function(Q,G){return O8.S(Q,G)},X:function(Q,G,X){let q=Q.getTimezoneOffset();if(q===0)return"Z";switch(G){case"X":return dL(q);case"XXXX":case"XX":return d9(q);case"XXXXX":case"XXX":default:return d9(q,":")}},x:function(Q,G,X){let q=Q.getTimezoneOffset();switch(G){case"x":return dL(q);case"xxxx":case"xx":return d9(q);case"xxxxx":case"xxx":default:return d9(q,":")}},O:function(Q,G,X){let q=Q.getTimezoneOffset();switch(G){case"O":case"OO":case"OOO":return"GMT"+mL(q,":");case"OOOO":default:return"GMT"+d9(q,":")}},z:function(Q,G,X){let q=Q.getTimezoneOffset();switch(G){case"z":case"zz":case"zzz":return"GMT"+mL(q,":");case"zzzz":default:return"GMT"+d9(q,":")}},t:function(Q,G,X){let q=Math.trunc(+Q/1000);return q1(q,G.length)},T:function(Q,G,X){return q1(+Q,G.length)}};function mL(Q,G=""){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)+G+q1(K,2)}function dL(Q,G){if(Q%60===0)return(Q>0?"-":"+")+q1(Math.abs(Q)/60,2);return d9(Q,G)}function d9(Q,G=""){let X=Q>0?"-":"+",q=Math.abs(Q),N=q1(Math.trunc(q/60),2),K=q1(q%60,2);return X+N+G+K}var pL=(Q,G)=>{switch(Q){case"P":return G.date({width:"short"});case"PP":return G.date({width:"medium"});case"PPP":return G.date({width:"long"});case"PPPP":default:return G.date({width:"full"})}},cL=(Q,G)=>{switch(Q){case"p":return G.time({width:"short"});case"pp":return G.time({width:"medium"});case"ppp":return G.time({width:"long"});case"pppp":default:return G.time({width:"full"})}},cS=(Q,G)=>{let X=Q.match(/(P+)(p+)?/)||[],q=X[1],N=X[2];if(!N)return pL(Q,G);let K;switch(q){case"P":K=G.dateTime({width:"short"});break;case"PP":K=G.dateTime({width:"medium"});break;case"PPP":K=G.dateTime({width:"long"});break;case"PPPP":default:K=G.dateTime({width:"full"});break}return K.replace("{{date}}",pL(q,G)).replace("{{time}}",cL(N,G))},lL={p:cL,P:cS};var lS=/^D+$/,rS=/^Y+$/,sS=["D","DD","YY","YYYY"];function rL(Q){return lS.test(Q)}function sL(Q){return rS.test(Q)}function nL(Q,G,X){let q=nS(Q,G,X);if(console.warn(q),sS.includes(Q))throw RangeError(q)}function nS(Q,G,X){let q=Q[0]==="Y"?"years":"days of the month";return`Use \`${Q.toLowerCase()}\` instead of \`${Q}\` (in \`${G}\`) for formatting ${q} to the input \`${X}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var oS=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,aS=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,iS=/^'([^]*?)'?$/,tS=/''/g,eS=/[a-zA-Z]/;function Q4(Q,G,X){let q=h4(),N=X?.locale??q.locale??pQ,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,M=$1(Q,X?.in);if(!PL(M))throw RangeError("Invalid time value");let F=G.match(aS).map((z)=>{let T=z[0];if(T==="p"||T==="P"){let P=lL[T];return P(z,N.formatLong)}return z}).join("").match(oS).map((z)=>{if(z==="''")return{isToken:!1,value:"'"};let T=z[0];if(T==="'")return{isToken:!1,value:$D(z)};if(_K[T])return{isToken:!0,value:z};if(T.match(eS))throw RangeError("Format string contains an unescaped latin alphabet character `"+T+"`");return{isToken:!1,value:z}});if(N.localize.preprocessor)F=N.localize.preprocessor(M,F);let w={firstWeekContainsDate:K,weekStartsOn:H,locale:N};return F.map((z)=>{if(!z.isToken)return z.value;let T=z.value;if(!X?.useAdditionalWeekYearTokens&&sL(T)||!X?.useAdditionalDayOfYearTokens&&rL(T))nL(T,G,String(Q));let P=_K[T[0]];return P(M,T,N.localize,w)}).join("")}function $D(Q){let G=Q.match(iS);if(!G)return Q;return G[1].replace(tS,"'")}function oL(Q,G,X){let q=h4(),N=X?.locale??q.locale??pQ,K=2520,H=B$(Q,G);if(isNaN(H))throw RangeError("Invalid time value");let M=Object.assign({},X,{addSuffix:X?.addSuffix,comparison:H}),[F,w]=v2(X?.in,...H>0?[G,Q]:[Q,G]),z=jL(w,F),T=(K$(w)-K$(F))/1000,P=Math.round((z-T)/60),V;if(P<2)if(X?.includeSeconds)if(z<5)return N.formatDistance("lessThanXSeconds",5,M);else if(z<10)return N.formatDistance("lessThanXSeconds",10,M);else if(z<20)return N.formatDistance("lessThanXSeconds",20,M);else if(z<40)return N.formatDistance("halfAMinute",0,M);else if(z<60)return N.formatDistance("lessThanXMinutes",1,M);else return N.formatDistance("xMinutes",1,M);else if(P===0)return N.formatDistance("lessThanXMinutes",1,M);else return N.formatDistance("xMinutes",P,M);else if(P<45)return N.formatDistance("xMinutes",P,M);else if(P<90)return N.formatDistance("aboutXHours",1,M);else if(P<TK){let A=Math.round(P/60);return N.formatDistance("aboutXHours",A,M)}else if(P<2520)return N.formatDistance("xDays",1,M);else if(P<dQ){let A=Math.round(P/TK);return N.formatDistance("xDays",A,M)}else if(P<dQ*2)return V=Math.round(P/dQ),N.formatDistance("aboutXMonths",V,M);if(V=AL(w,F),V<12){let A=Math.round(P/dQ);return N.formatDistance("xMonths",A,M)}else{let A=V%12,O=Math.trunc(V/12);if(A<3)return N.formatDistance("aboutXYears",O,M);else if(A<9)return N.formatDistance("overXYears",O,M);else return N.formatDistance("almostXYears",O+1,M)}}function aL(Q,G){return oL(Q,TL(Q),G)}var Z5=t(O1(),1);var CK=t(iL(),1),R6=t(O1(),1);var eL="label";function tL(Q,G){if(typeof Q==="function")Q(G);else if(Q)Q.current=G}function QD(Q,G){let X=Q.options;if(X&&G)Object.assign(X,G)}function $P(Q,G){Q.labels=G}function ZP(Q,G,X=eL){let q=[];Q.datasets=G.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 JD(Q,G=eL){let X={labels:[],datasets:[]};return $P(X,Q.labels),ZP(X,Q.datasets,G),X}function GD(Q,G){let{height:X=150,width:q=300,redraw:N=!1,datasetIdKey:K,type:H,data:M,options:F,plugins:w=[],fallbackContent:z,updateMode:T,...P}=Q,V=R6.useRef(null),A=R6.useRef(null),O=()=>{if(!V.current)return;A.current=new f9(V.current,{type:H,data:JD(M,K),options:F&&{...F},plugins:w}),tL(G,A.current)},I=()=>{if(tL(G,null),A.current)A.current.destroy(),A.current=null};return R6.useEffect(()=>{if(!N&&A.current&&F)QD(A.current,F)},[N,F]),R6.useEffect(()=>{if(!N&&A.current)$P(A.current.config.data,M.labels)},[N,M.labels]),R6.useEffect(()=>{if(!N&&A.current&&M.datasets)ZP(A.current.config.data,M.datasets,K)},[N,M.datasets]),R6.useEffect(()=>{if(!A.current)return;if(N)I(),setTimeout(O);else A.current.update(T)},[N,F,M.labels,M.datasets,T]),R6.useEffect(()=>{if(!A.current)return;I(),setTimeout(O)},[H]),R6.useEffect(()=>{return O(),()=>I()},[]),CK.jsx("canvas",{ref:V,role:"img",height:X,width:q,...P,children:z})}var XD=R6.forwardRef(GD);function QP(Q,G){return f9.register(G),R6.forwardRef((X,q)=>CK.jsx(XD,{...X,ref:q,type:Q}))}var x6=QP("line",eU),e3=QP("bar",tU);var a1=["#ed4abf","#9b4dff","#5ad8e6","#62d394","#c77dff","#ff8fd1","#f5c14b","#ff6b7d"],z6={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 $X(Q){let{chartTheme:G,showLegend:X,defaultLabel:q,formatValue:N,footer:K}=Q;return{legend:{display:X,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 M=H.dataset.label??q,F=H.parsed.y??0;return`${M}: ${N(F)}`},...K?{footer:K}:{}}}}}function ZX(Q){let{chartTheme:G,formatY:X}=Q,q={grid:{color:G.grid,drawBorder:!1},ticks:{color:G.tick,font:{size:11}}},N={...q,ticks:{...q.ticks,callback:(K)=>X(Number(K))},min:0};return{sharedScaleBase:q,yScale:N}}function QX(Q){return{borderColor:Q,backgroundColor:`${Q}20`,fill:!0,tension:0,pointRadius:3,pointHoverRadius:4,borderWidth:2}}function JX(Q){return{backgroundColor:Q,borderColor:Q,borderWidth:0,borderRadius:4,maxBarThickness:56}}function W$(Q,G){return Q.datasets.map((X,q)=>({label:X.label,data:X.data,...G(q)}))}function GX(Q,G,X){if(Q.length===0)return{labels:[],datasets:[]};let{initBucket:q,accumulate:N,bucketToValue:K}=X,H=new Map;for(let F of Q){let w=H.get(F.timestamp)??q();N(w,F),H.set(F.timestamp,w)}let M=[...H.entries()].sort((F,w)=>F[0]-w[0]);return{labels:M.map(([F])=>Q4(new Date(F),"MMM d")),datasets:[{label:G,data:M.map(([,F])=>K(F))}]}}function XX(Q,G){if(Q.length===0)return{labels:[],datasets:[]};let{topN:X=5,rankWeight:q,initBucket:N,accumulate:K,bucketToValue:H}=G,M=new Map;for(let D of Q){let h=`${D.model}::${D.provider}`,p=M.get(h);if(p)p.weight+=q(D);else M.set(h,{model:D.model,provider:D.provider,weight:q(D)})}let w=[...M.entries()].sort((D,h)=>h[1].weight-D[1].weight).slice(0,X),z=new Set(w.map(([D])=>D)),T=new Map;for(let[,{model:D}]of w)T.set(D,(T.get(D)??0)+1);let P=new Map;for(let[D,{model:h,provider:p}]of w)P.set(D,(T.get(h)??0)>1?`${h} (${p})`:h);let V=[...new Set(Q.map((D)=>D.timestamp))].sort((D,h)=>D-h),A=w.map(([D])=>P.get(D)??D);if(Q.some((D)=>!z.has(`${D.model}::${D.provider}`)))A.push("Other");let I=new Map;for(let D of V)I.set(D,{});for(let D of Q){let h=`${D.model}::${D.provider}`,p=z.has(h)?P.get(h)??D.model:"Other",s=I.get(D.timestamp);if(!s)continue;let o=s[p]??N();K(o,D),s[p]=o}return{labels:V.map((D)=>Q4(new Date(D),"MMM d")),datasets:A.map((D)=>({label:D,data:V.map((h)=>{let p=I.get(h)?.[D];return p?H(p):0})}))}}var j1=t(R0(),1);function E8(Q){return{borderColor:Q,backgroundColor:"transparent",tension:0.4,pointRadius:0,borderWidth:2}}function qX({timestamps:Q,values:G,color:X}){let q={labels:Q.map((K)=>Q4(new Date(K),"MMM d")),datasets:[{data:G,...E8(X)}]};return j1.jsxDEV(x6,{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 YX(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 JP(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 GP(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 NX({title:Q,subtitle:G,children:X}){return j1.jsxDEV("div",{className:"stats-panel overflow-hidden",children:[j1.jsxDEV("div",{className:"px-5 py-4 border-b border-[var(--border-subtle)]",children:[j1.jsxDEV("h3",{className:"text-sm font-semibold text-[var(--text-primary)]",children:Q},void 0,!1,void 0,this),G?j1.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),j1.jsxDEV("div",{className:"overflow-x-auto",children:X},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function qD(Q){if(Q==="right")return"text-right";if(Q==="center")return"text-center";return""}function UX({columns:Q,gridTemplate:G}){return j1.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:[Q.map((X)=>j1.jsxDEV("div",{className:qD(X.align),children:X.label},X.label,!1,void 0,this)),j1.jsxDEV("div",{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function KX({children:Q}){return j1.jsxDEV("div",{className:"max-h-[calc(100vh-300px)] overflow-y-auto",children:Q},void 0,!1,void 0,this)}function BX({model:Q,provider:G}){return j1.jsxDEV("div",{children:[j1.jsxDEV("div",{className:"font-medium text-[var(--text-primary)]",children:Q},void 0,!1,void 0,this),j1.jsxDEV("div",{className:"text-xs text-[var(--text-muted)]",children:G},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function HX({gridTemplate:Q,cells:G,trendCell:X,isExpanded:q,onToggle:N,expandedContent:K}){return j1.jsxDEV("div",{className:"border-t border-[var(--border-subtle)]",children:[j1.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:j1.jsxDEV("div",{className:"grid gap-3 items-center",style:{gridTemplateColumns:Q},children:[G,j1.jsxDEV("div",{className:"h-10",children:X},void 0,!1,void 0,this),j1.jsxDEV("div",{className:"flex justify-center text-[var(--text-muted)]",children:q?j1.jsxDEV(_Q,{size:16},void 0,!1,void 0,this):j1.jsxDEV(PQ,{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?j1.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 MX(){return j1.jsxDEV("div",{className:"text-[var(--text-muted)] text-center text-sm",children:"-"},void 0,!1,void 0,this)}function FX({message:Q="No data available"}){return j1.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 J1(Q){return Q.toLocaleString()}function cQ(Q){return Q.toLocaleString(void 0,{notation:"compact"})}function x1(Q,G){if(Q===0)return"$0";let X=G!==void 0?G:Q>0&&Q<0.01?4:2;return`$${Q.toLocaleString(void 0,{minimumFractionDigits:X,maximumFractionDigits:X})}`}function J4(Q,G=1){return`${(Q*100).toFixed(G)}%`}function I5(Q,G){if(Q===null)return"-";let X=Q/1000,q=G!==void 0?G:X<1?2:1;return`${X.toFixed(q)}s`}function XP(Q){if(Q===null)return"-";return Q.toFixed(1)}function u4(Q){return aL(new Date(Q),{addSuffix:!0})}var R5=t(O1(),1),b2=new Map,YD=64;function f5(Q,G,X){let q=JSON.stringify(Q),[N,K]=R5.useState(()=>b2.get(q)?.data??null),[H,M]=R5.useState(null),[F,w]=R5.useState(()=>!b2.has(q)),[z,T]=R5.useState(!1),[P,V]=R5.useState(()=>b2.get(q)?.updatedAt??null),A=R5.useRef(G);A.current=G;let O=R5.useRef(q);O.current=q;let I=X?.enabled??!0,D=X?.pollMs,h=R5.useRef(null),p=R5.useRef(!1);p.current=N!==null;let s=R5.useCallback(async(Q0)=>{if(h.current)h.current.abort();let i=new AbortController;if(h.current=i,Q0)T(!0);else w(!0),K(null);M(null);try{let a=await A.current(i.signal);if(i.signal.aborted)return;if(b2.set(O.current,{data:a,updatedAt:Date.now()}),b2.size>YD){let q0=b2.keys().next().value;if(q0!==void 0)b2.delete(q0)}K(a),V(Date.now()),M(null)}catch(a){if(i.signal.aborted)return;M(a instanceof Error?a:Error(String(a)))}finally{if(!i.signal.aborted){if(w(!1),T(!1),h.current===i)h.current=null}}},[]);R5.useEffect(()=>{if(!I){w(!1),T(!1);return}let Q0=b2.get(q);if(Q0)K(Q0.data),V(Q0.updatedAt),w(!1),s(!0);else s(p.current);return()=>{if(h.current)h.current.abort(),h.current=null}},[q,I,s]),R5.useEffect(()=>{if(!I||!D)return;let Q0=setInterval(()=>{if(document.hidden)return;s(!0)},D);return()=>{clearInterval(Q0)}},[I,D,s]);let o=R5.useCallback(async()=>{await s(!0)},[s]);return{data:N,error:H,loading:F,refreshing:z,refetch:o,updatedAt:P}}var qP=3600000,WX=24*qP,ND=300000,YP={"1h":{windowLabel:"the last hour",trendLabel:"1h Trend",bucketMs:ND,bucketCount:12,tickFormat:"HH:mm"},"24h":{windowLabel:"the last 24 hours",trendLabel:"24h Trend",bucketMs:qP,bucketCount:24,tickFormat:"HH:mm"},"7d":{windowLabel:"the last 7 days",trendLabel:"7d Trend",bucketMs:WX,bucketCount:7,tickFormat:"MMM d"},"30d":{windowLabel:"the last 30 days",trendLabel:"30d Trend",bucketMs:WX,bucketCount:30,tickFormat:"MMM d"},"90d":{windowLabel:"the last 90 days",trendLabel:"90d Trend",bucketMs:WX,bucketCount:90,tickFormat:"MMM d"},all:{windowLabel:"all time",trendLabel:"Trend",bucketMs:WX,bucketCount:0,tickFormat:"MMM d"}};function lQ(Q){return YP[Q]}function VK(Q,G){return Q4(new Date(Q),YP[G].tickFormat)}var UD=["main","subagent","advisor"];function NP(Q){let G=new Map;for(let M of Q)G.set(M.agentType,M);let X=(M)=>M.totalInputTokens+M.totalOutputTokens+M.totalCacheReadTokens+M.totalCacheWriteTokens,q=UD.map((M)=>G.get(M)).filter((M)=>M!==void 0),N=q.reduce((M,F)=>M+X(F),0),K=q.reduce((M,F)=>M+F.totalCost,0),H=q.map((M)=>{let F=X(M);return{agentType:M.agentType,tokens:F,requests:M.totalRequests,cost:M.totalCost,share:N>0?F/N:0}});return{totalTokens:N,totalCost:K,segments:H}}function UP(Q){let G=Q.reduce((M,F)=>M+F.cost,0),X=new Set(Q.map((M)=>M.timestamp)).size,q=X>0?G/X:0,N=new Map;for(let M of Q)N.set(M.model,(N.get(M.model)??0)+M.cost);let K="",H=0;for(let[M,F]of N)if(F>H)K=M,H=F;return{totalCost:G,avgDailyCost:q,topModelName:K,topModelCost:H}}function KP(Q,G){if(Q.length===0)return new Map;let X=lQ(G),q=X.bucketMs,N=X.bucketCount,K=N>0?(()=>{let F=Q.reduce((T,P)=>Math.max(T,P.timestamp),0),z=(F>0?F:Math.floor(Date.now()/q)*q)-(N-1)*q;return Array.from({length:N},(T,P)=>z+P*q)})():Array.from(new Set(Q.map((F)=>F.timestamp))).sort((F,w)=>F-w),H=new Map(K.map((F,w)=>[F,w])),M=new Map;for(let F of Q){let w=`${F.model}::${F.provider}`,z=M.get(w);if(!z)z={label:`${F.model} (${F.provider})`,data:K.map((P)=>({timestamp:P,avgTtftSeconds:null,avgTokensPerSecond:null,requests:0}))},M.set(w,z);let T=H.get(F.timestamp);if(T===void 0)continue;z.data[T]={timestamp:F.timestamp,avgTtftSeconds:F.avgTtft!==null?F.avgTtft/1000:null,avgTokensPerSecond:F.avgTokensPerSecond,requests:F.requests}}return M}function BP(Q,G){let X=Q.totalNegation+Q.totalRepetition+Q.totalBlame,q=new Map;for(let K of G){let H=`${K.model}::${K.provider}`,M=q.get(H),F=K.yelling+K.profanity+K.anguish+K.negation+K.repetition+K.blame;if(M)M.score+=F;else q.set(H,{model:K.model,provider:K.provider,score:F})}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 HP(Q){let G=[...Q].sort((N,K)=>{if(K.totalCost!==N.totalCost)return K.totalCost-N.totalCost;return K.totalRequests-N.totalRequests}),X=G.reduce((N,K)=>Math.max(N,K.totalCost),0),q=G.reduce((N,K)=>Math.max(N,K.totalRequests),0);return G.map((N)=>({...N,costPercentage:X>0?N.totalCost/X*100:0,requestsPercentage:q>0?N.totalRequests/q*100:0}))}var wX=t(R0(),1);function MP({message:Q="No data available",icon:G=jQ,className:X=""}){return wX.jsxDEV("div",{className:`stats-empty-state ${X}`,children:[wX.jsxDEV(G,{size:24,className:"stats-empty-state-icon","aria-hidden":"true"},void 0,!1,void 0,this),wX.jsxDEV("p",{className:"stats-empty-state-message",children:Q},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var w$=t(R0(),1);function FP({error:Q,onRetry:G,className:X=""}){return w$.jsxDEV("div",{className:`stats-error-state ${X}`,children:w$.jsxDEV("div",{className:"stats-error-state-content",children:[w$.jsxDEV("h4",{className:"stats-error-state-title",children:"Failed to load data"},void 0,!1,void 0,this),Q&&w$.jsxDEV("p",{className:"stats-error-state-message",children:Q.message},void 0,!1,void 0,this),G&&w$.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 WP=t(R0(),1);function a5({variant:Q="text",width:G,height:X,className:q=""}){let N={width:G!==void 0?typeof G==="number"?`${G}px`:G:void 0,height:X!==void 0?typeof X==="number"?`${X}px`:X:void 0};return WP.jsxDEV("div",{className:`stats-skeleton ${q}`,"data-variant":Q,style:N},void 0,!1,void 0,this)}var T6=t(R0(),1);function U5({loading:Q,error:G,data:X,empty:q=!1,emptyText:N="No data available",fallback:K,onRetry:H,children:M}){if(G&&X===null)return T6.jsxDEV(FP,{error:G,onRetry:H},void 0,!1,void 0,this);if(Q&&X===null){if(K)return T6.jsxDEV(T6.Fragment,{children:K},void 0,!1,void 0,this);return T6.jsxDEV("div",{className:"stats-boundary-skeleton",children:[T6.jsxDEV(a5,{variant:"text",width:"60%",height:24,className:"mb-4"},void 0,!1,void 0,this),T6.jsxDEV(a5,{variant:"rect",width:"100%",height:160,className:"mb-4"},void 0,!1,void 0,this),T6.jsxDEV(a5,{variant:"text",width:"80%",height:20,className:"mb-2"},void 0,!1,void 0,this),T6.jsxDEV(a5,{variant:"text",width:"40%",height:20},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}if(!Q&&(q||X===null))return T6.jsxDEV(MP,{message:N},void 0,!1,void 0,this);return T6.jsxDEV(T6.Fragment,{children:M},void 0,!1,void 0,this)}var i5=t(R0(),1);function k2({columns:Q,data:G,keyExtractor:X,onRowClick:q,renderMobileCard:N,emptyText:K="No data available"}){let H=(M,F)=>{if(q&&(M.key==="Enter"||M.key===" "))M.preventDefault(),q(F)};if(G.length===0)return i5.jsxDEV("div",{className:"stats-table-empty",children:K},void 0,!1,void 0,this);return i5.jsxDEV("div",{className:"stats-table-wrapper",children:[N&&i5.jsxDEV("div",{className:"stats-table-mobile-only",children:i5.jsxDEV("div",{className:"stats-table-mobile-list",children:G.map((M)=>{let F=String(X(M));return i5.jsxDEV("div",{className:"stats-table-mobile-card-wrapper",children:N(M,q?()=>q(M):void 0)},F,!1,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),i5.jsxDEV("div",{className:N?"stats-table-desktop-only":"stats-table-container",children:i5.jsxDEV("table",{className:"stats-table",children:[i5.jsxDEV("thead",{children:i5.jsxDEV("tr",{children:Q.map((M)=>{let F=["stats-table-th",M.numeric?"stats-text-right":"stats-text-left",M.className||""].filter(Boolean).join(" ");return i5.jsxDEV("th",{className:F,children:M.header},M.key,!1,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),i5.jsxDEV("tbody",{children:G.map((M)=>{let F=String(X(M)),w=typeof q==="function",z=["stats-table-tr",w?"stats-table-tr-clickable":""].filter(Boolean).join(" ");return i5.jsxDEV("tr",{className:z,onClick:w?()=>q(M):void 0,onKeyDown:w?(T)=>H(T,M):void 0,tabIndex:w?0:void 0,role:w?"button":void 0,children:Q.map((T)=>{let P=["stats-table-td",T.numeric?"stats-text-right":"stats-text-left",T.className||""].filter(Boolean).join(" ");return i5.jsxDEV("td",{className:P,children:T.render?T.render(M):M[T.key]},T.key,!1,void 0,this)})},F,!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 c9=t(O1(),1),m6=t(R0(),1);function IK({data:Q,title:G,initialCollapsed:X=!1}){let[q,N]=c9.useState(X),[K,H]=c9.useState(!1),M=c9.useRef(0),F=JSON.stringify(Q,null,2);return c9.useEffect(()=>()=>window.clearTimeout(M.current),[]),m6.jsxDEV("div",{className:"stats-json-block",children:[m6.jsxDEV("div",{className:"stats-json-block-header",onClick:()=>N(!q),onKeyDown:(T)=>{if(T.key==="Enter"||T.key===" ")T.preventDefault(),N(!q)},tabIndex:0,role:"button","aria-expanded":!q,children:[m6.jsxDEV("span",{className:"stats-json-block-title",children:G||"JSON"},void 0,!1,void 0,this),m6.jsxDEV("div",{className:"stats-json-actions",children:[m6.jsxDEV("button",{type:"button",className:"stats-json-copy-btn",onClick:async(T)=>{T.stopPropagation();try{await navigator.clipboard.writeText(F),H(!0),window.clearTimeout(M.current),M.current=window.setTimeout(()=>H(!1),1500)}catch{}},"aria-label":K?"Copied to clipboard":"Copy JSON to clipboard",children:[K?m6.jsxDEV(LQ,{size:13},void 0,!1,void 0,this):m6.jsxDEV(VQ,{size:13},void 0,!1,void 0,this),K?"Copied":"Copy"]},void 0,!0,void 0,this),m6.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&&m6.jsxDEV("div",{className:"stats-json-block-content-wrapper",children:m6.jsxDEV("pre",{className:"stats-json-block-content",children:m6.jsxDEV("code",{children:F},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Z1=t(R0(),1);function wP({stats:Q}){return Z1.jsxDEV("div",{className:"stats-metric-cluster",children:[Z1.jsxDEV("div",{className:"stats-metric-primary-grid",children:[Z1.jsxDEV("div",{className:"stats-metric-card primary",children:[Z1.jsxDEV("div",{className:"stats-metric-label",children:"Total Cost"},void 0,!1,void 0,this),Z1.jsxDEV("div",{className:"stats-metric-value",children:x1(Q.totalCost,Q.totalCost>0&&Q.totalCost<0.01?4:2)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Z1.jsxDEV("div",{className:"stats-metric-card primary",children:[Z1.jsxDEV("div",{className:"stats-metric-label",children:"Requests"},void 0,!1,void 0,this),Z1.jsxDEV("div",{className:"stats-metric-value",children:J1(Q.totalRequests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Z1.jsxDEV("div",{className:"stats-metric-card primary",children:[Z1.jsxDEV("div",{className:"stats-metric-label",children:"Cache Rate"},void 0,!1,void 0,this),Z1.jsxDEV("div",{className:"stats-metric-value",children:J4(Q.cacheRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Z1.jsxDEV("div",{className:"stats-metric-card primary",children:[Z1.jsxDEV("div",{className:"stats-metric-label",children:"Error Rate"},void 0,!1,void 0,this),Z1.jsxDEV("div",{className:"stats-metric-value",children:J4(Q.errorRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Z1.jsxDEV("div",{className:"stats-metric-secondary-grid",children:[Z1.jsxDEV("div",{className:"stats-metric-card secondary",children:[Z1.jsxDEV("div",{className:"stats-metric-label",children:"Input Tokens"},void 0,!1,void 0,this),Z1.jsxDEV("div",{className:"stats-metric-value",children:cQ(Q.totalInputTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Z1.jsxDEV("div",{className:"stats-metric-card secondary",children:[Z1.jsxDEV("div",{className:"stats-metric-label",children:"Output Tokens"},void 0,!1,void 0,this),Z1.jsxDEV("div",{className:"stats-metric-value",children:cQ(Q.totalOutputTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Z1.jsxDEV("div",{className:"stats-metric-card secondary",children:[Z1.jsxDEV("div",{className:"stats-metric-label",children:"Premium Requests"},void 0,!1,void 0,this),Z1.jsxDEV("div",{className:"stats-metric-value",children:J1(Q.totalPremiumRequests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Z1.jsxDEV("div",{className:"stats-metric-card secondary",children:[Z1.jsxDEV("div",{className:"stats-metric-label",children:"Tokens/s"},void 0,!1,void 0,this),Z1.jsxDEV("div",{className:"stats-metric-value",children:XP(Q.avgTokensPerSecond)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Z1.jsxDEV("div",{className:"stats-metric-card secondary",children:[Z1.jsxDEV("div",{className:"stats-metric-label",children:"Avg Latency"},void 0,!1,void 0,this),Z1.jsxDEV("div",{className:"stats-metric-value",children:I5(Q.avgDuration)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Z1.jsxDEV("div",{className:"stats-metric-card secondary",children:[Z1.jsxDEV("div",{className:"stats-metric-label",children:"Avg TTFT"},void 0,!1,void 0,this),Z1.jsxDEV("div",{className:"stats-metric-value",children:I5(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 f2=t(R0(),1);function $5({title:Q,subtitle:G,actions:X,children:q,className:N="",...K}){return f2.jsxDEV("div",{className:`stats-panel ${N}`,...K,children:[(Q||G||X)&&f2.jsxDEV("div",{className:"stats-panel-header",children:[f2.jsxDEV("div",{className:"stats-panel-header-titles",children:[Q&&f2.jsxDEV("h3",{className:"stats-panel-title",children:Q},void 0,!1,void 0,this),G&&f2.jsxDEV("p",{className:"stats-panel-subtitle",children:G},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X&&f2.jsxDEV("div",{className:"stats-panel-actions",children:X},void 0,!1,void 0,this)]},void 0,!0,void 0,this),f2.jsxDEV("div",{className:"stats-panel-body",children:q},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var x4=t(O1(),1);var RP=t(R0(),1);function L6({variant:Q,children:G,className:X=""}){return RP.jsxDEV("span",{className:`stats-status-pill ${X}`,"data-variant":Q,children:G},void 0,!1,void 0,this)}var F0=t(R0(),1);function zP({id:Q,onClose:G}){let[X,q]=x4.useState(null),[N,K]=x4.useState(!1),[H,M]=x4.useState(null),F=x4.useRef(null),w=x4.useRef(null);if(x4.useEffect(()=>{if(Q===null){q(null);return}F.current=document.activeElement,K(!0),M(null),q(null);let T=new AbortController;return eT(Q,T.signal).then((P)=>{if(T.signal.aborted)return;q(P),setTimeout(()=>w.current?.focus(),50)}).catch((P)=>{if(T.signal.aborted)return;M(P instanceof Error?P:Error(String(P)))}).finally(()=>{if(!T.signal.aborted)K(!1)}),()=>T.abort()},[Q]),x4.useEffect(()=>{if(Q===null)return;let T=(P)=>{if(P.key==="Escape")G()};return window.addEventListener("keydown",T),()=>{if(window.removeEventListener("keydown",T),F.current)F.current.focus()}},[Q,G]),Q===null)return null;return F0.jsxDEV("div",{className:"stats-drawer-overlay",onClick:(T)=>{if(T.target===T.currentTarget)G()},role:"presentation",children:F0.jsxDEV("div",{className:"stats-drawer",role:"dialog","aria-modal":"true","aria-label":"Request details",children:[F0.jsxDEV("div",{className:"stats-drawer-header",children:[F0.jsxDEV("div",{className:"stats-drawer-header-left",children:[F0.jsxDEV("h2",{className:"stats-drawer-title",children:"Request Details"},void 0,!1,void 0,this),X&&F0.jsxDEV("span",{className:"stats-drawer-id",children:["ID: ",Q]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F0.jsxDEV("button",{ref:w,type:"button",onClick:G,className:"stats-drawer-close-btn","aria-label":"Close request details",children:F0.jsxDEV(h9,{size:18},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F0.jsxDEV("div",{className:"stats-drawer-body",children:[N&&F0.jsxDEV("div",{className:"stats-drawer-loading",children:[F0.jsxDEV(a5,{variant:"text",width:"60%",height:24,className:"mb-4"},void 0,!1,void 0,this),F0.jsxDEV(a5,{variant:"rect",width:"100%",height:80,className:"mb-4"},void 0,!1,void 0,this),F0.jsxDEV(a5,{variant:"rect",width:"100%",height:120,className:"mb-4"},void 0,!1,void 0,this),F0.jsxDEV(a5,{variant:"rect",width:"100%",height:200},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H&&F0.jsxDEV("div",{className:"stats-drawer-error",children:[F0.jsxDEV("p",{className:"stats-drawer-error-title",children:"Failed to load request details"},void 0,!1,void 0,this),F0.jsxDEV("p",{className:"stats-drawer-error-message",children:H.message},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X&&F0.jsxDEV("div",{className:"stats-drawer-content",children:[F0.jsxDEV("div",{className:"stats-drawer-status-card",children:[F0.jsxDEV("div",{className:"stats-drawer-status-row",children:[F0.jsxDEV("div",{children:[F0.jsxDEV("div",{className:"stats-drawer-model",children:X.model},void 0,!1,void 0,this),F0.jsxDEV("div",{className:"stats-drawer-provider",children:X.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F0.jsxDEV(L6,{variant:X.errorMessage?"danger":"success",children:X.errorMessage?"Error":"Success"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X.errorMessage&&F0.jsxDEV("div",{className:"stats-drawer-error-block",children:[F0.jsxDEV("div",{className:"stats-drawer-error-label",children:"Error Message"},void 0,!1,void 0,this),F0.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),F0.jsxDEV("div",{className:"stats-drawer-metrics-grid",children:[F0.jsxDEV("div",{className:"stats-drawer-metric-card",children:[F0.jsxDEV("div",{className:"stats-drawer-metric-label",children:[F0.jsxDEV(g9,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"Cost"]},void 0,!0,void 0,this),F0.jsxDEV("div",{className:"stats-drawer-metric-value",children:x1(X.usage.cost.total,4)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F0.jsxDEV("div",{className:"stats-drawer-metric-card",children:[F0.jsxDEV("div",{className:"stats-drawer-metric-label",children:[F0.jsxDEV(yQ,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"Premium"]},void 0,!0,void 0,this),F0.jsxDEV("div",{className:"stats-drawer-metric-value",children:J1(X.usage.premiumRequests??0)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F0.jsxDEV("div",{className:"stats-drawer-metric-card",children:[F0.jsxDEV("div",{className:"stats-drawer-metric-label",children:[F0.jsxDEV(AQ,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"Total Tokens"]},void 0,!0,void 0,this),F0.jsxDEV("div",{className:"stats-drawer-metric-value",children:J1(X.usage.totalTokens)},void 0,!1,void 0,this),F0.jsxDEV("div",{className:"stats-drawer-metric-sub",children:[J1(X.usage.input)," in · ",J1(X.usage.output)," out"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F0.jsxDEV("div",{className:"stats-drawer-metric-card",children:[F0.jsxDEV("div",{className:"stats-drawer-metric-label",children:[F0.jsxDEV(CQ,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"Duration"]},void 0,!0,void 0,this),F0.jsxDEV("div",{className:"stats-drawer-metric-value",children:I5(X.duration)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F0.jsxDEV("div",{className:"stats-drawer-metric-card",children:[F0.jsxDEV("div",{className:"stats-drawer-metric-label",children:[F0.jsxDEV(hQ,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"TTFT"]},void 0,!0,void 0,this),F0.jsxDEV("div",{className:"stats-drawer-metric-value",children:I5(X.ttft)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X.duration&&X.usage.output>0&&F0.jsxDEV("div",{className:"stats-drawer-metric-card",children:[F0.jsxDEV("div",{className:"stats-drawer-metric-label",children:[F0.jsxDEV(EQ,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"Throughput"]},void 0,!0,void 0,this),F0.jsxDEV("div",{className:"stats-drawer-metric-value",children:(X.usage.output*1000/X.duration).toFixed(1)},void 0,!1,void 0,this),F0.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),F0.jsxDEV("div",{className:"stats-drawer-json-blocks",children:[F0.jsxDEV(IK,{data:X.output,title:"Output Payload",initialCollapsed:!1},void 0,!1,void 0,this),F0.jsxDEV(IK,{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 OK=t(R0(),1);function rQ({options:Q,value:G,onChange:X,className:q=""}){return OK.jsxDEV("div",{className:`stats-segmented-control ${q}`,role:"radiogroup",children:Q.map((N)=>{let K=N.value===G;return OK.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 W0=t(R0(),1);function VP({active:Q,range:G,refreshTrigger:X}){let{data:q,error:N,loading:K}=f5(["behavior",G,X],(H)=>ZL(G,H),{pollMs:30000,enabled:Q});return W0.jsxDEV("div",{className:"stats-route-container space-y-6",children:W0.jsxDEV(U5,{loading:K,error:N,data:q,children:q&&W0.jsxDEV(W0.Fragment,{children:[W0.jsxDEV(KD,{overall:q.overall,behaviorSeries:q.behaviorSeries},void 0,!1,void 0,this),W0.jsxDEV(BD,{behaviorSeries:q.behaviorSeries},void 0,!1,void 0,this),W0.jsxDEV(HD,{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 RX(Q,G){if(G<=0)return;return`${(Q/G).toFixed(2)} / msg`}function KD({overall:Q,behaviorSeries:G}){let X=Z5.useMemo(()=>BP(Q,G),[Q,G]),q=Q.totalMessages,N=[{label:"User Messages",value:J1(Q.totalMessages),sub:q>0?"in range":void 0},{label:"Yelling (CAPS)",value:J1(Q.totalYelling),sub:RX(Q.totalYelling,q)},{label:"Profanity Hits",value:J1(Q.totalProfanity),sub:RX(Q.totalProfanity,q)},{label:"Anguish Signals",value:J1(Q.totalAnguish),sub:RX(Q.totalAnguish,q)},{label:"Friction Signals",value:J1(X.totalFrustration),sub:RX(X.totalFrustration,q)},{label:"Highest Friction Model",value:X.highestFrictionModel?.model??"—",sub:X.highestFrictionModel?`${J1(X.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($5,{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 EK=[{value:"yelling",label:"CAPS",title:"Yelling (CAPS)"},{value:"profanity",label:"Profanity",title:"Profanity"},{value:"anguish",label:"Anguish",title:"Anguish (!!!, nooo, dude, ..)"},{value:"negation",label:"Negation",title:"Negation (no/nope/wrong)"},{value:"repetition",label:"Repetition",title:"Repetition (i meant, still doesnt)"},{value:"blame",label:"Blame",title:"Blame (you didnt, stop X-ing)"},{value:"frustration",label:"Frustration",title:"Frustration (neg + rep + blame)"},{value:"total",label:"All",title:"All signals combined"}];function TP(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 LP(Q,G){if(G==="frustration")return Q.negation+Q.repetition+Q.blame;if(G==="total")return Q.yelling+Q.profanity+Q.anguish+Q.negation+Q.repetition+Q.blame;return Q[G]}function PP(Q,G){if(G<=0)return 0;return Q/G*100}function BD({behaviorSeries:Q}){let[G,X]=Z5.useState(!1),[q,N]=Z5.useState("total"),K=g4(),H=z6[K],M=Z5.useMemo(()=>{if(G)return XX(Q,{rankWeight:(h)=>h.messages,initBucket:()=>({hits:0,messages:0}),accumulate:(h,p)=>{h.hits+=LP(p,q),h.messages+=p.messages},bucketToValue:(h)=>PP(h.hits,h.messages)});let D=EK.find((h)=>h.value===q)?.title??"Hits";return GX(Q,D,{initBucket:()=>({hits:0,messages:0}),accumulate:(h,p)=>{h.hits+=LP(p,q),h.messages+=p.messages},bucketToValue:(h)=>PP(h.hits,h.messages)})},[Q,G,q]),F=Z5.useMemo(()=>{return $X({chartTheme:H,showLegend:G,defaultLabel:"Hits",formatValue:TP})},[H,G]),{sharedScaleBase:w,yScale:z}=Z5.useMemo(()=>{return ZX({chartTheme:H,formatY:TP})},[H]),T=Z5.useMemo(()=>{return EK.find((D)=>D.value===q)?.title??""},[q]),P=Z5.useMemo(()=>{if(!G)return null;return{labels:M.labels,datasets:W$(M,(D)=>QX(a1[D%a1.length]))}},[M,G]),V=Z5.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:F,scales:{x:w,y:z}}},[F,w,z]),A=Z5.useMemo(()=>{if(G)return null;return{labels:M.labels,datasets:W$(M,(D)=>JX(a1[D%a1.length]))}},[M,G]),O=Z5.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:F,scales:{x:{...w,stacked:!0},y:{...z,stacked:!0}},layout:{padding:{top:8}}}},[F,w,z]),I=[{value:!1,label:"All Models"},{value:!0,label:"By Model"}];return W0.jsxDEV($5,{title:"User Friction Signals",subtitle:`${T} as % of user messages per day`,actions:W0.jsxDEV("div",{className:"flex items-center gap-3 flex-wrap",children:[W0.jsxDEV(rQ,{options:EK.map((D)=>({value:D.value,label:D.label,title:D.title})),value:q,onChange:N},void 0,!1,void 0,this),W0.jsxDEV(rQ,{options:I,value:G,onChange:X},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:W0.jsxDEV("div",{className:"h-[300px]",children:M.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(x6,{data:P,options:V},void 0,!1,void 0,this):A?W0.jsxDEV(e3,{data:A,options:O},void 0,!1,void 0,this):null},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var _P="2fr 0.9fr 0.8fr 0.8fr 0.8fr 0.9fr 0.8fr 140px 40px";function CP(Q){if(Q.totalMessages===0)return 0;return(Q.totalYelling+Q.totalProfanity+Q.totalAnguish+Q.totalNegation+Q.totalRepetition+Q.totalBlame)/Q.totalMessages}function R$(Q,G){if(G===0)return"-";let X=Q/G*100;if(X===0)return"0%";if(X<1)return`${X.toFixed(1)}%`;return`${X.toFixed(0)}%`}function HD({models:Q,behaviorSeries:G}){let[X,q]=Z5.useState(null),N=g4(),K=z6[N],H=Z5.useMemo(()=>FD(G),[G]),M=Z5.useMemo(()=>{return[...Q].sort((F,w)=>{if(w.totalMessages!==F.totalMessages)return w.totalMessages-F.totalMessages;return CP(w)-CP(F)})},[Q]);return W0.jsxDEV(NX,{title:"Behavior Signals by Model",subtitle:"Rates are per user message",children:[W0.jsxDEV(UX,{gridTemplate:_P,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(KX,{children:[M.map((F,w)=>{let z=`${F.model}::${F.provider}`,T=H.get(z)?.data??[],P=a1[w%a1.length],V=X===z,A=F.totalNegation+F.totalRepetition+F.totalBlame,O=F.totalYelling+F.totalProfanity+F.totalAnguish+A;return W0.jsxDEV(HX,{gridTemplate:_P,isExpanded:V,onToggle:()=>q(V?null:z),cells:[W0.jsxDEV(BX,{model:F.model,provider:F.provider},"name",!1,void 0,this),W0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:J1(F.totalMessages)},"messages",!1,void 0,this),W0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:R$(F.totalYelling,F.totalMessages)},"caps",!1,void 0,this),W0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:R$(F.totalProfanity,F.totalMessages)},"profanity",!1,void 0,this),W0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:R$(F.totalAnguish,F.totalMessages)},"anguish",!1,void 0,this),W0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:R$(A,F.totalMessages)},"frustration",!1,void 0,this),W0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:R$(O,F.totalMessages)},"hits",!1,void 0,this)],trendCell:T.length===0?W0.jsxDEV(MX,{},void 0,!1,void 0,this):W0.jsxDEV(qX,{timestamps:T.map((I)=>I.timestamp),values:T.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(l9,{label:"Yelling (CAPS)",total:F.totalYelling,messages:F.totalMessages,valueClass:"text-[#ed4abf]"},void 0,!1,void 0,this),W0.jsxDEV(l9,{label:"Profanity",total:F.totalProfanity,messages:F.totalMessages,valueClass:"text-[#ff6b7d]"},void 0,!1,void 0,this),W0.jsxDEV(l9,{label:"Anguish (!!!, nooo, dude, ..)",total:F.totalAnguish,messages:F.totalMessages,valueClass:"text-[#9b4dff]"},void 0,!1,void 0,this),W0.jsxDEV(l9,{label:"Negation (no/nope/wrong)",total:F.totalNegation,messages:F.totalMessages,valueClass:"text-[#5ad8e6]"},void 0,!1,void 0,this),W0.jsxDEV(l9,{label:"Repetition (i meant, still doesnt)",total:F.totalRepetition,messages:F.totalMessages,valueClass:"text-[#5ad8e6]"},void 0,!1,void 0,this),W0.jsxDEV(l9,{label:"Blame (you didnt, stop X-ing)",total:F.totalBlame,messages:F.totalMessages,valueClass:"text-[#5ad8e6]"},void 0,!1,void 0,this),W0.jsxDEV(l9,{label:"Avg chars / msg",total:F.totalChars,messages:F.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:T.length===0?W0.jsxDEV(FX,{},void 0,!1,void 0,this):W0.jsxDEV(MD,{data:T,chartTheme:K},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},z,!1,void 0,this)}),M.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 l9({label:Q,total:G,messages:X,valueClass:q,mode:N="rate"}){let K=N==="rate"?"% of msgs":"Per msg",H=Z5.useMemo(()=>{if(X===0)return"-";return N==="rate"?R$(G,X):(G/X).toFixed(0)},[G,X,N]);return W0.jsxDEV("div",{children:[W0.jsxDEV("div",{className:"text-[var(--text-primary)] font-medium mb-1",children:Q},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 ${q}`,children:J1(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 zX={yelling:"#ed4abf",profanity:"#ff6b7d",anguish:"#9b4dff",frustration:"#5ad8e6"};function MD({data:Q,chartTheme:G}){let X=Z5.useMemo(()=>{return{labels:Q.map((N)=>Q4(new Date(N.timestamp),"MMM d")),datasets:[{label:"CAPS",data:Q.map((N)=>N.yelling),...E8(zX.yelling)},{label:"Profanity",data:Q.map((N)=>N.profanity),...E8(zX.profanity)},{label:"Anguish",data:Q.map((N)=>N.anguish),...E8(zX.anguish)},{label:"Frustration",data:Q.map((N)=>N.frustration),...E8(zX.frustration)}]}},[Q]),q=Z5.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,plugins:YX(G),scales:JP(G)}},[G]);return W0.jsxDEV(x6,{data:X,options:q},void 0,!1,void 0,this)}function FD(Q){if(Q.length===0)return new Map;let G=[...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 M=H.get(N.timestamp)??{timestamp:N.timestamp,yelling:0,profanity:0,anguish:0,frustration:0,total:0};M.yelling+=N.yelling,M.profanity+=N.profanity,M.anguish+=N.anguish,M.frustration+=N.negation+N.repetition+N.blame,M.total=M.yelling+M.profanity+M.anguish+M.frustration,H.set(N.timestamp,M)}let q=new Map;for(let[N,K]of X){let H=G.map((M)=>K.get(M)??{timestamp:M,yelling:0,profanity:0,anguish:0,frustration:0,total:0});q.set(N,{data:H})}return q}var d6=t(O1(),1);var Q5=t(R0(),1);function IP({active:Q,range:G,refreshTrigger:X}){let{data:q,error:N,loading:K}=f5(["costs",G,X],(H)=>iT(G,H),{pollMs:30000,enabled:Q});return Q5.jsxDEV("div",{className:"stats-route-container space-y-6",children:Q5.jsxDEV(U5,{loading:K,error:N,data:q,children:q&&Q5.jsxDEV(Q5.Fragment,{children:[Q5.jsxDEV(WD,{costSeries:q.costSeries},void 0,!1,void 0,this),Q5.jsxDEV(zD,{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 WD({costSeries:Q}){let G=d6.useMemo(()=>UP(Q),[Q]),X=[{label:"Total Cost",value:x1(G.totalCost)},{label:"Average / Day",value:x1(G.avgDailyCost)},{label:"Top Model",value:G.topModelName||"—",sub:G.topModelName?x1(G.topModelCost):void 0}];return Q5.jsxDEV("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:X.map((q)=>Q5.jsxDEV($5,{className:"stats-cost-overview-card py-4 px-5",children:[Q5.jsxDEV("p",{className:"text-xs stats-text-muted mb-1 font-medium uppercase tracking-wider",children:q.label},void 0,!1,void 0,this),Q5.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&&Q5.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 wD={dark:"rgba(248, 250, 252, 0.7)",light:"rgba(15, 23, 42, 0.6)"};function RD(Q){return{id:"costBarLabels",afterDatasetsDraw(G){let{ctx:X}=G;if(!G.data.datasets[0])return;let N=G.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 M=`$${Math.round(H)}`,{x:F,y:w}=K.getProps(["x","y"],!0);X.fillText(M,F,w-3)}X.restore()}}}function zD({costSeries:Q}){let[G,X]=d6.useState(!1),q=g4(),N=z6[q],K=d6.useMemo(()=>{if(G)return XX(Q,{rankWeight:(O)=>O.cost,initBucket:()=>({total:0}),accumulate:(O,I)=>{O.total+=I.cost},bucketToValue:(O)=>O.total});return GX(Q,"Cost",{initBucket:()=>({total:0}),accumulate:(O,I)=>{O.total+=I.cost},bucketToValue:(O)=>O.total})},[Q,G]),H=d6.useMemo(()=>{return $X({chartTheme:N,showLegend:G,defaultLabel:"Cost",formatValue:(O)=>`$${O.toFixed(2)}`,footer:(O)=>{if(!G||O.length<2)return;return`Total: $${O.reduce((D,h)=>D+(h.parsed.y??0),0).toFixed(2)}`}})},[N,G]),{sharedScaleBase:M,yScale:F}=d6.useMemo(()=>{return ZX({chartTheme:N,formatY:(O)=>`$${Math.round(O)}`})},[N]),w=d6.useMemo(()=>{return RD(wD[q])},[q]),z=d6.useMemo(()=>{if(!G)return null;return{labels:K.labels,datasets:W$(K,(O)=>QX(a1[O%a1.length]))}},[K,G]),T=d6.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:H,scales:{x:M,y:F}}},[H,M,F]),P=d6.useMemo(()=>{if(G)return null;return{labels:K.labels,datasets:W$(K,(O)=>JX(a1[O%a1.length]))}},[K,G]),V=d6.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{...H,costBarLabels:{}},scales:{x:{...M,stacked:!0},y:{...F,stacked:!0}},layout:{padding:{top:24}}}},[H,M,F]);return Q5.jsxDEV($5,{title:"Daily Cost",subtitle:"API spending over time",actions:Q5.jsxDEV(rQ,{options:[{value:!1,label:"All Models"},{value:!0,label:"By Model"}],value:G,onChange:X},void 0,!1,void 0,this),children:Q5.jsxDEV("div",{className:"h-[300px]",children:K.labels.length===0?Q5.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&&z?Q5.jsxDEV(x6,{data:z,options:T},void 0,!1,void 0,this):P?Q5.jsxDEV(e3,{data:P,options:V,plugins:[w]},void 0,!1,void 0,this):null},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var OP=t(O1(),1);var C1=t(R0(),1);function EP({active:Q,refreshTrigger:G,onRequestClick:X}){let{data:q,error:N,loading:K}=f5(["recent-errors-dense",G],(F)=>tT(50,F),{pollMs:30000,enabled:Q}),H=OP.useMemo(()=>[{key:"model",header:"Model",render:(F)=>C1.jsxDEV("div",{children:[C1.jsxDEV("div",{className:"stats-font-medium stats-text-primary",children:F.model},void 0,!1,void 0,this),C1.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:F.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"timestamp",header:"Time",render:(F)=>u4(F.timestamp)},{key:"errorMessage",header:"Error Message",render:(F)=>C1.jsxDEV("div",{className:"stats-text-xs stats-text-danger stats-truncate stats-max-w-md stats-font-mono",title:F.errorMessage||"",children:F.errorMessage||"Unknown error"},void 0,!1,void 0,this)},{key:"tokens",header:"Tokens",numeric:!0,render:(F)=>J1(F.usage.totalTokens)},{key:"cost",header:"Cost",numeric:!0,render:(F)=>x1(F.usage.cost.total,4)}],[]);return C1.jsxDEV("div",{className:"stats-route-container",children:C1.jsxDEV($5,{title:"Recent Errors",subtitle:"Up to 50 most recent failed requests in the stats database",children:C1.jsxDEV(U5,{loading:K,error:N,data:q,emptyText:"No recent failures in the local stats database",children:C1.jsxDEV(k2,{columns:H,data:q||[],keyExtractor:(F)=>F.id||`${F.sessionFile}-${F.entryId}`,onRowClick:(F)=>F.id&&X(F.id),renderMobileCard:(F,w)=>C1.jsxDEV("div",{className:"stats-mobile-card stats-border-danger",onClick:w,children:[C1.jsxDEV("div",{className:"stats-mobile-card-header",children:[C1.jsxDEV("div",{children:[C1.jsxDEV("div",{className:"stats-font-semibold stats-text-primary",children:F.model},void 0,!1,void 0,this),C1.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:F.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),C1.jsxDEV(L6,{variant:"danger",children:"Failed"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),C1.jsxDEV("div",{className:"stats-mobile-card-grid",children:[C1.jsxDEV("div",{children:[C1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Time"},void 0,!1,void 0,this),C1.jsxDEV("div",{className:"stats-mobile-card-value",children:u4(F.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),C1.jsxDEV("div",{children:[C1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Cost"},void 0,!1,void 0,this),C1.jsxDEV("div",{className:"stats-mobile-card-value",children:x1(F.usage.cost.total,4)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),C1.jsxDEV("div",{children:[C1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Tokens"},void 0,!1,void 0,this),C1.jsxDEV("div",{className:"stats-mobile-card-value",children:J1(F.usage.totalTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.errorMessage&&C1.jsxDEV("div",{className:"stats-mobile-card-error mt-2 stats-font-mono",children:F.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 m4=t(O1(),1);var O0=t(R0(),1);function jP({active:Q,range:G,refreshTrigger:X}){let{data:q,error:N,loading:K}=f5(["models",G,X],(H)=>aT(G,H),{pollMs:30000,enabled:Q});return O0.jsxDEV("div",{className:"stats-route-container space-y-6",children:O0.jsxDEV(U5,{loading:K,error:N,data:q,children:q&&O0.jsxDEV(O0.Fragment,{children:[O0.jsxDEV(TD,{modelSeries:q.modelSeries,timeRange:G},void 0,!1,void 0,this),O0.jsxDEV(PD,{models:q.byModel,performanceSeries:q.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 TD({modelSeries:Q,timeRange:G}){let X=g4(),q=z6[X],N=lQ(G),K=m4.useMemo(()=>LD(Q),[Q]),H=m4.useMemo(()=>{return{labels:K.data.map((F)=>VK(F.timestamp,G)),datasets:K.series.map((F,w)=>({label:F,data:K.data.map((z)=>z[F]??0),borderColor:a1[w%a1.length],backgroundColor:`${a1[w%a1.length]}20`,fill:!0,tension:0.4,pointRadius:0,pointHoverRadius:4,borderWidth:2}))}},[K,G]),M=m4.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:(F)=>{let w=F.dataset.label??"",z=F.parsed.y;return`${w}: ${(z??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:(F)=>`${F}%`},min:0,max:100}}}},[q]);return O0.jsxDEV($5,{title:"Model Preference",subtitle:`Share of requests over ${N.windowLabel}`,children:O0.jsxDEV("div",{className:"h-[280px]",children:K.data.length===0?O0.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):O0.jsxDEV(x6,{data:H,options:M},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function LD(Q,G=5){if(Q.length===0)return{data:[],series:[]};let X=new Map;for(let T of Q){let P=`${T.model}::${T.provider}`,V=X.get(P);if(V)V.total+=T.requests;else X.set(P,{model:T.model,provider:T.provider,total:T.requests})}let N=[...X.entries()].map(([T,P])=>({key:T,...P})).sort((T,P)=>P.total-T.total).slice(0,G),K=new Set(N.map((T)=>T.key)),H=new Map;for(let T of N)H.set(T.model,(H.get(T.model)??0)+1);let M=new Map;for(let T of N){let P=(H.get(T.model)??0)>1;M.set(T.key,P?`${T.model} (${T.provider})`:T.model)}let F=new Map;for(let T of Q){let P=`${T.model}::${T.provider}`,V=F.get(T.timestamp)??{timestamp:T.timestamp,total:0};V.total+=T.requests;let A=K.has(P)?M.get(P)??T.model:"Other";V[A]=(V[A]??0)+T.requests,F.set(T.timestamp,V)}let w=N.map((T)=>M.get(T.key)??T.model);if([...F.values()].some((T)=>(T.Other??0)>0))w.push("Other");return{data:[...F.values()].sort((T,P)=>(T.timestamp??0)-(P.timestamp??0)).map((T)=>{let P=T.total??0;for(let V of w)T[V]=P>0?(T[V]??0)/P*100:0;return T}),series:w}}var AP="2fr 0.9fr 0.9fr 1fr 0.8fr 0.8fr 140px 40px";function PD({models:Q,performanceSeries:G,timeRange:X}){let[q,N]=m4.useState(null),K=lQ(X),H=m4.useMemo(()=>KP(G,X),[G,X]),M=g4(),F=z6[M],w=m4.useMemo(()=>{return[...Q].sort((z,T)=>T.totalInputTokens+T.totalOutputTokens-(z.totalInputTokens+z.totalOutputTokens))},[Q]);return O0.jsxDEV(NX,{title:"Model Statistics",children:[O0.jsxDEV(UX,{gridTemplate:AP,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),O0.jsxDEV(KX,{children:w.map((z,T)=>{let P=`${z.model}::${z.provider}`,A=H.get(P)?.data??[],O=a1[T%a1.length],I=q===P,D=z.errorRate*100;return O0.jsxDEV(HX,{gridTemplate:AP,isExpanded:I,onToggle:()=>N(I?null:P),cells:[O0.jsxDEV(BX,{model:z.model,provider:z.provider},"name",!1,void 0,this),O0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:z.totalRequests.toLocaleString()},"requests",!1,void 0,this),O0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:["$",z.totalCost.toFixed(2)]},"cost",!0,void 0,this),O0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:(z.totalInputTokens+z.totalOutputTokens).toLocaleString()},"tokens",!1,void 0,this),O0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:z.avgTokensPerSecond?.toFixed(1)??"-"},"tps",!1,void 0,this),O0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:z.avgTtft?`${(z.avgTtft/1000).toFixed(2)}s`:"-"},"ttft",!1,void 0,this)],trendCell:A.length===0?O0.jsxDEV(MX,{},void 0,!1,void 0,this):O0.jsxDEV(qX,{timestamps:A.map((h)=>h.timestamp),values:A.map((h)=>h.avgTokensPerSecond??0),color:O},void 0,!1,void 0,this),expandedContent:O0.jsxDEV("div",{className:"grid gap-4",style:{gridTemplateColumns:"200px 1fr"},children:[O0.jsxDEV("div",{className:"space-y-4 text-sm",children:[O0.jsxDEV("div",{children:[O0.jsxDEV("div",{className:"text-[var(--text-primary)] font-medium mb-2",children:"Quality"},void 0,!1,void 0,this),O0.jsxDEV("div",{className:"space-y-1 text-[var(--text-secondary)]",children:[O0.jsxDEV("div",{className:"flex items-center justify-between",children:[O0.jsxDEV("span",{children:"Error rate"},void 0,!1,void 0,this),O0.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),O0.jsxDEV("div",{className:"flex items-center justify-between",children:[O0.jsxDEV("span",{children:"Cache rate"},void 0,!1,void 0,this),O0.jsxDEV("span",{className:"text-[var(--accent-cyan)]",children:[(z.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),O0.jsxDEV("div",{children:[O0.jsxDEV("div",{className:"text-[var(--text-primary)] font-medium mb-2",children:"Latency"},void 0,!1,void 0,this),O0.jsxDEV("div",{className:"space-y-1 text-[var(--text-secondary)]",children:[O0.jsxDEV("div",{className:"flex items-center justify-between",children:[O0.jsxDEV("span",{children:"Avg duration"},void 0,!1,void 0,this),O0.jsxDEV("span",{className:"font-mono",children:z.avgDuration?`${(z.avgDuration/1000).toFixed(2)}s`:"-"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),O0.jsxDEV("div",{className:"flex items-center justify-between",children:[O0.jsxDEV("span",{children:"Avg TTFT"},void 0,!1,void 0,this),O0.jsxDEV("span",{className:"font-mono",children:z.avgTtft?`${(z.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),O0.jsxDEV("div",{className:"h-[200px]",children:A.length===0?O0.jsxDEV(FX,{},void 0,!1,void 0,this):O0.jsxDEV(_D,{data:A,color:O,chartTheme:F,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 _D({data:Q,color:G,chartTheme:X,timeRange:q}){let N=m4.useMemo(()=>{return{labels:Q.map((H)=>VK(H.timestamp,q)),datasets:[{label:"TTFT",data:Q.map((H)=>H.avgTtftSeconds??null),...E8("#5ad8e6"),yAxisID:"y"},{label:"Tokens/s",data:Q.map((H)=>H.avgTokensPerSecond??null),...E8(G),yAxisID:"y1"}]}},[Q,G,q]),K=m4.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,plugins:YX(X),scales:GP(X)}},[X]);return O0.jsxDEV(x6,{data:N,options:K},void 0,!1,void 0,this)}var sQ=t(O1(),1);var SP=t(O1(),1);var t5=t(R0(),1),TX={main:{label:"Main agent",color:"#ed4abf"},subagent:{label:"Subagents",color:"#9b4dff"},advisor:{label:"Advisor",color:"#5ad8e6"}};function DP({stats:Q}){let G=SP.useMemo(()=>NP(Q),[Q]);if(G.totalTokens===0)return t5.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 t5.jsxDEV("div",{className:"space-y-4",children:[t5.jsxDEV("div",{className:"flex h-3 w-full overflow-hidden rounded-full",style:{background:"var(--surface-2)"},children:G.segments.map((X)=>X.share>0&&t5.jsxDEV("div",{className:"h-full",style:{width:`${X.share*100}%`,background:TX[X.agentType].color},title:`${TX[X.agentType].label}: ${J4(X.share)}`},X.agentType,!1,void 0,this))},void 0,!1,void 0,this),t5.jsxDEV("div",{className:"space-y-2",children:G.segments.map((X)=>t5.jsxDEV("div",{className:"flex items-center justify-between gap-3 text-sm",children:[t5.jsxDEV("div",{className:"flex items-center gap-2 min-w-0",children:[t5.jsxDEV("span",{className:"w-2.5 h-2.5 rounded-full flex-shrink-0",style:{background:TX[X.agentType].color}},void 0,!1,void 0,this),t5.jsxDEV("span",{className:"stats-text-primary truncate",children:TX[X.agentType].label},void 0,!1,void 0,this),t5.jsxDEV("span",{className:"stats-text-muted stats-text-xs whitespace-nowrap",children:[J1(X.requests)," req"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),t5.jsxDEV("div",{className:"flex items-center gap-3 whitespace-nowrap",children:[t5.jsxDEV("span",{className:"stats-text-secondary",children:[cQ(X.tokens)," tok"]},void 0,!0,void 0,this),t5.jsxDEV("span",{className:"stats-font-semibold stats-text-primary tabular-nums",children:J4(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 N0=t(R0(),1);function vP({active:Q,range:G,refreshTrigger:X,onRequestClick:q}){let{data:N,error:K,loading:H}=f5(["overview",G,X],(D)=>oT(G,D),{pollMs:30000,enabled:Q}),{data:M,error:F,loading:w}=f5(["recent-requests",X],(D)=>s3(50,D),{pollMs:30000,enabled:Q}),z=g4(),T=z6[z],P=sQ.useMemo(()=>{if(!N?.timeSeries)return{labels:[],datasets:[]};let D=N.timeSeries.map((p)=>Q4(new Date(p.timestamp),G==="1h"||G==="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,G]),V=sQ.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{legend:{display:!0,position:"top",align:"end",labels:{color:T.legendLabel,boxWidth:8,usePointStyle:!0,font:{size:11}}},tooltip:{backgroundColor:T.tooltipBackground,titleColor:T.tooltipTitle,bodyColor:T.tooltipBody,borderColor:T.tooltipBorder,borderWidth:1,cornerRadius:8,padding:10}},scales:{x:{grid:{color:T.grid,drawBorder:!1},ticks:{color:T.tick,font:{size:10}}},y:{grid:{color:T.grid,drawBorder:!1},ticks:{color:T.tick,font:{size:10}},min:0}}}},[T]),A=sQ.useMemo(()=>[{key:"model",header:"Model",render:(D)=>N0.jsxDEV("div",{children:[N0.jsxDEV("div",{className:"stats-font-medium stats-text-primary",children:D.model},void 0,!1,void 0,this),N0.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)=>u4(D.timestamp)},{key:"tokens",header:"Tokens",numeric:!0,render:(D)=>J1(D.usage.totalTokens)},{key:"cost",header:"Cost",numeric:!0,render:(D)=>x1(D.usage.cost.total,4)},{key:"duration",header:"Duration",numeric:!0,render:(D)=>I5(D.duration)},{key:"status",header:"Status",className:"stats-text-center",render:(D)=>N0.jsxDEV(L6,{variant:D.errorMessage?"danger":"success",children:D.errorMessage?"Failed":"Success"},void 0,!1,void 0,this)}],[]),O=(D,h)=>N0.jsxDEV("div",{className:"stats-mobile-card",onClick:h,children:[N0.jsxDEV("div",{className:"stats-mobile-card-header",children:[N0.jsxDEV("div",{children:[N0.jsxDEV("div",{className:"stats-font-semibold stats-text-primary",children:D.model},void 0,!1,void 0,this),N0.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:D.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),N0.jsxDEV(L6,{variant:D.errorMessage?"danger":"success",children:D.errorMessage?"Failed":"Success"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),N0.jsxDEV("div",{className:"stats-mobile-card-grid",children:[N0.jsxDEV("div",{children:[N0.jsxDEV("div",{className:"stats-mobile-card-label",children:"Time"},void 0,!1,void 0,this),N0.jsxDEV("div",{className:"stats-mobile-card-value",children:u4(D.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),N0.jsxDEV("div",{children:[N0.jsxDEV("div",{className:"stats-mobile-card-label",children:"Cost"},void 0,!1,void 0,this),N0.jsxDEV("div",{className:"stats-mobile-card-value",children:x1(D.usage.cost.total,4)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),N0.jsxDEV("div",{children:[N0.jsxDEV("div",{className:"stats-mobile-card-label",children:"Tokens"},void 0,!1,void 0,this),N0.jsxDEV("div",{className:"stats-mobile-card-value",children:J1(D.usage.totalTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),N0.jsxDEV("div",{children:[N0.jsxDEV("div",{className:"stats-mobile-card-label",children:"Duration"},void 0,!1,void 0,this),N0.jsxDEV("div",{className:"stats-mobile-card-value",children:I5(D.duration)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),D.errorMessage&&N0.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),I=sQ.useMemo(()=>{if(!M)return[];return M.slice(0,10)},[M]);return N0.jsxDEV("div",{className:"stats-route-container space-y-6",children:[N0.jsxDEV(U5,{loading:H,error:K,data:N,children:N&&N0.jsxDEV(wP,{stats:N.overall},void 0,!1,void 0,this)},void 0,!1,void 0,this),N0.jsxDEV($5,{title:"Token Usage by Agent",subtitle:"Share of tokens across the main agent, task subagents, and the advisor",children:N0.jsxDEV(U5,{loading:H,error:K,data:N,children:N&&N0.jsxDEV(DP,{stats:N.byAgentType},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),N0.jsxDEV("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[N0.jsxDEV("div",{className:"lg:col-span-2",children:N0.jsxDEV($5,{title:"System Throughput",subtitle:"Request volume and errors over time",children:N0.jsxDEV(U5,{loading:H,error:K,data:N,children:N0.jsxDEV("div",{className:"h-[280px]",children:N?.timeSeries&&N.timeSeries.length>0?N0.jsxDEV(x6,{data:P,options:V},void 0,!1,void 0,this):N0.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),N0.jsxDEV("div",{children:N0.jsxDEV($5,{title:"Operational Feed",subtitle:"Real-time request log",children:N0.jsxDEV(U5,{loading:w,error:F,data:M,fallback:N0.jsxDEV("div",{className:"space-y-4",children:Array.from({length:5}).map((D,h)=>N0.jsxDEV("div",{className:"flex items-center gap-3",children:[N0.jsxDEV(a5,{variant:"circle",width:10,height:10},void 0,!1,void 0,this),N0.jsxDEV("div",{className:"flex-1",children:[N0.jsxDEV(a5,{variant:"text",width:"60%",height:16},void 0,!1,void 0,this),N0.jsxDEV(a5,{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:N0.jsxDEV("div",{className:"stats-feed-ledger overflow-y-auto max-h-[280px] pr-2",children:[I.map((D)=>{let h=!!D.errorMessage;return N0.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:[N0.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),N0.jsxDEV("div",{className:"flex-1 min-w-0",children:[N0.jsxDEV("div",{className:"flex justify-between items-baseline gap-2",children:[N0.jsxDEV("div",{className:"stats-font-medium stats-text-primary text-sm truncate",children:D.model},void 0,!1,void 0,this),N0.jsxDEV("div",{className:"stats-text-xs stats-text-muted whitespace-nowrap",children:u4(D.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),N0.jsxDEV("div",{className:"flex justify-between items-center text-xs stats-text-muted mt-0.5",children:[N0.jsxDEV("div",{children:D.provider},void 0,!1,void 0,this),N0.jsxDEV("div",{children:[D.duration?I5(D.duration):""," ",D.usage?.cost?.total?`· ${x1(D.usage.cost.total,4)}`:""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),h&&N0.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)}),I.length===0&&N0.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),N0.jsxDEV($5,{title:"Recent Requests Preview",subtitle:"Latest transactions processed by the proxy",actions:N0.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:N0.jsxDEV(U5,{loading:w,error:F,data:M,children:N0.jsxDEV(k2,{columns:A,data:I,keyExtractor:(D)=>D.id||`${D.sessionFile}-${D.entryId}`,onRowClick:(D)=>D.id&&q(D.id),renderMobileCard:O,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 AK=t(O1(),1);var Q1=t(R0(),1);function bP({active:Q,range:G,refreshTrigger:X}){let{data:q,error:N,loading:K}=f5(["projects",G,X],(w)=>QL(G,w),{pollMs:30000,enabled:Q}),H=AK.useMemo(()=>{if(!q)return[];return HP(q)},[q]),M=AK.useMemo(()=>[{key:"folder",header:"Project/Folder",render:(w)=>Q1.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)=>Q1.jsxDEV("div",{className:"stats-text-right",children:[Q1.jsxDEV("div",{className:"font-mono",children:J1(w.totalRequests)},void 0,!1,void 0,this),Q1.jsxDEV("div",{className:"stats-progress-bar-track mt-1 ml-auto w-24 h-1",children:Q1.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)=>Q1.jsxDEV("div",{className:"stats-text-right",children:[Q1.jsxDEV("div",{className:"font-mono",children:x1(w.totalCost)},void 0,!1,void 0,this),Q1.jsxDEV("div",{className:"stats-progress-bar-track mt-1 ml-auto w-24 h-1",children:Q1.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)=>Q1.jsxDEV("div",{className:"font-mono",children:J1(w.totalInputTokens+w.totalOutputTokens)},void 0,!1,void 0,this)},{key:"cacheRate",header:"Cache Rate",numeric:!0,render:(w)=>Q1.jsxDEV("span",{className:"stats-text-success font-medium",children:J4(w.cacheRate)},void 0,!1,void 0,this)},{key:"errorRate",header:"Error Rate",numeric:!0,render:(w)=>Q1.jsxDEV(L6,{variant:w.errorRate>0.1?"danger":w.errorRate>0?"warning":"success",children:J4(w.errorRate)},void 0,!1,void 0,this)},{key:"avgDuration",header:"Avg Duration",numeric:!0,render:(w)=>I5(w.avgDuration)}],[]);return Q1.jsxDEV("div",{className:"stats-route-container",children:Q1.jsxDEV($5,{title:"Projects & Folders",subtitle:"Aggregate proxy metrics grouped by folder path",children:Q1.jsxDEV(U5,{loading:K,error:N,data:q,emptyText:"No project folders recorded for this range.",children:Q1.jsxDEV(k2,{columns:M,data:H,keyExtractor:(w)=>w.folder,renderMobileCard:(w)=>Q1.jsxDEV("div",{className:"stats-mobile-card",children:[Q1.jsxDEV("div",{className:"stats-mobile-card-header mb-2",children:[Q1.jsxDEV("div",{className:"stats-font-semibold stats-text-primary",children:w.folder||"(root)"},void 0,!1,void 0,this),Q1.jsxDEV(L6,{variant:w.errorRate>0.1?"danger":w.errorRate>0?"warning":"success",children:[J4(w.errorRate)," Err"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Q1.jsxDEV("div",{className:"stats-mobile-card-grid",children:[Q1.jsxDEV("div",{children:[Q1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Requests"},void 0,!1,void 0,this),Q1.jsxDEV("div",{className:"stats-mobile-card-value font-mono",children:J1(w.totalRequests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Q1.jsxDEV("div",{children:[Q1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Cost"},void 0,!1,void 0,this),Q1.jsxDEV("div",{className:"stats-mobile-card-value font-mono",children:x1(w.totalCost)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Q1.jsxDEV("div",{children:[Q1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Cache"},void 0,!1,void 0,this),Q1.jsxDEV("div",{className:"stats-mobile-card-value",children:J4(w.cacheRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Q1.jsxDEV("div",{children:[Q1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Duration"},void 0,!1,void 0,this),Q1.jsxDEV("div",{className:"stats-mobile-card-value",children:I5(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 kP=t(O1(),1);var B1=t(R0(),1);function fP({active:Q,refreshTrigger:G,onRequestClick:X}){let{data:q,error:N,loading:K}=f5(["recent-requests-dense",G],(F)=>s3(50,F),{pollMs:30000,enabled:Q}),H=kP.useMemo(()=>[{key:"model",header:"Model",render:(F)=>B1.jsxDEV("div",{children:[B1.jsxDEV("div",{className:"stats-font-medium stats-text-primary",children:F.model},void 0,!1,void 0,this),B1.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:F.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"timestamp",header:"Time",render:(F)=>u4(F.timestamp)},{key:"tokens",header:"Tokens",numeric:!0,render:(F)=>J1(F.usage.totalTokens)},{key:"cost",header:"Cost",numeric:!0,render:(F)=>x1(F.usage.cost.total,4)},{key:"duration",header:"Duration",numeric:!0,render:(F)=>I5(F.duration)},{key:"status",header:"Status",className:"stats-text-center",render:(F)=>B1.jsxDEV(L6,{variant:F.errorMessage?"danger":"success",children:F.errorMessage?"Failed":"Success"},void 0,!1,void 0,this)}],[]);return B1.jsxDEV("div",{className:"stats-route-container",children:B1.jsxDEV($5,{title:"All Recent Requests",subtitle:"Up to 50 most recent requests processed by OMP",children:B1.jsxDEV(U5,{loading:K,error:N,data:q,children:B1.jsxDEV(k2,{columns:H,data:q||[],keyExtractor:(F)=>F.id||`${F.sessionFile}-${F.entryId}`,onRowClick:(F)=>F.id&&X(F.id),renderMobileCard:(F,w)=>B1.jsxDEV("div",{className:"stats-mobile-card",onClick:w,children:[B1.jsxDEV("div",{className:"stats-mobile-card-header",children:[B1.jsxDEV("div",{children:[B1.jsxDEV("div",{className:"stats-font-semibold stats-text-primary",children:F.model},void 0,!1,void 0,this),B1.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:F.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),B1.jsxDEV(L6,{variant:F.errorMessage?"danger":"success",children:F.errorMessage?"Failed":"Success"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),B1.jsxDEV("div",{className:"stats-mobile-card-grid",children:[B1.jsxDEV("div",{children:[B1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Time"},void 0,!1,void 0,this),B1.jsxDEV("div",{className:"stats-mobile-card-value",children:u4(F.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),B1.jsxDEV("div",{children:[B1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Cost"},void 0,!1,void 0,this),B1.jsxDEV("div",{className:"stats-mobile-card-value",children:x1(F.usage.cost.total,4)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),B1.jsxDEV("div",{children:[B1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Tokens"},void 0,!1,void 0,this),B1.jsxDEV("div",{className:"stats-mobile-card-value",children:J1(F.usage.totalTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),B1.jsxDEV("div",{children:[B1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Duration"},void 0,!1,void 0,this),B1.jsxDEV("div",{className:"stats-mobile-card-value",children:I5(F.duration)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.errorMessage&&B1.jsxDEV("div",{className:"stats-mobile-card-error truncate mt-2",children:F.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 e5=t(R0(),1);function jK(){let{section:Q,setSection:G,range:X,setRange:q}=WL(),[N,K]=A8.useState(0),[H,M]=A8.useState(null),[F,w]=A8.useState(()=>Date.now()),z=A8.useCallback((O)=>{if(O.success)K((I)=>I+1),w(Date.now())},[]),T=A8.useCallback(()=>M(null),[]),P=Q,V=A8.useRef(new Set);V.current.add(P);let A=(O)=>{let I=O===P;switch(O){case"overview":return e5.jsxDEV(vP,{active:I,range:X,refreshTrigger:N,onRequestClick:M},void 0,!1,void 0,this);case"requests":return e5.jsxDEV(fP,{active:I,range:X,refreshTrigger:N,onRequestClick:M},void 0,!1,void 0,this);case"errors":return e5.jsxDEV(EP,{active:I,range:X,refreshTrigger:N,onRequestClick:M},void 0,!1,void 0,this);case"models":return e5.jsxDEV(jP,{active:I,range:X,refreshTrigger:N},void 0,!1,void 0,this);case"costs":return e5.jsxDEV(IP,{active:I,range:X,refreshTrigger:N},void 0,!1,void 0,this);case"behavior":return e5.jsxDEV(VP,{active:I,range:X,refreshTrigger:N},void 0,!1,void 0,this);case"projects":return e5.jsxDEV(bP,{active:I,range:X,refreshTrigger:N},void 0,!1,void 0,this)}};return e5.jsxDEV(e5.Fragment,{children:[e5.jsxDEV(ML,{activeSection:P,onSectionChange:G,range:X,onRangeChange:q,updatedAt:F,onSyncComplete:z,children:[...V.current].map((O)=>e5.jsxDEV("div",{hidden:O!==P,children:A(O)},O,!1,void 0,this))},void 0,!1,void 0,this),e5.jsxDEV(zP,{id:H,onClose:T},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var gP=t(R0(),1),CD=yP.createRoot(document.getElementById("root"));CD.render(gP.jsxDEV(jK,{},void 0,!1,void 0,this));
257
+ `);return Q}function YS(Q,J){let{element:X,datasetIndex:q,index:N}=J,K=Q.getDatasetMeta(q).controller,{label:H,value:M}=K.getLabelAndValue(N);return{chart:Q,label:H,parsed:K.getParsed(N),raw:Q.data.datasets[q].data[N],formattedValue:M,dataset:K.getDataset(),dataIndex:N,datasetIndex:q,element:X}}function az(Q,J){let X=Q.chart.ctx,{body:q,footer:N,title:K}=Q,{boxWidth:H,boxHeight:M}=J,F=i1(J.bodyFont),w=i1(J.titleFont),z=i1(J.footerFont),T=K.length,P=N.length,I=q.length,A=R5(J.padding),O=A.height,V=0,D=q.reduce((s,o)=>s+o.before.length+o.lines.length+o.after.length,0);if(D+=Q.beforeBody.length+Q.afterBody.length,T)O+=T*w.lineHeight+(T-1)*J.titleSpacing+J.titleMarginBottom;if(D){let s=J.displayColors?Math.max(M,F.lineHeight):F.lineHeight;O+=I*s+(D-I)*F.lineHeight+(D-1)*J.bodySpacing}if(P)O+=J.footerMarginTop+P*z.lineHeight+(P-1)*J.footerSpacing;let h=0,p=function(s){V=Math.max(V,X.measureText(s).width+h)};return X.save(),X.font=w.string,K1(Q.title,p),X.font=F.string,K1(Q.beforeBody.concat(Q.afterBody),p),h=J.displayColors?H+2+J.boxPadding:0,K1(q,(s)=>{K1(s.before,p),K1(s.lines,p),K1(s.after,p)}),h=0,X.font=z.string,K1(Q.footer,p),X.restore(),V+=A.width,{width:V,height:O}}function NS(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 US(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 KS(Q,J,X,q){let{x:N,width:K}=X,{width:H,chartArea:{left:M,right:F}}=Q,w="center";if(q==="center")w=N<=(M+F)/2?"left":"right";else if(N<=K/2)w="left";else if(N>=H-K/2)w="right";if(US(w,Q,J,X))w="center";return w}function iz(Q,J,X){let q=X.yAlign||J.yAlign||NS(Q,X);return{xAlign:X.xAlign||J.xAlign||KS(Q,J,X,q),yAlign:q}}function BS(Q,J){let{x:X,width:q}=Q;if(J==="right")X-=q;else if(J==="center")X-=q/2;return X}function HS(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 tz(Q,J,X,q){let{caretSize:N,caretPadding:K,cornerRadius:H}=Q,{xAlign:M,yAlign:F}=X,w=N+K,{topLeft:z,topRight:T,bottomLeft:P,bottomRight:I}=j2(H),A=BS(J,M),O=HS(J,F,w);if(F==="center"){if(M==="left")A+=w;else if(M==="right")A-=w}else if(M==="left")A-=Math.max(z,P)+N;else if(M==="right")A+=Math.max(T,I)+N;return{x:o5(A,0,q.width-J.width),y:o5(O,0,q.height-J.height)}}function x3(Q,J,X){let q=R5(X.padding);return J==="center"?Q.x+Q.width/2:J==="right"?Q.x+Q.width-q.right:Q.x+q.left}function ez(Q){return g4([],I8(Q))}function MS(Q,J,X){return _8(Q,{tooltip:J,tooltipItems:X,type:"tooltip"})}function $T(Q,J){let X=J&&J.dataset&&J.dataset.tooltip&&J.dataset.tooltip.callbacks;return X?Q.override(X):Q}var yT={beforeTitle:y4,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:y4,beforeBody:y4,beforeLabel:y4,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(!$1(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:y4,afterBody:y4,beforeFooter:y4,footer:y4,afterFooter:y4};function i5(Q,J,X,q){let N=Q[J].call(X,q);if(typeof N>"u")return yT[J].call(X,q);return N}class iU extends V8{static positioners=zQ;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 $K(this.chart,q);if(q._cacheable)this._cachedAnimations=Object.freeze(N);return N}getContext(){return this.$context||(this.$context=MS(this.chart.getContext(),this,this._tooltipItems))}getTitle(Q,J){let{callbacks:X}=J,q=i5(X,"beforeTitle",this,Q),N=i5(X,"title",this,Q),K=i5(X,"afterTitle",this,Q),H=[];return H=g4(H,I8(q)),H=g4(H,I8(N)),H=g4(H,I8(K)),H}getBeforeBody(Q,J){return ez(i5(J.callbacks,"beforeBody",this,Q))}getBody(Q,J){let{callbacks:X}=J,q=[];return K1(Q,(N)=>{let K={before:[],lines:[],after:[]},H=$T(X,N);g4(K.before,I8(i5(H,"beforeLabel",this,N))),g4(K.lines,i5(H,"label",this,N)),g4(K.after,I8(i5(H,"afterLabel",this,N))),q.push(K)}),q}getAfterBody(Q,J){return ez(i5(J.callbacks,"afterBody",this,Q))}getFooter(Q,J){let{callbacks:X}=J,q=i5(X,"beforeFooter",this,Q),N=i5(X,"footer",this,Q),K=i5(X,"afterFooter",this,Q),H=[];return H=g4(H,I8(q)),H=g4(H,I8(N)),H=g4(H,I8(K)),H}_createItems(Q){let J=this._active,X=this.chart.data,q=[],N=[],K=[],H=[],M,F;for(M=0,F=J.length;M<F;++M)H.push(YS(this.chart,J[M]));if(Q.filter)H=H.filter((w,z,T)=>Q.filter(w,z,T,X));if(Q.itemSort)H=H.sort((w,z)=>Q.itemSort(w,z,X));return K1(H,(w)=>{let z=$T(Q.callbacks,w);q.push(i5(z,"labelColor",this,w)),N.push(i5(z,"labelPointStyle",this,w)),K.push(i5(z,"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=zQ[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 M=this._size=az(this,X),F=Object.assign({},H,M),w=iz(this.chart,X,F),z=tz(X,F,w,this.chart);this.xAlign=w.xAlign,this.yAlign=w.yAlign,N={opacity:1,x:z.x,y:z.y,width:M.width,height:M.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:M,topRight:F,bottomLeft:w,bottomRight:z}=j2(H),{x:T,y:P}=Q,{width:I,height:A}=J,O,V,D,h,p,s;if(N==="center"){if(p=P+A/2,q==="left")O=T,V=O-K,h=p+K,s=p-K;else O=T+I,V=O+K,h=p-K,s=p+K;D=O}else{if(q==="left")V=T+Math.max(M,w)+K;else if(q==="right")V=T+I-Math.max(F,z)-K;else V=this.caretX;if(N==="top")h=P,p=h-K,O=V-K,D=V+K;else h=P+A,p=h+K,O=V+K,D=V-K;s=h}return{x1:O,x2:V,x3:D,y1:h,y2:p,y3:s}}drawTitle(Q,J,X){let q=this.title,N=q.length,K,H,M;if(N){let F=b9(X.rtl,this.x,this.width);Q.x=x3(this,X.titleAlign,X),J.textAlign=F.textAlign(X.titleAlign),J.textBaseline="middle",K=i1(X.titleFont),H=X.titleSpacing,J.fillStyle=X.titleColor,J.font=K.string;for(M=0;M<N;++M)if(J.fillText(q[M],F.x(Q.x),Q.y+K.lineHeight/2),Q.y+=K.lineHeight+H,M+1===N)Q.y+=X.titleMarginBottom-H}}_drawColorBox(Q,J,X,q,N){let K=this.labelColors[X],H=this.labelPointStyles[X],{boxHeight:M,boxWidth:F}=N,w=i1(N.bodyFont),z=x3(this,"left",N),T=q.x(z),P=M<w.lineHeight?(w.lineHeight-M)/2:0,I=J.y+P;if(N.usePointStyle){let A={radius:Math.min(F,M)/2,pointStyle:H.pointStyle,rotation:H.rotation,borderWidth:1},O=q.leftForLtr(T,F)+F/2,V=I+M/2;Q.strokeStyle=N.multiKeyBackground,Q.fillStyle=N.multiKeyBackground,v3(Q,A,O,V),Q.strokeStyle=K.borderColor,Q.fillStyle=K.backgroundColor,v3(Q,A,O,V)}else{Q.lineWidth=a0(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(T,F),O=q.leftForLtr(q.xPlus(T,1),F-2),V=j2(K.borderRadius);if(Object.values(V).some((D)=>D!==0))Q.beginPath(),Q.fillStyle=N.multiKeyBackground,N$(Q,{x:A,y:I,w:F,h:M,radius:V}),Q.fill(),Q.stroke(),Q.fillStyle=K.backgroundColor,Q.beginPath(),N$(Q,{x:O,y:I+1,w:F-2,h:M-2,radius:V}),Q.fill();else Q.fillStyle=N.multiKeyBackground,Q.fillRect(A,I,F,M),Q.strokeRect(A,I,F,M),Q.fillStyle=K.backgroundColor,Q.fillRect(O,I+1,F-2,M-2)}Q.fillStyle=this.labelTextColors[X]}drawBody(Q,J,X){let{body:q}=this,{bodySpacing:N,bodyAlign:K,displayColors:H,boxHeight:M,boxWidth:F,boxPadding:w}=X,z=i1(X.bodyFont),T=z.lineHeight,P=0,I=b9(X.rtl,this.x,this.width),A=function(t){J.fillText(t,I.x(Q.x+P),Q.y+T/2),Q.y+=T+N},O=I.textAlign(K),V,D,h,p,s,o,Q0;J.textAlign=K,J.textBaseline="middle",J.font=z.string,Q.x=x3(this,O,X),J.fillStyle=X.bodyColor,K1(this.beforeBody,A),P=H&&O!=="right"?K==="center"?F/2+w:F+2+w:0;for(p=0,o=q.length;p<o;++p){if(V=q[p],D=this.labelTextColors[p],J.fillStyle=D,K1(V.before,A),h=V.lines,H&&h.length)this._drawColorBox(J,Q,p,I,X),T=Math.max(z.lineHeight,M);for(s=0,Q0=h.length;s<Q0;++s)A(h[s]),T=z.lineHeight;K1(V.after,A)}P=0,T=z.lineHeight,K1(this.afterBody,A),Q.y-=N}drawFooter(Q,J,X){let q=this.footer,N=q.length,K,H;if(N){let M=b9(X.rtl,this.x,this.width);Q.x=x3(this,X.footerAlign,X),Q.y+=X.footerMarginTop,J.textAlign=M.textAlign(X.footerAlign),J.textBaseline="middle",K=i1(X.footerFont),J.fillStyle=X.footerColor,J.font=K.string;for(H=0;H<N;++H)J.fillText(q[H],M.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:M}=Q,{width:F,height:w}=X,{topLeft:z,topRight:T,bottomLeft:P,bottomRight:I}=j2(q.cornerRadius);if(J.fillStyle=q.backgroundColor,J.strokeStyle=q.borderColor,J.lineWidth=q.borderWidth,J.beginPath(),J.moveTo(H+z,M),K==="top")this.drawCaret(Q,J,X,q);if(J.lineTo(H+F-T,M),J.quadraticCurveTo(H+F,M,H+F,M+T),K==="center"&&N==="right")this.drawCaret(Q,J,X,q);if(J.lineTo(H+F,M+w-I),J.quadraticCurveTo(H+F,M+w,H+F-I,M+w),K==="bottom")this.drawCaret(Q,J,X,q);if(J.lineTo(H+P,M+w),J.quadraticCurveTo(H,M+w,H,M+w-P),K==="center"&&N==="left")this.drawCaret(Q,J,X,q);if(J.lineTo(H,M+z),J.quadraticCurveTo(H,M,H+z,M),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=zQ[Q.position].call(this,this._active,this._eventPosition);if(!K)return;let H=this._size=az(this,Q),M=Object.assign({},K,this._size),F=iz(J,Q,M),w=tz(Q,M,F,J);if(q._to!==w.x||N._to!==w.y)this.xAlign=F.xAlign,this.yAlign=F.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=R5(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),jU(Q,J.textDirection),N.y+=K.top,this.drawTitle(N,Q,J),this.drawBody(N,Q,J),this.drawFooter(N,Q,J),DU(Q,J.textDirection),Q.restore()}getActiveElements(){return this._active||[]}setActiveElements(Q,J){let X=this._active,q=Q.map(({datasetIndex:H,index:M})=>{let F=this.chart.getDatasetMeta(H);if(!F)throw Error("Cannot find a dataset at index "+H);return{datasetIndex:H,element:F.data[M],index:M}}),N=!qQ(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),M=J||!qQ(K,N)||H;if(M){if(this._active=K,q.enabled||q.external)this._eventPosition={x:Q.x,y:Q.y},this.update(!0,J)}return M}_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=zQ[N.position].call(this,Q,J);return K!==!1&&(X!==K.x||q!==K.y)}}var gT={id:"tooltip",_element:iU,positioners:zQ,afterInit(Q,J,X){if(X)Q.tooltip=new iU({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:yT},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 FS=(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 WS(Q,J,X,q){let N=Q.indexOf(J);if(N===-1)return FS(Q,J,X,q);let K=Q.lastIndexOf(J);return N!==K?X:N}var wS=(Q,J)=>Q===null?null:o5(Math.round(Q),0,J);function ZT(Q){let J=this.getLabels();if(Q>=0&&Q<J.length)return J[Q];return Q}class UK extends y9{static id="category";static defaults={ticks:{callback:ZT}};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($1(Q))return null;let X=this.getLabels();return J=isFinite(J)&&X[J]===Q?J:WS(X,Q,c0(J,Q),this._addedLabels),wS(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 ZT.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 RS(Q,J){let X=[],q=0.00000000000001,{bounds:N,step:K,min:H,max:M,precision:F,count:w,maxTicks:z,maxDigits:T,includeBounds:P}=Q,I=K||1,A=z-1,{min:O,max:V}=J,D=!$1(H),h=!$1(M),p=!$1(w),s=(V-O)/(T+1),o=BU((V-O)/A/I)*I,Q0,t,a,q0;if(o<0.00000000000001&&!D&&!h)return[{value:O},{value:V}];if(q0=Math.ceil(V/o)-Math.floor(O/o),q0>A)o=BU(q0*o/A/I)*I;if(!$1(F))Q0=Math.pow(10,F),o=Math.ceil(o*Q0)/Q0;if(N==="ticks")t=Math.floor(O/o)*o,a=Math.ceil(V/o)*o;else t=O,a=V;if(D&&h&&K&&mR((M-H)/K,o/1000))q0=Math.round(Math.min((M-H)/o,z)),o=(M-H)/q0,t=H,a=M;else if(p)t=D?H:t,a=h?M:a,q0=w-1,o=(a-t)/q0;else if(q0=(a-t)/o,q$(q0,Math.round(q0),o/1000))q0=Math.round(q0);else q0=Math.ceil(q0);let d=Math.max(MU(o),MU(t));Q0=Math.pow(10,$1(F)?d:F),t=Math.round(t*Q0)/Q0,a=Math.round(a*Q0)/Q0;let K0=0;if(D){if(P&&t!==H){if(X.push({value:H}),t<H)K0++;if(q$(Math.round((t+K0*o)*Q0)/Q0,H,QT(H,s,Q)))K0++}else if(t<H)K0++}for(;K0<q0;++K0){let L0=Math.round((t+K0*o)*Q0)/Q0;if(h&&L0>M)break;X.push({value:L0})}if(h&&P&&a!==M)if(X.length&&q$(X[X.length-1].value,M,QT(M,s,Q)))X[X.length-1].value=M;else X.push({value:M});else if(!h||a===M)X.push({value:a});return X}function QT(Q,J,{horizontal:X,minRotation:q}){let N=L8(q),K=(X?Math.sin(N):Math.cos(N))||0.001,H=0.75*J*(""+Q).length;return Math.min(J/K,H)}class LQ extends y9{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($1(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=(M)=>q=J?q:M,H=(M)=>N=X?N:M;if(Q){let M=G4(q),F=G4(N);if(M<0&&F<0)H(0);else if(M>0&&F>0)K(0)}if(q===N){let M=N===0?1:Math.abs(N*0.05);if(H(N+M),!Q)K(q-M)}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=RS(q,N);if(Q.bounds==="ticks")HU(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 j3(Q,this.chart.options.locale,this.options.ticks.format)}}class KK extends LQ{static id="linear";static defaults={ticks:{callback:YQ.formatters.numeric}};determineDataLimits(){let{min:Q,max:J}=this.getMinMax(!0);this.min=b1(Q)?Q:0,this.max=b1(J)?J:1,this.handleTickRangeOptions()}computeTickLimit(){let Q=this.isHorizontal(),J=Q?this.width:this.height,X=L8(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 PQ=(Q)=>Math.floor(T8(Q)),f9=(Q,J)=>Math.pow(10,PQ(Q)+J);function JT(Q){return Q/Math.pow(10,PQ(Q))===1}function GT(Q,J,X){let q=Math.pow(10,X),N=Math.floor(Q/q);return Math.ceil(J/q)-N}function zS(Q,J){let X=J-Q,q=PQ(X);while(GT(Q,J,q)>10)q++;while(GT(Q,J,q)<10)q--;return Math.min(q,PQ(Q))}function TS(Q,{min:J,max:X}){J=a5(Q.min,J);let q=[],N=PQ(J),K=zS(J,X),H=K<0?Math.pow(10,Math.abs(K)):1,M=Math.pow(10,K),F=N>K?Math.pow(10,N):0,w=Math.round((J-F)*H)/H,z=Math.floor((J-F)/M/10)*M*10,T=Math.floor((w-z)/Math.pow(10,K)),P=a5(Q.min,Math.round((F+z+T*Math.pow(10,K))*H)/H);while(P<X){if(q.push({value:P,major:JT(P),significand:T}),T>=10)T=T<15?15:20;else T++;if(T>=20)K++,T=2,H=K>=0?1:H;P=Math.round((F+z+T*Math.pow(10,K))*H)/H}let I=a5(Q.max,P);return q.push({value:I,major:JT(I),significand:T}),q}class LS extends y9{static id="logarithmic";static defaults={ticks:{callback:YQ.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=LQ.prototype.parse.apply(this,[Q,J]);if(X===0){this._zero=!0;return}return b1(X)&&X>0?X:null}determineDataLimits(){let{min:Q,max:J}=this.getMinMax(!0);if(this.min=b1(Q)?Math.max(0,Q):null,this.max=b1(J)?Math.max(0,J):null,this.options.beginAtZero)this._zero=!0;if(this._zero&&this.min!==this._suggestedMin&&!b1(this._userMin))this.min=Q===f9(this.min,0)?f9(this.min,-1):f9(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(f9(X,-1)),K(f9(q,1));if(X<=0)N(f9(q,-1));if(q<=0)K(f9(X,1));this.min=X,this.max=q}buildTicks(){let Q=this.options,J={min:this._userMin,max:this._userMax},X=TS(J,this);if(Q.bounds==="ticks")HU(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":j3(Q,this.chart.options.locale,this.options.ticks.format)}configure(){let Q=this.min;super.configure(),this._startValue=T8(Q),this._valueRange=T8(this.max)-T8(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:(T8(Q)-this._startValue)/this._valueRange)}getValueForPixel(Q){let J=this.getDecimalForPixel(Q);return Math.pow(10,this._startValue+J*this._valueRange)}}function tU(Q){let J=Q.ticks;if(J.display&&Q.display){let X=R5(J.backdropPadding);return c0(J.font&&J.font.size,k1.font.size)+X.height}return 0}function PS(Q,J,X){return X=C1(X)?X:[X],{w:$z(Q,J.string,X),h:X.length*J.lineHeight}}function XT(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 _S(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,M=H.centerPointLabels?m1/K:0;for(let F=0;F<K;F++){let w=H.setContext(Q.getPointLabelContext(F));N[F]=w.padding;let z=Q.getPointPosition(F,Q.drawingArea+N[F],M),T=i1(w.font),P=PS(Q.ctx,T,Q._pointLabels[F]);q[F]=P;let I=r5(Q.getIndexAngle(F)+M),A=Math.round(E3(I)),O=XT(A,z.x,P.w,0,180),V=XT(A,z.y,P.h,90,270);CS(X,J,I,O,V)}Q.setCenterPoint(J.l-X.l,X.r-J.r,J.t-X.t,X.b-J.b),Q._pointLabelItems=OS(Q,q,N)}function CS(Q,J,X,q,N){let K=Math.abs(Math.sin(X)),H=Math.abs(Math.cos(X)),M=0,F=0;if(q.start<J.l)M=(J.l-q.start)/K,Q.l=Math.min(Q.l,J.l-M);else if(q.end>J.r)M=(q.end-J.r)/K,Q.r=Math.max(Q.r,J.r+M);if(N.start<J.t)F=(J.t-N.start)/H,Q.t=Math.min(Q.t,J.t-F);else if(N.end>J.b)F=(N.end-J.b)/H,Q.b=Math.max(Q.b,J.b+F)}function IS(Q,J,X){let q=Q.drawingArea,{extra:N,additionalAngle:K,padding:H,size:M}=X,F=Q.getPointPosition(J,q+N+H,K),w=Math.round(E3(r5(F.angle+s5))),z=SS(F.y,M.h,w),T=ES(w),P=AS(F.x,M.w,T);return{visible:!0,x:F.x,y:z,textAlign:T,left:P,top:z,right:P+M.w,bottom:z+M.h}}function VS(Q,J){if(!J)return!0;let{left:X,top:q,right:N,bottom:K}=Q;return!(f4({x:X,y:q},J)||f4({x:X,y:K},J)||f4({x:N,y:q},J)||f4({x:N,y:K},J))}function OS(Q,J,X){let q=[],N=Q._pointLabels.length,K=Q.options,{centerPointLabels:H,display:M}=K.pointLabels,F={extra:tU(K)/2,additionalAngle:H?m1/N:0},w;for(let z=0;z<N;z++){F.padding=X[z],F.size=J[z];let T=IS(Q,z,F);if(q.push(T),M==="auto"){if(T.visible=VS(T,w),T.visible)w=T}}return q}function ES(Q){if(Q===0||Q===180)return"center";else if(Q<180)return"left";return"right"}function AS(Q,J,X){if(X==="right")Q-=J;else if(X==="center")Q-=J/2;return Q}function SS(Q,J,X){if(X===90||X===270)Q-=J/2;else if(X>270||X<90)Q-=J;return Q}function jS(Q,J,X){let{left:q,top:N,right:K,bottom:H}=X,{backdropColor:M}=J;if(!$1(M)){let F=j2(J.borderRadius),w=R5(J.backdropPadding);Q.fillStyle=M;let z=q-w.left,T=N-w.top,P=K-q+w.width,I=H-N+w.height;if(Object.values(F).some((A)=>A!==0))Q.beginPath(),N$(Q,{x:z,y:T,w:P,h:I,radius:F}),Q.fill();else Q.fillRect(z,T,P,I)}}function DS(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));jS(X,H,K);let M=i1(H.font),{x:F,y:w,textAlign:z}=K;S2(X,Q._pointLabels[N],F,w+M.lineHeight/2,M,{color:H.color,textAlign:z,textBaseline:"middle"})}}function hT(Q,J,X,q){let{ctx:N}=Q;if(X)N.arc(Q.xCenter,Q.yCenter,J,0,n5);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 vS(Q,J,X,q,N){let K=Q.ctx,H=J.circular,{color:M,lineWidth:F}=J;if(!H&&!q||!M||!F||X<0)return;K.save(),K.strokeStyle=M,K.lineWidth=F,K.setLineDash(N.dash||[]),K.lineDashOffset=N.dashOffset,K.beginPath(),hT(Q,X,H,q),K.closePath(),K.stroke(),K.restore()}function bS(Q,J,X){return _8(Q,{label:X,index:J,type:"pointLabel"})}class kS extends LQ{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:YQ.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=R5(tU(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=b1(Q)&&!isNaN(Q)?Q:0,this.max=b1(J)&&!isNaN(J)?J:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/tU(this.options))}generateTickLabels(Q){LQ.prototype.generateTickLabels.call(this,Q),this._pointLabels=this.getLabels().map((J,X)=>{let q=T1(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)_S(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=n5/(this._pointLabels.length||1),X=this.options.startAngle||0;return r5(Q*J+L8(X))}getDistanceFromCenterForValue(Q){if($1(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($1(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 bS(this.getContext(),Q,X)}}getPointPosition(Q,J,X=0){let q=this.getIndexAngle(Q)-s5+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(),hT(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,M,F;if(J.pointLabels.display)DS(this,K);if(q.display)this.ticks.forEach((w,z)=>{if(z!==0||z===0&&this.min<0){M=this.getDistanceFromCenterForValue(w.value);let T=this.getContext(z),P=q.setContext(T),I=N.setContext(T);vS(this,P,M,K,I)}});if(X.display){Q.save();for(H=K-1;H>=0;H--){let w=X.setContext(this.getPointLabelContext(H)),{color:z,lineWidth:T}=w;if(!T||!z)continue;Q.lineWidth=T,Q.strokeStyle=z,Q.setLineDash(w.borderDash),Q.lineDashOffset=w.borderDashOffset,M=this.getDistanceFromCenterForValue(J.reverse?this.min:this.max),F=this.getPointPosition(H,M),Q.beginPath(),Q.moveTo(this.xCenter,this.yCenter),Q.lineTo(F.x,F.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,M)=>{if(M===0&&this.min>=0&&!J.reverse)return;let F=X.setContext(this.getContext(M)),w=i1(F.font);if(N=this.getDistanceFromCenterForValue(this.ticks[M].value),F.showLabelBackdrop){Q.font=w.string,K=Q.measureText(H.label).width,Q.fillStyle=F.backdropColor;let z=R5(F.backdropPadding);Q.fillRect(-K/2-z.left,-N-w.size/2-z.top,K+z.width,w.size+z.height)}S2(Q,H.label,0,-N,w,{color:F.color,strokeColor:F.textStrokeColor,strokeWidth:F.textStrokeWidth})}),Q.restore()}drawTitle(){}}var s3={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}},t5=Object.keys(s3);function qT(Q,J){return Q-J}function YT(Q,J){if($1(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(!b1(H))H=typeof q==="string"?X.parse(H,q):X.parse(H);if(H===null)return null;if(N)H=N==="week"&&(Y$(K)||K===!0)?X.startOf(H,"isoWeek",K):X.startOf(H,N);return+H}function NT(Q,J,X,q){let N=t5.length;for(let K=t5.indexOf(Q);K<N-1;++K){let H=s3[t5[K]],M=H.steps?H.steps:Number.MAX_SAFE_INTEGER;if(H.common&&Math.ceil((X-J)/(M*H.size))<=q)return t5[K]}return t5[N-1]}function fS(Q,J,X,q,N){for(let K=t5.length-1;K>=t5.indexOf(X);K--){let H=t5[K];if(s3[H].common&&Q._adapter.diff(N,q,H)>=J-1)return H}return t5[X?t5.indexOf(X):0]}function yS(Q){for(let J=t5.indexOf(Q)+1,X=t5.length;J<X;++J)if(s3[t5[J]].common)return t5[J]}function UT(Q,J,X){if(!X)Q[J]=!0;else if(X.length){let{lo:q,hi:N}=A3(X,J),K=X[q]>=J?X[q]:X[N];Q[K]=!0}}function gS(Q,J,X,q){let N=Q._adapter,K=+N.startOf(J[0].value,q),H=J[J.length-1].value,M,F;for(M=K;M<=H;M=+N.add(M,1,q))if(F=X[M],F>=0)J[F].major=!0;return J}function KT(Q,J,X){let q=[],N={},K=J.length,H,M;for(H=0;H<K;++H)M=J[H],N[M]=H,q.push({value:M,major:!1});return K===0||!X?q:gS(Q,q,N,X)}class eU extends y9{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 zE._date(Q.adapters.date);q.init(J),G$(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 YT(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 M(F){if(!K&&!isNaN(F.min))q=Math.min(q,F.min);if(!H&&!isNaN(F.max))N=Math.max(N,F.max)}if(!K||!H){if(M(this._getLabelBounds()),Q.bounds!=="ticks"||Q.ticks.source!=="labels")M(this.getMinMax(!1))}q=b1(q)&&!isNaN(q)?q:+J.startOf(Date.now(),X),N=b1(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=lR(q,N,K);if(this._unit=J.unit||(X.autoSkip?NT(J.minUnit,this.min,this.max,this._getLabelCapacity(N)):fS(this,H.length,J.minUnit,this.min,this.max)),this._majorUnit=!X.major.enabled||this._unit==="year"?void 0:yS(this._unit),this.initOffsets(q),Q.reverse)H.reverse();return KT(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=o5(J,0,K),X=o5(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||NT(N.minUnit,J,X,this._getLabelCapacity(J)),H=c0(q.ticks.stepSize,1),M=K==="week"?N.isoWeekday:!1,F=Y$(M)||M===!0,w={},z=J,T,P;if(F)z=+Q.startOf(z,"isoWeek",M);if(z=+Q.startOf(z,F?"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(T=z,P=0;T<X;T=+Q.add(T,H,K),P++)UT(w,T,I);if(T===X||q.bounds==="ticks"||P===1)UT(w,T,I);return Object.keys(w).sort(qT).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 T1(K,[Q,J,X],this);let H=N.time.displayFormats,M=this._unit,F=this._majorUnit,w=M&&H[M],z=F&&H[F],T=X[J],P=F&&z&&T&&T.major;return this._adapter.format(Q,q||(P?z: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=L8(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,KT(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(YT(this,q[J]));return this._cache.labels=this._normalized?Q:this.normalize(Q)}normalize(Q){return wU(Q.sort(qT))}}function m3(Q,J,X){let q=0,N=Q.length-1,K,H,M,F;if(X){if(J>=Q[q].pos&&J<=Q[N].pos)({lo:q,hi:N}=V2(Q,"pos",J));({pos:K,time:M}=Q[q]),{pos:H,time:F}=Q[N]}else{if(J>=Q[q].time&&J<=Q[N].time)({lo:q,hi:N}=V2(Q,"time",J));({time:K,pos:M}=Q[q]),{time:H,pos:F}=Q[N]}let w=H-K;return w?M+(F-M)*(J-K)/w:M}class hS extends eU{static id="timeseries";static defaults=eU.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=m3(J,this.min),this._tableRange=m3(J,this.max)-this._minPos,super.initOffsets(Q)}buildLookupTable(Q){let{min:J,max:X}=this,q=[],N=[],K,H,M,F,w;for(K=0,H=Q.length;K<H;++K)if(F=Q[K],F>=J&&F<=X)q.push(F);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],M=q[K-1],F=q[K],Math.round((w+M)/2)!==F)N.push({time:F,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(m3(this._table,Q)-this._minPos)/this._tableRange}getValueForPixel(Q){let J=this._offsets,X=this.getDecimalForPixel(Q)/J.factor-J.end;return m3(this._table,X*this._tableRange+this._minPos,!0)}}g9.register(UK,KK,qK,U$,XK,fT,gT,kT,vT);var dP=i(lT(),1);var j8=i(I1(),1);var i3=i(I1(),1);var o3=(...Q)=>Q.filter((J,X,q)=>{return Boolean(J)&&J.trim()!==""&&q.indexOf(J)===X}).join(" ").trim();var rT=(Q)=>Q.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();var sT=(Q)=>Q.replace(/^([A-Z])|[\s-_]+(\w)/g,(J,X,q)=>q?q.toUpperCase():X.toLowerCase());var MK=(Q)=>{let J=sT(Q);return J.charAt(0).toUpperCase()+J.slice(1)};var CQ=i(I1(),1);var a3={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 nT=(Q)=>{for(let J in Q)if(J.startsWith("aria-")||J==="role"||J==="title")return!0;return!1};var B$=i(I1(),1),lS=B$.createContext({});var oT=()=>B$.useContext(lS);var aT=CQ.forwardRef(({color:Q,size:J,strokeWidth:X,absoluteStrokeWidth:q,className:N="",children:K,iconNode:H,...M},F)=>{let{size:w=24,strokeWidth:z=2,absoluteStrokeWidth:T=!1,color:P="currentColor",className:I=""}=oT()??{},A=q??T?Number(X??z)*24/Number(J??w):X??z;return CQ.createElement("svg",{ref:F,...a3,width:J??w??a3.width,height:J??w??a3.height,stroke:Q??P,strokeWidth:A,className:o3("lucide",I,N),...!K&&!nT(M)&&{"aria-hidden":"true"},...M},[...H.map(([O,V])=>CQ.createElement(O,V)),...Array.isArray(K)?K:[K]])});var E0=(Q,J)=>{let X=i3.forwardRef(({className:q,...N},K)=>i3.createElement(aT,{ref:K,iconNode:J,className:o3(`lucide-${rT(MK(Q))}`,`lucide-${Q}`,q),...N}));return X.displayName=MK(Q),X};var rS=[["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=E0("circle-alert",rS);var sS=[["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"}]],IQ=E0("activity",sS);var nS=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],VQ=E0("check",nS);var oS=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],OQ=E0("chevron-down",oS);var aS=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],EQ=E0("chevron-up",aS);var iS=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],AQ=E0("clock",iS);var tS=[["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"}]],u9=E0("coins",tS);var eS=[["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"}]],SQ=E0("copy",eS);var $j=[["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"}]],jQ=E0("cpu",$j);var Zj=[["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"}]],DQ=E0("folder",Zj);var Qj=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],vQ=E0("gauge",Qj);var Jj=[["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"}]],bQ=E0("hash",Jj);var Gj=[["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"}]],kQ=E0("inbox",Gj);var Xj=[["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"}]],fQ=E0("layout-dashboard",Xj);var qj=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],yQ=E0("menu",qj);var Yj=[["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"}]],gQ=E0("monitor",Yj);var Nj=[["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"}]],hQ=E0("moon",Nj);var Uj=[["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"}]],uQ=E0("refresh-cw",Uj);var Kj=[["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"}]],xQ=E0("smile",Kj);var Bj=[["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"}]],mQ=E0("star",Bj);var Hj=[["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"}]],dQ=E0("sun",Hj);var Mj=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],pQ=E0("trending-up",Mj);var Fj=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],x9=E0("x",Fj);var Wj=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],cQ=E0("zap",Wj);var RL=i(I1(),1);var lQ=[{id:"overview",label:"Overview",icon:fQ},{id:"requests",label:"Requests",icon:IQ},{id:"errors",label:"Errors",icon:b2},{id:"models",label:"Models",icon:jQ},{id:"costs",label:"Costs",icon:u9},{id:"behavior",label:"Behavior",shortLabel:"Behavior",icon:xQ},{id:"projects",label:"Projects",icon:DQ},{id:"gain",label:"Gain",icon:pQ}];var m6=i(M0(),1);function FK({activeSection:Q,onSectionChange:J,className:X=""}){return m6.jsxDEV("aside",{className:`stats-nav-rail ${X}`,children:[m6.jsxDEV("div",{className:"stats-nav-rail-header",children:m6.jsxDEV("div",{className:"stats-logo-container",children:[m6.jsxDEV("span",{className:"stats-logo-text",children:"OH MY PI"},void 0,!1,void 0,this),m6.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),m6.jsxDEV("nav",{className:"stats-nav-rail-menu",children:lQ.map((q)=>{let N=q.id===Q,K=q.icon;return m6.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:[m6.jsxDEV(K,{size:16,className:"stats-nav-rail-item-icon"},void 0,!1,void 0,this),m6.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),m6.jsxDEV("div",{className:"stats-nav-rail-footer",children:m6.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 WK=i(M0(),1),Rj=[{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 iT({value:Q,onChange:J,className:X=""}){return WK.jsxDEV("div",{className:`stats-range-control ${X}`,role:"radiogroup","aria-label":"Select time range",children:Rj.map((q)=>{let N=q.value===Q;return WK.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 wK=i(I1(),1);class tT extends Error{status;endpoint;constructor(Q,J,X){super(X);this.name="ApiError",this.status=Q,this.endpoint=J}}async function u4(Q,J){let X=await fetch(Q,J);if(!X.ok)throw new tT(X.status,Q,`HTTP error ${X.status} on ${Q}`);return X.json()}async function eT(Q="24h",J){return u4(`/api/stats/overview?range=${encodeURIComponent(Q)}`,{signal:J})}async function $L(Q="24h",J){return u4(`/api/stats/model-dashboard?range=${encodeURIComponent(Q)}`,{signal:J})}async function ZL(Q="24h",J){return u4(`/api/stats/costs?range=${encodeURIComponent(Q)}`,{signal:J})}async function t3(Q=50,J){return u4(`/api/stats/recent?limit=${Q}`,{signal:J})}async function QL(Q=50,J){return u4(`/api/stats/errors?limit=${Q}`,{signal:J})}async function JL(Q,J){return u4(`/api/request/${Q}`,{signal:J})}async function GL(Q){return u4("/api/sync",{signal:Q})}async function XL(Q="24h",J){return u4(`/api/stats/behavior?range=${encodeURIComponent(Q)}`,{signal:J})}async function qL(Q="24h",J){return u4(`/api/stats/folders?range=${encodeURIComponent(Q)}`,{signal:J})}async function YL(Q="24h",J,X){let q=new URLSearchParams({range:Q});if(J)q.set("project",J);return u4(`/api/stats/gain?${q}`,{signal:X})}var rQ=i(M0(),1);function NL({onSyncStart:Q,onSyncComplete:J,className:X=""}){let[q,N]=wK.useState(!1),[K,H]=wK.useState(null),M=async()=>{if(q)return;if(N(!0),H(null),Q)Q();try{let F=await GL(),w={processed:typeof F?.processed==="number"?F.processed:0,files:typeof F?.files==="number"?F.files:0,totalMessages:typeof F?.totalMessages==="number"?F.totalMessages:0};if(H({type:"success",message:`Synced: ${w.processed} new request${w.processed===1?"":"s"} found.`}),J)J({success:!0,data:w})}catch(F){let w=F instanceof Error?F.message:String(F);if(H({type:"error",message:`Sync failed: ${w}`}),J)J({success:!1,error:w})}finally{N(!1)}};return rQ.jsxDEV("div",{className:`stats-sync-container ${X}`,children:[K&&rQ.jsxDEV("span",{className:"stats-sync-status-msg","data-type":K.type,children:K.message},void 0,!1,void 0,this),rQ.jsxDEV("button",{type:"button",onClick:M,disabled:q,className:"stats-button stats-button-primary stats-sync-btn","aria-busy":q,children:[rQ.jsxDEV(uQ,{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 e3=i(I1(),1),UL="omp-stats-theme",KL="(prefers-color-scheme: dark)";function zj(){if(typeof localStorage>"u")return"system";let Q=localStorage.getItem(UL);return Q==="light"||Q==="dark"||Q==="system"?Q:"system"}function BL(){if(typeof window>"u")return"dark";return window.matchMedia(KL).matches?"dark":"light"}var d9=zj(),sQ=d9==="system"?BL():d9,RK=new Set;function HL(){for(let Q of RK)Q()}function zK(){if(sQ=d9==="system"?BL():d9,typeof document<"u")document.documentElement.dataset.theme=sQ,document.documentElement.style.colorScheme=sQ}if(typeof window<"u")zK(),window.matchMedia(KL).addEventListener("change",()=>{if(d9==="system")zK(),HL()});function Tj(Q){if(d9=Q,typeof localStorage<"u")localStorage.setItem(UL,Q);zK(),HL()}function TK(Q){return RK.add(Q),()=>RK.delete(Q)}function d6(){return e3.useSyncExternalStore(TK,()=>sQ,()=>"dark")}function ML(){let Q=e3.useSyncExternalStore(TK,()=>d9,()=>"system"),J=e3.useSyncExternalStore(TK,()=>sQ,()=>"dark");return{preference:Q,resolved:J,setPreference:Tj}}var LK=i(M0(),1),Lj={system:"light",light:"dark",dark:"system"},Pj={system:gQ,light:dQ,dark:hQ},FL={system:"System theme",light:"Light theme",dark:"Dark theme"};function WL(){let{preference:Q,setPreference:J}=ML(),X=Pj[Q];return LK.jsxDEV("button",{type:"button",className:"stats-theme-toggle",onClick:()=>J(Lj[Q]),"aria-label":`${FL[Q]} (click to switch)`,title:`${FL[Q]} — click to switch`,children:LK.jsxDEV(X,{size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var p6=i(M0(),1);function wL({activeSection:Q,range:J,onRangeChange:X,updatedAt:q,onSyncStart:N,onSyncComplete:K,onMenuToggle:H,className:M=""}){let w=lQ.find((T)=>T.id===Q)?.label||"Observability",z=(T)=>{if(!T)return"Not updated";return`Updated ${new Date(T).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"})}`};return p6.jsxDEV("header",{className:`stats-top-bar ${M}`,children:[p6.jsxDEV("div",{className:"stats-top-bar-left",children:[H&&p6.jsxDEV("button",{type:"button",onClick:H,className:"stats-mobile-menu-btn","aria-label":"Open navigation menu",children:p6.jsxDEV(yQ,{size:20},void 0,!1,void 0,this)},void 0,!1,void 0,this),p6.jsxDEV("h1",{className:"stats-page-title",children:w},void 0,!1,void 0,this)]},void 0,!0,void 0,this),p6.jsxDEV("div",{className:"stats-top-bar-right",children:[p6.jsxDEV("div",{className:"stats-top-bar-meta",children:p6.jsxDEV("span",{className:"stats-last-updated",title:q?new Date(q).toLocaleString():void 0,children:z(q)},void 0,!1,void 0,this)},void 0,!1,void 0,this),p6.jsxDEV(iT,{value:J,onChange:X},void 0,!1,void 0,this),p6.jsxDEV(WL,{},void 0,!1,void 0,this),p6.jsxDEV(NL,{onSyncStart:N,onSyncComplete:K},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var V5=i(M0(),1);function zL({activeSection:Q,onSectionChange:J,range:X,onRangeChange:q,updatedAt:N,onSyncStart:K,onSyncComplete:H,children:M}){let[F,w]=RL.useState(!1),z=(T)=>{J(T),w(!1)};return V5.jsxDEV("div",{className:"stats-app-container",children:[V5.jsxDEV(FK,{activeSection:Q,onSectionChange:z,className:"stats-desktop-nav"},void 0,!1,void 0,this),F&&V5.jsxDEV("div",{className:"stats-mobile-drawer-overlay",onClick:()=>w(!1),role:"presentation",children:V5.jsxDEV("div",{className:"stats-mobile-drawer",onClick:(T)=>T.stopPropagation(),role:"dialog","aria-modal":"true","aria-label":"Navigation menu",children:[V5.jsxDEV("div",{className:"stats-mobile-drawer-header",children:[V5.jsxDEV("div",{className:"stats-logo-container",children:[V5.jsxDEV("span",{className:"stats-logo-text",children:"OH MY PI"},void 0,!1,void 0,this),V5.jsxDEV("span",{className:"stats-logo-subtext",children:"Observability"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),V5.jsxDEV("button",{type:"button",onClick:()=>w(!1),className:"stats-drawer-close-btn","aria-label":"Close navigation menu",children:V5.jsxDEV(x9,{size:18},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),V5.jsxDEV(FK,{activeSection:Q,onSectionChange:z,className:"stats-mobile-nav"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),V5.jsxDEV("div",{className:"stats-main-pane",children:[V5.jsxDEV(wL,{activeSection:Q,range:X,onRangeChange:q,updatedAt:N,onSyncStart:K,onSyncComplete:H,onMenuToggle:()=>w(!0)},void 0,!1,void 0,this),V5.jsxDEV("main",{className:"stats-content-area",children:V5.jsxDEV("div",{className:"stats-content-inner",children:M},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 O8=i(I1(),1),_j=["overview","requests","errors","models","costs","behavior","projects","gain"],TL=["1h","24h","7d","30d","90d","all"];function PK(Q){let J=Q.replace(/^#\/?/,""),[X,q]=J.split("?"),N=_j.includes(X)?X:"overview",K="24h";if(q){let M=new URLSearchParams(q).get("range");if(TL.includes(M))K=M}return{section:N,range:K}}function LL(){let[Q,J]=O8.useState(()=>PK(window.location.hash));O8.useEffect(()=>{let K=()=>{J(PK(window.location.hash))};return window.addEventListener("hashchange",K),()=>{window.removeEventListener("hashchange",K)}},[]);let X=O8.useCallback((K,H)=>{window.location.hash=`/${K}?range=${H}`},[]),q=O8.useCallback((K)=>{X(K,Q.range)},[Q.range,X]),N=O8.useCallback((K)=>{let H=TL.includes(K)?K:"24h";X(Q.section,H)},[Q.section,X]);return O8.useEffect(()=>{let K=window.location.hash,H=PK(K),M=`#/${H.section}?range=${H.range}`;if(K!==M)window.location.hash=`/${H.section}?range=${H.range}`},[]),{section:Q.section,setSection:q,range:Q.range,setRange:N}}var Cj=Math.pow(10,8)*24*60*60*1000,Rn1=-Cj,$X=604800000,PL=86400000;var nQ=43200,_K=1440;var CK=Symbol.for("constructDateFrom");function O5(Q,J){if(typeof Q==="function")return Q(J);if(Q&&typeof Q==="object"&&CK in Q)return Q[CK](J);if(Q instanceof Date)return new Q.constructor(J);return new Date(J)}function Q1(Q,J){return O5(J||Q,Q)}var Ij={};function x4(){return Ij}function E8(Q,J){let X=x4(),q=J?.weekStartsOn??J?.locale?.options?.weekStartsOn??X.weekStartsOn??X.locale?.options?.weekStartsOn??0,N=Q1(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 p9(Q,J){return E8(Q,{...J,weekStartsOn:1})}function ZX(Q,J){let X=Q1(Q,J?.in),q=X.getFullYear(),N=O5(X,0);N.setFullYear(q+1,0,4),N.setHours(0,0,0,0);let K=p9(N),H=O5(X,0);H.setFullYear(q,0,4),H.setHours(0,0,0,0);let M=p9(H);if(X.getTime()>=K.getTime())return q+1;else if(X.getTime()>=M.getTime())return q;else return q-1}function H$(Q){let J=Q1(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 k2(Q,...J){let X=O5.bind(null,Q||J.find((q)=>typeof q==="object"));return J.map(X)}function IK(Q,J){let X=Q1(Q,J?.in);return X.setHours(0,0,0,0),X}function _L(Q,J,X){let[q,N]=k2(X?.in,Q,J),K=IK(q),H=IK(N),M=+K-H$(K),F=+H-H$(H);return Math.round((M-F)/PL)}function CL(Q,J){let X=ZX(Q,J),q=O5(J?.in||Q,0);return q.setFullYear(X,0,4),q.setHours(0,0,0,0),p9(q)}function M$(Q,J){let X=+Q1(Q)-+Q1(J);if(X<0)return-1;else if(X>0)return 1;return X}function IL(Q){return O5(Q,Date.now())}function VL(Q){return Q instanceof Date||typeof Q==="object"&&Object.prototype.toString.call(Q)==="[object Date]"}function OL(Q){return!(!VL(Q)&&typeof Q!=="number"||isNaN(+Q1(Q)))}function EL(Q,J,X){let[q,N]=k2(X?.in,Q,J),K=q.getFullYear()-N.getFullYear(),H=q.getMonth()-N.getMonth();return K*12+H}function AL(Q){return(J)=>{let q=(Q?Math[Q]:Math.trunc)(J);return q===0?0:q}}function SL(Q,J){return+Q1(Q)-+Q1(J)}function jL(Q,J){let X=Q1(Q,J?.in);return X.setHours(23,59,59,999),X}function DL(Q,J){let X=Q1(Q,J?.in),q=X.getMonth();return X.setFullYear(X.getFullYear(),q+1,0),X.setHours(23,59,59,999),X}function vL(Q,J){let X=Q1(Q,J?.in);return+jL(X,J)===+DL(X,J)}function bL(Q,J,X){let[q,N,K]=k2(X?.in,Q,Q,J),H=M$(N,K),M=Math.abs(EL(N,K));if(M<1)return 0;if(N.getMonth()===1&&N.getDate()>27)N.setDate(30);N.setMonth(N.getMonth()-H*M);let F=M$(N,K)===-H;if(vL(q)&&M===1&&M$(q,K)===1)F=!1;let w=H*(M-+F);return w===0?0:w}function kL(Q,J,X){let q=SL(Q,J)/1000;return AL(X?.roundingMethod)(q)}function fL(Q,J){let X=Q1(Q,J?.in);return X.setFullYear(X.getFullYear(),0,1),X.setHours(0,0,0,0),X}var Vj={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"}},yL=(Q,J,X)=>{let q,N=Vj[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 QX(Q){return(J={})=>{let X=J.width?String(J.width):Q.defaultWidth;return Q.formats[X]||Q.formats[Q.defaultWidth]}}var Oj={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Ej={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Aj={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},gL={date:QX({formats:Oj,defaultWidth:"full"}),time:QX({formats:Ej,defaultWidth:"full"}),dateTime:QX({formats:Aj,defaultWidth:"full"})};var Sj={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},hL=(Q,J,X,q)=>Sj[Q];function F$(Q){return(J,X)=>{let q=X?.context?String(X.context):"standalone",N;if(q==="formatting"&&Q.formattingValues){let H=Q.defaultFormattingWidth||Q.defaultWidth,M=X?.width?String(X.width):H;N=Q.formattingValues[M]||Q.formattingValues[H]}else{let H=Q.defaultWidth,M=X?.width?String(X.width):Q.defaultWidth;N=Q.values[M]||Q.values[H]}let K=Q.argumentCallback?Q.argumentCallback(J):J;return N[K]}}var jj={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Dj={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},vj={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"]},bj={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"]},kj={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"}},fj={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"}},yj=(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"},uL={ordinalNumber:yj,era:F$({values:jj,defaultWidth:"wide"}),quarter:F$({values:Dj,defaultWidth:"wide",argumentCallback:(Q)=>Q-1}),month:F$({values:vj,defaultWidth:"wide"}),day:F$({values:bj,defaultWidth:"wide"}),dayPeriod:F$({values:kj,defaultWidth:"wide",formattingValues:fj,defaultFormattingWidth:"wide"})};function W$(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],M=q&&Q.parsePatterns[q]||Q.parsePatterns[Q.defaultParseWidth],F=Array.isArray(M)?hj(M,(T)=>T.test(H)):gj(M,(T)=>T.test(H)),w;w=Q.valueCallback?Q.valueCallback(F):F,w=X.valueCallback?X.valueCallback(w):w;let z=J.slice(H.length);return{value:w,rest:z}}}function gj(Q,J){for(let X in Q)if(Object.prototype.hasOwnProperty.call(Q,X)&&J(Q[X]))return X;return}function hj(Q,J){for(let X=0;X<Q.length;X++)if(J(Q[X]))return X;return}function xL(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 M=J.slice(N.length);return{value:H,rest:M}}}var uj=/^(\d+)(th|st|nd|rd)?/i,xj=/\d+/i,mj={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},dj={any:[/^b/i,/^(a|c)/i]},pj={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},cj={any:[/1/i,/2/i,/3/i,/4/i]},lj={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},rj={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]},sj={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},nj={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]},oj={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},aj={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}},mL={ordinalNumber:xL({matchPattern:uj,parsePattern:xj,valueCallback:(Q)=>parseInt(Q,10)}),era:W$({matchPatterns:mj,defaultMatchWidth:"wide",parsePatterns:dj,defaultParseWidth:"any"}),quarter:W$({matchPatterns:pj,defaultMatchWidth:"wide",parsePatterns:cj,defaultParseWidth:"any",valueCallback:(Q)=>Q+1}),month:W$({matchPatterns:lj,defaultMatchWidth:"wide",parsePatterns:rj,defaultParseWidth:"any"}),day:W$({matchPatterns:sj,defaultMatchWidth:"wide",parsePatterns:nj,defaultParseWidth:"any"}),dayPeriod:W$({matchPatterns:oj,defaultMatchWidth:"any",parsePatterns:aj,defaultParseWidth:"any"})};var oQ={code:"en-US",formatDistance:yL,formatLong:gL,formatRelative:hL,localize:uL,match:mL,options:{weekStartsOn:0,firstWeekContainsDate:1}};function dL(Q,J){let X=Q1(Q,J?.in);return _L(X,fL(X))+1}function pL(Q,J){let X=Q1(Q,J?.in),q=+p9(X)-+CL(X);return Math.round(q/$X)+1}function JX(Q,J){let X=Q1(Q,J?.in),q=X.getFullYear(),N=x4(),K=J?.firstWeekContainsDate??J?.locale?.options?.firstWeekContainsDate??N.firstWeekContainsDate??N.locale?.options?.firstWeekContainsDate??1,H=O5(J?.in||Q,0);H.setFullYear(q+1,0,K),H.setHours(0,0,0,0);let M=E8(H,J),F=O5(J?.in||Q,0);F.setFullYear(q,0,K),F.setHours(0,0,0,0);let w=E8(F,J);if(+X>=+M)return q+1;else if(+X>=+w)return q;else return q-1}function cL(Q,J){let X=x4(),q=J?.firstWeekContainsDate??J?.locale?.options?.firstWeekContainsDate??X.firstWeekContainsDate??X.locale?.options?.firstWeekContainsDate??1,N=JX(Q,J),K=O5(J?.in||Q,0);return K.setFullYear(N,0,q),K.setHours(0,0,0,0),E8(K,J)}function lL(Q,J){let X=Q1(Q,J?.in),q=+E8(X,J)-+cL(X,J);return Math.round(q/$X)+1}function Y1(Q,J){let X=Q<0?"-":"",q=Math.abs(Q).toString().padStart(J,"0");return X+q}var A8={y(Q,J){let X=Q.getFullYear(),q=X>0?X:1-X;return Y1(J==="yy"?q%100:q,J.length)},M(Q,J){let X=Q.getMonth();return J==="M"?String(X+1):Y1(X+1,2)},d(Q,J){return Y1(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 Y1(Q.getHours()%12||12,J.length)},H(Q,J){return Y1(Q.getHours(),J.length)},m(Q,J){return Y1(Q.getMinutes(),J.length)},s(Q,J){return Y1(Q.getSeconds(),J.length)},S(Q,J){let X=J.length,q=Q.getMilliseconds(),N=Math.trunc(q*Math.pow(10,X-3));return Y1(N,J.length)}};var w$={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},VK={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 A8.y(Q,J)},Y:function(Q,J,X,q){let N=JX(Q,q),K=N>0?N:1-N;if(J==="YY"){let H=K%100;return Y1(H,2)}if(J==="Yo")return X.ordinalNumber(K,{unit:"year"});return Y1(K,J.length)},R:function(Q,J){let X=ZX(Q);return Y1(X,J.length)},u:function(Q,J){let X=Q.getFullYear();return Y1(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 Y1(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 Y1(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 A8.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 Y1(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=lL(Q,q);if(J==="wo")return X.ordinalNumber(N,{unit:"week"});return Y1(N,J.length)},I:function(Q,J,X){let q=pL(Q);if(J==="Io")return X.ordinalNumber(q,{unit:"week"});return Y1(q,J.length)},d:function(Q,J,X){if(J==="do")return X.ordinalNumber(Q.getDate(),{unit:"date"});return A8.d(Q,J)},D:function(Q,J,X){let q=dL(Q);if(J==="Do")return X.ordinalNumber(q,{unit:"dayOfYear"});return Y1(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 Y1(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 Y1(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 Y1(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=w$.noon;else if(q===0)N=w$.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=w$.evening;else if(q>=12)N=w$.afternoon;else if(q>=4)N=w$.morning;else N=w$.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 A8.h(Q,J)},H:function(Q,J,X){if(J==="Ho")return X.ordinalNumber(Q.getHours(),{unit:"hour"});return A8.H(Q,J)},K:function(Q,J,X){let q=Q.getHours()%12;if(J==="Ko")return X.ordinalNumber(q,{unit:"hour"});return Y1(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 Y1(q,J.length)},m:function(Q,J,X){if(J==="mo")return X.ordinalNumber(Q.getMinutes(),{unit:"minute"});return A8.m(Q,J)},s:function(Q,J,X){if(J==="so")return X.ordinalNumber(Q.getSeconds(),{unit:"second"});return A8.s(Q,J)},S:function(Q,J){return A8.S(Q,J)},X:function(Q,J,X){let q=Q.getTimezoneOffset();if(q===0)return"Z";switch(J){case"X":return sL(q);case"XXXX":case"XX":return c9(q);case"XXXXX":case"XXX":default:return c9(q,":")}},x:function(Q,J,X){let q=Q.getTimezoneOffset();switch(J){case"x":return sL(q);case"xxxx":case"xx":return c9(q);case"xxxxx":case"xxx":default:return c9(q,":")}},O:function(Q,J,X){let q=Q.getTimezoneOffset();switch(J){case"O":case"OO":case"OOO":return"GMT"+rL(q,":");case"OOOO":default:return"GMT"+c9(q,":")}},z:function(Q,J,X){let q=Q.getTimezoneOffset();switch(J){case"z":case"zz":case"zzz":return"GMT"+rL(q,":");case"zzzz":default:return"GMT"+c9(q,":")}},t:function(Q,J,X){let q=Math.trunc(+Q/1000);return Y1(q,J.length)},T:function(Q,J,X){return Y1(+Q,J.length)}};function rL(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+Y1(K,2)}function sL(Q,J){if(Q%60===0)return(Q>0?"-":"+")+Y1(Math.abs(Q)/60,2);return c9(Q,J)}function c9(Q,J=""){let X=Q>0?"-":"+",q=Math.abs(Q),N=Y1(Math.trunc(q/60),2),K=Y1(q%60,2);return X+N+J+K}var nL=(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"})}},oL=(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"})}},ij=(Q,J)=>{let X=Q.match(/(P+)(p+)?/)||[],q=X[1],N=X[2];if(!N)return nL(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}}",nL(q,J)).replace("{{time}}",oL(N,J))},aL={p:oL,P:ij};var tj=/^D+$/,ej=/^Y+$/,$D=["D","DD","YY","YYYY"];function iL(Q){return tj.test(Q)}function tL(Q){return ej.test(Q)}function eL(Q,J,X){let q=ZD(Q,J,X);if(console.warn(q),$D.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 QD=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,JD=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,GD=/^'([^]*?)'?$/,XD=/''/g,qD=/[a-zA-Z]/;function X4(Q,J,X){let q=x4(),N=X?.locale??q.locale??oQ,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,M=Q1(Q,X?.in);if(!OL(M))throw RangeError("Invalid time value");let F=J.match(JD).map((z)=>{let T=z[0];if(T==="p"||T==="P"){let P=aL[T];return P(z,N.formatLong)}return z}).join("").match(QD).map((z)=>{if(z==="''")return{isToken:!1,value:"'"};let T=z[0];if(T==="'")return{isToken:!1,value:YD(z)};if(VK[T])return{isToken:!0,value:z};if(T.match(qD))throw RangeError("Format string contains an unescaped latin alphabet character `"+T+"`");return{isToken:!1,value:z}});if(N.localize.preprocessor)F=N.localize.preprocessor(M,F);let w={firstWeekContainsDate:K,weekStartsOn:H,locale:N};return F.map((z)=>{if(!z.isToken)return z.value;let T=z.value;if(!X?.useAdditionalWeekYearTokens&&tL(T)||!X?.useAdditionalDayOfYearTokens&&iL(T))eL(T,J,String(Q));let P=VK[T[0]];return P(M,T,N.localize,w)}).join("")}function YD(Q){let J=Q.match(GD);if(!J)return Q;return J[1].replace(XD,"'")}function $P(Q,J,X){let q=x4(),N=X?.locale??q.locale??oQ,K=2520,H=M$(Q,J);if(isNaN(H))throw RangeError("Invalid time value");let M=Object.assign({},X,{addSuffix:X?.addSuffix,comparison:H}),[F,w]=k2(X?.in,...H>0?[J,Q]:[Q,J]),z=kL(w,F),T=(H$(w)-H$(F))/1000,P=Math.round((z-T)/60),I;if(P<2)if(X?.includeSeconds)if(z<5)return N.formatDistance("lessThanXSeconds",5,M);else if(z<10)return N.formatDistance("lessThanXSeconds",10,M);else if(z<20)return N.formatDistance("lessThanXSeconds",20,M);else if(z<40)return N.formatDistance("halfAMinute",0,M);else if(z<60)return N.formatDistance("lessThanXMinutes",1,M);else return N.formatDistance("xMinutes",1,M);else if(P===0)return N.formatDistance("lessThanXMinutes",1,M);else return N.formatDistance("xMinutes",P,M);else if(P<45)return N.formatDistance("xMinutes",P,M);else if(P<90)return N.formatDistance("aboutXHours",1,M);else if(P<_K){let A=Math.round(P/60);return N.formatDistance("aboutXHours",A,M)}else if(P<2520)return N.formatDistance("xDays",1,M);else if(P<nQ){let A=Math.round(P/_K);return N.formatDistance("xDays",A,M)}else if(P<nQ*2)return I=Math.round(P/nQ),N.formatDistance("aboutXMonths",I,M);if(I=bL(w,F),I<12){let A=Math.round(P/nQ);return N.formatDistance("xMonths",A,M)}else{let A=I%12,O=Math.trunc(I/12);if(A<3)return N.formatDistance("aboutXYears",O,M);else if(A<9)return N.formatDistance("overXYears",O,M);else return N.formatDistance("almostXYears",O+1,M)}}function ZP(Q,J){return $P(Q,IL(Q),J)}var J5=i(I1(),1);var OK=i(QP(),1),P6=i(I1(),1);var GP="label";function JP(Q,J){if(typeof Q==="function")Q(J);else if(Q)Q.current=J}function UD(Q,J){let X=Q.options;if(X&&J)Object.assign(X,J)}function XP(Q,J){Q.labels=J}function qP(Q,J,X=GP){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 KD(Q,J=GP){let X={labels:[],datasets:[]};return XP(X,Q.labels),qP(X,Q.datasets,J),X}function BD(Q,J){let{height:X=150,width:q=300,redraw:N=!1,datasetIdKey:K,type:H,data:M,options:F,plugins:w=[],fallbackContent:z,updateMode:T,...P}=Q,I=P6.useRef(null),A=P6.useRef(null),O=()=>{if(!I.current)return;A.current=new g9(I.current,{type:H,data:KD(M,K),options:F&&{...F},plugins:w}),JP(J,A.current)},V=()=>{if(JP(J,null),A.current)A.current.destroy(),A.current=null};return P6.useEffect(()=>{if(!N&&A.current&&F)UD(A.current,F)},[N,F]),P6.useEffect(()=>{if(!N&&A.current)XP(A.current.config.data,M.labels)},[N,M.labels]),P6.useEffect(()=>{if(!N&&A.current&&M.datasets)qP(A.current.config.data,M.datasets,K)},[N,M.datasets]),P6.useEffect(()=>{if(!A.current)return;if(N)V(),setTimeout(O);else A.current.update(T)},[N,F,M.labels,M.datasets,T]),P6.useEffect(()=>{if(!A.current)return;V(),setTimeout(O)},[H]),P6.useEffect(()=>{return O(),()=>V()},[]),OK.jsx("canvas",{ref:I,role:"img",height:X,width:q,...P,children:z})}var HD=P6.forwardRef(BD);function YP(Q,J){return g9.register(J),P6.forwardRef((X,q)=>OK.jsx(HD,{...X,ref:q,type:Q}))}var e5=YP("line",QK),GX=YP("bar",ZK);var t1=["#ed4abf","#9b4dff","#5ad8e6","#62d394","#c77dff","#ff8fd1","#f5c14b","#ff6b7d"],g5={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 R$(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 M=H.dataset.label??q,F=H.parsed.y??0;return`${M}: ${N(F)}`},...K?{footer:K}:{}}}}}function z$(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 T$(Q){return{borderColor:Q,backgroundColor:`${Q}20`,fill:!0,tension:0,pointRadius:3,pointHoverRadius:4,borderWidth:2}}function XX(Q){return{backgroundColor:Q,borderColor:Q,borderWidth:0,borderRadius:4,maxBarThickness:56}}function L$(Q,J){return Q.datasets.map((X,q)=>({label:X.label,data:X.data,...J(q)}))}function qX(Q,J,X){if(Q.length===0)return{labels:[],datasets:[]};let{initBucket:q,accumulate:N,bucketToValue:K}=X,H=new Map;for(let F of Q){let w=H.get(F.timestamp)??q();N(w,F),H.set(F.timestamp,w)}let M=[...H.entries()].sort((F,w)=>F[0]-w[0]);return{labels:M.map(([F])=>X4(new Date(F),"MMM d")),datasets:[{label:J,data:M.map(([,F])=>K(F))}]}}function YX(Q,J){if(Q.length===0)return{labels:[],datasets:[]};let{topN:X=5,rankWeight:q,initBucket:N,accumulate:K,bucketToValue:H}=J,M=new Map;for(let D of Q){let h=`${D.model}::${D.provider}`,p=M.get(h);if(p)p.weight+=q(D);else M.set(h,{model:D.model,provider:D.provider,weight:q(D)})}let w=[...M.entries()].sort((D,h)=>h[1].weight-D[1].weight).slice(0,X),z=new Set(w.map(([D])=>D)),T=new Map;for(let[,{model:D}]of w)T.set(D,(T.get(D)??0)+1);let P=new Map;for(let[D,{model:h,provider:p}]of w)P.set(D,(T.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)=>!z.has(`${D.model}::${D.provider}`)))A.push("Other");let V=new Map;for(let D of I)V.set(D,{});for(let D of Q){let h=`${D.model}::${D.provider}`,p=z.has(h)?P.get(h)??D.model:"Other",s=V.get(D.timestamp);if(!s)continue;let o=s[p]??N();K(o,D),s[p]=o}return{labels:I.map((D)=>X4(new Date(D),"MMM d")),datasets:A.map((D)=>({label:D,data:I.map((h)=>{let p=V.get(h)?.[D];return p?H(p):0})}))}}var j1=i(M0(),1);function S8(Q){return{borderColor:Q,backgroundColor:"transparent",tension:0.4,pointRadius:0,borderWidth:2}}function NX({timestamps:Q,values:J,color:X}){let q={labels:Q.map((K)=>X4(new Date(K),"MMM d")),datasets:[{data:J,...S8(X)}]};return j1.jsxDEV(e5,{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 UX(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 NP(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 UP(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 KX({title:Q,subtitle:J,children:X}){return j1.jsxDEV("div",{className:"stats-panel overflow-hidden",children:[j1.jsxDEV("div",{className:"px-5 py-4 border-b border-[var(--border-subtle)]",children:[j1.jsxDEV("h3",{className:"text-sm font-semibold text-[var(--text-primary)]",children:Q},void 0,!1,void 0,this),J?j1.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),j1.jsxDEV("div",{className:"overflow-x-auto",children:X},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function MD(Q){if(Q==="right")return"text-right";if(Q==="center")return"text-center";return""}function BX({columns:Q,gridTemplate:J}){return j1.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)=>j1.jsxDEV("div",{className:MD(X.align),children:X.label},X.label,!1,void 0,this)),j1.jsxDEV("div",{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function HX({children:Q}){return j1.jsxDEV("div",{className:"max-h-[calc(100vh-300px)] overflow-y-auto",children:Q},void 0,!1,void 0,this)}function MX({model:Q,provider:J}){return j1.jsxDEV("div",{children:[j1.jsxDEV("div",{className:"font-medium text-[var(--text-primary)]",children:Q},void 0,!1,void 0,this),j1.jsxDEV("div",{className:"text-xs text-[var(--text-muted)]",children:J},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function FX({gridTemplate:Q,cells:J,trendCell:X,isExpanded:q,onToggle:N,expandedContent:K}){return j1.jsxDEV("div",{className:"border-t border-[var(--border-subtle)]",children:[j1.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:j1.jsxDEV("div",{className:"grid gap-3 items-center",style:{gridTemplateColumns:Q},children:[J,j1.jsxDEV("div",{className:"h-10",children:X},void 0,!1,void 0,this),j1.jsxDEV("div",{className:"flex justify-center text-[var(--text-muted)]",children:q?j1.jsxDEV(EQ,{size:16},void 0,!1,void 0,this):j1.jsxDEV(OQ,{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?j1.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 WX(){return j1.jsxDEV("div",{className:"text-[var(--text-muted)] text-center text-sm",children:"-"},void 0,!1,void 0,this)}function wX({message:Q="No data available"}){return j1.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 t0(Q){return Q.toLocaleString()}function m4(Q){return Q.toLocaleString(void 0,{notation:"compact"})}function d1(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 $6(Q,J=1){return`${(Q*100).toFixed(J)}%`}function E5(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 KP(Q){if(Q===null)return"-";return Q.toFixed(1)}function d4(Q){return ZP(new Date(Q),{addSuffix:!0})}function EK(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 z5=i(I1(),1),f2=new Map,FD=64;function T5(Q,J,X){let q=JSON.stringify(Q),[N,K]=z5.useState(()=>f2.get(q)?.data??null),[H,M]=z5.useState(null),[F,w]=z5.useState(()=>!f2.has(q)),[z,T]=z5.useState(!1),[P,I]=z5.useState(()=>f2.get(q)?.updatedAt??null),A=z5.useRef(J);A.current=J;let O=z5.useRef(q);O.current=q;let V=X?.enabled??!0,D=X?.pollMs,h=z5.useRef(null),p=z5.useRef(!1);p.current=N!==null;let s=z5.useCallback(async(Q0)=>{if(h.current)h.current.abort();let t=new AbortController;if(h.current=t,Q0)T(!0);else w(!0),K(null);M(null);try{let a=await A.current(t.signal);if(t.signal.aborted)return;if(f2.set(O.current,{data:a,updatedAt:Date.now()}),f2.size>FD){let q0=f2.keys().next().value;if(q0!==void 0)f2.delete(q0)}K(a),I(Date.now()),M(null)}catch(a){if(t.signal.aborted)return;M(a instanceof Error?a:Error(String(a)))}finally{if(!t.signal.aborted){if(w(!1),T(!1),h.current===t)h.current=null}}},[]);z5.useEffect(()=>{if(!V){w(!1),T(!1);return}let Q0=f2.get(q);if(Q0)K(Q0.data),I(Q0.updatedAt),w(!1),s(!0);else s(p.current);return()=>{if(h.current)h.current.abort(),h.current=null}},[q,V,s]),z5.useEffect(()=>{if(!V||!D)return;let Q0=setInterval(()=>{if(document.hidden)return;s(!0)},D);return()=>{clearInterval(Q0)}},[V,D,s]);let o=z5.useCallback(async()=>{await s(!0)},[s]);return{data:N,error:H,loading:F,refreshing:z,refetch:o,updatedAt:P}}var BP=3600000,RX=24*BP,WD=300000,HP={"1h":{windowLabel:"the last hour",trendLabel:"1h Trend",bucketMs:WD,bucketCount:12,tickFormat:"HH:mm"},"24h":{windowLabel:"the last 24 hours",trendLabel:"24h Trend",bucketMs:BP,bucketCount:24,tickFormat:"HH:mm"},"7d":{windowLabel:"the last 7 days",trendLabel:"7d Trend",bucketMs:RX,bucketCount:7,tickFormat:"MMM d"},"30d":{windowLabel:"the last 30 days",trendLabel:"30d Trend",bucketMs:RX,bucketCount:30,tickFormat:"MMM d"},"90d":{windowLabel:"the last 90 days",trendLabel:"90d Trend",bucketMs:RX,bucketCount:90,tickFormat:"MMM d"},all:{windowLabel:"all time",trendLabel:"Trend",bucketMs:RX,bucketCount:0,tickFormat:"MMM d"}};function aQ(Q){return HP[Q]}function AK(Q,J){return X4(new Date(Q),HP[J].tickFormat)}var wD=["main","subagent","advisor"];function MP(Q){let J=new Map;for(let M of Q)J.set(M.agentType,M);let X=(M)=>M.totalInputTokens+M.totalOutputTokens+M.totalCacheReadTokens+M.totalCacheWriteTokens,q=wD.map((M)=>J.get(M)).filter((M)=>M!==void 0),N=q.reduce((M,F)=>M+X(F),0),K=q.reduce((M,F)=>M+F.totalCost,0),H=q.map((M)=>{let F=X(M);return{agentType:M.agentType,tokens:F,requests:M.totalRequests,cost:M.totalCost,share:N>0?F/N:0}});return{totalTokens:N,totalCost:K,segments:H}}function FP(Q){let J=Q.reduce((M,F)=>M+F.cost,0),X=new Set(Q.map((M)=>M.timestamp)).size,q=X>0?J/X:0,N=new Map;for(let M of Q)N.set(M.model,(N.get(M.model)??0)+M.cost);let K="",H=0;for(let[M,F]of N)if(F>H)K=M,H=F;return{totalCost:J,avgDailyCost:q,topModelName:K,topModelCost:H}}function WP(Q,J){if(Q.length===0)return new Map;let X=aQ(J),q=X.bucketMs,N=X.bucketCount,K=N>0?(()=>{let F=Q.reduce((T,P)=>Math.max(T,P.timestamp),0),z=(F>0?F:Math.floor(Date.now()/q)*q)-(N-1)*q;return Array.from({length:N},(T,P)=>z+P*q)})():Array.from(new Set(Q.map((F)=>F.timestamp))).sort((F,w)=>F-w),H=new Map(K.map((F,w)=>[F,w])),M=new Map;for(let F of Q){let w=`${F.model}::${F.provider}`,z=M.get(w);if(!z)z={label:`${F.model} (${F.provider})`,data:K.map((P)=>({timestamp:P,avgTtftSeconds:null,avgTokensPerSecond:null,requests:0}))},M.set(w,z);let T=H.get(F.timestamp);if(T===void 0)continue;z.data[T]={timestamp:F.timestamp,avgTtftSeconds:F.avgTtft!==null?F.avgTtft/1000:null,avgTokensPerSecond:F.avgTokensPerSecond,requests:F.requests}}return M}function wP(Q,J){let X=Q.totalNegation+Q.totalRepetition+Q.totalBlame,q=new Map;for(let K of J){let H=`${K.model}::${K.provider}`,M=q.get(H),F=K.yelling+K.profanity+K.anguish+K.negation+K.repetition+K.blame;if(M)M.score+=F;else q.set(H,{model:K.model,provider:K.provider,score:F})}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 RP(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}))}var zX=i(M0(),1);function zP({message:Q="No data available",icon:J=kQ,className:X=""}){return zX.jsxDEV("div",{className:`stats-empty-state ${X}`,children:[zX.jsxDEV(J,{size:24,className:"stats-empty-state-icon","aria-hidden":"true"},void 0,!1,void 0,this),zX.jsxDEV("p",{className:"stats-empty-state-message",children:Q},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var P$=i(M0(),1);function TP({error:Q,onRetry:J,className:X=""}){return P$.jsxDEV("div",{className:`stats-error-state ${X}`,children:P$.jsxDEV("div",{className:"stats-error-state-content",children:[P$.jsxDEV("h4",{className:"stats-error-state-title",children:"Failed to load data"},void 0,!1,void 0,this),Q&&P$.jsxDEV("p",{className:"stats-error-state-message",children:Q.message},void 0,!1,void 0,this),J&&P$.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 LP=i(M0(),1);function Z6({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 LP.jsxDEV("div",{className:`stats-skeleton ${q}`,"data-variant":Q,style:N},void 0,!1,void 0,this)}var _6=i(M0(),1);function e1({loading:Q,error:J,data:X,empty:q=!1,emptyText:N="No data available",fallback:K,onRetry:H,children:M}){if(J&&X===null)return _6.jsxDEV(TP,{error:J,onRetry:H},void 0,!1,void 0,this);if(Q&&X===null){if(K)return _6.jsxDEV(_6.Fragment,{children:K},void 0,!1,void 0,this);return _6.jsxDEV("div",{className:"stats-boundary-skeleton",children:[_6.jsxDEV(Z6,{variant:"text",width:"60%",height:24,className:"mb-4"},void 0,!1,void 0,this),_6.jsxDEV(Z6,{variant:"rect",width:"100%",height:160,className:"mb-4"},void 0,!1,void 0,this),_6.jsxDEV(Z6,{variant:"text",width:"80%",height:20,className:"mb-2"},void 0,!1,void 0,this),_6.jsxDEV(Z6,{variant:"text",width:"40%",height:20},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}if(!Q&&(q||X===null))return _6.jsxDEV(zP,{message:N},void 0,!1,void 0,this);return _6.jsxDEV(_6.Fragment,{children:M},void 0,!1,void 0,this)}var Q6=i(M0(),1);function y2({columns:Q,data:J,keyExtractor:X,onRowClick:q,renderMobileCard:N,emptyText:K="No data available"}){let H=(M,F)=>{if(q&&(M.key==="Enter"||M.key===" "))M.preventDefault(),q(F)};if(J.length===0)return Q6.jsxDEV("div",{className:"stats-table-empty",children:K},void 0,!1,void 0,this);return Q6.jsxDEV("div",{className:"stats-table-wrapper",children:[N&&Q6.jsxDEV("div",{className:"stats-table-mobile-only",children:Q6.jsxDEV("div",{className:"stats-table-mobile-list",children:J.map((M)=>{let F=String(X(M));return Q6.jsxDEV("div",{className:"stats-table-mobile-card-wrapper",children:N(M,q?()=>q(M):void 0)},F,!1,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),Q6.jsxDEV("div",{className:N?"stats-table-desktop-only":"stats-table-container",children:Q6.jsxDEV("table",{className:"stats-table",children:[Q6.jsxDEV("thead",{children:Q6.jsxDEV("tr",{children:Q.map((M)=>{let F=["stats-table-th",M.numeric?"stats-text-right":"stats-text-left",M.className||""].filter(Boolean).join(" ");return Q6.jsxDEV("th",{className:F,children:M.header},M.key,!1,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),Q6.jsxDEV("tbody",{children:J.map((M)=>{let F=String(X(M)),w=typeof q==="function",z=["stats-table-tr",w?"stats-table-tr-clickable":""].filter(Boolean).join(" ");return Q6.jsxDEV("tr",{className:z,onClick:w?()=>q(M):void 0,onKeyDown:w?(T)=>H(T,M):void 0,tabIndex:w?0:void 0,role:w?"button":void 0,children:Q.map((T)=>{let P=["stats-table-td",T.numeric?"stats-text-right":"stats-text-left",T.className||""].filter(Boolean).join(" ");return Q6.jsxDEV("td",{className:P,children:T.render?T.render(M):M[T.key]},T.key,!1,void 0,this)})},F,!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 r9=i(I1(),1),c6=i(M0(),1);function SK({data:Q,title:J,initialCollapsed:X=!1}){let[q,N]=r9.useState(X),[K,H]=r9.useState(!1),M=r9.useRef(0),F=JSON.stringify(Q,null,2);return r9.useEffect(()=>()=>window.clearTimeout(M.current),[]),c6.jsxDEV("div",{className:"stats-json-block",children:[c6.jsxDEV("div",{className:"stats-json-block-header",onClick:()=>N(!q),onKeyDown:(T)=>{if(T.key==="Enter"||T.key===" ")T.preventDefault(),N(!q)},tabIndex:0,role:"button","aria-expanded":!q,children:[c6.jsxDEV("span",{className:"stats-json-block-title",children:J||"JSON"},void 0,!1,void 0,this),c6.jsxDEV("div",{className:"stats-json-actions",children:[c6.jsxDEV("button",{type:"button",className:"stats-json-copy-btn",onClick:async(T)=>{T.stopPropagation();try{await navigator.clipboard.writeText(F),H(!0),window.clearTimeout(M.current),M.current=window.setTimeout(()=>H(!1),1500)}catch{}},"aria-label":K?"Copied to clipboard":"Copy JSON to clipboard",children:[K?c6.jsxDEV(VQ,{size:13},void 0,!1,void 0,this):c6.jsxDEV(SQ,{size:13},void 0,!1,void 0,this),K?"Copied":"Copy"]},void 0,!0,void 0,this),c6.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&&c6.jsxDEV("div",{className:"stats-json-block-content-wrapper",children:c6.jsxDEV("pre",{className:"stats-json-block-content",children:c6.jsxDEV("code",{children:F},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var J1=i(M0(),1);function PP({stats:Q}){return J1.jsxDEV("div",{className:"stats-metric-cluster",children:[J1.jsxDEV("div",{className:"stats-metric-primary-grid",children:[J1.jsxDEV("div",{className:"stats-metric-card primary",children:[J1.jsxDEV("div",{className:"stats-metric-label",children:"Total Cost"},void 0,!1,void 0,this),J1.jsxDEV("div",{className:"stats-metric-value",children:d1(Q.totalCost,Q.totalCost>0&&Q.totalCost<0.01?4:2)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J1.jsxDEV("div",{className:"stats-metric-card primary",children:[J1.jsxDEV("div",{className:"stats-metric-label",children:"Requests"},void 0,!1,void 0,this),J1.jsxDEV("div",{className:"stats-metric-value",children:t0(Q.totalRequests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J1.jsxDEV("div",{className:"stats-metric-card primary",children:[J1.jsxDEV("div",{className:"stats-metric-label",children:"Cache Rate"},void 0,!1,void 0,this),J1.jsxDEV("div",{className:"stats-metric-value",children:$6(Q.cacheRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J1.jsxDEV("div",{className:"stats-metric-card primary",children:[J1.jsxDEV("div",{className:"stats-metric-label",children:"Error Rate"},void 0,!1,void 0,this),J1.jsxDEV("div",{className:"stats-metric-value",children:$6(Q.errorRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),J1.jsxDEV("div",{className:"stats-metric-secondary-grid",children:[J1.jsxDEV("div",{className:"stats-metric-card secondary",children:[J1.jsxDEV("div",{className:"stats-metric-label",children:"Input Tokens"},void 0,!1,void 0,this),J1.jsxDEV("div",{className:"stats-metric-value",children:m4(Q.totalInputTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J1.jsxDEV("div",{className:"stats-metric-card secondary",children:[J1.jsxDEV("div",{className:"stats-metric-label",children:"Output Tokens"},void 0,!1,void 0,this),J1.jsxDEV("div",{className:"stats-metric-value",children:m4(Q.totalOutputTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J1.jsxDEV("div",{className:"stats-metric-card secondary",children:[J1.jsxDEV("div",{className:"stats-metric-label",children:"Premium Requests"},void 0,!1,void 0,this),J1.jsxDEV("div",{className:"stats-metric-value",children:t0(Q.totalPremiumRequests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J1.jsxDEV("div",{className:"stats-metric-card secondary",children:[J1.jsxDEV("div",{className:"stats-metric-label",children:"Tokens/s"},void 0,!1,void 0,this),J1.jsxDEV("div",{className:"stats-metric-value",children:KP(Q.avgTokensPerSecond)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J1.jsxDEV("div",{className:"stats-metric-card secondary",children:[J1.jsxDEV("div",{className:"stats-metric-label",children:"Avg Latency"},void 0,!1,void 0,this),J1.jsxDEV("div",{className:"stats-metric-value",children:E5(Q.avgDuration)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J1.jsxDEV("div",{className:"stats-metric-card secondary",children:[J1.jsxDEV("div",{className:"stats-metric-label",children:"Avg TTFT"},void 0,!1,void 0,this),J1.jsxDEV("div",{className:"stats-metric-value",children:E5(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 g2=i(M0(),1);function f1({title:Q,subtitle:J,actions:X,children:q,className:N="",...K}){return g2.jsxDEV("div",{className:`stats-panel ${N}`,...K,children:[(Q||J||X)&&g2.jsxDEV("div",{className:"stats-panel-header",children:[g2.jsxDEV("div",{className:"stats-panel-header-titles",children:[Q&&g2.jsxDEV("h3",{className:"stats-panel-title",children:Q},void 0,!1,void 0,this),J&&g2.jsxDEV("p",{className:"stats-panel-subtitle",children:J},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X&&g2.jsxDEV("div",{className:"stats-panel-actions",children:X},void 0,!1,void 0,this)]},void 0,!0,void 0,this),g2.jsxDEV("div",{className:"stats-panel-body",children:q},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var p4=i(I1(),1);var _P=i(M0(),1);function C6({variant:Q,children:J,className:X=""}){return _P.jsxDEV("span",{className:`stats-status-pill ${X}`,"data-variant":Q,children:J},void 0,!1,void 0,this)}var W0=i(M0(),1);function CP({id:Q,onClose:J}){let[X,q]=p4.useState(null),[N,K]=p4.useState(!1),[H,M]=p4.useState(null),F=p4.useRef(null),w=p4.useRef(null);if(p4.useEffect(()=>{if(Q===null){q(null);return}F.current=document.activeElement,K(!0),M(null),q(null);let T=new AbortController;return JL(Q,T.signal).then((P)=>{if(T.signal.aborted)return;q(P),setTimeout(()=>w.current?.focus(),50)}).catch((P)=>{if(T.signal.aborted)return;M(P instanceof Error?P:Error(String(P)))}).finally(()=>{if(!T.signal.aborted)K(!1)}),()=>T.abort()},[Q]),p4.useEffect(()=>{if(Q===null)return;let T=(P)=>{if(P.key==="Escape")J()};return window.addEventListener("keydown",T),()=>{if(window.removeEventListener("keydown",T),F.current)F.current.focus()}},[Q,J]),Q===null)return null;return W0.jsxDEV("div",{className:"stats-drawer-overlay",onClick:(T)=>{if(T.target===T.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(x9,{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(Z6,{variant:"text",width:"60%",height:24,className:"mb-4"},void 0,!1,void 0,this),W0.jsxDEV(Z6,{variant:"rect",width:"100%",height:80,className:"mb-4"},void 0,!1,void 0,this),W0.jsxDEV(Z6,{variant:"rect",width:"100%",height:120,className:"mb-4"},void 0,!1,void 0,this),W0.jsxDEV(Z6,{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(C6,{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(u9,{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:d1(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(mQ,{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:t0(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(bQ,{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:t0(X.usage.totalTokens)},void 0,!1,void 0,this),W0.jsxDEV("div",{className:"stats-drawer-metric-sub",children:[t0(X.usage.input)," in · ",t0(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(AQ,{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:E5(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(cQ,{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:E5(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(vQ,{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(SK,{data:X.output,title:"Output Payload",initialCollapsed:!1},void 0,!1,void 0,this),W0.jsxDEV(SK,{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 jK=i(M0(),1);function iQ({options:Q,value:J,onChange:X,className:q=""}){return jK.jsxDEV("div",{className:`stats-segmented-control ${q}`,role:"radiogroup",children:Q.map((N)=>{let K=N.value===J;return jK.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 w0=i(M0(),1);function SP({active:Q,range:J,refreshTrigger:X}){let{data:q,error:N,loading:K}=T5(["behavior",J,X],(H)=>XL(J,H),{pollMs:30000,enabled:Q});return w0.jsxDEV("div",{className:"stats-route-container space-y-6",children:w0.jsxDEV(e1,{loading:K,error:N,data:q,children:q&&w0.jsxDEV(w0.Fragment,{children:[w0.jsxDEV(RD,{overall:q.overall,behaviorSeries:q.behaviorSeries},void 0,!1,void 0,this),w0.jsxDEV(zD,{behaviorSeries:q.behaviorSeries},void 0,!1,void 0,this),w0.jsxDEV(TD,{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 TX(Q,J){if(J<=0)return;return`${(Q/J).toFixed(2)} / msg`}function RD({overall:Q,behaviorSeries:J}){let X=J5.useMemo(()=>wP(Q,J),[Q,J]),q=Q.totalMessages,N=[{label:"User Messages",value:t0(Q.totalMessages),sub:q>0?"in range":void 0},{label:"Yelling (CAPS)",value:t0(Q.totalYelling),sub:TX(Q.totalYelling,q)},{label:"Profanity Hits",value:t0(Q.totalProfanity),sub:TX(Q.totalProfanity,q)},{label:"Anguish Signals",value:t0(Q.totalAnguish),sub:TX(Q.totalAnguish,q)},{label:"Friction Signals",value:t0(X.totalFrustration),sub:TX(X.totalFrustration,q)},{label:"Highest Friction Model",value:X.highestFrictionModel?.model??"—",sub:X.highestFrictionModel?`${t0(X.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(f1,{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 DK=[{value:"yelling",label:"CAPS",title:"Yelling (CAPS)"},{value:"profanity",label:"Profanity",title:"Profanity"},{value:"anguish",label:"Anguish",title:"Anguish (!!!, nooo, dude, ..)"},{value:"negation",label:"Negation",title:"Negation (no/nope/wrong)"},{value:"repetition",label:"Repetition",title:"Repetition (i meant, still doesnt)"},{value:"blame",label:"Blame",title:"Blame (you didnt, stop X-ing)"},{value:"frustration",label:"Frustration",title:"Frustration (neg + rep + blame)"},{value:"total",label:"All",title:"All signals combined"}];function IP(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 VP(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 OP(Q,J){if(J<=0)return 0;return Q/J*100}function zD({behaviorSeries:Q}){let[J,X]=J5.useState(!1),[q,N]=J5.useState("total"),K=d6(),H=g5[K],M=J5.useMemo(()=>{if(J)return YX(Q,{rankWeight:(h)=>h.messages,initBucket:()=>({hits:0,messages:0}),accumulate:(h,p)=>{h.hits+=VP(p,q),h.messages+=p.messages},bucketToValue:(h)=>OP(h.hits,h.messages)});let D=DK.find((h)=>h.value===q)?.title??"Hits";return qX(Q,D,{initBucket:()=>({hits:0,messages:0}),accumulate:(h,p)=>{h.hits+=VP(p,q),h.messages+=p.messages},bucketToValue:(h)=>OP(h.hits,h.messages)})},[Q,J,q]),F=J5.useMemo(()=>{return R$({chartTheme:H,showLegend:J,defaultLabel:"Hits",formatValue:IP})},[H,J]),{sharedScaleBase:w,yScale:z}=J5.useMemo(()=>{return z$({chartTheme:H,formatY:IP})},[H]),T=J5.useMemo(()=>{return DK.find((D)=>D.value===q)?.title??""},[q]),P=J5.useMemo(()=>{if(!J)return null;return{labels:M.labels,datasets:L$(M,(D)=>T$(t1[D%t1.length]))}},[M,J]),I=J5.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:F,scales:{x:w,y:z}}},[F,w,z]),A=J5.useMemo(()=>{if(J)return null;return{labels:M.labels,datasets:L$(M,(D)=>XX(t1[D%t1.length]))}},[M,J]),O=J5.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:F,scales:{x:{...w,stacked:!0},y:{...z,stacked:!0}},layout:{padding:{top:8}}}},[F,w,z]),V=[{value:!1,label:"All Models"},{value:!0,label:"By Model"}];return w0.jsxDEV(f1,{title:"User Friction Signals",subtitle:`${T} as % of user messages per day`,actions:w0.jsxDEV("div",{className:"flex items-center gap-3 flex-wrap",children:[w0.jsxDEV(iQ,{options:DK.map((D)=>({value:D.value,label:D.label,title:D.title})),value:q,onChange:N},void 0,!1,void 0,this),w0.jsxDEV(iQ,{options:V,value:J,onChange:X},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:w0.jsxDEV("div",{className:"h-[300px]",children:M.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):J&&P?w0.jsxDEV(e5,{data:P,options:I},void 0,!1,void 0,this):A?w0.jsxDEV(GX,{data:A,options:O},void 0,!1,void 0,this):null},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var EP="2fr 0.9fr 0.8fr 0.8fr 0.8fr 0.9fr 0.8fr 140px 40px";function AP(Q){if(Q.totalMessages===0)return 0;return(Q.totalYelling+Q.totalProfanity+Q.totalAnguish+Q.totalNegation+Q.totalRepetition+Q.totalBlame)/Q.totalMessages}function _$(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 TD({models:Q,behaviorSeries:J}){let[X,q]=J5.useState(null),N=d6(),K=g5[N],H=J5.useMemo(()=>PD(J),[J]),M=J5.useMemo(()=>{return[...Q].sort((F,w)=>{if(w.totalMessages!==F.totalMessages)return w.totalMessages-F.totalMessages;return AP(w)-AP(F)})},[Q]);return w0.jsxDEV(KX,{title:"Behavior Signals by Model",subtitle:"Rates are per user message",children:[w0.jsxDEV(BX,{gridTemplate:EP,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(HX,{children:[M.map((F,w)=>{let z=`${F.model}::${F.provider}`,T=H.get(z)?.data??[],P=t1[w%t1.length],I=X===z,A=F.totalNegation+F.totalRepetition+F.totalBlame,O=F.totalYelling+F.totalProfanity+F.totalAnguish+A;return w0.jsxDEV(FX,{gridTemplate:EP,isExpanded:I,onToggle:()=>q(I?null:z),cells:[w0.jsxDEV(MX,{model:F.model,provider:F.provider},"name",!1,void 0,this),w0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:t0(F.totalMessages)},"messages",!1,void 0,this),w0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:_$(F.totalYelling,F.totalMessages)},"caps",!1,void 0,this),w0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:_$(F.totalProfanity,F.totalMessages)},"profanity",!1,void 0,this),w0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:_$(F.totalAnguish,F.totalMessages)},"anguish",!1,void 0,this),w0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:_$(A,F.totalMessages)},"frustration",!1,void 0,this),w0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:_$(O,F.totalMessages)},"hits",!1,void 0,this)],trendCell:T.length===0?w0.jsxDEV(WX,{},void 0,!1,void 0,this):w0.jsxDEV(NX,{timestamps:T.map((V)=>V.timestamp),values:T.map((V)=>V.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(s9,{label:"Yelling (CAPS)",total:F.totalYelling,messages:F.totalMessages,valueClass:"text-[#ed4abf]"},void 0,!1,void 0,this),w0.jsxDEV(s9,{label:"Profanity",total:F.totalProfanity,messages:F.totalMessages,valueClass:"text-[#ff6b7d]"},void 0,!1,void 0,this),w0.jsxDEV(s9,{label:"Anguish (!!!, nooo, dude, ..)",total:F.totalAnguish,messages:F.totalMessages,valueClass:"text-[#9b4dff]"},void 0,!1,void 0,this),w0.jsxDEV(s9,{label:"Negation (no/nope/wrong)",total:F.totalNegation,messages:F.totalMessages,valueClass:"text-[#5ad8e6]"},void 0,!1,void 0,this),w0.jsxDEV(s9,{label:"Repetition (i meant, still doesnt)",total:F.totalRepetition,messages:F.totalMessages,valueClass:"text-[#5ad8e6]"},void 0,!1,void 0,this),w0.jsxDEV(s9,{label:"Blame (you didnt, stop X-ing)",total:F.totalBlame,messages:F.totalMessages,valueClass:"text-[#5ad8e6]"},void 0,!1,void 0,this),w0.jsxDEV(s9,{label:"Avg chars / msg",total:F.totalChars,messages:F.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:T.length===0?w0.jsxDEV(wX,{},void 0,!1,void 0,this):w0.jsxDEV(LD,{data:T,chartTheme:K},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},z,!1,void 0,this)}),M.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 s9({label:Q,total:J,messages:X,valueClass:q,mode:N="rate"}){let K=N==="rate"?"% of msgs":"Per msg",H=J5.useMemo(()=>{if(X===0)return"-";return N==="rate"?_$(J,X):(J/X).toFixed(0)},[J,X,N]);return w0.jsxDEV("div",{children:[w0.jsxDEV("div",{className:"text-[var(--text-primary)] font-medium mb-1",children:Q},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 ${q}`,children:t0(J)},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 LX={yelling:"#ed4abf",profanity:"#ff6b7d",anguish:"#9b4dff",frustration:"#5ad8e6"};function LD({data:Q,chartTheme:J}){let X=J5.useMemo(()=>{return{labels:Q.map((N)=>X4(new Date(N.timestamp),"MMM d")),datasets:[{label:"CAPS",data:Q.map((N)=>N.yelling),...S8(LX.yelling)},{label:"Profanity",data:Q.map((N)=>N.profanity),...S8(LX.profanity)},{label:"Anguish",data:Q.map((N)=>N.anguish),...S8(LX.anguish)},{label:"Frustration",data:Q.map((N)=>N.frustration),...S8(LX.frustration)}]}},[Q]),q=J5.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,plugins:UX(J),scales:NP(J)}},[J]);return w0.jsxDEV(e5,{data:X,options:q},void 0,!1,void 0,this)}function PD(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 M=H.get(N.timestamp)??{timestamp:N.timestamp,yelling:0,profanity:0,anguish:0,frustration:0,total:0};M.yelling+=N.yelling,M.profanity+=N.profanity,M.anguish+=N.anguish,M.frustration+=N.negation+N.repetition+N.blame,M.total=M.yelling+M.profanity+M.anguish+M.frustration,H.set(N.timestamp,M)}let q=new Map;for(let[N,K]of X){let H=J.map((M)=>K.get(M)??{timestamp:M,yelling:0,profanity:0,anguish:0,frustration:0,total:0});q.set(N,{data:H})}return q}var l6=i(I1(),1);var G5=i(M0(),1);function jP({active:Q,range:J,refreshTrigger:X}){let{data:q,error:N,loading:K}=T5(["costs",J,X],(H)=>ZL(J,H),{pollMs:30000,enabled:Q});return G5.jsxDEV("div",{className:"stats-route-container space-y-6",children:G5.jsxDEV(e1,{loading:K,error:N,data:q,children:q&&G5.jsxDEV(G5.Fragment,{children:[G5.jsxDEV(_D,{costSeries:q.costSeries},void 0,!1,void 0,this),G5.jsxDEV(VD,{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 _D({costSeries:Q}){let J=l6.useMemo(()=>FP(Q),[Q]),X=[{label:"Total Cost",value:d1(J.totalCost)},{label:"Average / Day",value:d1(J.avgDailyCost)},{label:"Top Model",value:J.topModelName||"—",sub:J.topModelName?d1(J.topModelCost):void 0}];return G5.jsxDEV("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:X.map((q)=>G5.jsxDEV(f1,{className:"stats-cost-overview-card py-4 px-5",children:[G5.jsxDEV("p",{className:"text-xs stats-text-muted mb-1 font-medium uppercase tracking-wider",children:q.label},void 0,!1,void 0,this),G5.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&&G5.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 CD={dark:"rgba(248, 250, 252, 0.7)",light:"rgba(15, 23, 42, 0.6)"};function ID(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 M=`$${Math.round(H)}`,{x:F,y:w}=K.getProps(["x","y"],!0);X.fillText(M,F,w-3)}X.restore()}}}function VD({costSeries:Q}){let[J,X]=l6.useState(!1),q=d6(),N=g5[q],K=l6.useMemo(()=>{if(J)return YX(Q,{rankWeight:(O)=>O.cost,initBucket:()=>({total:0}),accumulate:(O,V)=>{O.total+=V.cost},bucketToValue:(O)=>O.total});return qX(Q,"Cost",{initBucket:()=>({total:0}),accumulate:(O,V)=>{O.total+=V.cost},bucketToValue:(O)=>O.total})},[Q,J]),H=l6.useMemo(()=>{return R$({chartTheme:N,showLegend:J,defaultLabel:"Cost",formatValue:(O)=>`$${O.toFixed(2)}`,footer:(O)=>{if(!J||O.length<2)return;return`Total: $${O.reduce((D,h)=>D+(h.parsed.y??0),0).toFixed(2)}`}})},[N,J]),{sharedScaleBase:M,yScale:F}=l6.useMemo(()=>{return z$({chartTheme:N,formatY:(O)=>`$${Math.round(O)}`})},[N]),w=l6.useMemo(()=>{return ID(CD[q])},[q]),z=l6.useMemo(()=>{if(!J)return null;return{labels:K.labels,datasets:L$(K,(O)=>T$(t1[O%t1.length]))}},[K,J]),T=l6.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:H,scales:{x:M,y:F}}},[H,M,F]),P=l6.useMemo(()=>{if(J)return null;return{labels:K.labels,datasets:L$(K,(O)=>XX(t1[O%t1.length]))}},[K,J]),I=l6.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{...H,costBarLabels:{}},scales:{x:{...M,stacked:!0},y:{...F,stacked:!0}},layout:{padding:{top:24}}}},[H,M,F]);return G5.jsxDEV(f1,{title:"Daily Cost",subtitle:"API spending over time",actions:G5.jsxDEV(iQ,{options:[{value:!1,label:"All Models"},{value:!0,label:"By Model"}],value:J,onChange:X},void 0,!1,void 0,this),children:G5.jsxDEV("div",{className:"h-[300px]",children:K.labels.length===0?G5.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&&z?G5.jsxDEV(e5,{data:z,options:T},void 0,!1,void 0,this):P?G5.jsxDEV(GX,{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 DP=i(I1(),1);var V1=i(M0(),1);function vP({active:Q,refreshTrigger:J,onRequestClick:X}){let{data:q,error:N,loading:K}=T5(["recent-errors-dense",J],(F)=>QL(50,F),{pollMs:30000,enabled:Q}),H=DP.useMemo(()=>[{key:"model",header:"Model",render:(F)=>V1.jsxDEV("div",{children:[V1.jsxDEV("div",{className:"stats-font-medium stats-text-primary",children:F.model},void 0,!1,void 0,this),V1.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:F.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"timestamp",header:"Time",render:(F)=>d4(F.timestamp)},{key:"errorMessage",header:"Error Message",render:(F)=>V1.jsxDEV("div",{className:"stats-text-xs stats-text-danger stats-truncate stats-max-w-md stats-font-mono",title:F.errorMessage||"",children:F.errorMessage||"Unknown error"},void 0,!1,void 0,this)},{key:"tokens",header:"Tokens",numeric:!0,render:(F)=>t0(F.usage.totalTokens)},{key:"cost",header:"Cost",numeric:!0,render:(F)=>d1(F.usage.cost.total,4)}],[]);return V1.jsxDEV("div",{className:"stats-route-container",children:V1.jsxDEV(f1,{title:"Recent Errors",subtitle:"Up to 50 most recent failed requests in the stats database",children:V1.jsxDEV(e1,{loading:K,error:N,data:q,emptyText:"No recent failures in the local stats database",children:V1.jsxDEV(y2,{columns:H,data:q||[],keyExtractor:(F)=>F.id||`${F.sessionFile}-${F.entryId}`,onRowClick:(F)=>F.id&&X(F.id),renderMobileCard:(F,w)=>V1.jsxDEV("div",{className:"stats-mobile-card stats-border-danger",onClick:w,children:[V1.jsxDEV("div",{className:"stats-mobile-card-header",children:[V1.jsxDEV("div",{children:[V1.jsxDEV("div",{className:"stats-font-semibold stats-text-primary",children:F.model},void 0,!1,void 0,this),V1.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:F.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),V1.jsxDEV(C6,{variant:"danger",children:"Failed"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),V1.jsxDEV("div",{className:"stats-mobile-card-grid",children:[V1.jsxDEV("div",{children:[V1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Time"},void 0,!1,void 0,this),V1.jsxDEV("div",{className:"stats-mobile-card-value",children:d4(F.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),V1.jsxDEV("div",{children:[V1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Cost"},void 0,!1,void 0,this),V1.jsxDEV("div",{className:"stats-mobile-card-value",children:d1(F.usage.cost.total,4)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),V1.jsxDEV("div",{children:[V1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Tokens"},void 0,!1,void 0,this),V1.jsxDEV("div",{className:"stats-mobile-card-value",children:t0(F.usage.totalTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.errorMessage&&V1.jsxDEV("div",{className:"stats-mobile-card-error mt-2 stats-font-mono",children:F.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 PX=i(I1(),1);var C0=i(M0(),1);function bP({active:Q,range:J,refreshTrigger:X}){let[q,N]=PX.useState(null),{data:K,error:H,loading:M}=T5(["gain",J,X,q],(F)=>YL(J,q,F),{pollMs:30000,enabled:Q});return C0.jsxDEV("div",{className:"stats-route-container space-y-6",children:C0.jsxDEV(e1,{loading:M,error:H,data:K,children:K&&C0.jsxDEV(C0.Fragment,{children:[C0.jsxDEV(OD,{projects:K.projects,selected:q,onChange:N},void 0,!1,void 0,this),C0.jsxDEV(ED,{overall:K.overall},void 0,!1,void 0,this),C0.jsxDEV(SD,{bySource:K.bySource},void 0,!1,void 0,this),C0.jsxDEV(DD,{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 OD({projects:Q,selected:J,onChange:X}){if(Q.length===0)return null;return C0.jsxDEV("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[C0.jsxDEV("span",{className:"stats-text-secondary",style:{fontSize:"0.875rem",whiteSpace:"nowrap"},children:"Project"},void 0,!1,void 0,this),C0.jsxDEV("select",{className:"stats-select",value:J??"",onChange:(q)=>X(q.target.value||null),style:{maxWidth:"480px",flex:1},children:[C0.jsxDEV("option",{value:"",children:"All projects"},void 0,!1,void 0,this),Q.map((q)=>C0.jsxDEV("option",{value:q,children:q},q,!1,void 0,this))]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function ED({overall:Q}){return C0.jsxDEV(f1,{title:"Overall Gain",subtitle:"Aggregate snapcompact savings",children:C0.jsxDEV("div",{className:"stats-metric-primary-grid",children:[C0.jsxDEV("div",{className:"stats-metric-card primary",children:[C0.jsxDEV("div",{className:"stats-metric-label",children:"Saved Tokens"},void 0,!1,void 0,this),C0.jsxDEV("div",{className:"stats-metric-value",children:m4(Q.savedTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),C0.jsxDEV("div",{className:"stats-metric-card primary",children:[C0.jsxDEV("div",{className:"stats-metric-label",children:"Saved Bytes"},void 0,!1,void 0,this),C0.jsxDEV("div",{className:"stats-metric-value",children:EK(Q.savedBytes)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),C0.jsxDEV("div",{className:"stats-metric-card primary",children:[C0.jsxDEV("div",{className:"stats-metric-label",children:"Reduction"},void 0,!1,void 0,this),C0.jsxDEV("div",{className:"stats-metric-value",children:Q.reductionPercent!==null?$6(Q.reductionPercent):"—"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),C0.jsxDEV("div",{className:"stats-metric-card primary",children:[C0.jsxDEV("div",{className:"stats-metric-label",children:"Total Hits"},void 0,!1,void 0,this),C0.jsxDEV("div",{className:"stats-metric-value",children:t0(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 AD({title:Q,totals:J}){return C0.jsxDEV("div",{className:"stats-metric-card secondary",style:{flex:1},children:[C0.jsxDEV("div",{className:"stats-metric-label",style:{fontWeight:600,marginBottom:8},children:Q},void 0,!1,void 0,this),C0.jsxDEV("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:8},children:[C0.jsxDEV("div",{children:[C0.jsxDEV("div",{className:"stats-metric-label",children:"Saved Tokens"},void 0,!1,void 0,this),C0.jsxDEV("div",{className:"stats-metric-value",style:{fontSize:"1rem"},children:m4(J.savedTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),C0.jsxDEV("div",{children:[C0.jsxDEV("div",{className:"stats-metric-label",children:"Saved Bytes"},void 0,!1,void 0,this),C0.jsxDEV("div",{className:"stats-metric-value",style:{fontSize:"1rem"},children:EK(J.savedBytes)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),C0.jsxDEV("div",{children:[C0.jsxDEV("div",{className:"stats-metric-label",children:"Hits"},void 0,!1,void 0,this),C0.jsxDEV("div",{className:"stats-metric-value",style:{fontSize:"1rem"},children:t0(J.hits)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),C0.jsxDEV("div",{children:[C0.jsxDEV("div",{className:"stats-metric-label",children:"Reduction"},void 0,!1,void 0,this),C0.jsxDEV("div",{className:"stats-metric-value",style:{fontSize:"1rem"},children:J.reductionPercent!==null?$6(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 SD({bySource:Q}){return C0.jsxDEV(f1,{title:"By Source",subtitle:"Savings breakdown per subsystem",children:C0.jsxDEV("div",{style:{display:"flex",gap:16,flexWrap:"wrap"},children:C0.jsxDEV(AD,{title:"Snapcompact",totals:Q.snapcompact},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var jD={snapcompact:"rgb(34, 197, 94)"};function DD({timeSeries:Q}){let J=d6(),X=g5[J],{data:q,options:N}=PX.useMemo(()=>{let K=new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric",timeZone:"UTC"}),M={labels:Q.map((T)=>K.format(new Date(`${T.date}T00:00:00.000Z`))),datasets:[{label:"Snapcompact",data:Q.map((T)=>T.snapcompact),...T$(jD.snapcompact)}]},{sharedScaleBase:F,yScale:w}=z$({chartTheme:X,formatY:(T)=>m4(T)}),z={responsive:!0,maintainAspectRatio:!1,plugins:R$({chartTheme:X,showLegend:!0,defaultLabel:"Tokens Saved",formatValue:m4}),scales:{x:{...F,stacked:!0},y:{...w,stacked:!0}}};return{data:M,options:z}},[Q,X]);return C0.jsxDEV(f1,{title:"Savings Over Time",subtitle:"Daily token savings",children:C0.jsxDEV("div",{style:{height:240},children:Q.length===0?C0.jsxDEV("div",{className:"stats-table-empty",children:"No time series data yet"},void 0,!1,void 0,this):C0.jsxDEV(e5,{data:q,options:N},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var c4=i(I1(),1);var A0=i(M0(),1);function fP({active:Q,range:J,refreshTrigger:X}){let{data:q,error:N,loading:K}=T5(["models",J,X],(H)=>$L(J,H),{pollMs:30000,enabled:Q});return A0.jsxDEV("div",{className:"stats-route-container space-y-6",children:A0.jsxDEV(e1,{loading:K,error:N,data:q,children:q&&A0.jsxDEV(A0.Fragment,{children:[A0.jsxDEV(vD,{modelSeries:q.modelSeries,timeRange:J},void 0,!1,void 0,this),A0.jsxDEV(kD,{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 vD({modelSeries:Q,timeRange:J}){let X=d6(),q=g5[X],N=aQ(J),K=c4.useMemo(()=>bD(Q),[Q]),H=c4.useMemo(()=>{return{labels:K.data.map((F)=>AK(F.timestamp,J)),datasets:K.series.map((F,w)=>({label:F,data:K.data.map((z)=>z[F]??0),borderColor:t1[w%t1.length],backgroundColor:`${t1[w%t1.length]}20`,fill:!0,tension:0.4,pointRadius:0,pointHoverRadius:4,borderWidth:2}))}},[K,J]),M=c4.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:(F)=>{let w=F.dataset.label??"",z=F.parsed.y;return`${w}: ${(z??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:(F)=>`${F}%`},min:0,max:100}}}},[q]);return A0.jsxDEV(f1,{title:"Model Preference",subtitle:`Share of requests over ${N.windowLabel}`,children:A0.jsxDEV("div",{className:"h-[280px]",children:K.data.length===0?A0.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):A0.jsxDEV(e5,{data:H,options:M},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function bD(Q,J=5){if(Q.length===0)return{data:[],series:[]};let X=new Map;for(let T of Q){let P=`${T.model}::${T.provider}`,I=X.get(P);if(I)I.total+=T.requests;else X.set(P,{model:T.model,provider:T.provider,total:T.requests})}let N=[...X.entries()].map(([T,P])=>({key:T,...P})).sort((T,P)=>P.total-T.total).slice(0,J),K=new Set(N.map((T)=>T.key)),H=new Map;for(let T of N)H.set(T.model,(H.get(T.model)??0)+1);let M=new Map;for(let T of N){let P=(H.get(T.model)??0)>1;M.set(T.key,P?`${T.model} (${T.provider})`:T.model)}let F=new Map;for(let T of Q){let P=`${T.model}::${T.provider}`,I=F.get(T.timestamp)??{timestamp:T.timestamp,total:0};I.total+=T.requests;let A=K.has(P)?M.get(P)??T.model:"Other";I[A]=(I[A]??0)+T.requests,F.set(T.timestamp,I)}let w=N.map((T)=>M.get(T.key)??T.model);if([...F.values()].some((T)=>(T.Other??0)>0))w.push("Other");return{data:[...F.values()].sort((T,P)=>(T.timestamp??0)-(P.timestamp??0)).map((T)=>{let P=T.total??0;for(let I of w)T[I]=P>0?(T[I]??0)/P*100:0;return T}),series:w}}var kP="2fr 0.9fr 0.9fr 1fr 0.8fr 0.8fr 140px 40px";function kD({models:Q,performanceSeries:J,timeRange:X}){let[q,N]=c4.useState(null),K=aQ(X),H=c4.useMemo(()=>WP(J,X),[J,X]),M=d6(),F=g5[M],w=c4.useMemo(()=>{return[...Q].sort((z,T)=>T.totalInputTokens+T.totalOutputTokens-(z.totalInputTokens+z.totalOutputTokens))},[Q]);return A0.jsxDEV(KX,{title:"Model Statistics",children:[A0.jsxDEV(BX,{gridTemplate:kP,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),A0.jsxDEV(HX,{children:w.map((z,T)=>{let P=`${z.model}::${z.provider}`,A=H.get(P)?.data??[],O=t1[T%t1.length],V=q===P,D=z.errorRate*100;return A0.jsxDEV(FX,{gridTemplate:kP,isExpanded:V,onToggle:()=>N(V?null:P),cells:[A0.jsxDEV(MX,{model:z.model,provider:z.provider},"name",!1,void 0,this),A0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:z.totalRequests.toLocaleString()},"requests",!1,void 0,this),A0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:["$",z.totalCost.toFixed(2)]},"cost",!0,void 0,this),A0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:(z.totalInputTokens+z.totalOutputTokens).toLocaleString()},"tokens",!1,void 0,this),A0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:z.avgTokensPerSecond?.toFixed(1)??"-"},"tps",!1,void 0,this),A0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:z.avgTtft?`${(z.avgTtft/1000).toFixed(2)}s`:"-"},"ttft",!1,void 0,this)],trendCell:A.length===0?A0.jsxDEV(WX,{},void 0,!1,void 0,this):A0.jsxDEV(NX,{timestamps:A.map((h)=>h.timestamp),values:A.map((h)=>h.avgTokensPerSecond??0),color:O},void 0,!1,void 0,this),expandedContent:A0.jsxDEV("div",{className:"grid gap-4",style:{gridTemplateColumns:"200px 1fr"},children:[A0.jsxDEV("div",{className:"space-y-4 text-sm",children:[A0.jsxDEV("div",{children:[A0.jsxDEV("div",{className:"text-[var(--text-primary)] font-medium mb-2",children:"Quality"},void 0,!1,void 0,this),A0.jsxDEV("div",{className:"space-y-1 text-[var(--text-secondary)]",children:[A0.jsxDEV("div",{className:"flex items-center justify-between",children:[A0.jsxDEV("span",{children:"Error rate"},void 0,!1,void 0,this),A0.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),A0.jsxDEV("div",{className:"flex items-center justify-between",children:[A0.jsxDEV("span",{children:"Cache rate"},void 0,!1,void 0,this),A0.jsxDEV("span",{className:"text-[var(--accent-cyan)]",children:[(z.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),A0.jsxDEV("div",{children:[A0.jsxDEV("div",{className:"text-[var(--text-primary)] font-medium mb-2",children:"Latency"},void 0,!1,void 0,this),A0.jsxDEV("div",{className:"space-y-1 text-[var(--text-secondary)]",children:[A0.jsxDEV("div",{className:"flex items-center justify-between",children:[A0.jsxDEV("span",{children:"Avg duration"},void 0,!1,void 0,this),A0.jsxDEV("span",{className:"font-mono",children:z.avgDuration?`${(z.avgDuration/1000).toFixed(2)}s`:"-"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),A0.jsxDEV("div",{className:"flex items-center justify-between",children:[A0.jsxDEV("span",{children:"Avg TTFT"},void 0,!1,void 0,this),A0.jsxDEV("span",{className:"font-mono",children:z.avgTtft?`${(z.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),A0.jsxDEV("div",{className:"h-[200px]",children:A.length===0?A0.jsxDEV(wX,{},void 0,!1,void 0,this):A0.jsxDEV(fD,{data:A,color:O,chartTheme:F,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 fD({data:Q,color:J,chartTheme:X,timeRange:q}){let N=c4.useMemo(()=>{return{labels:Q.map((H)=>AK(H.timestamp,q)),datasets:[{label:"TTFT",data:Q.map((H)=>H.avgTtftSeconds??null),...S8("#5ad8e6"),yAxisID:"y"},{label:"Tokens/s",data:Q.map((H)=>H.avgTokensPerSecond??null),...S8(J),yAxisID:"y1"}]}},[Q,J,q]),K=c4.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,plugins:UX(X),scales:UP(X)}},[X]);return A0.jsxDEV(e5,{data:N,options:K},void 0,!1,void 0,this)}var tQ=i(I1(),1);var yP=i(I1(),1);var J6=i(M0(),1),_X={main:{label:"Main agent",color:"#ed4abf"},subagent:{label:"Subagents",color:"#9b4dff"},advisor:{label:"Advisor",color:"#5ad8e6"}};function gP({stats:Q}){let J=yP.useMemo(()=>MP(Q),[Q]);if(J.totalTokens===0)return J6.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 J6.jsxDEV("div",{className:"space-y-4",children:[J6.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&&J6.jsxDEV("div",{className:"h-full",style:{width:`${X.share*100}%`,background:_X[X.agentType].color},title:`${_X[X.agentType].label}: ${$6(X.share)}`},X.agentType,!1,void 0,this))},void 0,!1,void 0,this),J6.jsxDEV("div",{className:"space-y-2",children:J.segments.map((X)=>J6.jsxDEV("div",{className:"flex items-center justify-between gap-3 text-sm",children:[J6.jsxDEV("div",{className:"flex items-center gap-2 min-w-0",children:[J6.jsxDEV("span",{className:"w-2.5 h-2.5 rounded-full flex-shrink-0",style:{background:_X[X.agentType].color}},void 0,!1,void 0,this),J6.jsxDEV("span",{className:"stats-text-primary truncate",children:_X[X.agentType].label},void 0,!1,void 0,this),J6.jsxDEV("span",{className:"stats-text-muted stats-text-xs whitespace-nowrap",children:[t0(X.requests)," req"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),J6.jsxDEV("div",{className:"flex items-center gap-3 whitespace-nowrap",children:[J6.jsxDEV("span",{className:"stats-text-secondary",children:[m4(X.tokens)," tok"]},void 0,!0,void 0,this),J6.jsxDEV("span",{className:"stats-font-semibold stats-text-primary tabular-nums",children:$6(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 N0=i(M0(),1);function hP({active:Q,range:J,refreshTrigger:X,onRequestClick:q}){let{data:N,error:K,loading:H}=T5(["overview",J,X],(D)=>eT(J,D),{pollMs:30000,enabled:Q}),{data:M,error:F,loading:w}=T5(["recent-requests",X],(D)=>t3(50,D),{pollMs:30000,enabled:Q}),z=d6(),T=g5[z],P=tQ.useMemo(()=>{if(!N?.timeSeries)return{labels:[],datasets:[]};let D=N.timeSeries.map((p)=>X4(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=tQ.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{legend:{display:!0,position:"top",align:"end",labels:{color:T.legendLabel,boxWidth:8,usePointStyle:!0,font:{size:11}}},tooltip:{backgroundColor:T.tooltipBackground,titleColor:T.tooltipTitle,bodyColor:T.tooltipBody,borderColor:T.tooltipBorder,borderWidth:1,cornerRadius:8,padding:10}},scales:{x:{grid:{color:T.grid,drawBorder:!1},ticks:{color:T.tick,font:{size:10}}},y:{grid:{color:T.grid,drawBorder:!1},ticks:{color:T.tick,font:{size:10}},min:0}}}},[T]),A=tQ.useMemo(()=>[{key:"model",header:"Model",render:(D)=>N0.jsxDEV("div",{children:[N0.jsxDEV("div",{className:"stats-font-medium stats-text-primary",children:D.model},void 0,!1,void 0,this),N0.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)=>d4(D.timestamp)},{key:"tokens",header:"Tokens",numeric:!0,render:(D)=>t0(D.usage.totalTokens)},{key:"cost",header:"Cost",numeric:!0,render:(D)=>d1(D.usage.cost.total,4)},{key:"duration",header:"Duration",numeric:!0,render:(D)=>E5(D.duration)},{key:"status",header:"Status",className:"stats-text-center",render:(D)=>N0.jsxDEV(C6,{variant:D.errorMessage?"danger":"success",children:D.errorMessage?"Failed":"Success"},void 0,!1,void 0,this)}],[]),O=(D,h)=>N0.jsxDEV("div",{className:"stats-mobile-card",onClick:h,children:[N0.jsxDEV("div",{className:"stats-mobile-card-header",children:[N0.jsxDEV("div",{children:[N0.jsxDEV("div",{className:"stats-font-semibold stats-text-primary",children:D.model},void 0,!1,void 0,this),N0.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:D.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),N0.jsxDEV(C6,{variant:D.errorMessage?"danger":"success",children:D.errorMessage?"Failed":"Success"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),N0.jsxDEV("div",{className:"stats-mobile-card-grid",children:[N0.jsxDEV("div",{children:[N0.jsxDEV("div",{className:"stats-mobile-card-label",children:"Time"},void 0,!1,void 0,this),N0.jsxDEV("div",{className:"stats-mobile-card-value",children:d4(D.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),N0.jsxDEV("div",{children:[N0.jsxDEV("div",{className:"stats-mobile-card-label",children:"Cost"},void 0,!1,void 0,this),N0.jsxDEV("div",{className:"stats-mobile-card-value",children:d1(D.usage.cost.total,4)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),N0.jsxDEV("div",{children:[N0.jsxDEV("div",{className:"stats-mobile-card-label",children:"Tokens"},void 0,!1,void 0,this),N0.jsxDEV("div",{className:"stats-mobile-card-value",children:t0(D.usage.totalTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),N0.jsxDEV("div",{children:[N0.jsxDEV("div",{className:"stats-mobile-card-label",children:"Duration"},void 0,!1,void 0,this),N0.jsxDEV("div",{className:"stats-mobile-card-value",children:E5(D.duration)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),D.errorMessage&&N0.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),V=tQ.useMemo(()=>{if(!M)return[];return M.slice(0,10)},[M]);return N0.jsxDEV("div",{className:"stats-route-container space-y-6",children:[N0.jsxDEV(e1,{loading:H,error:K,data:N,children:N&&N0.jsxDEV(PP,{stats:N.overall},void 0,!1,void 0,this)},void 0,!1,void 0,this),N0.jsxDEV(f1,{title:"Token Usage by Agent",subtitle:"Share of tokens across the main agent, task subagents, and the advisor",children:N0.jsxDEV(e1,{loading:H,error:K,data:N,children:N&&N0.jsxDEV(gP,{stats:N.byAgentType},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),N0.jsxDEV("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[N0.jsxDEV("div",{className:"lg:col-span-2",children:N0.jsxDEV(f1,{title:"System Throughput",subtitle:"Request volume and errors over time",children:N0.jsxDEV(e1,{loading:H,error:K,data:N,children:N0.jsxDEV("div",{className:"h-[280px]",children:N?.timeSeries&&N.timeSeries.length>0?N0.jsxDEV(e5,{data:P,options:I},void 0,!1,void 0,this):N0.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),N0.jsxDEV("div",{children:N0.jsxDEV(f1,{title:"Operational Feed",subtitle:"Real-time request log",children:N0.jsxDEV(e1,{loading:w,error:F,data:M,fallback:N0.jsxDEV("div",{className:"space-y-4",children:Array.from({length:5}).map((D,h)=>N0.jsxDEV("div",{className:"flex items-center gap-3",children:[N0.jsxDEV(Z6,{variant:"circle",width:10,height:10},void 0,!1,void 0,this),N0.jsxDEV("div",{className:"flex-1",children:[N0.jsxDEV(Z6,{variant:"text",width:"60%",height:16},void 0,!1,void 0,this),N0.jsxDEV(Z6,{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:N0.jsxDEV("div",{className:"stats-feed-ledger overflow-y-auto max-h-[280px] pr-2",children:[V.map((D)=>{let h=!!D.errorMessage;return N0.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:[N0.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),N0.jsxDEV("div",{className:"flex-1 min-w-0",children:[N0.jsxDEV("div",{className:"flex justify-between items-baseline gap-2",children:[N0.jsxDEV("div",{className:"stats-font-medium stats-text-primary text-sm truncate",children:D.model},void 0,!1,void 0,this),N0.jsxDEV("div",{className:"stats-text-xs stats-text-muted whitespace-nowrap",children:d4(D.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),N0.jsxDEV("div",{className:"flex justify-between items-center text-xs stats-text-muted mt-0.5",children:[N0.jsxDEV("div",{children:D.provider},void 0,!1,void 0,this),N0.jsxDEV("div",{children:[D.duration?E5(D.duration):""," ",D.usage?.cost?.total?`· ${d1(D.usage.cost.total,4)}`:""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),h&&N0.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)}),V.length===0&&N0.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),N0.jsxDEV(f1,{title:"Recent Requests Preview",subtitle:"Latest transactions processed by the proxy",actions:N0.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:N0.jsxDEV(e1,{loading:w,error:F,data:M,children:N0.jsxDEV(y2,{columns:A,data:V,keyExtractor:(D)=>D.id||`${D.sessionFile}-${D.entryId}`,onRowClick:(D)=>D.id&&q(D.id),renderMobileCard:O,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 vK=i(I1(),1);var G1=i(M0(),1);function uP({active:Q,range:J,refreshTrigger:X}){let{data:q,error:N,loading:K}=T5(["projects",J,X],(w)=>qL(J,w),{pollMs:30000,enabled:Q}),H=vK.useMemo(()=>{if(!q)return[];return RP(q)},[q]),M=vK.useMemo(()=>[{key:"folder",header:"Project/Folder",render:(w)=>G1.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)=>G1.jsxDEV("div",{className:"stats-text-right",children:[G1.jsxDEV("div",{className:"font-mono",children:t0(w.totalRequests)},void 0,!1,void 0,this),G1.jsxDEV("div",{className:"stats-progress-bar-track mt-1 ml-auto w-24 h-1",children:G1.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)=>G1.jsxDEV("div",{className:"stats-text-right",children:[G1.jsxDEV("div",{className:"font-mono",children:d1(w.totalCost)},void 0,!1,void 0,this),G1.jsxDEV("div",{className:"stats-progress-bar-track mt-1 ml-auto w-24 h-1",children:G1.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)=>G1.jsxDEV("div",{className:"font-mono",children:t0(w.totalInputTokens+w.totalOutputTokens)},void 0,!1,void 0,this)},{key:"cacheRate",header:"Cache Rate",numeric:!0,render:(w)=>G1.jsxDEV("span",{className:"stats-text-success font-medium",children:$6(w.cacheRate)},void 0,!1,void 0,this)},{key:"errorRate",header:"Error Rate",numeric:!0,render:(w)=>G1.jsxDEV(C6,{variant:w.errorRate>0.1?"danger":w.errorRate>0?"warning":"success",children:$6(w.errorRate)},void 0,!1,void 0,this)},{key:"avgDuration",header:"Avg Duration",numeric:!0,render:(w)=>E5(w.avgDuration)}],[]);return G1.jsxDEV("div",{className:"stats-route-container",children:G1.jsxDEV(f1,{title:"Projects & Folders",subtitle:"Aggregate proxy metrics grouped by folder path",children:G1.jsxDEV(e1,{loading:K,error:N,data:q,emptyText:"No project folders recorded for this range.",children:G1.jsxDEV(y2,{columns:M,data:H,keyExtractor:(w)=>w.folder,renderMobileCard:(w)=>G1.jsxDEV("div",{className:"stats-mobile-card",children:[G1.jsxDEV("div",{className:"stats-mobile-card-header mb-2",children:[G1.jsxDEV("div",{className:"stats-font-semibold stats-text-primary",children:w.folder||"(root)"},void 0,!1,void 0,this),G1.jsxDEV(C6,{variant:w.errorRate>0.1?"danger":w.errorRate>0?"warning":"success",children:[$6(w.errorRate)," Err"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),G1.jsxDEV("div",{className:"stats-mobile-card-grid",children:[G1.jsxDEV("div",{children:[G1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Requests"},void 0,!1,void 0,this),G1.jsxDEV("div",{className:"stats-mobile-card-value font-mono",children:t0(w.totalRequests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),G1.jsxDEV("div",{children:[G1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Cost"},void 0,!1,void 0,this),G1.jsxDEV("div",{className:"stats-mobile-card-value font-mono",children:d1(w.totalCost)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),G1.jsxDEV("div",{children:[G1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Cache"},void 0,!1,void 0,this),G1.jsxDEV("div",{className:"stats-mobile-card-value",children:$6(w.cacheRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),G1.jsxDEV("div",{children:[G1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Duration"},void 0,!1,void 0,this),G1.jsxDEV("div",{className:"stats-mobile-card-value",children:E5(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 xP=i(I1(),1);var H1=i(M0(),1);function mP({active:Q,refreshTrigger:J,onRequestClick:X}){let{data:q,error:N,loading:K}=T5(["recent-requests-dense",J],(F)=>t3(50,F),{pollMs:30000,enabled:Q}),H=xP.useMemo(()=>[{key:"model",header:"Model",render:(F)=>H1.jsxDEV("div",{children:[H1.jsxDEV("div",{className:"stats-font-medium stats-text-primary",children:F.model},void 0,!1,void 0,this),H1.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:F.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"timestamp",header:"Time",render:(F)=>d4(F.timestamp)},{key:"tokens",header:"Tokens",numeric:!0,render:(F)=>t0(F.usage.totalTokens)},{key:"cost",header:"Cost",numeric:!0,render:(F)=>d1(F.usage.cost.total,4)},{key:"duration",header:"Duration",numeric:!0,render:(F)=>E5(F.duration)},{key:"status",header:"Status",className:"stats-text-center",render:(F)=>H1.jsxDEV(C6,{variant:F.errorMessage?"danger":"success",children:F.errorMessage?"Failed":"Success"},void 0,!1,void 0,this)}],[]);return H1.jsxDEV("div",{className:"stats-route-container",children:H1.jsxDEV(f1,{title:"All Recent Requests",subtitle:"Up to 50 most recent requests processed by OMP",children:H1.jsxDEV(e1,{loading:K,error:N,data:q,children:H1.jsxDEV(y2,{columns:H,data:q||[],keyExtractor:(F)=>F.id||`${F.sessionFile}-${F.entryId}`,onRowClick:(F)=>F.id&&X(F.id),renderMobileCard:(F,w)=>H1.jsxDEV("div",{className:"stats-mobile-card",onClick:w,children:[H1.jsxDEV("div",{className:"stats-mobile-card-header",children:[H1.jsxDEV("div",{children:[H1.jsxDEV("div",{className:"stats-font-semibold stats-text-primary",children:F.model},void 0,!1,void 0,this),H1.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:F.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H1.jsxDEV(C6,{variant:F.errorMessage?"danger":"success",children:F.errorMessage?"Failed":"Success"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H1.jsxDEV("div",{className:"stats-mobile-card-grid",children:[H1.jsxDEV("div",{children:[H1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Time"},void 0,!1,void 0,this),H1.jsxDEV("div",{className:"stats-mobile-card-value",children:d4(F.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H1.jsxDEV("div",{children:[H1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Cost"},void 0,!1,void 0,this),H1.jsxDEV("div",{className:"stats-mobile-card-value",children:d1(F.usage.cost.total,4)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H1.jsxDEV("div",{children:[H1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Tokens"},void 0,!1,void 0,this),H1.jsxDEV("div",{className:"stats-mobile-card-value",children:t0(F.usage.totalTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H1.jsxDEV("div",{children:[H1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Duration"},void 0,!1,void 0,this),H1.jsxDEV("div",{className:"stats-mobile-card-value",children:E5(F.duration)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.errorMessage&&H1.jsxDEV("div",{className:"stats-mobile-card-error truncate mt-2",children:F.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 h5=i(M0(),1);function bK(){let{section:Q,setSection:J,range:X,setRange:q}=LL(),[N,K]=j8.useState(0),[H,M]=j8.useState(null),[F,w]=j8.useState(()=>Date.now()),z=j8.useCallback((O)=>{if(O.success)K((V)=>V+1),w(Date.now())},[]),T=j8.useCallback(()=>M(null),[]),P=Q,I=j8.useRef(new Set);I.current.add(P);let A=(O)=>{let V=O===P;switch(O){case"overview":return h5.jsxDEV(hP,{active:V,range:X,refreshTrigger:N,onRequestClick:M},void 0,!1,void 0,this);case"requests":return h5.jsxDEV(mP,{active:V,range:X,refreshTrigger:N,onRequestClick:M},void 0,!1,void 0,this);case"errors":return h5.jsxDEV(vP,{active:V,range:X,refreshTrigger:N,onRequestClick:M},void 0,!1,void 0,this);case"models":return h5.jsxDEV(fP,{active:V,range:X,refreshTrigger:N},void 0,!1,void 0,this);case"costs":return h5.jsxDEV(jP,{active:V,range:X,refreshTrigger:N},void 0,!1,void 0,this);case"behavior":return h5.jsxDEV(SP,{active:V,range:X,refreshTrigger:N},void 0,!1,void 0,this);case"projects":return h5.jsxDEV(uP,{active:V,range:X,refreshTrigger:N},void 0,!1,void 0,this);case"gain":return h5.jsxDEV(bP,{active:V,range:X,refreshTrigger:N},void 0,!1,void 0,this)}};return h5.jsxDEV(h5.Fragment,{children:[h5.jsxDEV(zL,{activeSection:P,onSectionChange:J,range:X,onRangeChange:q,updatedAt:F,onSyncComplete:z,children:[...I.current].map((O)=>h5.jsxDEV("div",{hidden:O!==P,children:A(O)},O,!1,void 0,this))},void 0,!1,void 0,this),h5.jsxDEV(CP,{id:H,onClose:T},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var pP=i(M0(),1),yD=dP.createRoot(document.getElementById("root"));yD.render(pP.jsxDEV(bK,{},void 0,!1,void 0,this));