@object-ui/plugin-charts 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,85 @@
1
+ (function(xt,_){typeof exports=="object"&&typeof module<"u"?_(exports,require("react"),require("@object-ui/core"),require("@object-ui/components")):typeof define=="function"&&define.amd?define(["exports","react","@object-ui/core","@object-ui/components"],_):(xt=typeof globalThis<"u"?globalThis:xt||self,_(xt.ObjectUIPluginCharts={},xt.React,xt.ObjectUICore,xt.ObjectUIComponents))})(this,(function(xt,_,Hp,Vp){"use strict";function Y_(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const ft=Y_(_);var ta=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ra={exports:{}},Fn={};var Yp;function X_(){if(Yp)return Fn;Yp=1;var e=_,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function o(u,s,c){var l,f={},d=null,h=null;c!==void 0&&(d=""+c),s.key!==void 0&&(d=""+s.key),s.ref!==void 0&&(h=s.ref);for(l in s)n.call(s,l)&&!a.hasOwnProperty(l)&&(f[l]=s[l]);if(u&&u.defaultProps)for(l in s=u.defaultProps,s)f[l]===void 0&&(f[l]=s[l]);return{$$typeof:t,type:u,key:d,ref:h,props:f,_owner:i.current}}return Fn.Fragment=r,Fn.jsx=o,Fn.jsxs=o,Fn}var Wn={};var Xp;function Z_(){return Xp||(Xp=1,process.env.NODE_ENV!=="production"&&(function(){var e=_,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),u=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),m=Symbol.iterator,v="@@iterator";function p(E){if(E===null||typeof E!="object")return null;var W=m&&E[m]||E[v];return typeof W=="function"?W:null}var g=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function b(E){{for(var W=arguments.length,Z=new Array(W>1?W-1:0),se=1;se<W;se++)Z[se-1]=arguments[se];w("error",E,Z)}}function w(E,W,Z){{var se=g.ReactDebugCurrentFrame,Oe=se.getStackAddendum();Oe!==""&&(W+="%s",Z=Z.concat([Oe]));var Pe=Z.map(function(pe){return String(pe)});Pe.unshift("Warning: "+W),Function.prototype.apply.call(console[E],console,Pe)}}var O=!1,y=!1,x=!1,A=!1,S=!1,T;T=Symbol.for("react.module.reference");function M(E){return!!(typeof E=="string"||typeof E=="function"||E===n||E===a||S||E===i||E===c||E===l||A||E===h||O||y||x||typeof E=="object"&&E!==null&&(E.$$typeof===d||E.$$typeof===f||E.$$typeof===o||E.$$typeof===u||E.$$typeof===s||E.$$typeof===T||E.getModuleId!==void 0))}function P(E,W,Z){var se=E.displayName;if(se)return se;var Oe=W.displayName||W.name||"";return Oe!==""?Z+"("+Oe+")":Z}function j(E){return E.displayName||"Context"}function C(E){if(E==null)return null;if(typeof E.tag=="number"&&b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof E=="function")return E.displayName||E.name||null;if(typeof E=="string")return E;switch(E){case n:return"Fragment";case r:return"Portal";case a:return"Profiler";case i:return"StrictMode";case c:return"Suspense";case l:return"SuspenseList"}if(typeof E=="object")switch(E.$$typeof){case u:var W=E;return j(W)+".Consumer";case o:var Z=E;return j(Z._context)+".Provider";case s:return P(E,E.render,"ForwardRef");case f:var se=E.displayName||null;return se!==null?se:C(E.type)||"Memo";case d:{var Oe=E,Pe=Oe._payload,pe=Oe._init;try{return C(pe(Pe))}catch{return null}}}return null}var I=Object.assign,k=0,N,q,U,G,D,L,B;function H(){}H.__reactDisabledLog=!0;function Y(){{if(k===0){N=console.log,q=console.info,U=console.warn,G=console.error,D=console.group,L=console.groupCollapsed,B=console.groupEnd;var E={configurable:!0,enumerable:!0,value:H,writable:!0};Object.defineProperties(console,{info:E,log:E,warn:E,error:E,group:E,groupCollapsed:E,groupEnd:E})}k++}}function te(){{if(k--,k===0){var E={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:I({},E,{value:N}),info:I({},E,{value:q}),warn:I({},E,{value:U}),error:I({},E,{value:G}),group:I({},E,{value:D}),groupCollapsed:I({},E,{value:L}),groupEnd:I({},E,{value:B})})}k<0&&b("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var re=g.ReactCurrentDispatcher,oe;function ne(E,W,Z){{if(oe===void 0)try{throw Error()}catch(Oe){var se=Oe.stack.trim().match(/\n( *(at )?)/);oe=se&&se[1]||""}return`
2
+ `+oe+E}}var F=!1,V;{var ee=typeof WeakMap=="function"?WeakMap:Map;V=new ee}function $(E,W){if(!E||F)return"";{var Z=V.get(E);if(Z!==void 0)return Z}var se;F=!0;var Oe=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Pe;Pe=re.current,re.current=null,Y();try{if(W){var pe=function(){throw Error()};if(Object.defineProperty(pe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(pe,[])}catch(nt){se=nt}Reflect.construct(E,[],pe)}else{try{pe.call()}catch(nt){se=nt}E.call(pe.prototype)}}else{try{throw Error()}catch(nt){se=nt}E()}}catch(nt){if(nt&&se&&typeof nt.stack=="string"){for(var de=nt.stack.split(`
3
+ `),Qe=se.stack.split(`
4
+ `),ke=de.length-1,Le=Qe.length-1;ke>=1&&Le>=0&&de[ke]!==Qe[Le];)Le--;for(;ke>=1&&Le>=0;ke--,Le--)if(de[ke]!==Qe[Le]){if(ke!==1||Le!==1)do if(ke--,Le--,Le<0||de[ke]!==Qe[Le]){var bt=`
5
+ `+de[ke].replace(" at new "," at ");return E.displayName&&bt.includes("<anonymous>")&&(bt=bt.replace("<anonymous>",E.displayName)),typeof E=="function"&&V.set(E,bt),bt}while(ke>=1&&Le>=0);break}}}finally{F=!1,re.current=Pe,te(),Error.prepareStackTrace=Oe}var Bn=E?E.displayName||E.name:"",Fr=Bn?ne(Bn):"";return typeof E=="function"&&V.set(E,Fr),Fr}function fe(E,W,Z){return $(E,!1)}function K(E){var W=E.prototype;return!!(W&&W.isReactComponent)}function ve(E,W,Z){if(E==null)return"";if(typeof E=="function")return $(E,K(E));if(typeof E=="string")return ne(E);switch(E){case c:return ne("Suspense");case l:return ne("SuspenseList")}if(typeof E=="object")switch(E.$$typeof){case s:return fe(E.render);case f:return ve(E.type,W,Z);case d:{var se=E,Oe=se._payload,Pe=se._init;try{return ve(Pe(Oe),W,Z)}catch{}}}return""}var we=Object.prototype.hasOwnProperty,Re={},jt=g.ReactDebugCurrentFrame;function Ct(E){if(E){var W=E._owner,Z=ve(E.type,E._source,W?W.type:null);jt.setExtraStackFrame(Z)}else jt.setExtraStackFrame(null)}function Rn(E,W,Z,se,Oe){{var Pe=Function.call.bind(we);for(var pe in E)if(Pe(E,pe)){var de=void 0;try{if(typeof E[pe]!="function"){var Qe=Error((se||"React class")+": "+Z+" type `"+pe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof E[pe]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Qe.name="Invariant Violation",Qe}de=E[pe](W,pe,se,Z,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(ke){de=ke}de&&!(de instanceof Error)&&(Ct(Oe),b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",se||"React class",Z,pe,typeof de),Ct(null)),de instanceof Error&&!(de.message in Re)&&(Re[de.message]=!0,Ct(Oe),b("Failed %s type: %s",Z,de.message),Ct(null))}}}var er=Array.isArray;function lt(E){return er(E)}function Zi(E){{var W=typeof Symbol=="function"&&Symbol.toStringTag,Z=W&&E[Symbol.toStringTag]||E.constructor.name||"Object";return Z}}function Ji(E){try{return Ln(E),!1}catch{return!0}}function Ln(E){return""+E}function Qi(E){if(Ji(E))return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Zi(E)),Ln(E)}var ea=g.ReactCurrentOwner,uB={key:!0,ref:!0,__self:!0,__source:!0},B_,F_;function sB(E){if(we.call(E,"ref")){var W=Object.getOwnPropertyDescriptor(E,"ref").get;if(W&&W.isReactWarning)return!1}return E.ref!==void 0}function cB(E){if(we.call(E,"key")){var W=Object.getOwnPropertyDescriptor(E,"key").get;if(W&&W.isReactWarning)return!1}return E.key!==void 0}function lB(E,W){typeof E.ref=="string"&&ea.current}function fB(E,W){{var Z=function(){B_||(B_=!0,b("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",W))};Z.isReactWarning=!0,Object.defineProperty(E,"key",{get:Z,configurable:!0})}}function dB(E,W){{var Z=function(){F_||(F_=!0,b("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",W))};Z.isReactWarning=!0,Object.defineProperty(E,"ref",{get:Z,configurable:!0})}}var pB=function(E,W,Z,se,Oe,Pe,pe){var de={$$typeof:t,type:E,key:W,ref:Z,props:pe,_owner:Pe};return de._store={},Object.defineProperty(de._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(de,"_self",{configurable:!1,enumerable:!1,writable:!1,value:se}),Object.defineProperty(de,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Oe}),Object.freeze&&(Object.freeze(de.props),Object.freeze(de)),de};function hB(E,W,Z,se,Oe){{var Pe,pe={},de=null,Qe=null;Z!==void 0&&(Qi(Z),de=""+Z),cB(W)&&(Qi(W.key),de=""+W.key),sB(W)&&(Qe=W.ref,lB(W,Oe));for(Pe in W)we.call(W,Pe)&&!uB.hasOwnProperty(Pe)&&(pe[Pe]=W[Pe]);if(E&&E.defaultProps){var ke=E.defaultProps;for(Pe in ke)pe[Pe]===void 0&&(pe[Pe]=ke[Pe])}if(de||Qe){var Le=typeof E=="function"?E.displayName||E.name||"Unknown":E;de&&fB(pe,Le),Qe&&dB(pe,Le)}return pB(E,de,Qe,Oe,se,ea.current,pe)}}var zp=g.ReactCurrentOwner,W_=g.ReactDebugCurrentFrame;function qn(E){if(E){var W=E._owner,Z=ve(E.type,E._source,W?W.type:null);W_.setExtraStackFrame(Z)}else W_.setExtraStackFrame(null)}var Up;Up=!1;function Kp(E){return typeof E=="object"&&E!==null&&E.$$typeof===t}function z_(){{if(zp.current){var E=C(zp.current.type);if(E)return`
6
+
7
+ Check the render method of \``+E+"`."}return""}}function vB(E){return""}var U_={};function yB(E){{var W=z_();if(!W){var Z=typeof E=="string"?E:E.displayName||E.name;Z&&(W=`
8
+
9
+ Check the top-level render call using <`+Z+">.")}return W}}function K_(E,W){{if(!E._store||E._store.validated||E.key!=null)return;E._store.validated=!0;var Z=yB(W);if(U_[Z])return;U_[Z]=!0;var se="";E&&E._owner&&E._owner!==zp.current&&(se=" It was passed a child from "+C(E._owner.type)+"."),qn(E),b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',Z,se),qn(null)}}function G_(E,W){{if(typeof E!="object")return;if(lt(E))for(var Z=0;Z<E.length;Z++){var se=E[Z];Kp(se)&&K_(se,W)}else if(Kp(E))E._store&&(E._store.validated=!0);else if(E){var Oe=p(E);if(typeof Oe=="function"&&Oe!==E.entries)for(var Pe=Oe.call(E),pe;!(pe=Pe.next()).done;)Kp(pe.value)&&K_(pe.value,W)}}}function mB(E){{var W=E.type;if(W==null||typeof W=="string")return;var Z;if(typeof W=="function")Z=W.propTypes;else if(typeof W=="object"&&(W.$$typeof===s||W.$$typeof===f))Z=W.propTypes;else return;if(Z){var se=C(W);Rn(Z,E.props,"prop",se,E)}else if(W.PropTypes!==void 0&&!Up){Up=!0;var Oe=C(W);b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Oe||"Unknown")}typeof W.getDefaultProps=="function"&&!W.getDefaultProps.isReactClassApproved&&b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function gB(E){{for(var W=Object.keys(E.props),Z=0;Z<W.length;Z++){var se=W[Z];if(se!=="children"&&se!=="key"){qn(E),b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",se),qn(null);break}}E.ref!==null&&(qn(E),b("Invalid attribute `ref` supplied to `React.Fragment`."),qn(null))}}var H_={};function V_(E,W,Z,se,Oe,Pe){{var pe=M(E);if(!pe){var de="";(E===void 0||typeof E=="object"&&E!==null&&Object.keys(E).length===0)&&(de+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Qe=vB();Qe?de+=Qe:de+=z_();var ke;E===null?ke="null":lt(E)?ke="array":E!==void 0&&E.$$typeof===t?(ke="<"+(C(E.type)||"Unknown")+" />",de=" Did you accidentally export a JSX literal instead of a component?"):ke=typeof E,b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",ke,de)}var Le=hB(E,W,Z,Oe,Pe);if(Le==null)return Le;if(pe){var bt=W.children;if(bt!==void 0)if(se)if(lt(bt)){for(var Bn=0;Bn<bt.length;Bn++)G_(bt[Bn],E);Object.freeze&&Object.freeze(bt)}else b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else G_(bt,E)}if(we.call(W,"key")){var Fr=C(E),nt=Object.keys(W).filter(function(AB){return AB!=="key"}),Gp=nt.length>0?"{key: someKey, "+nt.join(": ..., ")+": ...}":"{key: someKey}";if(!H_[Fr+Gp]){var _B=nt.length>0?"{"+nt.join(": ..., ")+": ...}":"{}";b(`A props object containing a "key" prop is being spread into JSX:
10
+ let props = %s;
11
+ <%s {...props} />
12
+ React keys must be passed directly to JSX without using spread:
13
+ let props = %s;
14
+ <%s key={someKey} {...props} />`,Gp,Fr,_B,Fr),H_[Fr+Gp]=!0}}return E===n?gB(Le):mB(Le),Le}}function bB(E,W,Z){return V_(E,W,Z,!0)}function xB(E,W,Z){return V_(E,W,Z,!1)}var wB=xB,OB=bB;Wn.Fragment=n,Wn.jsx=wB,Wn.jsxs=OB})()),Wn}var Zp;function J_(){return Zp||(Zp=1,process.env.NODE_ENV==="production"?ra.exports=X_():ra.exports=Z_()),ra.exports}var X=J_();const Q_=_.lazy(()=>Promise.resolve().then(()=>eB)),eA=_.lazy(()=>Promise.resolve().then(()=>oB)),au=({schema:e})=>X.jsx(_.Suspense,{fallback:X.jsx(Vp.Skeleton,{className:"w-full h-[400px]"}),children:X.jsx(Q_,{data:e.data,dataKey:e.dataKey,xAxisKey:e.xAxisKey,height:e.height,className:e.className,color:e.color})});Hp.ComponentRegistry.register("chart-bar",au,{label:"Bar Chart",category:"plugin",inputs:[{name:"data",type:"array",label:"Data",required:!0},{name:"dataKey",type:"string",label:"Data Key",defaultValue:"value"},{name:"xAxisKey",type:"string",label:"X-Axis Key",defaultValue:"name"},{name:"height",type:"number",label:"Height",defaultValue:400},{name:"color",type:"color",label:"Color",defaultValue:"#8884d8"}],defaultProps:{data:[{name:"Jan",value:400},{name:"Feb",value:300},{name:"Mar",value:600},{name:"Apr",value:800},{name:"May",value:500}],dataKey:"value",xAxisKey:"name",height:400,color:"#8884d8"}});const ou=({schema:e})=>{const t=_.useMemo(()=>{let r=e.series,n=e.xAxisKey,i=e.config;if(n||(e.index?n=e.index:e.category&&(n=e.category)),r||(e.categories?r=e.categories.map(a=>({dataKey:a})):e.value&&(r=[{dataKey:e.value}])),!i&&r){const a=e.colors||["hsl(var(--chart-1))","hsl(var(--chart-2))","hsl(var(--chart-3))"];i={},r.forEach((o,u)=>{i[o.dataKey]={label:o.dataKey,color:a[u%a.length]}})}return{chartType:e.chartType,data:e.data,config:i,xAxisKey:n,series:r,className:e.className}},[e]);return X.jsx(_.Suspense,{fallback:X.jsx(Vp.Skeleton,{className:"w-full h-[400px]"}),children:X.jsx(eA,{chartType:t.chartType,data:t.data,config:t.config,xAxisKey:t.xAxisKey,series:t.series,className:t.className})})};Hp.ComponentRegistry.register("chart",ou,{label:"Chart",category:"plugin",inputs:[{name:"chartType",type:"enum",label:"Chart Type",enum:[{label:"Bar",value:"bar"},{label:"Line",value:"line"},{label:"Area",value:"area"}],defaultValue:"bar"},{name:"data",type:"code",label:"Data (JSON)",required:!0},{name:"config",type:"code",label:"Config (JSON)"},{name:"xAxisKey",type:"string",label:"X Axis Key",defaultValue:"name"},{name:"series",type:"code",label:"Series (JSON Array)",required:!0},{name:"className",type:"string",label:"CSS Class"}],defaultProps:{chartType:"bar",data:[{name:"Jan",sales:400,revenue:240},{name:"Feb",sales:300,revenue:139},{name:"Mar",sales:600,revenue:380},{name:"Apr",sales:800,revenue:430},{name:"May",sales:500,revenue:220}],config:{sales:{label:"Sales",color:"#8884d8"},revenue:{label:"Revenue",color:"#82ca9d"}},xAxisKey:"name",series:[{dataKey:"sales"},{dataKey:"revenue"}]}});const tA={"chart-bar":au,chart:ou};function Jp(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=Jp(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function ce(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=Jp(e))&&(n&&(n+=" "),n+=t);return n}var uu,Qp;function et(){if(Qp)return uu;Qp=1;var e=Array.isArray;return uu=e,uu}var su,eh;function th(){if(eh)return su;eh=1;var e=typeof ta=="object"&&ta&&ta.Object===Object&&ta;return su=e,su}var cu,rh;function $t(){if(rh)return cu;rh=1;var e=th(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return cu=r,cu}var lu,nh;function zn(){if(nh)return lu;nh=1;var e=$t(),t=e.Symbol;return lu=t,lu}var fu,ih;function rA(){if(ih)return fu;ih=1;var e=zn(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,i=e?e.toStringTag:void 0;function a(o){var u=r.call(o,i),s=o[i];try{o[i]=void 0;var c=!0}catch{}var l=n.call(o);return c&&(u?o[i]=s:delete o[i]),l}return fu=a,fu}var du,ah;function nA(){if(ah)return du;ah=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return du=r,du}var pu,oh;function qt(){if(oh)return pu;oh=1;var e=zn(),t=rA(),r=nA(),n="[object Null]",i="[object Undefined]",a=e?e.toStringTag:void 0;function o(u){return u==null?u===void 0?i:n:a&&a in Object(u)?t(u):r(u)}return pu=o,pu}var hu,uh;function Bt(){if(uh)return hu;uh=1;function e(t){return t!=null&&typeof t=="object"}return hu=e,hu}var vu,sh;function Wr(){if(sh)return vu;sh=1;var e=qt(),t=Bt(),r="[object Symbol]";function n(i){return typeof i=="symbol"||t(i)&&e(i)==r}return vu=n,vu}var yu,ch;function mu(){if(ch)return yu;ch=1;var e=et(),t=Wr(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function i(a,o){if(e(a))return!1;var u=typeof a;return u=="number"||u=="symbol"||u=="boolean"||a==null||t(a)?!0:n.test(a)||!r.test(a)||o!=null&&a in Object(o)}return yu=i,yu}var gu,lh;function tr(){if(lh)return gu;lh=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return gu=e,gu}var bu,fh;function xu(){if(fh)return bu;fh=1;var e=qt(),t=tr(),r="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",a="[object Proxy]";function o(u){if(!t(u))return!1;var s=e(u);return s==n||s==i||s==r||s==a}return bu=o,bu}var wu,dh;function iA(){if(dh)return wu;dh=1;var e=$t(),t=e["__core-js_shared__"];return wu=t,wu}var Ou,ph;function aA(){if(ph)return Ou;ph=1;var e=iA(),t=(function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function r(n){return!!t&&t in n}return Ou=r,Ou}var _u,hh;function vh(){if(hh)return _u;hh=1;var e=Function.prototype,t=e.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return _u=r,_u}var Au,yh;function oA(){if(yh)return Au;yh=1;var e=xu(),t=aA(),r=tr(),n=vh(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,o=Function.prototype,u=Object.prototype,s=o.toString,c=u.hasOwnProperty,l=RegExp("^"+s.call(c).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function f(d){if(!r(d)||t(d))return!1;var h=e(d)?l:a;return h.test(n(d))}return Au=f,Au}var Su,mh;function uA(){if(mh)return Su;mh=1;function e(t,r){return t?.[r]}return Su=e,Su}var Pu,gh;function vr(){if(gh)return Pu;gh=1;var e=oA(),t=uA();function r(n,i){var a=t(n,i);return e(a)?a:void 0}return Pu=r,Pu}var Eu,bh;function na(){if(bh)return Eu;bh=1;var e=vr(),t=e(Object,"create");return Eu=t,Eu}var Tu,xh;function sA(){if(xh)return Tu;xh=1;var e=na();function t(){this.__data__=e?e(null):{},this.size=0}return Tu=t,Tu}var ju,wh;function cA(){if(wh)return ju;wh=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return ju=e,ju}var Cu,Oh;function lA(){if(Oh)return Cu;Oh=1;var e=na(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function i(a){var o=this.__data__;if(e){var u=o[a];return u===t?void 0:u}return n.call(o,a)?o[a]:void 0}return Cu=i,Cu}var $u,_h;function fA(){if(_h)return $u;_h=1;var e=na(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var a=this.__data__;return e?a[i]!==void 0:r.call(a,i)}return $u=n,$u}var Mu,Ah;function dA(){if(Ah)return Mu;Ah=1;var e=na(),t="__lodash_hash_undefined__";function r(n,i){var a=this.__data__;return this.size+=this.has(n)?0:1,a[n]=e&&i===void 0?t:i,this}return Mu=r,Mu}var Iu,Sh;function pA(){if(Sh)return Iu;Sh=1;var e=sA(),t=cA(),r=lA(),n=fA(),i=dA();function a(o){var u=-1,s=o==null?0:o.length;for(this.clear();++u<s;){var c=o[u];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Iu=a,Iu}var ku,Ph;function hA(){if(Ph)return ku;Ph=1;function e(){this.__data__=[],this.size=0}return ku=e,ku}var Du,Eh;function Nu(){if(Eh)return Du;Eh=1;function e(t,r){return t===r||t!==t&&r!==r}return Du=e,Du}var Ru,Th;function ia(){if(Th)return Ru;Th=1;var e=Nu();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return Ru=t,Ru}var Lu,jh;function vA(){if(jh)return Lu;jh=1;var e=ia(),t=Array.prototype,r=t.splice;function n(i){var a=this.__data__,o=e(a,i);if(o<0)return!1;var u=a.length-1;return o==u?a.pop():r.call(a,o,1),--this.size,!0}return Lu=n,Lu}var qu,Ch;function yA(){if(Ch)return qu;Ch=1;var e=ia();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return qu=t,qu}var Bu,$h;function mA(){if($h)return Bu;$h=1;var e=ia();function t(r){return e(this.__data__,r)>-1}return Bu=t,Bu}var Fu,Mh;function gA(){if(Mh)return Fu;Mh=1;var e=ia();function t(r,n){var i=this.__data__,a=e(i,r);return a<0?(++this.size,i.push([r,n])):i[a][1]=n,this}return Fu=t,Fu}var Wu,Ih;function aa(){if(Ih)return Wu;Ih=1;var e=hA(),t=vA(),r=yA(),n=mA(),i=gA();function a(o){var u=-1,s=o==null?0:o.length;for(this.clear();++u<s;){var c=o[u];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Wu=a,Wu}var zu,kh;function Uu(){if(kh)return zu;kh=1;var e=vr(),t=$t(),r=e(t,"Map");return zu=r,zu}var Ku,Dh;function bA(){if(Dh)return Ku;Dh=1;var e=pA(),t=aa(),r=Uu();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return Ku=n,Ku}var Gu,Nh;function xA(){if(Nh)return Gu;Nh=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return Gu=e,Gu}var Hu,Rh;function oa(){if(Rh)return Hu;Rh=1;var e=xA();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return Hu=t,Hu}var Vu,Lh;function wA(){if(Lh)return Vu;Lh=1;var e=oa();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return Vu=t,Vu}var Yu,qh;function OA(){if(qh)return Yu;qh=1;var e=oa();function t(r){return e(this,r).get(r)}return Yu=t,Yu}var Xu,Bh;function _A(){if(Bh)return Xu;Bh=1;var e=oa();function t(r){return e(this,r).has(r)}return Xu=t,Xu}var Zu,Fh;function AA(){if(Fh)return Zu;Fh=1;var e=oa();function t(r,n){var i=e(this,r),a=i.size;return i.set(r,n),this.size+=i.size==a?0:1,this}return Zu=t,Zu}var Ju,Wh;function Qu(){if(Wh)return Ju;Wh=1;var e=bA(),t=wA(),r=OA(),n=_A(),i=AA();function a(o){var u=-1,s=o==null?0:o.length;for(this.clear();++u<s;){var c=o[u];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Ju=a,Ju}var es,zh;function Uh(){if(zh)return es;zh=1;var e=Qu(),t="Expected a function";function r(n,i){if(typeof n!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var a=function(){var o=arguments,u=i?i.apply(this,o):o[0],s=a.cache;if(s.has(u))return s.get(u);var c=n.apply(this,o);return a.cache=s.set(u,c)||s,c};return a.cache=new(r.Cache||e),a}return r.Cache=e,es=r,es}var ts,Kh;function SA(){if(Kh)return ts;Kh=1;var e=Uh(),t=500;function r(n){var i=e(n,function(o){return a.size===t&&a.clear(),o}),a=i.cache;return i}return ts=r,ts}var rs,Gh;function PA(){if(Gh)return rs;Gh=1;var e=SA(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=e(function(i){var a=[];return i.charCodeAt(0)===46&&a.push(""),i.replace(t,function(o,u,s,c){a.push(s?c.replace(r,"$1"):u||o)}),a});return rs=n,rs}var ns,Hh;function is(){if(Hh)return ns;Hh=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=Array(i);++n<i;)a[n]=r(t[n],n,t);return a}return ns=e,ns}var as,Vh;function EA(){if(Vh)return as;Vh=1;var e=zn(),t=is(),r=et(),n=Wr(),i=e?e.prototype:void 0,a=i?i.toString:void 0;function o(u){if(typeof u=="string")return u;if(r(u))return t(u,o)+"";if(n(u))return a?a.call(u):"";var s=u+"";return s=="0"&&1/u==-1/0?"-0":s}return as=o,as}var os,Yh;function Xh(){if(Yh)return os;Yh=1;var e=EA();function t(r){return r==null?"":e(r)}return os=t,os}var us,Zh;function Jh(){if(Zh)return us;Zh=1;var e=et(),t=mu(),r=PA(),n=Xh();function i(a,o){return e(a)?a:t(a,o)?[a]:r(n(a))}return us=i,us}var ss,Qh;function ua(){if(Qh)return ss;Qh=1;var e=Wr();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return ss=t,ss}var cs,ev;function ls(){if(ev)return cs;ev=1;var e=Jh(),t=ua();function r(n,i){i=e(i,n);for(var a=0,o=i.length;n!=null&&a<o;)n=n[t(i[a++])];return a&&a==o?n:void 0}return cs=r,cs}var fs,tv;function rv(){if(tv)return fs;tv=1;var e=ls();function t(r,n,i){var a=r==null?void 0:e(r,n);return a===void 0?i:a}return fs=t,fs}var TA=rv();const it=_e(TA);var ds,nv;function jA(){if(nv)return ds;nv=1;function e(t){return t==null}return ds=e,ds}var CA=jA();const ue=_e(CA);var ps,iv;function $A(){if(iv)return ps;iv=1;var e=qt(),t=et(),r=Bt(),n="[object String]";function i(a){return typeof a=="string"||!t(a)&&r(a)&&e(a)==n}return ps=i,ps}var MA=$A();const yr=_e(MA);var IA=xu();const ie=_e(IA);var kA=tr();const zr=_e(kA);var sa={exports:{}},ye={};var av;function DA(){if(av)return ye;av=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),u=Symbol.for("react.server_context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),m;m=Symbol.for("react.module.reference");function v(p){if(typeof p=="object"&&p!==null){var g=p.$$typeof;switch(g){case e:switch(p=p.type,p){case r:case i:case n:case c:case l:return p;default:switch(p=p&&p.$$typeof,p){case u:case o:case s:case d:case f:case a:return p;default:return g}}case t:return g}}}return ye.ContextConsumer=o,ye.ContextProvider=a,ye.Element=e,ye.ForwardRef=s,ye.Fragment=r,ye.Lazy=d,ye.Memo=f,ye.Portal=t,ye.Profiler=i,ye.StrictMode=n,ye.Suspense=c,ye.SuspenseList=l,ye.isAsyncMode=function(){return!1},ye.isConcurrentMode=function(){return!1},ye.isContextConsumer=function(p){return v(p)===o},ye.isContextProvider=function(p){return v(p)===a},ye.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===e},ye.isForwardRef=function(p){return v(p)===s},ye.isFragment=function(p){return v(p)===r},ye.isLazy=function(p){return v(p)===d},ye.isMemo=function(p){return v(p)===f},ye.isPortal=function(p){return v(p)===t},ye.isProfiler=function(p){return v(p)===i},ye.isStrictMode=function(p){return v(p)===n},ye.isSuspense=function(p){return v(p)===c},ye.isSuspenseList=function(p){return v(p)===l},ye.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===r||p===i||p===n||p===c||p===l||p===h||typeof p=="object"&&p!==null&&(p.$$typeof===d||p.$$typeof===f||p.$$typeof===a||p.$$typeof===o||p.$$typeof===s||p.$$typeof===m||p.getModuleId!==void 0)},ye.typeOf=v,ye}var me={};var ov;function NA(){return ov||(ov=1,process.env.NODE_ENV!=="production"&&(function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),u=Symbol.for("react.server_context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),m=!1,v=!1,p=!1,g=!1,b=!1,w;w=Symbol.for("react.module.reference");function O(K){return!!(typeof K=="string"||typeof K=="function"||K===r||K===i||b||K===n||K===c||K===l||g||K===h||m||v||p||typeof K=="object"&&K!==null&&(K.$$typeof===d||K.$$typeof===f||K.$$typeof===a||K.$$typeof===o||K.$$typeof===s||K.$$typeof===w||K.getModuleId!==void 0))}function y(K){if(typeof K=="object"&&K!==null){var ve=K.$$typeof;switch(ve){case e:var we=K.type;switch(we){case r:case i:case n:case c:case l:return we;default:var Re=we&&we.$$typeof;switch(Re){case u:case o:case s:case d:case f:case a:return Re;default:return ve}}case t:return ve}}}var x=o,A=a,S=e,T=s,M=r,P=d,j=f,C=t,I=i,k=n,N=c,q=l,U=!1,G=!1;function D(K){return U||(U=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function L(K){return G||(G=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function B(K){return y(K)===o}function H(K){return y(K)===a}function Y(K){return typeof K=="object"&&K!==null&&K.$$typeof===e}function te(K){return y(K)===s}function re(K){return y(K)===r}function oe(K){return y(K)===d}function ne(K){return y(K)===f}function F(K){return y(K)===t}function V(K){return y(K)===i}function ee(K){return y(K)===n}function $(K){return y(K)===c}function fe(K){return y(K)===l}me.ContextConsumer=x,me.ContextProvider=A,me.Element=S,me.ForwardRef=T,me.Fragment=M,me.Lazy=P,me.Memo=j,me.Portal=C,me.Profiler=I,me.StrictMode=k,me.Suspense=N,me.SuspenseList=q,me.isAsyncMode=D,me.isConcurrentMode=L,me.isContextConsumer=B,me.isContextProvider=H,me.isElement=Y,me.isForwardRef=te,me.isFragment=re,me.isLazy=oe,me.isMemo=ne,me.isPortal=F,me.isProfiler=V,me.isStrictMode=ee,me.isSuspense=$,me.isSuspenseList=fe,me.isValidElementType=O,me.typeOf=y})()),me}var uv;function RA(){return uv||(uv=1,process.env.NODE_ENV==="production"?sa.exports=DA():sa.exports=NA()),sa.exports}var LA=RA(),hs,sv;function cv(){if(sv)return hs;sv=1;var e=qt(),t=Bt(),r="[object Number]";function n(i){return typeof i=="number"||t(i)&&e(i)==r}return hs=n,hs}var vs,lv;function qA(){if(lv)return vs;lv=1;var e=cv();function t(r){return e(r)&&r!=+r}return vs=t,vs}var BA=qA();const Ur=_e(BA);var FA=cv();const WA=_e(FA);var Xe=function(t){return t===0?0:t>0?1:-1},mr=function(t){return yr(t)&&t.indexOf("%")===t.length-1},z=function(t){return WA(t)&&!Ur(t)},zA=function(t){return ue(t)},qe=function(t){return z(t)||yr(t)},UA=0,gr=function(t){var r=++UA;return"".concat(t||"").concat(r)},Ze=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!z(t)&&!yr(t))return n;var a;if(mr(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return Ur(a)&&(a=n),i&&a>r&&(a=r),a},rr=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},KA=function(t){if(!Array.isArray(t))return!1;for(var r=t.length,n={},i=0;i<r;i++)if(!n[t[i]])n[t[i]]=!0;else return!0;return!1},Be=function(t,r){return z(t)&&z(r)?function(n){return t+n*(r-t)}:function(){return r}};function ca(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):it(n,t))===r})}var GA=function(t,r){return z(t)&&z(r)?t-r:yr(t)&&yr(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function Kr(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 ys(e){"@babel/helpers - typeof";return ys=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ys(e)}var HA=["viewBox","children"],VA=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],fv=["points","pathLength"],ms={svg:HA,polygon:fv,polyline:fv},gs=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],la=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(_.isValidElement(t)&&(n=t.props),!zr(n))return null;var i={};return Object.keys(n).forEach(function(a){gs.includes(a)&&(i[a]=r||function(o){return n[a](n,o)})}),i},YA=function(t,r,n){return function(i){return t(r,n,i),null}},br=function(t,r,n){if(!zr(t)||ys(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];gs.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=YA(o,r,n))}),i},XA=["children"],ZA=["children"];function dv(e,t){if(e==null)return{};var r=JA(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function JA(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function bs(e){"@babel/helpers - typeof";return bs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bs(e)}var pv={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},Ft=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},hv=null,xs=null,ws=function e(t){if(t===hv&&Array.isArray(xs))return xs;var r=[];return _.Children.forEach(t,function(n){ue(n)||(LA.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),xs=r,hv=t,r};function at(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return Ft(i)}):n=[Ft(t)],ws(e).forEach(function(i){var a=it(i,"type.displayName")||it(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function ot(e,t){var r=at(e,t);return r&&r[0]}var vv=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!z(n)||n<=0||!z(i)||i<=0)},QA=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],eS=function(t){return t&&t.type&&yr(t.type)&&QA.indexOf(t.type)>=0},yv=function(t){return t&&bs(t)==="object"&&"clipDot"in t},tS=function(t,r,n,i){var a,o=(a=ms?.[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!ie(t)&&(i&&o.includes(r)||VA.includes(r))||n&&gs.includes(r)},Q=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(_.isValidElement(t)&&(i=t.props),!zr(i))return null;var a={};return Object.keys(i).forEach(function(o){var u;tS((u=i)===null||u===void 0?void 0:u[o],o,r,n)&&(a[o]=i[o])}),a},Os=function e(t,r){if(t===r)return!0;var n=_.Children.count(t);if(n!==_.Children.count(r))return!1;if(n===0)return!0;if(n===1)return mv(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var i=0;i<n;i++){var a=t[i],o=r[i];if(Array.isArray(a)||Array.isArray(o)){if(!e(a,o))return!1}else if(!mv(a,o))return!1}return!0},mv=function(t,r){if(ue(t)&&ue(r))return!0;if(!ue(t)&&!ue(r)){var n=t.props||{},i=n.children,a=dv(n,XA),o=r.props||{},u=o.children,s=dv(o,ZA);return i&&u?Kr(a,s)&&Os(i,u):!i&&!u?Kr(a,s):!1}return!1},gv=function(t,r){var n=[],i={};return ws(t).forEach(function(a,o){if(eS(a))n.push(a);else if(a){var u=Ft(a.type),s=r[u]||{},c=s.handler,l=s.once;if(c&&(!l||!i[u])){var f=c(a,u,o);n.push(f),i[u]=!0}}}),n},rS=function(t){var r=t&&t.type;return r&&pv[r]?pv[r]:null},nS=function(t,r){return ws(r).indexOf(t)},iS=["children","width","height","viewBox","className","style","title","desc"];function _s(){return _s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_s.apply(this,arguments)}function aS(e,t){if(e==null)return{};var r=oS(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function oS(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function As(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,a=e.className,o=e.style,u=e.title,s=e.desc,c=aS(e,iS),l=i||{width:r,height:n,x:0,y:0},f=ce("recharts-surface",a);return _.createElement("svg",_s({},Q(c,!0,"svg"),{className:f,width:r,height:n,style:o,viewBox:"".concat(l.x," ").concat(l.y," ").concat(l.width," ").concat(l.height)}),_.createElement("title",null,u),_.createElement("desc",null,s),t)}var uS=["children","className"];function Ss(){return Ss=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ss.apply(this,arguments)}function sS(e,t){if(e==null)return{};var r=cS(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function cS(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var le=_.forwardRef(function(e,t){var r=e.children,n=e.className,i=sS(e,uS),a=ce("recharts-layer",n);return _.createElement("g",Ss({className:a},Q(i,!0),{ref:t}),r)}),lS=process.env.NODE_ENV!=="production",wt=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(lS&&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,function(){return i[o++]}))}},Ps,bv;function fS(){if(bv)return Ps;bv=1;function e(t,r,n){var i=-1,a=t.length;r<0&&(r=-r>a?0:a+r),n=n>a?a:n,n<0&&(n+=a),a=r>n?0:n-r>>>0,r>>>=0;for(var o=Array(a);++i<a;)o[i]=t[i+r];return o}return Ps=e,Ps}var Es,xv;function dS(){if(xv)return Es;xv=1;var e=fS();function t(r,n,i){var a=r.length;return i=i===void 0?a:i,!n&&i>=a?r:e(r,n,i)}return Es=t,Es}var Ts,wv;function Ov(){if(wv)return Ts;wv=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="\\u200d",u=RegExp("["+o+e+i+a+"]");function s(c){return u.test(c)}return Ts=s,Ts}var js,_v;function pS(){if(_v)return js;_v=1;function e(t){return t.split("")}return js=e,js}var Cs,Av;function hS(){if(Av)return Cs;Av=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="["+e+"]",u="["+i+"]",s="\\ud83c[\\udffb-\\udfff]",c="(?:"+u+"|"+s+")",l="[^"+e+"]",f="(?:\\ud83c[\\udde6-\\uddff]){2}",d="[\\ud800-\\udbff][\\udc00-\\udfff]",h="\\u200d",m=c+"?",v="["+a+"]?",p="(?:"+h+"(?:"+[l,f,d].join("|")+")"+v+m+")*",g=v+m+p,b="(?:"+[l+u+"?",u,f,d,o].join("|")+")",w=RegExp(s+"(?="+s+")|"+b+g,"g");function O(y){return y.match(w)||[]}return Cs=O,Cs}var $s,Sv;function vS(){if(Sv)return $s;Sv=1;var e=pS(),t=Ov(),r=hS();function n(i){return t(i)?r(i):e(i)}return $s=n,$s}var Ms,Pv;function yS(){if(Pv)return Ms;Pv=1;var e=dS(),t=Ov(),r=vS(),n=Xh();function i(a){return function(o){o=n(o);var u=t(o)?r(o):void 0,s=u?u[0]:o.charAt(0),c=u?e(u,1).join(""):o.slice(1);return s[a]()+c}}return Ms=i,Ms}var Is,Ev;function mS(){if(Ev)return Is;Ev=1;var e=yS(),t=e("toUpperCase");return Is=t,Is}var gS=mS();const fa=_e(gS);function Ee(e){return function(){return e}}const Tv=Math.cos,da=Math.sin,Ot=Math.sqrt,pa=Math.PI,ha=2*pa,ks=Math.PI,Ds=2*ks,xr=1e-6,bS=Ds-xr;function jv(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function xS(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return jv;const r=10**t;return function(n){this._+=n[0];for(let i=1,a=n.length;i<a;++i)this._+=Math.round(arguments[i]*r)/r+n[i]}}class wS{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?jv:xS(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,i){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,r,n,i,a,o){this._append`C${+t},${+r},${+n},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,r,n,i,a){if(t=+t,r=+r,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,u=this._y1,s=n-t,c=i-r,l=o-t,f=u-r,d=l*l+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(d>xr)if(!(Math.abs(f*s-c*l)>xr)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let h=n-o,m=i-u,v=s*s+c*c,p=h*h+m*m,g=Math.sqrt(v),b=Math.sqrt(d),w=a*Math.tan((ks-Math.acos((v+d-p)/(2*g*b)))/2),O=w/b,y=w/g;Math.abs(O-1)>xr&&this._append`L${t+O*l},${r+O*f}`,this._append`A${a},${a},0,0,${+(f*h>l*m)},${this._x1=t+y*s},${this._y1=r+y*c}`}}arc(t,r,n,i,a,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let u=n*Math.cos(i),s=n*Math.sin(i),c=t+u,l=r+s,f=1^o,d=o?i-a:a-i;this._x1===null?this._append`M${c},${l}`:(Math.abs(this._x1-c)>xr||Math.abs(this._y1-l)>xr)&&this._append`L${c},${l}`,n&&(d<0&&(d=d%Ds+Ds),d>bS?this._append`A${n},${n},0,1,${f},${t-u},${r-s}A${n},${n},0,1,${f},${this._x1=c},${this._y1=l}`:d>xr&&this._append`A${n},${n},0,${+(d>=ks)},${f},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function Ns(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new wS(t)}function Rs(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Cv(e){this._context=e}Cv.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function va(e){return new Cv(e)}function $v(e){return e[0]}function Mv(e){return e[1]}function Iv(e,t){var r=Ee(!0),n=null,i=va,a=null,o=Ns(u);e=typeof e=="function"?e:e===void 0?$v:Ee(e),t=typeof t=="function"?t:t===void 0?Mv:Ee(t);function u(s){var c,l=(s=Rs(s)).length,f,d=!1,h;for(n==null&&(a=i(h=o())),c=0;c<=l;++c)!(c<l&&r(f=s[c],c,s))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(f,c,s),+t(f,c,s));if(h)return a=null,h+""||null}return u.x=function(s){return arguments.length?(e=typeof s=="function"?s:Ee(+s),u):e},u.y=function(s){return arguments.length?(t=typeof s=="function"?s:Ee(+s),u):t},u.defined=function(s){return arguments.length?(r=typeof s=="function"?s:Ee(!!s),u):r},u.curve=function(s){return arguments.length?(i=s,n!=null&&(a=i(n)),u):i},u.context=function(s){return arguments.length?(s==null?n=a=null:a=i(n=s),u):n},u}function ya(e,t,r){var n=null,i=Ee(!0),a=null,o=va,u=null,s=Ns(c);e=typeof e=="function"?e:e===void 0?$v:Ee(+e),t=typeof t=="function"?t:Ee(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?Mv:Ee(+r);function c(f){var d,h,m,v=(f=Rs(f)).length,p,g=!1,b,w=new Array(v),O=new Array(v);for(a==null&&(u=o(b=s())),d=0;d<=v;++d){if(!(d<v&&i(p=f[d],d,f))===g)if(g=!g)h=d,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),m=d-1;m>=h;--m)u.point(w[m],O[m]);u.lineEnd(),u.areaEnd()}g&&(w[d]=+e(p,d,f),O[d]=+t(p,d,f),u.point(n?+n(p,d,f):w[d],r?+r(p,d,f):O[d]))}if(b)return u=null,b+""||null}function l(){return Iv().defined(i).curve(o).context(a)}return c.x=function(f){return arguments.length?(e=typeof f=="function"?f:Ee(+f),n=null,c):e},c.x0=function(f){return arguments.length?(e=typeof f=="function"?f:Ee(+f),c):e},c.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:Ee(+f),c):n},c.y=function(f){return arguments.length?(t=typeof f=="function"?f:Ee(+f),r=null,c):t},c.y0=function(f){return arguments.length?(t=typeof f=="function"?f:Ee(+f),c):t},c.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:Ee(+f),c):r},c.lineX0=c.lineY0=function(){return l().x(e).y(t)},c.lineY1=function(){return l().x(e).y(r)},c.lineX1=function(){return l().x(n).y(t)},c.defined=function(f){return arguments.length?(i=typeof f=="function"?f:Ee(!!f),c):i},c.curve=function(f){return arguments.length?(o=f,a!=null&&(u=o(a)),c):o},c.context=function(f){return arguments.length?(f==null?a=u=null:u=o(a=f),c):a},c}class kv{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function OS(e){return new kv(e,!0)}function _S(e){return new kv(e,!1)}const Ls={draw(e,t){const r=Ot(t/pa);e.moveTo(r,0),e.arc(0,0,r,0,ha)}},AS={draw(e,t){const r=Ot(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},Dv=Ot(1/3),SS=Dv*2,PS={draw(e,t){const r=Ot(t/SS),n=r*Dv;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},ES={draw(e,t){const r=Ot(t),n=-r/2;e.rect(n,n,r,r)}},TS=.8908130915292852,Nv=da(pa/10)/da(7*pa/10),jS=da(ha/10)*Nv,CS=-Tv(ha/10)*Nv,$S={draw(e,t){const r=Ot(t*TS),n=jS*r,i=CS*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=ha*a/5,u=Tv(o),s=da(o);e.lineTo(s*r,-u*r),e.lineTo(u*n-s*i,s*n+u*i)}e.closePath()}},qs=Ot(3),MS={draw(e,t){const r=-Ot(t/(qs*3));e.moveTo(0,r*2),e.lineTo(-qs*r,-r),e.lineTo(qs*r,-r),e.closePath()}},dt=-.5,pt=Ot(3)/2,Bs=1/Ot(12),IS=(Bs/2+1)*3,kS={draw(e,t){const r=Ot(t/IS),n=r/2,i=r*Bs,a=n,o=r*Bs+r,u=-a,s=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(u,s),e.lineTo(dt*n-pt*i,pt*n+dt*i),e.lineTo(dt*a-pt*o,pt*a+dt*o),e.lineTo(dt*u-pt*s,pt*u+dt*s),e.lineTo(dt*n+pt*i,dt*i-pt*n),e.lineTo(dt*a+pt*o,dt*o-pt*a),e.lineTo(dt*u+pt*s,dt*s-pt*u),e.closePath()}};function DS(e,t){let r=null,n=Ns(i);e=typeof e=="function"?e:Ee(e||Ls),t=typeof t=="function"?t:Ee(t===void 0?64:+t);function i(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:Ee(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:Ee(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function ma(){}function ga(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function Rv(e){this._context=e}Rv.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:ga(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:ga(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function NS(e){return new Rv(e)}function Lv(e){this._context=e}Lv.prototype={areaStart:ma,areaEnd:ma,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:ga(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function RS(e){return new Lv(e)}function qv(e){this._context=e}qv.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:ga(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function LS(e){return new qv(e)}function Bv(e){this._context=e}Bv.prototype={areaStart:ma,areaEnd:ma,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function qS(e){return new Bv(e)}function Fv(e){return e<0?-1:1}function Wv(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),o=(r-e._y1)/(i||n<0&&-0),u=(a*i+o*n)/(n+i);return(Fv(a)+Fv(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(u))||0}function zv(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Fs(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,u=(a-n)/3;e._context.bezierCurveTo(n+u,i+u*t,a-u,o-u*r,a,o)}function ba(e){this._context=e}ba.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Fs(this,this._t0,zv(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Fs(this,zv(this,r=Wv(this,e,t)),r);break;default:Fs(this,this._t0,r=Wv(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function Uv(e){this._context=new Kv(e)}(Uv.prototype=Object.create(ba.prototype)).point=function(e,t){ba.prototype.point.call(this,t,e)};function Kv(e){this._context=e}Kv.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,i,a){this._context.bezierCurveTo(t,e,n,r,a,i)}};function BS(e){return new ba(e)}function FS(e){return new Uv(e)}function Gv(e){this._context=e}Gv.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=Hv(e),i=Hv(t),a=0,o=1;o<r;++a,++o)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function Hv(e){var t,r=e.length-1,n,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,a[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/a[t-1],a[t]-=n,o[t]-=n*o[t-1];for(i[r-1]=o[r-1]/a[r-1],t=r-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function WS(e){return new Gv(e)}function xa(e,t){this._context=e,this._t=t}xa.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function zS(e){return new xa(e,.5)}function US(e){return new xa(e,0)}function KS(e){return new xa(e,1)}function Gr(e,t){if((o=e.length)>1)for(var r=1,n,i,a=e[t[0]],o,u=a.length;r<o;++r)for(i=a,a=e[t[r]],n=0;n<u;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function Ws(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function GS(e,t){return e[t]}function HS(e){const t=[];return t.key=e,t}function VS(){var e=Ee([]),t=Ws,r=Gr,n=GS;function i(a){var o=Array.from(e.apply(this,arguments),HS),u,s=o.length,c=-1,l;for(const f of a)for(u=0,++c;u<s;++u)(o[u][c]=[0,+n(f,o[u].key,c,a)]).data=f;for(u=0,l=Rs(t(o));u<s;++u)o[l[u]].index=u;return r(o,l),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:Ee(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:Ee(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?Ws:typeof a=="function"?a:Ee(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??Gr,i):r},i}function YS(e,t){if((n=e.length)>0){for(var r,n,i=0,a=e[0].length,o;i<a;++i){for(o=r=0;r<n;++r)o+=e[r][i][1]||0;if(o)for(r=0;r<n;++r)e[r][i][1]/=o}Gr(e,t)}}function XS(e,t){if((i=e.length)>0){for(var r=0,n=e[t[0]],i,a=n.length;r<a;++r){for(var o=0,u=0;o<i;++o)u+=e[o][r][1]||0;n[r][1]+=n[r][0]=-u/2}Gr(e,t)}}function ZS(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,o;n<a;++n){for(var u=0,s=0,c=0;u<o;++u){for(var l=e[t[u]],f=l[n][1]||0,d=l[n-1][1]||0,h=(f-d)/2,m=0;m<u;++m){var v=e[t[m]],p=v[n][1]||0,g=v[n-1][1]||0;h+=p-g}s+=f,c+=h*f}i[n-1][1]+=i[n-1][0]=r,s&&(r-=c/s)}i[n-1][1]+=i[n-1][0]=r,Gr(e,t)}}function Un(e){"@babel/helpers - typeof";return Un=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Un(e)}var JS=["type","size","sizeType"];function zs(){return zs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},zs.apply(this,arguments)}function Vv(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 Yv(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Vv(Object(r),!0).forEach(function(n){QS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function QS(e,t,r){return t=e1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function e1(e){var t=t1(e,"string");return Un(t)=="symbol"?t:t+""}function t1(e,t){if(Un(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Un(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function r1(e,t){if(e==null)return{};var r=n1(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function n1(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var Xv={symbolCircle:Ls,symbolCross:AS,symbolDiamond:PS,symbolSquare:ES,symbolStar:$S,symbolTriangle:MS,symbolWye:kS},i1=Math.PI/180,a1=function(t){var r="symbol".concat(fa(t));return Xv[r]||Ls},o1=function(t,r,n){if(r==="area")return t;switch(n){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var i=18*i1;return 1.25*t*t*(Math.tan(i)-Math.tan(i*2)*Math.pow(Math.tan(i),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},u1=function(t,r){Xv["symbol".concat(fa(t))]=r},Us=function(t){var r=t.type,n=r===void 0?"circle":r,i=t.size,a=i===void 0?64:i,o=t.sizeType,u=o===void 0?"area":o,s=r1(t,JS),c=Yv(Yv({},s),{},{type:n,size:a,sizeType:u}),l=function(){var p=a1(n),g=DS().type(p).size(o1(a,u,n));return g()},f=c.className,d=c.cx,h=c.cy,m=Q(c,!0);return d===+d&&h===+h&&a===+a?_.createElement("path",zs({},m,{className:ce("recharts-symbols",f),transform:"translate(".concat(d,", ").concat(h,")"),d:l()})):null};Us.registerSymbol=u1;function Hr(e){"@babel/helpers - typeof";return Hr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hr(e)}function Ks(){return Ks=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ks.apply(this,arguments)}function Zv(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 s1(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Zv(Object(r),!0).forEach(function(n){Kn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function c1(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l1(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Qv(n.key),n)}}function f1(e,t,r){return t&&l1(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function d1(e,t,r){return t=wa(t),p1(e,Jv()?Reflect.construct(t,r||[],wa(e).constructor):t.apply(e,r))}function p1(e,t){if(t&&(Hr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return h1(e)}function h1(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Jv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Jv=function(){return!!e})()}function wa(e){return wa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},wa(e)}function v1(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Gs(e,t)}function Gs(e,t){return Gs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Gs(e,t)}function Kn(e,t,r){return t=Qv(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Qv(e){var t=y1(e,"string");return Hr(t)=="symbol"?t:t+""}function y1(e,t){if(Hr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Hr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ht=32,Hs=(function(e){function t(){return c1(this,t),d1(this,t,arguments)}return v1(t,e),f1(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,a=ht/2,o=ht/6,u=ht/3,s=n.inactive?i:n.color;if(n.type==="plainline")return _.createElement("line",{strokeWidth:4,fill:"none",stroke:s,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:a,x2:ht,y2:a,className:"recharts-legend-icon"});if(n.type==="line")return _.createElement("path",{strokeWidth:4,fill:"none",stroke:s,d:"M0,".concat(a,"h").concat(u,`
15
+ A`).concat(o,",").concat(o,",0,1,1,").concat(2*u,",").concat(a,`
16
+ H`).concat(ht,"M").concat(2*u,",").concat(a,`
17
+ A`).concat(o,",").concat(o,",0,1,1,").concat(u,",").concat(a),className:"recharts-legend-icon"});if(n.type==="rect")return _.createElement("path",{stroke:"none",fill:s,d:"M0,".concat(ht/8,"h").concat(ht,"v").concat(ht*3/4,"h").concat(-ht,"z"),className:"recharts-legend-icon"});if(_.isValidElement(n.legendIcon)){var c=s1({},n);return delete c.legendIcon,_.cloneElement(n.legendIcon,c)}return _.createElement(Us,{fill:s,cx:a,cy:a,size:ht,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,i=this.props,a=i.payload,o=i.iconSize,u=i.layout,s=i.formatter,c=i.inactiveColor,l={x:0,y:0,width:ht,height:ht},f={display:u==="horizontal"?"inline-block":"block",marginRight:10},d={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(h,m){var v=h.formatter||s,p=ce(Kn(Kn({"recharts-legend-item":!0},"legend-item-".concat(m),!0),"inactive",h.inactive));if(h.type==="none")return null;var g=ie(h.value)?null:h.value;wt(!ie(h.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var b=h.inactive?c:h.color;return _.createElement("li",Ks({className:p,style:f,key:"legend-item-".concat(m)},br(n.props,h,m)),_.createElement(As,{width:o,height:o,viewBox:l,style:d},n.renderIcon(h)),_.createElement("span",{className:"recharts-legend-item-text",style:{color:b}},v?v(g,h,m):g))})}},{key:"render",value:function(){var n=this.props,i=n.payload,a=n.layout,o=n.align;if(!i||!i.length)return null;var u={padding:0,margin:0,textAlign:a==="horizontal"?o:"left"};return _.createElement("ul",{className:"recharts-default-legend",style:u},this.renderItems())}}])})(_.PureComponent);Kn(Hs,"displayName","Legend"),Kn(Hs,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var Vs,ey;function m1(){if(ey)return Vs;ey=1;var e=aa();function t(){this.__data__=new e,this.size=0}return Vs=t,Vs}var Ys,ty;function g1(){if(ty)return Ys;ty=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return Ys=e,Ys}var Xs,ry;function b1(){if(ry)return Xs;ry=1;function e(t){return this.__data__.get(t)}return Xs=e,Xs}var Zs,ny;function x1(){if(ny)return Zs;ny=1;function e(t){return this.__data__.has(t)}return Zs=e,Zs}var Js,iy;function w1(){if(iy)return Js;iy=1;var e=aa(),t=Uu(),r=Qu(),n=200;function i(a,o){var u=this.__data__;if(u instanceof e){var s=u.__data__;if(!t||s.length<n-1)return s.push([a,o]),this.size=++u.size,this;u=this.__data__=new r(s)}return u.set(a,o),this.size=u.size,this}return Js=i,Js}var Qs,ay;function oy(){if(ay)return Qs;ay=1;var e=aa(),t=m1(),r=g1(),n=b1(),i=x1(),a=w1();function o(u){var s=this.__data__=new e(u);this.size=s.size}return o.prototype.clear=t,o.prototype.delete=r,o.prototype.get=n,o.prototype.has=i,o.prototype.set=a,Qs=o,Qs}var ec,uy;function O1(){if(uy)return ec;uy=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return ec=t,ec}var tc,sy;function _1(){if(sy)return tc;sy=1;function e(t){return this.__data__.has(t)}return tc=e,tc}var rc,cy;function ly(){if(cy)return rc;cy=1;var e=Qu(),t=O1(),r=_1();function n(i){var a=-1,o=i==null?0:i.length;for(this.__data__=new e;++a<o;)this.add(i[a])}return n.prototype.add=n.prototype.push=t,n.prototype.has=r,rc=n,rc}var nc,fy;function dy(){if(fy)return nc;fy=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(r(t[n],n,t))return!0;return!1}return nc=e,nc}var ic,py;function hy(){if(py)return ic;py=1;function e(t,r){return t.has(r)}return ic=e,ic}var ac,vy;function yy(){if(vy)return ac;vy=1;var e=ly(),t=dy(),r=hy(),n=1,i=2;function a(o,u,s,c,l,f){var d=s&n,h=o.length,m=u.length;if(h!=m&&!(d&&m>h))return!1;var v=f.get(o),p=f.get(u);if(v&&p)return v==u&&p==o;var g=-1,b=!0,w=s&i?new e:void 0;for(f.set(o,u),f.set(u,o);++g<h;){var O=o[g],y=u[g];if(c)var x=d?c(y,O,g,u,o,f):c(O,y,g,o,u,f);if(x!==void 0){if(x)continue;b=!1;break}if(w){if(!t(u,function(A,S){if(!r(w,S)&&(O===A||l(O,A,s,c,f)))return w.push(S)})){b=!1;break}}else if(!(O===y||l(O,y,s,c,f))){b=!1;break}}return f.delete(o),f.delete(u),b}return ac=a,ac}var oc,my;function A1(){if(my)return oc;my=1;var e=$t(),t=e.Uint8Array;return oc=t,oc}var uc,gy;function S1(){if(gy)return uc;gy=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i,a){n[++r]=[a,i]}),n}return uc=e,uc}var sc,by;function cc(){if(by)return sc;by=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i){n[++r]=i}),n}return sc=e,sc}var lc,xy;function P1(){if(xy)return lc;xy=1;var e=zn(),t=A1(),r=Nu(),n=yy(),i=S1(),a=cc(),o=1,u=2,s="[object Boolean]",c="[object Date]",l="[object Error]",f="[object Map]",d="[object Number]",h="[object RegExp]",m="[object Set]",v="[object String]",p="[object Symbol]",g="[object ArrayBuffer]",b="[object DataView]",w=e?e.prototype:void 0,O=w?w.valueOf:void 0;function y(x,A,S,T,M,P,j){switch(S){case b:if(x.byteLength!=A.byteLength||x.byteOffset!=A.byteOffset)return!1;x=x.buffer,A=A.buffer;case g:return!(x.byteLength!=A.byteLength||!P(new t(x),new t(A)));case s:case c:case d:return r(+x,+A);case l:return x.name==A.name&&x.message==A.message;case h:case v:return x==A+"";case f:var C=i;case m:var I=T&o;if(C||(C=a),x.size!=A.size&&!I)return!1;var k=j.get(x);if(k)return k==A;T|=u,j.set(x,A);var N=n(C(x),C(A),T,M,P,j);return j.delete(x),N;case p:if(O)return O.call(x)==O.call(A)}return!1}return lc=y,lc}var fc,wy;function Oy(){if(wy)return fc;wy=1;function e(t,r){for(var n=-1,i=r.length,a=t.length;++n<i;)t[a+n]=r[n];return t}return fc=e,fc}var dc,_y;function E1(){if(_y)return dc;_y=1;var e=Oy(),t=et();function r(n,i,a){var o=i(n);return t(n)?o:e(o,a(n))}return dc=r,dc}var pc,Ay;function T1(){if(Ay)return pc;Ay=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=0,o=[];++n<i;){var u=t[n];r(u,n,t)&&(o[a++]=u)}return o}return pc=e,pc}var hc,Sy;function j1(){if(Sy)return hc;Sy=1;function e(){return[]}return hc=e,hc}var vc,Py;function C1(){if(Py)return vc;Py=1;var e=T1(),t=j1(),r=Object.prototype,n=r.propertyIsEnumerable,i=Object.getOwnPropertySymbols,a=i?function(o){return o==null?[]:(o=Object(o),e(i(o),function(u){return n.call(o,u)}))}:t;return vc=a,vc}var yc,Ey;function $1(){if(Ey)return yc;Ey=1;function e(t,r){for(var n=-1,i=Array(t);++n<t;)i[n]=r(n);return i}return yc=e,yc}var mc,Ty;function M1(){if(Ty)return mc;Ty=1;var e=qt(),t=Bt(),r="[object Arguments]";function n(i){return t(i)&&e(i)==r}return mc=n,mc}var gc,jy;function bc(){if(jy)return gc;jy=1;var e=M1(),t=Bt(),r=Object.prototype,n=r.hasOwnProperty,i=r.propertyIsEnumerable,a=e((function(){return arguments})())?e:function(o){return t(o)&&n.call(o,"callee")&&!i.call(o,"callee")};return gc=a,gc}var Gn={exports:{}},xc,Cy;function I1(){if(Cy)return xc;Cy=1;function e(){return!1}return xc=e,xc}Gn.exports;var $y;function My(){return $y||($y=1,(function(e,t){var r=$t(),n=I1(),i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,u=o?r.Buffer:void 0,s=u?u.isBuffer:void 0,c=s||n;e.exports=c})(Gn,Gn.exports)),Gn.exports}var wc,Iy;function Oc(){if(Iy)return wc;Iy=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(n,i){var a=typeof n;return i=i??e,!!i&&(a=="number"||a!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<i}return wc=r,wc}var _c,ky;function Ac(){if(ky)return _c;ky=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return _c=t,_c}var Sc,Dy;function k1(){if(Dy)return Sc;Dy=1;var e=qt(),t=Ac(),r=Bt(),n="[object Arguments]",i="[object Array]",a="[object Boolean]",o="[object Date]",u="[object Error]",s="[object Function]",c="[object Map]",l="[object Number]",f="[object Object]",d="[object RegExp]",h="[object Set]",m="[object String]",v="[object WeakMap]",p="[object ArrayBuffer]",g="[object DataView]",b="[object Float32Array]",w="[object Float64Array]",O="[object Int8Array]",y="[object Int16Array]",x="[object Int32Array]",A="[object Uint8Array]",S="[object Uint8ClampedArray]",T="[object Uint16Array]",M="[object Uint32Array]",P={};P[b]=P[w]=P[O]=P[y]=P[x]=P[A]=P[S]=P[T]=P[M]=!0,P[n]=P[i]=P[p]=P[a]=P[g]=P[o]=P[u]=P[s]=P[c]=P[l]=P[f]=P[d]=P[h]=P[m]=P[v]=!1;function j(C){return r(C)&&t(C.length)&&!!P[e(C)]}return Sc=j,Sc}var Pc,Ny;function Ry(){if(Ny)return Pc;Ny=1;function e(t){return function(r){return t(r)}}return Pc=e,Pc}var Hn={exports:{}};Hn.exports;var Ly;function D1(){return Ly||(Ly=1,(function(e,t){var r=th(),n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a&&r.process,u=(function(){try{var s=i&&i.require&&i.require("util").types;return s||o&&o.binding&&o.binding("util")}catch{}})();e.exports=u})(Hn,Hn.exports)),Hn.exports}var Ec,qy;function By(){if(qy)return Ec;qy=1;var e=k1(),t=Ry(),r=D1(),n=r&&r.isTypedArray,i=n?t(n):e;return Ec=i,Ec}var Tc,Fy;function N1(){if(Fy)return Tc;Fy=1;var e=$1(),t=bc(),r=et(),n=My(),i=Oc(),a=By(),o=Object.prototype,u=o.hasOwnProperty;function s(c,l){var f=r(c),d=!f&&t(c),h=!f&&!d&&n(c),m=!f&&!d&&!h&&a(c),v=f||d||h||m,p=v?e(c.length,String):[],g=p.length;for(var b in c)(l||u.call(c,b))&&!(v&&(b=="length"||h&&(b=="offset"||b=="parent")||m&&(b=="buffer"||b=="byteLength"||b=="byteOffset")||i(b,g)))&&p.push(b);return p}return Tc=s,Tc}var jc,Wy;function R1(){if(Wy)return jc;Wy=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||e;return r===i}return jc=t,jc}var Cc,zy;function Uy(){if(zy)return Cc;zy=1;function e(t,r){return function(n){return t(r(n))}}return Cc=e,Cc}var $c,Ky;function L1(){if(Ky)return $c;Ky=1;var e=Uy(),t=e(Object.keys,Object);return $c=t,$c}var Mc,Gy;function q1(){if(Gy)return Mc;Gy=1;var e=R1(),t=L1(),r=Object.prototype,n=r.hasOwnProperty;function i(a){if(!e(a))return t(a);var o=[];for(var u in Object(a))n.call(a,u)&&u!="constructor"&&o.push(u);return o}return Mc=i,Mc}var Ic,Hy;function Vn(){if(Hy)return Ic;Hy=1;var e=xu(),t=Ac();function r(n){return n!=null&&t(n.length)&&!e(n)}return Ic=r,Ic}var kc,Vy;function Oa(){if(Vy)return kc;Vy=1;var e=N1(),t=q1(),r=Vn();function n(i){return r(i)?e(i):t(i)}return kc=n,kc}var Dc,Yy;function B1(){if(Yy)return Dc;Yy=1;var e=E1(),t=C1(),r=Oa();function n(i){return e(i,r,t)}return Dc=n,Dc}var Nc,Xy;function F1(){if(Xy)return Nc;Xy=1;var e=B1(),t=1,r=Object.prototype,n=r.hasOwnProperty;function i(a,o,u,s,c,l){var f=u&t,d=e(a),h=d.length,m=e(o),v=m.length;if(h!=v&&!f)return!1;for(var p=h;p--;){var g=d[p];if(!(f?g in o:n.call(o,g)))return!1}var b=l.get(a),w=l.get(o);if(b&&w)return b==o&&w==a;var O=!0;l.set(a,o),l.set(o,a);for(var y=f;++p<h;){g=d[p];var x=a[g],A=o[g];if(s)var S=f?s(A,x,g,o,a,l):s(x,A,g,a,o,l);if(!(S===void 0?x===A||c(x,A,u,s,l):S)){O=!1;break}y||(y=g=="constructor")}if(O&&!y){var T=a.constructor,M=o.constructor;T!=M&&"constructor"in a&&"constructor"in o&&!(typeof T=="function"&&T instanceof T&&typeof M=="function"&&M instanceof M)&&(O=!1)}return l.delete(a),l.delete(o),O}return Nc=i,Nc}var Rc,Zy;function W1(){if(Zy)return Rc;Zy=1;var e=vr(),t=$t(),r=e(t,"DataView");return Rc=r,Rc}var Lc,Jy;function z1(){if(Jy)return Lc;Jy=1;var e=vr(),t=$t(),r=e(t,"Promise");return Lc=r,Lc}var qc,Qy;function em(){if(Qy)return qc;Qy=1;var e=vr(),t=$t(),r=e(t,"Set");return qc=r,qc}var Bc,tm;function U1(){if(tm)return Bc;tm=1;var e=vr(),t=$t(),r=e(t,"WeakMap");return Bc=r,Bc}var Fc,rm;function K1(){if(rm)return Fc;rm=1;var e=W1(),t=Uu(),r=z1(),n=em(),i=U1(),a=qt(),o=vh(),u="[object Map]",s="[object Object]",c="[object Promise]",l="[object Set]",f="[object WeakMap]",d="[object DataView]",h=o(e),m=o(t),v=o(r),p=o(n),g=o(i),b=a;return(e&&b(new e(new ArrayBuffer(1)))!=d||t&&b(new t)!=u||r&&b(r.resolve())!=c||n&&b(new n)!=l||i&&b(new i)!=f)&&(b=function(w){var O=a(w),y=O==s?w.constructor:void 0,x=y?o(y):"";if(x)switch(x){case h:return d;case m:return u;case v:return c;case p:return l;case g:return f}return O}),Fc=b,Fc}var Wc,nm;function G1(){if(nm)return Wc;nm=1;var e=oy(),t=yy(),r=P1(),n=F1(),i=K1(),a=et(),o=My(),u=By(),s=1,c="[object Arguments]",l="[object Array]",f="[object Object]",d=Object.prototype,h=d.hasOwnProperty;function m(v,p,g,b,w,O){var y=a(v),x=a(p),A=y?l:i(v),S=x?l:i(p);A=A==c?f:A,S=S==c?f:S;var T=A==f,M=S==f,P=A==S;if(P&&o(v)){if(!o(p))return!1;y=!0,T=!1}if(P&&!T)return O||(O=new e),y||u(v)?t(v,p,g,b,w,O):r(v,p,A,g,b,w,O);if(!(g&s)){var j=T&&h.call(v,"__wrapped__"),C=M&&h.call(p,"__wrapped__");if(j||C){var I=j?v.value():v,k=C?p.value():p;return O||(O=new e),w(I,k,g,b,O)}}return P?(O||(O=new e),n(v,p,g,b,w,O)):!1}return Wc=m,Wc}var zc,im;function Uc(){if(im)return zc;im=1;var e=G1(),t=Bt();function r(n,i,a,o,u){return n===i?!0:n==null||i==null||!t(n)&&!t(i)?n!==n&&i!==i:e(n,i,a,o,r,u)}return zc=r,zc}var Kc,am;function H1(){if(am)return Kc;am=1;var e=oy(),t=Uc(),r=1,n=2;function i(a,o,u,s){var c=u.length,l=c,f=!s;if(a==null)return!l;for(a=Object(a);c--;){var d=u[c];if(f&&d[2]?d[1]!==a[d[0]]:!(d[0]in a))return!1}for(;++c<l;){d=u[c];var h=d[0],m=a[h],v=d[1];if(f&&d[2]){if(m===void 0&&!(h in a))return!1}else{var p=new e;if(s)var g=s(m,v,h,a,o,p);if(!(g===void 0?t(v,m,r|n,s,p):g))return!1}}return!0}return Kc=i,Kc}var Gc,om;function um(){if(om)return Gc;om=1;var e=tr();function t(r){return r===r&&!e(r)}return Gc=t,Gc}var Hc,sm;function V1(){if(sm)return Hc;sm=1;var e=um(),t=Oa();function r(n){for(var i=t(n),a=i.length;a--;){var o=i[a],u=n[o];i[a]=[o,u,e(u)]}return i}return Hc=r,Hc}var Vc,cm;function lm(){if(cm)return Vc;cm=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return Vc=e,Vc}var Yc,fm;function Y1(){if(fm)return Yc;fm=1;var e=H1(),t=V1(),r=lm();function n(i){var a=t(i);return a.length==1&&a[0][2]?r(a[0][0],a[0][1]):function(o){return o===i||e(o,i,a)}}return Yc=n,Yc}var Xc,dm;function X1(){if(dm)return Xc;dm=1;function e(t,r){return t!=null&&r in Object(t)}return Xc=e,Xc}var Zc,pm;function Z1(){if(pm)return Zc;pm=1;var e=Jh(),t=bc(),r=et(),n=Oc(),i=Ac(),a=ua();function o(u,s,c){s=e(s,u);for(var l=-1,f=s.length,d=!1;++l<f;){var h=a(s[l]);if(!(d=u!=null&&c(u,h)))break;u=u[h]}return d||++l!=f?d:(f=u==null?0:u.length,!!f&&i(f)&&n(h,f)&&(r(u)||t(u)))}return Zc=o,Zc}var Jc,hm;function J1(){if(hm)return Jc;hm=1;var e=X1(),t=Z1();function r(n,i){return n!=null&&t(n,i,e)}return Jc=r,Jc}var Qc,vm;function Q1(){if(vm)return Qc;vm=1;var e=Uc(),t=rv(),r=J1(),n=mu(),i=um(),a=lm(),o=ua(),u=1,s=2;function c(l,f){return n(l)&&i(f)?a(o(l),f):function(d){var h=t(d,l);return h===void 0&&h===f?r(d,l):e(f,h,u|s)}}return Qc=c,Qc}var el,ym;function Vr(){if(ym)return el;ym=1;function e(t){return t}return el=e,el}var tl,mm;function eP(){if(mm)return tl;mm=1;function e(t){return function(r){return r?.[t]}}return tl=e,tl}var rl,gm;function tP(){if(gm)return rl;gm=1;var e=ls();function t(r){return function(n){return e(n,r)}}return rl=t,rl}var nl,bm;function rP(){if(bm)return nl;bm=1;var e=eP(),t=tP(),r=mu(),n=ua();function i(a){return r(a)?e(n(a)):t(a)}return nl=i,nl}var il,xm;function Mt(){if(xm)return il;xm=1;var e=Y1(),t=Q1(),r=Vr(),n=et(),i=rP();function a(o){return typeof o=="function"?o:o==null?r:typeof o=="object"?n(o)?t(o[0],o[1]):e(o):i(o)}return il=a,il}var al,wm;function Om(){if(wm)return al;wm=1;function e(t,r,n,i){for(var a=t.length,o=n+(i?1:-1);i?o--:++o<a;)if(r(t[o],o,t))return o;return-1}return al=e,al}var ol,_m;function nP(){if(_m)return ol;_m=1;function e(t){return t!==t}return ol=e,ol}var ul,Am;function iP(){if(Am)return ul;Am=1;function e(t,r,n){for(var i=n-1,a=t.length;++i<a;)if(t[i]===r)return i;return-1}return ul=e,ul}var sl,Sm;function aP(){if(Sm)return sl;Sm=1;var e=Om(),t=nP(),r=iP();function n(i,a,o){return a===a?r(i,a,o):e(i,t,o)}return sl=n,sl}var cl,Pm;function oP(){if(Pm)return cl;Pm=1;var e=aP();function t(r,n){var i=r==null?0:r.length;return!!i&&e(r,n,0)>-1}return cl=t,cl}var ll,Em;function uP(){if(Em)return ll;Em=1;function e(t,r,n){for(var i=-1,a=t==null?0:t.length;++i<a;)if(n(r,t[i]))return!0;return!1}return ll=e,ll}var fl,Tm;function sP(){if(Tm)return fl;Tm=1;function e(){}return fl=e,fl}var dl,jm;function cP(){if(jm)return dl;jm=1;var e=em(),t=sP(),r=cc(),n=1/0,i=e&&1/r(new e([,-0]))[1]==n?function(a){return new e(a)}:t;return dl=i,dl}var pl,Cm;function lP(){if(Cm)return pl;Cm=1;var e=ly(),t=oP(),r=uP(),n=hy(),i=cP(),a=cc(),o=200;function u(s,c,l){var f=-1,d=t,h=s.length,m=!0,v=[],p=v;if(l)m=!1,d=r;else if(h>=o){var g=c?null:i(s);if(g)return a(g);m=!1,d=n,p=new e}else p=c?[]:v;e:for(;++f<h;){var b=s[f],w=c?c(b):b;if(b=l||b!==0?b:0,m&&w===w){for(var O=p.length;O--;)if(p[O]===w)continue e;c&&p.push(w),v.push(b)}else d(p,w,l)||(p!==v&&p.push(w),v.push(b))}return v}return pl=u,pl}var hl,$m;function fP(){if($m)return hl;$m=1;var e=Mt(),t=lP();function r(n,i){return n&&n.length?t(n,e(i,2)):[]}return hl=r,hl}var dP=fP();const Mm=_e(dP);function Im(e,t,r){return t===!0?Mm(e,r):ie(t)?Mm(e,t):e}function Yr(e){"@babel/helpers - typeof";return Yr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yr(e)}var pP=["ref"];function km(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 Wt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?km(Object(r),!0).forEach(function(n){Aa(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):km(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function hP(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Dm(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Rm(n.key),n)}}function vP(e,t,r){return t&&Dm(e.prototype,t),r&&Dm(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function yP(e,t,r){return t=_a(t),mP(e,Nm()?Reflect.construct(t,r||[],_a(e).constructor):t.apply(e,r))}function mP(e,t){if(t&&(Yr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return gP(e)}function gP(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Nm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Nm=function(){return!!e})()}function _a(e){return _a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},_a(e)}function bP(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&vl(e,t)}function vl(e,t){return vl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},vl(e,t)}function Aa(e,t,r){return t=Rm(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Rm(e){var t=xP(e,"string");return Yr(t)=="symbol"?t:t+""}function xP(e,t){if(Yr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Yr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function wP(e,t){if(e==null)return{};var r=OP(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function OP(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function _P(e){return e.value}function AP(e,t){if(_.isValidElement(e))return _.cloneElement(e,t);if(typeof e=="function")return _.createElement(e,t);t.ref;var r=wP(t,pP);return _.createElement(Hs,r)}var Lm=1,nr=(function(e){function t(){var r;hP(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=yP(this,t,[].concat(i)),Aa(r,"lastBoundingBox",{width:-1,height:-1}),r}return bP(t,e),vP(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();return n.height=this.wrapperNode.offsetHeight,n.width=this.wrapperNode.offsetWidth,n}return null}},{key:"updateBBox",value:function(){var n=this.props.onBBoxUpdate,i=this.getBBox();i?(Math.abs(i.width-this.lastBoundingBox.width)>Lm||Math.abs(i.height-this.lastBoundingBox.height)>Lm)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,n&&n(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,n&&n(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Wt({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var i=this.props,a=i.layout,o=i.align,u=i.verticalAlign,s=i.margin,c=i.chartWidth,l=i.chartHeight,f,d;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&a==="vertical"){var h=this.getBBoxSnapshot();f={left:((c||0)-h.width)/2}}else f=o==="right"?{right:s&&s.right||0}:{left:s&&s.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(u==="middle"){var m=this.getBBoxSnapshot();d={top:((l||0)-m.height)/2}}else d=u==="bottom"?{bottom:s&&s.bottom||0}:{top:s&&s.top||0};return Wt(Wt({},f),d)}},{key:"render",value:function(){var n=this,i=this.props,a=i.content,o=i.width,u=i.height,s=i.wrapperStyle,c=i.payloadUniqBy,l=i.payload,f=Wt(Wt({position:"absolute",width:o||"auto",height:u||"auto"},this.getDefaultPosition(s)),s);return _.createElement("div",{className:"recharts-legend-wrapper",style:f,ref:function(h){n.wrapperNode=h}},AP(a,Wt(Wt({},this.props),{},{payload:Im(l,c,_P)})))}}],[{key:"getWithHeight",value:function(n,i){var a=Wt(Wt({},this.defaultProps),n.props),o=a.layout;return o==="vertical"&&z(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||i}:null}}])})(_.PureComponent);Aa(nr,"displayName","Legend"),Aa(nr,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var yl,qm;function SP(){if(qm)return yl;qm=1;var e=zn(),t=bc(),r=et(),n=e?e.isConcatSpreadable:void 0;function i(a){return r(a)||t(a)||!!(n&&a&&a[n])}return yl=i,yl}var ml,Bm;function Fm(){if(Bm)return ml;Bm=1;var e=Oy(),t=SP();function r(n,i,a,o,u){var s=-1,c=n.length;for(a||(a=t),u||(u=[]);++s<c;){var l=n[s];i>0&&a(l)?i>1?r(l,i-1,a,o,u):e(u,l):o||(u[u.length]=l)}return u}return ml=r,ml}var gl,Wm;function PP(){if(Wm)return gl;Wm=1;function e(t){return function(r,n,i){for(var a=-1,o=Object(r),u=i(r),s=u.length;s--;){var c=u[t?s:++a];if(n(o[c],c,o)===!1)break}return r}}return gl=e,gl}var bl,zm;function EP(){if(zm)return bl;zm=1;var e=PP(),t=e();return bl=t,bl}var xl,Um;function Km(){if(Um)return xl;Um=1;var e=EP(),t=Oa();function r(n,i){return n&&e(n,i,t)}return xl=r,xl}var wl,Gm;function TP(){if(Gm)return wl;Gm=1;var e=Vn();function t(r,n){return function(i,a){if(i==null)return i;if(!e(i))return r(i,a);for(var o=i.length,u=n?o:-1,s=Object(i);(n?u--:++u<o)&&a(s[u],u,s)!==!1;);return i}}return wl=t,wl}var Ol,Hm;function _l(){if(Hm)return Ol;Hm=1;var e=Km(),t=TP(),r=t(e);return Ol=r,Ol}var Al,Vm;function Ym(){if(Vm)return Al;Vm=1;var e=_l(),t=Vn();function r(n,i){var a=-1,o=t(n)?Array(n.length):[];return e(n,function(u,s,c){o[++a]=i(u,s,c)}),o}return Al=r,Al}var Sl,Xm;function jP(){if(Xm)return Sl;Xm=1;function e(t,r){var n=t.length;for(t.sort(r);n--;)t[n]=t[n].value;return t}return Sl=e,Sl}var Pl,Zm;function CP(){if(Zm)return Pl;Zm=1;var e=Wr();function t(r,n){if(r!==n){var i=r!==void 0,a=r===null,o=r===r,u=e(r),s=n!==void 0,c=n===null,l=n===n,f=e(n);if(!c&&!f&&!u&&r>n||u&&s&&l&&!c&&!f||a&&s&&l||!i&&l||!o)return 1;if(!a&&!u&&!f&&r<n||f&&i&&o&&!a&&!u||c&&i&&o||!s&&o||!l)return-1}return 0}return Pl=t,Pl}var El,Jm;function $P(){if(Jm)return El;Jm=1;var e=CP();function t(r,n,i){for(var a=-1,o=r.criteria,u=n.criteria,s=o.length,c=i.length;++a<s;){var l=e(o[a],u[a]);if(l){if(a>=c)return l;var f=i[a];return l*(f=="desc"?-1:1)}}return r.index-n.index}return El=t,El}var Tl,Qm;function MP(){if(Qm)return Tl;Qm=1;var e=is(),t=ls(),r=Mt(),n=Ym(),i=jP(),a=Ry(),o=$P(),u=Vr(),s=et();function c(l,f,d){f.length?f=e(f,function(v){return s(v)?function(p){return t(p,v.length===1?v[0]:v)}:v}):f=[u];var h=-1;f=e(f,a(r));var m=n(l,function(v,p,g){var b=e(f,function(w){return w(v)});return{criteria:b,index:++h,value:v}});return i(m,function(v,p){return o(v,p,d)})}return Tl=c,Tl}var jl,eg;function IP(){if(eg)return jl;eg=1;function e(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)}return jl=e,jl}var Cl,tg;function kP(){if(tg)return Cl;tg=1;var e=IP(),t=Math.max;function r(n,i,a){return i=t(i===void 0?n.length-1:i,0),function(){for(var o=arguments,u=-1,s=t(o.length-i,0),c=Array(s);++u<s;)c[u]=o[i+u];u=-1;for(var l=Array(i+1);++u<i;)l[u]=o[u];return l[i]=a(c),e(n,this,l)}}return Cl=r,Cl}var $l,rg;function DP(){if(rg)return $l;rg=1;function e(t){return function(){return t}}return $l=e,$l}var Ml,ng;function ig(){if(ng)return Ml;ng=1;var e=vr(),t=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}})();return Ml=t,Ml}var Il,ag;function NP(){if(ag)return Il;ag=1;var e=DP(),t=ig(),r=Vr(),n=t?function(i,a){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:r;return Il=n,Il}var kl,og;function RP(){if(og)return kl;og=1;var e=800,t=16,r=Date.now;function n(i){var a=0,o=0;return function(){var u=r(),s=t-(u-o);if(o=u,s>0){if(++a>=e)return arguments[0]}else a=0;return i.apply(void 0,arguments)}}return kl=n,kl}var Dl,ug;function LP(){if(ug)return Dl;ug=1;var e=NP(),t=RP(),r=t(e);return Dl=r,Dl}var Nl,sg;function qP(){if(sg)return Nl;sg=1;var e=Vr(),t=kP(),r=LP();function n(i,a){return r(t(i,a,e),i+"")}return Nl=n,Nl}var Rl,cg;function Sa(){if(cg)return Rl;cg=1;var e=Nu(),t=Vn(),r=Oc(),n=tr();function i(a,o,u){if(!n(u))return!1;var s=typeof o;return(s=="number"?t(u)&&r(o,u.length):s=="string"&&o in u)?e(u[o],a):!1}return Rl=i,Rl}var Ll,lg;function BP(){if(lg)return Ll;lg=1;var e=Fm(),t=MP(),r=qP(),n=Sa(),i=r(function(a,o){if(a==null)return[];var u=o.length;return u>1&&n(a,o[0],o[1])?o=[]:u>2&&n(o[0],o[1],o[2])&&(o=[o[0]]),t(a,e(o,1),[])});return Ll=i,Ll}var FP=BP();const ql=_e(FP);function Yn(e){"@babel/helpers - typeof";return Yn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yn(e)}function Bl(){return Bl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Bl.apply(this,arguments)}function WP(e,t){return GP(e)||KP(e,t)||UP(e,t)||zP()}function zP(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
18
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function UP(e,t){if(e){if(typeof e=="string")return fg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return fg(e,t)}}function fg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function KP(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(l){c=!0,i=l}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function GP(e){if(Array.isArray(e))return e}function dg(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 Fl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?dg(Object(r),!0).forEach(function(n){HP(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function HP(e,t,r){return t=VP(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function VP(e){var t=YP(e,"string");return Yn(t)=="symbol"?t:t+""}function YP(e,t){if(Yn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Yn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function XP(e){return Array.isArray(e)&&qe(e[0])&&qe(e[1])?e.join(" ~ "):e}var ZP=function(t){var r=t.separator,n=r===void 0?" : ":r,i=t.contentStyle,a=i===void 0?{}:i,o=t.itemStyle,u=o===void 0?{}:o,s=t.labelStyle,c=s===void 0?{}:s,l=t.payload,f=t.formatter,d=t.itemSorter,h=t.wrapperClassName,m=t.labelClassName,v=t.label,p=t.labelFormatter,g=t.accessibilityLayer,b=g===void 0?!1:g,w=function(){if(l&&l.length){var j={padding:0,margin:0},C=(d?ql(l,d):l).map(function(I,k){if(I.type==="none")return null;var N=Fl({display:"block",paddingTop:4,paddingBottom:4,color:I.color||"#000"},u),q=I.formatter||f||XP,U=I.value,G=I.name,D=U,L=G;if(q&&D!=null&&L!=null){var B=q(U,G,I,k,l);if(Array.isArray(B)){var H=WP(B,2);D=H[0],L=H[1]}else D=B}return _.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(k),style:N},qe(L)?_.createElement("span",{className:"recharts-tooltip-item-name"},L):null,qe(L)?_.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,_.createElement("span",{className:"recharts-tooltip-item-value"},D),_.createElement("span",{className:"recharts-tooltip-item-unit"},I.unit||""))});return _.createElement("ul",{className:"recharts-tooltip-item-list",style:j},C)}return null},O=Fl({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),y=Fl({margin:0},c),x=!ue(v),A=x?v:"",S=ce("recharts-default-tooltip",h),T=ce("recharts-tooltip-label",m);x&&p&&l!==void 0&&l!==null&&(A=p(v,l));var M=b?{role:"status","aria-live":"assertive"}:{};return _.createElement("div",Bl({className:S,style:O},M),_.createElement("p",{className:T,style:y},_.isValidElement(A)?A:"".concat(A)),w())};function Xn(e){"@babel/helpers - typeof";return Xn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xn(e)}function Pa(e,t,r){return t=JP(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function JP(e){var t=QP(e,"string");return Xn(t)=="symbol"?t:t+""}function QP(e,t){if(Xn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Xn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Zn="recharts-tooltip-wrapper",eE={visibility:"hidden"};function tE(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return ce(Zn,Pa(Pa(Pa(Pa({},"".concat(Zn,"-right"),z(r)&&t&&z(t.x)&&r>=t.x),"".concat(Zn,"-left"),z(r)&&t&&z(t.x)&&r<t.x),"".concat(Zn,"-bottom"),z(n)&&t&&z(t.y)&&n>=t.y),"".concat(Zn,"-top"),z(n)&&t&&z(t.y)&&n<t.y))}function pg(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,i=e.offsetTopLeft,a=e.position,o=e.reverseDirection,u=e.tooltipDimension,s=e.viewBox,c=e.viewBoxDimension;if(a&&z(a[n]))return a[n];var l=r[n]-u-i,f=r[n]+i;if(t[n])return o[n]?l:f;if(o[n]){var d=l,h=s[n];return d<h?Math.max(f,s[n]):Math.max(l,s[n])}var m=f+u,v=s[n]+c;return m>v?Math.max(l,s[n]):Math.max(f,s[n])}function rE(e){var t=e.translateX,r=e.translateY,n=e.useTranslate3d;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function nE(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,u=e.useTranslate3d,s=e.viewBox,c,l,f;return o.height>0&&o.width>0&&r?(l=pg({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:s,viewBoxDimension:s.width}),f=pg({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:s,viewBoxDimension:s.height}),c=rE({translateX:l,translateY:f,useTranslate3d:u})):c=eE,{cssProperties:c,cssClasses:tE({translateX:l,translateY:f,coordinate:r})}}function Xr(e){"@babel/helpers - typeof";return Xr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xr(e)}function hg(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 vg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?hg(Object(r),!0).forEach(function(n){zl(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function iE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function aE(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,mg(n.key),n)}}function oE(e,t,r){return t&&aE(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function uE(e,t,r){return t=Ea(t),sE(e,yg()?Reflect.construct(t,r||[],Ea(e).constructor):t.apply(e,r))}function sE(e,t){if(t&&(Xr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return cE(e)}function cE(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(yg=function(){return!!e})()}function Ea(e){return Ea=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ea(e)}function lE(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Wl(e,t)}function Wl(e,t){return Wl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Wl(e,t)}function zl(e,t,r){return t=mg(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mg(e){var t=fE(e,"string");return Xr(t)=="symbol"?t:t+""}function fE(e,t){if(Xr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Xr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var gg=1,dE=(function(e){function t(){var r;iE(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=uE(this,t,[].concat(i)),zl(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),zl(r,"handleKeyDown",function(o){if(o.key==="Escape"){var u,s,c,l;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(u=(s=r.props.coordinate)===null||s===void 0?void 0:s.x)!==null&&u!==void 0?u:0,y:(c=(l=r.props.coordinate)===null||l===void 0?void 0:l.y)!==null&&c!==void 0?c:0}})}}),r}return lE(t,e),oE(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>gg||Math.abs(n.height-this.state.lastBoundingBox.height)>gg)&&this.setState({lastBoundingBox:{width:n.width,height:n.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var n,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,u=i.animationDuration,s=i.animationEasing,c=i.children,l=i.coordinate,f=i.hasPayload,d=i.isAnimationActive,h=i.offset,m=i.position,v=i.reverseDirection,p=i.useTranslate3d,g=i.viewBox,b=i.wrapperStyle,w=nE({allowEscapeViewBox:o,coordinate:l,offsetTopLeft:h,position:m,reverseDirection:v,tooltipBox:this.state.lastBoundingBox,useTranslate3d:p,viewBox:g}),O=w.cssClasses,y=w.cssProperties,x=vg(vg({transition:d&&a?"transform ".concat(u,"ms ").concat(s):void 0},y),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&f?"visible":"hidden",position:"absolute",top:0,left:0},b);return _.createElement("div",{tabIndex:-1,className:O,style:x,ref:function(S){n.wrapperNode=S}},c)}}])})(_.PureComponent),pE=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},ir={isSsr:pE()};function Zr(e){"@babel/helpers - typeof";return Zr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zr(e)}function bg(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 xg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bg(Object(r),!0).forEach(function(n){Kl(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function hE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vE(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Og(n.key),n)}}function yE(e,t,r){return t&&vE(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function mE(e,t,r){return t=Ta(t),gE(e,wg()?Reflect.construct(t,r||[],Ta(e).constructor):t.apply(e,r))}function gE(e,t){if(t&&(Zr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return bE(e)}function bE(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(wg=function(){return!!e})()}function Ta(e){return Ta=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ta(e)}function xE(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ul(e,t)}function Ul(e,t){return Ul=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ul(e,t)}function Kl(e,t,r){return t=Og(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Og(e){var t=wE(e,"string");return Zr(t)=="symbol"?t:t+""}function wE(e,t){if(Zr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Zr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function OE(e){return e.dataKey}function _E(e,t){return _.isValidElement(e)?_.cloneElement(e,t):typeof e=="function"?_.createElement(e,t):_.createElement(ZP,t)}var _t=(function(e){function t(){return hE(this,t),mE(this,t,arguments)}return xE(t,e),yE(t,[{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,u=i.animationDuration,s=i.animationEasing,c=i.content,l=i.coordinate,f=i.filterNull,d=i.isAnimationActive,h=i.offset,m=i.payload,v=i.payloadUniqBy,p=i.position,g=i.reverseDirection,b=i.useTranslate3d,w=i.viewBox,O=i.wrapperStyle,y=m??[];f&&y.length&&(y=Im(m.filter(function(A){return A.value!=null&&(A.hide!==!0||n.props.includeHidden)}),v,OE));var x=y.length>0;return _.createElement(dE,{allowEscapeViewBox:o,animationDuration:u,animationEasing:s,isAnimationActive:d,active:a,coordinate:l,hasPayload:x,offset:h,position:p,reverseDirection:g,useTranslate3d:b,viewBox:w,wrapperStyle:O},_E(c,xg(xg({},this.props),{},{payload:y})))}}])})(_.PureComponent);Kl(_t,"displayName","Tooltip"),Kl(_t,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!ir.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var Gl,_g;function AE(){if(_g)return Gl;_g=1;var e=$t(),t=function(){return e.Date.now()};return Gl=t,Gl}var Hl,Ag;function SE(){if(Ag)return Hl;Ag=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return Hl=t,Hl}var Vl,Sg;function PE(){if(Sg)return Vl;Sg=1;var e=SE(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return Vl=r,Vl}var Yl,Pg;function Eg(){if(Pg)return Yl;Pg=1;var e=PE(),t=tr(),r=Wr(),n=NaN,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,u=parseInt;function s(c){if(typeof c=="number")return c;if(r(c))return n;if(t(c)){var l=typeof c.valueOf=="function"?c.valueOf():c;c=t(l)?l+"":l}if(typeof c!="string")return c===0?c:+c;c=e(c);var f=a.test(c);return f||o.test(c)?u(c.slice(2),f?2:8):i.test(c)?n:+c}return Yl=s,Yl}var Xl,Tg;function EE(){if(Tg)return Xl;Tg=1;var e=tr(),t=AE(),r=Eg(),n="Expected a function",i=Math.max,a=Math.min;function o(u,s,c){var l,f,d,h,m,v,p=0,g=!1,b=!1,w=!0;if(typeof u!="function")throw new TypeError(n);s=r(s)||0,e(c)&&(g=!!c.leading,b="maxWait"in c,d=b?i(r(c.maxWait)||0,s):d,w="trailing"in c?!!c.trailing:w);function O(C){var I=l,k=f;return l=f=void 0,p=C,h=u.apply(k,I),h}function y(C){return p=C,m=setTimeout(S,s),g?O(C):h}function x(C){var I=C-v,k=C-p,N=s-I;return b?a(N,d-k):N}function A(C){var I=C-v,k=C-p;return v===void 0||I>=s||I<0||b&&k>=d}function S(){var C=t();if(A(C))return T(C);m=setTimeout(S,x(C))}function T(C){return m=void 0,w&&l?O(C):(l=f=void 0,h)}function M(){m!==void 0&&clearTimeout(m),p=0,l=v=f=m=void 0}function P(){return m===void 0?h:T(t())}function j(){var C=t(),I=A(C);if(l=arguments,f=this,v=C,I){if(m===void 0)return y(v);if(b)return clearTimeout(m),m=setTimeout(S,s),O(v)}return m===void 0&&(m=setTimeout(S,s)),h}return j.cancel=M,j.flush=P,j}return Xl=o,Xl}var Zl,jg;function TE(){if(jg)return Zl;jg=1;var e=EE(),t=tr(),r="Expected a function";function n(i,a,o){var u=!0,s=!0;if(typeof i!="function")throw new TypeError(r);return t(o)&&(u="leading"in o?!!o.leading:u,s="trailing"in o?!!o.trailing:s),e(i,a,{leading:u,maxWait:a,trailing:s})}return Zl=n,Zl}var jE=TE();const Cg=_e(jE);function Jn(e){"@babel/helpers - typeof";return Jn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jn(e)}function $g(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 ja(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$g(Object(r),!0).forEach(function(n){CE(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$g(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function CE(e,t,r){return t=$E(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $E(e){var t=ME(e,"string");return Jn(t)=="symbol"?t:t+""}function ME(e,t){if(Jn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Jn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function IE(e,t){return RE(e)||NE(e,t)||DE(e,t)||kE()}function kE(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
19
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function DE(e,t){if(e){if(typeof e=="string")return Mg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Mg(e,t)}}function Mg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function NE(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(l){c=!0,i=l}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function RE(e){if(Array.isArray(e))return e}var Ig=_.forwardRef(function(e,t){var r=e.aspect,n=e.initialDimension,i=n===void 0?{width:-1,height:-1}:n,a=e.width,o=a===void 0?"100%":a,u=e.height,s=u===void 0?"100%":u,c=e.minWidth,l=c===void 0?0:c,f=e.minHeight,d=e.maxHeight,h=e.children,m=e.debounce,v=m===void 0?0:m,p=e.id,g=e.className,b=e.onResize,w=e.style,O=w===void 0?{}:w,y=_.useRef(null),x=_.useRef();x.current=b,_.useImperativeHandle(t,function(){return Object.defineProperty(y.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),y.current},configurable:!0})});var A=_.useState({containerWidth:i.width,containerHeight:i.height}),S=IE(A,2),T=S[0],M=S[1],P=_.useCallback(function(C,I){M(function(k){var N=Math.round(C),q=Math.round(I);return k.containerWidth===N&&k.containerHeight===q?k:{containerWidth:N,containerHeight:q}})},[]);_.useEffect(function(){var C=function(G){var D,L=G[0].contentRect,B=L.width,H=L.height;P(B,H),(D=x.current)===null||D===void 0||D.call(x,B,H)};v>0&&(C=Cg(C,v,{trailing:!0,leading:!1}));var I=new ResizeObserver(C),k=y.current.getBoundingClientRect(),N=k.width,q=k.height;return P(N,q),I.observe(y.current),function(){I.disconnect()}},[P,v]);var j=_.useMemo(function(){var C=T.containerWidth,I=T.containerHeight;if(C<0||I<0)return null;wt(mr(o)||mr(s),`The width(%s) and height(%s) are both fixed numbers,
20
+ maybe you don't need to use a ResponsiveContainer.`,o,s),wt(!r||r>0,"The aspect(%s) must be greater than zero.",r);var k=mr(o)?C:o,N=mr(s)?I:s;r&&r>0&&(k?N=k/r:N&&(k=N*r),d&&N>d&&(N=d)),wt(k>0||N>0,`The width(%s) and height(%s) of chart should be greater than 0,
21
+ please check the style of container, or the props width(%s) and height(%s),
22
+ or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
23
+ height and width.`,k,N,o,s,l,f,r);var q=!Array.isArray(h)&&Ft(h.type).endsWith("Chart");return _.Children.map(h,function(U){return _.isValidElement(U)?_.cloneElement(U,ja({width:k,height:N},q?{style:ja({height:"100%",width:"100%",maxHeight:N,maxWidth:k},U.props.style)}:{})):U})},[r,h,s,d,f,l,T,o]);return _.createElement("div",{id:p?"".concat(p):void 0,className:ce("recharts-responsive-container",g),style:ja(ja({},O),{},{width:o,height:s,minWidth:l,minHeight:f,maxHeight:d}),ref:y},j)}),Ca=function(t){return null};Ca.displayName="Cell";function Qn(e){"@babel/helpers - typeof";return Qn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qn(e)}function kg(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 Jl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?kg(Object(r),!0).forEach(function(n){LE(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function LE(e,t,r){return t=qE(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qE(e){var t=BE(e,"string");return Qn(t)=="symbol"?t:t+""}function BE(e,t){if(Qn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Qn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Jr={widthCache:{},cacheCount:0},FE=2e3,WE={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Dg="recharts_measurement_span";function zE(e){var t=Jl({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var ei=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||ir.isSsr)return{width:0,height:0};var n=zE(r),i=JSON.stringify({text:t,copyStyle:n});if(Jr.widthCache[i])return Jr.widthCache[i];try{var a=document.getElementById(Dg);a||(a=document.createElement("span"),a.setAttribute("id",Dg),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=Jl(Jl({},WE),n);Object.assign(a.style,o),a.textContent="".concat(t);var u=a.getBoundingClientRect(),s={width:u.width,height:u.height};return Jr.widthCache[i]=s,++Jr.cacheCount>FE&&(Jr.cacheCount=0,Jr.widthCache={}),s}catch{return{width:0,height:0}}},UE=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function ti(e){"@babel/helpers - typeof";return ti=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ti(e)}function $a(e,t){return VE(e)||HE(e,t)||GE(e,t)||KE()}function KE(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
24
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function GE(e,t){if(e){if(typeof e=="string")return Ng(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ng(e,t)}}function Ng(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function HE(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(l){c=!0,i=l}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function VE(e){if(Array.isArray(e))return e}function YE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Rg(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ZE(n.key),n)}}function XE(e,t,r){return t&&Rg(e.prototype,t),r&&Rg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function ZE(e){var t=JE(e,"string");return ti(t)=="symbol"?t:t+""}function JE(e,t){if(ti(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ti(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Lg=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,qg=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,QE=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,eT=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,Bg={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},tT=Object.keys(Bg),Qr="NaN";function rT(e,t){return e*Bg[t]}var Ma=(function(){function e(t,r){YE(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!QE.test(r)&&(this.num=NaN,this.unit=""),tT.includes(r)&&(this.num=rT(t,r),this.unit="px")}return XE(e,[{key:"add",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num+r.num,this.unit)}},{key:"subtract",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num-r.num,this.unit)}},{key:"multiply",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num*r.num,this.unit||r.unit)}},{key:"divide",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num/r.num,this.unit||r.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(r){var n,i=(n=eT.exec(r))!==null&&n!==void 0?n:[],a=$a(i,3),o=a[1],u=a[2];return new e(parseFloat(o),u??"")}}])})();function Fg(e){if(e.includes(Qr))return Qr;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=Lg.exec(t))!==null&&r!==void 0?r:[],i=$a(n,4),a=i[1],o=i[2],u=i[3],s=Ma.parse(a??""),c=Ma.parse(u??""),l=o==="*"?s.multiply(c):s.divide(c);if(l.isNaN())return Qr;t=t.replace(Lg,l.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var f,d=(f=qg.exec(t))!==null&&f!==void 0?f:[],h=$a(d,4),m=h[1],v=h[2],p=h[3],g=Ma.parse(m??""),b=Ma.parse(p??""),w=v==="+"?g.add(b):g.subtract(b);if(w.isNaN())return Qr;t=t.replace(qg,w.toString())}return t}var Wg=/\(([^()]*)\)/;function nT(e){for(var t=e;t.includes("(");){var r=Wg.exec(t),n=$a(r,2),i=n[1];t=t.replace(Wg,Fg(i))}return t}function iT(e){var t=e.replace(/\s+/g,"");return t=nT(t),t=Fg(t),t}function aT(e){try{return iT(e)}catch{return Qr}}function Ql(e){var t=aT(e.slice(5,-1));return t===Qr?"":t}var oT=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],uT=["dx","dy","angle","className","breakAll"];function ef(){return ef=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ef.apply(this,arguments)}function zg(e,t){if(e==null)return{};var r=sT(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function sT(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Ug(e,t){return dT(e)||fT(e,t)||lT(e,t)||cT()}function cT(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
25
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lT(e,t){if(e){if(typeof e=="string")return Kg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Kg(e,t)}}function Kg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function fT(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(l){c=!0,i=l}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function dT(e){if(Array.isArray(e))return e}var Gg=/[ \f\n\r\t\v\u2028\u2029]+/,Hg=function(t){var r=t.children,n=t.breakAll,i=t.style;try{var a=[];ue(r)||(n?a=r.toString().split(""):a=r.toString().split(Gg));var o=a.map(function(s){return{word:s,width:ei(s,i).width}}),u=n?0:ei(" ",i).width;return{wordsWithComputedWidth:o,spaceWidth:u}}catch{return null}},pT=function(t,r,n,i,a){var o=t.maxLines,u=t.children,s=t.style,c=t.breakAll,l=z(o),f=u,d=function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return k.reduce(function(N,q){var U=q.word,G=q.width,D=N[N.length-1];if(D&&(i==null||a||D.width+G+n<Number(i)))D.words.push(U),D.width+=G+n;else{var L={words:[U],width:G};N.push(L)}return N},[])},h=d(r),m=function(k){return k.reduce(function(N,q){return N.width>q.width?N:q})};if(!l)return h;for(var v="…",p=function(k){var N=f.slice(0,k),q=Hg({breakAll:c,style:s,children:N+v}).wordsWithComputedWidth,U=d(q),G=U.length>o||m(U).width>Number(i);return[G,U]},g=0,b=f.length-1,w=0,O;g<=b&&w<=f.length-1;){var y=Math.floor((g+b)/2),x=y-1,A=p(x),S=Ug(A,2),T=S[0],M=S[1],P=p(y),j=Ug(P,1),C=j[0];if(!T&&!C&&(g=y+1),T&&C&&(b=y-1),!T&&C){O=M;break}w++}return O||h},Vg=function(t){var r=ue(t)?[]:t.toString().split(Gg);return[{words:r}]},hT=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,u=t.maxLines;if((r||n)&&!ir.isSsr){var s,c,l=Hg({breakAll:o,children:i,style:a});if(l){var f=l.wordsWithComputedWidth,d=l.spaceWidth;s=f,c=d}else return Vg(i);return pT({breakAll:o,children:i,maxLines:u,style:a},s,c,r,n)}return Vg(i)},Yg="#808080",wr=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.lineHeight,u=o===void 0?"1em":o,s=t.capHeight,c=s===void 0?"0.71em":s,l=t.scaleToFit,f=l===void 0?!1:l,d=t.textAnchor,h=d===void 0?"start":d,m=t.verticalAnchor,v=m===void 0?"end":m,p=t.fill,g=p===void 0?Yg:p,b=zg(t,oT),w=_.useMemo(function(){return hT({breakAll:b.breakAll,children:b.children,maxLines:b.maxLines,scaleToFit:f,style:b.style,width:b.width})},[b.breakAll,b.children,b.maxLines,f,b.style,b.width]),O=b.dx,y=b.dy,x=b.angle,A=b.className,S=b.breakAll,T=zg(b,uT);if(!qe(n)||!qe(a))return null;var M=n+(z(O)?O:0),P=a+(z(y)?y:0),j;switch(v){case"start":j=Ql("calc(".concat(c,")"));break;case"middle":j=Ql("calc(".concat((w.length-1)/2," * -").concat(u," + (").concat(c," / 2))"));break;default:j=Ql("calc(".concat(w.length-1," * -").concat(u,")"));break}var C=[];if(f){var I=w[0].width,k=b.width;C.push("scale(".concat((z(k)?k/I:1)/I,")"))}return x&&C.push("rotate(".concat(x,", ").concat(M,", ").concat(P,")")),C.length&&(T.transform=C.join(" ")),_.createElement("text",ef({},Q(T,!0),{x:M,y:P,className:ce("recharts-text",A),textAnchor:h,fill:g.includes("url")?Yg:g}),w.map(function(N,q){var U=N.words.join(S?"":" ");return _.createElement("tspan",{x:M,dy:q===0?j:u,key:"".concat(U,"-").concat(q)},U)}))};function ar(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function vT(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function tf(e){let t,r,n;e.length!==2?(t=ar,r=(u,s)=>ar(e(u),s),n=(u,s)=>e(u)-s):(t=e===ar||e===vT?e:yT,r=e,n=e);function i(u,s,c=0,l=u.length){if(c<l){if(t(s,s)!==0)return l;do{const f=c+l>>>1;r(u[f],s)<0?c=f+1:l=f}while(c<l)}return c}function a(u,s,c=0,l=u.length){if(c<l){if(t(s,s)!==0)return l;do{const f=c+l>>>1;r(u[f],s)<=0?c=f+1:l=f}while(c<l)}return c}function o(u,s,c=0,l=u.length){const f=i(u,s,c,l-1);return f>c&&n(u[f-1],s)>-n(u[f],s)?f-1:f}return{left:i,center:o,right:a}}function yT(){return 0}function Xg(e){return e===null?NaN:+e}function*mT(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const ri=tf(ar).right;tf(Xg).center;class Zg extends Map{constructor(t,r=xT){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(Jg(this,t))}has(t){return super.has(Jg(this,t))}set(t,r){return super.set(gT(this,t),r)}delete(t){return super.delete(bT(this,t))}}function Jg({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function gT({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function bT({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function xT(e){return e!==null&&typeof e=="object"?e.valueOf():e}function wT(e=ar){if(e===ar)return Qg;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 Qg(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const OT=Math.sqrt(50),_T=Math.sqrt(10),AT=Math.sqrt(2);function Ia(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>=OT?10:a>=_T?5:a>=AT?2:1;let u,s,c;return i<0?(c=Math.pow(10,-i)/o,u=Math.round(e*c),s=Math.round(t*c),u/c<e&&++u,s/c>t&&--s,c=-c):(c=Math.pow(10,i)*o,u=Math.round(e/c),s=Math.round(t/c),u*c<e&&++u,s*c>t&&--s),s<u&&.5<=r&&r<2?Ia(e,t,r*2):[u,s,c]}function rf(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?Ia(t,e,r):Ia(e,t,r);if(!(a>=i))return[];const u=a-i+1,s=new Array(u);if(n)if(o<0)for(let c=0;c<u;++c)s[c]=(a-c)/-o;else for(let c=0;c<u;++c)s[c]=(a-c)*o;else if(o<0)for(let c=0;c<u;++c)s[c]=(i+c)/-o;else for(let c=0;c<u;++c)s[c]=(i+c)*o;return s}function nf(e,t,r){return t=+t,e=+e,r=+r,Ia(e,t,r)[2]}function af(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?nf(t,e,r):nf(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function eb(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function tb(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function rb(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?Qg:wT(i);n>r;){if(n-r>600){const s=n-r+1,c=t-r+1,l=Math.log(s),f=.5*Math.exp(2*l/3),d=.5*Math.sqrt(l*f*(s-f)/s)*(c-s/2<0?-1:1),h=Math.max(r,Math.floor(t-c*f/s+d)),m=Math.min(n,Math.floor(t+(s-c)*f/s+d));rb(e,t,h,m,i)}const a=e[t];let o=r,u=n;for(ni(e,r,t),i(e[n],a)>0&&ni(e,r,n);o<u;){for(ni(e,o,u),++o,--u;i(e[o],a)<0;)++o;for(;i(e[u],a)>0;)--u}i(e[r],a)===0?ni(e,r,u):(++u,ni(e,u,n)),u<=t&&(r=u+1),t<=u&&(n=u-1)}return e}function ni(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function ST(e,t,r){if(e=Float64Array.from(mT(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return tb(e);if(t>=1)return eb(e);var n,i=(n-1)*t,a=Math.floor(i),o=eb(rb(e,a).subarray(0,a+1)),u=tb(e.subarray(a+1));return o+(u-o)*(i-a)}}function PT(e,t,r=Xg){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),u=+r(e[a+1],a+1,e);return o+(u-o)*(i-a)}}function ET(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 vt(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function zt(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 of=Symbol("implicit");function uf(){var e=new Zg,t=[],r=[],n=of;function i(a){let o=e.get(a);if(o===void 0){if(n!==of)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 Zg;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 uf(t,r).unknown(n)},vt.apply(i,arguments),i}function ii(){var e=uf().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,o,u=!1,s=0,c=0,l=.5;delete e.unknown;function f(){var d=t().length,h=i<n,m=h?i:n,v=h?n:i;a=(v-m)/Math.max(1,d-s+c*2),u&&(a=Math.floor(a)),m+=(v-m-a*(d-s))*l,o=a*(1-s),u&&(m=Math.round(m),o=Math.round(o));var p=ET(d).map(function(g){return m+a*g});return r(h?p.reverse():p)}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,u=!0,f()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(d){return arguments.length?(u=!!d,f()):u},e.padding=function(d){return arguments.length?(s=Math.min(1,c=+d),f()):s},e.paddingInner=function(d){return arguments.length?(s=Math.min(1,d),f()):s},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 ii(t(),[n,i]).round(u).paddingInner(s).paddingOuter(c).align(l)},vt.apply(f(),arguments)}function nb(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return nb(t())},e}function ai(){return nb(ii.apply(null,arguments).paddingInner(1))}function sf(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function ib(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function oi(){}var ui=.7,ka=1/ui,en="\\s*([+-]?\\d+)\\s*",si="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",It="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",TT=/^#([0-9a-f]{3,8})$/,jT=new RegExp(`^rgb\\(${en},${en},${en}\\)$`),CT=new RegExp(`^rgb\\(${It},${It},${It}\\)$`),$T=new RegExp(`^rgba\\(${en},${en},${en},${si}\\)$`),MT=new RegExp(`^rgba\\(${It},${It},${It},${si}\\)$`),IT=new RegExp(`^hsl\\(${si},${It},${It}\\)$`),kT=new RegExp(`^hsla\\(${si},${It},${It},${si}\\)$`),ab={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};sf(oi,ci,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:ob,formatHex:ob,formatHex8:DT,formatHsl:NT,formatRgb:ub,toString:ub});function ob(){return this.rgb().formatHex()}function DT(){return this.rgb().formatHex8()}function NT(){return db(this).formatHsl()}function ub(){return this.rgb().formatRgb()}function ci(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=TT.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?sb(t):r===3?new tt(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Da(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Da(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=jT.exec(e))?new tt(t[1],t[2],t[3],1):(t=CT.exec(e))?new tt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=$T.exec(e))?Da(t[1],t[2],t[3],t[4]):(t=MT.exec(e))?Da(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=IT.exec(e))?fb(t[1],t[2]/100,t[3]/100,1):(t=kT.exec(e))?fb(t[1],t[2]/100,t[3]/100,t[4]):ab.hasOwnProperty(e)?sb(ab[e]):e==="transparent"?new tt(NaN,NaN,NaN,0):null}function sb(e){return new tt(e>>16&255,e>>8&255,e&255,1)}function Da(e,t,r,n){return n<=0&&(e=t=r=NaN),new tt(e,t,r,n)}function RT(e){return e instanceof oi||(e=ci(e)),e?(e=e.rgb(),new tt(e.r,e.g,e.b,e.opacity)):new tt}function cf(e,t,r,n){return arguments.length===1?RT(e):new tt(e,t,r,n??1)}function tt(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}sf(tt,cf,ib(oi,{brighter(e){return e=e==null?ka:Math.pow(ka,e),new tt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ui:Math.pow(ui,e),new tt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new tt(Or(this.r),Or(this.g),Or(this.b),Na(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:cb,formatHex:cb,formatHex8:LT,formatRgb:lb,toString:lb}));function cb(){return`#${_r(this.r)}${_r(this.g)}${_r(this.b)}`}function LT(){return`#${_r(this.r)}${_r(this.g)}${_r(this.b)}${_r((isNaN(this.opacity)?1:this.opacity)*255)}`}function lb(){const e=Na(this.opacity);return`${e===1?"rgb(":"rgba("}${Or(this.r)}, ${Or(this.g)}, ${Or(this.b)}${e===1?")":`, ${e})`}`}function Na(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Or(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function _r(e){return e=Or(e),(e<16?"0":"")+e.toString(16)}function fb(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new At(e,t,r,n)}function db(e){if(e instanceof At)return new At(e.h,e.s,e.l,e.opacity);if(e instanceof oi||(e=ci(e)),!e)return new At;if(e instanceof At)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,u=a-i,s=(a+i)/2;return u?(t===a?o=(r-n)/u+(r<n)*6:r===a?o=(n-t)/u+2:o=(t-r)/u+4,u/=s<.5?a+i:2-a-i,o*=60):u=s>0&&s<1?0:o,new At(o,u,s,e.opacity)}function qT(e,t,r,n){return arguments.length===1?db(e):new At(e,t,r,n??1)}function At(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}sf(At,qT,ib(oi,{brighter(e){return e=e==null?ka:Math.pow(ka,e),new At(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ui:Math.pow(ui,e),new At(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 tt(lf(e>=240?e-240:e+120,i,n),lf(e,i,n),lf(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new At(pb(this.h),Ra(this.s),Ra(this.l),Na(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=Na(this.opacity);return`${e===1?"hsl(":"hsla("}${pb(this.h)}, ${Ra(this.s)*100}%, ${Ra(this.l)*100}%${e===1?")":`, ${e})`}`}}));function pb(e){return e=(e||0)%360,e<0?e+360:e}function Ra(e){return Math.max(0,Math.min(1,e||0))}function lf(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 ff=e=>()=>e;function BT(e,t){return function(r){return e+r*t}}function FT(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 WT(e){return(e=+e)==1?hb:function(t,r){return r-t?FT(t,r,e):ff(isNaN(t)?r:t)}}function hb(e,t){var r=t-e;return r?BT(e,r):ff(isNaN(e)?t:e)}const vb=(function e(t){var r=WT(t);function n(i,a){var o=r((i=cf(i)).r,(a=cf(a)).r),u=r(i.g,a.g),s=r(i.b,a.b),c=hb(i.opacity,a.opacity);return function(l){return i.r=o(l),i.g=u(l),i.b=s(l),i.opacity=c(l),i+""}}return n.gamma=e,n})(1);function zT(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 UT(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function KT(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]=tn(e[o],t[o]);for(;o<r;++o)a[o]=t[o];return function(u){for(o=0;o<n;++o)a[o]=i[o](u);return a}}function GT(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function La(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function HT(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]=tn(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var df=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,pf=new RegExp(df.source,"g");function VT(e){return function(){return e}}function YT(e){return function(t){return e(t)+""}}function XT(e,t){var r=df.lastIndex=pf.lastIndex=0,n,i,a,o=-1,u=[],s=[];for(e=e+"",t=t+"";(n=df.exec(e))&&(i=pf.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),u[o]?u[o]+=a:u[++o]=a),(n=n[0])===(i=i[0])?u[o]?u[o]+=i:u[++o]=i:(u[++o]=null,s.push({i:o,x:La(n,i)})),r=pf.lastIndex;return r<t.length&&(a=t.slice(r),u[o]?u[o]+=a:u[++o]=a),u.length<2?s[0]?YT(s[0].x):VT(t):(t=s.length,function(c){for(var l=0,f;l<t;++l)u[(f=s[l]).i]=f.x(c);return u.join("")})}function tn(e,t){var r=typeof t,n;return t==null||r==="boolean"?ff(t):(r==="number"?La:r==="string"?(n=ci(t))?(t=n,vb):XT:t instanceof ci?vb:t instanceof Date?GT:UT(t)?zT:Array.isArray(t)?KT:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?HT:La)(e,t)}function hf(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function ZT(e,t){t===void 0&&(t=e,e=tn);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 u=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return a[u](o-u)}}function JT(e){return function(){return e}}function qa(e){return+e}var yb=[0,1];function Je(e){return e}function vf(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:JT(isNaN(t)?NaN:.5)}function QT(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function ej(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=vf(i,n),a=r(o,a)):(n=vf(n,i),a=r(a,o)),function(u){return a(n(u))}}function tj(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]=vf(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(u){var s=ri(e,u,1,n)-1;return a[s](i[s](u))}}function li(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Ba(){var e=yb,t=yb,r=tn,n,i,a,o=Je,u,s,c;function l(){var d=Math.min(e.length,t.length);return o!==Je&&(o=QT(e[0],e[d-1])),u=d>2?tj:ej,s=c=null,f}function f(d){return d==null||isNaN(d=+d)?a:(s||(s=u(e.map(n),t,r)))(n(o(d)))}return f.invert=function(d){return o(i((c||(c=u(t,e.map(n),La)))(d)))},f.domain=function(d){return arguments.length?(e=Array.from(d,qa),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=hf,l()},f.clamp=function(d){return arguments.length?(o=d?!0:Je,l()):o!==Je},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 yf(){return Ba()(Je,Je)}function rj(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Fa(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 rn(e){return e=Fa(Math.abs(e)),e?e[1]:NaN}function nj(e,t){return function(r,n){for(var i=r.length,a=[],o=0,u=e[0],s=0;i>0&&u>0&&(s+u+1>n&&(u=Math.max(1,n-s)),a.push(r.substring(i-=u,i+u)),!((s+=u+1)>n));)u=e[o=(o+1)%e.length];return a.reverse().join(t)}}function ij(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var aj=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function fi(e){if(!(t=aj.exec(e)))throw new Error("invalid format: "+e);var t;return new mf({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]})}fi.prototype=mf.prototype;function mf(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+""}mf.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 oj(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 mb;function uj(e,t){var r=Fa(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(mb=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")+Fa(e,Math.max(0,t+a-1))[0]}function gb(e,t){var r=Fa(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 bb={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:rj,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)=>gb(e*100,t),r:gb,s:uj,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function xb(e){return e}var wb=Array.prototype.map,Ob=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function sj(e){var t=e.grouping===void 0||e.thousands===void 0?xb:nj(wb.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?xb:ij(wb.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",u=e.minus===void 0?"−":e.minus+"",s=e.nan===void 0?"NaN":e.nan+"";function c(f){f=fi(f);var d=f.fill,h=f.align,m=f.sign,v=f.symbol,p=f.zero,g=f.width,b=f.comma,w=f.precision,O=f.trim,y=f.type;y==="n"?(b=!0,y="g"):bb[y]||(w===void 0&&(w=12),O=!0,y="g"),(p||d==="0"&&h==="=")&&(p=!0,d="0",h="=");var x=v==="$"?r:v==="#"&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",A=v==="$"?n:/[%p]/.test(y)?o:"",S=bb[y],T=/[defgprs%]/.test(y);w=w===void 0?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function M(P){var j=x,C=A,I,k,N;if(y==="c")C=S(P)+C,P="";else{P=+P;var q=P<0||1/P<0;if(P=isNaN(P)?s:S(Math.abs(P),w),O&&(P=oj(P)),q&&+P==0&&m!=="+"&&(q=!1),j=(q?m==="("?m:u:m==="-"||m==="("?"":m)+j,C=(y==="s"?Ob[8+mb/3]:"")+C+(q&&m==="("?")":""),T){for(I=-1,k=P.length;++I<k;)if(N=P.charCodeAt(I),48>N||N>57){C=(N===46?i+P.slice(I+1):P.slice(I))+C,P=P.slice(0,I);break}}}b&&!p&&(P=t(P,1/0));var U=j.length+P.length+C.length,G=U<g?new Array(g-U+1).join(d):"";switch(b&&p&&(P=t(G+P,G.length?g-C.length:1/0),G=""),h){case"<":P=j+P+C+G;break;case"=":P=j+G+P+C;break;case"^":P=G.slice(0,U=G.length>>1)+j+P+C+G.slice(U);break;default:P=G+j+P+C;break}return a(P)}return M.toString=function(){return f+""},M}function l(f,d){var h=c((f=fi(f),f.type="f",f)),m=Math.max(-8,Math.min(8,Math.floor(rn(d)/3)))*3,v=Math.pow(10,-m),p=Ob[8+m/3];return function(g){return h(v*g)+p}}return{format:c,formatPrefix:l}}var Wa,gf,_b;cj({thousands:",",grouping:[3],currency:["$",""]});function cj(e){return Wa=sj(e),gf=Wa.format,_b=Wa.formatPrefix,Wa}function lj(e){return Math.max(0,-rn(Math.abs(e)))}function fj(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(rn(t)/3)))*3-rn(Math.abs(e)))}function dj(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,rn(t)-rn(e))+1}function Ab(e,t,r,n){var i=af(e,t,r),a;switch(n=fi(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=fj(i,o))&&(n.precision=a),_b(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=dj(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=lj(i))&&(n.precision=a-(n.type==="%")*2);break}}return gf(n)}function or(e){var t=e.domain;return e.ticks=function(r){var n=t();return rf(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return Ab(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],u=n[a],s,c,l=10;for(u<o&&(c=o,o=u,u=c,c=i,i=a,a=c);l-- >0;){if(c=nf(o,u,r),c===s)return n[i]=o,n[a]=u,t(n);if(c>0)o=Math.floor(o/c)*c,u=Math.ceil(u/c)*c;else if(c<0)o=Math.ceil(o*c)/c,u=Math.floor(u*c)/c;else break;s=c}return e},e}function za(){var e=yf();return e.copy=function(){return li(e,za())},vt.apply(e,arguments),or(e)}function Sb(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,qa),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return Sb(e).unknown(t)},e=arguments.length?Array.from(e,qa):[0,1],or(r)}function Pb(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 Eb(e){return Math.log(e)}function Tb(e){return Math.exp(e)}function pj(e){return-Math.log(-e)}function hj(e){return-Math.exp(-e)}function vj(e){return isFinite(e)?+("1e"+e):e<0?0:e}function yj(e){return e===10?vj:e===Math.E?Math.exp:t=>Math.pow(e,t)}function mj(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 jb(e){return(t,r)=>-e(-t,r)}function bf(e){const t=e(Eb,Tb),r=t.domain;let n=10,i,a;function o(){return i=mj(n),a=yj(n),r()[0]<0?(i=jb(i),a=jb(a),e(pj,hj)):e(Eb,Tb),t}return t.base=function(u){return arguments.length?(n=+u,o()):n},t.domain=function(u){return arguments.length?(r(u),o()):r()},t.ticks=u=>{const s=r();let c=s[0],l=s[s.length-1];const f=l<c;f&&([c,l]=[l,c]);let d=i(c),h=i(l),m,v;const p=u==null?10:+u;let g=[];if(!(n%1)&&h-d<p){if(d=Math.floor(d),h=Math.ceil(h),c>0){for(;d<=h;++d)for(m=1;m<n;++m)if(v=d<0?m/a(-d):m*a(d),!(v<c)){if(v>l)break;g.push(v)}}else for(;d<=h;++d)for(m=n-1;m>=1;--m)if(v=d>0?m/a(-d):m*a(d),!(v<c)){if(v>l)break;g.push(v)}g.length*2<p&&(g=rf(c,l,p))}else g=rf(d,h,Math.min(h-d,p)).map(a);return f?g.reverse():g},t.tickFormat=(u,s)=>{if(u==null&&(u=10),s==null&&(s=n===10?"s":","),typeof s!="function"&&(!(n%1)&&(s=fi(s)).precision==null&&(s.trim=!0),s=gf(s)),u===1/0)return s;const c=Math.max(1,n*u/t.ticks().length);return l=>{let f=l/a(Math.round(i(l)));return f*n<n-.5&&(f*=n),f<=c?s(l):""}},t.nice=()=>r(Pb(r(),{floor:u=>a(Math.floor(i(u))),ceil:u=>a(Math.ceil(i(u)))})),t}function Cb(){const e=bf(Ba()).domain([1,10]);return e.copy=()=>li(e,Cb()).base(e.base()),vt.apply(e,arguments),e}function $b(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Mb(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function xf(e){var t=1,r=e($b(t),Mb(t));return r.constant=function(n){return arguments.length?e($b(t=+n),Mb(t)):t},or(r)}function Ib(){var e=xf(Ba());return e.copy=function(){return li(e,Ib()).constant(e.constant())},vt.apply(e,arguments)}function kb(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function gj(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function bj(e){return e<0?-e*e:e*e}function wf(e){var t=e(Je,Je),r=1;function n(){return r===1?e(Je,Je):r===.5?e(gj,bj):e(kb(r),kb(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},or(t)}function Of(){var e=wf(Ba());return e.copy=function(){return li(e,Of()).exponent(e.exponent())},vt.apply(e,arguments),e}function xj(){return Of.apply(null,arguments).exponent(.5)}function Db(e){return Math.sign(e)*e*e}function wj(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function Nb(){var e=yf(),t=[0,1],r=!1,n;function i(a){var o=wj(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(Db(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,qa)).map(Db)),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 Nb(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},vt.apply(i,arguments),or(i)}function Rb(){var e=[],t=[],r=[],n;function i(){var o=0,u=Math.max(1,t.length);for(r=new Array(u-1);++o<u;)r[o-1]=PT(e,o/u);return a}function a(o){return o==null||isNaN(o=+o)?n:t[ri(r,o)]}return a.invertExtent=function(o){var u=t.indexOf(o);return u<0?[NaN,NaN]:[u>0?r[u-1]:e[0],u<r.length?r[u]:e[e.length-1]]},a.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let u of o)u!=null&&!isNaN(u=+u)&&e.push(u);return e.sort(ar),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 Rb().domain(e).range(t).unknown(n)},vt.apply(a,arguments)}function Lb(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(s){return s!=null&&s<=s?i[ri(n,s,0,r)]:a}function u(){var s=-1;for(n=new Array(r);++s<r;)n[s]=((s+1)*t-(s-r)*e)/(r+1);return o}return o.domain=function(s){return arguments.length?([e,t]=s,e=+e,t=+t,u()):[e,t]},o.range=function(s){return arguments.length?(r=(i=Array.from(s)).length-1,u()):i.slice()},o.invertExtent=function(s){var c=i.indexOf(s);return c<0?[NaN,NaN]:c<1?[e,n[0]]:c>=r?[n[r-1],t]:[n[c-1],n[c]]},o.unknown=function(s){return arguments.length&&(a=s),o},o.thresholds=function(){return n.slice()},o.copy=function(){return Lb().domain([e,t]).range(i).unknown(a)},vt.apply(or(o),arguments)}function qb(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[ri(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 qb().domain(e).range(t).unknown(r)},vt.apply(i,arguments)}const _f=new Date,Af=new Date;function Fe(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),u=i.ceil(a);return a-o<u-a?o:u},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,u)=>{const s=[];if(a=i.ceil(a),u=u==null?1:Math.floor(u),!(a<o)||!(u>0))return s;let c;do s.push(c=new Date(+a)),t(a,u),e(a);while(c<a&&a<o);return s},i.filter=a=>Fe(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,u)=>{if(o>=o)if(u<0)for(;++u<=0;)for(;t(o,-1),!a(o););else for(;--u>=0;)for(;t(o,1),!a(o););}),r&&(i.count=(a,o)=>(_f.setTime(+a),Af.setTime(+o),e(_f),e(Af),Math.floor(r(_f,Af))),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 Ua=Fe(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Ua.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Fe(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):Ua),Ua.range;const Ut=1e3,yt=Ut*60,Kt=yt*60,Gt=Kt*24,Sf=Gt*7,Bb=Gt*30,Pf=Gt*365,Ar=Fe(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Ut)},(e,t)=>(t-e)/Ut,e=>e.getUTCSeconds());Ar.range;const Ef=Fe(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ut)},(e,t)=>{e.setTime(+e+t*yt)},(e,t)=>(t-e)/yt,e=>e.getMinutes());Ef.range;const Tf=Fe(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*yt)},(e,t)=>(t-e)/yt,e=>e.getUTCMinutes());Tf.range;const jf=Fe(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ut-e.getMinutes()*yt)},(e,t)=>{e.setTime(+e+t*Kt)},(e,t)=>(t-e)/Kt,e=>e.getHours());jf.range;const Cf=Fe(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Kt)},(e,t)=>(t-e)/Kt,e=>e.getUTCHours());Cf.range;const di=Fe(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*yt)/Gt,e=>e.getDate()-1);di.range;const Ka=Fe(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Gt,e=>e.getUTCDate()-1);Ka.range;const Fb=Fe(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Gt,e=>Math.floor(e/Gt));Fb.range;function Sr(e){return Fe(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())*yt)/Sf)}const Ga=Sr(0),Ha=Sr(1),Oj=Sr(2),_j=Sr(3),nn=Sr(4),Aj=Sr(5),Sj=Sr(6);Ga.range,Ha.range,Oj.range,_j.range,nn.range,Aj.range,Sj.range;function Pr(e){return Fe(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)/Sf)}const Va=Pr(0),Ya=Pr(1),Pj=Pr(2),Ej=Pr(3),an=Pr(4),Tj=Pr(5),jj=Pr(6);Va.range,Ya.range,Pj.range,Ej.range,an.range,Tj.range,jj.range;const $f=Fe(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());$f.range;const Mf=Fe(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());Mf.range;const Ht=Fe(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());Ht.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Fe(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)}),Ht.range;const Vt=Fe(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());Vt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Fe(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)}),Vt.range;function Wb(e,t,r,n,i,a){const o=[[Ar,1,Ut],[Ar,5,5*Ut],[Ar,15,15*Ut],[Ar,30,30*Ut],[a,1,yt],[a,5,5*yt],[a,15,15*yt],[a,30,30*yt],[i,1,Kt],[i,3,3*Kt],[i,6,6*Kt],[i,12,12*Kt],[n,1,Gt],[n,2,2*Gt],[r,1,Sf],[t,1,Bb],[t,3,3*Bb],[e,1,Pf]];function u(c,l,f){const d=l<c;d&&([c,l]=[l,c]);const h=f&&typeof f.range=="function"?f:s(c,l,f),m=h?h.range(c,+l+1):[];return d?m.reverse():m}function s(c,l,f){const d=Math.abs(l-c)/f,h=tf(([,,p])=>p).right(o,d);if(h===o.length)return e.every(af(c/Pf,l/Pf,f));if(h===0)return Ua.every(Math.max(af(c,l,f),1));const[m,v]=o[d/o[h-1][2]<o[h][2]/d?h-1:h];return m.every(v)}return[u,s]}const[Cj,$j]=Wb(Vt,Mf,Va,Fb,Cf,Tf),[Mj,Ij]=Wb(Ht,$f,Ga,di,jf,Ef);function If(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 kf(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 pi(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function kj(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,u=e.months,s=e.shortMonths,c=hi(i),l=vi(i),f=hi(a),d=vi(a),h=hi(o),m=vi(o),v=hi(u),p=vi(u),g=hi(s),b=vi(s),w={a:q,A:U,b:G,B:D,c:null,d:Vb,e:Vb,f:nC,g:pC,G:vC,H:eC,I:tC,j:rC,L:Yb,m:iC,M:aC,p:L,q:B,Q:t0,s:r0,S:oC,u:uC,U:sC,V:cC,w:lC,W:fC,x:null,X:null,y:dC,Y:hC,Z:yC,"%":e0},O={a:H,A:Y,b:te,B:re,c:null,d:Zb,e:Zb,f:xC,g:CC,G:MC,H:mC,I:gC,j:bC,L:Jb,m:wC,M:OC,p:oe,q:ne,Q:t0,s:r0,S:_C,u:AC,U:SC,V:PC,w:EC,W:TC,x:null,X:null,y:jC,Y:$C,Z:IC,"%":e0},y={a:M,A:P,b:j,B:C,c:I,d:Gb,e:Gb,f:Xj,g:Kb,G:Ub,H:Hb,I:Hb,j:Gj,L:Yj,m:Kj,M:Hj,p:T,q:Uj,Q:Jj,s:Qj,S:Vj,u:qj,U:Bj,V:Fj,w:Lj,W:Wj,x:k,X:N,y:Kb,Y:Ub,Z:zj,"%":Zj};w.x=x(r,w),w.X=x(n,w),w.c=x(t,w),O.x=x(r,O),O.X=x(n,O),O.c=x(t,O);function x(F,V){return function(ee){var $=[],fe=-1,K=0,ve=F.length,we,Re,jt;for(ee instanceof Date||(ee=new Date(+ee));++fe<ve;)F.charCodeAt(fe)===37&&($.push(F.slice(K,fe)),(Re=zb[we=F.charAt(++fe)])!=null?we=F.charAt(++fe):Re=we==="e"?" ":"0",(jt=V[we])&&(we=jt(ee,Re)),$.push(we),K=fe+1);return $.push(F.slice(K,fe)),$.join("")}}function A(F,V){return function(ee){var $=pi(1900,void 0,1),fe=S($,F,ee+="",0),K,ve;if(fe!=ee.length)return null;if("Q"in $)return new Date($.Q);if("s"in $)return new Date($.s*1e3+("L"in $?$.L:0));if(V&&!("Z"in $)&&($.Z=0),"p"in $&&($.H=$.H%12+$.p*12),$.m===void 0&&($.m="q"in $?$.q:0),"V"in $){if($.V<1||$.V>53)return null;"w"in $||($.w=1),"Z"in $?(K=kf(pi($.y,0,1)),ve=K.getUTCDay(),K=ve>4||ve===0?Ya.ceil(K):Ya(K),K=Ka.offset(K,($.V-1)*7),$.y=K.getUTCFullYear(),$.m=K.getUTCMonth(),$.d=K.getUTCDate()+($.w+6)%7):(K=If(pi($.y,0,1)),ve=K.getDay(),K=ve>4||ve===0?Ha.ceil(K):Ha(K),K=di.offset(K,($.V-1)*7),$.y=K.getFullYear(),$.m=K.getMonth(),$.d=K.getDate()+($.w+6)%7)}else("W"in $||"U"in $)&&("w"in $||($.w="u"in $?$.u%7:"W"in $?1:0),ve="Z"in $?kf(pi($.y,0,1)).getUTCDay():If(pi($.y,0,1)).getDay(),$.m=0,$.d="W"in $?($.w+6)%7+$.W*7-(ve+5)%7:$.w+$.U*7-(ve+6)%7);return"Z"in $?($.H+=$.Z/100|0,$.M+=$.Z%100,kf($)):If($)}}function S(F,V,ee,$){for(var fe=0,K=V.length,ve=ee.length,we,Re;fe<K;){if($>=ve)return-1;if(we=V.charCodeAt(fe++),we===37){if(we=V.charAt(fe++),Re=y[we in zb?V.charAt(fe++):we],!Re||($=Re(F,ee,$))<0)return-1}else if(we!=ee.charCodeAt($++))return-1}return $}function T(F,V,ee){var $=c.exec(V.slice(ee));return $?(F.p=l.get($[0].toLowerCase()),ee+$[0].length):-1}function M(F,V,ee){var $=h.exec(V.slice(ee));return $?(F.w=m.get($[0].toLowerCase()),ee+$[0].length):-1}function P(F,V,ee){var $=f.exec(V.slice(ee));return $?(F.w=d.get($[0].toLowerCase()),ee+$[0].length):-1}function j(F,V,ee){var $=g.exec(V.slice(ee));return $?(F.m=b.get($[0].toLowerCase()),ee+$[0].length):-1}function C(F,V,ee){var $=v.exec(V.slice(ee));return $?(F.m=p.get($[0].toLowerCase()),ee+$[0].length):-1}function I(F,V,ee){return S(F,t,V,ee)}function k(F,V,ee){return S(F,r,V,ee)}function N(F,V,ee){return S(F,n,V,ee)}function q(F){return o[F.getDay()]}function U(F){return a[F.getDay()]}function G(F){return s[F.getMonth()]}function D(F){return u[F.getMonth()]}function L(F){return i[+(F.getHours()>=12)]}function B(F){return 1+~~(F.getMonth()/3)}function H(F){return o[F.getUTCDay()]}function Y(F){return a[F.getUTCDay()]}function te(F){return s[F.getUTCMonth()]}function re(F){return u[F.getUTCMonth()]}function oe(F){return i[+(F.getUTCHours()>=12)]}function ne(F){return 1+~~(F.getUTCMonth()/3)}return{format:function(F){var V=x(F+="",w);return V.toString=function(){return F},V},parse:function(F){var V=A(F+="",!1);return V.toString=function(){return F},V},utcFormat:function(F){var V=x(F+="",O);return V.toString=function(){return F},V},utcParse:function(F){var V=A(F+="",!0);return V.toString=function(){return F},V}}}var zb={"-":"",_:" ",0:"0"},Ue=/^\s*\d+/,Dj=/^%/,Nj=/[\\^$*+?|[\]().{}]/g;function he(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 Rj(e){return e.replace(Nj,"\\$&")}function hi(e){return new RegExp("^(?:"+e.map(Rj).join("|")+")","i")}function vi(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function Lj(e,t,r){var n=Ue.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function qj(e,t,r){var n=Ue.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function Bj(e,t,r){var n=Ue.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function Fj(e,t,r){var n=Ue.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function Wj(e,t,r){var n=Ue.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function Ub(e,t,r){var n=Ue.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function Kb(e,t,r){var n=Ue.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function zj(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 Uj(e,t,r){var n=Ue.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function Kj(e,t,r){var n=Ue.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function Gb(e,t,r){var n=Ue.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function Gj(e,t,r){var n=Ue.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function Hb(e,t,r){var n=Ue.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function Hj(e,t,r){var n=Ue.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function Vj(e,t,r){var n=Ue.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function Yj(e,t,r){var n=Ue.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function Xj(e,t,r){var n=Ue.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function Zj(e,t,r){var n=Dj.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function Jj(e,t,r){var n=Ue.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function Qj(e,t,r){var n=Ue.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function Vb(e,t){return he(e.getDate(),t,2)}function eC(e,t){return he(e.getHours(),t,2)}function tC(e,t){return he(e.getHours()%12||12,t,2)}function rC(e,t){return he(1+di.count(Ht(e),e),t,3)}function Yb(e,t){return he(e.getMilliseconds(),t,3)}function nC(e,t){return Yb(e,t)+"000"}function iC(e,t){return he(e.getMonth()+1,t,2)}function aC(e,t){return he(e.getMinutes(),t,2)}function oC(e,t){return he(e.getSeconds(),t,2)}function uC(e){var t=e.getDay();return t===0?7:t}function sC(e,t){return he(Ga.count(Ht(e)-1,e),t,2)}function Xb(e){var t=e.getDay();return t>=4||t===0?nn(e):nn.ceil(e)}function cC(e,t){return e=Xb(e),he(nn.count(Ht(e),e)+(Ht(e).getDay()===4),t,2)}function lC(e){return e.getDay()}function fC(e,t){return he(Ha.count(Ht(e)-1,e),t,2)}function dC(e,t){return he(e.getFullYear()%100,t,2)}function pC(e,t){return e=Xb(e),he(e.getFullYear()%100,t,2)}function hC(e,t){return he(e.getFullYear()%1e4,t,4)}function vC(e,t){var r=e.getDay();return e=r>=4||r===0?nn(e):nn.ceil(e),he(e.getFullYear()%1e4,t,4)}function yC(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+he(t/60|0,"0",2)+he(t%60,"0",2)}function Zb(e,t){return he(e.getUTCDate(),t,2)}function mC(e,t){return he(e.getUTCHours(),t,2)}function gC(e,t){return he(e.getUTCHours()%12||12,t,2)}function bC(e,t){return he(1+Ka.count(Vt(e),e),t,3)}function Jb(e,t){return he(e.getUTCMilliseconds(),t,3)}function xC(e,t){return Jb(e,t)+"000"}function wC(e,t){return he(e.getUTCMonth()+1,t,2)}function OC(e,t){return he(e.getUTCMinutes(),t,2)}function _C(e,t){return he(e.getUTCSeconds(),t,2)}function AC(e){var t=e.getUTCDay();return t===0?7:t}function SC(e,t){return he(Va.count(Vt(e)-1,e),t,2)}function Qb(e){var t=e.getUTCDay();return t>=4||t===0?an(e):an.ceil(e)}function PC(e,t){return e=Qb(e),he(an.count(Vt(e),e)+(Vt(e).getUTCDay()===4),t,2)}function EC(e){return e.getUTCDay()}function TC(e,t){return he(Ya.count(Vt(e)-1,e),t,2)}function jC(e,t){return he(e.getUTCFullYear()%100,t,2)}function CC(e,t){return e=Qb(e),he(e.getUTCFullYear()%100,t,2)}function $C(e,t){return he(e.getUTCFullYear()%1e4,t,4)}function MC(e,t){var r=e.getUTCDay();return e=r>=4||r===0?an(e):an.ceil(e),he(e.getUTCFullYear()%1e4,t,4)}function IC(){return"+0000"}function e0(){return"%"}function t0(e){return+e}function r0(e){return Math.floor(+e/1e3)}var on,n0,i0;kC({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 kC(e){return on=kj(e),n0=on.format,on.parse,i0=on.utcFormat,on.utcParse,on}function DC(e){return new Date(e)}function NC(e){return e instanceof Date?+e:+new Date(+e)}function Df(e,t,r,n,i,a,o,u,s,c){var l=yf(),f=l.invert,d=l.domain,h=c(".%L"),m=c(":%S"),v=c("%I:%M"),p=c("%I %p"),g=c("%a %d"),b=c("%b %d"),w=c("%B"),O=c("%Y");function y(x){return(s(x)<x?h:u(x)<x?m:o(x)<x?v:a(x)<x?p:n(x)<x?i(x)<x?g:b:r(x)<x?w:O)(x)}return l.invert=function(x){return new Date(f(x))},l.domain=function(x){return arguments.length?d(Array.from(x,NC)):d().map(DC)},l.ticks=function(x){var A=d();return e(A[0],A[A.length-1],x??10)},l.tickFormat=function(x,A){return A==null?y:c(A)},l.nice=function(x){var A=d();return(!x||typeof x.range!="function")&&(x=t(A[0],A[A.length-1],x??10)),x?d(Pb(A,x)):l},l.copy=function(){return li(l,Df(e,t,r,n,i,a,o,u,s,c))},l}function RC(){return vt.apply(Df(Mj,Ij,Ht,$f,Ga,di,jf,Ef,Ar,n0).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function LC(){return vt.apply(Df(Cj,$j,Vt,Mf,Va,Ka,Cf,Tf,Ar,i0).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Xa(){var e=0,t=1,r,n,i,a,o=Je,u=!1,s;function c(f){return f==null||isNaN(f=+f)?s:o(i===0?.5:(f=(a(f)-r)*i,u?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?(u=!!f,c):u},c.interpolator=function(f){return arguments.length?(o=f,c):o};function l(f){return function(d){var h,m;return arguments.length?([h,m]=d,o=f(h,m),c):[o(0),o(1)]}}return c.range=l(tn),c.rangeRound=l(hf),c.unknown=function(f){return arguments.length?(s=f,c):s},function(f){return a=f,r=f(e),n=f(t),i=r===n?0:1/(n-r),c}}function ur(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function a0(){var e=or(Xa()(Je));return e.copy=function(){return ur(e,a0())},zt.apply(e,arguments)}function o0(){var e=bf(Xa()).domain([1,10]);return e.copy=function(){return ur(e,o0()).base(e.base())},zt.apply(e,arguments)}function u0(){var e=xf(Xa());return e.copy=function(){return ur(e,u0()).constant(e.constant())},zt.apply(e,arguments)}function Nf(){var e=wf(Xa());return e.copy=function(){return ur(e,Nf()).exponent(e.exponent())},zt.apply(e,arguments)}function qC(){return Nf.apply(null,arguments).exponent(.5)}function s0(){var e=[],t=Je;function r(n){if(n!=null&&!isNaN(n=+n))return t((ri(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(ar),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)=>ST(e,a/n))},r.copy=function(){return s0(t).domain(e)},zt.apply(r,arguments)}function Za(){var e=0,t=.5,r=1,n=1,i,a,o,u,s,c=Je,l,f=!1,d;function h(v){return isNaN(v=+v)?d:(v=.5+((v=+l(v))-a)*(n*v<n*a?u:s),c(f?Math.max(0,Math.min(1,v)):v))}h.domain=function(v){return arguments.length?([e,t,r]=v,i=l(e=+e),a=l(t=+t),o=l(r=+r),u=i===a?0:.5/(a-i),s=a===o?0:.5/(o-a),n=a<i?-1:1,h):[e,t,r]},h.clamp=function(v){return arguments.length?(f=!!v,h):f},h.interpolator=function(v){return arguments.length?(c=v,h):c};function m(v){return function(p){var g,b,w;return arguments.length?([g,b,w]=p,c=ZT(v,[g,b,w]),h):[c(0),c(.5),c(1)]}}return h.range=m(tn),h.rangeRound=m(hf),h.unknown=function(v){return arguments.length?(d=v,h):d},function(v){return l=v,i=v(e),a=v(t),o=v(r),u=i===a?0:.5/(a-i),s=a===o?0:.5/(o-a),n=a<i?-1:1,h}}function c0(){var e=or(Za()(Je));return e.copy=function(){return ur(e,c0())},zt.apply(e,arguments)}function l0(){var e=bf(Za()).domain([.1,1,10]);return e.copy=function(){return ur(e,l0()).base(e.base())},zt.apply(e,arguments)}function f0(){var e=xf(Za());return e.copy=function(){return ur(e,f0()).constant(e.constant())},zt.apply(e,arguments)}function Rf(){var e=wf(Za());return e.copy=function(){return ur(e,Rf()).exponent(e.exponent())},zt.apply(e,arguments)}function BC(){return Rf.apply(null,arguments).exponent(.5)}const d0=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:ii,scaleDiverging:c0,scaleDivergingLog:l0,scaleDivergingPow:Rf,scaleDivergingSqrt:BC,scaleDivergingSymlog:f0,scaleIdentity:Sb,scaleImplicit:of,scaleLinear:za,scaleLog:Cb,scaleOrdinal:uf,scalePoint:ai,scalePow:Of,scaleQuantile:Rb,scaleQuantize:Lb,scaleRadial:Nb,scaleSequential:a0,scaleSequentialLog:o0,scaleSequentialPow:Nf,scaleSequentialQuantile:s0,scaleSequentialSqrt:qC,scaleSequentialSymlog:u0,scaleSqrt:xj,scaleSymlog:Ib,scaleThreshold:qb,scaleTime:RC,scaleUtc:LC,tickFormat:Ab},Symbol.toStringTag,{value:"Module"}));var Lf,p0;function Ja(){if(p0)return Lf;p0=1;var e=Wr();function t(r,n,i){for(var a=-1,o=r.length;++a<o;){var u=r[a],s=n(u);if(s!=null&&(c===void 0?s===s&&!e(s):i(s,c)))var c=s,l=u}return l}return Lf=t,Lf}var qf,h0;function v0(){if(h0)return qf;h0=1;function e(t,r){return t>r}return qf=e,qf}var Bf,y0;function FC(){if(y0)return Bf;y0=1;var e=Ja(),t=v0(),r=Vr();function n(i){return i&&i.length?e(i,r,t):void 0}return Bf=n,Bf}var WC=FC();const sr=_e(WC);var Ff,m0;function g0(){if(m0)return Ff;m0=1;function e(t,r){return t<r}return Ff=e,Ff}var Wf,b0;function zC(){if(b0)return Wf;b0=1;var e=Ja(),t=g0(),r=Vr();function n(i){return i&&i.length?e(i,r,t):void 0}return Wf=n,Wf}var UC=zC();const Qa=_e(UC);var zf,x0;function KC(){if(x0)return zf;x0=1;var e=is(),t=Mt(),r=Ym(),n=et();function i(a,o){var u=n(a)?e:r;return u(a,t(o,3))}return zf=i,zf}var Uf,w0;function GC(){if(w0)return Uf;w0=1;var e=Fm(),t=KC();function r(n,i){return e(t(n,i),1)}return Uf=r,Uf}var HC=GC();const VC=_e(HC);var Kf,O0;function YC(){if(O0)return Kf;O0=1;var e=Uc();function t(r,n){return e(r,n)}return Kf=t,Kf}var XC=YC();const Er=_e(XC);var un=1e9,ZC={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},Vf,$e=!0,mt="[DecimalError] ",Tr=mt+"Invalid argument: ",Gf=mt+"Exponent out of range: ",sn=Math.floor,jr=Math.pow,JC=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,ut,Ke=1e7,Ce=7,_0=9007199254740991,eo=sn(_0/Ce),J={};J.absoluteValue=J.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},J.comparedTo=J.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},J.decimalPlaces=J.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*Ce;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r},J.dividedBy=J.div=function(e){return Yt(this,new this.constructor(e))},J.dividedToIntegerBy=J.idiv=function(e){var t=this,r=t.constructor;return Se(Yt(t,new r(e),0,1),r.precision)},J.equals=J.eq=function(e){return!this.cmp(e)},J.exponent=function(){return De(this)},J.greaterThan=J.gt=function(e){return this.cmp(e)>0},J.greaterThanOrEqualTo=J.gte=function(e){return this.cmp(e)>=0},J.isInteger=J.isint=function(){return this.e>this.d.length-2},J.isNegative=J.isneg=function(){return this.s<0},J.isPositive=J.ispos=function(){return this.s>0},J.isZero=function(){return this.s===0},J.lessThan=J.lt=function(e){return this.cmp(e)<0},J.lessThanOrEqualTo=J.lte=function(e){return this.cmp(e)<1},J.logarithm=J.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(ut))throw Error(mt+"NaN");if(r.s<1)throw Error(mt+(r.s?"NaN":"-Infinity"));return r.eq(ut)?new n(0):($e=!1,t=Yt(yi(r,a),yi(e,a),a),$e=!0,Se(t,i))},J.minus=J.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?E0(t,e):A0(t,(e.s=-e.s,e))},J.modulo=J.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(mt+"NaN");return r.s?($e=!1,t=Yt(r,e,0,1).times(e),$e=!0,r.minus(t)):Se(new n(r),i)},J.naturalExponential=J.exp=function(){return S0(this)},J.naturalLogarithm=J.ln=function(){return yi(this)},J.negated=J.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},J.plus=J.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?A0(t,e):E0(t,(e.s=-e.s,e))},J.precision=J.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Tr+e);if(t=De(i)+1,n=i.d.length-1,r=n*Ce+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},J.squareRoot=J.sqrt=function(){var e,t,r,n,i,a,o,u=this,s=u.constructor;if(u.s<1){if(!u.s)return new s(0);throw Error(mt+"NaN")}for(e=De(u),$e=!1,i=Math.sqrt(+u),i==0||i==1/0?(t=Dt(u.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=sn((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 s(t)):n=new s(i.toString()),r=s.precision,i=o=r+3;;)if(a=n,n=a.plus(Yt(u,a,o+2)).times(.5),Dt(a.d).slice(0,o)===(t=Dt(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(Se(a,r+1,0),a.times(a).eq(u)){n=a;break}}else if(t!="9999")break;o+=4}return $e=!0,Se(n,r)},J.times=J.mul=function(e){var t,r,n,i,a,o,u,s,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,s=d.length,c=h.length,s<c&&(a=d,d=h,h=a,o=s,s=c,c=o),a=[],o=s+c,n=o;n--;)a.push(0);for(n=c;--n>=0;){for(t=0,i=s+n;i>n;)u=a[i]+h[n]*d[i-n-1]+t,a[i--]=u%Ke|0,t=u/Ke|0;a[i]=(a[i]+t)%Ke|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,$e?Se(e,f.precision):e},J.toDecimalPlaces=J.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(kt(e,0,un),t===void 0?t=n.rounding:kt(t,0,8),Se(r,e+De(r)+1,t))},J.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=Cr(n,!0):(kt(e,0,un),t===void 0?t=i.rounding:kt(t,0,8),n=Se(new i(n),e+1,t),r=Cr(n,!0,e+1)),r},J.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?Cr(i):(kt(e,0,un),t===void 0?t=a.rounding:kt(t,0,8),n=Se(new a(i),e+De(i)+1,t),r=Cr(n.abs(),!1,e+De(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)},J.toInteger=J.toint=function(){var e=this,t=e.constructor;return Se(new t(e),De(e)+1,t.rounding)},J.toNumber=function(){return+this},J.toPower=J.pow=function(e){var t,r,n,i,a,o,u=this,s=u.constructor,c=12,l=+(e=new s(e));if(!e.s)return new s(ut);if(u=new s(u),!u.s){if(e.s<1)throw Error(mt+"Infinity");return u}if(u.eq(ut))return u;if(n=s.precision,e.eq(ut))return Se(u,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=u.s,o){if((r=l<0?-l:l)<=_0){for(i=new s(ut),t=Math.ceil(n/Ce+4),$e=!1;r%2&&(i=i.times(u),T0(i.d,t)),r=sn(r/2),r!==0;)u=u.times(u),T0(u.d,t);return $e=!0,e.s<0?new s(ut).div(i):Se(i,n)}}else if(a<0)throw Error(mt+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,u.s=1,$e=!1,i=e.times(yi(u,n+c)),$e=!0,i=S0(i),i.s=a,i},J.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=De(i),n=Cr(i,r<=a.toExpNeg||r>=a.toExpPos)):(kt(e,1,un),t===void 0?t=a.rounding:kt(t,0,8),i=Se(new a(i),e,t),r=De(i),n=Cr(i,e<=r||r<=a.toExpNeg,e)),n},J.toSignificantDigits=J.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(kt(e,1,un),t===void 0?t=n.rounding:kt(t,0,8)),Se(new n(r),e,t)},J.toString=J.valueOf=J.val=J.toJSON=J[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=De(e),r=e.constructor;return Cr(e,t<=r.toExpNeg||t>=r.toExpPos)};function A0(e,t){var r,n,i,a,o,u,s,c,l=e.constructor,f=l.precision;if(!e.s||!t.s)return t.s||(t=new l(e)),$e?Se(t,f):t;if(s=e.d,c=t.d,o=e.e,i=t.e,s=s.slice(),a=o-i,a){for(a<0?(n=s,a=-a,u=c.length):(n=c,i=o,u=s.length),o=Math.ceil(f/Ce),u=o>u?o+1:u+1,a>u&&(a=u,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(u=s.length,a=c.length,u-a<0&&(a=u,n=c,c=s,s=n),r=0;a;)r=(s[--a]=s[a]+c[a]+r)/Ke|0,s[a]%=Ke;for(r&&(s.unshift(r),++i),u=s.length;s[--u]==0;)s.pop();return t.d=s,t.e=i,$e?Se(t,f):t}function kt(e,t,r){if(e!==~~e||e<t||e>r)throw Error(Tr+e)}function Dt(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=Ce-n.length,r&&(a+=cr(r)),a+=n;o=e[t],n=o+"",r=Ce-n.length,r&&(a+=cr(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,u=n.length;for(n=n.slice();u--;)a=n[u]*i+o,n[u]=a%Ke|0,o=a/Ke|0;return o&&n.unshift(o),n}function t(n,i,a,o){var u,s;if(a!=o)s=a>o?1:-1;else for(u=s=0;u<a;u++)if(n[u]!=i[u]){s=n[u]>i[u]?1:-1;break}return s}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]<i[a]?1:0,n[a]=o*Ke+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o){var u,s,c,l,f,d,h,m,v,p,g,b,w,O,y,x,A,S,T=n.constructor,M=n.s==i.s?1:-1,P=n.d,j=i.d;if(!n.s)return new T(n);if(!i.s)throw Error(mt+"Division by zero");for(s=n.e-i.e,A=j.length,y=P.length,h=new T(M),m=h.d=[],c=0;j[c]==(P[c]||0);)++c;if(j[c]>(P[c]||0)&&--s,a==null?b=a=T.precision:o?b=a+(De(n)-De(i))+1:b=a,b<0)return new T(0);if(b=b/Ce+2|0,c=0,A==1)for(l=0,j=j[0],b++;(c<y||l)&&b--;c++)w=l*Ke+(P[c]||0),m[c]=w/j|0,l=w%j|0;else{for(l=Ke/(j[0]+1)|0,l>1&&(j=e(j,l),P=e(P,l),A=j.length,y=P.length),O=A,v=P.slice(0,A),p=v.length;p<A;)v[p++]=0;S=j.slice(),S.unshift(0),x=j[0],j[1]>=Ke/2&&++x;do l=0,u=t(j,v,A,p),u<0?(g=v[0],A!=p&&(g=g*Ke+(v[1]||0)),l=g/x|0,l>1?(l>=Ke&&(l=Ke-1),f=e(j,l),d=f.length,p=v.length,u=t(f,v,d,p),u==1&&(l--,r(f,A<d?S:j,d))):(l==0&&(u=l=1),f=j.slice()),d=f.length,d<p&&f.unshift(0),r(v,f,p),u==-1&&(p=v.length,u=t(j,v,A,p),u<1&&(l++,r(v,A<p?S:j,p))),p=v.length):u===0&&(l++,v=[0]),m[c++]=l,u&&v[0]?v[p++]=P[O]||0:(v=[P[O]],p=1);while((O++<y||v[0]!==void 0)&&b--)}return m[0]||m.shift(),h.e=s,Se(h,o?a+De(h)+1:a)}})();function S0(e,t){var r,n,i,a,o,u,s=0,c=0,l=e.constructor,f=l.precision;if(De(e)>16)throw Error(Gf+De(e));if(!e.s)return new l(ut);for($e=!1,u=f,o=new l(.03125);e.abs().gte(.1);)e=e.times(o),c+=5;for(n=Math.log(jr(2,c))/Math.LN10*2+5|0,u+=n,r=i=a=new l(ut),l.precision=u;;){if(i=Se(i.times(e),u),r=r.times(++s),o=a.plus(Yt(i,r,u)),Dt(o.d).slice(0,u)===Dt(a.d).slice(0,u)){for(;c--;)a=Se(a.times(a),u);return l.precision=f,t==null?($e=!0,Se(a,f)):a}a=o}}function De(e){for(var t=e.e*Ce,r=e.d[0];r>=10;r/=10)t++;return t}function Hf(e,t,r){if(t>e.LN10.sd())throw $e=!0,r&&(e.precision=r),Error(mt+"LN10 precision limit exceeded");return Se(new e(e.LN10),t)}function cr(e){for(var t="";e--;)t+="0";return t}function yi(e,t){var r,n,i,a,o,u,s,c,l,f=1,d=10,h=e,m=h.d,v=h.constructor,p=v.precision;if(h.s<1)throw Error(mt+(h.s?"NaN":"-Infinity"));if(h.eq(ut))return new v(0);if(t==null?($e=!1,c=p):c=t,h.eq(10))return t==null&&($e=!0),Hf(v,c);if(c+=d,v.precision=c,r=Dt(m),n=r.charAt(0),a=De(h),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)h=h.times(e),r=Dt(h.d),n=r.charAt(0),f++;a=De(h),n>1?(h=new v("0."+r),a++):h=new v(n+"."+r.slice(1))}else return s=Hf(v,c+2,p).times(a+""),h=yi(new v(n+"."+r.slice(1)),c-d).plus(s),v.precision=p,t==null?($e=!0,Se(h,p)):h;for(u=o=h=Yt(h.minus(ut),h.plus(ut),c),l=Se(h.times(h),c),i=3;;){if(o=Se(o.times(l),c),s=u.plus(Yt(o,new v(i),c)),Dt(s.d).slice(0,c)===Dt(u.d).slice(0,c))return u=u.times(2),a!==0&&(u=u.plus(Hf(v,c+2,p).times(a+""))),u=Yt(u,new v(f),c),v.precision=p,t==null?($e=!0,Se(u,p)):u;u=s,i+=2}}function P0(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=sn(r/Ce),e.d=[],n=(r+1)%Ce,r<0&&(n+=Ce),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=Ce;n<i;)e.d.push(+t.slice(n,n+=Ce));t=t.slice(n),n=Ce-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),$e&&(e.e>eo||e.e<-eo))throw Error(Gf+r)}else e.s=0,e.e=0,e.d=[0];return e}function Se(e,t,r){var n,i,a,o,u,s,c,l,f=e.d;for(o=1,a=f[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=Ce,i=t,c=f[l=0];else{if(l=Math.ceil((n+1)/Ce),a=f.length,l>=a)return e;for(c=a=f[l],o=1;a>=10;a/=10)o++;n%=Ce,i=n-Ce+o}if(r!==void 0&&(a=jr(10,o-i-1),u=c/a%10|0,s=t<0||f[l+1]!==void 0||c%a,s=r<4?(u||s)&&(r==0||r==(e.s<0?3:2)):u>5||u==5&&(r==4||s||r==6&&(n>0?i>0?c/jr(10,o-i):0:f[l-1])%10&1||r==(e.s<0?8:7))),t<1||!f[0])return s?(a=De(e),f.length=1,t=t-a-1,f[0]=jr(10,(Ce-t%Ce)%Ce),e.e=sn(-t/Ce)||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=jr(10,Ce-n),f[l]=i>0?(c/jr(10,o-i)%jr(10,i)|0)*a:0),s)for(;;)if(l==0){(f[0]+=a)==Ke&&(f[0]=1,++e.e);break}else{if(f[l]+=a,f[l]!=Ke)break;f[l--]=0,a=1}for(n=f.length;f[--n]===0;)f.pop();if($e&&(e.e>eo||e.e<-eo))throw Error(Gf+De(e));return e}function E0(e,t){var r,n,i,a,o,u,s,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),$e?Se(t,h):t;if(s=e.d,f=t.d,n=t.e,c=e.e,s=s.slice(),o=c-n,o){for(l=o<0,l?(r=s,o=-o,u=f.length):(r=f,n=c,u=s.length),i=Math.max(Math.ceil(h/Ce),u)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=s.length,u=f.length,l=i<u,l&&(u=i),i=0;i<u;i++)if(s[i]!=f[i]){l=s[i]<f[i];break}o=0}for(l&&(r=s,s=f,f=r,t.s=-t.s),u=s.length,i=f.length-u;i>0;--i)s[u++]=0;for(i=f.length;i>o;){if(s[--i]<f[i]){for(a=i;a&&s[--a]===0;)s[a]=Ke-1;--s[a],s[i]+=Ke}s[i]-=f[i]}for(;s[--u]===0;)s.pop();for(;s[0]===0;s.shift())--n;return s[0]?(t.d=s,t.e=n,$e?Se(t,h):t):new d(0)}function Cr(e,t,r){var n,i=De(e),a=Dt(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+cr(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+cr(-i-1)+a,r&&(n=r-o)>0&&(a+=cr(n))):i>=o?(a+=cr(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+cr(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=cr(n))),e.s<0?"-"+a:a}function T0(e,t){if(e.length>t)return e.length=t,!0}function j0(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(Tr+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 P0(o,a.toString())}else if(typeof a!="string")throw Error(Tr+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,JC.test(a))P0(o,a);else throw Error(Tr+a)}if(i.prototype=J,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=j0,i.config=i.set=QC,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 QC(e){if(!e||typeof e!="object")throw Error(mt+"Object expected");var t,r,n,i=["precision",1,un,"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(sn(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(Tr+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Tr+r+": "+n);return this}var Vf=j0(ZC);ut=new Vf(1);const Ae=Vf;function e$(e){return i$(e)||n$(e)||r$(e)||t$()}function t$(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
26
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function r$(e,t){if(e){if(typeof e=="string")return Yf(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Yf(e,t)}}function n$(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function i$(e){if(Array.isArray(e))return Yf(e)}function Yf(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var a$=function(t){return t},C0={},$0=function(t){return t===C0},M0=function(t){return function r(){return arguments.length===0||arguments.length===1&&$0(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},o$=function e(t,r){return t===1?r:M0(function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];var o=i.filter(function(u){return u!==C0}).length;return o>=t?r.apply(void 0,i):e(t-o,M0(function(){for(var u=arguments.length,s=new Array(u),c=0;c<u;c++)s[c]=arguments[c];var l=i.map(function(f){return $0(f)?s.shift():f});return r.apply(void 0,e$(l).concat(s))}))})},to=function(t){return o$(t.length,t)},Xf=function(t,r){for(var n=[],i=t;i<r;++i)n[i-t]=i;return n},u$=to(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),s$=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return a$;var i=r.reverse(),a=i[0],o=i.slice(1);return function(){return o.reduce(function(u,s){return s(u)},a.apply(void 0,arguments))}},Zf=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},I0=function(t){var r=null,n=null;return function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r&&a.every(function(u,s){return u===r[s]})||(r=a,n=t.apply(void 0,a)),n}};function c$(e){var t;return e===0?t=1:t=Math.floor(new Ae(e).abs().log(10).toNumber())+1,t}function l$(e,t,r){for(var n=new Ae(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var f$=to(function(e,t,r){var n=+e,i=+t;return n+r*(i-n)}),d$=to(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),p$=to(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const ro={rangeStep:l$,getDigitCount:c$,interpolateNumber:f$,uninterpolateNumber:d$,uninterpolateTruncation:p$};function Jf(e){return y$(e)||v$(e)||k0(e)||h$()}function h$(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
27
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function v$(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function y$(e){if(Array.isArray(e))return Qf(e)}function mi(e,t){return b$(e)||g$(e,t)||k0(e,t)||m$()}function m$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
28
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function k0(e,t){if(e){if(typeof e=="string")return Qf(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Qf(e,t)}}function Qf(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function g$(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),u;!(n=(u=o.next()).done)&&(r.push(u.value),!(t&&r.length===t));n=!0);}catch(s){i=!0,a=s}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}return r}}function b$(e){if(Array.isArray(e))return e}function D0(e){var t=mi(e,2),r=t[0],n=t[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function N0(e,t,r){if(e.lte(0))return new Ae(0);var n=ro.getDigitCount(e.toNumber()),i=new Ae(10).pow(n),a=e.div(i),o=n!==1?.05:.1,u=new Ae(Math.ceil(a.div(o).toNumber())).add(r).mul(o),s=u.mul(i);return t?s:new Ae(Math.ceil(s))}function x$(e,t,r){var n=1,i=new Ae(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new Ae(10).pow(ro.getDigitCount(e)-1),i=new Ae(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new Ae(Math.floor(e)))}else e===0?i=new Ae(Math.floor((t-1)/2)):r||(i=new Ae(Math.floor(e)));var o=Math.floor((t-1)/2),u=s$(u$(function(s){return i.add(new Ae(s-o).mul(n)).toNumber()}),Xf);return u(0,t)}function R0(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new Ae(0),tickMin:new Ae(0),tickMax:new Ae(0)};var a=N0(new Ae(t).sub(e).div(r-1),n,i),o;e<=0&&t>=0?o=new Ae(0):(o=new Ae(e).add(t).div(2),o=o.sub(new Ae(o).mod(a)));var u=Math.ceil(o.sub(e).div(a).toNumber()),s=Math.ceil(new Ae(t).sub(o).div(a).toNumber()),c=u+s+1;return c>r?R0(e,t,r,n,i+1):(c<r&&(s=t>0?s+(r-c):s,u=t>0?u:u+(r-c)),{step:a,tickMin:o.sub(new Ae(u).mul(a)),tickMax:o.add(new Ae(s).mul(a))})}function w$(e){var t=mi(e,2),r=t[0],n=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(i,2),u=D0([r,n]),s=mi(u,2),c=s[0],l=s[1];if(c===-1/0||l===1/0){var f=l===1/0?[c].concat(Jf(Xf(0,i-1).map(function(){return 1/0}))):[].concat(Jf(Xf(0,i-1).map(function(){return-1/0})),[l]);return r>n?Zf(f):f}if(c===l)return x$(c,i,a);var d=R0(c,l,o,a),h=d.step,m=d.tickMin,v=d.tickMax,p=ro.rangeStep(m,v.add(new Ae(.1).mul(h)),h);return r>n?Zf(p):p}function O$(e,t){var r=mi(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=D0([n,i]),u=mi(o,2),s=u[0],c=u[1];if(s===-1/0||c===1/0)return[n,i];if(s===c)return[s];var l=Math.max(t,2),f=N0(new Ae(c).sub(s).div(l-1),a,0),d=[].concat(Jf(ro.rangeStep(new Ae(s),new Ae(c).sub(new Ae(.99).mul(f)),f)),[c]);return n>i?Zf(d):d}var _$=I0(w$),A$=I0(O$),S$=process.env.NODE_ENV==="production",ed="Invariant failed";function rt(e,t){if(S$)throw new Error(ed);var r=typeof t=="function"?t():t,n=r?"".concat(ed,": ").concat(r):ed;throw new Error(n)}var P$=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function cn(e){"@babel/helpers - typeof";return cn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cn(e)}function no(){return no=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},no.apply(this,arguments)}function E$(e,t){return $$(e)||C$(e,t)||j$(e,t)||T$()}function T$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
29
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function j$(e,t){if(e){if(typeof e=="string")return L0(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return L0(e,t)}}function L0(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function C$(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(l){c=!0,i=l}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function $$(e){if(Array.isArray(e))return e}function M$(e,t){if(e==null)return{};var r=I$(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function I$(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function k$(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function D$(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,F0(n.key),n)}}function N$(e,t,r){return t&&D$(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function R$(e,t,r){return t=io(t),L$(e,q0()?Reflect.construct(t,r||[],io(e).constructor):t.apply(e,r))}function L$(e,t){if(t&&(cn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return q$(e)}function q$(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function q0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(q0=function(){return!!e})()}function io(e){return io=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},io(e)}function B$(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&td(e,t)}function td(e,t){return td=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},td(e,t)}function B0(e,t,r){return t=F0(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function F0(e){var t=F$(e,"string");return cn(t)=="symbol"?t:t+""}function F$(e,t){if(cn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(cn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var gi=(function(e){function t(){return k$(this,t),R$(this,t,arguments)}return B$(t,e),N$(t,[{key:"render",value:function(){var n=this.props,i=n.offset,a=n.layout,o=n.width,u=n.dataKey,s=n.data,c=n.dataPointFormatter,l=n.xAxis,f=n.yAxis,d=M$(n,P$),h=Q(d,!1);this.props.direction==="x"&&l.type!=="number"&&(process.env.NODE_ENV!=="production"?rt(!1,'ErrorBar requires Axis type property to be "number".'):rt());var m=s.map(function(v){var p=c(v,u),g=p.x,b=p.y,w=p.value,O=p.errorVal;if(!O)return null;var y=[],x,A;if(Array.isArray(O)){var S=E$(O,2);x=S[0],A=S[1]}else x=A=O;if(a==="vertical"){var T=l.scale,M=b+i,P=M+o,j=M-o,C=T(w-x),I=T(w+A);y.push({x1:I,y1:P,x2:I,y2:j}),y.push({x1:C,y1:M,x2:I,y2:M}),y.push({x1:C,y1:P,x2:C,y2:j})}else if(a==="horizontal"){var k=f.scale,N=g+i,q=N-o,U=N+o,G=k(w-x),D=k(w+A);y.push({x1:q,y1:D,x2:U,y2:D}),y.push({x1:N,y1:G,x2:N,y2:D}),y.push({x1:q,y1:G,x2:U,y2:G})}return _.createElement(le,no({className:"recharts-errorBar",key:"bar-".concat(y.map(function(L){return"".concat(L.x1,"-").concat(L.x2,"-").concat(L.y1,"-").concat(L.y2)}))},h),y.map(function(L){return _.createElement("line",no({},L,{key:"line-".concat(L.x1,"-").concat(L.x2,"-").concat(L.y1,"-").concat(L.y2)}))}))});return _.createElement(le,{className:"recharts-errorBars"},m)}}])})(_.Component);B0(gi,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"}),B0(gi,"displayName","ErrorBar");function bi(e){"@babel/helpers - typeof";return bi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bi(e)}function W0(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 $r(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?W0(Object(r),!0).forEach(function(n){W$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):W0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function W$(e,t,r){return t=z$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function z$(e){var t=U$(e,"string");return bi(t)=="symbol"?t:t+""}function U$(e,t){if(bi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(bi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var z0=function(t){var r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,a=t.legendContent,o=ot(r,nr);if(!o)return null;var u=nr.defaultProps,s=u!==void 0?$r($r({},u),o.props):{},c;return o.props&&o.props.payload?c=o.props&&o.props.payload:a==="children"?c=(n||[]).reduce(function(l,f){var d=f.item,h=f.props,m=h.sectors||h.data||[];return l.concat(m.map(function(v){return{type:o.props.iconType||d.props.legendType,value:v.name,color:v.fill,payload:v}}))},[]):c=(n||[]).map(function(l){var f=l.item,d=f.type.defaultProps,h=d!==void 0?$r($r({},d),f.props):{},m=h.dataKey,v=h.name,p=h.legendType,g=h.hide;return{inactive:g,dataKey:m,type:s.iconType||p||"square",color:nd(f),value:v||m,payload:h}}),$r($r($r({},s),nr.getWithHeight(o,i)),{},{payload:c,item:o})};function xi(e){"@babel/helpers - typeof";return xi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xi(e)}function U0(e){return V$(e)||H$(e)||G$(e)||K$()}function K$(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
30
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function G$(e,t){if(e){if(typeof e=="string")return rd(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return rd(e,t)}}function H$(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function V$(e){if(Array.isArray(e))return rd(e)}function rd(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function K0(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 Me(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?K0(Object(r),!0).forEach(function(n){ln(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):K0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ln(e,t,r){return t=Y$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Y$(e){var t=X$(e,"string");return xi(t)=="symbol"?t:t+""}function X$(e,t){if(xi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(xi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ie(e,t,r){return ue(e)||ue(t)?r:qe(t)?it(e,t,r):ie(t)?t(e):r}function wi(e,t,r,n){var i=VC(e,function(u){return Ie(u,t)});if(r==="number"){var a=i.filter(function(u){return z(u)||parseFloat(u)});return a.length?[Qa(a),sr(a)]:[1/0,-1/0]}var o=n?i.filter(function(u){return!ue(u)}):i;return o.map(function(u){return qe(u)||u instanceof Date?u:""})}var Z$=function(t){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,u=(r=n?.length)!==null&&r!==void 0?r:0;if(u<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var s=a.range,c=0;c<u;c++){var l=c>0?i[c-1].coordinate:i[u-1].coordinate,f=i[c].coordinate,d=c>=u-1?i[0].coordinate:i[c+1].coordinate,h=void 0;if(Xe(f-l)!==Xe(d-f)){var m=[];if(Xe(d-f)===Xe(s[1]-s[0])){h=d;var v=f+s[1]-s[0];m[0]=Math.min(v,(v+l)/2),m[1]=Math.max(v,(v+l)/2)}else{h=l;var p=d+s[1]-s[0];m[0]=Math.min(f,(p+f)/2),m[1]=Math.max(f,(p+f)/2)}var g=[Math.min(f,(h+f)/2),Math.max(f,(h+f)/2)];if(t>g[0]&&t<=g[1]||t>=m[0]&&t<=m[1]){o=i[c].index;break}}else{var b=Math.min(l,d),w=Math.max(l,d);if(t>(b+f)/2&&t<=(w+f)/2){o=i[c].index;break}}}else for(var O=0;O<u;O++)if(O===0&&t<=(n[O].coordinate+n[O+1].coordinate)/2||O>0&&O<u-1&&t>(n[O].coordinate+n[O-1].coordinate)/2&&t<=(n[O].coordinate+n[O+1].coordinate)/2||O===u-1&&t>(n[O].coordinate+n[O-1].coordinate)/2){o=n[O].index;break}return o},nd=function(t){var r,n=t,i=n.type.displayName,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?Me(Me({},t.type.defaultProps),t.props):t.props,o=a.stroke,u=a.fill,s;switch(i){case"Line":s=o;break;case"Area":case"Radar":s=o&&o!=="none"?o:u;break;default:s=u;break}return s},J$=function(t){var r=t.barSize,n=t.totalSize,i=t.stackGroups,a=i===void 0?{}:i;if(!a)return{};for(var o={},u=Object.keys(a),s=0,c=u.length;s<c;s++)for(var l=a[u[s]].stackGroups,f=Object.keys(l),d=0,h=f.length;d<h;d++){var m=l[f[d]],v=m.items,p=m.cateAxisId,g=v.filter(function(A){return Ft(A.type).indexOf("Bar")>=0});if(g&&g.length){var b=g[0].type.defaultProps,w=b!==void 0?Me(Me({},b),g[0].props):g[0].props,O=w.barSize,y=w[p];o[y]||(o[y]=[]);var x=ue(O)?r:O;o[y].push({item:g[0],stackList:g.slice(1),barSize:ue(x)?void 0:Ze(x,n,0)})}}return o},Q$=function(t){var r=t.barGap,n=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,u=t.maxBarSize,s=o.length;if(s<1)return null;var c=Ze(r,i,0,!0),l,f=[];if(o[0].barSize===+o[0].barSize){var d=!1,h=i/s,m=o.reduce(function(O,y){return O+y.barSize||0},0);m+=(s-1)*c,m>=i&&(m-=(s-1)*c,c=0),m>=i&&h>0&&(d=!0,h*=.9,m=s*h);var v=(i-m)/2>>0,p={offset:v-c,size:0};l=o.reduce(function(O,y){var x={item:y.item,position:{offset:p.offset+p.size+c,size:d?h:y.barSize}},A=[].concat(U0(O),[x]);return p=A[A.length-1].position,y.stackList&&y.stackList.length&&y.stackList.forEach(function(S){A.push({item:S,position:p})}),A},f)}else{var g=Ze(n,i,0,!0);i-2*g-(s-1)*c<=0&&(c=0);var b=(i-2*g-(s-1)*c)/s;b>1&&(b>>=0);var w=u===+u?Math.min(b,u):b;l=o.reduce(function(O,y,x){var A=[].concat(U0(O),[{item:y.item,position:{offset:g+(b+c)*x+(b-w)/2,size:w}}]);return y.stackList&&y.stackList.length&&y.stackList.forEach(function(S){A.push({item:S,position:A[A.length-1].position})}),A},f)}return l},eM=function(t,r,n,i){var a=n.children,o=n.width,u=n.margin,s=o-(u.left||0)-(u.right||0),c=z0({children:a,legendWidth:s});if(c){var l=i||{},f=l.width,d=l.height,h=c.align,m=c.verticalAlign,v=c.layout;if((v==="vertical"||v==="horizontal"&&m==="middle")&&h!=="center"&&z(t[h]))return Me(Me({},t),{},ln({},h,t[h]+(f||0)));if((v==="horizontal"||v==="vertical"&&h==="center")&&m!=="middle"&&z(t[m]))return Me(Me({},t),{},ln({},m,t[m]+(d||0)))}return t},tM=function(t,r,n){return ue(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},G0=function(t,r,n,i,a){var o=r.props.children,u=at(o,gi).filter(function(c){return tM(i,a,c.props.direction)});if(u&&u.length){var s=u.map(function(c){return c.props.dataKey});return t.reduce(function(c,l){var f=Ie(l,n);if(ue(f))return c;var d=Array.isArray(f)?[Qa(f),sr(f)]:[f,f],h=s.reduce(function(m,v){var p=Ie(l,v,0),g=d[0]-Math.abs(Array.isArray(p)?p[0]:p),b=d[1]+Math.abs(Array.isArray(p)?p[1]:p);return[Math.min(g,m[0]),Math.max(b,m[1])]},[1/0,-1/0]);return[Math.min(h[0],c[0]),Math.max(h[1],c[1])]},[1/0,-1/0])}return null},rM=function(t,r,n,i,a){var o=r.map(function(u){return G0(t,u,n,a,i)}).filter(function(u){return!ue(u)});return o&&o.length?o.reduce(function(u,s){return[Math.min(u[0],s[0]),Math.max(u[1],s[1])]},[1/0,-1/0]):null},H0=function(t,r,n,i,a){var o=r.map(function(s){var c=s.props.dataKey;return n==="number"&&c&&G0(t,s,c,i)||wi(t,c,n,a)});if(n==="number")return o.reduce(function(s,c){return[Math.min(s[0],c[0]),Math.max(s[1],c[1])]},[1/0,-1/0]);var u={};return o.reduce(function(s,c){for(var l=0,f=c.length;l<f;l++)u[c[l]]||(u[c[l]]=!0,s.push(c[l]));return s},[])},V0=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},Y0=function(t,r,n,i){if(i)return t.map(function(s){return s.coordinate});var a,o,u=t.map(function(s){return s.coordinate===r&&(a=!0),s.coordinate===n&&(o=!0),s.coordinate});return a||u.push(r),o||u.push(n),u},Xt=function(t,r,n){if(!t)return null;var i=t.scale,a=t.duplicateDomain,o=t.type,u=t.range,s=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,c=(r||n)&&o==="category"&&i.bandwidth?i.bandwidth()/s:0;if(c=t.axisType==="angleAxis"&&u?.length>=2?Xe(u[0]-u[1])*2*c:c,r&&(t.ticks||t.niceTicks)){var l=(t.ticks||t.niceTicks).map(function(f){var d=a?a.indexOf(f):f;return{coordinate:i(d)+c,value:f,offset:c}});return l.filter(function(f){return!Ur(f.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(f,d){return{coordinate:i(f)+c,value:f,index:d,offset:c}}):i.ticks&&!n?i.ticks(t.tickCount).map(function(f){return{coordinate:i(f)+c,value:f,offset:c}}):i.domain().map(function(f,d){return{coordinate:i(f)+c,value:a?a[f]:f,index:d,offset:c}})},id=new WeakMap,ao=function(t,r){if(typeof r!="function")return t;id.has(t)||id.set(t,new WeakMap);var n=id.get(t);if(n.has(r))return n.get(r);var i=function(){t.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,i),i},X0=function(t,r,n){var i=t.scale,a=t.type,o=t.layout,u=t.axisType;if(i==="auto")return o==="radial"&&u==="radiusAxis"?{scale:ii(),realScaleType:"band"}:o==="radial"&&u==="angleAxis"?{scale:za(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:ai(),realScaleType:"point"}:a==="category"?{scale:ii(),realScaleType:"band"}:{scale:za(),realScaleType:"linear"};if(yr(i)){var s="scale".concat(fa(i));return{scale:(d0[s]||ai)(),realScaleType:d0[s]?s:"point"}}return ie(i)?{scale:i}:{scale:ai(),realScaleType:"point"}},Z0=1e-4,J0=function(t){var r=t.domain();if(!(!r||r.length<=2)){var n=r.length,i=t.range(),a=Math.min(i[0],i[1])-Z0,o=Math.max(i[0],i[1])+Z0,u=t(r[0]),s=t(r[n-1]);(u<a||u>o||s<a||s>o)&&t.domain([r[0],r[n-1]])}},nM=function(t,r){if(!t)return null;for(var n=0,i=t.length;n<i;n++)if(t[n].item===r)return t[n].position;return null},iM=function(t,r){if(!r||r.length!==2||!z(r[0])||!z(r[1]))return t;var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]),a=[t[0],t[1]];return(!z(t[0])||t[0]<n)&&(a[0]=n),(!z(t[1])||t[1]>i)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]<n&&(a[1]=n),a},aM=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0,u=0;u<r;++u){var s=Ur(t[u][n][1])?t[u][n][0]:t[u][n][1];s>=0?(t[u][n][0]=a,t[u][n][1]=a+s,a=t[u][n][1]):(t[u][n][0]=o,t[u][n][1]=o+s,o=t[u][n][1])}},oM=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0;o<r;++o){var u=Ur(t[o][n][1])?t[o][n][0]:t[o][n][1];u>=0?(t[o][n][0]=a,t[o][n][1]=a+u,a=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}},uM={sign:aM,expand:YS,none:Gr,silhouette:XS,wiggle:ZS,positive:oM},sM=function(t,r,n){var i=r.map(function(u){return u.props.dataKey}),a=uM[n],o=VS().keys(i).value(function(u,s){return+Ie(u,s,0)}).order(Ws).offset(a);return o(t)},cM=function(t,r,n,i,a,o){if(!t)return null;var u=o?r.reverse():r,s={},c=u.reduce(function(f,d){var h,m=(h=d.type)!==null&&h!==void 0&&h.defaultProps?Me(Me({},d.type.defaultProps),d.props):d.props,v=m.stackId,p=m.hide;if(p)return f;var g=m[n],b=f[g]||{hasStack:!1,stackGroups:{}};if(qe(v)){var w=b.stackGroups[v]||{numericAxisId:n,cateAxisId:i,items:[]};w.items.push(d),b.hasStack=!0,b.stackGroups[v]=w}else b.stackGroups[gr("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[d]};return Me(Me({},f),{},ln({},g,b))},s),l={};return Object.keys(c).reduce(function(f,d){var h=c[d];if(h.hasStack){var m={};h.stackGroups=Object.keys(h.stackGroups).reduce(function(v,p){var g=h.stackGroups[p];return Me(Me({},v),{},ln({},p,{numericAxisId:n,cateAxisId:i,items:g.items,stackedData:sM(t,g.items,a)}))},m)}return Me(Me({},f),{},ln({},d,h))},l)},Q0=function(t,r){var n=r.realScaleType,i=r.type,a=r.tickCount,o=r.originalDomain,u=r.allowDecimals,s=n||r.scale;if(s!=="auto"&&s!=="linear")return null;if(a&&i==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var c=t.domain();if(!c.length)return null;var l=_$(c,a,u);return t.domain([Qa(l),sr(l)]),{niceTicks:l}}if(a&&i==="number"){var f=t.domain(),d=A$(f,a,u);return{niceTicks:d}}return null};function oo(e){var t=e.axis,r=e.ticks,n=e.bandSize,i=e.entry,a=e.index,o=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!ue(i[t.dataKey])){var u=ca(r,"value",i[t.dataKey]);if(u)return u.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var s=Ie(i,ue(o)?t.dataKey:o);return ue(s)?null:t.scale(s)}var ex=function(t){var r=t.axis,n=t.ticks,i=t.offset,a=t.bandSize,o=t.entry,u=t.index;if(r.type==="category")return n[u]?n[u].coordinate+i:null;var s=Ie(o,r.dataKey,r.domain[u]);return ue(s)?null:r.scale(s)-a/2+i},lM=function(t){var r=t.numericAxis,n=r.scale.domain();if(r.type==="number"){var i=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]);return i<=0&&a>=0?0:a<0?a:i}return n[0]},fM=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?Me(Me({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(qe(a)){var o=r[a];if(o){var u=o.items.indexOf(t);return u>=0?o.stackedData[u]:null}}return null},dM=function(t){return t.reduce(function(r,n){return[Qa(n.concat([r[0]]).filter(z)),sr(n.concat([r[1]]).filter(z))]},[1/0,-1/0])},tx=function(t,r,n){return Object.keys(t).reduce(function(i,a){var o=t[a],u=o.stackedData,s=u.reduce(function(c,l){var f=dM(l.slice(r,n+1));return[Math.min(c[0],f[0]),Math.max(c[1],f[1])]},[1/0,-1/0]);return[Math.min(s[0],i[0]),Math.max(s[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},rx=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,nx=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,ad=function(t,r,n){if(ie(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(z(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(rx.test(t[0])){var a=+rx.exec(t[0])[1];i[0]=r[0]-a}else ie(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(z(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(nx.test(t[1])){var o=+nx.exec(t[1])[1];i[1]=r[1]+o}else ie(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},uo=function(t,r,n){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!n||i>0)return i}if(t&&r&&r.length>=2){for(var a=ql(r,function(f){return f.coordinate}),o=1/0,u=1,s=a.length;u<s;u++){var c=a[u],l=a[u-1];o=Math.min((c.coordinate||0)-(l.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},ix=function(t,r,n){return!t||!t.length||Er(t,it(n,"type.defaultProps.domain"))?r:t},ax=function(t,r){var n=t.type.defaultProps?Me(Me({},t.type.defaultProps),t.props):t.props,i=n.dataKey,a=n.name,o=n.unit,u=n.formatter,s=n.tooltipType,c=n.chartType,l=n.hide;return Me(Me({},Q(t,!1)),{},{dataKey:i,unit:o,formatter:u,name:a||i,color:nd(t),value:Ie(r,i),type:s,payload:r,chartType:c,hide:l})};function Oi(e){"@babel/helpers - typeof";return Oi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Oi(e)}function ox(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 Zt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ox(Object(r),!0).forEach(function(n){ux(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ox(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ux(e,t,r){return t=pM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pM(e){var t=hM(e,"string");return Oi(t)=="symbol"?t:t+""}function hM(e,t){if(Oi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Oi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vM(e,t){return bM(e)||gM(e,t)||mM(e,t)||yM()}function yM(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
31
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mM(e,t){if(e){if(typeof e=="string")return sx(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return sx(e,t)}}function sx(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function gM(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(l){c=!0,i=l}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function bM(e){if(Array.isArray(e))return e}var so=Math.PI/180,xM=function(t){return t*180/Math.PI},Te=function(t,r,n,i){return{x:t+Math.cos(-so*i)*n,y:r+Math.sin(-so*i)*n}},cx=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},wM=function(t,r,n,i,a){var o=t.width,u=t.height,s=t.startAngle,c=t.endAngle,l=Ze(t.cx,o,o/2),f=Ze(t.cy,u,u/2),d=cx(o,u,n),h=Ze(t.innerRadius,d,0),m=Ze(t.outerRadius,d,d*.8),v=Object.keys(r);return v.reduce(function(p,g){var b=r[g],w=b.domain,O=b.reversed,y;if(ue(b.range))i==="angleAxis"?y=[s,c]:i==="radiusAxis"&&(y=[h,m]),O&&(y=[y[1],y[0]]);else{y=b.range;var x=y,A=vM(x,2);s=A[0],c=A[1]}var S=X0(b,a),T=S.realScaleType,M=S.scale;M.domain(w).range(y),J0(M);var P=Q0(M,Zt(Zt({},b),{},{realScaleType:T})),j=Zt(Zt(Zt({},b),P),{},{range:y,radius:m,realScaleType:T,scale:M,cx:l,cy:f,innerRadius:h,outerRadius:m,startAngle:s,endAngle:c});return Zt(Zt({},p),{},ux({},g,j))},{})},OM=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return Math.sqrt(Math.pow(n-a,2)+Math.pow(i-o,2))},_M=function(t,r){var n=t.x,i=t.y,a=r.cx,o=r.cy,u=OM({x:n,y:i},{x:a,y:o});if(u<=0)return{radius:u};var s=(n-a)/u,c=Math.acos(s);return i>o&&(c=2*Math.PI-c),{radius:u,angle:xM(c),angleInRadian:c}},AM=function(t){var r=t.startAngle,n=t.endAngle,i=Math.floor(r/360),a=Math.floor(n/360),o=Math.min(i,a);return{startAngle:r-o*360,endAngle:n-o*360}},SM=function(t,r){var n=r.startAngle,i=r.endAngle,a=Math.floor(n/360),o=Math.floor(i/360),u=Math.min(a,o);return t+u*360},lx=function(t,r){var n=t.x,i=t.y,a=_M({x:n,y:i},r),o=a.radius,u=a.angle,s=r.innerRadius,c=r.outerRadius;if(o<s||o>c)return!1;if(o===0)return!0;var l=AM(r),f=l.startAngle,d=l.endAngle,h=u,m;if(f<=d){for(;h>d;)h-=360;for(;h<f;)h+=360;m=h>=f&&h<=d}else{for(;h>f;)h-=360;for(;h<d;)h+=360;m=h>=d&&h<=f}return m?Zt(Zt({},r),{},{radius:o,angle:SM(h,r)}):null},fx=function(t){return!_.isValidElement(t)&&!ie(t)&&typeof t!="boolean"?t.className:""};function _i(e){"@babel/helpers - typeof";return _i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_i(e)}var PM=["offset"];function EM(e){return $M(e)||CM(e)||jM(e)||TM()}function TM(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
32
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jM(e,t){if(e){if(typeof e=="string")return od(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return od(e,t)}}function CM(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function $M(e){if(Array.isArray(e))return od(e)}function od(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function MM(e,t){if(e==null)return{};var r=IM(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function IM(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function dx(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 We(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?dx(Object(r),!0).forEach(function(n){kM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function kM(e,t,r){return t=DM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function DM(e){var t=NM(e,"string");return _i(t)=="symbol"?t:t+""}function NM(e,t){if(_i(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(_i(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ai(){return Ai=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ai.apply(this,arguments)}var RM=function(t){var r=t.value,n=t.formatter,i=ue(t.children)?r:t.children;return ie(n)?n(i):i},LM=function(t,r){var n=Xe(r-t),i=Math.min(Math.abs(r-t),360);return n*i},qM=function(t,r,n){var i=t.position,a=t.viewBox,o=t.offset,u=t.className,s=a,c=s.cx,l=s.cy,f=s.innerRadius,d=s.outerRadius,h=s.startAngle,m=s.endAngle,v=s.clockWise,p=(f+d)/2,g=LM(h,m),b=g>=0?1:-1,w,O;i==="insideStart"?(w=h+b*o,O=v):i==="insideEnd"?(w=m-b*o,O=!v):i==="end"&&(w=m+b*o,O=v),O=g<=0?O:!O;var y=Te(c,l,p,w),x=Te(c,l,p,w+(O?1:-1)*359),A="M".concat(y.x,",").concat(y.y,`
33
+ A`).concat(p,",").concat(p,",0,1,").concat(O?0:1,`,
34
+ `).concat(x.x,",").concat(x.y),S=ue(t.id)?gr("recharts-radial-line-"):t.id;return _.createElement("text",Ai({},n,{dominantBaseline:"central",className:ce("recharts-radial-bar-label",u)}),_.createElement("defs",null,_.createElement("path",{id:S,d:A})),_.createElement("textPath",{xlinkHref:"#".concat(S)},r))},BM=function(t){var r=t.viewBox,n=t.offset,i=t.position,a=r,o=a.cx,u=a.cy,s=a.innerRadius,c=a.outerRadius,l=a.startAngle,f=a.endAngle,d=(l+f)/2;if(i==="outside"){var h=Te(o,u,c+n,d),m=h.x,v=h.y;return{x:m,y:v,textAnchor:m>=o?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"end"};var p=(s+c)/2,g=Te(o,u,p,d),b=g.x,w=g.y;return{x:b,y:w,textAnchor:"middle",verticalAnchor:"middle"}},FM=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,a=t.position,o=r,u=o.x,s=o.y,c=o.width,l=o.height,f=l>=0?1:-1,d=f*i,h=f>0?"end":"start",m=f>0?"start":"end",v=c>=0?1:-1,p=v*i,g=v>0?"end":"start",b=v>0?"start":"end";if(a==="top"){var w={x:u+c/2,y:s-f*i,textAnchor:"middle",verticalAnchor:h};return We(We({},w),n?{height:Math.max(s-n.y,0),width:c}:{})}if(a==="bottom"){var O={x:u+c/2,y:s+l+d,textAnchor:"middle",verticalAnchor:m};return We(We({},O),n?{height:Math.max(n.y+n.height-(s+l),0),width:c}:{})}if(a==="left"){var y={x:u-p,y:s+l/2,textAnchor:g,verticalAnchor:"middle"};return We(We({},y),n?{width:Math.max(y.x-n.x,0),height:l}:{})}if(a==="right"){var x={x:u+c+p,y:s+l/2,textAnchor:b,verticalAnchor:"middle"};return We(We({},x),n?{width:Math.max(n.x+n.width-x.x,0),height:l}:{})}var A=n?{width:c,height:l}:{};return a==="insideLeft"?We({x:u+p,y:s+l/2,textAnchor:b,verticalAnchor:"middle"},A):a==="insideRight"?We({x:u+c-p,y:s+l/2,textAnchor:g,verticalAnchor:"middle"},A):a==="insideTop"?We({x:u+c/2,y:s+d,textAnchor:"middle",verticalAnchor:m},A):a==="insideBottom"?We({x:u+c/2,y:s+l-d,textAnchor:"middle",verticalAnchor:h},A):a==="insideTopLeft"?We({x:u+p,y:s+d,textAnchor:b,verticalAnchor:m},A):a==="insideTopRight"?We({x:u+c-p,y:s+d,textAnchor:g,verticalAnchor:m},A):a==="insideBottomLeft"?We({x:u+p,y:s+l-d,textAnchor:b,verticalAnchor:h},A):a==="insideBottomRight"?We({x:u+c-p,y:s+l-d,textAnchor:g,verticalAnchor:h},A):zr(a)&&(z(a.x)||mr(a.x))&&(z(a.y)||mr(a.y))?We({x:u+Ze(a.x,c),y:s+Ze(a.y,l),textAnchor:"end",verticalAnchor:"end"},A):We({x:u+c/2,y:s+l/2,textAnchor:"middle",verticalAnchor:"middle"},A)},WM=function(t){return"cx"in t&&z(t.cx)};function Ge(e){var t=e.offset,r=t===void 0?5:t,n=MM(e,PM),i=We({offset:r},n),a=i.viewBox,o=i.position,u=i.value,s=i.children,c=i.content,l=i.className,f=l===void 0?"":l,d=i.textBreakAll;if(!a||ue(u)&&ue(s)&&!_.isValidElement(c)&&!ie(c))return null;if(_.isValidElement(c))return _.cloneElement(c,i);var h;if(ie(c)){if(h=_.createElement(c,i),_.isValidElement(h))return h}else h=RM(i);var m=WM(a),v=Q(i,!0);if(m&&(o==="insideStart"||o==="insideEnd"||o==="end"))return qM(i,h,v);var p=m?BM(i):FM(i);return _.createElement(wr,Ai({className:ce("recharts-label",f)},v,p,{breakAll:d}),h)}Ge.displayName="Label";var px=function(t){var r=t.cx,n=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,u=t.r,s=t.radius,c=t.innerRadius,l=t.outerRadius,f=t.x,d=t.y,h=t.top,m=t.left,v=t.width,p=t.height,g=t.clockWise,b=t.labelViewBox;if(b)return b;if(z(v)&&z(p)){if(z(f)&&z(d))return{x:f,y:d,width:v,height:p};if(z(h)&&z(m))return{x:h,y:m,width:v,height:p}}return z(f)&&z(d)?{x:f,y:d,width:0,height:0}:z(r)&&z(n)?{cx:r,cy:n,startAngle:a||i||0,endAngle:o||i||0,innerRadius:c||0,outerRadius:l||s||u||0,clockWise:g}:t.viewBox?t.viewBox:{}},zM=function(t,r){return t?t===!0?_.createElement(Ge,{key:"label-implicit",viewBox:r}):qe(t)?_.createElement(Ge,{key:"label-implicit",viewBox:r,value:t}):_.isValidElement(t)?t.type===Ge?_.cloneElement(t,{key:"label-implicit",viewBox:r}):_.createElement(Ge,{key:"label-implicit",content:t,viewBox:r}):ie(t)?_.createElement(Ge,{key:"label-implicit",content:t,viewBox:r}):zr(t)?_.createElement(Ge,Ai({viewBox:r},t,{key:"label-implicit"})):null:null},UM=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 i=t.children,a=px(t),o=at(i,Ge).map(function(s,c){return _.cloneElement(s,{viewBox:r||a,key:"label-".concat(c)})});if(!n)return o;var u=zM(t.label,r||a);return[u].concat(EM(o))};Ge.parseViewBox=px,Ge.renderCallByParent=UM;var ud,hx;function KM(){if(hx)return ud;hx=1;function e(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}return ud=e,ud}var GM=KM();const HM=_e(GM);function Si(e){"@babel/helpers - typeof";return Si=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Si(e)}var VM=["valueAccessor"],YM=["data","dataKey","clockWise","id","textBreakAll"];function XM(e){return eI(e)||QM(e)||JM(e)||ZM()}function ZM(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
35
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function JM(e,t){if(e){if(typeof e=="string")return sd(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return sd(e,t)}}function QM(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function eI(e){if(Array.isArray(e))return sd(e)}function sd(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function co(){return co=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},co.apply(this,arguments)}function vx(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 yx(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?vx(Object(r),!0).forEach(function(n){tI(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function tI(e,t,r){return t=rI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rI(e){var t=nI(e,"string");return Si(t)=="symbol"?t:t+""}function nI(e,t){if(Si(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Si(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mx(e,t){if(e==null)return{};var r=iI(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function iI(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var aI=function(t){return Array.isArray(t.value)?HM(t.value):t.value};function Nt(e){var t=e.valueAccessor,r=t===void 0?aI:t,n=mx(e,VM),i=n.data,a=n.dataKey,o=n.clockWise,u=n.id,s=n.textBreakAll,c=mx(n,YM);return!i||!i.length?null:_.createElement(le,{className:"recharts-label-list"},i.map(function(l,f){var d=ue(a)?r(l,f):Ie(l&&l.payload,a),h=ue(u)?{}:{id:"".concat(u,"-").concat(f)};return _.createElement(Ge,co({},Q(l,!0),c,h,{parentViewBox:l.parentViewBox,value:d,textBreakAll:s,viewBox:Ge.parseViewBox(ue(o)?l:yx(yx({},l),{},{clockWise:o})),key:"label-".concat(f),index:f}))}))}Nt.displayName="LabelList";function oI(e,t){return e?e===!0?_.createElement(Nt,{key:"labelList-implicit",data:t}):_.isValidElement(e)||ie(e)?_.createElement(Nt,{key:"labelList-implicit",data:t,content:e}):zr(e)?_.createElement(Nt,co({data:t},e,{key:"labelList-implicit"})):null:null}function uI(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&r&&!e.label)return null;var n=e.children,i=at(n,Nt).map(function(o,u){return _.cloneElement(o,{data:t,key:"labelList-".concat(u)})});if(!r)return i;var a=oI(e.label,t);return[a].concat(XM(i))}Nt.renderCallByParent=uI;function Pi(e){"@babel/helpers - typeof";return Pi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pi(e)}function cd(){return cd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},cd.apply(this,arguments)}function gx(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 bx(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gx(Object(r),!0).forEach(function(n){sI(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function sI(e,t,r){return t=cI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cI(e){var t=lI(e,"string");return Pi(t)=="symbol"?t:t+""}function lI(e,t){if(Pi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Pi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var fI=function(t,r){var n=Xe(r-t),i=Math.min(Math.abs(r-t),359.999);return n*i},lo=function(t){var r=t.cx,n=t.cy,i=t.radius,a=t.angle,o=t.sign,u=t.isExternal,s=t.cornerRadius,c=t.cornerIsExternal,l=s*(u?1:-1)+i,f=Math.asin(s/l)/so,d=c?a:a+o*f,h=Te(r,n,l,d),m=Te(r,n,i,d),v=c?a-o*f:a,p=Te(r,n,l*Math.cos(f*so),v);return{center:h,circleTangency:m,lineTangency:p,theta:f}},xx=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.startAngle,u=t.endAngle,s=fI(o,u),c=o+s,l=Te(r,n,a,o),f=Te(r,n,a,c),d="M ".concat(l.x,",").concat(l.y,`
36
+ A `).concat(a,",").concat(a,`,0,
37
+ `).concat(+(Math.abs(s)>180),",").concat(+(o>c),`,
38
+ `).concat(f.x,",").concat(f.y,`
39
+ `);if(i>0){var h=Te(r,n,i,o),m=Te(r,n,i,c);d+="L ".concat(m.x,",").concat(m.y,`
40
+ A `).concat(i,",").concat(i,`,0,
41
+ `).concat(+(Math.abs(s)>180),",").concat(+(o<=c),`,
42
+ `).concat(h.x,",").concat(h.y," Z")}else d+="L ".concat(r,",").concat(n," Z");return d},dI=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,u=t.forceCornerRadius,s=t.cornerIsExternal,c=t.startAngle,l=t.endAngle,f=Xe(l-c),d=lo({cx:r,cy:n,radius:a,angle:c,sign:f,cornerRadius:o,cornerIsExternal:s}),h=d.circleTangency,m=d.lineTangency,v=d.theta,p=lo({cx:r,cy:n,radius:a,angle:l,sign:-f,cornerRadius:o,cornerIsExternal:s}),g=p.circleTangency,b=p.lineTangency,w=p.theta,O=s?Math.abs(c-l):Math.abs(c-l)-v-w;if(O<0)return u?"M ".concat(m.x,",").concat(m.y,`
43
+ a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0
44
+ a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0
45
+ `):xx({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:c,endAngle:l});var y="M ".concat(m.x,",").concat(m.y,`
46
+ A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(h.x,",").concat(h.y,`
47
+ A`).concat(a,",").concat(a,",0,").concat(+(O>180),",").concat(+(f<0),",").concat(g.x,",").concat(g.y,`
48
+ A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(b.x,",").concat(b.y,`
49
+ `);if(i>0){var x=lo({cx:r,cy:n,radius:i,angle:c,sign:f,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),A=x.circleTangency,S=x.lineTangency,T=x.theta,M=lo({cx:r,cy:n,radius:i,angle:l,sign:-f,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),P=M.circleTangency,j=M.lineTangency,C=M.theta,I=s?Math.abs(c-l):Math.abs(c-l)-T-C;if(I<0&&o===0)return"".concat(y,"L").concat(r,",").concat(n,"Z");y+="L".concat(j.x,",").concat(j.y,`
50
+ A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(P.x,",").concat(P.y,`
51
+ A`).concat(i,",").concat(i,",0,").concat(+(I>180),",").concat(+(f>0),",").concat(A.x,",").concat(A.y,`
52
+ A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(S.x,",").concat(S.y,"Z")}else y+="L".concat(r,",").concat(n,"Z");return y},pI={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},wx=function(t){var r=bx(bx({},pI),t),n=r.cx,i=r.cy,a=r.innerRadius,o=r.outerRadius,u=r.cornerRadius,s=r.forceCornerRadius,c=r.cornerIsExternal,l=r.startAngle,f=r.endAngle,d=r.className;if(o<a||l===f)return null;var h=ce("recharts-sector",d),m=o-a,v=Ze(u,m,0,!0),p;return v>0&&Math.abs(l-f)<360?p=dI({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(v,m/2),forceCornerRadius:s,cornerIsExternal:c,startAngle:l,endAngle:f}):p=xx({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:l,endAngle:f}),_.createElement("path",cd({},Q(r,!0),{className:h,d:p,role:"img"}))};function Ei(e){"@babel/helpers - typeof";return Ei=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ei(e)}function ld(){return ld=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ld.apply(this,arguments)}function Ox(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 _x(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ox(Object(r),!0).forEach(function(n){hI(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ox(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function hI(e,t,r){return t=vI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vI(e){var t=yI(e,"string");return Ei(t)=="symbol"?t:t+""}function yI(e,t){if(Ei(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ei(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ax={curveBasisClosed:RS,curveBasisOpen:LS,curveBasis:NS,curveBumpX:OS,curveBumpY:_S,curveLinearClosed:qS,curveLinear:va,curveMonotoneX:BS,curveMonotoneY:FS,curveNatural:WS,curveStep:zS,curveStepAfter:KS,curveStepBefore:US},fo=function(t){return t.x===+t.x&&t.y===+t.y},Ti=function(t){return t.x},ji=function(t){return t.y},mI=function(t,r){if(ie(t))return t;var n="curve".concat(fa(t));return(n==="curveMonotone"||n==="curveBump")&&r?Ax["".concat(n).concat(r==="vertical"?"Y":"X")]:Ax[n]||va},gI=function(t){var r=t.type,n=r===void 0?"linear":r,i=t.points,a=i===void 0?[]:i,o=t.baseLine,u=t.layout,s=t.connectNulls,c=s===void 0?!1:s,l=mI(n,u),f=c?a.filter(function(v){return fo(v)}):a,d;if(Array.isArray(o)){var h=c?o.filter(function(v){return fo(v)}):o,m=f.map(function(v,p){return _x(_x({},v),{},{base:h[p]})});return u==="vertical"?d=ya().y(ji).x1(Ti).x0(function(v){return v.base.x}):d=ya().x(Ti).y1(ji).y0(function(v){return v.base.y}),d.defined(fo).curve(l),d(m)}return u==="vertical"&&z(o)?d=ya().y(ji).x1(Ti).x0(o):z(o)?d=ya().x(Ti).y1(ji).y0(o):d=Iv().x(Ti).y(ji),d.defined(fo).curve(l),d(f)},Mr=function(t){var r=t.className,n=t.points,i=t.path,a=t.pathRef;if((!n||!n.length)&&!i)return null;var o=n&&n.length?gI(t):i;return ft.createElement("path",ld({},Q(t,!1),la(t),{className:ce("recharts-curve",r),d:o,ref:a}))},po={exports:{}},ho={exports:{}},ge={};var Sx;function bI(){if(Sx)return ge;Sx=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,p=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function w(y){if(typeof y=="object"&&y!==null){var x=y.$$typeof;switch(x){case t:switch(y=y.type,y){case s:case c:case n:case a:case i:case f:return y;default:switch(y=y&&y.$$typeof,y){case u:case l:case m:case h:case o:return y;default:return x}}case r:return x}}}function O(y){return w(y)===c}return ge.AsyncMode=s,ge.ConcurrentMode=c,ge.ContextConsumer=u,ge.ContextProvider=o,ge.Element=t,ge.ForwardRef=l,ge.Fragment=n,ge.Lazy=m,ge.Memo=h,ge.Portal=r,ge.Profiler=a,ge.StrictMode=i,ge.Suspense=f,ge.isAsyncMode=function(y){return O(y)||w(y)===s},ge.isConcurrentMode=O,ge.isContextConsumer=function(y){return w(y)===u},ge.isContextProvider=function(y){return w(y)===o},ge.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===t},ge.isForwardRef=function(y){return w(y)===l},ge.isFragment=function(y){return w(y)===n},ge.isLazy=function(y){return w(y)===m},ge.isMemo=function(y){return w(y)===h},ge.isPortal=function(y){return w(y)===r},ge.isProfiler=function(y){return w(y)===a},ge.isStrictMode=function(y){return w(y)===i},ge.isSuspense=function(y){return w(y)===f},ge.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===n||y===c||y===a||y===i||y===f||y===d||typeof y=="object"&&y!==null&&(y.$$typeof===m||y.$$typeof===h||y.$$typeof===o||y.$$typeof===u||y.$$typeof===l||y.$$typeof===p||y.$$typeof===g||y.$$typeof===b||y.$$typeof===v)},ge.typeOf=w,ge}var be={};var Px;function xI(){return Px||(Px=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,p=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function w($){return typeof $=="string"||typeof $=="function"||$===n||$===c||$===a||$===i||$===f||$===d||typeof $=="object"&&$!==null&&($.$$typeof===m||$.$$typeof===h||$.$$typeof===o||$.$$typeof===u||$.$$typeof===l||$.$$typeof===p||$.$$typeof===g||$.$$typeof===b||$.$$typeof===v)}function O($){if(typeof $=="object"&&$!==null){var fe=$.$$typeof;switch(fe){case t:var K=$.type;switch(K){case s:case c:case n:case a:case i:case f:return K;default:var ve=K&&K.$$typeof;switch(ve){case u:case l:case m:case h:case o:return ve;default:return fe}}case r:return fe}}}var y=s,x=c,A=u,S=o,T=t,M=l,P=n,j=m,C=h,I=r,k=a,N=i,q=f,U=!1;function G($){return U||(U=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),D($)||O($)===s}function D($){return O($)===c}function L($){return O($)===u}function B($){return O($)===o}function H($){return typeof $=="object"&&$!==null&&$.$$typeof===t}function Y($){return O($)===l}function te($){return O($)===n}function re($){return O($)===m}function oe($){return O($)===h}function ne($){return O($)===r}function F($){return O($)===a}function V($){return O($)===i}function ee($){return O($)===f}be.AsyncMode=y,be.ConcurrentMode=x,be.ContextConsumer=A,be.ContextProvider=S,be.Element=T,be.ForwardRef=M,be.Fragment=P,be.Lazy=j,be.Memo=C,be.Portal=I,be.Profiler=k,be.StrictMode=N,be.Suspense=q,be.isAsyncMode=G,be.isConcurrentMode=D,be.isContextConsumer=L,be.isContextProvider=B,be.isElement=H,be.isForwardRef=Y,be.isFragment=te,be.isLazy=re,be.isMemo=oe,be.isPortal=ne,be.isProfiler=F,be.isStrictMode=V,be.isSuspense=ee,be.isValidElementType=w,be.typeOf=O})()),be}var Ex;function Tx(){return Ex||(Ex=1,process.env.NODE_ENV==="production"?ho.exports=bI():ho.exports=xI()),ho.exports}var fd,jx;function wI(){if(jx)return fd;jx=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function i(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var o={},u=0;u<10;u++)o["_"+String.fromCharCode(u)]=u;var s=Object.getOwnPropertyNames(o).map(function(l){return o[l]});if(s.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(l){c[l]=l}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return fd=i()?Object.assign:function(a,o){for(var u,s=n(a),c,l=1;l<arguments.length;l++){u=Object(arguments[l]);for(var f in u)t.call(u,f)&&(s[f]=u[f]);if(e){c=e(u);for(var d=0;d<c.length;d++)r.call(u,c[d])&&(s[c[d]]=u[c[d]])}}return s},fd}var dd,Cx;function pd(){if(Cx)return dd;Cx=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return dd=e,dd}var hd,$x;function Mx(){return $x||($x=1,hd=Function.call.bind(Object.prototype.hasOwnProperty)),hd}var vd,Ix;function OI(){if(Ix)return vd;Ix=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=pd(),r={},n=Mx();e=function(a){var o="Warning: "+a;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function i(a,o,u,s,c){if(process.env.NODE_ENV!=="production"){for(var l in a)if(n(a,l)){var f;try{if(typeof a[l]!="function"){var d=Error((s||"React class")+": "+u+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}f=a[l](o,l,s,u,null,t)}catch(m){f=m}if(f&&!(f instanceof Error)&&e((s||"React class")+": type specification of "+u+" `"+l+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in r)){r[f.message]=!0;var h=c?c():"";e("Failed "+u+" type: "+f.message+(h??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},vd=i,vd}var yd,kx;function _I(){if(kx)return yd;kx=1;var e=Tx(),t=wI(),r=pd(),n=Mx(),i=OI(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(u){var s="Warning: "+u;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}});function o(){return null}return yd=function(u,s){var c=typeof Symbol=="function"&&Symbol.iterator,l="@@iterator";function f(D){var L=D&&(c&&D[c]||D[l]);if(typeof L=="function")return L}var d="<<anonymous>>",h={array:g("array"),bigint:g("bigint"),bool:g("boolean"),func:g("function"),number:g("number"),object:g("object"),string:g("string"),symbol:g("symbol"),any:b(),arrayOf:w,element:O(),elementType:y(),instanceOf:x,node:M(),objectOf:S,oneOf:A,oneOfType:T,shape:j,exact:C};function m(D,L){return D===L?D!==0||1/D===1/L:D!==D&&L!==L}function v(D,L){this.message=D,this.data=L&&typeof L=="object"?L:{},this.stack=""}v.prototype=Error.prototype;function p(D){if(process.env.NODE_ENV!=="production")var L={},B=0;function H(te,re,oe,ne,F,V,ee){if(ne=ne||d,V=V||oe,ee!==r){if(s){var $=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw $.name="Invariant Violation",$}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var fe=ne+":"+oe;!L[fe]&&B<3&&(a("You are manually calling a React.PropTypes validation function for the `"+V+"` prop on `"+ne+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),L[fe]=!0,B++)}}return re[oe]==null?te?re[oe]===null?new v("The "+F+" `"+V+"` is marked as required "+("in `"+ne+"`, but its value is `null`.")):new v("The "+F+" `"+V+"` is marked as required in "+("`"+ne+"`, but its value is `undefined`.")):null:D(re,oe,ne,F,V)}var Y=H.bind(null,!1);return Y.isRequired=H.bind(null,!0),Y}function g(D){function L(B,H,Y,te,re,oe){var ne=B[H],F=N(ne);if(F!==D){var V=q(ne);return new v("Invalid "+te+" `"+re+"` of type "+("`"+V+"` supplied to `"+Y+"`, expected ")+("`"+D+"`."),{expectedType:D})}return null}return p(L)}function b(){return p(o)}function w(D){function L(B,H,Y,te,re){if(typeof D!="function")return new v("Property `"+re+"` of component `"+Y+"` has invalid PropType notation inside arrayOf.");var oe=B[H];if(!Array.isArray(oe)){var ne=N(oe);return new v("Invalid "+te+" `"+re+"` of type "+("`"+ne+"` supplied to `"+Y+"`, expected an array."))}for(var F=0;F<oe.length;F++){var V=D(oe,F,Y,te,re+"["+F+"]",r);if(V instanceof Error)return V}return null}return p(L)}function O(){function D(L,B,H,Y,te){var re=L[B];if(!u(re)){var oe=N(re);return new v("Invalid "+Y+" `"+te+"` of type "+("`"+oe+"` supplied to `"+H+"`, expected a single ReactElement."))}return null}return p(D)}function y(){function D(L,B,H,Y,te){var re=L[B];if(!e.isValidElementType(re)){var oe=N(re);return new v("Invalid "+Y+" `"+te+"` of type "+("`"+oe+"` supplied to `"+H+"`, expected a single ReactElement type."))}return null}return p(D)}function x(D){function L(B,H,Y,te,re){if(!(B[H]instanceof D)){var oe=D.name||d,ne=G(B[H]);return new v("Invalid "+te+" `"+re+"` of type "+("`"+ne+"` supplied to `"+Y+"`, expected ")+("instance of `"+oe+"`."))}return null}return p(L)}function A(D){if(!Array.isArray(D))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),o;function L(B,H,Y,te,re){for(var oe=B[H],ne=0;ne<D.length;ne++)if(m(oe,D[ne]))return null;var F=JSON.stringify(D,function(ee,$){var fe=q($);return fe==="symbol"?String($):$});return new v("Invalid "+te+" `"+re+"` of value `"+String(oe)+"` "+("supplied to `"+Y+"`, expected one of "+F+"."))}return p(L)}function S(D){function L(B,H,Y,te,re){if(typeof D!="function")return new v("Property `"+re+"` of component `"+Y+"` has invalid PropType notation inside objectOf.");var oe=B[H],ne=N(oe);if(ne!=="object")return new v("Invalid "+te+" `"+re+"` of type "+("`"+ne+"` supplied to `"+Y+"`, expected an object."));for(var F in oe)if(n(oe,F)){var V=D(oe,F,Y,te,re+"."+F,r);if(V instanceof Error)return V}return null}return p(L)}function T(D){if(!Array.isArray(D))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var L=0;L<D.length;L++){var B=D[L];if(typeof B!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+U(B)+" at index "+L+"."),o}function H(Y,te,re,oe,ne){for(var F=[],V=0;V<D.length;V++){var ee=D[V],$=ee(Y,te,re,oe,ne,r);if($==null)return null;$.data&&n($.data,"expectedType")&&F.push($.data.expectedType)}var fe=F.length>0?", expected one of type ["+F.join(", ")+"]":"";return new v("Invalid "+oe+" `"+ne+"` supplied to "+("`"+re+"`"+fe+"."))}return p(H)}function M(){function D(L,B,H,Y,te){return I(L[B])?null:new v("Invalid "+Y+" `"+te+"` supplied to "+("`"+H+"`, expected a ReactNode."))}return p(D)}function P(D,L,B,H,Y){return new v((D||"React class")+": "+L+" type `"+B+"."+H+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Y+"`.")}function j(D){function L(B,H,Y,te,re){var oe=B[H],ne=N(oe);if(ne!=="object")return new v("Invalid "+te+" `"+re+"` of type `"+ne+"` "+("supplied to `"+Y+"`, expected `object`."));for(var F in D){var V=D[F];if(typeof V!="function")return P(Y,te,re,F,q(V));var ee=V(oe,F,Y,te,re+"."+F,r);if(ee)return ee}return null}return p(L)}function C(D){function L(B,H,Y,te,re){var oe=B[H],ne=N(oe);if(ne!=="object")return new v("Invalid "+te+" `"+re+"` of type `"+ne+"` "+("supplied to `"+Y+"`, expected `object`."));var F=t({},B[H],D);for(var V in F){var ee=D[V];if(n(D,V)&&typeof ee!="function")return P(Y,te,re,V,q(ee));if(!ee)return new v("Invalid "+te+" `"+re+"` key `"+V+"` supplied to `"+Y+"`.\nBad object: "+JSON.stringify(B[H],null," ")+`
53
+ Valid keys: `+JSON.stringify(Object.keys(D),null," "));var $=ee(oe,V,Y,te,re+"."+V,r);if($)return $}return null}return p(L)}function I(D){switch(typeof D){case"number":case"string":case"undefined":return!0;case"boolean":return!D;case"object":if(Array.isArray(D))return D.every(I);if(D===null||u(D))return!0;var L=f(D);if(L){var B=L.call(D),H;if(L!==D.entries){for(;!(H=B.next()).done;)if(!I(H.value))return!1}else for(;!(H=B.next()).done;){var Y=H.value;if(Y&&!I(Y[1]))return!1}}else return!1;return!0;default:return!1}}function k(D,L){return D==="symbol"?!0:L?L["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&L instanceof Symbol:!1}function N(D){var L=typeof D;return Array.isArray(D)?"array":D instanceof RegExp?"object":k(L,D)?"symbol":L}function q(D){if(typeof D>"u"||D===null)return""+D;var L=N(D);if(L==="object"){if(D instanceof Date)return"date";if(D instanceof RegExp)return"regexp"}return L}function U(D){var L=q(D);switch(L){case"array":case"object":return"an "+L;case"boolean":case"date":case"regexp":return"a "+L;default:return L}}function G(D){return!D.constructor||!D.constructor.name?d:D.constructor.name}return h.checkPropTypes=i,h.resetWarningCache=i.resetWarningCache,h.PropTypes=h,h},yd}var md,Dx;function AI(){if(Dx)return md;Dx=1;var e=pd();function t(){}function r(){}return r.resetWarningCache=t,md=function(){function n(o,u,s,c,l,f){if(f!==e){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}n.isRequired=n;function i(){return n}var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},md}var Nx;function SI(){if(Nx)return po.exports;if(Nx=1,process.env.NODE_ENV!=="production"){var e=Tx(),t=!0;po.exports=_I()(e.isElement,t)}else po.exports=AI()();return po.exports}var PI=SI();const xe=_e(PI),{getOwnPropertyNames:EI,getOwnPropertySymbols:TI}=Object,{hasOwnProperty:jI}=Object.prototype;function gd(e,t){return function(n,i,a){return e(n,i,a)&&t(n,i,a)}}function vo(e){return function(r,n,i){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,i);const{cache:a}=i,o=a.get(r),u=a.get(n);if(o&&u)return o===n&&u===r;a.set(r,n),a.set(n,r);const s=e(r,n,i);return a.delete(r),a.delete(n),s}}function CI(e){return e?.[Symbol.toStringTag]}function Rx(e){return EI(e).concat(TI(e))}const $I=Object.hasOwn||((e,t)=>jI.call(e,t));function Ir(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const MI="__v",II="__o",kI="_owner",{getOwnPropertyDescriptor:Lx,keys:qx}=Object;function DI(e,t){return e.byteLength===t.byteLength&&yo(new Uint8Array(e),new Uint8Array(t))}function NI(e,t,r){let n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function RI(e,t){return e.byteLength===t.byteLength&&yo(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function LI(e,t){return Ir(e.getTime(),t.getTime())}function qI(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function BI(e,t){return e===t}function Bx(e,t,r){const n=e.size;if(n!==t.size)return!1;if(!n)return!0;const i=new Array(n),a=e.entries();let o,u,s=0;for(;(o=a.next())&&!o.done;){const c=t.entries();let l=!1,f=0;for(;(u=c.next())&&!u.done;){if(i[f]){f++;continue}const d=o.value,h=u.value;if(r.equals(d[0],h[0],s,f,e,t,r)&&r.equals(d[1],h[1],d[0],h[0],e,t,r)){l=i[f]=!0;break}f++}if(!l)return!1;s++}return!0}const FI=Ir;function WI(e,t,r){const n=qx(e);let i=n.length;if(qx(t).length!==i)return!1;for(;i-- >0;)if(!Wx(e,t,r,n[i]))return!1;return!0}function Ci(e,t,r){const n=Rx(e);let i=n.length;if(Rx(t).length!==i)return!1;let a,o,u;for(;i-- >0;)if(a=n[i],!Wx(e,t,r,a)||(o=Lx(e,a),u=Lx(t,a),(o||u)&&(!o||!u||o.configurable!==u.configurable||o.enumerable!==u.enumerable||o.writable!==u.writable)))return!1;return!0}function zI(e,t){return Ir(e.valueOf(),t.valueOf())}function UI(e,t){return e.source===t.source&&e.flags===t.flags}function Fx(e,t,r){const n=e.size;if(n!==t.size)return!1;if(!n)return!0;const i=new Array(n),a=e.values();let o,u;for(;(o=a.next())&&!o.done;){const s=t.values();let c=!1,l=0;for(;(u=s.next())&&!u.done;){if(!i[l]&&r.equals(o.value,u.value,o.value,u.value,e,t,r)){c=i[l]=!0;break}l++}if(!c)return!1}return!0}function yo(e,t){let r=e.byteLength;if(t.byteLength!==r||e.byteOffset!==t.byteOffset)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function KI(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function Wx(e,t,r,n){return(n===kI||n===II||n===MI)&&(e.$$typeof||t.$$typeof)?!0:$I(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}const GI="[object ArrayBuffer]",HI="[object Arguments]",VI="[object Boolean]",YI="[object DataView]",XI="[object Date]",ZI="[object Error]",JI="[object Map]",QI="[object Number]",ek="[object Object]",tk="[object RegExp]",rk="[object Set]",nk="[object String]",ik={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},ak="[object URL]",ok=Object.prototype.toString;function uk({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:r,areDatesEqual:n,areErrorsEqual:i,areFunctionsEqual:a,areMapsEqual:o,areNumbersEqual:u,areObjectsEqual:s,arePrimitiveWrappersEqual:c,areRegExpsEqual:l,areSetsEqual:f,areTypedArraysEqual:d,areUrlsEqual:h,unknownTagComparators:m}){return function(p,g,b){if(p===g)return!0;if(p==null||g==null)return!1;const w=typeof p;if(w!==typeof g)return!1;if(w!=="object")return w==="number"?u(p,g,b):w==="function"?a(p,g,b):!1;const O=p.constructor;if(O!==g.constructor)return!1;if(O===Object)return s(p,g,b);if(Array.isArray(p))return t(p,g,b);if(O===Date)return n(p,g,b);if(O===RegExp)return l(p,g,b);if(O===Map)return o(p,g,b);if(O===Set)return f(p,g,b);const y=ok.call(p);if(y===XI)return n(p,g,b);if(y===tk)return l(p,g,b);if(y===JI)return o(p,g,b);if(y===rk)return f(p,g,b);if(y===ek)return typeof p.then!="function"&&typeof g.then!="function"&&s(p,g,b);if(y===ak)return h(p,g,b);if(y===ZI)return i(p,g,b);if(y===HI)return s(p,g,b);if(ik[y])return d(p,g,b);if(y===GI)return e(p,g,b);if(y===YI)return r(p,g,b);if(y===VI||y===QI||y===nk)return c(p,g,b);if(m){let x=m[y];if(!x){const A=CI(p);A&&(x=m[A])}if(x)return x(p,g,b)}return!1}}function sk({circular:e,createCustomConfig:t,strict:r}){let n={areArrayBuffersEqual:DI,areArraysEqual:r?Ci:NI,areDataViewsEqual:RI,areDatesEqual:LI,areErrorsEqual:qI,areFunctionsEqual:BI,areMapsEqual:r?gd(Bx,Ci):Bx,areNumbersEqual:FI,areObjectsEqual:r?Ci:WI,arePrimitiveWrappersEqual:zI,areRegExpsEqual:UI,areSetsEqual:r?gd(Fx,Ci):Fx,areTypedArraysEqual:r?gd(yo,Ci):yo,areUrlsEqual:KI,unknownTagComparators:void 0};if(t&&(n=Object.assign({},n,t(n))),e){const i=vo(n.areArraysEqual),a=vo(n.areMapsEqual),o=vo(n.areObjectsEqual),u=vo(n.areSetsEqual);n=Object.assign({},n,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:o,areSetsEqual:u})}return n}function ck(e){return function(t,r,n,i,a,o,u){return e(t,r,u)}}function lk({circular:e,comparator:t,createState:r,equals:n,strict:i}){if(r)return function(u,s){const{cache:c=e?new WeakMap:void 0,meta:l}=r();return t(u,s,{cache:c,equals:n,meta:l,strict:i})};if(e)return function(u,s){return t(u,s,{cache:new WeakMap,equals:n,meta:void 0,strict:i})};const a={cache:void 0,equals:n,meta:void 0,strict:i};return function(u,s){return t(u,s,a)}}const fk=lr();lr({strict:!0}),lr({circular:!0}),lr({circular:!0,strict:!0}),lr({createInternalComparator:()=>Ir}),lr({strict:!0,createInternalComparator:()=>Ir}),lr({circular:!0,createInternalComparator:()=>Ir}),lr({circular:!0,createInternalComparator:()=>Ir,strict:!0});function lr(e={}){const{circular:t=!1,createInternalComparator:r,createState:n,strict:i=!1}=e,a=sk(e),o=uk(a),u=r?r(o):ck(o);return lk({circular:t,comparator:o,createState:n,equals:u,strict:i})}function dk(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function zx(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function i(a){r<0&&(r=a),a-r>t?(e(a),r=-1):dk(i)};requestAnimationFrame(n)}function bd(e){"@babel/helpers - typeof";return bd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bd(e)}function pk(e){return mk(e)||yk(e)||vk(e)||hk()}function hk(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
54
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vk(e,t){if(e){if(typeof e=="string")return Ux(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ux(e,t)}}function Ux(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function yk(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function mk(e){if(Array.isArray(e))return e}function gk(){var e={},t=function(){return null},r=!1,n=function i(a){if(!r){if(Array.isArray(a)){if(!a.length)return;var o=a,u=pk(o),s=u[0],c=u.slice(1);if(typeof s=="number"){zx(i.bind(null,c),s);return}i(s),zx(i.bind(null,c));return}bd(a)==="object"&&(e=a,t(e)),typeof a=="function"&&a()}};return{stop:function(){r=!0},start:function(a){r=!1,n(a)},subscribe:function(a){return t=a,function(){t=function(){return null}}}}}function $i(e){"@babel/helpers - typeof";return $i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$i(e)}function Kx(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 Gx(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Kx(Object(r),!0).forEach(function(n){Hx(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Hx(e,t,r){return t=bk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bk(e){var t=xk(e,"string");return $i(t)==="symbol"?t:String(t)}function xk(e,t){if($i(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if($i(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var wk=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,i){return n.filter(function(a){return i.includes(a)})})},Ok=function(t){return t},_k=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},Mi=function(t,r){return Object.keys(r).reduce(function(n,i){return Gx(Gx({},n),{},Hx({},i,t(i,r[i])))},{})},Vx=function(t,r,n){return t.map(function(i){return"".concat(_k(i)," ").concat(r,"ms ").concat(n)}).join(",")},Ak=process.env.NODE_ENV!=="production",mo=function(t,r,n,i,a,o,u,s){if(Ak&&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 c=[n,i,a,o,u,s],l=0;console.warn(r.replace(/%s/g,function(){return c[l++]}))}};function Sk(e,t){return Tk(e)||Ek(e,t)||Yx(e,t)||Pk()}function Pk(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
55
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ek(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(l){c=!0,i=l}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function Tk(e){if(Array.isArray(e))return e}function jk(e){return Mk(e)||$k(e)||Yx(e)||Ck()}function Ck(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
56
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Yx(e,t){if(e){if(typeof e=="string")return xd(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return xd(e,t)}}function $k(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Mk(e){if(Array.isArray(e))return xd(e)}function xd(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var go=1e-4,Xx=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},Zx=function(t,r){return t.map(function(n,i){return n*Math.pow(r,i)}).reduce(function(n,i){return n+i})},Jx=function(t,r){return function(n){var i=Xx(t,r);return Zx(i,n)}},Ik=function(t,r){return function(n){var i=Xx(t,r),a=[].concat(jk(i.map(function(o,u){return o*u}).slice(1)),[0]);return Zx(a,n)}},Qx=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0],a=r[1],o=r[2],u=r[3];if(r.length===1)switch(r[0]){case"linear":i=0,a=0,o=1,u=1;break;case"ease":i=.25,a=.1,o=.25,u=1;break;case"ease-in":i=.42,a=0,o=1,u=1;break;case"ease-out":i=.42,a=0,o=.58,u=1;break;case"ease-in-out":i=0,a=0,o=.58,u=1;break;default:{var s=r[0].split("(");if(s[0]==="cubic-bezier"&&s[1].split(")")[0].split(",").length===4){var c=s[1].split(")")[0].split(",").map(function(p){return parseFloat(p)}),l=Sk(c,4);i=l[0],a=l[1],o=l[2],u=l[3]}else mo(!1,"[configBezier]: arguments should be one of oneOf 'linear', 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', instead received %s",r)}}mo([i,o,a,u].every(function(p){return typeof p=="number"&&p>=0&&p<=1}),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",r);var f=Jx(i,o),d=Jx(a,u),h=Ik(i,o),m=function(g){return g>1?1:g<0?0:g},v=function(g){for(var b=g>1?1:g,w=b,O=0;O<8;++O){var y=f(w)-b,x=h(w);if(Math.abs(y-b)<go||x<go)return d(w);w=m(w-y/x)}return d(w)};return v.isStepper=!1,v},kk=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,i=t.damping,a=i===void 0?8:i,o=t.dt,u=o===void 0?17:o,s=function(l,f,d){var h=-(l-f)*n,m=d*a,v=d+(h-m)*u/1e3,p=d*u/1e3+l;return Math.abs(p-f)<go&&Math.abs(v)<go?[f,0]:[p,v]};return s.isStepper=!0,s.dt=u,s},Dk=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0];if(typeof i=="string")switch(i){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return Qx(i);case"spring":return kk();default:if(i.split("(")[0]==="cubic-bezier")return Qx(i);mo(!1,"[configEasing]: first argument should be one of 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', 'linear' and 'spring', instead received %s",r)}return typeof i=="function"?i:(mo(!1,"[configEasing]: first argument type should be function or string, instead received %s",r),null)};function Ii(e){"@babel/helpers - typeof";return Ii=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ii(e)}function ew(e){return Lk(e)||Rk(e)||rw(e)||Nk()}function Nk(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
57
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Rk(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Lk(e){if(Array.isArray(e))return Od(e)}function tw(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 He(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?tw(Object(r),!0).forEach(function(n){wd(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wd(e,t,r){return t=qk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qk(e){var t=Bk(e,"string");return Ii(t)==="symbol"?t:String(t)}function Bk(e,t){if(Ii(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ii(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Fk(e,t){return Uk(e)||zk(e,t)||rw(e,t)||Wk()}function Wk(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
58
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rw(e,t){if(e){if(typeof e=="string")return Od(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Od(e,t)}}function Od(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function zk(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(l){c=!0,i=l}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function Uk(e){if(Array.isArray(e))return e}var bo=function(t,r,n){return t+(r-t)*n},_d=function(t){var r=t.from,n=t.to;return r!==n},Kk=function e(t,r,n){var i=Mi(function(a,o){if(_d(o)){var u=t(o.from,o.to,o.velocity),s=Fk(u,2),c=s[0],l=s[1];return He(He({},o),{},{from:c,velocity:l})}return o},r);return n<1?Mi(function(a,o){return _d(o)?He(He({},o),{},{velocity:bo(o.velocity,i[a].velocity,n),from:bo(o.from,i[a].from,n)}):o},r):e(t,i,n-1)};const Gk=(function(e,t,r,n,i){var a=wk(e,t),o=a.reduce(function(p,g){return He(He({},p),{},wd({},g,[e[g],t[g]]))},{}),u=a.reduce(function(p,g){return He(He({},p),{},wd({},g,{from:e[g],velocity:0,to:t[g]}))},{}),s=-1,c,l,f=function(){return null},d=function(){return Mi(function(g,b){return b.from},u)},h=function(){return!Object.values(u).filter(_d).length},m=function(g){c||(c=g);var b=g-c,w=b/r.dt;u=Kk(r,u,w),i(He(He(He({},e),t),d())),c=g,h()||(s=requestAnimationFrame(f))},v=function(g){l||(l=g);var b=(g-l)/n,w=Mi(function(y,x){return bo.apply(void 0,ew(x).concat([r(b)]))},o);if(i(He(He(He({},e),t),w)),b<1)s=requestAnimationFrame(f);else{var O=Mi(function(y,x){return bo.apply(void 0,ew(x).concat([r(1)]))},o);i(He(He(He({},e),t),O))}};return f=r.isStepper?m:v,function(){return requestAnimationFrame(f),function(){cancelAnimationFrame(s)}}});function fn(e){"@babel/helpers - typeof";return fn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fn(e)}var Hk=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function Vk(e,t){if(e==null)return{};var r=Yk(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Yk(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function Ad(e){return Qk(e)||Jk(e)||Zk(e)||Xk()}function Xk(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
59
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Zk(e,t){if(e){if(typeof e=="string")return Sd(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Sd(e,t)}}function Jk(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Qk(e){if(Array.isArray(e))return Sd(e)}function Sd(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function nw(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 St(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?nw(Object(r),!0).forEach(function(n){ki(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ki(e,t,r){return t=iw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tD(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,iw(n.key),n)}}function rD(e,t,r){return t&&tD(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function iw(e){var t=nD(e,"string");return fn(t)==="symbol"?t:String(t)}function nD(e,t){if(fn(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(fn(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function iD(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Pd(e,t)}function Pd(e,t){return Pd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Pd(e,t)}function aD(e){var t=oD();return function(){var n=xo(e),i;if(t){var a=xo(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return Ed(this,i)}}function Ed(e,t){if(t&&(fn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Td(e)}function Td(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function oD(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function xo(e){return xo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},xo(e)}var Pt=(function(e){iD(r,e);var t=aD(r);function r(n,i){var a;eD(this,r),a=t.call(this,n,i);var o=a.props,u=o.isActive,s=o.attributeName,c=o.from,l=o.to,f=o.steps,d=o.children,h=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(Td(a)),a.changeStyle=a.changeStyle.bind(Td(a)),!u||h<=0)return a.state={style:{}},typeof d=="function"&&(a.state={style:l}),Ed(a);if(f&&f.length)a.state={style:f[0].style};else if(c){if(typeof d=="function")return a.state={style:c},Ed(a);a.state={style:s?ki({},s,c):c}}else a.state={style:{}};return a}return rD(r,[{key:"componentDidMount",value:function(){var i=this.props,a=i.isActive,o=i.canBegin;this.mounted=!0,!(!a||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var a=this.props,o=a.isActive,u=a.canBegin,s=a.attributeName,c=a.shouldReAnimate,l=a.to,f=a.from,d=this.state.style;if(u){if(!o){var h={style:s?ki({},s,l):l};this.state&&d&&(s&&d[s]!==l||!s&&d!==l)&&this.setState(h);return}if(!(fk(i.to,l)&&i.canBegin&&i.isActive)){var m=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var v=m||c?f:i.to;if(this.state&&d){var p={style:s?ki({},s,v):v};(s&&d[s]!==v||!s&&d!==v)&&this.setState(p)}this.runAnimation(St(St({},this.props),{},{from:v,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var a=this,o=i.from,u=i.to,s=i.duration,c=i.easing,l=i.begin,f=i.onAnimationEnd,d=i.onAnimationStart,h=Gk(o,u,Dk(c),s,this.changeStyle),m=function(){a.stopJSAnimation=h()};this.manager.start([d,l,m,s,f])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,u=i.begin,s=i.onAnimationStart,c=o[0],l=c.style,f=c.duration,d=f===void 0?0:f,h=function(v,p,g){if(g===0)return v;var b=p.duration,w=p.easing,O=w===void 0?"ease":w,y=p.style,x=p.properties,A=p.onAnimationEnd,S=g>0?o[g-1]:p,T=x||Object.keys(y);if(typeof O=="function"||O==="spring")return[].concat(Ad(v),[a.runJSAnimation.bind(a,{from:S.style,to:y,duration:b,easing:O}),b]);var M=Vx(T,b,O),P=St(St(St({},S.style),y),{},{transition:M});return[].concat(Ad(v),[P,b,A]).filter(Ok)};return this.manager.start([s].concat(Ad(o.reduce(h,[l,Math.max(d,u)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=gk());var a=i.begin,o=i.duration,u=i.attributeName,s=i.to,c=i.easing,l=i.onAnimationStart,f=i.onAnimationEnd,d=i.steps,h=i.children,m=this.manager;if(this.unSubscribe=m.subscribe(this.handleStyleChange),typeof c=="function"||typeof h=="function"||c==="spring"){this.runJSAnimation(i);return}if(d.length>1){this.runStepAnimation(i);return}var v=u?ki({},u,s):s,p=Vx(Object.keys(v),o,c);m.start([l,a,St(St({},v),{},{transition:p}),o,f])}},{key:"render",value:function(){var i=this.props,a=i.children;i.begin;var o=i.duration;i.attributeName,i.easing;var u=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var s=Vk(i,Hk),c=_.Children.count(a),l=this.state.style;if(typeof a=="function")return a(l);if(!u||c===0||o<=0)return a;var f=function(h){var m=h.props,v=m.style,p=v===void 0?{}:v,g=m.className,b=_.cloneElement(h,St(St({},s),{},{style:St(St({},p),l),className:g}));return b};return c===1?f(_.Children.only(a)):_.createElement("div",null,_.Children.map(a,function(d){return f(d)}))}}]),r})(_.PureComponent);Pt.displayName="Animate",Pt.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},Pt.propTypes={from:xe.oneOfType([xe.object,xe.string]),to:xe.oneOfType([xe.object,xe.string]),attributeName:xe.string,duration:xe.number,begin:xe.number,easing:xe.oneOfType([xe.string,xe.func]),steps:xe.arrayOf(xe.shape({duration:xe.number.isRequired,style:xe.object.isRequired,easing:xe.oneOfType([xe.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),xe.func]),properties:xe.arrayOf("string"),onAnimationEnd:xe.func})),children:xe.oneOfType([xe.node,xe.func]),isActive:xe.bool,canBegin:xe.bool,onAnimationEnd:xe.func,shouldReAnimate:xe.bool,onAnimationStart:xe.func,onAnimationReStart:xe.func};function Di(e){"@babel/helpers - typeof";return Di=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Di(e)}function wo(){return wo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wo.apply(this,arguments)}function uD(e,t){return fD(e)||lD(e,t)||cD(e,t)||sD()}function sD(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
60
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cD(e,t){if(e){if(typeof e=="string")return aw(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return aw(e,t)}}function aw(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function lD(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(l){c=!0,i=l}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function fD(e){if(Array.isArray(e))return e}function ow(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 uw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ow(Object(r),!0).forEach(function(n){dD(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ow(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function dD(e,t,r){return t=pD(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pD(e){var t=hD(e,"string");return Di(t)=="symbol"?t:t+""}function hD(e,t){if(Di(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Di(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var sw=function(t,r,n,i,a){var o=Math.min(Math.abs(n)/2,Math.abs(i)/2),u=i>=0?1:-1,s=n>=0?1:-1,c=i>=0&&n>=0||i<0&&n<0?1:0,l;if(o>0&&a instanceof Array){for(var f=[0,0,0,0],d=0,h=4;d<h;d++)f[d]=a[d]>o?o:a[d];l="M".concat(t,",").concat(r+u*f[0]),f[0]>0&&(l+="A ".concat(f[0],",").concat(f[0],",0,0,").concat(c,",").concat(t+s*f[0],",").concat(r)),l+="L ".concat(t+n-s*f[1],",").concat(r),f[1]>0&&(l+="A ".concat(f[1],",").concat(f[1],",0,0,").concat(c,`,
61
+ `).concat(t+n,",").concat(r+u*f[1])),l+="L ".concat(t+n,",").concat(r+i-u*f[2]),f[2]>0&&(l+="A ".concat(f[2],",").concat(f[2],",0,0,").concat(c,`,
62
+ `).concat(t+n-s*f[2],",").concat(r+i)),l+="L ".concat(t+s*f[3],",").concat(r+i),f[3]>0&&(l+="A ".concat(f[3],",").concat(f[3],",0,0,").concat(c,`,
63
+ `).concat(t,",").concat(r+i-u*f[3])),l+="Z"}else if(o>0&&a===+a&&a>0){var m=Math.min(o,a);l="M ".concat(t,",").concat(r+u*m,`
64
+ A `).concat(m,",").concat(m,",0,0,").concat(c,",").concat(t+s*m,",").concat(r,`
65
+ L `).concat(t+n-s*m,",").concat(r,`
66
+ A `).concat(m,",").concat(m,",0,0,").concat(c,",").concat(t+n,",").concat(r+u*m,`
67
+ L `).concat(t+n,",").concat(r+i-u*m,`
68
+ A `).concat(m,",").concat(m,",0,0,").concat(c,",").concat(t+n-s*m,",").concat(r+i,`
69
+ L `).concat(t+s*m,",").concat(r+i,`
70
+ A `).concat(m,",").concat(m,",0,0,").concat(c,",").concat(t,",").concat(r+i-u*m," Z")}else l="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return l},vD=function(t,r){if(!t||!r)return!1;var n=t.x,i=t.y,a=r.x,o=r.y,u=r.width,s=r.height;if(Math.abs(u)>0&&Math.abs(s)>0){var c=Math.min(a,a+u),l=Math.max(a,a+u),f=Math.min(o,o+s),d=Math.max(o,o+s);return n>=c&&n<=l&&i>=f&&i<=d}return!1},yD={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},jd=function(t){var r=uw(uw({},yD),t),n=_.useRef(),i=_.useState(-1),a=uD(i,2),o=a[0],u=a[1];_.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var O=n.current.getTotalLength();O&&u(O)}catch{}},[]);var s=r.x,c=r.y,l=r.width,f=r.height,d=r.radius,h=r.className,m=r.animationEasing,v=r.animationDuration,p=r.animationBegin,g=r.isAnimationActive,b=r.isUpdateAnimationActive;if(s!==+s||c!==+c||l!==+l||f!==+f||l===0||f===0)return null;var w=ce("recharts-rectangle",h);return b?_.createElement(Pt,{canBegin:o>0,from:{width:l,height:f,x:s,y:c},to:{width:l,height:f,x:s,y:c},duration:v,animationEasing:m,isActive:b},function(O){var y=O.width,x=O.height,A=O.x,S=O.y;return _.createElement(Pt,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:p,duration:v,isActive:g,easing:m},_.createElement("path",wo({},Q(r,!0),{className:w,d:sw(A,S,y,x,d),ref:n})))}):_.createElement("path",wo({},Q(r,!0),{className:w,d:sw(s,c,l,f,d)}))},mD=["points","className","baseLinePoints","connectNulls"];function dn(){return dn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},dn.apply(this,arguments)}function gD(e,t){if(e==null)return{};var r=bD(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function bD(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function cw(e){return _D(e)||OD(e)||wD(e)||xD()}function xD(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
71
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wD(e,t){if(e){if(typeof e=="string")return Cd(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Cd(e,t)}}function OD(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _D(e){if(Array.isArray(e))return Cd(e)}function Cd(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var lw=function(t){return t&&t.x===+t.x&&t.y===+t.y},AD=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=[[]];return t.forEach(function(n){lw(n)?r[r.length-1].push(n):r[r.length-1].length>0&&r.push([])}),lw(t[0])&&r[r.length-1].push(t[0]),r[r.length-1].length<=0&&(r=r.slice(0,-1)),r},Ni=function(t,r){var n=AD(t);r&&(n=[n.reduce(function(a,o){return[].concat(cw(a),cw(o))},[])]);var i=n.map(function(a){return a.reduce(function(o,u,s){return"".concat(o).concat(s===0?"M":"L").concat(u.x,",").concat(u.y)},"")}).join("");return n.length===1?"".concat(i,"Z"):i},SD=function(t,r,n){var i=Ni(t,n);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(Ni(r.reverse(),n).slice(1))},PD=function(t){var r=t.points,n=t.className,i=t.baseLinePoints,a=t.connectNulls,o=gD(t,mD);if(!r||!r.length)return null;var u=ce("recharts-polygon",n);if(i&&i.length){var s=o.stroke&&o.stroke!=="none",c=SD(r,i,a);return _.createElement("g",{className:u},_.createElement("path",dn({},Q(o,!0),{fill:c.slice(-1)==="Z"?o.fill:"none",stroke:"none",d:c})),s?_.createElement("path",dn({},Q(o,!0),{fill:"none",d:Ni(r,a)})):null,s?_.createElement("path",dn({},Q(o,!0),{fill:"none",d:Ni(i,a)})):null)}var l=Ni(r,a);return _.createElement("path",dn({},Q(o,!0),{fill:l.slice(-1)==="Z"?o.fill:"none",className:u,d:l}))};function $d(){return $d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$d.apply(this,arguments)}var Ri=function(t){var r=t.cx,n=t.cy,i=t.r,a=t.className,o=ce("recharts-dot",a);return r===+r&&n===+n&&i===+i?ft.createElement("circle",$d({},Q(t,!1),la(t),{className:o,cx:r,cy:n,r:i})):null};function Li(e){"@babel/helpers - typeof";return Li=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Li(e)}var ED=["x","y","top","left","width","height","className"];function Md(){return Md=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Md.apply(this,arguments)}function fw(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 TD(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fw(Object(r),!0).forEach(function(n){jD(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function jD(e,t,r){return t=CD(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function CD(e){var t=$D(e,"string");return Li(t)=="symbol"?t:t+""}function $D(e,t){if(Li(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Li(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function MD(e,t){if(e==null)return{};var r=ID(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function ID(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var kD=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},DD=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.top,u=o===void 0?0:o,s=t.left,c=s===void 0?0:s,l=t.width,f=l===void 0?0:l,d=t.height,h=d===void 0?0:d,m=t.className,v=MD(t,ED),p=TD({x:n,y:a,top:u,left:c,width:f,height:h},v);return!z(n)||!z(a)||!z(f)||!z(h)||!z(u)||!z(c)?null:_.createElement("path",Md({},Q(p,!0),{className:ce("recharts-cross",m),d:kD(n,a,f,h,u,c)}))},Id,dw;function ND(){if(dw)return Id;dw=1;var e=Ja(),t=v0(),r=Mt();function n(i,a){return i&&i.length?e(i,r(a,2),t):void 0}return Id=n,Id}var RD=ND();const LD=_e(RD);var kd,pw;function qD(){if(pw)return kd;pw=1;var e=Ja(),t=Mt(),r=g0();function n(i,a){return i&&i.length?e(i,t(a,2),r):void 0}return kd=n,kd}var BD=qD();const FD=_e(BD);var WD=["cx","cy","angle","ticks","axisLine"],zD=["ticks","tick","angle","tickFormatter","stroke"];function pn(e){"@babel/helpers - typeof";return pn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pn(e)}function qi(){return qi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qi.apply(this,arguments)}function hw(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 kr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?hw(Object(r),!0).forEach(function(n){_o(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function vw(e,t){if(e==null)return{};var r=UD(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function UD(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function KD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yw(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,gw(n.key),n)}}function GD(e,t,r){return t&&yw(e.prototype,t),r&&yw(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function HD(e,t,r){return t=Oo(t),VD(e,mw()?Reflect.construct(t,r||[],Oo(e).constructor):t.apply(e,r))}function VD(e,t){if(t&&(pn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return YD(e)}function YD(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(mw=function(){return!!e})()}function Oo(e){return Oo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Oo(e)}function XD(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Dd(e,t)}function Dd(e,t){return Dd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Dd(e,t)}function _o(e,t,r){return t=gw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gw(e){var t=ZD(e,"string");return pn(t)=="symbol"?t:t+""}function ZD(e,t){if(pn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(pn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ao=(function(e){function t(){return KD(this,t),HD(this,t,arguments)}return XD(t,e),GD(t,[{key:"getTickValueCoord",value:function(n){var i=n.coordinate,a=this.props,o=a.angle,u=a.cx,s=a.cy;return Te(u,s,i,o)}},{key:"getTickTextAnchor",value:function(){var n=this.props.orientation,i;switch(n){case"left":i="end";break;case"right":i="start";break;default:i="middle";break}return i}},{key:"getViewBox",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.angle,u=n.ticks,s=LD(u,function(l){return l.coordinate||0}),c=FD(u,function(l){return l.coordinate||0});return{cx:i,cy:a,startAngle:o,endAngle:o,innerRadius:c.coordinate||0,outerRadius:s.coordinate||0}}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.angle,u=n.ticks,s=n.axisLine,c=vw(n,WD),l=u.reduce(function(m,v){return[Math.min(m[0],v.coordinate),Math.max(m[1],v.coordinate)]},[1/0,-1/0]),f=Te(i,a,l[0],o),d=Te(i,a,l[1],o),h=kr(kr(kr({},Q(c,!1)),{},{fill:"none"},Q(s,!1)),{},{x1:f.x,y1:f.y,x2:d.x,y2:d.y});return _.createElement("line",qi({className:"recharts-polar-radius-axis-line"},h))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,o=i.tick,u=i.angle,s=i.tickFormatter,c=i.stroke,l=vw(i,zD),f=this.getTickTextAnchor(),d=Q(l,!1),h=Q(o,!1),m=a.map(function(v,p){var g=n.getTickValueCoord(v),b=kr(kr(kr(kr({textAnchor:f,transform:"rotate(".concat(90-u,", ").concat(g.x,", ").concat(g.y,")")},d),{},{stroke:"none",fill:c},h),{},{index:p},g),{},{payload:v});return _.createElement(le,qi({className:ce("recharts-polar-radius-axis-tick",fx(o)),key:"tick-".concat(v.coordinate)},br(n.props,v,p)),t.renderTickItem(o,b,s?s(v.value,p):v.value))});return _.createElement(le,{className:"recharts-polar-radius-axis-ticks"},m)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.axisLine,o=n.tick;return!i||!i.length?null:_.createElement(le,{className:ce("recharts-polar-radius-axis",this.props.className)},a&&this.renderAxisLine(),o&&this.renderTicks(),Ge.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(n,i,a){var o;return _.isValidElement(n)?o=_.cloneElement(n,i):ie(n)?o=n(i):o=_.createElement(wr,qi({},i,{className:"recharts-polar-radius-axis-tick-value"}),a),o}}])})(_.PureComponent);_o(Ao,"displayName","PolarRadiusAxis"),_o(Ao,"axisType","radiusAxis"),_o(Ao,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});function hn(e){"@babel/helpers - typeof";return hn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hn(e)}function Dr(){return Dr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Dr.apply(this,arguments)}function bw(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 Nr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bw(Object(r),!0).forEach(function(n){Po(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function JD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xw(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ow(n.key),n)}}function QD(e,t,r){return t&&xw(e.prototype,t),r&&xw(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function eN(e,t,r){return t=So(t),tN(e,ww()?Reflect.construct(t,r||[],So(e).constructor):t.apply(e,r))}function tN(e,t){if(t&&(hn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return rN(e)}function rN(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ww(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ww=function(){return!!e})()}function So(e){return So=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},So(e)}function nN(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Nd(e,t)}function Nd(e,t){return Nd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Nd(e,t)}function Po(e,t,r){return t=Ow(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ow(e){var t=iN(e,"string");return hn(t)=="symbol"?t:t+""}function iN(e,t){if(hn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(hn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var aN=Math.PI/180,_w=1e-5,Eo=(function(e){function t(){return JD(this,t),eN(this,t,arguments)}return nN(t,e),QD(t,[{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.cx,o=i.cy,u=i.radius,s=i.orientation,c=i.tickSize,l=c||8,f=Te(a,o,u,n.coordinate),d=Te(a,o,u+(s==="inner"?-1:1)*l,n.coordinate);return{x1:f.x,y1:f.y,x2:d.x,y2:d.y}}},{key:"getTickTextAnchor",value:function(n){var i=this.props.orientation,a=Math.cos(-n.coordinate*aN),o;return a>_w?o=i==="outer"?"start":"end":a<-_w?o=i==="outer"?"end":"start":o="middle",o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.radius,u=n.axisLine,s=n.axisLineType,c=Nr(Nr({},Q(this.props,!1)),{},{fill:"none"},Q(u,!1));if(s==="circle")return _.createElement(Ri,Dr({className:"recharts-polar-angle-axis-line"},c,{cx:i,cy:a,r:o}));var l=this.props.ticks,f=l.map(function(d){return Te(i,a,o,d.coordinate)});return _.createElement(PD,Dr({className:"recharts-polar-angle-axis-line"},c,{points:f}))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,o=i.tick,u=i.tickLine,s=i.tickFormatter,c=i.stroke,l=Q(this.props,!1),f=Q(o,!1),d=Nr(Nr({},l),{},{fill:"none"},Q(u,!1)),h=a.map(function(m,v){var p=n.getTickLineCoord(m),g=n.getTickTextAnchor(m),b=Nr(Nr(Nr({textAnchor:g},l),{},{stroke:"none",fill:c},f),{},{index:v,payload:m,x:p.x2,y:p.y2});return _.createElement(le,Dr({className:ce("recharts-polar-angle-axis-tick",fx(o)),key:"tick-".concat(m.coordinate)},br(n.props,m,v)),u&&_.createElement("line",Dr({className:"recharts-polar-angle-axis-tick-line"},d,p)),o&&t.renderTickItem(o,b,s?s(m.value,v):m.value))});return _.createElement(le,{className:"recharts-polar-angle-axis-ticks"},h)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.radius,o=n.axisLine;return a<=0||!i||!i.length?null:_.createElement(le,{className:ce("recharts-polar-angle-axis",this.props.className)},o&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(n,i,a){var o;return _.isValidElement(n)?o=_.cloneElement(n,i):ie(n)?o=n(i):o=_.createElement(wr,Dr({},i,{className:"recharts-polar-angle-axis-tick-value"}),a),o}}])})(_.PureComponent);Po(Eo,"displayName","PolarAngleAxis"),Po(Eo,"axisType","angleAxis"),Po(Eo,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var Rd,Aw;function oN(){if(Aw)return Rd;Aw=1;var e=Uy(),t=e(Object.getPrototypeOf,Object);return Rd=t,Rd}var Ld,Sw;function uN(){if(Sw)return Ld;Sw=1;var e=qt(),t=oN(),r=Bt(),n="[object Object]",i=Function.prototype,a=Object.prototype,o=i.toString,u=a.hasOwnProperty,s=o.call(Object);function c(l){if(!r(l)||e(l)!=n)return!1;var f=t(l);if(f===null)return!0;var d=u.call(f,"constructor")&&f.constructor;return typeof d=="function"&&d instanceof d&&o.call(d)==s}return Ld=c,Ld}var sN=uN();const cN=_e(sN);var qd,Pw;function lN(){if(Pw)return qd;Pw=1;var e=qt(),t=Bt(),r="[object Boolean]";function n(i){return i===!0||i===!1||t(i)&&e(i)==r}return qd=n,qd}var fN=lN();const dN=_e(fN);function Bi(e){"@babel/helpers - typeof";return Bi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bi(e)}function To(){return To=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},To.apply(this,arguments)}function pN(e,t){return mN(e)||yN(e,t)||vN(e,t)||hN()}function hN(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
72
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vN(e,t){if(e){if(typeof e=="string")return Ew(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ew(e,t)}}function Ew(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function yN(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(l){c=!0,i=l}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function mN(e){if(Array.isArray(e))return e}function Tw(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 jw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Tw(Object(r),!0).forEach(function(n){gN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gN(e,t,r){return t=bN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bN(e){var t=xN(e,"string");return Bi(t)=="symbol"?t:t+""}function xN(e,t){if(Bi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Bi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Cw=function(t,r,n,i,a){var o=n-i,u;return u="M ".concat(t,",").concat(r),u+="L ".concat(t+n,",").concat(r),u+="L ".concat(t+n-o/2,",").concat(r+a),u+="L ".concat(t+n-o/2-i,",").concat(r+a),u+="L ".concat(t,",").concat(r," Z"),u},wN={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},ON=function(t){var r=jw(jw({},wN),t),n=_.useRef(),i=_.useState(-1),a=pN(i,2),o=a[0],u=a[1];_.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var w=n.current.getTotalLength();w&&u(w)}catch{}},[]);var s=r.x,c=r.y,l=r.upperWidth,f=r.lowerWidth,d=r.height,h=r.className,m=r.animationEasing,v=r.animationDuration,p=r.animationBegin,g=r.isUpdateAnimationActive;if(s!==+s||c!==+c||l!==+l||f!==+f||d!==+d||l===0&&f===0||d===0)return null;var b=ce("recharts-trapezoid",h);return g?_.createElement(Pt,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:d,x:s,y:c},to:{upperWidth:l,lowerWidth:f,height:d,x:s,y:c},duration:v,animationEasing:m,isActive:g},function(w){var O=w.upperWidth,y=w.lowerWidth,x=w.height,A=w.x,S=w.y;return _.createElement(Pt,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:p,duration:v,easing:m},_.createElement("path",To({},Q(r,!0),{className:b,d:Cw(A,S,O,y,x),ref:n})))}):_.createElement("g",null,_.createElement("path",To({},Q(r,!0),{className:b,d:Cw(s,c,l,f,d)})))},_N=["option","shapeType","propTransformer","activeClassName","isActive"];function Fi(e){"@babel/helpers - typeof";return Fi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fi(e)}function AN(e,t){if(e==null)return{};var r=SN(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function SN(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function $w(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 jo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$w(Object(r),!0).forEach(function(n){PN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$w(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function PN(e,t,r){return t=EN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function EN(e){var t=TN(e,"string");return Fi(t)=="symbol"?t:t+""}function TN(e,t){if(Fi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Fi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jN(e,t){return jo(jo({},t),e)}function CN(e,t){return e==="symbols"}function Mw(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return _.createElement(jd,r);case"trapezoid":return _.createElement(ON,r);case"sector":return _.createElement(wx,r);case"symbols":if(CN(t))return _.createElement(Us,r);break;default:return null}}function $N(e){return _.isValidElement(e)?e.props:e}function Iw(e){var t=e.option,r=e.shapeType,n=e.propTransformer,i=n===void 0?jN:n,a=e.activeClassName,o=a===void 0?"recharts-active-shape":a,u=e.isActive,s=AN(e,_N),c;if(_.isValidElement(t))c=_.cloneElement(t,jo(jo({},s),$N(t)));else if(ie(t))c=t(s);else if(cN(t)&&!dN(t)){var l=i(t,s);c=_.createElement(Mw,{shapeType:r,elementProps:l})}else{var f=s;c=_.createElement(Mw,{shapeType:r,elementProps:f})}return u?_.createElement(le,{className:o},c):c}function Co(e,t){return t!=null&&"trapezoids"in e.props}function $o(e,t){return t!=null&&"sectors"in e.props}function Wi(e,t){return t!=null&&"points"in e.props}function MN(e,t){var r,n,i=e.x===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.x)||e.x===t.x,a=e.y===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.y)||e.y===t.y;return i&&a}function IN(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function kN(e,t){var r=e.x===t.x,n=e.y===t.y,i=e.z===t.z;return r&&n&&i}function DN(e,t){var r;return Co(e,t)?r=MN:$o(e,t)?r=IN:Wi(e,t)&&(r=kN),r}function NN(e,t){var r;return Co(e,t)?r="trapezoids":$o(e,t)?r="sectors":Wi(e,t)&&(r="points"),r}function RN(e,t){if(Co(e,t)){var r;return(r=t.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}if($o(e,t)){var n;return(n=t.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}return Wi(e,t)?t.payload:{}}function LN(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,i=NN(r,t),a=RN(r,t),o=n.filter(function(s,c){var l=Er(a,s),f=r.props[i].filter(function(m){var v=DN(r,t);return v(m,t)}),d=r.props[i].indexOf(f[f.length-1]),h=c===d;return l&&h}),u=n.indexOf(o[o.length-1]);return u}var Mo;function vn(e){"@babel/helpers - typeof";return vn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vn(e)}function yn(){return yn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},yn.apply(this,arguments)}function kw(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 je(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?kw(Object(r),!0).forEach(function(n){gt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function qN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Dw(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Rw(n.key),n)}}function BN(e,t,r){return t&&Dw(e.prototype,t),r&&Dw(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function FN(e,t,r){return t=Io(t),WN(e,Nw()?Reflect.construct(t,r||[],Io(e).constructor):t.apply(e,r))}function WN(e,t){if(t&&(vn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return zN(e)}function zN(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Nw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Nw=function(){return!!e})()}function Io(e){return Io=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Io(e)}function UN(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Bd(e,t)}function Bd(e,t){return Bd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Bd(e,t)}function gt(e,t,r){return t=Rw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Rw(e){var t=KN(e,"string");return vn(t)=="symbol"?t:t+""}function KN(e,t){if(vn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(vn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Jt=(function(e){function t(r){var n;return qN(this,t),n=FN(this,t,[r]),gt(n,"pieRef",null),gt(n,"sectorRefs",[]),gt(n,"id",gr("recharts-pie-")),gt(n,"handleAnimationEnd",function(){var i=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),ie(i)&&i()}),gt(n,"handleAnimationStart",function(){var i=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),ie(i)&&i()}),n.state={isAnimationFinished:!r.isAnimationActive,prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,sectorToFocus:0},n}return UN(t,e),BN(t,[{key:"isActiveIndex",value:function(n){var i=this.props.activeIndex;return Array.isArray(i)?i.indexOf(n)!==-1:n===i}},{key:"hasActiveIndex",value:function(){var n=this.props.activeIndex;return Array.isArray(n)?n.length!==0:n||n===0}},{key:"renderLabels",value:function(n){var i=this.props.isAnimationActive;if(i&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.label,u=a.labelLine,s=a.dataKey,c=a.valueKey,l=Q(this.props,!1),f=Q(o,!1),d=Q(u,!1),h=o&&o.offsetRadius||20,m=n.map(function(v,p){var g=(v.startAngle+v.endAngle)/2,b=Te(v.cx,v.cy,v.outerRadius+h,g),w=je(je(je(je({},l),v),{},{stroke:"none"},f),{},{index:p,textAnchor:t.getTextAnchor(b.x,v.cx)},b),O=je(je(je(je({},l),v),{},{fill:"none",stroke:v.fill},d),{},{index:p,points:[Te(v.cx,v.cy,v.outerRadius,g),b]}),y=s;return ue(s)&&ue(c)?y="value":ue(s)&&(y=c),_.createElement(le,{key:"label-".concat(v.startAngle,"-").concat(v.endAngle,"-").concat(v.midAngle,"-").concat(p)},u&&t.renderLabelLineItem(u,O,"line"),t.renderLabelItem(o,w,Ie(v,y)))});return _.createElement(le,{className:"recharts-pie-labels"},m)}},{key:"renderSectorsStatically",value:function(n){var i=this,a=this.props,o=a.activeShape,u=a.blendStroke,s=a.inactiveShape;return n.map(function(c,l){if(c?.startAngle===0&&c?.endAngle===0&&n.length!==1)return null;var f=i.isActiveIndex(l),d=s&&i.hasActiveIndex()?s:null,h=f?o:d,m=je(je({},c),{},{stroke:u?c.fill:c.stroke,tabIndex:-1});return _.createElement(le,yn({ref:function(p){p&&!i.sectorRefs.includes(p)&&i.sectorRefs.push(p)},tabIndex:-1,className:"recharts-pie-sector"},br(i.props,c,l),{key:"sector-".concat(c?.startAngle,"-").concat(c?.endAngle,"-").concat(c.midAngle,"-").concat(l)}),_.createElement(Iw,yn({option:h,isActive:f,shapeType:"sector"},m)))})}},{key:"renderSectorsWithAnimation",value:function(){var n=this,i=this.props,a=i.sectors,o=i.isAnimationActive,u=i.animationBegin,s=i.animationDuration,c=i.animationEasing,l=i.animationId,f=this.state,d=f.prevSectors,h=f.prevIsAnimationActive;return _.createElement(Pt,{begin:u,duration:s,isActive:o,easing:c,from:{t:0},to:{t:1},key:"pie-".concat(l,"-").concat(h),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(m){var v=m.t,p=[],g=a&&a[0],b=g.startAngle;return a.forEach(function(w,O){var y=d&&d[O],x=O>0?it(w,"paddingAngle",0):0;if(y){var A=Be(y.endAngle-y.startAngle,w.endAngle-w.startAngle),S=je(je({},w),{},{startAngle:b+x,endAngle:b+A(v)+x});p.push(S),b=S.endAngle}else{var T=w.endAngle,M=w.startAngle,P=Be(0,T-M),j=P(v),C=je(je({},w),{},{startAngle:b+x,endAngle:b+j+x});p.push(C),b=C.endAngle}}),_.createElement(le,null,n.renderSectorsStatically(p))})}},{key:"attachKeyboardHandlers",value:function(n){var i=this;n.onkeydown=function(a){if(!a.altKey)switch(a.key){case"ArrowLeft":{var o=++i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[o].focus(),i.setState({sectorToFocus:o});break}case"ArrowRight":{var u=--i.state.sectorToFocus<0?i.sectorRefs.length-1:i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[u].focus(),i.setState({sectorToFocus:u});break}case"Escape":{i.sectorRefs[i.state.sectorToFocus].blur(),i.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var n=this.props,i=n.sectors,a=n.isAnimationActive,o=this.state.prevSectors;return a&&i&&i.length&&(!o||!Er(o,i))?this.renderSectorsWithAnimation():this.renderSectorsStatically(i)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var n=this,i=this.props,a=i.hide,o=i.sectors,u=i.className,s=i.label,c=i.cx,l=i.cy,f=i.innerRadius,d=i.outerRadius,h=i.isAnimationActive,m=this.state.isAnimationFinished;if(a||!o||!o.length||!z(c)||!z(l)||!z(f)||!z(d))return null;var v=ce("recharts-pie",u);return _.createElement(le,{tabIndex:this.props.rootTabIndex,className:v,ref:function(g){n.pieRef=g}},this.renderSectors(),s&&this.renderLabels(o),Ge.renderCallByParent(this.props,null,!1),(!h||m)&&Nt.renderCallByParent(this.props,o,!1))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return i.prevIsAnimationActive!==n.isAnimationActive?{prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:[],isAnimationFinished:!0}:n.isAnimationActive&&n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:i.curSectors,isAnimationFinished:!0}:n.sectors!==i.curSectors?{curSectors:n.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(n,i){return n>i?"start":n<i?"end":"middle"}},{key:"renderLabelLineItem",value:function(n,i,a){if(_.isValidElement(n))return _.cloneElement(n,i);if(ie(n))return n(i);var o=ce("recharts-pie-label-line",typeof n!="boolean"?n.className:"");return _.createElement(Mr,yn({},i,{key:a,type:"linear",className:o}))}},{key:"renderLabelItem",value:function(n,i,a){if(_.isValidElement(n))return _.cloneElement(n,i);var o=a;if(ie(n)&&(o=n(i),_.isValidElement(o)))return o;var u=ce("recharts-pie-label-text",typeof n!="boolean"&&!ie(n)?n.className:"");return _.createElement(wr,yn({},i,{alignmentBaseline:"middle",className:u}),o)}}])})(_.PureComponent);Mo=Jt,gt(Jt,"displayName","Pie"),gt(Jt,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!ir.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0}),gt(Jt,"parseDeltaAngle",function(e,t){var r=Xe(t-e),n=Math.min(Math.abs(t-e),360);return r*n}),gt(Jt,"getRealPieData",function(e){var t=e.data,r=e.children,n=Q(e,!1),i=at(r,Ca);return t&&t.length?t.map(function(a,o){return je(je(je({payload:a},n),a),i&&i[o]&&i[o].props)}):i&&i.length?i.map(function(a){return je(je({},n),a.props)}):[]}),gt(Jt,"parseCoordinateOfPie",function(e,t){var r=t.top,n=t.left,i=t.width,a=t.height,o=cx(i,a),u=n+Ze(e.cx,i,i/2),s=r+Ze(e.cy,a,a/2),c=Ze(e.innerRadius,o,0),l=Ze(e.outerRadius,o,o*.8),f=e.maxRadius||Math.sqrt(i*i+a*a)/2;return{cx:u,cy:s,innerRadius:c,outerRadius:l,maxRadius:f}}),gt(Jt,"getComposedData",function(e){var t=e.item,r=e.offset,n=t.type.defaultProps!==void 0?je(je({},t.type.defaultProps),t.props):t.props,i=Mo.getRealPieData(n);if(!i||!i.length)return null;var a=n.cornerRadius,o=n.startAngle,u=n.endAngle,s=n.paddingAngle,c=n.dataKey,l=n.nameKey,f=n.valueKey,d=n.tooltipType,h=Math.abs(n.minAngle),m=Mo.parseCoordinateOfPie(n,r),v=Mo.parseDeltaAngle(o,u),p=Math.abs(v),g=c;ue(c)&&ue(f)?(wt(!1,`Use "dataKey" to specify the value of pie,
73
+ the props "valueKey" will be deprecated in 1.1.0`),g="value"):ue(c)&&(wt(!1,`Use "dataKey" to specify the value of pie,
74
+ the props "valueKey" will be deprecated in 1.1.0`),g=f);var b=i.filter(function(S){return Ie(S,g,0)!==0}).length,w=(p>=360?b:b-1)*s,O=p-b*h-w,y=i.reduce(function(S,T){var M=Ie(T,g,0);return S+(z(M)?M:0)},0),x;if(y>0){var A;x=i.map(function(S,T){var M=Ie(S,g,0),P=Ie(S,l,T),j=(z(M)?M:0)/y,C;T?C=A.endAngle+Xe(v)*s*(M!==0?1:0):C=o;var I=C+Xe(v)*((M!==0?h:0)+j*O),k=(C+I)/2,N=(m.innerRadius+m.outerRadius)/2,q=[{name:P,value:M,payload:S,dataKey:g,type:d}],U=Te(m.cx,m.cy,N,k);return A=je(je(je({percent:j,cornerRadius:a,name:P,tooltipPayload:q,midAngle:k,middleRadius:N,tooltipPosition:U},S),m),{},{value:Ie(S,g),startAngle:C,endAngle:I,payload:S,paddingAngle:Xe(v)*s}),A})}return je(je({},m),{},{sectors:x,data:i})});var Fd,Lw;function GN(){if(Lw)return Fd;Lw=1;var e=Math.ceil,t=Math.max;function r(n,i,a,o){for(var u=-1,s=t(e((i-n)/(a||1)),0),c=Array(s);s--;)c[o?s:++u]=n,n+=a;return c}return Fd=r,Fd}var Wd,qw;function Bw(){if(qw)return Wd;qw=1;var e=Eg(),t=1/0,r=17976931348623157e292;function n(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-t){var a=i<0?-1:1;return a*r}return i===i?i:0}return Wd=n,Wd}var zd,Fw;function HN(){if(Fw)return zd;Fw=1;var e=GN(),t=Sa(),r=Bw();function n(i){return function(a,o,u){return u&&typeof u!="number"&&t(a,o,u)&&(o=u=void 0),a=r(a),o===void 0?(o=a,a=0):o=r(o),u=u===void 0?a<o?1:-1:r(u),e(a,o,u,i)}}return zd=n,zd}var Ud,Ww;function VN(){if(Ww)return Ud;Ww=1;var e=HN(),t=e();return Ud=t,Ud}var YN=VN();const ko=_e(YN);function zi(e){"@babel/helpers - typeof";return zi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zi(e)}function zw(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 Uw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?zw(Object(r),!0).forEach(function(n){Kw(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Kw(e,t,r){return t=XN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function XN(e){var t=ZN(e,"string");return zi(t)=="symbol"?t:t+""}function ZN(e,t){if(zi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(zi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var JN=["Webkit","Moz","O","ms"],QN=function(t,r){var n=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=JN.reduce(function(a,o){return Uw(Uw({},a),{},Kw({},o+n,r))},{});return i[t]=r,i};function mn(e){"@babel/helpers - typeof";return mn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mn(e)}function Do(){return Do=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Do.apply(this,arguments)}function Gw(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 Kd(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Gw(Object(r),!0).forEach(function(n){st(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function eR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hw(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Yw(n.key),n)}}function tR(e,t,r){return t&&Hw(e.prototype,t),r&&Hw(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function rR(e,t,r){return t=No(t),nR(e,Vw()?Reflect.construct(t,r||[],No(e).constructor):t.apply(e,r))}function nR(e,t){if(t&&(mn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return iR(e)}function iR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Vw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Vw=function(){return!!e})()}function No(e){return No=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},No(e)}function aR(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Gd(e,t)}function Gd(e,t){return Gd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Gd(e,t)}function st(e,t,r){return t=Yw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Yw(e){var t=oR(e,"string");return mn(t)=="symbol"?t:t+""}function oR(e,t){if(mn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(mn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var uR=function(t){var r=t.data,n=t.startIndex,i=t.endIndex,a=t.x,o=t.width,u=t.travellerWidth;if(!r||!r.length)return{};var s=r.length,c=ai().domain(ko(0,s)).range([a,a+o-u]),l=c.domain().map(function(f){return c(f)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:c(n),endX:c(i),scale:c,scaleValues:l}},Xw=function(t){return t.changedTouches&&!!t.changedTouches.length},gn=(function(e){function t(r){var n;return eR(this,t),n=rR(this,t,[r]),st(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),st(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),st(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,a=i.endIndex,o=i.onDragEnd,u=i.startIndex;o?.({endIndex:a,startIndex:u})}),n.detachDragEndListener()}),st(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),st(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),st(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),st(n,"handleSlideDragStart",function(i){var a=Xw(i)?i.changedTouches[0]:i;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:a.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},n.state={},n}return aR(t,e),tR(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var i=n.startX,a=n.endX,o=this.state.scaleValues,u=this.props,s=u.gap,c=u.data,l=c.length-1,f=Math.min(i,a),d=Math.max(i,a),h=t.getIndexInRange(o,f),m=t.getIndexInRange(o,d);return{startIndex:h-h%s,endIndex:m===l?l:m-m%s}}},{key:"getTextOfTick",value:function(n){var i=this.props,a=i.data,o=i.tickFormatter,u=i.dataKey,s=Ie(a[n],u,n);return ie(o)?o(s,n):s}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(n){var i=this.state,a=i.slideMoveStartX,o=i.startX,u=i.endX,s=this.props,c=s.x,l=s.width,f=s.travellerWidth,d=s.startIndex,h=s.endIndex,m=s.onChange,v=n.pageX-a;v>0?v=Math.min(v,c+l-f-u,c+l-f-o):v<0&&(v=Math.max(v,c-o,c-u));var p=this.getIndex({startX:o+v,endX:u+v});(p.startIndex!==d||p.endIndex!==h)&&m&&m(p),this.setState({startX:o+v,endX:u+v,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=Xw(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:a.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var i=this.state,a=i.brushMoveStartX,o=i.movingTravellerId,u=i.endX,s=i.startX,c=this.state[o],l=this.props,f=l.x,d=l.width,h=l.travellerWidth,m=l.onChange,v=l.gap,p=l.data,g={startX:this.state.startX,endX:this.state.endX},b=n.pageX-a;b>0?b=Math.min(b,f+d-h-c):b<0&&(b=Math.max(b,f-c)),g[o]=c+b;var w=this.getIndex(g),O=w.startIndex,y=w.endIndex,x=function(){var S=p.length-1;return o==="startX"&&(u>s?O%v===0:y%v===0)||u<s&&y===S||o==="endX"&&(u>s?y%v===0:O%v===0)||u>s&&y===S};this.setState(st(st({},o,c+b),"brushMoveStartX",n.pageX),function(){m&&x()&&m(w)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var a=this,o=this.state,u=o.scaleValues,s=o.startX,c=o.endX,l=this.state[i],f=u.indexOf(l);if(f!==-1){var d=f+n;if(!(d===-1||d>=u.length)){var h=u[d];i==="startX"&&h>=c||i==="endX"&&h<=s||this.setState(st({},i,h),function(){a.props.onChange(a.getIndex({startX:a.state.startX,endX:a.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,u=n.height,s=n.fill,c=n.stroke;return _.createElement("rect",{stroke:c,fill:s,x:i,y:a,width:o,height:u})}},{key:"renderPanorama",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,u=n.height,s=n.data,c=n.children,l=n.padding,f=_.Children.only(c);return f?_.cloneElement(f,{x:i,y:a,width:o,height:u,margin:l,compact:!0,data:s}):null}},{key:"renderTravellerLayer",value:function(n,i){var a,o,u=this,s=this.props,c=s.y,l=s.travellerWidth,f=s.height,d=s.traveller,h=s.ariaLabel,m=s.data,v=s.startIndex,p=s.endIndex,g=Math.max(n,this.props.x),b=Kd(Kd({},Q(this.props,!1)),{},{x:g,y:c,width:l,height:f}),w=h||"Min value: ".concat((a=m[v])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=m[p])===null||o===void 0?void 0:o.name);return _.createElement(le,{tabIndex:0,role:"slider","aria-label":w,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(y){["ArrowLeft","ArrowRight"].includes(y.key)&&(y.preventDefault(),y.stopPropagation(),u.handleTravellerMoveKeyboard(y.key==="ArrowRight"?1:-1,i))},onFocus:function(){u.setState({isTravellerFocused:!0})},onBlur:function(){u.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(d,b))}},{key:"renderSlide",value:function(n,i){var a=this.props,o=a.y,u=a.height,s=a.stroke,c=a.travellerWidth,l=Math.min(n,i)+c,f=Math.max(Math.abs(i-n)-c,0);return _.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:s,fillOpacity:.2,x:l,y:o,width:f,height:u})}},{key:"renderText",value:function(){var n=this.props,i=n.startIndex,a=n.endIndex,o=n.y,u=n.height,s=n.travellerWidth,c=n.stroke,l=this.state,f=l.startX,d=l.endX,h=5,m={pointerEvents:"none",fill:c};return _.createElement(le,{className:"recharts-brush-texts"},_.createElement(wr,Do({textAnchor:"end",verticalAnchor:"middle",x:Math.min(f,d)-h,y:o+u/2},m),this.getTextOfTick(i)),_.createElement(wr,Do({textAnchor:"start",verticalAnchor:"middle",x:Math.max(f,d)+s+h,y:o+u/2},m),this.getTextOfTick(a)))}},{key:"render",value:function(){var n=this.props,i=n.data,a=n.className,o=n.children,u=n.x,s=n.y,c=n.width,l=n.height,f=n.alwaysShowText,d=this.state,h=d.startX,m=d.endX,v=d.isTextActive,p=d.isSlideMoving,g=d.isTravellerMoving,b=d.isTravellerFocused;if(!i||!i.length||!z(u)||!z(s)||!z(c)||!z(l)||c<=0||l<=0)return null;var w=ce("recharts-brush",a),O=_.Children.count(o)===1,y=QN("userSelect","none");return _.createElement(le,{className:w,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:y},this.renderBackground(),O&&this.renderPanorama(),this.renderSlide(h,m),this.renderTravellerLayer(h,"startX"),this.renderTravellerLayer(m,"endX"),(v||p||g||b||f)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,a=n.y,o=n.width,u=n.height,s=n.stroke,c=Math.floor(a+u/2)-1;return _.createElement(_.Fragment,null,_.createElement("rect",{x:i,y:a,width:o,height:u,fill:s,stroke:"none"}),_.createElement("line",{x1:i+1,y1:c,x2:i+o-1,y2:c,fill:"none",stroke:"#fff"}),_.createElement("line",{x1:i+1,y1:c+2,x2:i+o-1,y2:c+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,i){var a;return _.isValidElement(n)?a=_.cloneElement(n,i):ie(n)?a=n(i):a=t.renderDefaultTraveller(i),a}},{key:"getDerivedStateFromProps",value:function(n,i){var a=n.data,o=n.width,u=n.x,s=n.travellerWidth,c=n.updateId,l=n.startIndex,f=n.endIndex;if(a!==i.prevData||c!==i.prevUpdateId)return Kd({prevData:a,prevTravellerWidth:s,prevUpdateId:c,prevX:u,prevWidth:o},a&&a.length?uR({data:a,width:o,x:u,travellerWidth:s,startIndex:l,endIndex:f}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||u!==i.prevX||s!==i.prevTravellerWidth)){i.scale.range([u,u+o-s]);var d=i.scale.domain().map(function(h){return i.scale(h)});return{prevData:a,prevTravellerWidth:s,prevUpdateId:c,prevX:u,prevWidth:o,startX:i.scale(n.startIndex),endX:i.scale(n.endIndex),scaleValues:d}}return null}},{key:"getIndexInRange",value:function(n,i){for(var a=n.length,o=0,u=a-1;u-o>1;){var s=Math.floor((o+u)/2);n[s]>i?u=s:o=s}return i>=n[u]?u:o}}])})(_.PureComponent);st(gn,"displayName","Brush"),st(gn,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var Hd,Zw;function sR(){if(Zw)return Hd;Zw=1;var e=_l();function t(r,n){var i;return e(r,function(a,o,u){return i=n(a,o,u),!i}),!!i}return Hd=t,Hd}var Vd,Jw;function cR(){if(Jw)return Vd;Jw=1;var e=dy(),t=Mt(),r=sR(),n=et(),i=Sa();function a(o,u,s){var c=n(o)?e:r;return s&&i(o,u,s)&&(u=void 0),c(o,t(u,3))}return Vd=a,Vd}var lR=cR();const fR=_e(lR);var Rt=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},Yd,Qw;function dR(){if(Qw)return Yd;Qw=1;var e=ig();function t(r,n,i){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return Yd=t,Yd}var Xd,eO;function pR(){if(eO)return Xd;eO=1;var e=dR(),t=Km(),r=Mt();function n(i,a){var o={};return a=r(a,3),t(i,function(u,s,c){e(o,s,a(u,s,c))}),o}return Xd=n,Xd}var hR=pR();const vR=_e(hR);var Zd,tO;function yR(){if(tO)return Zd;tO=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(!r(t[n],n,t))return!1;return!0}return Zd=e,Zd}var Jd,rO;function mR(){if(rO)return Jd;rO=1;var e=_l();function t(r,n){var i=!0;return e(r,function(a,o,u){return i=!!n(a,o,u),i}),i}return Jd=t,Jd}var Qd,nO;function gR(){if(nO)return Qd;nO=1;var e=yR(),t=mR(),r=Mt(),n=et(),i=Sa();function a(o,u,s){var c=n(o)?e:t;return s&&i(o,u,s)&&(u=void 0),c(o,r(u,3))}return Qd=a,Qd}var bR=gR();const iO=_e(bR);var xR=["x","y"];function bn(e){"@babel/helpers - typeof";return bn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bn(e)}function ep(){return ep=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ep.apply(this,arguments)}function aO(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 Ui(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?aO(Object(r),!0).forEach(function(n){wR(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):aO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wR(e,t,r){return t=OR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function OR(e){var t=_R(e,"string");return bn(t)=="symbol"?t:t+""}function _R(e,t){if(bn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(bn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function AR(e,t){if(e==null)return{};var r=SR(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function SR(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function PR(e,t){var r=e.x,n=e.y,i=AR(e,xR),a="".concat(r),o=parseInt(a,10),u="".concat(n),s=parseInt(u,10),c="".concat(t.height||i.height),l=parseInt(c,10),f="".concat(t.width||i.width),d=parseInt(f,10);return Ui(Ui(Ui(Ui(Ui({},t),i),o?{x:o}:{}),s?{y:s}:{}),{},{height:l,width:d,name:t.name,radius:t.radius})}function oO(e){return _.createElement(Iw,ep({shapeType:"rectangle",propTransformer:PR,activeClassName:"recharts-active-bar"},e))}var ER=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,i){if(typeof t=="number")return t;var a=z(n)||zA(n);return a?t(n,i):(a||(process.env.NODE_ENV!=="production"?rt(!1,"minPointSize callback function received a value with type of ".concat(bn(n),". Currently only numbers or null/undefined are supported.")):rt()),r)}},TR=["value","background"],uO;function xn(e){"@babel/helpers - typeof";return xn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xn(e)}function jR(e,t){if(e==null)return{};var r=CR(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function CR(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Ro(){return Ro=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ro.apply(this,arguments)}function sO(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 Ne(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sO(Object(r),!0).forEach(function(n){fr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $R(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,fO(n.key),n)}}function MR(e,t,r){return t&&cO(e.prototype,t),r&&cO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function IR(e,t,r){return t=Lo(t),kR(e,lO()?Reflect.construct(t,r||[],Lo(e).constructor):t.apply(e,r))}function kR(e,t){if(t&&(xn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return DR(e)}function DR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(lO=function(){return!!e})()}function Lo(e){return Lo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Lo(e)}function NR(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tp(e,t)}function tp(e,t){return tp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},tp(e,t)}function fr(e,t,r){return t=fO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fO(e){var t=RR(e,"string");return xn(t)=="symbol"?t:t+""}function RR(e,t){if(xn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(xn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var dr=(function(e){function t(){var r;$R(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=IR(this,t,[].concat(i)),fr(r,"state",{isAnimationFinished:!1}),fr(r,"id",gr("recharts-bar-")),fr(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),fr(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return NR(t,e),MR(t,[{key:"renderRectanglesStatically",value:function(n){var i=this,a=this.props,o=a.shape,u=a.dataKey,s=a.activeIndex,c=a.activeBar,l=Q(this.props,!1);return n&&n.map(function(f,d){var h=d===s,m=h?c:o,v=Ne(Ne(Ne({},l),f),{},{isActive:h,option:m,index:d,dataKey:u,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return _.createElement(le,Ro({className:"recharts-bar-rectangle"},br(i.props,f,d),{key:"rectangle-".concat(f?.x,"-").concat(f?.y,"-").concat(f?.value,"-").concat(d)}),_.createElement(oO,v))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,i=this.props,a=i.data,o=i.layout,u=i.isAnimationActive,s=i.animationBegin,c=i.animationDuration,l=i.animationEasing,f=i.animationId,d=this.state.prevData;return _.createElement(Pt,{begin:s,duration:c,isActive:u,easing:l,from:{t:0},to:{t:1},key:"bar-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(h){var m=h.t,v=a.map(function(p,g){var b=d&&d[g];if(b){var w=Be(b.x,p.x),O=Be(b.y,p.y),y=Be(b.width,p.width),x=Be(b.height,p.height);return Ne(Ne({},p),{},{x:w(m),y:O(m),width:y(m),height:x(m)})}if(o==="horizontal"){var A=Be(0,p.height),S=A(m);return Ne(Ne({},p),{},{y:p.y+p.height-S,height:S})}var T=Be(0,p.width),M=T(m);return Ne(Ne({},p),{},{width:M})});return _.createElement(le,null,n.renderRectanglesStatically(v))})}},{key:"renderRectangles",value:function(){var n=this.props,i=n.data,a=n.isAnimationActive,o=this.state.prevData;return a&&i&&i.length&&(!o||!Er(o,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var n=this,i=this.props,a=i.data,o=i.dataKey,u=i.activeIndex,s=Q(this.props.background,!1);return a.map(function(c,l){c.value;var f=c.background,d=jR(c,TR);if(!f)return null;var h=Ne(Ne(Ne(Ne(Ne({},d),{},{fill:"#eee"},f),s),br(n.props,c,l)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:l,className:"recharts-bar-background-rectangle"});return _.createElement(oO,Ro({key:"background-bar-".concat(l),option:n.props.background,isActive:l===u},h))})}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.data,u=a.xAxis,s=a.yAxis,c=a.layout,l=a.children,f=at(l,gi);if(!f)return null;var d=c==="vertical"?o[0].height/2:o[0].width/2,h=function(p,g){var b=Array.isArray(p.value)?p.value[1]:p.value;return{x:p.x,y:p.y,value:b,errorVal:Ie(p,g)}},m={clipPath:n?"url(#clipPath-".concat(i,")"):null};return _.createElement(le,m,f.map(function(v){return _.cloneElement(v,{key:"error-bar-".concat(i,"-").concat(v.props.dataKey),data:o,xAxis:u,yAxis:s,layout:c,offset:d,dataPointFormatter:h})}))}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.data,o=n.className,u=n.xAxis,s=n.yAxis,c=n.left,l=n.top,f=n.width,d=n.height,h=n.isAnimationActive,m=n.background,v=n.id;if(i||!a||!a.length)return null;var p=this.state.isAnimationFinished,g=ce("recharts-bar",o),b=u&&u.allowDataOverflow,w=s&&s.allowDataOverflow,O=b||w,y=ue(v)?this.id:v;return _.createElement(le,{className:g},b||w?_.createElement("defs",null,_.createElement("clipPath",{id:"clipPath-".concat(y)},_.createElement("rect",{x:b?c:c-f/2,y:w?l:l-d/2,width:b?f:f*2,height:w?d:d*2}))):null,_.createElement(le,{className:"recharts-bar-rectangles",clipPath:O?"url(#clipPath-".concat(y,")"):null},m?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(O,y),(!h||p)&&Nt.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curData:n.data,prevData:i.curData}:n.data!==i.curData?{curData:n.data}:null}}])})(_.PureComponent);uO=dr,fr(dr,"displayName","Bar"),fr(dr,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!ir.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),fr(dr,"getComposedData",function(e){var t=e.props,r=e.item,n=e.barPosition,i=e.bandSize,a=e.xAxis,o=e.yAxis,u=e.xAxisTicks,s=e.yAxisTicks,c=e.stackedData,l=e.dataStartIndex,f=e.displayedData,d=e.offset,h=nM(n,r);if(!h)return null;var m=t.layout,v=r.type.defaultProps,p=v!==void 0?Ne(Ne({},v),r.props):r.props,g=p.dataKey,b=p.children,w=p.minPointSize,O=m==="horizontal"?o:a,y=c?O.scale.domain():null,x=lM({numericAxis:O}),A=at(b,Ca),S=f.map(function(T,M){var P,j,C,I,k,N;c?P=iM(c[l+M],y):(P=Ie(T,g),Array.isArray(P)||(P=[x,P]));var q=ER(w,uO.defaultProps.minPointSize)(P[1],M);if(m==="horizontal"){var U,G=[o.scale(P[0]),o.scale(P[1])],D=G[0],L=G[1];j=ex({axis:a,ticks:u,bandSize:i,offset:h.offset,entry:T,index:M}),C=(U=L??D)!==null&&U!==void 0?U:void 0,I=h.size;var B=D-L;if(k=Number.isNaN(B)?0:B,N={x:j,y:o.y,width:I,height:o.height},Math.abs(q)>0&&Math.abs(k)<Math.abs(q)){var H=Xe(k||q)*(Math.abs(q)-Math.abs(k));C-=H,k+=H}}else{var Y=[a.scale(P[0]),a.scale(P[1])],te=Y[0],re=Y[1];if(j=te,C=ex({axis:o,ticks:s,bandSize:i,offset:h.offset,entry:T,index:M}),I=re-te,k=h.size,N={x:a.x,y:C,width:a.width,height:k},Math.abs(q)>0&&Math.abs(I)<Math.abs(q)){var oe=Xe(I||q)*(Math.abs(q)-Math.abs(I));I+=oe}}return Ne(Ne(Ne({},T),{},{x:j,y:C,width:I,height:k,value:c?P:P[1],payload:T,background:N},A&&A[M]&&A[M].props),{},{tooltipPayload:[ax(r,T)],tooltipPosition:{x:j+I/2,y:C+k/2}})});return Ne({data:S,layout:m},d)});function Ki(e){"@babel/helpers - typeof";return Ki=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ki(e)}function LR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,hO(n.key),n)}}function qR(e,t,r){return t&&dO(e.prototype,t),r&&dO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function pO(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 Et(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?pO(Object(r),!0).forEach(function(n){qo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function qo(e,t,r){return t=hO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hO(e){var t=BR(e,"string");return Ki(t)=="symbol"?t:t+""}function BR(e,t){if(Ki(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ki(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var rp=function(t,r,n,i,a){var o=t.width,u=t.height,s=t.layout,c=t.children,l=Object.keys(r),f={left:n.left,leftMirror:n.left,right:o-n.right,rightMirror:o-n.right,top:n.top,topMirror:n.top,bottom:u-n.bottom,bottomMirror:u-n.bottom},d=!!ot(c,dr);return l.reduce(function(h,m){var v=r[m],p=v.orientation,g=v.domain,b=v.padding,w=b===void 0?{}:b,O=v.mirror,y=v.reversed,x="".concat(p).concat(O?"Mirror":""),A,S,T,M,P;if(v.type==="number"&&(v.padding==="gap"||v.padding==="no-gap")){var j=g[1]-g[0],C=1/0,I=v.categoricalDomain.sort(GA);if(I.forEach(function(Y,te){te>0&&(C=Math.min((Y||0)-(I[te-1]||0),C))}),Number.isFinite(C)){var k=C/j,N=v.layout==="vertical"?n.height:n.width;if(v.padding==="gap"&&(A=k*N/2),v.padding==="no-gap"){var q=Ze(t.barCategoryGap,k*N),U=k*N/2;A=U-q-(U-q)/N*q}}}i==="xAxis"?S=[n.left+(w.left||0)+(A||0),n.left+n.width-(w.right||0)-(A||0)]:i==="yAxis"?S=s==="horizontal"?[n.top+n.height-(w.bottom||0),n.top+(w.top||0)]:[n.top+(w.top||0)+(A||0),n.top+n.height-(w.bottom||0)-(A||0)]:S=v.range,y&&(S=[S[1],S[0]]);var G=X0(v,a,d),D=G.scale,L=G.realScaleType;D.domain(g).range(S),J0(D);var B=Q0(D,Et(Et({},v),{},{realScaleType:L}));i==="xAxis"?(P=p==="top"&&!O||p==="bottom"&&O,T=n.left,M=f[x]-P*v.height):i==="yAxis"&&(P=p==="left"&&!O||p==="right"&&O,T=f[x]-P*v.width,M=n.top);var H=Et(Et(Et({},v),B),{},{realScaleType:L,x:T,y:M,scale:D,width:i==="xAxis"?n.width:v.width,height:i==="yAxis"?n.height:v.height});return H.bandSize=uo(H,B),!v.hide&&i==="xAxis"?f[x]+=(P?-1:1)*H.height:v.hide||(f[x]+=(P?-1:1)*H.width),Et(Et({},h),{},qo({},m,H))},{})},vO=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return{x:Math.min(n,a),y:Math.min(i,o),width:Math.abs(a-n),height:Math.abs(o-i)}},FR=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return vO({x:r,y:n},{x:i,y:a})},yO=(function(){function e(t){LR(this,e),this.scale=t}return qR(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.bandAware,a=n.position;if(r!==void 0){if(a)switch(a){case"start":return this.scale(r);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+o}case"end":{var u=this.bandwidth?this.bandwidth():0;return this.scale(r)+u}default:return this.scale(r)}if(i){var s=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+s}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),i=n[0],a=n[n.length-1];return i<=a?r>=i&&r<=a:r>=a&&r<=i}}],[{key:"create",value:function(r){return new e(r)}}])})();qo(yO,"EPS",1e-4);var np=function(t){var r=Object.keys(t).reduce(function(n,i){return Et(Et({},n),{},qo({},i,yO.create(t[i])))},{});return Et(Et({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,u=a.position;return vR(i,function(s,c){return r[c].apply(s,{bandAware:o,position:u})})},isInRange:function(i){return iO(i,function(a,o){return r[o].isInRange(a)})}})};function WR(e){return(e%180+180)%180}var zR=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=WR(i),o=a*Math.PI/180,u=Math.atan(n/r),s=o>u&&o<Math.PI-u?n/Math.sin(o):r/Math.cos(o);return Math.abs(s)},ip,mO;function UR(){if(mO)return ip;mO=1;var e=Mt(),t=Vn(),r=Oa();function n(i){return function(a,o,u){var s=Object(a);if(!t(a)){var c=e(o,3);a=r(a),o=function(f){return c(s[f],f,s)}}var l=i(a,o,u);return l>-1?s[c?a[l]:l]:void 0}}return ip=n,ip}var ap,gO;function KR(){if(gO)return ap;gO=1;var e=Bw();function t(r){var n=e(r),i=n%1;return n===n?i?n-i:n:0}return ap=t,ap}var op,bO;function GR(){if(bO)return op;bO=1;var e=Om(),t=Mt(),r=KR(),n=Math.max;function i(a,o,u){var s=a==null?0:a.length;if(!s)return-1;var c=u==null?0:r(u);return c<0&&(c=n(s+c,0)),e(a,t(o,3),c)}return op=i,op}var up,xO;function HR(){if(xO)return up;xO=1;var e=UR(),t=GR(),r=e(t);return up=r,up}var VR=HR();const YR=_e(VR);var XR=Uh(),ZR=_e(XR)(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")});function Bo(e){"@babel/helpers - typeof";return Bo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bo(e)}var sp=_.createContext(void 0),cp=_.createContext(void 0),wO=_.createContext(void 0),OO=_.createContext({}),_O=_.createContext(void 0),AO=_.createContext(0),SO=_.createContext(0),PO=function(t){var r=t.state,n=r.xAxisMap,i=r.yAxisMap,a=r.offset,o=t.clipPathId,u=t.children,s=t.width,c=t.height,l=ZR(a);return _.createElement(sp.Provider,{value:n},_.createElement(cp.Provider,{value:i},_.createElement(OO.Provider,{value:a},_.createElement(wO.Provider,{value:l},_.createElement(_O.Provider,{value:o},_.createElement(AO.Provider,{value:c},_.createElement(SO.Provider,{value:s},u)))))))},JR=function(){return _.useContext(_O)};function EO(e){var t=Object.keys(e);return t.length===0?"There are no available ids.":"Available ids are: ".concat(t,".")}var TO=function(t){var r=_.useContext(sp);r==null&&(process.env.NODE_ENV!=="production"?rt(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):rt());var n=r[t];return n==null&&(process.env.NODE_ENV!=="production"?rt(!1,'Could not find xAxis by id "'.concat(t,'" [').concat(Bo(t),"]. ").concat(EO(r))):rt()),n},QR=function(){var t=_.useContext(sp);return rr(t)},e2=function(){var t=_.useContext(cp),r=YR(t,function(n){return iO(n.domain,Number.isFinite)});return r||rr(t)},jO=function(t){var r=_.useContext(cp);r==null&&(process.env.NODE_ENV!=="production"?rt(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):rt());var n=r[t];return n==null&&(process.env.NODE_ENV!=="production"?rt(!1,'Could not find yAxis by id "'.concat(t,'" [').concat(Bo(t),"]. ").concat(EO(r))):rt()),n},t2=function(){var t=_.useContext(wO);return t},r2=function(){return _.useContext(OO)},lp=function(){return _.useContext(SO)},fp=function(){return _.useContext(AO)};function wn(e){"@babel/helpers - typeof";return wn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wn(e)}function n2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i2(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,IO(n.key),n)}}function a2(e,t,r){return t&&i2(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function o2(e,t,r){return t=Fo(t),u2(e,CO()?Reflect.construct(t,r||[],Fo(e).constructor):t.apply(e,r))}function u2(e,t){if(t&&(wn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return s2(e)}function s2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function CO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(CO=function(){return!!e})()}function Fo(e){return Fo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Fo(e)}function c2(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&dp(e,t)}function dp(e,t){return dp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},dp(e,t)}function $O(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 MO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$O(Object(r),!0).forEach(function(n){pp(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$O(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function pp(e,t,r){return t=IO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function IO(e){var t=l2(e,"string");return wn(t)=="symbol"?t:t+""}function l2(e,t){if(wn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(wn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function f2(e,t){return v2(e)||h2(e,t)||p2(e,t)||d2()}function d2(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
75
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function p2(e,t){if(e){if(typeof e=="string")return kO(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return kO(e,t)}}function kO(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function h2(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(l){c=!0,i=l}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function v2(e){if(Array.isArray(e))return e}function hp(){return hp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hp.apply(this,arguments)}var y2=function(t,r){var n;return _.isValidElement(t)?n=_.cloneElement(t,r):ie(t)?n=t(r):n=_.createElement("line",hp({},r,{className:"recharts-reference-line-line"})),n},m2=function(t,r,n,i,a,o,u,s,c){var l=a.x,f=a.y,d=a.width,h=a.height;if(n){var m=c.y,v=t.y.apply(m,{position:o});if(Rt(c,"discard")&&!t.y.isInRange(v))return null;var p=[{x:l+d,y:v},{x:l,y:v}];return s==="left"?p.reverse():p}if(r){var g=c.x,b=t.x.apply(g,{position:o});if(Rt(c,"discard")&&!t.x.isInRange(b))return null;var w=[{x:b,y:f+h},{x:b,y:f}];return u==="top"?w.reverse():w}if(i){var O=c.segment,y=O.map(function(x){return t.apply(x,{position:o})});return Rt(c,"discard")&&fR(y,function(x){return!t.isInRange(x)})?null:y}return null};function g2(e){var t=e.x,r=e.y,n=e.segment,i=e.xAxisId,a=e.yAxisId,o=e.shape,u=e.className,s=e.alwaysShow,c=JR(),l=TO(i),f=jO(a),d=t2();if(!c||!d)return null;wt(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var h=np({x:l.scale,y:f.scale}),m=qe(t),v=qe(r),p=n&&n.length===2,g=m2(h,m,v,p,d,e.position,l.orientation,f.orientation,e);if(!g)return null;var b=f2(g,2),w=b[0],O=w.x,y=w.y,x=b[1],A=x.x,S=x.y,T=Rt(e,"hidden")?"url(#".concat(c,")"):void 0,M=MO(MO({clipPath:T},Q(e,!0)),{},{x1:O,y1:y,x2:A,y2:S});return _.createElement(le,{className:ce("recharts-reference-line",u)},y2(o,M),Ge.renderCallByParent(e,FR({x1:O,y1:y,x2:A,y2:S})))}var vp=(function(e){function t(){return n2(this,t),o2(this,t,arguments)}return c2(t,e),a2(t,[{key:"render",value:function(){return _.createElement(g2,this.props)}}])})(_.Component);pp(vp,"displayName","ReferenceLine"),pp(vp,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function yp(){return yp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},yp.apply(this,arguments)}function On(e){"@babel/helpers - typeof";return On=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},On(e)}function DO(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 NO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?DO(Object(r),!0).forEach(function(n){zo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):DO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function b2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function x2(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,LO(n.key),n)}}function w2(e,t,r){return t&&x2(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function O2(e,t,r){return t=Wo(t),_2(e,RO()?Reflect.construct(t,r||[],Wo(e).constructor):t.apply(e,r))}function _2(e,t){if(t&&(On(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return A2(e)}function A2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function RO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(RO=function(){return!!e})()}function Wo(e){return Wo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Wo(e)}function S2(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&mp(e,t)}function mp(e,t){return mp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},mp(e,t)}function zo(e,t,r){return t=LO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function LO(e){var t=P2(e,"string");return On(t)=="symbol"?t:t+""}function P2(e,t){if(On(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(On(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var E2=function(t){var r=t.x,n=t.y,i=t.xAxis,a=t.yAxis,o=np({x:i.scale,y:a.scale}),u=o.apply({x:r,y:n},{bandAware:!0});return Rt(t,"discard")&&!o.isInRange(u)?null:u},Uo=(function(e){function t(){return b2(this,t),O2(this,t,arguments)}return S2(t,e),w2(t,[{key:"render",value:function(){var n=this.props,i=n.x,a=n.y,o=n.r,u=n.alwaysShow,s=n.clipPathId,c=qe(i),l=qe(a);if(wt(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!c||!l)return null;var f=E2(this.props);if(!f)return null;var d=f.x,h=f.y,m=this.props,v=m.shape,p=m.className,g=Rt(this.props,"hidden")?"url(#".concat(s,")"):void 0,b=NO(NO({clipPath:g},Q(this.props,!0)),{},{cx:d,cy:h});return _.createElement(le,{className:ce("recharts-reference-dot",p)},t.renderDot(v,b),Ge.renderCallByParent(this.props,{x:d-o,y:h-o,width:2*o,height:2*o}))}}])})(_.Component);zo(Uo,"displayName","ReferenceDot"),zo(Uo,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1}),zo(Uo,"renderDot",function(e,t){var r;return _.isValidElement(e)?r=_.cloneElement(e,t):ie(e)?r=e(t):r=_.createElement(Ri,yp({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function gp(){return gp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},gp.apply(this,arguments)}function _n(e){"@babel/helpers - typeof";return _n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_n(e)}function qO(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 BO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qO(Object(r),!0).forEach(function(n){Go(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function T2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function j2(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,WO(n.key),n)}}function C2(e,t,r){return t&&j2(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function $2(e,t,r){return t=Ko(t),M2(e,FO()?Reflect.construct(t,r||[],Ko(e).constructor):t.apply(e,r))}function M2(e,t){if(t&&(_n(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return I2(e)}function I2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function FO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(FO=function(){return!!e})()}function Ko(e){return Ko=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ko(e)}function k2(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&bp(e,t)}function bp(e,t){return bp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},bp(e,t)}function Go(e,t,r){return t=WO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function WO(e){var t=D2(e,"string");return _n(t)=="symbol"?t:t+""}function D2(e,t){if(_n(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(_n(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var N2=function(t,r,n,i,a){var o=a.x1,u=a.x2,s=a.y1,c=a.y2,l=a.xAxis,f=a.yAxis;if(!l||!f)return null;var d=np({x:l.scale,y:f.scale}),h={x:t?d.x.apply(o,{position:"start"}):d.x.rangeMin,y:n?d.y.apply(s,{position:"start"}):d.y.rangeMin},m={x:r?d.x.apply(u,{position:"end"}):d.x.rangeMax,y:i?d.y.apply(c,{position:"end"}):d.y.rangeMax};return Rt(a,"discard")&&(!d.isInRange(h)||!d.isInRange(m))?null:vO(h,m)},Ho=(function(e){function t(){return T2(this,t),$2(this,t,arguments)}return k2(t,e),C2(t,[{key:"render",value:function(){var n=this.props,i=n.x1,a=n.x2,o=n.y1,u=n.y2,s=n.className,c=n.alwaysShow,l=n.clipPathId;wt(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=qe(i),d=qe(a),h=qe(o),m=qe(u),v=this.props.shape;if(!f&&!d&&!h&&!m&&!v)return null;var p=N2(f,d,h,m,this.props);if(!p&&!v)return null;var g=Rt(this.props,"hidden")?"url(#".concat(l,")"):void 0;return _.createElement(le,{className:ce("recharts-reference-area",s)},t.renderRect(v,BO(BO({clipPath:g},Q(this.props,!0)),p)),Ge.renderCallByParent(this.props,p))}}])})(_.Component);Go(Ho,"displayName","ReferenceArea"),Go(Ho,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1}),Go(Ho,"renderRect",function(e,t){var r;return _.isValidElement(e)?r=_.cloneElement(e,t):ie(e)?r=e(t):r=_.createElement(jd,gp({},t,{className:"recharts-reference-area-rect"})),r});function zO(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 R2(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return zR(n,r)}function L2(e,t,r){var n=r==="width",i=e.x,a=e.y,o=e.width,u=e.height;return t===1?{start:n?i:a,end:n?i+o:a+u}:{start:n?i+o:a+u,end:n?i:a}}function Vo(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 q2(e,t){return zO(e,t+1)}function B2(e,t,r,n,i){for(var a=(n||[]).slice(),o=t.start,u=t.end,s=0,c=1,l=o,f=function(){var m=n?.[s];if(m===void 0)return{v:zO(n,c)};var v=s,p,g=function(){return p===void 0&&(p=r(m,v)),p},b=m.coordinate,w=s===0||Vo(e,b,g,l,u);w||(s=0,l=o,c+=1),w&&(l=b+e*(g()/2+i),s+=c)},d;c<=a.length;)if(d=f(),d)return d.v;return[]}function Gi(e){"@babel/helpers - typeof";return Gi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gi(e)}function UO(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 Ve(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?UO(Object(r),!0).forEach(function(n){F2(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):UO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function F2(e,t,r){return t=W2(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function W2(e){var t=z2(e,"string");return Gi(t)=="symbol"?t:t+""}function z2(e,t){if(Gi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Gi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function U2(e,t,r,n,i){for(var a=(n||[]).slice(),o=a.length,u=t.start,s=t.end,c=function(d){var h=a[d],m,v=function(){return m===void 0&&(m=r(h,d)),m};if(d===o-1){var p=e*(h.coordinate+e*v()/2-s);a[d]=h=Ve(Ve({},h),{},{tickCoord:p>0?h.coordinate-p*e:h.coordinate})}else a[d]=h=Ve(Ve({},h),{},{tickCoord:h.coordinate});var g=Vo(e,h.tickCoord,v,u,s);g&&(s=h.tickCoord-e*(v()/2+i),a[d]=Ve(Ve({},h),{},{isShow:!0}))},l=o-1;l>=0;l--)c(l);return a}function K2(e,t,r,n,i,a){var o=(n||[]).slice(),u=o.length,s=t.start,c=t.end;if(a){var l=n[u-1],f=r(l,u-1),d=e*(l.coordinate+e*f/2-c);o[u-1]=l=Ve(Ve({},l),{},{tickCoord:d>0?l.coordinate-d*e:l.coordinate});var h=Vo(e,l.tickCoord,function(){return f},s,c);h&&(c=l.tickCoord-e*(f/2+i),o[u-1]=Ve(Ve({},l),{},{isShow:!0}))}for(var m=a?u-1:u,v=function(b){var w=o[b],O,y=function(){return O===void 0&&(O=r(w,b)),O};if(b===0){var x=e*(w.coordinate-e*y()/2-s);o[b]=w=Ve(Ve({},w),{},{tickCoord:x<0?w.coordinate-x*e:w.coordinate})}else o[b]=w=Ve(Ve({},w),{},{tickCoord:w.coordinate});var A=Vo(e,w.tickCoord,y,s,c);A&&(s=w.tickCoord+e*(y()/2+i),o[b]=Ve(Ve({},w),{},{isShow:!0}))},p=0;p<m;p++)v(p);return o}function xp(e,t,r){var n=e.tick,i=e.ticks,a=e.viewBox,o=e.minTickGap,u=e.orientation,s=e.interval,c=e.tickFormatter,l=e.unit,f=e.angle;if(!i||!i.length||!n)return[];if(z(s)||ir.isSsr)return q2(i,typeof s=="number"&&z(s)?s:0);var d=[],h=u==="top"||u==="bottom"?"width":"height",m=l&&h==="width"?ei(l,{fontSize:t,letterSpacing:r}):{width:0,height:0},v=function(w,O){var y=ie(c)?c(w.value,O):w.value;return h==="width"?R2(ei(y,{fontSize:t,letterSpacing:r}),m,f):ei(y,{fontSize:t,letterSpacing:r})[h]},p=i.length>=2?Xe(i[1].coordinate-i[0].coordinate):1,g=L2(a,p,h);return s==="equidistantPreserveStart"?B2(p,g,v,i,o):(s==="preserveStart"||s==="preserveStartEnd"?d=K2(p,g,v,i,o,s==="preserveStartEnd"):d=U2(p,g,v,i,o),d.filter(function(b){return b.isShow}))}var G2=["viewBox"],H2=["viewBox"],V2=["ticks"];function An(e){"@babel/helpers - typeof";return An=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},An(e)}function Sn(){return Sn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Sn.apply(this,arguments)}function KO(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?KO(Object(r),!0).forEach(function(n){_p(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):KO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wp(e,t){if(e==null)return{};var r=Y2(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Y2(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function X2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function GO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,VO(n.key),n)}}function Z2(e,t,r){return t&&GO(e.prototype,t),r&&GO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function J2(e,t,r){return t=Yo(t),Q2(e,HO()?Reflect.construct(t,r||[],Yo(e).constructor):t.apply(e,r))}function Q2(e,t){if(t&&(An(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return eL(e)}function eL(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function HO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(HO=function(){return!!e})()}function Yo(e){return Yo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Yo(e)}function tL(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Op(e,t)}function Op(e,t){return Op=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Op(e,t)}function _p(e,t,r){return t=VO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function VO(e){var t=rL(e,"string");return An(t)=="symbol"?t:t+""}function rL(e,t){if(An(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(An(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Pn=(function(e){function t(r){var n;return X2(this,t),n=J2(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return tL(t,e),Z2(t,[{key:"shouldComponentUpdate",value:function(n,i){var a=n.viewBox,o=wp(n,G2),u=this.props,s=u.viewBox,c=wp(u,H2);return!Kr(a,s)||!Kr(o,c)||!Kr(i,this.state)}},{key:"componentDidMount",value:function(){var n=this.layerReference;if(n){var i=n.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.x,o=i.y,u=i.width,s=i.height,c=i.orientation,l=i.tickSize,f=i.mirror,d=i.tickMargin,h,m,v,p,g,b,w=f?-1:1,O=n.tickSize||l,y=z(n.tickCoord)?n.tickCoord:n.coordinate;switch(c){case"top":h=m=n.coordinate,p=o+ +!f*s,v=p-w*O,b=v-w*d,g=y;break;case"left":v=p=n.coordinate,m=a+ +!f*u,h=m-w*O,g=h-w*d,b=y;break;case"right":v=p=n.coordinate,m=a+ +f*u,h=m+w*O,g=h+w*d,b=y;break;default:h=m=n.coordinate,p=o+ +f*s,v=p+w*O,b=v+w*d,g=y;break}return{line:{x1:h,y1:v,x2:m,y2:p},tick:{x:g,y:b}}}},{key:"getTickTextAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o;switch(i){case"left":o=a?"start":"end";break;case"right":o=a?"end":"start";break;default:o="middle";break}return o}},{key:"getTickVerticalAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o="end";switch(i){case"left":case"right":o="middle";break;case"top":o=a?"start":"end";break;default:o=a?"end":"start";break}return o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,u=n.height,s=n.orientation,c=n.mirror,l=n.axisLine,f=ze(ze(ze({},Q(this.props,!1)),Q(l,!1)),{},{fill:"none"});if(s==="top"||s==="bottom"){var d=+(s==="top"&&!c||s==="bottom"&&c);f=ze(ze({},f),{},{x1:i,y1:a+d*u,x2:i+o,y2:a+d*u})}else{var h=+(s==="left"&&!c||s==="right"&&c);f=ze(ze({},f),{},{x1:i+h*o,y1:a,x2:i+h*o,y2:a+u})}return _.createElement("line",Sn({},f,{className:ce("recharts-cartesian-axis-line",it(l,"className"))}))}},{key:"renderTicks",value:function(n,i,a){var o=this,u=this.props,s=u.tickLine,c=u.stroke,l=u.tick,f=u.tickFormatter,d=u.unit,h=xp(ze(ze({},this.props),{},{ticks:n}),i,a),m=this.getTickTextAnchor(),v=this.getTickVerticalAnchor(),p=Q(this.props,!1),g=Q(l,!1),b=ze(ze({},p),{},{fill:"none"},Q(s,!1)),w=h.map(function(O,y){var x=o.getTickLineCoord(O),A=x.line,S=x.tick,T=ze(ze(ze(ze({textAnchor:m,verticalAnchor:v},p),{},{stroke:"none",fill:c},g),S),{},{index:y,payload:O,visibleTicksCount:h.length,tickFormatter:f});return _.createElement(le,Sn({className:"recharts-cartesian-axis-tick",key:"tick-".concat(O.value,"-").concat(O.coordinate,"-").concat(O.tickCoord)},br(o.props,O,y)),s&&_.createElement("line",Sn({},b,A,{className:ce("recharts-cartesian-axis-tick-line",it(s,"className"))})),l&&t.renderTickItem(l,T,"".concat(ie(f)?f(O.value,y):O.value).concat(d||"")))});return _.createElement("g",{className:"recharts-cartesian-axis-ticks"},w)}},{key:"render",value:function(){var n=this,i=this.props,a=i.axisLine,o=i.width,u=i.height,s=i.ticksGenerator,c=i.className,l=i.hide;if(l)return null;var f=this.props,d=f.ticks,h=wp(f,V2),m=d;return ie(s)&&(m=d&&d.length>0?s(this.props):s(h)),o<=0||u<=0||!m||!m.length?null:_.createElement(le,{className:ce("recharts-cartesian-axis",c),ref:function(p){n.layerReference=p}},a&&this.renderAxisLine(),this.renderTicks(m,this.state.fontSize,this.state.letterSpacing),Ge.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var o,u=ce(i.className,"recharts-cartesian-axis-tick-value");return _.isValidElement(n)?o=_.cloneElement(n,ze(ze({},i),{},{className:u})):ie(n)?o=n(ze(ze({},i),{},{className:u})):o=_.createElement(wr,Sn({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])})(_.Component);_p(Pn,"displayName","CartesianAxis"),_p(Pn,"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 nL=["x1","y1","x2","y2","key"],iL=["offset"];function Rr(e){"@babel/helpers - typeof";return Rr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rr(e)}function YO(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 Ye(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?YO(Object(r),!0).forEach(function(n){aL(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):YO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function aL(e,t,r){return t=oL(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function oL(e){var t=uL(e,"string");return Rr(t)=="symbol"?t:t+""}function uL(e,t){if(Rr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Rr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Lr(){return Lr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Lr.apply(this,arguments)}function XO(e,t){if(e==null)return{};var r=sL(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function sL(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var cL=function(t){var r=t.fill;if(!r||r==="none")return null;var n=t.fillOpacity,i=t.x,a=t.y,o=t.width,u=t.height,s=t.ry;return _.createElement("rect",{x:i,y:a,ry:s,width:o,height:u,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function ZO(e,t){var r;if(_.isValidElement(e))r=_.cloneElement(e,t);else if(ie(e))r=e(t);else{var n=t.x1,i=t.y1,a=t.x2,o=t.y2,u=t.key,s=XO(t,nL),c=Q(s,!1);c.offset;var l=XO(c,iL);r=_.createElement("line",Lr({},l,{x1:n,y1:i,x2:a,y2:o,fill:"none",key:u}))}return r}function lL(e){var t=e.x,r=e.width,n=e.horizontal,i=n===void 0?!0:n,a=e.horizontalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(u,s){var c=Ye(Ye({},e),{},{x1:t,y1:u,x2:t+r,y2:u,key:"line-".concat(s),index:s});return ZO(i,c)});return _.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function fL(e){var t=e.y,r=e.height,n=e.vertical,i=n===void 0?!0:n,a=e.verticalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(u,s){var c=Ye(Ye({},e),{},{x1:u,y1:t,x2:u,y2:t+r,key:"line-".concat(s),index:s});return ZO(i,c)});return _.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function dL(e){var t=e.horizontalFill,r=e.fillOpacity,n=e.x,i=e.y,a=e.width,o=e.height,u=e.horizontalPoints,s=e.horizontal,c=s===void 0?!0:s;if(!c||!t||!t.length)return null;var l=u.map(function(d){return Math.round(d+i-i)}).sort(function(d,h){return d-h});i!==l[0]&&l.unshift(0);var f=l.map(function(d,h){var m=!l[h+1],v=m?i+o-d:l[h+1]-d;if(v<=0)return null;var p=h%t.length;return _.createElement("rect",{key:"react-".concat(h),y:d,x:n,height:v,width:a,stroke:"none",fill:t[p],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return _.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function pL(e){var t=e.vertical,r=t===void 0?!0:t,n=e.verticalFill,i=e.fillOpacity,a=e.x,o=e.y,u=e.width,s=e.height,c=e.verticalPoints;if(!r||!n||!n.length)return null;var l=c.map(function(d){return Math.round(d+a-a)}).sort(function(d,h){return d-h});a!==l[0]&&l.unshift(0);var f=l.map(function(d,h){var m=!l[h+1],v=m?a+u-d:l[h+1]-d;if(v<=0)return null;var p=h%n.length;return _.createElement("rect",{key:"react-".concat(h),x:d,y:o,width:v,height:s,stroke:"none",fill:n[p],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return _.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},f)}var hL=function(t,r){var n=t.xAxis,i=t.width,a=t.height,o=t.offset;return Y0(xp(Ye(Ye(Ye({},Pn.defaultProps),n),{},{ticks:Xt(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.left,o.left+o.width,r)},vL=function(t,r){var n=t.yAxis,i=t.width,a=t.height,o=t.offset;return Y0(xp(Ye(Ye(Ye({},Pn.defaultProps),n),{},{ticks:Xt(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.top,o.top+o.height,r)},En={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function Ap(e){var t,r,n,i,a,o,u=lp(),s=fp(),c=r2(),l=Ye(Ye({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:En.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:En.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:En.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:En.horizontalFill,vertical:(a=e.vertical)!==null&&a!==void 0?a:En.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:En.verticalFill,x:z(e.x)?e.x:c.left,y:z(e.y)?e.y:c.top,width:z(e.width)?e.width:c.width,height:z(e.height)?e.height:c.height}),f=l.x,d=l.y,h=l.width,m=l.height,v=l.syncWithTicks,p=l.horizontalValues,g=l.verticalValues,b=QR(),w=e2();if(!z(h)||h<=0||!z(m)||m<=0||!z(f)||f!==+f||!z(d)||d!==+d)return null;var O=l.verticalCoordinatesGenerator||hL,y=l.horizontalCoordinatesGenerator||vL,x=l.horizontalPoints,A=l.verticalPoints;if((!x||!x.length)&&ie(y)){var S=p&&p.length,T=y({yAxis:w?Ye(Ye({},w),{},{ticks:S?p:w.ticks}):void 0,width:u,height:s,offset:c},S?!0:v);wt(Array.isArray(T),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Rr(T),"]")),Array.isArray(T)&&(x=T)}if((!A||!A.length)&&ie(O)){var M=g&&g.length,P=O({xAxis:b?Ye(Ye({},b),{},{ticks:M?g:b.ticks}):void 0,width:u,height:s,offset:c},M?!0:v);wt(Array.isArray(P),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Rr(P),"]")),Array.isArray(P)&&(A=P)}return _.createElement("g",{className:"recharts-cartesian-grid"},_.createElement(cL,{fill:l.fill,fillOpacity:l.fillOpacity,x:l.x,y:l.y,width:l.width,height:l.height,ry:l.ry}),_.createElement(lL,Lr({},l,{offset:c,horizontalPoints:x,xAxis:b,yAxis:w})),_.createElement(fL,Lr({},l,{offset:c,verticalPoints:A,xAxis:b,yAxis:w})),_.createElement(dL,Lr({},l,{horizontalPoints:x})),_.createElement(pL,Lr({},l,{verticalPoints:A})))}Ap.displayName="CartesianGrid";var yL=["type","layout","connectNulls","ref"],mL=["key"];function Tn(e){"@babel/helpers - typeof";return Tn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tn(e)}function JO(e,t){if(e==null)return{};var r=gL(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function gL(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Hi(){return Hi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Hi.apply(this,arguments)}function QO(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 ct(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?QO(Object(r),!0).forEach(function(n){Tt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):QO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function jn(e){return OL(e)||wL(e)||xL(e)||bL()}function bL(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
76
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xL(e,t){if(e){if(typeof e=="string")return Sp(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Sp(e,t)}}function wL(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function OL(e){if(Array.isArray(e))return Sp(e)}function Sp(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _L(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function e_(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,r_(n.key),n)}}function AL(e,t,r){return t&&e_(e.prototype,t),r&&e_(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function SL(e,t,r){return t=Xo(t),PL(e,t_()?Reflect.construct(t,r||[],Xo(e).constructor):t.apply(e,r))}function PL(e,t){if(t&&(Tn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return EL(e)}function EL(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function t_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(t_=function(){return!!e})()}function Xo(e){return Xo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Xo(e)}function TL(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Pp(e,t)}function Pp(e,t){return Pp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Pp(e,t)}function Tt(e,t,r){return t=r_(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function r_(e){var t=jL(e,"string");return Tn(t)=="symbol"?t:t+""}function jL(e,t){if(Tn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Tn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Vi=(function(e){function t(){var r;_L(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=SL(this,t,[].concat(i)),Tt(r,"state",{isAnimationFinished:!0,totalLength:0}),Tt(r,"generateSimpleStrokeDasharray",function(o,u){return"".concat(u,"px ").concat(o-u,"px")}),Tt(r,"getStrokeDasharray",function(o,u,s){var c=s.reduce(function(g,b){return g+b});if(!c)return r.generateSimpleStrokeDasharray(u,o);for(var l=Math.floor(o/c),f=o%c,d=u-o,h=[],m=0,v=0;m<s.length;v+=s[m],++m)if(v+s[m]>f){h=[].concat(jn(s.slice(0,m)),[f-v]);break}var p=h.length%2===0?[0,d]:[d];return[].concat(jn(t.repeat(s,l)),jn(h),p).map(function(g){return"".concat(g,"px")}).join(", ")}),Tt(r,"id",gr("recharts-line-")),Tt(r,"pathRef",function(o){r.mainCurve=o}),Tt(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0}),r.props.onAnimationEnd&&r.props.onAnimationEnd()}),Tt(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1}),r.props.onAnimationStart&&r.props.onAnimationStart()}),r}return TL(t,e),AL(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();this.setState({totalLength:n})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();n!==this.state.totalLength&&this.setState({totalLength:n})}}},{key:"getTotalLength",value:function(){var n=this.mainCurve;try{return n&&n.getTotalLength&&n.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.points,u=a.xAxis,s=a.yAxis,c=a.layout,l=a.children,f=at(l,gi);if(!f)return null;var d=function(v,p){return{x:v.x,y:v.y,value:v.value,errorVal:Ie(v.payload,p)}},h={clipPath:n?"url(#clipPath-".concat(i,")"):null};return _.createElement(le,h,f.map(function(m){return _.cloneElement(m,{key:"bar-".concat(m.props.dataKey),data:o,xAxis:u,yAxis:s,layout:c,dataPointFormatter:d})}))}},{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive;if(o&&!this.state.isAnimationFinished)return null;var u=this.props,s=u.dot,c=u.points,l=u.dataKey,f=Q(this.props,!1),d=Q(s,!0),h=c.map(function(v,p){var g=ct(ct(ct({key:"dot-".concat(p),r:3},f),d),{},{index:p,cx:v.x,cy:v.y,value:v.value,dataKey:l,payload:v.payload,points:c});return t.renderDotItem(s,g)}),m={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return _.createElement(le,Hi({className:"recharts-line-dots",key:"dots"},m),h)}},{key:"renderCurveStatically",value:function(n,i,a,o){var u=this.props,s=u.type,c=u.layout,l=u.connectNulls;u.ref;var f=JO(u,yL),d=ct(ct(ct({},Q(f,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:i?"url(#clipPath-".concat(a,")"):null,points:n},o),{},{type:s,layout:c,connectNulls:l});return _.createElement(Mr,Hi({},d,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(n,i){var a=this,o=this.props,u=o.points,s=o.strokeDasharray,c=o.isAnimationActive,l=o.animationBegin,f=o.animationDuration,d=o.animationEasing,h=o.animationId,m=o.animateNewValues,v=o.width,p=o.height,g=this.state,b=g.prevPoints,w=g.totalLength;return _.createElement(Pt,{begin:l,duration:f,isActive:c,easing:d,from:{t:0},to:{t:1},key:"line-".concat(h),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(O){var y=O.t;if(b){var x=b.length/u.length,A=u.map(function(j,C){var I=Math.floor(C*x);if(b[I]){var k=b[I],N=Be(k.x,j.x),q=Be(k.y,j.y);return ct(ct({},j),{},{x:N(y),y:q(y)})}if(m){var U=Be(v*2,j.x),G=Be(p/2,j.y);return ct(ct({},j),{},{x:U(y),y:G(y)})}return ct(ct({},j),{},{x:j.x,y:j.y})});return a.renderCurveStatically(A,n,i)}var S=Be(0,w),T=S(y),M;if(s){var P="".concat(s).split(/[,\s]+/gim).map(function(j){return parseFloat(j)});M=a.getStrokeDasharray(T,w,P)}else M=a.generateSimpleStrokeDasharray(w,T);return a.renderCurveStatically(u,n,i,{strokeDasharray:M})})}},{key:"renderCurve",value:function(n,i){var a=this.props,o=a.points,u=a.isAnimationActive,s=this.state,c=s.prevPoints,l=s.totalLength;return u&&o&&o.length&&(!c&&l>0||!Er(c,o))?this.renderCurveWithAnimation(n,i):this.renderCurveStatically(o,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,u=i.points,s=i.className,c=i.xAxis,l=i.yAxis,f=i.top,d=i.left,h=i.width,m=i.height,v=i.isAnimationActive,p=i.id;if(a||!u||!u.length)return null;var g=this.state.isAnimationFinished,b=u.length===1,w=ce("recharts-line",s),O=c&&c.allowDataOverflow,y=l&&l.allowDataOverflow,x=O||y,A=ue(p)?this.id:p,S=(n=Q(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},T=S.r,M=T===void 0?3:T,P=S.strokeWidth,j=P===void 0?2:P,C=yv(o)?o:{},I=C.clipDot,k=I===void 0?!0:I,N=M*2+j;return _.createElement(le,{className:w},O||y?_.createElement("defs",null,_.createElement("clipPath",{id:"clipPath-".concat(A)},_.createElement("rect",{x:O?d:d-h/2,y:y?f:f-m/2,width:O?h:h*2,height:y?m:m*2})),!k&&_.createElement("clipPath",{id:"clipPath-dots-".concat(A)},_.createElement("rect",{x:d-N/2,y:f-N/2,width:h+N,height:m+N}))):null,!b&&this.renderCurve(x,A),this.renderErrorBar(x,A),(b||o)&&this.renderDots(x,k,A),(!v||g)&&Nt.renderCallByParent(this.props,u))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:i.curPoints}:n.points!==i.curPoints?{curPoints:n.points}:null}},{key:"repeat",value:function(n,i){for(var a=n.length%2!==0?[].concat(jn(n),[0]):n,o=[],u=0;u<i;++u)o=[].concat(jn(o),jn(a));return o}},{key:"renderDotItem",value:function(n,i){var a;if(_.isValidElement(n))a=_.cloneElement(n,i);else if(ie(n))a=n(i);else{var o=i.key,u=JO(i,mL),s=ce("recharts-line-dot",typeof n!="boolean"?n.className:"");a=_.createElement(Ri,Hi({key:o},u,{className:s}))}return a}}])})(_.PureComponent);Tt(Vi,"displayName","Line"),Tt(Vi,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!ir.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1}),Tt(Vi,"getComposedData",function(e){var t=e.props,r=e.xAxis,n=e.yAxis,i=e.xAxisTicks,a=e.yAxisTicks,o=e.dataKey,u=e.bandSize,s=e.displayedData,c=e.offset,l=t.layout,f=s.map(function(d,h){var m=Ie(d,o);return l==="horizontal"?{x:oo({axis:r,ticks:i,bandSize:u,entry:d,index:h}),y:ue(m)?null:n.scale(m),value:m,payload:d}:{x:ue(m)?null:r.scale(m),y:oo({axis:n,ticks:a,bandSize:u,entry:d,index:h}),value:m,payload:d}});return ct({points:f,layout:l},c)});var CL=["layout","type","stroke","connectNulls","isRange","ref"],$L=["key"],n_;function Cn(e){"@babel/helpers - typeof";return Cn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cn(e)}function i_(e,t){if(e==null)return{};var r=ML(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function ML(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function qr(){return qr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qr.apply(this,arguments)}function a_(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 pr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?a_(Object(r),!0).forEach(function(n){Lt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function IL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o_(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,s_(n.key),n)}}function kL(e,t,r){return t&&o_(e.prototype,t),r&&o_(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function DL(e,t,r){return t=Zo(t),NL(e,u_()?Reflect.construct(t,r||[],Zo(e).constructor):t.apply(e,r))}function NL(e,t){if(t&&(Cn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return RL(e)}function RL(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(u_=function(){return!!e})()}function Zo(e){return Zo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Zo(e)}function LL(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ep(e,t)}function Ep(e,t){return Ep=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ep(e,t)}function Lt(e,t,r){return t=s_(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s_(e){var t=qL(e,"string");return Cn(t)=="symbol"?t:t+""}function qL(e,t){if(Cn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Cn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var hr=(function(e){function t(){var r;IL(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=DL(this,t,[].concat(i)),Lt(r,"state",{isAnimationFinished:!0}),Lt(r,"id",gr("recharts-area-")),Lt(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),ie(o)&&o()}),Lt(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),ie(o)&&o()}),r}return LL(t,e),kL(t,[{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive,u=this.state.isAnimationFinished;if(o&&!u)return null;var s=this.props,c=s.dot,l=s.points,f=s.dataKey,d=Q(this.props,!1),h=Q(c,!0),m=l.map(function(p,g){var b=pr(pr(pr({key:"dot-".concat(g),r:3},d),h),{},{index:g,cx:p.x,cy:p.y,dataKey:f,value:p.value,payload:p.payload,points:l});return t.renderDotItem(c,b)}),v={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return _.createElement(le,qr({className:"recharts-area-dots"},v),m)}},{key:"renderHorizontalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,u=i.strokeWidth,s=o[0].x,c=o[o.length-1].x,l=n*Math.abs(s-c),f=sr(o.map(function(d){return d.y||0}));return z(a)&&typeof a=="number"?f=Math.max(a,f):a&&Array.isArray(a)&&a.length&&(f=Math.max(sr(a.map(function(d){return d.y||0})),f)),z(f)?_.createElement("rect",{x:s<c?s:s-l,y:0,width:l,height:Math.floor(f+(u?parseInt("".concat(u),10):1))}):null}},{key:"renderVerticalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,u=i.strokeWidth,s=o[0].y,c=o[o.length-1].y,l=n*Math.abs(s-c),f=sr(o.map(function(d){return d.x||0}));return z(a)&&typeof a=="number"?f=Math.max(a,f):a&&Array.isArray(a)&&a.length&&(f=Math.max(sr(a.map(function(d){return d.x||0})),f)),z(f)?_.createElement("rect",{x:0,y:s<c?s:s-l,width:f+(u?parseInt("".concat(u),10):1),height:Math.floor(l)}):null}},{key:"renderClipRect",value:function(n){var i=this.props.layout;return i==="vertical"?this.renderVerticalRect(n):this.renderHorizontalRect(n)}},{key:"renderAreaStatically",value:function(n,i,a,o){var u=this.props,s=u.layout,c=u.type,l=u.stroke,f=u.connectNulls,d=u.isRange;u.ref;var h=i_(u,CL);return _.createElement(le,{clipPath:a?"url(#clipPath-".concat(o,")"):null},_.createElement(Mr,qr({},Q(h,!0),{points:n,connectNulls:f,type:c,baseLine:i,layout:s,stroke:"none",className:"recharts-area-area"})),l!=="none"&&_.createElement(Mr,qr({},Q(this.props,!1),{className:"recharts-area-curve",layout:s,type:c,connectNulls:f,fill:"none",points:n})),l!=="none"&&d&&_.createElement(Mr,qr({},Q(this.props,!1),{className:"recharts-area-curve",layout:s,type:c,connectNulls:f,fill:"none",points:i})))}},{key:"renderAreaWithAnimation",value:function(n,i){var a=this,o=this.props,u=o.points,s=o.baseLine,c=o.isAnimationActive,l=o.animationBegin,f=o.animationDuration,d=o.animationEasing,h=o.animationId,m=this.state,v=m.prevPoints,p=m.prevBaseLine;return _.createElement(Pt,{begin:l,duration:f,isActive:c,easing:d,from:{t:0},to:{t:1},key:"area-".concat(h),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(g){var b=g.t;if(v){var w=v.length/u.length,O=u.map(function(S,T){var M=Math.floor(T*w);if(v[M]){var P=v[M],j=Be(P.x,S.x),C=Be(P.y,S.y);return pr(pr({},S),{},{x:j(b),y:C(b)})}return S}),y;if(z(s)&&typeof s=="number"){var x=Be(p,s);y=x(b)}else if(ue(s)||Ur(s)){var A=Be(p,0);y=A(b)}else y=s.map(function(S,T){var M=Math.floor(T*w);if(p[M]){var P=p[M],j=Be(P.x,S.x),C=Be(P.y,S.y);return pr(pr({},S),{},{x:j(b),y:C(b)})}return S});return a.renderAreaStatically(O,y,n,i)}return _.createElement(le,null,_.createElement("defs",null,_.createElement("clipPath",{id:"animationClipPath-".concat(i)},a.renderClipRect(b))),_.createElement(le,{clipPath:"url(#animationClipPath-".concat(i,")")},a.renderAreaStatically(u,s,n,i)))})}},{key:"renderArea",value:function(n,i){var a=this.props,o=a.points,u=a.baseLine,s=a.isAnimationActive,c=this.state,l=c.prevPoints,f=c.prevBaseLine,d=c.totalLength;return s&&o&&o.length&&(!l&&d>0||!Er(l,o)||!Er(f,u))?this.renderAreaWithAnimation(n,i):this.renderAreaStatically(o,u,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,u=i.points,s=i.className,c=i.top,l=i.left,f=i.xAxis,d=i.yAxis,h=i.width,m=i.height,v=i.isAnimationActive,p=i.id;if(a||!u||!u.length)return null;var g=this.state.isAnimationFinished,b=u.length===1,w=ce("recharts-area",s),O=f&&f.allowDataOverflow,y=d&&d.allowDataOverflow,x=O||y,A=ue(p)?this.id:p,S=(n=Q(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},T=S.r,M=T===void 0?3:T,P=S.strokeWidth,j=P===void 0?2:P,C=yv(o)?o:{},I=C.clipDot,k=I===void 0?!0:I,N=M*2+j;return _.createElement(le,{className:w},O||y?_.createElement("defs",null,_.createElement("clipPath",{id:"clipPath-".concat(A)},_.createElement("rect",{x:O?l:l-h/2,y:y?c:c-m/2,width:O?h:h*2,height:y?m:m*2})),!k&&_.createElement("clipPath",{id:"clipPath-dots-".concat(A)},_.createElement("rect",{x:l-N/2,y:c-N/2,width:h+N,height:m+N}))):null,b?null:this.renderArea(x,A),(o||b)&&this.renderDots(x,k,A),(!v||g)&&Nt.renderCallByParent(this.props,u))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,curBaseLine:n.baseLine,prevPoints:i.curPoints,prevBaseLine:i.curBaseLine}:n.points!==i.curPoints||n.baseLine!==i.curBaseLine?{curPoints:n.points,curBaseLine:n.baseLine}:null}}])})(_.PureComponent);n_=hr,Lt(hr,"displayName","Area"),Lt(hr,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!ir.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),Lt(hr,"getBaseValue",function(e,t,r,n){var i=e.layout,a=e.baseValue,o=t.props.baseValue,u=o??a;if(z(u)&&typeof u=="number")return u;var s=i==="horizontal"?n:r,c=s.scale.domain();if(s.type==="number"){var l=Math.max(c[0],c[1]),f=Math.min(c[0],c[1]);return u==="dataMin"?f:u==="dataMax"||l<0?l:Math.max(Math.min(c[0],c[1]),0)}return u==="dataMin"?c[0]:u==="dataMax"?c[1]:c[0]}),Lt(hr,"getComposedData",function(e){var t=e.props,r=e.item,n=e.xAxis,i=e.yAxis,a=e.xAxisTicks,o=e.yAxisTicks,u=e.bandSize,s=e.dataKey,c=e.stackedData,l=e.dataStartIndex,f=e.displayedData,d=e.offset,h=t.layout,m=c&&c.length,v=n_.getBaseValue(t,r,n,i),p=h==="horizontal",g=!1,b=f.map(function(O,y){var x;m?x=c[l+y]:(x=Ie(O,s),Array.isArray(x)?g=!0:x=[v,x]);var A=x[1]==null||m&&Ie(O,s)==null;return p?{x:oo({axis:n,ticks:a,bandSize:u,entry:O,index:y}),y:A?null:i.scale(x[1]),value:x,payload:O}:{x:A?null:n.scale(x[1]),y:oo({axis:i,ticks:o,bandSize:u,entry:O,index:y}),value:x,payload:O}}),w;return m||g?w=b.map(function(O){var y=Array.isArray(O.value)?O.value[0]:null;return p?{x:O.x,y:y!=null&&O.y!=null?i.scale(y):null}:{x:y!=null?n.scale(y):null,y:O.y}}):w=p?i.scale(v):n.scale(v),pr({points:b,baseLine:w,layout:h,isRange:g},d)}),Lt(hr,"renderDotItem",function(e,t){var r;if(_.isValidElement(e))r=_.cloneElement(e,t);else if(ie(e))r=e(t);else{var n=ce("recharts-area-dot",typeof e!="boolean"?e.className:""),i=t.key,a=i_(t,$L);r=_.createElement(Ri,qr({},a,{key:i,className:n}))}return r});function $n(e){"@babel/helpers - typeof";return $n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$n(e)}function BL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function FL(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,f_(n.key),n)}}function WL(e,t,r){return t&&FL(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function zL(e,t,r){return t=Jo(t),UL(e,c_()?Reflect.construct(t,r||[],Jo(e).constructor):t.apply(e,r))}function UL(e,t){if(t&&($n(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return KL(e)}function KL(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(c_=function(){return!!e})()}function Jo(e){return Jo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Jo(e)}function GL(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Tp(e,t)}function Tp(e,t){return Tp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Tp(e,t)}function l_(e,t,r){return t=f_(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f_(e){var t=HL(e,"string");return $n(t)=="symbol"?t:t+""}function HL(e,t){if($n(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if($n(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function jp(){return jp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},jp.apply(this,arguments)}function VL(e){var t=e.xAxisId,r=lp(),n=fp(),i=TO(t);return i==null?null:ft.createElement(Pn,jp({},i,{className:ce("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(o){return Xt(o,!0)}}))}var Br=(function(e){function t(){return BL(this,t),zL(this,t,arguments)}return GL(t,e),WL(t,[{key:"render",value:function(){return ft.createElement(VL,this.props)}}])})(ft.Component);l_(Br,"displayName","XAxis"),l_(Br,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});function Mn(e){"@babel/helpers - typeof";return Mn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mn(e)}function YL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function XL(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,h_(n.key),n)}}function ZL(e,t,r){return t&&XL(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function JL(e,t,r){return t=Qo(t),QL(e,d_()?Reflect.construct(t,r||[],Qo(e).constructor):t.apply(e,r))}function QL(e,t){if(t&&(Mn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return eq(e)}function eq(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(d_=function(){return!!e})()}function Qo(e){return Qo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Qo(e)}function tq(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Cp(e,t)}function Cp(e,t){return Cp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Cp(e,t)}function p_(e,t,r){return t=h_(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h_(e){var t=rq(e,"string");return Mn(t)=="symbol"?t:t+""}function rq(e,t){if(Mn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Mn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function $p(){return $p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$p.apply(this,arguments)}var nq=function(t){var r=t.yAxisId,n=lp(),i=fp(),a=jO(r);return a==null?null:ft.createElement(Pn,$p({},a,{className:ce("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(u){return Xt(u,!0)}}))},In=(function(e){function t(){return YL(this,t),JL(this,t,arguments)}return tq(t,e),ZL(t,[{key:"render",value:function(){return ft.createElement(nq,this.props)}}])})(ft.Component);p_(In,"displayName","YAxis"),p_(In,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});function v_(e){return uq(e)||oq(e)||aq(e)||iq()}function iq(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
77
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function aq(e,t){if(e){if(typeof e=="string")return Mp(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Mp(e,t)}}function oq(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function uq(e){if(Array.isArray(e))return Mp(e)}function Mp(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Ip=function(t,r,n,i,a){var o=at(t,vp),u=at(t,Uo),s=[].concat(v_(o),v_(u)),c=at(t,Ho),l="".concat(i,"Id"),f=i[0],d=r;if(s.length&&(d=s.reduce(function(v,p){if(p.props[l]===n&&Rt(p.props,"extendDomain")&&z(p.props[f])){var g=p.props[f];return[Math.min(v[0],g),Math.max(v[1],g)]}return v},d)),c.length){var h="".concat(f,"1"),m="".concat(f,"2");d=c.reduce(function(v,p){if(p.props[l]===n&&Rt(p.props,"extendDomain")&&z(p.props[h])&&z(p.props[m])){var g=p.props[h],b=p.props[m];return[Math.min(v[0],g,b),Math.max(v[1],g,b)]}return v},d)}return a&&a.length&&(d=a.reduce(function(v,p){return z(p)?[Math.min(v[0],p),Math.max(v[1],p)]:v},d)),d},kp={exports:{}},y_;function sq(){return y_||(y_=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(s,c,l){this.fn=s,this.context=c,this.once=l||!1}function a(s,c,l,f,d){if(typeof l!="function")throw new TypeError("The listener must be a function");var h=new i(l,f||s,d),m=r?r+c:c;return s._events[m]?s._events[m].fn?s._events[m]=[s._events[m],h]:s._events[m].push(h):(s._events[m]=h,s._eventsCount++),s}function o(s,c){--s._eventsCount===0?s._events=new n:delete s._events[c]}function u(){this._events=new n,this._eventsCount=0}u.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},u.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,m=new Array(h);d<h;d++)m[d]=f[d].fn;return m},u.prototype.listenerCount=function(c){var l=r?r+c:c,f=this._events[l];return f?f.fn?1:f.length:0},u.prototype.emit=function(c,l,f,d,h,m){var v=r?r+c:c;if(!this._events[v])return!1;var p=this._events[v],g=arguments.length,b,w;if(p.fn){switch(p.once&&this.removeListener(c,p.fn,void 0,!0),g){case 1:return p.fn.call(p.context),!0;case 2:return p.fn.call(p.context,l),!0;case 3:return p.fn.call(p.context,l,f),!0;case 4:return p.fn.call(p.context,l,f,d),!0;case 5:return p.fn.call(p.context,l,f,d,h),!0;case 6:return p.fn.call(p.context,l,f,d,h,m),!0}for(w=1,b=new Array(g-1);w<g;w++)b[w-1]=arguments[w];p.fn.apply(p.context,b)}else{var O=p.length,y;for(w=0;w<O;w++)switch(p[w].once&&this.removeListener(c,p[w].fn,void 0,!0),g){case 1:p[w].fn.call(p[w].context);break;case 2:p[w].fn.call(p[w].context,l);break;case 3:p[w].fn.call(p[w].context,l,f);break;case 4:p[w].fn.call(p[w].context,l,f,d);break;default:if(!b)for(y=1,b=new Array(g-1);y<g;y++)b[y-1]=arguments[y];p[w].fn.apply(p[w].context,b)}}return!0},u.prototype.on=function(c,l,f){return a(this,c,l,f,!1)},u.prototype.once=function(c,l,f){return a(this,c,l,f,!0)},u.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 m=this._events[h];if(m.fn)m.fn===l&&(!d||m.once)&&(!f||m.context===f)&&o(this,h);else{for(var v=0,p=[],g=m.length;v<g;v++)(m[v].fn!==l||d&&!m[v].once||f&&m[v].context!==f)&&p.push(m[v]);p.length?this._events[h]=p.length===1?p[0]:p:o(this,h)}return this},u.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},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=r,u.EventEmitter=u,e.exports=u})(kp)),kp.exports}var cq=sq();const lq=_e(cq);var Dp=new lq,Np="recharts.syncMouseEvents";function Yi(e){"@babel/helpers - typeof";return Yi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yi(e)}function fq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dq(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,m_(n.key),n)}}function pq(e,t,r){return t&&dq(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Rp(e,t,r){return t=m_(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m_(e){var t=hq(e,"string");return Yi(t)=="symbol"?t:t+""}function hq(e,t){if(Yi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Yi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var vq=(function(){function e(){fq(this,e),Rp(this,"activeIndex",0),Rp(this,"coordinateList",[]),Rp(this,"layout","horizontal")}return pq(e,[{key:"setDetails",value:function(r){var n,i=r.coordinateList,a=i===void 0?null:i,o=r.container,u=o===void 0?null:o,s=r.layout,c=s===void 0?null:s,l=r.offset,f=l===void 0?null:l,d=r.mouseHandlerCallback,h=d===void 0?null:d;this.coordinateList=(n=a??this.coordinateList)!==null&&n!==void 0?n:[],this.container=u??this.container,this.layout=c??this.layout,this.offset=f??this.offset,this.mouseHandlerCallback=h??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(r){if(this.coordinateList.length!==0)switch(r.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(r){this.activeIndex=r}},{key:"spoofMouse",value:function(){var r,n;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var i=this.container.getBoundingClientRect(),a=i.x,o=i.y,u=i.height,s=this.coordinateList[this.activeIndex].coordinate,c=((r=window)===null||r===void 0?void 0:r.scrollX)||0,l=((n=window)===null||n===void 0?void 0:n.scrollY)||0,f=a+s+c,d=o+this.offset.top+u/2+l;this.mouseHandlerCallback({pageX:f,pageY:d})}}}])})();function yq(e,t,r){if(r==="number"&&t===!0&&Array.isArray(e)){var n=e?.[0],i=e?.[1];if(n&&i&&z(n)&&z(i))return!0}return!1}function mq(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 g_(e){var t=e.cx,r=e.cy,n=e.radius,i=e.startAngle,a=e.endAngle,o=Te(t,r,n,i),u=Te(t,r,n,a);return{points:[o,u],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function gq(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 u=t.cx,s=t.cy,c=t.innerRadius,l=t.outerRadius,f=t.angle,d=Te(u,s,c,f),h=Te(u,s,l,f);n=d.x,i=d.y,a=h.x,o=h.y}else return g_(t);return[{x:n,y:i},{x:a,y:o}]}function Xi(e){"@babel/helpers - typeof";return Xi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xi(e)}function b_(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 eu(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?b_(Object(r),!0).forEach(function(n){bq(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function bq(e,t,r){return t=xq(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xq(e){var t=wq(e,"string");return Xi(t)=="symbol"?t:t+""}function wq(e,t){if(Xi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Xi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Oq(e){var t,r,n=e.element,i=e.tooltipEventType,a=e.isActive,o=e.activeCoordinate,u=e.activePayload,s=e.offset,c=e.activeTooltipIndex,l=e.tooltipAxisBandSize,f=e.layout,d=e.chartName,h=(t=n.props.cursor)!==null&&t!==void 0?t:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!h||!a||!o||d!=="ScatterChart"&&i!=="axis")return null;var m,v=Mr;if(d==="ScatterChart")m=o,v=DD;else if(d==="BarChart")m=mq(f,o,s,l),v=jd;else if(f==="radial"){var p=g_(o),g=p.cx,b=p.cy,w=p.radius,O=p.startAngle,y=p.endAngle;m={cx:g,cy:b,startAngle:O,endAngle:y,innerRadius:w,outerRadius:w},v=wx}else m={points:gq(f,o,s)},v=Mr;var x=eu(eu(eu(eu({stroke:"#ccc",pointerEvents:"none"},s),m),Q(h,!1)),{},{payload:u,payloadIndex:c,className:ce("recharts-tooltip-cursor",h.className)});return _.isValidElement(h)?_.cloneElement(h,x):_.createElement(v,x)}var _q=["item"],Aq=["children","className","width","height","style","compact","title","desc"];function kn(e){"@babel/helpers - typeof";return kn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kn(e)}function Dn(){return Dn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Dn.apply(this,arguments)}function x_(e,t){return Eq(e)||Pq(e,t)||__(e,t)||Sq()}function Sq(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
78
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pq(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(l){c=!0,i=l}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function Eq(e){if(Array.isArray(e))return e}function w_(e,t){if(e==null)return{};var r=Tq(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Tq(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function jq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Cq(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,S_(n.key),n)}}function $q(e,t,r){return t&&Cq(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Mq(e,t,r){return t=tu(t),Iq(e,O_()?Reflect.construct(t,r||[],tu(e).constructor):t.apply(e,r))}function Iq(e,t){if(t&&(kn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return kq(e)}function kq(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function O_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(O_=function(){return!!e})()}function tu(e){return tu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},tu(e)}function Dq(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Lp(e,t)}function Lp(e,t){return Lp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Lp(e,t)}function Nn(e){return Lq(e)||Rq(e)||__(e)||Nq()}function Nq(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
79
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function __(e,t){if(e){if(typeof e=="string")return qp(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return qp(e,t)}}function Rq(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Lq(e){if(Array.isArray(e))return qp(e)}function qp(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function A_(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 R(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?A_(Object(r),!0).forEach(function(n){ae(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):A_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ae(e,t,r){return t=S_(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function S_(e){var t=qq(e,"string");return kn(t)=="symbol"?t:t+""}function qq(e,t){if(kn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(kn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Bq={xAxis:["bottom","top"],yAxis:["left","right"]},Fq={width:"100%",height:"100%"},P_={x:0,y:0};function ru(e){return e}var Wq=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},zq=function(t,r,n,i){var a=r.find(function(l){return l&&l.index===n});if(a){if(t==="horizontal")return{x:a.coordinate,y:i.y};if(t==="vertical")return{x:i.x,y:a.coordinate};if(t==="centric"){var o=a.coordinate,u=i.radius;return R(R(R({},i),Te(i.cx,i.cy,u,o)),{},{angle:o,radius:u})}var s=a.coordinate,c=i.angle;return R(R(R({},i),Te(i.cx,i.cy,s,c)),{},{angle:c,radius:s})}return P_},nu=function(t,r){var n=r.graphicalItems,i=r.dataStartIndex,a=r.dataEndIndex,o=(n??[]).reduce(function(u,s){var c=s.props.data;return c&&c.length?[].concat(Nn(u),Nn(c)):u},[]);return o.length>0?o:t&&t.length&&z(i)&&z(a)?t.slice(i,a+1):[]};function E_(e){return e==="number"?[0,"auto"]:void 0}var Bp=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,u=nu(r,t);return n<0||!a||!a.length||n>=u.length?null:a.reduce(function(s,c){var l,f=(l=c.props.data)!==null&&l!==void 0?l:r;f&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(f=f.slice(t.dataStartIndex,t.dataEndIndex+1));var d;if(o.dataKey&&!o.allowDuplicatedCategory){var h=f===void 0?u:f;d=ca(h,o.dataKey,i)}else d=f&&f[n]||u[n];return d?[].concat(Nn(s),[ax(c,d)]):s},[])},T_=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=Wq(a,n),u=t.orderedTooltipTicks,s=t.tooltipAxis,c=t.tooltipTicks,l=Z$(o,u,c,s);if(l>=0&&c){var f=c[l]&&c[l].value,d=Bp(t,r,l,f),h=zq(n,u,l,a);return{activeTooltipIndex:l,activeLabel:f,activePayload:d,activeCoordinate:h}}return null},Uq=function(t,r){var n=r.axes,i=r.graphicalItems,a=r.axisType,o=r.axisIdKey,u=r.stackGroups,s=r.dataStartIndex,c=r.dataEndIndex,l=t.layout,f=t.children,d=t.stackOffset,h=V0(l,a);return n.reduce(function(m,v){var p,g=v.type.defaultProps!==void 0?R(R({},v.type.defaultProps),v.props):v.props,b=g.type,w=g.dataKey,O=g.allowDataOverflow,y=g.allowDuplicatedCategory,x=g.scale,A=g.ticks,S=g.includeHidden,T=g[o];if(m[T])return m;var M=nu(t.data,{graphicalItems:i.filter(function(B){var H,Y=o in B.props?B.props[o]:(H=B.type.defaultProps)===null||H===void 0?void 0:H[o];return Y===T}),dataStartIndex:s,dataEndIndex:c}),P=M.length,j,C,I;yq(g.domain,O,b)&&(j=ad(g.domain,null,O),h&&(b==="number"||x!=="auto")&&(I=wi(M,w,"category")));var k=E_(b);if(!j||j.length===0){var N,q=(N=g.domain)!==null&&N!==void 0?N:k;if(w){if(j=wi(M,w,b),b==="category"&&h){var U=KA(j);y&&U?(C=j,j=ko(0,P)):y||(j=ix(q,j,v).reduce(function(B,H){return B.indexOf(H)>=0?B:[].concat(Nn(B),[H])},[]))}else if(b==="category")y?j=j.filter(function(B){return B!==""&&!ue(B)}):j=ix(q,j,v).reduce(function(B,H){return B.indexOf(H)>=0||H===""||ue(H)?B:[].concat(Nn(B),[H])},[]);else if(b==="number"){var G=rM(M,i.filter(function(B){var H,Y,te=o in B.props?B.props[o]:(H=B.type.defaultProps)===null||H===void 0?void 0:H[o],re="hide"in B.props?B.props.hide:(Y=B.type.defaultProps)===null||Y===void 0?void 0:Y.hide;return te===T&&(S||!re)}),w,a,l);G&&(j=G)}h&&(b==="number"||x!=="auto")&&(I=wi(M,w,"category"))}else h?j=ko(0,P):u&&u[T]&&u[T].hasStack&&b==="number"?j=d==="expand"?[0,1]:tx(u[T].stackGroups,s,c):j=H0(M,i.filter(function(B){var H=o in B.props?B.props[o]:B.type.defaultProps[o],Y="hide"in B.props?B.props.hide:B.type.defaultProps.hide;return H===T&&(S||!Y)}),b,l,!0);if(b==="number")j=Ip(f,j,T,a,A),q&&(j=ad(q,j,O));else if(b==="category"&&q){var D=q,L=j.every(function(B){return D.indexOf(B)>=0});L&&(j=D)}}return R(R({},m),{},ae({},T,R(R({},g),{},{axisType:a,domain:j,categoricalDomain:I,duplicateDomain:C,originalDomain:(p=g.domain)!==null&&p!==void 0?p:k,isCategorical:h,layout:l})))},{})},Kq=function(t,r){var n=r.graphicalItems,i=r.Axis,a=r.axisType,o=r.axisIdKey,u=r.stackGroups,s=r.dataStartIndex,c=r.dataEndIndex,l=t.layout,f=t.children,d=nu(t.data,{graphicalItems:n,dataStartIndex:s,dataEndIndex:c}),h=d.length,m=V0(l,a),v=-1;return n.reduce(function(p,g){var b=g.type.defaultProps!==void 0?R(R({},g.type.defaultProps),g.props):g.props,w=b[o],O=E_("number");if(!p[w]){v++;var y;return m?y=ko(0,h):u&&u[w]&&u[w].hasStack?(y=tx(u[w].stackGroups,s,c),y=Ip(f,y,w,a)):(y=ad(O,H0(d,n.filter(function(x){var A,S,T=o in x.props?x.props[o]:(A=x.type.defaultProps)===null||A===void 0?void 0:A[o],M="hide"in x.props?x.props.hide:(S=x.type.defaultProps)===null||S===void 0?void 0:S.hide;return T===w&&!M}),"number",l),i.defaultProps.allowDataOverflow),y=Ip(f,y,w,a)),R(R({},p),{},ae({},w,R(R({axisType:a},i.defaultProps),{},{hide:!0,orientation:it(Bq,"".concat(a,".").concat(v%2),null),domain:y,originalDomain:O,isCategorical:m,layout:l})))}return p},{})},Gq=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,a=r.AxisComp,o=r.graphicalItems,u=r.stackGroups,s=r.dataStartIndex,c=r.dataEndIndex,l=t.children,f="".concat(i,"Id"),d=at(l,a),h={};return d&&d.length?h=Uq(t,{axes:d,graphicalItems:o,axisType:i,axisIdKey:f,stackGroups:u,dataStartIndex:s,dataEndIndex:c}):o&&o.length&&(h=Kq(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:f,stackGroups:u,dataStartIndex:s,dataEndIndex:c})),h},Hq=function(t){var r=rr(t),n=Xt(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:ql(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:uo(r,n)}},j_=function(t){var r=t.children,n=t.defaultShowTooltip,i=ot(r,gn),a=0,o=0;return t.data&&t.data.length!==0&&(o=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(a=i.props.startIndex),i.props.endIndex>=0&&(o=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:a,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!n}},Vq=function(t){return!t||!t.length?!1:t.some(function(r){var n=Ft(r&&r.type);return n&&n.indexOf("Bar")>=0})},C_=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},Yq=function(t,r){var n=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,u=t.yAxisMap,s=u===void 0?{}:u,c=n.width,l=n.height,f=n.children,d=n.margin||{},h=ot(f,gn),m=ot(f,nr),v=Object.keys(s).reduce(function(y,x){var A=s[x],S=A.orientation;return!A.mirror&&!A.hide?R(R({},y),{},ae({},S,y[S]+A.width)):y},{left:d.left||0,right:d.right||0}),p=Object.keys(o).reduce(function(y,x){var A=o[x],S=A.orientation;return!A.mirror&&!A.hide?R(R({},y),{},ae({},S,it(y,"".concat(S))+A.height)):y},{top:d.top||0,bottom:d.bottom||0}),g=R(R({},p),v),b=g.bottom;h&&(g.bottom+=h.props.height||gn.defaultProps.height),m&&r&&(g=eM(g,i,n,r));var w=c-g.left-g.right,O=l-g.top-g.bottom;return R(R({brushBottom:b},g),{},{width:Math.max(w,0),height:Math.max(O,0)})},Xq=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},iu=function(t){var r=t.chartName,n=t.GraphicalChild,i=t.defaultTooltipEventType,a=i===void 0?"axis":i,o=t.validateTooltipEventTypes,u=o===void 0?["axis"]:o,s=t.axisComponents,c=t.legendContent,l=t.formatAxisMap,f=t.defaultProps,d=function(g,b){var w=b.graphicalItems,O=b.stackGroups,y=b.offset,x=b.updateId,A=b.dataStartIndex,S=b.dataEndIndex,T=g.barSize,M=g.layout,P=g.barGap,j=g.barCategoryGap,C=g.maxBarSize,I=C_(M),k=I.numericAxisName,N=I.cateAxisName,q=Vq(w),U=[];return w.forEach(function(G,D){var L=nu(g.data,{graphicalItems:[G],dataStartIndex:A,dataEndIndex:S}),B=G.type.defaultProps!==void 0?R(R({},G.type.defaultProps),G.props):G.props,H=B.dataKey,Y=B.maxBarSize,te=B["".concat(k,"Id")],re=B["".concat(N,"Id")],oe={},ne=s.reduce(function(er,lt){var Zi,Ji,Ln=b["".concat(lt.axisType,"Map")],Qi=B["".concat(lt.axisType,"Id")];Ln&&Ln[Qi]||lt.axisType==="zAxis"||(process.env.NODE_ENV!=="production"?rt(!1,"Specifying a(n) ".concat(lt.axisType,"Id requires a corresponding ").concat(lt.axisType,"Id on the targeted graphical component ").concat((Zi=G==null||(Ji=G.type)===null||Ji===void 0?void 0:Ji.displayName)!==null&&Zi!==void 0?Zi:"")):rt());var ea=Ln[Qi];return R(R({},er),{},ae(ae({},lt.axisType,ea),"".concat(lt.axisType,"Ticks"),Xt(ea)))},oe),F=ne[N],V=ne["".concat(N,"Ticks")],ee=O&&O[te]&&O[te].hasStack&&fM(G,O[te].stackGroups),$=Ft(G.type).indexOf("Bar")>=0,fe=uo(F,V),K=[],ve=q&&J$({barSize:T,stackGroups:O,totalSize:Xq(ne,N)});if($){var we,Re,jt=ue(Y)?C:Y,Ct=(we=(Re=uo(F,V,!0))!==null&&Re!==void 0?Re:jt)!==null&&we!==void 0?we:0;K=Q$({barGap:P,barCategoryGap:j,bandSize:Ct!==fe?Ct:fe,sizeList:ve[re],maxBarSize:jt}),Ct!==fe&&(K=K.map(function(er){return R(R({},er),{},{position:R(R({},er.position),{},{offset:er.position.offset-Ct/2})})}))}var Rn=G&&G.type&&G.type.getComposedData;Rn&&U.push({props:R(R({},Rn(R(R({},ne),{},{displayedData:L,props:g,dataKey:H,item:G,bandSize:fe,barPosition:K,offset:y,stackedData:ee,layout:M,dataStartIndex:A,dataEndIndex:S}))),{},ae(ae(ae({key:G.key||"item-".concat(D)},k,ne[k]),N,ne[N]),"animationId",x)),childIndex:nS(G,g.children),item:G})}),U},h=function(g,b){var w=g.props,O=g.dataStartIndex,y=g.dataEndIndex,x=g.updateId;if(!vv({props:w}))return null;var A=w.children,S=w.layout,T=w.stackOffset,M=w.data,P=w.reverseStackOrder,j=C_(S),C=j.numericAxisName,I=j.cateAxisName,k=at(A,n),N=cM(M,k,"".concat(C,"Id"),"".concat(I,"Id"),T,P),q=s.reduce(function(B,H){var Y="".concat(H.axisType,"Map");return R(R({},B),{},ae({},Y,Gq(w,R(R({},H),{},{graphicalItems:k,stackGroups:H.axisType===C&&N,dataStartIndex:O,dataEndIndex:y}))))},{}),U=Yq(R(R({},q),{},{props:w,graphicalItems:k}),b?.legendBBox);Object.keys(q).forEach(function(B){q[B]=l(w,q[B],U,B.replace("Map",""),r)});var G=q["".concat(I,"Map")],D=Hq(G),L=d(w,R(R({},q),{},{dataStartIndex:O,dataEndIndex:y,updateId:x,graphicalItems:k,stackGroups:N,offset:U}));return R(R({formattedGraphicalItems:L,graphicalItems:k,offset:U,stackGroups:N},D),q)},m=(function(p){function g(b){var w,O,y;return jq(this,g),y=Mq(this,g,[b]),ae(y,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),ae(y,"accessibilityManager",new vq),ae(y,"handleLegendBBoxUpdate",function(x){if(x){var A=y.state,S=A.dataStartIndex,T=A.dataEndIndex,M=A.updateId;y.setState(R({legendBBox:x},h({props:y.props,dataStartIndex:S,dataEndIndex:T,updateId:M},R(R({},y.state),{},{legendBBox:x}))))}}),ae(y,"handleReceiveSyncEvent",function(x,A,S){if(y.props.syncId===x){if(S===y.eventEmitterSymbol&&typeof y.props.syncMethod!="function")return;y.applySyncEvent(A)}}),ae(y,"handleBrushChange",function(x){var A=x.startIndex,S=x.endIndex;if(A!==y.state.dataStartIndex||S!==y.state.dataEndIndex){var T=y.state.updateId;y.setState(function(){return R({dataStartIndex:A,dataEndIndex:S},h({props:y.props,dataStartIndex:A,dataEndIndex:S,updateId:T},y.state))}),y.triggerSyncEvent({dataStartIndex:A,dataEndIndex:S})}}),ae(y,"handleMouseEnter",function(x){var A=y.getMouseInfo(x);if(A){var S=R(R({},A),{},{isTooltipActive:!0});y.setState(S),y.triggerSyncEvent(S);var T=y.props.onMouseEnter;ie(T)&&T(S,x)}}),ae(y,"triggeredAfterMouseMove",function(x){var A=y.getMouseInfo(x),S=A?R(R({},A),{},{isTooltipActive:!0}):{isTooltipActive:!1};y.setState(S),y.triggerSyncEvent(S);var T=y.props.onMouseMove;ie(T)&&T(S,x)}),ae(y,"handleItemMouseEnter",function(x){y.setState(function(){return{isTooltipActive:!0,activeItem:x,activePayload:x.tooltipPayload,activeCoordinate:x.tooltipPosition||{x:x.cx,y:x.cy}}})}),ae(y,"handleItemMouseLeave",function(){y.setState(function(){return{isTooltipActive:!1}})}),ae(y,"handleMouseMove",function(x){x.persist(),y.throttleTriggeredAfterMouseMove(x)}),ae(y,"handleMouseLeave",function(x){y.throttleTriggeredAfterMouseMove.cancel();var A={isTooltipActive:!1};y.setState(A),y.triggerSyncEvent(A);var S=y.props.onMouseLeave;ie(S)&&S(A,x)}),ae(y,"handleOuterEvent",function(x){var A=rS(x),S=it(y.props,"".concat(A));if(A&&ie(S)){var T,M;/.*touch.*/i.test(A)?M=y.getMouseInfo(x.changedTouches[0]):M=y.getMouseInfo(x),S((T=M)!==null&&T!==void 0?T:{},x)}}),ae(y,"handleClick",function(x){var A=y.getMouseInfo(x);if(A){var S=R(R({},A),{},{isTooltipActive:!0});y.setState(S),y.triggerSyncEvent(S);var T=y.props.onClick;ie(T)&&T(S,x)}}),ae(y,"handleMouseDown",function(x){var A=y.props.onMouseDown;if(ie(A)){var S=y.getMouseInfo(x);A(S,x)}}),ae(y,"handleMouseUp",function(x){var A=y.props.onMouseUp;if(ie(A)){var S=y.getMouseInfo(x);A(S,x)}}),ae(y,"handleTouchMove",function(x){x.changedTouches!=null&&x.changedTouches.length>0&&y.throttleTriggeredAfterMouseMove(x.changedTouches[0])}),ae(y,"handleTouchStart",function(x){x.changedTouches!=null&&x.changedTouches.length>0&&y.handleMouseDown(x.changedTouches[0])}),ae(y,"handleTouchEnd",function(x){x.changedTouches!=null&&x.changedTouches.length>0&&y.handleMouseUp(x.changedTouches[0])}),ae(y,"handleDoubleClick",function(x){var A=y.props.onDoubleClick;if(ie(A)){var S=y.getMouseInfo(x);A(S,x)}}),ae(y,"handleContextMenu",function(x){var A=y.props.onContextMenu;if(ie(A)){var S=y.getMouseInfo(x);A(S,x)}}),ae(y,"triggerSyncEvent",function(x){y.props.syncId!==void 0&&Dp.emit(Np,y.props.syncId,x,y.eventEmitterSymbol)}),ae(y,"applySyncEvent",function(x){var A=y.props,S=A.layout,T=A.syncMethod,M=y.state.updateId,P=x.dataStartIndex,j=x.dataEndIndex;if(x.dataStartIndex!==void 0||x.dataEndIndex!==void 0)y.setState(R({dataStartIndex:P,dataEndIndex:j},h({props:y.props,dataStartIndex:P,dataEndIndex:j,updateId:M},y.state)));else if(x.activeTooltipIndex!==void 0){var C=x.chartX,I=x.chartY,k=x.activeTooltipIndex,N=y.state,q=N.offset,U=N.tooltipTicks;if(!q)return;if(typeof T=="function")k=T(U,x);else if(T==="value"){k=-1;for(var G=0;G<U.length;G++)if(U[G].value===x.activeLabel){k=G;break}}var D=R(R({},q),{},{x:q.left,y:q.top}),L=Math.min(C,D.x+D.width),B=Math.min(I,D.y+D.height),H=U[k]&&U[k].value,Y=Bp(y.state,y.props.data,k),te=U[k]?{x:S==="horizontal"?U[k].coordinate:L,y:S==="horizontal"?B:U[k].coordinate}:P_;y.setState(R(R({},x),{},{activeLabel:H,activeCoordinate:te,activePayload:Y,activeTooltipIndex:k}))}else y.setState(x)}),ae(y,"renderCursor",function(x){var A,S=y.state,T=S.isTooltipActive,M=S.activeCoordinate,P=S.activePayload,j=S.offset,C=S.activeTooltipIndex,I=S.tooltipAxisBandSize,k=y.getTooltipEventType(),N=(A=x.props.active)!==null&&A!==void 0?A:T,q=y.props.layout,U=x.key||"_recharts-cursor";return _.createElement(Oq,{key:U,activeCoordinate:M,activePayload:P,activeTooltipIndex:C,chartName:r,element:x,isActive:N,layout:q,offset:j,tooltipAxisBandSize:I,tooltipEventType:k})}),ae(y,"renderPolarAxis",function(x,A,S){var T=it(x,"type.axisType"),M=it(y.state,"".concat(T,"Map")),P=x.type.defaultProps,j=P!==void 0?R(R({},P),x.props):x.props,C=M&&M[j["".concat(T,"Id")]];return _.cloneElement(x,R(R({},C),{},{className:ce(T,C.className),key:x.key||"".concat(A,"-").concat(S),ticks:Xt(C,!0)}))}),ae(y,"renderPolarGrid",function(x){var A=x.props,S=A.radialLines,T=A.polarAngles,M=A.polarRadius,P=y.state,j=P.radiusAxisMap,C=P.angleAxisMap,I=rr(j),k=rr(C),N=k.cx,q=k.cy,U=k.innerRadius,G=k.outerRadius;return _.cloneElement(x,{polarAngles:Array.isArray(T)?T:Xt(k,!0).map(function(D){return D.coordinate}),polarRadius:Array.isArray(M)?M:Xt(I,!0).map(function(D){return D.coordinate}),cx:N,cy:q,innerRadius:U,outerRadius:G,key:x.key||"polar-grid",radialLines:S})}),ae(y,"renderLegend",function(){var x=y.state.formattedGraphicalItems,A=y.props,S=A.children,T=A.width,M=A.height,P=y.props.margin||{},j=T-(P.left||0)-(P.right||0),C=z0({children:S,formattedGraphicalItems:x,legendWidth:j,legendContent:c});if(!C)return null;var I=C.item,k=w_(C,_q);return _.cloneElement(I,R(R({},k),{},{chartWidth:T,chartHeight:M,margin:P,onBBoxUpdate:y.handleLegendBBoxUpdate}))}),ae(y,"renderTooltip",function(){var x,A=y.props,S=A.children,T=A.accessibilityLayer,M=ot(S,_t);if(!M)return null;var P=y.state,j=P.isTooltipActive,C=P.activeCoordinate,I=P.activePayload,k=P.activeLabel,N=P.offset,q=(x=M.props.active)!==null&&x!==void 0?x:j;return _.cloneElement(M,{viewBox:R(R({},N),{},{x:N.left,y:N.top}),active:q,label:k,payload:q?I:[],coordinate:C,accessibilityLayer:T})}),ae(y,"renderBrush",function(x){var A=y.props,S=A.margin,T=A.data,M=y.state,P=M.offset,j=M.dataStartIndex,C=M.dataEndIndex,I=M.updateId;return _.cloneElement(x,{key:x.key||"_recharts-brush",onChange:ao(y.handleBrushChange,x.props.onChange),data:T,x:z(x.props.x)?x.props.x:P.left,y:z(x.props.y)?x.props.y:P.top+P.height+P.brushBottom-(S.bottom||0),width:z(x.props.width)?x.props.width:P.width,startIndex:j,endIndex:C,updateId:"brush-".concat(I)})}),ae(y,"renderReferenceElement",function(x,A,S){if(!x)return null;var T=y,M=T.clipPathId,P=y.state,j=P.xAxisMap,C=P.yAxisMap,I=P.offset,k=x.type.defaultProps||{},N=x.props,q=N.xAxisId,U=q===void 0?k.xAxisId:q,G=N.yAxisId,D=G===void 0?k.yAxisId:G;return _.cloneElement(x,{key:x.key||"".concat(A,"-").concat(S),xAxis:j[U],yAxis:C[D],viewBox:{x:I.left,y:I.top,width:I.width,height:I.height},clipPathId:M})}),ae(y,"renderActivePoints",function(x){var A=x.item,S=x.activePoint,T=x.basePoint,M=x.childIndex,P=x.isRange,j=[],C=A.props.key,I=A.item.type.defaultProps!==void 0?R(R({},A.item.type.defaultProps),A.item.props):A.item.props,k=I.activeDot,N=I.dataKey,q=R(R({index:M,dataKey:N,cx:S.x,cy:S.y,r:4,fill:nd(A.item),strokeWidth:2,stroke:"#fff",payload:S.payload,value:S.value},Q(k,!1)),la(k));return j.push(g.renderActiveDot(k,q,"".concat(C,"-activePoint-").concat(M))),T?j.push(g.renderActiveDot(k,R(R({},q),{},{cx:T.x,cy:T.y}),"".concat(C,"-basePoint-").concat(M))):P&&j.push(null),j}),ae(y,"renderGraphicChild",function(x,A,S){var T=y.filterFormatItem(x,A,S);if(!T)return null;var M=y.getTooltipEventType(),P=y.state,j=P.isTooltipActive,C=P.tooltipAxis,I=P.activeTooltipIndex,k=P.activeLabel,N=y.props.children,q=ot(N,_t),U=T.props,G=U.points,D=U.isRange,L=U.baseLine,B=T.item.type.defaultProps!==void 0?R(R({},T.item.type.defaultProps),T.item.props):T.item.props,H=B.activeDot,Y=B.hide,te=B.activeBar,re=B.activeShape,oe=!!(!Y&&j&&q&&(H||te||re)),ne={};M!=="axis"&&q&&q.props.trigger==="click"?ne={onClick:ao(y.handleItemMouseEnter,x.props.onClick)}:M!=="axis"&&(ne={onMouseLeave:ao(y.handleItemMouseLeave,x.props.onMouseLeave),onMouseEnter:ao(y.handleItemMouseEnter,x.props.onMouseEnter)});var F=_.cloneElement(x,R(R({},T.props),ne));function V(lt){return typeof C.dataKey=="function"?C.dataKey(lt.payload):null}if(oe)if(I>=0){var ee,$;if(C.dataKey&&!C.allowDuplicatedCategory){var fe=typeof C.dataKey=="function"?V:"payload.".concat(C.dataKey.toString());ee=ca(G,fe,k),$=D&&L&&ca(L,fe,k)}else ee=G?.[I],$=D&&L&&L[I];if(re||te){var K=x.props.activeIndex!==void 0?x.props.activeIndex:I;return[_.cloneElement(x,R(R(R({},T.props),ne),{},{activeIndex:K})),null,null]}if(!ue(ee))return[F].concat(Nn(y.renderActivePoints({item:T,activePoint:ee,basePoint:$,childIndex:I,isRange:D})))}else{var ve,we=(ve=y.getItemByXY(y.state.activeCoordinate))!==null&&ve!==void 0?ve:{graphicalItem:F},Re=we.graphicalItem,jt=Re.item,Ct=jt===void 0?x:jt,Rn=Re.childIndex,er=R(R(R({},T.props),ne),{},{activeIndex:Rn});return[_.cloneElement(Ct,er),null,null]}return D?[F,null,null]:[F,null]}),ae(y,"renderCustomized",function(x,A,S){return _.cloneElement(x,R(R({key:"recharts-customized-".concat(S)},y.props),y.state))}),ae(y,"renderMap",{CartesianGrid:{handler:ru,once:!0},ReferenceArea:{handler:y.renderReferenceElement},ReferenceLine:{handler:ru},ReferenceDot:{handler:y.renderReferenceElement},XAxis:{handler:ru},YAxis:{handler:ru},Brush:{handler:y.renderBrush,once:!0},Bar:{handler:y.renderGraphicChild},Line:{handler:y.renderGraphicChild},Area:{handler:y.renderGraphicChild},Radar:{handler:y.renderGraphicChild},RadialBar:{handler:y.renderGraphicChild},Scatter:{handler:y.renderGraphicChild},Pie:{handler:y.renderGraphicChild},Funnel:{handler:y.renderGraphicChild},Tooltip:{handler:y.renderCursor,once:!0},PolarGrid:{handler:y.renderPolarGrid,once:!0},PolarAngleAxis:{handler:y.renderPolarAxis},PolarRadiusAxis:{handler:y.renderPolarAxis},Customized:{handler:y.renderCustomized}}),y.clipPathId="".concat((w=b.id)!==null&&w!==void 0?w:gr("recharts"),"-clip"),y.throttleTriggeredAfterMouseMove=Cg(y.triggeredAfterMouseMove,(O=b.throttleDelay)!==null&&O!==void 0?O:1e3/60),y.state={},y}return Dq(g,p),$q(g,[{key:"componentDidMount",value:function(){var w,O;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(w=this.props.margin.left)!==null&&w!==void 0?w:0,top:(O=this.props.margin.top)!==null&&O!==void 0?O:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var w=this.props,O=w.children,y=w.data,x=w.height,A=w.layout,S=ot(O,_t);if(S){var T=S.props.defaultIndex;if(!(typeof T!="number"||T<0||T>this.state.tooltipTicks.length-1)){var M=this.state.tooltipTicks[T]&&this.state.tooltipTicks[T].value,P=Bp(this.state,y,T,M),j=this.state.tooltipTicks[T].coordinate,C=(this.state.offset.top+x)/2,I=A==="horizontal",k=I?{x:j,y:C}:{y:j,x:C},N=this.state.formattedGraphicalItems.find(function(U){var G=U.item;return G.type.name==="Scatter"});N&&(k=R(R({},k),N.props.points[T].tooltipPosition),P=N.props.points[T].tooltipPayload);var q={activeTooltipIndex:T,isTooltipActive:!0,activeLabel:M,activePayload:P,activeCoordinate:k};this.setState(q),this.renderCursor(S),this.accessibilityManager.setIndex(T)}}}},{key:"getSnapshotBeforeUpdate",value:function(w,O){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==O.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==w.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==w.margin){var y,x;this.accessibilityManager.setDetails({offset:{left:(y=this.props.margin.left)!==null&&y!==void 0?y:0,top:(x=this.props.margin.top)!==null&&x!==void 0?x:0}})}return null}},{key:"componentDidUpdate",value:function(w){Os([ot(w.children,_t)],[ot(this.props.children,_t)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var w=ot(this.props.children,_t);if(w&&typeof w.props.shared=="boolean"){var O=w.props.shared?"axis":"item";return u.indexOf(O)>=0?O:a}return a}},{key:"getMouseInfo",value:function(w){if(!this.container)return null;var O=this.container,y=O.getBoundingClientRect(),x=UE(y),A={chartX:Math.round(w.pageX-x.left),chartY:Math.round(w.pageY-x.top)},S=y.width/O.offsetWidth||1,T=this.inRange(A.chartX,A.chartY,S);if(!T)return null;var M=this.state,P=M.xAxisMap,j=M.yAxisMap,C=this.getTooltipEventType(),I=T_(this.state,this.props.data,this.props.layout,T);if(C!=="axis"&&P&&j){var k=rr(P).scale,N=rr(j).scale,q=k&&k.invert?k.invert(A.chartX):null,U=N&&N.invert?N.invert(A.chartY):null;return R(R({},A),{},{xValue:q,yValue:U},I)}return I?R(R({},A),I):null}},{key:"inRange",value:function(w,O){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,x=this.props.layout,A=w/y,S=O/y;if(x==="horizontal"||x==="vertical"){var T=this.state.offset,M=A>=T.left&&A<=T.left+T.width&&S>=T.top&&S<=T.top+T.height;return M?{x:A,y:S}:null}var P=this.state,j=P.angleAxisMap,C=P.radiusAxisMap;if(j&&C){var I=rr(j);return lx({x:A,y:S},I)}return null}},{key:"parseEventsOfWrapper",value:function(){var w=this.props.children,O=this.getTooltipEventType(),y=ot(w,_t),x={};y&&O==="axis"&&(y.props.trigger==="click"?x={onClick:this.handleClick}:x={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var A=la(this.props,this.handleOuterEvent);return R(R({},A),x)}},{key:"addListener",value:function(){Dp.on(Np,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Dp.removeListener(Np,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(w,O,y){for(var x=this.state.formattedGraphicalItems,A=0,S=x.length;A<S;A++){var T=x[A];if(T.item===w||T.props.key===w.key||O===Ft(T.item.type)&&y===T.childIndex)return T}return null}},{key:"renderClipPath",value:function(){var w=this.clipPathId,O=this.state.offset,y=O.left,x=O.top,A=O.height,S=O.width;return _.createElement("defs",null,_.createElement("clipPath",{id:w},_.createElement("rect",{x:y,y:x,height:A,width:S})))}},{key:"getXScales",value:function(){var w=this.state.xAxisMap;return w?Object.entries(w).reduce(function(O,y){var x=x_(y,2),A=x[0],S=x[1];return R(R({},O),{},ae({},A,S.scale))},{}):null}},{key:"getYScales",value:function(){var w=this.state.yAxisMap;return w?Object.entries(w).reduce(function(O,y){var x=x_(y,2),A=x[0],S=x[1];return R(R({},O),{},ae({},A,S.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(w){var O;return(O=this.state.xAxisMap)===null||O===void 0||(O=O[w])===null||O===void 0?void 0:O.scale}},{key:"getYScaleByAxisId",value:function(w){var O;return(O=this.state.yAxisMap)===null||O===void 0||(O=O[w])===null||O===void 0?void 0:O.scale}},{key:"getItemByXY",value:function(w){var O=this.state,y=O.formattedGraphicalItems,x=O.activeItem;if(y&&y.length)for(var A=0,S=y.length;A<S;A++){var T=y[A],M=T.props,P=T.item,j=P.type.defaultProps!==void 0?R(R({},P.type.defaultProps),P.props):P.props,C=Ft(P.type);if(C==="Bar"){var I=(M.data||[]).find(function(U){return vD(w,U)});if(I)return{graphicalItem:T,payload:I}}else if(C==="RadialBar"){var k=(M.data||[]).find(function(U){return lx(w,U)});if(k)return{graphicalItem:T,payload:k}}else if(Co(T,x)||$o(T,x)||Wi(T,x)){var N=LN({graphicalItem:T,activeTooltipItem:x,itemData:j.data}),q=j.activeIndex===void 0?N:j.activeIndex;return{graphicalItem:R(R({},T),{},{childIndex:q}),payload:Wi(T,x)?j.data[N]:T.props.data[N]}}}return null}},{key:"render",value:function(){var w=this;if(!vv(this))return null;var O=this.props,y=O.children,x=O.className,A=O.width,S=O.height,T=O.style,M=O.compact,P=O.title,j=O.desc,C=w_(O,Aq),I=Q(C,!1);if(M)return _.createElement(PO,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},_.createElement(As,Dn({},I,{width:A,height:S,title:P,desc:j}),this.renderClipPath(),gv(y,this.renderMap)));if(this.props.accessibilityLayer){var k,N;I.tabIndex=(k=this.props.tabIndex)!==null&&k!==void 0?k:0,I.role=(N=this.props.role)!==null&&N!==void 0?N:"application",I.onKeyDown=function(U){w.accessibilityManager.keyboardEvent(U)},I.onFocus=function(){w.accessibilityManager.focus()}}var q=this.parseEventsOfWrapper();return _.createElement(PO,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},_.createElement("div",Dn({className:ce("recharts-wrapper",x),style:R({position:"relative",cursor:"default",width:A,height:S},T)},q,{ref:function(G){w.container=G}}),_.createElement(As,Dn({},I,{width:A,height:S,title:P,desc:j,style:Fq}),this.renderClipPath(),gv(y,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(_.Component);ae(m,"displayName",r),ae(m,"defaultProps",R({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},f)),ae(m,"getDerivedStateFromProps",function(p,g){var b=p.dataKey,w=p.data,O=p.children,y=p.width,x=p.height,A=p.layout,S=p.stackOffset,T=p.margin,M=g.dataStartIndex,P=g.dataEndIndex;if(g.updateId===void 0){var j=j_(p);return R(R(R({},j),{},{updateId:0},h(R(R({props:p},j),{},{updateId:0}),g)),{},{prevDataKey:b,prevData:w,prevWidth:y,prevHeight:x,prevLayout:A,prevStackOffset:S,prevMargin:T,prevChildren:O})}if(b!==g.prevDataKey||w!==g.prevData||y!==g.prevWidth||x!==g.prevHeight||A!==g.prevLayout||S!==g.prevStackOffset||!Kr(T,g.prevMargin)){var C=j_(p),I={chartX:g.chartX,chartY:g.chartY,isTooltipActive:g.isTooltipActive},k=R(R({},T_(g,w,A)),{},{updateId:g.updateId+1}),N=R(R(R({},C),I),k);return R(R(R({},N),h(R({props:p},N),g)),{},{prevDataKey:b,prevData:w,prevWidth:y,prevHeight:x,prevLayout:A,prevStackOffset:S,prevMargin:T,prevChildren:O})}if(!Os(O,g.prevChildren)){var q,U,G,D,L=ot(O,gn),B=L&&(q=(U=L.props)===null||U===void 0?void 0:U.startIndex)!==null&&q!==void 0?q:M,H=L&&(G=(D=L.props)===null||D===void 0?void 0:D.endIndex)!==null&&G!==void 0?G:P,Y=B!==M||H!==P,te=!ue(w),re=te&&!Y?g.updateId:g.updateId+1;return R(R({updateId:re},h(R(R({props:p},g),{},{updateId:re,dataStartIndex:B,dataEndIndex:H}),g)),{},{prevChildren:O,dataStartIndex:B,dataEndIndex:H})}return null}),ae(m,"renderActiveDot",function(p,g,b){var w;return _.isValidElement(p)?w=_.cloneElement(p,g):ie(p)?w=p(g):w=_.createElement(Ri,g),_.createElement(le,{className:"recharts-active-dot",key:b},w)});var v=_.forwardRef(function(g,b){return _.createElement(m,Dn({},g,{ref:b}))});return v.displayName=m.displayName,v},Zq=iu({chartName:"LineChart",GraphicalChild:Vi,axisComponents:[{axisType:"xAxis",AxisComp:Br},{axisType:"yAxis",AxisComp:In}],formatAxisMap:rp}),Fp=iu({chartName:"BarChart",GraphicalChild:dr,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:Br},{axisType:"yAxis",AxisComp:In}],formatAxisMap:rp}),$_=iu({chartName:"PieChart",GraphicalChild:Jt,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:Eo},{axisType:"radiusAxis",AxisComp:Ao}],formatAxisMap:wM,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),Jq=iu({chartName:"AreaChart",GraphicalChild:hr,axisComponents:[{axisType:"xAxis",AxisComp:Br},{axisType:"yAxis",AxisComp:In}],formatAxisMap:rp});function Qq({data:e=[],dataKey:t="value",xAxisKey:r="name",height:n=400,className:i="",color:a="hsl(var(--primary))"}){return X.jsx("div",{className:`p-4 rounded-xl border border-border bg-card/40 backdrop-blur-sm shadow-lg shadow-background/5 ${i}`,children:X.jsx(Ig,{width:"100%",height:n,children:X.jsxs(Fp,{data:e,margin:{top:20,right:30,left:20,bottom:5},children:[X.jsxs("defs",{children:[X.jsxs("linearGradient",{id:"barGradient",x1:"0",y1:"0",x2:"0",y2:"1",children:[X.jsx("stop",{offset:"0%",stopColor:a,stopOpacity:1}),X.jsx("stop",{offset:"90%",stopColor:a,stopOpacity:.6}),X.jsx("stop",{offset:"100%",stopColor:a,stopOpacity:.3})]}),X.jsxs("filter",{id:"glow",height:"130%",children:[X.jsx("feGaussianBlur",{in:"SourceAlpha",stdDeviation:"3",result:"blur"}),X.jsx("feOffset",{in:"blur",dx:"0",dy:"0",result:"offsetBlur"}),X.jsx("feFlood",{floodColor:a,floodOpacity:"0.5",result:"offsetColor"}),X.jsx("feComposite",{in:"offsetColor",in2:"offsetBlur",operator:"in",result:"offsetBlur"}),X.jsxs("feMerge",{children:[X.jsx("feMergeNode",{in:"offsetBlur"}),X.jsx("feMergeNode",{in:"SourceGraphic"})]})]})]}),X.jsx(Ap,{strokeDasharray:"3 3",stroke:"hsl(var(--border))",vertical:!1}),X.jsx(Br,{dataKey:r,tick:{fill:"hsl(var(--muted-foreground))",fontSize:12,fontFamily:"monospace"},tickLine:!1,axisLine:{stroke:"hsl(var(--border))"},dy:10}),X.jsx(In,{tick:{fill:"hsl(var(--muted-foreground))",fontSize:12,fontFamily:"monospace"},tickLine:!1,axisLine:!1}),X.jsx(_t,{cursor:{fill:"hsl(var(--muted))",opacity:.2},contentStyle:{backgroundColor:"hsl(var(--popover))",borderColor:"hsl(var(--border))",color:"hsl(var(--popover-foreground))",borderRadius:"8px",fontFamily:"monospace",boxShadow:"0 4px 6px -1px rgb(0 0 0 / 0.1)"},itemStyle:{color:"hsl(var(--primary))"}}),X.jsx(nr,{wrapperStyle:{paddingTop:"20px",fontFamily:"monospace"}}),X.jsx(dr,{dataKey:t,fill:"url(#barGradient)",radius:[4,4,0,0],filter:"url(#glow)",animationDuration:1500})]})})})}const eB=Object.freeze(Object.defineProperty({__proto__:null,default:Qq},Symbol.toStringTag,{value:"Module"})),Qt=(...e)=>e.filter(Boolean).join(" "),tB={light:"",dark:".dark"},M_=ft.createContext(null);function I_(){const e=ft.useContext(M_);if(!e)throw new Error("useChart must be used within a <ChartContainer />");return e}function k_({id:e,className:t,children:r,config:n,...i}){const a=ft.useId(),o=`chart-${e||a.replace(/:/g,"")}`;return X.jsx(M_.Provider,{value:{config:n},children:X.jsxs("div",{"data-slot":"chart","data-chart":o,className:Qt("flex w-full h-[350px] justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground",t),...i,children:[X.jsx(rB,{id:o,config:n}),X.jsx(Ig,{width:"100%",height:"100%",children:r})]})})}const rB=({id:e,config:t})=>{const r=Object.entries(t).filter(([,n])=>n.theme||n.color);return r.length?X.jsx("style",{dangerouslySetInnerHTML:{__html:Object.entries(tB).map(([n,i])=>`
80
+ ${i} [data-chart=${e}] {
81
+ ${r.map(([a,o])=>{const u=o.theme?.[n]||o.color;return u?` --color-${a}: ${u};`:null}).join(`
82
+ `)}
83
+ }
84
+ `).join(`
85
+ `)}}):null},D_=_t;function N_({active:e,payload:t,className:r,indicator:n="dot",hideLabel:i=!1,hideIndicator:a=!1,label:o,labelFormatter:u,labelClassName:s,formatter:c,color:l,nameKey:f,labelKey:d}){const{config:h}=I_(),m=ft.useMemo(()=>{if(i||!t?.length)return null;const[p]=t,g=`${d||p?.dataKey||p?.name||"value"}`,b=Wp(h,p,g),w=!d&&typeof o=="string"?h[o]?.label||o:b?.label;return u?X.jsx("div",{className:Qt("font-medium",s),children:u(w,t)}):w?X.jsx("div",{className:Qt("font-medium",s),children:w}):null},[o,u,t,i,s,h,d]);if(!e||!t?.length)return null;const v=t.length===1&&n!=="dot";return X.jsxs("div",{className:Qt("border-border/50 bg-background grid min-w-[8rem] items-start gap-1.5 rounded-lg border px-2.5 py-1.5 text-xs shadow-xl",r),children:[v?null:m,X.jsx("div",{className:"grid gap-1.5",children:t.filter(p=>p.type!=="none").map((p,g)=>{const b=`${f||p.name||p.dataKey||"value"}`,w=Wp(h,p,b),O=l||p.payload.fill||p.color;return X.jsx("div",{className:Qt("[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5",n==="dot"?"items-center":""),children:c&&p?.value!==void 0&&p.name?c(p.value,p.name,p,g,p.payload):X.jsxs(X.Fragment,{children:[w?.icon?X.jsx(w.icon,{}):!a&&X.jsx("div",{className:Qt("shrink-0 rounded-[2px] border-(--color-border) bg-(--color-bg)",n==="dot"?"h-2.5 w-2.5":"",n==="line"?"w-1":"",n==="dashed"?"w-0 border-[1.5px] border-dashed bg-transparent":"",v&&n==="dashed"?"my-0.5":""),style:{"--color-bg":O,"--color-border":O}}),X.jsxs("div",{className:Qt("flex flex-1 justify-between leading-none",v?"items-end":"items-center"),children:[X.jsxs("div",{className:"grid gap-1.5",children:[v?m:null,X.jsx("span",{className:"text-muted-foreground",children:w?.label||p.name})]}),p.value&&X.jsx("span",{className:"text-foreground font-mono font-medium tabular-nums",children:p.value.toLocaleString()})]})]})},p.dataKey)})})]})}const R_=nr;function L_({className:e,hideIcon:t=!1,payload:r,verticalAlign:n="bottom",nameKey:i}){const{config:a}=I_();return r?.length?X.jsx("div",{className:Qt("flex items-center justify-center gap-4",n==="top"?"pb-3":"pt-3",e),children:r.filter(o=>o.type!=="none").map(o=>{const u=`${i||o.dataKey||"value"}`,s=Wp(a,o,u);return X.jsxs("div",{className:Qt("[&>svg]:text-muted-foreground flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3"),children:[s?.icon&&!t?X.jsx(s.icon,{}):X.jsx("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:o.color}}),s?.label]},o.value)})}):null}function Wp(e,t,r){if(typeof t!="object"||t===null)return;const n="payload"in t&&typeof t.payload=="object"&&t.payload!==null?t.payload:void 0;let i=r;return r in t&&typeof t[r]=="string"?i=t[r]:n&&r in n&&typeof n[r]=="string"&&(i=n[r]),i in e?e[i]:e[r]}const nB="hsl(var(--primary))",iB={slate:"#64748b",gray:"#6b7280",zinc:"#71717a",neutral:"#737373",stone:"#78716c",red:"#ef4444",orange:"#f97316",amber:"#f59e0b",yellow:"#eab308",lime:"#84cc16",green:"#22c55e",emerald:"#10b981",teal:"#14b8a6",cyan:"#06b6d4",sky:"#0ea5e9",blue:"#3b82f6",indigo:"#6366f1",violet:"#8b5cf6",purple:"#a855f7",fuchsia:"#d946ef",pink:"#ec4899",rose:"#f43f5e"},q_=e=>iB[e]||e;function aB({chartType:e="bar",data:t=[],config:r={},xAxisKey:n="name",series:i=[],className:a=""}){const o={bar:Fp,line:Zq,area:Jq,pie:$_}[e]||Fp;return console.log("📈 Rendering Chart:",{chartType:e,dataLength:t.length,config:r,series:i,xAxisKey:n}),e==="pie"?X.jsx(k_,{config:r,className:a,children:X.jsxs($_,{children:[X.jsx(D_,{cursor:!1,content:X.jsx(N_,{hideLabel:!0})}),X.jsx(Jt,{data:t,dataKey:i[0]?.dataKey||"value",nameKey:n||"name",innerRadius:60,strokeWidth:5,paddingAngle:2,outerRadius:80,children:t.map((u,s)=>{let c=r[u[n]]?.color;if(!c){const l=["hsl(var(--chart-1))","hsl(var(--chart-2))","hsl(var(--chart-3))","hsl(var(--chart-4))","hsl(var(--chart-5))"];c=l[s%l.length]}return X.jsx(Ca,{fill:q_(c)},`cell-${s}`)})}),X.jsx(R_,{content:X.jsx(L_,{nameKey:n})})]})}):X.jsx(k_,{config:r,className:a,children:X.jsxs(o,{data:t,children:[X.jsx(Ap,{vertical:!1}),X.jsx(Br,{dataKey:n,tickLine:!1,tickMargin:10,axisLine:!1,tickFormatter:u=>u&&typeof u=="string"?u.slice(0,3):u}),X.jsx(D_,{content:X.jsx(N_,{})}),X.jsx(R_,{content:X.jsx(L_,{})}),i.map(u=>{const s=q_(r[u.dataKey]?.color||nB);return e==="bar"?X.jsx(dr,{dataKey:u.dataKey,fill:s,radius:4},u.dataKey):e==="line"?X.jsx(Vi,{type:"monotone",dataKey:u.dataKey,stroke:s,strokeWidth:2,dot:!1},u.dataKey):e==="area"?X.jsx(hr,{type:"monotone",dataKey:u.dataKey,fill:s,stroke:s,fillOpacity:.4},u.dataKey):null})]})})}const oB=Object.freeze(Object.defineProperty({__proto__:null,default:aB},Symbol.toStringTag,{value:"Module"}));xt.ChartBarRenderer=au,xt.ChartRenderer=ou,xt.chartComponents=tA,Object.defineProperty(xt,Symbol.toStringTag,{value:"Module"})}));