import{d as Ni,g as le,r as B,U as A,j as T,q as a_,$ as o_,m as u_}from"./app-CffHYkHW.js";import{B as Bo}from"./badge-soq0-NVD.js";import{C as Ri,d as Di,a as Fo,b as zo,c as Wo,e as s_}from"./card-X_CDEGIm.js";import{d as te,a as nr}from"./utils-C8zp8JNC.js";import{T as Pd,a as c_,b as Uo,c as Ko}from"./tabs-CqSoUkEb.js";import{A as l_,e as f_,a as p_,W as d_}from"./app-layout-D-VS7nVU.js";import{c as Pi}from"./createLucideIcon-DAR-hy5d.js";import{T as h_}from"./truck-DnoS8QCL.js";import{L as v_}from"./loader-circle-BRrBaJrT.js";import"./button-qhe8lrPU.js";import"./index-Cy5bElus.js";import"./index-DPkgfxsD.js";import"./bluetooth-context-CLrE8g1i.js";import"./index-C9NeyPdJ.js";import"./index-Dw4sHwMN.js";import"./sheet-Bisw0FSz.js";import"./index-C0loMkA3.js";import"./x-BfabuQJD.js";import"./index-CjqRk3xD.js";import"./package-BHw0cifz.js";import"./shopping-bag-AryJS2XX.js";import"./app-logo-icon-D3Jzt_fn.js";import"./sonner-CPUj7IiR.js";/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const y_=[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 20V4",key:"1yoxec"}],["path",{d:"m21 8-4-4-4 4",key:"1c9v7m"}],["path",{d:"M17 4v16",key:"7dpous"}]],m_=Pi("ArrowDownUp",y_);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const g_=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],b_=Pi("RotateCcw",g_);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const x_=[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]],w_=Pi("RotateCw",x_);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const O_=[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]],__=Pi("ShoppingCart",O_);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const A_=[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]],S_=Pi("TrendingUp",A_);var Ho,jd;function ze(){if(jd)return Ho;jd=1;var e=Array.isArray;return Ho=e,Ho}var Go,Td;function E0(){if(Td)return Go;Td=1;var e=typeof Ni=="object"&&Ni&&Ni.Object===Object&&Ni;return Go=e,Go}var Vo,Ed;function gt(){if(Ed)return Vo;Ed=1;var e=E0(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return Vo=r,Vo}var Xo,$d;function ji(){if($d)return Xo;$d=1;var e=gt(),t=e.Symbol;return Xo=t,Xo}var Yo,Md;function P_(){if(Md)return Yo;Md=1;var e=ji(),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 f=n.call(o);return c&&(u?o[i]=s:delete o[i]),f}return Yo=a,Yo}var Zo,Cd;function j_(){if(Cd)return Zo;Cd=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return Zo=r,Zo}var Jo,Id;function Mt(){if(Id)return Jo;Id=1;var e=ji(),t=P_(),r=j_(),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 Jo=o,Jo}var Qo,kd;function Ct(){if(kd)return Qo;kd=1;function e(t){return t!=null&&typeof t=="object"}return Qo=e,Qo}var eu,Nd;function vn(){if(Nd)return eu;Nd=1;var e=Mt(),t=Ct(),r="[object Symbol]";function n(i){return typeof i=="symbol"||t(i)&&e(i)==r}return eu=n,eu}var tu,Rd;function wp(){if(Rd)return tu;Rd=1;var e=ze(),t=vn(),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 tu=i,tu}var ru,Dd;function Gt(){if(Dd)return ru;Dd=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return ru=e,ru}var nu,qd;function Op(){if(qd)return nu;qd=1;var e=Mt(),t=Gt(),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 nu=o,nu}var iu,Ld;function T_(){if(Ld)return iu;Ld=1;var e=gt(),t=e["__core-js_shared__"];return iu=t,iu}var au,Bd;function E_(){if(Bd)return au;Bd=1;var e=T_(),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 au=r,au}var ou,Fd;function $0(){if(Fd)return ou;Fd=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 ou=r,ou}var uu,zd;function $_(){if(zd)return uu;zd=1;var e=Op(),t=E_(),r=Gt(),n=$0(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,o=Function.prototype,u=Object.prototype,s=o.toString,c=u.hasOwnProperty,f=RegExp("^"+s.call(c).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function l(p){if(!r(p)||t(p))return!1;var h=e(p)?f:a;return h.test(n(p))}return uu=l,uu}var su,Wd;function M_(){if(Wd)return su;Wd=1;function e(t,r){return t==null?void 0:t[r]}return su=e,su}var cu,Ud;function br(){if(Ud)return cu;Ud=1;var e=$_(),t=M_();function r(n,i){var a=t(n,i);return e(a)?a:void 0}return cu=r,cu}var lu,Kd;function Qa(){if(Kd)return lu;Kd=1;var e=br(),t=e(Object,"create");return lu=t,lu}var fu,Hd;function C_(){if(Hd)return fu;Hd=1;var e=Qa();function t(){this.__data__=e?e(null):{},this.size=0}return fu=t,fu}var pu,Gd;function I_(){if(Gd)return pu;Gd=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return pu=e,pu}var du,Vd;function k_(){if(Vd)return du;Vd=1;var e=Qa(),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 du=i,du}var hu,Xd;function N_(){if(Xd)return hu;Xd=1;var e=Qa(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var a=this.__data__;return e?a[i]!==void 0:r.call(a,i)}return hu=n,hu}var vu,Yd;function R_(){if(Yd)return vu;Yd=1;var e=Qa(),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 vu=r,vu}var yu,Zd;function D_(){if(Zd)return yu;Zd=1;var e=C_(),t=I_(),r=k_(),n=N_(),i=R_();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,yu=a,yu}var mu,Jd;function q_(){if(Jd)return mu;Jd=1;function e(){this.__data__=[],this.size=0}return mu=e,mu}var gu,Qd;function _p(){if(Qd)return gu;Qd=1;function e(t,r){return t===r||t!==t&&r!==r}return gu=e,gu}var bu,eh;function eo(){if(eh)return bu;eh=1;var e=_p();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return bu=t,bu}var xu,th;function L_(){if(th)return xu;th=1;var e=eo(),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 xu=n,xu}var wu,rh;function B_(){if(rh)return wu;rh=1;var e=eo();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return wu=t,wu}var Ou,nh;function F_(){if(nh)return Ou;nh=1;var e=eo();function t(r){return e(this.__data__,r)>-1}return Ou=t,Ou}var _u,ih;function z_(){if(ih)return _u;ih=1;var e=eo();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 _u=t,_u}var Au,ah;function to(){if(ah)return Au;ah=1;var e=q_(),t=L_(),r=B_(),n=F_(),i=z_();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,Au=a,Au}var Su,oh;function Ap(){if(oh)return Su;oh=1;var e=br(),t=gt(),r=e(t,"Map");return Su=r,Su}var Pu,uh;function W_(){if(uh)return Pu;uh=1;var e=D_(),t=to(),r=Ap();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return Pu=n,Pu}var ju,sh;function U_(){if(sh)return ju;sh=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return ju=e,ju}var Tu,ch;function ro(){if(ch)return Tu;ch=1;var e=U_();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return Tu=t,Tu}var Eu,lh;function K_(){if(lh)return Eu;lh=1;var e=ro();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return Eu=t,Eu}var $u,fh;function H_(){if(fh)return $u;fh=1;var e=ro();function t(r){return e(this,r).get(r)}return $u=t,$u}var Mu,ph;function G_(){if(ph)return Mu;ph=1;var e=ro();function t(r){return e(this,r).has(r)}return Mu=t,Mu}var Cu,dh;function V_(){if(dh)return Cu;dh=1;var e=ro();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 Cu=t,Cu}var Iu,hh;function Sp(){if(hh)return Iu;hh=1;var e=W_(),t=K_(),r=H_(),n=G_(),i=V_();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,vh;function M0(){if(vh)return ku;vh=1;var e=Sp(),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,ku=r,ku}var Nu,yh;function X_(){if(yh)return Nu;yh=1;var e=M0(),t=500;function r(n){var i=e(n,function(o){return a.size===t&&a.clear(),o}),a=i.cache;return i}return Nu=r,Nu}var Ru,mh;function Y_(){if(mh)return Ru;mh=1;var e=X_(),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 Ru=n,Ru}var Du,gh;function Pp(){if(gh)return Du;gh=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 Du=e,Du}var qu,bh;function Z_(){if(bh)return qu;bh=1;var e=ji(),t=Pp(),r=ze(),n=vn(),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 qu=o,qu}var Lu,xh;function C0(){if(xh)return Lu;xh=1;var e=Z_();function t(r){return r==null?"":e(r)}return Lu=t,Lu}var Bu,wh;function I0(){if(wh)return Bu;wh=1;var e=ze(),t=wp(),r=Y_(),n=C0();function i(a,o){return e(a)?a:t(a,o)?[a]:r(n(a))}return Bu=i,Bu}var Fu,Oh;function no(){if(Oh)return Fu;Oh=1;var e=vn();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return Fu=t,Fu}var zu,_h;function jp(){if(_h)return zu;_h=1;var e=I0(),t=no();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 zu=r,zu}var Wu,Ah;function k0(){if(Ah)return Wu;Ah=1;var e=jp();function t(r,n,i){var a=r==null?void 0:e(r,n);return a===void 0?i:a}return Wu=t,Wu}var J_=k0();const Ge=le(J_);var Uu,Sh;function Q_(){if(Sh)return Uu;Sh=1;function e(t){return t==null}return Uu=e,Uu}var eA=Q_();const Y=le(eA);var Ku,Ph;function tA(){if(Ph)return Ku;Ph=1;var e=Mt(),t=ze(),r=Ct(),n="[object String]";function i(a){return typeof a=="string"||!t(a)&&r(a)&&e(a)==n}return Ku=i,Ku}var rA=tA();const hr=le(rA);var nA=Op();const X=le(nA);var iA=Gt();const yn=le(iA);var Hu={exports:{}},se={};/**
 * @license React
 * react-is.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var jh;function aA(){if(jh)return se;jh=1;var e=Symbol.for("react.transitional.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.consumer"),o=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),l=Symbol.for("react.lazy"),p=Symbol.for("react.view_transition"),h=Symbol.for("react.client.reference");function y(d){if(typeof d=="object"&&d!==null){var v=d.$$typeof;switch(v){case e:switch(d=d.type,d){case r:case i:case n:case s:case c:case p:return d;default:switch(d=d&&d.$$typeof,d){case o:case u:case l:case f:return d;case a:return d;default:return v}}case t:return v}}}return se.ContextConsumer=a,se.ContextProvider=o,se.Element=e,se.ForwardRef=u,se.Fragment=r,se.Lazy=l,se.Memo=f,se.Portal=t,se.Profiler=i,se.StrictMode=n,se.Suspense=s,se.SuspenseList=c,se.isContextConsumer=function(d){return y(d)===a},se.isContextProvider=function(d){return y(d)===o},se.isElement=function(d){return typeof d=="object"&&d!==null&&d.$$typeof===e},se.isForwardRef=function(d){return y(d)===u},se.isFragment=function(d){return y(d)===r},se.isLazy=function(d){return y(d)===l},se.isMemo=function(d){return y(d)===f},se.isPortal=function(d){return y(d)===t},se.isProfiler=function(d){return y(d)===i},se.isStrictMode=function(d){return y(d)===n},se.isSuspense=function(d){return y(d)===s},se.isSuspenseList=function(d){return y(d)===c},se.isValidElementType=function(d){return typeof d=="string"||typeof d=="function"||d===r||d===i||d===n||d===s||d===c||typeof d=="object"&&d!==null&&(d.$$typeof===l||d.$$typeof===f||d.$$typeof===o||d.$$typeof===a||d.$$typeof===u||d.$$typeof===h||d.getModuleId!==void 0)},se.typeOf=y,se}var Th;function oA(){return Th||(Th=1,Hu.exports=aA()),Hu.exports}var uA=oA(),Gu,Eh;function N0(){if(Eh)return Gu;Eh=1;var e=Mt(),t=Ct(),r="[object Number]";function n(i){return typeof i=="number"||t(i)&&e(i)==r}return Gu=n,Gu}var Vu,$h;function sA(){if($h)return Vu;$h=1;var e=N0();function t(r){return e(r)&&r!=+r}return Vu=t,Vu}var cA=sA();const mn=le(cA);var lA=N0();const fA=le(lA);var De=function(t){return t===0?0:t>0?1:-1},ur=function(t){return hr(t)&&t.indexOf("%")===t.length-1},F=function(t){return fA(t)&&!mn(t)},Se=function(t){return F(t)||hr(t)},pA=0,Vt=function(t){var r=++pA;return"".concat(t||"").concat(r)},qe=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(!F(t)&&!hr(t))return n;var a;if(ur(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return mn(a)&&(a=n),i&&a>r&&(a=r),a},Lt=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},dA=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},xe=function(t,r){return F(t)&&F(r)?function(n){return t+n*(r-t)}:function(){return r}};function Ji(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):Ge(n,t))===r})}var hA=function(t){if(!t||!t.length)return null;for(var r=t.length,n=0,i=0,a=0,o=0,u=1/0,s=-1/0,c=0,f=0,l=0;l<r;l++)c=t[l].cx||0,f=t[l].cy||0,n+=c,i+=f,a+=c*f,o+=c*c,u=Math.min(u,c),s=Math.max(s,c);var p=r*o!==n*n?(r*a-n*i)/(r*o-n*n):0;return{xmin:u,xmax:s,a:p,b:(i-p*n)/r}},vA=function(t,r){return F(t)&&F(r)?t-r:hr(t)&&hr(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function Ir(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 Xl(e){"@babel/helpers - typeof";return Xl=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},Xl(e)}var yA=["viewBox","children"],mA=["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"],Mh=["points","pathLength"],Xu={svg:yA,polygon:Mh,polyline:Mh},Tp=["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"],Qi=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(B.isValidElement(t)&&(n=t.props),!yn(n))return null;var i={};return Object.keys(n).forEach(function(a){Tp.includes(a)&&(i[a]=r||function(o){return n[a](n,o)})}),i},gA=function(t,r,n){return function(i){return t(r,n,i),null}},Kt=function(t,r,n){if(!yn(t)||Xl(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];Tp.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=gA(o,r,n))}),i},bA=["children"],xA=["children"];function Ch(e,t){if(e==null)return{};var r=wA(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 wA(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 Yl(e){"@babel/helpers - typeof";return Yl=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},Yl(e)}var Ih={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"},St=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},kh=null,Yu=null,Ep=function e(t){if(t===kh&&Array.isArray(Yu))return Yu;var r=[];return B.Children.forEach(t,function(n){Y(n)||(uA.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),Yu=r,kh=t,r};function Be(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return St(i)}):n=[St(t)],Ep(e).forEach(function(i){var a=Ge(i,"type.displayName")||Ge(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function Ke(e,t){var r=Be(e,t);return r&&r[0]}var Nh=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!F(n)||n<=0||!F(i)||i<=0)},OA=["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"],_A=function(t){return t&&t.type&&hr(t.type)&&OA.indexOf(t.type)>=0},R0=function(t){return t&&Yl(t)==="object"&&"clipDot"in t},AA=function(t,r,n,i){var a,o=(a=Xu==null?void 0:Xu[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!X(t)&&(i&&o.includes(r)||mA.includes(r))||n&&Tp.includes(r)},G=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(B.isValidElement(t)&&(i=t.props),!yn(i))return null;var a={};return Object.keys(i).forEach(function(o){var u;AA((u=i)===null||u===void 0?void 0:u[o],o,r,n)&&(a[o]=i[o])}),a},Zl=function e(t,r){if(t===r)return!0;var n=B.Children.count(t);if(n!==B.Children.count(r))return!1;if(n===0)return!0;if(n===1)return Rh(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(!Rh(a,o))return!1}return!0},Rh=function(t,r){if(Y(t)&&Y(r))return!0;if(!Y(t)&&!Y(r)){var n=t.props||{},i=n.children,a=Ch(n,bA),o=r.props||{},u=o.children,s=Ch(o,xA);return i&&u?Ir(a,s)&&Zl(i,u):!i&&!u?Ir(a,s):!1}return!1},Dh=function(t,r){var n=[],i={};return Ep(t).forEach(function(a,o){if(_A(a))n.push(a);else if(a){var u=St(a.type),s=r[u]||{},c=s.handler,f=s.once;if(c&&(!f||!i[u])){var l=c(a,u,o);n.push(l),i[u]=!0}}}),n},SA=function(t){var r=t&&t.type;return r&&Ih[r]?Ih[r]:null},PA=function(t,r){return Ep(r).indexOf(t)},jA=["children","width","height","viewBox","className","style","title","desc"];function Jl(){return Jl=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},Jl.apply(this,arguments)}function TA(e,t){if(e==null)return{};var r=EA(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 EA(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 Ql(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=TA(e,jA),f=i||{width:r,height:n,x:0,y:0},l=te("recharts-surface",a);return A.createElement("svg",Jl({},G(c,!0,"svg"),{className:l,width:r,height:n,style:o,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),A.createElement("title",null,u),A.createElement("desc",null,s),t)}var $A=["children","className"];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 MA(e,t){if(e==null)return{};var r=CA(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 CA(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 re=A.forwardRef(function(e,t){var r=e.children,n=e.className,i=MA(e,$A),a=te("recharts-layer",n);return A.createElement("g",ef({className:a},G(i,!0),{ref:t}),r)}),st=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]},Zu,qh;function IA(){if(qh)return Zu;qh=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 Zu=e,Zu}var Ju,Lh;function kA(){if(Lh)return Ju;Lh=1;var e=IA();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 Ju=t,Ju}var Qu,Bh;function D0(){if(Bh)return Qu;Bh=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 Qu=s,Qu}var es,Fh;function NA(){if(Fh)return es;Fh=1;function e(t){return t.split("")}return es=e,es}var ts,zh;function RA(){if(zh)return ts;zh=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+")",f="[^"+e+"]",l="(?:\\ud83c[\\udde6-\\uddff]){2}",p="[\\ud800-\\udbff][\\udc00-\\udfff]",h="\\u200d",y=c+"?",d="["+a+"]?",v="(?:"+h+"(?:"+[f,l,p].join("|")+")"+d+y+")*",x=d+y+v,b="(?:"+[f+u+"?",u,l,p,o].join("|")+")",g=RegExp(s+"(?="+s+")|"+b+x,"g");function O(m){return m.match(g)||[]}return ts=O,ts}var rs,Wh;function DA(){if(Wh)return rs;Wh=1;var e=NA(),t=D0(),r=RA();function n(i){return t(i)?r(i):e(i)}return rs=n,rs}var ns,Uh;function qA(){if(Uh)return ns;Uh=1;var e=kA(),t=D0(),r=DA(),n=C0();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 ns=i,ns}var is,Kh;function LA(){if(Kh)return is;Kh=1;var e=qA(),t=e("toUpperCase");return is=t,is}var BA=LA();const io=le(BA);function de(e){return function(){return e}}const q0=Math.cos,ea=Math.sin,lt=Math.sqrt,ta=Math.PI,ao=2*ta,tf=Math.PI,rf=2*tf,ir=1e-6,FA=rf-ir;function L0(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function zA(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return L0;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 WA{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?L0:zA(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,f=o-t,l=u-r,p=f*f+l*l;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(p>ir)if(!(Math.abs(l*s-c*f)>ir)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let h=n-o,y=i-u,d=s*s+c*c,v=h*h+y*y,x=Math.sqrt(d),b=Math.sqrt(p),g=a*Math.tan((tf-Math.acos((d+p-v)/(2*x*b)))/2),O=g/b,m=g/x;Math.abs(O-1)>ir&&this._append`L${t+O*f},${r+O*l}`,this._append`A${a},${a},0,0,${+(l*h>f*y)},${this._x1=t+m*s},${this._y1=r+m*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,f=r+s,l=1^o,p=o?i-a:a-i;this._x1===null?this._append`M${c},${f}`:(Math.abs(this._x1-c)>ir||Math.abs(this._y1-f)>ir)&&this._append`L${c},${f}`,n&&(p<0&&(p=p%rf+rf),p>FA?this._append`A${n},${n},0,1,${l},${t-u},${r-s}A${n},${n},0,1,${l},${this._x1=c},${this._y1=f}`:p>ir&&this._append`A${n},${n},0,${+(p>=tf)},${l},${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 $p(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 WA(t)}function Mp(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function B0(e){this._context=e}B0.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 oo(e){return new B0(e)}function F0(e){return e[0]}function z0(e){return e[1]}function W0(e,t){var r=de(!0),n=null,i=oo,a=null,o=$p(u);e=typeof e=="function"?e:e===void 0?F0:de(e),t=typeof t=="function"?t:t===void 0?z0:de(t);function u(s){var c,f=(s=Mp(s)).length,l,p=!1,h;for(n==null&&(a=i(h=o())),c=0;c<=f;++c)!(c<f&&r(l=s[c],c,s))===p&&((p=!p)?a.lineStart():a.lineEnd()),p&&a.point(+e(l,c,s),+t(l,c,s));if(h)return a=null,h+""||null}return u.x=function(s){return arguments.length?(e=typeof s=="function"?s:de(+s),u):e},u.y=function(s){return arguments.length?(t=typeof s=="function"?s:de(+s),u):t},u.defined=function(s){return arguments.length?(r=typeof s=="function"?s:de(!!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 qi(e,t,r){var n=null,i=de(!0),a=null,o=oo,u=null,s=$p(c);e=typeof e=="function"?e:e===void 0?F0:de(+e),t=typeof t=="function"?t:de(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?z0:de(+r);function c(l){var p,h,y,d=(l=Mp(l)).length,v,x=!1,b,g=new Array(d),O=new Array(d);for(a==null&&(u=o(b=s())),p=0;p<=d;++p){if(!(p<d&&i(v=l[p],p,l))===x)if(x=!x)h=p,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),y=p-1;y>=h;--y)u.point(g[y],O[y]);u.lineEnd(),u.areaEnd()}x&&(g[p]=+e(v,p,l),O[p]=+t(v,p,l),u.point(n?+n(v,p,l):g[p],r?+r(v,p,l):O[p]))}if(b)return u=null,b+""||null}function f(){return W0().defined(i).curve(o).context(a)}return c.x=function(l){return arguments.length?(e=typeof l=="function"?l:de(+l),n=null,c):e},c.x0=function(l){return arguments.length?(e=typeof l=="function"?l:de(+l),c):e},c.x1=function(l){return arguments.length?(n=l==null?null:typeof l=="function"?l:de(+l),c):n},c.y=function(l){return arguments.length?(t=typeof l=="function"?l:de(+l),r=null,c):t},c.y0=function(l){return arguments.length?(t=typeof l=="function"?l:de(+l),c):t},c.y1=function(l){return arguments.length?(r=l==null?null:typeof l=="function"?l:de(+l),c):r},c.lineX0=c.lineY0=function(){return f().x(e).y(t)},c.lineY1=function(){return f().x(e).y(r)},c.lineX1=function(){return f().x(n).y(t)},c.defined=function(l){return arguments.length?(i=typeof l=="function"?l:de(!!l),c):i},c.curve=function(l){return arguments.length?(o=l,a!=null&&(u=o(a)),c):o},c.context=function(l){return arguments.length?(l==null?a=u=null:u=o(a=l),c):a},c}class U0{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 UA(e){return new U0(e,!0)}function KA(e){return new U0(e,!1)}const Cp={draw(e,t){const r=lt(t/ta);e.moveTo(r,0),e.arc(0,0,r,0,ao)}},HA={draw(e,t){const r=lt(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()}},K0=lt(1/3),GA=K0*2,VA={draw(e,t){const r=lt(t/GA),n=r*K0;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},XA={draw(e,t){const r=lt(t),n=-r/2;e.rect(n,n,r,r)}},YA=.8908130915292852,H0=ea(ta/10)/ea(7*ta/10),ZA=ea(ao/10)*H0,JA=-q0(ao/10)*H0,QA={draw(e,t){const r=lt(t*YA),n=ZA*r,i=JA*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=ao*a/5,u=q0(o),s=ea(o);e.lineTo(s*r,-u*r),e.lineTo(u*n-s*i,s*n+u*i)}e.closePath()}},as=lt(3),e1={draw(e,t){const r=-lt(t/(as*3));e.moveTo(0,r*2),e.lineTo(-as*r,-r),e.lineTo(as*r,-r),e.closePath()}},Ve=-.5,Xe=lt(3)/2,nf=1/lt(12),t1=(nf/2+1)*3,r1={draw(e,t){const r=lt(t/t1),n=r/2,i=r*nf,a=n,o=r*nf+r,u=-a,s=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(u,s),e.lineTo(Ve*n-Xe*i,Xe*n+Ve*i),e.lineTo(Ve*a-Xe*o,Xe*a+Ve*o),e.lineTo(Ve*u-Xe*s,Xe*u+Ve*s),e.lineTo(Ve*n+Xe*i,Ve*i-Xe*n),e.lineTo(Ve*a+Xe*o,Ve*o-Xe*a),e.lineTo(Ve*u+Xe*s,Ve*s-Xe*u),e.closePath()}};function n1(e,t){let r=null,n=$p(i);e=typeof e=="function"?e:de(e||Cp),t=typeof t=="function"?t:de(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:de(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:de(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function ra(){}function na(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 G0(e){this._context=e}G0.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:na(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:na(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function i1(e){return new G0(e)}function V0(e){this._context=e}V0.prototype={areaStart:ra,areaEnd:ra,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:na(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function a1(e){return new V0(e)}function X0(e){this._context=e}X0.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:na(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function o1(e){return new X0(e)}function Y0(e){this._context=e}Y0.prototype={areaStart:ra,areaEnd:ra,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 u1(e){return new Y0(e)}function Hh(e){return e<0?-1:1}function Gh(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(Hh(a)+Hh(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(u))||0}function Vh(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function os(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 ia(e){this._context=e}ia.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:os(this,this._t0,Vh(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,os(this,Vh(this,r=Gh(this,e,t)),r);break;default:os(this,this._t0,r=Gh(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function Z0(e){this._context=new J0(e)}(Z0.prototype=Object.create(ia.prototype)).point=function(e,t){ia.prototype.point.call(this,t,e)};function J0(e){this._context=e}J0.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 s1(e){return new ia(e)}function c1(e){return new Z0(e)}function Q0(e){this._context=e}Q0.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=Xh(e),i=Xh(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 Xh(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 l1(e){return new Q0(e)}function uo(e,t){this._context=e,this._t=t}uo.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 f1(e){return new uo(e,.5)}function p1(e){return new uo(e,0)}function d1(e){return new uo(e,1)}function Dr(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 af(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function h1(e,t){return e[t]}function v1(e){const t=[];return t.key=e,t}function y1(){var e=de([]),t=af,r=Dr,n=h1;function i(a){var o=Array.from(e.apply(this,arguments),v1),u,s=o.length,c=-1,f;for(const l of a)for(u=0,++c;u<s;++u)(o[u][c]=[0,+n(l,o[u].key,c,a)]).data=l;for(u=0,f=Mp(t(o));u<s;++u)o[f[u]].index=u;return r(o,f),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:de(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:de(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?af:typeof a=="function"?a:de(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??Dr,i):r},i}function m1(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}Dr(e,t)}}function g1(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}Dr(e,t)}}function b1(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 f=e[t[u]],l=f[n][1]||0,p=f[n-1][1]||0,h=(l-p)/2,y=0;y<u;++y){var d=e[t[y]],v=d[n][1]||0,x=d[n-1][1]||0;h+=v-x}s+=l,c+=h*l}i[n-1][1]+=i[n-1][0]=r,s&&(r-=c/s)}i[n-1][1]+=i[n-1][0]=r,Dr(e,t)}}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)}var x1=["type","size","sizeType"];function of(){return of=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},of.apply(this,arguments)}function Yh(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 Zh(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Yh(Object(r),!0).forEach(function(n){w1(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function w1(e,t,r){return t=O1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function O1(e){var t=_1(e,"string");return Kn(t)=="symbol"?t:t+""}function _1(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)}function A1(e,t){if(e==null)return{};var r=S1(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 S1(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 ex={symbolCircle:Cp,symbolCross:HA,symbolDiamond:VA,symbolSquare:XA,symbolStar:QA,symbolTriangle:e1,symbolWye:r1},P1=Math.PI/180,j1=function(t){var r="symbol".concat(io(t));return ex[r]||Cp},T1=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*P1;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}},E1=function(t,r){ex["symbol".concat(io(t))]=r},so=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=A1(t,x1),c=Zh(Zh({},s),{},{type:n,size:a,sizeType:u}),f=function(){var v=j1(n),x=n1().type(v).size(T1(a,u,n));return x()},l=c.className,p=c.cx,h=c.cy,y=G(c,!0);return p===+p&&h===+h&&a===+a?A.createElement("path",of({},y,{className:te("recharts-symbols",l),transform:"translate(".concat(p,", ").concat(h,")"),d:f()})):null};so.registerSymbol=E1;function qr(e){"@babel/helpers - typeof";return qr=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},qr(e)}function uf(){return uf=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},uf.apply(this,arguments)}function Jh(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 $1(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Jh(Object(r),!0).forEach(function(n){Hn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Jh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function M1(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function C1(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,rx(n.key),n)}}function I1(e,t,r){return t&&C1(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function k1(e,t,r){return t=aa(t),N1(e,tx()?Reflect.construct(t,r||[],aa(e).constructor):t.apply(e,r))}function N1(e,t){if(t&&(qr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return R1(e)}function R1(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(tx=function(){return!!e})()}function aa(e){return aa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},aa(e)}function D1(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&&sf(e,t)}function sf(e,t){return sf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},sf(e,t)}function Hn(e,t,r){return t=rx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rx(e){var t=q1(e,"string");return qr(t)=="symbol"?t:t+""}function q1(e,t){if(qr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(qr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ye=32,Ip=function(e){function t(){return M1(this,t),k1(this,t,arguments)}return D1(t,e),I1(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,a=Ye/2,o=Ye/6,u=Ye/3,s=n.inactive?i:n.color;if(n.type==="plainline")return A.createElement("line",{strokeWidth:4,fill:"none",stroke:s,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:a,x2:Ye,y2:a,className:"recharts-legend-icon"});if(n.type==="line")return A.createElement("path",{strokeWidth:4,fill:"none",stroke:s,d:"M0,".concat(a,"h").concat(u,`
            A`).concat(o,",").concat(o,",0,1,1,").concat(2*u,",").concat(a,`
            H`).concat(Ye,"M").concat(2*u,",").concat(a,`
            A`).concat(o,",").concat(o,",0,1,1,").concat(u,",").concat(a),className:"recharts-legend-icon"});if(n.type==="rect")return A.createElement("path",{stroke:"none",fill:s,d:"M0,".concat(Ye/8,"h").concat(Ye,"v").concat(Ye*3/4,"h").concat(-Ye,"z"),className:"recharts-legend-icon"});if(A.isValidElement(n.legendIcon)){var c=$1({},n);return delete c.legendIcon,A.cloneElement(n.legendIcon,c)}return A.createElement(so,{fill:s,cx:a,cy:a,size:Ye,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,f={x:0,y:0,width:Ye,height:Ye},l={display:u==="horizontal"?"inline-block":"block",marginRight:10},p={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(h,y){var d=h.formatter||s,v=te(Hn(Hn({"recharts-legend-item":!0},"legend-item-".concat(y),!0),"inactive",h.inactive));if(h.type==="none")return null;var x=X(h.value)?null:h.value;st(!X(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 A.createElement("li",uf({className:v,style:l,key:"legend-item-".concat(y)},Kt(n.props,h,y)),A.createElement(Ql,{width:o,height:o,viewBox:f,style:p},n.renderIcon(h)),A.createElement("span",{className:"recharts-legend-item-text",style:{color:b}},d?d(x,h,y):x))})}},{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 A.createElement("ul",{className:"recharts-default-legend",style:u},this.renderItems())}}])}(B.PureComponent);Hn(Ip,"displayName","Legend");Hn(Ip,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var us,Qh;function L1(){if(Qh)return us;Qh=1;var e=to();function t(){this.__data__=new e,this.size=0}return us=t,us}var ss,ev;function B1(){if(ev)return ss;ev=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return ss=e,ss}var cs,tv;function F1(){if(tv)return cs;tv=1;function e(t){return this.__data__.get(t)}return cs=e,cs}var ls,rv;function z1(){if(rv)return ls;rv=1;function e(t){return this.__data__.has(t)}return ls=e,ls}var fs,nv;function W1(){if(nv)return fs;nv=1;var e=to(),t=Ap(),r=Sp(),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 fs=i,fs}var ps,iv;function nx(){if(iv)return ps;iv=1;var e=to(),t=L1(),r=B1(),n=F1(),i=z1(),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,ps=o,ps}var ds,av;function U1(){if(av)return ds;av=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return ds=t,ds}var hs,ov;function K1(){if(ov)return hs;ov=1;function e(t){return this.__data__.has(t)}return hs=e,hs}var vs,uv;function ix(){if(uv)return vs;uv=1;var e=Sp(),t=U1(),r=K1();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,vs=n,vs}var ys,sv;function ax(){if(sv)return ys;sv=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 ys=e,ys}var ms,cv;function ox(){if(cv)return ms;cv=1;function e(t,r){return t.has(r)}return ms=e,ms}var gs,lv;function ux(){if(lv)return gs;lv=1;var e=ix(),t=ax(),r=ox(),n=1,i=2;function a(o,u,s,c,f,l){var p=s&n,h=o.length,y=u.length;if(h!=y&&!(p&&y>h))return!1;var d=l.get(o),v=l.get(u);if(d&&v)return d==u&&v==o;var x=-1,b=!0,g=s&i?new e:void 0;for(l.set(o,u),l.set(u,o);++x<h;){var O=o[x],m=u[x];if(c)var w=p?c(m,O,x,u,o,l):c(O,m,x,o,u,l);if(w!==void 0){if(w)continue;b=!1;break}if(g){if(!t(u,function(_,S){if(!r(g,S)&&(O===_||f(O,_,s,c,l)))return g.push(S)})){b=!1;break}}else if(!(O===m||f(O,m,s,c,l))){b=!1;break}}return l.delete(o),l.delete(u),b}return gs=a,gs}var bs,fv;function H1(){if(fv)return bs;fv=1;var e=gt(),t=e.Uint8Array;return bs=t,bs}var xs,pv;function G1(){if(pv)return xs;pv=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i,a){n[++r]=[a,i]}),n}return xs=e,xs}var ws,dv;function kp(){if(dv)return ws;dv=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i){n[++r]=i}),n}return ws=e,ws}var Os,hv;function V1(){if(hv)return Os;hv=1;var e=ji(),t=H1(),r=_p(),n=ux(),i=G1(),a=kp(),o=1,u=2,s="[object Boolean]",c="[object Date]",f="[object Error]",l="[object Map]",p="[object Number]",h="[object RegExp]",y="[object Set]",d="[object String]",v="[object Symbol]",x="[object ArrayBuffer]",b="[object DataView]",g=e?e.prototype:void 0,O=g?g.valueOf:void 0;function m(w,_,S,j,$,P,E){switch(S){case b:if(w.byteLength!=_.byteLength||w.byteOffset!=_.byteOffset)return!1;w=w.buffer,_=_.buffer;case x:return!(w.byteLength!=_.byteLength||!P(new t(w),new t(_)));case s:case c:case p:return r(+w,+_);case f:return w.name==_.name&&w.message==_.message;case h:case d:return w==_+"";case l:var M=i;case y:var C=j&o;if(M||(M=a),w.size!=_.size&&!C)return!1;var I=E.get(w);if(I)return I==_;j|=u,E.set(w,_);var k=n(M(w),M(_),j,$,P,E);return E.delete(w),k;case v:if(O)return O.call(w)==O.call(_)}return!1}return Os=m,Os}var _s,vv;function sx(){if(vv)return _s;vv=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 _s=e,_s}var As,yv;function X1(){if(yv)return As;yv=1;var e=sx(),t=ze();function r(n,i,a){var o=i(n);return t(n)?o:e(o,a(n))}return As=r,As}var Ss,mv;function Y1(){if(mv)return Ss;mv=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 Ss=e,Ss}var Ps,gv;function Z1(){if(gv)return Ps;gv=1;function e(){return[]}return Ps=e,Ps}var js,bv;function J1(){if(bv)return js;bv=1;var e=Y1(),t=Z1(),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 js=a,js}var Ts,xv;function Q1(){if(xv)return Ts;xv=1;function e(t,r){for(var n=-1,i=Array(t);++n<t;)i[n]=r(n);return i}return Ts=e,Ts}var Es,wv;function eS(){if(wv)return Es;wv=1;var e=Mt(),t=Ct(),r="[object Arguments]";function n(i){return t(i)&&e(i)==r}return Es=n,Es}var $s,Ov;function Np(){if(Ov)return $s;Ov=1;var e=eS(),t=Ct(),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 $s=a,$s}var In={exports:{}},Ms,_v;function tS(){if(_v)return Ms;_v=1;function e(){return!1}return Ms=e,Ms}In.exports;var Av;function cx(){return Av||(Av=1,function(e,t){var r=gt(),n=tS(),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}(In,In.exports)),In.exports}var Cs,Sv;function Rp(){if(Sv)return Cs;Sv=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 Cs=r,Cs}var Is,Pv;function Dp(){if(Pv)return Is;Pv=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return Is=t,Is}var ks,jv;function rS(){if(jv)return ks;jv=1;var e=Mt(),t=Dp(),r=Ct(),n="[object Arguments]",i="[object Array]",a="[object Boolean]",o="[object Date]",u="[object Error]",s="[object Function]",c="[object Map]",f="[object Number]",l="[object Object]",p="[object RegExp]",h="[object Set]",y="[object String]",d="[object WeakMap]",v="[object ArrayBuffer]",x="[object DataView]",b="[object Float32Array]",g="[object Float64Array]",O="[object Int8Array]",m="[object Int16Array]",w="[object Int32Array]",_="[object Uint8Array]",S="[object Uint8ClampedArray]",j="[object Uint16Array]",$="[object Uint32Array]",P={};P[b]=P[g]=P[O]=P[m]=P[w]=P[_]=P[S]=P[j]=P[$]=!0,P[n]=P[i]=P[v]=P[a]=P[x]=P[o]=P[u]=P[s]=P[c]=P[f]=P[l]=P[p]=P[h]=P[y]=P[d]=!1;function E(M){return r(M)&&t(M.length)&&!!P[e(M)]}return ks=E,ks}var Ns,Tv;function lx(){if(Tv)return Ns;Tv=1;function e(t){return function(r){return t(r)}}return Ns=e,Ns}var kn={exports:{}};kn.exports;var Ev;function nS(){return Ev||(Ev=1,function(e,t){var r=E0(),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}(kn,kn.exports)),kn.exports}var Rs,$v;function fx(){if($v)return Rs;$v=1;var e=rS(),t=lx(),r=nS(),n=r&&r.isTypedArray,i=n?t(n):e;return Rs=i,Rs}var Ds,Mv;function iS(){if(Mv)return Ds;Mv=1;var e=Q1(),t=Np(),r=ze(),n=cx(),i=Rp(),a=fx(),o=Object.prototype,u=o.hasOwnProperty;function s(c,f){var l=r(c),p=!l&&t(c),h=!l&&!p&&n(c),y=!l&&!p&&!h&&a(c),d=l||p||h||y,v=d?e(c.length,String):[],x=v.length;for(var b in c)(f||u.call(c,b))&&!(d&&(b=="length"||h&&(b=="offset"||b=="parent")||y&&(b=="buffer"||b=="byteLength"||b=="byteOffset")||i(b,x)))&&v.push(b);return v}return Ds=s,Ds}var qs,Cv;function aS(){if(Cv)return qs;Cv=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||e;return r===i}return qs=t,qs}var Ls,Iv;function px(){if(Iv)return Ls;Iv=1;function e(t,r){return function(n){return t(r(n))}}return Ls=e,Ls}var Bs,kv;function oS(){if(kv)return Bs;kv=1;var e=px(),t=e(Object.keys,Object);return Bs=t,Bs}var Fs,Nv;function uS(){if(Nv)return Fs;Nv=1;var e=aS(),t=oS(),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 Fs=i,Fs}var zs,Rv;function Ti(){if(Rv)return zs;Rv=1;var e=Op(),t=Dp();function r(n){return n!=null&&t(n.length)&&!e(n)}return zs=r,zs}var Ws,Dv;function co(){if(Dv)return Ws;Dv=1;var e=iS(),t=uS(),r=Ti();function n(i){return r(i)?e(i):t(i)}return Ws=n,Ws}var Us,qv;function sS(){if(qv)return Us;qv=1;var e=X1(),t=J1(),r=co();function n(i){return e(i,r,t)}return Us=n,Us}var Ks,Lv;function cS(){if(Lv)return Ks;Lv=1;var e=sS(),t=1,r=Object.prototype,n=r.hasOwnProperty;function i(a,o,u,s,c,f){var l=u&t,p=e(a),h=p.length,y=e(o),d=y.length;if(h!=d&&!l)return!1;for(var v=h;v--;){var x=p[v];if(!(l?x in o:n.call(o,x)))return!1}var b=f.get(a),g=f.get(o);if(b&&g)return b==o&&g==a;var O=!0;f.set(a,o),f.set(o,a);for(var m=l;++v<h;){x=p[v];var w=a[x],_=o[x];if(s)var S=l?s(_,w,x,o,a,f):s(w,_,x,a,o,f);if(!(S===void 0?w===_||c(w,_,u,s,f):S)){O=!1;break}m||(m=x=="constructor")}if(O&&!m){var j=a.constructor,$=o.constructor;j!=$&&"constructor"in a&&"constructor"in o&&!(typeof j=="function"&&j instanceof j&&typeof $=="function"&&$ instanceof $)&&(O=!1)}return f.delete(a),f.delete(o),O}return Ks=i,Ks}var Hs,Bv;function lS(){if(Bv)return Hs;Bv=1;var e=br(),t=gt(),r=e(t,"DataView");return Hs=r,Hs}var Gs,Fv;function fS(){if(Fv)return Gs;Fv=1;var e=br(),t=gt(),r=e(t,"Promise");return Gs=r,Gs}var Vs,zv;function dx(){if(zv)return Vs;zv=1;var e=br(),t=gt(),r=e(t,"Set");return Vs=r,Vs}var Xs,Wv;function pS(){if(Wv)return Xs;Wv=1;var e=br(),t=gt(),r=e(t,"WeakMap");return Xs=r,Xs}var Ys,Uv;function dS(){if(Uv)return Ys;Uv=1;var e=lS(),t=Ap(),r=fS(),n=dx(),i=pS(),a=Mt(),o=$0(),u="[object Map]",s="[object Object]",c="[object Promise]",f="[object Set]",l="[object WeakMap]",p="[object DataView]",h=o(e),y=o(t),d=o(r),v=o(n),x=o(i),b=a;return(e&&b(new e(new ArrayBuffer(1)))!=p||t&&b(new t)!=u||r&&b(r.resolve())!=c||n&&b(new n)!=f||i&&b(new i)!=l)&&(b=function(g){var O=a(g),m=O==s?g.constructor:void 0,w=m?o(m):"";if(w)switch(w){case h:return p;case y:return u;case d:return c;case v:return f;case x:return l}return O}),Ys=b,Ys}var Zs,Kv;function hS(){if(Kv)return Zs;Kv=1;var e=nx(),t=ux(),r=V1(),n=cS(),i=dS(),a=ze(),o=cx(),u=fx(),s=1,c="[object Arguments]",f="[object Array]",l="[object Object]",p=Object.prototype,h=p.hasOwnProperty;function y(d,v,x,b,g,O){var m=a(d),w=a(v),_=m?f:i(d),S=w?f:i(v);_=_==c?l:_,S=S==c?l:S;var j=_==l,$=S==l,P=_==S;if(P&&o(d)){if(!o(v))return!1;m=!0,j=!1}if(P&&!j)return O||(O=new e),m||u(d)?t(d,v,x,b,g,O):r(d,v,_,x,b,g,O);if(!(x&s)){var E=j&&h.call(d,"__wrapped__"),M=$&&h.call(v,"__wrapped__");if(E||M){var C=E?d.value():d,I=M?v.value():v;return O||(O=new e),g(C,I,x,b,O)}}return P?(O||(O=new e),n(d,v,x,b,g,O)):!1}return Zs=y,Zs}var Js,Hv;function qp(){if(Hv)return Js;Hv=1;var e=hS(),t=Ct();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 Js=r,Js}var Qs,Gv;function vS(){if(Gv)return Qs;Gv=1;var e=nx(),t=qp(),r=1,n=2;function i(a,o,u,s){var c=u.length,f=c,l=!s;if(a==null)return!f;for(a=Object(a);c--;){var p=u[c];if(l&&p[2]?p[1]!==a[p[0]]:!(p[0]in a))return!1}for(;++c<f;){p=u[c];var h=p[0],y=a[h],d=p[1];if(l&&p[2]){if(y===void 0&&!(h in a))return!1}else{var v=new e;if(s)var x=s(y,d,h,a,o,v);if(!(x===void 0?t(d,y,r|n,s,v):x))return!1}}return!0}return Qs=i,Qs}var ec,Vv;function hx(){if(Vv)return ec;Vv=1;var e=Gt();function t(r){return r===r&&!e(r)}return ec=t,ec}var tc,Xv;function yS(){if(Xv)return tc;Xv=1;var e=hx(),t=co();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 tc=r,tc}var rc,Yv;function vx(){if(Yv)return rc;Yv=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return rc=e,rc}var nc,Zv;function mS(){if(Zv)return nc;Zv=1;var e=vS(),t=yS(),r=vx();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 nc=n,nc}var ic,Jv;function gS(){if(Jv)return ic;Jv=1;function e(t,r){return t!=null&&r in Object(t)}return ic=e,ic}var ac,Qv;function bS(){if(Qv)return ac;Qv=1;var e=I0(),t=Np(),r=ze(),n=Rp(),i=Dp(),a=no();function o(u,s,c){s=e(s,u);for(var f=-1,l=s.length,p=!1;++f<l;){var h=a(s[f]);if(!(p=u!=null&&c(u,h)))break;u=u[h]}return p||++f!=l?p:(l=u==null?0:u.length,!!l&&i(l)&&n(h,l)&&(r(u)||t(u)))}return ac=o,ac}var oc,ey;function xS(){if(ey)return oc;ey=1;var e=gS(),t=bS();function r(n,i){return n!=null&&t(n,i,e)}return oc=r,oc}var uc,ty;function wS(){if(ty)return uc;ty=1;var e=qp(),t=k0(),r=xS(),n=wp(),i=hx(),a=vx(),o=no(),u=1,s=2;function c(f,l){return n(f)&&i(l)?a(o(f),l):function(p){var h=t(p,f);return h===void 0&&h===l?r(p,f):e(l,h,u|s)}}return uc=c,uc}var sc,ry;function gn(){if(ry)return sc;ry=1;function e(t){return t}return sc=e,sc}var cc,ny;function OS(){if(ny)return cc;ny=1;function e(t){return function(r){return r==null?void 0:r[t]}}return cc=e,cc}var lc,iy;function _S(){if(iy)return lc;iy=1;var e=jp();function t(r){return function(n){return e(n,r)}}return lc=t,lc}var fc,ay;function AS(){if(ay)return fc;ay=1;var e=OS(),t=_S(),r=wp(),n=no();function i(a){return r(a)?e(n(a)):t(a)}return fc=i,fc}var pc,oy;function bt(){if(oy)return pc;oy=1;var e=mS(),t=wS(),r=gn(),n=ze(),i=AS();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 pc=a,pc}var dc,uy;function yx(){if(uy)return dc;uy=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 dc=e,dc}var hc,sy;function SS(){if(sy)return hc;sy=1;function e(t){return t!==t}return hc=e,hc}var vc,cy;function PS(){if(cy)return vc;cy=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 vc=e,vc}var yc,ly;function jS(){if(ly)return yc;ly=1;var e=yx(),t=SS(),r=PS();function n(i,a,o){return a===a?r(i,a,o):e(i,t,o)}return yc=n,yc}var mc,fy;function TS(){if(fy)return mc;fy=1;var e=jS();function t(r,n){var i=r==null?0:r.length;return!!i&&e(r,n,0)>-1}return mc=t,mc}var gc,py;function ES(){if(py)return gc;py=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 gc=e,gc}var bc,dy;function $S(){if(dy)return bc;dy=1;function e(){}return bc=e,bc}var xc,hy;function MS(){if(hy)return xc;hy=1;var e=dx(),t=$S(),r=kp(),n=1/0,i=e&&1/r(new e([,-0]))[1]==n?function(a){return new e(a)}:t;return xc=i,xc}var wc,vy;function CS(){if(vy)return wc;vy=1;var e=ix(),t=TS(),r=ES(),n=ox(),i=MS(),a=kp(),o=200;function u(s,c,f){var l=-1,p=t,h=s.length,y=!0,d=[],v=d;if(f)y=!1,p=r;else if(h>=o){var x=c?null:i(s);if(x)return a(x);y=!1,p=n,v=new e}else v=c?[]:d;e:for(;++l<h;){var b=s[l],g=c?c(b):b;if(b=f||b!==0?b:0,y&&g===g){for(var O=v.length;O--;)if(v[O]===g)continue e;c&&v.push(g),d.push(b)}else p(v,g,f)||(v!==d&&v.push(g),d.push(b))}return d}return wc=u,wc}var Oc,yy;function IS(){if(yy)return Oc;yy=1;var e=bt(),t=CS();function r(n,i){return n&&n.length?t(n,e(i,2)):[]}return Oc=r,Oc}var kS=IS();const my=le(kS);function mx(e,t,r){return t===!0?my(e,r):X(t)?my(e,t):e}function Lr(e){"@babel/helpers - typeof";return Lr=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},Lr(e)}var NS=["ref"];function gy(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 xt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gy(Object(r),!0).forEach(function(n){lo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function RS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function by(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,bx(n.key),n)}}function DS(e,t,r){return t&&by(e.prototype,t),r&&by(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function qS(e,t,r){return t=oa(t),LS(e,gx()?Reflect.construct(t,r||[],oa(e).constructor):t.apply(e,r))}function LS(e,t){if(t&&(Lr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return BS(e)}function BS(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(gx=function(){return!!e})()}function oa(e){return oa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},oa(e)}function FS(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&&cf(e,t)}function cf(e,t){return cf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},cf(e,t)}function lo(e,t,r){return t=bx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bx(e){var t=zS(e,"string");return Lr(t)=="symbol"?t:t+""}function zS(e,t){if(Lr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Lr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function WS(e,t){if(e==null)return{};var r=US(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 US(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 KS(e){return e.value}function HS(e,t){if(A.isValidElement(e))return A.cloneElement(e,t);if(typeof e=="function")return A.createElement(e,t);t.ref;var r=WS(t,NS);return A.createElement(Ip,r)}var xy=1,kr=function(e){function t(){var r;RS(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=qS(this,t,[].concat(i)),lo(r,"lastBoundingBox",{width:-1,height:-1}),r}return FS(t,e),DS(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)>xy||Math.abs(i.height-this.lastBoundingBox.height)>xy)&&(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?xt({},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,f=i.chartHeight,l,p;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();l={left:((c||0)-h.width)/2}}else l=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 y=this.getBBoxSnapshot();p={top:((f||0)-y.height)/2}}else p=u==="bottom"?{bottom:s&&s.bottom||0}:{top:s&&s.top||0};return xt(xt({},l),p)}},{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,f=i.payload,l=xt(xt({position:"absolute",width:o||"auto",height:u||"auto"},this.getDefaultPosition(s)),s);return A.createElement("div",{className:"recharts-legend-wrapper",style:l,ref:function(h){n.wrapperNode=h}},HS(a,xt(xt({},this.props),{},{payload:mx(f,c,KS)})))}}],[{key:"getWithHeight",value:function(n,i){var a=xt(xt({},this.defaultProps),n.props),o=a.layout;return o==="vertical"&&F(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||i}:null}}])}(B.PureComponent);lo(kr,"displayName","Legend");lo(kr,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var _c,wy;function GS(){if(wy)return _c;wy=1;var e=ji(),t=Np(),r=ze(),n=e?e.isConcatSpreadable:void 0;function i(a){return r(a)||t(a)||!!(n&&a&&a[n])}return _c=i,_c}var Ac,Oy;function xx(){if(Oy)return Ac;Oy=1;var e=sx(),t=GS();function r(n,i,a,o,u){var s=-1,c=n.length;for(a||(a=t),u||(u=[]);++s<c;){var f=n[s];i>0&&a(f)?i>1?r(f,i-1,a,o,u):e(u,f):o||(u[u.length]=f)}return u}return Ac=r,Ac}var Sc,_y;function VS(){if(_y)return Sc;_y=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 Sc=e,Sc}var Pc,Ay;function XS(){if(Ay)return Pc;Ay=1;var e=VS(),t=e();return Pc=t,Pc}var jc,Sy;function wx(){if(Sy)return jc;Sy=1;var e=XS(),t=co();function r(n,i){return n&&e(n,i,t)}return jc=r,jc}var Tc,Py;function YS(){if(Py)return Tc;Py=1;var e=Ti();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 Tc=t,Tc}var Ec,jy;function Lp(){if(jy)return Ec;jy=1;var e=wx(),t=YS(),r=t(e);return Ec=r,Ec}var $c,Ty;function Ox(){if(Ty)return $c;Ty=1;var e=Lp(),t=Ti();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 $c=r,$c}var Mc,Ey;function ZS(){if(Ey)return Mc;Ey=1;function e(t,r){var n=t.length;for(t.sort(r);n--;)t[n]=t[n].value;return t}return Mc=e,Mc}var Cc,$y;function JS(){if($y)return Cc;$y=1;var e=vn();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,f=n===n,l=e(n);if(!c&&!l&&!u&&r>n||u&&s&&f&&!c&&!l||a&&s&&f||!i&&f||!o)return 1;if(!a&&!u&&!l&&r<n||l&&i&&o&&!a&&!u||c&&i&&o||!s&&o||!f)return-1}return 0}return Cc=t,Cc}var Ic,My;function QS(){if(My)return Ic;My=1;var e=JS();function t(r,n,i){for(var a=-1,o=r.criteria,u=n.criteria,s=o.length,c=i.length;++a<s;){var f=e(o[a],u[a]);if(f){if(a>=c)return f;var l=i[a];return f*(l=="desc"?-1:1)}}return r.index-n.index}return Ic=t,Ic}var kc,Cy;function eP(){if(Cy)return kc;Cy=1;var e=Pp(),t=jp(),r=bt(),n=Ox(),i=ZS(),a=lx(),o=QS(),u=gn(),s=ze();function c(f,l,p){l.length?l=e(l,function(d){return s(d)?function(v){return t(v,d.length===1?d[0]:d)}:d}):l=[u];var h=-1;l=e(l,a(r));var y=n(f,function(d,v,x){var b=e(l,function(g){return g(d)});return{criteria:b,index:++h,value:d}});return i(y,function(d,v){return o(d,v,p)})}return kc=c,kc}var Nc,Iy;function tP(){if(Iy)return Nc;Iy=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 Nc=e,Nc}var Rc,ky;function rP(){if(ky)return Rc;ky=1;var e=tP(),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 f=Array(i+1);++u<i;)f[u]=o[u];return f[i]=a(c),e(n,this,f)}}return Rc=r,Rc}var Dc,Ny;function nP(){if(Ny)return Dc;Ny=1;function e(t){return function(){return t}}return Dc=e,Dc}var qc,Ry;function _x(){if(Ry)return qc;Ry=1;var e=br(),t=function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}}();return qc=t,qc}var Lc,Dy;function iP(){if(Dy)return Lc;Dy=1;var e=nP(),t=_x(),r=gn(),n=t?function(i,a){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:r;return Lc=n,Lc}var Bc,qy;function aP(){if(qy)return Bc;qy=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 Bc=n,Bc}var Fc,Ly;function oP(){if(Ly)return Fc;Ly=1;var e=iP(),t=aP(),r=t(e);return Fc=r,Fc}var zc,By;function uP(){if(By)return zc;By=1;var e=gn(),t=rP(),r=oP();function n(i,a){return r(t(i,a,e),i+"")}return zc=n,zc}var Wc,Fy;function fo(){if(Fy)return Wc;Fy=1;var e=_p(),t=Ti(),r=Rp(),n=Gt();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 Wc=i,Wc}var Uc,zy;function sP(){if(zy)return Uc;zy=1;var e=xx(),t=eP(),r=uP(),n=fo(),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 Uc=i,Uc}var cP=sP();const Bp=le(cP);function Gn(e){"@babel/helpers - typeof";return Gn=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},Gn(e)}function lf(){return lf=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},lf.apply(this,arguments)}function lP(e,t){return hP(e)||dP(e,t)||pP(e,t)||fP()}function fP(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pP(e,t){if(e){if(typeof e=="string")return Wy(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 Wy(e,t)}}function Wy(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 dP(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(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function hP(e){if(Array.isArray(e))return e}function Uy(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 Kc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Uy(Object(r),!0).forEach(function(n){vP(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Uy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function vP(e,t,r){return t=yP(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yP(e){var t=mP(e,"string");return Gn(t)=="symbol"?t:t+""}function mP(e,t){if(Gn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Gn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function gP(e){return Array.isArray(e)&&Se(e[0])&&Se(e[1])?e.join(" ~ "):e}var bP=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,f=t.payload,l=t.formatter,p=t.itemSorter,h=t.wrapperClassName,y=t.labelClassName,d=t.label,v=t.labelFormatter,x=t.accessibilityLayer,b=x===void 0?!1:x,g=function(){if(f&&f.length){var E={padding:0,margin:0},M=(p?Bp(f,p):f).map(function(C,I){if(C.type==="none")return null;var k=Kc({display:"block",paddingTop:4,paddingBottom:4,color:C.color||"#000"},u),q=C.formatter||l||gP,z=C.value,W=C.name,V=z,N=W;if(q&&V!=null&&N!=null){var D=q(z,W,C,I,f);if(Array.isArray(D)){var H=lP(D,2);V=H[0],N=H[1]}else V=D}return A.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(I),style:k},Se(N)?A.createElement("span",{className:"recharts-tooltip-item-name"},N):null,Se(N)?A.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,A.createElement("span",{className:"recharts-tooltip-item-value"},V),A.createElement("span",{className:"recharts-tooltip-item-unit"},C.unit||""))});return A.createElement("ul",{className:"recharts-tooltip-item-list",style:E},M)}return null},O=Kc({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),m=Kc({margin:0},c),w=!Y(d),_=w?d:"",S=te("recharts-default-tooltip",h),j=te("recharts-tooltip-label",y);w&&v&&f!==void 0&&f!==null&&(_=v(d,f));var $=b?{role:"status","aria-live":"assertive"}:{};return A.createElement("div",lf({className:S,style:O},$),A.createElement("p",{className:j,style:m},A.isValidElement(_)?_:"".concat(_)),g())};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 Li(e,t,r){return t=xP(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xP(e){var t=wP(e,"string");return Vn(t)=="symbol"?t:t+""}function wP(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(t==="string"?String:Number)(e)}var An="recharts-tooltip-wrapper",OP={visibility:"hidden"};function _P(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return te(An,Li(Li(Li(Li({},"".concat(An,"-right"),F(r)&&t&&F(t.x)&&r>=t.x),"".concat(An,"-left"),F(r)&&t&&F(t.x)&&r<t.x),"".concat(An,"-bottom"),F(n)&&t&&F(t.y)&&n>=t.y),"".concat(An,"-top"),F(n)&&t&&F(t.y)&&n<t.y))}function Ky(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&&F(a[n]))return a[n];var f=r[n]-u-i,l=r[n]+i;if(t[n])return o[n]?f:l;if(o[n]){var p=f,h=s[n];return p<h?Math.max(l,s[n]):Math.max(f,s[n])}var y=l+u,d=s[n]+c;return y>d?Math.max(f,s[n]):Math.max(l,s[n])}function AP(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 SP(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,f,l;return o.height>0&&o.width>0&&r?(f=Ky({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:s,viewBoxDimension:s.width}),l=Ky({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:s,viewBoxDimension:s.height}),c=AP({translateX:f,translateY:l,useTranslate3d:u})):c=OP,{cssProperties:c,cssClasses:_P({translateX:f,translateY:l,coordinate:r})}}function Br(e){"@babel/helpers - typeof";return Br=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},Br(e)}function Hy(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 Gy(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Hy(Object(r),!0).forEach(function(n){pf(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function PP(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jP(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,Sx(n.key),n)}}function TP(e,t,r){return t&&jP(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function EP(e,t,r){return t=ua(t),$P(e,Ax()?Reflect.construct(t,r||[],ua(e).constructor):t.apply(e,r))}function $P(e,t){if(t&&(Br(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return MP(e)}function MP(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ax(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ax=function(){return!!e})()}function ua(e){return ua=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ua(e)}function CP(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&&ff(e,t)}function ff(e,t){return ff=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ff(e,t)}function pf(e,t,r){return t=Sx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Sx(e){var t=IP(e,"string");return Br(t)=="symbol"?t:t+""}function IP(e,t){if(Br(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Br(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Vy=1,kP=function(e){function t(){var r;PP(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=EP(this,t,[].concat(i)),pf(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),pf(r,"handleKeyDown",function(o){if(o.key==="Escape"){var u,s,c,f;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=(f=r.props.coordinate)===null||f===void 0?void 0:f.y)!==null&&c!==void 0?c:0}})}}),r}return CP(t,e),TP(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>Vy||Math.abs(n.height-this.state.lastBoundingBox.height)>Vy)&&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,f=i.coordinate,l=i.hasPayload,p=i.isAnimationActive,h=i.offset,y=i.position,d=i.reverseDirection,v=i.useTranslate3d,x=i.viewBox,b=i.wrapperStyle,g=SP({allowEscapeViewBox:o,coordinate:f,offsetTopLeft:h,position:y,reverseDirection:d,tooltipBox:this.state.lastBoundingBox,useTranslate3d:v,viewBox:x}),O=g.cssClasses,m=g.cssProperties,w=Gy(Gy({transition:p&&a?"transform ".concat(u,"ms ").concat(s):void 0},m),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&l?"visible":"hidden",position:"absolute",top:0,left:0},b);return A.createElement("div",{tabIndex:-1,className:O,style:w,ref:function(S){n.wrapperNode=S}},c)}}])}(B.PureComponent),NP=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},It={isSsr:NP()};function Fr(e){"@babel/helpers - typeof";return Fr=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},Fr(e)}function Xy(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 Yy(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Xy(Object(r),!0).forEach(function(n){Fp(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function RP(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function DP(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,jx(n.key),n)}}function qP(e,t,r){return t&&DP(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function LP(e,t,r){return t=sa(t),BP(e,Px()?Reflect.construct(t,r||[],sa(e).constructor):t.apply(e,r))}function BP(e,t){if(t&&(Fr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return FP(e)}function FP(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Px(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Px=function(){return!!e})()}function sa(e){return sa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},sa(e)}function zP(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&&df(e,t)}function df(e,t){return df=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},df(e,t)}function Fp(e,t,r){return t=jx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jx(e){var t=WP(e,"string");return Fr(t)=="symbol"?t:t+""}function WP(e,t){if(Fr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Fr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function UP(e){return e.dataKey}function KP(e,t){return A.isValidElement(e)?A.cloneElement(e,t):typeof e=="function"?A.createElement(e,t):A.createElement(bP,t)}var pt=function(e){function t(){return RP(this,t),LP(this,t,arguments)}return zP(t,e),qP(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,f=i.coordinate,l=i.filterNull,p=i.isAnimationActive,h=i.offset,y=i.payload,d=i.payloadUniqBy,v=i.position,x=i.reverseDirection,b=i.useTranslate3d,g=i.viewBox,O=i.wrapperStyle,m=y??[];l&&m.length&&(m=mx(y.filter(function(_){return _.value!=null&&(_.hide!==!0||n.props.includeHidden)}),d,UP));var w=m.length>0;return A.createElement(kP,{allowEscapeViewBox:o,animationDuration:u,animationEasing:s,isAnimationActive:p,active:a,coordinate:f,hasPayload:w,offset:h,position:v,reverseDirection:x,useTranslate3d:b,viewBox:g,wrapperStyle:O},KP(c,Yy(Yy({},this.props),{},{payload:m})))}}])}(B.PureComponent);Fp(pt,"displayName","Tooltip");Fp(pt,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!It.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 Hc,Zy;function HP(){if(Zy)return Hc;Zy=1;var e=gt(),t=function(){return e.Date.now()};return Hc=t,Hc}var Gc,Jy;function GP(){if(Jy)return Gc;Jy=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return Gc=t,Gc}var Vc,Qy;function VP(){if(Qy)return Vc;Qy=1;var e=GP(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return Vc=r,Vc}var Xc,em;function Tx(){if(em)return Xc;em=1;var e=VP(),t=Gt(),r=vn(),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 f=typeof c.valueOf=="function"?c.valueOf():c;c=t(f)?f+"":f}if(typeof c!="string")return c===0?c:+c;c=e(c);var l=a.test(c);return l||o.test(c)?u(c.slice(2),l?2:8):i.test(c)?n:+c}return Xc=s,Xc}var Yc,tm;function XP(){if(tm)return Yc;tm=1;var e=Gt(),t=HP(),r=Tx(),n="Expected a function",i=Math.max,a=Math.min;function o(u,s,c){var f,l,p,h,y,d,v=0,x=!1,b=!1,g=!0;if(typeof u!="function")throw new TypeError(n);s=r(s)||0,e(c)&&(x=!!c.leading,b="maxWait"in c,p=b?i(r(c.maxWait)||0,s):p,g="trailing"in c?!!c.trailing:g);function O(M){var C=f,I=l;return f=l=void 0,v=M,h=u.apply(I,C),h}function m(M){return v=M,y=setTimeout(S,s),x?O(M):h}function w(M){var C=M-d,I=M-v,k=s-C;return b?a(k,p-I):k}function _(M){var C=M-d,I=M-v;return d===void 0||C>=s||C<0||b&&I>=p}function S(){var M=t();if(_(M))return j(M);y=setTimeout(S,w(M))}function j(M){return y=void 0,g&&f?O(M):(f=l=void 0,h)}function $(){y!==void 0&&clearTimeout(y),v=0,f=d=l=y=void 0}function P(){return y===void 0?h:j(t())}function E(){var M=t(),C=_(M);if(f=arguments,l=this,d=M,C){if(y===void 0)return m(d);if(b)return clearTimeout(y),y=setTimeout(S,s),O(d)}return y===void 0&&(y=setTimeout(S,s)),h}return E.cancel=$,E.flush=P,E}return Yc=o,Yc}var Zc,rm;function YP(){if(rm)return Zc;rm=1;var e=XP(),t=Gt(),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 Zc=n,Zc}var ZP=YP();const Ex=le(ZP);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 nm(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 Bi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?nm(Object(r),!0).forEach(function(n){JP(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function JP(e,t,r){return t=QP(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function QP(e){var t=ej(e,"string");return Xn(t)=="symbol"?t:t+""}function ej(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)}function tj(e,t){return aj(e)||ij(e,t)||nj(e,t)||rj()}function rj(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nj(e,t){if(e){if(typeof e=="string")return im(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 im(e,t)}}function im(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 ij(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(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function aj(e){if(Array.isArray(e))return e}var oj=B.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,f=c===void 0?0:c,l=e.minHeight,p=e.maxHeight,h=e.children,y=e.debounce,d=y===void 0?0:y,v=e.id,x=e.className,b=e.onResize,g=e.style,O=g===void 0?{}:g,m=B.useRef(null),w=B.useRef();w.current=b,B.useImperativeHandle(t,function(){return Object.defineProperty(m.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),m.current},configurable:!0})});var _=B.useState({containerWidth:i.width,containerHeight:i.height}),S=tj(_,2),j=S[0],$=S[1],P=B.useCallback(function(M,C){$(function(I){var k=Math.round(M),q=Math.round(C);return I.containerWidth===k&&I.containerHeight===q?I:{containerWidth:k,containerHeight:q}})},[]);B.useEffect(function(){var M=function(W){var V,N=W[0].contentRect,D=N.width,H=N.height;P(D,H),(V=w.current)===null||V===void 0||V.call(w,D,H)};d>0&&(M=Ex(M,d,{trailing:!0,leading:!1}));var C=new ResizeObserver(M),I=m.current.getBoundingClientRect(),k=I.width,q=I.height;return P(k,q),C.observe(m.current),function(){C.disconnect()}},[P,d]);var E=B.useMemo(function(){var M=j.containerWidth,C=j.containerHeight;if(M<0||C<0)return null;st(ur(o)||ur(s),`The width(%s) and height(%s) are both fixed numbers,
       maybe you don't need to use a ResponsiveContainer.`,o,s),st(!r||r>0,"The aspect(%s) must be greater than zero.",r);var I=ur(o)?M:o,k=ur(s)?C:s;r&&r>0&&(I?k=I/r:k&&(I=k*r),p&&k>p&&(k=p)),st(I>0||k>0,`The width(%s) and height(%s) of chart should be greater than 0,
       please check the style of container, or the props width(%s) and height(%s),
       or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
       height and width.`,I,k,o,s,f,l,r);var q=!Array.isArray(h)&&St(h.type).endsWith("Chart");return A.Children.map(h,function(z){return A.isValidElement(z)?B.cloneElement(z,Bi({width:I,height:k},q?{style:Bi({height:"100%",width:"100%",maxHeight:k,maxWidth:I},z.props.style)}:{})):z})},[r,h,s,p,l,f,j,o]);return A.createElement("div",{id:v?"".concat(v):void 0,className:te("recharts-responsive-container",x),style:Bi(Bi({},O),{},{width:o,height:s,minWidth:f,minHeight:l,maxHeight:p}),ref:m},E)}),po=function(t){return null};po.displayName="Cell";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 am(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 hf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?am(Object(r),!0).forEach(function(n){uj(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):am(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function uj(e,t,r){return t=sj(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sj(e){var t=cj(e,"string");return Yn(t)=="symbol"?t:t+""}function cj(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)}var Ar={widthCache:{},cacheCount:0},lj=2e3,fj={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},om="recharts_measurement_span";function pj(e){var t=hf({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var Rn=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||It.isSsr)return{width:0,height:0};var n=pj(r),i=JSON.stringify({text:t,copyStyle:n});if(Ar.widthCache[i])return Ar.widthCache[i];try{var a=document.getElementById(om);a||(a=document.createElement("span"),a.setAttribute("id",om),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=hf(hf({},fj),n);Object.assign(a.style,o),a.textContent="".concat(t);var u=a.getBoundingClientRect(),s={width:u.width,height:u.height};return Ar.widthCache[i]=s,++Ar.cacheCount>lj&&(Ar.cacheCount=0,Ar.widthCache={}),s}catch{return{width:0,height:0}}},dj=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function Zn(e){"@babel/helpers - typeof";return Zn=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},Zn(e)}function ca(e,t){return mj(e)||yj(e,t)||vj(e,t)||hj()}function hj(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vj(e,t){if(e){if(typeof e=="string")return um(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 um(e,t)}}function um(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 yj(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(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function mj(e){if(Array.isArray(e))return e}function gj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sm(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,xj(n.key),n)}}function bj(e,t,r){return t&&sm(e.prototype,t),r&&sm(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function xj(e){var t=wj(e,"string");return Zn(t)=="symbol"?t:t+""}function wj(e,t){if(Zn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Zn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var cm=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,lm=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Oj=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,_j=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,$x={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},Aj=Object.keys($x),Tr="NaN";function Sj(e,t){return e*$x[t]}var Fi=function(){function e(t,r){gj(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!Oj.test(r)&&(this.num=NaN,this.unit=""),Aj.includes(r)&&(this.num=Sj(t,r),this.unit="px")}return bj(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=_j.exec(r))!==null&&n!==void 0?n:[],a=ca(i,3),o=a[1],u=a[2];return new e(parseFloat(o),u??"")}}])}();function Mx(e){if(e.includes(Tr))return Tr;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=cm.exec(t))!==null&&r!==void 0?r:[],i=ca(n,4),a=i[1],o=i[2],u=i[3],s=Fi.parse(a??""),c=Fi.parse(u??""),f=o==="*"?s.multiply(c):s.divide(c);if(f.isNaN())return Tr;t=t.replace(cm,f.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var l,p=(l=lm.exec(t))!==null&&l!==void 0?l:[],h=ca(p,4),y=h[1],d=h[2],v=h[3],x=Fi.parse(y??""),b=Fi.parse(v??""),g=d==="+"?x.add(b):x.subtract(b);if(g.isNaN())return Tr;t=t.replace(lm,g.toString())}return t}var fm=/\(([^()]*)\)/;function Pj(e){for(var t=e;t.includes("(");){var r=fm.exec(t),n=ca(r,2),i=n[1];t=t.replace(fm,Mx(i))}return t}function jj(e){var t=e.replace(/\s+/g,"");return t=Pj(t),t=Mx(t),t}function Tj(e){try{return jj(e)}catch{return Tr}}function Jc(e){var t=Tj(e.slice(5,-1));return t===Tr?"":t}var Ej=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],$j=["dx","dy","angle","className","breakAll"];function vf(){return vf=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},vf.apply(this,arguments)}function pm(e,t){if(e==null)return{};var r=Mj(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 Mj(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 dm(e,t){return Nj(e)||kj(e,t)||Ij(e,t)||Cj()}function Cj(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ij(e,t){if(e){if(typeof e=="string")return hm(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 hm(e,t)}}function hm(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 kj(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(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function Nj(e){if(Array.isArray(e))return e}var Cx=/[ \f\n\r\t\v\u2028\u2029]+/,Ix=function(t){var r=t.children,n=t.breakAll,i=t.style;try{var a=[];Y(r)||(n?a=r.toString().split(""):a=r.toString().split(Cx));var o=a.map(function(s){return{word:s,width:Rn(s,i).width}}),u=n?0:Rn(" ",i).width;return{wordsWithComputedWidth:o,spaceWidth:u}}catch{return null}},Rj=function(t,r,n,i,a){var o=t.maxLines,u=t.children,s=t.style,c=t.breakAll,f=F(o),l=u,p=function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return I.reduce(function(k,q){var z=q.word,W=q.width,V=k[k.length-1];if(V&&(i==null||a||V.width+W+n<Number(i)))V.words.push(z),V.width+=W+n;else{var N={words:[z],width:W};k.push(N)}return k},[])},h=p(r),y=function(I){return I.reduce(function(k,q){return k.width>q.width?k:q})};if(!f)return h;for(var d="…",v=function(I){var k=l.slice(0,I),q=Ix({breakAll:c,style:s,children:k+d}).wordsWithComputedWidth,z=p(q),W=z.length>o||y(z).width>Number(i);return[W,z]},x=0,b=l.length-1,g=0,O;x<=b&&g<=l.length-1;){var m=Math.floor((x+b)/2),w=m-1,_=v(w),S=dm(_,2),j=S[0],$=S[1],P=v(m),E=dm(P,1),M=E[0];if(!j&&!M&&(x=m+1),j&&M&&(b=m-1),!j&&M){O=$;break}g++}return O||h},vm=function(t){var r=Y(t)?[]:t.toString().split(Cx);return[{words:r}]},Dj=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,u=t.maxLines;if((r||n)&&!It.isSsr){var s,c,f=Ix({breakAll:o,children:i,style:a});if(f){var l=f.wordsWithComputedWidth,p=f.spaceWidth;s=l,c=p}else return vm(i);return Rj({breakAll:o,children:i,maxLines:u,style:a},s,c,r,n)}return vm(i)},ym="#808080",vr=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,f=t.scaleToFit,l=f===void 0?!1:f,p=t.textAnchor,h=p===void 0?"start":p,y=t.verticalAnchor,d=y===void 0?"end":y,v=t.fill,x=v===void 0?ym:v,b=pm(t,Ej),g=B.useMemo(function(){return Dj({breakAll:b.breakAll,children:b.children,maxLines:b.maxLines,scaleToFit:l,style:b.style,width:b.width})},[b.breakAll,b.children,b.maxLines,l,b.style,b.width]),O=b.dx,m=b.dy,w=b.angle,_=b.className,S=b.breakAll,j=pm(b,$j);if(!Se(n)||!Se(a))return null;var $=n+(F(O)?O:0),P=a+(F(m)?m:0),E;switch(d){case"start":E=Jc("calc(".concat(c,")"));break;case"middle":E=Jc("calc(".concat((g.length-1)/2," * -").concat(u," + (").concat(c," / 2))"));break;default:E=Jc("calc(".concat(g.length-1," * -").concat(u,")"));break}var M=[];if(l){var C=g[0].width,I=b.width;M.push("scale(".concat((F(I)?I/C:1)/C,")"))}return w&&M.push("rotate(".concat(w,", ").concat($,", ").concat(P,")")),M.length&&(j.transform=M.join(" ")),A.createElement("text",vf({},G(j,!0),{x:$,y:P,className:te("recharts-text",_),textAnchor:h,fill:x.includes("url")?ym:x}),g.map(function(k,q){var z=k.words.join(S?"":" ");return A.createElement("tspan",{x:$,dy:q===0?E:u,key:"".concat(z,"-").concat(q)},z)}))};function Wt(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function qj(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function zp(e){let t,r,n;e.length!==2?(t=Wt,r=(u,s)=>Wt(e(u),s),n=(u,s)=>e(u)-s):(t=e===Wt||e===qj?e:Lj,r=e,n=e);function i(u,s,c=0,f=u.length){if(c<f){if(t(s,s)!==0)return f;do{const l=c+f>>>1;r(u[l],s)<0?c=l+1:f=l}while(c<f)}return c}function a(u,s,c=0,f=u.length){if(c<f){if(t(s,s)!==0)return f;do{const l=c+f>>>1;r(u[l],s)<=0?c=l+1:f=l}while(c<f)}return c}function o(u,s,c=0,f=u.length){const l=i(u,s,c,f-1);return l>c&&n(u[l-1],s)>-n(u[l],s)?l-1:l}return{left:i,center:o,right:a}}function Lj(){return 0}function kx(e){return e===null?NaN:+e}function*Bj(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const Fj=zp(Wt),Ei=Fj.right;zp(kx).center;class mm extends Map{constructor(t,r=Uj){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(gm(this,t))}has(t){return super.has(gm(this,t))}set(t,r){return super.set(zj(this,t),r)}delete(t){return super.delete(Wj(this,t))}}function gm({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function zj({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function Wj({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function Uj(e){return e!==null&&typeof e=="object"?e.valueOf():e}function Kj(e=Wt){if(e===Wt)return Nx;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 Nx(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const Hj=Math.sqrt(50),Gj=Math.sqrt(10),Vj=Math.sqrt(2);function la(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>=Hj?10:a>=Gj?5:a>=Vj?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?la(e,t,r*2):[u,s,c]}function yf(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?la(t,e,r):la(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 mf(e,t,r){return t=+t,e=+e,r=+r,la(e,t,r)[2]}function gf(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?mf(t,e,r):mf(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function bm(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function xm(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function Rx(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?Nx:Kj(i);n>r;){if(n-r>600){const s=n-r+1,c=t-r+1,f=Math.log(s),l=.5*Math.exp(2*f/3),p=.5*Math.sqrt(f*l*(s-l)/s)*(c-s/2<0?-1:1),h=Math.max(r,Math.floor(t-c*l/s+p)),y=Math.min(n,Math.floor(t+(s-c)*l/s+p));Rx(e,t,h,y,i)}const a=e[t];let o=r,u=n;for(Sn(e,r,t),i(e[n],a)>0&&Sn(e,r,n);o<u;){for(Sn(e,o,u),++o,--u;i(e[o],a)<0;)++o;for(;i(e[u],a)>0;)--u}i(e[r],a)===0?Sn(e,r,u):(++u,Sn(e,u,n)),u<=t&&(r=u+1),t<=u&&(n=u-1)}return e}function Sn(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function Xj(e,t,r){if(e=Float64Array.from(Bj(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return xm(e);if(t>=1)return bm(e);var n,i=(n-1)*t,a=Math.floor(i),o=bm(Rx(e,a).subarray(0,a+1)),u=xm(e.subarray(a+1));return o+(u-o)*(i-a)}}function Yj(e,t,r=kx){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 Zj(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 rt(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function kt(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 bf=Symbol("implicit");function Wp(){var e=new mm,t=[],r=[],n=bf;function i(a){let o=e.get(a);if(o===void 0){if(n!==bf)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 mm;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 Wp(t,r).unknown(n)},rt.apply(i,arguments),i}function Jn(){var e=Wp().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,o,u=!1,s=0,c=0,f=.5;delete e.unknown;function l(){var p=t().length,h=i<n,y=h?i:n,d=h?n:i;a=(d-y)/Math.max(1,p-s+c*2),u&&(a=Math.floor(a)),y+=(d-y-a*(p-s))*f,o=a*(1-s),u&&(y=Math.round(y),o=Math.round(o));var v=Zj(p).map(function(x){return y+a*x});return r(h?v.reverse():v)}return e.domain=function(p){return arguments.length?(t(p),l()):t()},e.range=function(p){return arguments.length?([n,i]=p,n=+n,i=+i,l()):[n,i]},e.rangeRound=function(p){return[n,i]=p,n=+n,i=+i,u=!0,l()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(p){return arguments.length?(u=!!p,l()):u},e.padding=function(p){return arguments.length?(s=Math.min(1,c=+p),l()):s},e.paddingInner=function(p){return arguments.length?(s=Math.min(1,p),l()):s},e.paddingOuter=function(p){return arguments.length?(c=+p,l()):c},e.align=function(p){return arguments.length?(f=Math.max(0,Math.min(1,p)),l()):f},e.copy=function(){return Jn(t(),[n,i]).round(u).paddingInner(s).paddingOuter(c).align(f)},rt.apply(l(),arguments)}function Dx(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return Dx(t())},e}function Dn(){return Dx(Jn.apply(null,arguments).paddingInner(1))}function Up(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function qx(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function $i(){}var Qn=.7,fa=1/Qn,Nr="\\s*([+-]?\\d+)\\s*",ei="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",vt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Jj=/^#([0-9a-f]{3,8})$/,Qj=new RegExp(`^rgb\\(${Nr},${Nr},${Nr}\\)$`),eT=new RegExp(`^rgb\\(${vt},${vt},${vt}\\)$`),tT=new RegExp(`^rgba\\(${Nr},${Nr},${Nr},${ei}\\)$`),rT=new RegExp(`^rgba\\(${vt},${vt},${vt},${ei}\\)$`),nT=new RegExp(`^hsl\\(${ei},${vt},${vt}\\)$`),iT=new RegExp(`^hsla\\(${ei},${vt},${vt},${ei}\\)$`),wm={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};Up($i,ti,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Om,formatHex:Om,formatHex8:aT,formatHsl:oT,formatRgb:_m,toString:_m});function Om(){return this.rgb().formatHex()}function aT(){return this.rgb().formatHex8()}function oT(){return Lx(this).formatHsl()}function _m(){return this.rgb().formatRgb()}function ti(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Jj.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?Am(t):r===3?new Fe(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?zi(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?zi(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=Qj.exec(e))?new Fe(t[1],t[2],t[3],1):(t=eT.exec(e))?new Fe(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=tT.exec(e))?zi(t[1],t[2],t[3],t[4]):(t=rT.exec(e))?zi(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=nT.exec(e))?jm(t[1],t[2]/100,t[3]/100,1):(t=iT.exec(e))?jm(t[1],t[2]/100,t[3]/100,t[4]):wm.hasOwnProperty(e)?Am(wm[e]):e==="transparent"?new Fe(NaN,NaN,NaN,0):null}function Am(e){return new Fe(e>>16&255,e>>8&255,e&255,1)}function zi(e,t,r,n){return n<=0&&(e=t=r=NaN),new Fe(e,t,r,n)}function uT(e){return e instanceof $i||(e=ti(e)),e?(e=e.rgb(),new Fe(e.r,e.g,e.b,e.opacity)):new Fe}function xf(e,t,r,n){return arguments.length===1?uT(e):new Fe(e,t,r,n??1)}function Fe(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}Up(Fe,xf,qx($i,{brighter(e){return e=e==null?fa:Math.pow(fa,e),new Fe(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Qn:Math.pow(Qn,e),new Fe(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Fe(pr(this.r),pr(this.g),pr(this.b),pa(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:Sm,formatHex:Sm,formatHex8:sT,formatRgb:Pm,toString:Pm}));function Sm(){return`#${sr(this.r)}${sr(this.g)}${sr(this.b)}`}function sT(){return`#${sr(this.r)}${sr(this.g)}${sr(this.b)}${sr((isNaN(this.opacity)?1:this.opacity)*255)}`}function Pm(){const e=pa(this.opacity);return`${e===1?"rgb(":"rgba("}${pr(this.r)}, ${pr(this.g)}, ${pr(this.b)}${e===1?")":`, ${e})`}`}function pa(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function pr(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function sr(e){return e=pr(e),(e<16?"0":"")+e.toString(16)}function jm(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new ut(e,t,r,n)}function Lx(e){if(e instanceof ut)return new ut(e.h,e.s,e.l,e.opacity);if(e instanceof $i||(e=ti(e)),!e)return new ut;if(e instanceof ut)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 ut(o,u,s,e.opacity)}function cT(e,t,r,n){return arguments.length===1?Lx(e):new ut(e,t,r,n??1)}function ut(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Up(ut,cT,qx($i,{brighter(e){return e=e==null?fa:Math.pow(fa,e),new ut(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Qn:Math.pow(Qn,e),new ut(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 Fe(Qc(e>=240?e-240:e+120,i,n),Qc(e,i,n),Qc(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new ut(Tm(this.h),Wi(this.s),Wi(this.l),pa(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=pa(this.opacity);return`${e===1?"hsl(":"hsla("}${Tm(this.h)}, ${Wi(this.s)*100}%, ${Wi(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Tm(e){return e=(e||0)%360,e<0?e+360:e}function Wi(e){return Math.max(0,Math.min(1,e||0))}function Qc(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 Kp=e=>()=>e;function lT(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 pT(e){return(e=+e)==1?Bx:function(t,r){return r-t?fT(t,r,e):Kp(isNaN(t)?r:t)}}function Bx(e,t){var r=t-e;return r?lT(e,r):Kp(isNaN(e)?t:e)}const Em=function e(t){var r=pT(t);function n(i,a){var o=r((i=xf(i)).r,(a=xf(a)).r),u=r(i.g,a.g),s=r(i.b,a.b),c=Bx(i.opacity,a.opacity);return function(f){return i.r=o(f),i.g=u(f),i.b=s(f),i.opacity=c(f),i+""}}return n.gamma=e,n}(1);function dT(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 hT(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function vT(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]=bn(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 yT(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function da(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function mT(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]=bn(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var wf=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,el=new RegExp(wf.source,"g");function gT(e){return function(){return e}}function bT(e){return function(t){return e(t)+""}}function xT(e,t){var r=wf.lastIndex=el.lastIndex=0,n,i,a,o=-1,u=[],s=[];for(e=e+"",t=t+"";(n=wf.exec(e))&&(i=el.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:da(n,i)})),r=el.lastIndex;return r<t.length&&(a=t.slice(r),u[o]?u[o]+=a:u[++o]=a),u.length<2?s[0]?bT(s[0].x):gT(t):(t=s.length,function(c){for(var f=0,l;f<t;++f)u[(l=s[f]).i]=l.x(c);return u.join("")})}function bn(e,t){var r=typeof t,n;return t==null||r==="boolean"?Kp(t):(r==="number"?da:r==="string"?(n=ti(t))?(t=n,Em):xT:t instanceof ti?Em:t instanceof Date?yT:hT(t)?dT:Array.isArray(t)?vT:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?mT:da)(e,t)}function Hp(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function wT(e,t){t===void 0&&(t=e,e=bn);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 OT(e){return function(){return e}}function ha(e){return+e}var $m=[0,1];function Le(e){return e}function Of(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:OT(isNaN(t)?NaN:.5)}function _T(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function AT(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=Of(i,n),a=r(o,a)):(n=Of(n,i),a=r(a,o)),function(u){return a(n(u))}}function ST(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]=Of(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(u){var s=Ei(e,u,1,n)-1;return a[s](i[s](u))}}function Mi(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function ho(){var e=$m,t=$m,r=bn,n,i,a,o=Le,u,s,c;function f(){var p=Math.min(e.length,t.length);return o!==Le&&(o=_T(e[0],e[p-1])),u=p>2?ST:AT,s=c=null,l}function l(p){return p==null||isNaN(p=+p)?a:(s||(s=u(e.map(n),t,r)))(n(o(p)))}return l.invert=function(p){return o(i((c||(c=u(t,e.map(n),da)))(p)))},l.domain=function(p){return arguments.length?(e=Array.from(p,ha),f()):e.slice()},l.range=function(p){return arguments.length?(t=Array.from(p),f()):t.slice()},l.rangeRound=function(p){return t=Array.from(p),r=Hp,f()},l.clamp=function(p){return arguments.length?(o=p?!0:Le,f()):o!==Le},l.interpolate=function(p){return arguments.length?(r=p,f()):r},l.unknown=function(p){return arguments.length?(a=p,l):a},function(p,h){return n=p,i=h,f()}}function Gp(){return ho()(Le,Le)}function PT(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function va(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 zr(e){return e=va(Math.abs(e)),e?e[1]:NaN}function jT(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 TT(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var ET=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ri(e){if(!(t=ET.exec(e)))throw new Error("invalid format: "+e);var t;return new Vp({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]})}ri.prototype=Vp.prototype;function Vp(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+""}Vp.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 $T(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 Fx;function MT(e,t){var r=va(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(Fx=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")+va(e,Math.max(0,t+a-1))[0]}function Mm(e,t){var r=va(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 Cm={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:PT,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)=>Mm(e*100,t),r:Mm,s:MT,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Im(e){return e}var km=Array.prototype.map,Nm=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function CT(e){var t=e.grouping===void 0||e.thousands===void 0?Im:jT(km.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?Im:TT(km.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(l){l=ri(l);var p=l.fill,h=l.align,y=l.sign,d=l.symbol,v=l.zero,x=l.width,b=l.comma,g=l.precision,O=l.trim,m=l.type;m==="n"?(b=!0,m="g"):Cm[m]||(g===void 0&&(g=12),O=!0,m="g"),(v||p==="0"&&h==="=")&&(v=!0,p="0",h="=");var w=d==="$"?r:d==="#"&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",_=d==="$"?n:/[%p]/.test(m)?o:"",S=Cm[m],j=/[defgprs%]/.test(m);g=g===void 0?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g));function $(P){var E=w,M=_,C,I,k;if(m==="c")M=S(P)+M,P="";else{P=+P;var q=P<0||1/P<0;if(P=isNaN(P)?s:S(Math.abs(P),g),O&&(P=$T(P)),q&&+P==0&&y!=="+"&&(q=!1),E=(q?y==="("?y:u:y==="-"||y==="("?"":y)+E,M=(m==="s"?Nm[8+Fx/3]:"")+M+(q&&y==="("?")":""),j){for(C=-1,I=P.length;++C<I;)if(k=P.charCodeAt(C),48>k||k>57){M=(k===46?i+P.slice(C+1):P.slice(C))+M,P=P.slice(0,C);break}}}b&&!v&&(P=t(P,1/0));var z=E.length+P.length+M.length,W=z<x?new Array(x-z+1).join(p):"";switch(b&&v&&(P=t(W+P,W.length?x-M.length:1/0),W=""),h){case"<":P=E+P+M+W;break;case"=":P=E+W+P+M;break;case"^":P=W.slice(0,z=W.length>>1)+E+P+M+W.slice(z);break;default:P=W+E+P+M;break}return a(P)}return $.toString=function(){return l+""},$}function f(l,p){var h=c((l=ri(l),l.type="f",l)),y=Math.max(-8,Math.min(8,Math.floor(zr(p)/3)))*3,d=Math.pow(10,-y),v=Nm[8+y/3];return function(x){return h(d*x)+v}}return{format:c,formatPrefix:f}}var Ui,Xp,zx;IT({thousands:",",grouping:[3],currency:["$",""]});function IT(e){return Ui=CT(e),Xp=Ui.format,zx=Ui.formatPrefix,Ui}function kT(e){return Math.max(0,-zr(Math.abs(e)))}function NT(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(zr(t)/3)))*3-zr(Math.abs(e)))}function RT(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,zr(t)-zr(e))+1}function Wx(e,t,r,n){var i=gf(e,t,r),a;switch(n=ri(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=NT(i,o))&&(n.precision=a),zx(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=RT(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=kT(i))&&(n.precision=a-(n.type==="%")*2);break}}return Xp(n)}function Xt(e){var t=e.domain;return e.ticks=function(r){var n=t();return yf(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return Wx(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,f=10;for(u<o&&(c=o,o=u,u=c,c=i,i=a,a=c);f-- >0;){if(c=mf(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 ya(){var e=Gp();return e.copy=function(){return Mi(e,ya())},rt.apply(e,arguments),Xt(e)}function Ux(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,ha),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return Ux(e).unknown(t)},e=arguments.length?Array.from(e,ha):[0,1],Xt(r)}function Kx(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 Rm(e){return Math.log(e)}function Dm(e){return Math.exp(e)}function DT(e){return-Math.log(-e)}function qT(e){return-Math.exp(-e)}function LT(e){return isFinite(e)?+("1e"+e):e<0?0:e}function BT(e){return e===10?LT:e===Math.E?Math.exp:t=>Math.pow(e,t)}function FT(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 qm(e){return(t,r)=>-e(-t,r)}function Yp(e){const t=e(Rm,Dm),r=t.domain;let n=10,i,a;function o(){return i=FT(n),a=BT(n),r()[0]<0?(i=qm(i),a=qm(a),e(DT,qT)):e(Rm,Dm),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],f=s[s.length-1];const l=f<c;l&&([c,f]=[f,c]);let p=i(c),h=i(f),y,d;const v=u==null?10:+u;let x=[];if(!(n%1)&&h-p<v){if(p=Math.floor(p),h=Math.ceil(h),c>0){for(;p<=h;++p)for(y=1;y<n;++y)if(d=p<0?y/a(-p):y*a(p),!(d<c)){if(d>f)break;x.push(d)}}else for(;p<=h;++p)for(y=n-1;y>=1;--y)if(d=p>0?y/a(-p):y*a(p),!(d<c)){if(d>f)break;x.push(d)}x.length*2<v&&(x=yf(c,f,v))}else x=yf(p,h,Math.min(h-p,v)).map(a);return l?x.reverse():x},t.tickFormat=(u,s)=>{if(u==null&&(u=10),s==null&&(s=n===10?"s":","),typeof s!="function"&&(!(n%1)&&(s=ri(s)).precision==null&&(s.trim=!0),s=Xp(s)),u===1/0)return s;const c=Math.max(1,n*u/t.ticks().length);return f=>{let l=f/a(Math.round(i(f)));return l*n<n-.5&&(l*=n),l<=c?s(f):""}},t.nice=()=>r(Kx(r(),{floor:u=>a(Math.floor(i(u))),ceil:u=>a(Math.ceil(i(u)))})),t}function Hx(){const e=Yp(ho()).domain([1,10]);return e.copy=()=>Mi(e,Hx()).base(e.base()),rt.apply(e,arguments),e}function Lm(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Bm(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Zp(e){var t=1,r=e(Lm(t),Bm(t));return r.constant=function(n){return arguments.length?e(Lm(t=+n),Bm(t)):t},Xt(r)}function Gx(){var e=Zp(ho());return e.copy=function(){return Mi(e,Gx()).constant(e.constant())},rt.apply(e,arguments)}function Fm(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function zT(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function WT(e){return e<0?-e*e:e*e}function Jp(e){var t=e(Le,Le),r=1;function n(){return r===1?e(Le,Le):r===.5?e(zT,WT):e(Fm(r),Fm(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},Xt(t)}function Qp(){var e=Jp(ho());return e.copy=function(){return Mi(e,Qp()).exponent(e.exponent())},rt.apply(e,arguments),e}function UT(){return Qp.apply(null,arguments).exponent(.5)}function zm(e){return Math.sign(e)*e*e}function KT(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function Vx(){var e=Gp(),t=[0,1],r=!1,n;function i(a){var o=KT(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(zm(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,ha)).map(zm)),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 Vx(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},rt.apply(i,arguments),Xt(i)}function Xx(){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]=Yj(e,o/u);return a}function a(o){return o==null||isNaN(o=+o)?n:t[Ei(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(Wt),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 Xx().domain(e).range(t).unknown(n)},rt.apply(a,arguments)}function Yx(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(s){return s!=null&&s<=s?i[Ei(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 Yx().domain([e,t]).range(i).unknown(a)},rt.apply(Xt(o),arguments)}function Zx(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[Ei(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 Zx().domain(e).range(t).unknown(r)},rt.apply(i,arguments)}const tl=new Date,rl=new Date;function Pe(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=>Pe(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)=>(tl.setTime(+a),rl.setTime(+o),e(tl),e(rl),Math.floor(r(tl,rl))),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 ma=Pe(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);ma.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Pe(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):ma);ma.range;const Ot=1e3,Qe=Ot*60,_t=Qe*60,jt=_t*24,ed=jt*7,Wm=jt*30,nl=jt*365,cr=Pe(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Ot)},(e,t)=>(t-e)/Ot,e=>e.getUTCSeconds());cr.range;const td=Pe(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ot)},(e,t)=>{e.setTime(+e+t*Qe)},(e,t)=>(t-e)/Qe,e=>e.getMinutes());td.range;const rd=Pe(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Qe)},(e,t)=>(t-e)/Qe,e=>e.getUTCMinutes());rd.range;const nd=Pe(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ot-e.getMinutes()*Qe)},(e,t)=>{e.setTime(+e+t*_t)},(e,t)=>(t-e)/_t,e=>e.getHours());nd.range;const id=Pe(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*_t)},(e,t)=>(t-e)/_t,e=>e.getUTCHours());id.range;const Ci=Pe(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Qe)/jt,e=>e.getDate()-1);Ci.range;const vo=Pe(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/jt,e=>e.getUTCDate()-1);vo.range;const Jx=Pe(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/jt,e=>Math.floor(e/jt));Jx.range;function xr(e){return Pe(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*Qe)/ed)}const yo=xr(0),ga=xr(1),HT=xr(2),GT=xr(3),Wr=xr(4),VT=xr(5),XT=xr(6);yo.range;ga.range;HT.range;GT.range;Wr.range;VT.range;XT.range;function wr(e){return Pe(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)/ed)}const mo=wr(0),ba=wr(1),YT=wr(2),ZT=wr(3),Ur=wr(4),JT=wr(5),QT=wr(6);mo.range;ba.range;YT.range;ZT.range;Ur.range;JT.range;QT.range;const ad=Pe(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());ad.range;const od=Pe(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());od.range;const Tt=Pe(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());Tt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Pe(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)});Tt.range;const Et=Pe(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());Et.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Pe(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)});Et.range;function Qx(e,t,r,n,i,a){const o=[[cr,1,Ot],[cr,5,5*Ot],[cr,15,15*Ot],[cr,30,30*Ot],[a,1,Qe],[a,5,5*Qe],[a,15,15*Qe],[a,30,30*Qe],[i,1,_t],[i,3,3*_t],[i,6,6*_t],[i,12,12*_t],[n,1,jt],[n,2,2*jt],[r,1,ed],[t,1,Wm],[t,3,3*Wm],[e,1,nl]];function u(c,f,l){const p=f<c;p&&([c,f]=[f,c]);const h=l&&typeof l.range=="function"?l:s(c,f,l),y=h?h.range(c,+f+1):[];return p?y.reverse():y}function s(c,f,l){const p=Math.abs(f-c)/l,h=zp(([,,v])=>v).right(o,p);if(h===o.length)return e.every(gf(c/nl,f/nl,l));if(h===0)return ma.every(Math.max(gf(c,f,l),1));const[y,d]=o[p/o[h-1][2]<o[h][2]/p?h-1:h];return y.every(d)}return[u,s]}const[eE,tE]=Qx(Et,od,mo,Jx,id,rd),[rE,nE]=Qx(Tt,ad,yo,Ci,nd,td);function il(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 al(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 Pn(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function iE(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=jn(i),f=Tn(i),l=jn(a),p=Tn(a),h=jn(o),y=Tn(o),d=jn(u),v=Tn(u),x=jn(s),b=Tn(s),g={a:q,A:z,b:W,B:V,c:null,d:Xm,e:Xm,f:jE,g:DE,G:LE,H:AE,I:SE,j:PE,L:ew,m:TE,M:EE,p:N,q:D,Q:Jm,s:Qm,S:$E,u:ME,U:CE,V:IE,w:kE,W:NE,x:null,X:null,y:RE,Y:qE,Z:BE,"%":Zm},O={a:H,A:J,b:ge,B:Ie,c:null,d:Ym,e:Ym,f:UE,g:e$,G:r$,H:FE,I:zE,j:WE,L:rw,m:KE,M:HE,p:nt,q:Me,Q:Jm,s:Qm,S:GE,u:VE,U:XE,V:YE,w:ZE,W:JE,x:null,X:null,y:QE,Y:t$,Z:n$,"%":Zm},m={a:$,A:P,b:E,B:M,c:C,d:Gm,e:Gm,f:xE,g:Hm,G:Km,H:Vm,I:Vm,j:yE,L:bE,m:vE,M:mE,p:j,q:hE,Q:OE,s:_E,S:gE,u:cE,U:lE,V:fE,w:sE,W:pE,x:I,X:k,y:Hm,Y:Km,Z:dE,"%":wE};g.x=w(r,g),g.X=w(n,g),g.c=w(t,g),O.x=w(r,O),O.X=w(n,O),O.c=w(t,O);function w(U,Q){return function(ee){var L=[],ve=-1,ne=0,ie=U.length,ae,je,ft;for(ee instanceof Date||(ee=new Date(+ee));++ve<ie;)U.charCodeAt(ve)===37&&(L.push(U.slice(ne,ve)),(je=Um[ae=U.charAt(++ve)])!=null?ae=U.charAt(++ve):je=ae==="e"?" ":"0",(ft=Q[ae])&&(ae=ft(ee,je)),L.push(ae),ne=ve+1);return L.push(U.slice(ne,ve)),L.join("")}}function _(U,Q){return function(ee){var L=Pn(1900,void 0,1),ve=S(L,U,ee+="",0),ne,ie;if(ve!=ee.length)return null;if("Q"in L)return new Date(L.Q);if("s"in L)return new Date(L.s*1e3+("L"in L?L.L:0));if(Q&&!("Z"in L)&&(L.Z=0),"p"in L&&(L.H=L.H%12+L.p*12),L.m===void 0&&(L.m="q"in L?L.q:0),"V"in L){if(L.V<1||L.V>53)return null;"w"in L||(L.w=1),"Z"in L?(ne=al(Pn(L.y,0,1)),ie=ne.getUTCDay(),ne=ie>4||ie===0?ba.ceil(ne):ba(ne),ne=vo.offset(ne,(L.V-1)*7),L.y=ne.getUTCFullYear(),L.m=ne.getUTCMonth(),L.d=ne.getUTCDate()+(L.w+6)%7):(ne=il(Pn(L.y,0,1)),ie=ne.getDay(),ne=ie>4||ie===0?ga.ceil(ne):ga(ne),ne=Ci.offset(ne,(L.V-1)*7),L.y=ne.getFullYear(),L.m=ne.getMonth(),L.d=ne.getDate()+(L.w+6)%7)}else("W"in L||"U"in L)&&("w"in L||(L.w="u"in L?L.u%7:"W"in L?1:0),ie="Z"in L?al(Pn(L.y,0,1)).getUTCDay():il(Pn(L.y,0,1)).getDay(),L.m=0,L.d="W"in L?(L.w+6)%7+L.W*7-(ie+5)%7:L.w+L.U*7-(ie+6)%7);return"Z"in L?(L.H+=L.Z/100|0,L.M+=L.Z%100,al(L)):il(L)}}function S(U,Q,ee,L){for(var ve=0,ne=Q.length,ie=ee.length,ae,je;ve<ne;){if(L>=ie)return-1;if(ae=Q.charCodeAt(ve++),ae===37){if(ae=Q.charAt(ve++),je=m[ae in Um?Q.charAt(ve++):ae],!je||(L=je(U,ee,L))<0)return-1}else if(ae!=ee.charCodeAt(L++))return-1}return L}function j(U,Q,ee){var L=c.exec(Q.slice(ee));return L?(U.p=f.get(L[0].toLowerCase()),ee+L[0].length):-1}function $(U,Q,ee){var L=h.exec(Q.slice(ee));return L?(U.w=y.get(L[0].toLowerCase()),ee+L[0].length):-1}function P(U,Q,ee){var L=l.exec(Q.slice(ee));return L?(U.w=p.get(L[0].toLowerCase()),ee+L[0].length):-1}function E(U,Q,ee){var L=x.exec(Q.slice(ee));return L?(U.m=b.get(L[0].toLowerCase()),ee+L[0].length):-1}function M(U,Q,ee){var L=d.exec(Q.slice(ee));return L?(U.m=v.get(L[0].toLowerCase()),ee+L[0].length):-1}function C(U,Q,ee){return S(U,t,Q,ee)}function I(U,Q,ee){return S(U,r,Q,ee)}function k(U,Q,ee){return S(U,n,Q,ee)}function q(U){return o[U.getDay()]}function z(U){return a[U.getDay()]}function W(U){return s[U.getMonth()]}function V(U){return u[U.getMonth()]}function N(U){return i[+(U.getHours()>=12)]}function D(U){return 1+~~(U.getMonth()/3)}function H(U){return o[U.getUTCDay()]}function J(U){return a[U.getUTCDay()]}function ge(U){return s[U.getUTCMonth()]}function Ie(U){return u[U.getUTCMonth()]}function nt(U){return i[+(U.getUTCHours()>=12)]}function Me(U){return 1+~~(U.getUTCMonth()/3)}return{format:function(U){var Q=w(U+="",g);return Q.toString=function(){return U},Q},parse:function(U){var Q=_(U+="",!1);return Q.toString=function(){return U},Q},utcFormat:function(U){var Q=w(U+="",O);return Q.toString=function(){return U},Q},utcParse:function(U){var Q=_(U+="",!0);return Q.toString=function(){return U},Q}}}var Um={"-":"",_:" ",0:"0"},$e=/^\s*\d+/,aE=/^%/,oE=/[\\^$*+?|[\]().{}]/g;function oe(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 uE(e){return e.replace(oE,"\\$&")}function jn(e){return new RegExp("^(?:"+e.map(uE).join("|")+")","i")}function Tn(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function sE(e,t,r){var n=$e.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function cE(e,t,r){var n=$e.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function lE(e,t,r){var n=$e.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function fE(e,t,r){var n=$e.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function pE(e,t,r){var n=$e.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function Km(e,t,r){var n=$e.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function Hm(e,t,r){var n=$e.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function dE(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 hE(e,t,r){var n=$e.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function vE(e,t,r){var n=$e.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function Gm(e,t,r){var n=$e.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function yE(e,t,r){var n=$e.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function Vm(e,t,r){var n=$e.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function mE(e,t,r){var n=$e.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function gE(e,t,r){var n=$e.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function bE(e,t,r){var n=$e.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function xE(e,t,r){var n=$e.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function wE(e,t,r){var n=aE.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function OE(e,t,r){var n=$e.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function _E(e,t,r){var n=$e.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function Xm(e,t){return oe(e.getDate(),t,2)}function AE(e,t){return oe(e.getHours(),t,2)}function SE(e,t){return oe(e.getHours()%12||12,t,2)}function PE(e,t){return oe(1+Ci.count(Tt(e),e),t,3)}function ew(e,t){return oe(e.getMilliseconds(),t,3)}function jE(e,t){return ew(e,t)+"000"}function TE(e,t){return oe(e.getMonth()+1,t,2)}function EE(e,t){return oe(e.getMinutes(),t,2)}function $E(e,t){return oe(e.getSeconds(),t,2)}function ME(e){var t=e.getDay();return t===0?7:t}function CE(e,t){return oe(yo.count(Tt(e)-1,e),t,2)}function tw(e){var t=e.getDay();return t>=4||t===0?Wr(e):Wr.ceil(e)}function IE(e,t){return e=tw(e),oe(Wr.count(Tt(e),e)+(Tt(e).getDay()===4),t,2)}function kE(e){return e.getDay()}function NE(e,t){return oe(ga.count(Tt(e)-1,e),t,2)}function RE(e,t){return oe(e.getFullYear()%100,t,2)}function DE(e,t){return e=tw(e),oe(e.getFullYear()%100,t,2)}function qE(e,t){return oe(e.getFullYear()%1e4,t,4)}function LE(e,t){var r=e.getDay();return e=r>=4||r===0?Wr(e):Wr.ceil(e),oe(e.getFullYear()%1e4,t,4)}function BE(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+oe(t/60|0,"0",2)+oe(t%60,"0",2)}function Ym(e,t){return oe(e.getUTCDate(),t,2)}function FE(e,t){return oe(e.getUTCHours(),t,2)}function zE(e,t){return oe(e.getUTCHours()%12||12,t,2)}function WE(e,t){return oe(1+vo.count(Et(e),e),t,3)}function rw(e,t){return oe(e.getUTCMilliseconds(),t,3)}function UE(e,t){return rw(e,t)+"000"}function KE(e,t){return oe(e.getUTCMonth()+1,t,2)}function HE(e,t){return oe(e.getUTCMinutes(),t,2)}function GE(e,t){return oe(e.getUTCSeconds(),t,2)}function VE(e){var t=e.getUTCDay();return t===0?7:t}function XE(e,t){return oe(mo.count(Et(e)-1,e),t,2)}function nw(e){var t=e.getUTCDay();return t>=4||t===0?Ur(e):Ur.ceil(e)}function YE(e,t){return e=nw(e),oe(Ur.count(Et(e),e)+(Et(e).getUTCDay()===4),t,2)}function ZE(e){return e.getUTCDay()}function JE(e,t){return oe(ba.count(Et(e)-1,e),t,2)}function QE(e,t){return oe(e.getUTCFullYear()%100,t,2)}function e$(e,t){return e=nw(e),oe(e.getUTCFullYear()%100,t,2)}function t$(e,t){return oe(e.getUTCFullYear()%1e4,t,4)}function r$(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Ur(e):Ur.ceil(e),oe(e.getUTCFullYear()%1e4,t,4)}function n$(){return"+0000"}function Zm(){return"%"}function Jm(e){return+e}function Qm(e){return Math.floor(+e/1e3)}var Sr,iw,aw;i$({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 i$(e){return Sr=iE(e),iw=Sr.format,Sr.parse,aw=Sr.utcFormat,Sr.utcParse,Sr}function a$(e){return new Date(e)}function o$(e){return e instanceof Date?+e:+new Date(+e)}function ud(e,t,r,n,i,a,o,u,s,c){var f=Gp(),l=f.invert,p=f.domain,h=c(".%L"),y=c(":%S"),d=c("%I:%M"),v=c("%I %p"),x=c("%a %d"),b=c("%b %d"),g=c("%B"),O=c("%Y");function m(w){return(s(w)<w?h:u(w)<w?y:o(w)<w?d:a(w)<w?v:n(w)<w?i(w)<w?x:b:r(w)<w?g:O)(w)}return f.invert=function(w){return new Date(l(w))},f.domain=function(w){return arguments.length?p(Array.from(w,o$)):p().map(a$)},f.ticks=function(w){var _=p();return e(_[0],_[_.length-1],w??10)},f.tickFormat=function(w,_){return _==null?m:c(_)},f.nice=function(w){var _=p();return(!w||typeof w.range!="function")&&(w=t(_[0],_[_.length-1],w??10)),w?p(Kx(_,w)):f},f.copy=function(){return Mi(f,ud(e,t,r,n,i,a,o,u,s,c))},f}function u$(){return rt.apply(ud(rE,nE,Tt,ad,yo,Ci,nd,td,cr,iw).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function s$(){return rt.apply(ud(eE,tE,Et,od,mo,vo,id,rd,cr,aw).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function go(){var e=0,t=1,r,n,i,a,o=Le,u=!1,s;function c(l){return l==null||isNaN(l=+l)?s:o(i===0?.5:(l=(a(l)-r)*i,u?Math.max(0,Math.min(1,l)):l))}c.domain=function(l){return arguments.length?([e,t]=l,r=a(e=+e),n=a(t=+t),i=r===n?0:1/(n-r),c):[e,t]},c.clamp=function(l){return arguments.length?(u=!!l,c):u},c.interpolator=function(l){return arguments.length?(o=l,c):o};function f(l){return function(p){var h,y;return arguments.length?([h,y]=p,o=l(h,y),c):[o(0),o(1)]}}return c.range=f(bn),c.rangeRound=f(Hp),c.unknown=function(l){return arguments.length?(s=l,c):s},function(l){return a=l,r=l(e),n=l(t),i=r===n?0:1/(n-r),c}}function Yt(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function ow(){var e=Xt(go()(Le));return e.copy=function(){return Yt(e,ow())},kt.apply(e,arguments)}function uw(){var e=Yp(go()).domain([1,10]);return e.copy=function(){return Yt(e,uw()).base(e.base())},kt.apply(e,arguments)}function sw(){var e=Zp(go());return e.copy=function(){return Yt(e,sw()).constant(e.constant())},kt.apply(e,arguments)}function sd(){var e=Jp(go());return e.copy=function(){return Yt(e,sd()).exponent(e.exponent())},kt.apply(e,arguments)}function c$(){return sd.apply(null,arguments).exponent(.5)}function cw(){var e=[],t=Le;function r(n){if(n!=null&&!isNaN(n=+n))return t((Ei(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(Wt),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)=>Xj(e,a/n))},r.copy=function(){return cw(t).domain(e)},kt.apply(r,arguments)}function bo(){var e=0,t=.5,r=1,n=1,i,a,o,u,s,c=Le,f,l=!1,p;function h(d){return isNaN(d=+d)?p:(d=.5+((d=+f(d))-a)*(n*d<n*a?u:s),c(l?Math.max(0,Math.min(1,d)):d))}h.domain=function(d){return arguments.length?([e,t,r]=d,i=f(e=+e),a=f(t=+t),o=f(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(d){return arguments.length?(l=!!d,h):l},h.interpolator=function(d){return arguments.length?(c=d,h):c};function y(d){return function(v){var x,b,g;return arguments.length?([x,b,g]=v,c=wT(d,[x,b,g]),h):[c(0),c(.5),c(1)]}}return h.range=y(bn),h.rangeRound=y(Hp),h.unknown=function(d){return arguments.length?(p=d,h):p},function(d){return f=d,i=d(e),a=d(t),o=d(r),u=i===a?0:.5/(a-i),s=a===o?0:.5/(o-a),n=a<i?-1:1,h}}function lw(){var e=Xt(bo()(Le));return e.copy=function(){return Yt(e,lw())},kt.apply(e,arguments)}function fw(){var e=Yp(bo()).domain([.1,1,10]);return e.copy=function(){return Yt(e,fw()).base(e.base())},kt.apply(e,arguments)}function pw(){var e=Zp(bo());return e.copy=function(){return Yt(e,pw()).constant(e.constant())},kt.apply(e,arguments)}function cd(){var e=Jp(bo());return e.copy=function(){return Yt(e,cd()).exponent(e.exponent())},kt.apply(e,arguments)}function l$(){return cd.apply(null,arguments).exponent(.5)}const eg=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Jn,scaleDiverging:lw,scaleDivergingLog:fw,scaleDivergingPow:cd,scaleDivergingSqrt:l$,scaleDivergingSymlog:pw,scaleIdentity:Ux,scaleImplicit:bf,scaleLinear:ya,scaleLog:Hx,scaleOrdinal:Wp,scalePoint:Dn,scalePow:Qp,scaleQuantile:Xx,scaleQuantize:Yx,scaleRadial:Vx,scaleSequential:ow,scaleSequentialLog:uw,scaleSequentialPow:sd,scaleSequentialQuantile:cw,scaleSequentialSqrt:c$,scaleSequentialSymlog:sw,scaleSqrt:UT,scaleSymlog:Gx,scaleThreshold:Zx,scaleTime:u$,scaleUtc:s$,tickFormat:Wx},Symbol.toStringTag,{value:"Module"}));var ol,tg;function xo(){if(tg)return ol;tg=1;var e=vn();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,f=u}return f}return ol=t,ol}var ul,rg;function dw(){if(rg)return ul;rg=1;function e(t,r){return t>r}return ul=e,ul}var sl,ng;function f$(){if(ng)return sl;ng=1;var e=xo(),t=dw(),r=gn();function n(i){return i&&i.length?e(i,r,t):void 0}return sl=n,sl}var p$=f$();const Bt=le(p$);var cl,ig;function hw(){if(ig)return cl;ig=1;function e(t,r){return t<r}return cl=e,cl}var ll,ag;function d$(){if(ag)return ll;ag=1;var e=xo(),t=hw(),r=gn();function n(i){return i&&i.length?e(i,r,t):void 0}return ll=n,ll}var h$=d$();const wo=le(h$);var fl,og;function v$(){if(og)return fl;og=1;var e=Pp(),t=bt(),r=Ox(),n=ze();function i(a,o){var u=n(a)?e:r;return u(a,t(o,3))}return fl=i,fl}var pl,ug;function y$(){if(ug)return pl;ug=1;var e=xx(),t=v$();function r(n,i){return e(t(n,i),1)}return pl=r,pl}var m$=y$();const g$=le(m$);var dl,sg;function b$(){if(sg)return dl;sg=1;var e=qp();function t(r,n){return e(r,n)}return dl=t,dl}var x$=b$();const Ht=le(x$);var xn=1e9,w$={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},fd,be=!0,et="[DecimalError] ",dr=et+"Invalid argument: ",ld=et+"Exponent out of range: ",wn=Math.floor,ar=Math.pow,O$=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,He,Te=1e7,ye=7,vw=9007199254740991,xa=wn(vw/ye),K={};K.absoluteValue=K.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};K.comparedTo=K.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};K.decimalPlaces=K.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*ye;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};K.dividedBy=K.div=function(e){return Pt(this,new this.constructor(e))};K.dividedToIntegerBy=K.idiv=function(e){var t=this,r=t.constructor;return fe(Pt(t,new r(e),0,1),r.precision)};K.equals=K.eq=function(e){return!this.cmp(e)};K.exponent=function(){return _e(this)};K.greaterThan=K.gt=function(e){return this.cmp(e)>0};K.greaterThanOrEqualTo=K.gte=function(e){return this.cmp(e)>=0};K.isInteger=K.isint=function(){return this.e>this.d.length-2};K.isNegative=K.isneg=function(){return this.s<0};K.isPositive=K.ispos=function(){return this.s>0};K.isZero=function(){return this.s===0};K.lessThan=K.lt=function(e){return this.cmp(e)<0};K.lessThanOrEqualTo=K.lte=function(e){return this.cmp(e)<1};K.logarithm=K.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(He))throw Error(et+"NaN");if(r.s<1)throw Error(et+(r.s?"NaN":"-Infinity"));return r.eq(He)?new n(0):(be=!1,t=Pt(ni(r,a),ni(e,a),a),be=!0,fe(t,i))};K.minus=K.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?gw(t,e):yw(t,(e.s=-e.s,e))};K.modulo=K.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(et+"NaN");return r.s?(be=!1,t=Pt(r,e,0,1).times(e),be=!0,r.minus(t)):fe(new n(r),i)};K.naturalExponential=K.exp=function(){return mw(this)};K.naturalLogarithm=K.ln=function(){return ni(this)};K.negated=K.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};K.plus=K.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?yw(t,e):gw(t,(e.s=-e.s,e))};K.precision=K.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(dr+e);if(t=_e(i)+1,n=i.d.length-1,r=n*ye+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};K.squareRoot=K.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(et+"NaN")}for(e=_e(u),be=!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=wn((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(Pt(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(fe(a,r+1,0),a.times(a).eq(u)){n=a;break}}else if(t!="9999")break;o+=4}return be=!0,fe(n,r)};K.times=K.mul=function(e){var t,r,n,i,a,o,u,s,c,f=this,l=f.constructor,p=f.d,h=(e=new l(e)).d;if(!f.s||!e.s)return new l(0);for(e.s*=f.s,r=f.e+e.e,s=p.length,c=h.length,s<c&&(a=p,p=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]*p[i-n-1]+t,a[i--]=u%Te|0,t=u/Te|0;a[i]=(a[i]+t)%Te|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,be?fe(e,l.precision):e};K.toDecimalPlaces=K.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(mt(e,0,xn),t===void 0?t=n.rounding:mt(t,0,8),fe(r,e+_e(r)+1,t))};K.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=yr(n,!0):(mt(e,0,xn),t===void 0?t=i.rounding:mt(t,0,8),n=fe(new i(n),e+1,t),r=yr(n,!0,e+1)),r};K.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?yr(i):(mt(e,0,xn),t===void 0?t=a.rounding:mt(t,0,8),n=fe(new a(i),e+_e(i)+1,t),r=yr(n.abs(),!1,e+_e(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};K.toInteger=K.toint=function(){var e=this,t=e.constructor;return fe(new t(e),_e(e)+1,t.rounding)};K.toNumber=function(){return+this};K.toPower=K.pow=function(e){var t,r,n,i,a,o,u=this,s=u.constructor,c=12,f=+(e=new s(e));if(!e.s)return new s(He);if(u=new s(u),!u.s){if(e.s<1)throw Error(et+"Infinity");return u}if(u.eq(He))return u;if(n=s.precision,e.eq(He))return fe(u,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=u.s,o){if((r=f<0?-f:f)<=vw){for(i=new s(He),t=Math.ceil(n/ye+4),be=!1;r%2&&(i=i.times(u),lg(i.d,t)),r=wn(r/2),r!==0;)u=u.times(u),lg(u.d,t);return be=!0,e.s<0?new s(He).div(i):fe(i,n)}}else if(a<0)throw Error(et+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,u.s=1,be=!1,i=e.times(ni(u,n+c)),be=!0,i=mw(i),i.s=a,i};K.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=_e(i),n=yr(i,r<=a.toExpNeg||r>=a.toExpPos)):(mt(e,1,xn),t===void 0?t=a.rounding:mt(t,0,8),i=fe(new a(i),e,t),r=_e(i),n=yr(i,e<=r||r<=a.toExpNeg,e)),n};K.toSignificantDigits=K.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(mt(e,1,xn),t===void 0?t=n.rounding:mt(t,0,8)),fe(new n(r),e,t)};K.toString=K.valueOf=K.val=K.toJSON=K[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=_e(e),r=e.constructor;return yr(e,t<=r.toExpNeg||t>=r.toExpPos)};function yw(e,t){var r,n,i,a,o,u,s,c,f=e.constructor,l=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),be?fe(t,l):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(l/ye),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)/Te|0,s[a]%=Te;for(r&&(s.unshift(r),++i),u=s.length;s[--u]==0;)s.pop();return t.d=s,t.e=i,be?fe(t,l):t}function mt(e,t,r){if(e!==~~e||e<t||e>r)throw Error(dr+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=ye-n.length,r&&(a+=qt(r)),a+=n;o=e[t],n=o+"",r=ye-n.length,r&&(a+=qt(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var Pt=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%Te|0,o=a/Te|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*Te+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o){var u,s,c,f,l,p,h,y,d,v,x,b,g,O,m,w,_,S,j=n.constructor,$=n.s==i.s?1:-1,P=n.d,E=i.d;if(!n.s)return new j(n);if(!i.s)throw Error(et+"Division by zero");for(s=n.e-i.e,_=E.length,m=P.length,h=new j($),y=h.d=[],c=0;E[c]==(P[c]||0);)++c;if(E[c]>(P[c]||0)&&--s,a==null?b=a=j.precision:o?b=a+(_e(n)-_e(i))+1:b=a,b<0)return new j(0);if(b=b/ye+2|0,c=0,_==1)for(f=0,E=E[0],b++;(c<m||f)&&b--;c++)g=f*Te+(P[c]||0),y[c]=g/E|0,f=g%E|0;else{for(f=Te/(E[0]+1)|0,f>1&&(E=e(E,f),P=e(P,f),_=E.length,m=P.length),O=_,d=P.slice(0,_),v=d.length;v<_;)d[v++]=0;S=E.slice(),S.unshift(0),w=E[0],E[1]>=Te/2&&++w;do f=0,u=t(E,d,_,v),u<0?(x=d[0],_!=v&&(x=x*Te+(d[1]||0)),f=x/w|0,f>1?(f>=Te&&(f=Te-1),l=e(E,f),p=l.length,v=d.length,u=t(l,d,p,v),u==1&&(f--,r(l,_<p?S:E,p))):(f==0&&(u=f=1),l=E.slice()),p=l.length,p<v&&l.unshift(0),r(d,l,v),u==-1&&(v=d.length,u=t(E,d,_,v),u<1&&(f++,r(d,_<v?S:E,v))),v=d.length):u===0&&(f++,d=[0]),y[c++]=f,u&&d[0]?d[v++]=P[O]||0:(d=[P[O]],v=1);while((O++<m||d[0]!==void 0)&&b--)}return y[0]||y.shift(),h.e=s,fe(h,o?a+_e(h)+1:a)}}();function mw(e,t){var r,n,i,a,o,u,s=0,c=0,f=e.constructor,l=f.precision;if(_e(e)>16)throw Error(ld+_e(e));if(!e.s)return new f(He);for(be=!1,u=l,o=new f(.03125);e.abs().gte(.1);)e=e.times(o),c+=5;for(n=Math.log(ar(2,c))/Math.LN10*2+5|0,u+=n,r=i=a=new f(He),f.precision=u;;){if(i=fe(i.times(e),u),r=r.times(++s),o=a.plus(Pt(i,r,u)),dt(o.d).slice(0,u)===dt(a.d).slice(0,u)){for(;c--;)a=fe(a.times(a),u);return f.precision=l,t==null?(be=!0,fe(a,l)):a}a=o}}function _e(e){for(var t=e.e*ye,r=e.d[0];r>=10;r/=10)t++;return t}function hl(e,t,r){if(t>e.LN10.sd())throw be=!0,r&&(e.precision=r),Error(et+"LN10 precision limit exceeded");return fe(new e(e.LN10),t)}function qt(e){for(var t="";e--;)t+="0";return t}function ni(e,t){var r,n,i,a,o,u,s,c,f,l=1,p=10,h=e,y=h.d,d=h.constructor,v=d.precision;if(h.s<1)throw Error(et+(h.s?"NaN":"-Infinity"));if(h.eq(He))return new d(0);if(t==null?(be=!1,c=v):c=t,h.eq(10))return t==null&&(be=!0),hl(d,c);if(c+=p,d.precision=c,r=dt(y),n=r.charAt(0),a=_e(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),l++;a=_e(h),n>1?(h=new d("0."+r),a++):h=new d(n+"."+r.slice(1))}else return s=hl(d,c+2,v).times(a+""),h=ni(new d(n+"."+r.slice(1)),c-p).plus(s),d.precision=v,t==null?(be=!0,fe(h,v)):h;for(u=o=h=Pt(h.minus(He),h.plus(He),c),f=fe(h.times(h),c),i=3;;){if(o=fe(o.times(f),c),s=u.plus(Pt(o,new d(i),c)),dt(s.d).slice(0,c)===dt(u.d).slice(0,c))return u=u.times(2),a!==0&&(u=u.plus(hl(d,c+2,v).times(a+""))),u=Pt(u,new d(l),c),d.precision=v,t==null?(be=!0,fe(u,v)):u;u=s,i+=2}}function cg(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=wn(r/ye),e.d=[],n=(r+1)%ye,r<0&&(n+=ye),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=ye;n<i;)e.d.push(+t.slice(n,n+=ye));t=t.slice(n),n=ye-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),be&&(e.e>xa||e.e<-xa))throw Error(ld+r)}else e.s=0,e.e=0,e.d=[0];return e}function fe(e,t,r){var n,i,a,o,u,s,c,f,l=e.d;for(o=1,a=l[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=ye,i=t,c=l[f=0];else{if(f=Math.ceil((n+1)/ye),a=l.length,f>=a)return e;for(c=a=l[f],o=1;a>=10;a/=10)o++;n%=ye,i=n-ye+o}if(r!==void 0&&(a=ar(10,o-i-1),u=c/a%10|0,s=t<0||l[f+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/ar(10,o-i):0:l[f-1])%10&1||r==(e.s<0?8:7))),t<1||!l[0])return s?(a=_e(e),l.length=1,t=t-a-1,l[0]=ar(10,(ye-t%ye)%ye),e.e=wn(-t/ye)||0):(l.length=1,l[0]=e.e=e.s=0),e;if(n==0?(l.length=f,a=1,f--):(l.length=f+1,a=ar(10,ye-n),l[f]=i>0?(c/ar(10,o-i)%ar(10,i)|0)*a:0),s)for(;;)if(f==0){(l[0]+=a)==Te&&(l[0]=1,++e.e);break}else{if(l[f]+=a,l[f]!=Te)break;l[f--]=0,a=1}for(n=l.length;l[--n]===0;)l.pop();if(be&&(e.e>xa||e.e<-xa))throw Error(ld+_e(e));return e}function gw(e,t){var r,n,i,a,o,u,s,c,f,l,p=e.constructor,h=p.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new p(e),be?fe(t,h):t;if(s=e.d,l=t.d,n=t.e,c=e.e,s=s.slice(),o=c-n,o){for(f=o<0,f?(r=s,o=-o,u=l.length):(r=l,n=c,u=s.length),i=Math.max(Math.ceil(h/ye),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=l.length,f=i<u,f&&(u=i),i=0;i<u;i++)if(s[i]!=l[i]){f=s[i]<l[i];break}o=0}for(f&&(r=s,s=l,l=r,t.s=-t.s),u=s.length,i=l.length-u;i>0;--i)s[u++]=0;for(i=l.length;i>o;){if(s[--i]<l[i]){for(a=i;a&&s[--a]===0;)s[a]=Te-1;--s[a],s[i]+=Te}s[i]-=l[i]}for(;s[--u]===0;)s.pop();for(;s[0]===0;s.shift())--n;return s[0]?(t.d=s,t.e=n,be?fe(t,h):t):new p(0)}function yr(e,t,r){var n,i=_e(e),a=dt(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+qt(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+qt(-i-1)+a,r&&(n=r-o)>0&&(a+=qt(n))):i>=o?(a+=qt(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+qt(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=qt(n))),e.s<0?"-"+a:a}function lg(e,t){if(e.length>t)return e.length=t,!0}function bw(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(dr+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 cg(o,a.toString())}else if(typeof a!="string")throw Error(dr+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,O$.test(a))cg(o,a);else throw Error(dr+a)}if(i.prototype=K,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=bw,i.config=i.set=_$,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 _$(e){if(!e||typeof e!="object")throw Error(et+"Object expected");var t,r,n,i=["precision",1,xn,"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(wn(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(dr+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(dr+r+": "+n);return this}var fd=bw(w$);He=new fd(1);const ce=fd;function A$(e){return T$(e)||j$(e)||P$(e)||S$()}function S$(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function P$(e,t){if(e){if(typeof e=="string")return _f(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 _f(e,t)}}function j$(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function T$(e){if(Array.isArray(e))return _f(e)}function _f(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 E$=function(t){return t},xw={},ww=function(t){return t===xw},fg=function(t){return function r(){return arguments.length===0||arguments.length===1&&ww(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},$$=function e(t,r){return t===1?r:fg(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!==xw}).length;return o>=t?r.apply(void 0,i):e(t-o,fg(function(){for(var u=arguments.length,s=new Array(u),c=0;c<u;c++)s[c]=arguments[c];var f=i.map(function(l){return ww(l)?s.shift():l});return r.apply(void 0,A$(f).concat(s))}))})},Oo=function(t){return $$(t.length,t)},Af=function(t,r){for(var n=[],i=t;i<r;++i)n[i-t]=i;return n},M$=Oo(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),C$=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return E$;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))}},Sf=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},Ow=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 I$(e){var t;return e===0?t=1:t=Math.floor(new ce(e).abs().log(10).toNumber())+1,t}function k$(e,t,r){for(var n=new ce(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var N$=Oo(function(e,t,r){var n=+e,i=+t;return n+r*(i-n)}),R$=Oo(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),D$=Oo(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const _o={rangeStep:k$,getDigitCount:I$,interpolateNumber:N$,uninterpolateNumber:R$,uninterpolateTruncation:D$};function Pf(e){return B$(e)||L$(e)||_w(e)||q$()}function q$(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function L$(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function B$(e){if(Array.isArray(e))return jf(e)}function ii(e,t){return W$(e)||z$(e,t)||_w(e,t)||F$()}function F$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _w(e,t){if(e){if(typeof e=="string")return jf(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 jf(e,t)}}function jf(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 z$(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 W$(e){if(Array.isArray(e))return e}function Aw(e){var t=ii(e,2),r=t[0],n=t[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function Sw(e,t,r){if(e.lte(0))return new ce(0);var n=_o.getDigitCount(e.toNumber()),i=new ce(10).pow(n),a=e.div(i),o=n!==1?.05:.1,u=new ce(Math.ceil(a.div(o).toNumber())).add(r).mul(o),s=u.mul(i);return t?s:new ce(Math.ceil(s))}function U$(e,t,r){var n=1,i=new ce(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new ce(10).pow(_o.getDigitCount(e)-1),i=new ce(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new ce(Math.floor(e)))}else e===0?i=new ce(Math.floor((t-1)/2)):r||(i=new ce(Math.floor(e)));var o=Math.floor((t-1)/2),u=C$(M$(function(s){return i.add(new ce(s-o).mul(n)).toNumber()}),Af);return u(0,t)}function Pw(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 ce(0),tickMin:new ce(0),tickMax:new ce(0)};var a=Sw(new ce(t).sub(e).div(r-1),n,i),o;e<=0&&t>=0?o=new ce(0):(o=new ce(e).add(t).div(2),o=o.sub(new ce(o).mod(a)));var u=Math.ceil(o.sub(e).div(a).toNumber()),s=Math.ceil(new ce(t).sub(o).div(a).toNumber()),c=u+s+1;return c>r?Pw(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 ce(u).mul(a)),tickMax:o.add(new ce(s).mul(a))})}function K$(e){var t=ii(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=Aw([r,n]),s=ii(u,2),c=s[0],f=s[1];if(c===-1/0||f===1/0){var l=f===1/0?[c].concat(Pf(Af(0,i-1).map(function(){return 1/0}))):[].concat(Pf(Af(0,i-1).map(function(){return-1/0})),[f]);return r>n?Sf(l):l}if(c===f)return U$(c,i,a);var p=Pw(c,f,o,a),h=p.step,y=p.tickMin,d=p.tickMax,v=_o.rangeStep(y,d.add(new ce(.1).mul(h)),h);return r>n?Sf(v):v}function H$(e,t){var r=ii(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Aw([n,i]),u=ii(o,2),s=u[0],c=u[1];if(s===-1/0||c===1/0)return[n,i];if(s===c)return[s];var f=Math.max(t,2),l=Sw(new ce(c).sub(s).div(f-1),a,0),p=[].concat(Pf(_o.rangeStep(new ce(s),new ce(c).sub(new ce(.99).mul(l)),l)),[c]);return n>i?Sf(p):p}var G$=Ow(K$),V$=Ow(H$),X$="Invariant failed";function mr(e,t){throw new Error(X$)}var Y$=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Kr(e){"@babel/helpers - typeof";return Kr=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},Kr(e)}function wa(){return wa=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},wa.apply(this,arguments)}function Z$(e,t){return tM(e)||eM(e,t)||Q$(e,t)||J$()}function J$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Q$(e,t){if(e){if(typeof e=="string")return pg(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 pg(e,t)}}function pg(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 eM(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(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function tM(e){if(Array.isArray(e))return e}function rM(e,t){if(e==null)return{};var r=nM(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 nM(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 iM(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function aM(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,Ew(n.key),n)}}function oM(e,t,r){return t&&aM(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function uM(e,t,r){return t=Oa(t),sM(e,jw()?Reflect.construct(t,r||[],Oa(e).constructor):t.apply(e,r))}function sM(e,t){if(t&&(Kr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return cM(e)}function cM(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(jw=function(){return!!e})()}function Oa(e){return Oa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Oa(e)}function lM(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&&Tf(e,t)}function Tf(e,t){return Tf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Tf(e,t)}function Tw(e,t,r){return t=Ew(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ew(e){var t=fM(e,"string");return Kr(t)=="symbol"?t:t+""}function fM(e,t){if(Kr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Kr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var On=function(e){function t(){return iM(this,t),uM(this,t,arguments)}return lM(t,e),oM(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,f=n.xAxis,l=n.yAxis,p=rM(n,Y$),h=G(p,!1);this.props.direction==="x"&&f.type!=="number"&&mr();var y=s.map(function(d){var v=c(d,u),x=v.x,b=v.y,g=v.value,O=v.errorVal;if(!O)return null;var m=[],w,_;if(Array.isArray(O)){var S=Z$(O,2);w=S[0],_=S[1]}else w=_=O;if(a==="vertical"){var j=f.scale,$=b+i,P=$+o,E=$-o,M=j(g-w),C=j(g+_);m.push({x1:C,y1:P,x2:C,y2:E}),m.push({x1:M,y1:$,x2:C,y2:$}),m.push({x1:M,y1:P,x2:M,y2:E})}else if(a==="horizontal"){var I=l.scale,k=x+i,q=k-o,z=k+o,W=I(g-w),V=I(g+_);m.push({x1:q,y1:V,x2:z,y2:V}),m.push({x1:k,y1:W,x2:k,y2:V}),m.push({x1:q,y1:W,x2:z,y2:W})}return A.createElement(re,wa({className:"recharts-errorBar",key:"bar-".concat(m.map(function(N){return"".concat(N.x1,"-").concat(N.x2,"-").concat(N.y1,"-").concat(N.y2)}))},h),m.map(function(N){return A.createElement("line",wa({},N,{key:"line-".concat(N.x1,"-").concat(N.x2,"-").concat(N.y1,"-").concat(N.y2)}))}))});return A.createElement(re,{className:"recharts-errorBars"},y)}}])}(A.Component);Tw(On,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});Tw(On,"displayName","ErrorBar");function ai(e){"@babel/helpers - typeof";return ai=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},ai(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 er(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){pM(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 pM(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=hM(e,"string");return ai(t)=="symbol"?t:t+""}function hM(e,t){if(ai(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ai(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var $w=function(t){var r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,a=t.legendContent,o=Ke(r,kr);if(!o)return null;var u=kr.defaultProps,s=u!==void 0?er(er({},u),o.props):{},c;return o.props&&o.props.payload?c=o.props&&o.props.payload:a==="children"?c=(n||[]).reduce(function(f,l){var p=l.item,h=l.props,y=h.sectors||h.data||[];return f.concat(y.map(function(d){return{type:o.props.iconType||p.props.legendType,value:d.name,color:d.fill,payload:d}}))},[]):c=(n||[]).map(function(f){var l=f.item,p=l.type.defaultProps,h=p!==void 0?er(er({},p),l.props):{},y=h.dataKey,d=h.name,v=h.legendType,x=h.hide;return{inactive:x,dataKey:y,type:s.iconType||v||"square",color:pd(l),value:d||y,payload:h}}),er(er(er({},s),kr.getWithHeight(o,i)),{},{payload:c,item:o})};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 hg(e){return gM(e)||mM(e)||yM(e)||vM()}function vM(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yM(e,t){if(e){if(typeof e=="string")return Ef(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 Ef(e,t)}}function mM(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function gM(e){if(Array.isArray(e))return Ef(e)}function Ef(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 vg(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?vg(Object(r),!0).forEach(function(n){Rr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Rr(e,t,r){return t=bM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bM(e){var t=xM(e,"string");return oi(t)=="symbol"?t:t+""}function xM(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 me(e,t,r){return Y(e)||Y(t)?r:Se(t)?Ge(e,t,r):X(t)?t(e):r}function qn(e,t,r,n){var i=g$(e,function(u){return me(u,t)});if(r==="number"){var a=i.filter(function(u){return F(u)||parseFloat(u)});return a.length?[wo(a),Bt(a)]:[1/0,-1/0]}var o=n?i.filter(function(u){return!Y(u)}):i;return o.map(function(u){return Se(u)||u instanceof Date?u:""})}var wM=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==null?void 0: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 f=c>0?i[c-1].coordinate:i[u-1].coordinate,l=i[c].coordinate,p=c>=u-1?i[0].coordinate:i[c+1].coordinate,h=void 0;if(De(l-f)!==De(p-l)){var y=[];if(De(p-l)===De(s[1]-s[0])){h=p;var d=l+s[1]-s[0];y[0]=Math.min(d,(d+f)/2),y[1]=Math.max(d,(d+f)/2)}else{h=f;var v=p+s[1]-s[0];y[0]=Math.min(l,(v+l)/2),y[1]=Math.max(l,(v+l)/2)}var x=[Math.min(l,(h+l)/2),Math.max(l,(h+l)/2)];if(t>x[0]&&t<=x[1]||t>=y[0]&&t<=y[1]){o=i[c].index;break}}else{var b=Math.min(f,p),g=Math.max(f,p);if(t>(b+l)/2&&t<=(g+l)/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},pd=function(t){var r,n=t,i=n.type.displayName,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?we(we({},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},OM=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 f=a[u[s]].stackGroups,l=Object.keys(f),p=0,h=l.length;p<h;p++){var y=f[l[p]],d=y.items,v=y.cateAxisId,x=d.filter(function(_){return St(_.type).indexOf("Bar")>=0});if(x&&x.length){var b=x[0].type.defaultProps,g=b!==void 0?we(we({},b),x[0].props):x[0].props,O=g.barSize,m=g[v];o[m]||(o[m]=[]);var w=Y(O)?r:O;o[m].push({item:x[0],stackList:x.slice(1),barSize:Y(w)?void 0:qe(w,n,0)})}}return o},_M=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=qe(r,i,0,!0),f,l=[];if(o[0].barSize===+o[0].barSize){var p=!1,h=i/s,y=o.reduce(function(O,m){return O+m.barSize||0},0);y+=(s-1)*c,y>=i&&(y-=(s-1)*c,c=0),y>=i&&h>0&&(p=!0,h*=.9,y=s*h);var d=(i-y)/2>>0,v={offset:d-c,size:0};f=o.reduce(function(O,m){var w={item:m.item,position:{offset:v.offset+v.size+c,size:p?h:m.barSize}},_=[].concat(hg(O),[w]);return v=_[_.length-1].position,m.stackList&&m.stackList.length&&m.stackList.forEach(function(S){_.push({item:S,position:v})}),_},l)}else{var x=qe(n,i,0,!0);i-2*x-(s-1)*c<=0&&(c=0);var b=(i-2*x-(s-1)*c)/s;b>1&&(b>>=0);var g=u===+u?Math.min(b,u):b;f=o.reduce(function(O,m,w){var _=[].concat(hg(O),[{item:m.item,position:{offset:x+(b+c)*w+(b-g)/2,size:g}}]);return m.stackList&&m.stackList.length&&m.stackList.forEach(function(S){_.push({item:S,position:_[_.length-1].position})}),_},l)}return f},AM=function(t,r,n,i){var a=n.children,o=n.width,u=n.margin,s=o-(u.left||0)-(u.right||0),c=$w({children:a,legendWidth:s});if(c){var f=i||{},l=f.width,p=f.height,h=c.align,y=c.verticalAlign,d=c.layout;if((d==="vertical"||d==="horizontal"&&y==="middle")&&h!=="center"&&F(t[h]))return we(we({},t),{},Rr({},h,t[h]+(l||0)));if((d==="horizontal"||d==="vertical"&&h==="center")&&y!=="middle"&&F(t[y]))return we(we({},t),{},Rr({},y,t[y]+(p||0)))}return t},SM=function(t,r,n){return Y(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},Mw=function(t,r,n,i,a){var o=r.props.children,u=Be(o,On).filter(function(c){return SM(i,a,c.props.direction)});if(u&&u.length){var s=u.map(function(c){return c.props.dataKey});return t.reduce(function(c,f){var l=me(f,n);if(Y(l))return c;var p=Array.isArray(l)?[wo(l),Bt(l)]:[l,l],h=s.reduce(function(y,d){var v=me(f,d,0),x=p[0]-Math.abs(Array.isArray(v)?v[0]:v),b=p[1]+Math.abs(Array.isArray(v)?v[1]:v);return[Math.min(x,y[0]),Math.max(b,y[1])]},[1/0,-1/0]);return[Math.min(h[0],c[0]),Math.max(h[1],c[1])]},[1/0,-1/0])}return null},PM=function(t,r,n,i,a){var o=r.map(function(u){return Mw(t,u,n,a,i)}).filter(function(u){return!Y(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},Cw=function(t,r,n,i,a){var o=r.map(function(s){var c=s.props.dataKey;return n==="number"&&c&&Mw(t,s,c,i)||qn(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 f=0,l=c.length;f<l;f++)u[c[f]]||(u[c[f]]=!0,s.push(c[f]));return s},[])},Iw=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},kw=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},At=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==null?void 0:u.length)>=2?De(u[0]-u[1])*2*c:c,r&&(t.ticks||t.niceTicks)){var f=(t.ticks||t.niceTicks).map(function(l){var p=a?a.indexOf(l):l;return{coordinate:i(p)+c,value:l,offset:c}});return f.filter(function(l){return!mn(l.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(l,p){return{coordinate:i(l)+c,value:l,index:p,offset:c}}):i.ticks&&!n?i.ticks(t.tickCount).map(function(l){return{coordinate:i(l)+c,value:l,offset:c}}):i.domain().map(function(l,p){return{coordinate:i(l)+c,value:a?a[l]:l,index:p,offset:c}})},vl=new WeakMap,Ki=function(t,r){if(typeof r!="function")return t;vl.has(t)||vl.set(t,new WeakMap);var n=vl.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},Nw=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:Jn(),realScaleType:"band"}:o==="radial"&&u==="angleAxis"?{scale:ya(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:Dn(),realScaleType:"point"}:a==="category"?{scale:Jn(),realScaleType:"band"}:{scale:ya(),realScaleType:"linear"};if(hr(i)){var s="scale".concat(io(i));return{scale:(eg[s]||Dn)(),realScaleType:eg[s]?s:"point"}}return X(i)?{scale:i}:{scale:Dn(),realScaleType:"point"}},yg=1e-4,Rw=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])-yg,o=Math.max(i[0],i[1])+yg,u=t(r[0]),s=t(r[n-1]);(u<a||u>o||s<a||s>o)&&t.domain([r[0],r[n-1]])}},jM=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},TM=function(t,r){if(!r||r.length!==2||!F(r[0])||!F(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(!F(t[0])||t[0]<n)&&(a[0]=n),(!F(t[1])||t[1]>i)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]<n&&(a[1]=n),a},EM=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=mn(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])}},$M=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=mn(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)}},MM={sign:EM,expand:m1,none:Dr,silhouette:g1,wiggle:b1,positive:$M},CM=function(t,r,n){var i=r.map(function(u){return u.props.dataKey}),a=MM[n],o=y1().keys(i).value(function(u,s){return+me(u,s,0)}).order(af).offset(a);return o(t)},IM=function(t,r,n,i,a,o){if(!t)return null;var u=o?r.reverse():r,s={},c=u.reduce(function(l,p){var h,y=(h=p.type)!==null&&h!==void 0&&h.defaultProps?we(we({},p.type.defaultProps),p.props):p.props,d=y.stackId,v=y.hide;if(v)return l;var x=y[n],b=l[x]||{hasStack:!1,stackGroups:{}};if(Se(d)){var g=b.stackGroups[d]||{numericAxisId:n,cateAxisId:i,items:[]};g.items.push(p),b.hasStack=!0,b.stackGroups[d]=g}else b.stackGroups[Vt("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[p]};return we(we({},l),{},Rr({},x,b))},s),f={};return Object.keys(c).reduce(function(l,p){var h=c[p];if(h.hasStack){var y={};h.stackGroups=Object.keys(h.stackGroups).reduce(function(d,v){var x=h.stackGroups[v];return we(we({},d),{},Rr({},v,{numericAxisId:n,cateAxisId:i,items:x.items,stackedData:CM(t,x.items,a)}))},y)}return we(we({},l),{},Rr({},p,h))},f)},Dw=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 f=G$(c,a,u);return t.domain([wo(f),Bt(f)]),{niceTicks:f}}if(a&&i==="number"){var l=t.domain(),p=V$(l,a,u);return{niceTicks:p}}return null};function Hr(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&&!Y(i[t.dataKey])){var u=Ji(r,"value",i[t.dataKey]);if(u)return u.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var s=me(i,Y(o)?t.dataKey:o);return Y(s)?null:t.scale(s)}var mg=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=me(o,r.dataKey,r.domain[u]);return Y(s)?null:r.scale(s)-a/2+i},kM=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]},NM=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?we(we({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(Se(a)){var o=r[a];if(o){var u=o.items.indexOf(t);return u>=0?o.stackedData[u]:null}}return null},RM=function(t){return t.reduce(function(r,n){return[wo(n.concat([r[0]]).filter(F)),Bt(n.concat([r[1]]).filter(F))]},[1/0,-1/0])},qw=function(t,r,n){return Object.keys(t).reduce(function(i,a){var o=t[a],u=o.stackedData,s=u.reduce(function(c,f){var l=RM(f.slice(r,n+1));return[Math.min(c[0],l[0]),Math.max(c[1],l[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})},gg=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,bg=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,$f=function(t,r,n){if(X(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(F(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(gg.test(t[0])){var a=+gg.exec(t[0])[1];i[0]=r[0]-a}else X(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(F(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(bg.test(t[1])){var o=+bg.exec(t[1])[1];i[1]=r[1]+o}else X(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},_a=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=Bp(r,function(l){return l.coordinate}),o=1/0,u=1,s=a.length;u<s;u++){var c=a[u],f=a[u-1];o=Math.min((c.coordinate||0)-(f.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},xg=function(t,r,n){return!t||!t.length||Ht(t,Ge(n,"type.defaultProps.domain"))?r:t},Lw=function(t,r){var n=t.type.defaultProps?we(we({},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,f=n.hide;return we(we({},G(t,!1)),{},{dataKey:i,unit:o,formatter:u,name:a||i,color:pd(t),value:me(r,i),type:s,payload:r,chartType:c,hide:f})};function ui(e){"@babel/helpers - typeof";return ui=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},ui(e)}function wg(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?wg(Object(r),!0).forEach(function(n){Bw(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Bw(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=qM(e,"string");return ui(t)=="symbol"?t:t+""}function qM(e,t){if(ui(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ui(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function LM(e,t){return WM(e)||zM(e,t)||FM(e,t)||BM()}function BM(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function FM(e,t){if(e){if(typeof e=="string")return Og(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 Og(e,t)}}function Og(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 zM(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(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function WM(e){if(Array.isArray(e))return e}var Aa=Math.PI/180,UM=function(t){return t*180/Math.PI},he=function(t,r,n,i){return{x:t+Math.cos(-Aa*i)*n,y:r+Math.sin(-Aa*i)*n}},Fw=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},KM=function(t,r,n,i,a){var o=t.width,u=t.height,s=t.startAngle,c=t.endAngle,f=qe(t.cx,o,o/2),l=qe(t.cy,u,u/2),p=Fw(o,u,n),h=qe(t.innerRadius,p,0),y=qe(t.outerRadius,p,p*.8),d=Object.keys(r);return d.reduce(function(v,x){var b=r[x],g=b.domain,O=b.reversed,m;if(Y(b.range))i==="angleAxis"?m=[s,c]:i==="radiusAxis"&&(m=[h,y]),O&&(m=[m[1],m[0]]);else{m=b.range;var w=m,_=LM(w,2);s=_[0],c=_[1]}var S=Nw(b,a),j=S.realScaleType,$=S.scale;$.domain(g).range(m),Rw($);var P=Dw($,wt(wt({},b),{},{realScaleType:j})),E=wt(wt(wt({},b),P),{},{range:m,radius:y,realScaleType:j,scale:$,cx:f,cy:l,innerRadius:h,outerRadius:y,startAngle:s,endAngle:c});return wt(wt({},v),{},Bw({},x,E))},{})},HM=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))},GM=function(t,r){var n=t.x,i=t.y,a=r.cx,o=r.cy,u=HM({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:UM(c),angleInRadian:c}},VM=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}},XM=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},_g=function(t,r){var n=t.x,i=t.y,a=GM({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 f=VM(r),l=f.startAngle,p=f.endAngle,h=u,y;if(l<=p){for(;h>p;)h-=360;for(;h<l;)h+=360;y=h>=l&&h<=p}else{for(;h>l;)h-=360;for(;h<p;)h+=360;y=h>=p&&h<=l}return y?wt(wt({},r),{},{radius:o,angle:XM(h,r)}):null},zw=function(t){return!B.isValidElement(t)&&!X(t)&&typeof t!="boolean"?t.className:""};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 YM=["offset"];function ZM(e){return tC(e)||eC(e)||QM(e)||JM()}function JM(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function QM(e,t){if(e){if(typeof e=="string")return Mf(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 Mf(e,t)}}function eC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function tC(e){if(Array.isArray(e))return Mf(e)}function Mf(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 rC(e,t){if(e==null)return{};var r=nC(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 nC(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 Ag(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ae(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ag(Object(r),!0).forEach(function(n){iC(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ag(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function iC(e,t,r){return t=aC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function aC(e){var t=oC(e,"string");return si(t)=="symbol"?t:t+""}function oC(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 ci(){return ci=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ci.apply(this,arguments)}var uC=function(t){var r=t.value,n=t.formatter,i=Y(t.children)?r:t.children;return X(n)?n(i):i},sC=function(t,r){var n=De(r-t),i=Math.min(Math.abs(r-t),360);return n*i},cC=function(t,r,n){var i=t.position,a=t.viewBox,o=t.offset,u=t.className,s=a,c=s.cx,f=s.cy,l=s.innerRadius,p=s.outerRadius,h=s.startAngle,y=s.endAngle,d=s.clockWise,v=(l+p)/2,x=sC(h,y),b=x>=0?1:-1,g,O;i==="insideStart"?(g=h+b*o,O=d):i==="insideEnd"?(g=y-b*o,O=!d):i==="end"&&(g=y+b*o,O=d),O=x<=0?O:!O;var m=he(c,f,v,g),w=he(c,f,v,g+(O?1:-1)*359),_="M".concat(m.x,",").concat(m.y,`
    A`).concat(v,",").concat(v,",0,1,").concat(O?0:1,`,
    `).concat(w.x,",").concat(w.y),S=Y(t.id)?Vt("recharts-radial-line-"):t.id;return A.createElement("text",ci({},n,{dominantBaseline:"central",className:te("recharts-radial-bar-label",u)}),A.createElement("defs",null,A.createElement("path",{id:S,d:_})),A.createElement("textPath",{xlinkHref:"#".concat(S)},r))},lC=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,f=a.startAngle,l=a.endAngle,p=(f+l)/2;if(i==="outside"){var h=he(o,u,c+n,p),y=h.x,d=h.y;return{x:y,y:d,textAnchor:y>=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 v=(s+c)/2,x=he(o,u,v,p),b=x.x,g=x.y;return{x:b,y:g,textAnchor:"middle",verticalAnchor:"middle"}},fC=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,f=o.height,l=f>=0?1:-1,p=l*i,h=l>0?"end":"start",y=l>0?"start":"end",d=c>=0?1:-1,v=d*i,x=d>0?"end":"start",b=d>0?"start":"end";if(a==="top"){var g={x:u+c/2,y:s-l*i,textAnchor:"middle",verticalAnchor:h};return Ae(Ae({},g),n?{height:Math.max(s-n.y,0),width:c}:{})}if(a==="bottom"){var O={x:u+c/2,y:s+f+p,textAnchor:"middle",verticalAnchor:y};return Ae(Ae({},O),n?{height:Math.max(n.y+n.height-(s+f),0),width:c}:{})}if(a==="left"){var m={x:u-v,y:s+f/2,textAnchor:x,verticalAnchor:"middle"};return Ae(Ae({},m),n?{width:Math.max(m.x-n.x,0),height:f}:{})}if(a==="right"){var w={x:u+c+v,y:s+f/2,textAnchor:b,verticalAnchor:"middle"};return Ae(Ae({},w),n?{width:Math.max(n.x+n.width-w.x,0),height:f}:{})}var _=n?{width:c,height:f}:{};return a==="insideLeft"?Ae({x:u+v,y:s+f/2,textAnchor:b,verticalAnchor:"middle"},_):a==="insideRight"?Ae({x:u+c-v,y:s+f/2,textAnchor:x,verticalAnchor:"middle"},_):a==="insideTop"?Ae({x:u+c/2,y:s+p,textAnchor:"middle",verticalAnchor:y},_):a==="insideBottom"?Ae({x:u+c/2,y:s+f-p,textAnchor:"middle",verticalAnchor:h},_):a==="insideTopLeft"?Ae({x:u+v,y:s+p,textAnchor:b,verticalAnchor:y},_):a==="insideTopRight"?Ae({x:u+c-v,y:s+p,textAnchor:x,verticalAnchor:y},_):a==="insideBottomLeft"?Ae({x:u+v,y:s+f-p,textAnchor:b,verticalAnchor:h},_):a==="insideBottomRight"?Ae({x:u+c-v,y:s+f-p,textAnchor:x,verticalAnchor:h},_):yn(a)&&(F(a.x)||ur(a.x))&&(F(a.y)||ur(a.y))?Ae({x:u+qe(a.x,c),y:s+qe(a.y,f),textAnchor:"end",verticalAnchor:"end"},_):Ae({x:u+c/2,y:s+f/2,textAnchor:"middle",verticalAnchor:"middle"},_)},pC=function(t){return"cx"in t&&F(t.cx)};function Ee(e){var t=e.offset,r=t===void 0?5:t,n=rC(e,YM),i=Ae({offset:r},n),a=i.viewBox,o=i.position,u=i.value,s=i.children,c=i.content,f=i.className,l=f===void 0?"":f,p=i.textBreakAll;if(!a||Y(u)&&Y(s)&&!B.isValidElement(c)&&!X(c))return null;if(B.isValidElement(c))return B.cloneElement(c,i);var h;if(X(c)){if(h=B.createElement(c,i),B.isValidElement(h))return h}else h=uC(i);var y=pC(a),d=G(i,!0);if(y&&(o==="insideStart"||o==="insideEnd"||o==="end"))return cC(i,h,d);var v=y?lC(i):fC(i);return A.createElement(vr,ci({className:te("recharts-label",l)},d,v,{breakAll:p}),h)}Ee.displayName="Label";var Ww=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,f=t.outerRadius,l=t.x,p=t.y,h=t.top,y=t.left,d=t.width,v=t.height,x=t.clockWise,b=t.labelViewBox;if(b)return b;if(F(d)&&F(v)){if(F(l)&&F(p))return{x:l,y:p,width:d,height:v};if(F(h)&&F(y))return{x:h,y,width:d,height:v}}return F(l)&&F(p)?{x:l,y:p,width:0,height:0}:F(r)&&F(n)?{cx:r,cy:n,startAngle:a||i||0,endAngle:o||i||0,innerRadius:c||0,outerRadius:f||s||u||0,clockWise:x}:t.viewBox?t.viewBox:{}},dC=function(t,r){return t?t===!0?A.createElement(Ee,{key:"label-implicit",viewBox:r}):Se(t)?A.createElement(Ee,{key:"label-implicit",viewBox:r,value:t}):B.isValidElement(t)?t.type===Ee?B.cloneElement(t,{key:"label-implicit",viewBox:r}):A.createElement(Ee,{key:"label-implicit",content:t,viewBox:r}):X(t)?A.createElement(Ee,{key:"label-implicit",content:t,viewBox:r}):yn(t)?A.createElement(Ee,ci({viewBox:r},t,{key:"label-implicit"})):null:null},hC=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=Ww(t),o=Be(i,Ee).map(function(s,c){return B.cloneElement(s,{viewBox:r||a,key:"label-".concat(c)})});if(!n)return o;var u=dC(t.label,r||a);return[u].concat(ZM(o))};Ee.parseViewBox=Ww;Ee.renderCallByParent=hC;var yl,Sg;function vC(){if(Sg)return yl;Sg=1;function e(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}return yl=e,yl}var yC=vC();const mC=le(yC);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 gC=["valueAccessor"],bC=["data","dataKey","clockWise","id","textBreakAll"];function xC(e){return AC(e)||_C(e)||OC(e)||wC()}function wC(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function OC(e,t){if(e){if(typeof e=="string")return Cf(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 Cf(e,t)}}function _C(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function AC(e){if(Array.isArray(e))return Cf(e)}function Cf(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 Sa(){return Sa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Sa.apply(this,arguments)}function Pg(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 jg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Pg(Object(r),!0).forEach(function(n){SC(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function SC(e,t,r){return t=PC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function PC(e){var t=jC(e,"string");return li(t)=="symbol"?t:t+""}function jC(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 Tg(e,t){if(e==null)return{};var r=TC(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 TC(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 EC=function(t){return Array.isArray(t.value)?mC(t.value):t.value};function ct(e){var t=e.valueAccessor,r=t===void 0?EC:t,n=Tg(e,gC),i=n.data,a=n.dataKey,o=n.clockWise,u=n.id,s=n.textBreakAll,c=Tg(n,bC);return!i||!i.length?null:A.createElement(re,{className:"recharts-label-list"},i.map(function(f,l){var p=Y(a)?r(f,l):me(f&&f.payload,a),h=Y(u)?{}:{id:"".concat(u,"-").concat(l)};return A.createElement(Ee,Sa({},G(f,!0),c,h,{parentViewBox:f.parentViewBox,value:p,textBreakAll:s,viewBox:Ee.parseViewBox(Y(o)?f:jg(jg({},f),{},{clockWise:o})),key:"label-".concat(l),index:l}))}))}ct.displayName="LabelList";function $C(e,t){return e?e===!0?A.createElement(ct,{key:"labelList-implicit",data:t}):A.isValidElement(e)||X(e)?A.createElement(ct,{key:"labelList-implicit",data:t,content:e}):yn(e)?A.createElement(ct,Sa({data:t},e,{key:"labelList-implicit"})):null:null}function MC(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=Be(n,ct).map(function(o,u){return B.cloneElement(o,{data:t,key:"labelList-".concat(u)})});if(!r)return i;var a=$C(e.label,t);return[a].concat(xC(i))}ct.renderCallByParent=MC;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 If(){return If=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},If.apply(this,arguments)}function Eg(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 $g(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Eg(Object(r),!0).forEach(function(n){CC(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Eg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function CC(e,t,r){return t=IC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function IC(e){var t=kC(e,"string");return fi(t)=="symbol"?t:t+""}function kC(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)}var NC=function(t,r){var n=De(r-t),i=Math.min(Math.abs(r-t),359.999);return n*i},Hi=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,f=s*(u?1:-1)+i,l=Math.asin(s/f)/Aa,p=c?a:a+o*l,h=he(r,n,f,p),y=he(r,n,i,p),d=c?a-o*l:a,v=he(r,n,f*Math.cos(l*Aa),d);return{center:h,circleTangency:y,lineTangency:v,theta:l}},Uw=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.startAngle,u=t.endAngle,s=NC(o,u),c=o+s,f=he(r,n,a,o),l=he(r,n,a,c),p="M ".concat(f.x,",").concat(f.y,`
    A `).concat(a,",").concat(a,`,0,
    `).concat(+(Math.abs(s)>180),",").concat(+(o>c),`,
    `).concat(l.x,",").concat(l.y,`
  `);if(i>0){var h=he(r,n,i,o),y=he(r,n,i,c);p+="L ".concat(y.x,",").concat(y.y,`
            A `).concat(i,",").concat(i,`,0,
            `).concat(+(Math.abs(s)>180),",").concat(+(o<=c),`,
            `).concat(h.x,",").concat(h.y," Z")}else p+="L ".concat(r,",").concat(n," Z");return p},RC=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,f=t.endAngle,l=De(f-c),p=Hi({cx:r,cy:n,radius:a,angle:c,sign:l,cornerRadius:o,cornerIsExternal:s}),h=p.circleTangency,y=p.lineTangency,d=p.theta,v=Hi({cx:r,cy:n,radius:a,angle:f,sign:-l,cornerRadius:o,cornerIsExternal:s}),x=v.circleTangency,b=v.lineTangency,g=v.theta,O=s?Math.abs(c-f):Math.abs(c-f)-d-g;if(O<0)return u?"M ".concat(y.x,",").concat(y.y,`
        a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0
        a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0
      `):Uw({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:c,endAngle:f});var m="M ".concat(y.x,",").concat(y.y,`
    A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(h.x,",").concat(h.y,`
    A`).concat(a,",").concat(a,",0,").concat(+(O>180),",").concat(+(l<0),",").concat(x.x,",").concat(x.y,`
    A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(b.x,",").concat(b.y,`
  `);if(i>0){var w=Hi({cx:r,cy:n,radius:i,angle:c,sign:l,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),_=w.circleTangency,S=w.lineTangency,j=w.theta,$=Hi({cx:r,cy:n,radius:i,angle:f,sign:-l,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),P=$.circleTangency,E=$.lineTangency,M=$.theta,C=s?Math.abs(c-f):Math.abs(c-f)-j-M;if(C<0&&o===0)return"".concat(m,"L").concat(r,",").concat(n,"Z");m+="L".concat(E.x,",").concat(E.y,`
      A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(P.x,",").concat(P.y,`
      A`).concat(i,",").concat(i,",0,").concat(+(C>180),",").concat(+(l>0),",").concat(_.x,",").concat(_.y,`
      A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(S.x,",").concat(S.y,"Z")}else m+="L".concat(r,",").concat(n,"Z");return m},DC={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},Kw=function(t){var r=$g($g({},DC),t),n=r.cx,i=r.cy,a=r.innerRadius,o=r.outerRadius,u=r.cornerRadius,s=r.forceCornerRadius,c=r.cornerIsExternal,f=r.startAngle,l=r.endAngle,p=r.className;if(o<a||f===l)return null;var h=te("recharts-sector",p),y=o-a,d=qe(u,y,0,!0),v;return d>0&&Math.abs(f-l)<360?v=RC({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(d,y/2),forceCornerRadius:s,cornerIsExternal:c,startAngle:f,endAngle:l}):v=Uw({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:f,endAngle:l}),A.createElement("path",If({},G(r,!0),{className:h,d:v,role:"img"}))};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 kf(){return kf=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},kf.apply(this,arguments)}function Mg(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 Cg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Mg(Object(r),!0).forEach(function(n){qC(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function qC(e,t,r){return t=LC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function LC(e){var t=BC(e,"string");return pi(t)=="symbol"?t:t+""}function BC(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 Ig={curveBasisClosed:a1,curveBasisOpen:o1,curveBasis:i1,curveBumpX:UA,curveBumpY:KA,curveLinearClosed:u1,curveLinear:oo,curveMonotoneX:s1,curveMonotoneY:c1,curveNatural:l1,curveStep:f1,curveStepAfter:d1,curveStepBefore:p1},Gi=function(t){return t.x===+t.x&&t.y===+t.y},En=function(t){return t.x},$n=function(t){return t.y},FC=function(t,r){if(X(t))return t;var n="curve".concat(io(t));return(n==="curveMonotone"||n==="curveBump")&&r?Ig["".concat(n).concat(r==="vertical"?"Y":"X")]:Ig[n]||oo},zC=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,f=FC(n,u),l=c?a.filter(function(d){return Gi(d)}):a,p;if(Array.isArray(o)){var h=c?o.filter(function(d){return Gi(d)}):o,y=l.map(function(d,v){return Cg(Cg({},d),{},{base:h[v]})});return u==="vertical"?p=qi().y($n).x1(En).x0(function(d){return d.base.x}):p=qi().x(En).y1($n).y0(function(d){return d.base.y}),p.defined(Gi).curve(f),p(y)}return u==="vertical"&&F(o)?p=qi().y($n).x1(En).x0(o):F(o)?p=qi().x(En).y1($n).y0(o):p=W0().x(En).y($n),p.defined(Gi).curve(f),p(l)},Ut=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?zC(t):i;return A.createElement("path",kf({},G(t,!1),Qi(t),{className:te("recharts-curve",r),d:o,ref:a}))},ml={exports:{}},gl,kg;function WC(){if(kg)return gl;kg=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return gl=e,gl}var bl,Ng;function UC(){if(Ng)return bl;Ng=1;var e=WC();function t(){}function r(){}return r.resetWarningCache=t,bl=function(){function n(o,u,s,c,f,l){if(l!==e){var p=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 p.name="Invariant Violation",p}}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},bl}var Rg;function KC(){return Rg||(Rg=1,ml.exports=UC()()),ml.exports}var HC=KC();const ue=le(HC);var GC=Object.getOwnPropertyNames,VC=Object.getOwnPropertySymbols,XC=Object.prototype.hasOwnProperty;function Dg(e,t){return function(n,i,a){return e(n,i,a)&&t(n,i,a)}}function Vi(e){return function(r,n,i){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,i);var a=i.cache,o=a.get(r),u=a.get(n);if(o&&u)return o===n&&u===r;a.set(r,n),a.set(n,r);var s=e(r,n,i);return a.delete(r),a.delete(n),s}}function qg(e){return GC(e).concat(VC(e))}var YC=Object.hasOwn||function(e,t){return XC.call(e,t)};function Or(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var ZC="__v",JC="__o",QC="_owner",Lg=Object.getOwnPropertyDescriptor,Bg=Object.keys;function eI(e,t,r){var 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 tI(e,t){return Or(e.getTime(),t.getTime())}function rI(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function nI(e,t){return e===t}function Fg(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var i=new Array(n),a=e.entries(),o,u,s=0;(o=a.next())&&!o.done;){for(var c=t.entries(),f=!1,l=0;(u=c.next())&&!u.done;){if(i[l]){l++;continue}var p=o.value,h=u.value;if(r.equals(p[0],h[0],s,l,e,t,r)&&r.equals(p[1],h[1],p[0],h[0],e,t,r)){f=i[l]=!0;break}l++}if(!f)return!1;s++}return!0}var iI=Or;function aI(e,t,r){var n=Bg(e),i=n.length;if(Bg(t).length!==i)return!1;for(;i-- >0;)if(!Hw(e,t,r,n[i]))return!1;return!0}function Mn(e,t,r){var n=qg(e),i=n.length;if(qg(t).length!==i)return!1;for(var a,o,u;i-- >0;)if(a=n[i],!Hw(e,t,r,a)||(o=Lg(e,a),u=Lg(t,a),(o||u)&&(!o||!u||o.configurable!==u.configurable||o.enumerable!==u.enumerable||o.writable!==u.writable)))return!1;return!0}function oI(e,t){return Or(e.valueOf(),t.valueOf())}function uI(e,t){return e.source===t.source&&e.flags===t.flags}function zg(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var i=new Array(n),a=e.values(),o,u;(o=a.next())&&!o.done;){for(var s=t.values(),c=!1,f=0;(u=s.next())&&!u.done;){if(!i[f]&&r.equals(o.value,u.value,o.value,u.value,e,t,r)){c=i[f]=!0;break}f++}if(!c)return!1}return!0}function sI(e,t){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function cI(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 Hw(e,t,r,n){return(n===QC||n===JC||n===ZC)&&(e.$$typeof||t.$$typeof)?!0:YC(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}var lI="[object Arguments]",fI="[object Boolean]",pI="[object Date]",dI="[object Error]",hI="[object Map]",vI="[object Number]",yI="[object Object]",mI="[object RegExp]",gI="[object Set]",bI="[object String]",xI="[object URL]",wI=Array.isArray,Wg=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,Ug=Object.assign,OI=Object.prototype.toString.call.bind(Object.prototype.toString);function _I(e){var t=e.areArraysEqual,r=e.areDatesEqual,n=e.areErrorsEqual,i=e.areFunctionsEqual,a=e.areMapsEqual,o=e.areNumbersEqual,u=e.areObjectsEqual,s=e.arePrimitiveWrappersEqual,c=e.areRegExpsEqual,f=e.areSetsEqual,l=e.areTypedArraysEqual,p=e.areUrlsEqual;return function(y,d,v){if(y===d)return!0;if(y==null||d==null)return!1;var x=typeof y;if(x!==typeof d)return!1;if(x!=="object")return x==="number"?o(y,d,v):x==="function"?i(y,d,v):!1;var b=y.constructor;if(b!==d.constructor)return!1;if(b===Object)return u(y,d,v);if(wI(y))return t(y,d,v);if(Wg!=null&&Wg(y))return l(y,d,v);if(b===Date)return r(y,d,v);if(b===RegExp)return c(y,d,v);if(b===Map)return a(y,d,v);if(b===Set)return f(y,d,v);var g=OI(y);return g===pI?r(y,d,v):g===mI?c(y,d,v):g===hI?a(y,d,v):g===gI?f(y,d,v):g===yI?typeof y.then!="function"&&typeof d.then!="function"&&u(y,d,v):g===xI?p(y,d,v):g===dI?n(y,d,v):g===lI?u(y,d,v):g===fI||g===vI||g===bI?s(y,d,v):!1}}function AI(e){var t=e.circular,r=e.createCustomConfig,n=e.strict,i={areArraysEqual:n?Mn:eI,areDatesEqual:tI,areErrorsEqual:rI,areFunctionsEqual:nI,areMapsEqual:n?Dg(Fg,Mn):Fg,areNumbersEqual:iI,areObjectsEqual:n?Mn:aI,arePrimitiveWrappersEqual:oI,areRegExpsEqual:uI,areSetsEqual:n?Dg(zg,Mn):zg,areTypedArraysEqual:n?Mn:sI,areUrlsEqual:cI};if(r&&(i=Ug({},i,r(i))),t){var a=Vi(i.areArraysEqual),o=Vi(i.areMapsEqual),u=Vi(i.areObjectsEqual),s=Vi(i.areSetsEqual);i=Ug({},i,{areArraysEqual:a,areMapsEqual:o,areObjectsEqual:u,areSetsEqual:s})}return i}function SI(e){return function(t,r,n,i,a,o,u){return e(t,r,u)}}function PI(e){var t=e.circular,r=e.comparator,n=e.createState,i=e.equals,a=e.strict;if(n)return function(s,c){var f=n(),l=f.cache,p=l===void 0?t?new WeakMap:void 0:l,h=f.meta;return r(s,c,{cache:p,equals:i,meta:h,strict:a})};if(t)return function(s,c){return r(s,c,{cache:new WeakMap,equals:i,meta:void 0,strict:a})};var o={cache:void 0,equals:i,meta:void 0,strict:a};return function(s,c){return r(s,c,o)}}var jI=Zt();Zt({strict:!0});Zt({circular:!0});Zt({circular:!0,strict:!0});Zt({createInternalComparator:function(){return Or}});Zt({strict:!0,createInternalComparator:function(){return Or}});Zt({circular:!0,createInternalComparator:function(){return Or}});Zt({circular:!0,createInternalComparator:function(){return Or},strict:!0});function Zt(e){e===void 0&&(e={});var t=e.circular,r=t===void 0?!1:t,n=e.createInternalComparator,i=e.createState,a=e.strict,o=a===void 0?!1:a,u=AI(e),s=_I(u),c=n?n(s):SI(s);return PI({circular:r,comparator:s,createState:i,equals:c,strict:o})}function TI(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function Kg(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):TI(i)};requestAnimationFrame(n)}function Nf(e){"@babel/helpers - typeof";return Nf=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},Nf(e)}function EI(e){return II(e)||CI(e)||MI(e)||$I()}function $I(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function MI(e,t){if(e){if(typeof e=="string")return Hg(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 Hg(e,t)}}function Hg(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 CI(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function II(e){if(Array.isArray(e))return e}function kI(){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=EI(o),s=u[0],c=u.slice(1);if(typeof s=="number"){Kg(i.bind(null,c),s);return}i(s),Kg(i.bind(null,c));return}Nf(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 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 Gg(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?Gg(Object(r),!0).forEach(function(n){Gw(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Gw(e,t,r){return t=NI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function NI(e){var t=RI(e,"string");return di(t)==="symbol"?t:String(t)}function RI(e,t){if(di(e)!=="object"||e===null)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 DI=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,i){return n.filter(function(a){return i.includes(a)})})},qI=function(t){return t},LI=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},Ln=function(t,r){return Object.keys(r).reduce(function(n,i){return Vg(Vg({},n),{},Gw({},i,t(i,r[i])))},{})},Xg=function(t,r,n){return t.map(function(i){return"".concat(LI(i)," ").concat(r,"ms ").concat(n)}).join(",")};function BI(e,t){return WI(e)||zI(e,t)||Vw(e,t)||FI()}function FI(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zI(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(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function WI(e){if(Array.isArray(e))return e}function UI(e){return GI(e)||HI(e)||Vw(e)||KI()}function KI(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Vw(e,t){if(e){if(typeof e=="string")return Rf(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 Rf(e,t)}}function HI(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function GI(e){if(Array.isArray(e))return Rf(e)}function Rf(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 Pa=1e-4,Xw=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},Yw=function(t,r){return t.map(function(n,i){return n*Math.pow(r,i)}).reduce(function(n,i){return n+i})},Yg=function(t,r){return function(n){var i=Xw(t,r);return Yw(i,n)}},VI=function(t,r){return function(n){var i=Xw(t,r),a=[].concat(UI(i.map(function(o,u){return o*u}).slice(1)),[0]);return Yw(a,n)}},Zg=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(v){return parseFloat(v)}),f=BI(c,4);i=f[0],a=f[1],o=f[2],u=f[3]}}}var l=Yg(i,o),p=Yg(a,u),h=VI(i,o),y=function(x){return x>1?1:x<0?0:x},d=function(x){for(var b=x>1?1:x,g=b,O=0;O<8;++O){var m=l(g)-b,w=h(g);if(Math.abs(m-b)<Pa||w<Pa)return p(g);g=y(g-m/w)}return p(g)};return d.isStepper=!1,d},XI=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(f,l,p){var h=-(f-l)*n,y=p*a,d=p+(h-y)*u/1e3,v=p*u/1e3+f;return Math.abs(v-l)<Pa&&Math.abs(d)<Pa?[l,0]:[v,d]};return s.isStepper=!0,s.dt=u,s},YI=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 Zg(i);case"spring":return XI();default:if(i.split("(")[0]==="cubic-bezier")return Zg(i)}return typeof i=="function"?i:null};function hi(e){"@babel/helpers - typeof";return hi=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},hi(e)}function Jg(e){return QI(e)||JI(e)||Zw(e)||ZI()}function ZI(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function JI(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function QI(e){if(Array.isArray(e))return qf(e)}function Qg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ce(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Qg(Object(r),!0).forEach(function(n){Df(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Df(e,t,r){return t=ek(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ek(e){var t=tk(e,"string");return hi(t)==="symbol"?t:String(t)}function tk(e,t){if(hi(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(hi(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function rk(e,t){return ak(e)||ik(e,t)||Zw(e,t)||nk()}function nk(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Zw(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 ik(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(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function ak(e){if(Array.isArray(e))return e}var ja=function(t,r,n){return t+(r-t)*n},Lf=function(t){var r=t.from,n=t.to;return r!==n},ok=function e(t,r,n){var i=Ln(function(a,o){if(Lf(o)){var u=t(o.from,o.to,o.velocity),s=rk(u,2),c=s[0],f=s[1];return Ce(Ce({},o),{},{from:c,velocity:f})}return o},r);return n<1?Ln(function(a,o){return Lf(o)?Ce(Ce({},o),{},{velocity:ja(o.velocity,i[a].velocity,n),from:ja(o.from,i[a].from,n)}):o},r):e(t,i,n-1)};const uk=function(e,t,r,n,i){var a=DI(e,t),o=a.reduce(function(v,x){return Ce(Ce({},v),{},Df({},x,[e[x],t[x]]))},{}),u=a.reduce(function(v,x){return Ce(Ce({},v),{},Df({},x,{from:e[x],velocity:0,to:t[x]}))},{}),s=-1,c,f,l=function(){return null},p=function(){return Ln(function(x,b){return b.from},u)},h=function(){return!Object.values(u).filter(Lf).length},y=function(x){c||(c=x);var b=x-c,g=b/r.dt;u=ok(r,u,g),i(Ce(Ce(Ce({},e),t),p())),c=x,h()||(s=requestAnimationFrame(l))},d=function(x){f||(f=x);var b=(x-f)/n,g=Ln(function(m,w){return ja.apply(void 0,Jg(w).concat([r(b)]))},o);if(i(Ce(Ce(Ce({},e),t),g)),b<1)s=requestAnimationFrame(l);else{var O=Ln(function(m,w){return ja.apply(void 0,Jg(w).concat([r(1)]))},o);i(Ce(Ce(Ce({},e),t),O))}};return l=r.isStepper?y:d,function(){return requestAnimationFrame(l),function(){cancelAnimationFrame(s)}}};function Gr(e){"@babel/helpers - typeof";return Gr=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},Gr(e)}var sk=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function ck(e,t){if(e==null)return{};var r=lk(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 lk(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 xl(e){return hk(e)||dk(e)||pk(e)||fk()}function fk(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pk(e,t){if(e){if(typeof e=="string")return Bf(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 Bf(e,t)}}function dk(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function hk(e){if(Array.isArray(e))return Bf(e)}function Bf(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 eb(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 it(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?eb(Object(r),!0).forEach(function(n){Nn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Nn(e,t,r){return t=Jw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yk(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,Jw(n.key),n)}}function mk(e,t,r){return t&&yk(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Jw(e){var t=gk(e,"string");return Gr(t)==="symbol"?t:String(t)}function gk(e,t){if(Gr(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Gr(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function bk(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&&Ff(e,t)}function Ff(e,t){return Ff=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ff(e,t)}function xk(e){var t=wk();return function(){var n=Ta(e),i;if(t){var a=Ta(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return zf(this,i)}}function zf(e,t){if(t&&(Gr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Wf(e)}function Wf(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wk(){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 Ta(e){return Ta=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ta(e)}var tt=function(e){bk(r,e);var t=xk(r);function r(n,i){var a;vk(this,r),a=t.call(this,n,i);var o=a.props,u=o.isActive,s=o.attributeName,c=o.from,f=o.to,l=o.steps,p=o.children,h=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(Wf(a)),a.changeStyle=a.changeStyle.bind(Wf(a)),!u||h<=0)return a.state={style:{}},typeof p=="function"&&(a.state={style:f}),zf(a);if(l&&l.length)a.state={style:l[0].style};else if(c){if(typeof p=="function")return a.state={style:c},zf(a);a.state={style:s?Nn({},s,c):c}}else a.state={style:{}};return a}return mk(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,f=a.to,l=a.from,p=this.state.style;if(u){if(!o){var h={style:s?Nn({},s,f):f};this.state&&p&&(s&&p[s]!==f||!s&&p!==f)&&this.setState(h);return}if(!(jI(i.to,f)&&i.canBegin&&i.isActive)){var y=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var d=y||c?l:i.to;if(this.state&&p){var v={style:s?Nn({},s,d):d};(s&&p[s]!==d||!s&&p!==d)&&this.setState(v)}this.runAnimation(it(it({},this.props),{},{from:d,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,f=i.begin,l=i.onAnimationEnd,p=i.onAnimationStart,h=uk(o,u,YI(c),s,this.changeStyle),y=function(){a.stopJSAnimation=h()};this.manager.start([p,f,y,s,l])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,u=i.begin,s=i.onAnimationStart,c=o[0],f=c.style,l=c.duration,p=l===void 0?0:l,h=function(d,v,x){if(x===0)return d;var b=v.duration,g=v.easing,O=g===void 0?"ease":g,m=v.style,w=v.properties,_=v.onAnimationEnd,S=x>0?o[x-1]:v,j=w||Object.keys(m);if(typeof O=="function"||O==="spring")return[].concat(xl(d),[a.runJSAnimation.bind(a,{from:S.style,to:m,duration:b,easing:O}),b]);var $=Xg(j,b,O),P=it(it(it({},S.style),m),{},{transition:$});return[].concat(xl(d),[P,b,_]).filter(qI)};return this.manager.start([s].concat(xl(o.reduce(h,[f,Math.max(p,u)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=kI());var a=i.begin,o=i.duration,u=i.attributeName,s=i.to,c=i.easing,f=i.onAnimationStart,l=i.onAnimationEnd,p=i.steps,h=i.children,y=this.manager;if(this.unSubscribe=y.subscribe(this.handleStyleChange),typeof c=="function"||typeof h=="function"||c==="spring"){this.runJSAnimation(i);return}if(p.length>1){this.runStepAnimation(i);return}var d=u?Nn({},u,s):s,v=Xg(Object.keys(d),o,c);y.start([f,a,it(it({},d),{},{transition:v}),o,l])}},{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=ck(i,sk),c=B.Children.count(a),f=this.state.style;if(typeof a=="function")return a(f);if(!u||c===0||o<=0)return a;var l=function(h){var y=h.props,d=y.style,v=d===void 0?{}:d,x=y.className,b=B.cloneElement(h,it(it({},s),{},{style:it(it({},v),f),className:x}));return b};return c===1?l(B.Children.only(a)):A.createElement("div",null,B.Children.map(a,function(p){return l(p)}))}}]),r}(B.PureComponent);tt.displayName="Animate";tt.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};tt.propTypes={from:ue.oneOfType([ue.object,ue.string]),to:ue.oneOfType([ue.object,ue.string]),attributeName:ue.string,duration:ue.number,begin:ue.number,easing:ue.oneOfType([ue.string,ue.func]),steps:ue.arrayOf(ue.shape({duration:ue.number.isRequired,style:ue.object.isRequired,easing:ue.oneOfType([ue.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),ue.func]),properties:ue.arrayOf("string"),onAnimationEnd:ue.func})),children:ue.oneOfType([ue.node,ue.func]),isActive:ue.bool,canBegin:ue.bool,onAnimationEnd:ue.func,shouldReAnimate:ue.bool,onAnimationStart:ue.func,onAnimationReStart:ue.func};function vi(e){"@babel/helpers - typeof";return vi=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},vi(e)}function Ea(){return Ea=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},Ea.apply(this,arguments)}function Ok(e,t){return Pk(e)||Sk(e,t)||Ak(e,t)||_k()}function _k(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ak(e,t){if(e){if(typeof e=="string")return tb(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 tb(e,t)}}function tb(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 Sk(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(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function Pk(e){if(Array.isArray(e))return e}function rb(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 nb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rb(Object(r),!0).forEach(function(n){jk(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function jk(e,t,r){return t=Tk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Tk(e){var t=Ek(e,"string");return vi(t)=="symbol"?t:t+""}function Ek(e,t){if(vi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(vi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ib=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,f;if(o>0&&a instanceof Array){for(var l=[0,0,0,0],p=0,h=4;p<h;p++)l[p]=a[p]>o?o:a[p];f="M".concat(t,",").concat(r+u*l[0]),l[0]>0&&(f+="A ".concat(l[0],",").concat(l[0],",0,0,").concat(c,",").concat(t+s*l[0],",").concat(r)),f+="L ".concat(t+n-s*l[1],",").concat(r),l[1]>0&&(f+="A ".concat(l[1],",").concat(l[1],",0,0,").concat(c,`,
        `).concat(t+n,",").concat(r+u*l[1])),f+="L ".concat(t+n,",").concat(r+i-u*l[2]),l[2]>0&&(f+="A ".concat(l[2],",").concat(l[2],",0,0,").concat(c,`,
        `).concat(t+n-s*l[2],",").concat(r+i)),f+="L ".concat(t+s*l[3],",").concat(r+i),l[3]>0&&(f+="A ".concat(l[3],",").concat(l[3],",0,0,").concat(c,`,
        `).concat(t,",").concat(r+i-u*l[3])),f+="Z"}else if(o>0&&a===+a&&a>0){var y=Math.min(o,a);f="M ".concat(t,",").concat(r+u*y,`
            A `).concat(y,",").concat(y,",0,0,").concat(c,",").concat(t+s*y,",").concat(r,`
            L `).concat(t+n-s*y,",").concat(r,`
            A `).concat(y,",").concat(y,",0,0,").concat(c,",").concat(t+n,",").concat(r+u*y,`
            L `).concat(t+n,",").concat(r+i-u*y,`
            A `).concat(y,",").concat(y,",0,0,").concat(c,",").concat(t+n-s*y,",").concat(r+i,`
            L `).concat(t+s*y,",").concat(r+i,`
            A `).concat(y,",").concat(y,",0,0,").concat(c,",").concat(t,",").concat(r+i-u*y," Z")}else f="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return f},$k=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),f=Math.max(a,a+u),l=Math.min(o,o+s),p=Math.max(o,o+s);return n>=c&&n<=f&&i>=l&&i<=p}return!1},Mk={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},dd=function(t){var r=nb(nb({},Mk),t),n=B.useRef(),i=B.useState(-1),a=Ok(i,2),o=a[0],u=a[1];B.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,f=r.width,l=r.height,p=r.radius,h=r.className,y=r.animationEasing,d=r.animationDuration,v=r.animationBegin,x=r.isAnimationActive,b=r.isUpdateAnimationActive;if(s!==+s||c!==+c||f!==+f||l!==+l||f===0||l===0)return null;var g=te("recharts-rectangle",h);return b?A.createElement(tt,{canBegin:o>0,from:{width:f,height:l,x:s,y:c},to:{width:f,height:l,x:s,y:c},duration:d,animationEasing:y,isActive:b},function(O){var m=O.width,w=O.height,_=O.x,S=O.y;return A.createElement(tt,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:v,duration:d,isActive:x,easing:y},A.createElement("path",Ea({},G(r,!0),{className:g,d:ib(_,S,m,w,p),ref:n})))}):A.createElement("path",Ea({},G(r,!0),{className:g,d:ib(s,c,f,l,p)}))},Ck=["points","className","baseLinePoints","connectNulls"];function Er(){return Er=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},Er.apply(this,arguments)}function Ik(e,t){if(e==null)return{};var r=kk(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 kk(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 ab(e){return qk(e)||Dk(e)||Rk(e)||Nk()}function Nk(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Rk(e,t){if(e){if(typeof e=="string")return Uf(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 Uf(e,t)}}function Dk(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function qk(e){if(Array.isArray(e))return Uf(e)}function Uf(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 ob=function(t){return t&&t.x===+t.x&&t.y===+t.y},Lk=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=[[]];return t.forEach(function(n){ob(n)?r[r.length-1].push(n):r[r.length-1].length>0&&r.push([])}),ob(t[0])&&r[r.length-1].push(t[0]),r[r.length-1].length<=0&&(r=r.slice(0,-1)),r},Bn=function(t,r){var n=Lk(t);r&&(n=[n.reduce(function(a,o){return[].concat(ab(a),ab(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},Bk=function(t,r,n){var i=Bn(t,n);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(Bn(r.reverse(),n).slice(1))},Fk=function(t){var r=t.points,n=t.className,i=t.baseLinePoints,a=t.connectNulls,o=Ik(t,Ck);if(!r||!r.length)return null;var u=te("recharts-polygon",n);if(i&&i.length){var s=o.stroke&&o.stroke!=="none",c=Bk(r,i,a);return A.createElement("g",{className:u},A.createElement("path",Er({},G(o,!0),{fill:c.slice(-1)==="Z"?o.fill:"none",stroke:"none",d:c})),s?A.createElement("path",Er({},G(o,!0),{fill:"none",d:Bn(r,a)})):null,s?A.createElement("path",Er({},G(o,!0),{fill:"none",d:Bn(i,a)})):null)}var f=Bn(r,a);return A.createElement("path",Er({},G(o,!0),{fill:f.slice(-1)==="Z"?o.fill:"none",className:u,d:f}))};function Kf(){return Kf=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},Kf.apply(this,arguments)}var Ii=function(t){var r=t.cx,n=t.cy,i=t.r,a=t.className,o=te("recharts-dot",a);return r===+r&&n===+n&&i===+i?A.createElement("circle",Kf({},G(t,!1),Qi(t),{className:o,cx:r,cy:n,r:i})):null};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)}var zk=["x","y","top","left","width","height","className"];function Hf(){return Hf=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},Hf.apply(this,arguments)}function ub(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 Wk(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ub(Object(r),!0).forEach(function(n){Uk(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ub(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Uk(e,t,r){return t=Kk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Kk(e){var t=Hk(e,"string");return yi(t)=="symbol"?t:t+""}function Hk(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(t==="string"?String:Number)(e)}function Gk(e,t){if(e==null)return{};var r=Vk(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 Vk(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 Xk=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},Yk=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,f=t.width,l=f===void 0?0:f,p=t.height,h=p===void 0?0:p,y=t.className,d=Gk(t,zk),v=Wk({x:n,y:a,top:u,left:c,width:l,height:h},d);return!F(n)||!F(a)||!F(l)||!F(h)||!F(u)||!F(c)?null:A.createElement("path",Hf({},G(v,!0),{className:te("recharts-cross",y),d:Xk(n,a,l,h,u,c)}))},wl,sb;function Zk(){if(sb)return wl;sb=1;var e=xo(),t=dw(),r=bt();function n(i,a){return i&&i.length?e(i,r(a,2),t):void 0}return wl=n,wl}var Jk=Zk();const Qk=le(Jk);var Ol,cb;function eN(){if(cb)return Ol;cb=1;var e=xo(),t=bt(),r=hw();function n(i,a){return i&&i.length?e(i,t(a,2),r):void 0}return Ol=n,Ol}var tN=eN();const rN=le(tN);var nN=["cx","cy","angle","ticks","axisLine"],iN=["ticks","tick","angle","tickFormatter","stroke"];function Vr(e){"@babel/helpers - typeof";return Vr=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},Vr(e)}function Fn(){return Fn=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},Fn.apply(this,arguments)}function lb(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 tr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?lb(Object(r),!0).forEach(function(n){Ao(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fb(e,t){if(e==null)return{};var r=aN(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 aN(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 oN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pb(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,eO(n.key),n)}}function uN(e,t,r){return t&&pb(e.prototype,t),r&&pb(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function sN(e,t,r){return t=$a(t),cN(e,Qw()?Reflect.construct(t,r||[],$a(e).constructor):t.apply(e,r))}function cN(e,t){if(t&&(Vr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return lN(e)}function lN(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Qw=function(){return!!e})()}function $a(e){return $a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},$a(e)}function fN(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&&Gf(e,t)}function Gf(e,t){return Gf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Gf(e,t)}function Ao(e,t,r){return t=eO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eO(e){var t=pN(e,"string");return Vr(t)=="symbol"?t:t+""}function pN(e,t){if(Vr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Vr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var So=function(e){function t(){return oN(this,t),sN(this,t,arguments)}return fN(t,e),uN(t,[{key:"getTickValueCoord",value:function(n){var i=n.coordinate,a=this.props,o=a.angle,u=a.cx,s=a.cy;return he(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=Qk(u,function(f){return f.coordinate||0}),c=rN(u,function(f){return f.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=fb(n,nN),f=u.reduce(function(y,d){return[Math.min(y[0],d.coordinate),Math.max(y[1],d.coordinate)]},[1/0,-1/0]),l=he(i,a,f[0],o),p=he(i,a,f[1],o),h=tr(tr(tr({},G(c,!1)),{},{fill:"none"},G(s,!1)),{},{x1:l.x,y1:l.y,x2:p.x,y2:p.y});return A.createElement("line",Fn({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,f=fb(i,iN),l=this.getTickTextAnchor(),p=G(f,!1),h=G(o,!1),y=a.map(function(d,v){var x=n.getTickValueCoord(d),b=tr(tr(tr(tr({textAnchor:l,transform:"rotate(".concat(90-u,", ").concat(x.x,", ").concat(x.y,")")},p),{},{stroke:"none",fill:c},h),{},{index:v},x),{},{payload:d});return A.createElement(re,Fn({className:te("recharts-polar-radius-axis-tick",zw(o)),key:"tick-".concat(d.coordinate)},Kt(n.props,d,v)),t.renderTickItem(o,b,s?s(d.value,v):d.value))});return A.createElement(re,{className:"recharts-polar-radius-axis-ticks"},y)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.axisLine,o=n.tick;return!i||!i.length?null:A.createElement(re,{className:te("recharts-polar-radius-axis",this.props.className)},a&&this.renderAxisLine(),o&&this.renderTicks(),Ee.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(n,i,a){var o;return A.isValidElement(n)?o=A.cloneElement(n,i):X(n)?o=n(i):o=A.createElement(vr,Fn({},i,{className:"recharts-polar-radius-axis-tick-value"}),a),o}}])}(B.PureComponent);Ao(So,"displayName","PolarRadiusAxis");Ao(So,"axisType","radiusAxis");Ao(So,"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 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 or(){return or=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},or.apply(this,arguments)}function db(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 rr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?db(Object(r),!0).forEach(function(n){Po(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):db(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function dN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hb(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,rO(n.key),n)}}function hN(e,t,r){return t&&hb(e.prototype,t),r&&hb(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function vN(e,t,r){return t=Ma(t),yN(e,tO()?Reflect.construct(t,r||[],Ma(e).constructor):t.apply(e,r))}function yN(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 mN(e)}function mN(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(tO=function(){return!!e})()}function Ma(e){return Ma=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ma(e)}function gN(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&&Vf(e,t)}function Vf(e,t){return Vf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Vf(e,t)}function Po(e,t,r){return t=rO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rO(e){var t=bN(e,"string");return Xr(t)=="symbol"?t:t+""}function bN(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 xN=Math.PI/180,vb=1e-5,jo=function(e){function t(){return dN(this,t),vN(this,t,arguments)}return gN(t,e),hN(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,f=c||8,l=he(a,o,u,n.coordinate),p=he(a,o,u+(s==="inner"?-1:1)*f,n.coordinate);return{x1:l.x,y1:l.y,x2:p.x,y2:p.y}}},{key:"getTickTextAnchor",value:function(n){var i=this.props.orientation,a=Math.cos(-n.coordinate*xN),o;return a>vb?o=i==="outer"?"start":"end":a<-vb?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=rr(rr({},G(this.props,!1)),{},{fill:"none"},G(u,!1));if(s==="circle")return A.createElement(Ii,or({className:"recharts-polar-angle-axis-line"},c,{cx:i,cy:a,r:o}));var f=this.props.ticks,l=f.map(function(p){return he(i,a,o,p.coordinate)});return A.createElement(Fk,or({className:"recharts-polar-angle-axis-line"},c,{points:l}))}},{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,f=G(this.props,!1),l=G(o,!1),p=rr(rr({},f),{},{fill:"none"},G(u,!1)),h=a.map(function(y,d){var v=n.getTickLineCoord(y),x=n.getTickTextAnchor(y),b=rr(rr(rr({textAnchor:x},f),{},{stroke:"none",fill:c},l),{},{index:d,payload:y,x:v.x2,y:v.y2});return A.createElement(re,or({className:te("recharts-polar-angle-axis-tick",zw(o)),key:"tick-".concat(y.coordinate)},Kt(n.props,y,d)),u&&A.createElement("line",or({className:"recharts-polar-angle-axis-tick-line"},p,v)),o&&t.renderTickItem(o,b,s?s(y.value,d):y.value))});return A.createElement(re,{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:A.createElement(re,{className:te("recharts-polar-angle-axis",this.props.className)},o&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(n,i,a){var o;return A.isValidElement(n)?o=A.cloneElement(n,i):X(n)?o=n(i):o=A.createElement(vr,or({},i,{className:"recharts-polar-angle-axis-tick-value"}),a),o}}])}(B.PureComponent);Po(jo,"displayName","PolarAngleAxis");Po(jo,"axisType","angleAxis");Po(jo,"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 _l,yb;function wN(){if(yb)return _l;yb=1;var e=px(),t=e(Object.getPrototypeOf,Object);return _l=t,_l}var Al,mb;function ON(){if(mb)return Al;mb=1;var e=Mt(),t=wN(),r=Ct(),n="[object Object]",i=Function.prototype,a=Object.prototype,o=i.toString,u=a.hasOwnProperty,s=o.call(Object);function c(f){if(!r(f)||e(f)!=n)return!1;var l=t(f);if(l===null)return!0;var p=u.call(l,"constructor")&&l.constructor;return typeof p=="function"&&p instanceof p&&o.call(p)==s}return Al=c,Al}var _N=ON();const AN=le(_N);var Sl,gb;function SN(){if(gb)return Sl;gb=1;var e=Mt(),t=Ct(),r="[object Boolean]";function n(i){return i===!0||i===!1||t(i)&&e(i)==r}return Sl=n,Sl}var PN=SN();const jN=le(PN);function mi(e){"@babel/helpers - typeof";return mi=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},mi(e)}function Ca(){return Ca=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},Ca.apply(this,arguments)}function TN(e,t){return CN(e)||MN(e,t)||$N(e,t)||EN()}function EN(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $N(e,t){if(e){if(typeof e=="string")return bb(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 bb(e,t)}}function bb(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 MN(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(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function CN(e){if(Array.isArray(e))return e}function xb(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 wb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xb(Object(r),!0).forEach(function(n){IN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function IN(e,t,r){return t=kN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kN(e){var t=NN(e,"string");return mi(t)=="symbol"?t:t+""}function NN(e,t){if(mi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(mi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ob=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},RN={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},DN=function(t){var r=wb(wb({},RN),t),n=B.useRef(),i=B.useState(-1),a=TN(i,2),o=a[0],u=a[1];B.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var g=n.current.getTotalLength();g&&u(g)}catch{}},[]);var s=r.x,c=r.y,f=r.upperWidth,l=r.lowerWidth,p=r.height,h=r.className,y=r.animationEasing,d=r.animationDuration,v=r.animationBegin,x=r.isUpdateAnimationActive;if(s!==+s||c!==+c||f!==+f||l!==+l||p!==+p||f===0&&l===0||p===0)return null;var b=te("recharts-trapezoid",h);return x?A.createElement(tt,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:p,x:s,y:c},to:{upperWidth:f,lowerWidth:l,height:p,x:s,y:c},duration:d,animationEasing:y,isActive:x},function(g){var O=g.upperWidth,m=g.lowerWidth,w=g.height,_=g.x,S=g.y;return A.createElement(tt,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:v,duration:d,easing:y},A.createElement("path",Ca({},G(r,!0),{className:b,d:Ob(_,S,O,m,w),ref:n})))}):A.createElement("g",null,A.createElement("path",Ca({},G(r,!0),{className:b,d:Ob(s,c,f,l,p)})))},qN=["option","shapeType","propTransformer","activeClassName","isActive"];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 LN(e,t){if(e==null)return{};var r=BN(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 BN(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 _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 Ia(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){FN(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 FN(e,t,r){return t=zN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zN(e){var t=WN(e,"string");return gi(t)=="symbol"?t:t+""}function WN(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 UN(e,t){return Ia(Ia({},t),e)}function KN(e,t){return e==="symbols"}function Ab(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return A.createElement(dd,r);case"trapezoid":return A.createElement(DN,r);case"sector":return A.createElement(Kw,r);case"symbols":if(KN(t))return A.createElement(so,r);break;default:return null}}function HN(e){return B.isValidElement(e)?e.props:e}function ka(e){var t=e.option,r=e.shapeType,n=e.propTransformer,i=n===void 0?UN:n,a=e.activeClassName,o=a===void 0?"recharts-active-shape":a,u=e.isActive,s=LN(e,qN),c;if(B.isValidElement(t))c=B.cloneElement(t,Ia(Ia({},s),HN(t)));else if(X(t))c=t(s);else if(AN(t)&&!jN(t)){var f=i(t,s);c=A.createElement(Ab,{shapeType:r,elementProps:f})}else{var l=s;c=A.createElement(Ab,{shapeType:r,elementProps:l})}return u?A.createElement(re,{className:o},c):c}function To(e,t){return t!=null&&"trapezoids"in e.props}function Eo(e,t){return t!=null&&"sectors"in e.props}function bi(e,t){return t!=null&&"points"in e.props}function GN(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 VN(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function XN(e,t){var r=e.x===t.x,n=e.y===t.y,i=e.z===t.z;return r&&n&&i}function YN(e,t){var r;return To(e,t)?r=GN:Eo(e,t)?r=VN:bi(e,t)&&(r=XN),r}function ZN(e,t){var r;return To(e,t)?r="trapezoids":Eo(e,t)?r="sectors":bi(e,t)&&(r="points"),r}function JN(e,t){if(To(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(Eo(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 bi(e,t)?t.payload:{}}function QN(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,i=ZN(r,t),a=JN(r,t),o=n.filter(function(s,c){var f=Ht(a,s),l=r.props[i].filter(function(y){var d=YN(r,t);return d(y,t)}),p=r.props[i].indexOf(l[l.length-1]),h=c===p;return f&&h}),u=n.indexOf(o[o.length-1]);return u}var Zi;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)}function $r(){return $r=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},$r.apply(this,arguments)}function Sb(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 pe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Sb(Object(r),!0).forEach(function(n){Je(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sb(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 Pb(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 tR(e,t,r){return t&&Pb(e.prototype,t),r&&Pb(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function rR(e,t,r){return t=Na(t),nR(e,nO()?Reflect.construct(t,r||[],Na(e).constructor):t.apply(e,r))}function nR(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 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 nO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(nO=function(){return!!e})()}function Na(e){return Na=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Na(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&&Xf(e,t)}function Xf(e,t){return Xf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Xf(e,t)}function Je(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=oR(e,"string");return Yr(t)=="symbol"?t:t+""}function oR(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)}var Nt=function(e){function t(r){var n;return eR(this,t),n=rR(this,t,[r]),Je(n,"pieRef",null),Je(n,"sectorRefs",[]),Je(n,"id",Vt("recharts-pie-")),Je(n,"handleAnimationEnd",function(){var i=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),X(i)&&i()}),Je(n,"handleAnimationStart",function(){var i=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),X(i)&&i()}),n.state={isAnimationFinished:!r.isAnimationActive,prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,sectorToFocus:0},n}return aR(t,e),tR(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,f=G(this.props,!1),l=G(o,!1),p=G(u,!1),h=o&&o.offsetRadius||20,y=n.map(function(d,v){var x=(d.startAngle+d.endAngle)/2,b=he(d.cx,d.cy,d.outerRadius+h,x),g=pe(pe(pe(pe({},f),d),{},{stroke:"none"},l),{},{index:v,textAnchor:t.getTextAnchor(b.x,d.cx)},b),O=pe(pe(pe(pe({},f),d),{},{fill:"none",stroke:d.fill},p),{},{index:v,points:[he(d.cx,d.cy,d.outerRadius,x),b]}),m=s;return Y(s)&&Y(c)?m="value":Y(s)&&(m=c),A.createElement(re,{key:"label-".concat(d.startAngle,"-").concat(d.endAngle,"-").concat(d.midAngle,"-").concat(v)},u&&t.renderLabelLineItem(u,O,"line"),t.renderLabelItem(o,g,me(d,m)))});return A.createElement(re,{className:"recharts-pie-labels"},y)}},{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,f){if((c==null?void 0:c.startAngle)===0&&(c==null?void 0:c.endAngle)===0&&n.length!==1)return null;var l=i.isActiveIndex(f),p=s&&i.hasActiveIndex()?s:null,h=l?o:p,y=pe(pe({},c),{},{stroke:u?c.fill:c.stroke,tabIndex:-1});return A.createElement(re,$r({ref:function(v){v&&!i.sectorRefs.includes(v)&&i.sectorRefs.push(v)},tabIndex:-1,className:"recharts-pie-sector"},Kt(i.props,c,f),{key:"sector-".concat(c==null?void 0:c.startAngle,"-").concat(c==null?void 0:c.endAngle,"-").concat(c.midAngle,"-").concat(f)}),A.createElement(ka,$r({option:h,isActive:l,shapeType:"sector"},y)))})}},{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,f=i.animationId,l=this.state,p=l.prevSectors,h=l.prevIsAnimationActive;return A.createElement(tt,{begin:u,duration:s,isActive:o,easing:c,from:{t:0},to:{t:1},key:"pie-".concat(f,"-").concat(h),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(y){var d=y.t,v=[],x=a&&a[0],b=x.startAngle;return a.forEach(function(g,O){var m=p&&p[O],w=O>0?Ge(g,"paddingAngle",0):0;if(m){var _=xe(m.endAngle-m.startAngle,g.endAngle-g.startAngle),S=pe(pe({},g),{},{startAngle:b+w,endAngle:b+_(d)+w});v.push(S),b=S.endAngle}else{var j=g.endAngle,$=g.startAngle,P=xe(0,j-$),E=P(d),M=pe(pe({},g),{},{startAngle:b+w,endAngle:b+E+w});v.push(M),b=M.endAngle}}),A.createElement(re,null,n.renderSectorsStatically(v))})}},{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||!Ht(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,f=i.cy,l=i.innerRadius,p=i.outerRadius,h=i.isAnimationActive,y=this.state.isAnimationFinished;if(a||!o||!o.length||!F(c)||!F(f)||!F(l)||!F(p))return null;var d=te("recharts-pie",u);return A.createElement(re,{tabIndex:this.props.rootTabIndex,className:d,ref:function(x){n.pieRef=x}},this.renderSectors(),s&&this.renderLabels(o),Ee.renderCallByParent(this.props,null,!1),(!h||y)&&ct.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(A.isValidElement(n))return A.cloneElement(n,i);if(X(n))return n(i);var o=te("recharts-pie-label-line",typeof n!="boolean"?n.className:"");return A.createElement(Ut,$r({},i,{key:a,type:"linear",className:o}))}},{key:"renderLabelItem",value:function(n,i,a){if(A.isValidElement(n))return A.cloneElement(n,i);var o=a;if(X(n)&&(o=n(i),A.isValidElement(o)))return o;var u=te("recharts-pie-label-text",typeof n!="boolean"&&!X(n)?n.className:"");return A.createElement(vr,$r({},i,{alignmentBaseline:"middle",className:u}),o)}}])}(B.PureComponent);Zi=Nt;Je(Nt,"displayName","Pie");Je(Nt,"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:!It.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});Je(Nt,"parseDeltaAngle",function(e,t){var r=De(t-e),n=Math.min(Math.abs(t-e),360);return r*n});Je(Nt,"getRealPieData",function(e){var t=e.data,r=e.children,n=G(e,!1),i=Be(r,po);return t&&t.length?t.map(function(a,o){return pe(pe(pe({payload:a},n),a),i&&i[o]&&i[o].props)}):i&&i.length?i.map(function(a){return pe(pe({},n),a.props)}):[]});Je(Nt,"parseCoordinateOfPie",function(e,t){var r=t.top,n=t.left,i=t.width,a=t.height,o=Fw(i,a),u=n+qe(e.cx,i,i/2),s=r+qe(e.cy,a,a/2),c=qe(e.innerRadius,o,0),f=qe(e.outerRadius,o,o*.8),l=e.maxRadius||Math.sqrt(i*i+a*a)/2;return{cx:u,cy:s,innerRadius:c,outerRadius:f,maxRadius:l}});Je(Nt,"getComposedData",function(e){var t=e.item,r=e.offset,n=t.type.defaultProps!==void 0?pe(pe({},t.type.defaultProps),t.props):t.props,i=Zi.getRealPieData(n);if(!i||!i.length)return null;var a=n.cornerRadius,o=n.startAngle,u=n.endAngle,s=n.paddingAngle,c=n.dataKey,f=n.nameKey,l=n.valueKey,p=n.tooltipType,h=Math.abs(n.minAngle),y=Zi.parseCoordinateOfPie(n,r),d=Zi.parseDeltaAngle(o,u),v=Math.abs(d),x=c;Y(c)&&Y(l)?(st(!1,`Use "dataKey" to specify the value of pie,
      the props "valueKey" will be deprecated in 1.1.0`),x="value"):Y(c)&&(st(!1,`Use "dataKey" to specify the value of pie,
      the props "valueKey" will be deprecated in 1.1.0`),x=l);var b=i.filter(function(S){return me(S,x,0)!==0}).length,g=(v>=360?b:b-1)*s,O=v-b*h-g,m=i.reduce(function(S,j){var $=me(j,x,0);return S+(F($)?$:0)},0),w;if(m>0){var _;w=i.map(function(S,j){var $=me(S,x,0),P=me(S,f,j),E=(F($)?$:0)/m,M;j?M=_.endAngle+De(d)*s*($!==0?1:0):M=o;var C=M+De(d)*(($!==0?h:0)+E*O),I=(M+C)/2,k=(y.innerRadius+y.outerRadius)/2,q=[{name:P,value:$,payload:S,dataKey:x,type:p}],z=he(y.cx,y.cy,k,I);return _=pe(pe(pe({percent:E,cornerRadius:a,name:P,tooltipPayload:q,midAngle:I,middleRadius:k,tooltipPosition:z},S),y),{},{value:me(S,x),startAngle:M,endAngle:C,payload:S,paddingAngle:De(d)*s}),_})}return pe(pe({},y),{},{sectors:w,data:i})});var Pl,jb;function uR(){if(jb)return Pl;jb=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 Pl=r,Pl}var jl,Tb;function aO(){if(Tb)return jl;Tb=1;var e=Tx(),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 jl=n,jl}var Tl,Eb;function sR(){if(Eb)return Tl;Eb=1;var e=uR(),t=fo(),r=aO();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 Tl=n,Tl}var El,$b;function cR(){if($b)return El;$b=1;var e=sR(),t=e();return El=t,El}var lR=cR();const Ra=le(lR);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 Mb(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 Cb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Mb(Object(r),!0).forEach(function(n){oO(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function oO(e,t,r){return t=fR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fR(e){var t=pR(e,"string");return xi(t)=="symbol"?t:t+""}function pR(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)}var dR=["Webkit","Moz","O","ms"],hR=function(t,r){var n=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=dR.reduce(function(a,o){return Cb(Cb({},a),{},oO({},o+n,r))},{});return i[t]=r,i};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 Da(){return Da=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Da.apply(this,arguments)}function Ib(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function $l(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ib(Object(r),!0).forEach(function(n){Ue(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ib(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function vR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kb(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,sO(n.key),n)}}function yR(e,t,r){return t&&kb(e.prototype,t),r&&kb(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function mR(e,t,r){return t=qa(t),gR(e,uO()?Reflect.construct(t,r||[],qa(e).constructor):t.apply(e,r))}function gR(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 bR(e)}function bR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(uO=function(){return!!e})()}function qa(e){return qa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},qa(e)}function xR(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&&Yf(e,t)}function Yf(e,t){return Yf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Yf(e,t)}function Ue(e,t,r){return t=sO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sO(e){var t=wR(e,"string");return Zr(t)=="symbol"?t:t+""}function wR(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)}var OR=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=Dn().domain(Ra(0,s)).range([a,a+o-u]),f=c.domain().map(function(l){return c(l)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:c(n),endX:c(i),scale:c,scaleValues:f}},Nb=function(t){return t.changedTouches&&!!t.changedTouches.length},Jr=function(e){function t(r){var n;return vR(this,t),n=mR(this,t,[r]),Ue(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),Ue(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),Ue(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,a=i.endIndex,o=i.onDragEnd,u=i.startIndex;o==null||o({endIndex:a,startIndex:u})}),n.detachDragEndListener()}),Ue(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),Ue(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),Ue(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),Ue(n,"handleSlideDragStart",function(i){var a=Nb(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 xR(t,e),yR(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,f=c.length-1,l=Math.min(i,a),p=Math.max(i,a),h=t.getIndexInRange(o,l),y=t.getIndexInRange(o,p);return{startIndex:h-h%s,endIndex:y===f?f:y-y%s}}},{key:"getTextOfTick",value:function(n){var i=this.props,a=i.data,o=i.tickFormatter,u=i.dataKey,s=me(a[n],u,n);return X(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,f=s.width,l=s.travellerWidth,p=s.startIndex,h=s.endIndex,y=s.onChange,d=n.pageX-a;d>0?d=Math.min(d,c+f-l-u,c+f-l-o):d<0&&(d=Math.max(d,c-o,c-u));var v=this.getIndex({startX:o+d,endX:u+d});(v.startIndex!==p||v.endIndex!==h)&&y&&y(v),this.setState({startX:o+d,endX:u+d,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=Nb(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],f=this.props,l=f.x,p=f.width,h=f.travellerWidth,y=f.onChange,d=f.gap,v=f.data,x={startX:this.state.startX,endX:this.state.endX},b=n.pageX-a;b>0?b=Math.min(b,l+p-h-c):b<0&&(b=Math.max(b,l-c)),x[o]=c+b;var g=this.getIndex(x),O=g.startIndex,m=g.endIndex,w=function(){var S=v.length-1;return o==="startX"&&(u>s?O%d===0:m%d===0)||u<s&&m===S||o==="endX"&&(u>s?m%d===0:O%d===0)||u>s&&m===S};this.setState(Ue(Ue({},o,c+b),"brushMoveStartX",n.pageX),function(){y&&w()&&y(g)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var a=this,o=this.state,u=o.scaleValues,s=o.startX,c=o.endX,f=this.state[i],l=u.indexOf(f);if(l!==-1){var p=l+n;if(!(p===-1||p>=u.length)){var h=u[p];i==="startX"&&h>=c||i==="endX"&&h<=s||this.setState(Ue({},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 A.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,f=n.padding,l=B.Children.only(c);return l?A.cloneElement(l,{x:i,y:a,width:o,height:u,margin:f,compact:!0,data:s}):null}},{key:"renderTravellerLayer",value:function(n,i){var a,o,u=this,s=this.props,c=s.y,f=s.travellerWidth,l=s.height,p=s.traveller,h=s.ariaLabel,y=s.data,d=s.startIndex,v=s.endIndex,x=Math.max(n,this.props.x),b=$l($l({},G(this.props,!1)),{},{x,y:c,width:f,height:l}),g=h||"Min value: ".concat((a=y[d])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=y[v])===null||o===void 0?void 0:o.name);return A.createElement(re,{tabIndex:0,role:"slider","aria-label":g,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(m){["ArrowLeft","ArrowRight"].includes(m.key)&&(m.preventDefault(),m.stopPropagation(),u.handleTravellerMoveKeyboard(m.key==="ArrowRight"?1:-1,i))},onFocus:function(){u.setState({isTravellerFocused:!0})},onBlur:function(){u.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(p,b))}},{key:"renderSlide",value:function(n,i){var a=this.props,o=a.y,u=a.height,s=a.stroke,c=a.travellerWidth,f=Math.min(n,i)+c,l=Math.max(Math.abs(i-n)-c,0);return A.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:f,y:o,width:l,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,f=this.state,l=f.startX,p=f.endX,h=5,y={pointerEvents:"none",fill:c};return A.createElement(re,{className:"recharts-brush-texts"},A.createElement(vr,Da({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,p)-h,y:o+u/2},y),this.getTextOfTick(i)),A.createElement(vr,Da({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,p)+s+h,y:o+u/2},y),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,f=n.height,l=n.alwaysShowText,p=this.state,h=p.startX,y=p.endX,d=p.isTextActive,v=p.isSlideMoving,x=p.isTravellerMoving,b=p.isTravellerFocused;if(!i||!i.length||!F(u)||!F(s)||!F(c)||!F(f)||c<=0||f<=0)return null;var g=te("recharts-brush",a),O=A.Children.count(o)===1,m=hR("userSelect","none");return A.createElement(re,{className:g,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:m},this.renderBackground(),O&&this.renderPanorama(),this.renderSlide(h,y),this.renderTravellerLayer(h,"startX"),this.renderTravellerLayer(y,"endX"),(d||v||x||b||l)&&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 A.createElement(A.Fragment,null,A.createElement("rect",{x:i,y:a,width:o,height:u,fill:s,stroke:"none"}),A.createElement("line",{x1:i+1,y1:c,x2:i+o-1,y2:c,fill:"none",stroke:"#fff"}),A.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 A.isValidElement(n)?a=A.cloneElement(n,i):X(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,f=n.startIndex,l=n.endIndex;if(a!==i.prevData||c!==i.prevUpdateId)return $l({prevData:a,prevTravellerWidth:s,prevUpdateId:c,prevX:u,prevWidth:o},a&&a.length?OR({data:a,width:o,x:u,travellerWidth:s,startIndex:f,endIndex:l}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||u!==i.prevX||s!==i.prevTravellerWidth)){i.scale.range([u,u+o-s]);var p=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:p}}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}}])}(B.PureComponent);Ue(Jr,"displayName","Brush");Ue(Jr,"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 Ml,Rb;function _R(){if(Rb)return Ml;Rb=1;var e=Lp();function t(r,n){var i;return e(r,function(a,o,u){return i=n(a,o,u),!i}),!!i}return Ml=t,Ml}var Cl,Db;function AR(){if(Db)return Cl;Db=1;var e=ax(),t=bt(),r=_R(),n=ze(),i=fo();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 Cl=a,Cl}var SR=AR();const PR=le(SR);var yt=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},Il,qb;function jR(){if(qb)return Il;qb=1;var e=_x();function t(r,n,i){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return Il=t,Il}var kl,Lb;function TR(){if(Lb)return kl;Lb=1;var e=jR(),t=wx(),r=bt();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 kl=n,kl}var ER=TR();const $R=le(ER);var Nl,Bb;function MR(){if(Bb)return Nl;Bb=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 Nl=e,Nl}var Rl,Fb;function CR(){if(Fb)return Rl;Fb=1;var e=Lp();function t(r,n){var i=!0;return e(r,function(a,o,u){return i=!!n(a,o,u),i}),i}return Rl=t,Rl}var Dl,zb;function IR(){if(zb)return Dl;zb=1;var e=MR(),t=CR(),r=bt(),n=ze(),i=fo();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 Dl=a,Dl}var kR=IR();const cO=le(kR);var NR=["x","y"];function wi(e){"@babel/helpers - typeof";return wi=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},wi(e)}function Zf(){return Zf=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},Zf.apply(this,arguments)}function Wb(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 Cn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Wb(Object(r),!0).forEach(function(n){RR(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function RR(e,t,r){return t=DR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function DR(e){var t=qR(e,"string");return wi(t)=="symbol"?t:t+""}function qR(e,t){if(wi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(wi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function LR(e,t){if(e==null)return{};var r=BR(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 BR(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 FR(e,t){var r=e.x,n=e.y,i=LR(e,NR),a="".concat(r),o=parseInt(a,10),u="".concat(n),s=parseInt(u,10),c="".concat(t.height||i.height),f=parseInt(c,10),l="".concat(t.width||i.width),p=parseInt(l,10);return Cn(Cn(Cn(Cn(Cn({},t),i),o?{x:o}:{}),s?{y:s}:{}),{},{height:f,width:p,name:t.name,radius:t.radius})}function Ub(e){return A.createElement(ka,Zf({shapeType:"rectangle",propTransformer:FR,activeClassName:"recharts-active-bar"},e))}var zR=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=typeof n=="number";return a?t(n,i):(a||mr(),r)}},WR=["value","background"],lO;function Qr(e){"@babel/helpers - typeof";return Qr=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},Qr(e)}function UR(e,t){if(e==null)return{};var r=KR(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 KR(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 La(){return La=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},La.apply(this,arguments)}function Kb(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 Oe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Kb(Object(r),!0).forEach(function(n){Ft(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function HR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hb(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,pO(n.key),n)}}function GR(e,t,r){return t&&Hb(e.prototype,t),r&&Hb(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function VR(e,t,r){return t=Ba(t),XR(e,fO()?Reflect.construct(t,r||[],Ba(e).constructor):t.apply(e,r))}function XR(e,t){if(t&&(Qr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return YR(e)}function YR(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 Ba(e){return Ba=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ba(e)}function ZR(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&&Jf(e,t)}function Jf(e,t){return Jf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Jf(e,t)}function Ft(e,t,r){return t=pO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pO(e){var t=JR(e,"string");return Qr(t)=="symbol"?t:t+""}function JR(e,t){if(Qr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Qr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var $t=function(e){function t(){var r;HR(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=VR(this,t,[].concat(i)),Ft(r,"state",{isAnimationFinished:!1}),Ft(r,"id",Vt("recharts-bar-")),Ft(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),Ft(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return ZR(t,e),GR(t,[{key:"renderRectanglesStatically",value:function(n){var i=this,a=this.props,o=a.shape,u=a.dataKey,s=a.activeIndex,c=a.activeBar,f=G(this.props,!1);return n&&n.map(function(l,p){var h=p===s,y=h?c:o,d=Oe(Oe(Oe({},f),l),{},{isActive:h,option:y,index:p,dataKey:u,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return A.createElement(re,La({className:"recharts-bar-rectangle"},Kt(i.props,l,p),{key:"rectangle-".concat(l==null?void 0:l.x,"-").concat(l==null?void 0:l.y,"-").concat(l==null?void 0:l.value,"-").concat(p)}),A.createElement(Ub,d))})}},{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,f=i.animationEasing,l=i.animationId,p=this.state.prevData;return A.createElement(tt,{begin:s,duration:c,isActive:u,easing:f,from:{t:0},to:{t:1},key:"bar-".concat(l),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(h){var y=h.t,d=a.map(function(v,x){var b=p&&p[x];if(b){var g=xe(b.x,v.x),O=xe(b.y,v.y),m=xe(b.width,v.width),w=xe(b.height,v.height);return Oe(Oe({},v),{},{x:g(y),y:O(y),width:m(y),height:w(y)})}if(o==="horizontal"){var _=xe(0,v.height),S=_(y);return Oe(Oe({},v),{},{y:v.y+v.height-S,height:S})}var j=xe(0,v.width),$=j(y);return Oe(Oe({},v),{},{width:$})});return A.createElement(re,null,n.renderRectanglesStatically(d))})}},{key:"renderRectangles",value:function(){var n=this.props,i=n.data,a=n.isAnimationActive,o=this.state.prevData;return a&&i&&i.length&&(!o||!Ht(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=G(this.props.background,!1);return a.map(function(c,f){c.value;var l=c.background,p=UR(c,WR);if(!l)return null;var h=Oe(Oe(Oe(Oe(Oe({},p),{},{fill:"#eee"},l),s),Kt(n.props,c,f)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:f,className:"recharts-bar-background-rectangle"});return A.createElement(Ub,La({key:"background-bar-".concat(f),option:n.props.background,isActive:f===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,f=a.children,l=Be(f,On);if(!l)return null;var p=c==="vertical"?o[0].height/2:o[0].width/2,h=function(v,x){var b=Array.isArray(v.value)?v.value[1]:v.value;return{x:v.x,y:v.y,value:b,errorVal:me(v,x)}},y={clipPath:n?"url(#clipPath-".concat(i,")"):null};return A.createElement(re,y,l.map(function(d){return A.cloneElement(d,{key:"error-bar-".concat(i,"-").concat(d.props.dataKey),data:o,xAxis:u,yAxis:s,layout:c,offset:p,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,f=n.top,l=n.width,p=n.height,h=n.isAnimationActive,y=n.background,d=n.id;if(i||!a||!a.length)return null;var v=this.state.isAnimationFinished,x=te("recharts-bar",o),b=u&&u.allowDataOverflow,g=s&&s.allowDataOverflow,O=b||g,m=Y(d)?this.id:d;return A.createElement(re,{className:x},b||g?A.createElement("defs",null,A.createElement("clipPath",{id:"clipPath-".concat(m)},A.createElement("rect",{x:b?c:c-l/2,y:g?f:f-p/2,width:b?l:l*2,height:g?p:p*2}))):null,A.createElement(re,{className:"recharts-bar-rectangles",clipPath:O?"url(#clipPath-".concat(m,")"):null},y?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(O,m),(!h||v)&&ct.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}}])}(B.PureComponent);lO=$t;Ft($t,"displayName","Bar");Ft($t,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!It.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});Ft($t,"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,f=e.dataStartIndex,l=e.displayedData,p=e.offset,h=jM(n,r);if(!h)return null;var y=t.layout,d=r.type.defaultProps,v=d!==void 0?Oe(Oe({},d),r.props):r.props,x=v.dataKey,b=v.children,g=v.minPointSize,O=y==="horizontal"?o:a,m=c?O.scale.domain():null,w=kM({numericAxis:O}),_=Be(b,po),S=l.map(function(j,$){var P,E,M,C,I,k;c?P=TM(c[f+$],m):(P=me(j,x),Array.isArray(P)||(P=[w,P]));var q=zR(g,lO.defaultProps.minPointSize)(P[1],$);if(y==="horizontal"){var z,W=[o.scale(P[0]),o.scale(P[1])],V=W[0],N=W[1];E=mg({axis:a,ticks:u,bandSize:i,offset:h.offset,entry:j,index:$}),M=(z=N??V)!==null&&z!==void 0?z:void 0,C=h.size;var D=V-N;if(I=Number.isNaN(D)?0:D,k={x:E,y:o.y,width:C,height:o.height},Math.abs(q)>0&&Math.abs(I)<Math.abs(q)){var H=De(I||q)*(Math.abs(q)-Math.abs(I));M-=H,I+=H}}else{var J=[a.scale(P[0]),a.scale(P[1])],ge=J[0],Ie=J[1];if(E=ge,M=mg({axis:o,ticks:s,bandSize:i,offset:h.offset,entry:j,index:$}),C=Ie-ge,I=h.size,k={x:a.x,y:M,width:a.width,height:I},Math.abs(q)>0&&Math.abs(C)<Math.abs(q)){var nt=De(C||q)*(Math.abs(q)-Math.abs(C));C+=nt}}return Oe(Oe(Oe({},j),{},{x:E,y:M,width:C,height:I,value:c?P:P[1],payload:j,background:k},_&&_[$]&&_[$].props),{},{tooltipPayload:[Lw(r,j)],tooltipPosition:{x:E+C/2,y:M+I/2}})});return Oe({data:S,layout:y},p)});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 QR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Gb(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,dO(n.key),n)}}function e2(e,t,r){return t&&Gb(e.prototype,t),r&&Gb(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Vb(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 at(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Vb(Object(r),!0).forEach(function(n){$o(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $o(e,t,r){return t=dO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dO(e){var t=t2(e,"string");return Oi(t)=="symbol"?t:t+""}function t2(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)}var hO=function(t,r,n,i,a){var o=t.width,u=t.height,s=t.layout,c=t.children,f=Object.keys(r),l={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},p=!!Ke(c,$t);return f.reduce(function(h,y){var d=r[y],v=d.orientation,x=d.domain,b=d.padding,g=b===void 0?{}:b,O=d.mirror,m=d.reversed,w="".concat(v).concat(O?"Mirror":""),_,S,j,$,P;if(d.type==="number"&&(d.padding==="gap"||d.padding==="no-gap")){var E=x[1]-x[0],M=1/0,C=d.categoricalDomain.sort(vA);if(C.forEach(function(J,ge){ge>0&&(M=Math.min((J||0)-(C[ge-1]||0),M))}),Number.isFinite(M)){var I=M/E,k=d.layout==="vertical"?n.height:n.width;if(d.padding==="gap"&&(_=I*k/2),d.padding==="no-gap"){var q=qe(t.barCategoryGap,I*k),z=I*k/2;_=z-q-(z-q)/k*q}}}i==="xAxis"?S=[n.left+(g.left||0)+(_||0),n.left+n.width-(g.right||0)-(_||0)]:i==="yAxis"?S=s==="horizontal"?[n.top+n.height-(g.bottom||0),n.top+(g.top||0)]:[n.top+(g.top||0)+(_||0),n.top+n.height-(g.bottom||0)-(_||0)]:S=d.range,m&&(S=[S[1],S[0]]);var W=Nw(d,a,p),V=W.scale,N=W.realScaleType;V.domain(x).range(S),Rw(V);var D=Dw(V,at(at({},d),{},{realScaleType:N}));i==="xAxis"?(P=v==="top"&&!O||v==="bottom"&&O,j=n.left,$=l[w]-P*d.height):i==="yAxis"&&(P=v==="left"&&!O||v==="right"&&O,j=l[w]-P*d.width,$=n.top);var H=at(at(at({},d),D),{},{realScaleType:N,x:j,y:$,scale:V,width:i==="xAxis"?n.width:d.width,height:i==="yAxis"?n.height:d.height});return H.bandSize=_a(H,D),!d.hide&&i==="xAxis"?l[w]+=(P?-1:1)*H.height:d.hide||(l[w]+=(P?-1:1)*H.width),at(at({},h),{},$o({},y,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)}},r2=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){QR(this,e),this.scale=t}return e2(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)}}])}();$o(yO,"EPS",1e-4);var hd=function(t){var r=Object.keys(t).reduce(function(n,i){return at(at({},n),{},$o({},i,yO.create(t[i])))},{});return at(at({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,u=a.position;return $R(i,function(s,c){return r[c].apply(s,{bandAware:o,position:u})})},isInRange:function(i){return cO(i,function(a,o){return r[o].isInRange(a)})}})};function n2(e){return(e%180+180)%180}var i2=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=n2(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)},ql,Xb;function a2(){if(Xb)return ql;Xb=1;var e=bt(),t=Ti(),r=co();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(l){return c(s[l],l,s)}}var f=i(a,o,u);return f>-1?s[c?a[f]:f]:void 0}}return ql=n,ql}var Ll,Yb;function o2(){if(Yb)return Ll;Yb=1;var e=aO();function t(r){var n=e(r),i=n%1;return n===n?i?n-i:n:0}return Ll=t,Ll}var Bl,Zb;function u2(){if(Zb)return Bl;Zb=1;var e=yx(),t=bt(),r=o2(),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 Bl=i,Bl}var Fl,Jb;function s2(){if(Jb)return Fl;Jb=1;var e=a2(),t=u2(),r=e(t);return Fl=r,Fl}var c2=s2();const l2=le(c2);var f2=M0();const p2=le(f2);var d2=p2(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("")}),vd=B.createContext(void 0),yd=B.createContext(void 0),mO=B.createContext(void 0),gO=B.createContext({}),bO=B.createContext(void 0),xO=B.createContext(0),wO=B.createContext(0),Qb=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,f=d2(a);return A.createElement(vd.Provider,{value:n},A.createElement(yd.Provider,{value:i},A.createElement(gO.Provider,{value:a},A.createElement(mO.Provider,{value:f},A.createElement(bO.Provider,{value:o},A.createElement(xO.Provider,{value:c},A.createElement(wO.Provider,{value:s},u)))))))},h2=function(){return B.useContext(bO)},OO=function(t){var r=B.useContext(vd);r==null&&mr();var n=r[t];return n==null&&mr(),n},v2=function(){var t=B.useContext(vd);return Lt(t)},y2=function(){var t=B.useContext(yd),r=l2(t,function(n){return cO(n.domain,Number.isFinite)});return r||Lt(t)},_O=function(t){var r=B.useContext(yd);r==null&&mr();var n=r[t];return n==null&&mr(),n},m2=function(){var t=B.useContext(mO);return t},g2=function(){return B.useContext(gO)},md=function(){return B.useContext(wO)},gd=function(){return B.useContext(xO)};function en(e){"@babel/helpers - typeof";return en=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},en(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,SO(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=Fa(t),_2(e,AO()?Reflect.construct(t,r||[],Fa(e).constructor):t.apply(e,r))}function _2(e,t){if(t&&(en(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 AO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(AO=function(){return!!e})()}function Fa(e){return Fa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Fa(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&&Qf(e,t)}function Qf(e,t){return Qf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Qf(e,t)}function e0(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 t0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?e0(Object(r),!0).forEach(function(n){bd(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):e0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function bd(e,t,r){return t=SO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function SO(e){var t=P2(e,"string");return en(t)=="symbol"?t:t+""}function P2(e,t){if(en(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(en(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function j2(e,t){return M2(e)||$2(e,t)||E2(e,t)||T2()}function T2(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function E2(e,t){if(e){if(typeof e=="string")return r0(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 r0(e,t)}}function r0(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 $2(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(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function M2(e){if(Array.isArray(e))return 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)}var C2=function(t,r){var n;return A.isValidElement(t)?n=A.cloneElement(t,r):X(t)?n=t(r):n=A.createElement("line",ep({},r,{className:"recharts-reference-line-line"})),n},I2=function(t,r,n,i,a,o,u,s,c){var f=a.x,l=a.y,p=a.width,h=a.height;if(n){var y=c.y,d=t.y.apply(y,{position:o});if(yt(c,"discard")&&!t.y.isInRange(d))return null;var v=[{x:f+p,y:d},{x:f,y:d}];return s==="left"?v.reverse():v}if(r){var x=c.x,b=t.x.apply(x,{position:o});if(yt(c,"discard")&&!t.x.isInRange(b))return null;var g=[{x:b,y:l+h},{x:b,y:l}];return u==="top"?g.reverse():g}if(i){var O=c.segment,m=O.map(function(w){return t.apply(w,{position:o})});return yt(c,"discard")&&PR(m,function(w){return!t.isInRange(w)})?null:m}return null};function k2(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=h2(),f=OO(i),l=_O(a),p=m2();if(!c||!p)return null;st(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var h=hd({x:f.scale,y:l.scale}),y=Se(t),d=Se(r),v=n&&n.length===2,x=I2(h,y,d,v,p,e.position,f.orientation,l.orientation,e);if(!x)return null;var b=j2(x,2),g=b[0],O=g.x,m=g.y,w=b[1],_=w.x,S=w.y,j=yt(e,"hidden")?"url(#".concat(c,")"):void 0,$=t0(t0({clipPath:j},G(e,!0)),{},{x1:O,y1:m,x2:_,y2:S});return A.createElement(re,{className:te("recharts-reference-line",u)},C2(o,$),Ee.renderCallByParent(e,r2({x1:O,y1:m,x2:_,y2:S})))}var xd=function(e){function t(){return b2(this,t),O2(this,t,arguments)}return S2(t,e),w2(t,[{key:"render",value:function(){return A.createElement(k2,this.props)}}])}(A.Component);bd(xd,"displayName","ReferenceLine");bd(xd,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function tp(){return tp=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},tp.apply(this,arguments)}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 n0(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 i0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?n0(Object(r),!0).forEach(function(n){Mo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function N2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function R2(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,jO(n.key),n)}}function D2(e,t,r){return t&&R2(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function q2(e,t,r){return t=za(t),L2(e,PO()?Reflect.construct(t,r||[],za(e).constructor):t.apply(e,r))}function L2(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 B2(e)}function B2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function PO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(PO=function(){return!!e})()}function za(e){return za=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},za(e)}function F2(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&&rp(e,t)}function rp(e,t){return rp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},rp(e,t)}function Mo(e,t,r){return t=jO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jO(e){var t=z2(e,"string");return tn(t)=="symbol"?t:t+""}function z2(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 W2=function(t){var r=t.x,n=t.y,i=t.xAxis,a=t.yAxis,o=hd({x:i.scale,y:a.scale}),u=o.apply({x:r,y:n},{bandAware:!0});return yt(t,"discard")&&!o.isInRange(u)?null:u},Co=function(e){function t(){return N2(this,t),q2(this,t,arguments)}return F2(t,e),D2(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=Se(i),f=Se(a);if(st(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!c||!f)return null;var l=W2(this.props);if(!l)return null;var p=l.x,h=l.y,y=this.props,d=y.shape,v=y.className,x=yt(this.props,"hidden")?"url(#".concat(s,")"):void 0,b=i0(i0({clipPath:x},G(this.props,!0)),{},{cx:p,cy:h});return A.createElement(re,{className:te("recharts-reference-dot",v)},t.renderDot(d,b),Ee.renderCallByParent(this.props,{x:p-o,y:h-o,width:2*o,height:2*o}))}}])}(A.Component);Mo(Co,"displayName","ReferenceDot");Mo(Co,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});Mo(Co,"renderDot",function(e,t){var r;return A.isValidElement(e)?r=A.cloneElement(e,t):X(e)?r=e(t):r=A.createElement(Ii,tp({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function np(){return np=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},np.apply(this,arguments)}function rn(e){"@babel/helpers - typeof";return rn=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},rn(e)}function a0(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 o0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?a0(Object(r),!0).forEach(function(n){Io(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function U2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function K2(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,EO(n.key),n)}}function H2(e,t,r){return t&&K2(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function G2(e,t,r){return t=Wa(t),V2(e,TO()?Reflect.construct(t,r||[],Wa(e).constructor):t.apply(e,r))}function V2(e,t){if(t&&(rn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return X2(e)}function X2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function TO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(TO=function(){return!!e})()}function Wa(e){return Wa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Wa(e)}function Y2(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&&ip(e,t)}function ip(e,t){return ip=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ip(e,t)}function Io(e,t,r){return t=EO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function EO(e){var t=Z2(e,"string");return rn(t)=="symbol"?t:t+""}function Z2(e,t){if(rn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(rn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var J2=function(t,r,n,i,a){var o=a.x1,u=a.x2,s=a.y1,c=a.y2,f=a.xAxis,l=a.yAxis;if(!f||!l)return null;var p=hd({x:f.scale,y:l.scale}),h={x:t?p.x.apply(o,{position:"start"}):p.x.rangeMin,y:n?p.y.apply(s,{position:"start"}):p.y.rangeMin},y={x:r?p.x.apply(u,{position:"end"}):p.x.rangeMax,y:i?p.y.apply(c,{position:"end"}):p.y.rangeMax};return yt(a,"discard")&&(!p.isInRange(h)||!p.isInRange(y))?null:vO(h,y)},ko=function(e){function t(){return U2(this,t),G2(this,t,arguments)}return Y2(t,e),H2(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,f=n.clipPathId;st(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var l=Se(i),p=Se(a),h=Se(o),y=Se(u),d=this.props.shape;if(!l&&!p&&!h&&!y&&!d)return null;var v=J2(l,p,h,y,this.props);if(!v&&!d)return null;var x=yt(this.props,"hidden")?"url(#".concat(f,")"):void 0;return A.createElement(re,{className:te("recharts-reference-area",s)},t.renderRect(d,o0(o0({clipPath:x},G(this.props,!0)),v)),Ee.renderCallByParent(this.props,v))}}])}(A.Component);Io(ko,"displayName","ReferenceArea");Io(ko,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});Io(ko,"renderRect",function(e,t){var r;return A.isValidElement(e)?r=A.cloneElement(e,t):X(e)?r=e(t):r=A.createElement(dd,np({},t,{className:"recharts-reference-area-rect"})),r});function $O(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 Q2(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return i2(n,r)}function eD(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 Ua(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 tD(e,t){return $O(e,t+1)}function rD(e,t,r,n,i){for(var a=(n||[]).slice(),o=t.start,u=t.end,s=0,c=1,f=o,l=function(){var y=n==null?void 0:n[s];if(y===void 0)return{v:$O(n,c)};var d=s,v,x=function(){return v===void 0&&(v=r(y,d)),v},b=y.coordinate,g=s===0||Ua(e,b,x,f,u);g||(s=0,f=o,c+=1),g&&(f=b+e*(x()/2+i),s+=c)},p;c<=a.length;)if(p=l(),p)return p.v;return[]}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 u0(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 ke(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?u0(Object(r),!0).forEach(function(n){nD(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function nD(e,t,r){return t=iD(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function iD(e){var t=aD(e,"string");return _i(t)=="symbol"?t:t+""}function aD(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 oD(e,t,r,n,i){for(var a=(n||[]).slice(),o=a.length,u=t.start,s=t.end,c=function(p){var h=a[p],y,d=function(){return y===void 0&&(y=r(h,p)),y};if(p===o-1){var v=e*(h.coordinate+e*d()/2-s);a[p]=h=ke(ke({},h),{},{tickCoord:v>0?h.coordinate-v*e:h.coordinate})}else a[p]=h=ke(ke({},h),{},{tickCoord:h.coordinate});var x=Ua(e,h.tickCoord,d,u,s);x&&(s=h.tickCoord-e*(d()/2+i),a[p]=ke(ke({},h),{},{isShow:!0}))},f=o-1;f>=0;f--)c(f);return a}function uD(e,t,r,n,i,a){var o=(n||[]).slice(),u=o.length,s=t.start,c=t.end;if(a){var f=n[u-1],l=r(f,u-1),p=e*(f.coordinate+e*l/2-c);o[u-1]=f=ke(ke({},f),{},{tickCoord:p>0?f.coordinate-p*e:f.coordinate});var h=Ua(e,f.tickCoord,function(){return l},s,c);h&&(c=f.tickCoord-e*(l/2+i),o[u-1]=ke(ke({},f),{},{isShow:!0}))}for(var y=a?u-1:u,d=function(b){var g=o[b],O,m=function(){return O===void 0&&(O=r(g,b)),O};if(b===0){var w=e*(g.coordinate-e*m()/2-s);o[b]=g=ke(ke({},g),{},{tickCoord:w<0?g.coordinate-w*e:g.coordinate})}else o[b]=g=ke(ke({},g),{},{tickCoord:g.coordinate});var _=Ua(e,g.tickCoord,m,s,c);_&&(s=g.tickCoord+e*(m()/2+i),o[b]=ke(ke({},g),{},{isShow:!0}))},v=0;v<y;v++)d(v);return o}function wd(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,f=e.unit,l=e.angle;if(!i||!i.length||!n)return[];if(F(s)||It.isSsr)return tD(i,typeof s=="number"&&F(s)?s:0);var p=[],h=u==="top"||u==="bottom"?"width":"height",y=f&&h==="width"?Rn(f,{fontSize:t,letterSpacing:r}):{width:0,height:0},d=function(g,O){var m=X(c)?c(g.value,O):g.value;return h==="width"?Q2(Rn(m,{fontSize:t,letterSpacing:r}),y,l):Rn(m,{fontSize:t,letterSpacing:r})[h]},v=i.length>=2?De(i[1].coordinate-i[0].coordinate):1,x=eD(a,v,h);return s==="equidistantPreserveStart"?rD(v,x,d,i,o):(s==="preserveStart"||s==="preserveStartEnd"?p=uD(v,x,d,i,o,s==="preserveStartEnd"):p=oD(v,x,d,i,o),p.filter(function(b){return b.isShow}))}var sD=["viewBox"],cD=["viewBox"],lD=["ticks"];function nn(e){"@babel/helpers - typeof";return nn=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},nn(e)}function Mr(){return Mr=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},Mr.apply(this,arguments)}function s0(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 Re(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?s0(Object(r),!0).forEach(function(n){Od(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zl(e,t){if(e==null)return{};var r=fD(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 fD(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 pD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c0(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,CO(n.key),n)}}function dD(e,t,r){return t&&c0(e.prototype,t),r&&c0(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function hD(e,t,r){return t=Ka(t),vD(e,MO()?Reflect.construct(t,r||[],Ka(e).constructor):t.apply(e,r))}function vD(e,t){if(t&&(nn(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 MO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(MO=function(){return!!e})()}function Ka(e){return Ka=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ka(e)}function mD(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&&ap(e,t)}function ap(e,t){return ap=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ap(e,t)}function Od(e,t,r){return t=CO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function CO(e){var t=gD(e,"string");return nn(t)=="symbol"?t:t+""}function gD(e,t){if(nn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(nn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var _n=function(e){function t(r){var n;return pD(this,t),n=hD(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return mD(t,e),dD(t,[{key:"shouldComponentUpdate",value:function(n,i){var a=n.viewBox,o=zl(n,sD),u=this.props,s=u.viewBox,c=zl(u,cD);return!Ir(a,s)||!Ir(o,c)||!Ir(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,f=i.tickSize,l=i.mirror,p=i.tickMargin,h,y,d,v,x,b,g=l?-1:1,O=n.tickSize||f,m=F(n.tickCoord)?n.tickCoord:n.coordinate;switch(c){case"top":h=y=n.coordinate,v=o+ +!l*s,d=v-g*O,b=d-g*p,x=m;break;case"left":d=v=n.coordinate,y=a+ +!l*u,h=y-g*O,x=h-g*p,b=m;break;case"right":d=v=n.coordinate,y=a+ +l*u,h=y+g*O,x=h+g*p,b=m;break;default:h=y=n.coordinate,v=o+ +l*s,d=v+g*O,b=d+g*p,x=m;break}return{line:{x1:h,y1:d,x2:y,y2:v},tick:{x,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,f=n.axisLine,l=Re(Re(Re({},G(this.props,!1)),G(f,!1)),{},{fill:"none"});if(s==="top"||s==="bottom"){var p=+(s==="top"&&!c||s==="bottom"&&c);l=Re(Re({},l),{},{x1:i,y1:a+p*u,x2:i+o,y2:a+p*u})}else{var h=+(s==="left"&&!c||s==="right"&&c);l=Re(Re({},l),{},{x1:i+h*o,y1:a,x2:i+h*o,y2:a+u})}return A.createElement("line",Mr({},l,{className:te("recharts-cartesian-axis-line",Ge(f,"className"))}))}},{key:"renderTicks",value:function(n,i,a){var o=this,u=this.props,s=u.tickLine,c=u.stroke,f=u.tick,l=u.tickFormatter,p=u.unit,h=wd(Re(Re({},this.props),{},{ticks:n}),i,a),y=this.getTickTextAnchor(),d=this.getTickVerticalAnchor(),v=G(this.props,!1),x=G(f,!1),b=Re(Re({},v),{},{fill:"none"},G(s,!1)),g=h.map(function(O,m){var w=o.getTickLineCoord(O),_=w.line,S=w.tick,j=Re(Re(Re(Re({textAnchor:y,verticalAnchor:d},v),{},{stroke:"none",fill:c},x),S),{},{index:m,payload:O,visibleTicksCount:h.length,tickFormatter:l});return A.createElement(re,Mr({className:"recharts-cartesian-axis-tick",key:"tick-".concat(O.value,"-").concat(O.coordinate,"-").concat(O.tickCoord)},Kt(o.props,O,m)),s&&A.createElement("line",Mr({},b,_,{className:te("recharts-cartesian-axis-tick-line",Ge(s,"className"))})),f&&t.renderTickItem(f,j,"".concat(X(l)?l(O.value,m):O.value).concat(p||"")))});return A.createElement("g",{className:"recharts-cartesian-axis-ticks"},g)}},{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,f=i.hide;if(f)return null;var l=this.props,p=l.ticks,h=zl(l,lD),y=p;return X(s)&&(y=p&&p.length>0?s(this.props):s(h)),o<=0||u<=0||!y||!y.length?null:A.createElement(re,{className:te("recharts-cartesian-axis",c),ref:function(v){n.layerReference=v}},a&&this.renderAxisLine(),this.renderTicks(y,this.state.fontSize,this.state.letterSpacing),Ee.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var o;return A.isValidElement(n)?o=A.cloneElement(n,i):X(n)?o=n(i):o=A.createElement(vr,Mr({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])}(B.Component);Od(_n,"displayName","CartesianAxis");Od(_n,"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 bD=["x1","y1","x2","y2","key"],xD=["offset"];function gr(e){"@babel/helpers - typeof";return gr=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},gr(e)}function l0(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?l0(Object(r),!0).forEach(function(n){wD(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wD(e,t,r){return t=OD(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function OD(e){var t=_D(e,"string");return gr(t)=="symbol"?t:t+""}function _D(e,t){if(gr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(gr(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 f0(e,t){if(e==null)return{};var r=AD(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 AD(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 SD=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 A.createElement("rect",{x:i,y:a,ry:s,width:o,height:u,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function IO(e,t){var r;if(A.isValidElement(e))r=A.cloneElement(e,t);else if(X(e))r=e(t);else{var n=t.x1,i=t.y1,a=t.x2,o=t.y2,u=t.key,s=f0(t,bD),c=G(s,!1);c.offset;var f=f0(c,xD);r=A.createElement("line",lr({},f,{x1:n,y1:i,x2:a,y2:o,fill:"none",key:u}))}return r}function PD(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=Ne(Ne({},e),{},{x1:t,y1:u,x2:t+r,y2:u,key:"line-".concat(s),index:s});return IO(i,c)});return A.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function jD(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=Ne(Ne({},e),{},{x1:u,y1:t,x2:u,y2:t+r,key:"line-".concat(s),index:s});return IO(i,c)});return A.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function TD(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 f=u.map(function(p){return Math.round(p+i-i)}).sort(function(p,h){return p-h});i!==f[0]&&f.unshift(0);var l=f.map(function(p,h){var y=!f[h+1],d=y?i+o-p:f[h+1]-p;if(d<=0)return null;var v=h%t.length;return A.createElement("rect",{key:"react-".concat(h),y:p,x:n,height:d,width:a,stroke:"none",fill:t[v],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return A.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},l)}function ED(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 f=c.map(function(p){return Math.round(p+a-a)}).sort(function(p,h){return p-h});a!==f[0]&&f.unshift(0);var l=f.map(function(p,h){var y=!f[h+1],d=y?a+u-p:f[h+1]-p;if(d<=0)return null;var v=h%n.length;return A.createElement("rect",{key:"react-".concat(h),x:p,y:o,width:d,height:s,stroke:"none",fill:n[v],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return A.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},l)}var $D=function(t,r){var n=t.xAxis,i=t.width,a=t.height,o=t.offset;return kw(wd(Ne(Ne(Ne({},_n.defaultProps),n),{},{ticks:At(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.left,o.left+o.width,r)},MD=function(t,r){var n=t.yAxis,i=t.width,a=t.height,o=t.offset;return kw(wd(Ne(Ne(Ne({},_n.defaultProps),n),{},{ticks:At(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.top,o.top+o.height,r)},Pr={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function op(e){var t,r,n,i,a,o,u=md(),s=gd(),c=g2(),f=Ne(Ne({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:Pr.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:Pr.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:Pr.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:Pr.horizontalFill,vertical:(a=e.vertical)!==null&&a!==void 0?a:Pr.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:Pr.verticalFill,x:F(e.x)?e.x:c.left,y:F(e.y)?e.y:c.top,width:F(e.width)?e.width:c.width,height:F(e.height)?e.height:c.height}),l=f.x,p=f.y,h=f.width,y=f.height,d=f.syncWithTicks,v=f.horizontalValues,x=f.verticalValues,b=v2(),g=y2();if(!F(h)||h<=0||!F(y)||y<=0||!F(l)||l!==+l||!F(p)||p!==+p)return null;var O=f.verticalCoordinatesGenerator||$D,m=f.horizontalCoordinatesGenerator||MD,w=f.horizontalPoints,_=f.verticalPoints;if((!w||!w.length)&&X(m)){var S=v&&v.length,j=m({yAxis:g?Ne(Ne({},g),{},{ticks:S?v:g.ticks}):void 0,width:u,height:s,offset:c},S?!0:d);st(Array.isArray(j),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(gr(j),"]")),Array.isArray(j)&&(w=j)}if((!_||!_.length)&&X(O)){var $=x&&x.length,P=O({xAxis:b?Ne(Ne({},b),{},{ticks:$?x:b.ticks}):void 0,width:u,height:s,offset:c},$?!0:d);st(Array.isArray(P),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(gr(P),"]")),Array.isArray(P)&&(_=P)}return A.createElement("g",{className:"recharts-cartesian-grid"},A.createElement(SD,{fill:f.fill,fillOpacity:f.fillOpacity,x:f.x,y:f.y,width:f.width,height:f.height,ry:f.ry}),A.createElement(PD,lr({},f,{offset:c,horizontalPoints:w,xAxis:b,yAxis:g})),A.createElement(jD,lr({},f,{offset:c,verticalPoints:_,xAxis:b,yAxis:g})),A.createElement(TD,lr({},f,{horizontalPoints:w})),A.createElement(ED,lr({},f,{verticalPoints:_})))}op.displayName="CartesianGrid";var CD=["type","layout","connectNulls","ref"],ID=["key"];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 p0(e,t){if(e==null)return{};var r=kD(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 kD(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 zn(){return zn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},zn.apply(this,arguments)}function d0(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?d0(Object(r),!0).forEach(function(n){ot(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function jr(e){return qD(e)||DD(e)||RD(e)||ND()}function ND(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function RD(e,t){if(e){if(typeof e=="string")return up(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 up(e,t)}}function DD(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function qD(e){if(Array.isArray(e))return up(e)}function up(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){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h0(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,NO(n.key),n)}}function BD(e,t,r){return t&&h0(e.prototype,t),r&&h0(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function FD(e,t,r){return t=Ha(t),zD(e,kO()?Reflect.construct(t,r||[],Ha(e).constructor):t.apply(e,r))}function zD(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 WD(e)}function WD(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function kO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(kO=function(){return!!e})()}function Ha(e){return Ha=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ha(e)}function UD(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&&sp(e,t)}function sp(e,t){return sp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},sp(e,t)}function ot(e,t,r){return t=NO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function NO(e){var t=KD(e,"string");return an(t)=="symbol"?t:t+""}function KD(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 on=function(e){function t(){var r;LD(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=FD(this,t,[].concat(i)),ot(r,"state",{isAnimationFinished:!0,totalLength:0}),ot(r,"generateSimpleStrokeDasharray",function(o,u){return"".concat(u,"px ").concat(o-u,"px")}),ot(r,"getStrokeDasharray",function(o,u,s){var c=s.reduce(function(x,b){return x+b});if(!c)return r.generateSimpleStrokeDasharray(u,o);for(var f=Math.floor(o/c),l=o%c,p=u-o,h=[],y=0,d=0;y<s.length;d+=s[y],++y)if(d+s[y]>l){h=[].concat(jr(s.slice(0,y)),[l-d]);break}var v=h.length%2===0?[0,p]:[p];return[].concat(jr(t.repeat(s,f)),jr(h),v).map(function(x){return"".concat(x,"px")}).join(", ")}),ot(r,"id",Vt("recharts-line-")),ot(r,"pathRef",function(o){r.mainCurve=o}),ot(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0}),r.props.onAnimationEnd&&r.props.onAnimationEnd()}),ot(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1}),r.props.onAnimationStart&&r.props.onAnimationStart()}),r}return UD(t,e),BD(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,f=a.children,l=Be(f,On);if(!l)return null;var p=function(d,v){return{x:d.x,y:d.y,value:d.value,errorVal:me(d.payload,v)}},h={clipPath:n?"url(#clipPath-".concat(i,")"):null};return A.createElement(re,h,l.map(function(y){return A.cloneElement(y,{key:"bar-".concat(y.props.dataKey),data:o,xAxis:u,yAxis:s,layout:c,dataPointFormatter:p})}))}},{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,f=u.dataKey,l=G(this.props,!1),p=G(s,!0),h=c.map(function(d,v){var x=We(We(We({key:"dot-".concat(v),r:3},l),p),{},{index:v,cx:d.x,cy:d.y,value:d.value,dataKey:f,payload:d.payload,points:c});return t.renderDotItem(s,x)}),y={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return A.createElement(re,zn({className:"recharts-line-dots",key:"dots"},y),h)}},{key:"renderCurveStatically",value:function(n,i,a,o){var u=this.props,s=u.type,c=u.layout,f=u.connectNulls;u.ref;var l=p0(u,CD),p=We(We(We({},G(l,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:i?"url(#clipPath-".concat(a,")"):null,points:n},o),{},{type:s,layout:c,connectNulls:f});return A.createElement(Ut,zn({},p,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(n,i){var a=this,o=this.props,u=o.points,s=o.strokeDasharray,c=o.isAnimationActive,f=o.animationBegin,l=o.animationDuration,p=o.animationEasing,h=o.animationId,y=o.animateNewValues,d=o.width,v=o.height,x=this.state,b=x.prevPoints,g=x.totalLength;return A.createElement(tt,{begin:f,duration:l,isActive:c,easing:p,from:{t:0},to:{t:1},key:"line-".concat(h),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(O){var m=O.t;if(b){var w=b.length/u.length,_=u.map(function(E,M){var C=Math.floor(M*w);if(b[C]){var I=b[C],k=xe(I.x,E.x),q=xe(I.y,E.y);return We(We({},E),{},{x:k(m),y:q(m)})}if(y){var z=xe(d*2,E.x),W=xe(v/2,E.y);return We(We({},E),{},{x:z(m),y:W(m)})}return We(We({},E),{},{x:E.x,y:E.y})});return a.renderCurveStatically(_,n,i)}var S=xe(0,g),j=S(m),$;if(s){var P="".concat(s).split(/[,\s]+/gim).map(function(E){return parseFloat(E)});$=a.getStrokeDasharray(j,g,P)}else $=a.generateSimpleStrokeDasharray(g,j);return a.renderCurveStatically(u,n,i,{strokeDasharray:$})})}},{key:"renderCurve",value:function(n,i){var a=this.props,o=a.points,u=a.isAnimationActive,s=this.state,c=s.prevPoints,f=s.totalLength;return u&&o&&o.length&&(!c&&f>0||!Ht(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,f=i.yAxis,l=i.top,p=i.left,h=i.width,y=i.height,d=i.isAnimationActive,v=i.id;if(a||!u||!u.length)return null;var x=this.state.isAnimationFinished,b=u.length===1,g=te("recharts-line",s),O=c&&c.allowDataOverflow,m=f&&f.allowDataOverflow,w=O||m,_=Y(v)?this.id:v,S=(n=G(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},j=S.r,$=j===void 0?3:j,P=S.strokeWidth,E=P===void 0?2:P,M=R0(o)?o:{},C=M.clipDot,I=C===void 0?!0:C,k=$*2+E;return A.createElement(re,{className:g},O||m?A.createElement("defs",null,A.createElement("clipPath",{id:"clipPath-".concat(_)},A.createElement("rect",{x:O?p:p-h/2,y:m?l:l-y/2,width:O?h:h*2,height:m?y:y*2})),!I&&A.createElement("clipPath",{id:"clipPath-dots-".concat(_)},A.createElement("rect",{x:p-k/2,y:l-k/2,width:h+k,height:y+k}))):null,!b&&this.renderCurve(w,_),this.renderErrorBar(w,_),(b||o)&&this.renderDots(w,I,_),(!d||x)&&ct.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(jr(n),[0]):n,o=[],u=0;u<i;++u)o=[].concat(jr(o),jr(a));return o}},{key:"renderDotItem",value:function(n,i){var a;if(A.isValidElement(n))a=A.cloneElement(n,i);else if(X(n))a=n(i);else{var o=i.key,u=p0(i,ID),s=te("recharts-line-dot",typeof n!="boolean"?n.className:"");a=A.createElement(Ii,zn({key:o},u,{className:s}))}return a}}])}(B.PureComponent);ot(on,"displayName","Line");ot(on,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!It.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});ot(on,"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,f=t.layout,l=s.map(function(p,h){var y=me(p,o);return f==="horizontal"?{x:Hr({axis:r,ticks:i,bandSize:u,entry:p,index:h}),y:Y(y)?null:n.scale(y),value:y,payload:p}:{x:Y(y)?null:r.scale(y),y:Hr({axis:n,ticks:a,bandSize:u,entry:p,index:h}),value:y,payload:p}});return We({points:l,layout:f},c)});var HD=["layout","type","stroke","connectNulls","isRange","ref"],GD=["key"],RO;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)}function DO(e,t){if(e==null)return{};var r=VD(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 VD(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 fr(){return fr=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},fr.apply(this,arguments)}function v0(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 Dt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?v0(Object(r),!0).forEach(function(n){ht(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function XD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y0(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 YD(e,t,r){return t&&y0(e.prototype,t),r&&y0(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function ZD(e,t,r){return t=Ga(t),JD(e,qO()?Reflect.construct(t,r||[],Ga(e).constructor):t.apply(e,r))}function JD(e,t){if(t&&(un(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return QD(e)}function QD(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(qO=function(){return!!e})()}function Ga(e){return Ga=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ga(e)}function eq(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 ht(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=tq(e,"string");return un(t)=="symbol"?t:t+""}function tq(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 String(e)}var _r=function(e){function t(){var r;XD(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=ZD(this,t,[].concat(i)),ht(r,"state",{isAnimationFinished:!0}),ht(r,"id",Vt("recharts-area-")),ht(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),X(o)&&o()}),ht(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),X(o)&&o()}),r}return eq(t,e),YD(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,f=s.points,l=s.dataKey,p=G(this.props,!1),h=G(c,!0),y=f.map(function(v,x){var b=Dt(Dt(Dt({key:"dot-".concat(x),r:3},p),h),{},{index:x,cx:v.x,cy:v.y,dataKey:l,value:v.value,payload:v.payload,points:f});return t.renderDotItem(c,b)}),d={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return A.createElement(re,fr({className:"recharts-area-dots"},d),y)}},{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,f=n*Math.abs(s-c),l=Bt(o.map(function(p){return p.y||0}));return F(a)&&typeof a=="number"?l=Math.max(a,l):a&&Array.isArray(a)&&a.length&&(l=Math.max(Bt(a.map(function(p){return p.y||0})),l)),F(l)?A.createElement("rect",{x:s<c?s:s-f,y:0,width:f,height:Math.floor(l+(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,f=n*Math.abs(s-c),l=Bt(o.map(function(p){return p.x||0}));return F(a)&&typeof a=="number"?l=Math.max(a,l):a&&Array.isArray(a)&&a.length&&(l=Math.max(Bt(a.map(function(p){return p.x||0})),l)),F(l)?A.createElement("rect",{x:0,y:s<c?s:s-f,width:l+(u?parseInt("".concat(u),10):1),height:Math.floor(f)}):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,f=u.stroke,l=u.connectNulls,p=u.isRange;u.ref;var h=DO(u,HD);return A.createElement(re,{clipPath:a?"url(#clipPath-".concat(o,")"):null},A.createElement(Ut,fr({},G(h,!0),{points:n,connectNulls:l,type:c,baseLine:i,layout:s,stroke:"none",className:"recharts-area-area"})),f!=="none"&&A.createElement(Ut,fr({},G(this.props,!1),{className:"recharts-area-curve",layout:s,type:c,connectNulls:l,fill:"none",points:n})),f!=="none"&&p&&A.createElement(Ut,fr({},G(this.props,!1),{className:"recharts-area-curve",layout:s,type:c,connectNulls:l,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,f=o.animationBegin,l=o.animationDuration,p=o.animationEasing,h=o.animationId,y=this.state,d=y.prevPoints,v=y.prevBaseLine;return A.createElement(tt,{begin:f,duration:l,isActive:c,easing:p,from:{t:0},to:{t:1},key:"area-".concat(h),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(x){var b=x.t;if(d){var g=d.length/u.length,O=u.map(function(S,j){var $=Math.floor(j*g);if(d[$]){var P=d[$],E=xe(P.x,S.x),M=xe(P.y,S.y);return Dt(Dt({},S),{},{x:E(b),y:M(b)})}return S}),m;if(F(s)&&typeof s=="number"){var w=xe(v,s);m=w(b)}else if(Y(s)||mn(s)){var _=xe(v,0);m=_(b)}else m=s.map(function(S,j){var $=Math.floor(j*g);if(v[$]){var P=v[$],E=xe(P.x,S.x),M=xe(P.y,S.y);return Dt(Dt({},S),{},{x:E(b),y:M(b)})}return S});return a.renderAreaStatically(O,m,n,i)}return A.createElement(re,null,A.createElement("defs",null,A.createElement("clipPath",{id:"animationClipPath-".concat(i)},a.renderClipRect(b))),A.createElement(re,{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,f=c.prevPoints,l=c.prevBaseLine,p=c.totalLength;return s&&o&&o.length&&(!f&&p>0||!Ht(f,o)||!Ht(l,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,f=i.left,l=i.xAxis,p=i.yAxis,h=i.width,y=i.height,d=i.isAnimationActive,v=i.id;if(a||!u||!u.length)return null;var x=this.state.isAnimationFinished,b=u.length===1,g=te("recharts-area",s),O=l&&l.allowDataOverflow,m=p&&p.allowDataOverflow,w=O||m,_=Y(v)?this.id:v,S=(n=G(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},j=S.r,$=j===void 0?3:j,P=S.strokeWidth,E=P===void 0?2:P,M=R0(o)?o:{},C=M.clipDot,I=C===void 0?!0:C,k=$*2+E;return A.createElement(re,{className:g},O||m?A.createElement("defs",null,A.createElement("clipPath",{id:"clipPath-".concat(_)},A.createElement("rect",{x:O?f:f-h/2,y:m?c:c-y/2,width:O?h:h*2,height:m?y:y*2})),!I&&A.createElement("clipPath",{id:"clipPath-dots-".concat(_)},A.createElement("rect",{x:f-k/2,y:c-k/2,width:h+k,height:y+k}))):null,b?null:this.renderArea(w,_),(o||b)&&this.renderDots(w,I,_),(!d||x)&&ct.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}}])}(B.PureComponent);RO=_r;ht(_r,"displayName","Area");ht(_r,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!It.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});ht(_r,"getBaseValue",function(e,t,r,n){var i=e.layout,a=e.baseValue,o=t.props.baseValue,u=o??a;if(F(u)&&typeof u=="number")return u;var s=i==="horizontal"?n:r,c=s.scale.domain();if(s.type==="number"){var f=Math.max(c[0],c[1]),l=Math.min(c[0],c[1]);return u==="dataMin"?l:u==="dataMax"||f<0?f:Math.max(Math.min(c[0],c[1]),0)}return u==="dataMin"?c[0]:u==="dataMax"?c[1]:c[0]});ht(_r,"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,f=e.dataStartIndex,l=e.displayedData,p=e.offset,h=t.layout,y=c&&c.length,d=RO.getBaseValue(t,r,n,i),v=h==="horizontal",x=!1,b=l.map(function(O,m){var w;y?w=c[f+m]:(w=me(O,s),Array.isArray(w)?x=!0:w=[d,w]);var _=w[1]==null||y&&me(O,s)==null;return v?{x:Hr({axis:n,ticks:a,bandSize:u,entry:O,index:m}),y:_?null:i.scale(w[1]),value:w,payload:O}:{x:_?null:n.scale(w[1]),y:Hr({axis:i,ticks:o,bandSize:u,entry:O,index:m}),value:w,payload:O}}),g;return y||x?g=b.map(function(O){var m=Array.isArray(O.value)?O.value[0]:null;return v?{x:O.x,y:m!=null&&O.y!=null?i.scale(m):null}:{x:m!=null?n.scale(m):null,y:O.y}}):g=v?i.scale(d):n.scale(d),Dt({points:b,baseLine:g,layout:h,isRange:x},p)});ht(_r,"renderDotItem",function(e,t){var r;if(A.isValidElement(e))r=A.cloneElement(e,t);else if(X(e))r=e(t);else{var n=te("recharts-area-dot",typeof e!="boolean"?e.className:""),i=t.key,a=DO(t,GD);r=A.createElement(Ii,fr({},a,{key:i,className:n}))}return r});function sn(e){"@babel/helpers - typeof";return sn=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},sn(e)}function rq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nq(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,zO(n.key),n)}}function iq(e,t,r){return t&&nq(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function aq(e,t,r){return t=Va(t),oq(e,BO()?Reflect.construct(t,r||[],Va(e).constructor):t.apply(e,r))}function oq(e,t){if(t&&(sn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return uq(e)}function uq(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function BO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(BO=function(){return!!e})()}function Va(e){return Va=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Va(e)}function sq(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 FO(e,t,r){return t=zO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zO(e){var t=cq(e,"string");return sn(t)=="symbol"?t:t+""}function cq(e,t){if(sn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(sn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var No=function(e){function t(){return rq(this,t),aq(this,t,arguments)}return sq(t,e),iq(t,[{key:"render",value:function(){return null}}])}(A.Component);FO(No,"displayName","ZAxis");FO(No,"defaultProps",{zAxisId:0,range:[64,64],scale:"auto",type:"number"});var lq=["option","isActive"];function Wn(){return Wn=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},Wn.apply(this,arguments)}function fq(e,t){if(e==null)return{};var r=pq(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 pq(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 dq(e){var t=e.option,r=e.isActive,n=fq(e,lq);return typeof t=="string"?A.createElement(ka,Wn({option:A.createElement(so,Wn({type:t},n)),isActive:r,shapeType:"symbols"},n)):A.createElement(ka,Wn({option:t,isActive:r,shapeType:"symbols"},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 Un(){return Un=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},Un.apply(this,arguments)}function m0(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?m0(Object(r),!0).forEach(function(n){zt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function hq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g0(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,UO(n.key),n)}}function vq(e,t,r){return t&&g0(e.prototype,t),r&&g0(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function yq(e,t,r){return t=Xa(t),mq(e,WO()?Reflect.construct(t,r||[],Xa(e).constructor):t.apply(e,r))}function mq(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 gq(e)}function gq(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function WO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(WO=function(){return!!e})()}function Xa(e){return Xa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Xa(e)}function bq(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&&fp(e,t)}function fp(e,t){return fp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},fp(e,t)}function zt(e,t,r){return t=UO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function UO(e){var t=xq(e,"string");return cn(t)=="symbol"?t:t+""}function xq(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 Ro=function(e){function t(){var r;hq(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=yq(this,t,[].concat(i)),zt(r,"state",{isAnimationFinished:!1}),zt(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0})}),zt(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1})}),zt(r,"id",Vt("recharts-scatter-")),r}return bq(t,e),vq(t,[{key:"renderSymbolsStatically",value:function(n){var i=this,a=this.props,o=a.shape,u=a.activeShape,s=a.activeIndex,c=G(this.props,!1);return n.map(function(f,l){var p=s===l,h=p?u:o,y=Ze(Ze({},c),f);return A.createElement(re,Un({className:"recharts-scatter-symbol",key:"symbol-".concat(f==null?void 0:f.cx,"-").concat(f==null?void 0:f.cy,"-").concat(f==null?void 0:f.size,"-").concat(l)},Kt(i.props,f,l),{role:"img"}),A.createElement(dq,Un({option:h,isActive:p,key:"symbol-".concat(l)},y)))})}},{key:"renderSymbolsWithAnimation",value:function(){var n=this,i=this.props,a=i.points,o=i.isAnimationActive,u=i.animationBegin,s=i.animationDuration,c=i.animationEasing,f=i.animationId,l=this.state.prevPoints;return A.createElement(tt,{begin:u,duration:s,isActive:o,easing:c,from:{t:0},to:{t:1},key:"pie-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(p){var h=p.t,y=a.map(function(d,v){var x=l&&l[v];if(x){var b=xe(x.cx,d.cx),g=xe(x.cy,d.cy),O=xe(x.size,d.size);return Ze(Ze({},d),{},{cx:b(h),cy:g(h),size:O(h)})}var m=xe(0,d.size);return Ze(Ze({},d),{},{size:m(h)})});return A.createElement(re,null,n.renderSymbolsStatically(y))})}},{key:"renderSymbols",value:function(){var n=this.props,i=n.points,a=n.isAnimationActive,o=this.state.prevPoints;return a&&i&&i.length&&(!o||!Ht(o,i))?this.renderSymbolsWithAnimation():this.renderSymbolsStatically(i)}},{key:"renderErrorBar",value:function(){var n=this.props.isAnimationActive;if(n&&!this.state.isAnimationFinished)return null;var i=this.props,a=i.points,o=i.xAxis,u=i.yAxis,s=i.children,c=Be(s,On);return c?c.map(function(f,l){var p=f.props,h=p.direction,y=p.dataKey;return A.cloneElement(f,{key:"".concat(h,"-").concat(y,"-").concat(a[l]),data:a,xAxis:o,yAxis:u,layout:h==="x"?"vertical":"horizontal",dataPointFormatter:function(v,x){return{x:v.cx,y:v.cy,value:h==="x"?+v.node.x:+v.node.y,errorVal:me(v,x)}}})}):null}},{key:"renderLine",value:function(){var n=this.props,i=n.points,a=n.line,o=n.lineType,u=n.lineJointType,s=G(this.props,!1),c=G(a,!1),f,l;if(o==="joint")f=i.map(function(g){return{x:g.cx,y:g.cy}});else if(o==="fitting"){var p=hA(i),h=p.xmin,y=p.xmax,d=p.a,v=p.b,x=function(O){return d*O+v};f=[{x:h,y:x(h)},{x:y,y:x(y)}]}var b=Ze(Ze(Ze({},s),{},{fill:"none",stroke:s&&s.fill},c),{},{points:f});return A.isValidElement(a)?l=A.cloneElement(a,b):X(a)?l=a(b):l=A.createElement(Ut,Un({},b,{type:u})),A.createElement(re,{className:"recharts-scatter-line",key:"recharts-scatter-line"},l)}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.points,o=n.line,u=n.className,s=n.xAxis,c=n.yAxis,f=n.left,l=n.top,p=n.width,h=n.height,y=n.id,d=n.isAnimationActive;if(i||!a||!a.length)return null;var v=this.state.isAnimationFinished,x=te("recharts-scatter",u),b=s&&s.allowDataOverflow,g=c&&c.allowDataOverflow,O=b||g,m=Y(y)?this.id:y;return A.createElement(re,{className:x,clipPath:O?"url(#clipPath-".concat(m,")"):null},b||g?A.createElement("defs",null,A.createElement("clipPath",{id:"clipPath-".concat(m)},A.createElement("rect",{x:b?f:f-p/2,y:g?l:l-h/2,width:b?p:p*2,height:g?h:h*2}))):null,o&&this.renderLine(),this.renderErrorBar(),A.createElement(re,{key:"recharts-scatter-symbols"},this.renderSymbols()),(!d||v)&&ct.renderCallByParent(this.props,a))}}],[{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}}])}(B.PureComponent);zt(Ro,"displayName","Scatter");zt(Ro,"defaultProps",{xAxisId:0,yAxisId:0,zAxisId:0,legendType:"circle",lineType:"joint",lineJointType:"linear",data:[],shape:"circle",hide:!1,isAnimationActive:!It.isSsr,animationBegin:0,animationDuration:400,animationEasing:"linear"});zt(Ro,"getComposedData",function(e){var t=e.xAxis,r=e.yAxis,n=e.zAxis,i=e.item,a=e.displayedData,o=e.xAxisTicks,u=e.yAxisTicks,s=e.offset,c=i.props.tooltipType,f=Be(i.props.children,po),l=Y(t.dataKey)?i.props.dataKey:t.dataKey,p=Y(r.dataKey)?i.props.dataKey:r.dataKey,h=n&&n.dataKey,y=n?n.range:No.defaultProps.range,d=y&&y[0],v=t.scale.bandwidth?t.scale.bandwidth():0,x=r.scale.bandwidth?r.scale.bandwidth():0,b=a.map(function(g,O){var m=me(g,l),w=me(g,p),_=!Y(h)&&me(g,h)||"-",S=[{name:Y(t.dataKey)?i.props.name:t.name||t.dataKey,unit:t.unit||"",value:m,payload:g,dataKey:l,type:c},{name:Y(r.dataKey)?i.props.name:r.name||r.dataKey,unit:r.unit||"",value:w,payload:g,dataKey:p,type:c}];_!=="-"&&S.push({name:n.name||n.dataKey,unit:n.unit||"",value:_,payload:g,dataKey:h,type:c});var j=Hr({axis:t,ticks:o,bandSize:v,entry:g,index:O,dataKey:l}),$=Hr({axis:r,ticks:u,bandSize:x,entry:g,index:O,dataKey:p}),P=_!=="-"?n.scale(_):d,E=Math.sqrt(Math.max(P,0)/Math.PI);return Ze(Ze({},g),{},{cx:j,cy:$,x:j-E,y:$-E,xAxis:t,yAxis:r,zAxis:n,width:2*E,height:2*E,size:P,node:{x:m,y:w,z:_},tooltipPayload:S,tooltipPosition:{x:j,y:$},payload:g},f&&f[O]&&f[O].props)});return Ze({points:b},s)});function ln(e){"@babel/helpers - typeof";return ln=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},ln(e)}function wq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Oq(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,GO(n.key),n)}}function _q(e,t,r){return t&&Oq(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Aq(e,t,r){return t=Ya(t),Sq(e,KO()?Reflect.construct(t,r||[],Ya(e).constructor):t.apply(e,r))}function Sq(e,t){if(t&&(ln(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Pq(e)}function Pq(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function KO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(KO=function(){return!!e})()}function Ya(e){return Ya=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ya(e)}function jq(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 HO(e,t,r){return t=GO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function GO(e){var t=Tq(e,"string");return ln(t)=="symbol"?t:t+""}function Tq(e,t){if(ln(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ln(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function dp(){return dp=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},dp.apply(this,arguments)}function Eq(e){var t=e.xAxisId,r=md(),n=gd(),i=OO(t);return i==null?null:A.createElement(_n,dp({},i,{className:te("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(o){return At(o,!0)}}))}var fn=function(e){function t(){return wq(this,t),Aq(this,t,arguments)}return jq(t,e),_q(t,[{key:"render",value:function(){return A.createElement(Eq,this.props)}}])}(A.Component);HO(fn,"displayName","XAxis");HO(fn,"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 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 $q(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mq(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,YO(n.key),n)}}function Cq(e,t,r){return t&&Mq(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Iq(e,t,r){return t=Za(t),kq(e,VO()?Reflect.construct(t,r||[],Za(e).constructor):t.apply(e,r))}function kq(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 Nq(e)}function Nq(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function VO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(VO=function(){return!!e})()}function Za(e){return Za=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Za(e)}function Rq(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&&hp(e,t)}function hp(e,t){return hp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},hp(e,t)}function XO(e,t,r){return t=YO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function YO(e){var t=Dq(e,"string");return pn(t)=="symbol"?t:t+""}function Dq(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)}function vp(){return vp=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},vp.apply(this,arguments)}var qq=function(t){var r=t.yAxisId,n=md(),i=gd(),a=_O(r);return a==null?null:A.createElement(_n,vp({},a,{className:te("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(u){return At(u,!0)}}))},Do=function(e){function t(){return $q(this,t),Iq(this,t,arguments)}return Rq(t,e),Cq(t,[{key:"render",value:function(){return A.createElement(qq,this.props)}}])}(A.Component);XO(Do,"displayName","YAxis");XO(Do,"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 b0(e){return zq(e)||Fq(e)||Bq(e)||Lq()}function Lq(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Bq(e,t){if(e){if(typeof e=="string")return yp(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 yp(e,t)}}function Fq(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function zq(e){if(Array.isArray(e))return yp(e)}function yp(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 mp=function(t,r,n,i,a){var o=Be(t,xd),u=Be(t,Co),s=[].concat(b0(o),b0(u)),c=Be(t,ko),f="".concat(i,"Id"),l=i[0],p=r;if(s.length&&(p=s.reduce(function(d,v){if(v.props[f]===n&&yt(v.props,"extendDomain")&&F(v.props[l])){var x=v.props[l];return[Math.min(d[0],x),Math.max(d[1],x)]}return d},p)),c.length){var h="".concat(l,"1"),y="".concat(l,"2");p=c.reduce(function(d,v){if(v.props[f]===n&&yt(v.props,"extendDomain")&&F(v.props[h])&&F(v.props[y])){var x=v.props[h],b=v.props[y];return[Math.min(d[0],x,b),Math.max(d[1],x,b)]}return d},p)}return a&&a.length&&(p=a.reduce(function(d,v){return F(v)?[Math.min(d[0],v),Math.max(d[1],v)]:d},p)),p},Wl={exports:{}},x0;function Wq(){return x0||(x0=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,f){this.fn=s,this.context=c,this.once=f||!1}function a(s,c,f,l,p){if(typeof f!="function")throw new TypeError("The listener must be a function");var h=new i(f,l||s,p),y=r?r+c:c;return s._events[y]?s._events[y].fn?s._events[y]=[s._events[y],h]:s._events[y].push(h):(s._events[y]=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=[],f,l;if(this._eventsCount===0)return c;for(l in f=this._events)t.call(f,l)&&c.push(r?l.slice(1):l);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(f)):c},u.prototype.listeners=function(c){var f=r?r+c:c,l=this._events[f];if(!l)return[];if(l.fn)return[l.fn];for(var p=0,h=l.length,y=new Array(h);p<h;p++)y[p]=l[p].fn;return y},u.prototype.listenerCount=function(c){var f=r?r+c:c,l=this._events[f];return l?l.fn?1:l.length:0},u.prototype.emit=function(c,f,l,p,h,y){var d=r?r+c:c;if(!this._events[d])return!1;var v=this._events[d],x=arguments.length,b,g;if(v.fn){switch(v.once&&this.removeListener(c,v.fn,void 0,!0),x){case 1:return v.fn.call(v.context),!0;case 2:return v.fn.call(v.context,f),!0;case 3:return v.fn.call(v.context,f,l),!0;case 4:return v.fn.call(v.context,f,l,p),!0;case 5:return v.fn.call(v.context,f,l,p,h),!0;case 6:return v.fn.call(v.context,f,l,p,h,y),!0}for(g=1,b=new Array(x-1);g<x;g++)b[g-1]=arguments[g];v.fn.apply(v.context,b)}else{var O=v.length,m;for(g=0;g<O;g++)switch(v[g].once&&this.removeListener(c,v[g].fn,void 0,!0),x){case 1:v[g].fn.call(v[g].context);break;case 2:v[g].fn.call(v[g].context,f);break;case 3:v[g].fn.call(v[g].context,f,l);break;case 4:v[g].fn.call(v[g].context,f,l,p);break;default:if(!b)for(m=1,b=new Array(x-1);m<x;m++)b[m-1]=arguments[m];v[g].fn.apply(v[g].context,b)}}return!0},u.prototype.on=function(c,f,l){return a(this,c,f,l,!1)},u.prototype.once=function(c,f,l){return a(this,c,f,l,!0)},u.prototype.removeListener=function(c,f,l,p){var h=r?r+c:c;if(!this._events[h])return this;if(!f)return o(this,h),this;var y=this._events[h];if(y.fn)y.fn===f&&(!p||y.once)&&(!l||y.context===l)&&o(this,h);else{for(var d=0,v=[],x=y.length;d<x;d++)(y[d].fn!==f||p&&!y[d].once||l&&y[d].context!==l)&&v.push(y[d]);v.length?this._events[h]=v.length===1?v[0]:v:o(this,h)}return this},u.prototype.removeAllListeners=function(c){var f;return c?(f=r?r+c:c,this._events[f]&&o(this,f)):(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}(Wl)),Wl.exports}var Uq=Wq();const Kq=le(Uq);var Ul=new Kq,Kl="recharts.syncMouseEvents";function Ai(e){"@babel/helpers - typeof";return Ai=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},Ai(e)}function Hq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Gq(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,ZO(n.key),n)}}function Vq(e,t,r){return t&&Gq(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Hl(e,t,r){return t=ZO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ZO(e){var t=Xq(e,"string");return Ai(t)=="symbol"?t:t+""}function Xq(e,t){if(Ai(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ai(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Yq=function(){function e(){Hq(this,e),Hl(this,"activeIndex",0),Hl(this,"coordinateList",[]),Hl(this,"layout","horizontal")}return Vq(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,f=r.offset,l=f===void 0?null:f,p=r.mouseHandlerCallback,h=p===void 0?null:p;this.coordinateList=(n=a??this.coordinateList)!==null&&n!==void 0?n:[],this.container=u??this.container,this.layout=c??this.layout,this.offset=l??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,f=((n=window)===null||n===void 0?void 0:n.scrollY)||0,l=a+s+c,p=o+this.offset.top+u/2+f;this.mouseHandlerCallback({pageX:l,pageY:p})}}}])}();function Zq(e,t,r){if(r==="number"&&t===!0&&Array.isArray(e)){var n=e==null?void 0:e[0],i=e==null?void 0:e[1];if(n&&i&&F(n)&&F(i))return!0}return!1}function Jq(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 JO(e){var t=e.cx,r=e.cy,n=e.radius,i=e.startAngle,a=e.endAngle,o=he(t,r,n,i),u=he(t,r,n,a);return{points:[o,u],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function Qq(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,f=t.outerRadius,l=t.angle,p=he(u,s,c,l),h=he(u,s,f,l);n=p.x,i=p.y,a=h.x,o=h.y}else return JO(t);return[{x:n,y:i},{x:a,y:o}]}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)}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 Xi(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){eL(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 eL(e,t,r){return t=tL(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tL(e){var t=rL(e,"string");return Si(t)=="symbol"?t:t+""}function rL(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 nL(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,f=e.tooltipAxisBandSize,l=e.layout,p=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||p!=="ScatterChart"&&i!=="axis")return null;var y,d=Ut;if(p==="ScatterChart")y=o,d=Yk;else if(p==="BarChart")y=Jq(l,o,s,f),d=dd;else if(l==="radial"){var v=JO(o),x=v.cx,b=v.cy,g=v.radius,O=v.startAngle,m=v.endAngle;y={cx:x,cy:b,startAngle:O,endAngle:m,innerRadius:g,outerRadius:g},d=Kw}else y={points:Qq(l,o,s)},d=Ut;var w=Xi(Xi(Xi(Xi({stroke:"#ccc",pointerEvents:"none"},s),y),G(h,!1)),{},{payload:u,payloadIndex:c,className:te("recharts-tooltip-cursor",h.className)});return B.isValidElement(h)?B.cloneElement(h,w):B.createElement(d,w)}var iL=["item"],aL=["children","className","width","height","style","compact","title","desc"];function dn(e){"@babel/helpers - typeof";return dn=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},dn(e)}function Cr(){return Cr=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},Cr.apply(this,arguments)}function O0(e,t){return sL(e)||uL(e,t)||e_(e,t)||oL()}function oL(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uL(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(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function sL(e){if(Array.isArray(e))return e}function _0(e,t){if(e==null)return{};var r=cL(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 cL(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 lL(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,t_(n.key),n)}}function pL(e,t,r){return t&&fL(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function dL(e,t,r){return t=Ja(t),hL(e,QO()?Reflect.construct(t,r||[],Ja(e).constructor):t.apply(e,r))}function hL(e,t){if(t&&(dn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return vL(e)}function vL(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function QO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(QO=function(){return!!e})()}function Ja(e){return Ja=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ja(e)}function yL(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&&gp(e,t)}function gp(e,t){return gp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},gp(e,t)}function hn(e){return bL(e)||gL(e)||e_(e)||mL()}function mL(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function e_(e,t){if(e){if(typeof e=="string")return bp(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 bp(e,t)}}function gL(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function bL(e){if(Array.isArray(e))return bp(e)}function bp(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 A0(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?A0(Object(r),!0).forEach(function(n){Z(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):A0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Z(e,t,r){return t=t_(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function t_(e){var t=xL(e,"string");return dn(t)=="symbol"?t:t+""}function xL(e,t){if(dn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(dn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var wL={xAxis:["bottom","top"],yAxis:["left","right"]},OL={width:"100%",height:"100%"},r_={x:0,y:0};function Yi(e){return e}var _L=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},AL=function(t,r,n,i){var a=r.find(function(f){return f&&f.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),he(i.cx,i.cy,u,o)),{},{angle:o,radius:u})}var s=a.coordinate,c=i.angle;return R(R(R({},i),he(i.cx,i.cy,s,c)),{},{angle:c,radius:s})}return r_},qo=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(hn(u),hn(c)):u},[]);return o.length>0?o:t&&t.length&&F(i)&&F(a)?t.slice(i,a+1):[]};function n_(e){return e==="number"?[0,"auto"]:void 0}var xp=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,u=qo(r,t);return n<0||!a||!a.length||n>=u.length?null:a.reduce(function(s,c){var f,l=(f=c.props.data)!==null&&f!==void 0?f:r;l&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(l=l.slice(t.dataStartIndex,t.dataEndIndex+1));var p;if(o.dataKey&&!o.allowDuplicatedCategory){var h=l===void 0?u:l;p=Ji(h,o.dataKey,i)}else p=l&&l[n]||u[n];return p?[].concat(hn(s),[Lw(c,p)]):s},[])},S0=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=_L(a,n),u=t.orderedTooltipTicks,s=t.tooltipAxis,c=t.tooltipTicks,f=wM(o,u,c,s);if(f>=0&&c){var l=c[f]&&c[f].value,p=xp(t,r,f,l),h=AL(n,u,f,a);return{activeTooltipIndex:f,activeLabel:l,activePayload:p,activeCoordinate:h}}return null},SL=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,f=t.layout,l=t.children,p=t.stackOffset,h=Iw(f,a);return n.reduce(function(y,d){var v,x=d.type.defaultProps!==void 0?R(R({},d.type.defaultProps),d.props):d.props,b=x.type,g=x.dataKey,O=x.allowDataOverflow,m=x.allowDuplicatedCategory,w=x.scale,_=x.ticks,S=x.includeHidden,j=x[o];if(y[j])return y;var $=qo(t.data,{graphicalItems:i.filter(function(D){var H,J=o in D.props?D.props[o]:(H=D.type.defaultProps)===null||H===void 0?void 0:H[o];return J===j}),dataStartIndex:s,dataEndIndex:c}),P=$.length,E,M,C;Zq(x.domain,O,b)&&(E=$f(x.domain,null,O),h&&(b==="number"||w!=="auto")&&(C=qn($,g,"category")));var I=n_(b);if(!E||E.length===0){var k,q=(k=x.domain)!==null&&k!==void 0?k:I;if(g){if(E=qn($,g,b),b==="category"&&h){var z=dA(E);m&&z?(M=E,E=Ra(0,P)):m||(E=xg(q,E,d).reduce(function(D,H){return D.indexOf(H)>=0?D:[].concat(hn(D),[H])},[]))}else if(b==="category")m?E=E.filter(function(D){return D!==""&&!Y(D)}):E=xg(q,E,d).reduce(function(D,H){return D.indexOf(H)>=0||H===""||Y(H)?D:[].concat(hn(D),[H])},[]);else if(b==="number"){var W=PM($,i.filter(function(D){var H,J,ge=o in D.props?D.props[o]:(H=D.type.defaultProps)===null||H===void 0?void 0:H[o],Ie="hide"in D.props?D.props.hide:(J=D.type.defaultProps)===null||J===void 0?void 0:J.hide;return ge===j&&(S||!Ie)}),g,a,f);W&&(E=W)}h&&(b==="number"||w!=="auto")&&(C=qn($,g,"category"))}else h?E=Ra(0,P):u&&u[j]&&u[j].hasStack&&b==="number"?E=p==="expand"?[0,1]:qw(u[j].stackGroups,s,c):E=Cw($,i.filter(function(D){var H=o in D.props?D.props[o]:D.type.defaultProps[o],J="hide"in D.props?D.props.hide:D.type.defaultProps.hide;return H===j&&(S||!J)}),b,f,!0);if(b==="number")E=mp(l,E,j,a,_),q&&(E=$f(q,E,O));else if(b==="category"&&q){var V=q,N=E.every(function(D){return V.indexOf(D)>=0});N&&(E=V)}}return R(R({},y),{},Z({},j,R(R({},x),{},{axisType:a,domain:E,categoricalDomain:C,duplicateDomain:M,originalDomain:(v=x.domain)!==null&&v!==void 0?v:I,isCategorical:h,layout:f})))},{})},PL=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,f=t.layout,l=t.children,p=qo(t.data,{graphicalItems:n,dataStartIndex:s,dataEndIndex:c}),h=p.length,y=Iw(f,a),d=-1;return n.reduce(function(v,x){var b=x.type.defaultProps!==void 0?R(R({},x.type.defaultProps),x.props):x.props,g=b[o],O=n_("number");if(!v[g]){d++;var m;return y?m=Ra(0,h):u&&u[g]&&u[g].hasStack?(m=qw(u[g].stackGroups,s,c),m=mp(l,m,g,a)):(m=$f(O,Cw(p,n.filter(function(w){var _,S,j=o in w.props?w.props[o]:(_=w.type.defaultProps)===null||_===void 0?void 0:_[o],$="hide"in w.props?w.props.hide:(S=w.type.defaultProps)===null||S===void 0?void 0:S.hide;return j===g&&!$}),"number",f),i.defaultProps.allowDataOverflow),m=mp(l,m,g,a)),R(R({},v),{},Z({},g,R(R({axisType:a},i.defaultProps),{},{hide:!0,orientation:Ge(wL,"".concat(a,".").concat(d%2),null),domain:m,originalDomain:O,isCategorical:y,layout:f})))}return v},{})},jL=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,f=t.children,l="".concat(i,"Id"),p=Be(f,a),h={};return p&&p.length?h=SL(t,{axes:p,graphicalItems:o,axisType:i,axisIdKey:l,stackGroups:u,dataStartIndex:s,dataEndIndex:c}):o&&o.length&&(h=PL(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:l,stackGroups:u,dataStartIndex:s,dataEndIndex:c})),h},TL=function(t){var r=Lt(t),n=At(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:Bp(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:_a(r,n)}},P0=function(t){var r=t.children,n=t.defaultShowTooltip,i=Ke(r,Jr),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}},EL=function(t){return!t||!t.length?!1:t.some(function(r){var n=St(r&&r.type);return n&&n.indexOf("Bar")>=0})},j0=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"}},$L=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,f=n.height,l=n.children,p=n.margin||{},h=Ke(l,Jr),y=Ke(l,kr),d=Object.keys(s).reduce(function(m,w){var _=s[w],S=_.orientation;return!_.mirror&&!_.hide?R(R({},m),{},Z({},S,m[S]+_.width)):m},{left:p.left||0,right:p.right||0}),v=Object.keys(o).reduce(function(m,w){var _=o[w],S=_.orientation;return!_.mirror&&!_.hide?R(R({},m),{},Z({},S,Ge(m,"".concat(S))+_.height)):m},{top:p.top||0,bottom:p.bottom||0}),x=R(R({},v),d),b=x.bottom;h&&(x.bottom+=h.props.height||Jr.defaultProps.height),y&&r&&(x=AM(x,i,n,r));var g=c-x.left-x.right,O=f-x.top-x.bottom;return R(R({brushBottom:b},x),{},{width:Math.max(g,0),height:Math.max(O,0)})},ML=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},_d=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,f=t.formatAxisMap,l=t.defaultProps,p=function(x,b){var g=b.graphicalItems,O=b.stackGroups,m=b.offset,w=b.updateId,_=b.dataStartIndex,S=b.dataEndIndex,j=x.barSize,$=x.layout,P=x.barGap,E=x.barCategoryGap,M=x.maxBarSize,C=j0($),I=C.numericAxisName,k=C.cateAxisName,q=EL(g),z=[];return g.forEach(function(W,V){var N=qo(x.data,{graphicalItems:[W],dataStartIndex:_,dataEndIndex:S}),D=W.type.defaultProps!==void 0?R(R({},W.type.defaultProps),W.props):W.props,H=D.dataKey,J=D.maxBarSize,ge=D["".concat(I,"Id")],Ie=D["".concat(k,"Id")],nt={},Me=s.reduce(function(Jt,Qt){var Lo=b["".concat(Qt.axisType,"Map")],Ad=D["".concat(Qt.axisType,"Id")];Lo&&Lo[Ad]||Qt.axisType==="zAxis"||mr();var Sd=Lo[Ad];return R(R({},Jt),{},Z(Z({},Qt.axisType,Sd),"".concat(Qt.axisType,"Ticks"),At(Sd)))},nt),U=Me[k],Q=Me["".concat(k,"Ticks")],ee=O&&O[ge]&&O[ge].hasStack&&NM(W,O[ge].stackGroups),L=St(W.type).indexOf("Bar")>=0,ve=_a(U,Q),ne=[],ie=q&&OM({barSize:j,stackGroups:O,totalSize:ML(Me,k)});if(L){var ae,je,ft=Y(J)?M:J,Rt=(ae=(je=_a(U,Q,!0))!==null&&je!==void 0?je:ft)!==null&&ae!==void 0?ae:0;ne=_M({barGap:P,barCategoryGap:E,bandSize:Rt!==ve?Rt:ve,sizeList:ie[Ie],maxBarSize:ft}),Rt!==ve&&(ne=ne.map(function(Jt){return R(R({},Jt),{},{position:R(R({},Jt.position),{},{offset:Jt.position.offset-Rt/2})})}))}var ki=W&&W.type&&W.type.getComposedData;ki&&z.push({props:R(R({},ki(R(R({},Me),{},{displayedData:N,props:x,dataKey:H,item:W,bandSize:ve,barPosition:ne,offset:m,stackedData:ee,layout:$,dataStartIndex:_,dataEndIndex:S}))),{},Z(Z(Z({key:W.key||"item-".concat(V)},I,Me[I]),k,Me[k]),"animationId",w)),childIndex:PA(W,x.children),item:W})}),z},h=function(x,b){var g=x.props,O=x.dataStartIndex,m=x.dataEndIndex,w=x.updateId;if(!Nh({props:g}))return null;var _=g.children,S=g.layout,j=g.stackOffset,$=g.data,P=g.reverseStackOrder,E=j0(S),M=E.numericAxisName,C=E.cateAxisName,I=Be(_,n),k=IM($,I,"".concat(M,"Id"),"".concat(C,"Id"),j,P),q=s.reduce(function(D,H){var J="".concat(H.axisType,"Map");return R(R({},D),{},Z({},J,jL(g,R(R({},H),{},{graphicalItems:I,stackGroups:H.axisType===M&&k,dataStartIndex:O,dataEndIndex:m}))))},{}),z=$L(R(R({},q),{},{props:g,graphicalItems:I}),b==null?void 0:b.legendBBox);Object.keys(q).forEach(function(D){q[D]=f(g,q[D],z,D.replace("Map",""),r)});var W=q["".concat(C,"Map")],V=TL(W),N=p(g,R(R({},q),{},{dataStartIndex:O,dataEndIndex:m,updateId:w,graphicalItems:I,stackGroups:k,offset:z}));return R(R({formattedGraphicalItems:N,graphicalItems:I,offset:z,stackGroups:k},V),q)},y=function(v){function x(b){var g,O,m;return lL(this,x),m=dL(this,x,[b]),Z(m,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),Z(m,"accessibilityManager",new Yq),Z(m,"handleLegendBBoxUpdate",function(w){if(w){var _=m.state,S=_.dataStartIndex,j=_.dataEndIndex,$=_.updateId;m.setState(R({legendBBox:w},h({props:m.props,dataStartIndex:S,dataEndIndex:j,updateId:$},R(R({},m.state),{},{legendBBox:w}))))}}),Z(m,"handleReceiveSyncEvent",function(w,_,S){if(m.props.syncId===w){if(S===m.eventEmitterSymbol&&typeof m.props.syncMethod!="function")return;m.applySyncEvent(_)}}),Z(m,"handleBrushChange",function(w){var _=w.startIndex,S=w.endIndex;if(_!==m.state.dataStartIndex||S!==m.state.dataEndIndex){var j=m.state.updateId;m.setState(function(){return R({dataStartIndex:_,dataEndIndex:S},h({props:m.props,dataStartIndex:_,dataEndIndex:S,updateId:j},m.state))}),m.triggerSyncEvent({dataStartIndex:_,dataEndIndex:S})}}),Z(m,"handleMouseEnter",function(w){var _=m.getMouseInfo(w);if(_){var S=R(R({},_),{},{isTooltipActive:!0});m.setState(S),m.triggerSyncEvent(S);var j=m.props.onMouseEnter;X(j)&&j(S,w)}}),Z(m,"triggeredAfterMouseMove",function(w){var _=m.getMouseInfo(w),S=_?R(R({},_),{},{isTooltipActive:!0}):{isTooltipActive:!1};m.setState(S),m.triggerSyncEvent(S);var j=m.props.onMouseMove;X(j)&&j(S,w)}),Z(m,"handleItemMouseEnter",function(w){m.setState(function(){return{isTooltipActive:!0,activeItem:w,activePayload:w.tooltipPayload,activeCoordinate:w.tooltipPosition||{x:w.cx,y:w.cy}}})}),Z(m,"handleItemMouseLeave",function(){m.setState(function(){return{isTooltipActive:!1}})}),Z(m,"handleMouseMove",function(w){w.persist(),m.throttleTriggeredAfterMouseMove(w)}),Z(m,"handleMouseLeave",function(w){m.throttleTriggeredAfterMouseMove.cancel();var _={isTooltipActive:!1};m.setState(_),m.triggerSyncEvent(_);var S=m.props.onMouseLeave;X(S)&&S(_,w)}),Z(m,"handleOuterEvent",function(w){var _=SA(w),S=Ge(m.props,"".concat(_));if(_&&X(S)){var j,$;/.*touch.*/i.test(_)?$=m.getMouseInfo(w.changedTouches[0]):$=m.getMouseInfo(w),S((j=$)!==null&&j!==void 0?j:{},w)}}),Z(m,"handleClick",function(w){var _=m.getMouseInfo(w);if(_){var S=R(R({},_),{},{isTooltipActive:!0});m.setState(S),m.triggerSyncEvent(S);var j=m.props.onClick;X(j)&&j(S,w)}}),Z(m,"handleMouseDown",function(w){var _=m.props.onMouseDown;if(X(_)){var S=m.getMouseInfo(w);_(S,w)}}),Z(m,"handleMouseUp",function(w){var _=m.props.onMouseUp;if(X(_)){var S=m.getMouseInfo(w);_(S,w)}}),Z(m,"handleTouchMove",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&m.throttleTriggeredAfterMouseMove(w.changedTouches[0])}),Z(m,"handleTouchStart",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&m.handleMouseDown(w.changedTouches[0])}),Z(m,"handleTouchEnd",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&m.handleMouseUp(w.changedTouches[0])}),Z(m,"handleDoubleClick",function(w){var _=m.props.onDoubleClick;if(X(_)){var S=m.getMouseInfo(w);_(S,w)}}),Z(m,"handleContextMenu",function(w){var _=m.props.onContextMenu;if(X(_)){var S=m.getMouseInfo(w);_(S,w)}}),Z(m,"triggerSyncEvent",function(w){m.props.syncId!==void 0&&Ul.emit(Kl,m.props.syncId,w,m.eventEmitterSymbol)}),Z(m,"applySyncEvent",function(w){var _=m.props,S=_.layout,j=_.syncMethod,$=m.state.updateId,P=w.dataStartIndex,E=w.dataEndIndex;if(w.dataStartIndex!==void 0||w.dataEndIndex!==void 0)m.setState(R({dataStartIndex:P,dataEndIndex:E},h({props:m.props,dataStartIndex:P,dataEndIndex:E,updateId:$},m.state)));else if(w.activeTooltipIndex!==void 0){var M=w.chartX,C=w.chartY,I=w.activeTooltipIndex,k=m.state,q=k.offset,z=k.tooltipTicks;if(!q)return;if(typeof j=="function")I=j(z,w);else if(j==="value"){I=-1;for(var W=0;W<z.length;W++)if(z[W].value===w.activeLabel){I=W;break}}var V=R(R({},q),{},{x:q.left,y:q.top}),N=Math.min(M,V.x+V.width),D=Math.min(C,V.y+V.height),H=z[I]&&z[I].value,J=xp(m.state,m.props.data,I),ge=z[I]?{x:S==="horizontal"?z[I].coordinate:N,y:S==="horizontal"?D:z[I].coordinate}:r_;m.setState(R(R({},w),{},{activeLabel:H,activeCoordinate:ge,activePayload:J,activeTooltipIndex:I}))}else m.setState(w)}),Z(m,"renderCursor",function(w){var _,S=m.state,j=S.isTooltipActive,$=S.activeCoordinate,P=S.activePayload,E=S.offset,M=S.activeTooltipIndex,C=S.tooltipAxisBandSize,I=m.getTooltipEventType(),k=(_=w.props.active)!==null&&_!==void 0?_:j,q=m.props.layout,z=w.key||"_recharts-cursor";return A.createElement(nL,{key:z,activeCoordinate:$,activePayload:P,activeTooltipIndex:M,chartName:r,element:w,isActive:k,layout:q,offset:E,tooltipAxisBandSize:C,tooltipEventType:I})}),Z(m,"renderPolarAxis",function(w,_,S){var j=Ge(w,"type.axisType"),$=Ge(m.state,"".concat(j,"Map")),P=w.type.defaultProps,E=P!==void 0?R(R({},P),w.props):w.props,M=$&&$[E["".concat(j,"Id")]];return B.cloneElement(w,R(R({},M),{},{className:te(j,M.className),key:w.key||"".concat(_,"-").concat(S),ticks:At(M,!0)}))}),Z(m,"renderPolarGrid",function(w){var _=w.props,S=_.radialLines,j=_.polarAngles,$=_.polarRadius,P=m.state,E=P.radiusAxisMap,M=P.angleAxisMap,C=Lt(E),I=Lt(M),k=I.cx,q=I.cy,z=I.innerRadius,W=I.outerRadius;return B.cloneElement(w,{polarAngles:Array.isArray(j)?j:At(I,!0).map(function(V){return V.coordinate}),polarRadius:Array.isArray($)?$:At(C,!0).map(function(V){return V.coordinate}),cx:k,cy:q,innerRadius:z,outerRadius:W,key:w.key||"polar-grid",radialLines:S})}),Z(m,"renderLegend",function(){var w=m.state.formattedGraphicalItems,_=m.props,S=_.children,j=_.width,$=_.height,P=m.props.margin||{},E=j-(P.left||0)-(P.right||0),M=$w({children:S,formattedGraphicalItems:w,legendWidth:E,legendContent:c});if(!M)return null;var C=M.item,I=_0(M,iL);return B.cloneElement(C,R(R({},I),{},{chartWidth:j,chartHeight:$,margin:P,onBBoxUpdate:m.handleLegendBBoxUpdate}))}),Z(m,"renderTooltip",function(){var w,_=m.props,S=_.children,j=_.accessibilityLayer,$=Ke(S,pt);if(!$)return null;var P=m.state,E=P.isTooltipActive,M=P.activeCoordinate,C=P.activePayload,I=P.activeLabel,k=P.offset,q=(w=$.props.active)!==null&&w!==void 0?w:E;return B.cloneElement($,{viewBox:R(R({},k),{},{x:k.left,y:k.top}),active:q,label:I,payload:q?C:[],coordinate:M,accessibilityLayer:j})}),Z(m,"renderBrush",function(w){var _=m.props,S=_.margin,j=_.data,$=m.state,P=$.offset,E=$.dataStartIndex,M=$.dataEndIndex,C=$.updateId;return B.cloneElement(w,{key:w.key||"_recharts-brush",onChange:Ki(m.handleBrushChange,w.props.onChange),data:j,x:F(w.props.x)?w.props.x:P.left,y:F(w.props.y)?w.props.y:P.top+P.height+P.brushBottom-(S.bottom||0),width:F(w.props.width)?w.props.width:P.width,startIndex:E,endIndex:M,updateId:"brush-".concat(C)})}),Z(m,"renderReferenceElement",function(w,_,S){if(!w)return null;var j=m,$=j.clipPathId,P=m.state,E=P.xAxisMap,M=P.yAxisMap,C=P.offset,I=w.type.defaultProps||{},k=w.props,q=k.xAxisId,z=q===void 0?I.xAxisId:q,W=k.yAxisId,V=W===void 0?I.yAxisId:W;return B.cloneElement(w,{key:w.key||"".concat(_,"-").concat(S),xAxis:E[z],yAxis:M[V],viewBox:{x:C.left,y:C.top,width:C.width,height:C.height},clipPathId:$})}),Z(m,"renderActivePoints",function(w){var _=w.item,S=w.activePoint,j=w.basePoint,$=w.childIndex,P=w.isRange,E=[],M=_.props.key,C=_.item.type.defaultProps!==void 0?R(R({},_.item.type.defaultProps),_.item.props):_.item.props,I=C.activeDot,k=C.dataKey,q=R(R({index:$,dataKey:k,cx:S.x,cy:S.y,r:4,fill:pd(_.item),strokeWidth:2,stroke:"#fff",payload:S.payload,value:S.value},G(I,!1)),Qi(I));return E.push(x.renderActiveDot(I,q,"".concat(M,"-activePoint-").concat($))),j?E.push(x.renderActiveDot(I,R(R({},q),{},{cx:j.x,cy:j.y}),"".concat(M,"-basePoint-").concat($))):P&&E.push(null),E}),Z(m,"renderGraphicChild",function(w,_,S){var j=m.filterFormatItem(w,_,S);if(!j)return null;var $=m.getTooltipEventType(),P=m.state,E=P.isTooltipActive,M=P.tooltipAxis,C=P.activeTooltipIndex,I=P.activeLabel,k=m.props.children,q=Ke(k,pt),z=j.props,W=z.points,V=z.isRange,N=z.baseLine,D=j.item.type.defaultProps!==void 0?R(R({},j.item.type.defaultProps),j.item.props):j.item.props,H=D.activeDot,J=D.hide,ge=D.activeBar,Ie=D.activeShape,nt=!!(!J&&E&&q&&(H||ge||Ie)),Me={};$!=="axis"&&q&&q.props.trigger==="click"?Me={onClick:Ki(m.handleItemMouseEnter,w.props.onClick)}:$!=="axis"&&(Me={onMouseLeave:Ki(m.handleItemMouseLeave,w.props.onMouseLeave),onMouseEnter:Ki(m.handleItemMouseEnter,w.props.onMouseEnter)});var U=B.cloneElement(w,R(R({},j.props),Me));function Q(Qt){return typeof M.dataKey=="function"?M.dataKey(Qt.payload):null}if(nt)if(C>=0){var ee,L;if(M.dataKey&&!M.allowDuplicatedCategory){var ve=typeof M.dataKey=="function"?Q:"payload.".concat(M.dataKey.toString());ee=Ji(W,ve,I),L=V&&N&&Ji(N,ve,I)}else ee=W==null?void 0:W[C],L=V&&N&&N[C];if(Ie||ge){var ne=w.props.activeIndex!==void 0?w.props.activeIndex:C;return[B.cloneElement(w,R(R(R({},j.props),Me),{},{activeIndex:ne})),null,null]}if(!Y(ee))return[U].concat(hn(m.renderActivePoints({item:j,activePoint:ee,basePoint:L,childIndex:C,isRange:V})))}else{var ie,ae=(ie=m.getItemByXY(m.state.activeCoordinate))!==null&&ie!==void 0?ie:{graphicalItem:U},je=ae.graphicalItem,ft=je.item,Rt=ft===void 0?w:ft,ki=je.childIndex,Jt=R(R(R({},j.props),Me),{},{activeIndex:ki});return[B.cloneElement(Rt,Jt),null,null]}return V?[U,null,null]:[U,null]}),Z(m,"renderCustomized",function(w,_,S){return B.cloneElement(w,R(R({key:"recharts-customized-".concat(S)},m.props),m.state))}),Z(m,"renderMap",{CartesianGrid:{handler:Yi,once:!0},ReferenceArea:{handler:m.renderReferenceElement},ReferenceLine:{handler:Yi},ReferenceDot:{handler:m.renderReferenceElement},XAxis:{handler:Yi},YAxis:{handler:Yi},Brush:{handler:m.renderBrush,once:!0},Bar:{handler:m.renderGraphicChild},Line:{handler:m.renderGraphicChild},Area:{handler:m.renderGraphicChild},Radar:{handler:m.renderGraphicChild},RadialBar:{handler:m.renderGraphicChild},Scatter:{handler:m.renderGraphicChild},Pie:{handler:m.renderGraphicChild},Funnel:{handler:m.renderGraphicChild},Tooltip:{handler:m.renderCursor,once:!0},PolarGrid:{handler:m.renderPolarGrid,once:!0},PolarAngleAxis:{handler:m.renderPolarAxis},PolarRadiusAxis:{handler:m.renderPolarAxis},Customized:{handler:m.renderCustomized}}),m.clipPathId="".concat((g=b.id)!==null&&g!==void 0?g:Vt("recharts"),"-clip"),m.throttleTriggeredAfterMouseMove=Ex(m.triggeredAfterMouseMove,(O=b.throttleDelay)!==null&&O!==void 0?O:1e3/60),m.state={},m}return yL(x,v),pL(x,[{key:"componentDidMount",value:function(){var g,O;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(g=this.props.margin.left)!==null&&g!==void 0?g: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 g=this.props,O=g.children,m=g.data,w=g.height,_=g.layout,S=Ke(O,pt);if(S){var j=S.props.defaultIndex;if(!(typeof j!="number"||j<0||j>this.state.tooltipTicks.length-1)){var $=this.state.tooltipTicks[j]&&this.state.tooltipTicks[j].value,P=xp(this.state,m,j,$),E=this.state.tooltipTicks[j].coordinate,M=(this.state.offset.top+w)/2,C=_==="horizontal",I=C?{x:E,y:M}:{y:E,x:M},k=this.state.formattedGraphicalItems.find(function(z){var W=z.item;return W.type.name==="Scatter"});k&&(I=R(R({},I),k.props.points[j].tooltipPosition),P=k.props.points[j].tooltipPayload);var q={activeTooltipIndex:j,isTooltipActive:!0,activeLabel:$,activePayload:P,activeCoordinate:I};this.setState(q),this.renderCursor(S),this.accessibilityManager.setIndex(j)}}}},{key:"getSnapshotBeforeUpdate",value:function(g,O){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==O.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==g.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==g.margin){var m,w;this.accessibilityManager.setDetails({offset:{left:(m=this.props.margin.left)!==null&&m!==void 0?m:0,top:(w=this.props.margin.top)!==null&&w!==void 0?w:0}})}return null}},{key:"componentDidUpdate",value:function(g){Zl([Ke(g.children,pt)],[Ke(this.props.children,pt)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var g=Ke(this.props.children,pt);if(g&&typeof g.props.shared=="boolean"){var O=g.props.shared?"axis":"item";return u.indexOf(O)>=0?O:a}return a}},{key:"getMouseInfo",value:function(g){if(!this.container)return null;var O=this.container,m=O.getBoundingClientRect(),w=dj(m),_={chartX:Math.round(g.pageX-w.left),chartY:Math.round(g.pageY-w.top)},S=m.width/O.offsetWidth||1,j=this.inRange(_.chartX,_.chartY,S);if(!j)return null;var $=this.state,P=$.xAxisMap,E=$.yAxisMap,M=this.getTooltipEventType(),C=S0(this.state,this.props.data,this.props.layout,j);if(M!=="axis"&&P&&E){var I=Lt(P).scale,k=Lt(E).scale,q=I&&I.invert?I.invert(_.chartX):null,z=k&&k.invert?k.invert(_.chartY):null;return R(R({},_),{},{xValue:q,yValue:z},C)}return C?R(R({},_),C):null}},{key:"inRange",value:function(g,O){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,w=this.props.layout,_=g/m,S=O/m;if(w==="horizontal"||w==="vertical"){var j=this.state.offset,$=_>=j.left&&_<=j.left+j.width&&S>=j.top&&S<=j.top+j.height;return $?{x:_,y:S}:null}var P=this.state,E=P.angleAxisMap,M=P.radiusAxisMap;if(E&&M){var C=Lt(E);return _g({x:_,y:S},C)}return null}},{key:"parseEventsOfWrapper",value:function(){var g=this.props.children,O=this.getTooltipEventType(),m=Ke(g,pt),w={};m&&O==="axis"&&(m.props.trigger==="click"?w={onClick:this.handleClick}:w={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 _=Qi(this.props,this.handleOuterEvent);return R(R({},_),w)}},{key:"addListener",value:function(){Ul.on(Kl,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Ul.removeListener(Kl,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(g,O,m){for(var w=this.state.formattedGraphicalItems,_=0,S=w.length;_<S;_++){var j=w[_];if(j.item===g||j.props.key===g.key||O===St(j.item.type)&&m===j.childIndex)return j}return null}},{key:"renderClipPath",value:function(){var g=this.clipPathId,O=this.state.offset,m=O.left,w=O.top,_=O.height,S=O.width;return A.createElement("defs",null,A.createElement("clipPath",{id:g},A.createElement("rect",{x:m,y:w,height:_,width:S})))}},{key:"getXScales",value:function(){var g=this.state.xAxisMap;return g?Object.entries(g).reduce(function(O,m){var w=O0(m,2),_=w[0],S=w[1];return R(R({},O),{},Z({},_,S.scale))},{}):null}},{key:"getYScales",value:function(){var g=this.state.yAxisMap;return g?Object.entries(g).reduce(function(O,m){var w=O0(m,2),_=w[0],S=w[1];return R(R({},O),{},Z({},_,S.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(g){var O;return(O=this.state.xAxisMap)===null||O===void 0||(O=O[g])===null||O===void 0?void 0:O.scale}},{key:"getYScaleByAxisId",value:function(g){var O;return(O=this.state.yAxisMap)===null||O===void 0||(O=O[g])===null||O===void 0?void 0:O.scale}},{key:"getItemByXY",value:function(g){var O=this.state,m=O.formattedGraphicalItems,w=O.activeItem;if(m&&m.length)for(var _=0,S=m.length;_<S;_++){var j=m[_],$=j.props,P=j.item,E=P.type.defaultProps!==void 0?R(R({},P.type.defaultProps),P.props):P.props,M=St(P.type);if(M==="Bar"){var C=($.data||[]).find(function(z){return $k(g,z)});if(C)return{graphicalItem:j,payload:C}}else if(M==="RadialBar"){var I=($.data||[]).find(function(z){return _g(g,z)});if(I)return{graphicalItem:j,payload:I}}else if(To(j,w)||Eo(j,w)||bi(j,w)){var k=QN({graphicalItem:j,activeTooltipItem:w,itemData:E.data}),q=E.activeIndex===void 0?k:E.activeIndex;return{graphicalItem:R(R({},j),{},{childIndex:q}),payload:bi(j,w)?E.data[k]:j.props.data[k]}}}return null}},{key:"render",value:function(){var g=this;if(!Nh(this))return null;var O=this.props,m=O.children,w=O.className,_=O.width,S=O.height,j=O.style,$=O.compact,P=O.title,E=O.desc,M=_0(O,aL),C=G(M,!1);if($)return A.createElement(Qb,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},A.createElement(Ql,Cr({},C,{width:_,height:S,title:P,desc:E}),this.renderClipPath(),Dh(m,this.renderMap)));if(this.props.accessibilityLayer){var I,k;C.tabIndex=(I=this.props.tabIndex)!==null&&I!==void 0?I:0,C.role=(k=this.props.role)!==null&&k!==void 0?k:"application",C.onKeyDown=function(z){g.accessibilityManager.keyboardEvent(z)},C.onFocus=function(){g.accessibilityManager.focus()}}var q=this.parseEventsOfWrapper();return A.createElement(Qb,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},A.createElement("div",Cr({className:te("recharts-wrapper",w),style:R({position:"relative",cursor:"default",width:_,height:S},j)},q,{ref:function(W){g.container=W}}),A.createElement(Ql,Cr({},C,{width:_,height:S,title:P,desc:E,style:OL}),this.renderClipPath(),Dh(m,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(B.Component);Z(y,"displayName",r),Z(y,"defaultProps",R({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},l)),Z(y,"getDerivedStateFromProps",function(v,x){var b=v.dataKey,g=v.data,O=v.children,m=v.width,w=v.height,_=v.layout,S=v.stackOffset,j=v.margin,$=x.dataStartIndex,P=x.dataEndIndex;if(x.updateId===void 0){var E=P0(v);return R(R(R({},E),{},{updateId:0},h(R(R({props:v},E),{},{updateId:0}),x)),{},{prevDataKey:b,prevData:g,prevWidth:m,prevHeight:w,prevLayout:_,prevStackOffset:S,prevMargin:j,prevChildren:O})}if(b!==x.prevDataKey||g!==x.prevData||m!==x.prevWidth||w!==x.prevHeight||_!==x.prevLayout||S!==x.prevStackOffset||!Ir(j,x.prevMargin)){var M=P0(v),C={chartX:x.chartX,chartY:x.chartY,isTooltipActive:x.isTooltipActive},I=R(R({},S0(x,g,_)),{},{updateId:x.updateId+1}),k=R(R(R({},M),C),I);return R(R(R({},k),h(R({props:v},k),x)),{},{prevDataKey:b,prevData:g,prevWidth:m,prevHeight:w,prevLayout:_,prevStackOffset:S,prevMargin:j,prevChildren:O})}if(!Zl(O,x.prevChildren)){var q,z,W,V,N=Ke(O,Jr),D=N&&(q=(z=N.props)===null||z===void 0?void 0:z.startIndex)!==null&&q!==void 0?q:$,H=N&&(W=(V=N.props)===null||V===void 0?void 0:V.endIndex)!==null&&W!==void 0?W:P,J=D!==$||H!==P,ge=!Y(g),Ie=ge&&!J?x.updateId:x.updateId+1;return R(R({updateId:Ie},h(R(R({props:v},x),{},{updateId:Ie,dataStartIndex:D,dataEndIndex:H}),x)),{},{prevChildren:O,dataStartIndex:D,dataEndIndex:H})}return null}),Z(y,"renderActiveDot",function(v,x,b){var g;return B.isValidElement(v)?g=B.cloneElement(v,x):X(v)?g=v(x):g=A.createElement(Ii,x),A.createElement(re,{className:"recharts-active-dot",key:b},g)});var d=B.forwardRef(function(x,b){return A.createElement(y,Cr({},x,{ref:b}))});return d.displayName=y.displayName,d},CL=_d({chartName:"BarChart",GraphicalChild:$t,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:fn},{axisType:"yAxis",AxisComp:Do}],formatAxisMap:hO}),IL=_d({chartName:"PieChart",GraphicalChild:Nt,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:jo},{axisType:"radiusAxis",AxisComp:So}],formatAxisMap:KM,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),kL=_d({chartName:"ComposedChart",GraphicalChild:[on,_r,$t,Ro],axisComponents:[{axisType:"xAxis",AxisComp:fn},{axisType:"yAxis",AxisComp:Do},{axisType:"zAxis",AxisComp:No}],formatAxisMap:hO});const NL={light:"",dark:".dark"},i_=B.createContext(null);function RL(){const e=B.useContext(i_);if(!e)throw new Error("useChart must be used within a <ChartContainer />");return e}function Gl({id:e,className:t,children:r,config:n,...i}){const a=B.useId(),o=`chart-${e||a.replace(/:/g,"")}`;return T.jsx(i_.Provider,{value:{config:n},children:T.jsxs("div",{"data-slot":"chart","data-chart":o,className:nr("[&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border flex aspect-video justify-center text-xs [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden",t),...i,children:[T.jsx(DL,{id:o,config:n}),T.jsx(oj,{children:r})]})})}const DL=({id:e,config:t})=>{const r=Object.entries(t).filter(([,n])=>n.theme||n.color);return r.length?T.jsx("style",{dangerouslySetInnerHTML:{__html:Object.entries(NL).map(([n,i])=>`
${i} [data-chart=${e}] {
${r.map(([a,o])=>{var s;const u=((s=o.theme)==null?void 0:s[n])||o.color;return u?`  --color-${a}: ${u};`:null}).join(`
`)}
}
`).join(`
`)}}):null},Vl=pt;function qL({active:e,payload:t,className:r,indicator:n="dot",hideLabel:i=!1,hideIndicator:a=!1,label:o,labelFormatter:u,labelClassName:s,formatter:c,color:f,nameKey:l,labelKey:p}){const{config:h}=RL(),y=B.useMemo(()=>{var O;if(i||!(t!=null&&t.length))return null;const[v]=t,x=`${p||(v==null?void 0:v.dataKey)||(v==null?void 0:v.name)||"value"}`,b=T0(h,v,x),g=!p&&typeof o=="string"?((O=h[o])==null?void 0:O.label)||o:b==null?void 0:b.label;return u?T.jsx("div",{className:nr("font-medium",s),children:u(g,t)}):g?T.jsx("div",{className:nr("font-medium",s),children:g}):null},[o,u,t,i,s,h,p]);if(!e||!(t!=null&&t.length))return null;const d=t.length===1&&n!=="dot";return T.jsxs("div",{className:nr("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:[d?null:y,T.jsx("div",{className:"grid gap-1.5",children:t.map((v,x)=>{const b=`${l||v.name||v.dataKey||"value"}`,g=T0(h,v,b),O=f||v.payload.fill||v.color;return T.jsx("div",{className:nr("[&>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&&(v==null?void 0:v.value)!==void 0&&v.name?c(v.value,v.name,v,x,v.payload):T.jsxs(T.Fragment,{children:[g!=null&&g.icon?T.jsx(g.icon,{}):!a&&T.jsx("div",{className:nr("shrink-0 rounded-[2px] border-(--color-border) bg-(--color-bg)",{"h-2.5 w-2.5":n==="dot","w-1":n==="line","w-0 border-[1.5px] border-dashed bg-transparent":n==="dashed","my-0.5":d&&n==="dashed"}),style:{"--color-bg":O,"--color-border":O}}),T.jsxs("div",{className:nr("flex flex-1 justify-between leading-none",d?"items-end":"items-center"),children:[T.jsxs("div",{className:"grid gap-1.5",children:[d?y:null,T.jsx("span",{className:"text-muted-foreground",children:(g==null?void 0:g.label)||v.name})]}),v.value&&T.jsx("span",{className:"text-foreground font-mono font-medium tabular-nums",children:v.value.toLocaleString()})]})]})},v.dataKey)})})]})}function T0(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 LL=[{title:"Dashboard",href:"/dashboard1"}],BL={sold:{label:"Jumlah Terjual"},Makanan:{label:"Makanan",color:"var(--chart-1)"},Minuman:{label:"Minuman",color:"var(--chart-2)"},Snack:{label:"Snack",color:"var(--chart-3)"}};function lB(){const{minimum_stocks:e,top_sellings:t,stockIn:r,stockOut:n,totalStock:i,sales:a,orders:o,expenses:u,purchaseReturns:s,transactionReturns:c,order_pending:f,expense_pending:l,transaction_pending:p,chart_categories:h,category_overall:y,chartDataMonthlySale:d,chartYear:v,yearOptions:x,chartDataDaily:b,tables:g}=a_().props,O=[{label:"Penjualan",icon:__,value:a},{label:"Pembelian",icon:f_,value:o},{label:"Biaya",icon:p_,value:u},{label:"Retur Penjualan",icon:w_,value:s},{label:"Retur Pembelian",icon:b_,value:c},{label:"Barang Masuk",icon:h_,value:r},{label:"Barang Keluar",icon:m_,value:n},{label:"Sisa barang",icon:d_,value:i}],m=["barangout","barangin","totalharga_out","totalharga_in"],w={barangout:{label:"Barang Out",color:"var(--chart-2)"},barangin:{label:"Barang In",color:"var(--chart-1)"},totalharga_out:{label:"Total Harga Barang Out",color:"var(--chart-3)"},totalharga_in:{label:"Total Harga Barang In",color:"var(--chart-4)"}},[_,S]=B.useState(v),[j,$]=B.useState(!1);B.useEffect(()=>S(v),[v]);const P=N=>{const D=Number(N.target.value);S(D),$(!0),u_.get(route("apps.dashboard"),{year:D},{preserveState:!0,preserveScroll:!0,replace:!0,only:["chartDataMonthlySale","chartYear"],onFinish:()=>$(!1)})},[E,M]=B.useState("penjualan"),[C,I]=A.useState("barangout"),k=b??[],q=A.useMemo(()=>({barangout:k.reduce((N,D)=>N+(D.barangout||0),0),barangin:k.reduce((N,D)=>N+(D.barangin||0),0),totalharga_out:k.reduce((N,D)=>N+(D.totalharga_out||0),0),totalharga_in:k.reduce((N,D)=>N+(D.totalharga_in||0),0)}),[k]);function z(N){return N.toString().replace(/\B(?=(\d{3})+(?!\d))/g,".")}const[W,V]=B.useState(3);return console.log(g),T.jsxs(l_,{breadcrumbs:LL,children:[T.jsx(o_,{title:"Dashboard POS"}),T.jsxs("div",{className:"flex flex-col gap-4 p-4",children:[T.jsx("div",{className:"grid grid-cols-2 gap-4 md:grid-cols-4 lg:grid-cols-8",children:O.map(({label:N,icon:D,value:H})=>T.jsxs(Ri,{className:"relative overflow-hidden text-center",children:[T.jsx(D,{className:"absolute left-2 top-1/2 h-10 w-10 -translate-y-1/2 text-muted-foreground opacity-10"}),T.jsxs(Di,{children:[T.jsx("p",{className:"text-sm font-medium text-muted-foreground",children:N}),T.jsx("p",{className:"text-xl font-bold text-foreground",children:String(H)})]})]},N))}),T.jsxs(Ri,{className:"py-0",children:[T.jsxs(Fo,{className:"flex flex-col items-stretch border-b !p-0 sm:flex-row",children:[T.jsxs("div",{className:"flex flex-1 flex-col justify-center gap-1 px-6 pt-4 pb-3 sm:!py-0",children:[T.jsx(zo,{children:"Grafik Penjualan Harian"}),T.jsx(Wo,{children:"Data interaktif penjualan dan pembelian berdasarkan tanggal"})]}),T.jsx("div",{className:"grid grid-cols-2 sm:flex",children:m.map(N=>{const D=N,H=q[N]??0,J=N.startsWith("totalharga")?"Rp"+z(H):H.toString();return T.jsxs("button",{"data-active":C===D,className:"data-[active=true]:bg-muted/50 relative z-30 flex flex-1 flex-col justify-center gap-1 border-t px-6 py-4 text-left even:border-l sm:border-t-0 sm:border-l sm:px-8 sm:py-6",onClick:()=>I(D),children:[T.jsx("span",{className:"text-muted-foreground text-xs",children:w[D].label}),T.jsx("span",{className:"text-lg leading-none font-bold sm:text-3xl",children:J})]},D)})})]}),T.jsx(Di,{className:"px-2 sm:p-6",children:T.jsx(Gl,{config:w,className:"aspect-auto h-[250px] w-full",children:T.jsxs(CL,{accessibilityLayer:!0,data:k,margin:{left:12,right:12},children:[T.jsx(op,{vertical:!1}),T.jsx(fn,{dataKey:"date",tickLine:!1,axisLine:!1,tickMargin:8,minTickGap:32,tickFormatter:N=>new Date(N).toLocaleDateString("en-US",{month:"short",day:"numeric"})}),T.jsx(Vl,{content:({active:N,payload:D,label:H})=>{if(!N||!D||!D.length)return null;const J=D[0].payload;return T.jsxs("div",{className:"bg-background space-y-1 rounded-md border p-2 text-sm shadow-sm",children:[T.jsx("div",{className:"font-medium",children:new Date(H).toLocaleDateString("id-ID",{day:"numeric",month:"long",year:"numeric"})}),T.jsxs("div",{children:[w[C].label,":"," ",T.jsx("b",{children:C.startsWith("totalharga")?"Rp"+z(J[C]):`${J[C]} pcs`})]})]})}}),T.jsx($t,{dataKey:C,fill:w[C].color})]})})})]}),T.jsxs("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-3",children:[T.jsxs(Ri,{className:"py-0 md:col-span-2",children:[T.jsxs(Fo,{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between border-b px-4 py-3 sm:px-6 sm:py-4",children:[T.jsxs("div",{children:[T.jsx(zo,{className:"text-base sm:text-lg",children:"Grafik & Prediksi Penjualan"}),T.jsx(Wo,{className:"text-xs sm:text-sm",children:"Lihat total penjualan per bulan dan prediksi tren berikutnya."})]}),T.jsxs("div",{className:"flex flex-wrap items-center gap-2 mt-3 sm:mt-0",children:[T.jsxs("select",{className:"border-border bg-background rounded-md border px-3 py-1 text-xs sm:text-sm",value:_||"",onChange:P,disabled:j,children:[T.jsx("option",{value:"",children:"Pilih tahun..."}),x.map(N=>T.jsx("option",{value:N,children:N},N))]}),T.jsxs("select",{className:"border-border bg-background rounded-md border px-2 py-1 text-xs sm:text-sm",value:W||"",onChange:N=>V(Number(N.target.value)),children:[T.jsx("option",{value:"",children:"Pilih rata-rata..."}),[1,2,3,6,12].map(N=>T.jsxs("option",{value:N,children:[N," Bulan"]},N))]})]})]}),T.jsx(Di,{className:"px-2 sm:p-6",children:j?T.jsxs("div",{className:"text-center flex flex-col gap-2 items-center justify-center h-[250px]",children:[T.jsx(v_,{className:"animate-spin"}),T.jsx("div",{children:"Tunggu Sebentar..."})]}):d.length===0?T.jsx("div",{className:"text-center py-8 text-muted-foreground text-sm",children:"Belum ada data penjualan"}):T.jsx(Gl,{config:{actual:{label:"Penjualan Aktual",color:"var(--chart-3)"},movingAvg:{label:"Rata-rata",color:"var(--chart-2)"},regression:{label:"Prediksi",color:"var(--chart-4)"}},className:"aspect-auto h-[250px] w-full",children:T.jsxs(kL,{data:(()=>{const N=[...d],D=W,H=N.map((ie,ae)=>{if(ae<D-1)return{...ie,movingAvg:null};const je=N.slice(ae-D+1,ae+1).reduce((ft,Rt)=>ft+Rt.totalPenjualan,0)/D;return{...ie,movingAvg:Math.round(je)}}),J=N.length,ge=N.map((ie,ae)=>ae+1),Ie=N.map(ie=>ie.totalPenjualan),nt=ge.reduce((ie,ae)=>ie+ae,0)/J,Me=Ie.reduce((ie,ae)=>ie+ae,0)/J,U=ge.reduce((ie,ae,je)=>ie+(ae-nt)*(Ie[je]-Me),0),Q=ge.reduce((ie,ae)=>ie+Math.pow(ae-nt,2),0),ee=U/Q,L=Me-ee*nt,ve=H.map((ie,ae)=>({...ie,regression:Math.round(L+ee*(ae+1))})),ne=Math.round(L+ee*(J+1));return ve.push({bulan:"Prediksi",totalPenjualan:0,movingAvg:null,regression:ne}),ve})(),margin:{left:12,right:12},children:[T.jsx(op,{vertical:!1,strokeDasharray:"3 3"}),T.jsx(fn,{dataKey:"bulan",tickLine:!1,axisLine:!1,tickMargin:8}),T.jsx(Vl,{content:({active:N,payload:D,label:H})=>{if(!N||!(D!=null&&D.length))return null;const J=D[0].payload;return T.jsxs("div",{className:"bg-background rounded-md border p-2 text-sm shadow-sm space-y-1",children:[T.jsxs("div",{className:"font-medium",children:["Bulan: ",H]}),J.totalPenjualan?T.jsxs("div",{children:["Penjualan Sebenarnya:"," ",T.jsxs("b",{children:["Rp ",z(J.totalPenjualan)]})]}):null,J.movingAvg?T.jsxs("div",{children:["Rata-rata (",W," Bulan):"," ",T.jsxs("b",{children:["Rp ",z(J.movingAvg)]})]}):null,J.regression?T.jsxs("div",{children:["Prediksi: ",T.jsxs("b",{children:["Rp ",z(J.regression)]})]}):null]})}}),T.jsx($t,{dataKey:"totalPenjualan",fill:"var(--chart-3)",radius:[4,4,0,0],barSize:24}),T.jsx(on,{type:"monotone",dataKey:"movingAvg",stroke:"var(--chart-2)",strokeWidth:2,dot:{r:3}}),T.jsx(on,{type:"linear",dataKey:"regression",stroke:"var(--chart-4)",strokeWidth:2,strokeDasharray:"4 4",dot:{r:3}})]})})})]}),T.jsxs("div",{className:"relative flex min-h-[220px] flex-col rounded-xl border border-border bg-card p-4 text-card-foreground transition-colors",children:[T.jsx("h2",{className:"mb-4 text-base font-semibold",children:"Status Meja Saat Ini"}),T.jsx("div",{className:"overflow-auto",children:T.jsxs("table",{className:"w-full border-collapse text-left text-sm",children:[T.jsx("thead",{children:T.jsxs("tr",{className:"border-border border-b",children:[T.jsx("th",{className:"px-3 py-2 font-semibold",children:"No Meja"}),T.jsx("th",{className:"px-3 py-2 font-semibold",children:"Kapasitas"}),T.jsx("th",{className:"px-3 py-2 font-semibold",children:"Customer"}),T.jsx("th",{className:"px-3 py-2 font-semibold",children:"Status"})]})}),T.jsx("tbody",{children:g.map((N,D)=>{var H,J;return T.jsxs("tr",{className:"border-border border-b last:border-none",children:[T.jsx("td",{className:"px-3 py-2",children:N.number}),T.jsxs("td",{className:"px-3 py-2",children:[N.capacity," Orang"]}),T.jsx("td",{className:"px-3 py-2",children:((J=(H=N.transaction)==null?void 0:H.customer)==null?void 0:J.name)??"Umum"}),T.jsx("td",{className:"px-3 py-2",children:T.jsx("span",{className:`inline-block rounded-full px-2 py-0.5 text-xs font-semibold whitespace-nowrap ${N.status==="available"?"bg-green-100 text-green-800":N.status==="reserved"?"bg-yellow-100 text-yellow-800":"bg-red-100 text-red-800"}`,children:N.status==="available"?"Tersedia":N.status==="reserved"?"Dibooking":"Tidak Tersedia"})})]},D)})})]})})]})]}),T.jsxs("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-3",children:[T.jsxs("div",{className:"border-border relative flex min-h-[220px] flex-col rounded-xl border p-4 bg-card",children:[T.jsx("h2",{className:"mb-4 text-base font-semibold",children:"10 Barang dengan Stok Terendah"}),T.jsx("div",{className:"flex-1 overflow-auto",children:T.jsxs("table",{className:"w-full border-collapse text-left text-sm",children:[T.jsx("thead",{children:T.jsxs("tr",{className:"border-border border-b",children:[T.jsx("th",{className:"px-3 py-2 font-semibold",children:"No."}),T.jsx("th",{className:"px-3 py-2 font-semibold",children:"Nama Barang"}),T.jsx("th",{className:"px-3 py-2 font-semibold",children:"Stok"})]})}),T.jsx("tbody",{children:e.map((N,D)=>T.jsxs("tr",{className:"border-border border-b last:border-none",children:[T.jsx("td",{className:"px-3 py-2",children:D+1}),T.jsx("td",{className:"px-3 py-2",children:N.name}),T.jsx("td",{className:"px-3 py-2",children:N.on_hand})]},D))})]})})]}),T.jsxs("div",{className:"border-border relative flex min-h-[220px] flex-col rounded-xl border p-4 bg-card",children:[T.jsx("h2",{className:"mb-4 text-base font-semibold",children:"Produk Terlaris"}),T.jsx("div",{className:"flex-1 overflow-auto",children:T.jsxs("table",{className:"w-full border-collapse text-left text-sm",children:[T.jsx("thead",{children:T.jsxs("tr",{className:"border-border border-b",children:[T.jsx("th",{className:"px-3 py-2 font-semibold",children:"No."}),T.jsx("th",{className:"px-3 py-2 font-semibold",children:"Nama Produk"}),T.jsx("th",{className:"px-3 py-2 font-semibold",children:"Jumlah Terjual"})]})}),T.jsx("tbody",{children:t.map((N,D)=>T.jsxs("tr",{className:"border-border border-b last:border-none",children:[T.jsx("td",{className:"px-3 py-2",children:D+1}),T.jsx("td",{className:"px-3 py-2",children:N.name}),T.jsx("td",{className:"px-3 py-2",children:N.net_sold_qty})]},D))})]})})]}),T.jsxs(Ri,{className:"flex flex-col",children:[T.jsxs(Fo,{className:"items-center pb-0",children:[T.jsx(zo,{children:"Kategori Terlaris"}),T.jsx(Wo,{children:"Penjualan kategori terbaru"})]}),T.jsx(Di,{className:"flex-1 pb-0",children:T.jsx(Gl,{config:BL,className:"mx-auto aspect-square max-h-[250px]",children:T.jsxs(IL,{children:[T.jsx(Vl,{cursor:!1,content:T.jsx(qL,{hideLabel:!0})}),T.jsx(Nt,{data:h,dataKey:"sold",nameKey:"category",fill:"#8884d8",outerRadius:100,label:!0})]})})}),T.jsxs(s_,{className:"flex-col gap-2 text-sm",children:[T.jsxs("div",{className:"flex items-center gap-2 leading-none font-medium",children:["Trending up by ",y.mom_pct,"% this month ",T.jsx(S_,{className:"h-4 w-4"})]}),T.jsx("div",{className:"text-muted-foreground leading-none",children:"Data penjualan kategori bulan ini"})]})]})]}),T.jsxs("div",{className:"border-border relative flex min-h-[300px] flex-col gap-4 rounded-xl border p-4 bg-card",children:[T.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between",children:[T.jsx("h2",{className:"text-base font-semibold",children:"Transaksi Belum Lunas"}),T.jsx(Pd,{value:E,onValueChange:M,children:T.jsxs(c_,{className:"flex w-full justify-between sm:w-auto sm:justify-end",children:[T.jsx(Uo,{value:"penjualan",className:"px-3 py-1 text-sm sm:text-base",children:"Penjualan"}),T.jsx(Uo,{value:"pembelian",className:"px-3 py-1 text-sm sm:text-base",children:"Pembelian"}),T.jsx(Uo,{value:"pengeluaran",className:"px-3 py-1 text-sm sm:text-base",children:"Pengeluaran"})]})})]}),T.jsx("div",{children:T.jsxs(Pd,{value:E,onValueChange:M,children:[T.jsx(Ko,{value:"penjualan",children:p.length>0?T.jsx("div",{className:"overflow-auto",children:T.jsxs("table",{className:"w-full border-collapse text-left text-sm",children:[T.jsx("thead",{children:T.jsxs("tr",{className:"border-border bg-muted/50 border-b",children:[T.jsx("th",{className:"px-3 py-2 font-semibold",children:"Tanggal"}),T.jsx("th",{className:"px-3 py-2 font-semibold",children:"ID"}),T.jsx("th",{className:"px-3 py-2 font-semibold",children:"Customer"}),T.jsx("th",{className:"px-3 py-2 text-right font-semibold",children:"Total"}),T.jsx("th",{className:"px-3 py-2 text-right font-semibold",children:"Sisa"})]})}),T.jsx("tbody",{children:p.map(N=>T.jsxs("tr",{className:"border-border border-b last:border-none",children:[T.jsx("td",{className:"px-3 py-2",children:N.tanggal}),T.jsx("td",{className:"px-3 py-2",children:N.id}),T.jsx("td",{className:"px-3 py-2",children:N.customer??"Umum"}),T.jsxs("td",{className:"px-3 py-2 text-right",children:["Rp ",N.total.toLocaleString()]}),T.jsx("td",{className:"px-3 py-2 text-right",children:T.jsxs(Bo,{variant:"destructive",children:["Rp ",N.sisa.toLocaleString()]})})]},N.id))})]})}):T.jsx("p",{className:"text-muted-foreground text-sm",children:"Semua penjualan telah lunas."})}),T.jsx(Ko,{value:"pembelian",children:f.length>0?T.jsx("div",{className:"overflow-auto",children:T.jsxs("table",{className:"w-full border-collapse text-left text-sm",children:[T.jsx("thead",{children:T.jsxs("tr",{className:"border-border bg-muted/50 border-b",children:[T.jsx("th",{className:"px-3 py-2 font-semibold",children:"Tanggal"}),T.jsx("th",{className:"px-3 py-2 font-semibold",children:"ID"}),T.jsx("th",{className:"px-3 py-2 font-semibold",children:"Supplier"}),T.jsx("th",{className:"px-3 py-2 text-right font-semibold",children:"Total"}),T.jsx("th",{className:"px-3 py-2 text-right font-semibold",children:"Sisa"})]})}),T.jsx("tbody",{children:f.map(N=>T.jsxs("tr",{className:"border-border border-b last:border-none",children:[T.jsx("td",{className:"px-3 py-2",children:N.tanggal}),T.jsx("td",{className:"px-3 py-2",children:N.id}),T.jsx("td",{className:"px-3 py-2",children:N.supplier}),T.jsxs("td",{className:"px-3 py-2 text-right",children:["Rp ",N.total.toLocaleString()]}),T.jsx("td",{className:"px-3 py-2 text-right",children:T.jsxs(Bo,{variant:"destructive",children:["Rp ",N.sisa.toLocaleString()]})})]},N.id))})]})}):T.jsx("p",{className:"text-muted-foreground text-sm",children:"Semua pembelian telah lunas."})}),T.jsx(Ko,{value:"pengeluaran",children:l.length>0?T.jsx("div",{className:"overflow-auto",children:T.jsxs("table",{className:"w-full border-collapse text-left text-sm",children:[T.jsx("thead",{children:T.jsxs("tr",{className:"border-border bg-muted/50 border-b",children:[T.jsx("th",{className:"px-3 py-2 font-semibold",children:"Tanggal"}),T.jsx("th",{className:"px-3 py-2 font-semibold",children:"ID"}),T.jsx("th",{className:"px-3 py-2 font-semibold",children:"Kategori"}),T.jsx("th",{className:"px-3 py-2 text-right font-semibold",children:"Total"}),T.jsx("th",{className:"px-3 py-2 text-right font-semibold",children:"Sisa"})]})}),T.jsx("tbody",{children:l.map(N=>T.jsxs("tr",{className:"border-border border-b last:border-none",children:[T.jsx("td",{className:"px-3 py-2",children:N.tanggal}),T.jsx("td",{className:"px-3 py-2",children:N.id}),T.jsx("td",{className:"px-3 py-2",children:N.keterangan}),T.jsxs("td",{className:"px-3 py-2 text-right",children:["Rp ",N.total.toLocaleString()]}),T.jsx("td",{className:"px-3 py-2 text-right",children:T.jsxs(Bo,{variant:"destructive",children:["Rp ",N.sisa.toLocaleString()]})})]},N.id))})]})}):T.jsx("p",{className:"text-muted-foreground text-sm",children:"Semua pengeluaran telah lunas."})})]})})]})]})]})}export{lB as default};
