function Gj(e,t){for(var r=0;r<t.length;r++){const a=t[r];if(typeof a!="string"&&!Array.isArray(a)){for(const u in a)if(u!=="default"&&!(u in e)){const o=Object.getOwnPropertyDescriptor(a,u);o&&Object.defineProperty(e,u,o.get?o:{enumerable:!0,get:()=>a[u]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))a(u);new MutationObserver(u=>{for(const o of u)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&a(s)}).observe(document,{childList:!0,subtree:!0});function r(u){const o={};return u.integrity&&(o.integrity=u.integrity),u.referrerPolicy&&(o.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?o.credentials="include":u.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function a(u){if(u.ep)return;u.ep=!0;const o=r(u);fetch(u.href,o)}})();function qn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Gd={exports:{}},tu={};/**
 * @license React
 * react-jsx-runtime.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Ib;function Kj(){if(Ib)return tu;Ib=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(a,u,o){var s=null;if(o!==void 0&&(s=""+o),u.key!==void 0&&(s=""+u.key),"key"in u){o={};for(var f in u)f!=="key"&&(o[f]=u[f])}else o=u;return u=o.ref,{$$typeof:e,type:a,key:s,ref:u!==void 0?u:null,props:o}}return tu.Fragment=t,tu.jsx=r,tu.jsxs=r,tu}var Xb;function Ij(){return Xb||(Xb=1,Gd.exports=Kj()),Gd.exports}var T=Ij(),Kd={exports:{}},Se={};/**
 * @license React
 * react.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Vb;function Xj(){if(Vb)return Se;Vb=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),s=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),p=Symbol.iterator;function g(N){return N===null||typeof N!="object"?null:(N=p&&N[p]||N["@@iterator"],typeof N=="function"?N:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,w={};function O(N,Z,X){this.props=N,this.context=Z,this.refs=w,this.updater=X||b}O.prototype.isReactComponent={},O.prototype.setState=function(N,Z){if(typeof N!="object"&&typeof N!="function"&&N!=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,N,Z,"setState")},O.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function _(){}_.prototype=O.prototype;function M(N,Z,X){this.props=N,this.context=Z,this.refs=w,this.updater=X||b}var j=M.prototype=new _;j.constructor=M,S(j,O.prototype),j.isPureReactComponent=!0;var k=Array.isArray,D={H:null,A:null,T:null,S:null,V:null},R=Object.prototype.hasOwnProperty;function U(N,Z,X,ne,se,ee){return X=ee.ref,{$$typeof:e,type:N,key:Z,ref:X!==void 0?X:null,props:ee}}function K(N,Z){return U(N.type,Z,void 0,void 0,void 0,N.props)}function J(N){return typeof N=="object"&&N!==null&&N.$$typeof===e}function re(N){var Z={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(X){return Z[X]})}var te=/\/+/g;function ae(N,Z){return typeof N=="object"&&N!==null&&N.key!=null?re(""+N.key):Z.toString(36)}function ge(){}function be(N){switch(N.status){case"fulfilled":return N.value;case"rejected":throw N.reason;default:switch(typeof N.status=="string"?N.then(ge,ge):(N.status="pending",N.then(function(Z){N.status==="pending"&&(N.status="fulfilled",N.value=Z)},function(Z){N.status==="pending"&&(N.status="rejected",N.reason=Z)})),N.status){case"fulfilled":return N.value;case"rejected":throw N.reason}}throw N}function ye(N,Z,X,ne,se){var ee=typeof N;(ee==="undefined"||ee==="boolean")&&(N=null);var ue=!1;if(N===null)ue=!0;else switch(ee){case"bigint":case"string":case"number":ue=!0;break;case"object":switch(N.$$typeof){case e:case t:ue=!0;break;case v:return ue=N._init,ye(ue(N._payload),Z,X,ne,se)}}if(ue)return se=se(N),ue=ne===""?"."+ae(N,0):ne,k(se)?(X="",ue!=null&&(X=ue.replace(te,"$&/")+"/"),ye(se,Z,X,"",function(ie){return ie})):se!=null&&(J(se)&&(se=K(se,X+(se.key==null||N&&N.key===se.key?"":(""+se.key).replace(te,"$&/")+"/")+ue)),Z.push(se)),1;ue=0;var Be=ne===""?".":ne+":";if(k(N))for(var De=0;De<N.length;De++)ne=N[De],ee=Be+ae(ne,De),ue+=ye(ne,Z,X,ee,se);else if(De=g(N),typeof De=="function")for(N=De.call(N),De=0;!(ne=N.next()).done;)ne=ne.value,ee=Be+ae(ne,De++),ue+=ye(ne,Z,X,ee,se);else if(ee==="object"){if(typeof N.then=="function")return ye(be(N),Z,X,ne,se);throw Z=String(N),Error("Objects are not valid as a React child (found: "+(Z==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":Z)+"). If you meant to render a collection of children, use an array instead.")}return ue}function L(N,Z,X){if(N==null)return N;var ne=[],se=0;return ye(N,ne,"","",function(ee){return Z.call(X,ee,se++)}),ne}function V(N){if(N._status===-1){var Z=N._result;Z=Z(),Z.then(function(X){(N._status===0||N._status===-1)&&(N._status=1,N._result=X)},function(X){(N._status===0||N._status===-1)&&(N._status=2,N._result=X)}),N._status===-1&&(N._status=0,N._result=Z)}if(N._status===1)return N._result.default;throw N._result}var F=typeof reportError=="function"?reportError:function(N){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Z=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof N=="object"&&N!==null&&typeof N.message=="string"?String(N.message):String(N),error:N});if(!window.dispatchEvent(Z))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",N);return}console.error(N)};function he(){}return Se.Children={map:L,forEach:function(N,Z,X){L(N,function(){Z.apply(this,arguments)},X)},count:function(N){var Z=0;return L(N,function(){Z++}),Z},toArray:function(N){return L(N,function(Z){return Z})||[]},only:function(N){if(!J(N))throw Error("React.Children.only expected to receive a single React element child.");return N}},Se.Component=O,Se.Fragment=r,Se.Profiler=u,Se.PureComponent=M,Se.StrictMode=a,Se.Suspense=m,Se.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=D,Se.__COMPILER_RUNTIME={__proto__:null,c:function(N){return D.H.useMemoCache(N)}},Se.cache=function(N){return function(){return N.apply(null,arguments)}},Se.cloneElement=function(N,Z,X){if(N==null)throw Error("The argument must be a React element, but you passed "+N+".");var ne=S({},N.props),se=N.key,ee=void 0;if(Z!=null)for(ue in Z.ref!==void 0&&(ee=void 0),Z.key!==void 0&&(se=""+Z.key),Z)!R.call(Z,ue)||ue==="key"||ue==="__self"||ue==="__source"||ue==="ref"&&Z.ref===void 0||(ne[ue]=Z[ue]);var ue=arguments.length-2;if(ue===1)ne.children=X;else if(1<ue){for(var Be=Array(ue),De=0;De<ue;De++)Be[De]=arguments[De+2];ne.children=Be}return U(N.type,se,void 0,void 0,ee,ne)},Se.createContext=function(N){return N={$$typeof:s,_currentValue:N,_currentValue2:N,_threadCount:0,Provider:null,Consumer:null},N.Provider=N,N.Consumer={$$typeof:o,_context:N},N},Se.createElement=function(N,Z,X){var ne,se={},ee=null;if(Z!=null)for(ne in Z.key!==void 0&&(ee=""+Z.key),Z)R.call(Z,ne)&&ne!=="key"&&ne!=="__self"&&ne!=="__source"&&(se[ne]=Z[ne]);var ue=arguments.length-2;if(ue===1)se.children=X;else if(1<ue){for(var Be=Array(ue),De=0;De<ue;De++)Be[De]=arguments[De+2];se.children=Be}if(N&&N.defaultProps)for(ne in ue=N.defaultProps,ue)se[ne]===void 0&&(se[ne]=ue[ne]);return U(N,ee,void 0,void 0,null,se)},Se.createRef=function(){return{current:null}},Se.forwardRef=function(N){return{$$typeof:f,render:N}},Se.isValidElement=J,Se.lazy=function(N){return{$$typeof:v,_payload:{_status:-1,_result:N},_init:V}},Se.memo=function(N,Z){return{$$typeof:h,type:N,compare:Z===void 0?null:Z}},Se.startTransition=function(N){var Z=D.T,X={};D.T=X;try{var ne=N(),se=D.S;se!==null&&se(X,ne),typeof ne=="object"&&ne!==null&&typeof ne.then=="function"&&ne.then(he,F)}catch(ee){F(ee)}finally{D.T=Z}},Se.unstable_useCacheRefresh=function(){return D.H.useCacheRefresh()},Se.use=function(N){return D.H.use(N)},Se.useActionState=function(N,Z,X){return D.H.useActionState(N,Z,X)},Se.useCallback=function(N,Z){return D.H.useCallback(N,Z)},Se.useContext=function(N){return D.H.useContext(N)},Se.useDebugValue=function(){},Se.useDeferredValue=function(N,Z){return D.H.useDeferredValue(N,Z)},Se.useEffect=function(N,Z,X){var ne=D.H;if(typeof X=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return ne.useEffect(N,Z)},Se.useId=function(){return D.H.useId()},Se.useImperativeHandle=function(N,Z,X){return D.H.useImperativeHandle(N,Z,X)},Se.useInsertionEffect=function(N,Z){return D.H.useInsertionEffect(N,Z)},Se.useLayoutEffect=function(N,Z){return D.H.useLayoutEffect(N,Z)},Se.useMemo=function(N,Z){return D.H.useMemo(N,Z)},Se.useOptimistic=function(N,Z){return D.H.useOptimistic(N,Z)},Se.useReducer=function(N,Z,X){return D.H.useReducer(N,Z,X)},Se.useRef=function(N){return D.H.useRef(N)},Se.useState=function(N){return D.H.useState(N)},Se.useSyncExternalStore=function(N,Z,X){return D.H.useSyncExternalStore(N,Z,X)},Se.useTransition=function(){return D.H.useTransition()},Se.version="19.1.1",Se}var Zb;function Zi(){return Zb||(Zb=1,Kd.exports=Xj()),Kd.exports}var E=Zi();const Jw=qn(E),Vj=Gj({__proto__:null,default:Jw},[E]);var Id={exports:{}},nu={},Xd={exports:{}},Vd={};/**
 * @license React
 * scheduler.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Qb;function Zj(){return Qb||(Qb=1,(function(e){function t(L,V){var F=L.length;L.push(V);e:for(;0<F;){var he=F-1>>>1,N=L[he];if(0<u(N,V))L[he]=V,L[F]=N,F=he;else break e}}function r(L){return L.length===0?null:L[0]}function a(L){if(L.length===0)return null;var V=L[0],F=L.pop();if(F!==V){L[0]=F;e:for(var he=0,N=L.length,Z=N>>>1;he<Z;){var X=2*(he+1)-1,ne=L[X],se=X+1,ee=L[se];if(0>u(ne,F))se<N&&0>u(ee,ne)?(L[he]=ee,L[se]=F,he=se):(L[he]=ne,L[X]=F,he=X);else if(se<N&&0>u(ee,F))L[he]=ee,L[se]=F,he=se;else break e}}return V}function u(L,V){var F=L.sortIndex-V.sortIndex;return F!==0?F:L.id-V.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,f=s.now();e.unstable_now=function(){return s.now()-f}}var m=[],h=[],v=1,p=null,g=3,b=!1,S=!1,w=!1,O=!1,_=typeof setTimeout=="function"?setTimeout:null,M=typeof clearTimeout=="function"?clearTimeout:null,j=typeof setImmediate<"u"?setImmediate:null;function k(L){for(var V=r(h);V!==null;){if(V.callback===null)a(h);else if(V.startTime<=L)a(h),V.sortIndex=V.expirationTime,t(m,V);else break;V=r(h)}}function D(L){if(w=!1,k(L),!S)if(r(m)!==null)S=!0,R||(R=!0,ae());else{var V=r(h);V!==null&&ye(D,V.startTime-L)}}var R=!1,U=-1,K=5,J=-1;function re(){return O?!0:!(e.unstable_now()-J<K)}function te(){if(O=!1,R){var L=e.unstable_now();J=L;var V=!0;try{e:{S=!1,w&&(w=!1,M(U),U=-1),b=!0;var F=g;try{t:{for(k(L),p=r(m);p!==null&&!(p.expirationTime>L&&re());){var he=p.callback;if(typeof he=="function"){p.callback=null,g=p.priorityLevel;var N=he(p.expirationTime<=L);if(L=e.unstable_now(),typeof N=="function"){p.callback=N,k(L),V=!0;break t}p===r(m)&&a(m),k(L)}else a(m);p=r(m)}if(p!==null)V=!0;else{var Z=r(h);Z!==null&&ye(D,Z.startTime-L),V=!1}}break e}finally{p=null,g=F,b=!1}V=void 0}}finally{V?ae():R=!1}}}var ae;if(typeof j=="function")ae=function(){j(te)};else if(typeof MessageChannel<"u"){var ge=new MessageChannel,be=ge.port2;ge.port1.onmessage=te,ae=function(){be.postMessage(null)}}else ae=function(){_(te,0)};function ye(L,V){U=_(function(){L(e.unstable_now())},V)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(L){L.callback=null},e.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):K=0<L?Math.floor(1e3/L):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_next=function(L){switch(g){case 1:case 2:case 3:var V=3;break;default:V=g}var F=g;g=V;try{return L()}finally{g=F}},e.unstable_requestPaint=function(){O=!0},e.unstable_runWithPriority=function(L,V){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var F=g;g=L;try{return V()}finally{g=F}},e.unstable_scheduleCallback=function(L,V,F){var he=e.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?he+F:he):F=he,L){case 1:var N=-1;break;case 2:N=250;break;case 5:N=1073741823;break;case 4:N=1e4;break;default:N=5e3}return N=F+N,L={id:v++,callback:V,priorityLevel:L,startTime:F,expirationTime:N,sortIndex:-1},F>he?(L.sortIndex=F,t(h,L),r(m)===null&&L===r(h)&&(w?(M(U),U=-1):w=!0,ye(D,F-he))):(L.sortIndex=N,t(m,L),S||b||(S=!0,R||(R=!0,ae()))),L},e.unstable_shouldYield=re,e.unstable_wrapCallback=function(L){var V=g;return function(){var F=g;g=V;try{return L.apply(this,arguments)}finally{g=F}}}})(Vd)),Vd}var Wb;function Qj(){return Wb||(Wb=1,Xd.exports=Zj()),Xd.exports}var Zd={exports:{}},Nt={};/**
 * @license React
 * react-dom.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Fb;function Wj(){if(Fb)return Nt;Fb=1;var e=Zi();function t(m){var h="https://react.dev/errors/"+m;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)h+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+m+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var a={d:{f:r,r:function(){throw Error(t(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},u=Symbol.for("react.portal");function o(m,h,v){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:p==null?null:""+p,children:m,containerInfo:h,implementation:v}}var s=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(m,h){if(m==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return Nt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,Nt.createPortal=function(m,h){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(t(299));return o(m,h,null,v)},Nt.flushSync=function(m){var h=s.T,v=a.p;try{if(s.T=null,a.p=2,m)return m()}finally{s.T=h,a.p=v,a.d.f()}},Nt.preconnect=function(m,h){typeof m=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,a.d.C(m,h))},Nt.prefetchDNS=function(m){typeof m=="string"&&a.d.D(m)},Nt.preinit=function(m,h){if(typeof m=="string"&&h&&typeof h.as=="string"){var v=h.as,p=f(v,h.crossOrigin),g=typeof h.integrity=="string"?h.integrity:void 0,b=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;v==="style"?a.d.S(m,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:p,integrity:g,fetchPriority:b}):v==="script"&&a.d.X(m,{crossOrigin:p,integrity:g,fetchPriority:b,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},Nt.preinitModule=function(m,h){if(typeof m=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var v=f(h.as,h.crossOrigin);a.d.M(m,{crossOrigin:v,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&a.d.M(m)},Nt.preload=function(m,h){if(typeof m=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var v=h.as,p=f(v,h.crossOrigin);a.d.L(m,v,{crossOrigin:p,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},Nt.preloadModule=function(m,h){if(typeof m=="string")if(h){var v=f(h.as,h.crossOrigin);a.d.m(m,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:v,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else a.d.m(m)},Nt.requestFormReset=function(m){a.d.r(m)},Nt.unstable_batchedUpdates=function(m,h){return m(h)},Nt.useFormState=function(m,h,v){return s.H.useFormState(m,h,v)},Nt.useFormStatus=function(){return s.H.useHostTransitionStatus()},Nt.version="19.1.1",Nt}var Jb;function eO(){if(Jb)return Zd.exports;Jb=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Zd.exports=Wj(),Zd.exports}/**
 * @license React
 * react-dom-client.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var e1;function Fj(){if(e1)return nu;e1=1;var e=Qj(),t=Zi(),r=eO();function a(n){var i="https://react.dev/errors/"+n;if(1<arguments.length){i+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)i+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+n+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function o(n){var i=n,l=n;if(n.alternate)for(;i.return;)i=i.return;else{n=i;do i=n,(i.flags&4098)!==0&&(l=i.return),n=i.return;while(n)}return i.tag===3?l:null}function s(n){if(n.tag===13){var i=n.memoizedState;if(i===null&&(n=n.alternate,n!==null&&(i=n.memoizedState)),i!==null)return i.dehydrated}return null}function f(n){if(o(n)!==n)throw Error(a(188))}function m(n){var i=n.alternate;if(!i){if(i=o(n),i===null)throw Error(a(188));return i!==n?null:n}for(var l=n,c=i;;){var d=l.return;if(d===null)break;var y=d.alternate;if(y===null){if(c=d.return,c!==null){l=c;continue}break}if(d.child===y.child){for(y=d.child;y;){if(y===l)return f(d),n;if(y===c)return f(d),i;y=y.sibling}throw Error(a(188))}if(l.return!==c.return)l=d,c=y;else{for(var x=!1,A=d.child;A;){if(A===l){x=!0,l=d,c=y;break}if(A===c){x=!0,c=d,l=y;break}A=A.sibling}if(!x){for(A=y.child;A;){if(A===l){x=!0,l=y,c=d;break}if(A===c){x=!0,c=y,l=d;break}A=A.sibling}if(!x)throw Error(a(189))}}if(l.alternate!==c)throw Error(a(190))}if(l.tag!==3)throw Error(a(188));return l.stateNode.current===l?n:i}function h(n){var i=n.tag;if(i===5||i===26||i===27||i===6)return n;for(n=n.child;n!==null;){if(i=h(n),i!==null)return i;n=n.sibling}return null}var v=Object.assign,p=Symbol.for("react.element"),g=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),_=Symbol.for("react.provider"),M=Symbol.for("react.consumer"),j=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),U=Symbol.for("react.memo"),K=Symbol.for("react.lazy"),J=Symbol.for("react.activity"),re=Symbol.for("react.memo_cache_sentinel"),te=Symbol.iterator;function ae(n){return n===null||typeof n!="object"?null:(n=te&&n[te]||n["@@iterator"],typeof n=="function"?n:null)}var ge=Symbol.for("react.client.reference");function be(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===ge?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case S:return"Fragment";case O:return"Profiler";case w:return"StrictMode";case D:return"Suspense";case R:return"SuspenseList";case J:return"Activity"}if(typeof n=="object")switch(n.$$typeof){case b:return"Portal";case j:return(n.displayName||"Context")+".Provider";case M:return(n._context.displayName||"Context")+".Consumer";case k:var i=n.render;return n=n.displayName,n||(n=i.displayName||i.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case U:return i=n.displayName||null,i!==null?i:be(n.type)||"Memo";case K:i=n._payload,n=n._init;try{return be(n(i))}catch{}}return null}var ye=Array.isArray,L=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F={pending:!1,data:null,method:null,action:null},he=[],N=-1;function Z(n){return{current:n}}function X(n){0>N||(n.current=he[N],he[N]=null,N--)}function ne(n,i){N++,he[N]=n.current,n.current=i}var se=Z(null),ee=Z(null),ue=Z(null),Be=Z(null);function De(n,i){switch(ne(ue,i),ne(ee,n),ne(se,null),i.nodeType){case 9:case 11:n=(n=i.documentElement)&&(n=n.namespaceURI)?xb(n):0;break;default:if(n=i.tagName,i=i.namespaceURI)i=xb(i),n=Sb(i,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}X(se),ne(se,n)}function ie(){X(se),X(ee),X(ue)}function xe(n){n.memoizedState!==null&&ne(Be,n);var i=se.current,l=Sb(i,n.type);i!==l&&(ne(ee,n),ne(se,l))}function Ae(n){ee.current===n&&(X(se),X(ee)),Be.current===n&&(X(Be),Ql._currentValue=F)}var W=Object.prototype.hasOwnProperty,ht=e.unstable_scheduleCallback,Ne=e.unstable_cancelCallback,zt=e.unstable_shouldYield,Bt=e.unstable_requestPaint,vt=e.unstable_now,$u=e.unstable_getCurrentPriorityLevel,ep=e.unstable_ImmediatePriority,tp=e.unstable_UserBlockingPriority,Hu=e.unstable_NormalPriority,ET=e.unstable_LowPriority,np=e.unstable_IdlePriority,TT=e.log,_T=e.unstable_setDisableYieldValue,al=null,Qt=null;function _r(n){if(typeof TT=="function"&&_T(n),Qt&&typeof Qt.setStrictMode=="function")try{Qt.setStrictMode(al,n)}catch{}}var Wt=Math.clz32?Math.clz32:CT,jT=Math.log,MT=Math.LN2;function CT(n){return n>>>=0,n===0?32:31-(jT(n)/MT|0)|0}var Yu=256,Gu=4194304;function ca(n){var i=n&42;if(i!==0)return i;switch(n&-n){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:case 262144:case 524288:case 1048576:case 2097152:return n&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function Ku(n,i,l){var c=n.pendingLanes;if(c===0)return 0;var d=0,y=n.suspendedLanes,x=n.pingedLanes;n=n.warmLanes;var A=c&134217727;return A!==0?(c=A&~y,c!==0?d=ca(c):(x&=A,x!==0?d=ca(x):l||(l=A&~n,l!==0&&(d=ca(l))))):(A=c&~y,A!==0?d=ca(A):x!==0?d=ca(x):l||(l=c&~n,l!==0&&(d=ca(l)))),d===0?0:i!==0&&i!==d&&(i&y)===0&&(y=d&-d,l=i&-i,y>=l||y===32&&(l&4194048)!==0)?i:d}function il(n,i){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&i)===0}function DT(n,i){switch(n){case 1:case 2:case 4:case 8:case 64:return i+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 i+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function rp(){var n=Yu;return Yu<<=1,(Yu&4194048)===0&&(Yu=256),n}function ap(){var n=Gu;return Gu<<=1,(Gu&62914560)===0&&(Gu=4194304),n}function Ns(n){for(var i=[],l=0;31>l;l++)i.push(n);return i}function ll(n,i){n.pendingLanes|=i,i!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function NT(n,i,l,c,d,y){var x=n.pendingLanes;n.pendingLanes=l,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=l,n.entangledLanes&=l,n.errorRecoveryDisabledLanes&=l,n.shellSuspendCounter=0;var A=n.entanglements,C=n.expirationTimes,q=n.hiddenUpdates;for(l=x&~l;0<l;){var G=31-Wt(l),Q=1<<G;A[G]=0,C[G]=-1;var $=q[G];if($!==null)for(q[G]=null,G=0;G<$.length;G++){var H=$[G];H!==null&&(H.lane&=-536870913)}l&=~Q}c!==0&&ip(n,c,0),y!==0&&d===0&&n.tag!==0&&(n.suspendedLanes|=y&~(x&~i))}function ip(n,i,l){n.pendingLanes|=i,n.suspendedLanes&=~i;var c=31-Wt(i);n.entangledLanes|=i,n.entanglements[c]=n.entanglements[c]|1073741824|l&4194090}function lp(n,i){var l=n.entangledLanes|=i;for(n=n.entanglements;l;){var c=31-Wt(l),d=1<<c;d&i|n[c]&i&&(n[c]|=i),l&=~d}}function Ps(n){switch(n){case 2:n=1;break;case 8:n=4;break;case 32:n=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:n=128;break;case 268435456:n=134217728;break;default:n=0}return n}function Rs(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}function up(){var n=V.p;return n!==0?n:(n=window.event,n===void 0?32:qb(n.type))}function PT(n,i){var l=V.p;try{return V.p=n,i()}finally{V.p=l}}var jr=Math.random().toString(36).slice(2),Ct="__reactFiber$"+jr,$t="__reactProps$"+jr,Va="__reactContainer$"+jr,ks="__reactEvents$"+jr,RT="__reactListeners$"+jr,kT="__reactHandles$"+jr,op="__reactResources$"+jr,ul="__reactMarker$"+jr;function zs(n){delete n[Ct],delete n[$t],delete n[ks],delete n[RT],delete n[kT]}function Za(n){var i=n[Ct];if(i)return i;for(var l=n.parentNode;l;){if(i=l[Va]||l[Ct]){if(l=i.alternate,i.child!==null||l!==null&&l.child!==null)for(n=Eb(n);n!==null;){if(l=n[Ct])return l;n=Eb(n)}return i}n=l,l=n.parentNode}return null}function Qa(n){if(n=n[Ct]||n[Va]){var i=n.tag;if(i===5||i===6||i===13||i===26||i===27||i===3)return n}return null}function ol(n){var i=n.tag;if(i===5||i===26||i===27||i===6)return n.stateNode;throw Error(a(33))}function Wa(n){var i=n[op];return i||(i=n[op]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function mt(n){n[ul]=!0}var cp=new Set,sp={};function sa(n,i){Fa(n,i),Fa(n+"Capture",i)}function Fa(n,i){for(sp[n]=i,n=0;n<i.length;n++)cp.add(i[n])}var zT=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]*$"),fp={},dp={};function BT(n){return W.call(dp,n)?!0:W.call(fp,n)?!1:zT.test(n)?dp[n]=!0:(fp[n]=!0,!1)}function Iu(n,i,l){if(BT(i))if(l===null)n.removeAttribute(i);else{switch(typeof l){case"undefined":case"function":case"symbol":n.removeAttribute(i);return;case"boolean":var c=i.toLowerCase().slice(0,5);if(c!=="data-"&&c!=="aria-"){n.removeAttribute(i);return}}n.setAttribute(i,""+l)}}function Xu(n,i,l){if(l===null)n.removeAttribute(i);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(i);return}n.setAttribute(i,""+l)}}function Wn(n,i,l,c){if(c===null)n.removeAttribute(l);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(l);return}n.setAttributeNS(i,l,""+c)}}var Bs,hp;function Ja(n){if(Bs===void 0)try{throw Error()}catch(l){var i=l.stack.trim().match(/\n( *(at )?)/);Bs=i&&i[1]||"",hp=-1<l.stack.indexOf(`
    at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Bs+n+hp}var Ls=!1;function Us(n,i){if(!n||Ls)return"";Ls=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var c={DetermineComponentFrameRoot:function(){try{if(i){var Q=function(){throw Error()};if(Object.defineProperty(Q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Q,[])}catch(H){var $=H}Reflect.construct(n,[],Q)}else{try{Q.call()}catch(H){$=H}n.call(Q.prototype)}}else{try{throw Error()}catch(H){$=H}(Q=n())&&typeof Q.catch=="function"&&Q.catch(function(){})}}catch(H){if(H&&$&&typeof H.stack=="string")return[H.stack,$.stack]}return[null,null]}};c.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var d=Object.getOwnPropertyDescriptor(c.DetermineComponentFrameRoot,"name");d&&d.configurable&&Object.defineProperty(c.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var y=c.DetermineComponentFrameRoot(),x=y[0],A=y[1];if(x&&A){var C=x.split(`
`),q=A.split(`
`);for(d=c=0;c<C.length&&!C[c].includes("DetermineComponentFrameRoot");)c++;for(;d<q.length&&!q[d].includes("DetermineComponentFrameRoot");)d++;if(c===C.length||d===q.length)for(c=C.length-1,d=q.length-1;1<=c&&0<=d&&C[c]!==q[d];)d--;for(;1<=c&&0<=d;c--,d--)if(C[c]!==q[d]){if(c!==1||d!==1)do if(c--,d--,0>d||C[c]!==q[d]){var G=`
`+C[c].replace(" at new "," at ");return n.displayName&&G.includes("<anonymous>")&&(G=G.replace("<anonymous>",n.displayName)),G}while(1<=c&&0<=d);break}}}finally{Ls=!1,Error.prepareStackTrace=l}return(l=n?n.displayName||n.name:"")?Ja(l):""}function LT(n){switch(n.tag){case 26:case 27:case 5:return Ja(n.type);case 16:return Ja("Lazy");case 13:return Ja("Suspense");case 19:return Ja("SuspenseList");case 0:case 15:return Us(n.type,!1);case 11:return Us(n.type.render,!1);case 1:return Us(n.type,!0);case 31:return Ja("Activity");default:return""}}function vp(n){try{var i="";do i+=LT(n),n=n.return;while(n);return i}catch(l){return`
Error generating stack: `+l.message+`
`+l.stack}}function yn(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function mp(n){var i=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function UT(n){var i=mp(n)?"checked":"value",l=Object.getOwnPropertyDescriptor(n.constructor.prototype,i),c=""+n[i];if(!n.hasOwnProperty(i)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var d=l.get,y=l.set;return Object.defineProperty(n,i,{configurable:!0,get:function(){return d.call(this)},set:function(x){c=""+x,y.call(this,x)}}),Object.defineProperty(n,i,{enumerable:l.enumerable}),{getValue:function(){return c},setValue:function(x){c=""+x},stopTracking:function(){n._valueTracker=null,delete n[i]}}}}function Vu(n){n._valueTracker||(n._valueTracker=UT(n))}function yp(n){if(!n)return!1;var i=n._valueTracker;if(!i)return!0;var l=i.getValue(),c="";return n&&(c=mp(n)?n.checked?"true":"false":n.value),n=c,n!==l?(i.setValue(n),!0):!1}function Zu(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var qT=/[\n"\\]/g;function pn(n){return n.replace(qT,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}function qs(n,i,l,c,d,y,x,A){n.name="",x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?n.type=x:n.removeAttribute("type"),i!=null?x==="number"?(i===0&&n.value===""||n.value!=i)&&(n.value=""+yn(i)):n.value!==""+yn(i)&&(n.value=""+yn(i)):x!=="submit"&&x!=="reset"||n.removeAttribute("value"),i!=null?$s(n,x,yn(i)):l!=null?$s(n,x,yn(l)):c!=null&&n.removeAttribute("value"),d==null&&y!=null&&(n.defaultChecked=!!y),d!=null&&(n.checked=d&&typeof d!="function"&&typeof d!="symbol"),A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"?n.name=""+yn(A):n.removeAttribute("name")}function pp(n,i,l,c,d,y,x,A){if(y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(n.type=y),i!=null||l!=null){if(!(y!=="submit"&&y!=="reset"||i!=null))return;l=l!=null?""+yn(l):"",i=i!=null?""+yn(i):l,A||i===n.value||(n.value=i),n.defaultValue=i}c=c??d,c=typeof c!="function"&&typeof c!="symbol"&&!!c,n.checked=A?n.checked:!!c,n.defaultChecked=!!c,x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(n.name=x)}function $s(n,i,l){i==="number"&&Zu(n.ownerDocument)===n||n.defaultValue===""+l||(n.defaultValue=""+l)}function ei(n,i,l,c){if(n=n.options,i){i={};for(var d=0;d<l.length;d++)i["$"+l[d]]=!0;for(l=0;l<n.length;l++)d=i.hasOwnProperty("$"+n[l].value),n[l].selected!==d&&(n[l].selected=d),d&&c&&(n[l].defaultSelected=!0)}else{for(l=""+yn(l),i=null,d=0;d<n.length;d++){if(n[d].value===l){n[d].selected=!0,c&&(n[d].defaultSelected=!0);return}i!==null||n[d].disabled||(i=n[d])}i!==null&&(i.selected=!0)}}function gp(n,i,l){if(i!=null&&(i=""+yn(i),i!==n.value&&(n.value=i),l==null)){n.defaultValue!==i&&(n.defaultValue=i);return}n.defaultValue=l!=null?""+yn(l):""}function bp(n,i,l,c){if(i==null){if(c!=null){if(l!=null)throw Error(a(92));if(ye(c)){if(1<c.length)throw Error(a(93));c=c[0]}l=c}l==null&&(l=""),i=l}l=yn(i),n.defaultValue=l,c=n.textContent,c===l&&c!==""&&c!==null&&(n.value=c)}function ti(n,i){if(i){var l=n.firstChild;if(l&&l===n.lastChild&&l.nodeType===3){l.nodeValue=i;return}}n.textContent=i}var $T=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(" "));function xp(n,i,l){var c=i.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?c?n.setProperty(i,""):i==="float"?n.cssFloat="":n[i]="":c?n.setProperty(i,l):typeof l!="number"||l===0||$T.has(i)?i==="float"?n.cssFloat=l:n[i]=(""+l).trim():n[i]=l+"px"}function Sp(n,i,l){if(i!=null&&typeof i!="object")throw Error(a(62));if(n=n.style,l!=null){for(var c in l)!l.hasOwnProperty(c)||i!=null&&i.hasOwnProperty(c)||(c.indexOf("--")===0?n.setProperty(c,""):c==="float"?n.cssFloat="":n[c]="");for(var d in i)c=i[d],i.hasOwnProperty(d)&&l[d]!==c&&xp(n,d,c)}else for(var y in i)i.hasOwnProperty(y)&&xp(n,y,i[y])}function Hs(n){if(n.indexOf("-")===-1)return!1;switch(n){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}}var HT=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"]]),YT=/^[\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;function Qu(n){return YT.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}var Ys=null;function Gs(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var ni=null,ri=null;function wp(n){var i=Qa(n);if(i&&(n=i.stateNode)){var l=n[$t]||null;e:switch(n=i.stateNode,i.type){case"input":if(qs(n,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),i=l.name,l.type==="radio"&&i!=null){for(l=n;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+pn(""+i)+'"][type="radio"]'),i=0;i<l.length;i++){var c=l[i];if(c!==n&&c.form===n.form){var d=c[$t]||null;if(!d)throw Error(a(90));qs(c,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name)}}for(i=0;i<l.length;i++)c=l[i],c.form===n.form&&yp(c)}break e;case"textarea":gp(n,l.value,l.defaultValue);break e;case"select":i=l.value,i!=null&&ei(n,!!l.multiple,i,!1)}}}var Ks=!1;function Op(n,i,l){if(Ks)return n(i,l);Ks=!0;try{var c=n(i);return c}finally{if(Ks=!1,(ni!==null||ri!==null)&&(zo(),ni&&(i=ni,n=ri,ri=ni=null,wp(i),n)))for(i=0;i<n.length;i++)wp(n[i])}}function cl(n,i){var l=n.stateNode;if(l===null)return null;var c=l[$t]||null;if(c===null)return null;l=c[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(n=n.type,c=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!c;break e;default:n=!1}if(n)return null;if(l&&typeof l!="function")throw Error(a(231,i,typeof l));return l}var Fn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Is=!1;if(Fn)try{var sl={};Object.defineProperty(sl,"passive",{get:function(){Is=!0}}),window.addEventListener("test",sl,sl),window.removeEventListener("test",sl,sl)}catch{Is=!1}var Mr=null,Xs=null,Wu=null;function Ap(){if(Wu)return Wu;var n,i=Xs,l=i.length,c,d="value"in Mr?Mr.value:Mr.textContent,y=d.length;for(n=0;n<l&&i[n]===d[n];n++);var x=l-n;for(c=1;c<=x&&i[l-c]===d[y-c];c++);return Wu=d.slice(n,1<c?1-c:void 0)}function Fu(n){var i=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&i===13&&(n=13)):n=i,n===10&&(n=13),32<=n||n===13?n:0}function Ju(){return!0}function Ep(){return!1}function Ht(n){function i(l,c,d,y,x){this._reactName=l,this._targetInst=d,this.type=c,this.nativeEvent=y,this.target=x,this.currentTarget=null;for(var A in n)n.hasOwnProperty(A)&&(l=n[A],this[A]=l?l(y):y[A]);return this.isDefaultPrevented=(y.defaultPrevented!=null?y.defaultPrevented:y.returnValue===!1)?Ju:Ep,this.isPropagationStopped=Ep,this}return v(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Ju)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Ju)},persist:function(){},isPersistent:Ju}),i}var fa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},eo=Ht(fa),fl=v({},fa,{view:0,detail:0}),GT=Ht(fl),Vs,Zs,dl,to=v({},fl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ws,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==dl&&(dl&&n.type==="mousemove"?(Vs=n.screenX-dl.screenX,Zs=n.screenY-dl.screenY):Zs=Vs=0,dl=n),Vs)},movementY:function(n){return"movementY"in n?n.movementY:Zs}}),Tp=Ht(to),KT=v({},to,{dataTransfer:0}),IT=Ht(KT),XT=v({},fl,{relatedTarget:0}),Qs=Ht(XT),VT=v({},fa,{animationName:0,elapsedTime:0,pseudoElement:0}),ZT=Ht(VT),QT=v({},fa,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),WT=Ht(QT),FT=v({},fa,{data:0}),_p=Ht(FT),JT={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},e_={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"},t_={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function n_(n){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(n):(n=t_[n])?!!i[n]:!1}function Ws(){return n_}var r_=v({},fl,{key:function(n){if(n.key){var i=JT[n.key]||n.key;if(i!=="Unidentified")return i}return n.type==="keypress"?(n=Fu(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?e_[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ws,charCode:function(n){return n.type==="keypress"?Fu(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?Fu(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),a_=Ht(r_),i_=v({},to,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),jp=Ht(i_),l_=v({},fl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ws}),u_=Ht(l_),o_=v({},fa,{propertyName:0,elapsedTime:0,pseudoElement:0}),c_=Ht(o_),s_=v({},to,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),f_=Ht(s_),d_=v({},fa,{newState:0,oldState:0}),h_=Ht(d_),v_=[9,13,27,32],Fs=Fn&&"CompositionEvent"in window,hl=null;Fn&&"documentMode"in document&&(hl=document.documentMode);var m_=Fn&&"TextEvent"in window&&!hl,Mp=Fn&&(!Fs||hl&&8<hl&&11>=hl),Cp=" ",Dp=!1;function Np(n,i){switch(n){case"keyup":return v_.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Pp(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var ai=!1;function y_(n,i){switch(n){case"compositionend":return Pp(i);case"keypress":return i.which!==32?null:(Dp=!0,Cp);case"textInput":return n=i.data,n===Cp&&Dp?null:n;default:return null}}function p_(n,i){if(ai)return n==="compositionend"||!Fs&&Np(n,i)?(n=Ap(),Wu=Xs=Mr=null,ai=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return Mp&&i.locale!=="ko"?null:i.data;default:return null}}var g_={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};function Rp(n){var i=n&&n.nodeName&&n.nodeName.toLowerCase();return i==="input"?!!g_[n.type]:i==="textarea"}function kp(n,i,l,c){ni?ri?ri.push(c):ri=[c]:ni=c,i=Ho(i,"onChange"),0<i.length&&(l=new eo("onChange","change",null,l,c),n.push({event:l,listeners:i}))}var vl=null,ml=null;function b_(n){mb(n,0)}function no(n){var i=ol(n);if(yp(i))return n}function zp(n,i){if(n==="change")return i}var Bp=!1;if(Fn){var Js;if(Fn){var ef="oninput"in document;if(!ef){var Lp=document.createElement("div");Lp.setAttribute("oninput","return;"),ef=typeof Lp.oninput=="function"}Js=ef}else Js=!1;Bp=Js&&(!document.documentMode||9<document.documentMode)}function Up(){vl&&(vl.detachEvent("onpropertychange",qp),ml=vl=null)}function qp(n){if(n.propertyName==="value"&&no(ml)){var i=[];kp(i,ml,n,Gs(n)),Op(b_,i)}}function x_(n,i,l){n==="focusin"?(Up(),vl=i,ml=l,vl.attachEvent("onpropertychange",qp)):n==="focusout"&&Up()}function S_(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return no(ml)}function w_(n,i){if(n==="click")return no(i)}function O_(n,i){if(n==="input"||n==="change")return no(i)}function A_(n,i){return n===i&&(n!==0||1/n===1/i)||n!==n&&i!==i}var Ft=typeof Object.is=="function"?Object.is:A_;function yl(n,i){if(Ft(n,i))return!0;if(typeof n!="object"||n===null||typeof i!="object"||i===null)return!1;var l=Object.keys(n),c=Object.keys(i);if(l.length!==c.length)return!1;for(c=0;c<l.length;c++){var d=l[c];if(!W.call(i,d)||!Ft(n[d],i[d]))return!1}return!0}function $p(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function Hp(n,i){var l=$p(n);n=0;for(var c;l;){if(l.nodeType===3){if(c=n+l.textContent.length,n<=i&&c>=i)return{node:l,offset:i-n};n=c}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=$p(l)}}function Yp(n,i){return n&&i?n===i?!0:n&&n.nodeType===3?!1:i&&i.nodeType===3?Yp(n,i.parentNode):"contains"in n?n.contains(i):n.compareDocumentPosition?!!(n.compareDocumentPosition(i)&16):!1:!1}function Gp(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var i=Zu(n.document);i instanceof n.HTMLIFrameElement;){try{var l=typeof i.contentWindow.location.href=="string"}catch{l=!1}if(l)n=i.contentWindow;else break;i=Zu(n.document)}return i}function tf(n){var i=n&&n.nodeName&&n.nodeName.toLowerCase();return i&&(i==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||i==="textarea"||n.contentEditable==="true")}var E_=Fn&&"documentMode"in document&&11>=document.documentMode,ii=null,nf=null,pl=null,rf=!1;function Kp(n,i,l){var c=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;rf||ii==null||ii!==Zu(c)||(c=ii,"selectionStart"in c&&tf(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),pl&&yl(pl,c)||(pl=c,c=Ho(nf,"onSelect"),0<c.length&&(i=new eo("onSelect","select",null,i,l),n.push({event:i,listeners:c}),i.target=ii)))}function da(n,i){var l={};return l[n.toLowerCase()]=i.toLowerCase(),l["Webkit"+n]="webkit"+i,l["Moz"+n]="moz"+i,l}var li={animationend:da("Animation","AnimationEnd"),animationiteration:da("Animation","AnimationIteration"),animationstart:da("Animation","AnimationStart"),transitionrun:da("Transition","TransitionRun"),transitionstart:da("Transition","TransitionStart"),transitioncancel:da("Transition","TransitionCancel"),transitionend:da("Transition","TransitionEnd")},af={},Ip={};Fn&&(Ip=document.createElement("div").style,"AnimationEvent"in window||(delete li.animationend.animation,delete li.animationiteration.animation,delete li.animationstart.animation),"TransitionEvent"in window||delete li.transitionend.transition);function ha(n){if(af[n])return af[n];if(!li[n])return n;var i=li[n],l;for(l in i)if(i.hasOwnProperty(l)&&l in Ip)return af[n]=i[l];return n}var Xp=ha("animationend"),Vp=ha("animationiteration"),Zp=ha("animationstart"),T_=ha("transitionrun"),__=ha("transitionstart"),j_=ha("transitioncancel"),Qp=ha("transitionend"),Wp=new Map,lf="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(" ");lf.push("scrollEnd");function Rn(n,i){Wp.set(n,i),sa(i,[n])}var Fp=new WeakMap;function gn(n,i){if(typeof n=="object"&&n!==null){var l=Fp.get(n);return l!==void 0?l:(i={value:n,source:i,stack:vp(i)},Fp.set(n,i),i)}return{value:n,source:i,stack:vp(i)}}var bn=[],ui=0,uf=0;function ro(){for(var n=ui,i=uf=ui=0;i<n;){var l=bn[i];bn[i++]=null;var c=bn[i];bn[i++]=null;var d=bn[i];bn[i++]=null;var y=bn[i];if(bn[i++]=null,c!==null&&d!==null){var x=c.pending;x===null?d.next=d:(d.next=x.next,x.next=d),c.pending=d}y!==0&&Jp(l,d,y)}}function ao(n,i,l,c){bn[ui++]=n,bn[ui++]=i,bn[ui++]=l,bn[ui++]=c,uf|=c,n.lanes|=c,n=n.alternate,n!==null&&(n.lanes|=c)}function of(n,i,l,c){return ao(n,i,l,c),io(n)}function oi(n,i){return ao(n,null,null,i),io(n)}function Jp(n,i,l){n.lanes|=l;var c=n.alternate;c!==null&&(c.lanes|=l);for(var d=!1,y=n.return;y!==null;)y.childLanes|=l,c=y.alternate,c!==null&&(c.childLanes|=l),y.tag===22&&(n=y.stateNode,n===null||n._visibility&1||(d=!0)),n=y,y=y.return;return n.tag===3?(y=n.stateNode,d&&i!==null&&(d=31-Wt(l),n=y.hiddenUpdates,c=n[d],c===null?n[d]=[i]:c.push(i),i.lane=l|536870912),y):null}function io(n){if(50<Hl)throw Hl=0,vd=null,Error(a(185));for(var i=n.return;i!==null;)n=i,i=n.return;return n.tag===3?n.stateNode:null}var ci={};function M_(n,i,l,c){this.tag=n,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Jt(n,i,l,c){return new M_(n,i,l,c)}function cf(n){return n=n.prototype,!(!n||!n.isReactComponent)}function Jn(n,i){var l=n.alternate;return l===null?(l=Jt(n.tag,i,n.key,n.mode),l.elementType=n.elementType,l.type=n.type,l.stateNode=n.stateNode,l.alternate=n,n.alternate=l):(l.pendingProps=i,l.type=n.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=n.flags&65011712,l.childLanes=n.childLanes,l.lanes=n.lanes,l.child=n.child,l.memoizedProps=n.memoizedProps,l.memoizedState=n.memoizedState,l.updateQueue=n.updateQueue,i=n.dependencies,l.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},l.sibling=n.sibling,l.index=n.index,l.ref=n.ref,l.refCleanup=n.refCleanup,l}function eg(n,i){n.flags&=65011714;var l=n.alternate;return l===null?(n.childLanes=0,n.lanes=i,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=l.childLanes,n.lanes=l.lanes,n.child=l.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=l.memoizedProps,n.memoizedState=l.memoizedState,n.updateQueue=l.updateQueue,n.type=l.type,i=l.dependencies,n.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),n}function lo(n,i,l,c,d,y){var x=0;if(c=n,typeof n=="function")cf(n)&&(x=1);else if(typeof n=="string")x=Dj(n,l,se.current)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(n){case J:return n=Jt(31,l,i,d),n.elementType=J,n.lanes=y,n;case S:return va(l.children,d,y,i);case w:x=8,d|=24;break;case O:return n=Jt(12,l,i,d|2),n.elementType=O,n.lanes=y,n;case D:return n=Jt(13,l,i,d),n.elementType=D,n.lanes=y,n;case R:return n=Jt(19,l,i,d),n.elementType=R,n.lanes=y,n;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case _:case j:x=10;break e;case M:x=9;break e;case k:x=11;break e;case U:x=14;break e;case K:x=16,c=null;break e}x=29,l=Error(a(130,n===null?"null":typeof n,"")),c=null}return i=Jt(x,l,i,d),i.elementType=n,i.type=c,i.lanes=y,i}function va(n,i,l,c){return n=Jt(7,n,c,i),n.lanes=l,n}function sf(n,i,l){return n=Jt(6,n,null,i),n.lanes=l,n}function ff(n,i,l){return i=Jt(4,n.children!==null?n.children:[],n.key,i),i.lanes=l,i.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},i}var si=[],fi=0,uo=null,oo=0,xn=[],Sn=0,ma=null,er=1,tr="";function ya(n,i){si[fi++]=oo,si[fi++]=uo,uo=n,oo=i}function tg(n,i,l){xn[Sn++]=er,xn[Sn++]=tr,xn[Sn++]=ma,ma=n;var c=er;n=tr;var d=32-Wt(c)-1;c&=~(1<<d),l+=1;var y=32-Wt(i)+d;if(30<y){var x=d-d%5;y=(c&(1<<x)-1).toString(32),c>>=x,d-=x,er=1<<32-Wt(i)+d|l<<d|c,tr=y+n}else er=1<<y|l<<d|c,tr=n}function df(n){n.return!==null&&(ya(n,1),tg(n,1,0))}function hf(n){for(;n===uo;)uo=si[--fi],si[fi]=null,oo=si[--fi],si[fi]=null;for(;n===ma;)ma=xn[--Sn],xn[Sn]=null,tr=xn[--Sn],xn[Sn]=null,er=xn[--Sn],xn[Sn]=null}var Lt=null,We=null,Ce=!1,pa=null,Hn=!1,vf=Error(a(519));function ga(n){var i=Error(a(418,""));throw xl(gn(i,n)),vf}function ng(n){var i=n.stateNode,l=n.type,c=n.memoizedProps;switch(i[Ct]=n,i[$t]=c,l){case"dialog":Te("cancel",i),Te("close",i);break;case"iframe":case"object":case"embed":Te("load",i);break;case"video":case"audio":for(l=0;l<Gl.length;l++)Te(Gl[l],i);break;case"source":Te("error",i);break;case"img":case"image":case"link":Te("error",i),Te("load",i);break;case"details":Te("toggle",i);break;case"input":Te("invalid",i),pp(i,c.value,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name,!0),Vu(i);break;case"select":Te("invalid",i);break;case"textarea":Te("invalid",i),bp(i,c.value,c.defaultValue,c.children),Vu(i)}l=c.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||i.textContent===""+l||c.suppressHydrationWarning===!0||bb(i.textContent,l)?(c.popover!=null&&(Te("beforetoggle",i),Te("toggle",i)),c.onScroll!=null&&Te("scroll",i),c.onScrollEnd!=null&&Te("scrollend",i),c.onClick!=null&&(i.onclick=Yo),i=!0):i=!1,i||ga(n)}function rg(n){for(Lt=n.return;Lt;)switch(Lt.tag){case 5:case 13:Hn=!1;return;case 27:case 3:Hn=!0;return;default:Lt=Lt.return}}function gl(n){if(n!==Lt)return!1;if(!Ce)return rg(n),Ce=!0,!1;var i=n.tag,l;if((l=i!==3&&i!==27)&&((l=i===5)&&(l=n.type,l=!(l!=="form"&&l!=="button")||Cd(n.type,n.memoizedProps)),l=!l),l&&We&&ga(n),rg(n),i===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(a(317));e:{for(n=n.nextSibling,i=0;n;){if(n.nodeType===8)if(l=n.data,l==="/$"){if(i===0){We=zn(n.nextSibling);break e}i--}else l!=="$"&&l!=="$!"&&l!=="$?"||i++;n=n.nextSibling}We=null}}else i===27?(i=We,Kr(n.type)?(n=Rd,Rd=null,We=n):We=i):We=Lt?zn(n.stateNode.nextSibling):null;return!0}function bl(){We=Lt=null,Ce=!1}function ag(){var n=pa;return n!==null&&(Kt===null?Kt=n:Kt.push.apply(Kt,n),pa=null),n}function xl(n){pa===null?pa=[n]:pa.push(n)}var mf=Z(null),ba=null,nr=null;function Cr(n,i,l){ne(mf,i._currentValue),i._currentValue=l}function rr(n){n._currentValue=mf.current,X(mf)}function yf(n,i,l){for(;n!==null;){var c=n.alternate;if((n.childLanes&i)!==i?(n.childLanes|=i,c!==null&&(c.childLanes|=i)):c!==null&&(c.childLanes&i)!==i&&(c.childLanes|=i),n===l)break;n=n.return}}function pf(n,i,l,c){var d=n.child;for(d!==null&&(d.return=n);d!==null;){var y=d.dependencies;if(y!==null){var x=d.child;y=y.firstContext;e:for(;y!==null;){var A=y;y=d;for(var C=0;C<i.length;C++)if(A.context===i[C]){y.lanes|=l,A=y.alternate,A!==null&&(A.lanes|=l),yf(y.return,l,n),c||(x=null);break e}y=A.next}}else if(d.tag===18){if(x=d.return,x===null)throw Error(a(341));x.lanes|=l,y=x.alternate,y!==null&&(y.lanes|=l),yf(x,l,n),x=null}else x=d.child;if(x!==null)x.return=d;else for(x=d;x!==null;){if(x===n){x=null;break}if(d=x.sibling,d!==null){d.return=x.return,x=d;break}x=x.return}d=x}}function Sl(n,i,l,c){n=null;for(var d=i,y=!1;d!==null;){if(!y){if((d.flags&524288)!==0)y=!0;else if((d.flags&262144)!==0)break}if(d.tag===10){var x=d.alternate;if(x===null)throw Error(a(387));if(x=x.memoizedProps,x!==null){var A=d.type;Ft(d.pendingProps.value,x.value)||(n!==null?n.push(A):n=[A])}}else if(d===Be.current){if(x=d.alternate,x===null)throw Error(a(387));x.memoizedState.memoizedState!==d.memoizedState.memoizedState&&(n!==null?n.push(Ql):n=[Ql])}d=d.return}n!==null&&pf(i,n,l,c),i.flags|=262144}function co(n){for(n=n.firstContext;n!==null;){if(!Ft(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function xa(n){ba=n,nr=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function Dt(n){return ig(ba,n)}function so(n,i){return ba===null&&xa(n),ig(n,i)}function ig(n,i){var l=i._currentValue;if(i={context:i,memoizedValue:l,next:null},nr===null){if(n===null)throw Error(a(308));nr=i,n.dependencies={lanes:0,firstContext:i},n.flags|=524288}else nr=nr.next=i;return l}var C_=typeof AbortController<"u"?AbortController:function(){var n=[],i=this.signal={aborted:!1,addEventListener:function(l,c){n.push(c)}};this.abort=function(){i.aborted=!0,n.forEach(function(l){return l()})}},D_=e.unstable_scheduleCallback,N_=e.unstable_NormalPriority,lt={$$typeof:j,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function gf(){return{controller:new C_,data:new Map,refCount:0}}function wl(n){n.refCount--,n.refCount===0&&D_(N_,function(){n.controller.abort()})}var Ol=null,bf=0,di=0,hi=null;function P_(n,i){if(Ol===null){var l=Ol=[];bf=0,di=Sd(),hi={status:"pending",value:void 0,then:function(c){l.push(c)}}}return bf++,i.then(lg,lg),i}function lg(){if(--bf===0&&Ol!==null){hi!==null&&(hi.status="fulfilled");var n=Ol;Ol=null,di=0,hi=null;for(var i=0;i<n.length;i++)(0,n[i])()}}function R_(n,i){var l=[],c={status:"pending",value:null,reason:null,then:function(d){l.push(d)}};return n.then(function(){c.status="fulfilled",c.value=i;for(var d=0;d<l.length;d++)(0,l[d])(i)},function(d){for(c.status="rejected",c.reason=d,d=0;d<l.length;d++)(0,l[d])(void 0)}),c}var ug=L.S;L.S=function(n,i){typeof i=="object"&&i!==null&&typeof i.then=="function"&&P_(n,i),ug!==null&&ug(n,i)};var Sa=Z(null);function xf(){var n=Sa.current;return n!==null?n:Ge.pooledCache}function fo(n,i){i===null?ne(Sa,Sa.current):ne(Sa,i.pool)}function og(){var n=xf();return n===null?null:{parent:lt._currentValue,pool:n}}var Al=Error(a(460)),cg=Error(a(474)),ho=Error(a(542)),Sf={then:function(){}};function sg(n){return n=n.status,n==="fulfilled"||n==="rejected"}function vo(){}function fg(n,i,l){switch(l=n[l],l===void 0?n.push(i):l!==i&&(i.then(vo,vo),i=l),i.status){case"fulfilled":return i.value;case"rejected":throw n=i.reason,hg(n),n;default:if(typeof i.status=="string")i.then(vo,vo);else{if(n=Ge,n!==null&&100<n.shellSuspendCounter)throw Error(a(482));n=i,n.status="pending",n.then(function(c){if(i.status==="pending"){var d=i;d.status="fulfilled",d.value=c}},function(c){if(i.status==="pending"){var d=i;d.status="rejected",d.reason=c}})}switch(i.status){case"fulfilled":return i.value;case"rejected":throw n=i.reason,hg(n),n}throw El=i,Al}}var El=null;function dg(){if(El===null)throw Error(a(459));var n=El;return El=null,n}function hg(n){if(n===Al||n===ho)throw Error(a(483))}var Dr=!1;function wf(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Of(n,i){n=n.updateQueue,i.updateQueue===n&&(i.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function Nr(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function Pr(n,i,l){var c=n.updateQueue;if(c===null)return null;if(c=c.shared,(Pe&2)!==0){var d=c.pending;return d===null?i.next=i:(i.next=d.next,d.next=i),c.pending=i,i=io(n),Jp(n,null,l),i}return ao(n,c,i,l),io(n)}function Tl(n,i,l){if(i=i.updateQueue,i!==null&&(i=i.shared,(l&4194048)!==0)){var c=i.lanes;c&=n.pendingLanes,l|=c,i.lanes=l,lp(n,l)}}function Af(n,i){var l=n.updateQueue,c=n.alternate;if(c!==null&&(c=c.updateQueue,l===c)){var d=null,y=null;if(l=l.firstBaseUpdate,l!==null){do{var x={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};y===null?d=y=x:y=y.next=x,l=l.next}while(l!==null);y===null?d=y=i:y=y.next=i}else d=y=i;l={baseState:c.baseState,firstBaseUpdate:d,lastBaseUpdate:y,shared:c.shared,callbacks:c.callbacks},n.updateQueue=l;return}n=l.lastBaseUpdate,n===null?l.firstBaseUpdate=i:n.next=i,l.lastBaseUpdate=i}var Ef=!1;function _l(){if(Ef){var n=hi;if(n!==null)throw n}}function jl(n,i,l,c){Ef=!1;var d=n.updateQueue;Dr=!1;var y=d.firstBaseUpdate,x=d.lastBaseUpdate,A=d.shared.pending;if(A!==null){d.shared.pending=null;var C=A,q=C.next;C.next=null,x===null?y=q:x.next=q,x=C;var G=n.alternate;G!==null&&(G=G.updateQueue,A=G.lastBaseUpdate,A!==x&&(A===null?G.firstBaseUpdate=q:A.next=q,G.lastBaseUpdate=C))}if(y!==null){var Q=d.baseState;x=0,G=q=C=null,A=y;do{var $=A.lane&-536870913,H=$!==A.lane;if(H?(_e&$)===$:(c&$)===$){$!==0&&$===di&&(Ef=!0),G!==null&&(G=G.next={lane:0,tag:A.tag,payload:A.payload,callback:null,next:null});e:{var pe=n,ve=A;$=i;var qe=l;switch(ve.tag){case 1:if(pe=ve.payload,typeof pe=="function"){Q=pe.call(qe,Q,$);break e}Q=pe;break e;case 3:pe.flags=pe.flags&-65537|128;case 0:if(pe=ve.payload,$=typeof pe=="function"?pe.call(qe,Q,$):pe,$==null)break e;Q=v({},Q,$);break e;case 2:Dr=!0}}$=A.callback,$!==null&&(n.flags|=64,H&&(n.flags|=8192),H=d.callbacks,H===null?d.callbacks=[$]:H.push($))}else H={lane:$,tag:A.tag,payload:A.payload,callback:A.callback,next:null},G===null?(q=G=H,C=Q):G=G.next=H,x|=$;if(A=A.next,A===null){if(A=d.shared.pending,A===null)break;H=A,A=H.next,H.next=null,d.lastBaseUpdate=H,d.shared.pending=null}}while(!0);G===null&&(C=Q),d.baseState=C,d.firstBaseUpdate=q,d.lastBaseUpdate=G,y===null&&(d.shared.lanes=0),$r|=x,n.lanes=x,n.memoizedState=Q}}function vg(n,i){if(typeof n!="function")throw Error(a(191,n));n.call(i)}function mg(n,i){var l=n.callbacks;if(l!==null)for(n.callbacks=null,n=0;n<l.length;n++)vg(l[n],i)}var vi=Z(null),mo=Z(0);function yg(n,i){n=sr,ne(mo,n),ne(vi,i),sr=n|i.baseLanes}function Tf(){ne(mo,sr),ne(vi,vi.current)}function _f(){sr=mo.current,X(vi),X(mo)}var Rr=0,we=null,Le=null,nt=null,yo=!1,mi=!1,wa=!1,po=0,Ml=0,yi=null,k_=0;function et(){throw Error(a(321))}function jf(n,i){if(i===null)return!1;for(var l=0;l<i.length&&l<n.length;l++)if(!Ft(n[l],i[l]))return!1;return!0}function Mf(n,i,l,c,d,y){return Rr=y,we=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,L.H=n===null||n.memoizedState===null?Jg:e0,wa=!1,y=l(c,d),wa=!1,mi&&(y=gg(i,l,c,d)),pg(n),y}function pg(n){L.H=Oo;var i=Le!==null&&Le.next!==null;if(Rr=0,nt=Le=we=null,yo=!1,Ml=0,yi=null,i)throw Error(a(300));n===null||yt||(n=n.dependencies,n!==null&&co(n)&&(yt=!0))}function gg(n,i,l,c){we=n;var d=0;do{if(mi&&(yi=null),Ml=0,mi=!1,25<=d)throw Error(a(301));if(d+=1,nt=Le=null,n.updateQueue!=null){var y=n.updateQueue;y.lastEffect=null,y.events=null,y.stores=null,y.memoCache!=null&&(y.memoCache.index=0)}L.H=H_,y=i(l,c)}while(mi);return y}function z_(){var n=L.H,i=n.useState()[0];return i=typeof i.then=="function"?Cl(i):i,n=n.useState()[0],(Le!==null?Le.memoizedState:null)!==n&&(we.flags|=1024),i}function Cf(){var n=po!==0;return po=0,n}function Df(n,i,l){i.updateQueue=n.updateQueue,i.flags&=-2053,n.lanes&=~l}function Nf(n){if(yo){for(n=n.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}yo=!1}Rr=0,nt=Le=we=null,mi=!1,Ml=po=0,yi=null}function Yt(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return nt===null?we.memoizedState=nt=n:nt=nt.next=n,nt}function rt(){if(Le===null){var n=we.alternate;n=n!==null?n.memoizedState:null}else n=Le.next;var i=nt===null?we.memoizedState:nt.next;if(i!==null)nt=i,Le=n;else{if(n===null)throw we.alternate===null?Error(a(467)):Error(a(310));Le=n,n={memoizedState:Le.memoizedState,baseState:Le.baseState,baseQueue:Le.baseQueue,queue:Le.queue,next:null},nt===null?we.memoizedState=nt=n:nt=nt.next=n}return nt}function Pf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Cl(n){var i=Ml;return Ml+=1,yi===null&&(yi=[]),n=fg(yi,n,i),i=we,(nt===null?i.memoizedState:nt.next)===null&&(i=i.alternate,L.H=i===null||i.memoizedState===null?Jg:e0),n}function go(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return Cl(n);if(n.$$typeof===j)return Dt(n)}throw Error(a(438,String(n)))}function Rf(n){var i=null,l=we.updateQueue;if(l!==null&&(i=l.memoCache),i==null){var c=we.alternate;c!==null&&(c=c.updateQueue,c!==null&&(c=c.memoCache,c!=null&&(i={data:c.data.map(function(d){return d.slice()}),index:0})))}if(i==null&&(i={data:[],index:0}),l===null&&(l=Pf(),we.updateQueue=l),l.memoCache=i,l=i.data[i.index],l===void 0)for(l=i.data[i.index]=Array(n),c=0;c<n;c++)l[c]=re;return i.index++,l}function ar(n,i){return typeof i=="function"?i(n):i}function bo(n){var i=rt();return kf(i,Le,n)}function kf(n,i,l){var c=n.queue;if(c===null)throw Error(a(311));c.lastRenderedReducer=l;var d=n.baseQueue,y=c.pending;if(y!==null){if(d!==null){var x=d.next;d.next=y.next,y.next=x}i.baseQueue=d=y,c.pending=null}if(y=n.baseState,d===null)n.memoizedState=y;else{i=d.next;var A=x=null,C=null,q=i,G=!1;do{var Q=q.lane&-536870913;if(Q!==q.lane?(_e&Q)===Q:(Rr&Q)===Q){var $=q.revertLane;if($===0)C!==null&&(C=C.next={lane:0,revertLane:0,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null}),Q===di&&(G=!0);else if((Rr&$)===$){q=q.next,$===di&&(G=!0);continue}else Q={lane:0,revertLane:q.revertLane,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null},C===null?(A=C=Q,x=y):C=C.next=Q,we.lanes|=$,$r|=$;Q=q.action,wa&&l(y,Q),y=q.hasEagerState?q.eagerState:l(y,Q)}else $={lane:Q,revertLane:q.revertLane,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null},C===null?(A=C=$,x=y):C=C.next=$,we.lanes|=Q,$r|=Q;q=q.next}while(q!==null&&q!==i);if(C===null?x=y:C.next=A,!Ft(y,n.memoizedState)&&(yt=!0,G&&(l=hi,l!==null)))throw l;n.memoizedState=y,n.baseState=x,n.baseQueue=C,c.lastRenderedState=y}return d===null&&(c.lanes=0),[n.memoizedState,c.dispatch]}function zf(n){var i=rt(),l=i.queue;if(l===null)throw Error(a(311));l.lastRenderedReducer=n;var c=l.dispatch,d=l.pending,y=i.memoizedState;if(d!==null){l.pending=null;var x=d=d.next;do y=n(y,x.action),x=x.next;while(x!==d);Ft(y,i.memoizedState)||(yt=!0),i.memoizedState=y,i.baseQueue===null&&(i.baseState=y),l.lastRenderedState=y}return[y,c]}function bg(n,i,l){var c=we,d=rt(),y=Ce;if(y){if(l===void 0)throw Error(a(407));l=l()}else l=i();var x=!Ft((Le||d).memoizedState,l);x&&(d.memoizedState=l,yt=!0),d=d.queue;var A=wg.bind(null,c,d,n);if(Dl(2048,8,A,[n]),d.getSnapshot!==i||x||nt!==null&&nt.memoizedState.tag&1){if(c.flags|=2048,pi(9,xo(),Sg.bind(null,c,d,l,i),null),Ge===null)throw Error(a(349));y||(Rr&124)!==0||xg(c,i,l)}return l}function xg(n,i,l){n.flags|=16384,n={getSnapshot:i,value:l},i=we.updateQueue,i===null?(i=Pf(),we.updateQueue=i,i.stores=[n]):(l=i.stores,l===null?i.stores=[n]:l.push(n))}function Sg(n,i,l,c){i.value=l,i.getSnapshot=c,Og(i)&&Ag(n)}function wg(n,i,l){return l(function(){Og(i)&&Ag(n)})}function Og(n){var i=n.getSnapshot;n=n.value;try{var l=i();return!Ft(n,l)}catch{return!0}}function Ag(n){var i=oi(n,2);i!==null&&an(i,n,2)}function Bf(n){var i=Yt();if(typeof n=="function"){var l=n;if(n=l(),wa){_r(!0);try{l()}finally{_r(!1)}}}return i.memoizedState=i.baseState=n,i.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ar,lastRenderedState:n},i}function Eg(n,i,l,c){return n.baseState=l,kf(n,Le,typeof c=="function"?c:ar)}function B_(n,i,l,c,d){if(wo(n))throw Error(a(485));if(n=i.action,n!==null){var y={payload:d,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(x){y.listeners.push(x)}};L.T!==null?l(!0):y.isTransition=!1,c(y),l=i.pending,l===null?(y.next=i.pending=y,Tg(i,y)):(y.next=l.next,i.pending=l.next=y)}}function Tg(n,i){var l=i.action,c=i.payload,d=n.state;if(i.isTransition){var y=L.T,x={};L.T=x;try{var A=l(d,c),C=L.S;C!==null&&C(x,A),_g(n,i,A)}catch(q){Lf(n,i,q)}finally{L.T=y}}else try{y=l(d,c),_g(n,i,y)}catch(q){Lf(n,i,q)}}function _g(n,i,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(c){jg(n,i,c)},function(c){return Lf(n,i,c)}):jg(n,i,l)}function jg(n,i,l){i.status="fulfilled",i.value=l,Mg(i),n.state=l,i=n.pending,i!==null&&(l=i.next,l===i?n.pending=null:(l=l.next,i.next=l,Tg(n,l)))}function Lf(n,i,l){var c=n.pending;if(n.pending=null,c!==null){c=c.next;do i.status="rejected",i.reason=l,Mg(i),i=i.next;while(i!==c)}n.action=null}function Mg(n){n=n.listeners;for(var i=0;i<n.length;i++)(0,n[i])()}function Cg(n,i){return i}function Dg(n,i){if(Ce){var l=Ge.formState;if(l!==null){e:{var c=we;if(Ce){if(We){t:{for(var d=We,y=Hn;d.nodeType!==8;){if(!y){d=null;break t}if(d=zn(d.nextSibling),d===null){d=null;break t}}y=d.data,d=y==="F!"||y==="F"?d:null}if(d){We=zn(d.nextSibling),c=d.data==="F!";break e}}ga(c)}c=!1}c&&(i=l[0])}}return l=Yt(),l.memoizedState=l.baseState=i,c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cg,lastRenderedState:i},l.queue=c,l=Qg.bind(null,we,c),c.dispatch=l,c=Bf(!1),y=Yf.bind(null,we,!1,c.queue),c=Yt(),d={state:i,dispatch:null,action:n,pending:null},c.queue=d,l=B_.bind(null,we,d,y,l),d.dispatch=l,c.memoizedState=n,[i,l,!1]}function Ng(n){var i=rt();return Pg(i,Le,n)}function Pg(n,i,l){if(i=kf(n,i,Cg)[0],n=bo(ar)[0],typeof i=="object"&&i!==null&&typeof i.then=="function")try{var c=Cl(i)}catch(x){throw x===Al?ho:x}else c=i;i=rt();var d=i.queue,y=d.dispatch;return l!==i.memoizedState&&(we.flags|=2048,pi(9,xo(),L_.bind(null,d,l),null)),[c,y,n]}function L_(n,i){n.action=i}function Rg(n){var i=rt(),l=Le;if(l!==null)return Pg(i,l,n);rt(),i=i.memoizedState,l=rt();var c=l.queue.dispatch;return l.memoizedState=n,[i,c,!1]}function pi(n,i,l,c){return n={tag:n,create:l,deps:c,inst:i,next:null},i=we.updateQueue,i===null&&(i=Pf(),we.updateQueue=i),l=i.lastEffect,l===null?i.lastEffect=n.next=n:(c=l.next,l.next=n,n.next=c,i.lastEffect=n),n}function xo(){return{destroy:void 0,resource:void 0}}function kg(){return rt().memoizedState}function So(n,i,l,c){var d=Yt();c=c===void 0?null:c,we.flags|=n,d.memoizedState=pi(1|i,xo(),l,c)}function Dl(n,i,l,c){var d=rt();c=c===void 0?null:c;var y=d.memoizedState.inst;Le!==null&&c!==null&&jf(c,Le.memoizedState.deps)?d.memoizedState=pi(i,y,l,c):(we.flags|=n,d.memoizedState=pi(1|i,y,l,c))}function zg(n,i){So(8390656,8,n,i)}function Bg(n,i){Dl(2048,8,n,i)}function Lg(n,i){return Dl(4,2,n,i)}function Ug(n,i){return Dl(4,4,n,i)}function qg(n,i){if(typeof i=="function"){n=n();var l=i(n);return function(){typeof l=="function"?l():i(null)}}if(i!=null)return n=n(),i.current=n,function(){i.current=null}}function $g(n,i,l){l=l!=null?l.concat([n]):null,Dl(4,4,qg.bind(null,i,n),l)}function Uf(){}function Hg(n,i){var l=rt();i=i===void 0?null:i;var c=l.memoizedState;return i!==null&&jf(i,c[1])?c[0]:(l.memoizedState=[n,i],n)}function Yg(n,i){var l=rt();i=i===void 0?null:i;var c=l.memoizedState;if(i!==null&&jf(i,c[1]))return c[0];if(c=n(),wa){_r(!0);try{n()}finally{_r(!1)}}return l.memoizedState=[c,i],c}function qf(n,i,l){return l===void 0||(Rr&1073741824)!==0?n.memoizedState=i:(n.memoizedState=l,n=I0(),we.lanes|=n,$r|=n,l)}function Gg(n,i,l,c){return Ft(l,i)?l:vi.current!==null?(n=qf(n,l,c),Ft(n,i)||(yt=!0),n):(Rr&42)===0?(yt=!0,n.memoizedState=l):(n=I0(),we.lanes|=n,$r|=n,i)}function Kg(n,i,l,c,d){var y=V.p;V.p=y!==0&&8>y?y:8;var x=L.T,A={};L.T=A,Yf(n,!1,i,l);try{var C=d(),q=L.S;if(q!==null&&q(A,C),C!==null&&typeof C=="object"&&typeof C.then=="function"){var G=R_(C,c);Nl(n,i,G,rn(n))}else Nl(n,i,c,rn(n))}catch(Q){Nl(n,i,{then:function(){},status:"rejected",reason:Q},rn())}finally{V.p=y,L.T=x}}function U_(){}function $f(n,i,l,c){if(n.tag!==5)throw Error(a(476));var d=Ig(n).queue;Kg(n,d,i,F,l===null?U_:function(){return Xg(n),l(c)})}function Ig(n){var i=n.memoizedState;if(i!==null)return i;i={memoizedState:F,baseState:F,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ar,lastRenderedState:F},next:null};var l={};return i.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ar,lastRenderedState:l},next:null},n.memoizedState=i,n=n.alternate,n!==null&&(n.memoizedState=i),i}function Xg(n){var i=Ig(n).next.queue;Nl(n,i,{},rn())}function Hf(){return Dt(Ql)}function Vg(){return rt().memoizedState}function Zg(){return rt().memoizedState}function q_(n){for(var i=n.return;i!==null;){switch(i.tag){case 24:case 3:var l=rn();n=Nr(l);var c=Pr(i,n,l);c!==null&&(an(c,i,l),Tl(c,i,l)),i={cache:gf()},n.payload=i;return}i=i.return}}function $_(n,i,l){var c=rn();l={lane:c,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null},wo(n)?Wg(i,l):(l=of(n,i,l,c),l!==null&&(an(l,n,c),Fg(l,i,c)))}function Qg(n,i,l){var c=rn();Nl(n,i,l,c)}function Nl(n,i,l,c){var d={lane:c,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null};if(wo(n))Wg(i,d);else{var y=n.alternate;if(n.lanes===0&&(y===null||y.lanes===0)&&(y=i.lastRenderedReducer,y!==null))try{var x=i.lastRenderedState,A=y(x,l);if(d.hasEagerState=!0,d.eagerState=A,Ft(A,x))return ao(n,i,d,0),Ge===null&&ro(),!1}catch{}finally{}if(l=of(n,i,d,c),l!==null)return an(l,n,c),Fg(l,i,c),!0}return!1}function Yf(n,i,l,c){if(c={lane:2,revertLane:Sd(),action:c,hasEagerState:!1,eagerState:null,next:null},wo(n)){if(i)throw Error(a(479))}else i=of(n,l,c,2),i!==null&&an(i,n,2)}function wo(n){var i=n.alternate;return n===we||i!==null&&i===we}function Wg(n,i){mi=yo=!0;var l=n.pending;l===null?i.next=i:(i.next=l.next,l.next=i),n.pending=i}function Fg(n,i,l){if((l&4194048)!==0){var c=i.lanes;c&=n.pendingLanes,l|=c,i.lanes=l,lp(n,l)}}var Oo={readContext:Dt,use:go,useCallback:et,useContext:et,useEffect:et,useImperativeHandle:et,useLayoutEffect:et,useInsertionEffect:et,useMemo:et,useReducer:et,useRef:et,useState:et,useDebugValue:et,useDeferredValue:et,useTransition:et,useSyncExternalStore:et,useId:et,useHostTransitionStatus:et,useFormState:et,useActionState:et,useOptimistic:et,useMemoCache:et,useCacheRefresh:et},Jg={readContext:Dt,use:go,useCallback:function(n,i){return Yt().memoizedState=[n,i===void 0?null:i],n},useContext:Dt,useEffect:zg,useImperativeHandle:function(n,i,l){l=l!=null?l.concat([n]):null,So(4194308,4,qg.bind(null,i,n),l)},useLayoutEffect:function(n,i){return So(4194308,4,n,i)},useInsertionEffect:function(n,i){So(4,2,n,i)},useMemo:function(n,i){var l=Yt();i=i===void 0?null:i;var c=n();if(wa){_r(!0);try{n()}finally{_r(!1)}}return l.memoizedState=[c,i],c},useReducer:function(n,i,l){var c=Yt();if(l!==void 0){var d=l(i);if(wa){_r(!0);try{l(i)}finally{_r(!1)}}}else d=i;return c.memoizedState=c.baseState=d,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:d},c.queue=n,n=n.dispatch=$_.bind(null,we,n),[c.memoizedState,n]},useRef:function(n){var i=Yt();return n={current:n},i.memoizedState=n},useState:function(n){n=Bf(n);var i=n.queue,l=Qg.bind(null,we,i);return i.dispatch=l,[n.memoizedState,l]},useDebugValue:Uf,useDeferredValue:function(n,i){var l=Yt();return qf(l,n,i)},useTransition:function(){var n=Bf(!1);return n=Kg.bind(null,we,n.queue,!0,!1),Yt().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,i,l){var c=we,d=Yt();if(Ce){if(l===void 0)throw Error(a(407));l=l()}else{if(l=i(),Ge===null)throw Error(a(349));(_e&124)!==0||xg(c,i,l)}d.memoizedState=l;var y={value:l,getSnapshot:i};return d.queue=y,zg(wg.bind(null,c,y,n),[n]),c.flags|=2048,pi(9,xo(),Sg.bind(null,c,y,l,i),null),l},useId:function(){var n=Yt(),i=Ge.identifierPrefix;if(Ce){var l=tr,c=er;l=(c&~(1<<32-Wt(c)-1)).toString(32)+l,i="«"+i+"R"+l,l=po++,0<l&&(i+="H"+l.toString(32)),i+="»"}else l=k_++,i="«"+i+"r"+l.toString(32)+"»";return n.memoizedState=i},useHostTransitionStatus:Hf,useFormState:Dg,useActionState:Dg,useOptimistic:function(n){var i=Yt();i.memoizedState=i.baseState=n;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return i.queue=l,i=Yf.bind(null,we,!0,l),l.dispatch=i,[n,i]},useMemoCache:Rf,useCacheRefresh:function(){return Yt().memoizedState=q_.bind(null,we)}},e0={readContext:Dt,use:go,useCallback:Hg,useContext:Dt,useEffect:Bg,useImperativeHandle:$g,useInsertionEffect:Lg,useLayoutEffect:Ug,useMemo:Yg,useReducer:bo,useRef:kg,useState:function(){return bo(ar)},useDebugValue:Uf,useDeferredValue:function(n,i){var l=rt();return Gg(l,Le.memoizedState,n,i)},useTransition:function(){var n=bo(ar)[0],i=rt().memoizedState;return[typeof n=="boolean"?n:Cl(n),i]},useSyncExternalStore:bg,useId:Vg,useHostTransitionStatus:Hf,useFormState:Ng,useActionState:Ng,useOptimistic:function(n,i){var l=rt();return Eg(l,Le,n,i)},useMemoCache:Rf,useCacheRefresh:Zg},H_={readContext:Dt,use:go,useCallback:Hg,useContext:Dt,useEffect:Bg,useImperativeHandle:$g,useInsertionEffect:Lg,useLayoutEffect:Ug,useMemo:Yg,useReducer:zf,useRef:kg,useState:function(){return zf(ar)},useDebugValue:Uf,useDeferredValue:function(n,i){var l=rt();return Le===null?qf(l,n,i):Gg(l,Le.memoizedState,n,i)},useTransition:function(){var n=zf(ar)[0],i=rt().memoizedState;return[typeof n=="boolean"?n:Cl(n),i]},useSyncExternalStore:bg,useId:Vg,useHostTransitionStatus:Hf,useFormState:Rg,useActionState:Rg,useOptimistic:function(n,i){var l=rt();return Le!==null?Eg(l,Le,n,i):(l.baseState=n,[n,l.queue.dispatch])},useMemoCache:Rf,useCacheRefresh:Zg},gi=null,Pl=0;function Ao(n){var i=Pl;return Pl+=1,gi===null&&(gi=[]),fg(gi,n,i)}function Rl(n,i){i=i.props.ref,n.ref=i!==void 0?i:null}function Eo(n,i){throw i.$$typeof===p?Error(a(525)):(n=Object.prototype.toString.call(i),Error(a(31,n==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":n)))}function t0(n){var i=n._init;return i(n._payload)}function n0(n){function i(z,P){if(n){var B=z.deletions;B===null?(z.deletions=[P],z.flags|=16):B.push(P)}}function l(z,P){if(!n)return null;for(;P!==null;)i(z,P),P=P.sibling;return null}function c(z){for(var P=new Map;z!==null;)z.key!==null?P.set(z.key,z):P.set(z.index,z),z=z.sibling;return P}function d(z,P){return z=Jn(z,P),z.index=0,z.sibling=null,z}function y(z,P,B){return z.index=B,n?(B=z.alternate,B!==null?(B=B.index,B<P?(z.flags|=67108866,P):B):(z.flags|=67108866,P)):(z.flags|=1048576,P)}function x(z){return n&&z.alternate===null&&(z.flags|=67108866),z}function A(z,P,B,I){return P===null||P.tag!==6?(P=sf(B,z.mode,I),P.return=z,P):(P=d(P,B),P.return=z,P)}function C(z,P,B,I){var oe=B.type;return oe===S?G(z,P,B.props.children,I,B.key):P!==null&&(P.elementType===oe||typeof oe=="object"&&oe!==null&&oe.$$typeof===K&&t0(oe)===P.type)?(P=d(P,B.props),Rl(P,B),P.return=z,P):(P=lo(B.type,B.key,B.props,null,z.mode,I),Rl(P,B),P.return=z,P)}function q(z,P,B,I){return P===null||P.tag!==4||P.stateNode.containerInfo!==B.containerInfo||P.stateNode.implementation!==B.implementation?(P=ff(B,z.mode,I),P.return=z,P):(P=d(P,B.children||[]),P.return=z,P)}function G(z,P,B,I,oe){return P===null||P.tag!==7?(P=va(B,z.mode,I,oe),P.return=z,P):(P=d(P,B),P.return=z,P)}function Q(z,P,B){if(typeof P=="string"&&P!==""||typeof P=="number"||typeof P=="bigint")return P=sf(""+P,z.mode,B),P.return=z,P;if(typeof P=="object"&&P!==null){switch(P.$$typeof){case g:return B=lo(P.type,P.key,P.props,null,z.mode,B),Rl(B,P),B.return=z,B;case b:return P=ff(P,z.mode,B),P.return=z,P;case K:var I=P._init;return P=I(P._payload),Q(z,P,B)}if(ye(P)||ae(P))return P=va(P,z.mode,B,null),P.return=z,P;if(typeof P.then=="function")return Q(z,Ao(P),B);if(P.$$typeof===j)return Q(z,so(z,P),B);Eo(z,P)}return null}function $(z,P,B,I){var oe=P!==null?P.key:null;if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return oe!==null?null:A(z,P,""+B,I);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case g:return B.key===oe?C(z,P,B,I):null;case b:return B.key===oe?q(z,P,B,I):null;case K:return oe=B._init,B=oe(B._payload),$(z,P,B,I)}if(ye(B)||ae(B))return oe!==null?null:G(z,P,B,I,null);if(typeof B.then=="function")return $(z,P,Ao(B),I);if(B.$$typeof===j)return $(z,P,so(z,B),I);Eo(z,B)}return null}function H(z,P,B,I,oe){if(typeof I=="string"&&I!==""||typeof I=="number"||typeof I=="bigint")return z=z.get(B)||null,A(P,z,""+I,oe);if(typeof I=="object"&&I!==null){switch(I.$$typeof){case g:return z=z.get(I.key===null?B:I.key)||null,C(P,z,I,oe);case b:return z=z.get(I.key===null?B:I.key)||null,q(P,z,I,oe);case K:var Oe=I._init;return I=Oe(I._payload),H(z,P,B,I,oe)}if(ye(I)||ae(I))return z=z.get(B)||null,G(P,z,I,oe,null);if(typeof I.then=="function")return H(z,P,B,Ao(I),oe);if(I.$$typeof===j)return H(z,P,B,so(P,I),oe);Eo(P,I)}return null}function pe(z,P,B,I){for(var oe=null,Oe=null,fe=P,me=P=0,gt=null;fe!==null&&me<B.length;me++){fe.index>me?(gt=fe,fe=null):gt=fe.sibling;var je=$(z,fe,B[me],I);if(je===null){fe===null&&(fe=gt);break}n&&fe&&je.alternate===null&&i(z,fe),P=y(je,P,me),Oe===null?oe=je:Oe.sibling=je,Oe=je,fe=gt}if(me===B.length)return l(z,fe),Ce&&ya(z,me),oe;if(fe===null){for(;me<B.length;me++)fe=Q(z,B[me],I),fe!==null&&(P=y(fe,P,me),Oe===null?oe=fe:Oe.sibling=fe,Oe=fe);return Ce&&ya(z,me),oe}for(fe=c(fe);me<B.length;me++)gt=H(fe,z,me,B[me],I),gt!==null&&(n&&gt.alternate!==null&&fe.delete(gt.key===null?me:gt.key),P=y(gt,P,me),Oe===null?oe=gt:Oe.sibling=gt,Oe=gt);return n&&fe.forEach(function(Qr){return i(z,Qr)}),Ce&&ya(z,me),oe}function ve(z,P,B,I){if(B==null)throw Error(a(151));for(var oe=null,Oe=null,fe=P,me=P=0,gt=null,je=B.next();fe!==null&&!je.done;me++,je=B.next()){fe.index>me?(gt=fe,fe=null):gt=fe.sibling;var Qr=$(z,fe,je.value,I);if(Qr===null){fe===null&&(fe=gt);break}n&&fe&&Qr.alternate===null&&i(z,fe),P=y(Qr,P,me),Oe===null?oe=Qr:Oe.sibling=Qr,Oe=Qr,fe=gt}if(je.done)return l(z,fe),Ce&&ya(z,me),oe;if(fe===null){for(;!je.done;me++,je=B.next())je=Q(z,je.value,I),je!==null&&(P=y(je,P,me),Oe===null?oe=je:Oe.sibling=je,Oe=je);return Ce&&ya(z,me),oe}for(fe=c(fe);!je.done;me++,je=B.next())je=H(fe,z,me,je.value,I),je!==null&&(n&&je.alternate!==null&&fe.delete(je.key===null?me:je.key),P=y(je,P,me),Oe===null?oe=je:Oe.sibling=je,Oe=je);return n&&fe.forEach(function(Yj){return i(z,Yj)}),Ce&&ya(z,me),oe}function qe(z,P,B,I){if(typeof B=="object"&&B!==null&&B.type===S&&B.key===null&&(B=B.props.children),typeof B=="object"&&B!==null){switch(B.$$typeof){case g:e:{for(var oe=B.key;P!==null;){if(P.key===oe){if(oe=B.type,oe===S){if(P.tag===7){l(z,P.sibling),I=d(P,B.props.children),I.return=z,z=I;break e}}else if(P.elementType===oe||typeof oe=="object"&&oe!==null&&oe.$$typeof===K&&t0(oe)===P.type){l(z,P.sibling),I=d(P,B.props),Rl(I,B),I.return=z,z=I;break e}l(z,P);break}else i(z,P);P=P.sibling}B.type===S?(I=va(B.props.children,z.mode,I,B.key),I.return=z,z=I):(I=lo(B.type,B.key,B.props,null,z.mode,I),Rl(I,B),I.return=z,z=I)}return x(z);case b:e:{for(oe=B.key;P!==null;){if(P.key===oe)if(P.tag===4&&P.stateNode.containerInfo===B.containerInfo&&P.stateNode.implementation===B.implementation){l(z,P.sibling),I=d(P,B.children||[]),I.return=z,z=I;break e}else{l(z,P);break}else i(z,P);P=P.sibling}I=ff(B,z.mode,I),I.return=z,z=I}return x(z);case K:return oe=B._init,B=oe(B._payload),qe(z,P,B,I)}if(ye(B))return pe(z,P,B,I);if(ae(B)){if(oe=ae(B),typeof oe!="function")throw Error(a(150));return B=oe.call(B),ve(z,P,B,I)}if(typeof B.then=="function")return qe(z,P,Ao(B),I);if(B.$$typeof===j)return qe(z,P,so(z,B),I);Eo(z,B)}return typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint"?(B=""+B,P!==null&&P.tag===6?(l(z,P.sibling),I=d(P,B),I.return=z,z=I):(l(z,P),I=sf(B,z.mode,I),I.return=z,z=I),x(z)):l(z,P)}return function(z,P,B,I){try{Pl=0;var oe=qe(z,P,B,I);return gi=null,oe}catch(fe){if(fe===Al||fe===ho)throw fe;var Oe=Jt(29,fe,null,z.mode);return Oe.lanes=I,Oe.return=z,Oe}finally{}}}var bi=n0(!0),r0=n0(!1),wn=Z(null),Yn=null;function kr(n){var i=n.alternate;ne(ut,ut.current&1),ne(wn,n),Yn===null&&(i===null||vi.current!==null||i.memoizedState!==null)&&(Yn=n)}function a0(n){if(n.tag===22){if(ne(ut,ut.current),ne(wn,n),Yn===null){var i=n.alternate;i!==null&&i.memoizedState!==null&&(Yn=n)}}else zr()}function zr(){ne(ut,ut.current),ne(wn,wn.current)}function ir(n){X(wn),Yn===n&&(Yn=null),X(ut)}var ut=Z(0);function To(n){for(var i=n;i!==null;){if(i.tag===13){var l=i.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||Pd(l)))return i}else if(i.tag===19&&i.memoizedProps.revealOrder!==void 0){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===n)break;for(;i.sibling===null;){if(i.return===null||i.return===n)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}function Gf(n,i,l,c){i=n.memoizedState,l=l(c,i),l=l==null?i:v({},i,l),n.memoizedState=l,n.lanes===0&&(n.updateQueue.baseState=l)}var Kf={enqueueSetState:function(n,i,l){n=n._reactInternals;var c=rn(),d=Nr(c);d.payload=i,l!=null&&(d.callback=l),i=Pr(n,d,c),i!==null&&(an(i,n,c),Tl(i,n,c))},enqueueReplaceState:function(n,i,l){n=n._reactInternals;var c=rn(),d=Nr(c);d.tag=1,d.payload=i,l!=null&&(d.callback=l),i=Pr(n,d,c),i!==null&&(an(i,n,c),Tl(i,n,c))},enqueueForceUpdate:function(n,i){n=n._reactInternals;var l=rn(),c=Nr(l);c.tag=2,i!=null&&(c.callback=i),i=Pr(n,c,l),i!==null&&(an(i,n,l),Tl(i,n,l))}};function i0(n,i,l,c,d,y,x){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(c,y,x):i.prototype&&i.prototype.isPureReactComponent?!yl(l,c)||!yl(d,y):!0}function l0(n,i,l,c){n=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(l,c),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(l,c),i.state!==n&&Kf.enqueueReplaceState(i,i.state,null)}function Oa(n,i){var l=i;if("ref"in i){l={};for(var c in i)c!=="ref"&&(l[c]=i[c])}if(n=n.defaultProps){l===i&&(l=v({},l));for(var d in n)l[d]===void 0&&(l[d]=n[d])}return l}var _o=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var i=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(i))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)};function u0(n){_o(n)}function o0(n){console.error(n)}function c0(n){_o(n)}function jo(n,i){try{var l=n.onUncaughtError;l(i.value,{componentStack:i.stack})}catch(c){setTimeout(function(){throw c})}}function s0(n,i,l){try{var c=n.onCaughtError;c(l.value,{componentStack:l.stack,errorBoundary:i.tag===1?i.stateNode:null})}catch(d){setTimeout(function(){throw d})}}function If(n,i,l){return l=Nr(l),l.tag=3,l.payload={element:null},l.callback=function(){jo(n,i)},l}function f0(n){return n=Nr(n),n.tag=3,n}function d0(n,i,l,c){var d=l.type.getDerivedStateFromError;if(typeof d=="function"){var y=c.value;n.payload=function(){return d(y)},n.callback=function(){s0(i,l,c)}}var x=l.stateNode;x!==null&&typeof x.componentDidCatch=="function"&&(n.callback=function(){s0(i,l,c),typeof d!="function"&&(Hr===null?Hr=new Set([this]):Hr.add(this));var A=c.stack;this.componentDidCatch(c.value,{componentStack:A!==null?A:""})})}function Y_(n,i,l,c,d){if(l.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){if(i=l.alternate,i!==null&&Sl(i,l,d,!0),l=wn.current,l!==null){switch(l.tag){case 13:return Yn===null?yd():l.alternate===null&&Fe===0&&(Fe=3),l.flags&=-257,l.flags|=65536,l.lanes=d,c===Sf?l.flags|=16384:(i=l.updateQueue,i===null?l.updateQueue=new Set([c]):i.add(c),gd(n,c,d)),!1;case 22:return l.flags|=65536,c===Sf?l.flags|=16384:(i=l.updateQueue,i===null?(i={transitions:null,markerInstances:null,retryQueue:new Set([c])},l.updateQueue=i):(l=i.retryQueue,l===null?i.retryQueue=new Set([c]):l.add(c)),gd(n,c,d)),!1}throw Error(a(435,l.tag))}return gd(n,c,d),yd(),!1}if(Ce)return i=wn.current,i!==null?((i.flags&65536)===0&&(i.flags|=256),i.flags|=65536,i.lanes=d,c!==vf&&(n=Error(a(422),{cause:c}),xl(gn(n,l)))):(c!==vf&&(i=Error(a(423),{cause:c}),xl(gn(i,l))),n=n.current.alternate,n.flags|=65536,d&=-d,n.lanes|=d,c=gn(c,l),d=If(n.stateNode,c,d),Af(n,d),Fe!==4&&(Fe=2)),!1;var y=Error(a(520),{cause:c});if(y=gn(y,l),$l===null?$l=[y]:$l.push(y),Fe!==4&&(Fe=2),i===null)return!0;c=gn(c,l),l=i;do{switch(l.tag){case 3:return l.flags|=65536,n=d&-d,l.lanes|=n,n=If(l.stateNode,c,n),Af(l,n),!1;case 1:if(i=l.type,y=l.stateNode,(l.flags&128)===0&&(typeof i.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(Hr===null||!Hr.has(y))))return l.flags|=65536,d&=-d,l.lanes|=d,d=f0(d),d0(d,n,l,c),Af(l,d),!1}l=l.return}while(l!==null);return!1}var h0=Error(a(461)),yt=!1;function At(n,i,l,c){i.child=n===null?r0(i,null,l,c):bi(i,n.child,l,c)}function v0(n,i,l,c,d){l=l.render;var y=i.ref;if("ref"in c){var x={};for(var A in c)A!=="ref"&&(x[A]=c[A])}else x=c;return xa(i),c=Mf(n,i,l,x,y,d),A=Cf(),n!==null&&!yt?(Df(n,i,d),lr(n,i,d)):(Ce&&A&&df(i),i.flags|=1,At(n,i,c,d),i.child)}function m0(n,i,l,c,d){if(n===null){var y=l.type;return typeof y=="function"&&!cf(y)&&y.defaultProps===void 0&&l.compare===null?(i.tag=15,i.type=y,y0(n,i,y,c,d)):(n=lo(l.type,null,c,i,i.mode,d),n.ref=i.ref,n.return=i,i.child=n)}if(y=n.child,!ed(n,d)){var x=y.memoizedProps;if(l=l.compare,l=l!==null?l:yl,l(x,c)&&n.ref===i.ref)return lr(n,i,d)}return i.flags|=1,n=Jn(y,c),n.ref=i.ref,n.return=i,i.child=n}function y0(n,i,l,c,d){if(n!==null){var y=n.memoizedProps;if(yl(y,c)&&n.ref===i.ref)if(yt=!1,i.pendingProps=c=y,ed(n,d))(n.flags&131072)!==0&&(yt=!0);else return i.lanes=n.lanes,lr(n,i,d)}return Xf(n,i,l,c,d)}function p0(n,i,l){var c=i.pendingProps,d=c.children,y=n!==null?n.memoizedState:null;if(c.mode==="hidden"){if((i.flags&128)!==0){if(c=y!==null?y.baseLanes|l:l,n!==null){for(d=i.child=n.child,y=0;d!==null;)y=y|d.lanes|d.childLanes,d=d.sibling;i.childLanes=y&~c}else i.childLanes=0,i.child=null;return g0(n,i,c,l)}if((l&536870912)!==0)i.memoizedState={baseLanes:0,cachePool:null},n!==null&&fo(i,y!==null?y.cachePool:null),y!==null?yg(i,y):Tf(),a0(i);else return i.lanes=i.childLanes=536870912,g0(n,i,y!==null?y.baseLanes|l:l,l)}else y!==null?(fo(i,y.cachePool),yg(i,y),zr(),i.memoizedState=null):(n!==null&&fo(i,null),Tf(),zr());return At(n,i,d,l),i.child}function g0(n,i,l,c){var d=xf();return d=d===null?null:{parent:lt._currentValue,pool:d},i.memoizedState={baseLanes:l,cachePool:d},n!==null&&fo(i,null),Tf(),a0(i),n!==null&&Sl(n,i,c,!0),null}function Mo(n,i){var l=i.ref;if(l===null)n!==null&&n.ref!==null&&(i.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(a(284));(n===null||n.ref!==l)&&(i.flags|=4194816)}}function Xf(n,i,l,c,d){return xa(i),l=Mf(n,i,l,c,void 0,d),c=Cf(),n!==null&&!yt?(Df(n,i,d),lr(n,i,d)):(Ce&&c&&df(i),i.flags|=1,At(n,i,l,d),i.child)}function b0(n,i,l,c,d,y){return xa(i),i.updateQueue=null,l=gg(i,c,l,d),pg(n),c=Cf(),n!==null&&!yt?(Df(n,i,y),lr(n,i,y)):(Ce&&c&&df(i),i.flags|=1,At(n,i,l,y),i.child)}function x0(n,i,l,c,d){if(xa(i),i.stateNode===null){var y=ci,x=l.contextType;typeof x=="object"&&x!==null&&(y=Dt(x)),y=new l(c,y),i.memoizedState=y.state!==null&&y.state!==void 0?y.state:null,y.updater=Kf,i.stateNode=y,y._reactInternals=i,y=i.stateNode,y.props=c,y.state=i.memoizedState,y.refs={},wf(i),x=l.contextType,y.context=typeof x=="object"&&x!==null?Dt(x):ci,y.state=i.memoizedState,x=l.getDerivedStateFromProps,typeof x=="function"&&(Gf(i,l,x,c),y.state=i.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof y.getSnapshotBeforeUpdate=="function"||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(x=y.state,typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount(),x!==y.state&&Kf.enqueueReplaceState(y,y.state,null),jl(i,c,y,d),_l(),y.state=i.memoizedState),typeof y.componentDidMount=="function"&&(i.flags|=4194308),c=!0}else if(n===null){y=i.stateNode;var A=i.memoizedProps,C=Oa(l,A);y.props=C;var q=y.context,G=l.contextType;x=ci,typeof G=="object"&&G!==null&&(x=Dt(G));var Q=l.getDerivedStateFromProps;G=typeof Q=="function"||typeof y.getSnapshotBeforeUpdate=="function",A=i.pendingProps!==A,G||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(A||q!==x)&&l0(i,y,c,x),Dr=!1;var $=i.memoizedState;y.state=$,jl(i,c,y,d),_l(),q=i.memoizedState,A||$!==q||Dr?(typeof Q=="function"&&(Gf(i,l,Q,c),q=i.memoizedState),(C=Dr||i0(i,l,C,c,$,q,x))?(G||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount()),typeof y.componentDidMount=="function"&&(i.flags|=4194308)):(typeof y.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=c,i.memoizedState=q),y.props=c,y.state=q,y.context=x,c=C):(typeof y.componentDidMount=="function"&&(i.flags|=4194308),c=!1)}else{y=i.stateNode,Of(n,i),x=i.memoizedProps,G=Oa(l,x),y.props=G,Q=i.pendingProps,$=y.context,q=l.contextType,C=ci,typeof q=="object"&&q!==null&&(C=Dt(q)),A=l.getDerivedStateFromProps,(q=typeof A=="function"||typeof y.getSnapshotBeforeUpdate=="function")||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(x!==Q||$!==C)&&l0(i,y,c,C),Dr=!1,$=i.memoizedState,y.state=$,jl(i,c,y,d),_l();var H=i.memoizedState;x!==Q||$!==H||Dr||n!==null&&n.dependencies!==null&&co(n.dependencies)?(typeof A=="function"&&(Gf(i,l,A,c),H=i.memoizedState),(G=Dr||i0(i,l,G,c,$,H,C)||n!==null&&n.dependencies!==null&&co(n.dependencies))?(q||typeof y.UNSAFE_componentWillUpdate!="function"&&typeof y.componentWillUpdate!="function"||(typeof y.componentWillUpdate=="function"&&y.componentWillUpdate(c,H,C),typeof y.UNSAFE_componentWillUpdate=="function"&&y.UNSAFE_componentWillUpdate(c,H,C)),typeof y.componentDidUpdate=="function"&&(i.flags|=4),typeof y.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof y.componentDidUpdate!="function"||x===n.memoizedProps&&$===n.memoizedState||(i.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||x===n.memoizedProps&&$===n.memoizedState||(i.flags|=1024),i.memoizedProps=c,i.memoizedState=H),y.props=c,y.state=H,y.context=C,c=G):(typeof y.componentDidUpdate!="function"||x===n.memoizedProps&&$===n.memoizedState||(i.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||x===n.memoizedProps&&$===n.memoizedState||(i.flags|=1024),c=!1)}return y=c,Mo(n,i),c=(i.flags&128)!==0,y||c?(y=i.stateNode,l=c&&typeof l.getDerivedStateFromError!="function"?null:y.render(),i.flags|=1,n!==null&&c?(i.child=bi(i,n.child,null,d),i.child=bi(i,null,l,d)):At(n,i,l,d),i.memoizedState=y.state,n=i.child):n=lr(n,i,d),n}function S0(n,i,l,c){return bl(),i.flags|=256,At(n,i,l,c),i.child}var Vf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Zf(n){return{baseLanes:n,cachePool:og()}}function Qf(n,i,l){return n=n!==null?n.childLanes&~l:0,i&&(n|=On),n}function w0(n,i,l){var c=i.pendingProps,d=!1,y=(i.flags&128)!==0,x;if((x=y)||(x=n!==null&&n.memoizedState===null?!1:(ut.current&2)!==0),x&&(d=!0,i.flags&=-129),x=(i.flags&32)!==0,i.flags&=-33,n===null){if(Ce){if(d?kr(i):zr(),Ce){var A=We,C;if(C=A){e:{for(C=A,A=Hn;C.nodeType!==8;){if(!A){A=null;break e}if(C=zn(C.nextSibling),C===null){A=null;break e}}A=C}A!==null?(i.memoizedState={dehydrated:A,treeContext:ma!==null?{id:er,overflow:tr}:null,retryLane:536870912,hydrationErrors:null},C=Jt(18,null,null,0),C.stateNode=A,C.return=i,i.child=C,Lt=i,We=null,C=!0):C=!1}C||ga(i)}if(A=i.memoizedState,A!==null&&(A=A.dehydrated,A!==null))return Pd(A)?i.lanes=32:i.lanes=536870912,null;ir(i)}return A=c.children,c=c.fallback,d?(zr(),d=i.mode,A=Co({mode:"hidden",children:A},d),c=va(c,d,l,null),A.return=i,c.return=i,A.sibling=c,i.child=A,d=i.child,d.memoizedState=Zf(l),d.childLanes=Qf(n,x,l),i.memoizedState=Vf,c):(kr(i),Wf(i,A))}if(C=n.memoizedState,C!==null&&(A=C.dehydrated,A!==null)){if(y)i.flags&256?(kr(i),i.flags&=-257,i=Ff(n,i,l)):i.memoizedState!==null?(zr(),i.child=n.child,i.flags|=128,i=null):(zr(),d=c.fallback,A=i.mode,c=Co({mode:"visible",children:c.children},A),d=va(d,A,l,null),d.flags|=2,c.return=i,d.return=i,c.sibling=d,i.child=c,bi(i,n.child,null,l),c=i.child,c.memoizedState=Zf(l),c.childLanes=Qf(n,x,l),i.memoizedState=Vf,i=d);else if(kr(i),Pd(A)){if(x=A.nextSibling&&A.nextSibling.dataset,x)var q=x.dgst;x=q,c=Error(a(419)),c.stack="",c.digest=x,xl({value:c,source:null,stack:null}),i=Ff(n,i,l)}else if(yt||Sl(n,i,l,!1),x=(l&n.childLanes)!==0,yt||x){if(x=Ge,x!==null&&(c=l&-l,c=(c&42)!==0?1:Ps(c),c=(c&(x.suspendedLanes|l))!==0?0:c,c!==0&&c!==C.retryLane))throw C.retryLane=c,oi(n,c),an(x,n,c),h0;A.data==="$?"||yd(),i=Ff(n,i,l)}else A.data==="$?"?(i.flags|=192,i.child=n.child,i=null):(n=C.treeContext,We=zn(A.nextSibling),Lt=i,Ce=!0,pa=null,Hn=!1,n!==null&&(xn[Sn++]=er,xn[Sn++]=tr,xn[Sn++]=ma,er=n.id,tr=n.overflow,ma=i),i=Wf(i,c.children),i.flags|=4096);return i}return d?(zr(),d=c.fallback,A=i.mode,C=n.child,q=C.sibling,c=Jn(C,{mode:"hidden",children:c.children}),c.subtreeFlags=C.subtreeFlags&65011712,q!==null?d=Jn(q,d):(d=va(d,A,l,null),d.flags|=2),d.return=i,c.return=i,c.sibling=d,i.child=c,c=d,d=i.child,A=n.child.memoizedState,A===null?A=Zf(l):(C=A.cachePool,C!==null?(q=lt._currentValue,C=C.parent!==q?{parent:q,pool:q}:C):C=og(),A={baseLanes:A.baseLanes|l,cachePool:C}),d.memoizedState=A,d.childLanes=Qf(n,x,l),i.memoizedState=Vf,c):(kr(i),l=n.child,n=l.sibling,l=Jn(l,{mode:"visible",children:c.children}),l.return=i,l.sibling=null,n!==null&&(x=i.deletions,x===null?(i.deletions=[n],i.flags|=16):x.push(n)),i.child=l,i.memoizedState=null,l)}function Wf(n,i){return i=Co({mode:"visible",children:i},n.mode),i.return=n,n.child=i}function Co(n,i){return n=Jt(22,n,null,i),n.lanes=0,n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},n}function Ff(n,i,l){return bi(i,n.child,null,l),n=Wf(i,i.pendingProps.children),n.flags|=2,i.memoizedState=null,n}function O0(n,i,l){n.lanes|=i;var c=n.alternate;c!==null&&(c.lanes|=i),yf(n.return,i,l)}function Jf(n,i,l,c,d){var y=n.memoizedState;y===null?n.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:c,tail:l,tailMode:d}:(y.isBackwards=i,y.rendering=null,y.renderingStartTime=0,y.last=c,y.tail=l,y.tailMode=d)}function A0(n,i,l){var c=i.pendingProps,d=c.revealOrder,y=c.tail;if(At(n,i,c.children,l),c=ut.current,(c&2)!==0)c=c&1|2,i.flags|=128;else{if(n!==null&&(n.flags&128)!==0)e:for(n=i.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&O0(n,l,i);else if(n.tag===19)O0(n,l,i);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===i)break e;for(;n.sibling===null;){if(n.return===null||n.return===i)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}c&=1}switch(ne(ut,c),d){case"forwards":for(l=i.child,d=null;l!==null;)n=l.alternate,n!==null&&To(n)===null&&(d=l),l=l.sibling;l=d,l===null?(d=i.child,i.child=null):(d=l.sibling,l.sibling=null),Jf(i,!1,d,l,y);break;case"backwards":for(l=null,d=i.child,i.child=null;d!==null;){if(n=d.alternate,n!==null&&To(n)===null){i.child=d;break}n=d.sibling,d.sibling=l,l=d,d=n}Jf(i,!0,l,null,y);break;case"together":Jf(i,!1,null,null,void 0);break;default:i.memoizedState=null}return i.child}function lr(n,i,l){if(n!==null&&(i.dependencies=n.dependencies),$r|=i.lanes,(l&i.childLanes)===0)if(n!==null){if(Sl(n,i,l,!1),(l&i.childLanes)===0)return null}else return null;if(n!==null&&i.child!==n.child)throw Error(a(153));if(i.child!==null){for(n=i.child,l=Jn(n,n.pendingProps),i.child=l,l.return=i;n.sibling!==null;)n=n.sibling,l=l.sibling=Jn(n,n.pendingProps),l.return=i;l.sibling=null}return i.child}function ed(n,i){return(n.lanes&i)!==0?!0:(n=n.dependencies,!!(n!==null&&co(n)))}function G_(n,i,l){switch(i.tag){case 3:De(i,i.stateNode.containerInfo),Cr(i,lt,n.memoizedState.cache),bl();break;case 27:case 5:xe(i);break;case 4:De(i,i.stateNode.containerInfo);break;case 10:Cr(i,i.type,i.memoizedProps.value);break;case 13:var c=i.memoizedState;if(c!==null)return c.dehydrated!==null?(kr(i),i.flags|=128,null):(l&i.child.childLanes)!==0?w0(n,i,l):(kr(i),n=lr(n,i,l),n!==null?n.sibling:null);kr(i);break;case 19:var d=(n.flags&128)!==0;if(c=(l&i.childLanes)!==0,c||(Sl(n,i,l,!1),c=(l&i.childLanes)!==0),d){if(c)return A0(n,i,l);i.flags|=128}if(d=i.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),ne(ut,ut.current),c)break;return null;case 22:case 23:return i.lanes=0,p0(n,i,l);case 24:Cr(i,lt,n.memoizedState.cache)}return lr(n,i,l)}function E0(n,i,l){if(n!==null)if(n.memoizedProps!==i.pendingProps)yt=!0;else{if(!ed(n,l)&&(i.flags&128)===0)return yt=!1,G_(n,i,l);yt=(n.flags&131072)!==0}else yt=!1,Ce&&(i.flags&1048576)!==0&&tg(i,oo,i.index);switch(i.lanes=0,i.tag){case 16:e:{n=i.pendingProps;var c=i.elementType,d=c._init;if(c=d(c._payload),i.type=c,typeof c=="function")cf(c)?(n=Oa(c,n),i.tag=1,i=x0(null,i,c,n,l)):(i.tag=0,i=Xf(null,i,c,n,l));else{if(c!=null){if(d=c.$$typeof,d===k){i.tag=11,i=v0(null,i,c,n,l);break e}else if(d===U){i.tag=14,i=m0(null,i,c,n,l);break e}}throw i=be(c)||c,Error(a(306,i,""))}}return i;case 0:return Xf(n,i,i.type,i.pendingProps,l);case 1:return c=i.type,d=Oa(c,i.pendingProps),x0(n,i,c,d,l);case 3:e:{if(De(i,i.stateNode.containerInfo),n===null)throw Error(a(387));c=i.pendingProps;var y=i.memoizedState;d=y.element,Of(n,i),jl(i,c,null,l);var x=i.memoizedState;if(c=x.cache,Cr(i,lt,c),c!==y.cache&&pf(i,[lt],l,!0),_l(),c=x.element,y.isDehydrated)if(y={element:c,isDehydrated:!1,cache:x.cache},i.updateQueue.baseState=y,i.memoizedState=y,i.flags&256){i=S0(n,i,c,l);break e}else if(c!==d){d=gn(Error(a(424)),i),xl(d),i=S0(n,i,c,l);break e}else{switch(n=i.stateNode.containerInfo,n.nodeType){case 9:n=n.body;break;default:n=n.nodeName==="HTML"?n.ownerDocument.body:n}for(We=zn(n.firstChild),Lt=i,Ce=!0,pa=null,Hn=!0,l=r0(i,null,c,l),i.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(bl(),c===d){i=lr(n,i,l);break e}At(n,i,c,l)}i=i.child}return i;case 26:return Mo(n,i),n===null?(l=Mb(i.type,null,i.pendingProps,null))?i.memoizedState=l:Ce||(l=i.type,n=i.pendingProps,c=Go(ue.current).createElement(l),c[Ct]=i,c[$t]=n,Tt(c,l,n),mt(c),i.stateNode=c):i.memoizedState=Mb(i.type,n.memoizedProps,i.pendingProps,n.memoizedState),null;case 27:return xe(i),n===null&&Ce&&(c=i.stateNode=Tb(i.type,i.pendingProps,ue.current),Lt=i,Hn=!0,d=We,Kr(i.type)?(Rd=d,We=zn(c.firstChild)):We=d),At(n,i,i.pendingProps.children,l),Mo(n,i),n===null&&(i.flags|=4194304),i.child;case 5:return n===null&&Ce&&((d=c=We)&&(c=gj(c,i.type,i.pendingProps,Hn),c!==null?(i.stateNode=c,Lt=i,We=zn(c.firstChild),Hn=!1,d=!0):d=!1),d||ga(i)),xe(i),d=i.type,y=i.pendingProps,x=n!==null?n.memoizedProps:null,c=y.children,Cd(d,y)?c=null:x!==null&&Cd(d,x)&&(i.flags|=32),i.memoizedState!==null&&(d=Mf(n,i,z_,null,null,l),Ql._currentValue=d),Mo(n,i),At(n,i,c,l),i.child;case 6:return n===null&&Ce&&((n=l=We)&&(l=bj(l,i.pendingProps,Hn),l!==null?(i.stateNode=l,Lt=i,We=null,n=!0):n=!1),n||ga(i)),null;case 13:return w0(n,i,l);case 4:return De(i,i.stateNode.containerInfo),c=i.pendingProps,n===null?i.child=bi(i,null,c,l):At(n,i,c,l),i.child;case 11:return v0(n,i,i.type,i.pendingProps,l);case 7:return At(n,i,i.pendingProps,l),i.child;case 8:return At(n,i,i.pendingProps.children,l),i.child;case 12:return At(n,i,i.pendingProps.children,l),i.child;case 10:return c=i.pendingProps,Cr(i,i.type,c.value),At(n,i,c.children,l),i.child;case 9:return d=i.type._context,c=i.pendingProps.children,xa(i),d=Dt(d),c=c(d),i.flags|=1,At(n,i,c,l),i.child;case 14:return m0(n,i,i.type,i.pendingProps,l);case 15:return y0(n,i,i.type,i.pendingProps,l);case 19:return A0(n,i,l);case 31:return c=i.pendingProps,l=i.mode,c={mode:c.mode,children:c.children},n===null?(l=Co(c,l),l.ref=i.ref,i.child=l,l.return=i,i=l):(l=Jn(n.child,c),l.ref=i.ref,i.child=l,l.return=i,i=l),i;case 22:return p0(n,i,l);case 24:return xa(i),c=Dt(lt),n===null?(d=xf(),d===null&&(d=Ge,y=gf(),d.pooledCache=y,y.refCount++,y!==null&&(d.pooledCacheLanes|=l),d=y),i.memoizedState={parent:c,cache:d},wf(i),Cr(i,lt,d)):((n.lanes&l)!==0&&(Of(n,i),jl(i,null,null,l),_l()),d=n.memoizedState,y=i.memoizedState,d.parent!==c?(d={parent:c,cache:c},i.memoizedState=d,i.lanes===0&&(i.memoizedState=i.updateQueue.baseState=d),Cr(i,lt,c)):(c=y.cache,Cr(i,lt,c),c!==d.cache&&pf(i,[lt],l,!0))),At(n,i,i.pendingProps.children,l),i.child;case 29:throw i.pendingProps}throw Error(a(156,i.tag))}function ur(n){n.flags|=4}function T0(n,i){if(i.type!=="stylesheet"||(i.state.loading&4)!==0)n.flags&=-16777217;else if(n.flags|=16777216,!Rb(i)){if(i=wn.current,i!==null&&((_e&4194048)===_e?Yn!==null:(_e&62914560)!==_e&&(_e&536870912)===0||i!==Yn))throw El=Sf,cg;n.flags|=8192}}function Do(n,i){i!==null&&(n.flags|=4),n.flags&16384&&(i=n.tag!==22?ap():536870912,n.lanes|=i,Oi|=i)}function kl(n,i){if(!Ce)switch(n.tailMode){case"hidden":i=n.tail;for(var l=null;i!==null;)i.alternate!==null&&(l=i),i=i.sibling;l===null?n.tail=null:l.sibling=null;break;case"collapsed":l=n.tail;for(var c=null;l!==null;)l.alternate!==null&&(c=l),l=l.sibling;c===null?i||n.tail===null?n.tail=null:n.tail.sibling=null:c.sibling=null}}function Qe(n){var i=n.alternate!==null&&n.alternate.child===n.child,l=0,c=0;if(i)for(var d=n.child;d!==null;)l|=d.lanes|d.childLanes,c|=d.subtreeFlags&65011712,c|=d.flags&65011712,d.return=n,d=d.sibling;else for(d=n.child;d!==null;)l|=d.lanes|d.childLanes,c|=d.subtreeFlags,c|=d.flags,d.return=n,d=d.sibling;return n.subtreeFlags|=c,n.childLanes=l,i}function K_(n,i,l){var c=i.pendingProps;switch(hf(i),i.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Qe(i),null;case 1:return Qe(i),null;case 3:return l=i.stateNode,c=null,n!==null&&(c=n.memoizedState.cache),i.memoizedState.cache!==c&&(i.flags|=2048),rr(lt),ie(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(n===null||n.child===null)&&(gl(i)?ur(i):n===null||n.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,ag())),Qe(i),null;case 26:return l=i.memoizedState,n===null?(ur(i),l!==null?(Qe(i),T0(i,l)):(Qe(i),i.flags&=-16777217)):l?l!==n.memoizedState?(ur(i),Qe(i),T0(i,l)):(Qe(i),i.flags&=-16777217):(n.memoizedProps!==c&&ur(i),Qe(i),i.flags&=-16777217),null;case 27:Ae(i),l=ue.current;var d=i.type;if(n!==null&&i.stateNode!=null)n.memoizedProps!==c&&ur(i);else{if(!c){if(i.stateNode===null)throw Error(a(166));return Qe(i),null}n=se.current,gl(i)?ng(i):(n=Tb(d,c,l),i.stateNode=n,ur(i))}return Qe(i),null;case 5:if(Ae(i),l=i.type,n!==null&&i.stateNode!=null)n.memoizedProps!==c&&ur(i);else{if(!c){if(i.stateNode===null)throw Error(a(166));return Qe(i),null}if(n=se.current,gl(i))ng(i);else{switch(d=Go(ue.current),n){case 1:n=d.createElementNS("http://www.w3.org/2000/svg",l);break;case 2:n=d.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;default:switch(l){case"svg":n=d.createElementNS("http://www.w3.org/2000/svg",l);break;case"math":n=d.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;case"script":n=d.createElement("div"),n.innerHTML="<script><\/script>",n=n.removeChild(n.firstChild);break;case"select":n=typeof c.is=="string"?d.createElement("select",{is:c.is}):d.createElement("select"),c.multiple?n.multiple=!0:c.size&&(n.size=c.size);break;default:n=typeof c.is=="string"?d.createElement(l,{is:c.is}):d.createElement(l)}}n[Ct]=i,n[$t]=c;e:for(d=i.child;d!==null;){if(d.tag===5||d.tag===6)n.appendChild(d.stateNode);else if(d.tag!==4&&d.tag!==27&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===i)break e;for(;d.sibling===null;){if(d.return===null||d.return===i)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}i.stateNode=n;e:switch(Tt(n,l,c),l){case"button":case"input":case"select":case"textarea":n=!!c.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&ur(i)}}return Qe(i),i.flags&=-16777217,null;case 6:if(n&&i.stateNode!=null)n.memoizedProps!==c&&ur(i);else{if(typeof c!="string"&&i.stateNode===null)throw Error(a(166));if(n=ue.current,gl(i)){if(n=i.stateNode,l=i.memoizedProps,c=null,d=Lt,d!==null)switch(d.tag){case 27:case 5:c=d.memoizedProps}n[Ct]=i,n=!!(n.nodeValue===l||c!==null&&c.suppressHydrationWarning===!0||bb(n.nodeValue,l)),n||ga(i)}else n=Go(n).createTextNode(c),n[Ct]=i,i.stateNode=n}return Qe(i),null;case 13:if(c=i.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(d=gl(i),c!==null&&c.dehydrated!==null){if(n===null){if(!d)throw Error(a(318));if(d=i.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(a(317));d[Ct]=i}else bl(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;Qe(i),d=!1}else d=ag(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=d),d=!0;if(!d)return i.flags&256?(ir(i),i):(ir(i),null)}if(ir(i),(i.flags&128)!==0)return i.lanes=l,i;if(l=c!==null,n=n!==null&&n.memoizedState!==null,l){c=i.child,d=null,c.alternate!==null&&c.alternate.memoizedState!==null&&c.alternate.memoizedState.cachePool!==null&&(d=c.alternate.memoizedState.cachePool.pool);var y=null;c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(y=c.memoizedState.cachePool.pool),y!==d&&(c.flags|=2048)}return l!==n&&l&&(i.child.flags|=8192),Do(i,i.updateQueue),Qe(i),null;case 4:return ie(),n===null&&Ed(i.stateNode.containerInfo),Qe(i),null;case 10:return rr(i.type),Qe(i),null;case 19:if(X(ut),d=i.memoizedState,d===null)return Qe(i),null;if(c=(i.flags&128)!==0,y=d.rendering,y===null)if(c)kl(d,!1);else{if(Fe!==0||n!==null&&(n.flags&128)!==0)for(n=i.child;n!==null;){if(y=To(n),y!==null){for(i.flags|=128,kl(d,!1),n=y.updateQueue,i.updateQueue=n,Do(i,n),i.subtreeFlags=0,n=l,l=i.child;l!==null;)eg(l,n),l=l.sibling;return ne(ut,ut.current&1|2),i.child}n=n.sibling}d.tail!==null&&vt()>Ro&&(i.flags|=128,c=!0,kl(d,!1),i.lanes=4194304)}else{if(!c)if(n=To(y),n!==null){if(i.flags|=128,c=!0,n=n.updateQueue,i.updateQueue=n,Do(i,n),kl(d,!0),d.tail===null&&d.tailMode==="hidden"&&!y.alternate&&!Ce)return Qe(i),null}else 2*vt()-d.renderingStartTime>Ro&&l!==536870912&&(i.flags|=128,c=!0,kl(d,!1),i.lanes=4194304);d.isBackwards?(y.sibling=i.child,i.child=y):(n=d.last,n!==null?n.sibling=y:i.child=y,d.last=y)}return d.tail!==null?(i=d.tail,d.rendering=i,d.tail=i.sibling,d.renderingStartTime=vt(),i.sibling=null,n=ut.current,ne(ut,c?n&1|2:n&1),i):(Qe(i),null);case 22:case 23:return ir(i),_f(),c=i.memoizedState!==null,n!==null?n.memoizedState!==null!==c&&(i.flags|=8192):c&&(i.flags|=8192),c?(l&536870912)!==0&&(i.flags&128)===0&&(Qe(i),i.subtreeFlags&6&&(i.flags|=8192)):Qe(i),l=i.updateQueue,l!==null&&Do(i,l.retryQueue),l=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(l=n.memoizedState.cachePool.pool),c=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(c=i.memoizedState.cachePool.pool),c!==l&&(i.flags|=2048),n!==null&&X(Sa),null;case 24:return l=null,n!==null&&(l=n.memoizedState.cache),i.memoizedState.cache!==l&&(i.flags|=2048),rr(lt),Qe(i),null;case 25:return null;case 30:return null}throw Error(a(156,i.tag))}function I_(n,i){switch(hf(i),i.tag){case 1:return n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 3:return rr(lt),ie(),n=i.flags,(n&65536)!==0&&(n&128)===0?(i.flags=n&-65537|128,i):null;case 26:case 27:case 5:return Ae(i),null;case 13:if(ir(i),n=i.memoizedState,n!==null&&n.dehydrated!==null){if(i.alternate===null)throw Error(a(340));bl()}return n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 19:return X(ut),null;case 4:return ie(),null;case 10:return rr(i.type),null;case 22:case 23:return ir(i),_f(),n!==null&&X(Sa),n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 24:return rr(lt),null;case 25:return null;default:return null}}function _0(n,i){switch(hf(i),i.tag){case 3:rr(lt),ie();break;case 26:case 27:case 5:Ae(i);break;case 4:ie();break;case 13:ir(i);break;case 19:X(ut);break;case 10:rr(i.type);break;case 22:case 23:ir(i),_f(),n!==null&&X(Sa);break;case 24:rr(lt)}}function zl(n,i){try{var l=i.updateQueue,c=l!==null?l.lastEffect:null;if(c!==null){var d=c.next;l=d;do{if((l.tag&n)===n){c=void 0;var y=l.create,x=l.inst;c=y(),x.destroy=c}l=l.next}while(l!==d)}}catch(A){He(i,i.return,A)}}function Br(n,i,l){try{var c=i.updateQueue,d=c!==null?c.lastEffect:null;if(d!==null){var y=d.next;c=y;do{if((c.tag&n)===n){var x=c.inst,A=x.destroy;if(A!==void 0){x.destroy=void 0,d=i;var C=l,q=A;try{q()}catch(G){He(d,C,G)}}}c=c.next}while(c!==y)}}catch(G){He(i,i.return,G)}}function j0(n){var i=n.updateQueue;if(i!==null){var l=n.stateNode;try{mg(i,l)}catch(c){He(n,n.return,c)}}}function M0(n,i,l){l.props=Oa(n.type,n.memoizedProps),l.state=n.memoizedState;try{l.componentWillUnmount()}catch(c){He(n,i,c)}}function Bl(n,i){try{var l=n.ref;if(l!==null){switch(n.tag){case 26:case 27:case 5:var c=n.stateNode;break;case 30:c=n.stateNode;break;default:c=n.stateNode}typeof l=="function"?n.refCleanup=l(c):l.current=c}}catch(d){He(n,i,d)}}function Gn(n,i){var l=n.ref,c=n.refCleanup;if(l!==null)if(typeof c=="function")try{c()}catch(d){He(n,i,d)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(d){He(n,i,d)}else l.current=null}function C0(n){var i=n.type,l=n.memoizedProps,c=n.stateNode;try{e:switch(i){case"button":case"input":case"select":case"textarea":l.autoFocus&&c.focus();break e;case"img":l.src?c.src=l.src:l.srcSet&&(c.srcset=l.srcSet)}}catch(d){He(n,n.return,d)}}function td(n,i,l){try{var c=n.stateNode;hj(c,n.type,l,i),c[$t]=i}catch(d){He(n,n.return,d)}}function D0(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&Kr(n.type)||n.tag===4}function nd(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||D0(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.tag===27&&Kr(n.type)||n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function rd(n,i,l){var c=n.tag;if(c===5||c===6)n=n.stateNode,i?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(n,i):(i=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,i.appendChild(n),l=l._reactRootContainer,l!=null||i.onclick!==null||(i.onclick=Yo));else if(c!==4&&(c===27&&Kr(n.type)&&(l=n.stateNode,i=null),n=n.child,n!==null))for(rd(n,i,l),n=n.sibling;n!==null;)rd(n,i,l),n=n.sibling}function No(n,i,l){var c=n.tag;if(c===5||c===6)n=n.stateNode,i?l.insertBefore(n,i):l.appendChild(n);else if(c!==4&&(c===27&&Kr(n.type)&&(l=n.stateNode),n=n.child,n!==null))for(No(n,i,l),n=n.sibling;n!==null;)No(n,i,l),n=n.sibling}function N0(n){var i=n.stateNode,l=n.memoizedProps;try{for(var c=n.type,d=i.attributes;d.length;)i.removeAttributeNode(d[0]);Tt(i,c,l),i[Ct]=n,i[$t]=l}catch(y){He(n,n.return,y)}}var or=!1,tt=!1,ad=!1,P0=typeof WeakSet=="function"?WeakSet:Set,pt=null;function X_(n,i){if(n=n.containerInfo,jd=Qo,n=Gp(n),tf(n)){if("selectionStart"in n)var l={start:n.selectionStart,end:n.selectionEnd};else e:{l=(l=n.ownerDocument)&&l.defaultView||window;var c=l.getSelection&&l.getSelection();if(c&&c.rangeCount!==0){l=c.anchorNode;var d=c.anchorOffset,y=c.focusNode;c=c.focusOffset;try{l.nodeType,y.nodeType}catch{l=null;break e}var x=0,A=-1,C=-1,q=0,G=0,Q=n,$=null;t:for(;;){for(var H;Q!==l||d!==0&&Q.nodeType!==3||(A=x+d),Q!==y||c!==0&&Q.nodeType!==3||(C=x+c),Q.nodeType===3&&(x+=Q.nodeValue.length),(H=Q.firstChild)!==null;)$=Q,Q=H;for(;;){if(Q===n)break t;if($===l&&++q===d&&(A=x),$===y&&++G===c&&(C=x),(H=Q.nextSibling)!==null)break;Q=$,$=Q.parentNode}Q=H}l=A===-1||C===-1?null:{start:A,end:C}}else l=null}l=l||{start:0,end:0}}else l=null;for(Md={focusedElem:n,selectionRange:l},Qo=!1,pt=i;pt!==null;)if(i=pt,n=i.child,(i.subtreeFlags&1024)!==0&&n!==null)n.return=i,pt=n;else for(;pt!==null;){switch(i=pt,y=i.alternate,n=i.flags,i.tag){case 0:break;case 11:case 15:break;case 1:if((n&1024)!==0&&y!==null){n=void 0,l=i,d=y.memoizedProps,y=y.memoizedState,c=l.stateNode;try{var pe=Oa(l.type,d,l.elementType===l.type);n=c.getSnapshotBeforeUpdate(pe,y),c.__reactInternalSnapshotBeforeUpdate=n}catch(ve){He(l,l.return,ve)}}break;case 3:if((n&1024)!==0){if(n=i.stateNode.containerInfo,l=n.nodeType,l===9)Nd(n);else if(l===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":Nd(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((n&1024)!==0)throw Error(a(163))}if(n=i.sibling,n!==null){n.return=i.return,pt=n;break}pt=i.return}}function R0(n,i,l){var c=l.flags;switch(l.tag){case 0:case 11:case 15:Lr(n,l),c&4&&zl(5,l);break;case 1:if(Lr(n,l),c&4)if(n=l.stateNode,i===null)try{n.componentDidMount()}catch(x){He(l,l.return,x)}else{var d=Oa(l.type,i.memoizedProps);i=i.memoizedState;try{n.componentDidUpdate(d,i,n.__reactInternalSnapshotBeforeUpdate)}catch(x){He(l,l.return,x)}}c&64&&j0(l),c&512&&Bl(l,l.return);break;case 3:if(Lr(n,l),c&64&&(n=l.updateQueue,n!==null)){if(i=null,l.child!==null)switch(l.child.tag){case 27:case 5:i=l.child.stateNode;break;case 1:i=l.child.stateNode}try{mg(n,i)}catch(x){He(l,l.return,x)}}break;case 27:i===null&&c&4&&N0(l);case 26:case 5:Lr(n,l),i===null&&c&4&&C0(l),c&512&&Bl(l,l.return);break;case 12:Lr(n,l);break;case 13:Lr(n,l),c&4&&B0(n,l),c&64&&(n=l.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(l=nj.bind(null,l),xj(n,l))));break;case 22:if(c=l.memoizedState!==null||or,!c){i=i!==null&&i.memoizedState!==null||tt,d=or;var y=tt;or=c,(tt=i)&&!y?Ur(n,l,(l.subtreeFlags&8772)!==0):Lr(n,l),or=d,tt=y}break;case 30:break;default:Lr(n,l)}}function k0(n){var i=n.alternate;i!==null&&(n.alternate=null,k0(i)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(i=n.stateNode,i!==null&&zs(i)),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}var Ve=null,Gt=!1;function cr(n,i,l){for(l=l.child;l!==null;)z0(n,i,l),l=l.sibling}function z0(n,i,l){if(Qt&&typeof Qt.onCommitFiberUnmount=="function")try{Qt.onCommitFiberUnmount(al,l)}catch{}switch(l.tag){case 26:tt||Gn(l,i),cr(n,i,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:tt||Gn(l,i);var c=Ve,d=Gt;Kr(l.type)&&(Ve=l.stateNode,Gt=!1),cr(n,i,l),Il(l.stateNode),Ve=c,Gt=d;break;case 5:tt||Gn(l,i);case 6:if(c=Ve,d=Gt,Ve=null,cr(n,i,l),Ve=c,Gt=d,Ve!==null)if(Gt)try{(Ve.nodeType===9?Ve.body:Ve.nodeName==="HTML"?Ve.ownerDocument.body:Ve).removeChild(l.stateNode)}catch(y){He(l,i,y)}else try{Ve.removeChild(l.stateNode)}catch(y){He(l,i,y)}break;case 18:Ve!==null&&(Gt?(n=Ve,Ab(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,l.stateNode),eu(n)):Ab(Ve,l.stateNode));break;case 4:c=Ve,d=Gt,Ve=l.stateNode.containerInfo,Gt=!0,cr(n,i,l),Ve=c,Gt=d;break;case 0:case 11:case 14:case 15:tt||Br(2,l,i),tt||Br(4,l,i),cr(n,i,l);break;case 1:tt||(Gn(l,i),c=l.stateNode,typeof c.componentWillUnmount=="function"&&M0(l,i,c)),cr(n,i,l);break;case 21:cr(n,i,l);break;case 22:tt=(c=tt)||l.memoizedState!==null,cr(n,i,l),tt=c;break;default:cr(n,i,l)}}function B0(n,i){if(i.memoizedState===null&&(n=i.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{eu(n)}catch(l){He(i,i.return,l)}}function V_(n){switch(n.tag){case 13:case 19:var i=n.stateNode;return i===null&&(i=n.stateNode=new P0),i;case 22:return n=n.stateNode,i=n._retryCache,i===null&&(i=n._retryCache=new P0),i;default:throw Error(a(435,n.tag))}}function id(n,i){var l=V_(n);i.forEach(function(c){var d=rj.bind(null,n,c);l.has(c)||(l.add(c),c.then(d,d))})}function en(n,i){var l=i.deletions;if(l!==null)for(var c=0;c<l.length;c++){var d=l[c],y=n,x=i,A=x;e:for(;A!==null;){switch(A.tag){case 27:if(Kr(A.type)){Ve=A.stateNode,Gt=!1;break e}break;case 5:Ve=A.stateNode,Gt=!1;break e;case 3:case 4:Ve=A.stateNode.containerInfo,Gt=!0;break e}A=A.return}if(Ve===null)throw Error(a(160));z0(y,x,d),Ve=null,Gt=!1,y=d.alternate,y!==null&&(y.return=null),d.return=null}if(i.subtreeFlags&13878)for(i=i.child;i!==null;)L0(i,n),i=i.sibling}var kn=null;function L0(n,i){var l=n.alternate,c=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:en(i,n),tn(n),c&4&&(Br(3,n,n.return),zl(3,n),Br(5,n,n.return));break;case 1:en(i,n),tn(n),c&512&&(tt||l===null||Gn(l,l.return)),c&64&&or&&(n=n.updateQueue,n!==null&&(c=n.callbacks,c!==null&&(l=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=l===null?c:l.concat(c))));break;case 26:var d=kn;if(en(i,n),tn(n),c&512&&(tt||l===null||Gn(l,l.return)),c&4){var y=l!==null?l.memoizedState:null;if(c=n.memoizedState,l===null)if(c===null)if(n.stateNode===null){e:{c=n.type,l=n.memoizedProps,d=d.ownerDocument||d;t:switch(c){case"title":y=d.getElementsByTagName("title")[0],(!y||y[ul]||y[Ct]||y.namespaceURI==="http://www.w3.org/2000/svg"||y.hasAttribute("itemprop"))&&(y=d.createElement(c),d.head.insertBefore(y,d.querySelector("head > title"))),Tt(y,c,l),y[Ct]=n,mt(y),c=y;break e;case"link":var x=Nb("link","href",d).get(c+(l.href||""));if(x){for(var A=0;A<x.length;A++)if(y=x[A],y.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&y.getAttribute("rel")===(l.rel==null?null:l.rel)&&y.getAttribute("title")===(l.title==null?null:l.title)&&y.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){x.splice(A,1);break t}}y=d.createElement(c),Tt(y,c,l),d.head.appendChild(y);break;case"meta":if(x=Nb("meta","content",d).get(c+(l.content||""))){for(A=0;A<x.length;A++)if(y=x[A],y.getAttribute("content")===(l.content==null?null:""+l.content)&&y.getAttribute("name")===(l.name==null?null:l.name)&&y.getAttribute("property")===(l.property==null?null:l.property)&&y.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&y.getAttribute("charset")===(l.charSet==null?null:l.charSet)){x.splice(A,1);break t}}y=d.createElement(c),Tt(y,c,l),d.head.appendChild(y);break;default:throw Error(a(468,c))}y[Ct]=n,mt(y),c=y}n.stateNode=c}else Pb(d,n.type,n.stateNode);else n.stateNode=Db(d,c,n.memoizedProps);else y!==c?(y===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):y.count--,c===null?Pb(d,n.type,n.stateNode):Db(d,c,n.memoizedProps)):c===null&&n.stateNode!==null&&td(n,n.memoizedProps,l.memoizedProps)}break;case 27:en(i,n),tn(n),c&512&&(tt||l===null||Gn(l,l.return)),l!==null&&c&4&&td(n,n.memoizedProps,l.memoizedProps);break;case 5:if(en(i,n),tn(n),c&512&&(tt||l===null||Gn(l,l.return)),n.flags&32){d=n.stateNode;try{ti(d,"")}catch(H){He(n,n.return,H)}}c&4&&n.stateNode!=null&&(d=n.memoizedProps,td(n,d,l!==null?l.memoizedProps:d)),c&1024&&(ad=!0);break;case 6:if(en(i,n),tn(n),c&4){if(n.stateNode===null)throw Error(a(162));c=n.memoizedProps,l=n.stateNode;try{l.nodeValue=c}catch(H){He(n,n.return,H)}}break;case 3:if(Xo=null,d=kn,kn=Ko(i.containerInfo),en(i,n),kn=d,tn(n),c&4&&l!==null&&l.memoizedState.isDehydrated)try{eu(i.containerInfo)}catch(H){He(n,n.return,H)}ad&&(ad=!1,U0(n));break;case 4:c=kn,kn=Ko(n.stateNode.containerInfo),en(i,n),tn(n),kn=c;break;case 12:en(i,n),tn(n);break;case 13:en(i,n),tn(n),n.child.flags&8192&&n.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(fd=vt()),c&4&&(c=n.updateQueue,c!==null&&(n.updateQueue=null,id(n,c)));break;case 22:d=n.memoizedState!==null;var C=l!==null&&l.memoizedState!==null,q=or,G=tt;if(or=q||d,tt=G||C,en(i,n),tt=G,or=q,tn(n),c&8192)e:for(i=n.stateNode,i._visibility=d?i._visibility&-2:i._visibility|1,d&&(l===null||C||or||tt||Aa(n)),l=null,i=n;;){if(i.tag===5||i.tag===26){if(l===null){C=l=i;try{if(y=C.stateNode,d)x=y.style,typeof x.setProperty=="function"?x.setProperty("display","none","important"):x.display="none";else{A=C.stateNode;var Q=C.memoizedProps.style,$=Q!=null&&Q.hasOwnProperty("display")?Q.display:null;A.style.display=$==null||typeof $=="boolean"?"":(""+$).trim()}}catch(H){He(C,C.return,H)}}}else if(i.tag===6){if(l===null){C=i;try{C.stateNode.nodeValue=d?"":C.memoizedProps}catch(H){He(C,C.return,H)}}}else if((i.tag!==22&&i.tag!==23||i.memoizedState===null||i===n)&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===n)break e;for(;i.sibling===null;){if(i.return===null||i.return===n)break e;l===i&&(l=null),i=i.return}l===i&&(l=null),i.sibling.return=i.return,i=i.sibling}c&4&&(c=n.updateQueue,c!==null&&(l=c.retryQueue,l!==null&&(c.retryQueue=null,id(n,l))));break;case 19:en(i,n),tn(n),c&4&&(c=n.updateQueue,c!==null&&(n.updateQueue=null,id(n,c)));break;case 30:break;case 21:break;default:en(i,n),tn(n)}}function tn(n){var i=n.flags;if(i&2){try{for(var l,c=n.return;c!==null;){if(D0(c)){l=c;break}c=c.return}if(l==null)throw Error(a(160));switch(l.tag){case 27:var d=l.stateNode,y=nd(n);No(n,y,d);break;case 5:var x=l.stateNode;l.flags&32&&(ti(x,""),l.flags&=-33);var A=nd(n);No(n,A,x);break;case 3:case 4:var C=l.stateNode.containerInfo,q=nd(n);rd(n,q,C);break;default:throw Error(a(161))}}catch(G){He(n,n.return,G)}n.flags&=-3}i&4096&&(n.flags&=-4097)}function U0(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var i=n;U0(i),i.tag===5&&i.flags&1024&&i.stateNode.reset(),n=n.sibling}}function Lr(n,i){if(i.subtreeFlags&8772)for(i=i.child;i!==null;)R0(n,i.alternate,i),i=i.sibling}function Aa(n){for(n=n.child;n!==null;){var i=n;switch(i.tag){case 0:case 11:case 14:case 15:Br(4,i,i.return),Aa(i);break;case 1:Gn(i,i.return);var l=i.stateNode;typeof l.componentWillUnmount=="function"&&M0(i,i.return,l),Aa(i);break;case 27:Il(i.stateNode);case 26:case 5:Gn(i,i.return),Aa(i);break;case 22:i.memoizedState===null&&Aa(i);break;case 30:Aa(i);break;default:Aa(i)}n=n.sibling}}function Ur(n,i,l){for(l=l&&(i.subtreeFlags&8772)!==0,i=i.child;i!==null;){var c=i.alternate,d=n,y=i,x=y.flags;switch(y.tag){case 0:case 11:case 15:Ur(d,y,l),zl(4,y);break;case 1:if(Ur(d,y,l),c=y,d=c.stateNode,typeof d.componentDidMount=="function")try{d.componentDidMount()}catch(q){He(c,c.return,q)}if(c=y,d=c.updateQueue,d!==null){var A=c.stateNode;try{var C=d.shared.hiddenCallbacks;if(C!==null)for(d.shared.hiddenCallbacks=null,d=0;d<C.length;d++)vg(C[d],A)}catch(q){He(c,c.return,q)}}l&&x&64&&j0(y),Bl(y,y.return);break;case 27:N0(y);case 26:case 5:Ur(d,y,l),l&&c===null&&x&4&&C0(y),Bl(y,y.return);break;case 12:Ur(d,y,l);break;case 13:Ur(d,y,l),l&&x&4&&B0(d,y);break;case 22:y.memoizedState===null&&Ur(d,y,l),Bl(y,y.return);break;case 30:break;default:Ur(d,y,l)}i=i.sibling}}function ld(n,i){var l=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(l=n.memoizedState.cachePool.pool),n=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(n=i.memoizedState.cachePool.pool),n!==l&&(n!=null&&n.refCount++,l!=null&&wl(l))}function ud(n,i){n=null,i.alternate!==null&&(n=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==n&&(i.refCount++,n!=null&&wl(n))}function Kn(n,i,l,c){if(i.subtreeFlags&10256)for(i=i.child;i!==null;)q0(n,i,l,c),i=i.sibling}function q0(n,i,l,c){var d=i.flags;switch(i.tag){case 0:case 11:case 15:Kn(n,i,l,c),d&2048&&zl(9,i);break;case 1:Kn(n,i,l,c);break;case 3:Kn(n,i,l,c),d&2048&&(n=null,i.alternate!==null&&(n=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==n&&(i.refCount++,n!=null&&wl(n)));break;case 12:if(d&2048){Kn(n,i,l,c),n=i.stateNode;try{var y=i.memoizedProps,x=y.id,A=y.onPostCommit;typeof A=="function"&&A(x,i.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(C){He(i,i.return,C)}}else Kn(n,i,l,c);break;case 13:Kn(n,i,l,c);break;case 23:break;case 22:y=i.stateNode,x=i.alternate,i.memoizedState!==null?y._visibility&2?Kn(n,i,l,c):Ll(n,i):y._visibility&2?Kn(n,i,l,c):(y._visibility|=2,xi(n,i,l,c,(i.subtreeFlags&10256)!==0)),d&2048&&ld(x,i);break;case 24:Kn(n,i,l,c),d&2048&&ud(i.alternate,i);break;default:Kn(n,i,l,c)}}function xi(n,i,l,c,d){for(d=d&&(i.subtreeFlags&10256)!==0,i=i.child;i!==null;){var y=n,x=i,A=l,C=c,q=x.flags;switch(x.tag){case 0:case 11:case 15:xi(y,x,A,C,d),zl(8,x);break;case 23:break;case 22:var G=x.stateNode;x.memoizedState!==null?G._visibility&2?xi(y,x,A,C,d):Ll(y,x):(G._visibility|=2,xi(y,x,A,C,d)),d&&q&2048&&ld(x.alternate,x);break;case 24:xi(y,x,A,C,d),d&&q&2048&&ud(x.alternate,x);break;default:xi(y,x,A,C,d)}i=i.sibling}}function Ll(n,i){if(i.subtreeFlags&10256)for(i=i.child;i!==null;){var l=n,c=i,d=c.flags;switch(c.tag){case 22:Ll(l,c),d&2048&&ld(c.alternate,c);break;case 24:Ll(l,c),d&2048&&ud(c.alternate,c);break;default:Ll(l,c)}i=i.sibling}}var Ul=8192;function Si(n){if(n.subtreeFlags&Ul)for(n=n.child;n!==null;)$0(n),n=n.sibling}function $0(n){switch(n.tag){case 26:Si(n),n.flags&Ul&&n.memoizedState!==null&&Pj(kn,n.memoizedState,n.memoizedProps);break;case 5:Si(n);break;case 3:case 4:var i=kn;kn=Ko(n.stateNode.containerInfo),Si(n),kn=i;break;case 22:n.memoizedState===null&&(i=n.alternate,i!==null&&i.memoizedState!==null?(i=Ul,Ul=16777216,Si(n),Ul=i):Si(n));break;default:Si(n)}}function H0(n){var i=n.alternate;if(i!==null&&(n=i.child,n!==null)){i.child=null;do i=n.sibling,n.sibling=null,n=i;while(n!==null)}}function ql(n){var i=n.deletions;if((n.flags&16)!==0){if(i!==null)for(var l=0;l<i.length;l++){var c=i[l];pt=c,G0(c,n)}H0(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Y0(n),n=n.sibling}function Y0(n){switch(n.tag){case 0:case 11:case 15:ql(n),n.flags&2048&&Br(9,n,n.return);break;case 3:ql(n);break;case 12:ql(n);break;case 22:var i=n.stateNode;n.memoizedState!==null&&i._visibility&2&&(n.return===null||n.return.tag!==13)?(i._visibility&=-3,Po(n)):ql(n);break;default:ql(n)}}function Po(n){var i=n.deletions;if((n.flags&16)!==0){if(i!==null)for(var l=0;l<i.length;l++){var c=i[l];pt=c,G0(c,n)}H0(n)}for(n=n.child;n!==null;){switch(i=n,i.tag){case 0:case 11:case 15:Br(8,i,i.return),Po(i);break;case 22:l=i.stateNode,l._visibility&2&&(l._visibility&=-3,Po(i));break;default:Po(i)}n=n.sibling}}function G0(n,i){for(;pt!==null;){var l=pt;switch(l.tag){case 0:case 11:case 15:Br(8,l,i);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var c=l.memoizedState.cachePool.pool;c!=null&&c.refCount++}break;case 24:wl(l.memoizedState.cache)}if(c=l.child,c!==null)c.return=l,pt=c;else e:for(l=n;pt!==null;){c=pt;var d=c.sibling,y=c.return;if(k0(c),c===l){pt=null;break e}if(d!==null){d.return=y,pt=d;break e}pt=y}}}var Z_={getCacheForType:function(n){var i=Dt(lt),l=i.data.get(n);return l===void 0&&(l=n(),i.data.set(n,l)),l}},Q_=typeof WeakMap=="function"?WeakMap:Map,Pe=0,Ge=null,Ee=null,_e=0,Re=0,nn=null,qr=!1,wi=!1,od=!1,sr=0,Fe=0,$r=0,Ea=0,cd=0,On=0,Oi=0,$l=null,Kt=null,sd=!1,fd=0,Ro=1/0,ko=null,Hr=null,Et=0,Yr=null,Ai=null,Ei=0,dd=0,hd=null,K0=null,Hl=0,vd=null;function rn(){if((Pe&2)!==0&&_e!==0)return _e&-_e;if(L.T!==null){var n=di;return n!==0?n:Sd()}return up()}function I0(){On===0&&(On=(_e&536870912)===0||Ce?rp():536870912);var n=wn.current;return n!==null&&(n.flags|=32),On}function an(n,i,l){(n===Ge&&(Re===2||Re===9)||n.cancelPendingCommit!==null)&&(Ti(n,0),Gr(n,_e,On,!1)),ll(n,l),((Pe&2)===0||n!==Ge)&&(n===Ge&&((Pe&2)===0&&(Ea|=l),Fe===4&&Gr(n,_e,On,!1)),In(n))}function X0(n,i,l){if((Pe&6)!==0)throw Error(a(327));var c=!l&&(i&124)===0&&(i&n.expiredLanes)===0||il(n,i),d=c?J_(n,i):pd(n,i,!0),y=c;do{if(d===0){wi&&!c&&Gr(n,i,0,!1);break}else{if(l=n.current.alternate,y&&!W_(l)){d=pd(n,i,!1),y=!1;continue}if(d===2){if(y=i,n.errorRecoveryDisabledLanes&y)var x=0;else x=n.pendingLanes&-536870913,x=x!==0?x:x&536870912?536870912:0;if(x!==0){i=x;e:{var A=n;d=$l;var C=A.current.memoizedState.isDehydrated;if(C&&(Ti(A,x).flags|=256),x=pd(A,x,!1),x!==2){if(od&&!C){A.errorRecoveryDisabledLanes|=y,Ea|=y,d=4;break e}y=Kt,Kt=d,y!==null&&(Kt===null?Kt=y:Kt.push.apply(Kt,y))}d=x}if(y=!1,d!==2)continue}}if(d===1){Ti(n,0),Gr(n,i,0,!0);break}e:{switch(c=n,y=d,y){case 0:case 1:throw Error(a(345));case 4:if((i&4194048)!==i)break;case 6:Gr(c,i,On,!qr);break e;case 2:Kt=null;break;case 3:case 5:break;default:throw Error(a(329))}if((i&62914560)===i&&(d=fd+300-vt(),10<d)){if(Gr(c,i,On,!qr),Ku(c,0,!0)!==0)break e;c.timeoutHandle=wb(V0.bind(null,c,l,Kt,ko,sd,i,On,Ea,Oi,qr,y,2,-0,0),d);break e}V0(c,l,Kt,ko,sd,i,On,Ea,Oi,qr,y,0,-0,0)}}break}while(!0);In(n)}function V0(n,i,l,c,d,y,x,A,C,q,G,Q,$,H){if(n.timeoutHandle=-1,Q=i.subtreeFlags,(Q&8192||(Q&16785408)===16785408)&&(Zl={stylesheets:null,count:0,unsuspend:Nj},$0(i),Q=Rj(),Q!==null)){n.cancelPendingCommit=Q(tb.bind(null,n,i,y,l,c,d,x,A,C,G,1,$,H)),Gr(n,y,x,!q);return}tb(n,i,y,l,c,d,x,A,C)}function W_(n){for(var i=n;;){var l=i.tag;if((l===0||l===11||l===15)&&i.flags&16384&&(l=i.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var c=0;c<l.length;c++){var d=l[c],y=d.getSnapshot;d=d.value;try{if(!Ft(y(),d))return!1}catch{return!1}}if(l=i.child,i.subtreeFlags&16384&&l!==null)l.return=i,i=l;else{if(i===n)break;for(;i.sibling===null;){if(i.return===null||i.return===n)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function Gr(n,i,l,c){i&=~cd,i&=~Ea,n.suspendedLanes|=i,n.pingedLanes&=~i,c&&(n.warmLanes|=i),c=n.expirationTimes;for(var d=i;0<d;){var y=31-Wt(d),x=1<<y;c[y]=-1,d&=~x}l!==0&&ip(n,l,i)}function zo(){return(Pe&6)===0?(Yl(0),!1):!0}function md(){if(Ee!==null){if(Re===0)var n=Ee.return;else n=Ee,nr=ba=null,Nf(n),gi=null,Pl=0,n=Ee;for(;n!==null;)_0(n.alternate,n),n=n.return;Ee=null}}function Ti(n,i){var l=n.timeoutHandle;l!==-1&&(n.timeoutHandle=-1,mj(l)),l=n.cancelPendingCommit,l!==null&&(n.cancelPendingCommit=null,l()),md(),Ge=n,Ee=l=Jn(n.current,null),_e=i,Re=0,nn=null,qr=!1,wi=il(n,i),od=!1,Oi=On=cd=Ea=$r=Fe=0,Kt=$l=null,sd=!1,(i&8)!==0&&(i|=i&32);var c=n.entangledLanes;if(c!==0)for(n=n.entanglements,c&=i;0<c;){var d=31-Wt(c),y=1<<d;i|=n[d],c&=~y}return sr=i,ro(),l}function Z0(n,i){we=null,L.H=Oo,i===Al||i===ho?(i=dg(),Re=3):i===cg?(i=dg(),Re=4):Re=i===h0?8:i!==null&&typeof i=="object"&&typeof i.then=="function"?6:1,nn=i,Ee===null&&(Fe=1,jo(n,gn(i,n.current)))}function Q0(){var n=L.H;return L.H=Oo,n===null?Oo:n}function W0(){var n=L.A;return L.A=Z_,n}function yd(){Fe=4,qr||(_e&4194048)!==_e&&wn.current!==null||(wi=!0),($r&134217727)===0&&(Ea&134217727)===0||Ge===null||Gr(Ge,_e,On,!1)}function pd(n,i,l){var c=Pe;Pe|=2;var d=Q0(),y=W0();(Ge!==n||_e!==i)&&(ko=null,Ti(n,i)),i=!1;var x=Fe;e:do try{if(Re!==0&&Ee!==null){var A=Ee,C=nn;switch(Re){case 8:md(),x=6;break e;case 3:case 2:case 9:case 6:wn.current===null&&(i=!0);var q=Re;if(Re=0,nn=null,_i(n,A,C,q),l&&wi){x=0;break e}break;default:q=Re,Re=0,nn=null,_i(n,A,C,q)}}F_(),x=Fe;break}catch(G){Z0(n,G)}while(!0);return i&&n.shellSuspendCounter++,nr=ba=null,Pe=c,L.H=d,L.A=y,Ee===null&&(Ge=null,_e=0,ro()),x}function F_(){for(;Ee!==null;)F0(Ee)}function J_(n,i){var l=Pe;Pe|=2;var c=Q0(),d=W0();Ge!==n||_e!==i?(ko=null,Ro=vt()+500,Ti(n,i)):wi=il(n,i);e:do try{if(Re!==0&&Ee!==null){i=Ee;var y=nn;t:switch(Re){case 1:Re=0,nn=null,_i(n,i,y,1);break;case 2:case 9:if(sg(y)){Re=0,nn=null,J0(i);break}i=function(){Re!==2&&Re!==9||Ge!==n||(Re=7),In(n)},y.then(i,i);break e;case 3:Re=7;break e;case 4:Re=5;break e;case 7:sg(y)?(Re=0,nn=null,J0(i)):(Re=0,nn=null,_i(n,i,y,7));break;case 5:var x=null;switch(Ee.tag){case 26:x=Ee.memoizedState;case 5:case 27:var A=Ee;if(!x||Rb(x)){Re=0,nn=null;var C=A.sibling;if(C!==null)Ee=C;else{var q=A.return;q!==null?(Ee=q,Bo(q)):Ee=null}break t}}Re=0,nn=null,_i(n,i,y,5);break;case 6:Re=0,nn=null,_i(n,i,y,6);break;case 8:md(),Fe=6;break e;default:throw Error(a(462))}}ej();break}catch(G){Z0(n,G)}while(!0);return nr=ba=null,L.H=c,L.A=d,Pe=l,Ee!==null?0:(Ge=null,_e=0,ro(),Fe)}function ej(){for(;Ee!==null&&!zt();)F0(Ee)}function F0(n){var i=E0(n.alternate,n,sr);n.memoizedProps=n.pendingProps,i===null?Bo(n):Ee=i}function J0(n){var i=n,l=i.alternate;switch(i.tag){case 15:case 0:i=b0(l,i,i.pendingProps,i.type,void 0,_e);break;case 11:i=b0(l,i,i.pendingProps,i.type.render,i.ref,_e);break;case 5:Nf(i);default:_0(l,i),i=Ee=eg(i,sr),i=E0(l,i,sr)}n.memoizedProps=n.pendingProps,i===null?Bo(n):Ee=i}function _i(n,i,l,c){nr=ba=null,Nf(i),gi=null,Pl=0;var d=i.return;try{if(Y_(n,d,i,l,_e)){Fe=1,jo(n,gn(l,n.current)),Ee=null;return}}catch(y){if(d!==null)throw Ee=d,y;Fe=1,jo(n,gn(l,n.current)),Ee=null;return}i.flags&32768?(Ce||c===1?n=!0:wi||(_e&536870912)!==0?n=!1:(qr=n=!0,(c===2||c===9||c===3||c===6)&&(c=wn.current,c!==null&&c.tag===13&&(c.flags|=16384))),eb(i,n)):Bo(i)}function Bo(n){var i=n;do{if((i.flags&32768)!==0){eb(i,qr);return}n=i.return;var l=K_(i.alternate,i,sr);if(l!==null){Ee=l;return}if(i=i.sibling,i!==null){Ee=i;return}Ee=i=n}while(i!==null);Fe===0&&(Fe=5)}function eb(n,i){do{var l=I_(n.alternate,n);if(l!==null){l.flags&=32767,Ee=l;return}if(l=n.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!i&&(n=n.sibling,n!==null)){Ee=n;return}Ee=n=l}while(n!==null);Fe=6,Ee=null}function tb(n,i,l,c,d,y,x,A,C){n.cancelPendingCommit=null;do Lo();while(Et!==0);if((Pe&6)!==0)throw Error(a(327));if(i!==null){if(i===n.current)throw Error(a(177));if(y=i.lanes|i.childLanes,y|=uf,NT(n,l,y,x,A,C),n===Ge&&(Ee=Ge=null,_e=0),Ai=i,Yr=n,Ei=l,dd=y,hd=d,K0=c,(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?(n.callbackNode=null,n.callbackPriority=0,aj(Hu,function(){return lb(),null})):(n.callbackNode=null,n.callbackPriority=0),c=(i.flags&13878)!==0,(i.subtreeFlags&13878)!==0||c){c=L.T,L.T=null,d=V.p,V.p=2,x=Pe,Pe|=4;try{X_(n,i,l)}finally{Pe=x,V.p=d,L.T=c}}Et=1,nb(),rb(),ab()}}function nb(){if(Et===1){Et=0;var n=Yr,i=Ai,l=(i.flags&13878)!==0;if((i.subtreeFlags&13878)!==0||l){l=L.T,L.T=null;var c=V.p;V.p=2;var d=Pe;Pe|=4;try{L0(i,n);var y=Md,x=Gp(n.containerInfo),A=y.focusedElem,C=y.selectionRange;if(x!==A&&A&&A.ownerDocument&&Yp(A.ownerDocument.documentElement,A)){if(C!==null&&tf(A)){var q=C.start,G=C.end;if(G===void 0&&(G=q),"selectionStart"in A)A.selectionStart=q,A.selectionEnd=Math.min(G,A.value.length);else{var Q=A.ownerDocument||document,$=Q&&Q.defaultView||window;if($.getSelection){var H=$.getSelection(),pe=A.textContent.length,ve=Math.min(C.start,pe),qe=C.end===void 0?ve:Math.min(C.end,pe);!H.extend&&ve>qe&&(x=qe,qe=ve,ve=x);var z=Hp(A,ve),P=Hp(A,qe);if(z&&P&&(H.rangeCount!==1||H.anchorNode!==z.node||H.anchorOffset!==z.offset||H.focusNode!==P.node||H.focusOffset!==P.offset)){var B=Q.createRange();B.setStart(z.node,z.offset),H.removeAllRanges(),ve>qe?(H.addRange(B),H.extend(P.node,P.offset)):(B.setEnd(P.node,P.offset),H.addRange(B))}}}}for(Q=[],H=A;H=H.parentNode;)H.nodeType===1&&Q.push({element:H,left:H.scrollLeft,top:H.scrollTop});for(typeof A.focus=="function"&&A.focus(),A=0;A<Q.length;A++){var I=Q[A];I.element.scrollLeft=I.left,I.element.scrollTop=I.top}}Qo=!!jd,Md=jd=null}finally{Pe=d,V.p=c,L.T=l}}n.current=i,Et=2}}function rb(){if(Et===2){Et=0;var n=Yr,i=Ai,l=(i.flags&8772)!==0;if((i.subtreeFlags&8772)!==0||l){l=L.T,L.T=null;var c=V.p;V.p=2;var d=Pe;Pe|=4;try{R0(n,i.alternate,i)}finally{Pe=d,V.p=c,L.T=l}}Et=3}}function ab(){if(Et===4||Et===3){Et=0,Bt();var n=Yr,i=Ai,l=Ei,c=K0;(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?Et=5:(Et=0,Ai=Yr=null,ib(n,n.pendingLanes));var d=n.pendingLanes;if(d===0&&(Hr=null),Rs(l),i=i.stateNode,Qt&&typeof Qt.onCommitFiberRoot=="function")try{Qt.onCommitFiberRoot(al,i,void 0,(i.current.flags&128)===128)}catch{}if(c!==null){i=L.T,d=V.p,V.p=2,L.T=null;try{for(var y=n.onRecoverableError,x=0;x<c.length;x++){var A=c[x];y(A.value,{componentStack:A.stack})}}finally{L.T=i,V.p=d}}(Ei&3)!==0&&Lo(),In(n),d=n.pendingLanes,(l&4194090)!==0&&(d&42)!==0?n===vd?Hl++:(Hl=0,vd=n):Hl=0,Yl(0)}}function ib(n,i){(n.pooledCacheLanes&=i)===0&&(i=n.pooledCache,i!=null&&(n.pooledCache=null,wl(i)))}function Lo(n){return nb(),rb(),ab(),lb()}function lb(){if(Et!==5)return!1;var n=Yr,i=dd;dd=0;var l=Rs(Ei),c=L.T,d=V.p;try{V.p=32>l?32:l,L.T=null,l=hd,hd=null;var y=Yr,x=Ei;if(Et=0,Ai=Yr=null,Ei=0,(Pe&6)!==0)throw Error(a(331));var A=Pe;if(Pe|=4,Y0(y.current),q0(y,y.current,x,l),Pe=A,Yl(0,!1),Qt&&typeof Qt.onPostCommitFiberRoot=="function")try{Qt.onPostCommitFiberRoot(al,y)}catch{}return!0}finally{V.p=d,L.T=c,ib(n,i)}}function ub(n,i,l){i=gn(l,i),i=If(n.stateNode,i,2),n=Pr(n,i,2),n!==null&&(ll(n,2),In(n))}function He(n,i,l){if(n.tag===3)ub(n,n,l);else for(;i!==null;){if(i.tag===3){ub(i,n,l);break}else if(i.tag===1){var c=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(Hr===null||!Hr.has(c))){n=gn(l,n),l=f0(2),c=Pr(i,l,2),c!==null&&(d0(l,c,i,n),ll(c,2),In(c));break}}i=i.return}}function gd(n,i,l){var c=n.pingCache;if(c===null){c=n.pingCache=new Q_;var d=new Set;c.set(i,d)}else d=c.get(i),d===void 0&&(d=new Set,c.set(i,d));d.has(l)||(od=!0,d.add(l),n=tj.bind(null,n,i,l),i.then(n,n))}function tj(n,i,l){var c=n.pingCache;c!==null&&c.delete(i),n.pingedLanes|=n.suspendedLanes&l,n.warmLanes&=~l,Ge===n&&(_e&l)===l&&(Fe===4||Fe===3&&(_e&62914560)===_e&&300>vt()-fd?(Pe&2)===0&&Ti(n,0):cd|=l,Oi===_e&&(Oi=0)),In(n)}function ob(n,i){i===0&&(i=ap()),n=oi(n,i),n!==null&&(ll(n,i),In(n))}function nj(n){var i=n.memoizedState,l=0;i!==null&&(l=i.retryLane),ob(n,l)}function rj(n,i){var l=0;switch(n.tag){case 13:var c=n.stateNode,d=n.memoizedState;d!==null&&(l=d.retryLane);break;case 19:c=n.stateNode;break;case 22:c=n.stateNode._retryCache;break;default:throw Error(a(314))}c!==null&&c.delete(i),ob(n,l)}function aj(n,i){return ht(n,i)}var Uo=null,ji=null,bd=!1,qo=!1,xd=!1,Ta=0;function In(n){n!==ji&&n.next===null&&(ji===null?Uo=ji=n:ji=ji.next=n),qo=!0,bd||(bd=!0,lj())}function Yl(n,i){if(!xd&&qo){xd=!0;do for(var l=!1,c=Uo;c!==null;){if(n!==0){var d=c.pendingLanes;if(d===0)var y=0;else{var x=c.suspendedLanes,A=c.pingedLanes;y=(1<<31-Wt(42|n)+1)-1,y&=d&~(x&~A),y=y&201326741?y&201326741|1:y?y|2:0}y!==0&&(l=!0,db(c,y))}else y=_e,y=Ku(c,c===Ge?y:0,c.cancelPendingCommit!==null||c.timeoutHandle!==-1),(y&3)===0||il(c,y)||(l=!0,db(c,y));c=c.next}while(l);xd=!1}}function ij(){cb()}function cb(){qo=bd=!1;var n=0;Ta!==0&&(vj()&&(n=Ta),Ta=0);for(var i=vt(),l=null,c=Uo;c!==null;){var d=c.next,y=sb(c,i);y===0?(c.next=null,l===null?Uo=d:l.next=d,d===null&&(ji=l)):(l=c,(n!==0||(y&3)!==0)&&(qo=!0)),c=d}Yl(n)}function sb(n,i){for(var l=n.suspendedLanes,c=n.pingedLanes,d=n.expirationTimes,y=n.pendingLanes&-62914561;0<y;){var x=31-Wt(y),A=1<<x,C=d[x];C===-1?((A&l)===0||(A&c)!==0)&&(d[x]=DT(A,i)):C<=i&&(n.expiredLanes|=A),y&=~A}if(i=Ge,l=_e,l=Ku(n,n===i?l:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),c=n.callbackNode,l===0||n===i&&(Re===2||Re===9)||n.cancelPendingCommit!==null)return c!==null&&c!==null&&Ne(c),n.callbackNode=null,n.callbackPriority=0;if((l&3)===0||il(n,l)){if(i=l&-l,i===n.callbackPriority)return i;switch(c!==null&&Ne(c),Rs(l)){case 2:case 8:l=tp;break;case 32:l=Hu;break;case 268435456:l=np;break;default:l=Hu}return c=fb.bind(null,n),l=ht(l,c),n.callbackPriority=i,n.callbackNode=l,i}return c!==null&&c!==null&&Ne(c),n.callbackPriority=2,n.callbackNode=null,2}function fb(n,i){if(Et!==0&&Et!==5)return n.callbackNode=null,n.callbackPriority=0,null;var l=n.callbackNode;if(Lo()&&n.callbackNode!==l)return null;var c=_e;return c=Ku(n,n===Ge?c:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),c===0?null:(X0(n,c,i),sb(n,vt()),n.callbackNode!=null&&n.callbackNode===l?fb.bind(null,n):null)}function db(n,i){if(Lo())return null;X0(n,i,!0)}function lj(){yj(function(){(Pe&6)!==0?ht(ep,ij):cb()})}function Sd(){return Ta===0&&(Ta=rp()),Ta}function hb(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:Qu(""+n)}function vb(n,i){var l=i.ownerDocument.createElement("input");return l.name=i.name,l.value=i.value,n.id&&l.setAttribute("form",n.id),i.parentNode.insertBefore(l,i),n=new FormData(n),l.parentNode.removeChild(l),n}function uj(n,i,l,c,d){if(i==="submit"&&l&&l.stateNode===d){var y=hb((d[$t]||null).action),x=c.submitter;x&&(i=(i=x[$t]||null)?hb(i.formAction):x.getAttribute("formAction"),i!==null&&(y=i,x=null));var A=new eo("action","action",null,c,d);n.push({event:A,listeners:[{instance:null,listener:function(){if(c.defaultPrevented){if(Ta!==0){var C=x?vb(d,x):new FormData(d);$f(l,{pending:!0,data:C,method:d.method,action:y},null,C)}}else typeof y=="function"&&(A.preventDefault(),C=x?vb(d,x):new FormData(d),$f(l,{pending:!0,data:C,method:d.method,action:y},y,C))},currentTarget:d}]})}}for(var wd=0;wd<lf.length;wd++){var Od=lf[wd],oj=Od.toLowerCase(),cj=Od[0].toUpperCase()+Od.slice(1);Rn(oj,"on"+cj)}Rn(Xp,"onAnimationEnd"),Rn(Vp,"onAnimationIteration"),Rn(Zp,"onAnimationStart"),Rn("dblclick","onDoubleClick"),Rn("focusin","onFocus"),Rn("focusout","onBlur"),Rn(T_,"onTransitionRun"),Rn(__,"onTransitionStart"),Rn(j_,"onTransitionCancel"),Rn(Qp,"onTransitionEnd"),Fa("onMouseEnter",["mouseout","mouseover"]),Fa("onMouseLeave",["mouseout","mouseover"]),Fa("onPointerEnter",["pointerout","pointerover"]),Fa("onPointerLeave",["pointerout","pointerover"]),sa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),sa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),sa("onBeforeInput",["compositionend","keypress","textInput","paste"]),sa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),sa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),sa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Gl="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(" "),sj=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Gl));function mb(n,i){i=(i&4)!==0;for(var l=0;l<n.length;l++){var c=n[l],d=c.event;c=c.listeners;e:{var y=void 0;if(i)for(var x=c.length-1;0<=x;x--){var A=c[x],C=A.instance,q=A.currentTarget;if(A=A.listener,C!==y&&d.isPropagationStopped())break e;y=A,d.currentTarget=q;try{y(d)}catch(G){_o(G)}d.currentTarget=null,y=C}else for(x=0;x<c.length;x++){if(A=c[x],C=A.instance,q=A.currentTarget,A=A.listener,C!==y&&d.isPropagationStopped())break e;y=A,d.currentTarget=q;try{y(d)}catch(G){_o(G)}d.currentTarget=null,y=C}}}}function Te(n,i){var l=i[ks];l===void 0&&(l=i[ks]=new Set);var c=n+"__bubble";l.has(c)||(yb(i,n,2,!1),l.add(c))}function Ad(n,i,l){var c=0;i&&(c|=4),yb(l,n,c,i)}var $o="_reactListening"+Math.random().toString(36).slice(2);function Ed(n){if(!n[$o]){n[$o]=!0,cp.forEach(function(l){l!=="selectionchange"&&(sj.has(l)||Ad(l,!1,n),Ad(l,!0,n))});var i=n.nodeType===9?n:n.ownerDocument;i===null||i[$o]||(i[$o]=!0,Ad("selectionchange",!1,i))}}function yb(n,i,l,c){switch(qb(i)){case 2:var d=Bj;break;case 8:d=Lj;break;default:d=Ud}l=d.bind(null,i,l,n),d=void 0,!Is||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(d=!0),c?d!==void 0?n.addEventListener(i,l,{capture:!0,passive:d}):n.addEventListener(i,l,!0):d!==void 0?n.addEventListener(i,l,{passive:d}):n.addEventListener(i,l,!1)}function Td(n,i,l,c,d){var y=c;if((i&1)===0&&(i&2)===0&&c!==null)e:for(;;){if(c===null)return;var x=c.tag;if(x===3||x===4){var A=c.stateNode.containerInfo;if(A===d)break;if(x===4)for(x=c.return;x!==null;){var C=x.tag;if((C===3||C===4)&&x.stateNode.containerInfo===d)return;x=x.return}for(;A!==null;){if(x=Za(A),x===null)return;if(C=x.tag,C===5||C===6||C===26||C===27){c=y=x;continue e}A=A.parentNode}}c=c.return}Op(function(){var q=y,G=Gs(l),Q=[];e:{var $=Wp.get(n);if($!==void 0){var H=eo,pe=n;switch(n){case"keypress":if(Fu(l)===0)break e;case"keydown":case"keyup":H=a_;break;case"focusin":pe="focus",H=Qs;break;case"focusout":pe="blur",H=Qs;break;case"beforeblur":case"afterblur":H=Qs;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":H=Tp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":H=IT;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":H=u_;break;case Xp:case Vp:case Zp:H=ZT;break;case Qp:H=c_;break;case"scroll":case"scrollend":H=GT;break;case"wheel":H=f_;break;case"copy":case"cut":case"paste":H=WT;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":H=jp;break;case"toggle":case"beforetoggle":H=h_}var ve=(i&4)!==0,qe=!ve&&(n==="scroll"||n==="scrollend"),z=ve?$!==null?$+"Capture":null:$;ve=[];for(var P=q,B;P!==null;){var I=P;if(B=I.stateNode,I=I.tag,I!==5&&I!==26&&I!==27||B===null||z===null||(I=cl(P,z),I!=null&&ve.push(Kl(P,I,B))),qe)break;P=P.return}0<ve.length&&($=new H($,pe,null,l,G),Q.push({event:$,listeners:ve}))}}if((i&7)===0){e:{if($=n==="mouseover"||n==="pointerover",H=n==="mouseout"||n==="pointerout",$&&l!==Ys&&(pe=l.relatedTarget||l.fromElement)&&(Za(pe)||pe[Va]))break e;if((H||$)&&($=G.window===G?G:($=G.ownerDocument)?$.defaultView||$.parentWindow:window,H?(pe=l.relatedTarget||l.toElement,H=q,pe=pe?Za(pe):null,pe!==null&&(qe=o(pe),ve=pe.tag,pe!==qe||ve!==5&&ve!==27&&ve!==6)&&(pe=null)):(H=null,pe=q),H!==pe)){if(ve=Tp,I="onMouseLeave",z="onMouseEnter",P="mouse",(n==="pointerout"||n==="pointerover")&&(ve=jp,I="onPointerLeave",z="onPointerEnter",P="pointer"),qe=H==null?$:ol(H),B=pe==null?$:ol(pe),$=new ve(I,P+"leave",H,l,G),$.target=qe,$.relatedTarget=B,I=null,Za(G)===q&&(ve=new ve(z,P+"enter",pe,l,G),ve.target=B,ve.relatedTarget=qe,I=ve),qe=I,H&&pe)t:{for(ve=H,z=pe,P=0,B=ve;B;B=Mi(B))P++;for(B=0,I=z;I;I=Mi(I))B++;for(;0<P-B;)ve=Mi(ve),P--;for(;0<B-P;)z=Mi(z),B--;for(;P--;){if(ve===z||z!==null&&ve===z.alternate)break t;ve=Mi(ve),z=Mi(z)}ve=null}else ve=null;H!==null&&pb(Q,$,H,ve,!1),pe!==null&&qe!==null&&pb(Q,qe,pe,ve,!0)}}e:{if($=q?ol(q):window,H=$.nodeName&&$.nodeName.toLowerCase(),H==="select"||H==="input"&&$.type==="file")var oe=zp;else if(Rp($))if(Bp)oe=O_;else{oe=S_;var Oe=x_}else H=$.nodeName,!H||H.toLowerCase()!=="input"||$.type!=="checkbox"&&$.type!=="radio"?q&&Hs(q.elementType)&&(oe=zp):oe=w_;if(oe&&(oe=oe(n,q))){kp(Q,oe,l,G);break e}Oe&&Oe(n,$,q),n==="focusout"&&q&&$.type==="number"&&q.memoizedProps.value!=null&&$s($,"number",$.value)}switch(Oe=q?ol(q):window,n){case"focusin":(Rp(Oe)||Oe.contentEditable==="true")&&(ii=Oe,nf=q,pl=null);break;case"focusout":pl=nf=ii=null;break;case"mousedown":rf=!0;break;case"contextmenu":case"mouseup":case"dragend":rf=!1,Kp(Q,l,G);break;case"selectionchange":if(E_)break;case"keydown":case"keyup":Kp(Q,l,G)}var fe;if(Fs)e:{switch(n){case"compositionstart":var me="onCompositionStart";break e;case"compositionend":me="onCompositionEnd";break e;case"compositionupdate":me="onCompositionUpdate";break e}me=void 0}else ai?Np(n,l)&&(me="onCompositionEnd"):n==="keydown"&&l.keyCode===229&&(me="onCompositionStart");me&&(Mp&&l.locale!=="ko"&&(ai||me!=="onCompositionStart"?me==="onCompositionEnd"&&ai&&(fe=Ap()):(Mr=G,Xs="value"in Mr?Mr.value:Mr.textContent,ai=!0)),Oe=Ho(q,me),0<Oe.length&&(me=new _p(me,n,null,l,G),Q.push({event:me,listeners:Oe}),fe?me.data=fe:(fe=Pp(l),fe!==null&&(me.data=fe)))),(fe=m_?y_(n,l):p_(n,l))&&(me=Ho(q,"onBeforeInput"),0<me.length&&(Oe=new _p("onBeforeInput","beforeinput",null,l,G),Q.push({event:Oe,listeners:me}),Oe.data=fe)),uj(Q,n,q,l,G)}mb(Q,i)})}function Kl(n,i,l){return{instance:n,listener:i,currentTarget:l}}function Ho(n,i){for(var l=i+"Capture",c=[];n!==null;){var d=n,y=d.stateNode;if(d=d.tag,d!==5&&d!==26&&d!==27||y===null||(d=cl(n,l),d!=null&&c.unshift(Kl(n,d,y)),d=cl(n,i),d!=null&&c.push(Kl(n,d,y))),n.tag===3)return c;n=n.return}return[]}function Mi(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function pb(n,i,l,c,d){for(var y=i._reactName,x=[];l!==null&&l!==c;){var A=l,C=A.alternate,q=A.stateNode;if(A=A.tag,C!==null&&C===c)break;A!==5&&A!==26&&A!==27||q===null||(C=q,d?(q=cl(l,y),q!=null&&x.unshift(Kl(l,q,C))):d||(q=cl(l,y),q!=null&&x.push(Kl(l,q,C)))),l=l.return}x.length!==0&&n.push({event:i,listeners:x})}var fj=/\r\n?/g,dj=/\u0000|\uFFFD/g;function gb(n){return(typeof n=="string"?n:""+n).replace(fj,`
`).replace(dj,"")}function bb(n,i){return i=gb(i),gb(n)===i}function Yo(){}function Ue(n,i,l,c,d,y){switch(l){case"children":typeof c=="string"?i==="body"||i==="textarea"&&c===""||ti(n,c):(typeof c=="number"||typeof c=="bigint")&&i!=="body"&&ti(n,""+c);break;case"className":Xu(n,"class",c);break;case"tabIndex":Xu(n,"tabindex",c);break;case"dir":case"role":case"viewBox":case"width":case"height":Xu(n,l,c);break;case"style":Sp(n,c,y);break;case"data":if(i!=="object"){Xu(n,"data",c);break}case"src":case"href":if(c===""&&(i!=="a"||l!=="href")){n.removeAttribute(l);break}if(c==null||typeof c=="function"||typeof c=="symbol"||typeof c=="boolean"){n.removeAttribute(l);break}c=Qu(""+c),n.setAttribute(l,c);break;case"action":case"formAction":if(typeof c=="function"){n.setAttribute(l,"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 y=="function"&&(l==="formAction"?(i!=="input"&&Ue(n,i,"name",d.name,d,null),Ue(n,i,"formEncType",d.formEncType,d,null),Ue(n,i,"formMethod",d.formMethod,d,null),Ue(n,i,"formTarget",d.formTarget,d,null)):(Ue(n,i,"encType",d.encType,d,null),Ue(n,i,"method",d.method,d,null),Ue(n,i,"target",d.target,d,null)));if(c==null||typeof c=="symbol"||typeof c=="boolean"){n.removeAttribute(l);break}c=Qu(""+c),n.setAttribute(l,c);break;case"onClick":c!=null&&(n.onclick=Yo);break;case"onScroll":c!=null&&Te("scroll",n);break;case"onScrollEnd":c!=null&&Te("scrollend",n);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(a(61));if(l=c.__html,l!=null){if(d.children!=null)throw Error(a(60));n.innerHTML=l}}break;case"multiple":n.multiple=c&&typeof c!="function"&&typeof c!="symbol";break;case"muted":n.muted=c&&typeof c!="function"&&typeof c!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(c==null||typeof c=="function"||typeof c=="boolean"||typeof c=="symbol"){n.removeAttribute("xlink:href");break}l=Qu(""+c),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":c!=null&&typeof c!="function"&&typeof c!="symbol"?n.setAttribute(l,""+c):n.removeAttribute(l);break;case"inert":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":c&&typeof c!="function"&&typeof c!="symbol"?n.setAttribute(l,""):n.removeAttribute(l);break;case"capture":case"download":c===!0?n.setAttribute(l,""):c!==!1&&c!=null&&typeof c!="function"&&typeof c!="symbol"?n.setAttribute(l,c):n.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":c!=null&&typeof c!="function"&&typeof c!="symbol"&&!isNaN(c)&&1<=c?n.setAttribute(l,c):n.removeAttribute(l);break;case"rowSpan":case"start":c==null||typeof c=="function"||typeof c=="symbol"||isNaN(c)?n.removeAttribute(l):n.setAttribute(l,c);break;case"popover":Te("beforetoggle",n),Te("toggle",n),Iu(n,"popover",c);break;case"xlinkActuate":Wn(n,"http://www.w3.org/1999/xlink","xlink:actuate",c);break;case"xlinkArcrole":Wn(n,"http://www.w3.org/1999/xlink","xlink:arcrole",c);break;case"xlinkRole":Wn(n,"http://www.w3.org/1999/xlink","xlink:role",c);break;case"xlinkShow":Wn(n,"http://www.w3.org/1999/xlink","xlink:show",c);break;case"xlinkTitle":Wn(n,"http://www.w3.org/1999/xlink","xlink:title",c);break;case"xlinkType":Wn(n,"http://www.w3.org/1999/xlink","xlink:type",c);break;case"xmlBase":Wn(n,"http://www.w3.org/XML/1998/namespace","xml:base",c);break;case"xmlLang":Wn(n,"http://www.w3.org/XML/1998/namespace","xml:lang",c);break;case"xmlSpace":Wn(n,"http://www.w3.org/XML/1998/namespace","xml:space",c);break;case"is":Iu(n,"is",c);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=HT.get(l)||l,Iu(n,l,c))}}function _d(n,i,l,c,d,y){switch(l){case"style":Sp(n,c,y);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(a(61));if(l=c.__html,l!=null){if(d.children!=null)throw Error(a(60));n.innerHTML=l}}break;case"children":typeof c=="string"?ti(n,c):(typeof c=="number"||typeof c=="bigint")&&ti(n,""+c);break;case"onScroll":c!=null&&Te("scroll",n);break;case"onScrollEnd":c!=null&&Te("scrollend",n);break;case"onClick":c!=null&&(n.onclick=Yo);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!sp.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(d=l.endsWith("Capture"),i=l.slice(2,d?l.length-7:void 0),y=n[$t]||null,y=y!=null?y[l]:null,typeof y=="function"&&n.removeEventListener(i,y,d),typeof c=="function")){typeof y!="function"&&y!==null&&(l in n?n[l]=null:n.hasAttribute(l)&&n.removeAttribute(l)),n.addEventListener(i,c,d);break e}l in n?n[l]=c:c===!0?n.setAttribute(l,""):Iu(n,l,c)}}}function Tt(n,i,l){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Te("error",n),Te("load",n);var c=!1,d=!1,y;for(y in l)if(l.hasOwnProperty(y)){var x=l[y];if(x!=null)switch(y){case"src":c=!0;break;case"srcSet":d=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a(137,i));default:Ue(n,i,y,x,l,null)}}d&&Ue(n,i,"srcSet",l.srcSet,l,null),c&&Ue(n,i,"src",l.src,l,null);return;case"input":Te("invalid",n);var A=y=x=d=null,C=null,q=null;for(c in l)if(l.hasOwnProperty(c)){var G=l[c];if(G!=null)switch(c){case"name":d=G;break;case"type":x=G;break;case"checked":C=G;break;case"defaultChecked":q=G;break;case"value":y=G;break;case"defaultValue":A=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(a(137,i));break;default:Ue(n,i,c,G,l,null)}}pp(n,y,A,C,q,x,d,!1),Vu(n);return;case"select":Te("invalid",n),c=x=y=null;for(d in l)if(l.hasOwnProperty(d)&&(A=l[d],A!=null))switch(d){case"value":y=A;break;case"defaultValue":x=A;break;case"multiple":c=A;default:Ue(n,i,d,A,l,null)}i=y,l=x,n.multiple=!!c,i!=null?ei(n,!!c,i,!1):l!=null&&ei(n,!!c,l,!0);return;case"textarea":Te("invalid",n),y=d=c=null;for(x in l)if(l.hasOwnProperty(x)&&(A=l[x],A!=null))switch(x){case"value":c=A;break;case"defaultValue":d=A;break;case"children":y=A;break;case"dangerouslySetInnerHTML":if(A!=null)throw Error(a(91));break;default:Ue(n,i,x,A,l,null)}bp(n,c,d,y),Vu(n);return;case"option":for(C in l)if(l.hasOwnProperty(C)&&(c=l[C],c!=null))switch(C){case"selected":n.selected=c&&typeof c!="function"&&typeof c!="symbol";break;default:Ue(n,i,C,c,l,null)}return;case"dialog":Te("beforetoggle",n),Te("toggle",n),Te("cancel",n),Te("close",n);break;case"iframe":case"object":Te("load",n);break;case"video":case"audio":for(c=0;c<Gl.length;c++)Te(Gl[c],n);break;case"image":Te("error",n),Te("load",n);break;case"details":Te("toggle",n);break;case"embed":case"source":case"link":Te("error",n),Te("load",n);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(q in l)if(l.hasOwnProperty(q)&&(c=l[q],c!=null))switch(q){case"children":case"dangerouslySetInnerHTML":throw Error(a(137,i));default:Ue(n,i,q,c,l,null)}return;default:if(Hs(i)){for(G in l)l.hasOwnProperty(G)&&(c=l[G],c!==void 0&&_d(n,i,G,c,l,void 0));return}}for(A in l)l.hasOwnProperty(A)&&(c=l[A],c!=null&&Ue(n,i,A,c,l,null))}function hj(n,i,l,c){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var d=null,y=null,x=null,A=null,C=null,q=null,G=null;for(H in l){var Q=l[H];if(l.hasOwnProperty(H)&&Q!=null)switch(H){case"checked":break;case"value":break;case"defaultValue":C=Q;default:c.hasOwnProperty(H)||Ue(n,i,H,null,c,Q)}}for(var $ in c){var H=c[$];if(Q=l[$],c.hasOwnProperty($)&&(H!=null||Q!=null))switch($){case"type":y=H;break;case"name":d=H;break;case"checked":q=H;break;case"defaultChecked":G=H;break;case"value":x=H;break;case"defaultValue":A=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(a(137,i));break;default:H!==Q&&Ue(n,i,$,H,c,Q)}}qs(n,x,A,C,q,G,y,d);return;case"select":H=x=A=$=null;for(y in l)if(C=l[y],l.hasOwnProperty(y)&&C!=null)switch(y){case"value":break;case"multiple":H=C;default:c.hasOwnProperty(y)||Ue(n,i,y,null,c,C)}for(d in c)if(y=c[d],C=l[d],c.hasOwnProperty(d)&&(y!=null||C!=null))switch(d){case"value":$=y;break;case"defaultValue":A=y;break;case"multiple":x=y;default:y!==C&&Ue(n,i,d,y,c,C)}i=A,l=x,c=H,$!=null?ei(n,!!l,$,!1):!!c!=!!l&&(i!=null?ei(n,!!l,i,!0):ei(n,!!l,l?[]:"",!1));return;case"textarea":H=$=null;for(A in l)if(d=l[A],l.hasOwnProperty(A)&&d!=null&&!c.hasOwnProperty(A))switch(A){case"value":break;case"children":break;default:Ue(n,i,A,null,c,d)}for(x in c)if(d=c[x],y=l[x],c.hasOwnProperty(x)&&(d!=null||y!=null))switch(x){case"value":$=d;break;case"defaultValue":H=d;break;case"children":break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(a(91));break;default:d!==y&&Ue(n,i,x,d,c,y)}gp(n,$,H);return;case"option":for(var pe in l)if($=l[pe],l.hasOwnProperty(pe)&&$!=null&&!c.hasOwnProperty(pe))switch(pe){case"selected":n.selected=!1;break;default:Ue(n,i,pe,null,c,$)}for(C in c)if($=c[C],H=l[C],c.hasOwnProperty(C)&&$!==H&&($!=null||H!=null))switch(C){case"selected":n.selected=$&&typeof $!="function"&&typeof $!="symbol";break;default:Ue(n,i,C,$,c,H)}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 ve in l)$=l[ve],l.hasOwnProperty(ve)&&$!=null&&!c.hasOwnProperty(ve)&&Ue(n,i,ve,null,c,$);for(q in c)if($=c[q],H=l[q],c.hasOwnProperty(q)&&$!==H&&($!=null||H!=null))switch(q){case"children":case"dangerouslySetInnerHTML":if($!=null)throw Error(a(137,i));break;default:Ue(n,i,q,$,c,H)}return;default:if(Hs(i)){for(var qe in l)$=l[qe],l.hasOwnProperty(qe)&&$!==void 0&&!c.hasOwnProperty(qe)&&_d(n,i,qe,void 0,c,$);for(G in c)$=c[G],H=l[G],!c.hasOwnProperty(G)||$===H||$===void 0&&H===void 0||_d(n,i,G,$,c,H);return}}for(var z in l)$=l[z],l.hasOwnProperty(z)&&$!=null&&!c.hasOwnProperty(z)&&Ue(n,i,z,null,c,$);for(Q in c)$=c[Q],H=l[Q],!c.hasOwnProperty(Q)||$===H||$==null&&H==null||Ue(n,i,Q,$,c,H)}var jd=null,Md=null;function Go(n){return n.nodeType===9?n:n.ownerDocument}function xb(n){switch(n){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Sb(n,i){if(n===0)switch(i){case"svg":return 1;case"math":return 2;default:return 0}return n===1&&i==="foreignObject"?0:n}function Cd(n,i){return n==="textarea"||n==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.children=="bigint"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var Dd=null;function vj(){var n=window.event;return n&&n.type==="popstate"?n===Dd?!1:(Dd=n,!0):(Dd=null,!1)}var wb=typeof setTimeout=="function"?setTimeout:void 0,mj=typeof clearTimeout=="function"?clearTimeout:void 0,Ob=typeof Promise=="function"?Promise:void 0,yj=typeof queueMicrotask=="function"?queueMicrotask:typeof Ob<"u"?function(n){return Ob.resolve(null).then(n).catch(pj)}:wb;function pj(n){setTimeout(function(){throw n})}function Kr(n){return n==="head"}function Ab(n,i){var l=i,c=0,d=0;do{var y=l.nextSibling;if(n.removeChild(l),y&&y.nodeType===8)if(l=y.data,l==="/$"){if(0<c&&8>c){l=c;var x=n.ownerDocument;if(l&1&&Il(x.documentElement),l&2&&Il(x.body),l&4)for(l=x.head,Il(l),x=l.firstChild;x;){var A=x.nextSibling,C=x.nodeName;x[ul]||C==="SCRIPT"||C==="STYLE"||C==="LINK"&&x.rel.toLowerCase()==="stylesheet"||l.removeChild(x),x=A}}if(d===0){n.removeChild(y),eu(i);return}d--}else l==="$"||l==="$?"||l==="$!"?d++:c=l.charCodeAt(0)-48;else c=0;l=y}while(l);eu(i)}function Nd(n){var i=n.firstChild;for(i&&i.nodeType===10&&(i=i.nextSibling);i;){var l=i;switch(i=i.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Nd(l),zs(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}n.removeChild(l)}}function gj(n,i,l,c){for(;n.nodeType===1;){var d=l;if(n.nodeName.toLowerCase()!==i.toLowerCase()){if(!c&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(c){if(!n[ul])switch(i){case"meta":if(!n.hasAttribute("itemprop"))break;return n;case"link":if(y=n.getAttribute("rel"),y==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(y!==d.rel||n.getAttribute("href")!==(d.href==null||d.href===""?null:d.href)||n.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin)||n.getAttribute("title")!==(d.title==null?null:d.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(y=n.getAttribute("src"),(y!==(d.src==null?null:d.src)||n.getAttribute("type")!==(d.type==null?null:d.type)||n.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin))&&y&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(i==="input"&&n.type==="hidden"){var y=d.name==null?null:""+d.name;if(d.type==="hidden"&&n.getAttribute("name")===y)return n}else return n;if(n=zn(n.nextSibling),n===null)break}return null}function bj(n,i,l){if(i==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!l||(n=zn(n.nextSibling),n===null))return null;return n}function Pd(n){return n.data==="$!"||n.data==="$?"&&n.ownerDocument.readyState==="complete"}function xj(n,i){var l=n.ownerDocument;if(n.data!=="$?"||l.readyState==="complete")i();else{var c=function(){i(),l.removeEventListener("DOMContentLoaded",c)};l.addEventListener("DOMContentLoaded",c),n._reactRetry=c}}function zn(n){for(;n!=null;n=n.nextSibling){var i=n.nodeType;if(i===1||i===3)break;if(i===8){if(i=n.data,i==="$"||i==="$!"||i==="$?"||i==="F!"||i==="F")break;if(i==="/$")return null}}return n}var Rd=null;function Eb(n){n=n.previousSibling;for(var i=0;n;){if(n.nodeType===8){var l=n.data;if(l==="$"||l==="$!"||l==="$?"){if(i===0)return n;i--}else l==="/$"&&i++}n=n.previousSibling}return null}function Tb(n,i,l){switch(i=Go(l),n){case"html":if(n=i.documentElement,!n)throw Error(a(452));return n;case"head":if(n=i.head,!n)throw Error(a(453));return n;case"body":if(n=i.body,!n)throw Error(a(454));return n;default:throw Error(a(451))}}function Il(n){for(var i=n.attributes;i.length;)n.removeAttributeNode(i[0]);zs(n)}var An=new Map,_b=new Set;function Ko(n){return typeof n.getRootNode=="function"?n.getRootNode():n.nodeType===9?n:n.ownerDocument}var fr=V.d;V.d={f:Sj,r:wj,D:Oj,C:Aj,L:Ej,m:Tj,X:jj,S:_j,M:Mj};function Sj(){var n=fr.f(),i=zo();return n||i}function wj(n){var i=Qa(n);i!==null&&i.tag===5&&i.type==="form"?Xg(i):fr.r(n)}var Ci=typeof document>"u"?null:document;function jb(n,i,l){var c=Ci;if(c&&typeof i=="string"&&i){var d=pn(i);d='link[rel="'+n+'"][href="'+d+'"]',typeof l=="string"&&(d+='[crossorigin="'+l+'"]'),_b.has(d)||(_b.add(d),n={rel:n,crossOrigin:l,href:i},c.querySelector(d)===null&&(i=c.createElement("link"),Tt(i,"link",n),mt(i),c.head.appendChild(i)))}}function Oj(n){fr.D(n),jb("dns-prefetch",n,null)}function Aj(n,i){fr.C(n,i),jb("preconnect",n,i)}function Ej(n,i,l){fr.L(n,i,l);var c=Ci;if(c&&n&&i){var d='link[rel="preload"][as="'+pn(i)+'"]';i==="image"&&l&&l.imageSrcSet?(d+='[imagesrcset="'+pn(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(d+='[imagesizes="'+pn(l.imageSizes)+'"]')):d+='[href="'+pn(n)+'"]';var y=d;switch(i){case"style":y=Di(n);break;case"script":y=Ni(n)}An.has(y)||(n=v({rel:"preload",href:i==="image"&&l&&l.imageSrcSet?void 0:n,as:i},l),An.set(y,n),c.querySelector(d)!==null||i==="style"&&c.querySelector(Xl(y))||i==="script"&&c.querySelector(Vl(y))||(i=c.createElement("link"),Tt(i,"link",n),mt(i),c.head.appendChild(i)))}}function Tj(n,i){fr.m(n,i);var l=Ci;if(l&&n){var c=i&&typeof i.as=="string"?i.as:"script",d='link[rel="modulepreload"][as="'+pn(c)+'"][href="'+pn(n)+'"]',y=d;switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":y=Ni(n)}if(!An.has(y)&&(n=v({rel:"modulepreload",href:n},i),An.set(y,n),l.querySelector(d)===null)){switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Vl(y)))return}c=l.createElement("link"),Tt(c,"link",n),mt(c),l.head.appendChild(c)}}}function _j(n,i,l){fr.S(n,i,l);var c=Ci;if(c&&n){var d=Wa(c).hoistableStyles,y=Di(n);i=i||"default";var x=d.get(y);if(!x){var A={loading:0,preload:null};if(x=c.querySelector(Xl(y)))A.loading=5;else{n=v({rel:"stylesheet",href:n,"data-precedence":i},l),(l=An.get(y))&&kd(n,l);var C=x=c.createElement("link");mt(C),Tt(C,"link",n),C._p=new Promise(function(q,G){C.onload=q,C.onerror=G}),C.addEventListener("load",function(){A.loading|=1}),C.addEventListener("error",function(){A.loading|=2}),A.loading|=4,Io(x,i,c)}x={type:"stylesheet",instance:x,count:1,state:A},d.set(y,x)}}}function jj(n,i){fr.X(n,i);var l=Ci;if(l&&n){var c=Wa(l).hoistableScripts,d=Ni(n),y=c.get(d);y||(y=l.querySelector(Vl(d)),y||(n=v({src:n,async:!0},i),(i=An.get(d))&&zd(n,i),y=l.createElement("script"),mt(y),Tt(y,"link",n),l.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},c.set(d,y))}}function Mj(n,i){fr.M(n,i);var l=Ci;if(l&&n){var c=Wa(l).hoistableScripts,d=Ni(n),y=c.get(d);y||(y=l.querySelector(Vl(d)),y||(n=v({src:n,async:!0,type:"module"},i),(i=An.get(d))&&zd(n,i),y=l.createElement("script"),mt(y),Tt(y,"link",n),l.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},c.set(d,y))}}function Mb(n,i,l,c){var d=(d=ue.current)?Ko(d):null;if(!d)throw Error(a(446));switch(n){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(i=Di(l.href),l=Wa(d).hoistableStyles,c=l.get(i),c||(c={type:"style",instance:null,count:0,state:null},l.set(i,c)),c):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){n=Di(l.href);var y=Wa(d).hoistableStyles,x=y.get(n);if(x||(d=d.ownerDocument||d,x={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},y.set(n,x),(y=d.querySelector(Xl(n)))&&!y._p&&(x.instance=y,x.state.loading=5),An.has(n)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},An.set(n,l),y||Cj(d,n,l,x.state))),i&&c===null)throw Error(a(528,""));return x}if(i&&c!==null)throw Error(a(529,""));return null;case"script":return i=l.async,l=l.src,typeof l=="string"&&i&&typeof i!="function"&&typeof i!="symbol"?(i=Ni(l),l=Wa(d).hoistableScripts,c=l.get(i),c||(c={type:"script",instance:null,count:0,state:null},l.set(i,c)),c):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,n))}}function Di(n){return'href="'+pn(n)+'"'}function Xl(n){return'link[rel="stylesheet"]['+n+"]"}function Cb(n){return v({},n,{"data-precedence":n.precedence,precedence:null})}function Cj(n,i,l,c){n.querySelector('link[rel="preload"][as="style"]['+i+"]")?c.loading=1:(i=n.createElement("link"),c.preload=i,i.addEventListener("load",function(){return c.loading|=1}),i.addEventListener("error",function(){return c.loading|=2}),Tt(i,"link",l),mt(i),n.head.appendChild(i))}function Ni(n){return'[src="'+pn(n)+'"]'}function Vl(n){return"script[async]"+n}function Db(n,i,l){if(i.count++,i.instance===null)switch(i.type){case"style":var c=n.querySelector('style[data-href~="'+pn(l.href)+'"]');if(c)return i.instance=c,mt(c),c;var d=v({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return c=(n.ownerDocument||n).createElement("style"),mt(c),Tt(c,"style",d),Io(c,l.precedence,n),i.instance=c;case"stylesheet":d=Di(l.href);var y=n.querySelector(Xl(d));if(y)return i.state.loading|=4,i.instance=y,mt(y),y;c=Cb(l),(d=An.get(d))&&kd(c,d),y=(n.ownerDocument||n).createElement("link"),mt(y);var x=y;return x._p=new Promise(function(A,C){x.onload=A,x.onerror=C}),Tt(y,"link",c),i.state.loading|=4,Io(y,l.precedence,n),i.instance=y;case"script":return y=Ni(l.src),(d=n.querySelector(Vl(y)))?(i.instance=d,mt(d),d):(c=l,(d=An.get(y))&&(c=v({},l),zd(c,d)),n=n.ownerDocument||n,d=n.createElement("script"),mt(d),Tt(d,"link",c),n.head.appendChild(d),i.instance=d);case"void":return null;default:throw Error(a(443,i.type))}else i.type==="stylesheet"&&(i.state.loading&4)===0&&(c=i.instance,i.state.loading|=4,Io(c,l.precedence,n));return i.instance}function Io(n,i,l){for(var c=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),d=c.length?c[c.length-1]:null,y=d,x=0;x<c.length;x++){var A=c[x];if(A.dataset.precedence===i)y=A;else if(y!==d)break}y?y.parentNode.insertBefore(n,y.nextSibling):(i=l.nodeType===9?l.head:l,i.insertBefore(n,i.firstChild))}function kd(n,i){n.crossOrigin==null&&(n.crossOrigin=i.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=i.referrerPolicy),n.title==null&&(n.title=i.title)}function zd(n,i){n.crossOrigin==null&&(n.crossOrigin=i.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=i.referrerPolicy),n.integrity==null&&(n.integrity=i.integrity)}var Xo=null;function Nb(n,i,l){if(Xo===null){var c=new Map,d=Xo=new Map;d.set(l,c)}else d=Xo,c=d.get(l),c||(c=new Map,d.set(l,c));if(c.has(n))return c;for(c.set(n,null),l=l.getElementsByTagName(n),d=0;d<l.length;d++){var y=l[d];if(!(y[ul]||y[Ct]||n==="link"&&y.getAttribute("rel")==="stylesheet")&&y.namespaceURI!=="http://www.w3.org/2000/svg"){var x=y.getAttribute(i)||"";x=n+x;var A=c.get(x);A?A.push(y):c.set(x,[y])}}return c}function Pb(n,i,l){n=n.ownerDocument||n,n.head.insertBefore(l,i==="title"?n.querySelector("head > title"):null)}function Dj(n,i,l){if(l===1||i.itemProp!=null)return!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof i.precedence!="string"||typeof i.href!="string"||i.href==="")break;return!0;case"link":if(typeof i.rel!="string"||typeof i.href!="string"||i.href===""||i.onLoad||i.onError)break;switch(i.rel){case"stylesheet":return n=i.disabled,typeof i.precedence=="string"&&n==null;default:return!0}case"script":if(i.async&&typeof i.async!="function"&&typeof i.async!="symbol"&&!i.onLoad&&!i.onError&&i.src&&typeof i.src=="string")return!0}return!1}function Rb(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}var Zl=null;function Nj(){}function Pj(n,i,l){if(Zl===null)throw Error(a(475));var c=Zl;if(i.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var d=Di(l.href),y=n.querySelector(Xl(d));if(y){n=y._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(c.count++,c=Vo.bind(c),n.then(c,c)),i.state.loading|=4,i.instance=y,mt(y);return}y=n.ownerDocument||n,l=Cb(l),(d=An.get(d))&&kd(l,d),y=y.createElement("link"),mt(y);var x=y;x._p=new Promise(function(A,C){x.onload=A,x.onerror=C}),Tt(y,"link",l),i.instance=y}c.stylesheets===null&&(c.stylesheets=new Map),c.stylesheets.set(i,n),(n=i.state.preload)&&(i.state.loading&3)===0&&(c.count++,i=Vo.bind(c),n.addEventListener("load",i),n.addEventListener("error",i))}}function Rj(){if(Zl===null)throw Error(a(475));var n=Zl;return n.stylesheets&&n.count===0&&Bd(n,n.stylesheets),0<n.count?function(i){var l=setTimeout(function(){if(n.stylesheets&&Bd(n,n.stylesheets),n.unsuspend){var c=n.unsuspend;n.unsuspend=null,c()}},6e4);return n.unsuspend=i,function(){n.unsuspend=null,clearTimeout(l)}}:null}function Vo(){if(this.count--,this.count===0){if(this.stylesheets)Bd(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var Zo=null;function Bd(n,i){n.stylesheets=null,n.unsuspend!==null&&(n.count++,Zo=new Map,i.forEach(kj,n),Zo=null,Vo.call(n))}function kj(n,i){if(!(i.state.loading&4)){var l=Zo.get(n);if(l)var c=l.get(null);else{l=new Map,Zo.set(n,l);for(var d=n.querySelectorAll("link[data-precedence],style[data-precedence]"),y=0;y<d.length;y++){var x=d[y];(x.nodeName==="LINK"||x.getAttribute("media")!=="not all")&&(l.set(x.dataset.precedence,x),c=x)}c&&l.set(null,c)}d=i.instance,x=d.getAttribute("data-precedence"),y=l.get(x)||c,y===c&&l.set(null,d),l.set(x,d),this.count++,c=Vo.bind(this),d.addEventListener("load",c),d.addEventListener("error",c),y?y.parentNode.insertBefore(d,y.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(d,n.firstChild)),i.state.loading|=4}}var Ql={$$typeof:j,Provider:null,Consumer:null,_currentValue:F,_currentValue2:F,_threadCount:0};function zj(n,i,l,c,d,y,x,A){this.tag=1,this.containerInfo=n,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ns(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ns(0),this.hiddenUpdates=Ns(null),this.identifierPrefix=c,this.onUncaughtError=d,this.onCaughtError=y,this.onRecoverableError=x,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=A,this.incompleteTransitions=new Map}function kb(n,i,l,c,d,y,x,A,C,q,G,Q){return n=new zj(n,i,l,x,A,C,q,Q),i=1,y===!0&&(i|=24),y=Jt(3,null,null,i),n.current=y,y.stateNode=n,i=gf(),i.refCount++,n.pooledCache=i,i.refCount++,y.memoizedState={element:c,isDehydrated:l,cache:i},wf(y),n}function zb(n){return n?(n=ci,n):ci}function Bb(n,i,l,c,d,y){d=zb(d),c.context===null?c.context=d:c.pendingContext=d,c=Nr(i),c.payload={element:l},y=y===void 0?null:y,y!==null&&(c.callback=y),l=Pr(n,c,i),l!==null&&(an(l,n,i),Tl(l,n,i))}function Lb(n,i){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var l=n.retryLane;n.retryLane=l!==0&&l<i?l:i}}function Ld(n,i){Lb(n,i),(n=n.alternate)&&Lb(n,i)}function Ub(n){if(n.tag===13){var i=oi(n,67108864);i!==null&&an(i,n,67108864),Ld(n,67108864)}}var Qo=!0;function Bj(n,i,l,c){var d=L.T;L.T=null;var y=V.p;try{V.p=2,Ud(n,i,l,c)}finally{V.p=y,L.T=d}}function Lj(n,i,l,c){var d=L.T;L.T=null;var y=V.p;try{V.p=8,Ud(n,i,l,c)}finally{V.p=y,L.T=d}}function Ud(n,i,l,c){if(Qo){var d=qd(c);if(d===null)Td(n,i,c,Wo,l),$b(n,c);else if(qj(d,n,i,l,c))c.stopPropagation();else if($b(n,c),i&4&&-1<Uj.indexOf(n)){for(;d!==null;){var y=Qa(d);if(y!==null)switch(y.tag){case 3:if(y=y.stateNode,y.current.memoizedState.isDehydrated){var x=ca(y.pendingLanes);if(x!==0){var A=y;for(A.pendingLanes|=2,A.entangledLanes|=2;x;){var C=1<<31-Wt(x);A.entanglements[1]|=C,x&=~C}In(y),(Pe&6)===0&&(Ro=vt()+500,Yl(0))}}break;case 13:A=oi(y,2),A!==null&&an(A,y,2),zo(),Ld(y,2)}if(y=qd(c),y===null&&Td(n,i,c,Wo,l),y===d)break;d=y}d!==null&&c.stopPropagation()}else Td(n,i,c,null,l)}}function qd(n){return n=Gs(n),$d(n)}var Wo=null;function $d(n){if(Wo=null,n=Za(n),n!==null){var i=o(n);if(i===null)n=null;else{var l=i.tag;if(l===13){if(n=s(i),n!==null)return n;n=null}else if(l===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;n=null}else i!==n&&(n=null)}}return Wo=n,null}function qb(n){switch(n){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 2;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 8;case"message":switch($u()){case ep:return 2;case tp:return 8;case Hu:case ET:return 32;case np:return 268435456;default:return 32}default:return 32}}var Hd=!1,Ir=null,Xr=null,Vr=null,Wl=new Map,Fl=new Map,Zr=[],Uj="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(" ");function $b(n,i){switch(n){case"focusin":case"focusout":Ir=null;break;case"dragenter":case"dragleave":Xr=null;break;case"mouseover":case"mouseout":Vr=null;break;case"pointerover":case"pointerout":Wl.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":Fl.delete(i.pointerId)}}function Jl(n,i,l,c,d,y){return n===null||n.nativeEvent!==y?(n={blockedOn:i,domEventName:l,eventSystemFlags:c,nativeEvent:y,targetContainers:[d]},i!==null&&(i=Qa(i),i!==null&&Ub(i)),n):(n.eventSystemFlags|=c,i=n.targetContainers,d!==null&&i.indexOf(d)===-1&&i.push(d),n)}function qj(n,i,l,c,d){switch(i){case"focusin":return Ir=Jl(Ir,n,i,l,c,d),!0;case"dragenter":return Xr=Jl(Xr,n,i,l,c,d),!0;case"mouseover":return Vr=Jl(Vr,n,i,l,c,d),!0;case"pointerover":var y=d.pointerId;return Wl.set(y,Jl(Wl.get(y)||null,n,i,l,c,d)),!0;case"gotpointercapture":return y=d.pointerId,Fl.set(y,Jl(Fl.get(y)||null,n,i,l,c,d)),!0}return!1}function Hb(n){var i=Za(n.target);if(i!==null){var l=o(i);if(l!==null){if(i=l.tag,i===13){if(i=s(l),i!==null){n.blockedOn=i,PT(n.priority,function(){if(l.tag===13){var c=rn();c=Ps(c);var d=oi(l,c);d!==null&&an(d,l,c),Ld(l,c)}});return}}else if(i===3&&l.stateNode.current.memoizedState.isDehydrated){n.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}n.blockedOn=null}function Fo(n){if(n.blockedOn!==null)return!1;for(var i=n.targetContainers;0<i.length;){var l=qd(n.nativeEvent);if(l===null){l=n.nativeEvent;var c=new l.constructor(l.type,l);Ys=c,l.target.dispatchEvent(c),Ys=null}else return i=Qa(l),i!==null&&Ub(i),n.blockedOn=l,!1;i.shift()}return!0}function Yb(n,i,l){Fo(n)&&l.delete(i)}function $j(){Hd=!1,Ir!==null&&Fo(Ir)&&(Ir=null),Xr!==null&&Fo(Xr)&&(Xr=null),Vr!==null&&Fo(Vr)&&(Vr=null),Wl.forEach(Yb),Fl.forEach(Yb)}function Jo(n,i){n.blockedOn===i&&(n.blockedOn=null,Hd||(Hd=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,$j)))}var ec=null;function Gb(n){ec!==n&&(ec=n,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){ec===n&&(ec=null);for(var i=0;i<n.length;i+=3){var l=n[i],c=n[i+1],d=n[i+2];if(typeof c!="function"){if($d(c||l)===null)continue;break}var y=Qa(l);y!==null&&(n.splice(i,3),i-=3,$f(y,{pending:!0,data:d,method:l.method,action:c},c,d))}}))}function eu(n){function i(C){return Jo(C,n)}Ir!==null&&Jo(Ir,n),Xr!==null&&Jo(Xr,n),Vr!==null&&Jo(Vr,n),Wl.forEach(i),Fl.forEach(i);for(var l=0;l<Zr.length;l++){var c=Zr[l];c.blockedOn===n&&(c.blockedOn=null)}for(;0<Zr.length&&(l=Zr[0],l.blockedOn===null);)Hb(l),l.blockedOn===null&&Zr.shift();if(l=(n.ownerDocument||n).$$reactFormReplay,l!=null)for(c=0;c<l.length;c+=3){var d=l[c],y=l[c+1],x=d[$t]||null;if(typeof y=="function")x||Gb(l);else if(x){var A=null;if(y&&y.hasAttribute("formAction")){if(d=y,x=y[$t]||null)A=x.formAction;else if($d(d)!==null)continue}else A=x.action;typeof A=="function"?l[c+1]=A:(l.splice(c,3),c-=3),Gb(l)}}}function Yd(n){this._internalRoot=n}tc.prototype.render=Yd.prototype.render=function(n){var i=this._internalRoot;if(i===null)throw Error(a(409));var l=i.current,c=rn();Bb(l,c,n,i,null,null)},tc.prototype.unmount=Yd.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var i=n.containerInfo;Bb(n.current,2,null,n,null,null),zo(),i[Va]=null}};function tc(n){this._internalRoot=n}tc.prototype.unstable_scheduleHydration=function(n){if(n){var i=up();n={blockedOn:null,target:n,priority:i};for(var l=0;l<Zr.length&&i!==0&&i<Zr[l].priority;l++);Zr.splice(l,0,n),l===0&&Hb(n)}};var Kb=t.version;if(Kb!=="19.1.1")throw Error(a(527,Kb,"19.1.1"));V.findDOMNode=function(n){var i=n._reactInternals;if(i===void 0)throw typeof n.render=="function"?Error(a(188)):(n=Object.keys(n).join(","),Error(a(268,n)));return n=m(i),n=n!==null?h(n):null,n=n===null?null:n.stateNode,n};var Hj={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:L,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var nc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!nc.isDisabled&&nc.supportsFiber)try{al=nc.inject(Hj),Qt=nc}catch{}}return nu.createRoot=function(n,i){if(!u(n))throw Error(a(299));var l=!1,c="",d=u0,y=o0,x=c0,A=null;return i!=null&&(i.unstable_strictMode===!0&&(l=!0),i.identifierPrefix!==void 0&&(c=i.identifierPrefix),i.onUncaughtError!==void 0&&(d=i.onUncaughtError),i.onCaughtError!==void 0&&(y=i.onCaughtError),i.onRecoverableError!==void 0&&(x=i.onRecoverableError),i.unstable_transitionCallbacks!==void 0&&(A=i.unstable_transitionCallbacks)),i=kb(n,1,!1,null,null,l,c,d,y,x,A,null),n[Va]=i.current,Ed(n),new Yd(i)},nu.hydrateRoot=function(n,i,l){if(!u(n))throw Error(a(299));var c=!1,d="",y=u0,x=o0,A=c0,C=null,q=null;return l!=null&&(l.unstable_strictMode===!0&&(c=!0),l.identifierPrefix!==void 0&&(d=l.identifierPrefix),l.onUncaughtError!==void 0&&(y=l.onUncaughtError),l.onCaughtError!==void 0&&(x=l.onCaughtError),l.onRecoverableError!==void 0&&(A=l.onRecoverableError),l.unstable_transitionCallbacks!==void 0&&(C=l.unstable_transitionCallbacks),l.formState!==void 0&&(q=l.formState)),i=kb(n,1,!0,i,l??null,c,d,y,x,A,C,q),i.context=zb(null),l=i.current,c=rn(),c=Ps(c),d=Nr(c),d.callback=null,Pr(l,d,c),l=c,i.current.lanes=l,ll(i,l),In(i),n[Va]=i.current,Ed(n),new tc(i)},nu.version="19.1.1",nu}var t1;function Jj(){if(t1)return Id.exports;t1=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Id.exports=Fj(),Id.exports}var eM=Jj();const tM=qn(eM);async function nM(e){const t=await fetch(`/api/benchmarks/${e}/stats`);if(!t.ok)throw new Error(`Failed to fetch benchmark stats: ${t.statusText}`);return t.json()}async function rM(e){const t=await fetch(`/api/benchmarks/${e}/run`,{method:"POST"});if(!t.ok){const r=await t.json();throw new Error(r.detail||"Failed to start benchmark")}return t.json()}async function aM(e){const t=await fetch(`/api/benchmarks/${e}/results`,{method:"DELETE"});if(!t.ok){const r=await t.json();throw new Error(r.detail||"Failed to delete results")}return t.json()}async function iM(e,t){const r=await fetch(`/api/benchmarks/${e}/add-players`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({players:t})});if(!r.ok){const a=await r.json();throw new Error(a.detail||"Failed to add players")}return r.json()}function lM({data:e,title:t,className:r=""}){if(!e||e.length===0)return T.jsxs("div",{className:`${r}`,children:[t&&T.jsx("h3",{className:"text-lg font-semibold mb-4 text-gray-800",children:t}),T.jsx("div",{className:"text-center py-8 text-gray-500",children:"No data available"})]});const a=[...e].sort((u,o)=>o.value-u.value);return T.jsxs("div",{className:`${r}`,children:[t&&T.jsx("h3",{className:"text-lg font-semibold mb-4 text-gray-800",children:t}),T.jsx("div",{className:"overflow-x-auto",children:T.jsxs("table",{className:"min-w-full bg-white border border-gray-200 rounded-lg shadow-sm",children:[T.jsx("thead",{className:"bg-gray-50",children:T.jsxs("tr",{children:[T.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Rank"}),T.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Player"}),T.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Score"})]})}),T.jsx("tbody",{className:"divide-y divide-gray-200",children:a.map((u,o)=>T.jsxs("tr",{className:o%2===0?"bg-white":"bg-gray-50",children:[T.jsx("td",{className:"px-6 py-4 whitespace-nowrap text-sm text-gray-900",children:T.jsxs("span",{className:`font-semibold ${o===0?"text-yellow-600":o===1?"text-gray-400":o===2?"text-amber-600":"text-gray-600"}`,children:["#",o+1]})}),T.jsx("td",{className:"px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900",children:u.name}),T.jsx("td",{className:"px-6 py-4 whitespace-nowrap text-sm text-gray-900",children:T.jsx("span",{className:"font-mono",children:u.value.toFixed(2)})})]},u.name))})]})})]})}function tO(e){var t,r,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var u=e.length;for(t=0;t<u;t++)e[t]&&(r=tO(e[t]))&&(a&&(a+=" "),a+=r)}else for(r in e)e[r]&&(a&&(a+=" "),a+=r);return a}function Xe(){for(var e,t,r=0,a="",u=arguments.length;r<u;r++)(e=arguments[r])&&(t=tO(e))&&(a&&(a+=" "),a+=t);return a}var Qd={},Wd={},n1;function uM(){return n1||(n1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r==="__proto__"}e.isUnsafeProperty=t})(Wd)),Wd}var Fd={},r1;function nO(){return r1||(r1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){switch(typeof r){case"number":case"symbol":return!1;case"string":return r.includes(".")||r.includes("[")||r.includes("]")}}e.isDeepKey=t})(Fd)),Fd}var Jd={},a1;function rO(){return a1||(a1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="string"||typeof r=="symbol"?r:Object.is(r?.valueOf?.(),-0)?"-0":String(r)}e.toKey=t})(Jd)),Jd}var eh={},i1;function wm(){return i1||(i1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){const a=[],u=r.length;if(u===0)return a;let o=0,s="",f="",m=!1;for(r.charCodeAt(0)===46&&(a.push(""),o++);o<u;){const h=r[o];f?h==="\\"&&o+1<u?(o++,s+=r[o]):h===f?f="":s+=h:m?h==='"'||h==="'"?f=h:h==="]"?(m=!1,a.push(s),s=""):s+=h:h==="["?(m=!0,s&&(a.push(s),s="")):h==="."?s&&(a.push(s),s=""):s+=h,o++}return s&&a.push(s),a}e.toPath=t})(eh)),eh}var l1;function Om(){return l1||(l1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=uM(),r=nO(),a=rO(),u=wm();function o(f,m,h){if(f==null)return h;switch(typeof m){case"string":{if(t.isUnsafeProperty(m))return h;const v=f[m];return v===void 0?r.isDeepKey(m)?o(f,u.toPath(m),h):h:v}case"number":case"symbol":{typeof m=="number"&&(m=a.toKey(m));const v=f[m];return v===void 0?h:v}default:{if(Array.isArray(m))return s(f,m,h);if(Object.is(m?.valueOf(),-0)?m="-0":m=String(m),t.isUnsafeProperty(m))return h;const v=f[m];return v===void 0?h:v}}}function s(f,m,h){if(m.length===0)return h;let v=f;for(let p=0;p<m.length;p++){if(v==null||t.isUnsafeProperty(m[p]))return h;v=v[m[p]]}return v===void 0?h:v}e.get=o})(Qd)),Qd}var th,u1;function oM(){return u1||(u1=1,th=Om().get),th}var cM=oM();const qa=qn(cM);var nh={exports:{}},$e={};/**
 * @license React
 * react-is.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var o1;function sM(){if(o1)return $e;o1=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),s=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),v=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),g=Symbol.for("react.view_transition"),b=Symbol.for("react.client.reference");function S(w){if(typeof w=="object"&&w!==null){var O=w.$$typeof;switch(O){case e:switch(w=w.type,w){case r:case u:case a:case m:case h:case g:return w;default:switch(w=w&&w.$$typeof,w){case s:case f:case p:case v:return w;case o:return w;default:return O}}case t:return O}}}return $e.ContextConsumer=o,$e.ContextProvider=s,$e.Element=e,$e.ForwardRef=f,$e.Fragment=r,$e.Lazy=p,$e.Memo=v,$e.Portal=t,$e.Profiler=u,$e.StrictMode=a,$e.Suspense=m,$e.SuspenseList=h,$e.isContextConsumer=function(w){return S(w)===o},$e.isContextProvider=function(w){return S(w)===s},$e.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===e},$e.isForwardRef=function(w){return S(w)===f},$e.isFragment=function(w){return S(w)===r},$e.isLazy=function(w){return S(w)===p},$e.isMemo=function(w){return S(w)===v},$e.isPortal=function(w){return S(w)===t},$e.isProfiler=function(w){return S(w)===u},$e.isStrictMode=function(w){return S(w)===a},$e.isSuspense=function(w){return S(w)===m},$e.isSuspenseList=function(w){return S(w)===h},$e.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===r||w===u||w===a||w===m||w===h||typeof w=="object"&&w!==null&&(w.$$typeof===p||w.$$typeof===v||w.$$typeof===s||w.$$typeof===o||w.$$typeof===f||w.$$typeof===b||w.getModuleId!==void 0)},$e.typeOf=S,$e}var c1;function fM(){return c1||(c1=1,nh.exports=sM()),nh.exports}var dM=fM(),Xt=e=>e===0?0:e>0?1:-1,dn=e=>typeof e=="number"&&e!=+e,Ca=e=>typeof e=="string"&&e.indexOf("%")===e.length-1,ce=e=>(typeof e=="number"||e instanceof Number)&&!dn(e),Zn=e=>ce(e)||typeof e=="string",hM=0,mu=e=>{var t=++hM;return"".concat(e||"").concat(t)},Un=function(t,r){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!ce(t)&&typeof t!="string")return a;var o;if(Ca(t)){if(r==null)return a;var s=t.indexOf("%");o=r*parseFloat(t.slice(0,s))/100}else o=+t;return dn(o)&&(o=a),u&&r!=null&&o>r&&(o=r),o},aO=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,r={},a=0;a<t;a++)if(!r[e[a]])r[e[a]]=!0;else return!0;return!1};function Pi(e,t,r){return ce(e)&&ce(t)?e+r*(t-e):t}function vM(e,t,r){if(!(!e||!e.length))return e.find(a=>a&&(typeof t=="function"?t(a):qa(a,t))===r)}var ct=e=>e===null||typeof e>"u",Eu=e=>ct(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1)),mM=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"];function Am(e){if(typeof e!="string")return!1;var t=mM;return t.includes(e)}var yM=["viewBox","children"],s1=["points","pathLength"],rh={svg:yM,polygon:s1,polyline:s1},pM=(e,t)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var r=e;if(E.isValidElement(e)&&(r=e.props),typeof r!="object"&&typeof r!="function")return null;var a={};return Object.keys(r).forEach(u=>{Am(u)&&(a[u]=(o=>r[u](r,o)))}),a},gM=(e,t,r)=>a=>(e(t,r,a),null),Em=(e,t,r)=>{if(e===null||typeof e!="object"&&typeof e!="function")return null;var a=null;return Object.keys(e).forEach(u=>{var o=e[u];Am(u)&&typeof o=="function"&&(a||(a={}),a[u]=gM(o,t,r))}),a},bM=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"];function iO(e){if(typeof e!="string")return!1;var t=bM;return t.includes(e)}function Tu(e){var t=Object.entries(e).filter(r=>{var[a]=r;return iO(a)});return Object.fromEntries(t)}var f1=e=>typeof e=="string"?e:e?e.displayName||e.name||"Component":"",d1=null,ah=null,lO=e=>{if(e===d1&&Array.isArray(ah))return ah;var t=[];return E.Children.forEach(e,r=>{ct(r)||(dM.isFragment(r)?t=t.concat(lO(r.props.children)):t.push(r))}),ah=t,d1=e,t};function Tm(e,t){var r=[],a=[];return Array.isArray(t)?a=t.map(u=>f1(u)):a=[f1(t)],lO(e).forEach(u=>{var o=qa(u,"type.displayName")||qa(u,"type.name");a.indexOf(o)!==-1&&r.push(u)}),r}var xM=(e,t,r,a)=>{var u;if(typeof t=="symbol"||typeof t=="number")return!0;var o=(u=a&&rh?.[a])!==null&&u!==void 0?u:[],s=t.startsWith("data-"),f=typeof e!="function"&&(!!a&&o.includes(t)||iO(t)),m=!!r&&Am(t);return s||f||m},xt=(e,t,r)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var a=e;if(E.isValidElement(e)&&(a=e.props),typeof a!="object"&&typeof a!="function")return null;var u={};return Object.keys(a).forEach(o=>{var s;xM((s=a)===null||s===void 0?void 0:s[o],o,t,r)&&(u[o]=a[o])}),u},SM=["children","width","height","viewBox","className","style","title","desc"];function Pv(){return Pv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)({}).hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Pv.apply(null,arguments)}function wM(e,t){if(e==null)return{};var r,a,u=OM(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(u[r]=e[r])}return u}function OM(e,t){if(e==null)return{};var r={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)!==-1)continue;r[a]=e[a]}return r}var uO=E.forwardRef((e,t)=>{var{children:r,width:a,height:u,viewBox:o,className:s,style:f,title:m,desc:h}=e,v=wM(e,SM),p=o||{width:a,height:u,x:0,y:0},g=Xe("recharts-surface",s);return E.createElement("svg",Pv({},xt(v,!0,"svg"),{className:g,width:a,height:u,style:f,viewBox:"".concat(p.x," ").concat(p.y," ").concat(p.width," ").concat(p.height),ref:t}),E.createElement("title",null,m),E.createElement("desc",null,h),r)}),AM=["children","className"];function Rv(){return Rv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)({}).hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Rv.apply(null,arguments)}function EM(e,t){if(e==null)return{};var r,a,u=TM(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(u[r]=e[r])}return u}function TM(e,t){if(e==null)return{};var r={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)!==-1)continue;r[a]=e[a]}return r}var na=E.forwardRef((e,t)=>{var{children:r,className:a}=e,u=EM(e,AM),o=Xe("recharts-layer",a);return E.createElement("g",Rv({className:o},xt(u,!0),{ref:t}),r)}),_M=eO(),jM=E.createContext(null);function Ke(e){return function(){return e}}const oO=Math.cos,bc=Math.sin,$n=Math.sqrt,xc=Math.PI,rs=2*xc,kv=Math.PI,zv=2*kv,_a=1e-6,MM=zv-_a;function cO(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function CM(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return cO;const r=10**t;return function(a){this._+=a[0];for(let u=1,o=a.length;u<o;++u)this._+=Math.round(arguments[u]*r)/r+a[u]}}class DM{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?cO:CM(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,a,u){this._append`Q${+t},${+r},${this._x1=+a},${this._y1=+u}`}bezierCurveTo(t,r,a,u,o,s){this._append`C${+t},${+r},${+a},${+u},${this._x1=+o},${this._y1=+s}`}arcTo(t,r,a,u,o){if(t=+t,r=+r,a=+a,u=+u,o=+o,o<0)throw new Error(`negative radius: ${o}`);let s=this._x1,f=this._y1,m=a-t,h=u-r,v=s-t,p=f-r,g=v*v+p*p;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(g>_a)if(!(Math.abs(p*m-h*v)>_a)||!o)this._append`L${this._x1=t},${this._y1=r}`;else{let b=a-s,S=u-f,w=m*m+h*h,O=b*b+S*S,_=Math.sqrt(w),M=Math.sqrt(g),j=o*Math.tan((kv-Math.acos((w+g-O)/(2*_*M)))/2),k=j/M,D=j/_;Math.abs(k-1)>_a&&this._append`L${t+k*v},${r+k*p}`,this._append`A${o},${o},0,0,${+(p*b>v*S)},${this._x1=t+D*m},${this._y1=r+D*h}`}}arc(t,r,a,u,o,s){if(t=+t,r=+r,a=+a,s=!!s,a<0)throw new Error(`negative radius: ${a}`);let f=a*Math.cos(u),m=a*Math.sin(u),h=t+f,v=r+m,p=1^s,g=s?u-o:o-u;this._x1===null?this._append`M${h},${v}`:(Math.abs(this._x1-h)>_a||Math.abs(this._y1-v)>_a)&&this._append`L${h},${v}`,a&&(g<0&&(g=g%zv+zv),g>MM?this._append`A${a},${a},0,1,${p},${t-f},${r-m}A${a},${a},0,1,${p},${this._x1=h},${this._y1=v}`:g>_a&&this._append`A${a},${a},0,${+(g>=kv)},${p},${this._x1=t+a*Math.cos(o)},${this._y1=r+a*Math.sin(o)}`)}rect(t,r,a,u){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${a=+a}v${+u}h${-a}Z`}toString(){return this._}}function _m(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const a=Math.floor(r);if(!(a>=0))throw new RangeError(`invalid digits: ${r}`);t=a}return e},()=>new DM(t)}function jm(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function sO(e){this._context=e}sO.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function as(e){return new sO(e)}function fO(e){return e[0]}function dO(e){return e[1]}function hO(e,t){var r=Ke(!0),a=null,u=as,o=null,s=_m(f);e=typeof e=="function"?e:e===void 0?fO:Ke(e),t=typeof t=="function"?t:t===void 0?dO:Ke(t);function f(m){var h,v=(m=jm(m)).length,p,g=!1,b;for(a==null&&(o=u(b=s())),h=0;h<=v;++h)!(h<v&&r(p=m[h],h,m))===g&&((g=!g)?o.lineStart():o.lineEnd()),g&&o.point(+e(p,h,m),+t(p,h,m));if(b)return o=null,b+""||null}return f.x=function(m){return arguments.length?(e=typeof m=="function"?m:Ke(+m),f):e},f.y=function(m){return arguments.length?(t=typeof m=="function"?m:Ke(+m),f):t},f.defined=function(m){return arguments.length?(r=typeof m=="function"?m:Ke(!!m),f):r},f.curve=function(m){return arguments.length?(u=m,a!=null&&(o=u(a)),f):u},f.context=function(m){return arguments.length?(m==null?a=o=null:o=u(a=m),f):a},f}function rc(e,t,r){var a=null,u=Ke(!0),o=null,s=as,f=null,m=_m(h);e=typeof e=="function"?e:e===void 0?fO:Ke(+e),t=typeof t=="function"?t:Ke(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?dO:Ke(+r);function h(p){var g,b,S,w=(p=jm(p)).length,O,_=!1,M,j=new Array(w),k=new Array(w);for(o==null&&(f=s(M=m())),g=0;g<=w;++g){if(!(g<w&&u(O=p[g],g,p))===_)if(_=!_)b=g,f.areaStart(),f.lineStart();else{for(f.lineEnd(),f.lineStart(),S=g-1;S>=b;--S)f.point(j[S],k[S]);f.lineEnd(),f.areaEnd()}_&&(j[g]=+e(O,g,p),k[g]=+t(O,g,p),f.point(a?+a(O,g,p):j[g],r?+r(O,g,p):k[g]))}if(M)return f=null,M+""||null}function v(){return hO().defined(u).curve(s).context(o)}return h.x=function(p){return arguments.length?(e=typeof p=="function"?p:Ke(+p),a=null,h):e},h.x0=function(p){return arguments.length?(e=typeof p=="function"?p:Ke(+p),h):e},h.x1=function(p){return arguments.length?(a=p==null?null:typeof p=="function"?p:Ke(+p),h):a},h.y=function(p){return arguments.length?(t=typeof p=="function"?p:Ke(+p),r=null,h):t},h.y0=function(p){return arguments.length?(t=typeof p=="function"?p:Ke(+p),h):t},h.y1=function(p){return arguments.length?(r=p==null?null:typeof p=="function"?p:Ke(+p),h):r},h.lineX0=h.lineY0=function(){return v().x(e).y(t)},h.lineY1=function(){return v().x(e).y(r)},h.lineX1=function(){return v().x(a).y(t)},h.defined=function(p){return arguments.length?(u=typeof p=="function"?p:Ke(!!p),h):u},h.curve=function(p){return arguments.length?(s=p,o!=null&&(f=s(o)),h):s},h.context=function(p){return arguments.length?(p==null?o=f=null:f=s(o=p),h):o},h}class vO{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function NM(e){return new vO(e,!0)}function PM(e){return new vO(e,!1)}const Mm={draw(e,t){const r=$n(t/xc);e.moveTo(r,0),e.arc(0,0,r,0,rs)}},RM={draw(e,t){const r=$n(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},mO=$n(1/3),kM=mO*2,zM={draw(e,t){const r=$n(t/kM),a=r*mO;e.moveTo(0,-r),e.lineTo(a,0),e.lineTo(0,r),e.lineTo(-a,0),e.closePath()}},BM={draw(e,t){const r=$n(t),a=-r/2;e.rect(a,a,r,r)}},LM=.8908130915292852,yO=bc(xc/10)/bc(7*xc/10),UM=bc(rs/10)*yO,qM=-oO(rs/10)*yO,$M={draw(e,t){const r=$n(t*LM),a=UM*r,u=qM*r;e.moveTo(0,-r),e.lineTo(a,u);for(let o=1;o<5;++o){const s=rs*o/5,f=oO(s),m=bc(s);e.lineTo(m*r,-f*r),e.lineTo(f*a-m*u,m*a+f*u)}e.closePath()}},ih=$n(3),HM={draw(e,t){const r=-$n(t/(ih*3));e.moveTo(0,r*2),e.lineTo(-ih*r,-r),e.lineTo(ih*r,-r),e.closePath()}},En=-.5,Tn=$n(3)/2,Bv=1/$n(12),YM=(Bv/2+1)*3,GM={draw(e,t){const r=$n(t/YM),a=r/2,u=r*Bv,o=a,s=r*Bv+r,f=-o,m=s;e.moveTo(a,u),e.lineTo(o,s),e.lineTo(f,m),e.lineTo(En*a-Tn*u,Tn*a+En*u),e.lineTo(En*o-Tn*s,Tn*o+En*s),e.lineTo(En*f-Tn*m,Tn*f+En*m),e.lineTo(En*a+Tn*u,En*u-Tn*a),e.lineTo(En*o+Tn*s,En*s-Tn*o),e.lineTo(En*f+Tn*m,En*m-Tn*f),e.closePath()}};function KM(e,t){let r=null,a=_m(u);e=typeof e=="function"?e:Ke(e||Mm),t=typeof t=="function"?t:Ke(t===void 0?64:+t);function u(){let o;if(r||(r=o=a()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),o)return r=null,o+""||null}return u.type=function(o){return arguments.length?(e=typeof o=="function"?o:Ke(o),u):e},u.size=function(o){return arguments.length?(t=typeof o=="function"?o:Ke(+o),u):t},u.context=function(o){return arguments.length?(r=o??null,u):r},u}function Sc(){}function wc(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function pO(e){this._context=e}pO.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:wc(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:wc(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function IM(e){return new pO(e)}function gO(e){this._context=e}gO.prototype={areaStart:Sc,areaEnd:Sc,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:wc(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function XM(e){return new gO(e)}function bO(e){this._context=e}bO.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,a=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,a):this._context.moveTo(r,a);break;case 3:this._point=4;default:wc(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function VM(e){return new bO(e)}function xO(e){this._context=e}xO.prototype={areaStart:Sc,areaEnd:Sc,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function ZM(e){return new xO(e)}function h1(e){return e<0?-1:1}function v1(e,t,r){var a=e._x1-e._x0,u=t-e._x1,o=(e._y1-e._y0)/(a||u<0&&-0),s=(r-e._y1)/(u||a<0&&-0),f=(o*u+s*a)/(a+u);return(h1(o)+h1(s))*Math.min(Math.abs(o),Math.abs(s),.5*Math.abs(f))||0}function m1(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function lh(e,t,r){var a=e._x0,u=e._y0,o=e._x1,s=e._y1,f=(o-a)/3;e._context.bezierCurveTo(a+f,u+f*t,o-f,s-f*r,o,s)}function Oc(e){this._context=e}Oc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:lh(this,this._t0,m1(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,lh(this,m1(this,r=v1(this,e,t)),r);break;default:lh(this,this._t0,r=v1(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function SO(e){this._context=new wO(e)}(SO.prototype=Object.create(Oc.prototype)).point=function(e,t){Oc.prototype.point.call(this,t,e)};function wO(e){this._context=e}wO.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,a,u,o){this._context.bezierCurveTo(t,e,a,r,o,u)}};function QM(e){return new Oc(e)}function WM(e){return new SO(e)}function OO(e){this._context=e}OO.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var a=y1(e),u=y1(t),o=0,s=1;s<r;++o,++s)this._context.bezierCurveTo(a[0][o],u[0][o],a[1][o],u[1][o],e[s],t[s]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function y1(e){var t,r=e.length-1,a,u=new Array(r),o=new Array(r),s=new Array(r);for(u[0]=0,o[0]=2,s[0]=e[0]+2*e[1],t=1;t<r-1;++t)u[t]=1,o[t]=4,s[t]=4*e[t]+2*e[t+1];for(u[r-1]=2,o[r-1]=7,s[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)a=u[t]/o[t-1],o[t]-=a,s[t]-=a*s[t-1];for(u[r-1]=s[r-1]/o[r-1],t=r-2;t>=0;--t)u[t]=(s[t]-u[t+1])/o[t];for(o[r-1]=(e[r]+u[r-1])/2,t=0;t<r-1;++t)o[t]=2*e[t+1]-u[t+1];return[u,o]}function FM(e){return new OO(e)}function is(e,t){this._context=e,this._t=t}is.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function JM(e){return new is(e,.5)}function eC(e){return new is(e,0)}function tC(e){return new is(e,1)}function Ui(e,t){if((s=e.length)>1)for(var r=1,a,u,o=e[t[0]],s,f=o.length;r<s;++r)for(u=o,o=e[t[r]],a=0;a<f;++a)o[a][1]+=o[a][0]=isNaN(u[a][1])?u[a][0]:u[a][1]}function Lv(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function nC(e,t){return e[t]}function rC(e){const t=[];return t.key=e,t}function aC(){var e=Ke([]),t=Lv,r=Ui,a=nC;function u(o){var s=Array.from(e.apply(this,arguments),rC),f,m=s.length,h=-1,v;for(const p of o)for(f=0,++h;f<m;++f)(s[f][h]=[0,+a(p,s[f].key,h,o)]).data=p;for(f=0,v=jm(t(s));f<m;++f)s[v[f]].index=f;return r(s,v),s}return u.keys=function(o){return arguments.length?(e=typeof o=="function"?o:Ke(Array.from(o)),u):e},u.value=function(o){return arguments.length?(a=typeof o=="function"?o:Ke(+o),u):a},u.order=function(o){return arguments.length?(t=o==null?Lv:typeof o=="function"?o:Ke(Array.from(o)),u):t},u.offset=function(o){return arguments.length?(r=o??Ui,u):r},u}function iC(e,t){if((a=e.length)>0){for(var r,a,u=0,o=e[0].length,s;u<o;++u){for(s=r=0;r<a;++r)s+=e[r][u][1]||0;if(s)for(r=0;r<a;++r)e[r][u][1]/=s}Ui(e,t)}}function lC(e,t){if((u=e.length)>0){for(var r=0,a=e[t[0]],u,o=a.length;r<o;++r){for(var s=0,f=0;s<u;++s)f+=e[s][r][1]||0;a[r][1]+=a[r][0]=-f/2}Ui(e,t)}}function uC(e,t){if(!(!((s=e.length)>0)||!((o=(u=e[t[0]]).length)>0))){for(var r=0,a=1,u,o,s;a<o;++a){for(var f=0,m=0,h=0;f<s;++f){for(var v=e[t[f]],p=v[a][1]||0,g=v[a-1][1]||0,b=(p-g)/2,S=0;S<f;++S){var w=e[t[S]],O=w[a][1]||0,_=w[a-1][1]||0;b+=O-_}m+=p,h+=b*p}u[a-1][1]+=u[a-1][0]=r,m&&(r-=h/m)}u[a-1][1]+=u[a-1][0]=r,Ui(e,t)}}var oC=["type","size","sizeType"];function Uv(){return Uv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)({}).hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Uv.apply(null,arguments)}function p1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),r.push.apply(r,a)}return r}function g1(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?p1(Object(r),!0).forEach(function(a){cC(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p1(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function cC(e,t,r){return(t=sC(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sC(e){var t=fC(e,"string");return typeof t=="symbol"?t:t+""}function fC(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function dC(e,t){if(e==null)return{};var r,a,u=hC(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(u[r]=e[r])}return u}function hC(e,t){if(e==null)return{};var r={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)!==-1)continue;r[a]=e[a]}return r}var AO={symbolCircle:Mm,symbolCross:RM,symbolDiamond:zM,symbolSquare:BM,symbolStar:$M,symbolTriangle:HM,symbolWye:GM},vC=Math.PI/180,mC=e=>{var t="symbol".concat(Eu(e));return AO[t]||Mm},yC=(e,t,r)=>{if(t==="area")return e;switch(r){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var a=18*vC;return 1.25*e*e*(Math.tan(a)-Math.tan(a*2)*Math.tan(a)**2)}case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},pC=(e,t)=>{AO["symbol".concat(Eu(e))]=t},EO=e=>{var{type:t="circle",size:r=64,sizeType:a="area"}=e,u=dC(e,oC),o=g1(g1({},u),{},{type:t,size:r,sizeType:a}),s=()=>{var p=mC(t),g=KM().type(p).size(yC(r,a,t));return g()},{className:f,cx:m,cy:h}=o,v=xt(o,!0);return m===+m&&h===+h&&r===+r?E.createElement("path",Uv({},v,{className:Xe("recharts-symbols",f),transform:"translate(".concat(m,", ").concat(h,")"),d:s()})):null};EO.registerSymbol=pC;var uh={},oh={},b1;function gC(){return b1||(b1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,a){const u=new Map;for(let o=0;o<r.length;o++){const s=r[o],f=a(s);u.has(f)||u.set(f,s)}return Array.from(u.values())}e.uniqBy=t})(oh)),oh}var ch={},x1;function TO(){return x1||(x1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r}e.identity=t})(ch)),ch}var sh={},fh={},dh={},S1;function bC(){return S1||(S1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return Number.isSafeInteger(r)&&r>=0}e.isLength=t})(dh)),dh}var w1;function Cm(){return w1||(w1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=bC();function r(a){return a!=null&&typeof a!="function"&&t.isLength(a.length)}e.isArrayLike=r})(fh)),fh}var hh={},O1;function xC(){return O1||(O1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="object"&&r!==null}e.isObjectLike=t})(hh)),hh}var A1;function SC(){return A1||(A1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Cm(),r=xC();function a(u){return r.isObjectLike(u)&&t.isArrayLike(u)}e.isArrayLikeObject=a})(sh)),sh}var vh={},mh={},E1;function wC(){return E1||(E1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Om();function r(a){return function(u){return t.get(u,a)}}e.property=r})(mh)),mh}var yh={},ph={},gh={},bh={},T1;function _O(){return T1||(T1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r!==null&&(typeof r=="object"||typeof r=="function")}e.isObject=t})(bh)),bh}var xh={},_1;function jO(){return _1||(_1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r==null||typeof r!="object"&&typeof r!="function"}e.isPrimitive=t})(xh)),xh}var Sh={},j1;function Dm(){return j1||(j1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,a){return r===a||Number.isNaN(r)&&Number.isNaN(a)}e.eq=t})(Sh)),Sh}var M1;function OC(){return M1||(M1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Nm(),r=_O(),a=jO(),u=Dm();function o(p,g,b){return typeof b!="function"?t.isMatch(p,g):s(p,g,function S(w,O,_,M,j,k){const D=b(w,O,_,M,j,k);return D!==void 0?!!D:s(w,O,S,k)},new Map)}function s(p,g,b,S){if(g===p)return!0;switch(typeof g){case"object":return f(p,g,b,S);case"function":return Object.keys(g).length>0?s(p,{...g},b,S):u.eq(p,g);default:return r.isObject(p)?typeof g=="string"?g==="":!0:u.eq(p,g)}}function f(p,g,b,S){if(g==null)return!0;if(Array.isArray(g))return h(p,g,b,S);if(g instanceof Map)return m(p,g,b,S);if(g instanceof Set)return v(p,g,b,S);const w=Object.keys(g);if(p==null)return w.length===0;if(w.length===0)return!0;if(S&&S.has(g))return S.get(g)===p;S&&S.set(g,p);try{for(let O=0;O<w.length;O++){const _=w[O];if(!a.isPrimitive(p)&&!(_ in p)||g[_]===void 0&&p[_]!==void 0||g[_]===null&&p[_]!==null||!b(p[_],g[_],_,p,g,S))return!1}return!0}finally{S&&S.delete(g)}}function m(p,g,b,S){if(g.size===0)return!0;if(!(p instanceof Map))return!1;for(const[w,O]of g.entries()){const _=p.get(w);if(b(_,O,w,p,g,S)===!1)return!1}return!0}function h(p,g,b,S){if(g.length===0)return!0;if(!Array.isArray(p))return!1;const w=new Set;for(let O=0;O<g.length;O++){const _=g[O];let M=!1;for(let j=0;j<p.length;j++){if(w.has(j))continue;const k=p[j];let D=!1;if(b(k,_,O,p,g,S)&&(D=!0),D){w.add(j),M=!0;break}}if(!M)return!1}return!0}function v(p,g,b,S){return g.size===0?!0:p instanceof Set?h([...p],[...g],b,S):!1}e.isMatchWith=o,e.isSetMatch=v})(gh)),gh}var C1;function Nm(){return C1||(C1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=OC();function r(a,u){return t.isMatchWith(a,u,()=>{})}e.isMatch=r})(ph)),ph}var wh={},Oh={},Ah={},D1;function MO(){return D1||(D1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return Object.getOwnPropertySymbols(r).filter(a=>Object.prototype.propertyIsEnumerable.call(r,a))}e.getSymbols=t})(Ah)),Ah}var Eh={},N1;function Pm(){return N1||(N1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r==null?r===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(r)}e.getTag=t})(Eh)),Eh}var Th={},P1;function Rm(){return P1||(P1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t="[object RegExp]",r="[object String]",a="[object Number]",u="[object Boolean]",o="[object Arguments]",s="[object Symbol]",f="[object Date]",m="[object Map]",h="[object Set]",v="[object Array]",p="[object Function]",g="[object ArrayBuffer]",b="[object Object]",S="[object Error]",w="[object DataView]",O="[object Uint8Array]",_="[object Uint8ClampedArray]",M="[object Uint16Array]",j="[object Uint32Array]",k="[object BigUint64Array]",D="[object Int8Array]",R="[object Int16Array]",U="[object Int32Array]",K="[object BigInt64Array]",J="[object Float32Array]",re="[object Float64Array]";e.argumentsTag=o,e.arrayBufferTag=g,e.arrayTag=v,e.bigInt64ArrayTag=K,e.bigUint64ArrayTag=k,e.booleanTag=u,e.dataViewTag=w,e.dateTag=f,e.errorTag=S,e.float32ArrayTag=J,e.float64ArrayTag=re,e.functionTag=p,e.int16ArrayTag=R,e.int32ArrayTag=U,e.int8ArrayTag=D,e.mapTag=m,e.numberTag=a,e.objectTag=b,e.regexpTag=t,e.setTag=h,e.stringTag=r,e.symbolTag=s,e.uint16ArrayTag=M,e.uint32ArrayTag=j,e.uint8ArrayTag=O,e.uint8ClampedArrayTag=_})(Th)),Th}var _h={},R1;function AC(){return R1||(R1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return ArrayBuffer.isView(r)&&!(r instanceof DataView)}e.isTypedArray=t})(_h)),_h}var k1;function CO(){return k1||(k1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=MO(),r=Pm(),a=Rm(),u=jO(),o=AC();function s(v,p){return f(v,void 0,v,new Map,p)}function f(v,p,g,b=new Map,S=void 0){const w=S?.(v,p,g,b);if(w!==void 0)return w;if(u.isPrimitive(v))return v;if(b.has(v))return b.get(v);if(Array.isArray(v)){const O=new Array(v.length);b.set(v,O);for(let _=0;_<v.length;_++)O[_]=f(v[_],_,g,b,S);return Object.hasOwn(v,"index")&&(O.index=v.index),Object.hasOwn(v,"input")&&(O.input=v.input),O}if(v instanceof Date)return new Date(v.getTime());if(v instanceof RegExp){const O=new RegExp(v.source,v.flags);return O.lastIndex=v.lastIndex,O}if(v instanceof Map){const O=new Map;b.set(v,O);for(const[_,M]of v)O.set(_,f(M,_,g,b,S));return O}if(v instanceof Set){const O=new Set;b.set(v,O);for(const _ of v)O.add(f(_,void 0,g,b,S));return O}if(typeof Buffer<"u"&&Buffer.isBuffer(v))return v.subarray();if(o.isTypedArray(v)){const O=new(Object.getPrototypeOf(v)).constructor(v.length);b.set(v,O);for(let _=0;_<v.length;_++)O[_]=f(v[_],_,g,b,S);return O}if(v instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&v instanceof SharedArrayBuffer)return v.slice(0);if(v instanceof DataView){const O=new DataView(v.buffer.slice(0),v.byteOffset,v.byteLength);return b.set(v,O),m(O,v,g,b,S),O}if(typeof File<"u"&&v instanceof File){const O=new File([v],v.name,{type:v.type});return b.set(v,O),m(O,v,g,b,S),O}if(v instanceof Blob){const O=new Blob([v],{type:v.type});return b.set(v,O),m(O,v,g,b,S),O}if(v instanceof Error){const O=new v.constructor;return b.set(v,O),O.message=v.message,O.name=v.name,O.stack=v.stack,O.cause=v.cause,m(O,v,g,b,S),O}if(typeof v=="object"&&h(v)){const O=Object.create(Object.getPrototypeOf(v));return b.set(v,O),m(O,v,g,b,S),O}return v}function m(v,p,g=v,b,S){const w=[...Object.keys(p),...t.getSymbols(p)];for(let O=0;O<w.length;O++){const _=w[O],M=Object.getOwnPropertyDescriptor(v,_);(M==null||M.writable)&&(v[_]=f(p[_],_,g,b,S))}}function h(v){switch(r.getTag(v)){case a.argumentsTag:case a.arrayTag:case a.arrayBufferTag:case a.dataViewTag:case a.booleanTag:case a.dateTag:case a.float32ArrayTag:case a.float64ArrayTag:case a.int8ArrayTag:case a.int16ArrayTag:case a.int32ArrayTag:case a.mapTag:case a.numberTag:case a.objectTag:case a.regexpTag:case a.setTag:case a.stringTag:case a.symbolTag:case a.uint8ArrayTag:case a.uint8ClampedArrayTag:case a.uint16ArrayTag:case a.uint32ArrayTag:return!0;default:return!1}}e.cloneDeepWith=s,e.cloneDeepWithImpl=f,e.copyProperties=m})(Oh)),Oh}var z1;function EC(){return z1||(z1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=CO();function r(a){return t.cloneDeepWithImpl(a,void 0,a,new Map,void 0)}e.cloneDeep=r})(wh)),wh}var B1;function TC(){return B1||(B1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Nm(),r=EC();function a(u){return u=r.cloneDeep(u),o=>t.isMatch(o,u)}e.matches=a})(yh)),yh}var jh={},Mh={},Ch={},L1;function _C(){return L1||(L1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=CO(),r=Rm();function a(u,o){return t.cloneDeepWith(u,(s,f,m,h)=>{const v=o?.(s,f,m,h);if(v!==void 0)return v;if(typeof u=="object")switch(Object.prototype.toString.call(u)){case r.numberTag:case r.stringTag:case r.booleanTag:{const p=new u.constructor(u?.valueOf());return t.copyProperties(p,u),p}case r.argumentsTag:{const p={};return t.copyProperties(p,u),p.length=u.length,p[Symbol.iterator]=u[Symbol.iterator],p}default:return}})}e.cloneDeepWith=a})(Ch)),Ch}var U1;function jC(){return U1||(U1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=_C();function r(a){return t.cloneDeepWith(a)}e.cloneDeep=r})(Mh)),Mh}var Dh={},Nh={},q1;function DO(){return q1||(q1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=/^(?:0|[1-9]\d*)$/;function r(a,u=Number.MAX_SAFE_INTEGER){switch(typeof a){case"number":return Number.isInteger(a)&&a>=0&&a<u;case"symbol":return!1;case"string":return t.test(a)}}e.isIndex=r})(Nh)),Nh}var Ph={},$1;function MC(){return $1||($1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Pm();function r(a){return a!==null&&typeof a=="object"&&t.getTag(a)==="[object Arguments]"}e.isArguments=r})(Ph)),Ph}var H1;function CC(){return H1||(H1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=nO(),r=DO(),a=MC(),u=wm();function o(s,f){let m;if(Array.isArray(f)?m=f:typeof f=="string"&&t.isDeepKey(f)&&s?.[f]==null?m=u.toPath(f):m=[f],m.length===0)return!1;let h=s;for(let v=0;v<m.length;v++){const p=m[v];if((h==null||!Object.hasOwn(h,p))&&!((Array.isArray(h)||a.isArguments(h))&&r.isIndex(p)&&p<h.length))return!1;h=h[p]}return!0}e.has=o})(Dh)),Dh}var Y1;function DC(){return Y1||(Y1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Nm(),r=rO(),a=jC(),u=Om(),o=CC();function s(f,m){switch(typeof f){case"object":{Object.is(f?.valueOf(),-0)&&(f="-0");break}case"number":{f=r.toKey(f);break}}return m=a.cloneDeep(m),function(h){const v=u.get(h,f);return v===void 0?o.has(h,f):m===void 0?v===void 0:t.isMatch(v,m)}}e.matchesProperty=s})(jh)),jh}var G1;function NC(){return G1||(G1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=TO(),r=wC(),a=TC(),u=DC();function o(s){if(s==null)return t.identity;switch(typeof s){case"function":return s;case"object":return Array.isArray(s)&&s.length===2?u.matchesProperty(s[0],s[1]):a.matches(s);case"string":case"symbol":case"number":return r.property(s)}}e.iteratee=o})(vh)),vh}var K1;function PC(){return K1||(K1=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=gC(),r=TO(),a=SC(),u=NC();function o(s,f=r.identity){return a.isArrayLikeObject(s)?t.uniqBy(Array.from(s),u.iteratee(f)):[]}e.uniqBy=o})(uh)),uh}var Rh,I1;function RC(){return I1||(I1=1,Rh=PC().uniqBy),Rh}var kC=RC();const X1=qn(kC);function zC(e,t,r){return t===!0?X1(e,r):typeof t=="function"?X1(e,t):e}var kh={exports:{}},zh={},Bh={exports:{}},Lh={};/**
 * @license React
 * use-sync-external-store-shim.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var V1;function BC(){if(V1)return Lh;V1=1;var e=Zi();function t(p,g){return p===g&&(p!==0||1/p===1/g)||p!==p&&g!==g}var r=typeof Object.is=="function"?Object.is:t,a=e.useState,u=e.useEffect,o=e.useLayoutEffect,s=e.useDebugValue;function f(p,g){var b=g(),S=a({inst:{value:b,getSnapshot:g}}),w=S[0].inst,O=S[1];return o(function(){w.value=b,w.getSnapshot=g,m(w)&&O({inst:w})},[p,b,g]),u(function(){return m(w)&&O({inst:w}),p(function(){m(w)&&O({inst:w})})},[p]),s(b),b}function m(p){var g=p.getSnapshot;p=p.value;try{var b=g();return!r(p,b)}catch{return!0}}function h(p,g){return g()}var v=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?h:f;return Lh.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:v,Lh}var Z1;function LC(){return Z1||(Z1=1,Bh.exports=BC()),Bh.exports}/**
 * @license React
 * use-sync-external-store-shim/with-selector.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Q1;function UC(){if(Q1)return zh;Q1=1;var e=Zi(),t=LC();function r(h,v){return h===v&&(h!==0||1/h===1/v)||h!==h&&v!==v}var a=typeof Object.is=="function"?Object.is:r,u=t.useSyncExternalStore,o=e.useRef,s=e.useEffect,f=e.useMemo,m=e.useDebugValue;return zh.useSyncExternalStoreWithSelector=function(h,v,p,g,b){var S=o(null);if(S.current===null){var w={hasValue:!1,value:null};S.current=w}else w=S.current;S=f(function(){function _(R){if(!M){if(M=!0,j=R,R=g(R),b!==void 0&&w.hasValue){var U=w.value;if(b(U,R))return k=U}return k=R}if(U=k,a(j,R))return U;var K=g(R);return b!==void 0&&b(U,K)?(j=R,U):(j=R,k=K)}var M=!1,j,k,D=p===void 0?null:p;return[function(){return _(v())},D===null?void 0:function(){return _(D())}]},[v,p,g,b]);var O=u(h,S[0],S[1]);return s(function(){w.hasValue=!0,w.value=O},[O]),m(O),O},zh}var W1;function qC(){return W1||(W1=1,kh.exports=UC()),kh.exports}var $C=qC(),km=E.createContext(null),HC=e=>e,St=()=>{var e=E.useContext(km);return e?e.store.dispatch:HC},gc=()=>{},YC=()=>gc,GC=(e,t)=>e===t;function de(e){var t=E.useContext(km);return $C.useSyncExternalStoreWithSelector(t?t.subscription.addNestedSub:YC,t?t.store.getState:gc,t?t.store.getState:gc,t?e:gc,GC)}function KC(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function IC(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function XC(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(r=>typeof r=="function")){const r=e.map(a=>typeof a=="function"?`function ${a.name||"unnamed"}()`:typeof a).join(", ");throw new TypeError(`${t}[${r}]`)}}var F1=e=>Array.isArray(e)?e:[e];function VC(e){const t=Array.isArray(e[0])?e[0]:e;return XC(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function ZC(e,t){const r=[],{length:a}=e;for(let u=0;u<a;u++)r.push(e[u].apply(null,t));return r}var QC=class{constructor(e){this.value=e}deref(){return this.value}},WC=typeof WeakRef<"u"?WeakRef:QC,FC=0,J1=1;function ac(){return{s:FC,v:void 0,o:null,p:null}}function NO(e,t={}){let r=ac();const{resultEqualityCheck:a}=t;let u,o=0;function s(){let f=r;const{length:m}=arguments;for(let p=0,g=m;p<g;p++){const b=arguments[p];if(typeof b=="function"||typeof b=="object"&&b!==null){let S=f.o;S===null&&(f.o=S=new WeakMap);const w=S.get(b);w===void 0?(f=ac(),S.set(b,f)):f=w}else{let S=f.p;S===null&&(f.p=S=new Map);const w=S.get(b);w===void 0?(f=ac(),S.set(b,f)):f=w}}const h=f;let v;if(f.s===J1)v=f.v;else if(v=e.apply(null,arguments),o++,a){const p=u?.deref?.()??u;p!=null&&a(p,v)&&(v=p,o!==0&&o--),u=typeof v=="object"&&v!==null||typeof v=="function"?new WC(v):v}return h.s=J1,h.v=v,v}return s.clearCache=()=>{r=ac(),s.resetResultsCount()},s.resultsCount=()=>o,s.resetResultsCount=()=>{o=0},s}function JC(e,...t){const r=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,a=(...u)=>{let o=0,s=0,f,m={},h=u.pop();typeof h=="object"&&(m=h,h=u.pop()),KC(h,`createSelector expects an output function after the inputs, but received: [${typeof h}]`);const v={...r,...m},{memoize:p,memoizeOptions:g=[],argsMemoize:b=NO,argsMemoizeOptions:S=[]}=v,w=F1(g),O=F1(S),_=VC(u),M=p(function(){return o++,h.apply(null,arguments)},...w),j=b(function(){s++;const D=ZC(_,arguments);return f=M.apply(null,D),f},...O);return Object.assign(j,{resultFunc:h,memoizedResultFunc:M,dependencies:_,dependencyRecomputations:()=>s,resetDependencyRecomputations:()=>{s=0},lastResult:()=>f,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:p,argsMemoize:b})};return Object.assign(a,{withTypes:()=>a}),a}var Y=JC(NO),eD=Object.assign((e,t=Y)=>{IC(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const r=Object.keys(e),a=r.map(o=>e[o]);return t(a,(...o)=>o.reduce((s,f,m)=>(s[r[m]]=f,s),{}))},{withTypes:()=>eD}),Uh={},qh={},$h={},ex;function tD(){return ex||(ex=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(a){return typeof a=="symbol"?1:a===null?2:a===void 0?3:a!==a?4:0}const r=(a,u,o)=>{if(a!==u){const s=t(a),f=t(u);if(s===f&&s===0){if(a<u)return o==="desc"?1:-1;if(a>u)return o==="desc"?-1:1}return o==="desc"?f-s:s-f}return 0};e.compareValues=r})($h)),$h}var Hh={},Yh={},tx;function PO(){return tx||(tx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="symbol"||r instanceof Symbol}e.isSymbol=t})(Yh)),Yh}var nx;function nD(){return nx||(nx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=PO(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;function u(o,s){return Array.isArray(o)?!1:typeof o=="number"||typeof o=="boolean"||o==null||t.isSymbol(o)?!0:typeof o=="string"&&(a.test(o)||!r.test(o))||s!=null&&Object.hasOwn(s,o)}e.isKey=u})(Hh)),Hh}var rx;function rD(){return rx||(rx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=tD(),r=nD(),a=wm();function u(o,s,f,m){if(o==null)return[];f=m?void 0:f,Array.isArray(o)||(o=Object.values(o)),Array.isArray(s)||(s=s==null?[null]:[s]),s.length===0&&(s=[null]),Array.isArray(f)||(f=f==null?[]:[f]),f=f.map(b=>String(b));const h=(b,S)=>{let w=b;for(let O=0;O<S.length&&w!=null;++O)w=w[S[O]];return w},v=(b,S)=>S==null||b==null?S:typeof b=="object"&&"key"in b?Object.hasOwn(S,b.key)?S[b.key]:h(S,b.path):typeof b=="function"?b(S):Array.isArray(b)?h(S,b):typeof S=="object"?S[b]:S,p=s.map(b=>(Array.isArray(b)&&b.length===1&&(b=b[0]),b==null||typeof b=="function"||Array.isArray(b)||r.isKey(b)?b:{key:b,path:a.toPath(b)}));return o.map(b=>({original:b,criteria:p.map(S=>v(S,b))})).slice().sort((b,S)=>{for(let w=0;w<p.length;w++){const O=t.compareValues(b.criteria[w],S.criteria[w],f[w]);if(O!==0)return O}return 0}).map(b=>b.original)}e.orderBy=u})(qh)),qh}var Gh={},ax;function aD(){return ax||(ax=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,a=1){const u=[],o=Math.floor(a),s=(f,m)=>{for(let h=0;h<f.length;h++){const v=f[h];Array.isArray(v)&&m<o?s(v,m+1):u.push(v)}};return s(r,0),u}e.flatten=t})(Gh)),Gh}var Kh={},ix;function RO(){return ix||(ix=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=DO(),r=Cm(),a=_O(),u=Dm();function o(s,f,m){return a.isObject(m)&&(typeof f=="number"&&r.isArrayLike(m)&&t.isIndex(f)&&f<m.length||typeof f=="string"&&f in m)?u.eq(m[f],s):!1}e.isIterateeCall=o})(Kh)),Kh}var lx;function iD(){return lx||(lx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=rD(),r=aD(),a=RO();function u(o,...s){const f=s.length;return f>1&&a.isIterateeCall(o,s[0],s[1])?s=[]:f>2&&a.isIterateeCall(s[0],s[1],s[2])&&(s=[s[0]]),t.orderBy(o,r.flatten(s),["asc"])}e.sortBy=u})(Uh)),Uh}var Ih,ux;function lD(){return ux||(ux=1,Ih=iD().sortBy),Ih}var uD=lD();const ls=qn(uD);var kO=e=>e.legend.settings,oD=e=>e.legend.size,cD=e=>e.legend.payload;Y([cD,kO],(e,t)=>{var{itemSorter:r}=t,a=e.flat(1);return r?ls(a,r):a});var ic=1;function sD(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],[t,r]=E.useState({height:0,left:0,top:0,width:0}),a=E.useCallback(u=>{if(u!=null){var o=u.getBoundingClientRect(),s={height:o.height,left:o.left,top:o.top,width:o.width};(Math.abs(s.height-t.height)>ic||Math.abs(s.left-t.left)>ic||Math.abs(s.top-t.top)>ic||Math.abs(s.width-t.width)>ic)&&r({height:s.height,left:s.left,top:s.top,width:s.width})}},[t.width,t.height,t.top,t.left,...e]);return[t,a]}function _t(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var fD=typeof Symbol=="function"&&Symbol.observable||"@@observable",ox=fD,Xh=()=>Math.random().toString(36).substring(7).split("").join("."),dD={INIT:`@@redux/INIT${Xh()}`,REPLACE:`@@redux/REPLACE${Xh()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Xh()}`},Ac=dD;function zm(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function zO(e,t,r){if(typeof e!="function")throw new Error(_t(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(_t(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(_t(1));return r(zO)(e,t)}let a=e,u=t,o=new Map,s=o,f=0,m=!1;function h(){s===o&&(s=new Map,o.forEach((O,_)=>{s.set(_,O)}))}function v(){if(m)throw new Error(_t(3));return u}function p(O){if(typeof O!="function")throw new Error(_t(4));if(m)throw new Error(_t(5));let _=!0;h();const M=f++;return s.set(M,O),function(){if(_){if(m)throw new Error(_t(6));_=!1,h(),s.delete(M),o=null}}}function g(O){if(!zm(O))throw new Error(_t(7));if(typeof O.type>"u")throw new Error(_t(8));if(typeof O.type!="string")throw new Error(_t(17));if(m)throw new Error(_t(9));try{m=!0,u=a(u,O)}finally{m=!1}return(o=s).forEach(M=>{M()}),O}function b(O){if(typeof O!="function")throw new Error(_t(10));a=O,g({type:Ac.REPLACE})}function S(){const O=p;return{subscribe(_){if(typeof _!="object"||_===null)throw new Error(_t(11));function M(){const k=_;k.next&&k.next(v())}return M(),{unsubscribe:O(M)}},[ox](){return this}}}return g({type:Ac.INIT}),{dispatch:g,subscribe:p,getState:v,replaceReducer:b,[ox]:S}}function hD(e){Object.keys(e).forEach(t=>{const r=e[t];if(typeof r(void 0,{type:Ac.INIT})>"u")throw new Error(_t(12));if(typeof r(void 0,{type:Ac.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(_t(13))})}function BO(e){const t=Object.keys(e),r={};for(let o=0;o<t.length;o++){const s=t[o];typeof e[s]=="function"&&(r[s]=e[s])}const a=Object.keys(r);let u;try{hD(r)}catch(o){u=o}return function(s={},f){if(u)throw u;let m=!1;const h={};for(let v=0;v<a.length;v++){const p=a[v],g=r[p],b=s[p],S=g(b,f);if(typeof S>"u")throw f&&f.type,new Error(_t(14));h[p]=S,m=m||S!==b}return m=m||a.length!==Object.keys(s).length,m?h:s}}function Ec(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...a)=>t(r(...a)))}function vD(...e){return t=>(r,a)=>{const u=t(r,a);let o=()=>{throw new Error(_t(15))};const s={getState:u.getState,dispatch:(m,...h)=>o(m,...h)},f=e.map(m=>m(s));return o=Ec(...f)(u.dispatch),{...u,dispatch:o}}}function LO(e){return zm(e)&&"type"in e&&typeof e.type=="string"}var UO=Symbol.for("immer-nothing"),cx=Symbol.for("immer-draftable"),hn=Symbol.for("immer-state");function Bn(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var qi=Object.getPrototypeOf;function $a(e){return!!e&&!!e[hn]}function gr(e){return e?qO(e)||Array.isArray(e)||!!e[cx]||!!e.constructor?.[cx]||_u(e)||os(e):!1}var mD=Object.prototype.constructor.toString();function qO(e){if(!e||typeof e!="object")return!1;const t=qi(e);if(t===null)return!0;const r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object?!0:typeof r=="function"&&Function.toString.call(r)===mD}function Tc(e,t){us(e)===0?Reflect.ownKeys(e).forEach(r=>{t(r,e[r],e)}):e.forEach((r,a)=>t(a,r,e))}function us(e){const t=e[hn];return t?t.type_:Array.isArray(e)?1:_u(e)?2:os(e)?3:0}function qv(e,t){return us(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function $O(e,t,r){const a=us(e);a===2?e.set(t,r):a===3?e.add(r):e[t]=r}function yD(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function _u(e){return e instanceof Map}function os(e){return e instanceof Set}function ja(e){return e.copy_||e.base_}function $v(e,t){if(_u(e))return new Map(e);if(os(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const r=qO(e);if(t===!0||t==="class_only"&&!r){const a=Object.getOwnPropertyDescriptors(e);delete a[hn];let u=Reflect.ownKeys(a);for(let o=0;o<u.length;o++){const s=u[o],f=a[s];f.writable===!1&&(f.writable=!0,f.configurable=!0),(f.get||f.set)&&(a[s]={configurable:!0,writable:!0,enumerable:f.enumerable,value:e[s]})}return Object.create(qi(e),a)}else{const a=qi(e);if(a!==null&&r)return{...e};const u=Object.create(a);return Object.assign(u,e)}}function Bm(e,t=!1){return cs(e)||$a(e)||!gr(e)||(us(e)>1&&Object.defineProperties(e,{set:{value:lc},add:{value:lc},clear:{value:lc},delete:{value:lc}}),Object.freeze(e),t&&Object.values(e).forEach(r=>Bm(r,!0))),e}function lc(){Bn(2)}function cs(e){return Object.isFrozen(e)}var pD={};function Ha(e){const t=pD[e];return t||Bn(0,e),t}var yu;function HO(){return yu}function gD(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function sx(e,t){t&&(Ha("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Hv(e){Yv(e),e.drafts_.forEach(bD),e.drafts_=null}function Yv(e){e===yu&&(yu=e.parent_)}function fx(e){return yu=gD(yu,e)}function bD(e){const t=e[hn];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function dx(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return e!==void 0&&e!==r?(r[hn].modified_&&(Hv(t),Bn(4)),gr(e)&&(e=_c(t,e),t.parent_||jc(t,e)),t.patches_&&Ha("Patches").generateReplacementPatches_(r[hn].base_,e,t.patches_,t.inversePatches_)):e=_c(t,r,[]),Hv(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==UO?e:void 0}function _c(e,t,r){if(cs(t))return t;const a=t[hn];if(!a)return Tc(t,(u,o)=>hx(e,a,t,u,o,r)),t;if(a.scope_!==e)return t;if(!a.modified_)return jc(e,a.base_,!0),a.base_;if(!a.finalized_){a.finalized_=!0,a.scope_.unfinalizedDrafts_--;const u=a.copy_;let o=u,s=!1;a.type_===3&&(o=new Set(u),u.clear(),s=!0),Tc(o,(f,m)=>hx(e,a,u,f,m,r,s)),jc(e,u,!1),r&&e.patches_&&Ha("Patches").generatePatches_(a,r,e.patches_,e.inversePatches_)}return a.copy_}function hx(e,t,r,a,u,o,s){if($a(u)){const f=o&&t&&t.type_!==3&&!qv(t.assigned_,a)?o.concat(a):void 0,m=_c(e,u,f);if($O(r,a,m),$a(m))e.canAutoFreeze_=!1;else return}else s&&r.add(u);if(gr(u)&&!cs(u)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;_c(e,u),(!t||!t.scope_.parent_)&&typeof a!="symbol"&&(_u(r)?r.has(a):Object.prototype.propertyIsEnumerable.call(r,a))&&jc(e,u)}}function jc(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Bm(t,r)}function xD(e,t){const r=Array.isArray(e),a={type_:r?1:0,scope_:t?t.scope_:HO(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let u=a,o=Lm;r&&(u=[a],o=pu);const{revoke:s,proxy:f}=Proxy.revocable(u,o);return a.draft_=f,a.revoke_=s,f}var Lm={get(e,t){if(t===hn)return e;const r=ja(e);if(!qv(r,t))return SD(e,r,t);const a=r[t];return e.finalized_||!gr(a)?a:a===Vh(e.base_,t)?(Zh(e),e.copy_[t]=Kv(a,e)):a},has(e,t){return t in ja(e)},ownKeys(e){return Reflect.ownKeys(ja(e))},set(e,t,r){const a=YO(ja(e),t);if(a?.set)return a.set.call(e.draft_,r),!0;if(!e.modified_){const u=Vh(ja(e),t),o=u?.[hn];if(o&&o.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(yD(r,u)&&(r!==void 0||qv(e.base_,t)))return!0;Zh(e),Gv(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_[t]=!0),!0},deleteProperty(e,t){return Vh(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Zh(e),Gv(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=ja(e),a=Reflect.getOwnPropertyDescriptor(r,t);return a&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:a.enumerable,value:r[t]}},defineProperty(){Bn(11)},getPrototypeOf(e){return qi(e.base_)},setPrototypeOf(){Bn(12)}},pu={};Tc(Lm,(e,t)=>{pu[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});pu.deleteProperty=function(e,t){return pu.set.call(this,e,t,void 0)};pu.set=function(e,t,r){return Lm.set.call(this,e[0],t,r,e[0])};function Vh(e,t){const r=e[hn];return(r?ja(r):e)[t]}function SD(e,t,r){const a=YO(t,r);return a?"value"in a?a.value:a.get?.call(e.draft_):void 0}function YO(e,t){if(!(t in e))return;let r=qi(e);for(;r;){const a=Object.getOwnPropertyDescriptor(r,t);if(a)return a;r=qi(r)}}function Gv(e){e.modified_||(e.modified_=!0,e.parent_&&Gv(e.parent_))}function Zh(e){e.copy_||(e.copy_=$v(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var wD=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,r,a)=>{if(typeof t=="function"&&typeof r!="function"){const o=r;r=t;const s=this;return function(m=o,...h){return s.produce(m,v=>r.call(this,v,...h))}}typeof r!="function"&&Bn(6),a!==void 0&&typeof a!="function"&&Bn(7);let u;if(gr(t)){const o=fx(this),s=Kv(t,void 0);let f=!0;try{u=r(s),f=!1}finally{f?Hv(o):Yv(o)}return sx(o,a),dx(u,o)}else if(!t||typeof t!="object"){if(u=r(t),u===void 0&&(u=t),u===UO&&(u=void 0),this.autoFreeze_&&Bm(u,!0),a){const o=[],s=[];Ha("Patches").generateReplacementPatches_(t,u,o,s),a(o,s)}return u}else Bn(1,t)},this.produceWithPatches=(t,r)=>{if(typeof t=="function")return(s,...f)=>this.produceWithPatches(s,m=>t(m,...f));let a,u;return[this.produce(t,r,(s,f)=>{a=s,u=f}),a,u]},typeof e?.autoFreeze=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof e?.useStrictShallowCopy=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){gr(e)||Bn(8),$a(e)&&(e=yr(e));const t=fx(this),r=Kv(e,void 0);return r[hn].isManual_=!0,Yv(t),r}finishDraft(e,t){const r=e&&e[hn];(!r||!r.isManual_)&&Bn(9);const{scope_:a}=r;return sx(a,t),dx(void 0,a)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const u=t[r];if(u.path.length===0&&u.op==="replace"){e=u.value;break}}r>-1&&(t=t.slice(r+1));const a=Ha("Patches").applyPatches_;return $a(e)?a(e,t):this.produce(e,u=>a(u,t))}};function Kv(e,t){const r=_u(e)?Ha("MapSet").proxyMap_(e,t):os(e)?Ha("MapSet").proxySet_(e,t):xD(e,t);return(t?t.scope_:HO()).drafts_.push(r),r}function yr(e){return $a(e)||Bn(10,e),GO(e)}function GO(e){if(!gr(e)||cs(e))return e;const t=e[hn];let r;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=$v(e,t.scope_.immer_.useStrictShallowCopy_)}else r=$v(e,!0);return Tc(r,(a,u)=>{$O(r,a,GO(u))}),t&&(t.finalized_=!1),r}var OD=new wD,KO=OD.produce;function IO(e){return({dispatch:r,getState:a})=>u=>o=>typeof o=="function"?o(r,a,e):u(o)}var AD=IO(),ED=IO,TD=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Ec:Ec.apply(null,arguments)};function Cn(e,t){function r(...a){if(t){let u=t(...a);if(!u)throw new Error(fn(0));return{type:e,payload:u.payload,..."meta"in u&&{meta:u.meta},..."error"in u&&{error:u.error}}}return{type:e,payload:a[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=a=>LO(a)&&a.type===e,r}var XO=class fu extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,fu.prototype)}static get[Symbol.species](){return fu}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new fu(...t[0].concat(this)):new fu(...t.concat(this))}};function vx(e){return gr(e)?KO(e,()=>{}):e}function uc(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function _D(e){return typeof e=="boolean"}var jD=()=>function(t){const{thunk:r=!0,immutableCheck:a=!0,serializableCheck:u=!0,actionCreatorCheck:o=!0}=t??{};let s=new XO;return r&&(_D(r)?s.push(AD):s.push(ED(r.extraArgument))),s},MD="RTK_autoBatch",mx=e=>t=>{setTimeout(t,e)},CD=(e={type:"raf"})=>t=>(...r)=>{const a=t(...r);let u=!0,o=!1,s=!1;const f=new Set,m=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:mx(10):e.type==="callback"?e.queueNotification:mx(e.timeout),h=()=>{s=!1,o&&(o=!1,f.forEach(v=>v()))};return Object.assign({},a,{subscribe(v){const p=()=>u&&v(),g=a.subscribe(p);return f.add(v),()=>{g(),f.delete(v)}},dispatch(v){try{return u=!v?.meta?.[MD],o=!u,o&&(s||(s=!0,m(h))),a.dispatch(v)}finally{u=!0}}})},DD=e=>function(r){const{autoBatch:a=!0}=r??{};let u=new XO(e);return a&&u.push(CD(typeof a=="object"?a:void 0)),u};function ND(e){const t=jD(),{reducer:r=void 0,middleware:a,devTools:u=!0,preloadedState:o=void 0,enhancers:s=void 0}=e||{};let f;if(typeof r=="function")f=r;else if(zm(r))f=BO(r);else throw new Error(fn(1));let m;typeof a=="function"?m=a(t):m=t();let h=Ec;u&&(h=TD({trace:!1,...typeof u=="object"&&u}));const v=vD(...m),p=DD(v);let g=typeof s=="function"?s(p):p();const b=h(...g);return zO(f,o,b)}function VO(e){const t={},r=[];let a;const u={addCase(o,s){const f=typeof o=="string"?o:o.type;if(!f)throw new Error(fn(28));if(f in t)throw new Error(fn(29));return t[f]=s,u},addMatcher(o,s){return r.push({matcher:o,reducer:s}),u},addDefaultCase(o){return a=o,u}};return e(u),[t,r,a]}function PD(e){return typeof e=="function"}function RD(e,t){let[r,a,u]=VO(t),o;if(PD(e))o=()=>vx(e());else{const f=vx(e);o=()=>f}function s(f=o(),m){let h=[r[m.type],...a.filter(({matcher:v})=>v(m)).map(({reducer:v})=>v)];return h.filter(v=>!!v).length===0&&(h=[u]),h.reduce((v,p)=>{if(p)if($a(v)){const b=p(v,m);return b===void 0?v:b}else{if(gr(v))return KO(v,g=>p(g,m));{const g=p(v,m);if(g===void 0){if(v===null)return v;throw Error("A case reducer on a non-draftable value must not return undefined")}return g}}return v},f)}return s.getInitialState=o,s}var kD="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",zD=(e=21)=>{let t="",r=e;for(;r--;)t+=kD[Math.random()*64|0];return t},BD=Symbol.for("rtk-slice-createasyncthunk");function LD(e,t){return`${e}/${t}`}function UD({creators:e}={}){const t=e?.asyncThunk?.[BD];return function(a){const{name:u,reducerPath:o=u}=a;if(!u)throw new Error(fn(11));const s=(typeof a.reducers=="function"?a.reducers($D()):a.reducers)||{},f=Object.keys(s),m={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},h={addCase(j,k){const D=typeof j=="string"?j:j.type;if(!D)throw new Error(fn(12));if(D in m.sliceCaseReducersByType)throw new Error(fn(13));return m.sliceCaseReducersByType[D]=k,h},addMatcher(j,k){return m.sliceMatchers.push({matcher:j,reducer:k}),h},exposeAction(j,k){return m.actionCreators[j]=k,h},exposeCaseReducer(j,k){return m.sliceCaseReducersByName[j]=k,h}};f.forEach(j=>{const k=s[j],D={reducerName:j,type:LD(u,j),createNotation:typeof a.reducers=="function"};YD(k)?KD(D,k,h,t):HD(D,k,h)});function v(){const[j={},k=[],D=void 0]=typeof a.extraReducers=="function"?VO(a.extraReducers):[a.extraReducers],R={...j,...m.sliceCaseReducersByType};return RD(a.initialState,U=>{for(let K in R)U.addCase(K,R[K]);for(let K of m.sliceMatchers)U.addMatcher(K.matcher,K.reducer);for(let K of k)U.addMatcher(K.matcher,K.reducer);D&&U.addDefaultCase(D)})}const p=j=>j,g=new Map,b=new WeakMap;let S;function w(j,k){return S||(S=v()),S(j,k)}function O(){return S||(S=v()),S.getInitialState()}function _(j,k=!1){function D(U){let K=U[j];return typeof K>"u"&&k&&(K=uc(b,D,O)),K}function R(U=p){const K=uc(g,k,()=>new WeakMap);return uc(K,U,()=>{const J={};for(const[re,te]of Object.entries(a.selectors??{}))J[re]=qD(te,U,()=>uc(b,U,O),k);return J})}return{reducerPath:j,getSelectors:R,get selectors(){return R(D)},selectSlice:D}}const M={name:u,reducer:w,actions:m.actionCreators,caseReducers:m.sliceCaseReducersByName,getInitialState:O,..._(o),injectInto(j,{reducerPath:k,...D}={}){const R=k??o;return j.inject({reducerPath:R,reducer:w},D),{...M,..._(R,!0)}}};return M}}function qD(e,t,r,a){function u(o,...s){let f=t(o);return typeof f>"u"&&a&&(f=r()),e(f,...s)}return u.unwrapped=e,u}var mn=UD();function $D(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function HD({type:e,reducerName:t,createNotation:r},a,u){let o,s;if("reducer"in a){if(r&&!GD(a))throw new Error(fn(17));o=a.reducer,s=a.prepare}else o=a;u.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,s?Cn(e,s):Cn(e))}function YD(e){return e._reducerDefinitionType==="asyncThunk"}function GD(e){return e._reducerDefinitionType==="reducerWithPrepare"}function KD({type:e,reducerName:t},r,a,u){if(!u)throw new Error(fn(18));const{payloadCreator:o,fulfilled:s,pending:f,rejected:m,settled:h,options:v}=r,p=u(e,o,v);a.exposeAction(t,p),s&&a.addCase(p.fulfilled,s),f&&a.addCase(p.pending,f),m&&a.addCase(p.rejected,m),h&&a.addMatcher(p.settled,h),a.exposeCaseReducer(t,{fulfilled:s||oc,pending:f||oc,rejected:m||oc,settled:h||oc})}function oc(){}var ID="task",ZO="listener",QO="completed",Um="cancelled",XD=`task-${Um}`,VD=`task-${QO}`,Iv=`${ZO}-${Um}`,ZD=`${ZO}-${QO}`,ss=class{constructor(e){this.code=e,this.message=`${ID} ${Um} (reason: ${e})`}name="TaskAbortError";message},qm=(e,t)=>{if(typeof e!="function")throw new TypeError(fn(32))},Mc=()=>{},WO=(e,t=Mc)=>(e.catch(t),e),FO=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),ka=(e,t)=>{const r=e.signal;r.aborted||("reason"in r||Object.defineProperty(r,"reason",{enumerable:!0,value:t,configurable:!0,writable:!0}),e.abort(t))},za=e=>{if(e.aborted){const{reason:t}=e;throw new ss(t)}};function JO(e,t){let r=Mc;return new Promise((a,u)=>{const o=()=>u(new ss(e.reason));if(e.aborted){o();return}r=FO(e,o),t.finally(()=>r()).then(a,u)}).finally(()=>{r=Mc})}var QD=async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(r){return{status:r instanceof ss?"cancelled":"rejected",error:r}}finally{t?.()}},Cc=e=>t=>WO(JO(e,t).then(r=>(za(e),r))),eA=e=>{const t=Cc(e);return r=>t(new Promise(a=>setTimeout(a,r)))},{assign:Bi}=Object,yx={},fs="listenerMiddleware",WD=(e,t)=>{const r=a=>FO(e,()=>ka(a,e.reason));return(a,u)=>{qm(a);const o=new AbortController;r(o);const s=QD(async()=>{za(e),za(o.signal);const f=await a({pause:Cc(o.signal),delay:eA(o.signal),signal:o.signal});return za(o.signal),f},()=>ka(o,VD));return u?.autoJoin&&t.push(s.catch(Mc)),{result:Cc(e)(s),cancel(){ka(o,XD)}}}},FD=(e,t)=>{const r=async(a,u)=>{za(t);let o=()=>{};const f=[new Promise((m,h)=>{let v=e({predicate:a,effect:(p,g)=>{g.unsubscribe(),m([p,g.getState(),g.getOriginalState()])}});o=()=>{v(),h()}})];u!=null&&f.push(new Promise(m=>setTimeout(m,u,null)));try{const m=await JO(t,Promise.race(f));return za(t),m}finally{o()}};return(a,u)=>WO(r(a,u))},tA=e=>{let{type:t,actionCreator:r,matcher:a,predicate:u,effect:o}=e;if(t)u=Cn(t).match;else if(r)t=r.type,u=r.match;else if(a)u=a;else if(!u)throw new Error(fn(21));return qm(o),{predicate:u,type:t,effect:o}},nA=Bi(e=>{const{type:t,predicate:r,effect:a}=tA(e);return{id:zD(),effect:a,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw new Error(fn(22))}}},{withTypes:()=>nA}),px=(e,t)=>{const{type:r,effect:a,predicate:u}=tA(t);return Array.from(e.values()).find(o=>(typeof r=="string"?o.type===r:o.predicate===u)&&o.effect===a)},Xv=e=>{e.pending.forEach(t=>{ka(t,Iv)})},JD=e=>()=>{e.forEach(Xv),e.clear()},gx=(e,t,r)=>{try{e(t,r)}catch(a){setTimeout(()=>{throw a},0)}},rA=Bi(Cn(`${fs}/add`),{withTypes:()=>rA}),eN=Cn(`${fs}/removeAll`),aA=Bi(Cn(`${fs}/remove`),{withTypes:()=>aA}),tN=(...e)=>{console.error(`${fs}/error`,...e)},ju=(e={})=>{const t=new Map,{extra:r,onError:a=tN}=e;qm(a);const u=v=>(v.unsubscribe=()=>t.delete(v.id),t.set(v.id,v),p=>{v.unsubscribe(),p?.cancelActive&&Xv(v)}),o=v=>{const p=px(t,v)??nA(v);return u(p)};Bi(o,{withTypes:()=>o});const s=v=>{const p=px(t,v);return p&&(p.unsubscribe(),v.cancelActive&&Xv(p)),!!p};Bi(s,{withTypes:()=>s});const f=async(v,p,g,b)=>{const S=new AbortController,w=FD(o,S.signal),O=[];try{v.pending.add(S),await Promise.resolve(v.effect(p,Bi({},g,{getOriginalState:b,condition:(_,M)=>w(_,M).then(Boolean),take:w,delay:eA(S.signal),pause:Cc(S.signal),extra:r,signal:S.signal,fork:WD(S.signal,O),unsubscribe:v.unsubscribe,subscribe:()=>{t.set(v.id,v)},cancelActiveListeners:()=>{v.pending.forEach((_,M,j)=>{_!==S&&(ka(_,Iv),j.delete(_))})},cancel:()=>{ka(S,Iv),v.pending.delete(S)},throwIfCancelled:()=>{za(S.signal)}})))}catch(_){_ instanceof ss||gx(a,_,{raisedBy:"effect"})}finally{await Promise.all(O),ka(S,ZD),v.pending.delete(S)}},m=JD(t);return{middleware:v=>p=>g=>{if(!LO(g))return p(g);if(rA.match(g))return o(g.payload);if(eN.match(g)){m();return}if(aA.match(g))return s(g.payload);let b=v.getState();const S=()=>{if(b===yx)throw new Error(fn(23));return b};let w;try{if(w=p(g),t.size>0){const O=v.getState(),_=Array.from(t.values());for(const M of _){let j=!1;try{j=M.predicate(g,O,b)}catch(k){j=!1,gx(a,k,{raisedBy:"predicate"})}j&&f(M,g,v,S)}}}finally{b=yx}return w},startListening:o,stopListening:s,clearListeners:m}};function fn(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var nN={layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},iA=mn({name:"chartLayout",initialState:nN,reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){e.margin.top=t.payload.top,e.margin.right=t.payload.right,e.margin.bottom=t.payload.bottom,e.margin.left=t.payload.left},setScale(e,t){e.scale=t.payload}}}),{setMargin:rN,setLayout:aN,setChartSize:iN,setScale:lN}=iA.actions,uN=iA.reducer;function bx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),r.push.apply(r,a)}return r}function xx(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bx(Object(r),!0).forEach(function(a){oN(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bx(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function oN(e,t,r){return(t=cN(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cN(e){var t=sN(e,"string");return typeof t=="symbol"?t:t+""}function sN(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Dc=Math.PI/180,fN=e=>e*180/Math.PI,Mt=(e,t,r,a)=>({x:e+Math.cos(-Dc*a)*r,y:t+Math.sin(-Dc*a)*r}),dN=function(t,r){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(a.left||0)-(a.right||0)),Math.abs(r-(a.top||0)-(a.bottom||0)))/2},hN=(e,t)=>{var{x:r,y:a}=e,{x:u,y:o}=t;return Math.sqrt((r-u)**2+(a-o)**2)},vN=(e,t)=>{var{x:r,y:a}=e,{cx:u,cy:o}=t,s=hN({x:r,y:a},{x:u,y:o});if(s<=0)return{radius:s,angle:0};var f=(r-u)/s,m=Math.acos(f);return a>o&&(m=2*Math.PI-m),{radius:s,angle:fN(m),angleInRadian:m}},mN=e=>{var{startAngle:t,endAngle:r}=e,a=Math.floor(t/360),u=Math.floor(r/360),o=Math.min(a,u);return{startAngle:t-o*360,endAngle:r-o*360}},yN=(e,t)=>{var{startAngle:r,endAngle:a}=t,u=Math.floor(r/360),o=Math.floor(a/360),s=Math.min(u,o);return e+s*360},pN=(e,t)=>{var{x:r,y:a}=e,{radius:u,angle:o}=vN({x:r,y:a},t),{innerRadius:s,outerRadius:f}=t;if(u<s||u>f||u===0)return null;var{startAngle:m,endAngle:h}=mN(t),v=o,p;if(m<=h){for(;v>h;)v-=360;for(;v<m;)v+=360;p=v>=m&&v<=h}else{for(;v>m;)v-=360;for(;v<h;)v+=360;p=v>=h&&v<=m}return p?xx(xx({},t),{},{radius:u,angle:yN(v,t)}):null};function lA(e,t,r){return Array.isArray(e)&&e&&t+r!==0?e.slice(t,r+1):e}function Sx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),r.push.apply(r,a)}return r}function jn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Sx(Object(r),!0).forEach(function(a){gN(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sx(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function gN(e,t,r){return(t=bN(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bN(e){var t=xN(e,"string");return typeof t=="symbol"?t:t+""}function xN(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qt(e,t,r){return ct(e)||ct(t)?r:Zn(t)?qa(e,t,r):typeof t=="function"?t(e):r}var SN=(e,t,r,a,u)=>{var o,s=-1,f=(o=t?.length)!==null&&o!==void 0?o:0;if(f<=1||e==null)return 0;if(a==="angleAxis"&&u!=null&&Math.abs(Math.abs(u[1]-u[0])-360)<=1e-6)for(var m=0;m<f;m++){var h=m>0?r[m-1].coordinate:r[f-1].coordinate,v=r[m].coordinate,p=m>=f-1?r[0].coordinate:r[m+1].coordinate,g=void 0;if(Xt(v-h)!==Xt(p-v)){var b=[];if(Xt(p-v)===Xt(u[1]-u[0])){g=p;var S=v+u[1]-u[0];b[0]=Math.min(S,(S+h)/2),b[1]=Math.max(S,(S+h)/2)}else{g=h;var w=p+u[1]-u[0];b[0]=Math.min(v,(w+v)/2),b[1]=Math.max(v,(w+v)/2)}var O=[Math.min(v,(g+v)/2),Math.max(v,(g+v)/2)];if(e>O[0]&&e<=O[1]||e>=b[0]&&e<=b[1]){({index:s}=r[m]);break}}else{var _=Math.min(h,p),M=Math.max(h,p);if(e>(_+v)/2&&e<=(M+v)/2){({index:s}=r[m]);break}}}else if(t){for(var j=0;j<f;j++)if(j===0&&e<=(t[j].coordinate+t[j+1].coordinate)/2||j>0&&j<f-1&&e>(t[j].coordinate+t[j-1].coordinate)/2&&e<=(t[j].coordinate+t[j+1].coordinate)/2||j===f-1&&e>(t[j].coordinate+t[j-1].coordinate)/2){({index:s}=t[j]);break}}return s},wN=(e,t,r)=>{if(t&&r){var{width:a,height:u}=r,{align:o,verticalAlign:s,layout:f}=t;if((f==="vertical"||f==="horizontal"&&s==="middle")&&o!=="center"&&ce(e[o]))return jn(jn({},e),{},{[o]:e[o]+(a||0)});if((f==="horizontal"||f==="vertical"&&o==="center")&&s!=="middle"&&ce(e[s]))return jn(jn({},e),{},{[s]:e[s]+(u||0)})}return e},Ga=(e,t)=>e==="horizontal"&&t==="xAxis"||e==="vertical"&&t==="yAxis"||e==="centric"&&t==="angleAxis"||e==="radial"&&t==="radiusAxis",uA=(e,t,r,a)=>{if(a)return e.map(f=>f.coordinate);var u,o,s=e.map(f=>(f.coordinate===t&&(u=!0),f.coordinate===r&&(o=!0),f.coordinate));return u||s.push(t),o||s.push(r),s},oA=(e,t,r)=>{if(!e)return null;var{duplicateDomain:a,type:u,range:o,scale:s,realScaleType:f,isCategorical:m,categoricalDomain:h,tickCount:v,ticks:p,niceTicks:g,axisType:b}=e;if(!s)return null;var S=f==="scaleBand"&&s.bandwidth?s.bandwidth()/2:2,w=u==="category"&&s.bandwidth?s.bandwidth()/S:0;if(w=b==="angleAxis"&&o&&o.length>=2?Xt(o[0]-o[1])*2*w:w,p||g){var O=(p||g||[]).map((_,M)=>{var j=a?a.indexOf(_):_;return{coordinate:s(j)+w,value:_,offset:w,index:M}});return O.filter(_=>!dn(_.coordinate))}return m&&h?h.map((_,M)=>({coordinate:s(_)+w,value:_,index:M,offset:w})):s.ticks&&v!=null?s.ticks(v).map((_,M)=>({coordinate:s(_)+w,value:_,offset:w,index:M})):s.domain().map((_,M)=>({coordinate:s(_)+w,value:a?a[_]:_,index:M,offset:w}))},wx=1e-4,ON=e=>{var t=e.domain();if(!(!t||t.length<=2)){var r=t.length,a=e.range(),u=Math.min(a[0],a[1])-wx,o=Math.max(a[0],a[1])+wx,s=e(t[0]),f=e(t[r-1]);(s<u||s>o||f<u||f>o)&&e.domain([t[0],t[r-1]])}},AN=(e,t)=>{if(!t||t.length!==2||!ce(t[0])||!ce(t[1]))return e;var r=Math.min(t[0],t[1]),a=Math.max(t[0],t[1]),u=[e[0],e[1]];return(!ce(e[0])||e[0]<r)&&(u[0]=r),(!ce(e[1])||e[1]>a)&&(u[1]=a),u[0]>a&&(u[0]=a),u[1]<r&&(u[1]=r),u},EN=e=>{var t=e.length;if(!(t<=0))for(var r=0,a=e[0].length;r<a;++r)for(var u=0,o=0,s=0;s<t;++s){var f=dn(e[s][r][1])?e[s][r][0]:e[s][r][1];f>=0?(e[s][r][0]=u,e[s][r][1]=u+f,u=e[s][r][1]):(e[s][r][0]=o,e[s][r][1]=o+f,o=e[s][r][1])}},TN=e=>{var t=e.length;if(!(t<=0))for(var r=0,a=e[0].length;r<a;++r)for(var u=0,o=0;o<t;++o){var s=dn(e[o][r][1])?e[o][r][0]:e[o][r][1];s>=0?(e[o][r][0]=u,e[o][r][1]=u+s,u=e[o][r][1]):(e[o][r][0]=0,e[o][r][1]=0)}},_N={sign:EN,expand:iC,none:Ui,silhouette:lC,wiggle:uC,positive:TN},jN=(e,t,r)=>{var a=_N[r],u=aC().keys(t).value((o,s)=>+qt(o,s,0)).order(Lv).offset(a);return u(e)};function MN(e){return e==null?void 0:String(e)}var Ox=e=>{var{axis:t,ticks:r,offset:a,bandSize:u,entry:o,index:s}=e;if(t.type==="category")return r[s]?r[s].coordinate+a:null;var f=qt(o,t.dataKey,t.scale.domain()[s]);return ct(f)?null:t.scale(f)-u/2+a},CN=e=>{var{numericAxis:t}=e,r=t.scale.domain();if(t.type==="number"){var a=Math.min(r[0],r[1]),u=Math.max(r[0],r[1]);return a<=0&&u>=0?0:u<0?u:a}return r[0]},DN=e=>{var t=e.flat(2).filter(ce);return[Math.min(...t),Math.max(...t)]},NN=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],PN=(e,t,r)=>{if(e!=null)return NN(Object.keys(e).reduce((a,u)=>{var o=e[u],{stackedData:s}=o,f=s.reduce((m,h)=>{var v=lA(h,t,r),p=DN(v);return[Math.min(m[0],p[0]),Math.max(m[1],p[1])]},[1/0,-1/0]);return[Math.min(f[0],a[0]),Math.max(f[1],a[1])]},[1/0,-1/0]))},Ax=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Ex=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,$m=(e,t,r)=>{if(e&&e.scale&&e.scale.bandwidth){var a=e.scale.bandwidth();if(!r||a>0)return a}if(e&&t&&t.length>=2){for(var u=ls(t,v=>v.coordinate),o=1/0,s=1,f=u.length;s<f;s++){var m=u[s],h=u[s-1];o=Math.min((m.coordinate||0)-(h.coordinate||0),o)}return o===1/0?0:o}return r?void 0:0};function Tx(e){var{tooltipEntrySettings:t,dataKey:r,payload:a,value:u,name:o}=e;return jn(jn({},t),{},{dataKey:r,payload:a,value:u,name:o})}function cA(e,t){if(e)return String(e);if(typeof t=="string")return t}function RN(e,t,r,a,u){if(r==="horizontal"||r==="vertical"){var o=e>=u.left&&e<=u.left+u.width&&t>=u.top&&t<=u.top+u.height;return o?{x:e,y:t}:null}return a?pN({x:e,y:t},a):null}var kN=(e,t,r,a)=>{var u=t.find(h=>h&&h.index===r);if(u){if(e==="horizontal")return{x:u.coordinate,y:a.y};if(e==="vertical")return{x:a.x,y:u.coordinate};if(e==="centric"){var o=u.coordinate,{radius:s}=a;return jn(jn(jn({},a),Mt(a.cx,a.cy,s,o)),{},{angle:o,radius:s})}var f=u.coordinate,{angle:m}=a;return jn(jn(jn({},a),Mt(a.cx,a.cy,f,m)),{},{angle:m,radius:f})}return{x:0,y:0}},zN=(e,t)=>t==="horizontal"?e.x:t==="vertical"?e.y:t==="centric"?e.angle:e.radius,wr=e=>e.layout.width,Or=e=>e.layout.height,BN=e=>e.layout.scale,sA=e=>e.layout.margin,Hm=Y(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),Ym=Y(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),LN="data-recharts-item-index",UN="data-recharts-item-data-key",ds=60;function _x(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),r.push.apply(r,a)}return r}function Wr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_x(Object(r),!0).forEach(function(a){qN(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_x(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function qN(e,t,r){return(t=$N(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $N(e){var t=HN(e,"string");return typeof t=="symbol"?t:t+""}function HN(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var YN=e=>e.brush.height,wt=Y([wr,Or,sA,YN,Hm,Ym,kO,oD],(e,t,r,a,u,o,s,f)=>{var m=o.reduce((S,w)=>{var{orientation:O}=w;if(!w.mirror&&!w.hide){var _=typeof w.width=="number"?w.width:ds;return Wr(Wr({},S),{},{[O]:S[O]+_})}return S},{left:r.left||0,right:r.right||0}),h=u.reduce((S,w)=>{var{orientation:O}=w;return!w.mirror&&!w.hide?Wr(Wr({},S),{},{[O]:qa(S,"".concat(O))+w.height}):S},{top:r.top||0,bottom:r.bottom||0}),v=Wr(Wr({},h),m),p=v.bottom;v.bottom+=a,v=wN(v,s,f);var g=e-v.left-v.right,b=t-v.top-v.bottom;return Wr(Wr({brushBottom:p},v),{},{width:Math.max(g,0),height:Math.max(b,0)})}),GN=Y(wt,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),fA=Y(wr,Or,(e,t)=>({x:0,y:0,width:e,height:t})),KN=E.createContext(null),Nn=()=>E.useContext(KN)!=null,hs=e=>e.brush,vs=Y([hs,wt,sA],(e,t,r)=>({height:e.height,x:ce(e.x)?e.x:t.left,y:ce(e.y)?e.y:t.top+t.height+t.brushBottom-(r?.bottom||0),width:ce(e.width)?e.width:t.width})),Gm=()=>{var e,t=Nn(),r=de(GN),a=de(vs),u=(e=de(hs))===null||e===void 0?void 0:e.padding;return!t||!a||!u?r:{width:a.width-u.left-u.right,height:a.height-u.top-u.bottom,x:u.left,y:u.top}},IN={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},dA=()=>{var e;return(e=de(wt))!==null&&e!==void 0?e:IN},hA=()=>de(wr),vA=()=>de(Or),ze=e=>e.layout.layoutType,Km=()=>de(ze),XN={settings:{layout:"horizontal",align:"center",verticalAlign:"middle",itemSorter:"value"},size:{width:0,height:0},payload:[]},mA=mn({name:"legend",initialState:XN,reducers:{setLegendSize(e,t){e.size.width=t.payload.width,e.size.height=t.payload.height},setLegendSettings(e,t){e.settings.align=t.payload.align,e.settings.layout=t.payload.layout,e.settings.verticalAlign=t.payload.verticalAlign,e.settings.itemSorter=t.payload.itemSorter},addLegendPayload(e,t){e.payload.push(t.payload)},removeLegendPayload(e,t){var r=yr(e).payload.indexOf(t.payload);r>-1&&e.payload.splice(r,1)}}}),{setLegendSize:uq,setLegendSettings:oq,addLegendPayload:VN,removeLegendPayload:ZN}=mA.actions,QN=mA.reducer;function Vv(){return Vv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)({}).hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Vv.apply(null,arguments)}function jx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),r.push.apply(r,a)}return r}function Qh(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jx(Object(r),!0).forEach(function(a){WN(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jx(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function WN(e,t,r){return(t=FN(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function FN(e){var t=JN(e,"string");return typeof t=="symbol"?t:t+""}function JN(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function eP(e){return Array.isArray(e)&&Zn(e[0])&&Zn(e[1])?e.join(" ~ "):e}var tP=e=>{var{separator:t=" : ",contentStyle:r={},itemStyle:a={},labelStyle:u={},payload:o,formatter:s,itemSorter:f,wrapperClassName:m,labelClassName:h,label:v,labelFormatter:p,accessibilityLayer:g=!1}=e,b=()=>{if(o&&o.length){var D={padding:0,margin:0},R=(f?ls(o,f):o).map((U,K)=>{if(U.type==="none")return null;var J=U.formatter||s||eP,{value:re,name:te}=U,ae=re,ge=te;if(J){var be=J(re,te,U,K,o);if(Array.isArray(be))[ae,ge]=be;else if(be!=null)ae=be;else return null}var ye=Qh({display:"block",paddingTop:4,paddingBottom:4,color:U.color||"#000"},a);return E.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(K),style:ye},Zn(ge)?E.createElement("span",{className:"recharts-tooltip-item-name"},ge):null,Zn(ge)?E.createElement("span",{className:"recharts-tooltip-item-separator"},t):null,E.createElement("span",{className:"recharts-tooltip-item-value"},ae),E.createElement("span",{className:"recharts-tooltip-item-unit"},U.unit||""))});return E.createElement("ul",{className:"recharts-tooltip-item-list",style:D},R)}return null},S=Qh({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},r),w=Qh({margin:0},u),O=!ct(v),_=O?v:"",M=Xe("recharts-default-tooltip",m),j=Xe("recharts-tooltip-label",h);O&&p&&o!==void 0&&o!==null&&(_=p(v,o));var k=g?{role:"status","aria-live":"assertive"}:{};return E.createElement("div",Vv({className:M,style:S},k),E.createElement("p",{className:j,style:w},E.isValidElement(_)?_:"".concat(_)),b())},ru="recharts-tooltip-wrapper",nP={visibility:"hidden"};function rP(e){var{coordinate:t,translateX:r,translateY:a}=e;return Xe(ru,{["".concat(ru,"-right")]:ce(r)&&t&&ce(t.x)&&r>=t.x,["".concat(ru,"-left")]:ce(r)&&t&&ce(t.x)&&r<t.x,["".concat(ru,"-bottom")]:ce(a)&&t&&ce(t.y)&&a>=t.y,["".concat(ru,"-top")]:ce(a)&&t&&ce(t.y)&&a<t.y})}function Mx(e){var{allowEscapeViewBox:t,coordinate:r,key:a,offsetTopLeft:u,position:o,reverseDirection:s,tooltipDimension:f,viewBox:m,viewBoxDimension:h}=e;if(o&&ce(o[a]))return o[a];var v=r[a]-f-(u>0?u:0),p=r[a]+u;if(t[a])return s[a]?v:p;var g=m[a];if(g==null)return 0;if(s[a]){var b=v,S=g;return b<S?Math.max(p,g):Math.max(v,g)}if(h==null)return 0;var w=p+f,O=g+h;return w>O?Math.max(v,g):Math.max(p,g)}function aP(e){var{translateX:t,translateY:r,useTranslate3d:a}=e;return{transform:a?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function iP(e){var{allowEscapeViewBox:t,coordinate:r,offsetTopLeft:a,position:u,reverseDirection:o,tooltipBox:s,useTranslate3d:f,viewBox:m}=e,h,v,p;return s.height>0&&s.width>0&&r?(v=Mx({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:a,position:u,reverseDirection:o,tooltipDimension:s.width,viewBox:m,viewBoxDimension:m.width}),p=Mx({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:a,position:u,reverseDirection:o,tooltipDimension:s.height,viewBox:m,viewBoxDimension:m.height}),h=aP({translateX:v,translateY:p,useTranslate3d:f})):h=nP,{cssProperties:h,cssClasses:rP({translateX:v,translateY:p,coordinate:r})}}function Cx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),r.push.apply(r,a)}return r}function cc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Cx(Object(r),!0).forEach(function(a){Zv(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Cx(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function Zv(e,t,r){return(t=lP(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lP(e){var t=uP(e,"string");return typeof t=="symbol"?t:t+""}function uP(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class oP extends E.PureComponent{constructor(){super(...arguments),Zv(this,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),Zv(this,"handleKeyDown",t=>{if(t.key==="Escape"){var r,a,u,o;this.setState({dismissed:!0,dismissedAtCoordinate:{x:(r=(a=this.props.coordinate)===null||a===void 0?void 0:a.x)!==null&&r!==void 0?r:0,y:(u=(o=this.props.coordinate)===null||o===void 0?void 0:o.y)!==null&&u!==void 0?u:0}})}})}componentDidMount(){document.addEventListener("keydown",this.handleKeyDown)}componentWillUnmount(){document.removeEventListener("keydown",this.handleKeyDown)}componentDidUpdate(){var t,r;this.state.dismissed&&(((t=this.props.coordinate)===null||t===void 0?void 0:t.x)!==this.state.dismissedAtCoordinate.x||((r=this.props.coordinate)===null||r===void 0?void 0:r.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}render(){var{active:t,allowEscapeViewBox:r,animationDuration:a,animationEasing:u,children:o,coordinate:s,hasPayload:f,isAnimationActive:m,offset:h,position:v,reverseDirection:p,useTranslate3d:g,viewBox:b,wrapperStyle:S,lastBoundingBox:w,innerRef:O,hasPortalFromProps:_}=this.props,{cssClasses:M,cssProperties:j}=iP({allowEscapeViewBox:r,coordinate:s,offsetTopLeft:h,position:v,reverseDirection:p,tooltipBox:{height:w.height,width:w.width},useTranslate3d:g,viewBox:b}),k=_?{}:cc(cc({transition:m&&t?"transform ".concat(a,"ms ").concat(u):void 0},j),{},{pointerEvents:"none",visibility:!this.state.dismissed&&t&&f?"visible":"hidden",position:"absolute",top:0,left:0}),D=cc(cc({},k),{},{visibility:!this.state.dismissed&&t&&f?"visible":"hidden"},S);return E.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:M,style:D,ref:O},o)}}var cP=()=>!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout),Mu={isSsr:cP()},yA=()=>de(e=>e.rootProps.accessibilityLayer);function vn(e){return Number.isFinite(e)}function Nc(e){return typeof e=="number"&&e>0&&Number.isFinite(e)}function Qv(){return Qv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)({}).hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Qv.apply(null,arguments)}function Dx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),r.push.apply(r,a)}return r}function Nx(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Dx(Object(r),!0).forEach(function(a){sP(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Dx(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function sP(e,t,r){return(t=fP(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fP(e){var t=dP(e,"string");return typeof t=="symbol"?t:t+""}function dP(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Px={curveBasisClosed:XM,curveBasisOpen:VM,curveBasis:IM,curveBumpX:NM,curveBumpY:PM,curveLinearClosed:ZM,curveLinear:as,curveMonotoneX:QM,curveMonotoneY:WM,curveNatural:FM,curveStep:JM,curveStepAfter:tC,curveStepBefore:eC},sc=e=>vn(e.x)&&vn(e.y),au=e=>e.x,iu=e=>e.y,hP=(e,t)=>{if(typeof e=="function")return e;var r="curve".concat(Eu(e));return(r==="curveMonotone"||r==="curveBump")&&t?Px["".concat(r).concat(t==="vertical"?"Y":"X")]:Px[r]||as},vP=e=>{var{type:t="linear",points:r=[],baseLine:a,layout:u,connectNulls:o=!1}=e,s=hP(t,u),f=o?r.filter(sc):r,m;if(Array.isArray(a)){var h=o?a.filter(p=>sc(p)):a,v=f.map((p,g)=>Nx(Nx({},p),{},{base:h[g]}));return u==="vertical"?m=rc().y(iu).x1(au).x0(p=>p.base.x):m=rc().x(au).y1(iu).y0(p=>p.base.y),m.defined(sc).curve(s),m(v)}return u==="vertical"&&ce(a)?m=rc().y(iu).x1(au).x0(a):ce(a)?m=rc().x(au).y1(iu).y0(a):m=hO().x(au).y(iu),m.defined(sc).curve(s),m(f)},mP=e=>{var{className:t,points:r,path:a,pathRef:u}=e;if((!r||!r.length)&&!a)return null;var o=r&&r.length?vP(e):a;return E.createElement("path",Qv({},Tu(e),pM(e),{className:Xe("recharts-curve",t),d:o===null?void 0:o,ref:u}))},yP=["x","y","top","left","width","height","className"];function Wv(){return Wv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)({}).hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Wv.apply(null,arguments)}function Rx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),r.push.apply(r,a)}return r}function pP(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Rx(Object(r),!0).forEach(function(a){gP(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rx(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function gP(e,t,r){return(t=bP(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bP(e){var t=xP(e,"string");return typeof t=="symbol"?t:t+""}function xP(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function SP(e,t){if(e==null)return{};var r,a,u=wP(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(u[r]=e[r])}return u}function wP(e,t){if(e==null)return{};var r={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)!==-1)continue;r[a]=e[a]}return r}var OP=(e,t,r,a,u,o)=>"M".concat(e,",").concat(u,"v").concat(a,"M").concat(o,",").concat(t,"h").concat(r),AP=e=>{var{x:t=0,y:r=0,top:a=0,left:u=0,width:o=0,height:s=0,className:f}=e,m=SP(e,yP),h=pP({x:t,y:r,top:a,left:u,width:o,height:s},m);return!ce(t)||!ce(r)||!ce(o)||!ce(s)||!ce(a)||!ce(u)?null:E.createElement("path",Wv({},xt(h,!0),{className:Xe("recharts-cross",f),d:OP(t,r,o,s,a,u)}))};function EP(e,t,r,a){var u=a/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-u:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-u,width:e==="horizontal"?a:r.width-1,height:e==="horizontal"?r.height-1:a}}function kx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),r.push.apply(r,a)}return r}function TP(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?kx(Object(r),!0).forEach(function(a){_P(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kx(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function _P(e,t,r){return(t=jP(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jP(e){var t=MP(e,"string");return typeof t=="symbol"?t:t+""}function MP(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ra(e,t){var r=TP({},e),a=t,u=Object.keys(t),o=u.reduce((s,f)=>(s[f]===void 0&&a[f]!==void 0&&(s[f]=a[f]),s),r);return o}var Wh={},Fh={},Jh={},zx;function CP(){return zx||(zx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){if(!r||typeof r!="object")return!1;const a=Object.getPrototypeOf(r);return a===null||a===Object.prototype||Object.getPrototypeOf(a)===null?Object.prototype.toString.call(r)==="[object Object]":!1}e.isPlainObject=t})(Jh)),Jh}var Bx;function DP(){return Bx||(Bx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=CP(),r=MO(),a=Pm(),u=Rm(),o=Dm();function s(h,v,p){return f(h,v,void 0,void 0,void 0,void 0,p)}function f(h,v,p,g,b,S,w){const O=w(h,v,p,g,b,S);if(O!==void 0)return O;if(typeof h==typeof v)switch(typeof h){case"bigint":case"string":case"boolean":case"symbol":case"undefined":return h===v;case"number":return h===v||Object.is(h,v);case"function":return h===v;case"object":return m(h,v,S,w)}return m(h,v,S,w)}function m(h,v,p,g){if(Object.is(h,v))return!0;let b=a.getTag(h),S=a.getTag(v);if(b===u.argumentsTag&&(b=u.objectTag),S===u.argumentsTag&&(S=u.objectTag),b!==S)return!1;switch(b){case u.stringTag:return h.toString()===v.toString();case u.numberTag:{const _=h.valueOf(),M=v.valueOf();return o.eq(_,M)}case u.booleanTag:case u.dateTag:case u.symbolTag:return Object.is(h.valueOf(),v.valueOf());case u.regexpTag:return h.source===v.source&&h.flags===v.flags;case u.functionTag:return h===v}p=p??new Map;const w=p.get(h),O=p.get(v);if(w!=null&&O!=null)return w===v;p.set(h,v),p.set(v,h);try{switch(b){case u.mapTag:{if(h.size!==v.size)return!1;for(const[_,M]of h.entries())if(!v.has(_)||!f(M,v.get(_),_,h,v,p,g))return!1;return!0}case u.setTag:{if(h.size!==v.size)return!1;const _=Array.from(h.values()),M=Array.from(v.values());for(let j=0;j<_.length;j++){const k=_[j],D=M.findIndex(R=>f(k,R,void 0,h,v,p,g));if(D===-1)return!1;M.splice(D,1)}return!0}case u.arrayTag:case u.uint8ArrayTag:case u.uint8ClampedArrayTag:case u.uint16ArrayTag:case u.uint32ArrayTag:case u.bigUint64ArrayTag:case u.int8ArrayTag:case u.int16ArrayTag:case u.int32ArrayTag:case u.bigInt64ArrayTag:case u.float32ArrayTag:case u.float64ArrayTag:{if(typeof Buffer<"u"&&Buffer.isBuffer(h)!==Buffer.isBuffer(v)||h.length!==v.length)return!1;for(let _=0;_<h.length;_++)if(!f(h[_],v[_],_,h,v,p,g))return!1;return!0}case u.arrayBufferTag:return h.byteLength!==v.byteLength?!1:m(new Uint8Array(h),new Uint8Array(v),p,g);case u.dataViewTag:return h.byteLength!==v.byteLength||h.byteOffset!==v.byteOffset?!1:m(new Uint8Array(h),new Uint8Array(v),p,g);case u.errorTag:return h.name===v.name&&h.message===v.message;case u.objectTag:{if(!(m(h.constructor,v.constructor,p,g)||t.isPlainObject(h)&&t.isPlainObject(v)))return!1;const M=[...Object.keys(h),...r.getSymbols(h)],j=[...Object.keys(v),...r.getSymbols(v)];if(M.length!==j.length)return!1;for(let k=0;k<M.length;k++){const D=M[k],R=h[D];if(!Object.hasOwn(v,D))return!1;const U=v[D];if(!f(R,U,D,h,v,p,g))return!1}return!0}default:return!1}}finally{p.delete(h),p.delete(v)}}e.isEqualWith=s})(Fh)),Fh}var ev={},Lx;function NP(){return Lx||(Lx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(){}e.noop=t})(ev)),ev}var Ux;function PP(){return Ux||(Ux=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=DP(),r=NP();function a(u,o){return t.isEqualWith(u,o,r.noop)}e.isEqual=a})(Wh)),Wh}var tv,qx;function RP(){return qx||(qx=1,tv=PP().isEqual),tv}var kP=RP();const zP=qn(kP);var Pc=1e-4,pA=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],gA=(e,t)=>e.map((r,a)=>r*t**a).reduce((r,a)=>r+a),$x=(e,t)=>r=>{var a=pA(e,t);return gA(a,r)},BP=(e,t)=>r=>{var a=pA(e,t),u=[...a.map((o,s)=>o*s).slice(1),0];return gA(u,r)},Hx=function(){for(var t,r,a,u,o=arguments.length,s=new Array(o),f=0;f<o;f++)s[f]=arguments[f];if(s.length===1)switch(s[0]){case"linear":[t,a,r,u]=[0,0,1,1];break;case"ease":[t,a,r,u]=[.25,.1,.25,1];break;case"ease-in":[t,a,r,u]=[.42,0,1,1];break;case"ease-out":[t,a,r,u]=[.42,0,.58,1];break;case"ease-in-out":[t,a,r,u]=[0,0,.58,1];break;default:{var m=s[0].split("(");m[0]==="cubic-bezier"&&m[1].split(")")[0].split(",").length===4&&([t,a,r,u]=m[1].split(")")[0].split(",").map(S=>parseFloat(S)))}}else s.length===4&&([t,a,r,u]=s);var h=$x(t,r),v=$x(a,u),p=BP(t,r),g=S=>S>1?1:S<0?0:S,b=S=>{for(var w=S>1?1:S,O=w,_=0;_<8;++_){var M=h(O)-w,j=p(O);if(Math.abs(M-w)<Pc||j<Pc)return v(O);O=g(O-M/j)}return v(O)};return b.isStepper=!1,b},LP=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{stiff:r=100,damping:a=8,dt:u=17}=t,o=(s,f,m)=>{var h=-(s-f)*r,v=m*a,p=m+(h-v)*u/1e3,g=m*u/1e3+s;return Math.abs(g-f)<Pc&&Math.abs(p)<Pc?[f,0]:[g,p]};return o.isStepper=!0,o.dt=u,o},bA=e=>{if(typeof e=="string")switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return Hx(e);case"spring":return LP();default:if(e.split("(")[0]==="cubic-bezier")return Hx(e)}return typeof e=="function"?e:null};function Yx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),r.push.apply(r,a)}return r}function Gx(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Yx(Object(r),!0).forEach(function(a){UP(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yx(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function UP(e,t,r){return(t=qP(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qP(e){var t=$P(e,"string");return typeof t=="symbol"?t:t+""}function $P(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var HP=e=>e.replace(/([A-Z])/g,t=>"-".concat(t.toLowerCase())),YP=(e,t,r)=>e.map(a=>"".concat(HP(a)," ").concat(t,"ms ").concat(r)).join(","),GP=(e,t)=>[Object.keys(e),Object.keys(t)].reduce((r,a)=>r.filter(u=>a.includes(u))),gu=(e,t)=>Object.keys(t).reduce((r,a)=>Gx(Gx({},r),{},{[a]:e(a,t[a])}),{});function Kx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),r.push.apply(r,a)}return r}function jt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Kx(Object(r),!0).forEach(function(a){KP(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kx(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function KP(e,t,r){return(t=IP(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function IP(e){var t=XP(e,"string");return typeof t=="symbol"?t:t+""}function XP(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Rc=(e,t,r)=>e+(t-e)*r,Fv=e=>{var{from:t,to:r}=e;return t!==r},xA=(e,t,r)=>{var a=gu((u,o)=>{if(Fv(o)){var[s,f]=e(o.from,o.to,o.velocity);return jt(jt({},o),{},{from:s,velocity:f})}return o},t);return r<1?gu((u,o)=>Fv(o)?jt(jt({},o),{},{velocity:Rc(o.velocity,a[u].velocity,r),from:Rc(o.from,a[u].from,r)}):o,t):xA(e,a,r-1)};function VP(e,t,r,a,u,o){var s,f=a.reduce((g,b)=>jt(jt({},g),{},{[b]:{from:e[b],velocity:0,to:t[b]}}),{}),m=()=>gu((g,b)=>b.from,f),h=()=>!Object.values(f).filter(Fv).length,v=null,p=g=>{s||(s=g);var b=g-s,S=b/r.dt;f=xA(r,f,S),u(jt(jt(jt({},e),t),m())),s=g,h()||(v=o.setTimeout(p))};return()=>(v=o.setTimeout(p),()=>{v()})}function ZP(e,t,r,a,u,o,s){var f=null,m=u.reduce((p,g)=>jt(jt({},p),{},{[g]:[e[g],t[g]]}),{}),h,v=p=>{h||(h=p);var g=(p-h)/a,b=gu((w,O)=>Rc(...O,r(g)),m);if(o(jt(jt(jt({},e),t),b)),g<1)f=s.setTimeout(v);else{var S=gu((w,O)=>Rc(...O,r(1)),m);o(jt(jt(jt({},e),t),S))}};return()=>(f=s.setTimeout(v),()=>{f()})}const SA=(e,t,r,a,u,o)=>{var s=GP(e,t);return r.isStepper===!0?VP(e,t,r,s,u,o):ZP(e,t,r,a,s,u,o)};function QP(e){var t,r=()=>null,a=!1,u=null,o=s=>{if(!a){if(Array.isArray(s)){if(!s.length)return;var f=s,[m,...h]=f;if(typeof m=="number"){u=e.setTimeout(o.bind(null,h),m);return}o(m),u=e.setTimeout(o.bind(null,h));return}typeof s=="string"&&(t=s,r(t)),typeof s=="object"&&(t=s,r(t)),typeof s=="function"&&s()}};return{stop:()=>{a=!0},start:s=>{a=!1,u&&(u(),u=null),o(s)},subscribe:s=>(r=s,()=>{r=()=>null}),getTimeoutController:()=>e}}class WP{setTimeout(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=performance.now(),u=null,o=s=>{s-a>=r?t(s):typeof requestAnimationFrame=="function"&&(u=requestAnimationFrame(o))};return u=requestAnimationFrame(o),()=>{cancelAnimationFrame(u)}}}function FP(){return QP(new WP)}var JP=E.createContext(FP);function wA(e,t){var r=E.useContext(JP);return E.useMemo(()=>t??r(e),[e,t,r])}var eR=["children","begin","duration","attributeName","easing","isActive","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart","animationManager"];function Jv(){return Jv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)({}).hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Jv.apply(null,arguments)}function tR(e,t){if(e==null)return{};var r,a,u=nR(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(u[r]=e[r])}return u}function nR(e,t){if(e==null)return{};var r={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)!==-1)continue;r[a]=e[a]}return r}function Ix(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),r.push.apply(r,a)}return r}function Fr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ix(Object(r),!0).forEach(function(a){Da(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ix(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function Da(e,t,r){return(t=rR(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rR(e){var t=aR(e,"string");return typeof t=="symbol"?t:t+""}function aR(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class Im extends E.PureComponent{constructor(t,r){super(t,r),Da(this,"mounted",!1),Da(this,"manager",void 0),Da(this,"stopJSAnimation",null),Da(this,"unSubscribe",null);var{isActive:a,attributeName:u,from:o,to:s,children:f,duration:m,animationManager:h}=this.props;if(this.manager=h,this.handleStyleChange=this.handleStyleChange.bind(this),this.changeStyle=this.changeStyle.bind(this),!a||m<=0){this.state={style:{}},typeof f=="function"&&(this.state={style:s});return}if(o){if(typeof f=="function"){this.state={style:o};return}this.state={style:u?{[u]:o}:o}}else this.state={style:{}}}componentDidMount(){var{isActive:t,canBegin:r}=this.props;this.mounted=!0,!(!t||!r)&&this.runAnimation(this.props)}componentDidUpdate(t){var{isActive:r,canBegin:a,attributeName:u,shouldReAnimate:o,to:s,from:f}=this.props,{style:m}=this.state;if(a){if(!r){var h={style:u?{[u]:s}:s};this.state&&m&&(u&&m[u]!==s||!u&&m!==s)&&this.setState(h);return}if(!(zP(t.to,s)&&t.canBegin&&t.isActive)){var v=!t.canBegin||!t.isActive;this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var p=v||o?f:t.to;if(this.state&&m){var g={style:u?{[u]:p}:p};(u&&m[u]!==p||!u&&m!==p)&&this.setState(g)}this.runAnimation(Fr(Fr({},this.props),{},{from:p,begin:0}))}}}componentWillUnmount(){this.mounted=!1;var{onAnimationEnd:t}=this.props;this.unSubscribe&&this.unSubscribe(),this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation(),t&&t()}handleStyleChange(t){this.changeStyle(t)}changeStyle(t){this.mounted&&this.setState({style:t})}runJSAnimation(t){var{from:r,to:a,duration:u,easing:o,begin:s,onAnimationEnd:f,onAnimationStart:m}=t,h=SA(r,a,bA(o),u,this.changeStyle,this.manager.getTimeoutController()),v=()=>{this.stopJSAnimation=h()};this.manager.start([m,s,v,u,f])}runAnimation(t){var{begin:r,duration:a,attributeName:u,to:o,easing:s,onAnimationStart:f,onAnimationEnd:m,children:h}=t;if(this.unSubscribe=this.manager.subscribe(this.handleStyleChange),typeof s=="function"||typeof h=="function"||s==="spring"){this.runJSAnimation(t);return}var v=u?{[u]:o}:o,p=YP(Object.keys(v),a,s);this.manager.start([f,r,Fr(Fr({},v),{},{transition:p}),a,m])}render(){var t=this.props,{children:r,begin:a,duration:u,attributeName:o,easing:s,isActive:f,from:m,to:h,canBegin:v,onAnimationEnd:p,shouldReAnimate:g,onAnimationReStart:b,animationManager:S}=t,w=tR(t,eR),O=E.Children.count(r),_=this.state.style;if(typeof r=="function")return r(_);if(!f||O===0||u<=0)return r;var M=j=>{var{style:k={},className:D}=j.props,R=E.cloneElement(j,Fr(Fr({},w),{},{style:Fr(Fr({},k),_),className:D}));return R};return O===1?M(E.Children.only(r)):E.createElement("div",null,E.Children.map(r,j=>M(j)))}}Da(Im,"displayName","Animate");Da(Im,"defaultProps",{begin:0,duration:1e3,attributeName:"",easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}});function kc(e){var t,r=wA((t=e.attributeName)!==null&&t!==void 0?t:Object.keys(e.to).join(","),e.animationManager);return E.createElement(Im,Jv({},e,{animationManager:r}))}function zc(){return zc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)({}).hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},zc.apply(null,arguments)}var Xx=(e,t,r,a,u)=>{var o=Math.min(Math.abs(r)/2,Math.abs(a)/2),s=a>=0?1:-1,f=r>=0?1:-1,m=a>=0&&r>=0||a<0&&r<0?1:0,h;if(o>0&&u instanceof Array){for(var v=[0,0,0,0],p=0,g=4;p<g;p++)v[p]=u[p]>o?o:u[p];h="M".concat(e,",").concat(t+s*v[0]),v[0]>0&&(h+="A ".concat(v[0],",").concat(v[0],",0,0,").concat(m,",").concat(e+f*v[0],",").concat(t)),h+="L ".concat(e+r-f*v[1],",").concat(t),v[1]>0&&(h+="A ".concat(v[1],",").concat(v[1],",0,0,").concat(m,`,
        `).concat(e+r,",").concat(t+s*v[1])),h+="L ".concat(e+r,",").concat(t+a-s*v[2]),v[2]>0&&(h+="A ".concat(v[2],",").concat(v[2],",0,0,").concat(m,`,
        `).concat(e+r-f*v[2],",").concat(t+a)),h+="L ".concat(e+f*v[3],",").concat(t+a),v[3]>0&&(h+="A ".concat(v[3],",").concat(v[3],",0,0,").concat(m,`,
        `).concat(e,",").concat(t+a-s*v[3])),h+="Z"}else if(o>0&&u===+u&&u>0){var b=Math.min(o,u);h="M ".concat(e,",").concat(t+s*b,`
            A `).concat(b,",").concat(b,",0,0,").concat(m,",").concat(e+f*b,",").concat(t,`
            L `).concat(e+r-f*b,",").concat(t,`
            A `).concat(b,",").concat(b,",0,0,").concat(m,",").concat(e+r,",").concat(t+s*b,`
            L `).concat(e+r,",").concat(t+a-s*b,`
            A `).concat(b,",").concat(b,",0,0,").concat(m,",").concat(e+r-f*b,",").concat(t+a,`
            L `).concat(e+f*b,",").concat(t+a,`
            A `).concat(b,",").concat(b,",0,0,").concat(m,",").concat(e,",").concat(t+a-s*b," Z")}else h="M ".concat(e,",").concat(t," h ").concat(r," v ").concat(a," h ").concat(-r," Z");return h},iR={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},OA=e=>{var t=ra(e,iR),r=E.useRef(null),[a,u]=E.useState(-1);E.useEffect(()=>{if(r.current&&r.current.getTotalLength)try{var _=r.current.getTotalLength();_&&u(_)}catch{}},[]);var{x:o,y:s,width:f,height:m,radius:h,className:v}=t,{animationEasing:p,animationDuration:g,animationBegin:b,isAnimationActive:S,isUpdateAnimationActive:w}=t;if(o!==+o||s!==+s||f!==+f||m!==+m||f===0||m===0)return null;var O=Xe("recharts-rectangle",v);return w?E.createElement(kc,{canBegin:a>0,from:{width:f,height:m,x:o,y:s},to:{width:f,height:m,x:o,y:s},duration:g,animationEasing:p,isActive:w},_=>{var{width:M,height:j,x:k,y:D}=_;return E.createElement(kc,{canBegin:a>0,from:"0px ".concat(a===-1?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:b,duration:g,isActive:S,easing:p},E.createElement("path",zc({},xt(t,!0),{className:O,d:Xx(k,D,M,j,h),ref:r})))}):E.createElement("path",zc({},xt(t,!0),{className:O,d:Xx(o,s,f,m,h)}))};function AA(e){var{cx:t,cy:r,radius:a,startAngle:u,endAngle:o}=e,s=Mt(t,r,a,u),f=Mt(t,r,a,o);return{points:[s,f],cx:t,cy:r,radius:a,startAngle:u,endAngle:o}}function em(){return em=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)({}).hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},em.apply(null,arguments)}var lR=(e,t)=>{var r=Xt(t-e),a=Math.min(Math.abs(t-e),359.999);return r*a},fc=e=>{var{cx:t,cy:r,radius:a,angle:u,sign:o,isExternal:s,cornerRadius:f,cornerIsExternal:m}=e,h=f*(s?1:-1)+a,v=Math.asin(f/h)/Dc,p=m?u:u+o*v,g=Mt(t,r,h,p),b=Mt(t,r,a,p),S=m?u-o*v:u,w=Mt(t,r,h*Math.cos(v*Dc),S);return{center:g,circleTangency:b,lineTangency:w,theta:v}},EA=e=>{var{cx:t,cy:r,innerRadius:a,outerRadius:u,startAngle:o,endAngle:s}=e,f=lR(o,s),m=o+f,h=Mt(t,r,u,o),v=Mt(t,r,u,m),p="M ".concat(h.x,",").concat(h.y,`
    A `).concat(u,",").concat(u,`,0,
    `).concat(+(Math.abs(f)>180),",").concat(+(o>m),`,
    `).concat(v.x,",").concat(v.y,`
  `);if(a>0){var g=Mt(t,r,a,o),b=Mt(t,r,a,m);p+="L ".concat(b.x,",").concat(b.y,`
            A `).concat(a,",").concat(a,`,0,
            `).concat(+(Math.abs(f)>180),",").concat(+(o<=m),`,
            `).concat(g.x,",").concat(g.y," Z")}else p+="L ".concat(t,",").concat(r," Z");return p},uR=e=>{var{cx:t,cy:r,innerRadius:a,outerRadius:u,cornerRadius:o,forceCornerRadius:s,cornerIsExternal:f,startAngle:m,endAngle:h}=e,v=Xt(h-m),{circleTangency:p,lineTangency:g,theta:b}=fc({cx:t,cy:r,radius:u,angle:m,sign:v,cornerRadius:o,cornerIsExternal:f}),{circleTangency:S,lineTangency:w,theta:O}=fc({cx:t,cy:r,radius:u,angle:h,sign:-v,cornerRadius:o,cornerIsExternal:f}),_=f?Math.abs(m-h):Math.abs(m-h)-b-O;if(_<0)return s?"M ".concat(g.x,",").concat(g.y,`
        a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0
        a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0
      `):EA({cx:t,cy:r,innerRadius:a,outerRadius:u,startAngle:m,endAngle:h});var M="M ".concat(g.x,",").concat(g.y,`
    A`).concat(o,",").concat(o,",0,0,").concat(+(v<0),",").concat(p.x,",").concat(p.y,`
    A`).concat(u,",").concat(u,",0,").concat(+(_>180),",").concat(+(v<0),",").concat(S.x,",").concat(S.y,`
    A`).concat(o,",").concat(o,",0,0,").concat(+(v<0),",").concat(w.x,",").concat(w.y,`
  `);if(a>0){var{circleTangency:j,lineTangency:k,theta:D}=fc({cx:t,cy:r,radius:a,angle:m,sign:v,isExternal:!0,cornerRadius:o,cornerIsExternal:f}),{circleTangency:R,lineTangency:U,theta:K}=fc({cx:t,cy:r,radius:a,angle:h,sign:-v,isExternal:!0,cornerRadius:o,cornerIsExternal:f}),J=f?Math.abs(m-h):Math.abs(m-h)-D-K;if(J<0&&o===0)return"".concat(M,"L").concat(t,",").concat(r,"Z");M+="L".concat(U.x,",").concat(U.y,`
      A`).concat(o,",").concat(o,",0,0,").concat(+(v<0),",").concat(R.x,",").concat(R.y,`
      A`).concat(a,",").concat(a,",0,").concat(+(J>180),",").concat(+(v>0),",").concat(j.x,",").concat(j.y,`
      A`).concat(o,",").concat(o,",0,0,").concat(+(v<0),",").concat(k.x,",").concat(k.y,"Z")}else M+="L".concat(t,",").concat(r,"Z");return M},oR={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},TA=e=>{var t=ra(e,oR),{cx:r,cy:a,innerRadius:u,outerRadius:o,cornerRadius:s,forceCornerRadius:f,cornerIsExternal:m,startAngle:h,endAngle:v,className:p}=t;if(o<u||h===v)return null;var g=Xe("recharts-sector",p),b=o-u,S=Un(s,b,0,!0),w;return S>0&&Math.abs(h-v)<360?w=uR({cx:r,cy:a,innerRadius:u,outerRadius:o,cornerRadius:Math.min(S,b/2),forceCornerRadius:f,cornerIsExternal:m,startAngle:h,endAngle:v}):w=EA({cx:r,cy:a,innerRadius:u,outerRadius:o,startAngle:h,endAngle:v}),E.createElement("path",em({},xt(t,!0),{className:g,d:w}))};function cR(e,t,r){var a,u,o,s;if(e==="horizontal")a=t.x,o=a,u=r.top,s=r.top+r.height;else if(e==="vertical")u=t.y,s=u,a=r.left,o=r.left+r.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var{cx:f,cy:m,innerRadius:h,outerRadius:v,angle:p}=t,g=Mt(f,m,h,p),b=Mt(f,m,v,p);a=g.x,u=g.y,o=b.x,s=b.y}else return AA(t);return[{x:a,y:u},{x:o,y:s}]}var nv={},rv={},av={},Vx;function sR(){return Vx||(Vx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=PO();function r(a){return t.isSymbol(a)?NaN:Number(a)}e.toNumber=r})(av)),av}var Zx;function fR(){return Zx||(Zx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=sR();function r(a){return a?(a=t.toNumber(a),a===1/0||a===-1/0?(a<0?-1:1)*Number.MAX_VALUE:a===a?a:0):a===0?a:0}e.toFinite=r})(rv)),rv}var Qx;function dR(){return Qx||(Qx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=RO(),r=fR();function a(u,o,s){s&&typeof s!="number"&&t.isIterateeCall(u,o,s)&&(o=s=void 0),u=r.toFinite(u),o===void 0?(o=u,u=0):o=r.toFinite(o),s=s===void 0?u<o?1:-1:r.toFinite(s);const f=Math.max(Math.ceil((o-u)/(s||1)),0),m=new Array(f);for(let h=0;h<f;h++)m[h]=u,u+=s;return m}e.range=a})(nv)),nv}var iv,Wx;function hR(){return Wx||(Wx=1,iv=dR().range),iv}var vR=hR();const _A=qn(vR);function ta(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function mR(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Xm(e){let t,r,a;e.length!==2?(t=ta,r=(f,m)=>ta(e(f),m),a=(f,m)=>e(f)-m):(t=e===ta||e===mR?e:yR,r=e,a=e);function u(f,m,h=0,v=f.length){if(h<v){if(t(m,m)!==0)return v;do{const p=h+v>>>1;r(f[p],m)<0?h=p+1:v=p}while(h<v)}return h}function o(f,m,h=0,v=f.length){if(h<v){if(t(m,m)!==0)return v;do{const p=h+v>>>1;r(f[p],m)<=0?h=p+1:v=p}while(h<v)}return h}function s(f,m,h=0,v=f.length){const p=u(f,m,h,v-1);return p>h&&a(f[p-1],m)>-a(f[p],m)?p-1:p}return{left:u,center:s,right:o}}function yR(){return 0}function jA(e){return e===null?NaN:+e}function*pR(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const gR=Xm(ta),Cu=gR.right;Xm(jA).center;class Fx extends Map{constructor(t,r=SR){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[a,u]of t)this.set(a,u)}get(t){return super.get(Jx(this,t))}has(t){return super.has(Jx(this,t))}set(t,r){return super.set(bR(this,t),r)}delete(t){return super.delete(xR(this,t))}}function Jx({_intern:e,_key:t},r){const a=t(r);return e.has(a)?e.get(a):r}function bR({_intern:e,_key:t},r){const a=t(r);return e.has(a)?e.get(a):(e.set(a,r),r)}function xR({_intern:e,_key:t},r){const a=t(r);return e.has(a)&&(r=e.get(a),e.delete(a)),r}function SR(e){return e!==null&&typeof e=="object"?e.valueOf():e}function wR(e=ta){if(e===ta)return MA;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const a=e(t,r);return a||a===0?a:(e(r,r)===0)-(e(t,t)===0)}}function MA(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const OR=Math.sqrt(50),AR=Math.sqrt(10),ER=Math.sqrt(2);function Bc(e,t,r){const a=(t-e)/Math.max(0,r),u=Math.floor(Math.log10(a)),o=a/Math.pow(10,u),s=o>=OR?10:o>=AR?5:o>=ER?2:1;let f,m,h;return u<0?(h=Math.pow(10,-u)/s,f=Math.round(e*h),m=Math.round(t*h),f/h<e&&++f,m/h>t&&--m,h=-h):(h=Math.pow(10,u)*s,f=Math.round(e/h),m=Math.round(t/h),f*h<e&&++f,m*h>t&&--m),m<f&&.5<=r&&r<2?Bc(e,t,r*2):[f,m,h]}function tm(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const a=t<e,[u,o,s]=a?Bc(t,e,r):Bc(e,t,r);if(!(o>=u))return[];const f=o-u+1,m=new Array(f);if(a)if(s<0)for(let h=0;h<f;++h)m[h]=(o-h)/-s;else for(let h=0;h<f;++h)m[h]=(o-h)*s;else if(s<0)for(let h=0;h<f;++h)m[h]=(u+h)/-s;else for(let h=0;h<f;++h)m[h]=(u+h)*s;return m}function nm(e,t,r){return t=+t,e=+e,r=+r,Bc(e,t,r)[2]}function rm(e,t,r){t=+t,e=+e,r=+r;const a=t<e,u=a?nm(t,e,r):nm(e,t,r);return(a?-1:1)*(u<0?1/-u:u)}function eS(e,t){let r;for(const a of e)a!=null&&(r<a||r===void 0&&a>=a)&&(r=a);return r}function tS(e,t){let r;for(const a of e)a!=null&&(r>a||r===void 0&&a>=a)&&(r=a);return r}function CA(e,t,r=0,a=1/0,u){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),a=Math.floor(Math.min(e.length-1,a)),!(r<=t&&t<=a))return e;for(u=u===void 0?MA:wR(u);a>r;){if(a-r>600){const m=a-r+1,h=t-r+1,v=Math.log(m),p=.5*Math.exp(2*v/3),g=.5*Math.sqrt(v*p*(m-p)/m)*(h-m/2<0?-1:1),b=Math.max(r,Math.floor(t-h*p/m+g)),S=Math.min(a,Math.floor(t+(m-h)*p/m+g));CA(e,t,b,S,u)}const o=e[t];let s=r,f=a;for(lu(e,r,t),u(e[a],o)>0&&lu(e,r,a);s<f;){for(lu(e,s,f),++s,--f;u(e[s],o)<0;)++s;for(;u(e[f],o)>0;)--f}u(e[r],o)===0?lu(e,r,f):(++f,lu(e,f,a)),f<=t&&(r=f+1),t<=f&&(a=f-1)}return e}function lu(e,t,r){const a=e[t];e[t]=e[r],e[r]=a}function TR(e,t,r){if(e=Float64Array.from(pR(e)),!(!(a=e.length)||isNaN(t=+t))){if(t<=0||a<2)return tS(e);if(t>=1)return eS(e);var a,u=(a-1)*t,o=Math.floor(u),s=eS(CA(e,o).subarray(0,o+1)),f=tS(e.subarray(o+1));return s+(f-s)*(u-o)}}function _R(e,t,r=jA){if(!(!(a=e.length)||isNaN(t=+t))){if(t<=0||a<2)return+r(e[0],0,e);if(t>=1)return+r(e[a-1],a-1,e);var a,u=(a-1)*t,o=Math.floor(u),s=+r(e[o],o,e),f=+r(e[o+1],o+1,e);return s+(f-s)*(u-o)}}function jR(e,t,r){e=+e,t=+t,r=(u=arguments.length)<2?(t=e,e=0,1):u<3?1:+r;for(var a=-1,u=Math.max(0,Math.ceil((t-e)/r))|0,o=new Array(u);++a<u;)o[a]=e+a*r;return o}function Pn(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Ar(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const am=Symbol("implicit");function Vm(){var e=new Fx,t=[],r=[],a=am;function u(o){let s=e.get(o);if(s===void 0){if(a!==am)return a;e.set(o,s=t.push(o)-1)}return r[s%r.length]}return u.domain=function(o){if(!arguments.length)return t.slice();t=[],e=new Fx;for(const s of o)e.has(s)||e.set(s,t.push(s)-1);return u},u.range=function(o){return arguments.length?(r=Array.from(o),u):r.slice()},u.unknown=function(o){return arguments.length?(a=o,u):a},u.copy=function(){return Vm(t,r).unknown(a)},Pn.apply(u,arguments),u}function Zm(){var e=Vm().unknown(void 0),t=e.domain,r=e.range,a=0,u=1,o,s,f=!1,m=0,h=0,v=.5;delete e.unknown;function p(){var g=t().length,b=u<a,S=b?u:a,w=b?a:u;o=(w-S)/Math.max(1,g-m+h*2),f&&(o=Math.floor(o)),S+=(w-S-o*(g-m))*v,s=o*(1-m),f&&(S=Math.round(S),s=Math.round(s));var O=jR(g).map(function(_){return S+o*_});return r(b?O.reverse():O)}return e.domain=function(g){return arguments.length?(t(g),p()):t()},e.range=function(g){return arguments.length?([a,u]=g,a=+a,u=+u,p()):[a,u]},e.rangeRound=function(g){return[a,u]=g,a=+a,u=+u,f=!0,p()},e.bandwidth=function(){return s},e.step=function(){return o},e.round=function(g){return arguments.length?(f=!!g,p()):f},e.padding=function(g){return arguments.length?(m=Math.min(1,h=+g),p()):m},e.paddingInner=function(g){return arguments.length?(m=Math.min(1,g),p()):m},e.paddingOuter=function(g){return arguments.length?(h=+g,p()):h},e.align=function(g){return arguments.length?(v=Math.max(0,Math.min(1,g)),p()):v},e.copy=function(){return Zm(t(),[a,u]).round(f).paddingInner(m).paddingOuter(h).align(v)},Pn.apply(p(),arguments)}function DA(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return DA(t())},e}function MR(){return DA(Zm.apply(null,arguments).paddingInner(1))}function Qm(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function NA(e,t){var r=Object.create(e.prototype);for(var a in t)r[a]=t[a];return r}function Du(){}var bu=.7,Lc=1/bu,Li="\\s*([+-]?\\d+)\\s*",xu="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Vn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",CR=/^#([0-9a-f]{3,8})$/,DR=new RegExp(`^rgb\\(${Li},${Li},${Li}\\)$`),NR=new RegExp(`^rgb\\(${Vn},${Vn},${Vn}\\)$`),PR=new RegExp(`^rgba\\(${Li},${Li},${Li},${xu}\\)$`),RR=new RegExp(`^rgba\\(${Vn},${Vn},${Vn},${xu}\\)$`),kR=new RegExp(`^hsl\\(${xu},${Vn},${Vn}\\)$`),zR=new RegExp(`^hsla\\(${xu},${Vn},${Vn},${xu}\\)$`),nS={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Qm(Du,Su,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:rS,formatHex:rS,formatHex8:BR,formatHsl:LR,formatRgb:aS,toString:aS});function rS(){return this.rgb().formatHex()}function BR(){return this.rgb().formatHex8()}function LR(){return PA(this).formatHsl()}function aS(){return this.rgb().formatRgb()}function Su(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=CR.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?iS(t):r===3?new Vt(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?dc(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?dc(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=DR.exec(e))?new Vt(t[1],t[2],t[3],1):(t=NR.exec(e))?new Vt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=PR.exec(e))?dc(t[1],t[2],t[3],t[4]):(t=RR.exec(e))?dc(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=kR.exec(e))?oS(t[1],t[2]/100,t[3]/100,1):(t=zR.exec(e))?oS(t[1],t[2]/100,t[3]/100,t[4]):nS.hasOwnProperty(e)?iS(nS[e]):e==="transparent"?new Vt(NaN,NaN,NaN,0):null}function iS(e){return new Vt(e>>16&255,e>>8&255,e&255,1)}function dc(e,t,r,a){return a<=0&&(e=t=r=NaN),new Vt(e,t,r,a)}function UR(e){return e instanceof Du||(e=Su(e)),e?(e=e.rgb(),new Vt(e.r,e.g,e.b,e.opacity)):new Vt}function im(e,t,r,a){return arguments.length===1?UR(e):new Vt(e,t,r,a??1)}function Vt(e,t,r,a){this.r=+e,this.g=+t,this.b=+r,this.opacity=+a}Qm(Vt,im,NA(Du,{brighter(e){return e=e==null?Lc:Math.pow(Lc,e),new Vt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?bu:Math.pow(bu,e),new Vt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Vt(Ba(this.r),Ba(this.g),Ba(this.b),Uc(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:lS,formatHex:lS,formatHex8:qR,formatRgb:uS,toString:uS}));function lS(){return`#${Na(this.r)}${Na(this.g)}${Na(this.b)}`}function qR(){return`#${Na(this.r)}${Na(this.g)}${Na(this.b)}${Na((isNaN(this.opacity)?1:this.opacity)*255)}`}function uS(){const e=Uc(this.opacity);return`${e===1?"rgb(":"rgba("}${Ba(this.r)}, ${Ba(this.g)}, ${Ba(this.b)}${e===1?")":`, ${e})`}`}function Uc(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ba(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Na(e){return e=Ba(e),(e<16?"0":"")+e.toString(16)}function oS(e,t,r,a){return a<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Ln(e,t,r,a)}function PA(e){if(e instanceof Ln)return new Ln(e.h,e.s,e.l,e.opacity);if(e instanceof Du||(e=Su(e)),!e)return new Ln;if(e instanceof Ln)return e;e=e.rgb();var t=e.r/255,r=e.g/255,a=e.b/255,u=Math.min(t,r,a),o=Math.max(t,r,a),s=NaN,f=o-u,m=(o+u)/2;return f?(t===o?s=(r-a)/f+(r<a)*6:r===o?s=(a-t)/f+2:s=(t-r)/f+4,f/=m<.5?o+u:2-o-u,s*=60):f=m>0&&m<1?0:s,new Ln(s,f,m,e.opacity)}function $R(e,t,r,a){return arguments.length===1?PA(e):new Ln(e,t,r,a??1)}function Ln(e,t,r,a){this.h=+e,this.s=+t,this.l=+r,this.opacity=+a}Qm(Ln,$R,NA(Du,{brighter(e){return e=e==null?Lc:Math.pow(Lc,e),new Ln(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?bu:Math.pow(bu,e),new Ln(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,a=r+(r<.5?r:1-r)*t,u=2*r-a;return new Vt(lv(e>=240?e-240:e+120,u,a),lv(e,u,a),lv(e<120?e+240:e-120,u,a),this.opacity)},clamp(){return new Ln(cS(this.h),hc(this.s),hc(this.l),Uc(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Uc(this.opacity);return`${e===1?"hsl(":"hsla("}${cS(this.h)}, ${hc(this.s)*100}%, ${hc(this.l)*100}%${e===1?")":`, ${e})`}`}}));function cS(e){return e=(e||0)%360,e<0?e+360:e}function hc(e){return Math.max(0,Math.min(1,e||0))}function lv(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const Wm=e=>()=>e;function HR(e,t){return function(r){return e+r*t}}function YR(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(a){return Math.pow(e+a*t,r)}}function GR(e){return(e=+e)==1?RA:function(t,r){return r-t?YR(t,r,e):Wm(isNaN(t)?r:t)}}function RA(e,t){var r=t-e;return r?HR(e,r):Wm(isNaN(e)?t:e)}const sS=(function e(t){var r=GR(t);function a(u,o){var s=r((u=im(u)).r,(o=im(o)).r),f=r(u.g,o.g),m=r(u.b,o.b),h=RA(u.opacity,o.opacity);return function(v){return u.r=s(v),u.g=f(v),u.b=m(v),u.opacity=h(v),u+""}}return a.gamma=e,a})(1);function KR(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,a=t.slice(),u;return function(o){for(u=0;u<r;++u)a[u]=e[u]*(1-o)+t[u]*o;return a}}function IR(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function XR(e,t){var r=t?t.length:0,a=e?Math.min(r,e.length):0,u=new Array(a),o=new Array(r),s;for(s=0;s<a;++s)u[s]=Qi(e[s],t[s]);for(;s<r;++s)o[s]=t[s];return function(f){for(s=0;s<a;++s)o[s]=u[s](f);return o}}function VR(e,t){var r=new Date;return e=+e,t=+t,function(a){return r.setTime(e*(1-a)+t*a),r}}function qc(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function ZR(e,t){var r={},a={},u;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(u in t)u in e?r[u]=Qi(e[u],t[u]):a[u]=t[u];return function(o){for(u in r)a[u]=r[u](o);return a}}var lm=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,uv=new RegExp(lm.source,"g");function QR(e){return function(){return e}}function WR(e){return function(t){return e(t)+""}}function FR(e,t){var r=lm.lastIndex=uv.lastIndex=0,a,u,o,s=-1,f=[],m=[];for(e=e+"",t=t+"";(a=lm.exec(e))&&(u=uv.exec(t));)(o=u.index)>r&&(o=t.slice(r,o),f[s]?f[s]+=o:f[++s]=o),(a=a[0])===(u=u[0])?f[s]?f[s]+=u:f[++s]=u:(f[++s]=null,m.push({i:s,x:qc(a,u)})),r=uv.lastIndex;return r<t.length&&(o=t.slice(r),f[s]?f[s]+=o:f[++s]=o),f.length<2?m[0]?WR(m[0].x):QR(t):(t=m.length,function(h){for(var v=0,p;v<t;++v)f[(p=m[v]).i]=p.x(h);return f.join("")})}function Qi(e,t){var r=typeof t,a;return t==null||r==="boolean"?Wm(t):(r==="number"?qc:r==="string"?(a=Su(t))?(t=a,sS):FR:t instanceof Su?sS:t instanceof Date?VR:IR(t)?KR:Array.isArray(t)?XR:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?ZR:qc)(e,t)}function Fm(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function JR(e,t){t===void 0&&(t=e,e=Qi);for(var r=0,a=t.length-1,u=t[0],o=new Array(a<0?0:a);r<a;)o[r]=e(u,u=t[++r]);return function(s){var f=Math.max(0,Math.min(a-1,Math.floor(s*=a)));return o[f](s-f)}}function e3(e){return function(){return e}}function $c(e){return+e}var fS=[0,1];function Ut(e){return e}function um(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:e3(isNaN(t)?NaN:.5)}function t3(e,t){var r;return e>t&&(r=e,e=t,t=r),function(a){return Math.max(e,Math.min(t,a))}}function n3(e,t,r){var a=e[0],u=e[1],o=t[0],s=t[1];return u<a?(a=um(u,a),o=r(s,o)):(a=um(a,u),o=r(o,s)),function(f){return o(a(f))}}function r3(e,t,r){var a=Math.min(e.length,t.length)-1,u=new Array(a),o=new Array(a),s=-1;for(e[a]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<a;)u[s]=um(e[s],e[s+1]),o[s]=r(t[s],t[s+1]);return function(f){var m=Cu(e,f,1,a)-1;return o[m](u[m](f))}}function Nu(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function ms(){var e=fS,t=fS,r=Qi,a,u,o,s=Ut,f,m,h;function v(){var g=Math.min(e.length,t.length);return s!==Ut&&(s=t3(e[0],e[g-1])),f=g>2?r3:n3,m=h=null,p}function p(g){return g==null||isNaN(g=+g)?o:(m||(m=f(e.map(a),t,r)))(a(s(g)))}return p.invert=function(g){return s(u((h||(h=f(t,e.map(a),qc)))(g)))},p.domain=function(g){return arguments.length?(e=Array.from(g,$c),v()):e.slice()},p.range=function(g){return arguments.length?(t=Array.from(g),v()):t.slice()},p.rangeRound=function(g){return t=Array.from(g),r=Fm,v()},p.clamp=function(g){return arguments.length?(s=g?!0:Ut,v()):s!==Ut},p.interpolate=function(g){return arguments.length?(r=g,v()):r},p.unknown=function(g){return arguments.length?(o=g,p):o},function(g,b){return a=g,u=b,v()}}function Jm(){return ms()(Ut,Ut)}function a3(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Hc(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,a=e.slice(0,r);return[a.length>1?a[0]+a.slice(2):a,+e.slice(r+1)]}function $i(e){return e=Hc(Math.abs(e)),e?e[1]:NaN}function i3(e,t){return function(r,a){for(var u=r.length,o=[],s=0,f=e[0],m=0;u>0&&f>0&&(m+f+1>a&&(f=Math.max(1,a-m)),o.push(r.substring(u-=f,u+f)),!((m+=f+1)>a));)f=e[s=(s+1)%e.length];return o.reverse().join(t)}}function l3(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var u3=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function wu(e){if(!(t=u3.exec(e)))throw new Error("invalid format: "+e);var t;return new ey({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}wu.prototype=ey.prototype;function ey(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}ey.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function o3(e){e:for(var t=e.length,r=1,a=-1,u;r<t;++r)switch(e[r]){case".":a=u=r;break;case"0":a===0&&(a=r),u=r;break;default:if(!+e[r])break e;a>0&&(a=0);break}return a>0?e.slice(0,a)+e.slice(u+1):e}var kA;function c3(e,t){var r=Hc(e,t);if(!r)return e+"";var a=r[0],u=r[1],o=u-(kA=Math.max(-8,Math.min(8,Math.floor(u/3)))*3)+1,s=a.length;return o===s?a:o>s?a+new Array(o-s+1).join("0"):o>0?a.slice(0,o)+"."+a.slice(o):"0."+new Array(1-o).join("0")+Hc(e,Math.max(0,t+o-1))[0]}function dS(e,t){var r=Hc(e,t);if(!r)return e+"";var a=r[0],u=r[1];return u<0?"0."+new Array(-u).join("0")+a:a.length>u+1?a.slice(0,u+1)+"."+a.slice(u+1):a+new Array(u-a.length+2).join("0")}const hS={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:a3,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>dS(e*100,t),r:dS,s:c3,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function vS(e){return e}var mS=Array.prototype.map,yS=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function s3(e){var t=e.grouping===void 0||e.thousands===void 0?vS:i3(mS.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",a=e.currency===void 0?"":e.currency[1]+"",u=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?vS:l3(mS.call(e.numerals,String)),s=e.percent===void 0?"%":e.percent+"",f=e.minus===void 0?"−":e.minus+"",m=e.nan===void 0?"NaN":e.nan+"";function h(p){p=wu(p);var g=p.fill,b=p.align,S=p.sign,w=p.symbol,O=p.zero,_=p.width,M=p.comma,j=p.precision,k=p.trim,D=p.type;D==="n"?(M=!0,D="g"):hS[D]||(j===void 0&&(j=12),k=!0,D="g"),(O||g==="0"&&b==="=")&&(O=!0,g="0",b="=");var R=w==="$"?r:w==="#"&&/[boxX]/.test(D)?"0"+D.toLowerCase():"",U=w==="$"?a:/[%p]/.test(D)?s:"",K=hS[D],J=/[defgprs%]/.test(D);j=j===void 0?6:/[gprs]/.test(D)?Math.max(1,Math.min(21,j)):Math.max(0,Math.min(20,j));function re(te){var ae=R,ge=U,be,ye,L;if(D==="c")ge=K(te)+ge,te="";else{te=+te;var V=te<0||1/te<0;if(te=isNaN(te)?m:K(Math.abs(te),j),k&&(te=o3(te)),V&&+te==0&&S!=="+"&&(V=!1),ae=(V?S==="("?S:f:S==="-"||S==="("?"":S)+ae,ge=(D==="s"?yS[8+kA/3]:"")+ge+(V&&S==="("?")":""),J){for(be=-1,ye=te.length;++be<ye;)if(L=te.charCodeAt(be),48>L||L>57){ge=(L===46?u+te.slice(be+1):te.slice(be))+ge,te=te.slice(0,be);break}}}M&&!O&&(te=t(te,1/0));var F=ae.length+te.length+ge.length,he=F<_?new Array(_-F+1).join(g):"";switch(M&&O&&(te=t(he+te,he.length?_-ge.length:1/0),he=""),b){case"<":te=ae+te+ge+he;break;case"=":te=ae+he+te+ge;break;case"^":te=he.slice(0,F=he.length>>1)+ae+te+ge+he.slice(F);break;default:te=he+ae+te+ge;break}return o(te)}return re.toString=function(){return p+""},re}function v(p,g){var b=h((p=wu(p),p.type="f",p)),S=Math.max(-8,Math.min(8,Math.floor($i(g)/3)))*3,w=Math.pow(10,-S),O=yS[8+S/3];return function(_){return b(w*_)+O}}return{format:h,formatPrefix:v}}var vc,ty,zA;f3({thousands:",",grouping:[3],currency:["$",""]});function f3(e){return vc=s3(e),ty=vc.format,zA=vc.formatPrefix,vc}function d3(e){return Math.max(0,-$i(Math.abs(e)))}function h3(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor($i(t)/3)))*3-$i(Math.abs(e)))}function v3(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,$i(t)-$i(e))+1}function BA(e,t,r,a){var u=rm(e,t,r),o;switch(a=wu(a??",f"),a.type){case"s":{var s=Math.max(Math.abs(e),Math.abs(t));return a.precision==null&&!isNaN(o=h3(u,s))&&(a.precision=o),zA(a,s)}case"":case"e":case"g":case"p":case"r":{a.precision==null&&!isNaN(o=v3(u,Math.max(Math.abs(e),Math.abs(t))))&&(a.precision=o-(a.type==="e"));break}case"f":case"%":{a.precision==null&&!isNaN(o=d3(u))&&(a.precision=o-(a.type==="%")*2);break}}return ty(a)}function aa(e){var t=e.domain;return e.ticks=function(r){var a=t();return tm(a[0],a[a.length-1],r??10)},e.tickFormat=function(r,a){var u=t();return BA(u[0],u[u.length-1],r??10,a)},e.nice=function(r){r==null&&(r=10);var a=t(),u=0,o=a.length-1,s=a[u],f=a[o],m,h,v=10;for(f<s&&(h=s,s=f,f=h,h=u,u=o,o=h);v-- >0;){if(h=nm(s,f,r),h===m)return a[u]=s,a[o]=f,t(a);if(h>0)s=Math.floor(s/h)*h,f=Math.ceil(f/h)*h;else if(h<0)s=Math.ceil(s*h)/h,f=Math.floor(f*h)/h;else break;m=h}return e},e}function LA(){var e=Jm();return e.copy=function(){return Nu(e,LA())},Pn.apply(e,arguments),aa(e)}function UA(e){var t;function r(a){return a==null||isNaN(a=+a)?t:a}return r.invert=r,r.domain=r.range=function(a){return arguments.length?(e=Array.from(a,$c),r):e.slice()},r.unknown=function(a){return arguments.length?(t=a,r):t},r.copy=function(){return UA(e).unknown(t)},e=arguments.length?Array.from(e,$c):[0,1],aa(r)}function qA(e,t){e=e.slice();var r=0,a=e.length-1,u=e[r],o=e[a],s;return o<u&&(s=r,r=a,a=s,s=u,u=o,o=s),e[r]=t.floor(u),e[a]=t.ceil(o),e}function pS(e){return Math.log(e)}function gS(e){return Math.exp(e)}function m3(e){return-Math.log(-e)}function y3(e){return-Math.exp(-e)}function p3(e){return isFinite(e)?+("1e"+e):e<0?0:e}function g3(e){return e===10?p3:e===Math.E?Math.exp:t=>Math.pow(e,t)}function b3(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function bS(e){return(t,r)=>-e(-t,r)}function ny(e){const t=e(pS,gS),r=t.domain;let a=10,u,o;function s(){return u=b3(a),o=g3(a),r()[0]<0?(u=bS(u),o=bS(o),e(m3,y3)):e(pS,gS),t}return t.base=function(f){return arguments.length?(a=+f,s()):a},t.domain=function(f){return arguments.length?(r(f),s()):r()},t.ticks=f=>{const m=r();let h=m[0],v=m[m.length-1];const p=v<h;p&&([h,v]=[v,h]);let g=u(h),b=u(v),S,w;const O=f==null?10:+f;let _=[];if(!(a%1)&&b-g<O){if(g=Math.floor(g),b=Math.ceil(b),h>0){for(;g<=b;++g)for(S=1;S<a;++S)if(w=g<0?S/o(-g):S*o(g),!(w<h)){if(w>v)break;_.push(w)}}else for(;g<=b;++g)for(S=a-1;S>=1;--S)if(w=g>0?S/o(-g):S*o(g),!(w<h)){if(w>v)break;_.push(w)}_.length*2<O&&(_=tm(h,v,O))}else _=tm(g,b,Math.min(b-g,O)).map(o);return p?_.reverse():_},t.tickFormat=(f,m)=>{if(f==null&&(f=10),m==null&&(m=a===10?"s":","),typeof m!="function"&&(!(a%1)&&(m=wu(m)).precision==null&&(m.trim=!0),m=ty(m)),f===1/0)return m;const h=Math.max(1,a*f/t.ticks().length);return v=>{let p=v/o(Math.round(u(v)));return p*a<a-.5&&(p*=a),p<=h?m(v):""}},t.nice=()=>r(qA(r(),{floor:f=>o(Math.floor(u(f))),ceil:f=>o(Math.ceil(u(f)))})),t}function $A(){const e=ny(ms()).domain([1,10]);return e.copy=()=>Nu(e,$A()).base(e.base()),Pn.apply(e,arguments),e}function xS(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function SS(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function ry(e){var t=1,r=e(xS(t),SS(t));return r.constant=function(a){return arguments.length?e(xS(t=+a),SS(t)):t},aa(r)}function HA(){var e=ry(ms());return e.copy=function(){return Nu(e,HA()).constant(e.constant())},Pn.apply(e,arguments)}function wS(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function x3(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function S3(e){return e<0?-e*e:e*e}function ay(e){var t=e(Ut,Ut),r=1;function a(){return r===1?e(Ut,Ut):r===.5?e(x3,S3):e(wS(r),wS(1/r))}return t.exponent=function(u){return arguments.length?(r=+u,a()):r},aa(t)}function iy(){var e=ay(ms());return e.copy=function(){return Nu(e,iy()).exponent(e.exponent())},Pn.apply(e,arguments),e}function w3(){return iy.apply(null,arguments).exponent(.5)}function OS(e){return Math.sign(e)*e*e}function O3(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function YA(){var e=Jm(),t=[0,1],r=!1,a;function u(o){var s=O3(e(o));return isNaN(s)?a:r?Math.round(s):s}return u.invert=function(o){return e.invert(OS(o))},u.domain=function(o){return arguments.length?(e.domain(o),u):e.domain()},u.range=function(o){return arguments.length?(e.range((t=Array.from(o,$c)).map(OS)),u):t.slice()},u.rangeRound=function(o){return u.range(o).round(!0)},u.round=function(o){return arguments.length?(r=!!o,u):r},u.clamp=function(o){return arguments.length?(e.clamp(o),u):e.clamp()},u.unknown=function(o){return arguments.length?(a=o,u):a},u.copy=function(){return YA(e.domain(),t).round(r).clamp(e.clamp()).unknown(a)},Pn.apply(u,arguments),aa(u)}function GA(){var e=[],t=[],r=[],a;function u(){var s=0,f=Math.max(1,t.length);for(r=new Array(f-1);++s<f;)r[s-1]=_R(e,s/f);return o}function o(s){return s==null||isNaN(s=+s)?a:t[Cu(r,s)]}return o.invertExtent=function(s){var f=t.indexOf(s);return f<0?[NaN,NaN]:[f>0?r[f-1]:e[0],f<r.length?r[f]:e[e.length-1]]},o.domain=function(s){if(!arguments.length)return e.slice();e=[];for(let f of s)f!=null&&!isNaN(f=+f)&&e.push(f);return e.sort(ta),u()},o.range=function(s){return arguments.length?(t=Array.from(s),u()):t.slice()},o.unknown=function(s){return arguments.length?(a=s,o):a},o.quantiles=function(){return r.slice()},o.copy=function(){return GA().domain(e).range(t).unknown(a)},Pn.apply(o,arguments)}function KA(){var e=0,t=1,r=1,a=[.5],u=[0,1],o;function s(m){return m!=null&&m<=m?u[Cu(a,m,0,r)]:o}function f(){var m=-1;for(a=new Array(r);++m<r;)a[m]=((m+1)*t-(m-r)*e)/(r+1);return s}return s.domain=function(m){return arguments.length?([e,t]=m,e=+e,t=+t,f()):[e,t]},s.range=function(m){return arguments.length?(r=(u=Array.from(m)).length-1,f()):u.slice()},s.invertExtent=function(m){var h=u.indexOf(m);return h<0?[NaN,NaN]:h<1?[e,a[0]]:h>=r?[a[r-1],t]:[a[h-1],a[h]]},s.unknown=function(m){return arguments.length&&(o=m),s},s.thresholds=function(){return a.slice()},s.copy=function(){return KA().domain([e,t]).range(u).unknown(o)},Pn.apply(aa(s),arguments)}function IA(){var e=[.5],t=[0,1],r,a=1;function u(o){return o!=null&&o<=o?t[Cu(e,o,0,a)]:r}return u.domain=function(o){return arguments.length?(e=Array.from(o),a=Math.min(e.length,t.length-1),u):e.slice()},u.range=function(o){return arguments.length?(t=Array.from(o),a=Math.min(e.length,t.length-1),u):t.slice()},u.invertExtent=function(o){var s=t.indexOf(o);return[e[s-1],e[s]]},u.unknown=function(o){return arguments.length?(r=o,u):r},u.copy=function(){return IA().domain(e).range(t).unknown(r)},Pn.apply(u,arguments)}const ov=new Date,cv=new Date;function st(e,t,r,a){function u(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return u.floor=o=>(e(o=new Date(+o)),o),u.ceil=o=>(e(o=new Date(o-1)),t(o,1),e(o),o),u.round=o=>{const s=u(o),f=u.ceil(o);return o-s<f-o?s:f},u.offset=(o,s)=>(t(o=new Date(+o),s==null?1:Math.floor(s)),o),u.range=(o,s,f)=>{const m=[];if(o=u.ceil(o),f=f==null?1:Math.floor(f),!(o<s)||!(f>0))return m;let h;do m.push(h=new Date(+o)),t(o,f),e(o);while(h<o&&o<s);return m},u.filter=o=>st(s=>{if(s>=s)for(;e(s),!o(s);)s.setTime(s-1)},(s,f)=>{if(s>=s)if(f<0)for(;++f<=0;)for(;t(s,-1),!o(s););else for(;--f>=0;)for(;t(s,1),!o(s););}),r&&(u.count=(o,s)=>(ov.setTime(+o),cv.setTime(+s),e(ov),e(cv),Math.floor(r(ov,cv))),u.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?u.filter(a?s=>a(s)%o===0:s=>u.count(0,s)%o===0):u)),u}const Yc=st(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Yc.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?st(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):Yc);Yc.range;const vr=1e3,Mn=vr*60,mr=Mn*60,br=mr*24,ly=br*7,AS=br*30,sv=br*365,Pa=st(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*vr)},(e,t)=>(t-e)/vr,e=>e.getUTCSeconds());Pa.range;const uy=st(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*vr)},(e,t)=>{e.setTime(+e+t*Mn)},(e,t)=>(t-e)/Mn,e=>e.getMinutes());uy.range;const oy=st(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Mn)},(e,t)=>(t-e)/Mn,e=>e.getUTCMinutes());oy.range;const cy=st(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*vr-e.getMinutes()*Mn)},(e,t)=>{e.setTime(+e+t*mr)},(e,t)=>(t-e)/mr,e=>e.getHours());cy.range;const sy=st(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*mr)},(e,t)=>(t-e)/mr,e=>e.getUTCHours());sy.range;const Pu=st(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Mn)/br,e=>e.getDate()-1);Pu.range;const ys=st(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/br,e=>e.getUTCDate()-1);ys.range;const XA=st(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/br,e=>Math.floor(e/br));XA.range;function Ka(e){return st(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*Mn)/ly)}const ps=Ka(0),Gc=Ka(1),A3=Ka(2),E3=Ka(3),Hi=Ka(4),T3=Ka(5),_3=Ka(6);ps.range;Gc.range;A3.range;E3.range;Hi.range;T3.range;_3.range;function Ia(e){return st(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/ly)}const gs=Ia(0),Kc=Ia(1),j3=Ia(2),M3=Ia(3),Yi=Ia(4),C3=Ia(5),D3=Ia(6);gs.range;Kc.range;j3.range;M3.range;Yi.range;C3.range;D3.range;const fy=st(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());fy.range;const dy=st(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());dy.range;const xr=st(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());xr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:st(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});xr.range;const Sr=st(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Sr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:st(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});Sr.range;function VA(e,t,r,a,u,o){const s=[[Pa,1,vr],[Pa,5,5*vr],[Pa,15,15*vr],[Pa,30,30*vr],[o,1,Mn],[o,5,5*Mn],[o,15,15*Mn],[o,30,30*Mn],[u,1,mr],[u,3,3*mr],[u,6,6*mr],[u,12,12*mr],[a,1,br],[a,2,2*br],[r,1,ly],[t,1,AS],[t,3,3*AS],[e,1,sv]];function f(h,v,p){const g=v<h;g&&([h,v]=[v,h]);const b=p&&typeof p.range=="function"?p:m(h,v,p),S=b?b.range(h,+v+1):[];return g?S.reverse():S}function m(h,v,p){const g=Math.abs(v-h)/p,b=Xm(([,,O])=>O).right(s,g);if(b===s.length)return e.every(rm(h/sv,v/sv,p));if(b===0)return Yc.every(Math.max(rm(h,v,p),1));const[S,w]=s[g/s[b-1][2]<s[b][2]/g?b-1:b];return S.every(w)}return[f,m]}const[N3,P3]=VA(Sr,dy,gs,XA,sy,oy),[R3,k3]=VA(xr,fy,ps,Pu,cy,uy);function fv(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function dv(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function uu(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function z3(e){var t=e.dateTime,r=e.date,a=e.time,u=e.periods,o=e.days,s=e.shortDays,f=e.months,m=e.shortMonths,h=ou(u),v=cu(u),p=ou(o),g=cu(o),b=ou(s),S=cu(s),w=ou(f),O=cu(f),_=ou(m),M=cu(m),j={a:V,A:F,b:he,B:N,c:null,d:CS,e:CS,f:ik,g:mk,G:pk,H:nk,I:rk,j:ak,L:ZA,m:lk,M:uk,p:Z,q:X,Q:PS,s:RS,S:ok,u:ck,U:sk,V:fk,w:dk,W:hk,x:null,X:null,y:vk,Y:yk,Z:gk,"%":NS},k={a:ne,A:se,b:ee,B:ue,c:null,d:DS,e:DS,f:wk,g:Nk,G:Rk,H:bk,I:xk,j:Sk,L:WA,m:Ok,M:Ak,p:Be,q:De,Q:PS,s:RS,S:Ek,u:Tk,U:_k,V:jk,w:Mk,W:Ck,x:null,X:null,y:Dk,Y:Pk,Z:kk,"%":NS},D={a:re,A:te,b:ae,B:ge,c:be,d:jS,e:jS,f:F3,g:_S,G:TS,H:MS,I:MS,j:V3,L:W3,m:X3,M:Z3,p:J,q:I3,Q:ek,s:tk,S:Q3,u:$3,U:H3,V:Y3,w:q3,W:G3,x:ye,X:L,y:_S,Y:TS,Z:K3,"%":J3};j.x=R(r,j),j.X=R(a,j),j.c=R(t,j),k.x=R(r,k),k.X=R(a,k),k.c=R(t,k);function R(ie,xe){return function(Ae){var W=[],ht=-1,Ne=0,zt=ie.length,Bt,vt,$u;for(Ae instanceof Date||(Ae=new Date(+Ae));++ht<zt;)ie.charCodeAt(ht)===37&&(W.push(ie.slice(Ne,ht)),(vt=ES[Bt=ie.charAt(++ht)])!=null?Bt=ie.charAt(++ht):vt=Bt==="e"?" ":"0",($u=xe[Bt])&&(Bt=$u(Ae,vt)),W.push(Bt),Ne=ht+1);return W.push(ie.slice(Ne,ht)),W.join("")}}function U(ie,xe){return function(Ae){var W=uu(1900,void 0,1),ht=K(W,ie,Ae+="",0),Ne,zt;if(ht!=Ae.length)return null;if("Q"in W)return new Date(W.Q);if("s"in W)return new Date(W.s*1e3+("L"in W?W.L:0));if(xe&&!("Z"in W)&&(W.Z=0),"p"in W&&(W.H=W.H%12+W.p*12),W.m===void 0&&(W.m="q"in W?W.q:0),"V"in W){if(W.V<1||W.V>53)return null;"w"in W||(W.w=1),"Z"in W?(Ne=dv(uu(W.y,0,1)),zt=Ne.getUTCDay(),Ne=zt>4||zt===0?Kc.ceil(Ne):Kc(Ne),Ne=ys.offset(Ne,(W.V-1)*7),W.y=Ne.getUTCFullYear(),W.m=Ne.getUTCMonth(),W.d=Ne.getUTCDate()+(W.w+6)%7):(Ne=fv(uu(W.y,0,1)),zt=Ne.getDay(),Ne=zt>4||zt===0?Gc.ceil(Ne):Gc(Ne),Ne=Pu.offset(Ne,(W.V-1)*7),W.y=Ne.getFullYear(),W.m=Ne.getMonth(),W.d=Ne.getDate()+(W.w+6)%7)}else("W"in W||"U"in W)&&("w"in W||(W.w="u"in W?W.u%7:"W"in W?1:0),zt="Z"in W?dv(uu(W.y,0,1)).getUTCDay():fv(uu(W.y,0,1)).getDay(),W.m=0,W.d="W"in W?(W.w+6)%7+W.W*7-(zt+5)%7:W.w+W.U*7-(zt+6)%7);return"Z"in W?(W.H+=W.Z/100|0,W.M+=W.Z%100,dv(W)):fv(W)}}function K(ie,xe,Ae,W){for(var ht=0,Ne=xe.length,zt=Ae.length,Bt,vt;ht<Ne;){if(W>=zt)return-1;if(Bt=xe.charCodeAt(ht++),Bt===37){if(Bt=xe.charAt(ht++),vt=D[Bt in ES?xe.charAt(ht++):Bt],!vt||(W=vt(ie,Ae,W))<0)return-1}else if(Bt!=Ae.charCodeAt(W++))return-1}return W}function J(ie,xe,Ae){var W=h.exec(xe.slice(Ae));return W?(ie.p=v.get(W[0].toLowerCase()),Ae+W[0].length):-1}function re(ie,xe,Ae){var W=b.exec(xe.slice(Ae));return W?(ie.w=S.get(W[0].toLowerCase()),Ae+W[0].length):-1}function te(ie,xe,Ae){var W=p.exec(xe.slice(Ae));return W?(ie.w=g.get(W[0].toLowerCase()),Ae+W[0].length):-1}function ae(ie,xe,Ae){var W=_.exec(xe.slice(Ae));return W?(ie.m=M.get(W[0].toLowerCase()),Ae+W[0].length):-1}function ge(ie,xe,Ae){var W=w.exec(xe.slice(Ae));return W?(ie.m=O.get(W[0].toLowerCase()),Ae+W[0].length):-1}function be(ie,xe,Ae){return K(ie,t,xe,Ae)}function ye(ie,xe,Ae){return K(ie,r,xe,Ae)}function L(ie,xe,Ae){return K(ie,a,xe,Ae)}function V(ie){return s[ie.getDay()]}function F(ie){return o[ie.getDay()]}function he(ie){return m[ie.getMonth()]}function N(ie){return f[ie.getMonth()]}function Z(ie){return u[+(ie.getHours()>=12)]}function X(ie){return 1+~~(ie.getMonth()/3)}function ne(ie){return s[ie.getUTCDay()]}function se(ie){return o[ie.getUTCDay()]}function ee(ie){return m[ie.getUTCMonth()]}function ue(ie){return f[ie.getUTCMonth()]}function Be(ie){return u[+(ie.getUTCHours()>=12)]}function De(ie){return 1+~~(ie.getUTCMonth()/3)}return{format:function(ie){var xe=R(ie+="",j);return xe.toString=function(){return ie},xe},parse:function(ie){var xe=U(ie+="",!1);return xe.toString=function(){return ie},xe},utcFormat:function(ie){var xe=R(ie+="",k);return xe.toString=function(){return ie},xe},utcParse:function(ie){var xe=U(ie+="",!0);return xe.toString=function(){return ie},xe}}}var ES={"-":"",_:" ",0:"0"},Ot=/^\s*\d+/,B3=/^%/,L3=/[\\^$*+?|[\]().{}]/g;function Me(e,t,r){var a=e<0?"-":"",u=(a?-e:e)+"",o=u.length;return a+(o<r?new Array(r-o+1).join(t)+u:u)}function U3(e){return e.replace(L3,"\\$&")}function ou(e){return new RegExp("^(?:"+e.map(U3).join("|")+")","i")}function cu(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function q3(e,t,r){var a=Ot.exec(t.slice(r,r+1));return a?(e.w=+a[0],r+a[0].length):-1}function $3(e,t,r){var a=Ot.exec(t.slice(r,r+1));return a?(e.u=+a[0],r+a[0].length):-1}function H3(e,t,r){var a=Ot.exec(t.slice(r,r+2));return a?(e.U=+a[0],r+a[0].length):-1}function Y3(e,t,r){var a=Ot.exec(t.slice(r,r+2));return a?(e.V=+a[0],r+a[0].length):-1}function G3(e,t,r){var a=Ot.exec(t.slice(r,r+2));return a?(e.W=+a[0],r+a[0].length):-1}function TS(e,t,r){var a=Ot.exec(t.slice(r,r+4));return a?(e.y=+a[0],r+a[0].length):-1}function _S(e,t,r){var a=Ot.exec(t.slice(r,r+2));return a?(e.y=+a[0]+(+a[0]>68?1900:2e3),r+a[0].length):-1}function K3(e,t,r){var a=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return a?(e.Z=a[1]?0:-(a[2]+(a[3]||"00")),r+a[0].length):-1}function I3(e,t,r){var a=Ot.exec(t.slice(r,r+1));return a?(e.q=a[0]*3-3,r+a[0].length):-1}function X3(e,t,r){var a=Ot.exec(t.slice(r,r+2));return a?(e.m=a[0]-1,r+a[0].length):-1}function jS(e,t,r){var a=Ot.exec(t.slice(r,r+2));return a?(e.d=+a[0],r+a[0].length):-1}function V3(e,t,r){var a=Ot.exec(t.slice(r,r+3));return a?(e.m=0,e.d=+a[0],r+a[0].length):-1}function MS(e,t,r){var a=Ot.exec(t.slice(r,r+2));return a?(e.H=+a[0],r+a[0].length):-1}function Z3(e,t,r){var a=Ot.exec(t.slice(r,r+2));return a?(e.M=+a[0],r+a[0].length):-1}function Q3(e,t,r){var a=Ot.exec(t.slice(r,r+2));return a?(e.S=+a[0],r+a[0].length):-1}function W3(e,t,r){var a=Ot.exec(t.slice(r,r+3));return a?(e.L=+a[0],r+a[0].length):-1}function F3(e,t,r){var a=Ot.exec(t.slice(r,r+6));return a?(e.L=Math.floor(a[0]/1e3),r+a[0].length):-1}function J3(e,t,r){var a=B3.exec(t.slice(r,r+1));return a?r+a[0].length:-1}function ek(e,t,r){var a=Ot.exec(t.slice(r));return a?(e.Q=+a[0],r+a[0].length):-1}function tk(e,t,r){var a=Ot.exec(t.slice(r));return a?(e.s=+a[0],r+a[0].length):-1}function CS(e,t){return Me(e.getDate(),t,2)}function nk(e,t){return Me(e.getHours(),t,2)}function rk(e,t){return Me(e.getHours()%12||12,t,2)}function ak(e,t){return Me(1+Pu.count(xr(e),e),t,3)}function ZA(e,t){return Me(e.getMilliseconds(),t,3)}function ik(e,t){return ZA(e,t)+"000"}function lk(e,t){return Me(e.getMonth()+1,t,2)}function uk(e,t){return Me(e.getMinutes(),t,2)}function ok(e,t){return Me(e.getSeconds(),t,2)}function ck(e){var t=e.getDay();return t===0?7:t}function sk(e,t){return Me(ps.count(xr(e)-1,e),t,2)}function QA(e){var t=e.getDay();return t>=4||t===0?Hi(e):Hi.ceil(e)}function fk(e,t){return e=QA(e),Me(Hi.count(xr(e),e)+(xr(e).getDay()===4),t,2)}function dk(e){return e.getDay()}function hk(e,t){return Me(Gc.count(xr(e)-1,e),t,2)}function vk(e,t){return Me(e.getFullYear()%100,t,2)}function mk(e,t){return e=QA(e),Me(e.getFullYear()%100,t,2)}function yk(e,t){return Me(e.getFullYear()%1e4,t,4)}function pk(e,t){var r=e.getDay();return e=r>=4||r===0?Hi(e):Hi.ceil(e),Me(e.getFullYear()%1e4,t,4)}function gk(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Me(t/60|0,"0",2)+Me(t%60,"0",2)}function DS(e,t){return Me(e.getUTCDate(),t,2)}function bk(e,t){return Me(e.getUTCHours(),t,2)}function xk(e,t){return Me(e.getUTCHours()%12||12,t,2)}function Sk(e,t){return Me(1+ys.count(Sr(e),e),t,3)}function WA(e,t){return Me(e.getUTCMilliseconds(),t,3)}function wk(e,t){return WA(e,t)+"000"}function Ok(e,t){return Me(e.getUTCMonth()+1,t,2)}function Ak(e,t){return Me(e.getUTCMinutes(),t,2)}function Ek(e,t){return Me(e.getUTCSeconds(),t,2)}function Tk(e){var t=e.getUTCDay();return t===0?7:t}function _k(e,t){return Me(gs.count(Sr(e)-1,e),t,2)}function FA(e){var t=e.getUTCDay();return t>=4||t===0?Yi(e):Yi.ceil(e)}function jk(e,t){return e=FA(e),Me(Yi.count(Sr(e),e)+(Sr(e).getUTCDay()===4),t,2)}function Mk(e){return e.getUTCDay()}function Ck(e,t){return Me(Kc.count(Sr(e)-1,e),t,2)}function Dk(e,t){return Me(e.getUTCFullYear()%100,t,2)}function Nk(e,t){return e=FA(e),Me(e.getUTCFullYear()%100,t,2)}function Pk(e,t){return Me(e.getUTCFullYear()%1e4,t,4)}function Rk(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Yi(e):Yi.ceil(e),Me(e.getUTCFullYear()%1e4,t,4)}function kk(){return"+0000"}function NS(){return"%"}function PS(e){return+e}function RS(e){return Math.floor(+e/1e3)}var Ri,JA,eE;zk({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function zk(e){return Ri=z3(e),JA=Ri.format,Ri.parse,eE=Ri.utcFormat,Ri.utcParse,Ri}function Bk(e){return new Date(e)}function Lk(e){return e instanceof Date?+e:+new Date(+e)}function hy(e,t,r,a,u,o,s,f,m,h){var v=Jm(),p=v.invert,g=v.domain,b=h(".%L"),S=h(":%S"),w=h("%I:%M"),O=h("%I %p"),_=h("%a %d"),M=h("%b %d"),j=h("%B"),k=h("%Y");function D(R){return(m(R)<R?b:f(R)<R?S:s(R)<R?w:o(R)<R?O:a(R)<R?u(R)<R?_:M:r(R)<R?j:k)(R)}return v.invert=function(R){return new Date(p(R))},v.domain=function(R){return arguments.length?g(Array.from(R,Lk)):g().map(Bk)},v.ticks=function(R){var U=g();return e(U[0],U[U.length-1],R??10)},v.tickFormat=function(R,U){return U==null?D:h(U)},v.nice=function(R){var U=g();return(!R||typeof R.range!="function")&&(R=t(U[0],U[U.length-1],R??10)),R?g(qA(U,R)):v},v.copy=function(){return Nu(v,hy(e,t,r,a,u,o,s,f,m,h))},v}function Uk(){return Pn.apply(hy(R3,k3,xr,fy,ps,Pu,cy,uy,Pa,JA).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function qk(){return Pn.apply(hy(N3,P3,Sr,dy,gs,ys,sy,oy,Pa,eE).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function bs(){var e=0,t=1,r,a,u,o,s=Ut,f=!1,m;function h(p){return p==null||isNaN(p=+p)?m:s(u===0?.5:(p=(o(p)-r)*u,f?Math.max(0,Math.min(1,p)):p))}h.domain=function(p){return arguments.length?([e,t]=p,r=o(e=+e),a=o(t=+t),u=r===a?0:1/(a-r),h):[e,t]},h.clamp=function(p){return arguments.length?(f=!!p,h):f},h.interpolator=function(p){return arguments.length?(s=p,h):s};function v(p){return function(g){var b,S;return arguments.length?([b,S]=g,s=p(b,S),h):[s(0),s(1)]}}return h.range=v(Qi),h.rangeRound=v(Fm),h.unknown=function(p){return arguments.length?(m=p,h):m},function(p){return o=p,r=p(e),a=p(t),u=r===a?0:1/(a-r),h}}function ia(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function tE(){var e=aa(bs()(Ut));return e.copy=function(){return ia(e,tE())},Ar.apply(e,arguments)}function nE(){var e=ny(bs()).domain([1,10]);return e.copy=function(){return ia(e,nE()).base(e.base())},Ar.apply(e,arguments)}function rE(){var e=ry(bs());return e.copy=function(){return ia(e,rE()).constant(e.constant())},Ar.apply(e,arguments)}function vy(){var e=ay(bs());return e.copy=function(){return ia(e,vy()).exponent(e.exponent())},Ar.apply(e,arguments)}function $k(){return vy.apply(null,arguments).exponent(.5)}function aE(){var e=[],t=Ut;function r(a){if(a!=null&&!isNaN(a=+a))return t((Cu(e,a,1)-1)/(e.length-1))}return r.domain=function(a){if(!arguments.length)return e.slice();e=[];for(let u of a)u!=null&&!isNaN(u=+u)&&e.push(u);return e.sort(ta),r},r.interpolator=function(a){return arguments.length?(t=a,r):t},r.range=function(){return e.map((a,u)=>t(u/(e.length-1)))},r.quantiles=function(a){return Array.from({length:a+1},(u,o)=>TR(e,o/a))},r.copy=function(){return aE(t).domain(e)},Ar.apply(r,arguments)}function xs(){var e=0,t=.5,r=1,a=1,u,o,s,f,m,h=Ut,v,p=!1,g;function b(w){return isNaN(w=+w)?g:(w=.5+((w=+v(w))-o)*(a*w<a*o?f:m),h(p?Math.max(0,Math.min(1,w)):w))}b.domain=function(w){return arguments.length?([e,t,r]=w,u=v(e=+e),o=v(t=+t),s=v(r=+r),f=u===o?0:.5/(o-u),m=o===s?0:.5/(s-o),a=o<u?-1:1,b):[e,t,r]},b.clamp=function(w){return arguments.length?(p=!!w,b):p},b.interpolator=function(w){return arguments.length?(h=w,b):h};function S(w){return function(O){var _,M,j;return arguments.length?([_,M,j]=O,h=JR(w,[_,M,j]),b):[h(0),h(.5),h(1)]}}return b.range=S(Qi),b.rangeRound=S(Fm),b.unknown=function(w){return arguments.length?(g=w,b):g},function(w){return v=w,u=w(e),o=w(t),s=w(r),f=u===o?0:.5/(o-u),m=o===s?0:.5/(s-o),a=o<u?-1:1,b}}function iE(){var e=aa(xs()(Ut));return e.copy=function(){return ia(e,iE())},Ar.apply(e,arguments)}function lE(){var e=ny(xs()).domain([.1,1,10]);return e.copy=function(){return ia(e,lE()).base(e.base())},Ar.apply(e,arguments)}function uE(){var e=ry(xs());return e.copy=function(){return ia(e,uE()).constant(e.constant())},Ar.apply(e,arguments)}function my(){var e=ay(xs());return e.copy=function(){return ia(e,my()).exponent(e.exponent())},Ar.apply(e,arguments)}function Hk(){return my.apply(null,arguments).exponent(.5)}const du=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Zm,scaleDiverging:iE,scaleDivergingLog:lE,scaleDivergingPow:my,scaleDivergingSqrt:Hk,scaleDivergingSymlog:uE,scaleIdentity:UA,scaleImplicit:am,scaleLinear:LA,scaleLog:$A,scaleOrdinal:Vm,scalePoint:MR,scalePow:iy,scaleQuantile:GA,scaleQuantize:KA,scaleRadial:YA,scaleSequential:tE,scaleSequentialLog:nE,scaleSequentialPow:vy,scaleSequentialQuantile:aE,scaleSequentialSqrt:$k,scaleSequentialSymlog:rE,scaleSqrt:w3,scaleSymlog:HA,scaleThreshold:IA,scaleTime:Uk,scaleUtc:qk,tickFormat:BA},Symbol.toStringTag,{value:"Module"}));var la=e=>e.chartData,Yk=Y([la],e=>{var t=e.chartData!=null?e.chartData.length-1:0;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),yy=(e,t,r,a)=>a?Yk(e):la(e);function Gi(e){if(Array.isArray(e)&&e.length===2){var[t,r]=e;if(vn(t)&&vn(r))return!0}return!1}function kS(e,t,r){return r?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function Gk(e,t){if(t&&typeof e!="function"&&Array.isArray(e)&&e.length===2){var[r,a]=e,u,o;if(vn(r))u=r;else if(typeof r=="function")return;if(vn(a))o=a;else if(typeof a=="function")return;var s=[u,o];if(Gi(s))return s}}function Kk(e,t,r){if(!(!r&&t==null)){if(typeof e=="function"&&t!=null)try{var a=e(t,r);if(Gi(a))return kS(a,t,r)}catch{}if(Array.isArray(e)&&e.length===2){var[u,o]=e,s,f;if(u==="auto")t!=null&&(s=Math.min(...t));else if(ce(u))s=u;else if(typeof u=="function")try{t!=null&&(s=u(t?.[0]))}catch{}else if(typeof u=="string"&&Ax.test(u)){var m=Ax.exec(u);if(m==null||t==null)s=void 0;else{var h=+m[1];s=t[0]-h}}else s=t?.[0];if(o==="auto")t!=null&&(f=Math.max(...t));else if(ce(o))f=o;else if(typeof o=="function")try{t!=null&&(f=o(t?.[1]))}catch{}else if(typeof o=="string"&&Ex.test(o)){var v=Ex.exec(o);if(v==null||t==null)f=void 0;else{var p=+v[1];f=t[1]+p}}else f=t?.[1];var g=[s,f];if(Gi(g))return t==null?g:kS(g,t,r)}}}var Wi=1e9,Ik={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},gy,Ze=!0,Dn="[DecimalError] ",La=Dn+"Invalid argument: ",py=Dn+"Exponent out of range: ",Fi=Math.floor,Ma=Math.pow,Xk=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,sn,bt=1e7,Ie=7,oE=9007199254740991,Ic=Fi(oE/Ie),le={};le.absoluteValue=le.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};le.comparedTo=le.cmp=function(e){var t,r,a,u,o=this;if(e=new o.constructor(e),o.s!==e.s)return o.s||-e.s;if(o.e!==e.e)return o.e>e.e^o.s<0?1:-1;for(a=o.d.length,u=e.d.length,t=0,r=a<u?a:u;t<r;++t)if(o.d[t]!==e.d[t])return o.d[t]>e.d[t]^o.s<0?1:-1;return a===u?0:a>u^o.s<0?1:-1};le.decimalPlaces=le.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*Ie;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};le.dividedBy=le.div=function(e){return pr(this,new this.constructor(e))};le.dividedToIntegerBy=le.idiv=function(e){var t=this,r=t.constructor;return Ye(pr(t,new r(e),0,1),r.precision)};le.equals=le.eq=function(e){return!this.cmp(e)};le.exponent=function(){return at(this)};le.greaterThan=le.gt=function(e){return this.cmp(e)>0};le.greaterThanOrEqualTo=le.gte=function(e){return this.cmp(e)>=0};le.isInteger=le.isint=function(){return this.e>this.d.length-2};le.isNegative=le.isneg=function(){return this.s<0};le.isPositive=le.ispos=function(){return this.s>0};le.isZero=function(){return this.s===0};le.lessThan=le.lt=function(e){return this.cmp(e)<0};le.lessThanOrEqualTo=le.lte=function(e){return this.cmp(e)<1};le.logarithm=le.log=function(e){var t,r=this,a=r.constructor,u=a.precision,o=u+5;if(e===void 0)e=new a(10);else if(e=new a(e),e.s<1||e.eq(sn))throw Error(Dn+"NaN");if(r.s<1)throw Error(Dn+(r.s?"NaN":"-Infinity"));return r.eq(sn)?new a(0):(Ze=!1,t=pr(Ou(r,o),Ou(e,o),o),Ze=!0,Ye(t,u))};le.minus=le.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?fE(t,e):cE(t,(e.s=-e.s,e))};le.modulo=le.mod=function(e){var t,r=this,a=r.constructor,u=a.precision;if(e=new a(e),!e.s)throw Error(Dn+"NaN");return r.s?(Ze=!1,t=pr(r,e,0,1).times(e),Ze=!0,r.minus(t)):Ye(new a(r),u)};le.naturalExponential=le.exp=function(){return sE(this)};le.naturalLogarithm=le.ln=function(){return Ou(this)};le.negated=le.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};le.plus=le.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?cE(t,e):fE(t,(e.s=-e.s,e))};le.precision=le.sd=function(e){var t,r,a,u=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(La+e);if(t=at(u)+1,a=u.d.length-1,r=a*Ie+1,a=u.d[a],a){for(;a%10==0;a/=10)r--;for(a=u.d[0];a>=10;a/=10)r++}return e&&t>r?t:r};le.squareRoot=le.sqrt=function(){var e,t,r,a,u,o,s,f=this,m=f.constructor;if(f.s<1){if(!f.s)return new m(0);throw Error(Dn+"NaN")}for(e=at(f),Ze=!1,u=Math.sqrt(+f),u==0||u==1/0?(t=Xn(f.d),(t.length+e)%2==0&&(t+="0"),u=Math.sqrt(t),e=Fi((e+1)/2)-(e<0||e%2),u==1/0?t="5e"+e:(t=u.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),a=new m(t)):a=new m(u.toString()),r=m.precision,u=s=r+3;;)if(o=a,a=o.plus(pr(f,o,s+2)).times(.5),Xn(o.d).slice(0,s)===(t=Xn(a.d)).slice(0,s)){if(t=t.slice(s-3,s+1),u==s&&t=="4999"){if(Ye(o,r+1,0),o.times(o).eq(f)){a=o;break}}else if(t!="9999")break;s+=4}return Ze=!0,Ye(a,r)};le.times=le.mul=function(e){var t,r,a,u,o,s,f,m,h,v=this,p=v.constructor,g=v.d,b=(e=new p(e)).d;if(!v.s||!e.s)return new p(0);for(e.s*=v.s,r=v.e+e.e,m=g.length,h=b.length,m<h&&(o=g,g=b,b=o,s=m,m=h,h=s),o=[],s=m+h,a=s;a--;)o.push(0);for(a=h;--a>=0;){for(t=0,u=m+a;u>a;)f=o[u]+b[a]*g[u-a-1]+t,o[u--]=f%bt|0,t=f/bt|0;o[u]=(o[u]+t)%bt|0}for(;!o[--s];)o.pop();return t?++r:o.shift(),e.d=o,e.e=r,Ze?Ye(e,p.precision):e};le.toDecimalPlaces=le.todp=function(e,t){var r=this,a=r.constructor;return r=new a(r),e===void 0?r:(Qn(e,0,Wi),t===void 0?t=a.rounding:Qn(t,0,8),Ye(r,e+at(r)+1,t))};le.toExponential=function(e,t){var r,a=this,u=a.constructor;return e===void 0?r=Ya(a,!0):(Qn(e,0,Wi),t===void 0?t=u.rounding:Qn(t,0,8),a=Ye(new u(a),e+1,t),r=Ya(a,!0,e+1)),r};le.toFixed=function(e,t){var r,a,u=this,o=u.constructor;return e===void 0?Ya(u):(Qn(e,0,Wi),t===void 0?t=o.rounding:Qn(t,0,8),a=Ye(new o(u),e+at(u)+1,t),r=Ya(a.abs(),!1,e+at(a)+1),u.isneg()&&!u.isZero()?"-"+r:r)};le.toInteger=le.toint=function(){var e=this,t=e.constructor;return Ye(new t(e),at(e)+1,t.rounding)};le.toNumber=function(){return+this};le.toPower=le.pow=function(e){var t,r,a,u,o,s,f=this,m=f.constructor,h=12,v=+(e=new m(e));if(!e.s)return new m(sn);if(f=new m(f),!f.s){if(e.s<1)throw Error(Dn+"Infinity");return f}if(f.eq(sn))return f;if(a=m.precision,e.eq(sn))return Ye(f,a);if(t=e.e,r=e.d.length-1,s=t>=r,o=f.s,s){if((r=v<0?-v:v)<=oE){for(u=new m(sn),t=Math.ceil(a/Ie+4),Ze=!1;r%2&&(u=u.times(f),BS(u.d,t)),r=Fi(r/2),r!==0;)f=f.times(f),BS(f.d,t);return Ze=!0,e.s<0?new m(sn).div(u):Ye(u,a)}}else if(o<0)throw Error(Dn+"NaN");return o=o<0&&e.d[Math.max(t,r)]&1?-1:1,f.s=1,Ze=!1,u=e.times(Ou(f,a+h)),Ze=!0,u=sE(u),u.s=o,u};le.toPrecision=function(e,t){var r,a,u=this,o=u.constructor;return e===void 0?(r=at(u),a=Ya(u,r<=o.toExpNeg||r>=o.toExpPos)):(Qn(e,1,Wi),t===void 0?t=o.rounding:Qn(t,0,8),u=Ye(new o(u),e,t),r=at(u),a=Ya(u,e<=r||r<=o.toExpNeg,e)),a};le.toSignificantDigits=le.tosd=function(e,t){var r=this,a=r.constructor;return e===void 0?(e=a.precision,t=a.rounding):(Qn(e,1,Wi),t===void 0?t=a.rounding:Qn(t,0,8)),Ye(new a(r),e,t)};le.toString=le.valueOf=le.val=le.toJSON=le[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=at(e),r=e.constructor;return Ya(e,t<=r.toExpNeg||t>=r.toExpPos)};function cE(e,t){var r,a,u,o,s,f,m,h,v=e.constructor,p=v.precision;if(!e.s||!t.s)return t.s||(t=new v(e)),Ze?Ye(t,p):t;if(m=e.d,h=t.d,s=e.e,u=t.e,m=m.slice(),o=s-u,o){for(o<0?(a=m,o=-o,f=h.length):(a=h,u=s,f=m.length),s=Math.ceil(p/Ie),f=s>f?s+1:f+1,o>f&&(o=f,a.length=1),a.reverse();o--;)a.push(0);a.reverse()}for(f=m.length,o=h.length,f-o<0&&(o=f,a=h,h=m,m=a),r=0;o;)r=(m[--o]=m[o]+h[o]+r)/bt|0,m[o]%=bt;for(r&&(m.unshift(r),++u),f=m.length;m[--f]==0;)m.pop();return t.d=m,t.e=u,Ze?Ye(t,p):t}function Qn(e,t,r){if(e!==~~e||e<t||e>r)throw Error(La+e)}function Xn(e){var t,r,a,u=e.length-1,o="",s=e[0];if(u>0){for(o+=s,t=1;t<u;t++)a=e[t]+"",r=Ie-a.length,r&&(o+=Jr(r)),o+=a;s=e[t],a=s+"",r=Ie-a.length,r&&(o+=Jr(r))}else if(s===0)return"0";for(;s%10===0;)s/=10;return o+s}var pr=(function(){function e(a,u){var o,s=0,f=a.length;for(a=a.slice();f--;)o=a[f]*u+s,a[f]=o%bt|0,s=o/bt|0;return s&&a.unshift(s),a}function t(a,u,o,s){var f,m;if(o!=s)m=o>s?1:-1;else for(f=m=0;f<o;f++)if(a[f]!=u[f]){m=a[f]>u[f]?1:-1;break}return m}function r(a,u,o){for(var s=0;o--;)a[o]-=s,s=a[o]<u[o]?1:0,a[o]=s*bt+a[o]-u[o];for(;!a[0]&&a.length>1;)a.shift()}return function(a,u,o,s){var f,m,h,v,p,g,b,S,w,O,_,M,j,k,D,R,U,K,J=a.constructor,re=a.s==u.s?1:-1,te=a.d,ae=u.d;if(!a.s)return new J(a);if(!u.s)throw Error(Dn+"Division by zero");for(m=a.e-u.e,U=ae.length,D=te.length,b=new J(re),S=b.d=[],h=0;ae[h]==(te[h]||0);)++h;if(ae[h]>(te[h]||0)&&--m,o==null?M=o=J.precision:s?M=o+(at(a)-at(u))+1:M=o,M<0)return new J(0);if(M=M/Ie+2|0,h=0,U==1)for(v=0,ae=ae[0],M++;(h<D||v)&&M--;h++)j=v*bt+(te[h]||0),S[h]=j/ae|0,v=j%ae|0;else{for(v=bt/(ae[0]+1)|0,v>1&&(ae=e(ae,v),te=e(te,v),U=ae.length,D=te.length),k=U,w=te.slice(0,U),O=w.length;O<U;)w[O++]=0;K=ae.slice(),K.unshift(0),R=ae[0],ae[1]>=bt/2&&++R;do v=0,f=t(ae,w,U,O),f<0?(_=w[0],U!=O&&(_=_*bt+(w[1]||0)),v=_/R|0,v>1?(v>=bt&&(v=bt-1),p=e(ae,v),g=p.length,O=w.length,f=t(p,w,g,O),f==1&&(v--,r(p,U<g?K:ae,g))):(v==0&&(f=v=1),p=ae.slice()),g=p.length,g<O&&p.unshift(0),r(w,p,O),f==-1&&(O=w.length,f=t(ae,w,U,O),f<1&&(v++,r(w,U<O?K:ae,O))),O=w.length):f===0&&(v++,w=[0]),S[h++]=v,f&&w[0]?w[O++]=te[k]||0:(w=[te[k]],O=1);while((k++<D||w[0]!==void 0)&&M--)}return S[0]||S.shift(),b.e=m,Ye(b,s?o+at(b)+1:o)}})();function sE(e,t){var r,a,u,o,s,f,m=0,h=0,v=e.constructor,p=v.precision;if(at(e)>16)throw Error(py+at(e));if(!e.s)return new v(sn);for(Ze=!1,f=p,s=new v(.03125);e.abs().gte(.1);)e=e.times(s),h+=5;for(a=Math.log(Ma(2,h))/Math.LN10*2+5|0,f+=a,r=u=o=new v(sn),v.precision=f;;){if(u=Ye(u.times(e),f),r=r.times(++m),s=o.plus(pr(u,r,f)),Xn(s.d).slice(0,f)===Xn(o.d).slice(0,f)){for(;h--;)o=Ye(o.times(o),f);return v.precision=p,t==null?(Ze=!0,Ye(o,p)):o}o=s}}function at(e){for(var t=e.e*Ie,r=e.d[0];r>=10;r/=10)t++;return t}function hv(e,t,r){if(t>e.LN10.sd())throw Ze=!0,r&&(e.precision=r),Error(Dn+"LN10 precision limit exceeded");return Ye(new e(e.LN10),t)}function Jr(e){for(var t="";e--;)t+="0";return t}function Ou(e,t){var r,a,u,o,s,f,m,h,v,p=1,g=10,b=e,S=b.d,w=b.constructor,O=w.precision;if(b.s<1)throw Error(Dn+(b.s?"NaN":"-Infinity"));if(b.eq(sn))return new w(0);if(t==null?(Ze=!1,h=O):h=t,b.eq(10))return t==null&&(Ze=!0),hv(w,h);if(h+=g,w.precision=h,r=Xn(S),a=r.charAt(0),o=at(b),Math.abs(o)<15e14){for(;a<7&&a!=1||a==1&&r.charAt(1)>3;)b=b.times(e),r=Xn(b.d),a=r.charAt(0),p++;o=at(b),a>1?(b=new w("0."+r),o++):b=new w(a+"."+r.slice(1))}else return m=hv(w,h+2,O).times(o+""),b=Ou(new w(a+"."+r.slice(1)),h-g).plus(m),w.precision=O,t==null?(Ze=!0,Ye(b,O)):b;for(f=s=b=pr(b.minus(sn),b.plus(sn),h),v=Ye(b.times(b),h),u=3;;){if(s=Ye(s.times(v),h),m=f.plus(pr(s,new w(u),h)),Xn(m.d).slice(0,h)===Xn(f.d).slice(0,h))return f=f.times(2),o!==0&&(f=f.plus(hv(w,h+2,O).times(o+""))),f=pr(f,new w(p),h),w.precision=O,t==null?(Ze=!0,Ye(f,O)):f;f=m,u+=2}}function zS(e,t){var r,a,u;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(a=t.search(/e/i))>0?(r<0&&(r=a),r+=+t.slice(a+1),t=t.substring(0,a)):r<0&&(r=t.length),a=0;t.charCodeAt(a)===48;)++a;for(u=t.length;t.charCodeAt(u-1)===48;)--u;if(t=t.slice(a,u),t){if(u-=a,r=r-a-1,e.e=Fi(r/Ie),e.d=[],a=(r+1)%Ie,r<0&&(a+=Ie),a<u){for(a&&e.d.push(+t.slice(0,a)),u-=Ie;a<u;)e.d.push(+t.slice(a,a+=Ie));t=t.slice(a),a=Ie-t.length}else a-=u;for(;a--;)t+="0";if(e.d.push(+t),Ze&&(e.e>Ic||e.e<-Ic))throw Error(py+r)}else e.s=0,e.e=0,e.d=[0];return e}function Ye(e,t,r){var a,u,o,s,f,m,h,v,p=e.d;for(s=1,o=p[0];o>=10;o/=10)s++;if(a=t-s,a<0)a+=Ie,u=t,h=p[v=0];else{if(v=Math.ceil((a+1)/Ie),o=p.length,v>=o)return e;for(h=o=p[v],s=1;o>=10;o/=10)s++;a%=Ie,u=a-Ie+s}if(r!==void 0&&(o=Ma(10,s-u-1),f=h/o%10|0,m=t<0||p[v+1]!==void 0||h%o,m=r<4?(f||m)&&(r==0||r==(e.s<0?3:2)):f>5||f==5&&(r==4||m||r==6&&(a>0?u>0?h/Ma(10,s-u):0:p[v-1])%10&1||r==(e.s<0?8:7))),t<1||!p[0])return m?(o=at(e),p.length=1,t=t-o-1,p[0]=Ma(10,(Ie-t%Ie)%Ie),e.e=Fi(-t/Ie)||0):(p.length=1,p[0]=e.e=e.s=0),e;if(a==0?(p.length=v,o=1,v--):(p.length=v+1,o=Ma(10,Ie-a),p[v]=u>0?(h/Ma(10,s-u)%Ma(10,u)|0)*o:0),m)for(;;)if(v==0){(p[0]+=o)==bt&&(p[0]=1,++e.e);break}else{if(p[v]+=o,p[v]!=bt)break;p[v--]=0,o=1}for(a=p.length;p[--a]===0;)p.pop();if(Ze&&(e.e>Ic||e.e<-Ic))throw Error(py+at(e));return e}function fE(e,t){var r,a,u,o,s,f,m,h,v,p,g=e.constructor,b=g.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new g(e),Ze?Ye(t,b):t;if(m=e.d,p=t.d,a=t.e,h=e.e,m=m.slice(),s=h-a,s){for(v=s<0,v?(r=m,s=-s,f=p.length):(r=p,a=h,f=m.length),u=Math.max(Math.ceil(b/Ie),f)+2,s>u&&(s=u,r.length=1),r.reverse(),u=s;u--;)r.push(0);r.reverse()}else{for(u=m.length,f=p.length,v=u<f,v&&(f=u),u=0;u<f;u++)if(m[u]!=p[u]){v=m[u]<p[u];break}s=0}for(v&&(r=m,m=p,p=r,t.s=-t.s),f=m.length,u=p.length-f;u>0;--u)m[f++]=0;for(u=p.length;u>s;){if(m[--u]<p[u]){for(o=u;o&&m[--o]===0;)m[o]=bt-1;--m[o],m[u]+=bt}m[u]-=p[u]}for(;m[--f]===0;)m.pop();for(;m[0]===0;m.shift())--a;return m[0]?(t.d=m,t.e=a,Ze?Ye(t,b):t):new g(0)}function Ya(e,t,r){var a,u=at(e),o=Xn(e.d),s=o.length;return t?(r&&(a=r-s)>0?o=o.charAt(0)+"."+o.slice(1)+Jr(a):s>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(u<0?"e":"e+")+u):u<0?(o="0."+Jr(-u-1)+o,r&&(a=r-s)>0&&(o+=Jr(a))):u>=s?(o+=Jr(u+1-s),r&&(a=r-u-1)>0&&(o=o+"."+Jr(a))):((a=u+1)<s&&(o=o.slice(0,a)+"."+o.slice(a)),r&&(a=r-s)>0&&(u+1===s&&(o+="."),o+=Jr(a))),e.s<0?"-"+o:o}function BS(e,t){if(e.length>t)return e.length=t,!0}function dE(e){var t,r,a;function u(o){var s=this;if(!(s instanceof u))return new u(o);if(s.constructor=u,o instanceof u){s.s=o.s,s.e=o.e,s.d=(o=o.d)?o.slice():o;return}if(typeof o=="number"){if(o*0!==0)throw Error(La+o);if(o>0)s.s=1;else if(o<0)o=-o,s.s=-1;else{s.s=0,s.e=0,s.d=[0];return}if(o===~~o&&o<1e7){s.e=0,s.d=[o];return}return zS(s,o.toString())}else if(typeof o!="string")throw Error(La+o);if(o.charCodeAt(0)===45?(o=o.slice(1),s.s=-1):s.s=1,Xk.test(o))zS(s,o);else throw Error(La+o)}if(u.prototype=le,u.ROUND_UP=0,u.ROUND_DOWN=1,u.ROUND_CEIL=2,u.ROUND_FLOOR=3,u.ROUND_HALF_UP=4,u.ROUND_HALF_DOWN=5,u.ROUND_HALF_EVEN=6,u.ROUND_HALF_CEIL=7,u.ROUND_HALF_FLOOR=8,u.clone=dE,u.config=u.set=Vk,e===void 0&&(e={}),e)for(a=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<a.length;)e.hasOwnProperty(r=a[t++])||(e[r]=this[r]);return u.config(e),u}function Vk(e){if(!e||typeof e!="object")throw Error(Dn+"Object expected");var t,r,a,u=["precision",1,Wi,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<u.length;t+=3)if((a=e[r=u[t]])!==void 0)if(Fi(a)===a&&a>=u[t+1]&&a<=u[t+2])this[r]=a;else throw Error(La+r+": "+a);if((a=e[r="LN10"])!==void 0)if(a==Math.LN10)this[r]=new this(a);else throw Error(La+r+": "+a);return this}var gy=dE(Ik);sn=new gy(1);const ke=gy;var Zk=e=>e,hE={},vE=e=>e===hE,LS=e=>function t(){return arguments.length===0||arguments.length===1&&vE(arguments.length<=0?void 0:arguments[0])?t:e(...arguments)},mE=(e,t)=>e===1?t:LS(function(){for(var r=arguments.length,a=new Array(r),u=0;u<r;u++)a[u]=arguments[u];var o=a.filter(s=>s!==hE).length;return o>=e?t(...a):mE(e-o,LS(function(){for(var s=arguments.length,f=new Array(s),m=0;m<s;m++)f[m]=arguments[m];var h=a.map(v=>vE(v)?f.shift():v);return t(...h,...f)}))}),Ss=e=>mE(e.length,e),om=(e,t)=>{for(var r=[],a=e;a<t;++a)r[a-e]=a;return r},Qk=Ss((e,t)=>Array.isArray(t)?t.map(e):Object.keys(t).map(r=>t[r]).map(e)),Wk=function(){for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];if(!r.length)return Zk;var u=r.reverse(),o=u[0],s=u.slice(1);return function(){return s.reduce((f,m)=>m(f),o(...arguments))}},cm=e=>Array.isArray(e)?e.reverse():e.split("").reverse().join(""),yE=e=>{var t=null,r=null;return function(){for(var a=arguments.length,u=new Array(a),o=0;o<a;o++)u[o]=arguments[o];return t&&u.every((s,f)=>{var m;return s===((m=t)===null||m===void 0?void 0:m[f])})||(t=u,r=e(...u)),r}};function pE(e){var t;return e===0?t=1:t=Math.floor(new ke(e).abs().log(10).toNumber())+1,t}function gE(e,t,r){for(var a=new ke(e),u=0,o=[];a.lt(t)&&u<1e5;)o.push(a.toNumber()),a=a.add(r),u++;return o}Ss((e,t,r)=>{var a=+e,u=+t;return a+r*(u-a)});Ss((e,t,r)=>{var a=t-+e;return a=a||1/0,(r-e)/a});Ss((e,t,r)=>{var a=t-+e;return a=a||1/0,Math.max(0,Math.min(1,(r-e)/a))});var bE=e=>{var[t,r]=e,[a,u]=[t,r];return t>r&&([a,u]=[r,t]),[a,u]},xE=(e,t,r)=>{if(e.lte(0))return new ke(0);var a=pE(e.toNumber()),u=new ke(10).pow(a),o=e.div(u),s=a!==1?.05:.1,f=new ke(Math.ceil(o.div(s).toNumber())).add(r).mul(s),m=f.mul(u);return t?new ke(m.toNumber()):new ke(Math.ceil(m.toNumber()))},Fk=(e,t,r)=>{var a=new ke(1),u=new ke(e);if(!u.isint()&&r){var o=Math.abs(e);o<1?(a=new ke(10).pow(pE(e)-1),u=new ke(Math.floor(u.div(a).toNumber())).mul(a)):o>1&&(u=new ke(Math.floor(e)))}else e===0?u=new ke(Math.floor((t-1)/2)):r||(u=new ke(Math.floor(e)));var s=Math.floor((t-1)/2),f=Wk(Qk(m=>u.add(new ke(m-s).mul(a)).toNumber()),om);return f(0,t)},SE=function(t,r,a,u){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((r-t)/(a-1)))return{step:new ke(0),tickMin:new ke(0),tickMax:new ke(0)};var s=xE(new ke(r).sub(t).div(a-1),u,o),f;t<=0&&r>=0?f=new ke(0):(f=new ke(t).add(r).div(2),f=f.sub(new ke(f).mod(s)));var m=Math.ceil(f.sub(t).div(s).toNumber()),h=Math.ceil(new ke(r).sub(f).div(s).toNumber()),v=m+h+1;return v>a?SE(t,r,a,u,o+1):(v<a&&(h=r>0?h+(a-v):h,m=r>0?m:m+(a-v)),{step:s,tickMin:f.sub(new ke(m).mul(s)),tickMax:f.add(new ke(h).mul(s))})};function Jk(e){var[t,r]=e,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(a,2),[s,f]=bE([t,r]);if(s===-1/0||f===1/0){var m=f===1/0?[s,...om(0,a-1).map(()=>1/0)]:[...om(0,a-1).map(()=>-1/0),f];return t>r?cm(m):m}if(s===f)return Fk(s,a,u);var{step:h,tickMin:v,tickMax:p}=SE(s,f,o,u,0),g=gE(v,p.add(new ke(.1).mul(h)),h);return t>r?cm(g):g}function e4(e,t){var[r,a]=e,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,[o,s]=bE([r,a]);if(o===-1/0||s===1/0)return[r,a];if(o===s)return[o];var f=Math.max(t,2),m=xE(new ke(s).sub(o).div(f-1),u,0),h=[...gE(new ke(o),new ke(s),m),s];return u===!1&&(h=h.map(v=>Math.round(v))),r>a?cm(h):h}var t4=yE(Jk),n4=yE(e4),wE=e=>e.rootProps.maxBarSize,r4=e=>e.rootProps.barGap,OE=e=>e.rootProps.barCategoryGap,a4=e=>e.rootProps.barSize,ws=e=>e.rootProps.stackOffset,by=e=>e.options.chartName,xy=e=>e.rootProps.syncId,AE=e=>e.rootProps.syncMethod,Sy=e=>e.options.eventEmitter,dr={allowDuplicatedCategory:!0,angleAxisId:0,reversed:!1,scale:"auto",tick:!0,type:"category"},on={allowDataOverflow:!1,allowDuplicatedCategory:!0,radiusAxisId:0,scale:"auto",tick:!0,tickCount:5,type:"number"},Os=(e,t)=>{if(!(!e||!t))return e!=null&&e.reversed?[t[1],t[0]]:t},i4={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!1,dataKey:void 0,domain:void 0,id:dr.angleAxisId,includeHidden:!1,name:void 0,reversed:dr.reversed,scale:dr.scale,tick:dr.tick,tickCount:void 0,ticks:void 0,type:dr.type,unit:void 0},l4={allowDataOverflow:on.allowDataOverflow,allowDecimals:!1,allowDuplicatedCategory:on.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:on.radiusAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:on.scale,tick:on.tick,tickCount:on.tickCount,ticks:void 0,type:on.type,unit:void 0},u4={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:dr.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:dr.angleAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:dr.scale,tick:dr.tick,tickCount:void 0,ticks:void 0,type:"number",unit:void 0},o4={allowDataOverflow:on.allowDataOverflow,allowDecimals:!1,allowDuplicatedCategory:on.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:on.radiusAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:on.scale,tick:on.tick,tickCount:on.tickCount,ticks:void 0,type:"category",unit:void 0},wy=(e,t)=>e.polarAxis.angleAxis[t]!=null?e.polarAxis.angleAxis[t]:e.layout.layoutType==="radial"?u4:i4,Oy=(e,t)=>e.polarAxis.radiusAxis[t]!=null?e.polarAxis.radiusAxis[t]:e.layout.layoutType==="radial"?o4:l4,As=e=>e.polarOptions,Ay=Y([wr,Or,wt],dN),EE=Y([As,Ay],(e,t)=>{if(e!=null)return Un(e.innerRadius,t,0)}),TE=Y([As,Ay],(e,t)=>{if(e!=null)return Un(e.outerRadius,t,t*.8)}),c4=e=>{if(e==null)return[0,0];var{startAngle:t,endAngle:r}=e;return[t,r]},_E=Y([As],c4);Y([wy,_E],Os);var jE=Y([Ay,EE,TE],(e,t,r)=>{if(!(e==null||t==null||r==null))return[t,r]});Y([Oy,jE],Os);var ME=Y([ze,As,EE,TE,wr,Or],(e,t,r,a,u,o)=>{if(!(e!=="centric"&&e!=="radial"||t==null||r==null||a==null)){var{cx:s,cy:f,startAngle:m,endAngle:h}=t;return{cx:Un(s,u,u/2),cy:Un(f,o,o/2),innerRadius:r,outerRadius:a,startAngle:m,endAngle:h,clockWise:!1}}}),it=(e,t)=>t,Es=(e,t,r)=>r;function Ey(e){return e?.id}var ft=e=>{var t=ze(e);return t==="horizontal"?"xAxis":t==="vertical"?"yAxis":t==="centric"?"angleAxis":"radiusAxis"},Ji=e=>e.tooltip.settings.axisId,dt=e=>{var t=ft(e),r=Ji(e);return Ru(e,t,r)};function CE(e,t,r){var{chartData:a=[]}=t,u=r?.dataKey,o=new Map;return e.forEach(s=>{var f,m=(f=s.data)!==null&&f!==void 0?f:a;if(!(m==null||m.length===0)){var h=Ey(s);m.forEach((v,p)=>{var g=u==null?p:String(qt(v,u,null)),b=qt(v,s.dataKey,0),S;o.has(g)?S=o.get(g):S={},Object.assign(S,{[h]:b}),o.set(g,S)})}}),Array.from(o.values())}function Ts(e){return e.stackId!=null&&e.dataKey!=null}function US(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),r.push.apply(r,a)}return r}function Xc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?US(Object(r),!0).forEach(function(a){s4(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):US(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function s4(e,t,r){return(t=f4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f4(e){var t=d4(e,"string");return typeof t=="symbol"?t:t+""}function d4(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var sm=[0,"auto"],ln={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:void 0,height:30,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"bottom",padding:{left:0,right:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"category",unit:void 0},Er=(e,t)=>{var r=e.cartesianAxis.xAxis[t];return r??ln},un={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:sm,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"left",padding:{top:0,bottom:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"number",unit:void 0,width:ds},ua=(e,t)=>{var r=e.cartesianAxis.yAxis[t];return r??un},h4={domain:[0,"auto"],includeHidden:!1,reversed:!1,allowDataOverflow:!1,allowDuplicatedCategory:!1,dataKey:void 0,id:0,name:"",range:[64,64],scale:"auto",type:"number",unit:""},Ty=(e,t)=>{var r=e.cartesianAxis.zAxis[t];return r??h4},Zt=(e,t,r)=>{switch(t){case"xAxis":return Er(e,r);case"yAxis":return ua(e,r);case"zAxis":return Ty(e,r);case"angleAxis":return wy(e,r);case"radiusAxis":return Oy(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},v4=(e,t,r)=>{switch(t){case"xAxis":return Er(e,r);case"yAxis":return ua(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},Ru=(e,t,r)=>{switch(t){case"xAxis":return Er(e,r);case"yAxis":return ua(e,r);case"angleAxis":return wy(e,r);case"radiusAxis":return Oy(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},DE=e=>e.graphicalItems.cartesianItems.some(t=>t.type==="bar")||e.graphicalItems.polarItems.some(t=>t.type==="radialBar");function NE(e,t){return r=>{switch(e){case"xAxis":return"xAxisId"in r&&r.xAxisId===t;case"yAxis":return"yAxisId"in r&&r.yAxisId===t;case"zAxis":return"zAxisId"in r&&r.zAxisId===t;case"angleAxis":return"angleAxisId"in r&&r.angleAxisId===t;case"radiusAxis":return"radiusAxisId"in r&&r.radiusAxisId===t;default:return!1}}}var _y=e=>e.graphicalItems.cartesianItems,m4=Y([it,Es],NE),PE=(e,t,r)=>e.filter(r).filter(a=>t?.includeHidden===!0?!0:!a.hide),ku=Y([_y,Zt,m4],PE),RE=Y([ku],e=>e.filter(t=>t.type==="area"||t.type==="bar").filter(Ts)),kE=e=>e.filter(t=>!("stackId"in t)||t.stackId===void 0),zE=Y([ku],kE),BE=e=>e.map(t=>t.data).filter(Boolean).flat(1),y4=Y([ku],BE),LE=(e,t)=>{var{chartData:r=[],dataStartIndex:a,dataEndIndex:u}=t;return e.length>0?e:r.slice(a,u+1)},jy=Y([y4,yy],LE),UE=(e,t,r)=>t?.dataKey!=null?e.map(a=>({value:qt(a,t.dataKey)})):r.length>0?r.map(a=>a.dataKey).flatMap(a=>e.map(u=>({value:qt(u,a)}))):e.map(a=>({value:a})),_s=Y([jy,Zt,ku],UE);function qE(e,t){switch(e){case"xAxis":return t.direction==="x";case"yAxis":return t.direction==="y";default:return!1}}function Xa(e){return e.filter(t=>Zn(t)||t instanceof Date).map(Number).filter(t=>dn(t)===!1)}function p4(e,t,r){return!r||typeof t!="number"||dn(t)?[]:r.length?Xa(r.flatMap(a=>{var u=qt(e,a.dataKey),o,s;if(Array.isArray(u)?[o,s]=u:o=s=u,!(!vn(o)||!vn(s)))return[t-o,t+s]})):[]}var g4=Y([RE,yy,dt],CE),$E=(e,t,r)=>{var a={},u=t.reduce((o,s)=>(s.stackId==null||(o[s.stackId]==null&&(o[s.stackId]=[]),o[s.stackId].push(s)),o),a);return Object.fromEntries(Object.entries(u).map(o=>{var[s,f]=o,m=f.map(Ey);return[s,{stackedData:jN(e,m,r),graphicalItems:f}]}))},fm=Y([g4,RE,ws],$E),HE=(e,t,r)=>{var{dataStartIndex:a,dataEndIndex:u}=t;if(r!=="zAxis"){var o=PN(e,a,u);if(!(o!=null&&o[0]===0&&o[1]===0))return o}},b4=Y([fm,la,it],HE),YE=(e,t,r,a,u)=>r.length>0?e.flatMap(o=>r.flatMap(s=>{var f,m,h=(f=a[s.id])===null||f===void 0?void 0:f.filter(p=>qE(u,p)),v=qt(o,(m=t.dataKey)!==null&&m!==void 0?m:s.dataKey);return{value:v,errorDomain:p4(o,v,h)}})).filter(Boolean):t?.dataKey!=null?e.map(o=>({value:qt(o,t.dataKey),errorDomain:[]})):e.map(o=>({value:o,errorDomain:[]})),js=e=>e.errorBars,GE=(e,t,r)=>e.flatMap(a=>t[a.id]).filter(Boolean).filter(a=>qE(r,a));Y([zE,js,it],GE);var x4=Y([jy,Zt,zE,js,it],YE);function S4(e){var{value:t}=e;if(Zn(t)||t instanceof Date)return t}var qS=e=>{var t=e.flatMap(a=>[a.value,a.errorDomain]).flat(1),r=Xa(t);if(r.length!==0)return[Math.min(...r),Math.max(...r)]},w4=(e,t,r)=>{var a=e.map(S4).filter(u=>u!=null);return r&&(t.dataKey==null||t.allowDuplicatedCategory&&aO(a))?_A(0,e.length):t.allowDuplicatedCategory?a:Array.from(new Set(a))},My=e=>{var t;if(e==null||!("domain"in e))return sm;if(e.domain!=null)return e.domain;if(e.ticks!=null){if(e.type==="number"){var r=Xa(e.ticks);return[Math.min(...r),Math.max(...r)]}if(e.type==="category")return e.ticks.map(String)}return(t=e?.domain)!==null&&t!==void 0?t:sm},Vc=function(){for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];var u=r.filter(Boolean);if(u.length!==0){var o=u.flat(),s=Math.min(...o),f=Math.max(...o);return[s,f]}},KE=e=>e.referenceElements.dots,el=(e,t,r)=>e.filter(a=>a.ifOverflow==="extendDomain").filter(a=>t==="xAxis"?a.xAxisId===r:a.yAxisId===r),O4=Y([KE,it,Es],el),IE=e=>e.referenceElements.areas,A4=Y([IE,it,Es],el),XE=e=>e.referenceElements.lines,E4=Y([XE,it,Es],el),VE=(e,t)=>{var r=Xa(e.map(a=>t==="xAxis"?a.x:a.y));if(r.length!==0)return[Math.min(...r),Math.max(...r)]},T4=Y(O4,it,VE),ZE=(e,t)=>{var r=Xa(e.flatMap(a=>[t==="xAxis"?a.x1:a.y1,t==="xAxis"?a.x2:a.y2]));if(r.length!==0)return[Math.min(...r),Math.max(...r)]},_4=Y([A4,it],ZE),QE=(e,t)=>{var r=Xa(e.map(a=>t==="xAxis"?a.x:a.y));if(r.length!==0)return[Math.min(...r),Math.max(...r)]},j4=Y(E4,it,QE),M4=Y(T4,j4,_4,(e,t,r)=>Vc(e,r,t)),C4=Y([Zt],My),WE=(e,t,r,a,u,o,s)=>{var f=Gk(t,e.allowDataOverflow);if(f!=null)return f;var m=o==="vertical"&&s==="xAxis"||o==="horizontal"&&s==="yAxis",h=m?Vc(r,u,qS(a)):Vc(u,qS(a));return Kk(t,h,e.allowDataOverflow)},D4=Y([Zt,C4,b4,x4,M4,ze,it],WE),N4=[0,1],FE=(e,t,r,a,u,o,s)=>{if(!((e==null||r==null||r.length===0)&&s===void 0)){var{dataKey:f,type:m}=e,h=Ga(t,o);return h&&f==null?_A(0,r.length):m==="category"?w4(a,e,h):u==="expand"?N4:s}},Cy=Y([Zt,ze,jy,_s,ws,it,D4],FE),JE=(e,t,r,a,u)=>{if(e!=null){var{scale:o,type:s}=e;if(o==="auto")return t==="radial"&&u==="radiusAxis"?"band":t==="radial"&&u==="angleAxis"?"linear":s==="category"&&a&&(a.indexOf("LineChart")>=0||a.indexOf("AreaChart")>=0||a.indexOf("ComposedChart")>=0&&!r)?"point":s==="category"?"band":"linear";if(typeof o=="string"){var f="scale".concat(Eu(o));return f in du?f:"point"}}},zu=Y([Zt,ze,DE,by,it],JE);function P4(e){if(e!=null){if(e in du)return du[e]();var t="scale".concat(Eu(e));if(t in du)return du[t]()}}function Dy(e,t,r,a){if(!(r==null||a==null)){if(typeof e.scale=="function")return e.scale.copy().domain(r).range(a);var u=P4(t);if(u!=null){var o=u.domain(r).range(a);return ON(o),o}}}var e2=(e,t,r)=>{var a=My(t);if(!(r!=="auto"&&r!=="linear")){if(t!=null&&t.tickCount&&Array.isArray(a)&&(a[0]==="auto"||a[1]==="auto")&&Gi(e))return t4(e,t.tickCount,t.allowDecimals);if(t!=null&&t.tickCount&&t.type==="number"&&Gi(e))return n4(e,t.tickCount,t.allowDecimals)}},Ny=Y([Cy,Ru,zu],e2),t2=(e,t,r,a)=>{if(a!=="angleAxis"&&e?.type==="number"&&Gi(t)&&Array.isArray(r)&&r.length>0){var u=t[0],o=r[0],s=t[1],f=r[r.length-1];return[Math.min(u,o),Math.max(s,f)]}return t},R4=Y([Zt,Cy,Ny,it],t2),k4=Y(_s,Zt,(e,t)=>{if(!(!t||t.type!=="number")){var r=1/0,a=Array.from(Xa(e.map(f=>f.value))).sort((f,m)=>f-m);if(a.length<2)return 1/0;var u=a[a.length-1]-a[0];if(u===0)return 1/0;for(var o=0;o<a.length-1;o++){var s=a[o+1]-a[o];r=Math.min(r,s)}return r/u}}),n2=Y(k4,ze,OE,wt,(e,t,r,a)=>a,(e,t,r,a,u)=>{if(!vn(e))return 0;var o=t==="vertical"?a.height:a.width;if(u==="gap")return e*o/2;if(u==="no-gap"){var s=Un(r,e*o),f=e*o/2;return f-s-(f-s)/o*s}return 0}),z4=(e,t)=>{var r=Er(e,t);return r==null||typeof r.padding!="string"?0:n2(e,"xAxis",t,r.padding)},B4=(e,t)=>{var r=ua(e,t);return r==null||typeof r.padding!="string"?0:n2(e,"yAxis",t,r.padding)},L4=Y(Er,z4,(e,t)=>{var r,a;if(e==null)return{left:0,right:0};var{padding:u}=e;return typeof u=="string"?{left:t,right:t}:{left:((r=u.left)!==null&&r!==void 0?r:0)+t,right:((a=u.right)!==null&&a!==void 0?a:0)+t}}),U4=Y(ua,B4,(e,t)=>{var r,a;if(e==null)return{top:0,bottom:0};var{padding:u}=e;return typeof u=="string"?{top:t,bottom:t}:{top:((r=u.top)!==null&&r!==void 0?r:0)+t,bottom:((a=u.bottom)!==null&&a!==void 0?a:0)+t}}),q4=Y([wt,L4,vs,hs,(e,t,r)=>r],(e,t,r,a,u)=>{var{padding:o}=a;return u?[o.left,r.width-o.right]:[e.left+t.left,e.left+e.width-t.right]}),$4=Y([wt,ze,U4,vs,hs,(e,t,r)=>r],(e,t,r,a,u,o)=>{var{padding:s}=u;return o?[a.height-s.bottom,s.top]:t==="horizontal"?[e.top+e.height-r.bottom,e.top+r.top]:[e.top+r.top,e.top+e.height-r.bottom]}),Bu=(e,t,r,a)=>{var u;switch(t){case"xAxis":return q4(e,r,a);case"yAxis":return $4(e,r,a);case"zAxis":return(u=Ty(e,r))===null||u===void 0?void 0:u.range;case"angleAxis":return _E(e);case"radiusAxis":return jE(e,r);default:return}},r2=Y([Zt,Bu],Os),tl=Y([Zt,zu,R4,r2],Dy);Y([ku,js,it],GE);function a2(e,t){return e.id<t.id?-1:e.id>t.id?1:0}var Ms=(e,t)=>t,Cs=(e,t,r)=>r,H4=Y(Hm,Ms,Cs,(e,t,r)=>e.filter(a=>a.orientation===t).filter(a=>a.mirror===r).sort(a2)),Y4=Y(Ym,Ms,Cs,(e,t,r)=>e.filter(a=>a.orientation===t).filter(a=>a.mirror===r).sort(a2)),i2=(e,t)=>({width:e.width,height:t.height}),G4=(e,t)=>{var r=typeof t.width=="number"?t.width:ds;return{width:r,height:e.height}},l2=Y(wt,Er,i2),K4=(e,t,r)=>{switch(t){case"top":return e.top;case"bottom":return r-e.bottom;default:return 0}},I4=(e,t,r)=>{switch(t){case"left":return e.left;case"right":return r-e.right;default:return 0}},X4=Y(Or,wt,H4,Ms,Cs,(e,t,r,a,u)=>{var o={},s;return r.forEach(f=>{var m=i2(t,f);s==null&&(s=K4(t,a,e));var h=a==="top"&&!u||a==="bottom"&&u;o[f.id]=s-Number(h)*m.height,s+=(h?-1:1)*m.height}),o}),V4=Y(wr,wt,Y4,Ms,Cs,(e,t,r,a,u)=>{var o={},s;return r.forEach(f=>{var m=G4(t,f);s==null&&(s=I4(t,a,e));var h=a==="left"&&!u||a==="right"&&u;o[f.id]=s-Number(h)*m.width,s+=(h?-1:1)*m.width}),o}),Z4=(e,t)=>{var r=wt(e),a=Er(e,t);if(a!=null){var u=X4(e,a.orientation,a.mirror),o=u[t];return o==null?{x:r.left,y:0}:{x:r.left,y:o}}},Q4=(e,t)=>{var r=wt(e),a=ua(e,t);if(a!=null){var u=V4(e,a.orientation,a.mirror),o=u[t];return o==null?{x:0,y:r.top}:{x:o,y:r.top}}},u2=Y(wt,ua,(e,t)=>{var r=typeof t.width=="number"?t.width:ds;return{width:r,height:e.height}}),$S=(e,t,r)=>{switch(t){case"xAxis":return l2(e,r).width;case"yAxis":return u2(e,r).height;default:return}},o2=(e,t,r,a)=>{if(r!=null){var{allowDuplicatedCategory:u,type:o,dataKey:s}=r,f=Ga(e,a),m=t.map(h=>h.value);if(s&&f&&o==="category"&&u&&aO(m))return m}},Py=Y([ze,_s,Zt,it],o2),c2=(e,t,r,a)=>{if(!(r==null||r.dataKey==null)){var{type:u,scale:o}=r,s=Ga(e,a);if(s&&(u==="number"||o!=="auto"))return t.map(f=>f.value)}},Ry=Y([ze,_s,Ru,it],c2),HS=Y([ze,v4,zu,tl,Py,Ry,Bu,Ny,it],(e,t,r,a,u,o,s,f,m)=>{if(t==null)return null;var h=Ga(e,m);return{angle:t.angle,interval:t.interval,minTickGap:t.minTickGap,orientation:t.orientation,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,axisType:m,categoricalDomain:o,duplicateDomain:u,isCategorical:h,niceTicks:f,range:s,realScaleType:r,scale:a}}),W4=(e,t,r,a,u,o,s,f,m)=>{if(!(t==null||a==null)){var h=Ga(e,m),{type:v,ticks:p,tickCount:g}=t,b=r==="scaleBand"&&typeof a.bandwidth=="function"?a.bandwidth()/2:2,S=v==="category"&&a.bandwidth?a.bandwidth()/b:0;S=m==="angleAxis"&&o!=null&&o.length>=2?Xt(o[0]-o[1])*2*S:S;var w=p||u;if(w){var O=w.map((_,M)=>{var j=s?s.indexOf(_):_;return{index:M,coordinate:a(j)+S,value:_,offset:S}});return O.filter(_=>!dn(_.coordinate))}return h&&f?f.map((_,M)=>({coordinate:a(_)+S,value:_,index:M,offset:S})):a.ticks?a.ticks(g).map(_=>({coordinate:a(_)+S,value:_,offset:S})):a.domain().map((_,M)=>({coordinate:a(_)+S,value:s?s[_]:_,index:M,offset:S}))}},s2=Y([ze,Ru,zu,tl,Ny,Bu,Py,Ry,it],W4),F4=(e,t,r,a,u,o,s)=>{if(!(t==null||r==null||a==null||a[0]===a[1])){var f=Ga(e,s),{tickCount:m}=t,h=0;return h=s==="angleAxis"&&a?.length>=2?Xt(a[0]-a[1])*2*h:h,f&&o?o.map((v,p)=>({coordinate:r(v)+h,value:v,index:p,offset:h})):r.ticks?r.ticks(m).map(v=>({coordinate:r(v)+h,value:v,offset:h})):r.domain().map((v,p)=>({coordinate:r(v)+h,value:u?u[v]:v,index:p,offset:h}))}},Ki=Y([ze,Ru,tl,Bu,Py,Ry,it],F4),Ii=Y(Zt,tl,(e,t)=>{if(!(e==null||t==null))return Xc(Xc({},e),{},{scale:t})}),J4=Y([Zt,zu,Cy,r2],Dy);Y((e,t,r)=>Ty(e,r),J4,(e,t)=>{if(!(e==null||t==null))return Xc(Xc({},e),{},{scale:t})});var e6=Y([ze,Hm,Ym],(e,t,r)=>{switch(e){case"horizontal":return t.some(a=>a.reversed)?"right-to-left":"left-to-right";case"vertical":return r.some(a=>a.reversed)?"bottom-to-top":"top-to-bottom";case"centric":case"radial":return"left-to-right";default:return}}),f2=e=>e.options.defaultTooltipEventType,d2=e=>e.options.validateTooltipEventTypes;function h2(e,t,r){if(e==null)return t;var a=e?"axis":"item";return r==null?t:r.includes(a)?a:t}function ky(e,t){var r=f2(e),a=d2(e);return h2(t,r,a)}function t6(e){return de(t=>ky(t,e))}var v2=(e,t)=>{var r,a=Number(t);if(!(dn(a)||t==null))return a>=0?e==null||(r=e[a])===null||r===void 0?void 0:r.value:void 0},n6=e=>e.tooltip.settings,ea={active:!1,index:null,dataKey:void 0,coordinate:void 0},r6={itemInteraction:{click:ea,hover:ea},axisInteraction:{click:ea,hover:ea},keyboardInteraction:ea,syncInteraction:{active:!1,index:null,dataKey:void 0,label:void 0,coordinate:void 0},tooltipItemPayloads:[],settings:{shared:void 0,trigger:"hover",axisId:0,active:!1,defaultIndex:void 0}},m2=mn({name:"tooltip",initialState:r6,reducers:{addTooltipEntrySettings(e,t){e.tooltipItemPayloads.push(t.payload)},removeTooltipEntrySettings(e,t){var r=yr(e).tooltipItemPayloads.indexOf(t.payload);r>-1&&e.tooltipItemPayloads.splice(r,1)},setTooltipSettingsState(e,t){e.settings=t.payload},setActiveMouseOverItemIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.itemInteraction.hover.active=!0,e.itemInteraction.hover.index=t.payload.activeIndex,e.itemInteraction.hover.dataKey=t.payload.activeDataKey,e.itemInteraction.hover.coordinate=t.payload.activeCoordinate},mouseLeaveChart(e){e.itemInteraction.hover.active=!1,e.axisInteraction.hover.active=!1},mouseLeaveItem(e){e.itemInteraction.hover.active=!1},setActiveClickItemIndex(e,t){e.syncInteraction.active=!1,e.itemInteraction.click.active=!0,e.keyboardInteraction.active=!1,e.itemInteraction.click.index=t.payload.activeIndex,e.itemInteraction.click.dataKey=t.payload.activeDataKey,e.itemInteraction.click.coordinate=t.payload.activeCoordinate},setMouseOverAxisIndex(e,t){e.syncInteraction.active=!1,e.axisInteraction.hover.active=!0,e.keyboardInteraction.active=!1,e.axisInteraction.hover.index=t.payload.activeIndex,e.axisInteraction.hover.dataKey=t.payload.activeDataKey,e.axisInteraction.hover.coordinate=t.payload.activeCoordinate},setMouseClickAxisIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.axisInteraction.click.active=!0,e.axisInteraction.click.index=t.payload.activeIndex,e.axisInteraction.click.dataKey=t.payload.activeDataKey,e.axisInteraction.click.coordinate=t.payload.activeCoordinate},setSyncInteraction(e,t){e.syncInteraction=t.payload},setKeyboardInteraction(e,t){e.keyboardInteraction.active=t.payload.active,e.keyboardInteraction.index=t.payload.activeIndex,e.keyboardInteraction.coordinate=t.payload.activeCoordinate,e.keyboardInteraction.dataKey=t.payload.activeDataKey}}}),{addTooltipEntrySettings:a6,removeTooltipEntrySettings:i6,setTooltipSettingsState:l6,setActiveMouseOverItemIndex:y2,mouseLeaveItem:u6,mouseLeaveChart:p2,setActiveClickItemIndex:o6,setMouseOverAxisIndex:g2,setMouseClickAxisIndex:c6,setSyncInteraction:dm,setKeyboardInteraction:hm}=m2.actions,s6=m2.reducer;function YS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),r.push.apply(r,a)}return r}function mc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?YS(Object(r),!0).forEach(function(a){f6(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):YS(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function f6(e,t,r){return(t=d6(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function d6(e){var t=h6(e,"string");return typeof t=="symbol"?t:t+""}function h6(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function v6(e,t,r){return t==="axis"?r==="click"?e.axisInteraction.click:e.axisInteraction.hover:r==="click"?e.itemInteraction.click:e.itemInteraction.hover}function m6(e){return e.index!=null}var b2=(e,t,r,a)=>{if(t==null)return ea;var u=v6(e,t,r);if(u==null)return ea;if(u.active)return u;if(e.keyboardInteraction.active)return e.keyboardInteraction;if(e.syncInteraction.active&&e.syncInteraction.index!=null)return e.syncInteraction;var o=e.settings.active===!0;if(m6(u)){if(o)return mc(mc({},u),{},{active:!0})}else if(a!=null)return{active:!0,coordinate:void 0,dataKey:void 0,index:a};return mc(mc({},ea),{},{coordinate:u.coordinate})},zy=(e,t)=>{var r=e?.index;if(r==null)return null;var a=Number(r);if(!vn(a))return r;var u=0,o=1/0;return t.length>0&&(o=t.length-1),String(Math.max(u,Math.min(a,o)))},x2=(e,t,r,a,u,o,s,f)=>{if(!(o==null||f==null)){var m=s[0],h=m==null?void 0:f(m.positions,o);if(h!=null)return h;var v=u?.[Number(o)];if(v)switch(r){case"horizontal":return{x:v.coordinate,y:(a.top+t)/2};default:return{x:(a.left+e)/2,y:v.coordinate}}}},S2=(e,t,r,a)=>{if(t==="axis")return e.tooltipItemPayloads;if(e.tooltipItemPayloads.length===0)return[];var u;return r==="hover"?u=e.itemInteraction.hover.dataKey:u=e.itemInteraction.click.dataKey,u==null&&a!=null?[e.tooltipItemPayloads[0]]:e.tooltipItemPayloads.filter(o=>{var s;return((s=o.settings)===null||s===void 0?void 0:s.dataKey)===u})},Lu=e=>e.options.tooltipPayloadSearcher,nl=e=>e.tooltip;function GS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),r.push.apply(r,a)}return r}function KS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?GS(Object(r),!0).forEach(function(a){y6(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):GS(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function y6(e,t,r){return(t=p6(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p6(e){var t=g6(e,"string");return typeof t=="symbol"?t:t+""}function g6(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function b6(e,t){return e??t}var w2=(e,t,r,a,u,o,s)=>{if(!(t==null||o==null)){var{chartData:f,computedData:m,dataStartIndex:h,dataEndIndex:v}=r,p=[];return e.reduce((g,b)=>{var S,{dataDefinedOnItem:w,settings:O}=b,_=b6(w,f),M=Array.isArray(_)?lA(_,h,v):_,j=(S=O?.dataKey)!==null&&S!==void 0?S:a?.dataKey,k=O?.nameKey,D;if(a!=null&&a.dataKey&&Array.isArray(M)&&!Array.isArray(M[0])&&s==="axis"?D=vM(M,a.dataKey,u):D=o(M,t,m,k),Array.isArray(D))D.forEach(U=>{var K=KS(KS({},O),{},{name:U.name,unit:U.unit,color:void 0,fill:void 0});g.push(Tx({tooltipEntrySettings:K,dataKey:U.dataKey,payload:U.payload,value:qt(U.payload,U.dataKey),name:U.name}))});else{var R;g.push(Tx({tooltipEntrySettings:O,dataKey:j,payload:D,value:qt(D,j),name:(R=qt(D,k))!==null&&R!==void 0?R:O?.name}))}return g},p)}},By=Y([dt,ze,DE,by,ft],JE),x6=Y([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),S6=Y([ft,Ji],NE),Uu=Y([x6,dt,S6],PE),w6=Y([Uu],e=>e.filter(Ts)),O6=Y([Uu],BE),rl=Y([O6,la],LE),A6=Y([w6,la,dt],CE),Ly=Y([rl,dt,Uu],UE),E6=Y([dt],My),T6=Y([Uu],e=>e.filter(Ts)),_6=Y([A6,T6,ws],$E),j6=Y([_6,la,ft],HE),M6=Y([Uu],kE),C6=Y([rl,dt,M6,js,ft],YE),D6=Y([KE,ft,Ji],el),N6=Y([D6,ft],VE),P6=Y([IE,ft,Ji],el),R6=Y([P6,ft],ZE),k6=Y([XE,ft,Ji],el),z6=Y([k6,ft],QE),B6=Y([N6,z6,R6],Vc),L6=Y([dt,E6,j6,C6,B6,ze,ft],WE),O2=Y([dt,ze,rl,Ly,ws,ft,L6],FE),U6=Y([O2,dt,By],e2),q6=Y([dt,O2,U6,ft],t2),A2=e=>{var t=ft(e),r=Ji(e),a=!1;return Bu(e,t,r,a)},E2=Y([dt,A2],Os),T2=Y([dt,By,q6,E2],Dy),$6=Y([ze,Ly,dt,ft],o2),H6=Y([ze,Ly,dt,ft],c2),Y6=(e,t,r,a,u,o,s,f)=>{if(t){var{type:m}=t,h=Ga(e,f);if(a){var v=r==="scaleBand"&&a.bandwidth?a.bandwidth()/2:2,p=m==="category"&&a.bandwidth?a.bandwidth()/v:0;return p=f==="angleAxis"&&u!=null&&u?.length>=2?Xt(u[0]-u[1])*2*p:p,h&&s?s.map((g,b)=>({coordinate:a(g)+p,value:g,index:b,offset:p})):a.domain().map((g,b)=>({coordinate:a(g)+p,value:o?o[g]:g,index:b,offset:p}))}}},Tr=Y([ze,dt,By,T2,A2,$6,H6,ft],Y6),Uy=Y([f2,d2,n6],(e,t,r)=>h2(r.shared,e,t)),_2=e=>e.tooltip.settings.trigger,qy=e=>e.tooltip.settings.defaultIndex,Ds=Y([nl,Uy,_2,qy],b2),Xi=Y([Ds,rl],zy),j2=Y([Tr,Xi],v2),M2=Y([Ds],e=>{if(e)return e.dataKey}),C2=Y([nl,Uy,_2,qy],S2),G6=Y([wr,Or,ze,wt,Tr,qy,C2,Lu],x2),K6=Y([Ds,G6],(e,t)=>e!=null&&e.coordinate?e.coordinate:t),I6=Y([Ds],e=>e.active),X6=Y([C2,Xi,la,dt,j2,Lu,Uy],w2);Y([X6],e=>{if(e!=null){var t=e.map(r=>r.payload).filter(r=>r!=null);return Array.from(new Set(t))}});function IS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),r.push.apply(r,a)}return r}function XS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?IS(Object(r),!0).forEach(function(a){V6(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):IS(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function V6(e,t,r){return(t=Z6(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Z6(e){var t=Q6(e,"string");return typeof t=="symbol"?t:t+""}function Q6(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var W6=()=>de(dt),F6=()=>{var e=W6(),t=de(Tr),r=de(T2);return $m(XS(XS({},e),{},{scale:r}),t)},J6=()=>de(by),$y=(e,t)=>t,D2=(e,t,r)=>r,Hy=(e,t,r,a)=>a,ez=Y(Tr,e=>ls(e,t=>t.coordinate)),Yy=Y([nl,$y,D2,Hy],b2),N2=Y([Yy,rl],zy),tz=(e,t,r)=>{if(t!=null){var a=nl(e);return t==="axis"?r==="hover"?a.axisInteraction.hover.dataKey:a.axisInteraction.click.dataKey:r==="hover"?a.itemInteraction.hover.dataKey:a.itemInteraction.click.dataKey}},P2=Y([nl,$y,D2,Hy],S2),Zc=Y([wr,Or,ze,wt,Tr,Hy,P2,Lu],x2),nz=Y([Yy,Zc],(e,t)=>{var r;return(r=e.coordinate)!==null&&r!==void 0?r:t}),R2=Y(Tr,N2,v2),rz=Y([P2,N2,la,dt,R2,Lu,$y],w2),az=Y([Yy],e=>({isActive:e.active,activeIndex:e.index})),iz=(e,t,r,a,u,o,s,f)=>{if(!(!e||!t||!a||!u||!o)){var m=RN(e.chartX,e.chartY,t,r,f);if(m){var h=zN(m,t),v=SN(h,s,o,a,u),p=kN(t,o,v,m);return{activeIndex:String(v),activeCoordinate:p}}}};function vm(){return vm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)({}).hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},vm.apply(null,arguments)}function VS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),r.push.apply(r,a)}return r}function yc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?VS(Object(r),!0).forEach(function(a){lz(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):VS(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function lz(e,t,r){return(t=uz(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uz(e){var t=oz(e,"string");return typeof t=="symbol"?t:t+""}function oz(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function cz(e){var{coordinate:t,payload:r,index:a,offset:u,tooltipAxisBandSize:o,layout:s,cursor:f,tooltipEventType:m,chartName:h}=e,v=t,p=r,g=a;if(!f||!v||h!=="ScatterChart"&&m!=="axis")return null;var b,S;if(h==="ScatterChart")b=v,S=AP;else if(h==="BarChart")b=EP(s,v,u,o),S=OA;else if(s==="radial"){var{cx:w,cy:O,radius:_,startAngle:M,endAngle:j}=AA(v);b={cx:w,cy:O,startAngle:M,endAngle:j,innerRadius:_,outerRadius:_},S=TA}else b={points:cR(s,v,u)},S=mP;var k=typeof f=="object"&&"className"in f?f.className:void 0,D=yc(yc(yc(yc({stroke:"#ccc",pointerEvents:"none"},u),b),xt(f,!1)),{},{payload:p,payloadIndex:g,className:Xe("recharts-tooltip-cursor",k)});return E.isValidElement(f)?E.cloneElement(f,D):E.createElement(S,D)}function sz(e){var t=F6(),r=dA(),a=Km(),u=J6();return E.createElement(cz,vm({},e,{coordinate:e.coordinate,index:e.index,payload:e.payload,offset:r,layout:a,tooltipAxisBandSize:t,chartName:u}))}var k2=E.createContext(null),fz=()=>E.useContext(k2),vv={exports:{}},ZS;function dz(){return ZS||(ZS=1,(function(e){var t=Object.prototype.hasOwnProperty,r="~";function a(){}Object.create&&(a.prototype=Object.create(null),new a().__proto__||(r=!1));function u(m,h,v){this.fn=m,this.context=h,this.once=v||!1}function o(m,h,v,p,g){if(typeof v!="function")throw new TypeError("The listener must be a function");var b=new u(v,p||m,g),S=r?r+h:h;return m._events[S]?m._events[S].fn?m._events[S]=[m._events[S],b]:m._events[S].push(b):(m._events[S]=b,m._eventsCount++),m}function s(m,h){--m._eventsCount===0?m._events=new a:delete m._events[h]}function f(){this._events=new a,this._eventsCount=0}f.prototype.eventNames=function(){var h=[],v,p;if(this._eventsCount===0)return h;for(p in v=this._events)t.call(v,p)&&h.push(r?p.slice(1):p);return Object.getOwnPropertySymbols?h.concat(Object.getOwnPropertySymbols(v)):h},f.prototype.listeners=function(h){var v=r?r+h:h,p=this._events[v];if(!p)return[];if(p.fn)return[p.fn];for(var g=0,b=p.length,S=new Array(b);g<b;g++)S[g]=p[g].fn;return S},f.prototype.listenerCount=function(h){var v=r?r+h:h,p=this._events[v];return p?p.fn?1:p.length:0},f.prototype.emit=function(h,v,p,g,b,S){var w=r?r+h:h;if(!this._events[w])return!1;var O=this._events[w],_=arguments.length,M,j;if(O.fn){switch(O.once&&this.removeListener(h,O.fn,void 0,!0),_){case 1:return O.fn.call(O.context),!0;case 2:return O.fn.call(O.context,v),!0;case 3:return O.fn.call(O.context,v,p),!0;case 4:return O.fn.call(O.context,v,p,g),!0;case 5:return O.fn.call(O.context,v,p,g,b),!0;case 6:return O.fn.call(O.context,v,p,g,b,S),!0}for(j=1,M=new Array(_-1);j<_;j++)M[j-1]=arguments[j];O.fn.apply(O.context,M)}else{var k=O.length,D;for(j=0;j<k;j++)switch(O[j].once&&this.removeListener(h,O[j].fn,void 0,!0),_){case 1:O[j].fn.call(O[j].context);break;case 2:O[j].fn.call(O[j].context,v);break;case 3:O[j].fn.call(O[j].context,v,p);break;case 4:O[j].fn.call(O[j].context,v,p,g);break;default:if(!M)for(D=1,M=new Array(_-1);D<_;D++)M[D-1]=arguments[D];O[j].fn.apply(O[j].context,M)}}return!0},f.prototype.on=function(h,v,p){return o(this,h,v,p,!1)},f.prototype.once=function(h,v,p){return o(this,h,v,p,!0)},f.prototype.removeListener=function(h,v,p,g){var b=r?r+h:h;if(!this._events[b])return this;if(!v)return s(this,b),this;var S=this._events[b];if(S.fn)S.fn===v&&(!g||S.once)&&(!p||S.context===p)&&s(this,b);else{for(var w=0,O=[],_=S.length;w<_;w++)(S[w].fn!==v||g&&!S[w].once||p&&S[w].context!==p)&&O.push(S[w]);O.length?this._events[b]=O.length===1?O[0]:O:s(this,b)}return this},f.prototype.removeAllListeners=function(h){var v;return h?(v=r?r+h:h,this._events[v]&&s(this,v)):(this._events=new a,this._eventsCount=0),this},f.prototype.off=f.prototype.removeListener,f.prototype.addListener=f.prototype.on,f.prefixed=r,f.EventEmitter=f,e.exports=f})(vv)),vv.exports}var hz=dz();const vz=qn(hz);var Au=new vz,mm="recharts.syncEvent.tooltip",QS="recharts.syncEvent.brush";function mz(e,t){if(t){var r=Number.parseInt(t,10);if(!dn(r))return e?.[r]}}var yz={chartName:"",tooltipPayloadSearcher:void 0,eventEmitter:void 0,defaultTooltipEventType:"axis"},z2=mn({name:"options",initialState:yz,reducers:{createEventEmitter:e=>{e.eventEmitter==null&&(e.eventEmitter=Symbol("rechartsEventEmitter"))}}}),pz=z2.reducer,{createEventEmitter:gz}=z2.actions;function bz(e){return e.tooltip.syncInteraction}var xz={chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},B2=mn({name:"chartData",initialState:xz,reducers:{setChartData(e,t){if(e.chartData=t.payload,t.payload==null){e.dataStartIndex=0,e.dataEndIndex=0;return}t.payload.length>0&&e.dataEndIndex!==t.payload.length-1&&(e.dataEndIndex=t.payload.length-1)},setComputedData(e,t){e.computedData=t.payload},setDataStartEndIndexes(e,t){var{startIndex:r,endIndex:a}=t.payload;r!=null&&(e.dataStartIndex=r),a!=null&&(e.dataEndIndex=a)}}}),{setChartData:WS,setDataStartEndIndexes:Sz,setComputedData:cq}=B2.actions,wz=B2.reducer,L2=()=>{};function Oz(){var e=de(xy),t=de(Sy),r=St(),a=de(AE),u=de(Tr),o=Km(),s=Gm(),f=de(m=>m.rootProps.className);E.useEffect(()=>{if(e==null)return L2;var m=(h,v,p)=>{if(t!==p&&e===h){if(a==="index"){r(v);return}if(u!=null){var g;if(typeof a=="function"){var b={activeTooltipIndex:v.payload.index==null?void 0:Number(v.payload.index),isTooltipActive:v.payload.active,activeIndex:v.payload.index==null?void 0:Number(v.payload.index),activeLabel:v.payload.label,activeDataKey:v.payload.dataKey,activeCoordinate:v.payload.coordinate},S=a(u,b);g=u[S]}else a==="value"&&(g=u.find(R=>String(R.value)===v.payload.label));var{coordinate:w}=v.payload;if(g==null||v.payload.active===!1||w==null||s==null){r(dm({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0}));return}var{x:O,y:_}=w,M=Math.min(O,s.x+s.width),j=Math.min(_,s.y+s.height),k={x:o==="horizontal"?g.coordinate:M,y:o==="horizontal"?j:g.coordinate},D=dm({active:v.payload.active,coordinate:k,dataKey:v.payload.dataKey,index:String(g.index),label:v.payload.label});r(D)}}};return Au.on(mm,m),()=>{Au.off(mm,m)}},[f,r,t,e,a,u,o,s])}function Az(){var e=de(xy),t=de(Sy),r=St();E.useEffect(()=>{if(e==null)return L2;var a=(u,o,s)=>{t!==s&&e===u&&r(Sz(o))};return Au.on(QS,a),()=>{Au.off(QS,a)}},[r,t,e])}function Ez(){var e=St();E.useEffect(()=>{e(gz())},[e]),Oz(),Az()}function Tz(e,t,r,a,u,o){var s=de(g=>tz(g,e,t)),f=de(Sy),m=de(xy),h=de(AE),v=de(bz),p=v?.active;E.useEffect(()=>{if(!p&&m!=null&&f!=null){var g=dm({active:o,coordinate:r,dataKey:s,index:u,label:typeof a=="number"?String(a):a});Au.emit(mm,m,g,f)}},[p,r,s,u,a,f,m,h,o])}function FS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),r.push.apply(r,a)}return r}function JS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?FS(Object(r),!0).forEach(function(a){_z(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):FS(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function _z(e,t,r){return(t=jz(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jz(e){var t=Mz(e,"string");return typeof t=="symbol"?t:t+""}function Mz(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Cz(e){return e.dataKey}function Dz(e,t){return E.isValidElement(e)?E.cloneElement(e,t):typeof e=="function"?E.createElement(e,t):E.createElement(tP,t)}var ew=[],Nz={allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",axisId:0,contentStyle:{},cursor:!0,filterNull:!0,isAnimationActive:!Mu.isSsr,itemSorter:"name",itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,wrapperStyle:{}};function Pz(e){var t=ra(e,Nz),{active:r,allowEscapeViewBox:a,animationDuration:u,animationEasing:o,content:s,filterNull:f,isAnimationActive:m,offset:h,payloadUniqBy:v,position:p,reverseDirection:g,useTranslate3d:b,wrapperStyle:S,cursor:w,shared:O,trigger:_,defaultIndex:M,portal:j,axisId:k}=t,D=St(),R=typeof M=="number"?String(M):M;E.useEffect(()=>{D(l6({shared:O,trigger:_,axisId:k,active:r,defaultIndex:R}))},[D,O,_,k,r,R]);var U=Gm(),K=yA(),J=t6(O),{activeIndex:re,isActive:te}=de(ee=>az(ee,J,_,R)),ae=de(ee=>rz(ee,J,_,R)),ge=de(ee=>R2(ee,J,_,R)),be=de(ee=>nz(ee,J,_,R)),ye=ae,L=fz(),V=r??te,[F,he]=sD([ye,V]),N=J==="axis"?ge:void 0;Tz(J,_,be,N,re,V);var Z=j??L;if(Z==null)return null;var X=ye??ew;V||(X=ew),f&&X.length&&(X=zC(ye.filter(ee=>ee.value!=null&&(ee.hide!==!0||t.includeHidden)),v,Cz));var ne=X.length>0,se=E.createElement(oP,{allowEscapeViewBox:a,animationDuration:u,animationEasing:o,isAnimationActive:m,active:V,coordinate:be,hasPayload:ne,offset:h,position:p,reverseDirection:g,useTranslate3d:b,viewBox:U,wrapperStyle:S,lastBoundingBox:F,innerRef:he,hasPortalFromProps:!!j},Dz(s,JS(JS({},t),{},{payload:X,label:N,active:V,coordinate:be,accessibilityLayer:K})));return E.createElement(E.Fragment,null,_M.createPortal(se,Z),V&&E.createElement(sz,{cursor:w,tooltipEventType:J,coordinate:be,payload:ye,index:re}))}var mv={},yv={},pv={},tw;function Rz(){return tw||(tw=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,a,{signal:u,edges:o}={}){let s,f=null;const m=o!=null&&o.includes("leading"),h=o==null||o.includes("trailing"),v=()=>{f!==null&&(r.apply(s,f),s=void 0,f=null)},p=()=>{h&&v(),w()};let g=null;const b=()=>{g!=null&&clearTimeout(g),g=setTimeout(()=>{g=null,p()},a)},S=()=>{g!==null&&(clearTimeout(g),g=null)},w=()=>{S(),s=void 0,f=null},O=()=>{v()},_=function(...M){if(u?.aborted)return;s=this,f=M;const j=g==null;b(),m&&j&&v()};return _.schedule=b,_.cancel=w,_.flush=O,u?.addEventListener("abort",w,{once:!0}),_}e.debounce=t})(pv)),pv}var nw;function kz(){return nw||(nw=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Rz();function r(a,u=0,o={}){typeof o!="object"&&(o={});const{leading:s=!1,trailing:f=!0,maxWait:m}=o,h=Array(2);s&&(h[0]="leading"),f&&(h[1]="trailing");let v,p=null;const g=t.debounce(function(...w){v=a.apply(this,w),p=null},u,{edges:h}),b=function(...w){return m!=null&&(p===null&&(p=Date.now()),Date.now()-p>=m)?(v=a.apply(this,w),p=Date.now(),g.cancel(),g.schedule(),v):(g.apply(this,w),v)},S=()=>(g.flush(),v);return b.cancel=g.cancel,b.flush=S,b}e.debounce=r})(yv)),yv}var rw;function zz(){return rw||(rw=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=kz();function r(a,u=0,o={}){const{leading:s=!0,trailing:f=!0}=o;return t.debounce(a,u,{leading:s,maxWait:u,trailing:f})}e.throttle=r})(mv)),mv}var gv,aw;function Bz(){return aw||(aw=1,gv=zz().throttle),gv}var Lz=Bz();const Uz=qn(Lz);var hu=function(t,r){for(var a=arguments.length,u=new Array(a>2?a-2:0),o=2;o<a;o++)u[o-2]=arguments[o]};function iw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),r.push.apply(r,a)}return r}function bv(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?iw(Object(r),!0).forEach(function(a){qz(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):iw(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function qz(e,t,r){return(t=$z(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $z(e){var t=Hz(e,"string");return typeof t=="symbol"?t:t+""}function Hz(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Yz=E.forwardRef((e,t)=>{var{aspect:r,initialDimension:a={width:-1,height:-1},width:u="100%",height:o="100%",minWidth:s=0,minHeight:f,maxHeight:m,children:h,debounce:v=0,id:p,className:g,onResize:b,style:S={}}=e,w=E.useRef(null),O=E.useRef();O.current=b,E.useImperativeHandle(t,()=>w.current);var[_,M]=E.useState({containerWidth:a.width,containerHeight:a.height}),j=E.useCallback((D,R)=>{M(U=>{var K=Math.round(D),J=Math.round(R);return U.containerWidth===K&&U.containerHeight===J?U:{containerWidth:K,containerHeight:J}})},[]);E.useEffect(()=>{var D=J=>{var re,{width:te,height:ae}=J[0].contentRect;j(te,ae),(re=O.current)===null||re===void 0||re.call(O,te,ae)};v>0&&(D=Uz(D,v,{trailing:!0,leading:!1}));var R=new ResizeObserver(D),{width:U,height:K}=w.current.getBoundingClientRect();return j(U,K),R.observe(w.current),()=>{R.disconnect()}},[j,v]);var k=E.useMemo(()=>{var{containerWidth:D,containerHeight:R}=_;if(D<0||R<0)return null;hu(Ca(u)||Ca(o),`The width(%s) and height(%s) are both fixed numbers,
       maybe you don't need to use a ResponsiveContainer.`,u,o),hu(!r||r>0,"The aspect(%s) must be greater than zero.",r);var U=Ca(u)?D:u,K=Ca(o)?R:o;return r&&r>0&&(U?K=U/r:K&&(U=K*r),m&&K>m&&(K=m)),hu(U>0||K>0,`The width(%s) and height(%s) of chart should be greater than 0,
       please check the style of container, or the props width(%s) and height(%s),
       or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
       height and width.`,U,K,u,o,s,f,r),E.Children.map(h,J=>E.cloneElement(J,{width:U,height:K,style:bv({width:U,height:K},J.props.style)}))},[r,h,o,m,f,s,_,u]);return E.createElement("div",{id:p?"".concat(p):void 0,className:Xe("recharts-responsive-container",g),style:bv(bv({},S),{},{width:u,height:o,minWidth:s,minHeight:f,maxHeight:m}),ref:w},E.createElement("div",{style:{width:0,height:0,overflow:"visible"}},k))}),U2=e=>null;U2.displayName="Cell";function Gz(e,t,r){return(t=Kz(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Kz(e){var t=Iz(e,"string");return typeof t=="symbol"?t:t+""}function Iz(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class Xz{constructor(t){Gz(this,"cache",new Map),this.maxSize=t}get(t){var r=this.cache.get(t);return r!==void 0&&(this.cache.delete(t),this.cache.set(t,r)),r}set(t,r){if(this.cache.has(t))this.cache.delete(t);else if(this.cache.size>=this.maxSize){var a=this.cache.keys().next().value;this.cache.delete(a)}this.cache.set(t,r)}clear(){this.cache.clear()}size(){return this.cache.size}}function lw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),r.push.apply(r,a)}return r}function Vz(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?lw(Object(r),!0).forEach(function(a){Zz(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lw(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function Zz(e,t,r){return(t=Qz(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Qz(e){var t=Wz(e,"string");return typeof t=="symbol"?t:t+""}function Wz(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Fz={cacheSize:2e3,enableCache:!0},q2=Vz({},Fz),uw=new Xz(q2.cacheSize),Jz={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},ow="recharts_measurement_span";function e5(e,t){var r=t.fontSize||"",a=t.fontFamily||"",u=t.fontWeight||"",o=t.fontStyle||"",s=t.letterSpacing||"",f=t.textTransform||"";return"".concat(e,"|").concat(r,"|").concat(a,"|").concat(u,"|").concat(o,"|").concat(s,"|").concat(f)}var cw=(e,t)=>{try{var r=document.getElementById(ow);r||(r=document.createElement("span"),r.setAttribute("id",ow),r.setAttribute("aria-hidden","true"),document.body.appendChild(r)),Object.assign(r.style,Jz,t),r.textContent="".concat(e);var a=r.getBoundingClientRect();return{width:a.width,height:a.height}}catch{return{width:0,height:0}}},vu=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Mu.isSsr)return{width:0,height:0};if(!q2.enableCache)return cw(t,r);var a=e5(t,r),u=uw.get(a);if(u)return u;var o=cw(t,r);return uw.set(a,o),o},sw=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,fw=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,t5=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,n5=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,$2={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},r5=Object.keys($2),ki="NaN";function a5(e,t){return e*$2[t]}class It{static parse(t){var r,[,a,u]=(r=n5.exec(t))!==null&&r!==void 0?r:[];return new It(parseFloat(a),u??"")}constructor(t,r){this.num=t,this.unit=r,this.num=t,this.unit=r,dn(t)&&(this.unit=""),r!==""&&!t5.test(r)&&(this.num=NaN,this.unit=""),r5.includes(r)&&(this.num=a5(t,r),this.unit="px")}add(t){return this.unit!==t.unit?new It(NaN,""):new It(this.num+t.num,this.unit)}subtract(t){return this.unit!==t.unit?new It(NaN,""):new It(this.num-t.num,this.unit)}multiply(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new It(NaN,""):new It(this.num*t.num,this.unit||t.unit)}divide(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new It(NaN,""):new It(this.num/t.num,this.unit||t.unit)}toString(){return"".concat(this.num).concat(this.unit)}isNaN(){return dn(this.num)}}function H2(e){if(e.includes(ki))return ki;for(var t=e;t.includes("*")||t.includes("/");){var r,[,a,u,o]=(r=sw.exec(t))!==null&&r!==void 0?r:[],s=It.parse(a??""),f=It.parse(o??""),m=u==="*"?s.multiply(f):s.divide(f);if(m.isNaN())return ki;t=t.replace(sw,m.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var h,[,v,p,g]=(h=fw.exec(t))!==null&&h!==void 0?h:[],b=It.parse(v??""),S=It.parse(g??""),w=p==="+"?b.add(S):b.subtract(S);if(w.isNaN())return ki;t=t.replace(fw,w.toString())}return t}var dw=/\(([^()]*)\)/;function i5(e){for(var t=e,r;(r=dw.exec(t))!=null;){var[,a]=r;t=t.replace(dw,H2(a))}return t}function l5(e){var t=e.replace(/\s+/g,"");return t=i5(t),t=H2(t),t}function u5(e){try{return l5(e)}catch{return ki}}function xv(e){var t=u5(e.slice(5,-1));return t===ki?"":t}var o5=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],c5=["dx","dy","angle","className","breakAll"];function ym(){return ym=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)({}).hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},ym.apply(null,arguments)}function hw(e,t){if(e==null)return{};var r,a,u=s5(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(u[r]=e[r])}return u}function s5(e,t){if(e==null)return{};var r={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)!==-1)continue;r[a]=e[a]}return r}var Y2=/[ \f\n\r\t\v\u2028\u2029]+/,G2=e=>{var{children:t,breakAll:r,style:a}=e;try{var u=[];ct(t)||(r?u=t.toString().split(""):u=t.toString().split(Y2));var o=u.map(f=>({word:f,width:vu(f,a).width})),s=r?0:vu(" ",a).width;return{wordsWithComputedWidth:o,spaceWidth:s}}catch{return null}},f5=(e,t,r,a,u)=>{var{maxLines:o,children:s,style:f,breakAll:m}=e,h=ce(o),v=s,p=function(){var te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return te.reduce((ae,ge)=>{var{word:be,width:ye}=ge,L=ae[ae.length-1];if(L&&(a==null||u||L.width+ye+r<Number(a)))L.words.push(be),L.width+=ye+r;else{var V={words:[be],width:ye};ae.push(V)}return ae},[])},g=p(t),b=re=>re.reduce((te,ae)=>te.width>ae.width?te:ae);if(!h||u)return g;var S=g.length>o||b(g).width>Number(a);if(!S)return g;for(var w="…",O=re=>{var te=v.slice(0,re),ae=G2({breakAll:m,style:f,children:te+w}).wordsWithComputedWidth,ge=p(ae),be=ge.length>o||b(ge).width>Number(a);return[be,ge]},_=0,M=v.length-1,j=0,k;_<=M&&j<=v.length-1;){var D=Math.floor((_+M)/2),R=D-1,[U,K]=O(R),[J]=O(D);if(!U&&!J&&(_=D+1),U&&J&&(M=D-1),!U&&J){k=K;break}j++}return k||g},vw=e=>{var t=ct(e)?[]:e.toString().split(Y2);return[{words:t}]},d5=e=>{var{width:t,scaleToFit:r,children:a,style:u,breakAll:o,maxLines:s}=e;if((t||r)&&!Mu.isSsr){var f,m,h=G2({breakAll:o,children:a,style:u});if(h){var{wordsWithComputedWidth:v,spaceWidth:p}=h;f=v,m=p}else return vw(a);return f5({breakAll:o,children:a,maxLines:s,style:u},f,m,t,r)}return vw(a)},mw="#808080",Gy=E.forwardRef((e,t)=>{var{x:r=0,y:a=0,lineHeight:u="1em",capHeight:o="0.71em",scaleToFit:s=!1,textAnchor:f="start",verticalAnchor:m="end",fill:h=mw}=e,v=hw(e,o5),p=E.useMemo(()=>d5({breakAll:v.breakAll,children:v.children,maxLines:v.maxLines,scaleToFit:s,style:v.style,width:v.width}),[v.breakAll,v.children,v.maxLines,s,v.style,v.width]),{dx:g,dy:b,angle:S,className:w,breakAll:O}=v,_=hw(v,c5);if(!Zn(r)||!Zn(a))return null;var M=r+(ce(g)?g:0),j=a+(ce(b)?b:0),k;switch(m){case"start":k=xv("calc(".concat(o,")"));break;case"middle":k=xv("calc(".concat((p.length-1)/2," * -").concat(u," + (").concat(o," / 2))"));break;default:k=xv("calc(".concat(p.length-1," * -").concat(u,")"));break}var D=[];if(s){var R=p[0].width,{width:U}=v;D.push("scale(".concat(ce(U)?U/R:1,")"))}return S&&D.push("rotate(".concat(S,", ").concat(M,", ").concat(j,")")),D.length&&(_.transform=D.join(" ")),E.createElement("text",ym({},xt(_,!0),{ref:t,x:M,y:j,className:Xe("recharts-text",w),textAnchor:f,fill:h.includes("url")?mw:h}),p.map((K,J)=>{var re=K.words.join(O?"":" ");return E.createElement("tspan",{x:M,dy:J===0?k:u,key:"".concat(re,"-").concat(J)},re)}))});Gy.displayName="Text";var h5=["offset"],v5=["labelRef"];function yw(e,t){if(e==null)return{};var r,a,u=m5(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(u[r]=e[r])}return u}function m5(e,t){if(e==null)return{};var r={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)!==-1)continue;r[a]=e[a]}return r}function pw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),r.push.apply(r,a)}return r}function Je(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?pw(Object(r),!0).forEach(function(a){y5(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pw(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function y5(e,t,r){return(t=p5(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p5(e){var t=g5(e,"string");return typeof t=="symbol"?t:t+""}function g5(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function hr(){return hr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)({}).hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},hr.apply(null,arguments)}var b5=e=>{var{value:t,formatter:r}=e,a=ct(e.children)?t:e.children;return typeof r=="function"?r(a):a},Ky=e=>e!=null&&typeof e=="function",x5=(e,t)=>{var r=Xt(t-e),a=Math.min(Math.abs(t-e),360);return r*a},S5=(e,t,r,a)=>{var{position:u,offset:o,className:s}=e,{cx:f,cy:m,innerRadius:h,outerRadius:v,startAngle:p,endAngle:g,clockWise:b}=a,S=(h+v)/2,w=x5(p,g),O=w>=0?1:-1,_,M;u==="insideStart"?(_=p+O*o,M=b):u==="insideEnd"?(_=g-O*o,M=!b):u==="end"&&(_=g+O*o,M=b),M=w<=0?M:!M;var j=Mt(f,m,S,_),k=Mt(f,m,S,_+(M?1:-1)*359),D="M".concat(j.x,",").concat(j.y,`
    A`).concat(S,",").concat(S,",0,1,").concat(M?0:1,`,
    `).concat(k.x,",").concat(k.y),R=ct(e.id)?mu("recharts-radial-line-"):e.id;return E.createElement("text",hr({},r,{dominantBaseline:"central",className:Xe("recharts-radial-bar-label",s)}),E.createElement("defs",null,E.createElement("path",{id:R,d:D})),E.createElement("textPath",{xlinkHref:"#".concat(R)},t))},w5=(e,t,r)=>{var{cx:a,cy:u,innerRadius:o,outerRadius:s,startAngle:f,endAngle:m}=e,h=(f+m)/2;if(r==="outside"){var{x:v,y:p}=Mt(a,u,s+t,h);return{x:v,y:p,textAnchor:v>=a?"start":"end",verticalAnchor:"middle"}}if(r==="center")return{x:a,y:u,textAnchor:"middle",verticalAnchor:"middle"};if(r==="centerTop")return{x:a,y:u,textAnchor:"middle",verticalAnchor:"start"};if(r==="centerBottom")return{x:a,y:u,textAnchor:"middle",verticalAnchor:"end"};var g=(o+s)/2,{x:b,y:S}=Mt(a,u,g,h);return{x:b,y:S,textAnchor:"middle",verticalAnchor:"middle"}},O5=(e,t)=>{var{parentViewBox:r,offset:a,position:u}=e,{x:o,y:s,width:f,height:m}=t,h=m>=0?1:-1,v=h*a,p=h>0?"end":"start",g=h>0?"start":"end",b=f>=0?1:-1,S=b*a,w=b>0?"end":"start",O=b>0?"start":"end";if(u==="top"){var _={x:o+f/2,y:s-h*a,textAnchor:"middle",verticalAnchor:p};return Je(Je({},_),r?{height:Math.max(s-r.y,0),width:f}:{})}if(u==="bottom"){var M={x:o+f/2,y:s+m+v,textAnchor:"middle",verticalAnchor:g};return Je(Je({},M),r?{height:Math.max(r.y+r.height-(s+m),0),width:f}:{})}if(u==="left"){var j={x:o-S,y:s+m/2,textAnchor:w,verticalAnchor:"middle"};return Je(Je({},j),r?{width:Math.max(j.x-r.x,0),height:m}:{})}if(u==="right"){var k={x:o+f+S,y:s+m/2,textAnchor:O,verticalAnchor:"middle"};return Je(Je({},k),r?{width:Math.max(r.x+r.width-k.x,0),height:m}:{})}var D=r?{width:f,height:m}:{};return u==="insideLeft"?Je({x:o+S,y:s+m/2,textAnchor:O,verticalAnchor:"middle"},D):u==="insideRight"?Je({x:o+f-S,y:s+m/2,textAnchor:w,verticalAnchor:"middle"},D):u==="insideTop"?Je({x:o+f/2,y:s+v,textAnchor:"middle",verticalAnchor:g},D):u==="insideBottom"?Je({x:o+f/2,y:s+m-v,textAnchor:"middle",verticalAnchor:p},D):u==="insideTopLeft"?Je({x:o+S,y:s+v,textAnchor:O,verticalAnchor:g},D):u==="insideTopRight"?Je({x:o+f-S,y:s+v,textAnchor:w,verticalAnchor:g},D):u==="insideBottomLeft"?Je({x:o+S,y:s+m-v,textAnchor:O,verticalAnchor:p},D):u==="insideBottomRight"?Je({x:o+f-S,y:s+m-v,textAnchor:w,verticalAnchor:p},D):u&&typeof u=="object"&&(ce(u.x)||Ca(u.x))&&(ce(u.y)||Ca(u.y))?Je({x:o+Un(u.x,f),y:s+Un(u.y,m),textAnchor:"end",verticalAnchor:"end"},D):Je({x:o+f/2,y:s+m/2,textAnchor:"middle",verticalAnchor:"middle"},D)},A5=e=>"cx"in e&&ce(e.cx);function cn(e){var{offset:t=5}=e,r=yw(e,h5),a=Je({offset:t},r),{viewBox:u,position:o,value:s,children:f,content:m,className:h="",textBreakAll:v,labelRef:p}=a,g=de(ME),b=Gm(),S=o==="center"?b:g??b,w=u||S;if(!w||ct(s)&&ct(f)&&!E.isValidElement(m)&&typeof m!="function")return null;var O=Je(Je({},a),{},{viewBox:w});if(E.isValidElement(m)){var{labelRef:_}=O,M=yw(O,v5);return E.cloneElement(m,M)}var j;if(typeof m=="function"){if(j=E.createElement(m,O),E.isValidElement(j))return j}else j=b5(a);var k=A5(w),D=xt(a,!0);if(k&&(o==="insideStart"||o==="insideEnd"||o==="end"))return S5(a,j,D,w);var R=k?w5(w,a.offset,a.position):O5(a,w);return E.createElement(Gy,hr({ref:p,className:Xe("recharts-label",h)},D,R,{breakAll:v}),j)}cn.displayName="Label";var K2=e=>{var{cx:t,cy:r,angle:a,startAngle:u,endAngle:o,r:s,radius:f,innerRadius:m,outerRadius:h,x:v,y:p,top:g,left:b,width:S,height:w,clockWise:O,labelViewBox:_}=e;if(_)return _;if(ce(S)&&ce(w)){if(ce(v)&&ce(p))return{x:v,y:p,width:S,height:w};if(ce(g)&&ce(b))return{x:g,y:b,width:S,height:w}}if(ce(v)&&ce(p))return{x:v,y:p,width:0,height:0};if(ce(t)&&ce(r))return{cx:t,cy:r,startAngle:u||a||0,endAngle:o||a||0,innerRadius:m||0,outerRadius:h||f||s||0,clockWise:O};if(e.viewBox)return e.viewBox},E5=(e,t,r)=>{if(!e)return null;var a={viewBox:t,labelRef:r};return e===!0?E.createElement(cn,hr({key:"label-implicit"},a)):Zn(e)?E.createElement(cn,hr({key:"label-implicit",value:e},a)):E.isValidElement(e)?e.type===cn?E.cloneElement(e,Je({key:"label-implicit"},a)):E.createElement(cn,hr({key:"label-implicit",content:e},a)):Ky(e)?E.createElement(cn,hr({key:"label-implicit",content:e},a)):e&&typeof e=="object"?E.createElement(cn,hr({},e,{key:"label-implicit"},a)):null},T5=function(t,r){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&a&&!t.label)return null;var{children:u,labelRef:o}=t,s=K2(t),f=Tm(u,cn).map((h,v)=>E.cloneElement(h,{viewBox:r||s,key:"label-".concat(v)}));if(!a)return f;var m=E5(t.label,r||s,o);return[m,...f]};cn.parseViewBox=K2;cn.renderCallByParent=T5;var Sv={},wv={},gw;function _5(){return gw||(gw=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r[r.length-1]}e.last=t})(wv)),wv}var Ov={},bw;function j5(){return bw||(bw=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return Array.isArray(r)?r:Array.from(r)}e.toArray=t})(Ov)),Ov}var xw;function M5(){return xw||(xw=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=_5(),r=j5(),a=Cm();function u(o){if(a.isArrayLike(o))return t.last(r.toArray(o))}e.last=u})(Sv)),Sv}var Av,Sw;function C5(){return Sw||(Sw=1,Av=M5().last),Av}var D5=C5();const N5=qn(D5);var P5=["valueAccessor"],R5=["data","dataKey","clockWise","id","textBreakAll"];function Qc(){return Qc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)({}).hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Qc.apply(null,arguments)}function ww(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),r.push.apply(r,a)}return r}function Ow(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ww(Object(r),!0).forEach(function(a){k5(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ww(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function k5(e,t,r){return(t=z5(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function z5(e){var t=B5(e,"string");return typeof t=="symbol"?t:t+""}function B5(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Aw(e,t){if(e==null)return{};var r,a,u=L5(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(u[r]=e[r])}return u}function L5(e,t){if(e==null)return{};var r={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)!==-1)continue;r[a]=e[a]}return r}var U5=e=>Array.isArray(e.value)?N5(e.value):e.value;function Ua(e){var{valueAccessor:t=U5}=e,r=Aw(e,P5),{data:a,dataKey:u,clockWise:o,id:s,textBreakAll:f}=r,m=Aw(r,R5);return!a||!a.length?null:E.createElement(na,{className:"recharts-label-list"},a.map((h,v)=>{var p=ct(u)?t(h,v):qt(h&&h.payload,u),g=ct(s)?{}:{id:"".concat(s,"-").concat(v)};return E.createElement(cn,Qc({},xt(h,!0),m,g,{parentViewBox:h.parentViewBox,value:p,textBreakAll:f,viewBox:cn.parseViewBox(ct(o)?h:Ow(Ow({},h),{},{clockWise:o})),key:"label-".concat(v),index:v}))}))}Ua.displayName="LabelList";function q5(e,t){return e?e===!0?E.createElement(Ua,{key:"labelList-implicit",data:t}):E.isValidElement(e)||Ky(e)?E.createElement(Ua,{key:"labelList-implicit",data:t,content:e}):typeof e=="object"?E.createElement(Ua,Qc({data:t},e,{key:"labelList-implicit"})):null:null}function $5(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&r&&!e.label)return null;var{children:a}=e,u=Tm(a,Ua).map((s,f)=>E.cloneElement(s,{data:t,key:"labelList-".concat(f)}));if(!r)return u;var o=q5(e.label,t);return[o,...u]}Ua.renderCallByParent=$5;var H5={radiusAxis:{},angleAxis:{}},I2=mn({name:"polarAxis",initialState:H5,reducers:{addRadiusAxis(e,t){e.radiusAxis[t.payload.id]=t.payload},removeRadiusAxis(e,t){delete e.radiusAxis[t.payload.id]},addAngleAxis(e,t){e.angleAxis[t.payload.id]=t.payload},removeAngleAxis(e,t){delete e.angleAxis[t.payload.id]}}}),{addRadiusAxis:sq,removeRadiusAxis:fq,addAngleAxis:dq,removeAngleAxis:hq}=I2.actions,Y5=I2.reducer,Ev={},Ew;function G5(){return Ew||(Ew=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){if(typeof r!="object"||r==null)return!1;if(Object.getPrototypeOf(r)===null)return!0;if(Object.prototype.toString.call(r)!=="[object Object]"){const u=r[Symbol.toStringTag];return u==null||!Object.getOwnPropertyDescriptor(r,Symbol.toStringTag)?.writable?!1:r.toString()===`[object ${u}]`}let a=r;for(;Object.getPrototypeOf(a)!==null;)a=Object.getPrototypeOf(a);return Object.getPrototypeOf(r)===a}e.isPlainObject=t})(Ev)),Ev}var Tv,Tw;function K5(){return Tw||(Tw=1,Tv=G5().isPlainObject),Tv}var I5=K5();const X5=qn(I5);function Wc(){return Wc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)({}).hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Wc.apply(null,arguments)}var _w=(e,t,r,a,u)=>{var o=r-a,s;return s="M ".concat(e,",").concat(t),s+="L ".concat(e+r,",").concat(t),s+="L ".concat(e+r-o/2,",").concat(t+u),s+="L ".concat(e+r-o/2-a,",").concat(t+u),s+="L ".concat(e,",").concat(t," Z"),s},V5={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Z5=e=>{var t=ra(e,V5),r=E.useRef(),[a,u]=E.useState(-1);E.useEffect(()=>{if(r.current&&r.current.getTotalLength)try{var O=r.current.getTotalLength();O&&u(O)}catch{}},[]);var{x:o,y:s,upperWidth:f,lowerWidth:m,height:h,className:v}=t,{animationEasing:p,animationDuration:g,animationBegin:b,isUpdateAnimationActive:S}=t;if(o!==+o||s!==+s||f!==+f||m!==+m||h!==+h||f===0&&m===0||h===0)return null;var w=Xe("recharts-trapezoid",v);return S?E.createElement(kc,{canBegin:a>0,from:{upperWidth:0,lowerWidth:0,height:h,x:o,y:s},to:{upperWidth:f,lowerWidth:m,height:h,x:o,y:s},duration:g,animationEasing:p,isActive:S},O=>{var{upperWidth:_,lowerWidth:M,height:j,x:k,y:D}=O;return E.createElement(kc,{canBegin:a>0,from:"0px ".concat(a===-1?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:b,duration:g,easing:p},E.createElement("path",Wc({},xt(t,!0),{className:w,d:_w(k,D,_,M,j),ref:r})))}):E.createElement("g",null,E.createElement("path",Wc({},xt(t,!0),{className:w,d:_w(o,s,f,m,h)})))},Q5=["option","shapeType","propTransformer","activeClassName","isActive"];function W5(e,t){if(e==null)return{};var r,a,u=F5(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(u[r]=e[r])}return u}function F5(e,t){if(e==null)return{};var r={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)!==-1)continue;r[a]=e[a]}return r}function jw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),r.push.apply(r,a)}return r}function Fc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jw(Object(r),!0).forEach(function(a){J5(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jw(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function J5(e,t,r){return(t=eB(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eB(e){var t=tB(e,"string");return typeof t=="symbol"?t:t+""}function tB(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function nB(e,t){return Fc(Fc({},t),e)}function rB(e,t){return e==="symbols"}function Mw(e){var{shapeType:t,elementProps:r}=e;switch(t){case"rectangle":return E.createElement(OA,r);case"trapezoid":return E.createElement(Z5,r);case"sector":return E.createElement(TA,r);case"symbols":if(rB(t))return E.createElement(EO,r);break;default:return null}}function aB(e){return E.isValidElement(e)?e.props:e}function iB(e){var{option:t,shapeType:r,propTransformer:a=nB,activeClassName:u="recharts-active-shape",isActive:o}=e,s=W5(e,Q5),f;if(E.isValidElement(t))f=E.cloneElement(t,Fc(Fc({},s),aB(t)));else if(typeof t=="function")f=t(s);else if(X5(t)&&typeof t!="boolean"){var m=a(t,s);f=E.createElement(Mw,{shapeType:r,elementProps:m})}else{var h=s;f=E.createElement(Mw,{shapeType:r,elementProps:h})}return o?E.createElement(na,{className:u},f):f}var X2=(e,t)=>{var r=St();return(a,u)=>o=>{e?.(a,u,o),r(y2({activeIndex:String(u),activeDataKey:t,activeCoordinate:a.tooltipPosition}))}},V2=e=>{var t=St();return(r,a)=>u=>{e?.(r,a,u),t(u6())}},Z2=(e,t)=>{var r=St();return(a,u)=>o=>{e?.(a,u,o),r(o6({activeIndex:String(u),activeDataKey:t,activeCoordinate:a.tooltipPosition}))}};function lB(e){var{fn:t,args:r}=e,a=St(),u=Nn();return E.useEffect(()=>{if(!u){var o=t(r);return a(a6(o)),()=>{a(i6(o))}}},[t,r,a,u]),null}var uB=()=>{};function oB(e){var{legendPayload:t}=e,r=St(),a=Nn();return E.useEffect(()=>a?uB:(r(VN(t)),()=>{r(ZN(t))}),[r,a,t]),null}function cB(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"animation-",r=E.useRef(mu(t)),a=E.useRef(e);return a.current!==e&&(r.current=mu(t),a.current=e),r.current}var _v,sB=()=>{var[e]=E.useState(()=>mu("uid-"));return e},fB=(_v=Vj.useId)!==null&&_v!==void 0?_v:sB;function dB(e,t){var r=fB();return t||(e?"".concat(e,"-").concat(r):r)}var hB=E.createContext(void 0),vB=e=>{var{id:t,type:r,children:a}=e,u=dB("recharts-".concat(r),t);return E.createElement(hB.Provider,{value:u},a(u))},mB={cartesianItems:[],polarItems:[]},Q2=mn({name:"graphicalItems",initialState:mB,reducers:{addCartesianGraphicalItem(e,t){e.cartesianItems.push(t.payload)},replaceCartesianGraphicalItem(e,t){var{prev:r,next:a}=t.payload,u=yr(e).cartesianItems.indexOf(r);u>-1&&(e.cartesianItems[u]=a)},removeCartesianGraphicalItem(e,t){var r=yr(e).cartesianItems.indexOf(t.payload);r>-1&&e.cartesianItems.splice(r,1)},addPolarGraphicalItem(e,t){e.polarItems.push(t.payload)},removePolarGraphicalItem(e,t){var r=yr(e).polarItems.indexOf(t.payload);r>-1&&e.polarItems.splice(r,1)}}}),{addCartesianGraphicalItem:yB,replaceCartesianGraphicalItem:pB,removeCartesianGraphicalItem:gB,addPolarGraphicalItem:vq,removePolarGraphicalItem:mq}=Q2.actions,bB=Q2.reducer;function xB(e){var t=St(),r=E.useRef(null);return E.useEffect(()=>{r.current===null?t(yB(e)):r.current!==e&&t(pB({prev:r.current,next:e})),r.current=e},[t,e]),E.useEffect(()=>()=>{r.current&&(t(gB(r.current)),r.current=null)},[t]),null}function SB(){}var wB={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},Cw={t:0},jv={t:1};function OB(e){var t=ra(e,wB),{isActive:r,canBegin:a,duration:u,easing:o,begin:s,onAnimationEnd:f,onAnimationStart:m,children:h}=t,v=wA("JavascriptAnimate",t.animationManager),[p,g]=E.useState(r?Cw:jv),b=E.useRef(null);return E.useEffect(()=>{r||g(jv)},[r]),E.useEffect(()=>{if(!r||!a)return SB;var S=SA(Cw,jv,bA(o),u,g,v.getTimeoutController()),w=()=>{b.current=S()};return v.start([m,s,w,u,f]),()=>{v.stop(),b.current&&b.current(),f()}},[r,a,u,o,s,m,f,v]),h(p.t)}var AB=Y([wt],e=>{if(e)return{top:e.top,bottom:e.bottom,left:e.left,right:e.right}}),EB=Y([AB,wr,Or],(e,t,r)=>{if(!(!e||t==null||r==null))return{x:e.left,y:e.top,width:Math.max(0,t-e.left-e.right),height:Math.max(0,r-e.top-e.bottom)}}),W2=()=>de(EB),TB="Invariant failed";function _B(e,t){throw new Error(TB)}var jB=["x","y"];function pm(){return pm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)({}).hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},pm.apply(null,arguments)}function Dw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),r.push.apply(r,a)}return r}function su(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Dw(Object(r),!0).forEach(function(a){MB(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Dw(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function MB(e,t,r){return(t=CB(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function CB(e){var t=DB(e,"string");return typeof t=="symbol"?t:t+""}function DB(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function NB(e,t){if(e==null)return{};var r,a,u=PB(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(u[r]=e[r])}return u}function PB(e,t){if(e==null)return{};var r={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)!==-1)continue;r[a]=e[a]}return r}function RB(e,t){var{x:r,y:a}=e,u=NB(e,jB),o="".concat(r),s=parseInt(o,10),f="".concat(a),m=parseInt(f,10),h="".concat(t.height||u.height),v=parseInt(h,10),p="".concat(t.width||u.width),g=parseInt(p,10);return su(su(su(su(su({},t),u),s?{x:s}:{}),m?{y:m}:{}),{},{height:v,width:g,name:t.name,radius:t.radius})}function F2(e){return E.createElement(iB,pm({shapeType:"rectangle",propTransformer:RB,activeClassName:"recharts-active-bar"},e))}var kB=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return(a,u)=>{if(ce(t))return t;var o=ce(a)||ct(a);return o?t(a,u):(o||_B(),r)}},zB={},J2=mn({name:"errorBars",initialState:zB,reducers:{addErrorBar:(e,t)=>{var{itemId:r,errorBar:a}=t.payload;e[r]||(e[r]=[]),e[r].push(a)},removeErrorBar:(e,t)=>{var{itemId:r,errorBar:a}=t.payload;e[r]&&(e[r]=e[r].filter(u=>u.dataKey!==a.dataKey||u.direction!==a.direction))}}}),{addErrorBar:yq,removeErrorBar:pq}=J2.actions,BB=J2.reducer,LB=["children"];function UB(e,t){if(e==null)return{};var r,a,u=qB(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(u[r]=e[r])}return u}function qB(e,t){if(e==null)return{};var r={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)!==-1)continue;r[a]=e[a]}return r}var $B={data:[],xAxisId:"xAxis-0",yAxisId:"yAxis-0",dataPointFormatter:()=>({x:0,y:0,value:0}),errorBarOffset:0},HB=E.createContext($B);function YB(e){var{children:t}=e,r=UB(e,LB);return E.createElement(HB.Provider,{value:r},t)}function eT(e,t){var r,a,u=de(h=>Er(h,e)),o=de(h=>ua(h,t)),s=(r=u?.allowDataOverflow)!==null&&r!==void 0?r:ln.allowDataOverflow,f=(a=o?.allowDataOverflow)!==null&&a!==void 0?a:un.allowDataOverflow,m=s||f;return{needClip:m,needClipX:s,needClipY:f}}function GB(e){var{xAxisId:t,yAxisId:r,clipPathId:a}=e,u=W2(),{needClipX:o,needClipY:s,needClip:f}=eT(t,r);if(!f)return null;var{x:m,y:h,width:v,height:p}=u;return E.createElement("clipPath",{id:"clipPath-".concat(a)},E.createElement("rect",{x:o?m:m-v/2,y:s?h:h-p/2,width:o?v:v*2,height:s?p:p*2}))}var KB=["onMouseEnter","onMouseLeave","onClick"],IB=["value","background","tooltipPosition"],XB=["id"],VB=["onMouseEnter","onClick","onMouseLeave"];function Vi(){return Vi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)({}).hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Vi.apply(null,arguments)}function Nw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),r.push.apply(r,a)}return r}function Rt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Nw(Object(r),!0).forEach(function(a){ZB(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Nw(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function ZB(e,t,r){return(t=QB(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function QB(e){var t=WB(e,"string");return typeof t=="symbol"?t:t+""}function WB(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Jc(e,t){if(e==null)return{};var r,a,u=FB(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(u[r]=e[r])}return u}function FB(e,t){if(e==null)return{};var r={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)!==-1)continue;r[a]=e[a]}return r}var JB=e=>{var{dataKey:t,name:r,fill:a,legendType:u,hide:o}=e;return[{inactive:o,dataKey:t,type:u,color:a,value:cA(r,t),payload:e}]};function e8(e){var{dataKey:t,stroke:r,strokeWidth:a,fill:u,name:o,hide:s,unit:f}=e;return{dataDefinedOnItem:void 0,positions:void 0,settings:{stroke:r,strokeWidth:a,fill:u,dataKey:t,nameKey:void 0,name:cA(o,t),hide:s,type:e.tooltipType,color:e.fill,unit:f}}}function t8(e){var t=de(Xi),{data:r,dataKey:a,background:u,allOtherBarProps:o}=e,{onMouseEnter:s,onMouseLeave:f,onClick:m}=o,h=Jc(o,KB),v=X2(s,a),p=V2(f),g=Z2(m,a);if(!u||r==null)return null;var b=xt(u,!1);return E.createElement(E.Fragment,null,r.map((S,w)=>{var{value:O,background:_,tooltipPosition:M}=S,j=Jc(S,IB);if(!_)return null;var k=v(S,w),D=p(S,w),R=g(S,w),U=Rt(Rt(Rt(Rt(Rt({option:u,isActive:String(w)===t},j),{},{fill:"#eee"},_),b),Em(h,S,w)),{},{onMouseEnter:k,onMouseLeave:D,onClick:R,dataKey:a,index:w,className:"recharts-bar-background-rectangle"});return E.createElement(F2,Vi({key:"background-bar-".concat(w)},U))}))}function tT(e){var{data:t,props:r,showLabels:a}=e,u=Tu(r),{id:o}=u,s=Jc(u,XB),{shape:f,dataKey:m,activeBar:h}=r,v=de(Xi),p=de(M2),{onMouseEnter:g,onClick:b,onMouseLeave:S}=r,w=Jc(r,VB),O=X2(g,m),_=V2(S),M=Z2(b,m);return t?E.createElement(E.Fragment,null,t.map((j,k)=>{var D=h&&String(k)===v&&(p==null||m===p),R=D?h:f,U=Rt(Rt(Rt({},s),j),{},{isActive:D,option:R,index:k,dataKey:m});return E.createElement(na,Vi({className:"recharts-bar-rectangle"},Em(w,j,k),{onMouseEnter:O(j,k),onMouseLeave:_(j,k),onClick:M(j,k),key:"rectangle-".concat(j?.x,"-").concat(j?.y,"-").concat(j?.value,"-").concat(k)}),E.createElement(F2,U))}),a&&Ua.renderCallByParent(r,t)):null}function n8(e){var{props:t,previousRectanglesRef:r}=e,{data:a,layout:u,isAnimationActive:o,animationBegin:s,animationDuration:f,animationEasing:m,onAnimationEnd:h,onAnimationStart:v}=t,p=r.current,g=cB(t,"recharts-bar-"),[b,S]=E.useState(!1),w=E.useCallback(()=>{typeof h=="function"&&h(),S(!1)},[h]),O=E.useCallback(()=>{typeof v=="function"&&v(),S(!0)},[v]);return E.createElement(OB,{begin:s,duration:f,isActive:o,easing:m,onAnimationEnd:w,onAnimationStart:O,key:g},_=>{var M=_===1?a:a?.map((j,k)=>{var D=p&&p[k];if(D)return Rt(Rt({},j),{},{x:Pi(D.x,j.x,_),y:Pi(D.y,j.y,_),width:Pi(D.width,j.width,_),height:Pi(D.height,j.height,_)});if(u==="horizontal"){var R=Pi(0,j.height,_);return Rt(Rt({},j),{},{y:j.y+j.height-R,height:R})}var U=Pi(0,j.width,_);return Rt(Rt({},j),{},{width:U})});return _>0&&(r.current=M??null),M==null?null:E.createElement(na,null,E.createElement(tT,{props:t,data:M,showLabels:!b}))})}function r8(e){var{data:t,isAnimationActive:r}=e,a=E.useRef(null);return r&&t&&t.length&&(a.current==null||a.current!==t)?E.createElement(n8,{previousRectanglesRef:a,props:e}):E.createElement(tT,{props:e,data:t,showLabels:!0})}var nT=0,a8=(e,t)=>{var r=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:r,errorVal:qt(e,t)}};class i8 extends E.PureComponent{render(){var{hide:t,data:r,dataKey:a,className:u,xAxisId:o,yAxisId:s,needClip:f,background:m,id:h}=this.props;if(t)return null;var v=Xe("recharts-bar",u),p=h;return E.createElement(na,{className:v,id:h},f&&E.createElement("defs",null,E.createElement(GB,{clipPathId:p,xAxisId:o,yAxisId:s})),E.createElement(na,{className:"recharts-bar-rectangles",clipPath:f?"url(#clipPath-".concat(p,")"):void 0},E.createElement(t8,{data:r,dataKey:a,background:m,allOtherBarProps:this.props}),E.createElement(r8,this.props)),this.props.children)}}var l8={activeBar:!1,animationBegin:0,animationDuration:400,animationEasing:"ease",hide:!1,isAnimationActive:!Mu.isSsr,legendType:"rect",minPointSize:nT,xAxisId:0,yAxisId:0};function u8(e){var{xAxisId:t,yAxisId:r,hide:a,legendType:u,minPointSize:o,activeBar:s,animationBegin:f,animationDuration:m,animationEasing:h,isAnimationActive:v}=e,{needClip:p}=eT(t,r),g=Km(),b=Nn(),S=Tm(e.children,U2),w=de(M=>R8(M,t,r,b,e.id,S));if(g!=="vertical"&&g!=="horizontal")return null;var O,_=w?.[0];return _==null||_.height==null||_.width==null?O=0:O=g==="vertical"?_.height/2:_.width/2,E.createElement(YB,{xAxisId:t,yAxisId:r,data:w,dataPointFormatter:a8,errorBarOffset:O},E.createElement(i8,Vi({},e,{layout:g,needClip:p,data:w,xAxisId:t,yAxisId:r,hide:a,legendType:u,minPointSize:o,activeBar:s,animationBegin:f,animationDuration:m,animationEasing:h,isAnimationActive:v})))}function o8(e){var{layout:t,barSettings:{dataKey:r,minPointSize:a},pos:u,bandSize:o,xAxis:s,yAxis:f,xAxisTicks:m,yAxisTicks:h,stackedData:v,displayedData:p,offset:g,cells:b}=e,S=t==="horizontal"?f:s,w=v?S.scale.domain():null,O=CN({numericAxis:S});return p.map((_,M)=>{var j,k,D,R,U,K;v?j=AN(v[M],w):(j=qt(_,r),Array.isArray(j)||(j=[O,j]));var J=kB(a,nT)(j[1],M);if(t==="horizontal"){var re,[te,ae]=[f.scale(j[0]),f.scale(j[1])];k=Ox({axis:s,ticks:m,bandSize:o,offset:u.offset,entry:_,index:M}),D=(re=ae??te)!==null&&re!==void 0?re:void 0,R=u.size;var ge=te-ae;if(U=dn(ge)?0:ge,K={x:k,y:g.top,width:R,height:g.height},Math.abs(J)>0&&Math.abs(U)<Math.abs(J)){var be=Xt(U||J)*(Math.abs(J)-Math.abs(U));D-=be,U+=be}}else{var[ye,L]=[s.scale(j[0]),s.scale(j[1])];if(k=ye,D=Ox({axis:f,ticks:h,bandSize:o,offset:u.offset,entry:_,index:M}),R=L-ye,U=u.size,K={x:g.left,y:D,width:g.width,height:U},Math.abs(J)>0&&Math.abs(R)<Math.abs(J)){var V=Xt(R||J)*(Math.abs(J)-Math.abs(R));R+=V}}if(k==null||D==null||R==null||U==null)return null;var F=Rt(Rt({},_),{},{x:k,y:D,width:R,height:U,value:v?j:j[1],payload:_,background:K,tooltipPosition:{x:k+R/2,y:D+U/2}},b&&b[M]&&b[M].props);return F}).filter(Boolean)}function rT(e){var t=ra(e,l8),r=Nn();return E.createElement(vB,{id:t.id,type:"bar"},a=>E.createElement(E.Fragment,null,E.createElement(oB,{legendPayload:JB(t)}),E.createElement(lB,{fn:e8,args:t}),E.createElement(xB,{type:"bar",id:a,data:void 0,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,stackId:MN(t.stackId),hide:t.hide,barSize:t.barSize,minPointSize:t.minPointSize,maxBarSize:t.maxBarSize,isPanorama:r}),E.createElement(u8,Vi({},t,{id:a}))))}rT.displayName="Bar";function Pw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),r.push.apply(r,a)}return r}function pc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Pw(Object(r),!0).forEach(function(a){c8(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pw(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function c8(e,t,r){return(t=s8(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s8(e){var t=f8(e,"string");return typeof t=="symbol"?t:t+""}function f8(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var d8=(e,t)=>t,h8=(e,t,r)=>r,v8=(e,t,r,a)=>a,m8=(e,t,r,a,u)=>u,qu=Y([_y,m8],(e,t)=>e.filter(r=>r.type==="bar").find(r=>r.id===t)),y8=Y([qu],e=>e?.maxBarSize),p8=(e,t,r,a,u,o)=>o,Rw=(e,t,r)=>{var a=r??e;if(!ct(a))return Un(a,t,0)},g8=Y([ze,_y,d8,h8,v8],(e,t,r,a,u)=>t.filter(o=>e==="horizontal"?o.xAxisId===r:o.yAxisId===a).filter(o=>o.isPanorama===u).filter(o=>o.hide===!1).filter(o=>o.type==="bar")),b8=(e,t,r,a)=>{var u=ze(e);return u==="horizontal"?fm(e,"yAxis",r,a):fm(e,"xAxis",t,a)},x8=(e,t,r)=>{var a=ze(e);return a==="horizontal"?$S(e,"xAxis",t):$S(e,"yAxis",r)},S8=(e,t,r)=>{var a={},u=e.filter(Ts),o=e.filter(h=>h.stackId==null),s=u.reduce((h,v)=>(h[v.stackId]||(h[v.stackId]=[]),h[v.stackId].push(v),h),a),f=Object.entries(s).map(h=>{var[v,p]=h,g=p.map(S=>S.dataKey),b=Rw(t,r,p[0].barSize);return{stackId:v,dataKeys:g,barSize:b}}),m=o.map(h=>{var v=[h.dataKey].filter(g=>g!=null),p=Rw(t,r,h.barSize);return{stackId:void 0,dataKeys:v,barSize:p}});return[...f,...m]},w8=Y([g8,a4,x8],S8),O8=(e,t,r,a,u)=>{var o,s,f=qu(e,t,r,a,u);if(f!=null){var m=ze(e),h=wE(e),{maxBarSize:v}=f,p=ct(v)?h:v,g,b;return m==="horizontal"?(g=Ii(e,"xAxis",t,a),b=Ki(e,"xAxis",t,a)):(g=Ii(e,"yAxis",r,a),b=Ki(e,"yAxis",r,a)),(o=(s=$m(g,b,!0))!==null&&s!==void 0?s:p)!==null&&o!==void 0?o:0}},aT=(e,t,r,a)=>{var u=ze(e),o,s;return u==="horizontal"?(o=Ii(e,"xAxis",t,a),s=Ki(e,"xAxis",t,a)):(o=Ii(e,"yAxis",r,a),s=Ki(e,"yAxis",r,a)),$m(o,s)};function A8(e,t,r,a,u){var o=a.length;if(!(o<1)){var s=Un(e,r,0,!0),f,m=[];if(vn(a[0].barSize)){var h=!1,v=r/o,p=a.reduce((_,M)=>_+(M.barSize||0),0);p+=(o-1)*s,p>=r&&(p-=(o-1)*s,s=0),p>=r&&v>0&&(h=!0,v*=.9,p=o*v);var g=(r-p)/2>>0,b={offset:g-s,size:0};f=a.reduce((_,M)=>{var j,k={stackId:M.stackId,dataKeys:M.dataKeys,position:{offset:b.offset+b.size+s,size:h?v:(j=M.barSize)!==null&&j!==void 0?j:0}},D=[..._,k];return b=D[D.length-1].position,D},m)}else{var S=Un(t,r,0,!0);r-2*S-(o-1)*s<=0&&(s=0);var w=(r-2*S-(o-1)*s)/o;w>1&&(w>>=0);var O=vn(u)?Math.min(w,u):w;f=a.reduce((_,M,j)=>[..._,{stackId:M.stackId,dataKeys:M.dataKeys,position:{offset:S+(w+s)*j+(w-O)/2,size:O}}],m)}return f}}var E8=(e,t,r,a,u,o,s)=>{var f=ct(s)?t:s,m=A8(r,a,u!==o?u:o,e,f);return u!==o&&m!=null&&(m=m.map(h=>pc(pc({},h),{},{position:pc(pc({},h.position),{},{offset:h.position.offset-u/2})}))),m},T8=Y([w8,wE,r4,OE,O8,aT,y8],E8),_8=(e,t,r,a)=>Ii(e,"xAxis",t,a),j8=(e,t,r,a)=>Ii(e,"yAxis",r,a),M8=(e,t,r,a)=>Ki(e,"xAxis",t,a),C8=(e,t,r,a)=>Ki(e,"yAxis",r,a),D8=Y([T8,qu],(e,t)=>{if(!(e==null||t==null)){var r=e.find(a=>a.stackId===t.stackId&&t.dataKey!=null&&a.dataKeys.includes(t.dataKey));if(r!=null)return r.position}}),N8=(e,t)=>{var r=Ey(t);if(!(!e||r==null||t==null)){var{stackId:a}=t;if(a!=null){var u=e[a];if(u){var{stackedData:o}=u;if(o)return o.find(s=>s.key===r)}}}},P8=Y([b8,qu],N8),R8=Y([wt,_8,j8,M8,C8,D8,ze,yy,aT,P8,qu,p8],(e,t,r,a,u,o,s,f,m,h,v,p)=>{var{chartData:g,dataStartIndex:b,dataEndIndex:S}=f;if(!(v==null||o==null||s!=="horizontal"&&s!=="vertical"||t==null||r==null||a==null||u==null||m==null)){var{data:w}=v,O;if(w!=null&&w.length>0?O=w:O=g?.slice(b,S+1),O!=null)return o8({layout:s,barSettings:v,pos:o,bandSize:m,xAxis:t,yAxis:r,xAxisTicks:a,yAxisTicks:u,stackedData:h,displayedData:O,offset:e,cells:p})}}),k8=e=>{var{chartData:t}=e,r=St(),a=Nn();return E.useEffect(()=>a?()=>{}:(r(WS(t)),()=>{r(WS(void 0))}),[t,r,a]),null},kw={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},iT=mn({name:"brush",initialState:kw,reducers:{setBrushSettings(e,t){return t.payload==null?kw:t.payload}}}),{setBrushSettings:gq}=iT.actions,z8=iT.reducer;function B8(e,t,r){return(t=L8(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function L8(e){var t=U8(e,"string");return typeof t=="symbol"?t:t+""}function U8(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class Iy{static create(t){return new Iy(t)}constructor(t){this.scale=t}get domain(){return this.scale.domain}get range(){return this.scale.range}get rangeMin(){return this.range()[0]}get rangeMax(){return this.range()[1]}get bandwidth(){return this.scale.bandwidth}apply(t){var{bandAware:r,position:a}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t!==void 0){if(a)switch(a){case"start":return this.scale(t);case"middle":{var u=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+u}case"end":{var o=this.bandwidth?this.bandwidth():0;return this.scale(t)+o}default:return this.scale(t)}if(r){var s=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+s}return this.scale(t)}}isInRange(t){var r=this.range(),a=r[0],u=r[r.length-1];return a<=u?t>=a&&t<=u:t>=u&&t<=a}}B8(Iy,"EPS",1e-4);function q8(e){return(e%180+180)%180}var $8=function(t){var{width:r,height:a}=t,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=q8(u),s=o*Math.PI/180,f=Math.atan(a/r),m=s>f&&s<Math.PI-f?a/Math.sin(s):r/Math.cos(s);return Math.abs(m)},H8={dots:[],areas:[],lines:[]},lT=mn({name:"referenceElements",initialState:H8,reducers:{addDot:(e,t)=>{e.dots.push(t.payload)},removeDot:(e,t)=>{var r=yr(e).dots.findIndex(a=>a===t.payload);r!==-1&&e.dots.splice(r,1)},addArea:(e,t)=>{e.areas.push(t.payload)},removeArea:(e,t)=>{var r=yr(e).areas.findIndex(a=>a===t.payload);r!==-1&&e.areas.splice(r,1)},addLine:(e,t)=>{e.lines.push(t.payload)},removeLine:(e,t)=>{var r=yr(e).lines.findIndex(a=>a===t.payload);r!==-1&&e.lines.splice(r,1)}}}),{addDot:bq,removeDot:xq,addArea:Sq,removeArea:wq,addLine:Oq,removeLine:Aq}=lT.actions,Y8=lT.reducer,G8=E.createContext(void 0),K8=e=>{var{children:t}=e,[r]=E.useState("".concat(mu("recharts"),"-clip")),a=W2();if(a==null)return null;var{x:u,y:o,width:s,height:f}=a;return E.createElement(G8.Provider,{value:r},E.createElement("defs",null,E.createElement("clipPath",{id:r},E.createElement("rect",{x:u,y:o,height:f,width:s}))),t)};function Mv(e,t){for(var r in e)if({}.hasOwnProperty.call(e,r)&&(!{}.hasOwnProperty.call(t,r)||e[r]!==t[r]))return!1;for(var a in t)if({}.hasOwnProperty.call(t,a)&&!{}.hasOwnProperty.call(e,a))return!1;return!0}function uT(e,t,r){if(t<1)return[];if(t===1&&r===void 0)return e;for(var a=[],u=0;u<e.length;u+=t)a.push(e[u]);return a}function I8(e,t,r){var a={width:e.width+t.width,height:e.height+t.height};return $8(a,r)}function X8(e,t,r){var a=r==="width",{x:u,y:o,width:s,height:f}=e;return t===1?{start:a?u:o,end:a?u+s:o+f}:{start:a?u+s:o+f,end:a?u:o}}function es(e,t,r,a,u){if(e*t<e*a||e*t>e*u)return!1;var o=r();return e*(t-e*o/2-a)>=0&&e*(t+e*o/2-u)<=0}function V8(e,t){return uT(e,t+1)}function Z8(e,t,r,a,u){for(var o=(a||[]).slice(),{start:s,end:f}=t,m=0,h=1,v=s,p=function(){var S=a?.[m];if(S===void 0)return{v:uT(a,h)};var w=m,O,_=()=>(O===void 0&&(O=r(S,w)),O),M=S.coordinate,j=m===0||es(e,M,_,v,f);j||(m=0,v=s,h+=1),j&&(v=M+e*(_()/2+u),m+=h)},g;h<=o.length;)if(g=p(),g)return g.v;return[]}function zw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),r.push.apply(r,a)}return r}function Pt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?zw(Object(r),!0).forEach(function(a){Q8(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zw(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function Q8(e,t,r){return(t=W8(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function W8(e){var t=F8(e,"string");return typeof t=="symbol"?t:t+""}function F8(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function J8(e,t,r,a,u){for(var o=(a||[]).slice(),s=o.length,{start:f}=t,{end:m}=t,h=function(g){var b=o[g],S,w=()=>(S===void 0&&(S=r(b,g)),S);if(g===s-1){var O=e*(b.coordinate+e*w()/2-m);o[g]=b=Pt(Pt({},b),{},{tickCoord:O>0?b.coordinate-O*e:b.coordinate})}else o[g]=b=Pt(Pt({},b),{},{tickCoord:b.coordinate});var _=es(e,b.tickCoord,w,f,m);_&&(m=b.tickCoord-e*(w()/2+u),o[g]=Pt(Pt({},b),{},{isShow:!0}))},v=s-1;v>=0;v--)h(v);return o}function eL(e,t,r,a,u,o){var s=(a||[]).slice(),f=s.length,{start:m,end:h}=t;if(o){var v=a[f-1],p=r(v,f-1),g=e*(v.coordinate+e*p/2-h);s[f-1]=v=Pt(Pt({},v),{},{tickCoord:g>0?v.coordinate-g*e:v.coordinate});var b=es(e,v.tickCoord,()=>p,m,h);b&&(h=v.tickCoord-e*(p/2+u),s[f-1]=Pt(Pt({},v),{},{isShow:!0}))}for(var S=o?f-1:f,w=function(M){var j=s[M],k,D=()=>(k===void 0&&(k=r(j,M)),k);if(M===0){var R=e*(j.coordinate-e*D()/2-m);s[M]=j=Pt(Pt({},j),{},{tickCoord:R<0?j.coordinate-R*e:j.coordinate})}else s[M]=j=Pt(Pt({},j),{},{tickCoord:j.coordinate});var U=es(e,j.tickCoord,D,m,h);U&&(m=j.tickCoord+e*(D()/2+u),s[M]=Pt(Pt({},j),{},{isShow:!0}))},O=0;O<S;O++)w(O);return s}function Xy(e,t,r){var{tick:a,ticks:u,viewBox:o,minTickGap:s,orientation:f,interval:m,tickFormatter:h,unit:v,angle:p}=e;if(!u||!u.length||!a)return[];if(ce(m)||Mu.isSsr){var g;return(g=V8(u,ce(m)?m:0))!==null&&g!==void 0?g:[]}var b=[],S=f==="top"||f==="bottom"?"width":"height",w=v&&S==="width"?vu(v,{fontSize:t,letterSpacing:r}):{width:0,height:0},O=(j,k)=>{var D=typeof h=="function"?h(j.value,k):j.value;return S==="width"?I8(vu(D,{fontSize:t,letterSpacing:r}),w,p):vu(D,{fontSize:t,letterSpacing:r})[S]},_=u.length>=2?Xt(u[1].coordinate-u[0].coordinate):1,M=X8(o,_,S);return m==="equidistantPreserveStart"?Z8(_,M,O,u,s):(m==="preserveStart"||m==="preserveStartEnd"?b=eL(_,M,O,u,s,m==="preserveStartEnd"):b=J8(_,M,O,u,s),b.filter(j=>j.isShow))}var tL=["viewBox"],nL=["viewBox"];function zi(){return zi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)({}).hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},zi.apply(null,arguments)}function Bw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),r.push.apply(r,a)}return r}function ot(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Bw(Object(r),!0).forEach(function(a){Vy(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bw(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function Lw(e,t){if(e==null)return{};var r,a,u=rL(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(u[r]=e[r])}return u}function rL(e,t){if(e==null)return{};var r={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)!==-1)continue;r[a]=e[a]}return r}function Vy(e,t,r){return(t=aL(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function aL(e){var t=iL(e,"string");return typeof t=="symbol"?t:t+""}function iL(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class oa extends E.Component{constructor(t){super(t),this.tickRefs=E.createRef(),this.tickRefs.current=[],this.state={fontSize:"",letterSpacing:""}}shouldComponentUpdate(t,r){var{viewBox:a}=t,u=Lw(t,tL),o=this.props,{viewBox:s}=o,f=Lw(o,nL);return!Mv(a,s)||!Mv(u,f)||!Mv(r,this.state)}getTickLineCoord(t){var{x:r,y:a,width:u,height:o,orientation:s,tickSize:f,mirror:m,tickMargin:h}=this.props,v,p,g,b,S,w,O=m?-1:1,_=t.tickSize||f,M=ce(t.tickCoord)?t.tickCoord:t.coordinate;switch(s){case"top":v=p=t.coordinate,b=a+ +!m*o,g=b-O*_,w=g-O*h,S=M;break;case"left":g=b=t.coordinate,p=r+ +!m*u,v=p-O*_,S=v-O*h,w=M;break;case"right":g=b=t.coordinate,p=r+ +m*u,v=p+O*_,S=v+O*h,w=M;break;default:v=p=t.coordinate,b=a+ +m*o,g=b+O*_,w=g+O*h,S=M;break}return{line:{x1:v,y1:g,x2:p,y2:b},tick:{x:S,y:w}}}getTickTextAnchor(){var{orientation:t,mirror:r}=this.props,a;switch(t){case"left":a=r?"start":"end";break;case"right":a=r?"end":"start";break;default:a="middle";break}return a}getTickVerticalAnchor(){var{orientation:t,mirror:r}=this.props;switch(t){case"left":case"right":return"middle";case"top":return r?"start":"end";default:return r?"end":"start"}}renderAxisLine(){var{x:t,y:r,width:a,height:u,orientation:o,mirror:s,axisLine:f}=this.props,m=ot(ot(ot({},xt(this.props,!1)),xt(f,!1)),{},{fill:"none"});if(o==="top"||o==="bottom"){var h=+(o==="top"&&!s||o==="bottom"&&s);m=ot(ot({},m),{},{x1:t,y1:r+h*u,x2:t+a,y2:r+h*u})}else{var v=+(o==="left"&&!s||o==="right"&&s);m=ot(ot({},m),{},{x1:t+v*a,y1:r,x2:t+v*a,y2:r+u})}return E.createElement("line",zi({},m,{className:Xe("recharts-cartesian-axis-line",qa(f,"className"))}))}static renderTickItem(t,r,a){var u,o=Xe(r.className,"recharts-cartesian-axis-tick-value");if(E.isValidElement(t))u=E.cloneElement(t,ot(ot({},r),{},{className:o}));else if(typeof t=="function")u=t(ot(ot({},r),{},{className:o}));else{var s="recharts-cartesian-axis-tick-value";typeof t!="boolean"&&(s=Xe(s,t.className)),u=E.createElement(Gy,zi({},r,{className:s}),a)}return u}renderTicks(t,r){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],{tickLine:u,stroke:o,tick:s,tickFormatter:f,unit:m,padding:h}=this.props,v=Xy(ot(ot({},this.props),{},{ticks:a}),t,r),p=this.getTickTextAnchor(),g=this.getTickVerticalAnchor(),b=Tu(this.props),S=xt(s,!1),w=ot(ot({},b),{},{fill:"none"},xt(u,!1)),O=v.map((_,M)=>{var{line:j,tick:k}=this.getTickLineCoord(_),D=ot(ot(ot(ot({textAnchor:p,verticalAnchor:g},b),{},{stroke:"none",fill:o},S),k),{},{index:M,payload:_,visibleTicksCount:v.length,tickFormatter:f,padding:h});return E.createElement(na,zi({className:"recharts-cartesian-axis-tick",key:"tick-".concat(_.value,"-").concat(_.coordinate,"-").concat(_.tickCoord)},Em(this.props,_,M)),u&&E.createElement("line",zi({},w,j,{className:Xe("recharts-cartesian-axis-tick-line",qa(u,"className"))})),s&&oa.renderTickItem(s,D,"".concat(typeof f=="function"?f(_.value,M):_.value).concat(m||"")))});return O.length>0?E.createElement("g",{className:"recharts-cartesian-axis-ticks"},O):null}render(){var{axisLine:t,width:r,height:a,className:u,hide:o}=this.props;if(o)return null;var{ticks:s}=this.props;return r!=null&&r<=0||a!=null&&a<=0?null:E.createElement(na,{className:Xe("recharts-cartesian-axis",u),ref:f=>{if(f){var m=f.getElementsByClassName("recharts-cartesian-axis-tick-value");this.tickRefs.current=Array.from(m);var h=m[0];if(h){var v=window.getComputedStyle(h).fontSize,p=window.getComputedStyle(h).letterSpacing;(v!==this.state.fontSize||p!==this.state.letterSpacing)&&this.setState({fontSize:window.getComputedStyle(h).fontSize,letterSpacing:window.getComputedStyle(h).letterSpacing})}}}},t&&this.renderAxisLine(),this.renderTicks(this.state.fontSize,this.state.letterSpacing,s),cn.renderCallByParent(this.props))}}Vy(oa,"displayName","CartesianAxis");Vy(oa,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var lL=["x1","y1","x2","y2","key"],uL=["offset"],oL=["xAxisId","yAxisId"],cL=["xAxisId","yAxisId"];function Uw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),r.push.apply(r,a)}return r}function kt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Uw(Object(r),!0).forEach(function(a){sL(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Uw(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function sL(e,t,r){return(t=fL(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fL(e){var t=dL(e,"string");return typeof t=="symbol"?t:t+""}function dL(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ra(){return Ra=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)({}).hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Ra.apply(null,arguments)}function ts(e,t){if(e==null)return{};var r,a,u=hL(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(u[r]=e[r])}return u}function hL(e,t){if(e==null)return{};var r={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)!==-1)continue;r[a]=e[a]}return r}var vL=e=>{var{fill:t}=e;if(!t||t==="none")return null;var{fillOpacity:r,x:a,y:u,width:o,height:s,ry:f}=e;return E.createElement("rect",{x:a,y:u,ry:f,width:o,height:s,stroke:"none",fill:t,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function oT(e,t){var r;if(E.isValidElement(e))r=E.cloneElement(e,t);else if(typeof e=="function")r=e(t);else{var{x1:a,y1:u,x2:o,y2:s,key:f}=t,m=ts(t,lL),h=Tu(m),{offset:v}=h,p=ts(h,uL);r=E.createElement("line",Ra({},p,{x1:a,y1:u,x2:o,y2:s,fill:"none",key:f}))}return r}function mL(e){var{x:t,width:r,horizontal:a=!0,horizontalPoints:u}=e;if(!a||!u||!u.length)return null;var{xAxisId:o,yAxisId:s}=e,f=ts(e,oL),m=u.map((h,v)=>{var p=kt(kt({},f),{},{x1:t,y1:h,x2:t+r,y2:h,key:"line-".concat(v),index:v});return oT(a,p)});return E.createElement("g",{className:"recharts-cartesian-grid-horizontal"},m)}function yL(e){var{y:t,height:r,vertical:a=!0,verticalPoints:u}=e;if(!a||!u||!u.length)return null;var{xAxisId:o,yAxisId:s}=e,f=ts(e,cL),m=u.map((h,v)=>{var p=kt(kt({},f),{},{x1:h,y1:t,x2:h,y2:t+r,key:"line-".concat(v),index:v});return oT(a,p)});return E.createElement("g",{className:"recharts-cartesian-grid-vertical"},m)}function pL(e){var{horizontalFill:t,fillOpacity:r,x:a,y:u,width:o,height:s,horizontalPoints:f,horizontal:m=!0}=e;if(!m||!t||!t.length)return null;var h=f.map(p=>Math.round(p+u-u)).sort((p,g)=>p-g);u!==h[0]&&h.unshift(0);var v=h.map((p,g)=>{var b=!h[g+1],S=b?u+s-p:h[g+1]-p;if(S<=0)return null;var w=g%t.length;return E.createElement("rect",{key:"react-".concat(g),y:p,x:a,height:S,width:o,stroke:"none",fill:t[w],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return E.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},v)}function gL(e){var{vertical:t=!0,verticalFill:r,fillOpacity:a,x:u,y:o,width:s,height:f,verticalPoints:m}=e;if(!t||!r||!r.length)return null;var h=m.map(p=>Math.round(p+u-u)).sort((p,g)=>p-g);u!==h[0]&&h.unshift(0);var v=h.map((p,g)=>{var b=!h[g+1],S=b?u+s-p:h[g+1]-p;if(S<=0)return null;var w=g%r.length;return E.createElement("rect",{key:"react-".concat(g),x:p,y:o,width:S,height:f,stroke:"none",fill:r[w],fillOpacity:a,className:"recharts-cartesian-grid-bg"})});return E.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},v)}var bL=(e,t)=>{var{xAxis:r,width:a,height:u,offset:o}=e;return uA(Xy(kt(kt(kt({},oa.defaultProps),r),{},{ticks:oA(r),viewBox:{x:0,y:0,width:a,height:u}})),o.left,o.left+o.width,t)},xL=(e,t)=>{var{yAxis:r,width:a,height:u,offset:o}=e;return uA(Xy(kt(kt(kt({},oa.defaultProps),r),{},{ticks:oA(r),viewBox:{x:0,y:0,width:a,height:u}})),o.top,o.top+o.height,t)},SL={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[],xAxisId:0,yAxisId:0};function cT(e){var t=hA(),r=vA(),a=dA(),u=kt(kt({},ra(e,SL)),{},{x:ce(e.x)?e.x:a.left,y:ce(e.y)?e.y:a.top,width:ce(e.width)?e.width:a.width,height:ce(e.height)?e.height:a.height}),{xAxisId:o,yAxisId:s,x:f,y:m,width:h,height:v,syncWithTicks:p,horizontalValues:g,verticalValues:b}=u,S=Nn(),w=de(J=>HS(J,"xAxis",o,S)),O=de(J=>HS(J,"yAxis",s,S));if(!ce(h)||h<=0||!ce(v)||v<=0||!ce(f)||f!==+f||!ce(m)||m!==+m)return null;var _=u.verticalCoordinatesGenerator||bL,M=u.horizontalCoordinatesGenerator||xL,{horizontalPoints:j,verticalPoints:k}=u;if((!j||!j.length)&&typeof M=="function"){var D=g&&g.length,R=M({yAxis:O?kt(kt({},O),{},{ticks:D?g:O.ticks}):void 0,width:t,height:r,offset:a},D?!0:p);hu(Array.isArray(R),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(typeof R,"]")),Array.isArray(R)&&(j=R)}if((!k||!k.length)&&typeof _=="function"){var U=b&&b.length,K=_({xAxis:w?kt(kt({},w),{},{ticks:U?b:w.ticks}):void 0,width:t,height:r,offset:a},U?!0:p);hu(Array.isArray(K),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(typeof K,"]")),Array.isArray(K)&&(k=K)}return E.createElement("g",{className:"recharts-cartesian-grid"},E.createElement(vL,{fill:u.fill,fillOpacity:u.fillOpacity,x:u.x,y:u.y,width:u.width,height:u.height,ry:u.ry}),E.createElement(pL,Ra({},u,{horizontalPoints:j})),E.createElement(gL,Ra({},u,{verticalPoints:k})),E.createElement(mL,Ra({},u,{offset:a,horizontalPoints:j,xAxis:w,yAxis:O})),E.createElement(yL,Ra({},u,{offset:a,verticalPoints:k,xAxis:w,yAxis:O})))}cT.displayName="CartesianGrid";function qw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),r.push.apply(r,a)}return r}function $w(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qw(Object(r),!0).forEach(function(a){wL(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qw(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function wL(e,t,r){return(t=OL(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function OL(e){var t=AL(e,"string");return typeof t=="symbol"?t:t+""}function AL(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var EL={xAxis:{},yAxis:{},zAxis:{}},sT=mn({name:"cartesianAxis",initialState:EL,reducers:{addXAxis(e,t){e.xAxis[t.payload.id]=t.payload},removeXAxis(e,t){delete e.xAxis[t.payload.id]},addYAxis(e,t){e.yAxis[t.payload.id]=t.payload},removeYAxis(e,t){delete e.yAxis[t.payload.id]},addZAxis(e,t){e.zAxis[t.payload.id]=t.payload},removeZAxis(e,t){delete e.zAxis[t.payload.id]},updateYAxisWidth(e,t){var{id:r,width:a}=t.payload;e.yAxis[r]&&(e.yAxis[r]=$w($w({},e.yAxis[r]),{},{width:a}))}}}),{addXAxis:TL,removeXAxis:_L,addYAxis:jL,removeYAxis:ML,addZAxis:Eq,removeZAxis:Tq,updateYAxisWidth:CL}=sT.actions,DL=sT.reducer,NL=["children"],PL=["dangerouslySetInnerHTML","ticks"];function fT(e,t,r){return(t=RL(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function RL(e){var t=kL(e,"string");return typeof t=="symbol"?t:t+""}function kL(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function gm(){return gm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)({}).hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},gm.apply(null,arguments)}function dT(e,t){if(e==null)return{};var r,a,u=zL(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(u[r]=e[r])}return u}function zL(e,t){if(e==null)return{};var r={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)!==-1)continue;r[a]=e[a]}return r}function BL(e){var t=St(),r=E.useMemo(()=>{var{children:o}=e,s=dT(e,NL);return s},[e]),a=de(o=>Er(o,r.id)),u=r===a;return E.useEffect(()=>(t(TL(r)),()=>{t(_L(r))}),[r,t]),u?e.children:null}var LL=e=>{var{xAxisId:t,className:r}=e,a=de(fA),u=Nn(),o="xAxis",s=de(b=>tl(b,o,t,u)),f=de(b=>s2(b,o,t,u)),m=de(b=>l2(b,t)),h=de(b=>Z4(b,t));if(m==null||h==null)return null;var{dangerouslySetInnerHTML:v,ticks:p}=e,g=dT(e,PL);return E.createElement(oa,gm({},g,{scale:s,x:h.x,y:h.y,width:m.width,height:m.height,className:Xe("recharts-".concat(o," ").concat(o),r),viewBox:a,ticks:f}))},UL=e=>{var t,r,a,u,o;return E.createElement(BL,{interval:(t=e.interval)!==null&&t!==void 0?t:"preserveEnd",id:e.xAxisId,scale:e.scale,type:e.type,padding:e.padding,allowDataOverflow:e.allowDataOverflow,domain:e.domain,dataKey:e.dataKey,allowDuplicatedCategory:e.allowDuplicatedCategory,allowDecimals:e.allowDecimals,tickCount:e.tickCount,includeHidden:(r=e.includeHidden)!==null&&r!==void 0?r:!1,reversed:e.reversed,ticks:e.ticks,height:e.height,orientation:e.orientation,mirror:e.mirror,hide:e.hide,unit:e.unit,name:e.name,angle:(a=e.angle)!==null&&a!==void 0?a:0,minTickGap:(u=e.minTickGap)!==null&&u!==void 0?u:5,tick:(o=e.tick)!==null&&o!==void 0?o:!0,tickFormatter:e.tickFormatter},E.createElement(LL,e))};class Zy extends E.Component{render(){return E.createElement(UL,this.props)}}fT(Zy,"displayName","XAxis");fT(Zy,"defaultProps",{allowDataOverflow:ln.allowDataOverflow,allowDecimals:ln.allowDecimals,allowDuplicatedCategory:ln.allowDuplicatedCategory,height:ln.height,hide:!1,mirror:ln.mirror,orientation:ln.orientation,padding:ln.padding,reversed:ln.reversed,scale:ln.scale,tickCount:ln.tickCount,type:ln.type,xAxisId:0});var qL=e=>{var{ticks:t,label:r,labelGapWithTick:a=5,tickSize:u=0,tickMargin:o=0}=e,s=0;if(t){t.forEach(v=>{if(v){var p=v.getBoundingClientRect();p.width>s&&(s=p.width)}});var f=r?r.getBoundingClientRect().width:0,m=u+o,h=s+m+f+(r?a:0);return Math.round(h)}return 0},$L=["dangerouslySetInnerHTML","ticks"];function hT(e,t,r){return(t=HL(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function HL(e){var t=YL(e,"string");return typeof t=="symbol"?t:t+""}function YL(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function bm(){return bm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)({}).hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},bm.apply(null,arguments)}function GL(e,t){if(e==null)return{};var r,a,u=KL(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(u[r]=e[r])}return u}function KL(e,t){if(e==null)return{};var r={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)!==-1)continue;r[a]=e[a]}return r}function IL(e){var t=St();return E.useEffect(()=>(t(jL(e)),()=>{t(ML(e))}),[e,t]),null}var XL=e=>{var t,{yAxisId:r,className:a,width:u,label:o}=e,s=E.useRef(null),f=E.useRef(null),m=de(fA),h=Nn(),v=St(),p="yAxis",g=de(j=>tl(j,p,r,h)),b=de(j=>u2(j,r)),S=de(j=>Q4(j,r)),w=de(j=>s2(j,p,r,h));if(E.useLayoutEffect(()=>{var j;if(!(u!=="auto"||!b||Ky(o)||E.isValidElement(o))){var k=s.current,D=k==null||(j=k.tickRefs)===null||j===void 0?void 0:j.current,{tickSize:R,tickMargin:U}=k.props,K=qL({ticks:D,label:f.current,labelGapWithTick:5,tickSize:R,tickMargin:U});Math.round(b.width)!==Math.round(K)&&v(CL({id:r,width:K}))}},[s,s==null||(t=s.current)===null||t===void 0||(t=t.tickRefs)===null||t===void 0?void 0:t.current,b?.width,b,v,o,r,u]),b==null||S==null)return null;var{dangerouslySetInnerHTML:O,ticks:_}=e,M=GL(e,$L);return E.createElement(oa,bm({},M,{ref:s,labelRef:f,scale:g,x:S.x,y:S.y,width:b.width,height:b.height,className:Xe("recharts-".concat(p," ").concat(p),a),viewBox:m,ticks:w}))},VL=e=>{var t,r,a,u,o;return E.createElement(E.Fragment,null,E.createElement(IL,{interval:(t=e.interval)!==null&&t!==void 0?t:"preserveEnd",id:e.yAxisId,scale:e.scale,type:e.type,domain:e.domain,allowDataOverflow:e.allowDataOverflow,dataKey:e.dataKey,allowDuplicatedCategory:e.allowDuplicatedCategory,allowDecimals:e.allowDecimals,tickCount:e.tickCount,padding:e.padding,includeHidden:(r=e.includeHidden)!==null&&r!==void 0?r:!1,reversed:e.reversed,ticks:e.ticks,width:e.width,orientation:e.orientation,mirror:e.mirror,hide:e.hide,unit:e.unit,name:e.name,angle:(a=e.angle)!==null&&a!==void 0?a:0,minTickGap:(u=e.minTickGap)!==null&&u!==void 0?u:5,tick:(o=e.tick)!==null&&o!==void 0?o:!0,tickFormatter:e.tickFormatter}),E.createElement(XL,e))},ZL={allowDataOverflow:un.allowDataOverflow,allowDecimals:un.allowDecimals,allowDuplicatedCategory:un.allowDuplicatedCategory,hide:!1,mirror:un.mirror,orientation:un.orientation,padding:un.padding,reversed:un.reversed,scale:un.scale,tickCount:un.tickCount,type:un.type,width:un.width,yAxisId:0};class Qy extends E.Component{render(){return E.createElement(VL,this.props)}}hT(Qy,"displayName","YAxis");hT(Qy,"defaultProps",ZL);var Cv={exports:{}},Dv={};/**
 * @license React
 * use-sync-external-store-with-selector.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Hw;function QL(){if(Hw)return Dv;Hw=1;var e=Zi();function t(m,h){return m===h&&(m!==0||1/m===1/h)||m!==m&&h!==h}var r=typeof Object.is=="function"?Object.is:t,a=e.useSyncExternalStore,u=e.useRef,o=e.useEffect,s=e.useMemo,f=e.useDebugValue;return Dv.useSyncExternalStoreWithSelector=function(m,h,v,p,g){var b=u(null);if(b.current===null){var S={hasValue:!1,value:null};b.current=S}else S=b.current;b=s(function(){function O(D){if(!_){if(_=!0,M=D,D=p(D),g!==void 0&&S.hasValue){var R=S.value;if(g(R,D))return j=R}return j=D}if(R=j,r(M,D))return R;var U=p(D);return g!==void 0&&g(R,U)?(M=D,R):(M=D,j=U)}var _=!1,M,j,k=v===void 0?null:v;return[function(){return O(h())},k===null?void 0:function(){return O(k())}]},[h,v,p,g]);var w=a(m,b[0],b[1]);return o(function(){S.hasValue=!0,S.value=w},[w]),f(w),w},Dv}var Yw;function WL(){return Yw||(Yw=1,Cv.exports=QL()),Cv.exports}WL();function FL(e){e()}function JL(){let e=null,t=null;return{clear(){e=null,t=null},notify(){FL(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){const r=[];let a=e;for(;a;)r.push(a),a=a.next;return r},subscribe(r){let a=!0;const u=t={callback:r,next:null,prev:t};return u.prev?u.prev.next=u:e=u,function(){!a||e===null||(a=!1,u.next?u.next.prev=u.prev:t=u.prev,u.prev?u.prev.next=u.next:e=u.next)}}}}var Gw={notify(){},get:()=>[]};function eU(e,t){let r,a=Gw,u=0,o=!1;function s(w){v();const O=a.subscribe(w);let _=!1;return()=>{_||(_=!0,O(),p())}}function f(){a.notify()}function m(){S.onStateChange&&S.onStateChange()}function h(){return o}function v(){u++,r||(r=e.subscribe(m),a=JL())}function p(){u--,r&&u===0&&(r(),r=void 0,a.clear(),a=Gw)}function g(){o||(o=!0,v())}function b(){o&&(o=!1,p())}const S={addNestedSub:s,notifyNestedSubs:f,handleChangeWrapper:m,isSubscribed:h,trySubscribe:g,tryUnsubscribe:b,getListeners:()=>a};return S}var tU=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",nU=tU(),rU=()=>typeof navigator<"u"&&navigator.product==="ReactNative",aU=rU(),iU=()=>nU||aU?E.useLayoutEffect:E.useEffect,lU=iU(),uU=Symbol.for("react-redux-context"),oU=typeof globalThis<"u"?globalThis:{};function cU(){if(!E.createContext)return{};const e=oU[uU]??=new Map;let t=e.get(E.createContext);return t||(t=E.createContext(null),e.set(E.createContext,t)),t}var sU=cU();function fU(e){const{children:t,context:r,serverState:a,store:u}=e,o=E.useMemo(()=>{const m=eU(u);return{store:u,subscription:m,getServerState:a?()=>a:void 0}},[u,a]),s=E.useMemo(()=>u.getState(),[u]);lU(()=>{const{subscription:m}=o;return m.onStateChange=m.notifyNestedSubs,m.trySubscribe(),s!==u.getState()&&m.notifyNestedSubs(),()=>{m.tryUnsubscribe(),m.onStateChange=void 0}},[o,s]);const f=r||sU;return E.createElement(f.Provider,{value:o},t)}var dU=fU,hU=(e,t)=>t,Wy=Y([hU,ze,ME,ft,E2,Tr,ez,wt],iz),Fy=e=>{var t=e.currentTarget.getBoundingClientRect(),r=t.width/e.currentTarget.offsetWidth,a=t.height/e.currentTarget.offsetHeight;return{chartX:Math.round((e.clientX-t.left)/r),chartY:Math.round((e.clientY-t.top)/a)}},vT=Cn("mouseClick"),mT=ju();mT.startListening({actionCreator:vT,effect:(e,t)=>{var r=e.payload,a=Wy(t.getState(),Fy(r));a?.activeIndex!=null&&t.dispatch(c6({activeIndex:a.activeIndex,activeDataKey:void 0,activeCoordinate:a.activeCoordinate}))}});var xm=Cn("mouseMove"),yT=ju();yT.startListening({actionCreator:xm,effect:(e,t)=>{var r=e.payload,a=t.getState(),u=ky(a,a.tooltip.settings.shared),o=Wy(a,Fy(r));u==="axis"&&(o?.activeIndex!=null?t.dispatch(g2({activeIndex:o.activeIndex,activeDataKey:void 0,activeCoordinate:o.activeCoordinate})):t.dispatch(p2()))}});function vU(e,t){return t instanceof HTMLElement?"HTMLElement <".concat(t.tagName,' class="').concat(t.className,'">'):t===window?"global.window":t}var Kw={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,barSize:void 0,className:void 0,maxBarSize:void 0,stackOffset:"none",syncId:void 0,syncMethod:"index"},pT=mn({name:"rootProps",initialState:Kw,reducers:{updateOptions:(e,t)=>{var r;e.accessibilityLayer=t.payload.accessibilityLayer,e.barCategoryGap=t.payload.barCategoryGap,e.barGap=(r=t.payload.barGap)!==null&&r!==void 0?r:Kw.barGap,e.barSize=t.payload.barSize,e.maxBarSize=t.payload.maxBarSize,e.stackOffset=t.payload.stackOffset,e.syncId=t.payload.syncId,e.syncMethod=t.payload.syncMethod,e.className=t.payload.className}}}),mU=pT.reducer,{updateOptions:yU}=pT.actions,gT=mn({name:"polarOptions",initialState:null,reducers:{updatePolarOptions:(e,t)=>t.payload}}),{updatePolarOptions:_q}=gT.actions,pU=gT.reducer,bT=Cn("keyDown"),xT=Cn("focus"),Jy=ju();Jy.startListening({actionCreator:bT,effect:(e,t)=>{var r=t.getState(),a=r.rootProps.accessibilityLayer!==!1;if(a){var{keyboardInteraction:u}=r.tooltip,o=e.payload;if(!(o!=="ArrowRight"&&o!=="ArrowLeft"&&o!=="Enter")){var s=Number(zy(u,rl(r))),f=Tr(r);if(o==="Enter"){var m=Zc(r,"axis","hover",String(u.index));t.dispatch(hm({active:!u.active,activeIndex:u.index,activeDataKey:u.dataKey,activeCoordinate:m}));return}var h=e6(r),v=h==="left-to-right"?1:-1,p=o==="ArrowRight"?1:-1,g=s+p*v;if(!(f==null||g>=f.length||g<0)){var b=Zc(r,"axis","hover",String(g));t.dispatch(hm({active:!0,activeIndex:g.toString(),activeDataKey:void 0,activeCoordinate:b}))}}}}});Jy.startListening({actionCreator:xT,effect:(e,t)=>{var r=t.getState(),a=r.rootProps.accessibilityLayer!==!1;if(a){var{keyboardInteraction:u}=r.tooltip;if(!u.active&&u.index==null){var o="0",s=Zc(r,"axis","hover",String(o));t.dispatch(hm({activeDataKey:void 0,active:!0,activeIndex:o,activeCoordinate:s}))}}}});var _n=Cn("externalEvent"),ST=ju();ST.startListening({actionCreator:_n,effect:(e,t)=>{if(e.payload.handler!=null){var r=t.getState(),a={activeCoordinate:K6(r),activeDataKey:M2(r),activeIndex:Xi(r),activeLabel:j2(r),activeTooltipIndex:Xi(r),isTooltipActive:I6(r)};e.payload.handler(a,e.payload.reactEvent)}}});var gU=Y([nl],e=>e.tooltipItemPayloads),bU=Y([gU,Lu,(e,t,r)=>t,(e,t,r)=>r],(e,t,r,a)=>{var u=e.find(f=>f.settings.dataKey===a);if(u!=null){var{positions:o}=u;if(o!=null){var s=t(o,r);return s}}}),wT=Cn("touchMove"),OT=ju();OT.startListening({actionCreator:wT,effect:(e,t)=>{var r=e.payload,a=t.getState(),u=ky(a,a.tooltip.settings.shared);if(u==="axis"){var o=Wy(a,Fy({clientX:r.touches[0].clientX,clientY:r.touches[0].clientY,currentTarget:r.currentTarget}));o?.activeIndex!=null&&t.dispatch(g2({activeIndex:o.activeIndex,activeDataKey:void 0,activeCoordinate:o.activeCoordinate}))}else if(u==="item"){var s,f=r.touches[0],m=document.elementFromPoint(f.clientX,f.clientY);if(!m||!m.getAttribute)return;var h=m.getAttribute(LN),v=(s=m.getAttribute(UN))!==null&&s!==void 0?s:void 0,p=bU(t.getState(),h,v);t.dispatch(y2({activeDataKey:v,activeIndex:h,activeCoordinate:p}))}}});var xU=BO({brush:z8,cartesianAxis:DL,chartData:wz,errorBars:BB,graphicalItems:bB,layout:uN,legend:QN,options:pz,polarAxis:Y5,polarOptions:pU,referenceElements:Y8,rootProps:mU,tooltip:s6}),SU=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Chart";return ND({reducer:xU,preloadedState:t,middleware:a=>a({serializableCheck:!1}).concat([mT.middleware,yT.middleware,Jy.middleware,ST.middleware,OT.middleware]),devTools:{serialize:{replacer:vU},name:"recharts-".concat(r)}})};function wU(e){var{preloadedState:t,children:r,reduxStoreName:a}=e,u=Nn(),o=E.useRef(null);if(u)return r;o.current==null&&(o.current=SU(t,a));var s=km;return E.createElement(dU,{context:s,store:o.current},r)}function OU(e){var{layout:t,width:r,height:a,margin:u}=e,o=St(),s=Nn();return E.useEffect(()=>{s||(o(aN(t)),o(iN({width:r,height:a})),o(rN(u)))},[o,s,t,r,a,u]),null}function AU(e){var t=St();return E.useEffect(()=>{t(yU(e))},[t,e]),null}var EU=["children"];function TU(e,t){if(e==null)return{};var r,a,u=_U(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(u[r]=e[r])}return u}function _U(e,t){if(e==null)return{};var r={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)!==-1)continue;r[a]=e[a]}return r}function ns(){return ns=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)({}).hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},ns.apply(null,arguments)}var jU={width:"100%",height:"100%"},MU=E.forwardRef((e,t)=>{var r=hA(),a=vA(),u=yA();if(!Nc(r)||!Nc(a))return null;var{children:o,otherAttributes:s,title:f,desc:m}=e,h,v;return typeof s.tabIndex=="number"?h=s.tabIndex:h=u?0:void 0,typeof s.role=="string"?v=s.role:v=u?"application":void 0,E.createElement(uO,ns({},s,{title:f,desc:m,role:v,tabIndex:h,width:r,height:a,style:jU,ref:t}),o)}),CU=e=>{var{children:t}=e,r=de(vs);if(!r)return null;var{width:a,height:u,y:o,x:s}=r;return E.createElement(uO,{width:a,height:u,x:s,y:o},t)},Iw=E.forwardRef((e,t)=>{var{children:r}=e,a=TU(e,EU),u=Nn();return u?E.createElement(CU,null,r):E.createElement(MU,ns({ref:t},a),r)});function DU(){var e=St(),[t,r]=E.useState(null),a=de(BN);return E.useEffect(()=>{if(t!=null){var u=t.getBoundingClientRect(),o=u.width/t.offsetWidth;vn(o)&&o!==a&&e(lN(o))}},[t,e,a]),r}function Xw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),r.push.apply(r,a)}return r}function NU(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Xw(Object(r),!0).forEach(function(a){PU(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xw(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function PU(e,t,r){return(t=RU(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function RU(e){var t=kU(e,"string");return typeof t=="symbol"?t:t+""}function kU(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var zU=E.forwardRef((e,t)=>{var{children:r,className:a,height:u,onClick:o,onContextMenu:s,onDoubleClick:f,onMouseDown:m,onMouseEnter:h,onMouseLeave:v,onMouseMove:p,onMouseUp:g,onTouchEnd:b,onTouchMove:S,onTouchStart:w,style:O,width:_}=e,M=St(),[j,k]=E.useState(null),[D,R]=E.useState(null);Ez();var U=DU(),K=E.useCallback(X=>{U(X),typeof t=="function"&&t(X),k(X),R(X)},[U,t,k,R]),J=E.useCallback(X=>{M(vT(X)),M(_n({handler:o,reactEvent:X}))},[M,o]),re=E.useCallback(X=>{M(xm(X)),M(_n({handler:h,reactEvent:X}))},[M,h]),te=E.useCallback(X=>{M(p2()),M(_n({handler:v,reactEvent:X}))},[M,v]),ae=E.useCallback(X=>{M(xm(X)),M(_n({handler:p,reactEvent:X}))},[M,p]),ge=E.useCallback(()=>{M(xT())},[M]),be=E.useCallback(X=>{M(bT(X.key))},[M]),ye=E.useCallback(X=>{M(_n({handler:s,reactEvent:X}))},[M,s]),L=E.useCallback(X=>{M(_n({handler:f,reactEvent:X}))},[M,f]),V=E.useCallback(X=>{M(_n({handler:m,reactEvent:X}))},[M,m]),F=E.useCallback(X=>{M(_n({handler:g,reactEvent:X}))},[M,g]),he=E.useCallback(X=>{M(_n({handler:w,reactEvent:X}))},[M,w]),N=E.useCallback(X=>{M(wT(X)),M(_n({handler:S,reactEvent:X}))},[M,S]),Z=E.useCallback(X=>{M(_n({handler:b,reactEvent:X}))},[M,b]);return E.createElement(k2.Provider,{value:j},E.createElement(jM.Provider,{value:D},E.createElement("div",{className:Xe("recharts-wrapper",a),style:NU({position:"relative",cursor:"default",width:_,height:u},O),onClick:J,onContextMenu:ye,onDoubleClick:L,onFocus:ge,onKeyDown:be,onMouseDown:V,onMouseEnter:re,onMouseLeave:te,onMouseMove:ae,onMouseUp:F,onTouchEnd:Z,onTouchMove:N,onTouchStart:he,ref:K},r)))}),BU=["children","className","width","height","style","compact","title","desc"];function LU(e,t){if(e==null)return{};var r,a,u=UU(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(u[r]=e[r])}return u}function UU(e,t){if(e==null)return{};var r={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)!==-1)continue;r[a]=e[a]}return r}var qU=E.forwardRef((e,t)=>{var{children:r,className:a,width:u,height:o,style:s,compact:f,title:m,desc:h}=e,v=LU(e,BU),p=Tu(v);return f?E.createElement(Iw,{otherAttributes:p,title:m,desc:h},r):E.createElement(zU,{className:a,style:s,width:u,height:o,onClick:e.onClick,onMouseLeave:e.onMouseLeave,onMouseEnter:e.onMouseEnter,onMouseMove:e.onMouseMove,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onContextMenu:e.onContextMenu,onDoubleClick:e.onDoubleClick,onTouchStart:e.onTouchStart,onTouchMove:e.onTouchMove,onTouchEnd:e.onTouchEnd},E.createElement(Iw,{otherAttributes:p,title:m,desc:h,ref:t},E.createElement(K8,null,r)))}),$U=["width","height"];function Sm(){return Sm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)({}).hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Sm.apply(null,arguments)}function HU(e,t){if(e==null)return{};var r,a,u=YU(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(u[r]=e[r])}return u}function YU(e,t){if(e==null)return{};var r={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)!==-1)continue;r[a]=e[a]}return r}var GU={top:5,right:5,bottom:5,left:5},KU={accessibilityLayer:!0,layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:GU,reverseStackOrder:!1,syncMethod:"index"},IU=E.forwardRef(function(t,r){var a,u=ra(t.categoricalChartProps,KU),{width:o,height:s}=u,f=HU(u,$U);if(!Nc(o)||!Nc(s))return null;var{chartName:m,defaultTooltipEventType:h,validateTooltipEventTypes:v,tooltipPayloadSearcher:p,categoricalChartProps:g}=t,b={chartName:m,defaultTooltipEventType:h,validateTooltipEventTypes:v,tooltipPayloadSearcher:p,eventEmitter:void 0};return E.createElement(wU,{preloadedState:{options:b},reduxStoreName:(a=g.id)!==null&&a!==void 0?a:m},E.createElement(k8,{chartData:g.data}),E.createElement(OU,{width:o,height:s,layout:u.layout,margin:u.margin}),E.createElement(AU,{accessibilityLayer:u.accessibilityLayer,barCategoryGap:u.barCategoryGap,maxBarSize:u.maxBarSize,stackOffset:u.stackOffset,barGap:u.barGap,barSize:u.barSize,syncId:u.syncId,syncMethod:u.syncMethod,className:u.className}),E.createElement(qU,Sm({},f,{width:o,height:s,ref:r})))}),XU=["axis","item"],VU=E.forwardRef((e,t)=>E.createElement(IU,{chartName:"BarChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:XU,tooltipPayloadSearcher:mz,categoricalChartProps:e,ref:t}));function ZU({data:e,title:t,height:r=400,className:a=""}){return!e||e.length===0?T.jsx("div",{className:`flex items-center justify-center ${a}`,style:{height:r/4},children:T.jsx("p",{className:"text-gray-500",children:"No data available"})}):T.jsxs("div",{className:`w-full ${a}`,children:[t&&T.jsx("h3",{className:"text-lg font-semibold mb-4 text-gray-800",children:t}),T.jsx(Yz,{width:"100%",height:r,children:T.jsxs(VU,{data:e,margin:{top:20,right:30,left:20,bottom:60},children:[T.jsx(cT,{strokeDasharray:"3 3",className:"opacity-30"}),T.jsx(Zy,{dataKey:"name",angle:-45,textAnchor:"end",height:60,fontSize:12,className:"fill-gray-600"}),T.jsx(Qy,{fontSize:12,className:"fill-gray-600"}),T.jsx(Pz,{contentStyle:{backgroundColor:"white",border:"1px solid #e2e8f0",borderRadius:"6px",boxShadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1)",fontSize:"14px"},formatter:u=>[u.toFixed(2),"Score"],labelStyle:{color:"#374151",fontWeight:"bold"}}),T.jsx(rT,{dataKey:"value",fill:"#3b82f6",radius:[2,2,0,0],className:"hover:opacity-80 transition-opacity"})]})})]})}function Vw(e){return Object.entries(e).map(([t,r])=>({name:t,value:r})).sort((t,r)=>r.value-t.value)}function QU({stats:e,className:t=""}){const{overall_scores:r,metadata:a}=e,u=Vw(r),o=Object.keys(r).length>0;return T.jsxs("div",{className:`space-y-6 ${t}`,children:[T.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 p-6",children:[T.jsx("h2",{className:"text-xl font-bold text-gray-900 mb-4",children:"Summary Statistics"}),T.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:[T.jsxs("div",{className:"text-center",children:[T.jsx("div",{className:"text-2xl font-bold text-blue-600",children:a.num_players}),T.jsx("div",{className:"text-sm text-gray-600",children:"Players"})]}),T.jsxs("div",{className:"text-center",children:[T.jsx("div",{className:"text-2xl font-bold text-green-600",children:a.num_games}),T.jsx("div",{className:"text-sm text-gray-600",children:"Games"})]}),T.jsxs("div",{className:"text-center",children:[T.jsx("div",{className:"text-2xl font-bold text-purple-600",children:a.num_maps}),T.jsx("div",{className:"text-sm text-gray-600",children:"Maps"})]}),T.jsxs("div",{className:"text-center",children:[T.jsx("div",{className:"text-2xl font-bold text-orange-600",children:Object.keys(r).length}),T.jsx("div",{className:"text-sm text-gray-600",children:"Active Players"})]})]})]}),o?T.jsxs(T.Fragment,{children:[T.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[T.jsx("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 p-6",children:T.jsx(lM,{data:u,title:"Rankings"})}),T.jsx("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 p-6",children:T.jsx(ZU,{data:u,title:"Score Distribution",height:300})})]}),Object.keys(e.per_game_scores).length>0&&T.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 p-6",children:[T.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-4",children:"Per-Game Breakdown"}),T.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:Object.entries(e.per_game_scores).map(([s,f])=>{const h=Vw(f)[0],v=Object.keys(f).length;return T.jsxs("div",{className:"border border-gray-200 rounded-lg p-4",children:[T.jsx("h4",{className:"font-medium text-gray-900 mb-2",children:s}),T.jsxs("div",{className:"space-y-2",children:[T.jsxs("div",{className:"flex justify-between text-sm",children:[T.jsx("span",{className:"text-gray-600",children:"Top Player:"}),T.jsx("span",{className:"font-medium",children:h?.name||"N/A"})]}),T.jsxs("div",{className:"flex justify-between text-sm",children:[T.jsx("span",{className:"text-gray-600",children:"Top Score:"}),T.jsx("span",{className:"font-mono",children:h?.value.toFixed(2)||"N/A"})]}),T.jsxs("div",{className:"flex justify-between text-sm",children:[T.jsx("span",{className:"text-gray-600",children:"Players:"}),T.jsx("span",{children:v})]})]})]},s)})})]})]}):T.jsx("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 p-12",children:T.jsxs("div",{className:"text-center",children:[T.jsx("div",{className:"w-16 h-16 mx-auto mb-4 text-gray-400",children:T.jsx("svg",{fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:T.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"})})}),T.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-2",children:"No Results Yet"}),T.jsx("p",{className:"text-gray-500 max-w-sm mx-auto",children:e.status==="ready"?'This benchmark is ready to run. Click "Start Benchmark" to begin execution.':e.status==="running"?"The benchmark is currently running. Results will appear as they become available.":"No benchmark results found. Make sure the benchmark has been executed."})]})})]})}function WU({isOpen:e,onClose:t,title:r,children:a,maxWidth:u="600px"}){return E.useEffect(()=>{const o=s=>{s.key==="Escape"&&e&&t()};return e&&(document.addEventListener("keydown",o),document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",o),document.body.style.overflow="unset"}},[e,t]),e?T.jsx(T.Fragment,{children:T.jsx("div",{onClick:t,style:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.5)",zIndex:1e3,display:"flex",alignItems:"center",justifyContent:"center",padding:"20px"},children:T.jsxs("div",{onClick:o=>o.stopPropagation(),style:{backgroundColor:"white",borderRadius:"8px",maxWidth:u,width:"100%",maxHeight:"90vh",display:"flex",flexDirection:"column",boxShadow:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)"},children:[T.jsxs("div",{style:{padding:"20px",borderBottom:"1px solid #e5e7eb",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[T.jsx("h2",{style:{margin:0,fontSize:"20px",fontWeight:600,color:"#111827"},children:r}),T.jsx("button",{onClick:t,style:{background:"none",border:"none",cursor:"pointer",padding:"4px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"4px",transition:"background-color 0.2s"},onMouseEnter:o=>o.currentTarget.style.backgroundColor="#f3f4f6",onMouseLeave:o=>o.currentTarget.style.backgroundColor="transparent","aria-label":"Close modal",children:T.jsx("svg",{width:"20",height:"20",fill:"none",stroke:"currentColor",strokeWidth:"2",viewBox:"0 0 24 24",children:T.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]}),T.jsx("div",{style:{padding:"20px",overflowY:"auto",flex:1},children:a})]})})}):null}function Zw(e){const t=e.toLowerCase();return t.includes("gpt")||t.includes("o3")||t.includes("o4")?"openai":t.includes("claude")?"anthropic":t.includes("gemini")?"gemini":t.includes("grok")?"grok":t.includes("deepseek")?"deepseek":e.includes("/")&&!e.startsWith("ollama/")?"openrouter":e.startsWith("ollama/")?"ollama":"openai"}function AT({onSubmit:e,onCancel:t,existingPlayerIds:r=[],submitLabel:a="Add Players",embedded:u=!1,value:o,onChange:s}){const f=()=>o&&o.length>0?o[0].player_type==="human"?[]:o.map(R=>R.id):["gpt-4o-mini"],m=()=>!!(o&&o.length>0&&o[0].player_type==="human"),[h,v]=E.useState(f()),[p,g]=E.useState(m()),[b,S]=E.useState(null),w=(R,U)=>U?[{name:"black",id:"human",player_type:"human",options:{}}]:R.map(K=>({name:"black",id:K,player_type:"default",options:{model:K,provider:Zw(K)}})),O=(R,U)=>{if(u&&s){const K=w(R,U);s(K)}},_=()=>{const R=[...h,"gpt-4o-mini"];v(R),O(R,p)},M=R=>{const U=h.filter((K,J)=>J!==R);v(U),O(U,p)},j=(R,U)=>{const K=h.map((J,re)=>re===R?U:J);v(K),S(null),O(K,p)},k=R=>{g(R),S(null),O(h,R)},D=R=>{if(R.preventDefault(),u)return;let U;if(p){if(r.includes("human")){S("A human player already exists in this benchmark");return}U=w(h,!0)}else{const K=h.filter(J=>r.includes(J));if(K.length>0){S(`These models already exist in the benchmark: ${K.join(", ")}`);return}if(h.some(J=>!J.trim())){S("All model names must be filled in");return}U=w(h,!1)}e&&e(U)};return T.jsxs("form",{onSubmit:D,children:[b&&T.jsx("div",{style:{marginBottom:"15px",padding:"10px",backgroundColor:"#fee",border:"1px solid #fcc",borderRadius:"4px",color:"#c00"},children:b}),T.jsxs("div",{style:{marginBottom:"20px"},children:[T.jsxs("label",{style:{display:"flex",alignItems:"center",marginBottom:"15px"},children:[T.jsx("input",{type:"checkbox",checked:p,onChange:R=>k(R.target.checked),style:{marginRight:"10px"}}),T.jsx("span",{children:u?"Human Player":"Add Human Player"})]}),p?T.jsxs("div",{style:{padding:"15px",backgroundColor:"#e8f4fd",border:"1px solid #b3d9ff",borderRadius:"4px"},children:[T.jsx("strong",{children:"Human Player Mode"}),T.jsx("p",{style:{margin:"5px 0",fontSize:"14px"},children:"A human player will be added for interactive testing."})]}):T.jsxs("div",{children:[T.jsx("h4",{style:{marginBottom:"10px"},children:"Model Players"}),h.map((R,U)=>T.jsx("div",{style:{marginBottom:"10px",padding:"10px",backgroundColor:"#f5f5f5",borderRadius:"4px"},children:T.jsxs("div",{style:{display:"flex",gap:"10px",alignItems:"center"},children:[T.jsx("input",{type:"text",placeholder:"Model name (e.g., gpt-4o, claude-3-sonnet)",value:R,onChange:K=>j(U,K.target.value),style:{flex:1,padding:"8px",border:"1px solid #ddd",borderRadius:"4px"},required:!0}),T.jsx("span",{style:{fontSize:"12px",color:"#666",minWidth:"80px"},children:Zw(R)}),h.length>1&&T.jsx("button",{type:"button",onClick:()=>M(U),style:{padding:"6px 12px",backgroundColor:"#ff4444",color:"white",border:"none",borderRadius:"4px",cursor:"pointer"},children:"Remove"})]})},U)),T.jsx("button",{type:"button",onClick:_,style:{padding:"8px 16px",backgroundColor:"#4CAF50",color:"white",border:"none",borderRadius:"4px",cursor:"pointer",marginTop:"10px"},children:"+ Add Another Model"})]})]}),r.length>0&&T.jsxs("div",{style:{marginBottom:"20px",padding:"10px",backgroundColor:"#f8f9fa",borderRadius:"4px"},children:[T.jsx("strong",{children:"Existing Players:"}),T.jsx("div",{style:{marginTop:"5px"},children:r.map(R=>T.jsx("span",{style:{display:"inline-block",marginRight:"8px",marginTop:"4px",padding:"4px 8px",backgroundColor:"#e9ecef",borderRadius:"3px",fontSize:"12px"},children:R},R))})]}),!u&&T.jsxs("div",{style:{display:"flex",gap:"10px",justifyContent:"flex-end"},children:[T.jsx("button",{type:"button",onClick:t,style:{padding:"10px 20px",backgroundColor:"#6c757d",color:"white",border:"none",borderRadius:"4px",cursor:"pointer"},children:"Cancel"}),T.jsx("button",{type:"submit",style:{padding:"10px 20px",backgroundColor:"#2196F3",color:"white",border:"none",borderRadius:"4px",cursor:"pointer"},children:a})]})]})}function FU({benchmarkId:e,onBack:t}){const[r,a]=E.useState(null),[u,o]=E.useState(!0),[s,f]=E.useState(null),[m,h]=E.useState("overall"),[v,p]=E.useState(!1),[g,b]=E.useState(!1),[S,w]=E.useState(!1),[O,_]=E.useState(!1),[M,j]=E.useState(!1),k=async()=>{try{o(!0),f(null);const re=await nM(e);a(re)}catch(re){f(re instanceof Error?re.message:"Failed to load benchmark stats")}finally{o(!1)}},D=async()=>{if(!g)try{b(!0),await rM(e),setTimeout(k,5e3)}catch(re){alert(`Error starting benchmark: ${re instanceof Error?re.message:"Unknown error"}`)}finally{b(!1)}},R=async()=>{if(!S){w(!0),setTimeout(()=>w(!1),3e3);return}try{await aM(e),await k(),w(!1)}catch(re){alert(`Error deleting results: ${re instanceof Error?re.message:"Unknown error"}`)}},U=async re=>{try{j(!0),await iM(e,re),_(!1),await k()}catch(te){alert(`Error adding players: ${te instanceof Error?te.message:"Unknown error"}`)}finally{j(!1)}},K=()=>r?.config?.players?r.config.players.map(re=>re.id):[];E.useEffect(()=>{k()},[e]),E.useEffect(()=>{if(!r||r.status!=="running")return;const re=setInterval(k,5e3);return()=>clearInterval(re)},[r?.status]);const J=r?Object.keys(r.per_game_scores):[];return u&&!r?T.jsx("div",{className:"min-h-screen bg-gray-50 flex items-center justify-center",children:T.jsxs("div",{className:"text-center",children:[T.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-blue-600 mx-auto mb-4"}),T.jsx("p",{className:"text-gray-600",children:"Loading benchmark data..."})]})}):s&&!r?T.jsx("div",{className:"min-h-screen bg-gray-50 flex items-center justify-center",children:T.jsxs("div",{className:"text-center max-w-md mx-auto",children:[T.jsx("div",{className:"w-16 h-16 mx-auto mb-4 text-red-400",children:T.jsx("svg",{fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:T.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.964-.833-2.732 0L3.732 16.5c-.77.833.192 2.5 1.732 2.5z"})})}),T.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-2",children:"Error Loading Benchmark"}),T.jsx("p",{className:"text-gray-600 mb-4",children:s}),T.jsx("button",{onClick:k,className:"px-4 py-2 bg-blue-600 text-white rounded-md hover:bg-blue-700 transition-colors mr-2",children:"Retry"}),T.jsx("button",{onClick:t,className:"px-4 py-2 bg-gray-300 text-gray-700 rounded-md hover:bg-gray-400 transition-colors",children:"Back to List"})]})}):r?(r.metadata.actual_results>0,T.jsxs("div",{className:"min-h-screen bg-gray-50",children:[T.jsx("div",{className:"bg-white shadow-sm border-b border-gray-200",children:T.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:T.jsxs("div",{className:"flex items-center justify-between h-16",children:[T.jsxs("div",{className:"flex items-center space-x-4",children:[T.jsxs("button",{onClick:t,className:"inline-flex items-center px-3 py-2 border border-gray-300 rounded-md text-sm font-medium text-gray-700 bg-white hover:bg-gray-50 transition-colors",children:[T.jsx("svg",{className:"w-4 h-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:T.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 19l-7-7 7-7"})}),"Back to List"]}),T.jsxs("div",{children:[T.jsx("h1",{className:"text-xl font-semibold text-gray-900",children:"Benchmark Dashboard"}),T.jsx("p",{className:"text-sm text-gray-600",children:e})]})]}),T.jsxs("div",{className:"flex items-center space-x-4",children:[r.status==="running"&&T.jsxs("span",{className:"inline-flex items-center text-sm text-green-600",children:[T.jsx("span",{className:"animate-pulse w-2 h-2 bg-green-500 rounded-full mr-2"}),"Live Updates"]}),T.jsxs("button",{onClick:k,disabled:u,className:"inline-flex items-center px-3 py-2 border border-gray-300 rounded-md text-sm font-medium text-gray-700 bg-white hover:bg-gray-50 transition-colors disabled:opacity-50",children:[T.jsx("svg",{className:`w-4 h-4 mr-2 ${u?"animate-spin":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:T.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})}),"Refresh"]})]})]})})}),T.jsx("div",{className:"bg-white shadow-sm border-b border-gray-200",children:T.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-4",children:T.jsxs("div",{className:"flex flex-col lg:flex-row lg:items-center lg:justify-between gap-4",children:[T.jsxs("div",{className:"flex-1",children:[T.jsxs("div",{className:"flex items-center gap-4 mb-2",children:[T.jsx("span",{className:`inline-flex items-center px-3 py-1 rounded-full text-sm font-medium ${r.status==="completed"?"bg-green-100 text-green-800":r.status==="running"?"bg-yellow-100 text-yellow-800":"bg-blue-100 text-blue-800"}`,children:r.status==="completed"?"✓ Completed":r.status==="running"?"⏳ Running":"🚀 Ready to Start"}),T.jsxs("span",{className:"text-sm text-gray-600",children:[r.metadata.actual_results," / ",r.metadata.expected_results," results"]})]}),T.jsx("div",{className:"w-full bg-gray-200 rounded-full h-2",children:T.jsx("div",{className:`h-2 rounded-full transition-all duration-500 ${r.status==="completed"?"bg-green-600":r.status==="running"?"bg-blue-600":"bg-gray-400"}`,style:{width:`${Math.min(100,r.metadata.actual_results/r.metadata.expected_results*100)}%`}})})]}),T.jsxs("div",{className:"flex gap-2",children:[T.jsx("button",{onClick:D,disabled:g||r.status==="running",className:`px-4 py-2 rounded-md text-sm font-medium transition-colors ${g||r.status==="running"||r.status==="completed"?"bg-gray-300 text-gray-500 cursor-not-allowed":"bg-blue-600 text-white hover:bg-blue-700"}`,children:g?"⏳ Starting...":r.status==="ready"?"🚀 Start Benchmark":r.status==="running"?"⏳ Running...":r.status==="completed"?"✅ Finished":"🚀 Continue Benchmark"}),T.jsx("button",{onClick:()=>_(!0),disabled:r.status==="running",className:`px-4 py-2 rounded-md text-sm font-medium transition-colors ${r.status==="running"?"bg-gray-300 text-gray-500 cursor-not-allowed":"bg-green-600 text-white hover:bg-green-700"}`,children:"➕ Add Player"}),T.jsx("button",{onClick:R,className:`px-4 py-2 rounded-md text-sm font-medium transition-colors ${S?"bg-red-600 text-white hover:bg-red-700":"bg-gray-300 text-gray-700 hover:bg-gray-400"}`,children:S?"⚠️ Confirm Delete?":"🗑️ Delete Results"})]})]})})}),T.jsx("div",{className:"bg-white shadow-sm border-b border-gray-200",children:T.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[T.jsxs("button",{onClick:()=>p(!v),className:"w-full py-4 flex items-center justify-between text-left hover:bg-gray-50 transition-colors",children:[T.jsxs("div",{className:"flex items-center gap-4",children:[T.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Configuration"}),T.jsxs("div",{className:"flex gap-2 text-sm text-gray-600",children:[T.jsxs("span",{className:"px-2 py-1 bg-gray-100 rounded",children:[r.metadata.num_players," Player",r.metadata.num_players!==1?"s":""]}),T.jsxs("span",{className:"px-2 py-1 bg-gray-100 rounded",children:[r.metadata.num_games," Game",r.metadata.num_games!==1?"s":""]}),T.jsxs("span",{className:"px-2 py-1 bg-gray-100 rounded",children:["Judge: ",r.config?.metadata?.judge_model||"N/A"]})]})]}),T.jsx("svg",{className:`w-5 h-5 text-gray-500 transition-transform ${v?"rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:T.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]}),v&&T.jsx("div",{className:"pb-4",children:T.jsx("div",{className:"bg-gray-50 rounded-lg p-4 max-h-96 overflow-y-auto",children:T.jsx("pre",{className:"text-xs font-mono text-gray-700 whitespace-pre-wrap",children:JSON.stringify(r.config,null,2)})})})]})}),T.jsx("div",{className:"bg-white border-b border-gray-200",children:T.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:T.jsxs("nav",{className:"flex space-x-8","aria-label":"Tabs",children:[T.jsx("button",{onClick:()=>h("overall"),className:`py-4 px-1 border-b-2 font-medium text-sm transition-colors ${m==="overall"?"border-blue-500 text-blue-600":"border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300"}`,children:"Overall"}),J.map(re=>T.jsx("button",{onClick:()=>h(re),className:`py-4 px-1 border-b-2 font-medium text-sm transition-colors ${m===re?"border-blue-500 text-blue-600":"border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300"}`,children:re},re))]})})}),T.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8",children:m==="overall"?T.jsx(QU,{stats:r}):T.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 p-6",children:[T.jsxs("h3",{className:"text-lg font-semibold text-gray-900 mb-4",children:[m," - Detailed Analysis"]}),T.jsx("p",{className:"text-gray-600",children:"Game-specific charts and analysis will be implemented in the next phase."})]})}),T.jsx(WU,{isOpen:O,onClose:()=>_(!1),title:"Add Players to Benchmark",children:T.jsx(AT,{onSubmit:U,onCancel:()=>_(!1),existingPlayerIds:K(),submitLabel:M?"Adding...":"Add Players"})})]})):null}function JU({varName:e,maxLen:t,onSubmit:r}){const[a,u]=E.useState(""),[o,s]=E.useState(!1),f=()=>{!o&&a.trim()&&(r(a),s(!0))},m=h=>{h.key==="Enter"&&!h.shiftKey&&(h.preventDefault(),f())};return o?T.jsxs("div",{style:{marginBottom:"15px",padding:"10px",backgroundColor:"#e8f5e9",borderRadius:"5px",border:"1px solid #4CAF50"},children:[T.jsxs("strong",{children:["Input for ",e,":"]})," ",a]}):T.jsxs("div",{style:{marginBottom:"15px",padding:"15px",backgroundColor:"#fff3cd",borderRadius:"5px",border:"1px solid #ffc107"},children:[T.jsxs("div",{style:{marginBottom:"10px"},children:[T.jsxs("strong",{children:["Input requested for variable: ",e]}),T.jsxs("span",{style:{marginLeft:"10px",fontSize:"12px",color:"#666"},children:["(max ",t," tokens)"]})]}),T.jsxs("div",{style:{display:"flex",gap:"10px"},children:[T.jsx("input",{type:"text",value:a,onChange:h=>u(h.target.value),onKeyPress:m,placeholder:`Enter your response for ${e}...`,autoFocus:!0,style:{flex:1,padding:"8px",border:"1px solid #ddd",borderRadius:"4px",fontSize:"14px"}}),T.jsx("button",{onClick:f,disabled:!a.trim(),style:{padding:"8px 16px",backgroundColor:a.trim()?"#4CAF50":"#ccc",color:"white",border:"none",borderRadius:"4px",cursor:a.trim()?"pointer":"not-allowed"},children:"Submit"})]})]})}function eq({code:e,currentLine:t,registers:r,currentRound:a=0,totalRounds:u=0}){return T.jsxs("div",{style:{backgroundColor:"#f8f9fa",padding:"15px",borderRadius:"5px"},children:[T.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"15px"},children:[T.jsx("h3",{style:{margin:0},children:"Game State"}),a>0&&T.jsxs("div",{style:{fontSize:"14px",color:"#666",backgroundColor:"#e3f2fd",padding:"4px 8px",borderRadius:"4px",border:"1px solid #bbdefb"},children:["Round: ",a," | Completed: ",u]})]}),T.jsxs("div",{style:{marginBottom:"15px"},children:[T.jsx("h4",{style:{fontSize:"14px",marginBottom:"10px"},children:"Code Execution"}),T.jsx("div",{style:{backgroundColor:"white",border:"1px solid #ddd",borderRadius:"3px",padding:"10px",maxHeight:"150px",overflowY:"auto",fontFamily:"monospace",fontSize:"12px"},children:e.length===0?T.jsx("div",{style:{color:"#666"},children:"No code loaded"}):e.map((o,s)=>T.jsxs("div",{style:{padding:"2px 5px",backgroundColor:t===s?"#fffbdd":"transparent",borderLeft:t===s?"3px solid #ffc107":"3px solid transparent",whiteSpace:"pre-wrap",wordBreak:"break-word"},children:[T.jsx("span",{style:{color:"#666",marginRight:"10px",minWidth:"20px",display:"inline-block"},children:s+1}),o]},s))})]}),T.jsxs("div",{children:[T.jsx("h4",{style:{fontSize:"14px",marginBottom:"10px"},children:"Registers"}),T.jsx("div",{style:{backgroundColor:"white",border:"1px solid #ddd",borderRadius:"3px",padding:"10px",minHeight:"40px"},children:(()=>{const o=Object.entries(r).filter(([s,f])=>f&&f.trim()!=="");return o.length===0?T.jsx("div",{style:{color:"#666",fontStyle:"italic"},children:"No registers set"}):T.jsx("table",{style:{width:"100%",fontSize:"12px"},children:T.jsx("tbody",{children:o.map(([s,f])=>T.jsxs("tr",{children:[T.jsxs("td",{style:{fontWeight:"bold",paddingRight:"15px",color:"#2196F3",verticalAlign:"top",width:"60px"},children:[s,":"]}),T.jsx("td",{style:{fontFamily:"monospace",wordBreak:"break-word",whiteSpace:"pre-wrap"},children:f})]},s))})})})()})]})]})}function Qw({error:e,isWarning:t=!1}){return T.jsxs("div",{style:{marginBottom:"15px",padding:"12px",backgroundColor:t?"#fff3cd":"#f8d7da",borderRadius:"5px",border:`1px solid ${t?"#ffc107":"#f5c6cb"}`},children:[T.jsxs("strong",{style:{color:t?"#856404":"#721c24"},children:[t?"⚠️ Warning":"❌ Error",":"]}),T.jsx("span",{style:{marginLeft:"8px",color:t?"#856404":"#721c24"},children:e})]})}const Nv=e=>e.toFixed(4);function tq({perTokenXent:e}){const[t,r]=E.useState(null),a=e.pairs,u=a.reduce((s,[f,m])=>s+m,0),o=s=>{let f=Math.tanh(s/5);const m=Math.abs(f);return s>=0?{backgroundColor:`rgba(37, 99, 235, ${m})`}:{backgroundColor:`rgba(239, 68, 68, ${m})`}};return!a||a.length===0?T.jsx("div",{style:{marginBottom:"15px"},children:T.jsxs("span",{style:{fontSize:"12px",color:"#666"},children:["Reward: ",Nv(u)]})}):T.jsxs("div",{style:{marginBottom:"15px"},children:[T.jsxs("span",{style:{fontSize:"12px",color:"#666",marginBottom:"8px",display:"block"},children:["Reward: ",Nv(u)]}),T.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"4px",position:"relative"},children:a.map(([s,f],m)=>T.jsxs("span",{style:{fontFamily:"monospace",fontSize:"14px",padding:"2px 4px",borderRadius:"3px",display:"inline-block",position:"relative",cursor:"default",...o(f)},onMouseEnter:()=>r(m),onMouseLeave:()=>r(null),children:[T.jsx("span",{style:{mixBlendMode:"difference",color:"white"},children:s||"⎵"}),t===m&&T.jsxs("div",{style:{position:"absolute",bottom:"100%",left:"50%",transform:"translateX(-50%)",marginBottom:"8px",padding:"4px 8px",backgroundColor:"#374151",color:"white",fontSize:"12px",borderRadius:"4px",whiteSpace:"nowrap",zIndex:1e3,boxShadow:"0 2px 4px rgba(0,0,0,0.1)"},children:["Score: ",Nv(f),T.jsx("div",{style:{position:"absolute",top:"100%",left:"50%",transform:"translateX(-50%)",width:0,height:0,borderLeft:"4px solid transparent",borderRight:"4px solid transparent",borderTop:"4px solid #374151"}})]})]},m))})]})}const nq=`assign(s="Once upon a time, there was a brave knight who fought dragons and saved kingdoms.")
reveal(s)
elicit(t, 10)
reveal(t)
assign(t1=remove_common_words(t, s))
reveal(t1)
reward(xed(s | t1))`;function rq({onBack:e}){const t=E.useRef(null),[r,a]=E.useState(nq),[u,o]=E.useState([]),[s,f]=E.useState(-1),[m,h]=E.useState({}),[v,p]=E.useState([]),[g,b]=E.useState("disconnected"),[S,w]=E.useState(!1),[O,_]=E.useState(!1),[M,j]=E.useState(null),[k,D]=E.useState(0),[R,U]=E.useState([]),K=E.useRef(0),J=E.useRef(null),re=L=>{p(V=>[...V,L])},te=L=>{t.current&&t.current.readyState===WebSocket.OPEN?(t.current.send(JSON.stringify(L)),console.log("Sent message:",L)):console.error("WebSocket is not open. Cannot send message.")},ae=L=>{te({type:"xent_input",input:L})},ge=()=>{te({type:"xent_control",command:"start",code:r}),w(!0),_(!1),j(null),D(0),U([]),p([]),h({}),f(-1)},be=E.useCallback(L=>{try{const V=JSON.parse(L.data);if(console.log("Received message:",V),V.type==="xent_error"){console.error("Error from server:",V.error),re(T.jsx(Qw,{error:V.error},`output-${++K.current}`)),w(!1);return}if(V.type!=="xent_event"){console.warn("Received non-event message:",V);return}const F=V.event;switch(console.log("Received event:",F),F.line_num!==void 0&&f(F.line_num),F.type){case"round_started":D(F.round_index+1),re(T.jsx("div",{style:{marginBottom:"10px",padding:"8px 12px",backgroundColor:"#e3f2fd",borderRadius:"4px",borderLeft:"4px solid #2196F3",fontSize:"14px",color:"#1976D2"},children:T.jsxs("strong",{children:["Round ",F.round_index+1," started"]})},`output-${++K.current}`));break;case"round_finished":re(T.jsx("div",{style:{marginBottom:"15px",padding:"8px 12px",backgroundColor:"#f3e5f5",borderRadius:"4px",borderLeft:"4px solid #9C27B0",fontSize:"14px",color:"#7B1FA2"},children:T.jsxs("strong",{children:["Round ",F.round_index+1," completed"]})},`output-${++K.current}`));break;case"elicit_request":F.registers&&(console.log("Updating registers from elicit_request:",F.registers),h(F.registers)),re(T.jsx(JU,{varName:F.var_name,maxLen:F.max_len,onSubmit:N=>{ae(N)}},`output-${++K.current}`));break;case"elicit_response":re(T.jsxs("div",{style:{marginBottom:"10px"},children:[T.jsx("strong",{children:"Response:"})," ",F.response]},`output-${++K.current}`));break;case"reveal":re(T.jsxs("div",{style:{marginBottom:"10px"},children:[T.jsx("strong",{children:"Revealed:"})," ",JSON.stringify(F.values)]},`output-${++K.current}`));break;case"reward":let he=0;typeof F.value=="number"?he=F.value:F.value&&typeof F.value=="object"&&(he=F.value.pairs.reduce((N,[Z,X])=>N+X,0)),U(N=>[...N,{round:k,score:he}]),j(he),re(T.jsx(tq,{perTokenXent:F.value},`output-${++K.current}`)),re(T.jsxs("div",{style:{marginBottom:"15px",padding:"10px 12px",backgroundColor:"#e8f5e9",borderRadius:"4px",borderLeft:"4px solid #4CAF50",fontSize:"14px",display:"flex",justifyContent:"space-between",alignItems:"center"},children:[T.jsxs("span",{children:[T.jsxs("strong",{children:["Round ",k," Score:"]})," ",he.toFixed(2)]}),R.length>0&&T.jsxs("span",{style:{fontSize:"12px",color:"#666"},children:["Total rounds: ",R.length+1]})]},`output-${++K.current}`));break;case"failed_ensure":re(T.jsx(Qw,{error:`Failed ensure. Moving execution to ${F.beacon} - Ensure Results: ${F.ensure_results?.join(", ")}`,isWarning:!0},`output-${++K.current}`));break;default:console.warn("Unknown event type:",F.type),re(T.jsxs("div",{style:{marginBottom:"10px"},children:["Unknown event: ",JSON.stringify(F)]},`output-${++K.current}`))}}catch(V){console.error("Failed to parse message:",V)}},[]),ye=E.useCallback(()=>{if(t.current?.readyState===WebSocket.OPEN)return;b("connecting");const L=new WebSocket("ws://localhost:8000/ws");t.current=L,L.onopen=()=>{console.log("WebSocket connection established"),b("connected"),J.current&&(clearTimeout(J.current),J.current=null),L.readyState===WebSocket.OPEN&&L.send(JSON.stringify({type:"xent_configure",code:r}))},L.onmessage=V=>{be(V)},L.onclose=V=>{b("disconnected"),w(!1),V.wasClean?console.log(`Connection closed cleanly, code=${V.code} reason=${V.reason}`):(console.error("Connection died unexpectedly"),J.current||(J.current=setTimeout(()=>{console.log("Attempting to reconnect..."),ye()},3e3)))},L.onerror=V=>{console.error("WebSocket error:",V),b("disconnected")}},[r,be]);return E.useEffect(()=>(ye(),()=>{J.current&&clearTimeout(J.current),t.current&&t.current.close(1e3,"User navigated away")}),[ye]),E.useEffect(()=>{const L=()=>{t.current&&t.current.readyState===WebSocket.OPEN&&t.current.close(1e3,"Page unloading")};return window.addEventListener("beforeunload",L),()=>window.removeEventListener("beforeunload",L)},[]),E.useEffect(()=>{o(r.split(`
`))},[r]),T.jsxs("div",{style:{padding:"20px",fontFamily:"system-ui, sans-serif",maxWidth:"1200px",margin:"0 auto"},children:[T.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"20px"},children:[T.jsx("h1",{children:"XENT Interactive Play"}),T.jsxs("div",{style:{display:"flex",gap:"10px",alignItems:"center"},children:[g==="disconnected"&&T.jsxs(T.Fragment,{children:[T.jsx("span",{style:{padding:"5px 10px",borderRadius:"5px",backgroundColor:"#f44336",color:"white",fontSize:"12px"},children:"● Disconnected"}),T.jsx("button",{onClick:ye,style:{padding:"6px 12px",backgroundColor:"#2196F3",color:"white",border:"none",borderRadius:"4px",cursor:"pointer",fontSize:"12px"},children:"Reconnect"})]}),T.jsx("button",{onClick:e,style:{padding:"8px 16px",backgroundColor:"#6c757d",color:"white",border:"none",borderRadius:"4px",cursor:"pointer"},children:"Back to Dashboard"})]})]}),T.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"20px",marginBottom:"20px"},children:[T.jsxs("div",{style:{backgroundColor:"#f8f9fa",padding:"15px",borderRadius:"5px"},children:[T.jsx("h3",{children:"Game Code"}),T.jsx("textarea",{value:r,onChange:L=>a(L.target.value),style:{width:"100%",minHeight:"200px",fontFamily:"monospace",fontSize:"12px",padding:"10px",border:"1px solid #ddd",borderRadius:"3px"},disabled:S}),T.jsx("div",{style:{marginTop:"10px",display:"flex",gap:"10px"},children:T.jsx("button",{onClick:ge,disabled:g!=="connected"||S,style:{padding:"8px 16px",backgroundColor:"#4CAF50",color:"white",border:"none",borderRadius:"4px",cursor:g==="connected"&&!S?"pointer":"not-allowed",opacity:g==="connected"&&!S?1:.6},children:S?"Game Running...":"Start Game"})})]}),T.jsx(eq,{code:u,currentLine:s,registers:m,currentRound:k,totalRounds:R.length})]}),T.jsxs("div",{style:{backgroundColor:"#f8f9fa",padding:"15px",borderRadius:"5px"},children:[T.jsx("div",{style:{marginBottom:"10px"},children:T.jsx("h3",{style:{margin:0},children:"Game Output"})}),T.jsx("div",{style:{backgroundColor:"white",border:"1px solid #ddd",borderRadius:"3px",padding:"15px",minHeight:"200px",maxHeight:"400px",overflowY:"auto"},children:v.length===0?T.jsx("div",{style:{color:"#666",fontStyle:"italic"},children:S?"Game is running...":'Click "Start Game" to begin'}):v})]})]})}const Ww=`assign(s=story())
reveal(s)
elicit(x, 10)
assign(x1=remove_common_words(x, s)) # Remove any words in story from input text
reward(xed(s | x1))`,aq=`def present(state, history, metadata):
    """Default presentation matching current system output"""
    output = []
    for event in history:
        if event['type'] == 'elicit_request':
            output.append(format_elicit_request(event))
        elif event['type'] == 'elicit_response':
            output.append(format_elicit_response(event))
        elif event['type'] == 'reveal':
            output.append(format_reveal(event))
        elif event['type'] == 'reward':
            output.append(format_reward(event))
        elif event['type'] == 'failed_ensure':
            output.append(format_failed_ensure(event))
        else:
            # Fallback for unknown event types
            output.append(f"Unknown event: {event}")
    return '\\n'.join(output)`,iq=`def present(state, history, metadata):
    story = state["s"]
    game_overview = f"""I am going to give you a short text. Your job is to provide a string that will prefix that text. Your goal is to minimize the cross-entropy of the text given the prefix you provide. You should respond with what will make the text as likely as possible.

The text is: "{story}"

Your response will be used as the prefix to that text and you will be scored on how well it helps predict that text. You may not use any words from the text in your response, regardless of case or punctuation. You can only use a maximum of 10 tokens for your prefix."""
    previous_attempts = []

    for event in history:
        if event["type"] == "elicit_response":
            previous_attempts.append("<attempt>")
            previous_attempts.append("You provided: " + event["response"])
        elif event["type"] == "reward":
            score = round(event["value"].total_xent(), 2)
            previous_attempts.append(f"Total score for that response: {score}")
            previous_attempts.append(
                f"Per token score for that response: {str(event['value'])}"
            )
            previous_attempts.append("</attempt>")

    if len(previous_attempts) == 0:
        instructions = "Provide your prefix inside of \`<move></move>\` tags. Any other text in your response will be ignored. You will be given feedback on your prefix and a chance to improve your prefix."
        output = [game_overview, "", instructions]
    else:
        instructions = "Use your previous attempts above to further optimize your prefix. Provide your prefix inside of \`<move></move>\` tags. Any other text in your response will be ignored."
        output = (
            [game_overview, "", "<previousAttempts>"]
            + previous_attempts
            + ["</previousAttempts>", "", instructions]
        )

    return "\\n".join(output)`;function Fw(){const e=new Date,t=e.getFullYear()+"-"+String(e.getMonth()+1).padStart(2,"0")+"-"+String(e.getDate()).padStart(2,"0")+"-"+String(e.getHours()).padStart(2,"0")+":"+String(e.getMinutes()).padStart(2,"0")+":"+String(e.getSeconds()).padStart(2,"0"),r=Math.abs(e.getTime()).toString(16).slice(-6);return`${t}-${r}`}function lq(){const[e,t]=E.useState([{name:"black",id:"gpt-4o",player_type:"default",options:{model:"gpt-4o",provider:"openai"}}]),[r,a]=E.useState("gpt2"),[u,o]=E.useState(Fw()),[s,f]=E.useState("notrandom"),[m,h]=E.useState(30),[v,p]=E.useState(1),[g,b]=E.useState(!1),[S,w]=E.useState([]),[O,_]=E.useState([]),[M,j]=E.useState(!0),[k,D]=E.useState("list"),[R,U]=E.useState(null),[K,J]=E.useState(null),[re,te]=E.useState(!1),[ae,ge]=E.useState(!1),[be,ye]=E.useState(!1);E.useEffect(()=>{L()},[]);const L=async()=>{try{j(!0);const ee=await fetch("/api/benchmarks");if(ee.ok){const ue=await ee.json();_(ue)}else console.error("Failed to fetch benchmarks")}catch(ee){console.error("Error fetching benchmarks:",ee)}finally{j(!1)}},F=(()=>{let ee;return!g||S.length===0?ee=[{name:"simple_game",code:Ww,presentation_function:iq}]:ee=S,{config_type:"condensed_xent_config",metadata:{benchmark_id:u,xent_version:"0.1.0",judge_model:r,num_rounds_per_game:m,seed:s},expansion_config:{num_maps_per_game:v},players:e,games:ee}})(),he=async ee=>{ee.preventDefault();try{const ue=await fetch("/api/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({config:F})});if(ue.ok){const Be=await ue.json();alert(`Configuration stored successfully!
Benchmark ID: ${Be.benchmark_id}`),L()}else{const Be=await ue.json();alert(`Error: ${Be.detail||"Failed to store configuration"}`)}}catch(ue){console.error("Network error:",ue),alert("Network error: Could not connect to server")}},N=()=>{w(ee=>[...ee,{name:"New Game",code:Ww,presentation_function:aq}])},Z=ee=>{w(ue=>ue.filter((Be,De)=>De!==ee))},X=(ee,ue,Be)=>{w(De=>De.map((ie,xe)=>xe===ee?{...ie,[ue]:Be}:ie))},ne=ee=>{U(ee),D("dashboard"),J(null),ge(!1),ye(!1)},se=()=>{D("list"),U(null),J(null),ge(!1),ye(!1)};return E.useEffect(()=>{const ee=()=>{be&&ye(!1)};return document.addEventListener("click",ee),()=>document.removeEventListener("click",ee)},[be]),k==="play"?T.jsx(rq,{onBack:()=>D("list")}):k==="dashboard"&&R?T.jsx(FU,{benchmarkId:R,onBack:se}):T.jsxs("div",{style:{padding:"20px",fontFamily:"system-ui, sans-serif",maxWidth:"800px",margin:"0 auto"},children:[T.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"20px"},children:[T.jsx("h1",{children:"XENT Benchmarks"}),T.jsx("button",{onClick:()=>D("play"),style:{padding:"10px 20px",backgroundColor:"#9C27B0",color:"white",border:"none",borderRadius:"4px",cursor:"pointer",fontSize:"14px",fontWeight:"bold"},children:"🎮 Play Game"})]}),T.jsxs("div",{style:{marginBottom:"30px",padding:"15px",backgroundColor:"#f8f9fa",borderRadius:"5px"},children:[T.jsx("h3",{children:"Saved Configurations"}),M?T.jsx("p",{style:{color:"#666"},children:"Loading benchmarks..."}):O.length===0?T.jsx("p",{style:{color:"#666"},children:"No saved benchmarks yet. Create one below!"}):T.jsx("ul",{style:{listStyle:"none",padding:0},children:O.map(ee=>T.jsxs("li",{style:{marginBottom:"8px",padding:"8px",backgroundColor:"white",borderRadius:"3px",display:"flex",justifyContent:"space-between",alignItems:"center"},children:[T.jsx("span",{style:{fontFamily:"monospace",fontSize:"14px"},children:ee}),T.jsx("button",{type:"button",onClick:()=>ne(ee),style:{padding:"4px 12px",backgroundColor:"#3b82f6",color:"white",border:"none",borderRadius:"3px",cursor:"pointer",fontSize:"12px"},children:"Dashboard"})]},ee))})]}),T.jsx("hr",{style:{margin:"30px 0",border:"none",borderTop:"1px solid #dee2e6"}}),T.jsx("h2",{children:"Create New Benchmark"}),T.jsxs("form",{onSubmit:he,style:{marginTop:"20px"},children:[T.jsxs("fieldset",{style:{marginBottom:"20px",padding:"15px",border:"1px solid #ccc"},children:[T.jsx("legend",{children:T.jsx("strong",{children:"Basic Settings"})}),T.jsxs("div",{style:{marginBottom:"10px"},children:[T.jsx("label",{style:{display:"block",marginBottom:"5px"},children:"Judge Model:"}),T.jsx("input",{type:"text",value:r,onChange:ee=>a(ee.target.value),style:{width:"100%",padding:"5px"},placeholder:"gpt2"})]}),T.jsxs("div",{style:{marginBottom:"10px"},children:[T.jsx("label",{style:{display:"block",marginBottom:"5px"},children:"Rounds per Game:"}),T.jsx("input",{type:"number",min:"1",value:m,onChange:ee=>h(parseInt(ee.target.value)||1),style:{width:"100%",padding:"5px"}})]}),T.jsxs("div",{style:{marginBottom:"10px"},children:[T.jsx("label",{style:{display:"block",marginBottom:"5px"},children:"Seed:"}),T.jsx("input",{type:"text",value:s,onChange:ee=>f(ee.target.value||"notrandom"),style:{width:"100%",padding:"5px"},placeholder:"notrandom"})]}),T.jsxs("div",{style:{marginBottom:"10px"},children:[T.jsx("label",{style:{display:"block",marginBottom:"5px"},children:"Benchmark ID:"}),T.jsx("input",{type:"text",value:u,onChange:ee=>o(ee.target.value),style:{width:"100%",padding:"5px"}}),T.jsx("button",{type:"button",onClick:()=>o(Fw()),style:{marginTop:"5px",padding:"5px 10px",fontSize:"12px"},children:"Generate New ID"})]}),T.jsxs("div",{style:{marginBottom:"10px"},children:[T.jsx("label",{style:{display:"block",marginBottom:"5px"},children:"Maps per Game:"}),T.jsx("input",{type:"number",min:"1",value:v,onChange:ee=>p(parseInt(ee.target.value)||1),style:{width:"100%",padding:"5px"}})]})]}),T.jsxs("fieldset",{style:{marginBottom:"20px",padding:"15px",border:"1px solid #ccc"},children:[T.jsx("legend",{children:T.jsx("strong",{children:"Players"})}),T.jsx(AT,{embedded:!0,value:e,onChange:t})]}),T.jsxs("fieldset",{style:{marginBottom:"20px",padding:"15px",border:"1px solid #ccc"},children:[T.jsx("legend",{children:T.jsx("strong",{children:"Games"})}),T.jsxs("div",{style:{marginBottom:"15px"},children:[T.jsxs("label",{children:[T.jsx("input",{type:"radio",name:"gameType",checked:!g,onChange:()=>b(!1),style:{marginRight:"10px"}}),"Use Default Simple Game"]}),T.jsx("div",{style:{marginLeft:"25px",fontSize:"12px",color:"#666",marginTop:"5px"},children:"A basic text completion game where players provide prefixes to minimize cross-entropy"})]}),T.jsx("div",{style:{marginBottom:"15px"},children:T.jsxs("label",{children:[T.jsx("input",{type:"radio",name:"gameType",checked:g,onChange:()=>b(!0),style:{marginRight:"10px"}}),"Define Custom Games"]})}),g&&T.jsxs("div",{children:[T.jsx("h4",{children:"Custom Games:"}),S.map((ee,ue)=>T.jsxs("div",{style:{marginBottom:"15px",padding:"15px",backgroundColor:"#f5f5f5",border:"1px solid #ddd"},children:[T.jsxs("div",{style:{marginBottom:"10px"},children:[T.jsx("label",{style:{display:"block",marginBottom:"5px",fontWeight:"bold"},children:"Game Name:"}),T.jsx("input",{type:"text",value:ee.name,onChange:Be=>X(ue,"name",Be.target.value),style:{width:"100%",padding:"5px"},placeholder:"e.g., my_custom_game"})]}),T.jsxs("div",{style:{marginBottom:"10px"},children:[T.jsx("label",{style:{display:"block",marginBottom:"5px",fontWeight:"bold"},children:"Game Code (.xent DSL):"}),T.jsx("textarea",{value:ee.code,onChange:Be=>X(ue,"code",Be.target.value),style:{width:"100%",padding:"10px",minHeight:"150px",fontFamily:"monospace"},placeholder:"Enter game logic using XENT DSL..."})]}),T.jsxs("div",{style:{marginBottom:"10px"},children:[T.jsx("label",{style:{display:"block",marginBottom:"5px",fontWeight:"bold"},children:"Presentation Function (Python):"}),T.jsx("textarea",{value:ee.presentation_function,onChange:Be=>X(ue,"presentation_function",Be.target.value),style:{width:"100%",padding:"10px",minHeight:"150px",fontFamily:"monospace"},placeholder:"def present(state, history, metadata):..."})]}),T.jsx("button",{type:"button",onClick:()=>Z(ue),style:{padding:"5px 15px",backgroundColor:"#ff4444",color:"white",border:"none",cursor:"pointer"},children:"Remove Game"})]},ue)),T.jsx("button",{type:"button",onClick:N,style:{padding:"5px 15px",backgroundColor:"#4CAF50",color:"white",border:"none",cursor:"pointer"},children:"Add Custom Game"}),S.length===0&&T.jsxs("div",{style:{padding:"10px",backgroundColor:"#fff3cd",border:"1px solid #ffeaa7",marginTop:"10px"},children:[T.jsx("strong",{children:"Note:"})," No custom games defined. The default simple game will be used instead."]})]}),!g&&T.jsxs("div",{style:{padding:"10px",backgroundColor:"#e8f5e8",border:"1px solid #4CAF50",marginTop:"10px"},children:[T.jsx("strong",{children:"Default Simple Game"}),T.jsx("p",{style:{margin:"5px 0",fontSize:"14px"},children:'Game: "simple_game" - Players provide text prefixes to minimize cross-entropy of a generated story.'})]})]}),T.jsx("div",{style:{display:"flex",gap:"10px"},children:T.jsx("button",{type:"submit",style:{padding:"10px 20px",backgroundColor:"#2196F3",color:"white",border:"none",cursor:"pointer",fontSize:"16px"},children:"Create Benchmark Configuration"})})]}),T.jsxs("div",{style:{marginTop:"30px",padding:"15px",backgroundColor:"#f0f0f0",borderRadius:"5px"},children:[T.jsx("h3",{children:"Configuration Preview (JSON)"}),T.jsxs("p",{style:{fontSize:"12px",color:"#666",marginBottom:"10px"},children:["This is the condensed configuration that will be sent to the backend. It matches the output of ",T.jsx("code",{children:"xent configure"})," CLI command."]}),T.jsx("pre",{style:{backgroundColor:"white",padding:"10px",overflow:"auto",maxHeight:"400px",fontSize:"12px"},children:JSON.stringify(F,null,2)})]})]})}tM.createRoot(document.getElementById("root")).render(T.jsx(Jw.StrictMode,{children:T.jsx(lq,{})}));
