hplx-feature-library 1.0.157 → 1.0.158

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -20,7 +20,7 @@ This could lead to inefficient memoization and unnecessary re-renders.
20
20
  Ensure transformation logic is in the result function, and extraction logic is in the input selectors.`,{stack:i})}}},Uh=(e,t,r)=>{const{memoize:n,memoizeOptions:i}=t,{inputSelectorResults:a,inputSelectorResultsCopy:o}=e,s=n(()=>({}),...i);if(!(s.apply(null,a)===s.apply(null,o))){let c;try{throw new Error}catch(l){({stack:c}=l)}console.warn(`An input selector returned a different result when passed same arguments.
21
21
  This means your output selector will likely run more frequently than intended.
22
22
  Avoid returning a new reference inside your input selector, e.g.
23
- \`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:r,firstInputs:a,secondInputs:o,stack:c})}},Kh={inputStabilityCheck:"once",identityFunctionCheck:"once"};function Vh(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function Hh(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function Gh(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(r=>typeof r=="function")){const r=e.map(n=>typeof n=="function"?`function ${n.name||"unnamed"}()`:typeof n).join(", ");throw new TypeError(`${t}[${r}]`)}}var zs=e=>Array.isArray(e)?e:[e];function Yh(e){const t=Array.isArray(e[0])?e[0]:e;return Gh(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function qs(e,t){const r=[],{length:n}=e;for(let i=0;i<n;i++)r.push(e[i].apply(null,t));return r}var Zh=(e,t)=>{const{identityFunctionCheck:r,inputStabilityCheck:n}={...Kh,...t};return{identityFunctionCheck:{shouldRun:r==="always"||r==="once"&&e,run:Wh},inputStabilityCheck:{shouldRun:n==="always"||n==="once"&&e,run:Uh}}},Xh=class{constructor(e){this.value=e}deref(){return this.value}},Qh=typeof WeakRef<"u"?WeakRef:Xh,Jh=0,Ws=1;function xn(){return{s:Jh,v:void 0,o:null,p:null}}function pc(e,t={}){let r=xn();const{resultEqualityCheck:n}=t;let i,a=0;function o(){let s=r;const{length:u}=arguments;for(let f=0,d=u;f<d;f++){const h=arguments[f];if(typeof h=="function"||typeof h=="object"&&h!==null){let p=s.o;p===null&&(s.o=p=new WeakMap);const m=p.get(h);m===void 0?(s=xn(),p.set(h,s)):s=m}else{let p=s.p;p===null&&(s.p=p=new Map);const m=p.get(h);m===void 0?(s=xn(),p.set(h,s)):s=m}}const c=s;let l;if(s.s===Ws)l=s.v;else if(l=e.apply(null,arguments),a++,n){const f=i?.deref?.()??i;f!=null&&n(f,l)&&(l=f,a!==0&&a--),i=typeof l=="object"&&l!==null||typeof l=="function"?new Qh(l):l}return c.s=Ws,c.v=l,l}return o.clearCache=()=>{r=xn(),o.resetResultsCount()},o.resultsCount=()=>a,o.resetResultsCount=()=>{a=0},o}function e9(e,...t){const r=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,n=(...i)=>{let a=0,o=0,s,u={},c=i.pop();typeof c=="object"&&(u=c,c=i.pop()),Vh(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);const l={...r,...u},{memoize:f,memoizeOptions:d=[],argsMemoize:h=pc,argsMemoizeOptions:p=[],devModeChecks:m={}}=l,v=zs(d),y=zs(p),b=Yh(i),g=f(function(){return a++,c.apply(null,arguments)},...v);let w=!0;const C=h(function(){o++;const P=qs(b,arguments);if(s=g.apply(null,P),process.env.NODE_ENV!=="production"){const{identityFunctionCheck:_,inputStabilityCheck:M}=Zh(w,m);if(_.shouldRun&&_.run(c,P,s),M.shouldRun){const z=qs(b,arguments);M.run({inputSelectorResults:P,inputSelectorResultsCopy:z},{memoize:f,memoizeOptions:v},arguments)}w&&(w=!1)}return s},...y);return Object.assign(C,{resultFunc:c,memoizedResultFunc:g,dependencies:b,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>s,recomputations:()=>a,resetRecomputations:()=>{a=0},memoize:f,argsMemoize:h})};return Object.assign(n,{withTypes:()=>n}),n}var A=e9(pc),t9=Object.assign((e,t=A)=>{Hh(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),n=r.map(a=>e[a]);return t(n,(...a)=>a.reduce((o,s,u)=>(o[r[u]]=s,o),{}))},{withTypes:()=>t9}),N2={},I2={},R2={},Us;function r9(){return Us||(Us=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="symbol"?1:n===null?2:n===void 0?3:n!==n?4:0}const r=(n,i,a)=>{if(n!==i){const o=t(n),s=t(i);if(o===s&&o===0){if(n<i)return a==="desc"?1:-1;if(n>i)return a==="desc"?-1:1}return a==="desc"?s-o:o-s}return 0};e.compareValues=r}(R2)),R2}var $2={},L2={},Ks;function vc(){return Ks||(Ks=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="symbol"||r instanceof Symbol}e.isSymbol=t}(L2)),L2}var Vs;function n9(){return Vs||(Vs=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=vc(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function i(a,o){return Array.isArray(a)?!1:typeof a=="number"||typeof a=="boolean"||a==null||t.isSymbol(a)?!0:typeof a=="string"&&(n.test(a)||!r.test(a))||o!=null&&Object.hasOwn(o,a)}e.isKey=i}($2)),$2}var Hs;function i9(){return Hs||(Hs=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=r9(),r=n9(),n=ma();function i(a,o,s,u){if(a==null)return[];s=u?void 0:s,Array.isArray(a)||(a=Object.values(a)),Array.isArray(o)||(o=o==null?[null]:[o]),o.length===0&&(o=[null]),Array.isArray(s)||(s=s==null?[]:[s]),s=s.map(h=>String(h));const c=(h,p)=>{let m=h;for(let v=0;v<p.length&&m!=null;++v)m=m[p[v]];return m},l=(h,p)=>p==null||h==null?p:typeof h=="object"&&"key"in h?Object.hasOwn(p,h.key)?p[h.key]:c(p,h.path):typeof h=="function"?h(p):Array.isArray(h)?c(p,h):typeof p=="object"?p[h]:p,f=o.map(h=>(Array.isArray(h)&&h.length===1&&(h=h[0]),h==null||typeof h=="function"||Array.isArray(h)||r.isKey(h)?h:{key:h,path:n.toPath(h)}));return a.map(h=>({original:h,criteria:f.map(p=>l(p,h))})).slice().sort((h,p)=>{for(let m=0;m<f.length;m++){const v=t.compareValues(h.criteria[m],p.criteria[m],s[m]);if(v!==0)return v}return 0}).map(h=>h.original)}e.orderBy=i}(I2)),I2}var B2={},Gs;function a9(){return Gs||(Gs=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n=1){const i=[],a=Math.floor(n),o=(s,u)=>{for(let c=0;c<s.length;c++){const l=s[c];Array.isArray(l)&&u<a?o(l,u+1):i.push(l)}};return o(r,0),i}e.flatten=t}(B2)),B2}var F2={},Ys;function mc(){return Ys||(Ys=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=hc(),r=wa(),n=lc(),i=Oa();function a(o,s,u){return n.isObject(u)&&(typeof s=="number"&&r.isArrayLike(u)&&t.isIndex(s)&&s<u.length||typeof s=="string"&&s in u)?i.eq(u[s],o):!1}e.isIterateeCall=a}(F2)),F2}var Zs;function o9(){return Zs||(Zs=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=i9(),r=a9(),n=mc();function i(a,...o){const s=o.length;return s>1&&n.isIterateeCall(a,o[0],o[1])?o=[]:s>2&&n.isIterateeCall(o[0],o[1],o[2])&&(o=[o[0]]),t.orderBy(a,r.flatten(o),["asc"])}e.sortBy=i}(N2)),N2}var z2,Xs;function s9(){return Xs||(Xs=1,z2=o9().sortBy),z2}var u9=s9();const gi=S.getDefaultExportFromCjs(u9);var yc=e=>e.legend.settings,l9=e=>e.legend.size,c9=e=>e.legend.payload;A([c9,yc],(e,t)=>{var{itemSorter:r}=t,n=e.flat(1);return r?gi(n,r):n});var wn=1;function f9(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],[t,r]=E.useState({height:0,left:0,top:0,width:0}),n=E.useCallback(i=>{if(i!=null){var a=i.getBoundingClientRect(),o={height:a.height,left:a.left,top:a.top,width:a.width};(Math.abs(o.height-t.height)>wn||Math.abs(o.left-t.left)>wn||Math.abs(o.top-t.top)>wn||Math.abs(o.width-t.width)>wn)&&r({height:o.height,left:o.left,top:o.top,width:o.width})}},[t.width,t.height,t.top,t.left,...e]);return[t,n]}function be(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 d9=typeof Symbol=="function"&&Symbol.observable||"@@observable",Qs=d9,q2=()=>Math.random().toString(36).substring(7).split("").join("."),h9={INIT:`@@redux/INIT${q2()}`,REPLACE:`@@redux/REPLACE${q2()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${q2()}`},Jt=h9;function nn(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 p9(e){if(e===void 0)return"undefined";if(e===null)return"null";const t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(y9(e))return"date";if(m9(e))return"error";const r=v9(e);switch(r){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return r}return Object.prototype.toString.call(e).slice(8,-1).toLowerCase().replace(/\s/g,"")}function v9(e){return typeof e.constructor=="function"?e.constructor.name:null}function m9(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function y9(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function Mt(e){let t=typeof e;return process.env.NODE_ENV!=="production"&&(t=p9(e)),t}function gc(e,t,r){if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?be(2):`Expected the root reducer to be a function. Instead, received: '${Mt(e)}'`);if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?be(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(process.env.NODE_ENV==="production"?be(1):`Expected the enhancer to be a function. Instead, received: '${Mt(r)}'`);return r(gc)(e,t)}let n=e,i=t,a=new Map,o=a,s=0,u=!1;function c(){o===a&&(o=new Map,a.forEach((v,y)=>{o.set(y,v)}))}function l(){if(u)throw new Error(process.env.NODE_ENV==="production"?be(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return i}function f(v){if(typeof v!="function")throw new Error(process.env.NODE_ENV==="production"?be(4):`Expected the listener to be a function. Instead, received: '${Mt(v)}'`);if(u)throw new Error(process.env.NODE_ENV==="production"?be(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");let y=!0;c();const b=s++;return o.set(b,v),function(){if(y){if(u)throw new Error(process.env.NODE_ENV==="production"?be(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");y=!1,c(),o.delete(b),a=null}}}function d(v){if(!nn(v))throw new Error(process.env.NODE_ENV==="production"?be(7):`Actions must be plain objects. Instead, the actual type was: '${Mt(v)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);if(typeof v.type>"u")throw new Error(process.env.NODE_ENV==="production"?be(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(typeof v.type!="string")throw new Error(process.env.NODE_ENV==="production"?be(17):`Action "type" property must be a string. Instead, the actual type was: '${Mt(v.type)}'. Value was: '${v.type}' (stringified)`);if(u)throw new Error(process.env.NODE_ENV==="production"?be(9):"Reducers may not dispatch actions.");try{u=!0,i=n(i,v)}finally{u=!1}return(a=o).forEach(b=>{b()}),v}function h(v){if(typeof v!="function")throw new Error(process.env.NODE_ENV==="production"?be(10):`Expected the nextReducer to be a function. Instead, received: '${Mt(v)}`);n=v,d({type:Jt.REPLACE})}function p(){const v=f;return{subscribe(y){if(typeof y!="object"||y===null)throw new Error(process.env.NODE_ENV==="production"?be(11):`Expected the observer to be an object. Instead, received: '${Mt(y)}'`);function b(){const w=y;w.next&&w.next(l())}return b(),{unsubscribe:v(b)}},[Qs](){return this}}}return d({type:Jt.INIT}),{dispatch:d,subscribe:f,getState:l,replaceReducer:h,[Qs]:p}}function Js(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function g9(e,t,r,n){const i=Object.keys(t),a=r&&r.type===Jt.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(i.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!nn(e))return`The ${a} has unexpected type of "${Mt(e)}". Expected argument to be an object with the following keys: "${i.join('", "')}"`;const o=Object.keys(e).filter(s=>!t.hasOwnProperty(s)&&!n[s]);if(o.forEach(s=>{n[s]=!0}),!(r&&r.type===Jt.REPLACE)&&o.length>0)return`Unexpected ${o.length>1?"keys":"key"} "${o.join('", "')}" found in ${a}. Expected to find one of the known reducer keys instead: "${i.join('", "')}". Unexpected keys will be ignored.`}function b9(e){Object.keys(e).forEach(t=>{const r=e[t];if(typeof r(void 0,{type:Jt.INIT})>"u")throw new Error(process.env.NODE_ENV==="production"?be(12):`The slice reducer for key "${t}" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof r(void 0,{type:Jt.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?be(13):`The slice reducer for key "${t}" returned undefined when probed with a random type. Don't try to handle '${Jt.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`)})}function bc(e){const t=Object.keys(e),r={};for(let o=0;o<t.length;o++){const s=t[o];process.env.NODE_ENV!=="production"&&typeof e[s]>"u"&&Js(`No reducer provided for key "${s}"`),typeof e[s]=="function"&&(r[s]=e[s])}const n=Object.keys(r);let i;process.env.NODE_ENV!=="production"&&(i={});let a;try{b9(r)}catch(o){a=o}return function(s={},u){if(a)throw a;if(process.env.NODE_ENV!=="production"){const f=g9(s,r,u,i);f&&Js(f)}let c=!1;const l={};for(let f=0;f<n.length;f++){const d=n[f],h=r[d],p=s[d],m=h(p,u);if(typeof m>"u"){const v=u&&u.type;throw new Error(process.env.NODE_ENV==="production"?be(14):`When called with an action of type ${v?`"${String(v)}"`:"(unknown type)"}, the slice reducer for key "${d}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`)}l[d]=m,c=c||m!==p}return c=c||n.length!==Object.keys(s).length,c?l:s}}function Bn(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function C9(...e){return t=>(r,n)=>{const i=t(r,n);let a=()=>{throw new Error(process.env.NODE_ENV==="production"?be(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")};const o={getState:i.getState,dispatch:(u,...c)=>a(u,...c)},s=e.map(u=>u(o));return a=Bn(...s)(i.dispatch),{...i,dispatch:a}}}function _a(e){return nn(e)&&"type"in e&&typeof e.type=="string"}var Cc=Symbol.for("immer-nothing"),eu=Symbol.for("immer-draftable"),Ke=Symbol.for("immer-state"),x9=process.env.NODE_ENV!=="production"?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function De(e,...t){if(process.env.NODE_ENV!=="production"){const r=x9[e],n=typeof r=="function"?r.apply(null,t):r;throw new Error(`[Immer] ${n}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var gr=Object.getPrototypeOf;function ar(e){return!!e&&!!e[Ke]}function bt(e){return e?xc(e)||Array.isArray(e)||!!e[eu]||!!e.constructor?.[eu]||Ci(e)||xi(e):!1}var w9=Object.prototype.constructor.toString();function xc(e){if(!e||typeof e!="object")return!1;const t=gr(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)===w9}function Fn(e,t){bi(e)===0?Reflect.ownKeys(e).forEach(r=>{t(r,e[r],e)}):e.forEach((r,n)=>t(n,r,e))}function bi(e){const t=e[Ke];return t?t.type_:Array.isArray(e)?1:Ci(e)?2:xi(e)?3:0}function M0(e,t){return bi(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function wc(e,t,r){const n=bi(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function O9(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Ci(e){return e instanceof Map}function xi(e){return e instanceof Set}function Kt(e){return e.copy_||e.base_}function T0(e,t){if(Ci(e))return new Map(e);if(xi(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const r=xc(e);if(t===!0||t==="class_only"&&!r){const n=Object.getOwnPropertyDescriptors(e);delete n[Ke];let i=Reflect.ownKeys(n);for(let a=0;a<i.length;a++){const o=i[a],s=n[o];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(n[o]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[o]})}return Object.create(gr(e),n)}else{const n=gr(e);if(n!==null&&r)return{...e};const i=Object.create(n);return Object.assign(i,e)}}function ja(e,t=!1){return wi(e)||ar(e)||!bt(e)||(bi(e)>1&&(e.set=e.add=e.clear=e.delete=E9),Object.freeze(e),t&&Object.entries(e).forEach(([r,n])=>ja(n,!0))),e}function E9(){De(2)}function wi(e){return Object.isFrozen(e)}var P9={};function or(e){const t=P9[e];return t||De(0,e),t}var Kr;function Oc(){return Kr}function A9(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function tu(e,t){t&&(or("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function k0(e){D0(e),e.drafts_.forEach(S9),e.drafts_=null}function D0(e){e===Kr&&(Kr=e.parent_)}function ru(e){return Kr=A9(Kr,e)}function S9(e){const t=e[Ke];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function nu(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return e!==void 0&&e!==r?(r[Ke].modified_&&(k0(t),De(4)),bt(e)&&(e=zn(t,e),t.parent_||qn(t,e)),t.patches_&&or("Patches").generateReplacementPatches_(r[Ke].base_,e,t.patches_,t.inversePatches_)):e=zn(t,r,[]),k0(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Cc?e:void 0}function zn(e,t,r){if(wi(t))return t;const n=t[Ke];if(!n)return Fn(t,(i,a)=>iu(e,n,t,i,a,r)),t;if(n.scope_!==e)return t;if(!n.modified_)return qn(e,n.base_,!0),n.base_;if(!n.finalized_){n.finalized_=!0,n.scope_.unfinalizedDrafts_--;const i=n.copy_;let a=i,o=!1;n.type_===3&&(a=new Set(i),i.clear(),o=!0),Fn(a,(s,u)=>iu(e,n,i,s,u,r,o)),qn(e,i,!1),r&&e.patches_&&or("Patches").generatePatches_(n,r,e.patches_,e.inversePatches_)}return n.copy_}function iu(e,t,r,n,i,a,o){if(process.env.NODE_ENV!=="production"&&i===r&&De(5),ar(i)){const s=a&&t&&t.type_!==3&&!M0(t.assigned_,n)?a.concat(n):void 0,u=zn(e,i,s);if(wc(r,n,u),ar(u))e.canAutoFreeze_=!1;else return}else o&&r.add(i);if(bt(i)&&!wi(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;zn(e,i),(!t||!t.scope_.parent_)&&typeof n!="symbol"&&Object.prototype.propertyIsEnumerable.call(r,n)&&qn(e,i)}}function qn(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&ja(t,r)}function _9(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:Oc(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=n,a=Ma;r&&(i=[n],a=Vr);const{revoke:o,proxy:s}=Proxy.revocable(i,a);return n.draft_=s,n.revoke_=o,s}var Ma={get(e,t){if(t===Ke)return e;const r=Kt(e);if(!M0(r,t))return j9(e,r,t);const n=r[t];return e.finalized_||!bt(n)?n:n===W2(e.base_,t)?(U2(e),e.copy_[t]=I0(n,e)):n},has(e,t){return t in Kt(e)},ownKeys(e){return Reflect.ownKeys(Kt(e))},set(e,t,r){const n=Ec(Kt(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const i=W2(Kt(e),t),a=i?.[Ke];if(a&&a.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(O9(r,i)&&(r!==void 0||M0(e.base_,t)))return!0;U2(e),N0(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 W2(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,U2(e),N0(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=Kt(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty(){De(11)},getPrototypeOf(e){return gr(e.base_)},setPrototypeOf(){De(12)}},Vr={};Fn(Ma,(e,t)=>{Vr[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Vr.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&De(13),Vr.set.call(this,e,t,void 0)};Vr.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&De(14),Ma.set.call(this,e[0],t,r,e[0])};function W2(e,t){const r=e[Ke];return(r?Kt(r):e)[t]}function j9(e,t,r){const n=Ec(t,r);return n?"value"in n?n.value:n.get?.call(e.draft_):void 0}function Ec(e,t){if(!(t in e))return;let r=gr(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=gr(r)}}function N0(e){e.modified_||(e.modified_=!0,e.parent_&&N0(e.parent_))}function U2(e){e.copy_||(e.copy_=T0(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var M9=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,r,n)=>{if(typeof t=="function"&&typeof r!="function"){const a=r;r=t;const o=this;return function(u=a,...c){return o.produce(u,l=>r.call(this,l,...c))}}typeof r!="function"&&De(6),n!==void 0&&typeof n!="function"&&De(7);let i;if(bt(t)){const a=ru(this),o=I0(t,void 0);let s=!0;try{i=r(o),s=!1}finally{s?k0(a):D0(a)}return tu(a,n),nu(i,a)}else if(!t||typeof t!="object"){if(i=r(t),i===void 0&&(i=t),i===Cc&&(i=void 0),this.autoFreeze_&&ja(i,!0),n){const a=[],o=[];or("Patches").generateReplacementPatches_(t,i,a,o),n(a,o)}return i}else De(1,t)},this.produceWithPatches=(t,r)=>{if(typeof t=="function")return(o,...s)=>this.produceWithPatches(o,u=>t(u,...s));let n,i;return[this.produce(t,r,(o,s)=>{n=o,i=s}),n,i]},typeof e?.autoFreeze=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof e?.useStrictShallowCopy=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){bt(e)||De(8),ar(e)&&(e=mt(e));const t=ru(this),r=I0(e,void 0);return r[Ke].isManual_=!0,D0(t),r}finishDraft(e,t){const r=e&&e[Ke];(!r||!r.isManual_)&&De(9);const{scope_:n}=r;return tu(n,t),nu(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const i=t[r];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}r>-1&&(t=t.slice(r+1));const n=or("Patches").applyPatches_;return ar(e)?n(e,t):this.produce(e,i=>n(i,t))}};function I0(e,t){const r=Ci(e)?or("MapSet").proxyMap_(e,t):xi(e)?or("MapSet").proxySet_(e,t):_9(e,t);return(t?t.scope_:Oc()).drafts_.push(r),r}function mt(e){return ar(e)||De(10,e),Pc(e)}function Pc(e){if(!bt(e)||wi(e))return e;const t=e[Ke];let r;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=T0(e,t.scope_.immer_.useStrictShallowCopy_)}else r=T0(e,!0);return Fn(r,(n,i)=>{wc(r,n,Pc(i))}),t&&(t.finalized_=!1),r}var Ve=new M9,Ac=Ve.produce;Ve.produceWithPatches.bind(Ve);Ve.setAutoFreeze.bind(Ve);Ve.setUseStrictShallowCopy.bind(Ve);Ve.applyPatches.bind(Ve);Ve.createDraft.bind(Ve);Ve.finishDraft.bind(Ve);function Sc(e){return({dispatch:r,getState:n})=>i=>a=>typeof a=="function"?a(r,n,e):i(a)}var T9=Sc(),k9=Sc,D9=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Bn:Bn.apply(null,arguments)},N9=e=>e&&typeof e.match=="function";function Je(e,t){function r(...n){if(t){let i=t(...n);if(!i)throw new Error(process.env.NODE_ENV==="production"?Z(0):"prepareAction did not return an object");return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>_a(n)&&n.type===e,r}function I9(e){return typeof e=="function"&&"type"in e&&N9(e)}function R9(e){const t=e?`${e}`.split("/"):[],r=t[t.length-1]||"actionCreator";return`Detected an action creator with type "${e||"unknown"}" being dispatched.
23
+ \`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:r,firstInputs:a,secondInputs:o,stack:c})}},Kh={inputStabilityCheck:"once",identityFunctionCheck:"once"};function Vh(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function Hh(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function Gh(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(r=>typeof r=="function")){const r=e.map(n=>typeof n=="function"?`function ${n.name||"unnamed"}()`:typeof n).join(", ");throw new TypeError(`${t}[${r}]`)}}var zs=e=>Array.isArray(e)?e:[e];function Yh(e){const t=Array.isArray(e[0])?e[0]:e;return Gh(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function qs(e,t){const r=[],{length:n}=e;for(let i=0;i<n;i++)r.push(e[i].apply(null,t));return r}var Zh=(e,t)=>{const{identityFunctionCheck:r,inputStabilityCheck:n}={...Kh,...t};return{identityFunctionCheck:{shouldRun:r==="always"||r==="once"&&e,run:Wh},inputStabilityCheck:{shouldRun:n==="always"||n==="once"&&e,run:Uh}}},Xh=class{constructor(e){this.value=e}deref(){return this.value}},Qh=typeof WeakRef<"u"?WeakRef:Xh,Jh=0,Ws=1;function xn(){return{s:Jh,v:void 0,o:null,p:null}}function pc(e,t={}){let r=xn();const{resultEqualityCheck:n}=t;let i,a=0;function o(){let s=r;const{length:u}=arguments;for(let f=0,d=u;f<d;f++){const h=arguments[f];if(typeof h=="function"||typeof h=="object"&&h!==null){let p=s.o;p===null&&(s.o=p=new WeakMap);const m=p.get(h);m===void 0?(s=xn(),p.set(h,s)):s=m}else{let p=s.p;p===null&&(s.p=p=new Map);const m=p.get(h);m===void 0?(s=xn(),p.set(h,s)):s=m}}const c=s;let l;if(s.s===Ws)l=s.v;else if(l=e.apply(null,arguments),a++,n){const f=i?.deref?.()??i;f!=null&&n(f,l)&&(l=f,a!==0&&a--),i=typeof l=="object"&&l!==null||typeof l=="function"?new Qh(l):l}return c.s=Ws,c.v=l,l}return o.clearCache=()=>{r=xn(),o.resetResultsCount()},o.resultsCount=()=>a,o.resetResultsCount=()=>{a=0},o}function e9(e,...t){const r=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,n=(...i)=>{let a=0,o=0,s,u={},c=i.pop();typeof c=="object"&&(u=c,c=i.pop()),Vh(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);const l={...r,...u},{memoize:f,memoizeOptions:d=[],argsMemoize:h=pc,argsMemoizeOptions:p=[],devModeChecks:m={}}=l,v=zs(d),y=zs(p),b=Yh(i),g=f(function(){return a++,c.apply(null,arguments)},...v);let w=!0;const C=h(function(){o++;const P=qs(b,arguments);if(s=g.apply(null,P),process.env.NODE_ENV!=="production"){const{identityFunctionCheck:_,inputStabilityCheck:M}=Zh(w,m);if(_.shouldRun&&_.run(c,P,s),M.shouldRun){const z=qs(b,arguments);M.run({inputSelectorResults:P,inputSelectorResultsCopy:z},{memoize:f,memoizeOptions:v},arguments)}w&&(w=!1)}return s},...y);return Object.assign(C,{resultFunc:c,memoizedResultFunc:g,dependencies:b,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>s,recomputations:()=>a,resetRecomputations:()=>{a=0},memoize:f,argsMemoize:h})};return Object.assign(n,{withTypes:()=>n}),n}var A=e9(pc),t9=Object.assign((e,t=A)=>{Hh(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),n=r.map(a=>e[a]);return t(n,(...a)=>a.reduce((o,s,u)=>(o[r[u]]=s,o),{}))},{withTypes:()=>t9}),N2={},I2={},R2={},Us;function r9(){return Us||(Us=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="symbol"?1:n===null?2:n===void 0?3:n!==n?4:0}const r=(n,i,a)=>{if(n!==i){const o=t(n),s=t(i);if(o===s&&o===0){if(n<i)return a==="desc"?1:-1;if(n>i)return a==="desc"?-1:1}return a==="desc"?s-o:o-s}return 0};e.compareValues=r}(R2)),R2}var $2={},L2={},Ks;function vc(){return Ks||(Ks=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="symbol"||r instanceof Symbol}e.isSymbol=t}(L2)),L2}var Vs;function n9(){return Vs||(Vs=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=vc(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function i(a,o){return Array.isArray(a)?!1:typeof a=="number"||typeof a=="boolean"||a==null||t.isSymbol(a)?!0:typeof a=="string"&&(n.test(a)||!r.test(a))||o!=null&&Object.hasOwn(o,a)}e.isKey=i}($2)),$2}var Hs;function i9(){return Hs||(Hs=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=r9(),r=n9(),n=ma();function i(a,o,s,u){if(a==null)return[];s=u?void 0:s,Array.isArray(a)||(a=Object.values(a)),Array.isArray(o)||(o=o==null?[null]:[o]),o.length===0&&(o=[null]),Array.isArray(s)||(s=s==null?[]:[s]),s=s.map(h=>String(h));const c=(h,p)=>{let m=h;for(let v=0;v<p.length&&m!=null;++v)m=m[p[v]];return m},l=(h,p)=>p==null||h==null?p:typeof h=="object"&&"key"in h?Object.hasOwn(p,h.key)?p[h.key]:c(p,h.path):typeof h=="function"?h(p):Array.isArray(h)?c(p,h):typeof p=="object"?p[h]:p,f=o.map(h=>(Array.isArray(h)&&h.length===1&&(h=h[0]),h==null||typeof h=="function"||Array.isArray(h)||r.isKey(h)?h:{key:h,path:n.toPath(h)}));return a.map(h=>({original:h,criteria:f.map(p=>l(p,h))})).slice().sort((h,p)=>{for(let m=0;m<f.length;m++){const v=t.compareValues(h.criteria[m],p.criteria[m],s[m]);if(v!==0)return v}return 0}).map(h=>h.original)}e.orderBy=i}(I2)),I2}var B2={},Gs;function a9(){return Gs||(Gs=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n=1){const i=[],a=Math.floor(n),o=(s,u)=>{for(let c=0;c<s.length;c++){const l=s[c];Array.isArray(l)&&u<a?o(l,u+1):i.push(l)}};return o(r,0),i}e.flatten=t}(B2)),B2}var F2={},Ys;function mc(){return Ys||(Ys=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=hc(),r=wa(),n=lc(),i=Oa();function a(o,s,u){return n.isObject(u)&&(typeof s=="number"&&r.isArrayLike(u)&&t.isIndex(s)&&s<u.length||typeof s=="string"&&s in u)?i.eq(u[s],o):!1}e.isIterateeCall=a}(F2)),F2}var Zs;function o9(){return Zs||(Zs=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=i9(),r=a9(),n=mc();function i(a,...o){const s=o.length;return s>1&&n.isIterateeCall(a,o[0],o[1])?o=[]:s>2&&n.isIterateeCall(o[0],o[1],o[2])&&(o=[o[0]]),t.orderBy(a,r.flatten(o),["asc"])}e.sortBy=i}(N2)),N2}var z2,Xs;function s9(){return Xs||(Xs=1,z2=o9().sortBy),z2}var u9=s9();const gi=S.getDefaultExportFromCjs(u9);var yc=e=>e.legend.settings,l9=e=>e.legend.size,c9=e=>e.legend.payload;A([c9,yc],(e,t)=>{var{itemSorter:r}=t,n=e.flat(1);return r?gi(n,r):n});var wn=1;function f9(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],[t,r]=E.useState({height:0,left:0,top:0,width:0}),n=E.useCallback(i=>{if(i!=null){var a=i.getBoundingClientRect(),o={height:a.height,left:a.left,top:a.top,width:a.width};(Math.abs(o.height-t.height)>wn||Math.abs(o.left-t.left)>wn||Math.abs(o.top-t.top)>wn||Math.abs(o.width-t.width)>wn)&&r({height:o.height,left:o.left,top:o.top,width:o.width})}},[t.width,t.height,t.top,t.left,...e]);return[t,n]}function Ce(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 d9=typeof Symbol=="function"&&Symbol.observable||"@@observable",Qs=d9,q2=()=>Math.random().toString(36).substring(7).split("").join("."),h9={INIT:`@@redux/INIT${q2()}`,REPLACE:`@@redux/REPLACE${q2()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${q2()}`},Jt=h9;function nn(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 p9(e){if(e===void 0)return"undefined";if(e===null)return"null";const t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(y9(e))return"date";if(m9(e))return"error";const r=v9(e);switch(r){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return r}return Object.prototype.toString.call(e).slice(8,-1).toLowerCase().replace(/\s/g,"")}function v9(e){return typeof e.constructor=="function"?e.constructor.name:null}function m9(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function y9(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function Mt(e){let t=typeof e;return process.env.NODE_ENV!=="production"&&(t=p9(e)),t}function gc(e,t,r){if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?Ce(2):`Expected the root reducer to be a function. Instead, received: '${Mt(e)}'`);if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?Ce(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(process.env.NODE_ENV==="production"?Ce(1):`Expected the enhancer to be a function. Instead, received: '${Mt(r)}'`);return r(gc)(e,t)}let n=e,i=t,a=new Map,o=a,s=0,u=!1;function c(){o===a&&(o=new Map,a.forEach((v,y)=>{o.set(y,v)}))}function l(){if(u)throw new Error(process.env.NODE_ENV==="production"?Ce(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return i}function f(v){if(typeof v!="function")throw new Error(process.env.NODE_ENV==="production"?Ce(4):`Expected the listener to be a function. Instead, received: '${Mt(v)}'`);if(u)throw new Error(process.env.NODE_ENV==="production"?Ce(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");let y=!0;c();const b=s++;return o.set(b,v),function(){if(y){if(u)throw new Error(process.env.NODE_ENV==="production"?Ce(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");y=!1,c(),o.delete(b),a=null}}}function d(v){if(!nn(v))throw new Error(process.env.NODE_ENV==="production"?Ce(7):`Actions must be plain objects. Instead, the actual type was: '${Mt(v)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);if(typeof v.type>"u")throw new Error(process.env.NODE_ENV==="production"?Ce(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(typeof v.type!="string")throw new Error(process.env.NODE_ENV==="production"?Ce(17):`Action "type" property must be a string. Instead, the actual type was: '${Mt(v.type)}'. Value was: '${v.type}' (stringified)`);if(u)throw new Error(process.env.NODE_ENV==="production"?Ce(9):"Reducers may not dispatch actions.");try{u=!0,i=n(i,v)}finally{u=!1}return(a=o).forEach(b=>{b()}),v}function h(v){if(typeof v!="function")throw new Error(process.env.NODE_ENV==="production"?Ce(10):`Expected the nextReducer to be a function. Instead, received: '${Mt(v)}`);n=v,d({type:Jt.REPLACE})}function p(){const v=f;return{subscribe(y){if(typeof y!="object"||y===null)throw new Error(process.env.NODE_ENV==="production"?Ce(11):`Expected the observer to be an object. Instead, received: '${Mt(y)}'`);function b(){const w=y;w.next&&w.next(l())}return b(),{unsubscribe:v(b)}},[Qs](){return this}}}return d({type:Jt.INIT}),{dispatch:d,subscribe:f,getState:l,replaceReducer:h,[Qs]:p}}function Js(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function g9(e,t,r,n){const i=Object.keys(t),a=r&&r.type===Jt.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(i.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!nn(e))return`The ${a} has unexpected type of "${Mt(e)}". Expected argument to be an object with the following keys: "${i.join('", "')}"`;const o=Object.keys(e).filter(s=>!t.hasOwnProperty(s)&&!n[s]);if(o.forEach(s=>{n[s]=!0}),!(r&&r.type===Jt.REPLACE)&&o.length>0)return`Unexpected ${o.length>1?"keys":"key"} "${o.join('", "')}" found in ${a}. Expected to find one of the known reducer keys instead: "${i.join('", "')}". Unexpected keys will be ignored.`}function b9(e){Object.keys(e).forEach(t=>{const r=e[t];if(typeof r(void 0,{type:Jt.INIT})>"u")throw new Error(process.env.NODE_ENV==="production"?Ce(12):`The slice reducer for key "${t}" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof r(void 0,{type:Jt.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?Ce(13):`The slice reducer for key "${t}" returned undefined when probed with a random type. Don't try to handle '${Jt.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`)})}function bc(e){const t=Object.keys(e),r={};for(let o=0;o<t.length;o++){const s=t[o];process.env.NODE_ENV!=="production"&&typeof e[s]>"u"&&Js(`No reducer provided for key "${s}"`),typeof e[s]=="function"&&(r[s]=e[s])}const n=Object.keys(r);let i;process.env.NODE_ENV!=="production"&&(i={});let a;try{b9(r)}catch(o){a=o}return function(s={},u){if(a)throw a;if(process.env.NODE_ENV!=="production"){const f=g9(s,r,u,i);f&&Js(f)}let c=!1;const l={};for(let f=0;f<n.length;f++){const d=n[f],h=r[d],p=s[d],m=h(p,u);if(typeof m>"u"){const v=u&&u.type;throw new Error(process.env.NODE_ENV==="production"?Ce(14):`When called with an action of type ${v?`"${String(v)}"`:"(unknown type)"}, the slice reducer for key "${d}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`)}l[d]=m,c=c||m!==p}return c=c||n.length!==Object.keys(s).length,c?l:s}}function Bn(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function C9(...e){return t=>(r,n)=>{const i=t(r,n);let a=()=>{throw new Error(process.env.NODE_ENV==="production"?Ce(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")};const o={getState:i.getState,dispatch:(u,...c)=>a(u,...c)},s=e.map(u=>u(o));return a=Bn(...s)(i.dispatch),{...i,dispatch:a}}}function _a(e){return nn(e)&&"type"in e&&typeof e.type=="string"}var Cc=Symbol.for("immer-nothing"),eu=Symbol.for("immer-draftable"),Ke=Symbol.for("immer-state"),x9=process.env.NODE_ENV!=="production"?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function De(e,...t){if(process.env.NODE_ENV!=="production"){const r=x9[e],n=typeof r=="function"?r.apply(null,t):r;throw new Error(`[Immer] ${n}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var gr=Object.getPrototypeOf;function ar(e){return!!e&&!!e[Ke]}function bt(e){return e?xc(e)||Array.isArray(e)||!!e[eu]||!!e.constructor?.[eu]||Ci(e)||xi(e):!1}var w9=Object.prototype.constructor.toString();function xc(e){if(!e||typeof e!="object")return!1;const t=gr(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)===w9}function Fn(e,t){bi(e)===0?Reflect.ownKeys(e).forEach(r=>{t(r,e[r],e)}):e.forEach((r,n)=>t(n,r,e))}function bi(e){const t=e[Ke];return t?t.type_:Array.isArray(e)?1:Ci(e)?2:xi(e)?3:0}function M0(e,t){return bi(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function wc(e,t,r){const n=bi(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function O9(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Ci(e){return e instanceof Map}function xi(e){return e instanceof Set}function Kt(e){return e.copy_||e.base_}function T0(e,t){if(Ci(e))return new Map(e);if(xi(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const r=xc(e);if(t===!0||t==="class_only"&&!r){const n=Object.getOwnPropertyDescriptors(e);delete n[Ke];let i=Reflect.ownKeys(n);for(let a=0;a<i.length;a++){const o=i[a],s=n[o];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(n[o]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[o]})}return Object.create(gr(e),n)}else{const n=gr(e);if(n!==null&&r)return{...e};const i=Object.create(n);return Object.assign(i,e)}}function ja(e,t=!1){return wi(e)||ar(e)||!bt(e)||(bi(e)>1&&(e.set=e.add=e.clear=e.delete=E9),Object.freeze(e),t&&Object.entries(e).forEach(([r,n])=>ja(n,!0))),e}function E9(){De(2)}function wi(e){return Object.isFrozen(e)}var P9={};function or(e){const t=P9[e];return t||De(0,e),t}var Kr;function Oc(){return Kr}function A9(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function tu(e,t){t&&(or("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function k0(e){D0(e),e.drafts_.forEach(S9),e.drafts_=null}function D0(e){e===Kr&&(Kr=e.parent_)}function ru(e){return Kr=A9(Kr,e)}function S9(e){const t=e[Ke];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function nu(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return e!==void 0&&e!==r?(r[Ke].modified_&&(k0(t),De(4)),bt(e)&&(e=zn(t,e),t.parent_||qn(t,e)),t.patches_&&or("Patches").generateReplacementPatches_(r[Ke].base_,e,t.patches_,t.inversePatches_)):e=zn(t,r,[]),k0(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Cc?e:void 0}function zn(e,t,r){if(wi(t))return t;const n=t[Ke];if(!n)return Fn(t,(i,a)=>iu(e,n,t,i,a,r)),t;if(n.scope_!==e)return t;if(!n.modified_)return qn(e,n.base_,!0),n.base_;if(!n.finalized_){n.finalized_=!0,n.scope_.unfinalizedDrafts_--;const i=n.copy_;let a=i,o=!1;n.type_===3&&(a=new Set(i),i.clear(),o=!0),Fn(a,(s,u)=>iu(e,n,i,s,u,r,o)),qn(e,i,!1),r&&e.patches_&&or("Patches").generatePatches_(n,r,e.patches_,e.inversePatches_)}return n.copy_}function iu(e,t,r,n,i,a,o){if(process.env.NODE_ENV!=="production"&&i===r&&De(5),ar(i)){const s=a&&t&&t.type_!==3&&!M0(t.assigned_,n)?a.concat(n):void 0,u=zn(e,i,s);if(wc(r,n,u),ar(u))e.canAutoFreeze_=!1;else return}else o&&r.add(i);if(bt(i)&&!wi(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;zn(e,i),(!t||!t.scope_.parent_)&&typeof n!="symbol"&&Object.prototype.propertyIsEnumerable.call(r,n)&&qn(e,i)}}function qn(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&ja(t,r)}function _9(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:Oc(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=n,a=Ma;r&&(i=[n],a=Vr);const{revoke:o,proxy:s}=Proxy.revocable(i,a);return n.draft_=s,n.revoke_=o,s}var Ma={get(e,t){if(t===Ke)return e;const r=Kt(e);if(!M0(r,t))return j9(e,r,t);const n=r[t];return e.finalized_||!bt(n)?n:n===W2(e.base_,t)?(U2(e),e.copy_[t]=I0(n,e)):n},has(e,t){return t in Kt(e)},ownKeys(e){return Reflect.ownKeys(Kt(e))},set(e,t,r){const n=Ec(Kt(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const i=W2(Kt(e),t),a=i?.[Ke];if(a&&a.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(O9(r,i)&&(r!==void 0||M0(e.base_,t)))return!0;U2(e),N0(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 W2(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,U2(e),N0(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=Kt(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty(){De(11)},getPrototypeOf(e){return gr(e.base_)},setPrototypeOf(){De(12)}},Vr={};Fn(Ma,(e,t)=>{Vr[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Vr.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&De(13),Vr.set.call(this,e,t,void 0)};Vr.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&De(14),Ma.set.call(this,e[0],t,r,e[0])};function W2(e,t){const r=e[Ke];return(r?Kt(r):e)[t]}function j9(e,t,r){const n=Ec(t,r);return n?"value"in n?n.value:n.get?.call(e.draft_):void 0}function Ec(e,t){if(!(t in e))return;let r=gr(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=gr(r)}}function N0(e){e.modified_||(e.modified_=!0,e.parent_&&N0(e.parent_))}function U2(e){e.copy_||(e.copy_=T0(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var M9=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,r,n)=>{if(typeof t=="function"&&typeof r!="function"){const a=r;r=t;const o=this;return function(u=a,...c){return o.produce(u,l=>r.call(this,l,...c))}}typeof r!="function"&&De(6),n!==void 0&&typeof n!="function"&&De(7);let i;if(bt(t)){const a=ru(this),o=I0(t,void 0);let s=!0;try{i=r(o),s=!1}finally{s?k0(a):D0(a)}return tu(a,n),nu(i,a)}else if(!t||typeof t!="object"){if(i=r(t),i===void 0&&(i=t),i===Cc&&(i=void 0),this.autoFreeze_&&ja(i,!0),n){const a=[],o=[];or("Patches").generateReplacementPatches_(t,i,a,o),n(a,o)}return i}else De(1,t)},this.produceWithPatches=(t,r)=>{if(typeof t=="function")return(o,...s)=>this.produceWithPatches(o,u=>t(u,...s));let n,i;return[this.produce(t,r,(o,s)=>{n=o,i=s}),n,i]},typeof e?.autoFreeze=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof e?.useStrictShallowCopy=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){bt(e)||De(8),ar(e)&&(e=mt(e));const t=ru(this),r=I0(e,void 0);return r[Ke].isManual_=!0,D0(t),r}finishDraft(e,t){const r=e&&e[Ke];(!r||!r.isManual_)&&De(9);const{scope_:n}=r;return tu(n,t),nu(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const i=t[r];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}r>-1&&(t=t.slice(r+1));const n=or("Patches").applyPatches_;return ar(e)?n(e,t):this.produce(e,i=>n(i,t))}};function I0(e,t){const r=Ci(e)?or("MapSet").proxyMap_(e,t):xi(e)?or("MapSet").proxySet_(e,t):_9(e,t);return(t?t.scope_:Oc()).drafts_.push(r),r}function mt(e){return ar(e)||De(10,e),Pc(e)}function Pc(e){if(!bt(e)||wi(e))return e;const t=e[Ke];let r;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=T0(e,t.scope_.immer_.useStrictShallowCopy_)}else r=T0(e,!0);return Fn(r,(n,i)=>{wc(r,n,Pc(i))}),t&&(t.finalized_=!1),r}var Ve=new M9,Ac=Ve.produce;Ve.produceWithPatches.bind(Ve);Ve.setAutoFreeze.bind(Ve);Ve.setUseStrictShallowCopy.bind(Ve);Ve.applyPatches.bind(Ve);Ve.createDraft.bind(Ve);Ve.finishDraft.bind(Ve);function Sc(e){return({dispatch:r,getState:n})=>i=>a=>typeof a=="function"?a(r,n,e):i(a)}var T9=Sc(),k9=Sc,D9=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Bn:Bn.apply(null,arguments)},N9=e=>e&&typeof e.match=="function";function Je(e,t){function r(...n){if(t){let i=t(...n);if(!i)throw new Error(process.env.NODE_ENV==="production"?Z(0):"prepareAction did not return an object");return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>_a(n)&&n.type===e,r}function I9(e){return typeof e=="function"&&"type"in e&&N9(e)}function R9(e){const t=e?`${e}`.split("/"):[],r=t[t.length-1]||"actionCreator";return`Detected an action creator with type "${e||"unknown"}" being dispatched.
24
24
  Make sure you're calling the action creator before dispatching, i.e. \`dispatch(${r}())\` instead of \`dispatch(${r})\`. This is necessary even if the action has no payload.`}function $9(e={}){if(process.env.NODE_ENV==="production")return()=>r=>n=>r(n);const{isActionCreator:t=I9}=e;return()=>r=>n=>(t(n)&&console.warn(R9(n.type)),r(n))}function _c(e,t){let r=0;return{measureTime(n){const i=Date.now();try{return n()}finally{const a=Date.now();r+=a-i}},warnIfExceeded(){r>e&&console.warn(`${t} took ${r}ms, which is more than the warning threshold of ${e}ms.
25
25
  If your state or actions are very large, you may want to disable the middleware as it might cause too much of a slowdown in development mode. See https://redux-toolkit.js.org/api/getDefaultMiddleware for instructions.
26
26
  It is disabled in production builds, so you don't need to worry about that.`)}}}var jc=class Br extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Br.prototype)}static get[Symbol.species](){return Br}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Br(...t[0].concat(this)):new Br(...t.concat(this))}};function au(e){return bt(e)?Ac(e,()=>{}):e}function On(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function L9(e){return typeof e!="object"||e==null||Object.isFrozen(e)}function B9(e,t,r){const n=Mc(e,t,r);return{detectMutations(){return Tc(e,t,n,r)}}}function Mc(e,t=[],r,n="",i=new Set){const a={value:r};if(!e(r)&&!i.has(r)){i.add(r),a.children={};for(const o in r){const s=n?n+"."+o:o;t.length&&t.indexOf(s)!==-1||(a.children[o]=Mc(e,t,r[o],s))}}return a}function Tc(e,t=[],r,n,i=!1,a=""){const o=r?r.value:void 0,s=o===n;if(i&&!s&&!Number.isNaN(n))return{wasMutated:!0,path:a};if(e(o)||e(n))return{wasMutated:!1};const u={};for(let l in r.children)u[l]=!0;for(let l in n)u[l]=!0;const c=t.length>0;for(let l in u){const f=a?a+"."+l:l;if(c&&t.some(p=>p instanceof RegExp?p.test(f):f===p))continue;const d=Tc(e,t,r.children[l],n[l],s,f);if(d.wasMutated)return d}return{wasMutated:!1}}function F9(e={}){if(process.env.NODE_ENV==="production")return()=>t=>r=>t(r);{let t=function(s,u,c,l){return JSON.stringify(s,r(u,l),c)},r=function(s,u){let c=[],l=[];return u||(u=function(f,d){return c[0]===d?"[Circular ~]":"[Circular ~."+l.slice(0,c.indexOf(d)).join(".")+"]"}),function(f,d){if(c.length>0){var h=c.indexOf(this);~h?c.splice(h+1):c.push(this),~h?l.splice(h,1/0,f):l.push(f),~c.indexOf(d)&&(d=u.call(this,f,d))}else c.push(d);return s==null?d:s.call(this,f,d)}},{isImmutable:n=L9,ignoredPaths:i,warnAfter:a=32}=e;const o=B9.bind(null,n,i);return({getState:s})=>{let u=s(),c=o(u),l;return f=>d=>{const h=_c(a,"ImmutableStateInvariantMiddleware");h.measureTime(()=>{if(u=s(),l=c.detectMutations(),c=o(u),l.wasMutated)throw new Error(process.env.NODE_ENV==="production"?Z(19):`A state mutation was detected between dispatches, in the path '${l.path||""}'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)});const p=f(d);return h.measureTime(()=>{if(u=s(),l=c.detectMutations(),c=o(u),l.wasMutated)throw new Error(process.env.NODE_ENV==="production"?Z(20):`A state mutation was detected inside a dispatch, in the path: ${l.path||""}. Take a look at the reducer(s) handling the action ${t(d)}. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)}),h.warnIfExceeded(),p}}}}function kc(e){const t=typeof e;return e==null||t==="string"||t==="boolean"||t==="number"||Array.isArray(e)||nn(e)}function R0(e,t="",r=kc,n,i=[],a){let o;if(!r(e))return{keyPath:t||"<root>",value:e};if(typeof e!="object"||e===null||a?.has(e))return!1;const s=n!=null?n(e):Object.entries(e),u=i.length>0;for(const[c,l]of s){const f=t?t+"."+c:c;if(!(u&&i.some(h=>h instanceof RegExp?h.test(f):f===h))){if(!r(l))return{keyPath:f,value:l};if(typeof l=="object"&&(o=R0(l,f,r,n,i,a),o))return o}}return a&&Dc(e)&&a.add(e),!1}function Dc(e){if(!Object.isFrozen(e))return!1;for(const t of Object.values(e))if(!(typeof t!="object"||t===null)&&!Dc(t))return!1;return!0}function z9(e={}){if(process.env.NODE_ENV==="production")return()=>t=>r=>t(r);{const{isSerializable:t=kc,getEntries:r,ignoredActions:n=[],ignoredActionPaths:i=["meta.arg","meta.baseQueryMeta"],ignoredPaths:a=[],warnAfter:o=32,ignoreState:s=!1,ignoreActions:u=!1,disableCache:c=!1}=e,l=!c&&WeakSet?new WeakSet:void 0;return f=>d=>h=>{if(!_a(h))return d(h);const p=d(h),m=_c(o,"SerializableStateInvariantMiddleware");return!u&&!(n.length&&n.indexOf(h.type)!==-1)&&m.measureTime(()=>{const v=R0(h,"",t,r,i,l);if(v){const{keyPath:y,value:b}=v;console.error(`A non-serializable value was detected in an action, in the path: \`${y}\`. Value:`,b,`
@@ -28,7 +28,7 @@ Take a look at the logic that dispatched this action: `,h,`
28
28
  (See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)`,`
29
29
  (To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`)}}),s||(m.measureTime(()=>{const v=f.getState(),y=R0(v,"",t,r,a,l);if(y){const{keyPath:b,value:g}=y;console.error(`A non-serializable value was detected in the state, in the path: \`${b}\`. Value:`,g,`
30
30
  Take a look at the reducer(s) handling this action type: ${h.type}.
31
- (See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),m.warnIfExceeded()),p}}}function En(e){return typeof e=="boolean"}var q9=()=>function(t){const{thunk:r=!0,immutableCheck:n=!0,serializableCheck:i=!0,actionCreatorCheck:a=!0}=t??{};let o=new jc;if(r&&(En(r)?o.push(T9):o.push(k9(r.extraArgument))),process.env.NODE_ENV!=="production"){if(n){let s={};En(n)||(s=n),o.unshift(F9(s))}if(i){let s={};En(i)||(s=i),o.push(z9(s))}if(a){let s={};En(a)||(s=a),o.unshift($9(s))}}return o},W9="RTK_autoBatch",ou=e=>t=>{setTimeout(t,e)},U9=(e={type:"raf"})=>t=>(...r)=>{const n=t(...r);let i=!0,a=!1,o=!1;const s=new Set,u=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:ou(10):e.type==="callback"?e.queueNotification:ou(e.timeout),c=()=>{o=!1,a&&(a=!1,s.forEach(l=>l()))};return Object.assign({},n,{subscribe(l){const f=()=>i&&l(),d=n.subscribe(f);return s.add(l),()=>{d(),s.delete(l)}},dispatch(l){try{return i=!l?.meta?.[W9],a=!i,a&&(o||(o=!0,u(c))),n.dispatch(l)}finally{i=!0}}})},K9=e=>function(r){const{autoBatch:n=!0}=r??{};let i=new jc(e);return n&&i.push(U9(typeof n=="object"?n:void 0)),i};function V9(e){const t=q9(),{reducer:r=void 0,middleware:n,devTools:i=!0,duplicateMiddlewareCheck:a=!0,preloadedState:o=void 0,enhancers:s=void 0}=e||{};let u;if(typeof r=="function")u=r;else if(nn(r))u=bc(r);else throw new Error(process.env.NODE_ENV==="production"?Z(1):"`reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers");if(process.env.NODE_ENV!=="production"&&n&&typeof n!="function")throw new Error(process.env.NODE_ENV==="production"?Z(2):"`middleware` field must be a callback");let c;if(typeof n=="function"){if(c=n(t),process.env.NODE_ENV!=="production"&&!Array.isArray(c))throw new Error(process.env.NODE_ENV==="production"?Z(3):"when using a middleware builder function, an array of middleware must be returned")}else c=t();if(process.env.NODE_ENV!=="production"&&c.some(m=>typeof m!="function"))throw new Error(process.env.NODE_ENV==="production"?Z(4):"each middleware provided to configureStore must be a function");if(process.env.NODE_ENV!=="production"&&a){let m=new Set;c.forEach(v=>{if(m.has(v))throw new Error(process.env.NODE_ENV==="production"?Z(42):"Duplicate middleware references found when creating the store. Ensure that each middleware is only included once.");m.add(v)})}let l=Bn;i&&(l=D9({trace:process.env.NODE_ENV!=="production",...typeof i=="object"&&i}));const f=C9(...c),d=K9(f);if(process.env.NODE_ENV!=="production"&&s&&typeof s!="function")throw new Error(process.env.NODE_ENV==="production"?Z(5):"`enhancers` field must be a callback");let h=typeof s=="function"?s(d):d();if(process.env.NODE_ENV!=="production"&&!Array.isArray(h))throw new Error(process.env.NODE_ENV==="production"?Z(6):"`enhancers` callback must return an array");if(process.env.NODE_ENV!=="production"&&h.some(m=>typeof m!="function"))throw new Error(process.env.NODE_ENV==="production"?Z(7):"each enhancer provided to configureStore must be a function");process.env.NODE_ENV!=="production"&&c.length&&!h.includes(f)&&console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");const p=l(...h);return gc(u,o,p)}function Nc(e){const t={},r=[];let n;const i={addCase(a,o){if(process.env.NODE_ENV!=="production"){if(r.length>0)throw new Error(process.env.NODE_ENV==="production"?Z(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(n)throw new Error(process.env.NODE_ENV==="production"?Z(27):"`builder.addCase` should only be called before calling `builder.addDefaultCase`")}const s=typeof a=="string"?a:a.type;if(!s)throw new Error(process.env.NODE_ENV==="production"?Z(28):"`builder.addCase` cannot be called with an empty action type");if(s in t)throw new Error(process.env.NODE_ENV==="production"?Z(29):`\`builder.addCase\` cannot be called with two reducers for the same action type '${s}'`);return t[s]=o,i},addMatcher(a,o){if(process.env.NODE_ENV!=="production"&&n)throw new Error(process.env.NODE_ENV==="production"?Z(30):"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return r.push({matcher:a,reducer:o}),i},addDefaultCase(a){if(process.env.NODE_ENV!=="production"&&n)throw new Error(process.env.NODE_ENV==="production"?Z(31):"`builder.addDefaultCase` can only be called once");return n=a,i}};return e(i),[t,r,n]}function H9(e){return typeof e=="function"}function G9(e,t){if(process.env.NODE_ENV!=="production"&&typeof t=="object")throw new Error(process.env.NODE_ENV==="production"?Z(8):"The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");let[r,n,i]=Nc(t),a;if(H9(e))a=()=>au(e());else{const s=au(e);a=()=>s}function o(s=a(),u){let c=[r[u.type],...n.filter(({matcher:l})=>l(u)).map(({reducer:l})=>l)];return c.filter(l=>!!l).length===0&&(c=[i]),c.reduce((l,f)=>{if(f)if(ar(l)){const h=f(l,u);return h===void 0?l:h}else{if(bt(l))return Ac(l,d=>f(d,u));{const d=f(l,u);if(d===void 0){if(l===null)return l;throw Error("A case reducer on a non-draftable value must not return undefined")}return d}}return l},s)}return o.getInitialState=a,o}var Y9="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Z9=(e=21)=>{let t="",r=e;for(;r--;)t+=Y9[Math.random()*64|0];return t},X9=Symbol.for("rtk-slice-createasyncthunk");function Q9(e,t){return`${e}/${t}`}function J9({creators:e}={}){const t=e?.asyncThunk?.[X9];return function(n){const{name:i,reducerPath:a=i}=n;if(!i)throw new Error(process.env.NODE_ENV==="production"?Z(11):"`name` is a required option for createSlice");typeof process<"u"&&process.env.NODE_ENV==="development"&&n.initialState===void 0&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");const o=(typeof n.reducers=="function"?n.reducers(t6()):n.reducers)||{},s=Object.keys(o),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(g,w){const C=typeof g=="string"?g:g.type;if(!C)throw new Error(process.env.NODE_ENV==="production"?Z(12):"`context.addCase` cannot be called with an empty action type");if(C in u.sliceCaseReducersByType)throw new Error(process.env.NODE_ENV==="production"?Z(13):"`context.addCase` cannot be called with two reducers for the same action type: "+C);return u.sliceCaseReducersByType[C]=w,c},addMatcher(g,w){return u.sliceMatchers.push({matcher:g,reducer:w}),c},exposeAction(g,w){return u.actionCreators[g]=w,c},exposeCaseReducer(g,w){return u.sliceCaseReducersByName[g]=w,c}};s.forEach(g=>{const w=o[g],C={reducerName:g,type:Q9(i,g),createNotation:typeof n.reducers=="function"};n6(w)?a6(C,w,c,t):r6(C,w,c)});function l(){if(process.env.NODE_ENV!=="production"&&typeof n.extraReducers=="object")throw new Error(process.env.NODE_ENV==="production"?Z(14):"The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");const[g={},w=[],C=void 0]=typeof n.extraReducers=="function"?Nc(n.extraReducers):[n.extraReducers],O={...g,...u.sliceCaseReducersByType};return G9(n.initialState,P=>{for(let _ in O)P.addCase(_,O[_]);for(let _ of u.sliceMatchers)P.addMatcher(_.matcher,_.reducer);for(let _ of w)P.addMatcher(_.matcher,_.reducer);C&&P.addDefaultCase(C)})}const f=g=>g,d=new Map,h=new WeakMap;let p;function m(g,w){return p||(p=l()),p(g,w)}function v(){return p||(p=l()),p.getInitialState()}function y(g,w=!1){function C(P){let _=P[g];if(typeof _>"u"){if(w)_=On(h,C,v);else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?Z(15):"selectSlice returned undefined for an uninjected slice reducer")}return _}function O(P=f){const _=On(d,w,()=>new WeakMap);return On(_,P,()=>{const M={};for(const[z,T]of Object.entries(n.selectors??{}))M[z]=e6(T,P,()=>On(h,P,v),w);return M})}return{reducerPath:g,getSelectors:O,get selectors(){return O(C)},selectSlice:C}}const b={name:i,reducer:m,actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState:v,...y(a),injectInto(g,{reducerPath:w,...C}={}){const O=w??a;return g.inject({reducerPath:O,reducer:m},C),{...b,...y(O,!0)}}};return b}}function e6(e,t,r,n){function i(a,...o){let s=t(a);if(typeof s>"u"){if(n)s=r();else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?Z(16):"selectState returned undefined for an uninjected slice reducer")}return e(s,...o)}return i.unwrapped=e,i}var He=J9();function t6(){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 r6({type:e,reducerName:t,createNotation:r},n,i){let a,o;if("reducer"in n){if(r&&!i6(n))throw new Error(process.env.NODE_ENV==="production"?Z(17):"Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");a=n.reducer,o=n.prepare}else a=n;i.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,o?Je(e,o):Je(e))}function n6(e){return e._reducerDefinitionType==="asyncThunk"}function i6(e){return e._reducerDefinitionType==="reducerWithPrepare"}function a6({type:e,reducerName:t},r,n,i){if(!i)throw new Error(process.env.NODE_ENV==="production"?Z(18):"Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");const{payloadCreator:a,fulfilled:o,pending:s,rejected:u,settled:c,options:l}=r,f=i(e,a,l);n.exposeAction(t,f),o&&n.addCase(f.fulfilled,o),s&&n.addCase(f.pending,s),u&&n.addCase(f.rejected,u),c&&n.addMatcher(f.settled,c),n.exposeCaseReducer(t,{fulfilled:o||Pn,pending:s||Pn,rejected:u||Pn,settled:c||Pn})}function Pn(){}var o6="task",Ic="listener",Rc="completed",Ta="cancelled",s6=`task-${Ta}`,u6=`task-${Rc}`,$0=`${Ic}-${Ta}`,l6=`${Ic}-${Rc}`,Oi=class{constructor(e){this.code=e,this.message=`${o6} ${Ta} (reason: ${e})`}name="TaskAbortError";message},ka=(e,t)=>{if(typeof e!="function")throw new TypeError(process.env.NODE_ENV==="production"?Z(32):`${t} is not a function`)},Wn=()=>{},$c=(e,t=Wn)=>(e.catch(t),e),Lc=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),er=(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))},tr=e=>{if(e.aborted){const{reason:t}=e;throw new Oi(t)}};function Bc(e,t){let r=Wn;return new Promise((n,i)=>{const a=()=>i(new Oi(e.reason));if(e.aborted){a();return}r=Lc(e,a),t.finally(()=>r()).then(n,i)}).finally(()=>{r=Wn})}var c6=async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(r){return{status:r instanceof Oi?"cancelled":"rejected",error:r}}finally{t?.()}},Un=e=>t=>$c(Bc(e,t).then(r=>(tr(e),r))),Fc=e=>{const t=Un(e);return r=>t(new Promise(n=>setTimeout(n,r)))},{assign:vr}=Object,su={},an="listenerMiddleware",f6=(e,t)=>{const r=n=>Lc(e,()=>er(n,e.reason));return(n,i)=>{ka(n,"taskExecutor");const a=new AbortController;r(a);const o=c6(async()=>{tr(e),tr(a.signal);const s=await n({pause:Un(a.signal),delay:Fc(a.signal),signal:a.signal});return tr(a.signal),s},()=>er(a,u6));return i?.autoJoin&&t.push(o.catch(Wn)),{result:Un(e)(o),cancel(){er(a,s6)}}}},d6=(e,t)=>{const r=async(n,i)=>{tr(t);let a=()=>{};const s=[new Promise((u,c)=>{let l=e({predicate:n,effect:(f,d)=>{d.unsubscribe(),u([f,d.getState(),d.getOriginalState()])}});a=()=>{l(),c()}})];i!=null&&s.push(new Promise(u=>setTimeout(u,i,null)));try{const u=await Bc(t,Promise.race(s));return tr(t),u}finally{a()}};return(n,i)=>$c(r(n,i))},zc=e=>{let{type:t,actionCreator:r,matcher:n,predicate:i,effect:a}=e;if(t)i=Je(t).match;else if(r)t=r.type,i=r.match;else if(n)i=n;else if(!i)throw new Error(process.env.NODE_ENV==="production"?Z(21):"Creating or removing a listener requires one of the known fields for matching an action");return ka(a,"options.listener"),{predicate:i,type:t,effect:a}},qc=vr(e=>{const{type:t,predicate:r,effect:n}=zc(e);return{id:Z9(),effect:n,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw new Error(process.env.NODE_ENV==="production"?Z(22):"Unsubscribe not initialized")}}},{withTypes:()=>qc}),uu=(e,t)=>{const{type:r,effect:n,predicate:i}=zc(t);return Array.from(e.values()).find(a=>(typeof r=="string"?a.type===r:a.predicate===i)&&a.effect===n)},L0=e=>{e.pending.forEach(t=>{er(t,$0)})},h6=e=>()=>{e.forEach(L0),e.clear()},lu=(e,t,r)=>{try{e(t,r)}catch(n){setTimeout(()=>{throw n},0)}},Wc=vr(Je(`${an}/add`),{withTypes:()=>Wc}),p6=Je(`${an}/removeAll`),Uc=vr(Je(`${an}/remove`),{withTypes:()=>Uc}),v6=(...e)=>{console.error(`${an}/error`,...e)},on=(e={})=>{const t=new Map,{extra:r,onError:n=v6}=e;ka(n,"onError");const i=l=>(l.unsubscribe=()=>t.delete(l.id),t.set(l.id,l),f=>{l.unsubscribe(),f?.cancelActive&&L0(l)}),a=l=>{const f=uu(t,l)??qc(l);return i(f)};vr(a,{withTypes:()=>a});const o=l=>{const f=uu(t,l);return f&&(f.unsubscribe(),l.cancelActive&&L0(f)),!!f};vr(o,{withTypes:()=>o});const s=async(l,f,d,h)=>{const p=new AbortController,m=d6(a,p.signal),v=[];try{l.pending.add(p),await Promise.resolve(l.effect(f,vr({},d,{getOriginalState:h,condition:(y,b)=>m(y,b).then(Boolean),take:m,delay:Fc(p.signal),pause:Un(p.signal),extra:r,signal:p.signal,fork:f6(p.signal,v),unsubscribe:l.unsubscribe,subscribe:()=>{t.set(l.id,l)},cancelActiveListeners:()=>{l.pending.forEach((y,b,g)=>{y!==p&&(er(y,$0),g.delete(y))})},cancel:()=>{er(p,$0),l.pending.delete(p)},throwIfCancelled:()=>{tr(p.signal)}})))}catch(y){y instanceof Oi||lu(n,y,{raisedBy:"effect"})}finally{await Promise.all(v),er(p,l6),l.pending.delete(p)}},u=h6(t);return{middleware:l=>f=>d=>{if(!_a(d))return f(d);if(Wc.match(d))return a(d.payload);if(p6.match(d)){u();return}if(Uc.match(d))return o(d.payload);let h=l.getState();const p=()=>{if(h===su)throw new Error(process.env.NODE_ENV==="production"?Z(23):`${an}: getOriginalState can only be called synchronously`);return h};let m;try{if(m=f(d),t.size>0){const v=l.getState(),y=Array.from(t.values());for(const b of y){let g=!1;try{g=b.predicate(d,v,h)}catch(w){g=!1,lu(n,w,{raisedBy:"predicate"})}g&&s(b,d,l,p)}}}finally{h=su}return m},startListening:a,stopListening:o,clearListeners:u}};function Z(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 m6={layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},Kc=He({name:"chartLayout",initialState:m6,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:y6,setLayout:g6,setChartSize:b6,setScale:C6}=Kc.actions,x6=Kc.reducer;function cu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function fu(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?cu(Object(r),!0).forEach(function(n){w6(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cu(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function w6(e,t,r){return(t=O6(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function O6(e){var t=E6(e,"string");return typeof t=="symbol"?t:t+""}function E6(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Kn=Math.PI/180,P6=e=>e*180/Math.PI,xe=(e,t,r,n)=>({x:e+Math.cos(-Kn*n)*r,y:t+Math.sin(-Kn*n)*r}),A6=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(n.left||0)-(n.right||0)),Math.abs(r-(n.top||0)-(n.bottom||0)))/2},S6=(e,t)=>{var{x:r,y:n}=e,{x:i,y:a}=t;return Math.sqrt((r-i)**2+(n-a)**2)},_6=(e,t)=>{var{x:r,y:n}=e,{cx:i,cy:a}=t,o=S6({x:r,y:n},{x:i,y:a});if(o<=0)return{radius:o,angle:0};var s=(r-i)/o,u=Math.acos(s);return n>a&&(u=2*Math.PI-u),{radius:o,angle:P6(u),angleInRadian:u}},j6=e=>{var{startAngle:t,endAngle:r}=e,n=Math.floor(t/360),i=Math.floor(r/360),a=Math.min(n,i);return{startAngle:t-a*360,endAngle:r-a*360}},M6=(e,t)=>{var{startAngle:r,endAngle:n}=t,i=Math.floor(r/360),a=Math.floor(n/360),o=Math.min(i,a);return e+o*360},T6=(e,t)=>{var{x:r,y:n}=e,{radius:i,angle:a}=_6({x:r,y:n},t),{innerRadius:o,outerRadius:s}=t;if(i<o||i>s||i===0)return null;var{startAngle:u,endAngle:c}=j6(t),l=a,f;if(u<=c){for(;l>c;)l-=360;for(;l<u;)l+=360;f=l>=u&&l<=c}else{for(;l>u;)l-=360;for(;l<c;)l+=360;f=l>=c&&l<=u}return f?fu(fu({},t),{},{radius:i,angle:M6(l,t)}):null};function Vc(e,t,r){return Array.isArray(e)&&e&&t+r!==0?e.slice(t,r+1):e}function du(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ze(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?du(Object(r),!0).forEach(function(n){k6(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):du(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function k6(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=N6(e,"string");return typeof t=="symbol"?t:t+""}function N6(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function we(e,t,r){return ue(e)||ue(t)?r:ut(t)?ir(e,t,r):typeof t=="function"?t(e):r}var I6=(e,t,r,n,i)=>{var a,o=-1,s=(a=t?.length)!==null&&a!==void 0?a:0;if(s<=1||e==null)return 0;if(n==="angleAxis"&&i!=null&&Math.abs(Math.abs(i[1]-i[0])-360)<=1e-6)for(var u=0;u<s;u++){var c=u>0?r[u-1].coordinate:r[s-1].coordinate,l=r[u].coordinate,f=u>=s-1?r[0].coordinate:r[u+1].coordinate,d=void 0;if(Xe(l-c)!==Xe(f-l)){var h=[];if(Xe(f-l)===Xe(i[1]-i[0])){d=f;var p=l+i[1]-i[0];h[0]=Math.min(p,(p+c)/2),h[1]=Math.max(p,(p+c)/2)}else{d=c;var m=f+i[1]-i[0];h[0]=Math.min(l,(m+l)/2),h[1]=Math.max(l,(m+l)/2)}var v=[Math.min(l,(d+l)/2),Math.max(l,(d+l)/2)];if(e>v[0]&&e<=v[1]||e>=h[0]&&e<=h[1]){({index:o}=r[u]);break}}else{var y=Math.min(c,f),b=Math.max(c,f);if(e>(y+l)/2&&e<=(b+l)/2){({index:o}=r[u]);break}}}else if(t){for(var g=0;g<s;g++)if(g===0&&e<=(t[g].coordinate+t[g+1].coordinate)/2||g>0&&g<s-1&&e>(t[g].coordinate+t[g-1].coordinate)/2&&e<=(t[g].coordinate+t[g+1].coordinate)/2||g===s-1&&e>(t[g].coordinate+t[g-1].coordinate)/2){({index:o}=t[g]);break}}return o},R6=(e,t,r)=>{if(t&&r){var{width:n,height:i}=r,{align:a,verticalAlign:o,layout:s}=t;if((s==="vertical"||s==="horizontal"&&o==="middle")&&a!=="center"&&N(e[a]))return Ze(Ze({},e),{},{[a]:e[a]+(n||0)});if((s==="horizontal"||s==="vertical"&&a==="center")&&o!=="middle"&&N(e[o]))return Ze(Ze({},e),{},{[o]:e[o]+(i||0)})}return e},ct=(e,t)=>e==="horizontal"&&t==="xAxis"||e==="vertical"&&t==="yAxis"||e==="centric"&&t==="angleAxis"||e==="radial"&&t==="radiusAxis",Hc=(e,t,r,n)=>{if(n)return e.map(s=>s.coordinate);var i,a,o=e.map(s=>(s.coordinate===t&&(i=!0),s.coordinate===r&&(a=!0),s.coordinate));return i||o.push(t),a||o.push(r),o},Gc=(e,t,r)=>{if(!e)return null;var{duplicateDomain:n,type:i,range:a,scale:o,realScaleType:s,isCategorical:u,categoricalDomain:c,tickCount:l,ticks:f,niceTicks:d,axisType:h}=e;if(!o)return null;var p=s==="scaleBand"&&o.bandwidth?o.bandwidth()/2:2,m=i==="category"&&o.bandwidth?o.bandwidth()/p:0;if(m=h==="angleAxis"&&a&&a.length>=2?Xe(a[0]-a[1])*2*m:m,f||d){var v=(f||d||[]).map((y,b)=>{var g=n?n.indexOf(y):y;return{coordinate:o(g)+m,value:y,offset:m,index:b}});return v.filter(y=>!Ue(y.coordinate))}return u&&c?c.map((y,b)=>({coordinate:o(y)+m,value:y,index:b,offset:m})):o.ticks&&l!=null?o.ticks(l).map((y,b)=>({coordinate:o(y)+m,value:y,offset:m,index:b})):o.domain().map((y,b)=>({coordinate:o(y)+m,value:n?n[y]:y,index:b,offset:m}))},hu=1e-4,$6=e=>{var t=e.domain();if(!(!t||t.length<=2)){var r=t.length,n=e.range(),i=Math.min(n[0],n[1])-hu,a=Math.max(n[0],n[1])+hu,o=e(t[0]),s=e(t[r-1]);(o<i||o>a||s<i||s>a)&&e.domain([t[0],t[r-1]])}},L6=e=>{var t=e.length;if(!(t<=0))for(var r=0,n=e[0].length;r<n;++r)for(var i=0,a=0,o=0;o<t;++o){var s=Ue(e[o][r][1])?e[o][r][0]:e[o][r][1];s>=0?(e[o][r][0]=i,e[o][r][1]=i+s,i=e[o][r][1]):(e[o][r][0]=a,e[o][r][1]=a+s,a=e[o][r][1])}},B6=e=>{var t=e.length;if(!(t<=0))for(var r=0,n=e[0].length;r<n;++r)for(var i=0,a=0;a<t;++a){var o=Ue(e[a][r][1])?e[a][r][0]:e[a][r][1];o>=0?(e[a][r][0]=i,e[a][r][1]=i+o,i=e[a][r][1]):(e[a][r][0]=0,e[a][r][1]=0)}},F6={sign:L6,expand:ph,none:yr,silhouette:vh,wiggle:mh,positive:B6},z6=(e,t,r)=>{var n=F6[r],i=hh().keys(t).value((a,o)=>+we(a,o,0)).order(j0).offset(n);return i(e)};function q6(e){return e==null?void 0:String(e)}function Vn(e){var{axis:t,ticks:r,bandSize:n,entry:i,index:a,dataKey:o}=e;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!ue(i[t.dataKey])){var s=W1(r,"value",i[t.dataKey]);if(s)return s.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var u=we(i,ue(o)?t.dataKey:o);return ue(u)?null:t.scale(u)}var W6=e=>{var t=e.flat(2).filter(N);return[Math.min(...t),Math.max(...t)]},U6=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],K6=(e,t,r)=>{if(e!=null)return U6(Object.keys(e).reduce((n,i)=>{var a=e[i],{stackedData:o}=a,s=o.reduce((u,c)=>{var l=Vc(c,t,r),f=W6(l);return[Math.min(u[0],f[0]),Math.max(u[1],f[1])]},[1/0,-1/0]);return[Math.min(s[0],n[0]),Math.max(s[1],n[1])]},[1/0,-1/0]))},pu=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,vu=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Hr=(e,t,r)=>{if(e&&e.scale&&e.scale.bandwidth){var n=e.scale.bandwidth();if(!r||n>0)return n}if(e&&t&&t.length>=2){for(var i=gi(t,l=>l.coordinate),a=1/0,o=1,s=i.length;o<s;o++){var u=i[o],c=i[o-1];a=Math.min((u.coordinate||0)-(c.coordinate||0),a)}return a===1/0?0:a}return r?void 0:0};function mu(e){var{tooltipEntrySettings:t,dataKey:r,payload:n,value:i,name:a}=e;return Ze(Ze({},t),{},{dataKey:r,payload:n,value:i,name:a})}function Ei(e,t){if(e)return String(e);if(typeof t=="string")return t}function V6(e,t,r,n,i){if(r==="horizontal"||r==="vertical"){var a=e>=i.left&&e<=i.left+i.width&&t>=i.top&&t<=i.top+i.height;return a?{x:e,y:t}:null}return n?T6({x:e,y:t},n):null}var H6=(e,t,r,n)=>{var i=t.find(c=>c&&c.index===r);if(i){if(e==="horizontal")return{x:i.coordinate,y:n.y};if(e==="vertical")return{x:n.x,y:i.coordinate};if(e==="centric"){var a=i.coordinate,{radius:o}=n;return Ze(Ze(Ze({},n),xe(n.cx,n.cy,o,a)),{},{angle:a,radius:o})}var s=i.coordinate,{angle:u}=n;return Ze(Ze(Ze({},n),xe(n.cx,n.cy,s,u)),{},{angle:u,radius:s})}return{x:0,y:0}},G6=(e,t)=>t==="horizontal"?e.x:t==="vertical"?e.y:t==="centric"?e.angle:e.radius,Ot=e=>e.layout.width,Et=e=>e.layout.height,Y6=e=>e.layout.scale,Yc=e=>e.layout.margin,Da=A(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),Na=A(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),Z6="data-recharts-item-index",X6="data-recharts-item-data-key",Pi=60;function yu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function _t(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yu(Object(r),!0).forEach(function(n){Q6(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yu(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Q6(e,t,r){return(t=J6(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function J6(e){var t=e7(e,"string");return typeof t=="symbol"?t:t+""}function e7(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var t7=e=>e.brush.height,Oe=A([Ot,Et,Yc,t7,Da,Na,yc,l9],(e,t,r,n,i,a,o,s)=>{var u=a.reduce((p,m)=>{var{orientation:v}=m;if(!m.mirror&&!m.hide){var y=typeof m.width=="number"?m.width:Pi;return _t(_t({},p),{},{[v]:p[v]+y})}return p},{left:r.left||0,right:r.right||0}),c=i.reduce((p,m)=>{var{orientation:v}=m;return!m.mirror&&!m.hide?_t(_t({},p),{},{[v]:ir(p,"".concat(v))+m.height}):p},{top:r.top||0,bottom:r.bottom||0}),l=_t(_t({},c),u),f=l.bottom;l.bottom+=n,l=R6(l,o,s);var d=e-l.left-l.right,h=t-l.top-l.bottom;return _t(_t({brushBottom:f},l),{},{width:Math.max(d,0),height:Math.max(h,0)})}),r7=A(Oe,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),Zc=A(Ot,Et,(e,t)=>({x:0,y:0,width:e,height:t})),n7=E.createContext(null),Ie=()=>E.useContext(n7)!=null,Ai=e=>e.brush,Si=A([Ai,Oe,Yc],(e,t,r)=>({height:e.height,x:N(e.x)?e.x:t.left,y:N(e.y)?e.y:t.top+t.height+t.brushBottom-(r?.bottom||0),width:N(e.width)?e.width:t.width})),Ia=()=>{var e,t=Ie(),r=F(r7),n=F(Si),i=(e=F(Ai))===null||e===void 0?void 0:e.padding;return!t||!n||!i?r:{width:n.width-i.left-i.right,height:n.height-i.top-i.bottom,x:i.left,y:i.top}},i7={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},Xc=()=>{var e;return(e=F(Oe))!==null&&e!==void 0?e:i7},Qc=()=>F(Ot),Jc=()=>F(Et),Q=e=>e.layout.layoutType,_i=()=>F(Q),a7={settings:{layout:"horizontal",align:"center",verticalAlign:"middle",itemSorter:"value"},size:{width:0,height:0},payload:[]},ef=He({name:"legend",initialState:a7,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=mt(e).payload.indexOf(t.payload);r>-1&&e.payload.splice(r,1)}}}),{setLegendSize:eO,setLegendSettings:tO,addLegendPayload:o7,removeLegendPayload:s7}=ef.actions,u7=ef.reducer;function B0(){return B0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},B0.apply(null,arguments)}function gu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function K2(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gu(Object(r),!0).forEach(function(n){l7(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gu(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function l7(e,t,r){return(t=c7(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c7(e){var t=f7(e,"string");return typeof t=="symbol"?t:t+""}function f7(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function d7(e){return Array.isArray(e)&&ut(e[0])&&ut(e[1])?e.join(" ~ "):e}var h7=e=>{var{separator:t=" : ",contentStyle:r={},itemStyle:n={},labelStyle:i={},payload:a,formatter:o,itemSorter:s,wrapperClassName:u,labelClassName:c,label:l,labelFormatter:f,accessibilityLayer:d=!1}=e,h=()=>{if(a&&a.length){var C={padding:0,margin:0},O=(s?gi(a,s):a).map((P,_)=>{if(P.type==="none")return null;var M=P.formatter||o||d7,{value:z,name:T}=P,k=z,W=T;if(M){var K=M(z,T,P,_,a);if(Array.isArray(K))[k,W]=K;else if(K!=null)k=K;else return null}var te=K2({display:"block",paddingTop:4,paddingBottom:4,color:P.color||"#000"},n);return x.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(_),style:te},ut(W)?x.createElement("span",{className:"recharts-tooltip-item-name"},W):null,ut(W)?x.createElement("span",{className:"recharts-tooltip-item-separator"},t):null,x.createElement("span",{className:"recharts-tooltip-item-value"},k),x.createElement("span",{className:"recharts-tooltip-item-unit"},P.unit||""))});return x.createElement("ul",{className:"recharts-tooltip-item-list",style:C},O)}return null},p=K2({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},r),m=K2({margin:0},i),v=!ue(l),y=v?l:"",b=G.clsx("recharts-default-tooltip",u),g=G.clsx("recharts-tooltip-label",c);v&&f&&a!==void 0&&a!==null&&(y=f(l,a));var w=d?{role:"status","aria-live":"assertive"}:{};return x.createElement("div",B0({className:b,style:p},w),x.createElement("p",{className:g,style:m},x.isValidElement(y)?y:"".concat(y)),h())},kr="recharts-tooltip-wrapper",p7={visibility:"hidden"};function v7(e){var{coordinate:t,translateX:r,translateY:n}=e;return G.clsx(kr,{["".concat(kr,"-right")]:N(r)&&t&&N(t.x)&&r>=t.x,["".concat(kr,"-left")]:N(r)&&t&&N(t.x)&&r<t.x,["".concat(kr,"-bottom")]:N(n)&&t&&N(t.y)&&n>=t.y,["".concat(kr,"-top")]:N(n)&&t&&N(t.y)&&n<t.y})}function bu(e){var{allowEscapeViewBox:t,coordinate:r,key:n,offsetTopLeft:i,position:a,reverseDirection:o,tooltipDimension:s,viewBox:u,viewBoxDimension:c}=e;if(a&&N(a[n]))return a[n];var l=r[n]-s-(i>0?i:0),f=r[n]+i;if(t[n])return o[n]?l:f;var d=u[n];if(d==null)return 0;if(o[n]){var h=l,p=d;return h<p?Math.max(f,d):Math.max(l,d)}if(c==null)return 0;var m=f+s,v=d+c;return m>v?Math.max(l,d):Math.max(f,d)}function m7(e){var{translateX:t,translateY:r,useTranslate3d:n}=e;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function y7(e){var{allowEscapeViewBox:t,coordinate:r,offsetTopLeft:n,position:i,reverseDirection:a,tooltipBox:o,useTranslate3d:s,viewBox:u}=e,c,l,f;return o.height>0&&o.width>0&&r?(l=bu({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:u,viewBoxDimension:u.width}),f=bu({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:u,viewBoxDimension:u.height}),c=m7({translateX:l,translateY:f,useTranslate3d:s})):c=p7,{cssProperties:c,cssClasses:v7({translateX:l,translateY:f,coordinate:r})}}function Cu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function An(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Cu(Object(r),!0).forEach(function(n){F0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Cu(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function F0(e,t,r){return(t=g7(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function g7(e){var t=b7(e,"string");return typeof t=="symbol"?t:t+""}function b7(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class C7 extends E.PureComponent{constructor(){super(...arguments),F0(this,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),F0(this,"handleKeyDown",t=>{if(t.key==="Escape"){var r,n,i,a;this.setState({dismissed:!0,dismissedAtCoordinate:{x:(r=(n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==null&&r!==void 0?r:0,y:(i=(a=this.props.coordinate)===null||a===void 0?void 0:a.y)!==null&&i!==void 0?i: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:n,animationEasing:i,children:a,coordinate:o,hasPayload:s,isAnimationActive:u,offset:c,position:l,reverseDirection:f,useTranslate3d:d,viewBox:h,wrapperStyle:p,lastBoundingBox:m,innerRef:v,hasPortalFromProps:y}=this.props,{cssClasses:b,cssProperties:g}=y7({allowEscapeViewBox:r,coordinate:o,offsetTopLeft:c,position:l,reverseDirection:f,tooltipBox:{height:m.height,width:m.width},useTranslate3d:d,viewBox:h}),w=y?{}:An(An({transition:u&&t?"transform ".concat(n,"ms ").concat(i):void 0},g),{},{pointerEvents:"none",visibility:!this.state.dismissed&&t&&s?"visible":"hidden",position:"absolute",top:0,left:0}),C=An(An({},w),{},{visibility:!this.state.dismissed&&t&&s?"visible":"hidden"},p);return x.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:b,style:C,ref:v},a)}}var x7=()=>!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout),Or={isSsr:x7()},tf=()=>F(e=>e.rootProps.accessibilityLayer);function je(e){return Number.isFinite(e)}function Hn(e){return typeof e=="number"&&e>0&&Number.isFinite(e)}function z0(){return z0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},z0.apply(null,arguments)}function xu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function wu(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xu(Object(r),!0).forEach(function(n){w7(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xu(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function w7(e,t,r){return(t=O7(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function O7(e){var t=E7(e,"string");return typeof t=="symbol"?t:t+""}function E7(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ou={curveBasisClosed:rh,curveBasisOpen:nh,curveBasis:th,curveBumpX:J8,curveBumpY:eh,curveLinearClosed:ih,curveLinear:mi,curveMonotoneX:ah,curveMonotoneY:oh,curveNatural:sh,curveStep:uh,curveStepAfter:ch,curveStepBefore:lh},Sn=e=>je(e.x)&&je(e.y),Dr=e=>e.x,Nr=e=>e.y,P7=(e,t)=>{if(typeof e=="function")return e;var r="curve".concat(ga(e));return(r==="curveMonotone"||r==="curveBump")&&t?Ou["".concat(r).concat(t==="vertical"?"Y":"X")]:Ou[r]||mi},A7=e=>{var{type:t="linear",points:r=[],baseLine:n,layout:i,connectNulls:a=!1}=e,o=P7(t,i),s=a?r.filter(Sn):r,u;if(Array.isArray(n)){var c=a?n.filter(f=>Sn(f)):n,l=s.map((f,d)=>wu(wu({},f),{},{base:c[d]}));return i==="vertical"?u=bn().y(Nr).x1(Dr).x0(f=>f.base.x):u=bn().x(Dr).y1(Nr).y0(f=>f.base.y),u.defined(Sn).curve(o),u(l)}return i==="vertical"&&N(n)?u=bn().y(Nr).x1(Dr).x0(n):N(n)?u=bn().x(Dr).y1(Nr).y0(n):u=J1().x(Dr).y(Nr),u.defined(Sn).curve(o),u(s)},zr=e=>{var{className:t,points:r,path:n,pathRef:i}=e;if((!r||!r.length)&&!n)return null;var a=r&&r.length?A7(e):n;return x.createElement("path",z0({},Rt(e),Ca(e),{className:G.clsx("recharts-curve",t),d:a===null?void 0:a,ref:i}))},S7=["x","y","top","left","width","height","className"];function q0(){return q0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},q0.apply(null,arguments)}function Eu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function _7(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Eu(Object(r),!0).forEach(function(n){j7(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Eu(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function j7(e,t,r){return(t=M7(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function M7(e){var t=T7(e,"string");return typeof t=="symbol"?t:t+""}function T7(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function k7(e,t){if(e==null)return{};var r,n,i=D7(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function D7(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var N7=(e,t,r,n,i,a)=>"M".concat(e,",").concat(i,"v").concat(n,"M").concat(a,",").concat(t,"h").concat(r),I7=e=>{var{x:t=0,y:r=0,top:n=0,left:i=0,width:a=0,height:o=0,className:s}=e,u=k7(e,S7),c=_7({x:t,y:r,top:n,left:i,width:a,height:o},u);return!N(t)||!N(r)||!N(a)||!N(o)||!N(n)||!N(i)?null:x.createElement("path",q0({},le(c,!0),{className:G.clsx("recharts-cross",s),d:N7(t,r,a,o,n,i)}))};function R7(e,t,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-i,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}function Pu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function $7(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Pu(Object(r),!0).forEach(function(n){L7(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pu(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function L7(e,t,r){return(t=B7(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function B7(e){var t=F7(e,"string");return typeof t=="symbol"?t:t+""}function F7(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ft(e,t){var r=$7({},e),n=t,i=Object.keys(t),a=i.reduce((o,s)=>(o[s]===void 0&&n[s]!==void 0&&(o[s]=n[s]),o),r);return a}var V2={},H2={},G2={},Au;function z7(){return Au||(Au=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){if(!r||typeof r!="object")return!1;const n=Object.getPrototypeOf(r);return n===null||n===Object.prototype||Object.getPrototypeOf(n)===null?Object.prototype.toString.call(r)==="[object Object]":!1}e.isPlainObject=t}(G2)),G2}var Su;function q7(){return Su||(Su=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=z7(),r=fc(),n=Pa(),i=Aa(),a=Oa();function o(c,l,f){return s(c,l,void 0,void 0,void 0,void 0,f)}function s(c,l,f,d,h,p,m){const v=m(c,l,f,d,h,p);if(v!==void 0)return v;if(typeof c==typeof l)switch(typeof c){case"bigint":case"string":case"boolean":case"symbol":case"undefined":return c===l;case"number":return c===l||Object.is(c,l);case"function":return c===l;case"object":return u(c,l,p,m)}return u(c,l,p,m)}function u(c,l,f,d){if(Object.is(c,l))return!0;let h=n.getTag(c),p=n.getTag(l);if(h===i.argumentsTag&&(h=i.objectTag),p===i.argumentsTag&&(p=i.objectTag),h!==p)return!1;switch(h){case i.stringTag:return c.toString()===l.toString();case i.numberTag:{const y=c.valueOf(),b=l.valueOf();return a.eq(y,b)}case i.booleanTag:case i.dateTag:case i.symbolTag:return Object.is(c.valueOf(),l.valueOf());case i.regexpTag:return c.source===l.source&&c.flags===l.flags;case i.functionTag:return c===l}f=f??new Map;const m=f.get(c),v=f.get(l);if(m!=null&&v!=null)return m===l;f.set(c,l),f.set(l,c);try{switch(h){case i.mapTag:{if(c.size!==l.size)return!1;for(const[y,b]of c.entries())if(!l.has(y)||!s(b,l.get(y),y,c,l,f,d))return!1;return!0}case i.setTag:{if(c.size!==l.size)return!1;const y=Array.from(c.values()),b=Array.from(l.values());for(let g=0;g<y.length;g++){const w=y[g],C=b.findIndex(O=>s(w,O,void 0,c,l,f,d));if(C===-1)return!1;b.splice(C,1)}return!0}case i.arrayTag:case i.uint8ArrayTag:case i.uint8ClampedArrayTag:case i.uint16ArrayTag:case i.uint32ArrayTag:case i.bigUint64ArrayTag:case i.int8ArrayTag:case i.int16ArrayTag:case i.int32ArrayTag:case i.bigInt64ArrayTag:case i.float32ArrayTag:case i.float64ArrayTag:{if(typeof Buffer<"u"&&Buffer.isBuffer(c)!==Buffer.isBuffer(l)||c.length!==l.length)return!1;for(let y=0;y<c.length;y++)if(!s(c[y],l[y],y,c,l,f,d))return!1;return!0}case i.arrayBufferTag:return c.byteLength!==l.byteLength?!1:u(new Uint8Array(c),new Uint8Array(l),f,d);case i.dataViewTag:return c.byteLength!==l.byteLength||c.byteOffset!==l.byteOffset?!1:u(new Uint8Array(c),new Uint8Array(l),f,d);case i.errorTag:return c.name===l.name&&c.message===l.message;case i.objectTag:{if(!(u(c.constructor,l.constructor,f,d)||t.isPlainObject(c)&&t.isPlainObject(l)))return!1;const b=[...Object.keys(c),...r.getSymbols(c)],g=[...Object.keys(l),...r.getSymbols(l)];if(b.length!==g.length)return!1;for(let w=0;w<b.length;w++){const C=b[w],O=c[C];if(!Object.hasOwn(l,C))return!1;const P=l[C];if(!s(O,P,C,c,l,f,d))return!1}return!0}default:return!1}}finally{f.delete(c),f.delete(l)}}e.isEqualWith=o}(H2)),H2}var Y2={},_u;function W7(){return _u||(_u=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(){}e.noop=t}(Y2)),Y2}var ju;function U7(){return ju||(ju=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=q7(),r=W7();function n(i,a){return t.isEqualWith(i,a,r.noop)}e.isEqual=n}(V2)),V2}var Z2,Mu;function K7(){return Mu||(Mu=1,Z2=U7().isEqual),Z2}var V7=K7();const H7=S.getDefaultExportFromCjs(V7);var Gn=1e-4,rf=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],nf=(e,t)=>e.map((r,n)=>r*t**n).reduce((r,n)=>r+n),Tu=(e,t)=>r=>{var n=rf(e,t);return nf(n,r)},G7=(e,t)=>r=>{var n=rf(e,t),i=[...n.map((a,o)=>a*o).slice(1),0];return nf(i,r)},ku=function(){for(var t,r,n,i,a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];if(o.length===1)switch(o[0]){case"linear":[t,n,r,i]=[0,0,1,1];break;case"ease":[t,n,r,i]=[.25,.1,.25,1];break;case"ease-in":[t,n,r,i]=[.42,0,1,1];break;case"ease-out":[t,n,r,i]=[.42,0,.58,1];break;case"ease-in-out":[t,n,r,i]=[0,0,.58,1];break;default:{var u=o[0].split("(");u[0]==="cubic-bezier"&&u[1].split(")")[0].split(",").length===4&&([t,n,r,i]=u[1].split(")")[0].split(",").map(p=>parseFloat(p)))}}else o.length===4&&([t,n,r,i]=o);var c=Tu(t,r),l=Tu(n,i),f=G7(t,r),d=p=>p>1?1:p<0?0:p,h=p=>{for(var m=p>1?1:p,v=m,y=0;y<8;++y){var b=c(v)-m,g=f(v);if(Math.abs(b-m)<Gn||g<Gn)return l(v);v=d(v-b/g)}return l(v)};return h.isStepper=!1,h},Y7=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{stiff:r=100,damping:n=8,dt:i=17}=t,a=(o,s,u)=>{var c=-(o-s)*r,l=u*n,f=u+(c-l)*i/1e3,d=u*i/1e3+o;return Math.abs(d-s)<Gn&&Math.abs(f)<Gn?[s,0]:[d,f]};return a.isStepper=!0,a.dt=i,a},af=e=>{if(typeof e=="string")switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return ku(e);case"spring":return Y7();default:if(e.split("(")[0]==="cubic-bezier")return ku(e)}return typeof e=="function"?e:null};function Du(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Nu(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Du(Object(r),!0).forEach(function(n){Z7(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Du(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Z7(e,t,r){return(t=X7(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function X7(e){var t=Q7(e,"string");return typeof t=="symbol"?t:t+""}function Q7(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var J7=e=>e.replace(/([A-Z])/g,t=>"-".concat(t.toLowerCase())),e4=(e,t,r)=>e.map(n=>"".concat(J7(n)," ").concat(t,"ms ").concat(r)).join(","),t4=(e,t)=>[Object.keys(e),Object.keys(t)].reduce((r,n)=>r.filter(i=>n.includes(i))),Gr=(e,t)=>Object.keys(t).reduce((r,n)=>Nu(Nu({},r),{},{[n]:e(n,t[n])}),{});function Iu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ce(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Iu(Object(r),!0).forEach(function(n){r4(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Iu(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function r4(e,t,r){return(t=n4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function n4(e){var t=i4(e,"string");return typeof t=="symbol"?t:t+""}function i4(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Yn=(e,t,r)=>e+(t-e)*r,W0=e=>{var{from:t,to:r}=e;return t!==r},of=(e,t,r)=>{var n=Gr((i,a)=>{if(W0(a)){var[o,s]=e(a.from,a.to,a.velocity);return Ce(Ce({},a),{},{from:o,velocity:s})}return a},t);return r<1?Gr((i,a)=>W0(a)?Ce(Ce({},a),{},{velocity:Yn(a.velocity,n[i].velocity,r),from:Yn(a.from,n[i].from,r)}):a,t):of(e,n,r-1)};function a4(e,t,r,n,i,a){var o,s=n.reduce((d,h)=>Ce(Ce({},d),{},{[h]:{from:e[h],velocity:0,to:t[h]}}),{}),u=()=>Gr((d,h)=>h.from,s),c=()=>!Object.values(s).filter(W0).length,l=null,f=d=>{o||(o=d);var h=d-o,p=h/r.dt;s=of(r,s,p),i(Ce(Ce(Ce({},e),t),u())),o=d,c()||(l=a.setTimeout(f))};return()=>(l=a.setTimeout(f),()=>{l()})}function o4(e,t,r,n,i,a,o){var s=null,u=i.reduce((f,d)=>Ce(Ce({},f),{},{[d]:[e[d],t[d]]}),{}),c,l=f=>{c||(c=f);var d=(f-c)/n,h=Gr((m,v)=>Yn(...v,r(d)),u);if(a(Ce(Ce(Ce({},e),t),h)),d<1)s=o.setTimeout(l);else{var p=Gr((m,v)=>Yn(...v,r(1)),u);a(Ce(Ce(Ce({},e),t),p))}};return()=>(s=o.setTimeout(l),()=>{s()})}const sf=(e,t,r,n,i,a)=>{var o=t4(e,t);return r.isStepper===!0?a4(e,t,r,o,i,a):o4(e,t,r,n,o,i,a)};function s4(e){var t,r=()=>null,n=!1,i=null,a=o=>{if(!n){if(Array.isArray(o)){if(!o.length)return;var s=o,[u,...c]=s;if(typeof u=="number"){i=e.setTimeout(a.bind(null,c),u);return}a(u),i=e.setTimeout(a.bind(null,c));return}typeof o=="string"&&(t=o,r(t)),typeof o=="object"&&(t=o,r(t)),typeof o=="function"&&o()}};return{stop:()=>{n=!0},start:o=>{n=!1,i&&(i(),i=null),a(o)},subscribe:o=>(r=o,()=>{r=()=>null}),getTimeoutController:()=>e}}class u4{setTimeout(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=performance.now(),i=null,a=o=>{o-n>=r?t(o):typeof requestAnimationFrame=="function"&&(i=requestAnimationFrame(a))};return i=requestAnimationFrame(a),()=>{cancelAnimationFrame(i)}}}function l4(){return s4(new u4)}var c4=E.createContext(l4);function uf(e,t){var r=E.useContext(c4);return E.useMemo(()=>t??r(e),[e,t,r])}var f4=["children","begin","duration","attributeName","easing","isActive","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart","animationManager"];function U0(){return U0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},U0.apply(null,arguments)}function d4(e,t){if(e==null)return{};var r,n,i=h4(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function h4(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Ru(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function jt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ru(Object(r),!0).forEach(function(n){Gt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ru(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Gt(e,t,r){return(t=p4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p4(e){var t=v4(e,"string");return typeof t=="symbol"?t:t+""}function v4(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class Ra extends E.PureComponent{constructor(t,r){super(t,r),Gt(this,"mounted",!1),Gt(this,"manager",void 0),Gt(this,"stopJSAnimation",null),Gt(this,"unSubscribe",null);var{isActive:n,attributeName:i,from:a,to:o,children:s,duration:u,animationManager:c}=this.props;if(this.manager=c,this.handleStyleChange=this.handleStyleChange.bind(this),this.changeStyle=this.changeStyle.bind(this),!n||u<=0){this.state={style:{}},typeof s=="function"&&(this.state={style:o});return}if(a){if(typeof s=="function"){this.state={style:a};return}this.state={style:i?{[i]:a}:a}}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:n,attributeName:i,shouldReAnimate:a,to:o,from:s}=this.props,{style:u}=this.state;if(n){if(!r){var c={style:i?{[i]:o}:o};this.state&&u&&(i&&u[i]!==o||!i&&u!==o)&&this.setState(c);return}if(!(H7(t.to,o)&&t.canBegin&&t.isActive)){var l=!t.canBegin||!t.isActive;this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var f=l||a?s:t.to;if(this.state&&u){var d={style:i?{[i]:f}:f};(i&&u[i]!==f||!i&&u!==f)&&this.setState(d)}this.runAnimation(jt(jt({},this.props),{},{from:f,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:n,duration:i,easing:a,begin:o,onAnimationEnd:s,onAnimationStart:u}=t,c=sf(r,n,af(a),i,this.changeStyle,this.manager.getTimeoutController()),l=()=>{this.stopJSAnimation=c()};this.manager.start([u,o,l,i,s])}runAnimation(t){var{begin:r,duration:n,attributeName:i,to:a,easing:o,onAnimationStart:s,onAnimationEnd:u,children:c}=t;if(this.unSubscribe=this.manager.subscribe(this.handleStyleChange),typeof o=="function"||typeof c=="function"||o==="spring"){this.runJSAnimation(t);return}var l=i?{[i]:a}:a,f=e4(Object.keys(l),n,o);this.manager.start([s,r,jt(jt({},l),{},{transition:f}),n,u])}render(){var t=this.props,{children:r,begin:n,duration:i,attributeName:a,easing:o,isActive:s,from:u,to:c,canBegin:l,onAnimationEnd:f,shouldReAnimate:d,onAnimationReStart:h,animationManager:p}=t,m=d4(t,f4),v=E.Children.count(r),y=this.state.style;if(typeof r=="function")return r(y);if(!s||v===0||i<=0)return r;var b=g=>{var{style:w={},className:C}=g.props,O=E.cloneElement(g,jt(jt({},m),{},{style:jt(jt({},w),y),className:C}));return O};return v===1?b(E.Children.only(r)):x.createElement("div",null,E.Children.map(r,g=>b(g)))}}Gt(Ra,"displayName","Animate");Gt(Ra,"defaultProps",{begin:0,duration:1e3,attributeName:"",easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}});function $u(e){var t,r=uf((t=e.attributeName)!==null&&t!==void 0?t:Object.keys(e.to).join(","),e.animationManager);return x.createElement(Ra,U0({},e,{animationManager:r}))}function Zn(){return Zn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Zn.apply(null,arguments)}var Lu=(e,t,r,n,i)=>{var a=Math.min(Math.abs(r)/2,Math.abs(n)/2),o=n>=0?1:-1,s=r>=0?1:-1,u=n>=0&&r>=0||n<0&&r<0?1:0,c;if(a>0&&i instanceof Array){for(var l=[0,0,0,0],f=0,d=4;f<d;f++)l[f]=i[f]>a?a:i[f];c="M".concat(e,",").concat(t+o*l[0]),l[0]>0&&(c+="A ".concat(l[0],",").concat(l[0],",0,0,").concat(u,",").concat(e+s*l[0],",").concat(t)),c+="L ".concat(e+r-s*l[1],",").concat(t),l[1]>0&&(c+="A ".concat(l[1],",").concat(l[1],",0,0,").concat(u,`,
31
+ (See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),m.warnIfExceeded()),p}}}function En(e){return typeof e=="boolean"}var q9=()=>function(t){const{thunk:r=!0,immutableCheck:n=!0,serializableCheck:i=!0,actionCreatorCheck:a=!0}=t??{};let o=new jc;if(r&&(En(r)?o.push(T9):o.push(k9(r.extraArgument))),process.env.NODE_ENV!=="production"){if(n){let s={};En(n)||(s=n),o.unshift(F9(s))}if(i){let s={};En(i)||(s=i),o.push(z9(s))}if(a){let s={};En(a)||(s=a),o.unshift($9(s))}}return o},W9="RTK_autoBatch",ou=e=>t=>{setTimeout(t,e)},U9=(e={type:"raf"})=>t=>(...r)=>{const n=t(...r);let i=!0,a=!1,o=!1;const s=new Set,u=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:ou(10):e.type==="callback"?e.queueNotification:ou(e.timeout),c=()=>{o=!1,a&&(a=!1,s.forEach(l=>l()))};return Object.assign({},n,{subscribe(l){const f=()=>i&&l(),d=n.subscribe(f);return s.add(l),()=>{d(),s.delete(l)}},dispatch(l){try{return i=!l?.meta?.[W9],a=!i,a&&(o||(o=!0,u(c))),n.dispatch(l)}finally{i=!0}}})},K9=e=>function(r){const{autoBatch:n=!0}=r??{};let i=new jc(e);return n&&i.push(U9(typeof n=="object"?n:void 0)),i};function V9(e){const t=q9(),{reducer:r=void 0,middleware:n,devTools:i=!0,duplicateMiddlewareCheck:a=!0,preloadedState:o=void 0,enhancers:s=void 0}=e||{};let u;if(typeof r=="function")u=r;else if(nn(r))u=bc(r);else throw new Error(process.env.NODE_ENV==="production"?Z(1):"`reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers");if(process.env.NODE_ENV!=="production"&&n&&typeof n!="function")throw new Error(process.env.NODE_ENV==="production"?Z(2):"`middleware` field must be a callback");let c;if(typeof n=="function"){if(c=n(t),process.env.NODE_ENV!=="production"&&!Array.isArray(c))throw new Error(process.env.NODE_ENV==="production"?Z(3):"when using a middleware builder function, an array of middleware must be returned")}else c=t();if(process.env.NODE_ENV!=="production"&&c.some(m=>typeof m!="function"))throw new Error(process.env.NODE_ENV==="production"?Z(4):"each middleware provided to configureStore must be a function");if(process.env.NODE_ENV!=="production"&&a){let m=new Set;c.forEach(v=>{if(m.has(v))throw new Error(process.env.NODE_ENV==="production"?Z(42):"Duplicate middleware references found when creating the store. Ensure that each middleware is only included once.");m.add(v)})}let l=Bn;i&&(l=D9({trace:process.env.NODE_ENV!=="production",...typeof i=="object"&&i}));const f=C9(...c),d=K9(f);if(process.env.NODE_ENV!=="production"&&s&&typeof s!="function")throw new Error(process.env.NODE_ENV==="production"?Z(5):"`enhancers` field must be a callback");let h=typeof s=="function"?s(d):d();if(process.env.NODE_ENV!=="production"&&!Array.isArray(h))throw new Error(process.env.NODE_ENV==="production"?Z(6):"`enhancers` callback must return an array");if(process.env.NODE_ENV!=="production"&&h.some(m=>typeof m!="function"))throw new Error(process.env.NODE_ENV==="production"?Z(7):"each enhancer provided to configureStore must be a function");process.env.NODE_ENV!=="production"&&c.length&&!h.includes(f)&&console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");const p=l(...h);return gc(u,o,p)}function Nc(e){const t={},r=[];let n;const i={addCase(a,o){if(process.env.NODE_ENV!=="production"){if(r.length>0)throw new Error(process.env.NODE_ENV==="production"?Z(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(n)throw new Error(process.env.NODE_ENV==="production"?Z(27):"`builder.addCase` should only be called before calling `builder.addDefaultCase`")}const s=typeof a=="string"?a:a.type;if(!s)throw new Error(process.env.NODE_ENV==="production"?Z(28):"`builder.addCase` cannot be called with an empty action type");if(s in t)throw new Error(process.env.NODE_ENV==="production"?Z(29):`\`builder.addCase\` cannot be called with two reducers for the same action type '${s}'`);return t[s]=o,i},addMatcher(a,o){if(process.env.NODE_ENV!=="production"&&n)throw new Error(process.env.NODE_ENV==="production"?Z(30):"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return r.push({matcher:a,reducer:o}),i},addDefaultCase(a){if(process.env.NODE_ENV!=="production"&&n)throw new Error(process.env.NODE_ENV==="production"?Z(31):"`builder.addDefaultCase` can only be called once");return n=a,i}};return e(i),[t,r,n]}function H9(e){return typeof e=="function"}function G9(e,t){if(process.env.NODE_ENV!=="production"&&typeof t=="object")throw new Error(process.env.NODE_ENV==="production"?Z(8):"The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");let[r,n,i]=Nc(t),a;if(H9(e))a=()=>au(e());else{const s=au(e);a=()=>s}function o(s=a(),u){let c=[r[u.type],...n.filter(({matcher:l})=>l(u)).map(({reducer:l})=>l)];return c.filter(l=>!!l).length===0&&(c=[i]),c.reduce((l,f)=>{if(f)if(ar(l)){const h=f(l,u);return h===void 0?l:h}else{if(bt(l))return Ac(l,d=>f(d,u));{const d=f(l,u);if(d===void 0){if(l===null)return l;throw Error("A case reducer on a non-draftable value must not return undefined")}return d}}return l},s)}return o.getInitialState=a,o}var Y9="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Z9=(e=21)=>{let t="",r=e;for(;r--;)t+=Y9[Math.random()*64|0];return t},X9=Symbol.for("rtk-slice-createasyncthunk");function Q9(e,t){return`${e}/${t}`}function J9({creators:e}={}){const t=e?.asyncThunk?.[X9];return function(n){const{name:i,reducerPath:a=i}=n;if(!i)throw new Error(process.env.NODE_ENV==="production"?Z(11):"`name` is a required option for createSlice");typeof process<"u"&&process.env.NODE_ENV==="development"&&n.initialState===void 0&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");const o=(typeof n.reducers=="function"?n.reducers(t6()):n.reducers)||{},s=Object.keys(o),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(g,w){const C=typeof g=="string"?g:g.type;if(!C)throw new Error(process.env.NODE_ENV==="production"?Z(12):"`context.addCase` cannot be called with an empty action type");if(C in u.sliceCaseReducersByType)throw new Error(process.env.NODE_ENV==="production"?Z(13):"`context.addCase` cannot be called with two reducers for the same action type: "+C);return u.sliceCaseReducersByType[C]=w,c},addMatcher(g,w){return u.sliceMatchers.push({matcher:g,reducer:w}),c},exposeAction(g,w){return u.actionCreators[g]=w,c},exposeCaseReducer(g,w){return u.sliceCaseReducersByName[g]=w,c}};s.forEach(g=>{const w=o[g],C={reducerName:g,type:Q9(i,g),createNotation:typeof n.reducers=="function"};n6(w)?a6(C,w,c,t):r6(C,w,c)});function l(){if(process.env.NODE_ENV!=="production"&&typeof n.extraReducers=="object")throw new Error(process.env.NODE_ENV==="production"?Z(14):"The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");const[g={},w=[],C=void 0]=typeof n.extraReducers=="function"?Nc(n.extraReducers):[n.extraReducers],O={...g,...u.sliceCaseReducersByType};return G9(n.initialState,P=>{for(let _ in O)P.addCase(_,O[_]);for(let _ of u.sliceMatchers)P.addMatcher(_.matcher,_.reducer);for(let _ of w)P.addMatcher(_.matcher,_.reducer);C&&P.addDefaultCase(C)})}const f=g=>g,d=new Map,h=new WeakMap;let p;function m(g,w){return p||(p=l()),p(g,w)}function v(){return p||(p=l()),p.getInitialState()}function y(g,w=!1){function C(P){let _=P[g];if(typeof _>"u"){if(w)_=On(h,C,v);else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?Z(15):"selectSlice returned undefined for an uninjected slice reducer")}return _}function O(P=f){const _=On(d,w,()=>new WeakMap);return On(_,P,()=>{const M={};for(const[z,T]of Object.entries(n.selectors??{}))M[z]=e6(T,P,()=>On(h,P,v),w);return M})}return{reducerPath:g,getSelectors:O,get selectors(){return O(C)},selectSlice:C}}const b={name:i,reducer:m,actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState:v,...y(a),injectInto(g,{reducerPath:w,...C}={}){const O=w??a;return g.inject({reducerPath:O,reducer:m},C),{...b,...y(O,!0)}}};return b}}function e6(e,t,r,n){function i(a,...o){let s=t(a);if(typeof s>"u"){if(n)s=r();else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?Z(16):"selectState returned undefined for an uninjected slice reducer")}return e(s,...o)}return i.unwrapped=e,i}var He=J9();function t6(){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 r6({type:e,reducerName:t,createNotation:r},n,i){let a,o;if("reducer"in n){if(r&&!i6(n))throw new Error(process.env.NODE_ENV==="production"?Z(17):"Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");a=n.reducer,o=n.prepare}else a=n;i.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,o?Je(e,o):Je(e))}function n6(e){return e._reducerDefinitionType==="asyncThunk"}function i6(e){return e._reducerDefinitionType==="reducerWithPrepare"}function a6({type:e,reducerName:t},r,n,i){if(!i)throw new Error(process.env.NODE_ENV==="production"?Z(18):"Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");const{payloadCreator:a,fulfilled:o,pending:s,rejected:u,settled:c,options:l}=r,f=i(e,a,l);n.exposeAction(t,f),o&&n.addCase(f.fulfilled,o),s&&n.addCase(f.pending,s),u&&n.addCase(f.rejected,u),c&&n.addMatcher(f.settled,c),n.exposeCaseReducer(t,{fulfilled:o||Pn,pending:s||Pn,rejected:u||Pn,settled:c||Pn})}function Pn(){}var o6="task",Ic="listener",Rc="completed",Ta="cancelled",s6=`task-${Ta}`,u6=`task-${Rc}`,$0=`${Ic}-${Ta}`,l6=`${Ic}-${Rc}`,Oi=class{constructor(e){this.code=e,this.message=`${o6} ${Ta} (reason: ${e})`}name="TaskAbortError";message},ka=(e,t)=>{if(typeof e!="function")throw new TypeError(process.env.NODE_ENV==="production"?Z(32):`${t} is not a function`)},Wn=()=>{},$c=(e,t=Wn)=>(e.catch(t),e),Lc=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),er=(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))},tr=e=>{if(e.aborted){const{reason:t}=e;throw new Oi(t)}};function Bc(e,t){let r=Wn;return new Promise((n,i)=>{const a=()=>i(new Oi(e.reason));if(e.aborted){a();return}r=Lc(e,a),t.finally(()=>r()).then(n,i)}).finally(()=>{r=Wn})}var c6=async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(r){return{status:r instanceof Oi?"cancelled":"rejected",error:r}}finally{t?.()}},Un=e=>t=>$c(Bc(e,t).then(r=>(tr(e),r))),Fc=e=>{const t=Un(e);return r=>t(new Promise(n=>setTimeout(n,r)))},{assign:vr}=Object,su={},an="listenerMiddleware",f6=(e,t)=>{const r=n=>Lc(e,()=>er(n,e.reason));return(n,i)=>{ka(n,"taskExecutor");const a=new AbortController;r(a);const o=c6(async()=>{tr(e),tr(a.signal);const s=await n({pause:Un(a.signal),delay:Fc(a.signal),signal:a.signal});return tr(a.signal),s},()=>er(a,u6));return i?.autoJoin&&t.push(o.catch(Wn)),{result:Un(e)(o),cancel(){er(a,s6)}}}},d6=(e,t)=>{const r=async(n,i)=>{tr(t);let a=()=>{};const s=[new Promise((u,c)=>{let l=e({predicate:n,effect:(f,d)=>{d.unsubscribe(),u([f,d.getState(),d.getOriginalState()])}});a=()=>{l(),c()}})];i!=null&&s.push(new Promise(u=>setTimeout(u,i,null)));try{const u=await Bc(t,Promise.race(s));return tr(t),u}finally{a()}};return(n,i)=>$c(r(n,i))},zc=e=>{let{type:t,actionCreator:r,matcher:n,predicate:i,effect:a}=e;if(t)i=Je(t).match;else if(r)t=r.type,i=r.match;else if(n)i=n;else if(!i)throw new Error(process.env.NODE_ENV==="production"?Z(21):"Creating or removing a listener requires one of the known fields for matching an action");return ka(a,"options.listener"),{predicate:i,type:t,effect:a}},qc=vr(e=>{const{type:t,predicate:r,effect:n}=zc(e);return{id:Z9(),effect:n,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw new Error(process.env.NODE_ENV==="production"?Z(22):"Unsubscribe not initialized")}}},{withTypes:()=>qc}),uu=(e,t)=>{const{type:r,effect:n,predicate:i}=zc(t);return Array.from(e.values()).find(a=>(typeof r=="string"?a.type===r:a.predicate===i)&&a.effect===n)},L0=e=>{e.pending.forEach(t=>{er(t,$0)})},h6=e=>()=>{e.forEach(L0),e.clear()},lu=(e,t,r)=>{try{e(t,r)}catch(n){setTimeout(()=>{throw n},0)}},Wc=vr(Je(`${an}/add`),{withTypes:()=>Wc}),p6=Je(`${an}/removeAll`),Uc=vr(Je(`${an}/remove`),{withTypes:()=>Uc}),v6=(...e)=>{console.error(`${an}/error`,...e)},on=(e={})=>{const t=new Map,{extra:r,onError:n=v6}=e;ka(n,"onError");const i=l=>(l.unsubscribe=()=>t.delete(l.id),t.set(l.id,l),f=>{l.unsubscribe(),f?.cancelActive&&L0(l)}),a=l=>{const f=uu(t,l)??qc(l);return i(f)};vr(a,{withTypes:()=>a});const o=l=>{const f=uu(t,l);return f&&(f.unsubscribe(),l.cancelActive&&L0(f)),!!f};vr(o,{withTypes:()=>o});const s=async(l,f,d,h)=>{const p=new AbortController,m=d6(a,p.signal),v=[];try{l.pending.add(p),await Promise.resolve(l.effect(f,vr({},d,{getOriginalState:h,condition:(y,b)=>m(y,b).then(Boolean),take:m,delay:Fc(p.signal),pause:Un(p.signal),extra:r,signal:p.signal,fork:f6(p.signal,v),unsubscribe:l.unsubscribe,subscribe:()=>{t.set(l.id,l)},cancelActiveListeners:()=>{l.pending.forEach((y,b,g)=>{y!==p&&(er(y,$0),g.delete(y))})},cancel:()=>{er(p,$0),l.pending.delete(p)},throwIfCancelled:()=>{tr(p.signal)}})))}catch(y){y instanceof Oi||lu(n,y,{raisedBy:"effect"})}finally{await Promise.all(v),er(p,l6),l.pending.delete(p)}},u=h6(t);return{middleware:l=>f=>d=>{if(!_a(d))return f(d);if(Wc.match(d))return a(d.payload);if(p6.match(d)){u();return}if(Uc.match(d))return o(d.payload);let h=l.getState();const p=()=>{if(h===su)throw new Error(process.env.NODE_ENV==="production"?Z(23):`${an}: getOriginalState can only be called synchronously`);return h};let m;try{if(m=f(d),t.size>0){const v=l.getState(),y=Array.from(t.values());for(const b of y){let g=!1;try{g=b.predicate(d,v,h)}catch(w){g=!1,lu(n,w,{raisedBy:"predicate"})}g&&s(b,d,l,p)}}}finally{h=su}return m},startListening:a,stopListening:o,clearListeners:u}};function Z(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 m6={layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},Kc=He({name:"chartLayout",initialState:m6,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:y6,setLayout:g6,setChartSize:b6,setScale:C6}=Kc.actions,x6=Kc.reducer;function cu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function fu(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?cu(Object(r),!0).forEach(function(n){w6(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cu(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function w6(e,t,r){return(t=O6(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function O6(e){var t=E6(e,"string");return typeof t=="symbol"?t:t+""}function E6(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Kn=Math.PI/180,P6=e=>e*180/Math.PI,we=(e,t,r,n)=>({x:e+Math.cos(-Kn*n)*r,y:t+Math.sin(-Kn*n)*r}),A6=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(n.left||0)-(n.right||0)),Math.abs(r-(n.top||0)-(n.bottom||0)))/2},S6=(e,t)=>{var{x:r,y:n}=e,{x:i,y:a}=t;return Math.sqrt((r-i)**2+(n-a)**2)},_6=(e,t)=>{var{x:r,y:n}=e,{cx:i,cy:a}=t,o=S6({x:r,y:n},{x:i,y:a});if(o<=0)return{radius:o,angle:0};var s=(r-i)/o,u=Math.acos(s);return n>a&&(u=2*Math.PI-u),{radius:o,angle:P6(u),angleInRadian:u}},j6=e=>{var{startAngle:t,endAngle:r}=e,n=Math.floor(t/360),i=Math.floor(r/360),a=Math.min(n,i);return{startAngle:t-a*360,endAngle:r-a*360}},M6=(e,t)=>{var{startAngle:r,endAngle:n}=t,i=Math.floor(r/360),a=Math.floor(n/360),o=Math.min(i,a);return e+o*360},T6=(e,t)=>{var{x:r,y:n}=e,{radius:i,angle:a}=_6({x:r,y:n},t),{innerRadius:o,outerRadius:s}=t;if(i<o||i>s||i===0)return null;var{startAngle:u,endAngle:c}=j6(t),l=a,f;if(u<=c){for(;l>c;)l-=360;for(;l<u;)l+=360;f=l>=u&&l<=c}else{for(;l>u;)l-=360;for(;l<c;)l+=360;f=l>=c&&l<=u}return f?fu(fu({},t),{},{radius:i,angle:M6(l,t)}):null};function Vc(e,t,r){return Array.isArray(e)&&e&&t+r!==0?e.slice(t,r+1):e}function du(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ze(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?du(Object(r),!0).forEach(function(n){k6(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):du(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function k6(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=N6(e,"string");return typeof t=="symbol"?t:t+""}function N6(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Oe(e,t,r){return ue(e)||ue(t)?r:ut(t)?ir(e,t,r):typeof t=="function"?t(e):r}var I6=(e,t,r,n,i)=>{var a,o=-1,s=(a=t?.length)!==null&&a!==void 0?a:0;if(s<=1||e==null)return 0;if(n==="angleAxis"&&i!=null&&Math.abs(Math.abs(i[1]-i[0])-360)<=1e-6)for(var u=0;u<s;u++){var c=u>0?r[u-1].coordinate:r[s-1].coordinate,l=r[u].coordinate,f=u>=s-1?r[0].coordinate:r[u+1].coordinate,d=void 0;if(Xe(l-c)!==Xe(f-l)){var h=[];if(Xe(f-l)===Xe(i[1]-i[0])){d=f;var p=l+i[1]-i[0];h[0]=Math.min(p,(p+c)/2),h[1]=Math.max(p,(p+c)/2)}else{d=c;var m=f+i[1]-i[0];h[0]=Math.min(l,(m+l)/2),h[1]=Math.max(l,(m+l)/2)}var v=[Math.min(l,(d+l)/2),Math.max(l,(d+l)/2)];if(e>v[0]&&e<=v[1]||e>=h[0]&&e<=h[1]){({index:o}=r[u]);break}}else{var y=Math.min(c,f),b=Math.max(c,f);if(e>(y+l)/2&&e<=(b+l)/2){({index:o}=r[u]);break}}}else if(t){for(var g=0;g<s;g++)if(g===0&&e<=(t[g].coordinate+t[g+1].coordinate)/2||g>0&&g<s-1&&e>(t[g].coordinate+t[g-1].coordinate)/2&&e<=(t[g].coordinate+t[g+1].coordinate)/2||g===s-1&&e>(t[g].coordinate+t[g-1].coordinate)/2){({index:o}=t[g]);break}}return o},R6=(e,t,r)=>{if(t&&r){var{width:n,height:i}=r,{align:a,verticalAlign:o,layout:s}=t;if((s==="vertical"||s==="horizontal"&&o==="middle")&&a!=="center"&&N(e[a]))return Ze(Ze({},e),{},{[a]:e[a]+(n||0)});if((s==="horizontal"||s==="vertical"&&a==="center")&&o!=="middle"&&N(e[o]))return Ze(Ze({},e),{},{[o]:e[o]+(i||0)})}return e},ct=(e,t)=>e==="horizontal"&&t==="xAxis"||e==="vertical"&&t==="yAxis"||e==="centric"&&t==="angleAxis"||e==="radial"&&t==="radiusAxis",Hc=(e,t,r,n)=>{if(n)return e.map(s=>s.coordinate);var i,a,o=e.map(s=>(s.coordinate===t&&(i=!0),s.coordinate===r&&(a=!0),s.coordinate));return i||o.push(t),a||o.push(r),o},Gc=(e,t,r)=>{if(!e)return null;var{duplicateDomain:n,type:i,range:a,scale:o,realScaleType:s,isCategorical:u,categoricalDomain:c,tickCount:l,ticks:f,niceTicks:d,axisType:h}=e;if(!o)return null;var p=s==="scaleBand"&&o.bandwidth?o.bandwidth()/2:2,m=i==="category"&&o.bandwidth?o.bandwidth()/p:0;if(m=h==="angleAxis"&&a&&a.length>=2?Xe(a[0]-a[1])*2*m:m,f||d){var v=(f||d||[]).map((y,b)=>{var g=n?n.indexOf(y):y;return{coordinate:o(g)+m,value:y,offset:m,index:b}});return v.filter(y=>!Ue(y.coordinate))}return u&&c?c.map((y,b)=>({coordinate:o(y)+m,value:y,index:b,offset:m})):o.ticks&&l!=null?o.ticks(l).map((y,b)=>({coordinate:o(y)+m,value:y,offset:m,index:b})):o.domain().map((y,b)=>({coordinate:o(y)+m,value:n?n[y]:y,index:b,offset:m}))},hu=1e-4,$6=e=>{var t=e.domain();if(!(!t||t.length<=2)){var r=t.length,n=e.range(),i=Math.min(n[0],n[1])-hu,a=Math.max(n[0],n[1])+hu,o=e(t[0]),s=e(t[r-1]);(o<i||o>a||s<i||s>a)&&e.domain([t[0],t[r-1]])}},L6=e=>{var t=e.length;if(!(t<=0))for(var r=0,n=e[0].length;r<n;++r)for(var i=0,a=0,o=0;o<t;++o){var s=Ue(e[o][r][1])?e[o][r][0]:e[o][r][1];s>=0?(e[o][r][0]=i,e[o][r][1]=i+s,i=e[o][r][1]):(e[o][r][0]=a,e[o][r][1]=a+s,a=e[o][r][1])}},B6=e=>{var t=e.length;if(!(t<=0))for(var r=0,n=e[0].length;r<n;++r)for(var i=0,a=0;a<t;++a){var o=Ue(e[a][r][1])?e[a][r][0]:e[a][r][1];o>=0?(e[a][r][0]=i,e[a][r][1]=i+o,i=e[a][r][1]):(e[a][r][0]=0,e[a][r][1]=0)}},F6={sign:L6,expand:ph,none:yr,silhouette:vh,wiggle:mh,positive:B6},z6=(e,t,r)=>{var n=F6[r],i=hh().keys(t).value((a,o)=>+Oe(a,o,0)).order(j0).offset(n);return i(e)};function q6(e){return e==null?void 0:String(e)}function Vn(e){var{axis:t,ticks:r,bandSize:n,entry:i,index:a,dataKey:o}=e;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!ue(i[t.dataKey])){var s=W1(r,"value",i[t.dataKey]);if(s)return s.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var u=Oe(i,ue(o)?t.dataKey:o);return ue(u)?null:t.scale(u)}var W6=e=>{var t=e.flat(2).filter(N);return[Math.min(...t),Math.max(...t)]},U6=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],K6=(e,t,r)=>{if(e!=null)return U6(Object.keys(e).reduce((n,i)=>{var a=e[i],{stackedData:o}=a,s=o.reduce((u,c)=>{var l=Vc(c,t,r),f=W6(l);return[Math.min(u[0],f[0]),Math.max(u[1],f[1])]},[1/0,-1/0]);return[Math.min(s[0],n[0]),Math.max(s[1],n[1])]},[1/0,-1/0]))},pu=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,vu=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Hr=(e,t,r)=>{if(e&&e.scale&&e.scale.bandwidth){var n=e.scale.bandwidth();if(!r||n>0)return n}if(e&&t&&t.length>=2){for(var i=gi(t,l=>l.coordinate),a=1/0,o=1,s=i.length;o<s;o++){var u=i[o],c=i[o-1];a=Math.min((u.coordinate||0)-(c.coordinate||0),a)}return a===1/0?0:a}return r?void 0:0};function mu(e){var{tooltipEntrySettings:t,dataKey:r,payload:n,value:i,name:a}=e;return Ze(Ze({},t),{},{dataKey:r,payload:n,value:i,name:a})}function Ei(e,t){if(e)return String(e);if(typeof t=="string")return t}function V6(e,t,r,n,i){if(r==="horizontal"||r==="vertical"){var a=e>=i.left&&e<=i.left+i.width&&t>=i.top&&t<=i.top+i.height;return a?{x:e,y:t}:null}return n?T6({x:e,y:t},n):null}var H6=(e,t,r,n)=>{var i=t.find(c=>c&&c.index===r);if(i){if(e==="horizontal")return{x:i.coordinate,y:n.y};if(e==="vertical")return{x:n.x,y:i.coordinate};if(e==="centric"){var a=i.coordinate,{radius:o}=n;return Ze(Ze(Ze({},n),we(n.cx,n.cy,o,a)),{},{angle:a,radius:o})}var s=i.coordinate,{angle:u}=n;return Ze(Ze(Ze({},n),we(n.cx,n.cy,s,u)),{},{angle:u,radius:s})}return{x:0,y:0}},G6=(e,t)=>t==="horizontal"?e.x:t==="vertical"?e.y:t==="centric"?e.angle:e.radius,Ot=e=>e.layout.width,Et=e=>e.layout.height,Y6=e=>e.layout.scale,Yc=e=>e.layout.margin,Da=A(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),Na=A(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),Z6="data-recharts-item-index",X6="data-recharts-item-data-key",Pi=60;function yu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function _t(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yu(Object(r),!0).forEach(function(n){Q6(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yu(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Q6(e,t,r){return(t=J6(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function J6(e){var t=e7(e,"string");return typeof t=="symbol"?t:t+""}function e7(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var t7=e=>e.brush.height,Ee=A([Ot,Et,Yc,t7,Da,Na,yc,l9],(e,t,r,n,i,a,o,s)=>{var u=a.reduce((p,m)=>{var{orientation:v}=m;if(!m.mirror&&!m.hide){var y=typeof m.width=="number"?m.width:Pi;return _t(_t({},p),{},{[v]:p[v]+y})}return p},{left:r.left||0,right:r.right||0}),c=i.reduce((p,m)=>{var{orientation:v}=m;return!m.mirror&&!m.hide?_t(_t({},p),{},{[v]:ir(p,"".concat(v))+m.height}):p},{top:r.top||0,bottom:r.bottom||0}),l=_t(_t({},c),u),f=l.bottom;l.bottom+=n,l=R6(l,o,s);var d=e-l.left-l.right,h=t-l.top-l.bottom;return _t(_t({brushBottom:f},l),{},{width:Math.max(d,0),height:Math.max(h,0)})}),r7=A(Ee,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),Zc=A(Ot,Et,(e,t)=>({x:0,y:0,width:e,height:t})),n7=E.createContext(null),Ie=()=>E.useContext(n7)!=null,Ai=e=>e.brush,Si=A([Ai,Ee,Yc],(e,t,r)=>({height:e.height,x:N(e.x)?e.x:t.left,y:N(e.y)?e.y:t.top+t.height+t.brushBottom-(r?.bottom||0),width:N(e.width)?e.width:t.width})),Ia=()=>{var e,t=Ie(),r=F(r7),n=F(Si),i=(e=F(Ai))===null||e===void 0?void 0:e.padding;return!t||!n||!i?r:{width:n.width-i.left-i.right,height:n.height-i.top-i.bottom,x:i.left,y:i.top}},i7={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},Xc=()=>{var e;return(e=F(Ee))!==null&&e!==void 0?e:i7},Qc=()=>F(Ot),Jc=()=>F(Et),Q=e=>e.layout.layoutType,_i=()=>F(Q),a7={settings:{layout:"horizontal",align:"center",verticalAlign:"middle",itemSorter:"value"},size:{width:0,height:0},payload:[]},ef=He({name:"legend",initialState:a7,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=mt(e).payload.indexOf(t.payload);r>-1&&e.payload.splice(r,1)}}}),{setLegendSize:eO,setLegendSettings:tO,addLegendPayload:o7,removeLegendPayload:s7}=ef.actions,u7=ef.reducer;function B0(){return B0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},B0.apply(null,arguments)}function gu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function K2(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gu(Object(r),!0).forEach(function(n){l7(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gu(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function l7(e,t,r){return(t=c7(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c7(e){var t=f7(e,"string");return typeof t=="symbol"?t:t+""}function f7(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function d7(e){return Array.isArray(e)&&ut(e[0])&&ut(e[1])?e.join(" ~ "):e}var h7=e=>{var{separator:t=" : ",contentStyle:r={},itemStyle:n={},labelStyle:i={},payload:a,formatter:o,itemSorter:s,wrapperClassName:u,labelClassName:c,label:l,labelFormatter:f,accessibilityLayer:d=!1}=e,h=()=>{if(a&&a.length){var C={padding:0,margin:0},O=(s?gi(a,s):a).map((P,_)=>{if(P.type==="none")return null;var M=P.formatter||o||d7,{value:z,name:T}=P,k=z,W=T;if(M){var K=M(z,T,P,_,a);if(Array.isArray(K))[k,W]=K;else if(K!=null)k=K;else return null}var te=K2({display:"block",paddingTop:4,paddingBottom:4,color:P.color||"#000"},n);return x.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(_),style:te},ut(W)?x.createElement("span",{className:"recharts-tooltip-item-name"},W):null,ut(W)?x.createElement("span",{className:"recharts-tooltip-item-separator"},t):null,x.createElement("span",{className:"recharts-tooltip-item-value"},k),x.createElement("span",{className:"recharts-tooltip-item-unit"},P.unit||""))});return x.createElement("ul",{className:"recharts-tooltip-item-list",style:C},O)}return null},p=K2({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},r),m=K2({margin:0},i),v=!ue(l),y=v?l:"",b=G.clsx("recharts-default-tooltip",u),g=G.clsx("recharts-tooltip-label",c);v&&f&&a!==void 0&&a!==null&&(y=f(l,a));var w=d?{role:"status","aria-live":"assertive"}:{};return x.createElement("div",B0({className:b,style:p},w),x.createElement("p",{className:g,style:m},x.isValidElement(y)?y:"".concat(y)),h())},kr="recharts-tooltip-wrapper",p7={visibility:"hidden"};function v7(e){var{coordinate:t,translateX:r,translateY:n}=e;return G.clsx(kr,{["".concat(kr,"-right")]:N(r)&&t&&N(t.x)&&r>=t.x,["".concat(kr,"-left")]:N(r)&&t&&N(t.x)&&r<t.x,["".concat(kr,"-bottom")]:N(n)&&t&&N(t.y)&&n>=t.y,["".concat(kr,"-top")]:N(n)&&t&&N(t.y)&&n<t.y})}function bu(e){var{allowEscapeViewBox:t,coordinate:r,key:n,offsetTopLeft:i,position:a,reverseDirection:o,tooltipDimension:s,viewBox:u,viewBoxDimension:c}=e;if(a&&N(a[n]))return a[n];var l=r[n]-s-(i>0?i:0),f=r[n]+i;if(t[n])return o[n]?l:f;var d=u[n];if(d==null)return 0;if(o[n]){var h=l,p=d;return h<p?Math.max(f,d):Math.max(l,d)}if(c==null)return 0;var m=f+s,v=d+c;return m>v?Math.max(l,d):Math.max(f,d)}function m7(e){var{translateX:t,translateY:r,useTranslate3d:n}=e;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function y7(e){var{allowEscapeViewBox:t,coordinate:r,offsetTopLeft:n,position:i,reverseDirection:a,tooltipBox:o,useTranslate3d:s,viewBox:u}=e,c,l,f;return o.height>0&&o.width>0&&r?(l=bu({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:u,viewBoxDimension:u.width}),f=bu({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:u,viewBoxDimension:u.height}),c=m7({translateX:l,translateY:f,useTranslate3d:s})):c=p7,{cssProperties:c,cssClasses:v7({translateX:l,translateY:f,coordinate:r})}}function Cu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function An(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Cu(Object(r),!0).forEach(function(n){F0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Cu(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function F0(e,t,r){return(t=g7(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function g7(e){var t=b7(e,"string");return typeof t=="symbol"?t:t+""}function b7(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class C7 extends E.PureComponent{constructor(){super(...arguments),F0(this,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),F0(this,"handleKeyDown",t=>{if(t.key==="Escape"){var r,n,i,a;this.setState({dismissed:!0,dismissedAtCoordinate:{x:(r=(n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==null&&r!==void 0?r:0,y:(i=(a=this.props.coordinate)===null||a===void 0?void 0:a.y)!==null&&i!==void 0?i: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:n,animationEasing:i,children:a,coordinate:o,hasPayload:s,isAnimationActive:u,offset:c,position:l,reverseDirection:f,useTranslate3d:d,viewBox:h,wrapperStyle:p,lastBoundingBox:m,innerRef:v,hasPortalFromProps:y}=this.props,{cssClasses:b,cssProperties:g}=y7({allowEscapeViewBox:r,coordinate:o,offsetTopLeft:c,position:l,reverseDirection:f,tooltipBox:{height:m.height,width:m.width},useTranslate3d:d,viewBox:h}),w=y?{}:An(An({transition:u&&t?"transform ".concat(n,"ms ").concat(i):void 0},g),{},{pointerEvents:"none",visibility:!this.state.dismissed&&t&&s?"visible":"hidden",position:"absolute",top:0,left:0}),C=An(An({},w),{},{visibility:!this.state.dismissed&&t&&s?"visible":"hidden"},p);return x.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:b,style:C,ref:v},a)}}var x7=()=>!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout),Or={isSsr:x7()},tf=()=>F(e=>e.rootProps.accessibilityLayer);function je(e){return Number.isFinite(e)}function Hn(e){return typeof e=="number"&&e>0&&Number.isFinite(e)}function z0(){return z0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},z0.apply(null,arguments)}function xu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function wu(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xu(Object(r),!0).forEach(function(n){w7(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xu(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function w7(e,t,r){return(t=O7(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function O7(e){var t=E7(e,"string");return typeof t=="symbol"?t:t+""}function E7(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ou={curveBasisClosed:rh,curveBasisOpen:nh,curveBasis:th,curveBumpX:J8,curveBumpY:eh,curveLinearClosed:ih,curveLinear:mi,curveMonotoneX:ah,curveMonotoneY:oh,curveNatural:sh,curveStep:uh,curveStepAfter:ch,curveStepBefore:lh},Sn=e=>je(e.x)&&je(e.y),Dr=e=>e.x,Nr=e=>e.y,P7=(e,t)=>{if(typeof e=="function")return e;var r="curve".concat(ga(e));return(r==="curveMonotone"||r==="curveBump")&&t?Ou["".concat(r).concat(t==="vertical"?"Y":"X")]:Ou[r]||mi},A7=e=>{var{type:t="linear",points:r=[],baseLine:n,layout:i,connectNulls:a=!1}=e,o=P7(t,i),s=a?r.filter(Sn):r,u;if(Array.isArray(n)){var c=a?n.filter(f=>Sn(f)):n,l=s.map((f,d)=>wu(wu({},f),{},{base:c[d]}));return i==="vertical"?u=bn().y(Nr).x1(Dr).x0(f=>f.base.x):u=bn().x(Dr).y1(Nr).y0(f=>f.base.y),u.defined(Sn).curve(o),u(l)}return i==="vertical"&&N(n)?u=bn().y(Nr).x1(Dr).x0(n):N(n)?u=bn().x(Dr).y1(Nr).y0(n):u=J1().x(Dr).y(Nr),u.defined(Sn).curve(o),u(s)},zr=e=>{var{className:t,points:r,path:n,pathRef:i}=e;if((!r||!r.length)&&!n)return null;var a=r&&r.length?A7(e):n;return x.createElement("path",z0({},Rt(e),Ca(e),{className:G.clsx("recharts-curve",t),d:a===null?void 0:a,ref:i}))},S7=["x","y","top","left","width","height","className"];function q0(){return q0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},q0.apply(null,arguments)}function Eu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function _7(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Eu(Object(r),!0).forEach(function(n){j7(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Eu(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function j7(e,t,r){return(t=M7(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function M7(e){var t=T7(e,"string");return typeof t=="symbol"?t:t+""}function T7(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function k7(e,t){if(e==null)return{};var r,n,i=D7(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function D7(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var N7=(e,t,r,n,i,a)=>"M".concat(e,",").concat(i,"v").concat(n,"M").concat(a,",").concat(t,"h").concat(r),I7=e=>{var{x:t=0,y:r=0,top:n=0,left:i=0,width:a=0,height:o=0,className:s}=e,u=k7(e,S7),c=_7({x:t,y:r,top:n,left:i,width:a,height:o},u);return!N(t)||!N(r)||!N(a)||!N(o)||!N(n)||!N(i)?null:x.createElement("path",q0({},le(c,!0),{className:G.clsx("recharts-cross",s),d:N7(t,r,a,o,n,i)}))};function R7(e,t,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-i,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}function Pu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function $7(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Pu(Object(r),!0).forEach(function(n){L7(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pu(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function L7(e,t,r){return(t=B7(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function B7(e){var t=F7(e,"string");return typeof t=="symbol"?t:t+""}function F7(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ft(e,t){var r=$7({},e),n=t,i=Object.keys(t),a=i.reduce((o,s)=>(o[s]===void 0&&n[s]!==void 0&&(o[s]=n[s]),o),r);return a}var V2={},H2={},G2={},Au;function z7(){return Au||(Au=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){if(!r||typeof r!="object")return!1;const n=Object.getPrototypeOf(r);return n===null||n===Object.prototype||Object.getPrototypeOf(n)===null?Object.prototype.toString.call(r)==="[object Object]":!1}e.isPlainObject=t}(G2)),G2}var Su;function q7(){return Su||(Su=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=z7(),r=fc(),n=Pa(),i=Aa(),a=Oa();function o(c,l,f){return s(c,l,void 0,void 0,void 0,void 0,f)}function s(c,l,f,d,h,p,m){const v=m(c,l,f,d,h,p);if(v!==void 0)return v;if(typeof c==typeof l)switch(typeof c){case"bigint":case"string":case"boolean":case"symbol":case"undefined":return c===l;case"number":return c===l||Object.is(c,l);case"function":return c===l;case"object":return u(c,l,p,m)}return u(c,l,p,m)}function u(c,l,f,d){if(Object.is(c,l))return!0;let h=n.getTag(c),p=n.getTag(l);if(h===i.argumentsTag&&(h=i.objectTag),p===i.argumentsTag&&(p=i.objectTag),h!==p)return!1;switch(h){case i.stringTag:return c.toString()===l.toString();case i.numberTag:{const y=c.valueOf(),b=l.valueOf();return a.eq(y,b)}case i.booleanTag:case i.dateTag:case i.symbolTag:return Object.is(c.valueOf(),l.valueOf());case i.regexpTag:return c.source===l.source&&c.flags===l.flags;case i.functionTag:return c===l}f=f??new Map;const m=f.get(c),v=f.get(l);if(m!=null&&v!=null)return m===l;f.set(c,l),f.set(l,c);try{switch(h){case i.mapTag:{if(c.size!==l.size)return!1;for(const[y,b]of c.entries())if(!l.has(y)||!s(b,l.get(y),y,c,l,f,d))return!1;return!0}case i.setTag:{if(c.size!==l.size)return!1;const y=Array.from(c.values()),b=Array.from(l.values());for(let g=0;g<y.length;g++){const w=y[g],C=b.findIndex(O=>s(w,O,void 0,c,l,f,d));if(C===-1)return!1;b.splice(C,1)}return!0}case i.arrayTag:case i.uint8ArrayTag:case i.uint8ClampedArrayTag:case i.uint16ArrayTag:case i.uint32ArrayTag:case i.bigUint64ArrayTag:case i.int8ArrayTag:case i.int16ArrayTag:case i.int32ArrayTag:case i.bigInt64ArrayTag:case i.float32ArrayTag:case i.float64ArrayTag:{if(typeof Buffer<"u"&&Buffer.isBuffer(c)!==Buffer.isBuffer(l)||c.length!==l.length)return!1;for(let y=0;y<c.length;y++)if(!s(c[y],l[y],y,c,l,f,d))return!1;return!0}case i.arrayBufferTag:return c.byteLength!==l.byteLength?!1:u(new Uint8Array(c),new Uint8Array(l),f,d);case i.dataViewTag:return c.byteLength!==l.byteLength||c.byteOffset!==l.byteOffset?!1:u(new Uint8Array(c),new Uint8Array(l),f,d);case i.errorTag:return c.name===l.name&&c.message===l.message;case i.objectTag:{if(!(u(c.constructor,l.constructor,f,d)||t.isPlainObject(c)&&t.isPlainObject(l)))return!1;const b=[...Object.keys(c),...r.getSymbols(c)],g=[...Object.keys(l),...r.getSymbols(l)];if(b.length!==g.length)return!1;for(let w=0;w<b.length;w++){const C=b[w],O=c[C];if(!Object.hasOwn(l,C))return!1;const P=l[C];if(!s(O,P,C,c,l,f,d))return!1}return!0}default:return!1}}finally{f.delete(c),f.delete(l)}}e.isEqualWith=o}(H2)),H2}var Y2={},_u;function W7(){return _u||(_u=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(){}e.noop=t}(Y2)),Y2}var ju;function U7(){return ju||(ju=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=q7(),r=W7();function n(i,a){return t.isEqualWith(i,a,r.noop)}e.isEqual=n}(V2)),V2}var Z2,Mu;function K7(){return Mu||(Mu=1,Z2=U7().isEqual),Z2}var V7=K7();const H7=S.getDefaultExportFromCjs(V7);var Gn=1e-4,rf=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],nf=(e,t)=>e.map((r,n)=>r*t**n).reduce((r,n)=>r+n),Tu=(e,t)=>r=>{var n=rf(e,t);return nf(n,r)},G7=(e,t)=>r=>{var n=rf(e,t),i=[...n.map((a,o)=>a*o).slice(1),0];return nf(i,r)},ku=function(){for(var t,r,n,i,a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];if(o.length===1)switch(o[0]){case"linear":[t,n,r,i]=[0,0,1,1];break;case"ease":[t,n,r,i]=[.25,.1,.25,1];break;case"ease-in":[t,n,r,i]=[.42,0,1,1];break;case"ease-out":[t,n,r,i]=[.42,0,.58,1];break;case"ease-in-out":[t,n,r,i]=[0,0,.58,1];break;default:{var u=o[0].split("(");u[0]==="cubic-bezier"&&u[1].split(")")[0].split(",").length===4&&([t,n,r,i]=u[1].split(")")[0].split(",").map(p=>parseFloat(p)))}}else o.length===4&&([t,n,r,i]=o);var c=Tu(t,r),l=Tu(n,i),f=G7(t,r),d=p=>p>1?1:p<0?0:p,h=p=>{for(var m=p>1?1:p,v=m,y=0;y<8;++y){var b=c(v)-m,g=f(v);if(Math.abs(b-m)<Gn||g<Gn)return l(v);v=d(v-b/g)}return l(v)};return h.isStepper=!1,h},Y7=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{stiff:r=100,damping:n=8,dt:i=17}=t,a=(o,s,u)=>{var c=-(o-s)*r,l=u*n,f=u+(c-l)*i/1e3,d=u*i/1e3+o;return Math.abs(d-s)<Gn&&Math.abs(f)<Gn?[s,0]:[d,f]};return a.isStepper=!0,a.dt=i,a},af=e=>{if(typeof e=="string")switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return ku(e);case"spring":return Y7();default:if(e.split("(")[0]==="cubic-bezier")return ku(e)}return typeof e=="function"?e:null};function Du(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Nu(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Du(Object(r),!0).forEach(function(n){Z7(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Du(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Z7(e,t,r){return(t=X7(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function X7(e){var t=Q7(e,"string");return typeof t=="symbol"?t:t+""}function Q7(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var J7=e=>e.replace(/([A-Z])/g,t=>"-".concat(t.toLowerCase())),e4=(e,t,r)=>e.map(n=>"".concat(J7(n)," ").concat(t,"ms ").concat(r)).join(","),t4=(e,t)=>[Object.keys(e),Object.keys(t)].reduce((r,n)=>r.filter(i=>n.includes(i))),Gr=(e,t)=>Object.keys(t).reduce((r,n)=>Nu(Nu({},r),{},{[n]:e(n,t[n])}),{});function Iu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function xe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Iu(Object(r),!0).forEach(function(n){r4(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Iu(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function r4(e,t,r){return(t=n4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function n4(e){var t=i4(e,"string");return typeof t=="symbol"?t:t+""}function i4(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Yn=(e,t,r)=>e+(t-e)*r,W0=e=>{var{from:t,to:r}=e;return t!==r},of=(e,t,r)=>{var n=Gr((i,a)=>{if(W0(a)){var[o,s]=e(a.from,a.to,a.velocity);return xe(xe({},a),{},{from:o,velocity:s})}return a},t);return r<1?Gr((i,a)=>W0(a)?xe(xe({},a),{},{velocity:Yn(a.velocity,n[i].velocity,r),from:Yn(a.from,n[i].from,r)}):a,t):of(e,n,r-1)};function a4(e,t,r,n,i,a){var o,s=n.reduce((d,h)=>xe(xe({},d),{},{[h]:{from:e[h],velocity:0,to:t[h]}}),{}),u=()=>Gr((d,h)=>h.from,s),c=()=>!Object.values(s).filter(W0).length,l=null,f=d=>{o||(o=d);var h=d-o,p=h/r.dt;s=of(r,s,p),i(xe(xe(xe({},e),t),u())),o=d,c()||(l=a.setTimeout(f))};return()=>(l=a.setTimeout(f),()=>{l()})}function o4(e,t,r,n,i,a,o){var s=null,u=i.reduce((f,d)=>xe(xe({},f),{},{[d]:[e[d],t[d]]}),{}),c,l=f=>{c||(c=f);var d=(f-c)/n,h=Gr((m,v)=>Yn(...v,r(d)),u);if(a(xe(xe(xe({},e),t),h)),d<1)s=o.setTimeout(l);else{var p=Gr((m,v)=>Yn(...v,r(1)),u);a(xe(xe(xe({},e),t),p))}};return()=>(s=o.setTimeout(l),()=>{s()})}const sf=(e,t,r,n,i,a)=>{var o=t4(e,t);return r.isStepper===!0?a4(e,t,r,o,i,a):o4(e,t,r,n,o,i,a)};function s4(e){var t,r=()=>null,n=!1,i=null,a=o=>{if(!n){if(Array.isArray(o)){if(!o.length)return;var s=o,[u,...c]=s;if(typeof u=="number"){i=e.setTimeout(a.bind(null,c),u);return}a(u),i=e.setTimeout(a.bind(null,c));return}typeof o=="string"&&(t=o,r(t)),typeof o=="object"&&(t=o,r(t)),typeof o=="function"&&o()}};return{stop:()=>{n=!0},start:o=>{n=!1,i&&(i(),i=null),a(o)},subscribe:o=>(r=o,()=>{r=()=>null}),getTimeoutController:()=>e}}class u4{setTimeout(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=performance.now(),i=null,a=o=>{o-n>=r?t(o):typeof requestAnimationFrame=="function"&&(i=requestAnimationFrame(a))};return i=requestAnimationFrame(a),()=>{cancelAnimationFrame(i)}}}function l4(){return s4(new u4)}var c4=E.createContext(l4);function uf(e,t){var r=E.useContext(c4);return E.useMemo(()=>t??r(e),[e,t,r])}var f4=["children","begin","duration","attributeName","easing","isActive","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart","animationManager"];function U0(){return U0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},U0.apply(null,arguments)}function d4(e,t){if(e==null)return{};var r,n,i=h4(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function h4(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Ru(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function jt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ru(Object(r),!0).forEach(function(n){Gt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ru(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Gt(e,t,r){return(t=p4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p4(e){var t=v4(e,"string");return typeof t=="symbol"?t:t+""}function v4(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class Ra extends E.PureComponent{constructor(t,r){super(t,r),Gt(this,"mounted",!1),Gt(this,"manager",void 0),Gt(this,"stopJSAnimation",null),Gt(this,"unSubscribe",null);var{isActive:n,attributeName:i,from:a,to:o,children:s,duration:u,animationManager:c}=this.props;if(this.manager=c,this.handleStyleChange=this.handleStyleChange.bind(this),this.changeStyle=this.changeStyle.bind(this),!n||u<=0){this.state={style:{}},typeof s=="function"&&(this.state={style:o});return}if(a){if(typeof s=="function"){this.state={style:a};return}this.state={style:i?{[i]:a}:a}}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:n,attributeName:i,shouldReAnimate:a,to:o,from:s}=this.props,{style:u}=this.state;if(n){if(!r){var c={style:i?{[i]:o}:o};this.state&&u&&(i&&u[i]!==o||!i&&u!==o)&&this.setState(c);return}if(!(H7(t.to,o)&&t.canBegin&&t.isActive)){var l=!t.canBegin||!t.isActive;this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var f=l||a?s:t.to;if(this.state&&u){var d={style:i?{[i]:f}:f};(i&&u[i]!==f||!i&&u!==f)&&this.setState(d)}this.runAnimation(jt(jt({},this.props),{},{from:f,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:n,duration:i,easing:a,begin:o,onAnimationEnd:s,onAnimationStart:u}=t,c=sf(r,n,af(a),i,this.changeStyle,this.manager.getTimeoutController()),l=()=>{this.stopJSAnimation=c()};this.manager.start([u,o,l,i,s])}runAnimation(t){var{begin:r,duration:n,attributeName:i,to:a,easing:o,onAnimationStart:s,onAnimationEnd:u,children:c}=t;if(this.unSubscribe=this.manager.subscribe(this.handleStyleChange),typeof o=="function"||typeof c=="function"||o==="spring"){this.runJSAnimation(t);return}var l=i?{[i]:a}:a,f=e4(Object.keys(l),n,o);this.manager.start([s,r,jt(jt({},l),{},{transition:f}),n,u])}render(){var t=this.props,{children:r,begin:n,duration:i,attributeName:a,easing:o,isActive:s,from:u,to:c,canBegin:l,onAnimationEnd:f,shouldReAnimate:d,onAnimationReStart:h,animationManager:p}=t,m=d4(t,f4),v=E.Children.count(r),y=this.state.style;if(typeof r=="function")return r(y);if(!s||v===0||i<=0)return r;var b=g=>{var{style:w={},className:C}=g.props,O=E.cloneElement(g,jt(jt({},m),{},{style:jt(jt({},w),y),className:C}));return O};return v===1?b(E.Children.only(r)):x.createElement("div",null,E.Children.map(r,g=>b(g)))}}Gt(Ra,"displayName","Animate");Gt(Ra,"defaultProps",{begin:0,duration:1e3,attributeName:"",easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}});function $u(e){var t,r=uf((t=e.attributeName)!==null&&t!==void 0?t:Object.keys(e.to).join(","),e.animationManager);return x.createElement(Ra,U0({},e,{animationManager:r}))}function Zn(){return Zn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Zn.apply(null,arguments)}var Lu=(e,t,r,n,i)=>{var a=Math.min(Math.abs(r)/2,Math.abs(n)/2),o=n>=0?1:-1,s=r>=0?1:-1,u=n>=0&&r>=0||n<0&&r<0?1:0,c;if(a>0&&i instanceof Array){for(var l=[0,0,0,0],f=0,d=4;f<d;f++)l[f]=i[f]>a?a:i[f];c="M".concat(e,",").concat(t+o*l[0]),l[0]>0&&(c+="A ".concat(l[0],",").concat(l[0],",0,0,").concat(u,",").concat(e+s*l[0],",").concat(t)),c+="L ".concat(e+r-s*l[1],",").concat(t),l[1]>0&&(c+="A ".concat(l[1],",").concat(l[1],",0,0,").concat(u,`,
32
32
  `).concat(e+r,",").concat(t+o*l[1])),c+="L ".concat(e+r,",").concat(t+n-o*l[2]),l[2]>0&&(c+="A ".concat(l[2],",").concat(l[2],",0,0,").concat(u,`,
33
33
  `).concat(e+r-s*l[2],",").concat(t+n)),c+="L ".concat(e+s*l[3],",").concat(t+n),l[3]>0&&(c+="A ".concat(l[3],",").concat(l[3],",0,0,").concat(u,`,
34
34
  `).concat(e,",").concat(t+n-o*l[3])),c+="Z"}else if(a>0&&i===+i&&i>0){var h=Math.min(a,i);c="M ".concat(e,",").concat(t+o*h,`
@@ -38,11 +38,11 @@ Take a look at the reducer(s) handling this action type: ${h.type}.
38
38
  L `).concat(e+r,",").concat(t+n-o*h,`
39
39
  A `).concat(h,",").concat(h,",0,0,").concat(u,",").concat(e+r-s*h,",").concat(t+n,`
40
40
  L `).concat(e+s*h,",").concat(t+n,`
41
- A `).concat(h,",").concat(h,",0,0,").concat(u,",").concat(e,",").concat(t+n-o*h," Z")}else c="M ".concat(e,",").concat(t," h ").concat(r," v ").concat(n," h ").concat(-r," Z");return c},m4={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},y4=e=>{var t=ft(e,m4),r=E.useRef(null),[n,i]=E.useState(-1);E.useEffect(()=>{if(r.current&&r.current.getTotalLength)try{var y=r.current.getTotalLength();y&&i(y)}catch{}},[]);var{x:a,y:o,width:s,height:u,radius:c,className:l}=t,{animationEasing:f,animationDuration:d,animationBegin:h,isAnimationActive:p,isUpdateAnimationActive:m}=t;if(a!==+a||o!==+o||s!==+s||u!==+u||s===0||u===0)return null;var v=G.clsx("recharts-rectangle",l);return m?x.createElement($u,{canBegin:n>0,from:{width:s,height:u,x:a,y:o},to:{width:s,height:u,x:a,y:o},duration:d,animationEasing:f,isActive:m},y=>{var{width:b,height:g,x:w,y:C}=y;return x.createElement($u,{canBegin:n>0,from:"0px ".concat(n===-1?1:n,"px"),to:"".concat(n,"px 0px"),attributeName:"strokeDasharray",begin:h,duration:d,isActive:p,easing:f},x.createElement("path",Zn({},le(t,!0),{className:v,d:Lu(w,C,b,g,c),ref:r})))}):x.createElement("path",Zn({},le(t,!0),{className:v,d:Lu(a,o,s,u,c)}))};function lf(e){var{cx:t,cy:r,radius:n,startAngle:i,endAngle:a}=e,o=xe(t,r,n,i),s=xe(t,r,n,a);return{points:[o,s],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function K0(){return K0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},K0.apply(null,arguments)}var g4=(e,t)=>{var r=Xe(t-e),n=Math.min(Math.abs(t-e),359.999);return r*n},_n=e=>{var{cx:t,cy:r,radius:n,angle:i,sign:a,isExternal:o,cornerRadius:s,cornerIsExternal:u}=e,c=s*(o?1:-1)+n,l=Math.asin(s/c)/Kn,f=u?i:i+a*l,d=xe(t,r,c,f),h=xe(t,r,n,f),p=u?i-a*l:i,m=xe(t,r,c*Math.cos(l*Kn),p);return{center:d,circleTangency:h,lineTangency:m,theta:l}},cf=e=>{var{cx:t,cy:r,innerRadius:n,outerRadius:i,startAngle:a,endAngle:o}=e,s=g4(a,o),u=a+s,c=xe(t,r,i,a),l=xe(t,r,i,u),f="M ".concat(c.x,",").concat(c.y,`
41
+ A `).concat(h,",").concat(h,",0,0,").concat(u,",").concat(e,",").concat(t+n-o*h," Z")}else c="M ".concat(e,",").concat(t," h ").concat(r," v ").concat(n," h ").concat(-r," Z");return c},m4={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},y4=e=>{var t=ft(e,m4),r=E.useRef(null),[n,i]=E.useState(-1);E.useEffect(()=>{if(r.current&&r.current.getTotalLength)try{var y=r.current.getTotalLength();y&&i(y)}catch{}},[]);var{x:a,y:o,width:s,height:u,radius:c,className:l}=t,{animationEasing:f,animationDuration:d,animationBegin:h,isAnimationActive:p,isUpdateAnimationActive:m}=t;if(a!==+a||o!==+o||s!==+s||u!==+u||s===0||u===0)return null;var v=G.clsx("recharts-rectangle",l);return m?x.createElement($u,{canBegin:n>0,from:{width:s,height:u,x:a,y:o},to:{width:s,height:u,x:a,y:o},duration:d,animationEasing:f,isActive:m},y=>{var{width:b,height:g,x:w,y:C}=y;return x.createElement($u,{canBegin:n>0,from:"0px ".concat(n===-1?1:n,"px"),to:"".concat(n,"px 0px"),attributeName:"strokeDasharray",begin:h,duration:d,isActive:p,easing:f},x.createElement("path",Zn({},le(t,!0),{className:v,d:Lu(w,C,b,g,c),ref:r})))}):x.createElement("path",Zn({},le(t,!0),{className:v,d:Lu(a,o,s,u,c)}))};function lf(e){var{cx:t,cy:r,radius:n,startAngle:i,endAngle:a}=e,o=we(t,r,n,i),s=we(t,r,n,a);return{points:[o,s],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function K0(){return K0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},K0.apply(null,arguments)}var g4=(e,t)=>{var r=Xe(t-e),n=Math.min(Math.abs(t-e),359.999);return r*n},_n=e=>{var{cx:t,cy:r,radius:n,angle:i,sign:a,isExternal:o,cornerRadius:s,cornerIsExternal:u}=e,c=s*(o?1:-1)+n,l=Math.asin(s/c)/Kn,f=u?i:i+a*l,d=we(t,r,c,f),h=we(t,r,n,f),p=u?i-a*l:i,m=we(t,r,c*Math.cos(l*Kn),p);return{center:d,circleTangency:h,lineTangency:m,theta:l}},cf=e=>{var{cx:t,cy:r,innerRadius:n,outerRadius:i,startAngle:a,endAngle:o}=e,s=g4(a,o),u=a+s,c=we(t,r,i,a),l=we(t,r,i,u),f="M ".concat(c.x,",").concat(c.y,`
42
42
  A `).concat(i,",").concat(i,`,0,
43
43
  `).concat(+(Math.abs(s)>180),",").concat(+(a>u),`,
44
44
  `).concat(l.x,",").concat(l.y,`
45
- `);if(n>0){var d=xe(t,r,n,a),h=xe(t,r,n,u);f+="L ".concat(h.x,",").concat(h.y,`
45
+ `);if(n>0){var d=we(t,r,n,a),h=we(t,r,n,u);f+="L ".concat(h.x,",").concat(h.y,`
46
46
  A `).concat(n,",").concat(n,`,0,
47
47
  `).concat(+(Math.abs(s)>180),",").concat(+(a<=u),`,
48
48
  `).concat(d.x,",").concat(d.y," Z")}else f+="L ".concat(t,",").concat(r," Z");return f},b4=e=>{var{cx:t,cy:r,innerRadius:n,outerRadius:i,cornerRadius:a,forceCornerRadius:o,cornerIsExternal:s,startAngle:u,endAngle:c}=e,l=Xe(c-u),{circleTangency:f,lineTangency:d,theta:h}=_n({cx:t,cy:r,radius:i,angle:u,sign:l,cornerRadius:a,cornerIsExternal:s}),{circleTangency:p,lineTangency:m,theta:v}=_n({cx:t,cy:r,radius:i,angle:c,sign:-l,cornerRadius:a,cornerIsExternal:s}),y=s?Math.abs(u-c):Math.abs(u-c)-h-v;if(y<0)return o?"M ".concat(d.x,",").concat(d.y,`
@@ -55,13 +55,13 @@ Take a look at the reducer(s) handling this action type: ${h.type}.
55
55
  `);if(n>0){var{circleTangency:g,lineTangency:w,theta:C}=_n({cx:t,cy:r,radius:n,angle:u,sign:l,isExternal:!0,cornerRadius:a,cornerIsExternal:s}),{circleTangency:O,lineTangency:P,theta:_}=_n({cx:t,cy:r,radius:n,angle:c,sign:-l,isExternal:!0,cornerRadius:a,cornerIsExternal:s}),M=s?Math.abs(u-c):Math.abs(u-c)-C-_;if(M<0&&a===0)return"".concat(b,"L").concat(t,",").concat(r,"Z");b+="L".concat(P.x,",").concat(P.y,`
56
56
  A`).concat(a,",").concat(a,",0,0,").concat(+(l<0),",").concat(O.x,",").concat(O.y,`
57
57
  A`).concat(n,",").concat(n,",0,").concat(+(M>180),",").concat(+(l>0),",").concat(g.x,",").concat(g.y,`
58
- A`).concat(a,",").concat(a,",0,0,").concat(+(l<0),",").concat(w.x,",").concat(w.y,"Z")}else b+="L".concat(t,",").concat(r,"Z");return b},C4={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},x4=e=>{var t=ft(e,C4),{cx:r,cy:n,innerRadius:i,outerRadius:a,cornerRadius:o,forceCornerRadius:s,cornerIsExternal:u,startAngle:c,endAngle:l,className:f}=t;if(a<i||c===l)return null;var d=G.clsx("recharts-sector",f),h=a-i,p=It(o,h,0,!0),m;return p>0&&Math.abs(c-l)<360?m=b4({cx:r,cy:n,innerRadius:i,outerRadius:a,cornerRadius:Math.min(p,h/2),forceCornerRadius:s,cornerIsExternal:u,startAngle:c,endAngle:l}):m=cf({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:c,endAngle:l}),x.createElement("path",K0({},le(t,!0),{className:d,d:m}))};function w4(e,t,r){var n,i,a,o;if(e==="horizontal")n=t.x,a=n,i=r.top,o=r.top+r.height;else if(e==="vertical")i=t.y,o=i,n=r.left,a=r.left+r.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var{cx:s,cy:u,innerRadius:c,outerRadius:l,angle:f}=t,d=xe(s,u,c,f),h=xe(s,u,l,f);n=d.x,i=d.y,a=h.x,o=h.y}else return lf(t);return[{x:n,y:i},{x:a,y:o}]}var X2={},Q2={},J2={},Bu;function O4(){return Bu||(Bu=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=vc();function r(n){return t.isSymbol(n)?NaN:Number(n)}e.toNumber=r}(J2)),J2}var Fu;function E4(){return Fu||(Fu=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=O4();function r(n){return n?(n=t.toNumber(n),n===1/0||n===-1/0?(n<0?-1:1)*Number.MAX_VALUE:n===n?n:0):n===0?n:0}e.toFinite=r}(Q2)),Q2}var zu;function P4(){return zu||(zu=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=mc(),r=E4();function n(i,a,o){o&&typeof o!="number"&&t.isIterateeCall(i,a,o)&&(a=o=void 0),i=r.toFinite(i),a===void 0?(a=i,i=0):a=r.toFinite(a),o=o===void 0?i<a?1:-1:r.toFinite(o);const s=Math.max(Math.ceil((a-i)/(o||1)),0),u=new Array(s);for(let c=0;c<s;c++)u[c]=i,i+=o;return u}e.range=n}(X2)),X2}var e0,qu;function A4(){return qu||(qu=1,e0=P4().range),e0}var S4=A4();const ff=S.getDefaultExportFromCjs(S4);function Dt(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function _4(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function $a(e){let t,r,n;e.length!==2?(t=Dt,r=(s,u)=>Dt(e(s),u),n=(s,u)=>e(s)-u):(t=e===Dt||e===_4?e:j4,r=e,n=e);function i(s,u,c=0,l=s.length){if(c<l){if(t(u,u)!==0)return l;do{const f=c+l>>>1;r(s[f],u)<0?c=f+1:l=f}while(c<l)}return c}function a(s,u,c=0,l=s.length){if(c<l){if(t(u,u)!==0)return l;do{const f=c+l>>>1;r(s[f],u)<=0?c=f+1:l=f}while(c<l)}return c}function o(s,u,c=0,l=s.length){const f=i(s,u,c,l-1);return f>c&&n(s[f-1],u)>-n(s[f],u)?f-1:f}return{left:i,center:o,right:a}}function j4(){return 0}function df(e){return e===null?NaN:+e}function*M4(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const T4=$a(Dt),sn=T4.right;$a(df).center;class Wu extends Map{constructor(t,r=N4){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(Uu(this,t))}has(t){return super.has(Uu(this,t))}set(t,r){return super.set(k4(this,t),r)}delete(t){return super.delete(D4(this,t))}}function Uu({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function k4({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function D4({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function N4(e){return e!==null&&typeof e=="object"?e.valueOf():e}function I4(e=Dt){if(e===Dt)return hf;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function hf(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const R4=Math.sqrt(50),$4=Math.sqrt(10),L4=Math.sqrt(2);function Xn(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),o=a>=R4?10:a>=$4?5:a>=L4?2:1;let s,u,c;return i<0?(c=Math.pow(10,-i)/o,s=Math.round(e*c),u=Math.round(t*c),s/c<e&&++s,u/c>t&&--u,c=-c):(c=Math.pow(10,i)*o,s=Math.round(e/c),u=Math.round(t/c),s*c<e&&++s,u*c>t&&--u),u<s&&.5<=r&&r<2?Xn(e,t,r*2):[s,u,c]}function V0(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[i,a,o]=n?Xn(t,e,r):Xn(e,t,r);if(!(a>=i))return[];const s=a-i+1,u=new Array(s);if(n)if(o<0)for(let c=0;c<s;++c)u[c]=(a-c)/-o;else for(let c=0;c<s;++c)u[c]=(a-c)*o;else if(o<0)for(let c=0;c<s;++c)u[c]=(i+c)/-o;else for(let c=0;c<s;++c)u[c]=(i+c)*o;return u}function H0(e,t,r){return t=+t,e=+e,r=+r,Xn(e,t,r)[2]}function G0(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?H0(t,e,r):H0(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function Ku(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function Vu(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function pf(e,t,r=0,n=1/0,i){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=i===void 0?hf:I4(i);n>r;){if(n-r>600){const u=n-r+1,c=t-r+1,l=Math.log(u),f=.5*Math.exp(2*l/3),d=.5*Math.sqrt(l*f*(u-f)/u)*(c-u/2<0?-1:1),h=Math.max(r,Math.floor(t-c*f/u+d)),p=Math.min(n,Math.floor(t+(u-c)*f/u+d));pf(e,t,h,p,i)}const a=e[t];let o=r,s=n;for(Ir(e,r,t),i(e[n],a)>0&&Ir(e,r,n);o<s;){for(Ir(e,o,s),++o,--s;i(e[o],a)<0;)++o;for(;i(e[s],a)>0;)--s}i(e[r],a)===0?Ir(e,r,s):(++s,Ir(e,s,n)),s<=t&&(r=s+1),t<=s&&(n=s-1)}return e}function Ir(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function B4(e,t,r){if(e=Float64Array.from(M4(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return Vu(e);if(t>=1)return Ku(e);var n,i=(n-1)*t,a=Math.floor(i),o=Ku(pf(e,a).subarray(0,a+1)),s=Vu(e.subarray(a+1));return o+(s-o)*(i-a)}}function F4(e,t,r=df){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,a=Math.floor(i),o=+r(e[a],a,e),s=+r(e[a+1],a+1,e);return o+(s-o)*(i-a)}}function z4(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,a=new Array(i);++n<i;)a[n]=e+n*r;return a}function tt(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Pt(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 Y0=Symbol("implicit");function La(){var e=new Wu,t=[],r=[],n=Y0;function i(a){let o=e.get(a);if(o===void 0){if(n!==Y0)return n;e.set(a,o=t.push(a)-1)}return r[o%r.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new Wu;for(const o of a)e.has(o)||e.set(o,t.push(o)-1);return i},i.range=function(a){return arguments.length?(r=Array.from(a),i):r.slice()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return La(t,r).unknown(n)},tt.apply(i,arguments),i}function Ba(){var e=La().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,o,s=!1,u=0,c=0,l=.5;delete e.unknown;function f(){var d=t().length,h=i<n,p=h?i:n,m=h?n:i;a=(m-p)/Math.max(1,d-u+c*2),s&&(a=Math.floor(a)),p+=(m-p-a*(d-u))*l,o=a*(1-u),s&&(p=Math.round(p),o=Math.round(o));var v=z4(d).map(function(y){return p+a*y});return r(h?v.reverse():v)}return e.domain=function(d){return arguments.length?(t(d),f()):t()},e.range=function(d){return arguments.length?([n,i]=d,n=+n,i=+i,f()):[n,i]},e.rangeRound=function(d){return[n,i]=d,n=+n,i=+i,s=!0,f()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(d){return arguments.length?(s=!!d,f()):s},e.padding=function(d){return arguments.length?(u=Math.min(1,c=+d),f()):u},e.paddingInner=function(d){return arguments.length?(u=Math.min(1,d),f()):u},e.paddingOuter=function(d){return arguments.length?(c=+d,f()):c},e.align=function(d){return arguments.length?(l=Math.max(0,Math.min(1,d)),f()):l},e.copy=function(){return Ba(t(),[n,i]).round(s).paddingInner(u).paddingOuter(c).align(l)},tt.apply(f(),arguments)}function vf(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return vf(t())},e}function q4(){return vf(Ba.apply(null,arguments).paddingInner(1))}function Fa(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function mf(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function un(){}var Yr=.7,Qn=1/Yr,mr="\\s*([+-]?\\d+)\\s*",Zr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",st="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",W4=/^#([0-9a-f]{3,8})$/,U4=new RegExp(`^rgb\\(${mr},${mr},${mr}\\)$`),K4=new RegExp(`^rgb\\(${st},${st},${st}\\)$`),V4=new RegExp(`^rgba\\(${mr},${mr},${mr},${Zr}\\)$`),H4=new RegExp(`^rgba\\(${st},${st},${st},${Zr}\\)$`),G4=new RegExp(`^hsl\\(${Zr},${st},${st}\\)$`),Y4=new RegExp(`^hsla\\(${Zr},${st},${st},${Zr}\\)$`),Hu={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};Fa(un,Xr,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Gu,formatHex:Gu,formatHex8:Z4,formatHsl:X4,formatRgb:Yu,toString:Yu});function Gu(){return this.rgb().formatHex()}function Z4(){return this.rgb().formatHex8()}function X4(){return yf(this).formatHsl()}function Yu(){return this.rgb().formatRgb()}function Xr(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=W4.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?Zu(t):r===3?new Ne(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?jn(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?jn(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=U4.exec(e))?new Ne(t[1],t[2],t[3],1):(t=K4.exec(e))?new Ne(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=V4.exec(e))?jn(t[1],t[2],t[3],t[4]):(t=H4.exec(e))?jn(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=G4.exec(e))?Ju(t[1],t[2]/100,t[3]/100,1):(t=Y4.exec(e))?Ju(t[1],t[2]/100,t[3]/100,t[4]):Hu.hasOwnProperty(e)?Zu(Hu[e]):e==="transparent"?new Ne(NaN,NaN,NaN,0):null}function Zu(e){return new Ne(e>>16&255,e>>8&255,e&255,1)}function jn(e,t,r,n){return n<=0&&(e=t=r=NaN),new Ne(e,t,r,n)}function Q4(e){return e instanceof un||(e=Xr(e)),e?(e=e.rgb(),new Ne(e.r,e.g,e.b,e.opacity)):new Ne}function Z0(e,t,r,n){return arguments.length===1?Q4(e):new Ne(e,t,r,n??1)}function Ne(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}Fa(Ne,Z0,mf(un,{brighter(e){return e=e==null?Qn:Math.pow(Qn,e),new Ne(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Yr:Math.pow(Yr,e),new Ne(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ne(rr(this.r),rr(this.g),rr(this.b),Jn(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:Xu,formatHex:Xu,formatHex8:J4,formatRgb:Qu,toString:Qu}));function Xu(){return`#${Yt(this.r)}${Yt(this.g)}${Yt(this.b)}`}function J4(){return`#${Yt(this.r)}${Yt(this.g)}${Yt(this.b)}${Yt((isNaN(this.opacity)?1:this.opacity)*255)}`}function Qu(){const e=Jn(this.opacity);return`${e===1?"rgb(":"rgba("}${rr(this.r)}, ${rr(this.g)}, ${rr(this.b)}${e===1?")":`, ${e})`}`}function Jn(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function rr(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Yt(e){return e=rr(e),(e<16?"0":"")+e.toString(16)}function Ju(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new it(e,t,r,n)}function yf(e){if(e instanceof it)return new it(e.h,e.s,e.l,e.opacity);if(e instanceof un||(e=Xr(e)),!e)return new it;if(e instanceof it)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,s=a-i,u=(a+i)/2;return s?(t===a?o=(r-n)/s+(r<n)*6:r===a?o=(n-t)/s+2:o=(t-r)/s+4,s/=u<.5?a+i:2-a-i,o*=60):s=u>0&&u<1?0:o,new it(o,s,u,e.opacity)}function e5(e,t,r,n){return arguments.length===1?yf(e):new it(e,t,r,n??1)}function it(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Fa(it,e5,mf(un,{brighter(e){return e=e==null?Qn:Math.pow(Qn,e),new it(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Yr:Math.pow(Yr,e),new it(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,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new Ne(t0(e>=240?e-240:e+120,i,n),t0(e,i,n),t0(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new it(el(this.h),Mn(this.s),Mn(this.l),Jn(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=Jn(this.opacity);return`${e===1?"hsl(":"hsla("}${el(this.h)}, ${Mn(this.s)*100}%, ${Mn(this.l)*100}%${e===1?")":`, ${e})`}`}}));function el(e){return e=(e||0)%360,e<0?e+360:e}function Mn(e){return Math.max(0,Math.min(1,e||0))}function t0(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 za=e=>()=>e;function t5(e,t){return function(r){return e+r*t}}function r5(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function n5(e){return(e=+e)==1?gf:function(t,r){return r-t?r5(t,r,e):za(isNaN(t)?r:t)}}function gf(e,t){var r=t-e;return r?t5(e,r):za(isNaN(e)?t:e)}const tl=function e(t){var r=n5(t);function n(i,a){var o=r((i=Z0(i)).r,(a=Z0(a)).r),s=r(i.g,a.g),u=r(i.b,a.b),c=gf(i.opacity,a.opacity);return function(l){return i.r=o(l),i.g=s(l),i.b=u(l),i.opacity=c(l),i+""}}return n.gamma=e,n}(1);function i5(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i<r;++i)n[i]=e[i]*(1-a)+t[i]*a;return n}}function a5(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function o5(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),o;for(o=0;o<n;++o)i[o]=Er(e[o],t[o]);for(;o<r;++o)a[o]=t[o];return function(s){for(o=0;o<n;++o)a[o]=i[o](s);return a}}function s5(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function ei(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function u5(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=Er(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var X0=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,r0=new RegExp(X0.source,"g");function l5(e){return function(){return e}}function c5(e){return function(t){return e(t)+""}}function f5(e,t){var r=X0.lastIndex=r0.lastIndex=0,n,i,a,o=-1,s=[],u=[];for(e=e+"",t=t+"";(n=X0.exec(e))&&(i=r0.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),s[o]?s[o]+=a:s[++o]=a),(n=n[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,u.push({i:o,x:ei(n,i)})),r=r0.lastIndex;return r<t.length&&(a=t.slice(r),s[o]?s[o]+=a:s[++o]=a),s.length<2?u[0]?c5(u[0].x):l5(t):(t=u.length,function(c){for(var l=0,f;l<t;++l)s[(f=u[l]).i]=f.x(c);return s.join("")})}function Er(e,t){var r=typeof t,n;return t==null||r==="boolean"?za(t):(r==="number"?ei:r==="string"?(n=Xr(t))?(t=n,tl):f5:t instanceof Xr?tl:t instanceof Date?s5:a5(t)?i5:Array.isArray(t)?o5:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?u5:ei)(e,t)}function qa(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function d5(e,t){t===void 0&&(t=e,e=Er);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r<n;)a[r]=e(i,i=t[++r]);return function(o){var s=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return a[s](o-s)}}function h5(e){return function(){return e}}function ti(e){return+e}var rl=[0,1];function _e(e){return e}function Q0(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:h5(isNaN(t)?NaN:.5)}function p5(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function v5(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=Q0(i,n),a=r(o,a)):(n=Q0(n,i),a=r(a,o)),function(s){return a(n(s))}}function m5(e,t,r){var n=Math.min(e.length,t.length)-1,i=new Array(n),a=new Array(n),o=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<n;)i[o]=Q0(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(s){var u=sn(e,s,1,n)-1;return a[u](i[u](s))}}function ln(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function ji(){var e=rl,t=rl,r=Er,n,i,a,o=_e,s,u,c;function l(){var d=Math.min(e.length,t.length);return o!==_e&&(o=p5(e[0],e[d-1])),s=d>2?m5:v5,u=c=null,f}function f(d){return d==null||isNaN(d=+d)?a:(u||(u=s(e.map(n),t,r)))(n(o(d)))}return f.invert=function(d){return o(i((c||(c=s(t,e.map(n),ei)))(d)))},f.domain=function(d){return arguments.length?(e=Array.from(d,ti),l()):e.slice()},f.range=function(d){return arguments.length?(t=Array.from(d),l()):t.slice()},f.rangeRound=function(d){return t=Array.from(d),r=qa,l()},f.clamp=function(d){return arguments.length?(o=d?!0:_e,l()):o!==_e},f.interpolate=function(d){return arguments.length?(r=d,l()):r},f.unknown=function(d){return arguments.length?(a=d,f):a},function(d,h){return n=d,i=h,l()}}function Wa(){return ji()(_e,_e)}function y5(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function ri(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function br(e){return e=ri(Math.abs(e)),e?e[1]:NaN}function g5(e,t){return function(r,n){for(var i=r.length,a=[],o=0,s=e[0],u=0;i>0&&s>0&&(u+s+1>n&&(s=Math.max(1,n-u)),a.push(r.substring(i-=s,i+s)),!((u+=s+1)>n));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function b5(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var C5=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Qr(e){if(!(t=C5.exec(e)))throw new Error("invalid format: "+e);var t;return new Ua({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]})}Qr.prototype=Ua.prototype;function Ua(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+""}Ua.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 x5(e){e:for(var t=e.length,r=1,n=-1,i;r<t;++r)switch(e[r]){case".":n=i=r;break;case"0":n===0&&(n=r),i=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var bf;function w5(e,t){var r=ri(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(bf=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=n.length;return a===o?n:a>o?n+new Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+ri(e,Math.max(0,t+a-1))[0]}function nl(e,t){var r=ri(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const il={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:y5,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)=>nl(e*100,t),r:nl,s:w5,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function al(e){return e}var ol=Array.prototype.map,sl=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function O5(e){var t=e.grouping===void 0||e.thousands===void 0?al:g5(ol.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?al:b5(ol.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",u=e.nan===void 0?"NaN":e.nan+"";function c(f){f=Qr(f);var d=f.fill,h=f.align,p=f.sign,m=f.symbol,v=f.zero,y=f.width,b=f.comma,g=f.precision,w=f.trim,C=f.type;C==="n"?(b=!0,C="g"):il[C]||(g===void 0&&(g=12),w=!0,C="g"),(v||d==="0"&&h==="=")&&(v=!0,d="0",h="=");var O=m==="$"?r:m==="#"&&/[boxX]/.test(C)?"0"+C.toLowerCase():"",P=m==="$"?n:/[%p]/.test(C)?o:"",_=il[C],M=/[defgprs%]/.test(C);g=g===void 0?6:/[gprs]/.test(C)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g));function z(T){var k=O,W=P,K,te,Y;if(C==="c")W=_(T)+W,T="";else{T=+T;var B=T<0||1/T<0;if(T=isNaN(T)?u:_(Math.abs(T),g),w&&(T=x5(T)),B&&+T==0&&p!=="+"&&(B=!1),k=(B?p==="("?p:s:p==="-"||p==="("?"":p)+k,W=(C==="s"?sl[8+bf/3]:"")+W+(B&&p==="("?")":""),M){for(K=-1,te=T.length;++K<te;)if(Y=T.charCodeAt(K),48>Y||Y>57){W=(Y===46?i+T.slice(K+1):T.slice(K))+W,T=T.slice(0,K);break}}}b&&!v&&(T=t(T,1/0));var q=k.length+T.length+W.length,R=q<y?new Array(y-q+1).join(d):"";switch(b&&v&&(T=t(R+T,R.length?y-W.length:1/0),R=""),h){case"<":T=k+T+W+R;break;case"=":T=k+R+T+W;break;case"^":T=R.slice(0,q=R.length>>1)+k+T+W+R.slice(q);break;default:T=R+k+T+W;break}return a(T)}return z.toString=function(){return f+""},z}function l(f,d){var h=c((f=Qr(f),f.type="f",f)),p=Math.max(-8,Math.min(8,Math.floor(br(d)/3)))*3,m=Math.pow(10,-p),v=sl[8+p/3];return function(y){return h(m*y)+v}}return{format:c,formatPrefix:l}}var Tn,Ka,Cf;E5({thousands:",",grouping:[3],currency:["$",""]});function E5(e){return Tn=O5(e),Ka=Tn.format,Cf=Tn.formatPrefix,Tn}function P5(e){return Math.max(0,-br(Math.abs(e)))}function A5(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(br(t)/3)))*3-br(Math.abs(e)))}function S5(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,br(t)-br(e))+1}function xf(e,t,r,n){var i=G0(e,t,r),a;switch(n=Qr(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=A5(i,o))&&(n.precision=a),Cf(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=S5(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=P5(i))&&(n.precision=a-(n.type==="%")*2);break}}return Ka(n)}function $t(e){var t=e.domain;return e.ticks=function(r){var n=t();return V0(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return xf(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,a=n.length-1,o=n[i],s=n[a],u,c,l=10;for(s<o&&(c=o,o=s,s=c,c=i,i=a,a=c);l-- >0;){if(c=H0(o,s,r),c===u)return n[i]=o,n[a]=s,t(n);if(c>0)o=Math.floor(o/c)*c,s=Math.ceil(s/c)*c;else if(c<0)o=Math.ceil(o*c)/c,s=Math.floor(s*c)/c;else break;u=c}return e},e}function wf(){var e=Wa();return e.copy=function(){return ln(e,wf())},tt.apply(e,arguments),$t(e)}function Of(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,ti),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return Of(e).unknown(t)},e=arguments.length?Array.from(e,ti):[0,1],$t(r)}function Ef(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],a=e[n],o;return a<i&&(o=r,r=n,n=o,o=i,i=a,a=o),e[r]=t.floor(i),e[n]=t.ceil(a),e}function ul(e){return Math.log(e)}function ll(e){return Math.exp(e)}function _5(e){return-Math.log(-e)}function j5(e){return-Math.exp(-e)}function M5(e){return isFinite(e)?+("1e"+e):e<0?0:e}function T5(e){return e===10?M5:e===Math.E?Math.exp:t=>Math.pow(e,t)}function k5(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 cl(e){return(t,r)=>-e(-t,r)}function Va(e){const t=e(ul,ll),r=t.domain;let n=10,i,a;function o(){return i=k5(n),a=T5(n),r()[0]<0?(i=cl(i),a=cl(a),e(_5,j5)):e(ul,ll),t}return t.base=function(s){return arguments.length?(n=+s,o()):n},t.domain=function(s){return arguments.length?(r(s),o()):r()},t.ticks=s=>{const u=r();let c=u[0],l=u[u.length-1];const f=l<c;f&&([c,l]=[l,c]);let d=i(c),h=i(l),p,m;const v=s==null?10:+s;let y=[];if(!(n%1)&&h-d<v){if(d=Math.floor(d),h=Math.ceil(h),c>0){for(;d<=h;++d)for(p=1;p<n;++p)if(m=d<0?p/a(-d):p*a(d),!(m<c)){if(m>l)break;y.push(m)}}else for(;d<=h;++d)for(p=n-1;p>=1;--p)if(m=d>0?p/a(-d):p*a(d),!(m<c)){if(m>l)break;y.push(m)}y.length*2<v&&(y=V0(c,l,v))}else y=V0(d,h,Math.min(h-d,v)).map(a);return f?y.reverse():y},t.tickFormat=(s,u)=>{if(s==null&&(s=10),u==null&&(u=n===10?"s":","),typeof u!="function"&&(!(n%1)&&(u=Qr(u)).precision==null&&(u.trim=!0),u=Ka(u)),s===1/0)return u;const c=Math.max(1,n*s/t.ticks().length);return l=>{let f=l/a(Math.round(i(l)));return f*n<n-.5&&(f*=n),f<=c?u(l):""}},t.nice=()=>r(Ef(r(),{floor:s=>a(Math.floor(i(s))),ceil:s=>a(Math.ceil(i(s)))})),t}function Pf(){const e=Va(ji()).domain([1,10]);return e.copy=()=>ln(e,Pf()).base(e.base()),tt.apply(e,arguments),e}function fl(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function dl(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Ha(e){var t=1,r=e(fl(t),dl(t));return r.constant=function(n){return arguments.length?e(fl(t=+n),dl(t)):t},$t(r)}function Af(){var e=Ha(ji());return e.copy=function(){return ln(e,Af()).constant(e.constant())},tt.apply(e,arguments)}function hl(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function D5(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function N5(e){return e<0?-e*e:e*e}function Ga(e){var t=e(_e,_e),r=1;function n(){return r===1?e(_e,_e):r===.5?e(D5,N5):e(hl(r),hl(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},$t(t)}function Ya(){var e=Ga(ji());return e.copy=function(){return ln(e,Ya()).exponent(e.exponent())},tt.apply(e,arguments),e}function I5(){return Ya.apply(null,arguments).exponent(.5)}function pl(e){return Math.sign(e)*e*e}function R5(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function Sf(){var e=Wa(),t=[0,1],r=!1,n;function i(a){var o=R5(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(pl(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,ti)).map(pl)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(r=!!a,i):r},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return Sf(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},tt.apply(i,arguments),$t(i)}function _f(){var e=[],t=[],r=[],n;function i(){var o=0,s=Math.max(1,t.length);for(r=new Array(s-1);++o<s;)r[o-1]=F4(e,o/s);return a}function a(o){return o==null||isNaN(o=+o)?n:t[sn(r,o)]}return a.invertExtent=function(o){var s=t.indexOf(o);return s<0?[NaN,NaN]:[s>0?r[s-1]:e[0],s<r.length?r[s]:e[e.length-1]]},a.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let s of o)s!=null&&!isNaN(s=+s)&&e.push(s);return e.sort(Dt),i()},a.range=function(o){return arguments.length?(t=Array.from(o),i()):t.slice()},a.unknown=function(o){return arguments.length?(n=o,a):n},a.quantiles=function(){return r.slice()},a.copy=function(){return _f().domain(e).range(t).unknown(n)},tt.apply(a,arguments)}function jf(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(u){return u!=null&&u<=u?i[sn(n,u,0,r)]:a}function s(){var u=-1;for(n=new Array(r);++u<r;)n[u]=((u+1)*t-(u-r)*e)/(r+1);return o}return o.domain=function(u){return arguments.length?([e,t]=u,e=+e,t=+t,s()):[e,t]},o.range=function(u){return arguments.length?(r=(i=Array.from(u)).length-1,s()):i.slice()},o.invertExtent=function(u){var c=i.indexOf(u);return c<0?[NaN,NaN]:c<1?[e,n[0]]:c>=r?[n[r-1],t]:[n[c-1],n[c]]},o.unknown=function(u){return arguments.length&&(a=u),o},o.thresholds=function(){return n.slice()},o.copy=function(){return jf().domain([e,t]).range(i).unknown(a)},tt.apply($t(o),arguments)}function Mf(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[sn(e,a,0,n)]:r}return i.domain=function(a){return arguments.length?(e=Array.from(a),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),n=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return Mf().domain(e).range(t).unknown(r)},tt.apply(i,arguments)}const n0=new Date,i0=new Date;function he(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),s=i.ceil(a);return a-o<s-a?o:s},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,s)=>{const u=[];if(a=i.ceil(a),s=s==null?1:Math.floor(s),!(a<o)||!(s>0))return u;let c;do u.push(c=new Date(+a)),t(a,s),e(a);while(c<a&&a<o);return u},i.filter=a=>he(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!a(o););else for(;--s>=0;)for(;t(o,1),!a(o););}),r&&(i.count=(a,o)=>(n0.setTime(+a),i0.setTime(+o),e(n0),e(i0),Math.floor(r(n0,i0))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?o=>n(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const ni=he(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);ni.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?he(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):ni);ni.range;const pt=1e3,Qe=pt*60,vt=Qe*60,Ct=vt*24,Za=Ct*7,vl=Ct*30,a0=Ct*365,Zt=he(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*pt)},(e,t)=>(t-e)/pt,e=>e.getUTCSeconds());Zt.range;const Xa=he(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*pt)},(e,t)=>{e.setTime(+e+t*Qe)},(e,t)=>(t-e)/Qe,e=>e.getMinutes());Xa.range;const Qa=he(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Qe)},(e,t)=>(t-e)/Qe,e=>e.getUTCMinutes());Qa.range;const Ja=he(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*pt-e.getMinutes()*Qe)},(e,t)=>{e.setTime(+e+t*vt)},(e,t)=>(t-e)/vt,e=>e.getHours());Ja.range;const eo=he(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*vt)},(e,t)=>(t-e)/vt,e=>e.getUTCHours());eo.range;const cn=he(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Qe)/Ct,e=>e.getDate()-1);cn.range;const Mi=he(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Ct,e=>e.getUTCDate()-1);Mi.range;const Tf=he(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Ct,e=>Math.floor(e/Ct));Tf.range;function lr(e){return he(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())*Qe)/Za)}const Ti=lr(0),ii=lr(1),$5=lr(2),L5=lr(3),Cr=lr(4),B5=lr(5),F5=lr(6);Ti.range;ii.range;$5.range;L5.range;Cr.range;B5.range;F5.range;function cr(e){return he(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)/Za)}const ki=cr(0),ai=cr(1),z5=cr(2),q5=cr(3),xr=cr(4),W5=cr(5),U5=cr(6);ki.range;ai.range;z5.range;q5.range;xr.range;W5.range;U5.range;const to=he(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());to.range;const ro=he(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());ro.range;const xt=he(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());xt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:he(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)});xt.range;const wt=he(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());wt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:he(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)});wt.range;function kf(e,t,r,n,i,a){const o=[[Zt,1,pt],[Zt,5,5*pt],[Zt,15,15*pt],[Zt,30,30*pt],[a,1,Qe],[a,5,5*Qe],[a,15,15*Qe],[a,30,30*Qe],[i,1,vt],[i,3,3*vt],[i,6,6*vt],[i,12,12*vt],[n,1,Ct],[n,2,2*Ct],[r,1,Za],[t,1,vl],[t,3,3*vl],[e,1,a0]];function s(c,l,f){const d=l<c;d&&([c,l]=[l,c]);const h=f&&typeof f.range=="function"?f:u(c,l,f),p=h?h.range(c,+l+1):[];return d?p.reverse():p}function u(c,l,f){const d=Math.abs(l-c)/f,h=$a(([,,v])=>v).right(o,d);if(h===o.length)return e.every(G0(c/a0,l/a0,f));if(h===0)return ni.every(Math.max(G0(c,l,f),1));const[p,m]=o[d/o[h-1][2]<o[h][2]/d?h-1:h];return p.every(m)}return[s,u]}const[K5,V5]=kf(wt,ro,ki,Tf,eo,Qa),[H5,G5]=kf(xt,to,Ti,cn,Ja,Xa);function o0(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 s0(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 Rr(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function Y5(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,u=e.shortMonths,c=$r(i),l=Lr(i),f=$r(a),d=Lr(a),h=$r(o),p=Lr(o),m=$r(s),v=Lr(s),y=$r(u),b=Lr(u),g={a:B,A:q,b:R,B:L,c:null,d:xl,e:xl,f:gp,g:_p,G:Mp,H:vp,I:mp,j:yp,L:Df,m:bp,M:Cp,p:se,q:$,Q:El,s:Pl,S:xp,u:wp,U:Op,V:Ep,w:Pp,W:Ap,x:null,X:null,y:Sp,Y:jp,Z:Tp,"%":Ol},w={a:Ee,A:Ge,b:ne,B:me,c:null,d:wl,e:wl,f:Ip,g:Kp,G:Hp,H:kp,I:Dp,j:Np,L:If,m:Rp,M:$p,p:Pe,q:qt,Q:El,s:Pl,S:Lp,u:Bp,U:Fp,V:zp,w:qp,W:Wp,x:null,X:null,y:Up,Y:Vp,Z:Gp,"%":Ol},C={a:z,A:T,b:k,B:W,c:K,d:bl,e:bl,f:fp,g:gl,G:yl,H:Cl,I:Cl,j:sp,L:cp,m:op,M:up,p:M,q:ap,Q:hp,s:pp,S:lp,u:ep,U:tp,V:rp,w:J5,W:np,x:te,X:Y,y:gl,Y:yl,Z:ip,"%":dp};g.x=O(r,g),g.X=O(n,g),g.c=O(t,g),w.x=O(r,w),w.X=O(n,w),w.c=O(t,w);function O(I,U){return function(V){var j=[],Te=-1,ee=0,$e=I.length,Le,Wt,Yo;for(V instanceof Date||(V=new Date(+V));++Te<$e;)I.charCodeAt(Te)===37&&(j.push(I.slice(ee,Te)),(Wt=ml[Le=I.charAt(++Te)])!=null?Le=I.charAt(++Te):Wt=Le==="e"?" ":"0",(Yo=U[Le])&&(Le=Yo(V,Wt)),j.push(Le),ee=Te+1);return j.push(I.slice(ee,Te)),j.join("")}}function P(I,U){return function(V){var j=Rr(1900,void 0,1),Te=_(j,I,V+="",0),ee,$e;if(Te!=V.length)return null;if("Q"in j)return new Date(j.Q);if("s"in j)return new Date(j.s*1e3+("L"in j?j.L:0));if(U&&!("Z"in j)&&(j.Z=0),"p"in j&&(j.H=j.H%12+j.p*12),j.m===void 0&&(j.m="q"in j?j.q:0),"V"in j){if(j.V<1||j.V>53)return null;"w"in j||(j.w=1),"Z"in j?(ee=s0(Rr(j.y,0,1)),$e=ee.getUTCDay(),ee=$e>4||$e===0?ai.ceil(ee):ai(ee),ee=Mi.offset(ee,(j.V-1)*7),j.y=ee.getUTCFullYear(),j.m=ee.getUTCMonth(),j.d=ee.getUTCDate()+(j.w+6)%7):(ee=o0(Rr(j.y,0,1)),$e=ee.getDay(),ee=$e>4||$e===0?ii.ceil(ee):ii(ee),ee=cn.offset(ee,(j.V-1)*7),j.y=ee.getFullYear(),j.m=ee.getMonth(),j.d=ee.getDate()+(j.w+6)%7)}else("W"in j||"U"in j)&&("w"in j||(j.w="u"in j?j.u%7:"W"in j?1:0),$e="Z"in j?s0(Rr(j.y,0,1)).getUTCDay():o0(Rr(j.y,0,1)).getDay(),j.m=0,j.d="W"in j?(j.w+6)%7+j.W*7-($e+5)%7:j.w+j.U*7-($e+6)%7);return"Z"in j?(j.H+=j.Z/100|0,j.M+=j.Z%100,s0(j)):o0(j)}}function _(I,U,V,j){for(var Te=0,ee=U.length,$e=V.length,Le,Wt;Te<ee;){if(j>=$e)return-1;if(Le=U.charCodeAt(Te++),Le===37){if(Le=U.charAt(Te++),Wt=C[Le in ml?U.charAt(Te++):Le],!Wt||(j=Wt(I,V,j))<0)return-1}else if(Le!=V.charCodeAt(j++))return-1}return j}function M(I,U,V){var j=c.exec(U.slice(V));return j?(I.p=l.get(j[0].toLowerCase()),V+j[0].length):-1}function z(I,U,V){var j=h.exec(U.slice(V));return j?(I.w=p.get(j[0].toLowerCase()),V+j[0].length):-1}function T(I,U,V){var j=f.exec(U.slice(V));return j?(I.w=d.get(j[0].toLowerCase()),V+j[0].length):-1}function k(I,U,V){var j=y.exec(U.slice(V));return j?(I.m=b.get(j[0].toLowerCase()),V+j[0].length):-1}function W(I,U,V){var j=m.exec(U.slice(V));return j?(I.m=v.get(j[0].toLowerCase()),V+j[0].length):-1}function K(I,U,V){return _(I,t,U,V)}function te(I,U,V){return _(I,r,U,V)}function Y(I,U,V){return _(I,n,U,V)}function B(I){return o[I.getDay()]}function q(I){return a[I.getDay()]}function R(I){return u[I.getMonth()]}function L(I){return s[I.getMonth()]}function se(I){return i[+(I.getHours()>=12)]}function $(I){return 1+~~(I.getMonth()/3)}function Ee(I){return o[I.getUTCDay()]}function Ge(I){return a[I.getUTCDay()]}function ne(I){return u[I.getUTCMonth()]}function me(I){return s[I.getUTCMonth()]}function Pe(I){return i[+(I.getUTCHours()>=12)]}function qt(I){return 1+~~(I.getUTCMonth()/3)}return{format:function(I){var U=O(I+="",g);return U.toString=function(){return I},U},parse:function(I){var U=P(I+="",!1);return U.toString=function(){return I},U},utcFormat:function(I){var U=O(I+="",w);return U.toString=function(){return I},U},utcParse:function(I){var U=P(I+="",!0);return U.toString=function(){return I},U}}}var ml={"-":"",_:" ",0:"0"},ge=/^\s*\d+/,Z5=/^%/,X5=/[\\^$*+?|[\]().{}]/g;function H(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a<r?new Array(r-a+1).join(t)+i:i)}function Q5(e){return e.replace(X5,"\\$&")}function $r(e){return new RegExp("^(?:"+e.map(Q5).join("|")+")","i")}function Lr(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function J5(e,t,r){var n=ge.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function ep(e,t,r){var n=ge.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function tp(e,t,r){var n=ge.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function rp(e,t,r){var n=ge.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function np(e,t,r){var n=ge.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function yl(e,t,r){var n=ge.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function gl(e,t,r){var n=ge.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function ip(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function ap(e,t,r){var n=ge.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function op(e,t,r){var n=ge.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function bl(e,t,r){var n=ge.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function sp(e,t,r){var n=ge.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function Cl(e,t,r){var n=ge.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function up(e,t,r){var n=ge.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function lp(e,t,r){var n=ge.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function cp(e,t,r){var n=ge.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function fp(e,t,r){var n=ge.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function dp(e,t,r){var n=Z5.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function hp(e,t,r){var n=ge.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function pp(e,t,r){var n=ge.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function xl(e,t){return H(e.getDate(),t,2)}function vp(e,t){return H(e.getHours(),t,2)}function mp(e,t){return H(e.getHours()%12||12,t,2)}function yp(e,t){return H(1+cn.count(xt(e),e),t,3)}function Df(e,t){return H(e.getMilliseconds(),t,3)}function gp(e,t){return Df(e,t)+"000"}function bp(e,t){return H(e.getMonth()+1,t,2)}function Cp(e,t){return H(e.getMinutes(),t,2)}function xp(e,t){return H(e.getSeconds(),t,2)}function wp(e){var t=e.getDay();return t===0?7:t}function Op(e,t){return H(Ti.count(xt(e)-1,e),t,2)}function Nf(e){var t=e.getDay();return t>=4||t===0?Cr(e):Cr.ceil(e)}function Ep(e,t){return e=Nf(e),H(Cr.count(xt(e),e)+(xt(e).getDay()===4),t,2)}function Pp(e){return e.getDay()}function Ap(e,t){return H(ii.count(xt(e)-1,e),t,2)}function Sp(e,t){return H(e.getFullYear()%100,t,2)}function _p(e,t){return e=Nf(e),H(e.getFullYear()%100,t,2)}function jp(e,t){return H(e.getFullYear()%1e4,t,4)}function Mp(e,t){var r=e.getDay();return e=r>=4||r===0?Cr(e):Cr.ceil(e),H(e.getFullYear()%1e4,t,4)}function Tp(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+H(t/60|0,"0",2)+H(t%60,"0",2)}function wl(e,t){return H(e.getUTCDate(),t,2)}function kp(e,t){return H(e.getUTCHours(),t,2)}function Dp(e,t){return H(e.getUTCHours()%12||12,t,2)}function Np(e,t){return H(1+Mi.count(wt(e),e),t,3)}function If(e,t){return H(e.getUTCMilliseconds(),t,3)}function Ip(e,t){return If(e,t)+"000"}function Rp(e,t){return H(e.getUTCMonth()+1,t,2)}function $p(e,t){return H(e.getUTCMinutes(),t,2)}function Lp(e,t){return H(e.getUTCSeconds(),t,2)}function Bp(e){var t=e.getUTCDay();return t===0?7:t}function Fp(e,t){return H(ki.count(wt(e)-1,e),t,2)}function Rf(e){var t=e.getUTCDay();return t>=4||t===0?xr(e):xr.ceil(e)}function zp(e,t){return e=Rf(e),H(xr.count(wt(e),e)+(wt(e).getUTCDay()===4),t,2)}function qp(e){return e.getUTCDay()}function Wp(e,t){return H(ai.count(wt(e)-1,e),t,2)}function Up(e,t){return H(e.getUTCFullYear()%100,t,2)}function Kp(e,t){return e=Rf(e),H(e.getUTCFullYear()%100,t,2)}function Vp(e,t){return H(e.getUTCFullYear()%1e4,t,4)}function Hp(e,t){var r=e.getUTCDay();return e=r>=4||r===0?xr(e):xr.ceil(e),H(e.getUTCFullYear()%1e4,t,4)}function Gp(){return"+0000"}function Ol(){return"%"}function El(e){return+e}function Pl(e){return Math.floor(+e/1e3)}var dr,$f,Lf;Yp({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 Yp(e){return dr=Y5(e),$f=dr.format,dr.parse,Lf=dr.utcFormat,dr.utcParse,dr}function Zp(e){return new Date(e)}function Xp(e){return e instanceof Date?+e:+new Date(+e)}function no(e,t,r,n,i,a,o,s,u,c){var l=Wa(),f=l.invert,d=l.domain,h=c(".%L"),p=c(":%S"),m=c("%I:%M"),v=c("%I %p"),y=c("%a %d"),b=c("%b %d"),g=c("%B"),w=c("%Y");function C(O){return(u(O)<O?h:s(O)<O?p:o(O)<O?m:a(O)<O?v:n(O)<O?i(O)<O?y:b:r(O)<O?g:w)(O)}return l.invert=function(O){return new Date(f(O))},l.domain=function(O){return arguments.length?d(Array.from(O,Xp)):d().map(Zp)},l.ticks=function(O){var P=d();return e(P[0],P[P.length-1],O??10)},l.tickFormat=function(O,P){return P==null?C:c(P)},l.nice=function(O){var P=d();return(!O||typeof O.range!="function")&&(O=t(P[0],P[P.length-1],O??10)),O?d(Ef(P,O)):l},l.copy=function(){return ln(l,no(e,t,r,n,i,a,o,s,u,c))},l}function Qp(){return tt.apply(no(H5,G5,xt,to,Ti,cn,Ja,Xa,Zt,$f).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Jp(){return tt.apply(no(K5,V5,wt,ro,ki,Mi,eo,Qa,Zt,Lf).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Di(){var e=0,t=1,r,n,i,a,o=_e,s=!1,u;function c(f){return f==null||isNaN(f=+f)?u:o(i===0?.5:(f=(a(f)-r)*i,s?Math.max(0,Math.min(1,f)):f))}c.domain=function(f){return arguments.length?([e,t]=f,r=a(e=+e),n=a(t=+t),i=r===n?0:1/(n-r),c):[e,t]},c.clamp=function(f){return arguments.length?(s=!!f,c):s},c.interpolator=function(f){return arguments.length?(o=f,c):o};function l(f){return function(d){var h,p;return arguments.length?([h,p]=d,o=f(h,p),c):[o(0),o(1)]}}return c.range=l(Er),c.rangeRound=l(qa),c.unknown=function(f){return arguments.length?(u=f,c):u},function(f){return a=f,r=f(e),n=f(t),i=r===n?0:1/(n-r),c}}function Lt(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function Bf(){var e=$t(Di()(_e));return e.copy=function(){return Lt(e,Bf())},Pt.apply(e,arguments)}function Ff(){var e=Va(Di()).domain([1,10]);return e.copy=function(){return Lt(e,Ff()).base(e.base())},Pt.apply(e,arguments)}function zf(){var e=Ha(Di());return e.copy=function(){return Lt(e,zf()).constant(e.constant())},Pt.apply(e,arguments)}function io(){var e=Ga(Di());return e.copy=function(){return Lt(e,io()).exponent(e.exponent())},Pt.apply(e,arguments)}function ev(){return io.apply(null,arguments).exponent(.5)}function qf(){var e=[],t=_e;function r(n){if(n!=null&&!isNaN(n=+n))return t((sn(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let i of n)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(Dt),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,i)=>t(i/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,a)=>B4(e,a/n))},r.copy=function(){return qf(t).domain(e)},Pt.apply(r,arguments)}function Ni(){var e=0,t=.5,r=1,n=1,i,a,o,s,u,c=_e,l,f=!1,d;function h(m){return isNaN(m=+m)?d:(m=.5+((m=+l(m))-a)*(n*m<n*a?s:u),c(f?Math.max(0,Math.min(1,m)):m))}h.domain=function(m){return arguments.length?([e,t,r]=m,i=l(e=+e),a=l(t=+t),o=l(r=+r),s=i===a?0:.5/(a-i),u=a===o?0:.5/(o-a),n=a<i?-1:1,h):[e,t,r]},h.clamp=function(m){return arguments.length?(f=!!m,h):f},h.interpolator=function(m){return arguments.length?(c=m,h):c};function p(m){return function(v){var y,b,g;return arguments.length?([y,b,g]=v,c=d5(m,[y,b,g]),h):[c(0),c(.5),c(1)]}}return h.range=p(Er),h.rangeRound=p(qa),h.unknown=function(m){return arguments.length?(d=m,h):d},function(m){return l=m,i=m(e),a=m(t),o=m(r),s=i===a?0:.5/(a-i),u=a===o?0:.5/(o-a),n=a<i?-1:1,h}}function Wf(){var e=$t(Ni()(_e));return e.copy=function(){return Lt(e,Wf())},Pt.apply(e,arguments)}function Uf(){var e=Va(Ni()).domain([.1,1,10]);return e.copy=function(){return Lt(e,Uf()).base(e.base())},Pt.apply(e,arguments)}function Kf(){var e=Ha(Ni());return e.copy=function(){return Lt(e,Kf()).constant(e.constant())},Pt.apply(e,arguments)}function ao(){var e=Ga(Ni());return e.copy=function(){return Lt(e,ao()).exponent(e.exponent())},Pt.apply(e,arguments)}function tv(){return ao.apply(null,arguments).exponent(.5)}const Fr=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Ba,scaleDiverging:Wf,scaleDivergingLog:Uf,scaleDivergingPow:ao,scaleDivergingSqrt:tv,scaleDivergingSymlog:Kf,scaleIdentity:Of,scaleImplicit:Y0,scaleLinear:wf,scaleLog:Pf,scaleOrdinal:La,scalePoint:q4,scalePow:Ya,scaleQuantile:_f,scaleQuantize:jf,scaleRadial:Sf,scaleSequential:Bf,scaleSequentialLog:Ff,scaleSequentialPow:io,scaleSequentialQuantile:qf,scaleSequentialSqrt:ev,scaleSequentialSymlog:zf,scaleSqrt:I5,scaleSymlog:Af,scaleThreshold:Mf,scaleTime:Qp,scaleUtc:Jp,tickFormat:xf},Symbol.toStringTag,{value:"Module"}));var Bt=e=>e.chartData,rv=A([Bt],e=>{var t=e.chartData!=null?e.chartData.length-1:0;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),Ii=(e,t,r,n)=>n?rv(e):Bt(e);function wr(e){if(Array.isArray(e)&&e.length===2){var[t,r]=e;if(je(t)&&je(r))return!0}return!1}function Al(e,t,r){return r?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function nv(e,t){if(t&&typeof e!="function"&&Array.isArray(e)&&e.length===2){var[r,n]=e,i,a;if(je(r))i=r;else if(typeof r=="function")return;if(je(n))a=n;else if(typeof n=="function")return;var o=[i,a];if(wr(o))return o}}function iv(e,t,r){if(!(!r&&t==null)){if(typeof e=="function"&&t!=null)try{var n=e(t,r);if(wr(n))return Al(n,t,r)}catch{}if(Array.isArray(e)&&e.length===2){var[i,a]=e,o,s;if(i==="auto")t!=null&&(o=Math.min(...t));else if(N(i))o=i;else if(typeof i=="function")try{t!=null&&(o=i(t?.[0]))}catch{}else if(typeof i=="string"&&pu.test(i)){var u=pu.exec(i);if(u==null||t==null)o=void 0;else{var c=+u[1];o=t[0]-c}}else o=t?.[0];if(a==="auto")t!=null&&(s=Math.max(...t));else if(N(a))s=a;else if(typeof a=="function")try{t!=null&&(s=a(t?.[1]))}catch{}else if(typeof a=="string"&&vu.test(a)){var l=vu.exec(a);if(l==null||t==null)s=void 0;else{var f=+l[1];s=t[1]+f}}else s=t?.[1];var d=[o,s];if(wr(d))return t==null?d:Al(d,t,r)}}}var Pr=1e9,av={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},so,ie=!0,et="[DecimalError] ",nr=et+"Invalid argument: ",oo=et+"Exponent out of range: ",Ar=Math.floor,Vt=Math.pow,ov=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,We,ye=1e7,re=7,Vf=9007199254740991,oi=Ar(Vf/re),D={};D.absoluteValue=D.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};D.comparedTo=D.cmp=function(e){var t,r,n,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(n=a.d.length,i=e.d.length,t=0,r=n<i?n:i;t<r;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return n===i?0:n>i^a.s<0?1:-1};D.decimalPlaces=D.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*re;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};D.dividedBy=D.div=function(e){return yt(this,new this.constructor(e))};D.dividedToIntegerBy=D.idiv=function(e){var t=this,r=t.constructor;return J(yt(t,new r(e),0,1),r.precision)};D.equals=D.eq=function(e){return!this.cmp(e)};D.exponent=function(){return ce(this)};D.greaterThan=D.gt=function(e){return this.cmp(e)>0};D.greaterThanOrEqualTo=D.gte=function(e){return this.cmp(e)>=0};D.isInteger=D.isint=function(){return this.e>this.d.length-2};D.isNegative=D.isneg=function(){return this.s<0};D.isPositive=D.ispos=function(){return this.s>0};D.isZero=function(){return this.s===0};D.lessThan=D.lt=function(e){return this.cmp(e)<0};D.lessThanOrEqualTo=D.lte=function(e){return this.cmp(e)<1};D.logarithm=D.log=function(e){var t,r=this,n=r.constructor,i=n.precision,a=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(We))throw Error(et+"NaN");if(r.s<1)throw Error(et+(r.s?"NaN":"-Infinity"));return r.eq(We)?new n(0):(ie=!1,t=yt(Jr(r,a),Jr(e,a),a),ie=!0,J(t,i))};D.minus=D.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Yf(t,e):Hf(t,(e.s=-e.s,e))};D.modulo=D.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(et+"NaN");return r.s?(ie=!1,t=yt(r,e,0,1).times(e),ie=!0,r.minus(t)):J(new n(r),i)};D.naturalExponential=D.exp=function(){return Gf(this)};D.naturalLogarithm=D.ln=function(){return Jr(this)};D.negated=D.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};D.plus=D.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Hf(t,e):Yf(t,(e.s=-e.s,e))};D.precision=D.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(nr+e);if(t=ce(i)+1,n=i.d.length-1,r=n*re+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};D.squareRoot=D.sqrt=function(){var e,t,r,n,i,a,o,s=this,u=s.constructor;if(s.s<1){if(!s.s)return new u(0);throw Error(et+"NaN")}for(e=ce(s),ie=!1,i=Math.sqrt(+s),i==0||i==1/0?(t=ot(s.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Ar((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new u(t)):n=new u(i.toString()),r=u.precision,i=o=r+3;;)if(a=n,n=a.plus(yt(s,a,o+2)).times(.5),ot(a.d).slice(0,o)===(t=ot(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(J(a,r+1,0),a.times(a).eq(s)){n=a;break}}else if(t!="9999")break;o+=4}return ie=!0,J(n,r)};D.times=D.mul=function(e){var t,r,n,i,a,o,s,u,c,l=this,f=l.constructor,d=l.d,h=(e=new f(e)).d;if(!l.s||!e.s)return new f(0);for(e.s*=l.s,r=l.e+e.e,u=d.length,c=h.length,u<c&&(a=d,d=h,h=a,o=u,u=c,c=o),a=[],o=u+c,n=o;n--;)a.push(0);for(n=c;--n>=0;){for(t=0,i=u+n;i>n;)s=a[i]+h[n]*d[i-n-1]+t,a[i--]=s%ye|0,t=s/ye|0;a[i]=(a[i]+t)%ye|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,ie?J(e,f.precision):e};D.toDecimalPlaces=D.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(lt(e,0,Pr),t===void 0?t=n.rounding:lt(t,0,8),J(r,e+ce(r)+1,t))};D.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=sr(n,!0):(lt(e,0,Pr),t===void 0?t=i.rounding:lt(t,0,8),n=J(new i(n),e+1,t),r=sr(n,!0,e+1)),r};D.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?sr(i):(lt(e,0,Pr),t===void 0?t=a.rounding:lt(t,0,8),n=J(new a(i),e+ce(i)+1,t),r=sr(n.abs(),!1,e+ce(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};D.toInteger=D.toint=function(){var e=this,t=e.constructor;return J(new t(e),ce(e)+1,t.rounding)};D.toNumber=function(){return+this};D.toPower=D.pow=function(e){var t,r,n,i,a,o,s=this,u=s.constructor,c=12,l=+(e=new u(e));if(!e.s)return new u(We);if(s=new u(s),!s.s){if(e.s<1)throw Error(et+"Infinity");return s}if(s.eq(We))return s;if(n=u.precision,e.eq(We))return J(s,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=s.s,o){if((r=l<0?-l:l)<=Vf){for(i=new u(We),t=Math.ceil(n/re+4),ie=!1;r%2&&(i=i.times(s),_l(i.d,t)),r=Ar(r/2),r!==0;)s=s.times(s),_l(s.d,t);return ie=!0,e.s<0?new u(We).div(i):J(i,n)}}else if(a<0)throw Error(et+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,s.s=1,ie=!1,i=e.times(Jr(s,n+c)),ie=!0,i=Gf(i),i.s=a,i};D.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=ce(i),n=sr(i,r<=a.toExpNeg||r>=a.toExpPos)):(lt(e,1,Pr),t===void 0?t=a.rounding:lt(t,0,8),i=J(new a(i),e,t),r=ce(i),n=sr(i,e<=r||r<=a.toExpNeg,e)),n};D.toSignificantDigits=D.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(lt(e,1,Pr),t===void 0?t=n.rounding:lt(t,0,8)),J(new n(r),e,t)};D.toString=D.valueOf=D.val=D.toJSON=D[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=ce(e),r=e.constructor;return sr(e,t<=r.toExpNeg||t>=r.toExpPos)};function Hf(e,t){var r,n,i,a,o,s,u,c,l=e.constructor,f=l.precision;if(!e.s||!t.s)return t.s||(t=new l(e)),ie?J(t,f):t;if(u=e.d,c=t.d,o=e.e,i=t.e,u=u.slice(),a=o-i,a){for(a<0?(n=u,a=-a,s=c.length):(n=c,i=o,s=u.length),o=Math.ceil(f/re),s=o>s?o+1:s+1,a>s&&(a=s,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(s=u.length,a=c.length,s-a<0&&(a=s,n=c,c=u,u=n),r=0;a;)r=(u[--a]=u[a]+c[a]+r)/ye|0,u[a]%=ye;for(r&&(u.unshift(r),++i),s=u.length;u[--s]==0;)u.pop();return t.d=u,t.e=i,ie?J(t,f):t}function lt(e,t,r){if(e!==~~e||e<t||e>r)throw Error(nr+e)}function ot(e){var t,r,n,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)n=e[t]+"",r=re-n.length,r&&(a+=Tt(r)),a+=n;o=e[t],n=o+"",r=re-n.length,r&&(a+=Tt(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var yt=function(){function e(n,i){var a,o=0,s=n.length;for(n=n.slice();s--;)a=n[s]*i+o,n[s]=a%ye|0,o=a/ye|0;return o&&n.unshift(o),n}function t(n,i,a,o){var s,u;if(a!=o)u=a>o?1:-1;else for(s=u=0;s<a;s++)if(n[s]!=i[s]){u=n[s]>i[s]?1:-1;break}return u}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]<i[a]?1:0,n[a]=o*ye+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o){var s,u,c,l,f,d,h,p,m,v,y,b,g,w,C,O,P,_,M=n.constructor,z=n.s==i.s?1:-1,T=n.d,k=i.d;if(!n.s)return new M(n);if(!i.s)throw Error(et+"Division by zero");for(u=n.e-i.e,P=k.length,C=T.length,h=new M(z),p=h.d=[],c=0;k[c]==(T[c]||0);)++c;if(k[c]>(T[c]||0)&&--u,a==null?b=a=M.precision:o?b=a+(ce(n)-ce(i))+1:b=a,b<0)return new M(0);if(b=b/re+2|0,c=0,P==1)for(l=0,k=k[0],b++;(c<C||l)&&b--;c++)g=l*ye+(T[c]||0),p[c]=g/k|0,l=g%k|0;else{for(l=ye/(k[0]+1)|0,l>1&&(k=e(k,l),T=e(T,l),P=k.length,C=T.length),w=P,m=T.slice(0,P),v=m.length;v<P;)m[v++]=0;_=k.slice(),_.unshift(0),O=k[0],k[1]>=ye/2&&++O;do l=0,s=t(k,m,P,v),s<0?(y=m[0],P!=v&&(y=y*ye+(m[1]||0)),l=y/O|0,l>1?(l>=ye&&(l=ye-1),f=e(k,l),d=f.length,v=m.length,s=t(f,m,d,v),s==1&&(l--,r(f,P<d?_:k,d))):(l==0&&(s=l=1),f=k.slice()),d=f.length,d<v&&f.unshift(0),r(m,f,v),s==-1&&(v=m.length,s=t(k,m,P,v),s<1&&(l++,r(m,P<v?_:k,v))),v=m.length):s===0&&(l++,m=[0]),p[c++]=l,s&&m[0]?m[v++]=T[w]||0:(m=[T[w]],v=1);while((w++<C||m[0]!==void 0)&&b--)}return p[0]||p.shift(),h.e=u,J(h,o?a+ce(h)+1:a)}}();function Gf(e,t){var r,n,i,a,o,s,u=0,c=0,l=e.constructor,f=l.precision;if(ce(e)>16)throw Error(oo+ce(e));if(!e.s)return new l(We);for(ie=!1,s=f,o=new l(.03125);e.abs().gte(.1);)e=e.times(o),c+=5;for(n=Math.log(Vt(2,c))/Math.LN10*2+5|0,s+=n,r=i=a=new l(We),l.precision=s;;){if(i=J(i.times(e),s),r=r.times(++u),o=a.plus(yt(i,r,s)),ot(o.d).slice(0,s)===ot(a.d).slice(0,s)){for(;c--;)a=J(a.times(a),s);return l.precision=f,t==null?(ie=!0,J(a,f)):a}a=o}}function ce(e){for(var t=e.e*re,r=e.d[0];r>=10;r/=10)t++;return t}function u0(e,t,r){if(t>e.LN10.sd())throw ie=!0,r&&(e.precision=r),Error(et+"LN10 precision limit exceeded");return J(new e(e.LN10),t)}function Tt(e){for(var t="";e--;)t+="0";return t}function Jr(e,t){var r,n,i,a,o,s,u,c,l,f=1,d=10,h=e,p=h.d,m=h.constructor,v=m.precision;if(h.s<1)throw Error(et+(h.s?"NaN":"-Infinity"));if(h.eq(We))return new m(0);if(t==null?(ie=!1,c=v):c=t,h.eq(10))return t==null&&(ie=!0),u0(m,c);if(c+=d,m.precision=c,r=ot(p),n=r.charAt(0),a=ce(h),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)h=h.times(e),r=ot(h.d),n=r.charAt(0),f++;a=ce(h),n>1?(h=new m("0."+r),a++):h=new m(n+"."+r.slice(1))}else return u=u0(m,c+2,v).times(a+""),h=Jr(new m(n+"."+r.slice(1)),c-d).plus(u),m.precision=v,t==null?(ie=!0,J(h,v)):h;for(s=o=h=yt(h.minus(We),h.plus(We),c),l=J(h.times(h),c),i=3;;){if(o=J(o.times(l),c),u=s.plus(yt(o,new m(i),c)),ot(u.d).slice(0,c)===ot(s.d).slice(0,c))return s=s.times(2),a!==0&&(s=s.plus(u0(m,c+2,v).times(a+""))),s=yt(s,new m(f),c),m.precision=v,t==null?(ie=!0,J(s,v)):s;s=u,i+=2}}function Sl(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=Ar(r/re),e.d=[],n=(r+1)%re,r<0&&(n+=re),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=re;n<i;)e.d.push(+t.slice(n,n+=re));t=t.slice(n),n=re-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),ie&&(e.e>oi||e.e<-oi))throw Error(oo+r)}else e.s=0,e.e=0,e.d=[0];return e}function J(e,t,r){var n,i,a,o,s,u,c,l,f=e.d;for(o=1,a=f[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=re,i=t,c=f[l=0];else{if(l=Math.ceil((n+1)/re),a=f.length,l>=a)return e;for(c=a=f[l],o=1;a>=10;a/=10)o++;n%=re,i=n-re+o}if(r!==void 0&&(a=Vt(10,o-i-1),s=c/a%10|0,u=t<0||f[l+1]!==void 0||c%a,u=r<4?(s||u)&&(r==0||r==(e.s<0?3:2)):s>5||s==5&&(r==4||u||r==6&&(n>0?i>0?c/Vt(10,o-i):0:f[l-1])%10&1||r==(e.s<0?8:7))),t<1||!f[0])return u?(a=ce(e),f.length=1,t=t-a-1,f[0]=Vt(10,(re-t%re)%re),e.e=Ar(-t/re)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(n==0?(f.length=l,a=1,l--):(f.length=l+1,a=Vt(10,re-n),f[l]=i>0?(c/Vt(10,o-i)%Vt(10,i)|0)*a:0),u)for(;;)if(l==0){(f[0]+=a)==ye&&(f[0]=1,++e.e);break}else{if(f[l]+=a,f[l]!=ye)break;f[l--]=0,a=1}for(n=f.length;f[--n]===0;)f.pop();if(ie&&(e.e>oi||e.e<-oi))throw Error(oo+ce(e));return e}function Yf(e,t){var r,n,i,a,o,s,u,c,l,f,d=e.constructor,h=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),ie?J(t,h):t;if(u=e.d,f=t.d,n=t.e,c=e.e,u=u.slice(),o=c-n,o){for(l=o<0,l?(r=u,o=-o,s=f.length):(r=f,n=c,s=u.length),i=Math.max(Math.ceil(h/re),s)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=u.length,s=f.length,l=i<s,l&&(s=i),i=0;i<s;i++)if(u[i]!=f[i]){l=u[i]<f[i];break}o=0}for(l&&(r=u,u=f,f=r,t.s=-t.s),s=u.length,i=f.length-s;i>0;--i)u[s++]=0;for(i=f.length;i>o;){if(u[--i]<f[i]){for(a=i;a&&u[--a]===0;)u[a]=ye-1;--u[a],u[i]+=ye}u[i]-=f[i]}for(;u[--s]===0;)u.pop();for(;u[0]===0;u.shift())--n;return u[0]?(t.d=u,t.e=n,ie?J(t,h):t):new d(0)}function sr(e,t,r){var n,i=ce(e),a=ot(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+Tt(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+Tt(-i-1)+a,r&&(n=r-o)>0&&(a+=Tt(n))):i>=o?(a+=Tt(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+Tt(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=Tt(n))),e.s<0?"-"+a:a}function _l(e,t){if(e.length>t)return e.length=t,!0}function Zf(e){var t,r,n;function i(a){var o=this;if(!(o instanceof i))return new i(a);if(o.constructor=i,a instanceof i){o.s=a.s,o.e=a.e,o.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(nr+a);if(a>0)o.s=1;else if(a<0)a=-a,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(a===~~a&&a<1e7){o.e=0,o.d=[a];return}return Sl(o,a.toString())}else if(typeof a!="string")throw Error(nr+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,ov.test(a))Sl(o,a);else throw Error(nr+a)}if(i.prototype=D,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=Zf,i.config=i.set=sv,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<n.length;)e.hasOwnProperty(r=n[t++])||(e[r]=this[r]);return i.config(e),i}function sv(e){if(!e||typeof e!="object")throw Error(et+"Object expected");var t,r,n,i=["precision",1,Pr,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((n=e[r=i[t]])!==void 0)if(Ar(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(nr+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(nr+r+": "+n);return this}var so=Zf(av);We=new so(1);const X=so;var uv=e=>e,Xf={},Qf=e=>e===Xf,jl=e=>function t(){return arguments.length===0||arguments.length===1&&Qf(arguments.length<=0?void 0:arguments[0])?t:e(...arguments)},Jf=(e,t)=>e===1?t:jl(function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];var a=n.filter(o=>o!==Xf).length;return a>=e?t(...n):Jf(e-a,jl(function(){for(var o=arguments.length,s=new Array(o),u=0;u<o;u++)s[u]=arguments[u];var c=n.map(l=>Qf(l)?s.shift():l);return t(...c,...s)}))}),Ri=e=>Jf(e.length,e),J0=(e,t)=>{for(var r=[],n=e;n<t;++n)r[n-e]=n;return r},lv=Ri((e,t)=>Array.isArray(t)?t.map(e):Object.keys(t).map(r=>t[r]).map(e)),cv=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return uv;var i=r.reverse(),a=i[0],o=i.slice(1);return function(){return o.reduce((s,u)=>u(s),a(...arguments))}},ea=e=>Array.isArray(e)?e.reverse():e.split("").reverse().join(""),ed=e=>{var t=null,r=null;return function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return t&&i.every((o,s)=>{var u;return o===((u=t)===null||u===void 0?void 0:u[s])})||(t=i,r=e(...i)),r}};function td(e){var t;return e===0?t=1:t=Math.floor(new X(e).abs().log(10).toNumber())+1,t}function rd(e,t,r){for(var n=new X(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}Ri((e,t,r)=>{var n=+e,i=+t;return n+r*(i-n)});Ri((e,t,r)=>{var n=t-+e;return n=n||1/0,(r-e)/n});Ri((e,t,r)=>{var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});var nd=e=>{var[t,r]=e,[n,i]=[t,r];return t>r&&([n,i]=[r,t]),[n,i]},id=(e,t,r)=>{if(e.lte(0))return new X(0);var n=td(e.toNumber()),i=new X(10).pow(n),a=e.div(i),o=n!==1?.05:.1,s=new X(Math.ceil(a.div(o).toNumber())).add(r).mul(o),u=s.mul(i);return t?new X(u.toNumber()):new X(Math.ceil(u.toNumber()))},fv=(e,t,r)=>{var n=new X(1),i=new X(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new X(10).pow(td(e)-1),i=new X(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new X(Math.floor(e)))}else e===0?i=new X(Math.floor((t-1)/2)):r||(i=new X(Math.floor(e)));var o=Math.floor((t-1)/2),s=cv(lv(u=>i.add(new X(u-o).mul(n)).toNumber()),J0);return s(0,t)},ad=function(t,r,n,i){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((r-t)/(n-1)))return{step:new X(0),tickMin:new X(0),tickMax:new X(0)};var o=id(new X(r).sub(t).div(n-1),i,a),s;t<=0&&r>=0?s=new X(0):(s=new X(t).add(r).div(2),s=s.sub(new X(s).mod(o)));var u=Math.ceil(s.sub(t).div(o).toNumber()),c=Math.ceil(new X(r).sub(s).div(o).toNumber()),l=u+c+1;return l>n?ad(t,r,n,i,a+1):(l<n&&(c=r>0?c+(n-l):c,u=r>0?u:u+(n-l)),{step:o,tickMin:s.sub(new X(u).mul(o)),tickMax:s.add(new X(c).mul(o))})};function dv(e){var[t,r]=e,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=Math.max(n,2),[o,s]=nd([t,r]);if(o===-1/0||s===1/0){var u=s===1/0?[o,...J0(0,n-1).map(()=>1/0)]:[...J0(0,n-1).map(()=>-1/0),s];return t>r?ea(u):u}if(o===s)return fv(o,n,i);var{step:c,tickMin:l,tickMax:f}=ad(o,s,a,i,0),d=rd(l,f.add(new X(.1).mul(c)),c);return t>r?ea(d):d}function hv(e,t){var[r,n]=e,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,[a,o]=nd([r,n]);if(a===-1/0||o===1/0)return[r,n];if(a===o)return[a];var s=Math.max(t,2),u=id(new X(o).sub(a).div(s-1),i,0),c=[...rd(new X(a),new X(o),u),o];return i===!1&&(c=c.map(l=>Math.round(l))),r>n?ea(c):c}var pv=ed(dv),vv=ed(hv),mv=e=>e.rootProps.barCategoryGap,$i=e=>e.rootProps.stackOffset,uo=e=>e.options.chartName,lo=e=>e.rootProps.syncId,od=e=>e.rootProps.syncMethod,co=e=>e.options.eventEmitter,dt={allowDuplicatedCategory:!0,angleAxisId:0,reversed:!1,scale:"auto",tick:!0,type:"category"},ze={allowDataOverflow:!1,allowDuplicatedCategory:!0,radiusAxisId:0,scale:"auto",tick:!0,tickCount:5,type:"number"},Li=(e,t)=>{if(!(!e||!t))return e!=null&&e.reversed?[t[1],t[0]]:t},yv={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!1,dataKey:void 0,domain:void 0,id:dt.angleAxisId,includeHidden:!1,name:void 0,reversed:dt.reversed,scale:dt.scale,tick:dt.tick,tickCount:void 0,ticks:void 0,type:dt.type,unit:void 0},gv={allowDataOverflow:ze.allowDataOverflow,allowDecimals:!1,allowDuplicatedCategory:ze.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:ze.radiusAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:ze.scale,tick:ze.tick,tickCount:ze.tickCount,ticks:void 0,type:ze.type,unit:void 0},bv={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:dt.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:dt.angleAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:dt.scale,tick:dt.tick,tickCount:void 0,ticks:void 0,type:"number",unit:void 0},Cv={allowDataOverflow:ze.allowDataOverflow,allowDecimals:!1,allowDuplicatedCategory:ze.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:ze.radiusAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:ze.scale,tick:ze.tick,tickCount:ze.tickCount,ticks:void 0,type:"category",unit:void 0},fo=(e,t)=>e.polarAxis.angleAxis[t]!=null?e.polarAxis.angleAxis[t]:e.layout.layoutType==="radial"?bv:yv,ho=(e,t)=>e.polarAxis.radiusAxis[t]!=null?e.polarAxis.radiusAxis[t]:e.layout.layoutType==="radial"?Cv:gv,Bi=e=>e.polarOptions,po=A([Ot,Et,Oe],A6),sd=A([Bi,po],(e,t)=>{if(e!=null)return It(e.innerRadius,t,0)}),ud=A([Bi,po],(e,t)=>{if(e!=null)return It(e.outerRadius,t,t*.8)}),xv=e=>{if(e==null)return[0,0];var{startAngle:t,endAngle:r}=e;return[t,r]},ld=A([Bi],xv);A([fo,ld],Li);var cd=A([po,sd,ud],(e,t,r)=>{if(!(e==null||t==null||r==null))return[t,r]});A([ho,cd],Li);var fd=A([Q,Bi,sd,ud,Ot,Et],(e,t,r,n,i,a)=>{if(!(e!=="centric"&&e!=="radial"||t==null||r==null||n==null)){var{cx:o,cy:s,startAngle:u,endAngle:c}=t;return{cx:It(o,i,i/2),cy:It(s,a,a/2),innerRadius:r,outerRadius:n,startAngle:u,endAngle:c,clockWise:!1}}}),fe=(e,t)=>t,Fi=(e,t,r)=>r;function vo(e){return e?.id}var pe=e=>{var t=Q(e);return t==="horizontal"?"xAxis":t==="vertical"?"yAxis":t==="centric"?"angleAxis":"radiusAxis"},Sr=e=>e.tooltip.settings.axisId,ve=e=>{var t=pe(e),r=Sr(e);return fn(e,t,r)};function dd(e,t,r){var{chartData:n=[]}=t,i=r?.dataKey,a=new Map;return e.forEach(o=>{var s,u=(s=o.data)!==null&&s!==void 0?s:n;if(!(u==null||u.length===0)){var c=vo(o);u.forEach((l,f)=>{var d=i==null?f:String(we(l,i,null)),h=we(l,o.dataKey,0),p;a.has(d)?p=a.get(d):p={},Object.assign(p,{[c]:h}),a.set(d,p)})}}),Array.from(a.values())}function mo(e){return e.stackId!=null&&e.dataKey!=null}function Ml(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function si(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ml(Object(r),!0).forEach(function(n){wv(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ml(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wv(e,t,r){return(t=Ov(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ov(e){var t=Ev(e,"string");return typeof t=="symbol"?t:t+""}function Ev(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ta=[0,"auto"],Be={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},At=(e,t)=>{var r=e.cartesianAxis.xAxis[t];return r??Be},Fe={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:ta,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:Pi},Ft=(e,t)=>{var r=e.cartesianAxis.yAxis[t];return r??Fe},Pv={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:""},yo=(e,t)=>{var r=e.cartesianAxis.zAxis[t];return r??Pv},Re=(e,t,r)=>{switch(t){case"xAxis":return At(e,r);case"yAxis":return Ft(e,r);case"zAxis":return yo(e,r);case"angleAxis":return fo(e,r);case"radiusAxis":return ho(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},Av=(e,t,r)=>{switch(t){case"xAxis":return At(e,r);case"yAxis":return Ft(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},fn=(e,t,r)=>{switch(t){case"xAxis":return At(e,r);case"yAxis":return Ft(e,r);case"angleAxis":return fo(e,r);case"radiusAxis":return ho(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},hd=e=>e.graphicalItems.cartesianItems.some(t=>t.type==="bar")||e.graphicalItems.polarItems.some(t=>t.type==="radialBar");function pd(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 go=e=>e.graphicalItems.cartesianItems,Sv=A([fe,Fi],pd),vd=(e,t,r)=>e.filter(r).filter(n=>t?.includeHidden===!0?!0:!n.hide),dn=A([go,Re,Sv],vd),md=A([dn],e=>e.filter(t=>t.type==="area"||t.type==="bar").filter(mo)),yd=e=>e.filter(t=>!("stackId"in t)||t.stackId===void 0),gd=A([dn],yd),bd=e=>e.map(t=>t.data).filter(Boolean).flat(1),_v=A([dn],bd),Cd=(e,t)=>{var{chartData:r=[],dataStartIndex:n,dataEndIndex:i}=t;return e.length>0?e:r.slice(n,i+1)},bo=A([_v,Ii],Cd),xd=(e,t,r)=>t?.dataKey!=null?e.map(n=>({value:we(n,t.dataKey)})):r.length>0?r.map(n=>n.dataKey).flatMap(n=>e.map(i=>({value:we(i,n)}))):e.map(n=>({value:n})),zi=A([bo,Re,dn],xd);function wd(e,t){switch(e){case"xAxis":return t.direction==="x";case"yAxis":return t.direction==="y";default:return!1}}function fr(e){return e.filter(t=>ut(t)||t instanceof Date).map(Number).filter(t=>Ue(t)===!1)}function jv(e,t,r){return!r||typeof t!="number"||Ue(t)?[]:r.length?fr(r.flatMap(n=>{var i=we(e,n.dataKey),a,o;if(Array.isArray(i)?[a,o]=i:a=o=i,!(!je(a)||!je(o)))return[t-a,t+o]})):[]}var Mv=A([md,Ii,ve],dd),Od=(e,t,r)=>{var n={},i=t.reduce((a,o)=>(o.stackId==null||(a[o.stackId]==null&&(a[o.stackId]=[]),a[o.stackId].push(o)),a),n);return Object.fromEntries(Object.entries(i).map(a=>{var[o,s]=a,u=s.map(vo);return[o,{stackedData:z6(e,u,r),graphicalItems:s}]}))},ra=A([Mv,md,$i],Od),Ed=(e,t,r)=>{var{dataStartIndex:n,dataEndIndex:i}=t;if(r!=="zAxis"){var a=K6(e,n,i);if(!(a!=null&&a[0]===0&&a[1]===0))return a}},Tv=A([ra,Bt,fe],Ed),Pd=(e,t,r,n,i)=>r.length>0?e.flatMap(a=>r.flatMap(o=>{var s,u,c=(s=n[o.id])===null||s===void 0?void 0:s.filter(f=>wd(i,f)),l=we(a,(u=t.dataKey)!==null&&u!==void 0?u:o.dataKey);return{value:l,errorDomain:jv(a,l,c)}})).filter(Boolean):t?.dataKey!=null?e.map(a=>({value:we(a,t.dataKey),errorDomain:[]})):e.map(a=>({value:a,errorDomain:[]})),qi=e=>e.errorBars,Ad=(e,t,r)=>e.flatMap(n=>t[n.id]).filter(Boolean).filter(n=>wd(r,n));A([gd,qi,fe],Ad);var kv=A([bo,Re,gd,qi,fe],Pd);function Dv(e){var{value:t}=e;if(ut(t)||t instanceof Date)return t}var Tl=e=>{var t=e.flatMap(n=>[n.value,n.errorDomain]).flat(1),r=fr(t);if(r.length!==0)return[Math.min(...r),Math.max(...r)]},Nv=(e,t,r)=>{var n=e.map(Dv).filter(i=>i!=null);return r&&(t.dataKey==null||t.allowDuplicatedCategory&&q1(n))?ff(0,e.length):t.allowDuplicatedCategory?n:Array.from(new Set(n))},Co=e=>{var t;if(e==null||!("domain"in e))return ta;if(e.domain!=null)return e.domain;if(e.ticks!=null){if(e.type==="number"){var r=fr(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:ta},ui=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r.filter(Boolean);if(i.length!==0){var a=i.flat(),o=Math.min(...a),s=Math.max(...a);return[o,s]}},Sd=e=>e.referenceElements.dots,_r=(e,t,r)=>e.filter(n=>n.ifOverflow==="extendDomain").filter(n=>t==="xAxis"?n.xAxisId===r:n.yAxisId===r),Iv=A([Sd,fe,Fi],_r),_d=e=>e.referenceElements.areas,Rv=A([_d,fe,Fi],_r),jd=e=>e.referenceElements.lines,$v=A([jd,fe,Fi],_r),Md=(e,t)=>{var r=fr(e.map(n=>t==="xAxis"?n.x:n.y));if(r.length!==0)return[Math.min(...r),Math.max(...r)]},Lv=A(Iv,fe,Md),Td=(e,t)=>{var r=fr(e.flatMap(n=>[t==="xAxis"?n.x1:n.y1,t==="xAxis"?n.x2:n.y2]));if(r.length!==0)return[Math.min(...r),Math.max(...r)]},Bv=A([Rv,fe],Td),kd=(e,t)=>{var r=fr(e.map(n=>t==="xAxis"?n.x:n.y));if(r.length!==0)return[Math.min(...r),Math.max(...r)]},Fv=A($v,fe,kd),zv=A(Lv,Fv,Bv,(e,t,r)=>ui(e,r,t)),qv=A([Re],Co),Dd=(e,t,r,n,i,a,o)=>{var s=nv(t,e.allowDataOverflow);if(s!=null)return s;var u=a==="vertical"&&o==="xAxis"||a==="horizontal"&&o==="yAxis",c=u?ui(r,i,Tl(n)):ui(i,Tl(n));return iv(t,c,e.allowDataOverflow)},Wv=A([Re,qv,Tv,kv,zv,Q,fe],Dd),Uv=[0,1],Nd=(e,t,r,n,i,a,o)=>{if(!((e==null||r==null||r.length===0)&&o===void 0)){var{dataKey:s,type:u}=e,c=ct(t,a);return c&&s==null?ff(0,r.length):u==="category"?Nv(n,e,c):i==="expand"?Uv:o}},xo=A([Re,Q,bo,zi,$i,fe,Wv],Nd),Id=(e,t,r,n,i)=>{if(e!=null){var{scale:a,type:o}=e;if(a==="auto")return t==="radial"&&i==="radiusAxis"?"band":t==="radial"&&i==="angleAxis"?"linear":o==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?"point":o==="category"?"band":"linear";if(typeof a=="string"){var s="scale".concat(ga(a));return s in Fr?s:"point"}}},hn=A([Re,Q,hd,uo,fe],Id);function Kv(e){if(e!=null){if(e in Fr)return Fr[e]();var t="scale".concat(ga(e));if(t in Fr)return Fr[t]()}}function wo(e,t,r,n){if(!(r==null||n==null)){if(typeof e.scale=="function")return e.scale.copy().domain(r).range(n);var i=Kv(t);if(i!=null){var a=i.domain(r).range(n);return $6(a),a}}}var Rd=(e,t,r)=>{var n=Co(t);if(!(r!=="auto"&&r!=="linear")){if(t!=null&&t.tickCount&&Array.isArray(n)&&(n[0]==="auto"||n[1]==="auto")&&wr(e))return pv(e,t.tickCount,t.allowDecimals);if(t!=null&&t.tickCount&&t.type==="number"&&wr(e))return vv(e,t.tickCount,t.allowDecimals)}},Oo=A([xo,fn,hn],Rd),$d=(e,t,r,n)=>{if(n!=="angleAxis"&&e?.type==="number"&&wr(t)&&Array.isArray(r)&&r.length>0){var i=t[0],a=r[0],o=t[1],s=r[r.length-1];return[Math.min(i,a),Math.max(o,s)]}return t},Vv=A([Re,xo,Oo,fe],$d),Hv=A(zi,Re,(e,t)=>{if(!(!t||t.type!=="number")){var r=1/0,n=Array.from(fr(e.map(s=>s.value))).sort((s,u)=>s-u);if(n.length<2)return 1/0;var i=n[n.length-1]-n[0];if(i===0)return 1/0;for(var a=0;a<n.length-1;a++){var o=n[a+1]-n[a];r=Math.min(r,o)}return r/i}}),Ld=A(Hv,Q,mv,Oe,(e,t,r,n)=>n,(e,t,r,n,i)=>{if(!je(e))return 0;var a=t==="vertical"?n.height:n.width;if(i==="gap")return e*a/2;if(i==="no-gap"){var o=It(r,e*a),s=e*a/2;return s-o-(s-o)/a*o}return 0}),Gv=(e,t)=>{var r=At(e,t);return r==null||typeof r.padding!="string"?0:Ld(e,"xAxis",t,r.padding)},Yv=(e,t)=>{var r=Ft(e,t);return r==null||typeof r.padding!="string"?0:Ld(e,"yAxis",t,r.padding)},Zv=A(At,Gv,(e,t)=>{var r,n;if(e==null)return{left:0,right:0};var{padding:i}=e;return typeof i=="string"?{left:t,right:t}:{left:((r=i.left)!==null&&r!==void 0?r:0)+t,right:((n=i.right)!==null&&n!==void 0?n:0)+t}}),Xv=A(Ft,Yv,(e,t)=>{var r,n;if(e==null)return{top:0,bottom:0};var{padding:i}=e;return typeof i=="string"?{top:t,bottom:t}:{top:((r=i.top)!==null&&r!==void 0?r:0)+t,bottom:((n=i.bottom)!==null&&n!==void 0?n:0)+t}}),Qv=A([Oe,Zv,Si,Ai,(e,t,r)=>r],(e,t,r,n,i)=>{var{padding:a}=n;return i?[a.left,r.width-a.right]:[e.left+t.left,e.left+e.width-t.right]}),Jv=A([Oe,Q,Xv,Si,Ai,(e,t,r)=>r],(e,t,r,n,i,a)=>{var{padding:o}=i;return a?[n.height-o.bottom,o.top]:t==="horizontal"?[e.top+e.height-r.bottom,e.top+r.top]:[e.top+r.top,e.top+e.height-r.bottom]}),pn=(e,t,r,n)=>{var i;switch(t){case"xAxis":return Qv(e,r,n);case"yAxis":return Jv(e,r,n);case"zAxis":return(i=yo(e,r))===null||i===void 0?void 0:i.range;case"angleAxis":return ld(e);case"radiusAxis":return cd(e,r);default:return}},Bd=A([Re,pn],Li),jr=A([Re,hn,Vv,Bd],wo);A([dn,qi,fe],Ad);function Fd(e,t){return e.id<t.id?-1:e.id>t.id?1:0}var Wi=(e,t)=>t,Ui=(e,t,r)=>r,em=A(Da,Wi,Ui,(e,t,r)=>e.filter(n=>n.orientation===t).filter(n=>n.mirror===r).sort(Fd)),tm=A(Na,Wi,Ui,(e,t,r)=>e.filter(n=>n.orientation===t).filter(n=>n.mirror===r).sort(Fd)),zd=(e,t)=>({width:e.width,height:t.height}),rm=(e,t)=>{var r=typeof t.width=="number"?t.width:Pi;return{width:r,height:e.height}},nm=A(Oe,At,zd),im=(e,t,r)=>{switch(t){case"top":return e.top;case"bottom":return r-e.bottom;default:return 0}},am=(e,t,r)=>{switch(t){case"left":return e.left;case"right":return r-e.right;default:return 0}},om=A(Et,Oe,em,Wi,Ui,(e,t,r,n,i)=>{var a={},o;return r.forEach(s=>{var u=zd(t,s);o==null&&(o=im(t,n,e));var c=n==="top"&&!i||n==="bottom"&&i;a[s.id]=o-Number(c)*u.height,o+=(c?-1:1)*u.height}),a}),sm=A(Ot,Oe,tm,Wi,Ui,(e,t,r,n,i)=>{var a={},o;return r.forEach(s=>{var u=rm(t,s);o==null&&(o=am(t,n,e));var c=n==="left"&&!i||n==="right"&&i;a[s.id]=o-Number(c)*u.width,o+=(c?-1:1)*u.width}),a}),um=(e,t)=>{var r=Oe(e),n=At(e,t);if(n!=null){var i=om(e,n.orientation,n.mirror),a=i[t];return a==null?{x:r.left,y:0}:{x:r.left,y:a}}},lm=(e,t)=>{var r=Oe(e),n=Ft(e,t);if(n!=null){var i=sm(e,n.orientation,n.mirror),a=i[t];return a==null?{x:0,y:r.top}:{x:a,y:r.top}}},cm=A(Oe,Ft,(e,t)=>{var r=typeof t.width=="number"?t.width:Pi;return{width:r,height:e.height}}),qd=(e,t,r,n)=>{if(r!=null){var{allowDuplicatedCategory:i,type:a,dataKey:o}=r,s=ct(e,n),u=t.map(c=>c.value);if(o&&s&&a==="category"&&i&&q1(u))return u}},Eo=A([Q,zi,Re,fe],qd),Wd=(e,t,r,n)=>{if(!(r==null||r.dataKey==null)){var{type:i,scale:a}=r,o=ct(e,n);if(o&&(i==="number"||a!=="auto"))return t.map(s=>s.value)}},Po=A([Q,zi,fn,fe],Wd),kl=A([Q,Av,hn,jr,Eo,Po,pn,Oo,fe],(e,t,r,n,i,a,o,s,u)=>{if(t==null)return null;var c=ct(e,u);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:u,categoricalDomain:a,duplicateDomain:i,isCategorical:c,niceTicks:s,range:o,realScaleType:r,scale:n}}),fm=(e,t,r,n,i,a,o,s,u)=>{if(!(t==null||n==null)){var c=ct(e,u),{type:l,ticks:f,tickCount:d}=t,h=r==="scaleBand"&&typeof n.bandwidth=="function"?n.bandwidth()/2:2,p=l==="category"&&n.bandwidth?n.bandwidth()/h:0;p=u==="angleAxis"&&a!=null&&a.length>=2?Xe(a[0]-a[1])*2*p:p;var m=f||i;if(m){var v=m.map((y,b)=>{var g=o?o.indexOf(y):y;return{index:b,coordinate:n(g)+p,value:y,offset:p}});return v.filter(y=>!Ue(y.coordinate))}return c&&s?s.map((y,b)=>({coordinate:n(y)+p,value:y,index:b,offset:p})):n.ticks?n.ticks(d).map(y=>({coordinate:n(y)+p,value:y,offset:p})):n.domain().map((y,b)=>({coordinate:n(y)+p,value:o?o[y]:y,index:b,offset:p}))}},Ud=A([Q,fn,hn,jr,Oo,pn,Eo,Po,fe],fm),dm=(e,t,r,n,i,a,o)=>{if(!(t==null||r==null||n==null||n[0]===n[1])){var s=ct(e,o),{tickCount:u}=t,c=0;return c=o==="angleAxis"&&n?.length>=2?Xe(n[0]-n[1])*2*c:c,s&&a?a.map((l,f)=>({coordinate:r(l)+c,value:l,index:f,offset:c})):r.ticks?r.ticks(u).map(l=>({coordinate:r(l)+c,value:l,offset:c})):r.domain().map((l,f)=>({coordinate:r(l)+c,value:i?i[l]:l,index:f,offset:c}))}},Ki=A([Q,fn,jr,pn,Eo,Po,fe],dm),Vi=A(Re,jr,(e,t)=>{if(!(e==null||t==null))return si(si({},e),{},{scale:t})}),hm=A([Re,hn,xo,Bd],wo);A((e,t,r)=>yo(e,r),hm,(e,t)=>{if(!(e==null||t==null))return si(si({},e),{},{scale:t})});var pm=A([Q,Da,Na],(e,t,r)=>{switch(e){case"horizontal":return t.some(n=>n.reversed)?"right-to-left":"left-to-right";case"vertical":return r.some(n=>n.reversed)?"bottom-to-top":"top-to-bottom";case"centric":case"radial":return"left-to-right";default:return}}),Kd=e=>e.options.defaultTooltipEventType,Vd=e=>e.options.validateTooltipEventTypes;function Hd(e,t,r){if(e==null)return t;var n=e?"axis":"item";return r==null?t:r.includes(n)?n:t}function Ao(e,t){var r=Kd(e),n=Vd(e);return Hd(t,r,n)}function vm(e){return F(t=>Ao(t,e))}var Gd=(e,t)=>{var r,n=Number(t);if(!(Ue(n)||t==null))return n>=0?e==null||(r=e[n])===null||r===void 0?void 0:r.value:void 0},mm=e=>e.tooltip.settings,kt={active:!1,index:null,dataKey:void 0,coordinate:void 0},ym={itemInteraction:{click:kt,hover:kt},axisInteraction:{click:kt,hover:kt},keyboardInteraction:kt,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}},Yd=He({name:"tooltip",initialState:ym,reducers:{addTooltipEntrySettings(e,t){e.tooltipItemPayloads.push(t.payload)},removeTooltipEntrySettings(e,t){var r=mt(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:gm,removeTooltipEntrySettings:bm,setTooltipSettingsState:Cm,setActiveMouseOverItemIndex:xm,mouseLeaveItem:rO,mouseLeaveChart:Zd,setActiveClickItemIndex:nO,setMouseOverAxisIndex:Xd,setMouseClickAxisIndex:wm,setSyncInteraction:na,setKeyboardInteraction:ia}=Yd.actions,Om=Yd.reducer;function Dl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function kn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Dl(Object(r),!0).forEach(function(n){Em(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Dl(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Em(e,t,r){return(t=Pm(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Pm(e){var t=Am(e,"string");return typeof t=="symbol"?t:t+""}function Am(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Sm(e,t,r){return t==="axis"?r==="click"?e.axisInteraction.click:e.axisInteraction.hover:r==="click"?e.itemInteraction.click:e.itemInteraction.hover}function _m(e){return e.index!=null}var Qd=(e,t,r,n)=>{if(t==null)return kt;var i=Sm(e,t,r);if(i==null)return kt;if(i.active)return i;if(e.keyboardInteraction.active)return e.keyboardInteraction;if(e.syncInteraction.active&&e.syncInteraction.index!=null)return e.syncInteraction;var a=e.settings.active===!0;if(_m(i)){if(a)return kn(kn({},i),{},{active:!0})}else if(n!=null)return{active:!0,coordinate:void 0,dataKey:void 0,index:n};return kn(kn({},kt),{},{coordinate:i.coordinate})},So=(e,t)=>{var r=e?.index;if(r==null)return null;var n=Number(r);if(!je(n))return r;var i=0,a=1/0;return t.length>0&&(a=t.length-1),String(Math.max(i,Math.min(n,a)))},Jd=(e,t,r,n,i,a,o,s)=>{if(!(a==null||s==null)){var u=o[0],c=u==null?void 0:s(u.positions,a);if(c!=null)return c;var l=i?.[Number(a)];if(l)switch(r){case"horizontal":return{x:l.coordinate,y:(n.top+t)/2};default:return{x:(n.left+e)/2,y:l.coordinate}}}},e3=(e,t,r,n)=>{if(t==="axis")return e.tooltipItemPayloads;if(e.tooltipItemPayloads.length===0)return[];var i;return r==="hover"?i=e.itemInteraction.hover.dataKey:i=e.itemInteraction.click.dataKey,i==null&&n!=null?[e.tooltipItemPayloads[0]]:e.tooltipItemPayloads.filter(a=>{var o;return((o=a.settings)===null||o===void 0?void 0:o.dataKey)===i})},vn=e=>e.options.tooltipPayloadSearcher,Mr=e=>e.tooltip;function Nl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Il(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Nl(Object(r),!0).forEach(function(n){jm(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Nl(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function jm(e,t,r){return(t=Mm(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Mm(e){var t=Tm(e,"string");return typeof t=="symbol"?t:t+""}function Tm(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function km(e,t){return e??t}var t3=(e,t,r,n,i,a,o)=>{if(!(t==null||a==null)){var{chartData:s,computedData:u,dataStartIndex:c,dataEndIndex:l}=r,f=[];return e.reduce((d,h)=>{var p,{dataDefinedOnItem:m,settings:v}=h,y=km(m,s),b=Array.isArray(y)?Vc(y,c,l):y,g=(p=v?.dataKey)!==null&&p!==void 0?p:n?.dataKey,w=v?.nameKey,C;if(n!=null&&n.dataKey&&Array.isArray(b)&&!Array.isArray(b[0])&&o==="axis"?C=W1(b,n.dataKey,i):C=a(b,t,u,w),Array.isArray(C))C.forEach(P=>{var _=Il(Il({},v),{},{name:P.name,unit:P.unit,color:void 0,fill:void 0});d.push(mu({tooltipEntrySettings:_,dataKey:P.dataKey,payload:P.payload,value:we(P.payload,P.dataKey),name:P.name}))});else{var O;d.push(mu({tooltipEntrySettings:v,dataKey:g,payload:C,value:we(C,g),name:(O=we(C,w))!==null&&O!==void 0?O:v?.name}))}return d},f)}},_o=A([ve,Q,hd,uo,pe],Id),Dm=A([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),Nm=A([pe,Sr],pd),mn=A([Dm,ve,Nm],vd),Im=A([mn],e=>e.filter(mo)),Rm=A([mn],bd),Tr=A([Rm,Bt],Cd),$m=A([Im,Bt,ve],dd),jo=A([Tr,ve,mn],xd),Lm=A([ve],Co),Bm=A([mn],e=>e.filter(mo)),Fm=A([$m,Bm,$i],Od),zm=A([Fm,Bt,pe],Ed),qm=A([mn],yd),Wm=A([Tr,ve,qm,qi,pe],Pd),Um=A([Sd,pe,Sr],_r),Km=A([Um,pe],Md),Vm=A([_d,pe,Sr],_r),Hm=A([Vm,pe],Td),Gm=A([jd,pe,Sr],_r),Ym=A([Gm,pe],kd),Zm=A([Km,Ym,Hm],ui),Xm=A([ve,Lm,zm,Wm,Zm,Q,pe],Dd),r3=A([ve,Q,Tr,jo,$i,pe,Xm],Nd),Qm=A([r3,ve,_o],Rd),Jm=A([ve,r3,Qm,pe],$d),n3=e=>{var t=pe(e),r=Sr(e),n=!1;return pn(e,t,r,n)},i3=A([ve,n3],Li),a3=A([ve,_o,Jm,i3],wo),ey=A([Q,jo,ve,pe],qd),ty=A([Q,jo,ve,pe],Wd),ry=(e,t,r,n,i,a,o,s)=>{if(t){var{type:u}=t,c=ct(e,s);if(n){var l=r==="scaleBand"&&n.bandwidth?n.bandwidth()/2:2,f=u==="category"&&n.bandwidth?n.bandwidth()/l:0;return f=s==="angleAxis"&&i!=null&&i?.length>=2?Xe(i[0]-i[1])*2*f:f,c&&o?o.map((d,h)=>({coordinate:n(d)+f,value:d,index:h,offset:f})):n.domain().map((d,h)=>({coordinate:n(d)+f,value:a?a[d]:d,index:h,offset:f}))}}},St=A([Q,ve,_o,a3,n3,ey,ty,pe],ry),Mo=A([Kd,Vd,mm],(e,t,r)=>Hd(r.shared,e,t)),o3=e=>e.tooltip.settings.trigger,To=e=>e.tooltip.settings.defaultIndex,Hi=A([Mr,Mo,o3,To],Qd),en=A([Hi,Tr],So),s3=A([St,en],Gd),ny=A([Hi],e=>{if(e)return e.dataKey}),u3=A([Mr,Mo,o3,To],e3),iy=A([Ot,Et,Q,Oe,St,To,u3,vn],Jd),ay=A([Hi,iy],(e,t)=>e!=null&&e.coordinate?e.coordinate:t),oy=A([Hi],e=>e.active),sy=A([u3,en,Bt,ve,s3,vn,Mo],t3),uy=A([sy],e=>{if(e!=null){var t=e.map(r=>r.payload).filter(r=>r!=null);return Array.from(new Set(t))}});function Rl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function $l(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Rl(Object(r),!0).forEach(function(n){ly(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rl(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ly(e,t,r){return(t=cy(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cy(e){var t=fy(e,"string");return typeof t=="symbol"?t:t+""}function fy(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var dy=()=>F(ve),hy=()=>{var e=dy(),t=F(St),r=F(a3);return Hr($l($l({},e),{},{scale:r}),t)},l3=()=>F(uo),ko=(e,t)=>t,c3=(e,t,r)=>r,Do=(e,t,r,n)=>n,py=A(St,e=>gi(e,t=>t.coordinate)),No=A([Mr,ko,c3,Do],Qd),f3=A([No,Tr],So),vy=(e,t,r)=>{if(t!=null){var n=Mr(e);return t==="axis"?r==="hover"?n.axisInteraction.hover.dataKey:n.axisInteraction.click.dataKey:r==="hover"?n.itemInteraction.hover.dataKey:n.itemInteraction.click.dataKey}},d3=A([Mr,ko,c3,Do],e3),li=A([Ot,Et,Q,Oe,St,Do,d3,vn],Jd),my=A([No,li],(e,t)=>{var r;return(r=e.coordinate)!==null&&r!==void 0?r:t}),h3=A(St,f3,Gd),yy=A([d3,f3,Bt,ve,h3,vn,ko],t3),gy=A([No],e=>({isActive:e.active,activeIndex:e.index})),by=(e,t,r,n,i,a,o,s)=>{if(!(!e||!t||!n||!i||!a)){var u=V6(e.chartX,e.chartY,t,r,s);if(u){var c=G6(u,t),l=I6(c,o,a,n,i),f=H6(t,a,l,u);return{activeIndex:String(l),activeCoordinate:f}}}};function aa(){return aa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},aa.apply(null,arguments)}function Ll(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Dn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ll(Object(r),!0).forEach(function(n){Cy(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ll(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Cy(e,t,r){return(t=xy(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xy(e){var t=wy(e,"string");return typeof t=="symbol"?t:t+""}function wy(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Oy(e){var{coordinate:t,payload:r,index:n,offset:i,tooltipAxisBandSize:a,layout:o,cursor:s,tooltipEventType:u,chartName:c}=e,l=t,f=r,d=n;if(!s||!l||c!=="ScatterChart"&&u!=="axis")return null;var h,p;if(c==="ScatterChart")h=l,p=I7;else if(c==="BarChart")h=R7(o,l,i,a),p=y4;else if(o==="radial"){var{cx:m,cy:v,radius:y,startAngle:b,endAngle:g}=lf(l);h={cx:m,cy:v,startAngle:b,endAngle:g,innerRadius:y,outerRadius:y},p=x4}else h={points:w4(o,l,i)},p=zr;var w=typeof s=="object"&&"className"in s?s.className:void 0,C=Dn(Dn(Dn(Dn({stroke:"#ccc",pointerEvents:"none"},i),h),le(s,!1)),{},{payload:f,payloadIndex:d,className:G.clsx("recharts-tooltip-cursor",w)});return E.isValidElement(s)?E.cloneElement(s,C):E.createElement(p,C)}function Ey(e){var t=hy(),r=Xc(),n=_i(),i=l3();return x.createElement(Oy,aa({},e,{coordinate:e.coordinate,index:e.index,payload:e.payload,offset:r,layout:n,tooltipAxisBandSize:t,chartName:i}))}var p3=E.createContext(null),Py=()=>E.useContext(p3),l0={exports:{}},Bl;function Ay(){return Bl||(Bl=1,function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(u,c,l){this.fn=u,this.context=c,this.once=l||!1}function a(u,c,l,f,d){if(typeof l!="function")throw new TypeError("The listener must be a function");var h=new i(l,f||u,d),p=r?r+c:c;return u._events[p]?u._events[p].fn?u._events[p]=[u._events[p],h]:u._events[p].push(h):(u._events[p]=h,u._eventsCount++),u}function o(u,c){--u._eventsCount===0?u._events=new n:delete u._events[c]}function s(){this._events=new n,this._eventsCount=0}s.prototype.eventNames=function(){var c=[],l,f;if(this._eventsCount===0)return c;for(f in l=this._events)t.call(l,f)&&c.push(r?f.slice(1):f);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(l)):c},s.prototype.listeners=function(c){var l=r?r+c:c,f=this._events[l];if(!f)return[];if(f.fn)return[f.fn];for(var d=0,h=f.length,p=new Array(h);d<h;d++)p[d]=f[d].fn;return p},s.prototype.listenerCount=function(c){var l=r?r+c:c,f=this._events[l];return f?f.fn?1:f.length:0},s.prototype.emit=function(c,l,f,d,h,p){var m=r?r+c:c;if(!this._events[m])return!1;var v=this._events[m],y=arguments.length,b,g;if(v.fn){switch(v.once&&this.removeListener(c,v.fn,void 0,!0),y){case 1:return v.fn.call(v.context),!0;case 2:return v.fn.call(v.context,l),!0;case 3:return v.fn.call(v.context,l,f),!0;case 4:return v.fn.call(v.context,l,f,d),!0;case 5:return v.fn.call(v.context,l,f,d,h),!0;case 6:return v.fn.call(v.context,l,f,d,h,p),!0}for(g=1,b=new Array(y-1);g<y;g++)b[g-1]=arguments[g];v.fn.apply(v.context,b)}else{var w=v.length,C;for(g=0;g<w;g++)switch(v[g].once&&this.removeListener(c,v[g].fn,void 0,!0),y){case 1:v[g].fn.call(v[g].context);break;case 2:v[g].fn.call(v[g].context,l);break;case 3:v[g].fn.call(v[g].context,l,f);break;case 4:v[g].fn.call(v[g].context,l,f,d);break;default:if(!b)for(C=1,b=new Array(y-1);C<y;C++)b[C-1]=arguments[C];v[g].fn.apply(v[g].context,b)}}return!0},s.prototype.on=function(c,l,f){return a(this,c,l,f,!1)},s.prototype.once=function(c,l,f){return a(this,c,l,f,!0)},s.prototype.removeListener=function(c,l,f,d){var h=r?r+c:c;if(!this._events[h])return this;if(!l)return o(this,h),this;var p=this._events[h];if(p.fn)p.fn===l&&(!d||p.once)&&(!f||p.context===f)&&o(this,h);else{for(var m=0,v=[],y=p.length;m<y;m++)(p[m].fn!==l||d&&!p[m].once||f&&p[m].context!==f)&&v.push(p[m]);v.length?this._events[h]=v.length===1?v[0]:v:o(this,h)}return this},s.prototype.removeAllListeners=function(c){var l;return c?(l=r?r+c:c,this._events[l]&&o(this,l)):(this._events=new n,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=r,s.EventEmitter=s,e.exports=s}(l0)),l0.exports}var Sy=Ay();const _y=S.getDefaultExportFromCjs(Sy);var tn=new _y,oa="recharts.syncEvent.tooltip",Fl="recharts.syncEvent.brush";function v3(e,t){if(t){var r=Number.parseInt(t,10);if(!Ue(r))return e?.[r]}}var jy={chartName:"",tooltipPayloadSearcher:void 0,eventEmitter:void 0,defaultTooltipEventType:"axis"},m3=He({name:"options",initialState:jy,reducers:{createEventEmitter:e=>{e.eventEmitter==null&&(e.eventEmitter=Symbol("rechartsEventEmitter"))}}}),My=m3.reducer,{createEventEmitter:Ty}=m3.actions;function ky(e){return e.tooltip.syncInteraction}var Dy={chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},y3=He({name:"chartData",initialState:Dy,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:n}=t.payload;r!=null&&(e.dataStartIndex=r),n!=null&&(e.dataEndIndex=n)}}}),{setChartData:zl,setDataStartEndIndexes:Ny,setComputedData:iO}=y3.actions,Iy=y3.reducer,g3=()=>{};function Ry(){var e=F(lo),t=F(co),r=Me(),n=F(od),i=F(St),a=_i(),o=Ia(),s=F(u=>u.rootProps.className);E.useEffect(()=>{if(e==null)return g3;var u=(c,l,f)=>{if(t!==f&&e===c){if(n==="index"){r(l);return}if(i!=null){var d;if(typeof n=="function"){var h={activeTooltipIndex:l.payload.index==null?void 0:Number(l.payload.index),isTooltipActive:l.payload.active,activeIndex:l.payload.index==null?void 0:Number(l.payload.index),activeLabel:l.payload.label,activeDataKey:l.payload.dataKey,activeCoordinate:l.payload.coordinate},p=n(i,h);d=i[p]}else n==="value"&&(d=i.find(O=>String(O.value)===l.payload.label));var{coordinate:m}=l.payload;if(d==null||l.payload.active===!1||m==null||o==null){r(na({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0}));return}var{x:v,y}=m,b=Math.min(v,o.x+o.width),g=Math.min(y,o.y+o.height),w={x:a==="horizontal"?d.coordinate:b,y:a==="horizontal"?g:d.coordinate},C=na({active:l.payload.active,coordinate:w,dataKey:l.payload.dataKey,index:String(d.index),label:l.payload.label});r(C)}}};return tn.on(oa,u),()=>{tn.off(oa,u)}},[s,r,t,e,n,i,a,o])}function $y(){var e=F(lo),t=F(co),r=Me();E.useEffect(()=>{if(e==null)return g3;var n=(i,a,o)=>{t!==o&&e===i&&r(Ny(a))};return tn.on(Fl,n),()=>{tn.off(Fl,n)}},[r,t,e])}function Ly(){var e=Me();E.useEffect(()=>{e(Ty())},[e]),Ry(),$y()}function By(e,t,r,n,i,a){var o=F(d=>vy(d,e,t)),s=F(co),u=F(lo),c=F(od),l=F(ky),f=l?.active;E.useEffect(()=>{if(!f&&u!=null&&s!=null){var d=na({active:a,coordinate:r,dataKey:o,index:i,label:typeof n=="number"?String(n):n});tn.emit(oa,u,d,s)}},[f,r,o,i,n,s,u,c,a])}function ql(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Wl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ql(Object(r),!0).forEach(function(n){Fy(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ql(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Fy(e,t,r){return(t=zy(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zy(e){var t=qy(e,"string");return typeof t=="symbol"?t:t+""}function qy(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Wy(e){return e.dataKey}function Uy(e,t){return x.isValidElement(e)?x.cloneElement(e,t):typeof e=="function"?x.createElement(e,t):x.createElement(h7,t)}var Ul=[],Ky={allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",axisId:0,contentStyle:{},cursor:!0,filterNull:!0,isAnimationActive:!Or.isSsr,itemSorter:"name",itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,wrapperStyle:{}};function Vy(e){var t=ft(e,Ky),{active:r,allowEscapeViewBox:n,animationDuration:i,animationEasing:a,content:o,filterNull:s,isAnimationActive:u,offset:c,payloadUniqBy:l,position:f,reverseDirection:d,useTranslate3d:h,wrapperStyle:p,cursor:m,shared:v,trigger:y,defaultIndex:b,portal:g,axisId:w}=t,C=Me(),O=typeof b=="number"?String(b):b;E.useEffect(()=>{C(Cm({shared:v,trigger:y,axisId:w,active:r,defaultIndex:O}))},[C,v,y,w,r,O]);var P=Ia(),_=tf(),M=vm(v),{activeIndex:z,isActive:T}=F(ne=>gy(ne,M,y,O)),k=F(ne=>yy(ne,M,y,O)),W=F(ne=>h3(ne,M,y,O)),K=F(ne=>my(ne,M,y,O)),te=k,Y=Py(),B=r??T,[q,R]=f9([te,B]),L=M==="axis"?W:void 0;By(M,y,K,L,z,B);var se=g??Y;if(se==null)return null;var $=te??Ul;B||($=Ul),s&&$.length&&($=Ih(te.filter(ne=>ne.value!=null&&(ne.hide!==!0||t.includeHidden)),l,Wy));var Ee=$.length>0,Ge=x.createElement(C7,{allowEscapeViewBox:n,animationDuration:i,animationEasing:a,isAnimationActive:u,active:B,coordinate:K,hasPayload:Ee,offset:c,position:f,reverseDirection:d,useTranslate3d:h,viewBox:P,wrapperStyle:p,lastBoundingBox:q,innerRef:R,hasPortalFromProps:!!g},Uy(o,Wl(Wl({},t),{},{payload:$,label:L,active:B,coordinate:K,accessibilityLayer:_})));return x.createElement(x.Fragment,null,N1.createPortal(Ge,se),B&&x.createElement(Ey,{cursor:m,tooltipEventType:M,coordinate:K,payload:te,index:z}))}var c0={},f0={},d0={},Kl;function Hy(){return Kl||(Kl=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n,{signal:i,edges:a}={}){let o,s=null;const u=a!=null&&a.includes("leading"),c=a==null||a.includes("trailing"),l=()=>{s!==null&&(r.apply(o,s),o=void 0,s=null)},f=()=>{c&&l(),m()};let d=null;const h=()=>{d!=null&&clearTimeout(d),d=setTimeout(()=>{d=null,f()},n)},p=()=>{d!==null&&(clearTimeout(d),d=null)},m=()=>{p(),o=void 0,s=null},v=()=>{l()},y=function(...b){if(i?.aborted)return;o=this,s=b;const g=d==null;h(),u&&g&&l()};return y.schedule=h,y.cancel=m,y.flush=v,i?.addEventListener("abort",m,{once:!0}),y}e.debounce=t}(d0)),d0}var Vl;function Gy(){return Vl||(Vl=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Hy();function r(n,i=0,a={}){typeof a!="object"&&(a={});const{leading:o=!1,trailing:s=!0,maxWait:u}=a,c=Array(2);o&&(c[0]="leading"),s&&(c[1]="trailing");let l,f=null;const d=t.debounce(function(...m){l=n.apply(this,m),f=null},i,{edges:c}),h=function(...m){return u!=null&&(f===null&&(f=Date.now()),Date.now()-f>=u)?(l=n.apply(this,m),f=Date.now(),d.cancel(),d.schedule(),l):(d.apply(this,m),l)},p=()=>(d.flush(),l);return h.cancel=d.cancel,h.flush=p,h}e.debounce=r}(f0)),f0}var Hl;function Yy(){return Hl||(Hl=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Gy();function r(n,i=0,a={}){const{leading:o=!0,trailing:s=!0}=a;return t.debounce(n,i,{leading:o,maxWait:i,trailing:s})}e.throttle=r}(c0)),c0}var h0,Gl;function Zy(){return Gl||(Gl=1,h0=Yy().throttle),h0}var Xy=Zy();const Qy=S.getDefaultExportFromCjs(Xy);var Jy=process.env.NODE_ENV!=="production",qr=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a];if(Jy&&typeof console<"u"&&console.warn&&(r===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(r===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var o=0;console.warn(r.replace(/%s/g,()=>i[o++]))}};function Yl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function p0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Yl(Object(r),!0).forEach(function(n){eg(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yl(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function eg(e,t,r){return(t=tg(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tg(e){var t=rg(e,"string");return typeof t=="symbol"?t:t+""}function rg(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var b3=E.forwardRef((e,t)=>{var{aspect:r,initialDimension:n={width:-1,height:-1},width:i="100%",height:a="100%",minWidth:o=0,minHeight:s,maxHeight:u,children:c,debounce:l=0,id:f,className:d,onResize:h,style:p={}}=e,m=E.useRef(null),v=E.useRef();v.current=h,E.useImperativeHandle(t,()=>m.current);var[y,b]=E.useState({containerWidth:n.width,containerHeight:n.height}),g=E.useCallback((C,O)=>{b(P=>{var _=Math.round(C),M=Math.round(O);return P.containerWidth===_&&P.containerHeight===M?P:{containerWidth:_,containerHeight:M}})},[]);E.useEffect(()=>{var C=M=>{var z,{width:T,height:k}=M[0].contentRect;g(T,k),(z=v.current)===null||z===void 0||z.call(v,T,k)};l>0&&(C=Qy(C,l,{trailing:!0,leading:!1}));var O=new ResizeObserver(C),{width:P,height:_}=m.current.getBoundingClientRect();return g(P,_),O.observe(m.current),()=>{O.disconnect()}},[g,l]);var w=E.useMemo(()=>{var{containerWidth:C,containerHeight:O}=y;if(C<0||O<0)return null;qr(Ht(i)||Ht(a),`The width(%s) and height(%s) are both fixed numbers,
58
+ A`).concat(a,",").concat(a,",0,0,").concat(+(l<0),",").concat(w.x,",").concat(w.y,"Z")}else b+="L".concat(t,",").concat(r,"Z");return b},C4={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},x4=e=>{var t=ft(e,C4),{cx:r,cy:n,innerRadius:i,outerRadius:a,cornerRadius:o,forceCornerRadius:s,cornerIsExternal:u,startAngle:c,endAngle:l,className:f}=t;if(a<i||c===l)return null;var d=G.clsx("recharts-sector",f),h=a-i,p=It(o,h,0,!0),m;return p>0&&Math.abs(c-l)<360?m=b4({cx:r,cy:n,innerRadius:i,outerRadius:a,cornerRadius:Math.min(p,h/2),forceCornerRadius:s,cornerIsExternal:u,startAngle:c,endAngle:l}):m=cf({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:c,endAngle:l}),x.createElement("path",K0({},le(t,!0),{className:d,d:m}))};function w4(e,t,r){var n,i,a,o;if(e==="horizontal")n=t.x,a=n,i=r.top,o=r.top+r.height;else if(e==="vertical")i=t.y,o=i,n=r.left,a=r.left+r.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var{cx:s,cy:u,innerRadius:c,outerRadius:l,angle:f}=t,d=we(s,u,c,f),h=we(s,u,l,f);n=d.x,i=d.y,a=h.x,o=h.y}else return lf(t);return[{x:n,y:i},{x:a,y:o}]}var X2={},Q2={},J2={},Bu;function O4(){return Bu||(Bu=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=vc();function r(n){return t.isSymbol(n)?NaN:Number(n)}e.toNumber=r}(J2)),J2}var Fu;function E4(){return Fu||(Fu=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=O4();function r(n){return n?(n=t.toNumber(n),n===1/0||n===-1/0?(n<0?-1:1)*Number.MAX_VALUE:n===n?n:0):n===0?n:0}e.toFinite=r}(Q2)),Q2}var zu;function P4(){return zu||(zu=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=mc(),r=E4();function n(i,a,o){o&&typeof o!="number"&&t.isIterateeCall(i,a,o)&&(a=o=void 0),i=r.toFinite(i),a===void 0?(a=i,i=0):a=r.toFinite(a),o=o===void 0?i<a?1:-1:r.toFinite(o);const s=Math.max(Math.ceil((a-i)/(o||1)),0),u=new Array(s);for(let c=0;c<s;c++)u[c]=i,i+=o;return u}e.range=n}(X2)),X2}var e0,qu;function A4(){return qu||(qu=1,e0=P4().range),e0}var S4=A4();const ff=S.getDefaultExportFromCjs(S4);function Dt(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function _4(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function $a(e){let t,r,n;e.length!==2?(t=Dt,r=(s,u)=>Dt(e(s),u),n=(s,u)=>e(s)-u):(t=e===Dt||e===_4?e:j4,r=e,n=e);function i(s,u,c=0,l=s.length){if(c<l){if(t(u,u)!==0)return l;do{const f=c+l>>>1;r(s[f],u)<0?c=f+1:l=f}while(c<l)}return c}function a(s,u,c=0,l=s.length){if(c<l){if(t(u,u)!==0)return l;do{const f=c+l>>>1;r(s[f],u)<=0?c=f+1:l=f}while(c<l)}return c}function o(s,u,c=0,l=s.length){const f=i(s,u,c,l-1);return f>c&&n(s[f-1],u)>-n(s[f],u)?f-1:f}return{left:i,center:o,right:a}}function j4(){return 0}function df(e){return e===null?NaN:+e}function*M4(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const T4=$a(Dt),sn=T4.right;$a(df).center;class Wu extends Map{constructor(t,r=N4){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(Uu(this,t))}has(t){return super.has(Uu(this,t))}set(t,r){return super.set(k4(this,t),r)}delete(t){return super.delete(D4(this,t))}}function Uu({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function k4({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function D4({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function N4(e){return e!==null&&typeof e=="object"?e.valueOf():e}function I4(e=Dt){if(e===Dt)return hf;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function hf(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const R4=Math.sqrt(50),$4=Math.sqrt(10),L4=Math.sqrt(2);function Xn(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),o=a>=R4?10:a>=$4?5:a>=L4?2:1;let s,u,c;return i<0?(c=Math.pow(10,-i)/o,s=Math.round(e*c),u=Math.round(t*c),s/c<e&&++s,u/c>t&&--u,c=-c):(c=Math.pow(10,i)*o,s=Math.round(e/c),u=Math.round(t/c),s*c<e&&++s,u*c>t&&--u),u<s&&.5<=r&&r<2?Xn(e,t,r*2):[s,u,c]}function V0(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[i,a,o]=n?Xn(t,e,r):Xn(e,t,r);if(!(a>=i))return[];const s=a-i+1,u=new Array(s);if(n)if(o<0)for(let c=0;c<s;++c)u[c]=(a-c)/-o;else for(let c=0;c<s;++c)u[c]=(a-c)*o;else if(o<0)for(let c=0;c<s;++c)u[c]=(i+c)/-o;else for(let c=0;c<s;++c)u[c]=(i+c)*o;return u}function H0(e,t,r){return t=+t,e=+e,r=+r,Xn(e,t,r)[2]}function G0(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?H0(t,e,r):H0(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function Ku(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function Vu(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function pf(e,t,r=0,n=1/0,i){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=i===void 0?hf:I4(i);n>r;){if(n-r>600){const u=n-r+1,c=t-r+1,l=Math.log(u),f=.5*Math.exp(2*l/3),d=.5*Math.sqrt(l*f*(u-f)/u)*(c-u/2<0?-1:1),h=Math.max(r,Math.floor(t-c*f/u+d)),p=Math.min(n,Math.floor(t+(u-c)*f/u+d));pf(e,t,h,p,i)}const a=e[t];let o=r,s=n;for(Ir(e,r,t),i(e[n],a)>0&&Ir(e,r,n);o<s;){for(Ir(e,o,s),++o,--s;i(e[o],a)<0;)++o;for(;i(e[s],a)>0;)--s}i(e[r],a)===0?Ir(e,r,s):(++s,Ir(e,s,n)),s<=t&&(r=s+1),t<=s&&(n=s-1)}return e}function Ir(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function B4(e,t,r){if(e=Float64Array.from(M4(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return Vu(e);if(t>=1)return Ku(e);var n,i=(n-1)*t,a=Math.floor(i),o=Ku(pf(e,a).subarray(0,a+1)),s=Vu(e.subarray(a+1));return o+(s-o)*(i-a)}}function F4(e,t,r=df){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,a=Math.floor(i),o=+r(e[a],a,e),s=+r(e[a+1],a+1,e);return o+(s-o)*(i-a)}}function z4(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,a=new Array(i);++n<i;)a[n]=e+n*r;return a}function tt(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Pt(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 Y0=Symbol("implicit");function La(){var e=new Wu,t=[],r=[],n=Y0;function i(a){let o=e.get(a);if(o===void 0){if(n!==Y0)return n;e.set(a,o=t.push(a)-1)}return r[o%r.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new Wu;for(const o of a)e.has(o)||e.set(o,t.push(o)-1);return i},i.range=function(a){return arguments.length?(r=Array.from(a),i):r.slice()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return La(t,r).unknown(n)},tt.apply(i,arguments),i}function Ba(){var e=La().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,o,s=!1,u=0,c=0,l=.5;delete e.unknown;function f(){var d=t().length,h=i<n,p=h?i:n,m=h?n:i;a=(m-p)/Math.max(1,d-u+c*2),s&&(a=Math.floor(a)),p+=(m-p-a*(d-u))*l,o=a*(1-u),s&&(p=Math.round(p),o=Math.round(o));var v=z4(d).map(function(y){return p+a*y});return r(h?v.reverse():v)}return e.domain=function(d){return arguments.length?(t(d),f()):t()},e.range=function(d){return arguments.length?([n,i]=d,n=+n,i=+i,f()):[n,i]},e.rangeRound=function(d){return[n,i]=d,n=+n,i=+i,s=!0,f()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(d){return arguments.length?(s=!!d,f()):s},e.padding=function(d){return arguments.length?(u=Math.min(1,c=+d),f()):u},e.paddingInner=function(d){return arguments.length?(u=Math.min(1,d),f()):u},e.paddingOuter=function(d){return arguments.length?(c=+d,f()):c},e.align=function(d){return arguments.length?(l=Math.max(0,Math.min(1,d)),f()):l},e.copy=function(){return Ba(t(),[n,i]).round(s).paddingInner(u).paddingOuter(c).align(l)},tt.apply(f(),arguments)}function vf(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return vf(t())},e}function q4(){return vf(Ba.apply(null,arguments).paddingInner(1))}function Fa(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function mf(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function un(){}var Yr=.7,Qn=1/Yr,mr="\\s*([+-]?\\d+)\\s*",Zr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",st="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",W4=/^#([0-9a-f]{3,8})$/,U4=new RegExp(`^rgb\\(${mr},${mr},${mr}\\)$`),K4=new RegExp(`^rgb\\(${st},${st},${st}\\)$`),V4=new RegExp(`^rgba\\(${mr},${mr},${mr},${Zr}\\)$`),H4=new RegExp(`^rgba\\(${st},${st},${st},${Zr}\\)$`),G4=new RegExp(`^hsl\\(${Zr},${st},${st}\\)$`),Y4=new RegExp(`^hsla\\(${Zr},${st},${st},${Zr}\\)$`),Hu={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};Fa(un,Xr,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Gu,formatHex:Gu,formatHex8:Z4,formatHsl:X4,formatRgb:Yu,toString:Yu});function Gu(){return this.rgb().formatHex()}function Z4(){return this.rgb().formatHex8()}function X4(){return yf(this).formatHsl()}function Yu(){return this.rgb().formatRgb()}function Xr(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=W4.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?Zu(t):r===3?new Ne(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?jn(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?jn(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=U4.exec(e))?new Ne(t[1],t[2],t[3],1):(t=K4.exec(e))?new Ne(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=V4.exec(e))?jn(t[1],t[2],t[3],t[4]):(t=H4.exec(e))?jn(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=G4.exec(e))?Ju(t[1],t[2]/100,t[3]/100,1):(t=Y4.exec(e))?Ju(t[1],t[2]/100,t[3]/100,t[4]):Hu.hasOwnProperty(e)?Zu(Hu[e]):e==="transparent"?new Ne(NaN,NaN,NaN,0):null}function Zu(e){return new Ne(e>>16&255,e>>8&255,e&255,1)}function jn(e,t,r,n){return n<=0&&(e=t=r=NaN),new Ne(e,t,r,n)}function Q4(e){return e instanceof un||(e=Xr(e)),e?(e=e.rgb(),new Ne(e.r,e.g,e.b,e.opacity)):new Ne}function Z0(e,t,r,n){return arguments.length===1?Q4(e):new Ne(e,t,r,n??1)}function Ne(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}Fa(Ne,Z0,mf(un,{brighter(e){return e=e==null?Qn:Math.pow(Qn,e),new Ne(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Yr:Math.pow(Yr,e),new Ne(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ne(rr(this.r),rr(this.g),rr(this.b),Jn(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:Xu,formatHex:Xu,formatHex8:J4,formatRgb:Qu,toString:Qu}));function Xu(){return`#${Yt(this.r)}${Yt(this.g)}${Yt(this.b)}`}function J4(){return`#${Yt(this.r)}${Yt(this.g)}${Yt(this.b)}${Yt((isNaN(this.opacity)?1:this.opacity)*255)}`}function Qu(){const e=Jn(this.opacity);return`${e===1?"rgb(":"rgba("}${rr(this.r)}, ${rr(this.g)}, ${rr(this.b)}${e===1?")":`, ${e})`}`}function Jn(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function rr(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Yt(e){return e=rr(e),(e<16?"0":"")+e.toString(16)}function Ju(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new it(e,t,r,n)}function yf(e){if(e instanceof it)return new it(e.h,e.s,e.l,e.opacity);if(e instanceof un||(e=Xr(e)),!e)return new it;if(e instanceof it)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,s=a-i,u=(a+i)/2;return s?(t===a?o=(r-n)/s+(r<n)*6:r===a?o=(n-t)/s+2:o=(t-r)/s+4,s/=u<.5?a+i:2-a-i,o*=60):s=u>0&&u<1?0:o,new it(o,s,u,e.opacity)}function e5(e,t,r,n){return arguments.length===1?yf(e):new it(e,t,r,n??1)}function it(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Fa(it,e5,mf(un,{brighter(e){return e=e==null?Qn:Math.pow(Qn,e),new it(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Yr:Math.pow(Yr,e),new it(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,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new Ne(t0(e>=240?e-240:e+120,i,n),t0(e,i,n),t0(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new it(el(this.h),Mn(this.s),Mn(this.l),Jn(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=Jn(this.opacity);return`${e===1?"hsl(":"hsla("}${el(this.h)}, ${Mn(this.s)*100}%, ${Mn(this.l)*100}%${e===1?")":`, ${e})`}`}}));function el(e){return e=(e||0)%360,e<0?e+360:e}function Mn(e){return Math.max(0,Math.min(1,e||0))}function t0(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 za=e=>()=>e;function t5(e,t){return function(r){return e+r*t}}function r5(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function n5(e){return(e=+e)==1?gf:function(t,r){return r-t?r5(t,r,e):za(isNaN(t)?r:t)}}function gf(e,t){var r=t-e;return r?t5(e,r):za(isNaN(e)?t:e)}const tl=function e(t){var r=n5(t);function n(i,a){var o=r((i=Z0(i)).r,(a=Z0(a)).r),s=r(i.g,a.g),u=r(i.b,a.b),c=gf(i.opacity,a.opacity);return function(l){return i.r=o(l),i.g=s(l),i.b=u(l),i.opacity=c(l),i+""}}return n.gamma=e,n}(1);function i5(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i<r;++i)n[i]=e[i]*(1-a)+t[i]*a;return n}}function a5(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function o5(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),o;for(o=0;o<n;++o)i[o]=Er(e[o],t[o]);for(;o<r;++o)a[o]=t[o];return function(s){for(o=0;o<n;++o)a[o]=i[o](s);return a}}function s5(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function ei(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function u5(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=Er(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var X0=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,r0=new RegExp(X0.source,"g");function l5(e){return function(){return e}}function c5(e){return function(t){return e(t)+""}}function f5(e,t){var r=X0.lastIndex=r0.lastIndex=0,n,i,a,o=-1,s=[],u=[];for(e=e+"",t=t+"";(n=X0.exec(e))&&(i=r0.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),s[o]?s[o]+=a:s[++o]=a),(n=n[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,u.push({i:o,x:ei(n,i)})),r=r0.lastIndex;return r<t.length&&(a=t.slice(r),s[o]?s[o]+=a:s[++o]=a),s.length<2?u[0]?c5(u[0].x):l5(t):(t=u.length,function(c){for(var l=0,f;l<t;++l)s[(f=u[l]).i]=f.x(c);return s.join("")})}function Er(e,t){var r=typeof t,n;return t==null||r==="boolean"?za(t):(r==="number"?ei:r==="string"?(n=Xr(t))?(t=n,tl):f5:t instanceof Xr?tl:t instanceof Date?s5:a5(t)?i5:Array.isArray(t)?o5:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?u5:ei)(e,t)}function qa(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function d5(e,t){t===void 0&&(t=e,e=Er);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r<n;)a[r]=e(i,i=t[++r]);return function(o){var s=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return a[s](o-s)}}function h5(e){return function(){return e}}function ti(e){return+e}var rl=[0,1];function _e(e){return e}function Q0(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:h5(isNaN(t)?NaN:.5)}function p5(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function v5(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=Q0(i,n),a=r(o,a)):(n=Q0(n,i),a=r(a,o)),function(s){return a(n(s))}}function m5(e,t,r){var n=Math.min(e.length,t.length)-1,i=new Array(n),a=new Array(n),o=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<n;)i[o]=Q0(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(s){var u=sn(e,s,1,n)-1;return a[u](i[u](s))}}function ln(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function ji(){var e=rl,t=rl,r=Er,n,i,a,o=_e,s,u,c;function l(){var d=Math.min(e.length,t.length);return o!==_e&&(o=p5(e[0],e[d-1])),s=d>2?m5:v5,u=c=null,f}function f(d){return d==null||isNaN(d=+d)?a:(u||(u=s(e.map(n),t,r)))(n(o(d)))}return f.invert=function(d){return o(i((c||(c=s(t,e.map(n),ei)))(d)))},f.domain=function(d){return arguments.length?(e=Array.from(d,ti),l()):e.slice()},f.range=function(d){return arguments.length?(t=Array.from(d),l()):t.slice()},f.rangeRound=function(d){return t=Array.from(d),r=qa,l()},f.clamp=function(d){return arguments.length?(o=d?!0:_e,l()):o!==_e},f.interpolate=function(d){return arguments.length?(r=d,l()):r},f.unknown=function(d){return arguments.length?(a=d,f):a},function(d,h){return n=d,i=h,l()}}function Wa(){return ji()(_e,_e)}function y5(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function ri(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function br(e){return e=ri(Math.abs(e)),e?e[1]:NaN}function g5(e,t){return function(r,n){for(var i=r.length,a=[],o=0,s=e[0],u=0;i>0&&s>0&&(u+s+1>n&&(s=Math.max(1,n-u)),a.push(r.substring(i-=s,i+s)),!((u+=s+1)>n));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function b5(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var C5=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Qr(e){if(!(t=C5.exec(e)))throw new Error("invalid format: "+e);var t;return new Ua({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]})}Qr.prototype=Ua.prototype;function Ua(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+""}Ua.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 x5(e){e:for(var t=e.length,r=1,n=-1,i;r<t;++r)switch(e[r]){case".":n=i=r;break;case"0":n===0&&(n=r),i=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var bf;function w5(e,t){var r=ri(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(bf=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=n.length;return a===o?n:a>o?n+new Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+ri(e,Math.max(0,t+a-1))[0]}function nl(e,t){var r=ri(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const il={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:y5,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)=>nl(e*100,t),r:nl,s:w5,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function al(e){return e}var ol=Array.prototype.map,sl=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function O5(e){var t=e.grouping===void 0||e.thousands===void 0?al:g5(ol.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?al:b5(ol.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",u=e.nan===void 0?"NaN":e.nan+"";function c(f){f=Qr(f);var d=f.fill,h=f.align,p=f.sign,m=f.symbol,v=f.zero,y=f.width,b=f.comma,g=f.precision,w=f.trim,C=f.type;C==="n"?(b=!0,C="g"):il[C]||(g===void 0&&(g=12),w=!0,C="g"),(v||d==="0"&&h==="=")&&(v=!0,d="0",h="=");var O=m==="$"?r:m==="#"&&/[boxX]/.test(C)?"0"+C.toLowerCase():"",P=m==="$"?n:/[%p]/.test(C)?o:"",_=il[C],M=/[defgprs%]/.test(C);g=g===void 0?6:/[gprs]/.test(C)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g));function z(T){var k=O,W=P,K,te,Y;if(C==="c")W=_(T)+W,T="";else{T=+T;var B=T<0||1/T<0;if(T=isNaN(T)?u:_(Math.abs(T),g),w&&(T=x5(T)),B&&+T==0&&p!=="+"&&(B=!1),k=(B?p==="("?p:s:p==="-"||p==="("?"":p)+k,W=(C==="s"?sl[8+bf/3]:"")+W+(B&&p==="("?")":""),M){for(K=-1,te=T.length;++K<te;)if(Y=T.charCodeAt(K),48>Y||Y>57){W=(Y===46?i+T.slice(K+1):T.slice(K))+W,T=T.slice(0,K);break}}}b&&!v&&(T=t(T,1/0));var q=k.length+T.length+W.length,R=q<y?new Array(y-q+1).join(d):"";switch(b&&v&&(T=t(R+T,R.length?y-W.length:1/0),R=""),h){case"<":T=k+T+W+R;break;case"=":T=k+R+T+W;break;case"^":T=R.slice(0,q=R.length>>1)+k+T+W+R.slice(q);break;default:T=R+k+T+W;break}return a(T)}return z.toString=function(){return f+""},z}function l(f,d){var h=c((f=Qr(f),f.type="f",f)),p=Math.max(-8,Math.min(8,Math.floor(br(d)/3)))*3,m=Math.pow(10,-p),v=sl[8+p/3];return function(y){return h(m*y)+v}}return{format:c,formatPrefix:l}}var Tn,Ka,Cf;E5({thousands:",",grouping:[3],currency:["$",""]});function E5(e){return Tn=O5(e),Ka=Tn.format,Cf=Tn.formatPrefix,Tn}function P5(e){return Math.max(0,-br(Math.abs(e)))}function A5(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(br(t)/3)))*3-br(Math.abs(e)))}function S5(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,br(t)-br(e))+1}function xf(e,t,r,n){var i=G0(e,t,r),a;switch(n=Qr(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=A5(i,o))&&(n.precision=a),Cf(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=S5(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=P5(i))&&(n.precision=a-(n.type==="%")*2);break}}return Ka(n)}function $t(e){var t=e.domain;return e.ticks=function(r){var n=t();return V0(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return xf(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,a=n.length-1,o=n[i],s=n[a],u,c,l=10;for(s<o&&(c=o,o=s,s=c,c=i,i=a,a=c);l-- >0;){if(c=H0(o,s,r),c===u)return n[i]=o,n[a]=s,t(n);if(c>0)o=Math.floor(o/c)*c,s=Math.ceil(s/c)*c;else if(c<0)o=Math.ceil(o*c)/c,s=Math.floor(s*c)/c;else break;u=c}return e},e}function wf(){var e=Wa();return e.copy=function(){return ln(e,wf())},tt.apply(e,arguments),$t(e)}function Of(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,ti),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return Of(e).unknown(t)},e=arguments.length?Array.from(e,ti):[0,1],$t(r)}function Ef(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],a=e[n],o;return a<i&&(o=r,r=n,n=o,o=i,i=a,a=o),e[r]=t.floor(i),e[n]=t.ceil(a),e}function ul(e){return Math.log(e)}function ll(e){return Math.exp(e)}function _5(e){return-Math.log(-e)}function j5(e){return-Math.exp(-e)}function M5(e){return isFinite(e)?+("1e"+e):e<0?0:e}function T5(e){return e===10?M5:e===Math.E?Math.exp:t=>Math.pow(e,t)}function k5(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 cl(e){return(t,r)=>-e(-t,r)}function Va(e){const t=e(ul,ll),r=t.domain;let n=10,i,a;function o(){return i=k5(n),a=T5(n),r()[0]<0?(i=cl(i),a=cl(a),e(_5,j5)):e(ul,ll),t}return t.base=function(s){return arguments.length?(n=+s,o()):n},t.domain=function(s){return arguments.length?(r(s),o()):r()},t.ticks=s=>{const u=r();let c=u[0],l=u[u.length-1];const f=l<c;f&&([c,l]=[l,c]);let d=i(c),h=i(l),p,m;const v=s==null?10:+s;let y=[];if(!(n%1)&&h-d<v){if(d=Math.floor(d),h=Math.ceil(h),c>0){for(;d<=h;++d)for(p=1;p<n;++p)if(m=d<0?p/a(-d):p*a(d),!(m<c)){if(m>l)break;y.push(m)}}else for(;d<=h;++d)for(p=n-1;p>=1;--p)if(m=d>0?p/a(-d):p*a(d),!(m<c)){if(m>l)break;y.push(m)}y.length*2<v&&(y=V0(c,l,v))}else y=V0(d,h,Math.min(h-d,v)).map(a);return f?y.reverse():y},t.tickFormat=(s,u)=>{if(s==null&&(s=10),u==null&&(u=n===10?"s":","),typeof u!="function"&&(!(n%1)&&(u=Qr(u)).precision==null&&(u.trim=!0),u=Ka(u)),s===1/0)return u;const c=Math.max(1,n*s/t.ticks().length);return l=>{let f=l/a(Math.round(i(l)));return f*n<n-.5&&(f*=n),f<=c?u(l):""}},t.nice=()=>r(Ef(r(),{floor:s=>a(Math.floor(i(s))),ceil:s=>a(Math.ceil(i(s)))})),t}function Pf(){const e=Va(ji()).domain([1,10]);return e.copy=()=>ln(e,Pf()).base(e.base()),tt.apply(e,arguments),e}function fl(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function dl(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Ha(e){var t=1,r=e(fl(t),dl(t));return r.constant=function(n){return arguments.length?e(fl(t=+n),dl(t)):t},$t(r)}function Af(){var e=Ha(ji());return e.copy=function(){return ln(e,Af()).constant(e.constant())},tt.apply(e,arguments)}function hl(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function D5(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function N5(e){return e<0?-e*e:e*e}function Ga(e){var t=e(_e,_e),r=1;function n(){return r===1?e(_e,_e):r===.5?e(D5,N5):e(hl(r),hl(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},$t(t)}function Ya(){var e=Ga(ji());return e.copy=function(){return ln(e,Ya()).exponent(e.exponent())},tt.apply(e,arguments),e}function I5(){return Ya.apply(null,arguments).exponent(.5)}function pl(e){return Math.sign(e)*e*e}function R5(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function Sf(){var e=Wa(),t=[0,1],r=!1,n;function i(a){var o=R5(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(pl(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,ti)).map(pl)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(r=!!a,i):r},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return Sf(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},tt.apply(i,arguments),$t(i)}function _f(){var e=[],t=[],r=[],n;function i(){var o=0,s=Math.max(1,t.length);for(r=new Array(s-1);++o<s;)r[o-1]=F4(e,o/s);return a}function a(o){return o==null||isNaN(o=+o)?n:t[sn(r,o)]}return a.invertExtent=function(o){var s=t.indexOf(o);return s<0?[NaN,NaN]:[s>0?r[s-1]:e[0],s<r.length?r[s]:e[e.length-1]]},a.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let s of o)s!=null&&!isNaN(s=+s)&&e.push(s);return e.sort(Dt),i()},a.range=function(o){return arguments.length?(t=Array.from(o),i()):t.slice()},a.unknown=function(o){return arguments.length?(n=o,a):n},a.quantiles=function(){return r.slice()},a.copy=function(){return _f().domain(e).range(t).unknown(n)},tt.apply(a,arguments)}function jf(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(u){return u!=null&&u<=u?i[sn(n,u,0,r)]:a}function s(){var u=-1;for(n=new Array(r);++u<r;)n[u]=((u+1)*t-(u-r)*e)/(r+1);return o}return o.domain=function(u){return arguments.length?([e,t]=u,e=+e,t=+t,s()):[e,t]},o.range=function(u){return arguments.length?(r=(i=Array.from(u)).length-1,s()):i.slice()},o.invertExtent=function(u){var c=i.indexOf(u);return c<0?[NaN,NaN]:c<1?[e,n[0]]:c>=r?[n[r-1],t]:[n[c-1],n[c]]},o.unknown=function(u){return arguments.length&&(a=u),o},o.thresholds=function(){return n.slice()},o.copy=function(){return jf().domain([e,t]).range(i).unknown(a)},tt.apply($t(o),arguments)}function Mf(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[sn(e,a,0,n)]:r}return i.domain=function(a){return arguments.length?(e=Array.from(a),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),n=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return Mf().domain(e).range(t).unknown(r)},tt.apply(i,arguments)}const n0=new Date,i0=new Date;function he(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),s=i.ceil(a);return a-o<s-a?o:s},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,s)=>{const u=[];if(a=i.ceil(a),s=s==null?1:Math.floor(s),!(a<o)||!(s>0))return u;let c;do u.push(c=new Date(+a)),t(a,s),e(a);while(c<a&&a<o);return u},i.filter=a=>he(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!a(o););else for(;--s>=0;)for(;t(o,1),!a(o););}),r&&(i.count=(a,o)=>(n0.setTime(+a),i0.setTime(+o),e(n0),e(i0),Math.floor(r(n0,i0))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?o=>n(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const ni=he(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);ni.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?he(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):ni);ni.range;const pt=1e3,Qe=pt*60,vt=Qe*60,Ct=vt*24,Za=Ct*7,vl=Ct*30,a0=Ct*365,Zt=he(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*pt)},(e,t)=>(t-e)/pt,e=>e.getUTCSeconds());Zt.range;const Xa=he(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*pt)},(e,t)=>{e.setTime(+e+t*Qe)},(e,t)=>(t-e)/Qe,e=>e.getMinutes());Xa.range;const Qa=he(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Qe)},(e,t)=>(t-e)/Qe,e=>e.getUTCMinutes());Qa.range;const Ja=he(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*pt-e.getMinutes()*Qe)},(e,t)=>{e.setTime(+e+t*vt)},(e,t)=>(t-e)/vt,e=>e.getHours());Ja.range;const eo=he(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*vt)},(e,t)=>(t-e)/vt,e=>e.getUTCHours());eo.range;const cn=he(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Qe)/Ct,e=>e.getDate()-1);cn.range;const Mi=he(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Ct,e=>e.getUTCDate()-1);Mi.range;const Tf=he(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Ct,e=>Math.floor(e/Ct));Tf.range;function lr(e){return he(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())*Qe)/Za)}const Ti=lr(0),ii=lr(1),$5=lr(2),L5=lr(3),Cr=lr(4),B5=lr(5),F5=lr(6);Ti.range;ii.range;$5.range;L5.range;Cr.range;B5.range;F5.range;function cr(e){return he(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)/Za)}const ki=cr(0),ai=cr(1),z5=cr(2),q5=cr(3),xr=cr(4),W5=cr(5),U5=cr(6);ki.range;ai.range;z5.range;q5.range;xr.range;W5.range;U5.range;const to=he(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());to.range;const ro=he(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());ro.range;const xt=he(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());xt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:he(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)});xt.range;const wt=he(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());wt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:he(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)});wt.range;function kf(e,t,r,n,i,a){const o=[[Zt,1,pt],[Zt,5,5*pt],[Zt,15,15*pt],[Zt,30,30*pt],[a,1,Qe],[a,5,5*Qe],[a,15,15*Qe],[a,30,30*Qe],[i,1,vt],[i,3,3*vt],[i,6,6*vt],[i,12,12*vt],[n,1,Ct],[n,2,2*Ct],[r,1,Za],[t,1,vl],[t,3,3*vl],[e,1,a0]];function s(c,l,f){const d=l<c;d&&([c,l]=[l,c]);const h=f&&typeof f.range=="function"?f:u(c,l,f),p=h?h.range(c,+l+1):[];return d?p.reverse():p}function u(c,l,f){const d=Math.abs(l-c)/f,h=$a(([,,v])=>v).right(o,d);if(h===o.length)return e.every(G0(c/a0,l/a0,f));if(h===0)return ni.every(Math.max(G0(c,l,f),1));const[p,m]=o[d/o[h-1][2]<o[h][2]/d?h-1:h];return p.every(m)}return[s,u]}const[K5,V5]=kf(wt,ro,ki,Tf,eo,Qa),[H5,G5]=kf(xt,to,Ti,cn,Ja,Xa);function o0(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 s0(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 Rr(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function Y5(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,u=e.shortMonths,c=$r(i),l=Lr(i),f=$r(a),d=Lr(a),h=$r(o),p=Lr(o),m=$r(s),v=Lr(s),y=$r(u),b=Lr(u),g={a:B,A:q,b:R,B:$,c:null,d:xl,e:xl,f:gp,g:_p,G:Mp,H:vp,I:mp,j:yp,L:Df,m:bp,M:Cp,p:se,q:L,Q:El,s:Pl,S:xp,u:wp,U:Op,V:Ep,w:Pp,W:Ap,x:null,X:null,y:Sp,Y:jp,Z:Tp,"%":Ol},w={a:be,A:Ge,b:ne,B:me,c:null,d:wl,e:wl,f:Ip,g:Kp,G:Hp,H:kp,I:Dp,j:Np,L:If,m:Rp,M:$p,p:Pe,q:qt,Q:El,s:Pl,S:Lp,u:Bp,U:Fp,V:zp,w:qp,W:Wp,x:null,X:null,y:Up,Y:Vp,Z:Gp,"%":Ol},C={a:z,A:T,b:k,B:W,c:K,d:bl,e:bl,f:fp,g:gl,G:yl,H:Cl,I:Cl,j:sp,L:cp,m:op,M:up,p:M,q:ap,Q:hp,s:pp,S:lp,u:ep,U:tp,V:rp,w:J5,W:np,x:te,X:Y,y:gl,Y:yl,Z:ip,"%":dp};g.x=O(r,g),g.X=O(n,g),g.c=O(t,g),w.x=O(r,w),w.X=O(n,w),w.c=O(t,w);function O(I,U){return function(V){var j=[],Te=-1,ee=0,$e=I.length,Le,Wt,Yo;for(V instanceof Date||(V=new Date(+V));++Te<$e;)I.charCodeAt(Te)===37&&(j.push(I.slice(ee,Te)),(Wt=ml[Le=I.charAt(++Te)])!=null?Le=I.charAt(++Te):Wt=Le==="e"?" ":"0",(Yo=U[Le])&&(Le=Yo(V,Wt)),j.push(Le),ee=Te+1);return j.push(I.slice(ee,Te)),j.join("")}}function P(I,U){return function(V){var j=Rr(1900,void 0,1),Te=_(j,I,V+="",0),ee,$e;if(Te!=V.length)return null;if("Q"in j)return new Date(j.Q);if("s"in j)return new Date(j.s*1e3+("L"in j?j.L:0));if(U&&!("Z"in j)&&(j.Z=0),"p"in j&&(j.H=j.H%12+j.p*12),j.m===void 0&&(j.m="q"in j?j.q:0),"V"in j){if(j.V<1||j.V>53)return null;"w"in j||(j.w=1),"Z"in j?(ee=s0(Rr(j.y,0,1)),$e=ee.getUTCDay(),ee=$e>4||$e===0?ai.ceil(ee):ai(ee),ee=Mi.offset(ee,(j.V-1)*7),j.y=ee.getUTCFullYear(),j.m=ee.getUTCMonth(),j.d=ee.getUTCDate()+(j.w+6)%7):(ee=o0(Rr(j.y,0,1)),$e=ee.getDay(),ee=$e>4||$e===0?ii.ceil(ee):ii(ee),ee=cn.offset(ee,(j.V-1)*7),j.y=ee.getFullYear(),j.m=ee.getMonth(),j.d=ee.getDate()+(j.w+6)%7)}else("W"in j||"U"in j)&&("w"in j||(j.w="u"in j?j.u%7:"W"in j?1:0),$e="Z"in j?s0(Rr(j.y,0,1)).getUTCDay():o0(Rr(j.y,0,1)).getDay(),j.m=0,j.d="W"in j?(j.w+6)%7+j.W*7-($e+5)%7:j.w+j.U*7-($e+6)%7);return"Z"in j?(j.H+=j.Z/100|0,j.M+=j.Z%100,s0(j)):o0(j)}}function _(I,U,V,j){for(var Te=0,ee=U.length,$e=V.length,Le,Wt;Te<ee;){if(j>=$e)return-1;if(Le=U.charCodeAt(Te++),Le===37){if(Le=U.charAt(Te++),Wt=C[Le in ml?U.charAt(Te++):Le],!Wt||(j=Wt(I,V,j))<0)return-1}else if(Le!=V.charCodeAt(j++))return-1}return j}function M(I,U,V){var j=c.exec(U.slice(V));return j?(I.p=l.get(j[0].toLowerCase()),V+j[0].length):-1}function z(I,U,V){var j=h.exec(U.slice(V));return j?(I.w=p.get(j[0].toLowerCase()),V+j[0].length):-1}function T(I,U,V){var j=f.exec(U.slice(V));return j?(I.w=d.get(j[0].toLowerCase()),V+j[0].length):-1}function k(I,U,V){var j=y.exec(U.slice(V));return j?(I.m=b.get(j[0].toLowerCase()),V+j[0].length):-1}function W(I,U,V){var j=m.exec(U.slice(V));return j?(I.m=v.get(j[0].toLowerCase()),V+j[0].length):-1}function K(I,U,V){return _(I,t,U,V)}function te(I,U,V){return _(I,r,U,V)}function Y(I,U,V){return _(I,n,U,V)}function B(I){return o[I.getDay()]}function q(I){return a[I.getDay()]}function R(I){return u[I.getMonth()]}function $(I){return s[I.getMonth()]}function se(I){return i[+(I.getHours()>=12)]}function L(I){return 1+~~(I.getMonth()/3)}function be(I){return o[I.getUTCDay()]}function Ge(I){return a[I.getUTCDay()]}function ne(I){return u[I.getUTCMonth()]}function me(I){return s[I.getUTCMonth()]}function Pe(I){return i[+(I.getUTCHours()>=12)]}function qt(I){return 1+~~(I.getUTCMonth()/3)}return{format:function(I){var U=O(I+="",g);return U.toString=function(){return I},U},parse:function(I){var U=P(I+="",!1);return U.toString=function(){return I},U},utcFormat:function(I){var U=O(I+="",w);return U.toString=function(){return I},U},utcParse:function(I){var U=P(I+="",!0);return U.toString=function(){return I},U}}}var ml={"-":"",_:" ",0:"0"},ge=/^\s*\d+/,Z5=/^%/,X5=/[\\^$*+?|[\]().{}]/g;function H(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a<r?new Array(r-a+1).join(t)+i:i)}function Q5(e){return e.replace(X5,"\\$&")}function $r(e){return new RegExp("^(?:"+e.map(Q5).join("|")+")","i")}function Lr(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function J5(e,t,r){var n=ge.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function ep(e,t,r){var n=ge.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function tp(e,t,r){var n=ge.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function rp(e,t,r){var n=ge.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function np(e,t,r){var n=ge.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function yl(e,t,r){var n=ge.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function gl(e,t,r){var n=ge.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function ip(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function ap(e,t,r){var n=ge.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function op(e,t,r){var n=ge.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function bl(e,t,r){var n=ge.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function sp(e,t,r){var n=ge.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function Cl(e,t,r){var n=ge.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function up(e,t,r){var n=ge.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function lp(e,t,r){var n=ge.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function cp(e,t,r){var n=ge.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function fp(e,t,r){var n=ge.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function dp(e,t,r){var n=Z5.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function hp(e,t,r){var n=ge.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function pp(e,t,r){var n=ge.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function xl(e,t){return H(e.getDate(),t,2)}function vp(e,t){return H(e.getHours(),t,2)}function mp(e,t){return H(e.getHours()%12||12,t,2)}function yp(e,t){return H(1+cn.count(xt(e),e),t,3)}function Df(e,t){return H(e.getMilliseconds(),t,3)}function gp(e,t){return Df(e,t)+"000"}function bp(e,t){return H(e.getMonth()+1,t,2)}function Cp(e,t){return H(e.getMinutes(),t,2)}function xp(e,t){return H(e.getSeconds(),t,2)}function wp(e){var t=e.getDay();return t===0?7:t}function Op(e,t){return H(Ti.count(xt(e)-1,e),t,2)}function Nf(e){var t=e.getDay();return t>=4||t===0?Cr(e):Cr.ceil(e)}function Ep(e,t){return e=Nf(e),H(Cr.count(xt(e),e)+(xt(e).getDay()===4),t,2)}function Pp(e){return e.getDay()}function Ap(e,t){return H(ii.count(xt(e)-1,e),t,2)}function Sp(e,t){return H(e.getFullYear()%100,t,2)}function _p(e,t){return e=Nf(e),H(e.getFullYear()%100,t,2)}function jp(e,t){return H(e.getFullYear()%1e4,t,4)}function Mp(e,t){var r=e.getDay();return e=r>=4||r===0?Cr(e):Cr.ceil(e),H(e.getFullYear()%1e4,t,4)}function Tp(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+H(t/60|0,"0",2)+H(t%60,"0",2)}function wl(e,t){return H(e.getUTCDate(),t,2)}function kp(e,t){return H(e.getUTCHours(),t,2)}function Dp(e,t){return H(e.getUTCHours()%12||12,t,2)}function Np(e,t){return H(1+Mi.count(wt(e),e),t,3)}function If(e,t){return H(e.getUTCMilliseconds(),t,3)}function Ip(e,t){return If(e,t)+"000"}function Rp(e,t){return H(e.getUTCMonth()+1,t,2)}function $p(e,t){return H(e.getUTCMinutes(),t,2)}function Lp(e,t){return H(e.getUTCSeconds(),t,2)}function Bp(e){var t=e.getUTCDay();return t===0?7:t}function Fp(e,t){return H(ki.count(wt(e)-1,e),t,2)}function Rf(e){var t=e.getUTCDay();return t>=4||t===0?xr(e):xr.ceil(e)}function zp(e,t){return e=Rf(e),H(xr.count(wt(e),e)+(wt(e).getUTCDay()===4),t,2)}function qp(e){return e.getUTCDay()}function Wp(e,t){return H(ai.count(wt(e)-1,e),t,2)}function Up(e,t){return H(e.getUTCFullYear()%100,t,2)}function Kp(e,t){return e=Rf(e),H(e.getUTCFullYear()%100,t,2)}function Vp(e,t){return H(e.getUTCFullYear()%1e4,t,4)}function Hp(e,t){var r=e.getUTCDay();return e=r>=4||r===0?xr(e):xr.ceil(e),H(e.getUTCFullYear()%1e4,t,4)}function Gp(){return"+0000"}function Ol(){return"%"}function El(e){return+e}function Pl(e){return Math.floor(+e/1e3)}var dr,$f,Lf;Yp({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 Yp(e){return dr=Y5(e),$f=dr.format,dr.parse,Lf=dr.utcFormat,dr.utcParse,dr}function Zp(e){return new Date(e)}function Xp(e){return e instanceof Date?+e:+new Date(+e)}function no(e,t,r,n,i,a,o,s,u,c){var l=Wa(),f=l.invert,d=l.domain,h=c(".%L"),p=c(":%S"),m=c("%I:%M"),v=c("%I %p"),y=c("%a %d"),b=c("%b %d"),g=c("%B"),w=c("%Y");function C(O){return(u(O)<O?h:s(O)<O?p:o(O)<O?m:a(O)<O?v:n(O)<O?i(O)<O?y:b:r(O)<O?g:w)(O)}return l.invert=function(O){return new Date(f(O))},l.domain=function(O){return arguments.length?d(Array.from(O,Xp)):d().map(Zp)},l.ticks=function(O){var P=d();return e(P[0],P[P.length-1],O??10)},l.tickFormat=function(O,P){return P==null?C:c(P)},l.nice=function(O){var P=d();return(!O||typeof O.range!="function")&&(O=t(P[0],P[P.length-1],O??10)),O?d(Ef(P,O)):l},l.copy=function(){return ln(l,no(e,t,r,n,i,a,o,s,u,c))},l}function Qp(){return tt.apply(no(H5,G5,xt,to,Ti,cn,Ja,Xa,Zt,$f).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Jp(){return tt.apply(no(K5,V5,wt,ro,ki,Mi,eo,Qa,Zt,Lf).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Di(){var e=0,t=1,r,n,i,a,o=_e,s=!1,u;function c(f){return f==null||isNaN(f=+f)?u:o(i===0?.5:(f=(a(f)-r)*i,s?Math.max(0,Math.min(1,f)):f))}c.domain=function(f){return arguments.length?([e,t]=f,r=a(e=+e),n=a(t=+t),i=r===n?0:1/(n-r),c):[e,t]},c.clamp=function(f){return arguments.length?(s=!!f,c):s},c.interpolator=function(f){return arguments.length?(o=f,c):o};function l(f){return function(d){var h,p;return arguments.length?([h,p]=d,o=f(h,p),c):[o(0),o(1)]}}return c.range=l(Er),c.rangeRound=l(qa),c.unknown=function(f){return arguments.length?(u=f,c):u},function(f){return a=f,r=f(e),n=f(t),i=r===n?0:1/(n-r),c}}function Lt(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function Bf(){var e=$t(Di()(_e));return e.copy=function(){return Lt(e,Bf())},Pt.apply(e,arguments)}function Ff(){var e=Va(Di()).domain([1,10]);return e.copy=function(){return Lt(e,Ff()).base(e.base())},Pt.apply(e,arguments)}function zf(){var e=Ha(Di());return e.copy=function(){return Lt(e,zf()).constant(e.constant())},Pt.apply(e,arguments)}function io(){var e=Ga(Di());return e.copy=function(){return Lt(e,io()).exponent(e.exponent())},Pt.apply(e,arguments)}function ev(){return io.apply(null,arguments).exponent(.5)}function qf(){var e=[],t=_e;function r(n){if(n!=null&&!isNaN(n=+n))return t((sn(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let i of n)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(Dt),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,i)=>t(i/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,a)=>B4(e,a/n))},r.copy=function(){return qf(t).domain(e)},Pt.apply(r,arguments)}function Ni(){var e=0,t=.5,r=1,n=1,i,a,o,s,u,c=_e,l,f=!1,d;function h(m){return isNaN(m=+m)?d:(m=.5+((m=+l(m))-a)*(n*m<n*a?s:u),c(f?Math.max(0,Math.min(1,m)):m))}h.domain=function(m){return arguments.length?([e,t,r]=m,i=l(e=+e),a=l(t=+t),o=l(r=+r),s=i===a?0:.5/(a-i),u=a===o?0:.5/(o-a),n=a<i?-1:1,h):[e,t,r]},h.clamp=function(m){return arguments.length?(f=!!m,h):f},h.interpolator=function(m){return arguments.length?(c=m,h):c};function p(m){return function(v){var y,b,g;return arguments.length?([y,b,g]=v,c=d5(m,[y,b,g]),h):[c(0),c(.5),c(1)]}}return h.range=p(Er),h.rangeRound=p(qa),h.unknown=function(m){return arguments.length?(d=m,h):d},function(m){return l=m,i=m(e),a=m(t),o=m(r),s=i===a?0:.5/(a-i),u=a===o?0:.5/(o-a),n=a<i?-1:1,h}}function Wf(){var e=$t(Ni()(_e));return e.copy=function(){return Lt(e,Wf())},Pt.apply(e,arguments)}function Uf(){var e=Va(Ni()).domain([.1,1,10]);return e.copy=function(){return Lt(e,Uf()).base(e.base())},Pt.apply(e,arguments)}function Kf(){var e=Ha(Ni());return e.copy=function(){return Lt(e,Kf()).constant(e.constant())},Pt.apply(e,arguments)}function ao(){var e=Ga(Ni());return e.copy=function(){return Lt(e,ao()).exponent(e.exponent())},Pt.apply(e,arguments)}function tv(){return ao.apply(null,arguments).exponent(.5)}const Fr=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Ba,scaleDiverging:Wf,scaleDivergingLog:Uf,scaleDivergingPow:ao,scaleDivergingSqrt:tv,scaleDivergingSymlog:Kf,scaleIdentity:Of,scaleImplicit:Y0,scaleLinear:wf,scaleLog:Pf,scaleOrdinal:La,scalePoint:q4,scalePow:Ya,scaleQuantile:_f,scaleQuantize:jf,scaleRadial:Sf,scaleSequential:Bf,scaleSequentialLog:Ff,scaleSequentialPow:io,scaleSequentialQuantile:qf,scaleSequentialSqrt:ev,scaleSequentialSymlog:zf,scaleSqrt:I5,scaleSymlog:Af,scaleThreshold:Mf,scaleTime:Qp,scaleUtc:Jp,tickFormat:xf},Symbol.toStringTag,{value:"Module"}));var Bt=e=>e.chartData,rv=A([Bt],e=>{var t=e.chartData!=null?e.chartData.length-1:0;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),Ii=(e,t,r,n)=>n?rv(e):Bt(e);function wr(e){if(Array.isArray(e)&&e.length===2){var[t,r]=e;if(je(t)&&je(r))return!0}return!1}function Al(e,t,r){return r?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function nv(e,t){if(t&&typeof e!="function"&&Array.isArray(e)&&e.length===2){var[r,n]=e,i,a;if(je(r))i=r;else if(typeof r=="function")return;if(je(n))a=n;else if(typeof n=="function")return;var o=[i,a];if(wr(o))return o}}function iv(e,t,r){if(!(!r&&t==null)){if(typeof e=="function"&&t!=null)try{var n=e(t,r);if(wr(n))return Al(n,t,r)}catch{}if(Array.isArray(e)&&e.length===2){var[i,a]=e,o,s;if(i==="auto")t!=null&&(o=Math.min(...t));else if(N(i))o=i;else if(typeof i=="function")try{t!=null&&(o=i(t?.[0]))}catch{}else if(typeof i=="string"&&pu.test(i)){var u=pu.exec(i);if(u==null||t==null)o=void 0;else{var c=+u[1];o=t[0]-c}}else o=t?.[0];if(a==="auto")t!=null&&(s=Math.max(...t));else if(N(a))s=a;else if(typeof a=="function")try{t!=null&&(s=a(t?.[1]))}catch{}else if(typeof a=="string"&&vu.test(a)){var l=vu.exec(a);if(l==null||t==null)s=void 0;else{var f=+l[1];s=t[1]+f}}else s=t?.[1];var d=[o,s];if(wr(d))return t==null?d:Al(d,t,r)}}}var Pr=1e9,av={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},so,ie=!0,et="[DecimalError] ",nr=et+"Invalid argument: ",oo=et+"Exponent out of range: ",Ar=Math.floor,Vt=Math.pow,ov=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,We,ye=1e7,re=7,Vf=9007199254740991,oi=Ar(Vf/re),D={};D.absoluteValue=D.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};D.comparedTo=D.cmp=function(e){var t,r,n,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(n=a.d.length,i=e.d.length,t=0,r=n<i?n:i;t<r;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return n===i?0:n>i^a.s<0?1:-1};D.decimalPlaces=D.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*re;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};D.dividedBy=D.div=function(e){return yt(this,new this.constructor(e))};D.dividedToIntegerBy=D.idiv=function(e){var t=this,r=t.constructor;return J(yt(t,new r(e),0,1),r.precision)};D.equals=D.eq=function(e){return!this.cmp(e)};D.exponent=function(){return ce(this)};D.greaterThan=D.gt=function(e){return this.cmp(e)>0};D.greaterThanOrEqualTo=D.gte=function(e){return this.cmp(e)>=0};D.isInteger=D.isint=function(){return this.e>this.d.length-2};D.isNegative=D.isneg=function(){return this.s<0};D.isPositive=D.ispos=function(){return this.s>0};D.isZero=function(){return this.s===0};D.lessThan=D.lt=function(e){return this.cmp(e)<0};D.lessThanOrEqualTo=D.lte=function(e){return this.cmp(e)<1};D.logarithm=D.log=function(e){var t,r=this,n=r.constructor,i=n.precision,a=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(We))throw Error(et+"NaN");if(r.s<1)throw Error(et+(r.s?"NaN":"-Infinity"));return r.eq(We)?new n(0):(ie=!1,t=yt(Jr(r,a),Jr(e,a),a),ie=!0,J(t,i))};D.minus=D.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Yf(t,e):Hf(t,(e.s=-e.s,e))};D.modulo=D.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(et+"NaN");return r.s?(ie=!1,t=yt(r,e,0,1).times(e),ie=!0,r.minus(t)):J(new n(r),i)};D.naturalExponential=D.exp=function(){return Gf(this)};D.naturalLogarithm=D.ln=function(){return Jr(this)};D.negated=D.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};D.plus=D.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Hf(t,e):Yf(t,(e.s=-e.s,e))};D.precision=D.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(nr+e);if(t=ce(i)+1,n=i.d.length-1,r=n*re+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};D.squareRoot=D.sqrt=function(){var e,t,r,n,i,a,o,s=this,u=s.constructor;if(s.s<1){if(!s.s)return new u(0);throw Error(et+"NaN")}for(e=ce(s),ie=!1,i=Math.sqrt(+s),i==0||i==1/0?(t=ot(s.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Ar((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new u(t)):n=new u(i.toString()),r=u.precision,i=o=r+3;;)if(a=n,n=a.plus(yt(s,a,o+2)).times(.5),ot(a.d).slice(0,o)===(t=ot(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(J(a,r+1,0),a.times(a).eq(s)){n=a;break}}else if(t!="9999")break;o+=4}return ie=!0,J(n,r)};D.times=D.mul=function(e){var t,r,n,i,a,o,s,u,c,l=this,f=l.constructor,d=l.d,h=(e=new f(e)).d;if(!l.s||!e.s)return new f(0);for(e.s*=l.s,r=l.e+e.e,u=d.length,c=h.length,u<c&&(a=d,d=h,h=a,o=u,u=c,c=o),a=[],o=u+c,n=o;n--;)a.push(0);for(n=c;--n>=0;){for(t=0,i=u+n;i>n;)s=a[i]+h[n]*d[i-n-1]+t,a[i--]=s%ye|0,t=s/ye|0;a[i]=(a[i]+t)%ye|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,ie?J(e,f.precision):e};D.toDecimalPlaces=D.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(lt(e,0,Pr),t===void 0?t=n.rounding:lt(t,0,8),J(r,e+ce(r)+1,t))};D.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=sr(n,!0):(lt(e,0,Pr),t===void 0?t=i.rounding:lt(t,0,8),n=J(new i(n),e+1,t),r=sr(n,!0,e+1)),r};D.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?sr(i):(lt(e,0,Pr),t===void 0?t=a.rounding:lt(t,0,8),n=J(new a(i),e+ce(i)+1,t),r=sr(n.abs(),!1,e+ce(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};D.toInteger=D.toint=function(){var e=this,t=e.constructor;return J(new t(e),ce(e)+1,t.rounding)};D.toNumber=function(){return+this};D.toPower=D.pow=function(e){var t,r,n,i,a,o,s=this,u=s.constructor,c=12,l=+(e=new u(e));if(!e.s)return new u(We);if(s=new u(s),!s.s){if(e.s<1)throw Error(et+"Infinity");return s}if(s.eq(We))return s;if(n=u.precision,e.eq(We))return J(s,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=s.s,o){if((r=l<0?-l:l)<=Vf){for(i=new u(We),t=Math.ceil(n/re+4),ie=!1;r%2&&(i=i.times(s),_l(i.d,t)),r=Ar(r/2),r!==0;)s=s.times(s),_l(s.d,t);return ie=!0,e.s<0?new u(We).div(i):J(i,n)}}else if(a<0)throw Error(et+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,s.s=1,ie=!1,i=e.times(Jr(s,n+c)),ie=!0,i=Gf(i),i.s=a,i};D.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=ce(i),n=sr(i,r<=a.toExpNeg||r>=a.toExpPos)):(lt(e,1,Pr),t===void 0?t=a.rounding:lt(t,0,8),i=J(new a(i),e,t),r=ce(i),n=sr(i,e<=r||r<=a.toExpNeg,e)),n};D.toSignificantDigits=D.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(lt(e,1,Pr),t===void 0?t=n.rounding:lt(t,0,8)),J(new n(r),e,t)};D.toString=D.valueOf=D.val=D.toJSON=D[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=ce(e),r=e.constructor;return sr(e,t<=r.toExpNeg||t>=r.toExpPos)};function Hf(e,t){var r,n,i,a,o,s,u,c,l=e.constructor,f=l.precision;if(!e.s||!t.s)return t.s||(t=new l(e)),ie?J(t,f):t;if(u=e.d,c=t.d,o=e.e,i=t.e,u=u.slice(),a=o-i,a){for(a<0?(n=u,a=-a,s=c.length):(n=c,i=o,s=u.length),o=Math.ceil(f/re),s=o>s?o+1:s+1,a>s&&(a=s,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(s=u.length,a=c.length,s-a<0&&(a=s,n=c,c=u,u=n),r=0;a;)r=(u[--a]=u[a]+c[a]+r)/ye|0,u[a]%=ye;for(r&&(u.unshift(r),++i),s=u.length;u[--s]==0;)u.pop();return t.d=u,t.e=i,ie?J(t,f):t}function lt(e,t,r){if(e!==~~e||e<t||e>r)throw Error(nr+e)}function ot(e){var t,r,n,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)n=e[t]+"",r=re-n.length,r&&(a+=Tt(r)),a+=n;o=e[t],n=o+"",r=re-n.length,r&&(a+=Tt(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var yt=function(){function e(n,i){var a,o=0,s=n.length;for(n=n.slice();s--;)a=n[s]*i+o,n[s]=a%ye|0,o=a/ye|0;return o&&n.unshift(o),n}function t(n,i,a,o){var s,u;if(a!=o)u=a>o?1:-1;else for(s=u=0;s<a;s++)if(n[s]!=i[s]){u=n[s]>i[s]?1:-1;break}return u}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]<i[a]?1:0,n[a]=o*ye+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o){var s,u,c,l,f,d,h,p,m,v,y,b,g,w,C,O,P,_,M=n.constructor,z=n.s==i.s?1:-1,T=n.d,k=i.d;if(!n.s)return new M(n);if(!i.s)throw Error(et+"Division by zero");for(u=n.e-i.e,P=k.length,C=T.length,h=new M(z),p=h.d=[],c=0;k[c]==(T[c]||0);)++c;if(k[c]>(T[c]||0)&&--u,a==null?b=a=M.precision:o?b=a+(ce(n)-ce(i))+1:b=a,b<0)return new M(0);if(b=b/re+2|0,c=0,P==1)for(l=0,k=k[0],b++;(c<C||l)&&b--;c++)g=l*ye+(T[c]||0),p[c]=g/k|0,l=g%k|0;else{for(l=ye/(k[0]+1)|0,l>1&&(k=e(k,l),T=e(T,l),P=k.length,C=T.length),w=P,m=T.slice(0,P),v=m.length;v<P;)m[v++]=0;_=k.slice(),_.unshift(0),O=k[0],k[1]>=ye/2&&++O;do l=0,s=t(k,m,P,v),s<0?(y=m[0],P!=v&&(y=y*ye+(m[1]||0)),l=y/O|0,l>1?(l>=ye&&(l=ye-1),f=e(k,l),d=f.length,v=m.length,s=t(f,m,d,v),s==1&&(l--,r(f,P<d?_:k,d))):(l==0&&(s=l=1),f=k.slice()),d=f.length,d<v&&f.unshift(0),r(m,f,v),s==-1&&(v=m.length,s=t(k,m,P,v),s<1&&(l++,r(m,P<v?_:k,v))),v=m.length):s===0&&(l++,m=[0]),p[c++]=l,s&&m[0]?m[v++]=T[w]||0:(m=[T[w]],v=1);while((w++<C||m[0]!==void 0)&&b--)}return p[0]||p.shift(),h.e=u,J(h,o?a+ce(h)+1:a)}}();function Gf(e,t){var r,n,i,a,o,s,u=0,c=0,l=e.constructor,f=l.precision;if(ce(e)>16)throw Error(oo+ce(e));if(!e.s)return new l(We);for(ie=!1,s=f,o=new l(.03125);e.abs().gte(.1);)e=e.times(o),c+=5;for(n=Math.log(Vt(2,c))/Math.LN10*2+5|0,s+=n,r=i=a=new l(We),l.precision=s;;){if(i=J(i.times(e),s),r=r.times(++u),o=a.plus(yt(i,r,s)),ot(o.d).slice(0,s)===ot(a.d).slice(0,s)){for(;c--;)a=J(a.times(a),s);return l.precision=f,t==null?(ie=!0,J(a,f)):a}a=o}}function ce(e){for(var t=e.e*re,r=e.d[0];r>=10;r/=10)t++;return t}function u0(e,t,r){if(t>e.LN10.sd())throw ie=!0,r&&(e.precision=r),Error(et+"LN10 precision limit exceeded");return J(new e(e.LN10),t)}function Tt(e){for(var t="";e--;)t+="0";return t}function Jr(e,t){var r,n,i,a,o,s,u,c,l,f=1,d=10,h=e,p=h.d,m=h.constructor,v=m.precision;if(h.s<1)throw Error(et+(h.s?"NaN":"-Infinity"));if(h.eq(We))return new m(0);if(t==null?(ie=!1,c=v):c=t,h.eq(10))return t==null&&(ie=!0),u0(m,c);if(c+=d,m.precision=c,r=ot(p),n=r.charAt(0),a=ce(h),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)h=h.times(e),r=ot(h.d),n=r.charAt(0),f++;a=ce(h),n>1?(h=new m("0."+r),a++):h=new m(n+"."+r.slice(1))}else return u=u0(m,c+2,v).times(a+""),h=Jr(new m(n+"."+r.slice(1)),c-d).plus(u),m.precision=v,t==null?(ie=!0,J(h,v)):h;for(s=o=h=yt(h.minus(We),h.plus(We),c),l=J(h.times(h),c),i=3;;){if(o=J(o.times(l),c),u=s.plus(yt(o,new m(i),c)),ot(u.d).slice(0,c)===ot(s.d).slice(0,c))return s=s.times(2),a!==0&&(s=s.plus(u0(m,c+2,v).times(a+""))),s=yt(s,new m(f),c),m.precision=v,t==null?(ie=!0,J(s,v)):s;s=u,i+=2}}function Sl(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=Ar(r/re),e.d=[],n=(r+1)%re,r<0&&(n+=re),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=re;n<i;)e.d.push(+t.slice(n,n+=re));t=t.slice(n),n=re-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),ie&&(e.e>oi||e.e<-oi))throw Error(oo+r)}else e.s=0,e.e=0,e.d=[0];return e}function J(e,t,r){var n,i,a,o,s,u,c,l,f=e.d;for(o=1,a=f[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=re,i=t,c=f[l=0];else{if(l=Math.ceil((n+1)/re),a=f.length,l>=a)return e;for(c=a=f[l],o=1;a>=10;a/=10)o++;n%=re,i=n-re+o}if(r!==void 0&&(a=Vt(10,o-i-1),s=c/a%10|0,u=t<0||f[l+1]!==void 0||c%a,u=r<4?(s||u)&&(r==0||r==(e.s<0?3:2)):s>5||s==5&&(r==4||u||r==6&&(n>0?i>0?c/Vt(10,o-i):0:f[l-1])%10&1||r==(e.s<0?8:7))),t<1||!f[0])return u?(a=ce(e),f.length=1,t=t-a-1,f[0]=Vt(10,(re-t%re)%re),e.e=Ar(-t/re)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(n==0?(f.length=l,a=1,l--):(f.length=l+1,a=Vt(10,re-n),f[l]=i>0?(c/Vt(10,o-i)%Vt(10,i)|0)*a:0),u)for(;;)if(l==0){(f[0]+=a)==ye&&(f[0]=1,++e.e);break}else{if(f[l]+=a,f[l]!=ye)break;f[l--]=0,a=1}for(n=f.length;f[--n]===0;)f.pop();if(ie&&(e.e>oi||e.e<-oi))throw Error(oo+ce(e));return e}function Yf(e,t){var r,n,i,a,o,s,u,c,l,f,d=e.constructor,h=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),ie?J(t,h):t;if(u=e.d,f=t.d,n=t.e,c=e.e,u=u.slice(),o=c-n,o){for(l=o<0,l?(r=u,o=-o,s=f.length):(r=f,n=c,s=u.length),i=Math.max(Math.ceil(h/re),s)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=u.length,s=f.length,l=i<s,l&&(s=i),i=0;i<s;i++)if(u[i]!=f[i]){l=u[i]<f[i];break}o=0}for(l&&(r=u,u=f,f=r,t.s=-t.s),s=u.length,i=f.length-s;i>0;--i)u[s++]=0;for(i=f.length;i>o;){if(u[--i]<f[i]){for(a=i;a&&u[--a]===0;)u[a]=ye-1;--u[a],u[i]+=ye}u[i]-=f[i]}for(;u[--s]===0;)u.pop();for(;u[0]===0;u.shift())--n;return u[0]?(t.d=u,t.e=n,ie?J(t,h):t):new d(0)}function sr(e,t,r){var n,i=ce(e),a=ot(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+Tt(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+Tt(-i-1)+a,r&&(n=r-o)>0&&(a+=Tt(n))):i>=o?(a+=Tt(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+Tt(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=Tt(n))),e.s<0?"-"+a:a}function _l(e,t){if(e.length>t)return e.length=t,!0}function Zf(e){var t,r,n;function i(a){var o=this;if(!(o instanceof i))return new i(a);if(o.constructor=i,a instanceof i){o.s=a.s,o.e=a.e,o.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(nr+a);if(a>0)o.s=1;else if(a<0)a=-a,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(a===~~a&&a<1e7){o.e=0,o.d=[a];return}return Sl(o,a.toString())}else if(typeof a!="string")throw Error(nr+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,ov.test(a))Sl(o,a);else throw Error(nr+a)}if(i.prototype=D,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=Zf,i.config=i.set=sv,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<n.length;)e.hasOwnProperty(r=n[t++])||(e[r]=this[r]);return i.config(e),i}function sv(e){if(!e||typeof e!="object")throw Error(et+"Object expected");var t,r,n,i=["precision",1,Pr,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((n=e[r=i[t]])!==void 0)if(Ar(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(nr+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(nr+r+": "+n);return this}var so=Zf(av);We=new so(1);const X=so;var uv=e=>e,Xf={},Qf=e=>e===Xf,jl=e=>function t(){return arguments.length===0||arguments.length===1&&Qf(arguments.length<=0?void 0:arguments[0])?t:e(...arguments)},Jf=(e,t)=>e===1?t:jl(function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];var a=n.filter(o=>o!==Xf).length;return a>=e?t(...n):Jf(e-a,jl(function(){for(var o=arguments.length,s=new Array(o),u=0;u<o;u++)s[u]=arguments[u];var c=n.map(l=>Qf(l)?s.shift():l);return t(...c,...s)}))}),Ri=e=>Jf(e.length,e),J0=(e,t)=>{for(var r=[],n=e;n<t;++n)r[n-e]=n;return r},lv=Ri((e,t)=>Array.isArray(t)?t.map(e):Object.keys(t).map(r=>t[r]).map(e)),cv=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return uv;var i=r.reverse(),a=i[0],o=i.slice(1);return function(){return o.reduce((s,u)=>u(s),a(...arguments))}},ea=e=>Array.isArray(e)?e.reverse():e.split("").reverse().join(""),ed=e=>{var t=null,r=null;return function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return t&&i.every((o,s)=>{var u;return o===((u=t)===null||u===void 0?void 0:u[s])})||(t=i,r=e(...i)),r}};function td(e){var t;return e===0?t=1:t=Math.floor(new X(e).abs().log(10).toNumber())+1,t}function rd(e,t,r){for(var n=new X(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}Ri((e,t,r)=>{var n=+e,i=+t;return n+r*(i-n)});Ri((e,t,r)=>{var n=t-+e;return n=n||1/0,(r-e)/n});Ri((e,t,r)=>{var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});var nd=e=>{var[t,r]=e,[n,i]=[t,r];return t>r&&([n,i]=[r,t]),[n,i]},id=(e,t,r)=>{if(e.lte(0))return new X(0);var n=td(e.toNumber()),i=new X(10).pow(n),a=e.div(i),o=n!==1?.05:.1,s=new X(Math.ceil(a.div(o).toNumber())).add(r).mul(o),u=s.mul(i);return t?new X(u.toNumber()):new X(Math.ceil(u.toNumber()))},fv=(e,t,r)=>{var n=new X(1),i=new X(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new X(10).pow(td(e)-1),i=new X(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new X(Math.floor(e)))}else e===0?i=new X(Math.floor((t-1)/2)):r||(i=new X(Math.floor(e)));var o=Math.floor((t-1)/2),s=cv(lv(u=>i.add(new X(u-o).mul(n)).toNumber()),J0);return s(0,t)},ad=function(t,r,n,i){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((r-t)/(n-1)))return{step:new X(0),tickMin:new X(0),tickMax:new X(0)};var o=id(new X(r).sub(t).div(n-1),i,a),s;t<=0&&r>=0?s=new X(0):(s=new X(t).add(r).div(2),s=s.sub(new X(s).mod(o)));var u=Math.ceil(s.sub(t).div(o).toNumber()),c=Math.ceil(new X(r).sub(s).div(o).toNumber()),l=u+c+1;return l>n?ad(t,r,n,i,a+1):(l<n&&(c=r>0?c+(n-l):c,u=r>0?u:u+(n-l)),{step:o,tickMin:s.sub(new X(u).mul(o)),tickMax:s.add(new X(c).mul(o))})};function dv(e){var[t,r]=e,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=Math.max(n,2),[o,s]=nd([t,r]);if(o===-1/0||s===1/0){var u=s===1/0?[o,...J0(0,n-1).map(()=>1/0)]:[...J0(0,n-1).map(()=>-1/0),s];return t>r?ea(u):u}if(o===s)return fv(o,n,i);var{step:c,tickMin:l,tickMax:f}=ad(o,s,a,i,0),d=rd(l,f.add(new X(.1).mul(c)),c);return t>r?ea(d):d}function hv(e,t){var[r,n]=e,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,[a,o]=nd([r,n]);if(a===-1/0||o===1/0)return[r,n];if(a===o)return[a];var s=Math.max(t,2),u=id(new X(o).sub(a).div(s-1),i,0),c=[...rd(new X(a),new X(o),u),o];return i===!1&&(c=c.map(l=>Math.round(l))),r>n?ea(c):c}var pv=ed(dv),vv=ed(hv),mv=e=>e.rootProps.barCategoryGap,$i=e=>e.rootProps.stackOffset,uo=e=>e.options.chartName,lo=e=>e.rootProps.syncId,od=e=>e.rootProps.syncMethod,co=e=>e.options.eventEmitter,dt={allowDuplicatedCategory:!0,angleAxisId:0,reversed:!1,scale:"auto",tick:!0,type:"category"},ze={allowDataOverflow:!1,allowDuplicatedCategory:!0,radiusAxisId:0,scale:"auto",tick:!0,tickCount:5,type:"number"},Li=(e,t)=>{if(!(!e||!t))return e!=null&&e.reversed?[t[1],t[0]]:t},yv={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!1,dataKey:void 0,domain:void 0,id:dt.angleAxisId,includeHidden:!1,name:void 0,reversed:dt.reversed,scale:dt.scale,tick:dt.tick,tickCount:void 0,ticks:void 0,type:dt.type,unit:void 0},gv={allowDataOverflow:ze.allowDataOverflow,allowDecimals:!1,allowDuplicatedCategory:ze.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:ze.radiusAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:ze.scale,tick:ze.tick,tickCount:ze.tickCount,ticks:void 0,type:ze.type,unit:void 0},bv={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:dt.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:dt.angleAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:dt.scale,tick:dt.tick,tickCount:void 0,ticks:void 0,type:"number",unit:void 0},Cv={allowDataOverflow:ze.allowDataOverflow,allowDecimals:!1,allowDuplicatedCategory:ze.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:ze.radiusAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:ze.scale,tick:ze.tick,tickCount:ze.tickCount,ticks:void 0,type:"category",unit:void 0},fo=(e,t)=>e.polarAxis.angleAxis[t]!=null?e.polarAxis.angleAxis[t]:e.layout.layoutType==="radial"?bv:yv,ho=(e,t)=>e.polarAxis.radiusAxis[t]!=null?e.polarAxis.radiusAxis[t]:e.layout.layoutType==="radial"?Cv:gv,Bi=e=>e.polarOptions,po=A([Ot,Et,Ee],A6),sd=A([Bi,po],(e,t)=>{if(e!=null)return It(e.innerRadius,t,0)}),ud=A([Bi,po],(e,t)=>{if(e!=null)return It(e.outerRadius,t,t*.8)}),xv=e=>{if(e==null)return[0,0];var{startAngle:t,endAngle:r}=e;return[t,r]},ld=A([Bi],xv);A([fo,ld],Li);var cd=A([po,sd,ud],(e,t,r)=>{if(!(e==null||t==null||r==null))return[t,r]});A([ho,cd],Li);var fd=A([Q,Bi,sd,ud,Ot,Et],(e,t,r,n,i,a)=>{if(!(e!=="centric"&&e!=="radial"||t==null||r==null||n==null)){var{cx:o,cy:s,startAngle:u,endAngle:c}=t;return{cx:It(o,i,i/2),cy:It(s,a,a/2),innerRadius:r,outerRadius:n,startAngle:u,endAngle:c,clockWise:!1}}}),fe=(e,t)=>t,Fi=(e,t,r)=>r;function vo(e){return e?.id}var pe=e=>{var t=Q(e);return t==="horizontal"?"xAxis":t==="vertical"?"yAxis":t==="centric"?"angleAxis":"radiusAxis"},Sr=e=>e.tooltip.settings.axisId,ve=e=>{var t=pe(e),r=Sr(e);return fn(e,t,r)};function dd(e,t,r){var{chartData:n=[]}=t,i=r?.dataKey,a=new Map;return e.forEach(o=>{var s,u=(s=o.data)!==null&&s!==void 0?s:n;if(!(u==null||u.length===0)){var c=vo(o);u.forEach((l,f)=>{var d=i==null?f:String(Oe(l,i,null)),h=Oe(l,o.dataKey,0),p;a.has(d)?p=a.get(d):p={},Object.assign(p,{[c]:h}),a.set(d,p)})}}),Array.from(a.values())}function mo(e){return e.stackId!=null&&e.dataKey!=null}function Ml(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function si(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ml(Object(r),!0).forEach(function(n){wv(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ml(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wv(e,t,r){return(t=Ov(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ov(e){var t=Ev(e,"string");return typeof t=="symbol"?t:t+""}function Ev(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ta=[0,"auto"],Be={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},At=(e,t)=>{var r=e.cartesianAxis.xAxis[t];return r??Be},Fe={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:ta,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:Pi},Ft=(e,t)=>{var r=e.cartesianAxis.yAxis[t];return r??Fe},Pv={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:""},yo=(e,t)=>{var r=e.cartesianAxis.zAxis[t];return r??Pv},Re=(e,t,r)=>{switch(t){case"xAxis":return At(e,r);case"yAxis":return Ft(e,r);case"zAxis":return yo(e,r);case"angleAxis":return fo(e,r);case"radiusAxis":return ho(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},Av=(e,t,r)=>{switch(t){case"xAxis":return At(e,r);case"yAxis":return Ft(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},fn=(e,t,r)=>{switch(t){case"xAxis":return At(e,r);case"yAxis":return Ft(e,r);case"angleAxis":return fo(e,r);case"radiusAxis":return ho(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},hd=e=>e.graphicalItems.cartesianItems.some(t=>t.type==="bar")||e.graphicalItems.polarItems.some(t=>t.type==="radialBar");function pd(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 go=e=>e.graphicalItems.cartesianItems,Sv=A([fe,Fi],pd),vd=(e,t,r)=>e.filter(r).filter(n=>t?.includeHidden===!0?!0:!n.hide),dn=A([go,Re,Sv],vd),md=A([dn],e=>e.filter(t=>t.type==="area"||t.type==="bar").filter(mo)),yd=e=>e.filter(t=>!("stackId"in t)||t.stackId===void 0),gd=A([dn],yd),bd=e=>e.map(t=>t.data).filter(Boolean).flat(1),_v=A([dn],bd),Cd=(e,t)=>{var{chartData:r=[],dataStartIndex:n,dataEndIndex:i}=t;return e.length>0?e:r.slice(n,i+1)},bo=A([_v,Ii],Cd),xd=(e,t,r)=>t?.dataKey!=null?e.map(n=>({value:Oe(n,t.dataKey)})):r.length>0?r.map(n=>n.dataKey).flatMap(n=>e.map(i=>({value:Oe(i,n)}))):e.map(n=>({value:n})),zi=A([bo,Re,dn],xd);function wd(e,t){switch(e){case"xAxis":return t.direction==="x";case"yAxis":return t.direction==="y";default:return!1}}function fr(e){return e.filter(t=>ut(t)||t instanceof Date).map(Number).filter(t=>Ue(t)===!1)}function jv(e,t,r){return!r||typeof t!="number"||Ue(t)?[]:r.length?fr(r.flatMap(n=>{var i=Oe(e,n.dataKey),a,o;if(Array.isArray(i)?[a,o]=i:a=o=i,!(!je(a)||!je(o)))return[t-a,t+o]})):[]}var Mv=A([md,Ii,ve],dd),Od=(e,t,r)=>{var n={},i=t.reduce((a,o)=>(o.stackId==null||(a[o.stackId]==null&&(a[o.stackId]=[]),a[o.stackId].push(o)),a),n);return Object.fromEntries(Object.entries(i).map(a=>{var[o,s]=a,u=s.map(vo);return[o,{stackedData:z6(e,u,r),graphicalItems:s}]}))},ra=A([Mv,md,$i],Od),Ed=(e,t,r)=>{var{dataStartIndex:n,dataEndIndex:i}=t;if(r!=="zAxis"){var a=K6(e,n,i);if(!(a!=null&&a[0]===0&&a[1]===0))return a}},Tv=A([ra,Bt,fe],Ed),Pd=(e,t,r,n,i)=>r.length>0?e.flatMap(a=>r.flatMap(o=>{var s,u,c=(s=n[o.id])===null||s===void 0?void 0:s.filter(f=>wd(i,f)),l=Oe(a,(u=t.dataKey)!==null&&u!==void 0?u:o.dataKey);return{value:l,errorDomain:jv(a,l,c)}})).filter(Boolean):t?.dataKey!=null?e.map(a=>({value:Oe(a,t.dataKey),errorDomain:[]})):e.map(a=>({value:a,errorDomain:[]})),qi=e=>e.errorBars,Ad=(e,t,r)=>e.flatMap(n=>t[n.id]).filter(Boolean).filter(n=>wd(r,n));A([gd,qi,fe],Ad);var kv=A([bo,Re,gd,qi,fe],Pd);function Dv(e){var{value:t}=e;if(ut(t)||t instanceof Date)return t}var Tl=e=>{var t=e.flatMap(n=>[n.value,n.errorDomain]).flat(1),r=fr(t);if(r.length!==0)return[Math.min(...r),Math.max(...r)]},Nv=(e,t,r)=>{var n=e.map(Dv).filter(i=>i!=null);return r&&(t.dataKey==null||t.allowDuplicatedCategory&&q1(n))?ff(0,e.length):t.allowDuplicatedCategory?n:Array.from(new Set(n))},Co=e=>{var t;if(e==null||!("domain"in e))return ta;if(e.domain!=null)return e.domain;if(e.ticks!=null){if(e.type==="number"){var r=fr(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:ta},ui=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r.filter(Boolean);if(i.length!==0){var a=i.flat(),o=Math.min(...a),s=Math.max(...a);return[o,s]}},Sd=e=>e.referenceElements.dots,_r=(e,t,r)=>e.filter(n=>n.ifOverflow==="extendDomain").filter(n=>t==="xAxis"?n.xAxisId===r:n.yAxisId===r),Iv=A([Sd,fe,Fi],_r),_d=e=>e.referenceElements.areas,Rv=A([_d,fe,Fi],_r),jd=e=>e.referenceElements.lines,$v=A([jd,fe,Fi],_r),Md=(e,t)=>{var r=fr(e.map(n=>t==="xAxis"?n.x:n.y));if(r.length!==0)return[Math.min(...r),Math.max(...r)]},Lv=A(Iv,fe,Md),Td=(e,t)=>{var r=fr(e.flatMap(n=>[t==="xAxis"?n.x1:n.y1,t==="xAxis"?n.x2:n.y2]));if(r.length!==0)return[Math.min(...r),Math.max(...r)]},Bv=A([Rv,fe],Td),kd=(e,t)=>{var r=fr(e.map(n=>t==="xAxis"?n.x:n.y));if(r.length!==0)return[Math.min(...r),Math.max(...r)]},Fv=A($v,fe,kd),zv=A(Lv,Fv,Bv,(e,t,r)=>ui(e,r,t)),qv=A([Re],Co),Dd=(e,t,r,n,i,a,o)=>{var s=nv(t,e.allowDataOverflow);if(s!=null)return s;var u=a==="vertical"&&o==="xAxis"||a==="horizontal"&&o==="yAxis",c=u?ui(r,i,Tl(n)):ui(i,Tl(n));return iv(t,c,e.allowDataOverflow)},Wv=A([Re,qv,Tv,kv,zv,Q,fe],Dd),Uv=[0,1],Nd=(e,t,r,n,i,a,o)=>{if(!((e==null||r==null||r.length===0)&&o===void 0)){var{dataKey:s,type:u}=e,c=ct(t,a);return c&&s==null?ff(0,r.length):u==="category"?Nv(n,e,c):i==="expand"?Uv:o}},xo=A([Re,Q,bo,zi,$i,fe,Wv],Nd),Id=(e,t,r,n,i)=>{if(e!=null){var{scale:a,type:o}=e;if(a==="auto")return t==="radial"&&i==="radiusAxis"?"band":t==="radial"&&i==="angleAxis"?"linear":o==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?"point":o==="category"?"band":"linear";if(typeof a=="string"){var s="scale".concat(ga(a));return s in Fr?s:"point"}}},hn=A([Re,Q,hd,uo,fe],Id);function Kv(e){if(e!=null){if(e in Fr)return Fr[e]();var t="scale".concat(ga(e));if(t in Fr)return Fr[t]()}}function wo(e,t,r,n){if(!(r==null||n==null)){if(typeof e.scale=="function")return e.scale.copy().domain(r).range(n);var i=Kv(t);if(i!=null){var a=i.domain(r).range(n);return $6(a),a}}}var Rd=(e,t,r)=>{var n=Co(t);if(!(r!=="auto"&&r!=="linear")){if(t!=null&&t.tickCount&&Array.isArray(n)&&(n[0]==="auto"||n[1]==="auto")&&wr(e))return pv(e,t.tickCount,t.allowDecimals);if(t!=null&&t.tickCount&&t.type==="number"&&wr(e))return vv(e,t.tickCount,t.allowDecimals)}},Oo=A([xo,fn,hn],Rd),$d=(e,t,r,n)=>{if(n!=="angleAxis"&&e?.type==="number"&&wr(t)&&Array.isArray(r)&&r.length>0){var i=t[0],a=r[0],o=t[1],s=r[r.length-1];return[Math.min(i,a),Math.max(o,s)]}return t},Vv=A([Re,xo,Oo,fe],$d),Hv=A(zi,Re,(e,t)=>{if(!(!t||t.type!=="number")){var r=1/0,n=Array.from(fr(e.map(s=>s.value))).sort((s,u)=>s-u);if(n.length<2)return 1/0;var i=n[n.length-1]-n[0];if(i===0)return 1/0;for(var a=0;a<n.length-1;a++){var o=n[a+1]-n[a];r=Math.min(r,o)}return r/i}}),Ld=A(Hv,Q,mv,Ee,(e,t,r,n)=>n,(e,t,r,n,i)=>{if(!je(e))return 0;var a=t==="vertical"?n.height:n.width;if(i==="gap")return e*a/2;if(i==="no-gap"){var o=It(r,e*a),s=e*a/2;return s-o-(s-o)/a*o}return 0}),Gv=(e,t)=>{var r=At(e,t);return r==null||typeof r.padding!="string"?0:Ld(e,"xAxis",t,r.padding)},Yv=(e,t)=>{var r=Ft(e,t);return r==null||typeof r.padding!="string"?0:Ld(e,"yAxis",t,r.padding)},Zv=A(At,Gv,(e,t)=>{var r,n;if(e==null)return{left:0,right:0};var{padding:i}=e;return typeof i=="string"?{left:t,right:t}:{left:((r=i.left)!==null&&r!==void 0?r:0)+t,right:((n=i.right)!==null&&n!==void 0?n:0)+t}}),Xv=A(Ft,Yv,(e,t)=>{var r,n;if(e==null)return{top:0,bottom:0};var{padding:i}=e;return typeof i=="string"?{top:t,bottom:t}:{top:((r=i.top)!==null&&r!==void 0?r:0)+t,bottom:((n=i.bottom)!==null&&n!==void 0?n:0)+t}}),Qv=A([Ee,Zv,Si,Ai,(e,t,r)=>r],(e,t,r,n,i)=>{var{padding:a}=n;return i?[a.left,r.width-a.right]:[e.left+t.left,e.left+e.width-t.right]}),Jv=A([Ee,Q,Xv,Si,Ai,(e,t,r)=>r],(e,t,r,n,i,a)=>{var{padding:o}=i;return a?[n.height-o.bottom,o.top]:t==="horizontal"?[e.top+e.height-r.bottom,e.top+r.top]:[e.top+r.top,e.top+e.height-r.bottom]}),pn=(e,t,r,n)=>{var i;switch(t){case"xAxis":return Qv(e,r,n);case"yAxis":return Jv(e,r,n);case"zAxis":return(i=yo(e,r))===null||i===void 0?void 0:i.range;case"angleAxis":return ld(e);case"radiusAxis":return cd(e,r);default:return}},Bd=A([Re,pn],Li),jr=A([Re,hn,Vv,Bd],wo);A([dn,qi,fe],Ad);function Fd(e,t){return e.id<t.id?-1:e.id>t.id?1:0}var Wi=(e,t)=>t,Ui=(e,t,r)=>r,em=A(Da,Wi,Ui,(e,t,r)=>e.filter(n=>n.orientation===t).filter(n=>n.mirror===r).sort(Fd)),tm=A(Na,Wi,Ui,(e,t,r)=>e.filter(n=>n.orientation===t).filter(n=>n.mirror===r).sort(Fd)),zd=(e,t)=>({width:e.width,height:t.height}),rm=(e,t)=>{var r=typeof t.width=="number"?t.width:Pi;return{width:r,height:e.height}},nm=A(Ee,At,zd),im=(e,t,r)=>{switch(t){case"top":return e.top;case"bottom":return r-e.bottom;default:return 0}},am=(e,t,r)=>{switch(t){case"left":return e.left;case"right":return r-e.right;default:return 0}},om=A(Et,Ee,em,Wi,Ui,(e,t,r,n,i)=>{var a={},o;return r.forEach(s=>{var u=zd(t,s);o==null&&(o=im(t,n,e));var c=n==="top"&&!i||n==="bottom"&&i;a[s.id]=o-Number(c)*u.height,o+=(c?-1:1)*u.height}),a}),sm=A(Ot,Ee,tm,Wi,Ui,(e,t,r,n,i)=>{var a={},o;return r.forEach(s=>{var u=rm(t,s);o==null&&(o=am(t,n,e));var c=n==="left"&&!i||n==="right"&&i;a[s.id]=o-Number(c)*u.width,o+=(c?-1:1)*u.width}),a}),um=(e,t)=>{var r=Ee(e),n=At(e,t);if(n!=null){var i=om(e,n.orientation,n.mirror),a=i[t];return a==null?{x:r.left,y:0}:{x:r.left,y:a}}},lm=(e,t)=>{var r=Ee(e),n=Ft(e,t);if(n!=null){var i=sm(e,n.orientation,n.mirror),a=i[t];return a==null?{x:0,y:r.top}:{x:a,y:r.top}}},cm=A(Ee,Ft,(e,t)=>{var r=typeof t.width=="number"?t.width:Pi;return{width:r,height:e.height}}),qd=(e,t,r,n)=>{if(r!=null){var{allowDuplicatedCategory:i,type:a,dataKey:o}=r,s=ct(e,n),u=t.map(c=>c.value);if(o&&s&&a==="category"&&i&&q1(u))return u}},Eo=A([Q,zi,Re,fe],qd),Wd=(e,t,r,n)=>{if(!(r==null||r.dataKey==null)){var{type:i,scale:a}=r,o=ct(e,n);if(o&&(i==="number"||a!=="auto"))return t.map(s=>s.value)}},Po=A([Q,zi,fn,fe],Wd),kl=A([Q,Av,hn,jr,Eo,Po,pn,Oo,fe],(e,t,r,n,i,a,o,s,u)=>{if(t==null)return null;var c=ct(e,u);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:u,categoricalDomain:a,duplicateDomain:i,isCategorical:c,niceTicks:s,range:o,realScaleType:r,scale:n}}),fm=(e,t,r,n,i,a,o,s,u)=>{if(!(t==null||n==null)){var c=ct(e,u),{type:l,ticks:f,tickCount:d}=t,h=r==="scaleBand"&&typeof n.bandwidth=="function"?n.bandwidth()/2:2,p=l==="category"&&n.bandwidth?n.bandwidth()/h:0;p=u==="angleAxis"&&a!=null&&a.length>=2?Xe(a[0]-a[1])*2*p:p;var m=f||i;if(m){var v=m.map((y,b)=>{var g=o?o.indexOf(y):y;return{index:b,coordinate:n(g)+p,value:y,offset:p}});return v.filter(y=>!Ue(y.coordinate))}return c&&s?s.map((y,b)=>({coordinate:n(y)+p,value:y,index:b,offset:p})):n.ticks?n.ticks(d).map(y=>({coordinate:n(y)+p,value:y,offset:p})):n.domain().map((y,b)=>({coordinate:n(y)+p,value:o?o[y]:y,index:b,offset:p}))}},Ud=A([Q,fn,hn,jr,Oo,pn,Eo,Po,fe],fm),dm=(e,t,r,n,i,a,o)=>{if(!(t==null||r==null||n==null||n[0]===n[1])){var s=ct(e,o),{tickCount:u}=t,c=0;return c=o==="angleAxis"&&n?.length>=2?Xe(n[0]-n[1])*2*c:c,s&&a?a.map((l,f)=>({coordinate:r(l)+c,value:l,index:f,offset:c})):r.ticks?r.ticks(u).map(l=>({coordinate:r(l)+c,value:l,offset:c})):r.domain().map((l,f)=>({coordinate:r(l)+c,value:i?i[l]:l,index:f,offset:c}))}},Ki=A([Q,fn,jr,pn,Eo,Po,fe],dm),Vi=A(Re,jr,(e,t)=>{if(!(e==null||t==null))return si(si({},e),{},{scale:t})}),hm=A([Re,hn,xo,Bd],wo);A((e,t,r)=>yo(e,r),hm,(e,t)=>{if(!(e==null||t==null))return si(si({},e),{},{scale:t})});var pm=A([Q,Da,Na],(e,t,r)=>{switch(e){case"horizontal":return t.some(n=>n.reversed)?"right-to-left":"left-to-right";case"vertical":return r.some(n=>n.reversed)?"bottom-to-top":"top-to-bottom";case"centric":case"radial":return"left-to-right";default:return}}),Kd=e=>e.options.defaultTooltipEventType,Vd=e=>e.options.validateTooltipEventTypes;function Hd(e,t,r){if(e==null)return t;var n=e?"axis":"item";return r==null?t:r.includes(n)?n:t}function Ao(e,t){var r=Kd(e),n=Vd(e);return Hd(t,r,n)}function vm(e){return F(t=>Ao(t,e))}var Gd=(e,t)=>{var r,n=Number(t);if(!(Ue(n)||t==null))return n>=0?e==null||(r=e[n])===null||r===void 0?void 0:r.value:void 0},mm=e=>e.tooltip.settings,kt={active:!1,index:null,dataKey:void 0,coordinate:void 0},ym={itemInteraction:{click:kt,hover:kt},axisInteraction:{click:kt,hover:kt},keyboardInteraction:kt,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}},Yd=He({name:"tooltip",initialState:ym,reducers:{addTooltipEntrySettings(e,t){e.tooltipItemPayloads.push(t.payload)},removeTooltipEntrySettings(e,t){var r=mt(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:gm,removeTooltipEntrySettings:bm,setTooltipSettingsState:Cm,setActiveMouseOverItemIndex:xm,mouseLeaveItem:rO,mouseLeaveChart:Zd,setActiveClickItemIndex:nO,setMouseOverAxisIndex:Xd,setMouseClickAxisIndex:wm,setSyncInteraction:na,setKeyboardInteraction:ia}=Yd.actions,Om=Yd.reducer;function Dl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function kn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Dl(Object(r),!0).forEach(function(n){Em(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Dl(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Em(e,t,r){return(t=Pm(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Pm(e){var t=Am(e,"string");return typeof t=="symbol"?t:t+""}function Am(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Sm(e,t,r){return t==="axis"?r==="click"?e.axisInteraction.click:e.axisInteraction.hover:r==="click"?e.itemInteraction.click:e.itemInteraction.hover}function _m(e){return e.index!=null}var Qd=(e,t,r,n)=>{if(t==null)return kt;var i=Sm(e,t,r);if(i==null)return kt;if(i.active)return i;if(e.keyboardInteraction.active)return e.keyboardInteraction;if(e.syncInteraction.active&&e.syncInteraction.index!=null)return e.syncInteraction;var a=e.settings.active===!0;if(_m(i)){if(a)return kn(kn({},i),{},{active:!0})}else if(n!=null)return{active:!0,coordinate:void 0,dataKey:void 0,index:n};return kn(kn({},kt),{},{coordinate:i.coordinate})},So=(e,t)=>{var r=e?.index;if(r==null)return null;var n=Number(r);if(!je(n))return r;var i=0,a=1/0;return t.length>0&&(a=t.length-1),String(Math.max(i,Math.min(n,a)))},Jd=(e,t,r,n,i,a,o,s)=>{if(!(a==null||s==null)){var u=o[0],c=u==null?void 0:s(u.positions,a);if(c!=null)return c;var l=i?.[Number(a)];if(l)switch(r){case"horizontal":return{x:l.coordinate,y:(n.top+t)/2};default:return{x:(n.left+e)/2,y:l.coordinate}}}},e3=(e,t,r,n)=>{if(t==="axis")return e.tooltipItemPayloads;if(e.tooltipItemPayloads.length===0)return[];var i;return r==="hover"?i=e.itemInteraction.hover.dataKey:i=e.itemInteraction.click.dataKey,i==null&&n!=null?[e.tooltipItemPayloads[0]]:e.tooltipItemPayloads.filter(a=>{var o;return((o=a.settings)===null||o===void 0?void 0:o.dataKey)===i})},vn=e=>e.options.tooltipPayloadSearcher,Mr=e=>e.tooltip;function Nl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Il(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Nl(Object(r),!0).forEach(function(n){jm(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Nl(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function jm(e,t,r){return(t=Mm(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Mm(e){var t=Tm(e,"string");return typeof t=="symbol"?t:t+""}function Tm(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function km(e,t){return e??t}var t3=(e,t,r,n,i,a,o)=>{if(!(t==null||a==null)){var{chartData:s,computedData:u,dataStartIndex:c,dataEndIndex:l}=r,f=[];return e.reduce((d,h)=>{var p,{dataDefinedOnItem:m,settings:v}=h,y=km(m,s),b=Array.isArray(y)?Vc(y,c,l):y,g=(p=v?.dataKey)!==null&&p!==void 0?p:n?.dataKey,w=v?.nameKey,C;if(n!=null&&n.dataKey&&Array.isArray(b)&&!Array.isArray(b[0])&&o==="axis"?C=W1(b,n.dataKey,i):C=a(b,t,u,w),Array.isArray(C))C.forEach(P=>{var _=Il(Il({},v),{},{name:P.name,unit:P.unit,color:void 0,fill:void 0});d.push(mu({tooltipEntrySettings:_,dataKey:P.dataKey,payload:P.payload,value:Oe(P.payload,P.dataKey),name:P.name}))});else{var O;d.push(mu({tooltipEntrySettings:v,dataKey:g,payload:C,value:Oe(C,g),name:(O=Oe(C,w))!==null&&O!==void 0?O:v?.name}))}return d},f)}},_o=A([ve,Q,hd,uo,pe],Id),Dm=A([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),Nm=A([pe,Sr],pd),mn=A([Dm,ve,Nm],vd),Im=A([mn],e=>e.filter(mo)),Rm=A([mn],bd),Tr=A([Rm,Bt],Cd),$m=A([Im,Bt,ve],dd),jo=A([Tr,ve,mn],xd),Lm=A([ve],Co),Bm=A([mn],e=>e.filter(mo)),Fm=A([$m,Bm,$i],Od),zm=A([Fm,Bt,pe],Ed),qm=A([mn],yd),Wm=A([Tr,ve,qm,qi,pe],Pd),Um=A([Sd,pe,Sr],_r),Km=A([Um,pe],Md),Vm=A([_d,pe,Sr],_r),Hm=A([Vm,pe],Td),Gm=A([jd,pe,Sr],_r),Ym=A([Gm,pe],kd),Zm=A([Km,Ym,Hm],ui),Xm=A([ve,Lm,zm,Wm,Zm,Q,pe],Dd),r3=A([ve,Q,Tr,jo,$i,pe,Xm],Nd),Qm=A([r3,ve,_o],Rd),Jm=A([ve,r3,Qm,pe],$d),n3=e=>{var t=pe(e),r=Sr(e),n=!1;return pn(e,t,r,n)},i3=A([ve,n3],Li),a3=A([ve,_o,Jm,i3],wo),ey=A([Q,jo,ve,pe],qd),ty=A([Q,jo,ve,pe],Wd),ry=(e,t,r,n,i,a,o,s)=>{if(t){var{type:u}=t,c=ct(e,s);if(n){var l=r==="scaleBand"&&n.bandwidth?n.bandwidth()/2:2,f=u==="category"&&n.bandwidth?n.bandwidth()/l:0;return f=s==="angleAxis"&&i!=null&&i?.length>=2?Xe(i[0]-i[1])*2*f:f,c&&o?o.map((d,h)=>({coordinate:n(d)+f,value:d,index:h,offset:f})):n.domain().map((d,h)=>({coordinate:n(d)+f,value:a?a[d]:d,index:h,offset:f}))}}},St=A([Q,ve,_o,a3,n3,ey,ty,pe],ry),Mo=A([Kd,Vd,mm],(e,t,r)=>Hd(r.shared,e,t)),o3=e=>e.tooltip.settings.trigger,To=e=>e.tooltip.settings.defaultIndex,Hi=A([Mr,Mo,o3,To],Qd),en=A([Hi,Tr],So),s3=A([St,en],Gd),ny=A([Hi],e=>{if(e)return e.dataKey}),u3=A([Mr,Mo,o3,To],e3),iy=A([Ot,Et,Q,Ee,St,To,u3,vn],Jd),ay=A([Hi,iy],(e,t)=>e!=null&&e.coordinate?e.coordinate:t),oy=A([Hi],e=>e.active),sy=A([u3,en,Bt,ve,s3,vn,Mo],t3),uy=A([sy],e=>{if(e!=null){var t=e.map(r=>r.payload).filter(r=>r!=null);return Array.from(new Set(t))}});function Rl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function $l(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Rl(Object(r),!0).forEach(function(n){ly(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rl(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ly(e,t,r){return(t=cy(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cy(e){var t=fy(e,"string");return typeof t=="symbol"?t:t+""}function fy(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var dy=()=>F(ve),hy=()=>{var e=dy(),t=F(St),r=F(a3);return Hr($l($l({},e),{},{scale:r}),t)},l3=()=>F(uo),ko=(e,t)=>t,c3=(e,t,r)=>r,Do=(e,t,r,n)=>n,py=A(St,e=>gi(e,t=>t.coordinate)),No=A([Mr,ko,c3,Do],Qd),f3=A([No,Tr],So),vy=(e,t,r)=>{if(t!=null){var n=Mr(e);return t==="axis"?r==="hover"?n.axisInteraction.hover.dataKey:n.axisInteraction.click.dataKey:r==="hover"?n.itemInteraction.hover.dataKey:n.itemInteraction.click.dataKey}},d3=A([Mr,ko,c3,Do],e3),li=A([Ot,Et,Q,Ee,St,Do,d3,vn],Jd),my=A([No,li],(e,t)=>{var r;return(r=e.coordinate)!==null&&r!==void 0?r:t}),h3=A(St,f3,Gd),yy=A([d3,f3,Bt,ve,h3,vn,ko],t3),gy=A([No],e=>({isActive:e.active,activeIndex:e.index})),by=(e,t,r,n,i,a,o,s)=>{if(!(!e||!t||!n||!i||!a)){var u=V6(e.chartX,e.chartY,t,r,s);if(u){var c=G6(u,t),l=I6(c,o,a,n,i),f=H6(t,a,l,u);return{activeIndex:String(l),activeCoordinate:f}}}};function aa(){return aa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},aa.apply(null,arguments)}function Ll(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Dn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ll(Object(r),!0).forEach(function(n){Cy(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ll(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Cy(e,t,r){return(t=xy(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xy(e){var t=wy(e,"string");return typeof t=="symbol"?t:t+""}function wy(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Oy(e){var{coordinate:t,payload:r,index:n,offset:i,tooltipAxisBandSize:a,layout:o,cursor:s,tooltipEventType:u,chartName:c}=e,l=t,f=r,d=n;if(!s||!l||c!=="ScatterChart"&&u!=="axis")return null;var h,p;if(c==="ScatterChart")h=l,p=I7;else if(c==="BarChart")h=R7(o,l,i,a),p=y4;else if(o==="radial"){var{cx:m,cy:v,radius:y,startAngle:b,endAngle:g}=lf(l);h={cx:m,cy:v,startAngle:b,endAngle:g,innerRadius:y,outerRadius:y},p=x4}else h={points:w4(o,l,i)},p=zr;var w=typeof s=="object"&&"className"in s?s.className:void 0,C=Dn(Dn(Dn(Dn({stroke:"#ccc",pointerEvents:"none"},i),h),le(s,!1)),{},{payload:f,payloadIndex:d,className:G.clsx("recharts-tooltip-cursor",w)});return E.isValidElement(s)?E.cloneElement(s,C):E.createElement(p,C)}function Ey(e){var t=hy(),r=Xc(),n=_i(),i=l3();return x.createElement(Oy,aa({},e,{coordinate:e.coordinate,index:e.index,payload:e.payload,offset:r,layout:n,tooltipAxisBandSize:t,chartName:i}))}var p3=E.createContext(null),Py=()=>E.useContext(p3),l0={exports:{}},Bl;function Ay(){return Bl||(Bl=1,function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(u,c,l){this.fn=u,this.context=c,this.once=l||!1}function a(u,c,l,f,d){if(typeof l!="function")throw new TypeError("The listener must be a function");var h=new i(l,f||u,d),p=r?r+c:c;return u._events[p]?u._events[p].fn?u._events[p]=[u._events[p],h]:u._events[p].push(h):(u._events[p]=h,u._eventsCount++),u}function o(u,c){--u._eventsCount===0?u._events=new n:delete u._events[c]}function s(){this._events=new n,this._eventsCount=0}s.prototype.eventNames=function(){var c=[],l,f;if(this._eventsCount===0)return c;for(f in l=this._events)t.call(l,f)&&c.push(r?f.slice(1):f);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(l)):c},s.prototype.listeners=function(c){var l=r?r+c:c,f=this._events[l];if(!f)return[];if(f.fn)return[f.fn];for(var d=0,h=f.length,p=new Array(h);d<h;d++)p[d]=f[d].fn;return p},s.prototype.listenerCount=function(c){var l=r?r+c:c,f=this._events[l];return f?f.fn?1:f.length:0},s.prototype.emit=function(c,l,f,d,h,p){var m=r?r+c:c;if(!this._events[m])return!1;var v=this._events[m],y=arguments.length,b,g;if(v.fn){switch(v.once&&this.removeListener(c,v.fn,void 0,!0),y){case 1:return v.fn.call(v.context),!0;case 2:return v.fn.call(v.context,l),!0;case 3:return v.fn.call(v.context,l,f),!0;case 4:return v.fn.call(v.context,l,f,d),!0;case 5:return v.fn.call(v.context,l,f,d,h),!0;case 6:return v.fn.call(v.context,l,f,d,h,p),!0}for(g=1,b=new Array(y-1);g<y;g++)b[g-1]=arguments[g];v.fn.apply(v.context,b)}else{var w=v.length,C;for(g=0;g<w;g++)switch(v[g].once&&this.removeListener(c,v[g].fn,void 0,!0),y){case 1:v[g].fn.call(v[g].context);break;case 2:v[g].fn.call(v[g].context,l);break;case 3:v[g].fn.call(v[g].context,l,f);break;case 4:v[g].fn.call(v[g].context,l,f,d);break;default:if(!b)for(C=1,b=new Array(y-1);C<y;C++)b[C-1]=arguments[C];v[g].fn.apply(v[g].context,b)}}return!0},s.prototype.on=function(c,l,f){return a(this,c,l,f,!1)},s.prototype.once=function(c,l,f){return a(this,c,l,f,!0)},s.prototype.removeListener=function(c,l,f,d){var h=r?r+c:c;if(!this._events[h])return this;if(!l)return o(this,h),this;var p=this._events[h];if(p.fn)p.fn===l&&(!d||p.once)&&(!f||p.context===f)&&o(this,h);else{for(var m=0,v=[],y=p.length;m<y;m++)(p[m].fn!==l||d&&!p[m].once||f&&p[m].context!==f)&&v.push(p[m]);v.length?this._events[h]=v.length===1?v[0]:v:o(this,h)}return this},s.prototype.removeAllListeners=function(c){var l;return c?(l=r?r+c:c,this._events[l]&&o(this,l)):(this._events=new n,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=r,s.EventEmitter=s,e.exports=s}(l0)),l0.exports}var Sy=Ay();const _y=S.getDefaultExportFromCjs(Sy);var tn=new _y,oa="recharts.syncEvent.tooltip",Fl="recharts.syncEvent.brush";function v3(e,t){if(t){var r=Number.parseInt(t,10);if(!Ue(r))return e?.[r]}}var jy={chartName:"",tooltipPayloadSearcher:void 0,eventEmitter:void 0,defaultTooltipEventType:"axis"},m3=He({name:"options",initialState:jy,reducers:{createEventEmitter:e=>{e.eventEmitter==null&&(e.eventEmitter=Symbol("rechartsEventEmitter"))}}}),My=m3.reducer,{createEventEmitter:Ty}=m3.actions;function ky(e){return e.tooltip.syncInteraction}var Dy={chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},y3=He({name:"chartData",initialState:Dy,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:n}=t.payload;r!=null&&(e.dataStartIndex=r),n!=null&&(e.dataEndIndex=n)}}}),{setChartData:zl,setDataStartEndIndexes:Ny,setComputedData:iO}=y3.actions,Iy=y3.reducer,g3=()=>{};function Ry(){var e=F(lo),t=F(co),r=Me(),n=F(od),i=F(St),a=_i(),o=Ia(),s=F(u=>u.rootProps.className);E.useEffect(()=>{if(e==null)return g3;var u=(c,l,f)=>{if(t!==f&&e===c){if(n==="index"){r(l);return}if(i!=null){var d;if(typeof n=="function"){var h={activeTooltipIndex:l.payload.index==null?void 0:Number(l.payload.index),isTooltipActive:l.payload.active,activeIndex:l.payload.index==null?void 0:Number(l.payload.index),activeLabel:l.payload.label,activeDataKey:l.payload.dataKey,activeCoordinate:l.payload.coordinate},p=n(i,h);d=i[p]}else n==="value"&&(d=i.find(O=>String(O.value)===l.payload.label));var{coordinate:m}=l.payload;if(d==null||l.payload.active===!1||m==null||o==null){r(na({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0}));return}var{x:v,y}=m,b=Math.min(v,o.x+o.width),g=Math.min(y,o.y+o.height),w={x:a==="horizontal"?d.coordinate:b,y:a==="horizontal"?g:d.coordinate},C=na({active:l.payload.active,coordinate:w,dataKey:l.payload.dataKey,index:String(d.index),label:l.payload.label});r(C)}}};return tn.on(oa,u),()=>{tn.off(oa,u)}},[s,r,t,e,n,i,a,o])}function $y(){var e=F(lo),t=F(co),r=Me();E.useEffect(()=>{if(e==null)return g3;var n=(i,a,o)=>{t!==o&&e===i&&r(Ny(a))};return tn.on(Fl,n),()=>{tn.off(Fl,n)}},[r,t,e])}function Ly(){var e=Me();E.useEffect(()=>{e(Ty())},[e]),Ry(),$y()}function By(e,t,r,n,i,a){var o=F(d=>vy(d,e,t)),s=F(co),u=F(lo),c=F(od),l=F(ky),f=l?.active;E.useEffect(()=>{if(!f&&u!=null&&s!=null){var d=na({active:a,coordinate:r,dataKey:o,index:i,label:typeof n=="number"?String(n):n});tn.emit(oa,u,d,s)}},[f,r,o,i,n,s,u,c,a])}function ql(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Wl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ql(Object(r),!0).forEach(function(n){Fy(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ql(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Fy(e,t,r){return(t=zy(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zy(e){var t=qy(e,"string");return typeof t=="symbol"?t:t+""}function qy(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Wy(e){return e.dataKey}function Uy(e,t){return x.isValidElement(e)?x.cloneElement(e,t):typeof e=="function"?x.createElement(e,t):x.createElement(h7,t)}var Ul=[],Ky={allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",axisId:0,contentStyle:{},cursor:!0,filterNull:!0,isAnimationActive:!Or.isSsr,itemSorter:"name",itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,wrapperStyle:{}};function Vy(e){var t=ft(e,Ky),{active:r,allowEscapeViewBox:n,animationDuration:i,animationEasing:a,content:o,filterNull:s,isAnimationActive:u,offset:c,payloadUniqBy:l,position:f,reverseDirection:d,useTranslate3d:h,wrapperStyle:p,cursor:m,shared:v,trigger:y,defaultIndex:b,portal:g,axisId:w}=t,C=Me(),O=typeof b=="number"?String(b):b;E.useEffect(()=>{C(Cm({shared:v,trigger:y,axisId:w,active:r,defaultIndex:O}))},[C,v,y,w,r,O]);var P=Ia(),_=tf(),M=vm(v),{activeIndex:z,isActive:T}=F(ne=>gy(ne,M,y,O)),k=F(ne=>yy(ne,M,y,O)),W=F(ne=>h3(ne,M,y,O)),K=F(ne=>my(ne,M,y,O)),te=k,Y=Py(),B=r??T,[q,R]=f9([te,B]),$=M==="axis"?W:void 0;By(M,y,K,$,z,B);var se=g??Y;if(se==null)return null;var L=te??Ul;B||(L=Ul),s&&L.length&&(L=Ih(te.filter(ne=>ne.value!=null&&(ne.hide!==!0||t.includeHidden)),l,Wy));var be=L.length>0,Ge=x.createElement(C7,{allowEscapeViewBox:n,animationDuration:i,animationEasing:a,isAnimationActive:u,active:B,coordinate:K,hasPayload:be,offset:c,position:f,reverseDirection:d,useTranslate3d:h,viewBox:P,wrapperStyle:p,lastBoundingBox:q,innerRef:R,hasPortalFromProps:!!g},Uy(o,Wl(Wl({},t),{},{payload:L,label:$,active:B,coordinate:K,accessibilityLayer:_})));return x.createElement(x.Fragment,null,N1.createPortal(Ge,se),B&&x.createElement(Ey,{cursor:m,tooltipEventType:M,coordinate:K,payload:te,index:z}))}var c0={},f0={},d0={},Kl;function Hy(){return Kl||(Kl=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n,{signal:i,edges:a}={}){let o,s=null;const u=a!=null&&a.includes("leading"),c=a==null||a.includes("trailing"),l=()=>{s!==null&&(r.apply(o,s),o=void 0,s=null)},f=()=>{c&&l(),m()};let d=null;const h=()=>{d!=null&&clearTimeout(d),d=setTimeout(()=>{d=null,f()},n)},p=()=>{d!==null&&(clearTimeout(d),d=null)},m=()=>{p(),o=void 0,s=null},v=()=>{l()},y=function(...b){if(i?.aborted)return;o=this,s=b;const g=d==null;h(),u&&g&&l()};return y.schedule=h,y.cancel=m,y.flush=v,i?.addEventListener("abort",m,{once:!0}),y}e.debounce=t}(d0)),d0}var Vl;function Gy(){return Vl||(Vl=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Hy();function r(n,i=0,a={}){typeof a!="object"&&(a={});const{leading:o=!1,trailing:s=!0,maxWait:u}=a,c=Array(2);o&&(c[0]="leading"),s&&(c[1]="trailing");let l,f=null;const d=t.debounce(function(...m){l=n.apply(this,m),f=null},i,{edges:c}),h=function(...m){return u!=null&&(f===null&&(f=Date.now()),Date.now()-f>=u)?(l=n.apply(this,m),f=Date.now(),d.cancel(),d.schedule(),l):(d.apply(this,m),l)},p=()=>(d.flush(),l);return h.cancel=d.cancel,h.flush=p,h}e.debounce=r}(f0)),f0}var Hl;function Yy(){return Hl||(Hl=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Gy();function r(n,i=0,a={}){const{leading:o=!0,trailing:s=!0}=a;return t.debounce(n,i,{leading:o,maxWait:i,trailing:s})}e.throttle=r}(c0)),c0}var h0,Gl;function Zy(){return Gl||(Gl=1,h0=Yy().throttle),h0}var Xy=Zy();const Qy=S.getDefaultExportFromCjs(Xy);var Jy=process.env.NODE_ENV!=="production",qr=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a];if(Jy&&typeof console<"u"&&console.warn&&(r===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(r===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var o=0;console.warn(r.replace(/%s/g,()=>i[o++]))}};function Yl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function p0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Yl(Object(r),!0).forEach(function(n){eg(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yl(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function eg(e,t,r){return(t=tg(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tg(e){var t=rg(e,"string");return typeof t=="symbol"?t:t+""}function rg(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var b3=E.forwardRef((e,t)=>{var{aspect:r,initialDimension:n={width:-1,height:-1},width:i="100%",height:a="100%",minWidth:o=0,minHeight:s,maxHeight:u,children:c,debounce:l=0,id:f,className:d,onResize:h,style:p={}}=e,m=E.useRef(null),v=E.useRef();v.current=h,E.useImperativeHandle(t,()=>m.current);var[y,b]=E.useState({containerWidth:n.width,containerHeight:n.height}),g=E.useCallback((C,O)=>{b(P=>{var _=Math.round(C),M=Math.round(O);return P.containerWidth===_&&P.containerHeight===M?P:{containerWidth:_,containerHeight:M}})},[]);E.useEffect(()=>{var C=M=>{var z,{width:T,height:k}=M[0].contentRect;g(T,k),(z=v.current)===null||z===void 0||z.call(v,T,k)};l>0&&(C=Qy(C,l,{trailing:!0,leading:!1}));var O=new ResizeObserver(C),{width:P,height:_}=m.current.getBoundingClientRect();return g(P,_),O.observe(m.current),()=>{O.disconnect()}},[g,l]);var w=E.useMemo(()=>{var{containerWidth:C,containerHeight:O}=y;if(C<0||O<0)return null;qr(Ht(i)||Ht(a),`The width(%s) and height(%s) are both fixed numbers,
59
59
  maybe you don't need to use a ResponsiveContainer.`,i,a),qr(!r||r>0,"The aspect(%s) must be greater than zero.",r);var P=Ht(i)?C:i,_=Ht(a)?O:a;return r&&r>0&&(P?_=P/r:_&&(P=_*r),u&&_>u&&(_=u)),qr(P>0||_>0,`The width(%s) and height(%s) of chart should be greater than 0,
60
60
  please check the style of container, or the props width(%s) and height(%s),
61
61
  or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
62
- height and width.`,P,_,i,a,o,s,r),x.Children.map(c,M=>E.cloneElement(M,{width:P,height:_,style:p0({width:P,height:_},M.props.style)}))},[r,c,a,u,s,o,y,i]);return x.createElement("div",{id:f?"".concat(f):void 0,className:G.clsx("recharts-responsive-container",d),style:p0(p0({},p),{},{width:i,height:a,minWidth:o,minHeight:s,maxHeight:u}),ref:m},x.createElement("div",{style:{width:0,height:0,overflow:"visible"}},w))});function ng(e,t,r){return(t=ig(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ig(e){var t=ag(e,"string");return typeof t=="symbol"?t:t+""}function ag(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class og{constructor(t){ng(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 n=this.cache.keys().next().value;this.cache.delete(n)}this.cache.set(t,r)}clear(){this.cache.clear()}size(){return this.cache.size}}function Zl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function sg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Zl(Object(r),!0).forEach(function(n){ug(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zl(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ug(e,t,r){return(t=lg(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lg(e){var t=cg(e,"string");return typeof t=="symbol"?t:t+""}function cg(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var fg={cacheSize:2e3,enableCache:!0},C3=sg({},fg),Xl=new og(C3.cacheSize),dg={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Ql="recharts_measurement_span";function hg(e,t){var r=t.fontSize||"",n=t.fontFamily||"",i=t.fontWeight||"",a=t.fontStyle||"",o=t.letterSpacing||"",s=t.textTransform||"";return"".concat(e,"|").concat(r,"|").concat(n,"|").concat(i,"|").concat(a,"|").concat(o,"|").concat(s)}var Jl=(e,t)=>{try{var r=document.getElementById(Ql);r||(r=document.createElement("span"),r.setAttribute("id",Ql),r.setAttribute("aria-hidden","true"),document.body.appendChild(r)),Object.assign(r.style,dg,t),r.textContent="".concat(e);var n=r.getBoundingClientRect();return{width:n.width,height:n.height}}catch{return{width:0,height:0}}},Wr=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Or.isSsr)return{width:0,height:0};if(!C3.enableCache)return Jl(t,r);var n=hg(t,r),i=Xl.get(n);if(i)return i;var a=Jl(t,r);return Xl.set(n,a),a},e1=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,t1=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,pg=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,vg=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,x3={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},mg=Object.keys(x3),hr="NaN";function yg(e,t){return e*x3[t]}class ke{static parse(t){var r,[,n,i]=(r=vg.exec(t))!==null&&r!==void 0?r:[];return new ke(parseFloat(n),i??"")}constructor(t,r){this.num=t,this.unit=r,this.num=t,this.unit=r,Ue(t)&&(this.unit=""),r!==""&&!pg.test(r)&&(this.num=NaN,this.unit=""),mg.includes(r)&&(this.num=yg(t,r),this.unit="px")}add(t){return this.unit!==t.unit?new ke(NaN,""):new ke(this.num+t.num,this.unit)}subtract(t){return this.unit!==t.unit?new ke(NaN,""):new ke(this.num-t.num,this.unit)}multiply(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new ke(NaN,""):new ke(this.num*t.num,this.unit||t.unit)}divide(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new ke(NaN,""):new ke(this.num/t.num,this.unit||t.unit)}toString(){return"".concat(this.num).concat(this.unit)}isNaN(){return Ue(this.num)}}function w3(e){if(e.includes(hr))return hr;for(var t=e;t.includes("*")||t.includes("/");){var r,[,n,i,a]=(r=e1.exec(t))!==null&&r!==void 0?r:[],o=ke.parse(n??""),s=ke.parse(a??""),u=i==="*"?o.multiply(s):o.divide(s);if(u.isNaN())return hr;t=t.replace(e1,u.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var c,[,l,f,d]=(c=t1.exec(t))!==null&&c!==void 0?c:[],h=ke.parse(l??""),p=ke.parse(d??""),m=f==="+"?h.add(p):h.subtract(p);if(m.isNaN())return hr;t=t.replace(t1,m.toString())}return t}var r1=/\(([^()]*)\)/;function gg(e){for(var t=e,r;(r=r1.exec(t))!=null;){var[,n]=r;t=t.replace(r1,w3(n))}return t}function bg(e){var t=e.replace(/\s+/g,"");return t=gg(t),t=w3(t),t}function Cg(e){try{return bg(e)}catch{return hr}}function v0(e){var t=Cg(e.slice(5,-1));return t===hr?"":t}var xg=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],wg=["dx","dy","angle","className","breakAll"];function sa(){return sa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},sa.apply(null,arguments)}function n1(e,t){if(e==null)return{};var r,n,i=Og(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Og(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var O3=/[ \f\n\r\t\v\u2028\u2029]+/,E3=e=>{var{children:t,breakAll:r,style:n}=e;try{var i=[];ue(t)||(r?i=t.toString().split(""):i=t.toString().split(O3));var a=i.map(s=>({word:s,width:Wr(s,n).width})),o=r?0:Wr(" ",n).width;return{wordsWithComputedWidth:a,spaceWidth:o}}catch{return null}},Eg=(e,t,r,n,i)=>{var{maxLines:a,children:o,style:s,breakAll:u}=e,c=N(a),l=o,f=function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return T.reduce((k,W)=>{var{word:K,width:te}=W,Y=k[k.length-1];if(Y&&(n==null||i||Y.width+te+r<Number(n)))Y.words.push(K),Y.width+=te+r;else{var B={words:[K],width:te};k.push(B)}return k},[])},d=f(t),h=z=>z.reduce((T,k)=>T.width>k.width?T:k);if(!c||i)return d;var p=d.length>a||h(d).width>Number(n);if(!p)return d;for(var m="…",v=z=>{var T=l.slice(0,z),k=E3({breakAll:u,style:s,children:T+m}).wordsWithComputedWidth,W=f(k),K=W.length>a||h(W).width>Number(n);return[K,W]},y=0,b=l.length-1,g=0,w;y<=b&&g<=l.length-1;){var C=Math.floor((y+b)/2),O=C-1,[P,_]=v(O),[M]=v(C);if(!P&&!M&&(y=C+1),P&&M&&(b=C-1),!P&&M){w=_;break}g++}return w||d},i1=e=>{var t=ue(e)?[]:e.toString().split(O3);return[{words:t}]},Pg=e=>{var{width:t,scaleToFit:r,children:n,style:i,breakAll:a,maxLines:o}=e;if((t||r)&&!Or.isSsr){var s,u,c=E3({breakAll:a,children:n,style:i});if(c){var{wordsWithComputedWidth:l,spaceWidth:f}=c;s=l,u=f}else return i1(n);return Eg({breakAll:a,children:n,maxLines:o,style:i},s,u,t,r)}return i1(n)},a1="#808080",Io=E.forwardRef((e,t)=>{var{x:r=0,y:n=0,lineHeight:i="1em",capHeight:a="0.71em",scaleToFit:o=!1,textAnchor:s="start",verticalAnchor:u="end",fill:c=a1}=e,l=n1(e,xg),f=E.useMemo(()=>Pg({breakAll:l.breakAll,children:l.children,maxLines:l.maxLines,scaleToFit:o,style:l.style,width:l.width}),[l.breakAll,l.children,l.maxLines,o,l.style,l.width]),{dx:d,dy:h,angle:p,className:m,breakAll:v}=l,y=n1(l,wg);if(!ut(r)||!ut(n))return null;var b=r+(N(d)?d:0),g=n+(N(h)?h:0),w;switch(u){case"start":w=v0("calc(".concat(a,")"));break;case"middle":w=v0("calc(".concat((f.length-1)/2," * -").concat(i," + (").concat(a," / 2))"));break;default:w=v0("calc(".concat(f.length-1," * -").concat(i,")"));break}var C=[];if(o){var O=f[0].width,{width:P}=l;C.push("scale(".concat(N(P)?P/O:1,")"))}return p&&C.push("rotate(".concat(p,", ").concat(b,", ").concat(g,")")),C.length&&(y.transform=C.join(" ")),x.createElement("text",sa({},le(y,!0),{ref:t,x:b,y:g,className:G.clsx("recharts-text",m),textAnchor:s,fill:c.includes("url")?a1:c}),f.map((_,M)=>{var z=_.words.join(v?"":" ");return x.createElement("tspan",{x:b,dy:M===0?w:i,key:"".concat(z,"-").concat(M)},z)}))});Io.displayName="Text";var Ag=["offset"],Sg=["labelRef"];function o1(e,t){if(e==null)return{};var r,n,i=_g(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function _g(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function s1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ae(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?s1(Object(r),!0).forEach(function(n){jg(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function jg(e,t,r){return(t=Mg(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Mg(e){var t=Tg(e,"string");return typeof t=="symbol"?t:t+""}function Tg(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ht(){return ht=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ht.apply(null,arguments)}var kg=e=>{var{value:t,formatter:r}=e,n=ue(e.children)?t:e.children;return typeof r=="function"?r(n):n},Ro=e=>e!=null&&typeof e=="function",Dg=(e,t)=>{var r=Xe(t-e),n=Math.min(Math.abs(t-e),360);return r*n},Ng=(e,t,r,n)=>{var{position:i,offset:a,className:o}=e,{cx:s,cy:u,innerRadius:c,outerRadius:l,startAngle:f,endAngle:d,clockWise:h}=n,p=(c+l)/2,m=Dg(f,d),v=m>=0?1:-1,y,b;i==="insideStart"?(y=f+v*a,b=h):i==="insideEnd"?(y=d-v*a,b=!h):i==="end"&&(y=d+v*a,b=h),b=m<=0?b:!b;var g=xe(s,u,p,y),w=xe(s,u,p,y+(b?1:-1)*359),C="M".concat(g.x,",").concat(g.y,`
62
+ height and width.`,P,_,i,a,o,s,r),x.Children.map(c,M=>E.cloneElement(M,{width:P,height:_,style:p0({width:P,height:_},M.props.style)}))},[r,c,a,u,s,o,y,i]);return x.createElement("div",{id:f?"".concat(f):void 0,className:G.clsx("recharts-responsive-container",d),style:p0(p0({},p),{},{width:i,height:a,minWidth:o,minHeight:s,maxHeight:u}),ref:m},x.createElement("div",{style:{width:0,height:0,overflow:"visible"}},w))});function ng(e,t,r){return(t=ig(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ig(e){var t=ag(e,"string");return typeof t=="symbol"?t:t+""}function ag(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class og{constructor(t){ng(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 n=this.cache.keys().next().value;this.cache.delete(n)}this.cache.set(t,r)}clear(){this.cache.clear()}size(){return this.cache.size}}function Zl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function sg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Zl(Object(r),!0).forEach(function(n){ug(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zl(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ug(e,t,r){return(t=lg(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lg(e){var t=cg(e,"string");return typeof t=="symbol"?t:t+""}function cg(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var fg={cacheSize:2e3,enableCache:!0},C3=sg({},fg),Xl=new og(C3.cacheSize),dg={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Ql="recharts_measurement_span";function hg(e,t){var r=t.fontSize||"",n=t.fontFamily||"",i=t.fontWeight||"",a=t.fontStyle||"",o=t.letterSpacing||"",s=t.textTransform||"";return"".concat(e,"|").concat(r,"|").concat(n,"|").concat(i,"|").concat(a,"|").concat(o,"|").concat(s)}var Jl=(e,t)=>{try{var r=document.getElementById(Ql);r||(r=document.createElement("span"),r.setAttribute("id",Ql),r.setAttribute("aria-hidden","true"),document.body.appendChild(r)),Object.assign(r.style,dg,t),r.textContent="".concat(e);var n=r.getBoundingClientRect();return{width:n.width,height:n.height}}catch{return{width:0,height:0}}},Wr=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Or.isSsr)return{width:0,height:0};if(!C3.enableCache)return Jl(t,r);var n=hg(t,r),i=Xl.get(n);if(i)return i;var a=Jl(t,r);return Xl.set(n,a),a},e1=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,t1=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,pg=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,vg=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,x3={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},mg=Object.keys(x3),hr="NaN";function yg(e,t){return e*x3[t]}class ke{static parse(t){var r,[,n,i]=(r=vg.exec(t))!==null&&r!==void 0?r:[];return new ke(parseFloat(n),i??"")}constructor(t,r){this.num=t,this.unit=r,this.num=t,this.unit=r,Ue(t)&&(this.unit=""),r!==""&&!pg.test(r)&&(this.num=NaN,this.unit=""),mg.includes(r)&&(this.num=yg(t,r),this.unit="px")}add(t){return this.unit!==t.unit?new ke(NaN,""):new ke(this.num+t.num,this.unit)}subtract(t){return this.unit!==t.unit?new ke(NaN,""):new ke(this.num-t.num,this.unit)}multiply(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new ke(NaN,""):new ke(this.num*t.num,this.unit||t.unit)}divide(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new ke(NaN,""):new ke(this.num/t.num,this.unit||t.unit)}toString(){return"".concat(this.num).concat(this.unit)}isNaN(){return Ue(this.num)}}function w3(e){if(e.includes(hr))return hr;for(var t=e;t.includes("*")||t.includes("/");){var r,[,n,i,a]=(r=e1.exec(t))!==null&&r!==void 0?r:[],o=ke.parse(n??""),s=ke.parse(a??""),u=i==="*"?o.multiply(s):o.divide(s);if(u.isNaN())return hr;t=t.replace(e1,u.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var c,[,l,f,d]=(c=t1.exec(t))!==null&&c!==void 0?c:[],h=ke.parse(l??""),p=ke.parse(d??""),m=f==="+"?h.add(p):h.subtract(p);if(m.isNaN())return hr;t=t.replace(t1,m.toString())}return t}var r1=/\(([^()]*)\)/;function gg(e){for(var t=e,r;(r=r1.exec(t))!=null;){var[,n]=r;t=t.replace(r1,w3(n))}return t}function bg(e){var t=e.replace(/\s+/g,"");return t=gg(t),t=w3(t),t}function Cg(e){try{return bg(e)}catch{return hr}}function v0(e){var t=Cg(e.slice(5,-1));return t===hr?"":t}var xg=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],wg=["dx","dy","angle","className","breakAll"];function sa(){return sa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},sa.apply(null,arguments)}function n1(e,t){if(e==null)return{};var r,n,i=Og(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Og(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var O3=/[ \f\n\r\t\v\u2028\u2029]+/,E3=e=>{var{children:t,breakAll:r,style:n}=e;try{var i=[];ue(t)||(r?i=t.toString().split(""):i=t.toString().split(O3));var a=i.map(s=>({word:s,width:Wr(s,n).width})),o=r?0:Wr(" ",n).width;return{wordsWithComputedWidth:a,spaceWidth:o}}catch{return null}},Eg=(e,t,r,n,i)=>{var{maxLines:a,children:o,style:s,breakAll:u}=e,c=N(a),l=o,f=function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return T.reduce((k,W)=>{var{word:K,width:te}=W,Y=k[k.length-1];if(Y&&(n==null||i||Y.width+te+r<Number(n)))Y.words.push(K),Y.width+=te+r;else{var B={words:[K],width:te};k.push(B)}return k},[])},d=f(t),h=z=>z.reduce((T,k)=>T.width>k.width?T:k);if(!c||i)return d;var p=d.length>a||h(d).width>Number(n);if(!p)return d;for(var m="…",v=z=>{var T=l.slice(0,z),k=E3({breakAll:u,style:s,children:T+m}).wordsWithComputedWidth,W=f(k),K=W.length>a||h(W).width>Number(n);return[K,W]},y=0,b=l.length-1,g=0,w;y<=b&&g<=l.length-1;){var C=Math.floor((y+b)/2),O=C-1,[P,_]=v(O),[M]=v(C);if(!P&&!M&&(y=C+1),P&&M&&(b=C-1),!P&&M){w=_;break}g++}return w||d},i1=e=>{var t=ue(e)?[]:e.toString().split(O3);return[{words:t}]},Pg=e=>{var{width:t,scaleToFit:r,children:n,style:i,breakAll:a,maxLines:o}=e;if((t||r)&&!Or.isSsr){var s,u,c=E3({breakAll:a,children:n,style:i});if(c){var{wordsWithComputedWidth:l,spaceWidth:f}=c;s=l,u=f}else return i1(n);return Eg({breakAll:a,children:n,maxLines:o,style:i},s,u,t,r)}return i1(n)},a1="#808080",Io=E.forwardRef((e,t)=>{var{x:r=0,y:n=0,lineHeight:i="1em",capHeight:a="0.71em",scaleToFit:o=!1,textAnchor:s="start",verticalAnchor:u="end",fill:c=a1}=e,l=n1(e,xg),f=E.useMemo(()=>Pg({breakAll:l.breakAll,children:l.children,maxLines:l.maxLines,scaleToFit:o,style:l.style,width:l.width}),[l.breakAll,l.children,l.maxLines,o,l.style,l.width]),{dx:d,dy:h,angle:p,className:m,breakAll:v}=l,y=n1(l,wg);if(!ut(r)||!ut(n))return null;var b=r+(N(d)?d:0),g=n+(N(h)?h:0),w;switch(u){case"start":w=v0("calc(".concat(a,")"));break;case"middle":w=v0("calc(".concat((f.length-1)/2," * -").concat(i," + (").concat(a," / 2))"));break;default:w=v0("calc(".concat(f.length-1," * -").concat(i,")"));break}var C=[];if(o){var O=f[0].width,{width:P}=l;C.push("scale(".concat(N(P)?P/O:1,")"))}return p&&C.push("rotate(".concat(p,", ").concat(b,", ").concat(g,")")),C.length&&(y.transform=C.join(" ")),x.createElement("text",sa({},le(y,!0),{ref:t,x:b,y:g,className:G.clsx("recharts-text",m),textAnchor:s,fill:c.includes("url")?a1:c}),f.map((_,M)=>{var z=_.words.join(v?"":" ");return x.createElement("tspan",{x:b,dy:M===0?w:i,key:"".concat(z,"-").concat(M)},z)}))});Io.displayName="Text";var Ag=["offset"],Sg=["labelRef"];function o1(e,t){if(e==null)return{};var r,n,i=_g(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function _g(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function s1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ae(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?s1(Object(r),!0).forEach(function(n){jg(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function jg(e,t,r){return(t=Mg(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Mg(e){var t=Tg(e,"string");return typeof t=="symbol"?t:t+""}function Tg(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ht(){return ht=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ht.apply(null,arguments)}var kg=e=>{var{value:t,formatter:r}=e,n=ue(e.children)?t:e.children;return typeof r=="function"?r(n):n},Ro=e=>e!=null&&typeof e=="function",Dg=(e,t)=>{var r=Xe(t-e),n=Math.min(Math.abs(t-e),360);return r*n},Ng=(e,t,r,n)=>{var{position:i,offset:a,className:o}=e,{cx:s,cy:u,innerRadius:c,outerRadius:l,startAngle:f,endAngle:d,clockWise:h}=n,p=(c+l)/2,m=Dg(f,d),v=m>=0?1:-1,y,b;i==="insideStart"?(y=f+v*a,b=h):i==="insideEnd"?(y=d-v*a,b=!h):i==="end"&&(y=d+v*a,b=h),b=m<=0?b:!b;var g=we(s,u,p,y),w=we(s,u,p,y+(b?1:-1)*359),C="M".concat(g.x,",").concat(g.y,`
63
63
  A`).concat(p,",").concat(p,",0,1,").concat(b?0:1,`,
64
- `).concat(w.x,",").concat(w.y),O=ue(e.id)?Ur("recharts-radial-line-"):e.id;return x.createElement("text",ht({},r,{dominantBaseline:"central",className:G.clsx("recharts-radial-bar-label",o)}),x.createElement("defs",null,x.createElement("path",{id:O,d:C})),x.createElement("textPath",{xlinkHref:"#".concat(O)},t))},Ig=(e,t,r)=>{var{cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:s,endAngle:u}=e,c=(s+u)/2;if(r==="outside"){var{x:l,y:f}=xe(n,i,o+t,c);return{x:l,y:f,textAnchor:l>=n?"start":"end",verticalAnchor:"middle"}}if(r==="center")return{x:n,y:i,textAnchor:"middle",verticalAnchor:"middle"};if(r==="centerTop")return{x:n,y:i,textAnchor:"middle",verticalAnchor:"start"};if(r==="centerBottom")return{x:n,y:i,textAnchor:"middle",verticalAnchor:"end"};var d=(a+o)/2,{x:h,y:p}=xe(n,i,d,c);return{x:h,y:p,textAnchor:"middle",verticalAnchor:"middle"}},Rg=(e,t)=>{var{parentViewBox:r,offset:n,position:i}=e,{x:a,y:o,width:s,height:u}=t,c=u>=0?1:-1,l=c*n,f=c>0?"end":"start",d=c>0?"start":"end",h=s>=0?1:-1,p=h*n,m=h>0?"end":"start",v=h>0?"start":"end";if(i==="top"){var y={x:a+s/2,y:o-c*n,textAnchor:"middle",verticalAnchor:f};return ae(ae({},y),r?{height:Math.max(o-r.y,0),width:s}:{})}if(i==="bottom"){var b={x:a+s/2,y:o+u+l,textAnchor:"middle",verticalAnchor:d};return ae(ae({},b),r?{height:Math.max(r.y+r.height-(o+u),0),width:s}:{})}if(i==="left"){var g={x:a-p,y:o+u/2,textAnchor:m,verticalAnchor:"middle"};return ae(ae({},g),r?{width:Math.max(g.x-r.x,0),height:u}:{})}if(i==="right"){var w={x:a+s+p,y:o+u/2,textAnchor:v,verticalAnchor:"middle"};return ae(ae({},w),r?{width:Math.max(r.x+r.width-w.x,0),height:u}:{})}var C=r?{width:s,height:u}:{};return i==="insideLeft"?ae({x:a+p,y:o+u/2,textAnchor:v,verticalAnchor:"middle"},C):i==="insideRight"?ae({x:a+s-p,y:o+u/2,textAnchor:m,verticalAnchor:"middle"},C):i==="insideTop"?ae({x:a+s/2,y:o+l,textAnchor:"middle",verticalAnchor:d},C):i==="insideBottom"?ae({x:a+s/2,y:o+u-l,textAnchor:"middle",verticalAnchor:f},C):i==="insideTopLeft"?ae({x:a+p,y:o+l,textAnchor:v,verticalAnchor:d},C):i==="insideTopRight"?ae({x:a+s-p,y:o+l,textAnchor:m,verticalAnchor:d},C):i==="insideBottomLeft"?ae({x:a+p,y:o+u-l,textAnchor:v,verticalAnchor:f},C):i==="insideBottomRight"?ae({x:a+s-p,y:o+u-l,textAnchor:m,verticalAnchor:f},C):i&&typeof i=="object"&&(N(i.x)||Ht(i.x))&&(N(i.y)||Ht(i.y))?ae({x:a+It(i.x,s),y:o+It(i.y,u),textAnchor:"end",verticalAnchor:"end"},C):ae({x:a+s/2,y:o+u/2,textAnchor:"middle",verticalAnchor:"middle"},C)},$g=e=>"cx"in e&&N(e.cx);function qe(e){var{offset:t=5}=e,r=o1(e,Ag),n=ae({offset:t},r),{viewBox:i,position:a,value:o,children:s,content:u,className:c="",textBreakAll:l,labelRef:f}=n,d=F(fd),h=Ia(),p=a==="center"?h:d??h,m=i||p;if(!m||ue(o)&&ue(s)&&!E.isValidElement(u)&&typeof u!="function")return null;var v=ae(ae({},n),{},{viewBox:m});if(E.isValidElement(u)){var{labelRef:y}=v,b=o1(v,Sg);return E.cloneElement(u,b)}var g;if(typeof u=="function"){if(g=E.createElement(u,v),E.isValidElement(g))return g}else g=kg(n);var w=$g(m),C=le(n,!0);if(w&&(a==="insideStart"||a==="insideEnd"||a==="end"))return Ng(n,g,C,m);var O=w?Ig(m,n.offset,n.position):Rg(n,m);return x.createElement(Io,ht({ref:f,className:G.clsx("recharts-label",c)},C,O,{breakAll:l}),g)}qe.displayName="Label";var P3=e=>{var{cx:t,cy:r,angle:n,startAngle:i,endAngle:a,r:o,radius:s,innerRadius:u,outerRadius:c,x:l,y:f,top:d,left:h,width:p,height:m,clockWise:v,labelViewBox:y}=e;if(y)return y;if(N(p)&&N(m)){if(N(l)&&N(f))return{x:l,y:f,width:p,height:m};if(N(d)&&N(h))return{x:d,y:h,width:p,height:m}}if(N(l)&&N(f))return{x:l,y:f,width:0,height:0};if(N(t)&&N(r))return{cx:t,cy:r,startAngle:i||n||0,endAngle:a||n||0,innerRadius:u||0,outerRadius:c||s||o||0,clockWise:v};if(e.viewBox)return e.viewBox},Lg=(e,t,r)=>{if(!e)return null;var n={viewBox:t,labelRef:r};return e===!0?x.createElement(qe,ht({key:"label-implicit"},n)):ut(e)?x.createElement(qe,ht({key:"label-implicit",value:e},n)):E.isValidElement(e)?e.type===qe?E.cloneElement(e,ae({key:"label-implicit"},n)):x.createElement(qe,ht({key:"label-implicit",content:e},n)):Ro(e)?x.createElement(qe,ht({key:"label-implicit",content:e},n)):e&&typeof e=="object"?x.createElement(qe,ht({},e,{key:"label-implicit"},n)):null},Bg=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&n&&!t.label)return null;var{children:i,labelRef:a}=t,o=P3(t),s=V1(i,qe).map((c,l)=>E.cloneElement(c,{viewBox:r||o,key:"label-".concat(l)}));if(!n)return s;var u=Lg(t.label,r||o,a);return[u,...s]};qe.parseViewBox=P3;qe.renderCallByParent=Bg;var m0={},y0={},u1;function Fg(){return u1||(u1=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r[r.length-1]}e.last=t}(y0)),y0}var g0={},l1;function zg(){return l1||(l1=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return Array.isArray(r)?r:Array.from(r)}e.toArray=t}(g0)),g0}var c1;function qg(){return c1||(c1=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Fg(),r=zg(),n=wa();function i(a){if(n.isArrayLike(a))return t.last(r.toArray(a))}e.last=i}(m0)),m0}var b0,f1;function Wg(){return f1||(f1=1,b0=qg().last),b0}var Ug=Wg();const Kg=S.getDefaultExportFromCjs(Ug);var Vg=["valueAccessor"],Hg=["data","dataKey","clockWise","id","textBreakAll"];function ci(){return ci=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ci.apply(null,arguments)}function d1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function h1(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?d1(Object(r),!0).forEach(function(n){Gg(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Gg(e,t,r){return(t=Yg(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Yg(e){var t=Zg(e,"string");return typeof t=="symbol"?t:t+""}function Zg(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function p1(e,t){if(e==null)return{};var r,n,i=Xg(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Xg(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Qg=e=>Array.isArray(e.value)?Kg(e.value):e.value;function Nt(e){var{valueAccessor:t=Qg}=e,r=p1(e,Vg),{data:n,dataKey:i,clockWise:a,id:o,textBreakAll:s}=r,u=p1(r,Hg);return!n||!n.length?null:x.createElement(at,{className:"recharts-label-list"},n.map((c,l)=>{var f=ue(i)?t(c,l):we(c&&c.payload,i),d=ue(o)?{}:{id:"".concat(o,"-").concat(l)};return x.createElement(qe,ci({},le(c,!0),u,d,{parentViewBox:c.parentViewBox,value:f,textBreakAll:s,viewBox:qe.parseViewBox(ue(a)?c:h1(h1({},c),{},{clockWise:a})),key:"label-".concat(l),index:l}))}))}Nt.displayName="LabelList";function Jg(e,t){return e?e===!0?x.createElement(Nt,{key:"labelList-implicit",data:t}):x.isValidElement(e)||Ro(e)?x.createElement(Nt,{key:"labelList-implicit",data:t,content:e}):typeof e=="object"?x.createElement(Nt,ci({data:t},e,{key:"labelList-implicit"})):null:null}function eb(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:n}=e,i=V1(n,Nt).map((o,s)=>E.cloneElement(o,{data:t,key:"labelList-".concat(s)}));if(!r)return i;var a=Jg(e.label,t);return[a,...i]}Nt.renderCallByParent=eb;function ua(){return ua=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ua.apply(null,arguments)}var $o=e=>{var{cx:t,cy:r,r:n,className:i}=e,a=G.clsx("recharts-dot",i);return t===+t&&r===+r&&n===+n?x.createElement("circle",ua({},Rt(e),Ca(e),{className:a,cx:t,cy:r,r:n})):null},tb={radiusAxis:{},angleAxis:{}},A3=He({name:"polarAxis",initialState:tb,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:aO,removeRadiusAxis:oO,addAngleAxis:sO,removeAngleAxis:uO}=A3.actions,rb=A3.reducer;function S3(e){var{fn:t,args:r}=e,n=Me(),i=Ie();return E.useEffect(()=>{if(!i){var a=t(r);return n(gm(a)),()=>{n(bm(a))}}},[t,r,n,i]),null}var nb=()=>{};function _3(e){var{legendPayload:t}=e,r=Me(),n=Ie();return E.useEffect(()=>n?nb:(r(o7(t)),()=>{r(s7(t))}),[r,n,t]),null}function j3(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"animation-",r=E.useRef(Ur(t)),n=E.useRef(e);return n.current!==e&&(r.current=Ur(t),n.current=e),r.current}var C0,ib=()=>{var[e]=x.useState(()=>Ur("uid-"));return e},ab=(C0=x.useId)!==null&&C0!==void 0?C0:ib;function ob(e,t){var r=ab();return t||(e?"".concat(e,"-").concat(r):r)}var sb=E.createContext(void 0),M3=e=>{var{id:t,type:r,children:n}=e,i=ob("recharts-".concat(r),t);return x.createElement(sb.Provider,{value:i},n(i))},ub={cartesianItems:[],polarItems:[]},T3=He({name:"graphicalItems",initialState:ub,reducers:{addCartesianGraphicalItem(e,t){e.cartesianItems.push(t.payload)},replaceCartesianGraphicalItem(e,t){var{prev:r,next:n}=t.payload,i=mt(e).cartesianItems.indexOf(r);i>-1&&(e.cartesianItems[i]=n)},removeCartesianGraphicalItem(e,t){var r=mt(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=mt(e).polarItems.indexOf(t.payload);r>-1&&e.polarItems.splice(r,1)}}}),{addCartesianGraphicalItem:lb,replaceCartesianGraphicalItem:cb,removeCartesianGraphicalItem:fb,addPolarGraphicalItem:lO,removePolarGraphicalItem:cO}=T3.actions,db=T3.reducer;function k3(e){var t=Me(),r=E.useRef(null);return E.useEffect(()=>{r.current===null?t(lb(e)):r.current!==e&&t(cb({prev:r.current,next:e})),r.current=e},[t,e]),E.useEffect(()=>()=>{r.current&&(t(fb(r.current)),r.current=null)},[t]),null}function hb(){}var pb={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},v1={t:0},x0={t:1};function D3(e){var t=ft(e,pb),{isActive:r,canBegin:n,duration:i,easing:a,begin:o,onAnimationEnd:s,onAnimationStart:u,children:c}=t,l=uf("JavascriptAnimate",t.animationManager),[f,d]=E.useState(r?v1:x0),h=E.useRef(null);return E.useEffect(()=>{r||d(x0)},[r]),E.useEffect(()=>{if(!r||!n)return hb;var p=sf(v1,x0,af(a),i,d,l.getTimeoutController()),m=()=>{h.current=p()};return l.start([u,o,m,i,s]),()=>{l.stop(),h.current&&h.current(),s()}},[r,n,i,a,o,u,s,l]),c(f.t)}var vb=A([Oe],e=>{if(e)return{top:e.top,bottom:e.bottom,left:e.left,right:e.right}}),mb=A([vb,Ot,Et],(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)}}),Gi=()=>F(mb),yb=()=>F(uy);function m1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function y1(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?m1(Object(r),!0).forEach(function(n){gb(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gb(e,t,r){return(t=bb(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bb(e){var t=Cb(e,"string");return typeof t=="symbol"?t:t+""}function Cb(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var xb=e=>{var{point:t,childIndex:r,mainColor:n,activeDot:i,dataKey:a}=e;if(i===!1||t.x==null||t.y==null)return null;var o=y1(y1({index:r,dataKey:a,cx:t.x,cy:t.y,r:4,fill:n??"none",strokeWidth:2,stroke:"#fff",payload:t.payload,value:t.value},le(i,!1)),Ca(i)),s;return E.isValidElement(i)?s=E.cloneElement(i,o):typeof i=="function"?s=i(o):s=x.createElement($o,o),x.createElement(at,{className:"recharts-active-dot"},s)};function la(e){var{points:t,mainColor:r,activeDot:n,itemDataKey:i}=e,a=F(en),o=yb();if(t==null||o==null)return null;var s=t.find(u=>o.includes(u.payload));return ue(s)?null:xb({point:s,childIndex:Number(a),mainColor:r,dataKey:i,activeDot:n})}var wb={},N3=He({name:"errorBars",initialState:wb,reducers:{addErrorBar:(e,t)=>{var{itemId:r,errorBar:n}=t.payload;e[r]||(e[r]=[]),e[r].push(n)},removeErrorBar:(e,t)=>{var{itemId:r,errorBar:n}=t.payload;e[r]&&(e[r]=e[r].filter(i=>i.dataKey!==n.dataKey||i.direction!==n.direction))}}}),{addErrorBar:fO,removeErrorBar:dO}=N3.actions,Ob=N3.reducer,Eb=["children"];function Pb(e,t){if(e==null)return{};var r,n,i=Ab(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Ab(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Sb={data:[],xAxisId:"xAxis-0",yAxisId:"yAxis-0",dataPointFormatter:()=>({x:0,y:0,value:0}),errorBarOffset:0},_b=E.createContext(Sb);function jb(e){var{children:t}=e,r=Pb(e,Eb);return x.createElement(_b.Provider,{value:r},t)}function Lo(e,t){var r,n,i=F(c=>At(c,e)),a=F(c=>Ft(c,t)),o=(r=i?.allowDataOverflow)!==null&&r!==void 0?r:Be.allowDataOverflow,s=(n=a?.allowDataOverflow)!==null&&n!==void 0?n:Fe.allowDataOverflow,u=o||s;return{needClip:u,needClipX:o,needClipY:s}}function I3(e){var{xAxisId:t,yAxisId:r,clipPathId:n}=e,i=Gi(),{needClipX:a,needClipY:o,needClip:s}=Lo(t,r);if(!s)return null;var{x:u,y:c,width:l,height:f}=i;return x.createElement("clipPath",{id:"clipPath-".concat(n)},x.createElement("rect",{x:a?u:u-l/2,y:o?c:c-f/2,width:a?l:l*2,height:o?f:f*2}))}var Mb=e=>{var{chartData:t}=e,r=Me(),n=Ie();return E.useEffect(()=>n?()=>{}:(r(zl(t)),()=>{r(zl(void 0))}),[t,r,n]),null},g1={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},R3=He({name:"brush",initialState:g1,reducers:{setBrushSettings(e,t){return t.payload==null?g1:t.payload}}}),{setBrushSettings:hO}=R3.actions,Tb=R3.reducer;function kb(e,t,r){return(t=Db(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Db(e){var t=Nb(e,"string");return typeof t=="symbol"?t:t+""}function Nb(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class Bo{static create(t){return new Bo(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:n}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t!==void 0){if(n)switch(n){case"start":return this.scale(t);case"middle":{var i=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+i}case"end":{var a=this.bandwidth?this.bandwidth():0;return this.scale(t)+a}default:return this.scale(t)}if(r){var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+o}return this.scale(t)}}isInRange(t){var r=this.range(),n=r[0],i=r[r.length-1];return n<=i?t>=n&&t<=i:t>=i&&t<=n}}kb(Bo,"EPS",1e-4);function Ib(e){return(e%180+180)%180}var Rb=function(t){var{width:r,height:n}=t,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=Ib(i),o=a*Math.PI/180,s=Math.atan(n/r),u=o>s&&o<Math.PI-s?n/Math.sin(o):r/Math.cos(o);return Math.abs(u)},$b={dots:[],areas:[],lines:[]},$3=He({name:"referenceElements",initialState:$b,reducers:{addDot:(e,t)=>{e.dots.push(t.payload)},removeDot:(e,t)=>{var r=mt(e).dots.findIndex(n=>n===t.payload);r!==-1&&e.dots.splice(r,1)},addArea:(e,t)=>{e.areas.push(t.payload)},removeArea:(e,t)=>{var r=mt(e).areas.findIndex(n=>n===t.payload);r!==-1&&e.areas.splice(r,1)},addLine:(e,t)=>{e.lines.push(t.payload)},removeLine:(e,t)=>{var r=mt(e).lines.findIndex(n=>n===t.payload);r!==-1&&e.lines.splice(r,1)}}}),{addDot:pO,removeDot:vO,addArea:mO,removeArea:yO,addLine:gO,removeLine:bO}=$3.actions,Lb=$3.reducer,Bb=E.createContext(void 0),Fb=e=>{var{children:t}=e,[r]=E.useState("".concat(Ur("recharts"),"-clip")),n=Gi();if(n==null)return null;var{x:i,y:a,width:o,height:s}=n;return x.createElement(Bb.Provider,{value:r},x.createElement("defs",null,x.createElement("clipPath",{id:r},x.createElement("rect",{x:i,y:a,height:s,width:o}))),t)};function w0(e,t){for(var r in e)if({}.hasOwnProperty.call(e,r)&&(!{}.hasOwnProperty.call(t,r)||e[r]!==t[r]))return!1;for(var n in t)if({}.hasOwnProperty.call(t,n)&&!{}.hasOwnProperty.call(e,n))return!1;return!0}function L3(e,t,r){if(t<1)return[];if(t===1&&r===void 0)return e;for(var n=[],i=0;i<e.length;i+=t)n.push(e[i]);return n}function zb(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return Rb(n,r)}function qb(e,t,r){var n=r==="width",{x:i,y:a,width:o,height:s}=e;return t===1?{start:n?i:a,end:n?i+o:a+s}:{start:n?i+o:a+s,end:n?i:a}}function fi(e,t,r,n,i){if(e*t<e*n||e*t>e*i)return!1;var a=r();return e*(t-e*a/2-n)>=0&&e*(t+e*a/2-i)<=0}function Wb(e,t){return L3(e,t+1)}function Ub(e,t,r,n,i){for(var a=(n||[]).slice(),{start:o,end:s}=t,u=0,c=1,l=o,f=function(){var p=n?.[u];if(p===void 0)return{v:L3(n,c)};var m=u,v,y=()=>(v===void 0&&(v=r(p,m)),v),b=p.coordinate,g=u===0||fi(e,b,y,l,s);g||(u=0,l=o,c+=1),g&&(l=b+e*(y()/2+i),u+=c)},d;c<=a.length;)if(d=f(),d)return d.v;return[]}function b1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ae(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?b1(Object(r),!0).forEach(function(n){Kb(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Kb(e,t,r){return(t=Vb(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Vb(e){var t=Hb(e,"string");return typeof t=="symbol"?t:t+""}function Hb(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Gb(e,t,r,n,i){for(var a=(n||[]).slice(),o=a.length,{start:s}=t,{end:u}=t,c=function(d){var h=a[d],p,m=()=>(p===void 0&&(p=r(h,d)),p);if(d===o-1){var v=e*(h.coordinate+e*m()/2-u);a[d]=h=Ae(Ae({},h),{},{tickCoord:v>0?h.coordinate-v*e:h.coordinate})}else a[d]=h=Ae(Ae({},h),{},{tickCoord:h.coordinate});var y=fi(e,h.tickCoord,m,s,u);y&&(u=h.tickCoord-e*(m()/2+i),a[d]=Ae(Ae({},h),{},{isShow:!0}))},l=o-1;l>=0;l--)c(l);return a}function Yb(e,t,r,n,i,a){var o=(n||[]).slice(),s=o.length,{start:u,end:c}=t;if(a){var l=n[s-1],f=r(l,s-1),d=e*(l.coordinate+e*f/2-c);o[s-1]=l=Ae(Ae({},l),{},{tickCoord:d>0?l.coordinate-d*e:l.coordinate});var h=fi(e,l.tickCoord,()=>f,u,c);h&&(c=l.tickCoord-e*(f/2+i),o[s-1]=Ae(Ae({},l),{},{isShow:!0}))}for(var p=a?s-1:s,m=function(b){var g=o[b],w,C=()=>(w===void 0&&(w=r(g,b)),w);if(b===0){var O=e*(g.coordinate-e*C()/2-u);o[b]=g=Ae(Ae({},g),{},{tickCoord:O<0?g.coordinate-O*e:g.coordinate})}else o[b]=g=Ae(Ae({},g),{},{tickCoord:g.coordinate});var P=fi(e,g.tickCoord,C,u,c);P&&(u=g.tickCoord+e*(C()/2+i),o[b]=Ae(Ae({},g),{},{isShow:!0}))},v=0;v<p;v++)m(v);return o}function Fo(e,t,r){var{tick:n,ticks:i,viewBox:a,minTickGap:o,orientation:s,interval:u,tickFormatter:c,unit:l,angle:f}=e;if(!i||!i.length||!n)return[];if(N(u)||Or.isSsr){var d;return(d=Wb(i,N(u)?u:0))!==null&&d!==void 0?d:[]}var h=[],p=s==="top"||s==="bottom"?"width":"height",m=l&&p==="width"?Wr(l,{fontSize:t,letterSpacing:r}):{width:0,height:0},v=(g,w)=>{var C=typeof c=="function"?c(g.value,w):g.value;return p==="width"?zb(Wr(C,{fontSize:t,letterSpacing:r}),m,f):Wr(C,{fontSize:t,letterSpacing:r})[p]},y=i.length>=2?Xe(i[1].coordinate-i[0].coordinate):1,b=qb(a,y,p);return u==="equidistantPreserveStart"?Ub(y,b,v,i,o):(u==="preserveStart"||u==="preserveStartEnd"?h=Yb(y,b,v,i,o,u==="preserveStartEnd"):h=Gb(y,b,v,i,o),h.filter(g=>g.isShow))}var Zb=["viewBox"],Xb=["viewBox"];function pr(){return pr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},pr.apply(null,arguments)}function C1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function de(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?C1(Object(r),!0).forEach(function(n){zo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):C1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function x1(e,t){if(e==null)return{};var r,n,i=Qb(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Qb(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function zo(e,t,r){return(t=Jb(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Jb(e){var t=eC(e,"string");return typeof t=="symbol"?t:t+""}function eC(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class zt extends E.Component{constructor(t){super(t),this.tickRefs=x.createRef(),this.tickRefs.current=[],this.state={fontSize:"",letterSpacing:""}}shouldComponentUpdate(t,r){var{viewBox:n}=t,i=x1(t,Zb),a=this.props,{viewBox:o}=a,s=x1(a,Xb);return!w0(n,o)||!w0(i,s)||!w0(r,this.state)}getTickLineCoord(t){var{x:r,y:n,width:i,height:a,orientation:o,tickSize:s,mirror:u,tickMargin:c}=this.props,l,f,d,h,p,m,v=u?-1:1,y=t.tickSize||s,b=N(t.tickCoord)?t.tickCoord:t.coordinate;switch(o){case"top":l=f=t.coordinate,h=n+ +!u*a,d=h-v*y,m=d-v*c,p=b;break;case"left":d=h=t.coordinate,f=r+ +!u*i,l=f-v*y,p=l-v*c,m=b;break;case"right":d=h=t.coordinate,f=r+ +u*i,l=f+v*y,p=l+v*c,m=b;break;default:l=f=t.coordinate,h=n+ +u*a,d=h+v*y,m=d+v*c,p=b;break}return{line:{x1:l,y1:d,x2:f,y2:h},tick:{x:p,y:m}}}getTickTextAnchor(){var{orientation:t,mirror:r}=this.props,n;switch(t){case"left":n=r?"start":"end";break;case"right":n=r?"end":"start";break;default:n="middle";break}return n}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:n,height:i,orientation:a,mirror:o,axisLine:s}=this.props,u=de(de(de({},le(this.props,!1)),le(s,!1)),{},{fill:"none"});if(a==="top"||a==="bottom"){var c=+(a==="top"&&!o||a==="bottom"&&o);u=de(de({},u),{},{x1:t,y1:r+c*i,x2:t+n,y2:r+c*i})}else{var l=+(a==="left"&&!o||a==="right"&&o);u=de(de({},u),{},{x1:t+l*n,y1:r,x2:t+l*n,y2:r+i})}return x.createElement("line",pr({},u,{className:G.clsx("recharts-cartesian-axis-line",ir(s,"className"))}))}static renderTickItem(t,r,n){var i,a=G.clsx(r.className,"recharts-cartesian-axis-tick-value");if(x.isValidElement(t))i=x.cloneElement(t,de(de({},r),{},{className:a}));else if(typeof t=="function")i=t(de(de({},r),{},{className:a}));else{var o="recharts-cartesian-axis-tick-value";typeof t!="boolean"&&(o=G.clsx(o,t.className)),i=x.createElement(Io,pr({},r,{className:o}),n)}return i}renderTicks(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],{tickLine:i,stroke:a,tick:o,tickFormatter:s,unit:u,padding:c}=this.props,l=Fo(de(de({},this.props),{},{ticks:n}),t,r),f=this.getTickTextAnchor(),d=this.getTickVerticalAnchor(),h=Rt(this.props),p=le(o,!1),m=de(de({},h),{},{fill:"none"},le(i,!1)),v=l.map((y,b)=>{var{line:g,tick:w}=this.getTickLineCoord(y),C=de(de(de(de({textAnchor:f,verticalAnchor:d},h),{},{stroke:"none",fill:a},p),w),{},{index:b,payload:y,visibleTicksCount:l.length,tickFormatter:s,padding:c});return x.createElement(at,pr({className:"recharts-cartesian-axis-tick",key:"tick-".concat(y.value,"-").concat(y.coordinate,"-").concat(y.tickCoord)},F8(this.props,y,b)),i&&x.createElement("line",pr({},m,g,{className:G.clsx("recharts-cartesian-axis-tick-line",ir(i,"className"))})),o&&zt.renderTickItem(o,C,"".concat(typeof s=="function"?s(y.value,b):y.value).concat(u||"")))});return v.length>0?x.createElement("g",{className:"recharts-cartesian-axis-ticks"},v):null}render(){var{axisLine:t,width:r,height:n,className:i,hide:a}=this.props;if(a)return null;var{ticks:o}=this.props;return r!=null&&r<=0||n!=null&&n<=0?null:x.createElement(at,{className:G.clsx("recharts-cartesian-axis",i),ref:s=>{if(s){var u=s.getElementsByClassName("recharts-cartesian-axis-tick-value");this.tickRefs.current=Array.from(u);var c=u[0];if(c){var l=window.getComputedStyle(c).fontSize,f=window.getComputedStyle(c).letterSpacing;(l!==this.state.fontSize||f!==this.state.letterSpacing)&&this.setState({fontSize:window.getComputedStyle(c).fontSize,letterSpacing:window.getComputedStyle(c).letterSpacing})}}}},t&&this.renderAxisLine(),this.renderTicks(this.state.fontSize,this.state.letterSpacing,o),qe.renderCallByParent(this.props))}}zo(zt,"displayName","CartesianAxis");zo(zt,"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 tC=["x1","y1","x2","y2","key"],rC=["offset"],nC=["xAxisId","yAxisId"],iC=["xAxisId","yAxisId"];function w1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Se(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?w1(Object(r),!0).forEach(function(n){aC(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function aC(e,t,r){return(t=oC(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function oC(e){var t=sC(e,"string");return typeof t=="symbol"?t:t+""}function sC(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Xt(){return Xt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Xt.apply(null,arguments)}function di(e,t){if(e==null)return{};var r,n,i=uC(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function uC(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var lC=e=>{var{fill:t}=e;if(!t||t==="none")return null;var{fillOpacity:r,x:n,y:i,width:a,height:o,ry:s}=e;return x.createElement("rect",{x:n,y:i,ry:s,width:a,height:o,stroke:"none",fill:t,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function B3(e,t){var r;if(x.isValidElement(e))r=x.cloneElement(e,t);else if(typeof e=="function")r=e(t);else{var{x1:n,y1:i,x2:a,y2:o,key:s}=t,u=di(t,tC),c=Rt(u),{offset:l}=c,f=di(c,rC);r=x.createElement("line",Xt({},f,{x1:n,y1:i,x2:a,y2:o,fill:"none",key:s}))}return r}function cC(e){var{x:t,width:r,horizontal:n=!0,horizontalPoints:i}=e;if(!n||!i||!i.length)return null;var{xAxisId:a,yAxisId:o}=e,s=di(e,nC),u=i.map((c,l)=>{var f=Se(Se({},s),{},{x1:t,y1:c,x2:t+r,y2:c,key:"line-".concat(l),index:l});return B3(n,f)});return x.createElement("g",{className:"recharts-cartesian-grid-horizontal"},u)}function fC(e){var{y:t,height:r,vertical:n=!0,verticalPoints:i}=e;if(!n||!i||!i.length)return null;var{xAxisId:a,yAxisId:o}=e,s=di(e,iC),u=i.map((c,l)=>{var f=Se(Se({},s),{},{x1:c,y1:t,x2:c,y2:t+r,key:"line-".concat(l),index:l});return B3(n,f)});return x.createElement("g",{className:"recharts-cartesian-grid-vertical"},u)}function dC(e){var{horizontalFill:t,fillOpacity:r,x:n,y:i,width:a,height:o,horizontalPoints:s,horizontal:u=!0}=e;if(!u||!t||!t.length)return null;var c=s.map(f=>Math.round(f+i-i)).sort((f,d)=>f-d);i!==c[0]&&c.unshift(0);var l=c.map((f,d)=>{var h=!c[d+1],p=h?i+o-f:c[d+1]-f;if(p<=0)return null;var m=d%t.length;return x.createElement("rect",{key:"react-".concat(d),y:f,x:n,height:p,width:a,stroke:"none",fill:t[m],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return x.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},l)}function hC(e){var{vertical:t=!0,verticalFill:r,fillOpacity:n,x:i,y:a,width:o,height:s,verticalPoints:u}=e;if(!t||!r||!r.length)return null;var c=u.map(f=>Math.round(f+i-i)).sort((f,d)=>f-d);i!==c[0]&&c.unshift(0);var l=c.map((f,d)=>{var h=!c[d+1],p=h?i+o-f:c[d+1]-f;if(p<=0)return null;var m=d%r.length;return x.createElement("rect",{key:"react-".concat(d),x:f,y:a,width:p,height:s,stroke:"none",fill:r[m],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return x.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},l)}var pC=(e,t)=>{var{xAxis:r,width:n,height:i,offset:a}=e;return Hc(Fo(Se(Se(Se({},zt.defaultProps),r),{},{ticks:Gc(r),viewBox:{x:0,y:0,width:n,height:i}})),a.left,a.left+a.width,t)},vC=(e,t)=>{var{yAxis:r,width:n,height:i,offset:a}=e;return Hc(Fo(Se(Se(Se({},zt.defaultProps),r),{},{ticks:Gc(r),viewBox:{x:0,y:0,width:n,height:i}})),a.top,a.top+a.height,t)},mC={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[],xAxisId:0,yAxisId:0};function F3(e){var t=Qc(),r=Jc(),n=Xc(),i=Se(Se({},ft(e,mC)),{},{x:N(e.x)?e.x:n.left,y:N(e.y)?e.y:n.top,width:N(e.width)?e.width:n.width,height:N(e.height)?e.height:n.height}),{xAxisId:a,yAxisId:o,x:s,y:u,width:c,height:l,syncWithTicks:f,horizontalValues:d,verticalValues:h}=i,p=Ie(),m=F(M=>kl(M,"xAxis",a,p)),v=F(M=>kl(M,"yAxis",o,p));if(!N(c)||c<=0||!N(l)||l<=0||!N(s)||s!==+s||!N(u)||u!==+u)return null;var y=i.verticalCoordinatesGenerator||pC,b=i.horizontalCoordinatesGenerator||vC,{horizontalPoints:g,verticalPoints:w}=i;if((!g||!g.length)&&typeof b=="function"){var C=d&&d.length,O=b({yAxis:v?Se(Se({},v),{},{ticks:C?d:v.ticks}):void 0,width:t,height:r,offset:n},C?!0:f);qr(Array.isArray(O),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(typeof O,"]")),Array.isArray(O)&&(g=O)}if((!w||!w.length)&&typeof y=="function"){var P=h&&h.length,_=y({xAxis:m?Se(Se({},m),{},{ticks:P?h:m.ticks}):void 0,width:t,height:r,offset:n},P?!0:f);qr(Array.isArray(_),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(typeof _,"]")),Array.isArray(_)&&(w=_)}return x.createElement("g",{className:"recharts-cartesian-grid"},x.createElement(lC,{fill:i.fill,fillOpacity:i.fillOpacity,x:i.x,y:i.y,width:i.width,height:i.height,ry:i.ry}),x.createElement(dC,Xt({},i,{horizontalPoints:g})),x.createElement(hC,Xt({},i,{verticalPoints:w})),x.createElement(cC,Xt({},i,{offset:n,horizontalPoints:g,xAxis:m,yAxis:v})),x.createElement(fC,Xt({},i,{offset:n,verticalPoints:w,xAxis:m,yAxis:v})))}F3.displayName="CartesianGrid";var z3=(e,t,r,n)=>Vi(e,"xAxis",t,n),q3=(e,t,r,n)=>Ki(e,"xAxis",t,n),W3=(e,t,r,n)=>Vi(e,"yAxis",r,n),U3=(e,t,r,n)=>Ki(e,"yAxis",r,n),yC=A([Q,z3,W3,q3,U3],(e,t,r,n,i)=>ct(e,"xAxis")?Hr(t,n,!1):Hr(r,i,!1)),gC=(e,t,r,n,i)=>i;function bC(e){return e.type==="line"}var CC=A([go,gC],(e,t)=>e.filter(bC).find(r=>r.id===t)),xC=A([Q,z3,W3,q3,U3,CC,yC,Ii],(e,t,r,n,i,a,o,s)=>{var{chartData:u,dataStartIndex:c,dataEndIndex:l}=s;if(!(a==null||t==null||r==null||n==null||i==null||n.length===0||i.length===0||o==null)){var{dataKey:f,data:d}=a,h;if(d!=null&&d.length>0?h=d:h=u?.slice(c,l+1),h!=null)return qC({layout:e,xAxis:t,yAxis:r,xAxisTicks:n,yAxisTicks:i,dataKey:f,bandSize:o,displayedData:h})}}),wC=["id"],OC=["type","layout","connectNulls","needClip"],EC=["activeDot","animateNewValues","animationBegin","animationDuration","animationEasing","connectNulls","dot","hide","isAnimationActive","label","legendType","xAxisId","yAxisId","id"];function O1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function nt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?O1(Object(r),!0).forEach(function(n){PC(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):O1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function PC(e,t,r){return(t=AC(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function AC(e){var t=SC(e,"string");return typeof t=="symbol"?t:t+""}function SC(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qo(e,t){if(e==null)return{};var r,n,i=_C(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function _C(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function ur(){return ur=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ur.apply(null,arguments)}var jC=e=>{var{dataKey:t,name:r,stroke:n,legendType:i,hide:a}=e;return[{inactive:a,dataKey:t,type:i,color:n,value:Ei(r,t),payload:e}]};function MC(e){var{dataKey:t,data:r,stroke:n,strokeWidth:i,fill:a,name:o,hide:s,unit:u}=e;return{dataDefinedOnItem:r,positions:void 0,settings:{stroke:n,strokeWidth:i,fill:a,dataKey:t,nameKey:void 0,name:Ei(o,t),hide:s,type:e.tooltipType,color:e.stroke,unit:u}}}var K3=(e,t)=>"".concat(t,"px ").concat(e-t,"px");function TC(e,t){for(var r=e.length%2!==0?[...e,0]:e,n=[],i=0;i<t;++i)n=[...n,...r];return n}var kC=(e,t,r)=>{var n=r.reduce((f,d)=>f+d);if(!n)return K3(t,e);for(var i=Math.floor(e/n),a=e%n,o=t-e,s=[],u=0,c=0;u<r.length;c+=r[u],++u)if(c+r[u]>a){s=[...r.slice(0,u),a-c];break}var l=s.length%2===0?[0,o]:[o];return[...TC(r,i),...s,...l].map(f=>"".concat(f,"px")).join(", ")};function DC(e,t){var r;if(x.isValidElement(e))r=x.cloneElement(e,t);else if(typeof e=="function")r=e(t);else{var n=G.clsx("recharts-line-dot",typeof e!="boolean"?e.className:"");r=x.createElement($o,ur({},t,{className:n}))}return r}function NC(e,t){return e==null?!1:t?!0:e.length===1}function IC(e){var{clipPathId:t,points:r,props:n}=e,{dot:i,dataKey:a,needClip:o}=n;if(!NC(r,i))return null;var{id:s}=n,u=qo(n,wC),c=vi(i),l=Rt(u),f=le(i,!0),d=r.map((p,m)=>{var v=nt(nt(nt({key:"dot-".concat(m),r:3},l),f),{},{index:m,cx:p.x,cy:p.y,dataKey:a,value:p.value,payload:p.payload,points:r});return DC(i,v)}),h={clipPath:o?"url(#clipPath-".concat(c?"":"dots-").concat(t,")"):void 0};return x.createElement(at,ur({className:"recharts-line-dots",key:"dots"},h),d)}function ca(e){var{clipPathId:t,pathRef:r,points:n,strokeDasharray:i,props:a,showLabels:o}=e,{type:s,layout:u,connectNulls:c,needClip:l}=a,f=qo(a,OC),d=nt(nt({},le(f,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:l?"url(#clipPath-".concat(t,")"):void 0,points:n,type:s,layout:u,connectNulls:c,strokeDasharray:i??a.strokeDasharray});return x.createElement(x.Fragment,null,n?.length>1&&x.createElement(zr,ur({},d,{pathRef:r})),x.createElement(IC,{points:n,clipPathId:t,props:a}),o&&Nt.renderCallByParent(a,n))}function RC(e){try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch{return 0}}function $C(e){var{clipPathId:t,props:r,pathRef:n,previousPointsRef:i,longestAnimatedLengthRef:a}=e,{points:o,strokeDasharray:s,isAnimationActive:u,animationBegin:c,animationDuration:l,animationEasing:f,animateNewValues:d,width:h,height:p,onAnimationEnd:m,onAnimationStart:v}=r,y=i.current,b=j3(r,"recharts-line-"),[g,w]=E.useState(!1),C=E.useCallback(()=>{typeof m=="function"&&m(),w(!1)},[m]),O=E.useCallback(()=>{typeof v=="function"&&v(),w(!0)},[v]),P=RC(n.current),_=a.current;return x.createElement(D3,{begin:c,duration:l,isActive:u,easing:f,onAnimationEnd:C,onAnimationStart:O,key:b},M=>{var z=rt(_,P+_,M),T=Math.min(z,P),k;if(s){var W="".concat(s).split(/[,\s]+/gim).map(Y=>parseFloat(Y));k=kC(T,P,W)}else k=K3(P,T);if(y){var K=y.length/o.length,te=M===1?o:o.map((Y,B)=>{var q=Math.floor(B*K);if(y[q]){var R=y[q];return nt(nt({},Y),{},{x:rt(R.x,Y.x,M),y:rt(R.y,Y.y,M)})}return d?nt(nt({},Y),{},{x:rt(h*2,Y.x,M),y:rt(p/2,Y.y,M)}):nt(nt({},Y),{},{x:Y.x,y:Y.y})});return i.current=te,x.createElement(ca,{props:r,points:te,clipPathId:t,pathRef:n,showLabels:!g,strokeDasharray:k})}return M>0&&P>0&&(i.current=o,a.current=T),x.createElement(ca,{props:r,points:o,clipPathId:t,pathRef:n,showLabels:!g,strokeDasharray:k})})}function LC(e){var{clipPathId:t,props:r}=e,{points:n,isAnimationActive:i}=r,a=E.useRef(null),o=E.useRef(0),s=E.useRef(null),u=a.current;return i&&n&&n.length&&u!==n?x.createElement($C,{props:r,clipPathId:t,previousPointsRef:a,longestAnimatedLengthRef:o,pathRef:s}):x.createElement(ca,{props:r,points:n,clipPathId:t,pathRef:s,showLabels:!0})}var BC=(e,t)=>({x:e.x,y:e.y,value:e.value,errorVal:we(e.payload,t)});class FC extends E.Component{render(){var t,{hide:r,dot:n,points:i,className:a,xAxisId:o,yAxisId:s,top:u,left:c,width:l,height:f,id:d,needClip:h}=this.props;if(r)return null;var p=G.clsx("recharts-line",a),m=d,{r:v=3,strokeWidth:y=2}=(t=le(n,!1))!==null&&t!==void 0?t:{r:3,strokeWidth:2},b=vi(n),g=v*2+y;return x.createElement(x.Fragment,null,x.createElement(at,{className:p},h&&x.createElement("defs",null,x.createElement(I3,{clipPathId:m,xAxisId:o,yAxisId:s}),!b&&x.createElement("clipPath",{id:"clipPath-dots-".concat(m)},x.createElement("rect",{x:c-g/2,y:u-g/2,width:l+g,height:f+g}))),x.createElement(LC,{props:this.props,clipPathId:m}),x.createElement(jb,{xAxisId:o,yAxisId:s,data:i,dataPointFormatter:BC,errorBarOffset:0},this.props.children)),x.createElement(la,{activeDot:this.props.activeDot,points:i,mainColor:this.props.stroke,itemDataKey:this.props.dataKey}))}}var V3={activeDot:!0,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",connectNulls:!1,dot:!0,fill:"#fff",hide:!1,isAnimationActive:!Or.isSsr,label:!1,legendType:"line",stroke:"#3182bd",strokeWidth:1,xAxisId:0,yAxisId:0};function zC(e){var t=ft(e,V3),{activeDot:r,animateNewValues:n,animationBegin:i,animationDuration:a,animationEasing:o,connectNulls:s,dot:u,hide:c,isAnimationActive:l,label:f,legendType:d,xAxisId:h,yAxisId:p,id:m}=t,v=qo(t,EC),{needClip:y}=Lo(h,p),b=Gi(),g=_i(),w=Ie(),C=F(z=>xC(z,h,p,w,m));if(g!=="horizontal"&&g!=="vertical"||C==null||b==null)return null;var{height:O,width:P,x:_,y:M}=b;return x.createElement(FC,ur({},v,{id:m,connectNulls:s,dot:u,activeDot:r,animateNewValues:n,animationBegin:i,animationDuration:a,animationEasing:o,isAnimationActive:l,hide:c,label:f,legendType:d,xAxisId:h,yAxisId:p,points:C,layout:g,height:O,width:P,left:_,top:M,needClip:y}))}function qC(e){var{layout:t,xAxis:r,yAxis:n,xAxisTicks:i,yAxisTicks:a,dataKey:o,bandSize:s,displayedData:u}=e;return u.map((c,l)=>{var f=we(c,o);if(t==="horizontal"){var d=Vn({axis:r,ticks:i,bandSize:s,entry:c,index:l}),h=ue(f)?null:n.scale(f);return{x:d,y:h,value:f,payload:c}}var p=ue(f)?null:r.scale(f),m=Vn({axis:n,ticks:a,bandSize:s,entry:c,index:l});return p==null||m==null?null:{x:p,y:m,value:f,payload:c}}).filter(Boolean)}function H3(e){var t=ft(e,V3),r=Ie();return x.createElement(M3,{id:t.id,type:"line"},n=>x.createElement(x.Fragment,null,x.createElement(_3,{legendPayload:jC(t)}),x.createElement(S3,{fn:MC,args:t}),x.createElement(k3,{type:"line",id:n,data:t.data,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,hide:t.hide,isPanorama:r}),x.createElement(zC,ur({},t,{id:n}))))}H3.displayName="Line";var G3=(e,t,r,n)=>Vi(e,"xAxis",t,n),Y3=(e,t,r,n)=>Ki(e,"xAxis",t,n),Z3=(e,t,r,n)=>Vi(e,"yAxis",r,n),X3=(e,t,r,n)=>Ki(e,"yAxis",r,n),WC=A([Q,G3,Z3,Y3,X3],(e,t,r,n,i)=>ct(e,"xAxis")?Hr(t,n,!1):Hr(r,i,!1)),UC=(e,t,r,n,i)=>i,Q3=A([go,UC],(e,t)=>e.filter(r=>r.type==="area").find(r=>r.id===t)),KC=(e,t,r,n,i)=>{var a,o=Q3(e,t,r,n,i);if(o!=null){var s=Q(e),u=ct(s,"xAxis"),c;if(u?c=ra(e,"yAxis",r,n):c=ra(e,"xAxis",t,n),c!=null){var{stackId:l}=o,f=vo(o);if(!(l==null||f==null)){var d=(a=c[l])===null||a===void 0?void 0:a.stackedData;return d?.find(h=>h.key===f)}}}},VC=A([Q,G3,Z3,Y3,X3,KC,Ii,WC,Q3],(e,t,r,n,i,a,o,s,u)=>{var{chartData:c,dataStartIndex:l,dataEndIndex:f}=o;if(!(u==null||e!=="horizontal"&&e!=="vertical"||t==null||r==null||n==null||i==null||n.length===0||i.length===0||s==null)){var{data:d}=u,h;if(d&&d.length>0?h=d:h=c?.slice(l,f+1),h!=null){var p=void 0;return dx({layout:e,xAxis:t,yAxis:r,xAxisTicks:n,yAxisTicks:i,dataStartIndex:l,areaSettings:u,stackedData:a,displayedData:h,chartBaseValue:p,bandSize:s})}}}),HC=["id"],GC=["activeDot","animationBegin","animationDuration","animationEasing","connectNulls","dot","fill","fillOpacity","hide","isAnimationActive","legendType","stroke","xAxisId","yAxisId"];function J3(e,t){if(e==null)return{};var r,n,i=YC(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function YC(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function E1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Qt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?E1(Object(r),!0).forEach(function(n){ZC(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):E1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ZC(e,t,r){return(t=XC(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function XC(e){var t=QC(e,"string");return typeof t=="symbol"?t:t+""}function QC(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function gt(){return gt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},gt.apply(null,arguments)}function hi(e,t){return e&&e!=="none"?e:t}var JC=e=>{var{dataKey:t,name:r,stroke:n,fill:i,legendType:a,hide:o}=e;return[{inactive:o,dataKey:t,type:a,color:hi(n,i),value:Ei(r,t),payload:e}]};function ex(e){var{dataKey:t,data:r,stroke:n,strokeWidth:i,fill:a,name:o,hide:s,unit:u}=e;return{dataDefinedOnItem:r,positions:void 0,settings:{stroke:n,strokeWidth:i,fill:a,dataKey:t,nameKey:void 0,name:Ei(o,t),hide:s,type:e.tooltipType,color:hi(n,a),unit:u}}}var tx=(e,t)=>{var r;if(x.isValidElement(e))r=x.cloneElement(e,t);else if(typeof e=="function")r=e(t);else{var n=G.clsx("recharts-area-dot",typeof e!="boolean"?e.className:"");r=x.createElement($o,gt({},t,{className:n}))}return r};function rx(e,t){return e==null?!1:t?!0:e.length===1}function nx(e){var{clipPathId:t,points:r,props:n}=e,{needClip:i,dot:a,dataKey:o}=n;if(!rx(r,a))return null;var s=vi(a),u=Rt(n),c=le(a,!0),l=r.map((d,h)=>{var p=Qt(Qt(Qt({key:"dot-".concat(h),r:3},u),c),{},{index:h,cx:d.x,cy:d.y,dataKey:o,value:d.value,payload:d.payload,points:r});return tx(a,p)}),f={clipPath:i?"url(#clipPath-".concat(s?"":"dots-").concat(t,")"):void 0};return x.createElement(at,gt({className:"recharts-area-dots"},f),l)}function fa(e){var{points:t,baseLine:r,needClip:n,clipPathId:i,props:a,showLabels:o}=e,{layout:s,type:u,stroke:c,connectNulls:l,isRange:f}=a,{id:d}=a,h=J3(a,HC),p=Rt(h);return x.createElement(x.Fragment,null,t?.length>1&&x.createElement(at,{clipPath:n?"url(#clipPath-".concat(i,")"):void 0},x.createElement(zr,gt({},p,{id:d,points:t,connectNulls:l,type:u,baseLine:r,layout:s,stroke:"none",className:"recharts-area-area"})),c!=="none"&&x.createElement(zr,gt({},p,{className:"recharts-area-curve",layout:s,type:u,connectNulls:l,fill:"none",points:t})),c!=="none"&&f&&x.createElement(zr,gt({},p,{className:"recharts-area-curve",layout:s,type:u,connectNulls:l,fill:"none",points:r}))),x.createElement(nx,{points:t,props:h,clipPathId:i}),o&&Nt.renderCallByParent(h,t))}function ix(e){var{alpha:t,baseLine:r,points:n,strokeWidth:i}=e,a=n[0].y,o=n[n.length-1].y;if(!je(a)||!je(o))return null;var s=t*Math.abs(a-o),u=Math.max(...n.map(c=>c.x||0));return N(r)?u=Math.max(r,u):r&&Array.isArray(r)&&r.length&&(u=Math.max(...r.map(c=>c.x||0),u)),N(u)?x.createElement("rect",{x:0,y:a<o?a:a-s,width:u+(i?parseInt("".concat(i),10):1),height:Math.floor(s)}):null}function ax(e){var{alpha:t,baseLine:r,points:n,strokeWidth:i}=e,a=n[0].x,o=n[n.length-1].x;if(!je(a)||!je(o))return null;var s=t*Math.abs(a-o),u=Math.max(...n.map(c=>c.y||0));return N(r)?u=Math.max(r,u):r&&Array.isArray(r)&&r.length&&(u=Math.max(...r.map(c=>c.y||0),u)),N(u)?x.createElement("rect",{x:a<o?a:a-s,y:0,width:s,height:Math.floor(u+(i?parseInt("".concat(i),10):1))}):null}function ox(e){var{alpha:t,layout:r,points:n,baseLine:i,strokeWidth:a}=e;return r==="vertical"?x.createElement(ix,{alpha:t,points:n,baseLine:i,strokeWidth:a}):x.createElement(ax,{alpha:t,points:n,baseLine:i,strokeWidth:a})}function sx(e){var{needClip:t,clipPathId:r,props:n,previousPointsRef:i,previousBaselineRef:a}=e,{points:o,baseLine:s,isAnimationActive:u,animationBegin:c,animationDuration:l,animationEasing:f,onAnimationStart:d,onAnimationEnd:h}=n,p=j3(n,"recharts-area-"),[m,v]=E.useState(!0),y=E.useCallback(()=>{typeof h=="function"&&h(),v(!1)},[h]),b=E.useCallback(()=>{typeof d=="function"&&d(),v(!0)},[d]),g=i.current,w=a.current;return x.createElement(D3,{begin:c,duration:l,isActive:u,easing:f,onAnimationEnd:y,onAnimationStart:b,key:p},C=>{if(g){var O=g.length/o.length,P=C===1?o:o.map((M,z)=>{var T=Math.floor(z*O);if(g[T]){var k=g[T];return Qt(Qt({},M),{},{x:rt(k.x,M.x,C),y:rt(k.y,M.y,C)})}return M}),_;return N(s)?_=rt(w,s,C):ue(s)||Ue(s)?_=rt(w,0,C):_=s.map((M,z)=>{var T=Math.floor(z*O);if(Array.isArray(w)&&w[T]){var k=w[T];return Qt(Qt({},M),{},{x:rt(k.x,M.x,C),y:rt(k.y,M.y,C)})}return M}),C>0&&(i.current=P,a.current=_),x.createElement(fa,{points:P,baseLine:_,needClip:t,clipPathId:r,props:n,showLabels:!m})}return C>0&&(i.current=o,a.current=s),x.createElement(at,null,x.createElement("defs",null,x.createElement("clipPath",{id:"animationClipPath-".concat(r)},x.createElement(ox,{alpha:C,points:o,baseLine:s,layout:n.layout,strokeWidth:n.strokeWidth}))),x.createElement(at,{clipPath:"url(#animationClipPath-".concat(r,")")},x.createElement(fa,{points:o,baseLine:s,needClip:t,clipPathId:r,props:n,showLabels:!0})))})}function ux(e){var{needClip:t,clipPathId:r,props:n}=e,{points:i,baseLine:a,isAnimationActive:o}=n,s=E.useRef(null),u=E.useRef(),c=s.current,l=u.current;return o&&i&&i.length&&(c!==i||l!==a)?x.createElement(sx,{needClip:t,clipPathId:r,props:n,previousPointsRef:s,previousBaselineRef:u}):x.createElement(fa,{points:i,baseLine:a,needClip:t,clipPathId:r,props:n,showLabels:!0})}class lx extends E.PureComponent{render(){var t,{hide:r,dot:n,points:i,className:a,top:o,left:s,needClip:u,xAxisId:c,yAxisId:l,width:f,height:d,id:h,baseLine:p}=this.props;if(r)return null;var m=G.clsx("recharts-area",a),v=h,{r:y=3,strokeWidth:b=2}=(t=le(n,!1))!==null&&t!==void 0?t:{r:3,strokeWidth:2},g=vi(n),w=y*2+b;return x.createElement(x.Fragment,null,x.createElement(at,{className:m},u&&x.createElement("defs",null,x.createElement(I3,{clipPathId:v,xAxisId:c,yAxisId:l}),!g&&x.createElement("clipPath",{id:"clipPath-dots-".concat(v)},x.createElement("rect",{x:s-w/2,y:o-w/2,width:f+w,height:d+w}))),x.createElement(ux,{needClip:u,clipPathId:v,props:this.props})),x.createElement(la,{points:i,mainColor:hi(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot}),this.props.isRange&&Array.isArray(p)&&x.createElement(la,{points:p,mainColor:hi(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot}))}}var e8={activeDot:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",connectNulls:!1,dot:!1,fill:"#3182bd",fillOpacity:.6,hide:!1,isAnimationActive:!Or.isSsr,legendType:"line",stroke:"#3182bd",xAxisId:0,yAxisId:0};function cx(e){var t,r=ft(e,e8),{activeDot:n,animationBegin:i,animationDuration:a,animationEasing:o,connectNulls:s,dot:u,fill:c,fillOpacity:l,hide:f,isAnimationActive:d,legendType:h,stroke:p,xAxisId:m,yAxisId:v}=r,y=J3(r,GC),b=_i(),g=l3(),{needClip:w}=Lo(m,v),C=Ie(),{points:O,isRange:P,baseLine:_}=(t=F(K=>VC(K,m,v,C,e.id)))!==null&&t!==void 0?t:{},M=Gi();if(b!=="horizontal"&&b!=="vertical"||M==null||g!=="AreaChart"&&g!=="ComposedChart")return null;var{height:z,width:T,x:k,y:W}=M;return!O||!O.length?null:x.createElement(lx,gt({},y,{activeDot:n,animationBegin:i,animationDuration:a,animationEasing:o,baseLine:_,connectNulls:s,dot:u,fill:c,fillOpacity:l,height:z,hide:f,layout:b,isAnimationActive:d,isRange:P,legendType:h,needClip:w,points:O,stroke:p,width:T,left:k,top:W,xAxisId:m,yAxisId:v}))}var fx=(e,t,r,n,i)=>{var a=r??t;if(N(a))return a;var o=e==="horizontal"?i:n,s=o.scale.domain();if(o.type==="number"){var u=Math.max(s[0],s[1]),c=Math.min(s[0],s[1]);return a==="dataMin"?c:a==="dataMax"||u<0?u:Math.max(Math.min(s[0],s[1]),0)}return a==="dataMin"?s[0]:a==="dataMax"?s[1]:s[0]};function dx(e){var{areaSettings:{connectNulls:t,baseValue:r,dataKey:n},stackedData:i,layout:a,chartBaseValue:o,xAxis:s,yAxis:u,displayedData:c,dataStartIndex:l,xAxisTicks:f,yAxisTicks:d,bandSize:h}=e,p=i&&i.length,m=fx(a,o,r,s,u),v=a==="horizontal",y=!1,b=c.map((w,C)=>{var O;p?O=i[l+C]:(O=we(w,n),Array.isArray(O)?y=!0:O=[m,O]);var P=O[1]==null||p&&!t&&we(w,n)==null;return v?{x:Vn({axis:s,ticks:f,bandSize:h,entry:w,index:C}),y:P?null:u.scale(O[1]),value:O,payload:w}:{x:P?null:s.scale(O[1]),y:Vn({axis:u,ticks:d,bandSize:h,entry:w,index:C}),value:O,payload:w}}),g;return p||y?g=b.map(w=>{var C=Array.isArray(w.value)?w.value[0]:null;return v?{x:w.x,y:C!=null&&w.y!=null?u.scale(C):null,payload:w.payload}:{x:C!=null?s.scale(C):null,y:w.y,payload:w.payload}}):g=v?u.scale(m):s.scale(m),{points:b,baseLine:g,isRange:y}}function t8(e){var t=ft(e,e8),r=Ie();return x.createElement(M3,{id:t.id,type:"area"},n=>x.createElement(x.Fragment,null,x.createElement(_3,{legendPayload:JC(t)}),x.createElement(S3,{fn:ex,args:t}),x.createElement(k3,{type:"area",id:n,data:t.data,dataKey:t.dataKey,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,stackId:q6(t.stackId),hide:t.hide,barSize:void 0,baseValue:t.baseValue,isPanorama:r,connectNulls:t.connectNulls}),x.createElement(cx,gt({},t,{id:n}))))}t8.displayName="Area";function P1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function A1(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?P1(Object(r),!0).forEach(function(n){hx(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):P1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function hx(e,t,r){return(t=px(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function px(e){var t=vx(e,"string");return typeof t=="symbol"?t:t+""}function vx(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var mx={xAxis:{},yAxis:{},zAxis:{}},r8=He({name:"cartesianAxis",initialState:mx,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:n}=t.payload;e.yAxis[r]&&(e.yAxis[r]=A1(A1({},e.yAxis[r]),{},{width:n}))}}}),{addXAxis:yx,removeXAxis:gx,addYAxis:bx,removeYAxis:Cx,addZAxis:CO,removeZAxis:xO,updateYAxisWidth:xx}=r8.actions,wx=r8.reducer,Ox=["children"],Ex=["dangerouslySetInnerHTML","ticks"];function n8(e,t,r){return(t=Px(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Px(e){var t=Ax(e,"string");return typeof t=="symbol"?t:t+""}function Ax(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function da(){return da=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},da.apply(null,arguments)}function i8(e,t){if(e==null)return{};var r,n,i=Sx(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Sx(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function _x(e){var t=Me(),r=E.useMemo(()=>{var{children:a}=e,o=i8(e,Ox);return o},[e]),n=F(a=>At(a,r.id)),i=r===n;return E.useEffect(()=>(t(yx(r)),()=>{t(gx(r))}),[r,t]),i?e.children:null}var jx=e=>{var{xAxisId:t,className:r}=e,n=F(Zc),i=Ie(),a="xAxis",o=F(h=>jr(h,a,t,i)),s=F(h=>Ud(h,a,t,i)),u=F(h=>nm(h,t)),c=F(h=>um(h,t));if(u==null||c==null)return null;var{dangerouslySetInnerHTML:l,ticks:f}=e,d=i8(e,Ex);return x.createElement(zt,da({},d,{scale:o,x:c.x,y:c.y,width:u.width,height:u.height,className:G.clsx("recharts-".concat(a," ").concat(a),r),viewBox:n,ticks:s}))},Mx=e=>{var t,r,n,i,a;return x.createElement(_x,{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:(n=e.angle)!==null&&n!==void 0?n:0,minTickGap:(i=e.minTickGap)!==null&&i!==void 0?i:5,tick:(a=e.tick)!==null&&a!==void 0?a:!0,tickFormatter:e.tickFormatter},x.createElement(jx,e))};class Wo extends E.Component{render(){return x.createElement(Mx,this.props)}}n8(Wo,"displayName","XAxis");n8(Wo,"defaultProps",{allowDataOverflow:Be.allowDataOverflow,allowDecimals:Be.allowDecimals,allowDuplicatedCategory:Be.allowDuplicatedCategory,height:Be.height,hide:!1,mirror:Be.mirror,orientation:Be.orientation,padding:Be.padding,reversed:Be.reversed,scale:Be.scale,tickCount:Be.tickCount,type:Be.type,xAxisId:0});var Tx=e=>{var{ticks:t,label:r,labelGapWithTick:n=5,tickSize:i=0,tickMargin:a=0}=e,o=0;if(t){t.forEach(l=>{if(l){var f=l.getBoundingClientRect();f.width>o&&(o=f.width)}});var s=r?r.getBoundingClientRect().width:0,u=i+a,c=o+u+s+(r?n:0);return Math.round(c)}return 0},kx=["dangerouslySetInnerHTML","ticks"];function a8(e,t,r){return(t=Dx(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Dx(e){var t=Nx(e,"string");return typeof t=="symbol"?t:t+""}function Nx(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ha(){return ha=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ha.apply(null,arguments)}function Ix(e,t){if(e==null)return{};var r,n,i=Rx(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Rx(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function $x(e){var t=Me();return E.useEffect(()=>(t(bx(e)),()=>{t(Cx(e))}),[e,t]),null}var Lx=e=>{var t,{yAxisId:r,className:n,width:i,label:a}=e,o=E.useRef(null),s=E.useRef(null),u=F(Zc),c=Ie(),l=Me(),f="yAxis",d=F(g=>jr(g,f,r,c)),h=F(g=>cm(g,r)),p=F(g=>lm(g,r)),m=F(g=>Ud(g,f,r,c));if(E.useLayoutEffect(()=>{var g;if(!(i!=="auto"||!h||Ro(a)||E.isValidElement(a))){var w=o.current,C=w==null||(g=w.tickRefs)===null||g===void 0?void 0:g.current,{tickSize:O,tickMargin:P}=w.props,_=Tx({ticks:C,label:s.current,labelGapWithTick:5,tickSize:O,tickMargin:P});Math.round(h.width)!==Math.round(_)&&l(xx({id:r,width:_}))}},[o,o==null||(t=o.current)===null||t===void 0||(t=t.tickRefs)===null||t===void 0?void 0:t.current,h?.width,h,l,a,r,i]),h==null||p==null)return null;var{dangerouslySetInnerHTML:v,ticks:y}=e,b=Ix(e,kx);return x.createElement(zt,ha({},b,{ref:o,labelRef:s,scale:d,x:p.x,y:p.y,width:h.width,height:h.height,className:G.clsx("recharts-".concat(f," ").concat(f),n),viewBox:u,ticks:m}))},Bx=e=>{var t,r,n,i,a;return x.createElement(x.Fragment,null,x.createElement($x,{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:(n=e.angle)!==null&&n!==void 0?n:0,minTickGap:(i=e.minTickGap)!==null&&i!==void 0?i:5,tick:(a=e.tick)!==null&&a!==void 0?a:!0,tickFormatter:e.tickFormatter}),x.createElement(Lx,e))},Fx={allowDataOverflow:Fe.allowDataOverflow,allowDecimals:Fe.allowDecimals,allowDuplicatedCategory:Fe.allowDuplicatedCategory,hide:!1,mirror:Fe.mirror,orientation:Fe.orientation,padding:Fe.padding,reversed:Fe.reversed,scale:Fe.scale,tickCount:Fe.tickCount,type:Fe.type,width:Fe.width,yAxisId:0};class Uo extends E.Component{render(){return x.createElement(Bx,this.props)}}a8(Uo,"displayName","YAxis");a8(Uo,"defaultProps",Fx);var Nn={exports:{}},O0={};/**
64
+ `).concat(w.x,",").concat(w.y),O=ue(e.id)?Ur("recharts-radial-line-"):e.id;return x.createElement("text",ht({},r,{dominantBaseline:"central",className:G.clsx("recharts-radial-bar-label",o)}),x.createElement("defs",null,x.createElement("path",{id:O,d:C})),x.createElement("textPath",{xlinkHref:"#".concat(O)},t))},Ig=(e,t,r)=>{var{cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:s,endAngle:u}=e,c=(s+u)/2;if(r==="outside"){var{x:l,y:f}=we(n,i,o+t,c);return{x:l,y:f,textAnchor:l>=n?"start":"end",verticalAnchor:"middle"}}if(r==="center")return{x:n,y:i,textAnchor:"middle",verticalAnchor:"middle"};if(r==="centerTop")return{x:n,y:i,textAnchor:"middle",verticalAnchor:"start"};if(r==="centerBottom")return{x:n,y:i,textAnchor:"middle",verticalAnchor:"end"};var d=(a+o)/2,{x:h,y:p}=we(n,i,d,c);return{x:h,y:p,textAnchor:"middle",verticalAnchor:"middle"}},Rg=(e,t)=>{var{parentViewBox:r,offset:n,position:i}=e,{x:a,y:o,width:s,height:u}=t,c=u>=0?1:-1,l=c*n,f=c>0?"end":"start",d=c>0?"start":"end",h=s>=0?1:-1,p=h*n,m=h>0?"end":"start",v=h>0?"start":"end";if(i==="top"){var y={x:a+s/2,y:o-c*n,textAnchor:"middle",verticalAnchor:f};return ae(ae({},y),r?{height:Math.max(o-r.y,0),width:s}:{})}if(i==="bottom"){var b={x:a+s/2,y:o+u+l,textAnchor:"middle",verticalAnchor:d};return ae(ae({},b),r?{height:Math.max(r.y+r.height-(o+u),0),width:s}:{})}if(i==="left"){var g={x:a-p,y:o+u/2,textAnchor:m,verticalAnchor:"middle"};return ae(ae({},g),r?{width:Math.max(g.x-r.x,0),height:u}:{})}if(i==="right"){var w={x:a+s+p,y:o+u/2,textAnchor:v,verticalAnchor:"middle"};return ae(ae({},w),r?{width:Math.max(r.x+r.width-w.x,0),height:u}:{})}var C=r?{width:s,height:u}:{};return i==="insideLeft"?ae({x:a+p,y:o+u/2,textAnchor:v,verticalAnchor:"middle"},C):i==="insideRight"?ae({x:a+s-p,y:o+u/2,textAnchor:m,verticalAnchor:"middle"},C):i==="insideTop"?ae({x:a+s/2,y:o+l,textAnchor:"middle",verticalAnchor:d},C):i==="insideBottom"?ae({x:a+s/2,y:o+u-l,textAnchor:"middle",verticalAnchor:f},C):i==="insideTopLeft"?ae({x:a+p,y:o+l,textAnchor:v,verticalAnchor:d},C):i==="insideTopRight"?ae({x:a+s-p,y:o+l,textAnchor:m,verticalAnchor:d},C):i==="insideBottomLeft"?ae({x:a+p,y:o+u-l,textAnchor:v,verticalAnchor:f},C):i==="insideBottomRight"?ae({x:a+s-p,y:o+u-l,textAnchor:m,verticalAnchor:f},C):i&&typeof i=="object"&&(N(i.x)||Ht(i.x))&&(N(i.y)||Ht(i.y))?ae({x:a+It(i.x,s),y:o+It(i.y,u),textAnchor:"end",verticalAnchor:"end"},C):ae({x:a+s/2,y:o+u/2,textAnchor:"middle",verticalAnchor:"middle"},C)},$g=e=>"cx"in e&&N(e.cx);function qe(e){var{offset:t=5}=e,r=o1(e,Ag),n=ae({offset:t},r),{viewBox:i,position:a,value:o,children:s,content:u,className:c="",textBreakAll:l,labelRef:f}=n,d=F(fd),h=Ia(),p=a==="center"?h:d??h,m=i||p;if(!m||ue(o)&&ue(s)&&!E.isValidElement(u)&&typeof u!="function")return null;var v=ae(ae({},n),{},{viewBox:m});if(E.isValidElement(u)){var{labelRef:y}=v,b=o1(v,Sg);return E.cloneElement(u,b)}var g;if(typeof u=="function"){if(g=E.createElement(u,v),E.isValidElement(g))return g}else g=kg(n);var w=$g(m),C=le(n,!0);if(w&&(a==="insideStart"||a==="insideEnd"||a==="end"))return Ng(n,g,C,m);var O=w?Ig(m,n.offset,n.position):Rg(n,m);return x.createElement(Io,ht({ref:f,className:G.clsx("recharts-label",c)},C,O,{breakAll:l}),g)}qe.displayName="Label";var P3=e=>{var{cx:t,cy:r,angle:n,startAngle:i,endAngle:a,r:o,radius:s,innerRadius:u,outerRadius:c,x:l,y:f,top:d,left:h,width:p,height:m,clockWise:v,labelViewBox:y}=e;if(y)return y;if(N(p)&&N(m)){if(N(l)&&N(f))return{x:l,y:f,width:p,height:m};if(N(d)&&N(h))return{x:d,y:h,width:p,height:m}}if(N(l)&&N(f))return{x:l,y:f,width:0,height:0};if(N(t)&&N(r))return{cx:t,cy:r,startAngle:i||n||0,endAngle:a||n||0,innerRadius:u||0,outerRadius:c||s||o||0,clockWise:v};if(e.viewBox)return e.viewBox},Lg=(e,t,r)=>{if(!e)return null;var n={viewBox:t,labelRef:r};return e===!0?x.createElement(qe,ht({key:"label-implicit"},n)):ut(e)?x.createElement(qe,ht({key:"label-implicit",value:e},n)):E.isValidElement(e)?e.type===qe?E.cloneElement(e,ae({key:"label-implicit"},n)):x.createElement(qe,ht({key:"label-implicit",content:e},n)):Ro(e)?x.createElement(qe,ht({key:"label-implicit",content:e},n)):e&&typeof e=="object"?x.createElement(qe,ht({},e,{key:"label-implicit"},n)):null},Bg=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&n&&!t.label)return null;var{children:i,labelRef:a}=t,o=P3(t),s=V1(i,qe).map((c,l)=>E.cloneElement(c,{viewBox:r||o,key:"label-".concat(l)}));if(!n)return s;var u=Lg(t.label,r||o,a);return[u,...s]};qe.parseViewBox=P3;qe.renderCallByParent=Bg;var m0={},y0={},u1;function Fg(){return u1||(u1=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r[r.length-1]}e.last=t}(y0)),y0}var g0={},l1;function zg(){return l1||(l1=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return Array.isArray(r)?r:Array.from(r)}e.toArray=t}(g0)),g0}var c1;function qg(){return c1||(c1=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Fg(),r=zg(),n=wa();function i(a){if(n.isArrayLike(a))return t.last(r.toArray(a))}e.last=i}(m0)),m0}var b0,f1;function Wg(){return f1||(f1=1,b0=qg().last),b0}var Ug=Wg();const Kg=S.getDefaultExportFromCjs(Ug);var Vg=["valueAccessor"],Hg=["data","dataKey","clockWise","id","textBreakAll"];function ci(){return ci=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ci.apply(null,arguments)}function d1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function h1(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?d1(Object(r),!0).forEach(function(n){Gg(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Gg(e,t,r){return(t=Yg(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Yg(e){var t=Zg(e,"string");return typeof t=="symbol"?t:t+""}function Zg(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function p1(e,t){if(e==null)return{};var r,n,i=Xg(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Xg(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Qg=e=>Array.isArray(e.value)?Kg(e.value):e.value;function Nt(e){var{valueAccessor:t=Qg}=e,r=p1(e,Vg),{data:n,dataKey:i,clockWise:a,id:o,textBreakAll:s}=r,u=p1(r,Hg);return!n||!n.length?null:x.createElement(at,{className:"recharts-label-list"},n.map((c,l)=>{var f=ue(i)?t(c,l):Oe(c&&c.payload,i),d=ue(o)?{}:{id:"".concat(o,"-").concat(l)};return x.createElement(qe,ci({},le(c,!0),u,d,{parentViewBox:c.parentViewBox,value:f,textBreakAll:s,viewBox:qe.parseViewBox(ue(a)?c:h1(h1({},c),{},{clockWise:a})),key:"label-".concat(l),index:l}))}))}Nt.displayName="LabelList";function Jg(e,t){return e?e===!0?x.createElement(Nt,{key:"labelList-implicit",data:t}):x.isValidElement(e)||Ro(e)?x.createElement(Nt,{key:"labelList-implicit",data:t,content:e}):typeof e=="object"?x.createElement(Nt,ci({data:t},e,{key:"labelList-implicit"})):null:null}function eb(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:n}=e,i=V1(n,Nt).map((o,s)=>E.cloneElement(o,{data:t,key:"labelList-".concat(s)}));if(!r)return i;var a=Jg(e.label,t);return[a,...i]}Nt.renderCallByParent=eb;function ua(){return ua=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ua.apply(null,arguments)}var $o=e=>{var{cx:t,cy:r,r:n,className:i}=e,a=G.clsx("recharts-dot",i);return t===+t&&r===+r&&n===+n?x.createElement("circle",ua({},Rt(e),Ca(e),{className:a,cx:t,cy:r,r:n})):null},tb={radiusAxis:{},angleAxis:{}},A3=He({name:"polarAxis",initialState:tb,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:aO,removeRadiusAxis:oO,addAngleAxis:sO,removeAngleAxis:uO}=A3.actions,rb=A3.reducer;function S3(e){var{fn:t,args:r}=e,n=Me(),i=Ie();return E.useEffect(()=>{if(!i){var a=t(r);return n(gm(a)),()=>{n(bm(a))}}},[t,r,n,i]),null}var nb=()=>{};function _3(e){var{legendPayload:t}=e,r=Me(),n=Ie();return E.useEffect(()=>n?nb:(r(o7(t)),()=>{r(s7(t))}),[r,n,t]),null}function j3(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"animation-",r=E.useRef(Ur(t)),n=E.useRef(e);return n.current!==e&&(r.current=Ur(t),n.current=e),r.current}var C0,ib=()=>{var[e]=x.useState(()=>Ur("uid-"));return e},ab=(C0=x.useId)!==null&&C0!==void 0?C0:ib;function ob(e,t){var r=ab();return t||(e?"".concat(e,"-").concat(r):r)}var sb=E.createContext(void 0),M3=e=>{var{id:t,type:r,children:n}=e,i=ob("recharts-".concat(r),t);return x.createElement(sb.Provider,{value:i},n(i))},ub={cartesianItems:[],polarItems:[]},T3=He({name:"graphicalItems",initialState:ub,reducers:{addCartesianGraphicalItem(e,t){e.cartesianItems.push(t.payload)},replaceCartesianGraphicalItem(e,t){var{prev:r,next:n}=t.payload,i=mt(e).cartesianItems.indexOf(r);i>-1&&(e.cartesianItems[i]=n)},removeCartesianGraphicalItem(e,t){var r=mt(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=mt(e).polarItems.indexOf(t.payload);r>-1&&e.polarItems.splice(r,1)}}}),{addCartesianGraphicalItem:lb,replaceCartesianGraphicalItem:cb,removeCartesianGraphicalItem:fb,addPolarGraphicalItem:lO,removePolarGraphicalItem:cO}=T3.actions,db=T3.reducer;function k3(e){var t=Me(),r=E.useRef(null);return E.useEffect(()=>{r.current===null?t(lb(e)):r.current!==e&&t(cb({prev:r.current,next:e})),r.current=e},[t,e]),E.useEffect(()=>()=>{r.current&&(t(fb(r.current)),r.current=null)},[t]),null}function hb(){}var pb={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},v1={t:0},x0={t:1};function D3(e){var t=ft(e,pb),{isActive:r,canBegin:n,duration:i,easing:a,begin:o,onAnimationEnd:s,onAnimationStart:u,children:c}=t,l=uf("JavascriptAnimate",t.animationManager),[f,d]=E.useState(r?v1:x0),h=E.useRef(null);return E.useEffect(()=>{r||d(x0)},[r]),E.useEffect(()=>{if(!r||!n)return hb;var p=sf(v1,x0,af(a),i,d,l.getTimeoutController()),m=()=>{h.current=p()};return l.start([u,o,m,i,s]),()=>{l.stop(),h.current&&h.current(),s()}},[r,n,i,a,o,u,s,l]),c(f.t)}var vb=A([Ee],e=>{if(e)return{top:e.top,bottom:e.bottom,left:e.left,right:e.right}}),mb=A([vb,Ot,Et],(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)}}),Gi=()=>F(mb),yb=()=>F(uy);function m1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function y1(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?m1(Object(r),!0).forEach(function(n){gb(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gb(e,t,r){return(t=bb(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bb(e){var t=Cb(e,"string");return typeof t=="symbol"?t:t+""}function Cb(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var xb=e=>{var{point:t,childIndex:r,mainColor:n,activeDot:i,dataKey:a}=e;if(i===!1||t.x==null||t.y==null)return null;var o=y1(y1({index:r,dataKey:a,cx:t.x,cy:t.y,r:4,fill:n??"none",strokeWidth:2,stroke:"#fff",payload:t.payload,value:t.value},le(i,!1)),Ca(i)),s;return E.isValidElement(i)?s=E.cloneElement(i,o):typeof i=="function"?s=i(o):s=x.createElement($o,o),x.createElement(at,{className:"recharts-active-dot"},s)};function la(e){var{points:t,mainColor:r,activeDot:n,itemDataKey:i}=e,a=F(en),o=yb();if(t==null||o==null)return null;var s=t.find(u=>o.includes(u.payload));return ue(s)?null:xb({point:s,childIndex:Number(a),mainColor:r,dataKey:i,activeDot:n})}var wb={},N3=He({name:"errorBars",initialState:wb,reducers:{addErrorBar:(e,t)=>{var{itemId:r,errorBar:n}=t.payload;e[r]||(e[r]=[]),e[r].push(n)},removeErrorBar:(e,t)=>{var{itemId:r,errorBar:n}=t.payload;e[r]&&(e[r]=e[r].filter(i=>i.dataKey!==n.dataKey||i.direction!==n.direction))}}}),{addErrorBar:fO,removeErrorBar:dO}=N3.actions,Ob=N3.reducer,Eb=["children"];function Pb(e,t){if(e==null)return{};var r,n,i=Ab(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Ab(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Sb={data:[],xAxisId:"xAxis-0",yAxisId:"yAxis-0",dataPointFormatter:()=>({x:0,y:0,value:0}),errorBarOffset:0},_b=E.createContext(Sb);function jb(e){var{children:t}=e,r=Pb(e,Eb);return x.createElement(_b.Provider,{value:r},t)}function Lo(e,t){var r,n,i=F(c=>At(c,e)),a=F(c=>Ft(c,t)),o=(r=i?.allowDataOverflow)!==null&&r!==void 0?r:Be.allowDataOverflow,s=(n=a?.allowDataOverflow)!==null&&n!==void 0?n:Fe.allowDataOverflow,u=o||s;return{needClip:u,needClipX:o,needClipY:s}}function I3(e){var{xAxisId:t,yAxisId:r,clipPathId:n}=e,i=Gi(),{needClipX:a,needClipY:o,needClip:s}=Lo(t,r);if(!s)return null;var{x:u,y:c,width:l,height:f}=i;return x.createElement("clipPath",{id:"clipPath-".concat(n)},x.createElement("rect",{x:a?u:u-l/2,y:o?c:c-f/2,width:a?l:l*2,height:o?f:f*2}))}var Mb=e=>{var{chartData:t}=e,r=Me(),n=Ie();return E.useEffect(()=>n?()=>{}:(r(zl(t)),()=>{r(zl(void 0))}),[t,r,n]),null},g1={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},R3=He({name:"brush",initialState:g1,reducers:{setBrushSettings(e,t){return t.payload==null?g1:t.payload}}}),{setBrushSettings:hO}=R3.actions,Tb=R3.reducer;function kb(e,t,r){return(t=Db(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Db(e){var t=Nb(e,"string");return typeof t=="symbol"?t:t+""}function Nb(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class Bo{static create(t){return new Bo(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:n}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t!==void 0){if(n)switch(n){case"start":return this.scale(t);case"middle":{var i=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+i}case"end":{var a=this.bandwidth?this.bandwidth():0;return this.scale(t)+a}default:return this.scale(t)}if(r){var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+o}return this.scale(t)}}isInRange(t){var r=this.range(),n=r[0],i=r[r.length-1];return n<=i?t>=n&&t<=i:t>=i&&t<=n}}kb(Bo,"EPS",1e-4);function Ib(e){return(e%180+180)%180}var Rb=function(t){var{width:r,height:n}=t,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=Ib(i),o=a*Math.PI/180,s=Math.atan(n/r),u=o>s&&o<Math.PI-s?n/Math.sin(o):r/Math.cos(o);return Math.abs(u)},$b={dots:[],areas:[],lines:[]},$3=He({name:"referenceElements",initialState:$b,reducers:{addDot:(e,t)=>{e.dots.push(t.payload)},removeDot:(e,t)=>{var r=mt(e).dots.findIndex(n=>n===t.payload);r!==-1&&e.dots.splice(r,1)},addArea:(e,t)=>{e.areas.push(t.payload)},removeArea:(e,t)=>{var r=mt(e).areas.findIndex(n=>n===t.payload);r!==-1&&e.areas.splice(r,1)},addLine:(e,t)=>{e.lines.push(t.payload)},removeLine:(e,t)=>{var r=mt(e).lines.findIndex(n=>n===t.payload);r!==-1&&e.lines.splice(r,1)}}}),{addDot:pO,removeDot:vO,addArea:mO,removeArea:yO,addLine:gO,removeLine:bO}=$3.actions,Lb=$3.reducer,Bb=E.createContext(void 0),Fb=e=>{var{children:t}=e,[r]=E.useState("".concat(Ur("recharts"),"-clip")),n=Gi();if(n==null)return null;var{x:i,y:a,width:o,height:s}=n;return x.createElement(Bb.Provider,{value:r},x.createElement("defs",null,x.createElement("clipPath",{id:r},x.createElement("rect",{x:i,y:a,height:s,width:o}))),t)};function w0(e,t){for(var r in e)if({}.hasOwnProperty.call(e,r)&&(!{}.hasOwnProperty.call(t,r)||e[r]!==t[r]))return!1;for(var n in t)if({}.hasOwnProperty.call(t,n)&&!{}.hasOwnProperty.call(e,n))return!1;return!0}function L3(e,t,r){if(t<1)return[];if(t===1&&r===void 0)return e;for(var n=[],i=0;i<e.length;i+=t)n.push(e[i]);return n}function zb(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return Rb(n,r)}function qb(e,t,r){var n=r==="width",{x:i,y:a,width:o,height:s}=e;return t===1?{start:n?i:a,end:n?i+o:a+s}:{start:n?i+o:a+s,end:n?i:a}}function fi(e,t,r,n,i){if(e*t<e*n||e*t>e*i)return!1;var a=r();return e*(t-e*a/2-n)>=0&&e*(t+e*a/2-i)<=0}function Wb(e,t){return L3(e,t+1)}function Ub(e,t,r,n,i){for(var a=(n||[]).slice(),{start:o,end:s}=t,u=0,c=1,l=o,f=function(){var p=n?.[u];if(p===void 0)return{v:L3(n,c)};var m=u,v,y=()=>(v===void 0&&(v=r(p,m)),v),b=p.coordinate,g=u===0||fi(e,b,y,l,s);g||(u=0,l=o,c+=1),g&&(l=b+e*(y()/2+i),u+=c)},d;c<=a.length;)if(d=f(),d)return d.v;return[]}function b1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ae(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?b1(Object(r),!0).forEach(function(n){Kb(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Kb(e,t,r){return(t=Vb(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Vb(e){var t=Hb(e,"string");return typeof t=="symbol"?t:t+""}function Hb(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Gb(e,t,r,n,i){for(var a=(n||[]).slice(),o=a.length,{start:s}=t,{end:u}=t,c=function(d){var h=a[d],p,m=()=>(p===void 0&&(p=r(h,d)),p);if(d===o-1){var v=e*(h.coordinate+e*m()/2-u);a[d]=h=Ae(Ae({},h),{},{tickCoord:v>0?h.coordinate-v*e:h.coordinate})}else a[d]=h=Ae(Ae({},h),{},{tickCoord:h.coordinate});var y=fi(e,h.tickCoord,m,s,u);y&&(u=h.tickCoord-e*(m()/2+i),a[d]=Ae(Ae({},h),{},{isShow:!0}))},l=o-1;l>=0;l--)c(l);return a}function Yb(e,t,r,n,i,a){var o=(n||[]).slice(),s=o.length,{start:u,end:c}=t;if(a){var l=n[s-1],f=r(l,s-1),d=e*(l.coordinate+e*f/2-c);o[s-1]=l=Ae(Ae({},l),{},{tickCoord:d>0?l.coordinate-d*e:l.coordinate});var h=fi(e,l.tickCoord,()=>f,u,c);h&&(c=l.tickCoord-e*(f/2+i),o[s-1]=Ae(Ae({},l),{},{isShow:!0}))}for(var p=a?s-1:s,m=function(b){var g=o[b],w,C=()=>(w===void 0&&(w=r(g,b)),w);if(b===0){var O=e*(g.coordinate-e*C()/2-u);o[b]=g=Ae(Ae({},g),{},{tickCoord:O<0?g.coordinate-O*e:g.coordinate})}else o[b]=g=Ae(Ae({},g),{},{tickCoord:g.coordinate});var P=fi(e,g.tickCoord,C,u,c);P&&(u=g.tickCoord+e*(C()/2+i),o[b]=Ae(Ae({},g),{},{isShow:!0}))},v=0;v<p;v++)m(v);return o}function Fo(e,t,r){var{tick:n,ticks:i,viewBox:a,minTickGap:o,orientation:s,interval:u,tickFormatter:c,unit:l,angle:f}=e;if(!i||!i.length||!n)return[];if(N(u)||Or.isSsr){var d;return(d=Wb(i,N(u)?u:0))!==null&&d!==void 0?d:[]}var h=[],p=s==="top"||s==="bottom"?"width":"height",m=l&&p==="width"?Wr(l,{fontSize:t,letterSpacing:r}):{width:0,height:0},v=(g,w)=>{var C=typeof c=="function"?c(g.value,w):g.value;return p==="width"?zb(Wr(C,{fontSize:t,letterSpacing:r}),m,f):Wr(C,{fontSize:t,letterSpacing:r})[p]},y=i.length>=2?Xe(i[1].coordinate-i[0].coordinate):1,b=qb(a,y,p);return u==="equidistantPreserveStart"?Ub(y,b,v,i,o):(u==="preserveStart"||u==="preserveStartEnd"?h=Yb(y,b,v,i,o,u==="preserveStartEnd"):h=Gb(y,b,v,i,o),h.filter(g=>g.isShow))}var Zb=["viewBox"],Xb=["viewBox"];function pr(){return pr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},pr.apply(null,arguments)}function C1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function de(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?C1(Object(r),!0).forEach(function(n){zo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):C1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function x1(e,t){if(e==null)return{};var r,n,i=Qb(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Qb(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function zo(e,t,r){return(t=Jb(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Jb(e){var t=eC(e,"string");return typeof t=="symbol"?t:t+""}function eC(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class zt extends E.Component{constructor(t){super(t),this.tickRefs=x.createRef(),this.tickRefs.current=[],this.state={fontSize:"",letterSpacing:""}}shouldComponentUpdate(t,r){var{viewBox:n}=t,i=x1(t,Zb),a=this.props,{viewBox:o}=a,s=x1(a,Xb);return!w0(n,o)||!w0(i,s)||!w0(r,this.state)}getTickLineCoord(t){var{x:r,y:n,width:i,height:a,orientation:o,tickSize:s,mirror:u,tickMargin:c}=this.props,l,f,d,h,p,m,v=u?-1:1,y=t.tickSize||s,b=N(t.tickCoord)?t.tickCoord:t.coordinate;switch(o){case"top":l=f=t.coordinate,h=n+ +!u*a,d=h-v*y,m=d-v*c,p=b;break;case"left":d=h=t.coordinate,f=r+ +!u*i,l=f-v*y,p=l-v*c,m=b;break;case"right":d=h=t.coordinate,f=r+ +u*i,l=f+v*y,p=l+v*c,m=b;break;default:l=f=t.coordinate,h=n+ +u*a,d=h+v*y,m=d+v*c,p=b;break}return{line:{x1:l,y1:d,x2:f,y2:h},tick:{x:p,y:m}}}getTickTextAnchor(){var{orientation:t,mirror:r}=this.props,n;switch(t){case"left":n=r?"start":"end";break;case"right":n=r?"end":"start";break;default:n="middle";break}return n}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:n,height:i,orientation:a,mirror:o,axisLine:s}=this.props,u=de(de(de({},le(this.props,!1)),le(s,!1)),{},{fill:"none"});if(a==="top"||a==="bottom"){var c=+(a==="top"&&!o||a==="bottom"&&o);u=de(de({},u),{},{x1:t,y1:r+c*i,x2:t+n,y2:r+c*i})}else{var l=+(a==="left"&&!o||a==="right"&&o);u=de(de({},u),{},{x1:t+l*n,y1:r,x2:t+l*n,y2:r+i})}return x.createElement("line",pr({},u,{className:G.clsx("recharts-cartesian-axis-line",ir(s,"className"))}))}static renderTickItem(t,r,n){var i,a=G.clsx(r.className,"recharts-cartesian-axis-tick-value");if(x.isValidElement(t))i=x.cloneElement(t,de(de({},r),{},{className:a}));else if(typeof t=="function")i=t(de(de({},r),{},{className:a}));else{var o="recharts-cartesian-axis-tick-value";typeof t!="boolean"&&(o=G.clsx(o,t.className)),i=x.createElement(Io,pr({},r,{className:o}),n)}return i}renderTicks(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],{tickLine:i,stroke:a,tick:o,tickFormatter:s,unit:u,padding:c}=this.props,l=Fo(de(de({},this.props),{},{ticks:n}),t,r),f=this.getTickTextAnchor(),d=this.getTickVerticalAnchor(),h=Rt(this.props),p=le(o,!1),m=de(de({},h),{},{fill:"none"},le(i,!1)),v=l.map((y,b)=>{var{line:g,tick:w}=this.getTickLineCoord(y),C=de(de(de(de({textAnchor:f,verticalAnchor:d},h),{},{stroke:"none",fill:a},p),w),{},{index:b,payload:y,visibleTicksCount:l.length,tickFormatter:s,padding:c});return x.createElement(at,pr({className:"recharts-cartesian-axis-tick",key:"tick-".concat(y.value,"-").concat(y.coordinate,"-").concat(y.tickCoord)},F8(this.props,y,b)),i&&x.createElement("line",pr({},m,g,{className:G.clsx("recharts-cartesian-axis-tick-line",ir(i,"className"))})),o&&zt.renderTickItem(o,C,"".concat(typeof s=="function"?s(y.value,b):y.value).concat(u||"")))});return v.length>0?x.createElement("g",{className:"recharts-cartesian-axis-ticks"},v):null}render(){var{axisLine:t,width:r,height:n,className:i,hide:a}=this.props;if(a)return null;var{ticks:o}=this.props;return r!=null&&r<=0||n!=null&&n<=0?null:x.createElement(at,{className:G.clsx("recharts-cartesian-axis",i),ref:s=>{if(s){var u=s.getElementsByClassName("recharts-cartesian-axis-tick-value");this.tickRefs.current=Array.from(u);var c=u[0];if(c){var l=window.getComputedStyle(c).fontSize,f=window.getComputedStyle(c).letterSpacing;(l!==this.state.fontSize||f!==this.state.letterSpacing)&&this.setState({fontSize:window.getComputedStyle(c).fontSize,letterSpacing:window.getComputedStyle(c).letterSpacing})}}}},t&&this.renderAxisLine(),this.renderTicks(this.state.fontSize,this.state.letterSpacing,o),qe.renderCallByParent(this.props))}}zo(zt,"displayName","CartesianAxis");zo(zt,"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 tC=["x1","y1","x2","y2","key"],rC=["offset"],nC=["xAxisId","yAxisId"],iC=["xAxisId","yAxisId"];function w1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Se(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?w1(Object(r),!0).forEach(function(n){aC(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function aC(e,t,r){return(t=oC(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function oC(e){var t=sC(e,"string");return typeof t=="symbol"?t:t+""}function sC(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Xt(){return Xt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Xt.apply(null,arguments)}function di(e,t){if(e==null)return{};var r,n,i=uC(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function uC(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var lC=e=>{var{fill:t}=e;if(!t||t==="none")return null;var{fillOpacity:r,x:n,y:i,width:a,height:o,ry:s}=e;return x.createElement("rect",{x:n,y:i,ry:s,width:a,height:o,stroke:"none",fill:t,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function B3(e,t){var r;if(x.isValidElement(e))r=x.cloneElement(e,t);else if(typeof e=="function")r=e(t);else{var{x1:n,y1:i,x2:a,y2:o,key:s}=t,u=di(t,tC),c=Rt(u),{offset:l}=c,f=di(c,rC);r=x.createElement("line",Xt({},f,{x1:n,y1:i,x2:a,y2:o,fill:"none",key:s}))}return r}function cC(e){var{x:t,width:r,horizontal:n=!0,horizontalPoints:i}=e;if(!n||!i||!i.length)return null;var{xAxisId:a,yAxisId:o}=e,s=di(e,nC),u=i.map((c,l)=>{var f=Se(Se({},s),{},{x1:t,y1:c,x2:t+r,y2:c,key:"line-".concat(l),index:l});return B3(n,f)});return x.createElement("g",{className:"recharts-cartesian-grid-horizontal"},u)}function fC(e){var{y:t,height:r,vertical:n=!0,verticalPoints:i}=e;if(!n||!i||!i.length)return null;var{xAxisId:a,yAxisId:o}=e,s=di(e,iC),u=i.map((c,l)=>{var f=Se(Se({},s),{},{x1:c,y1:t,x2:c,y2:t+r,key:"line-".concat(l),index:l});return B3(n,f)});return x.createElement("g",{className:"recharts-cartesian-grid-vertical"},u)}function dC(e){var{horizontalFill:t,fillOpacity:r,x:n,y:i,width:a,height:o,horizontalPoints:s,horizontal:u=!0}=e;if(!u||!t||!t.length)return null;var c=s.map(f=>Math.round(f+i-i)).sort((f,d)=>f-d);i!==c[0]&&c.unshift(0);var l=c.map((f,d)=>{var h=!c[d+1],p=h?i+o-f:c[d+1]-f;if(p<=0)return null;var m=d%t.length;return x.createElement("rect",{key:"react-".concat(d),y:f,x:n,height:p,width:a,stroke:"none",fill:t[m],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return x.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},l)}function hC(e){var{vertical:t=!0,verticalFill:r,fillOpacity:n,x:i,y:a,width:o,height:s,verticalPoints:u}=e;if(!t||!r||!r.length)return null;var c=u.map(f=>Math.round(f+i-i)).sort((f,d)=>f-d);i!==c[0]&&c.unshift(0);var l=c.map((f,d)=>{var h=!c[d+1],p=h?i+o-f:c[d+1]-f;if(p<=0)return null;var m=d%r.length;return x.createElement("rect",{key:"react-".concat(d),x:f,y:a,width:p,height:s,stroke:"none",fill:r[m],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return x.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},l)}var pC=(e,t)=>{var{xAxis:r,width:n,height:i,offset:a}=e;return Hc(Fo(Se(Se(Se({},zt.defaultProps),r),{},{ticks:Gc(r),viewBox:{x:0,y:0,width:n,height:i}})),a.left,a.left+a.width,t)},vC=(e,t)=>{var{yAxis:r,width:n,height:i,offset:a}=e;return Hc(Fo(Se(Se(Se({},zt.defaultProps),r),{},{ticks:Gc(r),viewBox:{x:0,y:0,width:n,height:i}})),a.top,a.top+a.height,t)},mC={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[],xAxisId:0,yAxisId:0};function F3(e){var t=Qc(),r=Jc(),n=Xc(),i=Se(Se({},ft(e,mC)),{},{x:N(e.x)?e.x:n.left,y:N(e.y)?e.y:n.top,width:N(e.width)?e.width:n.width,height:N(e.height)?e.height:n.height}),{xAxisId:a,yAxisId:o,x:s,y:u,width:c,height:l,syncWithTicks:f,horizontalValues:d,verticalValues:h}=i,p=Ie(),m=F(M=>kl(M,"xAxis",a,p)),v=F(M=>kl(M,"yAxis",o,p));if(!N(c)||c<=0||!N(l)||l<=0||!N(s)||s!==+s||!N(u)||u!==+u)return null;var y=i.verticalCoordinatesGenerator||pC,b=i.horizontalCoordinatesGenerator||vC,{horizontalPoints:g,verticalPoints:w}=i;if((!g||!g.length)&&typeof b=="function"){var C=d&&d.length,O=b({yAxis:v?Se(Se({},v),{},{ticks:C?d:v.ticks}):void 0,width:t,height:r,offset:n},C?!0:f);qr(Array.isArray(O),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(typeof O,"]")),Array.isArray(O)&&(g=O)}if((!w||!w.length)&&typeof y=="function"){var P=h&&h.length,_=y({xAxis:m?Se(Se({},m),{},{ticks:P?h:m.ticks}):void 0,width:t,height:r,offset:n},P?!0:f);qr(Array.isArray(_),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(typeof _,"]")),Array.isArray(_)&&(w=_)}return x.createElement("g",{className:"recharts-cartesian-grid"},x.createElement(lC,{fill:i.fill,fillOpacity:i.fillOpacity,x:i.x,y:i.y,width:i.width,height:i.height,ry:i.ry}),x.createElement(dC,Xt({},i,{horizontalPoints:g})),x.createElement(hC,Xt({},i,{verticalPoints:w})),x.createElement(cC,Xt({},i,{offset:n,horizontalPoints:g,xAxis:m,yAxis:v})),x.createElement(fC,Xt({},i,{offset:n,verticalPoints:w,xAxis:m,yAxis:v})))}F3.displayName="CartesianGrid";var z3=(e,t,r,n)=>Vi(e,"xAxis",t,n),q3=(e,t,r,n)=>Ki(e,"xAxis",t,n),W3=(e,t,r,n)=>Vi(e,"yAxis",r,n),U3=(e,t,r,n)=>Ki(e,"yAxis",r,n),yC=A([Q,z3,W3,q3,U3],(e,t,r,n,i)=>ct(e,"xAxis")?Hr(t,n,!1):Hr(r,i,!1)),gC=(e,t,r,n,i)=>i;function bC(e){return e.type==="line"}var CC=A([go,gC],(e,t)=>e.filter(bC).find(r=>r.id===t)),xC=A([Q,z3,W3,q3,U3,CC,yC,Ii],(e,t,r,n,i,a,o,s)=>{var{chartData:u,dataStartIndex:c,dataEndIndex:l}=s;if(!(a==null||t==null||r==null||n==null||i==null||n.length===0||i.length===0||o==null)){var{dataKey:f,data:d}=a,h;if(d!=null&&d.length>0?h=d:h=u?.slice(c,l+1),h!=null)return qC({layout:e,xAxis:t,yAxis:r,xAxisTicks:n,yAxisTicks:i,dataKey:f,bandSize:o,displayedData:h})}}),wC=["id"],OC=["type","layout","connectNulls","needClip"],EC=["activeDot","animateNewValues","animationBegin","animationDuration","animationEasing","connectNulls","dot","hide","isAnimationActive","label","legendType","xAxisId","yAxisId","id"];function O1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function nt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?O1(Object(r),!0).forEach(function(n){PC(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):O1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function PC(e,t,r){return(t=AC(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function AC(e){var t=SC(e,"string");return typeof t=="symbol"?t:t+""}function SC(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qo(e,t){if(e==null)return{};var r,n,i=_C(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function _C(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function ur(){return ur=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ur.apply(null,arguments)}var jC=e=>{var{dataKey:t,name:r,stroke:n,legendType:i,hide:a}=e;return[{inactive:a,dataKey:t,type:i,color:n,value:Ei(r,t),payload:e}]};function MC(e){var{dataKey:t,data:r,stroke:n,strokeWidth:i,fill:a,name:o,hide:s,unit:u}=e;return{dataDefinedOnItem:r,positions:void 0,settings:{stroke:n,strokeWidth:i,fill:a,dataKey:t,nameKey:void 0,name:Ei(o,t),hide:s,type:e.tooltipType,color:e.stroke,unit:u}}}var K3=(e,t)=>"".concat(t,"px ").concat(e-t,"px");function TC(e,t){for(var r=e.length%2!==0?[...e,0]:e,n=[],i=0;i<t;++i)n=[...n,...r];return n}var kC=(e,t,r)=>{var n=r.reduce((f,d)=>f+d);if(!n)return K3(t,e);for(var i=Math.floor(e/n),a=e%n,o=t-e,s=[],u=0,c=0;u<r.length;c+=r[u],++u)if(c+r[u]>a){s=[...r.slice(0,u),a-c];break}var l=s.length%2===0?[0,o]:[o];return[...TC(r,i),...s,...l].map(f=>"".concat(f,"px")).join(", ")};function DC(e,t){var r;if(x.isValidElement(e))r=x.cloneElement(e,t);else if(typeof e=="function")r=e(t);else{var n=G.clsx("recharts-line-dot",typeof e!="boolean"?e.className:"");r=x.createElement($o,ur({},t,{className:n}))}return r}function NC(e,t){return e==null?!1:t?!0:e.length===1}function IC(e){var{clipPathId:t,points:r,props:n}=e,{dot:i,dataKey:a,needClip:o}=n;if(!NC(r,i))return null;var{id:s}=n,u=qo(n,wC),c=vi(i),l=Rt(u),f=le(i,!0),d=r.map((p,m)=>{var v=nt(nt(nt({key:"dot-".concat(m),r:3},l),f),{},{index:m,cx:p.x,cy:p.y,dataKey:a,value:p.value,payload:p.payload,points:r});return DC(i,v)}),h={clipPath:o?"url(#clipPath-".concat(c?"":"dots-").concat(t,")"):void 0};return x.createElement(at,ur({className:"recharts-line-dots",key:"dots"},h),d)}function ca(e){var{clipPathId:t,pathRef:r,points:n,strokeDasharray:i,props:a,showLabels:o}=e,{type:s,layout:u,connectNulls:c,needClip:l}=a,f=qo(a,OC),d=nt(nt({},le(f,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:l?"url(#clipPath-".concat(t,")"):void 0,points:n,type:s,layout:u,connectNulls:c,strokeDasharray:i??a.strokeDasharray});return x.createElement(x.Fragment,null,n?.length>1&&x.createElement(zr,ur({},d,{pathRef:r})),x.createElement(IC,{points:n,clipPathId:t,props:a}),o&&Nt.renderCallByParent(a,n))}function RC(e){try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch{return 0}}function $C(e){var{clipPathId:t,props:r,pathRef:n,previousPointsRef:i,longestAnimatedLengthRef:a}=e,{points:o,strokeDasharray:s,isAnimationActive:u,animationBegin:c,animationDuration:l,animationEasing:f,animateNewValues:d,width:h,height:p,onAnimationEnd:m,onAnimationStart:v}=r,y=i.current,b=j3(r,"recharts-line-"),[g,w]=E.useState(!1),C=E.useCallback(()=>{typeof m=="function"&&m(),w(!1)},[m]),O=E.useCallback(()=>{typeof v=="function"&&v(),w(!0)},[v]),P=RC(n.current),_=a.current;return x.createElement(D3,{begin:c,duration:l,isActive:u,easing:f,onAnimationEnd:C,onAnimationStart:O,key:b},M=>{var z=rt(_,P+_,M),T=Math.min(z,P),k;if(s){var W="".concat(s).split(/[,\s]+/gim).map(Y=>parseFloat(Y));k=kC(T,P,W)}else k=K3(P,T);if(y){var K=y.length/o.length,te=M===1?o:o.map((Y,B)=>{var q=Math.floor(B*K);if(y[q]){var R=y[q];return nt(nt({},Y),{},{x:rt(R.x,Y.x,M),y:rt(R.y,Y.y,M)})}return d?nt(nt({},Y),{},{x:rt(h*2,Y.x,M),y:rt(p/2,Y.y,M)}):nt(nt({},Y),{},{x:Y.x,y:Y.y})});return i.current=te,x.createElement(ca,{props:r,points:te,clipPathId:t,pathRef:n,showLabels:!g,strokeDasharray:k})}return M>0&&P>0&&(i.current=o,a.current=T),x.createElement(ca,{props:r,points:o,clipPathId:t,pathRef:n,showLabels:!g,strokeDasharray:k})})}function LC(e){var{clipPathId:t,props:r}=e,{points:n,isAnimationActive:i}=r,a=E.useRef(null),o=E.useRef(0),s=E.useRef(null),u=a.current;return i&&n&&n.length&&u!==n?x.createElement($C,{props:r,clipPathId:t,previousPointsRef:a,longestAnimatedLengthRef:o,pathRef:s}):x.createElement(ca,{props:r,points:n,clipPathId:t,pathRef:s,showLabels:!0})}var BC=(e,t)=>({x:e.x,y:e.y,value:e.value,errorVal:Oe(e.payload,t)});class FC extends E.Component{render(){var t,{hide:r,dot:n,points:i,className:a,xAxisId:o,yAxisId:s,top:u,left:c,width:l,height:f,id:d,needClip:h}=this.props;if(r)return null;var p=G.clsx("recharts-line",a),m=d,{r:v=3,strokeWidth:y=2}=(t=le(n,!1))!==null&&t!==void 0?t:{r:3,strokeWidth:2},b=vi(n),g=v*2+y;return x.createElement(x.Fragment,null,x.createElement(at,{className:p},h&&x.createElement("defs",null,x.createElement(I3,{clipPathId:m,xAxisId:o,yAxisId:s}),!b&&x.createElement("clipPath",{id:"clipPath-dots-".concat(m)},x.createElement("rect",{x:c-g/2,y:u-g/2,width:l+g,height:f+g}))),x.createElement(LC,{props:this.props,clipPathId:m}),x.createElement(jb,{xAxisId:o,yAxisId:s,data:i,dataPointFormatter:BC,errorBarOffset:0},this.props.children)),x.createElement(la,{activeDot:this.props.activeDot,points:i,mainColor:this.props.stroke,itemDataKey:this.props.dataKey}))}}var V3={activeDot:!0,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",connectNulls:!1,dot:!0,fill:"#fff",hide:!1,isAnimationActive:!Or.isSsr,label:!1,legendType:"line",stroke:"#3182bd",strokeWidth:1,xAxisId:0,yAxisId:0};function zC(e){var t=ft(e,V3),{activeDot:r,animateNewValues:n,animationBegin:i,animationDuration:a,animationEasing:o,connectNulls:s,dot:u,hide:c,isAnimationActive:l,label:f,legendType:d,xAxisId:h,yAxisId:p,id:m}=t,v=qo(t,EC),{needClip:y}=Lo(h,p),b=Gi(),g=_i(),w=Ie(),C=F(z=>xC(z,h,p,w,m));if(g!=="horizontal"&&g!=="vertical"||C==null||b==null)return null;var{height:O,width:P,x:_,y:M}=b;return x.createElement(FC,ur({},v,{id:m,connectNulls:s,dot:u,activeDot:r,animateNewValues:n,animationBegin:i,animationDuration:a,animationEasing:o,isAnimationActive:l,hide:c,label:f,legendType:d,xAxisId:h,yAxisId:p,points:C,layout:g,height:O,width:P,left:_,top:M,needClip:y}))}function qC(e){var{layout:t,xAxis:r,yAxis:n,xAxisTicks:i,yAxisTicks:a,dataKey:o,bandSize:s,displayedData:u}=e;return u.map((c,l)=>{var f=Oe(c,o);if(t==="horizontal"){var d=Vn({axis:r,ticks:i,bandSize:s,entry:c,index:l}),h=ue(f)?null:n.scale(f);return{x:d,y:h,value:f,payload:c}}var p=ue(f)?null:r.scale(f),m=Vn({axis:n,ticks:a,bandSize:s,entry:c,index:l});return p==null||m==null?null:{x:p,y:m,value:f,payload:c}}).filter(Boolean)}function H3(e){var t=ft(e,V3),r=Ie();return x.createElement(M3,{id:t.id,type:"line"},n=>x.createElement(x.Fragment,null,x.createElement(_3,{legendPayload:jC(t)}),x.createElement(S3,{fn:MC,args:t}),x.createElement(k3,{type:"line",id:n,data:t.data,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,hide:t.hide,isPanorama:r}),x.createElement(zC,ur({},t,{id:n}))))}H3.displayName="Line";var G3=(e,t,r,n)=>Vi(e,"xAxis",t,n),Y3=(e,t,r,n)=>Ki(e,"xAxis",t,n),Z3=(e,t,r,n)=>Vi(e,"yAxis",r,n),X3=(e,t,r,n)=>Ki(e,"yAxis",r,n),WC=A([Q,G3,Z3,Y3,X3],(e,t,r,n,i)=>ct(e,"xAxis")?Hr(t,n,!1):Hr(r,i,!1)),UC=(e,t,r,n,i)=>i,Q3=A([go,UC],(e,t)=>e.filter(r=>r.type==="area").find(r=>r.id===t)),KC=(e,t,r,n,i)=>{var a,o=Q3(e,t,r,n,i);if(o!=null){var s=Q(e),u=ct(s,"xAxis"),c;if(u?c=ra(e,"yAxis",r,n):c=ra(e,"xAxis",t,n),c!=null){var{stackId:l}=o,f=vo(o);if(!(l==null||f==null)){var d=(a=c[l])===null||a===void 0?void 0:a.stackedData;return d?.find(h=>h.key===f)}}}},VC=A([Q,G3,Z3,Y3,X3,KC,Ii,WC,Q3],(e,t,r,n,i,a,o,s,u)=>{var{chartData:c,dataStartIndex:l,dataEndIndex:f}=o;if(!(u==null||e!=="horizontal"&&e!=="vertical"||t==null||r==null||n==null||i==null||n.length===0||i.length===0||s==null)){var{data:d}=u,h;if(d&&d.length>0?h=d:h=c?.slice(l,f+1),h!=null){var p=void 0;return dx({layout:e,xAxis:t,yAxis:r,xAxisTicks:n,yAxisTicks:i,dataStartIndex:l,areaSettings:u,stackedData:a,displayedData:h,chartBaseValue:p,bandSize:s})}}}),HC=["id"],GC=["activeDot","animationBegin","animationDuration","animationEasing","connectNulls","dot","fill","fillOpacity","hide","isAnimationActive","legendType","stroke","xAxisId","yAxisId"];function J3(e,t){if(e==null)return{};var r,n,i=YC(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function YC(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function E1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Qt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?E1(Object(r),!0).forEach(function(n){ZC(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):E1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ZC(e,t,r){return(t=XC(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function XC(e){var t=QC(e,"string");return typeof t=="symbol"?t:t+""}function QC(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function gt(){return gt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},gt.apply(null,arguments)}function hi(e,t){return e&&e!=="none"?e:t}var JC=e=>{var{dataKey:t,name:r,stroke:n,fill:i,legendType:a,hide:o}=e;return[{inactive:o,dataKey:t,type:a,color:hi(n,i),value:Ei(r,t),payload:e}]};function ex(e){var{dataKey:t,data:r,stroke:n,strokeWidth:i,fill:a,name:o,hide:s,unit:u}=e;return{dataDefinedOnItem:r,positions:void 0,settings:{stroke:n,strokeWidth:i,fill:a,dataKey:t,nameKey:void 0,name:Ei(o,t),hide:s,type:e.tooltipType,color:hi(n,a),unit:u}}}var tx=(e,t)=>{var r;if(x.isValidElement(e))r=x.cloneElement(e,t);else if(typeof e=="function")r=e(t);else{var n=G.clsx("recharts-area-dot",typeof e!="boolean"?e.className:"");r=x.createElement($o,gt({},t,{className:n}))}return r};function rx(e,t){return e==null?!1:t?!0:e.length===1}function nx(e){var{clipPathId:t,points:r,props:n}=e,{needClip:i,dot:a,dataKey:o}=n;if(!rx(r,a))return null;var s=vi(a),u=Rt(n),c=le(a,!0),l=r.map((d,h)=>{var p=Qt(Qt(Qt({key:"dot-".concat(h),r:3},u),c),{},{index:h,cx:d.x,cy:d.y,dataKey:o,value:d.value,payload:d.payload,points:r});return tx(a,p)}),f={clipPath:i?"url(#clipPath-".concat(s?"":"dots-").concat(t,")"):void 0};return x.createElement(at,gt({className:"recharts-area-dots"},f),l)}function fa(e){var{points:t,baseLine:r,needClip:n,clipPathId:i,props:a,showLabels:o}=e,{layout:s,type:u,stroke:c,connectNulls:l,isRange:f}=a,{id:d}=a,h=J3(a,HC),p=Rt(h);return x.createElement(x.Fragment,null,t?.length>1&&x.createElement(at,{clipPath:n?"url(#clipPath-".concat(i,")"):void 0},x.createElement(zr,gt({},p,{id:d,points:t,connectNulls:l,type:u,baseLine:r,layout:s,stroke:"none",className:"recharts-area-area"})),c!=="none"&&x.createElement(zr,gt({},p,{className:"recharts-area-curve",layout:s,type:u,connectNulls:l,fill:"none",points:t})),c!=="none"&&f&&x.createElement(zr,gt({},p,{className:"recharts-area-curve",layout:s,type:u,connectNulls:l,fill:"none",points:r}))),x.createElement(nx,{points:t,props:h,clipPathId:i}),o&&Nt.renderCallByParent(h,t))}function ix(e){var{alpha:t,baseLine:r,points:n,strokeWidth:i}=e,a=n[0].y,o=n[n.length-1].y;if(!je(a)||!je(o))return null;var s=t*Math.abs(a-o),u=Math.max(...n.map(c=>c.x||0));return N(r)?u=Math.max(r,u):r&&Array.isArray(r)&&r.length&&(u=Math.max(...r.map(c=>c.x||0),u)),N(u)?x.createElement("rect",{x:0,y:a<o?a:a-s,width:u+(i?parseInt("".concat(i),10):1),height:Math.floor(s)}):null}function ax(e){var{alpha:t,baseLine:r,points:n,strokeWidth:i}=e,a=n[0].x,o=n[n.length-1].x;if(!je(a)||!je(o))return null;var s=t*Math.abs(a-o),u=Math.max(...n.map(c=>c.y||0));return N(r)?u=Math.max(r,u):r&&Array.isArray(r)&&r.length&&(u=Math.max(...r.map(c=>c.y||0),u)),N(u)?x.createElement("rect",{x:a<o?a:a-s,y:0,width:s,height:Math.floor(u+(i?parseInt("".concat(i),10):1))}):null}function ox(e){var{alpha:t,layout:r,points:n,baseLine:i,strokeWidth:a}=e;return r==="vertical"?x.createElement(ix,{alpha:t,points:n,baseLine:i,strokeWidth:a}):x.createElement(ax,{alpha:t,points:n,baseLine:i,strokeWidth:a})}function sx(e){var{needClip:t,clipPathId:r,props:n,previousPointsRef:i,previousBaselineRef:a}=e,{points:o,baseLine:s,isAnimationActive:u,animationBegin:c,animationDuration:l,animationEasing:f,onAnimationStart:d,onAnimationEnd:h}=n,p=j3(n,"recharts-area-"),[m,v]=E.useState(!0),y=E.useCallback(()=>{typeof h=="function"&&h(),v(!1)},[h]),b=E.useCallback(()=>{typeof d=="function"&&d(),v(!0)},[d]),g=i.current,w=a.current;return x.createElement(D3,{begin:c,duration:l,isActive:u,easing:f,onAnimationEnd:y,onAnimationStart:b,key:p},C=>{if(g){var O=g.length/o.length,P=C===1?o:o.map((M,z)=>{var T=Math.floor(z*O);if(g[T]){var k=g[T];return Qt(Qt({},M),{},{x:rt(k.x,M.x,C),y:rt(k.y,M.y,C)})}return M}),_;return N(s)?_=rt(w,s,C):ue(s)||Ue(s)?_=rt(w,0,C):_=s.map((M,z)=>{var T=Math.floor(z*O);if(Array.isArray(w)&&w[T]){var k=w[T];return Qt(Qt({},M),{},{x:rt(k.x,M.x,C),y:rt(k.y,M.y,C)})}return M}),C>0&&(i.current=P,a.current=_),x.createElement(fa,{points:P,baseLine:_,needClip:t,clipPathId:r,props:n,showLabels:!m})}return C>0&&(i.current=o,a.current=s),x.createElement(at,null,x.createElement("defs",null,x.createElement("clipPath",{id:"animationClipPath-".concat(r)},x.createElement(ox,{alpha:C,points:o,baseLine:s,layout:n.layout,strokeWidth:n.strokeWidth}))),x.createElement(at,{clipPath:"url(#animationClipPath-".concat(r,")")},x.createElement(fa,{points:o,baseLine:s,needClip:t,clipPathId:r,props:n,showLabels:!0})))})}function ux(e){var{needClip:t,clipPathId:r,props:n}=e,{points:i,baseLine:a,isAnimationActive:o}=n,s=E.useRef(null),u=E.useRef(),c=s.current,l=u.current;return o&&i&&i.length&&(c!==i||l!==a)?x.createElement(sx,{needClip:t,clipPathId:r,props:n,previousPointsRef:s,previousBaselineRef:u}):x.createElement(fa,{points:i,baseLine:a,needClip:t,clipPathId:r,props:n,showLabels:!0})}class lx extends E.PureComponent{render(){var t,{hide:r,dot:n,points:i,className:a,top:o,left:s,needClip:u,xAxisId:c,yAxisId:l,width:f,height:d,id:h,baseLine:p}=this.props;if(r)return null;var m=G.clsx("recharts-area",a),v=h,{r:y=3,strokeWidth:b=2}=(t=le(n,!1))!==null&&t!==void 0?t:{r:3,strokeWidth:2},g=vi(n),w=y*2+b;return x.createElement(x.Fragment,null,x.createElement(at,{className:m},u&&x.createElement("defs",null,x.createElement(I3,{clipPathId:v,xAxisId:c,yAxisId:l}),!g&&x.createElement("clipPath",{id:"clipPath-dots-".concat(v)},x.createElement("rect",{x:s-w/2,y:o-w/2,width:f+w,height:d+w}))),x.createElement(ux,{needClip:u,clipPathId:v,props:this.props})),x.createElement(la,{points:i,mainColor:hi(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot}),this.props.isRange&&Array.isArray(p)&&x.createElement(la,{points:p,mainColor:hi(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot}))}}var e8={activeDot:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",connectNulls:!1,dot:!1,fill:"#3182bd",fillOpacity:.6,hide:!1,isAnimationActive:!Or.isSsr,legendType:"line",stroke:"#3182bd",xAxisId:0,yAxisId:0};function cx(e){var t,r=ft(e,e8),{activeDot:n,animationBegin:i,animationDuration:a,animationEasing:o,connectNulls:s,dot:u,fill:c,fillOpacity:l,hide:f,isAnimationActive:d,legendType:h,stroke:p,xAxisId:m,yAxisId:v}=r,y=J3(r,GC),b=_i(),g=l3(),{needClip:w}=Lo(m,v),C=Ie(),{points:O,isRange:P,baseLine:_}=(t=F(K=>VC(K,m,v,C,e.id)))!==null&&t!==void 0?t:{},M=Gi();if(b!=="horizontal"&&b!=="vertical"||M==null||g!=="AreaChart"&&g!=="ComposedChart")return null;var{height:z,width:T,x:k,y:W}=M;return!O||!O.length?null:x.createElement(lx,gt({},y,{activeDot:n,animationBegin:i,animationDuration:a,animationEasing:o,baseLine:_,connectNulls:s,dot:u,fill:c,fillOpacity:l,height:z,hide:f,layout:b,isAnimationActive:d,isRange:P,legendType:h,needClip:w,points:O,stroke:p,width:T,left:k,top:W,xAxisId:m,yAxisId:v}))}var fx=(e,t,r,n,i)=>{var a=r??t;if(N(a))return a;var o=e==="horizontal"?i:n,s=o.scale.domain();if(o.type==="number"){var u=Math.max(s[0],s[1]),c=Math.min(s[0],s[1]);return a==="dataMin"?c:a==="dataMax"||u<0?u:Math.max(Math.min(s[0],s[1]),0)}return a==="dataMin"?s[0]:a==="dataMax"?s[1]:s[0]};function dx(e){var{areaSettings:{connectNulls:t,baseValue:r,dataKey:n},stackedData:i,layout:a,chartBaseValue:o,xAxis:s,yAxis:u,displayedData:c,dataStartIndex:l,xAxisTicks:f,yAxisTicks:d,bandSize:h}=e,p=i&&i.length,m=fx(a,o,r,s,u),v=a==="horizontal",y=!1,b=c.map((w,C)=>{var O;p?O=i[l+C]:(O=Oe(w,n),Array.isArray(O)?y=!0:O=[m,O]);var P=O[1]==null||p&&!t&&Oe(w,n)==null;return v?{x:Vn({axis:s,ticks:f,bandSize:h,entry:w,index:C}),y:P?null:u.scale(O[1]),value:O,payload:w}:{x:P?null:s.scale(O[1]),y:Vn({axis:u,ticks:d,bandSize:h,entry:w,index:C}),value:O,payload:w}}),g;return p||y?g=b.map(w=>{var C=Array.isArray(w.value)?w.value[0]:null;return v?{x:w.x,y:C!=null&&w.y!=null?u.scale(C):null,payload:w.payload}:{x:C!=null?s.scale(C):null,y:w.y,payload:w.payload}}):g=v?u.scale(m):s.scale(m),{points:b,baseLine:g,isRange:y}}function t8(e){var t=ft(e,e8),r=Ie();return x.createElement(M3,{id:t.id,type:"area"},n=>x.createElement(x.Fragment,null,x.createElement(_3,{legendPayload:JC(t)}),x.createElement(S3,{fn:ex,args:t}),x.createElement(k3,{type:"area",id:n,data:t.data,dataKey:t.dataKey,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,stackId:q6(t.stackId),hide:t.hide,barSize:void 0,baseValue:t.baseValue,isPanorama:r,connectNulls:t.connectNulls}),x.createElement(cx,gt({},t,{id:n}))))}t8.displayName="Area";function P1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function A1(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?P1(Object(r),!0).forEach(function(n){hx(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):P1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function hx(e,t,r){return(t=px(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function px(e){var t=vx(e,"string");return typeof t=="symbol"?t:t+""}function vx(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var mx={xAxis:{},yAxis:{},zAxis:{}},r8=He({name:"cartesianAxis",initialState:mx,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:n}=t.payload;e.yAxis[r]&&(e.yAxis[r]=A1(A1({},e.yAxis[r]),{},{width:n}))}}}),{addXAxis:yx,removeXAxis:gx,addYAxis:bx,removeYAxis:Cx,addZAxis:CO,removeZAxis:xO,updateYAxisWidth:xx}=r8.actions,wx=r8.reducer,Ox=["children"],Ex=["dangerouslySetInnerHTML","ticks"];function n8(e,t,r){return(t=Px(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Px(e){var t=Ax(e,"string");return typeof t=="symbol"?t:t+""}function Ax(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function da(){return da=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},da.apply(null,arguments)}function i8(e,t){if(e==null)return{};var r,n,i=Sx(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Sx(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function _x(e){var t=Me(),r=E.useMemo(()=>{var{children:a}=e,o=i8(e,Ox);return o},[e]),n=F(a=>At(a,r.id)),i=r===n;return E.useEffect(()=>(t(yx(r)),()=>{t(gx(r))}),[r,t]),i?e.children:null}var jx=e=>{var{xAxisId:t,className:r}=e,n=F(Zc),i=Ie(),a="xAxis",o=F(h=>jr(h,a,t,i)),s=F(h=>Ud(h,a,t,i)),u=F(h=>nm(h,t)),c=F(h=>um(h,t));if(u==null||c==null)return null;var{dangerouslySetInnerHTML:l,ticks:f}=e,d=i8(e,Ex);return x.createElement(zt,da({},d,{scale:o,x:c.x,y:c.y,width:u.width,height:u.height,className:G.clsx("recharts-".concat(a," ").concat(a),r),viewBox:n,ticks:s}))},Mx=e=>{var t,r,n,i,a;return x.createElement(_x,{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:(n=e.angle)!==null&&n!==void 0?n:0,minTickGap:(i=e.minTickGap)!==null&&i!==void 0?i:5,tick:(a=e.tick)!==null&&a!==void 0?a:!0,tickFormatter:e.tickFormatter},x.createElement(jx,e))};class Wo extends E.Component{render(){return x.createElement(Mx,this.props)}}n8(Wo,"displayName","XAxis");n8(Wo,"defaultProps",{allowDataOverflow:Be.allowDataOverflow,allowDecimals:Be.allowDecimals,allowDuplicatedCategory:Be.allowDuplicatedCategory,height:Be.height,hide:!1,mirror:Be.mirror,orientation:Be.orientation,padding:Be.padding,reversed:Be.reversed,scale:Be.scale,tickCount:Be.tickCount,type:Be.type,xAxisId:0});var Tx=e=>{var{ticks:t,label:r,labelGapWithTick:n=5,tickSize:i=0,tickMargin:a=0}=e,o=0;if(t){t.forEach(l=>{if(l){var f=l.getBoundingClientRect();f.width>o&&(o=f.width)}});var s=r?r.getBoundingClientRect().width:0,u=i+a,c=o+u+s+(r?n:0);return Math.round(c)}return 0},kx=["dangerouslySetInnerHTML","ticks"];function a8(e,t,r){return(t=Dx(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Dx(e){var t=Nx(e,"string");return typeof t=="symbol"?t:t+""}function Nx(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ha(){return ha=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ha.apply(null,arguments)}function Ix(e,t){if(e==null)return{};var r,n,i=Rx(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Rx(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function $x(e){var t=Me();return E.useEffect(()=>(t(bx(e)),()=>{t(Cx(e))}),[e,t]),null}var Lx=e=>{var t,{yAxisId:r,className:n,width:i,label:a}=e,o=E.useRef(null),s=E.useRef(null),u=F(Zc),c=Ie(),l=Me(),f="yAxis",d=F(g=>jr(g,f,r,c)),h=F(g=>cm(g,r)),p=F(g=>lm(g,r)),m=F(g=>Ud(g,f,r,c));if(E.useLayoutEffect(()=>{var g;if(!(i!=="auto"||!h||Ro(a)||E.isValidElement(a))){var w=o.current,C=w==null||(g=w.tickRefs)===null||g===void 0?void 0:g.current,{tickSize:O,tickMargin:P}=w.props,_=Tx({ticks:C,label:s.current,labelGapWithTick:5,tickSize:O,tickMargin:P});Math.round(h.width)!==Math.round(_)&&l(xx({id:r,width:_}))}},[o,o==null||(t=o.current)===null||t===void 0||(t=t.tickRefs)===null||t===void 0?void 0:t.current,h?.width,h,l,a,r,i]),h==null||p==null)return null;var{dangerouslySetInnerHTML:v,ticks:y}=e,b=Ix(e,kx);return x.createElement(zt,ha({},b,{ref:o,labelRef:s,scale:d,x:p.x,y:p.y,width:h.width,height:h.height,className:G.clsx("recharts-".concat(f," ").concat(f),n),viewBox:u,ticks:m}))},Bx=e=>{var t,r,n,i,a;return x.createElement(x.Fragment,null,x.createElement($x,{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:(n=e.angle)!==null&&n!==void 0?n:0,minTickGap:(i=e.minTickGap)!==null&&i!==void 0?i:5,tick:(a=e.tick)!==null&&a!==void 0?a:!0,tickFormatter:e.tickFormatter}),x.createElement(Lx,e))},Fx={allowDataOverflow:Fe.allowDataOverflow,allowDecimals:Fe.allowDecimals,allowDuplicatedCategory:Fe.allowDuplicatedCategory,hide:!1,mirror:Fe.mirror,orientation:Fe.orientation,padding:Fe.padding,reversed:Fe.reversed,scale:Fe.scale,tickCount:Fe.tickCount,type:Fe.type,width:Fe.width,yAxisId:0};class Uo extends E.Component{render(){return x.createElement(Bx,this.props)}}a8(Uo,"displayName","YAxis");a8(Uo,"defaultProps",Fx);var Nn={exports:{}},O0={};/**
65
65
  * @license React
66
66
  * use-sync-external-store-with-selector.production.js
67
67
  *
@@ -77,4 +77,4 @@ Take a look at the reducer(s) handling this action type: ${h.type}.
77
77
  *
78
78
  * This source code is licensed under the MIT license found in the
79
79
  * LICENSE file in the root directory of this source tree.
80
- */var _1;function qx(){return _1||(_1=1,process.env.NODE_ENV!=="production"&&function(){function e(u,c){return u===c&&(u!==0||1/u===1/c)||u!==u&&c!==c}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=E,r=typeof Object.is=="function"?Object.is:e,n=t.useSyncExternalStore,i=t.useRef,a=t.useEffect,o=t.useMemo,s=t.useDebugValue;E0.useSyncExternalStoreWithSelector=function(u,c,l,f,d){var h=i(null);if(h.current===null){var p={hasValue:!1,value:null};h.current=p}else p=h.current;h=o(function(){function v(C){if(!y){if(y=!0,b=C,C=f(C),d!==void 0&&p.hasValue){var O=p.value;if(d(O,C))return g=O}return g=C}if(O=g,r(b,C))return O;var P=f(C);return d!==void 0&&d(O,P)?(b=C,O):(b=C,g=P)}var y=!1,b,g,w=l===void 0?null:l;return[function(){return v(c())},w===null?void 0:function(){return v(w())}]},[c,l,f,d]);var m=n(u,h[0],h[1]);return a(function(){p.hasValue=!0,p.value=m},[m]),s(m),m},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),E0}var j1;function Wx(){return j1||(j1=1,process.env.NODE_ENV==="production"?Nn.exports=zx():Nn.exports=qx()),Nn.exports}Wx();function Ux(e){e()}function Kx(){let e=null,t=null;return{clear(){e=null,t=null},notify(){Ux(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){const r=[];let n=e;for(;n;)r.push(n),n=n.next;return r},subscribe(r){let n=!0;const i=t={callback:r,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!n||e===null||(n=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var M1={notify(){},get:()=>[]};function Vx(e,t){let r,n=M1,i=0,a=!1;function o(m){l();const v=n.subscribe(m);let y=!1;return()=>{y||(y=!0,v(),f())}}function s(){n.notify()}function u(){p.onStateChange&&p.onStateChange()}function c(){return a}function l(){i++,r||(r=e.subscribe(u),n=Kx())}function f(){i--,r&&i===0&&(r(),r=void 0,n.clear(),n=M1)}function d(){a||(a=!0,l())}function h(){a&&(a=!1,f())}const p={addNestedSub:o,notifyNestedSubs:s,handleChangeWrapper:u,isSubscribed:c,trySubscribe:d,tryUnsubscribe:h,getListeners:()=>n};return p}var Hx=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Gx=Hx(),Yx=()=>typeof navigator<"u"&&navigator.product==="ReactNative",Zx=Yx(),Xx=()=>Gx||Zx?x.useLayoutEffect:x.useEffect,Qx=Xx(),Jx=Symbol.for("react-redux-context"),ew=typeof globalThis<"u"?globalThis:{};function tw(){if(!x.createContext)return{};const e=ew[Jx]??=new Map;let t=e.get(x.createContext);return t||(t=x.createContext(null),process.env.NODE_ENV!=="production"&&(t.displayName="ReactRedux"),e.set(x.createContext,t)),t}var rw=tw();function nw(e){const{children:t,context:r,serverState:n,store:i}=e,a=x.useMemo(()=>{const u=Vx(i),c={store:i,subscription:u,getServerState:n?()=>n:void 0};if(process.env.NODE_ENV==="production")return c;{const{identityFunctionCheck:l="once",stabilityCheck:f="once"}=e;return Object.assign(c,{stabilityCheck:f,identityFunctionCheck:l})}},[i,n]),o=x.useMemo(()=>i.getState(),[i]);Qx(()=>{const{subscription:u}=a;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),o!==i.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[a,o]);const s=r||rw;return x.createElement(s.Provider,{value:a},t)}var iw=nw,aw=(e,t)=>t,Ko=A([aw,Q,fd,pe,i3,St,py,Oe],by),Vo=e=>{var t=e.currentTarget.getBoundingClientRect(),r=t.width/e.currentTarget.offsetWidth,n=t.height/e.currentTarget.offsetHeight;return{chartX:Math.round((e.clientX-t.left)/r),chartY:Math.round((e.clientY-t.top)/n)}},o8=Je("mouseClick"),s8=on();s8.startListening({actionCreator:o8,effect:(e,t)=>{var r=e.payload,n=Ko(t.getState(),Vo(r));n?.activeIndex!=null&&t.dispatch(wm({activeIndex:n.activeIndex,activeDataKey:void 0,activeCoordinate:n.activeCoordinate}))}});var pa=Je("mouseMove"),u8=on();u8.startListening({actionCreator:pa,effect:(e,t)=>{var r=e.payload,n=t.getState(),i=Ao(n,n.tooltip.settings.shared),a=Ko(n,Vo(r));i==="axis"&&(a?.activeIndex!=null?t.dispatch(Xd({activeIndex:a.activeIndex,activeDataKey:void 0,activeCoordinate:a.activeCoordinate})):t.dispatch(Zd()))}});function ow(e,t){return t instanceof HTMLElement?"HTMLElement <".concat(t.tagName,' class="').concat(t.className,'">'):t===window?"global.window":t}var T1={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,barSize:void 0,className:void 0,maxBarSize:void 0,stackOffset:"none",syncId:void 0,syncMethod:"index"},l8=He({name:"rootProps",initialState:T1,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:T1.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}}}),sw=l8.reducer,{updateOptions:uw}=l8.actions,c8=He({name:"polarOptions",initialState:null,reducers:{updatePolarOptions:(e,t)=>t.payload}}),{updatePolarOptions:wO}=c8.actions,lw=c8.reducer,f8=Je("keyDown"),d8=Je("focus"),Ho=on();Ho.startListening({actionCreator:f8,effect:(e,t)=>{var r=t.getState(),n=r.rootProps.accessibilityLayer!==!1;if(n){var{keyboardInteraction:i}=r.tooltip,a=e.payload;if(!(a!=="ArrowRight"&&a!=="ArrowLeft"&&a!=="Enter")){var o=Number(So(i,Tr(r))),s=St(r);if(a==="Enter"){var u=li(r,"axis","hover",String(i.index));t.dispatch(ia({active:!i.active,activeIndex:i.index,activeDataKey:i.dataKey,activeCoordinate:u}));return}var c=pm(r),l=c==="left-to-right"?1:-1,f=a==="ArrowRight"?1:-1,d=o+f*l;if(!(s==null||d>=s.length||d<0)){var h=li(r,"axis","hover",String(d));t.dispatch(ia({active:!0,activeIndex:d.toString(),activeDataKey:void 0,activeCoordinate:h}))}}}}});Ho.startListening({actionCreator:d8,effect:(e,t)=>{var r=t.getState(),n=r.rootProps.accessibilityLayer!==!1;if(n){var{keyboardInteraction:i}=r.tooltip;if(!i.active&&i.index==null){var a="0",o=li(r,"axis","hover",String(a));t.dispatch(ia({activeDataKey:void 0,active:!0,activeIndex:a,activeCoordinate:o}))}}}});var Ye=Je("externalEvent"),h8=on();h8.startListening({actionCreator:Ye,effect:(e,t)=>{if(e.payload.handler!=null){var r=t.getState(),n={activeCoordinate:ay(r),activeDataKey:ny(r),activeIndex:en(r),activeLabel:s3(r),activeTooltipIndex:en(r),isTooltipActive:oy(r)};e.payload.handler(n,e.payload.reactEvent)}}});var cw=A([Mr],e=>e.tooltipItemPayloads),fw=A([cw,vn,(e,t,r)=>t,(e,t,r)=>r],(e,t,r,n)=>{var i=e.find(s=>s.settings.dataKey===n);if(i!=null){var{positions:a}=i;if(a!=null){var o=t(a,r);return o}}}),p8=Je("touchMove"),v8=on();v8.startListening({actionCreator:p8,effect:(e,t)=>{var r=e.payload,n=t.getState(),i=Ao(n,n.tooltip.settings.shared);if(i==="axis"){var a=Ko(n,Vo({clientX:r.touches[0].clientX,clientY:r.touches[0].clientY,currentTarget:r.currentTarget}));a?.activeIndex!=null&&t.dispatch(Xd({activeIndex:a.activeIndex,activeDataKey:void 0,activeCoordinate:a.activeCoordinate}))}else if(i==="item"){var o,s=r.touches[0],u=document.elementFromPoint(s.clientX,s.clientY);if(!u||!u.getAttribute)return;var c=u.getAttribute(Z6),l=(o=u.getAttribute(X6))!==null&&o!==void 0?o:void 0,f=fw(t.getState(),c,l);t.dispatch(xm({activeDataKey:l,activeIndex:c,activeCoordinate:f}))}}});var dw=bc({brush:Tb,cartesianAxis:wx,chartData:Iy,errorBars:Ob,graphicalItems:db,layout:x6,legend:u7,options:My,polarAxis:rb,polarOptions:lw,referenceElements:Lb,rootProps:sw,tooltip:Om}),hw=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Chart";return V9({reducer:dw,preloadedState:t,middleware:n=>n({serializableCheck:!1}).concat([s8.middleware,u8.middleware,Ho.middleware,h8.middleware,v8.middleware]),devTools:{serialize:{replacer:ow},name:"recharts-".concat(r)}})};function pw(e){var{preloadedState:t,children:r,reduxStoreName:n}=e,i=Ie(),a=E.useRef(null);if(i)return r;a.current==null&&(a.current=hw(t,n));var o=Sa;return x.createElement(iw,{context:o,store:a.current},r)}function vw(e){var{layout:t,width:r,height:n,margin:i}=e,a=Me(),o=Ie();return E.useEffect(()=>{o||(a(g6(t)),a(b6({width:r,height:n})),a(y6(i)))},[a,o,t,r,n,i]),null}function mw(e){var t=Me();return E.useEffect(()=>{t(uw(e))},[t,e]),null}var yw=["children"];function gw(e,t){if(e==null)return{};var r,n,i=bw(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function bw(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function pi(){return pi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},pi.apply(null,arguments)}var Cw={width:"100%",height:"100%"},xw=E.forwardRef((e,t)=>{var r=Qc(),n=Jc(),i=tf();if(!Hn(r)||!Hn(n))return null;var{children:a,otherAttributes:o,title:s,desc:u}=e,c,l;return typeof o.tabIndex=="number"?c=o.tabIndex:c=i?0:void 0,typeof o.role=="string"?l=o.role:l=i?"application":void 0,x.createElement(H1,pi({},o,{title:s,desc:u,role:l,tabIndex:c,width:r,height:n,style:Cw,ref:t}),a)}),ww=e=>{var{children:t}=e,r=F(Si);if(!r)return null;var{width:n,height:i,y:a,x:o}=r;return x.createElement(H1,{width:n,height:i,x:o,y:a},t)},k1=E.forwardRef((e,t)=>{var{children:r}=e,n=gw(e,yw),i=Ie();return i?x.createElement(ww,null,r):x.createElement(xw,pi({ref:t},n),r)});function Ow(){var e=Me(),[t,r]=E.useState(null),n=F(Y6);return E.useEffect(()=>{if(t!=null){var i=t.getBoundingClientRect(),a=i.width/t.offsetWidth;je(a)&&a!==n&&e(C6(a))}},[t,e,n]),r}function D1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ew(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?D1(Object(r),!0).forEach(function(n){Pw(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):D1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Pw(e,t,r){return(t=Aw(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Aw(e){var t=Sw(e,"string");return typeof t=="symbol"?t:t+""}function Sw(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var _w=E.forwardRef((e,t)=>{var{children:r,className:n,height:i,onClick:a,onContextMenu:o,onDoubleClick:s,onMouseDown:u,onMouseEnter:c,onMouseLeave:l,onMouseMove:f,onMouseUp:d,onTouchEnd:h,onTouchMove:p,onTouchStart:m,style:v,width:y}=e,b=Me(),[g,w]=E.useState(null),[C,O]=E.useState(null);Ly();var P=Ow(),_=E.useCallback($=>{P($),typeof t=="function"&&t($),w($),O($)},[P,t,w,O]),M=E.useCallback($=>{b(o8($)),b(Ye({handler:a,reactEvent:$}))},[b,a]),z=E.useCallback($=>{b(pa($)),b(Ye({handler:c,reactEvent:$}))},[b,c]),T=E.useCallback($=>{b(Zd()),b(Ye({handler:l,reactEvent:$}))},[b,l]),k=E.useCallback($=>{b(pa($)),b(Ye({handler:f,reactEvent:$}))},[b,f]),W=E.useCallback(()=>{b(d8())},[b]),K=E.useCallback($=>{b(f8($.key))},[b]),te=E.useCallback($=>{b(Ye({handler:o,reactEvent:$}))},[b,o]),Y=E.useCallback($=>{b(Ye({handler:s,reactEvent:$}))},[b,s]),B=E.useCallback($=>{b(Ye({handler:u,reactEvent:$}))},[b,u]),q=E.useCallback($=>{b(Ye({handler:d,reactEvent:$}))},[b,d]),R=E.useCallback($=>{b(Ye({handler:m,reactEvent:$}))},[b,m]),L=E.useCallback($=>{b(p8($)),b(Ye({handler:p,reactEvent:$}))},[b,p]),se=E.useCallback($=>{b(Ye({handler:h,reactEvent:$}))},[b,h]);return x.createElement(p3.Provider,{value:g},x.createElement(Y8.Provider,{value:C},x.createElement("div",{className:G.clsx("recharts-wrapper",n),style:Ew({position:"relative",cursor:"default",width:y,height:i},v),onClick:M,onContextMenu:te,onDoubleClick:Y,onFocus:W,onKeyDown:K,onMouseDown:B,onMouseEnter:z,onMouseLeave:T,onMouseMove:k,onMouseUp:q,onTouchEnd:se,onTouchMove:L,onTouchStart:R,ref:_},r)))}),jw=["children","className","width","height","style","compact","title","desc"];function Mw(e,t){if(e==null)return{};var r,n,i=Tw(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Tw(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var kw=E.forwardRef((e,t)=>{var{children:r,className:n,width:i,height:a,style:o,compact:s,title:u,desc:c}=e,l=Mw(e,jw),f=Rt(l);return s?x.createElement(k1,{otherAttributes:f,title:u,desc:c},r):x.createElement(_w,{className:n,style:o,width:i,height:a,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},x.createElement(k1,{otherAttributes:f,title:u,desc:c,ref:t},x.createElement(Fb,null,r)))}),Dw=["width","height"];function va(){return va=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},va.apply(null,arguments)}function Nw(e,t){if(e==null)return{};var r,n,i=Iw(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Iw(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Rw={top:5,right:5,bottom:5,left:5},$w={accessibilityLayer:!0,layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:Rw,reverseStackOrder:!1,syncMethod:"index"},m8=E.forwardRef(function(t,r){var n,i=ft(t.categoricalChartProps,$w),{width:a,height:o}=i,s=Nw(i,Dw);if(!Hn(a)||!Hn(o))return null;var{chartName:u,defaultTooltipEventType:c,validateTooltipEventTypes:l,tooltipPayloadSearcher:f,categoricalChartProps:d}=t,h={chartName:u,defaultTooltipEventType:c,validateTooltipEventTypes:l,tooltipPayloadSearcher:f,eventEmitter:void 0};return x.createElement(pw,{preloadedState:{options:h},reduxStoreName:(n=d.id)!==null&&n!==void 0?n:u},x.createElement(Mb,{chartData:d.data}),x.createElement(vw,{width:a,height:o,layout:i.layout,margin:i.margin}),x.createElement(mw,{accessibilityLayer:i.accessibilityLayer,barCategoryGap:i.barCategoryGap,maxBarSize:i.maxBarSize,stackOffset:i.stackOffset,barGap:i.barGap,barSize:i.barSize,syncId:i.syncId,syncMethod:i.syncMethod,className:i.className}),x.createElement(kw,va({},s,{width:a,height:o,ref:r})))}),Lw=["axis"],Bw=E.forwardRef((e,t)=>x.createElement(m8,{chartName:"LineChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:Lw,tooltipPayloadSearcher:v3,categoricalChartProps:e,ref:t})),Fw=["axis"],zw=E.forwardRef((e,t)=>x.createElement(m8,{chartName:"AreaChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:Fw,tooltipPayloadSearcher:v3,categoricalChartProps:e,ref:t}));function qw(e){return e&&Array.isArray(e.data)&&e.data.length>1&&e.data.every(t=>t.date&&!isNaN(new Date(t.date).getTime())&&typeof t.value=="number"&&!isNaN(t.value))}const Ww=e=>{const t=[];return Object.keys(e).forEach(r=>{if(r==="test_id"||r==="test_name"||r==="test_unit"||r==="isPrintable")return;const n=e[r];if(n&&typeof n=="object"&&"test_value"in n){const i=parseFloat(n.test_value);isNaN(i)||t.push({date:r,value:i})}}),t.sort((r,n)=>new Date(r.date).getTime()-new Date(n.date).getTime())},y8=E.createContext(void 0);function Uw({children:e}){const t=S.jsxRuntimeExports.jsx("div",{className:"hfl-fixed hfl-inset-0 hfl-z-[1000] hfl-flex hfl-items-center hfl-justify-center hfl-bg-black/50 hfl-backdrop-blur-[2px]",children:e});return N1.createPortal(t,document.body)}function Go(){const e=E.useContext(y8);if(!e)throw new Error("Trend Graph Context not available");return e}const Kw=({active:e,payload:t})=>{if(e&&t&&t.length){const r=t[0];return S.jsxRuntimeExports.jsxs("div",{className:"hfl-bg-Blue_gray-900 hfl-border hfl-border-Gray-300 hfl-rounded-lg hfl-shadow-lg hfl-px-2 hfl-pb-1 ",children:[S.jsxRuntimeExports.jsx("div",{className:"hfl-w-full hfl-flex hfl-justify-center",children:S.jsxRuntimeExports.jsx("div",{className:"hfl-w-0 hfl-h-0 hfl-border-l-[6px] hfl-border-r-[6px] hfl-border-b-[8px] hfl-border-l-transparent hfl-border-r-transparent hfl-border-b-Blue_gray-900"})}),S.jsxRuntimeExports.jsx(S.Pc,{variant:"Bold",className:"hfl-text-White",type:"Text md",children:r.value})]})}return null};function Vw(){const{data:e}=Go();return S.jsxRuntimeExports.jsx("div",{className:"hfl-flex hfl-justify-center hfl-items-center hfl-px-7 hfl-py-2 hfl-h-[55vh] hfl-bg-white",children:S.jsxRuntimeExports.jsx(b3,{width:"100%",height:"100%",children:S.jsxRuntimeExports.jsxs(Bw,{width:500,height:300,data:e.data,margin:{top:30,right:30,left:20,bottom:15},children:[S.jsxRuntimeExports.jsx(F3,{strokeDasharray:"3 3"}),S.jsxRuntimeExports.jsx(Wo,{dataKey:"date",ticks:e.data.map(t=>t.date),tick:({x:t,y:r,payload:n})=>{const i=G.dayjs(n.value);return S.jsxRuntimeExports.jsxs("text",{x:t,y:r+10,textAnchor:"middle",fill:"#666",children:[S.jsxRuntimeExports.jsx("tspan",{x:t,dy:"0",children:i.format("DD-MMM-YY")}),S.jsxRuntimeExports.jsx("tspan",{x:t,dy:"20",children:i.format("hh:mm A")})]})}}),S.jsxRuntimeExports.jsx(Uo,{label:{value:e.unit,position:"top",offset:20,style:{textAnchor:"middle",fontSize:12}}}),S.jsxRuntimeExports.jsx(Vy,{content:Kw}),S.jsxRuntimeExports.jsx(H3,{type:"monotone",dataKey:"value",stroke:e.color.lineColor,activeDot:{r:8},name:e.testName})]})})})}function Hw(){const{setShowLineChart:e,data:t}=Go();return S.jsxRuntimeExports.jsxs("div",{className:"hfl-px-7 hfl-py-2.5 hfl-flex hfl-justify-between hfl-w-full hfl-items-center hfl-bg-Warning-100 hfl-border-b-Warning-600",children:[S.jsxRuntimeExports.jsx(S.Pc,{type:"Text md",variant:"Bold",className:"hfl-text-Blue_gray-800",children:t.testName}),S.jsxRuntimeExports.jsx(S.Yu,{hierarchy:"Secondary-Grey",icon:"Only",iconFile:"hx_close",size:"sm",onClick:()=>e(!1)})]})}function Gw(){const e=E.useRef(null),{setShowLineChart:t}=Go();return b8.useClickOutside(e,()=>t(!1)),S.jsxRuntimeExports.jsx(Uw,{children:S.jsxRuntimeExports.jsxs("div",{className:"hfl-rounded-md hfl-border-2 hfl-border-Gray-200 hfl-w-[54vw] ",ref:e,children:[S.jsxRuntimeExports.jsx(Hw,{}),S.jsxRuntimeExports.jsx(Vw,{})]})})}function Yw(e){const{trendData:t,containerWidth:r,containerHeight:n,showError:i}=e,[a,o]=E.useState(!1),s=qw(t),{lineColor:u,areaColor:c}=t.color,l=E.useCallback(()=>{s?o(!0):i&&i("Line Chart cannot be shown, insufficient or invalid data points")},[s,i]);return!t||!t.data||t.data.length===0||!s?S.jsxRuntimeExports.jsx("div",{style:{width:157,height:28}}):S.jsxRuntimeExports.jsxs(y8.Provider,{value:{data:t,setShowLineChart:o},children:[S.jsxRuntimeExports.jsx("div",{style:{width:r,height:n,cursor:"pointer"},onClick:l,children:S.jsxRuntimeExports.jsx(b3,{width:"100%",height:"100%",children:S.jsxRuntimeExports.jsx(zw,{data:t.data,children:S.jsxRuntimeExports.jsx(t8,{type:"monotone",dataKey:"value",stroke:u,strokeWidth:2,fill:c})})})}),a&&S.jsxRuntimeExports.jsx(Gw,{})]})}const Zw=[{lineColor:"#6938EF",areaColor:"#D9D6FE"},{lineColor:"#727BBD",areaColor:"#d5d9eb"},{lineColor:"#e44ca4",areaColor:"#fce7f6"}],Xw=(e,t,r,n,i="")=>{let a={min:"",max:""},o=!1;try{if(i?.length){const s=JSON.parse(i);if(s?.rule){let u;const c=s.rule.find(l=>l.gender==="-1");c?.ranges?.length?u=c:u=s.rule.find(l=>l.gender===t),u?.ranges&&u.ranges.forEach(l=>{const f=l.age.split("-");f[0]<=e&&e<=f[1]&&(a=l)})}switch(r){case"921":case"922":case"923":case"1461":a=s[n];break;case"1851":a=s.WaistHipRatio;break;default:break}return o=Qw(a,n),{isOutOfRange:o,rule:a}}return{isOutOfRange:o,rule:a}}catch(s){return console.log(s),{isOutOfRange:o,rule:a}}},Qw=(e,t)=>{if(t?.length&&"max"in e&&"min"in e){let r=!1;return Number(e.min)>Number(e.max)&&(e.max=1/0),Number(e.min)===0&&Number(e.max)===0?!1:(Number(t)>=Number(e.min)&&Number(t)<=Number(e.max)||(r=!0),r)}return!1},Jw=({patientAge:e,patientGender:t,data:r=[],testDetails:n=[],enableCheckboxesToSelect:i=!1,tableHeaderRowClasses:a,investigationCheckBoxMap:o,onColumnCheckboxClickHandler:s,onRowCheckboxClickHandler:u,onRefresh:c,scrollOverflowXToEnd:l=!1,displayOutOfRangeStyles:f,enableDateColsEditing:d,onInvValueCellSave:h})=>{const[p,m]=E.useState([]),[v,y]=E.useState([]),[b,g]=E.useState([]),[w,C]=E.useState(new Map([])),[O,P]=E.useState(new Map([])),[_,M]=E.useState(new Map([])),z=E.useRef(null),T=E.useRef(null),k="hfl-text-1",W=E.useCallback((B,q)=>{C(R=>{const L=new Map(R);return L.set(B,!0),L}),P(R=>{const L=new Map(R);return L.set(B,q??""),L})},[]),K=E.useCallback(B=>{C(q=>{const R=new Map(q);return R.set(B,!1),R}),P(q=>{const R=new Map(q);return R.delete(B),R}),M(q=>{const R=new Map(q);return R.delete(B),R})},[]),te=E.useCallback(async B=>{const q=O.get(B)??"",R=_.get(B)??"",[L,se]=B.split("::"),$=p.find(ne=>ne.test_id===L),Ee=$?$[se]:void 0,Ge=Ee?.test_value??"";if(q===Ge){C(ne=>{const me=new Map(ne);return me.set(B,!1),me}),P(ne=>{const me=new Map(ne);return me.delete(B),me}),M(ne=>{const me=new Map(ne);return me.delete(B),me});return}try{await h?.({test_date:se,test_id:L,test_value:q,out_of_range:R||!1,created_on:"",source_id:Ee?.source_id||0,source_type:Ee?.source_type||g8.E_INVESTIGATIONS_SOURCE.INVESTIGATIONS})&&(C(me=>{const Pe=new Map(me);return Pe.set(B,!1),Pe}),P(me=>{const Pe=new Map(me);return Pe.delete(B),Pe}),M(me=>{const Pe=new Map(me);return Pe.delete(B),Pe}))}catch{}},[O,_,p,h]),Y=E.useCallback((B,q,R)=>{const L=O.get(R),[se]=R.split("::"),$=q?_.get(R)??B.out_of_range:B.out_of_range;return S.jsxRuntimeExports.jsx(S.jsxRuntimeExports.Fragment,{children:B&&S.jsxRuntimeExports.jsxs("div",{className:`hfl-flex hfl-px-4 hfl-py-1 hfl-gap-4 hfl-items-center hfl-w-full hfl-h-full ${q?"hfl-bg-Blue-50 hfl-border hfl-border-Blue-600":""} ${q&&$?"hfl-border hfl-border-Error-600":""}`,children:[q?S.jsxRuntimeExports.jsx("input",{autoFocus:!0,type:"string",value:L,className:`hfl-w-3/4 hfl-h-full hfl-border-0 focus:hfl-outline-none hfl-bg-inherit ${$&&"hfl-text-Error-600 hfl-font-bold"}`,onChange:Ee=>{const Ge=Ee.target.value,ne=n.find(Pe=>Pe.test_id===se),me=Xw(e,t,se,Ge,ne?.test_range_rule)?.isOutOfRange;P(Pe=>{const qt=new Map(Pe);return qt.set(R,Ge),qt}),M(Pe=>{const qt=new Map(Pe);return qt.set(R,me),qt})}}):S.jsxRuntimeExports.jsx("span",{className:`${f&&$?"hfl-text-Error-600 hfl-font-semibold":""}`,children:L||B.test_value}),d&&B.isEditPermitted&&B.test_value?.length>0&&S.jsxRuntimeExports.jsx("div",{className:"hfl-flex hfl-gap-1",children:q?S.jsxRuntimeExports.jsxs(S.jsxRuntimeExports.Fragment,{children:[S.jsxRuntimeExports.jsx("i",{className:"hx_checkmark hfl-cursor-pointer hfl-text-Success-600 hover:hfl-font-bold",onClick:()=>te(R)}),S.jsxRuntimeExports.jsx("i",{className:"hx_close hfl-cursor-pointer hfl-text-Error-600 hover:hfl-font-bold",onClick:()=>K(R)})]}):S.jsxRuntimeExports.jsx("i",{className:"hx_edit hfl-cursor-pointer hfl-text-Blue-600 hover:hfl-font-bold",onClick:()=>W(R,B.test_value)})})]})})},[f,d,W,te,K,O,_,n,e,t]);return E.useEffect(()=>{const B=[{field:"#",fieldHeaderName:"No.",pinned:"left",width:"60px",minWidth:"60px",cellClasses:`${k}`,renderCell:(R,L,se,$)=>S.jsxRuntimeExports.jsx(S.jsxRuntimeExports.Fragment,{children:$+1})},{field:"test_name",fieldHeaderName:"Tests / Investigations",pinned:"left",width:"250px",minWidth:"250px",cellClasses:`${k}`,enableColumnCheckbox:i,isCheckBoxMarked:o.get("test_name"),onColumnCheckboxClick:R=>{s("test_name",R)},renderCell:(R,L)=>S.jsxRuntimeExports.jsxs("div",{className:"hfl-flex hfl-items-center",children:[i&&S.jsxRuntimeExports.jsx(S.Mc,{size:"md",checkBoxInnerDivClasses:"!hfl-w-4 !hfl-h-4 !hfl-mr-1 !hfl-text-Blue-600 !hfl-border-Blue-600 !hfl-bg-Blue-50 hover:hfl-bg-Blue-50 hover:hfl-border-Blue-600",text:"",onClick:()=>u?.(L.test_id),id:`checkbox-test-${L.test_id}`,isMarked:L.isPrintable,checkboxClasses:"hfl-gap-0"}),R]})},{field:"test_unit",fieldHeaderName:"Units",pinned:"left",width:"80px",minWidth:"80px",cellClasses:`${k}`},{field:"trend_lines",fieldHeaderName:"Trend Lines",pinned:"right",width:"180px",minWidth:"180px",cellClasses:`${k}`,renderCell:(R,L,se,$)=>{const Ee=$%3,Ge={testName:L.test_name,unit:L.test_unit,color:Zw[Ee],data:Ww(L)};return S.jsxRuntimeExports.jsx(Yw,{containerHeight:32,containerWidth:180,trendData:Ge})}}],q=v.map(R=>({field:R,fieldHeaderName:R,width:"120px",minWidth:"120px",cellClasses:`${k} !hfl-p-0`,enableColumnCheckbox:i,isCheckBoxMarked:o.get(R),onColumnCheckboxClick:L=>{s(R,L)},renderHeaderCell:L=>S.jsxRuntimeExports.jsx(S.jsxRuntimeExports.Fragment,{children:G.dayjs(L.fieldHeaderName).format("DD-MMM-YY hh:mm A")}),renderCell:(L,se,$)=>{const Ee=`${se.test_id}::${String($.field)}`,Ge=w.get(Ee)??!1;return Y(L||{},Ge,Ee)}}));g([...B,...q])},[v,i,o,w,s,u,Y]),E.useEffect(()=>{if(!r.length)return;const B=[...new Set(r.map(L=>L.test_date))].sort((L,se)=>G.dayjs(L).diff(G.dayjs(se)));y(B);const q=new Map;r.forEach(L=>{const se=n.find(Ee=>Ee?.test_id?.toString()===L?.test_id?.toString());q.has(L.test_id)||q.set(L.test_id,{test_id:L.test_id,test_name:se?.test_names||L.test_name,test_unit:se?.test_units||L.test_unit,isPrintable:L.isPrintable,isEditPermitted:L.isEditPermitted});const $=q.get(L.test_id);$[L.test_date]={test_value:L.test_value,out_of_range:L.out_of_range,created_on:L.created_on,source_id:L.source_id,source_type:L.source_type,isEditPermitted:L.isEditPermitted||!1}});const R=Array.from(q.values());m(R)},[r,n]),E.useLayoutEffect(()=>{if(!l)return;const B=T.current;if(!B)return;const q=setTimeout(()=>{B.scrollLeft=B.scrollWidth},0);return()=>clearTimeout(q)},[l]),S.jsxRuntimeExports.jsx(T8,{headerRowClasses:`hfl-bg-Blue_gray-50 hfl-text-Indigo-500 hfl-text-1 hfl-border-t-0 ${a}`,tableRef:z,tableClassesToOverride:"hfl-border-0",tableMainDivClasses:"hfl-w-auto hfl-border",tableMainParentDivRef:T,columns:b,tableName:"Investigations",rows:p,displayNoDataFoundProps:{title:"No Investigation Available",description:"Please create a new investigation or refresh",onPageReload:c}})};exports.AllInvestigationsTable=Jw;
80
+ */var _1;function qx(){return _1||(_1=1,process.env.NODE_ENV!=="production"&&function(){function e(u,c){return u===c&&(u!==0||1/u===1/c)||u!==u&&c!==c}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=E,r=typeof Object.is=="function"?Object.is:e,n=t.useSyncExternalStore,i=t.useRef,a=t.useEffect,o=t.useMemo,s=t.useDebugValue;E0.useSyncExternalStoreWithSelector=function(u,c,l,f,d){var h=i(null);if(h.current===null){var p={hasValue:!1,value:null};h.current=p}else p=h.current;h=o(function(){function v(C){if(!y){if(y=!0,b=C,C=f(C),d!==void 0&&p.hasValue){var O=p.value;if(d(O,C))return g=O}return g=C}if(O=g,r(b,C))return O;var P=f(C);return d!==void 0&&d(O,P)?(b=C,O):(b=C,g=P)}var y=!1,b,g,w=l===void 0?null:l;return[function(){return v(c())},w===null?void 0:function(){return v(w())}]},[c,l,f,d]);var m=n(u,h[0],h[1]);return a(function(){p.hasValue=!0,p.value=m},[m]),s(m),m},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),E0}var j1;function Wx(){return j1||(j1=1,process.env.NODE_ENV==="production"?Nn.exports=zx():Nn.exports=qx()),Nn.exports}Wx();function Ux(e){e()}function Kx(){let e=null,t=null;return{clear(){e=null,t=null},notify(){Ux(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){const r=[];let n=e;for(;n;)r.push(n),n=n.next;return r},subscribe(r){let n=!0;const i=t={callback:r,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!n||e===null||(n=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var M1={notify(){},get:()=>[]};function Vx(e,t){let r,n=M1,i=0,a=!1;function o(m){l();const v=n.subscribe(m);let y=!1;return()=>{y||(y=!0,v(),f())}}function s(){n.notify()}function u(){p.onStateChange&&p.onStateChange()}function c(){return a}function l(){i++,r||(r=e.subscribe(u),n=Kx())}function f(){i--,r&&i===0&&(r(),r=void 0,n.clear(),n=M1)}function d(){a||(a=!0,l())}function h(){a&&(a=!1,f())}const p={addNestedSub:o,notifyNestedSubs:s,handleChangeWrapper:u,isSubscribed:c,trySubscribe:d,tryUnsubscribe:h,getListeners:()=>n};return p}var Hx=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Gx=Hx(),Yx=()=>typeof navigator<"u"&&navigator.product==="ReactNative",Zx=Yx(),Xx=()=>Gx||Zx?x.useLayoutEffect:x.useEffect,Qx=Xx(),Jx=Symbol.for("react-redux-context"),ew=typeof globalThis<"u"?globalThis:{};function tw(){if(!x.createContext)return{};const e=ew[Jx]??=new Map;let t=e.get(x.createContext);return t||(t=x.createContext(null),process.env.NODE_ENV!=="production"&&(t.displayName="ReactRedux"),e.set(x.createContext,t)),t}var rw=tw();function nw(e){const{children:t,context:r,serverState:n,store:i}=e,a=x.useMemo(()=>{const u=Vx(i),c={store:i,subscription:u,getServerState:n?()=>n:void 0};if(process.env.NODE_ENV==="production")return c;{const{identityFunctionCheck:l="once",stabilityCheck:f="once"}=e;return Object.assign(c,{stabilityCheck:f,identityFunctionCheck:l})}},[i,n]),o=x.useMemo(()=>i.getState(),[i]);Qx(()=>{const{subscription:u}=a;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),o!==i.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[a,o]);const s=r||rw;return x.createElement(s.Provider,{value:a},t)}var iw=nw,aw=(e,t)=>t,Ko=A([aw,Q,fd,pe,i3,St,py,Ee],by),Vo=e=>{var t=e.currentTarget.getBoundingClientRect(),r=t.width/e.currentTarget.offsetWidth,n=t.height/e.currentTarget.offsetHeight;return{chartX:Math.round((e.clientX-t.left)/r),chartY:Math.round((e.clientY-t.top)/n)}},o8=Je("mouseClick"),s8=on();s8.startListening({actionCreator:o8,effect:(e,t)=>{var r=e.payload,n=Ko(t.getState(),Vo(r));n?.activeIndex!=null&&t.dispatch(wm({activeIndex:n.activeIndex,activeDataKey:void 0,activeCoordinate:n.activeCoordinate}))}});var pa=Je("mouseMove"),u8=on();u8.startListening({actionCreator:pa,effect:(e,t)=>{var r=e.payload,n=t.getState(),i=Ao(n,n.tooltip.settings.shared),a=Ko(n,Vo(r));i==="axis"&&(a?.activeIndex!=null?t.dispatch(Xd({activeIndex:a.activeIndex,activeDataKey:void 0,activeCoordinate:a.activeCoordinate})):t.dispatch(Zd()))}});function ow(e,t){return t instanceof HTMLElement?"HTMLElement <".concat(t.tagName,' class="').concat(t.className,'">'):t===window?"global.window":t}var T1={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,barSize:void 0,className:void 0,maxBarSize:void 0,stackOffset:"none",syncId:void 0,syncMethod:"index"},l8=He({name:"rootProps",initialState:T1,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:T1.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}}}),sw=l8.reducer,{updateOptions:uw}=l8.actions,c8=He({name:"polarOptions",initialState:null,reducers:{updatePolarOptions:(e,t)=>t.payload}}),{updatePolarOptions:wO}=c8.actions,lw=c8.reducer,f8=Je("keyDown"),d8=Je("focus"),Ho=on();Ho.startListening({actionCreator:f8,effect:(e,t)=>{var r=t.getState(),n=r.rootProps.accessibilityLayer!==!1;if(n){var{keyboardInteraction:i}=r.tooltip,a=e.payload;if(!(a!=="ArrowRight"&&a!=="ArrowLeft"&&a!=="Enter")){var o=Number(So(i,Tr(r))),s=St(r);if(a==="Enter"){var u=li(r,"axis","hover",String(i.index));t.dispatch(ia({active:!i.active,activeIndex:i.index,activeDataKey:i.dataKey,activeCoordinate:u}));return}var c=pm(r),l=c==="left-to-right"?1:-1,f=a==="ArrowRight"?1:-1,d=o+f*l;if(!(s==null||d>=s.length||d<0)){var h=li(r,"axis","hover",String(d));t.dispatch(ia({active:!0,activeIndex:d.toString(),activeDataKey:void 0,activeCoordinate:h}))}}}}});Ho.startListening({actionCreator:d8,effect:(e,t)=>{var r=t.getState(),n=r.rootProps.accessibilityLayer!==!1;if(n){var{keyboardInteraction:i}=r.tooltip;if(!i.active&&i.index==null){var a="0",o=li(r,"axis","hover",String(a));t.dispatch(ia({activeDataKey:void 0,active:!0,activeIndex:a,activeCoordinate:o}))}}}});var Ye=Je("externalEvent"),h8=on();h8.startListening({actionCreator:Ye,effect:(e,t)=>{if(e.payload.handler!=null){var r=t.getState(),n={activeCoordinate:ay(r),activeDataKey:ny(r),activeIndex:en(r),activeLabel:s3(r),activeTooltipIndex:en(r),isTooltipActive:oy(r)};e.payload.handler(n,e.payload.reactEvent)}}});var cw=A([Mr],e=>e.tooltipItemPayloads),fw=A([cw,vn,(e,t,r)=>t,(e,t,r)=>r],(e,t,r,n)=>{var i=e.find(s=>s.settings.dataKey===n);if(i!=null){var{positions:a}=i;if(a!=null){var o=t(a,r);return o}}}),p8=Je("touchMove"),v8=on();v8.startListening({actionCreator:p8,effect:(e,t)=>{var r=e.payload,n=t.getState(),i=Ao(n,n.tooltip.settings.shared);if(i==="axis"){var a=Ko(n,Vo({clientX:r.touches[0].clientX,clientY:r.touches[0].clientY,currentTarget:r.currentTarget}));a?.activeIndex!=null&&t.dispatch(Xd({activeIndex:a.activeIndex,activeDataKey:void 0,activeCoordinate:a.activeCoordinate}))}else if(i==="item"){var o,s=r.touches[0],u=document.elementFromPoint(s.clientX,s.clientY);if(!u||!u.getAttribute)return;var c=u.getAttribute(Z6),l=(o=u.getAttribute(X6))!==null&&o!==void 0?o:void 0,f=fw(t.getState(),c,l);t.dispatch(xm({activeDataKey:l,activeIndex:c,activeCoordinate:f}))}}});var dw=bc({brush:Tb,cartesianAxis:wx,chartData:Iy,errorBars:Ob,graphicalItems:db,layout:x6,legend:u7,options:My,polarAxis:rb,polarOptions:lw,referenceElements:Lb,rootProps:sw,tooltip:Om}),hw=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Chart";return V9({reducer:dw,preloadedState:t,middleware:n=>n({serializableCheck:!1}).concat([s8.middleware,u8.middleware,Ho.middleware,h8.middleware,v8.middleware]),devTools:{serialize:{replacer:ow},name:"recharts-".concat(r)}})};function pw(e){var{preloadedState:t,children:r,reduxStoreName:n}=e,i=Ie(),a=E.useRef(null);if(i)return r;a.current==null&&(a.current=hw(t,n));var o=Sa;return x.createElement(iw,{context:o,store:a.current},r)}function vw(e){var{layout:t,width:r,height:n,margin:i}=e,a=Me(),o=Ie();return E.useEffect(()=>{o||(a(g6(t)),a(b6({width:r,height:n})),a(y6(i)))},[a,o,t,r,n,i]),null}function mw(e){var t=Me();return E.useEffect(()=>{t(uw(e))},[t,e]),null}var yw=["children"];function gw(e,t){if(e==null)return{};var r,n,i=bw(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function bw(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function pi(){return pi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},pi.apply(null,arguments)}var Cw={width:"100%",height:"100%"},xw=E.forwardRef((e,t)=>{var r=Qc(),n=Jc(),i=tf();if(!Hn(r)||!Hn(n))return null;var{children:a,otherAttributes:o,title:s,desc:u}=e,c,l;return typeof o.tabIndex=="number"?c=o.tabIndex:c=i?0:void 0,typeof o.role=="string"?l=o.role:l=i?"application":void 0,x.createElement(H1,pi({},o,{title:s,desc:u,role:l,tabIndex:c,width:r,height:n,style:Cw,ref:t}),a)}),ww=e=>{var{children:t}=e,r=F(Si);if(!r)return null;var{width:n,height:i,y:a,x:o}=r;return x.createElement(H1,{width:n,height:i,x:o,y:a},t)},k1=E.forwardRef((e,t)=>{var{children:r}=e,n=gw(e,yw),i=Ie();return i?x.createElement(ww,null,r):x.createElement(xw,pi({ref:t},n),r)});function Ow(){var e=Me(),[t,r]=E.useState(null),n=F(Y6);return E.useEffect(()=>{if(t!=null){var i=t.getBoundingClientRect(),a=i.width/t.offsetWidth;je(a)&&a!==n&&e(C6(a))}},[t,e,n]),r}function D1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ew(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?D1(Object(r),!0).forEach(function(n){Pw(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):D1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Pw(e,t,r){return(t=Aw(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Aw(e){var t=Sw(e,"string");return typeof t=="symbol"?t:t+""}function Sw(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var _w=E.forwardRef((e,t)=>{var{children:r,className:n,height:i,onClick:a,onContextMenu:o,onDoubleClick:s,onMouseDown:u,onMouseEnter:c,onMouseLeave:l,onMouseMove:f,onMouseUp:d,onTouchEnd:h,onTouchMove:p,onTouchStart:m,style:v,width:y}=e,b=Me(),[g,w]=E.useState(null),[C,O]=E.useState(null);Ly();var P=Ow(),_=E.useCallback(L=>{P(L),typeof t=="function"&&t(L),w(L),O(L)},[P,t,w,O]),M=E.useCallback(L=>{b(o8(L)),b(Ye({handler:a,reactEvent:L}))},[b,a]),z=E.useCallback(L=>{b(pa(L)),b(Ye({handler:c,reactEvent:L}))},[b,c]),T=E.useCallback(L=>{b(Zd()),b(Ye({handler:l,reactEvent:L}))},[b,l]),k=E.useCallback(L=>{b(pa(L)),b(Ye({handler:f,reactEvent:L}))},[b,f]),W=E.useCallback(()=>{b(d8())},[b]),K=E.useCallback(L=>{b(f8(L.key))},[b]),te=E.useCallback(L=>{b(Ye({handler:o,reactEvent:L}))},[b,o]),Y=E.useCallback(L=>{b(Ye({handler:s,reactEvent:L}))},[b,s]),B=E.useCallback(L=>{b(Ye({handler:u,reactEvent:L}))},[b,u]),q=E.useCallback(L=>{b(Ye({handler:d,reactEvent:L}))},[b,d]),R=E.useCallback(L=>{b(Ye({handler:m,reactEvent:L}))},[b,m]),$=E.useCallback(L=>{b(p8(L)),b(Ye({handler:p,reactEvent:L}))},[b,p]),se=E.useCallback(L=>{b(Ye({handler:h,reactEvent:L}))},[b,h]);return x.createElement(p3.Provider,{value:g},x.createElement(Y8.Provider,{value:C},x.createElement("div",{className:G.clsx("recharts-wrapper",n),style:Ew({position:"relative",cursor:"default",width:y,height:i},v),onClick:M,onContextMenu:te,onDoubleClick:Y,onFocus:W,onKeyDown:K,onMouseDown:B,onMouseEnter:z,onMouseLeave:T,onMouseMove:k,onMouseUp:q,onTouchEnd:se,onTouchMove:$,onTouchStart:R,ref:_},r)))}),jw=["children","className","width","height","style","compact","title","desc"];function Mw(e,t){if(e==null)return{};var r,n,i=Tw(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Tw(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var kw=E.forwardRef((e,t)=>{var{children:r,className:n,width:i,height:a,style:o,compact:s,title:u,desc:c}=e,l=Mw(e,jw),f=Rt(l);return s?x.createElement(k1,{otherAttributes:f,title:u,desc:c},r):x.createElement(_w,{className:n,style:o,width:i,height:a,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},x.createElement(k1,{otherAttributes:f,title:u,desc:c,ref:t},x.createElement(Fb,null,r)))}),Dw=["width","height"];function va(){return va=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},va.apply(null,arguments)}function Nw(e,t){if(e==null)return{};var r,n,i=Iw(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Iw(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Rw={top:5,right:5,bottom:5,left:5},$w={accessibilityLayer:!0,layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:Rw,reverseStackOrder:!1,syncMethod:"index"},m8=E.forwardRef(function(t,r){var n,i=ft(t.categoricalChartProps,$w),{width:a,height:o}=i,s=Nw(i,Dw);if(!Hn(a)||!Hn(o))return null;var{chartName:u,defaultTooltipEventType:c,validateTooltipEventTypes:l,tooltipPayloadSearcher:f,categoricalChartProps:d}=t,h={chartName:u,defaultTooltipEventType:c,validateTooltipEventTypes:l,tooltipPayloadSearcher:f,eventEmitter:void 0};return x.createElement(pw,{preloadedState:{options:h},reduxStoreName:(n=d.id)!==null&&n!==void 0?n:u},x.createElement(Mb,{chartData:d.data}),x.createElement(vw,{width:a,height:o,layout:i.layout,margin:i.margin}),x.createElement(mw,{accessibilityLayer:i.accessibilityLayer,barCategoryGap:i.barCategoryGap,maxBarSize:i.maxBarSize,stackOffset:i.stackOffset,barGap:i.barGap,barSize:i.barSize,syncId:i.syncId,syncMethod:i.syncMethod,className:i.className}),x.createElement(kw,va({},s,{width:a,height:o,ref:r})))}),Lw=["axis"],Bw=E.forwardRef((e,t)=>x.createElement(m8,{chartName:"LineChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:Lw,tooltipPayloadSearcher:v3,categoricalChartProps:e,ref:t})),Fw=["axis"],zw=E.forwardRef((e,t)=>x.createElement(m8,{chartName:"AreaChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:Fw,tooltipPayloadSearcher:v3,categoricalChartProps:e,ref:t}));function qw(e){return e&&Array.isArray(e.data)&&e.data.length>1&&e.data.every(t=>t.date&&!isNaN(new Date(t.date).getTime())&&typeof t.value=="number"&&!isNaN(t.value))}const Ww=e=>{const t=[];return Object.keys(e).forEach(r=>{if(r==="test_id"||r==="test_name"||r==="test_unit"||r==="isPrintable")return;const n=e[r];if(n&&typeof n=="object"&&"test_value"in n){const i=parseFloat(n.test_value);isNaN(i)||t.push({date:r,value:i})}}),t.sort((r,n)=>new Date(r.date).getTime()-new Date(n.date).getTime())},y8=E.createContext(void 0);function Uw({children:e}){const t=S.jsxRuntimeExports.jsx("div",{className:"hfl-fixed hfl-inset-0 hfl-z-[1000] hfl-flex hfl-items-center hfl-justify-center hfl-bg-black/50 hfl-backdrop-blur-[2px]",children:e});return N1.createPortal(t,document.body)}function Go(){const e=E.useContext(y8);if(!e)throw new Error("Trend Graph Context not available");return e}const Kw=({active:e,payload:t})=>{if(e&&t&&t.length){const r=t[0];return S.jsxRuntimeExports.jsxs("div",{className:"hfl-bg-Blue_gray-900 hfl-border hfl-border-Gray-300 hfl-rounded-lg hfl-shadow-lg hfl-px-2 hfl-pb-1 ",children:[S.jsxRuntimeExports.jsx("div",{className:"hfl-w-full hfl-flex hfl-justify-center",children:S.jsxRuntimeExports.jsx("div",{className:"hfl-w-0 hfl-h-0 hfl-border-l-[6px] hfl-border-r-[6px] hfl-border-b-[8px] hfl-border-l-transparent hfl-border-r-transparent hfl-border-b-Blue_gray-900"})}),S.jsxRuntimeExports.jsx(S.Pc,{variant:"Bold",className:"hfl-text-White",type:"Text md",children:r.value})]})}return null};function Vw(){const{data:e}=Go();return S.jsxRuntimeExports.jsx("div",{className:"hfl-flex hfl-justify-center hfl-items-center hfl-px-7 hfl-py-2 hfl-h-[55vh] hfl-bg-white",children:S.jsxRuntimeExports.jsx(b3,{width:"100%",height:"100%",children:S.jsxRuntimeExports.jsxs(Bw,{width:500,height:300,data:e.data,margin:{top:30,right:30,left:20,bottom:15},children:[S.jsxRuntimeExports.jsx(F3,{strokeDasharray:"3 3"}),S.jsxRuntimeExports.jsx(Wo,{dataKey:"date",ticks:e.data.map(t=>t.date),tick:({x:t,y:r,payload:n})=>{const i=G.dayjs(n.value);return S.jsxRuntimeExports.jsxs("text",{x:t,y:r+10,textAnchor:"middle",fill:"#666",children:[S.jsxRuntimeExports.jsx("tspan",{x:t,dy:"0",children:i.format("DD-MMM-YY")}),S.jsxRuntimeExports.jsx("tspan",{x:t,dy:"20",children:i.format("hh:mm A")})]})}}),S.jsxRuntimeExports.jsx(Uo,{label:{value:e.unit,position:"top",offset:20,style:{textAnchor:"middle",fontSize:12}}}),S.jsxRuntimeExports.jsx(Vy,{content:Kw}),S.jsxRuntimeExports.jsx(H3,{type:"monotone",dataKey:"value",stroke:e.color.lineColor,activeDot:{r:8},name:e.testName})]})})})}function Hw(){const{setShowLineChart:e,data:t}=Go();return S.jsxRuntimeExports.jsxs("div",{className:"hfl-px-7 hfl-py-2.5 hfl-flex hfl-justify-between hfl-w-full hfl-items-center hfl-bg-Warning-100 hfl-border-b-Warning-600",children:[S.jsxRuntimeExports.jsx(S.Pc,{type:"Text md",variant:"Bold",className:"hfl-text-Blue_gray-800",children:t.testName}),S.jsxRuntimeExports.jsx(S.Yu,{hierarchy:"Secondary-Grey",icon:"Only",iconFile:"hx_close",size:"sm",onClick:()=>e(!1)})]})}function Gw(){const e=E.useRef(null),{setShowLineChart:t}=Go();return b8.useClickOutside(e,()=>t(!1)),S.jsxRuntimeExports.jsx(Uw,{children:S.jsxRuntimeExports.jsxs("div",{className:"hfl-rounded-md hfl-border-2 hfl-border-Gray-200 hfl-w-[54vw] ",ref:e,children:[S.jsxRuntimeExports.jsx(Hw,{}),S.jsxRuntimeExports.jsx(Vw,{})]})})}function Yw(e){const{trendData:t,containerWidth:r,containerHeight:n,showError:i}=e,[a,o]=E.useState(!1),s=qw(t),{lineColor:u,areaColor:c}=t.color,l=E.useCallback(()=>{s?o(!0):i&&i("Line Chart cannot be shown, insufficient or invalid data points")},[s,i]);return!t||!t.data||t.data.length===0||!s?S.jsxRuntimeExports.jsx("div",{style:{width:157,height:28}}):S.jsxRuntimeExports.jsxs(y8.Provider,{value:{data:t,setShowLineChart:o},children:[S.jsxRuntimeExports.jsx("div",{style:{width:r,height:n,cursor:"pointer"},onClick:l,children:S.jsxRuntimeExports.jsx(b3,{width:"100%",height:"100%",children:S.jsxRuntimeExports.jsx(zw,{data:t.data,children:S.jsxRuntimeExports.jsx(t8,{type:"monotone",dataKey:"value",stroke:u,strokeWidth:2,fill:c})})})}),a&&S.jsxRuntimeExports.jsx(Gw,{})]})}const Zw=[{lineColor:"#6938EF",areaColor:"#D9D6FE"},{lineColor:"#727BBD",areaColor:"#d5d9eb"},{lineColor:"#e44ca4",areaColor:"#fce7f6"}],Xw=(e,t,r,n,i="")=>{let a={min:"",max:""},o=!1;try{if(i?.length){const s=JSON.parse(i);if(s?.rule){let u;const c=s.rule.find(l=>l.gender==="-1");c?.ranges?.length?u=c:u=s.rule.find(l=>l.gender===t),u?.ranges&&u.ranges.forEach(l=>{const f=l.age.split("-");f[0]<=e&&e<=f[1]&&(a=l)})}switch(r){case"921":case"922":case"923":case"1461":a=s[n];break;case"1851":a=s.WaistHipRatio;break;default:break}return o=Qw(a,n),{isOutOfRange:o,rule:a}}return{isOutOfRange:o,rule:a}}catch(s){return console.log(s),{isOutOfRange:o,rule:a}}},Qw=(e,t)=>{if(t?.length&&"max"in e&&"min"in e){let r=!1;return Number(e.min)>Number(e.max)&&(e.max=1/0),Number(e.min)===0&&Number(e.max)===0?!1:(Number(t)>=Number(e.min)&&Number(t)<=Number(e.max)||(r=!0),r)}return!1},Jw=({patientAge:e,patientGender:t,data:r=[],testDetails:n=[],enableCheckboxesToSelect:i=!1,tableHeaderRowClasses:a,investigationCheckBoxMap:o,onColumnCheckboxClickHandler:s,onRowCheckboxClickHandler:u,onRefresh:c,scrollOverflowXToEnd:l=!1,displayOutOfRangeStyles:f,enableDateColsEditing:d,onInvValueCellSave:h})=>{const[p,m]=E.useState([]),[v,y]=E.useState([]),[b,g]=E.useState([]),[w,C]=E.useState(new Map([])),[O,P]=E.useState(new Map([])),[_,M]=E.useState(new Map([])),z=E.useRef(null),T=E.useRef(null),k="hfl-text-1",W=E.useCallback((B,q)=>{C(R=>{const $=new Map(R);return $.set(B,!0),$}),P(R=>{const $=new Map(R);return $.set(B,q??""),$})},[]),K=E.useCallback(B=>{C(q=>{const R=new Map(q);return R.set(B,!1),R}),P(q=>{const R=new Map(q);return R.delete(B),R}),M(q=>{const R=new Map(q);return R.delete(B),R})},[]),te=E.useCallback(async B=>{const q=O.get(B)??"",R=_.get(B)??"",[$,se]=B.split("::"),L=p.find(ne=>ne.test_id===$),be=L?L[se]:void 0,Ge=be?.test_value??"";if(q===Ge){C(ne=>{const me=new Map(ne);return me.set(B,!1),me}),P(ne=>{const me=new Map(ne);return me.delete(B),me}),M(ne=>{const me=new Map(ne);return me.delete(B),me});return}try{await h?.({test_date:se,test_id:$,test_value:q,out_of_range:R||!1,created_on:"",source_id:be?.source_id||0,source_type:be?.source_type||g8.E_INVESTIGATIONS_SOURCE.INVESTIGATIONS,id:be?.id||""})&&(C(me=>{const Pe=new Map(me);return Pe.set(B,!1),Pe}),P(me=>{const Pe=new Map(me);return Pe.delete(B),Pe}),M(me=>{const Pe=new Map(me);return Pe.delete(B),Pe}))}catch{}},[O,_,p,h]),Y=E.useCallback((B,q,R)=>{const $=O.get(R),[se]=R.split("::"),L=q?_.get(R)??B.out_of_range:B.out_of_range;return S.jsxRuntimeExports.jsx(S.jsxRuntimeExports.Fragment,{children:B&&S.jsxRuntimeExports.jsxs("div",{className:`hfl-flex hfl-px-4 hfl-py-1 hfl-gap-4 hfl-items-center hfl-w-full hfl-h-full ${q?"hfl-bg-Blue-50 hfl-border hfl-border-Blue-600":""} ${q&&L?"hfl-border hfl-border-Error-600":""}`,children:[q?S.jsxRuntimeExports.jsx("input",{autoFocus:!0,type:"string",value:$,className:`hfl-w-3/4 hfl-h-full hfl-border-0 focus:hfl-outline-none hfl-bg-inherit ${L&&"hfl-text-Error-600 hfl-font-bold"}`,onChange:be=>{const Ge=be.target.value,ne=n.find(Pe=>Pe.test_id===se),me=Xw(e,t,se,Ge,ne?.test_range_rule)?.isOutOfRange;P(Pe=>{const qt=new Map(Pe);return qt.set(R,Ge),qt}),M(Pe=>{const qt=new Map(Pe);return qt.set(R,me),qt})}}):S.jsxRuntimeExports.jsx("span",{className:`${f&&L?"hfl-text-Error-600 hfl-font-semibold":""}`,children:$||B.test_value}),d&&B.isEditPermitted&&B.test_value?.length>0&&S.jsxRuntimeExports.jsx("div",{className:"hfl-flex hfl-gap-1",children:q?S.jsxRuntimeExports.jsxs(S.jsxRuntimeExports.Fragment,{children:[S.jsxRuntimeExports.jsx("i",{className:"hx_checkmark hfl-cursor-pointer hfl-text-Success-600 hover:hfl-font-bold",onClick:()=>te(R)}),S.jsxRuntimeExports.jsx("i",{className:"hx_close hfl-cursor-pointer hfl-text-Error-600 hover:hfl-font-bold",onClick:()=>K(R)})]}):S.jsxRuntimeExports.jsx("i",{className:"hx_edit hfl-cursor-pointer hfl-text-Blue-600 hover:hfl-font-bold",onClick:()=>W(R,B.test_value)})})]})})},[f,d,W,te,K,O,_,n,e,t]);return E.useEffect(()=>{const B=[{field:"#",fieldHeaderName:"No.",pinned:"left",width:"60px",minWidth:"60px",cellClasses:`${k}`,renderCell:(R,$,se,L)=>S.jsxRuntimeExports.jsx(S.jsxRuntimeExports.Fragment,{children:L+1})},{field:"test_name",fieldHeaderName:"Tests / Investigations",pinned:"left",width:"250px",minWidth:"250px",cellClasses:`${k}`,enableColumnCheckbox:i,isCheckBoxMarked:o.get("test_name"),onColumnCheckboxClick:R=>{s("test_name",R)},renderCell:(R,$)=>S.jsxRuntimeExports.jsxs("div",{className:"hfl-flex hfl-items-center",children:[i&&S.jsxRuntimeExports.jsx(S.Mc,{size:"md",checkBoxInnerDivClasses:"!hfl-w-4 !hfl-h-4 !hfl-mr-1 !hfl-text-Blue-600 !hfl-border-Blue-600 !hfl-bg-Blue-50 hover:hfl-bg-Blue-50 hover:hfl-border-Blue-600",text:"",onClick:()=>u?.($.test_id),id:`checkbox-test-${$.test_id}`,isMarked:$.isPrintable,checkboxClasses:"hfl-gap-0"}),R]})},{field:"test_unit",fieldHeaderName:"Units",pinned:"left",width:"80px",minWidth:"80px",cellClasses:`${k}`},{field:"trend_lines",fieldHeaderName:"Trend Lines",pinned:"right",width:"180px",minWidth:"180px",cellClasses:`${k}`,renderCell:(R,$,se,L)=>{const be=L%3,Ge={testName:$.test_name,unit:$.test_unit,color:Zw[be],data:Ww($)};return S.jsxRuntimeExports.jsx(Yw,{containerHeight:32,containerWidth:180,trendData:Ge})}}],q=v.map(R=>({field:R,fieldHeaderName:R,width:"120px",minWidth:"120px",cellClasses:`${k} !hfl-p-0`,enableColumnCheckbox:i,isCheckBoxMarked:o.get(R),onColumnCheckboxClick:$=>{s(R,$)},renderHeaderCell:$=>S.jsxRuntimeExports.jsx(S.jsxRuntimeExports.Fragment,{children:G.dayjs($.fieldHeaderName).format("DD-MMM-YY hh:mm A")}),renderCell:($,se,L)=>{const be=`${se.test_id}::${String(L.field)}`,Ge=w.get(be)??!1;return Y($||{},Ge,be)}}));g([...B,...q])},[v,i,o,w,s,u,Y]),E.useEffect(()=>{if(!r.length)return;const B=[...new Set(r.map($=>$.test_date))].sort(($,se)=>G.dayjs($).diff(G.dayjs(se)));y(B);const q=new Map;r.forEach($=>{const se=n.find(be=>be?.test_id?.toString()===$?.test_id?.toString());q.has($.test_id)||q.set($.test_id,{test_id:$.test_id,test_name:se?.test_names||$.test_name,test_unit:se?.test_units||$.test_unit,isPrintable:$.isPrintable,isEditPermitted:$.isEditPermitted});const L=q.get($.test_id);L[$.test_date]={test_value:$.test_value,out_of_range:$.out_of_range,created_on:$.created_on,source_id:$.source_id,source_type:$.source_type,isEditPermitted:$.isEditPermitted||!1,id:$.id||""}});const R=Array.from(q.values());m(R)},[r,n]),E.useLayoutEffect(()=>{if(!l)return;const B=T.current;if(!B)return;const q=setTimeout(()=>{B.scrollLeft=B.scrollWidth},0);return()=>clearTimeout(q)},[l]),S.jsxRuntimeExports.jsx(T8,{headerRowClasses:`hfl-bg-Blue_gray-50 hfl-text-Indigo-500 hfl-text-1 hfl-border-t-0 ${a}`,tableRef:z,tableClassesToOverride:"hfl-border-0",tableMainDivClasses:"hfl-w-auto hfl-border",tableMainParentDivRef:T,columns:b,tableName:"Investigations",rows:p,displayNoDataFoundProps:{title:"No Investigation Available",description:"Please create a new investigation or refresh",onPageReload:c}})};exports.AllInvestigationsTable=Jw;