@vib-rato/stats 0.16.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.
Files changed (69) hide show
  1. package/README.md +88 -0
  2. package/build.ts +84 -0
  3. package/dist/client/index.css +1 -0
  4. package/dist/client/index.html +13 -0
  5. package/dist/client/index.js +257 -0
  6. package/dist/client/styles.css +1141 -0
  7. package/dist/types/aggregator.d.ts +65 -0
  8. package/dist/types/client/App.d.ts +1 -0
  9. package/dist/types/client/api.d.ts +16 -0
  10. package/dist/types/client/components/BehaviorChart.d.ts +6 -0
  11. package/dist/types/client/components/BehaviorModelsTable.d.ts +7 -0
  12. package/dist/types/client/components/BehaviorSummary.d.ts +7 -0
  13. package/dist/types/client/components/ChartsContainer.d.ts +7 -0
  14. package/dist/types/client/components/CostChart.d.ts +6 -0
  15. package/dist/types/client/components/CostSummary.d.ts +6 -0
  16. package/dist/types/client/components/Header.d.ts +12 -0
  17. package/dist/types/client/components/ModelsTable.d.ts +8 -0
  18. package/dist/types/client/components/RequestDetail.d.ts +6 -0
  19. package/dist/types/client/components/RequestList.d.ts +8 -0
  20. package/dist/types/client/components/StatsGrid.d.ts +6 -0
  21. package/dist/types/client/components/chart-shared.d.ts +190 -0
  22. package/dist/types/client/components/models-table-shared.d.ts +195 -0
  23. package/dist/types/client/components/range-meta.d.ts +21 -0
  24. package/dist/types/client/index.d.ts +1 -0
  25. package/dist/types/client/types.d.ts +62 -0
  26. package/dist/types/client/useSystemTheme.d.ts +2 -0
  27. package/dist/types/compiled-client-assets.d.ts +3 -0
  28. package/dist/types/db.d.ts +93 -0
  29. package/dist/types/index.d.ts +5 -0
  30. package/dist/types/parser.d.ts +40 -0
  31. package/dist/types/server.d.ts +18 -0
  32. package/dist/types/shared-types.d.ts +192 -0
  33. package/dist/types/sync-worker.d.ts +31 -0
  34. package/dist/types/types.d.ts +120 -0
  35. package/dist/types/user-metrics.d.ts +72 -0
  36. package/package.json +92 -0
  37. package/src/aggregator.ts +454 -0
  38. package/src/client/App.tsx +221 -0
  39. package/src/client/api.ts +71 -0
  40. package/src/client/components/BehaviorChart.tsx +189 -0
  41. package/src/client/components/BehaviorModelsTable.tsx +342 -0
  42. package/src/client/components/BehaviorSummary.tsx +95 -0
  43. package/src/client/components/ChartsContainer.tsx +232 -0
  44. package/src/client/components/CostChart.tsx +171 -0
  45. package/src/client/components/CostSummary.tsx +53 -0
  46. package/src/client/components/Header.tsx +73 -0
  47. package/src/client/components/ModelsTable.tsx +265 -0
  48. package/src/client/components/RequestDetail.tsx +172 -0
  49. package/src/client/components/RequestList.tsx +73 -0
  50. package/src/client/components/StatsGrid.tsx +135 -0
  51. package/src/client/components/chart-shared.tsx +331 -0
  52. package/src/client/components/models-table-shared.tsx +275 -0
  53. package/src/client/components/range-meta.ts +72 -0
  54. package/src/client/css.d.ts +1 -0
  55. package/src/client/index.tsx +6 -0
  56. package/src/client/styles.css +318 -0
  57. package/src/client/types.ts +78 -0
  58. package/src/client/useSystemTheme.ts +31 -0
  59. package/src/compiled-client-assets.ts +96 -0
  60. package/src/db.ts +1100 -0
  61. package/src/embedded-client.generated.txt +7 -0
  62. package/src/index.ts +182 -0
  63. package/src/parser.ts +334 -0
  64. package/src/server.ts +332 -0
  65. package/src/shared-types.ts +204 -0
  66. package/src/sync-worker.ts +40 -0
  67. package/src/types.ts +125 -0
  68. package/src/user-metrics.ts +686 -0
  69. package/tailwind.config.js +54 -0
@@ -0,0 +1,257 @@
1
+ var yk=Object.create;var{getPrototypeOf:bk,defineProperty:FI,getOwnPropertyNames:xk}=Object;var Sk=Object.prototype.hasOwnProperty;function vk(a){return this[a]}var Lk,Ck,be=(a,n,s)=>{var l=a!=null&&typeof a==="object";if(l){var r=n?Lk??=new WeakMap:Ck??=new WeakMap,c=r.get(a);if(c)return c}s=a!=null?yk(bk(a)):{};let f=n||!a||!a.__esModule?FI(s,"default",{value:a,enumerable:!0}):s;if(a&&typeof a==="object"||typeof a==="function"){for(let h of xk(a))if(!Sk.call(f,h))FI(f,h,{get:vk.bind(a,h),enumerable:!0})}if(l)r.set(a,f);return f};var ni=(a,n)=>()=>(n||a((n={exports:{}}).exports,n),n.exports);var NI=ni(function(Ik){(function(){function a(){if(Z=!1,J){var G=Ik.unstable_now();ce=G;var se=!0;try{e:{N=!1,Q&&(Q=!1,oe(re),re=-1),z=!0;var de=w;try{t:{c(G);for(D=s(v);D!==null&&!(D.expirationTime>G&&h());){var Ve=D.callback;if(typeof Ve==="function"){D.callback=null,w=D.priorityLevel;var Ee=Ve(D.expirationTime<=G);if(G=Ik.unstable_now(),typeof Ee==="function"){D.callback=Ee,c(G),se=!0;break t}D===s(v)&&l(v),c(G)}else l(v);D=s(v)}if(D!==null)se=!0;else{var R=s(I);R!==null&&p(f,R.startTime-G),se=!1}}break e}finally{D=null,w=de,z=!1}se=void 0}}finally{se?ye():J=!1}}}function n(G,se){var de=G.length;G.push(se);e:for(;0<de;){var Ve=de-1>>>1,Ee=G[Ve];if(0<r(Ee,se))G[Ve]=se,G[de]=Ee,de=Ve;else break e}}function s(G){return G.length===0?null:G[0]}function l(G){if(G.length===0)return null;var se=G[0],de=G.pop();if(de!==se){G[0]=de;e:for(var Ve=0,Ee=G.length,R=Ee>>>1;Ve<R;){var W=2*(Ve+1)-1,fe=G[W],he=W+1,Be=G[he];if(0>r(fe,de))he<Ee&&0>r(Be,fe)?(G[Ve]=Be,G[he]=de,Ve=he):(G[Ve]=fe,G[W]=de,Ve=W);else if(he<Ee&&0>r(Be,de))G[Ve]=Be,G[he]=de,Ve=he;else break e}}return se}function r(G,se){var de=G.sortIndex-se.sortIndex;return de!==0?de:G.id-se.id}function c(G){for(var se=s(I);se!==null;){if(se.callback===null)l(I);else if(se.startTime<=G)l(I),se.sortIndex=se.expirationTime,n(v,se);else break;se=s(I)}}function f(G){if(Q=!1,c(G),!N)if(s(v)!==null)N=!0,J||(J=!0,ye());else{var se=s(I);se!==null&&p(f,se.startTime-G)}}function h(){return Z?!0:Ik.unstable_now()-ce<q?!1:!0}function p(G,se){re=X(function(){G(Ik.unstable_now())},se)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),Ik.unstable_now=void 0,typeof performance==="object"&&typeof performance.now==="function"){var y=performance;Ik.unstable_now=function(){return y.now()}}else{var b=Date,x=b.now();Ik.unstable_now=function(){return b.now()-x}}var v=[],I=[],M=1,D=null,w=3,z=!1,N=!1,Q=!1,Z=!1,X=typeof setTimeout==="function"?setTimeout:null,oe=typeof clearTimeout==="function"?clearTimeout:null,V=typeof setImmediate<"u"?setImmediate:null,J=!1,re=-1,q=5,ce=-1;if(typeof V==="function")var ye=function(){V(a)};else if(typeof MessageChannel<"u"){var Se=new MessageChannel,Me=Se.port2;Se.port1.onmessage=a,ye=function(){Me.postMessage(null)}}else ye=function(){X(a,0)};Ik.unstable_IdlePriority=5,Ik.unstable_ImmediatePriority=1,Ik.unstable_LowPriority=4,Ik.unstable_NormalPriority=3,Ik.unstable_Profiling=null,Ik.unstable_UserBlockingPriority=2,Ik.unstable_cancelCallback=function(G){G.callback=null},Ik.unstable_forceFrameRate=function(G){0>G||125<G?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):q=0<G?Math.floor(1000/G):5},Ik.unstable_getCurrentPriorityLevel=function(){return w},Ik.unstable_next=function(G){switch(w){case 1:case 2:case 3:var se=3;break;default:se=w}var de=w;w=se;try{return G()}finally{w=de}},Ik.unstable_requestPaint=function(){Z=!0},Ik.unstable_runWithPriority=function(G,se){switch(G){case 1:case 2:case 3:case 4:case 5:break;default:G=3}var de=w;w=G;try{return se()}finally{w=de}},Ik.unstable_scheduleCallback=function(G,se,de){var Ve=Ik.unstable_now();switch(typeof de==="object"&&de!==null?(de=de.delay,de=typeof de==="number"&&0<de?Ve+de:Ve):de=Ve,G){case 1:var Ee=-1;break;case 2:Ee=250;break;case 5:Ee=1073741823;break;case 4:Ee=1e4;break;default:Ee=5000}return Ee=de+Ee,G={id:M++,callback:se,priorityLevel:G,startTime:de,expirationTime:Ee,sortIndex:-1},de>Ve?(G.sortIndex=de,n(I,G),s(v)===null&&G===s(I)&&(Q?(oe(re),re=-1):Q=!0,p(f,de-Ve))):(G.sortIndex=Ee,n(v,G),N||z||(N=!0,J||(J=!0,ye()))),G},Ik.unstable_shouldYield=h,Ik.unstable_wrapCallback=function(G){var se=w;return function(){var de=w;w=se;try{return G.apply(this,arguments)}finally{w=de}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var ea=ni(function(wk,Vh){(function(){function a(C,B){Object.defineProperty(l.prototype,C,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",B[0],B[1])}})}function n(C){if(C===null||typeof C!=="object")return null;return C=wd&&C[wd]||C["@@iterator"],typeof C==="function"?C:null}function s(C,B){C=(C=C.constructor)&&(C.displayName||C.name)||"ReactClass";var Y=C+"."+B;ne[Y]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",B,C),ne[Y]=!0)}function l(C,B,Y){this.props=C,this.context=B,this.refs=ps,this.updater=Y||Dl}function r(){}function c(C,B,Y){this.props=C,this.context=B,this.refs=ps,this.updater=Y||Dl}function f(){}function h(C){return""+C}function p(C){try{h(C);var B=!1}catch(ie){B=!0}if(B){B=console;var Y=B.error,ee=typeof Symbol==="function"&&Symbol.toStringTag&&C[Symbol.toStringTag]||C.constructor.name||"Object";return Y.call(B,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",ee),h(C)}}function y(C){if(C==null)return null;if(typeof C==="function")return C.$$typeof===su?null:C.displayName||C.name||null;if(typeof C==="string")return C;switch(C){case Ee:return"Fragment";case W:return"Profiler";case R:return"StrictMode";case Dt:return"Suspense";case Te:return"SuspenseList";case Mo: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 Ve:return"Portal";case he:return C.displayName||"Context";case fe:return(C._context.displayName||"Context")+".Consumer";case Be:var B=C.render;return C=C.displayName,C||(C=B.displayName||B.name||"",C=C!==""?"ForwardRef("+C+")":"ForwardRef"),C;case Pt:return B=C.displayName||null,B!==null?B:y(C.type)||"Memo";case ca:B=C._payload,C=C._init;try{return y(C(B))}catch(Y){}}return null}function b(C){if(C===Ee)return"<>";if(typeof C==="object"&&C!==null&&C.$$typeof===ca)return"<...>";try{var B=y(C);return B?"<"+B+">":"<...>"}catch(Y){return"<...>"}}function x(){var C=_e.A;return C===null?null:C.getOwner()}function v(){return Error("react-stack-top-frame")}function I(C){if(Rl.call(C,"key")){var B=Object.getOwnPropertyDescriptor(C,"key").get;if(B&&B.isReactWarning)return!1}return C.key!==void 0}function M(C,B){function Y(){Md||(Md=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",B))}Y.isReactWarning=!0,Object.defineProperty(C,"key",{get:Y,configurable:!0})}function D(){var C=y(this.type);return Ci[C]||(Ci[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 w(C,B,Y,ee,ie,Ie){var we=Y.ref;return C={$$typeof:de,type:C,key:B,props:Y,_owner:ee},(we!==void 0?we:null)!==null?Object.defineProperty(C,"ref",{enumerable:!1,get:D}):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:ie}),Object.defineProperty(C,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Ie}),Object.freeze&&(Object.freeze(C.props),Object.freeze(C)),C}function z(C,B){return B=w(C.type,B,C.props,C._owner,C._debugStack,C._debugTask),C._store&&(B._store.validated=C._store.validated),B}function N(C){Q(C)?C._store&&(C._store.validated=1):typeof C==="object"&&C!==null&&C.$$typeof===ca&&(C._payload.status==="fulfilled"?Q(C._payload.value)&&C._payload.value._store&&(C._payload.value._store.validated=1):C._store&&(C._store.validated=1))}function Q(C){return typeof C==="object"&&C!==null&&C.$$typeof===de}function Z(C){var B={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(Y){return B[Y]})}function X(C,B){return typeof C==="object"&&C!==null&&C.key!=null?(p(C.key),Z(""+C.key)):B.toString(36)}function oe(C){switch(C.status){case"fulfilled":return C.value;case"rejected":throw C.reason;default:switch(typeof C.status==="string"?C.then(f,f):(C.status="pending",C.then(function(B){C.status==="pending"&&(C.status="fulfilled",C.value=B)},function(B){C.status==="pending"&&(C.status="rejected",C.reason=B)})),C.status){case"fulfilled":return C.value;case"rejected":throw C.reason}}throw C}function V(C,B,Y,ee,ie){var Ie=typeof C;if(Ie==="undefined"||Ie==="boolean")C=null;var we=!1;if(C===null)we=!0;else switch(Ie){case"bigint":case"string":case"number":we=!0;break;case"object":switch(C.$$typeof){case de:case Ve:we=!0;break;case ca:return we=C._init,V(we(C._payload),B,Y,ee,ie)}}if(we){we=C,ie=ie(we);var Ze=ee===""?"."+X(we,0):ee;return rt(ie)?(Y="",Ze!=null&&(Y=Ze.replace(Ol,"$&/")+"/"),V(ie,B,Y,"",function(da){return da})):ie!=null&&(Q(ie)&&(ie.key!=null&&(we&&we.key===ie.key||p(ie.key)),Y=z(ie,Y+(ie.key==null||we&&we.key===ie.key?"":(""+ie.key).replace(Ol,"$&/")+"/")+Ze),ee!==""&&we!=null&&Q(we)&&we.key==null&&we._store&&!we._store.validated&&(Y._store.validated=2),ie=Y),B.push(ie)),1}if(we=0,Ze=ee===""?".":ee+":",rt(C))for(var me=0;me<C.length;me++)ee=C[me],Ie=Ze+X(ee,me),we+=V(ee,B,Y,Ie,ie);else if(me=n(C),typeof me==="function")for(me===C.entries&&(kl||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),kl=!0),C=me.call(C),me=0;!(ee=C.next()).done;)ee=ee.value,Ie=Ze+X(ee,me++),we+=V(ee,B,Y,Ie,ie);else if(Ie==="object"){if(typeof C.then==="function")return V(oe(C),B,Y,ee,ie);throw B=String(C),Error("Objects are not valid as a React child (found: "+(B==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":B)+"). If you meant to render a collection of children, use an array instead.")}return we}function J(C,B,Y){if(C==null)return C;var ee=[],ie=0;return V(C,ee,"","",function(Ie){return B.call(Y,Ie,ie++)}),ee}function re(C){if(C._status===-1){var B=C._ioInfo;B!=null&&(B.start=B.end=performance.now()),B=C._result;var Y=B();if(Y.then(function(ie){if(C._status===0||C._status===-1){C._status=1,C._result=ie;var Ie=C._ioInfo;Ie!=null&&(Ie.end=performance.now()),Y.status===void 0&&(Y.status="fulfilled",Y.value=ie)}},function(ie){if(C._status===0||C._status===-1){C._status=2,C._result=ie;var Ie=C._ioInfo;Ie!=null&&(Ie.end=performance.now()),Y.status===void 0&&(Y.status="rejected",Y.reason=ie)}}),B=C._ioInfo,B!=null){B.value=Y;var ee=Y.displayName;typeof ee==="string"&&(B.name=ee)}C._status===-1&&(C._status=0,C._result=Y)}if(C._status===1)return B=C._result,B===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
2
+
3
+ Your code should look like:
4
+ const MyComponent = lazy(() => import('./MyComponent'))
5
+
6
+ Did you accidentally put curly braces around the import?`,B),"default"in B||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
7
+
8
+ Your code should look like:
9
+ const MyComponent = lazy(() => import('./MyComponent'))`,B),B.default;throw C._result}function q(){var C=_e.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
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
11
+ 2. You might be breaking the Rules of Hooks
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 ce(){_e.asyncTransitions--}function ye(C){if(wi===null)try{var B=("require"+Math.random()).slice(0,7);wi=(Vh&&Vh[B]).call(Vh,"timers").setImmediate}catch(Y){wi=function(ee){Td===!1&&(Td=!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 ie=new MessageChannel;ie.port1.onmessage=ee,ie.port2.postMessage(void 0)}}return wi(C)}function Se(C){return 1<C.length&&typeof AggregateError==="function"?AggregateError(C):C[0]}function Me(C,B){B!==Mi-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. "),Mi=B}function G(C,B,Y){var ee=_e.actQueue;if(ee!==null)if(ee.length!==0)try{se(ee),ye(function(){return G(C,B,Y)});return}catch(ie){_e.thrownErrors.push(ie)}else _e.actQueue=null;0<_e.thrownErrors.length?(ee=Se(_e.thrownErrors),_e.thrownErrors.length=0,Y(ee)):B(C)}function se(C){if(!Ai){Ai=!0;var B=0;try{for(;B<C.length;B++){var Y=C[B];do{_e.didUsePromise=!1;var ee=Y(!1);if(ee!==null){if(_e.didUsePromise){C[B]=Y,C.splice(0,B);return}Y=ee}else break}while(1)}C.length=0}catch(ie){C.splice(0,B+1),_e.thrownErrors.push(ie)}finally{Ai=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var de=Symbol.for("react.transitional.element"),Ve=Symbol.for("react.portal"),Ee=Symbol.for("react.fragment"),R=Symbol.for("react.strict_mode"),W=Symbol.for("react.profiler"),fe=Symbol.for("react.consumer"),he=Symbol.for("react.context"),Be=Symbol.for("react.forward_ref"),Dt=Symbol.for("react.suspense"),Te=Symbol.for("react.suspense_list"),Pt=Symbol.for("react.memo"),ca=Symbol.for("react.lazy"),Mo=Symbol.for("react.activity"),wd=Symbol.iterator,ne={},Dl={isMounted:function(){return!1},enqueueForceUpdate:function(C){s(C,"forceUpdate")},enqueueReplaceState:function(C){s(C,"replaceState")},enqueueSetState:function(C){s(C,"setState")}},Li=Object.assign,ps={};Object.freeze(ps),l.prototype.isReactComponent={},l.prototype.setState=function(C,B){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,B,"setState")},l.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};var Wt={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(gs in Wt)Wt.hasOwnProperty(gs)&&a(gs,Wt[gs]);r.prototype=l.prototype,Wt=c.prototype=new r,Wt.constructor=c,Li(Wt,l.prototype),Wt.isPureReactComponent=!0;var rt=Array.isArray,su=Symbol.for("react.client.reference"),_e={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},Rl=Object.prototype.hasOwnProperty,ht=console.createTask?console.createTask:function(){return null};Wt={react_stack_bottom_frame:function(C){return C()}};var Md,Vo,Ci={},Ii=Wt.react_stack_bottom_frame.bind(Wt,v)(),sm=ht(b(v)),kl=!1,Ol=/\/+/g,ms=typeof reportError==="function"?reportError:function(C){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var B=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(B))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",C);return}console.error(C)},Td=!1,wi=null,Mi=0,Ti=!1,Ai=!1,iu=typeof queueMicrotask==="function"?function(C){queueMicrotask(function(){return queueMicrotask(C)})}:ye;Wt=Object.freeze({__proto__:null,c:function(C){return q().useMemoCache(C)}});var gs={map:J,forEach:function(C,B,Y){J(C,function(){B.apply(this,arguments)},Y)},count:function(C){var B=0;return J(C,function(){B++}),B},toArray:function(C){return J(C,function(B){return B})||[]},only:function(C){if(!Q(C))throw Error("React.Children.only expected to receive a single React element child.");return C}};wk.Activity=Mo,wk.Children=gs,wk.Component=l,wk.Fragment=Ee,wk.Profiler=W,wk.PureComponent=c,wk.StrictMode=R,wk.Suspense=Dt,wk.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=_e,wk.__COMPILER_RUNTIME=Wt,wk.act=function(C){var B=_e.actQueue,Y=Mi;Mi++;var ee=_e.actQueue=B!==null?B:[],ie=!1;try{var Ie=C()}catch(me){_e.thrownErrors.push(me)}if(0<_e.thrownErrors.length)throw Me(B,Y),C=Se(_e.thrownErrors),_e.thrownErrors.length=0,C;if(Ie!==null&&typeof Ie==="object"&&typeof Ie.then==="function"){var we=Ie;return iu(function(){ie||Ti||(Ti=!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(me,da){ie=!0,we.then(function(Va){if(Me(B,Y),Y===0){try{se(ee),ye(function(){return G(Va,me,da)})}catch(lu){_e.thrownErrors.push(lu)}if(0<_e.thrownErrors.length){var ys=Se(_e.thrownErrors);_e.thrownErrors.length=0,da(ys)}}else me(Va)},function(Va){Me(B,Y),0<_e.thrownErrors.length?(Va=Se(_e.thrownErrors),_e.thrownErrors.length=0,da(Va)):da(Va)})}}}var Ze=Ie;if(Me(B,Y),Y===0&&(se(ee),ee.length!==0&&iu(function(){ie||Ti||(Ti=!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(() => ...)"))}),_e.actQueue=null),0<_e.thrownErrors.length)throw C=Se(_e.thrownErrors),_e.thrownErrors.length=0,C;return{then:function(me,da){ie=!0,Y===0?(_e.actQueue=ee,ye(function(){return G(Ze,me,da)})):me(Ze)}}},wk.cache=function(C){return function(){return C.apply(null,arguments)}},wk.cacheSignal=function(){return null},wk.captureOwnerStack=function(){var C=_e.getCurrentStack;return C===null?null:C()},wk.cloneElement=function(C,B,Y){if(C===null||C===void 0)throw Error("The argument must be a React element, but you passed "+C+".");var ee=Li({},C.props),ie=C.key,Ie=C._owner;if(B!=null){var we;e:{if(Rl.call(B,"ref")&&(we=Object.getOwnPropertyDescriptor(B,"ref").get)&&we.isReactWarning){we=!1;break e}we=B.ref!==void 0}we&&(Ie=x()),I(B)&&(p(B.key),ie=""+B.key);for(Ze in B)!Rl.call(B,Ze)||Ze==="key"||Ze==="__self"||Ze==="__source"||Ze==="ref"&&B.ref===void 0||(ee[Ze]=B[Ze])}var Ze=arguments.length-2;if(Ze===1)ee.children=Y;else if(1<Ze){we=Array(Ze);for(var me=0;me<Ze;me++)we[me]=arguments[me+2];ee.children=we}ee=w(C.type,ie,ee,Ie,C._debugStack,C._debugTask);for(ie=2;ie<arguments.length;ie++)N(arguments[ie]);return ee},wk.createContext=function(C){return C={$$typeof:he,_currentValue:C,_currentValue2:C,_threadCount:0,Provider:null,Consumer:null},C.Provider=C,C.Consumer={$$typeof:fe,_context:C},C._currentRenderer=null,C._currentRenderer2=null,C},wk.createElement=function(C,B,Y){for(var ee=2;ee<arguments.length;ee++)N(arguments[ee]);ee={};var ie=null;if(B!=null)for(me in Vo||!("__self"in B)||"key"in B||(Vo=!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(B)&&(p(B.key),ie=""+B.key),B)Rl.call(B,me)&&me!=="key"&&me!=="__self"&&me!=="__source"&&(ee[me]=B[me]);var Ie=arguments.length-2;if(Ie===1)ee.children=Y;else if(1<Ie){for(var we=Array(Ie),Ze=0;Ze<Ie;Ze++)we[Ze]=arguments[Ze+2];Object.freeze&&Object.freeze(we),ee.children=we}if(C&&C.defaultProps)for(me in Ie=C.defaultProps,Ie)ee[me]===void 0&&(ee[me]=Ie[me]);ie&&M(ee,typeof C==="function"?C.displayName||C.name||"Unknown":C);var me=1e4>_e.recentlyCreatedOwnerStacks++;return w(C,ie,ee,x(),me?Error("react-stack-top-frame"):Ii,me?ht(b(C)):sm)},wk.createRef=function(){var C={current:null};return Object.seal(C),C},wk.forwardRef=function(C){C!=null&&C.$$typeof===Pt?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 B={$$typeof:Be,render:C},Y;return Object.defineProperty(B,"displayName",{enumerable:!1,configurable:!0,get:function(){return Y},set:function(ee){Y=ee,C.name||C.displayName||(Object.defineProperty(C,"name",{value:ee}),C.displayName=ee)}}),B},wk.isValidElement=Q,wk.lazy=function(C){C={_status:-1,_result:C};var B={$$typeof:ca,_payload:C,_init:re},Y={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=Y,B._debugInfo=[{awaited:Y}],B},wk.memo=function(C,B){C==null&&console.error("memo: The first argument must be a component. Instead received: %s",C===null?"null":typeof C),B={$$typeof:Pt,type:C,compare:B===void 0?null:B};var Y;return Object.defineProperty(B,"displayName",{enumerable:!1,configurable:!0,get:function(){return Y},set:function(ee){Y=ee,C.name||C.displayName||(Object.defineProperty(C,"name",{value:ee}),C.displayName=ee)}}),B},wk.startTransition=function(C){var B=_e.T,Y={};Y._updatedFibers=new Set,_e.T=Y;try{var ee=C(),ie=_e.S;ie!==null&&ie(Y,ee),typeof ee==="object"&&ee!==null&&typeof ee.then==="function"&&(_e.asyncTransitions++,ee.then(ce,ce),ee.then(f,ms))}catch(Ie){ms(Ie)}finally{B===null&&Y._updatedFibers&&(C=Y._updatedFibers.size,Y._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.")),B!==null&&Y.types!==null&&(B.types!==null&&B.types!==Y.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=Y.types),_e.T=B}},wk.unstable_useCacheRefresh=function(){return q().useCacheRefresh()},wk.use=function(C){return q().use(C)},wk.useActionState=function(C,B,Y){return q().useActionState(C,B,Y)},wk.useCallback=function(C,B){return q().useCallback(C,B)},wk.useContext=function(C){var B=q();return C.$$typeof===fe&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),B.useContext(C)},wk.useDebugValue=function(C,B){return q().useDebugValue(C,B)},wk.useDeferredValue=function(C,B){return q().useDeferredValue(C,B)},wk.useEffect=function(C,B){return C==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),q().useEffect(C,B)},wk.useEffectEvent=function(C){return q().useEffectEvent(C)},wk.useId=function(){return q().useId()},wk.useImperativeHandle=function(C,B,Y){return q().useImperativeHandle(C,B,Y)},wk.useInsertionEffect=function(C,B){return C==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),q().useInsertionEffect(C,B)},wk.useLayoutEffect=function(C,B){return C==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),q().useLayoutEffect(C,B)},wk.useMemo=function(C,B){return q().useMemo(C,B)},wk.useOptimistic=function(C,B){return q().useOptimistic(C,B)},wk.useReducer=function(C,B,Y){return q().useReducer(C,B,Y)},wk.useRef=function(C){return q().useRef(C)},wk.useState=function(C){return q().useState(C)},wk.useSyncExternalStore=function(C,B,Y){return q().useSyncExternalStore(C,B,Y)},wk.useTransition=function(){return q().useTransition()},wk.version="19.2.5",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var qI=ni(function(Mk){var Ub=be(ea());(function(){function a(){}function n(b){return""+b}function s(b,x,v){var I=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{n(I);var M=!1}catch(D){M=!0}return M&&(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"),n(I)),{$$typeof:p,key:I==null?null:""+I,children:b,containerInfo:x,implementation:v}}function l(b,x){if(b==="font")return"";if(typeof x==="string")return x==="use-credentials"?x:""}function r(b){return b===null?"`null`":b===void 0?"`undefined`":b===""?"an empty string":'something with type "'+typeof b+'"'}function c(b){return b===null?"`null`":b===void 0?"`undefined`":b===""?"an empty string":typeof b==="string"?JSON.stringify(b):typeof b==="number"?"`"+b+"`":'something with type "'+typeof b+'"'}function f(){var b=y.H;return b===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
14
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
15
+ 2. You might be breaking the Rules of Hooks
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.`),b}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var h={d:{f:a,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:a,C:a,L:a,m:a,X:a,S:a,M:a},p:0,findDOMNode:null},p=Symbol.for("react.portal"),y=Ub.__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"),Mk.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=h,Mk.createPortal=function(b,x){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!x||x.nodeType!==1&&x.nodeType!==9&&x.nodeType!==11)throw Error("Target container is not a DOM element.");return s(b,x,null,v)},Mk.flushSync=function(b){var x=y.T,v=h.p;try{if(y.T=null,h.p=2,b)return b()}finally{y.T=x,h.p=v,h.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},Mk.preconnect=function(b,x){typeof b==="string"&&b?x!=null&&typeof x!=="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.",c(x)):x!=null&&typeof x.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.",r(x.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",r(b)),typeof b==="string"&&(x?(x=x.crossOrigin,x=typeof x==="string"?x==="use-credentials"?x:"":void 0):x=null,h.d.C(b,x))},Mk.prefetchDNS=function(b){if(typeof b!=="string"||!b)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",r(b));else if(1<arguments.length){var x=arguments[1];typeof x==="object"&&x.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`.",c(x)):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`.",c(x))}typeof b==="string"&&h.d.D(b)},Mk.preinit=function(b,x){if(typeof b==="string"&&b?x==null||typeof x!=="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.",c(x)):x.as!=="style"&&x.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".',c(x.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",r(b)),typeof b==="string"&&x&&typeof x.as==="string"){var v=x.as,I=l(v,x.crossOrigin),M=typeof x.integrity==="string"?x.integrity:void 0,D=typeof x.fetchPriority==="string"?x.fetchPriority:void 0;v==="style"?h.d.S(b,typeof x.precedence==="string"?x.precedence:void 0,{crossOrigin:I,integrity:M,fetchPriority:D}):v==="script"&&h.d.X(b,{crossOrigin:I,integrity:M,fetchPriority:D,nonce:typeof x.nonce==="string"?x.nonce:void 0})}},Mk.preinitModule=function(b,x){var v="";if(typeof b==="string"&&b||(v+=" The `href` argument encountered was "+r(b)+"."),x!==void 0&&typeof x!=="object"?v+=" The `options` argument encountered was "+r(x)+".":x&&("as"in x)&&x.as!=="script"&&(v+=" The `as` option encountered was "+c(x.as)+"."),v)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",v);else switch(v=x&&typeof x.as==="string"?x.as:"script",v){case"script":break;default:v=c(v),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)',v,b)}if(typeof b==="string")if(typeof x==="object"&&x!==null){if(x.as==null||x.as==="script")v=l(x.as,x.crossOrigin),h.d.M(b,{crossOrigin:v,integrity:typeof x.integrity==="string"?x.integrity:void 0,nonce:typeof x.nonce==="string"?x.nonce:void 0})}else x==null&&h.d.M(b)},Mk.preload=function(b,x){var v="";if(typeof b==="string"&&b||(v+=" The `href` argument encountered was "+r(b)+"."),x==null||typeof x!=="object"?v+=" The `options` argument encountered was "+r(x)+".":typeof x.as==="string"&&x.as||(v+=" The `as` option encountered was "+r(x.as)+"."),v&&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',v),typeof b==="string"&&typeof x==="object"&&x!==null&&typeof x.as==="string"){v=x.as;var I=l(v,x.crossOrigin);h.d.L(b,v,{crossOrigin:I,integrity:typeof x.integrity==="string"?x.integrity:void 0,nonce:typeof x.nonce==="string"?x.nonce:void 0,type:typeof x.type==="string"?x.type:void 0,fetchPriority:typeof x.fetchPriority==="string"?x.fetchPriority:void 0,referrerPolicy:typeof x.referrerPolicy==="string"?x.referrerPolicy:void 0,imageSrcSet:typeof x.imageSrcSet==="string"?x.imageSrcSet:void 0,imageSizes:typeof x.imageSizes==="string"?x.imageSizes:void 0,media:typeof x.media==="string"?x.media:void 0})}},Mk.preloadModule=function(b,x){var v="";typeof b==="string"&&b||(v+=" The `href` argument encountered was "+r(b)+"."),x!==void 0&&typeof x!=="object"?v+=" The `options` argument encountered was "+r(x)+".":x&&("as"in x)&&typeof x.as!=="string"&&(v+=" The `as` option encountered was "+r(x.as)+"."),v&&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',v),typeof b==="string"&&(x?(v=l(x.as,x.crossOrigin),h.d.m(b,{as:typeof x.as==="string"&&x.as!=="script"?x.as:void 0,crossOrigin:v,integrity:typeof x.integrity==="string"?x.integrity:void 0})):h.d.m(b))},Mk.requestFormReset=function(b){h.d.r(b)},Mk.unstable_batchedUpdates=function(b,x){return b(x)},Mk.useFormState=function(b,x,v){return f().useFormState(b,x,v)},Mk.useFormStatus=function(){return f().useHostTransitionStatus()},Mk.version="19.2.5",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var jI=ni(function(NH,VI){var Tk=be(qI());VI.exports=Tk});var GI=ni(function(Ak){var Je=be(NI()),Br=be(ea()),Fb=be(jI());(function(){function a(e,t){for(e=e.memoizedState;e!==null&&0<t;)e=e.next,t--;return e}function n(e,t,o,i){if(o>=t.length)return i;var u=t[o],d=Gt(e)?e.slice():ze({},e);return d[u]=n(e[u],t,o+1,i),d}function s(e,t,o){if(t.length!==o.length)console.warn("copyWithRename() expects paths of the same length");else{for(var i=0;i<o.length-1;i++)if(t[i]!==o[i]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return l(e,t,o,0)}}function l(e,t,o,i){var u=t[i],d=Gt(e)?e.slice():ze({},e);return i+1===t.length?(d[o[i]]=d[u],Gt(d)?d.splice(u,1):delete d[u]):d[u]=l(e[u],t,o,i+1),d}function r(e,t,o){var i=t[o],u=Gt(e)?e.slice():ze({},e);if(o+1===t.length)return Gt(u)?u.splice(i,1):delete u[i],u;return u[i]=r(e[i],t,o+1),u}function c(){return!1}function f(){return null}function h(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}function p(){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 y(){}function b(){}function x(e){var t=[];return e.forEach(function(o){t.push(o)}),t.sort().join(", ")}function v(e,t,o,i){return new i_(e,t,o,i)}function I(e,t){e.context===zs&&(sy(e.current,2,t,e,null,null),Yl())}function M(e,t){if(ho!==null){var o=t.staleFamilies;t=t.updatedFamilies,Ou(),Y0(e.current,t,o),Yl()}}function D(e){ho=e}function w(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function z(e){var t=e,o=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(o=t.return),e=t.return;while(e)}return t.tag===3?o:null}function N(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Q(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Z(e){if(z(e)!==e)throw Error("Unable to find node on an unmounted component.")}function X(e){var t=e.alternate;if(!t){if(t=z(e),t===null)throw Error("Unable to find node on an unmounted component.");return t!==e?null:e}for(var o=e,i=t;;){var u=o.return;if(u===null)break;var d=u.alternate;if(d===null){if(i=u.return,i!==null){o=i;continue}break}if(u.child===d.child){for(d=u.child;d;){if(d===o)return Z(u),e;if(d===i)return Z(u),t;d=d.sibling}throw Error("Unable to find node on an unmounted component.")}if(o.return!==i.return)o=u,i=d;else{for(var m=!1,g=u.child;g;){if(g===o){m=!0,o=u,i=d;break}if(g===i){m=!0,i=u,o=d;break}g=g.sibling}if(!m){for(g=d.child;g;){if(g===o){m=!0,o=d,i=u;break}if(g===i){m=!0,i=d,o=u;break}g=g.sibling}if(!m)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(o.alternate!==i)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(o.tag!==3)throw Error("Unable to find node on an unmounted component.");return o.stateNode.current===o?e:t}function oe(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=oe(e),t!==null)return t;e=e.sibling}return null}function V(e){if(e===null||typeof e!=="object")return null;return e=KL&&e[KL]||e["@@iterator"],typeof e==="function"?e:null}function J(e){if(e==null)return null;if(typeof e==="function")return e.$$typeof===TD?null:e.displayName||e.name||null;if(typeof e==="string")return e;switch(e){case Kl:return"Fragment";case dy:return"Profiler";case zf:return"StrictMode";case hy:return"Suspense";case py:return"SuspenseList";case my:return"Activity"}if(typeof e==="object")switch(typeof e.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case Jl:return"Portal";case rn:return e.displayName||"Context";case fy:return(e._context.displayName||"Context")+".Consumer";case Vu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Hf:return t=e.displayName||null,t!==null?t:J(e.type)||"Memo";case Ja:t=e._payload,e=e._init;try{return J(e(t))}catch(o){}}return null}function re(e){return typeof e.tag==="number"?q(e):typeof e.name==="string"?e.name:null}function q(e){var t=e.type;switch(e.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(t._context.displayName||"Context")+".Consumer";case 10:return t.displayName||"Context";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return J(t);case 8:return t===zf?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 14:case 15:if(typeof t==="function")return t.displayName||t.name||null;if(typeof t==="string")return t;break;case 29:if(t=e._debugInfo,t!=null){for(var o=t.length-1;0<=o;o--)if(typeof t[o].name==="string")return t[o].name}if(e.return!==null)return q(e.return)}return null}function ce(e){return{current:e}}function ye(e,t){0>zn?console.error("Unexpected pop."):(t!==yy[zn]&&console.error("Unexpected Fiber popped."),e.current=gy[zn],gy[zn]=null,yy[zn]=null,zn--)}function Se(e,t,o){zn++,gy[zn]=e.current,yy[zn]=o,e.current=t}function Me(e){return e===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),e}function G(e,t){Se(Rs,t,e),Se(ju,e,e),Se(Ds,null,e);var o=t.nodeType;switch(o){case 9:case 11:o=o===9?"#document":"#fragment",t=(t=t.documentElement)?(t=t.namespaceURI)?CL(t):Zn:Zn;break;default:if(o=t.tagName,t=t.namespaceURI)t=CL(t),t=IL(t,o);else switch(o){case"svg":t=Or;break;case"math":t=Ph;break;default:t=Zn}}o=o.toLowerCase(),o=y0(null,o),o={context:t,ancestorInfo:o},ye(Ds,e),Se(Ds,o,e)}function se(e){ye(Ds,e),ye(ju,e),ye(Rs,e)}function de(){return Me(Ds.current)}function Ve(e){e.memoizedState!==null&&Se(Uf,e,e);var t=Me(Ds.current),o=e.type,i=IL(t.context,o);o=y0(t.ancestorInfo,o),i={context:i,ancestorInfo:o},t!==i&&(Se(ju,e,e),Se(Ds,i,e))}function Ee(e){ju.current===e&&(ye(Ds,e),ye(ju,e)),Uf.current===e&&(ye(Uf,e),Bc._currentValue=fl)}function R(){}function W(){if(Gu===0){eC=console.log,tC=console.info,aC=console.warn,oC=console.error,nC=console.group,sC=console.groupCollapsed,iC=console.groupEnd;var e={configurable:!0,enumerable:!0,value:R,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Gu++}function fe(){if(Gu--,Gu===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ze({},e,{value:eC}),info:ze({},e,{value:tC}),warn:ze({},e,{value:aC}),error:ze({},e,{value:oC}),group:ze({},e,{value:nC}),groupCollapsed:ze({},e,{value:sC}),groupEnd:ze({},e,{value:iC})})}0>Gu&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function he(e){var t=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,e=e.stack,Error.prepareStackTrace=t,e.startsWith(`Error: react-stack-top-frame
18
+ `)&&(e=e.slice(29)),t=e.indexOf(`
19
+ `),t!==-1&&(e=e.slice(t+1)),t=e.indexOf("react_stack_bottom_frame"),t!==-1&&(t=e.lastIndexOf(`
20
+ `,t)),t!==-1)e=e.slice(0,t);else return"";return e}function Be(e){if(by===void 0)try{throw Error()}catch(o){var t=o.stack.trim().match(/\n( *(at )?)/);by=t&&t[1]||"",lC=-1<o.stack.indexOf(`
21
+ at`)?" (<anonymous>)":-1<o.stack.indexOf("@")?"@unknown:0:0":""}return`
22
+ `+by+e+lC}function Dt(e,t){if(!e||xy)return"";var o=Sy.get(e);if(o!==void 0)return o;xy=!0,o=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var i=null;i=U.H,U.H=null,W();try{var u={DetermineComponentFrameRoot:function(){try{if(t){var A=function(){throw Error()};if(Object.defineProperty(A.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(A,[])}catch(K){var P=K}Reflect.construct(e,[],A)}else{try{A.call()}catch(K){P=K}e.call(A.prototype)}}else{try{throw Error()}catch(K){P=K}(A=e())&&typeof A.catch==="function"&&A.catch(function(){})}}catch(K){if(K&&P&&typeof K.stack==="string")return[K.stack,P.stack]}return[null,null]}};u.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var d=Object.getOwnPropertyDescriptor(u.DetermineComponentFrameRoot,"name");d&&d.configurable&&Object.defineProperty(u.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var m=u.DetermineComponentFrameRoot(),g=m[0],S=m[1];if(g&&S){var L=g.split(`
23
+ `),O=S.split(`
24
+ `);for(m=d=0;d<L.length&&!L[d].includes("DetermineComponentFrameRoot");)d++;for(;m<O.length&&!O[m].includes("DetermineComponentFrameRoot");)m++;if(d===L.length||m===O.length)for(d=L.length-1,m=O.length-1;1<=d&&0<=m&&L[d]!==O[m];)m--;for(;1<=d&&0<=m;d--,m--)if(L[d]!==O[m]){if(d!==1||m!==1)do if(d--,m--,0>m||L[d]!==O[m]){var E=`
25
+ `+L[d].replace(" at new "," at ");return e.displayName&&E.includes("<anonymous>")&&(E=E.replace("<anonymous>",e.displayName)),typeof e==="function"&&Sy.set(e,E),E}while(1<=d&&0<=m);break}}}finally{xy=!1,U.H=i,fe(),Error.prepareStackTrace=o}return L=(L=e?e.displayName||e.name:"")?Be(L):"",typeof e==="function"&&Sy.set(e,L),L}function Te(e,t){switch(e.tag){case 26:case 27:case 5:return Be(e.type);case 16:return Be("Lazy");case 13:return e.child!==t&&t!==null?Be("Suspense Fallback"):Be("Suspense");case 19:return Be("SuspenseList");case 0:case 15:return Dt(e.type,!1);case 11:return Dt(e.type.render,!1);case 1:return Dt(e.type,!0);case 31:return Be("Activity");default:return""}}function Pt(e){try{var t="",o=null;do{t+=Te(e,o);var i=e._debugInfo;if(i)for(var u=i.length-1;0<=u;u--){var d=i[u];if(typeof d.name==="string"){var m=t;e:{var{name:g,env:S,debugLocation:L}=d;if(L!=null){var O=he(L),E=O.lastIndexOf(`
26
+ `),A=E===-1?O:O.slice(E+1);if(A.indexOf(g)!==-1){var P=`
27
+ `+A;break e}}P=Be(g+(S?" ["+S+"]":""))}t=m+P}}o=e,e=e.return}while(e);return t}catch(K){return`
28
+ Error generating stack: `+K.message+`
29
+ `+K.stack}}function ca(e){return(e=e?e.displayName||e.name:"")?Be(e):""}function Mo(){if(Ka===null)return null;var e=Ka._debugOwner;return e!=null?re(e):null}function wd(){if(Ka===null)return"";var e=Ka;try{var t="";switch(e.tag===6&&(e=e.return),e.tag){case 26:case 27:case 5:t+=Be(e.type);break;case 13:t+=Be("Suspense");break;case 19:t+=Be("SuspenseList");break;case 31:t+=Be("Activity");break;case 30:case 0:case 15:case 1:e._debugOwner||t!==""||(t+=ca(e.type));break;case 11:e._debugOwner||t!==""||(t+=ca(e.type.render))}for(;e;)if(typeof e.tag==="number"){var o=e;e=o._debugOwner;var i=o._debugStack;if(e&&i){var u=he(i);u!==""&&(t+=`
30
+ `+u)}}else if(e.debugStack!=null){var d=e.debugStack;(e=e.owner)&&d&&(t+=`
31
+ `+he(d))}else break;var m=t}catch(g){m=`
32
+ Error generating stack: `+g.message+`
33
+ `+g.stack}return m}function ne(e,t,o,i,u,d,m){var g=Ka;Dl(e);try{return e!==null&&e._debugTask?e._debugTask.run(t.bind(null,o,i,u,d,m)):t(o,i,u,d,m)}finally{Dl(g)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function Dl(e){U.getCurrentStack=e===null?null:wd,un=!1,Ka=e}function Li(e){return typeof Symbol==="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}function ps(e){try{return Wt(e),!1}catch(t){return!0}}function Wt(e){return""+e}function rt(e,t){if(ps(e))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",t,Li(e)),Wt(e)}function su(e,t){if(ps(e))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",t,Li(e)),Wt(e)}function _e(e){if(ps(e))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",Li(e)),Wt(e)}function Rl(e){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled)return!0;if(!t.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{tr=t.inject(e),ha=t}catch(o){console.error("React instrumentation encountered an error: %o.",o)}return t.checkDCE?!0:!1}function ht(e){if(typeof ED==="function"&&BD(e),ha&&typeof ha.setStrictMode==="function")try{ha.setStrictMode(tr,e)}catch(t){cn||(cn=!0,console.error("React instrumentation encountered an error: %o",t))}}function Md(e){return e>>>=0,e===0?32:31-(PD(e)/zD|0)|0}function Vo(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error("Should have found matching lanes. This is a bug in React."),e}}function Ci(e,t,o){var i=e.pendingLanes;if(i===0)return 0;var u=0,d=e.suspendedLanes,m=e.pingedLanes;e=e.warmLanes;var g=i&134217727;return g!==0?(i=g&~d,i!==0?u=Vo(i):(m&=g,m!==0?u=Vo(m):o||(o=g&~e,o!==0&&(u=Vo(o))))):(g=i&~d,g!==0?u=Vo(g):m!==0?u=Vo(m):o||(o=i&~e,o!==0&&(u=Vo(o)))),u===0?0:t!==0&&t!==u&&(t&d)===0&&(d=u&-u,o=t&-t,d>=o||d===32&&(o&4194048)!==0)?t:u}function Ii(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function sm(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5000;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error("Should have found matching lanes. This is a bug in React."),-1}}function kl(){var e=qf;return qf<<=1,(qf&62914560)===0&&(qf=4194304),e}function Ol(e){for(var t=[],o=0;31>o;o++)t.push(e);return t}function ms(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Td(e,t,o,i,u,d){var m=e.pendingLanes;e.pendingLanes=o,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=o,e.entangledLanes&=o,e.errorRecoveryDisabledLanes&=o,e.shellSuspendCounter=0;var{entanglements:g,expirationTimes:S,hiddenUpdates:L}=e;for(o=m&~o;0<o;){var O=31-ba(o),E=1<<O;g[O]=0,S[O]=-1;var A=L[O];if(A!==null)for(L[O]=null,O=0;O<A.length;O++){var P=A[O];P!==null&&(P.lane&=-536870913)}o&=~E}i!==0&&wi(e,i,0),d!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=d&~(m&~t))}function wi(e,t,o){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-ba(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|o&261930}function Mi(e,t){var o=e.entangledLanes|=t;for(e=e.entanglements;o;){var i=31-ba(o),u=1<<i;u&t|e[i]&t&&(e[i]|=t),o&=~u}}function Ti(e,t){var o=t&-t;return o=(o&42)!==0?1:Ai(o),(o&(e.suspendedLanes|t))!==0?0:o}function Ai(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function iu(e,t,o){if(dn)for(e=e.pendingUpdatersLaneMap;0<o;){var i=31-ba(o),u=1<<i;e[i].add(t),o&=~u}}function gs(e,t){if(dn)for(var{pendingUpdatersLaneMap:o,memoizedUpdaters:i}=e;0<t;){var u=31-ba(t);e=1<<u,u=o[u],0<u.size&&(u.forEach(function(d){var m=d.alternate;m!==null&&i.has(m)||i.add(d)}),u.clear()),t&=~e}}function C(e){return e&=-e,eo!==0&&eo<e?Ro!==0&&Ro<e?(e&134217727)!==0?fn:Vf:Ro:eo}function B(){var e=at.p;if(e!==0)return e;return e=window.event,e===void 0?fn:YL(e.type)}function Y(e,t){var o=at.p;try{return at.p=e,t()}finally{at.p=o}}function ee(e){delete e[na],delete e[xa],delete e[wy],delete e[HD],delete e[UD]}function ie(e){var t=e[na];if(t)return t;for(var o=e.parentNode;o;){if(t=o[Os]||o[na]){if(o=t.alternate,t.child!==null||o!==null&&o.child!==null)for(e=kL(e);e!==null;){if(o=e[na])return o;e=kL(e)}return t}e=o,o=e.parentNode}return null}function Ie(e){if(e=e[na]||e[Os]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function we(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function Ze(e){var t=e[rC];return t||(t=e[rC]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function me(e){e[Yu]=!0}function da(e,t){Va(e,t),Va(e+"Capture",t)}function Va(e,t){ji[e]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),ji[e]=t;var o=e.toLowerCase();My[o]=e,e==="onDoubleClick"&&(My.ondblclick=e);for(e=0;e<t.length;e++)uC.add(t[e])}function ys(e,t){FD[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||t.value==null||(e==="select"?console.error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`."):console.error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.")),t.onChange||t.readOnly||t.disabled||t.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function lu(e){if(Do.call(dC,e))return!0;if(Do.call(cC,e))return!1;if(ND.test(e))return dC[e]=!0;return cC[e]=!0,console.error("Invalid attribute name: `%s`",e),!1}function a0(e,t,o){if(lu(t)){if(!e.hasAttribute(t)){switch(typeof o){case"symbol":case"object":return o;case"function":return o;case"boolean":if(o===!1)return o}return o===void 0?void 0:null}if(e=e.getAttribute(t),e===""&&o===!0)return!0;return rt(o,t),e===""+o?o:e}}function Ad(e,t,o){if(lu(t))if(o===null)e.removeAttribute(t);else{switch(typeof o){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}rt(o,t),e.setAttribute(t,""+o)}}function _d(e,t,o){if(o===null)e.removeAttribute(t);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}rt(o,t),e.setAttribute(t,""+o)}}function An(e,t,o,i){if(i===null)e.removeAttribute(o);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(o);return}rt(i,o),e.setAttributeNS(t,o,""+i)}}function lo(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return _e(e),e;default:return""}}function o0(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function zA(e,t,o){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get==="function"&&typeof i.set==="function"){var{get:u,set:d}=i;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(m){_e(m),o=""+m,d.call(this,m)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return o},setValue:function(m){_e(m),o=""+m},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function im(e){if(!e._valueTracker){var t=o0(e)?"checked":"value";e._valueTracker=zA(e,t,""+e[t])}}function n0(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var o=t.getValue(),i="";return e&&(i=o0(e)?e.checked?"true":"false":e.value),e=i,e!==o?(t.setValue(e),!0):!1}function Dd(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch(t){return e.body}}function ro(e){return e.replace(qD,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function s0(e,t){t.checked===void 0||t.defaultChecked===void 0||hC||(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",Mo()||"A component",t.type),hC=!0),t.value===void 0||t.defaultValue===void 0||fC||(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",Mo()||"A component",t.type),fC=!0)}function lm(e,t,o,i,u,d,m,g){if(e.name="",m!=null&&typeof m!=="function"&&typeof m!=="symbol"&&typeof m!=="boolean"?(rt(m,"type"),e.type=m):e.removeAttribute("type"),t!=null)if(m==="number"){if(t===0&&e.value===""||e.value!=t)e.value=""+lo(t)}else e.value!==""+lo(t)&&(e.value=""+lo(t));else m!=="submit"&&m!=="reset"||e.removeAttribute("value");t!=null?rm(e,m,lo(t)):o!=null?rm(e,m,lo(o)):i!=null&&e.removeAttribute("value"),u==null&&d!=null&&(e.defaultChecked=!!d),u!=null&&(e.checked=u&&typeof u!=="function"&&typeof u!=="symbol"),g!=null&&typeof g!=="function"&&typeof g!=="symbol"&&typeof g!=="boolean"?(rt(g,"name"),e.name=""+lo(g)):e.removeAttribute("name")}function i0(e,t,o,i,u,d,m,g){if(d!=null&&typeof d!=="function"&&typeof d!=="symbol"&&typeof d!=="boolean"&&(rt(d,"type"),e.type=d),t!=null||o!=null){if(!(d!=="submit"&&d!=="reset"||t!==void 0&&t!==null)){im(e);return}o=o!=null?""+lo(o):"",t=t!=null?""+lo(t):o,g||t===e.value||(e.value=t),e.defaultValue=t}i=i!=null?i:u,i=typeof i!=="function"&&typeof i!=="symbol"&&!!i,e.checked=g?e.checked:!!i,e.defaultChecked=!!i,m!=null&&typeof m!=="function"&&typeof m!=="symbol"&&typeof m!=="boolean"&&(rt(m,"name"),e.name=m),im(e)}function rm(e,t,o){t==="number"&&Dd(e.ownerDocument)===e||e.defaultValue===""+o||(e.defaultValue=""+o)}function l0(e,t){t.value==null&&(typeof t.children==="object"&&t.children!==null?Br.Children.forEach(t.children,function(o){o==null||typeof o==="string"||typeof o==="number"||typeof o==="bigint"||mC||(mC=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):t.dangerouslySetInnerHTML==null||gC||(gC=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),t.selected==null||pC||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),pC=!0)}function r0(){var e=Mo();return e?`
34
+
35
+ Check the render method of \``+e+"`.":""}function El(e,t,o,i){if(e=e.options,t){t={};for(var u=0;u<o.length;u++)t["$"+o[u]]=!0;for(o=0;o<e.length;o++)u=t.hasOwnProperty("$"+e[o].value),e[o].selected!==u&&(e[o].selected=u),u&&i&&(e[o].defaultSelected=!0)}else{o=""+lo(o),t=null;for(u=0;u<e.length;u++){if(e[u].value===o){e[u].selected=!0,i&&(e[u].defaultSelected=!0);return}t!==null||e[u].disabled||(t=e[u])}t!==null&&(t.selected=!0)}}function u0(e,t){for(e=0;e<bC.length;e++){var o=bC[e];if(t[o]!=null){var i=Gt(t[o]);t.multiple&&!i?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",o,r0()):!t.multiple&&i&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",o,r0())}}t.value===void 0||t.defaultValue===void 0||yC||(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"),yC=!0)}function c0(e,t){t.value===void 0||t.defaultValue===void 0||xC||(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",Mo()||"A component"),xC=!0),t.children!=null&&t.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function d0(e,t,o){if(t!=null&&(t=""+lo(t),t!==e.value&&(e.value=t),o==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=o!=null?""+lo(o):""}function f0(e,t,o,i){if(t==null){if(i!=null){if(o!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Gt(i)){if(1<i.length)throw Error("<textarea> can only have at most one child.");i=i[0]}o=i}o==null&&(o=""),t=o}o=lo(t),e.defaultValue=o,i=e.textContent,i===o&&i!==""&&i!==null&&(e.value=i),im(e)}function h0(e,t){return e.serverProps===void 0&&e.serverTail.length===0&&e.children.length===1&&3<e.distanceFromLeaf&&e.distanceFromLeaf>15-t?h0(e.children[0],t):e}function ja(e){return" "+" ".repeat(e)}function Bl(e){return"+ "+" ".repeat(e)}function _i(e){return"- "+" ".repeat(e)}function p0(e){switch(e.tag){case 26:case 27:case 5:return e.type;case 16:return"Lazy";case 31:return"Activity";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return e=e.type,e.displayName||e.name||null;case 11:return e=e.type.render,e.displayName||e.name||null;case 1:return e=e.type,e.displayName||e.name||null;default:return null}}function ru(e,t){return SC.test(e)?(e=JSON.stringify(e),e.length>t-2?8>t?'{"..."}':"{"+e.slice(0,t-7)+'..."}':"{"+e+"}"):e.length>t?5>t?'{"..."}':e.slice(0,t-3)+"...":e}function Rd(e,t,o){var i=120-2*o;if(t===null)return Bl(o)+ru(e,i)+`
36
+ `;if(typeof t==="string"){for(var u=0;u<t.length&&u<e.length&&t.charCodeAt(u)===e.charCodeAt(u);u++);return u>i-8&&10<u&&(e="..."+e.slice(u-8),t="..."+t.slice(u-8)),Bl(o)+ru(e,i)+`
37
+ `+_i(o)+ru(t,i)+`
38
+ `}return ja(o)+ru(e,i)+`
39
+ `}function um(e){return Object.prototype.toString.call(e).replace(/^\[object (.*)\]$/,function(t,o){return o})}function uu(e,t){switch(typeof e){case"string":return e=JSON.stringify(e),e.length>t?5>t?'"..."':e.slice(0,t-4)+'..."':e;case"object":if(e===null)return"null";if(Gt(e))return"[...]";if(e.$$typeof===ln)return(t=J(e.type))?"<"+t+">":"<...>";var o=um(e);if(o==="Object"){o="",t-=2;for(var i in e)if(e.hasOwnProperty(i)){var u=JSON.stringify(i);if(u!=='"'+i+'"'&&(i=u),t-=i.length-2,u=uu(e[i],15>t?t:15),t-=u.length,0>t){o+=o===""?"...":", ...";break}o+=(o===""?"":",")+i+":"+u}return"{"+o+"}"}return o;case"function":return(t=e.displayName||e.name)?"function "+t:"function";default:return String(e)}}function Pl(e,t){return typeof e!=="string"||SC.test(e)?"{"+uu(e,t-2)+"}":e.length>t-2?5>t?'"..."':'"'+e.slice(0,t-5)+'..."':'"'+e+'"'}function cm(e,t,o){var i=120-o.length-e.length,u=[],d;for(d in t)if(t.hasOwnProperty(d)&&d!=="children"){var m=Pl(t[d],120-o.length-d.length-1);i-=d.length+m.length+2,u.push(d+"="+m)}return u.length===0?o+"<"+e+`>
40
+ `:0<i?o+"<"+e+" "+u.join(" ")+`>
41
+ `:o+"<"+e+`
42
+ `+o+" "+u.join(`
43
+ `+o+" ")+`
44
+ `+o+`>
45
+ `}function HA(e,t,o){var i="",u=ze({},t),d;for(d in e)if(e.hasOwnProperty(d)){delete u[d];var m=120-2*o-d.length-2,g=uu(e[d],m);t.hasOwnProperty(d)?(m=uu(t[d],m),i+=Bl(o)+d+": "+g+`
46
+ `,i+=_i(o)+d+": "+m+`
47
+ `):i+=Bl(o)+d+": "+g+`
48
+ `}for(var S in u)u.hasOwnProperty(S)&&(e=uu(u[S],120-2*o-S.length-2),i+=_i(o)+S+": "+e+`
49
+ `);return i}function UA(e,t,o,i){var u="",d=new Map;for(L in o)o.hasOwnProperty(L)&&d.set(L.toLowerCase(),L);if(d.size===1&&d.has("children"))u+=cm(e,t,ja(i));else{for(var m in t)if(t.hasOwnProperty(m)&&m!=="children"){var g=120-2*(i+1)-m.length-1,S=d.get(m.toLowerCase());if(S!==void 0){d.delete(m.toLowerCase());var L=t[m];S=o[S];var O=Pl(L,g);g=Pl(S,g),typeof L==="object"&&L!==null&&typeof S==="object"&&S!==null&&um(L)==="Object"&&um(S)==="Object"&&(2<Object.keys(L).length||2<Object.keys(S).length||-1<O.indexOf("...")||-1<g.indexOf("..."))?u+=ja(i+1)+m+`={{
50
+ `+HA(L,S,i+2)+ja(i+1)+`}}
51
+ `:(u+=Bl(i+1)+m+"="+O+`
52
+ `,u+=_i(i+1)+m+"="+g+`
53
+ `)}else u+=ja(i+1)+m+"="+Pl(t[m],g)+`
54
+ `}d.forEach(function(E){if(E!=="children"){var A=120-2*(i+1)-E.length-1;u+=_i(i+1)+E+"="+Pl(o[E],A)+`
55
+ `}}),u=u===""?ja(i)+"<"+e+`>
56
+ `:ja(i)+"<"+e+`
57
+ `+u+ja(i)+`>
58
+ `}if(e=o.children,t=t.children,typeof e==="string"||typeof e==="number"||typeof e==="bigint"){if(d="",typeof t==="string"||typeof t==="number"||typeof t==="bigint")d=""+t;u+=Rd(d,""+e,i+1)}else if(typeof t==="string"||typeof t==="number"||typeof t==="bigint")u=e==null?u+Rd(""+t,null,i+1):u+Rd(""+t,void 0,i+1);return u}function m0(e,t){var o=p0(e);if(o===null){o="";for(e=e.child;e;)o+=m0(e,t),e=e.sibling;return o}return ja(t)+"<"+o+`>
59
+ `}function dm(e,t){var o=h0(e,t);if(o!==e&&(e.children.length!==1||e.children[0]!==o))return ja(t)+`...
60
+ `+dm(o,t+1);o="";var i=e.fiber._debugInfo;if(i)for(var u=0;u<i.length;u++){var d=i[u].name;typeof d==="string"&&(o+=ja(t)+"<"+d+`>
61
+ `,t++)}if(i="",u=e.fiber.pendingProps,e.fiber.tag===6)i=Rd(u,e.serverProps,t),t++;else if(d=p0(e.fiber),d!==null)if(e.serverProps===void 0){i=t;var m=120-2*i-d.length-2,g="";for(L in u)if(u.hasOwnProperty(L)&&L!=="children"){var S=Pl(u[L],15);if(m-=L.length+S.length+2,0>m){g+=" ...";break}g+=" "+L+"="+S}i=ja(i)+"<"+d+g+`>
62
+ `,t++}else e.serverProps===null?(i=cm(d,u,Bl(t)),t++):typeof e.serverProps==="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(i=UA(d,u,e.serverProps,t),t++);var L="";u=e.fiber.child;for(d=0;u&&d<e.children.length;)m=e.children[d],m.fiber===u?(L+=dm(m,t),d++):L+=m0(u,t),u=u.sibling;u&&0<e.children.length&&(L+=ja(t)+`...
63
+ `),u=e.serverTail,e.serverProps===null&&t--;for(e=0;e<u.length;e++)d=u[e],L=typeof d==="string"?L+(_i(t)+ru(d,120-2*t)+`
64
+ `):L+cm(d.type,d.props,_i(t));return o+i+L}function fm(e){try{return`
65
+
66
+ `+dm(e,0)}catch(t){return""}}function g0(e,t,o){for(var i=t,u=null,d=0;i;)i===e&&(d=0),u={fiber:i,children:u!==null?[u]:[],serverProps:i===t?o:i===e?null:void 0,serverTail:[],distanceFromLeaf:d},d++,i=i.return;return u!==null?fm(u).replaceAll(/^[+-]/gm,">"):""}function y0(e,t){var o=ze({},e||LC),i={tag:t};if(vC.indexOf(t)!==-1&&(o.aTagInScope=null,o.buttonTagInScope=null,o.nobrTagInScope=null),jD.indexOf(t)!==-1&&(o.pTagInButtonScope=null),VD.indexOf(t)!==-1&&t!=="address"&&t!=="div"&&t!=="p"&&(o.listItemTagAutoclosing=null,o.dlItemTagAutoclosing=null),o.current=i,t==="form"&&(o.formTag=i),t==="a"&&(o.aTagInScope=i),t==="button"&&(o.buttonTagInScope=i),t==="nobr"&&(o.nobrTagInScope=i),t==="p"&&(o.pTagInButtonScope=i),t==="li"&&(o.listItemTagAutoclosing=i),t==="dd"||t==="dt")o.dlItemTagAutoclosing=i;return t==="#document"||t==="html"?o.containerTagInScope=null:o.containerTagInScope||(o.containerTagInScope=i),e!==null||t!=="#document"&&t!=="html"&&t!=="body"?o.implicitRootScope===!0&&(o.implicitRootScope=!1):o.implicitRootScope=!0,o}function b0(e,t,o){switch(t){case"select":return e==="hr"||e==="option"||e==="optgroup"||e==="script"||e==="template"||e==="#text";case"optgroup":return e==="option"||e==="#text";case"option":return e==="#text";case"tr":return e==="th"||e==="td"||e==="style"||e==="script"||e==="template";case"tbody":case"thead":case"tfoot":return e==="tr"||e==="style"||e==="script"||e==="template";case"colgroup":return e==="col"||e==="template";case"table":return e==="caption"||e==="colgroup"||e==="tbody"||e==="tfoot"||e==="thead"||e==="style"||e==="script"||e==="template";case"head":return e==="base"||e==="basefont"||e==="bgsound"||e==="link"||e==="meta"||e==="title"||e==="noscript"||e==="noframes"||e==="style"||e==="script"||e==="template";case"html":if(o)break;return e==="head"||e==="body"||e==="frameset";case"frameset":return e==="frame";case"#document":if(!o)return e==="html"}switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t!=="h1"&&t!=="h2"&&t!=="h3"&&t!=="h4"&&t!=="h5"&&t!=="h6";case"rp":case"rt":return GD.indexOf(t)===-1;case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return t==null;case"head":return o||t===null;case"html":return o&&t==="#document"||t===null;case"body":return o&&(t==="#document"||t==="html")||t===null}return!0}function FA(e,t){switch(e){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t.pTagInButtonScope;case"form":return t.formTag||t.pTagInButtonScope;case"li":return t.listItemTagAutoclosing;case"dd":case"dt":return t.dlItemTagAutoclosing;case"button":return t.buttonTagInScope;case"a":return t.aTagInScope;case"nobr":return t.nobrTagInScope}return null}function x0(e,t){for(;e;){switch(e.tag){case 5:case 26:case 27:if(e.type===t)return e}e=e.return}return null}function hm(e,t){t=t||LC;var o=t.current;if(t=(o=b0(e,o&&o.tag,t.implicitRootScope)?null:o)?null:FA(e,t),t=o||t,!t)return!0;var i=t.tag;if(t=String(!!o)+"|"+e+"|"+i,jf[t])return!1;jf[t]=!0;var u=(t=Ka)?x0(t.return,i):null,d=t!==null&&u!==null?g0(u,t,null):"",m="<"+e+">";return o?(o="",i==="table"&&e==="tr"&&(o+=" 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`,m,i,o,d)):console.error(`In HTML, %s cannot be a descendant of <%s>.
68
+ This will cause a hydration error.%s`,m,i,d),t&&(e=t.return,u===null||e===null||u===e&&e._debugOwner===t._debugOwner||ne(u,function(){console.error(`<%s> cannot contain a nested %s.
69
+ See this log for the ancestor stack trace.`,i,m)})),!1}function kd(e,t,o){if(o||b0("#text",t,!1))return!0;if(o="#text|"+t,jf[o])return!1;jf[o]=!0;var i=(o=Ka)?x0(o,t):null;return o=o!==null&&i!==null?g0(i,o,o.tag!==6?{children:null}:null):"",/\S/.test(e)?console.error(`In HTML, text nodes cannot be a child of <%s>.
70
+ This will cause a hydration error.%s`,t,o):console.error(`In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.
71
+ This will cause a hydration error.%s`,t,o),!1}function cu(e,t){if(t){var o=e.firstChild;if(o&&o===e.lastChild&&o.nodeType===3){o.nodeValue=t;return}}e.textContent=t}function NA(e){return e.replace(WD,function(t,o){return o.toUpperCase()})}function S0(e,t,o){var i=t.indexOf("--")===0;i||(-1<t.indexOf("-")?ar.hasOwnProperty(t)&&ar[t]||(ar[t]=!0,console.error("Unsupported style property %s. Did you mean %s?",t,NA(t.replace(XD,"ms-")))):YD.test(t)?ar.hasOwnProperty(t)&&ar[t]||(ar[t]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",t,t.charAt(0).toUpperCase()+t.slice(1))):!wC.test(o)||Ay.hasOwnProperty(o)&&Ay[o]||(Ay[o]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,t,o.replace(wC,""))),typeof o==="number"&&(isNaN(o)?MC||(MC=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",t)):isFinite(o)||TC||(TC=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",t)))),o==null||typeof o==="boolean"||o===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,o):typeof o!=="number"||o===0||AC.has(t)?t==="float"?e.cssFloat=o:(su(o,t),e[t]=(""+o).trim()):e[t]=o+"px"}function v0(e,t,o){if(t!=null&&typeof t!=="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(t&&Object.freeze(t),e=e.style,o!=null){if(t){var i={};if(o){for(var u in o)if(o.hasOwnProperty(u)&&!t.hasOwnProperty(u))for(var d=Ty[u]||[u],m=0;m<d.length;m++)i[d[m]]=u}for(var g in t)if(t.hasOwnProperty(g)&&(!o||o[g]!==t[g]))for(u=Ty[g]||[g],d=0;d<u.length;d++)i[u[d]]=g;g={};for(var S in t)for(u=Ty[S]||[S],d=0;d<u.length;d++)g[u[d]]=S;S={};for(var L in i)if(u=i[L],(d=g[L])&&u!==d&&(m=u+","+d,!S[m])){S[m]=!0,m=console;var O=t[u];m.error.call(m,"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",O==null||typeof O==="boolean"||O===""?"Removing":"Updating",u,d)}}for(var E in o)!o.hasOwnProperty(E)||t!=null&&t.hasOwnProperty(E)||(E.indexOf("--")===0?e.setProperty(E,""):E==="float"?e.cssFloat="":e[E]="");for(var A in t)L=t[A],t.hasOwnProperty(A)&&o[A]!==L&&S0(e,A,L)}else for(i in t)t.hasOwnProperty(i)&&S0(e,i,t[i])}function du(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function L0(e){return $D.get(e)||e}function qA(e,t){if(Do.call(nr,t)&&nr[t])return!0;if(ZD.test(t)){if(e="aria-"+t.slice(4).toLowerCase(),e=_C.hasOwnProperty(e)?e:null,e==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),nr[t]=!0;if(t!==e)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,e),nr[t]=!0}if(QD.test(t)){if(e=t.toLowerCase(),e=_C.hasOwnProperty(e)?e:null,e==null)return nr[t]=!0,!1;t!==e&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,e),nr[t]=!0)}return!0}function VA(e,t){var o=[],i;for(i in t)qA(e,i)||o.push(i);t=o.map(function(u){return"`"+u+"`"}).join(", "),o.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e):1<o.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e)}function jA(e,t,o,i){if(Do.call(Sa,t)&&Sa[t])return!0;var u=t.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."),Sa[t]=!0;if(typeof o==="function"&&(e==="form"&&t==="action"||e==="input"&&t==="formAction"||e==="button"&&t==="formAction"))return!0;if(i!=null){if(e=i.possibleRegistrationNames,i.registrationNameDependencies.hasOwnProperty(t))return!0;if(i=e.hasOwnProperty(u)?e[u]:null,i!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",t,i),Sa[t]=!0;if(RC.test(t))return console.error("Unknown event handler property `%s`. It will be ignored.",t),Sa[t]=!0}else if(RC.test(t))return JD.test(t)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),Sa[t]=!0;if(KD.test(t)||eR.test(t))return!0;if(u==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Sa[t]=!0;if(u==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Sa[t]=!0;if(u==="is"&&o!==null&&o!==void 0&&typeof o!=="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof o),Sa[t]=!0;if(typeof o==="number"&&isNaN(o))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),Sa[t]=!0;if(Yf.hasOwnProperty(u)){if(u=Yf[u],u!==t)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",t,u),Sa[t]=!0}else if(t!==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.",t,u),Sa[t]=!0;switch(t){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof o){case"boolean":switch(t){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"capture":case"download":case"inert":return!0;default:if(u=t.toLowerCase().slice(0,5),u==="data-"||u==="aria-")return!0;return o?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()}.',o,t,t,o,t):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',o,t,t,o,t,t,t),Sa[t]=!0}case"function":case"symbol":return Sa[t]=!0,!1;case"string":if(o==="false"||o==="true"){switch(t){case"checked":case"selected":case"multiple":case"muted":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",o,t,o==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',t,o),Sa[t]=!0}}return!0}function GA(e,t,o){var i=[],u;for(u in t)jA(e,u,t[u],o)||i.push(u);t=i.map(function(d){return"`"+d+"`"}).join(", "),i.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",t,e):1<i.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",t,e)}function fu(e){return tR.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function _n(){}function pm(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}function C0(e){var t=Ie(e);if(t&&(e=t.stateNode)){var o=e[xa]||null;e:switch(e=t.stateNode,t.type){case"input":if(lm(e,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name),t=o.name,o.type==="radio"&&t!=null){for(o=e;o.parentNode;)o=o.parentNode;rt(t,"name"),o=o.querySelectorAll('input[name="'+ro(""+t)+'"][type="radio"]');for(t=0;t<o.length;t++){var i=o[t];if(i!==e&&i.form===e.form){var u=i[xa]||null;if(!u)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");lm(i,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(t=0;t<o.length;t++)i=o[t],i.form===e.form&&n0(i)}break e;case"textarea":d0(e,o.value,o.defaultValue);break e;case"select":t=o.value,t!=null&&El(e,!!o.multiple,t,!1)}}}function I0(e,t,o){if(_y)return e(t,o);_y=!0;try{var i=e(t);return i}finally{if(_y=!1,sr!==null||ir!==null){if(Yl(),sr&&(t=sr,e=ir,ir=sr=null,C0(t),e))for(t=0;t<e.length;t++)C0(e[t])}}}function hu(e,t){var o=e.stateNode;if(o===null)return null;var i=o[xa]||null;if(i===null)return null;o=i[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(o&&typeof o!=="function")throw Error("Expected `"+t+"` listener to be a function, instead got a value of `"+typeof o+"` type.");return o}function w0(){if(Xf)return Xf;var e,t=Ry,o=t.length,i,u="value"in Es?Es.value:Es.textContent,d=u.length;for(e=0;e<o&&t[e]===u[e];e++);var m=o-e;for(i=1;i<=m&&t[o-i]===u[d-i];i++);return Xf=u.slice(e,1<i?1-i:void 0)}function Od(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Ed(){return!0}function M0(){return!1}function Ta(e){function t(o,i,u,d,m){this._reactName=o,this._targetInst=u,this.type=i,this.nativeEvent=d,this.target=m,this.currentTarget=null;for(var g in e)e.hasOwnProperty(g)&&(o=e[g],this[g]=o?o(d):d[g]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?Ed:M0,this.isPropagationStopped=M0,this}return ze(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!=="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=Ed)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!=="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=Ed)},persist:function(){},isPersistent:Ed}),t}function YA(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=pR[e])?!!t[e]:!1}function mm(){return YA}function T0(e,t){switch(e){case"keyup":return MR.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==BC;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function A0(e){return e=e.detail,typeof e==="object"&&"data"in e?e.data:null}function XA(e,t){switch(e){case"compositionend":return A0(t);case"keypress":if(t.which!==zC)return null;return UC=!0,HC;case"textInput":return e=t.data,e===HC&&UC?null:e;default:return null}}function WA(e,t){if(lr)return e==="compositionend"||!By&&T0(e,t)?(e=w0(),Xf=Ry=Es=null,lr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return PC&&t.locale!=="ko"?null:t.data;default:return null}}function _0(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!AR[e.type]:t==="textarea"?!0:!1}function $A(e){if(!hn)return!1;e="on"+e;var t=e in document;return t||(t=document.createElement("div"),t.setAttribute(e,"return;"),t=typeof t[e]==="function"),t}function D0(e,t,o,i){sr?ir?ir.push(i):ir=[i]:sr=i,t=Tf(t,"onChange"),0<t.length&&(o=new Wf("onChange","change",null,o,i),e.push({event:o,listeners:t}))}function QA(e){fL(e,0)}function Bd(e){var t=we(e);if(n0(t))return e}function R0(e,t){if(e==="change")return t}function k0(){Ju&&(Ju.detachEvent("onpropertychange",O0),Ku=Ju=null)}function O0(e){if(e.propertyName==="value"&&Bd(Ku)){var t=[];D0(t,Ku,e,pm(e)),I0(QA,t)}}function ZA(e,t,o){e==="focusin"?(k0(),Ju=t,Ku=o,Ju.attachEvent("onpropertychange",O0)):e==="focusout"&&k0()}function JA(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Bd(Ku)}function KA(e,t){if(e==="click")return Bd(t)}function e_(e,t){if(e==="input"||e==="change")return Bd(t)}function t_(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}function pu(e,t){if(va(e,t))return!0;if(typeof e!=="object"||e===null||typeof t!=="object"||t===null)return!1;var o=Object.keys(e),i=Object.keys(t);if(o.length!==i.length)return!1;for(i=0;i<o.length;i++){var u=o[i];if(!Do.call(t,u)||!va(e[u],t[u]))return!1}return!0}function E0(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function B0(e,t){var o=E0(e);e=0;for(var i;o;){if(o.nodeType===3){if(i=e+o.textContent.length,e<=t&&i>=t)return{node:o,offset:t-e};e=i}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=E0(o)}}function P0(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?P0(e,t.parentNode):("contains"in e)?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function z0(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Dd(e.document);t instanceof e.HTMLIFrameElement;){try{var o=typeof t.contentWindow.location.href==="string"}catch(i){o=!1}if(o)e=t.contentWindow;else break;t=Dd(e.document)}return t}function gm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function H0(e,t,o){var i=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;zy||rr==null||rr!==Dd(i)||(i=rr,("selectionStart"in i)&&gm(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),ec&&pu(ec,i)||(ec=i,i=Tf(Py,"onSelect"),0<i.length&&(t=new Wf("onSelect","select",null,t,o),e.push({event:t,listeners:i}),t.target=rr)))}function Di(e,t){var o={};return o[e.toLowerCase()]=t.toLowerCase(),o["Webkit"+e]="webkit"+t,o["Moz"+e]="moz"+t,o}function Ri(e){if(Hy[e])return Hy[e];if(!ur[e])return e;var t=ur[e],o;for(o in t)if(t.hasOwnProperty(o)&&o in NC)return Hy[e]=t[o];return e}function To(e,t){YC.set(e,t),da(t,[e])}function a_(e){for(var t=Qf,o=0;o<e.length;o++){var i=e[o];if(typeof i==="object"&&i!==null)if(Gt(i)&&i.length===2&&typeof i[0]==="string"){if(t!==Qf&&t!==Vy)return Ny;t=Vy}else return Ny;else{if(typeof i==="function"||typeof i==="string"&&50<i.length||t!==Qf&&t!==qy)return Ny;t=qy}}return t}function ym(e,t,o,i){for(var u in e)Do.call(e,u)&&u[0]!=="_"&&jo(u,e[u],t,o,i)}function jo(e,t,o,i,u){switch(typeof t){case"object":if(t===null){t="null";break}else{if(t.$$typeof===ln){var d=J(t.type)||"…",m=t.key;t=t.props;var g=Object.keys(t),S=g.length;if(m==null&&S===0){t="<"+d+" />";break}if(3>i||S===1&&g[0]==="children"&&m==null){t="<"+d+" … />";break}o.push([u+"  ".repeat(i)+e,"<"+d]),m!==null&&jo("key",m,o,i+1,u),e=!1;for(var L in t)L==="children"?t.children!=null&&(!Gt(t.children)||0<t.children.length)&&(e=!0):Do.call(t,L)&&L[0]!=="_"&&jo(L,t[L],o,i+1,u);o.push(["",e?">…</"+d+">":"/>"]);return}if(d=Object.prototype.toString.call(t),d=d.slice(8,d.length-1),d==="Array"){if(L=a_(t),L===qy||L===Qf){t=JSON.stringify(t);break}else if(L===Vy){o.push([u+"  ".repeat(i)+e,""]);for(e=0;e<t.length;e++)d=t[e],jo(d[0],d[1],o,i+1,u);return}}if(d==="Promise"){if(t.status==="fulfilled"){if(d=o.length,jo(e,t.value,o,i,u),o.length>d){o=o[d],o[1]="Promise<"+(o[1]||"Object")+">";return}}else if(t.status==="rejected"&&(d=o.length,jo(e,t.reason,o,i,u),o.length>d)){o=o[d],o[1]="Rejected Promise<"+o[1]+">";return}o.push(["  ".repeat(i)+e,"Promise"]);return}d==="Object"&&(L=Object.getPrototypeOf(t))&&typeof L.constructor==="function"&&(d=L.constructor.name),o.push([u+"  ".repeat(i)+e,d==="Object"?3>i?"":"…":d]),3>i&&ym(t,o,i+1,u);return}case"function":t=t.name===""?"() => {}":t.name+"() {}";break;case"string":t=t===BR?"…":JSON.stringify(t);break;case"undefined":t="undefined";break;case"boolean":t=t?"true":"false";break;default:t=String(t)}o.push([u+"  ".repeat(i)+e,t])}function U0(e,t,o,i){var u=!0;for(m in e)m in t||(o.push([Zf+"  ".repeat(i)+m,"…"]),u=!1);for(var d in t)if(d in e){var m=e[d],g=t[d];if(m!==g){if(i===0&&d==="children")u="  ".repeat(i)+d,o.push([Zf+u,"…"],[Jf+u,"…"]);else{if(!(3<=i)){if(typeof m==="object"&&typeof g==="object"&&m!==null&&g!==null&&m.$$typeof===g.$$typeof)if(g.$$typeof===ln){if(m.type===g.type&&m.key===g.key){m=J(g.type)||"…",u="  ".repeat(i)+d,m="<"+m+" … />",o.push([Zf+u,m],[Jf+u,m]),u=!1;continue}}else{var S=Object.prototype.toString.call(m),L=Object.prototype.toString.call(g);if(S===L&&(L==="[object Object]"||L==="[object Array]")){S=[$C+"  ".repeat(i)+d,L==="[object Array]"?"Array":""],o.push(S),L=o.length,U0(m,g,o,i+1)?L===o.length&&(S[1]="Referentially unequal but deeply equal objects. Consider memoization."):u=!1;continue}}else if(typeof m==="function"&&typeof g==="function"&&m.name===g.name&&m.length===g.length&&(S=Function.prototype.toString.call(m),L=Function.prototype.toString.call(g),S===L)){m=g.name===""?"() => {}":g.name+"() {}",o.push([$C+"  ".repeat(i)+d,m+" Referentially unequal function closure. Consider memoization."]);continue}}jo(d,m,o,i,Zf),jo(d,g,o,i,Jf)}u=!1}}else o.push([Jf+"  ".repeat(i)+d,"…"]),u=!1;return u}function Ga(e){Ne=e&63?"Blocking":e&64?"Gesture":e&4194176?"Transition":e&62914560?"Suspense":e&2080374784?"Idle":"Other"}function Go(e,t,o,i){yt&&(Ps.start=t,Ps.end=o,Hn.color="warning",Hn.tooltipText=i,Hn.properties=null,(e=e._debugTask)?e.run(performance.measure.bind(performance,i,Ps)):performance.measure(i,Ps))}function Pd(e,t,o){Go(e,t,o,"Reconnect")}function zd(e,t,o,i,u){var d=q(e);if(d!==null&&yt){var{alternate:m,actualDuration:g}=e;if(m===null||m.child!==e.child)for(var S=e.child;S!==null;S=S.sibling)g-=S.actualDuration;i=0.5>g?i?"tertiary-light":"primary-light":10>g?i?"tertiary":"primary":100>g?i?"tertiary-dark":"primary-dark":"error";var L=e.memoizedProps;g=e._debugTask,L!==null&&m!==null&&m.memoizedProps!==L?(S=[PR],L=U0(m.memoizedProps,L,S,0),1<S.length&&(L&&!Bs&&(m.lanes&u)===0&&100<e.actualDuration?(Bs=!0,S[0]=zR,Hn.color="warning",Hn.tooltipText=QC):(Hn.color=i,Hn.tooltipText=d),Hn.properties=S,Ps.start=t,Ps.end=o,g!=null?g.run(performance.measure.bind(performance,"​"+d,Ps)):performance.measure("​"+d,Ps))):g!=null?g.run(console.timeStamp.bind(console,d,t,o,co,void 0,i)):console.timeStamp(d,t,o,co,void 0,i)}}function bm(e,t,o,i){if(yt){var u=q(e);if(u!==null){for(var d=null,m=[],g=0;g<i.length;g++){var S=i[g];d==null&&S.source!==null&&(d=S.source._debugTask),S=S.value,m.push(["Error",typeof S==="object"&&S!==null&&typeof S.message==="string"?String(S.message):String(S)])}e.key!==null&&jo("key",e.key,m,0,""),e.memoizedProps!==null&&ym(e.memoizedProps,m,0,""),d==null&&(d=e._debugTask),e={start:t,end:o,detail:{devtools:{color:"error",track:co,tooltipText:e.tag===13?"Hydration failed":"Error boundary caught an error",properties:m}}},d?d.run(performance.measure.bind(performance,"​"+u,e)):performance.measure("​"+u,e)}}}function Yo(e,t,o,i,u){if(u!==null){if(yt){var d=q(e);if(d!==null){i=[];for(var m=0;m<u.length;m++){var g=u[m].value;i.push(["Error",typeof g==="object"&&g!==null&&typeof g.message==="string"?String(g.message):String(g)])}e.key!==null&&jo("key",e.key,i,0,""),e.memoizedProps!==null&&ym(e.memoizedProps,i,0,""),t={start:t,end:o,detail:{devtools:{color:"error",track:co,tooltipText:"A lifecycle or effect errored",properties:i}}},(e=e._debugTask)?e.run(performance.measure.bind(performance,"​"+d,t)):performance.measure("​"+d,t)}}}else d=q(e),d!==null&&yt&&(u=1>i?"secondary-light":100>i?"secondary":500>i?"secondary-dark":"error",(e=e._debugTask)?e.run(console.timeStamp.bind(console,d,t,o,co,void 0,u)):console.timeStamp(d,t,o,co,void 0,u))}function o_(e,t,o,i){if(yt&&!(t<=e)){var u=(o&738197653)===o?"tertiary-dark":"primary-dark";o=(o&536870912)===o?"Prepared":(o&201326741)===o?"Hydrated":"Render",i?i.run(console.timeStamp.bind(console,o,e,t,Ne,He,u)):console.timeStamp(o,e,t,Ne,He,u)}}function F0(e,t,o,i){!yt||t<=e||(o=(o&738197653)===o?"tertiary-dark":"primary-dark",i?i.run(console.timeStamp.bind(console,"Prewarm",e,t,Ne,He,o)):console.timeStamp("Prewarm",e,t,Ne,He,o))}function N0(e,t,o,i){!yt||t<=e||(o=(o&738197653)===o?"tertiary-dark":"primary-dark",i?i.run(console.timeStamp.bind(console,"Suspended",e,t,Ne,He,o)):console.timeStamp("Suspended",e,t,Ne,He,o))}function n_(e,t,o,i,u,d){if(yt&&!(t<=e)){o=[];for(var m=0;m<i.length;m++){var g=i[m].value;o.push(["Recoverable Error",typeof g==="object"&&g!==null&&typeof g.message==="string"?String(g.message):String(g)])}e={start:e,end:t,detail:{devtools:{color:"primary-dark",track:Ne,trackGroup:He,tooltipText:u?"Hydration Failed":"Recovered after Error",properties:o}}},d?d.run(performance.measure.bind(performance,"Recovered",e)):performance.measure("Recovered",e)}}function xm(e,t,o,i){!yt||t<=e||(i?i.run(console.timeStamp.bind(console,"Errored",e,t,Ne,He,"error")):console.timeStamp("Errored",e,t,Ne,He,"error"))}function s_(e,t,o,i){!yt||t<=e||(i?i.run(console.timeStamp.bind(console,o,e,t,Ne,He,"secondary-light")):console.timeStamp(o,e,t,Ne,He,"secondary-light"))}function q0(e,t,o,i,u){if(yt&&!(t<=e)){for(var d=[],m=0;m<o.length;m++){var g=o[m].value;d.push(["Error",typeof g==="object"&&g!==null&&typeof g.message==="string"?String(g.message):String(g)])}e={start:e,end:t,detail:{devtools:{color:"error",track:Ne,trackGroup:He,tooltipText:i?"Remaining Effects Errored":"Commit Errored",properties:d}}},u?u.run(performance.measure.bind(performance,"Errored",e)):performance.measure("Errored",e)}}function mu(e,t,o){!yt||t<=e||(o?o.run(console.timeStamp.bind(console,"Animating",e,t,Ne,He,"secondary-dark")):console.timeStamp("Animating",e,t,Ne,He,"secondary-dark"))}function Hd(){for(var e=cr,t=jy=cr=0;t<e;){var o=fo[t];fo[t++]=null;var i=fo[t];fo[t++]=null;var u=fo[t];fo[t++]=null;var d=fo[t];if(fo[t++]=null,i!==null&&u!==null){var m=i.pending;m===null?u.next=u:(u.next=m.next,m.next=u),i.pending=u}d!==0&&V0(o,u,d)}}function Ud(e,t,o,i){fo[cr++]=e,fo[cr++]=t,fo[cr++]=o,fo[cr++]=i,jy|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function Sm(e,t,o,i){return Ud(e,t,o,i),Fd(e)}function fa(e,t){return Ud(e,null,null,t),Fd(e)}function V0(e,t,o){e.lanes|=o;var i=e.alternate;i!==null&&(i.lanes|=o);for(var u=!1,d=e.return;d!==null;)d.childLanes|=o,i=d.alternate,i!==null&&(i.childLanes|=o),d.tag===22&&(e=d.stateNode,e===null||e._visibility&tc||(u=!0)),e=d,d=d.return;return e.tag===3?(d=e.stateNode,u&&t!==null&&(u=31-ba(o),e=d.hiddenUpdates,i=e[u],i===null?e[u]=[t]:i.push(t),t.lane=o|536870912),d):null}function Fd(e){if(Ac>JR)throw il=Ac=0,_c=Cb=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.");il>KR&&(il=0,_c=null,console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")),e.alternate===null&&(e.flags&4098)!==0&&sL(e);for(var t=e,o=t.return;o!==null;)t.alternate===null&&(t.flags&4098)!==0&&sL(e),t=o,o=t.return;return t.tag===3?t.stateNode:null}function ki(e){if(ho===null)return e;var t=ho(e);return t===void 0?e:t.current}function vm(e){if(ho===null)return e;var t=ho(e);return t===void 0?e!==null&&e!==void 0&&typeof e.render==="function"&&(t=ki(e.render),e.render!==t)?(t={$$typeof:Vu,render:t},e.displayName!==void 0&&(t.displayName=e.displayName),t):e:t.current}function j0(e,t){if(ho===null)return!1;var o=e.elementType;t=t.type;var i=!1,u=typeof t==="object"&&t!==null?t.$$typeof:null;switch(e.tag){case 1:typeof t==="function"&&(i=!0);break;case 0:typeof t==="function"?i=!0:u===Ja&&(i=!0);break;case 11:u===Vu?i=!0:u===Ja&&(i=!0);break;case 14:case 15:u===Hf?i=!0:u===Ja&&(i=!0);break;default:return!1}return i&&(e=ho(o),e!==void 0&&e===ho(t))?!0:!1}function G0(e){ho!==null&&typeof WeakSet==="function"&&(dr===null&&(dr=new WeakSet),dr.add(e))}function Y0(e,t,o){do{var i=e,u=i.alternate,d=i.child,m=i.sibling,g=i.tag;i=i.type;var S=null;switch(g){case 0:case 15:case 1:S=i;break;case 11:S=i.render}if(ho===null)throw Error("Expected resolveFamily to be set during hot reload.");var L=!1;if(i=!1,S!==null&&(S=ho(S),S!==void 0&&(o.has(S)?i=!0:t.has(S)&&(g===1?i=!0:L=!0))),dr!==null&&(dr.has(e)||u!==null&&dr.has(u))&&(i=!0),i&&(e._debugNeedsRemount=!0),i||L)u=fa(e,2),u!==null&&Mt(u,e,2);if(d===null||i||Y0(d,t,o),m===null)break;e=m}while(1)}function i_(e,t,o,i){this.tag=e,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,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,ZC||typeof Object.preventExtensions!=="function"||Object.preventExtensions(this)}function Lm(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Dn(e,t){var o=e.alternate;switch(o===null?(o=v(e.tag,t,e.key,e.mode),o.elementType=e.elementType,o.type=e.type,o.stateNode=e.stateNode,o._debugOwner=e._debugOwner,o._debugStack=e._debugStack,o._debugTask=e._debugTask,o._debugHookTypes=e._debugHookTypes,o.alternate=e,e.alternate=o):(o.pendingProps=t,o.type=e.type,o.flags=0,o.subtreeFlags=0,o.deletions=null,o.actualDuration=-0,o.actualStartTime=-1.1),o.flags=e.flags&65011712,o.childLanes=e.childLanes,o.lanes=e.lanes,o.child=e.child,o.memoizedProps=e.memoizedProps,o.memoizedState=e.memoizedState,o.updateQueue=e.updateQueue,t=e.dependencies,o.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},o.sibling=e.sibling,o.index=e.index,o.ref=e.ref,o.refCleanup=e.refCleanup,o.selfBaseDuration=e.selfBaseDuration,o.treeBaseDuration=e.treeBaseDuration,o._debugInfo=e._debugInfo,o._debugNeedsRemount=e._debugNeedsRemount,o.tag){case 0:case 15:o.type=ki(e.type);break;case 1:o.type=ki(e.type);break;case 11:o.type=vm(e.type)}return o}function X0(e,t){e.flags&=65011714;var o=e.alternate;return o===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null,e.selfBaseDuration=0,e.treeBaseDuration=0):(e.childLanes=o.childLanes,e.lanes=o.lanes,e.child=o.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=o.memoizedProps,e.memoizedState=o.memoizedState,e.updateQueue=o.updateQueue,e.type=o.type,t=o.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},e.selfBaseDuration=o.selfBaseDuration,e.treeBaseDuration=o.treeBaseDuration),e}function Cm(e,t,o,i,u,d){var m=0,g=e;if(typeof e==="function")Lm(e)&&(m=1),g=ki(g);else if(typeof e==="string")m=de(),m=mD(e,o,m)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case my:return t=v(31,o,t,u),t.elementType=my,t.lanes=d,t;case Kl:return Oi(o.children,u,d,t);case zf:m=8,u|=pa,u|=ko;break;case dy:return e=o,i=u,typeof e.id!=="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id),t=v(12,e,t,i|De),t.elementType=dy,t.lanes=d,t.stateNode={effectDuration:0,passiveEffectDuration:0},t;case hy:return t=v(13,o,t,u),t.elementType=hy,t.lanes=d,t;case py:return t=v(19,o,t,u),t.elementType=py,t.lanes=d,t;default:if(typeof e==="object"&&e!==null)switch(e.$$typeof){case rn:m=10;break e;case fy:m=9;break e;case Vu:m=11,g=vm(g);break e;case Hf:m=14;break e;case Ja:m=16,g=null;break e}if(g="",e===void 0||typeof e==="object"&&e!==null&&Object.keys(e).length===0)g+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";e===null?o="null":Gt(e)?o="array":e!==void 0&&e.$$typeof===ln?(o="<"+(J(e.type)||"Unknown")+" />",g=" Did you accidentally export a JSX literal instead of a component?"):o=typeof e,(m=i?re(i):null)&&(g+=`
72
+
73
+ Check the render method of \``+m+"`."),m=29,o=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(o+"."+g)),g=null}return t=v(m,o,t,u),t.elementType=e,t.type=g,t.lanes=d,t._debugOwner=i,t}function Nd(e,t,o){return t=Cm(e.type,e.key,e.props,e._owner,t,o),t._debugOwner=e._owner,t._debugStack=e._debugStack,t._debugTask=e._debugTask,t}function Oi(e,t,o,i){return e=v(7,e,i,t),e.lanes=o,e}function Im(e,t,o){return e=v(6,e,null,t),e.lanes=o,e}function W0(e){var t=v(18,null,null,ve);return t.stateNode=e,t}function wm(e,t,o){return t=v(4,e.children!==null?e.children:[],e.key,t),t.lanes=o,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ya(e,t){if(typeof e==="object"&&e!==null){var o=Gy.get(e);if(o!==void 0)return o;return t={value:e,source:t,stack:Pt(t)},Gy.set(e,t),t}return{value:e,source:t,stack:Pt(t)}}function Rn(e,t){bs(),fr[hr++]=ac,fr[hr++]=Kf,Kf=e,ac=t}function $0(e,t,o){bs(),po[mo++]=Fn,po[mo++]=Nn,po[mo++]=Yi,Yi=e;var i=Fn;e=Nn;var u=32-ba(i)-1;i&=~(1<<u),o+=1;var d=32-ba(t)+u;if(30<d){var m=u-u%5;d=(i&(1<<m)-1).toString(32),i>>=m,u-=m,Fn=1<<32-ba(t)+u|o<<u|i,Nn=d+e}else Fn=1<<d|o<<u|i,Nn=e}function Mm(e){bs(),e.return!==null&&(Rn(e,1),$0(e,1,0))}function Tm(e){for(;e===Kf;)Kf=fr[--hr],fr[hr]=null,ac=fr[--hr],fr[hr]=null;for(;e===Yi;)Yi=po[--mo],po[mo]=null,Nn=po[--mo],po[mo]=null,Fn=po[--mo],po[mo]=null}function Q0(){return bs(),Yi!==null?{id:Fn,overflow:Nn}:null}function Z0(e,t){bs(),po[mo++]=Fn,po[mo++]=Nn,po[mo++]=Yi,Fn=t.id,Nn=t.overflow,Yi=e}function bs(){je||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function Ei(e,t){if(e.return===null){if(to===null)to={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t};else{if(to.fiber!==e)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");to.distanceFromLeaf>t&&(to.distanceFromLeaf=t)}return to}var o=Ei(e.return,t+1).children;if(0<o.length&&o[o.length-1].fiber===e)return o=o[o.length-1],o.distanceFromLeaf>t&&(o.distanceFromLeaf=t),o;return t={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t},o.push(t),t}function J0(){je&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function qd(e,t){pn||(e=Ei(e,0),e.serverProps=null,t!==null&&(t=DL(t),e.serverTail.push(t)))}function xs(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,o="",i=to;throw i!==null&&(to=null,o=fm(i)),gu(Ya(Error("Hydration failed because the server rendered "+(t?"text":"HTML")+` didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
74
+
75
+ - A server/client branch \`if (typeof window !== 'undefined')\`.
76
+ - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
77
+ - Date formatting in a user's locale which doesn't match the server.
78
+ - External changing data without sending a snapshot of it along with the HTML.
79
+ - Invalid HTML tag nesting.
80
+
81
+ It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
82
+
83
+ https://react.dev/link/hydration-mismatch`+o),e)),Yy}function K0(e){var{stateNode:t,type:o,memoizedProps:i}=e;switch(t[na]=e,t[xa]=i,Xg(o,i),o){case"dialog":Ge("cancel",t),Ge("close",t);break;case"iframe":case"object":case"embed":Ge("load",t);break;case"video":case"audio":for(o=0;o<Dc.length;o++)Ge(Dc[o],t);break;case"source":Ge("error",t);break;case"img":case"image":case"link":Ge("error",t),Ge("load",t);break;case"details":Ge("toggle",t);break;case"input":ys("input",i),Ge("invalid",t),s0(t,i),i0(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"option":l0(t,i);break;case"select":ys("select",i),Ge("invalid",t),u0(t,i);break;case"textarea":ys("textarea",i),Ge("invalid",t),c0(t,i),f0(t,i.value,i.defaultValue,i.children)}o=i.children,typeof o!=="string"&&typeof o!=="number"&&typeof o!=="bigint"||t.textContent===""+o||i.suppressHydrationWarning===!0||gL(t.textContent,o)?(i.popover!=null&&(Ge("beforetoggle",t),Ge("toggle",t)),i.onScroll!=null&&Ge("scroll",t),i.onScrollEnd!=null&&Ge("scrollend",t),i.onClick!=null&&(t.onclick=_n),t=!0):t=!1,t||xs(e,!0)}function eS(e){for(sa=e.return;sa;)switch(sa.tag){case 5:case 31:case 13:go=!1;return;case 27:case 3:go=!0;return;default:sa=sa.return}}function zl(e){if(e!==sa)return!1;if(!je)return eS(e),je=!0,!1;var t=e.tag,o;if(o=t!==3&&t!==27){if(o=t===5)o=e.type,o=!(o!=="form"&&o!=="button")||Jg(e.type,e.memoizedProps);o=!o}if(o&&bt){for(o=bt;o;){var i=Ei(e,0),u=DL(o);i.serverTail.push(u),o=u.type==="Suspense"?ay(o):Za(o.nextSibling)}xs(e)}if(eS(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");bt=ay(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");bt=ay(e)}else t===27?(t=bt,_s(e.type)?(e=Bb,Bb=null,bt=e):bt=t):bt=sa?Za(e.stateNode.nextSibling):null;return!0}function Bi(){bt=sa=null,pn=je=!1}function Am(){var e=Hs;return e!==null&&(wa===null?wa=e:wa.push.apply(wa,e),Hs=null),e}function gu(e){Hs===null?Hs=[e]:Hs.push(e)}function _m(){var e=to;if(e!==null){to=null;for(var t=fm(e);0<e.children.length;)e=e.children[0];ne(e.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:
84
+
85
+ - A server/client branch \`if (typeof window !== 'undefined')\`.
86
+ - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
87
+ - Date formatting in a user's locale which doesn't match the server.
88
+ - External changing data without sending a snapshot of it along with the HTML.
89
+ - Invalid HTML tag nesting.
90
+
91
+ It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
92
+
93
+ %s%s`,"https://react.dev/link/hydration-mismatch",t)})}}function Vd(){pr=eh=null,mr=!1}function Ss(e,t,o){Se(Xy,t._currentValue,e),t._currentValue=o,Se(Wy,t._currentRenderer,e),t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==KC&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=KC}function kn(e,t){e._currentValue=Xy.current;var o=Wy.current;ye(Wy,t),e._currentRenderer=o,ye(Xy,t)}function Dm(e,t,o){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===o)break;e=e.return}e!==o&&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 Rm(e,t,o,i){var u=e.child;u!==null&&(u.return=e);for(;u!==null;){var d=u.dependencies;if(d!==null){var m=u.child;d=d.firstContext;e:for(;d!==null;){var g=d;d=u;for(var S=0;S<t.length;S++)if(g.context===t[S]){d.lanes|=o,g=d.alternate,g!==null&&(g.lanes|=o),Dm(d.return,o,e),i||(m=null);break e}d=g.next}}else if(u.tag===18){if(m=u.return,m===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");m.lanes|=o,d=m.alternate,d!==null&&(d.lanes|=o),Dm(m,o,e),m=null}else m=u.child;if(m!==null)m.return=u;else for(m=u;m!==null;){if(m===e){m=null;break}if(u=m.sibling,u!==null){u.return=m.return,m=u;break}m=m.return}u=m}}function Hl(e,t,o,i){e=null;for(var u=t,d=!1;u!==null;){if(!d){if((u.flags&524288)!==0)d=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var m=u.alternate;if(m===null)throw Error("Should have a current fiber. This is a bug in React.");if(m=m.memoizedProps,m!==null){var g=u.type;va(u.pendingProps.value,m.value)||(e!==null?e.push(g):e=[g])}}else if(u===Uf.current){if(m=u.alternate,m===null)throw Error("Should have a current fiber. This is a bug in React.");m.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(e!==null?e.push(Bc):e=[Bc])}u=u.return}e!==null&&Rm(t,e,o,i),t.flags|=262144}function jd(e){for(e=e.firstContext;e!==null;){if(!va(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Pi(e){eh=e,pr=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function vt(e){return mr&&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()."),tS(eh,e)}function Gd(e,t){return eh===null&&Pi(e),tS(e,t)}function tS(e,t){var o=t._currentValue;if(t={context:t,memoizedValue:o,next:null},pr===null){if(e===null)throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");pr=t,e.dependencies={lanes:0,firstContext:t,_debugThenableState:null},e.flags|=524288}else pr=pr.next=t;return o}function km(){return{controller:new FR,data:new Map,refCount:0}}function zi(e){e.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),e.refCount++}function yu(e){e.refCount--,0>e.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),e.refCount===0&&NR(qR,function(){e.controller.abort()})}function Xo(e,t,o){if((e&127)!==0)0>mn&&(mn=Ht(),nc=th(t),$y=t,o!=null&&(Qy=q(o)),(Qe&(Xt|no))!==Kt&&(Tt=!0,Ns=oc),e=Hu(),t=zu(),e!==gr||t!==sc?gr=-1.1:t!==null&&(Ns=oc),Wi=e,sc=t);else if((e&4194048)!==0&&0>yo&&(yo=Ht(),ic=th(t),e1=t,o!=null&&(t1=q(o)),0>jn)){if(e=Hu(),t=zu(),e!==Vs||t!==$i)Vs=-1.1;qs=e,$i=t}}function l_(e){if(0>mn){mn=Ht(),nc=e._debugTask!=null?e._debugTask:null,(Qe&(Xt|no))!==Kt&&(Ns=oc);var t=Hu(),o=zu();t!==gr||o!==sc?gr=-1.1:o!==null&&(Ns=oc),Wi=t,sc=o}if(0>yo&&(yo=Ht(),ic=e._debugTask!=null?e._debugTask:null,0>jn)){if(e=Hu(),t=zu(),e!==Vs||t!==$i)Vs=-1.1;qs=e,$i=t}}function On(){var e=Xi;return Xi=0,e}function Yd(e){var t=Xi;return Xi=e,t}function bu(e){var t=Xi;return Xi+=e,t}function Xd(){xe=ge=-1.1}function Xa(){var e=ge;return ge=-1.1,e}function Wa(e){0<=e&&(ge=e)}function Wo(){var e=Ct;return Ct=-0,e}function $o(e){0<=e&&(Ct=e)}function Qo(){var e=Lt;return Lt=null,e}function Zo(){var e=Tt;return Tt=!1,e}function Om(e){La=Ht(),0>e.actualStartTime&&(e.actualStartTime=La)}function Em(e){if(0<=La){var t=Ht()-La;e.actualDuration+=t,e.selfBaseDuration=t,La=-1}}function aS(e){if(0<=La){var t=Ht()-La;e.actualDuration+=t,La=-1}}function Jo(){if(0<=La){var e=Ht(),t=e-La;La=-1,Xi+=t,Ct+=t,xe=e}}function oS(e){Lt===null&&(Lt=[]),Lt.push(e),Vn===null&&(Vn=[]),Vn.push(e)}function Ko(){La=Ht(),0>ge&&(ge=La)}function xu(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function r_(e,t){if(rc===null){var o=rc=[];Jy=0,Qi=Vg(),yr={status:"pending",value:void 0,then:function(i){o.push(i)}}}return Jy++,t.then(nS,nS),t}function nS(){if(--Jy===0&&(-1<yo||(jn=-1.1),rc!==null)){yr!==null&&(yr.status="fulfilled");var e=rc;rc=null,Qi=0,yr=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function u_(e,t){var o=[],i={status:"pending",value:null,reason:null,then:function(u){o.push(u)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var u=0;u<o.length;u++)(0,o[u])(t)},function(u){i.status="rejected",i.reason=u;for(u=0;u<o.length;u++)(0,o[u])(void 0)}),i}function Bm(){var e=Zi.current;return e!==null?e:dt.pooledCache}function Wd(e,t){t===null?Se(Zi,Zi.current,e):Se(Zi,t.pool,e)}function sS(){var e=Bm();return e===null?null:{parent:zt._currentValue,pool:e}}function iS(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function lS(e){return e=e.status,e==="fulfilled"||e==="rejected"}function rS(e,t,o){U.actQueue!==null&&(U.didUsePromise=!0);var i=e.thenables;if(o=i[o],o===void 0?i.push(t):o!==t&&(e.didWarnAboutUncachedPromise||(e.didWarnAboutUncachedPromise=!0,console.error("A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.")),t.then(_n,_n),t=o),t._debugInfo===void 0){e=performance.now(),i=t.displayName;var u={name:typeof i==="string"?i:"Promise",start:e,end:e,value:t};t._debugInfo=[{awaited:u}],t.status!=="fulfilled"&&t.status!=="rejected"&&(e=function(){u.end=performance.now()},t.then(e,e))}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,cS(e),e;default:if(typeof t.status==="string")t.then(_n,_n);else{if(e=dt,e!==null&&100<e.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");e=t,e.status="pending",e.then(function(d){if(t.status==="pending"){var m=t;m.status="fulfilled",m.value=d}},function(d){if(t.status==="pending"){var m=t;m.status="rejected",m.reason=d}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,cS(e),e}throw Ki=t,mc=!0,br}}function vs(e){try{return YR(e)}catch(t){if(t!==null&&typeof t==="object"&&typeof t.then==="function")throw Ki=t,mc=!0,br;throw t}}function uS(){if(Ki===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var e=Ki;return Ki=null,mc=!1,e}function cS(e){if(e===br||e===uh)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 ta(e){var t=Re;return e!=null&&(Re=t===null?e:t.concat(e)),t}function Pm(){var e=Re;if(e!=null){for(var t=e.length-1;0<=t;t--)if(e[t].name!=null){var o=e[t].debugTask;if(o!=null)return o}}return null}function $d(e,t,o){for(var i=Object.keys(e.props),u=0;u<i.length;u++){var d=i[u];if(d!=="children"&&d!=="key"){t===null&&(t=Nd(e,o.mode,0),t._debugInfo=Re,t.return=o),ne(t,function(m){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",m)},d);break}}}function Qd(e){var t=gc;return gc+=1,xr===null&&(xr=iS()),rS(xr,e,t)}function Su(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function dS(e,t){if(t.$$typeof===wD)throw Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
94
+ - Multiple copies of the "react" package is used.
95
+ - A library pre-bundled an old copy of "react" or "react/jsx-runtime".
96
+ - A compiler tries to "inline" JSX instead of using the runtime.`);throw e=Object.prototype.toString.call(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.")}function Zd(e,t){var o=Pm();o!==null?o.run(dS.bind(null,e,t)):dS(e,t)}function fS(e,t){var o=q(e)||"Component";v1[o]||(v1[o]=!0,t=t.displayName||t.name||"Component",e.tag===3?console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
97
+ root.render(%s)`,t,t,t):console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
98
+ <%s>{%s}</%s>`,t,t,o,t,o))}function Jd(e,t){var o=Pm();o!==null?o.run(fS.bind(null,e,t)):fS(e,t)}function hS(e,t){var o=q(e)||"Component";L1[o]||(L1[o]=!0,t=String(t),e.tag===3?console.error(`Symbols are not valid as a React child.
99
+ root.render(%s)`,t):console.error(`Symbols are not valid as a React child.
100
+ <%s>%s</%s>`,o,t,o))}function Kd(e,t){var o=Pm();o!==null?o.run(hS.bind(null,e,t)):hS(e,t)}function pS(e){function t(T,_){if(e){var k=T.deletions;k===null?(T.deletions=[_],T.flags|=16):k.push(_)}}function o(T,_){if(!e)return null;for(;_!==null;)t(T,_),_=_.sibling;return null}function i(T){for(var _=new Map;T!==null;)T.key!==null?_.set(T.key,T):_.set(T.index,T),T=T.sibling;return _}function u(T,_){return T=Dn(T,_),T.index=0,T.sibling=null,T}function d(T,_,k){if(T.index=k,!e)return T.flags|=1048576,_;if(k=T.alternate,k!==null)return k=k.index,k<_?(T.flags|=67108866,_):k;return T.flags|=67108866,_}function m(T){return e&&T.alternate===null&&(T.flags|=67108866),T}function g(T,_,k,F){if(_===null||_.tag!==6)return _=Im(k,T.mode,F),_.return=T,_._debugOwner=T,_._debugTask=T._debugTask,_._debugInfo=Re,_;return _=u(_,k),_.return=T,_._debugInfo=Re,_}function S(T,_,k,F){var te=k.type;if(te===Kl)return _=O(T,_,k.props.children,F,k.key),$d(k,_,T),_;if(_!==null&&(_.elementType===te||j0(_,k)||typeof te==="object"&&te!==null&&te.$$typeof===Ja&&vs(te)===_.type))return _=u(_,k.props),Su(_,k),_.return=T,_._debugOwner=k._owner,_._debugInfo=Re,_;return _=Nd(k,T.mode,F),Su(_,k),_.return=T,_._debugInfo=Re,_}function L(T,_,k,F){if(_===null||_.tag!==4||_.stateNode.containerInfo!==k.containerInfo||_.stateNode.implementation!==k.implementation)return _=wm(k,T.mode,F),_.return=T,_._debugInfo=Re,_;return _=u(_,k.children||[]),_.return=T,_._debugInfo=Re,_}function O(T,_,k,F,te){if(_===null||_.tag!==7)return _=Oi(k,T.mode,F,te),_.return=T,_._debugOwner=T,_._debugTask=T._debugTask,_._debugInfo=Re,_;return _=u(_,k),_.return=T,_._debugInfo=Re,_}function E(T,_,k){if(typeof _==="string"&&_!==""||typeof _==="number"||typeof _==="bigint")return _=Im(""+_,T.mode,k),_.return=T,_._debugOwner=T,_._debugTask=T._debugTask,_._debugInfo=Re,_;if(typeof _==="object"&&_!==null){switch(_.$$typeof){case ln:return k=Nd(_,T.mode,k),Su(k,_),k.return=T,T=ta(_._debugInfo),k._debugInfo=Re,Re=T,k;case Jl:return _=wm(_,T.mode,k),_.return=T,_._debugInfo=Re,_;case Ja:var F=ta(_._debugInfo);return _=vs(_),T=E(T,_,k),Re=F,T}if(Gt(_)||V(_))return k=Oi(_,T.mode,k,null),k.return=T,k._debugOwner=T,k._debugTask=T._debugTask,T=ta(_._debugInfo),k._debugInfo=Re,Re=T,k;if(typeof _.then==="function")return F=ta(_._debugInfo),T=E(T,Qd(_),k),Re=F,T;if(_.$$typeof===rn)return E(T,Gd(T,_),k);Zd(T,_)}return typeof _==="function"&&Jd(T,_),typeof _==="symbol"&&Kd(T,_),null}function A(T,_,k,F){var te=_!==null?_.key:null;if(typeof k==="string"&&k!==""||typeof k==="number"||typeof k==="bigint")return te!==null?null:g(T,_,""+k,F);if(typeof k==="object"&&k!==null){switch(k.$$typeof){case ln:return k.key===te?(te=ta(k._debugInfo),T=S(T,_,k,F),Re=te,T):null;case Jl:return k.key===te?L(T,_,k,F):null;case Ja:return te=ta(k._debugInfo),k=vs(k),T=A(T,_,k,F),Re=te,T}if(Gt(k)||V(k)){if(te!==null)return null;return te=ta(k._debugInfo),T=O(T,_,k,F,null),Re=te,T}if(typeof k.then==="function")return te=ta(k._debugInfo),T=A(T,_,Qd(k),F),Re=te,T;if(k.$$typeof===rn)return A(T,_,Gd(T,k),F);Zd(T,k)}return typeof k==="function"&&Jd(T,k),typeof k==="symbol"&&Kd(T,k),null}function P(T,_,k,F,te){if(typeof F==="string"&&F!==""||typeof F==="number"||typeof F==="bigint")return T=T.get(k)||null,g(_,T,""+F,te);if(typeof F==="object"&&F!==null){switch(F.$$typeof){case ln:return k=T.get(F.key===null?k:F.key)||null,T=ta(F._debugInfo),_=S(_,k,F,te),Re=T,_;case Jl:return T=T.get(F.key===null?k:F.key)||null,L(_,T,F,te);case Ja:var Ce=ta(F._debugInfo);return F=vs(F),_=P(T,_,k,F,te),Re=Ce,_}if(Gt(F)||V(F))return k=T.get(k)||null,T=ta(F._debugInfo),_=O(_,k,F,te,null),Re=T,_;if(typeof F.then==="function")return Ce=ta(F._debugInfo),_=P(T,_,k,Qd(F),te),Re=Ce,_;if(F.$$typeof===rn)return P(T,_,k,Gd(_,F),te);Zd(_,F)}return typeof F==="function"&&Jd(_,F),typeof F==="symbol"&&Kd(_,F),null}function K(T,_,k,F){if(typeof k!=="object"||k===null)return F;switch(k.$$typeof){case ln:case Jl:b(T,_,k);var te=k.key;if(typeof te!=="string")break;if(F===null){F=new Set,F.add(te);break}if(!F.has(te)){F.add(te);break}ne(_,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.",te)});break;case Ja:k=vs(k),K(T,_,k,F)}return F}function ae(T,_,k,F){for(var te=null,Ce=null,pe=null,ue=_,Ae=_=0,xt=null;ue!==null&&Ae<k.length;Ae++){ue.index>Ae?(xt=ue,ue=null):xt=ue.sibling;var Et=A(T,ue,k[Ae],F);if(Et===null){ue===null&&(ue=xt);break}te=K(T,Et,k[Ae],te),e&&ue&&Et.alternate===null&&t(T,ue),_=d(Et,_,Ae),pe===null?Ce=Et:pe.sibling=Et,pe=Et,ue=xt}if(Ae===k.length)return o(T,ue),je&&Rn(T,Ae),Ce;if(ue===null){for(;Ae<k.length;Ae++)ue=E(T,k[Ae],F),ue!==null&&(te=K(T,ue,k[Ae],te),_=d(ue,_,Ae),pe===null?Ce=ue:pe.sibling=ue,pe=ue);return je&&Rn(T,Ae),Ce}for(ue=i(ue);Ae<k.length;Ae++)xt=P(ue,T,Ae,k[Ae],F),xt!==null&&(te=K(T,xt,k[Ae],te),e&&xt.alternate!==null&&ue.delete(xt.key===null?Ae:xt.key),_=d(xt,_,Ae),pe===null?Ce=xt:pe.sibling=xt,pe=xt);return e&&ue.forEach(function(Kn){return t(T,Kn)}),je&&Rn(T,Ae),Ce}function mt(T,_,k,F){if(k==null)throw Error("An iterable object provided no iterator.");for(var te=null,Ce=null,pe=_,ue=_=0,Ae=null,xt=null,Et=k.next();pe!==null&&!Et.done;ue++,Et=k.next()){pe.index>ue?(Ae=pe,pe=null):Ae=pe.sibling;var Kn=A(T,pe,Et.value,F);if(Kn===null){pe===null&&(pe=Ae);break}xt=K(T,Kn,Et.value,xt),e&&pe&&Kn.alternate===null&&t(T,pe),_=d(Kn,_,ue),Ce===null?te=Kn:Ce.sibling=Kn,Ce=Kn,pe=Ae}if(Et.done)return o(T,pe),je&&Rn(T,ue),te;if(pe===null){for(;!Et.done;ue++,Et=k.next())pe=E(T,Et.value,F),pe!==null&&(xt=K(T,pe,Et.value,xt),_=d(pe,_,ue),Ce===null?te=pe:Ce.sibling=pe,Ce=pe);return je&&Rn(T,ue),te}for(pe=i(pe);!Et.done;ue++,Et=k.next())Ae=P(pe,T,ue,Et.value,F),Ae!==null&&(xt=K(T,Ae,Et.value,xt),e&&Ae.alternate!==null&&pe.delete(Ae.key===null?ue:Ae.key),_=d(Ae,_,ue),Ce===null?te=Ae:Ce.sibling=Ae,Ce=Ae);return e&&pe.forEach(function(gk){return t(T,gk)}),je&&Rn(T,ue),te}function Ye(T,_,k,F){if(typeof k==="object"&&k!==null&&k.type===Kl&&k.key===null&&($d(k,null,T),k=k.props.children),typeof k==="object"&&k!==null){switch(k.$$typeof){case ln:var te=ta(k._debugInfo);e:{for(var Ce=k.key;_!==null;){if(_.key===Ce){if(Ce=k.type,Ce===Kl){if(_.tag===7){o(T,_.sibling),F=u(_,k.props.children),F.return=T,F._debugOwner=k._owner,F._debugInfo=Re,$d(k,F,T),T=F;break e}}else if(_.elementType===Ce||j0(_,k)||typeof Ce==="object"&&Ce!==null&&Ce.$$typeof===Ja&&vs(Ce)===_.type){o(T,_.sibling),F=u(_,k.props),Su(F,k),F.return=T,F._debugOwner=k._owner,F._debugInfo=Re,T=F;break e}o(T,_);break}else t(T,_);_=_.sibling}k.type===Kl?(F=Oi(k.props.children,T.mode,F,k.key),F.return=T,F._debugOwner=T,F._debugTask=T._debugTask,F._debugInfo=Re,$d(k,F,T),T=F):(F=Nd(k,T.mode,F),Su(F,k),F.return=T,F._debugInfo=Re,T=F)}return T=m(T),Re=te,T;case Jl:e:{te=k;for(k=te.key;_!==null;){if(_.key===k)if(_.tag===4&&_.stateNode.containerInfo===te.containerInfo&&_.stateNode.implementation===te.implementation){o(T,_.sibling),F=u(_,te.children||[]),F.return=T,T=F;break e}else{o(T,_);break}else t(T,_);_=_.sibling}F=wm(te,T.mode,F),F.return=T,T=F}return m(T);case Ja:return te=ta(k._debugInfo),k=vs(k),T=Ye(T,_,k,F),Re=te,T}if(Gt(k))return te=ta(k._debugInfo),T=ae(T,_,k,F),Re=te,T;if(V(k)){if(te=ta(k._debugInfo),Ce=V(k),typeof Ce!=="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var pe=Ce.call(k);if(pe===k){if(T.tag!==0||Object.prototype.toString.call(T.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(pe)!=="[object Generator]")x1||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."),x1=!0}else k.entries!==Ce||ab||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ab=!0);return T=mt(T,_,pe,F),Re=te,T}if(typeof k.then==="function")return te=ta(k._debugInfo),T=Ye(T,_,Qd(k),F),Re=te,T;if(k.$$typeof===rn)return Ye(T,_,Gd(T,k),F);Zd(T,k)}if(typeof k==="string"&&k!==""||typeof k==="number"||typeof k==="bigint")return te=""+k,_!==null&&_.tag===6?(o(T,_.sibling),F=u(_,te),F.return=T,T=F):(o(T,_),F=Im(te,T.mode,F),F.return=T,F._debugOwner=T,F._debugTask=T._debugTask,F._debugInfo=Re,T=F),m(T);return typeof k==="function"&&Jd(T,k),typeof k==="symbol"&&Kd(T,k),o(T,_)}return function(T,_,k,F){var te=Re;Re=null;try{gc=0;var Ce=Ye(T,_,k,F);return xr=null,Ce}catch(xt){if(xt===br||xt===uh)throw xt;var pe=v(29,xt,null,T.mode);pe.lanes=F,pe.return=T;var ue=pe._debugInfo=Re;if(pe._debugOwner=T._debugOwner,pe._debugTask=T._debugTask,ue!=null){for(var Ae=ue.length-1;0<=Ae;Ae--)if(typeof ue[Ae].stack==="string"){pe._debugOwner=ue[Ae],pe._debugTask=ue[Ae].debugTask;break}}return pe}finally{Re=te}}}function mS(e,t){var o=Gt(e);return e=!o&&typeof V(e)==="function",o||e?(o=o?"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>",o,t,o),!1):!0}function zm(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Hm(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ls(e){return{lane:e,tag:I1,payload:null,callback:null,next:null}}function Cs(e,t,o){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,nb===i&&!T1){var u=q(e);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
101
+
102
+ Please update the following component: %s`,u),T1=!0}if((Qe&Xt)!==Kt)return u=i.pending,u===null?t.next=t:(t.next=u.next,u.next=t),i.pending=t,t=Fd(e),V0(e,null,o),t;return Ud(e,i,t,o),Fd(e)}function vu(e,t,o){if(t=t.updateQueue,t!==null&&(t=t.shared,(o&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,o|=i,t.lanes=o,Mi(e,o)}}function ef(e,t){var{updateQueue:o,alternate:i}=e;if(i!==null&&(i=i.updateQueue,o===i)){var u=null,d=null;if(o=o.firstBaseUpdate,o!==null){do{var m={lane:o.lane,tag:o.tag,payload:o.payload,callback:null,next:null};d===null?u=d=m:d=d.next=m,o=o.next}while(o!==null);d===null?u=d=t:d=d.next=t}else u=d=t;o={baseState:i.baseState,firstBaseUpdate:u,lastBaseUpdate:d,shared:i.shared,callbacks:i.callbacks},e.updateQueue=o;return}e=o.lastBaseUpdate,e===null?o.firstBaseUpdate=t:e.next=t,o.lastBaseUpdate=t}function Lu(){if(sb){var e=yr;if(e!==null)throw e}}function Cu(e,t,o,i){sb=!1;var u=e.updateQueue;js=!1,nb=u.shared;var{firstBaseUpdate:d,lastBaseUpdate:m}=u,g=u.shared.pending;if(g!==null){u.shared.pending=null;var S=g,L=S.next;S.next=null,m===null?d=L:m.next=L,m=S;var O=e.alternate;O!==null&&(O=O.updateQueue,g=O.lastBaseUpdate,g!==m&&(g===null?O.firstBaseUpdate=L:g.next=L,O.lastBaseUpdate=S))}if(d!==null){var E=u.baseState;m=0,O=L=S=null,g=d;do{var A=g.lane&-536870913,P=A!==g.lane;if(P?(ke&A)===A:(i&A)===A){A!==0&&A===Qi&&(sb=!0),O!==null&&(O=O.next={lane:0,tag:g.tag,payload:g.payload,callback:null,next:null});e:{A=e;var K=g,ae=t,mt=o;switch(K.tag){case w1:if(K=K.payload,typeof K==="function"){mr=!0;var Ye=K.call(mt,E,ae);if(A.mode&pa){ht(!0);try{K.call(mt,E,ae)}finally{ht(!1)}}mr=!1,E=Ye;break e}E=K;break e;case ob:A.flags=A.flags&-65537|128;case I1:if(Ye=K.payload,typeof Ye==="function"){if(mr=!0,K=Ye.call(mt,E,ae),A.mode&pa){ht(!0);try{Ye.call(mt,E,ae)}finally{ht(!1)}}mr=!1}else K=Ye;if(K===null||K===void 0)break e;E=ze({},E,K);break e;case M1:js=!0}}A=g.callback,A!==null&&(e.flags|=64,P&&(e.flags|=8192),P=u.callbacks,P===null?u.callbacks=[A]:P.push(A))}else P={lane:A,tag:g.tag,payload:g.payload,callback:g.callback,next:null},O===null?(L=O=P,S=E):O=O.next=P,m|=A;if(g=g.next,g===null)if(g=u.shared.pending,g===null)break;else P=g,g=P.next,P.next=null,u.lastBaseUpdate=P,u.shared.pending=null}while(1);O===null&&(S=E),u.baseState=S,u.firstBaseUpdate=L,u.lastBaseUpdate=O,d===null&&(u.shared.lanes=0),Xs|=m,e.lanes=m,e.memoizedState=E}nb=null}function gS(e,t){if(typeof e!=="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+e);e.call(t)}function c_(e,t){var o=e.shared.hiddenCallbacks;if(o!==null)for(e.shared.hiddenCallbacks=null,e=0;e<o.length;e++)gS(o[e],t)}function yS(e,t){var o=e.callbacks;if(o!==null)for(e.callbacks=null,e=0;e<o.length;e++)gS(o[e],t)}function bS(e,t){var o=bn;Se(dh,o,e),Se(Sr,t,e),bn=o|t.baseLanes}function Um(e){Se(dh,bn,e),Se(Sr,Sr.current,e)}function Fm(e){bn=dh.current,ye(Sr,e),ye(dh,e)}function Is(e){var t=e.alternate;Se(Ot,Ot.current&vr,e),Se(ao,e,e),bo===null&&(t===null||Sr.current!==null?bo=e:t.memoizedState!==null&&(bo=e))}function Nm(e){Se(Ot,Ot.current,e),Se(ao,e,e),bo===null&&(bo=e)}function xS(e){e.tag===22?(Se(Ot,Ot.current,e),Se(ao,e,e),bo===null&&(bo=e)):ws(e)}function ws(e){Se(Ot,Ot.current,e),Se(ao,ao.current,e)}function $a(e){ye(ao,e),bo===e&&(bo=null),ye(Ot,e)}function tf(e){for(var t=e;t!==null;){if(t.tag===13){var o=t.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||ey(o)||ty(o)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Pe(){var e=H;So===null?So=[e]:So.push(e)}function j(){var e=H;if(So!==null&&(Wn++,So[Wn]!==e)){var t=q(Le);if(!A1.has(t)&&(A1.add(t),So!==null)){for(var o="",i=0;i<=Wn;i++){var u=So[i],d=i===Wn?e:u;for(u=i+1+". "+u;30>u.length;)u+=" ";u+=d+`
103
+ `,o+=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
+
105
+ Previous render Next render
106
+ ------------------------------------------------------
107
+ %s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
108
+ `,t,o)}}}function Ul(e){e===void 0||e===null||Gt(e)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",H,typeof e)}function af(){var e=q(Le);D1.has(e)||(D1.add(e),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",e))}function Rt(){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
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
110
+ 2. You might be breaking the Rules of Hooks
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 qm(e,t){if(xc)return!1;if(t===null)return console.error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",H),!1;e.length!==t.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
113
+
114
+ Previous: %s
115
+ Incoming: %s`,H,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var o=0;o<t.length&&o<e.length;o++)if(!va(e[o],t[o]))return!1;return!0}function Vm(e,t,o,i,u,d){if(Yn=d,Le=t,So=e!==null?e._debugHookTypes:null,Wn=-1,xc=e!==null&&e.type!==t.type,Object.prototype.toString.call(o)==="[object AsyncFunction]"||Object.prototype.toString.call(o)==="[object AsyncGeneratorFunction]")d=q(Le),ib.has(d)||(ib.add(d),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.",d===null?"An unknown Component":"<"+d+">"));t.memoizedState=null,t.updateQueue=null,t.lanes=0,U.H=e!==null&&e.memoizedState!==null?rb:So!==null?R1:lb,tl=d=(t.mode&pa)!==ve;var m=Ky(o,i,u);if(tl=!1,Cr&&(m=jm(t,o,i,u)),d){ht(!0);try{m=jm(t,o,i,u)}finally{ht(!1)}}return SS(e,t),m}function SS(e,t){t._debugHookTypes=So,t.dependencies===null?Xn!==null&&(t.dependencies={lanes:0,firstContext:null,_debugThenableState:Xn}):t.dependencies._debugThenableState=Xn,U.H=Sc;var o=ct!==null&&ct.next!==null;if(Yn=0,So=H=Ut=ct=Le=null,Wn=-1,e!==null&&(e.flags&65011712)!==(t.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),hh=!1,bc=0,Xn=null,o)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");e===null||Ft||(e=e.dependencies,e!==null&&jd(e)&&(Ft=!0)),mc?(mc=!1,e=!0):e=!1,e&&(t=q(t)||"Unknown",_1.has(t)||ib.has(t)||(_1.add(t),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function jm(e,t,o,i){Le=e;var u=0;do{if(Cr&&(Xn=null),bc=0,Cr=!1,u>=WR)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(u+=1,xc=!1,Ut=ct=null,e.updateQueue!=null){var d=e.updateQueue;d.lastEffect=null,d.events=null,d.stores=null,d.memoCache!=null&&(d.memoCache.index=0)}Wn=-1,U.H=k1,d=Ky(t,o,i)}while(Cr);return d}function d_(){var e=U.H,t=e.useState()[0];return t=typeof t.then==="function"?Iu(t):t,e=e.useState()[0],(ct!==null?ct.memoizedState:null)!==e&&(Le.flags|=1024),t}function Gm(){var e=ph!==0;return ph=0,e}function Ym(e,t,o){t.updateQueue=e.updateQueue,t.flags=(t.mode&ko)!==ve?t.flags&-402655237:t.flags&-2053,e.lanes&=~o}function Xm(e){if(hh){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}hh=!1}Yn=0,So=Ut=ct=Le=null,Wn=-1,H=null,Cr=!1,bc=ph=0,Xn=null}function ya(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ut===null?Le.memoizedState=Ut=e:Ut=Ut.next=e,Ut}function st(){if(ct===null){var e=Le.alternate;e=e!==null?e.memoizedState:null}else e=ct.next;var t=Ut===null?Le.memoizedState:Ut.next;if(t!==null)Ut=t,ct=e;else{if(e===null){if(Le.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.")}ct=e,e={memoizedState:ct.memoizedState,baseState:ct.baseState,baseQueue:ct.baseQueue,queue:ct.queue,next:null},Ut===null?Le.memoizedState=Ut=e:Ut=Ut.next=e}return Ut}function of(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Iu(e){var t=bc;return bc+=1,Xn===null&&(Xn=iS()),e=rS(Xn,e,t),t=Le,(Ut===null?t.memoizedState:Ut.next)===null&&(t=t.alternate,U.H=t!==null&&t.memoizedState!==null?rb:lb),e}function Ms(e){if(e!==null&&typeof e==="object"){if(typeof e.then==="function")return Iu(e);if(e.$$typeof===rn)return vt(e)}throw Error("An unsupported type was passed to use(): "+String(e))}function Hi(e){var t=null,o=Le.updateQueue;if(o!==null&&(t=o.memoCache),t==null){var i=Le.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(u){return u.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),o===null&&(o=of(),Le.updateQueue=o),o.memoCache=t,o=t.data[t.index],o===void 0||xc)for(o=t.data[t.index]=Array(e),i=0;i<e;i++)o[i]=MD;else o.length!==e&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",o.length,e);return t.index++,o}function Ao(e,t){return typeof t==="function"?t(e):t}function Wm(e,t,o){var i=ya();if(o!==void 0){var u=o(t);if(tl){ht(!0);try{o(t)}finally{ht(!1)}}}else u=t;return i.memoizedState=i.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},i.queue=e,e=e.dispatch=g_.bind(null,Le,e),[i.memoizedState,e]}function Fl(e){var t=st();return $m(t,ct,e)}function $m(e,t,o){var i=e.queue;if(i===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");i.lastRenderedReducer=o;var u=e.baseQueue,d=i.pending;if(d!==null){if(u!==null){var m=u.next;u.next=d.next,d.next=m}t.baseQueue!==u&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),t.baseQueue=u=d,i.pending=null}if(d=e.baseState,u===null)e.memoizedState=d;else{t=u.next;var g=m=null,S=null,L=t,O=!1;do{var E=L.lane&-536870913;if(E!==L.lane?(ke&E)===E:(Yn&E)===E){var A=L.revertLane;if(A===0)S!==null&&(S=S.next={lane:0,revertLane:0,gesture:null,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null}),E===Qi&&(O=!0);else if((Yn&A)===A){L=L.next,A===Qi&&(O=!0);continue}else E={lane:0,revertLane:L.revertLane,gesture:null,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},S===null?(g=S=E,m=d):S=S.next=E,Le.lanes|=A,Xs|=A;E=L.action,tl&&o(d,E),d=L.hasEagerState?L.eagerState:o(d,E)}else A={lane:E,revertLane:L.revertLane,gesture:L.gesture,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},S===null?(g=S=A,m=d):S=S.next=A,Le.lanes|=E,Xs|=E;L=L.next}while(L!==null&&L!==t);if(S===null?m=d:S.next=g,!va(d,e.memoizedState)&&(Ft=!0,O&&(o=yr,o!==null)))throw o;e.memoizedState=d,e.baseState=m,e.baseQueue=S,i.lastRenderedState=d}return u===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function wu(e){var t=st(),o=t.queue;if(o===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");o.lastRenderedReducer=e;var{dispatch:i,pending:u}=o,d=t.memoizedState;if(u!==null){o.pending=null;var m=u=u.next;do d=e(d,m.action),m=m.next;while(m!==u);va(d,t.memoizedState)||(Ft=!0),t.memoizedState=d,t.baseQueue===null&&(t.baseState=d),o.lastRenderedState=d}return[d,i]}function Qm(e,t,o){var i=Le,u=ya();if(je){if(o===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var d=o();Lr||d===o()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),Lr=!0)}else{if(d=t(),Lr||(o=t(),va(d,o)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Lr=!0)),dt===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(ke&127)!==0||vS(i,t,d)}return u.memoizedState=d,o={value:d,getSnapshot:t},u.queue=o,rf(CS.bind(null,i,o,e),[e]),i.flags|=2048,ql(xo|Ia,{destroy:void 0},LS.bind(null,i,o,d,t),null),d}function nf(e,t,o){var i=Le,u=st(),d=je;if(d){if(o===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");o=o()}else if(o=t(),!Lr){var m=t();va(o,m)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Lr=!0)}if(m=!va((ct||u).memoizedState,o))u.memoizedState=o,Ft=!0;u=u.queue;var g=CS.bind(null,i,u,e);if(Aa(2048,Ia,g,[e]),u.getSnapshot!==t||m||Ut!==null&&Ut.memoizedState.tag&xo){if(i.flags|=2048,ql(xo|Ia,{destroy:void 0},LS.bind(null,i,u,o,t),null),dt===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");d||(Yn&127)!==0||vS(i,t,o)}return o}function vS(e,t,o){e.flags|=16384,e={getSnapshot:t,value:o},t=Le.updateQueue,t===null?(t=of(),Le.updateQueue=t,t.stores=[e]):(o=t.stores,o===null?t.stores=[e]:o.push(e))}function LS(e,t,o,i){t.value=o,t.getSnapshot=i,IS(t)&&wS(e)}function CS(e,t,o){return o(function(){IS(t)&&(Xo(2,"updateSyncExternalStore()",e),wS(e))})}function IS(e){var t=e.getSnapshot;e=e.value;try{var o=t();return!va(e,o)}catch(i){return!0}}function wS(e){var t=fa(e,2);t!==null&&Mt(t,e,2)}function Zm(e){var t=ya();if(typeof e==="function"){var o=e;if(e=o(),tl){ht(!0);try{o()}finally{ht(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ao,lastRenderedState:e},t}function Jm(e){e=Zm(e);var t=e.queue,o=jS.bind(null,Le,t);return t.dispatch=o,[e.memoizedState,o]}function Km(e){var t=ya();t.memoizedState=t.baseState=e;var o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=o,t=hg.bind(null,Le,!0,o),o.dispatch=t,[e,t]}function MS(e,t){var o=st();return TS(o,ct,e,t)}function TS(e,t,o,i){return e.baseState=o,$m(e,ct,typeof i==="function"?i:Ao)}function AS(e,t){var o=st();if(ct!==null)return TS(o,ct,e,t);return o.baseState=e,[e,o.queue.dispatch]}function f_(e,t,o,i,u){if(pf(e))throw Error("Cannot update form state while rendering.");if(e=t.action,e!==null){var d={payload:u,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(m){d.listeners.push(m)}};U.T!==null?o(!0):d.isTransition=!1,i(d),o=t.pending,o===null?(d.next=t.pending=d,_S(t,d)):(d.next=o.next,t.pending=o.next=d)}}function _S(e,t){var{action:o,payload:i}=t,u=e.state;if(t.isTransition){var d=U.T,m={};m._updatedFibers=new Set,U.T=m;try{var g=o(u,i),S=U.S;S!==null&&S(m,g),DS(e,t,g)}catch(L){eg(e,t,L)}finally{d!==null&&m.types!==null&&(d.types!==null&&d.types!==m.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."),d.types=m.types),U.T=d,d===null&&m._updatedFibers&&(e=m._updatedFibers.size,m._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}else try{m=o(u,i),DS(e,t,m)}catch(L){eg(e,t,L)}}function DS(e,t,o){o!==null&&typeof o==="object"&&typeof o.then==="function"?(U.asyncTransitions++,o.then(hf,hf),o.then(function(i){RS(e,t,i)},function(i){return eg(e,t,i)}),t.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):RS(e,t,o)}function RS(e,t,o){t.status="fulfilled",t.value=o,kS(t),e.state=o,t=e.pending,t!==null&&(o=t.next,o===t?e.pending=null:(o=o.next,t.next=o,_S(e,o)))}function eg(e,t,o){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=o,kS(t),t=t.next;while(t!==i)}e.action=null}function kS(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function OS(e,t){return t}function Nl(e,t){if(je){var o=dt.formState;if(o!==null){e:{var i=Le;if(je){if(bt){t:{var u=bt;for(var d=go;u.nodeType!==8;){if(!d){u=null;break t}if(u=Za(u.nextSibling),u===null){u=null;break t}}d=u.data,u=d===Rb||d===yI?u:null}if(u){bt=Za(u.nextSibling),i=u.data===Rb;break e}}xs(i)}i=!1}i&&(t=o[0])}}return o=ya(),o.memoizedState=o.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:OS,lastRenderedState:t},o.queue=i,o=jS.bind(null,Le,i),i.dispatch=o,i=Zm(!1),d=hg.bind(null,Le,!1,i.queue),i=ya(),u={state:t,dispatch:null,action:e,pending:null},i.queue=u,o=f_.bind(null,Le,u,d,o),u.dispatch=o,i.memoizedState=e,[t,o,!1]}function sf(e){var t=st();return ES(t,ct,e)}function ES(e,t,o){if(t=$m(e,t,OS)[0],e=Fl(Ao)[0],typeof t==="object"&&t!==null&&typeof t.then==="function")try{var i=Iu(t)}catch(m){if(m===br)throw uh;throw m}else i=t;t=st();var u=t.queue,d=u.dispatch;return o!==t.memoizedState&&(Le.flags|=2048,ql(xo|Ia,{destroy:void 0},h_.bind(null,u,o),null)),[i,d,e]}function h_(e,t){e.action=t}function lf(e){var t=st(),o=ct;if(o!==null)return ES(t,o,e);st(),t=t.memoizedState,o=st();var i=o.queue.dispatch;return o.memoizedState=e,[t,i,!1]}function ql(e,t,o,i){return e={tag:e,create:o,deps:i,inst:t,next:null},t=Le.updateQueue,t===null&&(t=of(),Le.updateQueue=t),o=t.lastEffect,o===null?t.lastEffect=e.next=e:(i=o.next,o.next=e,e.next=i,t.lastEffect=e),e}function tg(e){var t=ya();return e={current:e},t.memoizedState=e}function Ui(e,t,o,i){var u=ya();Le.flags|=e,u.memoizedState=ql(xo|t,{destroy:void 0},o,i===void 0?null:i)}function Aa(e,t,o,i){var u=st();i=i===void 0?null:i;var d=u.memoizedState.inst;ct!==null&&i!==null&&qm(i,ct.memoizedState.deps)?u.memoizedState=ql(t,d,o,i):(Le.flags|=e,u.memoizedState=ql(xo|t,d,o,i))}function rf(e,t){(Le.mode&ko)!==ve?Ui(276826112,Ia,e,t):Ui(8390656,Ia,e,t)}function p_(e){Le.flags|=4;var t=Le.updateQueue;if(t===null)t=of(),Le.updateQueue=t,t.events=[e];else{var o=t.events;o===null?t.events=[e]:o.push(e)}}function ag(e){var t=ya(),o={impl:e};return t.memoizedState=o,function(){if((Qe&Xt)!==Kt)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return o.impl.apply(void 0,arguments)}}function uf(e){var t=st().memoizedState;return p_({ref:t,nextImpl:e}),function(){if((Qe&Xt)!==Kt)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return t.impl.apply(void 0,arguments)}}function og(e,t){var o=4194308;return(Le.mode&ko)!==ve&&(o|=134217728),Ui(o,oo,e,t)}function BS(e,t){if(typeof t==="function"){e=e();var o=t(e);return function(){typeof o==="function"?o():t(null)}}if(t!==null&&t!==void 0)return t.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(t).join(", ")+"}"),e=e(),t.current=e,function(){t.current=null}}function ng(e,t,o){typeof t!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null"),o=o!==null&&o!==void 0?o.concat([e]):null;var i=4194308;(Le.mode&ko)!==ve&&(i|=134217728),Ui(i,oo,BS.bind(null,t,e),o)}function cf(e,t,o){typeof t!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null"),o=o!==null&&o!==void 0?o.concat([e]):null,Aa(4,oo,BS.bind(null,t,e),o)}function sg(e,t){return ya().memoizedState=[e,t===void 0?null:t],e}function df(e,t){var o=st();t=t===void 0?null:t;var i=o.memoizedState;if(t!==null&&qm(t,i[1]))return i[0];return o.memoizedState=[e,t],e}function ig(e,t){var o=ya();t=t===void 0?null:t;var i=e();if(tl){ht(!0);try{e()}finally{ht(!1)}}return o.memoizedState=[i,t],i}function ff(e,t){var o=st();t=t===void 0?null:t;var i=o.memoizedState;if(t!==null&&qm(t,i[1]))return i[0];if(i=e(),tl){ht(!0);try{e()}finally{ht(!1)}}return o.memoizedState=[i,t],i}function lg(e,t){var o=ya();return rg(o,e,t)}function PS(e,t){var o=st();return HS(o,ct.memoizedState,e,t)}function zS(e,t){var o=st();return ct===null?rg(o,e,t):HS(o,ct.memoizedState,e,t)}function rg(e,t,o){if(o===void 0||(Yn&1073741824)!==0&&(ke&261930)===0)return e.memoizedState=t;return e.memoizedState=o,e=Uv(),Le.lanes|=e,Xs|=e,o}function HS(e,t,o,i){if(va(o,t))return o;if(Sr.current!==null)return e=rg(e,o,i),va(e,t)||(Ft=!0),e;if((Yn&42)===0||(Yn&1073741824)!==0&&(ke&261930)===0)return Ft=!0,e.memoizedState=o;return e=Uv(),Le.lanes|=e,Xs|=e,t}function hf(){U.asyncTransitions--}function US(e,t,o,i,u){var d=at.p;at.p=d!==0&&d<Ro?d:Ro;var m=U.T,g={};g._updatedFibers=new Set,U.T=g,hg(e,!1,t,o);try{var S=u(),L=U.S;if(L!==null&&L(g,S),S!==null&&typeof S==="object"&&typeof S.then==="function"){U.asyncTransitions++,S.then(hf,hf);var O=u_(S,i);Mu(e,t,O,Qa(e))}else Mu(e,t,i,Qa(e))}catch(E){Mu(e,t,{then:function(){},status:"rejected",reason:E},Qa(e))}finally{at.p=d,m!==null&&g.types!==null&&(m.types!==null&&m.types!==g.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."),m.types=g.types),U.T=m,m===null&&g._updatedFibers&&(e=g._updatedFibers.size,g._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}function ug(e,t,o,i){if(e.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var u=FS(e).queue;l_(e),US(e,u,t,fl,o===null?y:function(){return NS(e),o(i)})}function FS(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:fl,baseState:fl,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ao,lastRenderedState:fl},next:null};var o={};return t.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ao,lastRenderedState:o},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function NS(e){U.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var t=FS(e);t.next===null&&(t=e.alternate.memoizedState),Mu(e,t.next.queue,{},Qa(e))}function cg(){var e=Zm(!1);return e=US.bind(null,Le,e.queue,!0,!1),ya().memoizedState=e,[!1,e]}function qS(){var e=Fl(Ao)[0],t=st().memoizedState;return[typeof e==="boolean"?e:Iu(e),t]}function VS(){var e=wu(Ao)[0],t=st().memoizedState;return[typeof e==="boolean"?e:Iu(e),t]}function Fi(){return vt(Bc)}function dg(){var e=ya(),t=dt.identifierPrefix;if(je){var o=Nn,i=Fn;o=(i&~(1<<32-ba(i)-1)).toString(32)+o,t="_"+t+"R_"+o,o=ph++,0<o&&(t+="H"+o.toString(32)),t+="_"}else o=XR++,t="_"+t+"r_"+o.toString(32)+"_";return e.memoizedState=t}function fg(){return ya().memoizedState=m_.bind(null,Le)}function m_(e,t){for(var o=e.return;o!==null;){switch(o.tag){case 24:case 3:var i=Qa(o),u=Ls(i),d=Cs(o,u,i);d!==null&&(Xo(i,"refresh()",e),Mt(d,o,i),vu(d,o,i)),e=km(),t!==null&&t!==void 0&&d!==null&&console.error("The seed argument is not enabled outside experimental channels."),u.payload={cache:e};return}o=o.return}}function g_(e,t,o){var i=arguments;typeof i[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()."),i=Qa(e);var u={lane:i,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null};pf(e)?GS(t,u):(u=Sm(e,t,u,i),u!==null&&(Xo(i,"dispatch()",e),Mt(u,e,i),YS(u,t,i)))}function jS(e,t,o){var i=arguments;typeof i[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()."),i=Qa(e),Mu(e,t,o,i)&&Xo(i,"setState()",e)}function Mu(e,t,o,i){var u={lane:i,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null};if(pf(e))GS(t,u);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=t.lastRenderedReducer,d!==null)){var m=U.H;U.H=Eo;try{var g=t.lastRenderedState,S=d(g,o);if(u.hasEagerState=!0,u.eagerState=S,va(S,g))return Ud(e,t,u,0),dt===null&&Hd(),!1}catch(L){}finally{U.H=m}}if(o=Sm(e,t,u,i),o!==null)return Mt(o,e,i),YS(o,t,i),!0}return!1}function hg(e,t,o,i){if(U.T===null&&Qi===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."),i={lane:2,revertLane:Vg(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},pf(e)){if(t)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else t=Sm(e,o,i,2),t!==null&&(Xo(2,"setOptimistic()",e),Mt(t,e,2))}function pf(e){var t=e.alternate;return e===Le||t!==null&&t===Le}function GS(e,t){Cr=hh=!0;var o=e.pending;o===null?t.next=t:(t.next=o.next,o.next=t),e.pending=t}function YS(e,t,o){if((o&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,o|=i,t.lanes=o,Mi(e,o)}}function pg(e){if(e!==null&&typeof e!=="function"){var t=String(e);V1.has(t)||(V1.add(t),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",e))}}function mg(e,t,o,i){var u=e.memoizedState,d=o(i,u);if(e.mode&pa){ht(!0);try{d=o(i,u)}finally{ht(!1)}}d===void 0&&(t=J(t)||"Component",U1.has(t)||(U1.add(t),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",t))),u=d===null||d===void 0?u:ze({},u,d),e.memoizedState=u,e.lanes===0&&(e.updateQueue.baseState=u)}function XS(e,t,o,i,u,d,m){var g=e.stateNode;if(typeof g.shouldComponentUpdate==="function"){if(o=g.shouldComponentUpdate(i,d,m),e.mode&pa){ht(!0);try{o=g.shouldComponentUpdate(i,d,m)}finally{ht(!1)}}return o===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",J(t)||"Component"),o}return t.prototype&&t.prototype.isPureReactComponent?!pu(o,i)||!pu(u,d):!0}function WS(e,t,o,i){var u=t.state;typeof t.componentWillReceiveProps==="function"&&t.componentWillReceiveProps(o,i),typeof t.UNSAFE_componentWillReceiveProps==="function"&&t.UNSAFE_componentWillReceiveProps(o,i),t.state!==u&&(e=q(e)||"Component",E1.has(e)||(E1.add(e),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",e)),ub.enqueueReplaceState(t,t.state,null))}function Ni(e,t){var o=t;if("ref"in t){o={};for(var i in t)i!=="ref"&&(o[i]=t[i])}if(e=e.defaultProps){o===t&&(o=ze({},o));for(var u in e)o[u]===void 0&&(o[u]=e[u])}return o}function $S(e){Fy(e),console.warn(`%s
116
+
117
+ %s
118
+ `,Ir?"An error occurred in the <"+Ir+"> 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 QS(e){var t=Ir?"The above error occurred in the <"+Ir+"> component.":"The above error occurred in one of your React components.",o="React will try to recreate this component tree from scratch using the error boundary you provided, "+((cb||"Anonymous")+".");if(typeof e==="object"&&e!==null&&typeof e.environmentName==="string"){var i=e.environmentName;e=[`%o
120
+
121
+ %s
122
+
123
+ %s
124
+ `,e,t,o].slice(0),typeof e[0]==="string"?e.splice(0,1,wI+" "+e[0],MI,Uh+i+Uh,TI):e.splice(0,0,wI,MI,Uh+i+Uh,TI),e.unshift(console),i=pk.apply(console.error,e),i()}else console.error(`%o
125
+
126
+ %s
127
+
128
+ %s
129
+ `,e,t,o)}function ZS(e){Fy(e)}function mf(e,t){try{Ir=t.source?q(t.source):null,cb=null;var o=t.value;if(U.actQueue!==null)U.thrownErrors.push(o);else{var i=e.onUncaughtError;i(o,{componentStack:t.stack})}}catch(u){setTimeout(function(){throw u})}}function JS(e,t,o){try{Ir=o.source?q(o.source):null,cb=q(t);var i=e.onCaughtError;i(o.value,{componentStack:o.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function gg(e,t,o){return o=Ls(o),o.tag=ob,o.payload={element:null},o.callback=function(){ne(t.source,mf,e,t)},o}function yg(e){return e=Ls(e),e.tag=ob,e}function bg(e,t,o,i){var u=o.type.getDerivedStateFromError;if(typeof u==="function"){var d=i.value;e.payload=function(){return u(d)},e.callback=function(){G0(o),ne(i.source,JS,t,o,i)}}var m=o.stateNode;m!==null&&typeof m.componentDidCatch==="function"&&(e.callback=function(){G0(o),ne(i.source,JS,t,o,i),typeof u!=="function"&&($s===null?$s=new Set([this]):$s.add(this)),VR(this,i),typeof u==="function"||(o.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.",q(o)||"Unknown")})}function y_(e,t,o,i,u){if(o.flags|=32768,dn&&Eu(e,u),i!==null&&typeof i==="object"&&typeof i.then==="function"){if(t=o.alternate,t!==null&&Hl(t,o,u,!0),je&&(pn=!0),o=ao.current,o!==null){switch(o.tag){case 31:case 13:return bo===null?If():o.alternate===null&&It===Qn&&(It=yh),o.flags&=-257,o.flags|=65536,o.lanes=u,i===ch?o.flags|=16384:(t=o.updateQueue,t===null?o.updateQueue=new Set([i]):t.add(i),Ug(e,i,u)),!1;case 22:return o.flags|=65536,i===ch?o.flags|=16384:(t=o.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},o.updateQueue=t):(o=t.retryQueue,o===null?t.retryQueue=new Set([i]):o.add(i)),Ug(e,i,u)),!1}throw Error("Unexpected Suspense handler tag ("+o.tag+"). This is a bug in React.")}return Ug(e,i,u),If(),!1}if(je)return pn=!0,t=ao.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=u,i!==Yy&&gu(Ya(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:i}),o))):(i!==Yy&&gu(Ya(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:i}),o)),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,i=Ya(i,o),u=gg(e.stateNode,i,u),ef(e,u),It!==Gs&&(It=al)),!1;var d=Ya(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:i}),o);if(Mc===null?Mc=[d]:Mc.push(d),It!==Gs&&(It=al),t===null)return!0;i=Ya(i,o),o=t;do{switch(o.tag){case 3:return o.flags|=65536,e=u&-u,o.lanes|=e,e=gg(o.stateNode,i,e),ef(o,e),!1;case 1:if(t=o.type,d=o.stateNode,(o.flags&128)===0&&(typeof t.getDerivedStateFromError==="function"||d!==null&&typeof d.componentDidCatch==="function"&&($s===null||!$s.has(d))))return o.flags|=65536,u&=-u,o.lanes|=u,u=yg(u),bg(u,e,o,i),ef(o,u),!1}o=o.return}while(o!==null);return!1}function aa(e,t,o,i){t.child=e===null?C1(t,null,o,i):el(t,e.child,o,i)}function KS(e,t,o,i,u){o=o.render;var d=t.ref;if("ref"in i){var m={};for(var g in i)g!=="ref"&&(m[g]=i[g])}else m=i;if(Pi(t),i=Vm(e,t,o,m,d,u),g=Gm(),e!==null&&!Ft)return Ym(e,t,u),En(e,t,u);return je&&g&&Mm(t),t.flags|=1,aa(e,t,i,u),t.child}function ev(e,t,o,i,u){if(e===null){var d=o.type;if(typeof d==="function"&&!Lm(d)&&d.defaultProps===void 0&&o.compare===null)return o=ki(d),t.tag=15,t.type=o,Sg(t,d),tv(e,t,o,i,u);return e=Cm(o.type,null,i,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e}if(d=e.child,!Mg(e,u)){var m=d.memoizedProps;if(o=o.compare,o=o!==null?o:pu,o(m,i)&&e.ref===t.ref)return En(e,t,u)}return t.flags|=1,e=Dn(d,i),e.ref=t.ref,e.return=t,t.child=e}function tv(e,t,o,i,u){if(e!==null){var d=e.memoizedProps;if(pu(d,i)&&e.ref===t.ref&&t.type===e.type)if(Ft=!1,t.pendingProps=i=d,Mg(e,u))(e.flags&131072)!==0&&(Ft=!0);else return t.lanes=e.lanes,En(e,t,u)}return xg(e,t,o,i,u)}function av(e,t,o,i){var u=i.children,d=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:tc,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((t.flags&128)!==0){if(d=d!==null?d.baseLanes|o:o,e!==null){i=t.child=e.child;for(u=0;i!==null;)u=u|i.lanes|i.childLanes,i=i.sibling;i=u&~d}else i=0,t.child=null;return ov(e,t,d,o,i)}if((o&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Wd(t,d!==null?d.cachePool:null),d!==null?bS(t,d):Um(t),xS(t);else return i=t.lanes=536870912,ov(e,t,d!==null?d.baseLanes|o:o,o,i)}else d!==null?(Wd(t,d.cachePool),bS(t,d),ws(t),t.memoizedState=null):(e!==null&&Wd(t,null),Um(t),ws(t));return aa(e,t,u,o),t.child}function Tu(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:tc,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function ov(e,t,o,i,u){var d=Bm();return d=d===null?null:{parent:zt._currentValue,pool:d},t.memoizedState={baseLanes:o,cachePool:d},e!==null&&Wd(t,null),Um(t),xS(t),e!==null&&Hl(e,t,i,!0),t.childLanes=u,null}function gf(e,t){var o=t.hidden;return o!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
130
+ - <Activity %s>
131
+ + <Activity %s>`,o===!0?"hidden":o===!1?"hidden={false}":"hidden={...}",o?'mode="hidden"':'mode="visible"'),t=bf({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function nv(e,t,o){return el(t,e.child,null,o),e=gf(t,t.pendingProps),e.flags|=2,$a(t),t.memoizedState=null,e}function b_(e,t,o){var i=t.pendingProps,u=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(je){if(i.mode==="hidden")return e=gf(t,i),t.lanes=536870912,Tu(null,e);if(Nm(t),(e=bt)?(o=_L(e,go),o=o!==null&&o.data===rl?o:null,o!==null&&(i={dehydrated:o,treeContext:Q0(),retryLane:536870912,hydrationErrors:null},t.memoizedState=i,i=W0(o),i.return=t,t.child=i,sa=t,bt=null)):o=null,o===null)throw qd(t,e),xs(t);return t.lanes=536870912,null}return gf(t,i)}var d=e.memoizedState;if(d!==null){var m=d.dehydrated;if(Nm(t),u)if(t.flags&256)t.flags&=-257,t=nv(e,t,o);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error("Client rendering an Activity suspended it again. This is a bug in React.");else if(J0(),(o&536870912)!==0&&Cf(t),Ft||Hl(e,t,o,!1),u=(o&e.childLanes)!==0,Ft||u){if(i=dt,i!==null&&(m=Ti(i,o),m!==0&&m!==d.retryLane))throw d.retryLane=m,fa(e,m),Mt(i,e,m),db;If(),t=nv(e,t,o)}else e=d.treeContext,bt=Za(m.nextSibling),sa=t,je=!0,Hs=null,pn=!1,to=null,go=!1,e!==null&&Z0(t,e),t=gf(t,i),t.flags|=4096;return t}return d=e.child,i={mode:i.mode,children:i.children},(o&536870912)!==0&&(o&e.lanes)!==0&&Cf(t),e=Dn(d,i),e.ref=t.ref,t.child=e,e.return=t,e}function yf(e,t){var o=t.ref;if(o===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof o!=="function"&&typeof o!=="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");if(e===null||e.ref!==o)t.flags|=4194816}}function xg(e,t,o,i,u){if(o.prototype&&typeof o.prototype.render==="function"){var d=J(o)||"Unknown";j1[d]||(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.",d,d),j1[d]=!0)}if(t.mode&pa&&Oo.recordLegacyContextWarning(t,null),e===null&&(Sg(t,t.type),o.contextTypes&&(d=J(o)||"Unknown",Y1[d]||(Y1[d]=!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)",d)))),Pi(t),o=Vm(e,t,o,i,void 0,u),i=Gm(),e!==null&&!Ft)return Ym(e,t,u),En(e,t,u);return je&&i&&Mm(t),t.flags|=1,aa(e,t,o,u),t.child}function sv(e,t,o,i,u,d){if(Pi(t),Wn=-1,xc=e!==null&&e.type!==t.type,t.updateQueue=null,o=jm(t,i,o,u),SS(e,t),i=Gm(),e!==null&&!Ft)return Ym(e,t,d),En(e,t,d);return je&&i&&Mm(t),t.flags|=1,aa(e,t,o,d),t.child}function iv(e,t,o,i,u){switch(f(t)){case!1:var d=t.stateNode,m=new t.type(t.memoizedProps,d.context).state;d.updater.enqueueSetState(d,m,null);break;case!0:t.flags|=128,t.flags|=65536,d=Error("Simulated error coming from DevTools");var g=u&-u;if(t.lanes|=g,m=dt,m===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");g=yg(g),bg(g,m,t,Ya(d,t)),ef(t,g)}if(Pi(t),t.stateNode===null){if(m=zs,d=o.contextType,"contextType"in o&&d!==null&&(d===void 0||d.$$typeof!==rn)&&!q1.has(o)&&(q1.add(o),g=d===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 d!=="object"?" However, it is set to a "+typeof d+".":d.$$typeof===fy?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(d).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",J(o)||"Component",g)),typeof d==="object"&&d!==null&&(m=vt(d)),d=new o(i,m),t.mode&pa){ht(!0);try{d=new o(i,m)}finally{ht(!1)}}if(m=t.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=ub,t.stateNode=d,d._reactInternals=t,d._reactInternalInstance=O1,typeof o.getDerivedStateFromProps==="function"&&m===null&&(m=J(o)||"Component",B1.has(m)||(B1.add(m),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.",m,d.state===null?"null":"undefined",m))),typeof o.getDerivedStateFromProps==="function"||typeof d.getSnapshotBeforeUpdate==="function"){var S=g=m=null;if(typeof d.componentWillMount==="function"&&d.componentWillMount.__suppressDeprecationWarning!==!0?m="componentWillMount":typeof d.UNSAFE_componentWillMount==="function"&&(m="UNSAFE_componentWillMount"),typeof d.componentWillReceiveProps==="function"&&d.componentWillReceiveProps.__suppressDeprecationWarning!==!0?g="componentWillReceiveProps":typeof d.UNSAFE_componentWillReceiveProps==="function"&&(g="UNSAFE_componentWillReceiveProps"),typeof d.componentWillUpdate==="function"&&d.componentWillUpdate.__suppressDeprecationWarning!==!0?S="componentWillUpdate":typeof d.UNSAFE_componentWillUpdate==="function"&&(S="UNSAFE_componentWillUpdate"),m!==null||g!==null||S!==null){d=J(o)||"Component";var L=typeof o.getDerivedStateFromProps==="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";z1.has(d)||(z1.add(d),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
132
+
133
+ %s uses %s but also contains the following legacy lifecycles:%s%s%s
134
+
135
+ The above lifecycles should be removed. Learn more about this warning here:
136
+ https://react.dev/link/unsafe-component-lifecycles`,d,L,m!==null?`
137
+ `+m:"",g!==null?`
138
+ `+g:"",S!==null?`
139
+ `+S:""))}}d=t.stateNode,m=J(o)||"Component",d.render||(o.prototype&&typeof o.prototype.render==="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",m):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",m)),!d.getInitialState||d.getInitialState.isReactClassApproved||d.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?",m),d.getDefaultProps&&!d.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.",m),d.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",m),o.childContextTypes&&!N1.has(o)&&(N1.add(o),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",m)),o.contextTypes&&!F1.has(o)&&(F1.add(o),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)",m)),typeof d.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.",m),o.prototype&&o.prototype.isPureReactComponent&&typeof d.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.",J(o)||"A pure component"),typeof d.componentDidUnmount==="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",m),typeof d.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().",m),typeof d.componentWillRecieveProps==="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",m),typeof d.UNSAFE_componentWillRecieveProps==="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",m),g=d.props!==i,d.props!==void 0&&g&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",m),d.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.",m,m),typeof d.getSnapshotBeforeUpdate!=="function"||typeof d.componentDidUpdate==="function"||P1.has(o)||(P1.add(o),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",J(o))),typeof d.getDerivedStateFromProps==="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",m),typeof d.getDerivedStateFromError==="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",m),typeof o.getSnapshotBeforeUpdate==="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",m),(g=d.state)&&(typeof g!=="object"||Gt(g))&&console.error("%s.state: must be set to an object or null",m),typeof d.getChildContext==="function"&&typeof o.childContextTypes!=="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",m),d=t.stateNode,d.props=i,d.state=t.memoizedState,d.refs={},zm(t),m=o.contextType,d.context=typeof m==="object"&&m!==null?vt(m):zs,d.state===i&&(m=J(o)||"Component",H1.has(m)||(H1.add(m),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.",m))),t.mode&pa&&Oo.recordLegacyContextWarning(t,d),Oo.recordUnsafeLifecycleWarnings(t,d),d.state=t.memoizedState,m=o.getDerivedStateFromProps,typeof m==="function"&&(mg(t,o,m,i),d.state=t.memoizedState),typeof o.getDerivedStateFromProps==="function"||typeof d.getSnapshotBeforeUpdate==="function"||typeof d.UNSAFE_componentWillMount!=="function"&&typeof d.componentWillMount!=="function"||(m=d.state,typeof d.componentWillMount==="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount==="function"&&d.UNSAFE_componentWillMount(),m!==d.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",q(t)||"Component"),ub.enqueueReplaceState(d,d.state,null)),Cu(t,i,d,u),Lu(),d.state=t.memoizedState),typeof d.componentDidMount==="function"&&(t.flags|=4194308),(t.mode&ko)!==ve&&(t.flags|=134217728),d=!0}else if(e===null){d=t.stateNode;var O=t.memoizedProps;g=Ni(o,O),d.props=g;var E=d.context;S=o.contextType,m=zs,typeof S==="object"&&S!==null&&(m=vt(S)),L=o.getDerivedStateFromProps,S=typeof L==="function"||typeof d.getSnapshotBeforeUpdate==="function",O=t.pendingProps!==O,S||typeof d.UNSAFE_componentWillReceiveProps!=="function"&&typeof d.componentWillReceiveProps!=="function"||(O||E!==m)&&WS(t,d,i,m),js=!1;var A=t.memoizedState;d.state=A,Cu(t,i,d,u),Lu(),E=t.memoizedState,O||A!==E||js?(typeof L==="function"&&(mg(t,o,L,i),E=t.memoizedState),(g=js||XS(t,o,g,i,A,E,m))?(S||typeof d.UNSAFE_componentWillMount!=="function"&&typeof d.componentWillMount!=="function"||(typeof d.componentWillMount==="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount==="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount==="function"&&(t.flags|=4194308),(t.mode&ko)!==ve&&(t.flags|=134217728)):(typeof d.componentDidMount==="function"&&(t.flags|=4194308),(t.mode&ko)!==ve&&(t.flags|=134217728),t.memoizedProps=i,t.memoizedState=E),d.props=i,d.state=E,d.context=m,d=g):(typeof d.componentDidMount==="function"&&(t.flags|=4194308),(t.mode&ko)!==ve&&(t.flags|=134217728),d=!1)}else{d=t.stateNode,Hm(e,t),m=t.memoizedProps,S=Ni(o,m),d.props=S,L=t.pendingProps,A=d.context,E=o.contextType,g=zs,typeof E==="object"&&E!==null&&(g=vt(E)),O=o.getDerivedStateFromProps,(E=typeof O==="function"||typeof d.getSnapshotBeforeUpdate==="function")||typeof d.UNSAFE_componentWillReceiveProps!=="function"&&typeof d.componentWillReceiveProps!=="function"||(m!==L||A!==g)&&WS(t,d,i,g),js=!1,A=t.memoizedState,d.state=A,Cu(t,i,d,u),Lu();var P=t.memoizedState;m!==L||A!==P||js||e!==null&&e.dependencies!==null&&jd(e.dependencies)?(typeof O==="function"&&(mg(t,o,O,i),P=t.memoizedState),(S=js||XS(t,o,S,i,A,P,g)||e!==null&&e.dependencies!==null&&jd(e.dependencies))?(E||typeof d.UNSAFE_componentWillUpdate!=="function"&&typeof d.componentWillUpdate!=="function"||(typeof d.componentWillUpdate==="function"&&d.componentWillUpdate(i,P,g),typeof d.UNSAFE_componentWillUpdate==="function"&&d.UNSAFE_componentWillUpdate(i,P,g)),typeof d.componentDidUpdate==="function"&&(t.flags|=4),typeof d.getSnapshotBeforeUpdate==="function"&&(t.flags|=1024)):(typeof d.componentDidUpdate!=="function"||m===e.memoizedProps&&A===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!=="function"||m===e.memoizedProps&&A===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=P),d.props=i,d.state=P,d.context=g,d=S):(typeof d.componentDidUpdate!=="function"||m===e.memoizedProps&&A===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!=="function"||m===e.memoizedProps&&A===e.memoizedState||(t.flags|=1024),d=!1)}if(g=d,yf(e,t),m=(t.flags&128)!==0,g||m){if(g=t.stateNode,Dl(t),m&&typeof o.getDerivedStateFromError!=="function")o=null,La=-1;else if(o=u1(g),t.mode&pa){ht(!0);try{u1(g)}finally{ht(!1)}}t.flags|=1,e!==null&&m?(t.child=el(t,e.child,null,u),t.child=el(t,null,o,u)):aa(e,t,o,u),t.memoizedState=g.state,e=t.child}else e=En(e,t,u);return u=t.stateNode,d&&u.props!==i&&(wr||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",q(t)||"a component"),wr=!0),e}function lv(e,t,o,i){return Bi(),t.flags|=256,aa(e,t,o,i),t.child}function Sg(e,t){t&&t.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
140
+ %s.childContextTypes = ...`,t.displayName||t.name||"Component"),typeof t.getDerivedStateFromProps==="function"&&(e=J(t)||"Unknown",X1[e]||(console.error("%s: Function components do not support getDerivedStateFromProps.",e),X1[e]=!0)),typeof t.contextType==="object"&&t.contextType!==null&&(t=J(t)||"Unknown",G1[t]||(console.error("%s: Function components do not support contextType.",t),G1[t]=!0))}function vg(e){return{baseLanes:e,cachePool:sS()}}function Lg(e,t,o){return e=e!==null?e.childLanes&~o:0,t&&(e|=Oa),e}function rv(e,t,o){var i,u=t.pendingProps;c(t)&&(t.flags|=128);var d=!1,m=(t.flags&128)!==0;if((i=m)||(i=e!==null&&e.memoizedState===null?!1:(Ot.current&yc)!==0),i&&(d=!0,t.flags&=-129),i=(t.flags&32)!==0,t.flags&=-33,e===null){if(je){if(d?Is(t):ws(t),(e=bt)?(o=_L(e,go),o=o!==null&&o.data!==rl?o:null,o!==null&&(i={dehydrated:o,treeContext:Q0(),retryLane:536870912,hydrationErrors:null},t.memoizedState=i,i=W0(o),i.return=t,t.child=i,sa=t,bt=null)):o=null,o===null)throw qd(t,e),xs(t);return ty(o)?t.lanes=32:t.lanes=536870912,null}var g=u.children;if(u=u.fallback,d){ws(t);var S=t.mode;return g=bf({mode:"hidden",children:g},S),u=Oi(u,S,o,null),g.return=t,u.return=t,g.sibling=u,t.child=g,u=t.child,u.memoizedState=vg(o),u.childLanes=Lg(e,i,o),t.memoizedState=fb,Tu(null,u)}return Is(t),Cg(t,g)}var L=e.memoizedState;if(L!==null){var O=L.dehydrated;if(O!==null){if(m)t.flags&256?(Is(t),t.flags&=-257,t=Ig(e,t,o)):t.memoizedState!==null?(ws(t),t.child=e.child,t.flags|=128,t=null):(ws(t),g=u.fallback,S=t.mode,u=bf({mode:"visible",children:u.children},S),g=Oi(g,S,o,null),g.flags|=2,u.return=t,g.return=t,u.sibling=g,t.child=u,el(t,e.child,null,o),u=t.child,u.memoizedState=vg(o),u.childLanes=Lg(e,i,o),t.memoizedState=fb,t=Tu(null,u));else if(Is(t),J0(),(o&536870912)!==0&&Cf(t),ty(O)){if(i=O.nextSibling&&O.nextSibling.dataset,i){g=i.dgst;var E=i.msg;S=i.stck;var A=i.cstck}d=E,i=g,u=S,O=A,g=d,S=O,g=g?Error(g):Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),g.stack=u||"",g.digest=i,i=S===void 0?null:S,u={value:g,source:null,stack:i},typeof i==="string"&&Gy.set(g,u),gu(u),t=Ig(e,t,o)}else if(Ft||Hl(e,t,o,!1),i=(o&e.childLanes)!==0,Ft||i){if(i=dt,i!==null&&(u=Ti(i,o),u!==0&&u!==L.retryLane))throw L.retryLane=u,fa(e,u),Mt(i,e,u),db;ey(O)||If(),t=Ig(e,t,o)}else ey(O)?(t.flags|=192,t.child=e.child,t=null):(e=L.treeContext,bt=Za(O.nextSibling),sa=t,je=!0,Hs=null,pn=!1,to=null,go=!1,e!==null&&Z0(t,e),t=Cg(t,u.children),t.flags|=4096);return t}}if(d)return ws(t),g=u.fallback,S=t.mode,A=e.child,O=A.sibling,u=Dn(A,{mode:"hidden",children:u.children}),u.subtreeFlags=A.subtreeFlags&65011712,O!==null?g=Dn(O,g):(g=Oi(g,S,o,null),g.flags|=2),g.return=t,u.return=t,u.sibling=g,t.child=u,Tu(null,u),u=t.child,g=e.child.memoizedState,g===null?g=vg(o):(S=g.cachePool,S!==null?(A=zt._currentValue,S=S.parent!==A?{parent:A,pool:A}:S):S=sS(),g={baseLanes:g.baseLanes|o,cachePool:S}),u.memoizedState=g,u.childLanes=Lg(e,i,o),t.memoizedState=fb,Tu(e.child,u);return L!==null&&(o&62914560)===o&&(o&e.lanes)!==0&&Cf(t),Is(t),o=e.child,e=o.sibling,o=Dn(o,{mode:"visible",children:u.children}),o.return=t,o.sibling=null,e!==null&&(i=t.deletions,i===null?(t.deletions=[e],t.flags|=16):i.push(e)),t.child=o,t.memoizedState=null,o}function Cg(e,t){return t=bf({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function bf(e,t){return e=v(22,e,null,t),e.lanes=0,e}function Ig(e,t,o){return el(t,e.child,null,o),e=Cg(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function uv(e,t,o){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),Dm(e.return,t,o)}function wg(e,t,o,i,u,d){var m=e.memoizedState;m===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:o,tailMode:u,treeForkCount:d}:(m.isBackwards=t,m.rendering=null,m.renderingStartTime=0,m.last=i,m.tail=o,m.tailMode=u,m.treeForkCount=d)}function cv(e,t,o){var i=t.pendingProps,u=i.revealOrder,d=i.tail,m=i.children,g=Ot.current;if((i=(g&yc)!==0)?(g=g&vr|yc,t.flags|=128):g&=vr,Se(Ot,g,t),g=u==null?"null":u,u!=="forwards"&&u!=="unstable_legacy-backwards"&&u!=="together"&&u!=="independent"&&!W1[g])if(W1[g]=!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(g=d==null?"null":d,!gh[g])if(d==null){if(u==="forwards"||u==="backwards"||u==="unstable_legacy-backwards")gh[g]=!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 d!=="visible"&&d!=="collapsed"&&d!=="hidden"?(gh[g]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',d)):u!=="forwards"&&u!=="backwards"&&u!=="unstable_legacy-backwards"&&(gh[g]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',d));e:if((u==="forwards"||u==="backwards"||u==="unstable_legacy-backwards")&&m!==void 0&&m!==null&&m!==!1)if(Gt(m)){for(g=0;g<m.length;g++)if(!mS(m[g],g))break e}else if(g=V(m),typeof g==="function"){if(g=g.call(m))for(var S=g.next(),L=0;!S.done;S=g.next()){if(!mS(S.value,L))break e;L++}}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(aa(e,t,m,o),je?(bs(),m=ac):m=0,!i&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&uv(e,o,t);else if(e.tag===19)uv(e,o,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(u){case"forwards":o=t.child;for(u=null;o!==null;)e=o.alternate,e!==null&&tf(e)===null&&(u=o),o=o.sibling;o=u,o===null?(u=t.child,t.child=null):(u=o.sibling,o.sibling=null),wg(t,!1,u,o,d,m);break;case"backwards":case"unstable_legacy-backwards":o=null,u=t.child;for(t.child=null;u!==null;){if(e=u.alternate,e!==null&&tf(e)===null){t.child=u;break}e=u.sibling,u.sibling=o,o=u,u=e}wg(t,!0,o,null,d,m);break;case"together":wg(t,!1,null,null,void 0,m);break;default:t.memoizedState=null}return t.child}function En(e,t,o){if(e!==null&&(t.dependencies=e.dependencies),La=-1,Xs|=t.lanes,(o&t.childLanes)===0)if(e!==null){if(Hl(e,t,o,!1),(o&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error("Resuming work not yet implemented.");if(t.child!==null){e=t.child,o=Dn(e,e.pendingProps),t.child=o;for(o.return=t;e.sibling!==null;)e=e.sibling,o=o.sibling=Dn(e,e.pendingProps),o.return=t;o.sibling=null}return t.child}function Mg(e,t){if((e.lanes&t)!==0)return!0;return e=e.dependencies,e!==null&&jd(e)?!0:!1}function x_(e,t,o){switch(t.tag){case 3:G(t,t.stateNode.containerInfo),Ss(t,zt,e.memoizedState.cache),Bi();break;case 27:case 5:Ve(t);break;case 4:G(t,t.stateNode.containerInfo);break;case 10:Ss(t,t.type,t.memoizedProps.value);break;case 12:(o&t.childLanes)!==0&&(t.flags|=4),t.flags|=2048;var i=t.stateNode;i.effectDuration=-0,i.passiveEffectDuration=-0;break;case 31:if(t.memoizedState!==null)return t.flags|=128,Nm(t),null;break;case 13:if(i=t.memoizedState,i!==null){if(i.dehydrated!==null)return Is(t),t.flags|=128,null;if((o&t.child.childLanes)!==0)return rv(e,t,o);return Is(t),e=En(e,t,o),e!==null?e.sibling:null}Is(t);break;case 19:var u=(e.flags&128)!==0;if(i=(o&t.childLanes)!==0,i||(Hl(e,t,o,!1),i=(o&t.childLanes)!==0),u){if(i)return cv(e,t,o);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),Se(Ot,Ot.current,t),i)break;else return null;case 22:return t.lanes=0,av(e,t,o,t.pendingProps);case 24:Ss(t,zt,e.memoizedState.cache)}return En(e,t,o)}function Tg(e,t,o){if(t._debugNeedsRemount&&e!==null){o=Cm(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes),o._debugStack=t._debugStack,o._debugTask=t._debugTask;var i=t.return;if(i===null)throw Error("Cannot swap the root fiber.");if(e.alternate=null,t.alternate=null,o.index=t.index,o.sibling=t.sibling,o.return=t.return,o.ref=t.ref,o._debugInfo=t._debugInfo,t===i.child)i.child=o;else{var u=i.child;if(u===null)throw Error("Expected parent to have a child.");for(;u.sibling!==t;)if(u=u.sibling,u===null)throw Error("Expected to find the previous sibling.");u.sibling=o}return t=i.deletions,t===null?(i.deletions=[e],i.flags|=16):t.push(e),o.flags|=2,o}if(e!==null)if(e.memoizedProps!==t.pendingProps||t.type!==e.type)Ft=!0;else{if(!Mg(e,o)&&(t.flags&128)===0)return Ft=!1,x_(e,t,o);Ft=(e.flags&131072)!==0?!0:!1}else{if(Ft=!1,i=je)bs(),i=(t.flags&1048576)!==0;i&&(i=t.index,bs(),$0(t,ac,i))}switch(t.lanes=0,t.tag){case 16:e:if(i=t.pendingProps,e=vs(t.elementType),t.type=e,typeof e==="function")Lm(e)?(i=Ni(e,i),t.tag=1,t.type=e=ki(e),t=iv(null,t,e,i,o)):(t.tag=0,Sg(t,e),t.type=e=ki(e),t=xg(null,t,e,i,o));else{if(e!==void 0&&e!==null){if(u=e.$$typeof,u===Vu){t.tag=11,t.type=e=vm(e),t=KS(null,t,e,i,o);break e}else if(u===Hf){t.tag=14,t=ev(null,t,e,i,o);break e}}throw t="",e!==null&&typeof e==="object"&&e.$$typeof===Ja&&(t=" Did you wrap a component in React.lazy() more than once?"),o=J(e)||e,Error("Element type is invalid. Received a promise that resolves to: "+o+". Lazy element type must resolve to a class or function."+t)}return t;case 0:return xg(e,t,t.type,t.pendingProps,o);case 1:return i=t.type,u=Ni(i,t.pendingProps),iv(e,t,i,u,o);case 3:e:{if(G(t,t.stateNode.containerInfo),e===null)throw Error("Should have a current fiber. This is a bug in React.");i=t.pendingProps;var d=t.memoizedState;u=d.element,Hm(e,t),Cu(t,i,null,o);var m=t.memoizedState;if(i=m.cache,Ss(t,zt,i),i!==d.cache&&Rm(t,[zt],o,!0),Lu(),i=m.element,d.isDehydrated)if(d={element:i,isDehydrated:!1,cache:m.cache},t.updateQueue.baseState=d,t.memoizedState=d,t.flags&256){t=lv(e,t,i,o);break e}else if(i!==u){u=Ya(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t),gu(u),t=lv(e,t,i,o);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}bt=Za(e.firstChild),sa=t,je=!0,Hs=null,pn=!1,to=null,go=!0,o=C1(t,null,i,o);for(t.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling}else{if(Bi(),i===u){t=En(e,t,o);break e}aa(e,t,i,o)}t=t.child}return t;case 26:return yf(e,t),e===null?(o=BL(t.type,null,t.pendingProps,null))?t.memoizedState=o:je||(o=t.type,e=t.pendingProps,i=Me(Rs.current),i=Af(i).createElement(o),i[na]=t,i[xa]=e,oa(i,o,e),me(i),t.stateNode=i):t.memoizedState=BL(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ve(t),e===null&&je&&(i=Me(Rs.current),u=de(),i=t.stateNode=OL(t.type,t.pendingProps,i,u,!1),pn||(u=vL(i,t.type,t.pendingProps,u),u!==null&&(Ei(t,0).serverProps=u)),sa=t,go=!0,u=bt,_s(t.type)?(Bb=u,bt=Za(i.firstChild)):bt=u),aa(e,t,t.pendingProps.children,o),yf(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&je&&(d=de(),i=hm(t.type,d.ancestorInfo),u=bt,(m=!u)||(m=lD(u,t.type,t.pendingProps,go),m!==null?(t.stateNode=m,pn||(d=vL(m,t.type,t.pendingProps,d),d!==null&&(Ei(t,0).serverProps=d)),sa=t,bt=Za(m.firstChild),go=!1,d=!0):d=!1,m=!d),m&&(i&&qd(t,u),xs(t))),Ve(t),u=t.type,d=t.pendingProps,m=e!==null?e.memoizedProps:null,i=d.children,Jg(u,d)?i=null:m!==null&&Jg(u,m)&&(t.flags|=32),t.memoizedState!==null&&(u=Vm(e,t,d_,null,null,o),Bc._currentValue=u),yf(e,t),aa(e,t,i,o),t.child;case 6:return e===null&&je&&(o=t.pendingProps,e=de(),i=e.ancestorInfo.current,o=i!=null?kd(o,i.tag,e.ancestorInfo.implicitRootScope):!0,e=bt,(i=!e)||(i=rD(e,t.pendingProps,go),i!==null?(t.stateNode=i,sa=t,bt=null,i=!0):i=!1,i=!i),i&&(o&&qd(t,e),xs(t))),null;case 13:return rv(e,t,o);case 4:return G(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=el(t,null,i,o):aa(e,t,i,o),t.child;case 11:return KS(e,t,t.type,t.pendingProps,o);case 7:return aa(e,t,t.pendingProps,o),t.child;case 8:return aa(e,t,t.pendingProps.children,o),t.child;case 12:return t.flags|=4,t.flags|=2048,i=t.stateNode,i.effectDuration=-0,i.passiveEffectDuration=-0,aa(e,t,t.pendingProps.children,o),t.child;case 10:return i=t.type,u=t.pendingProps,d=u.value,"value"in u||$1||($1=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),Ss(t,i,d),aa(e,t,u.children,o),t.child;case 9:return u=t.type._context,i=t.pendingProps.children,typeof i!=="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."),Pi(t),u=vt(u),i=Ky(i,u,void 0),t.flags|=1,aa(e,t,i,o),t.child;case 14:return ev(e,t,t.type,t.pendingProps,o);case 15:return tv(e,t,t.type,t.pendingProps,o);case 19:return cv(e,t,o);case 31:return b_(e,t,o);case 22:return av(e,t,o,t.pendingProps);case 24:return Pi(t),i=vt(zt),e===null?(u=Bm(),u===null&&(u=dt,d=km(),u.pooledCache=d,zi(d),d!==null&&(u.pooledCacheLanes|=o),u=d),t.memoizedState={parent:i,cache:u},zm(t),Ss(t,zt,u)):((e.lanes&o)!==0&&(Hm(e,t),Cu(t,null,null,o),Lu()),u=e.memoizedState,d=t.memoizedState,u.parent!==i?(u={parent:i,cache:i},t.memoizedState=u,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=u),Ss(t,zt,i)):(i=d.cache,Ss(t,zt,i),i!==u.cache&&Rm(t,[zt],o,!0))),aa(e,t,t.pendingProps.children,o),t.child;case 29:throw t.pendingProps}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Bn(e){e.flags|=4}function Ag(e,t,o,i,u){if(t=(e.mode&UR)!==ve)t=!1;if(t){if(e.flags|=16777216,(u&335544128)===u)if(e.stateNode.complete)e.flags|=8192;else if(Vv())e.flags|=8192;else throw Ki=ch,tb}else e.flags&=-16777217}function dv(e,t){if(t.type!=="stylesheet"||(t.state.loading&vo)!==dl)e.flags&=-16777217;else if(e.flags|=16777216,!FL(t))if(Vv())e.flags|=8192;else throw Ki=ch,tb}function xf(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?kl():536870912,e.lanes|=t,sl|=t)}function Au(e,t){if(!je)switch(e.tailMode){case"hidden":t=e.tail;for(var o=null;t!==null;)t.alternate!==null&&(o=t),t=t.sibling;o===null?e.tail=null:o.sibling=null;break;case"collapsed":o=e.tail;for(var i=null;o!==null;)o.alternate!==null&&(i=o),o=o.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function pt(e){var t=e.alternate!==null&&e.alternate.child===e.child,o=0,i=0;if(t)if((e.mode&De)!==ve){for(var{selfBaseDuration:u,child:d}=e;d!==null;)o|=d.lanes|d.childLanes,i|=d.subtreeFlags&65011712,i|=d.flags&65011712,u+=d.treeBaseDuration,d=d.sibling;e.treeBaseDuration=u}else for(u=e.child;u!==null;)o|=u.lanes|u.childLanes,i|=u.subtreeFlags&65011712,i|=u.flags&65011712,u.return=e,u=u.sibling;else if((e.mode&De)!==ve){u=e.actualDuration,d=e.selfBaseDuration;for(var m=e.child;m!==null;)o|=m.lanes|m.childLanes,i|=m.subtreeFlags,i|=m.flags,u+=m.actualDuration,d+=m.treeBaseDuration,m=m.sibling;e.actualDuration=u,e.treeBaseDuration=d}else for(u=e.child;u!==null;)o|=u.lanes|u.childLanes,i|=u.subtreeFlags,i|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=i,e.childLanes=o,t}function S_(e,t,o){var i=t.pendingProps;switch(Tm(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return pt(t),null;case 1:return pt(t),null;case 3:if(o=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),kn(zt,t),se(t),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),e===null||e.child===null)zl(t)?(_m(),Bn(t)):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Am());return pt(t),null;case 26:var{type:u,memoizedState:d}=t;return e===null?(Bn(t),d!==null?(pt(t),dv(t,d)):(pt(t),Ag(t,u,null,i,o))):d?d!==e.memoizedState?(Bn(t),pt(t),dv(t,d)):(pt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&Bn(t),pt(t),Ag(t,u,e,i,o)),null;case 27:if(Ee(t),o=Me(Rs.current),u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&Bn(t);else{if(!i){if(t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return pt(t),null}e=de(),zl(t)?K0(t,e):(e=OL(u,i,o,e,!0),t.stateNode=e,Bn(t))}return pt(t),null;case 5:if(Ee(t),u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&Bn(t);else{if(!i){if(t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return pt(t),null}var m=de();if(zl(t))K0(t,m);else{switch(d=Me(Rs.current),hm(u,m.ancestorInfo),m=m.context,d=Af(d),m){case Or:d=d.createElementNS(or,u);break;case Ph:d=d.createElementNS(Gf,u);break;default:switch(u){case"svg":d=d.createElementNS(or,u);break;case"math":d=d.createElementNS(Gf,u);break;case"script":d=d.createElement("div"),d.innerHTML="<script></script>",d=d.removeChild(d.firstChild);break;case"select":d=typeof i.is==="string"?d.createElement("select",{is:i.is}):d.createElement("select"),i.multiple?d.multiple=!0:i.size&&(d.size=i.size);break;default:d=typeof i.is==="string"?d.createElement(u,{is:i.is}):d.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(d)!=="[object HTMLUnknownElement]"||Do.call(xI,u)||(xI[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)))}}d[na]=t,d[xa]=i;e:for(m=t.child;m!==null;){if(m.tag===5||m.tag===6)d.appendChild(m.stateNode);else if(m.tag!==4&&m.tag!==27&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===t)break e;for(;m.sibling===null;){if(m.return===null||m.return===t)break e;m=m.return}m.sibling.return=m.return,m=m.sibling}t.stateNode=d;e:switch(oa(d,u,i),u){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&Bn(t)}}return pt(t),Ag(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,o),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&Bn(t);else{if(typeof i!=="string"&&t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(e=Me(Rs.current),o=de(),zl(t)){if(e=t.stateNode,o=t.memoizedProps,u=!pn,i=null,d=sa,d!==null)switch(d.tag){case 3:u&&(u=RL(e,o,i),u!==null&&(Ei(t,0).serverProps=u));break;case 27:case 5:i=d.memoizedProps,u&&(u=RL(e,o,i),u!==null&&(Ei(t,0).serverProps=u))}e[na]=t,e=e.nodeValue===o||i!==null&&i.suppressHydrationWarning===!0||gL(e.nodeValue,o)?!0:!1,e||xs(t,!0)}else u=o.ancestorInfo.current,u!=null&&kd(i,u.tag,o.ancestorInfo.implicitRootScope),e=Af(e).createTextNode(i),e[na]=t,t.stateNode=e}return pt(t),null;case 31:if(o=t.memoizedState,e===null||e.memoizedState!==null){if(i=zl(t),o!==null){if(e===null){if(!i)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.");e[na]=t,pt(t),(t.mode&De)!==ve&&o!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration))}else _m(),Bi(),(t.flags&128)===0&&(o=t.memoizedState=null),t.flags|=4,pt(t),(t.mode&De)!==ve&&o!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration));e=!1}else o=Am(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),e=!0;if(!e){if(t.flags&256)return $a(t),t;return $a(t),null}if((t.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return pt(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=i,d=zl(t),u!==null&&u.dehydrated!==null){if(e===null){if(!d)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(d=t.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");d[na]=t,pt(t),(t.mode&De)!==ve&&u!==null&&(u=t.child,u!==null&&(t.treeBaseDuration-=u.treeBaseDuration))}else _m(),Bi(),(t.flags&128)===0&&(u=t.memoizedState=null),t.flags|=4,pt(t),(t.mode&De)!==ve&&u!==null&&(u=t.child,u!==null&&(t.treeBaseDuration-=u.treeBaseDuration));u=!1}else u=Am(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u){if(t.flags&256)return $a(t),t;return $a(t),null}}if($a(t),(t.flags&128)!==0)return t.lanes=o,(t.mode&De)!==ve&&xu(t),t;return o=i!==null,e=e!==null&&e.memoizedState!==null,o&&(i=t.child,u=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(u=i.alternate.memoizedState.cachePool.pool),d=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(d=i.memoizedState.cachePool.pool),d!==u&&(i.flags|=2048)),o!==e&&o&&(t.child.flags|=8192),xf(t,t.updateQueue),pt(t),(t.mode&De)!==ve&&o&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration)),null;case 4:return se(t),e===null&&Gg(t.stateNode.containerInfo),pt(t),null;case 10:return kn(t.type,t),pt(t),null;case 19:if(ye(Ot,t),i=t.memoizedState,i===null)return pt(t),null;if(u=(t.flags&128)!==0,d=i.rendering,d===null)if(u)Au(i,!1);else{if(It!==Qn||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(d=tf(e),d!==null){t.flags|=128,Au(i,!1),e=d.updateQueue,t.updateQueue=e,xf(t,e),t.subtreeFlags=0,e=o;for(o=t.child;o!==null;)X0(o,e),o=o.sibling;return Se(Ot,Ot.current&vr|yc,t),je&&Rn(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&Qt()>Ch&&(t.flags|=128,u=!0,Au(i,!1),t.lanes=4194304)}else{if(!u)if(e=tf(d),e!==null){if(t.flags|=128,u=!0,e=e.updateQueue,t.updateQueue=e,xf(t,e),Au(i,!0),i.tail===null&&i.tailMode==="hidden"&&!d.alternate&&!je)return pt(t),null}else 2*Qt()-i.renderingStartTime>Ch&&o!==536870912&&(t.flags|=128,u=!0,Au(i,!1),t.lanes=4194304);i.isBackwards?(d.sibling=t.child,t.child=d):(e=i.last,e!==null?e.sibling=d:t.child=d,i.last=d)}if(i.tail!==null)return e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=Qt(),e.sibling=null,o=Ot.current,o=u?o&vr|yc:o&vr,Se(Ot,o,t),je&&Rn(t,i.treeForkCount),e;return pt(t),null;case 22:case 23:return $a(t),Fm(t),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(o&536870912)!==0&&(t.flags&128)===0&&(pt(t),t.subtreeFlags&6&&(t.flags|=8192)):pt(t),o=t.updateQueue,o!==null&&xf(t,o.retryQueue),o=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(o=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==o&&(t.flags|=2048),e!==null&&ye(Zi,t),null;case 24:return o=null,e!==null&&(o=e.memoizedState.cache),t.memoizedState.cache!==o&&(t.flags|=2048),kn(zt,t),pt(t),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function v_(e,t){switch(Tm(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&De)!==ve&&xu(t),t):null;case 3:return kn(zt,t),se(t),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ee(t),null;case 31:if(t.memoizedState!==null){if($a(t),t.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Bi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&De)!==ve&&xu(t),t):null;case 13:if($a(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Bi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&De)!==ve&&xu(t),t):null;case 19:return ye(Ot,t),null;case 4:return se(t),null;case 10:return kn(t.type,t),null;case 22:case 23:return $a(t),Fm(t),e!==null&&ye(Zi,t),e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&De)!==ve&&xu(t),t):null;case 24:return kn(zt,t),null;case 25:return null;default:return null}}function fv(e,t){switch(Tm(t),t.tag){case 3:kn(zt,t),se(t);break;case 26:case 27:case 5:Ee(t);break;case 4:se(t);break;case 31:t.memoizedState!==null&&$a(t);break;case 13:$a(t);break;case 19:ye(Ot,t);break;case 10:kn(t.type,t);break;case 22:case 23:$a(t),Fm(t),e!==null&&ye(Zi,t);break;case 24:kn(zt,t)}}function en(e){return(e.mode&De)!==ve}function hv(e,t){en(e)?(Ko(),_u(t,e),Jo()):_u(t,e)}function _g(e,t,o){en(e)?(Ko(),Vl(o,e,t),Jo()):Vl(o,e,t)}function _u(e,t){try{var o=t.updateQueue,i=o!==null?o.lastEffect:null;if(i!==null){var u=i.next;o=u;do{if((o.tag&e)===e&&(i=void 0,(e&Ca)!==fh&&(Dr=!0),i=ne(t,jR,o),(e&Ca)!==fh&&(Dr=!1),i!==void 0&&typeof i!=="function")){var d=void 0;d=(o.tag&oo)!==0?"useLayoutEffect":(o.tag&Ca)!==0?"useInsertionEffect":"useEffect";var m=void 0;m=i===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof i.then==="function"?`
141
+
142
+ It looks like you wrote `+d+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
143
+
144
+ `+d+`(() => {
145
+ async function fetchData() {
146
+ // You can await here
147
+ const response = await MyAPI.getData(someId);
148
+ // ...
149
+ }
150
+ fetchData();
151
+ }, [someId]); // Or [] if effect doesn't need props or state
152
+
153
+ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+i,ne(t,function(g,S){console.error("%s must not return anything besides a function, which is used for clean-up.%s",g,S)},d,m)}o=o.next}while(o!==u)}}catch(g){tt(t,t.return,g)}}function Vl(e,t,o){try{var i=t.updateQueue,u=i!==null?i.lastEffect:null;if(u!==null){var d=u.next;i=d;do{if((i.tag&e)===e){var m=i.inst,g=m.destroy;g!==void 0&&(m.destroy=void 0,(e&Ca)!==fh&&(Dr=!0),u=t,ne(u,GR,u,o,g),(e&Ca)!==fh&&(Dr=!1))}i=i.next}while(i!==d)}}catch(S){tt(t,t.return,S)}}function pv(e,t){en(e)?(Ko(),_u(t,e),Jo()):_u(t,e)}function Dg(e,t,o){en(e)?(Ko(),Vl(o,e,t),Jo()):Vl(o,e,t)}function mv(e){var t=e.updateQueue;if(t!==null){var o=e.stateNode;e.type.defaultProps||"ref"in e.memoizedProps||wr||(o.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",q(e)||"instance"),o.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",q(e)||"instance"));try{ne(e,yS,t,o)}catch(i){tt(e,e.return,i)}}}function L_(e,t,o){return e.getSnapshotBeforeUpdate(t,o)}function C_(e,t){var{memoizedProps:o,memoizedState:i}=t;t=e.stateNode,e.type.defaultProps||"ref"in e.memoizedProps||wr||(t.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",q(e)||"instance"),t.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",q(e)||"instance"));try{var u=Ni(e.type,o),d=ne(e,L_,t,u,i);o=Q1,d!==void 0||o.has(e.type)||(o.add(e.type),ne(e,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",q(e))})),t.__reactInternalSnapshotBeforeUpdate=d}catch(m){tt(e,e.return,m)}}function gv(e,t,o){o.props=Ni(e.type,e.memoizedProps),o.state=e.memoizedState,en(e)?(Ko(),ne(e,m1,e,t,o),Jo()):ne(e,m1,e,t,o)}function I_(e){var t=e.ref;if(t!==null){switch(e.tag){case 26:case 27:case 5:var o=e.stateNode;break;case 30:o=e.stateNode;break;default:o=e.stateNode}if(typeof t==="function")if(en(e))try{Ko(),e.refCleanup=t(o)}finally{Jo()}else e.refCleanup=t(o);else typeof t==="string"?console.error("String refs are no longer supported."):t.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",q(e)),t.current=o}}function Du(e,t){try{ne(e,I_,e)}catch(o){tt(e,t,o)}}function tn(e,t){var{ref:o,refCleanup:i}=e;if(o!==null)if(typeof i==="function")try{if(en(e))try{Ko(),ne(e,i)}finally{Jo(e)}else ne(e,i)}catch(u){tt(e,t,u)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof o==="function")try{if(en(e))try{Ko(),ne(e,o,null)}finally{Jo(e)}else ne(e,o,null)}catch(u){tt(e,t,u)}else o.current=null}function yv(e,t,o,i){var u=e.memoizedProps,d=u.id,m=u.onCommit;u=u.onRender,t=t===null?"mount":"update",ih&&(t="nested-update"),typeof u==="function"&&u(d,t,e.actualDuration,e.treeBaseDuration,e.actualStartTime,o),typeof m==="function"&&m(d,t,i,o)}function w_(e,t,o,i){var u=e.memoizedProps;e=u.id,u=u.onPostCommit,t=t===null?"mount":"update",ih&&(t="nested-update"),typeof u==="function"&&u(e,t,i,o)}function bv(e){var{type:t,memoizedProps:o,stateNode:i}=e;try{ne(e,$_,i,t,o,e)}catch(u){tt(e,e.return,u)}}function Rg(e,t,o){try{ne(e,Z_,e.stateNode,e.type,o,t,e)}catch(i){tt(e,e.return,i)}}function xv(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&_s(e.type)||e.tag===4}function kg(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||xv(e.return))return null;e=e.return}e.sibling.return=e.return;for(e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&_s(e.type))continue e;if(e.flags&2)continue e;if(e.child===null||e.tag===4)continue e;else e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Og(e,t,o){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?(ML(o),(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o).insertBefore(e,t)):(ML(o),t=o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,t.appendChild(e),o=o._reactRootContainer,o!==null&&o!==void 0||t.onclick!==null||(t.onclick=_n));else if(i!==4&&(i===27&&_s(e.type)&&(o=e.stateNode,t=null),e=e.child,e!==null))for(Og(e,t,o),e=e.sibling;e!==null;)Og(e,t,o),e=e.sibling}function Sf(e,t,o){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?o.insertBefore(e,t):o.appendChild(e);else if(i!==4&&(i===27&&_s(e.type)&&(o=e.stateNode),e=e.child,e!==null))for(Sf(e,t,o),e=e.sibling;e!==null;)Sf(e,t,o),e=e.sibling}function M_(e){for(var t,o=e.return;o!==null;){if(xv(o)){t=o;break}o=o.return}if(t==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(t.tag){case 27:t=t.stateNode,o=kg(e),Sf(e,o,t);break;case 5:o=t.stateNode,t.flags&32&&(wL(o),t.flags&=-33),t=kg(e),Sf(e,t,o);break;case 3:case 4:t=t.stateNode.containerInfo,o=kg(e),Og(e,o,t);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function Sv(e){var{stateNode:t,memoizedProps:o}=e;try{ne(e,hD,e.type,o,t,e)}catch(i){tt(e,e.return,i)}}function vv(e,t){return t.tag===31?(t=t.memoizedState,e.memoizedState!==null&&t===null):t.tag===13?(e=e.memoizedState,t=t.memoizedState,e!==null&&e.dehydrated!==null&&(t===null||t.dehydrated===null)):t.tag===3?e.memoizedState.isDehydrated&&(t.flags&256)===0:!1}function T_(e,t){if(e=e.containerInfo,kb=Fh,e=z0(e),gm(e)){if("selectionStart"in e)var o={start:e.selectionStart,end:e.selectionEnd};else e:{o=(o=e.ownerDocument)&&o.defaultView||window;var i=o.getSelection&&o.getSelection();if(i&&i.rangeCount!==0){o=i.anchorNode;var{anchorOffset:u,focusNode:d}=i;i=i.focusOffset;try{o.nodeType,d.nodeType}catch(K){o=null;break e}var m=0,g=-1,S=-1,L=0,O=0,E=e,A=null;t:for(;;){for(var P;;){if(E!==o||u!==0&&E.nodeType!==3||(g=m+u),E!==d||i!==0&&E.nodeType!==3||(S=m+i),E.nodeType===3&&(m+=E.nodeValue.length),(P=E.firstChild)===null)break;A=E,E=P}for(;;){if(E===e)break t;if(A===o&&++L===u&&(g=m),A===d&&++O===i&&(S=m),(P=E.nextSibling)!==null)break;E=A,A=E.parentNode}E=P}o=g===-1||S===-1?null:{start:g,end:S}}else o=null}o=o||{start:0,end:0}}else o=null;Ob={focusedElem:e,selectionRange:o},Fh=!1;for(Jt=t;Jt!==null;)if(t=Jt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Jt=e;else for(;Jt!==null;){switch(e=t=Jt,o=e.alternate,u=e.flags,e.tag){case 0:if((u&4)!==0&&(e=e.updateQueue,e=e!==null?e.events:null,e!==null))for(o=0;o<e.length;o++)u=e[o],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:(u&1024)!==0&&o!==null&&C_(e,o);break;case 3:if((u&1024)!==0){if(e=e.stateNode.containerInfo,o=e.nodeType,o===9)Kg(e);else if(o===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Kg(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((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(e=t.sibling,e!==null){e.return=t.return,Jt=e;break}Jt=t.return}}function Lv(e,t,o){var i=Xa(),u=Wo(),d=Qo(),m=Zo(),g=o.flags;switch(o.tag){case 0:case 11:case 15:an(e,o),g&4&&hv(o,oo|xo);break;case 1:if(an(e,o),g&4)if(e=o.stateNode,t===null)o.type.defaultProps||"ref"in o.memoizedProps||wr||(e.props!==o.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.",q(o)||"instance"),e.state!==o.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.",q(o)||"instance")),en(o)?(Ko(),ne(o,eb,o,e),Jo()):ne(o,eb,o,e);else{var S=Ni(o.type,t.memoizedProps);t=t.memoizedState,o.type.defaultProps||"ref"in o.memoizedProps||wr||(e.props!==o.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.",q(o)||"instance"),e.state!==o.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.",q(o)||"instance")),en(o)?(Ko(),ne(o,f1,o,e,S,t,e.__reactInternalSnapshotBeforeUpdate),Jo()):ne(o,f1,o,e,S,t,e.__reactInternalSnapshotBeforeUpdate)}g&64&&mv(o),g&512&&Du(o,o.return);break;case 3:if(t=On(),an(e,o),g&64&&(g=o.updateQueue,g!==null)){if(S=null,o.child!==null)switch(o.child.tag){case 27:case 5:S=o.child.stateNode;break;case 1:S=o.child.stateNode}try{ne(o,yS,g,S)}catch(O){tt(o,o.return,O)}}e.effectDuration+=Yd(t);break;case 27:t===null&&g&4&&Sv(o);case 26:case 5:if(an(e,o),t===null){if(g&4)bv(o);else if(g&64){e=o.type,t=o.memoizedProps,S=o.stateNode;try{ne(o,Q_,S,e,t,o)}catch(O){tt(o,o.return,O)}}}g&512&&Du(o,o.return);break;case 12:if(g&4){g=On(),an(e,o),e=o.stateNode,e.effectDuration+=bu(g);try{ne(o,yv,o,t,Us,e.effectDuration)}catch(O){tt(o,o.return,O)}}else an(e,o);break;case 31:an(e,o),g&4&&wv(e,o);break;case 13:an(e,o),g&4&&Mv(e,o),g&64&&(e=o.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(g=P_.bind(null,o),uD(e,g))));break;case 22:if(g=o.memoizedState!==null||$n,!g){t=t!==null&&t.memoizedState!==null||Nt,S=$n;var L=Nt;$n=g,(Nt=t)&&!L?(on(e,o,(o.subtreeFlags&8772)!==0),(o.mode&De)!==ve&&0<=ge&&0<=xe&&0.05<xe-ge&&Pd(o,ge,xe)):an(e,o),$n=S,Nt=L}break;case 30:break;default:an(e,o)}(o.mode&De)!==ve&&0<=ge&&0<=xe&&((Tt||0.05<Ct)&&Yo(o,ge,xe,Ct,Lt),o.alternate===null&&o.return!==null&&o.return.alternate!==null&&0.05<xe-ge&&(vv(o.return.alternate,o.return)||Go(o,ge,xe,"Mount"))),Wa(i),$o(u),Lt=d,Tt=m}function Cv(e){var t=e.alternate;t!==null&&(e.alternate=null,Cv(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ee(t)),e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Pn(e,t,o){for(o=o.child;o!==null;)Iv(e,t,o),o=o.sibling}function Iv(e,t,o){if(ha&&typeof ha.onCommitFiberUnmount==="function")try{ha.onCommitFiberUnmount(tr,o)}catch(L){cn||(cn=!0,console.error("React instrumentation encountered an error: %o",L))}var i=Xa(),u=Wo(),d=Qo(),m=Zo();switch(o.tag){case 26:Nt||tn(o,t),Pn(e,t,o),o.memoizedState?o.memoizedState.count--:o.stateNode&&(e=o.stateNode,e.parentNode.removeChild(e));break;case 27:Nt||tn(o,t);var g=qt,S=Ra;_s(o.type)&&(qt=o.stateNode,Ra=!1),Pn(e,t,o),ne(o,Uu,o.stateNode),qt=g,Ra=S;break;case 5:Nt||tn(o,t);case 6:if(g=qt,S=Ra,qt=null,Pn(e,t,o),qt=g,Ra=S,qt!==null)if(Ra)try{ne(o,eD,qt,o.stateNode)}catch(L){tt(o,t,L)}else try{ne(o,K_,qt,o.stateNode)}catch(L){tt(o,t,L)}break;case 18:qt!==null&&(Ra?(e=qt,TL(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,o.stateNode),Zl(e)):TL(qt,o.stateNode));break;case 4:g=qt,S=Ra,qt=o.stateNode.containerInfo,Ra=!0,Pn(e,t,o),qt=g,Ra=S;break;case 0:case 11:case 14:case 15:Vl(Ca,o,t),Nt||_g(o,t,oo),Pn(e,t,o);break;case 1:Nt||(tn(o,t),g=o.stateNode,typeof g.componentWillUnmount==="function"&&gv(o,t,g)),Pn(e,t,o);break;case 21:Pn(e,t,o);break;case 22:Nt=(g=Nt)||o.memoizedState!==null,Pn(e,t,o),Nt=g;break;default:Pn(e,t,o)}(o.mode&De)!==ve&&0<=ge&&0<=xe&&(Tt||0.05<Ct)&&Yo(o,ge,xe,Ct,Lt),Wa(i),$o(u),Lt=d,Tt=m}function wv(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ne(t,dD,e)}catch(o){tt(t,t.return,o)}}}function Mv(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ne(t,fD,e)}catch(o){tt(t,t.return,o)}}function A_(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Z1),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Z1),t;default:throw Error("Unexpected Suspense handler tag ("+e.tag+"). This is a bug in React.")}}function vf(e,t){var o=A_(e);t.forEach(function(i){if(!o.has(i)){if(o.add(i),dn)if(Mr!==null&&Tr!==null)Eu(Tr,Mr);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var u=z_.bind(null,e,i);i.then(u,u)}})}function _a(e,t){var o=t.deletions;if(o!==null)for(var i=0;i<o.length;i++){var u=e,d=t,m=o[i],g=Xa(),S=d;e:for(;S!==null;){switch(S.tag){case 27:if(_s(S.type)){qt=S.stateNode,Ra=!1;break e}break;case 5:qt=S.stateNode,Ra=!1;break e;case 3:case 4:qt=S.stateNode.containerInfo,Ra=!0;break e}S=S.return}if(qt===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");Iv(u,d,m),qt=null,Ra=!1,(m.mode&De)!==ve&&0<=ge&&0<=xe&&0.05<xe-ge&&Go(m,ge,xe,"Unmount"),Wa(g),u=m,d=u.alternate,d!==null&&(d.return=null),u.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Tv(t,e),t=t.sibling}function Tv(e,t){var o=Xa(),i=Wo(),u=Qo(),d=Zo(),m=e.alternate,g=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:_a(t,e),Da(e),g&4&&(Vl(Ca|xo,e,e.return),_u(Ca|xo,e),_g(e,e.return,oo|xo));break;case 1:if(_a(t,e),Da(e),g&512&&(Nt||m===null||tn(m,m.return)),g&64&&$n&&(g=e.updateQueue,g!==null&&(m=g.callbacks,m!==null))){var S=g.shared.hiddenCallbacks;g.shared.hiddenCallbacks=S===null?m:S.concat(m)}break;case 26:if(S=Bo,_a(t,e),Da(e),g&512&&(Nt||m===null||tn(m,m.return)),g&4){var L=m!==null?m.memoizedState:null;if(g=e.memoizedState,m===null)if(g===null)if(e.stateNode===null){e:{g=e.type,m=e.memoizedProps,S=S.ownerDocument||S;t:switch(g){case"title":if(L=S.getElementsByTagName("title")[0],!L||L[Yu]||L[na]||L.namespaceURI===or||L.hasAttribute("itemprop"))L=S.createElement(g),S.head.insertBefore(L,S.querySelector("head > title"));oa(L,g,m),L[na]=e,me(L),g=L;break e;case"link":var O=HL("link","href",S).get(g+(m.href||""));if(O){for(var E=0;E<O.length;E++)if(L=O[E],L.getAttribute("href")===(m.href==null||m.href===""?null:m.href)&&L.getAttribute("rel")===(m.rel==null?null:m.rel)&&L.getAttribute("title")===(m.title==null?null:m.title)&&L.getAttribute("crossorigin")===(m.crossOrigin==null?null:m.crossOrigin)){O.splice(E,1);break t}}L=S.createElement(g),oa(L,g,m),S.head.appendChild(L);break;case"meta":if(O=HL("meta","content",S).get(g+(m.content||""))){for(E=0;E<O.length;E++)if(L=O[E],rt(m.content,"content"),L.getAttribute("content")===(m.content==null?null:""+m.content)&&L.getAttribute("name")===(m.name==null?null:m.name)&&L.getAttribute("property")===(m.property==null?null:m.property)&&L.getAttribute("http-equiv")===(m.httpEquiv==null?null:m.httpEquiv)&&L.getAttribute("charset")===(m.charSet==null?null:m.charSet)){O.splice(E,1);break t}}L=S.createElement(g),oa(L,g,m),S.head.appendChild(L);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+g+'". This is a bug in React.')}L[na]=e,me(L),g=L}e.stateNode=g}else UL(S,e.type,e.stateNode);else e.stateNode=zL(S,g,e.memoizedProps);else L!==g?(L===null?m.stateNode!==null&&(m=m.stateNode,m.parentNode.removeChild(m)):L.count--,g===null?UL(S,e.type,e.stateNode):zL(S,g,e.memoizedProps)):g===null&&e.stateNode!==null&&Rg(e,e.memoizedProps,m.memoizedProps)}break;case 27:_a(t,e),Da(e),g&512&&(Nt||m===null||tn(m,m.return)),m!==null&&g&4&&Rg(e,e.memoizedProps,m.memoizedProps);break;case 5:if(_a(t,e),Da(e),g&512&&(Nt||m===null||tn(m,m.return)),e.flags&32){S=e.stateNode;try{ne(e,wL,S)}catch(ae){tt(e,e.return,ae)}}g&4&&e.stateNode!=null&&(S=e.memoizedProps,Rg(e,S,m!==null?m.memoizedProps:S)),g&1024&&(hb=!0,e.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(_a(t,e),Da(e),g&4){if(e.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");g=e.memoizedProps,m=m!==null?m.memoizedProps:g,S=e.stateNode;try{ne(e,J_,S,m,g)}catch(ae){tt(e,e.return,ae)}}break;case 3:if(S=On(),zh=null,L=Bo,Bo=_f(t.containerInfo),_a(t,e),Bo=L,Da(e),g&4&&m!==null&&m.memoizedState.isDehydrated)try{ne(e,cD,t.containerInfo)}catch(ae){tt(e,e.return,ae)}hb&&(hb=!1,Av(e)),t.effectDuration+=Yd(S);break;case 4:g=Bo,Bo=_f(e.stateNode.containerInfo),_a(t,e),Da(e),Bo=g;break;case 12:g=On(),_a(t,e),Da(e),e.stateNode.effectDuration+=bu(g);break;case 31:_a(t,e),Da(e),g&4&&(g=e.updateQueue,g!==null&&(e.updateQueue=null,vf(e,g)));break;case 13:_a(t,e),Da(e),e.child.flags&8192&&e.memoizedState!==null!==(m!==null&&m.memoizedState!==null)&&(Lh=Qt()),g&4&&(g=e.updateQueue,g!==null&&(e.updateQueue=null,vf(e,g)));break;case 22:S=e.memoizedState!==null;var A=m!==null&&m.memoizedState!==null,P=$n,K=Nt;if($n=P||S,Nt=K||A,_a(t,e),Nt=K,$n=P,A&&!S&&!P&&!K&&(e.mode&De)!==ve&&0<=ge&&0<=xe&&0.05<xe-ge&&Pd(e,ge,xe),Da(e),g&8192)e:for(t=e.stateNode,t._visibility=S?t._visibility&~tc:t._visibility|tc,!S||m===null||A||$n||Nt||(qi(e),(e.mode&De)!==ve&&0<=ge&&0<=xe&&0.05<xe-ge&&Go(e,ge,xe,"Disconnect")),m=null,t=e;;){if(t.tag===5||t.tag===26){if(m===null){A=m=t;try{L=A.stateNode,S?ne(A,aD,L):ne(A,sD,A.stateNode,A.memoizedProps)}catch(ae){tt(A,A.return,ae)}}}else if(t.tag===6){if(m===null){A=t;try{O=A.stateNode,S?ne(A,oD,O):ne(A,iD,O,A.memoizedProps)}catch(ae){tt(A,A.return,ae)}}}else if(t.tag===18){if(m===null){A=t;try{E=A.stateNode,S?ne(A,tD,E):ne(A,nD,A.stateNode)}catch(ae){tt(A,A.return,ae)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;m===t&&(m=null),t=t.return}m===t&&(m=null),t.sibling.return=t.return,t=t.sibling}g&4&&(g=e.updateQueue,g!==null&&(m=g.retryQueue,m!==null&&(g.retryQueue=null,vf(e,m))));break;case 19:_a(t,e),Da(e),g&4&&(g=e.updateQueue,g!==null&&(e.updateQueue=null,vf(e,g)));break;case 30:break;case 21:break;default:_a(t,e),Da(e)}(e.mode&De)!==ve&&0<=ge&&0<=xe&&((Tt||0.05<Ct)&&Yo(e,ge,xe,Ct,Lt),e.alternate===null&&e.return!==null&&e.return.alternate!==null&&0.05<xe-ge&&(vv(e.return.alternate,e.return)||Go(e,ge,xe,"Mount"))),Wa(o),$o(i),Lt=u,Tt=d}function Da(e){var t=e.flags;if(t&2){try{ne(e,M_,e)}catch(o){tt(e,e.return,o)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Av(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Av(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function an(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Lv(e,t.alternate,t),t=t.sibling}function _v(e){var t=Xa(),o=Wo(),i=Qo(),u=Zo();switch(e.tag){case 0:case 11:case 14:case 15:_g(e,e.return,oo),qi(e);break;case 1:tn(e,e.return);var d=e.stateNode;typeof d.componentWillUnmount==="function"&&gv(e,e.return,d),qi(e);break;case 27:ne(e,Uu,e.stateNode);case 26:case 5:tn(e,e.return),qi(e);break;case 22:e.memoizedState===null&&qi(e);break;case 30:qi(e);break;default:qi(e)}(e.mode&De)!==ve&&0<=ge&&0<=xe&&(Tt||0.05<Ct)&&Yo(e,ge,xe,Ct,Lt),Wa(t),$o(o),Lt=i,Tt=u}function qi(e){for(e=e.child;e!==null;)_v(e),e=e.sibling}function Dv(e,t,o,i){var u=Xa(),d=Wo(),m=Qo(),g=Zo(),S=o.flags;switch(o.tag){case 0:case 11:case 15:on(e,o,i),hv(o,oo);break;case 1:if(on(e,o,i),t=o.stateNode,typeof t.componentDidMount==="function"&&ne(o,eb,o,t),t=o.updateQueue,t!==null){e=o.stateNode;try{ne(o,c_,t,e)}catch(L){tt(o,o.return,L)}}i&&S&64&&mv(o),Du(o,o.return);break;case 27:Sv(o);case 26:case 5:on(e,o,i),i&&t===null&&S&4&&bv(o),Du(o,o.return);break;case 12:if(i&&S&4){S=On(),on(e,o,i),i=o.stateNode,i.effectDuration+=bu(S);try{ne(o,yv,o,t,Us,i.effectDuration)}catch(L){tt(o,o.return,L)}}else on(e,o,i);break;case 31:on(e,o,i),i&&S&4&&wv(e,o);break;case 13:on(e,o,i),i&&S&4&&Mv(e,o);break;case 22:o.memoizedState===null&&on(e,o,i),Du(o,o.return);break;case 30:break;default:on(e,o,i)}(o.mode&De)!==ve&&0<=ge&&0<=xe&&(Tt||0.05<Ct)&&Yo(o,ge,xe,Ct,Lt),Wa(u),$o(d),Lt=m,Tt=g}function on(e,t,o){o=o&&(t.subtreeFlags&8772)!==0;for(t=t.child;t!==null;)Dv(e,t.alternate,t,o),t=t.sibling}function Eg(e,t){var o=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(o=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==o&&(e!=null&&zi(e),o!=null&&yu(o))}function Bg(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(zi(t),e!=null&&yu(e))}function _o(e,t,o,i,u){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(t=t.child;t!==null;){var d=t.sibling;Rv(e,t,o,i,d!==null?d.actualStartTime:u),t=d}}function Rv(e,t,o,i,u){var d=Xa(),m=Wo(),g=Qo(),S=Zo(),L=Bs,O=t.flags;switch(t.tag){case 0:case 11:case 15:(t.mode&De)!==ve&&0<t.actualStartTime&&(t.flags&1)!==0&&zd(t,t.actualStartTime,u,Yt,o),_o(e,t,o,i,u),O&2048&&pv(t,Ia|xo);break;case 1:(t.mode&De)!==ve&&0<t.actualStartTime&&((t.flags&128)!==0?bm(t,t.actualStartTime,u,[]):(t.flags&1)!==0&&zd(t,t.actualStartTime,u,Yt,o)),_o(e,t,o,i,u);break;case 3:var E=On(),A=Yt;Yt=t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)===0,_o(e,t,o,i,u),Yt=A,O&2048&&(o=null,t.alternate!==null&&(o=t.alternate.memoizedState.cache),i=t.memoizedState.cache,i!==o&&(zi(i),o!=null&&yu(o))),e.passiveEffectDuration+=Yd(E);break;case 12:if(O&2048){O=On(),_o(e,t,o,i,u),e=t.stateNode,e.passiveEffectDuration+=bu(O);try{ne(t,w_,t,t.alternate,Us,e.passiveEffectDuration)}catch(P){tt(t,t.return,P)}}else _o(e,t,o,i,u);break;case 31:O=Yt,E=t.alternate!==null?t.alternate.memoizedState:null,A=t.memoizedState,E!==null&&A===null?(A=t.deletions,A!==null&&0<A.length&&A[0].tag===18?(Yt=!1,E=E.hydrationErrors,E!==null&&bm(t,t.actualStartTime,u,E)):Yt=!0):Yt=!1,_o(e,t,o,i,u),Yt=O;break;case 13:O=Yt,E=t.alternate!==null?t.alternate.memoizedState:null,A=t.memoizedState,E===null||E.dehydrated===null||A!==null&&A.dehydrated!==null?Yt=!1:(A=t.deletions,A!==null&&0<A.length&&A[0].tag===18?(Yt=!1,E=E.hydrationErrors,E!==null&&bm(t,t.actualStartTime,u,E)):Yt=!0),_o(e,t,o,i,u),Yt=O;break;case 23:break;case 22:A=t.stateNode,E=t.alternate,t.memoizedState!==null?A._visibility&Un?_o(e,t,o,i,u):Ru(e,t,o,i,u):A._visibility&Un?_o(e,t,o,i,u):(A._visibility|=Un,jl(e,t,o,i,(t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child),u),(t.mode&De)===ve||Yt||(e=t.actualStartTime,0<=e&&0.05<u-e&&Pd(t,e,u),0<=ge&&0<=xe&&0.05<xe-ge&&Pd(t,ge,xe))),O&2048&&Eg(E,t);break;case 24:_o(e,t,o,i,u),O&2048&&Bg(t.alternate,t);break;default:_o(e,t,o,i,u)}if((t.mode&De)!==ve){if(e=!Yt&&t.alternate===null&&t.return!==null&&t.return.alternate!==null)o=t.actualStartTime,0<=o&&0.05<u-o&&Go(t,o,u,"Mount");0<=ge&&0<=xe&&((Tt||0.05<Ct)&&Yo(t,ge,xe,Ct,Lt),e&&0.05<xe-ge&&Go(t,ge,xe,"Mount"))}Wa(d),$o(m),Lt=g,Tt=S,Bs=L}function jl(e,t,o,i,u,d){u=u&&((t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child));for(t=t.child;t!==null;){var m=t.sibling;kv(e,t,o,i,u,m!==null?m.actualStartTime:d),t=m}}function kv(e,t,o,i,u,d){var m=Xa(),g=Wo(),S=Qo(),L=Zo(),O=Bs;u&&(t.mode&De)!==ve&&0<t.actualStartTime&&(t.flags&1)!==0&&zd(t,t.actualStartTime,d,Yt,o);var E=t.flags;switch(t.tag){case 0:case 11:case 15:jl(e,t,o,i,u,d),pv(t,Ia);break;case 23:break;case 22:var A=t.stateNode;t.memoizedState!==null?A._visibility&Un?jl(e,t,o,i,u,d):Ru(e,t,o,i,d):(A._visibility|=Un,jl(e,t,o,i,u,d)),u&&E&2048&&Eg(t.alternate,t);break;case 24:jl(e,t,o,i,u,d),u&&E&2048&&Bg(t.alternate,t);break;default:jl(e,t,o,i,u,d)}(t.mode&De)!==ve&&0<=ge&&0<=xe&&(Tt||0.05<Ct)&&Yo(t,ge,xe,Ct,Lt),Wa(m),$o(g),Lt=S,Tt=L,Bs=O}function Ru(e,t,o,i,u){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(var d=t.child;d!==null;){t=d.sibling;var m=e,g=o,S=i,L=t!==null?t.actualStartTime:u,O=Bs;(d.mode&De)!==ve&&0<d.actualStartTime&&(d.flags&1)!==0&&zd(d,d.actualStartTime,L,Yt,g);var E=d.flags;switch(d.tag){case 22:Ru(m,d,g,S,L),E&2048&&Eg(d.alternate,d);break;case 24:Ru(m,d,g,S,L),E&2048&&Bg(d.alternate,d);break;default:Ru(m,d,g,S,L)}Bs=O,d=t}}function Gl(e,t,o){if(e.subtreeFlags&vc)for(e=e.child;e!==null;)Ov(e,t,o),e=e.sibling}function Ov(e,t,o){switch(e.tag){case 26:Gl(e,t,o),e.flags&vc&&e.memoizedState!==null&&gD(o,Bo,e.memoizedState,e.memoizedProps);break;case 5:Gl(e,t,o);break;case 3:case 4:var i=Bo;Bo=_f(e.stateNode.containerInfo),Gl(e,t,o),Bo=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=vc,vc=16777216,Gl(e,t,o),vc=i):Gl(e,t,o));break;default:Gl(e,t,o)}}function Ev(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function ku(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var o=0;o<t.length;o++){var i=t[o],u=Xa();Jt=i,zv(i,e),(i.mode&De)!==ve&&0<=ge&&0<=xe&&0.05<xe-ge&&Go(i,ge,xe,"Unmount"),Wa(u)}Ev(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Bv(e),e=e.sibling}function Bv(e){var t=Xa(),o=Wo(),i=Qo(),u=Zo();switch(e.tag){case 0:case 11:case 15:ku(e),e.flags&2048&&Dg(e,e.return,Ia|xo);break;case 3:var d=On();ku(e),e.stateNode.passiveEffectDuration+=Yd(d);break;case 12:d=On(),ku(e),e.stateNode.passiveEffectDuration+=bu(d);break;case 22:d=e.stateNode,e.memoizedState!==null&&d._visibility&Un&&(e.return===null||e.return.tag!==13)?(d._visibility&=~Un,Lf(e),(e.mode&De)!==ve&&0<=ge&&0<=xe&&0.05<xe-ge&&Go(e,ge,xe,"Disconnect")):ku(e);break;default:ku(e)}(e.mode&De)!==ve&&0<=ge&&0<=xe&&(Tt||0.05<Ct)&&Yo(e,ge,xe,Ct,Lt),Wa(t),$o(o),Tt=u,Lt=i}function Lf(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var o=0;o<t.length;o++){var i=t[o],u=Xa();Jt=i,zv(i,e),(i.mode&De)!==ve&&0<=ge&&0<=xe&&0.05<xe-ge&&Go(i,ge,xe,"Unmount"),Wa(u)}Ev(e)}for(e=e.child;e!==null;)Pv(e),e=e.sibling}function Pv(e){var t=Xa(),o=Wo(),i=Qo(),u=Zo();switch(e.tag){case 0:case 11:case 15:Dg(e,e.return,Ia),Lf(e);break;case 22:var d=e.stateNode;d._visibility&Un&&(d._visibility&=~Un,Lf(e));break;default:Lf(e)}(e.mode&De)!==ve&&0<=ge&&0<=xe&&(Tt||0.05<Ct)&&Yo(e,ge,xe,Ct,Lt),Wa(t),$o(o),Tt=u,Lt=i}function zv(e,t){for(;Jt!==null;){var o=Jt,i=o,u=t,d=Xa(),m=Wo(),g=Qo(),S=Zo();switch(i.tag){case 0:case 11:case 15:Dg(i,u,Ia);break;case 23:case 22:i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(u=i.memoizedState.cachePool.pool,u!=null&&zi(u));break;case 24:yu(i.memoizedState.cache)}if((i.mode&De)!==ve&&0<=ge&&0<=xe&&(Tt||0.05<Ct)&&Yo(i,ge,xe,Ct,Lt),Wa(d),$o(m),Tt=S,Lt=g,i=o.child,i!==null)i.return=o,Jt=i;else e:for(o=e;Jt!==null;){if(i=Jt,d=i.sibling,m=i.return,Cv(i),i===o){Jt=null;break e}if(d!==null){d.return=m,Jt=d;break e}Jt=m}}}function __(){QR.forEach(function(e){return e()})}function Hv(){var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return e||U.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),e}function Qa(e){if((Qe&Xt)!==Kt&&ke!==0)return ke&-ke;var t=U.T;return t!==null?(t._updatedFibers||(t._updatedFibers=new Set),t._updatedFibers.add(e),Vg()):B()}function Uv(){if(Oa===0)if((ke&536870912)===0||je){var e=Nf;Nf<<=1,(Nf&3932160)===0&&(Nf=262144),Oa=e}else Oa=536870912;return e=ao.current,e!==null&&(e.flags|=32),Oa}function Mt(e,t,o){if(Dr&&console.error("useInsertionEffect must not schedule updates."),Ib&&(Mh=!0),e===dt&&(it===ol||it===nl)||e.cancelPendingCommit!==null)Xl(e,0),Ts(e,ke,Oa,!1);if(ms(e,o),(Qe&Xt)!==Kt&&e===dt){if(un)switch(t.tag){case 0:case 11:case 15:e=Oe&&q(Oe)||"Unknown",fI.has(e)||(fI.add(e),t=q(t)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",t,e,e));break;case 1:dI||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),dI=!0)}}else dn&&iu(e,t,o),U_(t),e===dt&&((Qe&Xt)===Kt&&(Ws|=o),It===Gs&&Ts(e,ke,Oa,!1)),nn(e)}function Fv(e,t,o){if((Qe&(Xt|no))!==Kt)throw Error("Should not already be working.");if(ke!==0&&Oe!==null){var i=Oe,u=Qt();switch(n1){case Ic:case ol:var d=lc;yt&&((i=i._debugTask)?i.run(console.timeStamp.bind(console,"Suspended",d,u,co,void 0,"primary-light")):console.timeStamp("Suspended",d,u,co,void 0,"primary-light"));break;case nl:d=lc,yt&&((i=i._debugTask)?i.run(console.timeStamp.bind(console,"Action",d,u,co,void 0,"primary-light")):console.timeStamp("Action",d,u,co,void 0,"primary-light"));break;default:yt&&(i=u-lc,3>i||console.timeStamp("Blocked",lc,u,co,void 0,5>i?"primary-light":10>i?"primary":100>i?"primary-dark":"error"))}}d=(o=!o&&(t&127)===0&&(t&e.expiredLanes)===0||Ii(e,t))?R_(e,t):zg(e,t,!0);var m=o;do{if(d===Qn){Ar&&!o&&Ts(e,t,0,!1),t=it,lc=Ht(),n1=t;break}else{if(i=Qt(),u=e.current.alternate,m&&!D_(u)){Ga(t),u=Zt,d=i,!yt||d<=u||(kt?kt.run(console.timeStamp.bind(console,"Teared Render",u,d,Ne,He,"error")):console.timeStamp("Teared Render",u,d,Ne,He,"error")),Vi(t,i),d=zg(e,t,!1),m=!1;continue}if(d===al){if(m=t,e.errorRecoveryDisabledLanes&m)var g=0;else g=e.pendingLanes&-536870913,g=g!==0?g:g&536870912?536870912:0;if(g!==0){Ga(t),xm(Zt,i,t,kt),Vi(t,i),t=g;e:{i=e,d=m,m=Mc;var S=i.current.memoizedState.isDehydrated;if(S&&(Xl(i,g).flags|=256),g=zg(i,g,!1),g!==al){if(gb&&!S){i.errorRecoveryDisabledLanes|=d,Ws|=d,d=Gs;break e}i=wa,wa=m,i!==null&&(wa===null?wa=i:wa.push.apply(wa,i))}d=g}if(m=!1,d!==al)continue;else i=Qt()}}if(d===Cc){Ga(t),xm(Zt,i,t,kt),Vi(t,i),Xl(e,0),Ts(e,t,0,!0);break}e:{switch(o=e,d){case Qn:case Cc:throw Error("Root did not complete. This is a bug in React.");case Gs:if((t&4194048)!==t)break;case bh:Ga(t),F0(Zt,i,t,kt),Vi(t,i),u=t,(u&127)!==0?oh=i:(u&4194048)!==0&&(nh=i),Ts(o,t,Oa,!Ys);break e;case al:wa=null;break;case yh:case J1:break;default:throw Error("Unknown root exit status.")}if(U.actQueue!==null)Hg(o,u,t,wa,Tc,vh,Oa,Ws,sl,d,null,null,Zt,i);else{if((t&62914560)===t&&(m=Lh+tI-Qt(),10<m)){if(Ts(o,t,Oa,!Ys),Ci(o,0,!0)!==0)break e;Po=t,o.timeoutHandle=SI(Nv.bind(null,o,u,wa,Tc,vh,t,Oa,Ws,sl,Ys,d,"Throttled",Zt,i),m);break e}Nv(o,u,wa,Tc,vh,t,Oa,Ws,sl,Ys,d,null,Zt,i)}}}break}while(1);nn(e)}function Nv(e,t,o,i,u,d,m,g,S,L,O,E,A,P){e.timeoutHandle=cl;var K=t.subtreeFlags,ae=null;if(K&8192||(K&16785408)===16785408){if(ae={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:_n},Ov(t,d,ae),K=(d&62914560)===d?Lh-Qt():(d&4194048)===d?eI-Qt():0,K=yD(ae,K),K!==null){Po=d,e.cancelPendingCommit=K(Hg.bind(null,e,t,d,o,i,u,m,g,S,O,ae,ae.waitingForViewTransition?"Waiting for the previous Animation":0<ae.count?0<ae.imgCount?"Suspended on CSS and Images":"Suspended on CSS":ae.imgCount===1?"Suspended on an Image":0<ae.imgCount?"Suspended on Images":null,A,P)),Ts(e,d,m,!L);return}}Hg(e,t,d,o,i,u,m,g,S,O,ae,E,A,P)}function D_(e){for(var t=e;;){var o=t.tag;if((o===0||o===11||o===15)&&t.flags&16384&&(o=t.updateQueue,o!==null&&(o=o.stores,o!==null)))for(var i=0;i<o.length;i++){var u=o[i],d=u.getSnapshot;u=u.value;try{if(!va(d(),u))return!1}catch(m){return!1}}if(o=t.child,t.subtreeFlags&16384&&o!==null)o.return=t,t=o;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ts(e,t,o,i){t&=~yb,t&=~Ws,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var u=t;0<u;){var d=31-ba(u),m=1<<d;i[d]=-1,u&=~m}o!==0&&wi(e,o,t)}function Yl(){return(Qe&(Xt|no))===Kt?(Bu(0,!1),!1):!0}function Pg(){if(Oe!==null){if(it===ka)var e=Oe.return;else e=Oe,Vd(),Xm(e),xr=null,gc=0,e=Oe;for(;e!==null;)fv(e.alternate,e),e=e.return;Oe=null}}function Vi(e,t){(e&127)!==0&&(Fs=t),(e&4194048)!==0&&(gn=t),(e&62914560)!==0&&(a1=t),(e&2080374784)!==0&&(o1=t)}function Xl(e,t){yt&&(console.timeStamp("Blocking Track",0.003,0.003,"Blocking",He,"primary-light"),console.timeStamp("Transition Track",0.003,0.003,"Transition",He,"primary-light"),console.timeStamp("Suspense Track",0.003,0.003,"Suspense",He,"primary-light"),console.timeStamp("Idle Track",0.003,0.003,"Idle",He,"primary-light"));var o=Zt;if(Zt=Ht(),ke!==0&&0<o){if(Ga(ke),It===yh||It===Gs)F0(o,Zt,t,kt);else{var i=Zt,u=kt;if(yt&&!(i<=o)){var d=(t&738197653)===t?"tertiary-dark":"primary-dark",m=(t&536870912)===t?"Prewarm":(t&201326741)===t?"Interrupted Hydration":"Interrupted Render";u?u.run(console.timeStamp.bind(console,m,o,i,Ne,He,d)):console.timeStamp(m,o,i,Ne,He,d)}}Vi(ke,Zt)}if(o=kt,kt=null,(t&127)!==0){kt=nc,u=0<=mn&&mn<Fs?Fs:mn,i=0<=Wi&&Wi<Fs?Fs:Wi,d=0<=i?i:0<=u?u:Zt,0<=oh?(Ga(2),N0(oh,d,t,o)):(sh&127)!==0&&(Ga(2),mu(Fs,d,Gn)),o=u;var g=i,S=sc,L=0<gr,O=Ns===oc,E=Ns===ah;if(u=Zt,i=nc,d=$y,m=Qy,yt){if(Ne="Blocking",0<o?o>u&&(o=u):o=u,0<g?g>o&&(g=o):g=o,S!==null&&o>g){var A=L?"secondary-light":"warning";i?i.run(console.timeStamp.bind(console,L?"Consecutive":"Event: "+S,g,o,Ne,He,A)):console.timeStamp(L?"Consecutive":"Event: "+S,g,o,Ne,He,A)}u>o&&(g=O?"error":(t&738197653)===t?"tertiary-light":"primary-light",O=E?"Promise Resolved":O?"Cascading Update":5<u-o?"Update Blocked":"Update",E=[],m!=null&&E.push(["Component name",m]),d!=null&&E.push(["Method name",d]),o={start:o,end:u,detail:{devtools:{properties:E,track:Ne,trackGroup:He,color:g}}},i?i.run(performance.measure.bind(performance,O,o)):performance.measure(O,o))}mn=-1.1,Ns=0,Qy=$y=null,oh=-1.1,gr=Wi,Wi=-1.1,Fs=Ht()}if((t&4194048)!==0&&(kt=ic,u=0<=jn&&jn<gn?gn:jn,o=0<=yo&&yo<gn?gn:yo,i=0<=qs&&qs<gn?gn:qs,d=0<=i?i:0<=o?o:Zt,0<=nh?(Ga(256),N0(nh,d,t,kt)):(sh&4194048)!==0&&(Ga(256),mu(gn,d,Gn)),E=i,g=$i,S=0<Vs,L=Zy===ah,d=Zt,i=ic,m=e1,O=t1,yt&&(Ne="Transition",0<o?o>d&&(o=d):o=d,0<u?u>o&&(u=o):u=o,0<E?E>u&&(E=u):E=u,u>E&&g!==null&&(A=S?"secondary-light":"warning",i?i.run(console.timeStamp.bind(console,S?"Consecutive":"Event: "+g,E,u,Ne,He,A)):console.timeStamp(S?"Consecutive":"Event: "+g,E,u,Ne,He,A)),o>u&&(i?i.run(console.timeStamp.bind(console,"Action",u,o,Ne,He,"primary-dark")):console.timeStamp("Action",u,o,Ne,He,"primary-dark")),d>o&&(u=L?"Promise Resolved":5<d-o?"Update Blocked":"Update",E=[],O!=null&&E.push(["Component name",O]),m!=null&&E.push(["Method name",m]),o={start:o,end:d,detail:{devtools:{properties:E,track:Ne,trackGroup:He,color:"primary-light"}}},i?i.run(performance.measure.bind(performance,u,o)):performance.measure(u,o))),yo=jn=-1.1,Zy=0,nh=-1.1,Vs=qs,qs=-1.1,gn=Ht()),(t&62914560)!==0&&(sh&62914560)!==0&&(Ga(4194304),mu(a1,Zt,Gn)),(t&2080374784)!==0&&(sh&2080374784)!==0&&(Ga(268435456),mu(o1,Zt,Gn)),o=e.timeoutHandle,o!==cl&&(e.timeoutHandle=cl,uk(o)),o=e.cancelPendingCommit,o!==null&&(e.cancelPendingCommit=null,o()),Po=0,Pg(),dt=e,Oe=o=Dn(e.current,null),ke=t,it=ka,so=null,Ys=!1,Ar=Ii(e,t),gb=!1,It=Qn,sl=Oa=yb=Ws=Xs=0,wa=Mc=null,vh=!1,(t&8)!==0&&(t|=t&32),i=e.entangledLanes,i!==0)for(e=e.entanglements,i&=t;0<i;)u=31-ba(i),d=1<<u,t|=e[u],i&=~d;return bn=t,Hd(),e=WC(),1000<e-XC&&(U.recentlyCreatedOwnerStacks=0,XC=e),Oo.discardPendingWarnings(),o}function qv(e,t){Le=null,U.H=Sc,U.getCurrentStack=null,un=!1,Ka=null,t===br||t===uh?(t=uS(),it=Ic):t===tb?(t=uS(),it=K1):it=t===db?mb:t!==null&&typeof t==="object"&&typeof t.then==="function"?wc:xh,so=t;var o=Oe;o===null?(It=Cc,mf(e,Ya(t,e.current))):o.mode&De&&Em(o)}function Vv(){var e=ao.current;return e===null?!0:(ke&4194048)===ke?bo===null?!0:!1:(ke&62914560)===ke||(ke&536870912)!==0?e===bo:!1}function jv(){var e=U.H;return U.H=Sc,e===null?Sc:e}function Gv(){var e=U.A;return U.A=$R,e}function Cf(e){kt===null&&(kt=e._debugTask==null?null:e._debugTask)}function If(){It=Gs,Ys||(ke&4194048)!==ke&&ao.current!==null||(Ar=!0),(Xs&134217727)===0&&(Ws&134217727)===0||dt===null||Ts(dt,ke,Oa,!1)}function zg(e,t,o){var i=Qe;Qe|=Xt;var u=jv(),d=Gv();if(dt!==e||ke!==t){if(dn){var m=e.memoizedUpdaters;0<m.size&&(Eu(e,ke),m.clear()),gs(e,t)}Tc=null,Xl(e,t)}t=!1,m=It;e:do try{if(it!==ka&&Oe!==null){var g=Oe,S=so;switch(it){case mb:Pg(),m=bh;break e;case Ic:case ol:case nl:case wc:ao.current===null&&(t=!0);var L=it;if(it=ka,so=null,Wl(e,g,S,L),o&&Ar){m=Qn;break e}break;default:L=it,it=ka,so=null,Wl(e,g,S,L)}}Yv(),m=It;break}catch(O){qv(e,O)}while(1);return t&&e.shellSuspendCounter++,Vd(),Qe=i,U.H=u,U.A=d,Oe===null&&(dt=null,ke=0,Hd()),m}function Yv(){for(;Oe!==null;)Xv(Oe)}function R_(e,t){var o=Qe;Qe|=Xt;var i=jv(),u=Gv();if(dt!==e||ke!==t){if(dn){var d=e.memoizedUpdaters;0<d.size&&(Eu(e,ke),d.clear()),gs(e,t)}Tc=null,Ch=Qt()+aI,Xl(e,t)}else Ar=Ii(e,t);e:do try{if(it!==ka&&Oe!==null)t:switch(t=Oe,d=so,it){case xh:it=ka,so=null,Wl(e,t,d,xh);break;case ol:case nl:if(lS(d)){it=ka,so=null,Wv(t);break}t=function(){it!==ol&&it!==nl||dt!==e||(it=Sh),nn(e)},d.then(t,t);break e;case Ic:it=Sh;break e;case K1:it=pb;break e;case Sh:lS(d)?(it=ka,so=null,Wv(t)):(it=ka,so=null,Wl(e,t,d,Sh));break;case pb:var m=null;switch(Oe.tag){case 26:m=Oe.memoizedState;case 5:case 27:var g=Oe;if(m?FL(m):g.stateNode.complete){it=ka,so=null;var S=g.sibling;if(S!==null)Oe=S;else{var L=g.return;L!==null?(Oe=L,wf(L)):Oe=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}it=ka,so=null,Wl(e,t,d,pb);break;case wc:it=ka,so=null,Wl(e,t,d,wc);break;case mb:Pg(),It=bh;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}U.actQueue!==null?Yv():k_();break}catch(O){qv(e,O)}while(1);if(Vd(),U.H=i,U.A=u,Qe=o,Oe!==null)return Qn;return dt=null,ke=0,Hd(),It}function k_(){for(;Oe!==null&&!DD();)Xv(Oe)}function Xv(e){var t=e.alternate;(e.mode&De)!==ve?(Om(e),t=ne(e,Tg,t,e,bn),Em(e)):t=ne(e,Tg,t,e,bn),e.memoizedProps=e.pendingProps,t===null?wf(e):Oe=t}function Wv(e){var t=ne(e,O_,e);e.memoizedProps=e.pendingProps,t===null?wf(e):Oe=t}function O_(e){var t=e.alternate,o=(e.mode&De)!==ve;switch(o&&Om(e),e.tag){case 15:case 0:t=sv(t,e,e.pendingProps,e.type,void 0,ke);break;case 11:t=sv(t,e,e.pendingProps,e.type.render,e.ref,ke);break;case 5:Xm(e);default:fv(t,e),e=Oe=X0(e,bn),t=Tg(t,e,bn)}return o&&Em(e),t}function Wl(e,t,o,i){Vd(),Xm(t),xr=null,gc=0;var u=t.return;try{if(y_(e,u,t,o,ke)){It=Cc,mf(e,Ya(o,e.current)),Oe=null;return}}catch(d){if(u!==null)throw Oe=u,d;It=Cc,mf(e,Ya(o,e.current)),Oe=null;return}if(t.flags&32768){if(je||i===xh)e=!0;else if(Ar||(ke&536870912)!==0)e=!1;else if(Ys=e=!0,i===ol||i===nl||i===Ic||i===wc)i=ao.current,i!==null&&i.tag===13&&(i.flags|=16384);$v(t,e)}else wf(t)}function wf(e){var t=e;do{if((t.flags&32768)!==0){$v(t,Ys);return}var o=t.alternate;if(e=t.return,Om(t),o=ne(t,S_,o,t,bn),(t.mode&De)!==ve&&aS(t),o!==null){Oe=o;return}if(t=t.sibling,t!==null){Oe=t;return}Oe=t=e}while(t!==null);It===Qn&&(It=J1)}function $v(e,t){do{var o=v_(e.alternate,e);if(o!==null){o.flags&=32767,Oe=o;return}if((e.mode&De)!==ve){aS(e),o=e.actualDuration;for(var i=e.child;i!==null;)o+=i.actualDuration,i=i.sibling;e.actualDuration=o}if(o=e.return,o!==null&&(o.flags|=32768,o.subtreeFlags=0,o.deletions=null),!t&&(e=e.sibling,e!==null)){Oe=e;return}Oe=e=o}while(e!==null);It=bh,Oe=null}function Hg(e,t,o,i,u,d,m,g,S,L,O,E,A,P){e.cancelPendingCommit=null;do Ou();while(Vt!==Qs);if(Oo.flushLegacyContextWarning(),Oo.flushPendingUnsafeLifecycleWarnings(),(Qe&(Xt|no))!==Kt)throw Error("Should not already be working.");if(Ga(o),L===al?xm(A,P,o,kt):i!==null?n_(A,P,o,i,t!==null&&t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)!==0,kt):o_(A,P,o,kt),t!==null){if(o===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),t===e.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(d=t.lanes|t.childLanes,d|=jy,Td(e,o,d,m,g,S),e===dt&&(Oe=dt=null,ke=0),_r=t,Zs=e,Po=o,Sb=d,Lb=u,rI=i,vb=P,uI=E,zo=Ih,cI=null,t.actualDuration!==0||(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,H_(er,function(){return Oc=window.event,zo===Ih&&(zo=xb),eL(),null})):(e.callbackNode=null,e.callbackPriority=0),Vn=null,Us=Ht(),E!==null&&s_(P,Us,E,kt),i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=U.T,U.T=null,u=at.p,at.p=eo,m=Qe,Qe|=no;try{T_(e,t,o)}finally{Qe=m,at.p=u,U.T=i}}Vt=nI,Qv(),Zv(),Jv()}}function Qv(){if(Vt===nI){Vt=Qs;var e=Zs,t=_r,o=Po,i=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||i){i=U.T,U.T=null;var u=at.p;at.p=eo;var d=Qe;Qe|=no;try{Mr=o,Tr=e,Xd(),Tv(t,e),Tr=Mr=null,o=Ob;var m=z0(e.containerInfo),g=o.focusedElem,S=o.selectionRange;if(m!==g&&g&&g.ownerDocument&&P0(g.ownerDocument.documentElement,g)){if(S!==null&&gm(g)){var{start:L,end:O}=S;if(O===void 0&&(O=L),"selectionStart"in g)g.selectionStart=L,g.selectionEnd=Math.min(O,g.value.length);else{var E=g.ownerDocument||document,A=E&&E.defaultView||window;if(A.getSelection){var P=A.getSelection(),K=g.textContent.length,ae=Math.min(S.start,K),mt=S.end===void 0?ae:Math.min(S.end,K);!P.extend&&ae>mt&&(m=mt,mt=ae,ae=m);var Ye=B0(g,ae),T=B0(g,mt);if(Ye&&T&&(P.rangeCount!==1||P.anchorNode!==Ye.node||P.anchorOffset!==Ye.offset||P.focusNode!==T.node||P.focusOffset!==T.offset)){var _=E.createRange();_.setStart(Ye.node,Ye.offset),P.removeAllRanges(),ae>mt?(P.addRange(_),P.extend(T.node,T.offset)):(_.setEnd(T.node,T.offset),P.addRange(_))}}}}E=[];for(P=g;P=P.parentNode;)P.nodeType===1&&E.push({element:P,left:P.scrollLeft,top:P.scrollTop});typeof g.focus==="function"&&g.focus();for(g=0;g<E.length;g++){var k=E[g];k.element.scrollLeft=k.left,k.element.scrollTop=k.top}}Fh=!!kb,Ob=kb=null}finally{Qe=d,at.p=u,U.T=i}}e.current=t,Vt=sI}}function Zv(){if(Vt===sI){Vt=Qs;var e=cI;if(e!==null){Us=Ht();var t=qn,o=Us;!yt||o<=t||(Gn?Gn.run(console.timeStamp.bind(console,e,t,o,Ne,He,"secondary-light")):console.timeStamp(e,t,o,Ne,He,"secondary-light"))}e=Zs,t=_r,o=Po;var i=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||i){i=U.T,U.T=null;var u=at.p;at.p=eo;var d=Qe;Qe|=no;try{Mr=o,Tr=e,Xd(),Lv(e,t.alternate,t),Tr=Mr=null}finally{Qe=d,at.p=u,U.T=i}}e=vb,t=uI,qn=Ht(),e=t===null?e:Us,t=qn,o=zo===bb,i=kt,Vn!==null?q0(e,t,Vn,!1,i):!yt||t<=e||(i?i.run(console.timeStamp.bind(console,o?"Commit Interrupted View Transition":"Commit",e,t,Ne,He,o?"error":"secondary-dark")):console.timeStamp(o?"Commit Interrupted View Transition":"Commit",e,t,Ne,He,o?"error":"secondary-dark")),Vt=iI}}function Jv(){if(Vt===lI||Vt===iI){if(Vt===lI){var e=qn;qn=Ht();var t=qn,o=zo===bb;!yt||t<=e||(Gn?Gn.run(console.timeStamp.bind(console,o?"Interrupted View Transition":"Starting Animation",e,t,Ne,He,o?"error":"secondary-light")):console.timeStamp(o?"Interrupted View Transition":"Starting Animation",e,t,Ne,He,o?" error":"secondary-light")),zo!==bb&&(zo=oI)}Vt=Qs,RD(),e=Zs;var i=_r;t=Po,o=rI;var u=i.actualDuration!==0||(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0;u?Vt=wh:(Vt=Qs,_r=Zs=null,Kv(e,e.pendingLanes),il=0,_c=null);var d=e.pendingLanes;if(d===0&&($s=null),u||nL(e),d=C(t),i=i.stateNode,ha&&typeof ha.onCommitFiberRoot==="function")try{var m=(i.current.flags&128)===128;switch(d){case eo:var g=Ly;break;case Ro:g=Cy;break;case fn:g=er;break;case Vf:g=Iy;break;default:g=er}ha.onCommitFiberRoot(tr,i,g,m)}catch(E){cn||(cn=!0,console.error("React instrumentation encountered an error: %o",E))}if(dn&&e.memoizedUpdaters.clear(),__(),o!==null){m=U.T,g=at.p,at.p=eo,U.T=null;try{var S=e.onRecoverableError;for(i=0;i<o.length;i++){var L=o[i],O=E_(L.stack);ne(L.source,S,L.value,O)}}finally{U.T=m,at.p=g}}(Po&3)!==0&&Ou(),nn(e),d=e.pendingLanes,(t&261930)!==0&&(d&42)!==0?(lh=!0,e===Cb?Ac++:(Ac=0,Cb=e)):Ac=0,u||Vi(t,qn),Bu(0,!1)}}function E_(e){return e={componentStack:e},Object.defineProperty(e,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),e}function Kv(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,yu(t)))}function Ou(){return Qv(),Zv(),Jv(),eL()}function eL(){if(Vt!==wh)return!1;var e=Zs,t=Sb;Sb=0;var o=C(Po),i=fn===0||fn>o?fn:o;o=U.T;var u=at.p;try{at.p=i,U.T=null;var d=Lb;Lb=null,i=Zs;var m=Po;if(Vt=Qs,_r=Zs=null,Po=0,(Qe&(Xt|no))!==Kt)throw Error("Cannot flush passive effects while already rendering.");Ga(m),Ib=!0,Mh=!1;var g=0;if(Vn=null,g=Qt(),zo===oI)mu(qn,g,Gn);else{var S=qn,L=g,O=zo===xb;!yt||L<=S||(kt?kt.run(console.timeStamp.bind(console,O?"Waiting for Paint":"Waiting",S,L,Ne,He,"secondary-light")):console.timeStamp(O?"Waiting for Paint":"Waiting",S,L,Ne,He,"secondary-light"))}S=Qe,Qe|=no;var E=i.current;Xd(),Bv(E);var A=i.current;E=vb,Xd(),Rv(i,A,m,d,E),nL(i),Qe=S;var P=Qt();if(A=g,E=kt,Vn!==null?q0(A,P,Vn,!0,E):!yt||P<=A||(E?E.run(console.timeStamp.bind(console,"Remaining Effects",A,P,Ne,He,"secondary-dark")):console.timeStamp("Remaining Effects",A,P,Ne,He,"secondary-dark")),Vi(m,P),Bu(0,!1),Mh?i===_c?il++:(il=0,_c=i):il=0,Mh=Ib=!1,ha&&typeof ha.onPostCommitFiberRoot==="function")try{ha.onPostCommitFiberRoot(tr,i)}catch(ae){cn||(cn=!0,console.error("React instrumentation encountered an error: %o",ae))}var K=i.current.stateNode;return K.effectDuration=0,K.passiveEffectDuration=0,!0}finally{at.p=u,U.T=o,Kv(e,t)}}function tL(e,t,o){t=Ya(o,t),oS(t),t=gg(e.stateNode,t,2),e=Cs(e,t,2),e!==null&&(ms(e,2),nn(e))}function tt(e,t,o){if(Dr=!1,e.tag===3)tL(e,e,o);else{for(;t!==null;){if(t.tag===3){tL(t,e,o);return}if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError==="function"||typeof i.componentDidCatch==="function"&&($s===null||!$s.has(i))){e=Ya(o,e),oS(e),o=yg(2),i=Cs(t,o,2),i!==null&&(bg(o,i,t,e),ms(i,2),nn(i));return}}t=t.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
154
+
155
+ Error message:
156
+
157
+ %s`,o)}}function Ug(e,t,o){var i=e.pingCache;if(i===null){i=e.pingCache=new ZR;var u=new Set;i.set(t,u)}else u=i.get(t),u===void 0&&(u=new Set,i.set(t,u));u.has(o)||(gb=!0,u.add(o),i=B_.bind(null,e,t,o),dn&&Eu(e,o),t.then(i,i))}function B_(e,t,o){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&o,e.warmLanes&=~o,(o&127)!==0?0>mn&&(Fs=mn=Ht(),nc=th("Promise Resolved"),Ns=ah):(o&4194048)!==0&&0>yo&&(gn=yo=Ht(),ic=th("Promise Resolved"),Zy=ah),Hv()&&U.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
158
+
159
+ When testing, code that resolves suspended data should be wrapped into act(...):
160
+
161
+ act(() => {
162
+ /* finish loading suspended data */
163
+ });
164
+ /* assert on the output */
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`),dt===e&&(ke&o)===o&&(It===Gs||It===yh&&(ke&62914560)===ke&&Qt()-Lh<tI?(Qe&Xt)===Kt&&Xl(e,0):yb|=o,sl===ke&&(sl=0)),nn(e)}function aL(e,t){t===0&&(t=kl()),e=fa(e,t),e!==null&&(ms(e,t),nn(e))}function P_(e){var t=e.memoizedState,o=0;t!==null&&(o=t.retryLane),aL(e,o)}function z_(e,t){var o=0;switch(e.tag){case 31:case 13:var{stateNode:i,memoizedState:u}=e;u!==null&&(o=u.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}i!==null&&i.delete(t),aL(e,o)}function Fg(e,t,o){if((t.subtreeFlags&67117056)!==0)for(t=t.child;t!==null;){var i=e,u=t,d=u.type===zf;d=o||d,u.tag!==22?u.flags&67108864?d&&ne(u,oL,i,u):Fg(i,u,d):u.memoizedState===null&&(d&&u.flags&8192?ne(u,oL,i,u):u.subtreeFlags&67108864&&ne(u,Fg,i,u,d)),t=t.sibling}}function oL(e,t){ht(!0);try{_v(t),Pv(t),Dv(e,t.alternate,t,!1),kv(e,t,0,null,!1,0)}finally{ht(!1)}}function nL(e){var t=!0;e.current.mode&(pa|ko)||(t=!1),Fg(e,e.current,t)}function sL(e){if((Qe&Xt)===Kt){var t=e.tag;if(t===3||t===1||t===0||t===11||t===14||t===15){if(t=q(e)||"ReactComponent",Th!==null){if(Th.has(t))return;Th.add(t)}else Th=new Set([t]);ne(e,function(){console.error("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously tries to update the component. Move this work to useEffect instead.")})}}}function Eu(e,t){dn&&e.memoizedUpdaters.forEach(function(o){iu(e,o,t)})}function H_(e,t){var o=U.actQueue;return o!==null?(o.push(t),ek):vy(e,t)}function U_(e){Hv()&&U.actQueue===null&&ne(e,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
167
+
168
+ When testing, code that causes React state updates should be wrapped into act(...):
169
+
170
+ act(() => {
171
+ /* fire events that update state */
172
+ });
173
+ /* assert on the output */
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`,q(e))})}function nn(e){e!==Rr&&e.next===null&&(Rr===null?Ah=Rr=e:Rr=Rr.next=e),_h=!0,U.actQueue!==null?Mb||(Mb=!0,uL()):wb||(wb=!0,uL())}function Bu(e,t){if(!Tb&&_h){Tb=!0;do{var o=!1;for(var i=Ah;i!==null;){if(!t)if(e!==0){var u=i.pendingLanes;if(u===0)var d=0;else{var{suspendedLanes:m,pingedLanes:g}=i;d=(1<<31-ba(42|e)+1)-1,d&=u&~(m&~g),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(o=!0,rL(i,d))}else d=ke,d=Ci(i,i===dt?d:0,i.cancelPendingCommit!==null||i.timeoutHandle!==cl),(d&3)===0||Ii(i,d)||(o=!0,rL(i,d));i=i.next}}while(o);Tb=!1}}function F_(){Oc=window.event,Ng()}function Ng(){_h=Mb=wb=!1;var e=0;Js!==0&&X_()&&(e=Js);for(var t=Qt(),o=null,i=Ah;i!==null;){var u=i.next,d=iL(i,t);if(d===0)i.next=null,o===null?Ah=u:o.next=u,u===null&&(Rr=o);else if(o=i,e!==0||(d&3)!==0)_h=!0;i=u}Vt!==Qs&&Vt!==wh||Bu(e,!1),Js!==0&&(Js=0)}function iL(e,t){for(var{suspendedLanes:o,pingedLanes:i,expirationTimes:u}=e,d=e.pendingLanes&-62914561;0<d;){var m=31-ba(d),g=1<<m,S=u[m];if(S===-1){if((g&o)===0||(g&i)!==0)u[m]=sm(g,t)}else S<=t&&(e.expiredLanes|=g);d&=~g}if(t=dt,o=ke,o=Ci(e,e===t?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==cl),i=e.callbackNode,o===0||e===t&&(it===ol||it===nl)||e.cancelPendingCommit!==null)return i!==null&&qg(i),e.callbackNode=null,e.callbackPriority=0;if((o&3)===0||Ii(e,o)){if(t=o&-o,t!==e.callbackPriority||U.actQueue!==null&&i!==Ab)qg(i);else return t;switch(C(o)){case eo:case Ro:o=Cy;break;case fn:o=er;break;case Vf:o=Iy;break;default:o=er}return i=lL.bind(null,e),U.actQueue!==null?(U.actQueue.push(i),o=Ab):o=vy(o,i),e.callbackPriority=t,e.callbackNode=o,t}return i!==null&&qg(i),e.callbackPriority=2,e.callbackNode=null,2}function lL(e,t){if(lh=ih=!1,Oc=window.event,Vt!==Qs&&Vt!==wh)return e.callbackNode=null,e.callbackPriority=0,null;var o=e.callbackNode;if(zo===Ih&&(zo=xb),Ou()&&e.callbackNode!==o)return null;var i=ke;if(i=Ci(e,e===dt?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==cl),i===0)return null;return Fv(e,i,t),iL(e,Qt()),e.callbackNode!=null&&e.callbackNode===o?lL.bind(null,e):null}function rL(e,t){if(Ou())return null;ih=lh,lh=!1,Fv(e,t,!0)}function qg(e){e!==Ab&&e!==null&&_D(e)}function uL(){U.actQueue!==null&&U.actQueue.push(function(){return Ng(),null}),ck(function(){(Qe&(Xt|no))!==Kt?vy(Ly,F_):Ng()})}function Vg(){if(Js===0){var e=Qi;e===0&&(e=Ff,Ff<<=1,(Ff&261888)===0&&(Ff=256)),Js=e}return Js}function cL(e){if(e==null||typeof e==="symbol"||typeof e==="boolean")return null;if(typeof e==="function")return e;return rt(e,"action"),fu(""+e)}function dL(e,t){var o=t.ownerDocument.createElement("input");return o.name=t.name,o.value=t.value,e.id&&o.setAttribute("form",e.id),t.parentNode.insertBefore(o,t),e=new FormData(e),o.parentNode.removeChild(o),e}function N_(e,t,o,i,u){if(t==="submit"&&o&&o.stateNode===u){var d=cL((u[xa]||null).action),m=i.submitter;m&&(t=(t=m[xa]||null)?cL(t.formAction):m.getAttribute("formAction"),t!==null&&(d=t,m=null));var g=new Wf("action","action",null,i,u);e.push({event:g,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(Js!==0){var S=m?dL(u,m):new FormData(u),L={pending:!0,data:S,method:u.method,action:d};Object.freeze(L),ug(o,L,null,S)}}else typeof d==="function"&&(g.preventDefault(),S=m?dL(u,m):new FormData(u),L={pending:!0,data:S,method:u.method,action:d},Object.freeze(L),ug(o,L,d,S))},currentTarget:u}]})}}function Mf(e,t,o){e.currentTarget=o;try{t(e)}catch(i){Fy(i)}e.currentTarget=null}function fL(e,t){t=(t&4)!==0;for(var o=0;o<e.length;o++){var i=e[o];e:{var u=void 0,d=i.event;if(i=i.listeners,t)for(var m=i.length-1;0<=m;m--){var g=i[m],S=g.instance,L=g.currentTarget;if(g=g.listener,S!==u&&d.isPropagationStopped())break e;S!==null?ne(S,Mf,d,g,L):Mf(d,g,L),u=S}else for(m=0;m<i.length;m++){if(g=i[m],S=g.instance,L=g.currentTarget,g=g.listener,S!==u&&d.isPropagationStopped())break e;S!==null?ne(S,Mf,d,g,L):Mf(d,g,L),u=S}}}}function Ge(e,t){_b.has(e)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var o=t[wy];o===void 0&&(o=t[wy]=new Set);var i=e+"__bubble";o.has(i)||(hL(t,e,2,!1),o.add(i))}function jg(e,t,o){_b.has(e)&&!t&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',e);var i=0;t&&(i|=4),hL(o,e,i,t)}function Gg(e){if(!e[Dh]){e[Dh]=!0,uC.forEach(function(o){o!=="selectionchange"&&(_b.has(o)||jg(o,!1,e),jg(o,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Dh]||(t[Dh]=!0,jg("selectionchange",!1,t))}}function hL(e,t,o,i){switch(YL(t)){case eo:var u=vD;break;case Ro:u=LD;break;default:u=ly}o=u.bind(null,t,o,e),u=void 0,!Dy||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(u=!0),i?u!==void 0?e.addEventListener(t,o,{capture:!0,passive:u}):e.addEventListener(t,o,!0):u!==void 0?e.addEventListener(t,o,{passive:u}):e.addEventListener(t,o,!1)}function Yg(e,t,o,i,u){var d=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var m=i.tag;if(m===3||m===4){var g=i.stateNode.containerInfo;if(g===u)break;if(m===4)for(m=i.return;m!==null;){var S=m.tag;if((S===3||S===4)&&m.stateNode.containerInfo===u)return;m=m.return}for(;g!==null;){if(m=ie(g),m===null)return;if(S=m.tag,S===5||S===6||S===26||S===27){i=d=m;continue e}g=g.parentNode}}i=i.return}I0(function(){var L=d,O=pm(o),E=[];e:{var A=YC.get(e);if(A!==void 0){var P=Wf,K=e;switch(e){case"keypress":if(Od(o)===0)break e;case"keydown":case"keyup":P=gR;break;case"focusin":K="focus",P=Ey;break;case"focusout":K="blur",P=Ey;break;case"beforeblur":case"afterblur":P=Ey;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":P=kC;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":P=nR;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":P=xR;break;case qC:case VC:case jC:P=lR;break;case GC:P=vR;break;case"scroll":case"scrollend":P=aR;break;case"wheel":P=CR;break;case"copy":case"cut":case"paste":P=uR;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":P=EC;break;case"toggle":case"beforetoggle":P=wR}var ae=(t&4)!==0,mt=!ae&&(e==="scroll"||e==="scrollend"),Ye=ae?A!==null?A+"Capture":null:A;ae=[];for(var T=L,_;T!==null;){var k=T;if(_=k.stateNode,k=k.tag,k!==5&&k!==26&&k!==27||_===null||Ye===null||(k=hu(T,Ye),k!=null&&ae.push(Pu(T,k,_))),mt)break;T=T.return}0<ae.length&&(A=new P(A,K,null,o,O),E.push({event:A,listeners:ae}))}}if((t&7)===0){e:{if(A=e==="mouseover"||e==="pointerover",P=e==="mouseout"||e==="pointerout",A&&o!==Xu&&(K=o.relatedTarget||o.fromElement)&&(ie(K)||K[Os]))break e;if(P||A){if(A=O.window===O?O:(A=O.ownerDocument)?A.defaultView||A.parentWindow:window,P){if(K=o.relatedTarget||o.toElement,P=L,K=K?ie(K):null,K!==null&&(mt=z(K),ae=K.tag,K!==mt||ae!==5&&ae!==27&&ae!==6))K=null}else P=null,K=L;if(P!==K){if(ae=kC,k="onMouseLeave",Ye="onMouseEnter",T="mouse",e==="pointerout"||e==="pointerover")ae=EC,k="onPointerLeave",Ye="onPointerEnter",T="pointer";if(mt=P==null?A:we(P),_=K==null?A:we(K),A=new ae(k,T+"leave",P,o,O),A.target=mt,A.relatedTarget=_,k=null,ie(O)===L&&(ae=new ae(Ye,T+"enter",K,o,O),ae.target=_,ae.relatedTarget=mt,k=ae),mt=k,P&&K)t:{ae=q_,Ye=P,T=K,_=0;for(k=Ye;k;k=ae(k))_++;k=0;for(var F=T;F;F=ae(F))k++;for(;0<_-k;)Ye=ae(Ye),_--;for(;0<k-_;)T=ae(T),k--;for(;_--;){if(Ye===T||T!==null&&Ye===T.alternate){ae=Ye;break t}Ye=ae(Ye),T=ae(T)}ae=null}else ae=null;P!==null&&pL(E,A,P,ae,!1),K!==null&&mt!==null&&pL(E,mt,K,ae,!0)}}}e:{if(A=L?we(L):window,P=A.nodeName&&A.nodeName.toLowerCase(),P==="select"||P==="input"&&A.type==="file")var te=R0;else if(_0(A))if(FC)te=e_;else{te=JA;var Ce=ZA}else P=A.nodeName,!P||P.toLowerCase()!=="input"||A.type!=="checkbox"&&A.type!=="radio"?L&&du(L.elementType)&&(te=R0):te=KA;if(te&&(te=te(e,L))){D0(E,te,o,O);break e}Ce&&Ce(e,A,L),e==="focusout"&&L&&A.type==="number"&&L.memoizedProps.value!=null&&rm(A,"number",A.value)}switch(Ce=L?we(L):window,e){case"focusin":if(_0(Ce)||Ce.contentEditable==="true")rr=Ce,Py=L,ec=null;break;case"focusout":ec=Py=rr=null;break;case"mousedown":zy=!0;break;case"contextmenu":case"mouseup":case"dragend":zy=!1,H0(E,o,O);break;case"selectionchange":if(_R)break;case"keydown":case"keyup":H0(E,o,O)}var pe;if(By)e:{switch(e){case"compositionstart":var ue="onCompositionStart";break e;case"compositionend":ue="onCompositionEnd";break e;case"compositionupdate":ue="onCompositionUpdate";break e}ue=void 0}else lr?T0(e,o)&&(ue="onCompositionEnd"):e==="keydown"&&o.keyCode===BC&&(ue="onCompositionStart");if(ue&&(PC&&o.locale!=="ko"&&(lr||ue!=="onCompositionStart"?ue==="onCompositionEnd"&&lr&&(pe=w0()):(Es=O,Ry=("value"in Es)?Es.value:Es.textContent,lr=!0)),Ce=Tf(L,ue),0<Ce.length&&(ue=new OC(ue,e,null,o,O),E.push({event:ue,listeners:Ce}),pe?ue.data=pe:(pe=A0(o),pe!==null&&(ue.data=pe)))),pe=TR?XA(e,o):WA(e,o))ue=Tf(L,"onBeforeInput"),0<ue.length&&(Ce=new dR("onBeforeInput","beforeinput",null,o,O),E.push({event:Ce,listeners:ue}),Ce.data=pe);N_(E,e,L,o,O)}fL(E,t)})}function Pu(e,t,o){return{instance:e,listener:t,currentTarget:o}}function Tf(e,t){for(var o=t+"Capture",i=[];e!==null;){var u=e,d=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||d===null||(u=hu(e,o),u!=null&&i.unshift(Pu(e,u,d)),u=hu(e,t),u!=null&&i.push(Pu(e,u,d))),e.tag===3)return i;e=e.return}return[]}function q_(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e?e:null}function pL(e,t,o,i,u){for(var d=t._reactName,m=[];o!==null&&o!==i;){var g=o,S=g.alternate,L=g.stateNode;if(g=g.tag,S!==null&&S===i)break;g!==5&&g!==26&&g!==27||L===null||(S=L,u?(L=hu(o,d),L!=null&&m.unshift(Pu(o,L,S))):u||(L=hu(o,d),L!=null&&m.push(Pu(o,L,S)))),o=o.return}m.length!==0&&e.push({event:t,listeners:m})}function Xg(e,t){VA(e,t),e!=="input"&&e!=="textarea"&&e!=="select"||t==null||t.value!==null||DC||(DC=!0,e==="select"&&t.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",e):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e));var o={registrationNameDependencies:ji,possibleRegistrationNames:My};du(e)||typeof t.is==="string"||GA(e,t,o),t.contentEditable&&!t.suppressContentEditableWarning&&t.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function $t(e,t,o,i){t!==o&&(o=As(o),As(t)!==o&&(i[e]=t))}function V_(e,t,o){t.forEach(function(i){o[yL(i)]=i==="style"?$g(e):e.getAttribute(i)})}function sn(e,t){t===!1?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",e,e,e):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)}function mL(e,t){return e=e.namespaceURI===Gf||e.namespaceURI===or?e.ownerDocument.createElementNS(e.namespaceURI,e.tagName):e.ownerDocument.createElement(e.tagName),e.innerHTML=t,e.innerHTML}function As(e){return ps(e)&&(console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",Li(e)),Wt(e)),(typeof e==="string"?e:""+e).replace(tk,`
176
+ `).replace(ak,"")}function gL(e,t){return t=As(t),As(e)===t?!0:!1}function ut(e,t,o,i,u,d){switch(o){case"children":if(typeof i==="string")kd(i,t,!1),t==="body"||t==="textarea"&&i===""||cu(e,i);else if(typeof i==="number"||typeof i==="bigint")kd(""+i,t,!1),t!=="body"&&cu(e,""+i);break;case"className":_d(e,"class",i);break;case"tabIndex":_d(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":_d(e,o,i);break;case"style":v0(e,i,d);break;case"data":if(t!=="object"){_d(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||o!=="href")){o==="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.',o,o):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.',o,o),e.removeAttribute(o);break}if(i==null||typeof i==="function"||typeof i==="symbol"||typeof i==="boolean"){e.removeAttribute(o);break}rt(i,o),i=fu(""+i),e.setAttribute(o,i);break;case"action":case"formAction":if(i!=null&&(t==="form"?o==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof i==="function"&&(u.encType==null&&u.method==null||Oh||(Oh=!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||kh||(kh=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):t==="input"||t==="button"?o==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):t!=="input"||u.type==="submit"||u.type==="image"||Rh?t!=="button"||u.type==null||u.type==="submit"||Rh?typeof i==="function"&&(u.name==null||mI||(mI=!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||Oh||(Oh=!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||kh||(kh=!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."))):(Rh=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(Rh=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):o==="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 i==="function"){e.setAttribute(o,"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 d==="function"&&(o==="formAction"?(t!=="input"&&ut(e,t,"name",u.name,u,null),ut(e,t,"formEncType",u.formEncType,u,null),ut(e,t,"formMethod",u.formMethod,u,null),ut(e,t,"formTarget",u.formTarget,u,null)):(ut(e,t,"encType",u.encType,u,null),ut(e,t,"method",u.method,u,null),ut(e,t,"target",u.target,u,null)));if(i==null||typeof i==="symbol"||typeof i==="boolean"){e.removeAttribute(o);break}rt(i,o),i=fu(""+i),e.setAttribute(o,i);break;case"onClick":i!=null&&(typeof i!=="function"&&sn(o,i),e.onclick=_n);break;case"onScroll":i!=null&&(typeof i!=="function"&&sn(o,i),Ge("scroll",e));break;case"onScrollEnd":i!=null&&(typeof i!=="function"&&sn(o,i),Ge("scrollend",e));break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!=="object"||!("__html"in i))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(o=i.__html,o!=null){if(u.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=o}}break;case"multiple":e.multiple=i&&typeof i!=="function"&&typeof i!=="symbol";break;case"muted":e.muted=i&&typeof i!=="function"&&typeof i!=="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i==="function"||typeof i==="boolean"||typeof i==="symbol"){e.removeAttribute("xlink:href");break}rt(i,o),o=fu(""+i),e.setAttributeNS(ll,"xlink:href",o);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!=="function"&&typeof i!=="symbol"?(rt(i,o),e.setAttribute(o,""+i)):e.removeAttribute(o);break;case"inert":i!==""||Eh[o]||(Eh[o]=!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.",o));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":i&&typeof i!=="function"&&typeof i!=="symbol"?e.setAttribute(o,""):e.removeAttribute(o);break;case"capture":case"download":i===!0?e.setAttribute(o,""):i!==!1&&i!=null&&typeof i!=="function"&&typeof i!=="symbol"?(rt(i,o),e.setAttribute(o,i)):e.removeAttribute(o);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!=="function"&&typeof i!=="symbol"&&!isNaN(i)&&1<=i?(rt(i,o),e.setAttribute(o,i)):e.removeAttribute(o);break;case"rowSpan":case"start":i==null||typeof i==="function"||typeof i==="symbol"||isNaN(i)?e.removeAttribute(o):(rt(i,o),e.setAttribute(o,i));break;case"popover":Ge("beforetoggle",e),Ge("toggle",e),Ad(e,"popover",i);break;case"xlinkActuate":An(e,ll,"xlink:actuate",i);break;case"xlinkArcrole":An(e,ll,"xlink:arcrole",i);break;case"xlinkRole":An(e,ll,"xlink:role",i);break;case"xlinkShow":An(e,ll,"xlink:show",i);break;case"xlinkTitle":An(e,ll,"xlink:title",i);break;case"xlinkType":An(e,ll,"xlink:type",i);break;case"xmlBase":An(e,Db,"xml:base",i);break;case"xmlLang":An(e,Db,"xml:lang",i);break;case"xmlSpace":An(e,Db,"xml:space",i);break;case"is":d!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),Ad(e,"is",i);break;case"innerText":case"textContent":break;case"popoverTarget":gI||i==null||typeof i!=="object"||(gI=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",i));default:!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N"?(o=L0(o),Ad(e,o,i)):ji.hasOwnProperty(o)&&i!=null&&typeof i!=="function"&&sn(o,i)}}function Wg(e,t,o,i,u,d){switch(o){case"style":v0(e,i,d);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!=="object"||!("__html"in i))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(o=i.__html,o!=null){if(u.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=o}}break;case"children":typeof i==="string"?cu(e,i):(typeof i==="number"||typeof i==="bigint")&&cu(e,""+i);break;case"onScroll":i!=null&&(typeof i!=="function"&&sn(o,i),Ge("scroll",e));break;case"onScrollEnd":i!=null&&(typeof i!=="function"&&sn(o,i),Ge("scrollend",e));break;case"onClick":i!=null&&(typeof i!=="function"&&sn(o,i),e.onclick=_n);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(ji.hasOwnProperty(o))i!=null&&typeof i!=="function"&&sn(o,i);else e:{if(o[0]==="o"&&o[1]==="n"&&(u=o.endsWith("Capture"),t=o.slice(2,u?o.length-7:void 0),d=e[xa]||null,d=d!=null?d[o]:null,typeof d==="function"&&e.removeEventListener(t,d,u),typeof i==="function")){typeof d!=="function"&&d!==null&&(o in e?e[o]=null:e.hasAttribute(o)&&e.removeAttribute(o)),e.addEventListener(t,i,u);break e}o in e?e[o]=i:i===!0?e.setAttribute(o,""):Ad(e,o,i)}}}function oa(e,t,o){switch(Xg(t,o),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ge("error",e),Ge("load",e);var i=!1,u=!1,d;for(d in o)if(o.hasOwnProperty(d)){var m=o[d];if(m!=null)switch(d){case"src":i=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:ut(e,t,d,m,o,null)}}u&&ut(e,t,"srcSet",o.srcSet,o,null),i&&ut(e,t,"src",o.src,o,null);return;case"input":ys("input",o),Ge("invalid",e);var g=d=m=u=null,S=null,L=null;for(i in o)if(o.hasOwnProperty(i)){var O=o[i];if(O!=null)switch(i){case"name":u=O;break;case"type":m=O;break;case"checked":S=O;break;case"defaultChecked":L=O;break;case"value":d=O;break;case"defaultValue":g=O;break;case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:ut(e,t,i,O,o,null)}}s0(e,o),i0(e,d,g,S,L,m,u,!1);return;case"select":ys("select",o),Ge("invalid",e),i=m=d=null;for(u in o)if(o.hasOwnProperty(u)&&(g=o[u],g!=null))switch(u){case"value":d=g;break;case"defaultValue":m=g;break;case"multiple":i=g;default:ut(e,t,u,g,o,null)}u0(e,o),t=d,o=m,e.multiple=!!i,t!=null?El(e,!!i,t,!1):o!=null&&El(e,!!i,o,!0);return;case"textarea":ys("textarea",o),Ge("invalid",e),d=u=i=null;for(m in o)if(o.hasOwnProperty(m)&&(g=o[m],g!=null))switch(m){case"value":i=g;break;case"defaultValue":u=g;break;case"children":d=g;break;case"dangerouslySetInnerHTML":if(g!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:ut(e,t,m,g,o,null)}c0(e,o),f0(e,i,u,d);return;case"option":l0(e,o);for(S in o)if(o.hasOwnProperty(S)&&(i=o[S],i!=null))switch(S){case"selected":e.selected=i&&typeof i!=="function"&&typeof i!=="symbol";break;default:ut(e,t,S,i,o,null)}return;case"dialog":Ge("beforetoggle",e),Ge("toggle",e),Ge("cancel",e),Ge("close",e);break;case"iframe":case"object":Ge("load",e);break;case"video":case"audio":for(i=0;i<Dc.length;i++)Ge(Dc[i],e);break;case"image":Ge("error",e),Ge("load",e);break;case"details":Ge("toggle",e);break;case"embed":case"source":case"link":Ge("error",e),Ge("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(L in o)if(o.hasOwnProperty(L)&&(i=o[L],i!=null))switch(L){case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:ut(e,t,L,i,o,null)}return;default:if(du(t)){for(O in o)o.hasOwnProperty(O)&&(i=o[O],i!==void 0&&Wg(e,t,O,i,o,void 0));return}}for(g in o)o.hasOwnProperty(g)&&(i=o[g],i!=null&&ut(e,t,g,i,o,null))}function j_(e,t,o,i){switch(Xg(t,i),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,d=null,m=null,g=null,S=null,L=null,O=null;for(P in o){var E=o[P];if(o.hasOwnProperty(P)&&E!=null)switch(P){case"checked":break;case"value":break;case"defaultValue":S=E;default:i.hasOwnProperty(P)||ut(e,t,P,null,i,E)}}for(var A in i){var P=i[A];if(E=o[A],i.hasOwnProperty(A)&&(P!=null||E!=null))switch(A){case"type":d=P;break;case"name":u=P;break;case"checked":L=P;break;case"defaultChecked":O=P;break;case"value":m=P;break;case"defaultValue":g=P;break;case"children":case"dangerouslySetInnerHTML":if(P!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:P!==E&&ut(e,t,A,P,i,E)}}t=o.type==="checkbox"||o.type==="radio"?o.checked!=null:o.value!=null,i=i.type==="checkbox"||i.type==="radio"?i.checked!=null:i.value!=null,t||!i||pI||(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"),pI=!0),!t||i||hI||(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"),hI=!0),lm(e,m,g,S,L,O,d,u);return;case"select":P=m=g=A=null;for(d in o)if(S=o[d],o.hasOwnProperty(d)&&S!=null)switch(d){case"value":break;case"multiple":P=S;default:i.hasOwnProperty(d)||ut(e,t,d,null,i,S)}for(u in i)if(d=i[u],S=o[u],i.hasOwnProperty(u)&&(d!=null||S!=null))switch(u){case"value":A=d;break;case"defaultValue":g=d;break;case"multiple":m=d;default:d!==S&&ut(e,t,u,d,i,S)}i=g,t=m,o=P,A!=null?El(e,!!t,A,!1):!!o!==!!t&&(i!=null?El(e,!!t,i,!0):El(e,!!t,t?[]:"",!1));return;case"textarea":P=A=null;for(g in o)if(u=o[g],o.hasOwnProperty(g)&&u!=null&&!i.hasOwnProperty(g))switch(g){case"value":break;case"children":break;default:ut(e,t,g,null,i,u)}for(m in i)if(u=i[m],d=o[m],i.hasOwnProperty(m)&&(u!=null||d!=null))switch(m){case"value":A=u;break;case"defaultValue":P=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:u!==d&&ut(e,t,m,u,i,d)}d0(e,A,P);return;case"option":for(var K in o)if(A=o[K],o.hasOwnProperty(K)&&A!=null&&!i.hasOwnProperty(K))switch(K){case"selected":e.selected=!1;break;default:ut(e,t,K,null,i,A)}for(S in i)if(A=i[S],P=o[S],i.hasOwnProperty(S)&&A!==P&&(A!=null||P!=null))switch(S){case"selected":e.selected=A&&typeof A!=="function"&&typeof A!=="symbol";break;default:ut(e,t,S,A,i,P)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ae in o)A=o[ae],o.hasOwnProperty(ae)&&A!=null&&!i.hasOwnProperty(ae)&&ut(e,t,ae,null,i,A);for(L in i)if(A=i[L],P=o[L],i.hasOwnProperty(L)&&A!==P&&(A!=null||P!=null))switch(L){case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:ut(e,t,L,A,i,P)}return;default:if(du(t)){for(var mt in o)A=o[mt],o.hasOwnProperty(mt)&&A!==void 0&&!i.hasOwnProperty(mt)&&Wg(e,t,mt,void 0,i,A);for(O in i)A=i[O],P=o[O],!i.hasOwnProperty(O)||A===P||A===void 0&&P===void 0||Wg(e,t,O,A,i,P);return}}for(var Ye in o)A=o[Ye],o.hasOwnProperty(Ye)&&A!=null&&!i.hasOwnProperty(Ye)&&ut(e,t,Ye,null,i,A);for(E in i)A=i[E],P=o[E],!i.hasOwnProperty(E)||A===P||A==null&&P==null||ut(e,t,E,A,i,P)}function yL(e){switch(e){case"class":return"className";case"for":return"htmlFor";default:return e}}function $g(e){var t={};e=e.style;for(var o=0;o<e.length;o++){var i=e[o];t[i]=e.getPropertyValue(i)}return t}function bL(e,t,o){if(t!=null&&typeof t!=="object")console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var i,u=i="",d;for(d in t)if(t.hasOwnProperty(d)){var m=t[d];m!=null&&typeof m!=="boolean"&&m!==""&&(d.indexOf("--")===0?(su(m,d),i+=u+d+":"+(""+m).trim()):typeof m!=="number"||m===0||AC.has(d)?(su(m,d),i+=u+d.replace(CC,"-$1").toLowerCase().replace(IC,"-ms-")+":"+(""+m).trim()):i+=u+d.replace(CC,"-$1").toLowerCase().replace(IC,"-ms-")+":"+m+"px",u=";")}i=i||null,t=e.getAttribute("style"),t!==i&&(i=As(i),As(t)!==i&&(o.style=$g(e)))}}function uo(e,t,o,i,u,d){if(u.delete(o),e=e.getAttribute(o),e===null)switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":return}else if(i!=null)switch(typeof i){case"function":case"symbol":case"boolean":break;default:if(rt(i,t),e===""+i)return}$t(t,e,i,d)}function xL(e,t,o,i,u,d){if(u.delete(o),e=e.getAttribute(o),e===null){switch(typeof i){case"function":case"symbol":return}if(!i)return}else switch(typeof i){case"function":case"symbol":break;default:if(i)return}$t(t,e,i,d)}function Qg(e,t,o,i,u,d){if(u.delete(o),e=e.getAttribute(o),e===null)switch(typeof i){case"undefined":case"function":case"symbol":return}else if(i!=null)switch(typeof i){case"function":case"symbol":break;default:if(rt(i,o),e===""+i)return}$t(t,e,i,d)}function SL(e,t,o,i,u,d){if(u.delete(o),e=e.getAttribute(o),e===null)switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(i))return}else if(i!=null)switch(typeof i){case"function":case"symbol":case"boolean":break;default:if(!isNaN(i)&&(rt(i,t),e===""+i))return}$t(t,e,i,d)}function Zg(e,t,o,i,u,d){if(u.delete(o),e=e.getAttribute(o),e===null)switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":return}else if(i!=null)switch(typeof i){case"function":case"symbol":case"boolean":break;default:if(rt(i,t),o=fu(""+i),e===o)return}$t(t,e,i,d)}function vL(e,t,o,i){for(var u={},d=new Set,m=e.attributes,g=0;g<m.length;g++)switch(m[g].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:d.add(m[g].name)}if(du(t)){for(var S in o)if(o.hasOwnProperty(S)){var L=o[S];if(L!=null){if(ji.hasOwnProperty(S))typeof L!=="function"&&sn(S,L);else if(o.suppressHydrationWarning!==!0)switch(S){case"children":typeof L!=="string"&&typeof L!=="number"||$t("children",e.textContent,L,u);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":m=e.innerHTML,L=L?L.__html:void 0,L!=null&&(L=mL(e,L),$t(S,m,L,u));continue;case"style":d.delete(S),bL(e,L,u);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":d.delete(S.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",S);continue;case"className":d.delete("class"),m=a0(e,"class",L),$t("className",m,L,u);continue;default:i.context===Zn&&t!=="svg"&&t!=="math"?d.delete(S.toLowerCase()):d.delete(S),m=a0(e,S,L),$t(S,m,L,u)}}}}else for(L in o)if(o.hasOwnProperty(L)&&(S=o[L],S!=null)){if(ji.hasOwnProperty(L))typeof S!=="function"&&sn(L,S);else if(o.suppressHydrationWarning!==!0)switch(L){case"children":typeof S!=="string"&&typeof S!=="number"||$t("children",e.textContent,S,u);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":m=e.innerHTML,S=S?S.__html:void 0,S!=null&&(S=mL(e,S),m!==S&&(u[L]={__html:m}));continue;case"className":uo(e,L,"class",S,d,u);continue;case"tabIndex":uo(e,L,"tabindex",S,d,u);continue;case"style":d.delete(L),bL(e,S,u);continue;case"multiple":d.delete(L),$t(L,e.multiple,S,u);continue;case"muted":d.delete(L),$t(L,e.muted,S,u);continue;case"autoFocus":d.delete("autofocus"),$t(L,e.autofocus,S,u);continue;case"data":if(t!=="object"){d.delete(L),m=e.getAttribute("data"),$t(L,m,S,u);continue}case"src":case"href":if(!(S!==""||t==="a"&&L==="href"||t==="object"&&L==="data")){L==="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.',L,L):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.',L,L);continue}Zg(e,L,L,S,d,u);continue;case"action":case"formAction":if(m=e.getAttribute(L),typeof S==="function"){d.delete(L.toLowerCase()),L==="formAction"?(d.delete("name"),d.delete("formenctype"),d.delete("formmethod"),d.delete("formtarget")):(d.delete("enctype"),d.delete("method"),d.delete("target"));continue}else if(m===ok){d.delete(L.toLowerCase()),$t(L,"function",S,u);continue}Zg(e,L,L.toLowerCase(),S,d,u);continue;case"xlinkHref":Zg(e,L,"xlink:href",S,d,u);continue;case"contentEditable":Qg(e,L,"contenteditable",S,d,u);continue;case"spellCheck":Qg(e,L,"spellcheck",S,d,u);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":Qg(e,L,L,S,d,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":xL(e,L,L.toLowerCase(),S,d,u);continue;case"capture":case"download":e:{g=e;var O=m=L,E=u;if(d.delete(O),g=g.getAttribute(O),g===null)switch(typeof S){case"undefined":case"function":case"symbol":break e;default:if(S===!1)break e}else if(S!=null)switch(typeof S){case"function":case"symbol":break;case"boolean":if(S===!0&&g==="")break e;break;default:if(rt(S,m),g===""+S)break e}$t(m,g,S,E)}continue;case"cols":case"rows":case"size":case"span":e:{if(g=e,O=m=L,E=u,d.delete(O),g=g.getAttribute(O),g===null)switch(typeof S){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(S)||1>S)break e}else if(S!=null)switch(typeof S){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(S)||1>S)&&(rt(S,m),g===""+S))break e}$t(m,g,S,E)}continue;case"rowSpan":SL(e,L,"rowspan",S,d,u);continue;case"start":SL(e,L,L,S,d,u);continue;case"xHeight":uo(e,L,"x-height",S,d,u);continue;case"xlinkActuate":uo(e,L,"xlink:actuate",S,d,u);continue;case"xlinkArcrole":uo(e,L,"xlink:arcrole",S,d,u);continue;case"xlinkRole":uo(e,L,"xlink:role",S,d,u);continue;case"xlinkShow":uo(e,L,"xlink:show",S,d,u);continue;case"xlinkTitle":uo(e,L,"xlink:title",S,d,u);continue;case"xlinkType":uo(e,L,"xlink:type",S,d,u);continue;case"xmlBase":uo(e,L,"xml:base",S,d,u);continue;case"xmlLang":uo(e,L,"xml:lang",S,d,u);continue;case"xmlSpace":uo(e,L,"xml:space",S,d,u);continue;case"inert":S!==""||Eh[L]||(Eh[L]=!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.",L)),xL(e,L,L,S,d,u);continue;default:if(!(2<L.length)||L[0]!=="o"&&L[0]!=="O"||L[1]!=="n"&&L[1]!=="N"){g=L0(L),m=!1,i.context===Zn&&t!=="svg"&&t!=="math"?d.delete(g.toLowerCase()):(O=L.toLowerCase(),O=Yf.hasOwnProperty(O)?Yf[O]||null:null,O!==null&&O!==L&&(m=!0,d.delete(O)),d.delete(g));e:if(O=e,E=g,g=S,lu(E))if(O.hasAttribute(E))O=O.getAttribute(E),rt(g,E),g=O===""+g?g:O;else{switch(typeof g){case"function":case"symbol":break e;case"boolean":if(O=E.toLowerCase().slice(0,5),O!=="data-"&&O!=="aria-")break e}g=g===void 0?void 0:null}else g=void 0;m||$t(L,g,S,u)}}}return 0<d.size&&o.suppressHydrationWarning!==!0&&V_(e,d,u),Object.keys(u).length===0?null:u}function G_(e,t){switch(e.length){case 0:return"";case 1:return e[0];case 2:return e[0]+" "+t+" "+e[1];default:return e.slice(0,-1).join(", ")+", "+t+" "+e[e.length-1]}}function LL(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Y_(){if(typeof performance.getEntriesByType==="function"){for(var e=0,t=0,o=performance.getEntriesByType("resource"),i=0;i<o.length;i++){var u=o[i],d=u.transferSize,m=u.initiatorType,g=u.duration;if(d&&g&&LL(m)){m=0,g=u.responseEnd;for(i+=1;i<o.length;i++){var S=o[i],L=S.startTime;if(L>g)break;var{transferSize:O,initiatorType:E}=S;O&&LL(E)&&(S=S.responseEnd,m+=O*(S<g?1:(g-L)/(S-L)))}if(--i,t+=8*(d+m)/(u.duration/1000),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==="number")?e:5}function Af(e){return e.nodeType===9?e:e.ownerDocument}function CL(e){switch(e){case or:return Or;case Gf:return Ph;default:return Zn}}function IL(e,t){if(e===Zn)switch(t){case"svg":return Or;case"math":return Ph;default:return Zn}return e===Or&&t==="foreignObject"?Zn:e}function Jg(e,t){return e==="textarea"||e==="noscript"||typeof t.children==="string"||typeof t.children==="number"||typeof t.children==="bigint"||typeof t.dangerouslySetInnerHTML==="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}function X_(){var e=window.event;if(e&&e.type==="popstate"){if(e===Eb)return!1;return Eb=e,!0}return Eb=null,!1}function zu(){var e=window.event;return e&&e!==Oc?e.type:null}function Hu(){var e=window.event;return e&&e!==Oc?e.timeStamp:-1.1}function W_(e){setTimeout(function(){throw e})}function $_(e,t,o){switch(t){case"button":case"input":case"select":case"textarea":o.autoFocus&&e.focus();break;case"img":o.src?e.src=o.src:o.srcSet&&(e.srcset=o.srcSet)}}function Q_(){}function Z_(e,t,o,i){j_(e,t,o,i),e[xa]=i}function wL(e){cu(e,"")}function J_(e,t,o){e.nodeValue=o}function ML(e){if(!e.__reactWarnedAboutChildrenConflict){var t=e[xa]||null;if(t!==null){var o=Ie(e);o!==null&&(typeof t.children==="string"||typeof t.children==="number"?(e.__reactWarnedAboutChildrenConflict=!0,ne(o,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "children" text content using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})):t.dangerouslySetInnerHTML!=null&&(e.__reactWarnedAboutChildrenConflict=!0,ne(o,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 _s(e){return e==="head"}function K_(e,t){e.removeChild(t)}function eD(e,t){(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e).removeChild(t)}function TL(e,t){var o=t,i=0;do{var u=o.nextSibling;if(e.removeChild(o),u&&u.nodeType===8)if(o=u.data,o===kc||o===Bh){if(i===0){e.removeChild(u),Zl(t);return}i--}else if(o===Rc||o===Ks||o===ul||o===kr||o===rl)i++;else if(o===sk)Uu(e.ownerDocument.documentElement);else if(o===lk){o=e.ownerDocument.head,Uu(o);for(var d=o.firstChild;d;){var{nextSibling:m,nodeName:g}=d;d[Yu]||g==="SCRIPT"||g==="STYLE"||g==="LINK"&&d.rel.toLowerCase()==="stylesheet"||o.removeChild(d),d=m}}else o===ik&&Uu(e.ownerDocument.body);o=u}while(o);Zl(t)}function AL(e,t){var o=e;e=0;do{var i=o.nextSibling;if(o.nodeType===1?t?(o._stashedDisplay=o.style.display,o.style.display="none"):(o.style.display=o._stashedDisplay||"",o.getAttribute("style")===""&&o.removeAttribute("style")):o.nodeType===3&&(t?(o._stashedText=o.nodeValue,o.nodeValue=""):o.nodeValue=o._stashedText||""),i&&i.nodeType===8)if(o=i.data,o===kc)if(e===0)break;else e--;else o!==Rc&&o!==Ks&&o!==ul&&o!==kr||e++;o=i}while(o)}function tD(e){AL(e,!0)}function aD(e){e=e.style,typeof e.setProperty==="function"?e.setProperty("display","none","important"):e.display="none"}function oD(e){e.nodeValue=""}function nD(e){AL(e,!1)}function sD(e,t){t=t[rk],t=t!==void 0&&t!==null&&t.hasOwnProperty("display")?t.display:null,e.style.display=t==null||typeof t==="boolean"?"":(""+t).trim()}function iD(e,t){e.nodeValue=t}function Kg(e){var t=e.firstChild;t&&t.nodeType===10&&(t=t.nextSibling);for(;t;){var o=t;switch(t=t.nextSibling,o.nodeName){case"HTML":case"HEAD":case"BODY":Kg(o),ee(o);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(o.rel.toLowerCase()==="stylesheet")continue}e.removeChild(o)}}function lD(e,t,o,i){for(;e.nodeType===1;){var u=o;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(!i)if(t==="input"&&e.type==="hidden"){rt(u.name,"name");var d=u.name==null?null:""+u.name;if(u.type==="hidden"&&e.getAttribute("name")===d)return e}else return e;else if(!e[Yu])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(d=e.getAttribute("rel"),d==="stylesheet"&&e.hasAttribute("data-precedence"))break;else if(d!==u.rel||e.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||e.getAttribute("title")!==(u.title==null?null:u.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(d=e.getAttribute("src"),(d!==(u.src==null?null:u.src)||e.getAttribute("type")!==(u.type==null?null:u.type)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&d&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}if(e=Za(e.nextSibling),e===null)break}return null}function rD(e,t,o){if(t==="")return null;for(;e.nodeType!==3;){if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!o)return null;if(e=Za(e.nextSibling),e===null)return null}return e}function _L(e,t){for(;e.nodeType!==8;){if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t)return null;if(e=Za(e.nextSibling),e===null)return null}return e}function ey(e){return e.data===Ks||e.data===ul}function ty(e){return e.data===kr||e.data===Ks&&e.ownerDocument.readyState!==bI}function uD(e,t){var o=e.ownerDocument;if(e.data===ul)e._reactRetry=t;else if(e.data!==Ks||o.readyState!==bI)t();else{var i=function(){t(),o.removeEventListener("DOMContentLoaded",i)};o.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function Za(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===Rc||t===kr||t===Ks||t===ul||t===rl||t===Rb||t===yI)break;if(t===kc||t===Bh)return null}}return e}function DL(e){if(e.nodeType===1){for(var t=e.nodeName.toLowerCase(),o={},i=e.attributes,u=0;u<i.length;u++){var d=i[u];o[yL(d.name)]=d.name.toLowerCase()==="style"?$g(e):d.value}return{type:t,props:o}}return e.nodeType===8?e.data===rl?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:e.nodeValue}function RL(e,t,o){return o===null||o[nk]!==!0?(e.nodeValue===t?e=null:(t=As(t),e=As(e.nodeValue)===t?null:e.nodeValue),e):null}function ay(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var o=e.data;if(o===kc||o===Bh){if(t===0)return Za(e.nextSibling);t--}else o!==Rc&&o!==kr&&o!==Ks&&o!==ul&&o!==rl||t++}e=e.nextSibling}return null}function kL(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var o=e.data;if(o===Rc||o===kr||o===Ks||o===ul||o===rl){if(t===0)return e;t--}else o!==kc&&o!==Bh||t++}e=e.previousSibling}return null}function cD(e){Zl(e)}function dD(e){Zl(e)}function fD(e){Zl(e)}function OL(e,t,o,i,u){switch(u&&hm(e,i.ancestorInfo),t=Af(o),e){case"html":if(e=t.documentElement,!e)throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"head":if(e=t.head,!e)throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"body":if(e=t.body,!e)throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return e;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function hD(e,t,o,i){if(!o[Os]&&Ie(o)){var u=o.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(e){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(u=o.attributes;u.length;)o.removeAttributeNode(u[0]);oa(o,e,t),o[na]=i,o[xa]=t}function Uu(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ee(e)}function _f(e){return typeof e.getRootNode==="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}function EL(e,t,o){var i=Er;if(i&&typeof t==="string"&&t){var u=ro(t);u='link[rel="'+e+'"][href="'+u+'"]',typeof o==="string"&&(u+='[crossorigin="'+o+'"]'),II.has(u)||(II.add(u),e={rel:e,crossOrigin:o,href:t},i.querySelector(u)===null&&(t=i.createElement("link"),oa(t,"link",e),me(t),i.head.appendChild(t)))}}function BL(e,t,o,i){var u=(u=Rs.current)?_f(u):null;if(!u)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(e){case"meta":case"title":return null;case"style":return typeof o.precedence==="string"&&typeof o.href==="string"?(o=$l(o.href),t=Ze(u).hoistableStyles,i=t.get(o),i||(i={type:"style",instance:null,count:0,state:null},t.set(o,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(o.rel==="stylesheet"&&typeof o.href==="string"&&typeof o.precedence==="string"){e=$l(o.href);var d=Ze(u).hoistableStyles,m=d.get(e);if(!m&&(u=u.ownerDocument||u,m={type:"stylesheet",instance:null,count:0,state:{loading:dl,preload:null}},d.set(e,m),(d=u.querySelector(Fu(e)))&&!d._p&&(m.instance=d,m.state.loading=Ec|vo),!Lo.has(e))){var g={rel:"preload",as:"style",href:o.href,crossOrigin:o.crossOrigin,integrity:o.integrity,media:o.media,hrefLang:o.hrefLang,referrerPolicy:o.referrerPolicy};Lo.set(e,g),d||pD(u,e,g,m.state)}if(t&&i===null)throw o=`
177
+
178
+ - `+Df(t)+`
179
+ + `+Df(o),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."+o);return m}if(t&&i!==null)throw o=`
180
+
181
+ - `+Df(t)+`
182
+ + `+Df(o),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."+o);return null;case"script":return t=o.async,o=o.src,typeof o==="string"&&t&&typeof t!=="function"&&typeof t!=="symbol"?(o=Ql(o),t=Ze(u).hoistableScripts,i=t.get(o),i||(i={type:"script",instance:null,count:0,state:null},t.set(o,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+e+'". this is a bug in React.')}}function Df(e){var t=0,o="<link";return typeof e.rel==="string"?(t++,o+=' rel="'+e.rel+'"'):Do.call(e,"rel")&&(t++,o+=' rel="'+(e.rel===null?"null":"invalid type "+typeof e.rel)+'"'),typeof e.href==="string"?(t++,o+=' href="'+e.href+'"'):Do.call(e,"href")&&(t++,o+=' href="'+(e.href===null?"null":"invalid type "+typeof e.href)+'"'),typeof e.precedence==="string"?(t++,o+=' precedence="'+e.precedence+'"'):Do.call(e,"precedence")&&(t++,o+=" precedence={"+(e.precedence===null?"null":"invalid type "+typeof e.precedence)+"}"),Object.getOwnPropertyNames(e).length>t&&(o+=" ..."),o+" />"}function $l(e){return'href="'+ro(e)+'"'}function Fu(e){return'link[rel="stylesheet"]['+e+"]"}function PL(e){return ze({},e,{"data-precedence":e.precedence,precedence:null})}function pD(e,t,o,i){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?i.loading=Ec:(t=e.createElement("link"),i.preload=t,t.addEventListener("load",function(){return i.loading|=Ec}),t.addEventListener("error",function(){return i.loading|=LI}),oa(t,"link",o),me(t),e.head.appendChild(t))}function Ql(e){return'[src="'+ro(e)+'"]'}function Nu(e){return"script[async]"+e}function zL(e,t,o){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+ro(o.href)+'"]');if(i)return t.instance=i,me(i),i;var u=ze({},o,{"data-href":o.href,"data-precedence":o.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),me(i),oa(i,"style",u),Rf(i,o.precedence,e),t.instance=i;case"stylesheet":u=$l(o.href);var d=e.querySelector(Fu(u));if(d)return t.state.loading|=vo,t.instance=d,me(d),d;i=PL(o),(u=Lo.get(u))&&oy(i,u),d=(e.ownerDocument||e).createElement("link"),me(d);var m=d;return m._p=new Promise(function(g,S){m.onload=g,m.onerror=S}),oa(d,"link",i),t.state.loading|=vo,Rf(d,o.precedence,e),t.instance=d;case"script":if(d=Ql(o.src),u=e.querySelector(Nu(d)))return t.instance=u,me(u),u;if(i=o,u=Lo.get(d))i=ze({},o),ny(i,u);return e=e.ownerDocument||e,u=e.createElement("script"),me(u),oa(u,"link",i),e.head.appendChild(u),t.instance=u;case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+t.type+'". this is a bug in React.')}else t.type==="stylesheet"&&(t.state.loading&vo)===dl&&(i=t.instance,t.state.loading|=vo,Rf(i,o.precedence,e));return t.instance}function Rf(e,t,o){for(var i=o.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=i.length?i[i.length-1]:null,d=u,m=0;m<i.length;m++){var g=i[m];if(g.dataset.precedence===t)d=g;else if(d!==u)break}d?d.parentNode.insertBefore(e,d.nextSibling):(t=o.nodeType===9?o.head:o,t.insertBefore(e,t.firstChild))}function oy(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function ny(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}function HL(e,t,o){if(zh===null){var i=new Map,u=zh=new Map;u.set(o,i)}else u=zh,i=u.get(o),i||(i=new Map,u.set(o,i));if(i.has(e))return i;i.set(e,null),o=o.getElementsByTagName(e);for(u=0;u<o.length;u++){var d=o[u];if(!(d[Yu]||d[na]||e==="link"&&d.getAttribute("rel")==="stylesheet")&&d.namespaceURI!==or){var m=d.getAttribute(t)||"";m=e+m;var g=i.get(m);g?g.push(d):i.set(m,[d])}}return i}function UL(e,t,o){e=e.ownerDocument||e,e.head.insertBefore(o,t==="title"?e.querySelector("head > title"):null)}function mD(e,t,o){var i=!o.ancestorInfo.containerTagInScope;if(o.context===Or||t.itemProp!=null)return!i||t.itemProp==null||e!=="meta"&&e!=="title"&&e!=="style"&&e!=="link"&&e!=="script"||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",e,e),!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!=="string"||typeof t.href!=="string"||t.href===""){i&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case"link":if(typeof t.rel!=="string"||typeof t.href!=="string"||t.href===""||t.onLoad||t.onError){if(t.rel==="stylesheet"&&typeof t.precedence==="string"){e=t.href;var{onError:u,disabled:d}=t;o=[],t.onLoad&&o.push("`onLoad`"),u&&o.push("`onError`"),d!=null&&o.push("`disabled`"),u=G_(o,"and"),u+=o.length===1?" prop":" props",d=o.length===1?"an "+u:"the "+u,o.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',e,d,u)}i&&(typeof t.rel!=="string"||typeof t.href!=="string"||t.href===""?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(t.onError||t.onLoad)&&console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."));break}switch(t.rel){case"stylesheet":return e=t.precedence,t=t.disabled,typeof e!=="string"&&i&&console.error('Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.'),typeof e==="string"&&t==null;default:return!0}case"script":if(e=t.async&&typeof t.async!=="function"&&typeof t.async!=="symbol",!e||t.onLoad||t.onError||!t.src||typeof t.src!=="string"){i&&(e?t.onLoad||t.onError?console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error('Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.'));break}return!0;case"noscript":case"template":i&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",e)}return!1}function FL(e){return e.type==="stylesheet"&&(e.state.loading&CI)===dl?!1:!0}function gD(e,t,o,i){if(o.type==="stylesheet"&&(typeof i.media!=="string"||matchMedia(i.media).matches!==!1)&&(o.state.loading&vo)===dl){if(o.instance===null){var u=$l(i.href),d=t.querySelector(Fu(u));if(d){t=d._p,t!==null&&typeof t==="object"&&typeof t.then==="function"&&(e.count++,e=kf.bind(e),t.then(e,e)),o.state.loading|=vo,o.instance=d,me(d);return}d=t.ownerDocument||t,i=PL(i),(u=Lo.get(u))&&oy(i,u),d=d.createElement("link"),me(d);var m=d;m._p=new Promise(function(g,S){m.onload=g,m.onerror=S}),oa(d,"link",i),o.instance=d}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(o,t),(t=o.state.preload)&&(o.state.loading&CI)===dl&&(e.count++,o=kf.bind(e),t.addEventListener("load",o),t.addEventListener("error",o))}}function yD(e,t){return e.stylesheets&&e.count===0&&Of(e,e.stylesheets),0<e.count||0<e.imgCount?function(o){var i=setTimeout(function(){if(e.stylesheets&&Of(e,e.stylesheets),e.unsuspend){var d=e.unsuspend;e.unsuspend=null,d()}},dk+t);0<e.imgBytes&&Pb===0&&(Pb=125*Y_()*hk);var u=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Of(e,e.stylesheets),e.unsuspend)){var d=e.unsuspend;e.unsuspend=null,d()}},(e.imgBytes>Pb?50:fk)+t);return e.unsuspend=o,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(u)}}:null}function kf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Of(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}function Of(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Hh=new Map,t.forEach(bD,e),Hh=null,kf.call(e))}function bD(e,t){if(!(t.state.loading&vo)){var o=Hh.get(e);if(o)var i=o.get(zb);else{o=new Map,Hh.set(e,o);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;d<u.length;d++){var m=u[d];if(m.nodeName==="LINK"||m.getAttribute("media")!=="not all")o.set(m.dataset.precedence,m),i=m}i&&o.set(zb,i)}u=t.instance,m=u.getAttribute("data-precedence"),d=o.get(m)||i,d===i&&o.set(zb,u),o.set(m,u),this.count++,i=kf.bind(this),u.addEventListener("load",i),u.addEventListener("error",i),d?d.parentNode.insertBefore(u,d.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(u,e.firstChild)),t.state.loading|=vo}}function xD(e,t,o,i,u,d,m,g,S){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=cl,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ol(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ol(0),this.hiddenUpdates=Ol(null),this.identifierPrefix=i,this.onUncaughtError=u,this.onCaughtError=d,this.onRecoverableError=m,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=S,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,e=this.pendingUpdatersLaneMap=[];for(t=0;31>t;t++)e.push(new Set);this._debugRootType=o?"hydrateRoot()":"createRoot()"}function NL(e,t,o,i,u,d,m,g,S,L,O,E){return e=new xD(e,t,o,m,S,L,O,E,g),t=HR,d===!0&&(t|=pa|ko),t|=De,d=v(3,null,null,t),e.current=d,d.stateNode=e,t=km(),zi(t),e.pooledCache=t,zi(t),d.memoizedState={element:i,isDehydrated:o,cache:t},zm(d),e}function qL(e){if(!e)return zs;return e=zs,e}function sy(e,t,o,i,u,d){if(ha&&typeof ha.onScheduleFiberRoot==="function")try{ha.onScheduleFiberRoot(tr,i,o)}catch(m){cn||(cn=!0,console.error("React instrumentation encountered an error: %o",m))}u=qL(u),i.context===null?i.context=u:i.pendingContext=u,un&&Ka!==null&&!AI&&(AI=!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
+
184
+ Check the render method of %s.`,q(Ka)||"Unknown")),i=Ls(t),i.payload={element:o},d=d===void 0?null:d,d!==null&&(typeof d!=="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",d),i.callback=d),o=Cs(e,i,t),o!==null&&(Xo(t,"root.render()",null),Mt(o,e,t),vu(o,e,t))}function VL(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var o=e.retryLane;e.retryLane=o!==0&&o<t?o:t}}function iy(e,t){VL(e,t),(e=e.alternate)&&VL(e,t)}function jL(e){if(e.tag===13||e.tag===31){var t=fa(e,67108864);t!==null&&Mt(t,e,67108864),iy(e,67108864)}}function GL(e){if(e.tag===13||e.tag===31){var t=Qa(e);t=Ai(t);var o=fa(e,t);o!==null&&Mt(o,e,t),iy(e,t)}}function SD(){return Ka}function vD(e,t,o,i){var u=U.T;U.T=null;var d=at.p;try{at.p=eo,ly(e,t,o,i)}finally{at.p=d,U.T=u}}function LD(e,t,o,i){var u=U.T;U.T=null;var d=at.p;try{at.p=Ro,ly(e,t,o,i)}finally{at.p=d,U.T=u}}function ly(e,t,o,i){if(Fh){var u=ry(i);if(u===null)Yg(e,t,i,Nh,o),XL(e,i);else if(CD(u,e,t,o,i))i.stopPropagation();else if(XL(e,i),t&4&&-1<mk.indexOf(e)){for(;u!==null;){var d=Ie(u);if(d!==null)switch(d.tag){case 3:if(d=d.stateNode,d.current.memoizedState.isDehydrated){var m=Vo(d.pendingLanes);if(m!==0){var g=d;g.pendingLanes|=2;for(g.entangledLanes|=2;m;){var S=1<<31-ba(m);g.entanglements[1]|=S,m&=~S}nn(d),(Qe&(Xt|no))===Kt&&(Ch=Qt()+aI,Bu(0,!1))}}break;case 31:case 13:g=fa(d,2),g!==null&&Mt(g,d,2),Yl(),iy(d,2)}if(d=ry(i),d===null&&Yg(e,t,i,Nh,o),d===u)break;u=d}u!==null&&i.stopPropagation()}else Yg(e,t,i,null,o)}}function ry(e){return e=pm(e),uy(e)}function uy(e){if(Nh=null,e=ie(e),e!==null){var t=z(e);if(t===null)e=null;else{var o=t.tag;if(o===13){if(e=N(t),e!==null)return e;e=null}else if(o===31){if(e=Q(t),e!==null)return e;e=null}else if(o===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Nh=e,null}function YL(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return eo;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 Ro;case"message":switch(kD()){case Ly:return eo;case Cy:return Ro;case er:case OD:return fn;case Iy:return Vf;default:return fn}default:return fn}}function XL(e,t){switch(e){case"focusin":case"focusout":ei=null;break;case"dragenter":case"dragleave":ti=null;break;case"mouseover":case"mouseout":ai=null;break;case"pointerover":case"pointerout":Pc.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":zc.delete(t.pointerId)}}function qu(e,t,o,i,u,d){if(e===null||e.nativeEvent!==d)return e={blockedOn:t,domEventName:o,eventSystemFlags:i,nativeEvent:d,targetContainers:[u]},t!==null&&(t=Ie(t),t!==null&&jL(t)),e;return e.eventSystemFlags|=i,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e}function CD(e,t,o,i,u){switch(t){case"focusin":return ei=qu(ei,e,t,o,i,u),!0;case"dragenter":return ti=qu(ti,e,t,o,i,u),!0;case"mouseover":return ai=qu(ai,e,t,o,i,u),!0;case"pointerover":var d=u.pointerId;return Pc.set(d,qu(Pc.get(d)||null,e,t,o,i,u)),!0;case"gotpointercapture":return d=u.pointerId,zc.set(d,qu(zc.get(d)||null,e,t,o,i,u)),!0}return!1}function WL(e){var t=ie(e.target);if(t!==null){var o=z(t);if(o!==null){if(t=o.tag,t===13){if(t=N(o),t!==null){e.blockedOn=t,Y(e.priority,function(){GL(o)});return}}else if(t===31){if(t=Q(o),t!==null){e.blockedOn=t,Y(e.priority,function(){GL(o)});return}}else if(t===3&&o.stateNode.current.memoizedState.isDehydrated){e.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ef(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var o=ry(e.nativeEvent);if(o===null){o=e.nativeEvent;var i=new o.constructor(o.type,o),u=i;Xu!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),Xu=u,o.target.dispatchEvent(i),Xu===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."),Xu=null}else return t=Ie(o),t!==null&&jL(t),e.blockedOn=o,!1;t.shift()}return!0}function $L(e,t,o){Ef(e)&&o.delete(t)}function ID(){Hb=!1,ei!==null&&Ef(ei)&&(ei=null),ti!==null&&Ef(ti)&&(ti=null),ai!==null&&Ef(ai)&&(ai=null),Pc.forEach($L),zc.forEach($L)}function Bf(e,t){e.blockedOn===t&&(e.blockedOn=null,Hb||(Hb=!0,Je.unstable_scheduleCallback(Je.unstable_NormalPriority,ID)))}function QL(e){qh!==e&&(qh=e,Je.unstable_scheduleCallback(Je.unstable_NormalPriority,function(){qh===e&&(qh=null);for(var t=0;t<e.length;t+=3){var o=e[t],i=e[t+1],u=e[t+2];if(typeof i!=="function")if(uy(i||o)===null)continue;else break;var d=Ie(o);d!==null&&(e.splice(t,3),t-=3,o={pending:!0,data:u,method:o.method,action:i},Object.freeze(o),ug(d,o,i,u))}}))}function Zl(e){function t(S){return Bf(S,e)}ei!==null&&Bf(ei,e),ti!==null&&Bf(ti,e),ai!==null&&Bf(ai,e),Pc.forEach(t),zc.forEach(t);for(var o=0;o<oi.length;o++){var i=oi[o];i.blockedOn===e&&(i.blockedOn=null)}for(;0<oi.length&&(o=oi[0],o.blockedOn===null);)WL(o),o.blockedOn===null&&oi.shift();if(o=(e.ownerDocument||e).$$reactFormReplay,o!=null)for(i=0;i<o.length;i+=3){var u=o[i],d=o[i+1],m=u[xa]||null;if(typeof d==="function")m||QL(o);else if(m){var g=null;if(d&&d.hasAttribute("formAction")){if(u=d,m=d[xa]||null)g=m.formAction;else if(uy(u)!==null)continue}else g=m.action;typeof g==="function"?o[i+1]=g:(o.splice(i,3),i-=3),QL(o)}}}function ZL(){function e(d){d.canIntercept&&d.info==="react-transition"&&d.intercept({handler:function(){return new Promise(function(m){return u=m})},focusReset:"manual",scroll:"manual"})}function t(){u!==null&&(u(),u=null),i||setTimeout(o,20)}function o(){if(!i&&!navigation.transition){var d=navigation.currentEntry;d&&d.url!=null&&navigation.navigate(d.url,{state:d.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation==="object"){var i=!1,u=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(o,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),u!==null&&(u(),u=null)}}}function cy(e){this._internalRoot=e}function Pf(e){this._internalRoot=e}function JL(e){e[Os]&&(e._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var ze=Object.assign,wD=Symbol.for("react.element"),ln=Symbol.for("react.transitional.element"),Jl=Symbol.for("react.portal"),Kl=Symbol.for("react.fragment"),zf=Symbol.for("react.strict_mode"),dy=Symbol.for("react.profiler"),fy=Symbol.for("react.consumer"),rn=Symbol.for("react.context"),Vu=Symbol.for("react.forward_ref"),hy=Symbol.for("react.suspense"),py=Symbol.for("react.suspense_list"),Hf=Symbol.for("react.memo"),Ja=Symbol.for("react.lazy"),my=Symbol.for("react.activity"),MD=Symbol.for("react.memo_cache_sentinel"),KL=Symbol.iterator,TD=Symbol.for("react.client.reference"),Gt=Array.isArray,U=Br.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,at=Fb.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,AD=Object.freeze({pending:!1,data:null,method:null,action:null}),gy=[],yy=[],zn=-1,Ds=ce(null),ju=ce(null),Rs=ce(null),Uf=ce(null),Gu=0,eC,tC,aC,oC,nC,sC,iC;R.__reactDisabledLog=!0;var by,lC,xy=!1,Sy=new(typeof WeakMap==="function"?WeakMap:Map),Ka=null,un=!1,Do=Object.prototype.hasOwnProperty,vy=Je.unstable_scheduleCallback,_D=Je.unstable_cancelCallback,DD=Je.unstable_shouldYield,RD=Je.unstable_requestPaint,Qt=Je.unstable_now,kD=Je.unstable_getCurrentPriorityLevel,Ly=Je.unstable_ImmediatePriority,Cy=Je.unstable_UserBlockingPriority,er=Je.unstable_NormalPriority,OD=Je.unstable_LowPriority,Iy=Je.unstable_IdlePriority,ED=Je.log,BD=Je.unstable_setDisableYieldValue,tr=null,ha=null,cn=!1,dn=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",ba=Math.clz32?Math.clz32:Md,PD=Math.log,zD=Math.LN2,Ff=256,Nf=262144,qf=4194304,eo=2,Ro=8,fn=32,Vf=268435456,ks=Math.random().toString(36).slice(2),na="__reactFiber$"+ks,xa="__reactProps$"+ks,Os="__reactContainer$"+ks,wy="__reactEvents$"+ks,HD="__reactListeners$"+ks,UD="__reactHandles$"+ks,rC="__reactResources$"+ks,Yu="__reactMarker$"+ks,uC=new Set,ji={},My={},FD={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},ND=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]*$"),cC={},dC={},qD=/[\n"\\]/g,fC=!1,hC=!1,pC=!1,mC=!1,gC=!1,yC=!1,bC=["value","defaultValue"],xC=!1,SC=/["'&<>\n\t]|^\s|\s$/,VD="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(" "),vC="applet caption html table td th marquee object template foreignObject desc title".split(" "),jD=vC.concat(["button"]),GD="dd dt li option optgroup p rp rt".split(" "),LC={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},jf={},Ty={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"]},CC=/([A-Z])/g,IC=/^ms-/,YD=/^(?:webkit|moz|o)[A-Z]/,XD=/^-ms-/,WD=/-(.)/g,wC=/;\s*$/,ar={},Ay={},MC=!1,TC=!1,AC=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(" ")),Gf="http://www.w3.org/1998/Math/MathML",or="http://www.w3.org/2000/svg",$D=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"]]),Yf={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"},_C={"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},nr={},QD=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]*$"),ZD=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]*$"),DC=!1,Sa={},RC=/^on./,JD=/^on[^A-Z]/,KD=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]*$"),eR=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]*$"),tR=/^[\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,Xu=null,sr=null,ir=null,_y=!1,hn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Dy=!1;if(hn)try{var Wu={};Object.defineProperty(Wu,"passive",{get:function(){Dy=!0}}),window.addEventListener("test",Wu,Wu),window.removeEventListener("test",Wu,Wu)}catch(e){Dy=!1}var Es=null,Ry=null,Xf=null,Gi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Wf=Ta(Gi),$u=ze({},Gi,{view:0,detail:0}),aR=Ta($u),ky,Oy,Qu,$f=ze({},$u,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:mm,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){if("movementX"in e)return e.movementX;return e!==Qu&&(Qu&&e.type==="mousemove"?(ky=e.screenX-Qu.screenX,Oy=e.screenY-Qu.screenY):Oy=ky=0,Qu=e),ky},movementY:function(e){return"movementY"in e?e.movementY:Oy}}),kC=Ta($f),oR=ze({},$f,{dataTransfer:0}),nR=Ta(oR),sR=ze({},$u,{relatedTarget:0}),Ey=Ta(sR),iR=ze({},Gi,{animationName:0,elapsedTime:0,pseudoElement:0}),lR=Ta(iR),rR=ze({},Gi,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),uR=Ta(rR),cR=ze({},Gi,{data:0}),OC=Ta(cR),dR=OC,fR={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},hR={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"},pR={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},mR=ze({},$u,{key:function(e){if(e.key){var t=fR[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Od(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?hR[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:mm,charCode:function(e){return e.type==="keypress"?Od(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Od(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),gR=Ta(mR),yR=ze({},$f,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),EC=Ta(yR),bR=ze({},$u,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:mm}),xR=Ta(bR),SR=ze({},Gi,{propertyName:0,elapsedTime:0,pseudoElement:0}),vR=Ta(SR),LR=ze({},$f,{deltaX:function(e){return"deltaX"in e?e.deltaX:("wheelDeltaX"in e)?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:("wheelDeltaY"in e)?-e.wheelDeltaY:("wheelDelta"in e)?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),CR=Ta(LR),IR=ze({},Gi,{newState:0,oldState:0}),wR=Ta(IR),MR=[9,13,27,32],BC=229,By=hn&&"CompositionEvent"in window,Zu=null;hn&&"documentMode"in document&&(Zu=document.documentMode);var TR=hn&&"TextEvent"in window&&!Zu,PC=hn&&(!By||Zu&&8<Zu&&11>=Zu),zC=32,HC=String.fromCharCode(zC),UC=!1,lr=!1,AR={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},Ju=null,Ku=null,FC=!1;hn&&(FC=$A("input")&&(!document.documentMode||9<document.documentMode));var va=typeof Object.is==="function"?Object.is:t_,_R=hn&&"documentMode"in document&&11>=document.documentMode,rr=null,Py=null,ec=null,zy=!1,ur={animationend:Di("Animation","AnimationEnd"),animationiteration:Di("Animation","AnimationIteration"),animationstart:Di("Animation","AnimationStart"),transitionrun:Di("Transition","TransitionRun"),transitionstart:Di("Transition","TransitionStart"),transitioncancel:Di("Transition","TransitionCancel"),transitionend:Di("Transition","TransitionEnd")},Hy={},NC={};hn&&(NC=document.createElement("div").style,("AnimationEvent"in window)||(delete ur.animationend.animation,delete ur.animationiteration.animation,delete ur.animationstart.animation),("TransitionEvent"in window)||delete ur.transitionend.transition);var qC=Ri("animationend"),VC=Ri("animationiteration"),jC=Ri("animationstart"),DR=Ri("transitionrun"),RR=Ri("transitionstart"),kR=Ri("transitioncancel"),GC=Ri("transitionend"),YC=new Map,Uy="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(" ");Uy.push("scrollEnd");var XC=0;if(typeof performance==="object"&&typeof performance.now==="function")var OR=performance,WC=function(){return OR.now()};else{var ER=Date;WC=function(){return ER.now()}}var Fy=typeof reportError==="function"?reportError:function(e){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e==="object"&&e!==null&&typeof e.message==="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",e);return}console.error(e)},BR="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.",Qf=0,Ny=1,qy=2,Vy=3,Zf="– ",Jf="+ ",$C="  ",yt=typeof console<"u"&&typeof console.timeStamp==="function"&&typeof performance<"u"&&typeof performance.measure==="function",co="Components ⚛",He="Scheduler ⚛",Ne="Blocking",Bs=!1,Hn={color:"primary",properties:null,tooltipText:"",track:co},Ps={start:-0,end:-0,detail:{devtools:Hn}},PR=["Changed Props",""],QC="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",zR=["Changed Props",QC],tc=1,Un=2,fo=[],cr=0,jy=0,zs={};Object.freeze(zs);var ho=null,dr=null,ve=0,HR=1,De=2,pa=8,ko=16,UR=32,ZC=!1;try{var JC=Object.preventExtensions({})}catch(e){ZC=!0}var Gy=new WeakMap,fr=[],hr=0,Kf=null,ac=0,po=[],mo=0,Yi=null,Fn=1,Nn="",sa=null,bt=null,je=!1,pn=!1,to=null,Hs=null,go=!1,Yy=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."),Xy=ce(null),Wy=ce(null),KC={},eh=null,pr=null,mr=!1,FR=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(o,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(o){return o()})}},NR=Je.unstable_scheduleCallback,qR=Je.unstable_NormalPriority,zt={$$typeof:rn,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},Ht=Je.unstable_now,th=console.createTask?console.createTask:function(){return null},oc=1,ah=2,Zt=-0,Us=-0,qn=-0,Vn=null,La=-1.1,Xi=-0,Ct=-0,ge=-1.1,xe=-1.1,Lt=null,Tt=!1,Fs=-0,mn=-1.1,nc=null,Ns=0,$y=null,Qy=null,Wi=-1.1,sc=null,gr=-1.1,oh=-1.1,gn=-0,jn=-1.1,yo=-1.1,Zy=0,ic=null,e1=null,t1=null,qs=-1.1,$i=null,Vs=-1.1,nh=-1.1,a1=-0,o1=-0,sh=0,Gn=null,n1=0,lc=-1.1,ih=!1,lh=!1,rc=null,Jy=0,Qi=0,yr=null,s1=U.S;U.S=function(e,t){if(eI=Qt(),typeof t==="object"&&t!==null&&typeof t.then==="function"){if(0>jn&&0>yo){jn=Ht();var o=Hu(),i=zu();if(o!==Vs||i!==$i)Vs=-1.1;qs=o,$i=i}r_(e,t)}s1!==null&&s1(e,t)};var Zi=ce(null),Oo={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},uc=[],cc=[],dc=[],fc=[],hc=[],pc=[],Ji=new Set;Oo.recordUnsafeLifecycleWarnings=function(e,t){Ji.has(e.type)||(typeof t.componentWillMount==="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&uc.push(e),e.mode&pa&&typeof t.UNSAFE_componentWillMount==="function"&&cc.push(e),typeof t.componentWillReceiveProps==="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&dc.push(e),e.mode&pa&&typeof t.UNSAFE_componentWillReceiveProps==="function"&&fc.push(e),typeof t.componentWillUpdate==="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&hc.push(e),e.mode&pa&&typeof t.UNSAFE_componentWillUpdate==="function"&&pc.push(e))},Oo.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;0<uc.length&&(uc.forEach(function(g){e.add(q(g)||"Component"),Ji.add(g.type)}),uc=[]);var t=new Set;0<cc.length&&(cc.forEach(function(g){t.add(q(g)||"Component"),Ji.add(g.type)}),cc=[]);var o=new Set;0<dc.length&&(dc.forEach(function(g){o.add(q(g)||"Component"),Ji.add(g.type)}),dc=[]);var i=new Set;0<fc.length&&(fc.forEach(function(g){i.add(q(g)||"Component"),Ji.add(g.type)}),fc=[]);var u=new Set;0<hc.length&&(hc.forEach(function(g){u.add(q(g)||"Component"),Ji.add(g.type)}),hc=[]);var d=new Set;if(0<pc.length&&(pc.forEach(function(g){d.add(q(g)||"Component"),Ji.add(g.type)}),pc=[]),0<t.size){var m=x(t);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
185
+
186
+ * Move code with side effects to componentDidMount, and set initial state in the constructor.
187
+
188
+ Please update the following components: %s`,m)}0<i.size&&(m=x(i),console.error(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
189
+
190
+ * Move data fetching code or side effects to componentDidUpdate.
191
+ * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
192
+
193
+ Please update the following components: %s`,m)),0<d.size&&(m=x(d),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
194
+
195
+ * Move data fetching code or side effects to componentDidUpdate.
196
+
197
+ Please update the following components: %s`,m)),0<e.size&&(m=x(e),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
198
+
199
+ * Move code with side effects to componentDidMount, and set initial state in the constructor.
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
+
202
+ Please update the following components: %s`,m)),0<o.size&&(m=x(o),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
203
+
204
+ * Move data fetching code or side effects to componentDidUpdate.
205
+ * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
206
+ * Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
207
+
208
+ Please update the following components: %s`,m)),0<u.size&&(m=x(u),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
209
+
210
+ * Move data fetching code or side effects to componentDidUpdate.
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
+
213
+ Please update the following components: %s`,m))};var rh=new Map,i1=new Set;Oo.recordLegacyContextWarning=function(e,t){var o=null;for(var i=e;i!==null;)i.mode&pa&&(o=i),i=i.return;o===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."):!i1.has(e.type)&&(i=rh.get(o),e.type.contextTypes!=null||e.type.childContextTypes!=null||t!==null&&typeof t.getChildContext==="function")&&(i===void 0&&(i=[],rh.set(o,i)),i.push(e))},Oo.flushLegacyContextWarning=function(){rh.forEach(function(e){if(e.length!==0){var t=e[0],o=new Set;e.forEach(function(u){o.add(q(u)||"Component"),i1.add(u.type)});var i=x(o);ne(t,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
214
+
215
+ The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
216
+
217
+ Please update the following components: %s
218
+
219
+ Learn more about this warning here: https://react.dev/link/legacy-context`,i)})}})},Oo.discardPendingWarnings=function(){uc=[],cc=[],dc=[],fc=[],hc=[],pc=[],rh=new Map};var l1={react_stack_bottom_frame:function(e,t,o){var i=un;un=!0;try{return e(t,o)}finally{un=i}}},Ky=l1.react_stack_bottom_frame.bind(l1),r1={react_stack_bottom_frame:function(e){var t=un;un=!0;try{return e.render()}finally{un=t}}},u1=r1.react_stack_bottom_frame.bind(r1),c1={react_stack_bottom_frame:function(e,t){try{t.componentDidMount()}catch(o){tt(e,e.return,o)}}},eb=c1.react_stack_bottom_frame.bind(c1),d1={react_stack_bottom_frame:function(e,t,o,i,u){try{t.componentDidUpdate(o,i,u)}catch(d){tt(e,e.return,d)}}},f1=d1.react_stack_bottom_frame.bind(d1),h1={react_stack_bottom_frame:function(e,t){var o=t.stack;e.componentDidCatch(t.value,{componentStack:o!==null?o:""})}},VR=h1.react_stack_bottom_frame.bind(h1),p1={react_stack_bottom_frame:function(e,t,o){try{o.componentWillUnmount()}catch(i){tt(e,t,i)}}},m1=p1.react_stack_bottom_frame.bind(p1),g1={react_stack_bottom_frame:function(e){var t=e.create;return e=e.inst,t=t(),e.destroy=t}},jR=g1.react_stack_bottom_frame.bind(g1),y1={react_stack_bottom_frame:function(e,t,o){try{o()}catch(i){tt(e,t,i)}}},GR=y1.react_stack_bottom_frame.bind(y1),b1={react_stack_bottom_frame:function(e){var t=e._init;return t(e._payload)}},YR=b1.react_stack_bottom_frame.bind(b1),br=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`."),tb=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."),uh=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."),ch={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.')}},Ki=null,mc=!1,xr=null,gc=0,Re=null,ab,x1=ab=!1,S1={},v1={},L1={};b=function(e,t,o){if(o!==null&&typeof o==="object"&&o._store&&(!o._store.validated&&o.key==null||o._store.validated===2)){if(typeof o._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.");o._store.validated=1;var i=q(e),u=i||"null";if(!S1[u]){S1[u]=!0,o=o._owner,e=e._debugOwner;var d="";e&&typeof e.tag==="number"&&(u=q(e))&&(d=`
220
+
221
+ Check the render method of \``+u+"`."),d||i&&(d=`
222
+
223
+ Check the top-level render call using <`+i+">.");var m="";o!=null&&e!==o&&(i=null,typeof o.tag==="number"?i=q(o):typeof o.name==="string"&&(i=o.name),i&&(m=" It was passed a child from "+i+".")),ne(t,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',d,m)})}}};var el=pS(!0),C1=pS(!1),I1=0,w1=1,M1=2,ob=3,js=!1,T1=!1,nb=null,sb=!1,Sr=ce(null),dh=ce(0),ao=ce(null),bo=null,vr=1,yc=2,Ot=ce(0),fh=0,xo=1,Ca=2,oo=4,Ia=8,Lr,A1=new Set,_1=new Set,ib=new Set,D1=new Set,Yn=0,Le=null,ct=null,Ut=null,hh=!1,Cr=!1,tl=!1,ph=0,bc=0,Xn=null,XR=0,WR=25,H=null,So=null,Wn=-1,xc=!1,Sc={readContext:vt,use:Ms,useCallback:Rt,useContext:Rt,useEffect:Rt,useImperativeHandle:Rt,useLayoutEffect:Rt,useInsertionEffect:Rt,useMemo:Rt,useReducer:Rt,useRef:Rt,useState:Rt,useDebugValue:Rt,useDeferredValue:Rt,useTransition:Rt,useSyncExternalStore:Rt,useId:Rt,useHostTransitionStatus:Rt,useFormState:Rt,useActionState:Rt,useOptimistic:Rt,useMemoCache:Rt,useCacheRefresh:Rt};Sc.useEffectEvent=Rt;var lb=null,R1=null,rb=null,k1=null,yn=null,Eo=null,mh=null;lb={readContext:function(e){return vt(e)},use:Ms,useCallback:function(e,t){return H="useCallback",Pe(),Ul(t),sg(e,t)},useContext:function(e){return H="useContext",Pe(),vt(e)},useEffect:function(e,t){return H="useEffect",Pe(),Ul(t),rf(e,t)},useImperativeHandle:function(e,t,o){return H="useImperativeHandle",Pe(),Ul(o),ng(e,t,o)},useInsertionEffect:function(e,t){H="useInsertionEffect",Pe(),Ul(t),Ui(4,Ca,e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",Pe(),Ul(t),og(e,t)},useMemo:function(e,t){H="useMemo",Pe(),Ul(t);var o=U.H;U.H=yn;try{return ig(e,t)}finally{U.H=o}},useReducer:function(e,t,o){H="useReducer",Pe();var i=U.H;U.H=yn;try{return Wm(e,t,o)}finally{U.H=i}},useRef:function(e){return H="useRef",Pe(),tg(e)},useState:function(e){H="useState",Pe();var t=U.H;U.H=yn;try{return Jm(e)}finally{U.H=t}},useDebugValue:function(){H="useDebugValue",Pe()},useDeferredValue:function(e,t){return H="useDeferredValue",Pe(),lg(e,t)},useTransition:function(){return H="useTransition",Pe(),cg()},useSyncExternalStore:function(e,t,o){return H="useSyncExternalStore",Pe(),Qm(e,t,o)},useId:function(){return H="useId",Pe(),dg()},useFormState:function(e,t){return H="useFormState",Pe(),af(),Nl(e,t)},useActionState:function(e,t){return H="useActionState",Pe(),Nl(e,t)},useOptimistic:function(e){return H="useOptimistic",Pe(),Km(e)},useHostTransitionStatus:Fi,useMemoCache:Hi,useCacheRefresh:function(){return H="useCacheRefresh",Pe(),fg()},useEffectEvent:function(e){return H="useEffectEvent",Pe(),ag(e)}},R1={readContext:function(e){return vt(e)},use:Ms,useCallback:function(e,t){return H="useCallback",j(),sg(e,t)},useContext:function(e){return H="useContext",j(),vt(e)},useEffect:function(e,t){return H="useEffect",j(),rf(e,t)},useImperativeHandle:function(e,t,o){return H="useImperativeHandle",j(),ng(e,t,o)},useInsertionEffect:function(e,t){H="useInsertionEffect",j(),Ui(4,Ca,e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",j(),og(e,t)},useMemo:function(e,t){H="useMemo",j();var o=U.H;U.H=yn;try{return ig(e,t)}finally{U.H=o}},useReducer:function(e,t,o){H="useReducer",j();var i=U.H;U.H=yn;try{return Wm(e,t,o)}finally{U.H=i}},useRef:function(e){return H="useRef",j(),tg(e)},useState:function(e){H="useState",j();var t=U.H;U.H=yn;try{return Jm(e)}finally{U.H=t}},useDebugValue:function(){H="useDebugValue",j()},useDeferredValue:function(e,t){return H="useDeferredValue",j(),lg(e,t)},useTransition:function(){return H="useTransition",j(),cg()},useSyncExternalStore:function(e,t,o){return H="useSyncExternalStore",j(),Qm(e,t,o)},useId:function(){return H="useId",j(),dg()},useActionState:function(e,t){return H="useActionState",j(),Nl(e,t)},useFormState:function(e,t){return H="useFormState",j(),af(),Nl(e,t)},useOptimistic:function(e){return H="useOptimistic",j(),Km(e)},useHostTransitionStatus:Fi,useMemoCache:Hi,useCacheRefresh:function(){return H="useCacheRefresh",j(),fg()},useEffectEvent:function(e){return H="useEffectEvent",j(),ag(e)}},rb={readContext:function(e){return vt(e)},use:Ms,useCallback:function(e,t){return H="useCallback",j(),df(e,t)},useContext:function(e){return H="useContext",j(),vt(e)},useEffect:function(e,t){H="useEffect",j(),Aa(2048,Ia,e,t)},useImperativeHandle:function(e,t,o){return H="useImperativeHandle",j(),cf(e,t,o)},useInsertionEffect:function(e,t){return H="useInsertionEffect",j(),Aa(4,Ca,e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",j(),Aa(4,oo,e,t)},useMemo:function(e,t){H="useMemo",j();var o=U.H;U.H=Eo;try{return ff(e,t)}finally{U.H=o}},useReducer:function(e,t,o){H="useReducer",j();var i=U.H;U.H=Eo;try{return Fl(e,t,o)}finally{U.H=i}},useRef:function(){return H="useRef",j(),st().memoizedState},useState:function(){H="useState",j();var e=U.H;U.H=Eo;try{return Fl(Ao)}finally{U.H=e}},useDebugValue:function(){H="useDebugValue",j()},useDeferredValue:function(e,t){return H="useDeferredValue",j(),PS(e,t)},useTransition:function(){return H="useTransition",j(),qS()},useSyncExternalStore:function(e,t,o){return H="useSyncExternalStore",j(),nf(e,t,o)},useId:function(){return H="useId",j(),st().memoizedState},useFormState:function(e){return H="useFormState",j(),af(),sf(e)},useActionState:function(e){return H="useActionState",j(),sf(e)},useOptimistic:function(e,t){return H="useOptimistic",j(),MS(e,t)},useHostTransitionStatus:Fi,useMemoCache:Hi,useCacheRefresh:function(){return H="useCacheRefresh",j(),st().memoizedState},useEffectEvent:function(e){return H="useEffectEvent",j(),uf(e)}},k1={readContext:function(e){return vt(e)},use:Ms,useCallback:function(e,t){return H="useCallback",j(),df(e,t)},useContext:function(e){return H="useContext",j(),vt(e)},useEffect:function(e,t){H="useEffect",j(),Aa(2048,Ia,e,t)},useImperativeHandle:function(e,t,o){return H="useImperativeHandle",j(),cf(e,t,o)},useInsertionEffect:function(e,t){return H="useInsertionEffect",j(),Aa(4,Ca,e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",j(),Aa(4,oo,e,t)},useMemo:function(e,t){H="useMemo",j();var o=U.H;U.H=mh;try{return ff(e,t)}finally{U.H=o}},useReducer:function(e,t,o){H="useReducer",j();var i=U.H;U.H=mh;try{return wu(e,t,o)}finally{U.H=i}},useRef:function(){return H="useRef",j(),st().memoizedState},useState:function(){H="useState",j();var e=U.H;U.H=mh;try{return wu(Ao)}finally{U.H=e}},useDebugValue:function(){H="useDebugValue",j()},useDeferredValue:function(e,t){return H="useDeferredValue",j(),zS(e,t)},useTransition:function(){return H="useTransition",j(),VS()},useSyncExternalStore:function(e,t,o){return H="useSyncExternalStore",j(),nf(e,t,o)},useId:function(){return H="useId",j(),st().memoizedState},useFormState:function(e){return H="useFormState",j(),af(),lf(e)},useActionState:function(e){return H="useActionState",j(),lf(e)},useOptimistic:function(e,t){return H="useOptimistic",j(),AS(e,t)},useHostTransitionStatus:Fi,useMemoCache:Hi,useCacheRefresh:function(){return H="useCacheRefresh",j(),st().memoizedState},useEffectEvent:function(e){return H="useEffectEvent",j(),uf(e)}},yn={readContext:function(e){return p(),vt(e)},use:function(e){return h(),Ms(e)},useCallback:function(e,t){return H="useCallback",h(),Pe(),sg(e,t)},useContext:function(e){return H="useContext",h(),Pe(),vt(e)},useEffect:function(e,t){return H="useEffect",h(),Pe(),rf(e,t)},useImperativeHandle:function(e,t,o){return H="useImperativeHandle",h(),Pe(),ng(e,t,o)},useInsertionEffect:function(e,t){H="useInsertionEffect",h(),Pe(),Ui(4,Ca,e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",h(),Pe(),og(e,t)},useMemo:function(e,t){H="useMemo",h(),Pe();var o=U.H;U.H=yn;try{return ig(e,t)}finally{U.H=o}},useReducer:function(e,t,o){H="useReducer",h(),Pe();var i=U.H;U.H=yn;try{return Wm(e,t,o)}finally{U.H=i}},useRef:function(e){return H="useRef",h(),Pe(),tg(e)},useState:function(e){H="useState",h(),Pe();var t=U.H;U.H=yn;try{return Jm(e)}finally{U.H=t}},useDebugValue:function(){H="useDebugValue",h(),Pe()},useDeferredValue:function(e,t){return H="useDeferredValue",h(),Pe(),lg(e,t)},useTransition:function(){return H="useTransition",h(),Pe(),cg()},useSyncExternalStore:function(e,t,o){return H="useSyncExternalStore",h(),Pe(),Qm(e,t,o)},useId:function(){return H="useId",h(),Pe(),dg()},useFormState:function(e,t){return H="useFormState",h(),Pe(),Nl(e,t)},useActionState:function(e,t){return H="useActionState",h(),Pe(),Nl(e,t)},useOptimistic:function(e){return H="useOptimistic",h(),Pe(),Km(e)},useMemoCache:function(e){return h(),Hi(e)},useHostTransitionStatus:Fi,useCacheRefresh:function(){return H="useCacheRefresh",Pe(),fg()},useEffectEvent:function(e){return H="useEffectEvent",h(),Pe(),ag(e)}},Eo={readContext:function(e){return p(),vt(e)},use:function(e){return h(),Ms(e)},useCallback:function(e,t){return H="useCallback",h(),j(),df(e,t)},useContext:function(e){return H="useContext",h(),j(),vt(e)},useEffect:function(e,t){H="useEffect",h(),j(),Aa(2048,Ia,e,t)},useImperativeHandle:function(e,t,o){return H="useImperativeHandle",h(),j(),cf(e,t,o)},useInsertionEffect:function(e,t){return H="useInsertionEffect",h(),j(),Aa(4,Ca,e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",h(),j(),Aa(4,oo,e,t)},useMemo:function(e,t){H="useMemo",h(),j();var o=U.H;U.H=Eo;try{return ff(e,t)}finally{U.H=o}},useReducer:function(e,t,o){H="useReducer",h(),j();var i=U.H;U.H=Eo;try{return Fl(e,t,o)}finally{U.H=i}},useRef:function(){return H="useRef",h(),j(),st().memoizedState},useState:function(){H="useState",h(),j();var e=U.H;U.H=Eo;try{return Fl(Ao)}finally{U.H=e}},useDebugValue:function(){H="useDebugValue",h(),j()},useDeferredValue:function(e,t){return H="useDeferredValue",h(),j(),PS(e,t)},useTransition:function(){return H="useTransition",h(),j(),qS()},useSyncExternalStore:function(e,t,o){return H="useSyncExternalStore",h(),j(),nf(e,t,o)},useId:function(){return H="useId",h(),j(),st().memoizedState},useFormState:function(e){return H="useFormState",h(),j(),sf(e)},useActionState:function(e){return H="useActionState",h(),j(),sf(e)},useOptimistic:function(e,t){return H="useOptimistic",h(),j(),MS(e,t)},useMemoCache:function(e){return h(),Hi(e)},useHostTransitionStatus:Fi,useCacheRefresh:function(){return H="useCacheRefresh",j(),st().memoizedState},useEffectEvent:function(e){return H="useEffectEvent",h(),j(),uf(e)}},mh={readContext:function(e){return p(),vt(e)},use:function(e){return h(),Ms(e)},useCallback:function(e,t){return H="useCallback",h(),j(),df(e,t)},useContext:function(e){return H="useContext",h(),j(),vt(e)},useEffect:function(e,t){H="useEffect",h(),j(),Aa(2048,Ia,e,t)},useImperativeHandle:function(e,t,o){return H="useImperativeHandle",h(),j(),cf(e,t,o)},useInsertionEffect:function(e,t){return H="useInsertionEffect",h(),j(),Aa(4,Ca,e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",h(),j(),Aa(4,oo,e,t)},useMemo:function(e,t){H="useMemo",h(),j();var o=U.H;U.H=Eo;try{return ff(e,t)}finally{U.H=o}},useReducer:function(e,t,o){H="useReducer",h(),j();var i=U.H;U.H=Eo;try{return wu(e,t,o)}finally{U.H=i}},useRef:function(){return H="useRef",h(),j(),st().memoizedState},useState:function(){H="useState",h(),j();var e=U.H;U.H=Eo;try{return wu(Ao)}finally{U.H=e}},useDebugValue:function(){H="useDebugValue",h(),j()},useDeferredValue:function(e,t){return H="useDeferredValue",h(),j(),zS(e,t)},useTransition:function(){return H="useTransition",h(),j(),VS()},useSyncExternalStore:function(e,t,o){return H="useSyncExternalStore",h(),j(),nf(e,t,o)},useId:function(){return H="useId",h(),j(),st().memoizedState},useFormState:function(e){return H="useFormState",h(),j(),lf(e)},useActionState:function(e){return H="useActionState",h(),j(),lf(e)},useOptimistic:function(e,t){return H="useOptimistic",h(),j(),AS(e,t)},useMemoCache:function(e){return h(),Hi(e)},useHostTransitionStatus:Fi,useCacheRefresh:function(){return H="useCacheRefresh",j(),st().memoizedState},useEffectEvent:function(e){return H="useEffectEvent",h(),j(),uf(e)}};var O1={},E1=new Set,B1=new Set,P1=new Set,z1=new Set,H1=new Set,U1=new Set,F1=new Set,N1=new Set,q1=new Set,V1=new Set;Object.freeze(O1);var ub={enqueueSetState:function(e,t,o){e=e._reactInternals;var i=Qa(e),u=Ls(i);u.payload=t,o!==void 0&&o!==null&&(pg(o),u.callback=o),t=Cs(e,u,i),t!==null&&(Xo(i,"this.setState()",e),Mt(t,e,i),vu(t,e,i))},enqueueReplaceState:function(e,t,o){e=e._reactInternals;var i=Qa(e),u=Ls(i);u.tag=w1,u.payload=t,o!==void 0&&o!==null&&(pg(o),u.callback=o),t=Cs(e,u,i),t!==null&&(Xo(i,"this.replaceState()",e),Mt(t,e,i),vu(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var o=Qa(e),i=Ls(o);i.tag=M1,t!==void 0&&t!==null&&(pg(t),i.callback=t),t=Cs(e,i,o),t!==null&&(Xo(o,"this.forceUpdate()",e),Mt(t,e,o),vu(t,e,o))}},Ir=null,cb=null,db=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."),Ft=!1,j1={},G1={},Y1={},X1={},wr=!1,W1={},gh={},fb={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},$1=!1,Q1=null;Q1=new Set;var $n=!1,Nt=!1,hb=!1,Z1=typeof WeakSet==="function"?WeakSet:Set,Jt=null,Mr=null,Tr=null,qt=null,Ra=!1,Bo=null,Yt=!1,vc=8192,$R={getCacheForType:function(e){var t=vt(zt),o=t.data.get(e);return o===void 0&&(o=e(),t.data.set(e,o)),o},cacheSignal:function(){return vt(zt).controller.signal},getOwner:function(){return Ka}};if(typeof Symbol==="function"&&Symbol.for){var Lc=Symbol.for;Lc("selector.component"),Lc("selector.has_pseudo_class"),Lc("selector.role"),Lc("selector.test_id"),Lc("selector.text")}var QR=[],ZR=typeof WeakMap==="function"?WeakMap:Map,Kt=0,Xt=2,no=4,Qn=0,Cc=1,al=2,yh=3,Gs=4,bh=6,J1=5,Qe=Kt,dt=null,Oe=null,ke=0,ka=0,xh=1,ol=2,Ic=3,K1=4,pb=5,wc=6,Sh=7,mb=8,nl=9,it=ka,so=null,Ys=!1,Ar=!1,gb=!1,bn=0,It=Qn,Xs=0,Ws=0,yb=0,Oa=0,sl=0,Mc=null,wa=null,vh=!1,Lh=0,eI=0,tI=300,Ch=1/0,aI=500,Tc=null,kt=null,$s=null,Ih=0,bb=1,xb=2,oI=3,Qs=0,nI=1,sI=2,iI=3,lI=4,wh=5,Vt=0,Zs=null,_r=null,Po=0,Sb=0,vb=-0,Lb=null,rI=null,uI=null,zo=Ih,cI=null,JR=50,Ac=0,Cb=null,Ib=!1,Mh=!1,KR=50,il=0,_c=null,Dr=!1,Th=null,dI=!1,fI=new Set,ek={},Ah=null,Rr=null,wb=!1,Mb=!1,_h=!1,Tb=!1,Js=0,Ab={};(function(){for(var e=0;e<Uy.length;e++){var t=Uy[e],o=t.toLowerCase();t=t[0].toUpperCase()+t.slice(1),To(o,"on"+t)}To(qC,"onAnimationEnd"),To(VC,"onAnimationIteration"),To(jC,"onAnimationStart"),To("dblclick","onDoubleClick"),To("focusin","onFocus"),To("focusout","onBlur"),To(DR,"onTransitionRun"),To(RR,"onTransitionStart"),To(kR,"onTransitionCancel"),To(GC,"onTransitionEnd")})(),Va("onMouseEnter",["mouseout","mouseover"]),Va("onMouseLeave",["mouseout","mouseover"]),Va("onPointerEnter",["pointerout","pointerover"]),Va("onPointerLeave",["pointerout","pointerover"]),da("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),da("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),da("onBeforeInput",["compositionend","keypress","textInput","paste"]),da("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),da("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),da("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Dc="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(" "),_b=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Dc)),Dh="_reactListening"+Math.random().toString(36).slice(2),hI=!1,pI=!1,Rh=!1,mI=!1,kh=!1,Oh=!1,gI=!1,Eh={},tk=/\r\n?/g,ak=/\u0000|\uFFFD/g,ll="http://www.w3.org/1999/xlink",Db="http://www.w3.org/XML/1998/namespace",ok="javascript:throw new Error('React form unexpectedly submitted.')",nk="suppressHydrationWarning",rl="&",Bh="/&",Rc="$",kc="/$",Ks="$?",ul="$~",kr="$!",sk="html",ik="body",lk="head",Rb="F!",yI="F",bI="loading",rk="style",Zn=0,Or=1,Ph=2,kb=null,Ob=null,xI={dialog:!0,webview:!0},Eb=null,Oc=void 0,SI=typeof setTimeout==="function"?setTimeout:void 0,uk=typeof clearTimeout==="function"?clearTimeout:void 0,cl=-1,vI=typeof Promise==="function"?Promise:void 0,ck=typeof queueMicrotask==="function"?queueMicrotask:typeof vI<"u"?function(e){return vI.resolve(null).then(e).catch(W_)}:SI,Bb=null,dl=0,Ec=1,LI=2,CI=3,vo=4,Lo=new Map,II=new Set,Jn=at.d;at.d={f:function(){var e=Jn.f(),t=Yl();return e||t},r:function(e){var t=Ie(e);t!==null&&t.tag===5&&t.type==="form"?NS(t):Jn.r(e)},D:function(e){Jn.D(e),EL("dns-prefetch",e,null)},C:function(e,t){Jn.C(e,t),EL("preconnect",e,t)},L:function(e,t,o){Jn.L(e,t,o);var i=Er;if(i&&e&&t){var u='link[rel="preload"][as="'+ro(t)+'"]';t==="image"?o&&o.imageSrcSet?(u+='[imagesrcset="'+ro(o.imageSrcSet)+'"]',typeof o.imageSizes==="string"&&(u+='[imagesizes="'+ro(o.imageSizes)+'"]')):u+='[href="'+ro(e)+'"]':u+='[href="'+ro(e)+'"]';var d=u;switch(t){case"style":d=$l(e);break;case"script":d=Ql(e)}Lo.has(d)||(e=ze({rel:"preload",href:t==="image"&&o&&o.imageSrcSet?void 0:e,as:t},o),Lo.set(d,e),i.querySelector(u)!==null||t==="style"&&i.querySelector(Fu(d))||t==="script"&&i.querySelector(Nu(d))||(t=i.createElement("link"),oa(t,"link",e),me(t),i.head.appendChild(t)))}},m:function(e,t){Jn.m(e,t);var o=Er;if(o&&e){var i=t&&typeof t.as==="string"?t.as:"script",u='link[rel="modulepreload"][as="'+ro(i)+'"][href="'+ro(e)+'"]',d=u;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":d=Ql(e)}if(!Lo.has(d)&&(e=ze({rel:"modulepreload",href:e},t),Lo.set(d,e),o.querySelector(u)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(o.querySelector(Nu(d)))return}i=o.createElement("link"),oa(i,"link",e),me(i),o.head.appendChild(i)}}},X:function(e,t){Jn.X(e,t);var o=Er;if(o&&e){var i=Ze(o).hoistableScripts,u=Ql(e),d=i.get(u);d||(d=o.querySelector(Nu(u)),d||(e=ze({src:e,async:!0},t),(t=Lo.get(u))&&ny(e,t),d=o.createElement("script"),me(d),oa(d,"link",e),o.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},i.set(u,d))}},S:function(e,t,o){Jn.S(e,t,o);var i=Er;if(i&&e){var u=Ze(i).hoistableStyles,d=$l(e);t=t||"default";var m=u.get(d);if(!m){var g={loading:dl,preload:null};if(m=i.querySelector(Fu(d)))g.loading=Ec|vo;else{e=ze({rel:"stylesheet",href:e,"data-precedence":t},o),(o=Lo.get(d))&&oy(e,o);var S=m=i.createElement("link");me(S),oa(S,"link",e),S._p=new Promise(function(L,O){S.onload=L,S.onerror=O}),S.addEventListener("load",function(){g.loading|=Ec}),S.addEventListener("error",function(){g.loading|=LI}),g.loading|=vo,Rf(m,t,i)}m={type:"stylesheet",instance:m,count:1,state:g},u.set(d,m)}}},M:function(e,t){Jn.M(e,t);var o=Er;if(o&&e){var i=Ze(o).hoistableScripts,u=Ql(e),d=i.get(u);d||(d=o.querySelector(Nu(u)),d||(e=ze({src:e,async:!0,type:"module"},t),(t=Lo.get(u))&&ny(e,t),d=o.createElement("script"),me(d),oa(d,"link",e),o.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},i.set(u,d))}}};var Er=typeof document>"u"?null:document,zh=null,dk=60000,fk=800,hk=500,Pb=0,zb=null,Hh=null,fl=AD,Bc={$$typeof:rn,Provider:null,Consumer:null,_currentValue:fl,_currentValue2:fl,_threadCount:0},wI="%c%s%c",MI="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",TI="",Uh=" ",pk=Function.prototype.bind,AI=!1,_I=null,DI=null,RI=null,kI=null,OI=null,EI=null,BI=null,PI=null,zI=null,HI=null;_I=function(e,t,o,i){t=a(e,t),t!==null&&(o=n(t.memoizedState,o,0,i),t.memoizedState=o,t.baseState=o,e.memoizedProps=ze({},e.memoizedProps),o=fa(e,2),o!==null&&Mt(o,e,2))},DI=function(e,t,o){t=a(e,t),t!==null&&(o=r(t.memoizedState,o,0),t.memoizedState=o,t.baseState=o,e.memoizedProps=ze({},e.memoizedProps),o=fa(e,2),o!==null&&Mt(o,e,2))},RI=function(e,t,o,i){t=a(e,t),t!==null&&(o=s(t.memoizedState,o,i),t.memoizedState=o,t.baseState=o,e.memoizedProps=ze({},e.memoizedProps),o=fa(e,2),o!==null&&Mt(o,e,2))},kI=function(e,t,o){e.pendingProps=n(e.memoizedProps,t,0,o),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=fa(e,2),t!==null&&Mt(t,e,2)},OI=function(e,t){e.pendingProps=r(e.memoizedProps,t,0),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=fa(e,2),t!==null&&Mt(t,e,2)},EI=function(e,t,o){e.pendingProps=s(e.memoizedProps,t,o),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=fa(e,2),t!==null&&Mt(t,e,2)},BI=function(e){var t=fa(e,2);t!==null&&Mt(t,e,2)},PI=function(e){var t=kl(),o=fa(e,t);o!==null&&Mt(o,e,t)},zI=function(e){f=e},HI=function(e){c=e};var Fh=!0,Nh=null,Hb=!1,ei=null,ti=null,ai=null,Pc=new Map,zc=new Map,oi=[],mk="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(" "),qh=null;if(Pf.prototype.render=cy.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error("Cannot update an unmounted root.");var o=arguments;typeof o[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()."):w(o[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 o[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),o=e;var i=t.current,u=Qa(i);sy(i,u,o,t,null,null)},Pf.prototype.unmount=cy.prototype.unmount=function(){var e=arguments;if(typeof e[0]==="function"&&console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."),e=this._internalRoot,e!==null){this._internalRoot=null;var t=e.containerInfo;(Qe&(Xt|no))!==Kt&&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."),sy(e.current,2,null,e,null,null),Yl(),t[Os]=null}},Pf.prototype.unstable_scheduleHydration=function(e){if(e){var t=B();e={blockedOn:null,target:e,priority:t};for(var o=0;o<oi.length&&t!==0&&t<oi[o].priority;o++);oi.splice(o,0,e),o===0&&WL(e)}},function(){var e=Br.version;if(e!=="19.2.5")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
224
+ - react: `+(e+`
225
+ - react-dom: 19.2.5
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"),at.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0){if(typeof e.render==="function")throw Error("Unable to find node on an unmounted component.");throw e=Object.keys(e).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+e)}return e=X(t),e=e!==null?oe(e):null,e=e===null?null:e.stateNode,e},!function(){var e={bundleType:1,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.2.5"};return e.overrideHookState=_I,e.overrideHookStateDeletePath=DI,e.overrideHookStateRenamePath=RI,e.overrideProps=kI,e.overridePropsDeletePath=OI,e.overridePropsRenamePath=EI,e.scheduleUpdate=BI,e.scheduleRetry=PI,e.setErrorHandler=zI,e.setSuspenseHandler=HI,e.scheduleRefresh=M,e.scheduleRoot=I,e.setRefreshHandler=D,e.getCurrentFiber=SD,Rl(e)}()&&hn&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var UI=window.location.protocol;/^(https?|file):$/.test(UI)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(UI==="file:"?`
227
+ You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}Ak.createRoot=function(e,t){if(!w(e))throw Error("Target container is not a DOM element.");JL(e);var o=!1,i="",u=$S,d=QS,m=ZS;return t!==null&&t!==void 0&&(t.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof t==="object"&&t!==null&&t.$$typeof===ln&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
228
+
229
+ let root = createRoot(domContainer);
230
+ root.render(<App />);`),t.unstable_strictMode===!0&&(o=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(u=t.onUncaughtError),t.onCaughtError!==void 0&&(d=t.onCaughtError),t.onRecoverableError!==void 0&&(m=t.onRecoverableError)),t=NL(e,1,!1,null,null,o,i,null,u,d,m,ZL),e[Os]=t.current,Gg(e),new cy(t)},Ak.hydrateRoot=function(e,t,o){if(!w(e))throw Error("Target container is not a DOM element.");JL(e),t===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var i=!1,u="",d=$S,m=QS,g=ZS,S=null;return o!==null&&o!==void 0&&(o.unstable_strictMode===!0&&(i=!0),o.identifierPrefix!==void 0&&(u=o.identifierPrefix),o.onUncaughtError!==void 0&&(d=o.onUncaughtError),o.onCaughtError!==void 0&&(m=o.onCaughtError),o.onRecoverableError!==void 0&&(g=o.onRecoverableError),o.formState!==void 0&&(S=o.formState)),t=NL(e,1,!0,t,o!=null?o:null,i,u,S,d,m,g,ZL),t.context=qL(null),o=t.current,i=Qa(o),i=Ai(i),u=Ls(i),u.callback=null,Cs(o,u,i),Xo(i,"hydrateRoot()",null),o=i,t.current.lanes=o,ms(t,o),nn(t),e[Os]=t.current,Gg(e),new Pf(t)},Ak.version="19.2.5",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var XI=ni(function($H,YI){var _k=be(GI());YI.exports=_k});var bT=ni(function(HB){var Ll=be(ea());(function(){function a(R){if(R==null)return null;if(typeof R==="function")return R.$$typeof===q?null:R.displayName||R.name||null;if(typeof R==="string")return R;switch(R){case D:return"Fragment";case z:return"Profiler";case w:return"StrictMode";case X:return"Suspense";case oe:return"SuspenseList";case re:return"Activity"}if(typeof R==="object")switch(typeof R.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),R.$$typeof){case M:return"Portal";case Q:return R.displayName||"Context";case N:return(R._context.displayName||"Context")+".Consumer";case Z:var W=R.render;return R=R.displayName,R||(R=W.displayName||W.name||"",R=R!==""?"ForwardRef("+R+")":"ForwardRef"),R;case V:return W=R.displayName||null,W!==null?W:a(R.type)||"Memo";case J:W=R._payload,R=R._init;try{return a(R(W))}catch(fe){}}return null}function n(R){return""+R}function s(R){try{n(R);var W=!1}catch(Be){W=!0}if(W){W=console;var fe=W.error,he=typeof Symbol==="function"&&Symbol.toStringTag&&R[Symbol.toStringTag]||R.constructor.name||"Object";return fe.call(W,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",he),n(R)}}function l(R){if(R===D)return"<>";if(typeof R==="object"&&R!==null&&R.$$typeof===J)return"<...>";try{var W=a(R);return W?"<"+W+">":"<...>"}catch(fe){return"<...>"}}function r(){var R=ce.A;return R===null?null:R.getOwner()}function c(){return Error("react-stack-top-frame")}function f(R){if(ye.call(R,"key")){var W=Object.getOwnPropertyDescriptor(R,"key").get;if(W&&W.isReactWarning)return!1}return R.key!==void 0}function h(R,W){function fe(){G||(G=!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)",W))}fe.isReactWarning=!0,Object.defineProperty(R,"key",{get:fe,configurable:!0})}function p(){var R=a(this.type);return se[R]||(se[R]=!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.")),R=this.props.ref,R!==void 0?R:null}function y(R,W,fe,he,Be,Dt){var Te=fe.ref;return R={$$typeof:I,type:R,key:W,props:fe,_owner:he},(Te!==void 0?Te:null)!==null?Object.defineProperty(R,"ref",{enumerable:!1,get:p}):Object.defineProperty(R,"ref",{enumerable:!1,value:null}),R._store={},Object.defineProperty(R._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(R,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(R,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Be}),Object.defineProperty(R,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Dt}),Object.freeze&&(Object.freeze(R.props),Object.freeze(R)),R}function b(R,W,fe,he,Be,Dt){var Te=W.children;if(Te!==void 0)if(he)if(Se(Te)){for(he=0;he<Te.length;he++)x(Te[he]);Object.freeze&&Object.freeze(Te)}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 x(Te);if(ye.call(W,"key")){Te=a(R);var Pt=Object.keys(W).filter(function(Mo){return Mo!=="key"});he=0<Pt.length?"{key: someKey, "+Pt.join(": ..., ")+": ...}":"{key: someKey}",Ee[Te+he]||(Pt=0<Pt.length?"{"+Pt.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
231
+ let props = %s;
232
+ <%s {...props} />
233
+ React keys must be passed directly to JSX without using spread:
234
+ let props = %s;
235
+ <%s key={someKey} {...props} />`,he,Te,Pt,Te),Ee[Te+he]=!0)}if(Te=null,fe!==void 0&&(s(fe),Te=""+fe),f(W)&&(s(W.key),Te=""+W.key),"key"in W){fe={};for(var ca in W)ca!=="key"&&(fe[ca]=W[ca])}else fe=W;return Te&&h(fe,typeof R==="function"?R.displayName||R.name||"Unknown":R),y(R,Te,fe,r(),Be,Dt)}function x(R){v(R)?R._store&&(R._store.validated=1):typeof R==="object"&&R!==null&&R.$$typeof===J&&(R._payload.status==="fulfilled"?v(R._payload.value)&&R._payload.value._store&&(R._payload.value._store.validated=1):R._store&&(R._store.validated=1))}function v(R){return typeof R==="object"&&R!==null&&R.$$typeof===I}var I=Symbol.for("react.transitional.element"),M=Symbol.for("react.portal"),D=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),z=Symbol.for("react.profiler"),N=Symbol.for("react.consumer"),Q=Symbol.for("react.context"),Z=Symbol.for("react.forward_ref"),X=Symbol.for("react.suspense"),oe=Symbol.for("react.suspense_list"),V=Symbol.for("react.memo"),J=Symbol.for("react.lazy"),re=Symbol.for("react.activity"),q=Symbol.for("react.client.reference"),ce=Ll.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ye=Object.prototype.hasOwnProperty,Se=Array.isArray,Me=console.createTask?console.createTask:function(){return null};Ll={react_stack_bottom_frame:function(R){return R()}};var G,se={},de=Ll.react_stack_bottom_frame.bind(Ll,c)(),Ve=Me(l(c)),Ee={};HB.Fragment=D,HB.jsx=function(R,W,fe){var he=1e4>ce.recentlyCreatedOwnerStacks++;return b(R,W,fe,!1,he?Error("react-stack-top-frame"):de,he?Me(l(R)):Ve)},HB.jsxs=function(R,W,fe){var he=1e4>ce.recentlyCreatedOwnerStacks++;return b(R,W,fe,!0,he?Error("react-stack-top-frame"):de,he?Me(l(R)):Ve)}})()});var nt=ni(function(_P){var wl=be(ea());(function(){function a(R){if(R==null)return null;if(typeof R==="function")return R.$$typeof===q?null:R.displayName||R.name||null;if(typeof R==="string")return R;switch(R){case D:return"Fragment";case z:return"Profiler";case w:return"StrictMode";case X:return"Suspense";case oe:return"SuspenseList";case re:return"Activity"}if(typeof R==="object")switch(typeof R.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),R.$$typeof){case M:return"Portal";case Q:return R.displayName||"Context";case N:return(R._context.displayName||"Context")+".Consumer";case Z:var W=R.render;return R=R.displayName,R||(R=W.displayName||W.name||"",R=R!==""?"ForwardRef("+R+")":"ForwardRef"),R;case V:return W=R.displayName||null,W!==null?W:a(R.type)||"Memo";case J:W=R._payload,R=R._init;try{return a(R(W))}catch(fe){}}return null}function n(R){return""+R}function s(R){try{n(R);var W=!1}catch(Be){W=!0}if(W){W=console;var fe=W.error,he=typeof Symbol==="function"&&Symbol.toStringTag&&R[Symbol.toStringTag]||R.constructor.name||"Object";return fe.call(W,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",he),n(R)}}function l(R){if(R===D)return"<>";if(typeof R==="object"&&R!==null&&R.$$typeof===J)return"<...>";try{var W=a(R);return W?"<"+W+">":"<...>"}catch(fe){return"<...>"}}function r(){var R=ce.A;return R===null?null:R.getOwner()}function c(){return Error("react-stack-top-frame")}function f(R){if(ye.call(R,"key")){var W=Object.getOwnPropertyDescriptor(R,"key").get;if(W&&W.isReactWarning)return!1}return R.key!==void 0}function h(R,W){function fe(){G||(G=!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)",W))}fe.isReactWarning=!0,Object.defineProperty(R,"key",{get:fe,configurable:!0})}function p(){var R=a(this.type);return se[R]||(se[R]=!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.")),R=this.props.ref,R!==void 0?R:null}function y(R,W,fe,he,Be,Dt){var Te=fe.ref;return R={$$typeof:I,type:R,key:W,props:fe,_owner:he},(Te!==void 0?Te:null)!==null?Object.defineProperty(R,"ref",{enumerable:!1,get:p}):Object.defineProperty(R,"ref",{enumerable:!1,value:null}),R._store={},Object.defineProperty(R._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(R,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(R,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Be}),Object.defineProperty(R,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Dt}),Object.freeze&&(Object.freeze(R.props),Object.freeze(R)),R}function b(R,W,fe,he,Be,Dt){var Te=W.children;if(Te!==void 0)if(he)if(Se(Te)){for(he=0;he<Te.length;he++)x(Te[he]);Object.freeze&&Object.freeze(Te)}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 x(Te);if(ye.call(W,"key")){Te=a(R);var Pt=Object.keys(W).filter(function(Mo){return Mo!=="key"});he=0<Pt.length?"{key: someKey, "+Pt.join(": ..., ")+": ...}":"{key: someKey}",Ee[Te+he]||(Pt=0<Pt.length?"{"+Pt.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
236
+ let props = %s;
237
+ <%s {...props} />
238
+ React keys must be passed directly to JSX without using spread:
239
+ let props = %s;
240
+ <%s key={someKey} {...props} />`,he,Te,Pt,Te),Ee[Te+he]=!0)}if(Te=null,fe!==void 0&&(s(fe),Te=""+fe),f(W)&&(s(W.key),Te=""+W.key),"key"in W){fe={};for(var ca in W)ca!=="key"&&(fe[ca]=W[ca])}else fe=W;return Te&&h(fe,typeof R==="function"?R.displayName||R.name||"Unknown":R),y(R,Te,fe,r(),Be,Dt)}function x(R){v(R)?R._store&&(R._store.validated=1):typeof R==="object"&&R!==null&&R.$$typeof===J&&(R._payload.status==="fulfilled"?v(R._payload.value)&&R._payload.value._store&&(R._payload.value._store.validated=1):R._store&&(R._store.validated=1))}function v(R){return typeof R==="object"&&R!==null&&R.$$typeof===I}var I=Symbol.for("react.transitional.element"),M=Symbol.for("react.portal"),D=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),z=Symbol.for("react.profiler"),N=Symbol.for("react.consumer"),Q=Symbol.for("react.context"),Z=Symbol.for("react.forward_ref"),X=Symbol.for("react.suspense"),oe=Symbol.for("react.suspense_list"),V=Symbol.for("react.memo"),J=Symbol.for("react.lazy"),re=Symbol.for("react.activity"),q=Symbol.for("react.client.reference"),ce=wl.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ye=Object.prototype.hasOwnProperty,Se=Array.isArray,Me=console.createTask?console.createTask:function(){return null};wl={react_stack_bottom_frame:function(R){return R()}};var G,se={},de=wl.react_stack_bottom_frame.bind(wl,c)(),Ve=Me(l(c)),Ee={};_P.Fragment=D,_P.jsxDEV=function(R,W,fe,he){var Be=1e4>ce.recentlyCreatedOwnerStacks++;return b(R,W,fe,he,Be?Error("react-stack-top-frame"):de,Be?Me(l(R)):Ve)}})()});var BA=be(XI(),1);var ua=be(ea(),1);async function WI(a="24h"){let n=await fetch(`/api/stats/overview?range=${encodeURIComponent(a)}`);if(!n.ok)throw Error("Failed to fetch overview stats");return n.json()}async function $I(a="24h"){let n=await fetch(`/api/stats/model-dashboard?range=${encodeURIComponent(a)}`);if(!n.ok)throw Error("Failed to fetch model stats");return n.json()}async function QI(a="24h"){let n=await fetch(`/api/stats/costs?range=${encodeURIComponent(a)}`);if(!n.ok)throw Error("Failed to fetch cost stats");return n.json()}async function ZI(a=50){let n=await fetch(`/api/stats/recent?limit=${a}`);if(!n.ok)throw Error("Failed to fetch recent requests");return n.json()}async function JI(a=50){let n=await fetch(`/api/stats/errors?limit=${a}`);if(!n.ok)throw Error("Failed to fetch recent errors");return n.json()}async function KI(a){let n=await fetch(`/api/request/${a}`);if(!n.ok)throw Error("Failed to fetch request details");return n.json()}async function ew(){let a=await fetch("/api/sync",{method:"POST"});if(!a.ok)throw Error("Failed to sync");return a.json()}async function tw(a="24h"){let n=await fetch(`/api/stats/behavior?range=${encodeURIComponent(a)}`);if(!n.ok)throw Error("Failed to fetch behavior stats");return n.json()}/*!
241
+ * @kurkle/color v0.3.4
242
+ * https://github.com/kurkle/color#readme
243
+ * (c) 2024 Jukka Kurkela
244
+ * Released under the MIT License
245
+ */function Uc(a){return a+0.5|0}var si=(a,n,s)=>Math.max(Math.min(a,s),n);function Hc(a){return si(Uc(a*2.55),0,255)}function ii(a){return si(Uc(a*255),0,255)}function es(a){return si(Uc(a/2.55)/100,0,1)}function aw(a){return si(Uc(a*100),0,100)}var Co={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},qb=[..."0123456789ABCDEF"],Dk=(a)=>qb[a&15],Rk=(a)=>qb[(a&240)>>4]+qb[a&15],jh=(a)=>(a&240)>>4===(a&15),kk=(a)=>jh(a.r)&&jh(a.g)&&jh(a.b)&&jh(a.a);function Ok(a){var n=a.length,s;if(a[0]==="#"){if(n===4||n===5)s={r:255&Co[a[1]]*17,g:255&Co[a[2]]*17,b:255&Co[a[3]]*17,a:n===5?Co[a[4]]*17:255};else if(n===7||n===9)s={r:Co[a[1]]<<4|Co[a[2]],g:Co[a[3]]<<4|Co[a[4]],b:Co[a[5]]<<4|Co[a[6]],a:n===9?Co[a[7]]<<4|Co[a[8]]:255}}return s}var Ek=(a,n)=>a<255?n(a):"";function Bk(a){var n=kk(a)?Dk:Rk;return a?"#"+n(a.r)+n(a.g)+n(a.b)+Ek(a.a,n):void 0}var Pk=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function iw(a,n,s){let l=n*Math.min(s,1-s),r=(c,f=(c+a/30)%12)=>s-l*Math.max(Math.min(f-3,9-f,1),-1);return[r(0),r(8),r(4)]}function zk(a,n,s){let l=(r,c=(r+a/60)%6)=>s-s*n*Math.max(Math.min(c,4-c,1),0);return[l(5),l(3),l(1)]}function Hk(a,n,s){let l=iw(a,1,0.5),r;if(n+s>1)r=1/(n+s),n*=r,s*=r;for(r=0;r<3;r++)l[r]*=1-n-s,l[r]+=n;return l}function Uk(a,n,s,l,r){if(a===r)return(n-s)/l+(n<s?6:0);if(n===r)return(s-a)/l+2;return(a-n)/l+4}function Vb(a){let s=a.r/255,l=a.g/255,r=a.b/255,c=Math.max(s,l,r),f=Math.min(s,l,r),h=(c+f)/2,p,y,b;if(c!==f)b=c-f,y=h>0.5?b/(2-c-f):b/(c+f),p=Uk(s,l,r,b,c),p=p*60+0.5;return[p|0,y||0,h]}function jb(a,n,s,l){return(Array.isArray(n)?a(n[0],n[1],n[2]):a(n,s,l)).map(ii)}function Gb(a,n,s){return jb(iw,a,n,s)}function Fk(a,n,s){return jb(Hk,a,n,s)}function Nk(a,n,s){return jb(zk,a,n,s)}function lw(a){return(a%360+360)%360}function qk(a){let n=Pk.exec(a),s=255,l;if(!n)return;if(n[5]!==l)s=n[6]?Hc(+n[5]):ii(+n[5]);let r=lw(+n[2]),c=+n[3]/100,f=+n[4]/100;if(n[1]==="hwb")l=Fk(r,c,f);else if(n[1]==="hsv")l=Nk(r,c,f);else l=Gb(r,c,f);return{r:l[0],g:l[1],b:l[2],a:s}}function Vk(a,n){var s=Vb(a);s[0]=lw(s[0]+n),s=Gb(s),a.r=s[0],a.g=s[1],a.b=s[2]}function jk(a){if(!a)return;let n=Vb(a),s=n[0],l=aw(n[1]),r=aw(n[2]);return a.a<255?`hsla(${s}, ${l}%, ${r}%, ${es(a.a)})`:`hsl(${s}, ${l}%, ${r}%)`}var ow={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"},nw={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 Gk(){let a={},n=Object.keys(nw),s=Object.keys(ow),l,r,c,f,h;for(l=0;l<n.length;l++){f=h=n[l];for(r=0;r<s.length;r++)c=s[r],h=h.replace(c,ow[c]);c=parseInt(nw[f],16),a[h]=[c>>16&255,c>>8&255,c&255]}return a}var Gh;function Yk(a){if(!Gh)Gh=Gk(),Gh.transparent=[0,0,0,0];let n=Gh[a.toLowerCase()];return n&&{r:n[0],g:n[1],b:n[2],a:n.length===4?n[3]:255}}var Xk=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function Wk(a){let n=Xk.exec(a),s=255,l,r,c;if(!n)return;if(n[7]!==l){let f=+n[7];s=n[8]?Hc(f):si(f*255,0,255)}return l=+n[1],r=+n[3],c=+n[5],l=255&(n[2]?Hc(l):si(l,0,255)),r=255&(n[4]?Hc(r):si(r,0,255)),c=255&(n[6]?Hc(c):si(c,0,255)),{r:l,g:r,b:c,a:s}}function $k(a){return a&&(a.a<255?`rgba(${a.r}, ${a.g}, ${a.b}, ${es(a.a)})`:`rgb(${a.r}, ${a.g}, ${a.b})`)}var Nb=(a)=>a<=0.0031308?a*12.92:Math.pow(a,0.4166666666666667)*1.055-0.055,Pr=(a)=>a<=0.04045?a/12.92:Math.pow((a+0.055)/1.055,2.4);function Qk(a,n,s){let l=Pr(es(a.r)),r=Pr(es(a.g)),c=Pr(es(a.b));return{r:ii(Nb(l+s*(Pr(es(n.r))-l))),g:ii(Nb(r+s*(Pr(es(n.g))-r))),b:ii(Nb(c+s*(Pr(es(n.b))-c))),a:a.a+s*(n.a-a.a)}}function Yh(a,n,s){if(a){let l=Vb(a);l[n]=Math.max(0,Math.min(l[n]+l[n]*s,n===0?360:1)),l=Gb(l),a.r=l[0],a.g=l[1],a.b=l[2]}}function rw(a,n){return a?Object.assign(n||{},a):a}function sw(a){var n={r:0,g:0,b:0,a:255};if(Array.isArray(a)){if(a.length>=3){if(n={r:a[0],g:a[1],b:a[2],a:255},a.length>3)n.a=ii(a[3])}}else n=rw(a,{r:0,g:0,b:0,a:1}),n.a=ii(n.a);return n}function Zk(a){if(a.charAt(0)==="r")return Wk(a);return qk(a)}class zr{constructor(a){if(a instanceof zr)return a;let n=typeof a,s;if(n==="object")s=sw(a);else if(n==="string")s=Ok(a)||Yk(a)||Zk(a);this._rgb=s,this._valid=!!s}get valid(){return this._valid}get rgb(){var a=rw(this._rgb);if(a)a.a=es(a.a);return a}set rgb(a){this._rgb=sw(a)}rgbString(){return this._valid?$k(this._rgb):void 0}hexString(){return this._valid?Bk(this._rgb):void 0}hslString(){return this._valid?jk(this._rgb):void 0}mix(a,n){if(a){let s=this.rgb,l=a.rgb,r,c=n===r?0.5:n,f=2*c-1,h=s.a-l.a,p=((f*h===-1?f:(f+h)/(1+f*h))+1)/2;r=1-p,s.r=255&p*s.r+r*l.r+0.5,s.g=255&p*s.g+r*l.g+0.5,s.b=255&p*s.b+r*l.b+0.5,s.a=c*s.a+(1-c)*l.a,this.rgb=s}return this}interpolate(a,n){if(a)this._rgb=Qk(this._rgb,a._rgb,n);return this}clone(){return new zr(this.rgb)}alpha(a){return this._rgb.a=ii(a),this}clearer(a){let n=this._rgb;return n.a*=1-a,this}greyscale(){let a=this._rgb,n=Uc(a.r*0.3+a.g*0.59+a.b*0.11);return a.r=a.g=a.b=n,this}opaquer(a){let n=this._rgb;return n.a*=1+a,this}negate(){let a=this._rgb;return a.r=255-a.r,a.g=255-a.g,a.b=255-a.b,this}lighten(a){return Yh(this._rgb,2,a),this}darken(a){return Yh(this._rgb,2,-a),this}saturate(a){return Yh(this._rgb,1,a),this}desaturate(a){return Yh(this._rgb,1,-a),this}rotate(a){return Vk(this._rgb,a),this}}/*!
246
+ * Chart.js v4.5.1
247
+ * https://www.chartjs.org
248
+ * (c) 2025 Chart.js Contributors
249
+ * Released under the MIT License
250
+ */function Sn(){}var xw=(()=>{let a=0;return()=>a++})();function Ke(a){return a===null||a===void 0}function St(a){if(Array.isArray&&Array.isArray(a))return!0;let n=Object.prototype.toString.call(a);if(n.slice(0,7)==="[object"&&n.slice(-6)==="Array]")return!0;return!1}function $e(a){return a!==null&&Object.prototype.toString.call(a)==="[object Object]"}function At(a){return(typeof a==="number"||a instanceof Number)&&isFinite(+a)}function Ha(a,n){return At(a)?a:n}function Ue(a,n){return typeof a>"u"?n:a}var Sw=(a,n)=>typeof a==="string"&&a.endsWith("%")?parseFloat(a)/100*n:+a;function gt(a,n,s){if(a&&typeof a.call==="function")return a.apply(s,n)}function lt(a,n,s,l){let r,c,f;if(St(a))if(c=a.length,l)for(r=c-1;r>=0;r--)n.call(s,a[r],r);else for(r=0;r<c;r++)n.call(s,a[r],r);else if($e(a)){f=Object.keys(a),c=f.length;for(r=0;r<c;r++)n.call(s,a[f[r]],f[r])}}function qc(a,n){let s,l,r,c;if(!a||!n||a.length!==n.length)return!1;for(s=0,l=a.length;s<l;++s)if(r=a[s],c=n[s],r.datasetIndex!==c.datasetIndex||r.index!==c.index)return!1;return!0}function Qh(a){if(St(a))return a.map(Qh);if($e(a)){let n=Object.create(null),s=Object.keys(a),l=s.length,r=0;for(;r<l;++r)n[s[r]]=Qh(a[s[r]]);return n}return a}function vw(a){return["__proto__","prototype","constructor"].indexOf(a)===-1}function Jk(a,n,s,l){if(!vw(a))return;let r=n[a],c=s[a];if($e(r)&&$e(c))Ur(r,c,l);else n[a]=Qh(c)}function Ur(a,n,s){let l=St(n)?n:[n],r=l.length;if(!$e(a))return a;s=s||{};let c=s.merger||Jk,f;for(let h=0;h<r;++h){if(f=l[h],!$e(f))continue;let p=Object.keys(f);for(let y=0,b=p.length;y<b;++y)c(p[y],a,f,s)}return a}function Nr(a,n){return Ur(a,n,{merger:Kk})}function Kk(a,n,s){if(!vw(a))return;let l=n[a],r=s[a];if($e(l)&&$e(r))Nr(l,r);else if(!Object.prototype.hasOwnProperty.call(n,a))n[a]=Qh(r)}var uw={"":(a)=>a,x:(a)=>a.x,y:(a)=>a.y};function e2(a){let n=a.split("."),s=[],l="";for(let r of n)if(l+=r,l.endsWith("\\"))l=l.slice(0,-1)+".";else s.push(l),l="";return s}function t2(a){let n=e2(a);return(s)=>{for(let l of n){if(l==="")break;s=s&&s[l]}return s}}function yl(a,n){return(uw[n]||(uw[n]=t2(n)))(a)}function ep(a){return a.charAt(0).toUpperCase()+a.slice(1)}var qr=(a)=>typeof a<"u",ts=(a)=>typeof a==="function",Wb=(a,n)=>{if(a.size!==n.size)return!1;for(let s of a)if(!n.has(s))return!1;return!0};function Lw(a){return a.type==="mouseup"||a.type==="click"||a.type==="contextmenu"}var Bt=Math.PI,Pa=2*Bt,a2=Pa+Bt,Zh=Number.POSITIVE_INFINITY,o2=Bt/180,Ba=Bt/2,pl=Bt/4,cw=Bt*2/3,as=Math.log10,Ho=Math.sign;function Vr(a,n,s){return Math.abs(a-n)<s}function $b(a){let n=Math.round(a);a=Vr(a,n,a/1000)?n:a;let s=Math.pow(10,Math.floor(as(a))),l=a/s;return(l<=1?1:l<=2?2:l<=5?5:10)*s}function Cw(a){let n=[],s=Math.sqrt(a),l;for(l=1;l<s;l++)if(a%l===0)n.push(l),n.push(a/l);if(s===(s|0))n.push(s);return n.sort((r,c)=>r-c).pop(),n}function n2(a){return typeof a==="symbol"||typeof a==="object"&&a!==null&&!((Symbol.toPrimitive in a)||("toString"in a)||("valueOf"in a))}function jr(a){return!n2(a)&&!isNaN(parseFloat(a))&&isFinite(a)}function Iw(a,n){let s=Math.round(a);return s-n<=a&&s+n>=a}function Qb(a,n,s){let l,r,c;for(l=0,r=a.length;l<r;l++)if(c=a[l][s],!isNaN(c))n.min=Math.min(n.min,c),n.max=Math.max(n.max,c)}function os(a){return a*(Bt/180)}function tp(a){return a*(180/Bt)}function Zb(a){if(!At(a))return;let n=1,s=0;while(Math.round(a*n)/n!==a)n*=10,s++;return s}function ww(a,n){let s=n.x-a.x,l=n.y-a.y,r=Math.sqrt(s*s+l*l),c=Math.atan2(l,s);if(c<-0.5*Bt)c+=Pa;return{angle:c,distance:r}}function Jh(a,n){return Math.sqrt(Math.pow(n.x-a.x,2)+Math.pow(n.y-a.y,2))}function s2(a,n){return(a-n+a2)%Pa-Bt}function Ea(a){return(a%Pa+Pa)%Pa}function Jb(a,n,s,l){let r=Ea(a),c=Ea(n),f=Ea(s),h=Ea(c-r),p=Ea(f-r),y=Ea(r-c),b=Ea(r-f);return r===c||r===f||l&&c===f||h>p&&y<b}function za(a,n,s){return Math.max(n,Math.min(s,a))}function Mw(a){return za(a,-32768,32767)}function ns(a,n,s,l=0.000001){return a>=Math.min(n,s)-l&&a<=Math.max(n,s)+l}function ap(a,n,s){s=s||((f)=>a[f]<n);let l=a.length-1,r=0,c;while(l-r>1)if(c=r+l>>1,s(c))r=c;else l=c;return{lo:r,hi:l}}var ri=(a,n,s,l)=>ap(a,s,l?(r)=>{let c=a[r][n];return c<s||c===s&&a[r+1][n]===s}:(r)=>a[r][n]<s),Tw=(a,n,s)=>ap(a,s,(l)=>a[l][n]>=s);function Aw(a,n,s){let l=0,r=a.length;while(l<r&&a[l]<n)l++;while(r>l&&a[r-1]>s)r--;return l>0||r<a.length?a.slice(l,r):a}var _w=["push","pop","shift","splice","unshift"];function Dw(a,n){if(a._chartjs){a._chartjs.listeners.push(n);return}Object.defineProperty(a,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[n]}}),_w.forEach((s)=>{let l="_onData"+ep(s),r=a[s];Object.defineProperty(a,s,{configurable:!0,enumerable:!1,value(...c){let f=r.apply(this,c);return a._chartjs.listeners.forEach((h)=>{if(typeof h[l]==="function")h[l](...c)}),f}})})}function Kb(a,n){let s=a._chartjs;if(!s)return;let l=s.listeners,r=l.indexOf(n);if(r!==-1)l.splice(r,1);if(l.length>0)return;_w.forEach((c)=>{delete a[c]}),delete a._chartjs}function ex(a){let n=new Set(a);if(n.size===a.length)return a;return Array.from(n)}var tx=function(){if(typeof window>"u")return function(a){return a()};return window.requestAnimationFrame}();function ax(a,n){let s=[],l=!1;return function(...r){if(s=r,!l)l=!0,tx.call(window,()=>{l=!1,a.apply(n,s)})}}function Rw(a,n){let s;return function(...l){if(n)clearTimeout(s),s=setTimeout(a,n,l);else a.apply(this,l);return n}}var op=(a)=>a==="start"?"left":a==="end"?"right":"center",ia=(a,n,s)=>a==="start"?n:a==="end"?s:(n+s)/2,kw=(a,n,s,l)=>a===(l?"left":"right")?s:a==="center"?(n+s)/2:n;function Ow(a,n,s){let l=n.length,r=0,c=l;if(a._sorted){let{iScale:f,vScale:h,_parsed:p}=a,y=a.dataset?a.dataset.options?a.dataset.options.spanGaps:null:null,b=f.axis,{min:x,max:v,minDefined:I,maxDefined:M}=f.getUserBounds();if(I){if(r=Math.min(ri(p,b,x).lo,s?l:ri(n,b,f.getPixelForValue(x)).lo),y){let D=p.slice(0,r+1).reverse().findIndex((w)=>!Ke(w[h.axis]));r-=Math.max(0,D)}r=za(r,0,l-1)}if(M){let D=Math.max(ri(p,f.axis,v,!0).hi+1,s?0:ri(n,b,f.getPixelForValue(v),!0).hi+1);if(y){let w=p.slice(D-1).findIndex((z)=>!Ke(z[h.axis]));D+=Math.max(0,w)}c=za(D,r,l)-r}else c=l-r}return{start:r,count:c}}function Ew(a){let{xScale:n,yScale:s,_scaleRanges:l}=a,r={xmin:n.min,xmax:n.max,ymin:s.min,ymax:s.max};if(!l)return a._scaleRanges=r,!0;let c=l.xmin!==n.min||l.xmax!==n.max||l.ymin!==s.min||l.ymax!==s.max;return Object.assign(l,r),c}var Xh=(a)=>a===0||a===1,dw=(a,n,s)=>-(Math.pow(2,10*(a-=1))*Math.sin((a-n)*Pa/s)),fw=(a,n,s)=>Math.pow(2,-10*a)*Math.sin((a-n)*Pa/s)+1,Hr={linear:(a)=>a,easeInQuad:(a)=>a*a,easeOutQuad:(a)=>-a*(a-2),easeInOutQuad:(a)=>(a/=0.5)<1?0.5*a*a:-0.5*(--a*(a-2)-1),easeInCubic:(a)=>a*a*a,easeOutCubic:(a)=>(a-=1)*a*a+1,easeInOutCubic:(a)=>(a/=0.5)<1?0.5*a*a*a:0.5*((a-=2)*a*a+2),easeInQuart:(a)=>a*a*a*a,easeOutQuart:(a)=>-((a-=1)*a*a*a-1),easeInOutQuart:(a)=>(a/=0.5)<1?0.5*a*a*a*a:-0.5*((a-=2)*a*a*a-2),easeInQuint:(a)=>a*a*a*a*a,easeOutQuint:(a)=>(a-=1)*a*a*a*a+1,easeInOutQuint:(a)=>(a/=0.5)<1?0.5*a*a*a*a*a:0.5*((a-=2)*a*a*a*a+2),easeInSine:(a)=>-Math.cos(a*Ba)+1,easeOutSine:(a)=>Math.sin(a*Ba),easeInOutSine:(a)=>-0.5*(Math.cos(Bt*a)-1),easeInExpo:(a)=>a===0?0:Math.pow(2,10*(a-1)),easeOutExpo:(a)=>a===1?1:-Math.pow(2,-10*a)+1,easeInOutExpo:(a)=>Xh(a)?a:a<0.5?0.5*Math.pow(2,10*(a*2-1)):0.5*(-Math.pow(2,-10*(a*2-1))+2),easeInCirc:(a)=>a>=1?a:-(Math.sqrt(1-a*a)-1),easeOutCirc:(a)=>Math.sqrt(1-(a-=1)*a),easeInOutCirc:(a)=>(a/=0.5)<1?-0.5*(Math.sqrt(1-a*a)-1):0.5*(Math.sqrt(1-(a-=2)*a)+1),easeInElastic:(a)=>Xh(a)?a:dw(a,0.075,0.3),easeOutElastic:(a)=>Xh(a)?a:fw(a,0.075,0.3),easeInOutElastic(a){return Xh(a)?a:a<0.5?0.5*dw(a*2,0.1125,0.45):0.5+0.5*fw(a*2-1,0.1125,0.45)},easeInBack(a){return a*a*(2.70158*a-1.70158)},easeOutBack(a){return(a-=1)*a*(2.70158*a+1.70158)+1},easeInOutBack(a){let n=1.70158;if((a/=0.5)<1)return 0.5*(a*a*(((n*=1.525)+1)*a-n));return 0.5*((a-=2)*a*(((n*=1.525)+1)*a+n)+2)},easeInBounce:(a)=>1-Hr.easeOutBounce(1-a),easeOutBounce(a){if(a<0.36363636363636365)return 7.5625*a*a;if(a<0.7272727272727273)return 7.5625*(a-=0.5454545454545454)*a+0.75;if(a<0.9090909090909091)return 7.5625*(a-=0.8181818181818182)*a+0.9375;return 7.5625*(a-=0.9545454545454546)*a+0.984375},easeInOutBounce:(a)=>a<0.5?Hr.easeInBounce(a*2)*0.5:Hr.easeOutBounce(a*2-1)*0.5+0.5};function ox(a){if(a&&typeof a==="object"){let n=a.toString();return n==="[object CanvasPattern]"||n==="[object CanvasGradient]"}return!1}function nx(a){return ox(a)?a:new zr(a)}function Yb(a){return ox(a)?a:new zr(a).saturate(0.5).darken(0.1).hexString()}var i2=["x","y","borderWidth","radius","tension"],l2=["color","borderColor","backgroundColor"];function r2(a){a.set("animation",{delay:void 0,duration:1000,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),a.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:(n)=>n!=="onProgress"&&n!=="onComplete"&&n!=="fn"}),a.set("animations",{colors:{type:"color",properties:l2},numbers:{type:"number",properties:i2}}),a.describe("animations",{_fallback:"animation"}),a.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:(n)=>n|0}}}})}function u2(a){a.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}var hw=new Map;function c2(a,n){n=n||{};let s=a+JSON.stringify(n),l=hw.get(s);if(!l)l=new Intl.NumberFormat(a,n),hw.set(s,l);return l}function np(a,n,s){return c2(n,s).format(a)}var Bw={values(a){return St(a)?a:""+a},numeric(a,n,s){if(a===0)return"0";let l=this.chart.options.locale,r,c=a;if(s.length>1){let y=Math.max(Math.abs(s[0].value),Math.abs(s[s.length-1].value));if(y<0.0001||y>1000000000000000)r="scientific";c=d2(a,s)}let f=as(Math.abs(c)),h=isNaN(f)?1:Math.max(Math.min(-1*Math.floor(f),20),0),p={notation:r,minimumFractionDigits:h,maximumFractionDigits:h};return Object.assign(p,this.options.ticks.format),np(a,l,p)},logarithmic(a,n,s){if(a===0)return"0";let l=s[n].significand||a/Math.pow(10,Math.floor(as(a)));if([1,2,3,5,10,15].includes(l)||n>0.8*s.length)return Bw.numeric.call(this,a,n,s);return""}};function d2(a,n){let s=n.length>3?n[2].value-n[1].value:n[1].value-n[0].value;if(Math.abs(s)>=1&&a!==Math.floor(a))s=a-Math.floor(a);return s}var Vc={formatters:Bw};function f2(a){a.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:(n,s)=>s.lineWidth,tickColor:(n,s)=>s.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:Vc.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),a.route("scale.ticks","color","","color"),a.route("scale.grid","color","","borderColor"),a.route("scale.border","color","","borderColor"),a.route("scale.title","color","","color"),a.describe("scale",{_fallback:!1,_scriptable:(n)=>!n.startsWith("before")&&!n.startsWith("after")&&n!=="callback"&&n!=="parser",_indexable:(n)=>n!=="borderDash"&&n!=="tickBorderDash"&&n!=="dash"}),a.describe("scales",{_fallback:"scale"}),a.describe("scale.ticks",{_scriptable:(n)=>n!=="backdropPadding"&&n!=="callback",_indexable:(n)=>n!=="backdropPadding"})}var ci=Object.create(null),sp=Object.create(null);function Fc(a,n){if(!n)return a;let s=n.split(".");for(let l=0,r=s.length;l<r;++l){let c=s[l];a=a[c]||(a[c]=Object.create(null))}return a}function Xb(a,n,s){if(typeof n==="string")return Ur(Fc(a,n),s);return Ur(Fc(a,""),n)}class Pw{constructor(a,n){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=(s)=>s.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=(s,l)=>Yb(l.backgroundColor),this.hoverBorderColor=(s,l)=>Yb(l.borderColor),this.hoverColor=(s,l)=>Yb(l.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(a),this.apply(n)}set(a,n){return Xb(this,a,n)}get(a){return Fc(this,a)}describe(a,n){return Xb(sp,a,n)}override(a,n){return Xb(ci,a,n)}route(a,n,s,l){let r=Fc(this,a),c=Fc(this,s),f="_"+n;Object.defineProperties(r,{[f]:{value:r[n],writable:!0},[n]:{enumerable:!0,get(){let h=this[f],p=c[l];if($e(h))return Object.assign({},p,h);return Ue(h,p)},set(h){this[f]=h}}})}apply(a){a.forEach((n)=>n(this))}}var _t=new Pw({_scriptable:(a)=>!a.startsWith("on"),_indexable:(a)=>a!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[r2,u2,f2]);function h2(a){if(!a||Ke(a.size)||Ke(a.family))return null;return(a.style?a.style+" ":"")+(a.weight?a.weight+" ":"")+a.size+"px "+a.family}function Nc(a,n,s,l,r){let c=n[r];if(!c)c=n[r]=a.measureText(r).width,s.push(r);if(c>l)l=c;return l}function zw(a,n,s,l){l=l||{};let r=l.data=l.data||{},c=l.garbageCollect=l.garbageCollect||[];if(l.font!==n)r=l.data={},c=l.garbageCollect=[],l.font=n;a.save(),a.font=n;let f=0,h=s.length,p,y,b,x,v;for(p=0;p<h;p++)if(x=s[p],x!==void 0&&x!==null&&!St(x))f=Nc(a,r,c,f,x);else if(St(x)){for(y=0,b=x.length;y<b;y++)if(v=x[y],v!==void 0&&v!==null&&!St(v))f=Nc(a,r,c,f,v)}a.restore();let I=c.length/2;if(I>s.length){for(p=0;p<I;p++)delete r[c[p]];c.splice(0,I)}return f}function di(a,n,s){let l=a.currentDevicePixelRatio,r=s!==0?Math.max(s/2,0.5):0;return Math.round((n-r)*l)/l+r}function sx(a,n){if(!n&&!a)return;n=n||a.getContext("2d"),n.save(),n.resetTransform(),n.clearRect(0,0,a.width,a.height),n.restore()}function ip(a,n,s,l){ix(a,n,s,l,null)}function ix(a,n,s,l,r){let c,f,h,p,y,b,x,v,I=n.pointStyle,M=n.rotation,D=n.radius,w=(M||0)*o2;if(I&&typeof I==="object"){if(c=I.toString(),c==="[object HTMLImageElement]"||c==="[object HTMLCanvasElement]"){a.save(),a.translate(s,l),a.rotate(w),a.drawImage(I,-I.width/2,-I.height/2,I.width,I.height),a.restore();return}}if(isNaN(D)||D<=0)return;switch(a.beginPath(),I){default:if(r)a.ellipse(s,l,r/2,D,0,0,Pa);else a.arc(s,l,D,0,Pa);a.closePath();break;case"triangle":b=r?r/2:D,a.moveTo(s+Math.sin(w)*b,l-Math.cos(w)*D),w+=cw,a.lineTo(s+Math.sin(w)*b,l-Math.cos(w)*D),w+=cw,a.lineTo(s+Math.sin(w)*b,l-Math.cos(w)*D),a.closePath();break;case"rectRounded":y=D*0.516,p=D-y,f=Math.cos(w+pl)*p,x=Math.cos(w+pl)*(r?r/2-y:p),h=Math.sin(w+pl)*p,v=Math.sin(w+pl)*(r?r/2-y:p),a.arc(s-x,l-h,y,w-Bt,w-Ba),a.arc(s+v,l-f,y,w-Ba,w),a.arc(s+x,l+h,y,w,w+Ba),a.arc(s-v,l+f,y,w+Ba,w+Bt),a.closePath();break;case"rect":if(!M){p=Math.SQRT1_2*D,b=r?r/2:p,a.rect(s-b,l-p,2*b,2*p);break}w+=pl;case"rectRot":x=Math.cos(w)*(r?r/2:D),f=Math.cos(w)*D,h=Math.sin(w)*D,v=Math.sin(w)*(r?r/2:D),a.moveTo(s-x,l-h),a.lineTo(s+v,l-f),a.lineTo(s+x,l+h),a.lineTo(s-v,l+f),a.closePath();break;case"crossRot":w+=pl;case"cross":x=Math.cos(w)*(r?r/2:D),f=Math.cos(w)*D,h=Math.sin(w)*D,v=Math.sin(w)*(r?r/2:D),a.moveTo(s-x,l-h),a.lineTo(s+x,l+h),a.moveTo(s+v,l-f),a.lineTo(s-v,l+f);break;case"star":x=Math.cos(w)*(r?r/2:D),f=Math.cos(w)*D,h=Math.sin(w)*D,v=Math.sin(w)*(r?r/2:D),a.moveTo(s-x,l-h),a.lineTo(s+x,l+h),a.moveTo(s+v,l-f),a.lineTo(s-v,l+f),w+=pl,x=Math.cos(w)*(r?r/2:D),f=Math.cos(w)*D,h=Math.sin(w)*D,v=Math.sin(w)*(r?r/2:D),a.moveTo(s-x,l-h),a.lineTo(s+x,l+h),a.moveTo(s+v,l-f),a.lineTo(s-v,l+f);break;case"line":f=r?r/2:Math.cos(w)*D,h=Math.sin(w)*D,a.moveTo(s-f,l-h),a.lineTo(s+f,l+h);break;case"dash":a.moveTo(s,l),a.lineTo(s+Math.cos(w)*(r?r/2:D),l+Math.sin(w)*D);break;case!1:a.closePath();break}if(a.fill(),n.borderWidth>0)a.stroke()}function xn(a,n,s){return s=s||0.5,!n||a&&a.x>n.left-s&&a.x<n.right+s&&a.y>n.top-s&&a.y<n.bottom+s}function jc(a,n){a.save(),a.beginPath(),a.rect(n.left,n.top,n.right-n.left,n.bottom-n.top),a.clip()}function Gc(a){a.restore()}function Hw(a,n,s,l,r){if(!n)return a.lineTo(s.x,s.y);if(r==="middle"){let c=(n.x+s.x)/2;a.lineTo(c,n.y),a.lineTo(c,s.y)}else if(r==="after"!==!!l)a.lineTo(n.x,s.y);else a.lineTo(s.x,n.y);a.lineTo(s.x,s.y)}function Uw(a,n,s,l){if(!n)return a.lineTo(s.x,s.y);a.bezierCurveTo(l?n.cp1x:n.cp2x,l?n.cp1y:n.cp2y,l?s.cp2x:s.cp1x,l?s.cp2y:s.cp1y,s.x,s.y)}function p2(a,n){if(n.translation)a.translate(n.translation[0],n.translation[1]);if(!Ke(n.rotation))a.rotate(n.rotation);if(n.color)a.fillStyle=n.color;if(n.textAlign)a.textAlign=n.textAlign;if(n.textBaseline)a.textBaseline=n.textBaseline}function m2(a,n,s,l,r){if(r.strikethrough||r.underline){let c=a.measureText(l),f=n-c.actualBoundingBoxLeft,h=n+c.actualBoundingBoxRight,p=s-c.actualBoundingBoxAscent,y=s+c.actualBoundingBoxDescent,b=r.strikethrough?(p+y)/2:y;a.strokeStyle=a.fillStyle,a.beginPath(),a.lineWidth=r.decorationWidth||2,a.moveTo(f,b),a.lineTo(h,b),a.stroke()}}function g2(a,n){let s=a.fillStyle;a.fillStyle=n.color,a.fillRect(n.left,n.top,n.width,n.height),a.fillStyle=s}function fi(a,n,s,l,r,c={}){let f=St(n)?n:[n],h=c.strokeWidth>0&&c.strokeColor!=="",p,y;a.save(),a.font=r.string,p2(a,c);for(p=0;p<f.length;++p){if(y=f[p],c.backdrop)g2(a,c.backdrop);if(h){if(c.strokeColor)a.strokeStyle=c.strokeColor;if(!Ke(c.strokeWidth))a.lineWidth=c.strokeWidth;a.strokeText(y,s,l,c.maxWidth)}a.fillText(y,s,l,c.maxWidth),m2(a,s,l,y,c),l+=Number(r.lineHeight)}a.restore()}function Gr(a,n){let{x:s,y:l,w:r,h:c,radius:f}=n;a.arc(s+f.topLeft,l+f.topLeft,f.topLeft,1.5*Bt,Bt,!0),a.lineTo(s,l+c-f.bottomLeft),a.arc(s+f.bottomLeft,l+c-f.bottomLeft,f.bottomLeft,Bt,Ba,!0),a.lineTo(s+r-f.bottomRight,l+c),a.arc(s+r-f.bottomRight,l+c-f.bottomRight,f.bottomRight,Ba,0,!0),a.lineTo(s+r,l+f.topRight),a.arc(s+r-f.topRight,l+f.topRight,f.topRight,0,-Ba,!0),a.lineTo(s+f.topLeft,l)}var y2=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,b2=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function x2(a,n){let s=(""+a).match(y2);if(!s||s[1]==="normal")return n*1.2;switch(a=+s[2],s[3]){case"px":return a;case"%":a/=100;break}return n*a}var S2=(a)=>+a||0;function lx(a,n){let s={},l=$e(n),r=l?Object.keys(n):n,c=$e(a)?l?(f)=>Ue(a[f],a[n[f]]):(f)=>a[f]:()=>a;for(let f of r)s[f]=S2(c(f));return s}function rx(a){return lx(a,{top:"y",right:"x",bottom:"y",left:"x"})}function hi(a){return lx(a,["topLeft","topRight","bottomLeft","bottomRight"])}function la(a){let n=rx(a);return n.width=n.left+n.right,n.height=n.top+n.bottom,n}function jt(a,n){a=a||{},n=n||_t.font;let s=Ue(a.size,n.size);if(typeof s==="string")s=parseInt(s,10);let l=Ue(a.style,n.style);if(l&&!(""+l).match(b2))console.warn('Invalid font style specified: "'+l+'"'),l=void 0;let r={family:Ue(a.family,n.family),lineHeight:x2(Ue(a.lineHeight,n.lineHeight),s),size:s,style:l,weight:Ue(a.weight,n.weight),string:""};return r.string=h2(r),r}function Yc(a,n,s,l){let r=!0,c,f,h;for(c=0,f=a.length;c<f;++c){if(h=a[c],h===void 0)continue;if(n!==void 0&&typeof h==="function")h=h(n),r=!1;if(s!==void 0&&St(h))h=h[s%h.length],r=!1;if(h!==void 0){if(l&&!r)l.cacheable=!1;return h}}}function Fw(a,n,s){let{min:l,max:r}=a,c=Sw(n,(r-l)/2),f=(h,p)=>s&&h===0?0:h+p;return{min:f(l,-Math.abs(c)),max:f(r,c)}}function ss(a,n){return Object.assign(Object.create(a),n)}function lp(a,n=[""],s,l,r=()=>a[0]){let c=s||a;if(typeof l>"u")l=Vw("_fallback",a);let f={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:a,_rootScopes:c,_fallback:l,_getTarget:r,override:(h)=>lp([h,...a],n,c,l)};return new Proxy(f,{deleteProperty(h,p){return delete h[p],delete h._keys,delete a[0][p],!0},get(h,p){return Nw(h,p,()=>A2(p,n,a,h))},getOwnPropertyDescriptor(h,p){return Reflect.getOwnPropertyDescriptor(h._scopes[0],p)},getPrototypeOf(){return Reflect.getPrototypeOf(a[0])},has(h,p){return mw(h).includes(p)},ownKeys(h){return mw(h)},set(h,p,y){let b=h._storage||(h._storage=r());return h[p]=b[p]=y,delete h._keys,!0}})}function gl(a,n,s,l){let r={_cacheable:!1,_proxy:a,_context:n,_subProxy:s,_stack:new Set,_descriptors:ux(a,l),setContext:(c)=>gl(a,c,s,l),override:(c)=>gl(a.override(c),n,s,l)};return new Proxy(r,{deleteProperty(c,f){return delete c[f],delete a[f],!0},get(c,f,h){return Nw(c,f,()=>L2(c,f,h))},getOwnPropertyDescriptor(c,f){return c._descriptors.allKeys?Reflect.has(a,f)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(a,f)},getPrototypeOf(){return Reflect.getPrototypeOf(a)},has(c,f){return Reflect.has(a,f)},ownKeys(){return Reflect.ownKeys(a)},set(c,f,h){return a[f]=h,delete c[f],!0}})}function ux(a,n={scriptable:!0,indexable:!0}){let{_scriptable:s=n.scriptable,_indexable:l=n.indexable,_allKeys:r=n.allKeys}=a;return{allKeys:r,scriptable:s,indexable:l,isScriptable:ts(s)?s:()=>s,isIndexable:ts(l)?l:()=>l}}var v2=(a,n)=>a?a+ep(n):n,cx=(a,n)=>$e(n)&&a!=="adapters"&&(Object.getPrototypeOf(n)===null||n.constructor===Object);function Nw(a,n,s){if(Object.prototype.hasOwnProperty.call(a,n)||n==="constructor")return a[n];let l=s();return a[n]=l,l}function L2(a,n,s){let{_proxy:l,_context:r,_subProxy:c,_descriptors:f}=a,h=l[n];if(ts(h)&&f.isScriptable(n))h=C2(n,h,a,s);if(St(h)&&h.length)h=I2(n,h,a,f.isIndexable);if(cx(n,h))h=gl(h,r,c&&c[n],f);return h}function C2(a,n,s,l){let{_proxy:r,_context:c,_subProxy:f,_stack:h}=s;if(h.has(a))throw Error("Recursion detected: "+Array.from(h).join("->")+"->"+a);h.add(a);let p=n(c,f||l);if(h.delete(a),cx(a,p))p=dx(r._scopes,r,a,p);return p}function I2(a,n,s,l){let{_proxy:r,_context:c,_subProxy:f,_descriptors:h}=s;if(typeof c.index<"u"&&l(a))return n[c.index%n.length];else if($e(n[0])){let p=n,y=r._scopes.filter((b)=>b!==p);n=[];for(let b of p){let x=dx(y,r,a,b);n.push(gl(x,c,f&&f[a],h))}}return n}function qw(a,n,s){return ts(a)?a(n,s):a}var w2=(a,n)=>a===!0?n:typeof a==="string"?yl(n,a):void 0;function M2(a,n,s,l,r){for(let c of n){let f=w2(s,c);if(f){a.add(f);let h=qw(f._fallback,s,r);if(typeof h<"u"&&h!==s&&h!==l)return h}else if(f===!1&&typeof l<"u"&&s!==l)return null}return!1}function dx(a,n,s,l){let r=n._rootScopes,c=qw(n._fallback,s,l),f=[...a,...r],h=new Set;h.add(l);let p=pw(h,f,s,c||s,l);if(p===null)return!1;if(typeof c<"u"&&c!==s){if(p=pw(h,f,c,p,l),p===null)return!1}return lp(Array.from(h),[""],r,c,()=>T2(n,s,l))}function pw(a,n,s,l,r){while(s)s=M2(a,n,s,l,r);return s}function T2(a,n,s){let l=a._getTarget();if(!(n in l))l[n]={};let r=l[n];if(St(r)&&$e(s))return s;return r||{}}function A2(a,n,s,l){let r;for(let c of n)if(r=Vw(v2(c,a),s),typeof r<"u")return cx(a,r)?dx(s,l,a,r):r}function Vw(a,n){for(let s of n){if(!s)continue;let l=s[a];if(typeof l<"u")return l}}function mw(a){let n=a._keys;if(!n)n=a._keys=_2(a._scopes);return n}function _2(a){let n=new Set;for(let s of a)for(let l of Object.keys(s).filter((r)=>!r.startsWith("_")))n.add(l);return Array.from(n)}var D2=Number.EPSILON||0.00000000000001,Fr=(a,n)=>n<a.length&&!a[n].skip&&a[n],jw=(a)=>a==="x"?"y":"x";function R2(a,n,s,l){let r=a.skip?n:a,c=n,f=s.skip?n:s,h=Jh(c,r),p=Jh(f,c),y=h/(h+p),b=p/(h+p);y=isNaN(y)?0:y,b=isNaN(b)?0:b;let x=l*y,v=l*b;return{previous:{x:c.x-x*(f.x-r.x),y:c.y-x*(f.y-r.y)},next:{x:c.x+v*(f.x-r.x),y:c.y+v*(f.y-r.y)}}}function k2(a,n,s){let l=a.length,r,c,f,h,p,y=Fr(a,0);for(let b=0;b<l-1;++b){if(p=y,y=Fr(a,b+1),!p||!y)continue;if(Vr(n[b],0,D2)){s[b]=s[b+1]=0;continue}if(r=s[b]/n[b],c=s[b+1]/n[b],h=Math.pow(r,2)+Math.pow(c,2),h<=9)continue;f=3/Math.sqrt(h),s[b]=r*f*n[b],s[b+1]=c*f*n[b]}}function O2(a,n,s="x"){let l=jw(s),r=a.length,c,f,h,p=Fr(a,0);for(let y=0;y<r;++y){if(f=h,h=p,p=Fr(a,y+1),!h)continue;let b=h[s],x=h[l];if(f)c=(b-f[s])/3,h[`cp1${s}`]=b-c,h[`cp1${l}`]=x-c*n[y];if(p)c=(p[s]-b)/3,h[`cp2${s}`]=b+c,h[`cp2${l}`]=x+c*n[y]}}function E2(a,n="x"){let s=jw(n),l=a.length,r=Array(l).fill(0),c=Array(l),f,h,p,y=Fr(a,0);for(f=0;f<l;++f){if(h=p,p=y,y=Fr(a,f+1),!p)continue;if(y){let b=y[n]-p[n];r[f]=b!==0?(y[s]-p[s])/b:0}c[f]=!h?r[f]:!y?r[f-1]:Ho(r[f-1])!==Ho(r[f])?0:(r[f-1]+r[f])/2}k2(a,r,c),O2(a,c,n)}function Wh(a,n,s){return Math.max(Math.min(a,s),n)}function B2(a,n){let s,l,r,c,f,h=xn(a[0],n);for(s=0,l=a.length;s<l;++s){if(f=c,c=h,h=s<l-1&&xn(a[s+1],n),!c)continue;if(r=a[s],f)r.cp1x=Wh(r.cp1x,n.left,n.right),r.cp1y=Wh(r.cp1y,n.top,n.bottom);if(h)r.cp2x=Wh(r.cp2x,n.left,n.right),r.cp2y=Wh(r.cp2y,n.top,n.bottom)}}function Gw(a,n,s,l,r){let c,f,h,p;if(n.spanGaps)a=a.filter((y)=>!y.skip);if(n.cubicInterpolationMode==="monotone")E2(a,r);else{let y=l?a[a.length-1]:a[0];for(c=0,f=a.length;c<f;++c)h=a[c],p=R2(y,h,a[Math.min(c+1,f-(l?0:1))%f],n.tension),h.cp1x=p.previous.x,h.cp1y=p.previous.y,h.cp2x=p.next.x,h.cp2y=p.next.y,y=h}if(n.capBezierPoints)B2(a,s)}function rp(){return typeof window<"u"&&typeof document<"u"}function up(a){let n=a.parentNode;if(n&&n.toString()==="[object ShadowRoot]")n=n.host;return n}function Kh(a,n,s){let l;if(typeof a==="string"){if(l=parseInt(a,10),a.indexOf("%")!==-1)l=l/100*n.parentNode[s]}else l=a;return l}var cp=(a)=>a.ownerDocument.defaultView.getComputedStyle(a,null);function P2(a,n){return cp(a).getPropertyValue(n)}var z2=["top","right","bottom","left"];function ml(a,n,s){let l={};s=s?"-"+s:"";for(let r=0;r<4;r++){let c=z2[r];l[c]=parseFloat(a[n+"-"+c+s])||0}return l.width=l.left+l.right,l.height=l.top+l.bottom,l}var H2=(a,n,s)=>(a>0||n>0)&&(!s||!s.shadowRoot);function U2(a,n){let s=a.touches,l=s&&s.length?s[0]:a,{offsetX:r,offsetY:c}=l,f=!1,h,p;if(H2(r,c,a.target))h=r,p=c;else{let y=n.getBoundingClientRect();h=l.clientX-y.left,p=l.clientY-y.top,f=!0}return{x:h,y:p,box:f}}function pi(a,n){if("native"in a)return a;let{canvas:s,currentDevicePixelRatio:l}=n,r=cp(s),c=r.boxSizing==="border-box",f=ml(r,"padding"),h=ml(r,"border","width"),{x:p,y,box:b}=U2(a,s),x=f.left+(b&&h.left),v=f.top+(b&&h.top),{width:I,height:M}=n;if(c)I-=f.width+h.width,M-=f.height+h.height;return{x:Math.round((p-x)/I*s.width/l),y:Math.round((y-v)/M*s.height/l)}}function F2(a,n,s){let l,r;if(n===void 0||s===void 0){let c=a&&up(a);if(!c)n=a.clientWidth,s=a.clientHeight;else{let f=c.getBoundingClientRect(),h=cp(c),p=ml(h,"border","width"),y=ml(h,"padding");n=f.width-y.width-p.width,s=f.height-y.height-p.height,l=Kh(h.maxWidth,c,"clientWidth"),r=Kh(h.maxHeight,c,"clientHeight")}}return{width:n,height:s,maxWidth:l||Zh,maxHeight:r||Zh}}var ui=(a)=>Math.round(a*10)/10;function Yw(a,n,s,l){let r=cp(a),c=ml(r,"margin"),f=Kh(r.maxWidth,a,"clientWidth")||Zh,h=Kh(r.maxHeight,a,"clientHeight")||Zh,p=F2(a,n,s),{width:y,height:b}=p;if(r.boxSizing==="content-box"){let v=ml(r,"border","width"),I=ml(r,"padding");y-=I.width+v.width,b-=I.height+v.height}if(y=Math.max(0,y-c.width),b=Math.max(0,l?y/l:b-c.height),y=ui(Math.min(y,f,p.maxWidth)),b=ui(Math.min(b,h,p.maxHeight)),y&&!b)b=ui(y/2);if((n!==void 0||s!==void 0)&&l&&p.height&&b>p.height)b=p.height,y=ui(Math.floor(b*l));return{width:y,height:b}}function fx(a,n,s){let l=n||1,r=ui(a.height*l),c=ui(a.width*l);a.height=ui(a.height),a.width=ui(a.width);let f=a.canvas;if(f.style&&(s||!f.style.height&&!f.style.width))f.style.height=`${a.height}px`,f.style.width=`${a.width}px`;if(a.currentDevicePixelRatio!==l||f.height!==r||f.width!==c)return a.currentDevicePixelRatio=l,f.height=r,f.width=c,a.ctx.setTransform(l,0,0,l,0,0),!0;return!1}var Xw=function(){let a=!1;try{let n={get passive(){return a=!0,!1}};if(rp())window.addEventListener("test",null,n),window.removeEventListener("test",null,n)}catch(n){}return a}();function hx(a,n){let s=P2(a,n),l=s&&s.match(/^(\d+)(\.\d+)?px$/);return l?+l[1]:void 0}function li(a,n,s,l){return{x:a.x+s*(n.x-a.x),y:a.y+s*(n.y-a.y)}}function Ww(a,n,s,l){return{x:a.x+s*(n.x-a.x),y:l==="middle"?s<0.5?a.y:n.y:l==="after"?s<1?a.y:n.y:s>0?n.y:a.y}}function $w(a,n,s,l){let r={x:a.cp2x,y:a.cp2y},c={x:n.cp1x,y:n.cp1y},f=li(a,r,s),h=li(r,c,s),p=li(c,n,s),y=li(f,h,s),b=li(h,p,s);return li(y,b,s)}var N2=function(a,n){return{x(s){return a+a+n-s},setWidth(s){n=s},textAlign(s){if(s==="center")return s;return s==="right"?"left":"right"},xPlus(s,l){return s-l},leftForLtr(s,l){return s-l}}},q2=function(){return{x(a){return a},setWidth(a){},textAlign(a){return a},xPlus(a,n){return a+n},leftForLtr(a,n){return a}}};function bl(a,n,s){return a?N2(n,s):q2()}function px(a,n){let s,l;if(n==="ltr"||n==="rtl")s=a.canvas.style,l=[s.getPropertyValue("direction"),s.getPropertyPriority("direction")],s.setProperty("direction",n,"important"),a.prevTextDirection=l}function mx(a,n){if(n!==void 0)delete a.prevTextDirection,a.canvas.style.setProperty("direction",n[0],n[1])}function Qw(a){if(a==="angle")return{between:Jb,compare:s2,normalize:Ea};return{between:ns,compare:(n,s)=>n-s,normalize:(n)=>n}}function gw({start:a,end:n,count:s,loop:l,style:r}){return{start:a%s,end:n%s,loop:l&&(n-a+1)%s===0,style:r}}function V2(a,n,s){let{property:l,start:r,end:c}=s,{between:f,normalize:h}=Qw(l),p=n.length,{start:y,end:b,loop:x}=a,v,I;if(x){y+=p,b+=p;for(v=0,I=p;v<I;++v){if(!f(h(n[y%p][l]),r,c))break;y--,b--}y%=p,b%=p}if(b<y)b+=p;return{start:y,end:b,loop:x,style:a.style}}function gx(a,n,s){if(!s)return[a];let{property:l,start:r,end:c}=s,f=n.length,{compare:h,between:p,normalize:y}=Qw(l),{start:b,end:x,loop:v,style:I}=V2(a,n,s),M=[],D=!1,w=null,z,N,Q,Z=()=>p(r,Q,z)&&h(r,Q)!==0,X=()=>h(c,z)===0||p(c,Q,z),oe=()=>D||Z(),V=()=>!D||X();for(let J=b,re=b;J<=x;++J){if(N=n[J%f],N.skip)continue;if(z=y(N[l]),z===Q)continue;if(D=p(z,r,c),w===null&&oe())w=h(z,r)===0?J:re;if(w!==null&&V())M.push(gw({start:w,end:J,loop:v,count:f,style:I})),w=null;re=J,Q=z}if(w!==null)M.push(gw({start:w,end:x,loop:v,count:f,style:I}));return M}function yx(a,n){let s=[],l=a.segments;for(let r=0;r<l.length;r++){let c=gx(l[r],a.points,n);if(c.length)s.push(...c)}return s}function j2(a,n,s,l){let r=0,c=n-1;if(s&&!l)while(r<n&&!a[r].skip)r++;while(r<n&&a[r].skip)r++;if(r%=n,s)c+=r;while(c>r&&a[c%n].skip)c--;return c%=n,{start:r,end:c}}function G2(a,n,s,l){let r=a.length,c=[],f=n,h=a[n],p;for(p=n+1;p<=s;++p){let y=a[p%r];if(y.skip||y.stop){if(!h.skip)l=!1,c.push({start:n%r,end:(p-1)%r,loop:l}),n=f=y.stop?p:null}else if(f=p,h.skip)n=p;h=y}if(f!==null)c.push({start:n%r,end:f%r,loop:l});return c}function Zw(a,n){let s=a.points,l=a.options.spanGaps,r=s.length;if(!r)return[];let c=!!a._loop,{start:f,end:h}=j2(s,r,c,l);if(l===!0)return yw(a,[{start:f,end:h,loop:c}],s,n);let p=h<f?h+r:h,y=!!a._fullLoop&&f===0&&h===r-1;return yw(a,G2(s,f,p,y),s,n)}function yw(a,n,s,l){if(!l||!l.setContext||!s)return n;return Y2(a,n,s,l)}function Y2(a,n,s,l){let r=a._chart.getContext(),c=bw(a.options),{_datasetIndex:f,options:{spanGaps:h}}=a,p=s.length,y=[],b=c,x=n[0].start,v=x;function I(M,D,w,z){let N=h?-1:1;if(M===D)return;M+=p;while(s[M%p].skip)M-=N;while(s[D%p].skip)D+=N;if(M%p!==D%p)y.push({start:M%p,end:D%p,loop:w,style:z}),b=z,x=D%p}for(let M of n){x=h?x:M.start;let D=s[x%p],w;for(v=x+1;v<=M.end;v++){let z=s[v%p];if(w=bw(l.setContext(ss(r,{type:"segment",p0:D,p1:z,p0DataIndex:(v-1)%p,p1DataIndex:v%p,datasetIndex:f}))),X2(w,b))I(x,v-1,M.loop,b);D=z,b=w}if(x<v-1)I(x,v-1,M.loop,b)}return y}function bw(a){return{backgroundColor:a.backgroundColor,borderCapStyle:a.borderCapStyle,borderDash:a.borderDash,borderDashOffset:a.borderDashOffset,borderJoinStyle:a.borderJoinStyle,borderWidth:a.borderWidth,borderColor:a.borderColor}}function X2(a,n){if(!n)return!1;let s=[],l=function(r,c){if(!ox(c))return c;if(!s.includes(c))s.push(c);return s.indexOf(c)};return JSON.stringify(a,l)!==JSON.stringify(n,l)}function $h(a,n,s){return a.options.clip?a[s]:n[s]}function W2(a,n){let{xScale:s,yScale:l}=a;if(s&&l)return{left:$h(s,n,"left"),right:$h(s,n,"right"),top:$h(l,n,"top"),bottom:$h(l,n,"bottom")};return n}function bx(a,n){let s=n._clip;if(s.disabled)return!1;let l=W2(n,a.chartArea);return{left:s.left===!1?0:l.left-(s.left===!0?0:s.left),right:s.right===!1?a.width:l.right+(s.right===!0?0:s.right),top:s.top===!1?0:l.top-(s.top===!0?0:s.top),bottom:s.bottom===!1?a.height:l.bottom+(s.bottom===!0?0:s.bottom)}}/*!
251
+ * Chart.js v4.5.1
252
+ * https://www.chartjs.org
253
+ * (c) 2025 Chart.js Contributors
254
+ * Released under the MIT License
255
+ */class WM{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(a,n,s,l){let r=n.listeners[l],c=n.duration;r.forEach((f)=>f({chart:a,initial:n.initial,numSteps:c,currentStep:Math.min(s-n.start,c)}))}_refresh(){if(this._request)return;this._running=!0,this._request=tx.call(window,()=>{if(this._update(),this._request=null,this._running)this._refresh()})}_update(a=Date.now()){let n=0;if(this._charts.forEach((s,l)=>{if(!s.running||!s.items.length)return;let r=s.items,c=r.length-1,f=!1,h;for(;c>=0;--c)if(h=r[c],h._active){if(h._total>s.duration)s.duration=h._total;h.tick(a),f=!0}else r[c]=r[r.length-1],r.pop();if(f)l.draw(),this._notify(l,s,a,"progress");if(!r.length)s.running=!1,this._notify(l,s,a,"complete"),s.initial=!1;n+=r.length}),this._lastDate=a,n===0)this._running=!1}_getAnims(a){let n=this._charts,s=n.get(a);if(!s)s={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(a,s);return s}listen(a,n,s){this._getAnims(a).listeners[n].push(s)}add(a,n){if(!n||!n.length)return;this._getAnims(a).items.push(...n)}has(a){return this._getAnims(a).items.length>0}start(a){let n=this._charts.get(a);if(!n)return;n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((s,l)=>Math.max(s,l._duration),0),this._refresh()}running(a){if(!this._running)return!1;let n=this._charts.get(a);if(!n||!n.running||!n.items.length)return!1;return!0}stop(a){let n=this._charts.get(a);if(!n||!n.items.length)return;let s=n.items,l=s.length-1;for(;l>=0;--l)s[l].cancel();n.items=[],this._notify(a,n,Date.now(),"complete")}remove(a){return this._charts.delete(a)}}var is=new WM,Jw="transparent",$2={boolean(a,n,s){return s>0.5?n:a},color(a,n,s){let l=nx(a||Jw),r=l.valid&&nx(n||Jw);return r&&r.valid?r.mix(l,s).hexString():n},number(a,n,s){return a+(n-a)*s}};class $M{constructor(a,n,s,l){let r=n[s];l=Yc([a.to,l,r,a.from]);let c=Yc([a.from,r,l]);this._active=!0,this._fn=a.fn||$2[a.type||typeof c],this._easing=Hr[a.easing]||Hr.linear,this._start=Math.floor(Date.now()+(a.delay||0)),this._duration=this._total=Math.floor(a.duration),this._loop=!!a.loop,this._target=n,this._prop=s,this._from=c,this._to=l,this._promises=void 0}active(){return this._active}update(a,n,s){if(this._active){this._notify(!1);let l=this._target[this._prop],r=s-this._start,c=this._duration-r;this._start=s,this._duration=Math.floor(Math.max(c,a.duration)),this._total+=r,this._loop=!!a.loop,this._to=Yc([a.to,n,l,a.from]),this._from=Yc([a.from,l,n])}}cancel(){if(this._active)this.tick(Date.now()),this._active=!1,this._notify(!1)}tick(a){let n=a-this._start,s=this._duration,l=this._prop,r=this._from,c=this._loop,f=this._to,h;if(this._active=r!==f&&(c||n<s),!this._active){this._target[l]=f,this._notify(!0);return}if(n<0){this._target[l]=r;return}h=n/s%2,h=c&&h>1?2-h:h,h=this._easing(Math.min(1,Math.max(0,h))),this._target[l]=this._fn(r,f,h)}wait(){let a=this._promises||(this._promises=[]);return new Promise((n,s)=>{a.push({res:n,rej:s})})}_notify(a){let n=a?"res":"rej",s=this._promises||[];for(let l=0;l<s.length;l++)s[l][n]()}}class Hx{constructor(a,n){this._chart=a,this._properties=new Map,this.configure(n)}configure(a){if(!$e(a))return;let n=Object.keys(_t.animation),s=this._properties;Object.getOwnPropertyNames(a).forEach((l)=>{let r=a[l];if(!$e(r))return;let c={};for(let f of n)c[f]=r[f];(St(r.properties)&&r.properties||[l]).forEach((f)=>{if(f===l||!s.has(f))s.set(f,c)})})}_animateOptions(a,n){let s=n.options,l=Z2(a,s);if(!l)return[];let r=this._createAnimations(l,s);if(s.$shared)Q2(a.options.$animations,s).then(()=>{a.options=s},()=>{});return r}_createAnimations(a,n){let s=this._properties,l=[],r=a.$animations||(a.$animations={}),c=Object.keys(n),f=Date.now(),h;for(h=c.length-1;h>=0;--h){let p=c[h];if(p.charAt(0)==="$")continue;if(p==="options"){l.push(...this._animateOptions(a,n));continue}let y=n[p],b=r[p],x=s.get(p);if(b)if(x&&b.active()){b.update(x,y,f);continue}else b.cancel();if(!x||!x.duration){a[p]=y;continue}r[p]=b=new $M(x,a,p,y),l.push(b)}return l}update(a,n){if(this._properties.size===0){Object.assign(a,n);return}let s=this._createAnimations(a,n);if(s.length)return is.add(this._chart,s),!0}}function Q2(a,n){let s=[],l=Object.keys(n);for(let r=0;r<l.length;r++){let c=a[l[r]];if(c&&c.active())s.push(c.wait())}return Promise.all(s)}function Z2(a,n){if(!n)return;let s=a.options;if(!s){a.options=n;return}if(s.$shared)a.options=s=Object.assign({},s,{$shared:!1,$animations:{}});return s}function Kw(a,n){let s=a&&a.options||{},l=s.reverse,r=s.min===void 0?n:0,c=s.max===void 0?n:0;return{start:l?c:r,end:l?r:c}}function J2(a,n,s){if(s===!1)return!1;let l=Kw(a,s),r=Kw(n,s);return{top:r.end,right:l.end,bottom:r.start,left:l.start}}function K2(a){let n,s,l,r;if($e(a))n=a.top,s=a.right,l=a.bottom,r=a.left;else n=s=l=r=a;return{top:n,right:s,bottom:l,left:r,disabled:a===!1}}function QM(a,n){let s=[],l=a._getSortedDatasetMetas(n),r,c;for(r=0,c=l.length;r<c;++r)s.push(l[r].index);return s}function eM(a,n,s,l={}){let r=a.keys,c=l.mode==="single",f,h,p,y;if(n===null)return;let b=!1;for(f=0,h=r.length;f<h;++f){if(p=+r[f],p===s){if(b=!0,l.all)continue;break}if(y=a.values[p],At(y)&&(c||n===0||Ho(n)===Ho(y)))n+=y}if(!b&&!l.all)return 0;return n}function eO(a,n){let{iScale:s,vScale:l}=n,r=s.axis==="x"?"x":"y",c=l.axis==="x"?"x":"y",f=Object.keys(a),h=Array(f.length),p,y,b;for(p=0,y=f.length;p<y;++p)b=f[p],h[p]={[r]:b,[c]:a[b]};return h}function xx(a,n){let s=a&&a.options.stacked;return s||s===void 0&&n.stack!==void 0}function tO(a,n,s){return`${a.id}.${n.id}.${s.stack||s.type}`}function aO(a){let{min:n,max:s,minDefined:l,maxDefined:r}=a.getUserBounds();return{min:l?n:Number.NEGATIVE_INFINITY,max:r?s:Number.POSITIVE_INFINITY}}function oO(a,n,s){let l=a[n]||(a[n]={});return l[s]||(l[s]={})}function tM(a,n,s,l){for(let r of n.getMatchingVisibleMetas(l).reverse()){let c=a[r.index];if(s&&c>0||!s&&c<0)return r.index}return null}function aM(a,n){let{chart:s,_cachedMeta:l}=a,r=s._stacks||(s._stacks={}),{iScale:c,vScale:f,index:h}=l,p=c.axis,y=f.axis,b=tO(c,f,l),x=n.length,v;for(let I=0;I<x;++I){let M=n[I],{[p]:D,[y]:w}=M,z=M._stacks||(M._stacks={});v=z[y]=oO(r,b,D),v[h]=w,v._top=tM(v,f,!0,l.type),v._bottom=tM(v,f,!1,l.type);let N=v._visualValues||(v._visualValues={});N[h]=w}}function Sx(a,n){let s=a.scales;return Object.keys(s).filter((l)=>s[l].axis===n).shift()}function nO(a,n){return ss(a,{active:!1,dataset:void 0,datasetIndex:n,index:n,mode:"default",type:"dataset"})}function sO(a,n,s){return ss(a,{active:!1,dataIndex:n,parsed:void 0,raw:void 0,element:s,index:n,mode:"default",type:"data"})}function Xc(a,n){let s=a.controller.index,l=a.vScale&&a.vScale.axis;if(!l)return;n=n||a._parsed;for(let r of n){let c=r._stacks;if(!c||c[l]===void 0||c[l][s]===void 0)return;if(delete c[l][s],c[l]._visualValues!==void 0&&c[l]._visualValues[s]!==void 0)delete c[l]._visualValues[s]}}var vx=(a)=>a==="reset"||a==="none",oM=(a,n)=>n?a:Object.assign({},a),iO=(a,n,s)=>a&&!n.hidden&&n._stacked&&{keys:QM(s,!0),values:null};class xp{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(a,n){this.chart=a,this._ctx=a.ctx,this.index=n,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 a=this._cachedMeta;if(this.configure(),this.linkScales(),a._stacked=xx(a.vScale,a),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(a){if(this.index!==a)Xc(this._cachedMeta);this.index=a}linkScales(){let a=this.chart,n=this._cachedMeta,s=this.getDataset(),l=(b,x,v,I)=>b==="x"?x:b==="r"?I:v,r=n.xAxisID=Ue(s.xAxisID,Sx(a,"x")),c=n.yAxisID=Ue(s.yAxisID,Sx(a,"y")),f=n.rAxisID=Ue(s.rAxisID,Sx(a,"r")),h=n.indexAxis,p=n.iAxisID=l(h,r,c,f),y=n.vAxisID=l(h,c,r,f);n.xScale=this.getScaleForId(r),n.yScale=this.getScaleForId(c),n.rScale=this.getScaleForId(f),n.iScale=this.getScaleForId(p),n.vScale=this.getScaleForId(y)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(a){return this.chart.scales[a]}_getOtherScale(a){let n=this._cachedMeta;return a===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){let a=this._cachedMeta;if(this._data)Kb(this._data,this);if(a._stacked)Xc(a)}_dataCheck(){let a=this.getDataset(),n=a.data||(a.data=[]),s=this._data;if($e(n)){let l=this._cachedMeta;this._data=eO(n,l)}else if(s!==n){if(s){Kb(s,this);let l=this._cachedMeta;Xc(l),l._parsed=[]}if(n&&Object.isExtensible(n))Dw(n,this);this._syncList=[],this._data=n}}addElements(){let a=this._cachedMeta;if(this._dataCheck(),this.datasetElementType)a.dataset=new this.datasetElementType}buildOrUpdateElements(a){let n=this._cachedMeta,s=this.getDataset(),l=!1;this._dataCheck();let r=n._stacked;if(n._stacked=xx(n.vScale,n),n.stack!==s.stack)l=!0,Xc(n),n.stack=s.stack;if(this._resyncElements(a),l||r!==n._stacked)aM(this,n._parsed),n._stacked=xx(n.vScale,n)}configure(){let a=this.chart.config,n=a.datasetScopeKeys(this._type),s=a.getOptionScopes(this.getDataset(),n,!0);this.options=a.createResolver(s,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(a,n){let{_cachedMeta:s,_data:l}=this,{iScale:r,_stacked:c}=s,f=r.axis,h=a===0&&n===l.length?!0:s._sorted,p=a>0&&s._parsed[a-1],y,b,x;if(this._parsing===!1)s._parsed=l,s._sorted=!0,x=l;else{if(St(l[a]))x=this.parseArrayData(s,l,a,n);else if($e(l[a]))x=this.parseObjectData(s,l,a,n);else x=this.parsePrimitiveData(s,l,a,n);let v=()=>b[f]===null||p&&b[f]<p[f];for(y=0;y<n;++y)if(s._parsed[y+a]=b=x[y],h){if(v())h=!1;p=b}s._sorted=h}if(c)aM(this,x)}parsePrimitiveData(a,n,s,l){let{iScale:r,vScale:c}=a,f=r.axis,h=c.axis,p=r.getLabels(),y=r===c,b=Array(l),x,v,I;for(x=0,v=l;x<v;++x)I=x+s,b[x]={[f]:y||r.parse(p[I],I),[h]:c.parse(n[I],I)};return b}parseArrayData(a,n,s,l){let{xScale:r,yScale:c}=a,f=Array(l),h,p,y,b;for(h=0,p=l;h<p;++h)y=h+s,b=n[y],f[h]={x:r.parse(b[0],y),y:c.parse(b[1],y)};return f}parseObjectData(a,n,s,l){let{xScale:r,yScale:c}=a,{xAxisKey:f="x",yAxisKey:h="y"}=this._parsing,p=Array(l),y,b,x,v;for(y=0,b=l;y<b;++y)x=y+s,v=n[x],p[y]={x:r.parse(yl(v,f),x),y:c.parse(yl(v,h),x)};return p}getParsed(a){return this._cachedMeta._parsed[a]}getDataElement(a){return this._cachedMeta.data[a]}applyStack(a,n,s){let l=this.chart,r=this._cachedMeta,c=n[a.axis],f={keys:QM(l,!0),values:n._stacks[a.axis]._visualValues};return eM(f,c,r.index,{mode:s})}updateRangeFromParsed(a,n,s,l){let r=s[n.axis],c=r===null?NaN:r,f=l&&s._stacks[n.axis];if(l&&f)l.values=f,c=eM(l,r,this._cachedMeta.index);a.min=Math.min(a.min,c),a.max=Math.max(a.max,c)}getMinMax(a,n){let s=this._cachedMeta,l=s._parsed,r=s._sorted&&a===s.iScale,c=l.length,f=this._getOtherScale(a),h=iO(n,s,this.chart),p={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:y,max:b}=aO(f),x,v;function I(){v=l[x];let M=v[f.axis];return!At(v[a.axis])||y>M||b<M}for(x=0;x<c;++x){if(I())continue;if(this.updateRangeFromParsed(p,a,v,h),r)break}if(r)for(x=c-1;x>=0;--x){if(I())continue;this.updateRangeFromParsed(p,a,v,h);break}return p}getAllParsedValues(a){let n=this._cachedMeta._parsed,s=[],l,r,c;for(l=0,r=n.length;l<r;++l)if(c=n[l][a.axis],At(c))s.push(c);return s}getMaxOverflow(){return!1}getLabelAndValue(a){let n=this._cachedMeta,s=n.iScale,l=n.vScale,r=this.getParsed(a);return{label:s?""+s.getLabelForValue(r[s.axis]):"",value:l?""+l.getLabelForValue(r[l.axis]):""}}_update(a){let n=this._cachedMeta;this.update(a||"default"),n._clip=K2(Ue(this.options.clip,J2(n.xScale,n.yScale,this.getMaxOverflow())))}update(a){}draw(){let a=this._ctx,n=this.chart,s=this._cachedMeta,l=s.data||[],r=n.chartArea,c=[],f=this._drawStart||0,h=this._drawCount||l.length-f,p=this.options.drawActiveElementsOnTop,y;if(s.dataset)s.dataset.draw(a,r,f,h);for(y=f;y<f+h;++y){let b=l[y];if(b.hidden)continue;if(b.active&&p)c.push(b);else b.draw(a,r)}for(y=0;y<c.length;++y)c[y].draw(a,r)}getStyle(a,n){let s=n?"active":"default";return a===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(s):this.resolveDataElementOptions(a||0,s)}getContext(a,n,s){let l=this.getDataset(),r;if(a>=0&&a<this._cachedMeta.data.length){let c=this._cachedMeta.data[a];r=c.$context||(c.$context=sO(this.getContext(),a,c)),r.parsed=this.getParsed(a),r.raw=l.data[a],r.index=r.dataIndex=a}else r=this.$context||(this.$context=nO(this.chart.getContext(),this.index)),r.dataset=l,r.index=r.datasetIndex=this.index;return r.active=!!n,r.mode=s,r}resolveDatasetElementOptions(a){return this._resolveElementOptions(this.datasetElementType.id,a)}resolveDataElementOptions(a,n){return this._resolveElementOptions(this.dataElementType.id,n,a)}_resolveElementOptions(a,n="default",s){let l=n==="active",r=this._cachedDataOpts,c=a+"-"+n,f=r[c],h=this.enableOptionSharing&&qr(s);if(f)return oM(f,h);let p=this.chart.config,y=p.datasetElementScopeKeys(this._type,a),b=l?[`${a}Hover`,"hover",a,""]:[a,""],x=p.getOptionScopes(this.getDataset(),y),v=Object.keys(_t.elements[a]),I=()=>this.getContext(s,l,n),M=p.resolveNamedOptions(x,v,I,b);if(M.$shared)M.$shared=h,r[c]=Object.freeze(oM(M,h));return M}_resolveAnimations(a,n,s){let l=this.chart,r=this._cachedDataOpts,c=`animation-${n}`,f=r[c];if(f)return f;let h;if(l.options.animation!==!1){let y=this.chart.config,b=y.datasetAnimationScopeKeys(this._type,n),x=y.getOptionScopes(this.getDataset(),b);h=y.createResolver(x,this.getContext(a,s,n))}let p=new Hx(l,h&&h.animations);if(h&&h._cacheable)r[c]=Object.freeze(p);return p}getSharedOptions(a){if(!a.$shared)return;return this._sharedOptions||(this._sharedOptions=Object.assign({},a))}includeOptions(a,n){return!n||vx(a)||this.chart._animationsDisabled}_getSharedOptions(a,n){let s=this.resolveDataElementOptions(a,n),l=this._sharedOptions,r=this.getSharedOptions(s),c=this.includeOptions(n,r)||r!==l;return this.updateSharedOptions(r,n,s),{sharedOptions:r,includeOptions:c}}updateElement(a,n,s,l){if(vx(l))Object.assign(a,s);else this._resolveAnimations(n,l).update(a,s)}updateSharedOptions(a,n,s){if(a&&!vx(n))this._resolveAnimations(void 0,n).update(a,s)}_setStyle(a,n,s,l){a.active=l;let r=this.getStyle(n,l);this._resolveAnimations(n,s,l).update(a,{options:!l&&this.getSharedOptions(r)||r})}removeHoverStyle(a,n,s){this._setStyle(a,s,"active",!1)}setHoverStyle(a,n,s){this._setStyle(a,s,"active",!0)}_removeDatasetHoverStyle(){let a=this._cachedMeta.dataset;if(a)this._setStyle(a,void 0,"active",!1)}_setDatasetHoverStyle(){let a=this._cachedMeta.dataset;if(a)this._setStyle(a,void 0,"active",!0)}_resyncElements(a){let n=this._data,s=this._cachedMeta.data;for(let[f,h,p]of this._syncList)this[f](h,p);this._syncList=[];let l=s.length,r=n.length,c=Math.min(r,l);if(c)this.parse(0,c);if(r>l)this._insertElements(l,r-l,a);else if(r<l)this._removeElements(r,l-r)}_insertElements(a,n,s=!0){let l=this._cachedMeta,r=l.data,c=a+n,f,h=(p)=>{p.length+=n;for(f=p.length-1;f>=c;f--)p[f]=p[f-n]};h(r);for(f=a;f<c;++f)r[f]=new this.dataElementType;if(this._parsing)h(l._parsed);if(this.parse(a,n),s)this.updateElements(r,a,n,"reset")}updateElements(a,n,s,l){}_removeElements(a,n){let s=this._cachedMeta;if(this._parsing){let l=s._parsed.splice(a,n);if(s._stacked)Xc(s,l)}s.data.splice(a,n)}_sync(a){if(this._parsing)this._syncList.push(a);else{let[n,s,l]=a;this[n](s,l)}this.chart._dataChanges.push([this.index,...a])}_onDataPush(){let a=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-a,a])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(a,n){if(n)this._sync(["_removeElements",a,n]);let s=arguments.length-2;if(s)this._sync(["_insertElements",a,s])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function lO(a,n){if(!a._cache.$bar){let s=a.getMatchingVisibleMetas(n),l=[];for(let r=0,c=s.length;r<c;r++)l=l.concat(s[r].controller.getAllParsedValues(a));a._cache.$bar=ex(l.sort((r,c)=>r-c))}return a._cache.$bar}function rO(a){let n=a.iScale,s=lO(n,a.type),l=n._length,r,c,f,h,p=()=>{if(f===32767||f===-32768)return;if(qr(h))l=Math.min(l,Math.abs(f-h)||l);h=f};for(r=0,c=s.length;r<c;++r)f=n.getPixelForValue(s[r]),p();h=void 0;for(r=0,c=n.ticks.length;r<c;++r)f=n.getPixelForTick(r),p();return l}function uO(a,n,s,l){let r=s.barThickness,c,f;if(Ke(r))c=n.min*s.categoryPercentage,f=s.barPercentage;else c=r*l,f=1;return{chunk:c/l,ratio:f,start:n.pixels[a]-c/2}}function cO(a,n,s,l){let r=n.pixels,c=r[a],f=a>0?r[a-1]:null,h=a<r.length-1?r[a+1]:null,p=s.categoryPercentage;if(f===null)f=c-(h===null?n.end-n.start:h-c);if(h===null)h=c+c-f;let y=c-(c-Math.min(f,h))/2*p;return{chunk:Math.abs(h-f)/2*p/l,ratio:s.barPercentage,start:y}}function dO(a,n,s,l){let r=s.parse(a[0],l),c=s.parse(a[1],l),f=Math.min(r,c),h=Math.max(r,c),p=f,y=h;if(Math.abs(f)>Math.abs(h))p=h,y=f;n[s.axis]=y,n._custom={barStart:p,barEnd:y,start:r,end:c,min:f,max:h}}function ZM(a,n,s,l){if(St(a))dO(a,n,s,l);else n[s.axis]=s.parse(a,l);return n}function nM(a,n,s,l){let{iScale:r,vScale:c}=a,f=r.getLabels(),h=r===c,p=[],y,b,x,v;for(y=s,b=s+l;y<b;++y)v=n[y],x={},x[r.axis]=h||r.parse(f[y],y),p.push(ZM(v,x,c,y));return p}function Lx(a){return a&&a.barStart!==void 0&&a.barEnd!==void 0}function fO(a,n,s){if(a!==0)return Ho(a);return(n.isHorizontal()?1:-1)*(n.min>=s?1:-1)}function hO(a){let n,s,l,r,c;if(a.horizontal)n=a.base>a.x,s="left",l="right";else n=a.base<a.y,s="bottom",l="top";if(n)r="end",c="start";else r="start",c="end";return{start:s,end:l,reverse:n,top:r,bottom:c}}function pO(a,n,s,l){let r=n.borderSkipped,c={};if(!r){a.borderSkipped=c;return}if(r===!0){a.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}let{start:f,end:h,reverse:p,top:y,bottom:b}=hO(a);if(r==="middle"&&s)if(a.enableBorderRadius=!0,(s._top||0)===l)r=y;else if((s._bottom||0)===l)r=b;else c[sM(b,f,h,p)]=!0,r=y;c[sM(r,f,h,p)]=!0,a.borderSkipped=c}function sM(a,n,s,l){if(l)a=mO(a,n,s),a=iM(a,s,n);else a=iM(a,n,s);return a}function mO(a,n,s){return a===n?s:a===s?n:a}function iM(a,n,s){return a==="start"?n:a==="end"?s:a}function gO(a,{inflateAmount:n},s){a.inflateAmount=n==="auto"?s===1?0.33:0:n}class Ux extends xp{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(a,n,s,l){return nM(a,n,s,l)}parseArrayData(a,n,s,l){return nM(a,n,s,l)}parseObjectData(a,n,s,l){let{iScale:r,vScale:c}=a,{xAxisKey:f="x",yAxisKey:h="y"}=this._parsing,p=r.axis==="x"?f:h,y=c.axis==="x"?f:h,b=[],x,v,I,M;for(x=s,v=s+l;x<v;++x)M=n[x],I={},I[r.axis]=r.parse(yl(M,p),x),b.push(ZM(yl(M,y),I,c,x));return b}updateRangeFromParsed(a,n,s,l){super.updateRangeFromParsed(a,n,s,l);let r=s._custom;if(r&&n===this._cachedMeta.vScale)a.min=Math.min(a.min,r.min),a.max=Math.max(a.max,r.max)}getMaxOverflow(){return 0}getLabelAndValue(a){let n=this._cachedMeta,{iScale:s,vScale:l}=n,r=this.getParsed(a),c=r._custom,f=Lx(c)?"["+c.start+", "+c.end+"]":""+l.getLabelForValue(r[l.axis]);return{label:""+s.getLabelForValue(r[s.axis]),value:f}}initialize(){this.enableOptionSharing=!0,super.initialize();let a=this._cachedMeta;a.stack=this.getDataset().stack}update(a){let n=this._cachedMeta;this.updateElements(n.data,0,n.data.length,a)}updateElements(a,n,s,l){let r=l==="reset",{index:c,_cachedMeta:{vScale:f}}=this,h=f.getBasePixel(),p=f.isHorizontal(),y=this._getRuler(),{sharedOptions:b,includeOptions:x}=this._getSharedOptions(n,l);for(let v=n;v<n+s;v++){let I=this.getParsed(v),M=r||Ke(I[f.axis])?{base:h,head:h}:this._calculateBarValuePixels(v),D=this._calculateBarIndexPixels(v,y),w=(I._stacks||{})[f.axis],z={horizontal:p,base:M.base,enableBorderRadius:!w||Lx(I._custom)||c===w._top||c===w._bottom,x:p?M.head:D.center,y:p?D.center:M.head,height:p?D.size:Math.abs(M.size),width:p?Math.abs(M.size):D.size};if(x)z.options=b||this.resolveDataElementOptions(v,a[v].active?"active":l);let N=z.options||a[v].options;pO(z,N,w,c),gO(z,N,y.ratio),this.updateElement(a[v],v,z,l)}}_getStacks(a,n){let{iScale:s}=this._cachedMeta,l=s.getMatchingVisibleMetas(this._type).filter((y)=>y.controller.options.grouped),r=s.options.stacked,c=[],f=this._cachedMeta.controller.getParsed(n),h=f&&f[s.axis],p=(y)=>{let b=y._parsed.find((v)=>v[s.axis]===h),x=b&&b[y.vScale.axis];if(Ke(x)||isNaN(x))return!0};for(let y of l){if(n!==void 0&&p(y))continue;if(r===!1||c.indexOf(y.stack)===-1||r===void 0&&y.stack===void 0)c.push(y.stack);if(y.index===a)break}if(!c.length)c.push(void 0);return c}_getStackCount(a){return this._getStacks(void 0,a).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){let a=this.chart.scales,n=this.chart.options.indexAxis;return Object.keys(a).filter((s)=>a[s].axis===n).shift()}_getAxis(){let a={},n=this.getFirstScaleIdForIndexAxis();for(let s of this.chart.data.datasets)a[Ue(this.chart.options.indexAxis==="x"?s.xAxisID:s.yAxisID,n)]=!0;return Object.keys(a)}_getStackIndex(a,n,s){let l=this._getStacks(a,s),r=n!==void 0?l.indexOf(n):-1;return r===-1?l.length-1:r}_getRuler(){let a=this.options,n=this._cachedMeta,s=n.iScale,l=[],r,c;for(r=0,c=n.data.length;r<c;++r)l.push(s.getPixelForValue(this.getParsed(r)[s.axis],r));let f=a.barThickness;return{min:f||rO(n),pixels:l,start:s._startPixel,end:s._endPixel,stackCount:this._getStackCount(),scale:s,grouped:a.grouped,ratio:f?1:a.categoryPercentage*a.barPercentage}}_calculateBarValuePixels(a){let{_cachedMeta:{vScale:n,_stacked:s,index:l},options:{base:r,minBarLength:c}}=this,f=r||0,h=this.getParsed(a),p=h._custom,y=Lx(p),b=h[n.axis],x=0,v=s?this.applyStack(n,h,s):b,I,M;if(v!==b)x=v-b,v=b;if(y){if(b=p.barStart,v=p.barEnd-p.barStart,b!==0&&Ho(b)!==Ho(p.barEnd))x=0;x+=b}let D=!Ke(r)&&!y?r:x,w=n.getPixelForValue(D);if(this.chart.getDataVisibility(a))I=n.getPixelForValue(x+v);else I=w;if(M=I-w,Math.abs(M)<c){if(M=fO(M,n,f)*c,b===f)w-=M/2;let z=n.getPixelForDecimal(0),N=n.getPixelForDecimal(1),Q=Math.min(z,N),Z=Math.max(z,N);if(w=Math.max(Math.min(w,Z),Q),I=w+M,s&&!y)h._stacks[n.axis]._visualValues[l]=n.getValueForPixel(I)-n.getValueForPixel(w)}if(w===n.getPixelForValue(f)){let z=Ho(M)*n.getLineWidthForValue(f)/2;w+=z,M-=z}return{size:M,base:w,head:I,center:I+M/2}}_calculateBarIndexPixels(a,n){let s=n.scale,l=this.options,r=l.skipNull,c=Ue(l.maxBarThickness,1/0),f,h,p=this._getAxisCount();if(n.grouped){let y=r?this._getStackCount(a):n.stackCount,b=l.barThickness==="flex"?cO(a,n,l,y*p):uO(a,n,l,y*p),x=this.chart.options.indexAxis==="x"?this.getDataset().xAxisID:this.getDataset().yAxisID,v=this._getAxis().indexOf(Ue(x,this.getFirstScaleIdForIndexAxis())),I=this._getStackIndex(this.index,this._cachedMeta.stack,r?a:void 0)+v;f=b.start+b.chunk*I+b.chunk/2,h=Math.min(c,b.chunk*b.ratio)}else f=s.getPixelForValue(this.getParsed(a)[s.axis],a),h=Math.min(c,n.min*n.ratio);return{base:f-h/2,head:f+h/2,center:f,size:h}}draw(){let a=this._cachedMeta,n=a.vScale,s=a.data,l=s.length,r=0;for(;r<l;++r)if(this.getParsed(r)[n.axis]!==null&&!s[r].hidden)s[r].draw(this._ctx)}}class Fx extends xp{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(a){let n=this._cachedMeta,{dataset:s,data:l=[],_dataset:r}=n,c=this.chart._animationsDisabled,{start:f,count:h}=Ow(n,l,c);if(this._drawStart=f,this._drawCount=h,Ew(n))f=0,h=l.length;s._chart=this.chart,s._datasetIndex=this.index,s._decimated=!!r._decimated,s.points=l;let p=this.resolveDatasetElementOptions(a);if(!this.options.showLine)p.borderWidth=0;p.segment=this.options.segment,this.updateElement(s,void 0,{animated:!c,options:p},a),this.updateElements(l,f,h,a)}updateElements(a,n,s,l){let r=l==="reset",{iScale:c,vScale:f,_stacked:h,_dataset:p}=this._cachedMeta,{sharedOptions:y,includeOptions:b}=this._getSharedOptions(n,l),x=c.axis,v=f.axis,{spanGaps:I,segment:M}=this.options,D=jr(I)?I:Number.POSITIVE_INFINITY,w=this.chart._animationsDisabled||r||l==="none",z=n+s,N=a.length,Q=n>0&&this.getParsed(n-1);for(let Z=0;Z<N;++Z){let X=a[Z],oe=w?X:{};if(Z<n||Z>=z){oe.skip=!0;continue}let V=this.getParsed(Z),J=Ke(V[v]),re=oe[x]=c.getPixelForValue(V[x],Z),q=oe[v]=r||J?f.getBasePixel():f.getPixelForValue(h?this.applyStack(f,V,h):V[v],Z);if(oe.skip=isNaN(re)||isNaN(q)||J,oe.stop=Z>0&&Math.abs(V[x]-Q[x])>D,M)oe.parsed=V,oe.raw=p.data[Z];if(b)oe.options=y||this.resolveDataElementOptions(Z,X.active?"active":l);if(!w)this.updateElement(X,Z,oe,l);Q=V}}getMaxOverflow(){let a=this._cachedMeta,n=a.dataset,s=n.options&&n.options.borderWidth||0,l=a.data||[];if(!l.length)return s;let r=l[0].size(this.resolveDataElementOptions(0)),c=l[l.length-1].size(this.resolveDataElementOptions(l.length-1));return Math.max(s,r,c)/2}draw(){let a=this._cachedMeta;a.dataset.updateControlPoints(this.chart.chartArea,a.iScale.axis),super.draw()}}function xl(){throw Error("This method is not implemented: Check that a complete date adapter is provided.")}class Nx{static override(a){Object.assign(Nx.prototype,a)}options;constructor(a){this.options=a||{}}init(){}formats(){return xl()}parse(){return xl()}format(){return xl()}add(){return xl()}diff(){return xl()}startOf(){return xl()}endOf(){return xl()}}var yO={_date:Nx};function bO(a,n,s,l){let{controller:r,data:c,_sorted:f}=a,h=r._cachedMeta.iScale,p=a.dataset?a.dataset.options?a.dataset.options.spanGaps:null:null;if(h&&n===h.axis&&n!=="r"&&f&&c.length){let y=h._reversePixels?Tw:ri;if(!l){let b=y(c,n,s);if(p){let{vScale:x}=r._cachedMeta,{_parsed:v}=a,I=v.slice(0,b.lo+1).reverse().findIndex((D)=>!Ke(D[x.axis]));b.lo-=Math.max(0,I);let M=v.slice(b.hi).findIndex((D)=>!Ke(D[x.axis]));b.hi+=Math.max(0,M)}return b}else if(r._sharedOptions){let b=c[0],x=typeof b.getRange==="function"&&b.getRange(n);if(x){let v=y(c,n,s-x),I=y(c,n,s+x);return{lo:v.lo,hi:I.hi}}}}return{lo:0,hi:c.length-1}}function nd(a,n,s,l,r){let c=a.getSortedVisibleDatasetMetas(),f=s[n];for(let h=0,p=c.length;h<p;++h){let{index:y,data:b}=c[h],{lo:x,hi:v}=bO(c[h],n,f,r);for(let I=x;I<=v;++I){let M=b[I];if(!M.skip)l(M,y,I)}}}function xO(a){let n=a.indexOf("x")!==-1,s=a.indexOf("y")!==-1;return function(l,r){let c=n?Math.abs(l.x-r.x):0,f=s?Math.abs(l.y-r.y):0;return Math.sqrt(Math.pow(c,2)+Math.pow(f,2))}}function Cx(a,n,s,l,r){let c=[];if(!r&&!a.isPointInArea(n))return c;return nd(a,s,n,function(h,p,y){if(!r&&!xn(h,a.chartArea,0))return;if(h.inRange(n.x,n.y,l))c.push({element:h,datasetIndex:p,index:y})},!0),c}function SO(a,n,s,l){let r=[];function c(f,h,p){let{startAngle:y,endAngle:b}=f.getProps(["startAngle","endAngle"],l),{angle:x}=ww(f,{x:n.x,y:n.y});if(Jb(x,y,b))r.push({element:f,datasetIndex:h,index:p})}return nd(a,s,n,c),r}function vO(a,n,s,l,r,c){let f=[],h=xO(s),p=Number.POSITIVE_INFINITY;function y(b,x,v){let I=b.inRange(n.x,n.y,r);if(l&&!I)return;let M=b.getCenterPoint(r);if(!(!!c||a.isPointInArea(M))&&!I)return;let w=h(n,M);if(w<p)f=[{element:b,datasetIndex:x,index:v}],p=w;else if(w===p)f.push({element:b,datasetIndex:x,index:v})}return nd(a,s,n,y),f}function Ix(a,n,s,l,r,c){if(!c&&!a.isPointInArea(n))return[];return s==="r"&&!l?SO(a,n,s,r):vO(a,n,s,l,r,c)}function lM(a,n,s,l,r){let c=[],f=s==="x"?"inXRange":"inYRange",h=!1;if(nd(a,s,n,(p,y,b)=>{if(p[f]&&p[f](n[s],r))c.push({element:p,datasetIndex:y,index:b}),h=h||p.inRange(n.x,n.y,r)}),l&&!h)return[];return c}var LO={evaluateInteractionItems:nd,modes:{index(a,n,s,l){let r=pi(n,a),c=s.axis||"x",f=s.includeInvisible||!1,h=s.intersect?Cx(a,r,c,l,f):Ix(a,r,c,!1,l,f),p=[];if(!h.length)return[];return a.getSortedVisibleDatasetMetas().forEach((y)=>{let b=h[0].index,x=y.data[b];if(x&&!x.skip)p.push({element:x,datasetIndex:y.index,index:b})}),p},dataset(a,n,s,l){let r=pi(n,a),c=s.axis||"xy",f=s.includeInvisible||!1,h=s.intersect?Cx(a,r,c,l,f):Ix(a,r,c,!1,l,f);if(h.length>0){let p=h[0].datasetIndex,y=a.getDatasetMeta(p).data;h=[];for(let b=0;b<y.length;++b)h.push({element:y[b],datasetIndex:p,index:b})}return h},point(a,n,s,l){let r=pi(n,a),c=s.axis||"xy",f=s.includeInvisible||!1;return Cx(a,r,c,l,f)},nearest(a,n,s,l){let r=pi(n,a),c=s.axis||"xy",f=s.includeInvisible||!1;return Ix(a,r,c,s.intersect,l,f)},x(a,n,s,l){let r=pi(n,a);return lM(a,r,"x",s.intersect,l)},y(a,n,s,l){let r=pi(n,a);return lM(a,r,"y",s.intersect,l)}}},JM=["left","top","right","bottom"];function Wc(a,n){return a.filter((s)=>s.pos===n)}function rM(a,n){return a.filter((s)=>JM.indexOf(s.pos)===-1&&s.box.axis===n)}function $c(a,n){return a.sort((s,l)=>{let r=n?l:s,c=n?s:l;return r.weight===c.weight?r.index-c.index:r.weight-c.weight})}function CO(a){let n=[],s,l,r,c,f,h;for(s=0,l=(a||[]).length;s<l;++s)r=a[s],{position:c,options:{stack:f,stackWeight:h=1}}=r,n.push({index:s,box:r,pos:c,horizontal:r.isHorizontal(),weight:r.weight,stack:f&&c+f,stackWeight:h});return n}function IO(a){let n={};for(let s of a){let{stack:l,pos:r,stackWeight:c}=s;if(!l||!JM.includes(r))continue;let f=n[l]||(n[l]={count:0,placed:0,weight:0,size:0});f.count++,f.weight+=c}return n}function wO(a,n){let s=IO(a),{vBoxMaxWidth:l,hBoxMaxHeight:r}=n,c,f,h;for(c=0,f=a.length;c<f;++c){h=a[c];let{fullSize:p}=h.box,y=s[h.stack],b=y&&h.stackWeight/y.weight;if(h.horizontal)h.width=b?b*l:p&&n.availableWidth,h.height=r;else h.width=l,h.height=b?b*r:p&&n.availableHeight}return s}function MO(a){let n=CO(a),s=$c(n.filter((y)=>y.box.fullSize),!0),l=$c(Wc(n,"left"),!0),r=$c(Wc(n,"right")),c=$c(Wc(n,"top"),!0),f=$c(Wc(n,"bottom")),h=rM(n,"x"),p=rM(n,"y");return{fullSize:s,leftAndTop:l.concat(c),rightAndBottom:r.concat(p).concat(f).concat(h),chartArea:Wc(n,"chartArea"),vertical:l.concat(r).concat(p),horizontal:c.concat(f).concat(h)}}function uM(a,n,s,l){return Math.max(a[s],n[s])+Math.max(a[l],n[l])}function KM(a,n){a.top=Math.max(a.top,n.top),a.left=Math.max(a.left,n.left),a.bottom=Math.max(a.bottom,n.bottom),a.right=Math.max(a.right,n.right)}function TO(a,n,s,l){let{pos:r,box:c}=s,f=a.maxPadding;if(!$e(r)){if(s.size)a[r]-=s.size;let x=l[s.stack]||{size:0,count:1};x.size=Math.max(x.size,s.horizontal?c.height:c.width),s.size=x.size/x.count,a[r]+=s.size}if(c.getPadding)KM(f,c.getPadding());let h=Math.max(0,n.outerWidth-uM(f,a,"left","right")),p=Math.max(0,n.outerHeight-uM(f,a,"top","bottom")),y=h!==a.w,b=p!==a.h;return a.w=h,a.h=p,s.horizontal?{same:y,other:b}:{same:b,other:y}}function AO(a){let n=a.maxPadding;function s(l){let r=Math.max(n[l]-a[l],0);return a[l]+=r,r}a.y+=s("top"),a.x+=s("left"),s("right"),s("bottom")}function _O(a,n){let s=n.maxPadding;function l(r){let c={left:0,top:0,right:0,bottom:0};return r.forEach((f)=>{c[f]=Math.max(n[f],s[f])}),c}return a?l(["left","right"]):l(["top","bottom"])}function Jc(a,n,s,l){let r=[],c,f,h,p,y,b;for(c=0,f=a.length,y=0;c<f;++c){h=a[c],p=h.box,p.update(h.width||n.w,h.height||n.h,_O(h.horizontal,n));let{same:x,other:v}=TO(n,s,h,l);if(y|=x&&r.length,b=b||v,!p.fullSize)r.push(h)}return y&&Jc(r,n,s,l)||b}function dp(a,n,s,l,r){a.top=s,a.left=n,a.right=n+l,a.bottom=s+r,a.width=l,a.height=r}function cM(a,n,s,l){let r=s.padding,{x:c,y:f}=n;for(let h of a){let p=h.box,y=l[h.stack]||{count:1,placed:0,weight:1},b=h.stackWeight/y.weight||1;if(h.horizontal){let x=n.w*b,v=y.size||p.height;if(qr(y.start))f=y.start;if(p.fullSize)dp(p,r.left,f,s.outerWidth-r.right-r.left,v);else dp(p,n.left+y.placed,f,x,v);y.start=f,y.placed+=x,f=p.bottom}else{let x=n.h*b,v=y.size||p.width;if(qr(y.start))c=y.start;if(p.fullSize)dp(p,c,r.top,v,s.outerHeight-r.bottom-r.top);else dp(p,c,n.top+y.placed,v,x);y.start=c,y.placed+=x,c=p.right}}n.x=c,n.y=f}var Io={addBox(a,n){if(!a.boxes)a.boxes=[];n.fullSize=n.fullSize||!1,n.position=n.position||"top",n.weight=n.weight||0,n._layers=n._layers||function(){return[{z:0,draw(s){n.draw(s)}}]},a.boxes.push(n)},removeBox(a,n){let s=a.boxes?a.boxes.indexOf(n):-1;if(s!==-1)a.boxes.splice(s,1)},configure(a,n,s){n.fullSize=s.fullSize,n.position=s.position,n.weight=s.weight},update(a,n,s,l){if(!a)return;let r=la(a.options.layout.padding),c=Math.max(n-r.width,0),f=Math.max(s-r.height,0),h=MO(a.boxes),p=h.vertical,y=h.horizontal;lt(a.boxes,(D)=>{if(typeof D.beforeLayout==="function")D.beforeLayout()});let b=p.reduce((D,w)=>w.box.options&&w.box.options.display===!1?D:D+1,0)||1,x=Object.freeze({outerWidth:n,outerHeight:s,padding:r,availableWidth:c,availableHeight:f,vBoxMaxWidth:c/2/b,hBoxMaxHeight:f/2}),v=Object.assign({},r);KM(v,la(l));let I=Object.assign({maxPadding:v,w:c,h:f,x:r.left,y:r.top},r),M=wO(p.concat(y),x);if(Jc(h.fullSize,I,x,M),Jc(p,I,x,M),Jc(y,I,x,M))Jc(p,I,x,M);AO(I),cM(h.leftAndTop,I,x,M),I.x+=I.w,I.y+=I.h,cM(h.rightAndBottom,I,x,M),a.chartArea={left:I.left,top:I.top,right:I.left+I.w,bottom:I.top+I.h,height:I.h,width:I.w},lt(h.chartArea,(D)=>{let w=D.box;Object.assign(w,a.chartArea),w.update(I.w,I.h,{left:0,top:0,right:0,bottom:0})})}};class qx{acquireContext(a,n){}releaseContext(a){return!1}addEventListener(a,n,s){}removeEventListener(a,n,s){}getDevicePixelRatio(){return 1}getMaximumSize(a,n,s,l){return n=Math.max(0,n||a.width),s=s||a.height,{width:n,height:Math.max(0,l?Math.floor(n/l):s)}}isAttached(a){return!0}updateConfig(a){}}class eT extends qx{acquireContext(a){return a&&a.getContext&&a.getContext("2d")||null}updateConfig(a){a.options.animation=!1}}var gp="$chartjs",DO={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},dM=(a)=>a===null||a==="";function RO(a,n){let s=a.style,l=a.getAttribute("height"),r=a.getAttribute("width");if(a[gp]={initial:{height:l,width:r,style:{display:s.display,height:s.height,width:s.width}}},s.display=s.display||"block",s.boxSizing=s.boxSizing||"border-box",dM(r)){let c=hx(a,"width");if(c!==void 0)a.width=c}if(dM(l))if(a.style.height==="")a.height=a.width/(n||2);else{let c=hx(a,"height");if(c!==void 0)a.height=c}return a}var tT=Xw?{passive:!0}:!1;function kO(a,n,s){if(a)a.addEventListener(n,s,tT)}function OO(a,n,s){if(a&&a.canvas)a.canvas.removeEventListener(n,s,tT)}function EO(a,n){let s=DO[a.type]||a.type,{x:l,y:r}=pi(a,n);return{type:s,chart:n,native:a,x:l!==void 0?l:null,y:r!==void 0?r:null}}function bp(a,n){for(let s of a)if(s===n||s.contains(n))return!0}function BO(a,n,s){let l=a.canvas,r=new MutationObserver((c)=>{let f=!1;for(let h of c)f=f||bp(h.addedNodes,l),f=f&&!bp(h.removedNodes,l);if(f)s()});return r.observe(document,{childList:!0,subtree:!0}),r}function PO(a,n,s){let l=a.canvas,r=new MutationObserver((c)=>{let f=!1;for(let h of c)f=f||bp(h.removedNodes,l),f=f&&!bp(h.addedNodes,l);if(f)s()});return r.observe(document,{childList:!0,subtree:!0}),r}var td=new Map,fM=0;function aT(){let a=window.devicePixelRatio;if(a===fM)return;fM=a,td.forEach((n,s)=>{if(s.currentDevicePixelRatio!==a)n()})}function zO(a,n){if(!td.size)window.addEventListener("resize",aT);td.set(a,n)}function HO(a){if(td.delete(a),!td.size)window.removeEventListener("resize",aT)}function UO(a,n,s){let l=a.canvas,r=l&&up(l);if(!r)return;let c=ax((h,p)=>{let y=r.clientWidth;if(s(h,p),y<r.clientWidth)s()},window),f=new ResizeObserver((h)=>{let p=h[0],y=p.contentRect.width,b=p.contentRect.height;if(y===0&&b===0)return;c(y,b)});return f.observe(r),zO(a,c),f}function wx(a,n,s){if(s)s.disconnect();if(n==="resize")HO(a)}function FO(a,n,s){let l=a.canvas,r=ax((c)=>{if(a.ctx!==null)s(EO(c,a))},a);return kO(l,n,r),r}class oT extends qx{acquireContext(a,n){let s=a&&a.getContext&&a.getContext("2d");if(s&&s.canvas===a)return RO(a,n),s;return null}releaseContext(a){let n=a.canvas;if(!n[gp])return!1;let s=n[gp].initial;["height","width"].forEach((r)=>{let c=s[r];if(Ke(c))n.removeAttribute(r);else n.setAttribute(r,c)});let l=s.style||{};return Object.keys(l).forEach((r)=>{n.style[r]=l[r]}),n.width=n.width,delete n[gp],!0}addEventListener(a,n,s){this.removeEventListener(a,n);let l=a.$proxies||(a.$proxies={}),c={attach:BO,detach:PO,resize:UO}[n]||FO;l[n]=c(a,n,s)}removeEventListener(a,n){let s=a.$proxies||(a.$proxies={}),l=s[n];if(!l)return;({attach:wx,detach:wx,resize:wx}[n]||OO)(a,n,l),s[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(a,n,s,l){return Yw(a,n,s,l)}isAttached(a){let n=a&&up(a);return!!(n&&n.isConnected)}}function NO(a){if(!rp()||typeof OffscreenCanvas<"u"&&a instanceof OffscreenCanvas)return eT;return oT}class rs{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(a){let{x:n,y:s}=this.getProps(["x","y"],a);return{x:n,y:s}}hasValue(){return jr(this.x)&&jr(this.y)}getProps(a,n){let s=this.$animations;if(!n||!s)return this;let l={};return a.forEach((r)=>{l[r]=s[r]&&s[r].active()?s[r]._to:this[r]}),l}}function qO(a,n){let s=a.options.ticks,l=VO(a),r=Math.min(s.maxTicksLimit||l,l),c=s.major.enabled?GO(n):[],f=c.length,h=c[0],p=c[f-1],y=[];if(f>r)return YO(n,y,c,f/r),y;let b=jO(c,n,r);if(f>0){let x,v,I=f>1?Math.round((p-h)/(f-1)):null;fp(n,y,b,Ke(I)?0:h-I,h);for(x=0,v=f-1;x<v;x++)fp(n,y,b,c[x],c[x+1]);return fp(n,y,b,p,Ke(I)?n.length:p+I),y}return fp(n,y,b),y}function VO(a){let n=a.options.offset,s=a._tickSize(),l=a._length/s+(n?0:1),r=a._maxLength/s;return Math.floor(Math.min(l,r))}function jO(a,n,s){let l=XO(a),r=n.length/s;if(!l)return Math.max(r,1);let c=Cw(l);for(let f=0,h=c.length-1;f<h;f++){let p=c[f];if(p>r)return p}return Math.max(r,1)}function GO(a){let n=[],s,l;for(s=0,l=a.length;s<l;s++)if(a[s].major)n.push(s);return n}function YO(a,n,s,l){let r=0,c=s[0],f;l=Math.ceil(l);for(f=0;f<a.length;f++)if(f===c)n.push(a[f]),r++,c=s[r*l]}function fp(a,n,s,l,r){let c=Ue(l,0),f=Math.min(Ue(r,a.length),a.length),h=0,p,y,b;if(s=Math.ceil(s),r)p=r-l,s=p/Math.floor(p/s);b=c;while(b<0)h++,b=Math.round(c+h*s);for(y=Math.max(c,0);y<f;y++)if(y===b)n.push(a[y]),h++,b=Math.round(c+h*s)}function XO(a){let n=a.length,s,l;if(n<2)return!1;for(l=a[0],s=1;s<n;++s)if(a[s]-a[s-1]!==l)return!1;return l}var WO=(a)=>a==="left"?"right":a==="right"?"left":a,hM=(a,n,s)=>n==="top"||n==="left"?a[n]+s:a[n]-s,pM=(a,n)=>Math.min(n||a,a);function mM(a,n){let s=[],l=a.length/n,r=a.length,c=0;for(;c<r;c+=l)s.push(a[Math.floor(c)]);return s}function $O(a,n,s){let l=a.ticks.length,r=Math.min(n,l-1),c=a._startPixel,f=a._endPixel,h=0.000001,p=a.getPixelForTick(r),y;if(s){if(l===1)y=Math.max(p-c,f-p);else if(n===0)y=(a.getPixelForTick(1)-p)/2;else y=(p-a.getPixelForTick(r-1))/2;if(p+=r<n?y:-y,p<c-0.000001||p>f+0.000001)return}return p}function QO(a,n){lt(a,(s)=>{let l=s.gc,r=l.length/2,c;if(r>n){for(c=0;c<r;++c)delete s.data[l[c]];l.splice(0,r)}})}function Qc(a){return a.drawTicks?a.tickLength:0}function gM(a,n){if(!a.display)return 0;let s=jt(a.font,n),l=la(a.padding);return(St(a.text)?a.text.length:1)*s.lineHeight+l.height}function ZO(a,n){return ss(a,{scale:n,type:"scale"})}function JO(a,n,s){return ss(a,{tick:s,index:n,type:"tick"})}function KO(a,n,s){let l=op(a);if(s&&n!=="right"||!s&&n==="right")l=WO(l);return l}function eE(a,n,s,l){let{top:r,left:c,bottom:f,right:h,chart:p}=a,{chartArea:y,scales:b}=p,x=0,v,I,M,D=f-r,w=h-c;if(a.isHorizontal()){if(I=ia(l,c,h),$e(s)){let z=Object.keys(s)[0],N=s[z];M=b[z].getPixelForValue(N)+D-n}else if(s==="center")M=(y.bottom+y.top)/2+D-n;else M=hM(a,s,n);v=h-c}else{if($e(s)){let z=Object.keys(s)[0],N=s[z];I=b[z].getPixelForValue(N)-w+n}else if(s==="center")I=(y.left+y.right)/2-w+n;else I=hM(a,s,n);M=ia(l,f,r),x=s==="left"?-Ba:Ba}return{titleX:I,titleY:M,maxWidth:v,rotation:x}}class vl extends rs{constructor(a){super();this.id=a.id,this.type=a.type,this.options=void 0,this.ctx=a.ctx,this.chart=a.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(a){this.options=a.setContext(this.getContext()),this.axis=a.axis,this._userMin=this.parse(a.min),this._userMax=this.parse(a.max),this._suggestedMin=this.parse(a.suggestedMin),this._suggestedMax=this.parse(a.suggestedMax)}parse(a,n){return a}getUserBounds(){let{_userMin:a,_userMax:n,_suggestedMin:s,_suggestedMax:l}=this;return a=Ha(a,Number.POSITIVE_INFINITY),n=Ha(n,Number.NEGATIVE_INFINITY),s=Ha(s,Number.POSITIVE_INFINITY),l=Ha(l,Number.NEGATIVE_INFINITY),{min:Ha(a,s),max:Ha(n,l),minDefined:At(a),maxDefined:At(n)}}getMinMax(a){let{min:n,max:s,minDefined:l,maxDefined:r}=this.getUserBounds(),c;if(l&&r)return{min:n,max:s};let f=this.getMatchingVisibleMetas();for(let h=0,p=f.length;h<p;++h){if(c=f[h].controller.getMinMax(this,a),!l)n=Math.min(n,c.min);if(!r)s=Math.max(s,c.max)}return n=r&&n>s?s:n,s=l&&n>s?n:s,{min:Ha(n,Ha(s,n)),max:Ha(s,Ha(n,s))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){let a=this.chart.data;return this.options.labels||(this.isHorizontal()?a.xLabels:a.yLabels)||a.labels||[]}getLabelItems(a=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(a))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){gt(this.options.beforeUpdate,[this])}update(a,n,s){let{beginAtZero:l,grace:r,ticks:c}=this.options,f=c.sampleSize;if(this.beforeUpdate(),this.maxWidth=a,this.maxHeight=n,this._margins=s=Object.assign({left:0,right:0,top:0,bottom:0},s),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+s.left+s.right:this.height+s.top+s.bottom,!this._dataLimitsCached)this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=Fw(this,r,l),this._dataLimitsCached=!0;this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();let h=f<this.ticks.length;if(this._convertTicksToLabels(h?mM(this.ticks,f):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),c.display&&(c.autoSkip||c.source==="auto"))this.ticks=qO(this,this.ticks),this._labelSizes=null,this.afterAutoSkip();if(h)this._convertTicksToLabels(this.ticks);this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let a=this.options.reverse,n,s;if(this.isHorizontal())n=this.left,s=this.right;else n=this.top,s=this.bottom,a=!a;this._startPixel=n,this._endPixel=s,this._reversePixels=a,this._length=s-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){gt(this.options.afterUpdate,[this])}beforeSetDimensions(){gt(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(){gt(this.options.afterSetDimensions,[this])}_callHooks(a){this.chart.notifyPlugins(a,this.getContext()),gt(this.options[a],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){gt(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(a){let n=this.options.ticks,s,l,r;for(s=0,l=a.length;s<l;s++)r=a[s],r.label=gt(n.callback,[r.value,s,a],this)}afterTickToLabelConversion(){gt(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){gt(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){let a=this.options,n=a.ticks,s=pM(this.ticks.length,a.ticks.maxTicksLimit),l=n.minRotation||0,r=n.maxRotation,c=l,f,h,p;if(!this._isVisible()||!n.display||l>=r||s<=1||!this.isHorizontal()){this.labelRotation=l;return}let y=this._getLabelSizes(),b=y.widest.width,x=y.highest.height,v=za(this.chart.width-b,0,this.maxWidth);if(f=a.offset?this.maxWidth/s:v/(s-1),b+6>f)f=v/(s-(a.offset?0.5:1)),h=this.maxHeight-Qc(a.grid)-n.padding-gM(a.title,this.chart.options.font),p=Math.sqrt(b*b+x*x),c=tp(Math.min(Math.asin(za((y.highest.height+6)/f,-1,1)),Math.asin(za(h/p,-1,1))-Math.asin(za(x/p,-1,1)))),c=Math.max(l,Math.min(r,c));this.labelRotation=c}afterCalculateLabelRotation(){gt(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){gt(this.options.beforeFit,[this])}fit(){let a={width:0,height:0},{chart:n,options:{ticks:s,title:l,grid:r}}=this,c=this._isVisible(),f=this.isHorizontal();if(c){let h=gM(l,n.options.font);if(f)a.width=this.maxWidth,a.height=Qc(r)+h;else a.height=this.maxHeight,a.width=Qc(r)+h;if(s.display&&this.ticks.length){let{first:p,last:y,widest:b,highest:x}=this._getLabelSizes(),v=s.padding*2,I=os(this.labelRotation),M=Math.cos(I),D=Math.sin(I);if(f){let w=s.mirror?0:D*b.width+M*x.height;a.height=Math.min(this.maxHeight,a.height+w+v)}else{let w=s.mirror?0:M*b.width+D*x.height;a.width=Math.min(this.maxWidth,a.width+w+v)}this._calculatePadding(p,y,D,M)}}if(this._handleMargins(),f)this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=a.height;else this.width=a.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom}_calculatePadding(a,n,s,l){let{ticks:{align:r,padding:c},position:f}=this.options,h=this.labelRotation!==0,p=f!=="top"&&this.axis==="x";if(this.isHorizontal()){let y=this.getPixelForTick(0)-this.left,b=this.right-this.getPixelForTick(this.ticks.length-1),x=0,v=0;if(h)if(p)x=l*a.width,v=s*n.height;else x=s*a.height,v=l*n.width;else if(r==="start")v=n.width;else if(r==="end")x=a.width;else if(r!=="inner")x=a.width/2,v=n.width/2;this.paddingLeft=Math.max((x-y+c)*this.width/(this.width-y),0),this.paddingRight=Math.max((v-b+c)*this.width/(this.width-b),0)}else{let y=n.height/2,b=a.height/2;if(r==="start")y=0,b=a.height;else if(r==="end")y=n.height,b=0;this.paddingTop=y+c,this.paddingBottom=b+c}}_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(){gt(this.options.afterFit,[this])}isHorizontal(){let{axis:a,position:n}=this.options;return n==="top"||n==="bottom"||a==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(a){this.beforeTickToLabelConversion(),this.generateTickLabels(a);let n,s;for(n=0,s=a.length;n<s;n++)if(Ke(a[n].label))a.splice(n,1),s--,n--;this.afterTickToLabelConversion()}_getLabelSizes(){let a=this._labelSizes;if(!a){let n=this.options.ticks.sampleSize,s=this.ticks;if(n<s.length)s=mM(s,n);this._labelSizes=a=this._computeLabelSizes(s,s.length,this.options.ticks.maxTicksLimit)}return a}_computeLabelSizes(a,n,s){let{ctx:l,_longestTextCache:r}=this,c=[],f=[],h=Math.floor(n/pM(n,s)),p=0,y=0,b,x,v,I,M,D,w,z,N,Q,Z;for(b=0;b<n;b+=h){if(I=a[b].label,M=this._resolveTickFontOptions(b),l.font=D=M.string,w=r[D]=r[D]||{data:{},gc:[]},z=M.lineHeight,N=Q=0,!Ke(I)&&!St(I))N=Nc(l,w.data,w.gc,N,I),Q=z;else if(St(I)){for(x=0,v=I.length;x<v;++x)if(Z=I[x],!Ke(Z)&&!St(Z))N=Nc(l,w.data,w.gc,N,Z),Q+=z}c.push(N),f.push(Q),p=Math.max(N,p),y=Math.max(Q,y)}QO(r,n);let X=c.indexOf(p),oe=f.indexOf(y),V=(J)=>({width:c[J]||0,height:f[J]||0});return{first:V(0),last:V(n-1),widest:V(X),highest:V(oe),widths:c,heights:f}}getLabelForValue(a){return a}getPixelForValue(a,n){return NaN}getValueForPixel(a){}getPixelForTick(a){let n=this.ticks;if(a<0||a>n.length-1)return null;return this.getPixelForValue(n[a].value)}getPixelForDecimal(a){if(this._reversePixels)a=1-a;let n=this._startPixel+a*this._length;return Mw(this._alignToPixels?di(this.chart,n,0):n)}getDecimalForPixel(a){let n=(a-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){let{min:a,max:n}=this;return a<0&&n<0?n:a>0&&n>0?a:0}getContext(a){let n=this.ticks||[];if(a>=0&&a<n.length){let s=n[a];return s.$context||(s.$context=JO(this.getContext(),a,s))}return this.$context||(this.$context=ZO(this.chart.getContext(),this))}_tickSize(){let a=this.options.ticks,n=os(this.labelRotation),s=Math.abs(Math.cos(n)),l=Math.abs(Math.sin(n)),r=this._getLabelSizes(),c=a.autoSkipPadding||0,f=r?r.widest.width+c:0,h=r?r.highest.height+c:0;return this.isHorizontal()?h*s>f*l?f/s:h/l:h*l<f*s?h/s:f/l}_isVisible(){let a=this.options.display;if(a!=="auto")return!!a;return this.getMatchingVisibleMetas().length>0}_computeGridLineItems(a){let n=this.axis,s=this.chart,l=this.options,{grid:r,position:c,border:f}=l,h=r.offset,p=this.isHorizontal(),b=this.ticks.length+(h?1:0),x=Qc(r),v=[],I=f.setContext(this.getContext()),M=I.display?I.width:0,D=M/2,w=function(G){return di(s,G,M)},z,N,Q,Z,X,oe,V,J,re,q,ce,ye;if(c==="top")z=w(this.bottom),oe=this.bottom-x,J=z-D,q=w(a.top)+D,ye=a.bottom;else if(c==="bottom")z=w(this.top),q=a.top,ye=w(a.bottom)-D,oe=z+D,J=this.top+x;else if(c==="left")z=w(this.right),X=this.right-x,V=z-D,re=w(a.left)+D,ce=a.right;else if(c==="right")z=w(this.left),re=a.left,ce=w(a.right)-D,X=z+D,V=this.left+x;else if(n==="x"){if(c==="center")z=w((a.top+a.bottom)/2+0.5);else if($e(c)){let G=Object.keys(c)[0],se=c[G];z=w(this.chart.scales[G].getPixelForValue(se))}q=a.top,ye=a.bottom,oe=z+D,J=oe+x}else if(n==="y"){if(c==="center")z=w((a.left+a.right)/2);else if($e(c)){let G=Object.keys(c)[0],se=c[G];z=w(this.chart.scales[G].getPixelForValue(se))}X=z-D,V=X-x,re=a.left,ce=a.right}let Se=Ue(l.ticks.maxTicksLimit,b),Me=Math.max(1,Math.ceil(b/Se));for(N=0;N<b;N+=Me){let G=this.getContext(N),se=r.setContext(G),de=f.setContext(G),Ve=se.lineWidth,Ee=se.color,R=de.dash||[],W=de.dashOffset,fe=se.tickWidth,he=se.tickColor,Be=se.tickBorderDash||[],Dt=se.tickBorderDashOffset;if(Q=$O(this,N,h),Q===void 0)continue;if(Z=di(s,Q,Ve),p)X=V=re=ce=Z;else oe=J=q=ye=Z;v.push({tx1:X,ty1:oe,tx2:V,ty2:J,x1:re,y1:q,x2:ce,y2:ye,width:Ve,color:Ee,borderDash:R,borderDashOffset:W,tickWidth:fe,tickColor:he,tickBorderDash:Be,tickBorderDashOffset:Dt})}return this._ticksLength=b,this._borderValue=z,v}_computeLabelItems(a){let n=this.axis,s=this.options,{position:l,ticks:r}=s,c=this.isHorizontal(),f=this.ticks,{align:h,crossAlign:p,padding:y,mirror:b}=r,x=Qc(s.grid),v=x+y,I=b?-y:v,M=-os(this.labelRotation),D=[],w,z,N,Q,Z,X,oe,V,J,re,q,ce,ye="middle";if(l==="top")X=this.bottom-I,oe=this._getXAxisLabelAlignment();else if(l==="bottom")X=this.top+I,oe=this._getXAxisLabelAlignment();else if(l==="left"){let Me=this._getYAxisLabelAlignment(x);oe=Me.textAlign,Z=Me.x}else if(l==="right"){let Me=this._getYAxisLabelAlignment(x);oe=Me.textAlign,Z=Me.x}else if(n==="x"){if(l==="center")X=(a.top+a.bottom)/2+v;else if($e(l)){let Me=Object.keys(l)[0],G=l[Me];X=this.chart.scales[Me].getPixelForValue(G)+v}oe=this._getXAxisLabelAlignment()}else if(n==="y"){if(l==="center")Z=(a.left+a.right)/2-v;else if($e(l)){let Me=Object.keys(l)[0],G=l[Me];Z=this.chart.scales[Me].getPixelForValue(G)}oe=this._getYAxisLabelAlignment(x).textAlign}if(n==="y"){if(h==="start")ye="top";else if(h==="end")ye="bottom"}let Se=this._getLabelSizes();for(w=0,z=f.length;w<z;++w){N=f[w],Q=N.label;let Me=r.setContext(this.getContext(w));V=this.getPixelForTick(w)+r.labelOffset,J=this._resolveTickFontOptions(w),re=J.lineHeight,q=St(Q)?Q.length:1;let G=q/2,se=Me.color,de=Me.textStrokeColor,Ve=Me.textStrokeWidth,Ee=oe;if(c){if(Z=V,oe==="inner")if(w===z-1)Ee=!this.options.reverse?"right":"left";else if(w===0)Ee=!this.options.reverse?"left":"right";else Ee="center";if(l==="top")if(p==="near"||M!==0)ce=-q*re+re/2;else if(p==="center")ce=-Se.highest.height/2-G*re+re;else ce=-Se.highest.height+re/2;else if(p==="near"||M!==0)ce=re/2;else if(p==="center")ce=Se.highest.height/2-G*re;else ce=Se.highest.height-q*re;if(b)ce*=-1;if(M!==0&&!Me.showLabelBackdrop)Z+=re/2*Math.sin(M)}else X=V,ce=(1-q)*re/2;let R;if(Me.showLabelBackdrop){let W=la(Me.backdropPadding),fe=Se.heights[w],he=Se.widths[w],Be=ce-W.top,Dt=0-W.left;switch(ye){case"middle":Be-=fe/2;break;case"bottom":Be-=fe;break}switch(oe){case"center":Dt-=he/2;break;case"right":Dt-=he;break;case"inner":if(w===z-1)Dt-=he;else if(w>0)Dt-=he/2;break}R={left:Dt,top:Be,width:he+W.width,height:fe+W.height,color:Me.backdropColor}}D.push({label:Q,font:J,textOffset:ce,options:{rotation:M,color:se,strokeColor:de,strokeWidth:Ve,textAlign:Ee,textBaseline:ye,translation:[Z,X],backdrop:R}})}return D}_getXAxisLabelAlignment(){let{position:a,ticks:n}=this.options;if(-os(this.labelRotation))return a==="top"?"left":"right";let l="center";if(n.align==="start")l="left";else if(n.align==="end")l="right";else if(n.align==="inner")l="inner";return l}_getYAxisLabelAlignment(a){let{position:n,ticks:{crossAlign:s,mirror:l,padding:r}}=this.options,c=this._getLabelSizes(),f=a+r,h=c.widest.width,p,y;if(n==="left")if(l)if(y=this.right+r,s==="near")p="left";else if(s==="center")p="center",y+=h/2;else p="right",y+=h;else if(y=this.right-f,s==="near")p="right";else if(s==="center")p="center",y-=h/2;else p="left",y=this.left;else if(n==="right")if(l)if(y=this.left+r,s==="near")p="right";else if(s==="center")p="center",y-=h/2;else p="left",y-=h;else if(y=this.left+f,s==="near")p="left";else if(s==="center")p="center",y+=h/2;else p="right",y=this.right;else p="right";return{textAlign:p,x:y}}_computeLabelArea(){if(this.options.ticks.mirror)return;let a=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:a.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:a.width}}drawBackground(){let{ctx:a,options:{backgroundColor:n},left:s,top:l,width:r,height:c}=this;if(n)a.save(),a.fillStyle=n,a.fillRect(s,l,r,c),a.restore()}getLineWidthForValue(a){let n=this.options.grid;if(!this._isVisible()||!n.display)return 0;let l=this.ticks.findIndex((r)=>r.value===a);if(l>=0)return n.setContext(this.getContext(l)).lineWidth;return 0}drawGrid(a){let n=this.options.grid,s=this.ctx,l=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(a)),r,c,f=(h,p,y)=>{if(!y.width||!y.color)return;s.save(),s.lineWidth=y.width,s.strokeStyle=y.color,s.setLineDash(y.borderDash||[]),s.lineDashOffset=y.borderDashOffset,s.beginPath(),s.moveTo(h.x,h.y),s.lineTo(p.x,p.y),s.stroke(),s.restore()};if(n.display)for(r=0,c=l.length;r<c;++r){let h=l[r];if(n.drawOnChartArea)f({x:h.x1,y:h.y1},{x:h.x2,y:h.y2},h);if(n.drawTicks)f({x:h.tx1,y:h.ty1},{x:h.tx2,y:h.ty2},{color:h.tickColor,width:h.tickWidth,borderDash:h.tickBorderDash,borderDashOffset:h.tickBorderDashOffset})}}drawBorder(){let{chart:a,ctx:n,options:{border:s,grid:l}}=this,r=s.setContext(this.getContext()),c=s.display?r.width:0;if(!c)return;let f=l.setContext(this.getContext(0)).lineWidth,h=this._borderValue,p,y,b,x;if(this.isHorizontal())p=di(a,this.left,c)-c/2,y=di(a,this.right,f)+f/2,b=x=h;else b=di(a,this.top,c)-c/2,x=di(a,this.bottom,f)+f/2,p=y=h;n.save(),n.lineWidth=r.width,n.strokeStyle=r.color,n.beginPath(),n.moveTo(p,b),n.lineTo(y,x),n.stroke(),n.restore()}drawLabels(a){if(!this.options.ticks.display)return;let s=this.ctx,l=this._computeLabelArea();if(l)jc(s,l);let r=this.getLabelItems(a);for(let c of r){let{options:f,font:h,label:p,textOffset:y}=c;fi(s,p,0,y,h,f)}if(l)Gc(s)}drawTitle(){let{ctx:a,options:{position:n,title:s,reverse:l}}=this;if(!s.display)return;let r=jt(s.font),c=la(s.padding),f=s.align,h=r.lineHeight/2;if(n==="bottom"||n==="center"||$e(n)){if(h+=c.bottom,St(s.text))h+=r.lineHeight*(s.text.length-1)}else h+=c.top;let{titleX:p,titleY:y,maxWidth:b,rotation:x}=eE(this,h,n,f);fi(a,s.text,0,0,r,{color:s.color,maxWidth:b,rotation:x,textAlign:KO(f,n,l),textBaseline:"middle",translation:[p,y]})}draw(a){if(!this._isVisible())return;this.drawBackground(),this.drawGrid(a),this.drawBorder(),this.drawTitle(),this.drawLabels(a)}_layers(){let a=this.options,n=a.ticks&&a.ticks.z||0,s=Ue(a.grid&&a.grid.z,-1),l=Ue(a.border&&a.border.z,0);if(!this._isVisible()||this.draw!==vl.prototype.draw)return[{z:n,draw:(r)=>{this.draw(r)}}];return[{z:s,draw:(r)=>{this.drawBackground(),this.drawGrid(r),this.drawTitle()}},{z:l,draw:()=>{this.drawBorder()}},{z:n,draw:(r)=>{this.drawLabels(r)}}]}getMatchingVisibleMetas(a){let n=this.chart.getSortedVisibleDatasetMetas(),s=this.axis+"AxisID",l=[],r,c;for(r=0,c=n.length;r<c;++r){let f=n[r];if(f[s]===this.id&&(!a||f.type===a))l.push(f)}return l}_resolveTickFontOptions(a){let n=this.options.ticks.setContext(this.getContext(a));return jt(n.font)}_maxDigits(){let a=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/a}}class Kc{constructor(a,n,s){this.type=a,this.scope=n,this.override=s,this.items=Object.create(null)}isForType(a){return Object.prototype.isPrototypeOf.call(this.type.prototype,a.prototype)}register(a){let n=Object.getPrototypeOf(a),s;if(oE(n))s=this.register(n);let l=this.items,r=a.id,c=this.scope+"."+r;if(!r)throw Error("class does not have id: "+a);if(r in l)return c;if(l[r]=a,tE(a,c,s),this.override)_t.override(a.id,a.overrides);return c}get(a){return this.items[a]}unregister(a){let n=this.items,s=a.id,l=this.scope;if(s in n)delete n[s];if(l&&s in _t[l]){if(delete _t[l][s],this.override)delete ci[s]}}}function tE(a,n,s){let l=Ur(Object.create(null),[s?_t.get(s):{},_t.get(n),a.defaults]);if(_t.set(n,l),a.defaultRoutes)aE(n,a.defaultRoutes);if(a.descriptors)_t.describe(n,a.descriptors)}function aE(a,n){Object.keys(n).forEach((s)=>{let l=s.split("."),r=l.pop(),c=[a].concat(l).join("."),f=n[s].split("."),h=f.pop(),p=f.join(".");_t.route(c,r,p,h)})}function oE(a){return"id"in a&&"defaults"in a}class nT{constructor(){this.controllers=new Kc(xp,"datasets",!0),this.elements=new Kc(rs,"elements"),this.plugins=new Kc(Object,"plugins"),this.scales=new Kc(vl,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...a){this._each("register",a)}remove(...a){this._each("unregister",a)}addControllers(...a){this._each("register",a,this.controllers)}addElements(...a){this._each("register",a,this.elements)}addPlugins(...a){this._each("register",a,this.plugins)}addScales(...a){this._each("register",a,this.scales)}getController(a){return this._get(a,this.controllers,"controller")}getElement(a){return this._get(a,this.elements,"element")}getPlugin(a){return this._get(a,this.plugins,"plugin")}getScale(a){return this._get(a,this.scales,"scale")}removeControllers(...a){this._each("unregister",a,this.controllers)}removeElements(...a){this._each("unregister",a,this.elements)}removePlugins(...a){this._each("unregister",a,this.plugins)}removeScales(...a){this._each("unregister",a,this.scales)}_each(a,n,s){[...n].forEach((l)=>{let r=s||this._getRegistryForType(l);if(s||r.isForType(l)||r===this.plugins&&l.id)this._exec(a,r,l);else lt(l,(c)=>{let f=s||this._getRegistryForType(c);this._exec(a,f,c)})})}_exec(a,n,s){let l=ep(a);gt(s["before"+l],[],s),n[a](s),gt(s["after"+l],[],s)}_getRegistryForType(a){for(let n=0;n<this._typedRegistries.length;n++){let s=this._typedRegistries[n];if(s.isForType(a))return s}return this.plugins}_get(a,n,s){let l=n.get(a);if(l===void 0)throw Error('"'+a+'" is not a registered '+s+".");return l}}var Ln=new nT;class sT{constructor(){this._init=void 0}notify(a,n,s,l){if(n==="beforeInit")this._init=this._createDescriptors(a,!0),this._notify(this._init,a,"install");if(this._init===void 0)return;let r=l?this._descriptors(a).filter(l):this._descriptors(a),c=this._notify(r,a,n,s);if(n==="afterDestroy")this._notify(r,a,"stop"),this._notify(this._init,a,"uninstall"),this._init=void 0;return c}_notify(a,n,s,l){l=l||{};for(let r of a){let c=r.plugin,f=c[s],h=[n,l,r.options];if(gt(f,h,c)===!1&&l.cancelable)return!1}return!0}invalidate(){if(!Ke(this._cache))this._oldCache=this._cache,this._cache=void 0}_descriptors(a){if(this._cache)return this._cache;let n=this._cache=this._createDescriptors(a);return this._notifyStateChanges(a),n}_createDescriptors(a,n){let s=a&&a.config,l=Ue(s.options&&s.options.plugins,{}),r=nE(s);return l===!1&&!n?[]:iE(a,r,l,n)}_notifyStateChanges(a){let n=this._oldCache||[],s=this._cache,l=(r,c)=>r.filter((f)=>!c.some((h)=>f.plugin.id===h.plugin.id));this._notify(l(n,s),a,"stop"),this._notify(l(s,n),a,"start")}}function nE(a){let n={},s=[],l=Object.keys(Ln.plugins.items);for(let c=0;c<l.length;c++)s.push(Ln.getPlugin(l[c]));let r=a.plugins||[];for(let c=0;c<r.length;c++){let f=r[c];if(s.indexOf(f)===-1)s.push(f),n[f.id]=!0}return{plugins:s,localIds:n}}function sE(a,n){if(!n&&a===!1)return null;if(a===!0)return{};return a}function iE(a,{plugins:n,localIds:s},l,r){let c=[],f=a.getContext();for(let h of n){let p=h.id,y=sE(l[p],r);if(y===null)continue;c.push({plugin:h,options:lE(a.config,{plugin:h,local:s[p]},y,f)})}return c}function lE(a,{plugin:n,local:s},l,r){let c=a.pluginScopeKeys(n),f=a.getOptionScopes(l,c);if(s&&n.defaults)f.push(n.defaults);return a.createResolver(f,r,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Dx(a,n){let s=_t.datasets[a]||{};return((n.datasets||{})[a]||{}).indexAxis||n.indexAxis||s.indexAxis||"x"}function rE(a,n){let s=a;if(a==="_index_")s=n;else if(a==="_value_")s=n==="x"?"y":"x";return s}function uE(a,n){return a===n?"_index_":"_value_"}function yM(a){if(a==="x"||a==="y"||a==="r")return a}function cE(a){if(a==="top"||a==="bottom")return"x";if(a==="left"||a==="right")return"y"}function Rx(a,...n){if(yM(a))return a;for(let s of n){let l=s.axis||cE(s.position)||a.length>1&&yM(a[0].toLowerCase());if(l)return l}throw Error(`Cannot determine type of '${a}' axis. Please provide 'axis' or 'position' option.`)}function bM(a,n,s){if(s[n+"AxisID"]===a)return{axis:n}}function dE(a,n){if(n.data&&n.data.datasets){let s=n.data.datasets.filter((l)=>l.xAxisID===a||l.yAxisID===a);if(s.length)return bM(a,"x",s[0])||bM(a,"y",s[0])}return{}}function fE(a,n){let s=ci[a.type]||{scales:{}},l=n.scales||{},r=Dx(a.type,n),c=Object.create(null);return Object.keys(l).forEach((f)=>{let h=l[f];if(!$e(h))return console.error(`Invalid scale configuration for scale: ${f}`);if(h._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${f}`);let p=Rx(f,h,dE(f,a),_t.scales[h.type]),y=uE(p,r),b=s.scales||{};c[f]=Nr(Object.create(null),[{axis:p},h,b[p],b[y]])}),a.data.datasets.forEach((f)=>{let h=f.type||a.type,p=f.indexAxis||Dx(h,n),b=(ci[h]||{}).scales||{};Object.keys(b).forEach((x)=>{let v=rE(x,p),I=f[v+"AxisID"]||v;c[I]=c[I]||Object.create(null),Nr(c[I],[{axis:v},l[I],b[x]])})}),Object.keys(c).forEach((f)=>{let h=c[f];Nr(h,[_t.scales[h.type],_t.scale])}),c}function iT(a){let n=a.options||(a.options={});n.plugins=Ue(n.plugins,{}),n.scales=fE(a,n)}function lT(a){return a=a||{},a.datasets=a.datasets||[],a.labels=a.labels||[],a}function hE(a){return a=a||{},a.data=lT(a.data),iT(a),a}var xM=new Map,rT=new Set;function hp(a,n){let s=xM.get(a);if(!s)s=n(),xM.set(a,s),rT.add(s);return s}var Zc=(a,n,s)=>{let l=yl(n,s);if(l!==void 0)a.add(l)};class uT{constructor(a){this._config=hE(a),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(a){this._config.type=a}get data(){return this._config.data}set data(a){this._config.data=lT(a)}get options(){return this._config.options}set options(a){this._config.options=a}get plugins(){return this._config.plugins}update(){let a=this._config;this.clearCache(),iT(a)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(a){return hp(a,()=>[[`datasets.${a}`,""]])}datasetAnimationScopeKeys(a,n){return hp(`${a}.transition.${n}`,()=>[[`datasets.${a}.transitions.${n}`,`transitions.${n}`],[`datasets.${a}`,""]])}datasetElementScopeKeys(a,n){return hp(`${a}-${n}`,()=>[[`datasets.${a}.elements.${n}`,`datasets.${a}`,`elements.${n}`,""]])}pluginScopeKeys(a){let n=a.id,s=this.type;return hp(`${s}-plugin-${n}`,()=>[[`plugins.${n}`,...a.additionalOptionScopes||[]]])}_cachedScopes(a,n){let s=this._scopeCache,l=s.get(a);if(!l||n)l=new Map,s.set(a,l);return l}getOptionScopes(a,n,s){let{options:l,type:r}=this,c=this._cachedScopes(a,s),f=c.get(n);if(f)return f;let h=new Set;n.forEach((y)=>{if(a)h.add(a),y.forEach((b)=>Zc(h,a,b));y.forEach((b)=>Zc(h,l,b)),y.forEach((b)=>Zc(h,ci[r]||{},b)),y.forEach((b)=>Zc(h,_t,b)),y.forEach((b)=>Zc(h,sp,b))});let p=Array.from(h);if(p.length===0)p.push(Object.create(null));if(rT.has(n))c.set(n,p);return p}chartOptionScopes(){let{options:a,type:n}=this;return[a,ci[n]||{},_t.datasets[n]||{},{type:n},_t,sp]}resolveNamedOptions(a,n,s,l=[""]){let r={$shared:!0},{resolver:c,subPrefixes:f}=SM(this._resolverCache,a,l),h=c;if(mE(c,n)){r.$shared=!1,s=ts(s)?s():s;let p=this.createResolver(a,s,f);h=gl(c,s,p)}for(let p of n)r[p]=h[p];return r}createResolver(a,n,s=[""],l){let{resolver:r}=SM(this._resolverCache,a,s);return $e(n)?gl(r,n,void 0,l):r}}function SM(a,n,s){let l=a.get(n);if(!l)l=new Map,a.set(n,l);let r=s.join(),c=l.get(r);if(!c)c={resolver:lp(n,s),subPrefixes:s.filter((h)=>!h.toLowerCase().includes("hover"))},l.set(r,c);return c}var pE=(a)=>$e(a)&&Object.getOwnPropertyNames(a).some((n)=>ts(a[n]));function mE(a,n){let{isScriptable:s,isIndexable:l}=ux(a);for(let r of n){let c=s(r),f=l(r),h=(f||c)&&a[r];if(c&&(ts(h)||pE(h))||f&&St(h))return!0}return!1}var gE="4.5.1",yE=["top","bottom","left","right","chartArea"];function vM(a,n){return a==="top"||a==="bottom"||yE.indexOf(a)===-1&&n==="x"}function LM(a,n){return function(s,l){return s[a]===l[a]?s[n]-l[n]:s[a]-l[a]}}function CM(a){let n=a.chart,s=n.options.animation;n.notifyPlugins("afterRender"),gt(s&&s.onComplete,[a],n)}function bE(a){let n=a.chart,s=n.options.animation;gt(s&&s.onProgress,[a],n)}function cT(a){if(rp()&&typeof a==="string")a=document.getElementById(a);else if(a&&a.length)a=a[0];if(a&&a.canvas)a=a.canvas;return a}var yp={},IM=(a)=>{let n=cT(a);return Object.values(yp).filter((s)=>s.canvas===n).pop()};function xE(a,n,s){let l=Object.keys(a);for(let r of l){let c=+r;if(c>=n){let f=a[r];if(delete a[r],s>0||c>n)a[c+s]=f}}}function SE(a,n,s,l){if(!s||a.type==="mouseout")return null;if(l)return n;return a}class Ma{static defaults=_t;static instances=yp;static overrides=ci;static registry=Ln;static version=gE;static getChart=IM;static register(...a){Ln.add(...a),wM()}static unregister(...a){Ln.remove(...a),wM()}constructor(a,n){let s=this.config=new uT(n),l=cT(a),r=IM(l);if(r)throw Error("Canvas is already in use. Chart with ID '"+r.id+"' must be destroyed before the canvas with ID '"+r.canvas.id+"' can be reused.");let c=s.createResolver(s.chartOptionScopes(),this.getContext());this.platform=new(s.platform||NO(l)),this.platform.updateConfig(s);let f=this.platform.acquireContext(l,c.aspectRatio),h=f&&f.canvas,p=h&&h.height,y=h&&h.width;if(this.id=xw(),this.ctx=f,this.canvas=h,this.width=y,this.height=p,this._options=c,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 sT,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=Rw((b)=>this.update(b),c.resizeDelay||0),this._dataChanges=[],yp[this.id]=this,!f||!h){console.error("Failed to create chart: can't acquire context from the given item");return}if(is.listen(this,"complete",CM),is.listen(this,"progress",bE),this._initialize(),this.attached)this.update()}get aspectRatio(){let{options:{aspectRatio:a,maintainAspectRatio:n},width:s,height:l,_aspectRatio:r}=this;if(!Ke(a))return a;if(n&&r)return r;return l?s/l:null}get data(){return this.config.data}set data(a){this.config.data=a}get options(){return this._options}set options(a){this.config.options=a}get registry(){return Ln}_initialize(){if(this.notifyPlugins("beforeInit"),this.options.responsive)this.resize();else fx(this,this.options.devicePixelRatio);return this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return sx(this.canvas,this.ctx),this}stop(){return is.stop(this),this}resize(a,n){if(!is.running(this))this._resize(a,n);else this._resizeBeforeDraw={width:a,height:n}}_resize(a,n){let s=this.options,l=this.canvas,r=s.maintainAspectRatio&&this.aspectRatio,c=this.platform.getMaximumSize(l,a,n,r),f=s.devicePixelRatio||this.platform.getDevicePixelRatio(),h=this.width?"resize":"attach";if(this.width=c.width,this.height=c.height,this._aspectRatio=this.aspectRatio,!fx(this,f,!0))return;if(this.notifyPlugins("resize",{size:c}),gt(s.onResize,[this,c],this),this.attached){if(this._doResize(h))this.render()}}ensureScalesHaveIDs(){let n=this.options.scales||{};lt(n,(s,l)=>{s.id=l})}buildOrUpdateScales(){let a=this.options,n=a.scales,s=this.scales,l=Object.keys(s).reduce((c,f)=>(c[f]=!1,c),{}),r=[];if(n)r=r.concat(Object.keys(n).map((c)=>{let f=n[c],h=Rx(c,f),p=h==="r",y=h==="x";return{options:f,dposition:p?"chartArea":y?"bottom":"left",dtype:p?"radialLinear":y?"category":"linear"}}));lt(r,(c)=>{let f=c.options,h=f.id,p=Rx(h,f),y=Ue(f.type,c.dtype);if(f.position===void 0||vM(f.position,p)!==vM(c.dposition))f.position=c.dposition;l[h]=!0;let b=null;if(h in s&&s[h].type===y)b=s[h];else b=new(Ln.getScale(y))({id:h,type:y,ctx:this.ctx,chart:this}),s[b.id]=b;b.init(f,a)}),lt(l,(c,f)=>{if(!c)delete s[f]}),lt(s,(c)=>{Io.configure(this,c,c.options),Io.addBox(this,c)})}_updateMetasets(){let a=this._metasets,n=this.data.datasets.length,s=a.length;if(a.sort((l,r)=>l.index-r.index),s>n){for(let l=n;l<s;++l)this._destroyDatasetMeta(l);a.splice(n,s-n)}this._sortedMetasets=a.slice(0).sort(LM("order","index"))}_removeUnreferencedMetasets(){let{_metasets:a,data:{datasets:n}}=this;if(a.length>n.length)delete this._stacks;a.forEach((s,l)=>{if(n.filter((r)=>r===s._dataset).length===0)this._destroyDatasetMeta(l)})}buildOrUpdateControllers(){let a=[],n=this.data.datasets,s,l;this._removeUnreferencedMetasets();for(s=0,l=n.length;s<l;s++){let r=n[s],c=this.getDatasetMeta(s),f=r.type||this.config.type;if(c.type&&c.type!==f)this._destroyDatasetMeta(s),c=this.getDatasetMeta(s);if(c.type=f,c.indexAxis=r.indexAxis||Dx(f,this.options),c.order=r.order||0,c.index=s,c.label=""+r.label,c.visible=this.isDatasetVisible(s),c.controller)c.controller.updateIndex(s),c.controller.linkScales();else{let h=Ln.getController(f),{datasetElementType:p,dataElementType:y}=_t.datasets[f];Object.assign(h,{dataElementType:Ln.getElement(y),datasetElementType:p&&Ln.getElement(p)}),c.controller=new h(this,s),a.push(c.controller)}}return this._updateMetasets(),a}_resetElements(){lt(this.data.datasets,(a,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(a){let n=this.config;n.update();let s=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),l=this._animationsDisabled=!s.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:a,cancelable:!0})===!1)return;let r=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let c=0;for(let p=0,y=this.data.datasets.length;p<y;p++){let{controller:b}=this.getDatasetMeta(p),x=!l&&r.indexOf(b)===-1;b.buildOrUpdateElements(x),c=Math.max(+b.getMaxOverflow(),c)}if(c=this._minPadding=s.layout.autoPadding?c:0,this._updateLayout(c),!l)lt(r,(p)=>{p.reset()});this._updateDatasets(a),this.notifyPlugins("afterUpdate",{mode:a}),this._layers.sort(LM("z","_idx"));let{_active:f,_lastEvent:h}=this;if(h)this._eventHandler(h,!0);else if(f.length)this._updateHoverStyles(f,f,!0);this.render()}_updateScales(){lt(this.scales,(a)=>{Io.removeBox(this,a)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){let a=this.options,n=new Set(Object.keys(this._listeners)),s=new Set(a.events);if(!Wb(n,s)||!!this._responsiveListeners!==a.responsive)this.unbindEvents(),this.bindEvents()}_updateHiddenIndices(){let{_hiddenIndices:a}=this,n=this._getUniformDataChanges()||[];for(let{method:s,start:l,count:r}of n){let c=s==="_removeElements"?-r:r;xE(a,l,c)}}_getUniformDataChanges(){let a=this._dataChanges;if(!a||!a.length)return;this._dataChanges=[];let n=this.data.datasets.length,s=(r)=>new Set(a.filter((c)=>c[0]===r).map((c,f)=>f+","+c.splice(1).join(","))),l=s(0);for(let r=1;r<n;r++)if(!Wb(l,s(r)))return;return Array.from(l).map((r)=>r.split(",")).map((r)=>({method:r[1],start:+r[2],count:+r[3]}))}_updateLayout(a){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;Io.update(this,this.width,this.height,a);let n=this.chartArea,s=n.width<=0||n.height<=0;this._layers=[],lt(this.boxes,(l)=>{if(s&&l.position==="chartArea")return;if(l.configure)l.configure();this._layers.push(...l._layers())},this),this._layers.forEach((l,r)=>{l._idx=r}),this.notifyPlugins("afterLayout")}_updateDatasets(a){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:a,cancelable:!0})===!1)return;for(let n=0,s=this.data.datasets.length;n<s;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,s=this.data.datasets.length;n<s;++n)this._updateDataset(n,ts(a)?a({datasetIndex:n}):a);this.notifyPlugins("afterDatasetsUpdate",{mode:a})}_updateDataset(a,n){let s=this.getDatasetMeta(a),l={meta:s,index:a,mode:n,cancelable:!0};if(this.notifyPlugins("beforeDatasetUpdate",l)===!1)return;s.controller._update(n),l.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",l)}render(){if(this.notifyPlugins("beforeRender",{cancelable:!0})===!1)return;if(is.has(this)){if(this.attached&&!is.running(this))is.start(this)}else this.draw(),CM({chart:this})}draw(){let a;if(this._resizeBeforeDraw){let{width:s,height:l}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(s,l)}if(this.clear(),this.width<=0||this.height<=0)return;if(this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;let n=this._layers;for(a=0;a<n.length&&n[a].z<=0;++a)n[a].draw(this.chartArea);this._drawDatasets();for(;a<n.length;++a)n[a].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(a){let n=this._sortedMetasets,s=[],l,r;for(l=0,r=n.length;l<r;++l){let c=n[l];if(!a||c.visible)s.push(c)}return s}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;let a=this.getSortedVisibleDatasetMetas();for(let n=a.length-1;n>=0;--n)this._drawDataset(a[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(a){let n=this.ctx,s={meta:a,index:a.index,cancelable:!0},l=bx(this,a);if(this.notifyPlugins("beforeDatasetDraw",s)===!1)return;if(l)jc(n,l);if(a.controller.draw(),l)Gc(n);s.cancelable=!1,this.notifyPlugins("afterDatasetDraw",s)}isPointInArea(a){return xn(a,this.chartArea,this._minPadding)}getElementsAtEventForMode(a,n,s,l){let r=LO.modes[n];if(typeof r==="function")return r(this,a,s,l);return[]}getDatasetMeta(a){let n=this.data.datasets[a],s=this._metasets,l=s.filter((r)=>r&&r._dataset===n).pop();if(!l)l={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:a,_dataset:n,_parsed:[],_sorted:!1},s.push(l);return l}getContext(){return this.$context||(this.$context=ss(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(a){let n=this.data.datasets[a];if(!n)return!1;let s=this.getDatasetMeta(a);return typeof s.hidden==="boolean"?!s.hidden:!n.hidden}setDatasetVisibility(a,n){let s=this.getDatasetMeta(a);s.hidden=!n}toggleDataVisibility(a){this._hiddenIndices[a]=!this._hiddenIndices[a]}getDataVisibility(a){return!this._hiddenIndices[a]}_updateVisibility(a,n,s){let l=s?"show":"hide",r=this.getDatasetMeta(a),c=r.controller._resolveAnimations(void 0,l);if(qr(n))r.data[n].hidden=!s,this.update();else this.setDatasetVisibility(a,s),c.update(r,{visible:s}),this.update((f)=>f.datasetIndex===a?l:void 0)}hide(a,n){this._updateVisibility(a,n,!1)}show(a,n){this._updateVisibility(a,n,!0)}_destroyDatasetMeta(a){let n=this._metasets[a];if(n&&n.controller)n.controller._destroy();delete this._metasets[a]}_stop(){let a,n;this.stop(),is.remove(this);for(a=0,n=this.data.datasets.length;a<n;++a)this._destroyDatasetMeta(a)}destroy(){this.notifyPlugins("beforeDestroy");let{canvas:a,ctx:n}=this;if(this._stop(),this.config.clearCache(),a)this.unbindEvents(),sx(a,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null;delete yp[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...a){return this.canvas.toDataURL(...a)}bindEvents(){if(this.bindUserEvents(),this.options.responsive)this.bindResponsiveEvents();else this.attached=!0}bindUserEvents(){let a=this._listeners,n=this.platform,s=(r,c)=>{n.addEventListener(this,r,c),a[r]=c},l=(r,c,f)=>{r.offsetX=c,r.offsetY=f,this._eventHandler(r)};lt(this.options.events,(r)=>s(r,l))}bindResponsiveEvents(){if(!this._responsiveListeners)this._responsiveListeners={};let a=this._responsiveListeners,n=this.platform,s=(h,p)=>{n.addEventListener(this,h,p),a[h]=p},l=(h,p)=>{if(a[h])n.removeEventListener(this,h,p),delete a[h]},r=(h,p)=>{if(this.canvas)this.resize(h,p)},c,f=()=>{l("attach",f),this.attached=!0,this.resize(),s("resize",r),s("detach",c)};if(c=()=>{this.attached=!1,l("resize",r),this._stop(),this._resize(0,0),s("attach",f)},n.isAttached(this.canvas))f();else c()}unbindEvents(){lt(this._listeners,(a,n)=>{this.platform.removeEventListener(this,n,a)}),this._listeners={},lt(this._responsiveListeners,(a,n)=>{this.platform.removeEventListener(this,n,a)}),this._responsiveListeners=void 0}updateHoverStyle(a,n,s){let l=s?"set":"remove",r,c,f,h;if(n==="dataset")r=this.getDatasetMeta(a[0].datasetIndex),r.controller["_"+l+"DatasetHoverStyle"]();for(f=0,h=a.length;f<h;++f){c=a[f];let p=c&&this.getDatasetMeta(c.datasetIndex).controller;if(p)p[l+"HoverStyle"](c.element,c.datasetIndex,c.index)}}getActiveElements(){return this._active||[]}setActiveElements(a){let n=this._active||[],s=a.map(({datasetIndex:r,index:c})=>{let f=this.getDatasetMeta(r);if(!f)throw Error("No dataset found at index "+r);return{datasetIndex:r,element:f.data[c],index:c}});if(!qc(s,n))this._active=s,this._lastEvent=null,this._updateHoverStyles(s,n)}notifyPlugins(a,n,s){return this._plugins.notify(this,a,n,s)}isPluginEnabled(a){return this._plugins._cache.filter((n)=>n.plugin.id===a).length===1}_updateHoverStyles(a,n,s){let l=this.options.hover,r=(h,p)=>h.filter((y)=>!p.some((b)=>y.datasetIndex===b.datasetIndex&&y.index===b.index)),c=r(n,a),f=s?a:r(a,n);if(c.length)this.updateHoverStyle(c,l.mode,!1);if(f.length&&l.mode)this.updateHoverStyle(f,l.mode,!0)}_eventHandler(a,n){let s={event:a,replay:n,cancelable:!0,inChartArea:this.isPointInArea(a)},l=(c)=>(c.options.events||this.options.events).includes(a.native.type);if(this.notifyPlugins("beforeEvent",s,l)===!1)return;let r=this._handleEvent(a,n,s.inChartArea);if(s.cancelable=!1,this.notifyPlugins("afterEvent",s,l),r||s.changed)this.render();return this}_handleEvent(a,n,s){let{_active:l=[],options:r}=this,c=n,f=this._getActiveElements(a,l,s,c),h=Lw(a),p=SE(a,this._lastEvent,s,h);if(s){if(this._lastEvent=null,gt(r.onHover,[a,f,this],this),h)gt(r.onClick,[a,f,this],this)}let y=!qc(f,l);if(y||n)this._active=f,this._updateHoverStyles(f,l,n);return this._lastEvent=p,y}_getActiveElements(a,n,s,l){if(a.type==="mouseout")return[];if(!s)return n;let r=this.options.hover;return this.getElementsAtEventForMode(a,r.mode,r,l)}}function wM(){return lt(Ma.instances,(a)=>a._plugins.invalidate())}function dT(a,n,s=n){a.lineCap=Ue(s.borderCapStyle,n.borderCapStyle),a.setLineDash(Ue(s.borderDash,n.borderDash)),a.lineDashOffset=Ue(s.borderDashOffset,n.borderDashOffset),a.lineJoin=Ue(s.borderJoinStyle,n.borderJoinStyle),a.lineWidth=Ue(s.borderWidth,n.borderWidth),a.strokeStyle=Ue(s.borderColor,n.borderColor)}function vE(a,n,s){a.lineTo(s.x,s.y)}function LE(a){if(a.stepped)return Hw;if(a.tension||a.cubicInterpolationMode==="monotone")return Uw;return vE}function fT(a,n,s={}){let l=a.length,{start:r=0,end:c=l-1}=s,{start:f,end:h}=n,p=Math.max(r,f),y=Math.min(c,h),b=r<f&&c<f||r>h&&c>h;return{count:l,start:p,loop:n.loop,ilen:y<p&&!b?l+y-p:y-p}}function CE(a,n,s,l){let{points:r,options:c}=n,{count:f,start:h,loop:p,ilen:y}=fT(r,s,l),b=LE(c),{move:x=!0,reverse:v}=l||{},I,M,D;for(I=0;I<=y;++I){if(M=r[(h+(v?y-I:I))%f],M.skip)continue;else if(x)a.moveTo(M.x,M.y),x=!1;else b(a,D,M,v,c.stepped);D=M}if(p)M=r[(h+(v?y:0))%f],b(a,D,M,v,c.stepped);return!!p}function IE(a,n,s,l){let r=n.points,{count:c,start:f,ilen:h}=fT(r,s,l),{move:p=!0,reverse:y}=l||{},b=0,x=0,v,I,M,D,w,z,N=(Z)=>(f+(y?h-Z:Z))%c,Q=()=>{if(D!==w)a.lineTo(b,w),a.lineTo(b,D),a.lineTo(b,z)};if(p)I=r[N(0)],a.moveTo(I.x,I.y);for(v=0;v<=h;++v){if(I=r[N(v)],I.skip)continue;let{x:Z,y:X}=I,oe=Z|0;if(oe===M){if(X<D)D=X;else if(X>w)w=X;b=(x*b+Z)/++x}else Q(),a.lineTo(Z,X),M=oe,x=0,D=w=X;z=X}Q()}function kx(a){let n=a.options,s=n.borderDash&&n.borderDash.length;return!a._decimated&&!a._loop&&!n.tension&&n.cubicInterpolationMode!=="monotone"&&!n.stepped&&!s?IE:CE}function wE(a){if(a.stepped)return Ww;if(a.tension||a.cubicInterpolationMode==="monotone")return $w;return li}function ME(a,n,s,l){let r=n._path;if(!r){if(r=n._path=new Path2D,n.path(r,s,l))r.closePath()}dT(a,n.options),a.stroke(r)}function TE(a,n,s,l){let{segments:r,options:c}=n,f=kx(n);for(let h of r){if(dT(a,c,h.style),a.beginPath(),f(a,n,h,{start:s,end:s+l-1}))a.closePath();a.stroke()}}var AE=typeof Path2D==="function";function _E(a,n,s,l){if(AE&&!n.options.segment)ME(a,n,s,l);else TE(a,n,s,l)}class Na extends rs{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:(a)=>a!=="borderDash"&&a!=="fill"};constructor(a){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,a)Object.assign(this,a)}updateControlPoints(a,n){let s=this.options;if((s.tension||s.cubicInterpolationMode==="monotone")&&!s.stepped&&!this._pointsUpdated){let l=s.spanGaps?this._loop:this._fullLoop;Gw(this._points,s,a,l,n),this._pointsUpdated=!0}}set points(a){this._points=a,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=Zw(this,this.options.segment))}first(){let a=this.segments,n=this.points;return a.length&&n[a[0].start]}last(){let a=this.segments,n=this.points,s=a.length;return s&&n[a[s-1].end]}interpolate(a,n){let s=this.options,l=a[n],r=this.points,c=yx(this,{property:n,start:l,end:l});if(!c.length)return;let f=[],h=wE(s),p,y;for(p=0,y=c.length;p<y;++p){let{start:b,end:x}=c[p],v=r[b],I=r[x];if(v===I){f.push(v);continue}let M=Math.abs((l-v[n])/(I[n]-v[n])),D=h(v,I,M,s.stepped);D[n]=a[n],f.push(D)}return f.length===1?f[0]:f}pathSegment(a,n,s){return kx(this)(a,this,n,s)}path(a,n,s){let l=this.segments,r=kx(this),c=this._loop;n=n||0,s=s||this.points.length-n;for(let f of l)c&=r(a,this,f,{start:n,end:n+s-1});return!!c}draw(a,n,s,l){let r=this.options||{};if((this.points||[]).length&&r.borderWidth)a.save(),_E(a,this,s,l),a.restore();if(this.animated)this._pointsUpdated=!1,this._path=void 0}}function MM(a,n,s,l){let r=a.options,{[s]:c}=a.getProps([s],l);return Math.abs(n-c)<r.radius+r.hitRadius}class Uo extends rs{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(a){super();if(this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,a)Object.assign(this,a)}inRange(a,n,s){let l=this.options,{x:r,y:c}=this.getProps(["x","y"],s);return Math.pow(a-r,2)+Math.pow(n-c,2)<Math.pow(l.hitRadius+l.radius,2)}inXRange(a,n){return MM(this,a,"x",n)}inYRange(a,n){return MM(this,a,"y",n)}getCenterPoint(a){let{x:n,y:s}=this.getProps(["x","y"],a);return{x:n,y:s}}size(a){a=a||this.options||{};let n=a.radius||0;n=Math.max(n,n&&a.hoverRadius||0);let s=n&&a.borderWidth||0;return(n+s)*2}draw(a,n){let s=this.options;if(this.skip||s.radius<0.1||!xn(this,n,this.size(s)/2))return;a.strokeStyle=s.borderColor,a.lineWidth=s.borderWidth,a.fillStyle=s.backgroundColor,ip(a,s,this.x,this.y)}getRange(){let a=this.options||{};return a.radius+a.hitRadius}}function hT(a,n){let{x:s,y:l,base:r,width:c,height:f}=a.getProps(["x","y","base","width","height"],n),h,p,y,b,x;if(a.horizontal)x=f/2,h=Math.min(s,r),p=Math.max(s,r),y=l-x,b=l+x;else x=c/2,h=s-x,p=s+x,y=Math.min(l,r),b=Math.max(l,r);return{left:h,top:y,right:p,bottom:b}}function mi(a,n,s,l){return a?0:za(n,s,l)}function DE(a,n,s){let l=a.options.borderWidth,r=a.borderSkipped,c=rx(l);return{t:mi(r.top,c.top,0,s),r:mi(r.right,c.right,0,n),b:mi(r.bottom,c.bottom,0,s),l:mi(r.left,c.left,0,n)}}function RE(a,n,s){let{enableBorderRadius:l}=a.getProps(["enableBorderRadius"]),r=a.options.borderRadius,c=hi(r),f=Math.min(n,s),h=a.borderSkipped,p=l||$e(r);return{topLeft:mi(!p||h.top||h.left,c.topLeft,0,f),topRight:mi(!p||h.top||h.right,c.topRight,0,f),bottomLeft:mi(!p||h.bottom||h.left,c.bottomLeft,0,f),bottomRight:mi(!p||h.bottom||h.right,c.bottomRight,0,f)}}function kE(a){let n=hT(a),s=n.right-n.left,l=n.bottom-n.top,r=DE(a,s/2,l/2),c=RE(a,s/2,l/2);return{outer:{x:n.left,y:n.top,w:s,h:l,radius:c},inner:{x:n.left+r.l,y:n.top+r.t,w:s-r.l-r.r,h:l-r.t-r.b,radius:{topLeft:Math.max(0,c.topLeft-Math.max(r.t,r.l)),topRight:Math.max(0,c.topRight-Math.max(r.t,r.r)),bottomLeft:Math.max(0,c.bottomLeft-Math.max(r.b,r.l)),bottomRight:Math.max(0,c.bottomRight-Math.max(r.b,r.r))}}}}function Mx(a,n,s,l){let r=n===null,c=s===null,h=a&&!(r&&c)&&hT(a,l);return h&&(r||ns(n,h.left,h.right))&&(c||ns(s,h.top,h.bottom))}function OE(a){return a.topLeft||a.topRight||a.bottomLeft||a.bottomRight}function EE(a,n){a.rect(n.x,n.y,n.w,n.h)}function Tx(a,n,s={}){let l=a.x!==s.x?-n:0,r=a.y!==s.y?-n:0,c=(a.x+a.w!==s.x+s.w?n:0)-l,f=(a.y+a.h!==s.y+s.h?n:0)-r;return{x:a.x+l,y:a.y+r,w:a.w+c,h:a.h+f,radius:a.radius}}class sd extends rs{static id="bar";static defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(a){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,a)Object.assign(this,a)}draw(a){let{inflateAmount:n,options:{borderColor:s,backgroundColor:l}}=this,{inner:r,outer:c}=kE(this),f=OE(c.radius)?Gr:EE;if(a.save(),c.w!==r.w||c.h!==r.h)a.beginPath(),f(a,Tx(c,n,r)),a.clip(),f(a,Tx(r,-n,c)),a.fillStyle=s,a.fill("evenodd");a.beginPath(),f(a,Tx(r,n)),a.fillStyle=l,a.fill(),a.restore()}inRange(a,n,s){return Mx(this,a,n,s)}inXRange(a,n){return Mx(this,a,null,n)}inYRange(a,n){return Mx(this,null,a,n)}getCenterPoint(a){let{x:n,y:s,base:l,horizontal:r}=this.getProps(["x","y","base","horizontal"],a);return{x:r?(n+l)/2:n,y:r?s:(s+l)/2}}getRange(a){return a==="x"?this.width/2:this.height/2}}function BE(a,n,s){let{segments:l,points:r}=a,c=n.points,f=[];for(let h of l){let{start:p,end:y}=h;y=Sp(p,y,r);let b=Ox(s,r[p],r[y],h.loop);if(!n.segments){f.push({source:h,target:b,start:r[p],end:r[y]});continue}let x=yx(n,b);for(let v of x){let I=Ox(s,c[v.start],c[v.end],v.loop),M=gx(h,r,I);for(let D of M)f.push({source:D,target:v,start:{[s]:TM(b,I,"start",Math.max)},end:{[s]:TM(b,I,"end",Math.min)}})}}return f}function Ox(a,n,s,l){if(l)return;let r=n[a],c=s[a];if(a==="angle")r=Ea(r),c=Ea(c);return{property:a,start:r,end:c}}function PE(a,n){let{x:s=null,y:l=null}=a||{},r=n.points,c=[];return n.segments.forEach(({start:f,end:h})=>{h=Sp(f,h,r);let p=r[f],y=r[h];if(l!==null)c.push({x:p.x,y:l}),c.push({x:y.x,y:l});else if(s!==null)c.push({x:s,y:p.y}),c.push({x:s,y:y.y})}),c}function Sp(a,n,s){for(;n>a;n--){let l=s[n];if(!isNaN(l.x)&&!isNaN(l.y))break}return n}function TM(a,n,s,l){if(a&&n)return l(a[s],n[s]);return a?a[s]:n?n[s]:0}function pT(a,n){let s=[],l=!1;if(St(a))l=!0,s=a;else s=PE(a,n);return s.length?new Na({points:s,options:{tension:0},_loop:l,_fullLoop:l}):null}function AM(a){return a&&a.fill!==!1}function zE(a,n,s){let r=a[n].fill,c=[n],f;if(!s)return r;while(r!==!1&&c.indexOf(r)===-1){if(!At(r))return r;if(f=a[r],!f)return!1;if(f.visible)return r;c.push(r),r=f.fill}return!1}function HE(a,n,s){let l=qE(a);if($e(l))return isNaN(l.value)?!1:l;let r=parseFloat(l);if(At(r)&&Math.floor(r)===r)return UE(l[0],n,r,s);return["origin","start","end","stack","shape"].indexOf(l)>=0&&l}function UE(a,n,s,l){if(a==="-"||a==="+")s=n+s;if(s===n||s<0||s>=l)return!1;return s}function FE(a,n){let s=null;if(a==="start")s=n.bottom;else if(a==="end")s=n.top;else if($e(a))s=n.getPixelForValue(a.value);else if(n.getBasePixel)s=n.getBasePixel();return s}function NE(a,n,s){let l;if(a==="start")l=s;else if(a==="end")l=n.options.reverse?n.min:n.max;else if($e(a))l=a.value;else l=n.getBaseValue();return l}function qE(a){let n=a.options,s=n.fill,l=Ue(s&&s.target,s);if(l===void 0)l=!!n.backgroundColor;if(l===!1||l===null)return!1;if(l===!0)return"origin";return l}function VE(a){let{scale:n,index:s,line:l}=a,r=[],c=l.segments,f=l.points,h=jE(n,s);h.push(pT({x:null,y:n.bottom},l));for(let p=0;p<c.length;p++){let y=c[p];for(let b=y.start;b<=y.end;b++)GE(r,f[b],h)}return new Na({points:r,options:{}})}function jE(a,n){let s=[],l=a.getMatchingVisibleMetas("line");for(let r=0;r<l.length;r++){let c=l[r];if(c.index===n)break;if(!c.hidden)s.unshift(c.dataset)}return s}function GE(a,n,s){let l=[];for(let r=0;r<s.length;r++){let c=s[r],{first:f,last:h,point:p}=YE(c,n,"x");if(!p||f&&h)continue;if(f)l.unshift(p);else if(a.push(p),!h)break}a.push(...l)}function YE(a,n,s){let l=a.interpolate(n,s);if(!l)return{};let r=l[s],c=a.segments,f=a.points,h=!1,p=!1;for(let y=0;y<c.length;y++){let b=c[y],x=f[b.start][s],v=f[b.end][s];if(ns(r,x,v)){h=r===x,p=r===v;break}}return{first:h,last:p,point:l}}class Vx{constructor(a){this.x=a.x,this.y=a.y,this.radius=a.radius}pathSegment(a,n,s){let{x:l,y:r,radius:c}=this;return n=n||{start:0,end:Pa},a.arc(l,r,c,n.end,n.start,!0),!s.bounds}interpolate(a){let{x:n,y:s,radius:l}=this,r=a.angle;return{x:n+Math.cos(r)*l,y:s+Math.sin(r)*l,angle:r}}}function XE(a){let{chart:n,fill:s,line:l}=a;if(At(s))return WE(n,s);if(s==="stack")return VE(a);if(s==="shape")return!0;let r=$E(a);if(r instanceof Vx)return r;return pT(r,l)}function WE(a,n){let s=a.getDatasetMeta(n);return s&&a.isDatasetVisible(n)?s.dataset:null}function $E(a){if((a.scale||{}).getPointPositionForValue)return ZE(a);return QE(a)}function QE(a){let{scale:n={},fill:s}=a,l=FE(s,n);if(At(l)){let r=n.isHorizontal();return{x:r?l:null,y:r?null:l}}return null}function ZE(a){let{scale:n,fill:s}=a,l=n.options,r=n.getLabels().length,c=l.reverse?n.max:n.min,f=NE(s,n,c),h=[];if(l.grid.circular){let p=n.getPointPositionForValue(0,c);return new Vx({x:p.x,y:p.y,radius:n.getDistanceFromCenterForValue(f)})}for(let p=0;p<r;++p)h.push(n.getPointPositionForValue(p,f));return h}function Ax(a,n,s){let l=XE(n),{chart:r,index:c,line:f,scale:h,axis:p}=n,y=f.options,b=y.fill,x=y.backgroundColor,{above:v=x,below:I=x}=b||{},M=r.getDatasetMeta(c),D=bx(r,M);if(l&&f.points.length)jc(a,s),JE(a,{line:f,target:l,above:v,below:I,area:s,scale:h,axis:p,clip:D}),Gc(a)}function JE(a,n){let{line:s,target:l,above:r,below:c,area:f,scale:h,clip:p}=n,y=s._loop?"angle":n.axis;a.save();let b=c;if(c!==r){if(y==="x")_M(a,l,f.top),_x(a,{line:s,target:l,color:r,scale:h,property:y,clip:p}),a.restore(),a.save(),_M(a,l,f.bottom);else if(y==="y")DM(a,l,f.left),_x(a,{line:s,target:l,color:c,scale:h,property:y,clip:p}),a.restore(),a.save(),DM(a,l,f.right),b=r}_x(a,{line:s,target:l,color:b,scale:h,property:y,clip:p}),a.restore()}function _M(a,n,s){let{segments:l,points:r}=n,c=!0,f=!1;a.beginPath();for(let h of l){let{start:p,end:y}=h,b=r[p],x=r[Sp(p,y,r)];if(c)a.moveTo(b.x,b.y),c=!1;else a.lineTo(b.x,s),a.lineTo(b.x,b.y);if(f=!!n.pathSegment(a,h,{move:f}),f)a.closePath();else a.lineTo(x.x,s)}a.lineTo(n.first().x,s),a.closePath(),a.clip()}function DM(a,n,s){let{segments:l,points:r}=n,c=!0,f=!1;a.beginPath();for(let h of l){let{start:p,end:y}=h,b=r[p],x=r[Sp(p,y,r)];if(c)a.moveTo(b.x,b.y),c=!1;else a.lineTo(s,b.y),a.lineTo(b.x,b.y);if(f=!!n.pathSegment(a,h,{move:f}),f)a.closePath();else a.lineTo(s,x.y)}a.lineTo(s,n.first().y),a.closePath(),a.clip()}function _x(a,n){let{line:s,target:l,property:r,color:c,scale:f,clip:h}=n,p=BE(s,l,r);for(let{source:y,target:b,start:x,end:v}of p){let{style:{backgroundColor:I=c}={}}=y,M=l!==!0;a.save(),a.fillStyle=I,KE(a,f,h,M&&Ox(r,x,v)),a.beginPath();let D=!!s.pathSegment(a,y),w;if(M){if(D)a.closePath();else RM(a,l,v,r);let z=!!l.pathSegment(a,b,{move:D,reverse:!0});if(w=D&&z,!w)RM(a,l,x,r)}a.closePath(),a.fill(w?"evenodd":"nonzero"),a.restore()}}function KE(a,n,s,l){let r=n.chart.chartArea,{property:c,start:f,end:h}=l||{};if(c==="x"||c==="y"){let p,y,b,x;if(c==="x")p=f,y=r.top,b=h,x=r.bottom;else p=r.left,y=f,b=r.right,x=h;if(a.beginPath(),s)p=Math.max(p,s.left),b=Math.min(b,s.right),y=Math.max(y,s.top),x=Math.min(x,s.bottom);a.rect(p,y,b-p,x-y),a.clip()}}function RM(a,n,s,l){let r=n.interpolate(s,l);if(r)a.lineTo(r.x,r.y)}var Yr={id:"filler",afterDatasetsUpdate(a,n,s){let l=(a.data.datasets||[]).length,r=[],c,f,h,p;for(f=0;f<l;++f){if(c=a.getDatasetMeta(f),h=c.dataset,p=null,h&&h.options&&h instanceof Na)p={visible:a.isDatasetVisible(f),index:f,fill:HE(h,f,l),chart:a,axis:c.controller.options.indexAxis,scale:c.vScale,line:h};c.$filler=p,r.push(p)}for(f=0;f<l;++f){if(p=r[f],!p||p.fill===!1)continue;p.fill=zE(r,f,s.propagate)}},beforeDraw(a,n,s){let l=s.drawTime==="beforeDraw",r=a.getSortedVisibleDatasetMetas(),c=a.chartArea;for(let f=r.length-1;f>=0;--f){let h=r[f].$filler;if(!h)continue;if(h.line.updateControlPoints(c,h.axis),l&&h.fill)Ax(a.ctx,h,c)}},beforeDatasetsDraw(a,n,s){if(s.drawTime!=="beforeDatasetsDraw")return;let l=a.getSortedVisibleDatasetMetas();for(let r=l.length-1;r>=0;--r){let c=l[r].$filler;if(AM(c))Ax(a.ctx,c,a.chartArea)}},beforeDatasetDraw(a,n,s){let l=n.meta.$filler;if(!AM(l)||s.drawTime!=="beforeDatasetDraw")return;Ax(a.ctx,l,a.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}},kM=(a,n)=>{let{boxHeight:s=n,boxWidth:l=n}=a;if(a.usePointStyle)s=Math.min(s,n),l=a.pointStyleWidth||Math.min(l,n);return{boxWidth:l,boxHeight:s,itemHeight:Math.max(n,s)}},eB=(a,n)=>a!==null&&n!==null&&a.datasetIndex===n.datasetIndex&&a.index===n.index;class Ex extends rs{constructor(a){super();this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=a.chart,this.options=a.options,this.ctx=a.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(a,n,s){this.maxWidth=a,this.maxHeight=n,this._margins=s,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 a=this.options.labels||{},n=gt(a.generateLabels,[this.chart],this)||[];if(a.filter)n=n.filter((s)=>a.filter(s,this.chart.data));if(a.sort)n=n.sort((s,l)=>a.sort(s,l,this.chart.data));if(this.options.reverse)n.reverse();this.legendItems=n}fit(){let{options:a,ctx:n}=this;if(!a.display){this.width=this.height=0;return}let s=a.labels,l=jt(s.font),r=l.size,c=this._computeTitleHeight(),{boxWidth:f,itemHeight:h}=kM(s,r),p,y;if(n.font=l.string,this.isHorizontal())p=this.maxWidth,y=this._fitRows(c,r,f,h)+10;else y=this.maxHeight,p=this._fitCols(c,l,f,h)+10;this.width=Math.min(p,a.maxWidth||this.maxWidth),this.height=Math.min(y,a.maxHeight||this.maxHeight)}_fitRows(a,n,s,l){let{ctx:r,maxWidth:c,options:{labels:{padding:f}}}=this,h=this.legendHitBoxes=[],p=this.lineWidths=[0],y=l+f,b=a;r.textAlign="left",r.textBaseline="middle";let x=-1,v=-y;return this.legendItems.forEach((I,M)=>{let D=s+n/2+r.measureText(I.text).width;if(M===0||p[p.length-1]+D+2*f>c)b+=y,p[p.length-(M>0?0:1)]=0,v+=y,x++;h[M]={left:0,top:v,row:x,width:D,height:l},p[p.length-1]+=D+f}),b}_fitCols(a,n,s,l){let{ctx:r,maxHeight:c,options:{labels:{padding:f}}}=this,h=this.legendHitBoxes=[],p=this.columnSizes=[],y=c-a,b=f,x=0,v=0,I=0,M=0;return this.legendItems.forEach((D,w)=>{let{itemWidth:z,itemHeight:N}=tB(s,n,r,D,l);if(w>0&&v+N+2*f>y)b+=x+f,p.push({width:x,height:v}),I+=x+f,M++,x=v=0;h[w]={left:I,top:v,col:M,width:z,height:N},x=Math.max(x,z),v+=N+f}),b+=x,p.push({width:x,height:v}),b}adjustHitBoxes(){if(!this.options.display)return;let a=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:s,labels:{padding:l},rtl:r}}=this,c=bl(r,this.left,this.width);if(this.isHorizontal()){let f=0,h=ia(s,this.left+l,this.right-this.lineWidths[f]);for(let p of n){if(f!==p.row)f=p.row,h=ia(s,this.left+l,this.right-this.lineWidths[f]);p.top+=this.top+a+l,p.left=c.leftForLtr(c.x(h),p.width),h+=p.width+l}}else{let f=0,h=ia(s,this.top+a+l,this.bottom-this.columnSizes[f].height);for(let p of n){if(p.col!==f)f=p.col,h=ia(s,this.top+a+l,this.bottom-this.columnSizes[f].height);p.top=h,p.left+=this.left+l,p.left=c.leftForLtr(c.x(p.left),p.width),h+=p.height+l}}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){let a=this.ctx;jc(a,this),this._draw(),Gc(a)}}_draw(){let{options:a,columnSizes:n,lineWidths:s,ctx:l}=this,{align:r,labels:c}=a,f=_t.color,h=bl(a.rtl,this.left,this.width),p=jt(c.font),{padding:y}=c,b=p.size,x=b/2,v;this.drawTitle(),l.textAlign=h.textAlign("left"),l.textBaseline="middle",l.lineWidth=0.5,l.font=p.string;let{boxWidth:I,boxHeight:M,itemHeight:D}=kM(c,b),w=function(X,oe,V){if(isNaN(I)||I<=0||isNaN(M)||M<0)return;l.save();let J=Ue(V.lineWidth,1);if(l.fillStyle=Ue(V.fillStyle,f),l.lineCap=Ue(V.lineCap,"butt"),l.lineDashOffset=Ue(V.lineDashOffset,0),l.lineJoin=Ue(V.lineJoin,"miter"),l.lineWidth=J,l.strokeStyle=Ue(V.strokeStyle,f),l.setLineDash(Ue(V.lineDash,[])),c.usePointStyle){let re={radius:M*Math.SQRT2/2,pointStyle:V.pointStyle,rotation:V.rotation,borderWidth:J},q=h.xPlus(X,I/2),ce=oe+x;ix(l,re,q,ce,c.pointStyleWidth&&I)}else{let re=oe+Math.max((b-M)/2,0),q=h.leftForLtr(X,I),ce=hi(V.borderRadius);if(l.beginPath(),Object.values(ce).some((ye)=>ye!==0))Gr(l,{x:q,y:re,w:I,h:M,radius:ce});else l.rect(q,re,I,M);if(l.fill(),J!==0)l.stroke()}l.restore()},z=function(X,oe,V){fi(l,V.text,X,oe+D/2,p,{strikethrough:V.hidden,textAlign:h.textAlign(V.textAlign)})},N=this.isHorizontal(),Q=this._computeTitleHeight();if(N)v={x:ia(r,this.left+y,this.right-s[0]),y:this.top+y+Q,line:0};else v={x:this.left+y,y:ia(r,this.top+Q+y,this.bottom-n[0].height),line:0};px(this.ctx,a.textDirection);let Z=D+y;this.legendItems.forEach((X,oe)=>{l.strokeStyle=X.fontColor,l.fillStyle=X.fontColor;let V=l.measureText(X.text).width,J=h.textAlign(X.textAlign||(X.textAlign=c.textAlign)),re=I+x+V,q=v.x,ce=v.y;if(h.setWidth(this.width),N){if(oe>0&&q+re+y>this.right)ce=v.y+=Z,v.line++,q=v.x=ia(r,this.left+y,this.right-s[v.line])}else if(oe>0&&ce+Z>this.bottom)q=v.x=q+n[v.line].width+y,v.line++,ce=v.y=ia(r,this.top+Q+y,this.bottom-n[v.line].height);let ye=h.x(q);if(w(ye,ce,X),q=kw(J,q+I+x,N?q+re:this.right,a.rtl),z(h.x(q),ce,X),N)v.x+=re+y;else if(typeof X.text!=="string"){let Se=p.lineHeight;v.y+=mT(X,Se)+y}else v.y+=Z}),mx(this.ctx,a.textDirection)}drawTitle(){let a=this.options,n=a.title,s=jt(n.font),l=la(n.padding);if(!n.display)return;let r=bl(a.rtl,this.left,this.width),c=this.ctx,f=n.position,h=s.size/2,p=l.top+h,y,b=this.left,x=this.width;if(this.isHorizontal())x=Math.max(...this.lineWidths),y=this.top+p,b=ia(a.align,b,this.right-x);else{let I=this.columnSizes.reduce((M,D)=>Math.max(M,D.height),0);y=p+ia(a.align,this.top,this.bottom-I-a.labels.padding-this._computeTitleHeight())}let v=ia(f,b,b+x);c.textAlign=r.textAlign(op(f)),c.textBaseline="middle",c.strokeStyle=n.color,c.fillStyle=n.color,c.font=s.string,fi(c,n.text,v,y,s)}_computeTitleHeight(){let a=this.options.title,n=jt(a.font),s=la(a.padding);return a.display?n.lineHeight+s.height:0}_getLegendItemAt(a,n){let s,l,r;if(ns(a,this.left,this.right)&&ns(n,this.top,this.bottom)){r=this.legendHitBoxes;for(s=0;s<r.length;++s)if(l=r[s],ns(a,l.left,l.left+l.width)&&ns(n,l.top,l.top+l.height))return this.legendItems[s]}return null}handleEvent(a){let n=this.options;if(!nB(a.type,n))return;let s=this._getLegendItemAt(a.x,a.y);if(a.type==="mousemove"||a.type==="mouseout"){let l=this._hoveredItem,r=eB(l,s);if(l&&!r)gt(n.onLeave,[a,l,this],this);if(this._hoveredItem=s,s&&!r)gt(n.onHover,[a,s,this],this)}else if(s)gt(n.onClick,[a,s,this],this)}}function tB(a,n,s,l,r){let c=aB(l,a,n,s),f=oB(r,l,n.lineHeight);return{itemWidth:c,itemHeight:f}}function aB(a,n,s,l){let r=a.text;if(r&&typeof r!=="string")r=r.reduce((c,f)=>c.length>f.length?c:f);return n+s.size/2+l.measureText(r).width}function oB(a,n,s){let l=a;if(typeof n.text!=="string")l=mT(n,s);return l}function mT(a,n){let s=a.text?a.text.length:0;return n*s}function nB(a,n){if((a==="mousemove"||a==="mouseout")&&(n.onHover||n.onLeave))return!0;if(n.onClick&&(a==="click"||a==="mouseup"))return!0;return!1}var Cn={id:"legend",_element:Ex,start(a,n,s){let l=a.legend=new Ex({ctx:a.ctx,options:s,chart:a});Io.configure(a,l,s),Io.addBox(a,l)},stop(a){Io.removeBox(a,a.legend),delete a.legend},beforeUpdate(a,n,s){let l=a.legend;Io.configure(a,l,s),l.options=s},afterUpdate(a){let n=a.legend;n.buildLabels(),n.adjustHitBoxes()},afterEvent(a,n){if(!n.replay)a.legend.handleEvent(n.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1000,onClick(a,n,s){let l=n.datasetIndex,r=s.chart;if(r.isDatasetVisible(l))r.hide(l),n.hidden=!0;else r.show(l),n.hidden=!1},onHover:null,onLeave:null,labels:{color:(a)=>a.chart.options.color,boxWidth:40,padding:10,generateLabels(a){let n=a.data.datasets,{labels:{usePointStyle:s,pointStyle:l,textAlign:r,color:c,useBorderRadius:f,borderRadius:h}}=a.legend.options;return a._getSortedDatasetMetas().map((p)=>{let y=p.controller.getStyle(s?0:void 0),b=la(y.borderWidth);return{text:n[p.index].label,fillStyle:y.backgroundColor,fontColor:c,hidden:!p.visible,lineCap:y.borderCapStyle,lineDash:y.borderDash,lineDashOffset:y.borderDashOffset,lineJoin:y.borderJoinStyle,lineWidth:(b.width+b.height)/4,strokeStyle:y.borderColor,pointStyle:l||y.pointStyle,rotation:y.rotation,textAlign:r||y.textAlign,borderRadius:f&&(h||y.borderRadius),datasetIndex:p.index}},this)}},title:{color:(a)=>a.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:(a)=>!a.startsWith("on"),labels:{_scriptable:(a)=>!["generateLabels","filter","sort"].includes(a)}}};class jx extends rs{constructor(a){super();this.chart=a.chart,this.options=a.options,this.ctx=a.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(a,n){let s=this.options;if(this.left=0,this.top=0,!s.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=a,this.height=this.bottom=n;let l=St(s.text)?s.text.length:1;this._padding=la(s.padding);let r=l*jt(s.font).lineHeight+this._padding.height;if(this.isHorizontal())this.height=r;else this.width=r}isHorizontal(){let a=this.options.position;return a==="top"||a==="bottom"}_drawArgs(a){let{top:n,left:s,bottom:l,right:r,options:c}=this,f=c.align,h=0,p,y,b;if(this.isHorizontal())y=ia(f,s,r),b=n+a,p=r-s;else{if(c.position==="left")y=s+a,b=ia(f,l,n),h=Bt*-0.5;else y=r-a,b=ia(f,n,l),h=Bt*0.5;p=l-n}return{titleX:y,titleY:b,maxWidth:p,rotation:h}}draw(){let a=this.ctx,n=this.options;if(!n.display)return;let s=jt(n.font),r=s.lineHeight/2+this._padding.top,{titleX:c,titleY:f,maxWidth:h,rotation:p}=this._drawArgs(r);fi(a,n.text,0,0,s,{color:n.color,maxWidth:h,rotation:p,textAlign:op(n.align),textBaseline:"middle",translation:[c,f]})}}function sB(a,n){let s=new jx({ctx:a.ctx,options:n,chart:a});Io.configure(a,s,n),Io.addBox(a,s),a.titleBlock=s}var In={id:"title",_element:jx,start(a,n,s){sB(a,s)},stop(a){let n=a.titleBlock;Io.removeBox(a,n),delete a.titleBlock},beforeUpdate(a,n,s){let l=a.titleBlock;Io.configure(a,l,s),l.options=s},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 ed={average(a){if(!a.length)return!1;let n,s,l=new Set,r=0,c=0;for(n=0,s=a.length;n<s;++n){let h=a[n].element;if(h&&h.hasValue()){let p=h.tooltipPosition();l.add(p.x),r+=p.y,++c}}if(c===0||l.size===0)return!1;return{x:[...l].reduce((h,p)=>h+p)/l.size,y:r/c}},nearest(a,n){if(!a.length)return!1;let{x:s,y:l}=n,r=Number.POSITIVE_INFINITY,c,f,h;for(c=0,f=a.length;c<f;++c){let p=a[c].element;if(p&&p.hasValue()){let y=p.getCenterPoint(),b=Jh(n,y);if(b<r)r=b,h=p}}if(h){let p=h.tooltipPosition();s=p.x,l=p.y}return{x:s,y:l}}};function vn(a,n){if(n)if(St(n))Array.prototype.push.apply(a,n);else a.push(n);return a}function ls(a){if((typeof a==="string"||a instanceof String)&&a.indexOf(`
256
+ `)>-1)return a.split(`
257
+ `);return a}function iB(a,n){let{element:s,datasetIndex:l,index:r}=n,c=a.getDatasetMeta(l).controller,{label:f,value:h}=c.getLabelAndValue(r);return{chart:a,label:f,parsed:c.getParsed(r),raw:a.data.datasets[l].data[r],formattedValue:h,dataset:c.getDataset(),dataIndex:r,datasetIndex:l,element:s}}function OM(a,n){let s=a.chart.ctx,{body:l,footer:r,title:c}=a,{boxWidth:f,boxHeight:h}=n,p=jt(n.bodyFont),y=jt(n.titleFont),b=jt(n.footerFont),x=c.length,v=r.length,I=l.length,M=la(n.padding),D=M.height,w=0,z=l.reduce((Z,X)=>Z+X.before.length+X.lines.length+X.after.length,0);if(z+=a.beforeBody.length+a.afterBody.length,x)D+=x*y.lineHeight+(x-1)*n.titleSpacing+n.titleMarginBottom;if(z){let Z=n.displayColors?Math.max(h,p.lineHeight):p.lineHeight;D+=I*Z+(z-I)*p.lineHeight+(z-1)*n.bodySpacing}if(v)D+=n.footerMarginTop+v*b.lineHeight+(v-1)*n.footerSpacing;let N=0,Q=function(Z){w=Math.max(w,s.measureText(Z).width+N)};return s.save(),s.font=y.string,lt(a.title,Q),s.font=p.string,lt(a.beforeBody.concat(a.afterBody),Q),N=n.displayColors?f+2+n.boxPadding:0,lt(l,(Z)=>{lt(Z.before,Q),lt(Z.lines,Q),lt(Z.after,Q)}),N=0,s.font=b.string,lt(a.footer,Q),s.restore(),w+=M.width,{width:w,height:D}}function lB(a,n){let{y:s,height:l}=n;if(s<l/2)return"top";else if(s>a.height-l/2)return"bottom";return"center"}function rB(a,n,s,l){let{x:r,width:c}=l,f=s.caretSize+s.caretPadding;if(a==="left"&&r+c+f>n.width)return!0;if(a==="right"&&r-c-f<0)return!0}function uB(a,n,s,l){let{x:r,width:c}=s,{width:f,chartArea:{left:h,right:p}}=a,y="center";if(l==="center")y=r<=(h+p)/2?"left":"right";else if(r<=c/2)y="left";else if(r>=f-c/2)y="right";if(rB(y,a,n,s))y="center";return y}function EM(a,n,s){let l=s.yAlign||n.yAlign||lB(a,s);return{xAlign:s.xAlign||n.xAlign||uB(a,n,s,l),yAlign:l}}function cB(a,n){let{x:s,width:l}=a;if(n==="right")s-=l;else if(n==="center")s-=l/2;return s}function dB(a,n,s){let{y:l,height:r}=a;if(n==="top")l+=s;else if(n==="bottom")l-=r+s;else l-=r/2;return l}function BM(a,n,s,l){let{caretSize:r,caretPadding:c,cornerRadius:f}=a,{xAlign:h,yAlign:p}=s,y=r+c,{topLeft:b,topRight:x,bottomLeft:v,bottomRight:I}=hi(f),M=cB(n,h),D=dB(n,p,y);if(p==="center"){if(h==="left")M+=y;else if(h==="right")M-=y}else if(h==="left")M-=Math.max(b,v)+r;else if(h==="right")M+=Math.max(x,I)+r;return{x:za(M,0,l.width-n.width),y:za(D,0,l.height-n.height)}}function pp(a,n,s){let l=la(s.padding);return n==="center"?a.x+a.width/2:n==="right"?a.x+a.width-l.right:a.x+l.left}function PM(a){return vn([],ls(a))}function fB(a,n,s){return ss(a,{tooltip:n,tooltipItems:s,type:"tooltip"})}function zM(a,n){let s=n&&n.dataset&&n.dataset.tooltip&&n.dataset.tooltip.callbacks;return s?a.override(s):a}var gT={beforeTitle:Sn,title(a){if(a.length>0){let n=a[0],s=n.chart.data.labels,l=s?s.length:0;if(this&&this.options&&this.options.mode==="dataset")return n.dataset.label||"";else if(n.label)return n.label;else if(l>0&&n.dataIndex<l)return s[n.dataIndex]}return""},afterTitle:Sn,beforeBody:Sn,beforeLabel:Sn,label(a){if(this&&this.options&&this.options.mode==="dataset")return a.label+": "+a.formattedValue||a.formattedValue;let n=a.dataset.label||"";if(n)n+=": ";let s=a.formattedValue;if(!Ke(s))n+=s;return n},labelColor(a){let s=a.chart.getDatasetMeta(a.datasetIndex).controller.getStyle(a.dataIndex);return{borderColor:s.borderColor,backgroundColor:s.backgroundColor,borderWidth:s.borderWidth,borderDash:s.borderDash,borderDashOffset:s.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(a){let s=a.chart.getDatasetMeta(a.datasetIndex).controller.getStyle(a.dataIndex);return{pointStyle:s.pointStyle,rotation:s.rotation}},afterLabel:Sn,afterBody:Sn,beforeFooter:Sn,footer:Sn,afterFooter:Sn};function Ua(a,n,s,l){let r=a[n].call(s,l);if(typeof r>"u")return gT[n].call(s,l);return r}class Bx extends rs{static positioners=ed;constructor(a){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=a.chart,this.options=a.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(a){this.options=a,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){let a=this._cachedAnimations;if(a)return a;let n=this.chart,s=this.options.setContext(this.getContext()),l=s.enabled&&n.options.animation&&s.animations,r=new Hx(this.chart,l);if(l._cacheable)this._cachedAnimations=Object.freeze(r);return r}getContext(){return this.$context||(this.$context=fB(this.chart.getContext(),this,this._tooltipItems))}getTitle(a,n){let{callbacks:s}=n,l=Ua(s,"beforeTitle",this,a),r=Ua(s,"title",this,a),c=Ua(s,"afterTitle",this,a),f=[];return f=vn(f,ls(l)),f=vn(f,ls(r)),f=vn(f,ls(c)),f}getBeforeBody(a,n){return PM(Ua(n.callbacks,"beforeBody",this,a))}getBody(a,n){let{callbacks:s}=n,l=[];return lt(a,(r)=>{let c={before:[],lines:[],after:[]},f=zM(s,r);vn(c.before,ls(Ua(f,"beforeLabel",this,r))),vn(c.lines,Ua(f,"label",this,r)),vn(c.after,ls(Ua(f,"afterLabel",this,r))),l.push(c)}),l}getAfterBody(a,n){return PM(Ua(n.callbacks,"afterBody",this,a))}getFooter(a,n){let{callbacks:s}=n,l=Ua(s,"beforeFooter",this,a),r=Ua(s,"footer",this,a),c=Ua(s,"afterFooter",this,a),f=[];return f=vn(f,ls(l)),f=vn(f,ls(r)),f=vn(f,ls(c)),f}_createItems(a){let n=this._active,s=this.chart.data,l=[],r=[],c=[],f=[],h,p;for(h=0,p=n.length;h<p;++h)f.push(iB(this.chart,n[h]));if(a.filter)f=f.filter((y,b,x)=>a.filter(y,b,x,s));if(a.itemSort)f=f.sort((y,b)=>a.itemSort(y,b,s));return lt(f,(y)=>{let b=zM(a.callbacks,y);l.push(Ua(b,"labelColor",this,y)),r.push(Ua(b,"labelPointStyle",this,y)),c.push(Ua(b,"labelTextColor",this,y))}),this.labelColors=l,this.labelPointStyles=r,this.labelTextColors=c,this.dataPoints=f,f}update(a,n){let s=this.options.setContext(this.getContext()),l=this._active,r,c=[];if(!l.length){if(this.opacity!==0)r={opacity:0}}else{let f=ed[s.position].call(this,l,this._eventPosition);c=this._createItems(s),this.title=this.getTitle(c,s),this.beforeBody=this.getBeforeBody(c,s),this.body=this.getBody(c,s),this.afterBody=this.getAfterBody(c,s),this.footer=this.getFooter(c,s);let h=this._size=OM(this,s),p=Object.assign({},f,h),y=EM(this.chart,s,p),b=BM(s,p,y,this.chart);this.xAlign=y.xAlign,this.yAlign=y.yAlign,r={opacity:1,x:b.x,y:b.y,width:h.width,height:h.height,caretX:f.x,caretY:f.y}}if(this._tooltipItems=c,this.$context=void 0,r)this._resolveAnimations().update(this,r);if(a&&s.external)s.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(a,n,s,l){let r=this.getCaretPosition(a,s,l);n.lineTo(r.x1,r.y1),n.lineTo(r.x2,r.y2),n.lineTo(r.x3,r.y3)}getCaretPosition(a,n,s){let{xAlign:l,yAlign:r}=this,{caretSize:c,cornerRadius:f}=s,{topLeft:h,topRight:p,bottomLeft:y,bottomRight:b}=hi(f),{x,y:v}=a,{width:I,height:M}=n,D,w,z,N,Q,Z;if(r==="center"){if(Q=v+M/2,l==="left")D=x,w=D-c,N=Q+c,Z=Q-c;else D=x+I,w=D+c,N=Q-c,Z=Q+c;z=D}else{if(l==="left")w=x+Math.max(h,y)+c;else if(l==="right")w=x+I-Math.max(p,b)-c;else w=this.caretX;if(r==="top")N=v,Q=N-c,D=w-c,z=w+c;else N=v+M,Q=N+c,D=w+c,z=w-c;Z=N}return{x1:D,x2:w,x3:z,y1:N,y2:Q,y3:Z}}drawTitle(a,n,s){let l=this.title,r=l.length,c,f,h;if(r){let p=bl(s.rtl,this.x,this.width);a.x=pp(this,s.titleAlign,s),n.textAlign=p.textAlign(s.titleAlign),n.textBaseline="middle",c=jt(s.titleFont),f=s.titleSpacing,n.fillStyle=s.titleColor,n.font=c.string;for(h=0;h<r;++h)if(n.fillText(l[h],p.x(a.x),a.y+c.lineHeight/2),a.y+=c.lineHeight+f,h+1===r)a.y+=s.titleMarginBottom-f}}_drawColorBox(a,n,s,l,r){let c=this.labelColors[s],f=this.labelPointStyles[s],{boxHeight:h,boxWidth:p}=r,y=jt(r.bodyFont),b=pp(this,"left",r),x=l.x(b),v=h<y.lineHeight?(y.lineHeight-h)/2:0,I=n.y+v;if(r.usePointStyle){let M={radius:Math.min(p,h)/2,pointStyle:f.pointStyle,rotation:f.rotation,borderWidth:1},D=l.leftForLtr(x,p)+p/2,w=I+h/2;a.strokeStyle=r.multiKeyBackground,a.fillStyle=r.multiKeyBackground,ip(a,M,D,w),a.strokeStyle=c.borderColor,a.fillStyle=c.backgroundColor,ip(a,M,D,w)}else{a.lineWidth=$e(c.borderWidth)?Math.max(...Object.values(c.borderWidth)):c.borderWidth||1,a.strokeStyle=c.borderColor,a.setLineDash(c.borderDash||[]),a.lineDashOffset=c.borderDashOffset||0;let M=l.leftForLtr(x,p),D=l.leftForLtr(l.xPlus(x,1),p-2),w=hi(c.borderRadius);if(Object.values(w).some((z)=>z!==0))a.beginPath(),a.fillStyle=r.multiKeyBackground,Gr(a,{x:M,y:I,w:p,h,radius:w}),a.fill(),a.stroke(),a.fillStyle=c.backgroundColor,a.beginPath(),Gr(a,{x:D,y:I+1,w:p-2,h:h-2,radius:w}),a.fill();else a.fillStyle=r.multiKeyBackground,a.fillRect(M,I,p,h),a.strokeRect(M,I,p,h),a.fillStyle=c.backgroundColor,a.fillRect(D,I+1,p-2,h-2)}a.fillStyle=this.labelTextColors[s]}drawBody(a,n,s){let{body:l}=this,{bodySpacing:r,bodyAlign:c,displayColors:f,boxHeight:h,boxWidth:p,boxPadding:y}=s,b=jt(s.bodyFont),x=b.lineHeight,v=0,I=bl(s.rtl,this.x,this.width),M=function(V){n.fillText(V,I.x(a.x+v),a.y+x/2),a.y+=x+r},D=I.textAlign(c),w,z,N,Q,Z,X,oe;n.textAlign=c,n.textBaseline="middle",n.font=b.string,a.x=pp(this,D,s),n.fillStyle=s.bodyColor,lt(this.beforeBody,M),v=f&&D!=="right"?c==="center"?p/2+y:p+2+y:0;for(Q=0,X=l.length;Q<X;++Q){if(w=l[Q],z=this.labelTextColors[Q],n.fillStyle=z,lt(w.before,M),N=w.lines,f&&N.length)this._drawColorBox(n,a,Q,I,s),x=Math.max(b.lineHeight,h);for(Z=0,oe=N.length;Z<oe;++Z)M(N[Z]),x=b.lineHeight;lt(w.after,M)}v=0,x=b.lineHeight,lt(this.afterBody,M),a.y-=r}drawFooter(a,n,s){let l=this.footer,r=l.length,c,f;if(r){let h=bl(s.rtl,this.x,this.width);a.x=pp(this,s.footerAlign,s),a.y+=s.footerMarginTop,n.textAlign=h.textAlign(s.footerAlign),n.textBaseline="middle",c=jt(s.footerFont),n.fillStyle=s.footerColor,n.font=c.string;for(f=0;f<r;++f)n.fillText(l[f],h.x(a.x),a.y+c.lineHeight/2),a.y+=c.lineHeight+s.footerSpacing}}drawBackground(a,n,s,l){let{xAlign:r,yAlign:c}=this,{x:f,y:h}=a,{width:p,height:y}=s,{topLeft:b,topRight:x,bottomLeft:v,bottomRight:I}=hi(l.cornerRadius);if(n.fillStyle=l.backgroundColor,n.strokeStyle=l.borderColor,n.lineWidth=l.borderWidth,n.beginPath(),n.moveTo(f+b,h),c==="top")this.drawCaret(a,n,s,l);if(n.lineTo(f+p-x,h),n.quadraticCurveTo(f+p,h,f+p,h+x),c==="center"&&r==="right")this.drawCaret(a,n,s,l);if(n.lineTo(f+p,h+y-I),n.quadraticCurveTo(f+p,h+y,f+p-I,h+y),c==="bottom")this.drawCaret(a,n,s,l);if(n.lineTo(f+v,h+y),n.quadraticCurveTo(f,h+y,f,h+y-v),c==="center"&&r==="left")this.drawCaret(a,n,s,l);if(n.lineTo(f,h+b),n.quadraticCurveTo(f,h,f+b,h),n.closePath(),n.fill(),l.borderWidth>0)n.stroke()}_updateAnimationTarget(a){let n=this.chart,s=this.$animations,l=s&&s.x,r=s&&s.y;if(l||r){let c=ed[a.position].call(this,this._active,this._eventPosition);if(!c)return;let f=this._size=OM(this,a),h=Object.assign({},c,this._size),p=EM(n,a,h),y=BM(a,h,p,n);if(l._to!==y.x||r._to!==y.y)this.xAlign=p.xAlign,this.yAlign=p.yAlign,this.width=f.width,this.height=f.height,this.caretX=c.x,this.caretY=c.y,this._resolveAnimations().update(this,y)}}_willRender(){return!!this.opacity}draw(a){let n=this.options.setContext(this.getContext()),s=this.opacity;if(!s)return;this._updateAnimationTarget(n);let l={width:this.width,height:this.height},r={x:this.x,y:this.y};s=Math.abs(s)<0.001?0:s;let c=la(n.padding),f=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;if(n.enabled&&f)a.save(),a.globalAlpha=s,this.drawBackground(r,a,l,n),px(a,n.textDirection),r.y+=c.top,this.drawTitle(r,a,n),this.drawBody(r,a,n),this.drawFooter(r,a,n),mx(a,n.textDirection),a.restore()}getActiveElements(){return this._active||[]}setActiveElements(a,n){let s=this._active,l=a.map(({datasetIndex:f,index:h})=>{let p=this.chart.getDatasetMeta(f);if(!p)throw Error("Cannot find a dataset at index "+f);return{datasetIndex:f,element:p.data[h],index:h}}),r=!qc(s,l),c=this._positionChanged(l,n);if(r||c)this._active=l,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0)}handleEvent(a,n,s=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;let l=this.options,r=this._active||[],c=this._getActiveElements(a,r,n,s),f=this._positionChanged(c,a),h=n||!qc(c,r)||f;if(h){if(this._active=c,l.enabled||l.external)this._eventPosition={x:a.x,y:a.y},this.update(!0,n)}return h}_getActiveElements(a,n,s,l){let r=this.options;if(a.type==="mouseout")return[];if(!l)return n.filter((f)=>this.chart.data.datasets[f.datasetIndex]&&this.chart.getDatasetMeta(f.datasetIndex).controller.getParsed(f.index)!==void 0);let c=this.chart.getElementsAtEventForMode(a,r.mode,r,s);if(r.reverse)c.reverse();return c}_positionChanged(a,n){let{caretX:s,caretY:l,options:r}=this,c=ed[r.position].call(this,a,n);return c!==!1&&(s!==c.x||l!==c.y)}}var wn={id:"tooltip",_element:Bx,positioners:ed,afterInit(a,n,s){if(s)a.tooltip=new Bx({chart:a,options:s})},beforeUpdate(a,n,s){if(a.tooltip)a.tooltip.initialize(s)},reset(a,n,s){if(a.tooltip)a.tooltip.initialize(s)},afterDraw(a){let n=a.tooltip;if(n&&n._willRender()){let s={tooltip:n};if(a.notifyPlugins("beforeTooltipDraw",{...s,cancelable:!0})===!1)return;n.draw(a.ctx),a.notifyPlugins("afterTooltipDraw",s)}},afterEvent(a,n){if(a.tooltip){let s=n.replay;if(a.tooltip.handleEvent(n.event,s,n.inChartArea))n.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:(a,n)=>n.bodyFont.size,boxWidth:(a,n)=>n.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:gT},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:(a)=>a!=="filter"&&a!=="itemSort"&&a!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};var hB=(a,n,s,l)=>{if(typeof n==="string")s=a.push(n)-1,l.unshift({index:s,label:n});else if(isNaN(n))s=null;return s};function pB(a,n,s,l){let r=a.indexOf(n);if(r===-1)return hB(a,n,s,l);let c=a.lastIndexOf(n);return r!==c?s:r}var mB=(a,n)=>a===null?null:za(Math.round(a),0,n);function HM(a){let n=this.getLabels();if(a>=0&&a<n.length)return n[a];return a}class Fo extends vl{static id="category";static defaults={ticks:{callback:HM}};constructor(a){super(a);this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(a){let n=this._addedLabels;if(n.length){let s=this.getLabels();for(let{index:l,label:r}of n)if(s[l]===r)s.splice(l,1);this._addedLabels=[]}super.init(a)}parse(a,n){if(Ke(a))return null;let s=this.getLabels();return n=isFinite(n)&&s[n]===a?n:pB(s,a,Ue(n,a),this._addedLabels),mB(n,s.length-1)}determineDataLimits(){let{minDefined:a,maxDefined:n}=this.getUserBounds(),{min:s,max:l}=this.getMinMax(!0);if(this.options.bounds==="ticks"){if(!a)s=0;if(!n)l=this.getLabels().length-1}this.min=s,this.max=l}buildTicks(){let a=this.min,n=this.max,s=this.options.offset,l=[],r=this.getLabels();r=a===0&&n===r.length-1?r:r.slice(a,n+1),this._valueRange=Math.max(r.length-(s?0:1),1),this._startValue=this.min-(s?0.5:0);for(let c=a;c<=n;c++)l.push({value:c});return l}getLabelForValue(a){return HM.call(this,a)}configure(){if(super.configure(),!this.isHorizontal())this._reversePixels=!this._reversePixels}getPixelForValue(a){if(typeof a!=="number")a=this.parse(a);return a===null?NaN:this.getPixelForDecimal((a-this._startValue)/this._valueRange)}getPixelForTick(a){let n=this.ticks;if(a<0||a>n.length-1)return null;return this.getPixelForValue(n[a].value)}getValueForPixel(a){return Math.round(this._startValue+this.getDecimalForPixel(a)*this._valueRange)}getBasePixel(){return this.bottom}}function gB(a,n){let s=[],l=0.00000000000001,{bounds:r,step:c,min:f,max:h,precision:p,count:y,maxTicks:b,maxDigits:x,includeBounds:v}=a,I=c||1,M=b-1,{min:D,max:w}=n,z=!Ke(f),N=!Ke(h),Q=!Ke(y),Z=(w-D)/(x+1),X=$b((w-D)/M/I)*I,oe,V,J,re;if(X<0.00000000000001&&!z&&!N)return[{value:D},{value:w}];if(re=Math.ceil(w/X)-Math.floor(D/X),re>M)X=$b(re*X/M/I)*I;if(!Ke(p))oe=Math.pow(10,p),X=Math.ceil(X*oe)/oe;if(r==="ticks")V=Math.floor(D/X)*X,J=Math.ceil(w/X)*X;else V=D,J=w;if(z&&N&&c&&Iw((h-f)/c,X/1000))re=Math.round(Math.min((h-f)/X,b)),X=(h-f)/re,V=f,J=h;else if(Q)V=z?f:V,J=N?h:J,re=y-1,X=(J-V)/re;else if(re=(J-V)/X,Vr(re,Math.round(re),X/1000))re=Math.round(re);else re=Math.ceil(re);let q=Math.max(Zb(X),Zb(V));oe=Math.pow(10,Ke(p)?q:p),V=Math.round(V*oe)/oe,J=Math.round(J*oe)/oe;let ce=0;if(z){if(v&&V!==f){if(s.push({value:f}),V<f)ce++;if(Vr(Math.round((V+ce*X)*oe)/oe,f,UM(f,Z,a)))ce++}else if(V<f)ce++}for(;ce<re;++ce){let ye=Math.round((V+ce*X)*oe)/oe;if(N&&ye>h)break;s.push({value:ye})}if(N&&v&&J!==h)if(s.length&&Vr(s[s.length-1].value,h,UM(h,Z,a)))s[s.length-1].value=h;else s.push({value:h});else if(!N||J===h)s.push({value:J});return s}function UM(a,n,{horizontal:s,minRotation:l}){let r=os(l),c=(s?Math.sin(r):Math.cos(r))||0.001,f=0.75*n*(""+a).length;return Math.min(n/c,f)}class ad extends vl{constructor(a){super(a);this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(a,n){if(Ke(a))return null;if((typeof a==="number"||a instanceof Number)&&!isFinite(+a))return null;return+a}handleTickRangeOptions(){let{beginAtZero:a}=this.options,{minDefined:n,maxDefined:s}=this.getUserBounds(),{min:l,max:r}=this,c=(h)=>l=n?l:h,f=(h)=>r=s?r:h;if(a){let h=Ho(l),p=Ho(r);if(h<0&&p<0)f(0);else if(h>0&&p>0)c(0)}if(l===r){let h=r===0?1:Math.abs(r*0.05);if(f(r+h),!a)c(l-h)}this.min=l,this.max=r}getTickLimit(){let a=this.options.ticks,{maxTicksLimit:n,stepSize:s}=a,l;if(s){if(l=Math.ceil(this.max/s)-Math.floor(this.min/s)+1,l>1000)console.warn(`scales.${this.id}.ticks.stepSize: ${s} would result generating up to ${l} ticks. Limiting to 1000.`),l=1000}else l=this.computeTickLimit(),n=n||11;if(n)l=Math.min(n,l);return l}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){let a=this.options,n=a.ticks,s=this.getTickLimit();s=Math.max(2,s);let l={maxTicks:s,bounds:a.bounds,min:a.min,max:a.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},r=this._range||this,c=gB(l,r);if(a.bounds==="ticks")Qb(c,this,"value");if(a.reverse)c.reverse(),this.start=this.max,this.end=this.min;else this.start=this.min,this.end=this.max;return c}configure(){let a=this.ticks,n=this.min,s=this.max;if(super.configure(),this.options.offset&&a.length){let l=(s-n)/Math.max(a.length-1,1)/2;n-=l,s+=l}this._startValue=n,this._endValue=s,this._valueRange=s-n}getLabelForValue(a){return np(a,this.chart.options.locale,this.options.ticks.format)}}class No extends ad{static id="linear";static defaults={ticks:{callback:Vc.formatters.numeric}};determineDataLimits(){let{min:a,max:n}=this.getMinMax(!0);this.min=At(a)?a:0,this.max=At(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){let a=this.isHorizontal(),n=a?this.width:this.height,s=os(this.options.ticks.minRotation),l=(a?Math.sin(s):Math.cos(s))||0.001,r=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,r.lineHeight/l))}getPixelForValue(a){return a===null?NaN:this.getPixelForDecimal((a-this._startValue)/this._valueRange)}getValueForPixel(a){return this._startValue+this.getDecimalForPixel(a)*this._valueRange}}var od=(a)=>Math.floor(as(a)),Sl=(a,n)=>Math.pow(10,od(a)+n);function FM(a){return a/Math.pow(10,od(a))===1}function NM(a,n,s){let l=Math.pow(10,s),r=Math.floor(a/l);return Math.ceil(n/l)-r}function yB(a,n){let s=n-a,l=od(s);while(NM(a,n,l)>10)l++;while(NM(a,n,l)<10)l--;return Math.min(l,od(a))}function bB(a,{min:n,max:s}){n=Ha(a.min,n);let l=[],r=od(n),c=yB(n,s),f=c<0?Math.pow(10,Math.abs(c)):1,h=Math.pow(10,c),p=r>c?Math.pow(10,r):0,y=Math.round((n-p)*f)/f,b=Math.floor((n-p)/h/10)*h*10,x=Math.floor((y-b)/Math.pow(10,c)),v=Ha(a.min,Math.round((p+b+x*Math.pow(10,c))*f)/f);while(v<s){if(l.push({value:v,major:FM(v),significand:x}),x>=10)x=x<15?15:20;else x++;if(x>=20)c++,x=2,f=c>=0?1:f;v=Math.round((p+b+x*Math.pow(10,c))*f)/f}let I=Ha(a.max,v);return l.push({value:I,major:FM(I),significand:x}),l}class xB extends vl{static id="logarithmic";static defaults={ticks:{callback:Vc.formatters.logarithmic,major:{enabled:!0}}};constructor(a){super(a);this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(a,n){let s=ad.prototype.parse.apply(this,[a,n]);if(s===0){this._zero=!0;return}return At(s)&&s>0?s:null}determineDataLimits(){let{min:a,max:n}=this.getMinMax(!0);if(this.min=At(a)?Math.max(0,a):null,this.max=At(n)?Math.max(0,n):null,this.options.beginAtZero)this._zero=!0;if(this._zero&&this.min!==this._suggestedMin&&!At(this._userMin))this.min=a===Sl(this.min,0)?Sl(this.min,-1):Sl(this.min,0);this.handleTickRangeOptions()}handleTickRangeOptions(){let{minDefined:a,maxDefined:n}=this.getUserBounds(),s=this.min,l=this.max,r=(f)=>s=a?s:f,c=(f)=>l=n?l:f;if(s===l)if(s<=0)r(1),c(10);else r(Sl(s,-1)),c(Sl(l,1));if(s<=0)r(Sl(l,-1));if(l<=0)c(Sl(s,1));this.min=s,this.max=l}buildTicks(){let a=this.options,n={min:this._userMin,max:this._userMax},s=bB(n,this);if(a.bounds==="ticks")Qb(s,this,"value");if(a.reverse)s.reverse(),this.start=this.max,this.end=this.min;else this.start=this.min,this.end=this.max;return s}getLabelForValue(a){return a===void 0?"0":np(a,this.chart.options.locale,this.options.ticks.format)}configure(){let a=this.min;super.configure(),this._startValue=as(a),this._valueRange=as(this.max)-as(a)}getPixelForValue(a){if(a===void 0||a===0)a=this.min;if(a===null||isNaN(a))return NaN;return this.getPixelForDecimal(a===this.min?0:(as(a)-this._startValue)/this._valueRange)}getValueForPixel(a){let n=this.getDecimalForPixel(a);return Math.pow(10,this._startValue+n*this._valueRange)}}function Px(a){let n=a.ticks;if(n.display&&a.display){let s=la(n.backdropPadding);return Ue(n.font&&n.font.size,_t.font.size)+s.height}return 0}function SB(a,n,s){return s=St(s)?s:[s],{w:zw(a,n.string,s),h:s.length*n.lineHeight}}function qM(a,n,s,l,r){if(a===l||a===r)return{start:n-s/2,end:n+s/2};else if(a<l||a>r)return{start:n-s,end:n};return{start:n,end:n+s}}function vB(a){let n={l:a.left+a._padding.left,r:a.right-a._padding.right,t:a.top+a._padding.top,b:a.bottom-a._padding.bottom},s=Object.assign({},n),l=[],r=[],c=a._pointLabels.length,f=a.options.pointLabels,h=f.centerPointLabels?Bt/c:0;for(let p=0;p<c;p++){let y=f.setContext(a.getPointLabelContext(p));r[p]=y.padding;let b=a.getPointPosition(p,a.drawingArea+r[p],h),x=jt(y.font),v=SB(a.ctx,x,a._pointLabels[p]);l[p]=v;let I=Ea(a.getIndexAngle(p)+h),M=Math.round(tp(I)),D=qM(M,b.x,v.w,0,180),w=qM(M,b.y,v.h,90,270);LB(s,n,I,D,w)}a.setCenterPoint(n.l-s.l,s.r-n.r,n.t-s.t,s.b-n.b),a._pointLabelItems=wB(a,l,r)}function LB(a,n,s,l,r){let c=Math.abs(Math.sin(s)),f=Math.abs(Math.cos(s)),h=0,p=0;if(l.start<n.l)h=(n.l-l.start)/c,a.l=Math.min(a.l,n.l-h);else if(l.end>n.r)h=(l.end-n.r)/c,a.r=Math.max(a.r,n.r+h);if(r.start<n.t)p=(n.t-r.start)/f,a.t=Math.min(a.t,n.t-p);else if(r.end>n.b)p=(r.end-n.b)/f,a.b=Math.max(a.b,n.b+p)}function CB(a,n,s){let l=a.drawingArea,{extra:r,additionalAngle:c,padding:f,size:h}=s,p=a.getPointPosition(n,l+r+f,c),y=Math.round(tp(Ea(p.angle+Ba))),b=AB(p.y,h.h,y),x=MB(y),v=TB(p.x,h.w,x);return{visible:!0,x:p.x,y:b,textAlign:x,left:v,top:b,right:v+h.w,bottom:b+h.h}}function IB(a,n){if(!n)return!0;let{left:s,top:l,right:r,bottom:c}=a;return!(xn({x:s,y:l},n)||xn({x:s,y:c},n)||xn({x:r,y:l},n)||xn({x:r,y:c},n))}function wB(a,n,s){let l=[],r=a._pointLabels.length,c=a.options,{centerPointLabels:f,display:h}=c.pointLabels,p={extra:Px(c)/2,additionalAngle:f?Bt/r:0},y;for(let b=0;b<r;b++){p.padding=s[b],p.size=n[b];let x=CB(a,b,p);if(l.push(x),h==="auto"){if(x.visible=IB(x,y),x.visible)y=x}}return l}function MB(a){if(a===0||a===180)return"center";else if(a<180)return"left";return"right"}function TB(a,n,s){if(s==="right")a-=n;else if(s==="center")a-=n/2;return a}function AB(a,n,s){if(s===90||s===270)a-=n/2;else if(s>270||s<90)a-=n;return a}function _B(a,n,s){let{left:l,top:r,right:c,bottom:f}=s,{backdropColor:h}=n;if(!Ke(h)){let p=hi(n.borderRadius),y=la(n.backdropPadding);a.fillStyle=h;let b=l-y.left,x=r-y.top,v=c-l+y.width,I=f-r+y.height;if(Object.values(p).some((M)=>M!==0))a.beginPath(),Gr(a,{x:b,y:x,w:v,h:I,radius:p}),a.fill();else a.fillRect(b,x,v,I)}}function DB(a,n){let{ctx:s,options:{pointLabels:l}}=a;for(let r=n-1;r>=0;r--){let c=a._pointLabelItems[r];if(!c.visible)continue;let f=l.setContext(a.getPointLabelContext(r));_B(s,f,c);let h=jt(f.font),{x:p,y,textAlign:b}=c;fi(s,a._pointLabels[r],p,y+h.lineHeight/2,h,{color:f.color,textAlign:b,textBaseline:"middle"})}}function yT(a,n,s,l){let{ctx:r}=a;if(s)r.arc(a.xCenter,a.yCenter,n,0,Pa);else{let c=a.getPointPosition(0,n);r.moveTo(c.x,c.y);for(let f=1;f<l;f++)c=a.getPointPosition(f,n),r.lineTo(c.x,c.y)}}function RB(a,n,s,l,r){let c=a.ctx,f=n.circular,{color:h,lineWidth:p}=n;if(!f&&!l||!h||!p||s<0)return;c.save(),c.strokeStyle=h,c.lineWidth=p,c.setLineDash(r.dash||[]),c.lineDashOffset=r.dashOffset,c.beginPath(),yT(a,s,f,l),c.closePath(),c.stroke(),c.restore()}function kB(a,n,s){return ss(a,{label:s,index:n,type:"pointLabel"})}class OB extends ad{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:Vc.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(a){return a},padding:5,centerPointLabels:!1}};static defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"};static descriptors={angleLines:{_fallback:"grid"}};constructor(a){super(a);this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){let a=this._padding=la(Px(this.options)/2),n=this.width=this.maxWidth-a.width,s=this.height=this.maxHeight-a.height;this.xCenter=Math.floor(this.left+n/2+a.left),this.yCenter=Math.floor(this.top+s/2+a.top),this.drawingArea=Math.floor(Math.min(n,s)/2)}determineDataLimits(){let{min:a,max:n}=this.getMinMax(!1);this.min=At(a)&&!isNaN(a)?a:0,this.max=At(n)&&!isNaN(n)?n:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Px(this.options))}generateTickLabels(a){ad.prototype.generateTickLabels.call(this,a),this._pointLabels=this.getLabels().map((n,s)=>{let l=gt(this.options.pointLabels.callback,[n,s],this);return l||l===0?l:""}).filter((n,s)=>this.chart.getDataVisibility(s))}fit(){let a=this.options;if(a.display&&a.pointLabels.display)vB(this);else this.setCenterPoint(0,0,0,0)}setCenterPoint(a,n,s,l){this.xCenter+=Math.floor((a-n)/2),this.yCenter+=Math.floor((s-l)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(a,n,s,l))}getIndexAngle(a){let n=Pa/(this._pointLabels.length||1),s=this.options.startAngle||0;return Ea(a*n+os(s))}getDistanceFromCenterForValue(a){if(Ke(a))return NaN;let n=this.drawingArea/(this.max-this.min);if(this.options.reverse)return(this.max-a)*n;return(a-this.min)*n}getValueForDistanceFromCenter(a){if(Ke(a))return NaN;let n=a/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(a){let n=this._pointLabels||[];if(a>=0&&a<n.length){let s=n[a];return kB(this.getContext(),a,s)}}getPointPosition(a,n,s=0){let l=this.getIndexAngle(a)-Ba+s;return{x:Math.cos(l)*n+this.xCenter,y:Math.sin(l)*n+this.yCenter,angle:l}}getPointPositionForValue(a,n){return this.getPointPosition(a,this.getDistanceFromCenterForValue(n))}getBasePosition(a){return this.getPointPositionForValue(a||0,this.getBaseValue())}getPointLabelPosition(a){let{left:n,top:s,right:l,bottom:r}=this._pointLabelItems[a];return{left:n,top:s,right:l,bottom:r}}drawBackground(){let{backgroundColor:a,grid:{circular:n}}=this.options;if(a){let s=this.ctx;s.save(),s.beginPath(),yT(this,this.getDistanceFromCenterForValue(this._endValue),n,this._pointLabels.length),s.closePath(),s.fillStyle=a,s.fill(),s.restore()}}drawGrid(){let a=this.ctx,n=this.options,{angleLines:s,grid:l,border:r}=n,c=this._pointLabels.length,f,h,p;if(n.pointLabels.display)DB(this,c);if(l.display)this.ticks.forEach((y,b)=>{if(b!==0||b===0&&this.min<0){h=this.getDistanceFromCenterForValue(y.value);let x=this.getContext(b),v=l.setContext(x),I=r.setContext(x);RB(this,v,h,c,I)}});if(s.display){a.save();for(f=c-1;f>=0;f--){let y=s.setContext(this.getPointLabelContext(f)),{color:b,lineWidth:x}=y;if(!x||!b)continue;a.lineWidth=x,a.strokeStyle=b,a.setLineDash(y.borderDash),a.lineDashOffset=y.borderDashOffset,h=this.getDistanceFromCenterForValue(n.reverse?this.min:this.max),p=this.getPointPosition(f,h),a.beginPath(),a.moveTo(this.xCenter,this.yCenter),a.lineTo(p.x,p.y),a.stroke()}a.restore()}}drawBorder(){}drawLabels(){let a=this.ctx,n=this.options,s=n.ticks;if(!s.display)return;let l=this.getIndexAngle(0),r,c;a.save(),a.translate(this.xCenter,this.yCenter),a.rotate(l),a.textAlign="center",a.textBaseline="middle",this.ticks.forEach((f,h)=>{if(h===0&&this.min>=0&&!n.reverse)return;let p=s.setContext(this.getContext(h)),y=jt(p.font);if(r=this.getDistanceFromCenterForValue(this.ticks[h].value),p.showLabelBackdrop){a.font=y.string,c=a.measureText(f.label).width,a.fillStyle=p.backdropColor;let b=la(p.backdropPadding);a.fillRect(-c/2-b.left,-r-y.size/2-b.top,c+b.width,y.size+b.height)}fi(a,f.label,0,-r,y,{color:p.color,strokeColor:p.textStrokeColor,strokeWidth:p.textStrokeWidth})}),a.restore()}drawTitle(){}}var vp={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}},Fa=Object.keys(vp);function VM(a,n){return a-n}function jM(a,n){if(Ke(n))return null;let s=a._adapter,{parser:l,round:r,isoWeekday:c}=a._parseOpts,f=n;if(typeof l==="function")f=l(f);if(!At(f))f=typeof l==="string"?s.parse(f,l):s.parse(f);if(f===null)return null;if(r)f=r==="week"&&(jr(c)||c===!0)?s.startOf(f,"isoWeek",c):s.startOf(f,r);return+f}function GM(a,n,s,l){let r=Fa.length;for(let c=Fa.indexOf(a);c<r-1;++c){let f=vp[Fa[c]],h=f.steps?f.steps:Number.MAX_SAFE_INTEGER;if(f.common&&Math.ceil((s-n)/(h*f.size))<=l)return Fa[c]}return Fa[r-1]}function EB(a,n,s,l,r){for(let c=Fa.length-1;c>=Fa.indexOf(s);c--){let f=Fa[c];if(vp[f].common&&a._adapter.diff(r,l,f)>=n-1)return f}return Fa[s?Fa.indexOf(s):0]}function BB(a){for(let n=Fa.indexOf(a)+1,s=Fa.length;n<s;++n)if(vp[Fa[n]].common)return Fa[n]}function YM(a,n,s){if(!s)a[n]=!0;else if(s.length){let{lo:l,hi:r}=ap(s,n),c=s[l]>=n?s[l]:s[r];a[c]=!0}}function PB(a,n,s,l){let r=a._adapter,c=+r.startOf(n[0].value,l),f=n[n.length-1].value,h,p;for(h=c;h<=f;h=+r.add(h,1,l))if(p=s[h],p>=0)n[p].major=!0;return n}function XM(a,n,s){let l=[],r={},c=n.length,f,h;for(f=0;f<c;++f)h=n[f],r[h]=f,l.push({value:h,major:!1});return c===0||!s?l:PB(a,l,r,s)}class zx extends vl{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(a){super(a);this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(a,n={}){let s=a.time||(a.time={}),l=this._adapter=new yO._date(a.adapters.date);l.init(n),Nr(s.displayFormats,l.formats()),this._parseOpts={parser:s.parser,round:s.round,isoWeekday:s.isoWeekday},super.init(a),this._normalized=n.normalized}parse(a,n){if(a===void 0)return null;return jM(this,a)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){let a=this.options,n=this._adapter,s=a.time.unit||"day",{min:l,max:r,minDefined:c,maxDefined:f}=this.getUserBounds();function h(p){if(!c&&!isNaN(p.min))l=Math.min(l,p.min);if(!f&&!isNaN(p.max))r=Math.max(r,p.max)}if(!c||!f){if(h(this._getLabelBounds()),a.bounds!=="ticks"||a.ticks.source!=="labels")h(this.getMinMax(!1))}l=At(l)&&!isNaN(l)?l:+n.startOf(Date.now(),s),r=At(r)&&!isNaN(r)?r:+n.endOf(Date.now(),s)+1,this.min=Math.min(l,r-1),this.max=Math.max(l+1,r)}_getLabelBounds(){let a=this.getLabelTimestamps(),n=Number.POSITIVE_INFINITY,s=Number.NEGATIVE_INFINITY;if(a.length)n=a[0],s=a[a.length-1];return{min:n,max:s}}buildTicks(){let a=this.options,n=a.time,s=a.ticks,l=s.source==="labels"?this.getLabelTimestamps():this._generate();if(a.bounds==="ticks"&&l.length)this.min=this._userMin||l[0],this.max=this._userMax||l[l.length-1];let r=this.min,c=this.max,f=Aw(l,r,c);if(this._unit=n.unit||(s.autoSkip?GM(n.minUnit,this.min,this.max,this._getLabelCapacity(r)):EB(this,f.length,n.minUnit,this.min,this.max)),this._majorUnit=!s.major.enabled||this._unit==="year"?void 0:BB(this._unit),this.initOffsets(l),a.reverse)f.reverse();return XM(this,f,this._majorUnit)}afterAutoSkip(){if(this.options.offsetAfterAutoskip)this.initOffsets(this.ticks.map((a)=>+a.value))}initOffsets(a=[]){let n=0,s=0,l,r;if(this.options.offset&&a.length){if(l=this.getDecimalForValue(a[0]),a.length===1)n=1-l;else n=(this.getDecimalForValue(a[1])-l)/2;if(r=this.getDecimalForValue(a[a.length-1]),a.length===1)s=r;else s=(r-this.getDecimalForValue(a[a.length-2]))/2}let c=a.length<3?0.5:0.25;n=za(n,0,c),s=za(s,0,c),this._offsets={start:n,end:s,factor:1/(n+1+s)}}_generate(){let a=this._adapter,n=this.min,s=this.max,l=this.options,r=l.time,c=r.unit||GM(r.minUnit,n,s,this._getLabelCapacity(n)),f=Ue(l.ticks.stepSize,1),h=c==="week"?r.isoWeekday:!1,p=jr(h)||h===!0,y={},b=n,x,v;if(p)b=+a.startOf(b,"isoWeek",h);if(b=+a.startOf(b,p?"day":c),a.diff(s,n,c)>1e5*f)throw Error(n+" and "+s+" are too far apart with stepSize of "+f+" "+c);let I=l.ticks.source==="data"&&this.getDataTimestamps();for(x=b,v=0;x<s;x=+a.add(x,f,c),v++)YM(y,x,I);if(x===s||l.bounds==="ticks"||v===1)YM(y,x,I);return Object.keys(y).sort(VM).map((M)=>+M)}getLabelForValue(a){let n=this._adapter,s=this.options.time;if(s.tooltipFormat)return n.format(a,s.tooltipFormat);return n.format(a,s.displayFormats.datetime)}format(a,n){let l=this.options.time.displayFormats,r=this._unit,c=n||l[r];return this._adapter.format(a,c)}_tickFormatFunction(a,n,s,l){let r=this.options,c=r.ticks.callback;if(c)return gt(c,[a,n,s],this);let f=r.time.displayFormats,h=this._unit,p=this._majorUnit,y=h&&f[h],b=p&&f[p],x=s[n],v=p&&b&&x&&x.major;return this._adapter.format(a,l||(v?b:y))}generateTickLabels(a){let n,s,l;for(n=0,s=a.length;n<s;++n)l=a[n],l.label=this._tickFormatFunction(l.value,n,a)}getDecimalForValue(a){return a===null?NaN:(a-this.min)/(this.max-this.min)}getPixelForValue(a){let n=this._offsets,s=this.getDecimalForValue(a);return this.getPixelForDecimal((n.start+s)*n.factor)}getValueForPixel(a){let n=this._offsets,s=this.getDecimalForPixel(a)/n.factor-n.end;return this.min+s*(this.max-this.min)}_getLabelSize(a){let n=this.options.ticks,s=this.ctx.measureText(a).width,l=os(this.isHorizontal()?n.maxRotation:n.minRotation),r=Math.cos(l),c=Math.sin(l),f=this._resolveTickFontOptions(0).size;return{w:s*r+f*c,h:s*c+f*r}}_getLabelCapacity(a){let n=this.options.time,s=n.displayFormats,l=s[n.unit]||s.millisecond,r=this._tickFormatFunction(a,0,XM(this,[a],this._majorUnit),l),c=this._getLabelSize(r),f=Math.floor(this.isHorizontal()?this.width/c.w:this.height/c.h)-1;return f>0?f:1}getDataTimestamps(){let a=this._cache.data||[],n,s;if(a.length)return a;let l=this.getMatchingVisibleMetas();if(this._normalized&&l.length)return this._cache.data=l[0].controller.getAllParsedValues(this);for(n=0,s=l.length;n<s;++n)a=a.concat(l[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(a)}getLabelTimestamps(){let a=this._cache.labels||[],n,s;if(a.length)return a;let l=this.getLabels();for(n=0,s=l.length;n<s;++n)a.push(jM(this,l[n]));return this._cache.labels=this._normalized?a:this.normalize(a)}normalize(a){return ex(a.sort(VM))}}function mp(a,n,s){let l=0,r=a.length-1,c,f,h,p;if(s){if(n>=a[l].pos&&n<=a[r].pos)({lo:l,hi:r}=ri(a,"pos",n));({pos:c,time:h}=a[l]),{pos:f,time:p}=a[r]}else{if(n>=a[l].time&&n<=a[r].time)({lo:l,hi:r}=ri(a,"time",n));({time:c,pos:h}=a[l]),{time:f,pos:p}=a[r]}let y=f-c;return y?h+(p-h)*(n-c)/y:h}class zB extends zx{static id="timeseries";static defaults=zx.defaults;constructor(a){super(a);this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){let a=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(a);this._minPos=mp(n,this.min),this._tableRange=mp(n,this.max)-this._minPos,super.initOffsets(a)}buildLookupTable(a){let{min:n,max:s}=this,l=[],r=[],c,f,h,p,y;for(c=0,f=a.length;c<f;++c)if(p=a[c],p>=n&&p<=s)l.push(p);if(l.length<2)return[{time:n,pos:0},{time:s,pos:1}];for(c=0,f=l.length;c<f;++c)if(y=l[c+1],h=l[c-1],p=l[c],Math.round((y+h)/2)!==p)r.push({time:p,pos:c/(f-1)});return r}_generate(){let a=this.min,n=this.max,s=super.getDataTimestamps();if(!s.includes(a)||!s.length)s.splice(0,0,a);if(!s.includes(n)||s.length===1)s.push(n);return s.sort((l,r)=>l-r)}_getTimestampsForTable(){let a=this._cache.all||[];if(a.length)return a;let n=this.getDataTimestamps(),s=this.getLabelTimestamps();if(n.length&&s.length)a=this.normalize(n.concat(s));else a=n.length?n:s;return a=this._cache.all=a,a}getDecimalForValue(a){return(mp(this._table,a)-this._minPos)/this._tableRange}getValueForPixel(a){let n=this._offsets,s=this.getDecimalForPixel(a)/n.factor-n.end;return mp(this._table,s*this._tableRange+this._minPos,!0)}}var rd=be(ea(),1);var Gx=be(bT(),1),io=be(ea(),1);var ST="label";function xT(a,n){if(typeof a==="function")a(n);else if(a)a.current=n}function UB(a,n){let s=a.options;if(s&&n)Object.assign(s,n)}function vT(a,n){a.labels=n}function LT(a,n,s=ST){let l=[];a.datasets=n.map((r)=>{let c=a.datasets.find((f)=>f[s]===r[s]);if(!c||!r.data||l.includes(c))return{...r};return l.push(c),Object.assign(c,r),c})}function FB(a,n=ST){let s={labels:[],datasets:[]};return vT(s,a.labels),LT(s,a.datasets,n),s}function NB(a,n){let{height:s=150,width:l=300,redraw:r=!1,datasetIdKey:c,type:f,data:h,options:p,plugins:y=[],fallbackContent:b,updateMode:x,...v}=a,I=io.useRef(null),M=io.useRef(null),D=()=>{if(!I.current)return;M.current=new Ma(I.current,{type:f,data:FB(h,c),options:p&&{...p},plugins:y}),xT(n,M.current)},w=()=>{if(xT(n,null),M.current)M.current.destroy(),M.current=null};return io.useEffect(()=>{if(!r&&M.current&&p)UB(M.current,p)},[r,p]),io.useEffect(()=>{if(!r&&M.current)vT(M.current.config.data,h.labels)},[r,h.labels]),io.useEffect(()=>{if(!r&&M.current&&h.datasets)LT(M.current.config.data,h.datasets,c)},[r,h.datasets]),io.useEffect(()=>{if(!M.current)return;if(r)w(),setTimeout(D);else M.current.update(x)},[r,p,h.labels,h.datasets,x]),io.useEffect(()=>{if(!M.current)return;w(),setTimeout(D)},[f]),io.useEffect(()=>(D(),()=>w()),[]),Gx.jsx("canvas",{ref:I,role:"img",height:s,width:l,...v,children:b})}var qB=io.forwardRef(NB);function CT(a,n){return Ma.register(n),io.forwardRef((s,l)=>Gx.jsx(qB,{...s,ref:l,type:a}))}var wo=CT("line",Fx),Lp=CT("bar",Ux);var Cp=be(ea(),1),IT="(prefers-color-scheme: dark)";function VB(){if(typeof window>"u")return"light";return window.matchMedia(IT).matches?"dark":"light"}function Mn(){let[a,n]=Cp.useState(()=>VB());return Cp.useEffect(()=>{let s=window.matchMedia(IT),l=()=>{n(s.matches?"dark":"light")};return l(),s.addEventListener("change",l),()=>s.removeEventListener("change",l)},[]),a}var jB=Math.pow(10,8)*24*60*60*1000,bU=-jB,Ip=604800000,wT=86400000;var id=43200,Yx=1440;var Xx=Symbol.for("constructDateFrom");function ma(a,n){if(typeof a==="function")return a(n);if(a&&typeof a==="object"&&Xx in a)return a[Xx](n);if(a instanceof Date)return new a.constructor(n);return new Date(n)}function et(a,n){return ma(n||a,a)}var GB={};function Tn(){return GB}function us(a,n){let s=Tn(),l=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??s.weekStartsOn??s.locale?.options?.weekStartsOn??0,r=et(a,n?.in),c=r.getDay(),f=(c<l?7:0)+c-l;return r.setDate(r.getDate()-f),r.setHours(0,0,0,0),r}function Cl(a,n){return us(a,{...n,weekStartsOn:1})}function wp(a,n){let s=et(a,n?.in),l=s.getFullYear(),r=ma(s,0);r.setFullYear(l+1,0,4),r.setHours(0,0,0,0);let c=Cl(r),f=ma(s,0);f.setFullYear(l,0,4),f.setHours(0,0,0,0);let h=Cl(f);if(s.getTime()>=c.getTime())return l+1;else if(s.getTime()>=h.getTime())return l;else return l-1}function Xr(a){let n=et(a),s=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return s.setUTCFullYear(n.getFullYear()),+a-+s}function gi(a,...n){let s=ma.bind(null,a||n.find((l)=>typeof l==="object"));return n.map(s)}function Wx(a,n){let s=et(a,n?.in);return s.setHours(0,0,0,0),s}function MT(a,n,s){let[l,r]=gi(s?.in,a,n),c=Wx(l),f=Wx(r),h=+c-Xr(c),p=+f-Xr(f);return Math.round((h-p)/wT)}function TT(a,n){let s=wp(a,n),l=ma(n?.in||a,0);return l.setFullYear(s,0,4),l.setHours(0,0,0,0),Cl(l)}function Wr(a,n){let s=+et(a)-+et(n);if(s<0)return-1;else if(s>0)return 1;return s}function AT(a){return ma(a,Date.now())}function _T(a){return a instanceof Date||typeof a==="object"&&Object.prototype.toString.call(a)==="[object Date]"}function DT(a){return!(!_T(a)&&typeof a!=="number"||isNaN(+et(a)))}function RT(a,n,s){let[l,r]=gi(s?.in,a,n),c=l.getFullYear()-r.getFullYear(),f=l.getMonth()-r.getMonth();return c*12+f}function kT(a){return(n)=>{let l=(a?Math[a]:Math.trunc)(n);return l===0?0:l}}function OT(a,n){return+et(a)-+et(n)}function ET(a,n){let s=et(a,n?.in);return s.setHours(23,59,59,999),s}function BT(a,n){let s=et(a,n?.in),l=s.getMonth();return s.setFullYear(s.getFullYear(),l+1,0),s.setHours(23,59,59,999),s}function PT(a,n){let s=et(a,n?.in);return+ET(s,n)===+BT(s,n)}function zT(a,n,s){let[l,r,c]=gi(s?.in,a,a,n),f=Wr(r,c),h=Math.abs(RT(r,c));if(h<1)return 0;if(r.getMonth()===1&&r.getDate()>27)r.setDate(30);r.setMonth(r.getMonth()-f*h);let p=Wr(r,c)===-f;if(PT(l)&&h===1&&Wr(l,c)===1)p=!1;let y=f*(h-+p);return y===0?0:y}function HT(a,n,s){let l=OT(a,n)/1000;return kT(s?.roundingMethod)(l)}function UT(a,n){let s=et(a,n?.in);return s.setFullYear(s.getFullYear(),0,1),s.setHours(0,0,0,0),s}var YB={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"}},FT=(a,n,s)=>{let l,r=YB[a];if(typeof r==="string")l=r;else if(n===1)l=r.one;else l=r.other.replace("{{count}}",n.toString());if(s?.addSuffix)if(s.comparison&&s.comparison>0)return"in "+l;else return l+" ago";return l};function Mp(a){return(n={})=>{let s=n.width?String(n.width):a.defaultWidth;return a.formats[s]||a.formats[a.defaultWidth]}}var XB={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},WB={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},$B={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},NT={date:Mp({formats:XB,defaultWidth:"full"}),time:Mp({formats:WB,defaultWidth:"full"}),dateTime:Mp({formats:$B,defaultWidth:"full"})};var QB={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},qT=(a,n,s,l)=>QB[a];function $r(a){return(n,s)=>{let l=s?.context?String(s.context):"standalone",r;if(l==="formatting"&&a.formattingValues){let f=a.defaultFormattingWidth||a.defaultWidth,h=s?.width?String(s.width):f;r=a.formattingValues[h]||a.formattingValues[f]}else{let f=a.defaultWidth,h=s?.width?String(s.width):a.defaultWidth;r=a.values[h]||a.values[f]}let c=a.argumentCallback?a.argumentCallback(n):n;return r[c]}}var ZB={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},JB={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},KB={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"]},eP={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"]},tP={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"}},aP={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"}},oP=(a,n)=>{let s=Number(a),l=s%100;if(l>20||l<10)switch(l%10){case 1:return s+"st";case 2:return s+"nd";case 3:return s+"rd"}return s+"th"},VT={ordinalNumber:oP,era:$r({values:ZB,defaultWidth:"wide"}),quarter:$r({values:JB,defaultWidth:"wide",argumentCallback:(a)=>a-1}),month:$r({values:KB,defaultWidth:"wide"}),day:$r({values:eP,defaultWidth:"wide"}),dayPeriod:$r({values:tP,defaultWidth:"wide",formattingValues:aP,defaultFormattingWidth:"wide"})};function Qr(a){return(n,s={})=>{let l=s.width,r=l&&a.matchPatterns[l]||a.matchPatterns[a.defaultMatchWidth],c=n.match(r);if(!c)return null;let f=c[0],h=l&&a.parsePatterns[l]||a.parsePatterns[a.defaultParseWidth],p=Array.isArray(h)?sP(h,(x)=>x.test(f)):nP(h,(x)=>x.test(f)),y;y=a.valueCallback?a.valueCallback(p):p,y=s.valueCallback?s.valueCallback(y):y;let b=n.slice(f.length);return{value:y,rest:b}}}function nP(a,n){for(let s in a)if(Object.prototype.hasOwnProperty.call(a,s)&&n(a[s]))return s;return}function sP(a,n){for(let s=0;s<a.length;s++)if(n(a[s]))return s;return}function jT(a){return(n,s={})=>{let l=n.match(a.matchPattern);if(!l)return null;let r=l[0],c=n.match(a.parsePattern);if(!c)return null;let f=a.valueCallback?a.valueCallback(c[0]):c[0];f=s.valueCallback?s.valueCallback(f):f;let h=n.slice(r.length);return{value:f,rest:h}}}var iP=/^(\d+)(th|st|nd|rd)?/i,lP=/\d+/i,rP={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},uP={any:[/^b/i,/^(a|c)/i]},cP={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},dP={any:[/1/i,/2/i,/3/i,/4/i]},fP={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},hP={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]},pP={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},mP={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]},gP={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},yP={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}},GT={ordinalNumber:jT({matchPattern:iP,parsePattern:lP,valueCallback:(a)=>parseInt(a,10)}),era:Qr({matchPatterns:rP,defaultMatchWidth:"wide",parsePatterns:uP,defaultParseWidth:"any"}),quarter:Qr({matchPatterns:cP,defaultMatchWidth:"wide",parsePatterns:dP,defaultParseWidth:"any",valueCallback:(a)=>a+1}),month:Qr({matchPatterns:fP,defaultMatchWidth:"wide",parsePatterns:hP,defaultParseWidth:"any"}),day:Qr({matchPatterns:pP,defaultMatchWidth:"wide",parsePatterns:mP,defaultParseWidth:"any"}),dayPeriod:Qr({matchPatterns:gP,defaultMatchWidth:"any",parsePatterns:yP,defaultParseWidth:"any"})};var ld={code:"en-US",formatDistance:FT,formatLong:NT,formatRelative:qT,localize:VT,match:GT,options:{weekStartsOn:0,firstWeekContainsDate:1}};function YT(a,n){let s=et(a,n?.in);return MT(s,UT(s))+1}function XT(a,n){let s=et(a,n?.in),l=+Cl(s)-+TT(s);return Math.round(l/Ip)+1}function Tp(a,n){let s=et(a,n?.in),l=s.getFullYear(),r=Tn(),c=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,f=ma(n?.in||a,0);f.setFullYear(l+1,0,c),f.setHours(0,0,0,0);let h=us(f,n),p=ma(n?.in||a,0);p.setFullYear(l,0,c),p.setHours(0,0,0,0);let y=us(p,n);if(+s>=+h)return l+1;else if(+s>=+y)return l;else return l-1}function WT(a,n){let s=Tn(),l=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??s.firstWeekContainsDate??s.locale?.options?.firstWeekContainsDate??1,r=Tp(a,n),c=ma(n?.in||a,0);return c.setFullYear(r,0,l),c.setHours(0,0,0,0),us(c,n)}function $T(a,n){let s=et(a,n?.in),l=+us(s,n)-+WT(s,n);return Math.round(l/Ip)+1}function ot(a,n){let s=a<0?"-":"",l=Math.abs(a).toString().padStart(n,"0");return s+l}var cs={y(a,n){let s=a.getFullYear(),l=s>0?s:1-s;return ot(n==="yy"?l%100:l,n.length)},M(a,n){let s=a.getMonth();return n==="M"?String(s+1):ot(s+1,2)},d(a,n){return ot(a.getDate(),n.length)},a(a,n){let s=a.getHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return s.toUpperCase();case"aaa":return s;case"aaaaa":return s[0];case"aaaa":default:return s==="am"?"a.m.":"p.m."}},h(a,n){return ot(a.getHours()%12||12,n.length)},H(a,n){return ot(a.getHours(),n.length)},m(a,n){return ot(a.getMinutes(),n.length)},s(a,n){return ot(a.getSeconds(),n.length)},S(a,n){let s=n.length,l=a.getMilliseconds(),r=Math.trunc(l*Math.pow(10,s-3));return ot(r,n.length)}};var Zr={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},$x={G:function(a,n,s){let l=a.getFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return s.era(l,{width:"abbreviated"});case"GGGGG":return s.era(l,{width:"narrow"});case"GGGG":default:return s.era(l,{width:"wide"})}},y:function(a,n,s){if(n==="yo"){let l=a.getFullYear(),r=l>0?l:1-l;return s.ordinalNumber(r,{unit:"year"})}return cs.y(a,n)},Y:function(a,n,s,l){let r=Tp(a,l),c=r>0?r:1-r;if(n==="YY"){let f=c%100;return ot(f,2)}if(n==="Yo")return s.ordinalNumber(c,{unit:"year"});return ot(c,n.length)},R:function(a,n){let s=wp(a);return ot(s,n.length)},u:function(a,n){let s=a.getFullYear();return ot(s,n.length)},Q:function(a,n,s){let l=Math.ceil((a.getMonth()+1)/3);switch(n){case"Q":return String(l);case"QQ":return ot(l,2);case"Qo":return s.ordinalNumber(l,{unit:"quarter"});case"QQQ":return s.quarter(l,{width:"abbreviated",context:"formatting"});case"QQQQQ":return s.quarter(l,{width:"narrow",context:"formatting"});case"QQQQ":default:return s.quarter(l,{width:"wide",context:"formatting"})}},q:function(a,n,s){let l=Math.ceil((a.getMonth()+1)/3);switch(n){case"q":return String(l);case"qq":return ot(l,2);case"qo":return s.ordinalNumber(l,{unit:"quarter"});case"qqq":return s.quarter(l,{width:"abbreviated",context:"standalone"});case"qqqqq":return s.quarter(l,{width:"narrow",context:"standalone"});case"qqqq":default:return s.quarter(l,{width:"wide",context:"standalone"})}},M:function(a,n,s){let l=a.getMonth();switch(n){case"M":case"MM":return cs.M(a,n);case"Mo":return s.ordinalNumber(l+1,{unit:"month"});case"MMM":return s.month(l,{width:"abbreviated",context:"formatting"});case"MMMMM":return s.month(l,{width:"narrow",context:"formatting"});case"MMMM":default:return s.month(l,{width:"wide",context:"formatting"})}},L:function(a,n,s){let l=a.getMonth();switch(n){case"L":return String(l+1);case"LL":return ot(l+1,2);case"Lo":return s.ordinalNumber(l+1,{unit:"month"});case"LLL":return s.month(l,{width:"abbreviated",context:"standalone"});case"LLLLL":return s.month(l,{width:"narrow",context:"standalone"});case"LLLL":default:return s.month(l,{width:"wide",context:"standalone"})}},w:function(a,n,s,l){let r=$T(a,l);if(n==="wo")return s.ordinalNumber(r,{unit:"week"});return ot(r,n.length)},I:function(a,n,s){let l=XT(a);if(n==="Io")return s.ordinalNumber(l,{unit:"week"});return ot(l,n.length)},d:function(a,n,s){if(n==="do")return s.ordinalNumber(a.getDate(),{unit:"date"});return cs.d(a,n)},D:function(a,n,s){let l=YT(a);if(n==="Do")return s.ordinalNumber(l,{unit:"dayOfYear"});return ot(l,n.length)},E:function(a,n,s){let l=a.getDay();switch(n){case"E":case"EE":case"EEE":return s.day(l,{width:"abbreviated",context:"formatting"});case"EEEEE":return s.day(l,{width:"narrow",context:"formatting"});case"EEEEEE":return s.day(l,{width:"short",context:"formatting"});case"EEEE":default:return s.day(l,{width:"wide",context:"formatting"})}},e:function(a,n,s,l){let r=a.getDay(),c=(r-l.weekStartsOn+8)%7||7;switch(n){case"e":return String(c);case"ee":return ot(c,2);case"eo":return s.ordinalNumber(c,{unit:"day"});case"eee":return s.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return s.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return s.day(r,{width:"short",context:"formatting"});case"eeee":default:return s.day(r,{width:"wide",context:"formatting"})}},c:function(a,n,s,l){let r=a.getDay(),c=(r-l.weekStartsOn+8)%7||7;switch(n){case"c":return String(c);case"cc":return ot(c,n.length);case"co":return s.ordinalNumber(c,{unit:"day"});case"ccc":return s.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return s.day(r,{width:"narrow",context:"standalone"});case"cccccc":return s.day(r,{width:"short",context:"standalone"});case"cccc":default:return s.day(r,{width:"wide",context:"standalone"})}},i:function(a,n,s){let l=a.getDay(),r=l===0?7:l;switch(n){case"i":return String(r);case"ii":return ot(r,n.length);case"io":return s.ordinalNumber(r,{unit:"day"});case"iii":return s.day(l,{width:"abbreviated",context:"formatting"});case"iiiii":return s.day(l,{width:"narrow",context:"formatting"});case"iiiiii":return s.day(l,{width:"short",context:"formatting"});case"iiii":default:return s.day(l,{width:"wide",context:"formatting"})}},a:function(a,n,s){let r=a.getHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return s.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return s.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return s.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return s.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(a,n,s){let l=a.getHours(),r;if(l===12)r=Zr.noon;else if(l===0)r=Zr.midnight;else r=l/12>=1?"pm":"am";switch(n){case"b":case"bb":return s.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return s.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return s.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return s.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(a,n,s){let l=a.getHours(),r;if(l>=17)r=Zr.evening;else if(l>=12)r=Zr.afternoon;else if(l>=4)r=Zr.morning;else r=Zr.night;switch(n){case"B":case"BB":case"BBB":return s.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return s.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return s.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(a,n,s){if(n==="ho"){let l=a.getHours()%12;if(l===0)l=12;return s.ordinalNumber(l,{unit:"hour"})}return cs.h(a,n)},H:function(a,n,s){if(n==="Ho")return s.ordinalNumber(a.getHours(),{unit:"hour"});return cs.H(a,n)},K:function(a,n,s){let l=a.getHours()%12;if(n==="Ko")return s.ordinalNumber(l,{unit:"hour"});return ot(l,n.length)},k:function(a,n,s){let l=a.getHours();if(l===0)l=24;if(n==="ko")return s.ordinalNumber(l,{unit:"hour"});return ot(l,n.length)},m:function(a,n,s){if(n==="mo")return s.ordinalNumber(a.getMinutes(),{unit:"minute"});return cs.m(a,n)},s:function(a,n,s){if(n==="so")return s.ordinalNumber(a.getSeconds(),{unit:"second"});return cs.s(a,n)},S:function(a,n){return cs.S(a,n)},X:function(a,n,s){let l=a.getTimezoneOffset();if(l===0)return"Z";switch(n){case"X":return ZT(l);case"XXXX":case"XX":return Il(l);case"XXXXX":case"XXX":default:return Il(l,":")}},x:function(a,n,s){let l=a.getTimezoneOffset();switch(n){case"x":return ZT(l);case"xxxx":case"xx":return Il(l);case"xxxxx":case"xxx":default:return Il(l,":")}},O:function(a,n,s){let l=a.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+QT(l,":");case"OOOO":default:return"GMT"+Il(l,":")}},z:function(a,n,s){let l=a.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+QT(l,":");case"zzzz":default:return"GMT"+Il(l,":")}},t:function(a,n,s){let l=Math.trunc(+a/1000);return ot(l,n.length)},T:function(a,n,s){return ot(+a,n.length)}};function QT(a,n=""){let s=a>0?"-":"+",l=Math.abs(a),r=Math.trunc(l/60),c=l%60;if(c===0)return s+String(r);return s+String(r)+n+ot(c,2)}function ZT(a,n){if(a%60===0)return(a>0?"-":"+")+ot(Math.abs(a)/60,2);return Il(a,n)}function Il(a,n=""){let s=a>0?"-":"+",l=Math.abs(a),r=ot(Math.trunc(l/60),2),c=ot(l%60,2);return s+r+n+c}var JT=(a,n)=>{switch(a){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},KT=(a,n)=>{switch(a){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},bP=(a,n)=>{let s=a.match(/(P+)(p+)?/)||[],l=s[1],r=s[2];if(!r)return JT(a,n);let c;switch(l){case"P":c=n.dateTime({width:"short"});break;case"PP":c=n.dateTime({width:"medium"});break;case"PPP":c=n.dateTime({width:"long"});break;case"PPPP":default:c=n.dateTime({width:"full"});break}return c.replace("{{date}}",JT(l,n)).replace("{{time}}",KT(r,n))},eA={p:KT,P:bP};var xP=/^D+$/,SP=/^Y+$/,vP=["D","DD","YY","YYYY"];function tA(a){return xP.test(a)}function aA(a){return SP.test(a)}function oA(a,n,s){let l=LP(a,n,s);if(console.warn(l),vP.includes(a))throw RangeError(l)}function LP(a,n,s){let l=a[0]==="Y"?"years":"days of the month";return`Use \`${a.toLowerCase()}\` instead of \`${a}\` (in \`${n}\`) for formatting ${l} to the input \`${s}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var CP=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,IP=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,wP=/^'([^]*?)'?$/,MP=/''/g,TP=/[a-zA-Z]/;function qo(a,n,s){let l=Tn(),r=s?.locale??l.locale??ld,c=s?.firstWeekContainsDate??s?.locale?.options?.firstWeekContainsDate??l.firstWeekContainsDate??l.locale?.options?.firstWeekContainsDate??1,f=s?.weekStartsOn??s?.locale?.options?.weekStartsOn??l.weekStartsOn??l.locale?.options?.weekStartsOn??0,h=et(a,s?.in);if(!DT(h))throw RangeError("Invalid time value");let p=n.match(IP).map((b)=>{let x=b[0];if(x==="p"||x==="P"){let v=eA[x];return v(b,r.formatLong)}return b}).join("").match(CP).map((b)=>{if(b==="''")return{isToken:!1,value:"'"};let x=b[0];if(x==="'")return{isToken:!1,value:AP(b)};if($x[x])return{isToken:!0,value:b};if(x.match(TP))throw RangeError("Format string contains an unescaped latin alphabet character `"+x+"`");return{isToken:!1,value:b}});if(r.localize.preprocessor)p=r.localize.preprocessor(h,p);let y={firstWeekContainsDate:c,weekStartsOn:f,locale:r};return p.map((b)=>{if(!b.isToken)return b.value;let x=b.value;if(!s?.useAdditionalWeekYearTokens&&aA(x)||!s?.useAdditionalDayOfYearTokens&&tA(x))oA(x,n,String(a));let v=$x[x[0]];return v(h,x,r.localize,y)}).join("")}function AP(a){let n=a.match(wP);if(!n)return a;return n[1].replace(MP,"'")}function nA(a,n,s){let l=Tn(),r=s?.locale??l.locale??ld,c=2520,f=Wr(a,n);if(isNaN(f))throw RangeError("Invalid time value");let h=Object.assign({},s,{addSuffix:s?.addSuffix,comparison:f}),[p,y]=gi(s?.in,...f>0?[n,a]:[a,n]),b=HT(y,p),x=(Xr(y)-Xr(p))/1000,v=Math.round((b-x)/60),I;if(v<2)if(s?.includeSeconds)if(b<5)return r.formatDistance("lessThanXSeconds",5,h);else if(b<10)return r.formatDistance("lessThanXSeconds",10,h);else if(b<20)return r.formatDistance("lessThanXSeconds",20,h);else if(b<40)return r.formatDistance("halfAMinute",0,h);else if(b<60)return r.formatDistance("lessThanXMinutes",1,h);else return r.formatDistance("xMinutes",1,h);else if(v===0)return r.formatDistance("lessThanXMinutes",1,h);else return r.formatDistance("xMinutes",v,h);else if(v<45)return r.formatDistance("xMinutes",v,h);else if(v<90)return r.formatDistance("aboutXHours",1,h);else if(v<Yx){let M=Math.round(v/60);return r.formatDistance("aboutXHours",M,h)}else if(v<2520)return r.formatDistance("xDays",1,h);else if(v<id){let M=Math.round(v/Yx);return r.formatDistance("xDays",M,h)}else if(v<id*2)return I=Math.round(v/id),r.formatDistance("aboutXMonths",I,h);if(I=zT(y,p),I<12){let M=Math.round(v/id);return r.formatDistance("xMonths",M,h)}else{let M=I%12,D=Math.trunc(I/12);if(M<3)return r.formatDistance("aboutXYears",D,h);else if(M<9)return r.formatDistance("overXYears",D,h);else return r.formatDistance("almostXYears",D+1,h)}}function sA(a,n){return nA(a,AT(a),n)}var qa=be(nt(),1),ra={light:["#002f6d","#4f6fa3","#7a8ca8","#4ade80","#fbbf24","#f87171","#8fb3e8"],dark:["#7fa6e6","#8fb3e8","#a9b7cc","#4ade80","#fbbf24","#f87171","#60a5fa"]},Ap={dark:{legendLabel:"#94a3b8",tooltipBackground:"#16161e",tooltipTitle:"#f8fafc",tooltipBody:"#94a3b8",tooltipBorder:"rgba(255, 255, 255, 0.1)",grid:"rgba(255, 255, 255, 0.06)",tick:"#64748b"},light:{legendLabel:"#475569",tooltipBackground:"#ffffff",tooltipTitle:"#0f172a",tooltipBody:"#334155",tooltipBorder:"rgba(15, 23, 42, 0.18)",grid:"rgba(15, 23, 42, 0.08)",tick:"#64748b"}};function _p(a){let{chartTheme:n,showLegend:s,defaultLabel:l,formatValue:r,footer:c}=a;return{legend:{display:s,position:"top",align:"start",labels:{color:n.legendLabel,usePointStyle:!0,padding:16,font:{size:12},boxWidth:8}},tooltip:{backgroundColor:n.tooltipBackground,titleColor:n.tooltipTitle,bodyColor:n.tooltipBody,borderColor:n.tooltipBorder,borderWidth:1,padding:12,cornerRadius:8,callbacks:{label:(f)=>{let h=f.dataset.label??l,p=f.parsed.y??0;return`${h}: ${r(p)}`},...c?{footer:c}:{}}}}}function Dp(a){let{chartTheme:n,formatY:s}=a,l={grid:{color:n.grid,drawBorder:!1},ticks:{color:n.tick,font:{size:11}}},r={...l,ticks:{...l.ticks,callback:(c)=>s(Number(c))},min:0};return{sharedScaleBase:l,yScale:r}}function Rp(a){return{borderColor:a,backgroundColor:`${a}20`,fill:!0,tension:0,pointRadius:3,pointHoverRadius:4,borderWidth:2}}function kp(a){return{backgroundColor:a,borderColor:a,borderWidth:0,borderRadius:3}}function Jr(a,n){return a.datasets.map((s,l)=>({label:s.label,data:s.data,...n(l)}))}function Op(a,n,s){if(a.length===0)return{labels:[],datasets:[]};let{initBucket:l,accumulate:r,bucketToValue:c}=s,f=new Map;for(let p of a){let y=f.get(p.timestamp)??l();r(y,p),f.set(p.timestamp,y)}let h=[...f.entries()].sort((p,y)=>p[0]-y[0]);return{labels:h.map(([p])=>qo(new Date(p),"MMM d")),datasets:[{label:n,data:h.map(([,p])=>c(p))}]}}function Ep(a,n){if(a.length===0)return{labels:[],datasets:[]};let{topN:s=5,rankWeight:l,initBucket:r,accumulate:c,bucketToValue:f}=n,h=new Map;for(let z of a){let N=`${z.model}::${z.provider}`,Q=h.get(N);if(Q)Q.weight+=l(z);else h.set(N,{model:z.model,provider:z.provider,weight:l(z)})}let y=[...h.entries()].sort((z,N)=>N[1].weight-z[1].weight).slice(0,s),b=new Set(y.map(([z])=>z)),x=new Map;for(let[,{model:z}]of y)x.set(z,(x.get(z)??0)+1);let v=new Map;for(let[z,{model:N,provider:Q}]of y)v.set(z,(x.get(N)??0)>1?`${N} (${Q})`:N);let I=[...new Set(a.map((z)=>z.timestamp))].sort((z,N)=>z-N),M=y.map(([z])=>v.get(z)??z);if(a.some((z)=>!b.has(`${z.model}::${z.provider}`)))M.push("Other");let w=new Map;for(let z of I)w.set(z,{});for(let z of a){let N=`${z.model}::${z.provider}`,Q=b.has(N)?v.get(N)??z.model:"Other",Z=w.get(z.timestamp);if(!Z)continue;let X=Z[Q]??r();c(X,z),Z[Q]=X}return{labels:I.map((z)=>qo(new Date(z),"MMM d")),datasets:M.map((z)=>({label:z,data:I.map((N)=>{let Q=w.get(N)?.[z];return Q?f(Q):0})}))}}function DP({byModel:a,onChange:n}){return qa.jsxDEV("div",{className:"flex bg-[var(--bg-surface)] rounded-[var(--radius-sm)] p-0.5 border border-[var(--border-subtle)]",children:[qa.jsxDEV("button",{type:"button",onClick:()=>n(!1),className:`tab-btn text-xs ${!a?"active":""}`,children:"All Models"},void 0,!1,void 0,this),qa.jsxDEV("button",{type:"button",onClick:()=>n(!0),className:`tab-btn text-xs ${a?"active":""}`,children:"By Model"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Bp({title:a,subtitle:n,empty:s,emptyMessage:l,controls:r,byModel:c,onByModelChange:f,children:h}){return qa.jsxDEV("div",{className:"surface overflow-hidden",children:[qa.jsxDEV("div",{className:"px-5 py-4 border-b border-[var(--border-subtle)] flex items-center justify-between gap-4 flex-wrap",children:[qa.jsxDEV("div",{children:[qa.jsxDEV("h3",{className:"text-sm font-semibold text-[var(--text-primary)]",children:a},void 0,!1,void 0,this),qa.jsxDEV("p",{className:"text-xs text-[var(--text-muted)] mt-1",children:n},void 0,!1,void 0,this)]},void 0,!0,void 0,this),qa.jsxDEV("div",{className:"flex items-center gap-2 flex-wrap",children:[r,qa.jsxDEV(DP,{byModel:c,onChange:f},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),qa.jsxDEV("div",{className:"p-5 min-h-[320px]",children:s?qa.jsxDEV("div",{className:"h-full flex items-center justify-center text-[var(--text-muted)] text-sm",children:l},void 0,!1,void 0,this):qa.jsxDEV("div",{className:"h-[280px]",children:h},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Kr=be(nt(),1);Ma.register(Fo,No,sd,Na,Uo,In,wn,Cn,Yr);var Qx=[{value:"yelling",label:"Yelling"},{value:"profanity",label:"Profanity"},{value:"anguish",label:"Anguish (!!!, nooo, dude, ..)"},{value:"negation",label:"Negation (no/nope/wrong)"},{value:"repetition",label:"Repetition (i meant, still doesnt)"},{value:"blame",label:"Blame (you didnt, stop X-ing)"},{value:"frustration",label:"Frustration (neg + rep + blame)"},{value:"total",label:"All signals combined"}];function iA(a){if(!Number.isFinite(a))return"-";if(a===0)return"0%";if(Math.abs(a)<1)return`${a.toFixed(1)}%`;return`${a.toFixed(0)}%`}function lA(a,n){if(n==="frustration")return a.negation+a.repetition+a.blame;if(n==="total")return a.yelling+a.profanity+a.anguish+a.negation+a.repetition+a.blame;return a[n]}function rA(a,n){if(n<=0)return 0;return a/n*100}function RP(a,n){let s=Qx.find((l)=>l.value===n)?.label??"Hits";return Op(a,s,{initBucket:()=>({hits:0,messages:0}),accumulate:(l,r)=>{l.hits+=lA(r,n),l.messages+=r.messages},bucketToValue:(l)=>rA(l.hits,l.messages)})}function kP(a,n){return Ep(a,{rankWeight:(s)=>s.messages,initBucket:()=>({hits:0,messages:0}),accumulate:(s,l)=>{s.hits+=lA(l,n),s.messages+=l.messages},bucketToValue:(s)=>rA(s.hits,s.messages)})}function uA({behaviorSeries:a}){let[n,s]=rd.useState(!1),[l,r]=rd.useState("total"),c=Mn(),f=Ap[c],h=rd.useMemo(()=>n?kP(a,l):RP(a,l),[a,n,l]),p=_p({chartTheme:f,showLegend:n,defaultLabel:"Hits",formatValue:iA}),{sharedScaleBase:y,yScale:b}=Dp({chartTheme:f,formatY:iA}),x=Qx.find((M)=>M.value===l)?.label??"",v=Kr.jsxDEV("div",{className:"flex bg-[var(--bg-surface)] rounded-[var(--radius-sm)] p-0.5 border border-[var(--border-subtle)]",children:Qx.map((M)=>Kr.jsxDEV("button",{type:"button",onClick:()=>r(M.value),className:`tab-btn text-xs ${l===M.value?"active":""}`,children:M.label},M.value,!1,void 0,this))},void 0,!1,void 0,this),I;if(n){let M={labels:h.labels,datasets:Jr(h,(w)=>Rp(ra[c][w%ra[c].length]))};I=Kr.jsxDEV(wo,{data:M,options:{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:p,scales:{x:y,y:b}}},void 0,!1,void 0,this)}else{let M={labels:h.labels,datasets:Jr(h,(w)=>kp(ra[c][w%ra[c].length]))},D={responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:p,scales:{x:{...y,stacked:!0},y:{...b,stacked:!0}},layout:{padding:{top:8}}};I=Kr.jsxDEV(Lp,{data:M,options:D},void 0,!1,void 0,this)}return Kr.jsxDEV(Bp,{title:"User Tantrums",subtitle:`${x} as % of user messages per day`,empty:h.labels.length===0,emptyMessage:"No behavioral data yet. Sync to scan your sessions.",controls:v,byModel:n,onByModelChange:s,children:I},void 0,!1,void 0,this)}var Qp=be(ea(),1);var Hp=be(ea(),1);var Pp=(...a)=>a.filter((n,s,l)=>Boolean(n)&&n.trim()!==""&&l.indexOf(n)===s).join(" ").trim();var cA=(a)=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();var dA=(a)=>a.replace(/^([A-Z])|[\s-_]+(\w)/g,(n,s,l)=>l?l.toUpperCase():s.toLowerCase());var Zx=(a)=>{let n=dA(a);return n.charAt(0).toUpperCase()+n.slice(1)};var ud=be(ea(),1);var zp={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 fA=(a)=>{for(let n in a)if(n.startsWith("aria-")||n==="role"||n==="title")return!0;return!1};var eu=be(ea(),1),OP=eu.createContext({});var hA=()=>eu.useContext(OP);var pA=ud.forwardRef(({color:a,size:n,strokeWidth:s,absoluteStrokeWidth:l,className:r="",children:c,iconNode:f,...h},p)=>{let{size:y=24,strokeWidth:b=2,absoluteStrokeWidth:x=!1,color:v="currentColor",className:I=""}=hA()??{},M=l??x?Number(s??b)*24/Number(n??y):s??b;return ud.createElement("svg",{ref:p,...zp,width:n??y??zp.width,height:n??y??zp.height,stroke:a??v,strokeWidth:M,className:Pp("lucide",I,r),...!c&&!fA(h)&&{"aria-hidden":"true"},...h},[...f.map(([D,w])=>ud.createElement(D,w)),...Array.isArray(c)?c:[c]])});var Fe=(a,n)=>{let s=Hp.forwardRef(({className:l,...r},c)=>Hp.createElement(pA,{ref:c,iconNode:n,className:Pp(`lucide-${cA(Zx(a))}`,`lucide-${a}`,l),...r}));return s.displayName=Zx(a),s};var EP=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],yi=Fe("chart-column",EP);var BP=[["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"}]],bi=Fe("circle-alert",BP);var PP=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],xi=Fe("circle-check",PP);var zP=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],Si=Fe("circle-x",zP);var HP=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1",key:"1oajmo"}],["path",{d:"M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1",key:"mpwhp6"}]],vi=Fe("file-braces",HP);var UP=[["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"}]],Ml=Fe("activity",UP);var FP=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],cd=Fe("chevron-down",FP);var NP=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],dd=Fe("chevron-up",NP);var qP=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],fd=Fe("clock",qP);var VP=[["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"}]],hd=Fe("coins",VP);var jP=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],pd=Fe("database",jP);var GP=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],md=Fe("download",GP);var YP=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],gd=Fe("gauge",YP);var XP=[["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"}]],yd=Fe("hash",XP);var WP=[["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"}]],bd=Fe("refresh-cw",WP);var $P=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],xd=Fe("server",$P);var QP=[["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"}]],Tl=Fe("star",QP);var ZP=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],Sd=Fe("upload",ZP);var JP=[["path",{d:"M15.914 4a1.5 1.5 0 00-2.474-1.561l-9 9A1.5 1.5 0 005.5 14h4.002a.5.5 0 01.471.666L8.086 20a1.5 1.5 0 002.475 1.56l9-9A1.5 1.5 0 0018.5 10h-3.997a.5.5 0 01-.472-.667z",key:"1v7up4"}]],Al=Fe("zap",JP);var KP=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],vd=Fe("x",KP);var wt=be(nt(),1),Up={dark:{legendLabel:"#cbd5e1",tooltipBackground:"#16161e",tooltipTitle:"#f8fafc",tooltipBody:"#94a3b8",tooltipBorder:"rgba(255, 255, 255, 0.1)",grid:"rgba(255, 255, 255, 0.06)",tick:"#94a3b8"},light:{legendLabel:"#334155",tooltipBackground:"#ffffff",tooltipTitle:"#0f172a",tooltipBody:"#334155",tooltipBorder:"rgba(15, 23, 42, 0.18)",grid:"rgba(15, 23, 42, 0.08)",tick:"#475569"}};function ds(a){return{borderColor:a,backgroundColor:"transparent",tension:0.4,pointRadius:0,borderWidth:2}}function Fp({timestamps:a,values:n,color:s}){let l={labels:a.map((c)=>qo(new Date(c),"MMM d")),datasets:[{data:n,...ds(s)}]};return wt.jsxDEV(wo,{data:l,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 Np(a){return{legend:{display:!0,position:"top",labels:{color:a.legendLabel,usePointStyle:!0,padding:16,font:{size:12}}},tooltip:{backgroundColor:a.tooltipBackground,titleColor:a.tooltipTitle,bodyColor:a.tooltipBody,borderColor:a.tooltipBorder,borderWidth:1,cornerRadius:8}}}function mA(a){return{x:{grid:{color:a.grid},ticks:{color:a.tick,font:{size:11}}},y:{grid:{color:a.grid},ticks:{color:a.tick,font:{size:11}},min:0}}}function gA(a){return{x:{grid:{color:a.grid},ticks:{color:a.tick,font:{size:11}}},y:{type:"linear",display:!0,position:"left",grid:{color:a.grid},ticks:{color:a.tick,font:{size:11}}},y1:{type:"linear",display:!0,position:"right",grid:{drawOnChartArea:!1},ticks:{color:a.tick,font:{size:11}}}}}function qp({title:a,subtitle:n,children:s}){return wt.jsxDEV("div",{className:"surface overflow-hidden",children:[wt.jsxDEV("div",{className:"px-5 py-4 border-b border-[var(--border-subtle)]",children:[wt.jsxDEV("h3",{className:"text-sm font-semibold text-[var(--text-primary)]",children:a},void 0,!1,void 0,this),n?wt.jsxDEV("p",{className:"text-xs text-[var(--text-muted)] mt-1",children:n},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),wt.jsxDEV("div",{className:"overflow-x-auto",children:s},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function ez(a){if(a==="right")return"text-right";if(a==="center")return"text-center";return""}function Vp({columns:a,gridTemplate:n}){return wt.jsxDEV("div",{className:"grid gap-3 px-5 py-3 text-[var(--text-muted)] text-xs uppercase tracking-wider font-semibold",style:{gridTemplateColumns:n},children:[a.map((s)=>wt.jsxDEV("div",{className:ez(s.align),children:s.label},s.label,!1,void 0,this)),wt.jsxDEV("div",{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function jp({children:a}){return wt.jsxDEV("div",{className:"max-h-[calc(100vh-300px)] overflow-y-auto",children:a},void 0,!1,void 0,this)}function Gp({model:a,provider:n}){return wt.jsxDEV("div",{children:[wt.jsxDEV("div",{className:"font-medium text-[var(--text-primary)]",children:a},void 0,!1,void 0,this),wt.jsxDEV("div",{className:"text-xs text-[var(--text-muted)]",children:n},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Yp({gridTemplate:a,cells:n,trendCell:s,isExpanded:l,onToggle:r,expandedContent:c}){return wt.jsxDEV("div",{className:"border-t border-[var(--border-subtle)]",children:[wt.jsxDEV("button",{type:"button",onClick:r,className:"w-full bg-transparent border-none text-left px-5 py-3 cursor-pointer hover:bg-[var(--bg-hover)] transition-colors",children:wt.jsxDEV("div",{className:"grid gap-3 items-center",style:{gridTemplateColumns:a},children:[n,wt.jsxDEV("div",{className:"h-10",children:s},void 0,!1,void 0,this),wt.jsxDEV("div",{className:"flex justify-center text-[var(--text-muted)]",children:l?wt.jsxDEV(dd,{size:16},void 0,!1,void 0,this):wt.jsxDEV(cd,{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),l?wt.jsxDEV("div",{className:"px-5 py-4 bg-[var(--bg-elevated)] border-t border-[var(--border-subtle)]",children:c},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}function Xp(){return wt.jsxDEV("div",{className:"text-[var(--text-muted)] text-center text-sm",children:"-"},void 0,!1,void 0,this)}function Wp({message:a="No data available"}){return wt.jsxDEV("div",{className:"h-full flex items-center justify-center text-[var(--text-muted)] text-sm",children:a},void 0,!1,void 0,this)}var Xe=be(nt(),1);Ma.register(Fo,No,Uo,Na,In,wn,Cn);var $p={yelling:"#fbbf24",profanity:"#f87171",anguish:"#a78bfa",frustration:"#22d3ee"},yA="2fr 0.9fr 0.8fr 0.8fr 0.8fr 0.9fr 0.8fr 140px 40px";function xA(a){return a.toLocaleString()}function bA(a){if(a.totalMessages===0)return 0;return(a.totalYelling+a.totalProfanity+a.totalAnguish+a.totalNegation+a.totalRepetition+a.totalBlame)/a.totalMessages}function tu(a,n){if(n===0)return"-";let s=a/n*100;if(s===0)return"0%";if(s<1)return`${s.toFixed(1)}%`;return`${s.toFixed(0)}%`}function SA({models:a,behaviorSeries:n}){let[s,l]=Qp.useState(null),r=Mn(),c=Up[r],f=Qp.useMemo(()=>az(n),[n]),h=[...a].sort((p,y)=>{if(y.totalMessages!==p.totalMessages)return y.totalMessages-p.totalMessages;return bA(y)-bA(p)});return Xe.jsxDEV(qp,{title:"Behavior by Model",subtitle:"How often each model elicited a tantrum — rates are per user message",children:[Xe.jsxDEV(Vp,{gridTemplate:yA,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),Xe.jsxDEV(jp,{children:[h.map((p,y)=>{let b=`${p.model}::${p.provider}`,x=f.get(b)?.data??[],v=ra[r][y%ra[r].length],I=s===b,M=p.totalNegation+p.totalRepetition+p.totalBlame,D=p.totalYelling+p.totalProfanity+p.totalAnguish+M;return Xe.jsxDEV(Yp,{gridTemplate:yA,isExpanded:I,onToggle:()=>l(I?null:b),cells:[Xe.jsxDEV(Gp,{model:p.model,provider:p.provider},"name",!1,void 0,this),Xe.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:xA(p.totalMessages)},"messages",!1,void 0,this),Xe.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:tu(p.totalYelling,p.totalMessages)},"caps",!1,void 0,this),Xe.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:tu(p.totalProfanity,p.totalMessages)},"profanity",!1,void 0,this),Xe.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:tu(p.totalAnguish,p.totalMessages)},"anguish",!1,void 0,this),Xe.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:tu(M,p.totalMessages)},"frustration",!1,void 0,this),Xe.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:tu(D,p.totalMessages)},"hits",!1,void 0,this)],trendCell:x.length===0?Xe.jsxDEV(Xp,{},void 0,!1,void 0,this):Xe.jsxDEV(Fp,{timestamps:x.map((w)=>w.timestamp),values:x.map((w)=>w.total),color:v},void 0,!1,void 0,this),expandedContent:Xe.jsxDEV("div",{className:"grid gap-4",style:{gridTemplateColumns:"220px 1fr"},children:[Xe.jsxDEV("div",{className:"space-y-4 text-sm",children:[Xe.jsxDEV(_l,{label:"Yelling (CAPS)",total:p.totalYelling,messages:p.totalMessages,valueClass:"text-[var(--accent-amber,#fbbf24)]"},void 0,!1,void 0,this),Xe.jsxDEV(_l,{label:"Profanity",total:p.totalProfanity,messages:p.totalMessages,valueClass:"text-[var(--accent-red,#f87171)]"},void 0,!1,void 0,this),Xe.jsxDEV(_l,{label:"Anguish (!!!, nooo, dude, ..)",total:p.totalAnguish,messages:p.totalMessages,valueClass:"text-[var(--accent-violet,#a78bfa)]"},void 0,!1,void 0,this),Xe.jsxDEV(_l,{label:"Negation (no/nope/wrong)",total:p.totalNegation,messages:p.totalMessages,valueClass:"text-[var(--accent-cyan,#22d3ee)]"},void 0,!1,void 0,this),Xe.jsxDEV(_l,{label:"Repetition (i meant, still doesnt)",total:p.totalRepetition,messages:p.totalMessages,valueClass:"text-[var(--accent-cyan,#22d3ee)]"},void 0,!1,void 0,this),Xe.jsxDEV(_l,{label:"Blame (you didnt, stop X-ing)",total:p.totalBlame,messages:p.totalMessages,valueClass:"text-[var(--accent-cyan,#22d3ee)]"},void 0,!1,void 0,this),Xe.jsxDEV(_l,{label:"Avg chars / msg",total:p.totalChars,messages:p.totalMessages,valueClass:"text-[var(--text-secondary)]",mode:"average"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Xe.jsxDEV("div",{className:"h-[200px]",children:x.length===0?Xe.jsxDEV(Wp,{},void 0,!1,void 0,this):Xe.jsxDEV(tz,{data:x,chartTheme:c},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},b,!1,void 0,this)}),h.length===0?Xe.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 _l({label:a,total:n,messages:s,valueClass:l,mode:r="rate"}){let c=r==="rate"?"% of msgs":"Per msg",f=s>0?r==="rate"?tu(n,s):(n/s).toFixed(0):"-";return Xe.jsxDEV("div",{children:[Xe.jsxDEV("div",{className:"text-[var(--text-primary)] font-medium mb-2",children:a},void 0,!1,void 0,this),Xe.jsxDEV("div",{className:"space-y-1 text-[var(--text-secondary)]",children:[Xe.jsxDEV("div",{className:"flex items-center justify-between",children:[Xe.jsxDEV("span",{children:"Total"},void 0,!1,void 0,this),Xe.jsxDEV("span",{className:`font-mono ${l}`,children:xA(n)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Xe.jsxDEV("div",{className:"flex items-center justify-between",children:[Xe.jsxDEV("span",{children:c},void 0,!1,void 0,this),Xe.jsxDEV("span",{className:"font-mono",children:f},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 tz({data:a,chartTheme:n}){let s={labels:a.map((r)=>qo(new Date(r.timestamp),"MMM d")),datasets:[{label:"CAPS",data:a.map((r)=>r.yelling),...ds($p.yelling)},{label:"Profanity",data:a.map((r)=>r.profanity),...ds($p.profanity)},{label:"Anguish",data:a.map((r)=>r.anguish),...ds($p.anguish)},{label:"Frustration",data:a.map((r)=>r.frustration),...ds($p.frustration)}]},l={responsive:!0,maintainAspectRatio:!1,plugins:Np(n),scales:mA(n)};return Xe.jsxDEV(wo,{data:s,options:l},void 0,!1,void 0,this)}function az(a){if(a.length===0)return new Map;let n=[...new Set(a.map((r)=>r.timestamp))].sort((r,c)=>r-c),s=new Map;for(let r of a){let c=`${r.model}::${r.provider}`,f=s.get(c);if(!f)f=new Map,s.set(c,f);let h=f.get(r.timestamp)??{timestamp:r.timestamp,yelling:0,profanity:0,anguish:0,frustration:0,total:0};h.yelling+=r.yelling,h.profanity+=r.profanity,h.anguish+=r.anguish,h.frustration+=r.negation+r.repetition+r.blame,h.total=h.yelling+h.profanity+h.anguish+h.frustration,f.set(r.timestamp,h)}let l=new Map;for(let[r,c]of s){let f=n.map((h)=>c.get(h)??{timestamp:h,yelling:0,profanity:0,anguish:0,frustration:0,total:0});l.set(r,{data:f})}return l}var vA=be(ea(),1),ou=be(nt(),1);function au(a){return a.toLocaleString()}function Zp(a,n){if(n<=0)return;return`${(a/n).toFixed(2)} / msg`}function LA({overall:a,behaviorSeries:n}){let s=vA.useMemo(()=>{let f=new Map;for(let p of n){let y=`${p.model}::${p.provider}`,b=f.get(y),x=p.yelling+p.profanity+p.anguish+p.negation+p.repetition+p.blame;if(b)b.score+=x;else f.set(y,{model:p.model,provider:p.provider,score:x})}let h=null;for(let p of f.values())if(!h||p.score>h.score)h=p;return h},[n]),l=a.totalNegation+a.totalRepetition+a.totalBlame,r=a.totalMessages,c=[{label:"Messages",value:au(a.totalMessages),sub:r>0?"in selected range":void 0},{label:"Yelling",value:au(a.totalYelling),sub:Zp(a.totalYelling,r)},{label:"Profanity hits",value:au(a.totalProfanity),sub:Zp(a.totalProfanity,r)},{label:"Anguish",value:au(a.totalAnguish),sub:Zp(a.totalAnguish,r)},{label:"Frustration",value:au(l),sub:Zp(l,r)},{label:"Most yelled-at",value:s?.model??"—",sub:s?`${au(s.score)} hits`:void 0}];return ou.jsxDEV("div",{className:"grid grid-cols-2 sm:grid-cols-6 gap-4",children:c.map((f)=>ou.jsxDEV("div",{className:"surface px-4 py-3",children:[ou.jsxDEV("p",{className:"text-xs text-[var(--text-muted)] mb-1",children:f.label},void 0,!1,void 0,this),ou.jsxDEV("p",{className:"text-lg font-semibold text-[var(--text-primary)] truncate",title:f.value,children:f.value},void 0,!1,void 0,this),f.sub&&ou.jsxDEV("p",{className:"text-xs text-[var(--text-muted)] mt-0.5",children:f.sub},void 0,!1,void 0,this)]},f.label,!0,void 0,this))},void 0,!1,void 0,this)}var wA=be(ea(),1);var Jx=3600000,Jp=24*Jx,CA={"1h":{windowLabel:"the last hour",trendLabel:"1h Trend",bucketMs:Jx,bucketCount:1,tickFormat:"HH:mm"},"24h":{windowLabel:"the last 24 hours",trendLabel:"24h Trend",bucketMs:Jx,bucketCount:24,tickFormat:"HH:mm"},"7d":{windowLabel:"the last 7 days",trendLabel:"7d Trend",bucketMs:Jp,bucketCount:7,tickFormat:"MMM d"},"30d":{windowLabel:"the last 30 days",trendLabel:"30d Trend",bucketMs:Jp,bucketCount:30,tickFormat:"MMM d"},"90d":{windowLabel:"the last 90 days",trendLabel:"90d Trend",bucketMs:Jp,bucketCount:90,tickFormat:"MMM d"},all:{windowLabel:"all time",trendLabel:"Trend",bucketMs:Jp,bucketCount:0,tickFormat:"MMM d"}};function Kp(a){return CA[a]}function IA(a,n){return qo(new Date(a),CA[n].tickFormat)}var fs=be(nt(),1);Ma.register(Fo,No,Uo,Na,In,wn,Cn,Yr);var em={light:["#002f6d","#4f6fa3","#7a8ca8","#4ade80","#fbbf24","#f87171","#8fb3e8"],dark:["#7fa6e6","#8fb3e8","#a9b7cc","#4ade80","#fbbf24","#f87171","#60a5fa"]},oz={dark:{legendLabel:"#94a3b8",tooltipBackground:"#16161e",tooltipTitle:"#f8fafc",tooltipBody:"#94a3b8",tooltipBorder:"rgba(255, 255, 255, 0.1)",grid:"rgba(255, 255, 255, 0.06)",tick:"#64748b"},light:{legendLabel:"#475569",tooltipBackground:"#ffffff",tooltipTitle:"#0f172a",tooltipBody:"#334155",tooltipBorder:"rgba(15, 23, 42, 0.18)",grid:"rgba(15, 23, 42, 0.08)",tick:"#64748b"}};function MA({modelSeries:a,timeRange:n}){let s=wA.useMemo(()=>nz(a),[a]),l=Mn(),r=oz[l],c=Kp(n),f={labels:s.data.map((p)=>IA(p.timestamp,n)),datasets:s.series.map((p,y)=>({label:p,data:s.data.map((b)=>b[p]??0),borderColor:em[l][y%em[l].length],backgroundColor:`${em[l][y%em[l].length]}20`,fill:!0,tension:0.4,pointRadius:0,pointHoverRadius:4,borderWidth:2}))},h={responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{legend:{position:"top",align:"start",labels:{color:r.legendLabel,usePointStyle:!0,padding:16,font:{size:12},boxWidth:8}},tooltip:{backgroundColor:r.tooltipBackground,titleColor:r.tooltipTitle,bodyColor:r.tooltipBody,borderColor:r.tooltipBorder,borderWidth:1,padding:12,cornerRadius:8,callbacks:{label:(p)=>{let y=p.dataset.label??"",b=p.parsed.y;return`${y}: ${(b??0).toFixed(1)}%`}}}},scales:{x:{grid:{color:r.grid,drawBorder:!1},ticks:{color:r.tick,font:{size:11}}},y:{grid:{color:r.grid,drawBorder:!1},ticks:{color:r.tick,font:{size:11},callback:(p)=>`${p}%`},min:0,max:100}}};return fs.jsxDEV("div",{className:"surface overflow-hidden",children:[fs.jsxDEV("div",{className:"px-5 py-4 border-b border-[var(--border-subtle)]",children:[fs.jsxDEV("h3",{className:"text-sm font-semibold text-[var(--text-primary)]",children:"Model Preference"},void 0,!1,void 0,this),fs.jsxDEV("p",{className:"text-xs text-[var(--text-muted)] mt-1",children:["Share of requests over ",c.windowLabel]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),fs.jsxDEV("div",{className:"p-5 min-h-[320px]",children:s.data.length===0?fs.jsxDEV("div",{className:"h-full flex items-center justify-center text-[var(--text-muted)] text-sm",children:"No data available"},void 0,!1,void 0,this):fs.jsxDEV("div",{className:"h-[280px]",children:fs.jsxDEV(wo,{data:f,options:h},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function nz(a,n=5){if(a.length===0)return{data:[],series:[]};let s=new Map;for(let x of a){let v=`${x.model}::${x.provider}`,I=s.get(v);if(I)I.total+=x.requests;else s.set(v,{model:x.model,provider:x.provider,total:x.requests})}let r=[...s.entries()].map(([x,v])=>({key:x,...v})).sort((x,v)=>v.total-x.total).slice(0,n),c=new Set(r.map((x)=>x.key)),f=new Map;for(let x of r)f.set(x.model,(f.get(x.model)??0)+1);let h=new Map;for(let x of r){let v=(f.get(x.model)??0)>1;h.set(x.key,v?`${x.model} (${x.provider})`:x.model)}let p=new Map;for(let x of a){let v=`${x.model}::${x.provider}`,I=p.get(x.timestamp)??{timestamp:x.timestamp,total:0};I.total+=x.requests;let M=c.has(v)?h.get(v)??x.model:"Other";I[M]=(I[M]??0)+x.requests,p.set(x.timestamp,I)}let y=r.map((x)=>h.get(x.key)??x.model);if([...p.values()].some((x)=>(x.Other??0)>0))y.push("Other");return{data:[...p.values()].sort((x,v)=>(x.timestamp??0)-(v.timestamp??0)).map((x)=>{let v=x.total??0;for(let I of y)x[I]=v>0?(x[I]??0)/v*100:0;return x}),series:y}}var am=be(ea(),1);var tm=be(nt(),1);Ma.register(Fo,No,sd,Na,Uo,In,wn,Cn,Yr);var sz={dark:"rgba(248, 250, 252, 0.7)",light:"rgba(15, 23, 42, 0.6)"};function iz(a){return{id:"costBarLabels",afterDatasetsDraw(n){let{ctx:s}=n;if(!n.data.datasets[0])return;let r=n.getDatasetMeta(0);s.save(),s.font="11px system-ui, sans-serif",s.fillStyle=a,s.textAlign="center",s.textBaseline="bottom";for(let c of r.data){let f=c.$context.parsed.y;if(!f)continue;let h=`$${Math.round(f)}`,{x:p,y}=c.getProps(["x","y"],!0);s.fillText(h,p,y-3)}s.restore()}}}function lz(a){return Op(a,"Cost",{initBucket:()=>({total:0}),accumulate:(n,s)=>{n.total+=s.cost},bucketToValue:(n)=>n.total})}function rz(a){return Ep(a,{rankWeight:(n)=>n.cost,initBucket:()=>({total:0}),accumulate:(n,s)=>{n.total+=s.cost},bucketToValue:(n)=>n.total})}function TA({costSeries:a}){let[n,s]=am.useState(!1),l=Mn(),r=Ap[l],c=am.useMemo(()=>n?rz(a):lz(a),[a,n]),f=_p({chartTheme:r,showLegend:n,defaultLabel:"Cost",formatValue:(b)=>`$${Math.round(b)}`,footer:(b)=>{if(!n||b.length<2)return;let x=b.reduce((v,I)=>v+(I.parsed.y??0),0);return`Total: $${Math.round(x)}`}}),{sharedScaleBase:h,yScale:p}=Dp({chartTheme:r,formatY:(b)=>`$${Math.round(b)}`}),y;if(n){let b={labels:c.labels,datasets:Jr(c,(v)=>Rp(ra[l][v%ra[l].length]))};y=tm.jsxDEV(wo,{data:b,options:{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:f,scales:{x:h,y:p}}},void 0,!1,void 0,this)}else{let b={labels:c.labels,datasets:Jr(c,(I)=>kp(ra[l][I%ra[l].length]))},x=iz(sz[l]),v={responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{...f,costBarLabels:{}},scales:{x:{...h,stacked:!0},y:{...p,stacked:!0}},layout:{padding:{top:24}}};y=tm.jsxDEV(Lp,{data:b,options:v,plugins:[x]},void 0,!1,void 0,this)}return tm.jsxDEV(Bp,{title:"Daily Cost",subtitle:"API spending over time",empty:c.labels.length===0,emptyMessage:"No cost data available",byModel:n,onByModelChange:s,children:y},void 0,!1,void 0,this)}var nu=be(nt(),1);function Kx(a){return`$${Math.round(a)}`}function AA({costSeries:a}){let n=a.reduce((p,y)=>p+y.cost,0),s=new Set(a.map((p)=>p.timestamp)).size,l=s>0?n/s:0,r=new Map;for(let p of a)r.set(p.model,(r.get(p.model)??0)+p.cost);let c="",f=0;for(let[p,y]of r)if(y>f)c=p,f=y;let h=[{label:"Total",value:Kx(n)},{label:"Avg / day",value:Kx(l)},{label:"Top model",value:c||"—",sub:c?Kx(f):void 0}];return nu.jsxDEV("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:h.map((p)=>nu.jsxDEV("div",{className:"surface px-4 py-3",children:[nu.jsxDEV("p",{className:"text-xs text-[var(--text-muted)] mb-1",children:p.label},void 0,!1,void 0,this),nu.jsxDEV("p",{className:"text-lg font-semibold text-[var(--text-primary)] truncate",title:p.value,children:p.value},void 0,!1,void 0,this),p.sub&&nu.jsxDEV("p",{className:"text-xs text-[var(--text-muted)] mt-0.5",children:p.sub},void 0,!1,void 0,this)]},p.label,!0,void 0,this))},void 0,!1,void 0,this)}var ga=be(nt(),1),uz=["overview","requests","errors","models","costs","behavior"],cz=[{label:"1h",value:"1h"},{label:"24h",value:"24h"},{label:"7d",value:"7d"},{label:"30d",value:"30d"},{label:"90d",value:"90d"},{label:"All",value:"all"}];function _A({activeTab:a,onTabChange:n,onSync:s,syncing:l,timeRange:r,onTimeRangeChange:c}){return ga.jsxDEV("header",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4 pb-6 mb-8 border-b border-[var(--border-subtle)]",children:[ga.jsxDEV("div",{className:"flex items-center gap-3",children:[ga.jsxDEV("div",{className:"w-10 h-10 rounded-[var(--radius-md)] bg-[image:var(--brand-gradient)] flex items-center justify-center shadow-lg",children:ga.jsxDEV(Ml,{className:"w-5 h-5 text-white"},void 0,!1,void 0,this)},void 0,!1,void 0,this),ga.jsxDEV("div",{children:[ga.jsxDEV("h1",{className:"text-xl font-semibold text-[var(--text-primary)]",children:"AI Usage"},void 0,!1,void 0,this),ga.jsxDEV("p",{className:"text-sm text-[var(--text-muted)]",children:"Statistics & Analytics"},void 0,!1,void 0,this),ga.jsxDEV("p",{className:"text-xs text-[var(--text-muted)]",children:"LIG System · Vibrato"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),ga.jsxDEV("div",{className:"flex items-center gap-3",children:[ga.jsxDEV("div",{className:"flex bg-[var(--bg-surface)] rounded-[var(--radius-md)] p-1 border border-[var(--border-subtle)]",children:uz.map((f)=>ga.jsxDEV("button",{type:"button",onClick:()=>n(f),className:`tab-btn capitalize ${a===f?"active":""}`,children:f},f,!1,void 0,this))},void 0,!1,void 0,this),ga.jsxDEV("div",{className:"flex bg-[var(--bg-surface)] rounded-[var(--radius-md)] p-1 border border-[var(--border-subtle)]",children:cz.map((f)=>ga.jsxDEV("button",{type:"button",onClick:()=>c(f.value),className:`tab-btn ${r===f.value?"active":""}`,title:f.value==="all"?"All time":`Last ${f.label}`,children:f.label},f.value,!1,void 0,this))},void 0,!1,void 0,this),ga.jsxDEV("button",{type:"button",onClick:s,disabled:l,className:"btn btn-primary",children:[ga.jsxDEV(bd,{size:16,className:l?"spin":""},void 0,!1,void 0,this),l?"Syncing...":"Sync"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var om=be(ea(),1);var We=be(nt(),1);Ma.register(Fo,No,Uo,Na,In,wn,Cn);var DA="2fr 0.9fr 0.9fr 1fr 0.8fr 0.8fr 140px 40px";function RA({models:a,performanceSeries:n,timeRange:s}){let[l,r]=om.useState(null),c=Kp(s),f=om.useMemo(()=>fz(n,c.bucketCount,c.bucketMs),[n,c.bucketCount,c.bucketMs]),h=Mn(),p=Up[h],y=[...a].sort((b,x)=>x.totalInputTokens+x.totalOutputTokens-(b.totalInputTokens+b.totalOutputTokens));return We.jsxDEV(qp,{title:"Model Statistics",children:[We.jsxDEV(Vp,{gridTemplate:DA,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:c.trendLabel,align:"center"}]},void 0,!1,void 0,this),We.jsxDEV(jp,{children:y.map((b,x)=>{let v=`${b.model}::${b.provider}`,M=f.get(v)?.data??[],D=ra[h][x%ra[h].length],w=l===v,z=b.errorRate*100;return We.jsxDEV(Yp,{gridTemplate:DA,isExpanded:w,onToggle:()=>r(w?null:v),cells:[We.jsxDEV(Gp,{model:b.model,provider:b.provider},"name",!1,void 0,this),We.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:b.totalRequests.toLocaleString()},"requests",!1,void 0,this),We.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:["$",b.totalCost.toFixed(2)]},"cost",!0,void 0,this),We.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:(b.totalInputTokens+b.totalOutputTokens).toLocaleString()},"tokens",!1,void 0,this),We.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:b.avgTokensPerSecond?.toFixed(1)??"-"},"tps",!1,void 0,this),We.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:b.avgTtft?`${(b.avgTtft/1000).toFixed(2)}s`:"-"},"ttft",!1,void 0,this)],trendCell:M.length===0?We.jsxDEV(Xp,{},void 0,!1,void 0,this):We.jsxDEV(Fp,{timestamps:M.map((N)=>N.timestamp),values:M.map((N)=>N.avgTokensPerSecond??0),color:D},void 0,!1,void 0,this),expandedContent:We.jsxDEV("div",{className:"grid gap-4",style:{gridTemplateColumns:"200px 1fr"},children:[We.jsxDEV("div",{className:"space-y-4 text-sm",children:[We.jsxDEV("div",{children:[We.jsxDEV("div",{className:"text-[var(--text-primary)] font-medium mb-2",children:"Quality"},void 0,!1,void 0,this),We.jsxDEV("div",{className:"space-y-1 text-[var(--text-secondary)]",children:[We.jsxDEV("div",{className:"flex items-center justify-between",children:[We.jsxDEV("span",{children:"Error rate"},void 0,!1,void 0,this),We.jsxDEV("span",{className:z>5?"text-[var(--accent-red)]":"text-[var(--accent-green)]",children:[z.toFixed(1),"%"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),We.jsxDEV("div",{className:"flex items-center justify-between",children:[We.jsxDEV("span",{children:"Cache rate"},void 0,!1,void 0,this),We.jsxDEV("span",{className:"text-[var(--accent-cyan)]",children:[(b.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),We.jsxDEV("div",{children:[We.jsxDEV("div",{className:"text-[var(--text-primary)] font-medium mb-2",children:"Latency"},void 0,!1,void 0,this),We.jsxDEV("div",{className:"space-y-1 text-[var(--text-secondary)]",children:[We.jsxDEV("div",{className:"flex items-center justify-between",children:[We.jsxDEV("span",{children:"Avg duration"},void 0,!1,void 0,this),We.jsxDEV("span",{className:"font-mono",children:b.avgDuration?`${(b.avgDuration/1000).toFixed(2)}s`:"-"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),We.jsxDEV("div",{className:"flex items-center justify-between",children:[We.jsxDEV("span",{children:"Avg TTFT"},void 0,!1,void 0,this),We.jsxDEV("span",{className:"font-mono",children:b.avgTtft?`${(b.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),We.jsxDEV("div",{className:"h-[200px]",children:M.length===0?We.jsxDEV(Wp,{},void 0,!1,void 0,this):We.jsxDEV(dz,{data:M,color:D,chartTheme:p},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},v,!1,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function dz({data:a,color:n,chartTheme:s}){let l={labels:a.map((c)=>qo(new Date(c.timestamp),"MMM d")),datasets:[{label:"TTFT",data:a.map((c)=>c.avgTtftSeconds??null),...ds("#fbbf24"),yAxisID:"y"},{label:"Tokens/s",data:a.map((c)=>c.avgTokensPerSecond??null),...ds(n),yAxisID:"y1"}]},r={responsive:!0,maintainAspectRatio:!1,plugins:Np(s),scales:gA(s)};return We.jsxDEV(wo,{data:l,options:r},void 0,!1,void 0,this)}function fz(a,n,s){let l=a.reduce((x,v)=>Math.max(x,v.timestamp),0),r=l>0?l:Math.floor(Date.now()/s)*s,c=new Set(a.map((x)=>x.timestamp)),f=n>0?n:Math.max(1,c.size),h=r-(f-1)*s,p=Array.from({length:f},(x,v)=>h+v*s),y=new Map(p.map((x,v)=>[x,v])),b=new Map;for(let x of a){let v=`${x.model}::${x.provider}`,I=b.get(v);if(!I)I={label:`${x.model} (${x.provider})`,data:p.map((D)=>({timestamp:D,avgTtftSeconds:null,avgTokensPerSecond:null,requests:0}))},b.set(v,I);let M=y.get(x.timestamp);if(M===void 0)continue;I.data[M]={timestamp:x.timestamp,avgTtftSeconds:x.avgTtft!==null?x.avgTtft/1000:null,avgTokensPerSecond:x.avgTokensPerSecond,requests:x.requests}}return b}var Ld=be(ea(),1);var le=be(nt(),1);function kA({id:a,onClose:n}){let[s,l]=Ld.useState(null),[r,c]=Ld.useState(!0);if(Ld.useEffect(()=>{KI(a).then(l).catch(console.error).finally(()=>c(!1))},[a]),!s&&r)return le.jsxDEV("div",{className:"fixed inset-0 bg-[var(--bg-overlay)] flex justify-center items-center z-[100]",children:le.jsxDEV("div",{className:"surface px-8 py-6",children:le.jsxDEV("div",{className:"flex items-center gap-3 text-[var(--text-secondary)]",children:[le.jsxDEV("div",{className:"w-5 h-5 border-2 border-[var(--border-default)] border-t-[var(--accent-cyan)] rounded-full spin"},void 0,!1,void 0,this),le.jsxDEV("span",{children:"Loading..."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(!s)return null;return le.jsxDEV("div",{role:"presentation",className:"fixed inset-0 bg-[var(--bg-overlay)] backdrop-blur-sm flex justify-end z-[100] animate-fade-in",onClick:n,children:le.jsxDEV("div",{role:"dialog","aria-modal":"true",className:"w-[600px] max-w-full bg-[var(--bg-page)] h-full overflow-y-auto border-l border-[var(--border-subtle)] animate-slide-up",onClick:(f)=>f.stopPropagation(),children:[le.jsxDEV("div",{className:"sticky top-0 bg-[var(--bg-page)]/95 backdrop-blur border-b border-[var(--border-subtle)] px-6 py-4 flex justify-between items-center z-10",children:[le.jsxDEV("div",{className:"flex items-center gap-3",children:[le.jsxDEV("div",{className:"w-8 h-8 rounded-[var(--radius-sm)] bg-gradient-to-br from-[var(--accent-pink)]/20 to-[var(--accent-cyan)]/20 flex items-center justify-center",children:le.jsxDEV(vi,{size:16,className:"text-[var(--accent-cyan)]"},void 0,!1,void 0,this)},void 0,!1,void 0,this),le.jsxDEV("h2",{className:"text-lg font-semibold text-[var(--text-primary)]",children:"Request Details"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),le.jsxDEV("button",{type:"button",onClick:n,className:"p-2 rounded-[var(--radius-sm)] text-[var(--text-muted)] hover:text-[var(--text-primary)] hover:bg-[var(--bg-hover)] transition-colors",children:le.jsxDEV(vd,{size:20},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),le.jsxDEV("div",{className:"p-6 space-y-6",children:[le.jsxDEV("div",{className:"surface p-5",children:le.jsxDEV("div",{className:"flex items-center justify-between mb-4",children:[le.jsxDEV("div",{children:[le.jsxDEV("div",{className:"text-2xl font-bold text-[var(--text-primary)]",children:s.model},void 0,!1,void 0,this),le.jsxDEV("div",{className:"text-sm text-[var(--text-muted)]",children:s.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),s.errorMessage?le.jsxDEV("span",{className:"badge badge-error",children:"Error"},void 0,!1,void 0,this):le.jsxDEV("span",{className:"badge badge-success",children:"Success"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),le.jsxDEV("div",{className:"grid grid-cols-2 gap-4",children:[le.jsxDEV("div",{className:"surface p-4",children:[le.jsxDEV("div",{className:"flex items-center gap-2 text-[var(--text-muted)] mb-2",children:[le.jsxDEV(hd,{size:14},void 0,!1,void 0,this),le.jsxDEV("span",{className:"text-xs uppercase tracking-wide",children:"Cost"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),le.jsxDEV("div",{className:"text-xl font-semibold text-[var(--text-primary)]",children:["$",s.usage.cost.total.toFixed(4)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),le.jsxDEV("div",{className:"surface p-4",children:[le.jsxDEV("div",{className:"flex items-center gap-2 text-[var(--text-muted)] mb-2",children:[le.jsxDEV(Tl,{size:14},void 0,!1,void 0,this),le.jsxDEV("span",{className:"text-xs uppercase tracking-wide",children:"Premium Reqs"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),le.jsxDEV("div",{className:"text-xl font-semibold text-[var(--text-primary)]",children:(s.usage.premiumRequests??0).toLocaleString()},void 0,!1,void 0,this)]},void 0,!0,void 0,this),le.jsxDEV("div",{className:"surface p-4",children:[le.jsxDEV("div",{className:"flex items-center gap-2 text-[var(--text-muted)] mb-2",children:[le.jsxDEV(yd,{size:14},void 0,!1,void 0,this),le.jsxDEV("span",{className:"text-xs uppercase tracking-wide",children:"Tokens"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),le.jsxDEV("div",{className:"text-xl font-semibold text-[var(--text-primary)]",children:s.usage.totalTokens.toLocaleString()},void 0,!1,void 0,this),le.jsxDEV("div",{className:"text-xs text-[var(--text-muted)] mt-1",children:[s.usage.input.toLocaleString()," in · ",s.usage.output.toLocaleString()," out"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),le.jsxDEV("div",{className:"surface p-4",children:[le.jsxDEV("div",{className:"flex items-center gap-2 text-[var(--text-muted)] mb-2",children:[le.jsxDEV(fd,{size:14},void 0,!1,void 0,this),le.jsxDEV("span",{className:"text-xs uppercase tracking-wide",children:"Duration"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),le.jsxDEV("div",{className:"text-xl font-semibold text-[var(--text-primary)]",children:s.duration?`${(s.duration/1000).toFixed(2)}s`:"-"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),le.jsxDEV("div",{className:"surface p-4",children:[le.jsxDEV("div",{className:"flex items-center gap-2 text-[var(--text-muted)] mb-2",children:[le.jsxDEV(Al,{size:14},void 0,!1,void 0,this),le.jsxDEV("span",{className:"text-xs uppercase tracking-wide",children:"TTFT"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),le.jsxDEV("div",{className:"text-xl font-semibold text-[var(--text-primary)]",children:s.ttft?`${(s.ttft/1000).toFixed(2)}s`:"-"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),s.duration&&s.usage.output>0&&le.jsxDEV("div",{className:"surface p-4",children:[le.jsxDEV("div",{className:"flex items-center justify-between",children:[le.jsxDEV("div",{className:"flex items-center gap-2 text-[var(--text-muted)]",children:[le.jsxDEV(gd,{size:14},void 0,!1,void 0,this),le.jsxDEV("span",{className:"text-xs uppercase tracking-wide",children:"Throughput"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),le.jsxDEV("span",{className:"text-2xl font-bold gradient-text",children:(s.usage.output*1000/s.duration).toFixed(1)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),le.jsxDEV("div",{className:"text-xs text-[var(--text-muted)] mt-1 text-right",children:"tokens/second"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),le.jsxDEV("div",{children:[le.jsxDEV("h3",{className:"text-sm font-semibold text-[var(--text-primary)] mb-3",children:"Output"},void 0,!1,void 0,this),le.jsxDEV("pre",{className:"surface bg-[var(--bg-elevated)] p-4 rounded-[var(--radius-md)] text-sm font-mono text-[var(--text-secondary)] overflow-x-auto",children:JSON.stringify(s.output,null,2)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),le.jsxDEV("div",{children:[le.jsxDEV("h3",{className:"text-sm font-semibold text-[var(--text-primary)] mb-3",children:"Raw Metadata"},void 0,!1,void 0,this),le.jsxDEV("pre",{className:"surface bg-[var(--bg-elevated)] p-4 rounded-[var(--radius-md)] text-xs font-mono text-[var(--text-muted)] overflow-x-auto",children:JSON.stringify(s,null,2)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var ft=be(nt(),1);function Cd({requests:a,onSelect:n,title:s}){return ft.jsxDEV("div",{className:"surface overflow-hidden flex flex-col h-full",children:[ft.jsxDEV("div",{className:"px-5 py-4 border-b border-[var(--border-subtle)]",children:ft.jsxDEV("h3",{className:"text-sm font-semibold text-[var(--text-primary)]",children:s},void 0,!1,void 0,this)},void 0,!1,void 0,this),ft.jsxDEV("div",{className:"overflow-auto flex-1",children:ft.jsxDEV("table",{className:"w-full",children:[ft.jsxDEV("thead",{className:"bg-[var(--bg-elevated)] sticky top-0 z-10",children:ft.jsxDEV("tr",{children:[ft.jsxDEV("th",{className:"text-left py-3 px-4 table-header",children:"Model"},void 0,!1,void 0,this),ft.jsxDEV("th",{className:"text-left py-3 px-4 table-header",children:"Time"},void 0,!1,void 0,this),ft.jsxDEV("th",{className:"text-right py-3 px-4 table-header",children:"Tokens"},void 0,!1,void 0,this),ft.jsxDEV("th",{className:"text-right py-3 px-4 table-header",children:"Cost"},void 0,!1,void 0,this),ft.jsxDEV("th",{className:"text-right py-3 px-4 table-header",children:"Duration"},void 0,!1,void 0,this),ft.jsxDEV("th",{className:"text-center py-3 px-4 table-header",children:"Status"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),ft.jsxDEV("tbody",{children:[a.map((l)=>ft.jsxDEV("tr",{onClick:()=>n(l),className:"table-row cursor-pointer border-b border-[var(--border-subtle)] last:border-b-0",children:[ft.jsxDEV("td",{className:"py-3 px-4",children:[ft.jsxDEV("div",{className:"font-medium text-[var(--text-primary)] text-sm",children:l.model},void 0,!1,void 0,this),ft.jsxDEV("div",{className:"text-xs text-[var(--text-muted)]",children:l.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ft.jsxDEV("td",{className:"py-3 px-4 text-sm text-[var(--text-secondary)]",children:sA(l.timestamp,{addSuffix:!0})},void 0,!1,void 0,this),ft.jsxDEV("td",{className:"py-3 px-4 text-right text-sm text-[var(--text-secondary)] font-mono",children:l.usage.totalTokens.toLocaleString()},void 0,!1,void 0,this),ft.jsxDEV("td",{className:"py-3 px-4 text-right text-sm text-[var(--text-secondary)] font-mono",children:["$",l.usage.cost.total.toFixed(4)]},void 0,!0,void 0,this),ft.jsxDEV("td",{className:"py-3 px-4 text-right text-sm text-[var(--text-secondary)] font-mono",children:l.duration?`${(l.duration/1000).toFixed(1)}s`:"-"},void 0,!1,void 0,this),ft.jsxDEV("td",{className:"py-3 px-4 text-center",children:l.errorMessage?ft.jsxDEV(Si,{size:16,className:"text-[var(--accent-red)] mx-auto"},void 0,!1,void 0,this):ft.jsxDEV(xi,{size:16,className:"text-[var(--accent-green)] mx-auto"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},`${l.sessionFile}-${l.entryId}`,!0,void 0,this)),a.length===0&&ft.jsxDEV("tr",{children:ft.jsxDEV("td",{colSpan:6,className:"py-12 text-center text-[var(--text-muted)] text-sm",children:"No requests found"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var hs=be(nt(),1),hz=new Intl.NumberFormat(void 0,{notation:"compact",maximumFractionDigits:1});function OA(a){return hz.format(a)}function e0(a){return a.toLocaleString()}var Id=(a)=>a.totalInputTokens+a.totalOutputTokens,pz=[{key:"requests",title:"Total Requests",icon:xd,color:"var(--accent-violet)",getValue:(a)=>a.totalRequests.toLocaleString(),getDetail:(a)=>`${a.successfulRequests.toLocaleString()} success · ${a.failedRequests.toLocaleString()} errors`},{key:"cost",title:"Total Cost",icon:Ml,color:"var(--accent-pink)",getValue:(a)=>`$${a.totalCost.toFixed(2)}`,getDetail:(a)=>a.totalRequests>0?`$${(a.totalCost/a.totalRequests).toFixed(4)} avg/req`:"-"},{key:"premiumRequests",title:"Premium Reqs",icon:Tl,color:"var(--accent-amber)",getValue:(a)=>e0(a.totalPremiumRequests),getDetail:(a)=>a.totalRequests>0?`${(a.totalPremiumRequests/a.totalRequests*100).toFixed(1)}% of requests`:"-"},{key:"cache",title:"Cache Rate",icon:pd,color:"var(--accent-cyan)",getValue:(a)=>`${(a.cacheRate*100).toFixed(1)}%`,getDetail:(a)=>`${OA(a.totalCacheReadTokens)} cached tokens`},{key:"inputTokens",title:"Input Tokens",icon:md,color:"var(--accent-violet)",getValue:(a)=>e0(a.totalInputTokens),getDetail:(a)=>Id(a)>0?`${(a.totalInputTokens/Id(a)*100).toFixed(1)}% of prompt+completion`:"-"},{key:"outputTokens",title:"Output Tokens",icon:Sd,color:"var(--accent-pink)",getValue:(a)=>e0(a.totalOutputTokens),getDetail:(a)=>Id(a)>0?`${(a.totalOutputTokens/Id(a)*100).toFixed(1)}% of prompt+completion`:"-"},{key:"errors",title:"Error Rate",icon:bi,color:"var(--accent-red)",getValue:(a)=>`${(a.errorRate*100).toFixed(1)}%`,getDetail:(a)=>`${a.failedRequests.toLocaleString()} failed requests`},{key:"tokens",title:"Tokens/Sec",icon:yi,color:"var(--accent-green)",getValue:(a)=>a.avgTokensPerSecond?.toFixed(1)??"-",getDetail:(a)=>`${OA(Id(a))} total prompt+completion`},{key:"ttft",title:"TTFT",icon:Al,color:"var(--accent-amber)",getValue:(a)=>a.avgTtft?`${(a.avgTtft/1000).toFixed(2)}s`:"-",getDetail:()=>"Time to first token"}];function EA({stats:a}){return hs.jsxDEV("div",{className:"grid grid-cols-2 lg:grid-cols-3 xl:grid-cols-9 gap-4 mb-8",children:pz.map((n)=>{let s=n.icon;return hs.jsxDEV("div",{className:"stat-card group",children:[hs.jsxDEV("div",{className:"flex items-center justify-between mb-3",children:[hs.jsxDEV("span",{className:"text-sm font-medium text-[var(--text-secondary)]",children:n.title},void 0,!1,void 0,this),hs.jsxDEV("div",{className:"p-2 rounded-[var(--radius-sm)] transition-colors",style:{backgroundColor:`${n.color}15`},children:hs.jsxDEV(s,{size:18,style:{color:n.color},className:"transition-transform group-hover:scale-110"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),hs.jsxDEV("div",{className:"text-2xl font-bold text-[var(--text-primary)] mb-1",children:n.getValue(a)},void 0,!1,void 0,this),hs.jsxDEV("div",{className:"text-xs text-[var(--text-muted)] truncate",children:n.getDetail(a)},void 0,!1,void 0,this)]},n.key,!0,void 0,this)})},void 0,!1,void 0,this)}var qe=be(nt(),1);function t0(){let[a,n]=ua.useState(null),[s,l]=ua.useState(null),[r,c]=ua.useState(null),[f,h]=ua.useState(null),[p,y]=ua.useState([]),[b,x]=ua.useState([]),[v,I]=ua.useState(null),[M,D]=ua.useState(!1),[w,z]=ua.useState("overview"),[N,Q]=ua.useState("24h"),Z=ua.useCallback(async()=>{try{let[V,J]=await Promise.all([ZI(50),JI(50)]);y(V),x(J)}catch(V){console.error(V)}},[]),X=ua.useCallback(async()=>{try{if(w==="models"){l(await $I(N));return}if(w==="costs"){c(await QI(N));return}if(w==="behavior"){h(await tw(N));return}if(w==="overview")n(await WI(N))}catch(V){console.error(V)}},[w,N]),oe=async()=>{D(!0);try{await ew(),await Promise.all([X(),Z()])}finally{D(!1)}};return ua.useEffect(()=>{Z();let V=setInterval(Z,30000);return()=>clearInterval(V)},[Z]),ua.useEffect(()=>{X();let V=setInterval(X,30000);return()=>clearInterval(V)},[X]),qe.jsxDEV("div",{className:"min-h-screen",children:qe.jsxDEV("div",{className:"max-w-[1600px] mx-auto px-6 py-6",children:[qe.jsxDEV(_A,{activeTab:w,onTabChange:z,onSync:oe,syncing:M,timeRange:N,onTimeRangeChange:Q},void 0,!1,void 0,this),w==="overview"&&qe.jsxDEV("div",{className:"space-y-6 animate-fade-in",children:[a?qe.jsxDEV(EA,{stats:a.overall},void 0,!1,void 0,this):qe.jsxDEV(nm,{label:"Loading overview..."},void 0,!1,void 0,this),qe.jsxDEV("div",{className:"grid lg:grid-cols-2 gap-6",children:[qe.jsxDEV(Cd,{title:"Recent Requests",requests:p.slice(0,10),onSelect:(V)=>V.id&&I(V.id)},void 0,!1,void 0,this),qe.jsxDEV(Cd,{title:"Recent Errors",requests:b.slice(0,10),onSelect:(V)=>V.id&&I(V.id)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),w==="requests"&&qe.jsxDEV("div",{className:"h-[calc(100vh-140px)] animate-fade-in",children:qe.jsxDEV(Cd,{title:"All Recent Requests",requests:p,onSelect:(V)=>V.id&&I(V.id)},void 0,!1,void 0,this)},void 0,!1,void 0,this),w==="errors"&&qe.jsxDEV("div",{className:"h-[calc(100vh-140px)] animate-fade-in",children:qe.jsxDEV(Cd,{title:"Failed Requests",requests:b,onSelect:(V)=>V.id&&I(V.id)},void 0,!1,void 0,this)},void 0,!1,void 0,this),w==="models"&&qe.jsxDEV("div",{className:"space-y-6 animate-fade-in",children:s?qe.jsxDEV(qe.Fragment,{children:[qe.jsxDEV(MA,{modelSeries:s.modelSeries,timeRange:N},void 0,!1,void 0,this),qe.jsxDEV(RA,{models:s.byModel,performanceSeries:s.modelPerformanceSeries,timeRange:N},void 0,!1,void 0,this)]},void 0,!0,void 0,this):qe.jsxDEV(nm,{label:"Loading models..."},void 0,!1,void 0,this)},void 0,!1,void 0,this),w==="costs"&&qe.jsxDEV("div",{className:"space-y-6 animate-fade-in",children:r?qe.jsxDEV(qe.Fragment,{children:[qe.jsxDEV(AA,{costSeries:r.costSeries},void 0,!1,void 0,this),qe.jsxDEV(TA,{costSeries:r.costSeries},void 0,!1,void 0,this)]},void 0,!0,void 0,this):qe.jsxDEV(nm,{label:"Loading costs..."},void 0,!1,void 0,this)},void 0,!1,void 0,this),w==="behavior"&&qe.jsxDEV("div",{className:"space-y-6 animate-fade-in",children:f?qe.jsxDEV(qe.Fragment,{children:[qe.jsxDEV(LA,{overall:f.overall,behaviorSeries:f.behaviorSeries},void 0,!1,void 0,this),qe.jsxDEV(uA,{behaviorSeries:f.behaviorSeries},void 0,!1,void 0,this),qe.jsxDEV(SA,{models:f.byModel,behaviorSeries:f.behaviorSeries},void 0,!1,void 0,this)]},void 0,!0,void 0,this):qe.jsxDEV(nm,{label:"Loading behavior..."},void 0,!1,void 0,this)},void 0,!1,void 0,this),v!==null&&qe.jsxDEV(kA,{id:v,onClose:()=>I(null)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function nm({label:a}){return qe.jsxDEV("div",{className:"min-h-[180px] flex items-center justify-center",children:qe.jsxDEV("div",{className:"flex items-center gap-3 text-[var(--text-muted)]",children:[qe.jsxDEV("div",{className:"w-5 h-5 border-2 border-[var(--border-default)] border-t-[var(--accent-cyan)] rounded-full spin"},void 0,!1,void 0,this),qe.jsxDEV("span",{className:"text-sm",children:a},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var PA=be(nt(),1),mz=BA.createRoot(document.getElementById("root"));mz.render(PA.jsxDEV(t0,{},void 0,!1,void 0,this));